@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240427.0 → 0.0.0-nightly-20240429.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0xf56dee,PendingActions as _0x10ae0f,icons as _0x2aefe4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4d5db7,ObservableMixin as _0x52e42c,uid as _0x219e6e,insertToPriorityArray as _0x2752b9,priorities as _0x5387e0,logWarning as _0x44e1a0,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3067ec,View as _0x369fdd,ButtonView as _0x26bf4b,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2cd81b,hashObject as _0x105b9a,surroundingMarkersDetector as _0xec2f2f,trimHtml as _0x35fad7,UserView as _0x2416de,getDateTimeFormatter as _0x383335,getAllMarkersDomElementsSorted as _0xe5acff,sanitizeEditorConfig as _0x2e858b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x14f356,LiveRange as _0x40e8d5,LivePosition as _0x58d4b4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x373de9,toWidget as _0x724fa}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x49f454,set as _0x15e2f9,isEqual as _0x66965c,unset as _0x145935,omit as Bt}from'lodash-es';import{Delete as _0x4d7431,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x33541a,ShiftEnter as _0x559b45}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x1f5e13 of this['editor']['commands']['commands']())_0x1f5e13['affectsData']&&!this['_enabledCommands']['has'](_0x1f5e13)&&_0x1f5e13['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x121d42 of this['editor']['commands']['commands']())_0x121d42['affectsData']&&!this['_enabledCommands']['has'](_0x121d42)&&_0x121d42['clearForceDisabled']('TrackChangesCommand');}constructor(_0x13b2f4,_0xcd53){super(_0x13b2f4),this['_enabledCommands']=_0xcd53,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x130d3f){const _0x1e8dc5=this['_suggestions']['get'](_0x130d3f);if(!_0x1e8dc5)throw new _0x4d5db7('track-changes-accept-suggestion-not-found',this);const _0x567f58=_0x1e8dc5['getRanges']();this['editor']['model']['canEditAt'](_0x567f58)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1e8dc5);}constructor(_0x1d06b3,_0xa132a6){super(_0x1d06b3),this['_suggestions']=_0xa132a6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x436996){const _0x50a9a1=this['_suggestions']['get'](_0x436996);if(!_0x50a9a1)throw new _0x4d5db7('track-changes-discard-suggestion-not-found',this);const _0x13778d=_0x50a9a1['getRanges']();this['editor']['model']['canEditAt'](_0x13778d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x50a9a1);}constructor(_0x1a95cd,_0x56035a){super(_0x1a95cd),this['_suggestions']=_0x56035a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x206aac){return _0x206aac['sort']((_0x139999,_0x1a415d)=>'deletion'==_0x139999['type']&&'deletion'!=_0x1a415d['type']?-0x1:'deletion'!=_0x139999['type']&&'deletion'==_0x1a415d['type']?0x1:0x0);}function to(_0x43e7cd,_0x440822){let _0x239f3c,_0x5b08f0=0x0;const _0x509ad5=[],_0x145f90=_0x440822['schema'];for(;_0x5b08f0<_0x43e7cd['length'];){const _0x42c8a0=_0x43e7cd[_0x5b08f0],_0x5f5473=_0x43e7cd[_0x5b08f0+0x1];_0x239f3c||(_0x239f3c=_0x440822['createPositionBefore'](_0x42c8a0)),co(_0x440822,_0x42c8a0,_0x5f5473)||(_0x509ad5['push'](_0x440822['createRange'](_0x239f3c,_0x145f90['isObject'](_0x42c8a0)?_0x440822['createPositionAfter'](_0x42c8a0):_0x440822['createPositionAt'](_0x42c8a0,'end'))),_0x239f3c=null),_0x5b08f0++;}return _0x509ad5;}function co(_0x285af7,_0x461a9d,_0x1d36a1){if(!_0x1d36a1)return!0x1;const _0x3bbf9b=_0x285af7['createPositionAfter'](_0x461a9d),_0x33e1a1=_0x285af7['createPositionBefore'](_0x1d36a1);return _0x3bbf9b['isTouching'](_0x33e1a1);}function rs(_0xbe9f5a,_0x496e7d,_0x3b3681){for(;_0x3b3681['length'];){const _0x2fd32b=_0x3b3681['splice'](0x0,0x64);_0xbe9f5a['change'](()=>{for(const _0x40e722 of _0x2fd32b)_0x40e722['isInContent']&&_0x496e7d['execute'](_0x40e722['id']);});}}class x extends ts{['refresh'](){const _0x57a46a=Array['from'](this['_suggestions']['values']())['some'](_0x90a9e4=>_0x90a9e4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x57a46a;}['execute'](){const _0x2ae88e=ss(Array['from'](this['_suggestions']['values']()));for(const _0x158d0b of _0x2ae88e){const _0x1e47be=_0x158d0b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e47be))return;}rs(this['editor']['model'],this['_command'],_0x2ae88e);}constructor(_0x1818df,_0x52d314,_0x47a90a){super(_0x1818df),this['_command']=_0x52d314,this['_suggestions']=_0x47a90a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x4dec36=this['editor']['model']['document']['selection'],_0x4798d2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4abdab,_0x3ecdb7){const _0x5cc1b7=Array['from'](_0x4abdab['getRanges']()),_0x56f945=new Set();for(const _0x2df330 of _0x3ecdb7)if(_0x2df330['isInContent']){for(const _0x4e4c22 of _0x5cc1b7)for(const _0x584d9f of _0x2df330['getRanges']())(_0x4e4c22['isIntersecting'](_0x584d9f)||_0x4abdab['isCollapsed']&&!_0x2df330['isMultiRange']&&_0x2df330['next']&&_0x584d9f['end']['isTouching'](_0x4e4c22['start']))&&_0x56f945['add'](_0x2df330);}return _0x56f945;}(_0x4dec36,_0x4798d2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2a0640=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1b7e51 of _0x2a0640){const _0x44d633=_0x1b7e51['getRanges']();if(!this['editor']['model']['canEditAt'](_0x44d633))return;}rs(this['editor']['model'],this['_command'],_0x2a0640);}constructor(_0x30f2e2,_0x24984a,_0xf9042c){super(_0x30f2e2),this['_command']=_0x24984a,this['_suggestions']=_0xf9042c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x52e42c(){get['head'](){let _0x3d4019=this;for(;_0x3d4019['previous'];)_0x3d4019=_0x3d4019['previous'];return _0x3d4019;}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'](_0x4e49f9){this['_markerNames']['add'](_0x4e49f9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xe5caf6=>this['_model']['markers']['get'](_0xe5caf6))['filter'](_0x59dce1=>_0x59dce1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x25534d=>{for(const _0x345e10 of this['getMarkers']())_0x25534d['removeMarker'](_0x345e10);}),this['_markerNames']['clear']();}['removeMarker'](_0x2dde3a){this['_model']['change'](_0x4f7190=>{_0x4f7190['removeMarker'](_0x2dde3a);}),this['_markerNames']['delete'](_0x2dde3a);}['addRange'](_0x5d6ab2){const _0x3f5791='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3f5791),this['_model']['change'](_0x4f6979=>{_0x4f6979['addMarker'](_0x3f5791,{'range':_0x5d6ab2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4e4140){for(const _0x174abb of this['getRanges']())if(_0x174abb['isIntersecting'](_0x4e4140))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x53f2bf=>_0x53f2bf['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x32154f,_0x91cf8e)=>[..._0x32154f,..._0x91cf8e['getItems']()],[]);}['getFirstRange'](){var _0x31c2cb;return(null===(_0x31c2cb=this['getFirstMarker']())||void 0x0===_0x31c2cb?void 0x0:_0x31c2cb['getRange']())||null;}['getContainedElement'](){const _0x5c8053=this['getRanges']();if(0x1!=_0x5c8053['length'])return null;const _0x557ec3=_0x5c8053[0x0],_0x389d27=_0x557ec3['start']['nodeAfter'],_0x18f713=_0x557ec3['end']['nodeBefore'];return _0x389d27 instanceof _0x14f356?_0x389d27!=_0x18f713?null:_0x389d27: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 _0x2b160a=[];let _0x5b75de=this['head'];for(;_0x5b75de;)_0x2b160a['push'](_0x5b75de),_0x5b75de=_0x5b75de['next'];return _0x2b160a;}['setAttribute'](_0x2c3e96,_0x2d81be){const _0x216101=_0x49f454(this['attributes']);_0x15e2f9(_0x216101,_0x2c3e96,_0x2d81be),_0x66965c(_0x216101,this['attributes'])||(this['attributes']=_0x216101,this['_onAttributesChange'](_0x216101));}['removeAttribute'](_0x48ec0e){const _0xdfc557=_0x49f454(this['attributes']);_0x145935(_0xdfc557,_0x48ec0e),_0x66965c(_0xdfc557,this['attributes'])||(this['attributes']=_0xdfc557,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 _0x219e6e()['substr'](0x1,0x5);}constructor(_0x3a7840,_0x6f15d2){super(),this['_isDataLoaded']=!0x1,this['id']=_0x6f15d2['id'],this['type']=_0x6f15d2['type'],this['subType']=_0x6f15d2['subType']||null,this['author']=_0x6f15d2['author'],this['creator']=_0x6f15d2['creator']||_0x6f15d2['author'],this['isExternal']=Boolean(_0x6f15d2['attributes']&&_0x6f15d2['attributes']['@external']),this['data']=null,this['_model']=_0x3a7840,this['_onAccept']=_0x6f15d2['onAccept'],this['_onDiscard']=_0x6f15d2['onDiscard'],this['_onAttributesChange']=_0x6f15d2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6f15d2['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x195758,_0xedaa75,_0x13142b){const t=_0x195758['t'];switch(_0xedaa75){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'*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',_0x13142b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x13142b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x13142b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x13142b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x13142b);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',_0x13142b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x13142b);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x13142b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x13142b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x13142b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x13142b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x13142b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x13142b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x13142b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x13142b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x13142b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x13142b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x13142b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x13142b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x13142b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x13142b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x13142b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x13142b);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'},_0x13142b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x13142b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x13142b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x13142b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x13142b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x13142b);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'},_0x13142b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x13142b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x13142b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x13142b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x13142b);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x13142b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x13142b);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'},_0x13142b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x13142b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x13142b);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'},_0x13142b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x13142b);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'},_0x13142b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x13142b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x13142b);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x13142b);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x13142b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xedaa75;}}class f{['getDescriptions'](_0x27a78c){const _0x336e87=[],_0xe289c6=new Set(),_0x285c56=new Set();for(let _0x3a28d4=0x0;_0x3a28d4<_0x27a78c['length'];_0x3a28d4++){const _0x501ae3=_0x27a78c[_0x3a28d4];if(!_0x501ae3['isInContent'])continue;const _0x3fdc18=this['_handleCustomCallbackDescription'](_0x501ae3);if(_0x3fdc18){if(null!=_0x501ae3['subType']){if(_0xe289c6['has'](_0x501ae3['subType']))continue;_0xe289c6['add'](_0x501ae3['subType']);}_0x336e87['push'](_0x3fdc18);}else{if('attribute'!=_0x501ae3['type'])'insertion'!=_0x501ae3['type']&&'deletion'!=_0x501ae3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x336e87,_0x501ae3,_0x27a78c[_0x3a28d4+0x1]);else{const _0x162ec7=_0x501ae3['data']['key'];if(_0x285c56['has'](_0x162ec7))continue;_0x285c56['add'](_0x501ae3['data']['key']),_0x162ec7==m?this['_handleRenameSuggestionDescription'](_0x336e87,_0x501ae3):this['_handleAttributeSuggestionDescription'](_0x336e87,_0x501ae3);}}}return this['_resolveDescriptionItems'](_0x336e87);}['registerDescriptionCallback'](_0x357609){this['_customCallbacks']['push'](_0x357609);}['registerElementLabel'](_0x35c6a4,_0x407947,_0x1a4067=_0x5387e0['normal']){'function'==typeof _0x35c6a4?_0x2752b9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x35c6a4,'label':_0x407947,'priority':_0x1a4067}):this['_itemLabels']['set'](_0x35c6a4,_0x407947);}['registerAttributeLabel'](_0x5dbb7b,_0x56a532){this['_attributeLabels']['set'](_0x5dbb7b,_0x56a532);}['getItemLabel'](_0x366d4a,_0xaba612=0x1){let _0x300572;for(const _0x577063 of this['_itemLabelsCallbacks'])if(_0x577063['matchingCallback'](_0x366d4a)){_0x300572=_0x577063['label'];break;}return _0x300572||(_0x300572=this['_itemLabels']['get'](_0x366d4a['name'])),_0x300572?_0x300572(_0xaba612):0x1!==_0xaba612?_0xaba612+'\x20'+_0x366d4a['name']+'s':''+_0x366d4a['name'];}['_addDescriptionItems'](_0xc98dfa,_0x5085de){const _0x42e4b2=_0x5085de['getFirstRange']()['getWalker'](),_0x329278='insertion'==_0x5085de['type']?'add':'remove';for(const _0x4f38b7 of _0x42e4b2){const _0x9a0578=_0x4f38b7['item'],_0x47818=_0xc98dfa[_0xc98dfa['length']-0x1];if(_0x9a0578['is']('$textProxy'))_0x47818&&_0x47818['type']['indexOf']('Container')>-0x1&&_0xc98dfa['pop'](),_0x47818&&'text'==_0x47818['type']?_0x47818[_0x329278]+=_0x9a0578['data']:_0xc98dfa['push']({'type':'text','add':'add'==_0x329278?_0x9a0578['data']:'','remove':'remove'==_0x329278?_0x9a0578['data']:''});else{if(this['_schema']['isObject'](_0x9a0578)){const _0x1bdc37=_0x9a0578;if(_0x47818&&_0x47818['type']['indexOf']('Container')>-0x1&&_0xc98dfa['pop'](),'elementEnd'==_0x4f38b7['type'])continue;_0x47818&&_0x47818['type']==_0x329278+'Object'&&_0x47818['element']['name']==_0x1bdc37['name']?_0x47818['quantity']++:_0xc98dfa['push']({'type':_0x329278+'Object','element':_0x1bdc37,'quantity':0x1}),_0x42e4b2['skip'](_0x4d7d9e=>!('elementEnd'==_0x4d7d9e['type']&&_0x4d7d9e['item']==_0x9a0578));}else{if(this['_schema']['checkChild'](_0x9a0578,'$text')||_0x9a0578['is']('element','softBreak')){const _0x5d1f1b=_0x9a0578;if('add'==_0x329278&&'elementStart'==_0x4f38b7['type']||'remove'==_0x329278&&'elementEnd'==_0x4f38b7['type'])continue;if(_0x47818&&-0x1==_0x47818['type']['indexOf']('Container')){'text'==_0x47818['type']&&(_0x47818[_0x329278]+='\x0a');continue;}let _0x21f5ce;if(_0x21f5ce='add'==_0x329278?_0x5d1f1b['nextSibling']&&!this['_schema']['isObject'](_0x5d1f1b['nextSibling'])?_0x5d1f1b['nextSibling']:null:_0x5d1f1b['previousSibling']&&!this['_schema']['isObject'](_0x5d1f1b['previousSibling'])?_0x5d1f1b['previousSibling']:null,_0x5d1f1b['isEmpty']||_0x21f5ce&&_0x21f5ce['isEmpty']){const _0xb00eda=_0x21f5ce&&_0x21f5ce['isEmpty']?_0x21f5ce:_0x5d1f1b;_0x47818&&_0x47818['type']==_0x329278+'EmptyContainer'&&_0x47818['element']['name']==_0xb00eda['name']?_0x47818['quantity']++:_0xc98dfa['push']({'type':_0x329278+'EmptyContainer','element':_0xb00eda,'quantity':0x1});}else _0xc98dfa['push']({'type':_0x329278+'Container','element':_0x5d1f1b});}}}}}['_resolveDescriptionItems'](_0x53396e){const _0x791abe=this['_locale'],_0x47d0ad=[],_0x1e6173=[],_0x26cf16=[];for(const _0x5eb4d2 of _0x53396e)switch(_0x5eb4d2['type']){case'text':if(_0x5eb4d2['add']=_0x5eb4d2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5eb4d2['remove']=_0x5eb4d2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5eb4d2['add']&&''!=_0x5eb4d2['remove']){_0x47d0ad['push']({'type':'replace','content':o(_0x791abe,'REPLACE_TEXT',['\x22'+_0x5eb4d2['remove']+'\x22','\x22'+_0x5eb4d2['add']+'\x22'])});continue;}if(null!=_0x5eb4d2['add']['match'](/^ +$/)){_0x47d0ad['push']({'type':'insertion','content':o(_0x791abe,'*Insert:*\x20%0',o(_0x791abe,'ELEMENT_SPACE',_0x5eb4d2['add']['length']))});continue;}if(null!=_0x5eb4d2['remove']['match'](/^ +$/)){_0x47d0ad['push']({'type':'deletion','content':o(_0x791abe,'*Remove:*\x20%0',o(_0x791abe,'ELEMENT_SPACE',_0x5eb4d2['remove']['length']))});continue;}if(''!=_0x5eb4d2['add']){_0x47d0ad['push']({'type':'insertion','content':o(_0x791abe,'*Insert:*\x20%0','\x22'+_0x5eb4d2['add']+'\x22')});continue;}_0x47d0ad['push']({'type':'deletion','content':o(_0x791abe,'*Remove:*\x20%0','\x22'+_0x5eb4d2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x47d0ad['push']({'type':'insertion','content':o(_0x791abe,'*Insert:*\x20%0',this['getItemLabel'](_0x5eb4d2['element'],_0x5eb4d2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x47d0ad['push']({'type':'deletion','content':o(_0x791abe,'*Remove:*\x20%0',this['getItemLabel'](_0x5eb4d2['element'],_0x5eb4d2['quantity']))});continue;case'addContainer':_0x47d0ad['push']({'type':'insertion','content':o(_0x791abe,'*Split:*\x20%0',this['getItemLabel'](_0x5eb4d2['element'],_0x5eb4d2['quantity']))});continue;case'removeContainer':_0x47d0ad['push']({'type':'deletion','content':o(_0x791abe,'*Merge:*\x20%0',this['getItemLabel'](_0x5eb4d2['element'],_0x5eb4d2['quantity']))});continue;case'addFormat':_0x1e6173['push'](_0x5eb4d2['key']);continue;case'removeFormat':_0x26cf16['push'](_0x5eb4d2['key']);continue;default:_0x47d0ad['push'](_0x5eb4d2);}if(_0x1e6173['length']){const _0x44bddf=_0x1e6173['map'](_0xd96d6=>this['_attributeLabels']['has'](_0xd96d6)?this['_attributeLabels']['get'](_0xd96d6):_0xd96d6)['join'](',\x20');_0x47d0ad['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x44bddf)});}if(_0x26cf16['length']){const _0x37eb17=_0x26cf16['map'](_0x2463ca=>this['_attributeLabels']['has'](_0x2463ca)?this['_attributeLabels']['get'](_0x2463ca):_0x2463ca)['join'](',\x20');_0x47d0ad['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x37eb17)});}return _0x47d0ad;}['_handleCustomCallbackDescription'](_0x5eea5b){for(const _0x45ab06 of this['_customCallbacks']){const _0x32192f=_0x45ab06(_0x5eea5b);if(_0x32192f&&'type'in _0x32192f)return _0x32192f;}}['_handleAttributeSuggestionDescription'](_0x4e34ed,_0x4f6ac5){const _0x56da41=_0x4f6ac5['data'],_0x18a825=void 0x0===_0x56da41['newValue']?'removeFormat':'addFormat';_0x4e34ed['push']({'type':_0x18a825,'key':_0x56da41['key']});}['_handleRenameSuggestionDescription'](_0x2d55f0,_0x190e67){_0x2d55f0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x190e67['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4a5b6c,_0x1816c1,_0x434c0c){if(this['_addDescriptionItems'](_0x4a5b6c,_0x1816c1),_0x434c0c&&_0x434c0c['getFirstRange']()&&!_0x1816c1['getFirstRange']()['end']['isEqual'](_0x434c0c['getFirstRange']()['start'])){const _0x221926=_0x4a5b6c[_0x4a5b6c['length']-0x1],_0x256ef9='insertion'==_0x1816c1['type']?'add':'remove';_0x221926&&'text'==_0x221926['type']&&(_0x221926[_0x256ef9]+='\x0a');}}constructor(_0x16311e,_0x4b1874){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x16311e,this['_locale']=_0x4b1874;}}class E extends _0xf56dee{['afterInit'](){const _0x5bb57f=this['editor'],_0x38c12f=_0x5bb57f['plugins']['get']('TrackChangesEditing');_0x5bb57f['commands']['get']('showAIAssistant')&&_0x38c12f['enableCommand']('showAIAssistant');}}class V extends _0xf56dee{['afterInit'](){const _0x4f0be3=this['editor'],_0x3ef301=_0x4f0be3['locale'];if(!_0x4f0be3['plugins']['has']('AlignmentEditing'))return;const _0x237c5a=_0x4f0be3['plugins']['get']('TrackChangesEditing');_0x237c5a['_enableDefaultAttributesIntegration']('alignment',[],['alignment']),_0x237c5a['_descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3ef301,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c579d=this['editor'],_0x503a11=_0x3c579d['locale'];_0x3c579d['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2c65f8=>{if('formatBlock'!=_0x2c65f8['type'])return;const {data:_0x336e04}=_0x2c65f8;if(_0x336e04&&'alignment'==_0x336e04['commandName']){const _0x3ce544=_0x336e04['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x503a11,'*Format:*\x20%0',function(_0x245a0d){switch(_0x245a0d){case'left':return o(_0x503a11,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x503a11,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x503a11,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x503a11,'FORMAT_JUSTIFY_TEXT');}}(_0x3ce544))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0xf56dee{['afterInit'](){const _0x3a2d2d=this['editor'],_0x500553=_0x3a2d2d['plugins']['get']('TrackChangesEditing'),_0x3b1a71=_0x3a2d2d['locale'];for(const _0x345ee5 of ti){if(!_0x3a2d2d['plugins']['has'](_0x345ee5))continue;const _0xe0f16e=_0x345ee5['slice'](0x0,-0x7)['toLowerCase'](),_0x1feba1='FORMAT_'+_0xe0f16e['toUpperCase']();_0x500553['_enableDefaultAttributesIntegration'](_0xe0f16e,[_0xe0f16e]),_0x500553['_descriptionFactory']['registerAttributeLabel'](_0xe0f16e,o(_0x3b1a71,_0x1feba1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f7944=this['editor'],_0x1a0a6e=_0x1f7944['locale'],_0x2a48a0=_0x1f7944['plugins']['get']('TrackChangesEditing');function _0x152f8c(_0x5a0de4,_0x5649eb){_0x2a48a0['_descriptionFactory']['registerDescriptionCallback'](_0x486a10=>{if('formatInline'!=_0x486a10['type'])return;const {data:_0x12304c}=_0x486a10;return _0x12304c&&_0x12304c['commandName']===_0x5a0de4?_0x12304c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a0a6e,'*Format:*\x20%0',_0x5649eb)}:{'type':'format','content':o(_0x1a0a6e,'*Remove\x20format:*\x20%0',_0x5649eb)}:void 0x0;});}_0x152f8c('bold',o(_0x1a0a6e,'FORMAT_BOLD')),_0x152f8c('italic',o(_0x1a0a6e,'FORMAT_ITALIC')),_0x152f8c('underline',o(_0x1a0a6e,'FORMAT_UNDERLINE')),_0x152f8c('code',o(_0x1a0a6e,'FORMAT_CODE')),_0x152f8c('strikethrough',o(_0x1a0a6e,'FORMAT_STRIKETHROUGH')),_0x152f8c('subscript',o(_0x1a0a6e,'FORMAT_SUBSCRIPT')),_0x152f8c('superscript',o(_0x1a0a6e,'FORMAT_SUPERSCRIPT'));}}class O extends _0xf56dee{['afterInit'](){const _0x19235b=this['editor'],_0x32d9b9=_0x19235b['locale'];if(!_0x19235b['plugins']['has']('BlockQuoteEditing'))return;const _0x3348bf=_0x19235b['plugins']['get']('TrackChangesEditing'),_0x14bd2c=this['editor']['commands']['get']('blockQuote');_0x3348bf['enableCommand']('blockQuote',(_0x23ed20,_0x376c32={})=>{const _0x7a0ca6=this['editor']['model']['document']['selection'],_0x10d3e3=_0x376c32&&void 0x0!==_0x376c32['forceValue']?_0x376c32['forceValue']:!_0x14bd2c['value'];let _0x2bd522=[];if(_0x10d3e3){const _0x1a72e8=Array['from'](_0x7a0ca6['getSelectedBlocks']())['filter'](_0x17aff4=>oo(_0x17aff4)||function(_0x445c2c,_0x3a42d7){const _0x76b81d=_0x3a42d7['checkChild'](_0x445c2c['parent'],'blockQuote'),_0x3680aa=_0x3a42d7['checkChild'](['$root','blockQuote'],_0x445c2c);return _0x76b81d&&_0x3680aa;}(_0x17aff4,this['editor']['model']['schema']));_0x2bd522=to(_0x1a72e8,_0x19235b['model']);}else{const _0x6f0b89=Array['from'](_0x7a0ca6['getSelectedBlocks']())['filter'](_0x161f0b=>oo(_0x161f0b));_0x2bd522=to(_0x6f0b89,_0x19235b['model']);}_0x19235b['model']['change'](()=>{for(const _0x39ea34 of _0x2bd522)_0x3348bf['markBlockFormat'](_0x39ea34,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x10d3e3}]});});}),_0x3348bf['_descriptionFactory']['registerDescriptionCallback'](_0x541fdc=>{const {data:_0x26850c}=_0x541fdc;if(_0x26850c&&'blockQuote'==_0x26850c['commandName']){const _0x4eb362=o(_0x32d9b9,'ELEMENT_BLOCK_QUOTE');return _0x26850c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32d9b9,'*Set\x20format:*\x20%0',_0x4eb362)}:{'type':'format','content':o(_0x32d9b9,'*Remove\x20format:*\x20%0',_0x4eb362)};}});}}function oo(_0xd01e12){return'blockQuote'==_0xd01e12['parent']['name'];}class G extends _0xf56dee{['afterInit'](){const _0x18679c=this['editor'];_0x18679c['plugins']['has']('CaseChange')&&(_0x18679c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x18679c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x18679c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0xf56dee{['afterInit'](){const _0xa5dab7=this['editor'];_0xa5dab7['commands']['get']('ckbox')&&_0xa5dab7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xf56dee{['afterInit'](){const _0x1279ec=this['editor'];if(!_0x1279ec['plugins']['has']('CodeBlock'))return;const _0x476fa1=_0x1279ec['plugins']['get']('TrackChangesEditing'),_0xf2d1fc=_0x1279ec['locale'],_0x25eb4c=_0x1279ec['config']['get']('codeBlock')['languages'],_0x14fc5c=_0x1279ec['commands']['get']('codeBlock');_0x476fa1['enableCommand']('indentCodeBlock'),_0x476fa1['enableCommand']('outdentCodeBlock'),_0x476fa1['enableCommand']('codeBlock',(_0x1f81c7,_0x5a8dfe={})=>{const _0x2c8b5a=_0x1279ec['model'],_0xcb37da=_0x1279ec['model']['document']['selection'],_0x344ecc=_0x5a8dfe&&void 0x0!==_0x5a8dfe['forceValue']?_0x5a8dfe['forceValue']:!_0x14fc5c['value'];let _0x249f38;_0x5a8dfe['language']||(_0x5a8dfe['language']=_0x25eb4c[0x0]['language']),_0x249f38=_0x344ecc?Array['from'](_0xcb37da['getSelectedBlocks']())['filter'](_0x553731=>eo(_0x553731)||function(_0x37438b,_0x34f3c9){if(_0x37438b['is']('rootElement')||_0x34f3c9['isLimit'](_0x37438b))return!0x1;return _0x34f3c9['checkChild'](_0x37438b['parent'],'codeBlock');}(_0x553731,_0x2c8b5a['schema'])):Array['from'](_0xcb37da['getSelectedBlocks']())['filter'](_0x3a1642=>eo(_0x3a1642));const _0x12e208=to(_0x249f38,_0x2c8b5a);_0x2c8b5a['change'](()=>{for(const _0x569f58 of _0x12e208)_0x476fa1['markBlockFormat'](_0x569f58,{'commandName':'codeBlock','commandParams':[{..._0x5a8dfe,'forceValue':_0x344ecc}],'formatGroupId':'blockName'});});}),(_0x476fa1['_descriptionFactory']['registerElementLabel']('codeBlock',_0x336c61=>o(_0xf2d1fc,'ELEMENT_CODE_BLOCK',_0x336c61)),_0x476fa1['_descriptionFactory']['registerDescriptionCallback'](_0x243a71=>{if('formatBlock'!=_0x243a71['type'])return;const _0x13c23f=_0xf2d1fc['t'],{data:_0xdf08b3}=_0x243a71;if(!_0xdf08b3||'codeBlock'!=_0xdf08b3['commandName'])return;const _0x33b84c=_0xdf08b3['commandParams'][0x0]['language'],_0x1e624e=_0x13c23f(_0x25eb4c['find'](_0x553c1f=>_0x553c1f['language']===_0x33b84c)['label'])['toLowerCase']();return _0xdf08b3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf2d1fc,'*Set\x20format:*\x20%0',o(_0xf2d1fc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1e624e+')')}:{'type':'format','content':o(_0xf2d1fc,'*Remove\x20format:*\x20%0',o(_0xf2d1fc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x54608e){return'codeBlock'==_0x54608e['name'];}class H extends _0xf56dee{['afterInit'](){const _0x123b86=this['editor'];if(!_0x123b86['plugins']['has']('CommentsEditing'))return;_0x123b86['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1482b5,_0x348b3c,_0x2c84a2){const _0x4cace4=[];for(const _0xa1f9f3 of _0x348b3c['getItems']())_0xa1f9f3['hasAttribute'](_0x1482b5)&&_0x4cace4['push'](_0x2c84a2['createRangeOn'](_0xa1f9f3));return _0x4cace4;}function _e(_0x3f0338,_0x45985a,{showActiveMarker:_0x5ed286=!0x0}={}){const _0x5337c8=_0x3f0338['plugins']['get']('TrackChangesEditing');return(_0xaa1632,_0x135af0,_0x18011d)=>{if(!_0x18011d['consumable']['test'](_0x135af0['markerRange'],_0xaa1632['name']))return;const _0x1635fb=_0x135af0['markerRange']['getWalker'](),_0x40803c=_0x135af0['markerRange']['start'],_0x104781=_0x3f0338['model']['schema'];let _0x45fd99=null,_0x51c574=null,_0x59fbc4=!0x1,_0x2bac76=!0x1;for(const _0x218885 of _0x1635fb){const _0x342cd4=_0x218885['item'];_0x59fbc4=_0x59fbc4||_0x104781['isContent'](_0x342cd4);const _0x54febe=_0x18011d['mapper']['toViewElement'](_0x342cd4);if(_0x54febe&&_0x54febe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x218885['type']&&(_0x104781['isBlock'](_0x342cd4)&&!_0x104781['isLimit'](_0x342cd4)&&(_0x342cd4['nextSibling']||_0x40803c['isAtEnd']?_0x45fd99&&_0x45fd99['parent']==_0x342cd4||(_0x45fd99=_0x342cd4,_0x11b52f(_0x218885['previousPosition']),_0x2bac76=!0x0):_0x51c574=_0x51c574||_0x218885['previousPosition']));}function _0x11b52f(_0x4c4d0d){const _0x1b6cc2=_0x18011d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45985a}),_0xf346fb=_0x18011d['mapper']['toViewPosition'](_0x4c4d0d);_0x5ed286&&_0x5337c8['activeMarkers']['includes'](_0x135af0['markerName'])&&_0x18011d['writer']['addClass']('ck-suggestion-marker--active',_0x1b6cc2),_0x18011d['writer']['insert'](_0xf346fb,_0x1b6cc2),_0x18011d['mapper']['bindElementToMarker'](_0x1b6cc2,_0x135af0['markerName']);}_0x59fbc4||_0x2bac76||!_0x51c574||_0x11b52f(_0x51c574);};}class q extends _0xf56dee{static get['requires'](){return[_0x4d7431];}['init'](){const _0x405dda=this['editor'],_0x143f41=_0x405dda['plugins']['get']('TrackChangesEditing');_0x143f41['enableCommand']('delete');const _0x17cca8=_0x405dda['commands']['get']('deleteForward');_0x143f41['enableCommand']('deleteForward',(_0x1eec3c,_0x53d7de={})=>{const _0x76e593=_0x405dda['model']['createSelection'](_0x405dda['model']['document']['selection']);_0x76e593['isCollapsed']&&_0x405dda['model']['modifySelection'](_0x76e593,{'direction':'forward','unit':_0x53d7de['unit']});const _0x101f0a=_0x76e593['getFirstRange'](),_0x465b04=_0x40e8d5['fromRange'](_0x101f0a);let _0x2e3003;_0x1eec3c(_0x53d7de),_0x2e3003='$graveyard'==_0x465b04['root']['rootName']?_0x405dda['model']['createRange'](_0x101f0a['start']):_0x405dda['model']['createRange'](_0x465b04['start'],_0x465b04['end']),_0x465b04['detach'](),_0x405dda['model']['enqueueChange'](_0x17cca8['buffer']['batch'],_0x3d4d0d=>{_0x17cca8['buffer']['lock'](),_0x3d4d0d['setSelection'](_0x3d4d0d['createRange'](_0x2e3003['end'])),_0x17cca8['buffer']['unlock']();});}),_0x405dda['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x405dda,'merge'),{'priority':'high'}),_0x405dda['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x124e61,_0x39e727,_0x5df8e9)=>{_0x5df8e9['options']['showSuggestionHighlights']&&_e(_0x405dda,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x124e61,_0x39e727,_0x5df8e9);},{'priority':'high'}),_0x405dda['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4bb2db,_0x46695f,_0x160d47)=>{const _0x4a8b21=_0x160d47['mapper']['markerNameToElements'](_0x46695f['markerName']);if(_0x4a8b21){for(const _0x213bd5 of _0x4a8b21)_0x213bd5['is']('uiElement')&&(_0x160d47['mapper']['unbindElementFromMarkerName'](_0x213bd5,_0x46695f['markerName']),_0x160d47['writer']['remove'](_0x213bd5));}},{'priority':'high'});}}class z extends _0xf56dee{['afterInit'](){const _0x22dd70=this['editor'];if(!_0x22dd70['plugins']['has']('ListEditing'))return;const _0x54641f=_0x22dd70['locale'],_0x2c729e=_0x22dd70['plugins']['get']('TrackChangesEditing'),_0xb794a1=_0x22dd70['plugins']['has']('TodoListEditing'),_0x1cf246=!!_0x22dd70['config']['get']('list.multiBlock');function _0x214546(_0xe98d5c){return{'type':'format','content':''+o(_0x54641f,'*Set\x20format:*\x20%0',_0xe98d5c)};}function _0x861b19(_0x200aa2){return{'type':'format','content':''+o(_0x54641f,'*Remove\x20format:*\x20%0',_0x200aa2)};}_0x2c729e['_enableDefaultAttributesIntegration']('numberedList',[],['listItemId','listType','listIndent']),_0x2c729e['_enableDefaultAttributesIntegration']('bulletedList'),_0x2c729e['_enableDefaultAttributesIntegration']('customNumberedList'),_0x2c729e['_enableDefaultAttributesIntegration']('customBulletedList'),_0x2c729e['_enableDefaultAttributesIntegration']('indentList'),_0x2c729e['_enableDefaultAttributesIntegration']('outdentList'),_0x2c729e['_enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2c729e['_enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cf246&&(_0x2c729e['_enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2c729e['_enableDefaultAttributesIntegration']('mergeListItemForward')),_0xb794a1&&(_0x2c729e['_enableDefaultAttributesIntegration']('todoList'),_0x2c729e['_enableDefaultAttributesIntegration']('checkTodoList',[],['todoListChecked']),_0x2c729e['_descriptionFactory']['registerDescriptionCallback'](_0x53442a=>{const {data:_0x21e506}=_0x53442a;if(_0x21e506&&'todoListChecked'==_0x21e506['key'])return{'type':'format','content':_0x21e506['newValue']?o(_0x54641f,'*Check\x20item*'):o(_0x54641f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5db73b=>{if(_0x5db73b['batch']['isUndo'])return!0x1;let _0x212729=!0x1;const _0x3f0adc=_0x2c729e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18c7ac=>'todoListChecked'===_0x2c729e['_getAttributeKey'](_0x18c7ac));for(const _0x26b736 of _0x3f0adc){'todo'!=_0x26b736['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2c729e['_findSuggestions'](_0x26b736['getFirstRange'](),'attribute')['find'](_0x8c9c0b=>'listType'===_0x2c729e['_getAttributeKey'](_0x8c9c0b['suggestion']))||(_0x5db73b['removeMarker'](_0x26b736['getFirstMarker']()),_0x212729=!0x0));}return _0x212729;})),_0x2c729e['_descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x54641f,'FORMAT_INDENT'));const _0x3f7e7a={'type':'format','content':''};_0x2c729e['_descriptionFactory']['registerDescriptionCallback'](_0x3544ab=>{const {data:_0x4ba00b}=_0x3544ab;if(!_0x4ba00b||'listType'!=_0x4ba00b['key'])return;let _0xb6321d=_0x3544ab['head'];for(;_0xb6321d;){if(_0xb6321d['data']&&(('listStyle'==_0xb6321d['data']['key']||'listMarkerStyle'==_0xb6321d['data']['key'])&&(_0xb6321d['data']['newValue']&&'default'!=_0xb6321d['data']['newValue']||'default'!=_0xb6321d['data']['oldValue']&&!_0x4ba00b['newValue'])||!_0x1cf246&&_0xb6321d['data']['key']==m))return _0x3f7e7a;_0xb6321d=_0xb6321d['next'];}if(null==_0x4ba00b['newValue'])switch(_0x4ba00b['oldValue']){case'bulleted':return _0x861b19(o(_0x54641f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x861b19(o(_0x54641f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x861b19(o(_0x54641f,'ELEMENT_TODO_LIST'));}switch(_0x4ba00b['newValue']){case'bulleted':return _0x214546(o(_0x54641f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x214546(o(_0x54641f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x214546(o(_0x54641f,'ELEMENT_TODO_LIST'));}}),_0x2c729e['_descriptionFactory']['registerDescriptionCallback'](_0x159b45=>{const {data:_0x17caea}=_0x159b45;if(_0x17caea&&'listIndent'==_0x17caea['key'])return null==_0x17caea['newValue']||null==_0x17caea['oldValue']&&0x0==_0x17caea['newValue']?_0x3f7e7a:void 0x0;}),_0x2c729e['_descriptionFactory']['registerDescriptionCallback'](_0x5a4a33=>{if('attribute'!=_0x5a4a33['type'])return;const {data:_0x5347cd}=_0x5a4a33;if(!_0x5347cd||'listItemId'!=_0x5347cd['key'])return;const _0x5e4645=le(_0x5a4a33);return _0x5e4645?'newValue'==_0x5e4645?{'type':'format','content':o(_0x54641f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5e4645?{'type':'format','content':o(_0x54641f,'*Split:*\x20list\x20item')}:_0x3f7e7a:_0x3f7e7a;}),_0x22dd70['model']['document']['registerPostFixer'](_0x29c2d3=>this['listItemIdFixer'](_0x29c2d3)),_0x22dd70['model']['document']['registerPostFixer'](_0x51e585=>this['noTrackChangesFixer'](_0x51e585)),_0x22dd70['model']['document']['registerPostFixer'](_0x2b2a46=>this['assureChains'](_0x2b2a46)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4504f4){if(_0x4504f4['batch']['isUndo']||!_0x4504f4['batch']['isLocal'])return!0x1;let _0x2d58ab=!0x1;const _0x2f446f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe41c62=>_0xe41c62['data']&&'listItemId'==_0xe41c62['data']['key'])['filter'](_0x2dbab9=>_0x2dbab9['data']['newValue']&&_0x2dbab9['data']['oldValue']);for(const _0x1aeaa3 of _0x2f446f)le(_0x1aeaa3)||(_0x4504f4['removeMarker'](_0x1aeaa3['getFirstMarker']()),_0x2d58ab=!0x0);return _0x2d58ab;}['noTrackChangesFixer'](_0x5177e2){if(_0x5177e2['batch']['isUndo']||!_0x5177e2['batch']['isLocal'])return!0x1;const _0x2b1e7c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2b1e7c['trackChangesCommand']['value'])return!0x1;let _0x384df4=!0x1;const _0x45419d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5a8ed4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x11f06a=>'attribute'==_0x11f06a['type'])['filter'](_0x36b5b2=>_0x45419d['includes'](_0x36b5b2['attributeKey']));if(0x0==_0x5a8ed4['length'])return _0x384df4;for(const _0x23abba of _0x5a8ed4){const _0x16ffb4=_0x2b1e7c['_findSuggestions'](_0x23abba['range'],'attribute')['filter'](_0x4bfb14=>!_0x4bfb14['meta']['isNextTo'])['map'](_0x547c1b=>_0x547c1b['suggestion'])['filter'](_0x559f25=>{const _0x13d1d8=_0x2b1e7c['_getAttributeKey'](_0x559f25);return _0x45419d['includes'](_0x13d1d8);});if(_0x16ffb4['length']){for(const _0x3f0a7e of _0x16ffb4)_0x5177e2['removeMarker'](_0x3f0a7e['getFirstMarker']());_0x384df4=!0x0;}}return _0x384df4;}['assureChains'](_0x4a4f8b){if(_0x4a4f8b['batch']['isUndo']||!_0x4a4f8b['batch']['isLocal'])return!0x1;const _0x5d40a4=this['editor']['plugins']['get']('TrackChangesEditing');let _0x57e813=!0x1;const _0x3ff61a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5a3afb of _0x5d40a4['getSuggestions']({'skipNotAttached':!0x0})){const _0x2cc41b=_0x5d40a4['_findSuggestions'](_0x5a3afb['getFirstRange'](),'attribute')['map'](_0x40366b=>_0x40366b['suggestion'])['filter'](_0x232bcd=>_0x232bcd['data']&&_0x3ff61a['includes'](_0x232bcd['data']['key']));if(!_0x2cc41b['length'])continue;const _0x7246bf=_0x2cc41b[0x0]['head']['attributes']['groupId'];if(!_0x2cc41b['every'](_0x3ba015=>_0x3ba015['attributes']['groupId']===_0x7246bf)){for(const _0x441907 of _0x2cc41b)_0x5b6170(_0x441907,_0x7246bf)&&(_0x57e813=!0x0);}}return _0x57e813;function _0xd0a585(_0x4aaae2,_0xaa663a){for(const _0x219954 of _0x5d40a4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f91fd=>'attribute'==_0x1f91fd['type']&&_0x1f91fd['attributes']['groupId']==_0x4aaae2))_0x219954['setAttribute']('groupId',_0xaa663a);}function _0x5b6170(_0x43b4fb,_0x1a8c37){let _0x521800=_0x43b4fb['head'],_0xa16a29=!0x1;for(;_0x521800;)_0x521800['attributes']['groupId']!=_0x1a8c37&&(_0xd0a585(_0x521800['attributes']['groupId'],_0x1a8c37),_0x521800['setAttribute']('groupId',_0x1a8c37),_0xa16a29=!0x0),_0x521800=_0x521800['next'];return _0xa16a29;}}['_supportLegacySuggestions'](){const _0x114ec5=this['editor'],_0x3f24f5=_0x114ec5['locale'],_0x5579fe=_0x114ec5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5579fe['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2f349f,_0x3d4073){const _0x45a419=[];for(let _0x307d97 of _0x2f349f)_0x307d97['start']['nodeAfter']===_0x307d97['end']['parent']&&(_0x307d97=_0x114ec5['model']['createRange'](_0x114ec5['model']['createPositionAt'](_0x307d97['start']['nodeAfter'],0x0))),_0x45a419['push'](_0x307d97);_0x114ec5['model']['change'](_0x18b1f5=>{const _0x47ef36=_0x114ec5['model']['document']['selection'],_0x119f72=Array['from'](_0x47ef36['getRanges']())['map'](_0x144bd2=>_0x40e8d5['fromRange'](_0x144bd2));_0x18b1f5['setSelection'](_0x45a419),_0x114ec5['commands']['get'](_0x3d4073['commandName'])['refresh'](),_0x3d4073['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x114ec5['execute'](_0x3d4073['commandName'],..._0x3d4073['commandParams']),_0x18b1f5['setSelection'](_0x119f72);for(const _0x50fc82 of _0x119f72)_0x50fc82['detach']();});}),_0x5579fe['_descriptionFactory']['registerElementLabel'](function(_0x3f8379){const _0x1b1a2e=!_0x114ec5['model']['schema']['isObject'](_0x3f8379),_0x5ca00a=_0x3f8379['previousSibling'],_0x24d07f=_0x3f8379['nextSibling'],_0x3f21a1=_0x3f8379['getAttribute']('listItemId'),_0x487886=!_0x5ca00a||_0x5ca00a['getAttribute']('listItemId')!==_0x3f21a1,_0x4d5114=!_0x24d07f||_0x24d07f['getAttribute']('listItemId')!==_0x3f21a1;return _0x1b1a2e&&Boolean(_0x3f21a1)&&_0x487886&&_0x4d5114;},_0x1297a2=>o(_0x3f24f5,'ELEMENT_LIST_ITEM',_0x1297a2));}['_registerLegacyDescription'](){const _0x1ef5bc=this['editor'],_0x1882ef=_0x1ef5bc['locale'];function _0x3507f1(_0xea879d){const _0x3aa4cb=_0x1ef5bc['commands']['get']('bulletedList')['value'],_0x2cd869=_0x1ef5bc['commands']['get']('numberedList')['value'];return'numberedList'===_0xea879d?_0x3aa4cb:_0x2cd869;}_0x1ef5bc['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](function(_0x4b8fdd){if('formatBlock'!=_0x4b8fdd['type'])return;const {data:_0x1b9d12}=_0x4b8fdd;if(!_0x1b9d12)return;let _0x3726f2,_0xebc0fa,_0x911ebb,_0x33e722;switch(_0x1b9d12['commandName']){case'bulletedList':_0x911ebb=_0x1b9d12['commandParams'][0x0]['forceValue'],_0x33e722=_0x3507f1(_0x1b9d12['commandName']),_0x3726f2=_0x911ebb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x33e722&&_0x1ef5bc['config']['get']('list.multiBlock')||(_0x3726f2='*Change\x20to:*\x20%0'),_0xebc0fa={'type':'format','content':o(_0x1882ef,_0x3726f2,o(_0x1882ef,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x911ebb=_0x1b9d12['commandParams'][0x0]['forceValue'],_0x33e722=_0x3507f1(_0x1b9d12['commandName']),_0x3726f2=_0x911ebb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x33e722&&_0x1ef5bc['config']['get']('list.multiBlock')||(_0x3726f2='*Change\x20to:*\x20%0'),_0xebc0fa={'type':'format','content':o(_0x1882ef,_0x3726f2,o(_0x1882ef,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3726f2='*Indent:*\x20%0',_0xebc0fa={'type':'format','content':o(_0x1882ef,_0x3726f2,o(_0x1882ef,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3726f2=function(_0x534ddc){const _0xcc6eb2=_0x534ddc['getFirstRange']();let _0x5f236f=_0xcc6eb2['start']['nodeAfter'];for(;_0x5f236f&&_0xcc6eb2['containsItem'](_0x5f236f);){if(_0x5f236f['getAttribute']('listIndent')>0x0)return!0x1;_0x5f236f=_0x5f236f['nextSibling'];}return!0x0;}(_0x4b8fdd)?o(_0x1882ef,'*Format:*\x20remove\x20from\x20%0',o(_0x1882ef,function(_0x58a09d){return'ELEMENT_'+_0x58a09d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4b8fdd))):o(_0x1882ef,'*Outdent:*\x20%0',o(_0x1882ef,'ELEMENT_LIST_ITEM')),_0xebc0fa={'type':'format','content':_0x3726f2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1b9d12['multipleBlocks']&&(_0x3726f2='*Merge:*\x20%0',_0xebc0fa={'type':'deletion','content':o(_0x1882ef,_0x3726f2,o(_0x1882ef,'ELEMENT_LIST_ITEM'))});}return _0xebc0fa;});}}function le(_0xa352bb){let _0x5a1a6c=_0xa352bb['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5a1a6c;){const _0x38fd33=_0x5a1a6c['getAttribute']('listItemId');if(!_0x38fd33)return!0x1;if(_0x38fd33==_0xa352bb['data']['newValue'])return'newValue';if(_0x38fd33==_0xa352bb['data']['oldValue'])return'oldValue';_0x5a1a6c=_0x5a1a6c['previousSibling'];}return!0x1;}class ue extends _0xf56dee{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58d5de=this['editor']['config']['get']('list.properties'),_0x39b9b3=this['editor']['plugins']['get']('TrackChangesEditing');_0x58d5de['styles']&&_0x39b9b3['_enableDefaultAttributesIntegration']('listStyle',[],['listStyle']),_0x58d5de['reversed']&&_0x39b9b3['_enableDefaultAttributesIntegration']('listReversed',[],['listReversed']),_0x58d5de['startIndex']&&_0x39b9b3['_enableDefaultAttributesIntegration']('listStart',[],['listStart']);const _0x55e84b={'type':'format','content':''};_0x39b9b3['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x548c88=this['editor']['locale'];_0x39b9b3['_descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x548c88,'FORMAT_LIST_REVERSED')),_0x39b9b3['_descriptionFactory']['registerDescriptionCallback'](_0x32c71a=>{const {data:_0x2bd6b1}=_0x32c71a;if(_0x2bd6b1&&'listReversed'==_0x2bd6b1['key'])return null==_0x2bd6b1['newValue']||0x0==_0x2bd6b1['newValue']&&null==_0x2bd6b1['oldValue']?_0x55e84b:void 0x0;}),_0x39b9b3['_descriptionFactory']['registerAttributeLabel']('listStart',o(_0x548c88,'FORMAT_LIST_START')),_0x39b9b3['_descriptionFactory']['registerDescriptionCallback'](_0x30a50a=>{const {data:_0x5a26a1}=_0x30a50a;if(_0x5a26a1&&'listStart'==_0x5a26a1['key'])return null==_0x5a26a1['newValue']||0x1==_0x5a26a1['newValue']&&null==_0x5a26a1['oldValue']?_0x55e84b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4f8836=>{if(_0x4f8836['batch']['isUndo'])return!0x1;let _0x3d3f62=!0x1;const _0x93e096=_0x39b9b3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bbc6c=>{const _0x23ac21=_0x39b9b3['_getAttributeKey'](_0x4bbc6c);return'listStart'==_0x23ac21||'listReversed'==_0x23ac21;});for(const _0x42f1ea of _0x93e096){const _0x4b06dc=_0x42f1ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4b06dc||'customNumbered'==_0x4b06dc)continue;_0x39b9b3['_findSuggestions'](_0x42f1ea['getFirstRange'](),'attribute')['find'](_0x4955dc=>'listType'==_0x39b9b3['_getAttributeKey'](_0x4955dc['suggestion']))||(_0x4f8836['removeMarker'](_0x42f1ea['getFirstMarker']()),_0x3d3f62=!0x0);}return _0x3d3f62;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x25c16e){const _0x175eff=this['editor']['locale'],{data:_0x996b9d}=_0x25c16e,_0x151dd1={'type':'format','content':''};if(!_0x996b9d||'listStyle'!=_0x996b9d['key'])return;if(!_0x996b9d['oldValue'])return'default'==_0x996b9d['newValue']?_0x151dd1:{'type':'format','content':''+o(_0x175eff,'*Set\x20format:*\x20%0',o(_0x175eff,this['_getTranslationKeyForListStyle'](_0x996b9d['newValue'])))};if(!_0x996b9d['newValue']){if('default'==_0x996b9d['oldValue'])return _0x151dd1;let _0x48e5a4=_0x25c16e['head'];for(;_0x48e5a4;){if(_0x48e5a4['data']&&'listType'==_0x48e5a4['data']['key']&&_0x48e5a4['data']['newValue'])return _0x151dd1;_0x48e5a4=_0x48e5a4['next'];}return{'type':'format','content':''+o(_0x175eff,'*Remove\x20format:*\x20%0',o(_0x175eff,this['_getTranslationKeyForListStyle'](_0x996b9d['oldValue'])))};}if('default'!=_0x996b9d['newValue'])return{'type':'format','content':''+o(_0x175eff,'*Set\x20format:*\x20%0',o(_0x175eff,this['_getTranslationKeyForListStyle'](_0x996b9d['newValue'])))};let _0x593d47=_0x25c16e['head'];for(;_0x593d47;){if(_0x593d47['data']&&'listType'==_0x593d47['data']['key']&&_0x593d47['data']['newValue']&&_0x593d47['data']['oldValue'])return _0x151dd1;_0x593d47=_0x593d47['next'];}return{'type':'format','content':o(_0x175eff,'*Set\x20format:*\x20%0',o(_0x175eff,'ELEMENT_'+_0x25c16e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5454d5=this['editor'],_0x4c61c3=_0x5454d5['locale'];_0x5454d5['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x322897=>{if('formatBlock'!=_0x322897['type'])return;const {data:_0x2bf656}=_0x322897;if(!_0x2bf656)return;let _0x1ff84f,_0xa27105;switch(_0x2bf656['commandName']){case'listStyle':_0x1ff84f='*Change\x20to:*\x20%0',_0xa27105={'type':'format','content':o(_0x4c61c3,_0x1ff84f,o(_0x4c61c3,this['_getTranslationKeyForListStyle'](_0x2bf656['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ff84f=_0x2bf656['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xa27105={'type':'format','content':o(_0x4c61c3,_0x1ff84f)};break;case'listStart':_0x1ff84f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xa27105={'type':'format','content':o(_0x4c61c3,_0x1ff84f,_0x2bf656['commandParams'][0x0]['startIndex'])};}return _0xa27105;});}['_getTranslationKeyForListStyle'](_0xa4d34){return'ELEMENT_'+function(_0x4c1b0b){if(pe['includes'](_0x4c1b0b))return'bulleted';if(ye['includes'](_0x4c1b0b))return'numbered';return null;}(_0xa4d34)['toUpperCase']()+'_LIST_'+_0xa4d34['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0xf56dee{static get['requires'](){return[_0x33541a];}['init'](){const _0x4049dd=this['editor'],_0x4f1876=_0x4049dd['plugins']['get']('TrackChangesEditing'),_0x525753=_0x4049dd['commands']['get']('enter');_0x4f1876['enableCommand']('enter',()=>{_0x4049dd['model']['change'](_0x23e683=>{const _0x5ef02d=_0x4049dd['model']['document']['selection'],_0xf72cf9=_0x5ef02d['getFirstPosition'](),_0x1533c6=_0x40e8d5['fromRange'](_0x5ef02d['getFirstRange']());if(_0x525753['enterBlock'](_0x23e683)){const _0x5398b8=_0x4049dd['model']['createPositionAt'](_0xf72cf9['parent']['nextSibling'],0x0),_0x37fc32=_0x23e683['createRange'](_0xf72cf9,_0x5398b8);_0x4f1876['markInsertion'](_0x37fc32);}else _0x23e683['setSelection'](_0x23e683['createRange'](_0x1533c6['end']));_0x1533c6['detach'](),_0x525753['fire']('afterExecute',{'writer':_0x23e683});});}),_0x4049dd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4049dd,'split'),{'priority':'high'}),_0x4049dd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5989aa,_0x5df278,_0x161ec6)=>{const _0x54b321=_0x161ec6['mapper']['markerNameToElements'](_0x5df278['markerName']);if(_0x54b321){for(const _0x479023 of _0x54b321)_0x479023['hasClass']('ck-suggestion-marker-split')&&(_0x161ec6['mapper']['unbindElementFromMarkerName'](_0x479023,_0x5df278['markerName']),_0x161ec6['writer']['remove'](_0x479023));}},{'priority':'high'}),_0x4049dd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x50a598,_0x1e1732,_0x325517)=>{_0x325517['options']['showSuggestionHighlights']&&_e(_0x4049dd,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x50a598,_0x1e1732,_0x325517);},{'priority':'high'});}}class J extends _0xf56dee{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x34ef94=this['editor']['plugins']['get']('TrackChangesEditing');_0x34ef94['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x34ef94['enableCommand']('findNext'),_0x34ef94['enableCommand']('findPrevious'),_0x34ef94['enableCommand']('replace'),_0x34ef94['enableCommand']('replaceAll');}['handleFindCommand'](_0x51f5ea,_0x3f2efc,_0x1a0c9b={}){const _0x467f13=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x51f5ea(_0x579993=>('string'==typeof _0x3f2efc?_0x467f13['findByTextCallback'](_0x3f2efc,_0x1a0c9b):_0x3f2efc)(_0x579993)['filter'](_0x38df85=>!0x1===this['_isInDeletionRange'](_0x38df85,_0x579993['item'])),_0x1a0c9b);}['_isInDeletionRange'](_0x35ece2,_0x33bacb){const _0x2b76ba=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33bacb,_0x35ece2['start']),this['editor']['model']['createPositionAt'](_0x33bacb,_0x35ece2['end']));for(const _0x58a092 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2b76ba['getIntersection'](_0x58a092['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0xf56dee{['afterInit'](){const _0x5482ae=this['editor']['locale'],_0x365ffa=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x12d17b,commandName:_0x1925fb}of ro)this['editor']['plugins']['has'](_0x12d17b)&&_0x365ffa['_enableDefaultAttributesIntegration'](_0x1925fb,[_0x1925fb]);_0x5482ae['t'],_0x365ffa['_descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5482ae,'FORMAT_FONT_SIZE')),_0x365ffa['_descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5482ae,'FORMAT_FONT_FAMILY')),_0x365ffa['_descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5482ae,'FORMAT_FONT_COLOR')),_0x365ffa['_descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5482ae,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x562734=this['editor'],_0x3bb7c3=_0x562734['locale'];_0x562734['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x594cc1=>{const _0x255372=_0x3bb7c3['t'];if('formatInline'!=_0x594cc1['type'])return;const {data:_0xacfe94}=_0x594cc1;if(null!=_0xacfe94){if('fontSize'==_0xacfe94['commandName']){const _0x595091=_0xacfe94['commandParams'][0x0]['value'];if(_0x595091){const _0x3fd596=_0x255372(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x245a0c=>_0x245a0c['model']==_0x595091)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3bb7c3,'*Set\x20font\x20size:*\x20%0',_0x3fd596)};}return{'type':'format','content':o(_0x3bb7c3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xacfe94['commandName']){const _0x676074=_0xacfe94['commandParams'][0x0]['value'];return _0x676074?{'type':'format','content':o(_0x3bb7c3,'*Set\x20font\x20family:*\x20%0',_0x676074)}:{'type':'format','content':o(_0x3bb7c3,'*Reset\x20font\x20family*')};}if('fontColor'==_0xacfe94['commandName']){const _0x1b62fe=_0xacfe94['commandParams'][0x0]['value'];if(_0x1b62fe){const _0x24f0d2=_0x3067ec(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a9765=>_0x4a9765['model']==_0x1b62fe);let _0x22cae9=_0x1b62fe,_0x290783='';return _0x24f0d2&&(_0x22cae9=_0x24f0d2['label'],_0x290783=_0x255372(_0x22cae9)['toLowerCase']()),{'type':'format','content':o(_0x3bb7c3,'*Set\x20font\x20color:*\x20%0',_0x290783)['trim'](),'color':{'value':_0x1b62fe,'title':_0x290783||_0x22cae9}};}return{'type':'format','content':o(_0x3bb7c3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xacfe94['commandName']){const _0x864444=_0xacfe94['commandParams'][0x0]['value'];if(_0x864444){const _0x187f1e=_0x3067ec(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe48b70=>_0xe48b70['model']==_0x864444);let _0x28a9d3=_0x864444,_0x2f1442='';return _0x187f1e&&(_0x28a9d3=_0x187f1e['label'],_0x2f1442=_0x255372(_0x28a9d3)['toLowerCase']()),{'type':'format','content':o(_0x3bb7c3,'*Set\x20font\x20background\x20color:*\x20%0',_0x2f1442)['trim'](),'color':{'value':_0x864444,'title':_0x2f1442||_0x28a9d3}};}return{'type':'format','content':o(_0x3bb7c3,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0xf56dee{['afterInit'](){const _0x4d193e=this['editor'],_0x89fe6b=_0x4d193e['plugins']['get']('TrackChangesEditing'),_0x74bcea=_0x4d193e['commands']['get']('copyFormat'),_0x3dae51=_0x4d193e['commands']['get']('pasteFormat');_0x74bcea&&_0x3dae51&&(_0x89fe6b['_enableDefaultAttributesIntegration']('pasteFormat'),_0x89fe6b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3a2aa8=this['editor'],_0x4de672=_0x3a2aa8['locale'];_0x3a2aa8['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x488922=>{if('formatBlock'!=_0x488922['type']&&'formatInline'!=_0x488922['type'])return;const {data:_0x46319c}=_0x488922;if(_0x46319c&&'pasteFormat'===_0x46319c['commandName']){const _0xaab19b=[],_0x402003=_0x46319c['commandParams'][0x0];for(const [_0x39df52,_0x469a7f]of Object['entries'](_0x402003))_0xaab19b['push'](so(_0x3a2aa8,_0x39df52,_0x469a7f));return _0xaab19b['length']?{'type':'format','content':o(_0x4de672,'*Set\x20format\x20to:*\x20%0',_0xaab19b['join'](',\x20'))}:{'type':'format','content':o(_0x4de672,'*Remove\x20all\x20formatting*')};}});}}function so(_0x16b013,_0x103d4f,_0x23b8e4){const _0x20fde5=_0x16b013['locale']['t'],_0x58cbf3=_0x103d4f['split'](/(?=[A-Z])/)['join']('\x20'),_0x3936a6=_0x20fde5(_0x58cbf3['charAt'](0x0)['toUpperCase']()+_0x58cbf3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x23b8e4)return _0x3936a6;if('fontColor'===_0x103d4f||'fontBackgroundColor'===_0x103d4f){const _0xc3da29=_0x3067ec(_0x16b013['config']['get']('fontColor.colors'))['find'](_0x56fb16=>_0x56fb16['model']==_0x23b8e4);return _0x3936a6+'\x20('+(_0xc3da29?_0x20fde5(_0xc3da29['label'])['toLowerCase']():_0x23b8e4)+')';}if('fontSize'===_0x103d4f&&isNaN(parseFloat(_0x23b8e4))){const _0x25ea24=_0x16b013['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x16b013['config']['get']('fontSize.options'))['find'](_0x1c57af=>_0x1c57af['model']==_0x23b8e4);return _0x3936a6+'\x20('+(_0x25ea24?_0x20fde5(_0x25ea24['title'])['toLowerCase']():_0x23b8e4)+')';}return _0x3936a6+'\x20('+_0x23b8e4+')';}class Y extends _0xf56dee{['afterInit'](){const _0x1d710c=this['editor'];if(!_0x1d710c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1d710c['config']['get']('heading.options');const _0x2bac0a=_0x1d710c['locale'],_0x101354=_0x1d710c['plugins']['get']('TrackChangesEditing');_0x101354['_enableDefaultAttributesIntegration']('heading');for(const _0x267730 of this['_headingOptions'])'paragraph'!=_0x267730['model']&&_0x101354['_descriptionFactory']['registerElementLabel'](_0x267730['model'],_0x5a9288=>{const _0x39c6fd=this['_getHeadingLevel'](_0x267730['model']);return null!==_0x39c6fd?_0x37f64d(_0x5a9288,_0x39c6fd):_0x104847(_0x5a9288,_0x267730['title']);});function _0x37f64d(_0x4f13e7,_0x54d6d6){return o(_0x2bac0a,'ELEMENT_HEADING',[_0x4f13e7,_0x54d6d6]);}function _0x104847(_0x9a4a39,_0x507226){return o(_0x2bac0a,'ELEMENT_HEADING_CUSTOM',[_0x9a4a39,_0x507226]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5eb0c4=this['editor'],_0x539048=_0x5eb0c4['locale'];function _0x47bfc4(_0x1cbd05,_0x31d6a8){return o(_0x539048,'ELEMENT_HEADING_CUSTOM',[_0x1cbd05,_0x31d6a8]);}_0x5eb0c4['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x546374=>{if('formatBlock'!=_0x546374['type'])return;const {data:_0x5e6e0c}=_0x546374;if(_0x5e6e0c&&'heading'==_0x5e6e0c['commandName']){const _0x54a6ed=_0x5e6e0c['commandParams'][0x0]['value'],_0x2f0a4b=this['_getHeadingLevel'](_0x54a6ed);if(null!==_0x2f0a4b)return{'type':'format','content':o(_0x539048,'*Change\x20to:*\x20%0',(_0x519be8=0x1,_0x190e96=_0x2f0a4b,o(_0x539048,'ELEMENT_HEADING',[_0x519be8,_0x190e96])))};const _0x10fb73=this['_headingOptions']['find'](_0x24a378=>_0x24a378['model']===_0x54a6ed)['title'];return{'type':'format','content':o(_0x539048,'*Change\x20to:*\x20%0',_0x47bfc4(0x1,_0x10fb73))};}var _0x519be8,_0x190e96;});}['_getHeadingLevel'](_0x1e23d2){var _0x3fe1e8,_0x69e20d;const _0x3548fe=_0x1e23d2['match'](/^heading(\d+)/);if(_0x3548fe)return _0x3548fe[0x1];const _0x45c705=null===(_0x3fe1e8=this['_headingOptions'])||void 0x0===_0x3fe1e8?void 0x0:_0x3fe1e8['find'](_0x1f99bd=>_0x1f99bd['model']==_0x1e23d2);if(_0x45c705&&_0x45c705['view']){const _0x5798f3=_0x45c705['view'],_0x1e071a=(null!==(_0x69e20d=_0x5798f3['name'])&&void 0x0!==_0x69e20d?_0x69e20d:_0x5798f3)['match'](/^h(\d+)/);if(_0x1e071a)return _0x1e071a[0x1];}return null;}}class Z extends _0xf56dee{['afterInit'](){const _0x4780fa=this['editor'];if(!_0x4780fa['plugins']['has']('HighlightEditing'))return;const _0x2f397b=_0x4780fa['plugins']['get']('TrackChangesEditing'),_0x2f63be=_0x4780fa['locale'];_0x2f397b['_enableDefaultAttributesIntegration']('highlight',['highlight']),_0x2f397b['_descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2f63be,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e7c99=this['editor'],_0x3bfc30=_0x4e7c99['locale'];_0x4e7c99['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x3553ac=>{if('formatInline'!=_0x3553ac['type'])return;const {data:_0x37d774}=_0x3553ac;if(_0x37d774&&'highlight'==_0x37d774['commandName']){const _0x5a2049=_0x3bfc30['t'],_0x104aec=_0x37d774['commandParams'][0x0]['value'];if(_0x104aec){const _0x24aa3c=_0x4e7c99['config']['get']('highlight.options')['find'](_0x4916fd=>_0x4916fd['model']==_0x104aec),_0xbecdda=_0x5a2049(_0x24aa3c['title'])['toLowerCase']();return{'type':'format','content':o(_0x3bfc30,'*Set\x20highlight:*\x20%0',_0xbecdda),'color':{'value':_0x24aa3c['color'],'title':_0x24aa3c['title']}};}return{'type':'format','content':o(_0x3bfc30,'*Remove\x20highlight*',o(_0x3bfc30,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0xf56dee{['afterInit'](){const _0x32e17d=this['editor'];if(!_0x32e17d['plugins']['has']('HorizontalLineEditing'))return;_0x32e17d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4cd15f=_0x32e17d['plugins']['get']('TrackChangesEditing'),_0x2b18ba=_0x32e17d['locale'];_0x4cd15f['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x547c85=>o(_0x2b18ba,'ELEMENT_HORIZONTAL_LINE',_0x547c85)),_0x32e17d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x309cf8,{writer:_0x2abb73,options:_0x5e9c38})=>{if(!_0x5e9c38['showSuggestionHighlights'])return null;const _0x58a172=_0x2abb73['createContainerElement']('div'),_0x96ee8b=_0x2abb73['createEmptyElement']('hr');return _0x2abb73['addClass']('ck-horizontal-line',_0x58a172),_0x2abb73['insert'](_0x2abb73['createPositionAt'](_0x58a172,0x0),_0x96ee8b),_0x58a172;},'converterPriority':'high'});}}class et extends _0xf56dee{['afterInit'](){const _0x2ccdb1=this['editor'];if(!_0x2ccdb1['plugins']['has']('HtmlEmbed'))return;const _0xba168e=_0x2ccdb1['plugins']['get']('TrackChangesEditing'),_0x6be2e6=_0x2ccdb1['locale'];_0xba168e['_descriptionFactory']['registerElementLabel']('rawHtml',_0x2b96cf=>o(_0x6be2e6,'ELEMENT_HTML_EMBED',_0x2b96cf)),_0xba168e['_enableDefaultAttributesIntegration']('htmlEmbed',[],['value']),_0xba168e['_descriptionFactory']['registerDescriptionCallback'](_0x3fc039=>{if('attribute'!=_0x3fc039['type'])return;const {data:_0x9d044f}=_0x3fc039;if(_0x9d044f&&'value'==_0x9d044f['key']&&_0x3fc039['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3fbf98=o(_0x6be2e6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x6be2e6,'*Change\x20%0\x20content*',_0x3fbf98)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5df461=this['editor'],_0x539664=_0x5df461['locale'];_0x5df461['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2109bb=>{if('formatBlock'!=_0x2109bb['type'])return;const {data:_0x4cee76}=_0x2109bb;if(_0x4cee76&&'htmlEmbed'==_0x4cee76['commandName']){const _0x4cc1ce=o(_0x539664,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x539664,'*Change\x20%0\x20content*',_0x4cc1ce)};}});}}class it extends _0xf56dee{['afterInit'](){const _0x3bfb17=this['editor'];if(!_0x3bfb17['plugins']['has']('ImageEditing'))return;const _0x2dd07e=_0x3bfb17['plugins']['get']('TrackChangesEditing'),_0x2bca50=_0x3bfb17['plugins']['get']('ImageUtils'),_0x1e78f0=_0x3bfb17['locale'];_0x2dd07e['enableCommand']('insertImage'),_0x2dd07e['_descriptionFactory']['registerElementLabel']('imageBlock',_0x4d0768=>o(_0x1e78f0,'ELEMENT_IMAGE',_0x4d0768)),_0x2dd07e['_descriptionFactory']['registerElementLabel']('imageInline',_0x420d81=>o(_0x1e78f0,'ELEMENT_INLINE_IMAGE',_0x420d81)),_0x2dd07e['_descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1e78f0,'ELEMENT_CAPTION')),_0x3bfb17['plugins']['has']('ImageUploadEditing')&&_0x2dd07e['enableCommand']('uploadImage'),_0x3bfb17['plugins']['has']('ImageBlockEditing')&&_0x3bfb17['plugins']['has']('ImageInlineEditing')&&(_0x2dd07e['enableCommand']('imageTypeInline',(_0x1c2cf2,_0x148096)=>{const _0x39a330=_0x2bca50['getClosestSelectedImageElement'](_0x3bfb17['model']['document']['selection']);_0x3bfb17['model']['change'](()=>{_0x2dd07e['markBlockFormat'](_0x39a330,{'commandName':'imageTypeInline','commandParams':[_0x148096]},[],'convertBlockImageToInline');});}),_0x2dd07e['enableCommand']('imageTypeBlock',(_0x14f176,_0x3ffde6)=>{_0x3bfb17['model']['change'](_0x3f8c3f=>{let _0x4b5584=_0x2bca50['getClosestSelectedImageElement'](_0x3bfb17['model']['document']['selection']),_0x1d2b49=_0x3f8c3f['createRangeOn'](_0x4b5584);const _0x3b22d7=_0x58d4b4['fromPosition'](_0x1d2b49['start'],'toPrevious'),_0x1cb2dd=_0x58d4b4['fromPosition'](_0x1d2b49['end'],'toNext');_0x2dd07e['forceDefaultExecution'](()=>_0x14f176(_0x3ffde6)),_0x4b5584=_0x2bca50['getClosestSelectedImageElement'](_0x3bfb17['model']['document']['selection']),_0x1d2b49=_0x3f8c3f['createRangeOn'](_0x4b5584);const _0xa2c51c=_0x3f8c3f['createRange'](_0x3b22d7,_0x1cb2dd);_0x3b22d7['detach'](),_0x1cb2dd['detach'](),_0x2dd07e['markBlockFormat'](_0x4b5584,{'commandName':'imageTypeInline','commandParams':[_0x3ffde6]},[],'convertInlineImageToBlock'),_0xa2c51c['start']['isBefore'](_0x1d2b49['start'])&&_0x2dd07e['markInsertion'](_0x3f8c3f['createRange'](_0xa2c51c['start'],_0x1d2b49['start']),'convertInlineImageToBlock'),_0x1d2b49['end']['isBefore'](_0xa2c51c['end'])&&_0x2dd07e['markInsertion'](_0x3f8c3f['createRange'](_0x1d2b49['end'],_0xa2c51c['end']),'convertInlineImageToBlock');});}),_0x2dd07e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2dd07e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2dd07e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2dd07e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2dd07e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2dd07e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4b6068])=>{const _0xd652c6=_0x2dd07e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x8a313b=_0x4b6068['start'],_0x18842c=_0x4b6068['end'];const _0x94f5fb=_0x3bfb17['model']['schema']['getNearestSelectionRange'](_0x8a313b,'backward'),_0x1df30c=_0x3bfb17['model']['schema']['getNearestSelectionRange'](_0x18842c,'forward');_0x94f5fb['isCollapsed']&&(_0x8a313b=_0x94f5fb['start']),_0x1df30c['isCollapsed']&&(_0x18842c=_0x1df30c['end']),_0xd652c6([_0x3bfb17['model']['createRange'](_0x8a313b,_0x18842c)]);}),_0x2dd07e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x356846),_0x2dd07e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x356846)),_0x3bfb17['plugins']['has']('ImageCaptionEditing')&&(_0x2dd07e['enableCommand']('toggleImageCaption',(_0x589876,_0x52b0b7)=>{const _0x5be15a=_0x3bfb17['plugins']['get']('ImageCaptionUtils');let _0x32fe9f=_0x2bca50['getClosestSelectedImageElement'](_0x3bfb17['model']['document']['selection']),_0x4e1eef=_0x5be15a['getCaptionFromImageModelElement'](_0x32fe9f);_0x3bfb17['model']['change'](()=>{if(_0x4e1eef)return void _0x2dd07e['markDeletion'](_0x3bfb17['model']['createRangeOn'](_0x4e1eef));const _0xaaf9eb=_0x2bca50['isBlockImage'](_0x32fe9f);_0x589876(_0x52b0b7),_0x32fe9f=_0x2bca50['getClosestSelectedImageElement'](_0x3bfb17['model']['document']['selection']),_0x4e1eef=_0x5be15a['getCaptionFromImageModelElement'](_0x32fe9f),_0x2dd07e['markInsertion'](_0x3bfb17['model']['createRangeOn'](_0x4e1eef),_0xaaf9eb?null:'imageCaption');});}),_0x2dd07e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x356846));const _0x33399e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4e862c(_0x13aeb2,_0x480ef7){const _0xb36a6b=_0x33399e['findIndex'](({type:_0x70b9c8,subType:_0x6dafb2})=>_0x13aeb2['type']==_0x70b9c8&&_0x13aeb2['subType']==_0x6dafb2),_0x35e4b2=_0x33399e['findIndex'](({type:_0xe10ad2,subType:_0x304908})=>_0x480ef7['type']==_0xe10ad2&&_0x480ef7['subType']==_0x304908);if(_0xb36a6b<0x0||_0x35e4b2<0x0)return!0x1;const _0x2c365f=_0x13aeb2['getFirstRange'](),_0x24a3af=_0x480ef7['getFirstRange']();if((0x0==_0xb36a6b||0x1==_0xb36a6b)&&0x2==_0x35e4b2&&_0x2c365f['isIntersecting'](_0x24a3af))return!0x0;if(0x2==_0xb36a6b&&0x3==_0x35e4b2){const _0x119790=_0x2dd07e['_findSuggestions'](_0x2c365f,'insertion')['filter'](({suggestion:_0x5d2f9c,meta:_0x2a1f90})=>_0x2a1f90['isOwn']&&'convertInlineImageToBlock'==_0x5d2f9c['subType']);if(_0x119790['length']>0x1&&_0x24a3af['end']['isEqual'](_0x2c365f['start']))return!0x0;if(0x1==_0x119790['length']&&(_0x2c365f['start']['isEqual'](_0x24a3af['end'])||_0x2c365f['end']['isEqual'](_0x24a3af['start'])))return!0x0;}if(0x3==_0xb36a6b&&0x3==_0x35e4b2&&_0x2c365f['start']['isBefore'](_0x24a3af['start'])){const _0x49d137=_0x2c365f['end']['nodeAfter'],_0x19bb82=_0x24a3af['start']['nodeBefore'];return _0x2bca50['isBlockImage'](_0x49d137)&&_0x49d137===_0x19bb82;}return!0x1;}function _0x356846(_0x2926f7,_0x386bcf){return _0x4e862c(_0x2926f7,_0x386bcf)?[_0x2926f7,_0x386bcf]:_0x4e862c(_0x386bcf,_0x2926f7)?[_0x386bcf,_0x2926f7]:null;}_0x3bfb17['plugins']['has']('ImageResize')&&(_0x2dd07e['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0x2dd07e['_descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1e78f0,'FORMAT_IMAGE_SIZE'))),_0x3bfb17['plugins']['has']('ImageTextAlternativeEditing')&&_0x2dd07e['_enableDefaultAttributesIntegration']('imageTextAlternative',[],['alt']),_0x2dd07e['_descriptionFactory']['registerDescriptionCallback'](_0x1d3ff6=>{if(!!_0x33399e['find'](({type:_0x27de0a,subType:_0x4155de})=>_0x1d3ff6['type']==_0x27de0a&&_0x1d3ff6['subType']==_0x4155de))return _0x1d3ff6['previous']?{}:void 0x0;}),_0x2dd07e['_descriptionFactory']['registerDescriptionCallback'](_0xd2da16=>{if('insertion'==_0xd2da16['type']||'deletion'==_0xd2da16['type']){const _0x180891=_0xd2da16['getContainedElement']();if(_0x180891&&_0x180891['is']('element','caption'))return{'type':'insertion'==_0xd2da16['type']?'addObject':'removeObject','element':_0x180891,'quantity':0x1};}}),_0x2dd07e['_descriptionFactory']['registerDescriptionCallback'](_0x4f0bc8=>'formatBlock'==_0x4f0bc8['type']&&'convertInlineImageToBlock'==_0x4f0bc8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4f0bc8['type']&&'convertBlockImageToInline'==_0x4f0bc8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2dd07e['_descriptionFactory']['registerDescriptionCallback'](_0x5de88a=>{if('attribute'!=_0x5de88a['type'])return;const {data:_0x55d920}=_0x5de88a;if(!_0x55d920||'alt'!=_0x55d920['key'])return;const _0x3ff6af=_0x55d920['newValue'];return _0x3ff6af?{'type':'format','content':o(_0x1e78f0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ff6af+'\x22')}:{'type':'format','content':o(_0x1e78f0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c28c1=this['editor'],_0xf67cfe=_0x5c28c1['locale'];_0x5c28c1['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x33b1b6=>{if('formatBlock'!=_0x33b1b6['type']&&'formatInline'!=_0x33b1b6['type'])return;const {data:_0x1eb73a}=_0x33b1b6;if(_0x1eb73a){if('imageTextAlternative'==_0x1eb73a['commandName']){const _0x42b8d2=_0x1eb73a['commandParams'][0x0]['newValue'];return _0x42b8d2?{'type':'format','content':o(_0xf67cfe,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x42b8d2+'\x22')}:{'type':'format','content':o(_0xf67cfe,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1eb73a['commandName']){const _0x1eaecf=_0x1eb73a['commandParams'][0x0]['width'];return _0x1eaecf?{'type':'format','content':o(_0xf67cfe,'*Set\x20image\x20width:*\x20%0',_0x1eaecf)}:{'type':'format','content':o(_0xf67cfe,'*Reset\x20image\x20width*')};}}});}}class st extends _0xf56dee{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1f28ab=this['editor']['locale'],_0x18460d=this['editor']['plugins']['get']('TrackChangesEditing');_0x18460d['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x18460d['_descriptionFactory']['registerDescriptionCallback'](_0xe49ec=>{if('attribute'!=_0xe49ec['type'])return;const {data:_0x35fde9}=_0xe49ec;return _0x35fde9&&'src'==_0x35fde9['key']?_0x35fde9['newValue']&&_0x35fde9['oldValue']?{'type':'format','content':o(_0x1f28ab,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xa6f236=this['editor']['plugins']['get']('TrackChangesEditing');_0xa6f236['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xa6f236['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa6f236['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xa6f236['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19a2ff=this['editor'],_0x19f562=_0x19a2ff['locale'];_0x19a2ff['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x10f25c=>{if('formatBlock'!=_0x10f25c['type']&&'formatInline'!=_0x10f25c['type'])return;const {data:_0x1f2fe8}=_0x10f25c;if(!_0x1f2fe8||'replaceImageSource'!=_0x1f2fe8['commandName'])return;return{'type':'format','content':o(_0x19f562,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0xf56dee{['afterInit'](){const _0xe8d0f5=this['editor'];if(!_0xe8d0f5['plugins']['has']('ImageStyleEditing'))return;const _0x283edb=_0xe8d0f5['plugins']['get']('TrackChangesEditing'),_0x3b3e86=_0xe8d0f5['plugins']['get']('ImageUtils'),_0x5405a5={};_0x283edb['enableCommand']('imageStyle',(_0x16f84e,_0xbed4d5)=>{const _0x36d870=_0xe8d0f5['plugins']['get']('Users')['me'],_0x119687=_0xe8d0f5['commands']['get']('imageStyle');let _0x1ab1e5=_0x3b3e86['getClosestSelectedImageElement'](_0xe8d0f5['model']['document']['selection']),_0x3f1440=_0xe8d0f5['model']['createRangeOn'](_0x1ab1e5),_0x5d1196=_0x119687['value'];if(_0x5d1196==_0xbed4d5['value'])return;const _0x4bfd1a={'commandName':'imageStyle','commandParams':[_0xbed4d5],'formatGroupId':_0x219e6e()};_0xe8d0f5['model']['change'](()=>{if(_0x283edb['getSuggestions']()['filter'](_0x5677e9=>_0x5677e9['isInContent']&&_0x36d870==_0x5677e9['author']&&('formatBlock'==_0x5677e9['type']||'formatInline'==_0x5677e9['type'])&&('imageStylePreApply'==_0x5677e9['subType']||'imageStylePostApply'==_0x5677e9['subType'])&&_0x5677e9['getFirstRange']()['isEqual'](_0x3f1440))['forEach'](_0x3ed2de=>_0x283edb['discardSuggestion'](_0x3ed2de['head'])),_0x1ab1e5=_0x3b3e86['getClosestSelectedImageElement'](_0xe8d0f5['model']['document']['selection']),_0x3f1440=_0xe8d0f5['model']['createRangeOn'](_0x1ab1e5),_0x119687['refresh'](),_0xe8d0f5['commands']['get']('imageTypeInline')['refresh'](),_0xe8d0f5['commands']['get']('imageTypeBlock')['refresh'](),_0x5d1196=_0x119687['value'],_0x5d1196!=_0xbed4d5['value'])return _0x3b3e86['isInlineImage'](_0x1ab1e5)&&_0x119687['shouldConvertImageType'](_0xbed4d5['value'],_0x1ab1e5)?(_0x16f84e({..._0xbed4d5,'setImageSizes':!0x1}),_0x1ab1e5=_0x3b3e86['getClosestSelectedImageElement'](_0xe8d0f5['model']['document']['selection']),void _0x283edb['markBlockFormat'](_0x1ab1e5,{..._0x4bfd1a,'commandReversedParams':[{'value':_0x5d1196||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b3e86['isBlockImage'](_0x1ab1e5)?_0x283edb['markBlockFormat'](_0x1ab1e5,_0x4bfd1a,[],'imageStylePostApply'):_0x283edb['markInlineFormat'](_0x3f1440,_0x4bfd1a,'imageStylePostApply'));});});for(const _0x13c65f of _0xe8d0f5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5405a5[_0x13c65f['name']]=_0x13c65f['title']['toLowerCase']();_0x283edb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x283edb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x283edb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x283edb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3c438f])=>{_0x3b3e86['setImageNaturalSizeAttributes'](_0x3c438f['getContainedElement']());}),_0x283edb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3313cb,_0x386d2e)=>{_0x283edb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3313cb,{'commandName':_0x386d2e['commandName'],'commandParams':_0x386d2e['commandReversedParams']});}),_0x283edb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x57fbd8,_0x2ca071){if(_0x1c7f99(_0x57fbd8,_0x2ca071))return[_0x57fbd8,_0x2ca071];if(_0x1c7f99(_0x2ca071,_0x57fbd8))return[_0x2ca071,_0x57fbd8];return null;});const _0x2e6e96=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1c7f99(_0x39808b,_0x31d1dd){const _0x3fae13=_0x2e6e96['findIndex'](({type:_0x48b247,subType:_0x26609d})=>_0x39808b['type']==_0x48b247&&_0x39808b['subType']==_0x26609d),_0x3b4928=_0x2e6e96['findIndex'](({type:_0x43d5d3,subType:_0x5899db})=>_0x31d1dd['type']==_0x43d5d3&&_0x31d1dd['subType']==_0x5899db);if(_0x3fae13<0x0||_0x3b4928<0x0)return!0x1;const _0x5a0090=_0x39808b['getFirstRange'](),_0x188417=_0x31d1dd['getFirstRange']();if((0x0==_0x3fae13||0x1==_0x3fae13)&&0x2==_0x3b4928&&_0x5a0090['isIntersecting'](_0x188417))return!0x0;if(0x2==_0x3fae13&&0x3==_0x3b4928){const _0x47c760=_0x283edb['_findSuggestions'](_0x5a0090,'insertion')['filter'](({suggestion:_0x104b33,meta:_0x349d77})=>_0x349d77['isOwn']&&'convertInlineImageToBlock'==_0x104b33['subType']);if(_0x47c760['length']>0x1&&_0x188417['end']['isEqual'](_0x5a0090['start']))return!0x0;if(0x1==_0x47c760['length']&&(_0x5a0090['start']['isEqual'](_0x188417['end'])||_0x5a0090['end']['isEqual'](_0x188417['start'])))return!0x0;}if(0x3==_0x3fae13&&0x3==_0x3b4928&&_0x5a0090['start']['isBefore'](_0x188417['start'])){const _0x395084=_0x5a0090['end']['nodeAfter'],_0x56046f=_0x188417['start']['nodeBefore'];return _0x3b3e86['isBlockImage'](_0x395084)&&_0x395084===_0x56046f;}return!0x1;}_0xe8d0f5['model']['document']['registerPostFixer'](()=>{let _0x558478=!0x1;const _0x306d93=Array['from'](_0xe8d0f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x595072,data:_0x26e571}of _0x306d93){const {group:_0x1e7ff9,type:_0x544931,subType:_0x148d9b,id:_0x8825d8}=_0x283edb['_splitMarkerName'](_0x595072);if('suggestion'==_0x1e7ff9&&_0x283edb['hasSuggestion'](_0x8825d8)){if('formatBlock'==_0x544931&&('imageStylePreApply'==_0x148d9b||'imageStylePostApply'==_0x148d9b)){const _0x309b64=_0x283edb['getSuggestion'](_0x8825d8);if(_0x26e571['newRange']){const _0x39dd35=_0x309b64['getFirstRange']()['getContainedElement']();if(_0x3b3e86['isBlockImage'](_0x39dd35))continue;_0x283edb['discardSuggestion'](_0x309b64),_0x558478=!0x0;}}if('insertion'==_0x544931&&'imageCaption'==_0x148d9b&&!_0x26e571['newRange']){const _0xd15732=_0x283edb['getSuggestion'](_0x8825d8);_0xd15732['next']&&_0xd15732['next']['isInContent']&&(_0x283edb['discardSuggestion'](_0xd15732['next']),_0x558478=!0x0);}}}return _0x558478;}),this['_registerLegacyDescription'](_0x5405a5);}['_registerLegacyDescription'](_0x53baf9){const _0x47a0e2=this['editor'],_0x275966=_0x47a0e2['locale'];_0x47a0e2['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x87b618=>{if('formatBlock'!=_0x87b618['type']&&'formatInline'!=_0x87b618['type'])return;const {data:_0x4ad9b8}=_0x87b618;if(!_0x4ad9b8||'imageStyle'!=_0x4ad9b8['commandName'])return;const _0x3c7c42=_0x4ad9b8['commandParams'][0x0]['value'];return _0x17528e('side'===_0x3c7c42?o(_0x275966,'FORMAT_SIDE_IMAGE'):_0x53baf9[_0x3c7c42]||_0x3c7c42);function _0x17528e(_0x3edf5c){return{'type':'format','content':o(_0x275966,'*Format:*\x20%0',_0x3edf5c)};}});}}class ot extends _0xf56dee{['afterInit'](){const _0x2fa3de=this['editor'],_0x75545=_0x2fa3de['commands']['get']('importWord'),_0x486f5c=_0x2fa3de['commands']['get']('trackChanges');_0x75545&&(_0x75545['on']('execute',(_0x3cb8c5,[,_0x2e0d3a])=>{this['_trackChangesValueDuringImport']=_0x486f5c['value'],_0x2e0d3a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x75545,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x75545,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x486f5c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2fa3de['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4b59bc,_0x8ff848){const {suggestions:_0x59f203}=_0x8ff848,_0x33f2f6=this['editor']['commands']['get']('trackChanges'),_0x63295=_0x33f2f6['value'];this['_trackChangesValueDuringImport']!==_0x63295&&(_0x33f2f6['execute'](),this['_trackChangesExecuted']=!0x0),_0x59f203&&_0x59f203['forEach'](({id:_0x31353b,type:_0x29f5fa,author:_0x5801d0,created_at:_0x5599d6})=>{const _0x37a54c={'id':_0x31353b,'type':_0x29f5fa,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5801d0,'createdAt':_0x5599d6?new Date(_0x5599d6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x37a54c);});}constructor(_0x12e7e4){super(_0x12e7e4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0xf56dee{['afterInit'](){const _0x32b84b=this['editor'],_0x1cbaa8=_0x32b84b['plugins']['get']('TrackChangesEditing');if(_0x32b84b['plugins']['has']('IndentEditing')&&(_0x1cbaa8['enableCommand']('indent'),_0x1cbaa8['enableCommand']('outdent')),_0x32b84b['plugins']['has']('IndentBlock')){for(const _0x28c286 of['indentBlock','outdentBlock'])_0x1cbaa8['_enableDefaultAttributesIntegration'](_0x28c286);}const _0x1eeedc=_0x32b84b['locale'];_0x1cbaa8['_registerBlockAttribute']('blockIndent'),_0x1cbaa8['_descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1eeedc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8c4cb7=this['editor'],_0x2031ca=_0x8c4cb7['locale'],_0x4237f0=_0x8c4cb7['plugins']['get']('TrackChangesEditing');_0x4237f0['_descriptionFactory']['registerDescriptionCallback'](_0x5888e8=>{if('formatBlock'!=_0x5888e8['type'])return;const {data:_0x7175d7}=_0x5888e8;if(!_0x7175d7)return;if('indentBlock'!=_0x7175d7['commandName']&&'outdentBlock'!=_0x7175d7['commandName'])return;const _0x2878fa=_0x5888e8['getItems']()[0x0],_0x4b9572=_0x4237f0['_descriptionFactory']['getItemLabel'](_0x2878fa);return'indentBlock'==_0x7175d7['commandName']?{'type':'format','content':o(_0x2031ca,'*Indent:*\x20%0',_0x4b9572)}:'outdentBlock'==_0x7175d7['commandName']?{'type':'format','content':o(_0x2031ca,'*Outdent:*\x20%0',_0x4b9572)}:void 0x0;});}}class at extends _0xf56dee{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0xf56dee{['afterInit'](){const _0xa44ebc=this['editor'];if(!_0xa44ebc['plugins']['has']('LinkEditing'))return;const _0x24fc3=_0xa44ebc['plugins']['get']('TrackChangesEditing'),_0x4bc667=_0xa44ebc['commands']['get']('link');_0x24fc3['_enableDefaultAttributesIntegration']('link',['linkHref',..._0x4bc667['manualDecorators']['map'](_0x190062=>_0x190062['id'])]),_0x24fc3['_enableDefaultAttributesIntegration']('unlink');for(const _0x2ef87a of _0x4bc667['manualDecorators'])_0x24fc3['_descriptionFactory']['registerAttributeLabel'](_0x2ef87a['id'],'link\x20('+_0x2ef87a['label']['toLowerCase']()+')');_0x24fc3['_descriptionFactory']['registerDescriptionCallback'](_0x6970a=>{if('attribute'!=_0x6970a['type'])return;const {data:_0x11c54e}=_0x6970a;if(!_0x11c54e||'linkHref'!=_0x11c54e['key'])return;const _0x47d97d=_0x11c54e['newValue'],_0xa2e8e0=_0xa44ebc['locale'];return{'type':'format','content':null==_0x47d97d?o(_0xa2e8e0,'*Remove\x20link*'):o(_0xa2e8e0,'*Set\x20link:*\x20%0','\x22'+_0x47d97d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52157c=this['editor'],_0x125e0a=_0x52157c['locale'];_0x52157c['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x35a972=>{if('formatInline'!=_0x35a972['type'])return;const {data:_0x441fa9}=_0x35a972;if(_0x441fa9){if('link'==_0x441fa9['commandName']){const _0x3996d7=_0x441fa9['commandParams'][0x0];return{'type':'format','content':o(_0x125e0a,'*Set\x20link:*\x20%0','\x22'+_0x3996d7+'\x22')};}return'unlink'==_0x441fa9['commandName']?{'type':'format','content':o(_0x125e0a,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0xf56dee{['afterInit'](){const _0x131577=this['editor'],_0x4b6345=_0x131577['locale'];if(!_0x131577['plugins']['has']('LegacyListEditing'))return;const _0x1e707f=_0x131577['plugins']['get']('TrackChangesEditing'),_0x28e2f4=_0x131577['plugins']['has']('LegacyTodoListEditing');function _0x2e89ab(_0x16036e){return()=>{const _0x1f7fd6=_0x131577['model']['document']['selection'],_0x3ac78f=_0x131577['commands']['get'](_0x16036e);if(_0x3ac78f['value'])return void _0x131577['execute']('paragraph',{});const _0x23cf90=_0x16036e['slice'](0x0,-0x4),_0x5eb907=function(_0x59106e,_0x2b02d6,_0x149024){let _0x9c605c=Array['from'](_0x59106e)['filter'](_0x36ec17=>function(_0x2fffaf,_0xc56878){return _0xc56878['checkChild'](_0x2fffaf['parent'],'listItem')&&!_0xc56878['isObject'](_0x2fffaf);}(_0x36ec17,_0x149024));_0x9c605c=_0x9c605c['filter'](_0x52c8b6=>!_0x52c8b6['is']('element','listItem')||_0x52c8b6['getAttribute']('listType')!=_0x2b02d6);const _0x8ca3f1=new Set();for(const _0x2b2a96 of _0x9c605c)_0x2b2a96['is']('element','listItem')?_0x8ca3f1['add'](me(_0x2b2a96)):_0x8ca3f1['add'](_0x2b2a96);return Array['from'](_0x8ca3f1);}(_0x1f7fd6['getSelectedBlocks'](),_0x23cf90,_0x131577['model']['schema']);_0x131577['model']['change'](()=>{for(const _0x3ffe8f of _0x5eb907)_0x1e707f['markBlockFormat'](_0x3ffe8f,{'commandName':_0x16036e,'commandParams':[{'forceValue':!_0x3ac78f['value']}],'formatGroupId':'blockName'},fe(_0x3ffe8f));});};}function _0x5bd072(_0x17c026){return()=>{const _0x241e3c=function(_0x453455){let _0x33c449=Array['from'](_0x453455);const _0x31a4ed=_0x33c449['findIndex'](_0x2deff0=>'listItem'!=_0x2deff0['name']);return _0x31a4ed>-0x1&&(_0x33c449=_0x33c449['slice'](0x0,_0x31a4ed)),_0x33c449;}(_0x131577['model']['document']['selection']['getSelectedBlocks']()),_0x352de7=_0x131577['model']['createRange'](_0x131577['model']['createPositionAt'](_0x241e3c[0x0],'before'),_0x131577['model']['createPositionAt'](_0x241e3c[_0x241e3c['length']-0x1],'end'));_0x131577['model']['change'](()=>{_0x1e707f['markBlockFormat'](_0x352de7,{'commandName':_0x17c026,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2e6d2f){const _0x2c0398=new Set();for(const _0x165ac1 of _0x2e6d2f){let _0x351a86=_0x165ac1['nextSibling'];for(;_0x351a86&&_0x351a86['getAttribute']('listIndent')>_0x165ac1['getAttribute']('listIndent');)_0x2c0398['add'](_0x351a86),_0x351a86=_0x351a86['nextSibling'];}return Array['from'](_0x2c0398);}(_0x241e3c));});};}_0x1e707f['enableCommand']('numberedList',_0x2e89ab('numberedList')),_0x1e707f['enableCommand']('bulletedList',_0x2e89ab('bulletedList')),_0x28e2f4&&_0x1e707f['enableCommand']('todoList',_0x2e89ab('todoList')),_0x1e707f['enableCommand']('indentList',_0x5bd072('indentList')),_0x1e707f['enableCommand']('outdentList',_0x5bd072('outdentList')),_0x28e2f4&&_0x1e707f['enableCommand']('checkTodoList',()=>{const _0x2ba710=_0x131577['commands']['get']('checkTodoList'),_0xfe22bf=Array['from'](_0x2ba710['_selectedElements']);_0xfe22bf['filter'](_0x302402=>_0x302402['getAttribute']('todoListChecked')!=_0x2ba710['value']),_0x131577['model']['change'](()=>{for(const _0x183f60 of _0xfe22bf)_0x1e707f['markBlockFormat'](_0x183f60,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2ba710['value']}]});});}),_0x1e707f['_descriptionFactory']['registerElementLabel']('listItem',_0x44a868=>o(_0x4b6345,'ELEMENT_LIST_ITEM',_0x44a868)),_0x1e707f['_descriptionFactory']['registerDescriptionCallback'](_0x3e60cb=>{if('formatBlock'!=_0x3e60cb['type']&&'formatInline'!=_0x3e60cb['type'])return;const {data:_0xa82845}=_0x3e60cb;if(_0xa82845){if('numberedList'==_0xa82845['commandName']||'bulletedList'==_0xa82845['commandName']||'todoList'==_0xa82845['commandName'])switch(_0xa82845['commandName']['replace']('List','')){case'bulleted':return _0x7bad05(o(_0x4b6345,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x7bad05(o(_0x4b6345,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x7bad05(o(_0x4b6345,'ELEMENT_TODO_LIST'));}if('indentList'==_0xa82845['commandName'])return{'type':'format','content':o(_0x4b6345,'*Indent:*\x20%0',o(_0x4b6345,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xa82845['commandName'])return{'type':'format','content':o(_0x4b6345,'*Outdent:*\x20%0',o(_0x4b6345,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xa82845['commandName'])return _0xa82845['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b6345,'*Check\x20item*')}:{'type':'format','content':o(_0x4b6345,'*Uncheck\x20item*')};}function _0x7bad05(_0x416c83){return{'type':'format','content':o(_0x4b6345,'*Change\x20to:*\x20%0',_0x416c83)};}});}}function me(_0x33559f){const _0xec6fed=_0x33559f['getAttribute']('listIndent');if(0x0==_0xec6fed)return _0x33559f;let _0x3faceb=_0x33559f;for(;_0x33559f['previousSibling']&&_0x33559f['previousSibling']['is']('element','listItem');){const _0x19e1ec=_0x33559f['previousSibling']['getAttribute']('listIndent');if(_0x19e1ec==_0xec6fed)_0x3faceb=_0x33559f['previousSibling'];else{if(_0x19e1ec<_0xec6fed)break;}_0x33559f=_0x33559f['previousSibling'];}return _0x3faceb;}function fe(_0x3d4434){const _0x4adbc1=[];if(_0x3d4434['is']('element','listItem')&&_0x3d4434['getAttribute']('listIndent')>0x0){let _0x11294c=_0x3d4434['nextSibling'];for(;_0x11294c&&'listItem'==_0x11294c['name']&&_0x11294c['getAttribute']('listIndent')==_0x3d4434['getAttribute']('listIndent');)_0x4adbc1['push'](_0x11294c),_0x11294c=_0x11294c['nextSibling'];}return _0x4adbc1;}class K extends _0xf56dee{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1a787a=this['editor']['config']['get']('list.properties'),_0x14786c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a787a['styles']&&_0x14786c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1a787a['reversed']&&_0x14786c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1a787a['startIndex']&&_0x14786c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x14786c['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2a4531,_0x53cc12={}){const _0xa3662a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x274f88=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xa3662a['markMultiRangeBlockFormat'](_0x274f88,{'commandName':'listStyle','commandParams':[{'type':_0x53cc12['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x25d69d,_0x20c332={}){const _0x82c2e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ce10a=this['_getSuggestionBlocks'](_0x2ed9b8=>_0x2ed9b8['is']('element','listItem')&&'numbered'===_0x2ed9b8['getAttribute']('listType'));if(_0x4ce10a['length']<0x1)return;const _0x30a546=_0x4ce10a['map'](_0x4ae46b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ae46b,'before'),this['editor']['model']['createPositionAt'](_0x4ae46b,0x0)));this['editor']['model']['change'](()=>{_0x82c2e8['markMultiRangeBlockFormat'](_0x30a546,{'commandName':'listReversed','commandParams':[{'reversed':_0x20c332['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1a280a,_0xc242b4={}){const _0x5eed25=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42adbb=this['_getSuggestionBlocks'](_0x45c990=>_0x45c990['is']('element','listItem')&&'numbered'===_0x45c990['getAttribute']('listType'));if(_0x42adbb['length']<0x1)return;const _0x4eac41=_0x42adbb['map'](_0x5a6d00=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a6d00,'before'),this['editor']['model']['createPositionAt'](_0x5a6d00,0x0)));this['editor']['model']['change'](()=>{_0x5eed25['markMultiRangeBlockFormat'](_0x4eac41,{'commandName':'listStart','commandParams':[{'startIndex':_0xc242b4['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x48025c){if('formatBlock'!=_0x48025c['type']&&'formatInline'!=_0x48025c['type'])return;const _0x1b76f7=this['editor']['locale'],{data:_0x1d17a2}=_0x48025c;if(!_0x1d17a2)return;let _0x2befe1,_0x9a07d0;switch(_0x1d17a2['commandName']){case'listStyle':_0x2befe1='*Change\x20to:*\x20%0',_0x9a07d0={'type':'format','content':o(_0x1b76f7,_0x2befe1,o(_0x1b76f7,this['_getTranslationKeyForListStyle'](_0x1d17a2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2befe1=_0x1d17a2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x9a07d0={'type':'format','content':o(_0x1b76f7,_0x2befe1)};break;case'listStart':_0x2befe1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x9a07d0={'type':'format','content':o(_0x1b76f7,_0x2befe1,_0x1d17a2['commandParams'][0x0]['startIndex'])};}return _0x9a07d0;}['_getSuggestionBlocksForListStyle'](){var _0x5f4df2,_0x32e64d,_0x4e9766,_0xc20a29;const _0x33bc06=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d979b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x5f4df2=_0x5d979b[0x0])||void 0x0===_0x5f4df2?void 0x0:_0x5f4df2['is']('element','listItem'))&&_0x5d979b['unshift'](..._0x33bc06['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x32e64d=_0x5d979b[_0x5d979b['length']-0x1])||void 0x0===_0x32e64d?void 0x0:_0x32e64d['is']('element','listItem'))&&_0x5d979b['push'](..._0x33bc06['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5d979b=[...new Set(_0x5d979b)],(null===(_0xc20a29=null===(_0x4e9766=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x4e9766?void 0x0:_0x4e9766['parent'])||void 0x0===_0xc20a29?void 0x0:_0xc20a29['is']('element','listItem'))&&(_0x5d979b=_0x5d979b['filter'](_0x53d466=>_0x53d466['is']('element','listItem'))),_0x5d979b;}['_getSuggestionBlocks'](_0x594a70){const _0x5dcdfb=this['editor']['plugins']['get']('LegacyListUtils');let _0x1a2a33=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x594a70)['map'](_0x41b2ed=>{const _0x88c03c=this['editor']['model']['createPositionAt'](_0x41b2ed,0x0);return[..._0x5dcdfb['getSiblingNodes'](_0x88c03c,'backward'),..._0x5dcdfb['getSiblingNodes'](_0x88c03c,'forward')];})['flat']();return _0x1a2a33=[...new Set(_0x1a2a33)],_0x1a2a33;}['_getTranslationKeyForListStyle'](_0x3ff29b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3ff29b)||'default')['toUpperCase']()+'_LIST_'+_0x3ff29b['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0xf56dee{['afterInit'](){const _0x5b2d61=this['editor'];if(!_0x5b2d61['plugins']['has']('MediaEmbedEditing'))return;const _0x586241=_0x5b2d61['plugins']['get']('TrackChangesEditing'),_0x233ca3=_0x5b2d61['locale'];_0x586241['enableCommand']('mediaEmbed'),_0x586241['_descriptionFactory']['registerElementLabel']('media',_0x447765=>o(_0x233ca3,'ELEMENT_MEDIA',_0x447765)),_0x5b2d61['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x167b75,{writer:_0x1d0e29,options:_0x3c64e7})=>{if(_0x3c64e7['showSuggestionHighlights'])return _0x1d0e29['createEmptyElement']('div');},'converterPriority':'high'}),_0x5b2d61['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4604e2,_0x352842,_0x37b204)=>{_0x37b204['options']['showSuggestionHighlights']&&_0x4604e2['stop']();},{'priority':'high'});}}class gt extends _0xf56dee{['afterInit'](){const _0x553f72=this['editor'];_0x553f72['plugins']['has']('MentionEditing')&&_0x553f72['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0xf56dee{['afterInit'](){const _0xba0794=this['editor'],_0x57d72a=_0xba0794['plugins']['get']('TrackChangesEditing');_0xba0794['plugins']['has']('MultiLevelList')&&(_0x57d72a['_enableDefaultAttributesIntegration']('multiLevelList',[],['listMarkerStyle']),_0x57d72a['_descriptionFactory']['registerDescriptionCallback'](_0x96725c=>this['handleDescriptions'](_0x96725c)));}['handleDescriptions'](_0x585e27){const _0x3dd239=this['editor']['locale'],{data:_0x1826bf}=_0x585e27,_0x5e9a8f={'type':'format','content':''};if(_0x1826bf&&'listMarkerStyle'==_0x1826bf['key']){if(!_0x1826bf['oldValue'])return{'type':'format','content':o(_0x3dd239,'*Set\x20format:*\x20%0',o(_0x3dd239,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1826bf['newValue']+')'};if(!_0x1826bf['newValue']){let _0x1ab597=_0x585e27['head'];for(;_0x1ab597;){if(_0x1ab597['data']&&'listType'==_0x1ab597['data']['key']&&_0x1ab597['data']['newValue'])return _0x5e9a8f;_0x1ab597=_0x1ab597['next'];}return{'type':'format','content':o(_0x3dd239,'*Remove\x20format:*\x20%0',o(_0x3dd239,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1826bf['oldValue']+')'};}}}}class mt extends _0xf56dee{['afterInit'](){const _0x3fee55=this['editor'];if(!_0x3fee55['plugins']['has']('PageBreakEditing'))return;_0x3fee55['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x476d83=_0x3fee55['plugins']['get']('TrackChangesEditing'),_0x23c27c=_0x3fee55['locale'];_0x476d83['_descriptionFactory']['registerElementLabel']('pageBreak',_0x3922e9=>o(_0x23c27c,'ELEMENT_PAGE_BREAK',_0x3922e9));}}class dt extends _0xf56dee{['afterInit'](){const _0x306970=this['editor'];if(!_0x306970['plugins']['has']('Paragraph'))return;const _0x28f5ce=_0x306970['locale'],_0x26db32=_0x306970['plugins']['get']('TrackChangesEditing');_0x26db32['_descriptionFactory']['registerElementLabel']('paragraph',_0x227d5b=>o(_0x28f5ce,'ELEMENT_PARAGRAPH',_0x227d5b)),_0x26db32['_enableDefaultAttributesIntegration']('paragraph'),_0x26db32['enableCommand']('insertParagraph'),_0x306970['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x306970),{'priority':'highest'}),_0x306970['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x52fb6e,_0x3833a2,_0x3e8030)=>{_0x3e8030['options']['showSuggestionHighlights']&&nr(_0x306970,{'showActiveMarker':!0x1})(_0x52fb6e,_0x3833a2,_0x3e8030);},{'priority':'highest'});const _0x93e437=_0x26db32['_descriptionFactory'];_0x93e437['registerDescriptionCallback'](_0x2e052f=>{if('insertion'!==_0x2e052f['type'])return;const {start:_0x396d30,end:_0x40b985}=_0x2e052f['getFirstRange']();if(!_0x396d30['isTouching'](_0x40b985)||!_0x396d30['nodeAfter'])return;const _0x58c02e=_0x306970['model']['schema'],_0x844c0d=_0x396d30['nodeAfter'];return _0x58c02e['isBlock'](_0x844c0d)&&!_0x58c02e['isLimit'](_0x844c0d)&&_0x58c02e['checkChild'](_0x844c0d,'$text')?{'type':'insertion','content':o(_0x28f5ce,'*Insert:*\x20%0',_0x93e437['getItemLabel'](_0x844c0d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1afcb6=this['editor'],_0x43c7d3=_0x1afcb6['locale'];_0x1afcb6['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x14eca2=>{if('formatBlock'!=_0x14eca2['type'])return;const {data:_0x5c574e}=_0x14eca2;return _0x5c574e&&'paragraph'==_0x5c574e['commandName']?{'type':'format','content':o(_0x43c7d3,'*Change\x20to:*\x20%0',o(_0x43c7d3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xf5f87a,{showActiveMarker:_0x334ae7=!0x0}={}){return(_0x57d484,_0x104d44,_0x1579fd)=>{const _0x2dfb63=_0xf5f87a['plugins']['get']('TrackChangesEditing'),_0x4250a7=_0x104d44['markerRange']['start'],_0xcdb1d4=_0x104d44['markerRange']['end'],_0x262777=_0xf5f87a['model']['schema'];if(!_0x4250a7['isTouching'](_0xcdb1d4)||!_0x4250a7['nodeAfter'])return;const _0x3905c7=_0x4250a7['nodeAfter'];if(_0x262777['isBlock'](_0x3905c7)&&!_0x262777['isLimit'](_0x3905c7)&&_0x262777['checkChild'](_0x3905c7,'$text')){if(!_0x1579fd['consumable']['consume'](_0x104d44['markerRange'],_0x57d484['name']))return;const _0x3a4d6b=_0x1579fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x50aeca=_0x1579fd['mapper']['toViewPosition'](_0xcdb1d4);_0x334ae7&&_0x2dfb63['activeMarkers']['includes'](_0x104d44['markerName'])&&_0x1579fd['writer']['addClass']('ck-suggestion-marker--active',_0x3a4d6b),_0x1579fd['writer']['insert'](_0x50aeca,_0x3a4d6b),_0x1579fd['mapper']['bindElementToMarker'](_0x3a4d6b,_0x104d44['markerName']);}};}class pt extends _0xf56dee{['afterInit'](){const _0x365fb9=this['editor'];if(!_0x365fb9['plugins']['has']('RemoveFormatEditing'))return;_0x365fb9['plugins']['get']('TrackChangesEditing')['_enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d1786=this['editor'];_0x4d1786['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x4e6da2=>{if('formatBlock'!=_0x4e6da2['type']&&'formatInline'!=_0x4e6da2['type'])return;const {data:_0x1ee9e4}=_0x4e6da2;return _0x1ee9e4&&'removeFormat'==_0x1ee9e4['commandName']?{'type':'format','content':o(_0x4d1786['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0xf56dee{['afterInit'](){const _0x3b4373=this['editor'];if(!_0x3b4373['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3917be=_0x3b4373['plugins']['get']('TrackChangesEditing');_0x3917be['enableCommand']('goToPreviousRestrictedEditingException'),_0x3917be['enableCommand']('goToNextRestrictedEditingException');const _0x4d2e0d=_0x3b4373['plugins']['get']('RestrictedEditingModeEditing');_0x4d2e0d['enableCommand']('trackChanges'),_0x4d2e0d['enableCommand']('acceptSuggestion'),_0x4d2e0d['enableCommand']('discardSuggestion'),_0x4d2e0d['enableCommand']('acceptAllSuggestions'),_0x4d2e0d['enableCommand']('discardAllSuggestions'),_0x4d2e0d['enableCommand']('acceptSelectedSuggestions'),_0x4d2e0d['enableCommand']('discardSelectedSuggestions');}}class bt extends _0xf56dee{static get['requires'](){return[_0x559b45];}['init'](){const _0x82dbc8=this['editor'],_0xb9a6dc=_0x82dbc8['plugins']['get']('TrackChangesEditing');_0xb9a6dc['enableCommand']('shiftEnter'),_0x82dbc8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x82dbc8),{'priority':'high'}),_0x82dbc8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x82dbc8),{'priority':'high'}),_0x82dbc8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ea2a9,_0x348d1b,_0x2f566d)=>{_0x2f566d['options']['showSuggestionHighlights']&&de(_0x82dbc8,{'showActiveMarker':!0x1})(_0x5ea2a9,_0x348d1b,_0x2f566d);}),_0xb9a6dc['_descriptionFactory']['registerElementLabel']('softBreak',_0x2aca78=>o(_0x82dbc8['locale'],'ELEMENT_LINE_BREAK',_0x2aca78));}}function de(_0x1aae44,{showActiveMarker:_0x13a64c=!0x0}={}){return(_0x226111,_0x4f8747,_0x42fb03)=>{const _0x5b5ac7=_0x1aae44['plugins']['get']('TrackChangesEditing');if(!_0x42fb03['consumable']['test'](_0x4f8747['markerRange'],_0x226111['name']))return;const _0x59e825=_0x1aae44['model'];for(const _0xde34e of _0x4f8747['markerRange']['getItems']()){if(!_0xde34e['is']('element','softBreak'))continue;const _0x1b379c='deletion'==_0x4f8747['markerName']['split'](':')[0x1]?'merge':'split',_0x202f49=_0x42fb03['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b379c}),_0x5728c3=_0x42fb03['mapper']['toViewPosition'](_0x59e825['createPositionBefore'](_0xde34e));_0x13a64c&&_0x5b5ac7['activeMarkers']['includes'](_0x4f8747['markerName'])&&_0x42fb03['writer']['addClass']('ck-suggestion-marker--active',_0x202f49),_0x42fb03['writer']['insert'](_0x5728c3,_0x202f49),_0x42fb03['mapper']['bindElementToMarker'](_0x202f49,_0x4f8747['markerName']);}};}class wt extends _0xf56dee{['afterInit'](){const _0x4ca1e5=this['editor'],_0x4c32c9=_0x4ca1e5['model'],_0x34f971=_0x4ca1e5['locale'];if(!_0x4ca1e5['plugins']['has']('StandardEditingModeEditing'))return;const _0x56e41e=_0x4ca1e5['plugins']['get']('TrackChangesEditing'),_0x1200f1='restrictedEditingException',_0x3781f5=_0x4ca1e5['commands']['get'](_0x1200f1);_0x56e41e['enableCommand'](_0x1200f1,(_0x56d950,_0x3a3283={})=>{const _0x2e0e6b=_0x4c32c9['document']['selection'];if(_0x2e0e6b['isCollapsed'])return void _0x56d950(_0x3a3283);const _0x131621=void 0x0!==_0x3a3283['forceValue']?_0x3a3283['forceValue']:!_0x3781f5['value'];_0x4c32c9['change'](()=>{const _0x47b377=Array['from'](_0x2e0e6b['getRanges']());for(const _0x59e715 of _0x47b377){const _0x24f4d4=_0x131621?[_0x59e715]:io(_0x1200f1,_0x59e715,_0x4c32c9);for(const _0x595680 of _0x24f4d4)_0x56e41e['markInlineFormat'](_0x595680,{'commandName':_0x1200f1,'commandParams':[{'forceValue':_0x131621}]});}});}),_0x56e41e['_descriptionFactory']['registerDescriptionCallback'](_0x1e568e=>{if('formatBlock'!=_0x1e568e['type']&&'formatInline'!=_0x1e568e['type'])return;const {data:_0x6ec103}=_0x1e568e;return _0x6ec103&&_0x6ec103['commandName']==_0x1200f1?_0x6ec103['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34f971,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x34f971,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0xf56dee{['afterInit'](){const _0x20b65f=this['editor'];if(!_0x20b65f['plugins']['has']('Style')||!_0x20b65f['plugins']['has']('DataSchema'))return;const _0x1b23b6=_0x20b65f['plugins']['get']('TrackChangesEditing'),_0x4b153b=_0x20b65f['locale'],_0x2826af=_0x20b65f['config']['get']('style')||{},_0x3b1a78=_0x20b65f['plugins']['get']('GeneralHtmlSupport'),_0x3ec0fa=_0x20b65f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x20b65f['plugins']['get']('DataSchema'),_0x2826af['definitions']);_0x1b23b6['_enableDefaultAttributesIntegration']('style');const _0x50a1fe=new Set();for(const _0xa4e4a5 of _0x3ec0fa['block']){const _0x54e0f3=_0x3b1a78['getGhsAttributeNameForElement'](_0xa4e4a5['element']);_0x50a1fe['add'](_0x54e0f3);}const _0x2476c6=new Set();for(const _0xae5734 of _0x3ec0fa['inline']){const _0x1283df=_0x3b1a78['getGhsAttributeNameForElement'](_0xae5734['element']);_0x2476c6['add'](_0x1283df);for(const _0x17767f of _0xae5734['ghsAttributes'])_0x2476c6['add'](_0x17767f);}for(const _0x192de2 of _0x50a1fe)_0x1b23b6['_registerBlockAttribute'](_0x192de2),_0x1b23b6['_descriptionFactory']['registerAttributeLabel'](_0x192de2,o(_0x4b153b,'FORMAT_STYLE'));for(const _0x13d917 of _0x2476c6)_0x1b23b6['_registerInlineAttribute'](_0x13d917),_0x1b23b6['_descriptionFactory']['registerAttributeLabel'](_0x13d917,o(_0x4b153b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xde9b91=this['editor'],_0x564e4c=_0xde9b91['locale'];_0xde9b91['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2c3d07=>{if('formatBlock'!=_0x2c3d07['type']&&'formatInline'!=_0x2c3d07['type'])return;const {data:_0x31b567}=_0x2c3d07;return _0x31b567&&'style'===_0x31b567['commandName']?_0x31b567['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x564e4c,'*Set\x20format:*\x20%0',_0x31b567['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x564e4c,'*Remove\x20format:*\x20%0',_0x31b567['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0xf56dee{['afterInit'](){const _0x14b8d8=this['editor'],_0x45f4bc=_0x14b8d8['model']['document']['selection'];if(!_0x14b8d8['plugins']['has']('TableEditing'))return;const _0x941d8f=_0x14b8d8['locale'],_0x47a3bb=_0x14b8d8['plugins']['get']('TrackChangesEditing'),_0xd29756=_0x14b8d8['plugins']['get']('TableUtils');_0x47a3bb['_descriptionFactory']['registerElementLabel']('table',_0x281317=>o(_0x941d8f,'ELEMENT_TABLE',_0x281317)),this['_setupColumnsRowsFixing'](),_0x47a3bb['enableCommand']('insertTable'),_0x47a3bb['enableCommand']('selectTableRow'),_0x47a3bb['enableCommand']('selectTableColumn');for(const _0x141630 of['insertTableRowAbove','insertTableRowBelow']){const _0x23b6aa=_0x14b8d8['commands']['get'](_0x141630);_0x47a3bb['enableCommand'](_0x141630,_0x1828e0=>{_0x14b8d8['model']['change'](_0x38ee61=>{_0x1828e0();const _0x3e3269='above'===_0x23b6aa['order'],_0x10d20a=_0xd29756['getSelectionAffectedTableCells'](_0x45f4bc),_0x244787=_0xd29756['getRowIndexes'](_0x10d20a),_0x3eece2=_0x3e3269?_0x244787['first']-0x1:_0x244787['last']+0x1,_0xfde63e=_0x10d20a[0x0]['findAncestor']('table'),_0x4c0ca9=_0xd29756['createTableWalker'](_0xfde63e,{'startRow':_0x3eece2,'endRow':_0x3eece2}),_0x5ef12f=Array['from'](_0x4c0ca9)['map'](_0x39d46c=>_0x38ee61['createRangeOn'](_0x39d46c['cell']));_0x47a3bb['markMultiRangeInsertion'](_0x5ef12f,'tableRow');});});}for(const _0x1d9d32 of['insertTableColumnLeft','insertTableColumnRight']){const _0x238fad=_0x14b8d8['commands']['get'](_0x1d9d32);_0x47a3bb['enableCommand'](_0x1d9d32,_0x1339f2=>{_0x14b8d8['model']['change'](_0x5997ac=>{_0x1339f2();const _0x22a00c='left'===_0x238fad['order'],_0x55a2b8=_0xd29756['getSelectionAffectedTableCells'](_0x45f4bc),_0x3d69f3=_0xd29756['getColumnIndexes'](_0x55a2b8),_0x57c43b=_0x22a00c?_0x3d69f3['first']-0x1:_0x3d69f3['last']+0x1,_0x4bd529=_0x55a2b8[0x0]['findAncestor']('table'),_0x38aa35=_0xd29756['createTableWalker'](_0x4bd529,{'startRow':0x0,'column':_0x57c43b,'includeAllSlots':!0x1}),_0x3c7922=Array['from'](_0x38aa35)['map'](_0xa5dfba=>_0x5997ac['createRangeOn'](_0xa5dfba['cell']));_0x47a3bb['markMultiRangeInsertion'](_0x3c7922,'tableColumn');});});}for(const _0x384d7f of['removeTableRow','removeTableColumn']){const _0x466497=_0x384d7f['substr'](0xb),_0xe7a3cf=_0x466497['toLowerCase'](),_0x4ece68=_0xe7a3cf['substr'](0x0,0x3)+'span',_0x3e1f9f='table'+_0x466497,_0x9fe510='min'+_0x466497,_0x87eb54='max'+_0x466497;_0x47a3bb['enableCommand'](_0x384d7f,()=>{_0x14b8d8['model']['change'](_0x1b1a7d=>{const _0x694731=_0xd29756['getSelectionAffectedTableCells'](_0x45f4bc),_0x233f47=_0x694731[0x0]['findAncestor']('table');let _0x3911a6;if('removeTableRow'==_0x384d7f){const _0x26c704=_0xd29756['getRowIndexes'](_0x694731);_0x3911a6={'startRow':_0x26c704['first'],'endRow':_0x26c704['last'],'includeAllSlots':!0x0};}else{const _0x3b9ae9=_0xd29756['getColumnIndexes'](_0x694731);_0x3911a6={'startColumn':_0x3b9ae9['first'],'endColumn':_0x3b9ae9['last'],'includeAllSlots':!0x0};}const _0x3e0477=_0xd29756['createTableWalker'](_0x233f47,_0x3911a6),_0x39686e=Array['from'](_0x3e0477)['map'](({cell:_0xeaa146})=>_0xeaa146),_0x46fe94=Ee(_0x39686e['filter'](_0x3b2f2b=>_0x3b2f2b['hasAttribute'](_0x4ece68))),_0x306c21=Ee(_0x39686e['filter'](_0xb72881=>!_0xb72881['hasAttribute'](_0x4ece68)))['map'](_0x32fadc=>_0x1b1a7d['createRangeOn'](_0x32fadc)),_0x4281d4=_0x47a3bb['markMultiRangeDeletion'](_0x306c21,_0x3e1f9f);if(_0x4281d4&&('tableRow'==_0x4281d4['subType']||'tableColumn'==_0x4281d4['subType'])){const _0x35b7d9=this['_getSuggestionCoords'](_0x4281d4);for(const _0x174588 of _0x46fe94){const _0x7a3ffb=_0x1b1a7d['createRangeOn'](_0x174588),_0x3ccc98=_0xd29756['getCellLocation'](_0x174588),_0x49c144=_0x174588['getAttribute'](_0x4ece68)-0x1,_0x42e746=_0x35b7d9[_0x9fe510],_0x1e28e7=_0x35b7d9[_0x87eb54];_0x42e746<=_0x3ccc98[_0xe7a3cf]&&_0x3ccc98[_0xe7a3cf]+_0x49c144<=_0x1e28e7&&_0x4281d4['addRange'](_0x7a3ffb);}}});});}function _0x380713(_0x52e110){const _0x22825c=Array['from'](_0x45f4bc['getRanges']())['map'](_0x136634=>_0x40e8d5['fromRange'](_0x136634));_0x14b8d8['model']['change'](_0x88cfe9=>{const _0x88fccb=_0x88cfe9['batch'];_0x52e110=_0x52e110['filter'](_0x405cc0=>'$graveyard'!=_0x405cc0['root']['rootName']),_0x88cfe9['setSelection'](_0x52e110),_0x14b8d8['commands']['get']('removeTableRow')['refresh'](),_0x14b8d8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x14b8d8['model']['enqueueChange'](()=>{_0x14b8d8['model']['enqueueChange'](_0x88fccb,_0x498f36=>{const _0x5a0c63=_0x22825c['filter'](_0x5977ae=>'$graveyard'!=_0x5977ae['root']['rootName']);_0x5a0c63['length']>0x0&&_0x498f36['setSelection'](_0x5a0c63);for(const _0x48e1e3 of _0x22825c)_0x48e1e3['detach']();});});});}function _0x34a044(_0x2eec5e){_0x14b8d8['model']['change'](_0x437d65=>{const _0x34cc6b=Array['from'](_0x45f4bc['getRanges']())['map'](_0x3c9fa0=>_0x40e8d5['fromRange'](_0x3c9fa0)),_0x53ee21=[];for(const _0x25b72a of _0x2eec5e)for(const _0x13cc36 of _0x25b72a['getItems']({'shallow':!0x0}))_0x53ee21['push'](_0x13cc36);for(const _0x281fbb of _0x53ee21)'$graveyard'!=_0x281fbb['root']['rootName']&&(_0x437d65['setSelection'](_0x437d65['createPositionAt'](_0x281fbb,0x0)),_0x14b8d8['commands']['get']('removeTableColumn')['refresh'](),_0x14b8d8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5297e0=_0x34cc6b['filter'](_0x2ad741=>'$graveyard'!=_0x2ad741['root']['rootName']);_0x5297e0['length']>0x0&&_0x437d65['setSelection'](_0x5297e0);for(const _0x392f8c of _0x34cc6b)_0x392f8c['detach']();});}function _0x2ef202(_0x2f40f3,_0x510492){return _0x510492['every'](_0x21e658=>_0x2f40f3['some'](_0x1be097=>_0x1be097['end']['isEqual'](_0x21e658['start'])||_0x21e658['end']['isEqual'](_0x1be097['start'])));}function _0x563ce4(_0x7653b4,_0x13809e){return _0x7653b4['some'](_0x1cc878=>_0x13809e['some'](_0x3cfe78=>_0x1cc878['end']['isTouching'](_0x3cfe78['start'])));}_0x14b8d8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55d8a8,_0x25c5d8,_0x866ef9)=>{if(!_0x866ef9['options']['showSuggestionHighlights'])return;const _0x399e86=_0x25c5d8['item'];if(!_0x399e86)return;const _0x1f20d2=_0x866ef9['mapper']['toViewElement'](_0x399e86);function _0x5e102a(_0x431325){return Array['isArray'](_0x431325)?_0x431325:[_0x431325];}_0x1f20d2&&'tableCell'===_0x399e86['name']&&_0x373de9(_0x1f20d2,_0x866ef9['writer'],(_0x39d38a,_0x37ec95,_0x2f0709)=>_0x2f0709['addClass'](_0x5e102a(_0x37ec95['classes']),_0x39d38a),(_0x1203bb,_0x5ba567,_0x38cea7)=>_0x38cea7['removeClass'](_0x5e102a(_0x5ba567['classes']),_0x1203bb));},{'priority':'highest'}),_0x47a3bb['_descriptionFactory']['registerDescriptionCallback'](_0x5cca0a=>{if('insertion'!=_0x5cca0a['type']&&'deletion'!=_0x5cca0a['type'])return;const _0x59d589=_0x5cca0a['getContainedElement']();if(null!=_0x59d589&&_0x59d589['is']('element','table')){if('insertion'==_0x5cca0a['type']){const _0x36eb6b=_0x5cca0a['getItems']()['filter'](_0x55bc6c=>_0x55bc6c['is']('$textProxy'))['map'](_0x119611=>_0x119611['data']);if(_0x36eb6b['length'])return{'type':'insertion','content':o(_0x941d8f,'*Insert:*\x20%0',o(_0x941d8f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36eb6b['join']('\x20')+'\x22'))};}if('deletion'==_0x5cca0a['type']){const _0x40c695=_0x5cca0a['getItems']()['filter'](_0x450834=>_0x450834['is']('$textProxy'))['map'](_0x37b956=>_0x37b956['data']);if(_0x40c695['length'])return{'type':'deletion','content':o(_0x941d8f,'*Remove:*\x20%0',o(_0x941d8f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40c695['join']('\x20')+'\x22'))};}}}),_0x47a3bb['_descriptionFactory']['registerDescriptionCallback'](_0x17ed0d=>{if('tableRow'==_0x17ed0d['subType']){const _0x1e1073=_0x17ed0d['getItems']()['filter'](_0x198407=>_0x198407['is']('$textProxy'))['map'](_0x28d628=>_0x28d628['data']),_0x113a8b=this['_getSuggestionCoords'](_0x17ed0d),_0x433406=_0x113a8b['maxRow']-_0x113a8b['minRow']+0x1;if('insertion'==_0x17ed0d['type'])return _0x1e1073['length']?{'type':'insertion','content':o(_0x941d8f,'*Insert:*\x20%0',o(_0x941d8f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x433406,'\x22'+_0x1e1073['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x941d8f,'*Insert:*\x20%0',o(_0x941d8f,'ELEMENT_TABLE_ROW',_0x433406))};if('deletion'==_0x17ed0d['type'])return _0x1e1073['length']?{'type':'deletion','content':o(_0x941d8f,'*Remove:*\x20%0',o(_0x941d8f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x433406,'\x22'+_0x1e1073['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x941d8f,'*Remove:*\x20%0',o(_0x941d8f,'ELEMENT_TABLE_ROW',_0x433406))};}if('tableColumn'==_0x17ed0d['subType']){const _0x3d9cf6=_0x17ed0d['getItems']()['filter'](_0xbff2aa=>_0xbff2aa['is']('$textProxy'))['map'](_0xd4bf99=>_0xd4bf99['data']),_0x1a1da8=this['_getSuggestionCoords'](_0x17ed0d),_0x25e451=_0x1a1da8['maxColumn']-_0x1a1da8['minColumn']+0x1;if('insertion'==_0x17ed0d['type'])return _0x3d9cf6['length']?{'type':'insertion','content':o(_0x941d8f,'*Insert:*\x20%0',o(_0x941d8f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25e451,'\x22'+_0x3d9cf6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x941d8f,'*Insert:*\x20%0',o(_0x941d8f,'ELEMENT_TABLE_COLUMN',_0x25e451))};if('deletion'==_0x17ed0d['type'])return _0x3d9cf6['length']?{'type':'deletion','content':o(_0x941d8f,'*Remove:*\x20%0',o(_0x941d8f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25e451,'\x22'+_0x3d9cf6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x941d8f,'*Remove:*\x20%0',o(_0x941d8f,'ELEMENT_TABLE_COLUMN',_0x25e451))};}}),_0x47a3bb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x380713),_0x47a3bb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x380713),_0x47a3bb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x34a044),_0x47a3bb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x34a044),_0x47a3bb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2ef202),_0x47a3bb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2ef202),_0x47a3bb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x563ce4),_0x47a3bb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x563ce4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x528330=this['editor'],_0x31fc05=_0x528330['model']['document']['selection'];return(_0x173a8f,_0x5b0e1f)=>{_0x528330['model']['change'](_0x59d5bc=>{const {commandName:_0x2a0b3b,commandParams:_0x47d20c}=_0x5b0e1f;let _0x849b81=_0x173a8f[0x0]['end']['nodeBefore'];_0x47d20c&&_0x47d20c[0x0]&&!0x1===_0x47d20c[0x0]['forceValue']&&(_0x849b81=_0x173a8f[0x0]['start']['nodeAfter']);const _0xdb3cac=_0x59d5bc['createRangeIn'](_0x849b81);if('$graveyard'==_0xdb3cac['root']['rootName'])return;const _0x2c05d5=Array['from'](_0x31fc05['getRanges']())['map'](_0x377654=>_0x40e8d5['fromRange'](_0x377654));_0x59d5bc['setSelection'](_0xdb3cac),_0x528330['commands']['get'](_0x2a0b3b)['refresh'](),_0x47d20c['push']({'forceDefaultExecution':!0x0}),_0x528330['execute'](_0x2a0b3b,..._0x47d20c);const _0x20d527=_0x2c05d5['filter'](_0x55d904=>'$graveyard'!=_0x55d904['root']['rootName']);_0x20d527['length']>0x0&&_0x59d5bc['setSelection'](_0x20d527);for(const _0x73ee80 of _0x2c05d5)_0x73ee80['detach']();});};}['_getCoordsForCells'](_0xc8311e){const _0x3d2201=this['editor']['plugins']['get']('TableUtils');let _0x402b43=Number['MAX_SAFE_INTEGER'],_0x3b2713=Number['MIN_SAFE_INTEGER'],_0x5e2ca7=Number['MAX_SAFE_INTEGER'],_0x305a13=Number['MIN_SAFE_INTEGER'];for(const _0xce073a of _0xc8311e){if('$graveyard'==_0xce073a['root']['rootName'])continue;const {row:_0x3efb8e,column:_0x29d2d8}=_0x3d2201['getCellLocation'](_0xce073a),_0x116357=_0xce073a['hasAttribute']('rowspan')?_0xce073a['getAttribute']('rowspan')-0x1:0x0,_0x3902b0=_0xce073a['hasAttribute']('colspan')?_0xce073a['getAttribute']('colspan')-0x1:0x0;_0x402b43=_0x3efb8e<_0x402b43?_0x3efb8e:_0x402b43,_0x3b2713=_0x3efb8e+_0x116357>_0x3b2713?_0x3efb8e+_0x116357:_0x3b2713,_0x5e2ca7=_0x29d2d8<_0x5e2ca7?_0x29d2d8:_0x5e2ca7,_0x305a13=_0x29d2d8+_0x3902b0>_0x305a13?_0x29d2d8+_0x3902b0:_0x305a13;}return{'minRow':_0x402b43,'maxRow':_0x3b2713,'minColumn':_0x5e2ca7,'maxColumn':_0x305a13};}['_setupColumnsRowsFixing'](){const _0x137cd8=this['editor'],_0x44e76=_0x137cd8['plugins']['get']('TrackChangesEditing'),_0x439412=_0x137cd8['plugins']['get']('TableUtils');_0x137cd8['model']['document']['on']('change:data',()=>{const _0x43ed57=Array['from'](_0x137cd8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d6f6a,data:_0x13d2ed}of _0x43ed57){const {group:_0x37c69f,id:_0x219e5e,subType:_0x56a406}=_0x44e76['_splitMarkerName'](_0x3d6f6a);if('suggestion'!=_0x37c69f)continue;if(null!=_0x13d2ed['oldRange'])continue;const _0x57d078=_0x44e76['getSuggestion'](_0x219e5e);this['_tablePostFixingSubtypes']['includes'](_0x56a406)&&this['_tableSuggestions']['add'](_0x57d078);}},{'priority':'low'});const _0x576556=(_0x89aad8,_0x80f69c)=>{let _0x3ef1d5=!0x1;const _0x2349a5=_0x80f69c['createRangeOn'](_0x89aad8),_0x476002=_0x89aad8['findAncestor']('table'),_0x56452e=_0x439412['getCellLocation'](_0x89aad8);for(const _0x9b15e of this['_tableSuggestions']){const _0x138ec2=_0x9b15e['subType'],_0x2a4ac9=_0x138ec2['startsWith']('tablePaste'),_0x5b4b40=_0x138ec2['substr'](_0x2a4ac9?0xa:0x5),_0xd3d8dc=_0x5b4b40['toLowerCase'](),_0x25fc81=_0xd3d8dc['substr'](0x0,0x3)+'span',_0x4ddc53='min'+_0x5b4b40,_0x416d28='max'+_0x5b4b40;if(!_0x9b15e['isInContent'])continue;if(_0x476002!=_0x9b15e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x9b15e['isIntersectingWithRange'](_0x2349a5))continue;const _0x3b701d=_0x89aad8['hasAttribute'](_0x25fc81)?_0x89aad8['getAttribute'](_0x25fc81)-0x1:0x0,_0x39b6e0=this['_getSuggestionCoords'](_0x9b15e),_0x15fbd5=_0x39b6e0[_0x4ddc53],_0x3ae176=_0x39b6e0[_0x416d28];_0x15fbd5<=_0x56452e[_0xd3d8dc]&&_0x56452e[_0xd3d8dc]+_0x3b701d<=_0x3ae176&&(_0x9b15e['addRange'](_0x2349a5),_0x3ef1d5=!0x0);}return _0x3ef1d5;};_0x137cd8['model']['document']['registerPostFixer'](_0x4c61e6=>{let _0x9e1673=!0x1;for(const _0x2e67e8 of _0x137cd8['model']['document']['differ']['getChanges']())if('insert'==_0x2e67e8['type']){if('tableRow'==_0x2e67e8['name']){for(const _0x14a296 of _0x2e67e8['position']['nodeAfter']['getChildren']())_0x9e1673=_0x9e1673||_0x576556(_0x14a296,_0x4c61e6);}else'tableCell'==_0x2e67e8['name']&&(_0x9e1673=_0x9e1673||_0x576556(_0x2e67e8['position']['nodeAfter'],_0x4c61e6));}return _0x9e1673;});}['_getSuggestionCoords'](_0x44e176){return this['_getCoordsForCells'](_0x44e176['getRanges']()['map'](_0x5493b5=>_0x5493b5['start']['nodeAfter']));}constructor(_0x10ba10){super(_0x10ba10),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x2607f2){return Array['from'](new Set(_0x2607f2)['values']());}class St extends _0xf56dee{static get['requires'](){return[jt];}['afterInit'](){const _0x4faadb=this['editor'],_0x16e667=_0x4faadb['model']['document']['selection'],_0x305c4a=_0x4faadb['locale'];if(!_0x4faadb['plugins']['has']('TableEditing'))return;const _0x4a5f8d=_0x4faadb['plugins']['get']('TrackChangesEditing'),_0x526eb4=_0x4faadb['plugins']['get']('TableUtils'),_0x59aded=_0x4faadb['plugins']['get'](jt);_0x59aded['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4a5f8d['enableCommand']('mergeTableCells',()=>{const _0xe88402=_0x526eb4['getSelectionAffectedTableCells'](_0x4faadb['model']['document']['selection']);_0x4faadb['model']['change'](()=>{_0x4a5f8d['markMultiRangeBlockFormat'](_0xe88402,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4faadb['commands']['get']('mergeTableCells')['on']('execute',(_0x30291f,_0x251b3c)=>{_0x4faadb['commands']['get']('trackChanges')['value']&&(_0x251b3c['length']>0x0&&_0x251b3c[_0x251b3c['length']-0x1]&&_0x251b3c[_0x251b3c['length']-0x1]['forceDefaultExecution']||_0x4a5f8d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x30291f['stop']());},{'priority':'highest'});for(const _0x574883 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x101221=_0x4faadb['commands']['get'](_0x574883);_0x4a5f8d['enableCommand'](_0x574883,()=>{const _0x6bc009=_0x4faadb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd624b3=>_0xd624b3['is']('element','tableCell')),_0x5d7fc6=_0x101221['value'];_0x4faadb['model']['change'](()=>{_0x4a5f8d['markMultiRangeBlockFormat']([_0x6bc009,_0x5d7fc6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x257fc8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x9e10e7=_0x4faadb['commands']['get'](_0x257fc8);_0x4a5f8d['enableCommand'](_0x257fc8,()=>{const _0x135e8d=_0x526eb4['getSelectionAffectedTableCells'](_0x4faadb['model']['document']['selection'])[0x0],_0x57be5b=_0x135e8d['findAncestor']('table'),{column:_0x45a880,row:_0x4136c8}=_0x526eb4['getCellLocation'](_0x135e8d);let _0x111d33=[];if('horizontally'==_0x9e10e7['direction']){const _0x5e354f=_0x526eb4['createTableWalker'](_0x57be5b,{'startRow':_0x4136c8,'endRow':_0x4136c8,'includeAllSlots':!0x0});_0x111d33=Array['from'](_0x5e354f)['map'](_0x4b0950=>_0x4b0950['cell']);}else{const _0x3c5501=_0x526eb4['createTableWalker'](_0x57be5b,{'column':_0x45a880,'includeAllSlots':!0x0});_0x111d33=Array['from'](_0x3c5501)['map'](_0x3be077=>_0x3be077['cell']);}_0x4faadb['model']['change'](_0x106565=>{_0x4a5f8d['markBlockFormat'](_0x106565['createRangeOn'](_0x135e8d),{'commandName':_0x257fc8,'commandParams':[]},_0x111d33,_0x257fc8);});});}_0x4a5f8d['_descriptionFactory']['registerDescriptionCallback'](_0x40b57b=>{if('formatBlock'!=_0x40b57b['type']&&'formatInline'!=_0x40b57b['type'])return;const {data:_0x3b9f81}=_0x40b57b;return _0x3b9f81&&'mergeTableCells'==_0x3b9f81['commandName']?{'type':'format','content':o(_0x305c4a,'*Merge\x20cells*')}:void 0x0;}),_0x4a5f8d['_descriptionFactory']['registerDescriptionCallback'](_0x4a8fa2=>{if('formatBlock'!=_0x4a8fa2['type']&&'formatInline'!=_0x4a8fa2['type'])return;const {data:_0x2c665e}=_0x4a8fa2;return _0x2c665e?'splitTableCellVertically'==_0x2c665e['commandName']?{'type':'format','content':o(_0x305c4a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2c665e['commandName']?{'type':'format','content':o(_0x305c4a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3b41cb=_0x59aded['_acceptFormatSuggestionCallbackFactory']();for(const _0x7c80d7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4a5f8d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7c80d7,'accept',_0x3b41cb);for(const _0x30bf6e of['splitTableCellVertically','splitTableCellHorizontally'])_0x4a5f8d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30bf6e,'accept',_0x3b41cb);_0x4a5f8d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5a607c=>{_0x4faadb['model']['change'](_0x18e5d2=>{const _0x519400=Array['from'](_0x16e667['getRanges']())['map'](_0x541700=>_0x40e8d5['fromRange'](_0x541700));_0x18e5d2['setSelection'](_0x5a607c),_0x4faadb['commands']['get']('mergeTableCells')['refresh'](),_0x4faadb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x341ae5=_0x519400['filter'](_0x45c3e8=>'$graveyard'!=_0x45c3e8['root']['rootName']);_0x341ae5['length']>0x0&&_0x18e5d2['setSelection'](_0x341ae5);for(const _0x4ec91d of _0x519400)_0x4ec91d['detach']();});});for(const _0x2053bb of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x551fc2=_0x4faadb['commands']['get'](_0x2053bb);_0x551fc2['on']('set:isEnabled',(_0x14346e,_0x1880d1,_0x18920c)=>{if(_0x18920c){const _0x581635=_0x4faadb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe3b2c1=>_0xe3b2c1['is']('element','tableCell'));this['_areMergableCells'](_0x551fc2['value'],_0x581635)||(_0x14346e['return']=!0x1,_0x14346e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x50922a=this['editor']['commands']['get']('mergeTableCells'),_0x30c22e=this['editor']['plugins']['get']('TableUtils');if(!_0x50922a['isEnabled'])return!0x1;const _0x3402d4=_0x30c22e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x165b2a of _0x3402d4)for(const _0x3055ca of _0x3402d4)if(_0x165b2a!=_0x3055ca&&!this['_areMergableCells'](_0x165b2a,_0x3055ca))return!0x1;return!0x0;}['_areMergableCells'](_0xbff5f0,_0x363275){const _0x5e3df0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b42c2=this['editor']['model']['createRangeOn'](_0xbff5f0),_0x31bd66=this['editor']['model']['createRangeOn'](_0x363275),_0x5b220a=new Set(),_0x2dcf00=new Set();for(const _0x49ab46 of _0x5e3df0['getSuggestions']())if(('insertion'==_0x49ab46['type']||'deletion'==_0x49ab46['type']||'mergeTableCells'==_0x49ab46['subType'])&&_0x49ab46['isInContent']){for(const _0x1a5f64 of _0x49ab46['getRanges']())_0x1a5f64['containsRange'](_0x3b42c2,!0x0)&&_0x5b220a['add'](_0x49ab46['type']+':'+_0x49ab46['author']['id']),_0x1a5f64['containsRange'](_0x31bd66,!0x0)&&_0x2dcf00['add'](_0x49ab46['type']+':'+_0x49ab46['author']['id']);}if(_0x5b220a['size']!=_0x2dcf00['size'])return!0x1;for(const _0x8102d6 of _0x5b220a)if(!_0x2dcf00['has'](_0x8102d6))return!0x1;return!0x0;}}class At extends _0xf56dee{static get['requires'](){return[jt];}['afterInit'](){const _0x1a82c6=this['editor'];if(!_0x1a82c6['plugins']['has']('TableEditing'))return;const _0x4dc3ad=_0x1a82c6['locale'],_0x2b7886=_0x1a82c6['plugins']['get']('TrackChangesEditing');_0x2b7886['_enableDefaultAttributesIntegration']('setTableRowHeader',[],['headingRows']),_0x2b7886['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0x2b7886['_descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4dc3ad,'FORMAT_HEADER_ROW')),_0x2b7886['_descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4dc3ad,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59047d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e50e0=this['editor']['plugins']['get']('TableUtils'),_0x53e4da=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x321f81({showActiveMarker:_0x26fd9f=!0x0,setDataAttribute:_0x12d17c=!0x0}={}){return(_0x39aa8e,_0x6c1d9a,_0x183f4c)=>{const {type:_0xe1b64b,id:_0x389054}=_0x59047d['_splitMarkerName'](_0x6c1d9a['markerName']),_0x426d27=_0x59047d['getSuggestion'](_0x389054),_0x5d9609=_0x426d27['data'];if('formatBlock'!=_0x426d27['type']||!_0x5d9609||'setTableColumnHeader'!=_0x5d9609['commandName'])return;if(_0x6c1d9a['item'])return void _0x39aa8e['stop']();if(!_0x183f4c['consumable']['consume'](_0x6c1d9a['markerRange'],_0x39aa8e['name']))return;const _0x1ebceb=_0x6c1d9a['markerRange']['start']['nodeAfter'],_0x33b839=_0x6c1d9a['markerRange']['end']['nodeBefore'],_0x193b56=_0x1ebceb['parent']['parent'],{column:_0x371966}=_0x5e50e0['getCellLocation'](_0x1ebceb),{column:_0x529f55}=_0x5e50e0['getCellLocation'](_0x33b839);for(let _0x5292f2=_0x371966;_0x5292f2<=_0x529f55;_0x5292f2++){const _0x4fc23c=_0x5e50e0['createTableWalker'](_0x193b56,{'column':_0x5292f2,'includeAllSlots':!0x1});for(const _0x18a620 of _0x4fc23c){const _0x32a881=_0x18a620['cell'],_0x141d47=_0x183f4c['mapper']['toViewElement'](_0x32a881);_0x183f4c['writer']['addClass']('ck-suggestion-marker-'+_0xe1b64b,_0x141d47),_0x12d17c&&_0x183f4c['writer']['setAttribute']('data-suggestion',_0x389054,_0x141d47),_0x183f4c['mapper']['bindElementToMarker'](_0x141d47,_0x6c1d9a['markerName']),_0x26fd9f&&(_0x59047d['activeMarkers']['includes'](_0x6c1d9a['markerName'])?_0x183f4c['writer']['addClass']('ck-suggestion-marker--active',_0x141d47):_0x183f4c['writer']['removeClass']('ck-suggestion-marker--active',_0x141d47));}}};}_0x59047d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x53e4da),_0x59047d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x53e4da),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x321f81(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3289c8,_0x426222,_0xdd0793)=>{_0xdd0793['options']['showSuggestionHighlights']&&_0x321f81({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3289c8,_0x426222,_0xdd0793);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c2368,_0x912981,_0x31ddb0)=>{const {type:_0x54ba7c,id:_0x1762c3}=_0x59047d['_splitMarkerName'](_0x912981['markerName']),_0x47cfd4=_0x59047d['getSuggestion'](_0x1762c3),_0x265fb2=_0x47cfd4['data'];if('formatBlock'!=_0x47cfd4['type']||!_0x265fb2||'setTableColumnHeader'!=_0x265fb2['commandName'])return;const _0x3eda42=_0x31ddb0['mapper']['markerNameToElements'](_0x912981['markerName']);if(_0x3eda42){for(const _0x4cbaa8 of _0x3eda42)_0x31ddb0['writer']['removeClass']('ck-suggestion-marker-'+_0x54ba7c,_0x4cbaa8),_0x31ddb0['writer']['removeClass']('ck-suggestion-marker--active',_0x4cbaa8),_0x31ddb0['writer']['removeAttribute']('data-suggestion',_0x4cbaa8),_0x31ddb0['mapper']['unbindElementFromMarkerName'](_0x4cbaa8,_0x912981['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27869b=this['editor'],_0x18f7b6=_0x27869b['locale'];function _0x40e00e(_0x2db887){return{'type':'format','content':o(_0x18f7b6,'*Format:*\x20%0',_0x2db887)};}_0x27869b['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xe31d01=>{if('formatBlock'!=_0xe31d01['type'])return;const {data:_0x4b35eb}=_0xe31d01;if(_0x4b35eb){if('setTableRowHeader'==_0x4b35eb['commandName']){const _0x355dfa=_0x4b35eb['commandParams'][0x0]['forceValue'];return _0x40e00e(o(_0x18f7b6,_0x355dfa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4b35eb['commandName']){const _0x569a3a=_0x4b35eb['commandParams'][0x0]['forceValue'];return _0x40e00e(o(_0x18f7b6,_0x569a3a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5d7115=>[_0x5d7115,null]));class It extends _0xf56dee{static get['requires'](){return[jt];}['afterInit'](){const _0x4480be=this['editor'];if(!_0x4480be['plugins']['has']('TableClipboard'))return;const _0x160b86=_0x4480be['plugins']['get']('TrackChangesEditing'),_0x464c38=_0x4480be['plugins']['get']('TableUtils'),_0x441ad1=_0x4480be['plugins']['get'](jt),_0x3071fa=_0x4480be['plugins']['get']('TableClipboard');_0x441ad1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4480be['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4480be['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x261023=null;_0x4480be['model']['on']('insertContent',(_0xe1a0d1,_0x37e651)=>{const [_0x3f608c,_0x2927a6]=_0x37e651,_0x157589=_0x37e651[_0x37e651['length']-0x1];_0x157589&&_0x157589['forceDefaultExecution']||_0x160b86['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x52b1e9,_0x1f9e3c,_0x34f8d0,_0x5b09ca,_0x30e8a5){if(_0x1f9e3c&&!_0x1f9e3c['is']('documentSelection'))return!0x1;const _0x51d67e=_0x30e8a5['getTableIfOnlyTableInContent'](_0x52b1e9,_0x34f8d0);if(!_0x51d67e||!he(_0x51d67e,void 0x0,_0x5b09ca))return!0x1;const _0x41f6be=_0x5b09ca['getSelectionAffectedTableCells'](_0x34f8d0['document']['selection']);if(!_0x41f6be['length'])return!0x1;const _0x4bd5b4=_0x41f6be[0x0]['findAncestor']('table'),_0x339c33=_0x5b09ca['getRowIndexes'](_0x41f6be),_0x32c1a5=_0x5b09ca['getColumnIndexes'](_0x41f6be),_0x272ea1={'startRow':_0x339c33['first'],'endRow':_0x339c33['last'],'startColumn':_0x32c1a5['first'],'endColumn':_0x32c1a5['last']};return 0x1==_0x41f6be['length']&&(_0x272ea1['endRow']+=_0x5b09ca['getRows'](_0x51d67e)-0x1,_0x272ea1['endColumn']+=_0x5b09ca['getColumns'](_0x51d67e)-0x1),he(_0x4bd5b4,_0x272ea1,_0x5b09ca);}(_0x3f608c,_0x2927a6,_0x4480be['model'],_0x464c38,_0x3071fa)&&(_0xe1a0d1['stop'](),_0x261023={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4480be['model']['change'](()=>{_0x4480be['model']['insertContent'](_0x37e651[0x0],_0x37e651[0x1],_0x37e651[0x2],{'forceDefaultExecution':!0x0});const _0x43246a=_0x219e6e(),{rowInsertionRanges:_0x5d072e,columnInsertionRanges:_0x40110c,insertionRanges:_0x4a58f8,deletionRanges:_0x382725,cells:_0x1a1ba9}=_0x261023;_0x5d072e['length']&&_0x160b86['markMultiRangeInsertion'](_0x5d072e,'tablePasteRow',{'tablePasteChainId':_0x43246a}),_0x40110c['length']&&_0x160b86['markMultiRangeInsertion'](_0x40110c,'tablePasteColumn',{'tablePasteChainId':_0x43246a}),_0x4a58f8['length']&&(_0x160b86['markMultiRangeInsertion'](_0x4a58f8,'tablePaste',{'tablePasteChainId':_0x43246a,'skipNestingCheck':!0x0}),_0x4a58f8['forEach'](_0x529ea6=>{var _0x2820d5;return null===(_0x2820d5=_0x529ea6['detach'])||void 0x0===_0x2820d5?void 0x0:_0x2820d5['call'](_0x529ea6);})),_0x382725['length']&&(_0x160b86['markMultiRangeDeletion'](_0x382725,'tablePaste',{'tablePasteChainId':_0x43246a,'skipNestingCheck':!0x0}),_0x382725['forEach'](_0x402422=>{var _0x5162f5;return null===(_0x5162f5=_0x402422['detach'])||void 0x0===_0x5162f5?void 0x0:_0x5162f5['call'](_0x402422);}));const _0xb8cf52=_0x160b86['markMultiRangeBlockFormat'](_0x1a1ba9['map'](({element:_0x37c0f2})=>_0x37c0f2),{'formatGroupId':_0x219e6e()},[],'tablePasteCell',{'tablePasteChainId':_0x43246a});if(_0xb8cf52){const _0x15c19c=_0xb8cf52['getMarkers'](),_0x39d970=[];for(const {element:_0x2db03f,attributes:_0x25d532}of _0x1a1ba9){if(!_0x25d532)continue;const _0x713ce9=_0x4480be['model']['createRangeOn'](_0x2db03f),_0x3bc28f=_0x15c19c['find'](_0x3d8728=>_0x3d8728['getRange']()['isEqual'](_0x713ce9));_0x3bc28f&&_0x39d970['push']([_0x3bc28f['name'],_0x25d532]);}_0x39d970['length']&&_0xb8cf52['setAttribute']('markerAttributes',Object['fromEntries'](_0x39d970));}_0x261023=null;}));},{'priority':_0x5387e0['high']+0xa}),_0x4480be['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x27d3f7,_0x7dc8d8)=>{const [_0x33b41a,_0x37dfce,,_0x37cd54]=_0x7dc8d8;if(!_0x261023)return;_0x27d3f7['stop']();const _0x463a30=_0x33b41a['cell'],_0x9a3686=_0x37dfce,_0x5db5ce=Pe(_0x463a30),_0x4a6de6=Pe(_0x9a3686);_0x27d3f7['return']=_0x463a30;let _0x27ad88=null,_0x107bc9=null;if(_0x4a6de6||_0x5db5ce){if(_0x5db5ce&&!_0x4a6de6){_0x37cd54['remove'](_0x463a30['getChild'](0x0));for(const _0x461ab6 of Array['from'](_0x9a3686['getChildren']()))_0x37cd54['insert'](_0x461ab6,_0x463a30,'end');const _0x2a6919=_0x261023['rowInsertionIndexes']['includes'](_0x33b41a['row']),_0x2380cb=_0x261023['columnInsertionIndexes']['includes'](_0x33b41a['column']);_0x2a6919||_0x2380cb||(_0x27ad88=_0x40e8d5['fromRange'](_0x37cd54['createRangeIn'](_0x463a30)));}else _0x4a6de6&&!_0x5db5ce&&(_0x107bc9=_0x37cd54['createRangeIn'](_0x463a30));}else{const _0x166aea=_0x37cd54['createElement']('tableCellSuggestion'),_0x220a48=_0x37cd54['createElement']('tableCellSuggestion');_0x37cd54['wrap'](_0x37cd54['createRangeIn'](_0x463a30),_0x220a48),_0x37cd54['insert'](_0x166aea,_0x463a30,0x0);for(const _0xf32b55 of Array['from'](_0x9a3686['getChildren']()))_0x37cd54['insert'](_0xf32b55,_0x166aea,'end');_0x27ad88=_0x40e8d5['fromRange'](_0x37cd54['createRangeOn'](_0x166aea)),_0x107bc9=_0x40e8d5['fromRange'](_0x37cd54['createRangeOn'](_0x220a48));}const _0x477495=Array['from'](_0x9a3686['getAttributes']())['filter'](([_0x33e1dd])=>ge['includes'](_0x33e1dd));_0x261023['cells']['push']({'element':_0x463a30,'attributes':_0x477495['length']?Object['fromEntries'](_0x477495):null}),_0x27ad88&&_0x261023['insertionRanges']['push'](_0x27ad88),_0x107bc9&&_0x261023['deletionRanges']['push'](_0x107bc9);},{'priority':'high'}),_0x464c38['on']('insertColumns',(_0x5328de,_0x2baab3)=>{const [_0x218eab,_0xeae633={}]=_0x2baab3;if(!_0x261023)return;const _0x1c3903=_0xeae633['at']||0x0,_0x4d684d=_0xeae633['columns']||0x1;_0x261023['columnInsertionIndexes']=new Array(_0x4d684d)['fill'](_0x1c3903)['map']((_0xe40843,_0x197c59)=>_0xe40843+_0x197c59);for(const {cell:_0x26c95e}of _0x464c38['createTableWalker'](_0x218eab,{'startColumn':_0x1c3903,'endColumn':_0x1c3903+_0x4d684d-0x1}))_0x261023['columnInsertionRanges']['push'](_0x4480be['model']['createRangeOn'](_0x26c95e));},{'priority':'low'}),_0x464c38['on']('insertRows',(_0x65144d,_0x4c1b4b)=>{const [_0x782ab2,_0x51a08c={}]=_0x4c1b4b;if(!_0x261023)return;const _0x1051a4=_0x51a08c['at']||0x0,_0x10d4db=_0x51a08c['rows']||0x1;_0x261023['rowInsertionIndexes']=new Array(_0x10d4db)['fill'](_0x1051a4)['map']((_0x4c2000,_0x2fab58)=>_0x4c2000+_0x2fab58);for(const {cell:_0xfcad9a}of _0x464c38['createTableWalker'](_0x782ab2,{'startRow':_0x1051a4,'endRow':_0x1051a4+_0x10d4db-0x1}))_0x261023['rowInsertionRanges']['push'](_0x4480be['model']['createRangeOn'](_0xfcad9a));},{'priority':'low'}),_0x160b86['_descriptionFactory']['registerDescriptionCallback'](_0x46bce9=>{if(_0x46bce9['subType']&&_0x46bce9['subType']['startsWith']('tablePaste'))return _0x46bce9['previous']?{}:{'type':'insertion','content':o(_0x4480be['locale'],'*Replace\x20table\x20cells*')};});const _0x597811=()=>!0x1;for(const _0x43aded of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x160b86['_suggestionFactory']['registerCustomCallback']('insertion',_0x43aded,'join',_0x597811),_0x160b86['_suggestionFactory']['registerCustomCallback']('deletion',_0x43aded,'join',_0x597811),_0x160b86['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x43aded,'join',_0x597811);_0x160b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x597811),_0x160b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x48d92e,_0x4516ae,_0x679601)=>{const _0x9d6128=_0x48d92e['map'](_0xad01e3=>_0xad01e3['getContainedElement']())['filter'](_0x2d9cb6=>_0x2d9cb6),_0x483f58=new Map(_0x9d6128['map'](_0xa03c6=>[_0xa03c6,null]));if(_0x261023){for(const {element:_0x166742,attributes:_0x200289}of _0x261023['cells'])_0x200289&&_0x483f58['set'](_0x166742,_0x200289);}else{if(_0x679601&&_0x679601['markerAttributes'])for(const [_0x545f6f,_0x4cebd4]of Object['entries'](_0x679601['markerAttributes'])){const _0x552c1a=_0x4480be['model']['markers']['get'](_0x545f6f),_0x590c61=_0x552c1a?_0x552c1a['getRange']()['getContainedElement']():null;_0x590c61&&_0x483f58['set'](_0x590c61,_0x4cebd4);}}_0x4480be['model']['change'](_0x23c256=>{for(const [_0x205599,_0x134d09]of _0x483f58)_0x23c256['setAttributes']({...Ce,..._0x134d09},_0x205599);});});const _0x2d2106=(_0x447bd5,_0x322181)=>{_0x160b86['_suggestionFactory']['registerCustomCallback'](_0x447bd5,'tablePaste',_0x322181,(_0x14fc0b,_0x4c69b6,_0x2e2453)=>{_0x4480be['model']['change'](_0x3a6cee=>{const _0x27d0fb=[];for(const _0x3ae546 of _0x14fc0b){const _0x464672=_0x3ae546['start']['nodeAfter'];_0x464672['is']('element','tableCellSuggestion')&&_0x27d0fb['push'](_0x464672);}_0x160b86['_suggestionFactory']['getSuggestionCallback'](_0x447bd5,null,_0x322181)(_0x14fc0b,_0x4c69b6,_0x2e2453);for(const _0x38e9b3 of _0x27d0fb)'$graveyard'!=_0x38e9b3['root']['rootName']&&_0x3a6cee['unwrap'](_0x38e9b3);});});};_0x2d2106('insertion','accept'),_0x2d2106('insertion','discard'),_0x2d2106('deletion','accept'),_0x2d2106('deletion','discard'),_0x160b86['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x38b188=>{const _0x4ec34a=_0x38b188['map'](_0x102790=>_0x102790['getContainedElement']()),_0x19e657=_0x4ec34a[0x0]['findAncestor']('table'),{minRow:_0x25dd0c,maxRow:_0x35c0b3}=_0x441ad1['_getCoordsForCells'](_0x4ec34a);_0x464c38['removeRows'](_0x19e657,{'at':_0x25dd0c,'rows':_0x35c0b3-_0x25dd0c+0x1});}),_0x160b86['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x279565=>{const _0x4be94f=_0x279565['map'](_0x4a935d=>_0x4a935d['getContainedElement']()),_0x23eb20=_0x4be94f[0x0]['findAncestor']('table'),{minColumn:_0x5e0d41,maxColumn:_0x10ff15}=_0x441ad1['_getCoordsForCells'](_0x4be94f);_0x464c38['removeColumns'](_0x23eb20,{'at':_0x5e0d41,'columns':_0x10ff15-_0x5e0d41+0x1});});const _0x1bda66=(_0x4b0a11,_0x26283f)=>{if(!_0x26283f['subType']||!_0x26283f['subType']['startsWith']('tablePaste'))return;const _0x32fe5b=_0x26283f['attributes']['tablePasteChainId'],_0x120582=_0x160b86['getSuggestions']()['filter'](_0x49f887=>_0x49f887['isInContent']&&_0x49f887['attributes']&&_0x49f887['attributes']['tablePasteChainId']==_0x32fe5b);_0x120582['length']&&_0x26283f['getAllAdjacentSuggestions']()['length']!=_0x120582['length']&&_0x120582['reduce']((_0x3ea415,_0x4d25fe)=>(_0x3ea415['next']=_0x4d25fe,_0x4d25fe['previous']=_0x3ea415,_0x4d25fe));};function _0x147581(_0x27e9ab,_0x2e90ed=!0x0){const {id:_0x5d16bb}=_0x160b86['_splitMarkerName'](_0x27e9ab['markerName']),_0x471424=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x16b7a8=_0x160b86['activeMarkers']['includes'](_0x27e9ab['markerName']);return _0x16b7a8&&_0x471424['push']('ck-suggestion-marker--active'),{'classes':_0x471424,'attributes':{'data-suggestion':_0x5d16bb},'priority':_0x16b7a8&&_0x2e90ed?0xbc2:0xbb8};}_0x160b86['on']('suggestionLoaded',_0x1bda66,{'priority':'high'}),_0x160b86['on']('suggestionUnloaded',_0x1bda66,{'priority':'high'}),_0x4480be['model']['document']['registerPostFixer'](()=>{let _0x3438f4=!0x1;const _0x558c6a=Array['from'](_0x4480be['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bee88,data:_0x5bac47}of _0x558c6a){const {group:_0x5e999c,type:_0x3d3228,id:_0x4c2218}=_0x160b86['_splitMarkerName'](_0x2bee88);if('suggestion'!=_0x5e999c||'deletion'!=_0x3d3228||_0x5bac47['oldRange'])continue;if(!_0x160b86['hasSuggestion'](_0x4c2218))continue;const _0x2de120=_0x160b86['getSuggestion'](_0x4c2218)['getRanges'](),_0x574055=_0x4480be['plugins']['get']('Users')['me'];for(const _0x46e972 of _0x160b86['getSuggestions']()){if(!_0x46e972['isInContent']||_0x46e972['author']!=_0x574055)continue;if('formatBlock'!=_0x46e972['type']||'tablePasteCell'!=_0x46e972['subType'])continue;if(_0x46e972['getRanges']()['every'](_0x2fcc8d=>_0x2de120['some'](_0x1c2897=>_0x1c2897['containsRange'](_0x2fcc8d,!0x0)))){for(const _0x11b5f6 of _0x46e972['getAllAdjacentSuggestions']())_0x11b5f6['isInContent']&&(_0x11b5f6['discard'](),_0x3438f4=!0x0);}}}return _0x3438f4;}),_0x4480be['model']['document']['registerPostFixer'](_0x344425=>{const _0x25d45d=_0x4480be['commands']['get']('redo');if(!_0x25d45d||!_0x25d45d['_createdBatches']['has'](_0x344425['batch']))return!0x1;let _0x1c88b0=!0x1;const _0x3bf568=_0x4480be['plugins']['get']('Users')['me'],_0x5bc96c=_0x4480be['model']['document']['differ']['getChanges'](),_0x414a4a=Array['from'](_0x4480be['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3dac81,data:_0x3e2f94})=>{const {group:_0x1ee3b9,subType:_0x398603,authorId:_0xb7be2c}=_0x160b86['_splitMarkerName'](_0x3dac81);return'suggestion'==_0x1ee3b9&&'tablePaste'==_0x398603&&_0xb7be2c==_0x3bf568['id']&&!_0x3e2f94['oldRange'];});for(const _0xf2f902 of _0x5bc96c){if('insert'!=_0xf2f902['type']||'tableCellSuggestion'!=_0xf2f902['name']||0x1!=_0xf2f902['length'])continue;const _0x45171e=_0x344425['createRange'](_0xf2f902['position'],_0xf2f902['position']['getShiftedBy'](0x1));if(!_0x414a4a['find'](({data:_0x22390d})=>_0x22390d['newRange']['isEqual'](_0x45171e))){for(const {name:_0xa29a2c,data:_0x3e0a89}of _0x414a4a)if(_0x45171e['containsRange'](_0x3e0a89['newRange'])){_0x344425['updateMarker'](_0xa29a2c,{'range':_0x45171e}),_0x1c88b0=!0x0;break;}}}return _0x1c88b0;}),_0x4480be['model']['document']['registerPostFixer'](_0x2b6986=>{let _0x1892a0=!0x1;const _0x391d30=_0x4480be['plugins']['get']('Users')['me'],_0x358385=_0x160b86['getSuggestions']()['filter'](_0x9ad977=>_0x9ad977['isInContent']&&_0x9ad977['author']==_0x391d30),_0x1fd954=new Set(),_0x129ac3=new Set();for(const _0x203a07 of _0x358385)if('tablePaste'==_0x203a07['subType'])for(const _0x381d8b of _0x203a07['getMarkers']()){const _0x14e4de=_0x381d8b['getRange']()['getContainedElement']();if(_0x14e4de){if(_0x14e4de['is']('element','tableCellSuggestion')&&Pe(_0x14e4de)){_0x203a07['removeMarker'](_0x381d8b['name']),_0x1fd954['add'](_0x14e4de),_0x1892a0=!0x0;const _0x3ef77c=_0x14e4de['nextSibling'],_0x505caf=_0x14e4de['previousSibling'],_0x586322=_0x3ef77c&&_0x3ef77c['is']('element','tableCellSuggestion'),_0x331e8c=_0x505caf&&_0x505caf['is']('element','tableCellSuggestion');_0x586322&&!_0x1fd954['has'](_0x3ef77c)&&_0x129ac3['add'](_0x3ef77c),_0x331e8c&&!_0x1fd954['has'](_0x505caf)&&_0x129ac3['add'](_0x505caf);}else _0x14e4de['is']('element','paragraph')&&_0x14e4de['isEmpty']&&(_0x203a07['removeMarker'](_0x381d8b['name']),_0x1892a0=!0x0);}}else{if('tablePasteCell'==_0x203a07['subType']){if(!_0x203a07['attributes']||!_0x203a07['attributes']['tablePasteChainId'])continue;const _0x47a4e4=_0x203a07['attributes']['markerAttributes'];if(_0x47a4e4&&Object['keys'](_0x47a4e4)['length'])continue;const _0x51a94d=_0x203a07['attributes']['tablePasteChainId'];let _0x3b2fd4=!0x0,_0x428209=!0x0;for(const _0x214a9d of _0x358385)if(_0x214a9d['subType']&&_0x214a9d['subType']['startsWith']('tablePaste')){if(!_0x214a9d['attributes']['tablePasteChainId']){_0x428209=!0x1;break;}if(_0x214a9d['id']!=_0x203a07['id']&&_0x214a9d['attributes']['tablePasteChainId']==_0x51a94d){_0x3b2fd4=!0x1;break;}}_0x428209&&_0x3b2fd4&&(_0x203a07['removeMarkers'](),_0x1892a0=!0x0);}}for(const _0x1a103f of _0x1fd954)_0x2b6986['remove'](_0x1a103f);for(const _0x92b6e9 of _0x129ac3)_0x2b6986['unwrap'](_0x92b6e9);return _0x1892a0;}),_0x4480be['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x315a94,_0x1475c3)=>_0x147581(_0x315a94),'converterPriority':'high'}),_0x4480be['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5e0ae4,_0x59916a)=>_0x59916a['options']['showSuggestionHighlights']?_0x147581(_0x5e0ae4,!0x1):null,'converterPriority':'high'});const _0x3f6cd9=_0x4480be['editing']['view'];this['listenTo'](_0x3f6cd9['document'],'clipboardOutput',(_0x5843bb,_0x5339a2)=>{const _0x5114ff=[];for(const _0x2dd1ec of _0x3f6cd9['createRangeIn'](_0x5339a2['content'])['getItems']())_0x2dd1ec['is']('element','suggestion-td')&&_0x5114ff['push'](_0x2dd1ec);_0x3f6cd9['change'](_0x5f53c9=>{for(const _0x328355 of _0x5114ff)_0x5f53c9['move'](_0x5f53c9['createRangeIn'](_0x328355),_0x5f53c9['createPositionBefore'](_0x328355)),_0x5f53c9['remove'](_0x328355);});});}}function Pe(_0xdb840a){if(_0xdb840a['isEmpty'])return!0x0;const _0x3ce771=_0xdb840a['getChild'](0x0);return _0x3ce771['is']('element','paragraph')&&_0x3ce771['isEmpty'];}function he(_0x2fa39b,_0x48273b={},_0xe7d59f){for(const {isAnchor:_0x41aa2d,cellHeight:_0x4dfdaf,cellWidth:_0x5b3493}of _0xe7d59f['createTableWalker'](_0x2fa39b,{'includeAllSlots':!0x0,..._0x48273b}))if(!_0x41aa2d||0x1!=_0x4dfdaf||0x1!=_0x5b3493)return!0x1;return!0x0;}class vt extends _0xf56dee{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x11b90a=this['editor']['plugins']['get']('TrackChangesEditing');_0x11b90a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x11b90a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x11b90a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11b90a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x11b90a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x11b90a['_descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xa892cc,_0x2bb2a2){const _0x3c104d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xab496b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49877f=_0x2bb2a2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2ecf90=_0xab496b['getColumnGroupElement'](_0x49877f);let _0x4c3a33=_0x2ecf90?_0xab496b['getTableColumnsWidths'](_0x2ecf90):null,_0x541bfc=_0x49877f['getAttribute']('tableWidth')||null;const _0x3ade01=_0x2bb2a2['tableWidth']||_0x541bfc,_0x75ad20=_0x2bb2a2['columnWidths']||_0x4c3a33,_0x56ebb6=this['editor']['plugins']['get']('Users')['me'];for(const _0x5293b3 of _0x3c104d['getSuggestions']()){const _0x2ebe58=_0x5293b3['getContainedElement']();if('resizeTable'===_0x5293b3['subType']&&_0x2ebe58===_0x49877f){_0x5293b3['author']!==_0x56ebb6&&_0x5293b3['discard']();const _0x19b6b8=_0x5293b3['data']['commandParams'];_0x541bfc=_0x19b6b8[0x0]['tableWidth'],_0x4c3a33=_0x19b6b8[0x0]['columnWidths'];break;}}_0xa892cc({'table':_0x49877f,'tableWidth':_0x3ade01,'columnWidths':_0x75ad20}),_0x3c104d['markBlockFormat'](_0x49877f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x541bfc,'columnWidths':_0x4c3a33}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4814ba){if('formatBlock'!=_0x4814ba['type']&&'formatInline'!=_0x4814ba['type'])return;const {data:_0x2a55db}=_0x4814ba;if(_0x2a55db&&'resizeTable'===_0x2a55db['formatGroupId']){const _0xefa5da='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xefa5da)};}}}class _t extends _0xf56dee{['afterInit'](){const _0x6d078e=this['editor'];_0x6d078e['plugins']['has']('Template')&&_0x6d078e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0xf56dee{['afterInit'](){const _0x33dd9d=this['editor'];if(!_0x33dd9d['commands']['get']('insertTableOfContents'))return;_0x33dd9d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x49f6f7=_0x33dd9d['plugins']['get']('TrackChangesEditing'),_0x2b955f=_0x33dd9d['locale'];_0x49f6f7['_descriptionFactory']['registerElementLabel']('tableOfContents',_0x49398e=>o(_0x2b955f,'ELEMENT_TABLE_OF_CONTENTS',_0x49398e));}}class Dt extends _0xf56dee{['afterInit'](){const _0x2aec49=this['editor'];if(!_0x2aec49['plugins']['has']('Title'))return;const _0x4a6eb8=_0x2aec49['plugins']['get']('TrackChangesEditing');_0x4a6eb8['_descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2aec49['locale'],'ELEMENT_TITLE')),_0x2aec49['model']['document']['registerPostFixer'](_0x3796b3=>{let _0x17150c=!0x1;const _0x5201c7=Array['from'](_0x2aec49['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x57feb1,data:_0x5250d6}of _0x5201c7){const {group:_0x2c00a5}=_0x4a6eb8['_splitMarkerName'](_0x57feb1);if('suggestion'!==_0x2c00a5||!_0x5250d6['newRange'])continue;const _0x24f89a=_0x5250d6['newRange'],_0x24da82=_0x24f89a['end']['nodeBefore'];if(!_0x24da82||!_0x24da82['is']('element','title-content'))continue;if(!_0x24f89a['start']['isTouching'](_0x24f89a['end']))continue;const _0x2940a2=_0x2aec49['model']['schema']['getNearestSelectionRange'](_0x24f89a['end'],'forward');if(_0x2940a2&&_0x2940a2['isCollapsed']){const _0x6e02f8=_0x3796b3['createRange'](_0x24f89a['start'],_0x2940a2['start']);_0x6e02f8['isEqual'](_0x24f89a)||(_0x3796b3['updateMarker'](_0x57feb1,{'range':_0x6e02f8}),_0x17150c=!0x0);}_0x17150c||(_0x3796b3['removeMarker'](_0x57feb1),_0x17150c=!0x0);}return _0x17150c;});}}class Nt extends _0xf56dee{['afterInit'](){const _0x17f336=this['editor'],_0xd23acc=_0x17f336['plugins']['get']('TrackChangesEditing');_0x17f336['plugins']['has']('UndoEditing')&&(_0xd23acc['enableCommand']('undo'),_0xd23acc['enableCommand']('redo'));}}class Mt extends _0xf56dee{static get['requires'](){return[jt];}['afterInit'](){const _0x2fbacf=this['editor'];if(!_0x2fbacf['plugins']['has']('TableCaptionEditing'))return;_0x2fbacf['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0xf56dee{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x271400=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5ae64c of this['tableProperties'])_0x271400['enableCommand'](_0x5ae64c,(_0x522cb1,_0x5c72be)=>{const _0x42b301=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5ae64c,[_0x42b301],this['tableProperties'],'tableProperties',_0x522cb1,_0x5c72be);});_0x271400['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x271400['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x271400['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x141cdb,_0x2a3ff7)=>this['handleDiscardAction'](this['tableProperties'],_0x141cdb,_0x2a3ff7)),_0x271400['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xaf633a of this['tableCellProperties'])_0x271400['enableCommand'](_0xaf633a,(_0x3bac26,_0x2911c3)=>{const _0x3ef662=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xaf633a,_0x3ef662,this['tableCellProperties'],'tableCellProperties',_0x3bac26,_0x2911c3);});_0x271400['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x271400['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x271400['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f4529,_0x5a32ae)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f4529,_0x5a32ae)),_0x271400['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x271400['_descriptionFactory']['registerDescriptionCallback'](_0x149e26=>this['handleSuggestionDescription'](_0x149e26));}['_handlePropertyChange'](_0x513e7a,_0x38d4d5,_0x42e504,_0x4c405a,_0x1d0ab2,_0x3d7a4c){const _0x351698=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3d7a4c['batch'],()=>{for(const _0x5f521c of _0x38d4d5){if(this['_getSuggestion'](_0x5f521c,_0x4c405a))_0x1d0ab2(_0x3d7a4c);else{const _0x5d75b7={};for(const _0x1af98b of _0x42e504){const _0x51a69d=_0x5f521c['getAttribute'](_0x1af98b);void 0x0!==_0x51a69d&&(_0x5d75b7[_0x1af98b]=_0x51a69d);}_0x1d0ab2(_0x3d7a4c),_0x351698['markBlockFormat'](_0x5f521c,{'commandParams':[_0x5d75b7]},[],_0x4c405a);}}});}['handleDiscardAction'](_0x555a57,_0x4f44fb,_0x1fd8ab){const _0x812a71=_0x4f44fb[0x0]['start']['nodeAfter'],_0x19808a=_0x1fd8ab['commandParams'][0x0];this['editor']['model']['change'](_0x5e4d42=>{for(const _0xdd45a7 of _0x555a57)void 0x0!==_0x19808a[_0xdd45a7]?_0x5e4d42['setAttribute'](_0xdd45a7,_0x19808a[_0xdd45a7],_0x812a71):_0x5e4d42['removeAttribute'](_0xdd45a7,_0x812a71);});}['handleSuggestionDescription'](_0x1677cb){if(_0x1677cb['data'])switch(_0x1677cb['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5437d8,_0x101e96){const _0x4ce6fc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x26ee26 of _0x4ce6fc['getSuggestions']({'skipNotAttached':!0x0})){const _0x2abac6=_0x26ee26['getContainedElement']();if(_0x26ee26['subType']===_0x101e96&&_0x2abac6===_0x5437d8)return _0x26ee26;}return null;}constructor(_0x5ecb20){super(_0x5ecb20),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0xf56dee{static get['requires'](){return['CommentsRepository',_0x2cd81b,_0x10ae0f,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}['init'](){const _0x557f6d=this['editor'],_0x277ffb=(_0x182713,_0x421a4f)=>{if('attribute'!=_0x182713)return'ck-suggestion-marker-'+_0x182713;const _0x39818b=_0x421a4f['split']('|')[0x0];return this['_isBlockAttribute'](_0x39818b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x557f6d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4b7acc=>{const {id:_0x5882ca,type:_0x55267f,subType:_0x4fcc00}=this['_splitMarkerName'](_0x4b7acc['markerName']),_0x2d3764=['ck-suggestion-marker',_0x277ffb(_0x55267f,_0x4fcc00)];let _0x22c0da=0xbb8;return this['activeMarkers']['includes'](_0x4b7acc['markerName'])&&(_0x2d3764['push']('ck-suggestion-marker--active'),_0x22c0da=0xbc2),'deletion'==_0x55267f&&(_0x22c0da+=0x5),{'classes':_0x2d3764,'attributes':{'data-suggestion':_0x5882ca},'priority':_0x22c0da};}}),_0x557f6d['conversion']['for']('dataDowncast')['add'](_0x547cd6=>{_0x547cd6['on']('addMarker:suggestion',(_0x83afb3,_0x2f2b42,_0x24926d)=>{if(!_0x24926d['options']['showSuggestionHighlights'])return;const _0x1e9b3f=_0x2f2b42['item'];if(!_0x1e9b3f)return;const _0x42833d=_0x24926d['mapper']['toViewElement'](_0x1e9b3f);_0x557f6d['model']['schema']['isObject'](_0x1e9b3f)&&_0x42833d&&!_0x42833d['getCustomProperty']('widget')&&_0x42833d['is']('containerElement')&&_0x724fa(_0x42833d,_0x24926d['writer']);},{'priority':'high'});}),_0x557f6d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1f6787,_0x591c98)=>{if(!_0x591c98['options']['showSuggestionHighlights'])return null;const {type:_0x59adf9,subType:_0x3e4895}=this['_splitMarkerName'](_0x1f6787['markerName']);return{'classes':['ck-suggestion-marker',_0x277ffb(_0x59adf9,_0x3e4895)],'priority':0xbb8};}});const _0x47cf6f=({showActiveMarkers:_0x28980f=!0x0,isAttributeSuggestion:_0x3913da=!0x1}={})=>(_0x2c65e7,_0x18c4f2,_0xd2b26)=>{if(!_0x18c4f2['item'])return;const {id:_0x2bab84}=this['_splitMarkerName'](_0x18c4f2['markerName']);if(_0x3913da){const _0x365c67=this['_suggestions']['get'](_0x2bab84),_0x37501e=this['_getAttributeKey'](_0x365c67);if(!this['_isBlockAttribute'](_0x37501e))return;}if(_0x18c4f2['item']['is']('selection'))return void _0xd2b26['consumable']['consume'](_0x18c4f2['item'],_0x2c65e7['name']);const _0x3295d2=_0xd2b26['mapper']['toViewElement'](_0x18c4f2['item']);if(_0x18c4f2['item']['is']('element')&&_0x557f6d['model']['schema']['isBlock'](_0x18c4f2['item'])&&!_0x3295d2['getCustomProperty']('addHighlight')){_0xd2b26['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3295d2),_0xd2b26['writer']['setAttribute']('data-suggestion',_0x2bab84,_0x3295d2),_0xd2b26['mapper']['bindElementToMarker'](_0x3295d2,_0x18c4f2['markerName']),_0x28980f&&(this['activeMarkers']['includes'](_0x18c4f2['markerName'])?_0xd2b26['writer']['addClass']('ck-suggestion-marker--active',_0x3295d2):_0xd2b26['writer']['removeClass']('ck-suggestion-marker--active',_0x3295d2));for(const _0x3f0e0d of _0x557f6d['model']['createRangeIn'](_0x18c4f2['item'])['getItems']())_0xd2b26['consumable']['consume'](_0x3f0e0d,_0x2c65e7['name']);_0xd2b26['consumable']['consume'](_0x18c4f2['item'],_0x2c65e7['name']);}};_0x557f6d['conversion']['for']('dataDowncast')['add'](_0xb54f24=>{_0xb54f24['on']('addMarker:suggestion:formatBlock',(_0x497406,_0x74e773,_0x10544d)=>{_0x10544d['options']['showSuggestionHighlights']&&_0x47cf6f({'showActiveMarkers':!0x1})(_0x497406,_0x74e773,_0x10544d);},{'priority':'highest'});}),_0x557f6d['conversion']['for']('dataDowncast')['add'](_0x41c53c=>{_0x41c53c['on']('addMarker:suggestion:attribute',(_0x4ef091,_0x11be7b,_0x47d17d)=>{_0x47d17d['options']['showSuggestionHighlights']&&_0x47cf6f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4ef091,_0x11be7b,_0x47d17d);},{'priority':'highest'});}),_0x557f6d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1afd3d,_0x4cac86)=>_0x4cac86['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1afd3d['substr'](0xb)}}),_0x557f6d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b8fa1,{writer:_0x1cd71a})=>{let _0xf9e59d='suggestion:'+_0x4b8fa1['getAttribute']('suggestion-type')+':'+_0x4b8fa1['getAttribute']('id');return _0x4b8fa1['getAttribute']('marker-count')&&(_0xf9e59d+=':'+_0x4b8fa1['getAttribute']('marker-count')),_0x1cd71a['createElement']('$marker',{'data-name':_0xf9e59d});}}),_0x557f6d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x557f6d['conversion']['for']('editingDowncast')['add'](_0x3f4e6b=>{_0x3f4e6b['on']('addMarker:suggestion:formatBlock',_0x47cf6f(),{'priority':'high'});}),_0x557f6d['conversion']['for']('editingDowncast')['add'](_0x34840f=>{_0x34840f['on']('addMarker:suggestion:attribute',_0x47cf6f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x557f6d['conversion']['for']('editingDowncast')['add'](_0x3f7366=>{_0x3f7366['on']('removeMarker:suggestion:formatBlock',(_0x309b6b,_0x846318,_0x29b520)=>{const _0x2d6055=_0x29b520['mapper']['markerNameToElements'](_0x846318['markerName']);if(_0x2d6055){for(const _0x2903d3 of _0x2d6055)_0x2903d3['getCustomProperty']('addHighlight')||(_0x29b520['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2903d3),_0x29b520['writer']['removeAttribute']('data-suggestion',_0x2903d3),_0x29b520['mapper']['unbindElementFromMarkerName'](_0x2903d3,_0x846318['markerName']));}},{'priority':'high'});}),_0x557f6d['conversion']['for']('editingDowncast')['add'](_0x4199de=>{_0x4199de['on']('removeMarker:suggestion:attribute',(_0x194e8e,_0x5a68cc,_0x5bd4cc)=>{const _0x352fa2=_0x5bd4cc['mapper']['markerNameToElements'](_0x5a68cc['markerName']);if(!_0x352fa2)return;const {id:_0x525b8a}=this['_splitMarkerName'](_0x5a68cc['markerName']),_0x1bd7e1=this['_suggestions']['get'](_0x525b8a),_0xa0e978=this['_getAttributeKey'](_0x1bd7e1);if(this['_isBlockAttribute'](_0xa0e978)){for(const _0x225913 of _0x352fa2)_0x225913['getCustomProperty']('addHighlight')||(_0x5bd4cc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x225913),_0x5bd4cc['writer']['removeAttribute']('data-suggestion',_0x225913),_0x5bd4cc['mapper']['unbindElementFromMarkerName'](_0x225913,_0x5a68cc['markerName']));}},{'priority':'high'});}),_0x557f6d['model']['document']['registerPostFixer'](_0x971782=>{let _0x51bf0a=!0x1;const _0x151601=Array['from'](_0x557f6d['model']['document']['differ']['getChangedMarkers']()),_0x28d106=new Set();for(const {name:_0x4be3ef,data:_0x527642}of _0x151601){const {group:_0x578b88,type:_0xbe8216,subType:_0x1b1964,id:_0x1f6a7f}=this['_splitMarkerName'](_0x4be3ef);if('suggestion'!==_0x578b88)continue;const _0x357a2c=this['_suggestions']['get'](_0x1f6a7f);if(null!=_0x527642['newRange']){'formatInline'==_0xbe8216&&(_0x51bf0a=_0x51bf0a||Et(_0x527642['newRange'],_0x4be3ef,_0x971782,_0x557f6d['model']['schema']));const _0x2d78cb='attribute'==_0xbe8216&&this['_isBlockAttribute'](_0x1b1964['split']('|')[0x0]);if(_0x527642['newRange']['isCollapsed']||'$graveyard'==_0x527642['newRange']['root']['rootName']||'formatBlock'==_0xbe8216&&!Ut(_0x527642['newRange'])||_0x2d78cb&&!Ut(_0x527642['newRange'])||'deletion'==_0xbe8216&&!(!Tt(_0x38fe74=_0x527642['newRange'])&&!function(_0x268246){return _0x268246['start']['parent']==_0x268246['end']['nodeBefore']&&_0x268246['start']['isAtEnd'];}(_0x38fe74)))_0x971782['removeMarker'](_0x4be3ef),_0x51bf0a=!0x0;else{if(!_0x357a2c||!_0x357a2c['isInContent'])continue;_0x28d106['add'](_0x357a2c);}}}var _0x38fe74;return _0x28d106['size']>0x0&&(_0x51bf0a=!!this['_joinWithAdjacentSuggestions'](_0x28d106)||_0x51bf0a),_0x51bf0a;}),_0x557f6d['model']['document']['registerPostFixer'](_0x535c23=>{let _0x13f34b=!0x1;for(const _0x3ac496 of _0x557f6d['model']['document']['differ']['getChanges']())if('insert'==_0x3ac496['type'])for(const _0x963281 of this['_suggestions']['values']()){if(_0x963281['isMultiRange']||!_0x963281['isInContent'])continue;const _0x47a8ce='formatBlock'==_0x963281['type'],_0x574040=this['_getAttributeKey'](_0x963281),_0x2c2ed2=_0x574040&&this['_isBlockAttribute'](_0x574040);if(!_0x47a8ce&&!_0x2c2ed2)continue;const _0x10169c=_0x963281['getFirstRange']();if(_0x10169c['start']['parent']!=_0x10169c['end']['parent']&&!_0x10169c['end']['isAtEnd']){const _0x4ebc8f=_0x557f6d['model']['createPositionAt'](_0x10169c['start']['nodeAfter'],'end'),_0x533581=_0x557f6d['model']['createRange'](_0x10169c['start'],_0x4ebc8f);_0x535c23['updateMarker'](_0x963281['getFirstMarker'](),{'range':_0x533581}),_0x13f34b=!0x0;}}return _0x13f34b;}),_0x557f6d['model']['document']['registerPostFixer'](_0x591bb1=>this['_processAttributeChanges'](_0x591bb1)),_0x557f6d['model']['document']['registerPostFixer'](_0x5afed8=>!_0x5afed8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5afed8)),_0x557f6d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x557f6d['model']['document']['on']('change:data',(_0x52008d,_0x11d4e6)=>{if(!_0x11d4e6['isLocal']||_0x11d4e6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2a6dbe=_0x557f6d['model']['document']['differ']['getChanges']();if(0x0==_0x2a6dbe['length'])return;const _0x364ae1=[],_0x247b0e=_0x2a6dbe['filter'](_0x3756fc=>'attribute'==_0x3756fc['type']),_0x35d66c=_0x2a6dbe['filter'](_0x20d172=>'insert'==_0x20d172['type']&&'$text'!=_0x20d172['name']),_0x344a77=_0x2a6dbe['filter'](_0x29c751=>'remove'==_0x29c751['type']&&'$text'!=_0x29c751['name']);for(const _0x41bfd2 of _0x247b0e)this['_isRegisteredAttribute'](_0x41bfd2['attributeKey'])&&_0x364ae1['push']({'key':_0x41bfd2['attributeKey'],'newValue':_0x41bfd2['attributeNewValue'],'oldValue':_0x41bfd2['attributeOldValue'],'range':Ot(_0x41bfd2['range'],_0x557f6d['model'])});for(const _0x3fa318 of _0x35d66c){const _0x3b765b=_0x344a77['find'](_0x142333=>_0x142333['_element']===_0x3fa318['_element']);if(_0x3b765b){const _0x4ae465=Gt(_0x3fa318['position']['nodeAfter'],_0x557f6d['model']);_0x3b765b['name']!==_0x3fa318['name']&&_0x364ae1['push']({'key':m,'newValue':_0x3fa318['name'],'oldValue':_0x3b765b['name'],'range':_0x4ae465});for(const [_0x175aba,_0x53c278]of _0x3b765b['attributes']){if(!this['_isRegisteredAttribute'](_0x175aba))continue;const _0x539ce0=_0x3fa318['attributes']['get'](_0x175aba);_0x53c278!==_0x539ce0&&_0x364ae1['push']({'key':_0x175aba,'newValue':_0x539ce0,'oldValue':_0x53c278,'range':_0x4ae465});}for(const [_0x2e3dcc,_0x2cc0ad]of _0x3fa318['attributes'])this['_isRegisteredAttribute'](_0x2e3dcc)&&(_0x3b765b['attributes']['has'](_0x2e3dcc)||_0x364ae1['push']({'key':_0x2e3dcc,'newValue':_0x2cc0ad,'oldValue':null,'range':_0x4ae465}));}}0x0!=_0x364ae1['length']&&_0x557f6d['model']['enqueueChange'](_0x11d4e6,_0x51d32d=>{const _0xf72fae=_0x219e6e();for(const {range:_0x4b3c27,key:_0x513356,oldValue:_0x2530c5,newValue:_0x211602}of _0x364ae1)this['markAttributeChange'](_0x4b3c27,_0x513356,_0x2530c5,_0x211602,{'groupId':_0xf72fae});this['_reduceExistingSuggestions'](_0x51d32d,_0x364ae1);});},{'priority':'lowest'}),_0x557f6d['model']['markers']['on']('update:suggestion',(_0x2a2c6e,_0x1d5076,_0x4007f1)=>{if(null==_0x4007f1){const {id:_0x188c96}=this['_splitMarkerName'](_0x1d5076['name']),_0x7e6bbe=this['_suggestions']['get'](_0x188c96);_0x7e6bbe&&_0x7e6bbe['addMarkerName'](_0x1d5076['name']);}}),_0x557f6d['model']['document']['on']('change:data',()=>{const _0x2f4a62=Array['from'](_0x557f6d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2eff91=>'suggestion'===this['_splitMarkerName'](_0x2eff91['name'])['group']);if(0x0===_0x2f4a62['length'])return;_0x2f4a62['sort']((_0x1fd7ea,_0x1a7a42)=>{const _0x6ee008=_0x1fd7ea['data']['oldRange'],_0x208624=_0x1a7a42['data']['oldRange'];return null===_0x6ee008&&null===_0x208624?0x0:null===_0x6ee008&&null!==_0x208624?-0x1:null!==_0x6ee008&&null===_0x208624?0x1:_0x6ee008['start']['isBefore'](_0x208624['start'])?-0x1:0x1;});const _0x2d91b6=new Set(),_0x354458=new Set();for(const {name:_0x50bca8,data:_0x348080}of _0x2f4a62){const {id:_0x170ffb}=this['_splitMarkerName'](_0x50bca8);if(null===_0x348080['oldRange']){const _0x3cd7bf=this['_handleNewSuggestionMarker'](_0x50bca8);_0x354458['add'](_0x3cd7bf);}else{const _0x216fb4=this['_suggestions']['get'](_0x170ffb);null!==_0x348080['newRange']||_0x216fb4['isInContent']?(_0x2d91b6['add'](_0x216fb4['head']),_0x354458['add'](_0x216fb4)):this['_removeSuggestion'](_0x216fb4);}}_0x354458['size']>0x0&&this['_refreshSuggestionsChain'](_0x354458);for(const _0x56ef28 of _0x2d91b6)this['fire']('suggestionChanged',_0x56ef28);}),_0x557f6d['model']['on']('applyOperation',(_0x2aa59f,_0x3cc5ff)=>{const _0x497684=_0x3cc5ff[0x0];if(!this['_suggestions']['size'])return;if(!_0x497684['isDocumentOperation'])return;if(_0x497684['batch']['isUndo']||!_0x497684['batch']['isLocal'])return;let _0x3eb63b,_0x3b76fb;switch(_0x497684['type']){case'insert':_0x3eb63b=_0x557f6d['model']['createPositionAt'](_0x497684['position']),_0x3b76fb=_0x3eb63b['getShiftedBy'](_0x497684['howMany']);break;case'split':_0x3eb63b=_0x557f6d['model']['createPositionAt'](_0x497684['splitPosition']),_0x3b76fb=_0x557f6d['model']['createPositionAt'](_0x497684['moveTargetPosition']);break;case'move':_0x3eb63b=_0x557f6d['model']['createPositionAt'](_0x497684['targetPosition']),_0x3b76fb=_0x3eb63b['getShiftedBy'](_0x497684['howMany']);break;default:return;}const _0xa6ff96=_0x557f6d['model']['createRange'](_0x3eb63b,_0x3b76fb);_0x557f6d['model']['change'](()=>{for(const {suggestion:_0x3d841e,meta:_0x270611}of this['_findSuggestions'](_0xa6ff96)){if(_0x3d841e['isMultiRange'])continue;if('formatInline'==_0x3d841e['type'])continue;const _0x5a9d10=this['_getAttributeKey'](_0x3d841e);if(_0x5a9d10&&this['_isBlockAttribute'](_0x5a9d10)&&'split'!=_0x497684['type'])continue;const _0x48f43f=_0x3d841e['data']&&_0x3d841e['data']['multipleBlocks'];('formatBlock'!=_0x3d841e['type']||'split'==_0x497684['type']&&!_0x48f43f)&&(_0x270611['containsRangeInObject']||'insertion'==_0x3d841e['type']&&_0x270611['isOwn']||_0x3d841e['getFirstRange']()['containsRange'](_0xa6ff96)&&this['_breakSuggestionMarker'](_0x3d841e,_0x3eb63b,_0x3b76fb));}});},{'priority':'lowest'}),_0x557f6d['model']['on']('deleteContent',(_0x4874f7,_0x63ba69)=>{const _0x3eac9e=_0x63ba69[0x0],_0x151d36=_0x63ba69[0x1];if(_0x151d36&&_0x151d36['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3eac9e['isCollapsed'])return;const _0x3522de=_0x557f6d['model']['schema'],{start:_0x3ec3f7,end:_0x2ac745}=_0x3eac9e['getFirstRange'](),_0x2abe14=_0x3ec3f7['nodeAfter']&&_0x3522de['isLimit'](_0x3ec3f7['nodeAfter'])?null:_0x3522de['getNearestSelectionRange'](_0x3ec3f7,'forward'),_0x220530=_0x2ac745['nodeBefore']&&_0x3522de['isLimit'](_0x2ac745['nodeBefore'])?null:_0x3522de['getNearestSelectionRange'](_0x2ac745,'backward'),_0x5345bc=_0x557f6d['model']['createRange'](_0x2abe14?_0x2abe14['start']:_0x3ec3f7,_0x220530?_0x220530['end']:_0x2ac745);_0x557f6d['model']['change'](_0x3e811e=>{this['markDeletion'](_0x5345bc);const _0x37a90e=_0x557f6d['model']['schema']['getNearestSelectionRange'](_0x5345bc['start']);_0x3eac9e['is']('documentSelection')?_0x3e811e['setSelection'](_0x37a90e):_0x3eac9e['setTo'](_0x37a90e);}),_0x4874f7['stop']();},{'priority':_0x5387e0['normal']+0xa}),_0x557f6d['model']['on']('insertContent',(_0x2f3e1c,_0xc1c010)=>{const _0x124701=_0xc1c010[_0xc1c010['length']-0x1];_0x124701&&_0x124701['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x557f6d['model']['change'](()=>{let _0xbdb7f4=_0x557f6d['model']['insertContent'](_0xc1c010[0x0],_0xc1c010[0x1],_0xc1c010[0x2],{'forceDefaultExecution':!0x0});if(!_0xbdb7f4)return;_0x2f3e1c['return']=_0xbdb7f4['clone']();const _0x3ffcc2=_0xbdb7f4['end']['nodeBefore'],_0x3599f0=_0x557f6d['model']['schema'];_0x3ffcc2&&_0x3599f0['isBlock'](_0x3ffcc2)&&!_0x3599f0['isObject'](_0x3ffcc2)&&(_0xbdb7f4=_0x557f6d['model']['createRange'](_0xbdb7f4['start'],_0x557f6d['model']['createPositionAt'](_0x3ffcc2,'end'))),this['markInsertion'](_0xbdb7f4);}),_0x2f3e1c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2272e0=new $(_0x557f6d,this['_suggestions']);_0x557f6d['commands']['add']('acceptSuggestion',_0x2272e0),this['enableCommand']('acceptSuggestion');const _0x5b96a4=new B(_0x557f6d,this['_suggestions']);_0x557f6d['commands']['add']('discardSuggestion',_0x5b96a4),this['enableCommand']('discardSuggestion'),_0x557f6d['commands']['add']('acceptAllSuggestions',new x(_0x557f6d,_0x2272e0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x557f6d['commands']['add']('discardAllSuggestions',new x(_0x557f6d,_0x5b96a4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x557f6d['commands']['add']('acceptSelectedSuggestions',new R(_0x557f6d,_0x2272e0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x557f6d['commands']['add']('discardSelectedSuggestions',new R(_0x557f6d,_0x5b96a4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x572273=_0x557f6d['plugins']['get']('CommentsRepository');this['listenTo'](_0x572273,'addComment',(_0x45494f,{threadId:_0x3e4977})=>{const _0x31776e=this['_suggestions']['get'](_0x3e4977);_0x31776e&&_0x31776e['commentThread']&&0x1===_0x31776e['commentThread']['length']&&this['_updateSuggestionData'](_0x3e4977,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x572273,'removeComment',(_0x15d279,{threadId:_0x2a88a7})=>{const _0x1ff7b1=this['_suggestions']['get'](_0x2a88a7);_0x1ff7b1&&_0x1ff7b1['commentThread']&&!_0x1ff7b1['commentThread']['length']&&this['_updateSuggestionData'](_0x2a88a7,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x50c708){if(this['_adapter'])throw new _0x4d5db7('track-changes-adapter-already-set',this);this['_adapter']=_0x50c708;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3abbed=!0x1,toJSON:_0x4fb669=!0x1}={}){const _0xe26f60=[];for(const _0xebdfd2 of this['_suggestions']['values']())_0x3abbed&&!_0xebdfd2['isInContent']||_0xe26f60['push'](_0xebdfd2);return _0x4fb669?_0xe26f60['map'](_0x33dc00=>_0x33dc00['toJSON']()):_0xe26f60;}['getSuggestion'](_0x3bcbc2){const _0x1ed8dd=this['_suggestions']['get'](_0x3bcbc2);if(!_0x1ed8dd)throw new _0x4d5db7('track-changes-suggestion-not-found',this);return _0x1ed8dd;}['hasSuggestion'](_0x571f7a){return this['_suggestions']['has'](_0x571f7a);}['addSuggestionData'](_0x4ec413){const {authorId:_0x1948a6,id:_0x50c080,attributes:_0x1910ff}=_0x4ec413,[_0x43afda,_0x416d51]=_0x4ec413['type']['split'](':'),_0x974a6e=this['_suggestions']['get'](_0x50c080)||this['_createSuggestion'](_0x43afda,_0x416d51,_0x50c080,_0x1948a6,_0x1910ff);if(this['_addThreadToSuggestion'](_0x974a6e),this['_checkSuggestionCorrectness'](_0x974a6e,_0x43afda,_0x416d51||null,_0x1948a6),_0x974a6e['createdAt']=_0x4ec413['createdAt'],_0x974a6e['_isDataLoaded']=!0x0,_0x1910ff&&_0x1910ff['@external']){const _0x591b31=_0x1910ff['@external'],_0x6f4234=this['_getExternalAuthor'](_0x591b31['authorName']);_0x974a6e['authoredAt']=_0x591b31['createdAt'],_0x974a6e['author']=_0x6f4234,_0x974a6e['isExternal']=!0x0;}else _0x974a6e['authoredAt']=_0x4ec413['createdAt'];switch(_0x4ec413['data']&&(_0x974a6e['data']=_0x4ec413['data']),_0x4ec413['attributes']&&(_0x974a6e['attributes']=_0x4ec413['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x974a6e['_saved']=!0x0),this['_suggestionState']['get'](_0x974a6e)){case'notReady':this['_suggestionState']['set'](_0x974a6e,'dataReady');break;case'markerReady':_0x974a6e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x974a6e])),this['_refreshSuggestionsChain'](new Set([_0x974a6e])),this['_suggestionState']['set'](_0x974a6e,'ready'),this['fire']('suggestionLoaded',_0x974a6e)):this['_suggestionState']['set'](_0x974a6e,'removed');}return _0x974a6e;}['acceptSuggestion'](_0x2262bc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x125606 of _0x2262bc['getAllAdjacentSuggestions']())_0x125606['accept']();});});}['discardSuggestion'](_0x478b61){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e9add of _0x478b61['getAllAdjacentSuggestions']())_0x3e9add['discard']();});});}['enableCommand'](_0x36f6b9,_0x46af6e){const _0x26fa1b=this['editor']['commands']['get'](_0x36f6b9);if(!_0x26fa1b)throw new _0x4d5db7('track-changes-command-not-found',this,{'commandName':_0x36f6b9});if(this['_enabledCommands']['has'](_0x26fa1b))throw new _0x4d5db7('track-changes-enable-command-twice',this,{'commandName':_0x36f6b9});this['_enabledCommands']['add'](_0x26fa1b),_0x46af6e&&_0x26fa1b['on']('execute',(_0xb2f506,_0x34e2cb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x34e2cb['length']>0x0&&_0x34e2cb[_0x34e2cb['length']-0x1]&&_0x34e2cb[_0x34e2cb['length']-0x1]['forceDefaultExecution']?_0x34e2cb['pop']():(_0xb2f506['return']=_0x46af6e((..._0x24f181)=>_0x26fa1b['execute'](..._0x24f181,{'forceDefaultExecution':!0x0}),..._0x34e2cb),_0xb2f506['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4c2f1a){let _0x4d0141,_0x185ded;const _0x13735d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4d0141=_0x4c2f1a();}catch(_0x21d880){_0x185ded=_0x21d880;}return _0x13735d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x185ded&&_0x4d5db7['rethrowUnexpectedError'](_0x185ded,this),_0x4d0141;}['markInsertion'](_0x148b9a,_0x3a54aa=null,_0x166065={}){if(_0x148b9a['isCollapsed'])return null;const _0x44b1b8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5cf634,meta:_0x5a2b13}of this['_findSuggestions'](_0x148b9a,'insertion'))if(_0x5a2b13['isOwn']){if(!_0x5a2b13['isNextTo']){if(_0x5a2b13['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x5cf634,_0x166065))continue;return _0x5cf634;}if(Lt(_0x5cf634,_0x166065))return _0x5cf634;this['_breakSuggestionMarker'](_0x5cf634,_0x148b9a['start'],_0x148b9a['end']);break;}if(_0x3a54aa==_0x5cf634['subType']&&Lt(_0x5cf634,_0x166065)){const _0x380367=_0x5cf634['getFirstRange']();return _0x380367['start']['isEqual'](_0x148b9a['end'])?this['_setSuggestionRange'](_0x5cf634,this['_model']['createRange'](_0x148b9a['start'],_0x380367['end'])):this['_setSuggestionRange'](_0x5cf634,this['_model']['createRange'](_0x380367['start'],_0x148b9a['end'])),_0x5cf634;}}const _0x2f3a8f=_0x219e6e(),_0x2687ba=_0x44b1b8['id'],_0xa164ed=_0x3a54aa?'insertion:'+_0x3a54aa:'insertion',_0x28a0bb=this['_setSuggestionData']({'id':_0x2f3a8f,'type':_0xa164ed,'createdAt':new Date(),'authorId':_0x2687ba,'attributes':_0x166065});return this['_addSuggestionMarker'](_0xa164ed,_0x2f3a8f,_0x2687ba,_0x148b9a),_0x28a0bb;}['markMultiRangeInsertion'](_0x2c7983,_0x1e56ec='multi',_0x1c012f={}){const _0x40fe6a=this['editor']['plugins']['get']('Users')['me'],_0x1c66fd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1e56ec,'join');for(const _0x4efa57 of this['getSuggestions']())if(_0x4efa57['author']['id']==_0x40fe6a['id']&&'insertion'==_0x4efa57['type']&&_0x4efa57['subType']==_0x1e56ec&&Lt(_0x4efa57,_0x1c012f)&&(_0x1c66fd(_0x4efa57['getRanges'](),_0x2c7983)||_0x1c66fd(_0x2c7983,_0x4efa57['getRanges']()))){for(const _0x119a28 of _0x2c7983)_0x4efa57['addRange'](_0x119a28);return _0x4efa57;}for(const {suggestion:_0x593046,meta:_0x2f2f8e}of this['_findSuggestions'](_0x2c7983,'insertion')){if(!_0x2f2f8e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2f2f8e['containsRangeInObject'])continue;if(!Lt(_0x593046,_0x1c012f))continue;let _0x1c3976=!0x0;for(const _0x4328ee of _0x593046['getRanges']())for(const _0x21fe20 of _0x2c7983)if(!_0x4328ee['containsRange'](_0x21fe20)){_0x1c3976=!0x1;break;}if(_0x1c3976)return _0x593046;}const _0x272c7e=_0x219e6e(),_0xebe58e=_0x40fe6a['id'],_0x3712bd='insertion:'+_0x1e56ec,_0x16feaf=this['_setSuggestionData']({'id':_0x272c7e,'type':_0x3712bd,'createdAt':new Date(),'authorId':_0xebe58e,'attributes':_0x1c012f});for(const _0x1ce690 of _0x2c7983)this['_addSuggestionMarker'](_0x3712bd,_0x272c7e,_0xebe58e,_0x1ce690,u['getMultiRangeId']());return _0x16feaf;}['markInlineFormat'](_0x585e4b,_0x403380,_0x50c7b6=null,_0x319fff={}){if(_0x50c7b6=_0x50c7b6||Vt(_0x403380),_0x585e4b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4a2fe9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50c7b6,'accept');return this['forceDefaultExecution'](()=>_0x4a2fe9([_0x585e4b],_0x403380,_0x319fff)),null;}const _0x36525d=this['editor']['plugins']['get']('Users')['me'],_0x348089=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x12144b,meta:_0x31a09a}of this['_findSuggestions'](_0x585e4b,'insertion'))_0x31a09a['isOwn']&&!_0x31a09a['isInsideObject']&&_0x348089['push'](..._0x12144b['getRanges']());}const _0x534daf=function(_0x1eefdb,_0x457e2c){const _0x5d38cf=[];for(const _0x33ea2e of _0x457e2c){const _0x516fa8=_0x1eefdb['getIntersection'](_0x33ea2e);_0x516fa8&&_0x5d38cf['push'](_0x516fa8);}return _0x5d38cf;}(_0x585e4b,_0x348089),_0x3e67dc=function(_0x20ce0e,_0x135449){const _0x3ef236=[_0x20ce0e];for(const _0xced67a of _0x135449){let _0x369e9d=0x0;for(;_0x369e9d<_0x3ef236['length'];){const _0x54a8a6=_0x3ef236[_0x369e9d]['getDifference'](_0xced67a);_0x3ef236['splice'](_0x369e9d,0x1,..._0x54a8a6),_0x369e9d+=_0x54a8a6['length'];}}return _0x3ef236;}(_0x585e4b,_0x348089);_0x534daf['length']&&this['_model']['change'](()=>{for(const _0x3e1d59 of _0x534daf){const _0x5a943a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50c7b6,'accept');this['forceDefaultExecution'](()=>_0x5a943a([_0x3e1d59],_0x403380,_0x319fff));}});for(const _0x1b9a76 of _0x3e67dc){let _0x440c99=null,_0x410179=_0x1b9a76['start'],_0x3286d2=_0x1b9a76['end'];for(const {suggestion:_0x8b49d0,meta:_0x4ce0d9}of this['_findSuggestions'](_0x1b9a76,'formatInline')){if(!_0x4ce0d9['isOwn'])continue;if(_0x8b49d0['subType']!=_0x50c7b6)continue;if(!Lt(_0x8b49d0,_0x319fff))continue;const _0x1221b6=_0x8b49d0['getFirstRange']();if(_0x1221b6['containsRange'](_0x1b9a76,!0x0))return null;_0x410179=_0x410179['isBefore'](_0x1221b6['start'])?_0x410179:_0x1221b6['start'],_0x3286d2=_0x3286d2['isAfter'](_0x1221b6['end'])?_0x3286d2:_0x1221b6['end'],_0x440c99?_0x1221b6['start']['isBefore'](_0x440c99['getFirstRange']()['start'])?(_0x440c99['removeMarkers'](),_0x440c99=_0x8b49d0):_0x8b49d0['removeMarkers']():_0x440c99=_0x8b49d0;}const _0x2fdfb9=this['_model']['createRange'](_0x410179,_0x3286d2);if(_0x440c99)this['_setSuggestionRange'](_0x440c99,_0x2fdfb9);else{const _0x2d5cbf=_0x219e6e(),_0x23e930=_0x36525d['id'];this['_setSuggestionData']({'id':_0x2d5cbf,'type':'formatInline:'+_0x50c7b6,'data':_0x403380,'createdAt':new Date(),'authorId':_0x23e930,'attributes':_0x319fff}),this['_addSuggestionMarker']('formatInline:'+_0x50c7b6,_0x2d5cbf,_0x23e930,_0x2fdfb9);}}return null;}['markBlockFormat'](_0x169ee9,_0x3ac867,_0x5c5bfb=[],_0x2484d8=null,_0x363004={}){_0x3ac867['formatGroupId']||(_0x3ac867['formatGroupId']=_0x3ac867['commandName']),_0x3ac867['multipleBlocks']=_0x169ee9['is']('range'),_0x2484d8=_0x2484d8||Vt(_0x3ac867);const _0x1f83fc=_0x5c5bfb['map'](_0x31b55b=>Gt(_0x31b55b,this['_model'])),_0x4e7330=_0x169ee9['is']('range')?_0x169ee9:Gt(_0x169ee9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x19c441=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2484d8,'accept');return this['forceDefaultExecution'](()=>_0x19c441([_0x4e7330],_0x3ac867,_0x363004)),null;}_0x1f83fc['push'](_0x4e7330);let _0x3686e7=!0x0;for(const _0x67b556 of _0x1f83fc)if(!this['_rangeIsInLocalUserInsertion'](_0x67b556)){_0x3686e7=!0x1;break;}if(_0x3686e7&&'always'!==this['_trackFormatChanges']){const _0x151d8f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2484d8,'accept');return this['forceDefaultExecution'](()=>_0x151d8f([_0x4e7330],_0x3ac867,_0x363004)),null;}let _0x5b60e1=null,_0x252bce=_0x4e7330['start'],_0x2a1f1e=_0x4e7330['end'];for(const {suggestion:_0x356bb1,meta:_0x3d74d7}of this['_findSuggestions'](_0x4e7330,'formatBlock')){if(!_0x3d74d7['isOwn'])continue;if(_0x3d74d7['isNextTo']||_0x3d74d7['containsRangeInObject']||_0x3d74d7['isInsideObject'])continue;if(_0x356bb1['data']['formatGroupId']!=_0x3ac867['formatGroupId'])continue;if(!Lt(_0x356bb1,_0x363004))continue;const _0x1b03bf=_0x356bb1['getFirstRange']();if(_0x356bb1['subType']==_0x2484d8){if(_0x1b03bf['containsRange'](_0x4e7330,!0x0))return null;_0x252bce=_0x252bce['isBefore'](_0x1b03bf['start'])?_0x252bce:_0x1b03bf['start'],_0x2a1f1e=_0x2a1f1e['isAfter'](_0x1b03bf['end'])?_0x2a1f1e:_0x1b03bf['end'],_0x5b60e1?_0x1b03bf['start']['isBefore'](_0x5b60e1['getFirstRange']()['start'])?(_0x5b60e1['removeMarkers'](),_0x5b60e1=_0x356bb1):_0x356bb1['removeMarkers']():_0x5b60e1=_0x356bb1;}else{const _0x4d0b40=_0x4e7330['getIntersection'](_0x1b03bf);this['_cutOutSuggestionMarker'](_0x356bb1,_0x4d0b40);}}const _0x164a5d=this['editor']['plugins']['get']('Users')['me'],_0x598b6f=_0x219e6e(),_0x464d72=_0x164a5d['id'];if(_0x5b60e1)return this['_setSuggestionRange'](_0x5b60e1,this['_model']['createRange'](_0x252bce,_0x2a1f1e)),_0x5b60e1;{const _0x3017ce=this['_setSuggestionData']({'id':_0x598b6f,'type':'formatBlock:'+_0x2484d8,'data':_0x3ac867,'createdAt':new Date(),'authorId':_0x464d72,'attributes':_0x363004});return this['_addSuggestionMarker']('formatBlock:'+_0x2484d8,_0x598b6f,_0x464d72,this['_model']['createRange'](_0x252bce,_0x2a1f1e)),_0x3017ce;}}['markMultiRangeBlockFormat'](_0x4202f5,_0x3b7d51,_0x363dcf=[],_0x40c5ae=null,_0x2ac0e3={}){_0x3b7d51['formatGroupId']||(_0x3b7d51['formatGroupId']=_0x3b7d51['commandName']);const _0x1680e1=_0x4202f5[0x0];_0x3b7d51['multipleBlocks']=_0x1680e1['is']('range'),_0x40c5ae=_0x40c5ae||Vt(_0x3b7d51);const _0x469f46=_0x363dcf['map'](_0x1746b5=>Gt(_0x1746b5,this['_model'])),_0x8b0eef=_0x1680e1['is']('range')?_0x4202f5:_0x4202f5['map'](_0x554e8d=>Gt(_0x554e8d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x47f2c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40c5ae,'accept');return this['forceDefaultExecution'](()=>_0x47f2c4(_0x8b0eef,_0x3b7d51,_0x2ac0e3)),null;}_0x469f46['push'](..._0x8b0eef);let _0x3fb3d0=!0x0;for(const _0x16c9eb of _0x469f46)if(!this['_rangeIsInLocalUserInsertion'](_0x16c9eb)){_0x3fb3d0=!0x1;break;}if(_0x3fb3d0&&'always'!==this['_trackFormatChanges']){const _0x2c3976=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40c5ae,'accept');return this['forceDefaultExecution'](()=>_0x2c3976(_0x8b0eef,_0x3b7d51,_0x2ac0e3)),null;}const _0xf6b265=this['editor']['plugins']['get']('Users')['me'];for(const _0x297e59 of this['getSuggestions']()){if(_0x297e59['author']['id']!=_0xf6b265['id'])continue;if('formatBlock'!=_0x297e59['type']||_0x297e59['data']['formatGroupId']!=_0x3b7d51['formatGroupId'])continue;if(!Lt(_0x297e59,_0x2ac0e3))continue;const _0x22b5c1=_0x297e59['subType']==_0x40c5ae;for(let _0x365675=0x0;_0x365675<_0x8b0eef['length'];_0x365675++){const _0x20ad7a=_0x8b0eef[_0x365675];for(const _0x1ff9b3 of _0x297e59['getMarkers']()){const _0x57cb7f=_0x1ff9b3['getRange']();if(_0x20ad7a['isEqual'](_0x57cb7f)){_0x22b5c1?(_0x8b0eef['splice'](_0x365675,0x1),_0x365675--):_0x297e59['removeMarker'](_0x1ff9b3['name']);break;}}}}if(0x0==_0x8b0eef['length'])return null;const _0x588755=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40c5ae,'join');for(const _0x3d5501 of this['getSuggestions']())if(_0x3d5501['author']['id']==_0xf6b265['id']&&'formatBlock'==_0x3d5501['type']&&_0x3d5501['data']['formatGroupId']==_0x3b7d51['formatGroupId']&&_0x3d5501['subType']==_0x40c5ae&&Lt(_0x3d5501,_0x2ac0e3)&&(_0x588755(_0x3d5501['getRanges'](),_0x8b0eef)||_0x588755(_0x8b0eef,_0x3d5501['getRanges']()))){for(const _0x3be610 of _0x8b0eef)_0x3d5501['addRange'](_0x3be610);return _0x3d5501;}const _0x25174c=_0x219e6e(),_0x505cc2=_0xf6b265['id'],_0x4f1028='formatBlock:'+_0x40c5ae,_0x3d7638=this['_setSuggestionData']({'id':_0x25174c,'type':_0x4f1028,'data':_0x3b7d51,'createdAt':new Date(),'authorId':_0x505cc2,'attributes':_0x2ac0e3});for(const _0x5531ae of _0x8b0eef)this['_addSuggestionMarker'](_0x4f1028,_0x25174c,_0x505cc2,_0x5531ae,u['getMultiRangeId']());return _0x3d7638;}['markDeletion'](_0x3d7dd3,_0x4aac29=null,_0x4cc461={}){if(_0x3d7dd3['isCollapsed'])return null;const _0x1f7150=this['editor']['plugins']['get']('Users')['me'],_0x58aedc=new _0x40e8d5(_0x3d7dd3['start'],_0x3d7dd3['end']);for(const {suggestion:_0x4df6ff,meta:_0x2424be}of this['_findSuggestions'](_0x58aedc,'insertion'))if(_0x2424be['isOwn']&&!_0x2424be['isNextTo']){if(_0x4df6ff['isMultiRange']){const _0xbc45ff=_0x4df6ff['getRanges']()['filter'](_0x36b27f=>'$graveyard'!=_0x36b27f['root']['rootName']);_0xbc45ff['every'](_0x36469f=>_0x58aedc['containsRange'](_0x36469f,!0x0))&&_0x4df6ff['discard']();if(_0xbc45ff['some'](_0x147ca5=>_0x147ca5['containsRange'](_0x58aedc,!0x0))){const _0x10304a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4aac29,'accept');return this['forceDefaultExecution'](()=>_0x10304a([_0x58aedc],null,_0x4cc461)),null;}}else{const _0x5ce0d2=_0x58aedc['getIntersection'](_0x4df6ff['getFirstRange']());null!==_0x5ce0d2&&_0x4df6ff['_onDiscard']([_0x5ce0d2],null,_0x4cc461);}}if(_0x58aedc['detach'](),_0x58aedc['isCollapsed']||'$graveyard'==_0x58aedc['root']['rootName'])return null;let _0x87dbe4=null,_0x1388ed=_0x58aedc['start'],_0x175f6e=_0x58aedc['end'];const _0x345a8b=this['_findSuggestions'](_0x58aedc,'deletion');for(const {suggestion:_0x59654d,meta:_0x2f1ee4}of _0x345a8b){const _0x13e0ed=this['_model']['createRange'](_0x1388ed,_0x175f6e);if(_0x2f1ee4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f1ee4['containsRangeInObject']&&!_0x2f1ee4['isInsideObject'])){if(_0x59654d['isMultiRange']){if(!Lt(_0x59654d,_0x4cc461))continue;let _0x58acfb=!0x0;for(const _0x329b5f of _0x59654d['getRanges']()){if(_0x329b5f['containsRange'](_0x13e0ed,!0x0))return _0x59654d;_0x13e0ed['containsRange'](_0x329b5f)||(_0x58acfb=!0x1);}_0x58acfb&&_0x59654d['discard']();}else{const _0x41898b=_0x59654d['getFirstRange']();if(_0x41898b['containsRange'](_0x13e0ed,!0x0))return _0x59654d;if(!Lt(_0x59654d,_0x4cc461)){_0x13e0ed['containsRange'](_0x41898b)?_0x59654d['removeMarkers']():_0x41898b['containsPosition'](_0x1388ed)?_0x1388ed=_0x41898b['end']:_0x41898b['containsPosition'](_0x175f6e)&&(_0x175f6e=_0x41898b['start']);continue;}_0x1388ed=_0x1388ed['isBefore'](_0x41898b['start'])?_0x1388ed:_0x41898b['start'],_0x175f6e=_0x175f6e['isAfter'](_0x41898b['end'])?_0x175f6e:_0x41898b['end'],_0x4cc461=Object['assign']({},_0x59654d['attributes']),_0x87dbe4?_0x41898b['start']['isBefore'](_0x87dbe4['getFirstRange']()['start'])?(_0x87dbe4['removeMarkers'](),_0x87dbe4=_0x59654d):_0x59654d['removeMarkers']():_0x87dbe4=_0x59654d;}}}if(_0x87dbe4)return this['_setSuggestionRange'](_0x87dbe4,this['_model']['createRange'](_0x1388ed,_0x175f6e)),_0x87dbe4;{const _0x4705c6=_0x219e6e(),_0x2ab524=this['_model']['createRange'](_0x1388ed,_0x175f6e),_0x157ef8=_0x1f7150['id'],_0x1f87f5=_0x4aac29?'deletion:'+_0x4aac29:'deletion',_0x186fd3=this['_setSuggestionData']({'id':_0x4705c6,'type':_0x1f87f5,'createdAt':new Date(),'authorId':_0x157ef8,'attributes':_0x4cc461});return this['_addSuggestionMarker'](_0x1f87f5,_0x4705c6,_0x157ef8,_0x2ab524),_0x186fd3;}}['markMultiRangeDeletion'](_0x2648a1,_0x4977cb='multi',_0x3e0001={}){const _0x1b9106=this['editor']['plugins']['get']('Users')['me'],_0x35b121=_0x2648a1['map'](_0x4fe07d=>new _0x40e8d5(_0x4fe07d['start'],_0x4fe07d['end'])),_0x17ab73=new Set();for(const {suggestion:_0x318068,meta:_0x2e174f}of this['_findSuggestions'](_0x35b121,'insertion'))_0x2e174f['isOwn']&&!_0x2e174f['isNextTo']&&_0x17ab73['add'](_0x318068);for(const _0x5036fb of _0x17ab73)if(_0x5036fb['isMultiRange']){const _0xc71bf9=_0x5036fb['getRanges']();(!_0x5036fb['attributes']||!_0x5036fb['attributes']['skipNestingCheck'])&&(_0xc71bf9['every'](_0x1c4536=>_0x35b121['some'](_0x22dee3=>_0x22dee3['containsRange'](_0x1c4536,!0x0)))&&_0x5036fb['discard']());if(_0x35b121['every'](_0x5498ee=>_0xc71bf9['some'](_0x13cae5=>_0x13cae5['containsRange'](_0x5498ee,!0x0)))){const _0x4de190=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4977cb,'accept');return this['forceDefaultExecution'](()=>_0x4de190(_0x2648a1,null,_0x3e0001)),null;}}else{const _0x339e24=_0x5036fb['getFirstRange']();_0x35b121['some'](_0x37edba=>_0x37edba['containsRange'](_0x339e24,!0x0))&&_0x5036fb['discard']();if(_0x35b121['every'](_0x3aea28=>_0x339e24['containsRange'](_0x3aea28,!0x0))){const _0x2d8320=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4977cb,'accept');return this['forceDefaultExecution'](()=>_0x2d8320(_0x35b121,null,_0x3e0001)),null;}}const _0x1e44c4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4977cb,'join');let _0x2fe65d=null;for(const _0x2245c3 of this['getSuggestions']())if(_0x2245c3['author']['id']==_0x1b9106['id']&&_0x2245c3['isInContent']&&'deletion'==_0x2245c3['type']&&_0x2245c3['subType']==_0x4977cb&&Lt(_0x2245c3,_0x3e0001)&&(_0x1e44c4(_0x2245c3['getRanges'](),_0x35b121)||_0x1e44c4(_0x35b121,_0x2245c3['getRanges']()))){if(_0x2fe65d){if(_0x2245c3['commentThread']&&_0x2245c3['commentThread']['length'])continue;for(const _0x38aec5 of _0x2245c3['getRanges']())_0x2fe65d['isIntersectingWithRange'](_0x38aec5)||_0x2fe65d['addRange'](_0x38aec5);_0x2245c3['removeMarkers']();}else{_0x2fe65d=_0x2245c3;for(const _0xf9fbc9 of _0x35b121)_0x2245c3['isIntersectingWithRange'](_0xf9fbc9)||_0x2245c3['addRange'](_0xf9fbc9);}}if(_0x2fe65d)return _0x2fe65d;_0x17ab73['clear']();for(const {suggestion:_0x4030a0,meta:_0x43a0dd}of this['_findSuggestions'](_0x35b121,'deletion'))_0x43a0dd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43a0dd['containsRangeInObject']&&!_0x43a0dd['isInsideObject'])&&Lt(_0x4030a0,_0x3e0001)&&_0x17ab73['add'](_0x4030a0);for(const _0x552a55 of _0x17ab73){const _0x1e56c2=_0x552a55['getRanges']();if(!_0x3e0001||!_0x3e0001['skipNestingCheck']){if(_0x35b121['every'](_0x2b687e=>_0x1e56c2['some'](_0x209a5a=>_0x209a5a['containsRange'](_0x2b687e,!0x0))))return _0x552a55;}(!_0x552a55['attributes']||!_0x552a55['attributes']['skipNestingCheck'])&&(_0x1e56c2['every'](_0x756991=>_0x35b121['some'](_0x5c04e4=>_0x5c04e4['containsRange'](_0x756991,!0x0)))&&_0x552a55['discard']());}const _0x10c089=_0x219e6e(),_0x5d15bb=_0x1b9106['id'],_0x3a92c6='deletion:'+_0x4977cb,_0xc192a1=this['_setSuggestionData']({'id':_0x10c089,'type':_0x3a92c6,'createdAt':new Date(),'authorId':_0x5d15bb,'attributes':_0x3e0001});for(const _0x3cda20 of _0x35b121)_0x3cda20['detach'](),_0x3cda20['isCollapsed']||'$graveyard'==_0x3cda20['root']['rootName']||this['_addSuggestionMarker'](_0x3a92c6,_0x10c089,_0x5d15bb,_0x3cda20,u['getMultiRangeId']());return _0xc192a1;}['markAttributeChange'](_0x335a28,_0x138924,_0x2bf538,_0x4a4c45,_0x4ce66a){if(_0x335a28['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1bfe64=this['editor']['plugins']['get']('Users')['me']['id'],_0x3a4081=Array['from'](this['_suggestions']['values']())['filter'](_0x48a4f9=>'attribute'==_0x48a4f9['type']&&_0x48a4f9['data']['key']==_0x138924&&_0x48a4f9['isIntersectingWithRange'](_0x335a28));if('default'===this['_trackFormatChanges']){const _0x3cc8ec=this['_findSuggestions'](_0x335a28,'insertion')['filter'](({meta:_0x4582ad})=>_0x4582ad['isOwn']&&!_0x4582ad['isInsideObject']&&!_0x4582ad['isNextTo'])['map'](({suggestion:_0x35e540})=>_0x35e540);_0x3a4081['unshift'](..._0x3cc8ec);}const _0xddd0db=new Map([[_0x335a28,_0x2bf538]]);for(const _0x293752 of _0x3a4081){const _0x2bf8c8='attribute'==_0x293752['type']?_0x293752['data']['oldValue']:void 0x0,_0x4f213c=_0x293752['getFirstRange'](),_0x58f048=Array['from'](_0xddd0db['keys']())['find'](_0x3fe2cc=>_0x3fe2cc['isIntersecting'](_0x4f213c));if(!_0x58f048)continue;const _0x4dbe31=_0x58f048['getDifference'](_0x4f213c);this['_isBlockAttribute'](_0x138924)&&'insertion'==_0x293752['type']&&0x0!=_0x4dbe31['length']||(_0xddd0db['delete'](_0x58f048),_0x4dbe31['forEach'](_0x4af0c1=>{_0xddd0db['set'](_0x4af0c1,_0x2bf538);}),'insertion'!=_0x293752['type']&&_0x2bf8c8!=_0x4a4c45&&_0xddd0db['set'](_0x58f048['getIntersection'](_0x4f213c),_0x2bf8c8));}const _0x469927=[];for(const [_0x1f2bf8,_0x32d8de]of _0xddd0db){const _0x2020c5=_0x219e6e(),_0x76237e={'key':_0x138924,'oldValue':_0x32d8de,'newValue':_0x4a4c45};_0x138924['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':_0x138924});const _0x5e3ee5=('attribute:'+(_0x138924+'|'+Vt({'newValue':_0x4a4c45})))['substring'](0x0,0x3c),_0x5ab041=this['_setSuggestionData']({'id':_0x2020c5,'type':_0x5e3ee5,'data':_0x76237e,'createdAt':new Date(),'authorId':_0x1bfe64,'attributes':_0x4ce66a});_0x469927['push'](_0x5ab041),this['_addSuggestionMarker'](_0x5e3ee5,_0x2020c5,_0x1bfe64,_0x1f2bf8);}return _0x469927;}['_registerBlockAttribute'](_0x7faea6){this['_blockAttributeKeys']['add'](_0x7faea6);}['_registerInlineAttribute'](_0x43db6c){this['_inlineAttributeKeys']['add'](_0x43db6c);}['_enableDefaultAttributesIntegration'](_0x494b78,_0x1ce757=[],_0x1fb0ec=[]){this['enableCommand'](_0x494b78,(_0x23d214,..._0x165e72)=>{this['_recordAttributeChanges'](()=>{_0x23d214(..._0x165e72);});});for(const _0x5540bc of _0x1ce757)this['_registerInlineAttribute'](_0x5540bc);for(const _0x1eaf98 of _0x1fb0ec)this['_registerBlockAttribute'](_0x1eaf98);}['_getAttributeKey'](_0x9b519){return'attribute'==_0x9b519['type']?_0x9b519['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3dc5f3,_0x1051cb){const _0x2f5288=_0x3dc5f3['getFirstMarker']();this['_model']['change'](_0x5a04c4=>{_0x5a04c4['updateMarker'](_0x2f5288,{'range':_0x1051cb});});}['_addThreadToSuggestion'](_0x210dbd){const _0x18c954=_0x210dbd['id'],_0xb5091=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x18c954)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb5091,'threadId':_0x18c954,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x536f21=this['_commentsRepository']['getCommentThread'](_0x18c954);_0x536f21['unbind']('isRemovable'),_0x536f21['isRemovable']=!0x1,_0x210dbd['commentThread']=_0x536f21;}['_checkSuggestionCorrectness'](_0x58ecfa,_0x164906,_0xf3c5e0,_0x501a9d){if(_0x58ecfa['type']!=_0x164906||_0x58ecfa['subType']!=_0xf3c5e0||_0x58ecfa['creator']['id']!=_0x501a9d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4d5db7('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x11767c,_0x22d72b){const _0x54bf7d=_0x11767c['getFirstRange']();if(_0x22d72b['isEqual'](_0x54bf7d))_0x11767c['removeMarkers']();else{if(_0x54bf7d['containsRange'](_0x22d72b)){const _0x2e12bd=this['_model']['createPositionAt'](_0x22d72b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x11767c,this['_model']['createRange'](_0x54bf7d['start'],_0x2e12bd));const _0x5d6d26=_0x219e6e(),_0x23d5fb=_0x11767c['creator']['id'],_0x273543=_0x11767c['type']+':'+_0x11767c['subType'];this['_setSuggestionData']({'id':_0x5d6d26,'type':_0x273543,'createdAt':new Date(),'authorId':_0x23d5fb,'data':_0x11767c['data'],'attributes':_0x11767c['attributes']});const _0x11889f=this['_model']['createPositionAt'](_0x22d72b['end']['parent'],'after'),_0x365804=this['_model']['createRange'](_0x11889f,_0x54bf7d['end']);this['_addSuggestionMarker'](_0x273543,_0x5d6d26,_0x23d5fb,_0x365804);}else{if(_0x54bf7d['containsPosition'](_0x22d72b['start'])){const _0x169be5=this['_model']['createPositionAt'](_0x22d72b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x11767c,this['_model']['createRange'](_0x54bf7d['start'],_0x169be5));}else{const _0x44ebb0=this['_model']['createPositionAt'](_0x22d72b['end']['parent'],'after');this['_setSuggestionRange'](_0x11767c,this['_model']['createRange'](_0x44ebb0,_0x54bf7d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3bf240){for(const {suggestion:_0x3bb9c2,meta:_0x174ed7}of this['_findSuggestions'](_0x3bf240,'insertion')){if(!_0x174ed7['isOwn'])continue;const _0x2d93bc=_0x3bb9c2['getRanges']();for(const _0x2e7fd4 of _0x2d93bc)if(!_0x3bf240['getDifference'](_0x2e7fd4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x377f10){const _0x485dc2=this['editor']['plugins']['get']('Users')['getUser'](_0x377f10);if(!_0x485dc2)throw new _0x4d5db7('track-changes-user-not-found',this);return _0x485dc2;}['_getExternalAuthor'](_0x4ff361){const _0x2bc4b4=this['editor']['plugins']['get']('Users'),_0x55a3e2=_0x105b9a('external:'+_0x4ff361),_0x39c3af=_0x2bc4b4['getUser'](_0x55a3e2);return _0x39c3af||_0x2bc4b4['addUser']({'id':_0x55a3e2,'name':_0x4ff361});}['_createSuggestion'](_0x3694dd,_0x8dde4e,_0x445a41,_0x3c9ab7,_0xe812ca){const _0x54bebd=this['_getAuthorFromId'](_0x3c9ab7),_0x4c4c7d=this['_suggestionFactory']['buildSuggestion'](_0x3694dd,_0x8dde4e,_0x445a41,_0x54bebd,_0xe812ca,_0xda2fa4=>{this['_updateSuggestionData'](_0x445a41,{'attributes':_0xda2fa4});const _0xe9eafa=this['getSuggestion'](_0x445a41);this['_joinWithAdjacentSuggestions'](new Set([_0xe9eafa])),this['_refreshSuggestionsChain'](new Set([_0xe9eafa]));});return this['listenTo'](_0x4c4c7d,'accept',()=>{this['_updateSuggestionData'](_0x445a41,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4c4c7d,'discard',()=>{this['_updateSuggestionData'](_0x445a41,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x445a41,_0x4c4c7d),this['_suggestionState']['set'](_0x4c4c7d,'notReady'),_0x4c4c7d;}['_splitMarkerName'](_0x32434d){const _0x14cea4=_0x32434d['split'](':');return{'group':_0x14cea4[0x0],'type':_0x14cea4[0x1],'subType':_0x14cea4['length']>=0x5?_0x14cea4[0x2]:null,'id':_0x14cea4['length']<0x5?_0x14cea4[0x2]:_0x14cea4[0x3],'authorId':_0x14cea4['length']<0x5?_0x14cea4[0x3]:_0x14cea4[0x4],'markerCount':0x6==_0x14cea4['length']?_0x14cea4[0x5]:null};}['_breakSuggestionMarker'](_0x17b395,_0x3e2925,_0x2ca7b2){const _0x3713c5=_0x17b395['getFirstRange'](),_0x40227a=_0x3713c5['start'],_0xad6a9=_0x3713c5['end'];this['_setSuggestionRange'](_0x17b395,this['_model']['createRange'](_0x40227a,_0x3e2925));const _0x49fc85=_0x219e6e(),_0x4478de=_0x17b395['creator']['id'],_0xc960ca=_0x17b395['type']+(_0x17b395['subType']?':'+_0x17b395['subType']:'');this['_setSuggestionData']({'id':_0x49fc85,'type':_0xc960ca,'createdAt':new Date(),'authorId':_0x4478de,'originalSuggestionId':_0x17b395['id'],'attributes':_0x17b395['attributes'],'data':_0x17b395['data']});const _0xd6eede=this['_getAttributeKey'](_0x17b395);('formatBlock'==_0x17b395['type']||_0xd6eede&&this['_isBlockAttribute'](_0xd6eede))&&(_0x2ca7b2=this['_model']['createPositionBefore'](_0x2ca7b2['parent'])),this['_addSuggestionMarker'](_0xc960ca,_0x49fc85,_0x4478de,this['_model']['createRange'](_0x2ca7b2,_0xad6a9));}['_findSuggestions'](_0x3d2d6b,_0x400df2=null){const _0x2ea261=[],_0x996f49=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3d2d6b)||(_0x3d2d6b=[_0x3d2d6b]);for(const _0x225ca5 of this['getSuggestions']()){if(!_0x225ca5['isInContent'])continue;if(_0x400df2&&_0x225ca5['type']!=_0x400df2)continue;let _0xad1b6=!0x1;for(const _0x325b74 of _0x225ca5['getRanges']()){for(const _0x311d9d of _0x3d2d6b){const _0x22072e=_0x311d9d['start']['isEqual'](_0x325b74['end'])||_0x311d9d['end']['isEqual'](_0x325b74['start']);if(_0x22072e||_0x311d9d['getIntersection'](_0x325b74)){const _0x19a991=_0x311d9d['containsRange'](_0x325b74)&&Rt(this['_model']['schema'],_0x325b74['start'],_0x311d9d),_0x164c66=_0x325b74['containsRange'](_0x311d9d)&&Rt(this['_model']['schema'],_0x311d9d['start'],_0x325b74);_0x2ea261['push']({'suggestion':_0x225ca5,'meta':{'isOwn':_0x996f49==_0x225ca5['author'],'isNextTo':_0x22072e,'isInsideObject':_0x19a991,'containsRangeInObject':_0x164c66}}),_0xad1b6=!0x0;break;}}if(_0xad1b6)break;}}return _0x2ea261;}['_addSuggestionMarker'](_0x18b02e,_0x1d61a1,_0x34d533,_0x1194b4,_0x241aa9){this['_model']['change'](_0x119919=>{let _0x4c65fd='suggestion:'+_0x18b02e+':'+_0x1d61a1+':'+_0x34d533;_0x241aa9&&(_0x4c65fd=_0x4c65fd+':'+_0x241aa9),_0x119919['addMarker'](_0x4c65fd,{'range':_0x1194b4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5f3815){const _0x12a9f0=_0x5f3815['previous'],_0x4bb96d=_0x5f3815['next'];_0x5f3815['previous']=null,_0x5f3815['next']=null,null!=_0x12a9f0&&_0x12a9f0['next']==_0x5f3815&&(_0x12a9f0['next']=_0x4bb96d),null!=_0x4bb96d&&_0x4bb96d['previous']==_0x5f3815&&(_0x4bb96d['previous']=_0x12a9f0),'ready'==this['_suggestionState']['get'](_0x5f3815)&&(this['_suggestionState']['set'](_0x5f3815,'removed'),this['fire']('suggestionUnloaded',_0x5f3815,_0x12a9f0,_0x4bb96d));}['_setSuggestionData'](_0x3289a2){const _0x47cc16=_0x3289a2['id'],_0x93e4f1=this['addSuggestionData'](_0x3289a2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x317a27=this['editor']['plugins']['get']('PendingActions'),_0xc18cbe=_0x93e4f1['hasComments'],_0x27c238=_0x93e4f1['subType']?_0x93e4f1['type']+':'+_0x93e4f1['subType']:_0x93e4f1['type'],_0x3ac1ef=this['editor']['locale'],_0x1ea942=_0x317a27['add'](o(_0x3ac1ef,'PENDING_ACTION_SUGGESTION')),_0x436fe6={'id':_0x47cc16,'type':_0x27c238,'hasComments':_0xc18cbe,'data':_0x3289a2['data']||null,'originalSuggestionId':_0x3289a2['originalSuggestionId']||null,'attributes':_0x93e4f1['attributes']};this['_adapter']['addSuggestion'](_0x436fe6)['then'](_0x57c777=>{_0x93e4f1['_saved']=!0x0,_0x317a27['remove'](_0x1ea942),_0x57c777&&_0x57c777['createdAt']&&(this['_suggestions']['get'](_0x47cc16)['createdAt']=_0x57c777['createdAt']);})['catch'](_0x18235e=>{throw _0x44e1a0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x93e4f1['discard']();}),_0x93e4f1['stopListening'](),this['_suggestions']['delete'](_0x93e4f1['id']),this['_suggestionState']['delete'](_0x93e4f1),_0x18235e;});}return _0x93e4f1;}['_isBlockAttribute'](_0x358a4b){return this['_blockAttributeKeys']['has'](_0x358a4b);}['_updateSuggestionData'](_0x164e21,_0x4d7a33){const _0x1c2e6d=this['editor']['plugins']['get']('PendingActions'),_0x4947f9=this['getSuggestion'](_0x164e21);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4947f9['_saved']){const _0x114f96=_0x1c2e6d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x164e21,_0x4d7a33)['then'](()=>{_0x1c2e6d['remove'](_0x114f96);});}else _0x4947f9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x164e21,_0x4d7a33);});}}['_getSuggestionData'](_0x3f30a9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4d5db7('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3f30a9);}['_handleNewSuggestionMarker'](_0x1a17fd){const {id:_0x262923,type:_0x28bbf3,subType:_0x47775a,authorId:_0x195f55}=this['_splitMarkerName'](_0x1a17fd),_0x5d6b93=this['_suggestions']['get'](_0x262923)||this['_createSuggestion'](_0x28bbf3,_0x47775a,_0x262923,_0x195f55,{});switch(this['_checkSuggestionCorrectness'](_0x5d6b93,_0x28bbf3,_0x47775a,_0x195f55),this['_suggestionState']['get'](_0x5d6b93)){case'notReady':this['_getSuggestionData'](_0x262923)['then'](_0x4e434f=>{let _0x5c1dd4=Promise['resolve']();_0x4e434f['hasComments']&&(_0x5c1dd4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x262923})),_0x5c1dd4['then'](()=>{this['addSuggestionData'](_0x4e434f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5d6b93,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x262923,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5d6b93,'ready'),this['fire']('suggestionLoaded',_0x5d6b93);break;case'ready':this['fire']('suggestionChanged',_0x5d6b93);}return _0x5d6b93['addMarkerName'](_0x1a17fd),_0x5d6b93;}['_refreshSuggestionsChain'](_0x1984cf){const _0x194c11=Array['from'](_0x1984cf),_0x5b120a=_0x194c11['filter'](_0x5b2b73=>'attribute'==_0x5b2b73['type']);this['_refreshAttributeSuggestionsChain'](_0x5b120a);const _0x3fe44c=_0x194c11['filter'](_0x2da838=>!_0x2da838['isMultiRange']&&'attribute'!=_0x2da838['type']),_0x5a0bdf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d19af=>!_0x4d19af['isMultiRange']&&'attribute'!=_0x4d19af['type']),_0x56cf80=_0x5a0bdf['filter'](_0x42f2c1=>!_0x1984cf['has'](_0x42f2c1)),_0x3395d3=new Map(_0x5a0bdf['map'](_0x4e66c9=>[_0x4e66c9,this['_suggestionFactory']['getSuggestionCallback'](_0x4e66c9['type'],_0x4e66c9['subType'],'chain')])),_0x52bcc8=new Map(_0x5a0bdf['map'](_0x3312f1=>[_0x3312f1,_0x3312f1['getFirstRange']()])),_0x2ea0ec=new Set(),_0x47aa18=new Set();for(let _0x2a1918=0x0;_0x2a1918<_0x3fe44c['length'];_0x2a1918++)_0x4654e0(_0x3fe44c[_0x2a1918],_0x3fe44c,_0x2a1918+0x1);for(let _0x595dcb=0x0;_0x595dcb<_0x3fe44c['length'];_0x595dcb++)_0x4654e0(_0x3fe44c[_0x595dcb],_0x56cf80,0x0);const _0x24954e=new Set();for(let _0x1ae739=0x0;_0x1ae739<_0x3fe44c['length'];_0x1ae739++){const _0xef57cd=_0x3fe44c[_0x1ae739];!_0x47aa18['has'](_0xef57cd)&&_0xef57cd['previous']&&(_0x24954e['add'](_0xef57cd['previous']),_0xef57cd['previous']['next']===_0xef57cd&&(_0xef57cd['previous']['next']=null),_0xef57cd['previous']=null),!_0x2ea0ec['has'](_0xef57cd)&&_0xef57cd['next']&&(_0x24954e['add'](_0xef57cd['next']),_0xef57cd['next']['previous']===_0xef57cd&&(_0xef57cd['next']['previous']=null),_0xef57cd['next']=null);}function _0x4654e0(_0x347828,_0xdc626a,_0x2a35a8){for(let _0x2e0b39=_0x2a35a8;_0x2e0b39<_0xdc626a['length'];_0x2e0b39++){const _0x498b22=_0x768bf1(_0x347828,_0xdc626a[_0x2e0b39]);_0x498b22&&(_0x498b22[0x0]['next']=_0x498b22[0x1],_0x498b22[0x1]['previous']=_0x498b22[0x0],_0x2ea0ec['add'](_0x498b22[0x0]),_0x47aa18['add'](_0x498b22[0x1]));}}function _0x768bf1(_0x12d3a9,_0x28ae46){if(_0x12d3a9['author']['id']!==_0x28ae46['author']['id'])return null;const _0x1feb62=_0x3395d3['get'](_0x12d3a9)(_0x12d3a9,_0x28ae46,_0x52bcc8['get'](_0x12d3a9),_0x52bcc8['get'](_0x28ae46));if(!_0x1feb62)return null;return _0x3395d3['get'](_0x28ae46)(_0x12d3a9,_0x28ae46,_0x52bcc8['get'](_0x12d3a9),_0x52bcc8['get'](_0x28ae46))?_0x1feb62[0x1]['commentThread']&&_0x1feb62[0x1]['commentThread']['length']?null:_0x1feb62:null;}_0x24954e['size']&&this['_refreshSuggestionsChain'](_0x24954e);}['_refreshAttributeSuggestionsChain'](_0x46e23e){if(0x0==_0x46e23e['length'])return;const _0x1376ab=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e59c0=>'attribute'==_0x2e59c0['type']&&_0x2e59c0['_isDataLoaded']),_0x3e160f=[],_0x564ea2=new Map();for(const _0x2f2f84 of _0x1376ab){const _0x267783=_0x105b9a(_0x2f2f84['attributes']);_0x564ea2['has'](_0x267783)||(_0x564ea2['set'](_0x267783,_0x3e160f['length']),_0x3e160f['push']([]));const _0x2b581e=_0x564ea2['get'](_0x267783);_0x3e160f[_0x2b581e]['push'](_0x2f2f84);}!(function(){_0x3e160f['sort']((_0x3ed1cd,_0x5a08bc)=>{const _0x469050=_0x3ed1cd[0x0]['createdAt'],_0x3e4be0=_0x5a08bc[0x0]['createdAt'];return _0x469050==_0x3e4be0?_0x3ed1cd[0x0]['attributes']['groupId']<_0x5a08bc[0x0]['attributes']['groupId']?-0x1:0x1:_0x469050<_0x3e4be0?-0x1:0x1;});for(const _0x3455c5 of _0x3e160f)_0x3455c5['sort']((_0x5bee08,_0x3ac4e7)=>_0x5bee08['id']<_0x3ac4e7['id']?-0x1:0x1);}());for(let _0x4ad88b=0x0;_0x4ad88b<_0x3e160f['length'];_0x4ad88b++){if(0x0==_0x3e160f[_0x4ad88b]['length'])continue;const _0x466e38=[];for(let _0x4cf862=_0x4ad88b+0x1;_0x4cf862<_0x3e160f['length'];_0x4cf862++)0x0!=_0x3e160f[_0x4cf862]['length']&&_0x5c6ba1(_0x3e160f[_0x4ad88b],_0x3e160f[_0x4cf862])&&_0x466e38['push'](_0x4cf862);for(const _0x284992 of _0x466e38)_0x3e160f[_0x4ad88b]=_0x3e160f[_0x4ad88b]['concat'](_0x3e160f[_0x284992]),_0x3e160f[_0x284992]=[];}for(const _0x39bbfb of _0x3e160f)for(let _0x13be3e=0x0;_0x13be3e<_0x39bbfb['length'];_0x13be3e++)_0x39bbfb[_0x13be3e]['next']=_0x39bbfb[_0x13be3e+0x1]||null;for(const _0x131a71 of _0x3e160f)for(let _0x20c524=0x0;_0x20c524<_0x131a71['length'];_0x20c524++)_0x131a71[_0x20c524]['previous']=_0x131a71[_0x20c524-0x1]||null;function _0x5c6ba1(_0x4f0361,_0x2f3ffa){if(_0x4f0361[0x0]['attributes']['groupId']!==_0x2f3ffa[0x0]['attributes']['groupId']&&_0x4f0361[0x0]['author']!==_0x2f3ffa[0x0]['author'])return!0x1;if(!function(_0x32cf81,_0x15bd42){if(!_0x32cf81['hasComments']&&!_0x15bd42['hasComments'])return!0x0;if(_0x32cf81['hasComments']&&_0x15bd42['hasComments'])return!0x1;if(_0x32cf81['hasComments']&&_0x15bd42['createdAt']<_0x32cf81['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x15bd42['hasComments']&&_0x32cf81['createdAt']<_0x15bd42['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4f0361[0x0],_0x2f3ffa[0x0]))return!0x1;const _0x445bf0=Bt(_0x4f0361[0x0]['attributes'],'groupId'),_0x4c63fb=Bt(_0x2f3ffa[0x0]['attributes'],'groupId');if(!_0x66965c(_0x445bf0,_0x4c63fb))return!0x1;return!!_0x4f0361['every'](_0x449e55=>_0x2f3ffa['some'](_0x904a85=>_0x449e55['getFirstRange']()['isEqual'](_0x904a85['getFirstRange']())))&&_0x2f3ffa['every'](_0x45a7b9=>_0x4f0361['some'](_0x587f66=>_0x45a7b9['getFirstRange']()['isEqual'](_0x587f66['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4bc6df){const _0xf30716=Array['from'](_0x4bc6df),_0xfe57d0=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1bc6bb=_0xfe57d0['filter'](_0x222b3b=>!_0x4bc6df['has'](_0x222b3b)),_0x5bafce=new Map(_0xf30716['map'](_0x252e8c=>[_0x252e8c,this['_suggestionFactory']['getSuggestionCallback'](_0x252e8c['type'],_0x252e8c['subType'],'join')])),_0x111912=new Map(_0xfe57d0['map'](_0x177097=>[_0x177097,_0x177097['getRanges']()]));for(let _0x3b1f06=0x0;_0x3b1f06<_0xf30716['length'];_0x3b1f06++){if(_0x5e69c3(this,_0xf30716[_0x3b1f06],_0xf30716,_0x3b1f06+0x1))return!0x0;}for(let _0x89ca=0x0;_0x89ca<_0xf30716['length'];_0x89ca++){if(_0x5e69c3(this,_0xf30716[_0x89ca],_0x1bc6bb,0x0))return!0x0;}return!0x1;function _0x5e69c3(_0x3efe7b,_0x9d6b44,_0x2dd2d0,_0xc16eae){for(let _0x464637=_0xc16eae;_0x464637<_0x2dd2d0['length'];_0x464637++){const _0x3956f9=_0x2dd2d0[_0x464637];if(_0x3956f9['type']!==_0x9d6b44['type']||_0x3956f9['author']['id']!==_0x9d6b44['author']['id']||_0x3956f9['subType']!==_0x9d6b44['subType'])continue;if(!Pt(_0x9d6b44,_0x3956f9,['groupId']))continue;if('attribute'==_0x9d6b44['type']&&_0x9d6b44['data']['oldValue']!=_0x3956f9['data']['oldValue'])continue;if('attribute'==_0x9d6b44['type']&&_0x3efe7b['_isBlockAttribute'](_0x9d6b44['data']['key']))continue;if('formatBlock'==_0x9d6b44['type']){const _0x42b8b5=_0x3efe7b['editor']['model'],_0x57aa93=_0x9d6b44['getContainedElement']();if(_0x57aa93&&(_0x42b8b5['schema']['isObject'](_0x57aa93)||_0x42b8b5['schema']['isLimit'](_0x57aa93)))continue;}const _0x503e96=_0x5bafce['get'](_0x9d6b44),_0x459379=_0x111912['get'](_0x9d6b44),_0x2792ba=_0x111912['get'](_0x3956f9),_0x3ce7b0=_0x9d6b44['commentThread']&&_0x9d6b44['commentThread']['length'],_0xe87ff7=_0x3956f9['commentThread']&&_0x3956f9['commentThread']['length'];if(!_0x3ce7b0&&_0x503e96(_0x2792ba,_0x459379))return _0x3efe7b['_joinSuggestions'](_0x3956f9,_0x9d6b44),_0x111912['delete'](_0x9d6b44),!0x0;if(!_0xe87ff7&&_0x503e96(_0x459379,_0x2792ba))return _0x3efe7b['_joinSuggestions'](_0x9d6b44,_0x3956f9),_0x111912['delete'](_0x3956f9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x594def,_0x5f1aa0){if(_0x594def['isMultiRange']){for(const _0x550528 of _0x5f1aa0['getRanges']())_0x594def['addRange'](_0x550528);}else{const _0x464049=_0x5f1aa0['getFirstRange']()['end'];this['_setSuggestionRange'](_0x594def,this['_model']['createRange'](_0x594def['getFirstRange']()['start'],_0x464049));}_0x5f1aa0['removeMarkers']();}['_getMarkerAnnouncementText'](_0x992354,_0x83ab28){const _0x4da511=_0x992354['startsWith']('format')||_0x992354['startsWith']('attribute')?'FORMATTING':_0x992354['toUpperCase']();return o(this['editor']['locale'],_0x83ab28+'_'+_0x4da511+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x9f38f3=this['editor'];if(!_0x9f38f3['ui'])return;const {ariaLiveAnnouncer:_0x4cb7bd}=_0x9f38f3['ui'];_0xec2f2f(this['_model'],({left:_0x51ed0f,entered:_0x43b9f6})=>{for(const _0x46269e of _0x51ed0f){const {group:_0x1cdfc2,type:_0x5a4a67}=this['_splitMarkerName'](_0x46269e['name']);if('suggestion'===_0x1cdfc2){_0x4cb7bd['announce'](this['_getMarkerAnnouncementText'](_0x5a4a67,'LEAVE'));break;}}for(const _0x4ce39e of _0x43b9f6){const {group:_0x94adad,type:_0x534aec}=this['_splitMarkerName'](_0x4ce39e['name']);if('suggestion'===_0x94adad){_0x4cb7bd['announce'](this['_getMarkerAnnouncementText'](_0x534aec,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2f0c56){if(this['_recordAttributeSuggestions'])return!0x1;const _0x342cc3=this['editor'],_0x565a27=_0x342cc3['model']['document']['differ']['getChanges']();if(0x0==_0x565a27['length'])return!0x1;const _0x1cacb4=[],_0x2108da=_0x565a27['filter'](_0x4505af=>'attribute'==_0x4505af['type']),_0x4acbe6=_0x565a27['filter'](_0x59d98b=>'insert'==_0x59d98b['type']&&'$text'!=_0x59d98b['name']),_0x3f66ee=_0x565a27['filter'](_0x2681fb=>'remove'==_0x2681fb['type']&&'$text'!=_0x2681fb['name']);for(const _0x5300e7 of _0x2108da)_0x1cacb4['push']({'key':_0x5300e7['attributeKey'],'newValue':_0x5300e7['attributeNewValue'],'oldValue':_0x5300e7['attributeOldValue'],'range':Ot(_0x5300e7['range'],_0x342cc3['model'])});for(const _0x48d6d6 of _0x4acbe6){const _0x377d06=_0x3f66ee['find'](_0x1c5d14=>_0x1c5d14['position']['isEqual'](_0x48d6d6['position']));_0x377d06&&_0x1cacb4['push']({'key':m,'newValue':_0x48d6d6['name'],'oldValue':_0x377d06['name'],'range':_0x342cc3['model']['createRangeOn'](_0x48d6d6['position']['nodeAfter'])});}return 0x0!=_0x1cacb4['length']&&this['_reduceExistingSuggestions'](_0x2f0c56,_0x1cacb4);}['_processAttributeSuggestions'](_0xab2f2d){let _0x3b2f1f=!0x1;const _0x349a04=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x24e7ce=>_0x24e7ce['data']['newRange']&&_0x24e7ce['name']['startsWith']('suggestion:attribute:'));for(const _0x24162f of _0x349a04){const {subType:_0x502368,id:_0x233d23}=this['_splitMarkerName'](_0x24162f['name']),_0xf882ba=_0x502368['split']('|')[0x0];for(const _0x2ad950 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2ad950['id']!=_0x233d23&&'attribute'==_0x2ad950['type']&&_0x2ad950['data']&&_0x2ad950['data']['key']==_0xf882ba&&_0x2ad950['getFirstRange']()['isIntersecting'](_0x24162f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2ad950,_0x24162f['data']['newRange'],_0xab2f2d),_0x3b2f1f=!0x0);}return _0x3b2f1f;}['_recordAttributeChanges'](_0x1f5d18){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1f5d18();}['_isRegisteredAttribute'](_0x3bdc9a){const _0x5cf6fc=this['_isBlockAttribute'](_0x3bdc9a),_0x39faad=this['_inlineAttributeKeys']['has'](_0x3bdc9a);return _0x5cf6fc||_0x39faad;}['_reduceExistingSuggestions'](_0x231dd4,_0x580a8b){if(0x0==_0x580a8b['length'])return!0x1;let _0x308265=!0x1;for(const _0x5976e6 of _0x580a8b){const _0x11f4c1=this['_findSuggestions'](_0x5976e6['range'],'attribute')['filter'](_0x19b851=>!_0x19b851['meta']['isNextTo'])['map'](_0x325278=>_0x325278['suggestion']),_0x33b648=_0x105b9a({'newValue':_0x5976e6['newValue']});_0x11f4c1['filter'](_0x6f1b2f=>{const [_0x5c137f,_0x663bb8]=_0x6f1b2f['subType']['split']('|');return _0x5c137f==_0x5976e6['key']&&_0x663bb8!=_0x33b648;})['forEach'](_0x31a45c=>{this['_reduceSuggestionAttributeRange'](_0x31a45c,_0x5976e6['range'],_0x231dd4),_0x308265=!0x0;});}return _0x308265;}['_reduceSuggestionAttributeRange'](_0x2ba4eb,_0x4e1775,_0x1db7bb){const _0x5d5cb7=_0x2ba4eb['getFirstRange']()['getDifference'](_0x4e1775);0x0!==_0x5d5cb7['length']?0x1!==_0x5d5cb7['length']?this['_breakSuggestionMarker'](_0x2ba4eb,_0x4e1775['start'],_0x4e1775['end']):this['_setSuggestionRange'](_0x2ba4eb,_0x5d5cb7[0x0]):_0x1db7bb['removeMarker'](_0x2ba4eb['getFirstMarker']());}constructor(_0xa6cbdb){function _0x3e508b(_0xdfbd6c){return _0xdfbd6c['map'](_0x54fc48=>String['fromCharCode'](_0x54fc48))['join']('');}super(_0xa6cbdb),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ce3b2,_0xfd77ea,_0x72141d,_0x1c28f0)=>{this['_model']['change'](()=>{for(const _0x3fd351 of[..._0x1c28f0,..._0x72141d])this['_model']['markers']['has'](_0x3fd351)&&_0xa6cbdb['editing']['reconvertMarker'](_0x3fd351);});}),this['_descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xa6cbdb['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0xa6cbdb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xa6cbdb['config']['get']('trackChanges.trackFormatChanges'),_0xa6cbdb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xa6cbdb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0xa6cbdb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3e508b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3e508b([0x34,0x30,0x34,0x38,0x30,0x38,0x35,0x34]);}}class xt{['buildSuggestion'](_0x20f162,_0x47c755,_0x2adc85,_0x5997e4,_0x9df765,_0x1945d9){return new u(this['_model'],{'type':_0x20f162,'subType':_0x47c755,'id':_0x2adc85,'author':_0x5997e4,'creator':_0x5997e4,'attributes':_0x9df765,'onAttributesChange':_0x1945d9,'onAccept':(..._0x2bd0b8)=>this['getSuggestionCallback'](_0x20f162,_0x47c755,'accept')(..._0x2bd0b8),'onDiscard':(..._0x256c3b)=>this['getSuggestionCallback'](_0x20f162,_0x47c755,'discard')(..._0x256c3b)});}['registerCustomCallback'](_0x17c44f,_0x37a504,_0x310961,_0x181533){const _0x4a5751=_0x17c44f+':'+_0x37a504+':'+_0x310961;this['_customCallbacks']['set'](_0x4a5751,_0x181533);}['getSuggestionCallback'](_0x33467b,_0x2dc8cc,_0x2f5315){const _0x468508=_0x33467b+':'+_0x2dc8cc+':'+_0x2f5315;return this['_customCallbacks']['get'](_0x468508)||this['_defaultCallbacks']['get'](_0x33467b+':'+_0x2f5315);}['_registerDefaultCallbacks'](){const _0x1c4dec=()=>!0x1,_0x40ca65=_0x38a4dc=>{_0x38a4dc['sort']((_0xeb04d5,_0xb03fa9)=>_0xeb04d5['start']['isBefore'](_0xb03fa9['start'])?0x1:-0x1),this['_model']['change'](_0x54d999=>{for(const _0x3bc331 of _0x38a4dc){let _0x12eb15;_0x12eb15=_0x3bc331['end']['isAtEnd']&&_0x3bc331['end']['parent']==_0x3bc331['start']['nodeAfter']?_0x54d999['createSelection'](_0x3bc331['start']['nodeAfter'],'on'):_0x54d999['createSelection'](_0x3bc331),this['_model']['deleteContent'](_0x12eb15,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4c64f8=(_0x3edd0c,_0x50e106)=>{_0x50e106&&this['_model']['change'](_0x307094=>{const {commandName:_0x2e3888,commandParams:_0x1f9367=[]}=_0x50e106,_0x10bbee=_0x3edd0c['map'](_0x68e85f=>(Tt(_0x68e85f)&&(_0x68e85f=this['_model']['createRange'](_0x68e85f['end'])),_0x68e85f))['filter'](_0x529f97=>'$graveyard'!==_0x529f97['root']['rootName']);if(_0x10bbee['length']<0x1)return;const _0x2f7017=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x41084e=>_0x40e8d5['fromRange'](_0x41084e));_0x307094['setSelection'](_0x10bbee);for(const _0x2872a3 of this['_editor']['commands']['commands']())_0x2872a3['refresh']();_0x1f9367['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2e3888,..._0x1f9367);const _0x189af4=_0x2f7017['filter'](_0x2a5579=>'$graveyard'!=_0x2a5579['root']['rootName']);_0x189af4['length']>0x0&&_0x307094['setSelection'](_0x189af4);for(const _0x3e1e0c of _0x2f7017)_0x3e1e0c['detach']();});},_0x4c43bf=(_0x4affd9,_0x339d37)=>0x1==_0x4affd9['length']&&0x1==_0x339d37['length']&&_0x4affd9[0x0]['end']['isEqual'](_0x339d37[0x0]['start']),_0x35d36b=(_0x3b21e0,_0x14ada7,_0xbd9d4b,_0x442440)=>Ft(_0x3b21e0,_0x14ada7,_0xbd9d4b,_0x442440,this['_model'])?[_0x3b21e0,_0x14ada7]:Ft(_0x14ada7,_0x3b21e0,_0x442440,_0xbd9d4b,this['_model'])?[_0x14ada7,_0x3b21e0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1c4dec),this['_defaultCallbacks']['set']('insertion:discard',_0x40ca65),this['_defaultCallbacks']['set']('insertion:join',_0x4c43bf),this['_defaultCallbacks']['set']('insertion:chain',_0x35d36b),this['_defaultCallbacks']['set']('deletion:accept',_0x40ca65),this['_defaultCallbacks']['set']('deletion:discard',_0x1c4dec),this['_defaultCallbacks']['set']('deletion:join',_0x4c43bf),this['_defaultCallbacks']['set']('deletion:chain',_0x35d36b),this['_defaultCallbacks']['set']('formatInline:accept',_0x4c64f8),this['_defaultCallbacks']['set']('formatInline:discard',_0x1c4dec),this['_defaultCallbacks']['set']('formatInline:join',_0x4c43bf),this['_defaultCallbacks']['set']('formatInline:chain',_0x1c4dec),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4c64f8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1c4dec),this['_defaultCallbacks']['set']('formatBlock:join',_0x4c43bf),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1c4dec),this['_defaultCallbacks']['set']('attribute:accept',_0x1c4dec),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d6f52,_0x25be88)=>{if(!_0x25be88)return;const _0x80c4af=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x57f37f=>{if(_0x25be88['key']==m)for(const _0x3b2011 of _0x5d6f52){const _0x2a0f7f=_0x3b2011['start']['nodeAfter'],_0x5c3080=_0x25be88['oldValue'];_0x57f37f['rename'](_0x2a0f7f,_0x5c3080);}else{if(_0x80c4af['_isBlockAttribute'](_0x25be88['key'])){for(const _0x141803 of _0x5d6f52)void 0x0!==_0x25be88['oldValue']?_0x57f37f['setAttribute'](_0x25be88['key'],_0x25be88['oldValue'],_0x141803['start']['nodeAfter']):_0x57f37f['removeAttribute'](_0x25be88['key'],_0x141803['start']['nodeAfter']);}else{for(const _0x113202 of _0x5d6f52)_0x25be88['oldValue']?_0x57f37f['setAttribute'](_0x25be88['key'],_0x25be88['oldValue'],_0x113202):_0x57f37f['removeAttribute'](_0x25be88['key'],_0x113202);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4c43bf);}constructor(_0x55771a){this['_editor']=_0x55771a,this['_model']=_0x55771a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x1622c4,_0x47d4e0,_0x55ee98){for(const _0x954e94 of _0x47d4e0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x954e94['root']==_0x954e94)return!0x1;if(!_0x55ee98['containsItem'](_0x954e94))return!0x1;if(_0x1622c4['isObject'](_0x954e94)||_0x1622c4['isLimit'](_0x954e94))return!0x0;}return!0x1;}function Tt(_0x211a4c){return _0x211a4c['end']['parent']==_0x211a4c['start']['nodeAfter']&&_0x211a4c['end']['isAtStart'];}function Et(_0x28eb01,_0x2cfc28,_0x147ee2,_0x3de9e3){const _0x678442=_0x4e4522=>!_0x4e4522['item']['is']('$textProxy')&&!_0x3de9e3['isObject'](_0x4e4522['item']),_0x39566e=_0x28eb01['start']['getLastMatchingPosition'](_0x678442),_0x424a95=_0x28eb01['end']['getLastMatchingPosition'](_0x678442,{'direction':'backward'});return(!_0x28eb01['start']['isEqual'](_0x39566e)||!_0x28eb01['end']['isEqual'](_0x424a95))&&(_0x39566e['isBefore'](_0x424a95)?_0x147ee2['updateMarker'](_0x2cfc28,{'range':_0x147ee2['createRange'](_0x39566e,_0x424a95)}):_0x147ee2['removeMarker'](_0x2cfc28),!0x0);}function Vt(_0x4b481e){return _0x105b9a(_0x4b481e);}function Ut(_0x7e1899){const _0xdb0679=_0x7e1899['start']['nodeAfter'];return _0xdb0679&&_0xdb0679['is']('element');}function Ot(_0x3ae29a,_0x3f1a77){return null==_0x3ae29a['end']['nodeBefore']&&_0x3ae29a['end']['parent']==_0x3ae29a['start']['nodeAfter']?Gt(_0x3ae29a['start']['nodeAfter'],_0x3f1a77):_0x3ae29a;}function Gt(_0x37df74,_0x3cc961){const _0x3036da=_0x3cc961['schema']['isObject'](_0x37df74)||_0x3cc961['schema']['isSelectable'](_0x37df74);return _0x3cc961['createRange'](_0x3cc961['createPositionAt'](_0x37df74,'before'),_0x3036da?_0x3cc961['createPositionAfter'](_0x37df74):_0x3cc961['createPositionAt'](_0x37df74,'end'));}function Ft(_0x594ffd,_0x5e538a,_0x521998,_0x3fe9a8,_0x3974dd){if(!Pt(_0x594ffd,_0x5e538a))return!0x1;if(_0x521998['end']['isEqual'](_0x3fe9a8['start']))return!0x0;if(_0x594ffd['type']!=_0x5e538a['type'])return!0x1;if(!_0x521998['end']['isTouching'](_0x3fe9a8['start']))return!0x1;const _0x1af3f5=_0x3974dd['createRange'](_0x521998['end'],_0x3fe9a8['start'])['getWalker']();for(const _0x40df68 of _0x1af3f5)if(['elementStart','elementEnd']['includes'](_0x40df68['type'])&&_0x3974dd['schema']['isLimit'](_0x40df68['item']))return!0x1;return!0x0;}function Pt(_0x58e100,_0x2eef91,_0x287872=[]){return!(!_0x58e100['_isDataLoaded']||!_0x2eef91['_isDataLoaded'])&&_0x66965c(Bt(_0x58e100['attributes'],_0x287872),Bt(_0x2eef91['attributes'],_0x287872));}function Lt(_0x539e16,_0x2e7795){const _0x190a22=Ht(_0x539e16['attributes']),_0x2a8664=Ht(_0x2e7795);if(!_0x539e16['_isDataLoaded'])return!0x1;for(const _0x23611e of Object['keys'](_0x2a8664))if(!_0x66965c(_0x190a22[_0x23611e],_0x2a8664[_0x23611e]))return!0x1;return!0x0;}function Ht(_0x2a199e){const _0x4c324c=Object['assign']({},_0x2a199e);return delete _0x4c324c['skipNestingCheck'],delete _0x4c324c['tablePasteChainId'],_0x4c324c;}class oe extends _0x52e42c(){['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 _0x43c4d0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x43c4d0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x17039d,_0x192c81,_0xe7538a,_0x1e1e9a){super(),this['model']=_0x192c81,this['view']=_0xe7538a,this['commentThreadController']=_0x1e1e9a,this['_editor']=_0x17039d,this['_acceptCommand']=_0x17039d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x17039d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x37ee38,_0x2d6799)=>_0x37ee38||_0x2d6799),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2175b3=>_0x2175b3&&this['_editor']['model']['canEditAt'](_0x192c81['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3ec71b=>_0x3ec71b&&this['_editor']['model']['canEditAt'](_0x192c81['getRanges']())),this['_pendingAction']=null,_0xe7538a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xe7538a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xe7538a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xe7538a,'change:isDirty',()=>{_0xe7538a['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x369fdd{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x418cfd}=this['_config'];this['commentsListView']=new _0x418cfd(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',_0x6bc5e=>_0x6bc5e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x364c32,_0xdf4fe2)=>_0x364c32||!!_0xdf4fe2);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x485db8}=this['_config'],_0x1c9840=new _0x485db8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x377b0a=_0x1c9840['commentInputView'];return _0x1c9840['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x377b0a,'value',(_0x19ce55,_0x2ff64e,_0x1f9097)=>!!_0x1f9097||_0x19ce55&&!_0x2ff64e),_0x377b0a['on']('submit',(_0x16c620,_0x323912)=>{this['fire']('addComment',_0x323912),_0x377b0a['editor']['setData']('');}),_0x377b0a['on']('cancel',()=>this['focus']()),_0x377b0a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1c9840;}constructor(_0x1b2523,_0x5d5d6b,_0xf64e88,_0x86c2b4){super(_0x1b2523),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d5d6b['authoredAt']),this['bind']('authoredAt')['to'](_0x5d5d6b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5d5d6b,this['_localUser']=_0xf64e88,this['_config']=_0x86c2b4,_0x86c2b4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x5cc278=this['bindTemplate'],_0x1af1ec=[{'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']}},{'tag':'time','attributes':{'datetime':_0x5cc278['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5cc278['to']('authoredAt',_0x261fc5=>this['_config']['formatDateTime'](_0x261fc5))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x1af1ec['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xc1ea9b={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5cc278['if']('isActive','ck-suggestion-wrapper--active'),_0x5cc278['to']('type',_0x3ca020=>'ck-suggestion-'+_0x3ca020),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x1af1ec}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xc1ea9b['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0xc1ea9b;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x38e300,_0x126794,_0x32bbb2)=>{this['_descriptionElement']['innerHTML']=_0x32bbb2;});}['_createButton'](_0x17c2bb,_0x55154f,_0xc8ca02,_0x382d20,_0xaca245){const _0x87fa70=new _0x26bf4b(this['locale']);return _0x87fa70['set']({'label':_0x17c2bb,'icon':_0x55154f,'tooltip':!0x0,'tooltipPosition':_0xaca245}),_0x87fa70['extendTemplate']({'attributes':{'class':_0xc8ca02}}),_0x87fa70['on']('execute',()=>{this['fire'](_0x382d20,this['_model']['id']);}),_0x87fa70;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}constructor(_0x4f5800,_0x2e4b19,_0x204412,_0x575e22){super(_0x4f5800,_0x2e4b19,_0x204412,_0x575e22),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4d3434=>_0x4d3434&&_0x4d3434[0x0]?_0x4d3434[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x26e9ea,_0x16e174)=>{let _0x543ecd='';for(const _0x25f35c of _0x26e9ea)_0x543ecd+='<p>'+ds(_0x25f35c['content'],_0x25f35c['color'])+'</p>';return _0x16e174?_0x543ecd:_0x35fad7(_0x543ecd,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4f5800,'Accept\x20suggestion'),_0x2aefe4['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4f5800,'Discard\x20suggestion'),_0x2aefe4['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2416de(_0x4f5800,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0xd9df60,_0x58062a){let _0x21822c='';return _0x21822c+=_0xd9df60['split']('*')['map']((_0x331999,_0x1b2f72)=>_0x1b2f72%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x331999)+'</span>':us(_0x331999))['join'](''),_0x58062a&&(_0x21822c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x58062a['value']+'\x22\x20title=\x22'+_0x58062a['title']+'\x22></span>'),_0x21822c;}function us(_0x1ac556){const _0x43bfbc=document['createElement']('span');return _0x43bfbc['innerText']=_0x1ac556,_0x43bfbc['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0xf56dee{static get['requires'](){return[p,_0x2cd81b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x59d623,_0x351a30){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x35a846,_0x477f9f]of this['_handleControllerBuffer']){const _0x4c61f0=this['_suggestionToController']['has'](_0x35a846);_0x4c61f0||_0x477f9f?_0x4c61f0&&_0x477f9f&&this['_destroyController'](_0x35a846):this['_initializeController'](_0x35a846);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x59d623,_0x351a30);}['init'](){const _0x3f334a=this['editor'],_0x11620e=_0x3f334a['plugins']['get']('TrackChangesEditing'),_0x480a02=_0x3f334a['plugins']['get']('Annotations'),_0x3f78a1=_0x3f334a['plugins']['get']('EditorAnnotations'),_0x1cfe11=_0x3f334a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f78a1['addSourceCollector'](()=>{const _0xe53104=[];for(const [_0x43d40e,_0x5886e8]of Array['from'](this['_suggestionToController'])){const _0x475ceb=_0x43d40e['getAllAdjacentSuggestions'](),_0x2a15de=[];for(const _0x507ff2 of _0x475ceb){if(!_0x507ff2['isInContent'])continue;if(_0x507ff2['isMultiRange']){_0x2a15de['push'](..._0x507ff2['getRanges']());continue;}const _0x254ff2=_0x507ff2['getFirstRange']();if(_0x2a15de['length']>0x0){const _0x3ad7d3=_0x2a15de[0x0]['getJoined'](_0x254ff2);if(_0x3ad7d3){_0x2a15de[0x0]=_0x3ad7d3;continue;}}_0x2a15de['push'](_0x254ff2);}_0xe53104['push']([_0x5886e8['view'],_0x2a15de]);}return _0xe53104;}),this['listenTo'](_0x11620e,'suggestionLoaded',(_0x8dc879,_0x23be0d)=>{this['listenTo'](_0x23be0d,'change:previous',(_0x3233d8,_0x15be92,_0x1b1c9a,_0x10bf47)=>{_0x23be0d['isInContent']&&(null==_0x1b1c9a?(this['_updateController'](_0x10bf47['head']),this['_handleSuggestionControllerDelayed'](_0x23be0d,!0x1)):(this['_updateController'](_0x1b1c9a['head']),null==_0x10bf47&&this['_handleSuggestionControllerDelayed'](_0x23be0d,!0x0)));}),null!==_0x23be0d['previous']?this['_updateController'](_0x23be0d['head']):this['_handleSuggestionControllerDelayed'](_0x23be0d,!0x1);}),this['listenTo'](_0x11620e,'suggestionUnloaded',(_0xd08099,_0x4c1984,_0x3199f8)=>{this['stopListening'](_0x4c1984,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4c1984),this['_suggestionToController']['has'](_0x4c1984)&&this['_destroyController'](_0x4c1984),_0x3199f8&&this['_updateController'](_0x3199f8['head']);}),this['listenTo'](_0x11620e,'suggestionChanged',(_0x259aa0,_0x4d8452)=>{this['_updateController'](_0x4d8452);}),this['listenTo'](_0x480a02,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1cfe11,'addComment',(_0x538e95,{threadId:_0x298013,isFromAdapter:_0x744d6f})=>{if(_0x744d6f||!_0x11620e['hasSuggestion'](_0x298013))return;const _0x3a2e89=_0x11620e['getSuggestion'](_0x298013);this['_suggestionToController']['get'](_0x3a2e89)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1df5bb=this['editor']['plugins']['get']('Annotations'),_0x345eb2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5467a7=Array['from'](_0x1df5bb['activeAnnotations'],_0x220b9a=>_0x220b9a['innerView'])['filter'](_0x5991b2=>this['_viewToController']['has'](_0x5991b2)),_0xb8f9b3=[];for(const _0x54fe7d of _0x5467a7){const _0x48c1e4=this['_viewToController']['get'](_0x54fe7d)['model']['getAllAdjacentSuggestions']();_0xb8f9b3['push'](..._0x48c1e4['reduce']((_0x181f8d,_0x27f773)=>[..._0x181f8d,..._0x27f773['getMarkerNames']()],[]));}_0x345eb2['activeMarkers']=_0xb8f9b3;}['_addUIComponentsToFactory'](){const _0x4ef0b9=this['editor'],_0x4eda5d=_0x4ef0b9['locale'],_0xfd9792=o(_0x4eda5d,'Track\x20changes'),_0x5621bd=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0xfd9792,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4eda5d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4eda5d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4eda5d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4eda5d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x47ccf6 of _0x5621bd)if(ae(_0x47ccf6)){const _0x99333a=_0x4ef0b9['commands']['get'](_0x47ccf6['model']['commandName']);_0x47ccf6['model']['bind']('isOn','isEnabled')['to'](_0x99333a,'value','isEnabled');}_0x4ef0b9['ui']['componentFactory']['add']('trackChanges',_0x4a55b3=>this['_createToolbarButton'](_0x4a55b3,_0x5621bd,_0xfd9792)),_0x4ef0b9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4ea214=>this['_createMenuBarMenu'](_0x4ea214,_0x5621bd,_0xfd9792));}['_createToolbarButton'](_0x496500,_0x13cf68,_0x20c371){const _0x431226=zt(_0x496500,Zt),_0x3d9c62=this['editor']['commands']['get']('trackChanges');_0x431226['buttonView']['set']({'tooltip':_0x20c371,'label':_0x20c371,'icon':ie}),_0x431226['buttonView']['bind']('isOn')['to'](_0x3d9c62,'value'),_0x431226['buttonView']['on']('execute',()=>{_0x3d9c62['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x431226,_0x13cf68);const _0xe60b94=[];for(const _0x2de9a6 of _0x13cf68)ae(_0x2de9a6)&&_0xe60b94['push'](this['editor']['commands']['get'](_0x2de9a6['model']['commandName']));const _0x239532=_0x431226['buttonView'];return _0x239532['actionView']['unbind']('isEnabled'),_0x239532['arrowView']['unbind']('isEnabled'),_0x239532['actionView']['bind']('isEnabled')['to'](_0x3d9c62,'isEnabled'),_0x239532['arrowView']['bind']('isEnabled')['toMany'](_0xe60b94,'isEnabled',(..._0x5ec003)=>_0x5ec003['some'](_0x391f36=>_0x391f36)),_0x431226['on']('execute',_0x466e35=>{this['editor']['execute'](_0x466e35['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x431226;}['_createMenuBarMenu'](_0x5440f7,_0x231b61,_0x10b099){const _0x494d05=new Kt(_0x5440f7),_0x5984ff=this['editor']['commands']['get']('trackChanges');_0x494d05['buttonView']['set']({'label':_0x10b099,'icon':ie});const _0x528129=new Qt(_0x5440f7);for(const _0x3a0eb0 of _0x231b61){if('separator'==_0x3a0eb0['type']){_0x528129['items']['add'](new Jt(_0x5440f7));continue;}const _0x3e2892=new Xt(_0x5440f7,_0x494d05),_0x312391=new Yt(_0x5440f7),_0x48a4ad=_0x3a0eb0['model'];_0x312391['bind'](...Object['keys'](_0x48a4ad))['to'](_0x48a4ad),_0x312391['delegate']('execute')['to'](_0x494d05),_0x312391['on']('execute',()=>{this['editor']['execute'](_0x48a4ad['commandName']),this['editor']['editing']['view']['focus']();}),_0x3e2892['children']['add'](_0x312391),_0x528129['items']['add'](_0x3e2892);}return _0x494d05['bind']('isEnabled')['to'](_0x5984ff,'isEnabled'),_0x494d05['panelView']['children']['add'](_0x528129),_0x494d05;}['_initializeController'](_0x3e4224){const _0x2fd232=this['editor'],_0x4f8996=_0x2fd232['config'],_0x446cae=_0x2fd232['plugins']['get']('Annotations'),_0x5413be=_0x2fd232['plugins']['get']('CommentsRepository'),_0x443f66=_0x2fd232['plugins']['get']('EditorAnnotations'),_0x132b1f=_0x2fd232['plugins']['get'](_0x2cd81b)['me'],_0xe118a5=_0x4f8996['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x31e422,CommentThreadInputView:_0xbb739e}=_0x2fd232['plugins']['get']('CommentsUI');let _0x5a1d94,_0x3f6a12;this['_annotationViews']['has'](_0x3e4224['id'])?(_0x3f6a12=this['_annotationViews']['get'](_0x3e4224['id']),_0x5a1d94=_0x3f6a12['mainView']):(_0x5a1d94=new _0xe118a5(_0x2fd232['locale'],_0x3e4224,_0x132b1f,{'disableComments':this['_disableComments'],'editorConfig':_0x4f8996['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4f8996['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4f8996['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4f8996['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x383335(_0x4f8996['get']('locale')),'CommentView':_0x4f8996['get']('comments')['CommentView'],'CommentsListView':_0x31e422,'CommentThreadInputView':_0xbb739e}),_0x5a1d94['acceptButton']['on']('execute',()=>{_0x2fd232['editing']['view']['focus']();}),_0x5a1d94['discardButton']['on']('execute',()=>{_0x2fd232['editing']['view']['focus']();}),_0x3f6a12=_0x446cae['createAnnotationView'](this['editor']['locale'],_0x5a1d94),_0x3f6a12['bind']('isDirty')['to'](_0x5a1d94,'isDirty'),_0x3f6a12['bind']('length')['to'](_0x5a1d94),_0x3f6a12['bind']('type')['to'](_0x5a1d94,'type',_0x138cbe=>'suggestion-'+_0x138cbe),this['_annotationViews']['set'](_0x3e4224['id'],_0x3f6a12));const _0x42064f=_0x5413be['createCommentThreadController'](_0x3e4224['commentThread'],_0x5a1d94),_0x4ab8e3=new oe(_0x2fd232,_0x3e4224,_0x5a1d94,_0x42064f),_0x2cc52a=_0x3e4224['getAllAdjacentSuggestions']()['filter'](_0x2d363a=>_0x2d363a['isInContent']);_0x5a1d94['descriptionParts']=_0x2fd232['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x2cc52a),this['_suggestionToController']['set'](_0x3e4224,_0x4ab8e3),this['_viewToController']['set'](_0x5a1d94,_0x4ab8e3);const _0x375f4b=_0x446cae['createAnnotation']({'view':_0x3f6a12,'target':()=>{const _0x20c042=[],_0xc2f6b5=_0x3e4224['getAllAdjacentSuggestions']()['filter'](_0x56c3e9=>_0x56c3e9['isInContent']);for(const _0x50c3f4 of _0xc2f6b5)_0x20c042['push'](..._0x50c3f4['getMarkers']());return _0xe5acff(_0x2fd232['editing'],_0x20c042);},'type':()=>'suggestion-'+_0x4ab8e3['view']['type']});_0x5413be['_bindAnnotationToEditors'](_0x5a1d94,_0x375f4b),_0x446cae['add'](_0x375f4b),_0x443f66['registerAnnotation'](_0x375f4b);}['_destroyController'](_0x38e1a8){const _0x2a768d=this['editor']['plugins']['get']('CommentsRepository'),_0x592aea=this['editor']['plugins']['get']('Annotations'),_0x557e67=this['_suggestionToController']['get'](_0x38e1a8),_0x2a8301=_0x557e67['view'],_0xd119c1=_0x592aea['getByInnerView'](_0x2a8301);_0x2a768d['_unbindEditors'](_0x2a8301),_0xd119c1&&_0x592aea['remove'](_0xd119c1),this['_suggestionToController']['delete'](_0x38e1a8),this['_viewToController']['delete'](_0x2a8301),_0x557e67['destroy']();}['_updateController'](_0x21d64e){if(!_0x21d64e['isInContent']||!this['_suggestionToController']['has'](_0x21d64e))return;const _0x11cca4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d0825=this['_suggestionToController']['get'](_0x21d64e),_0x134281=_0x21d64e['getAllAdjacentSuggestions']();_0x2d0825['view']['descriptionParts']=_0x11cca4['_descriptionFactory']['getDescriptions'](_0x134281);}['destroy'](){for(const _0x529c71 of this['_suggestionToController']['keys']())this['_destroyController'](_0x529c71);for(const _0x4a6ede of this['_annotationViews']['values']())_0x4a6ede['mainView']['destroy']();super['destroy']();}constructor(_0x55ae5b){super(_0x55ae5b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5085d5=this['editor']['config'];_0x5085d5['define']('trackChanges.SuggestionThreadView',ne),_0x5085d5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5085d5['get']('trackChanges.disableComments');}}function ae(_0x54cd92){return'model'in _0x54cd92;}class k extends _0xf56dee{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2ba4f4){this['editor']['plugins']['get'](p)['adapter']=_0x2ba4f4;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xf8f15){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xf8f15);}['getSuggestions']({skipNotAttached:_0x2c7473=!0x1,toJSON:_0x411f38=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2c7473,'toJSON':_0x411f38});}['getSuggestion'](_0x401218){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x401218);}}const T=['Pagination'];class P extends _0xf56dee{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x25552f=this['editor'];if(_0x25552f['config']['define']('trackChangesData.editorCreator',_0x2d19f8=>{const _0x58c890=_0x25552f['model']['document']['getRootNames']()['reduce']((_0x1b218b,_0x215f3f)=>(_0x1b218b[_0x215f3f]='',_0x1b218b),{});return _0x25552f['constructor']['create'](_0x58c890,_0x2d19f8);}),'function'!=typeof _0x25552f['config']['get']('trackChangesData')['editorCreator'])throw new _0x4d5db7('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x32b6c8){return N(this['editor'],!0x0,_0x32b6c8);}['getDataWithDiscardedSuggestions'](_0x3ef1c7){return N(this['editor'],!0x1,_0x3ef1c7);}}class D extends _0xf56dee{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x5b2ec8){super(_0x5b2ec8),this['result']='end';}}function v(_0x56349b){return void 0x0!==_0x56349b['getRootsAttributes'];}async function N(_0x1ae1e6,_0x407acc,_0x42f6d3){const _0x1fea19=_0x2e858b(_0x1ae1e6,T);_0x1fea19['plugins']['push'](p,D),_0x1fea19['rootsAttributes']=v(_0x1ae1e6)?_0x1ae1e6['getRootsAttributes']():void 0x0;const _0x3511b6=document['createDocumentFragment'](),_0x3e6f64=_0x1ae1e6['config']['get']('trackChangesData')['editorCreator'],_0x31290c=await _0x3e6f64(_0x1fea19,()=>function(_0x3e8acc){const _0xf7263a=document['createElement']('div');return _0x3e8acc['appendChild'](_0xf7263a),_0xf7263a;}(_0x3511b6));!function(_0x1c1251,_0x2f0e92){const _0x4ab5ad=_0x1c1251['model']['document']['getRootNames']()['reduce']((_0x42a5c0,_0x41ad6d)=>(_0x42a5c0[_0x41ad6d]=_0x1c1251['data']['get']({'rootName':_0x41ad6d}),_0x42a5c0),{}),_0x39eed6=_0x1c1251['plugins']['get']('Users')['users']['map'](_0xbb6db9=>({'id':_0xbb6db9['id'],'name':_0xbb6db9['name']})),_0x2c7784=_0x1c1251['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5d508e=_0x2f0e92['plugins']['get']('Users'),_0x1c3b92=_0x2f0e92['plugins']['get']('TrackChangesEditing');for(const _0x270dc5 of _0x39eed6)_0x5d508e['getUser'](_0x270dc5['id'])||_0x5d508e['addUser'](_0x270dc5);_0x5d508e['me']||_0x5d508e['useAnonymousUser']();for(const _0x118103 of _0x2c7784)_0x1c3b92['addSuggestionData'](_0x118103);_0x2f0e92['data']['set'](_0x4ab5ad);}(_0x1ae1e6,_0x31290c),_0x31290c['execute'](_0x407acc?'acceptAllSuggestions':'discardAllSuggestions');const _0x2177a3=v(_0x31290c)?_0x31290c['getFullData'](_0x42f6d3):_0x31290c['data']['get'](_0x42f6d3);return await _0x31290c['destroy'](),_0x2177a3;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x43660f,PendingActions as _0x21020d,icons as _0x1edff3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x148f6c,ObservableMixin as _0x4f1937,uid as _0x461740,insertToPriorityArray as _0x5880de,priorities as _0x43c881,logWarning as _0x4941fa,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1bb9a4,View as _0x1bd18e,ButtonView as _0x4fc6e1,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x380c8c,hashObject as _0x2f13d0,surroundingMarkersDetector as _0xc5ef19,trimHtml as _0x45699f,UserView as _0x4b67e2,getDateTimeFormatter as _0x2064fc,getAllMarkersDomElementsSorted as _0x2ba4da,sanitizeEditorConfig as _0x37f701}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x199b7a,LiveRange as _0x30a6a3,LivePosition as _0x41f1a4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2b9a9f,toWidget as _0x19342a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3d9419,set as _0xb6e950,isEqual as _0x11601a,unset as _0x3fb759,omit as Bt}from'lodash-es';import{Delete as _0x5e5ec8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x45b63c,ShiftEnter as _0x27d317}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x4d1dd7 of this['editor']['commands']['commands']())_0x4d1dd7['affectsData']&&!this['_enabledCommands']['has'](_0x4d1dd7)&&_0x4d1dd7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x92a08b of this['editor']['commands']['commands']())_0x92a08b['affectsData']&&!this['_enabledCommands']['has'](_0x92a08b)&&_0x92a08b['clearForceDisabled']('TrackChangesCommand');}constructor(_0x3c80a9,_0x477c4e){super(_0x3c80a9),this['_enabledCommands']=_0x477c4e,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x48e398){const _0x2595a7=this['_suggestions']['get'](_0x48e398);if(!_0x2595a7)throw new _0x148f6c('track-changes-accept-suggestion-not-found',this);const _0x186b36=_0x2595a7['getRanges']();this['editor']['model']['canEditAt'](_0x186b36)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2595a7);}constructor(_0x4d34f3,_0x5f5daf){super(_0x4d34f3),this['_suggestions']=_0x5f5daf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2e4437){const _0x405a9f=this['_suggestions']['get'](_0x2e4437);if(!_0x405a9f)throw new _0x148f6c('track-changes-discard-suggestion-not-found',this);const _0x1b1a4c=_0x405a9f['getRanges']();this['editor']['model']['canEditAt'](_0x1b1a4c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x405a9f);}constructor(_0x4125c2,_0x460a9e){super(_0x4125c2),this['_suggestions']=_0x460a9e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x1005bc){return _0x1005bc['sort']((_0x20f669,_0x5d356f)=>'deletion'==_0x20f669['type']&&'deletion'!=_0x5d356f['type']?-0x1:'deletion'!=_0x20f669['type']&&'deletion'==_0x5d356f['type']?0x1:0x0);}function to(_0x427b56,_0x398a35){let _0x3d404c,_0x31b29d=0x0;const _0x21cf53=[],_0xeaf549=_0x398a35['schema'];for(;_0x31b29d<_0x427b56['length'];){const _0x50f349=_0x427b56[_0x31b29d],_0x570211=_0x427b56[_0x31b29d+0x1];_0x3d404c||(_0x3d404c=_0x398a35['createPositionBefore'](_0x50f349)),co(_0x398a35,_0x50f349,_0x570211)||(_0x21cf53['push'](_0x398a35['createRange'](_0x3d404c,_0xeaf549['isObject'](_0x50f349)?_0x398a35['createPositionAfter'](_0x50f349):_0x398a35['createPositionAt'](_0x50f349,'end'))),_0x3d404c=null),_0x31b29d++;}return _0x21cf53;}function co(_0x33f6dd,_0x22130b,_0x847858){if(!_0x847858)return!0x1;const _0xc041cd=_0x33f6dd['createPositionAfter'](_0x22130b),_0xd2784c=_0x33f6dd['createPositionBefore'](_0x847858);return _0xc041cd['isTouching'](_0xd2784c);}function rs(_0x411ba3,_0x18c329,_0x179c20){for(;_0x179c20['length'];){const _0x5d5969=_0x179c20['splice'](0x0,0x64);_0x411ba3['change'](()=>{for(const _0x3e0007 of _0x5d5969)_0x3e0007['isInContent']&&_0x18c329['execute'](_0x3e0007['id']);});}}class x extends ts{['refresh'](){const _0x279a32=Array['from'](this['_suggestions']['values']())['some'](_0x1fd4f5=>_0x1fd4f5['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x279a32;}['execute'](){const _0x3302ec=ss(Array['from'](this['_suggestions']['values']()));for(const _0x38200d of _0x3302ec){const _0x72a6a9=_0x38200d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x72a6a9))return;}rs(this['editor']['model'],this['_command'],_0x3302ec);}constructor(_0x4c1474,_0x5e7565,_0x5e060d){super(_0x4c1474),this['_command']=_0x5e7565,this['_suggestions']=_0x5e060d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x20e52d=this['editor']['model']['document']['selection'],_0x2c8e41=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1ff0fa,_0x15b3ce){const _0x1b3cbf=Array['from'](_0x1ff0fa['getRanges']()),_0x3c1e2a=new Set();for(const _0x2f3327 of _0x15b3ce)if(_0x2f3327['isInContent']){for(const _0x163670 of _0x1b3cbf)for(const _0x1cecd6 of _0x2f3327['getRanges']())(_0x163670['isIntersecting'](_0x1cecd6)||_0x1ff0fa['isCollapsed']&&!_0x2f3327['isMultiRange']&&_0x2f3327['next']&&_0x1cecd6['end']['isTouching'](_0x163670['start']))&&_0x3c1e2a['add'](_0x2f3327);}return _0x3c1e2a;}(_0x20e52d,_0x2c8e41),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x232483=ss(Array['from'](this['_selectedSuggestions']));for(const _0x317d05 of _0x232483){const _0x4b50d=_0x317d05['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b50d))return;}rs(this['editor']['model'],this['_command'],_0x232483);}constructor(_0x15f99c,_0x534ec3,_0x4f1de1){super(_0x15f99c),this['_command']=_0x534ec3,this['_suggestions']=_0x4f1de1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x4f1937(){get['head'](){let _0x567605=this;for(;_0x567605['previous'];)_0x567605=_0x567605['previous'];return _0x567605;}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'](_0x43eff5){this['_markerNames']['add'](_0x43eff5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2e175d=>this['_model']['markers']['get'](_0x2e175d))['filter'](_0x24a580=>_0x24a580);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x48e91a=>{for(const _0x59e866 of this['getMarkers']())_0x48e91a['removeMarker'](_0x59e866);}),this['_markerNames']['clear']();}['removeMarker'](_0x2e9290){this['_model']['change'](_0x14d3e9=>{_0x14d3e9['removeMarker'](_0x2e9290);}),this['_markerNames']['delete'](_0x2e9290);}['addRange'](_0x43e633){const _0x41115f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x41115f),this['_model']['change'](_0x48e72a=>{_0x48e72a['addMarker'](_0x41115f,{'range':_0x43e633,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x29347e){for(const _0xe876cc of this['getRanges']())if(_0xe876cc['isIntersecting'](_0x29347e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3b0680=>_0x3b0680['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xeb46ae,_0x2781aa)=>[..._0xeb46ae,..._0x2781aa['getItems']()],[]);}['getFirstRange'](){var _0xe13a4b;return(null===(_0xe13a4b=this['getFirstMarker']())||void 0x0===_0xe13a4b?void 0x0:_0xe13a4b['getRange']())||null;}['getContainedElement'](){const _0x2847db=this['getRanges']();if(0x1!=_0x2847db['length'])return null;const _0x56eb5f=_0x2847db[0x0],_0x277292=_0x56eb5f['start']['nodeAfter'],_0x2bba56=_0x56eb5f['end']['nodeBefore'];return _0x277292 instanceof _0x199b7a?_0x277292!=_0x2bba56?null:_0x277292: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 _0x29b44f=[];let _0x44fe25=this['head'];for(;_0x44fe25;)_0x29b44f['push'](_0x44fe25),_0x44fe25=_0x44fe25['next'];return _0x29b44f;}['setAttribute'](_0xa2dfa,_0x56a69f){const _0x128b44=_0x3d9419(this['attributes']);_0xb6e950(_0x128b44,_0xa2dfa,_0x56a69f),_0x11601a(_0x128b44,this['attributes'])||(this['attributes']=_0x128b44,this['_onAttributesChange'](_0x128b44));}['removeAttribute'](_0x591c52){const _0x110710=_0x3d9419(this['attributes']);_0x3fb759(_0x110710,_0x591c52),_0x11601a(_0x110710,this['attributes'])||(this['attributes']=_0x110710,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 _0x461740()['substr'](0x1,0x5);}constructor(_0x52321d,_0x6dbf25){super(),this['_isDataLoaded']=!0x1,this['id']=_0x6dbf25['id'],this['type']=_0x6dbf25['type'],this['subType']=_0x6dbf25['subType']||null,this['author']=_0x6dbf25['author'],this['creator']=_0x6dbf25['creator']||_0x6dbf25['author'],this['isExternal']=Boolean(_0x6dbf25['attributes']&&_0x6dbf25['attributes']['@external']),this['data']=null,this['_model']=_0x52321d,this['_onAccept']=_0x6dbf25['onAccept'],this['_onDiscard']=_0x6dbf25['onDiscard'],this['_onAttributesChange']=_0x6dbf25['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6dbf25['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0xb05b70,_0x393a95,_0x29f75c){const t=_0xb05b70['t'];switch(_0x393a95){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'*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',_0x29f75c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x29f75c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x29f75c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x29f75c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x29f75c);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',_0x29f75c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x29f75c);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x29f75c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x29f75c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x29f75c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x29f75c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x29f75c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x29f75c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x29f75c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x29f75c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x29f75c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x29f75c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x29f75c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x29f75c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x29f75c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x29f75c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x29f75c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x29f75c);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'},_0x29f75c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x29f75c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x29f75c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x29f75c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x29f75c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x29f75c);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'},_0x29f75c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x29f75c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x29f75c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x29f75c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x29f75c);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x29f75c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x29f75c);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'},_0x29f75c);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x29f75c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x29f75c);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'},_0x29f75c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x29f75c);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'},_0x29f75c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x29f75c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x29f75c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x29f75c);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x29f75c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x393a95;}}class f{['getDescriptions'](_0x4fa130){const _0x5d9fee=[],_0x379eb6=new Set(),_0x663476=new Set();for(let _0x1bfceb=0x0;_0x1bfceb<_0x4fa130['length'];_0x1bfceb++){const _0x492c66=_0x4fa130[_0x1bfceb];if(!_0x492c66['isInContent'])continue;const _0x56c1a0=this['_handleCustomCallbackDescription'](_0x492c66);if(_0x56c1a0){if(null!=_0x492c66['subType']){if(_0x379eb6['has'](_0x492c66['subType']))continue;_0x379eb6['add'](_0x492c66['subType']);}_0x5d9fee['push'](_0x56c1a0);}else{if('attribute'!=_0x492c66['type'])'insertion'!=_0x492c66['type']&&'deletion'!=_0x492c66['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5d9fee,_0x492c66,_0x4fa130[_0x1bfceb+0x1]);else{const _0x3cd666=_0x492c66['data']['key'];if(_0x663476['has'](_0x3cd666))continue;_0x663476['add'](_0x492c66['data']['key']),_0x3cd666==m?this['_handleRenameSuggestionDescription'](_0x5d9fee,_0x492c66):this['_handleAttributeSuggestionDescription'](_0x5d9fee,_0x492c66);}}}return this['_resolveDescriptionItems'](_0x5d9fee);}['registerDescriptionCallback'](_0x570b58){this['_customCallbacks']['push'](_0x570b58);}['registerElementLabel'](_0x570b89,_0x274428,_0xe06ccc=_0x43c881['normal']){'function'==typeof _0x570b89?_0x5880de(this['_itemLabelsCallbacks'],{'matchingCallback':_0x570b89,'label':_0x274428,'priority':_0xe06ccc}):this['_itemLabels']['set'](_0x570b89,_0x274428);}['registerAttributeLabel'](_0x2eaaf6,_0x3258d0){this['_attributeLabels']['set'](_0x2eaaf6,_0x3258d0);}['getItemLabel'](_0x3f5018,_0x16e4a8=0x1){let _0x35bb9b;for(const _0x5e16c0 of this['_itemLabelsCallbacks'])if(_0x5e16c0['matchingCallback'](_0x3f5018)){_0x35bb9b=_0x5e16c0['label'];break;}return _0x35bb9b||(_0x35bb9b=this['_itemLabels']['get'](_0x3f5018['name'])),_0x35bb9b?_0x35bb9b(_0x16e4a8):0x1!==_0x16e4a8?_0x16e4a8+'\x20'+_0x3f5018['name']+'s':''+_0x3f5018['name'];}['_addDescriptionItems'](_0x2a1704,_0x1f7a56){const _0x58a796=_0x1f7a56['getFirstRange']()['getWalker'](),_0x3abd39='insertion'==_0x1f7a56['type']?'add':'remove';for(const _0x1d809c of _0x58a796){const _0x1a6949=_0x1d809c['item'],_0x48417b=_0x2a1704[_0x2a1704['length']-0x1];if(_0x1a6949['is']('$textProxy'))_0x48417b&&_0x48417b['type']['indexOf']('Container')>-0x1&&_0x2a1704['pop'](),_0x48417b&&'text'==_0x48417b['type']?_0x48417b[_0x3abd39]+=_0x1a6949['data']:_0x2a1704['push']({'type':'text','add':'add'==_0x3abd39?_0x1a6949['data']:'','remove':'remove'==_0x3abd39?_0x1a6949['data']:''});else{if(this['_schema']['isObject'](_0x1a6949)){const _0x39f21c=_0x1a6949;if(_0x48417b&&_0x48417b['type']['indexOf']('Container')>-0x1&&_0x2a1704['pop'](),'elementEnd'==_0x1d809c['type'])continue;_0x48417b&&_0x48417b['type']==_0x3abd39+'Object'&&_0x48417b['element']['name']==_0x39f21c['name']?_0x48417b['quantity']++:_0x2a1704['push']({'type':_0x3abd39+'Object','element':_0x39f21c,'quantity':0x1}),_0x58a796['skip'](_0x2f24a0=>!('elementEnd'==_0x2f24a0['type']&&_0x2f24a0['item']==_0x1a6949));}else{if(this['_schema']['checkChild'](_0x1a6949,'$text')||_0x1a6949['is']('element','softBreak')){const _0x590414=_0x1a6949;if('add'==_0x3abd39&&'elementStart'==_0x1d809c['type']||'remove'==_0x3abd39&&'elementEnd'==_0x1d809c['type'])continue;if(_0x48417b&&-0x1==_0x48417b['type']['indexOf']('Container')){'text'==_0x48417b['type']&&(_0x48417b[_0x3abd39]+='\x0a');continue;}let _0x586456;if(_0x586456='add'==_0x3abd39?_0x590414['nextSibling']&&!this['_schema']['isObject'](_0x590414['nextSibling'])?_0x590414['nextSibling']:null:_0x590414['previousSibling']&&!this['_schema']['isObject'](_0x590414['previousSibling'])?_0x590414['previousSibling']:null,_0x590414['isEmpty']||_0x586456&&_0x586456['isEmpty']){const _0x59e6da=_0x586456&&_0x586456['isEmpty']?_0x586456:_0x590414;_0x48417b&&_0x48417b['type']==_0x3abd39+'EmptyContainer'&&_0x48417b['element']['name']==_0x59e6da['name']?_0x48417b['quantity']++:_0x2a1704['push']({'type':_0x3abd39+'EmptyContainer','element':_0x59e6da,'quantity':0x1});}else _0x2a1704['push']({'type':_0x3abd39+'Container','element':_0x590414});}}}}}['_resolveDescriptionItems'](_0x5b8c34){const _0x54d98f=this['_locale'],_0x4c5133=[],_0x1dfc36=[],_0x489b0a=[];for(const _0x82be36 of _0x5b8c34)switch(_0x82be36['type']){case'text':if(_0x82be36['add']=_0x82be36['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x82be36['remove']=_0x82be36['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x82be36['add']&&''!=_0x82be36['remove']){_0x4c5133['push']({'type':'replace','content':o(_0x54d98f,'REPLACE_TEXT',['\x22'+_0x82be36['remove']+'\x22','\x22'+_0x82be36['add']+'\x22'])});continue;}if(null!=_0x82be36['add']['match'](/^ +$/)){_0x4c5133['push']({'type':'insertion','content':o(_0x54d98f,'*Insert:*\x20%0',o(_0x54d98f,'ELEMENT_SPACE',_0x82be36['add']['length']))});continue;}if(null!=_0x82be36['remove']['match'](/^ +$/)){_0x4c5133['push']({'type':'deletion','content':o(_0x54d98f,'*Remove:*\x20%0',o(_0x54d98f,'ELEMENT_SPACE',_0x82be36['remove']['length']))});continue;}if(''!=_0x82be36['add']){_0x4c5133['push']({'type':'insertion','content':o(_0x54d98f,'*Insert:*\x20%0','\x22'+_0x82be36['add']+'\x22')});continue;}_0x4c5133['push']({'type':'deletion','content':o(_0x54d98f,'*Remove:*\x20%0','\x22'+_0x82be36['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c5133['push']({'type':'insertion','content':o(_0x54d98f,'*Insert:*\x20%0',this['getItemLabel'](_0x82be36['element'],_0x82be36['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c5133['push']({'type':'deletion','content':o(_0x54d98f,'*Remove:*\x20%0',this['getItemLabel'](_0x82be36['element'],_0x82be36['quantity']))});continue;case'addContainer':_0x4c5133['push']({'type':'insertion','content':o(_0x54d98f,'*Split:*\x20%0',this['getItemLabel'](_0x82be36['element'],_0x82be36['quantity']))});continue;case'removeContainer':_0x4c5133['push']({'type':'deletion','content':o(_0x54d98f,'*Merge:*\x20%0',this['getItemLabel'](_0x82be36['element'],_0x82be36['quantity']))});continue;case'addFormat':_0x1dfc36['push'](_0x82be36['key']);continue;case'removeFormat':_0x489b0a['push'](_0x82be36['key']);continue;default:_0x4c5133['push'](_0x82be36);}if(_0x1dfc36['length']){const _0x1ce259=_0x1dfc36['map'](_0x4cd168=>this['_attributeLabels']['has'](_0x4cd168)?this['_attributeLabels']['get'](_0x4cd168):_0x4cd168)['join'](',\x20');_0x4c5133['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1ce259)});}if(_0x489b0a['length']){const _0x1a5844=_0x489b0a['map'](_0x2638af=>this['_attributeLabels']['has'](_0x2638af)?this['_attributeLabels']['get'](_0x2638af):_0x2638af)['join'](',\x20');_0x4c5133['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1a5844)});}return _0x4c5133;}['_handleCustomCallbackDescription'](_0x1cc5fe){for(const _0x484e9c of this['_customCallbacks']){const _0x5a347f=_0x484e9c(_0x1cc5fe);if(_0x5a347f&&'type'in _0x5a347f)return _0x5a347f;}}['_handleAttributeSuggestionDescription'](_0x2c5c07,_0x18e00e){const _0xf0e7b5=_0x18e00e['data'],_0x49fc8d=void 0x0===_0xf0e7b5['newValue']?'removeFormat':'addFormat';_0x2c5c07['push']({'type':_0x49fc8d,'key':_0xf0e7b5['key']});}['_handleRenameSuggestionDescription'](_0x35e27f,_0x304b84){_0x35e27f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x304b84['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x12f761,_0x481505,_0x30abd9){if(this['_addDescriptionItems'](_0x12f761,_0x481505),_0x30abd9&&_0x30abd9['getFirstRange']()&&!_0x481505['getFirstRange']()['end']['isEqual'](_0x30abd9['getFirstRange']()['start'])){const _0x47204e=_0x12f761[_0x12f761['length']-0x1],_0x40bb3a='insertion'==_0x481505['type']?'add':'remove';_0x47204e&&'text'==_0x47204e['type']&&(_0x47204e[_0x40bb3a]+='\x0a');}}constructor(_0x560be7,_0x307913){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x560be7,this['_locale']=_0x307913;}}class E extends _0x43660f{['afterInit'](){const _0x52fe09=this['editor'],_0x52726d=_0x52fe09['plugins']['get']('TrackChangesEditing');_0x52fe09['commands']['get']('showAIAssistant')&&_0x52726d['enableCommand']('showAIAssistant');}}class V extends _0x43660f{['afterInit'](){const _0x4b1082=this['editor'],_0x229ae6=_0x4b1082['locale'];if(!_0x4b1082['plugins']['has']('AlignmentEditing'))return;const _0x45bd36=_0x4b1082['plugins']['get']('TrackChangesEditing');_0x45bd36['_enableDefaultAttributesIntegration']('alignment',[],['alignment']),_0x45bd36['_descriptionFactory']['registerAttributeLabel']('alignment',o(_0x229ae6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x319d03=this['editor'],_0x29bebc=_0x319d03['locale'];_0x319d03['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x303de8=>{if('formatBlock'!=_0x303de8['type'])return;const {data:_0x268b80}=_0x303de8;if(_0x268b80&&'alignment'==_0x268b80['commandName']){const _0x5b13cf=_0x268b80['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x29bebc,'*Format:*\x20%0',function(_0x1abdbb){switch(_0x1abdbb){case'left':return o(_0x29bebc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x29bebc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x29bebc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x29bebc,'FORMAT_JUSTIFY_TEXT');}}(_0x5b13cf))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x43660f{['afterInit'](){const _0x4417a8=this['editor'],_0x266b99=_0x4417a8['plugins']['get']('TrackChangesEditing'),_0x3fe293=_0x4417a8['locale'];for(const _0x57934a of ti){if(!_0x4417a8['plugins']['has'](_0x57934a))continue;const _0x22d554=_0x57934a['slice'](0x0,-0x7)['toLowerCase'](),_0x29ab8c='FORMAT_'+_0x22d554['toUpperCase']();_0x266b99['_enableDefaultAttributesIntegration'](_0x22d554,[_0x22d554]),_0x266b99['_descriptionFactory']['registerAttributeLabel'](_0x22d554,o(_0x3fe293,_0x29ab8c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d1ca1=this['editor'],_0x58cc4f=_0x5d1ca1['locale'],_0x5c2086=_0x5d1ca1['plugins']['get']('TrackChangesEditing');function _0x1d713c(_0x3f4156,_0x7cc3d3){_0x5c2086['_descriptionFactory']['registerDescriptionCallback'](_0x341bef=>{if('formatInline'!=_0x341bef['type'])return;const {data:_0x48f45e}=_0x341bef;return _0x48f45e&&_0x48f45e['commandName']===_0x3f4156?_0x48f45e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58cc4f,'*Format:*\x20%0',_0x7cc3d3)}:{'type':'format','content':o(_0x58cc4f,'*Remove\x20format:*\x20%0',_0x7cc3d3)}:void 0x0;});}_0x1d713c('bold',o(_0x58cc4f,'FORMAT_BOLD')),_0x1d713c('italic',o(_0x58cc4f,'FORMAT_ITALIC')),_0x1d713c('underline',o(_0x58cc4f,'FORMAT_UNDERLINE')),_0x1d713c('code',o(_0x58cc4f,'FORMAT_CODE')),_0x1d713c('strikethrough',o(_0x58cc4f,'FORMAT_STRIKETHROUGH')),_0x1d713c('subscript',o(_0x58cc4f,'FORMAT_SUBSCRIPT')),_0x1d713c('superscript',o(_0x58cc4f,'FORMAT_SUPERSCRIPT'));}}class O extends _0x43660f{['afterInit'](){const _0x51e7f5=this['editor'],_0x18d8c7=_0x51e7f5['locale'];if(!_0x51e7f5['plugins']['has']('BlockQuoteEditing'))return;const _0x4f5a7c=_0x51e7f5['plugins']['get']('TrackChangesEditing'),_0x385600=this['editor']['commands']['get']('blockQuote');_0x4f5a7c['enableCommand']('blockQuote',(_0x424cef,_0x50b96c={})=>{const _0x122378=this['editor']['model']['document']['selection'],_0x3148a1=_0x50b96c&&void 0x0!==_0x50b96c['forceValue']?_0x50b96c['forceValue']:!_0x385600['value'];let _0x44f077=[];if(_0x3148a1){const _0x1380bf=Array['from'](_0x122378['getSelectedBlocks']())['filter'](_0x2e70b2=>oo(_0x2e70b2)||function(_0x2e92ca,_0x2f8446){const _0x46240d=_0x2f8446['checkChild'](_0x2e92ca['parent'],'blockQuote'),_0x49ad7c=_0x2f8446['checkChild'](['$root','blockQuote'],_0x2e92ca);return _0x46240d&&_0x49ad7c;}(_0x2e70b2,this['editor']['model']['schema']));_0x44f077=to(_0x1380bf,_0x51e7f5['model']);}else{const _0x5e2429=Array['from'](_0x122378['getSelectedBlocks']())['filter'](_0x1e0245=>oo(_0x1e0245));_0x44f077=to(_0x5e2429,_0x51e7f5['model']);}_0x51e7f5['model']['change'](()=>{for(const _0x81eb52 of _0x44f077)_0x4f5a7c['markBlockFormat'](_0x81eb52,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3148a1}]});});}),_0x4f5a7c['_descriptionFactory']['registerDescriptionCallback'](_0x4a06f7=>{const {data:_0x3579cd}=_0x4a06f7;if(_0x3579cd&&'blockQuote'==_0x3579cd['commandName']){const _0x866ff4=o(_0x18d8c7,'ELEMENT_BLOCK_QUOTE');return _0x3579cd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18d8c7,'*Set\x20format:*\x20%0',_0x866ff4)}:{'type':'format','content':o(_0x18d8c7,'*Remove\x20format:*\x20%0',_0x866ff4)};}});}}function oo(_0x202c1d){return'blockQuote'==_0x202c1d['parent']['name'];}class G extends _0x43660f{['afterInit'](){const _0x4e18ad=this['editor'];_0x4e18ad['plugins']['has']('CaseChange')&&(_0x4e18ad['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4e18ad['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4e18ad['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x43660f{['afterInit'](){const _0x5e001a=this['editor'];_0x5e001a['commands']['get']('ckbox')&&_0x5e001a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x43660f{['afterInit'](){const _0x11c870=this['editor'];if(!_0x11c870['plugins']['has']('CodeBlock'))return;const _0x21074a=_0x11c870['plugins']['get']('TrackChangesEditing'),_0x481acc=_0x11c870['locale'],_0x48aa6d=_0x11c870['config']['get']('codeBlock')['languages'],_0x40e784=_0x11c870['commands']['get']('codeBlock');_0x21074a['enableCommand']('indentCodeBlock'),_0x21074a['enableCommand']('outdentCodeBlock'),_0x21074a['enableCommand']('codeBlock',(_0x5d1ec1,_0x21c945={})=>{const _0x280845=_0x11c870['model'],_0x5656e2=_0x11c870['model']['document']['selection'],_0x2c0c63=_0x21c945&&void 0x0!==_0x21c945['forceValue']?_0x21c945['forceValue']:!_0x40e784['value'];let _0x20b191;_0x21c945['language']||(_0x21c945['language']=_0x48aa6d[0x0]['language']),_0x20b191=_0x2c0c63?Array['from'](_0x5656e2['getSelectedBlocks']())['filter'](_0x2b0c3e=>eo(_0x2b0c3e)||function(_0x24ded0,_0x1af139){if(_0x24ded0['is']('rootElement')||_0x1af139['isLimit'](_0x24ded0))return!0x1;return _0x1af139['checkChild'](_0x24ded0['parent'],'codeBlock');}(_0x2b0c3e,_0x280845['schema'])):Array['from'](_0x5656e2['getSelectedBlocks']())['filter'](_0x16dde8=>eo(_0x16dde8));const _0x20753d=to(_0x20b191,_0x280845);_0x280845['change'](()=>{for(const _0x1ea860 of _0x20753d)_0x21074a['markBlockFormat'](_0x1ea860,{'commandName':'codeBlock','commandParams':[{..._0x21c945,'forceValue':_0x2c0c63}],'formatGroupId':'blockName'});});}),(_0x21074a['_descriptionFactory']['registerElementLabel']('codeBlock',_0x368a1d=>o(_0x481acc,'ELEMENT_CODE_BLOCK',_0x368a1d)),_0x21074a['_descriptionFactory']['registerDescriptionCallback'](_0x56ed49=>{if('formatBlock'!=_0x56ed49['type'])return;const _0x1bdb7d=_0x481acc['t'],{data:_0x4621ed}=_0x56ed49;if(!_0x4621ed||'codeBlock'!=_0x4621ed['commandName'])return;const _0x7521e9=_0x4621ed['commandParams'][0x0]['language'],_0x7164e0=_0x1bdb7d(_0x48aa6d['find'](_0x381eba=>_0x381eba['language']===_0x7521e9)['label'])['toLowerCase']();return _0x4621ed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x481acc,'*Set\x20format:*\x20%0',o(_0x481acc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x7164e0+')')}:{'type':'format','content':o(_0x481acc,'*Remove\x20format:*\x20%0',o(_0x481acc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3a5afe){return'codeBlock'==_0x3a5afe['name'];}class H extends _0x43660f{['afterInit'](){const _0x1586ab=this['editor'];if(!_0x1586ab['plugins']['has']('CommentsEditing'))return;_0x1586ab['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2ebb38,_0x44a3b4,_0x31f624){const _0x1fa01b=[];for(const _0x522004 of _0x44a3b4['getItems']())_0x522004['hasAttribute'](_0x2ebb38)&&_0x1fa01b['push'](_0x31f624['createRangeOn'](_0x522004));return _0x1fa01b;}function _e(_0x59267a,_0x3b3a9d,{showActiveMarker:_0x518455=!0x0}={}){const _0x5140ae=_0x59267a['plugins']['get']('TrackChangesEditing');return(_0x2436b3,_0xb034d1,_0x322526)=>{if(!_0x322526['consumable']['test'](_0xb034d1['markerRange'],_0x2436b3['name']))return;const _0x48080f=_0xb034d1['markerRange']['getWalker'](),_0x384cc3=_0xb034d1['markerRange']['start'],_0x1ec93e=_0x59267a['model']['schema'];let _0xfc811c=null,_0x20482c=null,_0x38520b=!0x1,_0x346063=!0x1;for(const _0x55f073 of _0x48080f){const _0x25a84e=_0x55f073['item'];_0x38520b=_0x38520b||_0x1ec93e['isContent'](_0x25a84e);const _0x5c84a6=_0x322526['mapper']['toViewElement'](_0x25a84e);if(_0x5c84a6&&_0x5c84a6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x55f073['type']&&(_0x1ec93e['isBlock'](_0x25a84e)&&!_0x1ec93e['isLimit'](_0x25a84e)&&(_0x25a84e['nextSibling']||_0x384cc3['isAtEnd']?_0xfc811c&&_0xfc811c['parent']==_0x25a84e||(_0xfc811c=_0x25a84e,_0x1f44f8(_0x55f073['previousPosition']),_0x346063=!0x0):_0x20482c=_0x20482c||_0x55f073['previousPosition']));}function _0x1f44f8(_0x3e2499){const _0x581dc9=_0x322526['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b3a9d}),_0x31ec75=_0x322526['mapper']['toViewPosition'](_0x3e2499);_0x518455&&_0x5140ae['activeMarkers']['includes'](_0xb034d1['markerName'])&&_0x322526['writer']['addClass']('ck-suggestion-marker--active',_0x581dc9),_0x322526['writer']['insert'](_0x31ec75,_0x581dc9),_0x322526['mapper']['bindElementToMarker'](_0x581dc9,_0xb034d1['markerName']);}_0x38520b||_0x346063||!_0x20482c||_0x1f44f8(_0x20482c);};}class q extends _0x43660f{static get['requires'](){return[_0x5e5ec8];}['init'](){const _0x2a1c6c=this['editor'],_0x3a4663=_0x2a1c6c['plugins']['get']('TrackChangesEditing');_0x3a4663['enableCommand']('delete');const _0x30fc0d=_0x2a1c6c['commands']['get']('deleteForward');_0x3a4663['enableCommand']('deleteForward',(_0x27e846,_0x4467f3={})=>{const _0x2169f0=_0x2a1c6c['model']['createSelection'](_0x2a1c6c['model']['document']['selection']);_0x2169f0['isCollapsed']&&_0x2a1c6c['model']['modifySelection'](_0x2169f0,{'direction':'forward','unit':_0x4467f3['unit']});const _0x4b94bd=_0x2169f0['getFirstRange'](),_0xfdbc8d=_0x30a6a3['fromRange'](_0x4b94bd);let _0x32b681;_0x27e846(_0x4467f3),_0x32b681='$graveyard'==_0xfdbc8d['root']['rootName']?_0x2a1c6c['model']['createRange'](_0x4b94bd['start']):_0x2a1c6c['model']['createRange'](_0xfdbc8d['start'],_0xfdbc8d['end']),_0xfdbc8d['detach'](),_0x2a1c6c['model']['enqueueChange'](_0x30fc0d['buffer']['batch'],_0x1fcee2=>{_0x30fc0d['buffer']['lock'](),_0x1fcee2['setSelection'](_0x1fcee2['createRange'](_0x32b681['end'])),_0x30fc0d['buffer']['unlock']();});}),_0x2a1c6c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2a1c6c,'merge'),{'priority':'high'}),_0x2a1c6c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x14c453,_0x22f6a6,_0x1867f6)=>{_0x1867f6['options']['showSuggestionHighlights']&&_e(_0x2a1c6c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x14c453,_0x22f6a6,_0x1867f6);},{'priority':'high'}),_0x2a1c6c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x58e5a2,_0x5c858b,_0x469158)=>{const _0x3ce7e0=_0x469158['mapper']['markerNameToElements'](_0x5c858b['markerName']);if(_0x3ce7e0){for(const _0x21556a of _0x3ce7e0)_0x21556a['is']('uiElement')&&(_0x469158['mapper']['unbindElementFromMarkerName'](_0x21556a,_0x5c858b['markerName']),_0x469158['writer']['remove'](_0x21556a));}},{'priority':'high'});}}class z extends _0x43660f{['afterInit'](){const _0x86e72e=this['editor'];if(!_0x86e72e['plugins']['has']('ListEditing'))return;const _0x3048fc=_0x86e72e['locale'],_0x5a4770=_0x86e72e['plugins']['get']('TrackChangesEditing'),_0x350211=_0x86e72e['plugins']['has']('TodoListEditing'),_0x17c251=!!_0x86e72e['config']['get']('list.multiBlock');function _0x55ef03(_0x3bbfc2){return{'type':'format','content':''+o(_0x3048fc,'*Set\x20format:*\x20%0',_0x3bbfc2)};}function _0x2307c1(_0x57cb4a){return{'type':'format','content':''+o(_0x3048fc,'*Remove\x20format:*\x20%0',_0x57cb4a)};}_0x5a4770['_enableDefaultAttributesIntegration']('numberedList',[],['listItemId','listType','listIndent']),_0x5a4770['_enableDefaultAttributesIntegration']('bulletedList'),_0x5a4770['_enableDefaultAttributesIntegration']('customNumberedList'),_0x5a4770['_enableDefaultAttributesIntegration']('customBulletedList'),_0x5a4770['_enableDefaultAttributesIntegration']('indentList'),_0x5a4770['_enableDefaultAttributesIntegration']('outdentList'),_0x5a4770['_enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5a4770['_enableDefaultAttributesIntegration']('splitListItemBefore'),_0x17c251&&(_0x5a4770['_enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5a4770['_enableDefaultAttributesIntegration']('mergeListItemForward')),_0x350211&&(_0x5a4770['_enableDefaultAttributesIntegration']('todoList'),_0x5a4770['_enableDefaultAttributesIntegration']('checkTodoList',[],['todoListChecked']),_0x5a4770['_descriptionFactory']['registerDescriptionCallback'](_0x4f0e5a=>{const {data:_0x3b5058}=_0x4f0e5a;if(_0x3b5058&&'todoListChecked'==_0x3b5058['key'])return{'type':'format','content':_0x3b5058['newValue']?o(_0x3048fc,'*Check\x20item*'):o(_0x3048fc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3feb28=>{if(_0x3feb28['batch']['isUndo'])return!0x1;let _0x565829=!0x1;const _0x37b32d=_0x5a4770['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd82a7a=>'todoListChecked'===_0x5a4770['_getAttributeKey'](_0xd82a7a));for(const _0x41259c of _0x37b32d){'todo'!=_0x41259c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5a4770['_findSuggestions'](_0x41259c['getFirstRange'](),'attribute')['find'](_0x10b4cd=>'listType'===_0x5a4770['_getAttributeKey'](_0x10b4cd['suggestion']))||(_0x3feb28['removeMarker'](_0x41259c['getFirstMarker']()),_0x565829=!0x0));}return _0x565829;})),_0x5a4770['_descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3048fc,'FORMAT_INDENT'));const _0x3f2b5c={'type':'format','content':''};_0x5a4770['_descriptionFactory']['registerDescriptionCallback'](_0x4478ea=>{const {data:_0x2a70cf}=_0x4478ea;if(!_0x2a70cf||'listType'!=_0x2a70cf['key'])return;let _0x41670c=_0x4478ea['head'];for(;_0x41670c;){if(_0x41670c['data']&&(('listStyle'==_0x41670c['data']['key']||'listMarkerStyle'==_0x41670c['data']['key'])&&(_0x41670c['data']['newValue']&&'default'!=_0x41670c['data']['newValue']||'default'!=_0x41670c['data']['oldValue']&&!_0x2a70cf['newValue'])||!_0x17c251&&_0x41670c['data']['key']==m))return _0x3f2b5c;_0x41670c=_0x41670c['next'];}if(null==_0x2a70cf['newValue'])switch(_0x2a70cf['oldValue']){case'bulleted':return _0x2307c1(o(_0x3048fc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2307c1(o(_0x3048fc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2307c1(o(_0x3048fc,'ELEMENT_TODO_LIST'));}switch(_0x2a70cf['newValue']){case'bulleted':return _0x55ef03(o(_0x3048fc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55ef03(o(_0x3048fc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55ef03(o(_0x3048fc,'ELEMENT_TODO_LIST'));}}),_0x5a4770['_descriptionFactory']['registerDescriptionCallback'](_0x1ac330=>{const {data:_0x41dae9}=_0x1ac330;if(_0x41dae9&&'listIndent'==_0x41dae9['key'])return null==_0x41dae9['newValue']||null==_0x41dae9['oldValue']&&0x0==_0x41dae9['newValue']?_0x3f2b5c:void 0x0;}),_0x5a4770['_descriptionFactory']['registerDescriptionCallback'](_0x3b86f1=>{if('attribute'!=_0x3b86f1['type'])return;const {data:_0x4f87b8}=_0x3b86f1;if(!_0x4f87b8||'listItemId'!=_0x4f87b8['key'])return;const _0x1490aa=le(_0x3b86f1);return _0x1490aa?'newValue'==_0x1490aa?{'type':'format','content':o(_0x3048fc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1490aa?{'type':'format','content':o(_0x3048fc,'*Split:*\x20list\x20item')}:_0x3f2b5c:_0x3f2b5c;}),_0x86e72e['model']['document']['registerPostFixer'](_0x196eba=>this['listItemIdFixer'](_0x196eba)),_0x86e72e['model']['document']['registerPostFixer'](_0x1defd9=>this['noTrackChangesFixer'](_0x1defd9)),_0x86e72e['model']['document']['registerPostFixer'](_0x165000=>this['assureChains'](_0x165000)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4cf501){if(_0x4cf501['batch']['isUndo']||!_0x4cf501['batch']['isLocal'])return!0x1;let _0xd8badb=!0x1;const _0x2bd1b9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5eb2d1=>_0x5eb2d1['data']&&'listItemId'==_0x5eb2d1['data']['key'])['filter'](_0x7040a2=>_0x7040a2['data']['newValue']&&_0x7040a2['data']['oldValue']);for(const _0xd9157b of _0x2bd1b9)le(_0xd9157b)||(_0x4cf501['removeMarker'](_0xd9157b['getFirstMarker']()),_0xd8badb=!0x0);return _0xd8badb;}['noTrackChangesFixer'](_0x179901){if(_0x179901['batch']['isUndo']||!_0x179901['batch']['isLocal'])return!0x1;const _0x24fc47=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x24fc47['trackChangesCommand']['value'])return!0x1;let _0x4f3243=!0x1;const _0x3065e0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2ad245=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x26f9cc=>'attribute'==_0x26f9cc['type'])['filter'](_0x2ba7e9=>_0x3065e0['includes'](_0x2ba7e9['attributeKey']));if(0x0==_0x2ad245['length'])return _0x4f3243;for(const _0x5c112b of _0x2ad245){const _0x5f0ef3=_0x24fc47['_findSuggestions'](_0x5c112b['range'],'attribute')['filter'](_0x44c4b9=>!_0x44c4b9['meta']['isNextTo'])['map'](_0x56714e=>_0x56714e['suggestion'])['filter'](_0x2bde23=>{const _0x34ae9a=_0x24fc47['_getAttributeKey'](_0x2bde23);return _0x3065e0['includes'](_0x34ae9a);});if(_0x5f0ef3['length']){for(const _0x2aeed9 of _0x5f0ef3)_0x179901['removeMarker'](_0x2aeed9['getFirstMarker']());_0x4f3243=!0x0;}}return _0x4f3243;}['assureChains'](_0x4be3fa){if(_0x4be3fa['batch']['isUndo']||!_0x4be3fa['batch']['isLocal'])return!0x1;const _0x518206=this['editor']['plugins']['get']('TrackChangesEditing');let _0x292ba4=!0x1;const _0xc95e15=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xf154d9 of _0x518206['getSuggestions']({'skipNotAttached':!0x0})){const _0x450a2c=_0x518206['_findSuggestions'](_0xf154d9['getFirstRange'](),'attribute')['map'](_0x28eab0=>_0x28eab0['suggestion'])['filter'](_0x2f5f7f=>_0x2f5f7f['data']&&_0xc95e15['includes'](_0x2f5f7f['data']['key']));if(!_0x450a2c['length'])continue;const _0x381cb4=_0x450a2c[0x0]['head']['attributes']['groupId'];if(!_0x450a2c['every'](_0x3b139c=>_0x3b139c['attributes']['groupId']===_0x381cb4)){for(const _0x5a23dc of _0x450a2c)_0xca2e88(_0x5a23dc,_0x381cb4)&&(_0x292ba4=!0x0);}}return _0x292ba4;function _0x1e8fd9(_0x16f23e,_0x4b145a){for(const _0x461eb8 of _0x518206['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1282c0=>'attribute'==_0x1282c0['type']&&_0x1282c0['attributes']['groupId']==_0x16f23e))_0x461eb8['setAttribute']('groupId',_0x4b145a);}function _0xca2e88(_0x4432ef,_0x4ae4e5){let _0x59fe76=_0x4432ef['head'],_0x2684f1=!0x1;for(;_0x59fe76;)_0x59fe76['attributes']['groupId']!=_0x4ae4e5&&(_0x1e8fd9(_0x59fe76['attributes']['groupId'],_0x4ae4e5),_0x59fe76['setAttribute']('groupId',_0x4ae4e5),_0x2684f1=!0x0),_0x59fe76=_0x59fe76['next'];return _0x2684f1;}}['_supportLegacySuggestions'](){const _0x447be6=this['editor'],_0x2d30bf=_0x447be6['locale'],_0x1193ae=_0x447be6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1193ae['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3a267d,_0x378e4f){const _0x49cb58=[];for(let _0xb5ee7f of _0x3a267d)_0xb5ee7f['start']['nodeAfter']===_0xb5ee7f['end']['parent']&&(_0xb5ee7f=_0x447be6['model']['createRange'](_0x447be6['model']['createPositionAt'](_0xb5ee7f['start']['nodeAfter'],0x0))),_0x49cb58['push'](_0xb5ee7f);_0x447be6['model']['change'](_0x393461=>{const _0x2800bc=_0x447be6['model']['document']['selection'],_0x2861fd=Array['from'](_0x2800bc['getRanges']())['map'](_0x3bbfcb=>_0x30a6a3['fromRange'](_0x3bbfcb));_0x393461['setSelection'](_0x49cb58),_0x447be6['commands']['get'](_0x378e4f['commandName'])['refresh'](),_0x378e4f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x447be6['execute'](_0x378e4f['commandName'],..._0x378e4f['commandParams']),_0x393461['setSelection'](_0x2861fd);for(const _0x51b538 of _0x2861fd)_0x51b538['detach']();});}),_0x1193ae['_descriptionFactory']['registerElementLabel'](function(_0x355dbb){const _0x14e230=!_0x447be6['model']['schema']['isObject'](_0x355dbb),_0x587e2f=_0x355dbb['previousSibling'],_0x42ab93=_0x355dbb['nextSibling'],_0x1dc30c=_0x355dbb['getAttribute']('listItemId'),_0x4df3a5=!_0x587e2f||_0x587e2f['getAttribute']('listItemId')!==_0x1dc30c,_0x2a20d7=!_0x42ab93||_0x42ab93['getAttribute']('listItemId')!==_0x1dc30c;return _0x14e230&&Boolean(_0x1dc30c)&&_0x4df3a5&&_0x2a20d7;},_0x4dc71a=>o(_0x2d30bf,'ELEMENT_LIST_ITEM',_0x4dc71a));}['_registerLegacyDescription'](){const _0x2f5687=this['editor'],_0x3d3670=_0x2f5687['locale'];function _0x401c21(_0x4a45d4){const _0x5adda7=_0x2f5687['commands']['get']('bulletedList')['value'],_0x422779=_0x2f5687['commands']['get']('numberedList')['value'];return'numberedList'===_0x4a45d4?_0x5adda7:_0x422779;}_0x2f5687['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](function(_0xe9a220){if('formatBlock'!=_0xe9a220['type'])return;const {data:_0x13ab3c}=_0xe9a220;if(!_0x13ab3c)return;let _0x3426f6,_0x12dfb4,_0x1e7c9c,_0x4988f3;switch(_0x13ab3c['commandName']){case'bulletedList':_0x1e7c9c=_0x13ab3c['commandParams'][0x0]['forceValue'],_0x4988f3=_0x401c21(_0x13ab3c['commandName']),_0x3426f6=_0x1e7c9c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4988f3&&_0x2f5687['config']['get']('list.multiBlock')||(_0x3426f6='*Change\x20to:*\x20%0'),_0x12dfb4={'type':'format','content':o(_0x3d3670,_0x3426f6,o(_0x3d3670,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1e7c9c=_0x13ab3c['commandParams'][0x0]['forceValue'],_0x4988f3=_0x401c21(_0x13ab3c['commandName']),_0x3426f6=_0x1e7c9c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4988f3&&_0x2f5687['config']['get']('list.multiBlock')||(_0x3426f6='*Change\x20to:*\x20%0'),_0x12dfb4={'type':'format','content':o(_0x3d3670,_0x3426f6,o(_0x3d3670,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3426f6='*Indent:*\x20%0',_0x12dfb4={'type':'format','content':o(_0x3d3670,_0x3426f6,o(_0x3d3670,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3426f6=function(_0x4baf37){const _0x58368e=_0x4baf37['getFirstRange']();let _0x7e87f4=_0x58368e['start']['nodeAfter'];for(;_0x7e87f4&&_0x58368e['containsItem'](_0x7e87f4);){if(_0x7e87f4['getAttribute']('listIndent')>0x0)return!0x1;_0x7e87f4=_0x7e87f4['nextSibling'];}return!0x0;}(_0xe9a220)?o(_0x3d3670,'*Format:*\x20remove\x20from\x20%0',o(_0x3d3670,function(_0x5ab574){return'ELEMENT_'+_0x5ab574['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xe9a220))):o(_0x3d3670,'*Outdent:*\x20%0',o(_0x3d3670,'ELEMENT_LIST_ITEM')),_0x12dfb4={'type':'format','content':_0x3426f6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x13ab3c['multipleBlocks']&&(_0x3426f6='*Merge:*\x20%0',_0x12dfb4={'type':'deletion','content':o(_0x3d3670,_0x3426f6,o(_0x3d3670,'ELEMENT_LIST_ITEM'))});}return _0x12dfb4;});}}function le(_0x59593c){let _0x2abac9=_0x59593c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2abac9;){const _0x5de2b1=_0x2abac9['getAttribute']('listItemId');if(!_0x5de2b1)return!0x1;if(_0x5de2b1==_0x59593c['data']['newValue'])return'newValue';if(_0x5de2b1==_0x59593c['data']['oldValue'])return'oldValue';_0x2abac9=_0x2abac9['previousSibling'];}return!0x1;}class ue extends _0x43660f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x21faa1=this['editor']['config']['get']('list.properties'),_0x58861b=this['editor']['plugins']['get']('TrackChangesEditing');_0x21faa1['styles']&&_0x58861b['_enableDefaultAttributesIntegration']('listStyle',[],['listStyle']),_0x21faa1['reversed']&&_0x58861b['_enableDefaultAttributesIntegration']('listReversed',[],['listReversed']),_0x21faa1['startIndex']&&_0x58861b['_enableDefaultAttributesIntegration']('listStart',[],['listStart']);const _0x46bb1a={'type':'format','content':''};_0x58861b['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x250aa1=this['editor']['locale'];_0x58861b['_descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x250aa1,'FORMAT_LIST_REVERSED')),_0x58861b['_descriptionFactory']['registerDescriptionCallback'](_0x12829c=>{const {data:_0x1e56e0}=_0x12829c;if(_0x1e56e0&&'listReversed'==_0x1e56e0['key'])return null==_0x1e56e0['newValue']||0x0==_0x1e56e0['newValue']&&null==_0x1e56e0['oldValue']?_0x46bb1a:void 0x0;}),_0x58861b['_descriptionFactory']['registerAttributeLabel']('listStart',o(_0x250aa1,'FORMAT_LIST_START')),_0x58861b['_descriptionFactory']['registerDescriptionCallback'](_0x49191f=>{const {data:_0x21b82e}=_0x49191f;if(_0x21b82e&&'listStart'==_0x21b82e['key'])return null==_0x21b82e['newValue']||0x1==_0x21b82e['newValue']&&null==_0x21b82e['oldValue']?_0x46bb1a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x8c729e=>{if(_0x8c729e['batch']['isUndo'])return!0x1;let _0x135cf0=!0x1;const _0x25dd8a=_0x58861b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47fc83=>{const _0x32a276=_0x58861b['_getAttributeKey'](_0x47fc83);return'listStart'==_0x32a276||'listReversed'==_0x32a276;});for(const _0x3466b1 of _0x25dd8a){const _0x20634c=_0x3466b1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x20634c||'customNumbered'==_0x20634c)continue;_0x58861b['_findSuggestions'](_0x3466b1['getFirstRange'](),'attribute')['find'](_0xfd0fae=>'listType'==_0x58861b['_getAttributeKey'](_0xfd0fae['suggestion']))||(_0x8c729e['removeMarker'](_0x3466b1['getFirstMarker']()),_0x135cf0=!0x0);}return _0x135cf0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x549800){const _0x1b8f37=this['editor']['locale'],{data:_0x5d919e}=_0x549800,_0x5641b6={'type':'format','content':''};if(!_0x5d919e||'listStyle'!=_0x5d919e['key'])return;if(!_0x5d919e['oldValue'])return'default'==_0x5d919e['newValue']?_0x5641b6:{'type':'format','content':''+o(_0x1b8f37,'*Set\x20format:*\x20%0',o(_0x1b8f37,this['_getTranslationKeyForListStyle'](_0x5d919e['newValue'])))};if(!_0x5d919e['newValue']){if('default'==_0x5d919e['oldValue'])return _0x5641b6;let _0x510048=_0x549800['head'];for(;_0x510048;){if(_0x510048['data']&&'listType'==_0x510048['data']['key']&&_0x510048['data']['newValue'])return _0x5641b6;_0x510048=_0x510048['next'];}return{'type':'format','content':''+o(_0x1b8f37,'*Remove\x20format:*\x20%0',o(_0x1b8f37,this['_getTranslationKeyForListStyle'](_0x5d919e['oldValue'])))};}if('default'!=_0x5d919e['newValue'])return{'type':'format','content':''+o(_0x1b8f37,'*Set\x20format:*\x20%0',o(_0x1b8f37,this['_getTranslationKeyForListStyle'](_0x5d919e['newValue'])))};let _0x4bb54e=_0x549800['head'];for(;_0x4bb54e;){if(_0x4bb54e['data']&&'listType'==_0x4bb54e['data']['key']&&_0x4bb54e['data']['newValue']&&_0x4bb54e['data']['oldValue'])return _0x5641b6;_0x4bb54e=_0x4bb54e['next'];}return{'type':'format','content':o(_0x1b8f37,'*Set\x20format:*\x20%0',o(_0x1b8f37,'ELEMENT_'+_0x549800['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x45c503=this['editor'],_0x36aa8b=_0x45c503['locale'];_0x45c503['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2f6d67=>{if('formatBlock'!=_0x2f6d67['type'])return;const {data:_0x31746e}=_0x2f6d67;if(!_0x31746e)return;let _0x189088,_0x82dbc1;switch(_0x31746e['commandName']){case'listStyle':_0x189088='*Change\x20to:*\x20%0',_0x82dbc1={'type':'format','content':o(_0x36aa8b,_0x189088,o(_0x36aa8b,this['_getTranslationKeyForListStyle'](_0x31746e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x189088=_0x31746e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x82dbc1={'type':'format','content':o(_0x36aa8b,_0x189088)};break;case'listStart':_0x189088='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x82dbc1={'type':'format','content':o(_0x36aa8b,_0x189088,_0x31746e['commandParams'][0x0]['startIndex'])};}return _0x82dbc1;});}['_getTranslationKeyForListStyle'](_0x31e7c9){return'ELEMENT_'+function(_0xbe1c1b){if(pe['includes'](_0xbe1c1b))return'bulleted';if(ye['includes'](_0xbe1c1b))return'numbered';return null;}(_0x31e7c9)['toUpperCase']()+'_LIST_'+_0x31e7c9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x43660f{static get['requires'](){return[_0x45b63c];}['init'](){const _0x587972=this['editor'],_0xab8b73=_0x587972['plugins']['get']('TrackChangesEditing'),_0x5098ad=_0x587972['commands']['get']('enter');_0xab8b73['enableCommand']('enter',()=>{_0x587972['model']['change'](_0x33fc37=>{const _0x173cb0=_0x587972['model']['document']['selection'],_0x14056e=_0x173cb0['getFirstPosition'](),_0x483bbf=_0x30a6a3['fromRange'](_0x173cb0['getFirstRange']());if(_0x5098ad['enterBlock'](_0x33fc37)){const _0x358321=_0x587972['model']['createPositionAt'](_0x14056e['parent']['nextSibling'],0x0),_0x333270=_0x33fc37['createRange'](_0x14056e,_0x358321);_0xab8b73['markInsertion'](_0x333270);}else _0x33fc37['setSelection'](_0x33fc37['createRange'](_0x483bbf['end']));_0x483bbf['detach'](),_0x5098ad['fire']('afterExecute',{'writer':_0x33fc37});});}),_0x587972['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x587972,'split'),{'priority':'high'}),_0x587972['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x172e4d,_0x4d7604,_0x59236e)=>{const _0x2a5401=_0x59236e['mapper']['markerNameToElements'](_0x4d7604['markerName']);if(_0x2a5401){for(const _0x57dcf6 of _0x2a5401)_0x57dcf6['hasClass']('ck-suggestion-marker-split')&&(_0x59236e['mapper']['unbindElementFromMarkerName'](_0x57dcf6,_0x4d7604['markerName']),_0x59236e['writer']['remove'](_0x57dcf6));}},{'priority':'high'}),_0x587972['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x299366,_0x5192b4,_0x5c360a)=>{_0x5c360a['options']['showSuggestionHighlights']&&_e(_0x587972,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x299366,_0x5192b4,_0x5c360a);},{'priority':'high'});}}class J extends _0x43660f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2a0f52=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a0f52['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2a0f52['enableCommand']('findNext'),_0x2a0f52['enableCommand']('findPrevious'),_0x2a0f52['enableCommand']('replace'),_0x2a0f52['enableCommand']('replaceAll');}['handleFindCommand'](_0x3c0dec,_0x4ebd99,_0x15a4c2={}){const _0xafb40d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3c0dec(_0x7b067=>('string'==typeof _0x4ebd99?_0xafb40d['findByTextCallback'](_0x4ebd99,_0x15a4c2):_0x4ebd99)(_0x7b067)['filter'](_0x488c88=>!0x1===this['_isInDeletionRange'](_0x488c88,_0x7b067['item'])),_0x15a4c2);}['_isInDeletionRange'](_0x3fd642,_0x11b5a3){const _0xe7b389=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11b5a3,_0x3fd642['start']),this['editor']['model']['createPositionAt'](_0x11b5a3,_0x3fd642['end']));for(const _0x38bc79 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xe7b389['getIntersection'](_0x38bc79['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x43660f{['afterInit'](){const _0x3ce5cf=this['editor']['locale'],_0x5145fa=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x59e91b,commandName:_0x1bec68}of ro)this['editor']['plugins']['has'](_0x59e91b)&&_0x5145fa['_enableDefaultAttributesIntegration'](_0x1bec68,[_0x1bec68]);_0x3ce5cf['t'],_0x5145fa['_descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3ce5cf,'FORMAT_FONT_SIZE')),_0x5145fa['_descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3ce5cf,'FORMAT_FONT_FAMILY')),_0x5145fa['_descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3ce5cf,'FORMAT_FONT_COLOR')),_0x5145fa['_descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3ce5cf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cfecd=this['editor'],_0x3b5173=_0x2cfecd['locale'];_0x2cfecd['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x4635a2=>{const _0x2c918a=_0x3b5173['t'];if('formatInline'!=_0x4635a2['type'])return;const {data:_0x5bbc60}=_0x4635a2;if(null!=_0x5bbc60){if('fontSize'==_0x5bbc60['commandName']){const _0x15c183=_0x5bbc60['commandParams'][0x0]['value'];if(_0x15c183){const _0x4c3aae=_0x2c918a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x131bed=>_0x131bed['model']==_0x15c183)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3b5173,'*Set\x20font\x20size:*\x20%0',_0x4c3aae)};}return{'type':'format','content':o(_0x3b5173,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5bbc60['commandName']){const _0x2c0e10=_0x5bbc60['commandParams'][0x0]['value'];return _0x2c0e10?{'type':'format','content':o(_0x3b5173,'*Set\x20font\x20family:*\x20%0',_0x2c0e10)}:{'type':'format','content':o(_0x3b5173,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5bbc60['commandName']){const _0x4f5a49=_0x5bbc60['commandParams'][0x0]['value'];if(_0x4f5a49){const _0xcbfd8b=_0x1bb9a4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2a4591=>_0x2a4591['model']==_0x4f5a49);let _0x51ac6b=_0x4f5a49,_0x1c3a46='';return _0xcbfd8b&&(_0x51ac6b=_0xcbfd8b['label'],_0x1c3a46=_0x2c918a(_0x51ac6b)['toLowerCase']()),{'type':'format','content':o(_0x3b5173,'*Set\x20font\x20color:*\x20%0',_0x1c3a46)['trim'](),'color':{'value':_0x4f5a49,'title':_0x1c3a46||_0x51ac6b}};}return{'type':'format','content':o(_0x3b5173,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5bbc60['commandName']){const _0x29c64e=_0x5bbc60['commandParams'][0x0]['value'];if(_0x29c64e){const _0x598ce7=_0x1bb9a4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4c897c=>_0x4c897c['model']==_0x29c64e);let _0x51a3a4=_0x29c64e,_0x3f7763='';return _0x598ce7&&(_0x51a3a4=_0x598ce7['label'],_0x3f7763=_0x2c918a(_0x51a3a4)['toLowerCase']()),{'type':'format','content':o(_0x3b5173,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f7763)['trim'](),'color':{'value':_0x29c64e,'title':_0x3f7763||_0x51a3a4}};}return{'type':'format','content':o(_0x3b5173,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x43660f{['afterInit'](){const _0x24b7ac=this['editor'],_0x6e97d1=_0x24b7ac['plugins']['get']('TrackChangesEditing'),_0x3d7a10=_0x24b7ac['commands']['get']('copyFormat'),_0x559590=_0x24b7ac['commands']['get']('pasteFormat');_0x3d7a10&&_0x559590&&(_0x6e97d1['_enableDefaultAttributesIntegration']('pasteFormat'),_0x6e97d1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xf15b40=this['editor'],_0x27affd=_0xf15b40['locale'];_0xf15b40['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x50ca8f=>{if('formatBlock'!=_0x50ca8f['type']&&'formatInline'!=_0x50ca8f['type'])return;const {data:_0x40f0b4}=_0x50ca8f;if(_0x40f0b4&&'pasteFormat'===_0x40f0b4['commandName']){const _0xcc3e52=[],_0xbe3774=_0x40f0b4['commandParams'][0x0];for(const [_0x201011,_0x392936]of Object['entries'](_0xbe3774))_0xcc3e52['push'](so(_0xf15b40,_0x201011,_0x392936));return _0xcc3e52['length']?{'type':'format','content':o(_0x27affd,'*Set\x20format\x20to:*\x20%0',_0xcc3e52['join'](',\x20'))}:{'type':'format','content':o(_0x27affd,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1c4c31,_0x5f2034,_0x27768d){const _0x40a07a=_0x1c4c31['locale']['t'],_0x2ce6b2=_0x5f2034['split'](/(?=[A-Z])/)['join']('\x20'),_0x475818=_0x40a07a(_0x2ce6b2['charAt'](0x0)['toUpperCase']()+_0x2ce6b2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x27768d)return _0x475818;if('fontColor'===_0x5f2034||'fontBackgroundColor'===_0x5f2034){const _0x28fb89=_0x1bb9a4(_0x1c4c31['config']['get']('fontColor.colors'))['find'](_0x17107f=>_0x17107f['model']==_0x27768d);return _0x475818+'\x20('+(_0x28fb89?_0x40a07a(_0x28fb89['label'])['toLowerCase']():_0x27768d)+')';}if('fontSize'===_0x5f2034&&isNaN(parseFloat(_0x27768d))){const _0x65817a=_0x1c4c31['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1c4c31['config']['get']('fontSize.options'))['find'](_0xb32759=>_0xb32759['model']==_0x27768d);return _0x475818+'\x20('+(_0x65817a?_0x40a07a(_0x65817a['title'])['toLowerCase']():_0x27768d)+')';}return _0x475818+'\x20('+_0x27768d+')';}class Y extends _0x43660f{['afterInit'](){const _0x2db05b=this['editor'];if(!_0x2db05b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2db05b['config']['get']('heading.options');const _0x163c2a=_0x2db05b['locale'],_0x20b8c4=_0x2db05b['plugins']['get']('TrackChangesEditing');_0x20b8c4['_enableDefaultAttributesIntegration']('heading');for(const _0x347f43 of this['_headingOptions'])'paragraph'!=_0x347f43['model']&&_0x20b8c4['_descriptionFactory']['registerElementLabel'](_0x347f43['model'],_0x21b81f=>{const _0x15b840=this['_getHeadingLevel'](_0x347f43['model']);return null!==_0x15b840?_0x5d8577(_0x21b81f,_0x15b840):_0x53f109(_0x21b81f,_0x347f43['title']);});function _0x5d8577(_0x2eb75a,_0xa60c59){return o(_0x163c2a,'ELEMENT_HEADING',[_0x2eb75a,_0xa60c59]);}function _0x53f109(_0x4ced09,_0xc779aa){return o(_0x163c2a,'ELEMENT_HEADING_CUSTOM',[_0x4ced09,_0xc779aa]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x182254=this['editor'],_0x606d6f=_0x182254['locale'];function _0x5f01f6(_0x432153,_0x2fe066){return o(_0x606d6f,'ELEMENT_HEADING_CUSTOM',[_0x432153,_0x2fe066]);}_0x182254['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xbee7a3=>{if('formatBlock'!=_0xbee7a3['type'])return;const {data:_0x46e595}=_0xbee7a3;if(_0x46e595&&'heading'==_0x46e595['commandName']){const _0x161739=_0x46e595['commandParams'][0x0]['value'],_0x548223=this['_getHeadingLevel'](_0x161739);if(null!==_0x548223)return{'type':'format','content':o(_0x606d6f,'*Change\x20to:*\x20%0',(_0xeaacfc=0x1,_0x2be7df=_0x548223,o(_0x606d6f,'ELEMENT_HEADING',[_0xeaacfc,_0x2be7df])))};const _0x94effa=this['_headingOptions']['find'](_0xe532cc=>_0xe532cc['model']===_0x161739)['title'];return{'type':'format','content':o(_0x606d6f,'*Change\x20to:*\x20%0',_0x5f01f6(0x1,_0x94effa))};}var _0xeaacfc,_0x2be7df;});}['_getHeadingLevel'](_0x46bb98){var _0x536af9,_0x1424d7;const _0x379ba1=_0x46bb98['match'](/^heading(\d+)/);if(_0x379ba1)return _0x379ba1[0x1];const _0x2cc0b6=null===(_0x536af9=this['_headingOptions'])||void 0x0===_0x536af9?void 0x0:_0x536af9['find'](_0xf6be50=>_0xf6be50['model']==_0x46bb98);if(_0x2cc0b6&&_0x2cc0b6['view']){const _0x3dd4d4=_0x2cc0b6['view'],_0x4779d3=(null!==(_0x1424d7=_0x3dd4d4['name'])&&void 0x0!==_0x1424d7?_0x1424d7:_0x3dd4d4)['match'](/^h(\d+)/);if(_0x4779d3)return _0x4779d3[0x1];}return null;}}class Z extends _0x43660f{['afterInit'](){const _0x38a1df=this['editor'];if(!_0x38a1df['plugins']['has']('HighlightEditing'))return;const _0x28267e=_0x38a1df['plugins']['get']('TrackChangesEditing'),_0x2296e6=_0x38a1df['locale'];_0x28267e['_enableDefaultAttributesIntegration']('highlight',['highlight']),_0x28267e['_descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2296e6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c5a1f=this['editor'],_0x114395=_0x1c5a1f['locale'];_0x1c5a1f['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x21cbdd=>{if('formatInline'!=_0x21cbdd['type'])return;const {data:_0x3e0bea}=_0x21cbdd;if(_0x3e0bea&&'highlight'==_0x3e0bea['commandName']){const _0x1b5937=_0x114395['t'],_0x8a36c7=_0x3e0bea['commandParams'][0x0]['value'];if(_0x8a36c7){const _0x36951c=_0x1c5a1f['config']['get']('highlight.options')['find'](_0x8ba5f5=>_0x8ba5f5['model']==_0x8a36c7),_0x4ae947=_0x1b5937(_0x36951c['title'])['toLowerCase']();return{'type':'format','content':o(_0x114395,'*Set\x20highlight:*\x20%0',_0x4ae947),'color':{'value':_0x36951c['color'],'title':_0x36951c['title']}};}return{'type':'format','content':o(_0x114395,'*Remove\x20highlight*',o(_0x114395,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x43660f{['afterInit'](){const _0x51e5ca=this['editor'];if(!_0x51e5ca['plugins']['has']('HorizontalLineEditing'))return;_0x51e5ca['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x238e79=_0x51e5ca['plugins']['get']('TrackChangesEditing'),_0x2dbde2=_0x51e5ca['locale'];_0x238e79['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x302a5b=>o(_0x2dbde2,'ELEMENT_HORIZONTAL_LINE',_0x302a5b)),_0x51e5ca['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3bcea7,{writer:_0x164a8a,options:_0xa79ecb})=>{if(!_0xa79ecb['showSuggestionHighlights'])return null;const _0x1f2325=_0x164a8a['createContainerElement']('div'),_0x5b6d9c=_0x164a8a['createEmptyElement']('hr');return _0x164a8a['addClass']('ck-horizontal-line',_0x1f2325),_0x164a8a['insert'](_0x164a8a['createPositionAt'](_0x1f2325,0x0),_0x5b6d9c),_0x1f2325;},'converterPriority':'high'});}}class et extends _0x43660f{['afterInit'](){const _0x5ea087=this['editor'];if(!_0x5ea087['plugins']['has']('HtmlEmbed'))return;const _0x478614=_0x5ea087['plugins']['get']('TrackChangesEditing'),_0xf6498a=_0x5ea087['locale'];_0x478614['_descriptionFactory']['registerElementLabel']('rawHtml',_0x4cbcdc=>o(_0xf6498a,'ELEMENT_HTML_EMBED',_0x4cbcdc)),_0x478614['_enableDefaultAttributesIntegration']('htmlEmbed',[],['value']),_0x478614['_descriptionFactory']['registerDescriptionCallback'](_0x25a030=>{if('attribute'!=_0x25a030['type'])return;const {data:_0x18dc52}=_0x25a030;if(_0x18dc52&&'value'==_0x18dc52['key']&&_0x25a030['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x59b834=o(_0xf6498a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf6498a,'*Change\x20%0\x20content*',_0x59b834)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3469ea=this['editor'],_0x438ad9=_0x3469ea['locale'];_0x3469ea['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x12ef32=>{if('formatBlock'!=_0x12ef32['type'])return;const {data:_0x3874ce}=_0x12ef32;if(_0x3874ce&&'htmlEmbed'==_0x3874ce['commandName']){const _0x8bee52=o(_0x438ad9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x438ad9,'*Change\x20%0\x20content*',_0x8bee52)};}});}}class it extends _0x43660f{['afterInit'](){const _0x2b8995=this['editor'];if(!_0x2b8995['plugins']['has']('ImageEditing'))return;const _0x5dcc28=_0x2b8995['plugins']['get']('TrackChangesEditing'),_0x3df861=_0x2b8995['plugins']['get']('ImageUtils'),_0x5dea11=_0x2b8995['locale'];_0x5dcc28['enableCommand']('insertImage'),_0x5dcc28['_descriptionFactory']['registerElementLabel']('imageBlock',_0x131dda=>o(_0x5dea11,'ELEMENT_IMAGE',_0x131dda)),_0x5dcc28['_descriptionFactory']['registerElementLabel']('imageInline',_0x5a1b4c=>o(_0x5dea11,'ELEMENT_INLINE_IMAGE',_0x5a1b4c)),_0x5dcc28['_descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5dea11,'ELEMENT_CAPTION')),_0x2b8995['plugins']['has']('ImageUploadEditing')&&_0x5dcc28['enableCommand']('uploadImage'),_0x2b8995['plugins']['has']('ImageBlockEditing')&&_0x2b8995['plugins']['has']('ImageInlineEditing')&&(_0x5dcc28['enableCommand']('imageTypeInline',(_0x55fc1f,_0x1b7f72)=>{const _0x29aa77=_0x3df861['getClosestSelectedImageElement'](_0x2b8995['model']['document']['selection']);_0x2b8995['model']['change'](()=>{_0x5dcc28['markBlockFormat'](_0x29aa77,{'commandName':'imageTypeInline','commandParams':[_0x1b7f72]},[],'convertBlockImageToInline');});}),_0x5dcc28['enableCommand']('imageTypeBlock',(_0x5460bd,_0x9f63e9)=>{_0x2b8995['model']['change'](_0x3a808f=>{let _0x5b8bb1=_0x3df861['getClosestSelectedImageElement'](_0x2b8995['model']['document']['selection']),_0x37e425=_0x3a808f['createRangeOn'](_0x5b8bb1);const _0x48c31e=_0x41f1a4['fromPosition'](_0x37e425['start'],'toPrevious'),_0x3a3931=_0x41f1a4['fromPosition'](_0x37e425['end'],'toNext');_0x5dcc28['forceDefaultExecution'](()=>_0x5460bd(_0x9f63e9)),_0x5b8bb1=_0x3df861['getClosestSelectedImageElement'](_0x2b8995['model']['document']['selection']),_0x37e425=_0x3a808f['createRangeOn'](_0x5b8bb1);const _0x36b349=_0x3a808f['createRange'](_0x48c31e,_0x3a3931);_0x48c31e['detach'](),_0x3a3931['detach'](),_0x5dcc28['markBlockFormat'](_0x5b8bb1,{'commandName':'imageTypeInline','commandParams':[_0x9f63e9]},[],'convertInlineImageToBlock'),_0x36b349['start']['isBefore'](_0x37e425['start'])&&_0x5dcc28['markInsertion'](_0x3a808f['createRange'](_0x36b349['start'],_0x37e425['start']),'convertInlineImageToBlock'),_0x37e425['end']['isBefore'](_0x36b349['end'])&&_0x5dcc28['markInsertion'](_0x3a808f['createRange'](_0x37e425['end'],_0x36b349['end']),'convertInlineImageToBlock');});}),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5dcc28['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23b0ea])=>{const _0x4bbdf0=_0x5dcc28['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2d234a=_0x23b0ea['start'],_0x38949f=_0x23b0ea['end'];const _0x4d32a0=_0x2b8995['model']['schema']['getNearestSelectionRange'](_0x2d234a,'backward'),_0x32b960=_0x2b8995['model']['schema']['getNearestSelectionRange'](_0x38949f,'forward');_0x4d32a0['isCollapsed']&&(_0x2d234a=_0x4d32a0['start']),_0x32b960['isCollapsed']&&(_0x38949f=_0x32b960['end']),_0x4bbdf0([_0x2b8995['model']['createRange'](_0x2d234a,_0x38949f)]);}),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5ed18c),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5ed18c)),_0x2b8995['plugins']['has']('ImageCaptionEditing')&&(_0x5dcc28['enableCommand']('toggleImageCaption',(_0x2ba8d7,_0x41e935)=>{const _0x570664=_0x2b8995['plugins']['get']('ImageCaptionUtils');let _0x1c7499=_0x3df861['getClosestSelectedImageElement'](_0x2b8995['model']['document']['selection']),_0x110d97=_0x570664['getCaptionFromImageModelElement'](_0x1c7499);_0x2b8995['model']['change'](()=>{if(_0x110d97)return void _0x5dcc28['markDeletion'](_0x2b8995['model']['createRangeOn'](_0x110d97));const _0x4c9577=_0x3df861['isBlockImage'](_0x1c7499);_0x2ba8d7(_0x41e935),_0x1c7499=_0x3df861['getClosestSelectedImageElement'](_0x2b8995['model']['document']['selection']),_0x110d97=_0x570664['getCaptionFromImageModelElement'](_0x1c7499),_0x5dcc28['markInsertion'](_0x2b8995['model']['createRangeOn'](_0x110d97),_0x4c9577?null:'imageCaption');});}),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5ed18c));const _0x73f517=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ccd0f(_0x585d74,_0x240746){const _0x4d4243=_0x73f517['findIndex'](({type:_0x2aa43c,subType:_0x2215e0})=>_0x585d74['type']==_0x2aa43c&&_0x585d74['subType']==_0x2215e0),_0xc11e81=_0x73f517['findIndex'](({type:_0x3fb5b3,subType:_0x57a9b4})=>_0x240746['type']==_0x3fb5b3&&_0x240746['subType']==_0x57a9b4);if(_0x4d4243<0x0||_0xc11e81<0x0)return!0x1;const _0x20b29a=_0x585d74['getFirstRange'](),_0x70d94a=_0x240746['getFirstRange']();if((0x0==_0x4d4243||0x1==_0x4d4243)&&0x2==_0xc11e81&&_0x20b29a['isIntersecting'](_0x70d94a))return!0x0;if(0x2==_0x4d4243&&0x3==_0xc11e81){const _0x3754be=_0x5dcc28['_findSuggestions'](_0x20b29a,'insertion')['filter'](({suggestion:_0x395830,meta:_0x46108e})=>_0x46108e['isOwn']&&'convertInlineImageToBlock'==_0x395830['subType']);if(_0x3754be['length']>0x1&&_0x70d94a['end']['isEqual'](_0x20b29a['start']))return!0x0;if(0x1==_0x3754be['length']&&(_0x20b29a['start']['isEqual'](_0x70d94a['end'])||_0x20b29a['end']['isEqual'](_0x70d94a['start'])))return!0x0;}if(0x3==_0x4d4243&&0x3==_0xc11e81&&_0x20b29a['start']['isBefore'](_0x70d94a['start'])){const _0x863a18=_0x20b29a['end']['nodeAfter'],_0xefe1c4=_0x70d94a['start']['nodeBefore'];return _0x3df861['isBlockImage'](_0x863a18)&&_0x863a18===_0xefe1c4;}return!0x1;}function _0x5ed18c(_0x5df194,_0x1dba53){return _0x3ccd0f(_0x5df194,_0x1dba53)?[_0x5df194,_0x1dba53]:_0x3ccd0f(_0x1dba53,_0x5df194)?[_0x1dba53,_0x5df194]:null;}_0x2b8995['plugins']['has']('ImageResize')&&(_0x5dcc28['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0x5dcc28['_descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5dea11,'FORMAT_IMAGE_SIZE'))),_0x2b8995['plugins']['has']('ImageTextAlternativeEditing')&&_0x5dcc28['_enableDefaultAttributesIntegration']('imageTextAlternative',[],['alt']),_0x5dcc28['_descriptionFactory']['registerDescriptionCallback'](_0x4d99b2=>{if(!!_0x73f517['find'](({type:_0x404e44,subType:_0xb63f81})=>_0x4d99b2['type']==_0x404e44&&_0x4d99b2['subType']==_0xb63f81))return _0x4d99b2['previous']?{}:void 0x0;}),_0x5dcc28['_descriptionFactory']['registerDescriptionCallback'](_0x13e96=>{if('insertion'==_0x13e96['type']||'deletion'==_0x13e96['type']){const _0x35f66e=_0x13e96['getContainedElement']();if(_0x35f66e&&_0x35f66e['is']('element','caption'))return{'type':'insertion'==_0x13e96['type']?'addObject':'removeObject','element':_0x35f66e,'quantity':0x1};}}),_0x5dcc28['_descriptionFactory']['registerDescriptionCallback'](_0x385549=>'formatBlock'==_0x385549['type']&&'convertInlineImageToBlock'==_0x385549['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x385549['type']&&'convertBlockImageToInline'==_0x385549['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5dcc28['_descriptionFactory']['registerDescriptionCallback'](_0x57f726=>{if('attribute'!=_0x57f726['type'])return;const {data:_0x54775a}=_0x57f726;if(!_0x54775a||'alt'!=_0x54775a['key'])return;const _0xe3e1d3=_0x54775a['newValue'];return _0xe3e1d3?{'type':'format','content':o(_0x5dea11,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xe3e1d3+'\x22')}:{'type':'format','content':o(_0x5dea11,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a6cf1=this['editor'],_0x137703=_0x2a6cf1['locale'];_0x2a6cf1['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5b8734=>{if('formatBlock'!=_0x5b8734['type']&&'formatInline'!=_0x5b8734['type'])return;const {data:_0x5efec4}=_0x5b8734;if(_0x5efec4){if('imageTextAlternative'==_0x5efec4['commandName']){const _0x2c0118=_0x5efec4['commandParams'][0x0]['newValue'];return _0x2c0118?{'type':'format','content':o(_0x137703,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c0118+'\x22')}:{'type':'format','content':o(_0x137703,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5efec4['commandName']){const _0xea855b=_0x5efec4['commandParams'][0x0]['width'];return _0xea855b?{'type':'format','content':o(_0x137703,'*Set\x20image\x20width:*\x20%0',_0xea855b)}:{'type':'format','content':o(_0x137703,'*Reset\x20image\x20width*')};}}});}}class st extends _0x43660f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x320d28=this['editor']['locale'],_0x7d21d0=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d21d0['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x7d21d0['_descriptionFactory']['registerDescriptionCallback'](_0x606f00=>{if('attribute'!=_0x606f00['type'])return;const {data:_0x1f15d9}=_0x606f00;return _0x1f15d9&&'src'==_0x1f15d9['key']?_0x1f15d9['newValue']&&_0x1f15d9['oldValue']?{'type':'format','content':o(_0x320d28,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b7a61=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b7a61['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2b7a61['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b7a61['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2b7a61['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10949d=this['editor'],_0x12b23d=_0x10949d['locale'];_0x10949d['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x49cb08=>{if('formatBlock'!=_0x49cb08['type']&&'formatInline'!=_0x49cb08['type'])return;const {data:_0x41ca1a}=_0x49cb08;if(!_0x41ca1a||'replaceImageSource'!=_0x41ca1a['commandName'])return;return{'type':'format','content':o(_0x12b23d,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x43660f{['afterInit'](){const _0x17df88=this['editor'];if(!_0x17df88['plugins']['has']('ImageStyleEditing'))return;const _0x483d82=_0x17df88['plugins']['get']('TrackChangesEditing'),_0x25fc6b=_0x17df88['plugins']['get']('ImageUtils'),_0x80f198={};_0x483d82['enableCommand']('imageStyle',(_0x23ba9d,_0x4b1a0d)=>{const _0x23cfd5=_0x17df88['plugins']['get']('Users')['me'],_0xea7e37=_0x17df88['commands']['get']('imageStyle');let _0x4f7755=_0x25fc6b['getClosestSelectedImageElement'](_0x17df88['model']['document']['selection']),_0x1de652=_0x17df88['model']['createRangeOn'](_0x4f7755),_0x43a9ab=_0xea7e37['value'];if(_0x43a9ab==_0x4b1a0d['value'])return;const _0x4962b6={'commandName':'imageStyle','commandParams':[_0x4b1a0d],'formatGroupId':_0x461740()};_0x17df88['model']['change'](()=>{if(_0x483d82['getSuggestions']()['filter'](_0x33f16a=>_0x33f16a['isInContent']&&_0x23cfd5==_0x33f16a['author']&&('formatBlock'==_0x33f16a['type']||'formatInline'==_0x33f16a['type'])&&('imageStylePreApply'==_0x33f16a['subType']||'imageStylePostApply'==_0x33f16a['subType'])&&_0x33f16a['getFirstRange']()['isEqual'](_0x1de652))['forEach'](_0x7a3ead=>_0x483d82['discardSuggestion'](_0x7a3ead['head'])),_0x4f7755=_0x25fc6b['getClosestSelectedImageElement'](_0x17df88['model']['document']['selection']),_0x1de652=_0x17df88['model']['createRangeOn'](_0x4f7755),_0xea7e37['refresh'](),_0x17df88['commands']['get']('imageTypeInline')['refresh'](),_0x17df88['commands']['get']('imageTypeBlock')['refresh'](),_0x43a9ab=_0xea7e37['value'],_0x43a9ab!=_0x4b1a0d['value'])return _0x25fc6b['isInlineImage'](_0x4f7755)&&_0xea7e37['shouldConvertImageType'](_0x4b1a0d['value'],_0x4f7755)?(_0x23ba9d({..._0x4b1a0d,'setImageSizes':!0x1}),_0x4f7755=_0x25fc6b['getClosestSelectedImageElement'](_0x17df88['model']['document']['selection']),void _0x483d82['markBlockFormat'](_0x4f7755,{..._0x4962b6,'commandReversedParams':[{'value':_0x43a9ab||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x25fc6b['isBlockImage'](_0x4f7755)?_0x483d82['markBlockFormat'](_0x4f7755,_0x4962b6,[],'imageStylePostApply'):_0x483d82['markInlineFormat'](_0x1de652,_0x4962b6,'imageStylePostApply'));});});for(const _0x22d102 of _0x17df88['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x80f198[_0x22d102['name']]=_0x22d102['title']['toLowerCase']();_0x483d82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x483d82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x483d82['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x483d82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x31bb3b])=>{_0x25fc6b['setImageNaturalSizeAttributes'](_0x31bb3b['getContainedElement']());}),_0x483d82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x9f890e,_0x3b0878)=>{_0x483d82['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x9f890e,{'commandName':_0x3b0878['commandName'],'commandParams':_0x3b0878['commandReversedParams']});}),_0x483d82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3bf2d5,_0x205dbf){if(_0x2dfa2d(_0x3bf2d5,_0x205dbf))return[_0x3bf2d5,_0x205dbf];if(_0x2dfa2d(_0x205dbf,_0x3bf2d5))return[_0x205dbf,_0x3bf2d5];return null;});const _0x31ada7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2dfa2d(_0x299a4b,_0x25afec){const _0x2fd252=_0x31ada7['findIndex'](({type:_0x853423,subType:_0x85ccc7})=>_0x299a4b['type']==_0x853423&&_0x299a4b['subType']==_0x85ccc7),_0x170235=_0x31ada7['findIndex'](({type:_0x1a1da1,subType:_0x2f744f})=>_0x25afec['type']==_0x1a1da1&&_0x25afec['subType']==_0x2f744f);if(_0x2fd252<0x0||_0x170235<0x0)return!0x1;const _0x45aaad=_0x299a4b['getFirstRange'](),_0x1544f3=_0x25afec['getFirstRange']();if((0x0==_0x2fd252||0x1==_0x2fd252)&&0x2==_0x170235&&_0x45aaad['isIntersecting'](_0x1544f3))return!0x0;if(0x2==_0x2fd252&&0x3==_0x170235){const _0x42de7a=_0x483d82['_findSuggestions'](_0x45aaad,'insertion')['filter'](({suggestion:_0x263b35,meta:_0x29ccd8})=>_0x29ccd8['isOwn']&&'convertInlineImageToBlock'==_0x263b35['subType']);if(_0x42de7a['length']>0x1&&_0x1544f3['end']['isEqual'](_0x45aaad['start']))return!0x0;if(0x1==_0x42de7a['length']&&(_0x45aaad['start']['isEqual'](_0x1544f3['end'])||_0x45aaad['end']['isEqual'](_0x1544f3['start'])))return!0x0;}if(0x3==_0x2fd252&&0x3==_0x170235&&_0x45aaad['start']['isBefore'](_0x1544f3['start'])){const _0x3dc2d7=_0x45aaad['end']['nodeAfter'],_0x4ecbde=_0x1544f3['start']['nodeBefore'];return _0x25fc6b['isBlockImage'](_0x3dc2d7)&&_0x3dc2d7===_0x4ecbde;}return!0x1;}_0x17df88['model']['document']['registerPostFixer'](()=>{let _0x578c3c=!0x1;const _0x249c15=Array['from'](_0x17df88['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22c18d,data:_0x1fcca7}of _0x249c15){const {group:_0x5d6a4b,type:_0xa9da74,subType:_0x506c11,id:_0xbfc8ef}=_0x483d82['_splitMarkerName'](_0x22c18d);if('suggestion'==_0x5d6a4b&&_0x483d82['hasSuggestion'](_0xbfc8ef)){if('formatBlock'==_0xa9da74&&('imageStylePreApply'==_0x506c11||'imageStylePostApply'==_0x506c11)){const _0x39f35a=_0x483d82['getSuggestion'](_0xbfc8ef);if(_0x1fcca7['newRange']){const _0x13003c=_0x39f35a['getFirstRange']()['getContainedElement']();if(_0x25fc6b['isBlockImage'](_0x13003c))continue;_0x483d82['discardSuggestion'](_0x39f35a),_0x578c3c=!0x0;}}if('insertion'==_0xa9da74&&'imageCaption'==_0x506c11&&!_0x1fcca7['newRange']){const _0xceccba=_0x483d82['getSuggestion'](_0xbfc8ef);_0xceccba['next']&&_0xceccba['next']['isInContent']&&(_0x483d82['discardSuggestion'](_0xceccba['next']),_0x578c3c=!0x0);}}}return _0x578c3c;}),this['_registerLegacyDescription'](_0x80f198);}['_registerLegacyDescription'](_0x586cb9){const _0x20ff7f=this['editor'],_0x11468f=_0x20ff7f['locale'];_0x20ff7f['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5e7c87=>{if('formatBlock'!=_0x5e7c87['type']&&'formatInline'!=_0x5e7c87['type'])return;const {data:_0x1389b0}=_0x5e7c87;if(!_0x1389b0||'imageStyle'!=_0x1389b0['commandName'])return;const _0x4026be=_0x1389b0['commandParams'][0x0]['value'];return _0x2f2b9a('side'===_0x4026be?o(_0x11468f,'FORMAT_SIDE_IMAGE'):_0x586cb9[_0x4026be]||_0x4026be);function _0x2f2b9a(_0x4bb6bc){return{'type':'format','content':o(_0x11468f,'*Format:*\x20%0',_0x4bb6bc)};}});}}class ot extends _0x43660f{['afterInit'](){const _0x19e613=this['editor'],_0xd547c0=_0x19e613['commands']['get']('importWord'),_0x49bf57=_0x19e613['commands']['get']('trackChanges');_0xd547c0&&(_0xd547c0['on']('execute',(_0x4dbed8,[,_0x3bf260])=>{this['_trackChangesValueDuringImport']=_0x49bf57['value'],_0x3bf260['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd547c0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd547c0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x49bf57['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x19e613['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3d3616,_0x79fa83){const {suggestions:_0x5cee83}=_0x79fa83,_0x28e1ff=this['editor']['commands']['get']('trackChanges'),_0x388730=_0x28e1ff['value'];this['_trackChangesValueDuringImport']!==_0x388730&&(_0x28e1ff['execute'](),this['_trackChangesExecuted']=!0x0),_0x5cee83&&_0x5cee83['forEach'](({id:_0x1ef1d6,type:_0x597b0e,author:_0x1e6928,created_at:_0x4fd9dd})=>{const _0x5e8325={'id':_0x1ef1d6,'type':_0x597b0e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1e6928,'createdAt':_0x4fd9dd?new Date(_0x4fd9dd):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5e8325);});}constructor(_0x2e2a34){super(_0x2e2a34),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x43660f{['afterInit'](){const _0xda9075=this['editor'],_0x57027e=_0xda9075['plugins']['get']('TrackChangesEditing');if(_0xda9075['plugins']['has']('IndentEditing')&&(_0x57027e['enableCommand']('indent'),_0x57027e['enableCommand']('outdent')),_0xda9075['plugins']['has']('IndentBlock')){for(const _0x576b3b of['indentBlock','outdentBlock'])_0x57027e['_enableDefaultAttributesIntegration'](_0x576b3b);}const _0x1bd125=_0xda9075['locale'];_0x57027e['_registerBlockAttribute']('blockIndent'),_0x57027e['_descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1bd125,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13d28e=this['editor'],_0x2c8570=_0x13d28e['locale'],_0x2aadf5=_0x13d28e['plugins']['get']('TrackChangesEditing');_0x2aadf5['_descriptionFactory']['registerDescriptionCallback'](_0x206a6a=>{if('formatBlock'!=_0x206a6a['type'])return;const {data:_0x10e701}=_0x206a6a;if(!_0x10e701)return;if('indentBlock'!=_0x10e701['commandName']&&'outdentBlock'!=_0x10e701['commandName'])return;const _0x3af201=_0x206a6a['getItems']()[0x0],_0x24c1db=_0x2aadf5['_descriptionFactory']['getItemLabel'](_0x3af201);return'indentBlock'==_0x10e701['commandName']?{'type':'format','content':o(_0x2c8570,'*Indent:*\x20%0',_0x24c1db)}:'outdentBlock'==_0x10e701['commandName']?{'type':'format','content':o(_0x2c8570,'*Outdent:*\x20%0',_0x24c1db)}:void 0x0;});}}class at extends _0x43660f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x43660f{['afterInit'](){const _0x276ea3=this['editor'];if(!_0x276ea3['plugins']['has']('LinkEditing'))return;const _0x3594fb=_0x276ea3['plugins']['get']('TrackChangesEditing'),_0x3a6119=_0x276ea3['commands']['get']('link');_0x3594fb['_enableDefaultAttributesIntegration']('link',['linkHref',..._0x3a6119['manualDecorators']['map'](_0x4ea737=>_0x4ea737['id'])]),_0x3594fb['_enableDefaultAttributesIntegration']('unlink');for(const _0x4501f8 of _0x3a6119['manualDecorators'])_0x3594fb['_descriptionFactory']['registerAttributeLabel'](_0x4501f8['id'],'link\x20('+_0x4501f8['label']['toLowerCase']()+')');_0x3594fb['_descriptionFactory']['registerDescriptionCallback'](_0x21237b=>{if('attribute'!=_0x21237b['type'])return;const {data:_0xced5a6}=_0x21237b;if(!_0xced5a6||'linkHref'!=_0xced5a6['key'])return;const _0x3419cb=_0xced5a6['newValue'],_0x1553b4=_0x276ea3['locale'];return{'type':'format','content':null==_0x3419cb?o(_0x1553b4,'*Remove\x20link*'):o(_0x1553b4,'*Set\x20link:*\x20%0','\x22'+_0x3419cb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x401778=this['editor'],_0x2b62ae=_0x401778['locale'];_0x401778['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x60e650=>{if('formatInline'!=_0x60e650['type'])return;const {data:_0x1e898d}=_0x60e650;if(_0x1e898d){if('link'==_0x1e898d['commandName']){const _0x384d58=_0x1e898d['commandParams'][0x0];return{'type':'format','content':o(_0x2b62ae,'*Set\x20link:*\x20%0','\x22'+_0x384d58+'\x22')};}return'unlink'==_0x1e898d['commandName']?{'type':'format','content':o(_0x2b62ae,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x43660f{['afterInit'](){const _0x3898dc=this['editor'],_0x394f31=_0x3898dc['locale'];if(!_0x3898dc['plugins']['has']('LegacyListEditing'))return;const _0x307c85=_0x3898dc['plugins']['get']('TrackChangesEditing'),_0x1c59b2=_0x3898dc['plugins']['has']('LegacyTodoListEditing');function _0x42623b(_0x4aceed){return()=>{const _0xb98fe0=_0x3898dc['model']['document']['selection'],_0x4e5ce4=_0x3898dc['commands']['get'](_0x4aceed);if(_0x4e5ce4['value'])return void _0x3898dc['execute']('paragraph',{});const _0x51a906=_0x4aceed['slice'](0x0,-0x4),_0xfa036f=function(_0x55d7bf,_0x573f69,_0x396a43){let _0x17ab64=Array['from'](_0x55d7bf)['filter'](_0x1e6e3f=>function(_0x55664d,_0x2e759e){return _0x2e759e['checkChild'](_0x55664d['parent'],'listItem')&&!_0x2e759e['isObject'](_0x55664d);}(_0x1e6e3f,_0x396a43));_0x17ab64=_0x17ab64['filter'](_0x240afb=>!_0x240afb['is']('element','listItem')||_0x240afb['getAttribute']('listType')!=_0x573f69);const _0xfe753d=new Set();for(const _0x123d5a of _0x17ab64)_0x123d5a['is']('element','listItem')?_0xfe753d['add'](me(_0x123d5a)):_0xfe753d['add'](_0x123d5a);return Array['from'](_0xfe753d);}(_0xb98fe0['getSelectedBlocks'](),_0x51a906,_0x3898dc['model']['schema']);_0x3898dc['model']['change'](()=>{for(const _0x9e384b of _0xfa036f)_0x307c85['markBlockFormat'](_0x9e384b,{'commandName':_0x4aceed,'commandParams':[{'forceValue':!_0x4e5ce4['value']}],'formatGroupId':'blockName'},fe(_0x9e384b));});};}function _0x5ef010(_0x5f31ef){return()=>{const _0x27f1fc=function(_0x1b6e11){let _0xe9e296=Array['from'](_0x1b6e11);const _0x15ac81=_0xe9e296['findIndex'](_0x4e4455=>'listItem'!=_0x4e4455['name']);return _0x15ac81>-0x1&&(_0xe9e296=_0xe9e296['slice'](0x0,_0x15ac81)),_0xe9e296;}(_0x3898dc['model']['document']['selection']['getSelectedBlocks']()),_0x344be6=_0x3898dc['model']['createRange'](_0x3898dc['model']['createPositionAt'](_0x27f1fc[0x0],'before'),_0x3898dc['model']['createPositionAt'](_0x27f1fc[_0x27f1fc['length']-0x1],'end'));_0x3898dc['model']['change'](()=>{_0x307c85['markBlockFormat'](_0x344be6,{'commandName':_0x5f31ef,'commandParams':[],'formatGroupId':'listIndent'},function(_0x430bb8){const _0x126e1e=new Set();for(const _0x517691 of _0x430bb8){let _0x5686ea=_0x517691['nextSibling'];for(;_0x5686ea&&_0x5686ea['getAttribute']('listIndent')>_0x517691['getAttribute']('listIndent');)_0x126e1e['add'](_0x5686ea),_0x5686ea=_0x5686ea['nextSibling'];}return Array['from'](_0x126e1e);}(_0x27f1fc));});};}_0x307c85['enableCommand']('numberedList',_0x42623b('numberedList')),_0x307c85['enableCommand']('bulletedList',_0x42623b('bulletedList')),_0x1c59b2&&_0x307c85['enableCommand']('todoList',_0x42623b('todoList')),_0x307c85['enableCommand']('indentList',_0x5ef010('indentList')),_0x307c85['enableCommand']('outdentList',_0x5ef010('outdentList')),_0x1c59b2&&_0x307c85['enableCommand']('checkTodoList',()=>{const _0xe0e92b=_0x3898dc['commands']['get']('checkTodoList'),_0x4b9354=Array['from'](_0xe0e92b['_selectedElements']);_0x4b9354['filter'](_0x28ded3=>_0x28ded3['getAttribute']('todoListChecked')!=_0xe0e92b['value']),_0x3898dc['model']['change'](()=>{for(const _0x5b9240 of _0x4b9354)_0x307c85['markBlockFormat'](_0x5b9240,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe0e92b['value']}]});});}),_0x307c85['_descriptionFactory']['registerElementLabel']('listItem',_0x465b9b=>o(_0x394f31,'ELEMENT_LIST_ITEM',_0x465b9b)),_0x307c85['_descriptionFactory']['registerDescriptionCallback'](_0x5a3400=>{if('formatBlock'!=_0x5a3400['type']&&'formatInline'!=_0x5a3400['type'])return;const {data:_0x5afcf4}=_0x5a3400;if(_0x5afcf4){if('numberedList'==_0x5afcf4['commandName']||'bulletedList'==_0x5afcf4['commandName']||'todoList'==_0x5afcf4['commandName'])switch(_0x5afcf4['commandName']['replace']('List','')){case'bulleted':return _0x15decc(o(_0x394f31,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15decc(o(_0x394f31,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15decc(o(_0x394f31,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5afcf4['commandName'])return{'type':'format','content':o(_0x394f31,'*Indent:*\x20%0',o(_0x394f31,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5afcf4['commandName'])return{'type':'format','content':o(_0x394f31,'*Outdent:*\x20%0',o(_0x394f31,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5afcf4['commandName'])return _0x5afcf4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x394f31,'*Check\x20item*')}:{'type':'format','content':o(_0x394f31,'*Uncheck\x20item*')};}function _0x15decc(_0x8a10b0){return{'type':'format','content':o(_0x394f31,'*Change\x20to:*\x20%0',_0x8a10b0)};}});}}function me(_0x3a8a53){const _0x2dfd8b=_0x3a8a53['getAttribute']('listIndent');if(0x0==_0x2dfd8b)return _0x3a8a53;let _0x5a9fe3=_0x3a8a53;for(;_0x3a8a53['previousSibling']&&_0x3a8a53['previousSibling']['is']('element','listItem');){const _0x1d9fde=_0x3a8a53['previousSibling']['getAttribute']('listIndent');if(_0x1d9fde==_0x2dfd8b)_0x5a9fe3=_0x3a8a53['previousSibling'];else{if(_0x1d9fde<_0x2dfd8b)break;}_0x3a8a53=_0x3a8a53['previousSibling'];}return _0x5a9fe3;}function fe(_0xc5750d){const _0x1f3bce=[];if(_0xc5750d['is']('element','listItem')&&_0xc5750d['getAttribute']('listIndent')>0x0){let _0x7ea216=_0xc5750d['nextSibling'];for(;_0x7ea216&&'listItem'==_0x7ea216['name']&&_0x7ea216['getAttribute']('listIndent')==_0xc5750d['getAttribute']('listIndent');)_0x1f3bce['push'](_0x7ea216),_0x7ea216=_0x7ea216['nextSibling'];}return _0x1f3bce;}class K extends _0x43660f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f42d2=this['editor']['config']['get']('list.properties'),_0x1c1ec6=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f42d2['styles']&&_0x1c1ec6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f42d2['reversed']&&_0x1c1ec6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f42d2['startIndex']&&_0x1c1ec6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c1ec6['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2e84e5,_0x37f19d={}){const _0xf5be7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d631d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xf5be7d['markMultiRangeBlockFormat'](_0x4d631d,{'commandName':'listStyle','commandParams':[{'type':_0x37f19d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2c5af5,_0x175de2={}){const _0x38840a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x270cc9=this['_getSuggestionBlocks'](_0x305b90=>_0x305b90['is']('element','listItem')&&'numbered'===_0x305b90['getAttribute']('listType'));if(_0x270cc9['length']<0x1)return;const _0x2fcd0a=_0x270cc9['map'](_0xba0d0a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xba0d0a,'before'),this['editor']['model']['createPositionAt'](_0xba0d0a,0x0)));this['editor']['model']['change'](()=>{_0x38840a['markMultiRangeBlockFormat'](_0x2fcd0a,{'commandName':'listReversed','commandParams':[{'reversed':_0x175de2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x194eb2,_0x38085f={}){const _0x66d3fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x312413=this['_getSuggestionBlocks'](_0x4fb9b5=>_0x4fb9b5['is']('element','listItem')&&'numbered'===_0x4fb9b5['getAttribute']('listType'));if(_0x312413['length']<0x1)return;const _0x3f18d4=_0x312413['map'](_0x4bc198=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bc198,'before'),this['editor']['model']['createPositionAt'](_0x4bc198,0x0)));this['editor']['model']['change'](()=>{_0x66d3fc['markMultiRangeBlockFormat'](_0x3f18d4,{'commandName':'listStart','commandParams':[{'startIndex':_0x38085f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3d0668){if('formatBlock'!=_0x3d0668['type']&&'formatInline'!=_0x3d0668['type'])return;const _0x3c8fba=this['editor']['locale'],{data:_0x67fce}=_0x3d0668;if(!_0x67fce)return;let _0x199e24,_0x5cbc15;switch(_0x67fce['commandName']){case'listStyle':_0x199e24='*Change\x20to:*\x20%0',_0x5cbc15={'type':'format','content':o(_0x3c8fba,_0x199e24,o(_0x3c8fba,this['_getTranslationKeyForListStyle'](_0x67fce['commandParams'][0x0]['type'])))};break;case'listReversed':_0x199e24=_0x67fce['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5cbc15={'type':'format','content':o(_0x3c8fba,_0x199e24)};break;case'listStart':_0x199e24='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5cbc15={'type':'format','content':o(_0x3c8fba,_0x199e24,_0x67fce['commandParams'][0x0]['startIndex'])};}return _0x5cbc15;}['_getSuggestionBlocksForListStyle'](){var _0x523fe2,_0x541975,_0x54bf34,_0x1895b1;const _0x2d8cb8=this['editor']['plugins']['get']('LegacyListUtils');let _0x369cea=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x523fe2=_0x369cea[0x0])||void 0x0===_0x523fe2?void 0x0:_0x523fe2['is']('element','listItem'))&&_0x369cea['unshift'](..._0x2d8cb8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x541975=_0x369cea[_0x369cea['length']-0x1])||void 0x0===_0x541975?void 0x0:_0x541975['is']('element','listItem'))&&_0x369cea['push'](..._0x2d8cb8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x369cea=[...new Set(_0x369cea)],(null===(_0x1895b1=null===(_0x54bf34=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x54bf34?void 0x0:_0x54bf34['parent'])||void 0x0===_0x1895b1?void 0x0:_0x1895b1['is']('element','listItem'))&&(_0x369cea=_0x369cea['filter'](_0x24e8d5=>_0x24e8d5['is']('element','listItem'))),_0x369cea;}['_getSuggestionBlocks'](_0x5c67d8){const _0x17a38a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ac9a5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5c67d8)['map'](_0x2518e3=>{const _0x6c1ad5=this['editor']['model']['createPositionAt'](_0x2518e3,0x0);return[..._0x17a38a['getSiblingNodes'](_0x6c1ad5,'backward'),..._0x17a38a['getSiblingNodes'](_0x6c1ad5,'forward')];})['flat']();return _0x2ac9a5=[...new Set(_0x2ac9a5)],_0x2ac9a5;}['_getTranslationKeyForListStyle'](_0x596efc){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x596efc)||'default')['toUpperCase']()+'_LIST_'+_0x596efc['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x43660f{['afterInit'](){const _0x4e100b=this['editor'];if(!_0x4e100b['plugins']['has']('MediaEmbedEditing'))return;const _0x37753e=_0x4e100b['plugins']['get']('TrackChangesEditing'),_0xc35b87=_0x4e100b['locale'];_0x37753e['enableCommand']('mediaEmbed'),_0x37753e['_descriptionFactory']['registerElementLabel']('media',_0x4dc05b=>o(_0xc35b87,'ELEMENT_MEDIA',_0x4dc05b)),_0x4e100b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x270dbc,{writer:_0x5e7851,options:_0x2c06e6})=>{if(_0x2c06e6['showSuggestionHighlights'])return _0x5e7851['createEmptyElement']('div');},'converterPriority':'high'}),_0x4e100b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5dd833,_0x473894,_0x25e2f5)=>{_0x25e2f5['options']['showSuggestionHighlights']&&_0x5dd833['stop']();},{'priority':'high'});}}class gt extends _0x43660f{['afterInit'](){const _0x2067ed=this['editor'];_0x2067ed['plugins']['has']('MentionEditing')&&_0x2067ed['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x43660f{['afterInit'](){const _0xe6507=this['editor'],_0xd80a44=_0xe6507['plugins']['get']('TrackChangesEditing');_0xe6507['plugins']['has']('MultiLevelList')&&(_0xd80a44['_enableDefaultAttributesIntegration']('multiLevelList',[],['listMarkerStyle']),_0xd80a44['_descriptionFactory']['registerDescriptionCallback'](_0x28b205=>this['handleDescriptions'](_0x28b205)));}['handleDescriptions'](_0x2f9321){const _0x477bc9=this['editor']['locale'],{data:_0x1f91b4}=_0x2f9321,_0x3c9b08={'type':'format','content':''};if(_0x1f91b4&&'listMarkerStyle'==_0x1f91b4['key']){if(!_0x1f91b4['oldValue'])return{'type':'format','content':o(_0x477bc9,'*Set\x20format:*\x20%0',o(_0x477bc9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f91b4['newValue']+')'};if(!_0x1f91b4['newValue']){let _0x3c600f=_0x2f9321['head'];for(;_0x3c600f;){if(_0x3c600f['data']&&'listType'==_0x3c600f['data']['key']&&_0x3c600f['data']['newValue'])return _0x3c9b08;_0x3c600f=_0x3c600f['next'];}return{'type':'format','content':o(_0x477bc9,'*Remove\x20format:*\x20%0',o(_0x477bc9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f91b4['oldValue']+')'};}}}}class mt extends _0x43660f{['afterInit'](){const _0x2ce464=this['editor'];if(!_0x2ce464['plugins']['has']('PageBreakEditing'))return;_0x2ce464['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3a1e32=_0x2ce464['plugins']['get']('TrackChangesEditing'),_0x3a010e=_0x2ce464['locale'];_0x3a1e32['_descriptionFactory']['registerElementLabel']('pageBreak',_0x169c79=>o(_0x3a010e,'ELEMENT_PAGE_BREAK',_0x169c79));}}class dt extends _0x43660f{['afterInit'](){const _0x14b10d=this['editor'];if(!_0x14b10d['plugins']['has']('Paragraph'))return;const _0x2514d7=_0x14b10d['locale'],_0x477733=_0x14b10d['plugins']['get']('TrackChangesEditing');_0x477733['_descriptionFactory']['registerElementLabel']('paragraph',_0x39b05d=>o(_0x2514d7,'ELEMENT_PARAGRAPH',_0x39b05d)),_0x477733['_enableDefaultAttributesIntegration']('paragraph'),_0x477733['enableCommand']('insertParagraph'),_0x14b10d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x14b10d),{'priority':'highest'}),_0x14b10d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x460aa1,_0x23deac,_0x19eb7a)=>{_0x19eb7a['options']['showSuggestionHighlights']&&nr(_0x14b10d,{'showActiveMarker':!0x1})(_0x460aa1,_0x23deac,_0x19eb7a);},{'priority':'highest'});const _0xbc0ae=_0x477733['_descriptionFactory'];_0xbc0ae['registerDescriptionCallback'](_0x59020b=>{if('insertion'!==_0x59020b['type'])return;const {start:_0x523c8f,end:_0x5b33c7}=_0x59020b['getFirstRange']();if(!_0x523c8f['isTouching'](_0x5b33c7)||!_0x523c8f['nodeAfter'])return;const _0x1353c1=_0x14b10d['model']['schema'],_0x59b3a7=_0x523c8f['nodeAfter'];return _0x1353c1['isBlock'](_0x59b3a7)&&!_0x1353c1['isLimit'](_0x59b3a7)&&_0x1353c1['checkChild'](_0x59b3a7,'$text')?{'type':'insertion','content':o(_0x2514d7,'*Insert:*\x20%0',_0xbc0ae['getItemLabel'](_0x59b3a7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x894f0e=this['editor'],_0xc04d5d=_0x894f0e['locale'];_0x894f0e['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x55933d=>{if('formatBlock'!=_0x55933d['type'])return;const {data:_0x5ed445}=_0x55933d;return _0x5ed445&&'paragraph'==_0x5ed445['commandName']?{'type':'format','content':o(_0xc04d5d,'*Change\x20to:*\x20%0',o(_0xc04d5d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2362c3,{showActiveMarker:_0x234fc5=!0x0}={}){return(_0x21ea2e,_0x4f339a,_0xc3958a)=>{const _0x38786b=_0x2362c3['plugins']['get']('TrackChangesEditing'),_0xa2eeca=_0x4f339a['markerRange']['start'],_0x4e7bd2=_0x4f339a['markerRange']['end'],_0x5e2b07=_0x2362c3['model']['schema'];if(!_0xa2eeca['isTouching'](_0x4e7bd2)||!_0xa2eeca['nodeAfter'])return;const _0x54f28b=_0xa2eeca['nodeAfter'];if(_0x5e2b07['isBlock'](_0x54f28b)&&!_0x5e2b07['isLimit'](_0x54f28b)&&_0x5e2b07['checkChild'](_0x54f28b,'$text')){if(!_0xc3958a['consumable']['consume'](_0x4f339a['markerRange'],_0x21ea2e['name']))return;const _0x738662=_0xc3958a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x20b9cc=_0xc3958a['mapper']['toViewPosition'](_0x4e7bd2);_0x234fc5&&_0x38786b['activeMarkers']['includes'](_0x4f339a['markerName'])&&_0xc3958a['writer']['addClass']('ck-suggestion-marker--active',_0x738662),_0xc3958a['writer']['insert'](_0x20b9cc,_0x738662),_0xc3958a['mapper']['bindElementToMarker'](_0x738662,_0x4f339a['markerName']);}};}class pt extends _0x43660f{['afterInit'](){const _0x6f1d8e=this['editor'];if(!_0x6f1d8e['plugins']['has']('RemoveFormatEditing'))return;_0x6f1d8e['plugins']['get']('TrackChangesEditing')['_enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ff8d0=this['editor'];_0x4ff8d0['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x261f95=>{if('formatBlock'!=_0x261f95['type']&&'formatInline'!=_0x261f95['type'])return;const {data:_0xfe235c}=_0x261f95;return _0xfe235c&&'removeFormat'==_0xfe235c['commandName']?{'type':'format','content':o(_0x4ff8d0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x43660f{['afterInit'](){const _0x4697a5=this['editor'];if(!_0x4697a5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x44fbe7=_0x4697a5['plugins']['get']('TrackChangesEditing');_0x44fbe7['enableCommand']('goToPreviousRestrictedEditingException'),_0x44fbe7['enableCommand']('goToNextRestrictedEditingException');const _0x4dc92f=_0x4697a5['plugins']['get']('RestrictedEditingModeEditing');_0x4dc92f['enableCommand']('trackChanges'),_0x4dc92f['enableCommand']('acceptSuggestion'),_0x4dc92f['enableCommand']('discardSuggestion'),_0x4dc92f['enableCommand']('acceptAllSuggestions'),_0x4dc92f['enableCommand']('discardAllSuggestions'),_0x4dc92f['enableCommand']('acceptSelectedSuggestions'),_0x4dc92f['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x43660f{static get['requires'](){return[_0x27d317];}['init'](){const _0x44f2f3=this['editor'],_0x3c8392=_0x44f2f3['plugins']['get']('TrackChangesEditing');_0x3c8392['enableCommand']('shiftEnter'),_0x44f2f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x44f2f3),{'priority':'high'}),_0x44f2f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x44f2f3),{'priority':'high'}),_0x44f2f3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d3493,_0x279e0e,_0x56777b)=>{_0x56777b['options']['showSuggestionHighlights']&&de(_0x44f2f3,{'showActiveMarker':!0x1})(_0x2d3493,_0x279e0e,_0x56777b);}),_0x3c8392['_descriptionFactory']['registerElementLabel']('softBreak',_0x14129f=>o(_0x44f2f3['locale'],'ELEMENT_LINE_BREAK',_0x14129f));}}function de(_0x529b40,{showActiveMarker:_0x34432e=!0x0}={}){return(_0x45dded,_0x54e834,_0x16c543)=>{const _0x2b060e=_0x529b40['plugins']['get']('TrackChangesEditing');if(!_0x16c543['consumable']['test'](_0x54e834['markerRange'],_0x45dded['name']))return;const _0x44af02=_0x529b40['model'];for(const _0x2a8ec0 of _0x54e834['markerRange']['getItems']()){if(!_0x2a8ec0['is']('element','softBreak'))continue;const _0x2e4f3c='deletion'==_0x54e834['markerName']['split'](':')[0x1]?'merge':'split',_0x4ab61f=_0x16c543['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e4f3c}),_0x1a1572=_0x16c543['mapper']['toViewPosition'](_0x44af02['createPositionBefore'](_0x2a8ec0));_0x34432e&&_0x2b060e['activeMarkers']['includes'](_0x54e834['markerName'])&&_0x16c543['writer']['addClass']('ck-suggestion-marker--active',_0x4ab61f),_0x16c543['writer']['insert'](_0x1a1572,_0x4ab61f),_0x16c543['mapper']['bindElementToMarker'](_0x4ab61f,_0x54e834['markerName']);}};}class wt extends _0x43660f{['afterInit'](){const _0x6905af=this['editor'],_0x577fd8=_0x6905af['model'],_0x2f4931=_0x6905af['locale'];if(!_0x6905af['plugins']['has']('StandardEditingModeEditing'))return;const _0x28a385=_0x6905af['plugins']['get']('TrackChangesEditing'),_0x584d0e='restrictedEditingException',_0x44e024=_0x6905af['commands']['get'](_0x584d0e);_0x28a385['enableCommand'](_0x584d0e,(_0x3438fa,_0x4b22b1={})=>{const _0x4c8648=_0x577fd8['document']['selection'];if(_0x4c8648['isCollapsed'])return void _0x3438fa(_0x4b22b1);const _0x554507=void 0x0!==_0x4b22b1['forceValue']?_0x4b22b1['forceValue']:!_0x44e024['value'];_0x577fd8['change'](()=>{const _0x843868=Array['from'](_0x4c8648['getRanges']());for(const _0x1d0ff2 of _0x843868){const _0x188d9f=_0x554507?[_0x1d0ff2]:io(_0x584d0e,_0x1d0ff2,_0x577fd8);for(const _0x15b838 of _0x188d9f)_0x28a385['markInlineFormat'](_0x15b838,{'commandName':_0x584d0e,'commandParams':[{'forceValue':_0x554507}]});}});}),_0x28a385['_descriptionFactory']['registerDescriptionCallback'](_0x4f25ec=>{if('formatBlock'!=_0x4f25ec['type']&&'formatInline'!=_0x4f25ec['type'])return;const {data:_0x32918b}=_0x4f25ec;return _0x32918b&&_0x32918b['commandName']==_0x584d0e?_0x32918b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f4931,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2f4931,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x43660f{['afterInit'](){const _0x9b94f3=this['editor'];if(!_0x9b94f3['plugins']['has']('Style')||!_0x9b94f3['plugins']['has']('DataSchema'))return;const _0x3e2b32=_0x9b94f3['plugins']['get']('TrackChangesEditing'),_0x4a83f7=_0x9b94f3['locale'],_0xdc2eed=_0x9b94f3['config']['get']('style')||{},_0x61d33f=_0x9b94f3['plugins']['get']('GeneralHtmlSupport'),_0x455548=_0x9b94f3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x9b94f3['plugins']['get']('DataSchema'),_0xdc2eed['definitions']);_0x3e2b32['_enableDefaultAttributesIntegration']('style');const _0x1e76dd=new Set();for(const _0x2c5286 of _0x455548['block']){const _0x545ccc=_0x61d33f['getGhsAttributeNameForElement'](_0x2c5286['element']);_0x1e76dd['add'](_0x545ccc);}const _0x1fa7ac=new Set();for(const _0x32b04b of _0x455548['inline']){const _0x2adc51=_0x61d33f['getGhsAttributeNameForElement'](_0x32b04b['element']);_0x1fa7ac['add'](_0x2adc51);for(const _0x57c23c of _0x32b04b['ghsAttributes'])_0x1fa7ac['add'](_0x57c23c);}for(const _0x42150e of _0x1e76dd)_0x3e2b32['_registerBlockAttribute'](_0x42150e),_0x3e2b32['_descriptionFactory']['registerAttributeLabel'](_0x42150e,o(_0x4a83f7,'FORMAT_STYLE'));for(const _0x103204 of _0x1fa7ac)_0x3e2b32['_registerInlineAttribute'](_0x103204),_0x3e2b32['_descriptionFactory']['registerAttributeLabel'](_0x103204,o(_0x4a83f7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x501013=this['editor'],_0x20e027=_0x501013['locale'];_0x501013['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x92a4b4=>{if('formatBlock'!=_0x92a4b4['type']&&'formatInline'!=_0x92a4b4['type'])return;const {data:_0x241ce4}=_0x92a4b4;return _0x241ce4&&'style'===_0x241ce4['commandName']?_0x241ce4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20e027,'*Set\x20format:*\x20%0',_0x241ce4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x20e027,'*Remove\x20format:*\x20%0',_0x241ce4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x43660f{['afterInit'](){const _0x53db38=this['editor'],_0x1efd65=_0x53db38['model']['document']['selection'];if(!_0x53db38['plugins']['has']('TableEditing'))return;const _0x1a2f9d=_0x53db38['locale'],_0x4ff48b=_0x53db38['plugins']['get']('TrackChangesEditing'),_0x3ad161=_0x53db38['plugins']['get']('TableUtils');_0x4ff48b['_descriptionFactory']['registerElementLabel']('table',_0x15723f=>o(_0x1a2f9d,'ELEMENT_TABLE',_0x15723f)),this['_setupColumnsRowsFixing'](),_0x4ff48b['enableCommand']('insertTable'),_0x4ff48b['enableCommand']('selectTableRow'),_0x4ff48b['enableCommand']('selectTableColumn');for(const _0xeb44bd of['insertTableRowAbove','insertTableRowBelow']){const _0x498e3b=_0x53db38['commands']['get'](_0xeb44bd);_0x4ff48b['enableCommand'](_0xeb44bd,_0x23d95d=>{_0x53db38['model']['change'](_0x1f2626=>{_0x23d95d();const _0x569629='above'===_0x498e3b['order'],_0x45b7d7=_0x3ad161['getSelectionAffectedTableCells'](_0x1efd65),_0x428a10=_0x3ad161['getRowIndexes'](_0x45b7d7),_0x3f0e7b=_0x569629?_0x428a10['first']-0x1:_0x428a10['last']+0x1,_0x6bedc0=_0x45b7d7[0x0]['findAncestor']('table'),_0x30a538=_0x3ad161['createTableWalker'](_0x6bedc0,{'startRow':_0x3f0e7b,'endRow':_0x3f0e7b}),_0x17b7b1=Array['from'](_0x30a538)['map'](_0x43172d=>_0x1f2626['createRangeOn'](_0x43172d['cell']));_0x4ff48b['markMultiRangeInsertion'](_0x17b7b1,'tableRow');});});}for(const _0x10a62a of['insertTableColumnLeft','insertTableColumnRight']){const _0x2d7328=_0x53db38['commands']['get'](_0x10a62a);_0x4ff48b['enableCommand'](_0x10a62a,_0x2a781e=>{_0x53db38['model']['change'](_0x1e43d5=>{_0x2a781e();const _0x373ad4='left'===_0x2d7328['order'],_0xf2d80c=_0x3ad161['getSelectionAffectedTableCells'](_0x1efd65),_0x28e8fd=_0x3ad161['getColumnIndexes'](_0xf2d80c),_0x11891b=_0x373ad4?_0x28e8fd['first']-0x1:_0x28e8fd['last']+0x1,_0x4a7cae=_0xf2d80c[0x0]['findAncestor']('table'),_0x4550c6=_0x3ad161['createTableWalker'](_0x4a7cae,{'startRow':0x0,'column':_0x11891b,'includeAllSlots':!0x1}),_0x37bed9=Array['from'](_0x4550c6)['map'](_0x14682a=>_0x1e43d5['createRangeOn'](_0x14682a['cell']));_0x4ff48b['markMultiRangeInsertion'](_0x37bed9,'tableColumn');});});}for(const _0x115a3f of['removeTableRow','removeTableColumn']){const _0x4463ff=_0x115a3f['substr'](0xb),_0x3c72a0=_0x4463ff['toLowerCase'](),_0x2c9997=_0x3c72a0['substr'](0x0,0x3)+'span',_0x414d44='table'+_0x4463ff,_0x10e3a7='min'+_0x4463ff,_0x45b744='max'+_0x4463ff;_0x4ff48b['enableCommand'](_0x115a3f,()=>{_0x53db38['model']['change'](_0x4cd183=>{const _0xc30228=_0x3ad161['getSelectionAffectedTableCells'](_0x1efd65),_0x3b61e6=_0xc30228[0x0]['findAncestor']('table');let _0x1c5d7f;if('removeTableRow'==_0x115a3f){const _0x59c59d=_0x3ad161['getRowIndexes'](_0xc30228);_0x1c5d7f={'startRow':_0x59c59d['first'],'endRow':_0x59c59d['last'],'includeAllSlots':!0x0};}else{const _0x5bcb02=_0x3ad161['getColumnIndexes'](_0xc30228);_0x1c5d7f={'startColumn':_0x5bcb02['first'],'endColumn':_0x5bcb02['last'],'includeAllSlots':!0x0};}const _0x399215=_0x3ad161['createTableWalker'](_0x3b61e6,_0x1c5d7f),_0xad1705=Array['from'](_0x399215)['map'](({cell:_0x3f3ff2})=>_0x3f3ff2),_0x74e672=Ee(_0xad1705['filter'](_0x33d33b=>_0x33d33b['hasAttribute'](_0x2c9997))),_0x38b990=Ee(_0xad1705['filter'](_0x1f9d91=>!_0x1f9d91['hasAttribute'](_0x2c9997)))['map'](_0x309782=>_0x4cd183['createRangeOn'](_0x309782)),_0x3fcdb7=_0x4ff48b['markMultiRangeDeletion'](_0x38b990,_0x414d44);if(_0x3fcdb7&&('tableRow'==_0x3fcdb7['subType']||'tableColumn'==_0x3fcdb7['subType'])){const _0xca3ffc=this['_getSuggestionCoords'](_0x3fcdb7);for(const _0x18df0c of _0x74e672){const _0x36de63=_0x4cd183['createRangeOn'](_0x18df0c),_0x3c7857=_0x3ad161['getCellLocation'](_0x18df0c),_0x457d82=_0x18df0c['getAttribute'](_0x2c9997)-0x1,_0x4a18c6=_0xca3ffc[_0x10e3a7],_0x15532f=_0xca3ffc[_0x45b744];_0x4a18c6<=_0x3c7857[_0x3c72a0]&&_0x3c7857[_0x3c72a0]+_0x457d82<=_0x15532f&&_0x3fcdb7['addRange'](_0x36de63);}}});});}function _0x47f64b(_0x340f45){const _0x43238f=Array['from'](_0x1efd65['getRanges']())['map'](_0x6e49bd=>_0x30a6a3['fromRange'](_0x6e49bd));_0x53db38['model']['change'](_0x40a12c=>{const _0x5e5e96=_0x40a12c['batch'];_0x340f45=_0x340f45['filter'](_0x2810e8=>'$graveyard'!=_0x2810e8['root']['rootName']),_0x40a12c['setSelection'](_0x340f45),_0x53db38['commands']['get']('removeTableRow')['refresh'](),_0x53db38['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x53db38['model']['enqueueChange'](()=>{_0x53db38['model']['enqueueChange'](_0x5e5e96,_0x51294e=>{const _0x236f55=_0x43238f['filter'](_0x493343=>'$graveyard'!=_0x493343['root']['rootName']);_0x236f55['length']>0x0&&_0x51294e['setSelection'](_0x236f55);for(const _0x5e4862 of _0x43238f)_0x5e4862['detach']();});});});}function _0x2c70b5(_0x4b72c6){_0x53db38['model']['change'](_0x509b74=>{const _0xde6875=Array['from'](_0x1efd65['getRanges']())['map'](_0x29340e=>_0x30a6a3['fromRange'](_0x29340e)),_0x4966eb=[];for(const _0x111485 of _0x4b72c6)for(const _0x16e241 of _0x111485['getItems']({'shallow':!0x0}))_0x4966eb['push'](_0x16e241);for(const _0x126b59 of _0x4966eb)'$graveyard'!=_0x126b59['root']['rootName']&&(_0x509b74['setSelection'](_0x509b74['createPositionAt'](_0x126b59,0x0)),_0x53db38['commands']['get']('removeTableColumn')['refresh'](),_0x53db38['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42d139=_0xde6875['filter'](_0x58d314=>'$graveyard'!=_0x58d314['root']['rootName']);_0x42d139['length']>0x0&&_0x509b74['setSelection'](_0x42d139);for(const _0x4a3db0 of _0xde6875)_0x4a3db0['detach']();});}function _0x329fcc(_0x4a5bf2,_0xd9726f){return _0xd9726f['every'](_0x19acb3=>_0x4a5bf2['some'](_0x4693a3=>_0x4693a3['end']['isEqual'](_0x19acb3['start'])||_0x19acb3['end']['isEqual'](_0x4693a3['start'])));}function _0x519ba0(_0x1e9f99,_0x3d416c){return _0x1e9f99['some'](_0x1b1c18=>_0x3d416c['some'](_0x237185=>_0x1b1c18['end']['isTouching'](_0x237185['start'])));}_0x53db38['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d8864,_0x48d1fc,_0x1ad1ac)=>{if(!_0x1ad1ac['options']['showSuggestionHighlights'])return;const _0x2b8627=_0x48d1fc['item'];if(!_0x2b8627)return;const _0x23c04d=_0x1ad1ac['mapper']['toViewElement'](_0x2b8627);function _0xfa6a8f(_0x4015a2){return Array['isArray'](_0x4015a2)?_0x4015a2:[_0x4015a2];}_0x23c04d&&'tableCell'===_0x2b8627['name']&&_0x2b9a9f(_0x23c04d,_0x1ad1ac['writer'],(_0x22f11b,_0xbac44d,_0x5d795f)=>_0x5d795f['addClass'](_0xfa6a8f(_0xbac44d['classes']),_0x22f11b),(_0xa77e29,_0x58ccaf,_0x17b5b9)=>_0x17b5b9['removeClass'](_0xfa6a8f(_0x58ccaf['classes']),_0xa77e29));},{'priority':'highest'}),_0x4ff48b['_descriptionFactory']['registerDescriptionCallback'](_0x4d0741=>{if('insertion'!=_0x4d0741['type']&&'deletion'!=_0x4d0741['type'])return;const _0x5acab0=_0x4d0741['getContainedElement']();if(null!=_0x5acab0&&_0x5acab0['is']('element','table')){if('insertion'==_0x4d0741['type']){const _0x1731c3=_0x4d0741['getItems']()['filter'](_0x469a5e=>_0x469a5e['is']('$textProxy'))['map'](_0x5262b6=>_0x5262b6['data']);if(_0x1731c3['length'])return{'type':'insertion','content':o(_0x1a2f9d,'*Insert:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1731c3['join']('\x20')+'\x22'))};}if('deletion'==_0x4d0741['type']){const _0x367b06=_0x4d0741['getItems']()['filter'](_0x300d3b=>_0x300d3b['is']('$textProxy'))['map'](_0x5c9a6c=>_0x5c9a6c['data']);if(_0x367b06['length'])return{'type':'deletion','content':o(_0x1a2f9d,'*Remove:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x367b06['join']('\x20')+'\x22'))};}}}),_0x4ff48b['_descriptionFactory']['registerDescriptionCallback'](_0x13a9b1=>{if('tableRow'==_0x13a9b1['subType']){const _0xde8462=_0x13a9b1['getItems']()['filter'](_0x3ef870=>_0x3ef870['is']('$textProxy'))['map'](_0x5ab1b0=>_0x5ab1b0['data']),_0x457c19=this['_getSuggestionCoords'](_0x13a9b1),_0x42fba2=_0x457c19['maxRow']-_0x457c19['minRow']+0x1;if('insertion'==_0x13a9b1['type'])return _0xde8462['length']?{'type':'insertion','content':o(_0x1a2f9d,'*Insert:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x42fba2,'\x22'+_0xde8462['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1a2f9d,'*Insert:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_ROW',_0x42fba2))};if('deletion'==_0x13a9b1['type'])return _0xde8462['length']?{'type':'deletion','content':o(_0x1a2f9d,'*Remove:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x42fba2,'\x22'+_0xde8462['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1a2f9d,'*Remove:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_ROW',_0x42fba2))};}if('tableColumn'==_0x13a9b1['subType']){const _0x307ab1=_0x13a9b1['getItems']()['filter'](_0x3f3d1e=>_0x3f3d1e['is']('$textProxy'))['map'](_0x23ff50=>_0x23ff50['data']),_0xbbf052=this['_getSuggestionCoords'](_0x13a9b1),_0x23296e=_0xbbf052['maxColumn']-_0xbbf052['minColumn']+0x1;if('insertion'==_0x13a9b1['type'])return _0x307ab1['length']?{'type':'insertion','content':o(_0x1a2f9d,'*Insert:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23296e,'\x22'+_0x307ab1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1a2f9d,'*Insert:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_COLUMN',_0x23296e))};if('deletion'==_0x13a9b1['type'])return _0x307ab1['length']?{'type':'deletion','content':o(_0x1a2f9d,'*Remove:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23296e,'\x22'+_0x307ab1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1a2f9d,'*Remove:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_COLUMN',_0x23296e))};}}),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x47f64b),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x47f64b),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2c70b5),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2c70b5),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x329fcc),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x329fcc),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x519ba0),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x519ba0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x426a7e=this['editor'],_0x2e3795=_0x426a7e['model']['document']['selection'];return(_0x109c72,_0x16212e)=>{_0x426a7e['model']['change'](_0x3b8386=>{const {commandName:_0x333707,commandParams:_0x4f4b07}=_0x16212e;let _0x257382=_0x109c72[0x0]['end']['nodeBefore'];_0x4f4b07&&_0x4f4b07[0x0]&&!0x1===_0x4f4b07[0x0]['forceValue']&&(_0x257382=_0x109c72[0x0]['start']['nodeAfter']);const _0x3c7c51=_0x3b8386['createRangeIn'](_0x257382);if('$graveyard'==_0x3c7c51['root']['rootName'])return;const _0x2cb412=Array['from'](_0x2e3795['getRanges']())['map'](_0x2cacc1=>_0x30a6a3['fromRange'](_0x2cacc1));_0x3b8386['setSelection'](_0x3c7c51),_0x426a7e['commands']['get'](_0x333707)['refresh'](),_0x4f4b07['push']({'forceDefaultExecution':!0x0}),_0x426a7e['execute'](_0x333707,..._0x4f4b07);const _0x380abf=_0x2cb412['filter'](_0x511666=>'$graveyard'!=_0x511666['root']['rootName']);_0x380abf['length']>0x0&&_0x3b8386['setSelection'](_0x380abf);for(const _0x366504 of _0x2cb412)_0x366504['detach']();});};}['_getCoordsForCells'](_0x42f801){const _0x545bd2=this['editor']['plugins']['get']('TableUtils');let _0x595985=Number['MAX_SAFE_INTEGER'],_0x2e9901=Number['MIN_SAFE_INTEGER'],_0x5937a4=Number['MAX_SAFE_INTEGER'],_0x467011=Number['MIN_SAFE_INTEGER'];for(const _0x306db3 of _0x42f801){if('$graveyard'==_0x306db3['root']['rootName'])continue;const {row:_0x3e7ed8,column:_0x3a9342}=_0x545bd2['getCellLocation'](_0x306db3),_0x52ed68=_0x306db3['hasAttribute']('rowspan')?_0x306db3['getAttribute']('rowspan')-0x1:0x0,_0x2ff31c=_0x306db3['hasAttribute']('colspan')?_0x306db3['getAttribute']('colspan')-0x1:0x0;_0x595985=_0x3e7ed8<_0x595985?_0x3e7ed8:_0x595985,_0x2e9901=_0x3e7ed8+_0x52ed68>_0x2e9901?_0x3e7ed8+_0x52ed68:_0x2e9901,_0x5937a4=_0x3a9342<_0x5937a4?_0x3a9342:_0x5937a4,_0x467011=_0x3a9342+_0x2ff31c>_0x467011?_0x3a9342+_0x2ff31c:_0x467011;}return{'minRow':_0x595985,'maxRow':_0x2e9901,'minColumn':_0x5937a4,'maxColumn':_0x467011};}['_setupColumnsRowsFixing'](){const _0x132753=this['editor'],_0x4cae16=_0x132753['plugins']['get']('TrackChangesEditing'),_0x42a793=_0x132753['plugins']['get']('TableUtils');_0x132753['model']['document']['on']('change:data',()=>{const _0x186df8=Array['from'](_0x132753['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x308597,data:_0x5c1126}of _0x186df8){const {group:_0x8fa133,id:_0x5d91b6,subType:_0x2b5c62}=_0x4cae16['_splitMarkerName'](_0x308597);if('suggestion'!=_0x8fa133)continue;if(null!=_0x5c1126['oldRange'])continue;const _0xb661b9=_0x4cae16['getSuggestion'](_0x5d91b6);this['_tablePostFixingSubtypes']['includes'](_0x2b5c62)&&this['_tableSuggestions']['add'](_0xb661b9);}},{'priority':'low'});const _0x509be6=(_0x46beb2,_0x2c9264)=>{let _0x574a77=!0x1;const _0x1ef094=_0x2c9264['createRangeOn'](_0x46beb2),_0x2662e1=_0x46beb2['findAncestor']('table'),_0x6032c8=_0x42a793['getCellLocation'](_0x46beb2);for(const _0x28fadb of this['_tableSuggestions']){const _0x5ef36d=_0x28fadb['subType'],_0x2e3ccf=_0x5ef36d['startsWith']('tablePaste'),_0x2450aa=_0x5ef36d['substr'](_0x2e3ccf?0xa:0x5),_0x13bf63=_0x2450aa['toLowerCase'](),_0x99482a=_0x13bf63['substr'](0x0,0x3)+'span',_0x421007='min'+_0x2450aa,_0x482261='max'+_0x2450aa;if(!_0x28fadb['isInContent'])continue;if(_0x2662e1!=_0x28fadb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28fadb['isIntersectingWithRange'](_0x1ef094))continue;const _0x48e525=_0x46beb2['hasAttribute'](_0x99482a)?_0x46beb2['getAttribute'](_0x99482a)-0x1:0x0,_0xb1ea06=this['_getSuggestionCoords'](_0x28fadb),_0x391198=_0xb1ea06[_0x421007],_0x59e7f5=_0xb1ea06[_0x482261];_0x391198<=_0x6032c8[_0x13bf63]&&_0x6032c8[_0x13bf63]+_0x48e525<=_0x59e7f5&&(_0x28fadb['addRange'](_0x1ef094),_0x574a77=!0x0);}return _0x574a77;};_0x132753['model']['document']['registerPostFixer'](_0x3f0fac=>{let _0x5222ee=!0x1;for(const _0x1aca24 of _0x132753['model']['document']['differ']['getChanges']())if('insert'==_0x1aca24['type']){if('tableRow'==_0x1aca24['name']){for(const _0x561363 of _0x1aca24['position']['nodeAfter']['getChildren']())_0x5222ee=_0x5222ee||_0x509be6(_0x561363,_0x3f0fac);}else'tableCell'==_0x1aca24['name']&&(_0x5222ee=_0x5222ee||_0x509be6(_0x1aca24['position']['nodeAfter'],_0x3f0fac));}return _0x5222ee;});}['_getSuggestionCoords'](_0x35d58f){return this['_getCoordsForCells'](_0x35d58f['getRanges']()['map'](_0x2d38bf=>_0x2d38bf['start']['nodeAfter']));}constructor(_0x1e6261){super(_0x1e6261),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x1fcc73){return Array['from'](new Set(_0x1fcc73)['values']());}class St extends _0x43660f{static get['requires'](){return[jt];}['afterInit'](){const _0x36158b=this['editor'],_0x13cbbf=_0x36158b['model']['document']['selection'],_0x16f57a=_0x36158b['locale'];if(!_0x36158b['plugins']['has']('TableEditing'))return;const _0xbbc2b3=_0x36158b['plugins']['get']('TrackChangesEditing'),_0x5b8e65=_0x36158b['plugins']['get']('TableUtils'),_0x1fc43a=_0x36158b['plugins']['get'](jt);_0x1fc43a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xbbc2b3['enableCommand']('mergeTableCells',()=>{const _0x30109e=_0x5b8e65['getSelectionAffectedTableCells'](_0x36158b['model']['document']['selection']);_0x36158b['model']['change'](()=>{_0xbbc2b3['markMultiRangeBlockFormat'](_0x30109e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x36158b['commands']['get']('mergeTableCells')['on']('execute',(_0x1a4552,_0x833b05)=>{_0x36158b['commands']['get']('trackChanges')['value']&&(_0x833b05['length']>0x0&&_0x833b05[_0x833b05['length']-0x1]&&_0x833b05[_0x833b05['length']-0x1]['forceDefaultExecution']||_0xbbc2b3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1a4552['stop']());},{'priority':'highest'});for(const _0xa27496 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x57e58c=_0x36158b['commands']['get'](_0xa27496);_0xbbc2b3['enableCommand'](_0xa27496,()=>{const _0x523f3f=_0x36158b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f0fc0=>_0x4f0fc0['is']('element','tableCell')),_0x407a7c=_0x57e58c['value'];_0x36158b['model']['change'](()=>{_0xbbc2b3['markMultiRangeBlockFormat']([_0x523f3f,_0x407a7c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4198ba of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1450a1=_0x36158b['commands']['get'](_0x4198ba);_0xbbc2b3['enableCommand'](_0x4198ba,()=>{const _0x2a5bd4=_0x5b8e65['getSelectionAffectedTableCells'](_0x36158b['model']['document']['selection'])[0x0],_0x8c7daa=_0x2a5bd4['findAncestor']('table'),{column:_0x5414e3,row:_0x51a32f}=_0x5b8e65['getCellLocation'](_0x2a5bd4);let _0x211ec2=[];if('horizontally'==_0x1450a1['direction']){const _0x33057f=_0x5b8e65['createTableWalker'](_0x8c7daa,{'startRow':_0x51a32f,'endRow':_0x51a32f,'includeAllSlots':!0x0});_0x211ec2=Array['from'](_0x33057f)['map'](_0x134e89=>_0x134e89['cell']);}else{const _0x33d50a=_0x5b8e65['createTableWalker'](_0x8c7daa,{'column':_0x5414e3,'includeAllSlots':!0x0});_0x211ec2=Array['from'](_0x33d50a)['map'](_0x282b40=>_0x282b40['cell']);}_0x36158b['model']['change'](_0x10f22c=>{_0xbbc2b3['markBlockFormat'](_0x10f22c['createRangeOn'](_0x2a5bd4),{'commandName':_0x4198ba,'commandParams':[]},_0x211ec2,_0x4198ba);});});}_0xbbc2b3['_descriptionFactory']['registerDescriptionCallback'](_0x26b404=>{if('formatBlock'!=_0x26b404['type']&&'formatInline'!=_0x26b404['type'])return;const {data:_0xc1f928}=_0x26b404;return _0xc1f928&&'mergeTableCells'==_0xc1f928['commandName']?{'type':'format','content':o(_0x16f57a,'*Merge\x20cells*')}:void 0x0;}),_0xbbc2b3['_descriptionFactory']['registerDescriptionCallback'](_0x367b47=>{if('formatBlock'!=_0x367b47['type']&&'formatInline'!=_0x367b47['type'])return;const {data:_0x38990e}=_0x367b47;return _0x38990e?'splitTableCellVertically'==_0x38990e['commandName']?{'type':'format','content':o(_0x16f57a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x38990e['commandName']?{'type':'format','content':o(_0x16f57a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x45011a=_0x1fc43a['_acceptFormatSuggestionCallbackFactory']();for(const _0x184f42 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xbbc2b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x184f42,'accept',_0x45011a);for(const _0x186045 of['splitTableCellVertically','splitTableCellHorizontally'])_0xbbc2b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x186045,'accept',_0x45011a);_0xbbc2b3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x44a55f=>{_0x36158b['model']['change'](_0x2a0c1b=>{const _0x166958=Array['from'](_0x13cbbf['getRanges']())['map'](_0x539ff1=>_0x30a6a3['fromRange'](_0x539ff1));_0x2a0c1b['setSelection'](_0x44a55f),_0x36158b['commands']['get']('mergeTableCells')['refresh'](),_0x36158b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3e25d6=_0x166958['filter'](_0x51ebb6=>'$graveyard'!=_0x51ebb6['root']['rootName']);_0x3e25d6['length']>0x0&&_0x2a0c1b['setSelection'](_0x3e25d6);for(const _0x487f59 of _0x166958)_0x487f59['detach']();});});for(const _0x5e1db1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x380582=_0x36158b['commands']['get'](_0x5e1db1);_0x380582['on']('set:isEnabled',(_0x5ab7a6,_0x3946f1,_0x3f4103)=>{if(_0x3f4103){const _0x48b81f=_0x36158b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5cae5a=>_0x5cae5a['is']('element','tableCell'));this['_areMergableCells'](_0x380582['value'],_0x48b81f)||(_0x5ab7a6['return']=!0x1,_0x5ab7a6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3862b4=this['editor']['commands']['get']('mergeTableCells'),_0x36c0f1=this['editor']['plugins']['get']('TableUtils');if(!_0x3862b4['isEnabled'])return!0x1;const _0x33e64e=_0x36c0f1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x55f018 of _0x33e64e)for(const _0x2367e1 of _0x33e64e)if(_0x55f018!=_0x2367e1&&!this['_areMergableCells'](_0x55f018,_0x2367e1))return!0x1;return!0x0;}['_areMergableCells'](_0x2895d3,_0x28f858){const _0x196851=this['editor']['plugins']['get']('TrackChangesEditing'),_0x421816=this['editor']['model']['createRangeOn'](_0x2895d3),_0x555b94=this['editor']['model']['createRangeOn'](_0x28f858),_0x190a13=new Set(),_0x134e93=new Set();for(const _0x2373e4 of _0x196851['getSuggestions']())if(('insertion'==_0x2373e4['type']||'deletion'==_0x2373e4['type']||'mergeTableCells'==_0x2373e4['subType'])&&_0x2373e4['isInContent']){for(const _0xa2111e of _0x2373e4['getRanges']())_0xa2111e['containsRange'](_0x421816,!0x0)&&_0x190a13['add'](_0x2373e4['type']+':'+_0x2373e4['author']['id']),_0xa2111e['containsRange'](_0x555b94,!0x0)&&_0x134e93['add'](_0x2373e4['type']+':'+_0x2373e4['author']['id']);}if(_0x190a13['size']!=_0x134e93['size'])return!0x1;for(const _0x293cf1 of _0x190a13)if(!_0x134e93['has'](_0x293cf1))return!0x1;return!0x0;}}class At extends _0x43660f{static get['requires'](){return[jt];}['afterInit'](){const _0xf1642a=this['editor'];if(!_0xf1642a['plugins']['has']('TableEditing'))return;const _0x5dda4d=_0xf1642a['locale'],_0xed1cc8=_0xf1642a['plugins']['get']('TrackChangesEditing');_0xed1cc8['_enableDefaultAttributesIntegration']('setTableRowHeader',[],['headingRows']),_0xed1cc8['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0xed1cc8['_descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5dda4d,'FORMAT_HEADER_ROW')),_0xed1cc8['_descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5dda4d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x34d707=this['editor']['plugins']['get']('TrackChangesEditing'),_0x493c92=this['editor']['plugins']['get']('TableUtils'),_0x27f297=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x755b6d({showActiveMarker:_0x32d348=!0x0,setDataAttribute:_0x337397=!0x0}={}){return(_0x2decf7,_0x3af884,_0xf4ea51)=>{const {type:_0x3a03c9,id:_0x546618}=_0x34d707['_splitMarkerName'](_0x3af884['markerName']),_0x5804cc=_0x34d707['getSuggestion'](_0x546618),_0xd38d24=_0x5804cc['data'];if('formatBlock'!=_0x5804cc['type']||!_0xd38d24||'setTableColumnHeader'!=_0xd38d24['commandName'])return;if(_0x3af884['item'])return void _0x2decf7['stop']();if(!_0xf4ea51['consumable']['consume'](_0x3af884['markerRange'],_0x2decf7['name']))return;const _0x3fe66d=_0x3af884['markerRange']['start']['nodeAfter'],_0x3a9bc2=_0x3af884['markerRange']['end']['nodeBefore'],_0x2320c5=_0x3fe66d['parent']['parent'],{column:_0x4e2f1f}=_0x493c92['getCellLocation'](_0x3fe66d),{column:_0x121aeb}=_0x493c92['getCellLocation'](_0x3a9bc2);for(let _0x3d200a=_0x4e2f1f;_0x3d200a<=_0x121aeb;_0x3d200a++){const _0x232952=_0x493c92['createTableWalker'](_0x2320c5,{'column':_0x3d200a,'includeAllSlots':!0x1});for(const _0x4ea352 of _0x232952){const _0x421292=_0x4ea352['cell'],_0x1baae3=_0xf4ea51['mapper']['toViewElement'](_0x421292);_0xf4ea51['writer']['addClass']('ck-suggestion-marker-'+_0x3a03c9,_0x1baae3),_0x337397&&_0xf4ea51['writer']['setAttribute']('data-suggestion',_0x546618,_0x1baae3),_0xf4ea51['mapper']['bindElementToMarker'](_0x1baae3,_0x3af884['markerName']),_0x32d348&&(_0x34d707['activeMarkers']['includes'](_0x3af884['markerName'])?_0xf4ea51['writer']['addClass']('ck-suggestion-marker--active',_0x1baae3):_0xf4ea51['writer']['removeClass']('ck-suggestion-marker--active',_0x1baae3));}}};}_0x34d707['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x27f297),_0x34d707['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x27f297),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x755b6d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7d7171,_0x1910e5,_0x450ca9)=>{_0x450ca9['options']['showSuggestionHighlights']&&_0x755b6d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x7d7171,_0x1910e5,_0x450ca9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3c5d0c,_0x15088f,_0x4e42ac)=>{const {type:_0x214f0f,id:_0x8712d9}=_0x34d707['_splitMarkerName'](_0x15088f['markerName']),_0x5e53af=_0x34d707['getSuggestion'](_0x8712d9),_0x17532f=_0x5e53af['data'];if('formatBlock'!=_0x5e53af['type']||!_0x17532f||'setTableColumnHeader'!=_0x17532f['commandName'])return;const _0x4337d0=_0x4e42ac['mapper']['markerNameToElements'](_0x15088f['markerName']);if(_0x4337d0){for(const _0x2e7b94 of _0x4337d0)_0x4e42ac['writer']['removeClass']('ck-suggestion-marker-'+_0x214f0f,_0x2e7b94),_0x4e42ac['writer']['removeClass']('ck-suggestion-marker--active',_0x2e7b94),_0x4e42ac['writer']['removeAttribute']('data-suggestion',_0x2e7b94),_0x4e42ac['mapper']['unbindElementFromMarkerName'](_0x2e7b94,_0x15088f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ca9b4=this['editor'],_0x44f88a=_0x5ca9b4['locale'];function _0x19bb26(_0x29d879){return{'type':'format','content':o(_0x44f88a,'*Format:*\x20%0',_0x29d879)};}_0x5ca9b4['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5eb596=>{if('formatBlock'!=_0x5eb596['type'])return;const {data:_0x44d571}=_0x5eb596;if(_0x44d571){if('setTableRowHeader'==_0x44d571['commandName']){const _0x3898ac=_0x44d571['commandParams'][0x0]['forceValue'];return _0x19bb26(o(_0x44f88a,_0x3898ac?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x44d571['commandName']){const _0x3730de=_0x44d571['commandParams'][0x0]['forceValue'];return _0x19bb26(o(_0x44f88a,_0x3730de?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x196a06=>[_0x196a06,null]));class It extends _0x43660f{static get['requires'](){return[jt];}['afterInit'](){const _0x2b4c55=this['editor'];if(!_0x2b4c55['plugins']['has']('TableClipboard'))return;const _0x368c62=_0x2b4c55['plugins']['get']('TrackChangesEditing'),_0x5d91f7=_0x2b4c55['plugins']['get']('TableUtils'),_0xa3e2a3=_0x2b4c55['plugins']['get'](jt),_0x31c52f=_0x2b4c55['plugins']['get']('TableClipboard');_0xa3e2a3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2b4c55['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2b4c55['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4e88d7=null;_0x2b4c55['model']['on']('insertContent',(_0x324fe9,_0x175922)=>{const [_0x1e7046,_0x2e3ee8]=_0x175922,_0x55755c=_0x175922[_0x175922['length']-0x1];_0x55755c&&_0x55755c['forceDefaultExecution']||_0x368c62['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x461319,_0x49a26d,_0x220510,_0x2eba64,_0x3023ee){if(_0x49a26d&&!_0x49a26d['is']('documentSelection'))return!0x1;const _0x5d5f2f=_0x3023ee['getTableIfOnlyTableInContent'](_0x461319,_0x220510);if(!_0x5d5f2f||!he(_0x5d5f2f,void 0x0,_0x2eba64))return!0x1;const _0x2090ba=_0x2eba64['getSelectionAffectedTableCells'](_0x220510['document']['selection']);if(!_0x2090ba['length'])return!0x1;const _0x46712d=_0x2090ba[0x0]['findAncestor']('table'),_0x2881c7=_0x2eba64['getRowIndexes'](_0x2090ba),_0xc8f7bb=_0x2eba64['getColumnIndexes'](_0x2090ba),_0x546cfb={'startRow':_0x2881c7['first'],'endRow':_0x2881c7['last'],'startColumn':_0xc8f7bb['first'],'endColumn':_0xc8f7bb['last']};return 0x1==_0x2090ba['length']&&(_0x546cfb['endRow']+=_0x2eba64['getRows'](_0x5d5f2f)-0x1,_0x546cfb['endColumn']+=_0x2eba64['getColumns'](_0x5d5f2f)-0x1),he(_0x46712d,_0x546cfb,_0x2eba64);}(_0x1e7046,_0x2e3ee8,_0x2b4c55['model'],_0x5d91f7,_0x31c52f)&&(_0x324fe9['stop'](),_0x4e88d7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2b4c55['model']['change'](()=>{_0x2b4c55['model']['insertContent'](_0x175922[0x0],_0x175922[0x1],_0x175922[0x2],{'forceDefaultExecution':!0x0});const _0x559019=_0x461740(),{rowInsertionRanges:_0x2fb54d,columnInsertionRanges:_0x2dd7c0,insertionRanges:_0x269870,deletionRanges:_0xfd1b6c,cells:_0x1183e9}=_0x4e88d7;_0x2fb54d['length']&&_0x368c62['markMultiRangeInsertion'](_0x2fb54d,'tablePasteRow',{'tablePasteChainId':_0x559019}),_0x2dd7c0['length']&&_0x368c62['markMultiRangeInsertion'](_0x2dd7c0,'tablePasteColumn',{'tablePasteChainId':_0x559019}),_0x269870['length']&&(_0x368c62['markMultiRangeInsertion'](_0x269870,'tablePaste',{'tablePasteChainId':_0x559019,'skipNestingCheck':!0x0}),_0x269870['forEach'](_0xc12fc6=>{var _0x16d04b;return null===(_0x16d04b=_0xc12fc6['detach'])||void 0x0===_0x16d04b?void 0x0:_0x16d04b['call'](_0xc12fc6);})),_0xfd1b6c['length']&&(_0x368c62['markMultiRangeDeletion'](_0xfd1b6c,'tablePaste',{'tablePasteChainId':_0x559019,'skipNestingCheck':!0x0}),_0xfd1b6c['forEach'](_0x48e463=>{var _0x2c7c14;return null===(_0x2c7c14=_0x48e463['detach'])||void 0x0===_0x2c7c14?void 0x0:_0x2c7c14['call'](_0x48e463);}));const _0x1893d0=_0x368c62['markMultiRangeBlockFormat'](_0x1183e9['map'](({element:_0x5d38be})=>_0x5d38be),{'formatGroupId':_0x461740()},[],'tablePasteCell',{'tablePasteChainId':_0x559019});if(_0x1893d0){const _0x2374b0=_0x1893d0['getMarkers'](),_0x1c1635=[];for(const {element:_0x7863d3,attributes:_0x39745e}of _0x1183e9){if(!_0x39745e)continue;const _0x89a949=_0x2b4c55['model']['createRangeOn'](_0x7863d3),_0x1e3ef9=_0x2374b0['find'](_0x1cb353=>_0x1cb353['getRange']()['isEqual'](_0x89a949));_0x1e3ef9&&_0x1c1635['push']([_0x1e3ef9['name'],_0x39745e]);}_0x1c1635['length']&&_0x1893d0['setAttribute']('markerAttributes',Object['fromEntries'](_0x1c1635));}_0x4e88d7=null;}));},{'priority':_0x43c881['high']+0xa}),_0x2b4c55['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x37c4f8,_0x7625d5)=>{const [_0x2d18ca,_0x36b18b,,_0x2cd3c3]=_0x7625d5;if(!_0x4e88d7)return;_0x37c4f8['stop']();const _0x570339=_0x2d18ca['cell'],_0x437944=_0x36b18b,_0x15d1a9=Pe(_0x570339),_0x412e10=Pe(_0x437944);_0x37c4f8['return']=_0x570339;let _0x445a4d=null,_0x88a083=null;if(_0x412e10||_0x15d1a9){if(_0x15d1a9&&!_0x412e10){_0x2cd3c3['remove'](_0x570339['getChild'](0x0));for(const _0x38ebf4 of Array['from'](_0x437944['getChildren']()))_0x2cd3c3['insert'](_0x38ebf4,_0x570339,'end');const _0x574112=_0x4e88d7['rowInsertionIndexes']['includes'](_0x2d18ca['row']),_0x620611=_0x4e88d7['columnInsertionIndexes']['includes'](_0x2d18ca['column']);_0x574112||_0x620611||(_0x445a4d=_0x30a6a3['fromRange'](_0x2cd3c3['createRangeIn'](_0x570339)));}else _0x412e10&&!_0x15d1a9&&(_0x88a083=_0x2cd3c3['createRangeIn'](_0x570339));}else{const _0x56aed8=_0x2cd3c3['createElement']('tableCellSuggestion'),_0x84e884=_0x2cd3c3['createElement']('tableCellSuggestion');_0x2cd3c3['wrap'](_0x2cd3c3['createRangeIn'](_0x570339),_0x84e884),_0x2cd3c3['insert'](_0x56aed8,_0x570339,0x0);for(const _0x5d3f19 of Array['from'](_0x437944['getChildren']()))_0x2cd3c3['insert'](_0x5d3f19,_0x56aed8,'end');_0x445a4d=_0x30a6a3['fromRange'](_0x2cd3c3['createRangeOn'](_0x56aed8)),_0x88a083=_0x30a6a3['fromRange'](_0x2cd3c3['createRangeOn'](_0x84e884));}const _0x134428=Array['from'](_0x437944['getAttributes']())['filter'](([_0x562283])=>ge['includes'](_0x562283));_0x4e88d7['cells']['push']({'element':_0x570339,'attributes':_0x134428['length']?Object['fromEntries'](_0x134428):null}),_0x445a4d&&_0x4e88d7['insertionRanges']['push'](_0x445a4d),_0x88a083&&_0x4e88d7['deletionRanges']['push'](_0x88a083);},{'priority':'high'}),_0x5d91f7['on']('insertColumns',(_0x577382,_0x576def)=>{const [_0x265a59,_0x4056d8={}]=_0x576def;if(!_0x4e88d7)return;const _0x5b7080=_0x4056d8['at']||0x0,_0x307629=_0x4056d8['columns']||0x1;_0x4e88d7['columnInsertionIndexes']=new Array(_0x307629)['fill'](_0x5b7080)['map']((_0x31bc89,_0x4c9fdf)=>_0x31bc89+_0x4c9fdf);for(const {cell:_0x197a88}of _0x5d91f7['createTableWalker'](_0x265a59,{'startColumn':_0x5b7080,'endColumn':_0x5b7080+_0x307629-0x1}))_0x4e88d7['columnInsertionRanges']['push'](_0x2b4c55['model']['createRangeOn'](_0x197a88));},{'priority':'low'}),_0x5d91f7['on']('insertRows',(_0x92aac5,_0x6dffed)=>{const [_0xe6f7ca,_0x4f4532={}]=_0x6dffed;if(!_0x4e88d7)return;const _0x4ea0d3=_0x4f4532['at']||0x0,_0x3a1818=_0x4f4532['rows']||0x1;_0x4e88d7['rowInsertionIndexes']=new Array(_0x3a1818)['fill'](_0x4ea0d3)['map']((_0x24e67a,_0x18e48b)=>_0x24e67a+_0x18e48b);for(const {cell:_0x4a20c6}of _0x5d91f7['createTableWalker'](_0xe6f7ca,{'startRow':_0x4ea0d3,'endRow':_0x4ea0d3+_0x3a1818-0x1}))_0x4e88d7['rowInsertionRanges']['push'](_0x2b4c55['model']['createRangeOn'](_0x4a20c6));},{'priority':'low'}),_0x368c62['_descriptionFactory']['registerDescriptionCallback'](_0xe9cf28=>{if(_0xe9cf28['subType']&&_0xe9cf28['subType']['startsWith']('tablePaste'))return _0xe9cf28['previous']?{}:{'type':'insertion','content':o(_0x2b4c55['locale'],'*Replace\x20table\x20cells*')};});const _0x1c9d32=()=>!0x1;for(const _0x68080d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x368c62['_suggestionFactory']['registerCustomCallback']('insertion',_0x68080d,'join',_0x1c9d32),_0x368c62['_suggestionFactory']['registerCustomCallback']('deletion',_0x68080d,'join',_0x1c9d32),_0x368c62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x68080d,'join',_0x1c9d32);_0x368c62['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1c9d32),_0x368c62['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x35b471,_0x23734d,_0x3131b8)=>{const _0x28b92b=_0x35b471['map'](_0xe30a35=>_0xe30a35['getContainedElement']())['filter'](_0x4f120f=>_0x4f120f),_0x8dd260=new Map(_0x28b92b['map'](_0x9abee2=>[_0x9abee2,null]));if(_0x4e88d7){for(const {element:_0xb25eb9,attributes:_0x20f1b8}of _0x4e88d7['cells'])_0x20f1b8&&_0x8dd260['set'](_0xb25eb9,_0x20f1b8);}else{if(_0x3131b8&&_0x3131b8['markerAttributes'])for(const [_0x7cc5e6,_0x388333]of Object['entries'](_0x3131b8['markerAttributes'])){const _0x3e0711=_0x2b4c55['model']['markers']['get'](_0x7cc5e6),_0x445fe4=_0x3e0711?_0x3e0711['getRange']()['getContainedElement']():null;_0x445fe4&&_0x8dd260['set'](_0x445fe4,_0x388333);}}_0x2b4c55['model']['change'](_0x41448d=>{for(const [_0xc43672,_0x3d4bca]of _0x8dd260)_0x41448d['setAttributes']({...Ce,..._0x3d4bca},_0xc43672);});});const _0x2c2882=(_0x561e62,_0x23e51b)=>{_0x368c62['_suggestionFactory']['registerCustomCallback'](_0x561e62,'tablePaste',_0x23e51b,(_0x415600,_0x25a743,_0x183821)=>{_0x2b4c55['model']['change'](_0xa17fda=>{const _0x124d0b=[];for(const _0x44068e of _0x415600){const _0x38141b=_0x44068e['start']['nodeAfter'];_0x38141b['is']('element','tableCellSuggestion')&&_0x124d0b['push'](_0x38141b);}_0x368c62['_suggestionFactory']['getSuggestionCallback'](_0x561e62,null,_0x23e51b)(_0x415600,_0x25a743,_0x183821);for(const _0x9fc9ce of _0x124d0b)'$graveyard'!=_0x9fc9ce['root']['rootName']&&_0xa17fda['unwrap'](_0x9fc9ce);});});};_0x2c2882('insertion','accept'),_0x2c2882('insertion','discard'),_0x2c2882('deletion','accept'),_0x2c2882('deletion','discard'),_0x368c62['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x256372=>{const _0x1e9ca0=_0x256372['map'](_0x4db341=>_0x4db341['getContainedElement']()),_0x1421ea=_0x1e9ca0[0x0]['findAncestor']('table'),{minRow:_0x4ea005,maxRow:_0x5e608a}=_0xa3e2a3['_getCoordsForCells'](_0x1e9ca0);_0x5d91f7['removeRows'](_0x1421ea,{'at':_0x4ea005,'rows':_0x5e608a-_0x4ea005+0x1});}),_0x368c62['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4a17ea=>{const _0x3faab6=_0x4a17ea['map'](_0x436255=>_0x436255['getContainedElement']()),_0x48bb04=_0x3faab6[0x0]['findAncestor']('table'),{minColumn:_0x13c5d5,maxColumn:_0x57a28a}=_0xa3e2a3['_getCoordsForCells'](_0x3faab6);_0x5d91f7['removeColumns'](_0x48bb04,{'at':_0x13c5d5,'columns':_0x57a28a-_0x13c5d5+0x1});});const _0x4e6803=(_0x5f3476,_0x5b5824)=>{if(!_0x5b5824['subType']||!_0x5b5824['subType']['startsWith']('tablePaste'))return;const _0x63333b=_0x5b5824['attributes']['tablePasteChainId'],_0x39bb45=_0x368c62['getSuggestions']()['filter'](_0x326abc=>_0x326abc['isInContent']&&_0x326abc['attributes']&&_0x326abc['attributes']['tablePasteChainId']==_0x63333b);_0x39bb45['length']&&_0x5b5824['getAllAdjacentSuggestions']()['length']!=_0x39bb45['length']&&_0x39bb45['reduce']((_0x1f1488,_0xf1b5cf)=>(_0x1f1488['next']=_0xf1b5cf,_0xf1b5cf['previous']=_0x1f1488,_0xf1b5cf));};function _0x4d59b8(_0x24fd8e,_0xe55338=!0x0){const {id:_0x4b4732}=_0x368c62['_splitMarkerName'](_0x24fd8e['markerName']),_0x3ffe0f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x595a3f=_0x368c62['activeMarkers']['includes'](_0x24fd8e['markerName']);return _0x595a3f&&_0x3ffe0f['push']('ck-suggestion-marker--active'),{'classes':_0x3ffe0f,'attributes':{'data-suggestion':_0x4b4732},'priority':_0x595a3f&&_0xe55338?0xbc2:0xbb8};}_0x368c62['on']('suggestionLoaded',_0x4e6803,{'priority':'high'}),_0x368c62['on']('suggestionUnloaded',_0x4e6803,{'priority':'high'}),_0x2b4c55['model']['document']['registerPostFixer'](()=>{let _0x4f410d=!0x1;const _0xff5c4e=Array['from'](_0x2b4c55['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5442fa,data:_0x53004f}of _0xff5c4e){const {group:_0x4d4d57,type:_0x8bc6fc,id:_0x36bbf7}=_0x368c62['_splitMarkerName'](_0x5442fa);if('suggestion'!=_0x4d4d57||'deletion'!=_0x8bc6fc||_0x53004f['oldRange'])continue;if(!_0x368c62['hasSuggestion'](_0x36bbf7))continue;const _0xc2a01e=_0x368c62['getSuggestion'](_0x36bbf7)['getRanges'](),_0x578027=_0x2b4c55['plugins']['get']('Users')['me'];for(const _0x39fbf0 of _0x368c62['getSuggestions']()){if(!_0x39fbf0['isInContent']||_0x39fbf0['author']!=_0x578027)continue;if('formatBlock'!=_0x39fbf0['type']||'tablePasteCell'!=_0x39fbf0['subType'])continue;if(_0x39fbf0['getRanges']()['every'](_0x24795b=>_0xc2a01e['some'](_0x3ec566=>_0x3ec566['containsRange'](_0x24795b,!0x0)))){for(const _0x4b9b06 of _0x39fbf0['getAllAdjacentSuggestions']())_0x4b9b06['isInContent']&&(_0x4b9b06['discard'](),_0x4f410d=!0x0);}}}return _0x4f410d;}),_0x2b4c55['model']['document']['registerPostFixer'](_0x26adca=>{const _0x81f113=_0x2b4c55['commands']['get']('redo');if(!_0x81f113||!_0x81f113['_createdBatches']['has'](_0x26adca['batch']))return!0x1;let _0x40de21=!0x1;const _0x1be26a=_0x2b4c55['plugins']['get']('Users')['me'],_0x15f3ff=_0x2b4c55['model']['document']['differ']['getChanges'](),_0x2ff1c3=Array['from'](_0x2b4c55['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xd6cb94,data:_0x1e1126})=>{const {group:_0x4452d2,subType:_0x47b5d5,authorId:_0x216ec7}=_0x368c62['_splitMarkerName'](_0xd6cb94);return'suggestion'==_0x4452d2&&'tablePaste'==_0x47b5d5&&_0x216ec7==_0x1be26a['id']&&!_0x1e1126['oldRange'];});for(const _0x417bdb of _0x15f3ff){if('insert'!=_0x417bdb['type']||'tableCellSuggestion'!=_0x417bdb['name']||0x1!=_0x417bdb['length'])continue;const _0x2927df=_0x26adca['createRange'](_0x417bdb['position'],_0x417bdb['position']['getShiftedBy'](0x1));if(!_0x2ff1c3['find'](({data:_0x44def7})=>_0x44def7['newRange']['isEqual'](_0x2927df))){for(const {name:_0x387d15,data:_0xe965c8}of _0x2ff1c3)if(_0x2927df['containsRange'](_0xe965c8['newRange'])){_0x26adca['updateMarker'](_0x387d15,{'range':_0x2927df}),_0x40de21=!0x0;break;}}}return _0x40de21;}),_0x2b4c55['model']['document']['registerPostFixer'](_0x4d5ecf=>{let _0x636b4a=!0x1;const _0x3713ac=_0x2b4c55['plugins']['get']('Users')['me'],_0xd4ef83=_0x368c62['getSuggestions']()['filter'](_0x23ce77=>_0x23ce77['isInContent']&&_0x23ce77['author']==_0x3713ac),_0x50bb87=new Set(),_0x15a679=new Set();for(const _0x4c8958 of _0xd4ef83)if('tablePaste'==_0x4c8958['subType'])for(const _0x2f6688 of _0x4c8958['getMarkers']()){const _0x30d57b=_0x2f6688['getRange']()['getContainedElement']();if(_0x30d57b){if(_0x30d57b['is']('element','tableCellSuggestion')&&Pe(_0x30d57b)){_0x4c8958['removeMarker'](_0x2f6688['name']),_0x50bb87['add'](_0x30d57b),_0x636b4a=!0x0;const _0x2f9709=_0x30d57b['nextSibling'],_0x2fddb7=_0x30d57b['previousSibling'],_0x1cc8ee=_0x2f9709&&_0x2f9709['is']('element','tableCellSuggestion'),_0x38e0bc=_0x2fddb7&&_0x2fddb7['is']('element','tableCellSuggestion');_0x1cc8ee&&!_0x50bb87['has'](_0x2f9709)&&_0x15a679['add'](_0x2f9709),_0x38e0bc&&!_0x50bb87['has'](_0x2fddb7)&&_0x15a679['add'](_0x2fddb7);}else _0x30d57b['is']('element','paragraph')&&_0x30d57b['isEmpty']&&(_0x4c8958['removeMarker'](_0x2f6688['name']),_0x636b4a=!0x0);}}else{if('tablePasteCell'==_0x4c8958['subType']){if(!_0x4c8958['attributes']||!_0x4c8958['attributes']['tablePasteChainId'])continue;const _0x4ef400=_0x4c8958['attributes']['markerAttributes'];if(_0x4ef400&&Object['keys'](_0x4ef400)['length'])continue;const _0x105ff7=_0x4c8958['attributes']['tablePasteChainId'];let _0x487f75=!0x0,_0x19b616=!0x0;for(const _0x40db58 of _0xd4ef83)if(_0x40db58['subType']&&_0x40db58['subType']['startsWith']('tablePaste')){if(!_0x40db58['attributes']['tablePasteChainId']){_0x19b616=!0x1;break;}if(_0x40db58['id']!=_0x4c8958['id']&&_0x40db58['attributes']['tablePasteChainId']==_0x105ff7){_0x487f75=!0x1;break;}}_0x19b616&&_0x487f75&&(_0x4c8958['removeMarkers'](),_0x636b4a=!0x0);}}for(const _0x5deba7 of _0x50bb87)_0x4d5ecf['remove'](_0x5deba7);for(const _0x2496bd of _0x15a679)_0x4d5ecf['unwrap'](_0x2496bd);return _0x636b4a;}),_0x2b4c55['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x33df0a,_0x5300aa)=>_0x4d59b8(_0x33df0a),'converterPriority':'high'}),_0x2b4c55['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3f4e6d,_0x492777)=>_0x492777['options']['showSuggestionHighlights']?_0x4d59b8(_0x3f4e6d,!0x1):null,'converterPriority':'high'});const _0x39b4bc=_0x2b4c55['editing']['view'];this['listenTo'](_0x39b4bc['document'],'clipboardOutput',(_0x3e6892,_0x4e78dc)=>{const _0x7e8b91=[];for(const _0x129f23 of _0x39b4bc['createRangeIn'](_0x4e78dc['content'])['getItems']())_0x129f23['is']('element','suggestion-td')&&_0x7e8b91['push'](_0x129f23);_0x39b4bc['change'](_0x24fa7c=>{for(const _0x5622c5 of _0x7e8b91)_0x24fa7c['move'](_0x24fa7c['createRangeIn'](_0x5622c5),_0x24fa7c['createPositionBefore'](_0x5622c5)),_0x24fa7c['remove'](_0x5622c5);});});}}function Pe(_0x598bf3){if(_0x598bf3['isEmpty'])return!0x0;const _0x37796b=_0x598bf3['getChild'](0x0);return _0x37796b['is']('element','paragraph')&&_0x37796b['isEmpty'];}function he(_0x47c8cb,_0x2031fd={},_0x43fbb4){for(const {isAnchor:_0x4d5b38,cellHeight:_0x7b4932,cellWidth:_0x13989f}of _0x43fbb4['createTableWalker'](_0x47c8cb,{'includeAllSlots':!0x0,..._0x2031fd}))if(!_0x4d5b38||0x1!=_0x7b4932||0x1!=_0x13989f)return!0x1;return!0x0;}class vt extends _0x43660f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x422086=this['editor']['plugins']['get']('TrackChangesEditing');_0x422086['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x422086['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x422086['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x422086['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x422086['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x422086['_descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1133ac,_0x4ca990){const _0x37a944=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14a006=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xf70ff0=_0x4ca990['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5a14b4=_0x14a006['getColumnGroupElement'](_0xf70ff0);let _0x3f0284=_0x5a14b4?_0x14a006['getTableColumnsWidths'](_0x5a14b4):null,_0x70176f=_0xf70ff0['getAttribute']('tableWidth')||null;const _0x1b4333=_0x4ca990['tableWidth']||_0x70176f,_0x42e348=_0x4ca990['columnWidths']||_0x3f0284,_0x17e151=this['editor']['plugins']['get']('Users')['me'];for(const _0x3286e1 of _0x37a944['getSuggestions']()){const _0x3fad18=_0x3286e1['getContainedElement']();if('resizeTable'===_0x3286e1['subType']&&_0x3fad18===_0xf70ff0){_0x3286e1['author']!==_0x17e151&&_0x3286e1['discard']();const _0x30aa7a=_0x3286e1['data']['commandParams'];_0x70176f=_0x30aa7a[0x0]['tableWidth'],_0x3f0284=_0x30aa7a[0x0]['columnWidths'];break;}}_0x1133ac({'table':_0xf70ff0,'tableWidth':_0x1b4333,'columnWidths':_0x42e348}),_0x37a944['markBlockFormat'](_0xf70ff0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x70176f,'columnWidths':_0x3f0284}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa17aa6){if('formatBlock'!=_0xa17aa6['type']&&'formatInline'!=_0xa17aa6['type'])return;const {data:_0x5a1551}=_0xa17aa6;if(_0x5a1551&&'resizeTable'===_0x5a1551['formatGroupId']){const _0x9ccc23='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x9ccc23)};}}}class _t extends _0x43660f{['afterInit'](){const _0x1e745d=this['editor'];_0x1e745d['plugins']['has']('Template')&&_0x1e745d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x43660f{['afterInit'](){const _0x35131d=this['editor'];if(!_0x35131d['commands']['get']('insertTableOfContents'))return;_0x35131d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x82d225=_0x35131d['plugins']['get']('TrackChangesEditing'),_0x4ae7bd=_0x35131d['locale'];_0x82d225['_descriptionFactory']['registerElementLabel']('tableOfContents',_0x8d796d=>o(_0x4ae7bd,'ELEMENT_TABLE_OF_CONTENTS',_0x8d796d));}}class Dt extends _0x43660f{['afterInit'](){const _0x47ecf6=this['editor'];if(!_0x47ecf6['plugins']['has']('Title'))return;const _0x22a326=_0x47ecf6['plugins']['get']('TrackChangesEditing');_0x22a326['_descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x47ecf6['locale'],'ELEMENT_TITLE')),_0x47ecf6['model']['document']['registerPostFixer'](_0x5ce377=>{let _0x1917d3=!0x1;const _0x1267e9=Array['from'](_0x47ecf6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5aa87e,data:_0x3eade2}of _0x1267e9){const {group:_0x30c9ee}=_0x22a326['_splitMarkerName'](_0x5aa87e);if('suggestion'!==_0x30c9ee||!_0x3eade2['newRange'])continue;const _0x2d2244=_0x3eade2['newRange'],_0x31d277=_0x2d2244['end']['nodeBefore'];if(!_0x31d277||!_0x31d277['is']('element','title-content'))continue;if(!_0x2d2244['start']['isTouching'](_0x2d2244['end']))continue;const _0x36ffbe=_0x47ecf6['model']['schema']['getNearestSelectionRange'](_0x2d2244['end'],'forward');if(_0x36ffbe&&_0x36ffbe['isCollapsed']){const _0x4aec4d=_0x5ce377['createRange'](_0x2d2244['start'],_0x36ffbe['start']);_0x4aec4d['isEqual'](_0x2d2244)||(_0x5ce377['updateMarker'](_0x5aa87e,{'range':_0x4aec4d}),_0x1917d3=!0x0);}_0x1917d3||(_0x5ce377['removeMarker'](_0x5aa87e),_0x1917d3=!0x0);}return _0x1917d3;});}}class Nt extends _0x43660f{['afterInit'](){const _0x464f8d=this['editor'],_0x4842df=_0x464f8d['plugins']['get']('TrackChangesEditing');_0x464f8d['plugins']['has']('UndoEditing')&&(_0x4842df['enableCommand']('undo'),_0x4842df['enableCommand']('redo'));}}class Mt extends _0x43660f{static get['requires'](){return[jt];}['afterInit'](){const _0x37c73d=this['editor'];if(!_0x37c73d['plugins']['has']('TableCaptionEditing'))return;_0x37c73d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x43660f{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x501690=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x35d6b4 of this['tableProperties'])_0x501690['enableCommand'](_0x35d6b4,(_0x110ab5,_0x51ab50)=>{const _0xb81795=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x35d6b4,[_0xb81795],this['tableProperties'],'tableProperties',_0x110ab5,_0x51ab50);});_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x501690['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x59880a,_0x9533d8)=>this['handleDiscardAction'](this['tableProperties'],_0x59880a,_0x9533d8)),_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x15f66b of this['tableCellProperties'])_0x501690['enableCommand'](_0x15f66b,(_0x3fe35d,_0x2cb48e)=>{const _0x302e83=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x15f66b,_0x302e83,this['tableCellProperties'],'tableCellProperties',_0x3fe35d,_0x2cb48e);});_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x501690['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x44d170,_0x52d8a5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x44d170,_0x52d8a5)),_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x501690['_descriptionFactory']['registerDescriptionCallback'](_0x10edf8=>this['handleSuggestionDescription'](_0x10edf8));}['_handlePropertyChange'](_0xa0c202,_0x23252f,_0x35ec10,_0x529285,_0x348799,_0x4f32c0){const _0x335ef2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4f32c0['batch'],()=>{for(const _0x2cf474 of _0x23252f){if(this['_getSuggestion'](_0x2cf474,_0x529285))_0x348799(_0x4f32c0);else{const _0x2d6c31={};for(const _0x616c78 of _0x35ec10){const _0x548204=_0x2cf474['getAttribute'](_0x616c78);void 0x0!==_0x548204&&(_0x2d6c31[_0x616c78]=_0x548204);}_0x348799(_0x4f32c0),_0x335ef2['markBlockFormat'](_0x2cf474,{'commandParams':[_0x2d6c31]},[],_0x529285);}}});}['handleDiscardAction'](_0x20ba61,_0x52e281,_0x392a71){const _0xa25851=_0x52e281[0x0]['start']['nodeAfter'],_0x34a881=_0x392a71['commandParams'][0x0];this['editor']['model']['change'](_0x30c52e=>{for(const _0x18e3f3 of _0x20ba61)void 0x0!==_0x34a881[_0x18e3f3]?_0x30c52e['setAttribute'](_0x18e3f3,_0x34a881[_0x18e3f3],_0xa25851):_0x30c52e['removeAttribute'](_0x18e3f3,_0xa25851);});}['handleSuggestionDescription'](_0x4c56d2){if(_0x4c56d2['data'])switch(_0x4c56d2['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4b6e61,_0x127538){const _0x46ec9a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x455cd8 of _0x46ec9a['getSuggestions']({'skipNotAttached':!0x0})){const _0x4d1359=_0x455cd8['getContainedElement']();if(_0x455cd8['subType']===_0x127538&&_0x4d1359===_0x4b6e61)return _0x455cd8;}return null;}constructor(_0x34236c){super(_0x34236c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x43660f{static get['requires'](){return['CommentsRepository',_0x380c8c,_0x21020d,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}['init'](){const _0x3c26d4=this['editor'],_0x2ed2ca=(_0xad3aa9,_0x442516)=>{if('attribute'!=_0xad3aa9)return'ck-suggestion-marker-'+_0xad3aa9;const _0x2fde01=_0x442516['split']('|')[0x0];return this['_isBlockAttribute'](_0x2fde01)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3c26d4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x50ad77=>{const {id:_0x29e952,type:_0x12cf89,subType:_0x33650b}=this['_splitMarkerName'](_0x50ad77['markerName']),_0x928084=['ck-suggestion-marker',_0x2ed2ca(_0x12cf89,_0x33650b)];let _0x154b1d=0xbb8;return this['activeMarkers']['includes'](_0x50ad77['markerName'])&&(_0x928084['push']('ck-suggestion-marker--active'),_0x154b1d=0xbc2),'deletion'==_0x12cf89&&(_0x154b1d+=0x5),{'classes':_0x928084,'attributes':{'data-suggestion':_0x29e952},'priority':_0x154b1d};}}),_0x3c26d4['conversion']['for']('dataDowncast')['add'](_0x11e89e=>{_0x11e89e['on']('addMarker:suggestion',(_0x3b0d29,_0xcb6ce7,_0x26a000)=>{if(!_0x26a000['options']['showSuggestionHighlights'])return;const _0x460125=_0xcb6ce7['item'];if(!_0x460125)return;const _0x41d309=_0x26a000['mapper']['toViewElement'](_0x460125);_0x3c26d4['model']['schema']['isObject'](_0x460125)&&_0x41d309&&!_0x41d309['getCustomProperty']('widget')&&_0x41d309['is']('containerElement')&&_0x19342a(_0x41d309,_0x26a000['writer']);},{'priority':'high'});}),_0x3c26d4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5233a8,_0x5c9b24)=>{if(!_0x5c9b24['options']['showSuggestionHighlights'])return null;const {type:_0x2ee0f0,subType:_0x3236d5}=this['_splitMarkerName'](_0x5233a8['markerName']);return{'classes':['ck-suggestion-marker',_0x2ed2ca(_0x2ee0f0,_0x3236d5)],'priority':0xbb8};}});const _0x243abe=({showActiveMarkers:_0x5665dc=!0x0,isAttributeSuggestion:_0x117d45=!0x1}={})=>(_0x47c3b8,_0x18c4e8,_0x3a3b6d)=>{if(!_0x18c4e8['item'])return;const {id:_0x12b535}=this['_splitMarkerName'](_0x18c4e8['markerName']);if(_0x117d45){const _0x308b48=this['_suggestions']['get'](_0x12b535),_0xcfd2c3=this['_getAttributeKey'](_0x308b48);if(!this['_isBlockAttribute'](_0xcfd2c3))return;}if(_0x18c4e8['item']['is']('selection'))return void _0x3a3b6d['consumable']['consume'](_0x18c4e8['item'],_0x47c3b8['name']);const _0x4e29d0=_0x3a3b6d['mapper']['toViewElement'](_0x18c4e8['item']);if(_0x18c4e8['item']['is']('element')&&_0x3c26d4['model']['schema']['isBlock'](_0x18c4e8['item'])&&!_0x4e29d0['getCustomProperty']('addHighlight')){_0x3a3b6d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4e29d0),_0x3a3b6d['writer']['setAttribute']('data-suggestion',_0x12b535,_0x4e29d0),_0x3a3b6d['mapper']['bindElementToMarker'](_0x4e29d0,_0x18c4e8['markerName']),_0x5665dc&&(this['activeMarkers']['includes'](_0x18c4e8['markerName'])?_0x3a3b6d['writer']['addClass']('ck-suggestion-marker--active',_0x4e29d0):_0x3a3b6d['writer']['removeClass']('ck-suggestion-marker--active',_0x4e29d0));for(const _0x4e3222 of _0x3c26d4['model']['createRangeIn'](_0x18c4e8['item'])['getItems']())_0x3a3b6d['consumable']['consume'](_0x4e3222,_0x47c3b8['name']);_0x3a3b6d['consumable']['consume'](_0x18c4e8['item'],_0x47c3b8['name']);}};_0x3c26d4['conversion']['for']('dataDowncast')['add'](_0xc6cd20=>{_0xc6cd20['on']('addMarker:suggestion:formatBlock',(_0x2dd8ae,_0x21f65b,_0x22e822)=>{_0x22e822['options']['showSuggestionHighlights']&&_0x243abe({'showActiveMarkers':!0x1})(_0x2dd8ae,_0x21f65b,_0x22e822);},{'priority':'highest'});}),_0x3c26d4['conversion']['for']('dataDowncast')['add'](_0x5c61d3=>{_0x5c61d3['on']('addMarker:suggestion:attribute',(_0x5a56a6,_0x132333,_0x44bf52)=>{_0x44bf52['options']['showSuggestionHighlights']&&_0x243abe({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5a56a6,_0x132333,_0x44bf52);},{'priority':'highest'});}),_0x3c26d4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x28a3a8,_0x30d450)=>_0x30d450['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x28a3a8['substr'](0xb)}}),_0x3c26d4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a69f8,{writer:_0x363c56})=>{let _0x15362b='suggestion:'+_0x4a69f8['getAttribute']('suggestion-type')+':'+_0x4a69f8['getAttribute']('id');return _0x4a69f8['getAttribute']('marker-count')&&(_0x15362b+=':'+_0x4a69f8['getAttribute']('marker-count')),_0x363c56['createElement']('$marker',{'data-name':_0x15362b});}}),_0x3c26d4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3c26d4['conversion']['for']('editingDowncast')['add'](_0x150432=>{_0x150432['on']('addMarker:suggestion:formatBlock',_0x243abe(),{'priority':'high'});}),_0x3c26d4['conversion']['for']('editingDowncast')['add'](_0x1924a0=>{_0x1924a0['on']('addMarker:suggestion:attribute',_0x243abe({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3c26d4['conversion']['for']('editingDowncast')['add'](_0x4ed4e3=>{_0x4ed4e3['on']('removeMarker:suggestion:formatBlock',(_0x349083,_0x2fa7d7,_0x137afb)=>{const _0x1f522e=_0x137afb['mapper']['markerNameToElements'](_0x2fa7d7['markerName']);if(_0x1f522e){for(const _0x5e578b of _0x1f522e)_0x5e578b['getCustomProperty']('addHighlight')||(_0x137afb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e578b),_0x137afb['writer']['removeAttribute']('data-suggestion',_0x5e578b),_0x137afb['mapper']['unbindElementFromMarkerName'](_0x5e578b,_0x2fa7d7['markerName']));}},{'priority':'high'});}),_0x3c26d4['conversion']['for']('editingDowncast')['add'](_0x50bd05=>{_0x50bd05['on']('removeMarker:suggestion:attribute',(_0x3bc066,_0x12707f,_0x5452fe)=>{const _0x58c7b1=_0x5452fe['mapper']['markerNameToElements'](_0x12707f['markerName']);if(!_0x58c7b1)return;const {id:_0x58febc}=this['_splitMarkerName'](_0x12707f['markerName']),_0x27efa5=this['_suggestions']['get'](_0x58febc),_0x54fd03=this['_getAttributeKey'](_0x27efa5);if(this['_isBlockAttribute'](_0x54fd03)){for(const _0x233a6a of _0x58c7b1)_0x233a6a['getCustomProperty']('addHighlight')||(_0x5452fe['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x233a6a),_0x5452fe['writer']['removeAttribute']('data-suggestion',_0x233a6a),_0x5452fe['mapper']['unbindElementFromMarkerName'](_0x233a6a,_0x12707f['markerName']));}},{'priority':'high'});}),_0x3c26d4['model']['document']['registerPostFixer'](_0x5442fd=>{let _0x1837ac=!0x1;const _0x38ed96=Array['from'](_0x3c26d4['model']['document']['differ']['getChangedMarkers']()),_0xdd350c=new Set();for(const {name:_0x44145e,data:_0x40714a}of _0x38ed96){const {group:_0x5e0d49,type:_0x300e1a,subType:_0x3c502e,id:_0x3f9d97}=this['_splitMarkerName'](_0x44145e);if('suggestion'!==_0x5e0d49)continue;const _0x46c119=this['_suggestions']['get'](_0x3f9d97);if(null!=_0x40714a['newRange']){'formatInline'==_0x300e1a&&(_0x1837ac=_0x1837ac||Et(_0x40714a['newRange'],_0x44145e,_0x5442fd,_0x3c26d4['model']['schema']));const _0x2e6d00='attribute'==_0x300e1a&&this['_isBlockAttribute'](_0x3c502e['split']('|')[0x0]);if(_0x40714a['newRange']['isCollapsed']||'$graveyard'==_0x40714a['newRange']['root']['rootName']||'formatBlock'==_0x300e1a&&!Ut(_0x40714a['newRange'])||_0x2e6d00&&!Ut(_0x40714a['newRange'])||'deletion'==_0x300e1a&&!(!Tt(_0x12a9c6=_0x40714a['newRange'])&&!function(_0x1a1854){return _0x1a1854['start']['parent']==_0x1a1854['end']['nodeBefore']&&_0x1a1854['start']['isAtEnd'];}(_0x12a9c6)))_0x5442fd['removeMarker'](_0x44145e),_0x1837ac=!0x0;else{if(!_0x46c119||!_0x46c119['isInContent'])continue;_0xdd350c['add'](_0x46c119);}}}var _0x12a9c6;return _0xdd350c['size']>0x0&&(_0x1837ac=!!this['_joinWithAdjacentSuggestions'](_0xdd350c)||_0x1837ac),_0x1837ac;}),_0x3c26d4['model']['document']['registerPostFixer'](_0x36d1fe=>{let _0x2b91ad=!0x1;for(const _0x2e8821 of _0x3c26d4['model']['document']['differ']['getChanges']())if('insert'==_0x2e8821['type'])for(const _0xa715a of this['_suggestions']['values']()){if(_0xa715a['isMultiRange']||!_0xa715a['isInContent'])continue;const _0x3d2c6f='formatBlock'==_0xa715a['type'],_0x1dad83=this['_getAttributeKey'](_0xa715a),_0x2ff052=_0x1dad83&&this['_isBlockAttribute'](_0x1dad83);if(!_0x3d2c6f&&!_0x2ff052)continue;const _0x7b7ced=_0xa715a['getFirstRange']();if(_0x7b7ced['start']['parent']!=_0x7b7ced['end']['parent']&&!_0x7b7ced['end']['isAtEnd']){const _0x8c3fce=_0x3c26d4['model']['createPositionAt'](_0x7b7ced['start']['nodeAfter'],'end'),_0x2c6d02=_0x3c26d4['model']['createRange'](_0x7b7ced['start'],_0x8c3fce);_0x36d1fe['updateMarker'](_0xa715a['getFirstMarker'](),{'range':_0x2c6d02}),_0x2b91ad=!0x0;}}return _0x2b91ad;}),_0x3c26d4['model']['document']['registerPostFixer'](_0x19e472=>this['_processAttributeChanges'](_0x19e472)),_0x3c26d4['model']['document']['registerPostFixer'](_0x1b9a71=>!_0x1b9a71['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1b9a71)),_0x3c26d4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3c26d4['model']['document']['on']('change:data',(_0x5e7693,_0x1d050a)=>{if(!_0x1d050a['isLocal']||_0x1d050a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3abf86=_0x3c26d4['model']['document']['differ']['getChanges']();if(0x0==_0x3abf86['length'])return;const _0x4afd96=[],_0x48f077=_0x3abf86['filter'](_0x289f0f=>'attribute'==_0x289f0f['type']),_0x48c708=_0x3abf86['filter'](_0x188bd6=>'insert'==_0x188bd6['type']&&'$text'!=_0x188bd6['name']),_0x1132da=_0x3abf86['filter'](_0x374f08=>'remove'==_0x374f08['type']&&'$text'!=_0x374f08['name']);for(const _0x487f1e of _0x48f077)this['_isRegisteredAttribute'](_0x487f1e['attributeKey'])&&_0x4afd96['push']({'key':_0x487f1e['attributeKey'],'newValue':_0x487f1e['attributeNewValue'],'oldValue':_0x487f1e['attributeOldValue'],'range':Ot(_0x487f1e['range'],_0x3c26d4['model'])});for(const _0x432b88 of _0x48c708){const _0xd61fdc=_0x1132da['find'](_0x43678c=>_0x43678c['_element']===_0x432b88['_element']);if(_0xd61fdc){const _0x3382ef=Gt(_0x432b88['position']['nodeAfter'],_0x3c26d4['model']);_0xd61fdc['name']!==_0x432b88['name']&&_0x4afd96['push']({'key':m,'newValue':_0x432b88['name'],'oldValue':_0xd61fdc['name'],'range':_0x3382ef});for(const [_0x2d5b2b,_0x10bd9b]of _0xd61fdc['attributes']){if(!this['_isRegisteredAttribute'](_0x2d5b2b))continue;const _0x51e7de=_0x432b88['attributes']['get'](_0x2d5b2b);_0x10bd9b!==_0x51e7de&&_0x4afd96['push']({'key':_0x2d5b2b,'newValue':_0x51e7de,'oldValue':_0x10bd9b,'range':_0x3382ef});}for(const [_0x858aa1,_0x2982d9]of _0x432b88['attributes'])this['_isRegisteredAttribute'](_0x858aa1)&&(_0xd61fdc['attributes']['has'](_0x858aa1)||_0x4afd96['push']({'key':_0x858aa1,'newValue':_0x2982d9,'oldValue':null,'range':_0x3382ef}));}}0x0!=_0x4afd96['length']&&_0x3c26d4['model']['enqueueChange'](_0x1d050a,_0x5e9595=>{const _0x585442=_0x461740();for(const {range:_0x2745f2,key:_0x1984b5,oldValue:_0x5cb278,newValue:_0x3b3b2f}of _0x4afd96)this['markAttributeChange'](_0x2745f2,_0x1984b5,_0x5cb278,_0x3b3b2f,{'groupId':_0x585442});this['_reduceExistingSuggestions'](_0x5e9595,_0x4afd96);});},{'priority':'lowest'}),_0x3c26d4['model']['markers']['on']('update:suggestion',(_0x3293b0,_0x264285,_0x54f912)=>{if(null==_0x54f912){const {id:_0x3b8750}=this['_splitMarkerName'](_0x264285['name']),_0x461acd=this['_suggestions']['get'](_0x3b8750);_0x461acd&&_0x461acd['addMarkerName'](_0x264285['name']);}}),_0x3c26d4['model']['document']['on']('change:data',()=>{const _0x3bb39b=Array['from'](_0x3c26d4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5c0d4c=>'suggestion'===this['_splitMarkerName'](_0x5c0d4c['name'])['group']);if(0x0===_0x3bb39b['length'])return;_0x3bb39b['sort']((_0x421575,_0x429bf7)=>{const _0x4608ab=_0x421575['data']['oldRange'],_0x1669fe=_0x429bf7['data']['oldRange'];return null===_0x4608ab&&null===_0x1669fe?0x0:null===_0x4608ab&&null!==_0x1669fe?-0x1:null!==_0x4608ab&&null===_0x1669fe?0x1:_0x4608ab['start']['isBefore'](_0x1669fe['start'])?-0x1:0x1;});const _0x4b5aa8=new Set(),_0x2ee639=new Set();for(const {name:_0x460693,data:_0x482a1c}of _0x3bb39b){const {id:_0x1e2e57}=this['_splitMarkerName'](_0x460693);if(null===_0x482a1c['oldRange']){const _0x559448=this['_handleNewSuggestionMarker'](_0x460693);_0x2ee639['add'](_0x559448);}else{const _0x218e09=this['_suggestions']['get'](_0x1e2e57);null!==_0x482a1c['newRange']||_0x218e09['isInContent']?(_0x4b5aa8['add'](_0x218e09['head']),_0x2ee639['add'](_0x218e09)):this['_removeSuggestion'](_0x218e09);}}_0x2ee639['size']>0x0&&this['_refreshSuggestionsChain'](_0x2ee639);for(const _0x3c0982 of _0x4b5aa8)this['fire']('suggestionChanged',_0x3c0982);}),_0x3c26d4['model']['on']('applyOperation',(_0x50c988,_0x41d420)=>{const _0x18b4b9=_0x41d420[0x0];if(!this['_suggestions']['size'])return;if(!_0x18b4b9['isDocumentOperation'])return;if(_0x18b4b9['batch']['isUndo']||!_0x18b4b9['batch']['isLocal'])return;let _0x50325b,_0x100c88;switch(_0x18b4b9['type']){case'insert':_0x50325b=_0x3c26d4['model']['createPositionAt'](_0x18b4b9['position']),_0x100c88=_0x50325b['getShiftedBy'](_0x18b4b9['howMany']);break;case'split':_0x50325b=_0x3c26d4['model']['createPositionAt'](_0x18b4b9['splitPosition']),_0x100c88=_0x3c26d4['model']['createPositionAt'](_0x18b4b9['moveTargetPosition']);break;case'move':_0x50325b=_0x3c26d4['model']['createPositionAt'](_0x18b4b9['targetPosition']),_0x100c88=_0x50325b['getShiftedBy'](_0x18b4b9['howMany']);break;default:return;}const _0x146e98=_0x3c26d4['model']['createRange'](_0x50325b,_0x100c88);_0x3c26d4['model']['change'](()=>{for(const {suggestion:_0x5c54e8,meta:_0x292e89}of this['_findSuggestions'](_0x146e98)){if(_0x5c54e8['isMultiRange'])continue;if('formatInline'==_0x5c54e8['type'])continue;const _0x597d6b=this['_getAttributeKey'](_0x5c54e8);if(_0x597d6b&&this['_isBlockAttribute'](_0x597d6b)&&'split'!=_0x18b4b9['type'])continue;const _0x2a0cdb=_0x5c54e8['data']&&_0x5c54e8['data']['multipleBlocks'];('formatBlock'!=_0x5c54e8['type']||'split'==_0x18b4b9['type']&&!_0x2a0cdb)&&(_0x292e89['containsRangeInObject']||'insertion'==_0x5c54e8['type']&&_0x292e89['isOwn']||_0x5c54e8['getFirstRange']()['containsRange'](_0x146e98)&&this['_breakSuggestionMarker'](_0x5c54e8,_0x50325b,_0x100c88));}});},{'priority':'lowest'}),_0x3c26d4['model']['on']('deleteContent',(_0x5d82e7,_0x1d896a)=>{const _0x35ad7d=_0x1d896a[0x0],_0x5800cc=_0x1d896a[0x1];if(_0x5800cc&&_0x5800cc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x35ad7d['isCollapsed'])return;const _0x494b40=_0x3c26d4['model']['schema'],{start:_0xe436fe,end:_0x1aa08b}=_0x35ad7d['getFirstRange'](),_0x242653=_0xe436fe['nodeAfter']&&_0x494b40['isLimit'](_0xe436fe['nodeAfter'])?null:_0x494b40['getNearestSelectionRange'](_0xe436fe,'forward'),_0x4230a1=_0x1aa08b['nodeBefore']&&_0x494b40['isLimit'](_0x1aa08b['nodeBefore'])?null:_0x494b40['getNearestSelectionRange'](_0x1aa08b,'backward'),_0xc0c2b1=_0x3c26d4['model']['createRange'](_0x242653?_0x242653['start']:_0xe436fe,_0x4230a1?_0x4230a1['end']:_0x1aa08b);_0x3c26d4['model']['change'](_0x19737b=>{this['markDeletion'](_0xc0c2b1);const _0xb3aaff=_0x3c26d4['model']['schema']['getNearestSelectionRange'](_0xc0c2b1['start']);_0x35ad7d['is']('documentSelection')?_0x19737b['setSelection'](_0xb3aaff):_0x35ad7d['setTo'](_0xb3aaff);}),_0x5d82e7['stop']();},{'priority':_0x43c881['normal']+0xa}),_0x3c26d4['model']['on']('insertContent',(_0x8529ed,_0x25d3a1)=>{const _0x388e64=_0x25d3a1[_0x25d3a1['length']-0x1];_0x388e64&&_0x388e64['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3c26d4['model']['change'](()=>{let _0x4825ef=_0x3c26d4['model']['insertContent'](_0x25d3a1[0x0],_0x25d3a1[0x1],_0x25d3a1[0x2],{'forceDefaultExecution':!0x0});if(!_0x4825ef)return;_0x8529ed['return']=_0x4825ef['clone']();const _0x13a1b3=_0x4825ef['end']['nodeBefore'],_0x5ce1af=_0x3c26d4['model']['schema'];_0x13a1b3&&_0x5ce1af['isBlock'](_0x13a1b3)&&!_0x5ce1af['isObject'](_0x13a1b3)&&(_0x4825ef=_0x3c26d4['model']['createRange'](_0x4825ef['start'],_0x3c26d4['model']['createPositionAt'](_0x13a1b3,'end'))),this['markInsertion'](_0x4825ef);}),_0x8529ed['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4c23cf=new $(_0x3c26d4,this['_suggestions']);_0x3c26d4['commands']['add']('acceptSuggestion',_0x4c23cf),this['enableCommand']('acceptSuggestion');const _0x1fbe82=new B(_0x3c26d4,this['_suggestions']);_0x3c26d4['commands']['add']('discardSuggestion',_0x1fbe82),this['enableCommand']('discardSuggestion'),_0x3c26d4['commands']['add']('acceptAllSuggestions',new x(_0x3c26d4,_0x4c23cf,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3c26d4['commands']['add']('discardAllSuggestions',new x(_0x3c26d4,_0x1fbe82,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3c26d4['commands']['add']('acceptSelectedSuggestions',new R(_0x3c26d4,_0x4c23cf,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3c26d4['commands']['add']('discardSelectedSuggestions',new R(_0x3c26d4,_0x1fbe82,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5ef883=_0x3c26d4['plugins']['get']('CommentsRepository');this['listenTo'](_0x5ef883,'addComment',(_0x19e27f,{threadId:_0xb92c9c})=>{const _0x522105=this['_suggestions']['get'](_0xb92c9c);_0x522105&&_0x522105['commentThread']&&0x1===_0x522105['commentThread']['length']&&this['_updateSuggestionData'](_0xb92c9c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5ef883,'removeComment',(_0x5ba08e,{threadId:_0x63015e})=>{const _0x4ee0ec=this['_suggestions']['get'](_0x63015e);_0x4ee0ec&&_0x4ee0ec['commentThread']&&!_0x4ee0ec['commentThread']['length']&&this['_updateSuggestionData'](_0x63015e,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5e6aae){if(this['_adapter'])throw new _0x148f6c('track-changes-adapter-already-set',this);this['_adapter']=_0x5e6aae;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x31c217=!0x1,toJSON:_0x47ea9b=!0x1}={}){const _0x4c402a=[];for(const _0x5c2474 of this['_suggestions']['values']())_0x31c217&&!_0x5c2474['isInContent']||_0x4c402a['push'](_0x5c2474);return _0x47ea9b?_0x4c402a['map'](_0x5b6160=>_0x5b6160['toJSON']()):_0x4c402a;}['getSuggestion'](_0x5cc0fb){const _0x33ed0d=this['_suggestions']['get'](_0x5cc0fb);if(!_0x33ed0d)throw new _0x148f6c('track-changes-suggestion-not-found',this);return _0x33ed0d;}['hasSuggestion'](_0xe95a41){return this['_suggestions']['has'](_0xe95a41);}['addSuggestionData'](_0x5f40a7){const {authorId:_0x545b74,id:_0xaa8c5e,attributes:_0x42d944}=_0x5f40a7,[_0x4b3af6,_0x106ef0]=_0x5f40a7['type']['split'](':'),_0x378a28=this['_suggestions']['get'](_0xaa8c5e)||this['_createSuggestion'](_0x4b3af6,_0x106ef0,_0xaa8c5e,_0x545b74,_0x42d944);if(this['_addThreadToSuggestion'](_0x378a28),this['_checkSuggestionCorrectness'](_0x378a28,_0x4b3af6,_0x106ef0||null,_0x545b74),_0x378a28['createdAt']=_0x5f40a7['createdAt'],_0x378a28['_isDataLoaded']=!0x0,_0x42d944&&_0x42d944['@external']){const _0x16eed8=_0x42d944['@external'],_0x13b805=this['_getExternalAuthor'](_0x16eed8['authorName']);_0x378a28['authoredAt']=_0x16eed8['createdAt'],_0x378a28['author']=_0x13b805,_0x378a28['isExternal']=!0x0;}else _0x378a28['authoredAt']=_0x5f40a7['createdAt'];switch(_0x5f40a7['data']&&(_0x378a28['data']=_0x5f40a7['data']),_0x5f40a7['attributes']&&(_0x378a28['attributes']=_0x5f40a7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x378a28['_saved']=!0x0),this['_suggestionState']['get'](_0x378a28)){case'notReady':this['_suggestionState']['set'](_0x378a28,'dataReady');break;case'markerReady':_0x378a28['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x378a28])),this['_refreshSuggestionsChain'](new Set([_0x378a28])),this['_suggestionState']['set'](_0x378a28,'ready'),this['fire']('suggestionLoaded',_0x378a28)):this['_suggestionState']['set'](_0x378a28,'removed');}return _0x378a28;}['acceptSuggestion'](_0x2eb978){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x223f0e of _0x2eb978['getAllAdjacentSuggestions']())_0x223f0e['accept']();});});}['discardSuggestion'](_0x1ade48){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27c009 of _0x1ade48['getAllAdjacentSuggestions']())_0x27c009['discard']();});});}['enableCommand'](_0xf58558,_0x454dff){const _0x2af715=this['editor']['commands']['get'](_0xf58558);if(!_0x2af715)throw new _0x148f6c('track-changes-command-not-found',this,{'commandName':_0xf58558});if(this['_enabledCommands']['has'](_0x2af715))throw new _0x148f6c('track-changes-enable-command-twice',this,{'commandName':_0xf58558});this['_enabledCommands']['add'](_0x2af715),_0x454dff&&_0x2af715['on']('execute',(_0x15bb04,_0x5bc1ac)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5bc1ac['length']>0x0&&_0x5bc1ac[_0x5bc1ac['length']-0x1]&&_0x5bc1ac[_0x5bc1ac['length']-0x1]['forceDefaultExecution']?_0x5bc1ac['pop']():(_0x15bb04['return']=_0x454dff((..._0x444049)=>_0x2af715['execute'](..._0x444049,{'forceDefaultExecution':!0x0}),..._0x5bc1ac),_0x15bb04['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x59e0c8){let _0x4a59d8,_0x5ce942;const _0x23c69f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4a59d8=_0x59e0c8();}catch(_0x4eff6f){_0x5ce942=_0x4eff6f;}return _0x23c69f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5ce942&&_0x148f6c['rethrowUnexpectedError'](_0x5ce942,this),_0x4a59d8;}['markInsertion'](_0x3a9264,_0x4d6d9a=null,_0x682e68={}){if(_0x3a9264['isCollapsed'])return null;const _0x32ac15=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1468bd,meta:_0x1f7494}of this['_findSuggestions'](_0x3a9264,'insertion'))if(_0x1f7494['isOwn']){if(!_0x1f7494['isNextTo']){if(_0x1f7494['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x1468bd,_0x682e68))continue;return _0x1468bd;}if(Lt(_0x1468bd,_0x682e68))return _0x1468bd;this['_breakSuggestionMarker'](_0x1468bd,_0x3a9264['start'],_0x3a9264['end']);break;}if(_0x4d6d9a==_0x1468bd['subType']&&Lt(_0x1468bd,_0x682e68)){const _0x19c912=_0x1468bd['getFirstRange']();return _0x19c912['start']['isEqual'](_0x3a9264['end'])?this['_setSuggestionRange'](_0x1468bd,this['_model']['createRange'](_0x3a9264['start'],_0x19c912['end'])):this['_setSuggestionRange'](_0x1468bd,this['_model']['createRange'](_0x19c912['start'],_0x3a9264['end'])),_0x1468bd;}}const _0x11a752=_0x461740(),_0x3ee57a=_0x32ac15['id'],_0x1ded5d=_0x4d6d9a?'insertion:'+_0x4d6d9a:'insertion',_0x2c2f28=this['_setSuggestionData']({'id':_0x11a752,'type':_0x1ded5d,'createdAt':new Date(),'authorId':_0x3ee57a,'attributes':_0x682e68});return this['_addSuggestionMarker'](_0x1ded5d,_0x11a752,_0x3ee57a,_0x3a9264),_0x2c2f28;}['markMultiRangeInsertion'](_0x29151a,_0x2161a7='multi',_0x4e0010={}){const _0x3e1b32=this['editor']['plugins']['get']('Users')['me'],_0x3b53b5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2161a7,'join');for(const _0x1da891 of this['getSuggestions']())if(_0x1da891['author']['id']==_0x3e1b32['id']&&'insertion'==_0x1da891['type']&&_0x1da891['subType']==_0x2161a7&&Lt(_0x1da891,_0x4e0010)&&(_0x3b53b5(_0x1da891['getRanges'](),_0x29151a)||_0x3b53b5(_0x29151a,_0x1da891['getRanges']()))){for(const _0x56ee43 of _0x29151a)_0x1da891['addRange'](_0x56ee43);return _0x1da891;}for(const {suggestion:_0x1aec71,meta:_0x22605e}of this['_findSuggestions'](_0x29151a,'insertion')){if(!_0x22605e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x22605e['containsRangeInObject'])continue;if(!Lt(_0x1aec71,_0x4e0010))continue;let _0x2c2fce=!0x0;for(const _0x544cc3 of _0x1aec71['getRanges']())for(const _0x165cf9 of _0x29151a)if(!_0x544cc3['containsRange'](_0x165cf9)){_0x2c2fce=!0x1;break;}if(_0x2c2fce)return _0x1aec71;}const _0x3070cf=_0x461740(),_0x5a3652=_0x3e1b32['id'],_0x31aa1c='insertion:'+_0x2161a7,_0x6b3a62=this['_setSuggestionData']({'id':_0x3070cf,'type':_0x31aa1c,'createdAt':new Date(),'authorId':_0x5a3652,'attributes':_0x4e0010});for(const _0x460ebb of _0x29151a)this['_addSuggestionMarker'](_0x31aa1c,_0x3070cf,_0x5a3652,_0x460ebb,u['getMultiRangeId']());return _0x6b3a62;}['markInlineFormat'](_0x53e419,_0xee54df,_0x5f4c4e=null,_0x171ac7={}){if(_0x5f4c4e=_0x5f4c4e||Vt(_0xee54df),_0x53e419['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3f2720=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5f4c4e,'accept');return this['forceDefaultExecution'](()=>_0x3f2720([_0x53e419],_0xee54df,_0x171ac7)),null;}const _0x27e82b=this['editor']['plugins']['get']('Users')['me'],_0xc68346=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3bcf48,meta:_0x49f8f6}of this['_findSuggestions'](_0x53e419,'insertion'))_0x49f8f6['isOwn']&&!_0x49f8f6['isInsideObject']&&_0xc68346['push'](..._0x3bcf48['getRanges']());}const _0x591484=function(_0x25ace7,_0x1ecc32){const _0x2850f7=[];for(const _0x430d80 of _0x1ecc32){const _0x1e58be=_0x25ace7['getIntersection'](_0x430d80);_0x1e58be&&_0x2850f7['push'](_0x1e58be);}return _0x2850f7;}(_0x53e419,_0xc68346),_0x4e848a=function(_0x1dbcb0,_0x58509b){const _0x3bf57a=[_0x1dbcb0];for(const _0x22f154 of _0x58509b){let _0x1d08a4=0x0;for(;_0x1d08a4<_0x3bf57a['length'];){const _0x2c9cbc=_0x3bf57a[_0x1d08a4]['getDifference'](_0x22f154);_0x3bf57a['splice'](_0x1d08a4,0x1,..._0x2c9cbc),_0x1d08a4+=_0x2c9cbc['length'];}}return _0x3bf57a;}(_0x53e419,_0xc68346);_0x591484['length']&&this['_model']['change'](()=>{for(const _0x4abe12 of _0x591484){const _0x4c7a73=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5f4c4e,'accept');this['forceDefaultExecution'](()=>_0x4c7a73([_0x4abe12],_0xee54df,_0x171ac7));}});for(const _0x2d1f27 of _0x4e848a){let _0x159da9=null,_0x215ecb=_0x2d1f27['start'],_0x2df8d9=_0x2d1f27['end'];for(const {suggestion:_0xd8c402,meta:_0x40439f}of this['_findSuggestions'](_0x2d1f27,'formatInline')){if(!_0x40439f['isOwn'])continue;if(_0xd8c402['subType']!=_0x5f4c4e)continue;if(!Lt(_0xd8c402,_0x171ac7))continue;const _0x4f95ba=_0xd8c402['getFirstRange']();if(_0x4f95ba['containsRange'](_0x2d1f27,!0x0))return null;_0x215ecb=_0x215ecb['isBefore'](_0x4f95ba['start'])?_0x215ecb:_0x4f95ba['start'],_0x2df8d9=_0x2df8d9['isAfter'](_0x4f95ba['end'])?_0x2df8d9:_0x4f95ba['end'],_0x159da9?_0x4f95ba['start']['isBefore'](_0x159da9['getFirstRange']()['start'])?(_0x159da9['removeMarkers'](),_0x159da9=_0xd8c402):_0xd8c402['removeMarkers']():_0x159da9=_0xd8c402;}const _0x5be97c=this['_model']['createRange'](_0x215ecb,_0x2df8d9);if(_0x159da9)this['_setSuggestionRange'](_0x159da9,_0x5be97c);else{const _0x22c7d0=_0x461740(),_0x5e8b88=_0x27e82b['id'];this['_setSuggestionData']({'id':_0x22c7d0,'type':'formatInline:'+_0x5f4c4e,'data':_0xee54df,'createdAt':new Date(),'authorId':_0x5e8b88,'attributes':_0x171ac7}),this['_addSuggestionMarker']('formatInline:'+_0x5f4c4e,_0x22c7d0,_0x5e8b88,_0x5be97c);}}return null;}['markBlockFormat'](_0x89c689,_0x48e2b5,_0x88d10=[],_0x46f1b8=null,_0x27d1ec={}){_0x48e2b5['formatGroupId']||(_0x48e2b5['formatGroupId']=_0x48e2b5['commandName']),_0x48e2b5['multipleBlocks']=_0x89c689['is']('range'),_0x46f1b8=_0x46f1b8||Vt(_0x48e2b5);const _0x27ce03=_0x88d10['map'](_0xdf075=>Gt(_0xdf075,this['_model'])),_0x1e8337=_0x89c689['is']('range')?_0x89c689:Gt(_0x89c689,this['_model']);if('never'===this['_trackFormatChanges']){const _0x586c0a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x46f1b8,'accept');return this['forceDefaultExecution'](()=>_0x586c0a([_0x1e8337],_0x48e2b5,_0x27d1ec)),null;}_0x27ce03['push'](_0x1e8337);let _0x497f19=!0x0;for(const _0x462728 of _0x27ce03)if(!this['_rangeIsInLocalUserInsertion'](_0x462728)){_0x497f19=!0x1;break;}if(_0x497f19&&'always'!==this['_trackFormatChanges']){const _0x5ab2cb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x46f1b8,'accept');return this['forceDefaultExecution'](()=>_0x5ab2cb([_0x1e8337],_0x48e2b5,_0x27d1ec)),null;}let _0xe6be94=null,_0xba14ca=_0x1e8337['start'],_0x1978ec=_0x1e8337['end'];for(const {suggestion:_0x13b234,meta:_0x556e92}of this['_findSuggestions'](_0x1e8337,'formatBlock')){if(!_0x556e92['isOwn'])continue;if(_0x556e92['isNextTo']||_0x556e92['containsRangeInObject']||_0x556e92['isInsideObject'])continue;if(_0x13b234['data']['formatGroupId']!=_0x48e2b5['formatGroupId'])continue;if(!Lt(_0x13b234,_0x27d1ec))continue;const _0x602e=_0x13b234['getFirstRange']();if(_0x13b234['subType']==_0x46f1b8){if(_0x602e['containsRange'](_0x1e8337,!0x0))return null;_0xba14ca=_0xba14ca['isBefore'](_0x602e['start'])?_0xba14ca:_0x602e['start'],_0x1978ec=_0x1978ec['isAfter'](_0x602e['end'])?_0x1978ec:_0x602e['end'],_0xe6be94?_0x602e['start']['isBefore'](_0xe6be94['getFirstRange']()['start'])?(_0xe6be94['removeMarkers'](),_0xe6be94=_0x13b234):_0x13b234['removeMarkers']():_0xe6be94=_0x13b234;}else{const _0x54936e=_0x1e8337['getIntersection'](_0x602e);this['_cutOutSuggestionMarker'](_0x13b234,_0x54936e);}}const _0x338742=this['editor']['plugins']['get']('Users')['me'],_0x1990ce=_0x461740(),_0x51417a=_0x338742['id'];if(_0xe6be94)return this['_setSuggestionRange'](_0xe6be94,this['_model']['createRange'](_0xba14ca,_0x1978ec)),_0xe6be94;{const _0x1e6c46=this['_setSuggestionData']({'id':_0x1990ce,'type':'formatBlock:'+_0x46f1b8,'data':_0x48e2b5,'createdAt':new Date(),'authorId':_0x51417a,'attributes':_0x27d1ec});return this['_addSuggestionMarker']('formatBlock:'+_0x46f1b8,_0x1990ce,_0x51417a,this['_model']['createRange'](_0xba14ca,_0x1978ec)),_0x1e6c46;}}['markMultiRangeBlockFormat'](_0x10b3f4,_0x1d574f,_0x27d057=[],_0x2391db=null,_0x4c8980={}){_0x1d574f['formatGroupId']||(_0x1d574f['formatGroupId']=_0x1d574f['commandName']);const _0x4b3a88=_0x10b3f4[0x0];_0x1d574f['multipleBlocks']=_0x4b3a88['is']('range'),_0x2391db=_0x2391db||Vt(_0x1d574f);const _0x5b581a=_0x27d057['map'](_0x106cd6=>Gt(_0x106cd6,this['_model'])),_0x470065=_0x4b3a88['is']('range')?_0x10b3f4:_0x10b3f4['map'](_0x5ce553=>Gt(_0x5ce553,this['_model']));if('never'===this['_trackFormatChanges']){const _0x243e3b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2391db,'accept');return this['forceDefaultExecution'](()=>_0x243e3b(_0x470065,_0x1d574f,_0x4c8980)),null;}_0x5b581a['push'](..._0x470065);let _0x533c52=!0x0;for(const _0x454a95 of _0x5b581a)if(!this['_rangeIsInLocalUserInsertion'](_0x454a95)){_0x533c52=!0x1;break;}if(_0x533c52&&'always'!==this['_trackFormatChanges']){const _0x47e172=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2391db,'accept');return this['forceDefaultExecution'](()=>_0x47e172(_0x470065,_0x1d574f,_0x4c8980)),null;}const _0x4120fb=this['editor']['plugins']['get']('Users')['me'];for(const _0x226256 of this['getSuggestions']()){if(_0x226256['author']['id']!=_0x4120fb['id'])continue;if('formatBlock'!=_0x226256['type']||_0x226256['data']['formatGroupId']!=_0x1d574f['formatGroupId'])continue;if(!Lt(_0x226256,_0x4c8980))continue;const _0x279e2e=_0x226256['subType']==_0x2391db;for(let _0x1622ec=0x0;_0x1622ec<_0x470065['length'];_0x1622ec++){const _0x56398e=_0x470065[_0x1622ec];for(const _0x161472 of _0x226256['getMarkers']()){const _0x45443c=_0x161472['getRange']();if(_0x56398e['isEqual'](_0x45443c)){_0x279e2e?(_0x470065['splice'](_0x1622ec,0x1),_0x1622ec--):_0x226256['removeMarker'](_0x161472['name']);break;}}}}if(0x0==_0x470065['length'])return null;const _0x1ef9e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2391db,'join');for(const _0xbebdf1 of this['getSuggestions']())if(_0xbebdf1['author']['id']==_0x4120fb['id']&&'formatBlock'==_0xbebdf1['type']&&_0xbebdf1['data']['formatGroupId']==_0x1d574f['formatGroupId']&&_0xbebdf1['subType']==_0x2391db&&Lt(_0xbebdf1,_0x4c8980)&&(_0x1ef9e5(_0xbebdf1['getRanges'](),_0x470065)||_0x1ef9e5(_0x470065,_0xbebdf1['getRanges']()))){for(const _0x511221 of _0x470065)_0xbebdf1['addRange'](_0x511221);return _0xbebdf1;}const _0x5ecaf0=_0x461740(),_0x10b534=_0x4120fb['id'],_0x4588b7='formatBlock:'+_0x2391db,_0x138d58=this['_setSuggestionData']({'id':_0x5ecaf0,'type':_0x4588b7,'data':_0x1d574f,'createdAt':new Date(),'authorId':_0x10b534,'attributes':_0x4c8980});for(const _0x3ab538 of _0x470065)this['_addSuggestionMarker'](_0x4588b7,_0x5ecaf0,_0x10b534,_0x3ab538,u['getMultiRangeId']());return _0x138d58;}['markDeletion'](_0x1ca13a,_0x397cfe=null,_0x1f81b6={}){if(_0x1ca13a['isCollapsed'])return null;const _0x401158=this['editor']['plugins']['get']('Users')['me'],_0x516e6f=new _0x30a6a3(_0x1ca13a['start'],_0x1ca13a['end']);for(const {suggestion:_0x36d651,meta:_0xca3892}of this['_findSuggestions'](_0x516e6f,'insertion'))if(_0xca3892['isOwn']&&!_0xca3892['isNextTo']){if(_0x36d651['isMultiRange']){const _0x19a59a=_0x36d651['getRanges']()['filter'](_0x455b81=>'$graveyard'!=_0x455b81['root']['rootName']);_0x19a59a['every'](_0x17a30b=>_0x516e6f['containsRange'](_0x17a30b,!0x0))&&_0x36d651['discard']();if(_0x19a59a['some'](_0x1a1f94=>_0x1a1f94['containsRange'](_0x516e6f,!0x0))){const _0x4ea398=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x397cfe,'accept');return this['forceDefaultExecution'](()=>_0x4ea398([_0x516e6f],null,_0x1f81b6)),null;}}else{const _0x9a6f9c=_0x516e6f['getIntersection'](_0x36d651['getFirstRange']());null!==_0x9a6f9c&&_0x36d651['_onDiscard']([_0x9a6f9c],null,_0x1f81b6);}}if(_0x516e6f['detach'](),_0x516e6f['isCollapsed']||'$graveyard'==_0x516e6f['root']['rootName'])return null;let _0x26f0fb=null,_0x4987bf=_0x516e6f['start'],_0xad4b12=_0x516e6f['end'];const _0x3e82d8=this['_findSuggestions'](_0x516e6f,'deletion');for(const {suggestion:_0x4a1f26,meta:_0x32eb96}of _0x3e82d8){const _0x2f2790=this['_model']['createRange'](_0x4987bf,_0xad4b12);if(_0x32eb96['isOwn']&&(this['_mergeNestedSuggestions']||!_0x32eb96['containsRangeInObject']&&!_0x32eb96['isInsideObject'])){if(_0x4a1f26['isMultiRange']){if(!Lt(_0x4a1f26,_0x1f81b6))continue;let _0x4e5e9e=!0x0;for(const _0x4bf250 of _0x4a1f26['getRanges']()){if(_0x4bf250['containsRange'](_0x2f2790,!0x0))return _0x4a1f26;_0x2f2790['containsRange'](_0x4bf250)||(_0x4e5e9e=!0x1);}_0x4e5e9e&&_0x4a1f26['discard']();}else{const _0x3efff8=_0x4a1f26['getFirstRange']();if(_0x3efff8['containsRange'](_0x2f2790,!0x0))return _0x4a1f26;if(!Lt(_0x4a1f26,_0x1f81b6)){_0x2f2790['containsRange'](_0x3efff8)?_0x4a1f26['removeMarkers']():_0x3efff8['containsPosition'](_0x4987bf)?_0x4987bf=_0x3efff8['end']:_0x3efff8['containsPosition'](_0xad4b12)&&(_0xad4b12=_0x3efff8['start']);continue;}_0x4987bf=_0x4987bf['isBefore'](_0x3efff8['start'])?_0x4987bf:_0x3efff8['start'],_0xad4b12=_0xad4b12['isAfter'](_0x3efff8['end'])?_0xad4b12:_0x3efff8['end'],_0x1f81b6=Object['assign']({},_0x4a1f26['attributes']),_0x26f0fb?_0x3efff8['start']['isBefore'](_0x26f0fb['getFirstRange']()['start'])?(_0x26f0fb['removeMarkers'](),_0x26f0fb=_0x4a1f26):_0x4a1f26['removeMarkers']():_0x26f0fb=_0x4a1f26;}}}if(_0x26f0fb)return this['_setSuggestionRange'](_0x26f0fb,this['_model']['createRange'](_0x4987bf,_0xad4b12)),_0x26f0fb;{const _0x3a5fee=_0x461740(),_0x180f50=this['_model']['createRange'](_0x4987bf,_0xad4b12),_0x14c310=_0x401158['id'],_0x28a3e=_0x397cfe?'deletion:'+_0x397cfe:'deletion',_0x12ab6b=this['_setSuggestionData']({'id':_0x3a5fee,'type':_0x28a3e,'createdAt':new Date(),'authorId':_0x14c310,'attributes':_0x1f81b6});return this['_addSuggestionMarker'](_0x28a3e,_0x3a5fee,_0x14c310,_0x180f50),_0x12ab6b;}}['markMultiRangeDeletion'](_0x46d8ed,_0x2b27cc='multi',_0x126d59={}){const _0x4684d3=this['editor']['plugins']['get']('Users')['me'],_0x216e55=_0x46d8ed['map'](_0xf3430b=>new _0x30a6a3(_0xf3430b['start'],_0xf3430b['end'])),_0xd46820=new Set();for(const {suggestion:_0x4147b0,meta:_0x24c5df}of this['_findSuggestions'](_0x216e55,'insertion'))_0x24c5df['isOwn']&&!_0x24c5df['isNextTo']&&_0xd46820['add'](_0x4147b0);for(const _0x3bfc9c of _0xd46820)if(_0x3bfc9c['isMultiRange']){const _0x4ded5c=_0x3bfc9c['getRanges']();(!_0x3bfc9c['attributes']||!_0x3bfc9c['attributes']['skipNestingCheck'])&&(_0x4ded5c['every'](_0x126aa8=>_0x216e55['some'](_0x242e4d=>_0x242e4d['containsRange'](_0x126aa8,!0x0)))&&_0x3bfc9c['discard']());if(_0x216e55['every'](_0x26cc61=>_0x4ded5c['some'](_0x561a61=>_0x561a61['containsRange'](_0x26cc61,!0x0)))){const _0x48b9b4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b27cc,'accept');return this['forceDefaultExecution'](()=>_0x48b9b4(_0x46d8ed,null,_0x126d59)),null;}}else{const _0x79df4e=_0x3bfc9c['getFirstRange']();_0x216e55['some'](_0x51ea94=>_0x51ea94['containsRange'](_0x79df4e,!0x0))&&_0x3bfc9c['discard']();if(_0x216e55['every'](_0x4fc3f2=>_0x79df4e['containsRange'](_0x4fc3f2,!0x0))){const _0x916caa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b27cc,'accept');return this['forceDefaultExecution'](()=>_0x916caa(_0x216e55,null,_0x126d59)),null;}}const _0x4be846=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b27cc,'join');let _0x5722b2=null;for(const _0x4592b7 of this['getSuggestions']())if(_0x4592b7['author']['id']==_0x4684d3['id']&&_0x4592b7['isInContent']&&'deletion'==_0x4592b7['type']&&_0x4592b7['subType']==_0x2b27cc&&Lt(_0x4592b7,_0x126d59)&&(_0x4be846(_0x4592b7['getRanges'](),_0x216e55)||_0x4be846(_0x216e55,_0x4592b7['getRanges']()))){if(_0x5722b2){if(_0x4592b7['commentThread']&&_0x4592b7['commentThread']['length'])continue;for(const _0x2d5e34 of _0x4592b7['getRanges']())_0x5722b2['isIntersectingWithRange'](_0x2d5e34)||_0x5722b2['addRange'](_0x2d5e34);_0x4592b7['removeMarkers']();}else{_0x5722b2=_0x4592b7;for(const _0xb83046 of _0x216e55)_0x4592b7['isIntersectingWithRange'](_0xb83046)||_0x4592b7['addRange'](_0xb83046);}}if(_0x5722b2)return _0x5722b2;_0xd46820['clear']();for(const {suggestion:_0x24c2d9,meta:_0x222bda}of this['_findSuggestions'](_0x216e55,'deletion'))_0x222bda['isOwn']&&(this['_mergeNestedSuggestions']||!_0x222bda['containsRangeInObject']&&!_0x222bda['isInsideObject'])&&Lt(_0x24c2d9,_0x126d59)&&_0xd46820['add'](_0x24c2d9);for(const _0x2978ca of _0xd46820){const _0x4e7175=_0x2978ca['getRanges']();if(!_0x126d59||!_0x126d59['skipNestingCheck']){if(_0x216e55['every'](_0xa7f88a=>_0x4e7175['some'](_0x174cea=>_0x174cea['containsRange'](_0xa7f88a,!0x0))))return _0x2978ca;}(!_0x2978ca['attributes']||!_0x2978ca['attributes']['skipNestingCheck'])&&(_0x4e7175['every'](_0x110333=>_0x216e55['some'](_0x5cd430=>_0x5cd430['containsRange'](_0x110333,!0x0)))&&_0x2978ca['discard']());}const _0x3b1124=_0x461740(),_0x4b9584=_0x4684d3['id'],_0x3d9ac5='deletion:'+_0x2b27cc,_0x522057=this['_setSuggestionData']({'id':_0x3b1124,'type':_0x3d9ac5,'createdAt':new Date(),'authorId':_0x4b9584,'attributes':_0x126d59});for(const _0x162dc1 of _0x216e55)_0x162dc1['detach'](),_0x162dc1['isCollapsed']||'$graveyard'==_0x162dc1['root']['rootName']||this['_addSuggestionMarker'](_0x3d9ac5,_0x3b1124,_0x4b9584,_0x162dc1,u['getMultiRangeId']());return _0x522057;}['markAttributeChange'](_0xa8cf02,_0x30870e,_0x4416e9,_0x3826f8,_0x4d93dc){if(_0xa8cf02['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x50e3a5=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c0ed7=Array['from'](this['_suggestions']['values']())['filter'](_0x15a717=>'attribute'==_0x15a717['type']&&_0x15a717['data']['key']==_0x30870e&&_0x15a717['isIntersectingWithRange'](_0xa8cf02));if('default'===this['_trackFormatChanges']){const _0x11b5ce=this['_findSuggestions'](_0xa8cf02,'insertion')['filter'](({meta:_0x55f1d1})=>_0x55f1d1['isOwn']&&!_0x55f1d1['isInsideObject']&&!_0x55f1d1['isNextTo'])['map'](({suggestion:_0x1364fb})=>_0x1364fb);_0x5c0ed7['unshift'](..._0x11b5ce);}const _0xaf4a50=new Map([[_0xa8cf02,_0x4416e9]]);for(const _0x2e61fd of _0x5c0ed7){const _0x2e6544='attribute'==_0x2e61fd['type']?_0x2e61fd['data']['oldValue']:void 0x0,_0x36b5d6=_0x2e61fd['getFirstRange'](),_0x510bca=Array['from'](_0xaf4a50['keys']())['find'](_0x4b5c2d=>_0x4b5c2d['isIntersecting'](_0x36b5d6));if(!_0x510bca)continue;const _0x57ff6b=_0x510bca['getDifference'](_0x36b5d6);this['_isBlockAttribute'](_0x30870e)&&'insertion'==_0x2e61fd['type']&&0x0!=_0x57ff6b['length']||(_0xaf4a50['delete'](_0x510bca),_0x57ff6b['forEach'](_0x2642c2=>{_0xaf4a50['set'](_0x2642c2,_0x4416e9);}),'insertion'!=_0x2e61fd['type']&&_0x2e6544!=_0x3826f8&&_0xaf4a50['set'](_0x510bca['getIntersection'](_0x36b5d6),_0x2e6544));}const _0x831bde=[];for(const [_0x338469,_0x49ebe6]of _0xaf4a50){const _0x46541e=_0x461740(),_0xf83cbd={'key':_0x30870e,'oldValue':_0x49ebe6,'newValue':_0x3826f8};_0x30870e['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':_0x30870e});const _0x386ae4=('attribute:'+(_0x30870e+'|'+Vt({'newValue':_0x3826f8})))['substring'](0x0,0x3c),_0x5cb13b=this['_setSuggestionData']({'id':_0x46541e,'type':_0x386ae4,'data':_0xf83cbd,'createdAt':new Date(),'authorId':_0x50e3a5,'attributes':_0x4d93dc});_0x831bde['push'](_0x5cb13b),this['_addSuggestionMarker'](_0x386ae4,_0x46541e,_0x50e3a5,_0x338469);}return _0x831bde;}['_registerBlockAttribute'](_0x37c31c){this['_blockAttributeKeys']['add'](_0x37c31c);}['_registerInlineAttribute'](_0x474d7a){this['_inlineAttributeKeys']['add'](_0x474d7a);}['_enableDefaultAttributesIntegration'](_0x173ba4,_0xda5870=[],_0x40dfc8=[]){this['enableCommand'](_0x173ba4,(_0x45714a,..._0x341ef6)=>{this['_recordAttributeChanges'](()=>{_0x45714a(..._0x341ef6);});});for(const _0x2021d8 of _0xda5870)this['_registerInlineAttribute'](_0x2021d8);for(const _0x4d00de of _0x40dfc8)this['_registerBlockAttribute'](_0x4d00de);}['_getAttributeKey'](_0x2082c1){return'attribute'==_0x2082c1['type']?_0x2082c1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x366e61,_0x1a451a){const _0x400f1d=_0x366e61['getFirstMarker']();this['_model']['change'](_0x4750fe=>{_0x4750fe['updateMarker'](_0x400f1d,{'range':_0x1a451a});});}['_addThreadToSuggestion'](_0x467714){const _0x3b572b=_0x467714['id'],_0x5924d7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3b572b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5924d7,'threadId':_0x3b572b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d2d35=this['_commentsRepository']['getCommentThread'](_0x3b572b);_0x3d2d35['unbind']('isRemovable'),_0x3d2d35['isRemovable']=!0x1,_0x467714['commentThread']=_0x3d2d35;}['_checkSuggestionCorrectness'](_0x373f83,_0x27954b,_0x84a642,_0x261b3d){if(_0x373f83['type']!=_0x27954b||_0x373f83['subType']!=_0x84a642||_0x373f83['creator']['id']!=_0x261b3d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x148f6c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3c3320,_0x5a0fb1){const _0x12d4c1=_0x3c3320['getFirstRange']();if(_0x5a0fb1['isEqual'](_0x12d4c1))_0x3c3320['removeMarkers']();else{if(_0x12d4c1['containsRange'](_0x5a0fb1)){const _0x4afe02=this['_model']['createPositionAt'](_0x5a0fb1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c3320,this['_model']['createRange'](_0x12d4c1['start'],_0x4afe02));const _0x2d5968=_0x461740(),_0x4d1ce5=_0x3c3320['creator']['id'],_0x459575=_0x3c3320['type']+':'+_0x3c3320['subType'];this['_setSuggestionData']({'id':_0x2d5968,'type':_0x459575,'createdAt':new Date(),'authorId':_0x4d1ce5,'data':_0x3c3320['data'],'attributes':_0x3c3320['attributes']});const _0x42312e=this['_model']['createPositionAt'](_0x5a0fb1['end']['parent'],'after'),_0x3186fe=this['_model']['createRange'](_0x42312e,_0x12d4c1['end']);this['_addSuggestionMarker'](_0x459575,_0x2d5968,_0x4d1ce5,_0x3186fe);}else{if(_0x12d4c1['containsPosition'](_0x5a0fb1['start'])){const _0x3492ba=this['_model']['createPositionAt'](_0x5a0fb1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c3320,this['_model']['createRange'](_0x12d4c1['start'],_0x3492ba));}else{const _0x11ea24=this['_model']['createPositionAt'](_0x5a0fb1['end']['parent'],'after');this['_setSuggestionRange'](_0x3c3320,this['_model']['createRange'](_0x11ea24,_0x12d4c1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x189919){for(const {suggestion:_0x44db17,meta:_0x259636}of this['_findSuggestions'](_0x189919,'insertion')){if(!_0x259636['isOwn'])continue;const _0x2ccff0=_0x44db17['getRanges']();for(const _0x16d4fc of _0x2ccff0)if(!_0x189919['getDifference'](_0x16d4fc)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x280ad0){const _0x1950fe=this['editor']['plugins']['get']('Users')['getUser'](_0x280ad0);if(!_0x1950fe)throw new _0x148f6c('track-changes-user-not-found',this);return _0x1950fe;}['_getExternalAuthor'](_0x2d3f72){const _0x3c9a37=this['editor']['plugins']['get']('Users'),_0x3ec13b=_0x2f13d0('external:'+_0x2d3f72),_0x23294f=_0x3c9a37['getUser'](_0x3ec13b);return _0x23294f||_0x3c9a37['addUser']({'id':_0x3ec13b,'name':_0x2d3f72});}['_createSuggestion'](_0x1eaebc,_0x284b57,_0x567317,_0x985c3a,_0x2521ca){const _0x1494c6=this['_getAuthorFromId'](_0x985c3a),_0x195e28=this['_suggestionFactory']['buildSuggestion'](_0x1eaebc,_0x284b57,_0x567317,_0x1494c6,_0x2521ca,_0x42595c=>{this['_updateSuggestionData'](_0x567317,{'attributes':_0x42595c});const _0x167b2d=this['getSuggestion'](_0x567317);this['_joinWithAdjacentSuggestions'](new Set([_0x167b2d])),this['_refreshSuggestionsChain'](new Set([_0x167b2d]));});return this['listenTo'](_0x195e28,'accept',()=>{this['_updateSuggestionData'](_0x567317,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x195e28,'discard',()=>{this['_updateSuggestionData'](_0x567317,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x567317,_0x195e28),this['_suggestionState']['set'](_0x195e28,'notReady'),_0x195e28;}['_splitMarkerName'](_0x2491ca){const _0x46d590=_0x2491ca['split'](':');return{'group':_0x46d590[0x0],'type':_0x46d590[0x1],'subType':_0x46d590['length']>=0x5?_0x46d590[0x2]:null,'id':_0x46d590['length']<0x5?_0x46d590[0x2]:_0x46d590[0x3],'authorId':_0x46d590['length']<0x5?_0x46d590[0x3]:_0x46d590[0x4],'markerCount':0x6==_0x46d590['length']?_0x46d590[0x5]:null};}['_breakSuggestionMarker'](_0x2f4992,_0xdf9a5b,_0xb57157){const _0x132684=_0x2f4992['getFirstRange'](),_0x5037b5=_0x132684['start'],_0x70e3a=_0x132684['end'];this['_setSuggestionRange'](_0x2f4992,this['_model']['createRange'](_0x5037b5,_0xdf9a5b));const _0x1b1bc2=_0x461740(),_0x5dfa72=_0x2f4992['creator']['id'],_0x319e8b=_0x2f4992['type']+(_0x2f4992['subType']?':'+_0x2f4992['subType']:'');this['_setSuggestionData']({'id':_0x1b1bc2,'type':_0x319e8b,'createdAt':new Date(),'authorId':_0x5dfa72,'originalSuggestionId':_0x2f4992['id'],'attributes':_0x2f4992['attributes'],'data':_0x2f4992['data']});const _0x5afb2b=this['_getAttributeKey'](_0x2f4992);('formatBlock'==_0x2f4992['type']||_0x5afb2b&&this['_isBlockAttribute'](_0x5afb2b))&&(_0xb57157=this['_model']['createPositionBefore'](_0xb57157['parent'])),this['_addSuggestionMarker'](_0x319e8b,_0x1b1bc2,_0x5dfa72,this['_model']['createRange'](_0xb57157,_0x70e3a));}['_findSuggestions'](_0x233a77,_0x1e35c4=null){const _0x3721d4=[],_0x65feb5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x233a77)||(_0x233a77=[_0x233a77]);for(const _0x2ba5da of this['getSuggestions']()){if(!_0x2ba5da['isInContent'])continue;if(_0x1e35c4&&_0x2ba5da['type']!=_0x1e35c4)continue;let _0x26ea6a=!0x1;for(const _0x3535f8 of _0x2ba5da['getRanges']()){for(const _0x11e2e8 of _0x233a77){const _0x5ccad3=_0x11e2e8['start']['isEqual'](_0x3535f8['end'])||_0x11e2e8['end']['isEqual'](_0x3535f8['start']);if(_0x5ccad3||_0x11e2e8['getIntersection'](_0x3535f8)){const _0x1e91ac=_0x11e2e8['containsRange'](_0x3535f8)&&Rt(this['_model']['schema'],_0x3535f8['start'],_0x11e2e8),_0x67edde=_0x3535f8['containsRange'](_0x11e2e8)&&Rt(this['_model']['schema'],_0x11e2e8['start'],_0x3535f8);_0x3721d4['push']({'suggestion':_0x2ba5da,'meta':{'isOwn':_0x65feb5==_0x2ba5da['author'],'isNextTo':_0x5ccad3,'isInsideObject':_0x1e91ac,'containsRangeInObject':_0x67edde}}),_0x26ea6a=!0x0;break;}}if(_0x26ea6a)break;}}return _0x3721d4;}['_addSuggestionMarker'](_0x186c99,_0x363f82,_0x5e5220,_0x4aa26e,_0x1417d0){this['_model']['change'](_0x4e93be=>{let _0x5048fa='suggestion:'+_0x186c99+':'+_0x363f82+':'+_0x5e5220;_0x1417d0&&(_0x5048fa=_0x5048fa+':'+_0x1417d0),_0x4e93be['addMarker'](_0x5048fa,{'range':_0x4aa26e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2250be){const _0xcbe84d=_0x2250be['previous'],_0x2a9dce=_0x2250be['next'];_0x2250be['previous']=null,_0x2250be['next']=null,null!=_0xcbe84d&&_0xcbe84d['next']==_0x2250be&&(_0xcbe84d['next']=_0x2a9dce),null!=_0x2a9dce&&_0x2a9dce['previous']==_0x2250be&&(_0x2a9dce['previous']=_0xcbe84d),'ready'==this['_suggestionState']['get'](_0x2250be)&&(this['_suggestionState']['set'](_0x2250be,'removed'),this['fire']('suggestionUnloaded',_0x2250be,_0xcbe84d,_0x2a9dce));}['_setSuggestionData'](_0x37eb77){const _0x3707f3=_0x37eb77['id'],_0x300799=this['addSuggestionData'](_0x37eb77);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3611a0=this['editor']['plugins']['get']('PendingActions'),_0x51191a=_0x300799['hasComments'],_0x31ff64=_0x300799['subType']?_0x300799['type']+':'+_0x300799['subType']:_0x300799['type'],_0x2ed68e=this['editor']['locale'],_0x35b161=_0x3611a0['add'](o(_0x2ed68e,'PENDING_ACTION_SUGGESTION')),_0x2b41d4={'id':_0x3707f3,'type':_0x31ff64,'hasComments':_0x51191a,'data':_0x37eb77['data']||null,'originalSuggestionId':_0x37eb77['originalSuggestionId']||null,'attributes':_0x300799['attributes']};this['_adapter']['addSuggestion'](_0x2b41d4)['then'](_0x203d33=>{_0x300799['_saved']=!0x0,_0x3611a0['remove'](_0x35b161),_0x203d33&&_0x203d33['createdAt']&&(this['_suggestions']['get'](_0x3707f3)['createdAt']=_0x203d33['createdAt']);})['catch'](_0x20f38c=>{throw _0x4941fa('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x300799['discard']();}),_0x300799['stopListening'](),this['_suggestions']['delete'](_0x300799['id']),this['_suggestionState']['delete'](_0x300799),_0x20f38c;});}return _0x300799;}['_isBlockAttribute'](_0x4316c1){return this['_blockAttributeKeys']['has'](_0x4316c1);}['_updateSuggestionData'](_0x3772cd,_0x20b2b0){const _0x2511f8=this['editor']['plugins']['get']('PendingActions'),_0x212b27=this['getSuggestion'](_0x3772cd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x212b27['_saved']){const _0x5e11fd=_0x2511f8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3772cd,_0x20b2b0)['then'](()=>{_0x2511f8['remove'](_0x5e11fd);});}else _0x212b27['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3772cd,_0x20b2b0);});}}['_getSuggestionData'](_0x1f89d8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x148f6c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1f89d8);}['_handleNewSuggestionMarker'](_0x229ba3){const {id:_0x14394e,type:_0x59b4f5,subType:_0x3799a7,authorId:_0x1796fe}=this['_splitMarkerName'](_0x229ba3),_0x30ba1f=this['_suggestions']['get'](_0x14394e)||this['_createSuggestion'](_0x59b4f5,_0x3799a7,_0x14394e,_0x1796fe,{});switch(this['_checkSuggestionCorrectness'](_0x30ba1f,_0x59b4f5,_0x3799a7,_0x1796fe),this['_suggestionState']['get'](_0x30ba1f)){case'notReady':this['_getSuggestionData'](_0x14394e)['then'](_0x34a6f6=>{let _0x515d73=Promise['resolve']();_0x34a6f6['hasComments']&&(_0x515d73=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x14394e})),_0x515d73['then'](()=>{this['addSuggestionData'](_0x34a6f6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x30ba1f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x14394e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x30ba1f,'ready'),this['fire']('suggestionLoaded',_0x30ba1f);break;case'ready':this['fire']('suggestionChanged',_0x30ba1f);}return _0x30ba1f['addMarkerName'](_0x229ba3),_0x30ba1f;}['_refreshSuggestionsChain'](_0x3128f0){const _0x53db6a=Array['from'](_0x3128f0),_0x57d17e=_0x53db6a['filter'](_0x575506=>'attribute'==_0x575506['type']);this['_refreshAttributeSuggestionsChain'](_0x57d17e);const _0x743fa6=_0x53db6a['filter'](_0x250f74=>!_0x250f74['isMultiRange']&&'attribute'!=_0x250f74['type']),_0x2a6929=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d3b47=>!_0x3d3b47['isMultiRange']&&'attribute'!=_0x3d3b47['type']),_0x3388ab=_0x2a6929['filter'](_0x221def=>!_0x3128f0['has'](_0x221def)),_0x3cf811=new Map(_0x2a6929['map'](_0x2dc460=>[_0x2dc460,this['_suggestionFactory']['getSuggestionCallback'](_0x2dc460['type'],_0x2dc460['subType'],'chain')])),_0x113eb7=new Map(_0x2a6929['map'](_0x2f06af=>[_0x2f06af,_0x2f06af['getFirstRange']()])),_0x49ed8c=new Set(),_0x4ea147=new Set();for(let _0x3bb2da=0x0;_0x3bb2da<_0x743fa6['length'];_0x3bb2da++)_0x2ceecb(_0x743fa6[_0x3bb2da],_0x743fa6,_0x3bb2da+0x1);for(let _0x188753=0x0;_0x188753<_0x743fa6['length'];_0x188753++)_0x2ceecb(_0x743fa6[_0x188753],_0x3388ab,0x0);const _0x380504=new Set();for(let _0x5281cc=0x0;_0x5281cc<_0x743fa6['length'];_0x5281cc++){const _0x5caf4c=_0x743fa6[_0x5281cc];!_0x4ea147['has'](_0x5caf4c)&&_0x5caf4c['previous']&&(_0x380504['add'](_0x5caf4c['previous']),_0x5caf4c['previous']['next']===_0x5caf4c&&(_0x5caf4c['previous']['next']=null),_0x5caf4c['previous']=null),!_0x49ed8c['has'](_0x5caf4c)&&_0x5caf4c['next']&&(_0x380504['add'](_0x5caf4c['next']),_0x5caf4c['next']['previous']===_0x5caf4c&&(_0x5caf4c['next']['previous']=null),_0x5caf4c['next']=null);}function _0x2ceecb(_0x15916e,_0x599623,_0x1b65b9){for(let _0x4a379e=_0x1b65b9;_0x4a379e<_0x599623['length'];_0x4a379e++){const _0x25f5a8=_0x4d644c(_0x15916e,_0x599623[_0x4a379e]);_0x25f5a8&&(_0x25f5a8[0x0]['next']=_0x25f5a8[0x1],_0x25f5a8[0x1]['previous']=_0x25f5a8[0x0],_0x49ed8c['add'](_0x25f5a8[0x0]),_0x4ea147['add'](_0x25f5a8[0x1]));}}function _0x4d644c(_0x1385b8,_0x451725){if(_0x1385b8['author']['id']!==_0x451725['author']['id'])return null;const _0x5de5e9=_0x3cf811['get'](_0x1385b8)(_0x1385b8,_0x451725,_0x113eb7['get'](_0x1385b8),_0x113eb7['get'](_0x451725));if(!_0x5de5e9)return null;return _0x3cf811['get'](_0x451725)(_0x1385b8,_0x451725,_0x113eb7['get'](_0x1385b8),_0x113eb7['get'](_0x451725))?_0x5de5e9[0x1]['commentThread']&&_0x5de5e9[0x1]['commentThread']['length']?null:_0x5de5e9:null;}_0x380504['size']&&this['_refreshSuggestionsChain'](_0x380504);}['_refreshAttributeSuggestionsChain'](_0x3e9cbb){if(0x0==_0x3e9cbb['length'])return;const _0x1adfe9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44abef=>'attribute'==_0x44abef['type']&&_0x44abef['_isDataLoaded']),_0x1fb4a5=[],_0xc2af26=new Map();for(const _0x3ec038 of _0x1adfe9){const _0x5c1925=_0x2f13d0(_0x3ec038['attributes']);_0xc2af26['has'](_0x5c1925)||(_0xc2af26['set'](_0x5c1925,_0x1fb4a5['length']),_0x1fb4a5['push']([]));const _0x9691b0=_0xc2af26['get'](_0x5c1925);_0x1fb4a5[_0x9691b0]['push'](_0x3ec038);}!(function(){_0x1fb4a5['sort']((_0x11ef96,_0x404a35)=>{const _0x16b3fa=_0x11ef96[0x0]['createdAt'],_0x39d112=_0x404a35[0x0]['createdAt'];return _0x16b3fa==_0x39d112?_0x11ef96[0x0]['attributes']['groupId']<_0x404a35[0x0]['attributes']['groupId']?-0x1:0x1:_0x16b3fa<_0x39d112?-0x1:0x1;});for(const _0x1fdba5 of _0x1fb4a5)_0x1fdba5['sort']((_0x43f339,_0x53058f)=>_0x43f339['id']<_0x53058f['id']?-0x1:0x1);}());for(let _0x7897c7=0x0;_0x7897c7<_0x1fb4a5['length'];_0x7897c7++){if(0x0==_0x1fb4a5[_0x7897c7]['length'])continue;const _0x5f51ee=[];for(let _0x2e6f0e=_0x7897c7+0x1;_0x2e6f0e<_0x1fb4a5['length'];_0x2e6f0e++)0x0!=_0x1fb4a5[_0x2e6f0e]['length']&&_0x1564de(_0x1fb4a5[_0x7897c7],_0x1fb4a5[_0x2e6f0e])&&_0x5f51ee['push'](_0x2e6f0e);for(const _0x5f5d1 of _0x5f51ee)_0x1fb4a5[_0x7897c7]=_0x1fb4a5[_0x7897c7]['concat'](_0x1fb4a5[_0x5f5d1]),_0x1fb4a5[_0x5f5d1]=[];}for(const _0x82d1b5 of _0x1fb4a5)for(let _0x1f0850=0x0;_0x1f0850<_0x82d1b5['length'];_0x1f0850++)_0x82d1b5[_0x1f0850]['next']=_0x82d1b5[_0x1f0850+0x1]||null;for(const _0x3ff97a of _0x1fb4a5)for(let _0x25e50a=0x0;_0x25e50a<_0x3ff97a['length'];_0x25e50a++)_0x3ff97a[_0x25e50a]['previous']=_0x3ff97a[_0x25e50a-0x1]||null;function _0x1564de(_0x1f346f,_0x2eca09){if(_0x1f346f[0x0]['attributes']['groupId']!==_0x2eca09[0x0]['attributes']['groupId']&&_0x1f346f[0x0]['author']!==_0x2eca09[0x0]['author'])return!0x1;if(!function(_0x3edc99,_0x14a011){if(!_0x3edc99['hasComments']&&!_0x14a011['hasComments'])return!0x0;if(_0x3edc99['hasComments']&&_0x14a011['hasComments'])return!0x1;if(_0x3edc99['hasComments']&&_0x14a011['createdAt']<_0x3edc99['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x14a011['hasComments']&&_0x3edc99['createdAt']<_0x14a011['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1f346f[0x0],_0x2eca09[0x0]))return!0x1;const _0x23c59f=Bt(_0x1f346f[0x0]['attributes'],'groupId'),_0xa5d9bf=Bt(_0x2eca09[0x0]['attributes'],'groupId');if(!_0x11601a(_0x23c59f,_0xa5d9bf))return!0x1;return!!_0x1f346f['every'](_0x99d632=>_0x2eca09['some'](_0x17b10a=>_0x99d632['getFirstRange']()['isEqual'](_0x17b10a['getFirstRange']())))&&_0x2eca09['every'](_0x5ac1f4=>_0x1f346f['some'](_0x588b9c=>_0x5ac1f4['getFirstRange']()['isEqual'](_0x588b9c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xf0f192){const _0x1d0f2f=Array['from'](_0xf0f192),_0x5daccd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x331fb7=_0x5daccd['filter'](_0x268a98=>!_0xf0f192['has'](_0x268a98)),_0x37a28f=new Map(_0x1d0f2f['map'](_0x4f1e21=>[_0x4f1e21,this['_suggestionFactory']['getSuggestionCallback'](_0x4f1e21['type'],_0x4f1e21['subType'],'join')])),_0x2094ad=new Map(_0x5daccd['map'](_0x2cb1b9=>[_0x2cb1b9,_0x2cb1b9['getRanges']()]));for(let _0x3da94e=0x0;_0x3da94e<_0x1d0f2f['length'];_0x3da94e++){if(_0x5b739b(this,_0x1d0f2f[_0x3da94e],_0x1d0f2f,_0x3da94e+0x1))return!0x0;}for(let _0x273543=0x0;_0x273543<_0x1d0f2f['length'];_0x273543++){if(_0x5b739b(this,_0x1d0f2f[_0x273543],_0x331fb7,0x0))return!0x0;}return!0x1;function _0x5b739b(_0x429b7c,_0x54d43a,_0x4dfeb2,_0x200adf){for(let _0xb574c1=_0x200adf;_0xb574c1<_0x4dfeb2['length'];_0xb574c1++){const _0xfe66d9=_0x4dfeb2[_0xb574c1];if(_0xfe66d9['type']!==_0x54d43a['type']||_0xfe66d9['author']['id']!==_0x54d43a['author']['id']||_0xfe66d9['subType']!==_0x54d43a['subType'])continue;if(!Pt(_0x54d43a,_0xfe66d9,['groupId']))continue;if('attribute'==_0x54d43a['type']&&_0x54d43a['data']['oldValue']!=_0xfe66d9['data']['oldValue'])continue;if('attribute'==_0x54d43a['type']&&_0x429b7c['_isBlockAttribute'](_0x54d43a['data']['key']))continue;if('formatBlock'==_0x54d43a['type']){const _0x52038d=_0x429b7c['editor']['model'],_0x1be33e=_0x54d43a['getContainedElement']();if(_0x1be33e&&(_0x52038d['schema']['isObject'](_0x1be33e)||_0x52038d['schema']['isLimit'](_0x1be33e)))continue;}const _0x199e3b=_0x37a28f['get'](_0x54d43a),_0x3c9743=_0x2094ad['get'](_0x54d43a),_0x3b8468=_0x2094ad['get'](_0xfe66d9),_0x1248c3=_0x54d43a['commentThread']&&_0x54d43a['commentThread']['length'],_0x449cc8=_0xfe66d9['commentThread']&&_0xfe66d9['commentThread']['length'];if(!_0x1248c3&&_0x199e3b(_0x3b8468,_0x3c9743))return _0x429b7c['_joinSuggestions'](_0xfe66d9,_0x54d43a),_0x2094ad['delete'](_0x54d43a),!0x0;if(!_0x449cc8&&_0x199e3b(_0x3c9743,_0x3b8468))return _0x429b7c['_joinSuggestions'](_0x54d43a,_0xfe66d9),_0x2094ad['delete'](_0xfe66d9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x26406b,_0xca85c7){if(_0x26406b['isMultiRange']){for(const _0x3302b4 of _0xca85c7['getRanges']())_0x26406b['addRange'](_0x3302b4);}else{const _0x53a136=_0xca85c7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x26406b,this['_model']['createRange'](_0x26406b['getFirstRange']()['start'],_0x53a136));}_0xca85c7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4bbb7a,_0x4d0b34){const _0x56c89c=_0x4bbb7a['startsWith']('format')||_0x4bbb7a['startsWith']('attribute')?'FORMATTING':_0x4bbb7a['toUpperCase']();return o(this['editor']['locale'],_0x4d0b34+'_'+_0x56c89c+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x45bf15=this['editor'];if(!_0x45bf15['ui'])return;const {ariaLiveAnnouncer:_0x599a73}=_0x45bf15['ui'];_0xc5ef19(this['_model'],({left:_0xeb83d9,entered:_0x436f3c})=>{for(const _0x26fa90 of _0xeb83d9){const {group:_0x438887,type:_0x3f5205}=this['_splitMarkerName'](_0x26fa90['name']);if('suggestion'===_0x438887){_0x599a73['announce'](this['_getMarkerAnnouncementText'](_0x3f5205,'LEAVE'));break;}}for(const _0x33a3a9 of _0x436f3c){const {group:_0x47c0da,type:_0x5ea4a8}=this['_splitMarkerName'](_0x33a3a9['name']);if('suggestion'===_0x47c0da){_0x599a73['announce'](this['_getMarkerAnnouncementText'](_0x5ea4a8,'ENTER'));break;}}});}['_processAttributeChanges'](_0x18a684){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4ce73e=this['editor'],_0x5ceca3=_0x4ce73e['model']['document']['differ']['getChanges']();if(0x0==_0x5ceca3['length'])return!0x1;const _0x1dcc49=[],_0x32e879=_0x5ceca3['filter'](_0x56d6b1=>'attribute'==_0x56d6b1['type']),_0x32a4d8=_0x5ceca3['filter'](_0x1437e4=>'insert'==_0x1437e4['type']&&'$text'!=_0x1437e4['name']),_0x3aae1e=_0x5ceca3['filter'](_0x5901ac=>'remove'==_0x5901ac['type']&&'$text'!=_0x5901ac['name']);for(const _0x119153 of _0x32e879)_0x1dcc49['push']({'key':_0x119153['attributeKey'],'newValue':_0x119153['attributeNewValue'],'oldValue':_0x119153['attributeOldValue'],'range':Ot(_0x119153['range'],_0x4ce73e['model'])});for(const _0x36ac8f of _0x32a4d8){const _0x5d38a7=_0x3aae1e['find'](_0xd5405e=>_0xd5405e['position']['isEqual'](_0x36ac8f['position']));_0x5d38a7&&_0x1dcc49['push']({'key':m,'newValue':_0x36ac8f['name'],'oldValue':_0x5d38a7['name'],'range':_0x4ce73e['model']['createRangeOn'](_0x36ac8f['position']['nodeAfter'])});}return 0x0!=_0x1dcc49['length']&&this['_reduceExistingSuggestions'](_0x18a684,_0x1dcc49);}['_processAttributeSuggestions'](_0x2174c7){let _0x1c9ced=!0x1;const _0x19d7e0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x331ea1=>_0x331ea1['data']['newRange']&&_0x331ea1['name']['startsWith']('suggestion:attribute:'));for(const _0x57d434 of _0x19d7e0){const {subType:_0xe8505c,id:_0x5d2e0d}=this['_splitMarkerName'](_0x57d434['name']),_0x81301f=_0xe8505c['split']('|')[0x0];for(const _0xae5ebb of this['getSuggestions']({'skipNotAttached':!0x0}))_0xae5ebb['id']!=_0x5d2e0d&&'attribute'==_0xae5ebb['type']&&_0xae5ebb['data']&&_0xae5ebb['data']['key']==_0x81301f&&_0xae5ebb['getFirstRange']()['isIntersecting'](_0x57d434['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xae5ebb,_0x57d434['data']['newRange'],_0x2174c7),_0x1c9ced=!0x0);}return _0x1c9ced;}['_recordAttributeChanges'](_0x1637f3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1637f3();}['_isRegisteredAttribute'](_0x39e7f0){const _0x293c19=this['_isBlockAttribute'](_0x39e7f0),_0x70feb1=this['_inlineAttributeKeys']['has'](_0x39e7f0);return _0x293c19||_0x70feb1;}['_reduceExistingSuggestions'](_0x262a8c,_0x295b99){if(0x0==_0x295b99['length'])return!0x1;let _0x19e6ab=!0x1;for(const _0x552ce4 of _0x295b99){const _0x22e9e3=this['_findSuggestions'](_0x552ce4['range'],'attribute')['filter'](_0x2bd866=>!_0x2bd866['meta']['isNextTo'])['map'](_0xee53cb=>_0xee53cb['suggestion']),_0x472203=_0x2f13d0({'newValue':_0x552ce4['newValue']});_0x22e9e3['filter'](_0x4124c2=>{const [_0x30173c,_0x52b499]=_0x4124c2['subType']['split']('|');return _0x30173c==_0x552ce4['key']&&_0x52b499!=_0x472203;})['forEach'](_0x2962f7=>{this['_reduceSuggestionAttributeRange'](_0x2962f7,_0x552ce4['range'],_0x262a8c),_0x19e6ab=!0x0;});}return _0x19e6ab;}['_reduceSuggestionAttributeRange'](_0x4c0366,_0x5dcb53,_0x452810){const _0x9a02e=_0x4c0366['getFirstRange']()['getDifference'](_0x5dcb53);0x0!==_0x9a02e['length']?0x1!==_0x9a02e['length']?this['_breakSuggestionMarker'](_0x4c0366,_0x5dcb53['start'],_0x5dcb53['end']):this['_setSuggestionRange'](_0x4c0366,_0x9a02e[0x0]):_0x452810['removeMarker'](_0x4c0366['getFirstMarker']());}constructor(_0x530855){function _0x4d989d(_0x435a7b){return _0x435a7b['map'](_0x243352=>String['fromCharCode'](_0x243352))['join']('');}super(_0x530855),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1e485f,_0x1ff4bc,_0xb295fb,_0x300923)=>{this['_model']['change'](()=>{for(const _0x5bfbf5 of[..._0x300923,..._0xb295fb])this['_model']['markers']['has'](_0x5bfbf5)&&_0x530855['editing']['reconvertMarker'](_0x5bfbf5);});}),this['_descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x530855['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x530855['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x530855['config']['get']('trackChanges.trackFormatChanges'),_0x530855['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x530855['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x530855,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4d989d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4d989d([0x34,0x30,0x34,0x38,0x30,0x38,0x35,0x38]);}}class xt{['buildSuggestion'](_0x1838ee,_0x2bd145,_0x5c61dc,_0x18200c,_0x2aca66,_0x106ead){return new u(this['_model'],{'type':_0x1838ee,'subType':_0x2bd145,'id':_0x5c61dc,'author':_0x18200c,'creator':_0x18200c,'attributes':_0x2aca66,'onAttributesChange':_0x106ead,'onAccept':(..._0x3421d4)=>this['getSuggestionCallback'](_0x1838ee,_0x2bd145,'accept')(..._0x3421d4),'onDiscard':(..._0x4daa37)=>this['getSuggestionCallback'](_0x1838ee,_0x2bd145,'discard')(..._0x4daa37)});}['registerCustomCallback'](_0x143601,_0x409ab7,_0x30cec9,_0x227cd8){const _0x30a654=_0x143601+':'+_0x409ab7+':'+_0x30cec9;this['_customCallbacks']['set'](_0x30a654,_0x227cd8);}['getSuggestionCallback'](_0xfa626f,_0x3b1c26,_0x54a6c4){const _0x4f47f5=_0xfa626f+':'+_0x3b1c26+':'+_0x54a6c4;return this['_customCallbacks']['get'](_0x4f47f5)||this['_defaultCallbacks']['get'](_0xfa626f+':'+_0x54a6c4);}['_registerDefaultCallbacks'](){const _0x300b13=()=>!0x1,_0x41d67c=_0x305846=>{_0x305846['sort']((_0xe82f6f,_0x3524)=>_0xe82f6f['start']['isBefore'](_0x3524['start'])?0x1:-0x1),this['_model']['change'](_0x283945=>{for(const _0x2ee9ac of _0x305846){let _0x22d23f;_0x22d23f=_0x2ee9ac['end']['isAtEnd']&&_0x2ee9ac['end']['parent']==_0x2ee9ac['start']['nodeAfter']?_0x283945['createSelection'](_0x2ee9ac['start']['nodeAfter'],'on'):_0x283945['createSelection'](_0x2ee9ac),this['_model']['deleteContent'](_0x22d23f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3213ec=(_0x49bc64,_0x2b7056)=>{_0x2b7056&&this['_model']['change'](_0x2a3238=>{const {commandName:_0x33f26c,commandParams:_0x49c8ff=[]}=_0x2b7056,_0x1d3814=_0x49bc64['map'](_0x1a78c6=>(Tt(_0x1a78c6)&&(_0x1a78c6=this['_model']['createRange'](_0x1a78c6['end'])),_0x1a78c6))['filter'](_0x5b6da3=>'$graveyard'!==_0x5b6da3['root']['rootName']);if(_0x1d3814['length']<0x1)return;const _0x41a3ee=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f2ed9=>_0x30a6a3['fromRange'](_0x1f2ed9));_0x2a3238['setSelection'](_0x1d3814);for(const _0x581992 of this['_editor']['commands']['commands']())_0x581992['refresh']();_0x49c8ff['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x33f26c,..._0x49c8ff);const _0xe8a9d2=_0x41a3ee['filter'](_0x176f40=>'$graveyard'!=_0x176f40['root']['rootName']);_0xe8a9d2['length']>0x0&&_0x2a3238['setSelection'](_0xe8a9d2);for(const _0x263aec of _0x41a3ee)_0x263aec['detach']();});},_0x231e7a=(_0x5dc81d,_0x16f9b8)=>0x1==_0x5dc81d['length']&&0x1==_0x16f9b8['length']&&_0x5dc81d[0x0]['end']['isEqual'](_0x16f9b8[0x0]['start']),_0x5e0ade=(_0x5684a7,_0x3b4288,_0x496119,_0x2ead6b)=>Ft(_0x5684a7,_0x3b4288,_0x496119,_0x2ead6b,this['_model'])?[_0x5684a7,_0x3b4288]:Ft(_0x3b4288,_0x5684a7,_0x2ead6b,_0x496119,this['_model'])?[_0x3b4288,_0x5684a7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x300b13),this['_defaultCallbacks']['set']('insertion:discard',_0x41d67c),this['_defaultCallbacks']['set']('insertion:join',_0x231e7a),this['_defaultCallbacks']['set']('insertion:chain',_0x5e0ade),this['_defaultCallbacks']['set']('deletion:accept',_0x41d67c),this['_defaultCallbacks']['set']('deletion:discard',_0x300b13),this['_defaultCallbacks']['set']('deletion:join',_0x231e7a),this['_defaultCallbacks']['set']('deletion:chain',_0x5e0ade),this['_defaultCallbacks']['set']('formatInline:accept',_0x3213ec),this['_defaultCallbacks']['set']('formatInline:discard',_0x300b13),this['_defaultCallbacks']['set']('formatInline:join',_0x231e7a),this['_defaultCallbacks']['set']('formatInline:chain',_0x300b13),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3213ec),this['_defaultCallbacks']['set']('formatBlock:discard',_0x300b13),this['_defaultCallbacks']['set']('formatBlock:join',_0x231e7a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x300b13),this['_defaultCallbacks']['set']('attribute:accept',_0x300b13),this['_defaultCallbacks']['set']('attribute:discard',(_0x222bc8,_0x49f498)=>{if(!_0x49f498)return;const _0x332ccf=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2833fa=>{if(_0x49f498['key']==m)for(const _0x470621 of _0x222bc8){const _0x3cc2d9=_0x470621['start']['nodeAfter'],_0x46f9b8=_0x49f498['oldValue'];_0x2833fa['rename'](_0x3cc2d9,_0x46f9b8);}else{if(_0x332ccf['_isBlockAttribute'](_0x49f498['key'])){for(const _0x3b1e73 of _0x222bc8)void 0x0!==_0x49f498['oldValue']?_0x2833fa['setAttribute'](_0x49f498['key'],_0x49f498['oldValue'],_0x3b1e73['start']['nodeAfter']):_0x2833fa['removeAttribute'](_0x49f498['key'],_0x3b1e73['start']['nodeAfter']);}else{for(const _0x144907 of _0x222bc8)_0x49f498['oldValue']?_0x2833fa['setAttribute'](_0x49f498['key'],_0x49f498['oldValue'],_0x144907):_0x2833fa['removeAttribute'](_0x49f498['key'],_0x144907);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x231e7a);}constructor(_0x3cebdc){this['_editor']=_0x3cebdc,this['_model']=_0x3cebdc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x34e0cd,_0x1d4893,_0x19d190){for(const _0x1cb90d of _0x1d4893['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1cb90d['root']==_0x1cb90d)return!0x1;if(!_0x19d190['containsItem'](_0x1cb90d))return!0x1;if(_0x34e0cd['isObject'](_0x1cb90d)||_0x34e0cd['isLimit'](_0x1cb90d))return!0x0;}return!0x1;}function Tt(_0x4141db){return _0x4141db['end']['parent']==_0x4141db['start']['nodeAfter']&&_0x4141db['end']['isAtStart'];}function Et(_0x508dd1,_0x130608,_0x10ccb3,_0x43c456){const _0x4b7a8b=_0x5b45ec=>!_0x5b45ec['item']['is']('$textProxy')&&!_0x43c456['isObject'](_0x5b45ec['item']),_0x4c8c19=_0x508dd1['start']['getLastMatchingPosition'](_0x4b7a8b),_0x4498a3=_0x508dd1['end']['getLastMatchingPosition'](_0x4b7a8b,{'direction':'backward'});return(!_0x508dd1['start']['isEqual'](_0x4c8c19)||!_0x508dd1['end']['isEqual'](_0x4498a3))&&(_0x4c8c19['isBefore'](_0x4498a3)?_0x10ccb3['updateMarker'](_0x130608,{'range':_0x10ccb3['createRange'](_0x4c8c19,_0x4498a3)}):_0x10ccb3['removeMarker'](_0x130608),!0x0);}function Vt(_0xecf855){return _0x2f13d0(_0xecf855);}function Ut(_0x3adb3){const _0x278650=_0x3adb3['start']['nodeAfter'];return _0x278650&&_0x278650['is']('element');}function Ot(_0x4c6625,_0x5e01e4){return null==_0x4c6625['end']['nodeBefore']&&_0x4c6625['end']['parent']==_0x4c6625['start']['nodeAfter']?Gt(_0x4c6625['start']['nodeAfter'],_0x5e01e4):_0x4c6625;}function Gt(_0x5b060e,_0x40814a){const _0x23f215=_0x40814a['schema']['isObject'](_0x5b060e)||_0x40814a['schema']['isSelectable'](_0x5b060e);return _0x40814a['createRange'](_0x40814a['createPositionAt'](_0x5b060e,'before'),_0x23f215?_0x40814a['createPositionAfter'](_0x5b060e):_0x40814a['createPositionAt'](_0x5b060e,'end'));}function Ft(_0x5b4c7b,_0xc2c26,_0x1618b8,_0x284b80,_0x183bda){if(!Pt(_0x5b4c7b,_0xc2c26))return!0x1;if(_0x1618b8['end']['isEqual'](_0x284b80['start']))return!0x0;if(_0x5b4c7b['type']!=_0xc2c26['type'])return!0x1;if(!_0x1618b8['end']['isTouching'](_0x284b80['start']))return!0x1;const _0x1810b9=_0x183bda['createRange'](_0x1618b8['end'],_0x284b80['start'])['getWalker']();for(const _0x5b5eba of _0x1810b9)if(['elementStart','elementEnd']['includes'](_0x5b5eba['type'])&&_0x183bda['schema']['isLimit'](_0x5b5eba['item']))return!0x1;return!0x0;}function Pt(_0x1da159,_0x2bf76c,_0x1ef9eb=[]){return!(!_0x1da159['_isDataLoaded']||!_0x2bf76c['_isDataLoaded'])&&_0x11601a(Bt(_0x1da159['attributes'],_0x1ef9eb),Bt(_0x2bf76c['attributes'],_0x1ef9eb));}function Lt(_0x3a041f,_0x222c69){const _0x487b97=Ht(_0x3a041f['attributes']),_0x4b7fef=Ht(_0x222c69);if(!_0x3a041f['_isDataLoaded'])return!0x1;for(const _0x1fc1ad of Object['keys'](_0x4b7fef))if(!_0x11601a(_0x487b97[_0x1fc1ad],_0x4b7fef[_0x1fc1ad]))return!0x1;return!0x0;}function Ht(_0x4c1834){const _0x4f4746=Object['assign']({},_0x4c1834);return delete _0x4f4746['skipNestingCheck'],delete _0x4f4746['tablePasteChainId'],_0x4f4746;}class oe extends _0x4f1937(){['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 _0x2a049e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2a049e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x5f0e71,_0x3b9a03,_0x52d6ee,_0x216963){super(),this['model']=_0x3b9a03,this['view']=_0x52d6ee,this['commentThreadController']=_0x216963,this['_editor']=_0x5f0e71,this['_acceptCommand']=_0x5f0e71['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5f0e71['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x458edf,_0x11c964)=>_0x458edf||_0x11c964),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x430baa=>_0x430baa&&this['_editor']['model']['canEditAt'](_0x3b9a03['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x40f23b=>_0x40f23b&&this['_editor']['model']['canEditAt'](_0x3b9a03['getRanges']())),this['_pendingAction']=null,_0x52d6ee['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x52d6ee,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x52d6ee,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x52d6ee,'change:isDirty',()=>{_0x52d6ee['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x1bd18e{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x26eb3c}=this['_config'];this['commentsListView']=new _0x26eb3c(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',_0x5222fa=>_0x5222fa+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x36d1d9,_0x5462e6)=>_0x36d1d9||!!_0x5462e6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x144b9a}=this['_config'],_0xd6b879=new _0x144b9a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f02bf=_0xd6b879['commentInputView'];return _0xd6b879['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f02bf,'value',(_0x87e086,_0x35e4a5,_0x1f4a46)=>!!_0x1f4a46||_0x87e086&&!_0x35e4a5),_0x3f02bf['on']('submit',(_0x299ec8,_0x11b309)=>{this['fire']('addComment',_0x11b309),_0x3f02bf['editor']['setData']('');}),_0x3f02bf['on']('cancel',()=>this['focus']()),_0x3f02bf['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xd6b879;}constructor(_0x30be73,_0x5c67b0,_0x49e791,_0x56dbc5){super(_0x30be73),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5c67b0['authoredAt']),this['bind']('authoredAt')['to'](_0x5c67b0),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5c67b0,this['_localUser']=_0x49e791,this['_config']=_0x56dbc5,_0x56dbc5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x46da8e=this['bindTemplate'],_0x4eab98=[{'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']}},{'tag':'time','attributes':{'datetime':_0x46da8e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46da8e['to']('authoredAt',_0x57d41a=>this['_config']['formatDateTime'](_0x57d41a))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x4eab98['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x12d909={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x46da8e['if']('isActive','ck-suggestion-wrapper--active'),_0x46da8e['to']('type',_0x25de51=>'ck-suggestion-'+_0x25de51),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x4eab98}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x12d909['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x12d909;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x30109a,_0x3435ed,_0x15206e)=>{this['_descriptionElement']['innerHTML']=_0x15206e;});}['_createButton'](_0x31f131,_0x5f32a0,_0xfa200d,_0x51a311,_0x164d09){const _0x2ba59f=new _0x4fc6e1(this['locale']);return _0x2ba59f['set']({'label':_0x31f131,'icon':_0x5f32a0,'tooltip':!0x0,'tooltipPosition':_0x164d09}),_0x2ba59f['extendTemplate']({'attributes':{'class':_0xfa200d}}),_0x2ba59f['on']('execute',()=>{this['fire'](_0x51a311,this['_model']['id']);}),_0x2ba59f;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}constructor(_0x4bdfc7,_0x598e82,_0x57b24b,_0x332ea4){super(_0x4bdfc7,_0x598e82,_0x57b24b,_0x332ea4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x36cd84=>_0x36cd84&&_0x36cd84[0x0]?_0x36cd84[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x105d9c,_0x417053)=>{let _0x2549d7='';for(const _0xfe87d0 of _0x105d9c)_0x2549d7+='<p>'+ds(_0xfe87d0['content'],_0xfe87d0['color'])+'</p>';return _0x417053?_0x2549d7:_0x45699f(_0x2549d7,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4bdfc7,'Accept\x20suggestion'),_0x1edff3['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4bdfc7,'Discard\x20suggestion'),_0x1edff3['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4b67e2(_0x4bdfc7,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x4f8943,_0x453143){let _0x24d42b='';return _0x24d42b+=_0x4f8943['split']('*')['map']((_0x36c4b1,_0x22e7cc)=>_0x22e7cc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x36c4b1)+'</span>':us(_0x36c4b1))['join'](''),_0x453143&&(_0x24d42b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x453143['value']+'\x22\x20title=\x22'+_0x453143['title']+'\x22></span>'),_0x24d42b;}function us(_0x45191e){const _0x466560=document['createElement']('span');return _0x466560['innerText']=_0x45191e,_0x466560['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x43660f{static get['requires'](){return[p,_0x380c8c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x2765c2,_0x26367b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x255757,_0x3a6333]of this['_handleControllerBuffer']){const _0x4b9468=this['_suggestionToController']['has'](_0x255757);_0x4b9468||_0x3a6333?_0x4b9468&&_0x3a6333&&this['_destroyController'](_0x255757):this['_initializeController'](_0x255757);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2765c2,_0x26367b);}['init'](){const _0x433597=this['editor'],_0x131b7d=_0x433597['plugins']['get']('TrackChangesEditing'),_0x223f85=_0x433597['plugins']['get']('Annotations'),_0x44f13a=_0x433597['plugins']['get']('EditorAnnotations'),_0x240c5f=_0x433597['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x44f13a['addSourceCollector'](()=>{const _0x32042b=[];for(const [_0x3996d2,_0x400c70]of Array['from'](this['_suggestionToController'])){const _0x266bf1=_0x3996d2['getAllAdjacentSuggestions'](),_0x3af966=[];for(const _0x588c9b of _0x266bf1){if(!_0x588c9b['isInContent'])continue;if(_0x588c9b['isMultiRange']){_0x3af966['push'](..._0x588c9b['getRanges']());continue;}const _0x4dd591=_0x588c9b['getFirstRange']();if(_0x3af966['length']>0x0){const _0xdfcf54=_0x3af966[0x0]['getJoined'](_0x4dd591);if(_0xdfcf54){_0x3af966[0x0]=_0xdfcf54;continue;}}_0x3af966['push'](_0x4dd591);}_0x32042b['push']([_0x400c70['view'],_0x3af966]);}return _0x32042b;}),this['listenTo'](_0x131b7d,'suggestionLoaded',(_0x9dd33d,_0xe36776)=>{this['listenTo'](_0xe36776,'change:previous',(_0x430388,_0x40fa5d,_0x361622,_0x4cbad2)=>{_0xe36776['isInContent']&&(null==_0x361622?(this['_updateController'](_0x4cbad2['head']),this['_handleSuggestionControllerDelayed'](_0xe36776,!0x1)):(this['_updateController'](_0x361622['head']),null==_0x4cbad2&&this['_handleSuggestionControllerDelayed'](_0xe36776,!0x0)));}),null!==_0xe36776['previous']?this['_updateController'](_0xe36776['head']):this['_handleSuggestionControllerDelayed'](_0xe36776,!0x1);}),this['listenTo'](_0x131b7d,'suggestionUnloaded',(_0x3f4152,_0xcab3fe,_0x2e6b96)=>{this['stopListening'](_0xcab3fe,'change:previous'),this['_handleControllerBuffer']['delete'](_0xcab3fe),this['_suggestionToController']['has'](_0xcab3fe)&&this['_destroyController'](_0xcab3fe),_0x2e6b96&&this['_updateController'](_0x2e6b96['head']);}),this['listenTo'](_0x131b7d,'suggestionChanged',(_0x275d3d,_0x399bf1)=>{this['_updateController'](_0x399bf1);}),this['listenTo'](_0x223f85,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x240c5f,'addComment',(_0x5646db,{threadId:_0x4d825b,isFromAdapter:_0x530107})=>{if(_0x530107||!_0x131b7d['hasSuggestion'](_0x4d825b))return;const _0x2d04af=_0x131b7d['getSuggestion'](_0x4d825b);this['_suggestionToController']['get'](_0x2d04af)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x484c33=this['editor']['plugins']['get']('Annotations'),_0x5a7f43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58ff90=Array['from'](_0x484c33['activeAnnotations'],_0x19b53e=>_0x19b53e['innerView'])['filter'](_0x50a5fa=>this['_viewToController']['has'](_0x50a5fa)),_0x28be42=[];for(const _0x1a7fc0 of _0x58ff90){const _0x19f892=this['_viewToController']['get'](_0x1a7fc0)['model']['getAllAdjacentSuggestions']();_0x28be42['push'](..._0x19f892['reduce']((_0x272135,_0xf22d91)=>[..._0x272135,..._0xf22d91['getMarkerNames']()],[]));}_0x5a7f43['activeMarkers']=_0x28be42;}['_addUIComponentsToFactory'](){const _0x59cf97=this['editor'],_0x40388c=_0x59cf97['locale'],_0x5932ec=o(_0x40388c,'Track\x20changes'),_0xbc168b=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x5932ec,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x40388c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x40388c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x40388c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x40388c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x3045c5 of _0xbc168b)if(ae(_0x3045c5)){const _0x4a6c13=_0x59cf97['commands']['get'](_0x3045c5['model']['commandName']);_0x3045c5['model']['bind']('isOn','isEnabled')['to'](_0x4a6c13,'value','isEnabled');}_0x59cf97['ui']['componentFactory']['add']('trackChanges',_0x5461c2=>this['_createToolbarButton'](_0x5461c2,_0xbc168b,_0x5932ec)),_0x59cf97['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e4068=>this['_createMenuBarMenu'](_0x1e4068,_0xbc168b,_0x5932ec));}['_createToolbarButton'](_0x6cb121,_0x3f5462,_0x538535){const _0x1cd6ee=zt(_0x6cb121,Zt),_0x4b8539=this['editor']['commands']['get']('trackChanges');_0x1cd6ee['buttonView']['set']({'tooltip':_0x538535,'label':_0x538535,'icon':ie}),_0x1cd6ee['buttonView']['bind']('isOn')['to'](_0x4b8539,'value'),_0x1cd6ee['buttonView']['on']('execute',()=>{_0x4b8539['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1cd6ee,_0x3f5462);const _0x58cb77=[];for(const _0x2cb01a of _0x3f5462)ae(_0x2cb01a)&&_0x58cb77['push'](this['editor']['commands']['get'](_0x2cb01a['model']['commandName']));const _0x4f0f18=_0x1cd6ee['buttonView'];return _0x4f0f18['actionView']['unbind']('isEnabled'),_0x4f0f18['arrowView']['unbind']('isEnabled'),_0x4f0f18['actionView']['bind']('isEnabled')['to'](_0x4b8539,'isEnabled'),_0x4f0f18['arrowView']['bind']('isEnabled')['toMany'](_0x58cb77,'isEnabled',(..._0xa137f3)=>_0xa137f3['some'](_0x44c38e=>_0x44c38e)),_0x1cd6ee['on']('execute',_0x5467d7=>{this['editor']['execute'](_0x5467d7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1cd6ee;}['_createMenuBarMenu'](_0x3af6f5,_0x53c42c,_0x459f00){const _0x4bc059=new Kt(_0x3af6f5),_0x12b265=this['editor']['commands']['get']('trackChanges');_0x4bc059['buttonView']['set']({'label':_0x459f00,'icon':ie});const _0x416447=new Qt(_0x3af6f5);for(const _0x2c2e12 of _0x53c42c){if('separator'==_0x2c2e12['type']){_0x416447['items']['add'](new Jt(_0x3af6f5));continue;}const _0x11e6d9=new Xt(_0x3af6f5,_0x4bc059),_0x18345d=new Yt(_0x3af6f5),_0x285243=_0x2c2e12['model'];_0x18345d['bind'](...Object['keys'](_0x285243))['to'](_0x285243),_0x18345d['delegate']('execute')['to'](_0x4bc059),_0x18345d['on']('execute',()=>{this['editor']['execute'](_0x285243['commandName']),this['editor']['editing']['view']['focus']();}),_0x11e6d9['children']['add'](_0x18345d),_0x416447['items']['add'](_0x11e6d9);}return _0x4bc059['bind']('isEnabled')['to'](_0x12b265,'isEnabled'),_0x4bc059['panelView']['children']['add'](_0x416447),_0x4bc059;}['_initializeController'](_0x574d79){const _0x4abbe7=this['editor'],_0x591e6f=_0x4abbe7['config'],_0x4cd7db=_0x4abbe7['plugins']['get']('Annotations'),_0x4840ec=_0x4abbe7['plugins']['get']('CommentsRepository'),_0x15be57=_0x4abbe7['plugins']['get']('EditorAnnotations'),_0x1b0d23=_0x4abbe7['plugins']['get'](_0x380c8c)['me'],_0xc3145e=_0x591e6f['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4be914,CommentThreadInputView:_0x4ec3a9}=_0x4abbe7['plugins']['get']('CommentsUI');let _0x482196,_0x20dc63;this['_annotationViews']['has'](_0x574d79['id'])?(_0x20dc63=this['_annotationViews']['get'](_0x574d79['id']),_0x482196=_0x20dc63['mainView']):(_0x482196=new _0xc3145e(_0x4abbe7['locale'],_0x574d79,_0x1b0d23,{'disableComments':this['_disableComments'],'editorConfig':_0x591e6f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x591e6f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x591e6f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x591e6f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2064fc(_0x591e6f['get']('locale')),'CommentView':_0x591e6f['get']('comments')['CommentView'],'CommentsListView':_0x4be914,'CommentThreadInputView':_0x4ec3a9}),_0x482196['acceptButton']['on']('execute',()=>{_0x4abbe7['editing']['view']['focus']();}),_0x482196['discardButton']['on']('execute',()=>{_0x4abbe7['editing']['view']['focus']();}),_0x20dc63=_0x4cd7db['createAnnotationView'](this['editor']['locale'],_0x482196),_0x20dc63['bind']('isDirty')['to'](_0x482196,'isDirty'),_0x20dc63['bind']('length')['to'](_0x482196),_0x20dc63['bind']('type')['to'](_0x482196,'type',_0x4a772d=>'suggestion-'+_0x4a772d),this['_annotationViews']['set'](_0x574d79['id'],_0x20dc63));const _0x732e9e=_0x4840ec['createCommentThreadController'](_0x574d79['commentThread'],_0x482196),_0x156878=new oe(_0x4abbe7,_0x574d79,_0x482196,_0x732e9e),_0xd0499e=_0x574d79['getAllAdjacentSuggestions']()['filter'](_0x4db25c=>_0x4db25c['isInContent']);_0x482196['descriptionParts']=_0x4abbe7['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0xd0499e),this['_suggestionToController']['set'](_0x574d79,_0x156878),this['_viewToController']['set'](_0x482196,_0x156878);const _0x28df98=_0x4cd7db['createAnnotation']({'view':_0x20dc63,'target':()=>{const _0x428e9b=[],_0x40ed02=_0x574d79['getAllAdjacentSuggestions']()['filter'](_0x4fc485=>_0x4fc485['isInContent']);for(const _0x15671f of _0x40ed02)_0x428e9b['push'](..._0x15671f['getMarkers']());return _0x2ba4da(_0x4abbe7['editing'],_0x428e9b);},'type':()=>'suggestion-'+_0x156878['view']['type']});_0x4840ec['_bindAnnotationToEditors'](_0x482196,_0x28df98),_0x4cd7db['add'](_0x28df98),_0x15be57['registerAnnotation'](_0x28df98);}['_destroyController'](_0x1bbaeb){const _0xfcb0d6=this['editor']['plugins']['get']('CommentsRepository'),_0x47c62d=this['editor']['plugins']['get']('Annotations'),_0x2b5748=this['_suggestionToController']['get'](_0x1bbaeb),_0x4d260c=_0x2b5748['view'],_0x47ca44=_0x47c62d['getByInnerView'](_0x4d260c);_0xfcb0d6['_unbindEditors'](_0x4d260c),_0x47ca44&&_0x47c62d['remove'](_0x47ca44),this['_suggestionToController']['delete'](_0x1bbaeb),this['_viewToController']['delete'](_0x4d260c),_0x2b5748['destroy']();}['_updateController'](_0x54dd5d){if(!_0x54dd5d['isInContent']||!this['_suggestionToController']['has'](_0x54dd5d))return;const _0x4d39b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25034a=this['_suggestionToController']['get'](_0x54dd5d),_0x115d06=_0x54dd5d['getAllAdjacentSuggestions']();_0x25034a['view']['descriptionParts']=_0x4d39b0['_descriptionFactory']['getDescriptions'](_0x115d06);}['destroy'](){for(const _0x1fdedd of this['_suggestionToController']['keys']())this['_destroyController'](_0x1fdedd);for(const _0x16ce21 of this['_annotationViews']['values']())_0x16ce21['mainView']['destroy']();super['destroy']();}constructor(_0x4f8a6d){super(_0x4f8a6d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x48eaad=this['editor']['config'];_0x48eaad['define']('trackChanges.SuggestionThreadView',ne),_0x48eaad['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x48eaad['get']('trackChanges.disableComments');}}function ae(_0x179ad9){return'model'in _0x179ad9;}class k extends _0x43660f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x166bbc){this['editor']['plugins']['get'](p)['adapter']=_0x166bbc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3baae0){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3baae0);}['getSuggestions']({skipNotAttached:_0x5a48ea=!0x1,toJSON:_0x2f5198=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5a48ea,'toJSON':_0x2f5198});}['getSuggestion'](_0x3f7676){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3f7676);}}const T=['Pagination'];class P extends _0x43660f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4c3761=this['editor'];if(_0x4c3761['config']['define']('trackChangesData.editorCreator',_0x1d8838=>{const _0x24c33d=_0x4c3761['model']['document']['getRootNames']()['reduce']((_0x3f33d4,_0x49a7e7)=>(_0x3f33d4[_0x49a7e7]='',_0x3f33d4),{});return _0x4c3761['constructor']['create'](_0x24c33d,_0x1d8838);}),'function'!=typeof _0x4c3761['config']['get']('trackChangesData')['editorCreator'])throw new _0x148f6c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xb3721){return N(this['editor'],!0x0,_0xb3721);}['getDataWithDiscardedSuggestions'](_0x536d64){return N(this['editor'],!0x1,_0x536d64);}}class D extends _0x43660f{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x350be5){super(_0x350be5),this['result']='end';}}function v(_0xd3c61){return void 0x0!==_0xd3c61['getRootsAttributes'];}async function N(_0x235e2a,_0x89eaa9,_0x5d759e){const _0x58a962=_0x37f701(_0x235e2a,T);_0x58a962['plugins']['push'](p,D),_0x58a962['rootsAttributes']=v(_0x235e2a)?_0x235e2a['getRootsAttributes']():void 0x0;const _0x3c4938=document['createDocumentFragment'](),_0x53c805=_0x235e2a['config']['get']('trackChangesData')['editorCreator'],_0x71872d=await _0x53c805(_0x58a962,()=>function(_0x450274){const _0x38b9fd=document['createElement']('div');return _0x450274['appendChild'](_0x38b9fd),_0x38b9fd;}(_0x3c4938));!function(_0x138109,_0x5058d2){const _0x5c3f9e=_0x138109['model']['document']['getRootNames']()['reduce']((_0x29fa9c,_0x100929)=>(_0x29fa9c[_0x100929]=_0x138109['data']['get']({'rootName':_0x100929}),_0x29fa9c),{}),_0x5428ee=_0x138109['plugins']['get']('Users')['users']['map'](_0x3c1f19=>({'id':_0x3c1f19['id'],'name':_0x3c1f19['name']})),_0x508ef8=_0x138109['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x57e6f9=_0x5058d2['plugins']['get']('Users'),_0x24c8b4=_0x5058d2['plugins']['get']('TrackChangesEditing');for(const _0x5e4c36 of _0x5428ee)_0x57e6f9['getUser'](_0x5e4c36['id'])||_0x57e6f9['addUser'](_0x5e4c36);_0x57e6f9['me']||_0x57e6f9['useAnonymousUser']();for(const _0x58da36 of _0x508ef8)_0x24c8b4['addSuggestionData'](_0x58da36);_0x5058d2['data']['set'](_0x5c3f9e);}(_0x235e2a,_0x71872d),_0x71872d['execute'](_0x89eaa9?'acceptAllSuggestions':'discardAllSuggestions');const _0x4e6e1f=v(_0x71872d)?_0x71872d['getFullData'](_0x5d759e):_0x71872d['data']['get'](_0x5d759e);return await _0x71872d['destroy'](),_0x4e6e1f;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};