@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240510.0 → 0.0.0-nightly-20240512.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/build/track-changes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as _0xc027b9,PendingActions as _0x2c0307,icons as _0x27320f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xdb208a,ObservableMixin as _0x343559,uid as _0x12a8c4,insertToPriorityArray as _0x394540,priorities as _0x31cd08,logWarning as _0x5c5ffb,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x25542d,View as _0x235fbc,ButtonView as _0x1b49be,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 _0x2be467,hashObject as _0x1984cc,surroundingMarkersDetector as _0x6b69c5,trimHtml as _0x1568f2,UserView as _0x3359ce,getDateTimeFormatter as _0x2a75cf,getAllMarkersDomElementsSorted as _0x16113c,sanitizeEditorConfig as _0x261f1d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x51a621,LiveRange as _0x4fddfe,LivePosition as _0x4e3752}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4e6f32,toWidget as _0x4f4604}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3a29b3,set as _0x5b9298,isEqual as _0x4b5bac,unset as _0x5c81e0,omit as Bt}from'lodash-es';import{Delete as _0x286b63,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x274ce7,ShiftEnter as _0x28bf5c}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x20f812,_0x4b42a9){super(_0x20f812),this['_enabledCommands']=_0x4b42a9,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x433055 of this['editor']['commands']['commands']())_0x433055['affectsData']&&!this['_enabledCommands']['has'](_0x433055)&&_0x433055['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x367917 of this['editor']['commands']['commands']())_0x367917['affectsData']&&!this['_enabledCommands']['has'](_0x367917)&&_0x367917['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x45e5ee,_0x28c040){super(_0x45e5ee),this['_suggestions']=_0x28c040,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x52e2bf){const _0x433aef=this['_suggestions']['get'](_0x52e2bf);if(!_0x433aef)throw new _0xdb208a('track-changes-accept-suggestion-not-found',this);const _0x4c0f5f=_0x433aef['getRanges']();this['editor']['model']['canEditAt'](_0x4c0f5f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x433aef);}}class B extends ts{['_suggestions'];constructor(_0x2bff9a,_0x409059){super(_0x2bff9a),this['_suggestions']=_0x409059,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x347934){const _0x4ceeea=this['_suggestions']['get'](_0x347934);if(!_0x4ceeea)throw new _0xdb208a('track-changes-discard-suggestion-not-found',this);const _0x8d4b27=_0x4ceeea['getRanges']();this['editor']['model']['canEditAt'](_0x8d4b27)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4ceeea);}}function ss(_0x2e3340){return _0x2e3340['sort']((_0x20c635,_0x447a0c)=>'deletion'==_0x20c635['type']&&'deletion'!=_0x447a0c['type']?-0x1:'deletion'!=_0x20c635['type']&&'deletion'==_0x447a0c['type']?0x1:0x0);}function to(_0x1cad6f,_0x1aa22c){let _0x471017,_0x3b1663=0x0;const _0x17e560=[],_0xddbda8=_0x1aa22c['schema'];for(;_0x3b1663<_0x1cad6f['length'];){const _0x3187da=_0x1cad6f[_0x3b1663],_0xd59abf=_0x1cad6f[_0x3b1663+0x1];_0x471017||(_0x471017=_0x1aa22c['createPositionBefore'](_0x3187da)),co(_0x1aa22c,_0x3187da,_0xd59abf)||(_0x17e560['push'](_0x1aa22c['createRange'](_0x471017,_0xddbda8['isObject'](_0x3187da)?_0x1aa22c['createPositionAfter'](_0x3187da):_0x1aa22c['createPositionAt'](_0x3187da,'end'))),_0x471017=null),_0x3b1663++;}return _0x17e560;}function co(_0x2b65cf,_0xbfadcd,_0x5c7ccc){if(!_0x5c7ccc)return!0x1;const _0x5774b6=_0x2b65cf['createPositionAfter'](_0xbfadcd),_0x1d194e=_0x2b65cf['createPositionBefore'](_0x5c7ccc);return _0x5774b6['isTouching'](_0x1d194e);}function rs(_0x173fb3,_0x235399,_0x17def9){for(;_0x17def9['length'];){const _0x4918a1=_0x17def9['splice'](0x0,0x64);_0x173fb3['change'](()=>{for(const _0x33d4d4 of _0x4918a1)_0x33d4d4['isInContent']&&_0x235399['execute'](_0x33d4d4['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x23e184,_0x8acac1,_0x3164cc){super(_0x23e184),this['_command']=_0x8acac1,this['_suggestions']=_0x3164cc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x264b90=Array['from'](this['_suggestions']['values']())['some'](_0x862597=>_0x862597['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x264b90;}['execute'](){const _0x579564=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2a9aff of _0x579564){const _0x33e571=_0x2a9aff['getRanges']();if(!this['editor']['model']['canEditAt'](_0x33e571))return;}rs(this['editor']['model'],this['_command'],_0x579564);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4ec744,_0x4f8516,_0xfb40f4){super(_0x4ec744),this['_command']=_0x4f8516,this['_suggestions']=_0xfb40f4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3f4d7c=this['editor']['model']['document']['selection'],_0x19b297=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x472956,_0x30a08e){const _0x20d22a=Array['from'](_0x472956['getRanges']()),_0x1ac69e=new Set();for(const _0x561e71 of _0x30a08e)if(_0x561e71['isInContent']){for(const _0x5f4d54 of _0x20d22a)for(const _0x4e562c of _0x561e71['getRanges']())(_0x5f4d54['isIntersecting'](_0x4e562c)||_0x472956['isCollapsed']&&!_0x561e71['isMultiRange']&&_0x561e71['next']&&_0x4e562c['end']['isTouching'](_0x5f4d54['start']))&&_0x1ac69e['add'](_0x561e71);}return _0x1ac69e;}(_0x3f4d7c,_0x19b297),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1986ab=ss(Array['from'](this['_selectedSuggestions']));for(const _0x24b823 of _0x1986ab){const _0x58e814=_0x24b823['getRanges']();if(!this['editor']['model']['canEditAt'](_0x58e814))return;}rs(this['editor']['model'],this['_command'],_0x1986ab);}}class u extends _0x343559(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1245ef,_0x166c64){super(),this['id']=_0x166c64['id'],this['type']=_0x166c64['type'],this['subType']=_0x166c64['subType']||null,this['author']=_0x166c64['author'],this['creator']=_0x166c64['creator']||_0x166c64['author'],this['isExternal']=Boolean(_0x166c64['attributes']&&_0x166c64['attributes']['@external']),this['data']=null,this['_model']=_0x1245ef,this['_onAccept']=_0x166c64['onAccept'],this['_onDiscard']=_0x166c64['onDiscard'],this['_onAttributesChange']=_0x166c64['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x166c64['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x242e35=this;for(;_0x242e35['previous'];)_0x242e35=_0x242e35['previous'];return _0x242e35;}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'](_0xf1f2c0){this['_markerNames']['add'](_0xf1f2c0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x49cf2a=>this['_model']['markers']['get'](_0x49cf2a))['filter'](_0x6fb4dd=>_0x6fb4dd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x357f7a=>{for(const _0x127259 of this['getMarkers']())_0x357f7a['removeMarker'](_0x127259);}),this['_markerNames']['clear']();}['removeMarker'](_0x40daf7){this['_model']['change'](_0x781284=>{_0x781284['removeMarker'](_0x40daf7);}),this['_markerNames']['delete'](_0x40daf7);}['addRange'](_0x11ac8d){const _0x123da0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x123da0),this['_model']['change'](_0x4040d2=>{_0x4040d2['addMarker'](_0x123da0,{'range':_0x11ac8d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3e73d8){for(const _0x33615e of this['getRanges']())if(_0x33615e['isIntersecting'](_0x3e73d8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x179be5=>_0x179be5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1f8324,_0x219cb2)=>[..._0x1f8324,..._0x219cb2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xe5728e=this['getRanges']();if(0x1!=_0xe5728e['length'])return null;const _0x3dcc98=_0xe5728e[0x0],_0x3d0884=_0x3dcc98['start']['nodeAfter'],_0x169bb8=_0x3dcc98['end']['nodeBefore'];return _0x3d0884 instanceof _0x51a621?_0x3d0884!=_0x169bb8?null:_0x3d0884: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 _0x57757d=[];let _0x2f57e6=this['head'];for(;_0x2f57e6;)_0x57757d['push'](_0x2f57e6),_0x2f57e6=_0x2f57e6['next'];return _0x57757d;}['setAttribute'](_0xe0d20,_0x2d6d39){const _0x3e0b71=_0x3a29b3(this['attributes']);_0x5b9298(_0x3e0b71,_0xe0d20,_0x2d6d39),_0x4b5bac(_0x3e0b71,this['attributes'])||(this['attributes']=_0x3e0b71,this['_onAttributesChange'](_0x3e0b71));}['removeAttribute'](_0x33a6fa){const _0x5652f5=_0x3a29b3(this['attributes']);_0x5c81e0(_0x5652f5,_0x33a6fa),_0x4b5bac(_0x5652f5,this['attributes'])||(this['attributes']=_0x5652f5,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 _0x12a8c4()['substr'](0x1,0x5);}}function o(_0x5f4fec,_0x1330a3,_0xb3fad8){const t=_0x5f4fec['t'];switch(_0x1330a3){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',_0xb3fad8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xb3fad8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xb3fad8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xb3fad8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xb3fad8);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',_0xb3fad8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xb3fad8);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',_0xb3fad8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xb3fad8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xb3fad8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xb3fad8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xb3fad8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xb3fad8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xb3fad8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xb3fad8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xb3fad8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xb3fad8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xb3fad8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xb3fad8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xb3fad8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xb3fad8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xb3fad8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xb3fad8);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'},_0xb3fad8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xb3fad8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xb3fad8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xb3fad8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xb3fad8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xb3fad8);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'},_0xb3fad8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xb3fad8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xb3fad8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xb3fad8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xb3fad8);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'},_0xb3fad8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xb3fad8);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'},_0xb3fad8);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'},_0xb3fad8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xb3fad8);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'},_0xb3fad8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xb3fad8);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'},_0xb3fad8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xb3fad8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xb3fad8);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'},_0xb3fad8);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'},_0xb3fad8);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 _0x1330a3;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3fb317,_0x3f980f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3fb317,this['_locale']=_0x3f980f;}['getDescriptions'](_0x358a8a){const _0x45daf0=[],_0x5eb974=new Set(),_0x5d100e=new Set();for(let _0x3111f7=0x0;_0x3111f7<_0x358a8a['length'];_0x3111f7++){const _0x298205=_0x358a8a[_0x3111f7];if(!_0x298205['isInContent'])continue;const _0xd930bb=this['_handleCustomCallbackDescription'](_0x298205);if(_0xd930bb){if(null!=_0x298205['subType']){if(_0x5eb974['has'](_0x298205['subType']))continue;_0x5eb974['add'](_0x298205['subType']);}_0x45daf0['push'](_0xd930bb);}else{if('attribute'!=_0x298205['type'])'insertion'!=_0x298205['type']&&'deletion'!=_0x298205['type']||this['_handleInsertRemoveSuggestionDescription'](_0x45daf0,_0x298205,_0x358a8a[_0x3111f7+0x1]);else{const _0x41d178=_0x298205['data']['key'];if(_0x5d100e['has'](_0x41d178))continue;_0x5d100e['add'](_0x298205['data']['key']),_0x41d178==m?this['_handleRenameSuggestionDescription'](_0x45daf0,_0x298205):this['_handleAttributeSuggestionDescription'](_0x45daf0,_0x298205);}}}return this['_resolveDescriptionItems'](_0x45daf0);}['registerDescriptionCallback'](_0x3af4a0){this['_customCallbacks']['push'](_0x3af4a0);}['registerElementLabel'](_0x4d3d06,_0x17d3e5,_0x514014=_0x31cd08['normal']){'function'==typeof _0x4d3d06?_0x394540(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4d3d06,'label':_0x17d3e5,'priority':_0x514014}):this['_itemLabels']['set'](_0x4d3d06,_0x17d3e5);}['registerAttributeLabel'](_0xfe496,_0x18da04){this['_attributeLabels']['set'](_0xfe496,_0x18da04);}['getItemLabel'](_0x38f696,_0x2d9e5c=0x1){let _0xad4461;for(const _0x1f1efe of this['_itemLabelsCallbacks'])if(_0x1f1efe['matchingCallback'](_0x38f696)){_0xad4461=_0x1f1efe['label'];break;}return _0xad4461||(_0xad4461=this['_itemLabels']['get'](_0x38f696['name'])),_0xad4461?_0xad4461(_0x2d9e5c):0x1!==_0x2d9e5c?_0x2d9e5c+'\x20'+_0x38f696['name']+'s':''+_0x38f696['name'];}['_addDescriptionItems'](_0x95de9e,_0x1a7d1e){const _0x5c33b4=_0x1a7d1e['getFirstRange']()['getWalker'](),_0x256d56='insertion'==_0x1a7d1e['type']?'add':'remove';for(const _0x213673 of _0x5c33b4){const _0x59ca00=_0x213673['item'],_0x51a4a0=_0x95de9e[_0x95de9e['length']-0x1];if(_0x59ca00['is']('$textProxy'))_0x51a4a0&&_0x51a4a0['type']['indexOf']('Container')>-0x1&&_0x95de9e['pop'](),_0x51a4a0&&'text'==_0x51a4a0['type']?_0x51a4a0[_0x256d56]+=_0x59ca00['data']:_0x95de9e['push']({'type':'text','add':'add'==_0x256d56?_0x59ca00['data']:'','remove':'remove'==_0x256d56?_0x59ca00['data']:''});else{if(this['_schema']['isObject'](_0x59ca00)){const _0x12d13d=_0x59ca00;if(_0x51a4a0&&_0x51a4a0['type']['indexOf']('Container')>-0x1&&_0x95de9e['pop'](),'elementEnd'==_0x213673['type'])continue;_0x51a4a0&&_0x51a4a0['type']==_0x256d56+'Object'&&_0x51a4a0['element']['name']==_0x12d13d['name']?_0x51a4a0['quantity']++:_0x95de9e['push']({'type':_0x256d56+'Object','element':_0x12d13d,'quantity':0x1}),_0x5c33b4['skip'](_0x1cb37b=>!('elementEnd'==_0x1cb37b['type']&&_0x1cb37b['item']==_0x59ca00));}else{if(this['_schema']['checkChild'](_0x59ca00,'$text')||_0x59ca00['is']('element','softBreak')){const _0x148bba=_0x59ca00;if('add'==_0x256d56&&'elementStart'==_0x213673['type']||'remove'==_0x256d56&&'elementEnd'==_0x213673['type'])continue;if(_0x51a4a0&&-0x1==_0x51a4a0['type']['indexOf']('Container')){'text'==_0x51a4a0['type']&&(_0x51a4a0[_0x256d56]+='\x0a');continue;}let _0x543c82;if(_0x543c82='add'==_0x256d56?_0x148bba['nextSibling']&&!this['_schema']['isObject'](_0x148bba['nextSibling'])?_0x148bba['nextSibling']:null:_0x148bba['previousSibling']&&!this['_schema']['isObject'](_0x148bba['previousSibling'])?_0x148bba['previousSibling']:null,_0x148bba['isEmpty']||_0x543c82&&_0x543c82['isEmpty']){const _0x580ab2=_0x543c82&&_0x543c82['isEmpty']?_0x543c82:_0x148bba;_0x51a4a0&&_0x51a4a0['type']==_0x256d56+'EmptyContainer'&&_0x51a4a0['element']['name']==_0x580ab2['name']?_0x51a4a0['quantity']++:_0x95de9e['push']({'type':_0x256d56+'EmptyContainer','element':_0x580ab2,'quantity':0x1});}else _0x95de9e['push']({'type':_0x256d56+'Container','element':_0x148bba});}}}}}['_resolveDescriptionItems'](_0x5f12e7){const _0x210c21=this['_locale'],_0x53679d=[],_0x460d0e=[],_0x1d69f9=[];for(const _0x5205e1 of _0x5f12e7)switch(_0x5205e1['type']){case'text':if(_0x5205e1['add']=_0x5205e1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5205e1['remove']=_0x5205e1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5205e1['add']&&''!=_0x5205e1['remove']){_0x53679d['push']({'type':'replace','content':o(_0x210c21,'REPLACE_TEXT',['\x22'+_0x5205e1['remove']+'\x22','\x22'+_0x5205e1['add']+'\x22'])});continue;}if(null!=_0x5205e1['add']['match'](/^ +$/)){_0x53679d['push']({'type':'insertion','content':o(_0x210c21,'*Insert:*\x20%0',o(_0x210c21,'ELEMENT_SPACE',_0x5205e1['add']['length']))});continue;}if(null!=_0x5205e1['remove']['match'](/^ +$/)){_0x53679d['push']({'type':'deletion','content':o(_0x210c21,'*Remove:*\x20%0',o(_0x210c21,'ELEMENT_SPACE',_0x5205e1['remove']['length']))});continue;}if(''!=_0x5205e1['add']){_0x53679d['push']({'type':'insertion','content':o(_0x210c21,'*Insert:*\x20%0','\x22'+_0x5205e1['add']+'\x22')});continue;}_0x53679d['push']({'type':'deletion','content':o(_0x210c21,'*Remove:*\x20%0','\x22'+_0x5205e1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x53679d['push']({'type':'insertion','content':o(_0x210c21,'*Insert:*\x20%0',this['getItemLabel'](_0x5205e1['element'],_0x5205e1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x53679d['push']({'type':'deletion','content':o(_0x210c21,'*Remove:*\x20%0',this['getItemLabel'](_0x5205e1['element'],_0x5205e1['quantity']))});continue;case'addContainer':_0x53679d['push']({'type':'insertion','content':o(_0x210c21,'*Split:*\x20%0',this['getItemLabel'](_0x5205e1['element'],_0x5205e1['quantity']))});continue;case'removeContainer':_0x53679d['push']({'type':'deletion','content':o(_0x210c21,'*Merge:*\x20%0',this['getItemLabel'](_0x5205e1['element'],_0x5205e1['quantity']))});continue;case'addFormat':_0x460d0e['push'](_0x5205e1['key']);continue;case'removeFormat':_0x1d69f9['push'](_0x5205e1['key']);continue;default:_0x53679d['push'](_0x5205e1);}if(_0x460d0e['length']){const _0x3dc0a8=_0x460d0e['map'](_0x1ec18a=>this['_attributeLabels']['has'](_0x1ec18a)?this['_attributeLabels']['get'](_0x1ec18a):_0x1ec18a)['join'](',\x20');_0x53679d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3dc0a8)});}if(_0x1d69f9['length']){const _0x7c18d2=_0x1d69f9['map'](_0x34d625=>this['_attributeLabels']['has'](_0x34d625)?this['_attributeLabels']['get'](_0x34d625):_0x34d625)['join'](',\x20');_0x53679d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x7c18d2)});}return _0x53679d;}['_handleCustomCallbackDescription'](_0x2c6337){for(const _0x4c986a of this['_customCallbacks']){const _0x7a65de=_0x4c986a(_0x2c6337);if(_0x7a65de&&'type'in _0x7a65de)return _0x7a65de;}}['_handleAttributeSuggestionDescription'](_0x1b4b82,_0x285a48){const _0x58d08e=_0x285a48['data'],_0x553ea1=void 0x0===_0x58d08e['newValue']?'removeFormat':'addFormat';_0x1b4b82['push']({'type':_0x553ea1,'key':_0x58d08e['key']});}['_handleRenameSuggestionDescription'](_0x56e061,_0x2f13cb){_0x56e061['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2f13cb['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x340afe,_0xc313e9,_0x36d655){if(this['_addDescriptionItems'](_0x340afe,_0xc313e9),_0x36d655&&_0x36d655['getFirstRange']()&&!_0xc313e9['getFirstRange']()['end']['isEqual'](_0x36d655['getFirstRange']()['start'])){const _0xf57d24=_0x340afe[_0x340afe['length']-0x1],_0x1bd431='insertion'==_0xc313e9['type']?'add':'remove';_0xf57d24&&'text'==_0xf57d24['type']&&(_0xf57d24[_0x1bd431]+='\x0a');}}}class E extends _0xc027b9{['afterInit'](){const _0x257c2e=this['editor'],_0x28b41a=_0x257c2e['plugins']['get']('TrackChangesEditing');_0x257c2e['commands']['get']('showAIAssistant')&&_0x28b41a['enableCommand']('showAIAssistant');}}class V extends _0xc027b9{['afterInit'](){const _0x2b5b73=this['editor'],_0x478064=_0x2b5b73['locale'];if(!_0x2b5b73['plugins']['has']('AlignmentEditing'))return;const _0x578e87=_0x2b5b73['plugins']['get']('TrackChangesEditing');_0x578e87['enableDefaultAttributesIntegration']('alignment'),_0x578e87['registerBlockAttribute']('alignment'),_0x578e87['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x478064,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309383=this['editor'],_0x21ff40=_0x309383['locale'];_0x309383['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x471c48=>{if('formatBlock'!=_0x471c48['type'])return;const {data:_0x27000c}=_0x471c48;if(_0x27000c&&'alignment'==_0x27000c['commandName']){const _0x2ec910=_0x27000c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x21ff40,'*Format:*\x20%0',function(_0xd213f9){switch(_0xd213f9){case'left':return o(_0x21ff40,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x21ff40,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x21ff40,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x21ff40,'FORMAT_JUSTIFY_TEXT');}}(_0x2ec910))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0xc027b9{['afterInit'](){const _0x29139f=this['editor'],_0x534069=_0x29139f['plugins']['get']('TrackChangesEditing'),_0x21d99a=_0x29139f['locale'];for(const _0x4f1490 of ti){if(!_0x29139f['plugins']['has'](_0x4f1490))continue;const _0x561c19=_0x4f1490['slice'](0x0,-0x7)['toLowerCase'](),_0xedf809='FORMAT_'+_0x561c19['toUpperCase']();_0x534069['enableDefaultAttributesIntegration'](_0x561c19),_0x534069['registerInlineAttribute'](_0x561c19),_0x534069['descriptionFactory']['registerAttributeLabel'](_0x561c19,o(_0x21d99a,_0xedf809));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46ee3a=this['editor'],_0x3c4ae4=_0x46ee3a['locale'],_0x265a1a=_0x46ee3a['plugins']['get']('TrackChangesEditing');function _0x395537(_0x21bded,_0x5ac5d8){_0x265a1a['descriptionFactory']['registerDescriptionCallback'](_0x288309=>{if('formatInline'!=_0x288309['type'])return;const {data:_0x2417f1}=_0x288309;return _0x2417f1&&_0x2417f1['commandName']===_0x21bded?_0x2417f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c4ae4,'*Format:*\x20%0',_0x5ac5d8)}:{'type':'format','content':o(_0x3c4ae4,'*Remove\x20format:*\x20%0',_0x5ac5d8)}:void 0x0;});}_0x395537('bold',o(_0x3c4ae4,'FORMAT_BOLD')),_0x395537('italic',o(_0x3c4ae4,'FORMAT_ITALIC')),_0x395537('underline',o(_0x3c4ae4,'FORMAT_UNDERLINE')),_0x395537('code',o(_0x3c4ae4,'FORMAT_CODE')),_0x395537('strikethrough',o(_0x3c4ae4,'FORMAT_STRIKETHROUGH')),_0x395537('subscript',o(_0x3c4ae4,'FORMAT_SUBSCRIPT')),_0x395537('superscript',o(_0x3c4ae4,'FORMAT_SUPERSCRIPT'));}}class O extends _0xc027b9{['afterInit'](){const _0x13399c=this['editor'],_0x1f8f73=_0x13399c['locale'];if(!_0x13399c['plugins']['has']('BlockQuoteEditing'))return;const _0x150e5c=_0x13399c['plugins']['get']('TrackChangesEditing'),_0x2be2c5=this['editor']['commands']['get']('blockQuote');_0x150e5c['enableCommand']('blockQuote',(_0x4ebd9d,_0x4ede55={})=>{const _0x43beed=this['editor']['model']['document']['selection'],_0x2b4976=_0x4ede55&&void 0x0!==_0x4ede55['forceValue']?_0x4ede55['forceValue']:!_0x2be2c5['value'];let _0x176bde=[];if(_0x2b4976){const _0x3ac3ee=Array['from'](_0x43beed['getSelectedBlocks']())['filter'](_0xfd6ef1=>oo(_0xfd6ef1)||function(_0x51c3d8,_0x5f0519){const _0x400707=_0x5f0519['checkChild'](_0x51c3d8['parent'],'blockQuote'),_0x34899b=_0x5f0519['checkChild'](['$root','blockQuote'],_0x51c3d8);return _0x400707&&_0x34899b;}(_0xfd6ef1,this['editor']['model']['schema']));_0x176bde=to(_0x3ac3ee,_0x13399c['model']);}else{const _0x3f3572=Array['from'](_0x43beed['getSelectedBlocks']())['filter'](_0x3d1a1c=>oo(_0x3d1a1c));_0x176bde=to(_0x3f3572,_0x13399c['model']);}_0x13399c['model']['change'](()=>{for(const _0x1b361f of _0x176bde)_0x150e5c['markBlockFormat'](_0x1b361f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2b4976}]});});}),_0x150e5c['descriptionFactory']['registerDescriptionCallback'](_0x4648b5=>{const {data:_0x35a03e}=_0x4648b5;if(_0x35a03e&&'blockQuote'==_0x35a03e['commandName']){const _0x138753=o(_0x1f8f73,'ELEMENT_BLOCK_QUOTE');return _0x35a03e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f8f73,'*Set\x20format:*\x20%0',_0x138753)}:{'type':'format','content':o(_0x1f8f73,'*Remove\x20format:*\x20%0',_0x138753)};}});}}function oo(_0x4d4f25){return'blockQuote'==_0x4d4f25['parent']['name'];}class F extends _0xc027b9{['afterInit'](){const _0x51f683=this['editor'];_0x51f683['plugins']['has']('CaseChange')&&(_0x51f683['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x51f683['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x51f683['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xc027b9{['afterInit'](){const _0x46f9a7=this['editor'];_0x46f9a7['commands']['get']('ckbox')&&_0x46f9a7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xc027b9{['afterInit'](){const _0x33a1d2=this['editor'];if(!_0x33a1d2['plugins']['has']('CodeBlock'))return;const _0x5df51e=_0x33a1d2['plugins']['get']('TrackChangesEditing'),_0x5cdf5c=_0x33a1d2['locale'],_0x4967e5=_0x33a1d2['config']['get']('codeBlock')['languages'],_0xaccfad=_0x33a1d2['commands']['get']('codeBlock');_0x5df51e['enableCommand']('indentCodeBlock'),_0x5df51e['enableCommand']('outdentCodeBlock'),_0x5df51e['enableCommand']('codeBlock',(_0x1d2713,_0x2217bc={})=>{const _0x37616d=_0x33a1d2['model'],_0x9da38=_0x33a1d2['model']['document']['selection'],_0x1abd51=_0x2217bc&&void 0x0!==_0x2217bc['forceValue']?_0x2217bc['forceValue']:!_0xaccfad['value'];let _0x194e84;_0x2217bc['language']||(_0x2217bc['language']=_0x4967e5[0x0]['language']),_0x194e84=_0x1abd51?Array['from'](_0x9da38['getSelectedBlocks']())['filter'](_0x113d7d=>eo(_0x113d7d)||function(_0x288a15,_0x4d051f){if(_0x288a15['is']('rootElement')||_0x4d051f['isLimit'](_0x288a15))return!0x1;return _0x4d051f['checkChild'](_0x288a15['parent'],'codeBlock');}(_0x113d7d,_0x37616d['schema'])):Array['from'](_0x9da38['getSelectedBlocks']())['filter'](_0xd42fe7=>eo(_0xd42fe7));const _0x23341a=to(_0x194e84,_0x37616d);_0x37616d['change'](()=>{for(const _0x376908 of _0x23341a)_0x5df51e['markBlockFormat'](_0x376908,{'commandName':'codeBlock','commandParams':[{..._0x2217bc,'forceValue':_0x1abd51}],'formatGroupId':'blockName'});});}),(_0x5df51e['descriptionFactory']['registerElementLabel']('codeBlock',_0x1d2d6b=>o(_0x5cdf5c,'ELEMENT_CODE_BLOCK',_0x1d2d6b)),_0x5df51e['descriptionFactory']['registerDescriptionCallback'](_0x38a546=>{if('formatBlock'!=_0x38a546['type'])return;const _0x31822d=_0x5cdf5c['t'],{data:_0x47dccc}=_0x38a546;if(!_0x47dccc||'codeBlock'!=_0x47dccc['commandName'])return;const _0x36a316=_0x47dccc['commandParams'][0x0]['language'],_0x945bf8=_0x31822d(_0x4967e5['find'](_0x5a5e9d=>_0x5a5e9d['language']===_0x36a316)['label'])['toLowerCase']();return _0x47dccc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cdf5c,'*Set\x20format:*\x20%0',o(_0x5cdf5c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x945bf8+')')}:{'type':'format','content':o(_0x5cdf5c,'*Remove\x20format:*\x20%0',o(_0x5cdf5c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3e0650){return'codeBlock'==_0x3e0650['name'];}class H extends _0xc027b9{['afterInit'](){const _0x42bc02=this['editor'];if(!_0x42bc02['plugins']['has']('CommentsEditing'))return;_0x42bc02['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x46042c,_0x46c295,_0x2877c5){const _0x57eace=[];for(const _0x43da3a of _0x46c295['getItems']())_0x43da3a['hasAttribute'](_0x46042c)&&_0x57eace['push'](_0x2877c5['createRangeOn'](_0x43da3a));return _0x57eace;}function _e(_0x2d5394,_0x3fced6,{showActiveMarker:_0x52752b=!0x0}={}){const _0x80cf0f=_0x2d5394['plugins']['get']('TrackChangesEditing');return(_0x1ed605,_0x264205,_0x36c2da)=>{if(!_0x36c2da['consumable']['test'](_0x264205['markerRange'],_0x1ed605['name']))return;const _0x3002e4=_0x264205['markerRange']['getWalker'](),_0x46c2a6=_0x264205['markerRange']['start'],_0xbf7dc3=_0x2d5394['model']['schema'];let _0x3ef0bb=null,_0x1778f3=null,_0xa31147=!0x1,_0x402b6e=!0x1;for(const _0x49cd05 of _0x3002e4){const _0x3339b6=_0x49cd05['item'];_0xa31147=_0xa31147||_0xbf7dc3['isContent'](_0x3339b6);const _0x59aa4c=_0x36c2da['mapper']['toViewElement'](_0x3339b6);if(_0x59aa4c&&_0x59aa4c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49cd05['type']&&(_0xbf7dc3['isBlock'](_0x3339b6)&&!_0xbf7dc3['isLimit'](_0x3339b6)&&(_0x3339b6['nextSibling']||_0x46c2a6['isAtEnd']?_0x3ef0bb&&_0x3ef0bb['parent']==_0x3339b6||(_0x3ef0bb=_0x3339b6,_0x2b9052(_0x49cd05['previousPosition']),_0x402b6e=!0x0):_0x1778f3=_0x1778f3||_0x49cd05['previousPosition']));}function _0x2b9052(_0x5980ed){const _0x1fe897=_0x36c2da['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3fced6}),_0x3d24a5=_0x36c2da['mapper']['toViewPosition'](_0x5980ed);_0x52752b&&_0x80cf0f['activeMarkers']['includes'](_0x264205['markerName'])&&_0x36c2da['writer']['addClass']('ck-suggestion-marker--active',_0x1fe897),_0x36c2da['writer']['insert'](_0x3d24a5,_0x1fe897),_0x36c2da['mapper']['bindElementToMarker'](_0x1fe897,_0x264205['markerName']);}_0xa31147||_0x402b6e||!_0x1778f3||_0x2b9052(_0x1778f3);};}class q extends _0xc027b9{static get['requires'](){return[_0x286b63];}['init'](){const _0x473e9b=this['editor'],_0x1d39e4=_0x473e9b['plugins']['get']('TrackChangesEditing');_0x1d39e4['enableCommand']('delete');const _0x5de89a=_0x473e9b['commands']['get']('deleteForward');_0x1d39e4['enableCommand']('deleteForward',(_0x3c0eda,_0x39a320={})=>{const _0x31a445=_0x473e9b['model']['createSelection'](_0x473e9b['model']['document']['selection']);_0x31a445['isCollapsed']&&_0x473e9b['model']['modifySelection'](_0x31a445,{'direction':'forward','unit':_0x39a320['unit']});const _0x26fd11=_0x31a445['getFirstRange'](),_0x8873e4=_0x4fddfe['fromRange'](_0x26fd11);let _0x1da7cc;_0x3c0eda(_0x39a320),_0x1da7cc='$graveyard'==_0x8873e4['root']['rootName']?_0x473e9b['model']['createRange'](_0x26fd11['start']):_0x473e9b['model']['createRange'](_0x8873e4['start'],_0x8873e4['end']),_0x8873e4['detach'](),_0x473e9b['model']['enqueueChange'](_0x5de89a['buffer']['batch'],_0x3f978b=>{_0x5de89a['buffer']['lock'](),_0x3f978b['setSelection'](_0x3f978b['createRange'](_0x1da7cc['end'])),_0x5de89a['buffer']['unlock']();});}),_0x473e9b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x473e9b,'merge'),{'priority':'high'}),_0x473e9b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xd3e5c1,_0x4e5981,_0x4eada2)=>{_0x4eada2['options']['showSuggestionHighlights']&&_e(_0x473e9b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xd3e5c1,_0x4e5981,_0x4eada2);},{'priority':'high'}),_0x473e9b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x449d09,_0x358658,_0x1d16eb)=>{const _0x2617b9=_0x1d16eb['mapper']['markerNameToElements'](_0x358658['markerName']);if(_0x2617b9){for(const _0x5790eb of _0x2617b9)_0x5790eb['is']('uiElement')&&(_0x1d16eb['mapper']['unbindElementFromMarkerName'](_0x5790eb,_0x358658['markerName']),_0x1d16eb['writer']['remove'](_0x5790eb));}},{'priority':'high'});}}class z extends _0xc027b9{['afterInit'](){const _0x35358d=this['editor'];if(!_0x35358d['plugins']['has']('ListEditing'))return;const _0x5a6611=_0x35358d['locale'],_0x4b8d4b=_0x35358d['plugins']['get']('TrackChangesEditing'),_0x2b19f5=_0x35358d['plugins']['has']('TodoListEditing'),_0x1d86b1=!!_0x35358d['config']['get']('list.multiBlock');function _0x1444a7(_0x13a391){return{'type':'format','content':''+o(_0x5a6611,'*Set\x20format:*\x20%0',_0x13a391)};}function _0x26d9b6(_0x2e97e7){return{'type':'format','content':''+o(_0x5a6611,'*Remove\x20format:*\x20%0',_0x2e97e7)};}_0x4b8d4b['enableDefaultAttributesIntegration']('numberedList'),_0x4b8d4b['enableDefaultAttributesIntegration']('bulletedList'),_0x4b8d4b['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b8d4b['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b8d4b['enableDefaultAttributesIntegration']('indentList'),_0x4b8d4b['enableDefaultAttributesIntegration']('outdentList'),_0x4b8d4b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b8d4b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4b8d4b['registerBlockAttribute']('listItemId'),_0x4b8d4b['registerBlockAttribute']('listType'),_0x4b8d4b['registerBlockAttribute']('listIndent'),_0x1d86b1&&(_0x4b8d4b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b8d4b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2b19f5&&(_0x4b8d4b['enableDefaultAttributesIntegration']('todoList'),_0x4b8d4b['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b8d4b['registerBlockAttribute']('todoListChecked'),_0x4b8d4b['descriptionFactory']['registerDescriptionCallback'](_0x47bda0=>{const {data:_0xe3633b}=_0x47bda0;if(_0xe3633b&&'todoListChecked'==_0xe3633b['key'])return{'type':'format','content':_0xe3633b['newValue']?o(_0x5a6611,'*Check\x20item*'):o(_0x5a6611,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xdf9283=>{if(_0xdf9283['batch']['isUndo'])return!0x1;let _0x4d25ba=!0x1;const _0x1b8a5a=_0x4b8d4b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cd3ad=>'todoListChecked'===_0x4b8d4b['_getAttributeKey'](_0x5cd3ad));for(const _0x4fccfa of _0x1b8a5a){'todo'!=_0x4fccfa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b8d4b['_findSuggestions'](_0x4fccfa['getFirstRange'](),'attribute')['find'](_0xcce14b=>'listType'===_0x4b8d4b['_getAttributeKey'](_0xcce14b['suggestion']))||(_0xdf9283['removeMarker'](_0x4fccfa['getFirstMarker']()),_0x4d25ba=!0x0));}return _0x4d25ba;})),_0x4b8d4b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5a6611,'FORMAT_INDENT'));const _0x1214aa={'type':'format','content':''};_0x4b8d4b['descriptionFactory']['registerDescriptionCallback'](_0x2a122=>{const {data:_0x56e0e5}=_0x2a122;if(!_0x56e0e5||'listType'!=_0x56e0e5['key'])return;let _0x8f09f4=_0x2a122['head'];for(;_0x8f09f4;){if(_0x8f09f4['data']&&(('listStyle'==_0x8f09f4['data']['key']||'listMarkerStyle'==_0x8f09f4['data']['key'])&&(_0x8f09f4['data']['newValue']&&'default'!=_0x8f09f4['data']['newValue']||'default'!=_0x8f09f4['data']['oldValue']&&!_0x56e0e5['newValue'])||!_0x1d86b1&&_0x8f09f4['data']['key']==m))return _0x1214aa;_0x8f09f4=_0x8f09f4['next'];}if(null==_0x56e0e5['newValue'])switch(_0x56e0e5['oldValue']){case'bulleted':return _0x26d9b6(o(_0x5a6611,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x26d9b6(o(_0x5a6611,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x26d9b6(o(_0x5a6611,'ELEMENT_TODO_LIST'));}switch(_0x56e0e5['newValue']){case'bulleted':return _0x1444a7(o(_0x5a6611,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1444a7(o(_0x5a6611,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1444a7(o(_0x5a6611,'ELEMENT_TODO_LIST'));}}),_0x4b8d4b['descriptionFactory']['registerDescriptionCallback'](_0x23628f=>{const {data:_0x325e71}=_0x23628f;if(_0x325e71&&'listIndent'==_0x325e71['key'])return null==_0x325e71['newValue']||null==_0x325e71['oldValue']&&0x0==_0x325e71['newValue']?_0x1214aa:void 0x0;}),_0x4b8d4b['descriptionFactory']['registerDescriptionCallback'](_0x15a8c5=>{if('attribute'!=_0x15a8c5['type'])return;const {data:_0x15b9cb}=_0x15a8c5;if(!_0x15b9cb||'listItemId'!=_0x15b9cb['key'])return;const _0x40e020=le(_0x15a8c5);return'newValue'==_0x40e020?{'type':'format','content':o(_0x5a6611,'*Merge:*\x20list\x20item')}:'oldValue'==_0x40e020?{'type':'format','content':o(_0x5a6611,'*Split:*\x20list\x20item')}:_0x1214aa;}),_0x35358d['model']['document']['registerPostFixer'](_0x49257a=>this['listItemIdFixer'](_0x49257a)),_0x35358d['model']['document']['registerPostFixer'](_0x3dc572=>this['noTrackChangesFixer'](_0x3dc572)),_0x35358d['model']['document']['registerPostFixer'](_0x427aad=>this['assureChains'](_0x427aad)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4eeddf){if(_0x4eeddf['batch']['isUndo']||!_0x4eeddf['batch']['isLocal'])return!0x1;let _0x594c2c=!0x1;const _0x212365=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e5fac=>_0x2e5fac['data']&&'listItemId'==_0x2e5fac['data']['key'])['filter'](_0x51e098=>_0x51e098['data']['newValue']&&_0x51e098['data']['oldValue']);for(const _0x17573e of _0x212365)le(_0x17573e)||(_0x4eeddf['removeMarker'](_0x17573e['getFirstMarker']()),_0x594c2c=!0x0);return _0x594c2c;}['noTrackChangesFixer'](_0x1ec15a){if(_0x1ec15a['batch']['isUndo']||!_0x1ec15a['batch']['isLocal'])return!0x1;const _0x275564=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x275564['trackChangesCommand']['value'])return!0x1;let _0x4eabe2=!0x1;const _0x3cc045=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x48148c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2efe6a=>'attribute'==_0x2efe6a['type'])['filter'](_0x138cb5=>_0x3cc045['includes'](_0x138cb5['attributeKey']));if(0x0==_0x48148c['length'])return _0x4eabe2;for(const _0xe05152 of _0x48148c){const _0x256678=_0x275564['_findSuggestions'](_0xe05152['range'],'attribute')['filter'](_0x336370=>!_0x336370['meta']['isNextTo'])['map'](_0x58575c=>_0x58575c['suggestion'])['filter'](_0x4b2027=>{const _0x35b3c1=_0x275564['_getAttributeKey'](_0x4b2027);return _0x3cc045['includes'](_0x35b3c1);});if(_0x256678['length']){for(const _0x3608ac of _0x256678)_0x1ec15a['removeMarker'](_0x3608ac['getFirstMarker']());_0x4eabe2=!0x0;}}return _0x4eabe2;}['assureChains'](_0x40c8ea){if(_0x40c8ea['batch']['isUndo']||!_0x40c8ea['batch']['isLocal'])return!0x1;const _0x295d1b=this['editor']['plugins']['get']('TrackChangesEditing');let _0x1e30d4=!0x1;const _0x2a18a8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5a72a7 of _0x295d1b['getSuggestions']({'skipNotAttached':!0x0})){const _0x41f457=_0x295d1b['_findSuggestions'](_0x5a72a7['getFirstRange'](),'attribute')['map'](_0xf691f5=>_0xf691f5['suggestion'])['filter'](_0x4e7aa8=>_0x4e7aa8['data']&&_0x2a18a8['includes'](_0x4e7aa8['data']['key']));if(!_0x41f457['length'])continue;const _0x555426=_0x41f457[0x0]['head']['attributes']['groupId'];if(!_0x41f457['every'](_0x24d4bb=>_0x24d4bb['attributes']['groupId']===_0x555426)){for(const _0x3f81ee of _0x41f457)_0x539c35(_0x3f81ee,_0x555426)&&(_0x1e30d4=!0x0);}}return _0x1e30d4;function _0x103230(_0xc922e6,_0x1a3427){for(const _0x3f4c8e of _0x295d1b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16a4fa=>'attribute'==_0x16a4fa['type']&&_0x16a4fa['attributes']['groupId']==_0xc922e6))_0x3f4c8e['setAttribute']('groupId',_0x1a3427);}function _0x539c35(_0x1209f5,_0x2fba11){let _0x5cb16b=_0x1209f5['head'],_0x3bd330=!0x1;for(;_0x5cb16b;)_0x5cb16b['attributes']['groupId']!=_0x2fba11&&(_0x103230(_0x5cb16b['attributes']['groupId'],_0x2fba11),_0x5cb16b['setAttribute']('groupId',_0x2fba11),_0x3bd330=!0x0),_0x5cb16b=_0x5cb16b['next'];return _0x3bd330;}}['_supportLegacySuggestions'](){const _0x574421=this['editor'],_0x4bf773=_0x574421['locale'],_0x39f719=_0x574421['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x39f719['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5dbba2,_0x3c447c){const _0x18ce13=[];for(let _0x1f2ede of _0x5dbba2)_0x1f2ede['start']['nodeAfter']===_0x1f2ede['end']['parent']&&(_0x1f2ede=_0x574421['model']['createRange'](_0x574421['model']['createPositionAt'](_0x1f2ede['start']['nodeAfter'],0x0))),_0x18ce13['push'](_0x1f2ede);_0x574421['model']['change'](_0x2fd6f0=>{const _0x50e245=_0x574421['model']['document']['selection'],_0x33b560=Array['from'](_0x50e245['getRanges']())['map'](_0x346ee7=>_0x4fddfe['fromRange'](_0x346ee7));_0x2fd6f0['setSelection'](_0x18ce13),_0x574421['commands']['get'](_0x3c447c['commandName'])['refresh'](),_0x3c447c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x574421['execute'](_0x3c447c['commandName'],..._0x3c447c['commandParams']),_0x2fd6f0['setSelection'](_0x33b560);for(const _0x142e2e of _0x33b560)_0x142e2e['detach']();});}),_0x39f719['descriptionFactory']['registerElementLabel'](function(_0x206cdc){const _0x1226ee=!_0x574421['model']['schema']['isObject'](_0x206cdc),_0x2efe45=_0x206cdc['previousSibling'],_0x2ce208=_0x206cdc['nextSibling'],_0x4348e7=_0x206cdc['getAttribute']('listItemId'),_0x48a34a=!_0x2efe45||_0x2efe45['getAttribute']('listItemId')!==_0x4348e7,_0x1a5cb6=!_0x2ce208||_0x2ce208['getAttribute']('listItemId')!==_0x4348e7;return _0x1226ee&&Boolean(_0x4348e7)&&_0x48a34a&&_0x1a5cb6;},_0x2d278c=>o(_0x4bf773,'ELEMENT_LIST_ITEM',_0x2d278c));}['_registerLegacyDescription'](){const _0xc4ab78=this['editor'],_0x17de9a=_0xc4ab78['locale'];function _0x50b34b(_0x4f7a67){const _0x40f04f=_0xc4ab78['commands']['get']('bulletedList')['value'],_0xca5911=_0xc4ab78['commands']['get']('numberedList')['value'];return'numberedList'===_0x4f7a67?_0x40f04f:_0xca5911;}_0xc4ab78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xe366eb){if('formatBlock'!=_0xe366eb['type'])return;const {data:_0x28f1e8}=_0xe366eb;if(!_0x28f1e8)return;let _0x20e509,_0x4a17ef,_0x3215eb,_0x518080;switch(_0x28f1e8['commandName']){case'bulletedList':_0x3215eb=_0x28f1e8['commandParams'][0x0]['forceValue'],_0x518080=_0x50b34b(_0x28f1e8['commandName']),_0x20e509=_0x3215eb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x518080&&_0xc4ab78['config']['get']('list.multiBlock')||(_0x20e509='*Change\x20to:*\x20%0'),_0x4a17ef={'type':'format','content':o(_0x17de9a,_0x20e509,o(_0x17de9a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3215eb=_0x28f1e8['commandParams'][0x0]['forceValue'],_0x518080=_0x50b34b(_0x28f1e8['commandName']),_0x20e509=_0x3215eb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x518080&&_0xc4ab78['config']['get']('list.multiBlock')||(_0x20e509='*Change\x20to:*\x20%0'),_0x4a17ef={'type':'format','content':o(_0x17de9a,_0x20e509,o(_0x17de9a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x20e509='*Indent:*\x20%0',_0x4a17ef={'type':'format','content':o(_0x17de9a,_0x20e509,o(_0x17de9a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x20e509=function(_0x30f527){const _0x1570e5=_0x30f527['getFirstRange']();let _0x5dd0ab=_0x1570e5['start']['nodeAfter'];for(;_0x5dd0ab&&_0x1570e5['containsItem'](_0x5dd0ab);){if(_0x5dd0ab['getAttribute']('listIndent')>0x0)return!0x1;_0x5dd0ab=_0x5dd0ab['nextSibling'];}return!0x0;}(_0xe366eb)?o(_0x17de9a,'*Format:*\x20remove\x20from\x20%0',o(_0x17de9a,function(_0x17671d){return'ELEMENT_'+_0x17671d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xe366eb))):o(_0x17de9a,'*Outdent:*\x20%0',o(_0x17de9a,'ELEMENT_LIST_ITEM')),_0x4a17ef={'type':'format','content':_0x20e509};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x28f1e8['multipleBlocks']&&(_0x20e509='*Merge:*\x20%0',_0x4a17ef={'type':'deletion','content':o(_0x17de9a,_0x20e509,o(_0x17de9a,'ELEMENT_LIST_ITEM'))});}return _0x4a17ef;});}}function le(_0x2396af){let _0x519321=_0x2396af['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x519321;){const _0x3109f2=_0x519321['getAttribute']('listItemId');if(!_0x3109f2)return!0x1;if(_0x3109f2==_0x2396af['data']['newValue'])return'newValue';if(_0x3109f2==_0x2396af['data']['oldValue'])return'oldValue';_0x519321=_0x519321['previousSibling'];}return!0x1;}class ue extends _0xc027b9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x104646=this['editor']['config']['get']('list.properties'),_0x3da7e9=this['editor']['plugins']['get']('TrackChangesEditing');_0x104646['styles']&&(_0x3da7e9['enableDefaultAttributesIntegration']('listStyle'),_0x3da7e9['registerBlockAttribute']('listStyle')),_0x104646['reversed']&&(_0x3da7e9['enableDefaultAttributesIntegration']('listReversed'),_0x3da7e9['registerBlockAttribute']('listReversed')),_0x104646['startIndex']&&(_0x3da7e9['enableDefaultAttributesIntegration']('listStart'),_0x3da7e9['registerBlockAttribute']('listStart'));const _0x31f82f={'type':'format','content':''};_0x3da7e9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x345aca=this['editor']['locale'];_0x3da7e9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x345aca,'FORMAT_LIST_REVERSED')),_0x3da7e9['descriptionFactory']['registerDescriptionCallback'](_0x1bee2c=>{const {data:_0x382d10}=_0x1bee2c;if(_0x382d10&&'listReversed'==_0x382d10['key'])return null==_0x382d10['newValue']||0x0==_0x382d10['newValue']&&null==_0x382d10['oldValue']?_0x31f82f:void 0x0;}),_0x3da7e9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x345aca,'FORMAT_LIST_START')),_0x3da7e9['descriptionFactory']['registerDescriptionCallback'](_0x1c7d57=>{const {data:_0x349960}=_0x1c7d57;if(_0x349960&&'listStart'==_0x349960['key'])return null==_0x349960['newValue']||0x1==_0x349960['newValue']&&null==_0x349960['oldValue']?_0x31f82f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3c927a=>{if(_0x3c927a['batch']['isUndo'])return!0x1;let _0x32da36=!0x1;const _0x259399=_0x3da7e9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x271bce=>{const _0x5b7cb7=_0x3da7e9['_getAttributeKey'](_0x271bce);return'listStart'==_0x5b7cb7||'listReversed'==_0x5b7cb7;});for(const _0xfb7953 of _0x259399){const _0x1122d5=_0xfb7953['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1122d5||'customNumbered'==_0x1122d5)continue;_0x3da7e9['_findSuggestions'](_0xfb7953['getFirstRange'](),'attribute')['find'](_0x55a9d7=>'listType'==_0x3da7e9['_getAttributeKey'](_0x55a9d7['suggestion']))||(_0x3c927a['removeMarker'](_0xfb7953['getFirstMarker']()),_0x32da36=!0x0);}return _0x32da36;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xd67e97){const _0x376498=this['editor']['locale'],{data:_0xfa3d5e}=_0xd67e97,_0x57ccab={'type':'format','content':''};if(!_0xfa3d5e||'listStyle'!=_0xfa3d5e['key'])return;if(!_0xfa3d5e['oldValue'])return'default'==_0xfa3d5e['newValue']?_0x57ccab:{'type':'format','content':''+o(_0x376498,'*Set\x20format:*\x20%0',o(_0x376498,this['_getTranslationKeyForListStyle'](_0xfa3d5e['newValue'])))};if(!_0xfa3d5e['newValue']){if('default'==_0xfa3d5e['oldValue'])return _0x57ccab;let _0xb4800=_0xd67e97['head'];for(;_0xb4800;){if(_0xb4800['data']&&'listType'==_0xb4800['data']['key']&&_0xb4800['data']['newValue'])return _0x57ccab;_0xb4800=_0xb4800['next'];}return{'type':'format','content':''+o(_0x376498,'*Remove\x20format:*\x20%0',o(_0x376498,this['_getTranslationKeyForListStyle'](_0xfa3d5e['oldValue'])))};}if('default'!=_0xfa3d5e['newValue'])return{'type':'format','content':''+o(_0x376498,'*Set\x20format:*\x20%0',o(_0x376498,this['_getTranslationKeyForListStyle'](_0xfa3d5e['newValue'])))};let _0x50031d=_0xd67e97['head'];for(;_0x50031d;){if(_0x50031d['data']&&'listType'==_0x50031d['data']['key']&&_0x50031d['data']['newValue']&&_0x50031d['data']['oldValue'])return _0x57ccab;_0x50031d=_0x50031d['next'];}return{'type':'format','content':o(_0x376498,'*Set\x20format:*\x20%0',o(_0x376498,'ELEMENT_'+_0xd67e97['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x418233=this['editor'],_0x584a2d=_0x418233['locale'];_0x418233['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x450b65=>{if('formatBlock'!=_0x450b65['type'])return;const {data:_0xf0a709}=_0x450b65;if(!_0xf0a709)return;let _0x43b0ae,_0x1e5fe3;switch(_0xf0a709['commandName']){case'listStyle':_0x43b0ae='*Change\x20to:*\x20%0',_0x1e5fe3={'type':'format','content':o(_0x584a2d,_0x43b0ae,o(_0x584a2d,this['_getTranslationKeyForListStyle'](_0xf0a709['commandParams'][0x0]['type'])))};break;case'listReversed':_0x43b0ae=_0xf0a709['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1e5fe3={'type':'format','content':o(_0x584a2d,_0x43b0ae)};break;case'listStart':_0x43b0ae='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1e5fe3={'type':'format','content':o(_0x584a2d,_0x43b0ae,_0xf0a709['commandParams'][0x0]['startIndex'])};}return _0x1e5fe3;});}['_getTranslationKeyForListStyle'](_0x42dab1){return'ELEMENT_'+function(_0x10bd26){if(pe['includes'](_0x10bd26))return'bulleted';if(ye['includes'](_0x10bd26))return'numbered';return null;}(_0x42dab1)['toUpperCase']()+'_LIST_'+_0x42dab1['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0xc027b9{static get['requires'](){return[_0x274ce7];}['init'](){const _0x383583=this['editor'],_0x4e3b43=_0x383583['plugins']['get']('TrackChangesEditing'),_0x4f32dd=_0x383583['commands']['get']('enter');_0x4e3b43['enableCommand']('enter',()=>{_0x383583['model']['change'](_0x31977d=>{const _0x73e57a=_0x383583['model']['document']['selection'],_0x457ac4=_0x73e57a['getFirstPosition'](),_0x35572b=_0x4fddfe['fromRange'](_0x73e57a['getFirstRange']());if(_0x4f32dd['enterBlock'](_0x31977d)){const _0x39e573=_0x383583['model']['createPositionAt'](_0x457ac4['parent']['nextSibling'],0x0),_0x5f2efd=_0x31977d['createRange'](_0x457ac4,_0x39e573);_0x4e3b43['markInsertion'](_0x5f2efd);}else _0x31977d['setSelection'](_0x31977d['createRange'](_0x35572b['end']));_0x35572b['detach'](),_0x4f32dd['fire']('afterExecute',{'writer':_0x31977d});});}),_0x383583['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x383583,'split'),{'priority':'high'}),_0x383583['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x38ffe1,_0x422cec,_0x2f2438)=>{const _0x219c55=_0x2f2438['mapper']['markerNameToElements'](_0x422cec['markerName']);if(_0x219c55){for(const _0x189e48 of _0x219c55)_0x189e48['hasClass']('ck-suggestion-marker-split')&&(_0x2f2438['mapper']['unbindElementFromMarkerName'](_0x189e48,_0x422cec['markerName']),_0x2f2438['writer']['remove'](_0x189e48));}},{'priority':'high'}),_0x383583['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1d1351,_0x585f15,_0x3e8fb9)=>{_0x3e8fb9['options']['showSuggestionHighlights']&&_e(_0x383583,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1d1351,_0x585f15,_0x3e8fb9);},{'priority':'high'});}}class J extends _0xc027b9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4ea5b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ea5b5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4ea5b5['enableCommand']('findNext'),_0x4ea5b5['enableCommand']('findPrevious'),_0x4ea5b5['enableCommand']('replace'),_0x4ea5b5['enableCommand']('replaceAll');}['handleFindCommand'](_0x4ae4b1,_0x34689d,_0x595b90={}){const _0x20ef40=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4ae4b1(_0x5b768a=>('string'==typeof _0x34689d?_0x20ef40['findByTextCallback'](_0x34689d,_0x595b90):_0x34689d)(_0x5b768a)['filter'](_0x112aac=>!0x1===this['_isInDeletionRange'](_0x112aac,_0x5b768a['item'])),_0x595b90);}['_isInDeletionRange'](_0xa8547c,_0x1c70aa){const _0x1e89a0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c70aa,_0xa8547c['start']),this['editor']['model']['createPositionAt'](_0x1c70aa,_0xa8547c['end']));for(const _0x4573f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1e89a0['getIntersection'](_0x4573f['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 _0xc027b9{['afterInit'](){const _0x2bf629=this['editor']['locale'],_0x209777=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1d19d3,commandName:_0x189993}of ro)this['editor']['plugins']['has'](_0x1d19d3)&&(_0x209777['enableDefaultAttributesIntegration'](_0x189993),_0x209777['registerInlineAttribute'](_0x189993));_0x2bf629['t'],_0x209777['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2bf629,'FORMAT_FONT_SIZE')),_0x209777['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2bf629,'FORMAT_FONT_FAMILY')),_0x209777['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2bf629,'FORMAT_FONT_COLOR')),_0x209777['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2bf629,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17c977=this['editor'],_0x9bc530=_0x17c977['locale'];_0x17c977['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd013=>{const _0x8da1ff=_0x9bc530['t'];if('formatInline'!=_0x2bd013['type'])return;const {data:_0x443052}=_0x2bd013;if(null!=_0x443052){if('fontSize'==_0x443052['commandName']){const _0x18061c=_0x443052['commandParams'][0x0]['value'];if(_0x18061c){const _0xb68d42=_0x8da1ff(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5659ab=>_0x5659ab['model']==_0x18061c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x9bc530,'*Set\x20font\x20size:*\x20%0',_0xb68d42)};}return{'type':'format','content':o(_0x9bc530,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x443052['commandName']){const _0x2d9b51=_0x443052['commandParams'][0x0]['value'];return _0x2d9b51?{'type':'format','content':o(_0x9bc530,'*Set\x20font\x20family:*\x20%0',_0x2d9b51)}:{'type':'format','content':o(_0x9bc530,'*Reset\x20font\x20family*')};}if('fontColor'==_0x443052['commandName']){const _0x3d2a57=_0x443052['commandParams'][0x0]['value'];if(_0x3d2a57){const _0x109a94=_0x25542d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x112231=>_0x112231['model']==_0x3d2a57);let _0x326237=_0x3d2a57,_0x21aa62='';return _0x109a94&&(_0x326237=_0x109a94['label'],_0x21aa62=_0x8da1ff(_0x326237)['toLowerCase']()),{'type':'format','content':o(_0x9bc530,'*Set\x20font\x20color:*\x20%0',_0x21aa62)['trim'](),'color':{'value':_0x3d2a57,'title':_0x21aa62||_0x326237}};}return{'type':'format','content':o(_0x9bc530,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x443052['commandName']){const _0x2544c7=_0x443052['commandParams'][0x0]['value'];if(_0x2544c7){const _0x464576=_0x25542d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x357157=>_0x357157['model']==_0x2544c7);let _0x5287b0=_0x2544c7,_0x2d780b='';return _0x464576&&(_0x5287b0=_0x464576['label'],_0x2d780b=_0x8da1ff(_0x5287b0)['toLowerCase']()),{'type':'format','content':o(_0x9bc530,'*Set\x20font\x20background\x20color:*\x20%0',_0x2d780b)['trim'](),'color':{'value':_0x2544c7,'title':_0x2d780b||_0x5287b0}};}return{'type':'format','content':o(_0x9bc530,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0xc027b9{['afterInit'](){const _0x275f23=this['editor'],_0x591cbd=_0x275f23['plugins']['get']('TrackChangesEditing'),_0x1bd342=_0x275f23['commands']['get']('copyFormat'),_0x404653=_0x275f23['commands']['get']('pasteFormat');_0x1bd342&&_0x404653&&(_0x591cbd['enableDefaultAttributesIntegration']('pasteFormat'),_0x591cbd['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x27360d=this['editor'],_0x2b900d=_0x27360d['locale'];_0x27360d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dcf0f=>{if('formatBlock'!=_0x3dcf0f['type']&&'formatInline'!=_0x3dcf0f['type'])return;const {data:_0x51ed73}=_0x3dcf0f;if(_0x51ed73&&'pasteFormat'===_0x51ed73['commandName']){const _0x8a89ad=[],_0x546d14=_0x51ed73['commandParams'][0x0];for(const [_0x14940e,_0x4509a9]of Object['entries'](_0x546d14))_0x8a89ad['push'](so(_0x27360d,_0x14940e,_0x4509a9));return _0x8a89ad['length']?{'type':'format','content':o(_0x2b900d,'*Set\x20format\x20to:*\x20%0',_0x8a89ad['join'](',\x20'))}:{'type':'format','content':o(_0x2b900d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x400b51,_0x1ae43b,_0x177e48){const _0x47f649=_0x400b51['locale']['t'],_0x50468b=_0x1ae43b['split'](/(?=[A-Z])/)['join']('\x20'),_0x19ae3c=_0x47f649(_0x50468b['charAt'](0x0)['toUpperCase']()+_0x50468b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x177e48)return _0x19ae3c;if('fontColor'===_0x1ae43b||'fontBackgroundColor'===_0x1ae43b){const _0x522fc3=_0x25542d(_0x400b51['config']['get']('fontColor.colors'))['find'](_0x596a1b=>_0x596a1b['model']==_0x177e48);return _0x19ae3c+'\x20('+(_0x522fc3?_0x47f649(_0x522fc3['label'])['toLowerCase']():_0x177e48)+')';}if('fontSize'===_0x1ae43b&&isNaN(parseFloat(_0x177e48))){const _0x3081bc=_0x400b51['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x400b51['config']['get']('fontSize.options'))['find'](_0x3e60e0=>_0x3e60e0['model']==_0x177e48);return _0x19ae3c+'\x20('+(_0x3081bc?_0x47f649(_0x3081bc['title'])['toLowerCase']():_0x177e48)+')';}return _0x19ae3c+'\x20('+_0x177e48+')';}class Y extends _0xc027b9{['_headingOptions'];['afterInit'](){const _0x505045=this['editor'];if(!_0x505045['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x505045['config']['get']('heading.options');const _0x1e5487=_0x505045['locale'],_0x51d7af=_0x505045['plugins']['get']('TrackChangesEditing');_0x51d7af['enableDefaultAttributesIntegration']('heading');for(const _0x14d44b of this['_headingOptions'])'paragraph'!=_0x14d44b['model']&&_0x51d7af['descriptionFactory']['registerElementLabel'](_0x14d44b['model'],_0x35c660=>{const _0x59b428=this['_getHeadingLevel'](_0x14d44b['model']);return null!==_0x59b428?_0x5880da(_0x35c660,_0x59b428):_0x4aba90(_0x35c660,_0x14d44b['title']);});function _0x5880da(_0x11e1f2,_0x5387c1){return o(_0x1e5487,'ELEMENT_HEADING',[_0x11e1f2,_0x5387c1]);}function _0x4aba90(_0x3eb86c,_0x597e1d){return o(_0x1e5487,'ELEMENT_HEADING_CUSTOM',[_0x3eb86c,_0x597e1d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x343cbb=this['editor'],_0x27b0d3=_0x343cbb['locale'];function _0x285008(_0x4a66e3,_0x48267d){return o(_0x27b0d3,'ELEMENT_HEADING_CUSTOM',[_0x4a66e3,_0x48267d]);}_0x343cbb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32611f=>{if('formatBlock'!=_0x32611f['type'])return;const {data:_0x376c17}=_0x32611f;if(_0x376c17&&'heading'==_0x376c17['commandName']){const _0x3de46e=_0x376c17['commandParams'][0x0]['value'],_0x5d670c=this['_getHeadingLevel'](_0x3de46e);if(null!==_0x5d670c)return{'type':'format','content':o(_0x27b0d3,'*Change\x20to:*\x20%0',(_0x3ac289=0x1,_0x49d2af=_0x5d670c,o(_0x27b0d3,'ELEMENT_HEADING',[_0x3ac289,_0x49d2af])))};const _0x832f64=this['_headingOptions']['find'](_0x5d4262=>_0x5d4262['model']===_0x3de46e)['title'];return{'type':'format','content':o(_0x27b0d3,'*Change\x20to:*\x20%0',_0x285008(0x1,_0x832f64))};}var _0x3ac289,_0x49d2af;});}['_getHeadingLevel'](_0x4387f1){const _0x381a78=_0x4387f1['match'](/^heading(\d+)/);if(_0x381a78)return _0x381a78[0x1];const _0x22a979=this['_headingOptions']?.['find'](_0x3c0eb1=>_0x3c0eb1['model']==_0x4387f1);if(_0x22a979&&_0x22a979['view']){const _0x45a9d4=_0x22a979['view'],_0x21f789=(_0x45a9d4['name']??_0x45a9d4)['match'](/^h(\d+)/);if(_0x21f789)return _0x21f789[0x1];}return null;}}class Z extends _0xc027b9{['afterInit'](){const _0x3a0804=this['editor'];if(!_0x3a0804['plugins']['has']('HighlightEditing'))return;const _0x449c=_0x3a0804['plugins']['get']('TrackChangesEditing'),_0x141404=_0x3a0804['locale'];_0x449c['enableDefaultAttributesIntegration']('highlight'),_0x449c['registerInlineAttribute']('highlight'),_0x449c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x141404,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcd414c=this['editor'],_0xee7d72=_0xcd414c['locale'];_0xcd414c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59ca5c=>{if('formatInline'!=_0x59ca5c['type'])return;const {data:_0x9471dd}=_0x59ca5c;if(_0x9471dd&&'highlight'==_0x9471dd['commandName']){const _0x3dab62=_0xee7d72['t'],_0x592fcc=_0x9471dd['commandParams'][0x0]['value'];if(_0x592fcc){const _0x52244d=_0xcd414c['config']['get']('highlight.options')['find'](_0x4b160c=>_0x4b160c['model']==_0x592fcc),_0x1e1d6d=_0x3dab62(_0x52244d['title'])['toLowerCase']();return{'type':'format','content':o(_0xee7d72,'*Set\x20highlight:*\x20%0',_0x1e1d6d),'color':{'value':_0x52244d['color'],'title':_0x52244d['title']}};}return{'type':'format','content':o(_0xee7d72,'*Remove\x20highlight*',o(_0xee7d72,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0xc027b9{['afterInit'](){const _0x3b1cd2=this['editor'];if(!_0x3b1cd2['plugins']['has']('HorizontalLineEditing'))return;_0x3b1cd2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x174338=_0x3b1cd2['plugins']['get']('TrackChangesEditing'),_0x100188=_0x3b1cd2['locale'];_0x174338['descriptionFactory']['registerElementLabel']('horizontalLine',_0x245572=>o(_0x100188,'ELEMENT_HORIZONTAL_LINE',_0x245572)),_0x3b1cd2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x38b6d5,{writer:_0x548374,options:_0x57edb3})=>{if(!_0x57edb3['showSuggestionHighlights'])return null;const _0x357468=_0x548374['createContainerElement']('div'),_0x2d89df=_0x548374['createEmptyElement']('hr');return _0x548374['addClass']('ck-horizontal-line',_0x357468),_0x548374['insert'](_0x548374['createPositionAt'](_0x357468,0x0),_0x2d89df),_0x357468;},'converterPriority':'high'});}}class et extends _0xc027b9{['afterInit'](){const _0x15cc12=this['editor'];if(!_0x15cc12['plugins']['has']('HtmlEmbed'))return;const _0x564f43=_0x15cc12['plugins']['get']('TrackChangesEditing'),_0x279ab0=_0x15cc12['locale'];_0x564f43['descriptionFactory']['registerElementLabel']('rawHtml',_0x1ab5dd=>o(_0x279ab0,'ELEMENT_HTML_EMBED',_0x1ab5dd)),_0x564f43['enableDefaultAttributesIntegration']('htmlEmbed'),_0x564f43['registerBlockAttribute']('value'),_0x564f43['descriptionFactory']['registerDescriptionCallback'](_0x3b765a=>{if('attribute'!=_0x3b765a['type'])return;const {data:_0x197a4d}=_0x3b765a;if(_0x197a4d&&'value'==_0x197a4d['key']&&_0x3b765a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b35ee=o(_0x279ab0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x279ab0,'*Change\x20%0\x20content*',_0x2b35ee)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd767b9=this['editor'],_0x153d96=_0xd767b9['locale'];_0xd767b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x276913=>{if('formatBlock'!=_0x276913['type'])return;const {data:_0x1abbd1}=_0x276913;if(_0x1abbd1&&'htmlEmbed'==_0x1abbd1['commandName']){const _0x20500e=o(_0x153d96,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x153d96,'*Change\x20%0\x20content*',_0x20500e)};}});}}class it extends _0xc027b9{['afterInit'](){const _0x2e7439=this['editor'];if(!_0x2e7439['plugins']['has']('ImageEditing'))return;const _0x2d0061=_0x2e7439['plugins']['get']('TrackChangesEditing'),_0x2d3896=_0x2e7439['plugins']['get']('ImageUtils'),_0x2581f2=_0x2e7439['locale'];_0x2d0061['enableCommand']('insertImage'),_0x2d0061['descriptionFactory']['registerElementLabel']('imageBlock',_0x45e824=>o(_0x2581f2,'ELEMENT_IMAGE',_0x45e824)),_0x2d0061['descriptionFactory']['registerElementLabel']('imageInline',_0x48cabb=>o(_0x2581f2,'ELEMENT_INLINE_IMAGE',_0x48cabb)),_0x2d0061['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2581f2,'ELEMENT_CAPTION')),_0x2e7439['plugins']['has']('ImageUploadEditing')&&_0x2d0061['enableCommand']('uploadImage'),_0x2e7439['plugins']['has']('ImageBlockEditing')&&_0x2e7439['plugins']['has']('ImageInlineEditing')&&(_0x2d0061['enableCommand']('imageTypeInline',(_0x15cd7e,_0x1b0ff9)=>{const _0x585503=_0x2d3896['getClosestSelectedImageElement'](_0x2e7439['model']['document']['selection']);_0x2e7439['model']['change'](()=>{_0x2d0061['markBlockFormat'](_0x585503,{'commandName':'imageTypeInline','commandParams':[_0x1b0ff9]},[],'convertBlockImageToInline');});}),_0x2d0061['enableCommand']('imageTypeBlock',(_0x3d24ec,_0x5c9522)=>{_0x2e7439['model']['change'](_0x4bf124=>{let _0x13a49b=_0x2d3896['getClosestSelectedImageElement'](_0x2e7439['model']['document']['selection']),_0x5cba4b=_0x4bf124['createRangeOn'](_0x13a49b);const _0x3889d9=_0x4e3752['fromPosition'](_0x5cba4b['start'],'toPrevious'),_0xf897c2=_0x4e3752['fromPosition'](_0x5cba4b['end'],'toNext');_0x2d0061['forceDefaultExecution'](()=>_0x3d24ec(_0x5c9522)),_0x13a49b=_0x2d3896['getClosestSelectedImageElement'](_0x2e7439['model']['document']['selection']),_0x5cba4b=_0x4bf124['createRangeOn'](_0x13a49b);const _0x5e8825=_0x4bf124['createRange'](_0x3889d9,_0xf897c2);_0x3889d9['detach'](),_0xf897c2['detach'](),_0x2d0061['markBlockFormat'](_0x13a49b,{'commandName':'imageTypeInline','commandParams':[_0x5c9522]},[],'convertInlineImageToBlock'),_0x5e8825['start']['isBefore'](_0x5cba4b['start'])&&_0x2d0061['markInsertion'](_0x4bf124['createRange'](_0x5e8825['start'],_0x5cba4b['start']),'convertInlineImageToBlock'),_0x5cba4b['end']['isBefore'](_0x5e8825['end'])&&_0x2d0061['markInsertion'](_0x4bf124['createRange'](_0x5cba4b['end'],_0x5e8825['end']),'convertInlineImageToBlock');});}),_0x2d0061['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2d0061['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2d0061['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2d0061['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2d0061['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2d0061['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4721db])=>{const _0x38dfdf=_0x2d0061['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xef4f04=_0x4721db['start'],_0x5377b9=_0x4721db['end'];const _0x309615=_0x2e7439['model']['schema']['getNearestSelectionRange'](_0xef4f04,'backward'),_0x59676d=_0x2e7439['model']['schema']['getNearestSelectionRange'](_0x5377b9,'forward');_0x309615['isCollapsed']&&(_0xef4f04=_0x309615['start']),_0x59676d['isCollapsed']&&(_0x5377b9=_0x59676d['end']),_0x38dfdf([_0x2e7439['model']['createRange'](_0xef4f04,_0x5377b9)]);}),_0x2d0061['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x20db53),_0x2d0061['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x20db53)),_0x2e7439['plugins']['has']('ImageCaptionEditing')&&(_0x2d0061['enableCommand']('toggleImageCaption',(_0x1665a0,_0x15b854)=>{const _0x16d60a=_0x2e7439['plugins']['get']('ImageCaptionUtils');let _0x115a64=_0x2d3896['getClosestSelectedImageElement'](_0x2e7439['model']['document']['selection']),_0x147756=_0x16d60a['getCaptionFromImageModelElement'](_0x115a64);_0x2e7439['model']['change'](()=>{if(_0x147756)return void _0x2d0061['markDeletion'](_0x2e7439['model']['createRangeOn'](_0x147756));const _0x54169b=_0x2d3896['isBlockImage'](_0x115a64);_0x1665a0(_0x15b854),_0x115a64=_0x2d3896['getClosestSelectedImageElement'](_0x2e7439['model']['document']['selection']),_0x147756=_0x16d60a['getCaptionFromImageModelElement'](_0x115a64),_0x2d0061['markInsertion'](_0x2e7439['model']['createRangeOn'](_0x147756),_0x54169b?null:'imageCaption');});}),_0x2d0061['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x20db53));const _0x3091e2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x37a8bc(_0xf79f28,_0x6b249a){const _0x94dbc0=_0x3091e2['findIndex'](({type:_0x58a38b,subType:_0x6463f9})=>_0xf79f28['type']==_0x58a38b&&_0xf79f28['subType']==_0x6463f9),_0x3bdf00=_0x3091e2['findIndex'](({type:_0x23e30a,subType:_0x15da90})=>_0x6b249a['type']==_0x23e30a&&_0x6b249a['subType']==_0x15da90);if(_0x94dbc0<0x0||_0x3bdf00<0x0)return!0x1;const _0x31a355=_0xf79f28['getFirstRange'](),_0x2468cc=_0x6b249a['getFirstRange']();if((0x0==_0x94dbc0||0x1==_0x94dbc0)&&0x2==_0x3bdf00&&_0x31a355['isIntersecting'](_0x2468cc))return!0x0;if(0x2==_0x94dbc0&&0x3==_0x3bdf00){const _0x437692=_0x2d0061['_findSuggestions'](_0x31a355,'insertion')['filter'](({suggestion:_0x4571a3,meta:_0x28b814})=>_0x28b814['isOwn']&&'convertInlineImageToBlock'==_0x4571a3['subType']);if(_0x437692['length']>0x1&&_0x2468cc['end']['isEqual'](_0x31a355['start']))return!0x0;if(0x1==_0x437692['length']&&(_0x31a355['start']['isEqual'](_0x2468cc['end'])||_0x31a355['end']['isEqual'](_0x2468cc['start'])))return!0x0;}if(0x3==_0x94dbc0&&0x3==_0x3bdf00&&_0x31a355['start']['isBefore'](_0x2468cc['start'])){const _0x336a11=_0x31a355['end']['nodeAfter'],_0x50b756=_0x2468cc['start']['nodeBefore'];return _0x2d3896['isBlockImage'](_0x336a11)&&_0x336a11===_0x50b756;}return!0x1;}function _0x20db53(_0x198369,_0x35f912){return _0x37a8bc(_0x198369,_0x35f912)?[_0x198369,_0x35f912]:_0x37a8bc(_0x35f912,_0x198369)?[_0x35f912,_0x198369]:null;}_0x2e7439['plugins']['has']('ImageResize')&&(_0x2d0061['enableDefaultAttributesIntegration']('resizeImage'),_0x2d0061['registerBlockAttribute']('resizedWidth'),_0x2d0061['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2581f2,'FORMAT_IMAGE_SIZE'))),_0x2e7439['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2d0061['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2d0061['registerBlockAttribute']('alt')),_0x2d0061['descriptionFactory']['registerDescriptionCallback'](_0x1526f1=>{if(!!_0x3091e2['find'](({type:_0x16634c,subType:_0xd2b2c0})=>_0x1526f1['type']==_0x16634c&&_0x1526f1['subType']==_0xd2b2c0))return _0x1526f1['previous']?{}:void 0x0;}),_0x2d0061['descriptionFactory']['registerDescriptionCallback'](_0x49ac08=>{if('insertion'==_0x49ac08['type']||'deletion'==_0x49ac08['type']){const _0x5f3520=_0x49ac08['getContainedElement']();if(_0x5f3520&&_0x5f3520['is']('element','caption'))return{'type':'insertion'==_0x49ac08['type']?'addObject':'removeObject','element':_0x5f3520,'quantity':0x1};}}),_0x2d0061['descriptionFactory']['registerDescriptionCallback'](_0x3ff9c3=>'formatBlock'==_0x3ff9c3['type']&&'convertInlineImageToBlock'==_0x3ff9c3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3ff9c3['type']&&'convertBlockImageToInline'==_0x3ff9c3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2d0061['descriptionFactory']['registerDescriptionCallback'](_0x41e2e6=>{if('attribute'!=_0x41e2e6['type'])return;const {data:_0x283fcd}=_0x41e2e6;if(!_0x283fcd||'alt'!=_0x283fcd['key'])return;const _0x547849=_0x283fcd['newValue'];return _0x547849?{'type':'format','content':o(_0x2581f2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x547849+'\x22')}:{'type':'format','content':o(_0x2581f2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4253da=this['editor'],_0x59ecf0=_0x4253da['locale'];_0x4253da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50d2b6=>{if('formatBlock'!=_0x50d2b6['type']&&'formatInline'!=_0x50d2b6['type'])return;const {data:_0x33c4c4}=_0x50d2b6;if(_0x33c4c4){if('imageTextAlternative'==_0x33c4c4['commandName']){const _0x36bd0e=_0x33c4c4['commandParams'][0x0]['newValue'];return _0x36bd0e?{'type':'format','content':o(_0x59ecf0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36bd0e+'\x22')}:{'type':'format','content':o(_0x59ecf0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x33c4c4['commandName']){const _0xfe1128=_0x33c4c4['commandParams'][0x0]['width'];return _0xfe1128?{'type':'format','content':o(_0x59ecf0,'*Set\x20image\x20width:*\x20%0',_0xfe1128)}:{'type':'format','content':o(_0x59ecf0,'*Reset\x20image\x20width*')};}}});}}class st extends _0xc027b9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2d14f0=this['editor']['locale'],_0x4ff91f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ff91f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4ff91f['registerBlockAttribute']('src'),_0x4ff91f['descriptionFactory']['registerDescriptionCallback'](_0x19c08a=>{if('attribute'!=_0x19c08a['type'])return;const {data:_0x1509e9}=_0x19c08a;return _0x1509e9&&'src'==_0x1509e9['key']?_0x1509e9['newValue']&&_0x1509e9['oldValue']?{'type':'format','content':o(_0x2d14f0,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fb71a=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fb71a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4fb71a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fb71a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4fb71a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e00a2=this['editor'],_0x4ef370=_0x4e00a2['locale'];_0x4e00a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c1b78=>{if('formatBlock'!=_0x5c1b78['type']&&'formatInline'!=_0x5c1b78['type'])return;const {data:_0x4bfb59}=_0x5c1b78;if(!_0x4bfb59||'replaceImageSource'!=_0x4bfb59['commandName'])return;return{'type':'format','content':o(_0x4ef370,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0xc027b9{['afterInit'](){const _0x54639e=this['editor'];if(!_0x54639e['plugins']['has']('ImageStyleEditing'))return;const _0x1138e7=_0x54639e['plugins']['get']('TrackChangesEditing'),_0x44d6d2=_0x54639e['plugins']['get']('ImageUtils'),_0x4cf6da={};_0x1138e7['enableCommand']('imageStyle',(_0x3f5d8b,_0x3b7c0f)=>{const _0x1ec3e4=_0x54639e['plugins']['get']('Users')['me'],_0x419abc=_0x54639e['commands']['get']('imageStyle');let _0x28b663=_0x44d6d2['getClosestSelectedImageElement'](_0x54639e['model']['document']['selection']),_0x57cf79=_0x54639e['model']['createRangeOn'](_0x28b663),_0xcc2741=_0x419abc['value'];if(_0xcc2741==_0x3b7c0f['value'])return;const _0x453bf9={'commandName':'imageStyle','commandParams':[_0x3b7c0f],'formatGroupId':_0x12a8c4()};_0x54639e['model']['change'](()=>{if(_0x1138e7['getSuggestions']()['filter'](_0x70a0fa=>_0x70a0fa['isInContent']&&_0x1ec3e4==_0x70a0fa['author']&&('formatBlock'==_0x70a0fa['type']||'formatInline'==_0x70a0fa['type'])&&('imageStylePreApply'==_0x70a0fa['subType']||'imageStylePostApply'==_0x70a0fa['subType'])&&_0x70a0fa['getFirstRange']()['isEqual'](_0x57cf79))['forEach'](_0x522fe6=>_0x1138e7['discardSuggestion'](_0x522fe6['head'])),_0x28b663=_0x44d6d2['getClosestSelectedImageElement'](_0x54639e['model']['document']['selection']),_0x57cf79=_0x54639e['model']['createRangeOn'](_0x28b663),_0x419abc['refresh'](),_0x54639e['commands']['get']('imageTypeInline')['refresh'](),_0x54639e['commands']['get']('imageTypeBlock')['refresh'](),_0xcc2741=_0x419abc['value'],_0xcc2741!=_0x3b7c0f['value'])return _0x44d6d2['isInlineImage'](_0x28b663)&&_0x419abc['shouldConvertImageType'](_0x3b7c0f['value'],_0x28b663)?(_0x3f5d8b({..._0x3b7c0f,'setImageSizes':!0x1}),_0x28b663=_0x44d6d2['getClosestSelectedImageElement'](_0x54639e['model']['document']['selection']),void _0x1138e7['markBlockFormat'](_0x28b663,{..._0x453bf9,'commandReversedParams':[{'value':_0xcc2741||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x44d6d2['isBlockImage'](_0x28b663)?_0x1138e7['markBlockFormat'](_0x28b663,_0x453bf9,[],'imageStylePostApply'):_0x1138e7['markInlineFormat'](_0x57cf79,_0x453bf9,'imageStylePostApply'));});});for(const _0x6803d2 of _0x54639e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4cf6da[_0x6803d2['name']]=_0x6803d2['title']['toLowerCase']();_0x1138e7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1138e7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1138e7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1138e7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x31f72f])=>{_0x44d6d2['setImageNaturalSizeAttributes'](_0x31f72f['getContainedElement']());}),_0x1138e7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3243e2,_0x41ba8c)=>{_0x1138e7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3243e2,{'commandName':_0x41ba8c['commandName'],'commandParams':_0x41ba8c['commandReversedParams']});}),_0x1138e7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x16678c,_0x2d15f8){if(_0x38fd79(_0x16678c,_0x2d15f8))return[_0x16678c,_0x2d15f8];if(_0x38fd79(_0x2d15f8,_0x16678c))return[_0x2d15f8,_0x16678c];return null;});const _0x504e3a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x38fd79(_0x937347,_0x703ab4){const _0x509438=_0x504e3a['findIndex'](({type:_0x275c20,subType:_0x3d9e2d})=>_0x937347['type']==_0x275c20&&_0x937347['subType']==_0x3d9e2d),_0x18018d=_0x504e3a['findIndex'](({type:_0x2435ef,subType:_0x15bb9f})=>_0x703ab4['type']==_0x2435ef&&_0x703ab4['subType']==_0x15bb9f);if(_0x509438<0x0||_0x18018d<0x0)return!0x1;const _0x22a46b=_0x937347['getFirstRange'](),_0x52badf=_0x703ab4['getFirstRange']();if((0x0==_0x509438||0x1==_0x509438)&&0x2==_0x18018d&&_0x22a46b['isIntersecting'](_0x52badf))return!0x0;if(0x2==_0x509438&&0x3==_0x18018d){const _0x157495=_0x1138e7['_findSuggestions'](_0x22a46b,'insertion')['filter'](({suggestion:_0xc263f5,meta:_0x4a5bb7})=>_0x4a5bb7['isOwn']&&'convertInlineImageToBlock'==_0xc263f5['subType']);if(_0x157495['length']>0x1&&_0x52badf['end']['isEqual'](_0x22a46b['start']))return!0x0;if(0x1==_0x157495['length']&&(_0x22a46b['start']['isEqual'](_0x52badf['end'])||_0x22a46b['end']['isEqual'](_0x52badf['start'])))return!0x0;}if(0x3==_0x509438&&0x3==_0x18018d&&_0x22a46b['start']['isBefore'](_0x52badf['start'])){const _0x1f84f9=_0x22a46b['end']['nodeAfter'],_0x2e0e34=_0x52badf['start']['nodeBefore'];return _0x44d6d2['isBlockImage'](_0x1f84f9)&&_0x1f84f9===_0x2e0e34;}return!0x1;}_0x54639e['model']['document']['registerPostFixer'](()=>{let _0x5e78a2=!0x1;const _0x4944a6=Array['from'](_0x54639e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x360780,data:_0x4f69dd}of _0x4944a6){const {group:_0x2142e1,type:_0xbc2db9,subType:_0x1cc26c,id:_0x50d244}=_0x1138e7['_splitMarkerName'](_0x360780);if('suggestion'==_0x2142e1&&_0x1138e7['hasSuggestion'](_0x50d244)){if('formatBlock'==_0xbc2db9&&('imageStylePreApply'==_0x1cc26c||'imageStylePostApply'==_0x1cc26c)){const _0x140264=_0x1138e7['getSuggestion'](_0x50d244);if(_0x4f69dd['newRange']){const _0xd906ea=_0x140264['getFirstRange']()['getContainedElement']();if(_0x44d6d2['isBlockImage'](_0xd906ea))continue;_0x1138e7['discardSuggestion'](_0x140264),_0x5e78a2=!0x0;}}if('insertion'==_0xbc2db9&&'imageCaption'==_0x1cc26c&&!_0x4f69dd['newRange']){const _0x4dc67b=_0x1138e7['getSuggestion'](_0x50d244);_0x4dc67b['next']&&_0x4dc67b['next']['isInContent']&&(_0x1138e7['discardSuggestion'](_0x4dc67b['next']),_0x5e78a2=!0x0);}}}return _0x5e78a2;}),this['_registerLegacyDescription'](_0x4cf6da);}['_registerLegacyDescription'](_0x375369){const _0x3206cf=this['editor'],_0x17e11c=_0x3206cf['locale'];_0x3206cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dcb7f=>{if('formatBlock'!=_0x5dcb7f['type']&&'formatInline'!=_0x5dcb7f['type'])return;const {data:_0x1bffe9}=_0x5dcb7f;if(!_0x1bffe9||'imageStyle'!=_0x1bffe9['commandName'])return;const _0x503c25=_0x1bffe9['commandParams'][0x0]['value'];return _0x39ea78('side'===_0x503c25?o(_0x17e11c,'FORMAT_SIDE_IMAGE'):_0x375369[_0x503c25]||_0x503c25);function _0x39ea78(_0x1c7682){return{'type':'format','content':o(_0x17e11c,'*Format:*\x20%0',_0x1c7682)};}});}}class ot extends _0xc027b9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x30993c){super(_0x30993c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x346b98=this['editor'],_0x21446b=_0x346b98['commands']['get']('importWord'),_0xfc0693=_0x346b98['commands']['get']('trackChanges');_0x21446b&&(_0x21446b['on']('execute',(_0x597661,[,_0x3732bf])=>{this['_trackChangesValueDuringImport']=_0xfc0693['value'],_0x3732bf['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x21446b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x21446b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xfc0693['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x346b98['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2f707f,_0x4239e3){const {suggestions:_0x419fec}=_0x4239e3,_0x34a3e5=this['editor']['commands']['get']('trackChanges'),_0x2edfb0=_0x34a3e5['value'];this['_trackChangesValueDuringImport']!==_0x2edfb0&&(_0x34a3e5['execute'](),this['_trackChangesExecuted']=!0x0),_0x419fec&&_0x419fec['forEach'](({id:_0x4a41ba,type:_0x4cd1e7,author:_0x18cc0d,created_at:_0x5f5a06})=>{const _0x5535bd={'id':_0x4a41ba,'type':_0x4cd1e7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x18cc0d,'createdAt':_0x5f5a06?new Date(_0x5f5a06):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5535bd);});}}class rt extends _0xc027b9{['afterInit'](){const _0x5562ac=this['editor'],_0x4142cb=_0x5562ac['plugins']['get']('TrackChangesEditing');if(_0x5562ac['plugins']['has']('IndentEditing')&&(_0x4142cb['enableCommand']('indent'),_0x4142cb['enableCommand']('outdent')),_0x5562ac['plugins']['has']('IndentBlock')){for(const _0x4e22f5 of['indentBlock','outdentBlock'])_0x4142cb['enableDefaultAttributesIntegration'](_0x4e22f5);}const _0x3c7ebb=_0x5562ac['locale'];_0x4142cb['registerBlockAttribute']('blockIndent'),_0x4142cb['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3c7ebb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fb8e1=this['editor'],_0x28d85f=_0x4fb8e1['locale'],_0x1cceae=_0x4fb8e1['plugins']['get']('TrackChangesEditing');_0x1cceae['descriptionFactory']['registerDescriptionCallback'](_0x3086c3=>{if('formatBlock'!=_0x3086c3['type'])return;const {data:_0x49f894}=_0x3086c3;if(!_0x49f894)return;if('indentBlock'!=_0x49f894['commandName']&&'outdentBlock'!=_0x49f894['commandName'])return;const _0x19de06=_0x3086c3['getItems']()[0x0],_0x4076c8=_0x1cceae['descriptionFactory']['getItemLabel'](_0x19de06);return'indentBlock'==_0x49f894['commandName']?{'type':'format','content':o(_0x28d85f,'*Indent:*\x20%0',_0x4076c8)}:'outdentBlock'==_0x49f894['commandName']?{'type':'format','content':o(_0x28d85f,'*Outdent:*\x20%0',_0x4076c8)}:void 0x0;});}}class at extends _0xc027b9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0xc027b9{['afterInit'](){const _0x4ef481=this['editor'];if(!_0x4ef481['plugins']['has']('LinkEditing'))return;const _0x477108=_0x4ef481['plugins']['get']('TrackChangesEditing'),_0x5d6806=_0x4ef481['commands']['get']('link');_0x477108['enableDefaultAttributesIntegration']('link'),_0x477108['enableDefaultAttributesIntegration']('unlink'),_0x477108['registerInlineAttribute']('linkHref');for(const _0x339aea of _0x5d6806['manualDecorators'])_0x477108['registerInlineAttribute'](_0x339aea['id']),_0x477108['descriptionFactory']['registerAttributeLabel'](_0x339aea['id'],'link\x20('+_0x339aea['label']['toLowerCase']()+')');_0x477108['descriptionFactory']['registerDescriptionCallback'](_0x16ba1e=>{if('attribute'!=_0x16ba1e['type'])return;const {data:_0x1001db}=_0x16ba1e;if(!_0x1001db||'linkHref'!=_0x1001db['key'])return;const _0x530295=_0x1001db['newValue'],_0x54d16=_0x4ef481['locale'];return{'type':'format','content':null==_0x530295?o(_0x54d16,'*Remove\x20link*'):o(_0x54d16,'*Set\x20link:*\x20%0','\x22'+_0x530295+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12353d=this['editor'],_0x377308=_0x12353d['locale'];_0x12353d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e7af5=>{if('formatInline'!=_0x1e7af5['type'])return;const {data:_0xbaa3d5}=_0x1e7af5;if(_0xbaa3d5){if('link'==_0xbaa3d5['commandName']){const _0x2c61db=_0xbaa3d5['commandParams'][0x0];return{'type':'format','content':o(_0x377308,'*Set\x20link:*\x20%0','\x22'+_0x2c61db+'\x22')};}return'unlink'==_0xbaa3d5['commandName']?{'type':'format','content':o(_0x377308,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0xc027b9{['afterInit'](){const _0x5b7974=this['editor'],_0x139236=_0x5b7974['locale'];if(!_0x5b7974['plugins']['has']('LegacyListEditing'))return;const _0x122382=_0x5b7974['plugins']['get']('TrackChangesEditing'),_0x3343ff=_0x5b7974['plugins']['has']('LegacyTodoListEditing');function _0x51d2ff(_0xdbb690){return()=>{const _0x2b2f37=_0x5b7974['model']['document']['selection'],_0xc98be6=_0x5b7974['commands']['get'](_0xdbb690);if(_0xc98be6['value'])return void _0x5b7974['execute']('paragraph',{});const _0x3611fe=_0xdbb690['slice'](0x0,-0x4),_0x51919=function(_0x368c0f,_0x14097c,_0xc3d141){let _0x1e2b2c=Array['from'](_0x368c0f)['filter'](_0x42ca28=>function(_0x5e0447,_0x4d4d38){return _0x4d4d38['checkChild'](_0x5e0447['parent'],'listItem')&&!_0x4d4d38['isObject'](_0x5e0447);}(_0x42ca28,_0xc3d141));_0x1e2b2c=_0x1e2b2c['filter'](_0x125b80=>!_0x125b80['is']('element','listItem')||_0x125b80['getAttribute']('listType')!=_0x14097c);const _0xe279b7=new Set();for(const _0x294228 of _0x1e2b2c)_0x294228['is']('element','listItem')?_0xe279b7['add'](me(_0x294228)):_0xe279b7['add'](_0x294228);return Array['from'](_0xe279b7);}(_0x2b2f37['getSelectedBlocks'](),_0x3611fe,_0x5b7974['model']['schema']);_0x5b7974['model']['change'](()=>{for(const _0x596f61 of _0x51919)_0x122382['markBlockFormat'](_0x596f61,{'commandName':_0xdbb690,'commandParams':[{'forceValue':!_0xc98be6['value']}],'formatGroupId':'blockName'},fe(_0x596f61));});};}function _0x4e39a1(_0x2ec77d){return()=>{const _0x2bd33d=function(_0x5d7fab){let _0x42314d=Array['from'](_0x5d7fab);const _0x5bf0bb=_0x42314d['findIndex'](_0x29cca2=>'listItem'!=_0x29cca2['name']);return _0x5bf0bb>-0x1&&(_0x42314d=_0x42314d['slice'](0x0,_0x5bf0bb)),_0x42314d;}(_0x5b7974['model']['document']['selection']['getSelectedBlocks']()),_0x221153=_0x5b7974['model']['createRange'](_0x5b7974['model']['createPositionAt'](_0x2bd33d[0x0],'before'),_0x5b7974['model']['createPositionAt'](_0x2bd33d[_0x2bd33d['length']-0x1],'end'));_0x5b7974['model']['change'](()=>{_0x122382['markBlockFormat'](_0x221153,{'commandName':_0x2ec77d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1d54b0){const _0x5b9cf5=new Set();for(const _0x34aaf4 of _0x1d54b0){let _0x25ef5f=_0x34aaf4['nextSibling'];for(;_0x25ef5f&&_0x25ef5f['getAttribute']('listIndent')>_0x34aaf4['getAttribute']('listIndent');)_0x5b9cf5['add'](_0x25ef5f),_0x25ef5f=_0x25ef5f['nextSibling'];}return Array['from'](_0x5b9cf5);}(_0x2bd33d));});};}_0x122382['enableCommand']('numberedList',_0x51d2ff('numberedList')),_0x122382['enableCommand']('bulletedList',_0x51d2ff('bulletedList')),_0x3343ff&&_0x122382['enableCommand']('todoList',_0x51d2ff('todoList')),_0x122382['enableCommand']('indentList',_0x4e39a1('indentList')),_0x122382['enableCommand']('outdentList',_0x4e39a1('outdentList')),_0x3343ff&&_0x122382['enableCommand']('checkTodoList',()=>{const _0x8b44cc=_0x5b7974['commands']['get']('checkTodoList'),_0x23d020=Array['from'](_0x8b44cc['_selectedElements']);_0x23d020['filter'](_0x454298=>_0x454298['getAttribute']('todoListChecked')!=_0x8b44cc['value']),_0x5b7974['model']['change'](()=>{for(const _0x2b12e6 of _0x23d020)_0x122382['markBlockFormat'](_0x2b12e6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x8b44cc['value']}]});});}),_0x122382['descriptionFactory']['registerElementLabel']('listItem',_0x15abb0=>o(_0x139236,'ELEMENT_LIST_ITEM',_0x15abb0)),_0x122382['descriptionFactory']['registerDescriptionCallback'](_0x472bbb=>{if('formatBlock'!=_0x472bbb['type']&&'formatInline'!=_0x472bbb['type'])return;const {data:_0x1dd7a5}=_0x472bbb;if(_0x1dd7a5){if('numberedList'==_0x1dd7a5['commandName']||'bulletedList'==_0x1dd7a5['commandName']||'todoList'==_0x1dd7a5['commandName'])switch(_0x1dd7a5['commandName']['replace']('List','')){case'bulleted':return _0x1d312e(o(_0x139236,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d312e(o(_0x139236,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d312e(o(_0x139236,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1dd7a5['commandName'])return{'type':'format','content':o(_0x139236,'*Indent:*\x20%0',o(_0x139236,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1dd7a5['commandName'])return{'type':'format','content':o(_0x139236,'*Outdent:*\x20%0',o(_0x139236,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1dd7a5['commandName'])return _0x1dd7a5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x139236,'*Check\x20item*')}:{'type':'format','content':o(_0x139236,'*Uncheck\x20item*')};}function _0x1d312e(_0x163df3){return{'type':'format','content':o(_0x139236,'*Change\x20to:*\x20%0',_0x163df3)};}});}}function me(_0x2d4f35){const _0x3fe886=_0x2d4f35['getAttribute']('listIndent');if(0x0==_0x3fe886)return _0x2d4f35;let _0x5298d3=_0x2d4f35;for(;_0x2d4f35['previousSibling']&&_0x2d4f35['previousSibling']['is']('element','listItem');){const _0x2b48f5=_0x2d4f35['previousSibling']['getAttribute']('listIndent');if(_0x2b48f5==_0x3fe886)_0x5298d3=_0x2d4f35['previousSibling'];else{if(_0x2b48f5<_0x3fe886)break;}_0x2d4f35=_0x2d4f35['previousSibling'];}return _0x5298d3;}function fe(_0x282d9c){const _0x3f8a36=[];if(_0x282d9c['is']('element','listItem')&&_0x282d9c['getAttribute']('listIndent')>0x0){let _0x3b278f=_0x282d9c['nextSibling'];for(;_0x3b278f&&'listItem'==_0x3b278f['name']&&_0x3b278f['getAttribute']('listIndent')==_0x282d9c['getAttribute']('listIndent');)_0x3f8a36['push'](_0x3b278f),_0x3b278f=_0x3b278f['nextSibling'];}return _0x3f8a36;}class K extends _0xc027b9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x313cf0=this['editor']['config']['get']('list.properties'),_0x301532=this['editor']['plugins']['get']('TrackChangesEditing');_0x313cf0['styles']&&_0x301532['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x313cf0['reversed']&&_0x301532['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x313cf0['startIndex']&&_0x301532['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x301532['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x415078,_0x40b5d7={}){const _0x3eb9f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14e486=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3eb9f4['markMultiRangeBlockFormat'](_0x14e486,{'commandName':'listStyle','commandParams':[{'type':_0x40b5d7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xe8c04a,_0x3a9987={}){const _0x1d6719=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d7eb3=this['_getSuggestionBlocks'](_0x9d9cd9=>_0x9d9cd9['is']('element','listItem')&&'numbered'===_0x9d9cd9['getAttribute']('listType'));if(_0x2d7eb3['length']<0x1)return;const _0x201588=_0x2d7eb3['map'](_0xb70143=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb70143,'before'),this['editor']['model']['createPositionAt'](_0xb70143,0x0)));this['editor']['model']['change'](()=>{_0x1d6719['markMultiRangeBlockFormat'](_0x201588,{'commandName':'listReversed','commandParams':[{'reversed':_0x3a9987['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x40f5ff,_0x4a0750={}){const _0x3d0e36=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb6043e=this['_getSuggestionBlocks'](_0x3a166b=>_0x3a166b['is']('element','listItem')&&'numbered'===_0x3a166b['getAttribute']('listType'));if(_0xb6043e['length']<0x1)return;const _0x14f5b4=_0xb6043e['map'](_0x3505d5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3505d5,'before'),this['editor']['model']['createPositionAt'](_0x3505d5,0x0)));this['editor']['model']['change'](()=>{_0x3d0e36['markMultiRangeBlockFormat'](_0x14f5b4,{'commandName':'listStart','commandParams':[{'startIndex':_0x4a0750['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x31cfce){if('formatBlock'!=_0x31cfce['type']&&'formatInline'!=_0x31cfce['type'])return;const _0x12e452=this['editor']['locale'],{data:_0x222a5a}=_0x31cfce;if(!_0x222a5a)return;let _0x2dc501,_0xcbf9d9;switch(_0x222a5a['commandName']){case'listStyle':_0x2dc501='*Change\x20to:*\x20%0',_0xcbf9d9={'type':'format','content':o(_0x12e452,_0x2dc501,o(_0x12e452,this['_getTranslationKeyForListStyle'](_0x222a5a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2dc501=_0x222a5a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xcbf9d9={'type':'format','content':o(_0x12e452,_0x2dc501)};break;case'listStart':_0x2dc501='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xcbf9d9={'type':'format','content':o(_0x12e452,_0x2dc501,_0x222a5a['commandParams'][0x0]['startIndex'])};}return _0xcbf9d9;}['_getSuggestionBlocksForListStyle'](){const _0xba1977=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b180d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4b180d[0x0]?.['is']('element','listItem')&&_0x4b180d['unshift'](..._0xba1977['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4b180d[_0x4b180d['length']-0x1]?.['is']('element','listItem')&&_0x4b180d['push'](..._0xba1977['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4b180d=[...new Set(_0x4b180d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4b180d=_0x4b180d['filter'](_0x2c7a4e=>_0x2c7a4e['is']('element','listItem'))),_0x4b180d;}['_getSuggestionBlocks'](_0x463078){const _0x55a4d7=this['editor']['plugins']['get']('LegacyListUtils');let _0x5223d4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x463078)['map'](_0x185419=>{const _0x51a4ef=this['editor']['model']['createPositionAt'](_0x185419,0x0);return[..._0x55a4d7['getSiblingNodes'](_0x51a4ef,'backward'),..._0x55a4d7['getSiblingNodes'](_0x51a4ef,'forward')];})['flat']();return _0x5223d4=[...new Set(_0x5223d4)],_0x5223d4;}['_getTranslationKeyForListStyle'](_0x33a1ec){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x33a1ec)||'default')['toUpperCase']()+'_LIST_'+_0x33a1ec['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0xc027b9{['afterInit'](){const _0x86cca6=this['editor'];if(!_0x86cca6['plugins']['has']('MediaEmbedEditing'))return;const _0x523058=_0x86cca6['plugins']['get']('TrackChangesEditing'),_0x22c0a5=_0x86cca6['locale'];_0x523058['enableCommand']('mediaEmbed'),_0x523058['descriptionFactory']['registerElementLabel']('media',_0x5a1b81=>o(_0x22c0a5,'ELEMENT_MEDIA',_0x5a1b81)),_0x86cca6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x9a79b3,{writer:_0x57df78,options:_0x21f394})=>{if(_0x21f394['showSuggestionHighlights'])return _0x57df78['createEmptyElement']('div');},'converterPriority':'high'}),_0x86cca6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x165e71,_0x2eb3a7,_0x1656e0)=>{_0x1656e0['options']['showSuggestionHighlights']&&_0x165e71['stop']();},{'priority':'high'});}}class gt extends _0xc027b9{['afterInit'](){const _0x160ec4=this['editor'];_0x160ec4['plugins']['has']('MentionEditing')&&_0x160ec4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0xc027b9{['afterInit'](){const _0x2bbde3=this['editor'],_0x3b924b=_0x2bbde3['plugins']['get']('TrackChangesEditing');_0x2bbde3['plugins']['has']('MultiLevelList')&&(_0x3b924b['enableDefaultAttributesIntegration']('multiLevelList'),_0x3b924b['registerBlockAttribute']('listMarkerStyle'),_0x3b924b['descriptionFactory']['registerDescriptionCallback'](_0x3f36af=>this['handleDescriptions'](_0x3f36af)));}['handleDescriptions'](_0x5c18b7){const _0x2728a4=this['editor']['locale'],{data:_0x398304}=_0x5c18b7,_0xba53d9={'type':'format','content':''};if(_0x398304&&'listMarkerStyle'==_0x398304['key']){if(!_0x398304['oldValue'])return{'type':'format','content':o(_0x2728a4,'*Set\x20format:*\x20%0',o(_0x2728a4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x398304['newValue']+')'};if(!_0x398304['newValue']){let _0x597722=_0x5c18b7['head'];for(;_0x597722;){if(_0x597722['data']&&'listType'==_0x597722['data']['key']&&_0x597722['data']['newValue'])return _0xba53d9;_0x597722=_0x597722['next'];}return{'type':'format','content':o(_0x2728a4,'*Remove\x20format:*\x20%0',o(_0x2728a4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x398304['oldValue']+')'};}}}}class mt extends _0xc027b9{['afterInit'](){const _0xab16b8=this['editor'];if(!_0xab16b8['plugins']['has']('PageBreakEditing'))return;_0xab16b8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x550e3b=_0xab16b8['plugins']['get']('TrackChangesEditing'),_0x4e62a7=_0xab16b8['locale'];_0x550e3b['descriptionFactory']['registerElementLabel']('pageBreak',_0x26beaf=>o(_0x4e62a7,'ELEMENT_PAGE_BREAK',_0x26beaf));}}class dt extends _0xc027b9{['afterInit'](){const _0x435e58=this['editor'];if(!_0x435e58['plugins']['has']('Paragraph'))return;const _0x4a30f0=_0x435e58['locale'],_0x570026=_0x435e58['plugins']['get']('TrackChangesEditing');_0x570026['descriptionFactory']['registerElementLabel']('paragraph',_0x10ea62=>o(_0x4a30f0,'ELEMENT_PARAGRAPH',_0x10ea62)),_0x570026['enableDefaultAttributesIntegration']('paragraph'),_0x570026['enableCommand']('insertParagraph'),_0x435e58['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x435e58),{'priority':'highest'}),_0x435e58['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4b4db9,_0x15e2b1,_0x5c3600)=>{_0x5c3600['options']['showSuggestionHighlights']&&nr(_0x435e58,{'showActiveMarker':!0x1})(_0x4b4db9,_0x15e2b1,_0x5c3600);},{'priority':'highest'});const _0x393a81=_0x570026['descriptionFactory'];_0x393a81['registerDescriptionCallback'](_0x1f2e6d=>{if('insertion'!==_0x1f2e6d['type'])return;const {start:_0x644a2c,end:_0x2d7cc1}=_0x1f2e6d['getFirstRange']();if(!_0x644a2c['isTouching'](_0x2d7cc1)||!_0x644a2c['nodeAfter'])return;const _0x59bc75=_0x435e58['model']['schema'],_0x11793d=_0x644a2c['nodeAfter'];return _0x59bc75['isBlock'](_0x11793d)&&!_0x59bc75['isLimit'](_0x11793d)&&_0x59bc75['checkChild'](_0x11793d,'$text')?{'type':'insertion','content':o(_0x4a30f0,'*Insert:*\x20%0',_0x393a81['getItemLabel'](_0x11793d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c1d54=this['editor'],_0x23a1af=_0x3c1d54['locale'];_0x3c1d54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b99fb=>{if('formatBlock'!=_0x1b99fb['type'])return;const {data:_0x436d6e}=_0x1b99fb;return _0x436d6e&&'paragraph'==_0x436d6e['commandName']?{'type':'format','content':o(_0x23a1af,'*Change\x20to:*\x20%0',o(_0x23a1af,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xaeb82e,{showActiveMarker:_0x49b3a8=!0x0}={}){return(_0xd1c75a,_0x2edd6a,_0x37a465)=>{const _0x586f73=_0xaeb82e['plugins']['get']('TrackChangesEditing'),_0x31db57=_0x2edd6a['markerRange']['start'],_0x5e3779=_0x2edd6a['markerRange']['end'],_0x1b8740=_0xaeb82e['model']['schema'];if(!_0x31db57['isTouching'](_0x5e3779)||!_0x31db57['nodeAfter'])return;const _0x431944=_0x31db57['nodeAfter'];if(_0x1b8740['isBlock'](_0x431944)&&!_0x1b8740['isLimit'](_0x431944)&&_0x1b8740['checkChild'](_0x431944,'$text')){if(!_0x37a465['consumable']['consume'](_0x2edd6a['markerRange'],_0xd1c75a['name']))return;const _0x46a647=_0x37a465['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2e9071=_0x37a465['mapper']['toViewPosition'](_0x5e3779);_0x49b3a8&&_0x586f73['activeMarkers']['includes'](_0x2edd6a['markerName'])&&_0x37a465['writer']['addClass']('ck-suggestion-marker--active',_0x46a647),_0x37a465['writer']['insert'](_0x2e9071,_0x46a647),_0x37a465['mapper']['bindElementToMarker'](_0x46a647,_0x2edd6a['markerName']);}};}class pt extends _0xc027b9{['afterInit'](){const _0x18acc6=this['editor'];if(!_0x18acc6['plugins']['has']('RemoveFormatEditing'))return;_0x18acc6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f2ecd=this['editor'];_0x2f2ecd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x632066=>{if('formatBlock'!=_0x632066['type']&&'formatInline'!=_0x632066['type'])return;const {data:_0x368561}=_0x632066;return _0x368561&&'removeFormat'==_0x368561['commandName']?{'type':'format','content':o(_0x2f2ecd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0xc027b9{['afterInit'](){const _0x274355=this['editor'];if(!_0x274355['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3cbb7e=_0x274355['plugins']['get']('TrackChangesEditing');_0x3cbb7e['enableCommand']('goToPreviousRestrictedEditingException'),_0x3cbb7e['enableCommand']('goToNextRestrictedEditingException');const _0x3a5f6a=_0x274355['plugins']['get']('RestrictedEditingModeEditing');_0x3a5f6a['enableCommand']('trackChanges'),_0x3a5f6a['enableCommand']('acceptSuggestion'),_0x3a5f6a['enableCommand']('discardSuggestion'),_0x3a5f6a['enableCommand']('acceptAllSuggestions'),_0x3a5f6a['enableCommand']('discardAllSuggestions'),_0x3a5f6a['enableCommand']('acceptSelectedSuggestions'),_0x3a5f6a['enableCommand']('discardSelectedSuggestions');}}class bt extends _0xc027b9{static get['requires'](){return[_0x28bf5c];}['init'](){const _0x25f2f5=this['editor'],_0x32ddb3=_0x25f2f5['plugins']['get']('TrackChangesEditing');_0x32ddb3['enableCommand']('shiftEnter'),_0x25f2f5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x25f2f5),{'priority':'high'}),_0x25f2f5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x25f2f5),{'priority':'high'}),_0x25f2f5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb97721,_0x37b09c,_0x232c60)=>{_0x232c60['options']['showSuggestionHighlights']&&de(_0x25f2f5,{'showActiveMarker':!0x1})(_0xb97721,_0x37b09c,_0x232c60);}),_0x32ddb3['descriptionFactory']['registerElementLabel']('softBreak',_0x4ffa53=>o(_0x25f2f5['locale'],'ELEMENT_LINE_BREAK',_0x4ffa53));}}function de(_0x4116d8,{showActiveMarker:_0x399cd9=!0x0}={}){return(_0x3a259a,_0xd72260,_0x160445)=>{const _0x19d7c7=_0x4116d8['plugins']['get']('TrackChangesEditing');if(!_0x160445['consumable']['test'](_0xd72260['markerRange'],_0x3a259a['name']))return;const _0x357a02=_0x4116d8['model'];for(const _0x25d7ef of _0xd72260['markerRange']['getItems']()){if(!_0x25d7ef['is']('element','softBreak'))continue;const _0x1b2d79='deletion'==_0xd72260['markerName']['split'](':')[0x1]?'merge':'split',_0x4296a7=_0x160445['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b2d79}),_0xbe434e=_0x160445['mapper']['toViewPosition'](_0x357a02['createPositionBefore'](_0x25d7ef));_0x399cd9&&_0x19d7c7['activeMarkers']['includes'](_0xd72260['markerName'])&&_0x160445['writer']['addClass']('ck-suggestion-marker--active',_0x4296a7),_0x160445['writer']['insert'](_0xbe434e,_0x4296a7),_0x160445['mapper']['bindElementToMarker'](_0x4296a7,_0xd72260['markerName']);}};}class wt extends _0xc027b9{['afterInit'](){const _0x4a4ee2=this['editor'],_0x971d58=_0x4a4ee2['model'],_0x2f467a=_0x4a4ee2['locale'];if(!_0x4a4ee2['plugins']['has']('StandardEditingModeEditing'))return;const _0x4a9568=_0x4a4ee2['plugins']['get']('TrackChangesEditing'),_0x4949ba='restrictedEditingException',_0x2a6430=_0x4a4ee2['commands']['get'](_0x4949ba);_0x4a9568['enableCommand'](_0x4949ba,(_0x495816,_0x5216c2={})=>{const _0x5bb181=_0x971d58['document']['selection'];if(_0x5bb181['isCollapsed'])return void _0x495816(_0x5216c2);const _0x5c6726=void 0x0!==_0x5216c2['forceValue']?_0x5216c2['forceValue']:!_0x2a6430['value'];_0x971d58['change'](()=>{const _0x15385e=Array['from'](_0x5bb181['getRanges']());for(const _0x3d08f6 of _0x15385e){const _0x3106d9=_0x5c6726?[_0x3d08f6]:io(_0x4949ba,_0x3d08f6,_0x971d58);for(const _0x56c09b of _0x3106d9)_0x4a9568['markInlineFormat'](_0x56c09b,{'commandName':_0x4949ba,'commandParams':[{'forceValue':_0x5c6726}]});}});}),_0x4a9568['descriptionFactory']['registerDescriptionCallback'](_0x50a473=>{if('formatBlock'!=_0x50a473['type']&&'formatInline'!=_0x50a473['type'])return;const {data:_0x39468d}=_0x50a473;return _0x39468d&&_0x39468d['commandName']==_0x4949ba?_0x39468d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f467a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2f467a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0xc027b9{['afterInit'](){const _0x1331ac=this['editor'];if(!_0x1331ac['plugins']['has']('Style')||!_0x1331ac['plugins']['has']('DataSchema'))return;const _0x22bb48=_0x1331ac['plugins']['get']('TrackChangesEditing'),_0x2a39df=_0x1331ac['locale'],_0x37e7e6=_0x1331ac['config']['get']('style')||{},_0x20d253=_0x1331ac['plugins']['get']('GeneralHtmlSupport'),_0x4dd3fd=_0x1331ac['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1331ac['plugins']['get']('DataSchema'),_0x37e7e6['definitions']);_0x22bb48['enableDefaultAttributesIntegration']('style');const _0x6a8343=new Set();for(const _0x149da3 of _0x4dd3fd['block']){const _0x2485d4=_0x20d253['getGhsAttributeNameForElement'](_0x149da3['element']);_0x6a8343['add'](_0x2485d4);}const _0x4240a6=new Set();for(const _0x41d67c of _0x4dd3fd['inline']){const _0x5c894b=_0x20d253['getGhsAttributeNameForElement'](_0x41d67c['element']);_0x4240a6['add'](_0x5c894b);for(const _0x3b7ce0 of _0x41d67c['ghsAttributes'])_0x4240a6['add'](_0x3b7ce0);}for(const _0xf94ba6 of _0x6a8343)_0x22bb48['registerBlockAttribute'](_0xf94ba6),_0x22bb48['descriptionFactory']['registerAttributeLabel'](_0xf94ba6,o(_0x2a39df,'FORMAT_STYLE'));for(const _0x2f451c of _0x4240a6)_0x22bb48['registerInlineAttribute'](_0x2f451c),_0x22bb48['descriptionFactory']['registerAttributeLabel'](_0x2f451c,o(_0x2a39df,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25969f=this['editor'],_0x21a849=_0x25969f['locale'];_0x25969f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c5865=>{if('formatBlock'!=_0x2c5865['type']&&'formatInline'!=_0x2c5865['type'])return;const {data:_0x23696b}=_0x2c5865;return _0x23696b&&'style'===_0x23696b['commandName']?_0x23696b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x21a849,'*Set\x20format:*\x20%0',_0x23696b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x21a849,'*Remove\x20format:*\x20%0',_0x23696b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0xc027b9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x359050){super(_0x359050),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x23f937=this['editor'],_0x1fecbf=_0x23f937['model']['document']['selection'];if(!_0x23f937['plugins']['has']('TableEditing'))return;const _0x2aa74f=_0x23f937['locale'],_0x1d2bfc=_0x23f937['plugins']['get']('TrackChangesEditing'),_0x423928=_0x23f937['plugins']['get']('TableUtils');_0x1d2bfc['descriptionFactory']['registerElementLabel']('table',_0x444442=>o(_0x2aa74f,'ELEMENT_TABLE',_0x444442)),this['_setupColumnsRowsFixing'](),_0x1d2bfc['enableCommand']('insertTable'),_0x1d2bfc['enableCommand']('selectTableRow'),_0x1d2bfc['enableCommand']('selectTableColumn');for(const _0x463a94 of['insertTableRowAbove','insertTableRowBelow']){const _0x366f79=_0x23f937['commands']['get'](_0x463a94);_0x1d2bfc['enableCommand'](_0x463a94,_0x5596d5=>{_0x23f937['model']['change'](_0x436ae7=>{_0x5596d5();const _0x2e24b0='above'===_0x366f79['order'],_0x33b5d6=_0x423928['getSelectionAffectedTableCells'](_0x1fecbf),_0x19a29b=_0x423928['getRowIndexes'](_0x33b5d6),_0x3d7656=_0x2e24b0?_0x19a29b['first']-0x1:_0x19a29b['last']+0x1,_0x266280=_0x33b5d6[0x0]['findAncestor']('table'),_0x222953=_0x423928['createTableWalker'](_0x266280,{'startRow':_0x3d7656,'endRow':_0x3d7656}),_0x19d570=Array['from'](_0x222953)['map'](_0x32ab66=>_0x436ae7['createRangeOn'](_0x32ab66['cell']));_0x1d2bfc['markMultiRangeInsertion'](_0x19d570,'tableRow');});});}for(const _0x3f7934 of['insertTableColumnLeft','insertTableColumnRight']){const _0x584761=_0x23f937['commands']['get'](_0x3f7934);_0x1d2bfc['enableCommand'](_0x3f7934,_0x4e3209=>{_0x23f937['model']['change'](_0x7fb122=>{_0x4e3209();const _0x3458c0='left'===_0x584761['order'],_0x4281df=_0x423928['getSelectionAffectedTableCells'](_0x1fecbf),_0x1a6139=_0x423928['getColumnIndexes'](_0x4281df),_0x1b3cab=_0x3458c0?_0x1a6139['first']-0x1:_0x1a6139['last']+0x1,_0x25b74e=_0x4281df[0x0]['findAncestor']('table'),_0x4ba31c=_0x423928['createTableWalker'](_0x25b74e,{'startRow':0x0,'column':_0x1b3cab,'includeAllSlots':!0x1}),_0x596e92=Array['from'](_0x4ba31c)['map'](_0x9724b6=>_0x7fb122['createRangeOn'](_0x9724b6['cell']));_0x1d2bfc['markMultiRangeInsertion'](_0x596e92,'tableColumn');});});}for(const _0x401fb4 of['removeTableRow','removeTableColumn']){const _0x44e388=_0x401fb4['substr'](0xb),_0x12788f=_0x44e388['toLowerCase'](),_0x31d46f=_0x12788f['substr'](0x0,0x3)+'span',_0x15de8d='table'+_0x44e388,_0x47c3b9='min'+_0x44e388,_0x5cb88f='max'+_0x44e388;_0x1d2bfc['enableCommand'](_0x401fb4,()=>{_0x23f937['model']['change'](_0x2a210f=>{const _0x555169=_0x423928['getSelectionAffectedTableCells'](_0x1fecbf),_0x3ef028=_0x555169[0x0]['findAncestor']('table');let _0x30b56d;if('removeTableRow'==_0x401fb4){const _0x13c1af=_0x423928['getRowIndexes'](_0x555169);_0x30b56d={'startRow':_0x13c1af['first'],'endRow':_0x13c1af['last'],'includeAllSlots':!0x0};}else{const _0x54637f=_0x423928['getColumnIndexes'](_0x555169);_0x30b56d={'startColumn':_0x54637f['first'],'endColumn':_0x54637f['last'],'includeAllSlots':!0x0};}const _0x119509=_0x423928['createTableWalker'](_0x3ef028,_0x30b56d),_0x536aaf=Array['from'](_0x119509)['map'](({cell:_0x328221})=>_0x328221),_0x440de9=Ee(_0x536aaf['filter'](_0x4db95f=>_0x4db95f['hasAttribute'](_0x31d46f))),_0x723443=Ee(_0x536aaf['filter'](_0x40f9ac=>!_0x40f9ac['hasAttribute'](_0x31d46f)))['map'](_0x317c37=>_0x2a210f['createRangeOn'](_0x317c37)),_0xb8337f=_0x1d2bfc['markMultiRangeDeletion'](_0x723443,_0x15de8d);if(_0xb8337f&&('tableRow'==_0xb8337f['subType']||'tableColumn'==_0xb8337f['subType'])){const _0x1860ac=this['_getSuggestionCoords'](_0xb8337f);for(const _0x1f41ff of _0x440de9){const _0x26acf6=_0x2a210f['createRangeOn'](_0x1f41ff),_0x1c3383=_0x423928['getCellLocation'](_0x1f41ff),_0x188abc=_0x1f41ff['getAttribute'](_0x31d46f)-0x1,_0x9988d3=_0x1860ac[_0x47c3b9],_0x180b9d=_0x1860ac[_0x5cb88f];_0x9988d3<=_0x1c3383[_0x12788f]&&_0x1c3383[_0x12788f]+_0x188abc<=_0x180b9d&&_0xb8337f['addRange'](_0x26acf6);}}});});}function _0x524db2(_0x169768){const _0x375a54=Array['from'](_0x1fecbf['getRanges']())['map'](_0x370aef=>_0x4fddfe['fromRange'](_0x370aef));_0x23f937['model']['change'](_0x96921b=>{const _0x2d31dc=_0x96921b['batch'];_0x169768=_0x169768['filter'](_0x1f7fe7=>'$graveyard'!=_0x1f7fe7['root']['rootName']),_0x96921b['setSelection'](_0x169768),_0x23f937['commands']['get']('removeTableRow')['refresh'](),_0x23f937['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x23f937['model']['enqueueChange'](()=>{_0x23f937['model']['enqueueChange'](_0x2d31dc,_0xf24d12=>{const _0x53d525=_0x375a54['filter'](_0x54cfde=>'$graveyard'!=_0x54cfde['root']['rootName']);_0x53d525['length']>0x0&&_0xf24d12['setSelection'](_0x53d525);for(const _0x47a98f of _0x375a54)_0x47a98f['detach']();});});});}function _0x37cb08(_0x1bd677){_0x23f937['model']['change'](_0x269421=>{const _0x21d328=Array['from'](_0x1fecbf['getRanges']())['map'](_0x29a7a3=>_0x4fddfe['fromRange'](_0x29a7a3)),_0x3c7014=[];for(const _0x21f34a of _0x1bd677)for(const _0x4f5556 of _0x21f34a['getItems']({'shallow':!0x0}))_0x3c7014['push'](_0x4f5556);for(const _0x49cff7 of _0x3c7014)'$graveyard'!=_0x49cff7['root']['rootName']&&(_0x269421['setSelection'](_0x269421['createPositionAt'](_0x49cff7,0x0)),_0x23f937['commands']['get']('removeTableColumn')['refresh'](),_0x23f937['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5ba014=_0x21d328['filter'](_0x1e2570=>'$graveyard'!=_0x1e2570['root']['rootName']);_0x5ba014['length']>0x0&&_0x269421['setSelection'](_0x5ba014);for(const _0x60cb2 of _0x21d328)_0x60cb2['detach']();});}function _0x2343f2(_0x3ea8fa,_0x5a7adc){return _0x5a7adc['every'](_0x481bbf=>_0x3ea8fa['some'](_0x3c3823=>_0x3c3823['end']['isEqual'](_0x481bbf['start'])||_0x481bbf['end']['isEqual'](_0x3c3823['start'])));}function _0x2d04bd(_0x56c52f,_0x778667){return _0x56c52f['some'](_0x30deba=>_0x778667['some'](_0x1fcf9a=>_0x30deba['end']['isTouching'](_0x1fcf9a['start'])));}_0x23f937['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4502b5,_0x489395,_0x3571d1)=>{if(!_0x3571d1['options']['showSuggestionHighlights'])return;const _0x4bd3f9=_0x489395['item'];if(!_0x4bd3f9)return;const _0x2c7b4d=_0x3571d1['mapper']['toViewElement'](_0x4bd3f9);function _0xc366c8(_0x5292d8){return Array['isArray'](_0x5292d8)?_0x5292d8:[_0x5292d8];}_0x2c7b4d&&'tableCell'===_0x4bd3f9['name']&&_0x4e6f32(_0x2c7b4d,_0x3571d1['writer'],(_0x1d014c,_0x4f76f0,_0x3df4b4)=>_0x3df4b4['addClass'](_0xc366c8(_0x4f76f0['classes']),_0x1d014c),(_0x58fed6,_0x3f0f7c,_0x5bb764)=>_0x5bb764['removeClass'](_0xc366c8(_0x3f0f7c['classes']),_0x58fed6));},{'priority':'highest'}),_0x1d2bfc['descriptionFactory']['registerDescriptionCallback'](_0x35fa7f=>{if('insertion'!=_0x35fa7f['type']&&'deletion'!=_0x35fa7f['type'])return;const _0x195528=_0x35fa7f['getContainedElement']();if(null!=_0x195528&&_0x195528['is']('element','table')){if('insertion'==_0x35fa7f['type']){const _0x4968f4=_0x35fa7f['getItems']()['filter'](_0x2d199e=>_0x2d199e['is']('$textProxy'))['map'](_0x476df5=>_0x476df5['data']);if(_0x4968f4['length'])return{'type':'insertion','content':o(_0x2aa74f,'*Insert:*\x20%0',o(_0x2aa74f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4968f4['join']('\x20')+'\x22'))};}if('deletion'==_0x35fa7f['type']){const _0xba9ee0=_0x35fa7f['getItems']()['filter'](_0x275030=>_0x275030['is']('$textProxy'))['map'](_0x1d212b=>_0x1d212b['data']);if(_0xba9ee0['length'])return{'type':'deletion','content':o(_0x2aa74f,'*Remove:*\x20%0',o(_0x2aa74f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xba9ee0['join']('\x20')+'\x22'))};}}}),_0x1d2bfc['descriptionFactory']['registerDescriptionCallback'](_0x3e5979=>{if('tableRow'==_0x3e5979['subType']){const _0x3563e7=_0x3e5979['getItems']()['filter'](_0x23aeac=>_0x23aeac['is']('$textProxy'))['map'](_0x390321=>_0x390321['data']),_0x3373e8=this['_getSuggestionCoords'](_0x3e5979),_0x14438b=_0x3373e8['maxRow']-_0x3373e8['minRow']+0x1;if('insertion'==_0x3e5979['type'])return _0x3563e7['length']?{'type':'insertion','content':o(_0x2aa74f,'*Insert:*\x20%0',o(_0x2aa74f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14438b,'\x22'+_0x3563e7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2aa74f,'*Insert:*\x20%0',o(_0x2aa74f,'ELEMENT_TABLE_ROW',_0x14438b))};if('deletion'==_0x3e5979['type'])return _0x3563e7['length']?{'type':'deletion','content':o(_0x2aa74f,'*Remove:*\x20%0',o(_0x2aa74f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14438b,'\x22'+_0x3563e7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2aa74f,'*Remove:*\x20%0',o(_0x2aa74f,'ELEMENT_TABLE_ROW',_0x14438b))};}if('tableColumn'==_0x3e5979['subType']){const _0x1e0b54=_0x3e5979['getItems']()['filter'](_0x1654f3=>_0x1654f3['is']('$textProxy'))['map'](_0x2db0b0=>_0x2db0b0['data']),_0x356f55=this['_getSuggestionCoords'](_0x3e5979),_0x307075=_0x356f55['maxColumn']-_0x356f55['minColumn']+0x1;if('insertion'==_0x3e5979['type'])return _0x1e0b54['length']?{'type':'insertion','content':o(_0x2aa74f,'*Insert:*\x20%0',o(_0x2aa74f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x307075,'\x22'+_0x1e0b54['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2aa74f,'*Insert:*\x20%0',o(_0x2aa74f,'ELEMENT_TABLE_COLUMN',_0x307075))};if('deletion'==_0x3e5979['type'])return _0x1e0b54['length']?{'type':'deletion','content':o(_0x2aa74f,'*Remove:*\x20%0',o(_0x2aa74f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x307075,'\x22'+_0x1e0b54['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2aa74f,'*Remove:*\x20%0',o(_0x2aa74f,'ELEMENT_TABLE_COLUMN',_0x307075))};}}),_0x1d2bfc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x524db2),_0x1d2bfc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x524db2),_0x1d2bfc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x37cb08),_0x1d2bfc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x37cb08),_0x1d2bfc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2343f2),_0x1d2bfc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2343f2),_0x1d2bfc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2d04bd),_0x1d2bfc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2d04bd);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3a453f=this['editor'],_0x109981=_0x3a453f['model']['document']['selection'];return(_0x4588d2,_0x13b35d)=>{_0x3a453f['model']['change'](_0x98a4e0=>{const {commandName:_0x56b9e4,commandParams:_0x5eba80}=_0x13b35d;let _0x2ee064=_0x4588d2[0x0]['end']['nodeBefore'];_0x5eba80&&_0x5eba80[0x0]&&!0x1===_0x5eba80[0x0]['forceValue']&&(_0x2ee064=_0x4588d2[0x0]['start']['nodeAfter']);const _0x47445c=_0x98a4e0['createRangeIn'](_0x2ee064);if('$graveyard'==_0x47445c['root']['rootName'])return;const _0x452e7c=Array['from'](_0x109981['getRanges']())['map'](_0x3cf367=>_0x4fddfe['fromRange'](_0x3cf367));_0x98a4e0['setSelection'](_0x47445c),_0x3a453f['commands']['get'](_0x56b9e4)['refresh'](),_0x5eba80['push']({'forceDefaultExecution':!0x0}),_0x3a453f['execute'](_0x56b9e4,..._0x5eba80);const _0x30fe25=_0x452e7c['filter'](_0x3ccdb5=>'$graveyard'!=_0x3ccdb5['root']['rootName']);_0x30fe25['length']>0x0&&_0x98a4e0['setSelection'](_0x30fe25);for(const _0x54da6a of _0x452e7c)_0x54da6a['detach']();});};}['_getCoordsForCells'](_0x186e25){const _0x2da49b=this['editor']['plugins']['get']('TableUtils');let _0xbdd359=Number['MAX_SAFE_INTEGER'],_0x252d91=Number['MIN_SAFE_INTEGER'],_0x451c8e=Number['MAX_SAFE_INTEGER'],_0x2a392a=Number['MIN_SAFE_INTEGER'];for(const _0x19bfc1 of _0x186e25){if('$graveyard'==_0x19bfc1['root']['rootName'])continue;const {row:_0x214a9f,column:_0x4a9d69}=_0x2da49b['getCellLocation'](_0x19bfc1),_0x119029=_0x19bfc1['hasAttribute']('rowspan')?_0x19bfc1['getAttribute']('rowspan')-0x1:0x0,_0x2a039a=_0x19bfc1['hasAttribute']('colspan')?_0x19bfc1['getAttribute']('colspan')-0x1:0x0;_0xbdd359=_0x214a9f<_0xbdd359?_0x214a9f:_0xbdd359,_0x252d91=_0x214a9f+_0x119029>_0x252d91?_0x214a9f+_0x119029:_0x252d91,_0x451c8e=_0x4a9d69<_0x451c8e?_0x4a9d69:_0x451c8e,_0x2a392a=_0x4a9d69+_0x2a039a>_0x2a392a?_0x4a9d69+_0x2a039a:_0x2a392a;}return{'minRow':_0xbdd359,'maxRow':_0x252d91,'minColumn':_0x451c8e,'maxColumn':_0x2a392a};}['_setupColumnsRowsFixing'](){const _0x2dc7fb=this['editor'],_0x3af09e=_0x2dc7fb['plugins']['get']('TrackChangesEditing'),_0x126e4a=_0x2dc7fb['plugins']['get']('TableUtils');_0x2dc7fb['model']['document']['on']('change:data',()=>{const _0x225e59=Array['from'](_0x2dc7fb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7a4ee8,data:_0x3e9e05}of _0x225e59){const {group:_0x102780,id:_0xa8cbf,subType:_0xd09540}=_0x3af09e['_splitMarkerName'](_0x7a4ee8);if('suggestion'!=_0x102780)continue;if(null!=_0x3e9e05['oldRange'])continue;const _0x3e5ced=_0x3af09e['getSuggestion'](_0xa8cbf);this['_tablePostFixingSubtypes']['includes'](_0xd09540)&&this['_tableSuggestions']['add'](_0x3e5ced);}},{'priority':'low'});const _0x46f0e9=(_0x3d5d2c,_0x11496c)=>{let _0x427abd=!0x1;const _0x104356=_0x11496c['createRangeOn'](_0x3d5d2c),_0x88883=_0x3d5d2c['findAncestor']('table'),_0x397d60=_0x126e4a['getCellLocation'](_0x3d5d2c);for(const _0x20d2e0 of this['_tableSuggestions']){const _0x568ae8=_0x20d2e0['subType'],_0x37c4ee=_0x568ae8['startsWith']('tablePaste'),_0x17fa85=_0x568ae8['substr'](_0x37c4ee?0xa:0x5),_0x5ec821=_0x17fa85['toLowerCase'](),_0x204320=_0x5ec821['substr'](0x0,0x3)+'span',_0xf0ccdb='min'+_0x17fa85,_0x133dcd='max'+_0x17fa85;if(!_0x20d2e0['isInContent'])continue;if(_0x88883!=_0x20d2e0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x20d2e0['isIntersectingWithRange'](_0x104356))continue;const _0x5a2c1e=_0x3d5d2c['hasAttribute'](_0x204320)?_0x3d5d2c['getAttribute'](_0x204320)-0x1:0x0,_0x4ca10d=this['_getSuggestionCoords'](_0x20d2e0),_0x53aa1e=_0x4ca10d[_0xf0ccdb],_0xe07e72=_0x4ca10d[_0x133dcd];_0x53aa1e<=_0x397d60[_0x5ec821]&&_0x397d60[_0x5ec821]+_0x5a2c1e<=_0xe07e72&&(_0x20d2e0['addRange'](_0x104356),_0x427abd=!0x0);}return _0x427abd;};_0x2dc7fb['model']['document']['registerPostFixer'](_0x3b2f09=>{let _0x85a0e1=!0x1;for(const _0x2c336b of _0x2dc7fb['model']['document']['differ']['getChanges']())if('insert'==_0x2c336b['type']){if('tableRow'==_0x2c336b['name']){for(const _0x4fcb22 of _0x2c336b['position']['nodeAfter']['getChildren']())_0x85a0e1=_0x85a0e1||_0x46f0e9(_0x4fcb22,_0x3b2f09);}else'tableCell'==_0x2c336b['name']&&(_0x85a0e1=_0x85a0e1||_0x46f0e9(_0x2c336b['position']['nodeAfter'],_0x3b2f09));}return _0x85a0e1;});}['_getSuggestionCoords'](_0x1f6ebf){return this['_getCoordsForCells'](_0x1f6ebf['getRanges']()['map'](_0x306c5d=>_0x306c5d['start']['nodeAfter']));}}function Ee(_0x1db723){return Array['from'](new Set(_0x1db723)['values']());}class St extends _0xc027b9{static get['requires'](){return[jt];}['afterInit'](){const _0x435405=this['editor'],_0x5dab26=_0x435405['model']['document']['selection'],_0x489325=_0x435405['locale'];if(!_0x435405['plugins']['has']('TableEditing'))return;const _0xdf179c=_0x435405['plugins']['get']('TrackChangesEditing'),_0x5878f5=_0x435405['plugins']['get']('TableUtils'),_0x1be85f=_0x435405['plugins']['get'](jt);_0x1be85f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xdf179c['enableCommand']('mergeTableCells',()=>{const _0x537b98=_0x5878f5['getSelectionAffectedTableCells'](_0x435405['model']['document']['selection']);_0x435405['model']['change'](()=>{_0xdf179c['markMultiRangeBlockFormat'](_0x537b98,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x435405['commands']['get']('mergeTableCells')['on']('execute',(_0x58f519,_0x4416a3)=>{_0x435405['commands']['get']('trackChanges')['value']&&(_0x4416a3['length']>0x0&&_0x4416a3[_0x4416a3['length']-0x1]&&_0x4416a3[_0x4416a3['length']-0x1]['forceDefaultExecution']||_0xdf179c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x58f519['stop']());},{'priority':'highest'});for(const _0x45d8a0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x40f887=_0x435405['commands']['get'](_0x45d8a0);_0xdf179c['enableCommand'](_0x45d8a0,()=>{const _0x16516f=_0x435405['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5a66ea=>_0x5a66ea['is']('element','tableCell')),_0xd436f1=_0x40f887['value'];_0x435405['model']['change'](()=>{_0xdf179c['markMultiRangeBlockFormat']([_0x16516f,_0xd436f1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x397363 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x50aa62=_0x435405['commands']['get'](_0x397363);_0xdf179c['enableCommand'](_0x397363,()=>{const _0x5d6a61=_0x5878f5['getSelectionAffectedTableCells'](_0x435405['model']['document']['selection'])[0x0],_0xc72666=_0x5d6a61['findAncestor']('table'),{column:_0x5d4819,row:_0x5c4f28}=_0x5878f5['getCellLocation'](_0x5d6a61);let _0x25bae4=[];if('horizontally'==_0x50aa62['direction']){const _0x404ba0=_0x5878f5['createTableWalker'](_0xc72666,{'startRow':_0x5c4f28,'endRow':_0x5c4f28,'includeAllSlots':!0x0});_0x25bae4=Array['from'](_0x404ba0)['map'](_0x1afdb5=>_0x1afdb5['cell']);}else{const _0x4ef793=_0x5878f5['createTableWalker'](_0xc72666,{'column':_0x5d4819,'includeAllSlots':!0x0});_0x25bae4=Array['from'](_0x4ef793)['map'](_0xf1912e=>_0xf1912e['cell']);}_0x435405['model']['change'](_0x10d086=>{_0xdf179c['markBlockFormat'](_0x10d086['createRangeOn'](_0x5d6a61),{'commandName':_0x397363,'commandParams':[]},_0x25bae4,_0x397363);});});}_0xdf179c['descriptionFactory']['registerDescriptionCallback'](_0x11be97=>{if('formatBlock'!=_0x11be97['type']&&'formatInline'!=_0x11be97['type'])return;const {data:_0x6bf19d}=_0x11be97;return _0x6bf19d&&'mergeTableCells'==_0x6bf19d['commandName']?{'type':'format','content':o(_0x489325,'*Merge\x20cells*')}:void 0x0;}),_0xdf179c['descriptionFactory']['registerDescriptionCallback'](_0x5872f2=>{if('formatBlock'!=_0x5872f2['type']&&'formatInline'!=_0x5872f2['type'])return;const {data:_0x1f201f}=_0x5872f2;return _0x1f201f?'splitTableCellVertically'==_0x1f201f['commandName']?{'type':'format','content':o(_0x489325,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1f201f['commandName']?{'type':'format','content':o(_0x489325,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4cb7d5=_0x1be85f['_acceptFormatSuggestionCallbackFactory']();for(const _0x4bcbdd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xdf179c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bcbdd,'accept',_0x4cb7d5);for(const _0x7db541 of['splitTableCellVertically','splitTableCellHorizontally'])_0xdf179c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7db541,'accept',_0x4cb7d5);_0xdf179c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xb7c4e6=>{_0x435405['model']['change'](_0x3c89ef=>{const _0x4121e9=Array['from'](_0x5dab26['getRanges']())['map'](_0x7df3c0=>_0x4fddfe['fromRange'](_0x7df3c0));_0x3c89ef['setSelection'](_0xb7c4e6),_0x435405['commands']['get']('mergeTableCells')['refresh'](),_0x435405['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x124d02=_0x4121e9['filter'](_0x2d4139=>'$graveyard'!=_0x2d4139['root']['rootName']);_0x124d02['length']>0x0&&_0x3c89ef['setSelection'](_0x124d02);for(const _0x6e08b1 of _0x4121e9)_0x6e08b1['detach']();});});for(const _0x4a4559 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xe8b883=_0x435405['commands']['get'](_0x4a4559);_0xe8b883['on']('set:isEnabled',(_0x21291d,_0x14640,_0x263b05)=>{if(_0x263b05){const _0x2c4db1=_0x435405['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x19fdfd=>_0x19fdfd['is']('element','tableCell'));this['_areMergableCells'](_0xe8b883['value'],_0x2c4db1)||(_0x21291d['return']=!0x1,_0x21291d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1e87a1=this['editor']['commands']['get']('mergeTableCells'),_0x2d77e4=this['editor']['plugins']['get']('TableUtils');if(!_0x1e87a1['isEnabled'])return!0x1;const _0x4c3983=_0x2d77e4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x516469 of _0x4c3983)for(const _0x858e34 of _0x4c3983)if(_0x516469!=_0x858e34&&!this['_areMergableCells'](_0x516469,_0x858e34))return!0x1;return!0x0;}['_areMergableCells'](_0x3cc010,_0x1b0673){const _0x3482c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1db17d=this['editor']['model']['createRangeOn'](_0x3cc010),_0x5d7e84=this['editor']['model']['createRangeOn'](_0x1b0673),_0x188db6=new Set(),_0x51e999=new Set();for(const _0xac8da1 of _0x3482c6['getSuggestions']())if(('insertion'==_0xac8da1['type']||'deletion'==_0xac8da1['type']||'mergeTableCells'==_0xac8da1['subType'])&&_0xac8da1['isInContent']){for(const _0x11422a of _0xac8da1['getRanges']())_0x11422a['containsRange'](_0x1db17d,!0x0)&&_0x188db6['add'](_0xac8da1['type']+':'+_0xac8da1['author']['id']),_0x11422a['containsRange'](_0x5d7e84,!0x0)&&_0x51e999['add'](_0xac8da1['type']+':'+_0xac8da1['author']['id']);}if(_0x188db6['size']!=_0x51e999['size'])return!0x1;for(const _0x38c73c of _0x188db6)if(!_0x51e999['has'](_0x38c73c))return!0x1;return!0x0;}}class At extends _0xc027b9{static get['requires'](){return[jt];}['afterInit'](){const _0x2bfc2a=this['editor'];if(!_0x2bfc2a['plugins']['has']('TableEditing'))return;const _0x157645=_0x2bfc2a['locale'],_0x5c1331=_0x2bfc2a['plugins']['get']('TrackChangesEditing');_0x5c1331['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5c1331['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5c1331['registerBlockAttribute']('headingRows'),_0x5c1331['registerBlockAttribute']('headingColumns'),_0x5c1331['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x157645,'FORMAT_HEADER_ROW')),_0x5c1331['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x157645,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x455266=this['editor']['plugins']['get']('TrackChangesEditing'),_0x217a57=this['editor']['plugins']['get']('TableUtils'),_0x1ccf32=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0xf3915a({showActiveMarker:_0x3c47b2=!0x0,setDataAttribute:_0x599bd9=!0x0}={}){return(_0x364bb3,_0x2257c8,_0x590831)=>{const {type:_0x58cb6a,id:_0x4ef330}=_0x455266['_splitMarkerName'](_0x2257c8['markerName']),_0x4477dd=_0x455266['getSuggestion'](_0x4ef330),_0x193020=_0x4477dd['data'];if('formatBlock'!=_0x4477dd['type']||!_0x193020||'setTableColumnHeader'!=_0x193020['commandName'])return;if(_0x2257c8['item'])return void _0x364bb3['stop']();if(!_0x590831['consumable']['consume'](_0x2257c8['markerRange'],_0x364bb3['name']))return;const _0x50d9bb=_0x2257c8['markerRange']['start']['nodeAfter'],_0x18ac56=_0x2257c8['markerRange']['end']['nodeBefore'],_0x58b175=_0x50d9bb['parent']['parent'],{column:_0x19c174}=_0x217a57['getCellLocation'](_0x50d9bb),{column:_0x899ba8}=_0x217a57['getCellLocation'](_0x18ac56);for(let _0x53facb=_0x19c174;_0x53facb<=_0x899ba8;_0x53facb++){const _0x5cbb02=_0x217a57['createTableWalker'](_0x58b175,{'column':_0x53facb,'includeAllSlots':!0x1});for(const _0xc44c5a of _0x5cbb02){const _0x8900eb=_0xc44c5a['cell'],_0x33b22e=_0x590831['mapper']['toViewElement'](_0x8900eb);_0x590831['writer']['addClass']('ck-suggestion-marker-'+_0x58cb6a,_0x33b22e),_0x599bd9&&_0x590831['writer']['setAttribute']('data-suggestion',_0x4ef330,_0x33b22e),_0x590831['mapper']['bindElementToMarker'](_0x33b22e,_0x2257c8['markerName']),_0x3c47b2&&(_0x455266['activeMarkers']['includes'](_0x2257c8['markerName'])?_0x590831['writer']['addClass']('ck-suggestion-marker--active',_0x33b22e):_0x590831['writer']['removeClass']('ck-suggestion-marker--active',_0x33b22e));}}};}_0x455266['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1ccf32),_0x455266['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1ccf32),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xf3915a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3ec123,_0x35907d,_0x50550a)=>{_0x50550a['options']['showSuggestionHighlights']&&_0xf3915a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3ec123,_0x35907d,_0x50550a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2d2313,_0x4a0ef6,_0x254598)=>{const {type:_0x4da900,id:_0x6fcd55}=_0x455266['_splitMarkerName'](_0x4a0ef6['markerName']),_0x1af947=_0x455266['getSuggestion'](_0x6fcd55),_0x4b6e8c=_0x1af947['data'];if('formatBlock'!=_0x1af947['type']||!_0x4b6e8c||'setTableColumnHeader'!=_0x4b6e8c['commandName'])return;const _0x4e8f8e=_0x254598['mapper']['markerNameToElements'](_0x4a0ef6['markerName']);if(_0x4e8f8e){for(const _0x34effb of _0x4e8f8e)_0x254598['writer']['removeClass']('ck-suggestion-marker-'+_0x4da900,_0x34effb),_0x254598['writer']['removeClass']('ck-suggestion-marker--active',_0x34effb),_0x254598['writer']['removeAttribute']('data-suggestion',_0x34effb),_0x254598['mapper']['unbindElementFromMarkerName'](_0x34effb,_0x4a0ef6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf468=this['editor'],_0x1d27c0=_0x3cf468['locale'];function _0xfaeed3(_0x311165){return{'type':'format','content':o(_0x1d27c0,'*Format:*\x20%0',_0x311165)};}_0x3cf468['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x406dc1=>{if('formatBlock'!=_0x406dc1['type'])return;const {data:_0x3b54c7}=_0x406dc1;if(_0x3b54c7){if('setTableRowHeader'==_0x3b54c7['commandName']){const _0x3c7ad3=_0x3b54c7['commandParams'][0x0]['forceValue'];return _0xfaeed3(o(_0x1d27c0,_0x3c7ad3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3b54c7['commandName']){const _0xda746c=_0x3b54c7['commandParams'][0x0]['forceValue'];return _0xfaeed3(o(_0x1d27c0,_0xda746c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5787a5=>[_0x5787a5,null]));class It extends _0xc027b9{static get['requires'](){return[jt];}['afterInit'](){const _0xb4afd=this['editor'];if(!_0xb4afd['plugins']['has']('TableClipboard'))return;const _0xbba551=_0xb4afd['plugins']['get']('TrackChangesEditing'),_0x39817e=_0xb4afd['plugins']['get']('TableUtils'),_0x19624c=_0xb4afd['plugins']['get'](jt),_0x31d8b5=_0xb4afd['plugins']['get']('TableClipboard');_0x19624c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xb4afd['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xb4afd['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4bb118=null;_0xb4afd['model']['on']('insertContent',(_0x5dc095,_0x227c2f)=>{const [_0x5169a0,_0x2d9b04]=_0x227c2f,_0x28cebc=_0x227c2f[_0x227c2f['length']-0x1];_0x28cebc&&_0x28cebc['forceDefaultExecution']||_0xbba551['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x17d1df,_0x28c721,_0x38c9ec,_0x48a718,_0x403b5f){if(_0x28c721&&!_0x28c721['is']('documentSelection'))return!0x1;const _0x350c1a=_0x403b5f['getTableIfOnlyTableInContent'](_0x17d1df,_0x38c9ec);if(!_0x350c1a||!he(_0x350c1a,void 0x0,_0x48a718))return!0x1;const _0x5d5301=_0x48a718['getSelectionAffectedTableCells'](_0x38c9ec['document']['selection']);if(!_0x5d5301['length'])return!0x1;const _0x35dc11=_0x5d5301[0x0]['findAncestor']('table'),_0x34c0d5=_0x48a718['getRowIndexes'](_0x5d5301),_0x3c7b07=_0x48a718['getColumnIndexes'](_0x5d5301),_0xe79dc8={'startRow':_0x34c0d5['first'],'endRow':_0x34c0d5['last'],'startColumn':_0x3c7b07['first'],'endColumn':_0x3c7b07['last']};return 0x1==_0x5d5301['length']&&(_0xe79dc8['endRow']+=_0x48a718['getRows'](_0x350c1a)-0x1,_0xe79dc8['endColumn']+=_0x48a718['getColumns'](_0x350c1a)-0x1),he(_0x35dc11,_0xe79dc8,_0x48a718);}(_0x5169a0,_0x2d9b04,_0xb4afd['model'],_0x39817e,_0x31d8b5)&&(_0x5dc095['stop'](),_0x4bb118={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb4afd['model']['change'](()=>{_0xb4afd['model']['insertContent'](_0x227c2f[0x0],_0x227c2f[0x1],_0x227c2f[0x2],{'forceDefaultExecution':!0x0});const _0x401658=_0x12a8c4(),{rowInsertionRanges:_0x4a2a31,columnInsertionRanges:_0x212f92,insertionRanges:_0x5d7d78,deletionRanges:_0x72fcfe,cells:_0x443167}=_0x4bb118;_0x4a2a31['length']&&_0xbba551['markMultiRangeInsertion'](_0x4a2a31,'tablePasteRow',{'tablePasteChainId':_0x401658}),_0x212f92['length']&&_0xbba551['markMultiRangeInsertion'](_0x212f92,'tablePasteColumn',{'tablePasteChainId':_0x401658}),_0x5d7d78['length']&&(_0xbba551['markMultiRangeInsertion'](_0x5d7d78,'tablePaste',{'tablePasteChainId':_0x401658,'skipNestingCheck':!0x0}),_0x5d7d78['forEach'](_0x4b95de=>_0x4b95de['detach']?.())),_0x72fcfe['length']&&(_0xbba551['markMultiRangeDeletion'](_0x72fcfe,'tablePaste',{'tablePasteChainId':_0x401658,'skipNestingCheck':!0x0}),_0x72fcfe['forEach'](_0x13999d=>_0x13999d['detach']?.()));const _0x15aa6f=_0xbba551['markMultiRangeBlockFormat'](_0x443167['map'](({element:_0x2936c9})=>_0x2936c9),{'formatGroupId':_0x12a8c4()},[],'tablePasteCell',{'tablePasteChainId':_0x401658});if(_0x15aa6f){const _0x1538ec=_0x15aa6f['getMarkers'](),_0x55c5fb=[];for(const {element:_0x7bf293,attributes:_0x130454}of _0x443167){if(!_0x130454)continue;const _0x1e1431=_0xb4afd['model']['createRangeOn'](_0x7bf293),_0x2889d1=_0x1538ec['find'](_0x427ad8=>_0x427ad8['getRange']()['isEqual'](_0x1e1431));_0x2889d1&&_0x55c5fb['push']([_0x2889d1['name'],_0x130454]);}_0x55c5fb['length']&&_0x15aa6f['setAttribute']('markerAttributes',Object['fromEntries'](_0x55c5fb));}_0x4bb118=null;}));},{'priority':_0x31cd08['high']+0xa}),_0xb4afd['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x348ed9,_0xbaaa9b)=>{const [_0x240636,_0x3169b7,,_0x43d712]=_0xbaaa9b;if(!_0x4bb118)return;_0x348ed9['stop']();const _0x347dbb=_0x240636['cell'],_0x39d829=_0x3169b7,_0x5d1ad0=Pe(_0x347dbb),_0x1116fa=Pe(_0x39d829);_0x348ed9['return']=_0x347dbb;let _0x2dc01c=null,_0x3cdb1a=null;if(_0x1116fa||_0x5d1ad0){if(_0x5d1ad0&&!_0x1116fa){_0x43d712['remove'](_0x347dbb['getChild'](0x0));for(const _0x4a491b of Array['from'](_0x39d829['getChildren']()))_0x43d712['insert'](_0x4a491b,_0x347dbb,'end');const _0x2a5458=_0x4bb118['rowInsertionIndexes']['includes'](_0x240636['row']),_0x33ee27=_0x4bb118['columnInsertionIndexes']['includes'](_0x240636['column']);_0x2a5458||_0x33ee27||(_0x2dc01c=_0x4fddfe['fromRange'](_0x43d712['createRangeIn'](_0x347dbb)));}else _0x1116fa&&!_0x5d1ad0&&(_0x3cdb1a=_0x43d712['createRangeIn'](_0x347dbb));}else{const _0x34779d=_0x43d712['createElement']('tableCellSuggestion'),_0x350dac=_0x43d712['createElement']('tableCellSuggestion');_0x43d712['wrap'](_0x43d712['createRangeIn'](_0x347dbb),_0x350dac),_0x43d712['insert'](_0x34779d,_0x347dbb,0x0);for(const _0x255148 of Array['from'](_0x39d829['getChildren']()))_0x43d712['insert'](_0x255148,_0x34779d,'end');_0x2dc01c=_0x4fddfe['fromRange'](_0x43d712['createRangeOn'](_0x34779d)),_0x3cdb1a=_0x4fddfe['fromRange'](_0x43d712['createRangeOn'](_0x350dac));}const _0x3e85d8=Array['from'](_0x39d829['getAttributes']())['filter'](([_0x3b1072])=>ge['includes'](_0x3b1072));_0x4bb118['cells']['push']({'element':_0x347dbb,'attributes':_0x3e85d8['length']?Object['fromEntries'](_0x3e85d8):null}),_0x2dc01c&&_0x4bb118['insertionRanges']['push'](_0x2dc01c),_0x3cdb1a&&_0x4bb118['deletionRanges']['push'](_0x3cdb1a);},{'priority':'high'}),_0x39817e['on']('insertColumns',(_0xaf54aa,_0x314b59)=>{const [_0x46721a,_0x165d68={}]=_0x314b59;if(!_0x4bb118)return;const _0x1c79d3=_0x165d68['at']||0x0,_0x50d829=_0x165d68['columns']||0x1;_0x4bb118['columnInsertionIndexes']=new Array(_0x50d829)['fill'](_0x1c79d3)['map']((_0x4bd23b,_0x451cb0)=>_0x4bd23b+_0x451cb0);for(const {cell:_0x3529ae}of _0x39817e['createTableWalker'](_0x46721a,{'startColumn':_0x1c79d3,'endColumn':_0x1c79d3+_0x50d829-0x1}))_0x4bb118['columnInsertionRanges']['push'](_0xb4afd['model']['createRangeOn'](_0x3529ae));},{'priority':'low'}),_0x39817e['on']('insertRows',(_0x12fd08,_0x49dc83)=>{const [_0x145b33,_0x5eb149={}]=_0x49dc83;if(!_0x4bb118)return;const _0x535dc2=_0x5eb149['at']||0x0,_0x23d3fe=_0x5eb149['rows']||0x1;_0x4bb118['rowInsertionIndexes']=new Array(_0x23d3fe)['fill'](_0x535dc2)['map']((_0x562bdb,_0x1006bf)=>_0x562bdb+_0x1006bf);for(const {cell:_0x254797}of _0x39817e['createTableWalker'](_0x145b33,{'startRow':_0x535dc2,'endRow':_0x535dc2+_0x23d3fe-0x1}))_0x4bb118['rowInsertionRanges']['push'](_0xb4afd['model']['createRangeOn'](_0x254797));},{'priority':'low'}),_0xbba551['descriptionFactory']['registerDescriptionCallback'](_0x59eea5=>{if(_0x59eea5['subType']&&_0x59eea5['subType']['startsWith']('tablePaste'))return _0x59eea5['previous']?{}:{'type':'insertion','content':o(_0xb4afd['locale'],'*Replace\x20table\x20cells*')};});const _0x2f15a0=()=>!0x1;for(const _0x46c029 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xbba551['_suggestionFactory']['registerCustomCallback']('insertion',_0x46c029,'join',_0x2f15a0),_0xbba551['_suggestionFactory']['registerCustomCallback']('deletion',_0x46c029,'join',_0x2f15a0),_0xbba551['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x46c029,'join',_0x2f15a0);_0xbba551['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2f15a0),_0xbba551['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x13b0f3,_0x3769bc,_0x4c16a4)=>{const _0x594c17=_0x13b0f3['map'](_0x5161ca=>_0x5161ca['getContainedElement']())['filter'](_0xbc34f9=>_0xbc34f9),_0x5e9c74=new Map(_0x594c17['map'](_0x5c3938=>[_0x5c3938,null]));if(_0x4bb118){for(const {element:_0x22d9c9,attributes:_0x54894a}of _0x4bb118['cells'])_0x54894a&&_0x5e9c74['set'](_0x22d9c9,_0x54894a);}else{if(_0x4c16a4&&_0x4c16a4['markerAttributes'])for(const [_0x4b5760,_0x510931]of Object['entries'](_0x4c16a4['markerAttributes'])){const _0x14fefc=_0xb4afd['model']['markers']['get'](_0x4b5760),_0xb4832f=_0x14fefc?_0x14fefc['getRange']()['getContainedElement']():null;_0xb4832f&&_0x5e9c74['set'](_0xb4832f,_0x510931);}}_0xb4afd['model']['change'](_0x364c02=>{for(const [_0x5621d8,_0xc18b75]of _0x5e9c74)_0x364c02['setAttributes']({...Ce,..._0xc18b75},_0x5621d8);});});const _0x35c531=(_0x4860aa,_0x9f1e62)=>{_0xbba551['_suggestionFactory']['registerCustomCallback'](_0x4860aa,'tablePaste',_0x9f1e62,(_0x5bdfff,_0x199977,_0x350593)=>{_0xb4afd['model']['change'](_0x21f40f=>{const _0x26f5cf=[];for(const _0x231f55 of _0x5bdfff){const _0x480cfa=_0x231f55['start']['nodeAfter'];_0x480cfa['is']('element','tableCellSuggestion')&&_0x26f5cf['push'](_0x480cfa);}_0xbba551['_suggestionFactory']['getSuggestionCallback'](_0x4860aa,null,_0x9f1e62)(_0x5bdfff,_0x199977,_0x350593);for(const _0x30a3f1 of _0x26f5cf)'$graveyard'!=_0x30a3f1['root']['rootName']&&_0x21f40f['unwrap'](_0x30a3f1);});});};_0x35c531('insertion','accept'),_0x35c531('insertion','discard'),_0x35c531('deletion','accept'),_0x35c531('deletion','discard'),_0xbba551['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3eb6b2=>{const _0x4c02d9=_0x3eb6b2['map'](_0x112ad2=>_0x112ad2['getContainedElement']()),_0x1f23b0=_0x4c02d9[0x0]['findAncestor']('table'),{minRow:_0x1ea3b2,maxRow:_0x96d451}=_0x19624c['_getCoordsForCells'](_0x4c02d9);_0x39817e['removeRows'](_0x1f23b0,{'at':_0x1ea3b2,'rows':_0x96d451-_0x1ea3b2+0x1});}),_0xbba551['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x460416=>{const _0x65722e=_0x460416['map'](_0x1926ed=>_0x1926ed['getContainedElement']()),_0x336478=_0x65722e[0x0]['findAncestor']('table'),{minColumn:_0x205b0e,maxColumn:_0x507296}=_0x19624c['_getCoordsForCells'](_0x65722e);_0x39817e['removeColumns'](_0x336478,{'at':_0x205b0e,'columns':_0x507296-_0x205b0e+0x1});});const _0x337d8a=(_0x99c469,_0x15f95b)=>{if(!_0x15f95b['subType']||!_0x15f95b['subType']['startsWith']('tablePaste'))return;const _0x3a1bc7=_0x15f95b['attributes']['tablePasteChainId'],_0x9d48e=_0xbba551['getSuggestions']()['filter'](_0x279e55=>_0x279e55['isInContent']&&_0x279e55['attributes']&&_0x279e55['attributes']['tablePasteChainId']==_0x3a1bc7);_0x9d48e['length']&&_0x15f95b['getAllAdjacentSuggestions']()['length']!=_0x9d48e['length']&&_0x9d48e['reduce']((_0x35ddd2,_0x4f8b5e)=>(_0x35ddd2['next']=_0x4f8b5e,_0x4f8b5e['previous']=_0x35ddd2,_0x4f8b5e));};function _0x51bbd4(_0x15a5a8,_0x2f0be1=!0x0){const {id:_0x5407d8}=_0xbba551['_splitMarkerName'](_0x15a5a8['markerName']),_0x356567=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x401f81=_0xbba551['activeMarkers']['includes'](_0x15a5a8['markerName']);return _0x401f81&&_0x356567['push']('ck-suggestion-marker--active'),{'classes':_0x356567,'attributes':{'data-suggestion':_0x5407d8},'priority':_0x401f81&&_0x2f0be1?0xbc2:0xbb8};}_0xbba551['on']('suggestionLoaded',_0x337d8a,{'priority':'high'}),_0xbba551['on']('suggestionUnloaded',_0x337d8a,{'priority':'high'}),_0xb4afd['model']['document']['registerPostFixer'](()=>{let _0xc25dd0=!0x1;const _0x385490=Array['from'](_0xb4afd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4757a5,data:_0x440ff8}of _0x385490){const {group:_0x2eac6b,type:_0x4e8f14,id:_0x483756}=_0xbba551['_splitMarkerName'](_0x4757a5);if('suggestion'!=_0x2eac6b||'deletion'!=_0x4e8f14||_0x440ff8['oldRange'])continue;if(!_0xbba551['hasSuggestion'](_0x483756))continue;const _0x4bbb3b=_0xbba551['getSuggestion'](_0x483756)['getRanges'](),_0x31c17e=_0xb4afd['plugins']['get']('Users')['me'];for(const _0x9a0126 of _0xbba551['getSuggestions']()){if(!_0x9a0126['isInContent']||_0x9a0126['author']!=_0x31c17e)continue;if('formatBlock'!=_0x9a0126['type']||'tablePasteCell'!=_0x9a0126['subType'])continue;if(_0x9a0126['getRanges']()['every'](_0x33da0b=>_0x4bbb3b['some'](_0x35d58d=>_0x35d58d['containsRange'](_0x33da0b,!0x0)))){for(const _0x697af7 of _0x9a0126['getAllAdjacentSuggestions']())_0x697af7['isInContent']&&(_0x697af7['discard'](),_0xc25dd0=!0x0);}}}return _0xc25dd0;}),_0xb4afd['model']['document']['registerPostFixer'](_0x2ccf38=>{const _0x125a91=_0xb4afd['commands']['get']('redo');if(!_0x125a91||!_0x125a91['_createdBatches']['has'](_0x2ccf38['batch']))return!0x1;let _0xc6ebd9=!0x1;const _0x4ccff7=_0xb4afd['plugins']['get']('Users')['me'],_0x9eee98=_0xb4afd['model']['document']['differ']['getChanges'](),_0x3eed54=Array['from'](_0xb4afd['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d9b3d,data:_0x1b9af3})=>{const {group:_0x2a6e6f,subType:_0x23eafc,authorId:_0x42393e}=_0xbba551['_splitMarkerName'](_0x3d9b3d);return'suggestion'==_0x2a6e6f&&'tablePaste'==_0x23eafc&&_0x42393e==_0x4ccff7['id']&&!_0x1b9af3['oldRange'];});for(const _0x9916b3 of _0x9eee98){if('insert'!=_0x9916b3['type']||'tableCellSuggestion'!=_0x9916b3['name']||0x1!=_0x9916b3['length'])continue;const _0x5ddb6a=_0x2ccf38['createRange'](_0x9916b3['position'],_0x9916b3['position']['getShiftedBy'](0x1));if(!_0x3eed54['find'](({data:_0x8318eb})=>_0x8318eb['newRange']['isEqual'](_0x5ddb6a))){for(const {name:_0x1f5700,data:_0x47d41b}of _0x3eed54)if(_0x5ddb6a['containsRange'](_0x47d41b['newRange'])){_0x2ccf38['updateMarker'](_0x1f5700,{'range':_0x5ddb6a}),_0xc6ebd9=!0x0;break;}}}return _0xc6ebd9;}),_0xb4afd['model']['document']['registerPostFixer'](_0x399d46=>{let _0x4ea601=!0x1;const _0x439d0e=_0xb4afd['plugins']['get']('Users')['me'],_0x1f8fb0=_0xbba551['getSuggestions']()['filter'](_0x2cfb68=>_0x2cfb68['isInContent']&&_0x2cfb68['author']==_0x439d0e),_0x11970b=new Set(),_0x174d67=new Set();for(const _0x397b26 of _0x1f8fb0)if('tablePaste'==_0x397b26['subType'])for(const _0x491747 of _0x397b26['getMarkers']()){const _0x23d36c=_0x491747['getRange']()['getContainedElement']();if(_0x23d36c){if(_0x23d36c['is']('element','tableCellSuggestion')&&Pe(_0x23d36c)){_0x397b26['removeMarker'](_0x491747['name']),_0x11970b['add'](_0x23d36c),_0x4ea601=!0x0;const _0x374576=_0x23d36c['nextSibling'],_0x2e32d1=_0x23d36c['previousSibling'],_0x9c8959=_0x374576&&_0x374576['is']('element','tableCellSuggestion'),_0x3d06ec=_0x2e32d1&&_0x2e32d1['is']('element','tableCellSuggestion');_0x9c8959&&!_0x11970b['has'](_0x374576)&&_0x174d67['add'](_0x374576),_0x3d06ec&&!_0x11970b['has'](_0x2e32d1)&&_0x174d67['add'](_0x2e32d1);}else _0x23d36c['is']('element','paragraph')&&_0x23d36c['isEmpty']&&(_0x397b26['removeMarker'](_0x491747['name']),_0x4ea601=!0x0);}}else{if('tablePasteCell'==_0x397b26['subType']){if(!_0x397b26['attributes']||!_0x397b26['attributes']['tablePasteChainId'])continue;const _0x14da49=_0x397b26['attributes']['markerAttributes'];if(_0x14da49&&Object['keys'](_0x14da49)['length'])continue;const _0xd19862=_0x397b26['attributes']['tablePasteChainId'];let _0x2c6777=!0x0,_0x5b0146=!0x0;for(const _0x3ccf1a of _0x1f8fb0)if(_0x3ccf1a['subType']&&_0x3ccf1a['subType']['startsWith']('tablePaste')){if(!_0x3ccf1a['attributes']['tablePasteChainId']){_0x5b0146=!0x1;break;}if(_0x3ccf1a['id']!=_0x397b26['id']&&_0x3ccf1a['attributes']['tablePasteChainId']==_0xd19862){_0x2c6777=!0x1;break;}}_0x5b0146&&_0x2c6777&&(_0x397b26['removeMarkers'](),_0x4ea601=!0x0);}}for(const _0x3d012e of _0x11970b)_0x399d46['remove'](_0x3d012e);for(const _0x4a751c of _0x174d67)_0x399d46['unwrap'](_0x4a751c);return _0x4ea601;}),_0xb4afd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x500bc7,_0x40be6b)=>_0x51bbd4(_0x500bc7),'converterPriority':'high'}),_0xb4afd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3f6908,_0x56b999)=>_0x56b999['options']['showSuggestionHighlights']?_0x51bbd4(_0x3f6908,!0x1):null,'converterPriority':'high'});const _0x4d24d1=_0xb4afd['editing']['view'];this['listenTo'](_0x4d24d1['document'],'clipboardOutput',(_0x3059c1,_0x162326)=>{const _0x4b3ab2=[];for(const _0x39afdb of _0x4d24d1['createRangeIn'](_0x162326['content'])['getItems']())_0x39afdb['is']('element','suggestion-td')&&_0x4b3ab2['push'](_0x39afdb);_0x4d24d1['change'](_0xcaa25c=>{for(const _0x12648a of _0x4b3ab2)_0xcaa25c['move'](_0xcaa25c['createRangeIn'](_0x12648a),_0xcaa25c['createPositionBefore'](_0x12648a)),_0xcaa25c['remove'](_0x12648a);});});}}function Pe(_0x1de1e6){if(_0x1de1e6['isEmpty'])return!0x0;const _0x36719e=_0x1de1e6['getChild'](0x0);return _0x36719e['is']('element','paragraph')&&_0x36719e['isEmpty'];}function he(_0x8aa788,_0x4d7df6={},_0x4e1336){for(const {isAnchor:_0xe52cc9,cellHeight:_0x4ee779,cellWidth:_0x5b3ca8}of _0x4e1336['createTableWalker'](_0x8aa788,{'includeAllSlots':!0x0,..._0x4d7df6}))if(!_0xe52cc9||0x1!=_0x4ee779||0x1!=_0x5b3ca8)return!0x1;return!0x0;}class vt extends _0xc027b9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x47e232=this['editor']['plugins']['get']('TrackChangesEditing');_0x47e232['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x47e232['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x47e232['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47e232['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x47e232['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x47e232['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x456f29,_0x2ced2a){const _0x2e4d7b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x173f58=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x42535d=_0x2ced2a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x270c0c=_0x173f58['getColumnGroupElement'](_0x42535d);let _0x22be38=_0x270c0c?_0x173f58['getTableColumnsWidths'](_0x270c0c):null,_0x3ff5d6=_0x42535d['getAttribute']('tableWidth')||null;const _0x538849=_0x2ced2a['tableWidth']||_0x3ff5d6,_0x3f80ac=_0x2ced2a['columnWidths']||_0x22be38,_0x3116aa=this['editor']['plugins']['get']('Users')['me'];for(const _0x5aa356 of _0x2e4d7b['getSuggestions']()){const _0x27da1=_0x5aa356['getContainedElement']();if('resizeTable'===_0x5aa356['subType']&&_0x27da1===_0x42535d){_0x5aa356['author']!==_0x3116aa&&_0x5aa356['discard']();const _0x3ec6e6=_0x5aa356['data']['commandParams'];_0x3ff5d6=_0x3ec6e6[0x0]['tableWidth'],_0x22be38=_0x3ec6e6[0x0]['columnWidths'];break;}}_0x456f29({'table':_0x42535d,'tableWidth':_0x538849,'columnWidths':_0x3f80ac}),_0x2e4d7b['markBlockFormat'](_0x42535d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3ff5d6,'columnWidths':_0x22be38}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x456ef0){if('formatBlock'!=_0x456ef0['type']&&'formatInline'!=_0x456ef0['type'])return;const {data:_0x3a5010}=_0x456ef0;if(_0x3a5010&&'resizeTable'===_0x3a5010['formatGroupId']){const _0x165308='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x165308)};}}}class _t extends _0xc027b9{['afterInit'](){const _0x554616=this['editor'];_0x554616['plugins']['has']('Template')&&_0x554616['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0xc027b9{['afterInit'](){const _0x53159d=this['editor'];if(!_0x53159d['commands']['get']('insertTableOfContents'))return;_0x53159d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4f7f15=_0x53159d['plugins']['get']('TrackChangesEditing'),_0x355b9f=_0x53159d['locale'];_0x4f7f15['descriptionFactory']['registerElementLabel']('tableOfContents',_0x519cc0=>o(_0x355b9f,'ELEMENT_TABLE_OF_CONTENTS',_0x519cc0));}}class Dt extends _0xc027b9{['afterInit'](){const _0x304f8c=this['editor'];if(!_0x304f8c['plugins']['has']('Title'))return;const _0x45d3c8=_0x304f8c['plugins']['get']('TrackChangesEditing');_0x45d3c8['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x304f8c['locale'],'ELEMENT_TITLE')),_0x304f8c['model']['document']['registerPostFixer'](_0x290aef=>{let _0x3de02b=!0x1;const _0x9fb6c5=Array['from'](_0x304f8c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c826c,data:_0x52c601}of _0x9fb6c5){const {group:_0x4d50fe}=_0x45d3c8['_splitMarkerName'](_0x4c826c);if('suggestion'!==_0x4d50fe||!_0x52c601['newRange'])continue;const _0x243661=_0x52c601['newRange'],_0x47cad3=_0x243661['end']['nodeBefore'];if(!_0x47cad3||!_0x47cad3['is']('element','title-content'))continue;if(!_0x243661['start']['isTouching'](_0x243661['end']))continue;const _0x5d2e69=_0x304f8c['model']['schema']['getNearestSelectionRange'](_0x243661['end'],'forward');if(_0x5d2e69&&_0x5d2e69['isCollapsed']){const _0x127446=_0x290aef['createRange'](_0x243661['start'],_0x5d2e69['start']);_0x127446['isEqual'](_0x243661)||(_0x290aef['updateMarker'](_0x4c826c,{'range':_0x127446}),_0x3de02b=!0x0);}_0x3de02b||(_0x290aef['removeMarker'](_0x4c826c),_0x3de02b=!0x0);}return _0x3de02b;});}}class Nt extends _0xc027b9{['afterInit'](){const _0x5e344b=this['editor'],_0x19a3c9=_0x5e344b['plugins']['get']('TrackChangesEditing');_0x5e344b['plugins']['has']('UndoEditing')&&(_0x19a3c9['enableCommand']('undo'),_0x19a3c9['enableCommand']('redo'));}}class Mt extends _0xc027b9{static get['requires'](){return[jt];}['afterInit'](){const _0x5c84dd=this['editor'];if(!_0x5c84dd['plugins']['has']('TableCaptionEditing'))return;_0x5c84dd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0xc027b9{['tableProperties'];['tableCellProperties'];constructor(_0x423e80){super(_0x423e80),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x58bb34=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xc3b527 of this['tableProperties'])_0x58bb34['enableCommand'](_0xc3b527,(_0x1964e8,_0x43456d)=>{const _0x228c71=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xc3b527,[_0x228c71],this['tableProperties'],'tableProperties',_0x1964e8,_0x43456d);});_0x58bb34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x58bb34['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58bb34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x35746d,_0x24b7b9)=>this['handleDiscardAction'](this['tableProperties'],_0x35746d,_0x24b7b9)),_0x58bb34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x463d7c of this['tableCellProperties'])_0x58bb34['enableCommand'](_0x463d7c,(_0x4b32ab,_0x19ba57)=>{const _0x16aefb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x463d7c,_0x16aefb,this['tableCellProperties'],'tableCellProperties',_0x4b32ab,_0x19ba57);});_0x58bb34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x58bb34['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58bb34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x6ade83,_0x30c973)=>this['handleDiscardAction'](this['tableCellProperties'],_0x6ade83,_0x30c973)),_0x58bb34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x58bb34['descriptionFactory']['registerDescriptionCallback'](_0x289134=>this['handleSuggestionDescription'](_0x289134));}['_handlePropertyChange'](_0x1a833a,_0x41185b,_0x183f6d,_0x3817d2,_0x533f8b,_0x14e4c0){const _0x4af825=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x14e4c0['batch'],()=>{for(const _0x3ce677 of _0x41185b){if(this['_getSuggestion'](_0x3ce677,_0x3817d2))_0x533f8b(_0x14e4c0);else{const _0x109723={};for(const _0x5e0734 of _0x183f6d){const _0x28acc4=_0x3ce677['getAttribute'](_0x5e0734);void 0x0!==_0x28acc4&&(_0x109723[_0x5e0734]=_0x28acc4);}_0x533f8b(_0x14e4c0),_0x4af825['markBlockFormat'](_0x3ce677,{'commandParams':[_0x109723]},[],_0x3817d2);}}});}['handleDiscardAction'](_0x324044,_0x1ca53a,_0x7253f4){const _0x103c6d=_0x1ca53a[0x0]['start']['nodeAfter'],_0x55c571=_0x7253f4['commandParams'][0x0];this['editor']['model']['change'](_0x33450c=>{for(const _0x210387 of _0x324044)void 0x0!==_0x55c571[_0x210387]?_0x33450c['setAttribute'](_0x210387,_0x55c571[_0x210387],_0x103c6d):_0x33450c['removeAttribute'](_0x210387,_0x103c6d);});}['handleSuggestionDescription'](_0x2cfa42){if(_0x2cfa42['data'])switch(_0x2cfa42['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'](_0x383a54,_0xba11bb){const _0x57f3e8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3b0eec of _0x57f3e8['getSuggestions']({'skipNotAttached':!0x0})){const _0x14bb1c=_0x3b0eec['getContainedElement']();if(_0x3b0eec['subType']===_0xba11bb&&_0x14bb1c===_0x383a54)return _0x3b0eec;}return null;}}const m='$elementName';class p extends _0xc027b9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2be467,_0x2c0307,E,V,U,O,G,F,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';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x4b7bc8){function _0x3a5af6(_0x5ef8b0){return _0x5ef8b0['map'](_0x58fca2=>String['fromCharCode'](_0x58fca2))['join']('');}super(_0x4b7bc8),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x44f5b9,_0x5e4724,_0x1789ff,_0x542854)=>{this['_model']['change'](()=>{for(const _0x1252af of[..._0x542854,..._0x1789ff])this['_model']['markers']['has'](_0x1252af)&&_0x4b7bc8['editing']['reconvertMarker'](_0x1252af);});}),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']=_0x4b7bc8['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(),_0x4b7bc8['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4b7bc8['config']['get']('trackChanges.trackFormatChanges'),_0x4b7bc8['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4b7bc8['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x4b7bc8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3a5af6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3a5af6([0x34,0x30,0x34,0x38,0x31,0x30,0x32,0x30]);}['init'](){const _0x33c869=this['editor'],_0x592274=(_0x2699dd,_0x46b473)=>{if('attribute'!=_0x2699dd)return'ck-suggestion-marker-'+_0x2699dd;const _0x2c6fc8=_0x46b473['split']('|')[0x0];return this['_isBlockAttribute'](_0x2c6fc8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x33c869['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5330a7=>{const {id:_0x5e9240,type:_0x351887,subType:_0x366fa6}=this['_splitMarkerName'](_0x5330a7['markerName']),_0x258022=['ck-suggestion-marker',_0x592274(_0x351887,_0x366fa6)];let _0x2ffde9=0xbb8;return this['activeMarkers']['includes'](_0x5330a7['markerName'])&&(_0x258022['push']('ck-suggestion-marker--active'),_0x2ffde9=0xbc2),'deletion'==_0x351887&&(_0x2ffde9+=0x5),{'classes':_0x258022,'attributes':{'data-suggestion':_0x5e9240},'priority':_0x2ffde9};}}),_0x33c869['conversion']['for']('dataDowncast')['add'](_0x2351e4=>{_0x2351e4['on']('addMarker:suggestion',(_0x2521a6,_0x2d1082,_0x279949)=>{if(!_0x279949['options']['showSuggestionHighlights'])return;const _0x3c16b1=_0x2d1082['item'];if(!_0x3c16b1)return;const _0x3368bd=_0x279949['mapper']['toViewElement'](_0x3c16b1);_0x33c869['model']['schema']['isObject'](_0x3c16b1)&&_0x3368bd&&!_0x3368bd['getCustomProperty']('widget')&&_0x3368bd['is']('containerElement')&&_0x4f4604(_0x3368bd,_0x279949['writer']);},{'priority':'high'});}),_0x33c869['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x52164d,_0x6912e0)=>{if(!_0x6912e0['options']['showSuggestionHighlights'])return null;const {type:_0x206f26,subType:_0x4dff50}=this['_splitMarkerName'](_0x52164d['markerName']);return{'classes':['ck-suggestion-marker',_0x592274(_0x206f26,_0x4dff50)],'priority':0xbb8};}});const _0x68054d=({showActiveMarkers:_0x29f244=!0x0,isAttributeSuggestion:_0x507896=!0x1}={})=>(_0x398449,_0x5e8dcd,_0xca52c5)=>{if(!_0x5e8dcd['item'])return;const {id:_0x52eaa4}=this['_splitMarkerName'](_0x5e8dcd['markerName']);if(_0x507896){const _0x520c4c=this['_suggestions']['get'](_0x52eaa4),_0x1fec11=this['_getAttributeKey'](_0x520c4c);if(!this['_isBlockAttribute'](_0x1fec11))return;}if(_0x5e8dcd['item']['is']('selection'))return void _0xca52c5['consumable']['consume'](_0x5e8dcd['item'],_0x398449['name']);const _0x2041ea=_0xca52c5['mapper']['toViewElement'](_0x5e8dcd['item']);if(_0x5e8dcd['item']['is']('element')&&_0x33c869['model']['schema']['isBlock'](_0x5e8dcd['item'])&&!_0x2041ea['getCustomProperty']('addHighlight')){_0xca52c5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2041ea),_0xca52c5['writer']['setAttribute']('data-suggestion',_0x52eaa4,_0x2041ea),_0xca52c5['mapper']['bindElementToMarker'](_0x2041ea,_0x5e8dcd['markerName']),_0x29f244&&(this['activeMarkers']['includes'](_0x5e8dcd['markerName'])?_0xca52c5['writer']['addClass']('ck-suggestion-marker--active',_0x2041ea):_0xca52c5['writer']['removeClass']('ck-suggestion-marker--active',_0x2041ea));for(const _0x27f955 of _0x33c869['model']['createRangeIn'](_0x5e8dcd['item'])['getItems']())_0xca52c5['consumable']['consume'](_0x27f955,_0x398449['name']);_0xca52c5['consumable']['consume'](_0x5e8dcd['item'],_0x398449['name']);}};_0x33c869['conversion']['for']('dataDowncast')['add'](_0x4b0b31=>{_0x4b0b31['on']('addMarker:suggestion:formatBlock',(_0x53220d,_0x49158e,_0x5a9ee1)=>{_0x5a9ee1['options']['showSuggestionHighlights']&&_0x68054d({'showActiveMarkers':!0x1})(_0x53220d,_0x49158e,_0x5a9ee1);},{'priority':'highest'});}),_0x33c869['conversion']['for']('dataDowncast')['add'](_0x52f7d5=>{_0x52f7d5['on']('addMarker:suggestion:attribute',(_0x15e63f,_0x32ce8e,_0x41a77e)=>{_0x41a77e['options']['showSuggestionHighlights']&&_0x68054d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x15e63f,_0x32ce8e,_0x41a77e);},{'priority':'highest'});}),_0x33c869['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x29338b,_0xf11531)=>_0xf11531['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x29338b['substr'](0xb)}}),_0x33c869['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1bc895,{writer:_0x454fff})=>{let _0x4a111a='suggestion:'+_0x1bc895['getAttribute']('suggestion-type')+':'+_0x1bc895['getAttribute']('id');return _0x1bc895['getAttribute']('marker-count')&&(_0x4a111a+=':'+_0x1bc895['getAttribute']('marker-count')),_0x454fff['createElement']('$marker',{'data-name':_0x4a111a});}}),_0x33c869['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33c869['conversion']['for']('editingDowncast')['add'](_0x46385d=>{_0x46385d['on']('addMarker:suggestion:formatBlock',_0x68054d(),{'priority':'high'});}),_0x33c869['conversion']['for']('editingDowncast')['add'](_0x1cc02f=>{_0x1cc02f['on']('addMarker:suggestion:attribute',_0x68054d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x33c869['conversion']['for']('editingDowncast')['add'](_0x5e0c96=>{_0x5e0c96['on']('removeMarker:suggestion:formatBlock',(_0x292eb2,_0x295313,_0x3713d8)=>{const _0x46290d=_0x3713d8['mapper']['markerNameToElements'](_0x295313['markerName']);if(_0x46290d){for(const _0x375e92 of _0x46290d)_0x375e92['getCustomProperty']('addHighlight')||(_0x3713d8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x375e92),_0x3713d8['writer']['removeAttribute']('data-suggestion',_0x375e92),_0x3713d8['mapper']['unbindElementFromMarkerName'](_0x375e92,_0x295313['markerName']));}},{'priority':'high'});}),_0x33c869['conversion']['for']('editingDowncast')['add'](_0x3dca4a=>{_0x3dca4a['on']('removeMarker:suggestion:attribute',(_0x58fe77,_0x582770,_0xa924cd)=>{const _0x4b5af6=_0xa924cd['mapper']['markerNameToElements'](_0x582770['markerName']);if(!_0x4b5af6)return;const {id:_0xcf72af}=this['_splitMarkerName'](_0x582770['markerName']),_0xe9775b=this['_suggestions']['get'](_0xcf72af),_0x2a7fcf=this['_getAttributeKey'](_0xe9775b);if(this['_isBlockAttribute'](_0x2a7fcf)){for(const _0x2e7970 of _0x4b5af6)_0x2e7970['getCustomProperty']('addHighlight')||(_0xa924cd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2e7970),_0xa924cd['writer']['removeAttribute']('data-suggestion',_0x2e7970),_0xa924cd['mapper']['unbindElementFromMarkerName'](_0x2e7970,_0x582770['markerName']));}},{'priority':'high'});}),_0x33c869['model']['document']['registerPostFixer'](_0x41ada3=>{let _0x3e1cb6=!0x1;const _0x589e6f=Array['from'](_0x33c869['model']['document']['differ']['getChangedMarkers']()),_0x5ea269=new Set();for(const {name:_0x5c0b42,data:_0xef131a}of _0x589e6f){const {group:_0x1a46ff,type:_0x173a44,subType:_0x2f9ba0,id:_0x8fb7de}=this['_splitMarkerName'](_0x5c0b42);if('suggestion'!==_0x1a46ff)continue;const _0x51b3ca=this['_suggestions']['get'](_0x8fb7de);if(null!=_0xef131a['newRange']){'formatInline'==_0x173a44&&(_0x3e1cb6=_0x3e1cb6||Et(_0xef131a['newRange'],_0x5c0b42,_0x41ada3,_0x33c869['model']['schema']));const _0x42d975='attribute'==_0x173a44&&this['_isBlockAttribute'](_0x2f9ba0['split']('|')[0x0]);if(_0xef131a['newRange']['isCollapsed']||'$graveyard'==_0xef131a['newRange']['root']['rootName']||'formatBlock'==_0x173a44&&!Ut(_0xef131a['newRange'])||_0x42d975&&!Ut(_0xef131a['newRange'])||'deletion'==_0x173a44&&!(!Tt(_0x4aaece=_0xef131a['newRange'])&&!function(_0xbc0653){return _0xbc0653['start']['parent']==_0xbc0653['end']['nodeBefore']&&_0xbc0653['start']['isAtEnd'];}(_0x4aaece)))_0x41ada3['removeMarker'](_0x5c0b42),_0x3e1cb6=!0x0;else{if(!_0x51b3ca||!_0x51b3ca['isInContent'])continue;_0x5ea269['add'](_0x51b3ca);}}}var _0x4aaece;return _0x5ea269['size']>0x0&&(_0x3e1cb6=!!this['_joinWithAdjacentSuggestions'](_0x5ea269)||_0x3e1cb6),_0x3e1cb6;}),_0x33c869['model']['document']['registerPostFixer'](_0x57a672=>{let _0x54cd44=!0x1;for(const _0x3d3322 of _0x33c869['model']['document']['differ']['getChanges']())if('insert'==_0x3d3322['type'])for(const _0x3426da of this['_suggestions']['values']()){if(_0x3426da['isMultiRange']||!_0x3426da['isInContent'])continue;const _0x1a3316='formatBlock'==_0x3426da['type'],_0x2f16ff=this['_getAttributeKey'](_0x3426da),_0x35c313=_0x2f16ff&&this['_isBlockAttribute'](_0x2f16ff);if(!_0x1a3316&&!_0x35c313)continue;const _0x21e77b=_0x3426da['getFirstRange']();if(_0x21e77b['start']['parent']!=_0x21e77b['end']['parent']&&!_0x21e77b['end']['isAtEnd']){const _0xc75f6a=_0x33c869['model']['createPositionAt'](_0x21e77b['start']['nodeAfter'],'end'),_0x2bd8ac=_0x33c869['model']['createRange'](_0x21e77b['start'],_0xc75f6a);_0x57a672['updateMarker'](_0x3426da['getFirstMarker'](),{'range':_0x2bd8ac}),_0x54cd44=!0x0;}}return _0x54cd44;}),_0x33c869['model']['document']['registerPostFixer'](_0x131df3=>this['_processAttributeChanges'](_0x131df3)),_0x33c869['model']['document']['registerPostFixer'](_0x4b3d52=>!_0x4b3d52['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4b3d52)),_0x33c869['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33c869['model']['document']['on']('change:data',(_0x2bd1f8,_0x4b707a)=>{if(!_0x4b707a['isLocal']||_0x4b707a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x353785=_0x33c869['model']['document']['differ']['getChanges']();if(0x0==_0x353785['length'])return;const _0x36c9fd=[],_0x2807c5=_0x353785['filter'](_0x303d2b=>'attribute'==_0x303d2b['type']),_0x260e58=_0x353785['filter'](_0x5096bd=>'insert'==_0x5096bd['type']&&'$text'!=_0x5096bd['name']),_0x297885=_0x353785['filter'](_0x1bae78=>'remove'==_0x1bae78['type']&&'$text'!=_0x1bae78['name']);for(const _0x215c71 of _0x2807c5)this['_isRegisteredAttribute'](_0x215c71['attributeKey'])&&_0x36c9fd['push']({'key':_0x215c71['attributeKey'],'newValue':_0x215c71['attributeNewValue'],'oldValue':_0x215c71['attributeOldValue'],'range':Ot(_0x215c71['range'],_0x33c869['model'])});for(const _0x4607f7 of _0x260e58){const _0x59eef3=_0x297885['find'](_0x132031=>_0x132031['_element']===_0x4607f7['_element']);if(_0x59eef3){const _0x365e28=Ft(_0x4607f7['position']['nodeAfter'],_0x33c869['model']);_0x59eef3['name']!==_0x4607f7['name']&&_0x36c9fd['push']({'key':m,'newValue':_0x4607f7['name'],'oldValue':_0x59eef3['name'],'range':_0x365e28});for(const [_0x119739,_0x525605]of _0x59eef3['attributes']){if(!this['_isRegisteredAttribute'](_0x119739))continue;const _0x28fe1c=_0x4607f7['attributes']['get'](_0x119739);_0x525605!==_0x28fe1c&&_0x36c9fd['push']({'key':_0x119739,'newValue':_0x28fe1c,'oldValue':_0x525605,'range':_0x365e28});}for(const [_0x5bfbc9,_0x5e8c7b]of _0x4607f7['attributes'])this['_isRegisteredAttribute'](_0x5bfbc9)&&(_0x59eef3['attributes']['has'](_0x5bfbc9)||_0x36c9fd['push']({'key':_0x5bfbc9,'newValue':_0x5e8c7b,'oldValue':null,'range':_0x365e28}));}}0x0!=_0x36c9fd['length']&&_0x33c869['model']['enqueueChange'](_0x4b707a,_0x32779b=>{const _0x2d8899=_0x12a8c4();for(const {range:_0x4dc1c7,key:_0x619f5f,oldValue:_0x4f910b,newValue:_0x5915bd}of _0x36c9fd)this['markAttributeChange'](_0x4dc1c7,_0x619f5f,_0x4f910b,_0x5915bd,{'groupId':_0x2d8899});this['_reduceExistingSuggestions'](_0x32779b,_0x36c9fd);});},{'priority':'lowest'}),_0x33c869['model']['markers']['on']('update:suggestion',(_0x575218,_0x4400cf,_0x475a1c)=>{if(null==_0x475a1c){const {id:_0x1d17d2}=this['_splitMarkerName'](_0x4400cf['name']),_0x7f73d3=this['_suggestions']['get'](_0x1d17d2);_0x7f73d3&&_0x7f73d3['addMarkerName'](_0x4400cf['name']);}}),_0x33c869['model']['document']['on']('change:data',()=>{const _0x30385f=Array['from'](_0x33c869['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46116c=>'suggestion'===this['_splitMarkerName'](_0x46116c['name'])['group']);if(0x0===_0x30385f['length'])return;_0x30385f['sort']((_0x36513b,_0x5ef87a)=>{const _0x21aaed=_0x36513b['data']['oldRange'],_0x1a29b0=_0x5ef87a['data']['oldRange'];return null===_0x21aaed&&null===_0x1a29b0?0x0:null===_0x21aaed&&null!==_0x1a29b0?-0x1:null!==_0x21aaed&&null===_0x1a29b0?0x1:_0x21aaed['start']['isBefore'](_0x1a29b0['start'])?-0x1:0x1;});const _0x3b37f3=new Set(),_0x2b8455=new Set();for(const {name:_0x412d7b,data:_0x23c152}of _0x30385f){const {id:_0x3d62b1}=this['_splitMarkerName'](_0x412d7b);if(null===_0x23c152['oldRange']){const _0x5cf7e3=this['_handleNewSuggestionMarker'](_0x412d7b);_0x2b8455['add'](_0x5cf7e3);}else{const _0x45a512=this['_suggestions']['get'](_0x3d62b1);null!==_0x23c152['newRange']||_0x45a512['isInContent']?(_0x3b37f3['add'](_0x45a512['head']),_0x2b8455['add'](_0x45a512)):this['_removeSuggestion'](_0x45a512);}}_0x2b8455['size']>0x0&&this['_refreshSuggestionsChain'](_0x2b8455);for(const _0x1d2c90 of _0x3b37f3)this['fire']('suggestionChanged',_0x1d2c90);}),_0x33c869['model']['on']('applyOperation',(_0x41df45,_0x445d13)=>{const _0x334bcb=_0x445d13[0x0];if(!this['_suggestions']['size'])return;if(!_0x334bcb['isDocumentOperation'])return;if(_0x334bcb['batch']['isUndo']||!_0x334bcb['batch']['isLocal'])return;let _0x3ebf56,_0x35a9eb;switch(_0x334bcb['type']){case'insert':_0x3ebf56=_0x33c869['model']['createPositionAt'](_0x334bcb['position']),_0x35a9eb=_0x3ebf56['getShiftedBy'](_0x334bcb['howMany']);break;case'split':_0x3ebf56=_0x33c869['model']['createPositionAt'](_0x334bcb['splitPosition']),_0x35a9eb=_0x33c869['model']['createPositionAt'](_0x334bcb['moveTargetPosition']);break;case'move':_0x3ebf56=_0x33c869['model']['createPositionAt'](_0x334bcb['targetPosition']),_0x35a9eb=_0x3ebf56['getShiftedBy'](_0x334bcb['howMany']);break;default:return;}const _0x2af3a1=_0x33c869['model']['createRange'](_0x3ebf56,_0x35a9eb);_0x33c869['model']['change'](()=>{for(const {suggestion:_0x2e841d,meta:_0x2d5861}of this['_findSuggestions'](_0x2af3a1)){if(_0x2e841d['isMultiRange'])continue;if('formatInline'==_0x2e841d['type'])continue;const _0x128d69=this['_getAttributeKey'](_0x2e841d);if(_0x128d69&&this['_isBlockAttribute'](_0x128d69)&&'split'!=_0x334bcb['type'])continue;const _0x82613=_0x2e841d['data']&&_0x2e841d['data']['multipleBlocks'];('formatBlock'!=_0x2e841d['type']||'split'==_0x334bcb['type']&&!_0x82613)&&(_0x2d5861['containsRangeInObject']||'insertion'==_0x2e841d['type']&&_0x2d5861['isOwn']||_0x2e841d['getFirstRange']()['containsRange'](_0x2af3a1)&&this['_breakSuggestionMarker'](_0x2e841d,_0x3ebf56,_0x35a9eb));}});},{'priority':'lowest'}),_0x33c869['model']['on']('deleteContent',(_0x40dc7f,_0x2e2018)=>{const _0x378f98=_0x2e2018[0x0],_0x2c6dce=_0x2e2018[0x1];if(_0x2c6dce&&_0x2c6dce['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x378f98['isCollapsed'])return;const _0x570e6e=_0x33c869['model']['schema'],{start:_0x3a0486,end:_0x2d06f1}=_0x378f98['getFirstRange'](),_0x262f95=_0x3a0486['nodeAfter']&&_0x570e6e['isLimit'](_0x3a0486['nodeAfter'])?null:_0x570e6e['getNearestSelectionRange'](_0x3a0486,'forward'),_0x25f5e5=_0x2d06f1['nodeBefore']&&_0x570e6e['isLimit'](_0x2d06f1['nodeBefore'])?null:_0x570e6e['getNearestSelectionRange'](_0x2d06f1,'backward'),_0x2373b7=_0x33c869['model']['createRange'](_0x262f95?_0x262f95['start']:_0x3a0486,_0x25f5e5?_0x25f5e5['end']:_0x2d06f1);_0x33c869['model']['change'](_0x3647d5=>{this['markDeletion'](_0x2373b7);const _0x43eb27=_0x33c869['model']['schema']['getNearestSelectionRange'](_0x2373b7['start']);_0x378f98['is']('documentSelection')?_0x3647d5['setSelection'](_0x43eb27):_0x378f98['setTo'](_0x43eb27);}),_0x40dc7f['stop']();},{'priority':_0x31cd08['normal']+0xa}),_0x33c869['model']['on']('insertContent',(_0x52ade5,_0x16a90a)=>{const _0x2f8f8a=_0x16a90a[_0x16a90a['length']-0x1];_0x2f8f8a&&_0x2f8f8a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33c869['model']['change'](()=>{let _0x16f2b2=_0x33c869['model']['insertContent'](_0x16a90a[0x0],_0x16a90a[0x1],_0x16a90a[0x2],{'forceDefaultExecution':!0x0});if(!_0x16f2b2)return;_0x52ade5['return']=_0x16f2b2['clone']();const _0x11c581=_0x16f2b2['end']['nodeBefore'],_0x275ac6=_0x33c869['model']['schema'];_0x11c581&&_0x275ac6['isBlock'](_0x11c581)&&!_0x275ac6['isObject'](_0x11c581)&&(_0x16f2b2=_0x33c869['model']['createRange'](_0x16f2b2['start'],_0x33c869['model']['createPositionAt'](_0x11c581,'end'))),this['markInsertion'](_0x16f2b2);}),_0x52ade5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x58c4f2=new $(_0x33c869,this['_suggestions']);_0x33c869['commands']['add']('acceptSuggestion',_0x58c4f2),this['enableCommand']('acceptSuggestion');const _0x14acaf=new B(_0x33c869,this['_suggestions']);_0x33c869['commands']['add']('discardSuggestion',_0x14acaf),this['enableCommand']('discardSuggestion'),_0x33c869['commands']['add']('acceptAllSuggestions',new x(_0x33c869,_0x58c4f2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33c869['commands']['add']('discardAllSuggestions',new x(_0x33c869,_0x14acaf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33c869['commands']['add']('acceptSelectedSuggestions',new R(_0x33c869,_0x58c4f2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33c869['commands']['add']('discardSelectedSuggestions',new R(_0x33c869,_0x14acaf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3ff087=_0x33c869['plugins']['get']('CommentsRepository');this['listenTo'](_0x3ff087,'addComment',(_0x1fadf9,{threadId:_0x37d970})=>{const _0x29773a=this['_suggestions']['get'](_0x37d970);_0x29773a&&_0x29773a['commentThread']&&0x1===_0x29773a['commentThread']['length']&&this['_updateSuggestionData'](_0x37d970,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3ff087,'removeComment',(_0x43d181,{threadId:_0x509177})=>{const _0x11622d=this['_suggestions']['get'](_0x509177);_0x11622d&&_0x11622d['commentThread']&&!_0x11622d['commentThread']['length']&&this['_updateSuggestionData'](_0x509177,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x47dec3){if(this['_adapter'])throw new _0xdb208a('track-changes-adapter-already-set',this);this['_adapter']=_0x47dec3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x20ffa8=!0x1,toJSON:_0x47d4ab=!0x1}={}){const _0x313f1b=[];for(const _0x1788e7 of this['_suggestions']['values']())_0x20ffa8&&!_0x1788e7['isInContent']||_0x313f1b['push'](_0x1788e7);return _0x47d4ab?_0x313f1b['map'](_0x2b8855=>_0x2b8855['toJSON']()):_0x313f1b;}['getSuggestion'](_0x23c1a9){const _0x17c222=this['_suggestions']['get'](_0x23c1a9);if(!_0x17c222)throw new _0xdb208a('track-changes-suggestion-not-found',this);return _0x17c222;}['hasSuggestion'](_0x3c46f6){return this['_suggestions']['has'](_0x3c46f6);}['addSuggestionData'](_0x31538b){const {authorId:_0x18ab47,id:_0x4fd77a,attributes:_0x5563ce}=_0x31538b,[_0x17c596,_0x24c735]=_0x31538b['type']['split'](':'),_0x3ae943=this['_suggestions']['get'](_0x4fd77a)||this['_createSuggestion'](_0x17c596,_0x24c735,_0x4fd77a,_0x18ab47,_0x5563ce);if(this['_addThreadToSuggestion'](_0x3ae943),this['_checkSuggestionCorrectness'](_0x3ae943,_0x17c596,_0x24c735||null,_0x18ab47),_0x3ae943['createdAt']=_0x31538b['createdAt'],_0x3ae943['_isDataLoaded']=!0x0,_0x5563ce&&_0x5563ce['@external']){const _0x10dbd8=_0x5563ce['@external'],_0x173868=this['_getExternalAuthor'](_0x10dbd8['authorName']);_0x3ae943['authoredAt']=_0x10dbd8['createdAt'],_0x3ae943['author']=_0x173868,_0x3ae943['isExternal']=!0x0;}else _0x3ae943['authoredAt']=_0x31538b['createdAt'];switch(_0x31538b['data']&&(_0x3ae943['data']=_0x31538b['data']),_0x31538b['attributes']&&(_0x3ae943['attributes']=_0x31538b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3ae943['_saved']=!0x0),this['_suggestionState']['get'](_0x3ae943)){case'notReady':this['_suggestionState']['set'](_0x3ae943,'dataReady');break;case'markerReady':_0x3ae943['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3ae943])),this['_refreshSuggestionsChain'](new Set([_0x3ae943])),this['_suggestionState']['set'](_0x3ae943,'ready'),this['fire']('suggestionLoaded',_0x3ae943)):this['_suggestionState']['set'](_0x3ae943,'removed');}return _0x3ae943;}['acceptSuggestion'](_0x379524){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x154222 of _0x379524['getAllAdjacentSuggestions']())_0x154222['accept']();});});}['discardSuggestion'](_0x3c9721){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa2599d of _0x3c9721['getAllAdjacentSuggestions']())_0xa2599d['discard']();});});}['enableCommand'](_0x5dd5dc,_0x2b061a){const _0x3751af=this['editor']['commands']['get'](_0x5dd5dc);if(!_0x3751af)throw new _0xdb208a('track-changes-command-not-found',this,{'commandName':_0x5dd5dc});if(this['_enabledCommands']['has'](_0x3751af))throw new _0xdb208a('track-changes-enable-command-twice',this,{'commandName':_0x5dd5dc});this['_enabledCommands']['add'](_0x3751af),_0x2b061a&&_0x3751af['on']('execute',(_0x4f5515,_0x1379ce)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1379ce['length']>0x0&&_0x1379ce[_0x1379ce['length']-0x1]&&_0x1379ce[_0x1379ce['length']-0x1]['forceDefaultExecution']?_0x1379ce['pop']():(_0x4f5515['return']=_0x2b061a((..._0x278586)=>_0x3751af['execute'](..._0x278586,{'forceDefaultExecution':!0x0}),..._0x1379ce),_0x4f5515['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x415fd5){let _0x2ae818,_0x597c90;const _0x32a635=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2ae818=_0x415fd5();}catch(_0x364188){_0x597c90=_0x364188;}return _0x32a635||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x597c90&&_0xdb208a['rethrowUnexpectedError'](_0x597c90,this),_0x2ae818;}['markInsertion'](_0x8b69d4,_0x3f8f25=null,_0x1d8b5f={}){if(_0x8b69d4['isCollapsed'])return null;const _0x4e6428=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x51ca1d,meta:_0x43398e}of this['_findSuggestions'](_0x8b69d4,'insertion'))if(_0x43398e['isOwn']){if(!_0x43398e['isNextTo']){if(_0x43398e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x51ca1d,_0x1d8b5f))continue;return _0x51ca1d;}if(Lt(_0x51ca1d,_0x1d8b5f))return _0x51ca1d;this['_breakSuggestionMarker'](_0x51ca1d,_0x8b69d4['start'],_0x8b69d4['end']);break;}if(_0x3f8f25==_0x51ca1d['subType']&&Lt(_0x51ca1d,_0x1d8b5f)){const _0x374a88=_0x51ca1d['getFirstRange']();return _0x374a88['start']['isEqual'](_0x8b69d4['end'])?this['_setSuggestionRange'](_0x51ca1d,this['_model']['createRange'](_0x8b69d4['start'],_0x374a88['end'])):this['_setSuggestionRange'](_0x51ca1d,this['_model']['createRange'](_0x374a88['start'],_0x8b69d4['end'])),_0x51ca1d;}}const _0x28359f=_0x12a8c4(),_0x23f62c=_0x4e6428['id'],_0x2ccadf=_0x3f8f25?'insertion:'+_0x3f8f25:'insertion',_0x52e168=this['_setSuggestionData']({'id':_0x28359f,'type':_0x2ccadf,'createdAt':new Date(),'authorId':_0x23f62c,'attributes':_0x1d8b5f});return this['_addSuggestionMarker'](_0x2ccadf,_0x28359f,_0x23f62c,_0x8b69d4),_0x52e168;}['markMultiRangeInsertion'](_0x4a9560,_0x2d9f29='multi',_0x4686d8={}){const _0xf0be81=this['editor']['plugins']['get']('Users')['me'],_0x55ab2b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d9f29,'join');for(const _0x73dd72 of this['getSuggestions']())if(_0x73dd72['author']['id']==_0xf0be81['id']&&'insertion'==_0x73dd72['type']&&_0x73dd72['subType']==_0x2d9f29&&Lt(_0x73dd72,_0x4686d8)&&(_0x55ab2b(_0x73dd72['getRanges'](),_0x4a9560)||_0x55ab2b(_0x4a9560,_0x73dd72['getRanges']()))){for(const _0x282a92 of _0x4a9560)_0x73dd72['addRange'](_0x282a92);return _0x73dd72;}for(const {suggestion:_0x39b432,meta:_0x4eb240}of this['_findSuggestions'](_0x4a9560,'insertion')){if(!_0x4eb240['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4eb240['containsRangeInObject'])continue;if(!Lt(_0x39b432,_0x4686d8))continue;let _0x22c635=!0x0;for(const _0x1a91de of _0x39b432['getRanges']())for(const _0x3e9686 of _0x4a9560)if(!_0x1a91de['containsRange'](_0x3e9686)){_0x22c635=!0x1;break;}if(_0x22c635)return _0x39b432;}const _0x49dc66=_0x12a8c4(),_0x535914=_0xf0be81['id'],_0x2bf4b3='insertion:'+_0x2d9f29,_0x4e8a81=this['_setSuggestionData']({'id':_0x49dc66,'type':_0x2bf4b3,'createdAt':new Date(),'authorId':_0x535914,'attributes':_0x4686d8});for(const _0x4cf7d9 of _0x4a9560)this['_addSuggestionMarker'](_0x2bf4b3,_0x49dc66,_0x535914,_0x4cf7d9,u['getMultiRangeId']());return _0x4e8a81;}['markInlineFormat'](_0x481a05,_0x284322,_0x3f51e5=null,_0x460eaf={}){if(_0x3f51e5=_0x3f51e5||Vt(_0x284322),_0x481a05['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x320411=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f51e5,'accept');return this['forceDefaultExecution'](()=>_0x320411([_0x481a05],_0x284322,_0x460eaf)),null;}const _0x370ca7=this['editor']['plugins']['get']('Users')['me'],_0x5a896c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x23eede,meta:_0x8792f6}of this['_findSuggestions'](_0x481a05,'insertion'))_0x8792f6['isOwn']&&!_0x8792f6['isInsideObject']&&_0x5a896c['push'](..._0x23eede['getRanges']());}const _0x5000a7=function(_0x4e9781,_0x77be33){const _0x2b7e1b=[];for(const _0xc85eb5 of _0x77be33){const _0x368f9b=_0x4e9781['getIntersection'](_0xc85eb5);_0x368f9b&&_0x2b7e1b['push'](_0x368f9b);}return _0x2b7e1b;}(_0x481a05,_0x5a896c),_0x47a626=function(_0xecb211,_0x1345bc){const _0x52e333=[_0xecb211];for(const _0x1a3daa of _0x1345bc){let _0x2fd631=0x0;for(;_0x2fd631<_0x52e333['length'];){const _0x2ab577=_0x52e333[_0x2fd631]['getDifference'](_0x1a3daa);_0x52e333['splice'](_0x2fd631,0x1,..._0x2ab577),_0x2fd631+=_0x2ab577['length'];}}return _0x52e333;}(_0x481a05,_0x5a896c);_0x5000a7['length']&&this['_model']['change'](()=>{for(const _0x4c5b22 of _0x5000a7){const _0x351459=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f51e5,'accept');this['forceDefaultExecution'](()=>_0x351459([_0x4c5b22],_0x284322,_0x460eaf));}});for(const _0x3dbbc7 of _0x47a626){let _0x37182b=null,_0xfc84ec=_0x3dbbc7['start'],_0x2801f1=_0x3dbbc7['end'];for(const {suggestion:_0xa2510a,meta:_0x542cd1}of this['_findSuggestions'](_0x3dbbc7,'formatInline')){if(!_0x542cd1['isOwn'])continue;if(_0xa2510a['subType']!=_0x3f51e5)continue;if(!Lt(_0xa2510a,_0x460eaf))continue;const _0xbd946c=_0xa2510a['getFirstRange']();if(_0xbd946c['containsRange'](_0x3dbbc7,!0x0))return null;_0xfc84ec=_0xfc84ec['isBefore'](_0xbd946c['start'])?_0xfc84ec:_0xbd946c['start'],_0x2801f1=_0x2801f1['isAfter'](_0xbd946c['end'])?_0x2801f1:_0xbd946c['end'],_0x37182b?_0xbd946c['start']['isBefore'](_0x37182b['getFirstRange']()['start'])?(_0x37182b['removeMarkers'](),_0x37182b=_0xa2510a):_0xa2510a['removeMarkers']():_0x37182b=_0xa2510a;}const _0x3b22df=this['_model']['createRange'](_0xfc84ec,_0x2801f1);if(_0x37182b)this['_setSuggestionRange'](_0x37182b,_0x3b22df);else{const _0x513ab8=_0x12a8c4(),_0x50df68=_0x370ca7['id'];this['_setSuggestionData']({'id':_0x513ab8,'type':'formatInline:'+_0x3f51e5,'data':_0x284322,'createdAt':new Date(),'authorId':_0x50df68,'attributes':_0x460eaf}),this['_addSuggestionMarker']('formatInline:'+_0x3f51e5,_0x513ab8,_0x50df68,_0x3b22df);}}return null;}['markBlockFormat'](_0x51e480,_0x199e62,_0x211dd0=[],_0x36928e=null,_0x459c74={}){_0x199e62['formatGroupId']||(_0x199e62['formatGroupId']=_0x199e62['commandName']),_0x199e62['multipleBlocks']=_0x51e480['is']('range'),_0x36928e=_0x36928e||Vt(_0x199e62);const _0x9a6ed8=_0x211dd0['map'](_0x2a8799=>Ft(_0x2a8799,this['_model'])),_0x19e8b3=_0x51e480['is']('range')?_0x51e480:Ft(_0x51e480,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5ac20a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36928e,'accept');return this['forceDefaultExecution'](()=>_0x5ac20a([_0x19e8b3],_0x199e62,_0x459c74)),null;}_0x9a6ed8['push'](_0x19e8b3);let _0x1f781e=!0x0;for(const _0x5d4ba6 of _0x9a6ed8)if(!this['_rangeIsInLocalUserInsertion'](_0x5d4ba6)){_0x1f781e=!0x1;break;}if(_0x1f781e&&'always'!==this['_trackFormatChanges']){const _0x767e31=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36928e,'accept');return this['forceDefaultExecution'](()=>_0x767e31([_0x19e8b3],_0x199e62,_0x459c74)),null;}let _0x39aa8e=null,_0x69e560=_0x19e8b3['start'],_0x5a0bc4=_0x19e8b3['end'];for(const {suggestion:_0x47083c,meta:_0x3ba839}of this['_findSuggestions'](_0x19e8b3,'formatBlock')){if(!_0x3ba839['isOwn'])continue;if(_0x3ba839['isNextTo']||_0x3ba839['containsRangeInObject']||_0x3ba839['isInsideObject'])continue;if(_0x47083c['data']['formatGroupId']!=_0x199e62['formatGroupId'])continue;if(!Lt(_0x47083c,_0x459c74))continue;const _0x126a8f=_0x47083c['getFirstRange']();if(_0x47083c['subType']==_0x36928e){if(_0x126a8f['containsRange'](_0x19e8b3,!0x0))return null;_0x69e560=_0x69e560['isBefore'](_0x126a8f['start'])?_0x69e560:_0x126a8f['start'],_0x5a0bc4=_0x5a0bc4['isAfter'](_0x126a8f['end'])?_0x5a0bc4:_0x126a8f['end'],_0x39aa8e?_0x126a8f['start']['isBefore'](_0x39aa8e['getFirstRange']()['start'])?(_0x39aa8e['removeMarkers'](),_0x39aa8e=_0x47083c):_0x47083c['removeMarkers']():_0x39aa8e=_0x47083c;}else{const _0x432907=_0x19e8b3['getIntersection'](_0x126a8f);this['_cutOutSuggestionMarker'](_0x47083c,_0x432907);}}const _0x42c994=this['editor']['plugins']['get']('Users')['me'],_0x5dc042=_0x12a8c4(),_0x17860b=_0x42c994['id'];if(_0x39aa8e)return this['_setSuggestionRange'](_0x39aa8e,this['_model']['createRange'](_0x69e560,_0x5a0bc4)),_0x39aa8e;{const _0x3072d4=this['_setSuggestionData']({'id':_0x5dc042,'type':'formatBlock:'+_0x36928e,'data':_0x199e62,'createdAt':new Date(),'authorId':_0x17860b,'attributes':_0x459c74});return this['_addSuggestionMarker']('formatBlock:'+_0x36928e,_0x5dc042,_0x17860b,this['_model']['createRange'](_0x69e560,_0x5a0bc4)),_0x3072d4;}}['markMultiRangeBlockFormat'](_0x433d7f,_0x43157a,_0x59d06d=[],_0x1c4520=null,_0x140e94={}){_0x43157a['formatGroupId']||(_0x43157a['formatGroupId']=_0x43157a['commandName']);const _0x217fb6=_0x433d7f[0x0];_0x43157a['multipleBlocks']=_0x217fb6['is']('range'),_0x1c4520=_0x1c4520||Vt(_0x43157a);const _0x5a3918=_0x59d06d['map'](_0x2ae45d=>Ft(_0x2ae45d,this['_model'])),_0xdc3ac8=_0x217fb6['is']('range')?_0x433d7f:_0x433d7f['map'](_0x11a735=>Ft(_0x11a735,this['_model']));if('never'===this['_trackFormatChanges']){const _0x34b977=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c4520,'accept');return this['forceDefaultExecution'](()=>_0x34b977(_0xdc3ac8,_0x43157a,_0x140e94)),null;}_0x5a3918['push'](..._0xdc3ac8);let _0x5d6ff8=!0x0;for(const _0x1721d2 of _0x5a3918)if(!this['_rangeIsInLocalUserInsertion'](_0x1721d2)){_0x5d6ff8=!0x1;break;}if(_0x5d6ff8&&'always'!==this['_trackFormatChanges']){const _0x4582db=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c4520,'accept');return this['forceDefaultExecution'](()=>_0x4582db(_0xdc3ac8,_0x43157a,_0x140e94)),null;}const _0x597612=this['editor']['plugins']['get']('Users')['me'];for(const _0x368327 of this['getSuggestions']()){if(_0x368327['author']['id']!=_0x597612['id'])continue;if('formatBlock'!=_0x368327['type']||_0x368327['data']['formatGroupId']!=_0x43157a['formatGroupId'])continue;if(!Lt(_0x368327,_0x140e94))continue;const _0x5d5e85=_0x368327['subType']==_0x1c4520;for(let _0x41aacd=0x0;_0x41aacd<_0xdc3ac8['length'];_0x41aacd++){const _0x18e3b4=_0xdc3ac8[_0x41aacd];for(const _0x2f6610 of _0x368327['getMarkers']()){const _0x5a54d0=_0x2f6610['getRange']();if(_0x18e3b4['isEqual'](_0x5a54d0)){_0x5d5e85?(_0xdc3ac8['splice'](_0x41aacd,0x1),_0x41aacd--):_0x368327['removeMarker'](_0x2f6610['name']);break;}}}}if(0x0==_0xdc3ac8['length'])return null;const _0x13e6ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c4520,'join');for(const _0x2123e1 of this['getSuggestions']())if(_0x2123e1['author']['id']==_0x597612['id']&&'formatBlock'==_0x2123e1['type']&&_0x2123e1['data']['formatGroupId']==_0x43157a['formatGroupId']&&_0x2123e1['subType']==_0x1c4520&&Lt(_0x2123e1,_0x140e94)&&(_0x13e6ac(_0x2123e1['getRanges'](),_0xdc3ac8)||_0x13e6ac(_0xdc3ac8,_0x2123e1['getRanges']()))){for(const _0x3ce9fa of _0xdc3ac8)_0x2123e1['addRange'](_0x3ce9fa);return _0x2123e1;}const _0x2a8670=_0x12a8c4(),_0x4329f4=_0x597612['id'],_0x59bd0d='formatBlock:'+_0x1c4520,_0x49bcfb=this['_setSuggestionData']({'id':_0x2a8670,'type':_0x59bd0d,'data':_0x43157a,'createdAt':new Date(),'authorId':_0x4329f4,'attributes':_0x140e94});for(const _0x29d1cb of _0xdc3ac8)this['_addSuggestionMarker'](_0x59bd0d,_0x2a8670,_0x4329f4,_0x29d1cb,u['getMultiRangeId']());return _0x49bcfb;}['markDeletion'](_0x51333e,_0x2f38c1=null,_0x3f7c2a={}){if(_0x51333e['isCollapsed'])return null;const _0x3a317c=this['editor']['plugins']['get']('Users')['me'],_0xe62d6c=new _0x4fddfe(_0x51333e['start'],_0x51333e['end']);for(const {suggestion:_0x50609b,meta:_0x130a14}of this['_findSuggestions'](_0xe62d6c,'insertion'))if(_0x130a14['isOwn']&&!_0x130a14['isNextTo']){if(_0x50609b['isMultiRange']){const _0x4c4614=_0x50609b['getRanges']()['filter'](_0x9eb06c=>'$graveyard'!=_0x9eb06c['root']['rootName']);_0x4c4614['every'](_0x3c2e2b=>_0xe62d6c['containsRange'](_0x3c2e2b,!0x0))&&_0x50609b['discard']();if(_0x4c4614['some'](_0x3e696e=>_0x3e696e['containsRange'](_0xe62d6c,!0x0))){const _0x4a24d2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f38c1,'accept');return this['forceDefaultExecution'](()=>_0x4a24d2([_0xe62d6c],null,_0x3f7c2a)),null;}}else{const _0x5e1e04=_0xe62d6c['getIntersection'](_0x50609b['getFirstRange']());null!==_0x5e1e04&&_0x50609b['_onDiscard']([_0x5e1e04],null,_0x3f7c2a);}}if(_0xe62d6c['detach'](),_0xe62d6c['isCollapsed']||'$graveyard'==_0xe62d6c['root']['rootName'])return null;let _0x1526b1=null,_0x83f609=_0xe62d6c['start'],_0x12a855=_0xe62d6c['end'];const _0x336834=this['_findSuggestions'](_0xe62d6c,'deletion');for(const {suggestion:_0x193a0f,meta:_0x511810}of _0x336834){const _0xd55122=this['_model']['createRange'](_0x83f609,_0x12a855);if(_0x511810['isOwn']&&(this['_mergeNestedSuggestions']||!_0x511810['containsRangeInObject']&&!_0x511810['isInsideObject'])){if(_0x193a0f['isMultiRange']){if(!Lt(_0x193a0f,_0x3f7c2a))continue;let _0x191962=!0x0;for(const _0x2270ae of _0x193a0f['getRanges']()){if(_0x2270ae['containsRange'](_0xd55122,!0x0))return _0x193a0f;_0xd55122['containsRange'](_0x2270ae)||(_0x191962=!0x1);}_0x191962&&_0x193a0f['discard']();}else{const _0x48eb2e=_0x193a0f['getFirstRange']();if(_0x48eb2e['containsRange'](_0xd55122,!0x0))return _0x193a0f;if(!Lt(_0x193a0f,_0x3f7c2a)){_0xd55122['containsRange'](_0x48eb2e)?_0x193a0f['removeMarkers']():_0x48eb2e['containsPosition'](_0x83f609)?_0x83f609=_0x48eb2e['end']:_0x48eb2e['containsPosition'](_0x12a855)&&(_0x12a855=_0x48eb2e['start']);continue;}_0x83f609=_0x83f609['isBefore'](_0x48eb2e['start'])?_0x83f609:_0x48eb2e['start'],_0x12a855=_0x12a855['isAfter'](_0x48eb2e['end'])?_0x12a855:_0x48eb2e['end'],_0x3f7c2a=Object['assign']({},_0x193a0f['attributes']),_0x1526b1?_0x48eb2e['start']['isBefore'](_0x1526b1['getFirstRange']()['start'])?(_0x1526b1['removeMarkers'](),_0x1526b1=_0x193a0f):_0x193a0f['removeMarkers']():_0x1526b1=_0x193a0f;}}}if(_0x1526b1)return this['_setSuggestionRange'](_0x1526b1,this['_model']['createRange'](_0x83f609,_0x12a855)),_0x1526b1;{const _0x2f8271=_0x12a8c4(),_0x1ae166=this['_model']['createRange'](_0x83f609,_0x12a855),_0x4c4da3=_0x3a317c['id'],_0x18c21d=_0x2f38c1?'deletion:'+_0x2f38c1:'deletion',_0x1cc03d=this['_setSuggestionData']({'id':_0x2f8271,'type':_0x18c21d,'createdAt':new Date(),'authorId':_0x4c4da3,'attributes':_0x3f7c2a});return this['_addSuggestionMarker'](_0x18c21d,_0x2f8271,_0x4c4da3,_0x1ae166),_0x1cc03d;}}['markMultiRangeDeletion'](_0x211ba5,_0x18f719='multi',_0x14ad28={}){const _0x4993dc=this['editor']['plugins']['get']('Users')['me'],_0x4221b0=_0x211ba5['map'](_0x468aae=>new _0x4fddfe(_0x468aae['start'],_0x468aae['end'])),_0x43107e=new Set();for(const {suggestion:_0x3f7315,meta:_0x4ffcea}of this['_findSuggestions'](_0x4221b0,'insertion'))_0x4ffcea['isOwn']&&!_0x4ffcea['isNextTo']&&_0x43107e['add'](_0x3f7315);for(const _0x340c48 of _0x43107e)if(_0x340c48['isMultiRange']){const _0x7f397e=_0x340c48['getRanges']();(!_0x340c48['attributes']||!_0x340c48['attributes']['skipNestingCheck'])&&(_0x7f397e['every'](_0x114d60=>_0x4221b0['some'](_0x6113bb=>_0x6113bb['containsRange'](_0x114d60,!0x0)))&&_0x340c48['discard']());if(_0x4221b0['every'](_0x164156=>_0x7f397e['some'](_0x529b72=>_0x529b72['containsRange'](_0x164156,!0x0)))){const _0x52e3fe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18f719,'accept');return this['forceDefaultExecution'](()=>_0x52e3fe(_0x211ba5,null,_0x14ad28)),null;}}else{const _0x17287f=_0x340c48['getFirstRange']();_0x4221b0['some'](_0x397997=>_0x397997['containsRange'](_0x17287f,!0x0))&&_0x340c48['discard']();if(_0x4221b0['every'](_0x2c94ef=>_0x17287f['containsRange'](_0x2c94ef,!0x0))){const _0x5230e7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18f719,'accept');return this['forceDefaultExecution'](()=>_0x5230e7(_0x4221b0,null,_0x14ad28)),null;}}const _0x2c7050=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18f719,'join');let _0x57f57a=null;for(const _0x26ff21 of this['getSuggestions']())if(_0x26ff21['author']['id']==_0x4993dc['id']&&_0x26ff21['isInContent']&&'deletion'==_0x26ff21['type']&&_0x26ff21['subType']==_0x18f719&&Lt(_0x26ff21,_0x14ad28)&&(_0x2c7050(_0x26ff21['getRanges'](),_0x4221b0)||_0x2c7050(_0x4221b0,_0x26ff21['getRanges']()))){if(_0x57f57a){if(_0x26ff21['commentThread']&&_0x26ff21['commentThread']['length'])continue;for(const _0x1872e8 of _0x26ff21['getRanges']())_0x57f57a['isIntersectingWithRange'](_0x1872e8)||_0x57f57a['addRange'](_0x1872e8);_0x26ff21['removeMarkers']();}else{_0x57f57a=_0x26ff21;for(const _0x3f7ffa of _0x4221b0)_0x26ff21['isIntersectingWithRange'](_0x3f7ffa)||_0x26ff21['addRange'](_0x3f7ffa);}}if(_0x57f57a)return _0x57f57a;_0x43107e['clear']();for(const {suggestion:_0x5be978,meta:_0x425939}of this['_findSuggestions'](_0x4221b0,'deletion'))_0x425939['isOwn']&&(this['_mergeNestedSuggestions']||!_0x425939['containsRangeInObject']&&!_0x425939['isInsideObject'])&&Lt(_0x5be978,_0x14ad28)&&_0x43107e['add'](_0x5be978);for(const _0x2c9a6f of _0x43107e){const _0x558d5e=_0x2c9a6f['getRanges']();if(!_0x14ad28||!_0x14ad28['skipNestingCheck']){if(_0x4221b0['every'](_0x441c41=>_0x558d5e['some'](_0x117c95=>_0x117c95['containsRange'](_0x441c41,!0x0))))return _0x2c9a6f;}(!_0x2c9a6f['attributes']||!_0x2c9a6f['attributes']['skipNestingCheck'])&&(_0x558d5e['every'](_0x46b8da=>_0x4221b0['some'](_0x1d288e=>_0x1d288e['containsRange'](_0x46b8da,!0x0)))&&_0x2c9a6f['discard']());}const _0x23504d=_0x12a8c4(),_0x18e01f=_0x4993dc['id'],_0x369a11='deletion:'+_0x18f719,_0x4d1787=this['_setSuggestionData']({'id':_0x23504d,'type':_0x369a11,'createdAt':new Date(),'authorId':_0x18e01f,'attributes':_0x14ad28});for(const _0x1eeee3 of _0x4221b0)_0x1eeee3['detach'](),_0x1eeee3['isCollapsed']||'$graveyard'==_0x1eeee3['root']['rootName']||this['_addSuggestionMarker'](_0x369a11,_0x23504d,_0x18e01f,_0x1eeee3,u['getMultiRangeId']());return _0x4d1787;}['markAttributeChange'](_0x55a5b3,_0x5c4352,_0x32c436,_0x25706b,_0x2add79){if(_0x55a5b3['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4dbbfc=this['editor']['plugins']['get']('Users')['me']['id'],_0x109f7d=Array['from'](this['_suggestions']['values']())['filter'](_0x49a073=>'attribute'==_0x49a073['type']&&_0x49a073['data']['key']==_0x5c4352&&_0x49a073['isIntersectingWithRange'](_0x55a5b3));if('default'===this['_trackFormatChanges']){const _0x29c833=this['_findSuggestions'](_0x55a5b3,'insertion')['filter'](({meta:_0x5bbc1d})=>_0x5bbc1d['isOwn']&&!_0x5bbc1d['isInsideObject']&&!_0x5bbc1d['isNextTo'])['map'](({suggestion:_0x556d0c})=>_0x556d0c);_0x109f7d['unshift'](..._0x29c833);}const _0x133f1f=new Map([[_0x55a5b3,_0x32c436]]);for(const _0x2127fe of _0x109f7d){const _0x5d8d33='attribute'==_0x2127fe['type']?_0x2127fe['data']['oldValue']:void 0x0,_0xef71fb=_0x2127fe['getFirstRange'](),_0x4fc44d=Array['from'](_0x133f1f['keys']())['find'](_0x40e3ff=>_0x40e3ff['isIntersecting'](_0xef71fb));if(!_0x4fc44d)continue;const _0x4c70c8=_0x4fc44d['getDifference'](_0xef71fb);this['_isBlockAttribute'](_0x5c4352)&&'insertion'==_0x2127fe['type']&&0x0!=_0x4c70c8['length']||(_0x133f1f['delete'](_0x4fc44d),_0x4c70c8['forEach'](_0x384602=>{_0x133f1f['set'](_0x384602,_0x32c436);}),'insertion'!=_0x2127fe['type']&&_0x5d8d33!=_0x25706b&&_0x133f1f['set'](_0x4fc44d['getIntersection'](_0xef71fb),_0x5d8d33));}const _0x44cec4=[];for(const [_0x3e0e19,_0x48b884]of _0x133f1f){const _0x4e3de8=_0x12a8c4(),_0x174b29={'key':_0x5c4352,'oldValue':_0x48b884,'newValue':_0x25706b};_0x5c4352['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':_0x5c4352});const _0x2807cd=('attribute:'+(_0x5c4352+'|'+Vt({'newValue':_0x25706b})))['substring'](0x0,0x3c),_0x4b7345=this['_setSuggestionData']({'id':_0x4e3de8,'type':_0x2807cd,'data':_0x174b29,'createdAt':new Date(),'authorId':_0x4dbbfc,'attributes':_0x2add79});_0x44cec4['push'](_0x4b7345),this['_addSuggestionMarker'](_0x2807cd,_0x4e3de8,_0x4dbbfc,_0x3e0e19);}return _0x44cec4;}['enableDefaultAttributesIntegration'](_0x2310a5){this['enableCommand'](_0x2310a5,(_0x3d3f20,..._0x89404)=>{this['_recordAttributeChanges'](()=>{_0x3d3f20(..._0x89404);});});}['registerBlockAttribute'](_0x58a98b){this['_blockAttributeKeys']['add'](_0x58a98b);}['registerInlineAttribute'](_0x4742d9){this['_inlineAttributeKeys']['add'](_0x4742d9);}['_getAttributeKey'](_0x44ae32){return'attribute'==_0x44ae32['type']?_0x44ae32['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3a9537,_0x14caee){const _0x2bff99=_0x3a9537['getFirstMarker']();this['_model']['change'](_0x5e9d36=>{_0x5e9d36['updateMarker'](_0x2bff99,{'range':_0x14caee});});}['_addThreadToSuggestion'](_0x5b125f){const _0x4da151=_0x5b125f['id'],_0x5215e2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4da151)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5215e2,'threadId':_0x4da151,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x24ea66=this['_commentsRepository']['getCommentThread'](_0x4da151);_0x24ea66['unbind']('isRemovable'),_0x24ea66['isRemovable']=!0x1,_0x5b125f['commentThread']=_0x24ea66;}['_checkSuggestionCorrectness'](_0x4e85f7,_0x3897d7,_0x19688a,_0x8113f0){if(_0x4e85f7['type']!=_0x3897d7||_0x4e85f7['subType']!=_0x19688a||_0x4e85f7['creator']['id']!=_0x8113f0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xdb208a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x348060,_0xe93e24){const _0x578184=_0x348060['getFirstRange']();if(_0xe93e24['isEqual'](_0x578184))_0x348060['removeMarkers']();else{if(_0x578184['containsRange'](_0xe93e24)){const _0x5afcc8=this['_model']['createPositionAt'](_0xe93e24['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x348060,this['_model']['createRange'](_0x578184['start'],_0x5afcc8));const _0x1d66ad=_0x12a8c4(),_0x53eeb8=_0x348060['creator']['id'],_0x59d5b7=_0x348060['type']+':'+_0x348060['subType'];this['_setSuggestionData']({'id':_0x1d66ad,'type':_0x59d5b7,'createdAt':new Date(),'authorId':_0x53eeb8,'data':_0x348060['data'],'attributes':_0x348060['attributes']});const _0x3b2ee4=this['_model']['createPositionAt'](_0xe93e24['end']['parent'],'after'),_0xee57e9=this['_model']['createRange'](_0x3b2ee4,_0x578184['end']);this['_addSuggestionMarker'](_0x59d5b7,_0x1d66ad,_0x53eeb8,_0xee57e9);}else{if(_0x578184['containsPosition'](_0xe93e24['start'])){const _0x4df2f6=this['_model']['createPositionAt'](_0xe93e24['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x348060,this['_model']['createRange'](_0x578184['start'],_0x4df2f6));}else{const _0x541b29=this['_model']['createPositionAt'](_0xe93e24['end']['parent'],'after');this['_setSuggestionRange'](_0x348060,this['_model']['createRange'](_0x541b29,_0x578184['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x23d779){for(const {suggestion:_0x5dbc85,meta:_0x596da7}of this['_findSuggestions'](_0x23d779,'insertion')){if(!_0x596da7['isOwn'])continue;const _0x5522bb=_0x5dbc85['getRanges']();for(const _0x6a6195 of _0x5522bb)if(!_0x23d779['getDifference'](_0x6a6195)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4b09d9){const _0x2df0fe=this['editor']['plugins']['get']('Users')['getUser'](_0x4b09d9);if(!_0x2df0fe)throw new _0xdb208a('track-changes-user-not-found',this);return _0x2df0fe;}['_getExternalAuthor'](_0x45fa0f){const _0x2f27a8=this['editor']['plugins']['get']('Users'),_0x4e27a3=_0x1984cc('external:'+_0x45fa0f),_0x46060d=_0x2f27a8['getUser'](_0x4e27a3);return _0x46060d||_0x2f27a8['addUser']({'id':_0x4e27a3,'name':_0x45fa0f});}['_createSuggestion'](_0x53acd8,_0x59d16e,_0x3c511c,_0x2461ad,_0x4a5842){const _0x2c6e07=this['_getAuthorFromId'](_0x2461ad),_0x2649b8=this['_suggestionFactory']['buildSuggestion'](_0x53acd8,_0x59d16e,_0x3c511c,_0x2c6e07,_0x4a5842,_0x2a63db=>{this['_updateSuggestionData'](_0x3c511c,{'attributes':_0x2a63db});const _0x15ebd1=this['getSuggestion'](_0x3c511c);this['_joinWithAdjacentSuggestions'](new Set([_0x15ebd1])),this['_refreshSuggestionsChain'](new Set([_0x15ebd1]));});return this['listenTo'](_0x2649b8,'accept',()=>{this['_updateSuggestionData'](_0x3c511c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2649b8,'discard',()=>{this['_updateSuggestionData'](_0x3c511c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3c511c,_0x2649b8),this['_suggestionState']['set'](_0x2649b8,'notReady'),_0x2649b8;}['_splitMarkerName'](_0x56ef19){const _0xa94326=_0x56ef19['split'](':');return{'group':_0xa94326[0x0],'type':_0xa94326[0x1],'subType':_0xa94326['length']>=0x5?_0xa94326[0x2]:null,'id':_0xa94326['length']<0x5?_0xa94326[0x2]:_0xa94326[0x3],'authorId':_0xa94326['length']<0x5?_0xa94326[0x3]:_0xa94326[0x4],'markerCount':0x6==_0xa94326['length']?_0xa94326[0x5]:null};}['_breakSuggestionMarker'](_0x488605,_0x138a00,_0x52f37c){const _0x3a913=_0x488605['getFirstRange'](),_0x14fbd6=_0x3a913['start'],_0xf3ce01=_0x3a913['end'];this['_setSuggestionRange'](_0x488605,this['_model']['createRange'](_0x14fbd6,_0x138a00));const _0x121890=_0x12a8c4(),_0x1153d4=_0x488605['creator']['id'],_0x3e5793=_0x488605['type']+(_0x488605['subType']?':'+_0x488605['subType']:'');this['_setSuggestionData']({'id':_0x121890,'type':_0x3e5793,'createdAt':new Date(),'authorId':_0x1153d4,'originalSuggestionId':_0x488605['id'],'attributes':_0x488605['attributes'],'data':_0x488605['data']});const _0x51c4c=this['_getAttributeKey'](_0x488605);('formatBlock'==_0x488605['type']||_0x51c4c&&this['_isBlockAttribute'](_0x51c4c))&&(_0x52f37c=this['_model']['createPositionBefore'](_0x52f37c['parent'])),this['_addSuggestionMarker'](_0x3e5793,_0x121890,_0x1153d4,this['_model']['createRange'](_0x52f37c,_0xf3ce01));}['_findSuggestions'](_0x379875,_0x8100d9=null){const _0x26f63e=[],_0x41fcf5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x379875)||(_0x379875=[_0x379875]);for(const _0x2336a9 of this['getSuggestions']()){if(!_0x2336a9['isInContent'])continue;if(_0x8100d9&&_0x2336a9['type']!=_0x8100d9)continue;let _0x501c58=!0x1;for(const _0x1892c0 of _0x2336a9['getRanges']()){for(const _0x5229d7 of _0x379875){const _0x15d13a=_0x5229d7['start']['isEqual'](_0x1892c0['end'])||_0x5229d7['end']['isEqual'](_0x1892c0['start']);if(_0x15d13a||_0x5229d7['getIntersection'](_0x1892c0)){const _0x4eedcd=_0x5229d7['containsRange'](_0x1892c0)&&Rt(this['_model']['schema'],_0x1892c0['start'],_0x5229d7),_0x5914d3=_0x1892c0['containsRange'](_0x5229d7)&&Rt(this['_model']['schema'],_0x5229d7['start'],_0x1892c0);_0x26f63e['push']({'suggestion':_0x2336a9,'meta':{'isOwn':_0x41fcf5==_0x2336a9['author'],'isNextTo':_0x15d13a,'isInsideObject':_0x4eedcd,'containsRangeInObject':_0x5914d3}}),_0x501c58=!0x0;break;}}if(_0x501c58)break;}}return _0x26f63e;}['_addSuggestionMarker'](_0x5c2e37,_0x290ea3,_0x1b8cd0,_0x1064ef,_0x58d145){this['_model']['change'](_0x266e50=>{let _0x26e7b3='suggestion:'+_0x5c2e37+':'+_0x290ea3+':'+_0x1b8cd0;_0x58d145&&(_0x26e7b3=_0x26e7b3+':'+_0x58d145),_0x266e50['addMarker'](_0x26e7b3,{'range':_0x1064ef,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xd3b9fd){const _0x29b4d2=_0xd3b9fd['previous'],_0x174f9d=_0xd3b9fd['next'];_0xd3b9fd['previous']=null,_0xd3b9fd['next']=null,null!=_0x29b4d2&&_0x29b4d2['next']==_0xd3b9fd&&(_0x29b4d2['next']=_0x174f9d),null!=_0x174f9d&&_0x174f9d['previous']==_0xd3b9fd&&(_0x174f9d['previous']=_0x29b4d2),'ready'==this['_suggestionState']['get'](_0xd3b9fd)&&(this['_suggestionState']['set'](_0xd3b9fd,'removed'),this['fire']('suggestionUnloaded',_0xd3b9fd,_0x29b4d2,_0x174f9d));}['_setSuggestionData'](_0x4e0bdf){const _0x3dd0a2=_0x4e0bdf['id'],_0x582ebb=this['addSuggestionData'](_0x4e0bdf);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x459293=this['editor']['plugins']['get']('PendingActions'),_0x2dae5a=_0x582ebb['hasComments'],_0x5c24e0=_0x582ebb['subType']?_0x582ebb['type']+':'+_0x582ebb['subType']:_0x582ebb['type'],_0x18f378=this['editor']['locale'],_0x2c8ae2=_0x459293['add'](o(_0x18f378,'PENDING_ACTION_SUGGESTION')),_0x5be4a5={'id':_0x3dd0a2,'type':_0x5c24e0,'hasComments':_0x2dae5a,'data':_0x4e0bdf['data']||null,'originalSuggestionId':_0x4e0bdf['originalSuggestionId']||null,'attributes':_0x582ebb['attributes']};this['_adapter']['addSuggestion'](_0x5be4a5)['then'](_0x30ad53=>{_0x582ebb['_saved']=!0x0,_0x459293['remove'](_0x2c8ae2),_0x30ad53&&_0x30ad53['createdAt']&&(this['_suggestions']['get'](_0x3dd0a2)['createdAt']=_0x30ad53['createdAt']);})['catch'](_0x3f64fe=>{throw _0x5c5ffb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x582ebb['discard']();}),_0x582ebb['stopListening'](),this['_suggestions']['delete'](_0x582ebb['id']),this['_suggestionState']['delete'](_0x582ebb),_0x3f64fe;});}return _0x582ebb;}['_isBlockAttribute'](_0x4de26e){return this['_blockAttributeKeys']['has'](_0x4de26e);}['_updateSuggestionData'](_0xf90d2e,_0x236728){const _0x123b37=this['editor']['plugins']['get']('PendingActions'),_0x569782=this['getSuggestion'](_0xf90d2e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x569782['_saved']){const _0x26f9dc=_0x123b37['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xf90d2e,_0x236728)['then'](()=>{_0x123b37['remove'](_0x26f9dc);});}else _0x569782['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xf90d2e,_0x236728);});}}['_getSuggestionData'](_0x33f154){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xdb208a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x33f154);}['_handleNewSuggestionMarker'](_0x1ea5a7){const {id:_0xac2fcf,type:_0x4a25ac,subType:_0x2e175a,authorId:_0x2b46f3}=this['_splitMarkerName'](_0x1ea5a7),_0x5f1c51=this['_suggestions']['get'](_0xac2fcf)||this['_createSuggestion'](_0x4a25ac,_0x2e175a,_0xac2fcf,_0x2b46f3,{});switch(this['_checkSuggestionCorrectness'](_0x5f1c51,_0x4a25ac,_0x2e175a,_0x2b46f3),this['_suggestionState']['get'](_0x5f1c51)){case'notReady':this['_getSuggestionData'](_0xac2fcf)['then'](_0x52c110=>{let _0x1ff063=Promise['resolve']();_0x52c110['hasComments']&&(_0x1ff063=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xac2fcf})),_0x1ff063['then'](()=>{this['addSuggestionData'](_0x52c110)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5f1c51,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xac2fcf,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5f1c51,'ready'),this['fire']('suggestionLoaded',_0x5f1c51);break;case'ready':this['fire']('suggestionChanged',_0x5f1c51);}return _0x5f1c51['addMarkerName'](_0x1ea5a7),_0x5f1c51;}['_refreshSuggestionsChain'](_0xc82c60){const _0x41b55b=Array['from'](_0xc82c60),_0x4144c3=_0x41b55b['filter'](_0x136f77=>'attribute'==_0x136f77['type']);this['_refreshAttributeSuggestionsChain'](_0x4144c3);const _0x6eacc1=_0x41b55b['filter'](_0x38ff25=>!_0x38ff25['isMultiRange']&&'attribute'!=_0x38ff25['type']),_0x223759=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x599cca=>!_0x599cca['isMultiRange']&&'attribute'!=_0x599cca['type']),_0x41c3fb=_0x223759['filter'](_0x47d2c7=>!_0xc82c60['has'](_0x47d2c7)),_0x3b154c=new Map(_0x223759['map'](_0x47b482=>[_0x47b482,this['_suggestionFactory']['getSuggestionCallback'](_0x47b482['type'],_0x47b482['subType'],'chain')])),_0x307201=new Map(_0x223759['map'](_0x1c2891=>[_0x1c2891,_0x1c2891['getFirstRange']()])),_0x1d51ea=new Set(),_0x296862=new Set();for(let _0x905b61=0x0;_0x905b61<_0x6eacc1['length'];_0x905b61++)_0xc992a8(_0x6eacc1[_0x905b61],_0x6eacc1,_0x905b61+0x1);for(let _0x390e56=0x0;_0x390e56<_0x6eacc1['length'];_0x390e56++)_0xc992a8(_0x6eacc1[_0x390e56],_0x41c3fb,0x0);const _0x265c9e=new Set();for(let _0x567ebe=0x0;_0x567ebe<_0x6eacc1['length'];_0x567ebe++){const _0x418135=_0x6eacc1[_0x567ebe];!_0x296862['has'](_0x418135)&&_0x418135['previous']&&(_0x265c9e['add'](_0x418135['previous']),_0x418135['previous']['next']===_0x418135&&(_0x418135['previous']['next']=null),_0x418135['previous']=null),!_0x1d51ea['has'](_0x418135)&&_0x418135['next']&&(_0x265c9e['add'](_0x418135['next']),_0x418135['next']['previous']===_0x418135&&(_0x418135['next']['previous']=null),_0x418135['next']=null);}function _0xc992a8(_0x5dfac7,_0x489191,_0x14099d){for(let _0x37ccb4=_0x14099d;_0x37ccb4<_0x489191['length'];_0x37ccb4++){const _0x476ff3=_0x442696(_0x5dfac7,_0x489191[_0x37ccb4]);_0x476ff3&&(_0x476ff3[0x0]['next']=_0x476ff3[0x1],_0x476ff3[0x1]['previous']=_0x476ff3[0x0],_0x1d51ea['add'](_0x476ff3[0x0]),_0x296862['add'](_0x476ff3[0x1]));}}function _0x442696(_0x12ea57,_0x89d66f){if(_0x12ea57['author']['id']!==_0x89d66f['author']['id'])return null;const _0x498023=_0x3b154c['get'](_0x12ea57)(_0x12ea57,_0x89d66f,_0x307201['get'](_0x12ea57),_0x307201['get'](_0x89d66f));if(!_0x498023)return null;return _0x3b154c['get'](_0x89d66f)(_0x12ea57,_0x89d66f,_0x307201['get'](_0x12ea57),_0x307201['get'](_0x89d66f))?_0x498023[0x1]['commentThread']&&_0x498023[0x1]['commentThread']['length']?null:_0x498023:null;}_0x265c9e['size']&&this['_refreshSuggestionsChain'](_0x265c9e);}['_refreshAttributeSuggestionsChain'](_0xd603a6){if(0x0==_0xd603a6['length'])return;const _0x2023d9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35d0c7=>'attribute'==_0x35d0c7['type']&&_0x35d0c7['_isDataLoaded']),_0x150961=[],_0x3105cc=new Map();for(const _0x3896bf of _0x2023d9){const _0x3a84e4=_0x1984cc(_0x3896bf['attributes']);_0x3105cc['has'](_0x3a84e4)||(_0x3105cc['set'](_0x3a84e4,_0x150961['length']),_0x150961['push']([]));const _0x298d7f=_0x3105cc['get'](_0x3a84e4);_0x150961[_0x298d7f]['push'](_0x3896bf);}!(function(){_0x150961['sort']((_0x5eb737,_0x1cf49d)=>{const _0xe033f7=_0x5eb737[0x0]['createdAt'],_0x5411cf=_0x1cf49d[0x0]['createdAt'];return _0xe033f7==_0x5411cf?_0x5eb737[0x0]['attributes']['groupId']<_0x1cf49d[0x0]['attributes']['groupId']?-0x1:0x1:_0xe033f7<_0x5411cf?-0x1:0x1;});for(const _0x30f3a4 of _0x150961)_0x30f3a4['sort']((_0x1644b6,_0x54a53a)=>_0x1644b6['id']<_0x54a53a['id']?-0x1:0x1);}());for(let _0x4b6ce9=0x0;_0x4b6ce9<_0x150961['length'];_0x4b6ce9++){if(0x0==_0x150961[_0x4b6ce9]['length'])continue;const _0x39c13c=[];for(let _0x3638a5=_0x4b6ce9+0x1;_0x3638a5<_0x150961['length'];_0x3638a5++)0x0!=_0x150961[_0x3638a5]['length']&&_0x4367e8(_0x150961[_0x4b6ce9],_0x150961[_0x3638a5])&&_0x39c13c['push'](_0x3638a5);for(const _0x3dd58a of _0x39c13c)_0x150961[_0x4b6ce9]=_0x150961[_0x4b6ce9]['concat'](_0x150961[_0x3dd58a]),_0x150961[_0x3dd58a]=[];}for(const _0x52fd04 of _0x150961)for(let _0x19a161=0x0;_0x19a161<_0x52fd04['length'];_0x19a161++)_0x52fd04[_0x19a161]['next']=_0x52fd04[_0x19a161+0x1]||null;for(const _0x3d749a of _0x150961)for(let _0x4159c3=0x0;_0x4159c3<_0x3d749a['length'];_0x4159c3++)_0x3d749a[_0x4159c3]['previous']=_0x3d749a[_0x4159c3-0x1]||null;function _0x4367e8(_0x19d4c6,_0x2dd672){if(_0x19d4c6[0x0]['attributes']['groupId']!==_0x2dd672[0x0]['attributes']['groupId']&&_0x19d4c6[0x0]['author']!==_0x2dd672[0x0]['author'])return!0x1;if(!function(_0x4afafd,_0x333c6b){if(!_0x4afafd['hasComments']&&!_0x333c6b['hasComments'])return!0x0;if(_0x4afafd['hasComments']&&_0x333c6b['hasComments'])return!0x1;if(_0x4afafd['hasComments']&&_0x333c6b['createdAt']<_0x4afafd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x333c6b['hasComments']&&_0x4afafd['createdAt']<_0x333c6b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x19d4c6[0x0],_0x2dd672[0x0]))return!0x1;const _0x5d6727=Bt(_0x19d4c6[0x0]['attributes'],'groupId'),_0x49ae08=Bt(_0x2dd672[0x0]['attributes'],'groupId');if(!_0x4b5bac(_0x5d6727,_0x49ae08))return!0x1;return!!_0x19d4c6['every'](_0x767c68=>_0x2dd672['some'](_0x1c7d31=>_0x767c68['getFirstRange']()['isEqual'](_0x1c7d31['getFirstRange']())))&&_0x2dd672['every'](_0x3071d4=>_0x19d4c6['some'](_0x3a66f4=>_0x3071d4['getFirstRange']()['isEqual'](_0x3a66f4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x179de5){const _0x2a4f77=Array['from'](_0x179de5),_0x4a4dbb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1278db=_0x4a4dbb['filter'](_0x27d482=>!_0x179de5['has'](_0x27d482)),_0x2fe04d=new Map(_0x2a4f77['map'](_0x3cccb0=>[_0x3cccb0,this['_suggestionFactory']['getSuggestionCallback'](_0x3cccb0['type'],_0x3cccb0['subType'],'join')])),_0x41d3a3=new Map(_0x4a4dbb['map'](_0x5de0c3=>[_0x5de0c3,_0x5de0c3['getRanges']()]));for(let _0x1a4d8b=0x0;_0x1a4d8b<_0x2a4f77['length'];_0x1a4d8b++){if(_0x347c09(this,_0x2a4f77[_0x1a4d8b],_0x2a4f77,_0x1a4d8b+0x1))return!0x0;}for(let _0x35f1a0=0x0;_0x35f1a0<_0x2a4f77['length'];_0x35f1a0++){if(_0x347c09(this,_0x2a4f77[_0x35f1a0],_0x1278db,0x0))return!0x0;}return!0x1;function _0x347c09(_0x5d2449,_0x1e19fd,_0x12ce27,_0x5cf102){for(let _0x35e733=_0x5cf102;_0x35e733<_0x12ce27['length'];_0x35e733++){const _0x4baa54=_0x12ce27[_0x35e733];if(_0x4baa54['type']!==_0x1e19fd['type']||_0x4baa54['author']['id']!==_0x1e19fd['author']['id']||_0x4baa54['subType']!==_0x1e19fd['subType'])continue;if(!Pt(_0x1e19fd,_0x4baa54,['groupId']))continue;if('attribute'==_0x1e19fd['type']&&_0x1e19fd['data']['oldValue']!=_0x4baa54['data']['oldValue'])continue;if('attribute'==_0x1e19fd['type']&&_0x5d2449['_isBlockAttribute'](_0x1e19fd['data']['key']))continue;if('formatBlock'==_0x1e19fd['type']){const _0x2f431b=_0x5d2449['editor']['model'],_0x1f3d7d=_0x1e19fd['getContainedElement']();if(_0x1f3d7d&&(_0x2f431b['schema']['isObject'](_0x1f3d7d)||_0x2f431b['schema']['isLimit'](_0x1f3d7d)))continue;}const _0x2926a7=_0x2fe04d['get'](_0x1e19fd),_0x4c9a77=_0x41d3a3['get'](_0x1e19fd),_0x1fc44d=_0x41d3a3['get'](_0x4baa54),_0x3a92be=_0x1e19fd['commentThread']&&_0x1e19fd['commentThread']['length'],_0x3a9a7e=_0x4baa54['commentThread']&&_0x4baa54['commentThread']['length'];if(!_0x3a92be&&_0x2926a7(_0x1fc44d,_0x4c9a77))return _0x5d2449['_joinSuggestions'](_0x4baa54,_0x1e19fd),_0x41d3a3['delete'](_0x1e19fd),!0x0;if(!_0x3a9a7e&&_0x2926a7(_0x4c9a77,_0x1fc44d))return _0x5d2449['_joinSuggestions'](_0x1e19fd,_0x4baa54),_0x41d3a3['delete'](_0x4baa54),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2f1835,_0x3bdb84){if(_0x2f1835['isMultiRange']){for(const _0x2aeab3 of _0x3bdb84['getRanges']())_0x2f1835['addRange'](_0x2aeab3);}else{const _0x163b11=_0x3bdb84['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2f1835,this['_model']['createRange'](_0x2f1835['getFirstRange']()['start'],_0x163b11));}_0x3bdb84['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2c0978,_0x19b5bb){const _0x55dc5d=_0x2c0978['startsWith']('format')||_0x2c0978['startsWith']('attribute')?'FORMATTING':_0x2c0978['toUpperCase']();return o(this['editor']['locale'],_0x19b5bb+'_'+_0x55dc5d+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x590f3f=this['editor'];if(!_0x590f3f['ui'])return;const {ariaLiveAnnouncer:_0x2eba36}=_0x590f3f['ui'];_0x6b69c5(this['_model'],({left:_0x156189,entered:_0x433537})=>{for(const _0x259649 of _0x156189){const {group:_0x47f2b1,type:_0x2b79bc}=this['_splitMarkerName'](_0x259649['name']);if('suggestion'===_0x47f2b1){_0x2eba36['announce'](this['_getMarkerAnnouncementText'](_0x2b79bc,'LEAVE'));break;}}for(const _0x4d69bc of _0x433537){const {group:_0x33ca03,type:_0x2f25d4}=this['_splitMarkerName'](_0x4d69bc['name']);if('suggestion'===_0x33ca03){_0x2eba36['announce'](this['_getMarkerAnnouncementText'](_0x2f25d4,'ENTER'));break;}}});}['_processAttributeChanges'](_0x3aa9a5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e2442=this['editor'],_0x274a9f=_0x1e2442['model']['document']['differ']['getChanges']();if(0x0==_0x274a9f['length'])return!0x1;const _0x2080a4=[],_0x147f11=_0x274a9f['filter'](_0xfe0dd5=>'attribute'==_0xfe0dd5['type']),_0x2415eb=_0x274a9f['filter'](_0x476864=>'insert'==_0x476864['type']&&'$text'!=_0x476864['name']),_0x540902=_0x274a9f['filter'](_0x4f1c13=>'remove'==_0x4f1c13['type']&&'$text'!=_0x4f1c13['name']);for(const _0x1951c2 of _0x147f11)_0x2080a4['push']({'key':_0x1951c2['attributeKey'],'newValue':_0x1951c2['attributeNewValue'],'oldValue':_0x1951c2['attributeOldValue'],'range':Ot(_0x1951c2['range'],_0x1e2442['model'])});for(const _0x511dfd of _0x2415eb){const _0x1e185e=_0x540902['find'](_0x5c158c=>_0x5c158c['position']['isEqual'](_0x511dfd['position']));_0x1e185e&&_0x2080a4['push']({'key':m,'newValue':_0x511dfd['name'],'oldValue':_0x1e185e['name'],'range':_0x1e2442['model']['createRangeOn'](_0x511dfd['position']['nodeAfter'])});}return 0x0!=_0x2080a4['length']&&this['_reduceExistingSuggestions'](_0x3aa9a5,_0x2080a4);}['_processAttributeSuggestions'](_0x261aba){let _0xc8d4e3=!0x1;const _0x400451=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ba5e9=>_0x4ba5e9['data']['newRange']&&_0x4ba5e9['name']['startsWith']('suggestion:attribute:'));for(const _0x569f80 of _0x400451){const {subType:_0xc3195b,id:_0x1fc819}=this['_splitMarkerName'](_0x569f80['name']),_0x1844ba=_0xc3195b['split']('|')[0x0];for(const _0x1f3f96 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1f3f96['id']!=_0x1fc819&&'attribute'==_0x1f3f96['type']&&_0x1f3f96['data']&&_0x1f3f96['data']['key']==_0x1844ba&&_0x1f3f96['getFirstRange']()['isIntersecting'](_0x569f80['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1f3f96,_0x569f80['data']['newRange'],_0x261aba),_0xc8d4e3=!0x0);}return _0xc8d4e3;}['_recordAttributeChanges'](_0x7adcf2){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x7adcf2();}['_isRegisteredAttribute'](_0x4d4153){const _0x608c67=this['_isBlockAttribute'](_0x4d4153),_0x47f188=this['_inlineAttributeKeys']['has'](_0x4d4153);return _0x608c67||_0x47f188;}['_reduceExistingSuggestions'](_0x4567ef,_0x4bb8bc){if(0x0==_0x4bb8bc['length'])return!0x1;let _0x57f171=!0x1;for(const _0x16dcca of _0x4bb8bc){const _0x232bd8=this['_findSuggestions'](_0x16dcca['range'],'attribute')['filter'](_0xc6f6cc=>!_0xc6f6cc['meta']['isNextTo'])['map'](_0x1967e2=>_0x1967e2['suggestion']),_0x3dc13f=_0x1984cc({'newValue':_0x16dcca['newValue']});_0x232bd8['filter'](_0x1debbf=>{const [_0x5df32d,_0x49aba1]=_0x1debbf['subType']['split']('|');return _0x5df32d==_0x16dcca['key']&&_0x49aba1!=_0x3dc13f;})['forEach'](_0x1793d6=>{this['_reduceSuggestionAttributeRange'](_0x1793d6,_0x16dcca['range'],_0x4567ef),_0x57f171=!0x0;});}return _0x57f171;}['_reduceSuggestionAttributeRange'](_0x65264e,_0x850925,_0x1359c6){const _0x196d9c=_0x65264e['getFirstRange']()['getDifference'](_0x850925);0x0!==_0x196d9c['length']?0x1!==_0x196d9c['length']?this['_breakSuggestionMarker'](_0x65264e,_0x850925['start'],_0x850925['end']):this['_setSuggestionRange'](_0x65264e,_0x196d9c[0x0]):_0x1359c6['removeMarker'](_0x65264e['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x7bea8f){this['_editor']=_0x7bea8f,this['_model']=_0x7bea8f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x473954,_0x5e5507,_0x53c74c,_0x530cab,_0x20dab7,_0x411ccf){return new u(this['_model'],{'type':_0x473954,'subType':_0x5e5507,'id':_0x53c74c,'author':_0x530cab,'creator':_0x530cab,'attributes':_0x20dab7,'onAttributesChange':_0x411ccf,'onAccept':(..._0x703da)=>this['getSuggestionCallback'](_0x473954,_0x5e5507,'accept')(..._0x703da),'onDiscard':(..._0x2edf0b)=>this['getSuggestionCallback'](_0x473954,_0x5e5507,'discard')(..._0x2edf0b)});}['registerCustomCallback'](_0x361719,_0x1f612e,_0x5d92ac,_0x496450){const _0x53bfec=_0x361719+':'+_0x1f612e+':'+_0x5d92ac;this['_customCallbacks']['set'](_0x53bfec,_0x496450);}['getSuggestionCallback'](_0x24d5ae,_0x4d58aa,_0x2b997f){const _0x17ddb9=_0x24d5ae+':'+_0x4d58aa+':'+_0x2b997f;return this['_customCallbacks']['get'](_0x17ddb9)||this['_defaultCallbacks']['get'](_0x24d5ae+':'+_0x2b997f);}['_registerDefaultCallbacks'](){const _0x444b8a=()=>!0x1,_0x2af823=_0x4dda1c=>{_0x4dda1c['sort']((_0xec115b,_0x222d2b)=>_0xec115b['start']['isBefore'](_0x222d2b['start'])?0x1:-0x1),this['_model']['change'](_0x5f56b6=>{for(const _0xff7410 of _0x4dda1c){let _0x632624;_0x632624=_0xff7410['end']['isAtEnd']&&_0xff7410['end']['parent']==_0xff7410['start']['nodeAfter']?_0x5f56b6['createSelection'](_0xff7410['start']['nodeAfter'],'on'):_0x5f56b6['createSelection'](_0xff7410),this['_model']['deleteContent'](_0x632624,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x29bd9c=(_0x1cf605,_0x50eb87)=>{_0x50eb87&&this['_model']['change'](_0x483f8d=>{const {commandName:_0x399fb0,commandParams:_0x151951=[]}=_0x50eb87,_0x432886=_0x1cf605['map'](_0xaf522d=>(Tt(_0xaf522d)&&(_0xaf522d=this['_model']['createRange'](_0xaf522d['end'])),_0xaf522d))['filter'](_0x5202e2=>'$graveyard'!==_0x5202e2['root']['rootName']);if(_0x432886['length']<0x1)return;const _0x55c265=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5ddd98=>_0x4fddfe['fromRange'](_0x5ddd98));_0x483f8d['setSelection'](_0x432886);for(const _0x4ca2da of this['_editor']['commands']['commands']())_0x4ca2da['refresh']();_0x151951['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x399fb0,..._0x151951);const _0x30cc7b=_0x55c265['filter'](_0x48e459=>'$graveyard'!=_0x48e459['root']['rootName']);_0x30cc7b['length']>0x0&&_0x483f8d['setSelection'](_0x30cc7b);for(const _0x5f00d4 of _0x55c265)_0x5f00d4['detach']();});},_0xf8ebe=(_0x136c84,_0x296d2b)=>0x1==_0x136c84['length']&&0x1==_0x296d2b['length']&&_0x136c84[0x0]['end']['isEqual'](_0x296d2b[0x0]['start']),_0x140ee5=(_0x3193a7,_0x58e037,_0x136b6d,_0x1b8941)=>Gt(_0x3193a7,_0x58e037,_0x136b6d,_0x1b8941,this['_model'])?[_0x3193a7,_0x58e037]:Gt(_0x58e037,_0x3193a7,_0x1b8941,_0x136b6d,this['_model'])?[_0x58e037,_0x3193a7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x444b8a),this['_defaultCallbacks']['set']('insertion:discard',_0x2af823),this['_defaultCallbacks']['set']('insertion:join',_0xf8ebe),this['_defaultCallbacks']['set']('insertion:chain',_0x140ee5),this['_defaultCallbacks']['set']('deletion:accept',_0x2af823),this['_defaultCallbacks']['set']('deletion:discard',_0x444b8a),this['_defaultCallbacks']['set']('deletion:join',_0xf8ebe),this['_defaultCallbacks']['set']('deletion:chain',_0x140ee5),this['_defaultCallbacks']['set']('formatInline:accept',_0x29bd9c),this['_defaultCallbacks']['set']('formatInline:discard',_0x444b8a),this['_defaultCallbacks']['set']('formatInline:join',_0xf8ebe),this['_defaultCallbacks']['set']('formatInline:chain',_0x444b8a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x29bd9c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x444b8a),this['_defaultCallbacks']['set']('formatBlock:join',_0xf8ebe),this['_defaultCallbacks']['set']('formatBlock:chain',_0x444b8a),this['_defaultCallbacks']['set']('attribute:accept',_0x444b8a),this['_defaultCallbacks']['set']('attribute:discard',(_0x121ccf,_0x435841)=>{if(!_0x435841)return;const _0x317b1c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x33790e=>{if(_0x435841['key']==m)for(const _0xb4f1a8 of _0x121ccf){const _0x1ab257=_0xb4f1a8['start']['nodeAfter'],_0x19e372=_0x435841['oldValue'];_0x33790e['rename'](_0x1ab257,_0x19e372);}else{if(_0x317b1c['_isBlockAttribute'](_0x435841['key'])){for(const _0x1c11b8 of _0x121ccf)void 0x0!==_0x435841['oldValue']?_0x33790e['setAttribute'](_0x435841['key'],_0x435841['oldValue'],_0x1c11b8['start']['nodeAfter']):_0x33790e['removeAttribute'](_0x435841['key'],_0x1c11b8['start']['nodeAfter']);}else{for(const _0x2828dc of _0x121ccf)_0x435841['oldValue']?_0x33790e['setAttribute'](_0x435841['key'],_0x435841['oldValue'],_0x2828dc):_0x33790e['removeAttribute'](_0x435841['key'],_0x2828dc);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xf8ebe);}}function Rt(_0x155cf8,_0x1ecf72,_0x95e85a){for(const _0x345fc3 of _0x1ecf72['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x345fc3['root']==_0x345fc3)return!0x1;if(!_0x95e85a['containsItem'](_0x345fc3))return!0x1;if(_0x155cf8['isObject'](_0x345fc3)||_0x155cf8['isLimit'](_0x345fc3))return!0x0;}return!0x1;}function Tt(_0x718275){return _0x718275['end']['parent']==_0x718275['start']['nodeAfter']&&_0x718275['end']['isAtStart'];}function Et(_0x52c057,_0x1ed66f,_0x41974b,_0x24500e){const _0x42485c=_0x20de34=>!_0x20de34['item']['is']('$textProxy')&&!_0x24500e['isObject'](_0x20de34['item']),_0x40e1d1=_0x52c057['start']['getLastMatchingPosition'](_0x42485c),_0x4c135b=_0x52c057['end']['getLastMatchingPosition'](_0x42485c,{'direction':'backward'});return(!_0x52c057['start']['isEqual'](_0x40e1d1)||!_0x52c057['end']['isEqual'](_0x4c135b))&&(_0x40e1d1['isBefore'](_0x4c135b)?_0x41974b['updateMarker'](_0x1ed66f,{'range':_0x41974b['createRange'](_0x40e1d1,_0x4c135b)}):_0x41974b['removeMarker'](_0x1ed66f),!0x0);}function Vt(_0x29d103){return _0x1984cc(_0x29d103);}function Ut(_0x2cff47){const _0x566b0f=_0x2cff47['start']['nodeAfter'];return _0x566b0f&&_0x566b0f['is']('element');}function Ot(_0x381124,_0x42204f){return null==_0x381124['end']['nodeBefore']&&_0x381124['end']['parent']==_0x381124['start']['nodeAfter']?Ft(_0x381124['start']['nodeAfter'],_0x42204f):_0x381124;}function Ft(_0x27ae4e,_0x55a7a9){const _0x46b1e7=_0x55a7a9['schema']['isObject'](_0x27ae4e)||_0x55a7a9['schema']['isSelectable'](_0x27ae4e);return _0x55a7a9['createRange'](_0x55a7a9['createPositionAt'](_0x27ae4e,'before'),_0x46b1e7?_0x55a7a9['createPositionAfter'](_0x27ae4e):_0x55a7a9['createPositionAt'](_0x27ae4e,'end'));}function Gt(_0x2665df,_0x32e4ae,_0x357e5c,_0x227101,_0x5b6620){if(!Pt(_0x2665df,_0x32e4ae))return!0x1;if(_0x357e5c['end']['isEqual'](_0x227101['start']))return!0x0;if(_0x2665df['type']!=_0x32e4ae['type'])return!0x1;if(!_0x357e5c['end']['isTouching'](_0x227101['start']))return!0x1;const _0x5f58e6=_0x5b6620['createRange'](_0x357e5c['end'],_0x227101['start'])['getWalker']();for(const _0x342f47 of _0x5f58e6)if(['elementStart','elementEnd']['includes'](_0x342f47['type'])&&_0x5b6620['schema']['isLimit'](_0x342f47['item']))return!0x1;return!0x0;}function Pt(_0x97d09b,_0x5c87ef,_0x2e6e10=[]){return!(!_0x97d09b['_isDataLoaded']||!_0x5c87ef['_isDataLoaded'])&&_0x4b5bac(Bt(_0x97d09b['attributes'],_0x2e6e10),Bt(_0x5c87ef['attributes'],_0x2e6e10));}function Lt(_0x34ecd2,_0x1a1ad6){const _0x5509db=Ht(_0x34ecd2['attributes']),_0x633ac1=Ht(_0x1a1ad6);if(!_0x34ecd2['_isDataLoaded'])return!0x1;for(const _0xc68a5f of Object['keys'](_0x633ac1))if(!_0x4b5bac(_0x5509db[_0xc68a5f],_0x633ac1[_0xc68a5f]))return!0x1;return!0x0;}function Ht(_0x1e4f7e){const _0x43c993=Object['assign']({},_0x1e4f7e);return delete _0x43c993['skipNestingCheck'],delete _0x43c993['tablePasteChainId'],_0x43c993;}class oe extends _0x343559(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xdb1b62,_0x3325b4,_0x28f380,_0x2018ea){super(),this['model']=_0x3325b4,this['view']=_0x28f380,this['commentThreadController']=_0x2018ea,this['_editor']=_0xdb1b62,this['_acceptCommand']=_0xdb1b62['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xdb1b62['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2fc825,_0x569859)=>_0x2fc825||_0x569859),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2f91c3=>_0x2f91c3&&this['_editor']['model']['canEditAt'](_0x3325b4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x38bb3e=>_0x38bb3e&&this['_editor']['model']['canEditAt'](_0x3325b4['getRanges']())),this['_pendingAction']=null,_0x28f380['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x28f380,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x28f380,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x28f380,'change:isDirty',()=>{_0x28f380['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x184341=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x184341);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x235fbc{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0xde1d32,_0x2b6461,_0x4dd739,_0x1fac69){super(_0xde1d32),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x2b6461['authoredAt']),this['bind']('authoredAt')['to'](_0x2b6461),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x2b6461,this['_localUser']=_0x4dd739,this['_config']=_0x1fac69,_0x1fac69['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x31a075}=this['_config'];this['commentsListView']=new _0x31a075(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',_0xb030f2=>_0xb030f2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xd8bf14,_0x3125cd)=>_0xd8bf14||!!_0x3125cd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x31a443}=this['_config'],_0x8d1e9f=new _0x31a443(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x277080=_0x8d1e9f['commentInputView'];return _0x8d1e9f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x277080,'value',(_0x2a4131,_0x2fda0,_0x28700c)=>!!_0x28700c||_0x2a4131&&!_0x2fda0),_0x277080['on']('submit',(_0x30efa3,_0x339798)=>{this['fire']('addComment',_0x339798),_0x277080['editor']['setData']('');}),_0x277080['on']('cancel',()=>this['focus']()),_0x277080['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x8d1e9f;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x3ba96f,_0x424aa8,_0x3dc6da,_0x5734c2){super(_0x3ba96f,_0x424aa8,_0x3dc6da,_0x5734c2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3fbf25=>_0x3fbf25&&_0x3fbf25[0x0]?_0x3fbf25[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x46dc45,_0x4795c6)=>{let _0x1205e6='';for(const _0x2e7cd6 of _0x46dc45)_0x1205e6+='<p>'+ds(_0x2e7cd6['content'],_0x2e7cd6['color'])+'</p>';return _0x4795c6?_0x1205e6:_0x1568f2(_0x1205e6,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x3ba96f,'Accept\x20suggestion'),_0x27320f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x3ba96f,'Discard\x20suggestion'),_0x27320f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3359ce(_0x3ba96f,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5804a7=this['bindTemplate'],_0x4dfb32=[{'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':_0x5804a7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5804a7['to']('authoredAt',_0x439b27=>this['_config']['formatDateTime'](_0x439b27))}]}]},{'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']&&_0x4dfb32['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x152c18={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5804a7['if']('isActive','ck-suggestion-wrapper--active'),_0x5804a7['to']('type',_0x196e59=>'ck-suggestion-'+_0x196e59),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':_0x4dfb32}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x152c18['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)),_0x152c18;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x498d67,_0x3893fd,_0x391620)=>{this['_descriptionElement']['innerHTML']=_0x391620;});}['_createButton'](_0x11121f,_0x3bd1bb,_0x615028,_0x22981f,_0xd8592b){const _0x29689d=new _0x1b49be(this['locale']);return _0x29689d['set']({'label':_0x11121f,'icon':_0x3bd1bb,'tooltip':!0x0,'tooltipPosition':_0xd8592b}),_0x29689d['extendTemplate']({'attributes':{'class':_0x615028}}),_0x29689d['on']('execute',()=>{this['fire'](_0x22981f,this['_model']['id']);}),_0x29689d;}['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;}}function ds(_0x58cb1c,_0x3d8f6a){let _0x2f81c9='';return _0x2f81c9+=_0x58cb1c['split']('*')['map']((_0x896922,_0x4e6905)=>_0x4e6905%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x896922)+'</span>':us(_0x896922))['join'](''),_0x3d8f6a&&(_0x2f81c9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3d8f6a['value']+'\x22\x20title=\x22'+_0x3d8f6a['title']+'\x22></span>'),_0x2f81c9;}function us(_0x5ba88d){const _0x18fe02=document['createElement']('span');return _0x18fe02['innerText']=_0x5ba88d,_0x18fe02['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 _0xc027b9{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2be467,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5c4a6a){super(_0x5c4a6a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x51f32=this['editor']['config'];_0x51f32['define']('trackChanges.SuggestionThreadView',ne),_0x51f32['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x51f32['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x415304,_0x50359d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4750b7,_0x2f8c45]of this['_handleControllerBuffer']){const _0xe86d9a=this['_suggestionToController']['has'](_0x4750b7);_0xe86d9a||_0x2f8c45?_0xe86d9a&&_0x2f8c45&&this['_destroyController'](_0x4750b7):this['_initializeController'](_0x4750b7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x415304,_0x50359d);}['init'](){const _0x230369=this['editor'],_0xfc625b=_0x230369['plugins']['get']('TrackChangesEditing'),_0xd50409=_0x230369['plugins']['get']('Annotations'),_0x28b52e=_0x230369['plugins']['get']('EditorAnnotations'),_0x5847c5=_0x230369['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x28b52e['addSourceCollector'](()=>{const _0x22c4d5=[];for(const [_0x2fa574,_0x49bd14]of Array['from'](this['_suggestionToController'])){const _0x18e110=_0x2fa574['getAllAdjacentSuggestions'](),_0x4e42bf=[];for(const _0x49b18b of _0x18e110){if(!_0x49b18b['isInContent'])continue;if(_0x49b18b['isMultiRange']){_0x4e42bf['push'](..._0x49b18b['getRanges']());continue;}const _0x3e1dd4=_0x49b18b['getFirstRange']();if(_0x4e42bf['length']>0x0){const _0x2b739c=_0x4e42bf[0x0]['getJoined'](_0x3e1dd4);if(_0x2b739c){_0x4e42bf[0x0]=_0x2b739c;continue;}}_0x4e42bf['push'](_0x3e1dd4);}_0x22c4d5['push']([_0x49bd14['view'],_0x4e42bf]);}return _0x22c4d5;}),this['listenTo'](_0xfc625b,'suggestionLoaded',(_0x1d8255,_0x4230ae)=>{this['listenTo'](_0x4230ae,'change:previous',(_0x3c4f53,_0x1e4a51,_0x30ae7a,_0x6f4ba7)=>{_0x4230ae['isInContent']&&(null==_0x30ae7a?(this['_updateController'](_0x6f4ba7['head']),this['_handleSuggestionControllerDelayed'](_0x4230ae,!0x1)):(this['_updateController'](_0x30ae7a['head']),null==_0x6f4ba7&&this['_handleSuggestionControllerDelayed'](_0x4230ae,!0x0)));}),null!==_0x4230ae['previous']?this['_updateController'](_0x4230ae['head']):this['_handleSuggestionControllerDelayed'](_0x4230ae,!0x1);}),this['listenTo'](_0xfc625b,'suggestionUnloaded',(_0x1deb8f,_0x3b9824,_0x36ed90)=>{this['stopListening'](_0x3b9824,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b9824),this['_suggestionToController']['has'](_0x3b9824)&&this['_destroyController'](_0x3b9824),_0x36ed90&&this['_updateController'](_0x36ed90['head']);}),this['listenTo'](_0xfc625b,'suggestionChanged',(_0x242572,_0x4defd5)=>{this['_updateController'](_0x4defd5);}),this['listenTo'](_0xd50409,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5847c5,'addComment',(_0x26274f,{threadId:_0x3923df,isFromAdapter:_0x5b189b})=>{if(_0x5b189b||!_0xfc625b['hasSuggestion'](_0x3923df))return;const _0x26c14d=_0xfc625b['getSuggestion'](_0x3923df);this['_suggestionToController']['get'](_0x26c14d)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x48b23f=this['editor']['plugins']['get']('Annotations'),_0xef1b76=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f6e49=Array['from'](_0x48b23f['activeAnnotations'],_0x42d60f=>_0x42d60f['innerView'])['filter'](_0x121b8b=>this['_viewToController']['has'](_0x121b8b)),_0xdb48b0=[];for(const _0x387563 of _0x1f6e49){const _0x363e4e=this['_viewToController']['get'](_0x387563)['model']['getAllAdjacentSuggestions']();_0xdb48b0['push'](..._0x363e4e['reduce']((_0x288085,_0x5a3442)=>[..._0x288085,..._0x5a3442['getMarkerNames']()],[]));}_0xef1b76['activeMarkers']=_0xdb48b0;}['_addUIComponentsToFactory'](){const _0x15ec0d=this['editor'],_0xc6b2e8=_0x15ec0d['locale'],_0x2a4054=o(_0xc6b2e8,'Track\x20changes'),_0x2afe59=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x2a4054,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xc6b2e8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xc6b2e8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xc6b2e8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xc6b2e8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4d6999 of _0x2afe59)if(ae(_0x4d6999)){const _0x4db803=_0x15ec0d['commands']['get'](_0x4d6999['model']['commandName']);_0x4d6999['model']['bind']('isOn','isEnabled')['to'](_0x4db803,'value','isEnabled');}_0x15ec0d['ui']['componentFactory']['add']('trackChanges',_0x22cd7a=>this['_createToolbarButton'](_0x22cd7a,_0x2afe59,_0x2a4054)),_0x15ec0d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5e2841=>this['_createMenuBarMenu'](_0x5e2841,_0x2afe59,_0x2a4054));}['_createToolbarButton'](_0x5b6a71,_0x5eb699,_0xa438d0){const _0x299c61=zt(_0x5b6a71,Zt),_0x37d074=this['editor']['commands']['get']('trackChanges');_0x299c61['buttonView']['set']({'tooltip':_0xa438d0,'label':_0xa438d0,'icon':ie}),_0x299c61['buttonView']['bind']('isOn')['to'](_0x37d074,'value'),_0x299c61['buttonView']['on']('execute',()=>{_0x37d074['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x299c61,_0x5eb699,{'role':'menu'});const _0x216a71=[];for(const _0x1ea901 of _0x5eb699)ae(_0x1ea901)&&_0x216a71['push'](this['editor']['commands']['get'](_0x1ea901['model']['commandName']));const _0x3b8d44=_0x299c61['buttonView'];return _0x3b8d44['actionView']['unbind']('isEnabled'),_0x3b8d44['arrowView']['unbind']('isEnabled'),_0x3b8d44['actionView']['bind']('isEnabled')['to'](_0x37d074,'isEnabled'),_0x3b8d44['arrowView']['bind']('isEnabled')['toMany'](_0x216a71,'isEnabled',(..._0x431cf8)=>_0x431cf8['some'](_0x31a298=>_0x31a298)),_0x299c61['on']('execute',_0x412db2=>{this['editor']['execute'](_0x412db2['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x299c61;}['_createMenuBarMenu'](_0x14b0fa,_0x176645,_0x50d8f6){const _0x5f477b=new Kt(_0x14b0fa),_0x4f994f=this['editor']['commands']['get']('trackChanges');_0x5f477b['buttonView']['set']({'label':_0x50d8f6,'icon':ie});const _0x97eb22=new Qt(_0x14b0fa);for(const _0x17d945 of _0x176645){if('separator'==_0x17d945['type']){_0x97eb22['items']['add'](new Jt(_0x14b0fa));continue;}const _0x2f85b3=new Xt(_0x14b0fa,_0x5f477b),_0x2e0a6b=new Yt(_0x14b0fa),_0x1c204d=_0x17d945['model'];_0x2e0a6b['bind'](...Object['keys'](_0x1c204d))['to'](_0x1c204d),_0x2e0a6b['delegate']('execute')['to'](_0x5f477b),_0x2e0a6b['on']('execute',()=>{this['editor']['execute'](_0x1c204d['commandName']),this['editor']['editing']['view']['focus']();}),_0x2f85b3['children']['add'](_0x2e0a6b),_0x97eb22['items']['add'](_0x2f85b3);}return _0x5f477b['bind']('isEnabled')['to'](_0x4f994f,'isEnabled'),_0x5f477b['panelView']['children']['add'](_0x97eb22),_0x5f477b;}['_initializeController'](_0x4eed23){const _0x56f7de=this['editor'],_0x115e90=_0x56f7de['config'],_0x26b75d=_0x56f7de['plugins']['get']('Annotations'),_0x3b6c40=_0x56f7de['plugins']['get']('CommentsRepository'),_0x58882c=_0x56f7de['plugins']['get']('EditorAnnotations'),_0x418e65=_0x56f7de['plugins']['get'](_0x2be467)['me'],_0x38a3ab=_0x115e90['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x31818f,CommentThreadInputView:_0x3a48da}=_0x56f7de['plugins']['get']('CommentsUI');let _0x21d60f,_0x32591d;this['_annotationViews']['has'](_0x4eed23['id'])?(_0x32591d=this['_annotationViews']['get'](_0x4eed23['id']),_0x21d60f=_0x32591d['mainView']):(_0x21d60f=new _0x38a3ab(_0x56f7de['locale'],_0x4eed23,_0x418e65,{'disableComments':this['_disableComments'],'editorConfig':_0x115e90['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x115e90['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x115e90['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x115e90['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2a75cf(_0x115e90['get']('locale')),'CommentView':_0x115e90['get']('comments')['CommentView'],'CommentsListView':_0x31818f,'CommentThreadInputView':_0x3a48da}),_0x21d60f['acceptButton']['on']('execute',()=>{_0x56f7de['editing']['view']['focus']();}),_0x21d60f['discardButton']['on']('execute',()=>{_0x56f7de['editing']['view']['focus']();}),_0x32591d=_0x26b75d['createAnnotationView'](this['editor']['locale'],_0x21d60f),_0x32591d['bind']('isDirty')['to'](_0x21d60f,'isDirty'),_0x32591d['bind']('length')['to'](_0x21d60f),_0x32591d['bind']('type')['to'](_0x21d60f,'type',_0x4a146=>'suggestion-'+_0x4a146),this['_annotationViews']['set'](_0x4eed23['id'],_0x32591d));const _0x3d6fe3=_0x3b6c40['createCommentThreadController'](_0x4eed23['commentThread'],_0x21d60f),_0x3a1a5a=new oe(_0x56f7de,_0x4eed23,_0x21d60f,_0x3d6fe3),_0x45fdc2=_0x4eed23['getAllAdjacentSuggestions']()['filter'](_0x13e1d0=>_0x13e1d0['isInContent']);_0x21d60f['descriptionParts']=_0x56f7de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x45fdc2),this['_suggestionToController']['set'](_0x4eed23,_0x3a1a5a),this['_viewToController']['set'](_0x21d60f,_0x3a1a5a);const _0x3b5cb5=_0x26b75d['createAnnotation']({'view':_0x32591d,'target':()=>{const _0x3e9e87=[],_0x33fa33=_0x4eed23['getAllAdjacentSuggestions']()['filter'](_0x539f48=>_0x539f48['isInContent']);for(const _0x3af4a4 of _0x33fa33)_0x3e9e87['push'](..._0x3af4a4['getMarkers']());return _0x16113c(_0x56f7de['editing'],_0x3e9e87);},'type':()=>'suggestion-'+_0x3a1a5a['view']['type']});_0x3b6c40['_bindAnnotationToEditors'](_0x21d60f,_0x3b5cb5),_0x26b75d['add'](_0x3b5cb5),_0x58882c['registerAnnotation'](_0x3b5cb5);}['_destroyController'](_0x1e938f){const _0x2ddf5b=this['editor']['plugins']['get']('CommentsRepository'),_0x2ee58a=this['editor']['plugins']['get']('Annotations'),_0x576e60=this['_suggestionToController']['get'](_0x1e938f),_0x5cc83d=_0x576e60['view'],_0x46da6b=_0x2ee58a['getByInnerView'](_0x5cc83d);_0x2ddf5b['_unbindEditors'](_0x5cc83d),_0x46da6b&&_0x2ee58a['remove'](_0x46da6b),this['_suggestionToController']['delete'](_0x1e938f),this['_viewToController']['delete'](_0x5cc83d),_0x576e60['destroy']();}['_updateController'](_0x50cdfa){if(!_0x50cdfa['isInContent']||!this['_suggestionToController']['has'](_0x50cdfa))return;const _0x33afe4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x584b5d=this['_suggestionToController']['get'](_0x50cdfa),_0x1dd2a0=_0x50cdfa['getAllAdjacentSuggestions']();_0x584b5d['view']['descriptionParts']=_0x33afe4['descriptionFactory']['getDescriptions'](_0x1dd2a0);}['destroy'](){for(const _0x13fb9d of this['_suggestionToController']['keys']())this['_destroyController'](_0x13fb9d);for(const _0x28df6e of this['_annotationViews']['values']())_0x28df6e['mainView']['destroy']();super['destroy']();}}function ae(_0x217034){return'model'in _0x217034;}class k extends _0xc027b9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x70ccf7){this['editor']['plugins']['get'](p)['adapter']=_0x70ccf7;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1cf2a6){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1cf2a6);}['getSuggestions']({skipNotAttached:_0x5df243=!0x1,toJSON:_0x58b2a3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5df243,'toJSON':_0x58b2a3});}['getSuggestion'](_0x199f70){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x199f70);}}const T=['Pagination'];class P extends _0xc027b9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x9123a3=this['editor'];if(_0x9123a3['config']['define']('trackChangesData.editorCreator',_0x1aca7a=>{const _0x411c20=_0x9123a3['model']['document']['getRootNames']()['reduce']((_0x132e6d,_0x17037a)=>(_0x132e6d[_0x17037a]='',_0x132e6d),{});return _0x9123a3['constructor']['create'](_0x411c20,_0x1aca7a);}),'function'!=typeof _0x9123a3['config']['get']('trackChangesData')['editorCreator'])throw new _0xdb208a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3edba6){return N(this['editor'],!0x0,_0x3edba6);}['getDataWithDiscardedSuggestions'](_0x231b9c){return N(this['editor'],!0x1,_0x231b9c);}}class D extends _0xc027b9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x37f3e4){super(_0x37f3e4),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x588da0){return void 0x0!==_0x588da0['getRootsAttributes'];}async function N(_0xd350c,_0x5106c5,_0x567321){const _0xb49a32=_0x261f1d(_0xd350c,T);_0xb49a32['plugins']['push'](p,D),_0xb49a32['rootsAttributes']=v(_0xd350c)?_0xd350c['getRootsAttributes']():void 0x0;const _0x263e33=document['createDocumentFragment'](),_0xc8cff2=_0xd350c['config']['get']('trackChangesData')['editorCreator'],_0x5854bf=await _0xc8cff2(_0xb49a32,()=>function(_0x313a4d){const _0x69b759=document['createElement']('div');return _0x313a4d['appendChild'](_0x69b759),_0x69b759;}(_0x263e33));!function(_0x5763dc,_0x208377){const _0x55b73e=_0x5763dc['model']['document']['getRootNames']()['reduce']((_0x287f06,_0x1a896f)=>(_0x287f06[_0x1a896f]=_0x5763dc['data']['get']({'rootName':_0x1a896f}),_0x287f06),{}),_0x4c4bdd=_0x5763dc['plugins']['get']('Users')['users']['map'](_0xeb89c9=>({'id':_0xeb89c9['id'],'name':_0xeb89c9['name']})),_0x1c5c4a=_0x5763dc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21a28e=_0x5763dc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16d6fd=_0x208377['plugins']['get']('Users'),_0x2dda57=_0x208377['plugins']['get']('TrackChangesEditing'),_0x1fc82d=_0x208377['plugins']['get']('CommentsRepository');for(const _0x2ba61d of _0x4c4bdd)_0x16d6fd['getUser'](_0x2ba61d['id'])||_0x16d6fd['addUser'](_0x2ba61d);_0x16d6fd['me']||_0x16d6fd['useAnonymousUser']();for(const _0x572646 of _0x1c5c4a)_0x2dda57['addSuggestionData'](_0x572646);for(const _0x6c2cdb of _0x21a28e)_0x1fc82d['addCommentThread'](_0x6c2cdb);_0x208377['data']['set'](_0x55b73e);}(_0xd350c,_0x5854bf),_0x5854bf['execute'](_0x5106c5?'acceptAllSuggestions':'discardAllSuggestions');const _0x613978=v(_0x5854bf)?_0x5854bf['getFullData'](_0x567321):_0x5854bf['data']['get'](_0x567321);return await _0x5854bf['destroy'](),_0x613978;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x181a03,PendingActions as _0x166994,icons as _0x1dc363}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1c1713,ObservableMixin as _0x44add1,uid as _0x25cdca,insertToPriorityArray as _0x2f890c,priorities as _0x512c8b,logWarning as _0x350ef1,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x50244d,View as _0x3595e3,ButtonView as _0x698556,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 _0x37773b,hashObject as _0x30ea72,surroundingMarkersDetector as _0x4ea651,trimHtml as _0x1c4f99,UserView as _0xc49622,getDateTimeFormatter as _0x457e1e,getAllMarkersDomElementsSorted as _0x3468cb,sanitizeEditorConfig as _0x38e79e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2d892a,LiveRange as _0x137881,LivePosition as _0x493217}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x574df5,toWidget as _0x3d04e1}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2674ce,set as _0x16d17b,isEqual as _0x1bbed5,unset as _0x1012fc,omit as Bt}from'lodash-es';import{Delete as _0x3cea4b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1ab8b5,ShiftEnter as _0x30356e}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x2f9c87,_0x103826){super(_0x2f9c87),this['_enabledCommands']=_0x103826,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x11deae of this['editor']['commands']['commands']())_0x11deae['affectsData']&&!this['_enabledCommands']['has'](_0x11deae)&&_0x11deae['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1148a9 of this['editor']['commands']['commands']())_0x1148a9['affectsData']&&!this['_enabledCommands']['has'](_0x1148a9)&&_0x1148a9['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x33d7ea,_0x20e77a){super(_0x33d7ea),this['_suggestions']=_0x20e77a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1983bd){const _0x474d03=this['_suggestions']['get'](_0x1983bd);if(!_0x474d03)throw new _0x1c1713('track-changes-accept-suggestion-not-found',this);const _0xdec668=_0x474d03['getRanges']();this['editor']['model']['canEditAt'](_0xdec668)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x474d03);}}class B extends ts{['_suggestions'];constructor(_0x511706,_0xd0f262){super(_0x511706),this['_suggestions']=_0xd0f262,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x48ade9){const _0x498859=this['_suggestions']['get'](_0x48ade9);if(!_0x498859)throw new _0x1c1713('track-changes-discard-suggestion-not-found',this);const _0x32264d=_0x498859['getRanges']();this['editor']['model']['canEditAt'](_0x32264d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x498859);}}function ss(_0xad85c2){return _0xad85c2['sort']((_0x5bbb51,_0x22c6a9)=>'deletion'==_0x5bbb51['type']&&'deletion'!=_0x22c6a9['type']?-0x1:'deletion'!=_0x5bbb51['type']&&'deletion'==_0x22c6a9['type']?0x1:0x0);}function to(_0x2557d5,_0x4da511){let _0x34620f,_0xfdf798=0x0;const _0x482fff=[],_0x27fc12=_0x4da511['schema'];for(;_0xfdf798<_0x2557d5['length'];){const _0x2aa4b8=_0x2557d5[_0xfdf798],_0x51ee8a=_0x2557d5[_0xfdf798+0x1];_0x34620f||(_0x34620f=_0x4da511['createPositionBefore'](_0x2aa4b8)),co(_0x4da511,_0x2aa4b8,_0x51ee8a)||(_0x482fff['push'](_0x4da511['createRange'](_0x34620f,_0x27fc12['isObject'](_0x2aa4b8)?_0x4da511['createPositionAfter'](_0x2aa4b8):_0x4da511['createPositionAt'](_0x2aa4b8,'end'))),_0x34620f=null),_0xfdf798++;}return _0x482fff;}function co(_0x36f823,_0x5cd0c3,_0x2c01ba){if(!_0x2c01ba)return!0x1;const _0x3e900d=_0x36f823['createPositionAfter'](_0x5cd0c3),_0x4fc28f=_0x36f823['createPositionBefore'](_0x2c01ba);return _0x3e900d['isTouching'](_0x4fc28f);}function rs(_0x1b952b,_0x5e9c36,_0x589a25){for(;_0x589a25['length'];){const _0x461839=_0x589a25['splice'](0x0,0x64);_0x1b952b['change'](()=>{for(const _0x35b147 of _0x461839)_0x35b147['isInContent']&&_0x5e9c36['execute'](_0x35b147['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4b3933,_0x3e0511,_0x130107){super(_0x4b3933),this['_command']=_0x3e0511,this['_suggestions']=_0x130107,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x586540=Array['from'](this['_suggestions']['values']())['some'](_0x47768c=>_0x47768c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x586540;}['execute'](){const _0x51b182=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1ffa2f of _0x51b182){const _0xf42f9a=_0x1ffa2f['getRanges']();if(!this['editor']['model']['canEditAt'](_0xf42f9a))return;}rs(this['editor']['model'],this['_command'],_0x51b182);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd98535,_0x3ee779,_0x26d4f5){super(_0xd98535),this['_command']=_0x3ee779,this['_suggestions']=_0x26d4f5,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x189ced=this['editor']['model']['document']['selection'],_0xad84b4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3a9e76,_0x302520){const _0xc1c496=Array['from'](_0x3a9e76['getRanges']()),_0x2218bd=new Set();for(const _0x1d5234 of _0x302520)if(_0x1d5234['isInContent']){for(const _0x4c0846 of _0xc1c496)for(const _0x2092d3 of _0x1d5234['getRanges']())(_0x4c0846['isIntersecting'](_0x2092d3)||_0x3a9e76['isCollapsed']&&!_0x1d5234['isMultiRange']&&_0x1d5234['next']&&_0x2092d3['end']['isTouching'](_0x4c0846['start']))&&_0x2218bd['add'](_0x1d5234);}return _0x2218bd;}(_0x189ced,_0xad84b4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x482e7b=ss(Array['from'](this['_selectedSuggestions']));for(const _0x41e618 of _0x482e7b){const _0xec883a=_0x41e618['getRanges']();if(!this['editor']['model']['canEditAt'](_0xec883a))return;}rs(this['editor']['model'],this['_command'],_0x482e7b);}}class u extends _0x44add1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x15494e,_0x4ef67e){super(),this['id']=_0x4ef67e['id'],this['type']=_0x4ef67e['type'],this['subType']=_0x4ef67e['subType']||null,this['author']=_0x4ef67e['author'],this['creator']=_0x4ef67e['creator']||_0x4ef67e['author'],this['isExternal']=Boolean(_0x4ef67e['attributes']&&_0x4ef67e['attributes']['@external']),this['data']=null,this['_model']=_0x15494e,this['_onAccept']=_0x4ef67e['onAccept'],this['_onDiscard']=_0x4ef67e['onDiscard'],this['_onAttributesChange']=_0x4ef67e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4ef67e['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x306770=this;for(;_0x306770['previous'];)_0x306770=_0x306770['previous'];return _0x306770;}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'](_0x437699){this['_markerNames']['add'](_0x437699);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x308721=>this['_model']['markers']['get'](_0x308721))['filter'](_0x584413=>_0x584413);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xd14ea1=>{for(const _0x3ac619 of this['getMarkers']())_0xd14ea1['removeMarker'](_0x3ac619);}),this['_markerNames']['clear']();}['removeMarker'](_0x315841){this['_model']['change'](_0x31c222=>{_0x31c222['removeMarker'](_0x315841);}),this['_markerNames']['delete'](_0x315841);}['addRange'](_0x4148a4){const _0x4b03d0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4b03d0),this['_model']['change'](_0x32aa7d=>{_0x32aa7d['addMarker'](_0x4b03d0,{'range':_0x4148a4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x133136){for(const _0x5102f4 of this['getRanges']())if(_0x5102f4['isIntersecting'](_0x133136))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x358339=>_0x358339['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4b1cac,_0x3cb408)=>[..._0x4b1cac,..._0x3cb408['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x882ad1=this['getRanges']();if(0x1!=_0x882ad1['length'])return null;const _0x24caa0=_0x882ad1[0x0],_0x1c80bc=_0x24caa0['start']['nodeAfter'],_0x303f5e=_0x24caa0['end']['nodeBefore'];return _0x1c80bc instanceof _0x2d892a?_0x1c80bc!=_0x303f5e?null:_0x1c80bc: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 _0x2c30f4=[];let _0x2ac7e2=this['head'];for(;_0x2ac7e2;)_0x2c30f4['push'](_0x2ac7e2),_0x2ac7e2=_0x2ac7e2['next'];return _0x2c30f4;}['setAttribute'](_0x334b59,_0x1742cf){const _0x45e5b6=_0x2674ce(this['attributes']);_0x16d17b(_0x45e5b6,_0x334b59,_0x1742cf),_0x1bbed5(_0x45e5b6,this['attributes'])||(this['attributes']=_0x45e5b6,this['_onAttributesChange'](_0x45e5b6));}['removeAttribute'](_0x3dee8e){const _0x361989=_0x2674ce(this['attributes']);_0x1012fc(_0x361989,_0x3dee8e),_0x1bbed5(_0x361989,this['attributes'])||(this['attributes']=_0x361989,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 _0x25cdca()['substr'](0x1,0x5);}}function o(_0x5867d9,_0x344afe,_0x267177){const t=_0x5867d9['t'];switch(_0x344afe){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',_0x267177);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x267177);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x267177);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x267177);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x267177);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',_0x267177);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x267177);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',_0x267177);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x267177);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x267177);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x267177);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x267177);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x267177);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x267177);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x267177);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x267177);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x267177);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x267177);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x267177);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x267177);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x267177);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x267177);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x267177);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'},_0x267177);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x267177);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x267177);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x267177);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x267177);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x267177);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'},_0x267177);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x267177);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x267177);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x267177);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x267177);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'},_0x267177);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x267177);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'},_0x267177);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'},_0x267177);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x267177);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'},_0x267177);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x267177);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'},_0x267177);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x267177);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x267177);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'},_0x267177);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'},_0x267177);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 _0x344afe;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x59beda,_0x1fe688){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x59beda,this['_locale']=_0x1fe688;}['getDescriptions'](_0x2aed91){const _0xa020a9=[],_0x242302=new Set(),_0x2624e8=new Set();for(let _0x58693f=0x0;_0x58693f<_0x2aed91['length'];_0x58693f++){const _0x1a3010=_0x2aed91[_0x58693f];if(!_0x1a3010['isInContent'])continue;const _0x2b897a=this['_handleCustomCallbackDescription'](_0x1a3010);if(_0x2b897a){if(null!=_0x1a3010['subType']){if(_0x242302['has'](_0x1a3010['subType']))continue;_0x242302['add'](_0x1a3010['subType']);}_0xa020a9['push'](_0x2b897a);}else{if('attribute'!=_0x1a3010['type'])'insertion'!=_0x1a3010['type']&&'deletion'!=_0x1a3010['type']||this['_handleInsertRemoveSuggestionDescription'](_0xa020a9,_0x1a3010,_0x2aed91[_0x58693f+0x1]);else{const _0x4df799=_0x1a3010['data']['key'];if(_0x2624e8['has'](_0x4df799))continue;_0x2624e8['add'](_0x1a3010['data']['key']),_0x4df799==m?this['_handleRenameSuggestionDescription'](_0xa020a9,_0x1a3010):this['_handleAttributeSuggestionDescription'](_0xa020a9,_0x1a3010);}}}return this['_resolveDescriptionItems'](_0xa020a9);}['registerDescriptionCallback'](_0x1c2bbf){this['_customCallbacks']['push'](_0x1c2bbf);}['registerElementLabel'](_0x2b7560,_0x3181b2,_0x470a44=_0x512c8b['normal']){'function'==typeof _0x2b7560?_0x2f890c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2b7560,'label':_0x3181b2,'priority':_0x470a44}):this['_itemLabels']['set'](_0x2b7560,_0x3181b2);}['registerAttributeLabel'](_0x195118,_0x18caee){this['_attributeLabels']['set'](_0x195118,_0x18caee);}['getItemLabel'](_0x515307,_0x27ef1e=0x1){let _0xc0c4f3;for(const _0x2c19af of this['_itemLabelsCallbacks'])if(_0x2c19af['matchingCallback'](_0x515307)){_0xc0c4f3=_0x2c19af['label'];break;}return _0xc0c4f3||(_0xc0c4f3=this['_itemLabels']['get'](_0x515307['name'])),_0xc0c4f3?_0xc0c4f3(_0x27ef1e):0x1!==_0x27ef1e?_0x27ef1e+'\x20'+_0x515307['name']+'s':''+_0x515307['name'];}['_addDescriptionItems'](_0x57490b,_0x5ce98e){const _0x72cbc4=_0x5ce98e['getFirstRange']()['getWalker'](),_0x377f82='insertion'==_0x5ce98e['type']?'add':'remove';for(const _0x3f2a1a of _0x72cbc4){const _0x38f467=_0x3f2a1a['item'],_0x1d4a14=_0x57490b[_0x57490b['length']-0x1];if(_0x38f467['is']('$textProxy'))_0x1d4a14&&_0x1d4a14['type']['indexOf']('Container')>-0x1&&_0x57490b['pop'](),_0x1d4a14&&'text'==_0x1d4a14['type']?_0x1d4a14[_0x377f82]+=_0x38f467['data']:_0x57490b['push']({'type':'text','add':'add'==_0x377f82?_0x38f467['data']:'','remove':'remove'==_0x377f82?_0x38f467['data']:''});else{if(this['_schema']['isObject'](_0x38f467)){const _0x2a66b9=_0x38f467;if(_0x1d4a14&&_0x1d4a14['type']['indexOf']('Container')>-0x1&&_0x57490b['pop'](),'elementEnd'==_0x3f2a1a['type'])continue;_0x1d4a14&&_0x1d4a14['type']==_0x377f82+'Object'&&_0x1d4a14['element']['name']==_0x2a66b9['name']?_0x1d4a14['quantity']++:_0x57490b['push']({'type':_0x377f82+'Object','element':_0x2a66b9,'quantity':0x1}),_0x72cbc4['skip'](_0xe69812=>!('elementEnd'==_0xe69812['type']&&_0xe69812['item']==_0x38f467));}else{if(this['_schema']['checkChild'](_0x38f467,'$text')||_0x38f467['is']('element','softBreak')){const _0x277fb2=_0x38f467;if('add'==_0x377f82&&'elementStart'==_0x3f2a1a['type']||'remove'==_0x377f82&&'elementEnd'==_0x3f2a1a['type'])continue;if(_0x1d4a14&&-0x1==_0x1d4a14['type']['indexOf']('Container')){'text'==_0x1d4a14['type']&&(_0x1d4a14[_0x377f82]+='\x0a');continue;}let _0x2244fc;if(_0x2244fc='add'==_0x377f82?_0x277fb2['nextSibling']&&!this['_schema']['isObject'](_0x277fb2['nextSibling'])?_0x277fb2['nextSibling']:null:_0x277fb2['previousSibling']&&!this['_schema']['isObject'](_0x277fb2['previousSibling'])?_0x277fb2['previousSibling']:null,_0x277fb2['isEmpty']||_0x2244fc&&_0x2244fc['isEmpty']){const _0x45bf37=_0x2244fc&&_0x2244fc['isEmpty']?_0x2244fc:_0x277fb2;_0x1d4a14&&_0x1d4a14['type']==_0x377f82+'EmptyContainer'&&_0x1d4a14['element']['name']==_0x45bf37['name']?_0x1d4a14['quantity']++:_0x57490b['push']({'type':_0x377f82+'EmptyContainer','element':_0x45bf37,'quantity':0x1});}else _0x57490b['push']({'type':_0x377f82+'Container','element':_0x277fb2});}}}}}['_resolveDescriptionItems'](_0x15b448){const _0x3b880c=this['_locale'],_0x438251=[],_0x19bbeb=[],_0x741197=[];for(const _0x2afe28 of _0x15b448)switch(_0x2afe28['type']){case'text':if(_0x2afe28['add']=_0x2afe28['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2afe28['remove']=_0x2afe28['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2afe28['add']&&''!=_0x2afe28['remove']){_0x438251['push']({'type':'replace','content':o(_0x3b880c,'REPLACE_TEXT',['\x22'+_0x2afe28['remove']+'\x22','\x22'+_0x2afe28['add']+'\x22'])});continue;}if(null!=_0x2afe28['add']['match'](/^ +$/)){_0x438251['push']({'type':'insertion','content':o(_0x3b880c,'*Insert:*\x20%0',o(_0x3b880c,'ELEMENT_SPACE',_0x2afe28['add']['length']))});continue;}if(null!=_0x2afe28['remove']['match'](/^ +$/)){_0x438251['push']({'type':'deletion','content':o(_0x3b880c,'*Remove:*\x20%0',o(_0x3b880c,'ELEMENT_SPACE',_0x2afe28['remove']['length']))});continue;}if(''!=_0x2afe28['add']){_0x438251['push']({'type':'insertion','content':o(_0x3b880c,'*Insert:*\x20%0','\x22'+_0x2afe28['add']+'\x22')});continue;}_0x438251['push']({'type':'deletion','content':o(_0x3b880c,'*Remove:*\x20%0','\x22'+_0x2afe28['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x438251['push']({'type':'insertion','content':o(_0x3b880c,'*Insert:*\x20%0',this['getItemLabel'](_0x2afe28['element'],_0x2afe28['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x438251['push']({'type':'deletion','content':o(_0x3b880c,'*Remove:*\x20%0',this['getItemLabel'](_0x2afe28['element'],_0x2afe28['quantity']))});continue;case'addContainer':_0x438251['push']({'type':'insertion','content':o(_0x3b880c,'*Split:*\x20%0',this['getItemLabel'](_0x2afe28['element'],_0x2afe28['quantity']))});continue;case'removeContainer':_0x438251['push']({'type':'deletion','content':o(_0x3b880c,'*Merge:*\x20%0',this['getItemLabel'](_0x2afe28['element'],_0x2afe28['quantity']))});continue;case'addFormat':_0x19bbeb['push'](_0x2afe28['key']);continue;case'removeFormat':_0x741197['push'](_0x2afe28['key']);continue;default:_0x438251['push'](_0x2afe28);}if(_0x19bbeb['length']){const _0x328dcc=_0x19bbeb['map'](_0x2c40e4=>this['_attributeLabels']['has'](_0x2c40e4)?this['_attributeLabels']['get'](_0x2c40e4):_0x2c40e4)['join'](',\x20');_0x438251['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x328dcc)});}if(_0x741197['length']){const _0x11f53b=_0x741197['map'](_0x34590b=>this['_attributeLabels']['has'](_0x34590b)?this['_attributeLabels']['get'](_0x34590b):_0x34590b)['join'](',\x20');_0x438251['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x11f53b)});}return _0x438251;}['_handleCustomCallbackDescription'](_0x3cb0d9){for(const _0x3127ed of this['_customCallbacks']){const _0x148d72=_0x3127ed(_0x3cb0d9);if(_0x148d72&&'type'in _0x148d72)return _0x148d72;}}['_handleAttributeSuggestionDescription'](_0x2ec556,_0x150a68){const _0x2875b3=_0x150a68['data'],_0x527e6f=void 0x0===_0x2875b3['newValue']?'removeFormat':'addFormat';_0x2ec556['push']({'type':_0x527e6f,'key':_0x2875b3['key']});}['_handleRenameSuggestionDescription'](_0x1fe2f1,_0x39d92c){_0x1fe2f1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x39d92c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xa50176,_0x2a975f,_0x2601b7){if(this['_addDescriptionItems'](_0xa50176,_0x2a975f),_0x2601b7&&_0x2601b7['getFirstRange']()&&!_0x2a975f['getFirstRange']()['end']['isEqual'](_0x2601b7['getFirstRange']()['start'])){const _0x1c8958=_0xa50176[_0xa50176['length']-0x1],_0x2b5450='insertion'==_0x2a975f['type']?'add':'remove';_0x1c8958&&'text'==_0x1c8958['type']&&(_0x1c8958[_0x2b5450]+='\x0a');}}}class E extends _0x181a03{['afterInit'](){const _0x363728=this['editor'],_0x398bb2=_0x363728['plugins']['get']('TrackChangesEditing');_0x363728['commands']['get']('showAIAssistant')&&_0x398bb2['enableCommand']('showAIAssistant');}}class V extends _0x181a03{['afterInit'](){const _0x3907d7=this['editor'],_0x78f4bc=_0x3907d7['locale'];if(!_0x3907d7['plugins']['has']('AlignmentEditing'))return;const _0x985ac2=_0x3907d7['plugins']['get']('TrackChangesEditing');_0x985ac2['enableDefaultAttributesIntegration']('alignment'),_0x985ac2['registerBlockAttribute']('alignment'),_0x985ac2['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x78f4bc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4210fb=this['editor'],_0x269ddf=_0x4210fb['locale'];_0x4210fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1299e0=>{if('formatBlock'!=_0x1299e0['type'])return;const {data:_0x5df95}=_0x1299e0;if(_0x5df95&&'alignment'==_0x5df95['commandName']){const _0x1f1394=_0x5df95['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x269ddf,'*Format:*\x20%0',function(_0x3e7c60){switch(_0x3e7c60){case'left':return o(_0x269ddf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x269ddf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x269ddf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x269ddf,'FORMAT_JUSTIFY_TEXT');}}(_0x1f1394))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x181a03{['afterInit'](){const _0x23773c=this['editor'],_0xf7d499=_0x23773c['plugins']['get']('TrackChangesEditing'),_0x512103=_0x23773c['locale'];for(const _0x1c5917 of ti){if(!_0x23773c['plugins']['has'](_0x1c5917))continue;const _0x5e4995=_0x1c5917['slice'](0x0,-0x7)['toLowerCase'](),_0x2d620b='FORMAT_'+_0x5e4995['toUpperCase']();_0xf7d499['enableDefaultAttributesIntegration'](_0x5e4995),_0xf7d499['registerInlineAttribute'](_0x5e4995),_0xf7d499['descriptionFactory']['registerAttributeLabel'](_0x5e4995,o(_0x512103,_0x2d620b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43148e=this['editor'],_0x3c2865=_0x43148e['locale'],_0x480bcf=_0x43148e['plugins']['get']('TrackChangesEditing');function _0x40c5d4(_0x4c5e30,_0x3b56cd){_0x480bcf['descriptionFactory']['registerDescriptionCallback'](_0x4eb629=>{if('formatInline'!=_0x4eb629['type'])return;const {data:_0x5ed93d}=_0x4eb629;return _0x5ed93d&&_0x5ed93d['commandName']===_0x4c5e30?_0x5ed93d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c2865,'*Format:*\x20%0',_0x3b56cd)}:{'type':'format','content':o(_0x3c2865,'*Remove\x20format:*\x20%0',_0x3b56cd)}:void 0x0;});}_0x40c5d4('bold',o(_0x3c2865,'FORMAT_BOLD')),_0x40c5d4('italic',o(_0x3c2865,'FORMAT_ITALIC')),_0x40c5d4('underline',o(_0x3c2865,'FORMAT_UNDERLINE')),_0x40c5d4('code',o(_0x3c2865,'FORMAT_CODE')),_0x40c5d4('strikethrough',o(_0x3c2865,'FORMAT_STRIKETHROUGH')),_0x40c5d4('subscript',o(_0x3c2865,'FORMAT_SUBSCRIPT')),_0x40c5d4('superscript',o(_0x3c2865,'FORMAT_SUPERSCRIPT'));}}class O extends _0x181a03{['afterInit'](){const _0x1bec31=this['editor'],_0x1095c1=_0x1bec31['locale'];if(!_0x1bec31['plugins']['has']('BlockQuoteEditing'))return;const _0x3ec9b5=_0x1bec31['plugins']['get']('TrackChangesEditing'),_0x51419d=this['editor']['commands']['get']('blockQuote');_0x3ec9b5['enableCommand']('blockQuote',(_0x2a180f,_0x7aa460={})=>{const _0x5177d4=this['editor']['model']['document']['selection'],_0x57acd2=_0x7aa460&&void 0x0!==_0x7aa460['forceValue']?_0x7aa460['forceValue']:!_0x51419d['value'];let _0x171fe7=[];if(_0x57acd2){const _0xc0fba9=Array['from'](_0x5177d4['getSelectedBlocks']())['filter'](_0x3a3c05=>oo(_0x3a3c05)||function(_0x2b664f,_0x40bb1c){const _0xb6030c=_0x40bb1c['checkChild'](_0x2b664f['parent'],'blockQuote'),_0x1fb8dc=_0x40bb1c['checkChild'](['$root','blockQuote'],_0x2b664f);return _0xb6030c&&_0x1fb8dc;}(_0x3a3c05,this['editor']['model']['schema']));_0x171fe7=to(_0xc0fba9,_0x1bec31['model']);}else{const _0x2a9240=Array['from'](_0x5177d4['getSelectedBlocks']())['filter'](_0x4cd2ee=>oo(_0x4cd2ee));_0x171fe7=to(_0x2a9240,_0x1bec31['model']);}_0x1bec31['model']['change'](()=>{for(const _0x15fea3 of _0x171fe7)_0x3ec9b5['markBlockFormat'](_0x15fea3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x57acd2}]});});}),_0x3ec9b5['descriptionFactory']['registerDescriptionCallback'](_0x1bfe19=>{const {data:_0x2bd8d9}=_0x1bfe19;if(_0x2bd8d9&&'blockQuote'==_0x2bd8d9['commandName']){const _0x280815=o(_0x1095c1,'ELEMENT_BLOCK_QUOTE');return _0x2bd8d9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1095c1,'*Set\x20format:*\x20%0',_0x280815)}:{'type':'format','content':o(_0x1095c1,'*Remove\x20format:*\x20%0',_0x280815)};}});}}function oo(_0x5b9f62){return'blockQuote'==_0x5b9f62['parent']['name'];}class F extends _0x181a03{['afterInit'](){const _0x19d1ca=this['editor'];_0x19d1ca['plugins']['has']('CaseChange')&&(_0x19d1ca['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19d1ca['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19d1ca['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x181a03{['afterInit'](){const _0x484811=this['editor'];_0x484811['commands']['get']('ckbox')&&_0x484811['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x181a03{['afterInit'](){const _0x430c47=this['editor'];if(!_0x430c47['plugins']['has']('CodeBlock'))return;const _0x2fe402=_0x430c47['plugins']['get']('TrackChangesEditing'),_0x2256fc=_0x430c47['locale'],_0x282e57=_0x430c47['config']['get']('codeBlock')['languages'],_0x21d46f=_0x430c47['commands']['get']('codeBlock');_0x2fe402['enableCommand']('indentCodeBlock'),_0x2fe402['enableCommand']('outdentCodeBlock'),_0x2fe402['enableCommand']('codeBlock',(_0x4991dc,_0x114404={})=>{const _0x38cdcc=_0x430c47['model'],_0x552041=_0x430c47['model']['document']['selection'],_0x30d023=_0x114404&&void 0x0!==_0x114404['forceValue']?_0x114404['forceValue']:!_0x21d46f['value'];let _0x197ff6;_0x114404['language']||(_0x114404['language']=_0x282e57[0x0]['language']),_0x197ff6=_0x30d023?Array['from'](_0x552041['getSelectedBlocks']())['filter'](_0x159054=>eo(_0x159054)||function(_0x51afdb,_0x427a2c){if(_0x51afdb['is']('rootElement')||_0x427a2c['isLimit'](_0x51afdb))return!0x1;return _0x427a2c['checkChild'](_0x51afdb['parent'],'codeBlock');}(_0x159054,_0x38cdcc['schema'])):Array['from'](_0x552041['getSelectedBlocks']())['filter'](_0x51581f=>eo(_0x51581f));const _0x35f0dd=to(_0x197ff6,_0x38cdcc);_0x38cdcc['change'](()=>{for(const _0x566a15 of _0x35f0dd)_0x2fe402['markBlockFormat'](_0x566a15,{'commandName':'codeBlock','commandParams':[{..._0x114404,'forceValue':_0x30d023}],'formatGroupId':'blockName'});});}),(_0x2fe402['descriptionFactory']['registerElementLabel']('codeBlock',_0x435f0c=>o(_0x2256fc,'ELEMENT_CODE_BLOCK',_0x435f0c)),_0x2fe402['descriptionFactory']['registerDescriptionCallback'](_0x5f31be=>{if('formatBlock'!=_0x5f31be['type'])return;const _0x1dd48f=_0x2256fc['t'],{data:_0xcf5e51}=_0x5f31be;if(!_0xcf5e51||'codeBlock'!=_0xcf5e51['commandName'])return;const _0xd3a1f5=_0xcf5e51['commandParams'][0x0]['language'],_0x5b01b7=_0x1dd48f(_0x282e57['find'](_0x1e9a35=>_0x1e9a35['language']===_0xd3a1f5)['label'])['toLowerCase']();return _0xcf5e51['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2256fc,'*Set\x20format:*\x20%0',o(_0x2256fc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5b01b7+')')}:{'type':'format','content':o(_0x2256fc,'*Remove\x20format:*\x20%0',o(_0x2256fc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x53bb1a){return'codeBlock'==_0x53bb1a['name'];}class H extends _0x181a03{['afterInit'](){const _0x2910b3=this['editor'];if(!_0x2910b3['plugins']['has']('CommentsEditing'))return;_0x2910b3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x122128,_0x233676,_0x54d110){const _0x16b727=[];for(const _0x3140f1 of _0x233676['getItems']())_0x3140f1['hasAttribute'](_0x122128)&&_0x16b727['push'](_0x54d110['createRangeOn'](_0x3140f1));return _0x16b727;}function _e(_0x2def25,_0x4d027f,{showActiveMarker:_0x55fbf6=!0x0}={}){const _0x2c527b=_0x2def25['plugins']['get']('TrackChangesEditing');return(_0x13340d,_0x44fbcf,_0x8f125c)=>{if(!_0x8f125c['consumable']['test'](_0x44fbcf['markerRange'],_0x13340d['name']))return;const _0x63eae5=_0x44fbcf['markerRange']['getWalker'](),_0x4bc396=_0x44fbcf['markerRange']['start'],_0x343acc=_0x2def25['model']['schema'];let _0x30635a=null,_0x2e5602=null,_0x8ecac2=!0x1,_0x3af793=!0x1;for(const _0x40c0ce of _0x63eae5){const _0xb3d9aa=_0x40c0ce['item'];_0x8ecac2=_0x8ecac2||_0x343acc['isContent'](_0xb3d9aa);const _0x304936=_0x8f125c['mapper']['toViewElement'](_0xb3d9aa);if(_0x304936&&_0x304936['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40c0ce['type']&&(_0x343acc['isBlock'](_0xb3d9aa)&&!_0x343acc['isLimit'](_0xb3d9aa)&&(_0xb3d9aa['nextSibling']||_0x4bc396['isAtEnd']?_0x30635a&&_0x30635a['parent']==_0xb3d9aa||(_0x30635a=_0xb3d9aa,_0x59d3d2(_0x40c0ce['previousPosition']),_0x3af793=!0x0):_0x2e5602=_0x2e5602||_0x40c0ce['previousPosition']));}function _0x59d3d2(_0x5d88cf){const _0x5a861a=_0x8f125c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d027f}),_0x32102e=_0x8f125c['mapper']['toViewPosition'](_0x5d88cf);_0x55fbf6&&_0x2c527b['activeMarkers']['includes'](_0x44fbcf['markerName'])&&_0x8f125c['writer']['addClass']('ck-suggestion-marker--active',_0x5a861a),_0x8f125c['writer']['insert'](_0x32102e,_0x5a861a),_0x8f125c['mapper']['bindElementToMarker'](_0x5a861a,_0x44fbcf['markerName']);}_0x8ecac2||_0x3af793||!_0x2e5602||_0x59d3d2(_0x2e5602);};}class q extends _0x181a03{static get['requires'](){return[_0x3cea4b];}['init'](){const _0x433332=this['editor'],_0x5a541e=_0x433332['plugins']['get']('TrackChangesEditing');_0x5a541e['enableCommand']('delete');const _0x1d78dc=_0x433332['commands']['get']('deleteForward');_0x5a541e['enableCommand']('deleteForward',(_0xbc5956,_0x405f05={})=>{const _0xf41ed=_0x433332['model']['createSelection'](_0x433332['model']['document']['selection']);_0xf41ed['isCollapsed']&&_0x433332['model']['modifySelection'](_0xf41ed,{'direction':'forward','unit':_0x405f05['unit']});const _0x2ef359=_0xf41ed['getFirstRange'](),_0x317c28=_0x137881['fromRange'](_0x2ef359);let _0x4ee25b;_0xbc5956(_0x405f05),_0x4ee25b='$graveyard'==_0x317c28['root']['rootName']?_0x433332['model']['createRange'](_0x2ef359['start']):_0x433332['model']['createRange'](_0x317c28['start'],_0x317c28['end']),_0x317c28['detach'](),_0x433332['model']['enqueueChange'](_0x1d78dc['buffer']['batch'],_0x4b8414=>{_0x1d78dc['buffer']['lock'](),_0x4b8414['setSelection'](_0x4b8414['createRange'](_0x4ee25b['end'])),_0x1d78dc['buffer']['unlock']();});}),_0x433332['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x433332,'merge'),{'priority':'high'}),_0x433332['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x45f0f4,_0x45f4ab,_0x5cbe72)=>{_0x5cbe72['options']['showSuggestionHighlights']&&_e(_0x433332,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x45f0f4,_0x45f4ab,_0x5cbe72);},{'priority':'high'}),_0x433332['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x24a5a2,_0x109470,_0x67c9a4)=>{const _0x17375b=_0x67c9a4['mapper']['markerNameToElements'](_0x109470['markerName']);if(_0x17375b){for(const _0x549c7a of _0x17375b)_0x549c7a['is']('uiElement')&&(_0x67c9a4['mapper']['unbindElementFromMarkerName'](_0x549c7a,_0x109470['markerName']),_0x67c9a4['writer']['remove'](_0x549c7a));}},{'priority':'high'});}}class z extends _0x181a03{['afterInit'](){const _0x565d3d=this['editor'];if(!_0x565d3d['plugins']['has']('ListEditing'))return;const _0x4508c8=_0x565d3d['locale'],_0x13d51e=_0x565d3d['plugins']['get']('TrackChangesEditing'),_0xe26c20=_0x565d3d['plugins']['has']('TodoListEditing'),_0x56d228=!!_0x565d3d['config']['get']('list.multiBlock');function _0x2c4dc7(_0x1f9edd){return{'type':'format','content':''+o(_0x4508c8,'*Set\x20format:*\x20%0',_0x1f9edd)};}function _0x156b9a(_0x4e29a6){return{'type':'format','content':''+o(_0x4508c8,'*Remove\x20format:*\x20%0',_0x4e29a6)};}_0x13d51e['enableDefaultAttributesIntegration']('numberedList'),_0x13d51e['enableDefaultAttributesIntegration']('bulletedList'),_0x13d51e['enableDefaultAttributesIntegration']('customNumberedList'),_0x13d51e['enableDefaultAttributesIntegration']('customBulletedList'),_0x13d51e['enableDefaultAttributesIntegration']('indentList'),_0x13d51e['enableDefaultAttributesIntegration']('outdentList'),_0x13d51e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x13d51e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x13d51e['registerBlockAttribute']('listItemId'),_0x13d51e['registerBlockAttribute']('listType'),_0x13d51e['registerBlockAttribute']('listIndent'),_0x56d228&&(_0x13d51e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x13d51e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xe26c20&&(_0x13d51e['enableDefaultAttributesIntegration']('todoList'),_0x13d51e['enableDefaultAttributesIntegration']('checkTodoList'),_0x13d51e['registerBlockAttribute']('todoListChecked'),_0x13d51e['descriptionFactory']['registerDescriptionCallback'](_0x27826b=>{const {data:_0x394728}=_0x27826b;if(_0x394728&&'todoListChecked'==_0x394728['key'])return{'type':'format','content':_0x394728['newValue']?o(_0x4508c8,'*Check\x20item*'):o(_0x4508c8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x36ac6a=>{if(_0x36ac6a['batch']['isUndo'])return!0x1;let _0x52bd50=!0x1;const _0x44295c=_0x13d51e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf1f4c4=>'todoListChecked'===_0x13d51e['_getAttributeKey'](_0xf1f4c4));for(const _0x2b4950 of _0x44295c){'todo'!=_0x2b4950['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x13d51e['_findSuggestions'](_0x2b4950['getFirstRange'](),'attribute')['find'](_0x56fec7=>'listType'===_0x13d51e['_getAttributeKey'](_0x56fec7['suggestion']))||(_0x36ac6a['removeMarker'](_0x2b4950['getFirstMarker']()),_0x52bd50=!0x0));}return _0x52bd50;})),_0x13d51e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4508c8,'FORMAT_INDENT'));const _0x291482={'type':'format','content':''};_0x13d51e['descriptionFactory']['registerDescriptionCallback'](_0x4fdcc3=>{const {data:_0x5331ec}=_0x4fdcc3;if(!_0x5331ec||'listType'!=_0x5331ec['key'])return;let _0x188ba9=_0x4fdcc3['head'];for(;_0x188ba9;){if(_0x188ba9['data']&&(('listStyle'==_0x188ba9['data']['key']||'listMarkerStyle'==_0x188ba9['data']['key'])&&(_0x188ba9['data']['newValue']&&'default'!=_0x188ba9['data']['newValue']||'default'!=_0x188ba9['data']['oldValue']&&!_0x5331ec['newValue'])||!_0x56d228&&_0x188ba9['data']['key']==m))return _0x291482;_0x188ba9=_0x188ba9['next'];}if(null==_0x5331ec['newValue'])switch(_0x5331ec['oldValue']){case'bulleted':return _0x156b9a(o(_0x4508c8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x156b9a(o(_0x4508c8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x156b9a(o(_0x4508c8,'ELEMENT_TODO_LIST'));}switch(_0x5331ec['newValue']){case'bulleted':return _0x2c4dc7(o(_0x4508c8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c4dc7(o(_0x4508c8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c4dc7(o(_0x4508c8,'ELEMENT_TODO_LIST'));}}),_0x13d51e['descriptionFactory']['registerDescriptionCallback'](_0x2b11c3=>{const {data:_0x59205a}=_0x2b11c3;if(_0x59205a&&'listIndent'==_0x59205a['key'])return null==_0x59205a['newValue']||null==_0x59205a['oldValue']&&0x0==_0x59205a['newValue']?_0x291482:void 0x0;}),_0x13d51e['descriptionFactory']['registerDescriptionCallback'](_0x713de2=>{if('attribute'!=_0x713de2['type'])return;const {data:_0x666c31}=_0x713de2;if(!_0x666c31||'listItemId'!=_0x666c31['key'])return;const _0x36681c=le(_0x713de2);return'newValue'==_0x36681c?{'type':'format','content':o(_0x4508c8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x36681c?{'type':'format','content':o(_0x4508c8,'*Split:*\x20list\x20item')}:_0x291482;}),_0x565d3d['model']['document']['registerPostFixer'](_0x4286bc=>this['listItemIdFixer'](_0x4286bc)),_0x565d3d['model']['document']['registerPostFixer'](_0x39eabf=>this['noTrackChangesFixer'](_0x39eabf)),_0x565d3d['model']['document']['registerPostFixer'](_0xa07611=>this['assureChains'](_0xa07611)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5384aa){if(_0x5384aa['batch']['isUndo']||!_0x5384aa['batch']['isLocal'])return!0x1;let _0x1519cc=!0x1;const _0x34abc9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ce92c=>_0x5ce92c['data']&&'listItemId'==_0x5ce92c['data']['key'])['filter'](_0x57073c=>_0x57073c['data']['newValue']&&_0x57073c['data']['oldValue']);for(const _0x2b8946 of _0x34abc9)le(_0x2b8946)||(_0x5384aa['removeMarker'](_0x2b8946['getFirstMarker']()),_0x1519cc=!0x0);return _0x1519cc;}['noTrackChangesFixer'](_0x2f747d){if(_0x2f747d['batch']['isUndo']||!_0x2f747d['batch']['isLocal'])return!0x1;const _0x4aad32=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4aad32['trackChangesCommand']['value'])return!0x1;let _0x4cc981=!0x1;const _0x417310=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x54b8e5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x252bbc=>'attribute'==_0x252bbc['type'])['filter'](_0x10c87a=>_0x417310['includes'](_0x10c87a['attributeKey']));if(0x0==_0x54b8e5['length'])return _0x4cc981;for(const _0x2c470a of _0x54b8e5){const _0x30dbec=_0x4aad32['_findSuggestions'](_0x2c470a['range'],'attribute')['filter'](_0x4e270f=>!_0x4e270f['meta']['isNextTo'])['map'](_0x3e579b=>_0x3e579b['suggestion'])['filter'](_0x3c6f80=>{const _0x103cfc=_0x4aad32['_getAttributeKey'](_0x3c6f80);return _0x417310['includes'](_0x103cfc);});if(_0x30dbec['length']){for(const _0x565fc3 of _0x30dbec)_0x2f747d['removeMarker'](_0x565fc3['getFirstMarker']());_0x4cc981=!0x0;}}return _0x4cc981;}['assureChains'](_0x19606e){if(_0x19606e['batch']['isUndo']||!_0x19606e['batch']['isLocal'])return!0x1;const _0x5ee487=this['editor']['plugins']['get']('TrackChangesEditing');let _0x6b76e6=!0x1;const _0x23bfa1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x34c55c of _0x5ee487['getSuggestions']({'skipNotAttached':!0x0})){const _0x28174c=_0x5ee487['_findSuggestions'](_0x34c55c['getFirstRange'](),'attribute')['map'](_0x3dc489=>_0x3dc489['suggestion'])['filter'](_0x3e8882=>_0x3e8882['data']&&_0x23bfa1['includes'](_0x3e8882['data']['key']));if(!_0x28174c['length'])continue;const _0x7fa7fe=_0x28174c[0x0]['head']['attributes']['groupId'];if(!_0x28174c['every'](_0xf93fdc=>_0xf93fdc['attributes']['groupId']===_0x7fa7fe)){for(const _0x280380 of _0x28174c)_0x49ad8d(_0x280380,_0x7fa7fe)&&(_0x6b76e6=!0x0);}}return _0x6b76e6;function _0x53c680(_0x119bca,_0x4e77e5){for(const _0x44a822 of _0x5ee487['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30e61f=>'attribute'==_0x30e61f['type']&&_0x30e61f['attributes']['groupId']==_0x119bca))_0x44a822['setAttribute']('groupId',_0x4e77e5);}function _0x49ad8d(_0x1e4d70,_0x1b449d){let _0x72aa83=_0x1e4d70['head'],_0x3fb2a7=!0x1;for(;_0x72aa83;)_0x72aa83['attributes']['groupId']!=_0x1b449d&&(_0x53c680(_0x72aa83['attributes']['groupId'],_0x1b449d),_0x72aa83['setAttribute']('groupId',_0x1b449d),_0x3fb2a7=!0x0),_0x72aa83=_0x72aa83['next'];return _0x3fb2a7;}}['_supportLegacySuggestions'](){const _0x151aa8=this['editor'],_0x494ad7=_0x151aa8['locale'],_0x5781fc=_0x151aa8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5781fc['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1ca32f,_0x1ba7e4){const _0x37cf12=[];for(let _0x495b8f of _0x1ca32f)_0x495b8f['start']['nodeAfter']===_0x495b8f['end']['parent']&&(_0x495b8f=_0x151aa8['model']['createRange'](_0x151aa8['model']['createPositionAt'](_0x495b8f['start']['nodeAfter'],0x0))),_0x37cf12['push'](_0x495b8f);_0x151aa8['model']['change'](_0x3a1341=>{const _0x1779f0=_0x151aa8['model']['document']['selection'],_0x3b2f7=Array['from'](_0x1779f0['getRanges']())['map'](_0x1010cc=>_0x137881['fromRange'](_0x1010cc));_0x3a1341['setSelection'](_0x37cf12),_0x151aa8['commands']['get'](_0x1ba7e4['commandName'])['refresh'](),_0x1ba7e4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x151aa8['execute'](_0x1ba7e4['commandName'],..._0x1ba7e4['commandParams']),_0x3a1341['setSelection'](_0x3b2f7);for(const _0x4ce909 of _0x3b2f7)_0x4ce909['detach']();});}),_0x5781fc['descriptionFactory']['registerElementLabel'](function(_0x4b34e4){const _0x425e8e=!_0x151aa8['model']['schema']['isObject'](_0x4b34e4),_0x4d3e2b=_0x4b34e4['previousSibling'],_0x155b0c=_0x4b34e4['nextSibling'],_0x41f47f=_0x4b34e4['getAttribute']('listItemId'),_0x5c37e6=!_0x4d3e2b||_0x4d3e2b['getAttribute']('listItemId')!==_0x41f47f,_0x1f7c7c=!_0x155b0c||_0x155b0c['getAttribute']('listItemId')!==_0x41f47f;return _0x425e8e&&Boolean(_0x41f47f)&&_0x5c37e6&&_0x1f7c7c;},_0x220853=>o(_0x494ad7,'ELEMENT_LIST_ITEM',_0x220853));}['_registerLegacyDescription'](){const _0x2c80a6=this['editor'],_0x597914=_0x2c80a6['locale'];function _0x38359c(_0x35cf4c){const _0x567d62=_0x2c80a6['commands']['get']('bulletedList')['value'],_0x279dc5=_0x2c80a6['commands']['get']('numberedList')['value'];return'numberedList'===_0x35cf4c?_0x567d62:_0x279dc5;}_0x2c80a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1b0d71){if('formatBlock'!=_0x1b0d71['type'])return;const {data:_0x4be927}=_0x1b0d71;if(!_0x4be927)return;let _0x4c992a,_0x20adf3,_0x53a08f,_0x352ebd;switch(_0x4be927['commandName']){case'bulletedList':_0x53a08f=_0x4be927['commandParams'][0x0]['forceValue'],_0x352ebd=_0x38359c(_0x4be927['commandName']),_0x4c992a=_0x53a08f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x352ebd&&_0x2c80a6['config']['get']('list.multiBlock')||(_0x4c992a='*Change\x20to:*\x20%0'),_0x20adf3={'type':'format','content':o(_0x597914,_0x4c992a,o(_0x597914,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x53a08f=_0x4be927['commandParams'][0x0]['forceValue'],_0x352ebd=_0x38359c(_0x4be927['commandName']),_0x4c992a=_0x53a08f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x352ebd&&_0x2c80a6['config']['get']('list.multiBlock')||(_0x4c992a='*Change\x20to:*\x20%0'),_0x20adf3={'type':'format','content':o(_0x597914,_0x4c992a,o(_0x597914,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4c992a='*Indent:*\x20%0',_0x20adf3={'type':'format','content':o(_0x597914,_0x4c992a,o(_0x597914,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4c992a=function(_0x18e768){const _0x570010=_0x18e768['getFirstRange']();let _0x156bf7=_0x570010['start']['nodeAfter'];for(;_0x156bf7&&_0x570010['containsItem'](_0x156bf7);){if(_0x156bf7['getAttribute']('listIndent')>0x0)return!0x1;_0x156bf7=_0x156bf7['nextSibling'];}return!0x0;}(_0x1b0d71)?o(_0x597914,'*Format:*\x20remove\x20from\x20%0',o(_0x597914,function(_0x9d65b8){return'ELEMENT_'+_0x9d65b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1b0d71))):o(_0x597914,'*Outdent:*\x20%0',o(_0x597914,'ELEMENT_LIST_ITEM')),_0x20adf3={'type':'format','content':_0x4c992a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4be927['multipleBlocks']&&(_0x4c992a='*Merge:*\x20%0',_0x20adf3={'type':'deletion','content':o(_0x597914,_0x4c992a,o(_0x597914,'ELEMENT_LIST_ITEM'))});}return _0x20adf3;});}}function le(_0x17b36d){let _0xf5ab11=_0x17b36d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xf5ab11;){const _0xbe24c7=_0xf5ab11['getAttribute']('listItemId');if(!_0xbe24c7)return!0x1;if(_0xbe24c7==_0x17b36d['data']['newValue'])return'newValue';if(_0xbe24c7==_0x17b36d['data']['oldValue'])return'oldValue';_0xf5ab11=_0xf5ab11['previousSibling'];}return!0x1;}class ue extends _0x181a03{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2fe5f4=this['editor']['config']['get']('list.properties'),_0x19c2c2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fe5f4['styles']&&(_0x19c2c2['enableDefaultAttributesIntegration']('listStyle'),_0x19c2c2['registerBlockAttribute']('listStyle')),_0x2fe5f4['reversed']&&(_0x19c2c2['enableDefaultAttributesIntegration']('listReversed'),_0x19c2c2['registerBlockAttribute']('listReversed')),_0x2fe5f4['startIndex']&&(_0x19c2c2['enableDefaultAttributesIntegration']('listStart'),_0x19c2c2['registerBlockAttribute']('listStart'));const _0x27b5f7={'type':'format','content':''};_0x19c2c2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x184055=this['editor']['locale'];_0x19c2c2['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x184055,'FORMAT_LIST_REVERSED')),_0x19c2c2['descriptionFactory']['registerDescriptionCallback'](_0x59b22b=>{const {data:_0x26dff3}=_0x59b22b;if(_0x26dff3&&'listReversed'==_0x26dff3['key'])return null==_0x26dff3['newValue']||0x0==_0x26dff3['newValue']&&null==_0x26dff3['oldValue']?_0x27b5f7:void 0x0;}),_0x19c2c2['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x184055,'FORMAT_LIST_START')),_0x19c2c2['descriptionFactory']['registerDescriptionCallback'](_0x20e98a=>{const {data:_0x4cc629}=_0x20e98a;if(_0x4cc629&&'listStart'==_0x4cc629['key'])return null==_0x4cc629['newValue']||0x1==_0x4cc629['newValue']&&null==_0x4cc629['oldValue']?_0x27b5f7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x43e369=>{if(_0x43e369['batch']['isUndo'])return!0x1;let _0x5454d4=!0x1;const _0x26afd0=_0x19c2c2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x295b55=>{const _0xc10802=_0x19c2c2['_getAttributeKey'](_0x295b55);return'listStart'==_0xc10802||'listReversed'==_0xc10802;});for(const _0x1490da of _0x26afd0){const _0x204fe6=_0x1490da['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x204fe6||'customNumbered'==_0x204fe6)continue;_0x19c2c2['_findSuggestions'](_0x1490da['getFirstRange'](),'attribute')['find'](_0x2eeec6=>'listType'==_0x19c2c2['_getAttributeKey'](_0x2eeec6['suggestion']))||(_0x43e369['removeMarker'](_0x1490da['getFirstMarker']()),_0x5454d4=!0x0);}return _0x5454d4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x54a47d){const _0x33ccae=this['editor']['locale'],{data:_0x11ba69}=_0x54a47d,_0x155ac7={'type':'format','content':''};if(!_0x11ba69||'listStyle'!=_0x11ba69['key'])return;if(!_0x11ba69['oldValue'])return'default'==_0x11ba69['newValue']?_0x155ac7:{'type':'format','content':''+o(_0x33ccae,'*Set\x20format:*\x20%0',o(_0x33ccae,this['_getTranslationKeyForListStyle'](_0x11ba69['newValue'])))};if(!_0x11ba69['newValue']){if('default'==_0x11ba69['oldValue'])return _0x155ac7;let _0xd1f05c=_0x54a47d['head'];for(;_0xd1f05c;){if(_0xd1f05c['data']&&'listType'==_0xd1f05c['data']['key']&&_0xd1f05c['data']['newValue'])return _0x155ac7;_0xd1f05c=_0xd1f05c['next'];}return{'type':'format','content':''+o(_0x33ccae,'*Remove\x20format:*\x20%0',o(_0x33ccae,this['_getTranslationKeyForListStyle'](_0x11ba69['oldValue'])))};}if('default'!=_0x11ba69['newValue'])return{'type':'format','content':''+o(_0x33ccae,'*Set\x20format:*\x20%0',o(_0x33ccae,this['_getTranslationKeyForListStyle'](_0x11ba69['newValue'])))};let _0x2a5516=_0x54a47d['head'];for(;_0x2a5516;){if(_0x2a5516['data']&&'listType'==_0x2a5516['data']['key']&&_0x2a5516['data']['newValue']&&_0x2a5516['data']['oldValue'])return _0x155ac7;_0x2a5516=_0x2a5516['next'];}return{'type':'format','content':o(_0x33ccae,'*Set\x20format:*\x20%0',o(_0x33ccae,'ELEMENT_'+_0x54a47d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x15a52a=this['editor'],_0x42fbc4=_0x15a52a['locale'];_0x15a52a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5fa034=>{if('formatBlock'!=_0x5fa034['type'])return;const {data:_0x479f65}=_0x5fa034;if(!_0x479f65)return;let _0xbabf2a,_0x3a14e3;switch(_0x479f65['commandName']){case'listStyle':_0xbabf2a='*Change\x20to:*\x20%0',_0x3a14e3={'type':'format','content':o(_0x42fbc4,_0xbabf2a,o(_0x42fbc4,this['_getTranslationKeyForListStyle'](_0x479f65['commandParams'][0x0]['type'])))};break;case'listReversed':_0xbabf2a=_0x479f65['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3a14e3={'type':'format','content':o(_0x42fbc4,_0xbabf2a)};break;case'listStart':_0xbabf2a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a14e3={'type':'format','content':o(_0x42fbc4,_0xbabf2a,_0x479f65['commandParams'][0x0]['startIndex'])};}return _0x3a14e3;});}['_getTranslationKeyForListStyle'](_0x455853){return'ELEMENT_'+function(_0x298c9f){if(pe['includes'](_0x298c9f))return'bulleted';if(ye['includes'](_0x298c9f))return'numbered';return null;}(_0x455853)['toUpperCase']()+'_LIST_'+_0x455853['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x181a03{static get['requires'](){return[_0x1ab8b5];}['init'](){const _0x1e763d=this['editor'],_0x5be0bd=_0x1e763d['plugins']['get']('TrackChangesEditing'),_0x2ff4c6=_0x1e763d['commands']['get']('enter');_0x5be0bd['enableCommand']('enter',()=>{_0x1e763d['model']['change'](_0x784bf4=>{const _0x25ea99=_0x1e763d['model']['document']['selection'],_0x2a1770=_0x25ea99['getFirstPosition'](),_0x23a1f0=_0x137881['fromRange'](_0x25ea99['getFirstRange']());if(_0x2ff4c6['enterBlock'](_0x784bf4)){const _0x5231d7=_0x1e763d['model']['createPositionAt'](_0x2a1770['parent']['nextSibling'],0x0),_0x5eb092=_0x784bf4['createRange'](_0x2a1770,_0x5231d7);_0x5be0bd['markInsertion'](_0x5eb092);}else _0x784bf4['setSelection'](_0x784bf4['createRange'](_0x23a1f0['end']));_0x23a1f0['detach'](),_0x2ff4c6['fire']('afterExecute',{'writer':_0x784bf4});});}),_0x1e763d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1e763d,'split'),{'priority':'high'}),_0x1e763d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x56cb36,_0x21f86f,_0xed0c3a)=>{const _0x54f802=_0xed0c3a['mapper']['markerNameToElements'](_0x21f86f['markerName']);if(_0x54f802){for(const _0x20cd22 of _0x54f802)_0x20cd22['hasClass']('ck-suggestion-marker-split')&&(_0xed0c3a['mapper']['unbindElementFromMarkerName'](_0x20cd22,_0x21f86f['markerName']),_0xed0c3a['writer']['remove'](_0x20cd22));}},{'priority':'high'}),_0x1e763d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x44d642,_0x5691b4,_0x124639)=>{_0x124639['options']['showSuggestionHighlights']&&_e(_0x1e763d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x44d642,_0x5691b4,_0x124639);},{'priority':'high'});}}class J extends _0x181a03{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1d81dd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d81dd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1d81dd['enableCommand']('findNext'),_0x1d81dd['enableCommand']('findPrevious'),_0x1d81dd['enableCommand']('replace'),_0x1d81dd['enableCommand']('replaceAll');}['handleFindCommand'](_0x5cece2,_0xfbe4df,_0x21d0b0={}){const _0x56e405=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5cece2(_0x295e26=>('string'==typeof _0xfbe4df?_0x56e405['findByTextCallback'](_0xfbe4df,_0x21d0b0):_0xfbe4df)(_0x295e26)['filter'](_0x4233b7=>!0x1===this['_isInDeletionRange'](_0x4233b7,_0x295e26['item'])),_0x21d0b0);}['_isInDeletionRange'](_0x1e37b5,_0x1e1717){const _0x324746=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e1717,_0x1e37b5['start']),this['editor']['model']['createPositionAt'](_0x1e1717,_0x1e37b5['end']));for(const _0x16bc45 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x324746['getIntersection'](_0x16bc45['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 _0x181a03{['afterInit'](){const _0x480408=this['editor']['locale'],_0x5a0f44=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5a6f07,commandName:_0x3ae3a0}of ro)this['editor']['plugins']['has'](_0x5a6f07)&&(_0x5a0f44['enableDefaultAttributesIntegration'](_0x3ae3a0),_0x5a0f44['registerInlineAttribute'](_0x3ae3a0));_0x480408['t'],_0x5a0f44['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x480408,'FORMAT_FONT_SIZE')),_0x5a0f44['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x480408,'FORMAT_FONT_FAMILY')),_0x5a0f44['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x480408,'FORMAT_FONT_COLOR')),_0x5a0f44['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x480408,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x373fd4=this['editor'],_0x1e8760=_0x373fd4['locale'];_0x373fd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb3c792=>{const _0x494834=_0x1e8760['t'];if('formatInline'!=_0xb3c792['type'])return;const {data:_0x5521f0}=_0xb3c792;if(null!=_0x5521f0){if('fontSize'==_0x5521f0['commandName']){const _0x54d2e6=_0x5521f0['commandParams'][0x0]['value'];if(_0x54d2e6){const _0x28c851=_0x494834(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x16a7d1=>_0x16a7d1['model']==_0x54d2e6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1e8760,'*Set\x20font\x20size:*\x20%0',_0x28c851)};}return{'type':'format','content':o(_0x1e8760,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5521f0['commandName']){const _0x5f286f=_0x5521f0['commandParams'][0x0]['value'];return _0x5f286f?{'type':'format','content':o(_0x1e8760,'*Set\x20font\x20family:*\x20%0',_0x5f286f)}:{'type':'format','content':o(_0x1e8760,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5521f0['commandName']){const _0x39a982=_0x5521f0['commandParams'][0x0]['value'];if(_0x39a982){const _0x423591=_0x50244d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5bb1ad=>_0x5bb1ad['model']==_0x39a982);let _0x12195f=_0x39a982,_0x29ae99='';return _0x423591&&(_0x12195f=_0x423591['label'],_0x29ae99=_0x494834(_0x12195f)['toLowerCase']()),{'type':'format','content':o(_0x1e8760,'*Set\x20font\x20color:*\x20%0',_0x29ae99)['trim'](),'color':{'value':_0x39a982,'title':_0x29ae99||_0x12195f}};}return{'type':'format','content':o(_0x1e8760,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5521f0['commandName']){const _0x4c4852=_0x5521f0['commandParams'][0x0]['value'];if(_0x4c4852){const _0x3d53be=_0x50244d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x276952=>_0x276952['model']==_0x4c4852);let _0x40f681=_0x4c4852,_0x46b531='';return _0x3d53be&&(_0x40f681=_0x3d53be['label'],_0x46b531=_0x494834(_0x40f681)['toLowerCase']()),{'type':'format','content':o(_0x1e8760,'*Set\x20font\x20background\x20color:*\x20%0',_0x46b531)['trim'](),'color':{'value':_0x4c4852,'title':_0x46b531||_0x40f681}};}return{'type':'format','content':o(_0x1e8760,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x181a03{['afterInit'](){const _0xbc9bb9=this['editor'],_0x1c1b98=_0xbc9bb9['plugins']['get']('TrackChangesEditing'),_0x178851=_0xbc9bb9['commands']['get']('copyFormat'),_0x598ad0=_0xbc9bb9['commands']['get']('pasteFormat');_0x178851&&_0x598ad0&&(_0x1c1b98['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c1b98['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x239740=this['editor'],_0x5f45c9=_0x239740['locale'];_0x239740['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13bfd9=>{if('formatBlock'!=_0x13bfd9['type']&&'formatInline'!=_0x13bfd9['type'])return;const {data:_0x37ace9}=_0x13bfd9;if(_0x37ace9&&'pasteFormat'===_0x37ace9['commandName']){const _0x1bb3f8=[],_0xc721cf=_0x37ace9['commandParams'][0x0];for(const [_0x140120,_0x1891d1]of Object['entries'](_0xc721cf))_0x1bb3f8['push'](so(_0x239740,_0x140120,_0x1891d1));return _0x1bb3f8['length']?{'type':'format','content':o(_0x5f45c9,'*Set\x20format\x20to:*\x20%0',_0x1bb3f8['join'](',\x20'))}:{'type':'format','content':o(_0x5f45c9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3d96ea,_0x49e563,_0x435d97){const _0x4d922f=_0x3d96ea['locale']['t'],_0x127aec=_0x49e563['split'](/(?=[A-Z])/)['join']('\x20'),_0x142829=_0x4d922f(_0x127aec['charAt'](0x0)['toUpperCase']()+_0x127aec['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x435d97)return _0x142829;if('fontColor'===_0x49e563||'fontBackgroundColor'===_0x49e563){const _0x516a34=_0x50244d(_0x3d96ea['config']['get']('fontColor.colors'))['find'](_0x1cf04f=>_0x1cf04f['model']==_0x435d97);return _0x142829+'\x20('+(_0x516a34?_0x4d922f(_0x516a34['label'])['toLowerCase']():_0x435d97)+')';}if('fontSize'===_0x49e563&&isNaN(parseFloat(_0x435d97))){const _0x3cc817=_0x3d96ea['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3d96ea['config']['get']('fontSize.options'))['find'](_0x2b70d1=>_0x2b70d1['model']==_0x435d97);return _0x142829+'\x20('+(_0x3cc817?_0x4d922f(_0x3cc817['title'])['toLowerCase']():_0x435d97)+')';}return _0x142829+'\x20('+_0x435d97+')';}class Y extends _0x181a03{['_headingOptions'];['afterInit'](){const _0x2cfa4c=this['editor'];if(!_0x2cfa4c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2cfa4c['config']['get']('heading.options');const _0x46241b=_0x2cfa4c['locale'],_0x37adc4=_0x2cfa4c['plugins']['get']('TrackChangesEditing');_0x37adc4['enableDefaultAttributesIntegration']('heading');for(const _0x42e6de of this['_headingOptions'])'paragraph'!=_0x42e6de['model']&&_0x37adc4['descriptionFactory']['registerElementLabel'](_0x42e6de['model'],_0x15e177=>{const _0x1d27c1=this['_getHeadingLevel'](_0x42e6de['model']);return null!==_0x1d27c1?_0xcc760c(_0x15e177,_0x1d27c1):_0x39a660(_0x15e177,_0x42e6de['title']);});function _0xcc760c(_0x3dfea0,_0x5690db){return o(_0x46241b,'ELEMENT_HEADING',[_0x3dfea0,_0x5690db]);}function _0x39a660(_0x168241,_0x16b84f){return o(_0x46241b,'ELEMENT_HEADING_CUSTOM',[_0x168241,_0x16b84f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43a608=this['editor'],_0x5874ac=_0x43a608['locale'];function _0x54cb56(_0x3e1971,_0x47750b){return o(_0x5874ac,'ELEMENT_HEADING_CUSTOM',[_0x3e1971,_0x47750b]);}_0x43a608['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ede4c=>{if('formatBlock'!=_0x3ede4c['type'])return;const {data:_0x48e9e4}=_0x3ede4c;if(_0x48e9e4&&'heading'==_0x48e9e4['commandName']){const _0x1bc052=_0x48e9e4['commandParams'][0x0]['value'],_0x4b078b=this['_getHeadingLevel'](_0x1bc052);if(null!==_0x4b078b)return{'type':'format','content':o(_0x5874ac,'*Change\x20to:*\x20%0',(_0x4b5f37=0x1,_0x2d6ab4=_0x4b078b,o(_0x5874ac,'ELEMENT_HEADING',[_0x4b5f37,_0x2d6ab4])))};const _0x34977b=this['_headingOptions']['find'](_0x10ebb3=>_0x10ebb3['model']===_0x1bc052)['title'];return{'type':'format','content':o(_0x5874ac,'*Change\x20to:*\x20%0',_0x54cb56(0x1,_0x34977b))};}var _0x4b5f37,_0x2d6ab4;});}['_getHeadingLevel'](_0x42aac6){const _0x323d75=_0x42aac6['match'](/^heading(\d+)/);if(_0x323d75)return _0x323d75[0x1];const _0x22efd9=this['_headingOptions']?.['find'](_0x33bc89=>_0x33bc89['model']==_0x42aac6);if(_0x22efd9&&_0x22efd9['view']){const _0x5e500b=_0x22efd9['view'],_0x4ba84c=(_0x5e500b['name']??_0x5e500b)['match'](/^h(\d+)/);if(_0x4ba84c)return _0x4ba84c[0x1];}return null;}}class Z extends _0x181a03{['afterInit'](){const _0x4fce5e=this['editor'];if(!_0x4fce5e['plugins']['has']('HighlightEditing'))return;const _0x4f98bf=_0x4fce5e['plugins']['get']('TrackChangesEditing'),_0x2b92a3=_0x4fce5e['locale'];_0x4f98bf['enableDefaultAttributesIntegration']('highlight'),_0x4f98bf['registerInlineAttribute']('highlight'),_0x4f98bf['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2b92a3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38b5d7=this['editor'],_0x310959=_0x38b5d7['locale'];_0x38b5d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5401c6=>{if('formatInline'!=_0x5401c6['type'])return;const {data:_0x47d7a7}=_0x5401c6;if(_0x47d7a7&&'highlight'==_0x47d7a7['commandName']){const _0x27d4bc=_0x310959['t'],_0x548cf6=_0x47d7a7['commandParams'][0x0]['value'];if(_0x548cf6){const _0x33dcc6=_0x38b5d7['config']['get']('highlight.options')['find'](_0x279dde=>_0x279dde['model']==_0x548cf6),_0x8aed82=_0x27d4bc(_0x33dcc6['title'])['toLowerCase']();return{'type':'format','content':o(_0x310959,'*Set\x20highlight:*\x20%0',_0x8aed82),'color':{'value':_0x33dcc6['color'],'title':_0x33dcc6['title']}};}return{'type':'format','content':o(_0x310959,'*Remove\x20highlight*',o(_0x310959,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x181a03{['afterInit'](){const _0x312b94=this['editor'];if(!_0x312b94['plugins']['has']('HorizontalLineEditing'))return;_0x312b94['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5ae907=_0x312b94['plugins']['get']('TrackChangesEditing'),_0x511624=_0x312b94['locale'];_0x5ae907['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33da65=>o(_0x511624,'ELEMENT_HORIZONTAL_LINE',_0x33da65)),_0x312b94['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x30db08,{writer:_0x57d4c4,options:_0x56e326})=>{if(!_0x56e326['showSuggestionHighlights'])return null;const _0x3ed82b=_0x57d4c4['createContainerElement']('div'),_0x5a18ea=_0x57d4c4['createEmptyElement']('hr');return _0x57d4c4['addClass']('ck-horizontal-line',_0x3ed82b),_0x57d4c4['insert'](_0x57d4c4['createPositionAt'](_0x3ed82b,0x0),_0x5a18ea),_0x3ed82b;},'converterPriority':'high'});}}class et extends _0x181a03{['afterInit'](){const _0xe76f78=this['editor'];if(!_0xe76f78['plugins']['has']('HtmlEmbed'))return;const _0x5a4c17=_0xe76f78['plugins']['get']('TrackChangesEditing'),_0x4d4f20=_0xe76f78['locale'];_0x5a4c17['descriptionFactory']['registerElementLabel']('rawHtml',_0x54c80f=>o(_0x4d4f20,'ELEMENT_HTML_EMBED',_0x54c80f)),_0x5a4c17['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5a4c17['registerBlockAttribute']('value'),_0x5a4c17['descriptionFactory']['registerDescriptionCallback'](_0x5ead51=>{if('attribute'!=_0x5ead51['type'])return;const {data:_0x73481b}=_0x5ead51;if(_0x73481b&&'value'==_0x73481b['key']&&_0x5ead51['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x55798d=o(_0x4d4f20,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4d4f20,'*Change\x20%0\x20content*',_0x55798d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45937e=this['editor'],_0x59ba6d=_0x45937e['locale'];_0x45937e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ee130=>{if('formatBlock'!=_0x3ee130['type'])return;const {data:_0x4f1040}=_0x3ee130;if(_0x4f1040&&'htmlEmbed'==_0x4f1040['commandName']){const _0x4a0944=o(_0x59ba6d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x59ba6d,'*Change\x20%0\x20content*',_0x4a0944)};}});}}class it extends _0x181a03{['afterInit'](){const _0x52691e=this['editor'];if(!_0x52691e['plugins']['has']('ImageEditing'))return;const _0xcaa65e=_0x52691e['plugins']['get']('TrackChangesEditing'),_0x4b0f4b=_0x52691e['plugins']['get']('ImageUtils'),_0x14e0e4=_0x52691e['locale'];_0xcaa65e['enableCommand']('insertImage'),_0xcaa65e['descriptionFactory']['registerElementLabel']('imageBlock',_0x4d1749=>o(_0x14e0e4,'ELEMENT_IMAGE',_0x4d1749)),_0xcaa65e['descriptionFactory']['registerElementLabel']('imageInline',_0x210bf6=>o(_0x14e0e4,'ELEMENT_INLINE_IMAGE',_0x210bf6)),_0xcaa65e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x14e0e4,'ELEMENT_CAPTION')),_0x52691e['plugins']['has']('ImageUploadEditing')&&_0xcaa65e['enableCommand']('uploadImage'),_0x52691e['plugins']['has']('ImageBlockEditing')&&_0x52691e['plugins']['has']('ImageInlineEditing')&&(_0xcaa65e['enableCommand']('imageTypeInline',(_0x56d11a,_0x4e0f50)=>{const _0x3a98bb=_0x4b0f4b['getClosestSelectedImageElement'](_0x52691e['model']['document']['selection']);_0x52691e['model']['change'](()=>{_0xcaa65e['markBlockFormat'](_0x3a98bb,{'commandName':'imageTypeInline','commandParams':[_0x4e0f50]},[],'convertBlockImageToInline');});}),_0xcaa65e['enableCommand']('imageTypeBlock',(_0x581a6b,_0x239535)=>{_0x52691e['model']['change'](_0x3a4662=>{let _0x307a99=_0x4b0f4b['getClosestSelectedImageElement'](_0x52691e['model']['document']['selection']),_0x5c5935=_0x3a4662['createRangeOn'](_0x307a99);const _0x2366a7=_0x493217['fromPosition'](_0x5c5935['start'],'toPrevious'),_0x46351f=_0x493217['fromPosition'](_0x5c5935['end'],'toNext');_0xcaa65e['forceDefaultExecution'](()=>_0x581a6b(_0x239535)),_0x307a99=_0x4b0f4b['getClosestSelectedImageElement'](_0x52691e['model']['document']['selection']),_0x5c5935=_0x3a4662['createRangeOn'](_0x307a99);const _0x543c28=_0x3a4662['createRange'](_0x2366a7,_0x46351f);_0x2366a7['detach'](),_0x46351f['detach'](),_0xcaa65e['markBlockFormat'](_0x307a99,{'commandName':'imageTypeInline','commandParams':[_0x239535]},[],'convertInlineImageToBlock'),_0x543c28['start']['isBefore'](_0x5c5935['start'])&&_0xcaa65e['markInsertion'](_0x3a4662['createRange'](_0x543c28['start'],_0x5c5935['start']),'convertInlineImageToBlock'),_0x5c5935['end']['isBefore'](_0x543c28['end'])&&_0xcaa65e['markInsertion'](_0x3a4662['createRange'](_0x5c5935['end'],_0x543c28['end']),'convertInlineImageToBlock');});}),_0xcaa65e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xcaa65e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xcaa65e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xcaa65e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xcaa65e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xcaa65e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5d5e58])=>{const _0x249720=_0xcaa65e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x58c70b=_0x5d5e58['start'],_0x3795d7=_0x5d5e58['end'];const _0x41552f=_0x52691e['model']['schema']['getNearestSelectionRange'](_0x58c70b,'backward'),_0x2e94f0=_0x52691e['model']['schema']['getNearestSelectionRange'](_0x3795d7,'forward');_0x41552f['isCollapsed']&&(_0x58c70b=_0x41552f['start']),_0x2e94f0['isCollapsed']&&(_0x3795d7=_0x2e94f0['end']),_0x249720([_0x52691e['model']['createRange'](_0x58c70b,_0x3795d7)]);}),_0xcaa65e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x355246),_0xcaa65e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x355246)),_0x52691e['plugins']['has']('ImageCaptionEditing')&&(_0xcaa65e['enableCommand']('toggleImageCaption',(_0x2a96d0,_0x80ee22)=>{const _0x40e190=_0x52691e['plugins']['get']('ImageCaptionUtils');let _0x37a62c=_0x4b0f4b['getClosestSelectedImageElement'](_0x52691e['model']['document']['selection']),_0x5a47f0=_0x40e190['getCaptionFromImageModelElement'](_0x37a62c);_0x52691e['model']['change'](()=>{if(_0x5a47f0)return void _0xcaa65e['markDeletion'](_0x52691e['model']['createRangeOn'](_0x5a47f0));const _0x50e5ab=_0x4b0f4b['isBlockImage'](_0x37a62c);_0x2a96d0(_0x80ee22),_0x37a62c=_0x4b0f4b['getClosestSelectedImageElement'](_0x52691e['model']['document']['selection']),_0x5a47f0=_0x40e190['getCaptionFromImageModelElement'](_0x37a62c),_0xcaa65e['markInsertion'](_0x52691e['model']['createRangeOn'](_0x5a47f0),_0x50e5ab?null:'imageCaption');});}),_0xcaa65e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x355246));const _0x113663=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5a0b23(_0x2d96e8,_0x54a155){const _0x33590a=_0x113663['findIndex'](({type:_0x11d55b,subType:_0x2b7e85})=>_0x2d96e8['type']==_0x11d55b&&_0x2d96e8['subType']==_0x2b7e85),_0x5a20c5=_0x113663['findIndex'](({type:_0x1763e7,subType:_0x5d0365})=>_0x54a155['type']==_0x1763e7&&_0x54a155['subType']==_0x5d0365);if(_0x33590a<0x0||_0x5a20c5<0x0)return!0x1;const _0x5e7df8=_0x2d96e8['getFirstRange'](),_0x473d0d=_0x54a155['getFirstRange']();if((0x0==_0x33590a||0x1==_0x33590a)&&0x2==_0x5a20c5&&_0x5e7df8['isIntersecting'](_0x473d0d))return!0x0;if(0x2==_0x33590a&&0x3==_0x5a20c5){const _0x340206=_0xcaa65e['_findSuggestions'](_0x5e7df8,'insertion')['filter'](({suggestion:_0x59ae88,meta:_0x113300})=>_0x113300['isOwn']&&'convertInlineImageToBlock'==_0x59ae88['subType']);if(_0x340206['length']>0x1&&_0x473d0d['end']['isEqual'](_0x5e7df8['start']))return!0x0;if(0x1==_0x340206['length']&&(_0x5e7df8['start']['isEqual'](_0x473d0d['end'])||_0x5e7df8['end']['isEqual'](_0x473d0d['start'])))return!0x0;}if(0x3==_0x33590a&&0x3==_0x5a20c5&&_0x5e7df8['start']['isBefore'](_0x473d0d['start'])){const _0x91d8c4=_0x5e7df8['end']['nodeAfter'],_0x5098c5=_0x473d0d['start']['nodeBefore'];return _0x4b0f4b['isBlockImage'](_0x91d8c4)&&_0x91d8c4===_0x5098c5;}return!0x1;}function _0x355246(_0xa06e1b,_0x59d312){return _0x5a0b23(_0xa06e1b,_0x59d312)?[_0xa06e1b,_0x59d312]:_0x5a0b23(_0x59d312,_0xa06e1b)?[_0x59d312,_0xa06e1b]:null;}_0x52691e['plugins']['has']('ImageResize')&&(_0xcaa65e['enableDefaultAttributesIntegration']('resizeImage'),_0xcaa65e['registerBlockAttribute']('resizedWidth'),_0xcaa65e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x14e0e4,'FORMAT_IMAGE_SIZE'))),_0x52691e['plugins']['has']('ImageTextAlternativeEditing')&&(_0xcaa65e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xcaa65e['registerBlockAttribute']('alt')),_0xcaa65e['descriptionFactory']['registerDescriptionCallback'](_0x22d934=>{if(!!_0x113663['find'](({type:_0x3634fa,subType:_0x440d8d})=>_0x22d934['type']==_0x3634fa&&_0x22d934['subType']==_0x440d8d))return _0x22d934['previous']?{}:void 0x0;}),_0xcaa65e['descriptionFactory']['registerDescriptionCallback'](_0x39f92d=>{if('insertion'==_0x39f92d['type']||'deletion'==_0x39f92d['type']){const _0x40e12a=_0x39f92d['getContainedElement']();if(_0x40e12a&&_0x40e12a['is']('element','caption'))return{'type':'insertion'==_0x39f92d['type']?'addObject':'removeObject','element':_0x40e12a,'quantity':0x1};}}),_0xcaa65e['descriptionFactory']['registerDescriptionCallback'](_0x9869b2=>'formatBlock'==_0x9869b2['type']&&'convertInlineImageToBlock'==_0x9869b2['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x9869b2['type']&&'convertBlockImageToInline'==_0x9869b2['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xcaa65e['descriptionFactory']['registerDescriptionCallback'](_0x2ba9f0=>{if('attribute'!=_0x2ba9f0['type'])return;const {data:_0x1abcb8}=_0x2ba9f0;if(!_0x1abcb8||'alt'!=_0x1abcb8['key'])return;const _0x3a2a61=_0x1abcb8['newValue'];return _0x3a2a61?{'type':'format','content':o(_0x14e0e4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3a2a61+'\x22')}:{'type':'format','content':o(_0x14e0e4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39bdbd=this['editor'],_0x55397d=_0x39bdbd['locale'];_0x39bdbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x105b98=>{if('formatBlock'!=_0x105b98['type']&&'formatInline'!=_0x105b98['type'])return;const {data:_0xead169}=_0x105b98;if(_0xead169){if('imageTextAlternative'==_0xead169['commandName']){const _0x45af48=_0xead169['commandParams'][0x0]['newValue'];return _0x45af48?{'type':'format','content':o(_0x55397d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x45af48+'\x22')}:{'type':'format','content':o(_0x55397d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xead169['commandName']){const _0x573c72=_0xead169['commandParams'][0x0]['width'];return _0x573c72?{'type':'format','content':o(_0x55397d,'*Set\x20image\x20width:*\x20%0',_0x573c72)}:{'type':'format','content':o(_0x55397d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x181a03{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x177cd8=this['editor']['locale'],_0x2d2081=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d2081['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2d2081['registerBlockAttribute']('src'),_0x2d2081['descriptionFactory']['registerDescriptionCallback'](_0x136cc3=>{if('attribute'!=_0x136cc3['type'])return;const {data:_0x466a0e}=_0x136cc3;return _0x466a0e&&'src'==_0x466a0e['key']?_0x466a0e['newValue']&&_0x466a0e['oldValue']?{'type':'format','content':o(_0x177cd8,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5fdbf3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5fdbf3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5fdbf3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5fdbf3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5fdbf3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x258b65=this['editor'],_0x1536eb=_0x258b65['locale'];_0x258b65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b48fe=>{if('formatBlock'!=_0x2b48fe['type']&&'formatInline'!=_0x2b48fe['type'])return;const {data:_0x5ec25e}=_0x2b48fe;if(!_0x5ec25e||'replaceImageSource'!=_0x5ec25e['commandName'])return;return{'type':'format','content':o(_0x1536eb,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x181a03{['afterInit'](){const _0x148994=this['editor'];if(!_0x148994['plugins']['has']('ImageStyleEditing'))return;const _0x1a0d5c=_0x148994['plugins']['get']('TrackChangesEditing'),_0x2fed29=_0x148994['plugins']['get']('ImageUtils'),_0x284c48={};_0x1a0d5c['enableCommand']('imageStyle',(_0x34b998,_0x32a63b)=>{const _0x2e137d=_0x148994['plugins']['get']('Users')['me'],_0x2e9e4d=_0x148994['commands']['get']('imageStyle');let _0x4024a0=_0x2fed29['getClosestSelectedImageElement'](_0x148994['model']['document']['selection']),_0x364396=_0x148994['model']['createRangeOn'](_0x4024a0),_0x4bf0e3=_0x2e9e4d['value'];if(_0x4bf0e3==_0x32a63b['value'])return;const _0x23b090={'commandName':'imageStyle','commandParams':[_0x32a63b],'formatGroupId':_0x25cdca()};_0x148994['model']['change'](()=>{if(_0x1a0d5c['getSuggestions']()['filter'](_0x32e274=>_0x32e274['isInContent']&&_0x2e137d==_0x32e274['author']&&('formatBlock'==_0x32e274['type']||'formatInline'==_0x32e274['type'])&&('imageStylePreApply'==_0x32e274['subType']||'imageStylePostApply'==_0x32e274['subType'])&&_0x32e274['getFirstRange']()['isEqual'](_0x364396))['forEach'](_0x3846f7=>_0x1a0d5c['discardSuggestion'](_0x3846f7['head'])),_0x4024a0=_0x2fed29['getClosestSelectedImageElement'](_0x148994['model']['document']['selection']),_0x364396=_0x148994['model']['createRangeOn'](_0x4024a0),_0x2e9e4d['refresh'](),_0x148994['commands']['get']('imageTypeInline')['refresh'](),_0x148994['commands']['get']('imageTypeBlock')['refresh'](),_0x4bf0e3=_0x2e9e4d['value'],_0x4bf0e3!=_0x32a63b['value'])return _0x2fed29['isInlineImage'](_0x4024a0)&&_0x2e9e4d['shouldConvertImageType'](_0x32a63b['value'],_0x4024a0)?(_0x34b998({..._0x32a63b,'setImageSizes':!0x1}),_0x4024a0=_0x2fed29['getClosestSelectedImageElement'](_0x148994['model']['document']['selection']),void _0x1a0d5c['markBlockFormat'](_0x4024a0,{..._0x23b090,'commandReversedParams':[{'value':_0x4bf0e3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2fed29['isBlockImage'](_0x4024a0)?_0x1a0d5c['markBlockFormat'](_0x4024a0,_0x23b090,[],'imageStylePostApply'):_0x1a0d5c['markInlineFormat'](_0x364396,_0x23b090,'imageStylePostApply'));});});for(const _0x50dd5a of _0x148994['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x284c48[_0x50dd5a['name']]=_0x50dd5a['title']['toLowerCase']();_0x1a0d5c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1a0d5c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1a0d5c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1a0d5c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5a5950])=>{_0x2fed29['setImageNaturalSizeAttributes'](_0x5a5950['getContainedElement']());}),_0x1a0d5c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2b8233,_0x2fddf9)=>{_0x1a0d5c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2b8233,{'commandName':_0x2fddf9['commandName'],'commandParams':_0x2fddf9['commandReversedParams']});}),_0x1a0d5c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1c8557,_0x51a5bb){if(_0x3cb8e2(_0x1c8557,_0x51a5bb))return[_0x1c8557,_0x51a5bb];if(_0x3cb8e2(_0x51a5bb,_0x1c8557))return[_0x51a5bb,_0x1c8557];return null;});const _0x2da550=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3cb8e2(_0x22b9e4,_0x5d8677){const _0x87860=_0x2da550['findIndex'](({type:_0xeeb3af,subType:_0x1d4783})=>_0x22b9e4['type']==_0xeeb3af&&_0x22b9e4['subType']==_0x1d4783),_0xfff3af=_0x2da550['findIndex'](({type:_0x13da5e,subType:_0x293581})=>_0x5d8677['type']==_0x13da5e&&_0x5d8677['subType']==_0x293581);if(_0x87860<0x0||_0xfff3af<0x0)return!0x1;const _0x4a4fb9=_0x22b9e4['getFirstRange'](),_0x37823a=_0x5d8677['getFirstRange']();if((0x0==_0x87860||0x1==_0x87860)&&0x2==_0xfff3af&&_0x4a4fb9['isIntersecting'](_0x37823a))return!0x0;if(0x2==_0x87860&&0x3==_0xfff3af){const _0x1fc5f1=_0x1a0d5c['_findSuggestions'](_0x4a4fb9,'insertion')['filter'](({suggestion:_0x444428,meta:_0x54dda4})=>_0x54dda4['isOwn']&&'convertInlineImageToBlock'==_0x444428['subType']);if(_0x1fc5f1['length']>0x1&&_0x37823a['end']['isEqual'](_0x4a4fb9['start']))return!0x0;if(0x1==_0x1fc5f1['length']&&(_0x4a4fb9['start']['isEqual'](_0x37823a['end'])||_0x4a4fb9['end']['isEqual'](_0x37823a['start'])))return!0x0;}if(0x3==_0x87860&&0x3==_0xfff3af&&_0x4a4fb9['start']['isBefore'](_0x37823a['start'])){const _0x4d9f57=_0x4a4fb9['end']['nodeAfter'],_0x55fcbc=_0x37823a['start']['nodeBefore'];return _0x2fed29['isBlockImage'](_0x4d9f57)&&_0x4d9f57===_0x55fcbc;}return!0x1;}_0x148994['model']['document']['registerPostFixer'](()=>{let _0xf46f4c=!0x1;const _0x3d2085=Array['from'](_0x148994['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x503b64,data:_0x4e5894}of _0x3d2085){const {group:_0x3a492e,type:_0x5c1516,subType:_0xb19b11,id:_0x26f8e1}=_0x1a0d5c['_splitMarkerName'](_0x503b64);if('suggestion'==_0x3a492e&&_0x1a0d5c['hasSuggestion'](_0x26f8e1)){if('formatBlock'==_0x5c1516&&('imageStylePreApply'==_0xb19b11||'imageStylePostApply'==_0xb19b11)){const _0x572f75=_0x1a0d5c['getSuggestion'](_0x26f8e1);if(_0x4e5894['newRange']){const _0x508ba2=_0x572f75['getFirstRange']()['getContainedElement']();if(_0x2fed29['isBlockImage'](_0x508ba2))continue;_0x1a0d5c['discardSuggestion'](_0x572f75),_0xf46f4c=!0x0;}}if('insertion'==_0x5c1516&&'imageCaption'==_0xb19b11&&!_0x4e5894['newRange']){const _0x6569be=_0x1a0d5c['getSuggestion'](_0x26f8e1);_0x6569be['next']&&_0x6569be['next']['isInContent']&&(_0x1a0d5c['discardSuggestion'](_0x6569be['next']),_0xf46f4c=!0x0);}}}return _0xf46f4c;}),this['_registerLegacyDescription'](_0x284c48);}['_registerLegacyDescription'](_0x1c8027){const _0x594a86=this['editor'],_0x4580a1=_0x594a86['locale'];_0x594a86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5207de=>{if('formatBlock'!=_0x5207de['type']&&'formatInline'!=_0x5207de['type'])return;const {data:_0x614394}=_0x5207de;if(!_0x614394||'imageStyle'!=_0x614394['commandName'])return;const _0x1d8ca3=_0x614394['commandParams'][0x0]['value'];return _0x45a34e('side'===_0x1d8ca3?o(_0x4580a1,'FORMAT_SIDE_IMAGE'):_0x1c8027[_0x1d8ca3]||_0x1d8ca3);function _0x45a34e(_0x871539){return{'type':'format','content':o(_0x4580a1,'*Format:*\x20%0',_0x871539)};}});}}class ot extends _0x181a03{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xaef9e3){super(_0xaef9e3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x96b4f0=this['editor'],_0x2c357f=_0x96b4f0['commands']['get']('importWord'),_0x445a8b=_0x96b4f0['commands']['get']('trackChanges');_0x2c357f&&(_0x2c357f['on']('execute',(_0x3b0e89,[,_0x1e8925])=>{this['_trackChangesValueDuringImport']=_0x445a8b['value'],_0x1e8925['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2c357f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2c357f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x445a8b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x96b4f0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xe8964c,_0x57e527){const {suggestions:_0x23142b}=_0x57e527,_0x266704=this['editor']['commands']['get']('trackChanges'),_0x289cfe=_0x266704['value'];this['_trackChangesValueDuringImport']!==_0x289cfe&&(_0x266704['execute'](),this['_trackChangesExecuted']=!0x0),_0x23142b&&_0x23142b['forEach'](({id:_0x1a7be8,type:_0x4bbd41,author:_0x284a9c,created_at:_0x334ed5})=>{const _0x2f0f42={'id':_0x1a7be8,'type':_0x4bbd41,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x284a9c,'createdAt':_0x334ed5?new Date(_0x334ed5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2f0f42);});}}class rt extends _0x181a03{['afterInit'](){const _0xac4c2=this['editor'],_0xf6f845=_0xac4c2['plugins']['get']('TrackChangesEditing');if(_0xac4c2['plugins']['has']('IndentEditing')&&(_0xf6f845['enableCommand']('indent'),_0xf6f845['enableCommand']('outdent')),_0xac4c2['plugins']['has']('IndentBlock')){for(const _0x1c1047 of['indentBlock','outdentBlock'])_0xf6f845['enableDefaultAttributesIntegration'](_0x1c1047);}const _0x3483f1=_0xac4c2['locale'];_0xf6f845['registerBlockAttribute']('blockIndent'),_0xf6f845['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3483f1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x243048=this['editor'],_0x4b42b7=_0x243048['locale'],_0x1ce411=_0x243048['plugins']['get']('TrackChangesEditing');_0x1ce411['descriptionFactory']['registerDescriptionCallback'](_0x44a13d=>{if('formatBlock'!=_0x44a13d['type'])return;const {data:_0x57eb74}=_0x44a13d;if(!_0x57eb74)return;if('indentBlock'!=_0x57eb74['commandName']&&'outdentBlock'!=_0x57eb74['commandName'])return;const _0x414ebb=_0x44a13d['getItems']()[0x0],_0x5c05f1=_0x1ce411['descriptionFactory']['getItemLabel'](_0x414ebb);return'indentBlock'==_0x57eb74['commandName']?{'type':'format','content':o(_0x4b42b7,'*Indent:*\x20%0',_0x5c05f1)}:'outdentBlock'==_0x57eb74['commandName']?{'type':'format','content':o(_0x4b42b7,'*Outdent:*\x20%0',_0x5c05f1)}:void 0x0;});}}class at extends _0x181a03{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x181a03{['afterInit'](){const _0x54d194=this['editor'];if(!_0x54d194['plugins']['has']('LinkEditing'))return;const _0x267832=_0x54d194['plugins']['get']('TrackChangesEditing'),_0x108f8c=_0x54d194['commands']['get']('link');_0x267832['enableDefaultAttributesIntegration']('link'),_0x267832['enableDefaultAttributesIntegration']('unlink'),_0x267832['registerInlineAttribute']('linkHref');for(const _0x84916b of _0x108f8c['manualDecorators'])_0x267832['registerInlineAttribute'](_0x84916b['id']),_0x267832['descriptionFactory']['registerAttributeLabel'](_0x84916b['id'],'link\x20('+_0x84916b['label']['toLowerCase']()+')');_0x267832['descriptionFactory']['registerDescriptionCallback'](_0x575d9a=>{if('attribute'!=_0x575d9a['type'])return;const {data:_0x7a39a7}=_0x575d9a;if(!_0x7a39a7||'linkHref'!=_0x7a39a7['key'])return;const _0x534a91=_0x7a39a7['newValue'],_0x45a986=_0x54d194['locale'];return{'type':'format','content':null==_0x534a91?o(_0x45a986,'*Remove\x20link*'):o(_0x45a986,'*Set\x20link:*\x20%0','\x22'+_0x534a91+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a906d=this['editor'],_0x1f752c=_0x4a906d['locale'];_0x4a906d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a06a9=>{if('formatInline'!=_0x3a06a9['type'])return;const {data:_0x2e5b9d}=_0x3a06a9;if(_0x2e5b9d){if('link'==_0x2e5b9d['commandName']){const _0x1551f9=_0x2e5b9d['commandParams'][0x0];return{'type':'format','content':o(_0x1f752c,'*Set\x20link:*\x20%0','\x22'+_0x1551f9+'\x22')};}return'unlink'==_0x2e5b9d['commandName']?{'type':'format','content':o(_0x1f752c,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x181a03{['afterInit'](){const _0x195a52=this['editor'],_0x1fe01d=_0x195a52['locale'];if(!_0x195a52['plugins']['has']('LegacyListEditing'))return;const _0x38c508=_0x195a52['plugins']['get']('TrackChangesEditing'),_0x51019a=_0x195a52['plugins']['has']('LegacyTodoListEditing');function _0x21d09c(_0x29f2fc){return()=>{const _0x201821=_0x195a52['model']['document']['selection'],_0x1be54d=_0x195a52['commands']['get'](_0x29f2fc);if(_0x1be54d['value'])return void _0x195a52['execute']('paragraph',{});const _0x34accd=_0x29f2fc['slice'](0x0,-0x4),_0x4e2974=function(_0x3fe9f7,_0x2039a8,_0x1d425c){let _0x682cef=Array['from'](_0x3fe9f7)['filter'](_0x3b95f8=>function(_0x5a8349,_0x4dc7a1){return _0x4dc7a1['checkChild'](_0x5a8349['parent'],'listItem')&&!_0x4dc7a1['isObject'](_0x5a8349);}(_0x3b95f8,_0x1d425c));_0x682cef=_0x682cef['filter'](_0x517fee=>!_0x517fee['is']('element','listItem')||_0x517fee['getAttribute']('listType')!=_0x2039a8);const _0x16125c=new Set();for(const _0x2d9372 of _0x682cef)_0x2d9372['is']('element','listItem')?_0x16125c['add'](me(_0x2d9372)):_0x16125c['add'](_0x2d9372);return Array['from'](_0x16125c);}(_0x201821['getSelectedBlocks'](),_0x34accd,_0x195a52['model']['schema']);_0x195a52['model']['change'](()=>{for(const _0x48a9bc of _0x4e2974)_0x38c508['markBlockFormat'](_0x48a9bc,{'commandName':_0x29f2fc,'commandParams':[{'forceValue':!_0x1be54d['value']}],'formatGroupId':'blockName'},fe(_0x48a9bc));});};}function _0xca92cf(_0x4bc16d){return()=>{const _0x3f94c0=function(_0x133c90){let _0x377e77=Array['from'](_0x133c90);const _0x2adc75=_0x377e77['findIndex'](_0x5520b2=>'listItem'!=_0x5520b2['name']);return _0x2adc75>-0x1&&(_0x377e77=_0x377e77['slice'](0x0,_0x2adc75)),_0x377e77;}(_0x195a52['model']['document']['selection']['getSelectedBlocks']()),_0x2d8e7d=_0x195a52['model']['createRange'](_0x195a52['model']['createPositionAt'](_0x3f94c0[0x0],'before'),_0x195a52['model']['createPositionAt'](_0x3f94c0[_0x3f94c0['length']-0x1],'end'));_0x195a52['model']['change'](()=>{_0x38c508['markBlockFormat'](_0x2d8e7d,{'commandName':_0x4bc16d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x493da1){const _0xb10cac=new Set();for(const _0x4d3cdd of _0x493da1){let _0x25507f=_0x4d3cdd['nextSibling'];for(;_0x25507f&&_0x25507f['getAttribute']('listIndent')>_0x4d3cdd['getAttribute']('listIndent');)_0xb10cac['add'](_0x25507f),_0x25507f=_0x25507f['nextSibling'];}return Array['from'](_0xb10cac);}(_0x3f94c0));});};}_0x38c508['enableCommand']('numberedList',_0x21d09c('numberedList')),_0x38c508['enableCommand']('bulletedList',_0x21d09c('bulletedList')),_0x51019a&&_0x38c508['enableCommand']('todoList',_0x21d09c('todoList')),_0x38c508['enableCommand']('indentList',_0xca92cf('indentList')),_0x38c508['enableCommand']('outdentList',_0xca92cf('outdentList')),_0x51019a&&_0x38c508['enableCommand']('checkTodoList',()=>{const _0x12ea9d=_0x195a52['commands']['get']('checkTodoList'),_0x74f999=Array['from'](_0x12ea9d['_selectedElements']);_0x74f999['filter'](_0x4afbe0=>_0x4afbe0['getAttribute']('todoListChecked')!=_0x12ea9d['value']),_0x195a52['model']['change'](()=>{for(const _0x5737ce of _0x74f999)_0x38c508['markBlockFormat'](_0x5737ce,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x12ea9d['value']}]});});}),_0x38c508['descriptionFactory']['registerElementLabel']('listItem',_0xdc1d91=>o(_0x1fe01d,'ELEMENT_LIST_ITEM',_0xdc1d91)),_0x38c508['descriptionFactory']['registerDescriptionCallback'](_0x44be2a=>{if('formatBlock'!=_0x44be2a['type']&&'formatInline'!=_0x44be2a['type'])return;const {data:_0x2eb080}=_0x44be2a;if(_0x2eb080){if('numberedList'==_0x2eb080['commandName']||'bulletedList'==_0x2eb080['commandName']||'todoList'==_0x2eb080['commandName'])switch(_0x2eb080['commandName']['replace']('List','')){case'bulleted':return _0x103be2(o(_0x1fe01d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x103be2(o(_0x1fe01d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x103be2(o(_0x1fe01d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2eb080['commandName'])return{'type':'format','content':o(_0x1fe01d,'*Indent:*\x20%0',o(_0x1fe01d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2eb080['commandName'])return{'type':'format','content':o(_0x1fe01d,'*Outdent:*\x20%0',o(_0x1fe01d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2eb080['commandName'])return _0x2eb080['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fe01d,'*Check\x20item*')}:{'type':'format','content':o(_0x1fe01d,'*Uncheck\x20item*')};}function _0x103be2(_0x1f3071){return{'type':'format','content':o(_0x1fe01d,'*Change\x20to:*\x20%0',_0x1f3071)};}});}}function me(_0x37502a){const _0xdea7a7=_0x37502a['getAttribute']('listIndent');if(0x0==_0xdea7a7)return _0x37502a;let _0x3eab75=_0x37502a;for(;_0x37502a['previousSibling']&&_0x37502a['previousSibling']['is']('element','listItem');){const _0x3dca27=_0x37502a['previousSibling']['getAttribute']('listIndent');if(_0x3dca27==_0xdea7a7)_0x3eab75=_0x37502a['previousSibling'];else{if(_0x3dca27<_0xdea7a7)break;}_0x37502a=_0x37502a['previousSibling'];}return _0x3eab75;}function fe(_0x5c6118){const _0x363d0b=[];if(_0x5c6118['is']('element','listItem')&&_0x5c6118['getAttribute']('listIndent')>0x0){let _0x46b8d9=_0x5c6118['nextSibling'];for(;_0x46b8d9&&'listItem'==_0x46b8d9['name']&&_0x46b8d9['getAttribute']('listIndent')==_0x5c6118['getAttribute']('listIndent');)_0x363d0b['push'](_0x46b8d9),_0x46b8d9=_0x46b8d9['nextSibling'];}return _0x363d0b;}class K extends _0x181a03{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x57855e=this['editor']['config']['get']('list.properties'),_0x295c7a=this['editor']['plugins']['get']('TrackChangesEditing');_0x57855e['styles']&&_0x295c7a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x57855e['reversed']&&_0x295c7a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x57855e['startIndex']&&_0x295c7a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x295c7a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2bba3c,_0x360e3d={}){const _0x14e8f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dc17f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x14e8f8['markMultiRangeBlockFormat'](_0x4dc17f,{'commandName':'listStyle','commandParams':[{'type':_0x360e3d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3cb699,_0x58c2c2={}){const _0x58cd93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53820b=this['_getSuggestionBlocks'](_0x2cfc91=>_0x2cfc91['is']('element','listItem')&&'numbered'===_0x2cfc91['getAttribute']('listType'));if(_0x53820b['length']<0x1)return;const _0x53b038=_0x53820b['map'](_0x101b47=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x101b47,'before'),this['editor']['model']['createPositionAt'](_0x101b47,0x0)));this['editor']['model']['change'](()=>{_0x58cd93['markMultiRangeBlockFormat'](_0x53b038,{'commandName':'listReversed','commandParams':[{'reversed':_0x58c2c2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1e4a00,_0x1e30dd={}){const _0x2f281e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23f8bf=this['_getSuggestionBlocks'](_0x3ee76b=>_0x3ee76b['is']('element','listItem')&&'numbered'===_0x3ee76b['getAttribute']('listType'));if(_0x23f8bf['length']<0x1)return;const _0xf649e5=_0x23f8bf['map'](_0x281ff1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x281ff1,'before'),this['editor']['model']['createPositionAt'](_0x281ff1,0x0)));this['editor']['model']['change'](()=>{_0x2f281e['markMultiRangeBlockFormat'](_0xf649e5,{'commandName':'listStart','commandParams':[{'startIndex':_0x1e30dd['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1a5931){if('formatBlock'!=_0x1a5931['type']&&'formatInline'!=_0x1a5931['type'])return;const _0x5c0052=this['editor']['locale'],{data:_0x3bdb11}=_0x1a5931;if(!_0x3bdb11)return;let _0x3360f9,_0x3d66fa;switch(_0x3bdb11['commandName']){case'listStyle':_0x3360f9='*Change\x20to:*\x20%0',_0x3d66fa={'type':'format','content':o(_0x5c0052,_0x3360f9,o(_0x5c0052,this['_getTranslationKeyForListStyle'](_0x3bdb11['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3360f9=_0x3bdb11['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3d66fa={'type':'format','content':o(_0x5c0052,_0x3360f9)};break;case'listStart':_0x3360f9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3d66fa={'type':'format','content':o(_0x5c0052,_0x3360f9,_0x3bdb11['commandParams'][0x0]['startIndex'])};}return _0x3d66fa;}['_getSuggestionBlocksForListStyle'](){const _0x5edc72=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f88a1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1f88a1[0x0]?.['is']('element','listItem')&&_0x1f88a1['unshift'](..._0x5edc72['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1f88a1[_0x1f88a1['length']-0x1]?.['is']('element','listItem')&&_0x1f88a1['push'](..._0x5edc72['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1f88a1=[...new Set(_0x1f88a1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1f88a1=_0x1f88a1['filter'](_0x13c0a5=>_0x13c0a5['is']('element','listItem'))),_0x1f88a1;}['_getSuggestionBlocks'](_0xcd374c){const _0xb18a84=this['editor']['plugins']['get']('LegacyListUtils');let _0x3423d1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xcd374c)['map'](_0x14ccd4=>{const _0x4bbb1a=this['editor']['model']['createPositionAt'](_0x14ccd4,0x0);return[..._0xb18a84['getSiblingNodes'](_0x4bbb1a,'backward'),..._0xb18a84['getSiblingNodes'](_0x4bbb1a,'forward')];})['flat']();return _0x3423d1=[...new Set(_0x3423d1)],_0x3423d1;}['_getTranslationKeyForListStyle'](_0x16c260){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x16c260)||'default')['toUpperCase']()+'_LIST_'+_0x16c260['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x181a03{['afterInit'](){const _0x5e03d9=this['editor'];if(!_0x5e03d9['plugins']['has']('MediaEmbedEditing'))return;const _0xac7751=_0x5e03d9['plugins']['get']('TrackChangesEditing'),_0x474253=_0x5e03d9['locale'];_0xac7751['enableCommand']('mediaEmbed'),_0xac7751['descriptionFactory']['registerElementLabel']('media',_0x6564a3=>o(_0x474253,'ELEMENT_MEDIA',_0x6564a3)),_0x5e03d9['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4469c6,{writer:_0x3d0c56,options:_0x1b43d4})=>{if(_0x1b43d4['showSuggestionHighlights'])return _0x3d0c56['createEmptyElement']('div');},'converterPriority':'high'}),_0x5e03d9['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3d2643,_0xdafa4c,_0x4aaa2a)=>{_0x4aaa2a['options']['showSuggestionHighlights']&&_0x3d2643['stop']();},{'priority':'high'});}}class gt extends _0x181a03{['afterInit'](){const _0x448830=this['editor'];_0x448830['plugins']['has']('MentionEditing')&&_0x448830['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x181a03{['afterInit'](){const _0x4be64c=this['editor'],_0x1e88c0=_0x4be64c['plugins']['get']('TrackChangesEditing');_0x4be64c['plugins']['has']('MultiLevelList')&&(_0x1e88c0['enableDefaultAttributesIntegration']('multiLevelList'),_0x1e88c0['registerBlockAttribute']('listMarkerStyle'),_0x1e88c0['descriptionFactory']['registerDescriptionCallback'](_0x53d0a8=>this['handleDescriptions'](_0x53d0a8)));}['handleDescriptions'](_0x321b47){const _0x463d00=this['editor']['locale'],{data:_0x1e0cf3}=_0x321b47,_0x52d33a={'type':'format','content':''};if(_0x1e0cf3&&'listMarkerStyle'==_0x1e0cf3['key']){if(!_0x1e0cf3['oldValue'])return{'type':'format','content':o(_0x463d00,'*Set\x20format:*\x20%0',o(_0x463d00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e0cf3['newValue']+')'};if(!_0x1e0cf3['newValue']){let _0x38c9bd=_0x321b47['head'];for(;_0x38c9bd;){if(_0x38c9bd['data']&&'listType'==_0x38c9bd['data']['key']&&_0x38c9bd['data']['newValue'])return _0x52d33a;_0x38c9bd=_0x38c9bd['next'];}return{'type':'format','content':o(_0x463d00,'*Remove\x20format:*\x20%0',o(_0x463d00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e0cf3['oldValue']+')'};}}}}class mt extends _0x181a03{['afterInit'](){const _0x59f661=this['editor'];if(!_0x59f661['plugins']['has']('PageBreakEditing'))return;_0x59f661['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1be2b2=_0x59f661['plugins']['get']('TrackChangesEditing'),_0xdc11cd=_0x59f661['locale'];_0x1be2b2['descriptionFactory']['registerElementLabel']('pageBreak',_0x4a5662=>o(_0xdc11cd,'ELEMENT_PAGE_BREAK',_0x4a5662));}}class dt extends _0x181a03{['afterInit'](){const _0x1d81de=this['editor'];if(!_0x1d81de['plugins']['has']('Paragraph'))return;const _0x5439df=_0x1d81de['locale'],_0x4e83a7=_0x1d81de['plugins']['get']('TrackChangesEditing');_0x4e83a7['descriptionFactory']['registerElementLabel']('paragraph',_0x32c78f=>o(_0x5439df,'ELEMENT_PARAGRAPH',_0x32c78f)),_0x4e83a7['enableDefaultAttributesIntegration']('paragraph'),_0x4e83a7['enableCommand']('insertParagraph'),_0x1d81de['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d81de),{'priority':'highest'}),_0x1d81de['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f137a,_0x25fa46,_0x1aaa0f)=>{_0x1aaa0f['options']['showSuggestionHighlights']&&nr(_0x1d81de,{'showActiveMarker':!0x1})(_0x4f137a,_0x25fa46,_0x1aaa0f);},{'priority':'highest'});const _0x6472b0=_0x4e83a7['descriptionFactory'];_0x6472b0['registerDescriptionCallback'](_0xca0fd9=>{if('insertion'!==_0xca0fd9['type'])return;const {start:_0xb8edc4,end:_0x42f369}=_0xca0fd9['getFirstRange']();if(!_0xb8edc4['isTouching'](_0x42f369)||!_0xb8edc4['nodeAfter'])return;const _0x36512c=_0x1d81de['model']['schema'],_0x4ee363=_0xb8edc4['nodeAfter'];return _0x36512c['isBlock'](_0x4ee363)&&!_0x36512c['isLimit'](_0x4ee363)&&_0x36512c['checkChild'](_0x4ee363,'$text')?{'type':'insertion','content':o(_0x5439df,'*Insert:*\x20%0',_0x6472b0['getItemLabel'](_0x4ee363,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x185802=this['editor'],_0x4a7dd9=_0x185802['locale'];_0x185802['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33872b=>{if('formatBlock'!=_0x33872b['type'])return;const {data:_0x15704c}=_0x33872b;return _0x15704c&&'paragraph'==_0x15704c['commandName']?{'type':'format','content':o(_0x4a7dd9,'*Change\x20to:*\x20%0',o(_0x4a7dd9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1c5fd0,{showActiveMarker:_0x9df90b=!0x0}={}){return(_0x5b6f08,_0x18c7a5,_0x20738c)=>{const _0x3d5117=_0x1c5fd0['plugins']['get']('TrackChangesEditing'),_0x44ad92=_0x18c7a5['markerRange']['start'],_0x39bd9f=_0x18c7a5['markerRange']['end'],_0x3e9cd4=_0x1c5fd0['model']['schema'];if(!_0x44ad92['isTouching'](_0x39bd9f)||!_0x44ad92['nodeAfter'])return;const _0x481405=_0x44ad92['nodeAfter'];if(_0x3e9cd4['isBlock'](_0x481405)&&!_0x3e9cd4['isLimit'](_0x481405)&&_0x3e9cd4['checkChild'](_0x481405,'$text')){if(!_0x20738c['consumable']['consume'](_0x18c7a5['markerRange'],_0x5b6f08['name']))return;const _0x131bd2=_0x20738c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x33cab2=_0x20738c['mapper']['toViewPosition'](_0x39bd9f);_0x9df90b&&_0x3d5117['activeMarkers']['includes'](_0x18c7a5['markerName'])&&_0x20738c['writer']['addClass']('ck-suggestion-marker--active',_0x131bd2),_0x20738c['writer']['insert'](_0x33cab2,_0x131bd2),_0x20738c['mapper']['bindElementToMarker'](_0x131bd2,_0x18c7a5['markerName']);}};}class pt extends _0x181a03{['afterInit'](){const _0x1a9504=this['editor'];if(!_0x1a9504['plugins']['has']('RemoveFormatEditing'))return;_0x1a9504['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x107ad5=this['editor'];_0x107ad5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb8d4=>{if('formatBlock'!=_0x2eb8d4['type']&&'formatInline'!=_0x2eb8d4['type'])return;const {data:_0x5c71df}=_0x2eb8d4;return _0x5c71df&&'removeFormat'==_0x5c71df['commandName']?{'type':'format','content':o(_0x107ad5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x181a03{['afterInit'](){const _0xc259ca=this['editor'];if(!_0xc259ca['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x54f4e1=_0xc259ca['plugins']['get']('TrackChangesEditing');_0x54f4e1['enableCommand']('goToPreviousRestrictedEditingException'),_0x54f4e1['enableCommand']('goToNextRestrictedEditingException');const _0x553333=_0xc259ca['plugins']['get']('RestrictedEditingModeEditing');_0x553333['enableCommand']('trackChanges'),_0x553333['enableCommand']('acceptSuggestion'),_0x553333['enableCommand']('discardSuggestion'),_0x553333['enableCommand']('acceptAllSuggestions'),_0x553333['enableCommand']('discardAllSuggestions'),_0x553333['enableCommand']('acceptSelectedSuggestions'),_0x553333['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x181a03{static get['requires'](){return[_0x30356e];}['init'](){const _0x1a7171=this['editor'],_0x584b49=_0x1a7171['plugins']['get']('TrackChangesEditing');_0x584b49['enableCommand']('shiftEnter'),_0x1a7171['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1a7171),{'priority':'high'}),_0x1a7171['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1a7171),{'priority':'high'}),_0x1a7171['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1339be,_0x4566a1,_0x55d074)=>{_0x55d074['options']['showSuggestionHighlights']&&de(_0x1a7171,{'showActiveMarker':!0x1})(_0x1339be,_0x4566a1,_0x55d074);}),_0x584b49['descriptionFactory']['registerElementLabel']('softBreak',_0x20f5cb=>o(_0x1a7171['locale'],'ELEMENT_LINE_BREAK',_0x20f5cb));}}function de(_0xb44ee6,{showActiveMarker:_0x3f8f9e=!0x0}={}){return(_0x363ea9,_0x4fe3ae,_0x17c324)=>{const _0x2b1bb0=_0xb44ee6['plugins']['get']('TrackChangesEditing');if(!_0x17c324['consumable']['test'](_0x4fe3ae['markerRange'],_0x363ea9['name']))return;const _0x23c768=_0xb44ee6['model'];for(const _0x486d9b of _0x4fe3ae['markerRange']['getItems']()){if(!_0x486d9b['is']('element','softBreak'))continue;const _0x33b2bb='deletion'==_0x4fe3ae['markerName']['split'](':')[0x1]?'merge':'split',_0x27112e=_0x17c324['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33b2bb}),_0xfbdd76=_0x17c324['mapper']['toViewPosition'](_0x23c768['createPositionBefore'](_0x486d9b));_0x3f8f9e&&_0x2b1bb0['activeMarkers']['includes'](_0x4fe3ae['markerName'])&&_0x17c324['writer']['addClass']('ck-suggestion-marker--active',_0x27112e),_0x17c324['writer']['insert'](_0xfbdd76,_0x27112e),_0x17c324['mapper']['bindElementToMarker'](_0x27112e,_0x4fe3ae['markerName']);}};}class wt extends _0x181a03{['afterInit'](){const _0x3ae9fb=this['editor'],_0x34b345=_0x3ae9fb['model'],_0xb21249=_0x3ae9fb['locale'];if(!_0x3ae9fb['plugins']['has']('StandardEditingModeEditing'))return;const _0x5939e3=_0x3ae9fb['plugins']['get']('TrackChangesEditing'),_0x524079='restrictedEditingException',_0x4176c0=_0x3ae9fb['commands']['get'](_0x524079);_0x5939e3['enableCommand'](_0x524079,(_0x49fa55,_0xdb6d5={})=>{const _0x2bb7cd=_0x34b345['document']['selection'];if(_0x2bb7cd['isCollapsed'])return void _0x49fa55(_0xdb6d5);const _0x37df31=void 0x0!==_0xdb6d5['forceValue']?_0xdb6d5['forceValue']:!_0x4176c0['value'];_0x34b345['change'](()=>{const _0x4808ee=Array['from'](_0x2bb7cd['getRanges']());for(const _0x54d775 of _0x4808ee){const _0x32145b=_0x37df31?[_0x54d775]:io(_0x524079,_0x54d775,_0x34b345);for(const _0x3683a8 of _0x32145b)_0x5939e3['markInlineFormat'](_0x3683a8,{'commandName':_0x524079,'commandParams':[{'forceValue':_0x37df31}]});}});}),_0x5939e3['descriptionFactory']['registerDescriptionCallback'](_0xfaa16c=>{if('formatBlock'!=_0xfaa16c['type']&&'formatInline'!=_0xfaa16c['type'])return;const {data:_0x565609}=_0xfaa16c;return _0x565609&&_0x565609['commandName']==_0x524079?_0x565609['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb21249,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb21249,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x181a03{['afterInit'](){const _0x4cb36a=this['editor'];if(!_0x4cb36a['plugins']['has']('Style')||!_0x4cb36a['plugins']['has']('DataSchema'))return;const _0x1ff0a3=_0x4cb36a['plugins']['get']('TrackChangesEditing'),_0x578896=_0x4cb36a['locale'],_0x3fd84a=_0x4cb36a['config']['get']('style')||{},_0x4c44d4=_0x4cb36a['plugins']['get']('GeneralHtmlSupport'),_0xef019a=_0x4cb36a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4cb36a['plugins']['get']('DataSchema'),_0x3fd84a['definitions']);_0x1ff0a3['enableDefaultAttributesIntegration']('style');const _0x4c8809=new Set();for(const _0x392f7c of _0xef019a['block']){const _0xf5bb90=_0x4c44d4['getGhsAttributeNameForElement'](_0x392f7c['element']);_0x4c8809['add'](_0xf5bb90);}const _0x544d25=new Set();for(const _0x5ce6d0 of _0xef019a['inline']){const _0x205f67=_0x4c44d4['getGhsAttributeNameForElement'](_0x5ce6d0['element']);_0x544d25['add'](_0x205f67);for(const _0x36cff3 of _0x5ce6d0['ghsAttributes'])_0x544d25['add'](_0x36cff3);}for(const _0x5c47e3 of _0x4c8809)_0x1ff0a3['registerBlockAttribute'](_0x5c47e3),_0x1ff0a3['descriptionFactory']['registerAttributeLabel'](_0x5c47e3,o(_0x578896,'FORMAT_STYLE'));for(const _0x3edda9 of _0x544d25)_0x1ff0a3['registerInlineAttribute'](_0x3edda9),_0x1ff0a3['descriptionFactory']['registerAttributeLabel'](_0x3edda9,o(_0x578896,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f1ba4=this['editor'],_0x52f0e5=_0x4f1ba4['locale'];_0x4f1ba4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe28a77=>{if('formatBlock'!=_0xe28a77['type']&&'formatInline'!=_0xe28a77['type'])return;const {data:_0x58f5be}=_0xe28a77;return _0x58f5be&&'style'===_0x58f5be['commandName']?_0x58f5be['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52f0e5,'*Set\x20format:*\x20%0',_0x58f5be['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x52f0e5,'*Remove\x20format:*\x20%0',_0x58f5be['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x181a03{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1afaa3){super(_0x1afaa3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x305728=this['editor'],_0x3585a0=_0x305728['model']['document']['selection'];if(!_0x305728['plugins']['has']('TableEditing'))return;const _0x3a3b17=_0x305728['locale'],_0x47064e=_0x305728['plugins']['get']('TrackChangesEditing'),_0x347519=_0x305728['plugins']['get']('TableUtils');_0x47064e['descriptionFactory']['registerElementLabel']('table',_0x3aea25=>o(_0x3a3b17,'ELEMENT_TABLE',_0x3aea25)),this['_setupColumnsRowsFixing'](),_0x47064e['enableCommand']('insertTable'),_0x47064e['enableCommand']('selectTableRow'),_0x47064e['enableCommand']('selectTableColumn');for(const _0xd60a6b of['insertTableRowAbove','insertTableRowBelow']){const _0x3e777d=_0x305728['commands']['get'](_0xd60a6b);_0x47064e['enableCommand'](_0xd60a6b,_0x40386e=>{_0x305728['model']['change'](_0x1c51bc=>{_0x40386e();const _0x1dd56a='above'===_0x3e777d['order'],_0x3bf531=_0x347519['getSelectionAffectedTableCells'](_0x3585a0),_0x533d9d=_0x347519['getRowIndexes'](_0x3bf531),_0xcd311b=_0x1dd56a?_0x533d9d['first']-0x1:_0x533d9d['last']+0x1,_0x47699f=_0x3bf531[0x0]['findAncestor']('table'),_0x587abf=_0x347519['createTableWalker'](_0x47699f,{'startRow':_0xcd311b,'endRow':_0xcd311b}),_0x51237e=Array['from'](_0x587abf)['map'](_0x15b812=>_0x1c51bc['createRangeOn'](_0x15b812['cell']));_0x47064e['markMultiRangeInsertion'](_0x51237e,'tableRow');});});}for(const _0x297073 of['insertTableColumnLeft','insertTableColumnRight']){const _0x92e737=_0x305728['commands']['get'](_0x297073);_0x47064e['enableCommand'](_0x297073,_0x11b95d=>{_0x305728['model']['change'](_0x3fce1d=>{_0x11b95d();const _0x76e946='left'===_0x92e737['order'],_0x45d559=_0x347519['getSelectionAffectedTableCells'](_0x3585a0),_0x2a58a7=_0x347519['getColumnIndexes'](_0x45d559),_0x1bf919=_0x76e946?_0x2a58a7['first']-0x1:_0x2a58a7['last']+0x1,_0x345af6=_0x45d559[0x0]['findAncestor']('table'),_0x19478e=_0x347519['createTableWalker'](_0x345af6,{'startRow':0x0,'column':_0x1bf919,'includeAllSlots':!0x1}),_0x311d16=Array['from'](_0x19478e)['map'](_0x16271a=>_0x3fce1d['createRangeOn'](_0x16271a['cell']));_0x47064e['markMultiRangeInsertion'](_0x311d16,'tableColumn');});});}for(const _0x337a1c of['removeTableRow','removeTableColumn']){const _0x325595=_0x337a1c['substr'](0xb),_0x1c1a4c=_0x325595['toLowerCase'](),_0x4828ad=_0x1c1a4c['substr'](0x0,0x3)+'span',_0x2b3ae3='table'+_0x325595,_0x5b6f14='min'+_0x325595,_0xba0837='max'+_0x325595;_0x47064e['enableCommand'](_0x337a1c,()=>{_0x305728['model']['change'](_0x18482b=>{const _0x44c37c=_0x347519['getSelectionAffectedTableCells'](_0x3585a0),_0x2b1776=_0x44c37c[0x0]['findAncestor']('table');let _0x4a59f2;if('removeTableRow'==_0x337a1c){const _0x476832=_0x347519['getRowIndexes'](_0x44c37c);_0x4a59f2={'startRow':_0x476832['first'],'endRow':_0x476832['last'],'includeAllSlots':!0x0};}else{const _0x17a621=_0x347519['getColumnIndexes'](_0x44c37c);_0x4a59f2={'startColumn':_0x17a621['first'],'endColumn':_0x17a621['last'],'includeAllSlots':!0x0};}const _0x181d03=_0x347519['createTableWalker'](_0x2b1776,_0x4a59f2),_0x22f504=Array['from'](_0x181d03)['map'](({cell:_0x44a0b9})=>_0x44a0b9),_0x5860d4=Ee(_0x22f504['filter'](_0x12335c=>_0x12335c['hasAttribute'](_0x4828ad))),_0x115cd0=Ee(_0x22f504['filter'](_0x3d0a20=>!_0x3d0a20['hasAttribute'](_0x4828ad)))['map'](_0x2ff9a0=>_0x18482b['createRangeOn'](_0x2ff9a0)),_0x2ae411=_0x47064e['markMultiRangeDeletion'](_0x115cd0,_0x2b3ae3);if(_0x2ae411&&('tableRow'==_0x2ae411['subType']||'tableColumn'==_0x2ae411['subType'])){const _0x33c843=this['_getSuggestionCoords'](_0x2ae411);for(const _0x4c2424 of _0x5860d4){const _0x8a2a39=_0x18482b['createRangeOn'](_0x4c2424),_0x3073b8=_0x347519['getCellLocation'](_0x4c2424),_0x194e92=_0x4c2424['getAttribute'](_0x4828ad)-0x1,_0x24eb35=_0x33c843[_0x5b6f14],_0x2c6cff=_0x33c843[_0xba0837];_0x24eb35<=_0x3073b8[_0x1c1a4c]&&_0x3073b8[_0x1c1a4c]+_0x194e92<=_0x2c6cff&&_0x2ae411['addRange'](_0x8a2a39);}}});});}function _0x1c57fb(_0x5943a9){const _0x3e3aa3=Array['from'](_0x3585a0['getRanges']())['map'](_0x52a839=>_0x137881['fromRange'](_0x52a839));_0x305728['model']['change'](_0x4b70d9=>{const _0x5e5e16=_0x4b70d9['batch'];_0x5943a9=_0x5943a9['filter'](_0x5f82ab=>'$graveyard'!=_0x5f82ab['root']['rootName']),_0x4b70d9['setSelection'](_0x5943a9),_0x305728['commands']['get']('removeTableRow')['refresh'](),_0x305728['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x305728['model']['enqueueChange'](()=>{_0x305728['model']['enqueueChange'](_0x5e5e16,_0x4943a7=>{const _0x634889=_0x3e3aa3['filter'](_0x16989a=>'$graveyard'!=_0x16989a['root']['rootName']);_0x634889['length']>0x0&&_0x4943a7['setSelection'](_0x634889);for(const _0x526dbb of _0x3e3aa3)_0x526dbb['detach']();});});});}function _0x10daab(_0x415888){_0x305728['model']['change'](_0x14e2fd=>{const _0x107128=Array['from'](_0x3585a0['getRanges']())['map'](_0x58da1a=>_0x137881['fromRange'](_0x58da1a)),_0x18da00=[];for(const _0x5525d0 of _0x415888)for(const _0x512d6c of _0x5525d0['getItems']({'shallow':!0x0}))_0x18da00['push'](_0x512d6c);for(const _0x2c8227 of _0x18da00)'$graveyard'!=_0x2c8227['root']['rootName']&&(_0x14e2fd['setSelection'](_0x14e2fd['createPositionAt'](_0x2c8227,0x0)),_0x305728['commands']['get']('removeTableColumn')['refresh'](),_0x305728['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x391529=_0x107128['filter'](_0x1139d3=>'$graveyard'!=_0x1139d3['root']['rootName']);_0x391529['length']>0x0&&_0x14e2fd['setSelection'](_0x391529);for(const _0x400c9c of _0x107128)_0x400c9c['detach']();});}function _0x62c4df(_0x367c65,_0x4f5c88){return _0x4f5c88['every'](_0x45025c=>_0x367c65['some'](_0x1aa3ec=>_0x1aa3ec['end']['isEqual'](_0x45025c['start'])||_0x45025c['end']['isEqual'](_0x1aa3ec['start'])));}function _0x2817dc(_0x25bbfc,_0xfcb0c3){return _0x25bbfc['some'](_0x2bb4c0=>_0xfcb0c3['some'](_0x29f9b0=>_0x2bb4c0['end']['isTouching'](_0x29f9b0['start'])));}_0x305728['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x397a54,_0x3e9d31,_0xfe8ba3)=>{if(!_0xfe8ba3['options']['showSuggestionHighlights'])return;const _0x16fc48=_0x3e9d31['item'];if(!_0x16fc48)return;const _0x17e040=_0xfe8ba3['mapper']['toViewElement'](_0x16fc48);function _0x4d22c2(_0x2d6656){return Array['isArray'](_0x2d6656)?_0x2d6656:[_0x2d6656];}_0x17e040&&'tableCell'===_0x16fc48['name']&&_0x574df5(_0x17e040,_0xfe8ba3['writer'],(_0x5670f3,_0x3daaed,_0x2b16bb)=>_0x2b16bb['addClass'](_0x4d22c2(_0x3daaed['classes']),_0x5670f3),(_0x462fdf,_0xe67dc,_0x1eb462)=>_0x1eb462['removeClass'](_0x4d22c2(_0xe67dc['classes']),_0x462fdf));},{'priority':'highest'}),_0x47064e['descriptionFactory']['registerDescriptionCallback'](_0x208de8=>{if('insertion'!=_0x208de8['type']&&'deletion'!=_0x208de8['type'])return;const _0x246337=_0x208de8['getContainedElement']();if(null!=_0x246337&&_0x246337['is']('element','table')){if('insertion'==_0x208de8['type']){const _0x28051c=_0x208de8['getItems']()['filter'](_0x59ae1c=>_0x59ae1c['is']('$textProxy'))['map'](_0x31b90b=>_0x31b90b['data']);if(_0x28051c['length'])return{'type':'insertion','content':o(_0x3a3b17,'*Insert:*\x20%0',o(_0x3a3b17,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x28051c['join']('\x20')+'\x22'))};}if('deletion'==_0x208de8['type']){const _0xeb0419=_0x208de8['getItems']()['filter'](_0x59306a=>_0x59306a['is']('$textProxy'))['map'](_0x2feaaf=>_0x2feaaf['data']);if(_0xeb0419['length'])return{'type':'deletion','content':o(_0x3a3b17,'*Remove:*\x20%0',o(_0x3a3b17,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xeb0419['join']('\x20')+'\x22'))};}}}),_0x47064e['descriptionFactory']['registerDescriptionCallback'](_0xf5ed6=>{if('tableRow'==_0xf5ed6['subType']){const _0x51905b=_0xf5ed6['getItems']()['filter'](_0x410254=>_0x410254['is']('$textProxy'))['map'](_0x517c0e=>_0x517c0e['data']),_0x586e50=this['_getSuggestionCoords'](_0xf5ed6),_0x33a37f=_0x586e50['maxRow']-_0x586e50['minRow']+0x1;if('insertion'==_0xf5ed6['type'])return _0x51905b['length']?{'type':'insertion','content':o(_0x3a3b17,'*Insert:*\x20%0',o(_0x3a3b17,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x33a37f,'\x22'+_0x51905b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a3b17,'*Insert:*\x20%0',o(_0x3a3b17,'ELEMENT_TABLE_ROW',_0x33a37f))};if('deletion'==_0xf5ed6['type'])return _0x51905b['length']?{'type':'deletion','content':o(_0x3a3b17,'*Remove:*\x20%0',o(_0x3a3b17,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x33a37f,'\x22'+_0x51905b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a3b17,'*Remove:*\x20%0',o(_0x3a3b17,'ELEMENT_TABLE_ROW',_0x33a37f))};}if('tableColumn'==_0xf5ed6['subType']){const _0x2f6c52=_0xf5ed6['getItems']()['filter'](_0x1089cb=>_0x1089cb['is']('$textProxy'))['map'](_0x48a62f=>_0x48a62f['data']),_0x24a822=this['_getSuggestionCoords'](_0xf5ed6),_0x431ae4=_0x24a822['maxColumn']-_0x24a822['minColumn']+0x1;if('insertion'==_0xf5ed6['type'])return _0x2f6c52['length']?{'type':'insertion','content':o(_0x3a3b17,'*Insert:*\x20%0',o(_0x3a3b17,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x431ae4,'\x22'+_0x2f6c52['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a3b17,'*Insert:*\x20%0',o(_0x3a3b17,'ELEMENT_TABLE_COLUMN',_0x431ae4))};if('deletion'==_0xf5ed6['type'])return _0x2f6c52['length']?{'type':'deletion','content':o(_0x3a3b17,'*Remove:*\x20%0',o(_0x3a3b17,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x431ae4,'\x22'+_0x2f6c52['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a3b17,'*Remove:*\x20%0',o(_0x3a3b17,'ELEMENT_TABLE_COLUMN',_0x431ae4))};}}),_0x47064e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1c57fb),_0x47064e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1c57fb),_0x47064e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x10daab),_0x47064e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x10daab),_0x47064e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x62c4df),_0x47064e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x62c4df),_0x47064e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2817dc),_0x47064e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2817dc);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5b0d91=this['editor'],_0x5ced72=_0x5b0d91['model']['document']['selection'];return(_0x2cec83,_0xa97fb9)=>{_0x5b0d91['model']['change'](_0x3b7d4e=>{const {commandName:_0x3ff9bf,commandParams:_0x560b44}=_0xa97fb9;let _0x9dd8c5=_0x2cec83[0x0]['end']['nodeBefore'];_0x560b44&&_0x560b44[0x0]&&!0x1===_0x560b44[0x0]['forceValue']&&(_0x9dd8c5=_0x2cec83[0x0]['start']['nodeAfter']);const _0x5215ea=_0x3b7d4e['createRangeIn'](_0x9dd8c5);if('$graveyard'==_0x5215ea['root']['rootName'])return;const _0xc08d69=Array['from'](_0x5ced72['getRanges']())['map'](_0x1449cf=>_0x137881['fromRange'](_0x1449cf));_0x3b7d4e['setSelection'](_0x5215ea),_0x5b0d91['commands']['get'](_0x3ff9bf)['refresh'](),_0x560b44['push']({'forceDefaultExecution':!0x0}),_0x5b0d91['execute'](_0x3ff9bf,..._0x560b44);const _0x54d48d=_0xc08d69['filter'](_0x5c577a=>'$graveyard'!=_0x5c577a['root']['rootName']);_0x54d48d['length']>0x0&&_0x3b7d4e['setSelection'](_0x54d48d);for(const _0x30db91 of _0xc08d69)_0x30db91['detach']();});};}['_getCoordsForCells'](_0x5e8a3c){const _0x139014=this['editor']['plugins']['get']('TableUtils');let _0x3000d7=Number['MAX_SAFE_INTEGER'],_0xf451bc=Number['MIN_SAFE_INTEGER'],_0xf6c698=Number['MAX_SAFE_INTEGER'],_0xf22e26=Number['MIN_SAFE_INTEGER'];for(const _0x32cd6a of _0x5e8a3c){if('$graveyard'==_0x32cd6a['root']['rootName'])continue;const {row:_0x444b6c,column:_0x2368a7}=_0x139014['getCellLocation'](_0x32cd6a),_0x40d984=_0x32cd6a['hasAttribute']('rowspan')?_0x32cd6a['getAttribute']('rowspan')-0x1:0x0,_0x4fa2d9=_0x32cd6a['hasAttribute']('colspan')?_0x32cd6a['getAttribute']('colspan')-0x1:0x0;_0x3000d7=_0x444b6c<_0x3000d7?_0x444b6c:_0x3000d7,_0xf451bc=_0x444b6c+_0x40d984>_0xf451bc?_0x444b6c+_0x40d984:_0xf451bc,_0xf6c698=_0x2368a7<_0xf6c698?_0x2368a7:_0xf6c698,_0xf22e26=_0x2368a7+_0x4fa2d9>_0xf22e26?_0x2368a7+_0x4fa2d9:_0xf22e26;}return{'minRow':_0x3000d7,'maxRow':_0xf451bc,'minColumn':_0xf6c698,'maxColumn':_0xf22e26};}['_setupColumnsRowsFixing'](){const _0x4bfff9=this['editor'],_0x4478e4=_0x4bfff9['plugins']['get']('TrackChangesEditing'),_0x496f10=_0x4bfff9['plugins']['get']('TableUtils');_0x4bfff9['model']['document']['on']('change:data',()=>{const _0x32b44c=Array['from'](_0x4bfff9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1286e8,data:_0x361f72}of _0x32b44c){const {group:_0x33a804,id:_0x1223e7,subType:_0x57cdcf}=_0x4478e4['_splitMarkerName'](_0x1286e8);if('suggestion'!=_0x33a804)continue;if(null!=_0x361f72['oldRange'])continue;const _0x408440=_0x4478e4['getSuggestion'](_0x1223e7);this['_tablePostFixingSubtypes']['includes'](_0x57cdcf)&&this['_tableSuggestions']['add'](_0x408440);}},{'priority':'low'});const _0x157b0f=(_0x582518,_0x2bf6ba)=>{let _0x20aeed=!0x1;const _0x1b9229=_0x2bf6ba['createRangeOn'](_0x582518),_0x57d65c=_0x582518['findAncestor']('table'),_0x3b830b=_0x496f10['getCellLocation'](_0x582518);for(const _0x114e37 of this['_tableSuggestions']){const _0x429321=_0x114e37['subType'],_0x45df0b=_0x429321['startsWith']('tablePaste'),_0x26d859=_0x429321['substr'](_0x45df0b?0xa:0x5),_0x445201=_0x26d859['toLowerCase'](),_0xeca94b=_0x445201['substr'](0x0,0x3)+'span',_0x4341b7='min'+_0x26d859,_0x12c578='max'+_0x26d859;if(!_0x114e37['isInContent'])continue;if(_0x57d65c!=_0x114e37['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x114e37['isIntersectingWithRange'](_0x1b9229))continue;const _0xc4d202=_0x582518['hasAttribute'](_0xeca94b)?_0x582518['getAttribute'](_0xeca94b)-0x1:0x0,_0x1a5255=this['_getSuggestionCoords'](_0x114e37),_0x2f070d=_0x1a5255[_0x4341b7],_0x2a8119=_0x1a5255[_0x12c578];_0x2f070d<=_0x3b830b[_0x445201]&&_0x3b830b[_0x445201]+_0xc4d202<=_0x2a8119&&(_0x114e37['addRange'](_0x1b9229),_0x20aeed=!0x0);}return _0x20aeed;};_0x4bfff9['model']['document']['registerPostFixer'](_0x53bf41=>{let _0x1ef087=!0x1;for(const _0x13210b of _0x4bfff9['model']['document']['differ']['getChanges']())if('insert'==_0x13210b['type']){if('tableRow'==_0x13210b['name']){for(const _0x5a4b94 of _0x13210b['position']['nodeAfter']['getChildren']())_0x1ef087=_0x1ef087||_0x157b0f(_0x5a4b94,_0x53bf41);}else'tableCell'==_0x13210b['name']&&(_0x1ef087=_0x1ef087||_0x157b0f(_0x13210b['position']['nodeAfter'],_0x53bf41));}return _0x1ef087;});}['_getSuggestionCoords'](_0x35abfd){return this['_getCoordsForCells'](_0x35abfd['getRanges']()['map'](_0x1a1d7d=>_0x1a1d7d['start']['nodeAfter']));}}function Ee(_0x21b9c9){return Array['from'](new Set(_0x21b9c9)['values']());}class St extends _0x181a03{static get['requires'](){return[jt];}['afterInit'](){const _0x19cfbb=this['editor'],_0x39969a=_0x19cfbb['model']['document']['selection'],_0x411410=_0x19cfbb['locale'];if(!_0x19cfbb['plugins']['has']('TableEditing'))return;const _0x33dfd6=_0x19cfbb['plugins']['get']('TrackChangesEditing'),_0x1a3d2e=_0x19cfbb['plugins']['get']('TableUtils'),_0x3a1fc1=_0x19cfbb['plugins']['get'](jt);_0x3a1fc1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x33dfd6['enableCommand']('mergeTableCells',()=>{const _0x20a386=_0x1a3d2e['getSelectionAffectedTableCells'](_0x19cfbb['model']['document']['selection']);_0x19cfbb['model']['change'](()=>{_0x33dfd6['markMultiRangeBlockFormat'](_0x20a386,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x19cfbb['commands']['get']('mergeTableCells')['on']('execute',(_0x5bd28f,_0x4abc96)=>{_0x19cfbb['commands']['get']('trackChanges')['value']&&(_0x4abc96['length']>0x0&&_0x4abc96[_0x4abc96['length']-0x1]&&_0x4abc96[_0x4abc96['length']-0x1]['forceDefaultExecution']||_0x33dfd6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5bd28f['stop']());},{'priority':'highest'});for(const _0x53b0de of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x369753=_0x19cfbb['commands']['get'](_0x53b0de);_0x33dfd6['enableCommand'](_0x53b0de,()=>{const _0x536120=_0x19cfbb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x59a39e=>_0x59a39e['is']('element','tableCell')),_0xdcd285=_0x369753['value'];_0x19cfbb['model']['change'](()=>{_0x33dfd6['markMultiRangeBlockFormat']([_0x536120,_0xdcd285],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5c7224 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xddfd3d=_0x19cfbb['commands']['get'](_0x5c7224);_0x33dfd6['enableCommand'](_0x5c7224,()=>{const _0x1a6709=_0x1a3d2e['getSelectionAffectedTableCells'](_0x19cfbb['model']['document']['selection'])[0x0],_0x29b700=_0x1a6709['findAncestor']('table'),{column:_0xa6f66f,row:_0x13af04}=_0x1a3d2e['getCellLocation'](_0x1a6709);let _0x47ff64=[];if('horizontally'==_0xddfd3d['direction']){const _0x15c65e=_0x1a3d2e['createTableWalker'](_0x29b700,{'startRow':_0x13af04,'endRow':_0x13af04,'includeAllSlots':!0x0});_0x47ff64=Array['from'](_0x15c65e)['map'](_0x56f116=>_0x56f116['cell']);}else{const _0x19478b=_0x1a3d2e['createTableWalker'](_0x29b700,{'column':_0xa6f66f,'includeAllSlots':!0x0});_0x47ff64=Array['from'](_0x19478b)['map'](_0x517ac6=>_0x517ac6['cell']);}_0x19cfbb['model']['change'](_0x38afda=>{_0x33dfd6['markBlockFormat'](_0x38afda['createRangeOn'](_0x1a6709),{'commandName':_0x5c7224,'commandParams':[]},_0x47ff64,_0x5c7224);});});}_0x33dfd6['descriptionFactory']['registerDescriptionCallback'](_0x3545f7=>{if('formatBlock'!=_0x3545f7['type']&&'formatInline'!=_0x3545f7['type'])return;const {data:_0x3a72c3}=_0x3545f7;return _0x3a72c3&&'mergeTableCells'==_0x3a72c3['commandName']?{'type':'format','content':o(_0x411410,'*Merge\x20cells*')}:void 0x0;}),_0x33dfd6['descriptionFactory']['registerDescriptionCallback'](_0x2be0f4=>{if('formatBlock'!=_0x2be0f4['type']&&'formatInline'!=_0x2be0f4['type'])return;const {data:_0x2a3d86}=_0x2be0f4;return _0x2a3d86?'splitTableCellVertically'==_0x2a3d86['commandName']?{'type':'format','content':o(_0x411410,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a3d86['commandName']?{'type':'format','content':o(_0x411410,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xc15cea=_0x3a1fc1['_acceptFormatSuggestionCallbackFactory']();for(const _0x26366a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x33dfd6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x26366a,'accept',_0xc15cea);for(const _0x124215 of['splitTableCellVertically','splitTableCellHorizontally'])_0x33dfd6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x124215,'accept',_0xc15cea);_0x33dfd6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x279a34=>{_0x19cfbb['model']['change'](_0x3ee1cf=>{const _0x24647b=Array['from'](_0x39969a['getRanges']())['map'](_0x212eba=>_0x137881['fromRange'](_0x212eba));_0x3ee1cf['setSelection'](_0x279a34),_0x19cfbb['commands']['get']('mergeTableCells')['refresh'](),_0x19cfbb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1815ea=_0x24647b['filter'](_0x1b6fa5=>'$graveyard'!=_0x1b6fa5['root']['rootName']);_0x1815ea['length']>0x0&&_0x3ee1cf['setSelection'](_0x1815ea);for(const _0x14606c of _0x24647b)_0x14606c['detach']();});});for(const _0x3ce4d4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4d93a0=_0x19cfbb['commands']['get'](_0x3ce4d4);_0x4d93a0['on']('set:isEnabled',(_0xb8567e,_0x319b7e,_0x139010)=>{if(_0x139010){const _0x46bb1d=_0x19cfbb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5a1945=>_0x5a1945['is']('element','tableCell'));this['_areMergableCells'](_0x4d93a0['value'],_0x46bb1d)||(_0xb8567e['return']=!0x1,_0xb8567e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x24c735=this['editor']['commands']['get']('mergeTableCells'),_0x1a87d4=this['editor']['plugins']['get']('TableUtils');if(!_0x24c735['isEnabled'])return!0x1;const _0x847364=_0x1a87d4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2db189 of _0x847364)for(const _0xb10b13 of _0x847364)if(_0x2db189!=_0xb10b13&&!this['_areMergableCells'](_0x2db189,_0xb10b13))return!0x1;return!0x0;}['_areMergableCells'](_0x2baeb3,_0x35e48a){const _0x5f27f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34b033=this['editor']['model']['createRangeOn'](_0x2baeb3),_0x25c930=this['editor']['model']['createRangeOn'](_0x35e48a),_0x5e7964=new Set(),_0x5a8d37=new Set();for(const _0x5792fc of _0x5f27f7['getSuggestions']())if(('insertion'==_0x5792fc['type']||'deletion'==_0x5792fc['type']||'mergeTableCells'==_0x5792fc['subType'])&&_0x5792fc['isInContent']){for(const _0x5dedaf of _0x5792fc['getRanges']())_0x5dedaf['containsRange'](_0x34b033,!0x0)&&_0x5e7964['add'](_0x5792fc['type']+':'+_0x5792fc['author']['id']),_0x5dedaf['containsRange'](_0x25c930,!0x0)&&_0x5a8d37['add'](_0x5792fc['type']+':'+_0x5792fc['author']['id']);}if(_0x5e7964['size']!=_0x5a8d37['size'])return!0x1;for(const _0xc7581 of _0x5e7964)if(!_0x5a8d37['has'](_0xc7581))return!0x1;return!0x0;}}class At extends _0x181a03{static get['requires'](){return[jt];}['afterInit'](){const _0x387e91=this['editor'];if(!_0x387e91['plugins']['has']('TableEditing'))return;const _0x464423=_0x387e91['locale'],_0x1e036f=_0x387e91['plugins']['get']('TrackChangesEditing');_0x1e036f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1e036f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1e036f['registerBlockAttribute']('headingRows'),_0x1e036f['registerBlockAttribute']('headingColumns'),_0x1e036f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x464423,'FORMAT_HEADER_ROW')),_0x1e036f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x464423,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x115ceb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12f993=this['editor']['plugins']['get']('TableUtils'),_0x7f471=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1af8a3({showActiveMarker:_0x196e9c=!0x0,setDataAttribute:_0x505baa=!0x0}={}){return(_0x140db5,_0x5c4bfb,_0x4c7dff)=>{const {type:_0x5bd219,id:_0x2c3bd8}=_0x115ceb['_splitMarkerName'](_0x5c4bfb['markerName']),_0x528103=_0x115ceb['getSuggestion'](_0x2c3bd8),_0x129829=_0x528103['data'];if('formatBlock'!=_0x528103['type']||!_0x129829||'setTableColumnHeader'!=_0x129829['commandName'])return;if(_0x5c4bfb['item'])return void _0x140db5['stop']();if(!_0x4c7dff['consumable']['consume'](_0x5c4bfb['markerRange'],_0x140db5['name']))return;const _0x52f608=_0x5c4bfb['markerRange']['start']['nodeAfter'],_0x769aba=_0x5c4bfb['markerRange']['end']['nodeBefore'],_0x489e5d=_0x52f608['parent']['parent'],{column:_0x53c8cd}=_0x12f993['getCellLocation'](_0x52f608),{column:_0x3286ac}=_0x12f993['getCellLocation'](_0x769aba);for(let _0x1e2b5f=_0x53c8cd;_0x1e2b5f<=_0x3286ac;_0x1e2b5f++){const _0x5bdf23=_0x12f993['createTableWalker'](_0x489e5d,{'column':_0x1e2b5f,'includeAllSlots':!0x1});for(const _0x17c72b of _0x5bdf23){const _0x591045=_0x17c72b['cell'],_0xd7b888=_0x4c7dff['mapper']['toViewElement'](_0x591045);_0x4c7dff['writer']['addClass']('ck-suggestion-marker-'+_0x5bd219,_0xd7b888),_0x505baa&&_0x4c7dff['writer']['setAttribute']('data-suggestion',_0x2c3bd8,_0xd7b888),_0x4c7dff['mapper']['bindElementToMarker'](_0xd7b888,_0x5c4bfb['markerName']),_0x196e9c&&(_0x115ceb['activeMarkers']['includes'](_0x5c4bfb['markerName'])?_0x4c7dff['writer']['addClass']('ck-suggestion-marker--active',_0xd7b888):_0x4c7dff['writer']['removeClass']('ck-suggestion-marker--active',_0xd7b888));}}};}_0x115ceb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x7f471),_0x115ceb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x7f471),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1af8a3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x56e6c0,_0x47dc9e,_0x9724aa)=>{_0x9724aa['options']['showSuggestionHighlights']&&_0x1af8a3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x56e6c0,_0x47dc9e,_0x9724aa);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5373c0,_0x2c16cb,_0x53e348)=>{const {type:_0x328ce4,id:_0x2dac10}=_0x115ceb['_splitMarkerName'](_0x2c16cb['markerName']),_0x31690b=_0x115ceb['getSuggestion'](_0x2dac10),_0x142893=_0x31690b['data'];if('formatBlock'!=_0x31690b['type']||!_0x142893||'setTableColumnHeader'!=_0x142893['commandName'])return;const _0x49a43f=_0x53e348['mapper']['markerNameToElements'](_0x2c16cb['markerName']);if(_0x49a43f){for(const _0x220a69 of _0x49a43f)_0x53e348['writer']['removeClass']('ck-suggestion-marker-'+_0x328ce4,_0x220a69),_0x53e348['writer']['removeClass']('ck-suggestion-marker--active',_0x220a69),_0x53e348['writer']['removeAttribute']('data-suggestion',_0x220a69),_0x53e348['mapper']['unbindElementFromMarkerName'](_0x220a69,_0x2c16cb['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ebc98=this['editor'],_0x34bbed=_0x4ebc98['locale'];function _0xa0fde(_0x381035){return{'type':'format','content':o(_0x34bbed,'*Format:*\x20%0',_0x381035)};}_0x4ebc98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13ead7=>{if('formatBlock'!=_0x13ead7['type'])return;const {data:_0x57a2f6}=_0x13ead7;if(_0x57a2f6){if('setTableRowHeader'==_0x57a2f6['commandName']){const _0x2fb2bc=_0x57a2f6['commandParams'][0x0]['forceValue'];return _0xa0fde(o(_0x34bbed,_0x2fb2bc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x57a2f6['commandName']){const _0x4402fd=_0x57a2f6['commandParams'][0x0]['forceValue'];return _0xa0fde(o(_0x34bbed,_0x4402fd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x429274=>[_0x429274,null]));class It extends _0x181a03{static get['requires'](){return[jt];}['afterInit'](){const _0x3f129e=this['editor'];if(!_0x3f129e['plugins']['has']('TableClipboard'))return;const _0xa1ee54=_0x3f129e['plugins']['get']('TrackChangesEditing'),_0xf668e7=_0x3f129e['plugins']['get']('TableUtils'),_0x4cb671=_0x3f129e['plugins']['get'](jt),_0x2e2f84=_0x3f129e['plugins']['get']('TableClipboard');_0x4cb671['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3f129e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3f129e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x21a1e9=null;_0x3f129e['model']['on']('insertContent',(_0x5166af,_0x52c445)=>{const [_0x19e902,_0x1862a9]=_0x52c445,_0x403aae=_0x52c445[_0x52c445['length']-0x1];_0x403aae&&_0x403aae['forceDefaultExecution']||_0xa1ee54['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x583c93,_0xc8b00,_0x4d829e,_0x4dd082,_0x2818dd){if(_0xc8b00&&!_0xc8b00['is']('documentSelection'))return!0x1;const _0x4e9b00=_0x2818dd['getTableIfOnlyTableInContent'](_0x583c93,_0x4d829e);if(!_0x4e9b00||!he(_0x4e9b00,void 0x0,_0x4dd082))return!0x1;const _0x2dafd9=_0x4dd082['getSelectionAffectedTableCells'](_0x4d829e['document']['selection']);if(!_0x2dafd9['length'])return!0x1;const _0x4df65c=_0x2dafd9[0x0]['findAncestor']('table'),_0x21613c=_0x4dd082['getRowIndexes'](_0x2dafd9),_0x46b024=_0x4dd082['getColumnIndexes'](_0x2dafd9),_0x4d6d3b={'startRow':_0x21613c['first'],'endRow':_0x21613c['last'],'startColumn':_0x46b024['first'],'endColumn':_0x46b024['last']};return 0x1==_0x2dafd9['length']&&(_0x4d6d3b['endRow']+=_0x4dd082['getRows'](_0x4e9b00)-0x1,_0x4d6d3b['endColumn']+=_0x4dd082['getColumns'](_0x4e9b00)-0x1),he(_0x4df65c,_0x4d6d3b,_0x4dd082);}(_0x19e902,_0x1862a9,_0x3f129e['model'],_0xf668e7,_0x2e2f84)&&(_0x5166af['stop'](),_0x21a1e9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3f129e['model']['change'](()=>{_0x3f129e['model']['insertContent'](_0x52c445[0x0],_0x52c445[0x1],_0x52c445[0x2],{'forceDefaultExecution':!0x0});const _0x1bb699=_0x25cdca(),{rowInsertionRanges:_0x42e38a,columnInsertionRanges:_0x2821c9,insertionRanges:_0x5854ac,deletionRanges:_0x2e1696,cells:_0x14ed78}=_0x21a1e9;_0x42e38a['length']&&_0xa1ee54['markMultiRangeInsertion'](_0x42e38a,'tablePasteRow',{'tablePasteChainId':_0x1bb699}),_0x2821c9['length']&&_0xa1ee54['markMultiRangeInsertion'](_0x2821c9,'tablePasteColumn',{'tablePasteChainId':_0x1bb699}),_0x5854ac['length']&&(_0xa1ee54['markMultiRangeInsertion'](_0x5854ac,'tablePaste',{'tablePasteChainId':_0x1bb699,'skipNestingCheck':!0x0}),_0x5854ac['forEach'](_0x4b2c3e=>_0x4b2c3e['detach']?.())),_0x2e1696['length']&&(_0xa1ee54['markMultiRangeDeletion'](_0x2e1696,'tablePaste',{'tablePasteChainId':_0x1bb699,'skipNestingCheck':!0x0}),_0x2e1696['forEach'](_0x57acab=>_0x57acab['detach']?.()));const _0x1818a0=_0xa1ee54['markMultiRangeBlockFormat'](_0x14ed78['map'](({element:_0x37dc98})=>_0x37dc98),{'formatGroupId':_0x25cdca()},[],'tablePasteCell',{'tablePasteChainId':_0x1bb699});if(_0x1818a0){const _0x4213a=_0x1818a0['getMarkers'](),_0x5c43ba=[];for(const {element:_0x5f7e84,attributes:_0x371dde}of _0x14ed78){if(!_0x371dde)continue;const _0x3aece8=_0x3f129e['model']['createRangeOn'](_0x5f7e84),_0x32b314=_0x4213a['find'](_0x5ba56a=>_0x5ba56a['getRange']()['isEqual'](_0x3aece8));_0x32b314&&_0x5c43ba['push']([_0x32b314['name'],_0x371dde]);}_0x5c43ba['length']&&_0x1818a0['setAttribute']('markerAttributes',Object['fromEntries'](_0x5c43ba));}_0x21a1e9=null;}));},{'priority':_0x512c8b['high']+0xa}),_0x3f129e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2b1fe9,_0x22e464)=>{const [_0x207e28,_0x576923,,_0x96de71]=_0x22e464;if(!_0x21a1e9)return;_0x2b1fe9['stop']();const _0x1799e3=_0x207e28['cell'],_0x58aeef=_0x576923,_0x3c4b63=Pe(_0x1799e3),_0x426194=Pe(_0x58aeef);_0x2b1fe9['return']=_0x1799e3;let _0xc45e=null,_0xf06964=null;if(_0x426194||_0x3c4b63){if(_0x3c4b63&&!_0x426194){_0x96de71['remove'](_0x1799e3['getChild'](0x0));for(const _0x1c083a of Array['from'](_0x58aeef['getChildren']()))_0x96de71['insert'](_0x1c083a,_0x1799e3,'end');const _0xe4caff=_0x21a1e9['rowInsertionIndexes']['includes'](_0x207e28['row']),_0x920976=_0x21a1e9['columnInsertionIndexes']['includes'](_0x207e28['column']);_0xe4caff||_0x920976||(_0xc45e=_0x137881['fromRange'](_0x96de71['createRangeIn'](_0x1799e3)));}else _0x426194&&!_0x3c4b63&&(_0xf06964=_0x96de71['createRangeIn'](_0x1799e3));}else{const _0x4ff774=_0x96de71['createElement']('tableCellSuggestion'),_0x5cbf4a=_0x96de71['createElement']('tableCellSuggestion');_0x96de71['wrap'](_0x96de71['createRangeIn'](_0x1799e3),_0x5cbf4a),_0x96de71['insert'](_0x4ff774,_0x1799e3,0x0);for(const _0x3f9e55 of Array['from'](_0x58aeef['getChildren']()))_0x96de71['insert'](_0x3f9e55,_0x4ff774,'end');_0xc45e=_0x137881['fromRange'](_0x96de71['createRangeOn'](_0x4ff774)),_0xf06964=_0x137881['fromRange'](_0x96de71['createRangeOn'](_0x5cbf4a));}const _0x5d0aad=Array['from'](_0x58aeef['getAttributes']())['filter'](([_0x11f535])=>ge['includes'](_0x11f535));_0x21a1e9['cells']['push']({'element':_0x1799e3,'attributes':_0x5d0aad['length']?Object['fromEntries'](_0x5d0aad):null}),_0xc45e&&_0x21a1e9['insertionRanges']['push'](_0xc45e),_0xf06964&&_0x21a1e9['deletionRanges']['push'](_0xf06964);},{'priority':'high'}),_0xf668e7['on']('insertColumns',(_0x2fe71f,_0x29186f)=>{const [_0x8ab99a,_0x1b5b04={}]=_0x29186f;if(!_0x21a1e9)return;const _0x15554a=_0x1b5b04['at']||0x0,_0x3b5b35=_0x1b5b04['columns']||0x1;_0x21a1e9['columnInsertionIndexes']=new Array(_0x3b5b35)['fill'](_0x15554a)['map']((_0x5e7ea6,_0x43eeff)=>_0x5e7ea6+_0x43eeff);for(const {cell:_0x3b8f14}of _0xf668e7['createTableWalker'](_0x8ab99a,{'startColumn':_0x15554a,'endColumn':_0x15554a+_0x3b5b35-0x1}))_0x21a1e9['columnInsertionRanges']['push'](_0x3f129e['model']['createRangeOn'](_0x3b8f14));},{'priority':'low'}),_0xf668e7['on']('insertRows',(_0x1681b5,_0x477085)=>{const [_0x164c54,_0x1a30ce={}]=_0x477085;if(!_0x21a1e9)return;const _0x2d1bc4=_0x1a30ce['at']||0x0,_0x6f6105=_0x1a30ce['rows']||0x1;_0x21a1e9['rowInsertionIndexes']=new Array(_0x6f6105)['fill'](_0x2d1bc4)['map']((_0x341626,_0x3f9582)=>_0x341626+_0x3f9582);for(const {cell:_0x5f7ca9}of _0xf668e7['createTableWalker'](_0x164c54,{'startRow':_0x2d1bc4,'endRow':_0x2d1bc4+_0x6f6105-0x1}))_0x21a1e9['rowInsertionRanges']['push'](_0x3f129e['model']['createRangeOn'](_0x5f7ca9));},{'priority':'low'}),_0xa1ee54['descriptionFactory']['registerDescriptionCallback'](_0x27430e=>{if(_0x27430e['subType']&&_0x27430e['subType']['startsWith']('tablePaste'))return _0x27430e['previous']?{}:{'type':'insertion','content':o(_0x3f129e['locale'],'*Replace\x20table\x20cells*')};});const _0x43b916=()=>!0x1;for(const _0x4f22e9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xa1ee54['_suggestionFactory']['registerCustomCallback']('insertion',_0x4f22e9,'join',_0x43b916),_0xa1ee54['_suggestionFactory']['registerCustomCallback']('deletion',_0x4f22e9,'join',_0x43b916),_0xa1ee54['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f22e9,'join',_0x43b916);_0xa1ee54['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43b916),_0xa1ee54['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x12a8c7,_0x22b0ce,_0x397248)=>{const _0x4b48c7=_0x12a8c7['map'](_0x3904d8=>_0x3904d8['getContainedElement']())['filter'](_0x32f99e=>_0x32f99e),_0x440681=new Map(_0x4b48c7['map'](_0x492883=>[_0x492883,null]));if(_0x21a1e9){for(const {element:_0x1852db,attributes:_0x183ca1}of _0x21a1e9['cells'])_0x183ca1&&_0x440681['set'](_0x1852db,_0x183ca1);}else{if(_0x397248&&_0x397248['markerAttributes'])for(const [_0x5144de,_0x15e077]of Object['entries'](_0x397248['markerAttributes'])){const _0x345ef2=_0x3f129e['model']['markers']['get'](_0x5144de),_0x3d3344=_0x345ef2?_0x345ef2['getRange']()['getContainedElement']():null;_0x3d3344&&_0x440681['set'](_0x3d3344,_0x15e077);}}_0x3f129e['model']['change'](_0x1247f6=>{for(const [_0x5816b9,_0x559687]of _0x440681)_0x1247f6['setAttributes']({...Ce,..._0x559687},_0x5816b9);});});const _0x37fcc6=(_0x237ef3,_0x2fadff)=>{_0xa1ee54['_suggestionFactory']['registerCustomCallback'](_0x237ef3,'tablePaste',_0x2fadff,(_0x299a9d,_0xe68d0a,_0x20a793)=>{_0x3f129e['model']['change'](_0x35bd8e=>{const _0x3530b7=[];for(const _0x3196bb of _0x299a9d){const _0x228920=_0x3196bb['start']['nodeAfter'];_0x228920['is']('element','tableCellSuggestion')&&_0x3530b7['push'](_0x228920);}_0xa1ee54['_suggestionFactory']['getSuggestionCallback'](_0x237ef3,null,_0x2fadff)(_0x299a9d,_0xe68d0a,_0x20a793);for(const _0x1ffd15 of _0x3530b7)'$graveyard'!=_0x1ffd15['root']['rootName']&&_0x35bd8e['unwrap'](_0x1ffd15);});});};_0x37fcc6('insertion','accept'),_0x37fcc6('insertion','discard'),_0x37fcc6('deletion','accept'),_0x37fcc6('deletion','discard'),_0xa1ee54['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x41e7a1=>{const _0x37fc5d=_0x41e7a1['map'](_0x425ee1=>_0x425ee1['getContainedElement']()),_0x3d0ffa=_0x37fc5d[0x0]['findAncestor']('table'),{minRow:_0x480bb2,maxRow:_0x5154f9}=_0x4cb671['_getCoordsForCells'](_0x37fc5d);_0xf668e7['removeRows'](_0x3d0ffa,{'at':_0x480bb2,'rows':_0x5154f9-_0x480bb2+0x1});}),_0xa1ee54['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xbce755=>{const _0x47fa6a=_0xbce755['map'](_0x3b296a=>_0x3b296a['getContainedElement']()),_0x5eefa1=_0x47fa6a[0x0]['findAncestor']('table'),{minColumn:_0x54d0dc,maxColumn:_0x166650}=_0x4cb671['_getCoordsForCells'](_0x47fa6a);_0xf668e7['removeColumns'](_0x5eefa1,{'at':_0x54d0dc,'columns':_0x166650-_0x54d0dc+0x1});});const _0x53ca66=(_0x218e6a,_0x45fc1c)=>{if(!_0x45fc1c['subType']||!_0x45fc1c['subType']['startsWith']('tablePaste'))return;const _0x3749d2=_0x45fc1c['attributes']['tablePasteChainId'],_0x3e6b11=_0xa1ee54['getSuggestions']()['filter'](_0x3eb4b2=>_0x3eb4b2['isInContent']&&_0x3eb4b2['attributes']&&_0x3eb4b2['attributes']['tablePasteChainId']==_0x3749d2);_0x3e6b11['length']&&_0x45fc1c['getAllAdjacentSuggestions']()['length']!=_0x3e6b11['length']&&_0x3e6b11['reduce']((_0x2f37e6,_0x55eaa9)=>(_0x2f37e6['next']=_0x55eaa9,_0x55eaa9['previous']=_0x2f37e6,_0x55eaa9));};function _0x577dfb(_0x47ddc0,_0x1877a4=!0x0){const {id:_0x174417}=_0xa1ee54['_splitMarkerName'](_0x47ddc0['markerName']),_0x54cdad=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x42370e=_0xa1ee54['activeMarkers']['includes'](_0x47ddc0['markerName']);return _0x42370e&&_0x54cdad['push']('ck-suggestion-marker--active'),{'classes':_0x54cdad,'attributes':{'data-suggestion':_0x174417},'priority':_0x42370e&&_0x1877a4?0xbc2:0xbb8};}_0xa1ee54['on']('suggestionLoaded',_0x53ca66,{'priority':'high'}),_0xa1ee54['on']('suggestionUnloaded',_0x53ca66,{'priority':'high'}),_0x3f129e['model']['document']['registerPostFixer'](()=>{let _0x5e83b2=!0x1;const _0x17b682=Array['from'](_0x3f129e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45742e,data:_0x26750f}of _0x17b682){const {group:_0x1a7df4,type:_0x216970,id:_0x37e001}=_0xa1ee54['_splitMarkerName'](_0x45742e);if('suggestion'!=_0x1a7df4||'deletion'!=_0x216970||_0x26750f['oldRange'])continue;if(!_0xa1ee54['hasSuggestion'](_0x37e001))continue;const _0x4a0f01=_0xa1ee54['getSuggestion'](_0x37e001)['getRanges'](),_0x57b01c=_0x3f129e['plugins']['get']('Users')['me'];for(const _0x3a7688 of _0xa1ee54['getSuggestions']()){if(!_0x3a7688['isInContent']||_0x3a7688['author']!=_0x57b01c)continue;if('formatBlock'!=_0x3a7688['type']||'tablePasteCell'!=_0x3a7688['subType'])continue;if(_0x3a7688['getRanges']()['every'](_0xf7ea9f=>_0x4a0f01['some'](_0x25f3da=>_0x25f3da['containsRange'](_0xf7ea9f,!0x0)))){for(const _0x5a99d6 of _0x3a7688['getAllAdjacentSuggestions']())_0x5a99d6['isInContent']&&(_0x5a99d6['discard'](),_0x5e83b2=!0x0);}}}return _0x5e83b2;}),_0x3f129e['model']['document']['registerPostFixer'](_0x2e55c3=>{const _0xe2d41=_0x3f129e['commands']['get']('redo');if(!_0xe2d41||!_0xe2d41['_createdBatches']['has'](_0x2e55c3['batch']))return!0x1;let _0x3558f1=!0x1;const _0x2084de=_0x3f129e['plugins']['get']('Users')['me'],_0x2ad9fa=_0x3f129e['model']['document']['differ']['getChanges'](),_0x4c9dde=Array['from'](_0x3f129e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x57cbc0,data:_0x45283b})=>{const {group:_0x2aa0ca,subType:_0x4f93da,authorId:_0x3972e2}=_0xa1ee54['_splitMarkerName'](_0x57cbc0);return'suggestion'==_0x2aa0ca&&'tablePaste'==_0x4f93da&&_0x3972e2==_0x2084de['id']&&!_0x45283b['oldRange'];});for(const _0x192b83 of _0x2ad9fa){if('insert'!=_0x192b83['type']||'tableCellSuggestion'!=_0x192b83['name']||0x1!=_0x192b83['length'])continue;const _0x15e090=_0x2e55c3['createRange'](_0x192b83['position'],_0x192b83['position']['getShiftedBy'](0x1));if(!_0x4c9dde['find'](({data:_0x3ab6b8})=>_0x3ab6b8['newRange']['isEqual'](_0x15e090))){for(const {name:_0x3a26b8,data:_0x509106}of _0x4c9dde)if(_0x15e090['containsRange'](_0x509106['newRange'])){_0x2e55c3['updateMarker'](_0x3a26b8,{'range':_0x15e090}),_0x3558f1=!0x0;break;}}}return _0x3558f1;}),_0x3f129e['model']['document']['registerPostFixer'](_0x4b3850=>{let _0x204c34=!0x1;const _0x1016cb=_0x3f129e['plugins']['get']('Users')['me'],_0x3c5943=_0xa1ee54['getSuggestions']()['filter'](_0x3fa2ff=>_0x3fa2ff['isInContent']&&_0x3fa2ff['author']==_0x1016cb),_0x3183f9=new Set(),_0x166d79=new Set();for(const _0x5b6a9e of _0x3c5943)if('tablePaste'==_0x5b6a9e['subType'])for(const _0x292236 of _0x5b6a9e['getMarkers']()){const _0x5f573e=_0x292236['getRange']()['getContainedElement']();if(_0x5f573e){if(_0x5f573e['is']('element','tableCellSuggestion')&&Pe(_0x5f573e)){_0x5b6a9e['removeMarker'](_0x292236['name']),_0x3183f9['add'](_0x5f573e),_0x204c34=!0x0;const _0x320bd7=_0x5f573e['nextSibling'],_0x14fc71=_0x5f573e['previousSibling'],_0x1435be=_0x320bd7&&_0x320bd7['is']('element','tableCellSuggestion'),_0x3da31a=_0x14fc71&&_0x14fc71['is']('element','tableCellSuggestion');_0x1435be&&!_0x3183f9['has'](_0x320bd7)&&_0x166d79['add'](_0x320bd7),_0x3da31a&&!_0x3183f9['has'](_0x14fc71)&&_0x166d79['add'](_0x14fc71);}else _0x5f573e['is']('element','paragraph')&&_0x5f573e['isEmpty']&&(_0x5b6a9e['removeMarker'](_0x292236['name']),_0x204c34=!0x0);}}else{if('tablePasteCell'==_0x5b6a9e['subType']){if(!_0x5b6a9e['attributes']||!_0x5b6a9e['attributes']['tablePasteChainId'])continue;const _0x481485=_0x5b6a9e['attributes']['markerAttributes'];if(_0x481485&&Object['keys'](_0x481485)['length'])continue;const _0x2a79a4=_0x5b6a9e['attributes']['tablePasteChainId'];let _0x41e952=!0x0,_0x41d5f0=!0x0;for(const _0x3bdcbb of _0x3c5943)if(_0x3bdcbb['subType']&&_0x3bdcbb['subType']['startsWith']('tablePaste')){if(!_0x3bdcbb['attributes']['tablePasteChainId']){_0x41d5f0=!0x1;break;}if(_0x3bdcbb['id']!=_0x5b6a9e['id']&&_0x3bdcbb['attributes']['tablePasteChainId']==_0x2a79a4){_0x41e952=!0x1;break;}}_0x41d5f0&&_0x41e952&&(_0x5b6a9e['removeMarkers'](),_0x204c34=!0x0);}}for(const _0x101583 of _0x3183f9)_0x4b3850['remove'](_0x101583);for(const _0x21b19d of _0x166d79)_0x4b3850['unwrap'](_0x21b19d);return _0x204c34;}),_0x3f129e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x586045,_0x80b8d7)=>_0x577dfb(_0x586045),'converterPriority':'high'}),_0x3f129e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b7e23,_0x4e4a16)=>_0x4e4a16['options']['showSuggestionHighlights']?_0x577dfb(_0x3b7e23,!0x1):null,'converterPriority':'high'});const _0x17173e=_0x3f129e['editing']['view'];this['listenTo'](_0x17173e['document'],'clipboardOutput',(_0x2bb4c1,_0x3392ed)=>{const _0x442d78=[];for(const _0x1d1391 of _0x17173e['createRangeIn'](_0x3392ed['content'])['getItems']())_0x1d1391['is']('element','suggestion-td')&&_0x442d78['push'](_0x1d1391);_0x17173e['change'](_0x2dc612=>{for(const _0x1a3bb4 of _0x442d78)_0x2dc612['move'](_0x2dc612['createRangeIn'](_0x1a3bb4),_0x2dc612['createPositionBefore'](_0x1a3bb4)),_0x2dc612['remove'](_0x1a3bb4);});});}}function Pe(_0x1e9af7){if(_0x1e9af7['isEmpty'])return!0x0;const _0x18377a=_0x1e9af7['getChild'](0x0);return _0x18377a['is']('element','paragraph')&&_0x18377a['isEmpty'];}function he(_0x217e8c,_0xf1ddfe={},_0x39fd30){for(const {isAnchor:_0x301be1,cellHeight:_0x242c63,cellWidth:_0xc89af0}of _0x39fd30['createTableWalker'](_0x217e8c,{'includeAllSlots':!0x0,..._0xf1ddfe}))if(!_0x301be1||0x1!=_0x242c63||0x1!=_0xc89af0)return!0x1;return!0x0;}class vt extends _0x181a03{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x398b08=this['editor']['plugins']['get']('TrackChangesEditing');_0x398b08['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x398b08['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x398b08['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x398b08['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x398b08['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x398b08['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2a03be,_0x71d779){const _0x3a1c63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x131c69=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x25eab6=_0x71d779['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x35dcd6=_0x131c69['getColumnGroupElement'](_0x25eab6);let _0x3ec20e=_0x35dcd6?_0x131c69['getTableColumnsWidths'](_0x35dcd6):null,_0x13913a=_0x25eab6['getAttribute']('tableWidth')||null;const _0x111362=_0x71d779['tableWidth']||_0x13913a,_0x139e4a=_0x71d779['columnWidths']||_0x3ec20e,_0x3adc36=this['editor']['plugins']['get']('Users')['me'];for(const _0x568b0f of _0x3a1c63['getSuggestions']()){const _0x82aea4=_0x568b0f['getContainedElement']();if('resizeTable'===_0x568b0f['subType']&&_0x82aea4===_0x25eab6){_0x568b0f['author']!==_0x3adc36&&_0x568b0f['discard']();const _0x519572=_0x568b0f['data']['commandParams'];_0x13913a=_0x519572[0x0]['tableWidth'],_0x3ec20e=_0x519572[0x0]['columnWidths'];break;}}_0x2a03be({'table':_0x25eab6,'tableWidth':_0x111362,'columnWidths':_0x139e4a}),_0x3a1c63['markBlockFormat'](_0x25eab6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x13913a,'columnWidths':_0x3ec20e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4a8cb6){if('formatBlock'!=_0x4a8cb6['type']&&'formatInline'!=_0x4a8cb6['type'])return;const {data:_0xa0034}=_0x4a8cb6;if(_0xa0034&&'resizeTable'===_0xa0034['formatGroupId']){const _0x2d4722='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2d4722)};}}}class _t extends _0x181a03{['afterInit'](){const _0x18d2de=this['editor'];_0x18d2de['plugins']['has']('Template')&&_0x18d2de['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x181a03{['afterInit'](){const _0x28ddf6=this['editor'];if(!_0x28ddf6['commands']['get']('insertTableOfContents'))return;_0x28ddf6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x589abd=_0x28ddf6['plugins']['get']('TrackChangesEditing'),_0x2f2ba1=_0x28ddf6['locale'];_0x589abd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x334eb6=>o(_0x2f2ba1,'ELEMENT_TABLE_OF_CONTENTS',_0x334eb6));}}class Dt extends _0x181a03{['afterInit'](){const _0x2b8f3f=this['editor'];if(!_0x2b8f3f['plugins']['has']('Title'))return;const _0x205458=_0x2b8f3f['plugins']['get']('TrackChangesEditing');_0x205458['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2b8f3f['locale'],'ELEMENT_TITLE')),_0x2b8f3f['model']['document']['registerPostFixer'](_0x8c024=>{let _0x57e860=!0x1;const _0x6fbf03=Array['from'](_0x2b8f3f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x139738,data:_0x1ab04c}of _0x6fbf03){const {group:_0x2e2a37}=_0x205458['_splitMarkerName'](_0x139738);if('suggestion'!==_0x2e2a37||!_0x1ab04c['newRange'])continue;const _0x3295a7=_0x1ab04c['newRange'],_0x257ba9=_0x3295a7['end']['nodeBefore'];if(!_0x257ba9||!_0x257ba9['is']('element','title-content'))continue;if(!_0x3295a7['start']['isTouching'](_0x3295a7['end']))continue;const _0x1b961c=_0x2b8f3f['model']['schema']['getNearestSelectionRange'](_0x3295a7['end'],'forward');if(_0x1b961c&&_0x1b961c['isCollapsed']){const _0xbceff=_0x8c024['createRange'](_0x3295a7['start'],_0x1b961c['start']);_0xbceff['isEqual'](_0x3295a7)||(_0x8c024['updateMarker'](_0x139738,{'range':_0xbceff}),_0x57e860=!0x0);}_0x57e860||(_0x8c024['removeMarker'](_0x139738),_0x57e860=!0x0);}return _0x57e860;});}}class Nt extends _0x181a03{['afterInit'](){const _0x3bba09=this['editor'],_0x51324f=_0x3bba09['plugins']['get']('TrackChangesEditing');_0x3bba09['plugins']['has']('UndoEditing')&&(_0x51324f['enableCommand']('undo'),_0x51324f['enableCommand']('redo'));}}class Mt extends _0x181a03{static get['requires'](){return[jt];}['afterInit'](){const _0x2c43d5=this['editor'];if(!_0x2c43d5['plugins']['has']('TableCaptionEditing'))return;_0x2c43d5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x181a03{['tableProperties'];['tableCellProperties'];constructor(_0x15d8ee){super(_0x15d8ee),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x59ce8f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x261e0c of this['tableProperties'])_0x59ce8f['enableCommand'](_0x261e0c,(_0x4bb1d4,_0x2e72e3)=>{const _0x6acbeb=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x261e0c,[_0x6acbeb],this['tableProperties'],'tableProperties',_0x4bb1d4,_0x2e72e3);});_0x59ce8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x59ce8f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59ce8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x38b3fd,_0x42727d)=>this['handleDiscardAction'](this['tableProperties'],_0x38b3fd,_0x42727d)),_0x59ce8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4a1443 of this['tableCellProperties'])_0x59ce8f['enableCommand'](_0x4a1443,(_0x1fb583,_0x2e4f41)=>{const _0x589c6c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4a1443,_0x589c6c,this['tableCellProperties'],'tableCellProperties',_0x1fb583,_0x2e4f41);});_0x59ce8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x59ce8f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59ce8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1e07af,_0x537a5f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1e07af,_0x537a5f)),_0x59ce8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x59ce8f['descriptionFactory']['registerDescriptionCallback'](_0x281933=>this['handleSuggestionDescription'](_0x281933));}['_handlePropertyChange'](_0x576138,_0x50b021,_0x24d25a,_0xecebdc,_0x57c66e,_0x1667ce){const _0x246524=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1667ce['batch'],()=>{for(const _0x34ed43 of _0x50b021){if(this['_getSuggestion'](_0x34ed43,_0xecebdc))_0x57c66e(_0x1667ce);else{const _0x3a21ad={};for(const _0x3a36ef of _0x24d25a){const _0x34430e=_0x34ed43['getAttribute'](_0x3a36ef);void 0x0!==_0x34430e&&(_0x3a21ad[_0x3a36ef]=_0x34430e);}_0x57c66e(_0x1667ce),_0x246524['markBlockFormat'](_0x34ed43,{'commandParams':[_0x3a21ad]},[],_0xecebdc);}}});}['handleDiscardAction'](_0x45bbc8,_0x33ace7,_0x1c2dbf){const _0x114aaf=_0x33ace7[0x0]['start']['nodeAfter'],_0x41b980=_0x1c2dbf['commandParams'][0x0];this['editor']['model']['change'](_0x227605=>{for(const _0x4dce60 of _0x45bbc8)void 0x0!==_0x41b980[_0x4dce60]?_0x227605['setAttribute'](_0x4dce60,_0x41b980[_0x4dce60],_0x114aaf):_0x227605['removeAttribute'](_0x4dce60,_0x114aaf);});}['handleSuggestionDescription'](_0x515ed2){if(_0x515ed2['data'])switch(_0x515ed2['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'](_0x10b749,_0x13de2b){const _0x53f0e6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x47d0d8 of _0x53f0e6['getSuggestions']({'skipNotAttached':!0x0})){const _0x470915=_0x47d0d8['getContainedElement']();if(_0x47d0d8['subType']===_0x13de2b&&_0x470915===_0x10b749)return _0x47d0d8;}return null;}}const m='$elementName';class p extends _0x181a03{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x37773b,_0x166994,E,V,U,O,G,F,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';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0xfa8528){function _0x5ebd7e(_0x870d51){return _0x870d51['map'](_0xe81a53=>String['fromCharCode'](_0xe81a53))['join']('');}super(_0xfa8528),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x7b050b,_0x1155a7,_0xf69273,_0x17eaf0)=>{this['_model']['change'](()=>{for(const _0x5e99ad of[..._0x17eaf0,..._0xf69273])this['_model']['markers']['has'](_0x5e99ad)&&_0xfa8528['editing']['reconvertMarker'](_0x5e99ad);});}),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']=_0xfa8528['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(),_0xfa8528['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xfa8528['config']['get']('trackChanges.trackFormatChanges'),_0xfa8528['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xfa8528['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0xfa8528,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5ebd7e([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5ebd7e([0x34,0x30,0x34,0x38,0x31,0x30,0x32,0x34]);}['init'](){const _0xb2d654=this['editor'],_0x17a504=(_0x2623c1,_0x5d369c)=>{if('attribute'!=_0x2623c1)return'ck-suggestion-marker-'+_0x2623c1;const _0x220b71=_0x5d369c['split']('|')[0x0];return this['_isBlockAttribute'](_0x220b71)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xb2d654['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x318503=>{const {id:_0x6d33d7,type:_0x5bb857,subType:_0x1b90e5}=this['_splitMarkerName'](_0x318503['markerName']),_0x5e0073=['ck-suggestion-marker',_0x17a504(_0x5bb857,_0x1b90e5)];let _0x1b4505=0xbb8;return this['activeMarkers']['includes'](_0x318503['markerName'])&&(_0x5e0073['push']('ck-suggestion-marker--active'),_0x1b4505=0xbc2),'deletion'==_0x5bb857&&(_0x1b4505+=0x5),{'classes':_0x5e0073,'attributes':{'data-suggestion':_0x6d33d7},'priority':_0x1b4505};}}),_0xb2d654['conversion']['for']('dataDowncast')['add'](_0x1c06c3=>{_0x1c06c3['on']('addMarker:suggestion',(_0x589e4c,_0x2efa41,_0x1eef97)=>{if(!_0x1eef97['options']['showSuggestionHighlights'])return;const _0x12c6da=_0x2efa41['item'];if(!_0x12c6da)return;const _0x1c5dc9=_0x1eef97['mapper']['toViewElement'](_0x12c6da);_0xb2d654['model']['schema']['isObject'](_0x12c6da)&&_0x1c5dc9&&!_0x1c5dc9['getCustomProperty']('widget')&&_0x1c5dc9['is']('containerElement')&&_0x3d04e1(_0x1c5dc9,_0x1eef97['writer']);},{'priority':'high'});}),_0xb2d654['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5689e5,_0x4d687b)=>{if(!_0x4d687b['options']['showSuggestionHighlights'])return null;const {type:_0x34c9cb,subType:_0x53046e}=this['_splitMarkerName'](_0x5689e5['markerName']);return{'classes':['ck-suggestion-marker',_0x17a504(_0x34c9cb,_0x53046e)],'priority':0xbb8};}});const _0x59165c=({showActiveMarkers:_0x441ead=!0x0,isAttributeSuggestion:_0x31d6bd=!0x1}={})=>(_0x11d22a,_0x2700d9,_0x4a73b3)=>{if(!_0x2700d9['item'])return;const {id:_0x20cd41}=this['_splitMarkerName'](_0x2700d9['markerName']);if(_0x31d6bd){const _0x256ad5=this['_suggestions']['get'](_0x20cd41),_0x3c210e=this['_getAttributeKey'](_0x256ad5);if(!this['_isBlockAttribute'](_0x3c210e))return;}if(_0x2700d9['item']['is']('selection'))return void _0x4a73b3['consumable']['consume'](_0x2700d9['item'],_0x11d22a['name']);const _0x3e6a42=_0x4a73b3['mapper']['toViewElement'](_0x2700d9['item']);if(_0x2700d9['item']['is']('element')&&_0xb2d654['model']['schema']['isBlock'](_0x2700d9['item'])&&!_0x3e6a42['getCustomProperty']('addHighlight')){_0x4a73b3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3e6a42),_0x4a73b3['writer']['setAttribute']('data-suggestion',_0x20cd41,_0x3e6a42),_0x4a73b3['mapper']['bindElementToMarker'](_0x3e6a42,_0x2700d9['markerName']),_0x441ead&&(this['activeMarkers']['includes'](_0x2700d9['markerName'])?_0x4a73b3['writer']['addClass']('ck-suggestion-marker--active',_0x3e6a42):_0x4a73b3['writer']['removeClass']('ck-suggestion-marker--active',_0x3e6a42));for(const _0x30db9e of _0xb2d654['model']['createRangeIn'](_0x2700d9['item'])['getItems']())_0x4a73b3['consumable']['consume'](_0x30db9e,_0x11d22a['name']);_0x4a73b3['consumable']['consume'](_0x2700d9['item'],_0x11d22a['name']);}};_0xb2d654['conversion']['for']('dataDowncast')['add'](_0x53d4ed=>{_0x53d4ed['on']('addMarker:suggestion:formatBlock',(_0x45df51,_0x1b1ac7,_0x34fbfa)=>{_0x34fbfa['options']['showSuggestionHighlights']&&_0x59165c({'showActiveMarkers':!0x1})(_0x45df51,_0x1b1ac7,_0x34fbfa);},{'priority':'highest'});}),_0xb2d654['conversion']['for']('dataDowncast')['add'](_0x6d288e=>{_0x6d288e['on']('addMarker:suggestion:attribute',(_0x16f4f8,_0x282e80,_0x3b9ba6)=>{_0x3b9ba6['options']['showSuggestionHighlights']&&_0x59165c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x16f4f8,_0x282e80,_0x3b9ba6);},{'priority':'highest'});}),_0xb2d654['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x536469,_0x1caf45)=>_0x1caf45['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x536469['substr'](0xb)}}),_0xb2d654['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x461c0e,{writer:_0x1d0a82})=>{let _0x10885c='suggestion:'+_0x461c0e['getAttribute']('suggestion-type')+':'+_0x461c0e['getAttribute']('id');return _0x461c0e['getAttribute']('marker-count')&&(_0x10885c+=':'+_0x461c0e['getAttribute']('marker-count')),_0x1d0a82['createElement']('$marker',{'data-name':_0x10885c});}}),_0xb2d654['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xb2d654['conversion']['for']('editingDowncast')['add'](_0x426c4a=>{_0x426c4a['on']('addMarker:suggestion:formatBlock',_0x59165c(),{'priority':'high'});}),_0xb2d654['conversion']['for']('editingDowncast')['add'](_0x50ef77=>{_0x50ef77['on']('addMarker:suggestion:attribute',_0x59165c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xb2d654['conversion']['for']('editingDowncast')['add'](_0x167723=>{_0x167723['on']('removeMarker:suggestion:formatBlock',(_0x4f46e6,_0x410c97,_0x2e63f2)=>{const _0x5c83f3=_0x2e63f2['mapper']['markerNameToElements'](_0x410c97['markerName']);if(_0x5c83f3){for(const _0x2ded71 of _0x5c83f3)_0x2ded71['getCustomProperty']('addHighlight')||(_0x2e63f2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ded71),_0x2e63f2['writer']['removeAttribute']('data-suggestion',_0x2ded71),_0x2e63f2['mapper']['unbindElementFromMarkerName'](_0x2ded71,_0x410c97['markerName']));}},{'priority':'high'});}),_0xb2d654['conversion']['for']('editingDowncast')['add'](_0x5246bd=>{_0x5246bd['on']('removeMarker:suggestion:attribute',(_0x4bbd58,_0x152afc,_0x2d28ec)=>{const _0x12223c=_0x2d28ec['mapper']['markerNameToElements'](_0x152afc['markerName']);if(!_0x12223c)return;const {id:_0x11076a}=this['_splitMarkerName'](_0x152afc['markerName']),_0x3164e4=this['_suggestions']['get'](_0x11076a),_0x233793=this['_getAttributeKey'](_0x3164e4);if(this['_isBlockAttribute'](_0x233793)){for(const _0x17e875 of _0x12223c)_0x17e875['getCustomProperty']('addHighlight')||(_0x2d28ec['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x17e875),_0x2d28ec['writer']['removeAttribute']('data-suggestion',_0x17e875),_0x2d28ec['mapper']['unbindElementFromMarkerName'](_0x17e875,_0x152afc['markerName']));}},{'priority':'high'});}),_0xb2d654['model']['document']['registerPostFixer'](_0x1eb658=>{let _0x39f0dd=!0x1;const _0x3ca59a=Array['from'](_0xb2d654['model']['document']['differ']['getChangedMarkers']()),_0x181904=new Set();for(const {name:_0x14e059,data:_0x2a2845}of _0x3ca59a){const {group:_0x4f3b8a,type:_0x32a52d,subType:_0x4153f0,id:_0x3fd620}=this['_splitMarkerName'](_0x14e059);if('suggestion'!==_0x4f3b8a)continue;const _0xce9c0e=this['_suggestions']['get'](_0x3fd620);if(null!=_0x2a2845['newRange']){'formatInline'==_0x32a52d&&(_0x39f0dd=_0x39f0dd||Et(_0x2a2845['newRange'],_0x14e059,_0x1eb658,_0xb2d654['model']['schema']));const _0x4b6e74='attribute'==_0x32a52d&&this['_isBlockAttribute'](_0x4153f0['split']('|')[0x0]);if(_0x2a2845['newRange']['isCollapsed']||'$graveyard'==_0x2a2845['newRange']['root']['rootName']||'formatBlock'==_0x32a52d&&!Ut(_0x2a2845['newRange'])||_0x4b6e74&&!Ut(_0x2a2845['newRange'])||'deletion'==_0x32a52d&&!(!Tt(_0x4b0ab7=_0x2a2845['newRange'])&&!function(_0x385ece){return _0x385ece['start']['parent']==_0x385ece['end']['nodeBefore']&&_0x385ece['start']['isAtEnd'];}(_0x4b0ab7)))_0x1eb658['removeMarker'](_0x14e059),_0x39f0dd=!0x0;else{if(!_0xce9c0e||!_0xce9c0e['isInContent'])continue;_0x181904['add'](_0xce9c0e);}}}var _0x4b0ab7;return _0x181904['size']>0x0&&(_0x39f0dd=!!this['_joinWithAdjacentSuggestions'](_0x181904)||_0x39f0dd),_0x39f0dd;}),_0xb2d654['model']['document']['registerPostFixer'](_0x44f4ee=>{let _0x545244=!0x1;for(const _0x110fb9 of _0xb2d654['model']['document']['differ']['getChanges']())if('insert'==_0x110fb9['type'])for(const _0x2a988f of this['_suggestions']['values']()){if(_0x2a988f['isMultiRange']||!_0x2a988f['isInContent'])continue;const _0x2880b3='formatBlock'==_0x2a988f['type'],_0x3b33c7=this['_getAttributeKey'](_0x2a988f),_0x15b323=_0x3b33c7&&this['_isBlockAttribute'](_0x3b33c7);if(!_0x2880b3&&!_0x15b323)continue;const _0x421f15=_0x2a988f['getFirstRange']();if(_0x421f15['start']['parent']!=_0x421f15['end']['parent']&&!_0x421f15['end']['isAtEnd']){const _0x4960d8=_0xb2d654['model']['createPositionAt'](_0x421f15['start']['nodeAfter'],'end'),_0x25fd00=_0xb2d654['model']['createRange'](_0x421f15['start'],_0x4960d8);_0x44f4ee['updateMarker'](_0x2a988f['getFirstMarker'](),{'range':_0x25fd00}),_0x545244=!0x0;}}return _0x545244;}),_0xb2d654['model']['document']['registerPostFixer'](_0x4c0d9c=>this['_processAttributeChanges'](_0x4c0d9c)),_0xb2d654['model']['document']['registerPostFixer'](_0x35f8cf=>!_0x35f8cf['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x35f8cf)),_0xb2d654['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xb2d654['model']['document']['on']('change:data',(_0x3be1ba,_0x584a10)=>{if(!_0x584a10['isLocal']||_0x584a10['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2d198f=_0xb2d654['model']['document']['differ']['getChanges']();if(0x0==_0x2d198f['length'])return;const _0x19f604=[],_0xc980e=_0x2d198f['filter'](_0x3dea65=>'attribute'==_0x3dea65['type']),_0xa4544c=_0x2d198f['filter'](_0x4ea4ce=>'insert'==_0x4ea4ce['type']&&'$text'!=_0x4ea4ce['name']),_0x1cb4eb=_0x2d198f['filter'](_0x3d2a1d=>'remove'==_0x3d2a1d['type']&&'$text'!=_0x3d2a1d['name']);for(const _0x318855 of _0xc980e)this['_isRegisteredAttribute'](_0x318855['attributeKey'])&&_0x19f604['push']({'key':_0x318855['attributeKey'],'newValue':_0x318855['attributeNewValue'],'oldValue':_0x318855['attributeOldValue'],'range':Ot(_0x318855['range'],_0xb2d654['model'])});for(const _0x280f52 of _0xa4544c){const _0x1a1bc8=_0x1cb4eb['find'](_0x2c8930=>_0x2c8930['_element']===_0x280f52['_element']);if(_0x1a1bc8){const _0x5f23b2=Ft(_0x280f52['position']['nodeAfter'],_0xb2d654['model']);_0x1a1bc8['name']!==_0x280f52['name']&&_0x19f604['push']({'key':m,'newValue':_0x280f52['name'],'oldValue':_0x1a1bc8['name'],'range':_0x5f23b2});for(const [_0x146e8c,_0x39720e]of _0x1a1bc8['attributes']){if(!this['_isRegisteredAttribute'](_0x146e8c))continue;const _0x65e280=_0x280f52['attributes']['get'](_0x146e8c);_0x39720e!==_0x65e280&&_0x19f604['push']({'key':_0x146e8c,'newValue':_0x65e280,'oldValue':_0x39720e,'range':_0x5f23b2});}for(const [_0x500603,_0xa72bf]of _0x280f52['attributes'])this['_isRegisteredAttribute'](_0x500603)&&(_0x1a1bc8['attributes']['has'](_0x500603)||_0x19f604['push']({'key':_0x500603,'newValue':_0xa72bf,'oldValue':null,'range':_0x5f23b2}));}}0x0!=_0x19f604['length']&&_0xb2d654['model']['enqueueChange'](_0x584a10,_0x548539=>{const _0xe709e8=_0x25cdca();for(const {range:_0x30c508,key:_0x5a3037,oldValue:_0x3c60ee,newValue:_0x5ee4a0}of _0x19f604)this['markAttributeChange'](_0x30c508,_0x5a3037,_0x3c60ee,_0x5ee4a0,{'groupId':_0xe709e8});this['_reduceExistingSuggestions'](_0x548539,_0x19f604);});},{'priority':'lowest'}),_0xb2d654['model']['markers']['on']('update:suggestion',(_0x678dfc,_0x444aa6,_0x89b0af)=>{if(null==_0x89b0af){const {id:_0x3b2e6d}=this['_splitMarkerName'](_0x444aa6['name']),_0x400987=this['_suggestions']['get'](_0x3b2e6d);_0x400987&&_0x400987['addMarkerName'](_0x444aa6['name']);}}),_0xb2d654['model']['document']['on']('change:data',()=>{const _0x3c5e1b=Array['from'](_0xb2d654['model']['document']['differ']['getChangedMarkers']())['filter'](_0x50cff0=>'suggestion'===this['_splitMarkerName'](_0x50cff0['name'])['group']);if(0x0===_0x3c5e1b['length'])return;_0x3c5e1b['sort']((_0x18c493,_0x3b9692)=>{const _0x3b24ba=_0x18c493['data']['oldRange'],_0x490566=_0x3b9692['data']['oldRange'];return null===_0x3b24ba&&null===_0x490566?0x0:null===_0x3b24ba&&null!==_0x490566?-0x1:null!==_0x3b24ba&&null===_0x490566?0x1:_0x3b24ba['start']['isBefore'](_0x490566['start'])?-0x1:0x1;});const _0x1a0a3a=new Set(),_0xcabd3=new Set();for(const {name:_0x5cb9b4,data:_0x2f57c6}of _0x3c5e1b){const {id:_0x10b218}=this['_splitMarkerName'](_0x5cb9b4);if(null===_0x2f57c6['oldRange']){const _0x52b25e=this['_handleNewSuggestionMarker'](_0x5cb9b4);_0xcabd3['add'](_0x52b25e);}else{const _0x1297eb=this['_suggestions']['get'](_0x10b218);null!==_0x2f57c6['newRange']||_0x1297eb['isInContent']?(_0x1a0a3a['add'](_0x1297eb['head']),_0xcabd3['add'](_0x1297eb)):this['_removeSuggestion'](_0x1297eb);}}_0xcabd3['size']>0x0&&this['_refreshSuggestionsChain'](_0xcabd3);for(const _0x424f3e of _0x1a0a3a)this['fire']('suggestionChanged',_0x424f3e);}),_0xb2d654['model']['on']('applyOperation',(_0x4b1264,_0x120610)=>{const _0x31a0a1=_0x120610[0x0];if(!this['_suggestions']['size'])return;if(!_0x31a0a1['isDocumentOperation'])return;if(_0x31a0a1['batch']['isUndo']||!_0x31a0a1['batch']['isLocal'])return;let _0x27a699,_0x5daa6d;switch(_0x31a0a1['type']){case'insert':_0x27a699=_0xb2d654['model']['createPositionAt'](_0x31a0a1['position']),_0x5daa6d=_0x27a699['getShiftedBy'](_0x31a0a1['howMany']);break;case'split':_0x27a699=_0xb2d654['model']['createPositionAt'](_0x31a0a1['splitPosition']),_0x5daa6d=_0xb2d654['model']['createPositionAt'](_0x31a0a1['moveTargetPosition']);break;case'move':_0x27a699=_0xb2d654['model']['createPositionAt'](_0x31a0a1['targetPosition']),_0x5daa6d=_0x27a699['getShiftedBy'](_0x31a0a1['howMany']);break;default:return;}const _0x1745fa=_0xb2d654['model']['createRange'](_0x27a699,_0x5daa6d);_0xb2d654['model']['change'](()=>{for(const {suggestion:_0x434ce8,meta:_0x578483}of this['_findSuggestions'](_0x1745fa)){if(_0x434ce8['isMultiRange'])continue;if('formatInline'==_0x434ce8['type'])continue;const _0xa09389=this['_getAttributeKey'](_0x434ce8);if(_0xa09389&&this['_isBlockAttribute'](_0xa09389)&&'split'!=_0x31a0a1['type'])continue;const _0x5cca9e=_0x434ce8['data']&&_0x434ce8['data']['multipleBlocks'];('formatBlock'!=_0x434ce8['type']||'split'==_0x31a0a1['type']&&!_0x5cca9e)&&(_0x578483['containsRangeInObject']||'insertion'==_0x434ce8['type']&&_0x578483['isOwn']||_0x434ce8['getFirstRange']()['containsRange'](_0x1745fa)&&this['_breakSuggestionMarker'](_0x434ce8,_0x27a699,_0x5daa6d));}});},{'priority':'lowest'}),_0xb2d654['model']['on']('deleteContent',(_0x1284b1,_0x4108d9)=>{const _0x5604e9=_0x4108d9[0x0],_0x4b91a9=_0x4108d9[0x1];if(_0x4b91a9&&_0x4b91a9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5604e9['isCollapsed'])return;const _0x171a32=_0xb2d654['model']['schema'],{start:_0x5c94aa,end:_0xed8f51}=_0x5604e9['getFirstRange'](),_0x4ae155=_0x5c94aa['nodeAfter']&&_0x171a32['isLimit'](_0x5c94aa['nodeAfter'])?null:_0x171a32['getNearestSelectionRange'](_0x5c94aa,'forward'),_0x571235=_0xed8f51['nodeBefore']&&_0x171a32['isLimit'](_0xed8f51['nodeBefore'])?null:_0x171a32['getNearestSelectionRange'](_0xed8f51,'backward'),_0x5f0c32=_0xb2d654['model']['createRange'](_0x4ae155?_0x4ae155['start']:_0x5c94aa,_0x571235?_0x571235['end']:_0xed8f51);_0xb2d654['model']['change'](_0x282837=>{this['markDeletion'](_0x5f0c32);const _0xd44ca4=_0xb2d654['model']['schema']['getNearestSelectionRange'](_0x5f0c32['start']);_0x5604e9['is']('documentSelection')?_0x282837['setSelection'](_0xd44ca4):_0x5604e9['setTo'](_0xd44ca4);}),_0x1284b1['stop']();},{'priority':_0x512c8b['normal']+0xa}),_0xb2d654['model']['on']('insertContent',(_0x53466c,_0x15ca1e)=>{const _0x51367d=_0x15ca1e[_0x15ca1e['length']-0x1];_0x51367d&&_0x51367d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xb2d654['model']['change'](()=>{let _0x4f2c81=_0xb2d654['model']['insertContent'](_0x15ca1e[0x0],_0x15ca1e[0x1],_0x15ca1e[0x2],{'forceDefaultExecution':!0x0});if(!_0x4f2c81)return;_0x53466c['return']=_0x4f2c81['clone']();const _0x1687ac=_0x4f2c81['end']['nodeBefore'],_0x41840e=_0xb2d654['model']['schema'];_0x1687ac&&_0x41840e['isBlock'](_0x1687ac)&&!_0x41840e['isObject'](_0x1687ac)&&(_0x4f2c81=_0xb2d654['model']['createRange'](_0x4f2c81['start'],_0xb2d654['model']['createPositionAt'](_0x1687ac,'end'))),this['markInsertion'](_0x4f2c81);}),_0x53466c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1e1225=new $(_0xb2d654,this['_suggestions']);_0xb2d654['commands']['add']('acceptSuggestion',_0x1e1225),this['enableCommand']('acceptSuggestion');const _0x2b2ad8=new B(_0xb2d654,this['_suggestions']);_0xb2d654['commands']['add']('discardSuggestion',_0x2b2ad8),this['enableCommand']('discardSuggestion'),_0xb2d654['commands']['add']('acceptAllSuggestions',new x(_0xb2d654,_0x1e1225,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xb2d654['commands']['add']('discardAllSuggestions',new x(_0xb2d654,_0x2b2ad8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xb2d654['commands']['add']('acceptSelectedSuggestions',new R(_0xb2d654,_0x1e1225,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xb2d654['commands']['add']('discardSelectedSuggestions',new R(_0xb2d654,_0x2b2ad8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x463400=_0xb2d654['plugins']['get']('CommentsRepository');this['listenTo'](_0x463400,'addComment',(_0x36b737,{threadId:_0x544f31})=>{const _0x39e827=this['_suggestions']['get'](_0x544f31);_0x39e827&&_0x39e827['commentThread']&&0x1===_0x39e827['commentThread']['length']&&this['_updateSuggestionData'](_0x544f31,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x463400,'removeComment',(_0x13f255,{threadId:_0x126a8b})=>{const _0x1f55b2=this['_suggestions']['get'](_0x126a8b);_0x1f55b2&&_0x1f55b2['commentThread']&&!_0x1f55b2['commentThread']['length']&&this['_updateSuggestionData'](_0x126a8b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x50ea95){if(this['_adapter'])throw new _0x1c1713('track-changes-adapter-already-set',this);this['_adapter']=_0x50ea95;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x490d9f=!0x1,toJSON:_0x58ea60=!0x1}={}){const _0x5906d0=[];for(const _0xc6f7e5 of this['_suggestions']['values']())_0x490d9f&&!_0xc6f7e5['isInContent']||_0x5906d0['push'](_0xc6f7e5);return _0x58ea60?_0x5906d0['map'](_0x6615b5=>_0x6615b5['toJSON']()):_0x5906d0;}['getSuggestion'](_0x11cd27){const _0x110cc9=this['_suggestions']['get'](_0x11cd27);if(!_0x110cc9)throw new _0x1c1713('track-changes-suggestion-not-found',this);return _0x110cc9;}['hasSuggestion'](_0x70f62e){return this['_suggestions']['has'](_0x70f62e);}['addSuggestionData'](_0x585cfa){const {authorId:_0xa164,id:_0x108fea,attributes:_0xec3f60}=_0x585cfa,[_0x9024e7,_0x50ab7a]=_0x585cfa['type']['split'](':'),_0x20dadd=this['_suggestions']['get'](_0x108fea)||this['_createSuggestion'](_0x9024e7,_0x50ab7a,_0x108fea,_0xa164,_0xec3f60);if(this['_addThreadToSuggestion'](_0x20dadd),this['_checkSuggestionCorrectness'](_0x20dadd,_0x9024e7,_0x50ab7a||null,_0xa164),_0x20dadd['createdAt']=_0x585cfa['createdAt'],_0x20dadd['_isDataLoaded']=!0x0,_0xec3f60&&_0xec3f60['@external']){const _0x5a68f7=_0xec3f60['@external'],_0x39e1ab=this['_getExternalAuthor'](_0x5a68f7['authorName']);_0x20dadd['authoredAt']=_0x5a68f7['createdAt'],_0x20dadd['author']=_0x39e1ab,_0x20dadd['isExternal']=!0x0;}else _0x20dadd['authoredAt']=_0x585cfa['createdAt'];switch(_0x585cfa['data']&&(_0x20dadd['data']=_0x585cfa['data']),_0x585cfa['attributes']&&(_0x20dadd['attributes']=_0x585cfa['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x20dadd['_saved']=!0x0),this['_suggestionState']['get'](_0x20dadd)){case'notReady':this['_suggestionState']['set'](_0x20dadd,'dataReady');break;case'markerReady':_0x20dadd['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x20dadd])),this['_refreshSuggestionsChain'](new Set([_0x20dadd])),this['_suggestionState']['set'](_0x20dadd,'ready'),this['fire']('suggestionLoaded',_0x20dadd)):this['_suggestionState']['set'](_0x20dadd,'removed');}return _0x20dadd;}['acceptSuggestion'](_0x15dc32){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ad071 of _0x15dc32['getAllAdjacentSuggestions']())_0x2ad071['accept']();});});}['discardSuggestion'](_0xb7b307){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3ecd0b of _0xb7b307['getAllAdjacentSuggestions']())_0x3ecd0b['discard']();});});}['enableCommand'](_0x3d08ee,_0xccaa3c){const _0x189003=this['editor']['commands']['get'](_0x3d08ee);if(!_0x189003)throw new _0x1c1713('track-changes-command-not-found',this,{'commandName':_0x3d08ee});if(this['_enabledCommands']['has'](_0x189003))throw new _0x1c1713('track-changes-enable-command-twice',this,{'commandName':_0x3d08ee});this['_enabledCommands']['add'](_0x189003),_0xccaa3c&&_0x189003['on']('execute',(_0x528129,_0x270f9e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x270f9e['length']>0x0&&_0x270f9e[_0x270f9e['length']-0x1]&&_0x270f9e[_0x270f9e['length']-0x1]['forceDefaultExecution']?_0x270f9e['pop']():(_0x528129['return']=_0xccaa3c((..._0x5f1fa5)=>_0x189003['execute'](..._0x5f1fa5,{'forceDefaultExecution':!0x0}),..._0x270f9e),_0x528129['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3e0e64){let _0x5d2de7,_0x18e4e1;const _0x351cd9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5d2de7=_0x3e0e64();}catch(_0x2d2ac5){_0x18e4e1=_0x2d2ac5;}return _0x351cd9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x18e4e1&&_0x1c1713['rethrowUnexpectedError'](_0x18e4e1,this),_0x5d2de7;}['markInsertion'](_0x190164,_0xb8a419=null,_0x1310b9={}){if(_0x190164['isCollapsed'])return null;const _0x19c3e0=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2eb3ee,meta:_0x1ce150}of this['_findSuggestions'](_0x190164,'insertion'))if(_0x1ce150['isOwn']){if(!_0x1ce150['isNextTo']){if(_0x1ce150['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2eb3ee,_0x1310b9))continue;return _0x2eb3ee;}if(Lt(_0x2eb3ee,_0x1310b9))return _0x2eb3ee;this['_breakSuggestionMarker'](_0x2eb3ee,_0x190164['start'],_0x190164['end']);break;}if(_0xb8a419==_0x2eb3ee['subType']&&Lt(_0x2eb3ee,_0x1310b9)){const _0x49adf2=_0x2eb3ee['getFirstRange']();return _0x49adf2['start']['isEqual'](_0x190164['end'])?this['_setSuggestionRange'](_0x2eb3ee,this['_model']['createRange'](_0x190164['start'],_0x49adf2['end'])):this['_setSuggestionRange'](_0x2eb3ee,this['_model']['createRange'](_0x49adf2['start'],_0x190164['end'])),_0x2eb3ee;}}const _0x2624fb=_0x25cdca(),_0x3c88ab=_0x19c3e0['id'],_0x585d73=_0xb8a419?'insertion:'+_0xb8a419:'insertion',_0x1a6f71=this['_setSuggestionData']({'id':_0x2624fb,'type':_0x585d73,'createdAt':new Date(),'authorId':_0x3c88ab,'attributes':_0x1310b9});return this['_addSuggestionMarker'](_0x585d73,_0x2624fb,_0x3c88ab,_0x190164),_0x1a6f71;}['markMultiRangeInsertion'](_0x48f426,_0x4b9055='multi',_0x2ae616={}){const _0x11cb7d=this['editor']['plugins']['get']('Users')['me'],_0x345e5a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4b9055,'join');for(const _0x38f839 of this['getSuggestions']())if(_0x38f839['author']['id']==_0x11cb7d['id']&&'insertion'==_0x38f839['type']&&_0x38f839['subType']==_0x4b9055&&Lt(_0x38f839,_0x2ae616)&&(_0x345e5a(_0x38f839['getRanges'](),_0x48f426)||_0x345e5a(_0x48f426,_0x38f839['getRanges']()))){for(const _0x383f7f of _0x48f426)_0x38f839['addRange'](_0x383f7f);return _0x38f839;}for(const {suggestion:_0x629fa1,meta:_0x3d641b}of this['_findSuggestions'](_0x48f426,'insertion')){if(!_0x3d641b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3d641b['containsRangeInObject'])continue;if(!Lt(_0x629fa1,_0x2ae616))continue;let _0x220cd6=!0x0;for(const _0x5d3d54 of _0x629fa1['getRanges']())for(const _0x24daf of _0x48f426)if(!_0x5d3d54['containsRange'](_0x24daf)){_0x220cd6=!0x1;break;}if(_0x220cd6)return _0x629fa1;}const _0x13f599=_0x25cdca(),_0x595e0c=_0x11cb7d['id'],_0x133a34='insertion:'+_0x4b9055,_0x44b0fc=this['_setSuggestionData']({'id':_0x13f599,'type':_0x133a34,'createdAt':new Date(),'authorId':_0x595e0c,'attributes':_0x2ae616});for(const _0x1c830f of _0x48f426)this['_addSuggestionMarker'](_0x133a34,_0x13f599,_0x595e0c,_0x1c830f,u['getMultiRangeId']());return _0x44b0fc;}['markInlineFormat'](_0x1fda12,_0x57e191,_0xdb6533=null,_0x5f5700={}){if(_0xdb6533=_0xdb6533||Vt(_0x57e191),_0x1fda12['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2a6444=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xdb6533,'accept');return this['forceDefaultExecution'](()=>_0x2a6444([_0x1fda12],_0x57e191,_0x5f5700)),null;}const _0x5ae6b3=this['editor']['plugins']['get']('Users')['me'],_0x666548=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x41e574,meta:_0x59a176}of this['_findSuggestions'](_0x1fda12,'insertion'))_0x59a176['isOwn']&&!_0x59a176['isInsideObject']&&_0x666548['push'](..._0x41e574['getRanges']());}const _0x160c93=function(_0x403d7e,_0x15844e){const _0x228ce7=[];for(const _0x2c285f of _0x15844e){const _0xaf49b7=_0x403d7e['getIntersection'](_0x2c285f);_0xaf49b7&&_0x228ce7['push'](_0xaf49b7);}return _0x228ce7;}(_0x1fda12,_0x666548),_0x2f51b7=function(_0x27f52f,_0x547f31){const _0x207af0=[_0x27f52f];for(const _0x5a0252 of _0x547f31){let _0x149200=0x0;for(;_0x149200<_0x207af0['length'];){const _0x232288=_0x207af0[_0x149200]['getDifference'](_0x5a0252);_0x207af0['splice'](_0x149200,0x1,..._0x232288),_0x149200+=_0x232288['length'];}}return _0x207af0;}(_0x1fda12,_0x666548);_0x160c93['length']&&this['_model']['change'](()=>{for(const _0x3acc61 of _0x160c93){const _0x57d7b7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xdb6533,'accept');this['forceDefaultExecution'](()=>_0x57d7b7([_0x3acc61],_0x57e191,_0x5f5700));}});for(const _0x16172f of _0x2f51b7){let _0x231fa6=null,_0x3d1cbc=_0x16172f['start'],_0x38398e=_0x16172f['end'];for(const {suggestion:_0x3f8ae2,meta:_0x3a50c9}of this['_findSuggestions'](_0x16172f,'formatInline')){if(!_0x3a50c9['isOwn'])continue;if(_0x3f8ae2['subType']!=_0xdb6533)continue;if(!Lt(_0x3f8ae2,_0x5f5700))continue;const _0x4a3bb3=_0x3f8ae2['getFirstRange']();if(_0x4a3bb3['containsRange'](_0x16172f,!0x0))return null;_0x3d1cbc=_0x3d1cbc['isBefore'](_0x4a3bb3['start'])?_0x3d1cbc:_0x4a3bb3['start'],_0x38398e=_0x38398e['isAfter'](_0x4a3bb3['end'])?_0x38398e:_0x4a3bb3['end'],_0x231fa6?_0x4a3bb3['start']['isBefore'](_0x231fa6['getFirstRange']()['start'])?(_0x231fa6['removeMarkers'](),_0x231fa6=_0x3f8ae2):_0x3f8ae2['removeMarkers']():_0x231fa6=_0x3f8ae2;}const _0x9171e9=this['_model']['createRange'](_0x3d1cbc,_0x38398e);if(_0x231fa6)this['_setSuggestionRange'](_0x231fa6,_0x9171e9);else{const _0x717b0e=_0x25cdca(),_0x1f3985=_0x5ae6b3['id'];this['_setSuggestionData']({'id':_0x717b0e,'type':'formatInline:'+_0xdb6533,'data':_0x57e191,'createdAt':new Date(),'authorId':_0x1f3985,'attributes':_0x5f5700}),this['_addSuggestionMarker']('formatInline:'+_0xdb6533,_0x717b0e,_0x1f3985,_0x9171e9);}}return null;}['markBlockFormat'](_0x27f53e,_0x309960,_0xb45e40=[],_0x488100=null,_0x44a74a={}){_0x309960['formatGroupId']||(_0x309960['formatGroupId']=_0x309960['commandName']),_0x309960['multipleBlocks']=_0x27f53e['is']('range'),_0x488100=_0x488100||Vt(_0x309960);const _0x4dc7b9=_0xb45e40['map'](_0x18bdd8=>Ft(_0x18bdd8,this['_model'])),_0x3fcfdc=_0x27f53e['is']('range')?_0x27f53e:Ft(_0x27f53e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x101465=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x488100,'accept');return this['forceDefaultExecution'](()=>_0x101465([_0x3fcfdc],_0x309960,_0x44a74a)),null;}_0x4dc7b9['push'](_0x3fcfdc);let _0x4c7330=!0x0;for(const _0x544c45 of _0x4dc7b9)if(!this['_rangeIsInLocalUserInsertion'](_0x544c45)){_0x4c7330=!0x1;break;}if(_0x4c7330&&'always'!==this['_trackFormatChanges']){const _0x2fea13=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x488100,'accept');return this['forceDefaultExecution'](()=>_0x2fea13([_0x3fcfdc],_0x309960,_0x44a74a)),null;}let _0x2f5d3f=null,_0x553380=_0x3fcfdc['start'],_0x5642f9=_0x3fcfdc['end'];for(const {suggestion:_0x372169,meta:_0x58fd66}of this['_findSuggestions'](_0x3fcfdc,'formatBlock')){if(!_0x58fd66['isOwn'])continue;if(_0x58fd66['isNextTo']||_0x58fd66['containsRangeInObject']||_0x58fd66['isInsideObject'])continue;if(_0x372169['data']['formatGroupId']!=_0x309960['formatGroupId'])continue;if(!Lt(_0x372169,_0x44a74a))continue;const _0x517a24=_0x372169['getFirstRange']();if(_0x372169['subType']==_0x488100){if(_0x517a24['containsRange'](_0x3fcfdc,!0x0))return null;_0x553380=_0x553380['isBefore'](_0x517a24['start'])?_0x553380:_0x517a24['start'],_0x5642f9=_0x5642f9['isAfter'](_0x517a24['end'])?_0x5642f9:_0x517a24['end'],_0x2f5d3f?_0x517a24['start']['isBefore'](_0x2f5d3f['getFirstRange']()['start'])?(_0x2f5d3f['removeMarkers'](),_0x2f5d3f=_0x372169):_0x372169['removeMarkers']():_0x2f5d3f=_0x372169;}else{const _0x117aea=_0x3fcfdc['getIntersection'](_0x517a24);this['_cutOutSuggestionMarker'](_0x372169,_0x117aea);}}const _0x786e75=this['editor']['plugins']['get']('Users')['me'],_0x4f7676=_0x25cdca(),_0x54691c=_0x786e75['id'];if(_0x2f5d3f)return this['_setSuggestionRange'](_0x2f5d3f,this['_model']['createRange'](_0x553380,_0x5642f9)),_0x2f5d3f;{const _0xba0a00=this['_setSuggestionData']({'id':_0x4f7676,'type':'formatBlock:'+_0x488100,'data':_0x309960,'createdAt':new Date(),'authorId':_0x54691c,'attributes':_0x44a74a});return this['_addSuggestionMarker']('formatBlock:'+_0x488100,_0x4f7676,_0x54691c,this['_model']['createRange'](_0x553380,_0x5642f9)),_0xba0a00;}}['markMultiRangeBlockFormat'](_0x2dc47a,_0x2acb38,_0x3bbf77=[],_0x39ce95=null,_0x5bf46b={}){_0x2acb38['formatGroupId']||(_0x2acb38['formatGroupId']=_0x2acb38['commandName']);const _0x38b7f7=_0x2dc47a[0x0];_0x2acb38['multipleBlocks']=_0x38b7f7['is']('range'),_0x39ce95=_0x39ce95||Vt(_0x2acb38);const _0xf0eb6a=_0x3bbf77['map'](_0x589570=>Ft(_0x589570,this['_model'])),_0x48d329=_0x38b7f7['is']('range')?_0x2dc47a:_0x2dc47a['map'](_0x264391=>Ft(_0x264391,this['_model']));if('never'===this['_trackFormatChanges']){const _0x173c9d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x39ce95,'accept');return this['forceDefaultExecution'](()=>_0x173c9d(_0x48d329,_0x2acb38,_0x5bf46b)),null;}_0xf0eb6a['push'](..._0x48d329);let _0x103786=!0x0;for(const _0x22b50f of _0xf0eb6a)if(!this['_rangeIsInLocalUserInsertion'](_0x22b50f)){_0x103786=!0x1;break;}if(_0x103786&&'always'!==this['_trackFormatChanges']){const _0x431142=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x39ce95,'accept');return this['forceDefaultExecution'](()=>_0x431142(_0x48d329,_0x2acb38,_0x5bf46b)),null;}const _0x4797d0=this['editor']['plugins']['get']('Users')['me'];for(const _0x5601e0 of this['getSuggestions']()){if(_0x5601e0['author']['id']!=_0x4797d0['id'])continue;if('formatBlock'!=_0x5601e0['type']||_0x5601e0['data']['formatGroupId']!=_0x2acb38['formatGroupId'])continue;if(!Lt(_0x5601e0,_0x5bf46b))continue;const _0x166eeb=_0x5601e0['subType']==_0x39ce95;for(let _0x2ddeb8=0x0;_0x2ddeb8<_0x48d329['length'];_0x2ddeb8++){const _0x2d003a=_0x48d329[_0x2ddeb8];for(const _0x5a6f9c of _0x5601e0['getMarkers']()){const _0x52f986=_0x5a6f9c['getRange']();if(_0x2d003a['isEqual'](_0x52f986)){_0x166eeb?(_0x48d329['splice'](_0x2ddeb8,0x1),_0x2ddeb8--):_0x5601e0['removeMarker'](_0x5a6f9c['name']);break;}}}}if(0x0==_0x48d329['length'])return null;const _0x51333f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x39ce95,'join');for(const _0x130a66 of this['getSuggestions']())if(_0x130a66['author']['id']==_0x4797d0['id']&&'formatBlock'==_0x130a66['type']&&_0x130a66['data']['formatGroupId']==_0x2acb38['formatGroupId']&&_0x130a66['subType']==_0x39ce95&&Lt(_0x130a66,_0x5bf46b)&&(_0x51333f(_0x130a66['getRanges'](),_0x48d329)||_0x51333f(_0x48d329,_0x130a66['getRanges']()))){for(const _0x524f52 of _0x48d329)_0x130a66['addRange'](_0x524f52);return _0x130a66;}const _0x5d553c=_0x25cdca(),_0x1bcd65=_0x4797d0['id'],_0x1d16bf='formatBlock:'+_0x39ce95,_0x5d628c=this['_setSuggestionData']({'id':_0x5d553c,'type':_0x1d16bf,'data':_0x2acb38,'createdAt':new Date(),'authorId':_0x1bcd65,'attributes':_0x5bf46b});for(const _0x2594bf of _0x48d329)this['_addSuggestionMarker'](_0x1d16bf,_0x5d553c,_0x1bcd65,_0x2594bf,u['getMultiRangeId']());return _0x5d628c;}['markDeletion'](_0x807542,_0x1993a0=null,_0xbde05b={}){if(_0x807542['isCollapsed'])return null;const _0x40abad=this['editor']['plugins']['get']('Users')['me'],_0x9fbb4c=new _0x137881(_0x807542['start'],_0x807542['end']);for(const {suggestion:_0x342d64,meta:_0x5111cc}of this['_findSuggestions'](_0x9fbb4c,'insertion'))if(_0x5111cc['isOwn']&&!_0x5111cc['isNextTo']){if(_0x342d64['isMultiRange']){const _0x49b772=_0x342d64['getRanges']()['filter'](_0x4fe552=>'$graveyard'!=_0x4fe552['root']['rootName']);_0x49b772['every'](_0x227bf3=>_0x9fbb4c['containsRange'](_0x227bf3,!0x0))&&_0x342d64['discard']();if(_0x49b772['some'](_0x35544a=>_0x35544a['containsRange'](_0x9fbb4c,!0x0))){const _0xb07d24=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1993a0,'accept');return this['forceDefaultExecution'](()=>_0xb07d24([_0x9fbb4c],null,_0xbde05b)),null;}}else{const _0x309e78=_0x9fbb4c['getIntersection'](_0x342d64['getFirstRange']());null!==_0x309e78&&_0x342d64['_onDiscard']([_0x309e78],null,_0xbde05b);}}if(_0x9fbb4c['detach'](),_0x9fbb4c['isCollapsed']||'$graveyard'==_0x9fbb4c['root']['rootName'])return null;let _0x393b5f=null,_0x39442d=_0x9fbb4c['start'],_0x80c463=_0x9fbb4c['end'];const _0x44e058=this['_findSuggestions'](_0x9fbb4c,'deletion');for(const {suggestion:_0x201d24,meta:_0x2c5491}of _0x44e058){const _0x196390=this['_model']['createRange'](_0x39442d,_0x80c463);if(_0x2c5491['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c5491['containsRangeInObject']&&!_0x2c5491['isInsideObject'])){if(_0x201d24['isMultiRange']){if(!Lt(_0x201d24,_0xbde05b))continue;let _0x254f17=!0x0;for(const _0x103471 of _0x201d24['getRanges']()){if(_0x103471['containsRange'](_0x196390,!0x0))return _0x201d24;_0x196390['containsRange'](_0x103471)||(_0x254f17=!0x1);}_0x254f17&&_0x201d24['discard']();}else{const _0x561c5c=_0x201d24['getFirstRange']();if(_0x561c5c['containsRange'](_0x196390,!0x0))return _0x201d24;if(!Lt(_0x201d24,_0xbde05b)){_0x196390['containsRange'](_0x561c5c)?_0x201d24['removeMarkers']():_0x561c5c['containsPosition'](_0x39442d)?_0x39442d=_0x561c5c['end']:_0x561c5c['containsPosition'](_0x80c463)&&(_0x80c463=_0x561c5c['start']);continue;}_0x39442d=_0x39442d['isBefore'](_0x561c5c['start'])?_0x39442d:_0x561c5c['start'],_0x80c463=_0x80c463['isAfter'](_0x561c5c['end'])?_0x80c463:_0x561c5c['end'],_0xbde05b=Object['assign']({},_0x201d24['attributes']),_0x393b5f?_0x561c5c['start']['isBefore'](_0x393b5f['getFirstRange']()['start'])?(_0x393b5f['removeMarkers'](),_0x393b5f=_0x201d24):_0x201d24['removeMarkers']():_0x393b5f=_0x201d24;}}}if(_0x393b5f)return this['_setSuggestionRange'](_0x393b5f,this['_model']['createRange'](_0x39442d,_0x80c463)),_0x393b5f;{const _0xa660b7=_0x25cdca(),_0xfba909=this['_model']['createRange'](_0x39442d,_0x80c463),_0x2aa721=_0x40abad['id'],_0x2ebf6a=_0x1993a0?'deletion:'+_0x1993a0:'deletion',_0x24e98e=this['_setSuggestionData']({'id':_0xa660b7,'type':_0x2ebf6a,'createdAt':new Date(),'authorId':_0x2aa721,'attributes':_0xbde05b});return this['_addSuggestionMarker'](_0x2ebf6a,_0xa660b7,_0x2aa721,_0xfba909),_0x24e98e;}}['markMultiRangeDeletion'](_0x210d5e,_0x5e64ff='multi',_0x49e8a0={}){const _0x4baa96=this['editor']['plugins']['get']('Users')['me'],_0x455ad2=_0x210d5e['map'](_0x38031c=>new _0x137881(_0x38031c['start'],_0x38031c['end'])),_0x585121=new Set();for(const {suggestion:_0x95c413,meta:_0x2526d6}of this['_findSuggestions'](_0x455ad2,'insertion'))_0x2526d6['isOwn']&&!_0x2526d6['isNextTo']&&_0x585121['add'](_0x95c413);for(const _0x665069 of _0x585121)if(_0x665069['isMultiRange']){const _0x4b2553=_0x665069['getRanges']();(!_0x665069['attributes']||!_0x665069['attributes']['skipNestingCheck'])&&(_0x4b2553['every'](_0x33af17=>_0x455ad2['some'](_0x3a3f00=>_0x3a3f00['containsRange'](_0x33af17,!0x0)))&&_0x665069['discard']());if(_0x455ad2['every'](_0x25c937=>_0x4b2553['some'](_0x3c04e0=>_0x3c04e0['containsRange'](_0x25c937,!0x0)))){const _0x42a4f3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e64ff,'accept');return this['forceDefaultExecution'](()=>_0x42a4f3(_0x210d5e,null,_0x49e8a0)),null;}}else{const _0x479eb6=_0x665069['getFirstRange']();_0x455ad2['some'](_0xfc5a02=>_0xfc5a02['containsRange'](_0x479eb6,!0x0))&&_0x665069['discard']();if(_0x455ad2['every'](_0x12108c=>_0x479eb6['containsRange'](_0x12108c,!0x0))){const _0x66724=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e64ff,'accept');return this['forceDefaultExecution'](()=>_0x66724(_0x455ad2,null,_0x49e8a0)),null;}}const _0x43ea19=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e64ff,'join');let _0x37e6bf=null;for(const _0x2d8257 of this['getSuggestions']())if(_0x2d8257['author']['id']==_0x4baa96['id']&&_0x2d8257['isInContent']&&'deletion'==_0x2d8257['type']&&_0x2d8257['subType']==_0x5e64ff&&Lt(_0x2d8257,_0x49e8a0)&&(_0x43ea19(_0x2d8257['getRanges'](),_0x455ad2)||_0x43ea19(_0x455ad2,_0x2d8257['getRanges']()))){if(_0x37e6bf){if(_0x2d8257['commentThread']&&_0x2d8257['commentThread']['length'])continue;for(const _0x240b8e of _0x2d8257['getRanges']())_0x37e6bf['isIntersectingWithRange'](_0x240b8e)||_0x37e6bf['addRange'](_0x240b8e);_0x2d8257['removeMarkers']();}else{_0x37e6bf=_0x2d8257;for(const _0x12fd2c of _0x455ad2)_0x2d8257['isIntersectingWithRange'](_0x12fd2c)||_0x2d8257['addRange'](_0x12fd2c);}}if(_0x37e6bf)return _0x37e6bf;_0x585121['clear']();for(const {suggestion:_0x439c21,meta:_0x1be5ff}of this['_findSuggestions'](_0x455ad2,'deletion'))_0x1be5ff['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1be5ff['containsRangeInObject']&&!_0x1be5ff['isInsideObject'])&&Lt(_0x439c21,_0x49e8a0)&&_0x585121['add'](_0x439c21);for(const _0x26533e of _0x585121){const _0x17acd0=_0x26533e['getRanges']();if(!_0x49e8a0||!_0x49e8a0['skipNestingCheck']){if(_0x455ad2['every'](_0x19cc4d=>_0x17acd0['some'](_0x5a0671=>_0x5a0671['containsRange'](_0x19cc4d,!0x0))))return _0x26533e;}(!_0x26533e['attributes']||!_0x26533e['attributes']['skipNestingCheck'])&&(_0x17acd0['every'](_0x2bc1d8=>_0x455ad2['some'](_0x123471=>_0x123471['containsRange'](_0x2bc1d8,!0x0)))&&_0x26533e['discard']());}const _0x5915c6=_0x25cdca(),_0x5850f1=_0x4baa96['id'],_0x3bfb36='deletion:'+_0x5e64ff,_0x4605a6=this['_setSuggestionData']({'id':_0x5915c6,'type':_0x3bfb36,'createdAt':new Date(),'authorId':_0x5850f1,'attributes':_0x49e8a0});for(const _0xf58816 of _0x455ad2)_0xf58816['detach'](),_0xf58816['isCollapsed']||'$graveyard'==_0xf58816['root']['rootName']||this['_addSuggestionMarker'](_0x3bfb36,_0x5915c6,_0x5850f1,_0xf58816,u['getMultiRangeId']());return _0x4605a6;}['markAttributeChange'](_0xca922,_0x34f1bf,_0x1c85a8,_0x55558a,_0x1c9b7f){if(_0xca922['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5711e6=this['editor']['plugins']['get']('Users')['me']['id'],_0x50d63a=Array['from'](this['_suggestions']['values']())['filter'](_0x2090ef=>'attribute'==_0x2090ef['type']&&_0x2090ef['data']['key']==_0x34f1bf&&_0x2090ef['isIntersectingWithRange'](_0xca922));if('default'===this['_trackFormatChanges']){const _0x5a030b=this['_findSuggestions'](_0xca922,'insertion')['filter'](({meta:_0x334fdf})=>_0x334fdf['isOwn']&&!_0x334fdf['isInsideObject']&&!_0x334fdf['isNextTo'])['map'](({suggestion:_0x4bdc5f})=>_0x4bdc5f);_0x50d63a['unshift'](..._0x5a030b);}const _0x10a2f8=new Map([[_0xca922,_0x1c85a8]]);for(const _0x126b25 of _0x50d63a){const _0x3cb890='attribute'==_0x126b25['type']?_0x126b25['data']['oldValue']:void 0x0,_0x4cf481=_0x126b25['getFirstRange'](),_0x67d81b=Array['from'](_0x10a2f8['keys']())['find'](_0x3eaa43=>_0x3eaa43['isIntersecting'](_0x4cf481));if(!_0x67d81b)continue;const _0x4810bf=_0x67d81b['getDifference'](_0x4cf481);this['_isBlockAttribute'](_0x34f1bf)&&'insertion'==_0x126b25['type']&&0x0!=_0x4810bf['length']||(_0x10a2f8['delete'](_0x67d81b),_0x4810bf['forEach'](_0x2f1814=>{_0x10a2f8['set'](_0x2f1814,_0x1c85a8);}),'insertion'!=_0x126b25['type']&&_0x3cb890!=_0x55558a&&_0x10a2f8['set'](_0x67d81b['getIntersection'](_0x4cf481),_0x3cb890));}const _0x1a1cc=[];for(const [_0x2e9c64,_0x3b4c4d]of _0x10a2f8){const _0x357c64=_0x25cdca(),_0x3ae858={'key':_0x34f1bf,'oldValue':_0x3b4c4d,'newValue':_0x55558a};_0x34f1bf['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':_0x34f1bf});const _0x278482=('attribute:'+(_0x34f1bf+'|'+Vt({'newValue':_0x55558a})))['substring'](0x0,0x3c),_0x1f222a=this['_setSuggestionData']({'id':_0x357c64,'type':_0x278482,'data':_0x3ae858,'createdAt':new Date(),'authorId':_0x5711e6,'attributes':_0x1c9b7f});_0x1a1cc['push'](_0x1f222a),this['_addSuggestionMarker'](_0x278482,_0x357c64,_0x5711e6,_0x2e9c64);}return _0x1a1cc;}['enableDefaultAttributesIntegration'](_0x4860ff){this['enableCommand'](_0x4860ff,(_0x1844ea,..._0x3e8784)=>{this['_recordAttributeChanges'](()=>{_0x1844ea(..._0x3e8784);});});}['registerBlockAttribute'](_0x364153){this['_blockAttributeKeys']['add'](_0x364153);}['registerInlineAttribute'](_0x432654){this['_inlineAttributeKeys']['add'](_0x432654);}['_getAttributeKey'](_0x182a84){return'attribute'==_0x182a84['type']?_0x182a84['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x218b89,_0x50a940){const _0xb9bcbe=_0x218b89['getFirstMarker']();this['_model']['change'](_0x2c942c=>{_0x2c942c['updateMarker'](_0xb9bcbe,{'range':_0x50a940});});}['_addThreadToSuggestion'](_0x4c2d61){const _0x45bd13=_0x4c2d61['id'],_0x5c62b3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x45bd13)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5c62b3,'threadId':_0x45bd13,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f4c26=this['_commentsRepository']['getCommentThread'](_0x45bd13);_0x1f4c26['unbind']('isRemovable'),_0x1f4c26['isRemovable']=!0x1,_0x4c2d61['commentThread']=_0x1f4c26;}['_checkSuggestionCorrectness'](_0x4003ad,_0x23e5bf,_0x19b85e,_0x196084){if(_0x4003ad['type']!=_0x23e5bf||_0x4003ad['subType']!=_0x19b85e||_0x4003ad['creator']['id']!=_0x196084)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c1713('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3cd8fe,_0x555f46){const _0x35d55c=_0x3cd8fe['getFirstRange']();if(_0x555f46['isEqual'](_0x35d55c))_0x3cd8fe['removeMarkers']();else{if(_0x35d55c['containsRange'](_0x555f46)){const _0x29a351=this['_model']['createPositionAt'](_0x555f46['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3cd8fe,this['_model']['createRange'](_0x35d55c['start'],_0x29a351));const _0x15e47d=_0x25cdca(),_0x3bacf1=_0x3cd8fe['creator']['id'],_0x5e4957=_0x3cd8fe['type']+':'+_0x3cd8fe['subType'];this['_setSuggestionData']({'id':_0x15e47d,'type':_0x5e4957,'createdAt':new Date(),'authorId':_0x3bacf1,'data':_0x3cd8fe['data'],'attributes':_0x3cd8fe['attributes']});const _0x4d7acf=this['_model']['createPositionAt'](_0x555f46['end']['parent'],'after'),_0x7d64d4=this['_model']['createRange'](_0x4d7acf,_0x35d55c['end']);this['_addSuggestionMarker'](_0x5e4957,_0x15e47d,_0x3bacf1,_0x7d64d4);}else{if(_0x35d55c['containsPosition'](_0x555f46['start'])){const _0x1f2ed1=this['_model']['createPositionAt'](_0x555f46['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3cd8fe,this['_model']['createRange'](_0x35d55c['start'],_0x1f2ed1));}else{const _0x17d67a=this['_model']['createPositionAt'](_0x555f46['end']['parent'],'after');this['_setSuggestionRange'](_0x3cd8fe,this['_model']['createRange'](_0x17d67a,_0x35d55c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3b445e){for(const {suggestion:_0x29d3d4,meta:_0x46e786}of this['_findSuggestions'](_0x3b445e,'insertion')){if(!_0x46e786['isOwn'])continue;const _0x49d1c7=_0x29d3d4['getRanges']();for(const _0x3906ed of _0x49d1c7)if(!_0x3b445e['getDifference'](_0x3906ed)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x218b60){const _0x114837=this['editor']['plugins']['get']('Users')['getUser'](_0x218b60);if(!_0x114837)throw new _0x1c1713('track-changes-user-not-found',this);return _0x114837;}['_getExternalAuthor'](_0x3b24fe){const _0x2d5d32=this['editor']['plugins']['get']('Users'),_0x33732c=_0x30ea72('external:'+_0x3b24fe),_0x132788=_0x2d5d32['getUser'](_0x33732c);return _0x132788||_0x2d5d32['addUser']({'id':_0x33732c,'name':_0x3b24fe});}['_createSuggestion'](_0x3e9f95,_0x439b55,_0x4c4421,_0x4f0caa,_0x1ec678){const _0x520fb6=this['_getAuthorFromId'](_0x4f0caa),_0x267642=this['_suggestionFactory']['buildSuggestion'](_0x3e9f95,_0x439b55,_0x4c4421,_0x520fb6,_0x1ec678,_0x352cb4=>{this['_updateSuggestionData'](_0x4c4421,{'attributes':_0x352cb4});const _0x180d08=this['getSuggestion'](_0x4c4421);this['_joinWithAdjacentSuggestions'](new Set([_0x180d08])),this['_refreshSuggestionsChain'](new Set([_0x180d08]));});return this['listenTo'](_0x267642,'accept',()=>{this['_updateSuggestionData'](_0x4c4421,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x267642,'discard',()=>{this['_updateSuggestionData'](_0x4c4421,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4c4421,_0x267642),this['_suggestionState']['set'](_0x267642,'notReady'),_0x267642;}['_splitMarkerName'](_0x4f8e48){const _0x44e5f9=_0x4f8e48['split'](':');return{'group':_0x44e5f9[0x0],'type':_0x44e5f9[0x1],'subType':_0x44e5f9['length']>=0x5?_0x44e5f9[0x2]:null,'id':_0x44e5f9['length']<0x5?_0x44e5f9[0x2]:_0x44e5f9[0x3],'authorId':_0x44e5f9['length']<0x5?_0x44e5f9[0x3]:_0x44e5f9[0x4],'markerCount':0x6==_0x44e5f9['length']?_0x44e5f9[0x5]:null};}['_breakSuggestionMarker'](_0x2bd162,_0x211829,_0x52df06){const _0x31449f=_0x2bd162['getFirstRange'](),_0x2a5860=_0x31449f['start'],_0x2d9a01=_0x31449f['end'];this['_setSuggestionRange'](_0x2bd162,this['_model']['createRange'](_0x2a5860,_0x211829));const _0x2eb98b=_0x25cdca(),_0x3e7b41=_0x2bd162['creator']['id'],_0x1aff77=_0x2bd162['type']+(_0x2bd162['subType']?':'+_0x2bd162['subType']:'');this['_setSuggestionData']({'id':_0x2eb98b,'type':_0x1aff77,'createdAt':new Date(),'authorId':_0x3e7b41,'originalSuggestionId':_0x2bd162['id'],'attributes':_0x2bd162['attributes'],'data':_0x2bd162['data']});const _0x2a22b6=this['_getAttributeKey'](_0x2bd162);('formatBlock'==_0x2bd162['type']||_0x2a22b6&&this['_isBlockAttribute'](_0x2a22b6))&&(_0x52df06=this['_model']['createPositionBefore'](_0x52df06['parent'])),this['_addSuggestionMarker'](_0x1aff77,_0x2eb98b,_0x3e7b41,this['_model']['createRange'](_0x52df06,_0x2d9a01));}['_findSuggestions'](_0x4056af,_0x273e70=null){const _0x3d59f1=[],_0x370c3b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4056af)||(_0x4056af=[_0x4056af]);for(const _0x45fa89 of this['getSuggestions']()){if(!_0x45fa89['isInContent'])continue;if(_0x273e70&&_0x45fa89['type']!=_0x273e70)continue;let _0x58f1a4=!0x1;for(const _0x11b0ca of _0x45fa89['getRanges']()){for(const _0x178182 of _0x4056af){const _0x357a05=_0x178182['start']['isEqual'](_0x11b0ca['end'])||_0x178182['end']['isEqual'](_0x11b0ca['start']);if(_0x357a05||_0x178182['getIntersection'](_0x11b0ca)){const _0x54772a=_0x178182['containsRange'](_0x11b0ca)&&Rt(this['_model']['schema'],_0x11b0ca['start'],_0x178182),_0x395997=_0x11b0ca['containsRange'](_0x178182)&&Rt(this['_model']['schema'],_0x178182['start'],_0x11b0ca);_0x3d59f1['push']({'suggestion':_0x45fa89,'meta':{'isOwn':_0x370c3b==_0x45fa89['author'],'isNextTo':_0x357a05,'isInsideObject':_0x54772a,'containsRangeInObject':_0x395997}}),_0x58f1a4=!0x0;break;}}if(_0x58f1a4)break;}}return _0x3d59f1;}['_addSuggestionMarker'](_0x39cc85,_0x21dc55,_0x4a1cbd,_0xef1137,_0x38180f){this['_model']['change'](_0x58e513=>{let _0x13c216='suggestion:'+_0x39cc85+':'+_0x21dc55+':'+_0x4a1cbd;_0x38180f&&(_0x13c216=_0x13c216+':'+_0x38180f),_0x58e513['addMarker'](_0x13c216,{'range':_0xef1137,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2d45c4){const _0x276a93=_0x2d45c4['previous'],_0x4f3819=_0x2d45c4['next'];_0x2d45c4['previous']=null,_0x2d45c4['next']=null,null!=_0x276a93&&_0x276a93['next']==_0x2d45c4&&(_0x276a93['next']=_0x4f3819),null!=_0x4f3819&&_0x4f3819['previous']==_0x2d45c4&&(_0x4f3819['previous']=_0x276a93),'ready'==this['_suggestionState']['get'](_0x2d45c4)&&(this['_suggestionState']['set'](_0x2d45c4,'removed'),this['fire']('suggestionUnloaded',_0x2d45c4,_0x276a93,_0x4f3819));}['_setSuggestionData'](_0x53b6b6){const _0x548204=_0x53b6b6['id'],_0x24bc49=this['addSuggestionData'](_0x53b6b6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x365de4=this['editor']['plugins']['get']('PendingActions'),_0x5528a9=_0x24bc49['hasComments'],_0x5586ce=_0x24bc49['subType']?_0x24bc49['type']+':'+_0x24bc49['subType']:_0x24bc49['type'],_0x14f317=this['editor']['locale'],_0x585d53=_0x365de4['add'](o(_0x14f317,'PENDING_ACTION_SUGGESTION')),_0x2af26b={'id':_0x548204,'type':_0x5586ce,'hasComments':_0x5528a9,'data':_0x53b6b6['data']||null,'originalSuggestionId':_0x53b6b6['originalSuggestionId']||null,'attributes':_0x24bc49['attributes']};this['_adapter']['addSuggestion'](_0x2af26b)['then'](_0x13b17b=>{_0x24bc49['_saved']=!0x0,_0x365de4['remove'](_0x585d53),_0x13b17b&&_0x13b17b['createdAt']&&(this['_suggestions']['get'](_0x548204)['createdAt']=_0x13b17b['createdAt']);})['catch'](_0x423828=>{throw _0x350ef1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x24bc49['discard']();}),_0x24bc49['stopListening'](),this['_suggestions']['delete'](_0x24bc49['id']),this['_suggestionState']['delete'](_0x24bc49),_0x423828;});}return _0x24bc49;}['_isBlockAttribute'](_0x28555e){return this['_blockAttributeKeys']['has'](_0x28555e);}['_updateSuggestionData'](_0x2169f6,_0x4c7a32){const _0x205f9c=this['editor']['plugins']['get']('PendingActions'),_0x1d31e3=this['getSuggestion'](_0x2169f6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d31e3['_saved']){const _0x1ef61e=_0x205f9c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2169f6,_0x4c7a32)['then'](()=>{_0x205f9c['remove'](_0x1ef61e);});}else _0x1d31e3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2169f6,_0x4c7a32);});}}['_getSuggestionData'](_0x3eac1a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c1713('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3eac1a);}['_handleNewSuggestionMarker'](_0x46e656){const {id:_0x5ded13,type:_0xa4b442,subType:_0x261433,authorId:_0x484f8c}=this['_splitMarkerName'](_0x46e656),_0x16a4af=this['_suggestions']['get'](_0x5ded13)||this['_createSuggestion'](_0xa4b442,_0x261433,_0x5ded13,_0x484f8c,{});switch(this['_checkSuggestionCorrectness'](_0x16a4af,_0xa4b442,_0x261433,_0x484f8c),this['_suggestionState']['get'](_0x16a4af)){case'notReady':this['_getSuggestionData'](_0x5ded13)['then'](_0x3801ce=>{let _0x360b40=Promise['resolve']();_0x3801ce['hasComments']&&(_0x360b40=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5ded13})),_0x360b40['then'](()=>{this['addSuggestionData'](_0x3801ce)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x16a4af,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5ded13,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x16a4af,'ready'),this['fire']('suggestionLoaded',_0x16a4af);break;case'ready':this['fire']('suggestionChanged',_0x16a4af);}return _0x16a4af['addMarkerName'](_0x46e656),_0x16a4af;}['_refreshSuggestionsChain'](_0x39296a){const _0x366228=Array['from'](_0x39296a),_0xf230e8=_0x366228['filter'](_0x3539a4=>'attribute'==_0x3539a4['type']);this['_refreshAttributeSuggestionsChain'](_0xf230e8);const _0x286c6b=_0x366228['filter'](_0x223a65=>!_0x223a65['isMultiRange']&&'attribute'!=_0x223a65['type']),_0x742e7a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17ddc0=>!_0x17ddc0['isMultiRange']&&'attribute'!=_0x17ddc0['type']),_0x145768=_0x742e7a['filter'](_0x57345e=>!_0x39296a['has'](_0x57345e)),_0xb8b6a8=new Map(_0x742e7a['map'](_0x411648=>[_0x411648,this['_suggestionFactory']['getSuggestionCallback'](_0x411648['type'],_0x411648['subType'],'chain')])),_0x1c3c56=new Map(_0x742e7a['map'](_0x23d2f8=>[_0x23d2f8,_0x23d2f8['getFirstRange']()])),_0x3d0a33=new Set(),_0x14a665=new Set();for(let _0x985423=0x0;_0x985423<_0x286c6b['length'];_0x985423++)_0x3fc365(_0x286c6b[_0x985423],_0x286c6b,_0x985423+0x1);for(let _0x590e5f=0x0;_0x590e5f<_0x286c6b['length'];_0x590e5f++)_0x3fc365(_0x286c6b[_0x590e5f],_0x145768,0x0);const _0x12dda8=new Set();for(let _0x4a5afe=0x0;_0x4a5afe<_0x286c6b['length'];_0x4a5afe++){const _0x55bdc2=_0x286c6b[_0x4a5afe];!_0x14a665['has'](_0x55bdc2)&&_0x55bdc2['previous']&&(_0x12dda8['add'](_0x55bdc2['previous']),_0x55bdc2['previous']['next']===_0x55bdc2&&(_0x55bdc2['previous']['next']=null),_0x55bdc2['previous']=null),!_0x3d0a33['has'](_0x55bdc2)&&_0x55bdc2['next']&&(_0x12dda8['add'](_0x55bdc2['next']),_0x55bdc2['next']['previous']===_0x55bdc2&&(_0x55bdc2['next']['previous']=null),_0x55bdc2['next']=null);}function _0x3fc365(_0x3411a3,_0x46dce5,_0x1a24ef){for(let _0x40231a=_0x1a24ef;_0x40231a<_0x46dce5['length'];_0x40231a++){const _0x29cc17=_0x16a656(_0x3411a3,_0x46dce5[_0x40231a]);_0x29cc17&&(_0x29cc17[0x0]['next']=_0x29cc17[0x1],_0x29cc17[0x1]['previous']=_0x29cc17[0x0],_0x3d0a33['add'](_0x29cc17[0x0]),_0x14a665['add'](_0x29cc17[0x1]));}}function _0x16a656(_0x521b9e,_0x2e8888){if(_0x521b9e['author']['id']!==_0x2e8888['author']['id'])return null;const _0x5c061e=_0xb8b6a8['get'](_0x521b9e)(_0x521b9e,_0x2e8888,_0x1c3c56['get'](_0x521b9e),_0x1c3c56['get'](_0x2e8888));if(!_0x5c061e)return null;return _0xb8b6a8['get'](_0x2e8888)(_0x521b9e,_0x2e8888,_0x1c3c56['get'](_0x521b9e),_0x1c3c56['get'](_0x2e8888))?_0x5c061e[0x1]['commentThread']&&_0x5c061e[0x1]['commentThread']['length']?null:_0x5c061e:null;}_0x12dda8['size']&&this['_refreshSuggestionsChain'](_0x12dda8);}['_refreshAttributeSuggestionsChain'](_0x282c3e){if(0x0==_0x282c3e['length'])return;const _0x2e3867=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x300a23=>'attribute'==_0x300a23['type']&&_0x300a23['_isDataLoaded']),_0x234aed=[],_0x452b51=new Map();for(const _0x25f668 of _0x2e3867){const _0x53beca=_0x30ea72(_0x25f668['attributes']);_0x452b51['has'](_0x53beca)||(_0x452b51['set'](_0x53beca,_0x234aed['length']),_0x234aed['push']([]));const _0x4aec52=_0x452b51['get'](_0x53beca);_0x234aed[_0x4aec52]['push'](_0x25f668);}!(function(){_0x234aed['sort']((_0x3605ee,_0x313063)=>{const _0x4db210=_0x3605ee[0x0]['createdAt'],_0x26f58f=_0x313063[0x0]['createdAt'];return _0x4db210==_0x26f58f?_0x3605ee[0x0]['attributes']['groupId']<_0x313063[0x0]['attributes']['groupId']?-0x1:0x1:_0x4db210<_0x26f58f?-0x1:0x1;});for(const _0x50efa9 of _0x234aed)_0x50efa9['sort']((_0x36a63a,_0x45d3bd)=>_0x36a63a['id']<_0x45d3bd['id']?-0x1:0x1);}());for(let _0x179639=0x0;_0x179639<_0x234aed['length'];_0x179639++){if(0x0==_0x234aed[_0x179639]['length'])continue;const _0x23142a=[];for(let _0x1c8360=_0x179639+0x1;_0x1c8360<_0x234aed['length'];_0x1c8360++)0x0!=_0x234aed[_0x1c8360]['length']&&_0xd8a99f(_0x234aed[_0x179639],_0x234aed[_0x1c8360])&&_0x23142a['push'](_0x1c8360);for(const _0x3d013c of _0x23142a)_0x234aed[_0x179639]=_0x234aed[_0x179639]['concat'](_0x234aed[_0x3d013c]),_0x234aed[_0x3d013c]=[];}for(const _0x3091dc of _0x234aed)for(let _0x8eab9b=0x0;_0x8eab9b<_0x3091dc['length'];_0x8eab9b++)_0x3091dc[_0x8eab9b]['next']=_0x3091dc[_0x8eab9b+0x1]||null;for(const _0x14a87e of _0x234aed)for(let _0x388afd=0x0;_0x388afd<_0x14a87e['length'];_0x388afd++)_0x14a87e[_0x388afd]['previous']=_0x14a87e[_0x388afd-0x1]||null;function _0xd8a99f(_0x2caf2f,_0x3c09a0){if(_0x2caf2f[0x0]['attributes']['groupId']!==_0x3c09a0[0x0]['attributes']['groupId']&&_0x2caf2f[0x0]['author']!==_0x3c09a0[0x0]['author'])return!0x1;if(!function(_0x22e036,_0x16f0c8){if(!_0x22e036['hasComments']&&!_0x16f0c8['hasComments'])return!0x0;if(_0x22e036['hasComments']&&_0x16f0c8['hasComments'])return!0x1;if(_0x22e036['hasComments']&&_0x16f0c8['createdAt']<_0x22e036['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x16f0c8['hasComments']&&_0x22e036['createdAt']<_0x16f0c8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2caf2f[0x0],_0x3c09a0[0x0]))return!0x1;const _0x51c46d=Bt(_0x2caf2f[0x0]['attributes'],'groupId'),_0x3c62a6=Bt(_0x3c09a0[0x0]['attributes'],'groupId');if(!_0x1bbed5(_0x51c46d,_0x3c62a6))return!0x1;return!!_0x2caf2f['every'](_0x345883=>_0x3c09a0['some'](_0x3f3733=>_0x345883['getFirstRange']()['isEqual'](_0x3f3733['getFirstRange']())))&&_0x3c09a0['every'](_0x3f4d42=>_0x2caf2f['some'](_0x460cd9=>_0x3f4d42['getFirstRange']()['isEqual'](_0x460cd9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x46d47b){const _0x47729e=Array['from'](_0x46d47b),_0x341442=this['getSuggestions']({'skipNotAttached':!0x0}),_0x7eb46c=_0x341442['filter'](_0x511f3c=>!_0x46d47b['has'](_0x511f3c)),_0x3622d3=new Map(_0x47729e['map'](_0x383878=>[_0x383878,this['_suggestionFactory']['getSuggestionCallback'](_0x383878['type'],_0x383878['subType'],'join')])),_0x5b15b4=new Map(_0x341442['map'](_0x27954e=>[_0x27954e,_0x27954e['getRanges']()]));for(let _0x3bbb00=0x0;_0x3bbb00<_0x47729e['length'];_0x3bbb00++){if(_0x278430(this,_0x47729e[_0x3bbb00],_0x47729e,_0x3bbb00+0x1))return!0x0;}for(let _0x3d7e17=0x0;_0x3d7e17<_0x47729e['length'];_0x3d7e17++){if(_0x278430(this,_0x47729e[_0x3d7e17],_0x7eb46c,0x0))return!0x0;}return!0x1;function _0x278430(_0x67f874,_0xb9680,_0x1c4d89,_0x423a3c){for(let _0x4e7972=_0x423a3c;_0x4e7972<_0x1c4d89['length'];_0x4e7972++){const _0x567757=_0x1c4d89[_0x4e7972];if(_0x567757['type']!==_0xb9680['type']||_0x567757['author']['id']!==_0xb9680['author']['id']||_0x567757['subType']!==_0xb9680['subType'])continue;if(!Pt(_0xb9680,_0x567757,['groupId']))continue;if('attribute'==_0xb9680['type']&&_0xb9680['data']['oldValue']!=_0x567757['data']['oldValue'])continue;if('attribute'==_0xb9680['type']&&_0x67f874['_isBlockAttribute'](_0xb9680['data']['key']))continue;if('formatBlock'==_0xb9680['type']){const _0x337e0b=_0x67f874['editor']['model'],_0x1f5dfd=_0xb9680['getContainedElement']();if(_0x1f5dfd&&(_0x337e0b['schema']['isObject'](_0x1f5dfd)||_0x337e0b['schema']['isLimit'](_0x1f5dfd)))continue;}const _0x50199a=_0x3622d3['get'](_0xb9680),_0x4bc826=_0x5b15b4['get'](_0xb9680),_0x22394c=_0x5b15b4['get'](_0x567757),_0x2cca58=_0xb9680['commentThread']&&_0xb9680['commentThread']['length'],_0x1f1679=_0x567757['commentThread']&&_0x567757['commentThread']['length'];if(!_0x2cca58&&_0x50199a(_0x22394c,_0x4bc826))return _0x67f874['_joinSuggestions'](_0x567757,_0xb9680),_0x5b15b4['delete'](_0xb9680),!0x0;if(!_0x1f1679&&_0x50199a(_0x4bc826,_0x22394c))return _0x67f874['_joinSuggestions'](_0xb9680,_0x567757),_0x5b15b4['delete'](_0x567757),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1e71cc,_0x563de8){if(_0x1e71cc['isMultiRange']){for(const _0x498b41 of _0x563de8['getRanges']())_0x1e71cc['addRange'](_0x498b41);}else{const _0x44ed55=_0x563de8['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1e71cc,this['_model']['createRange'](_0x1e71cc['getFirstRange']()['start'],_0x44ed55));}_0x563de8['removeMarkers']();}['_getMarkerAnnouncementText'](_0x94271a,_0x32b0aa){const _0x369748=_0x94271a['startsWith']('format')||_0x94271a['startsWith']('attribute')?'FORMATTING':_0x94271a['toUpperCase']();return o(this['editor']['locale'],_0x32b0aa+'_'+_0x369748+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x257cd2=this['editor'];if(!_0x257cd2['ui'])return;const {ariaLiveAnnouncer:_0x56bbe1}=_0x257cd2['ui'];_0x4ea651(this['_model'],({left:_0x2b2389,entered:_0x4f8011})=>{for(const _0x1db064 of _0x2b2389){const {group:_0x41d5d5,type:_0xf733dc}=this['_splitMarkerName'](_0x1db064['name']);if('suggestion'===_0x41d5d5){_0x56bbe1['announce'](this['_getMarkerAnnouncementText'](_0xf733dc,'LEAVE'));break;}}for(const _0x30ef67 of _0x4f8011){const {group:_0x4e00c5,type:_0x13f2cf}=this['_splitMarkerName'](_0x30ef67['name']);if('suggestion'===_0x4e00c5){_0x56bbe1['announce'](this['_getMarkerAnnouncementText'](_0x13f2cf,'ENTER'));break;}}});}['_processAttributeChanges'](_0x516c97){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3f3b02=this['editor'],_0x3cabad=_0x3f3b02['model']['document']['differ']['getChanges']();if(0x0==_0x3cabad['length'])return!0x1;const _0x228748=[],_0x3819c2=_0x3cabad['filter'](_0x20c0f1=>'attribute'==_0x20c0f1['type']),_0x320eb1=_0x3cabad['filter'](_0x29a407=>'insert'==_0x29a407['type']&&'$text'!=_0x29a407['name']),_0x2de538=_0x3cabad['filter'](_0x160a39=>'remove'==_0x160a39['type']&&'$text'!=_0x160a39['name']);for(const _0x449634 of _0x3819c2)_0x228748['push']({'key':_0x449634['attributeKey'],'newValue':_0x449634['attributeNewValue'],'oldValue':_0x449634['attributeOldValue'],'range':Ot(_0x449634['range'],_0x3f3b02['model'])});for(const _0x49c410 of _0x320eb1){const _0x42ba90=_0x2de538['find'](_0x33fbc2=>_0x33fbc2['position']['isEqual'](_0x49c410['position']));_0x42ba90&&_0x228748['push']({'key':m,'newValue':_0x49c410['name'],'oldValue':_0x42ba90['name'],'range':_0x3f3b02['model']['createRangeOn'](_0x49c410['position']['nodeAfter'])});}return 0x0!=_0x228748['length']&&this['_reduceExistingSuggestions'](_0x516c97,_0x228748);}['_processAttributeSuggestions'](_0x370faf){let _0x50d048=!0x1;const _0x5364be=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xc5cac9=>_0xc5cac9['data']['newRange']&&_0xc5cac9['name']['startsWith']('suggestion:attribute:'));for(const _0x1d8094 of _0x5364be){const {subType:_0x354a56,id:_0x4278ce}=this['_splitMarkerName'](_0x1d8094['name']),_0x38daa7=_0x354a56['split']('|')[0x0];for(const _0x42026a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x42026a['id']!=_0x4278ce&&'attribute'==_0x42026a['type']&&_0x42026a['data']&&_0x42026a['data']['key']==_0x38daa7&&_0x42026a['getFirstRange']()['isIntersecting'](_0x1d8094['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x42026a,_0x1d8094['data']['newRange'],_0x370faf),_0x50d048=!0x0);}return _0x50d048;}['_recordAttributeChanges'](_0x52d77b){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x52d77b();}['_isRegisteredAttribute'](_0x33ae13){const _0x4116d9=this['_isBlockAttribute'](_0x33ae13),_0x484d8b=this['_inlineAttributeKeys']['has'](_0x33ae13);return _0x4116d9||_0x484d8b;}['_reduceExistingSuggestions'](_0x2d4599,_0x45d434){if(0x0==_0x45d434['length'])return!0x1;let _0x30cdf5=!0x1;for(const _0x3dd235 of _0x45d434){const _0x5a56fb=this['_findSuggestions'](_0x3dd235['range'],'attribute')['filter'](_0x2a5278=>!_0x2a5278['meta']['isNextTo'])['map'](_0x239170=>_0x239170['suggestion']),_0x3ddb25=_0x30ea72({'newValue':_0x3dd235['newValue']});_0x5a56fb['filter'](_0x3972cd=>{const [_0x5a54d1,_0x253b77]=_0x3972cd['subType']['split']('|');return _0x5a54d1==_0x3dd235['key']&&_0x253b77!=_0x3ddb25;})['forEach'](_0x1bb277=>{this['_reduceSuggestionAttributeRange'](_0x1bb277,_0x3dd235['range'],_0x2d4599),_0x30cdf5=!0x0;});}return _0x30cdf5;}['_reduceSuggestionAttributeRange'](_0x200f00,_0x57594e,_0x3fb3e3){const _0x303eaf=_0x200f00['getFirstRange']()['getDifference'](_0x57594e);0x0!==_0x303eaf['length']?0x1!==_0x303eaf['length']?this['_breakSuggestionMarker'](_0x200f00,_0x57594e['start'],_0x57594e['end']):this['_setSuggestionRange'](_0x200f00,_0x303eaf[0x0]):_0x3fb3e3['removeMarker'](_0x200f00['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x15c156){this['_editor']=_0x15c156,this['_model']=_0x15c156['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x571f39,_0x3194ef,_0x5bc111,_0x2aa5e3,_0x2c6ec0,_0x33ffa4){return new u(this['_model'],{'type':_0x571f39,'subType':_0x3194ef,'id':_0x5bc111,'author':_0x2aa5e3,'creator':_0x2aa5e3,'attributes':_0x2c6ec0,'onAttributesChange':_0x33ffa4,'onAccept':(..._0x386998)=>this['getSuggestionCallback'](_0x571f39,_0x3194ef,'accept')(..._0x386998),'onDiscard':(..._0x418fce)=>this['getSuggestionCallback'](_0x571f39,_0x3194ef,'discard')(..._0x418fce)});}['registerCustomCallback'](_0x20baa4,_0x391dfc,_0x4486ba,_0x1c1fd8){const _0x1c2851=_0x20baa4+':'+_0x391dfc+':'+_0x4486ba;this['_customCallbacks']['set'](_0x1c2851,_0x1c1fd8);}['getSuggestionCallback'](_0x24daae,_0xe4f8a9,_0x2756cc){const _0x5a2b56=_0x24daae+':'+_0xe4f8a9+':'+_0x2756cc;return this['_customCallbacks']['get'](_0x5a2b56)||this['_defaultCallbacks']['get'](_0x24daae+':'+_0x2756cc);}['_registerDefaultCallbacks'](){const _0x357486=()=>!0x1,_0x5a08cf=_0x34aaca=>{_0x34aaca['sort']((_0xde793c,_0x2dc505)=>_0xde793c['start']['isBefore'](_0x2dc505['start'])?0x1:-0x1),this['_model']['change'](_0x48d7a5=>{for(const _0x440856 of _0x34aaca){let _0x297645;_0x297645=_0x440856['end']['isAtEnd']&&_0x440856['end']['parent']==_0x440856['start']['nodeAfter']?_0x48d7a5['createSelection'](_0x440856['start']['nodeAfter'],'on'):_0x48d7a5['createSelection'](_0x440856),this['_model']['deleteContent'](_0x297645,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x19955c=(_0x2c80dc,_0xd87f41)=>{_0xd87f41&&this['_model']['change'](_0x3ae7cd=>{const {commandName:_0x2c0b13,commandParams:_0x36de92=[]}=_0xd87f41,_0x357c9f=_0x2c80dc['map'](_0x4acdc6=>(Tt(_0x4acdc6)&&(_0x4acdc6=this['_model']['createRange'](_0x4acdc6['end'])),_0x4acdc6))['filter'](_0x5b8612=>'$graveyard'!==_0x5b8612['root']['rootName']);if(_0x357c9f['length']<0x1)return;const _0x3cd72b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2a4859=>_0x137881['fromRange'](_0x2a4859));_0x3ae7cd['setSelection'](_0x357c9f);for(const _0x4ea12a of this['_editor']['commands']['commands']())_0x4ea12a['refresh']();_0x36de92['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2c0b13,..._0x36de92);const _0x48adf5=_0x3cd72b['filter'](_0x4a367c=>'$graveyard'!=_0x4a367c['root']['rootName']);_0x48adf5['length']>0x0&&_0x3ae7cd['setSelection'](_0x48adf5);for(const _0x143e19 of _0x3cd72b)_0x143e19['detach']();});},_0xf3c416=(_0x557258,_0x276984)=>0x1==_0x557258['length']&&0x1==_0x276984['length']&&_0x557258[0x0]['end']['isEqual'](_0x276984[0x0]['start']),_0x18d57f=(_0x5b0e3a,_0x27107d,_0x398f44,_0x4922b1)=>Gt(_0x5b0e3a,_0x27107d,_0x398f44,_0x4922b1,this['_model'])?[_0x5b0e3a,_0x27107d]:Gt(_0x27107d,_0x5b0e3a,_0x4922b1,_0x398f44,this['_model'])?[_0x27107d,_0x5b0e3a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x357486),this['_defaultCallbacks']['set']('insertion:discard',_0x5a08cf),this['_defaultCallbacks']['set']('insertion:join',_0xf3c416),this['_defaultCallbacks']['set']('insertion:chain',_0x18d57f),this['_defaultCallbacks']['set']('deletion:accept',_0x5a08cf),this['_defaultCallbacks']['set']('deletion:discard',_0x357486),this['_defaultCallbacks']['set']('deletion:join',_0xf3c416),this['_defaultCallbacks']['set']('deletion:chain',_0x18d57f),this['_defaultCallbacks']['set']('formatInline:accept',_0x19955c),this['_defaultCallbacks']['set']('formatInline:discard',_0x357486),this['_defaultCallbacks']['set']('formatInline:join',_0xf3c416),this['_defaultCallbacks']['set']('formatInline:chain',_0x357486),this['_defaultCallbacks']['set']('formatBlock:accept',_0x19955c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x357486),this['_defaultCallbacks']['set']('formatBlock:join',_0xf3c416),this['_defaultCallbacks']['set']('formatBlock:chain',_0x357486),this['_defaultCallbacks']['set']('attribute:accept',_0x357486),this['_defaultCallbacks']['set']('attribute:discard',(_0xd2ca5a,_0xb93bab)=>{if(!_0xb93bab)return;const _0x2ff94e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x19f7ff=>{if(_0xb93bab['key']==m)for(const _0x21db47 of _0xd2ca5a){const _0x3077af=_0x21db47['start']['nodeAfter'],_0xd21bc4=_0xb93bab['oldValue'];_0x19f7ff['rename'](_0x3077af,_0xd21bc4);}else{if(_0x2ff94e['_isBlockAttribute'](_0xb93bab['key'])){for(const _0x101b07 of _0xd2ca5a)void 0x0!==_0xb93bab['oldValue']?_0x19f7ff['setAttribute'](_0xb93bab['key'],_0xb93bab['oldValue'],_0x101b07['start']['nodeAfter']):_0x19f7ff['removeAttribute'](_0xb93bab['key'],_0x101b07['start']['nodeAfter']);}else{for(const _0x3b9a41 of _0xd2ca5a)_0xb93bab['oldValue']?_0x19f7ff['setAttribute'](_0xb93bab['key'],_0xb93bab['oldValue'],_0x3b9a41):_0x19f7ff['removeAttribute'](_0xb93bab['key'],_0x3b9a41);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xf3c416);}}function Rt(_0x3ebe15,_0x133255,_0x5ab8b7){for(const _0xbb98f0 of _0x133255['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xbb98f0['root']==_0xbb98f0)return!0x1;if(!_0x5ab8b7['containsItem'](_0xbb98f0))return!0x1;if(_0x3ebe15['isObject'](_0xbb98f0)||_0x3ebe15['isLimit'](_0xbb98f0))return!0x0;}return!0x1;}function Tt(_0x1f2aa8){return _0x1f2aa8['end']['parent']==_0x1f2aa8['start']['nodeAfter']&&_0x1f2aa8['end']['isAtStart'];}function Et(_0x279bd3,_0x15066f,_0x2b14e7,_0x372ac7){const _0xd468dc=_0xf8aece=>!_0xf8aece['item']['is']('$textProxy')&&!_0x372ac7['isObject'](_0xf8aece['item']),_0x32eb95=_0x279bd3['start']['getLastMatchingPosition'](_0xd468dc),_0x4b93ab=_0x279bd3['end']['getLastMatchingPosition'](_0xd468dc,{'direction':'backward'});return(!_0x279bd3['start']['isEqual'](_0x32eb95)||!_0x279bd3['end']['isEqual'](_0x4b93ab))&&(_0x32eb95['isBefore'](_0x4b93ab)?_0x2b14e7['updateMarker'](_0x15066f,{'range':_0x2b14e7['createRange'](_0x32eb95,_0x4b93ab)}):_0x2b14e7['removeMarker'](_0x15066f),!0x0);}function Vt(_0x204d5f){return _0x30ea72(_0x204d5f);}function Ut(_0x56918e){const _0x8eb6cd=_0x56918e['start']['nodeAfter'];return _0x8eb6cd&&_0x8eb6cd['is']('element');}function Ot(_0x5db139,_0x1fa306){return null==_0x5db139['end']['nodeBefore']&&_0x5db139['end']['parent']==_0x5db139['start']['nodeAfter']?Ft(_0x5db139['start']['nodeAfter'],_0x1fa306):_0x5db139;}function Ft(_0x6b0a64,_0x430860){const _0x3d70c8=_0x430860['schema']['isObject'](_0x6b0a64)||_0x430860['schema']['isSelectable'](_0x6b0a64);return _0x430860['createRange'](_0x430860['createPositionAt'](_0x6b0a64,'before'),_0x3d70c8?_0x430860['createPositionAfter'](_0x6b0a64):_0x430860['createPositionAt'](_0x6b0a64,'end'));}function Gt(_0x215d24,_0x50949a,_0x318962,_0x3917ed,_0x3d9244){if(!Pt(_0x215d24,_0x50949a))return!0x1;if(_0x318962['end']['isEqual'](_0x3917ed['start']))return!0x0;if(_0x215d24['type']!=_0x50949a['type'])return!0x1;if(!_0x318962['end']['isTouching'](_0x3917ed['start']))return!0x1;const _0x524e16=_0x3d9244['createRange'](_0x318962['end'],_0x3917ed['start'])['getWalker']();for(const _0x4e3803 of _0x524e16)if(['elementStart','elementEnd']['includes'](_0x4e3803['type'])&&_0x3d9244['schema']['isLimit'](_0x4e3803['item']))return!0x1;return!0x0;}function Pt(_0x5c56bc,_0x55cf0f,_0x56e4be=[]){return!(!_0x5c56bc['_isDataLoaded']||!_0x55cf0f['_isDataLoaded'])&&_0x1bbed5(Bt(_0x5c56bc['attributes'],_0x56e4be),Bt(_0x55cf0f['attributes'],_0x56e4be));}function Lt(_0x388d25,_0x267bb9){const _0x5aa87b=Ht(_0x388d25['attributes']),_0x474c2a=Ht(_0x267bb9);if(!_0x388d25['_isDataLoaded'])return!0x1;for(const _0x5a728a of Object['keys'](_0x474c2a))if(!_0x1bbed5(_0x5aa87b[_0x5a728a],_0x474c2a[_0x5a728a]))return!0x1;return!0x0;}function Ht(_0x4278bc){const _0x308265=Object['assign']({},_0x4278bc);return delete _0x308265['skipNestingCheck'],delete _0x308265['tablePasteChainId'],_0x308265;}class oe extends _0x44add1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x380bdf,_0x5ae7e7,_0x496323,_0x2d886b){super(),this['model']=_0x5ae7e7,this['view']=_0x496323,this['commentThreadController']=_0x2d886b,this['_editor']=_0x380bdf,this['_acceptCommand']=_0x380bdf['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x380bdf['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x53dd55,_0x416bbe)=>_0x53dd55||_0x416bbe),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xd3c05e=>_0xd3c05e&&this['_editor']['model']['canEditAt'](_0x5ae7e7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x244c46=>_0x244c46&&this['_editor']['model']['canEditAt'](_0x5ae7e7['getRanges']())),this['_pendingAction']=null,_0x496323['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x496323,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x496323,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x496323,'change:isDirty',()=>{_0x496323['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x2f8f98=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2f8f98);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x3595e3{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x59c8da,_0x25049e,_0x552e32,_0xbee01e){super(_0x59c8da),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x25049e['authoredAt']),this['bind']('authoredAt')['to'](_0x25049e),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x25049e,this['_localUser']=_0x552e32,this['_config']=_0xbee01e,_0xbee01e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x17832c}=this['_config'];this['commentsListView']=new _0x17832c(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',_0x1619ef=>_0x1619ef+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x346b39,_0x380313)=>_0x346b39||!!_0x380313);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3e9a42}=this['_config'],_0x1e6054=new _0x3e9a42(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x194110=_0x1e6054['commentInputView'];return _0x1e6054['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x194110,'value',(_0x1fdbb1,_0x2e172e,_0xc70e14)=>!!_0xc70e14||_0x1fdbb1&&!_0x2e172e),_0x194110['on']('submit',(_0x40a6e2,_0x130e8b)=>{this['fire']('addComment',_0x130e8b),_0x194110['editor']['setData']('');}),_0x194110['on']('cancel',()=>this['focus']()),_0x194110['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1e6054;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x25f580,_0x52a66b,_0x2025c7,_0x5e6a01){super(_0x25f580,_0x52a66b,_0x2025c7,_0x5e6a01),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x11f66b=>_0x11f66b&&_0x11f66b[0x0]?_0x11f66b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xa1ad5b,_0xfd2a45)=>{let _0x2099a3='';for(const _0x3b0ea3 of _0xa1ad5b)_0x2099a3+='<p>'+ds(_0x3b0ea3['content'],_0x3b0ea3['color'])+'</p>';return _0xfd2a45?_0x2099a3:_0x1c4f99(_0x2099a3,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x25f580,'Accept\x20suggestion'),_0x1dc363['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x25f580,'Discard\x20suggestion'),_0x1dc363['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xc49622(_0x25f580,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x46eb79=this['bindTemplate'],_0x16383b=[{'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':_0x46eb79['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46eb79['to']('authoredAt',_0x2cc856=>this['_config']['formatDateTime'](_0x2cc856))}]}]},{'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']&&_0x16383b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5cb2e3={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x46eb79['if']('isActive','ck-suggestion-wrapper--active'),_0x46eb79['to']('type',_0x17725a=>'ck-suggestion-'+_0x17725a),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':_0x16383b}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5cb2e3['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)),_0x5cb2e3;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x358214,_0x446b98,_0x2b62d0)=>{this['_descriptionElement']['innerHTML']=_0x2b62d0;});}['_createButton'](_0x5bc528,_0x2f580e,_0x8948ba,_0x25fcd7,_0x233d6c){const _0x30f546=new _0x698556(this['locale']);return _0x30f546['set']({'label':_0x5bc528,'icon':_0x2f580e,'tooltip':!0x0,'tooltipPosition':_0x233d6c}),_0x30f546['extendTemplate']({'attributes':{'class':_0x8948ba}}),_0x30f546['on']('execute',()=>{this['fire'](_0x25fcd7,this['_model']['id']);}),_0x30f546;}['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;}}function ds(_0x22c1dd,_0x13f616){let _0x9e1769='';return _0x9e1769+=_0x22c1dd['split']('*')['map']((_0x47b6f9,_0x363f89)=>_0x363f89%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x47b6f9)+'</span>':us(_0x47b6f9))['join'](''),_0x13f616&&(_0x9e1769+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x13f616['value']+'\x22\x20title=\x22'+_0x13f616['title']+'\x22></span>'),_0x9e1769;}function us(_0x3a7987){const _0x4669a9=document['createElement']('span');return _0x4669a9['innerText']=_0x3a7987,_0x4669a9['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 _0x181a03{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x37773b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xd73221){super(_0xd73221),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4d0f07=this['editor']['config'];_0x4d0f07['define']('trackChanges.SuggestionThreadView',ne),_0x4d0f07['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4d0f07['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x9b9ee7,_0x5d3ce6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x871b58,_0x4e5ae4]of this['_handleControllerBuffer']){const _0x2a59e8=this['_suggestionToController']['has'](_0x871b58);_0x2a59e8||_0x4e5ae4?_0x2a59e8&&_0x4e5ae4&&this['_destroyController'](_0x871b58):this['_initializeController'](_0x871b58);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x9b9ee7,_0x5d3ce6);}['init'](){const _0x1f0b8d=this['editor'],_0x208d67=_0x1f0b8d['plugins']['get']('TrackChangesEditing'),_0x310fab=_0x1f0b8d['plugins']['get']('Annotations'),_0x31f202=_0x1f0b8d['plugins']['get']('EditorAnnotations'),_0x39efc2=_0x1f0b8d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x31f202['addSourceCollector'](()=>{const _0x4cac88=[];for(const [_0x4da131,_0x1d5877]of Array['from'](this['_suggestionToController'])){const _0x5313ef=_0x4da131['getAllAdjacentSuggestions'](),_0x28c80c=[];for(const _0x54865d of _0x5313ef){if(!_0x54865d['isInContent'])continue;if(_0x54865d['isMultiRange']){_0x28c80c['push'](..._0x54865d['getRanges']());continue;}const _0x2651bb=_0x54865d['getFirstRange']();if(_0x28c80c['length']>0x0){const _0x1060ec=_0x28c80c[0x0]['getJoined'](_0x2651bb);if(_0x1060ec){_0x28c80c[0x0]=_0x1060ec;continue;}}_0x28c80c['push'](_0x2651bb);}_0x4cac88['push']([_0x1d5877['view'],_0x28c80c]);}return _0x4cac88;}),this['listenTo'](_0x208d67,'suggestionLoaded',(_0x2bcdef,_0x3783a3)=>{this['listenTo'](_0x3783a3,'change:previous',(_0x3a7aa5,_0x39311d,_0x151451,_0x2e010f)=>{_0x3783a3['isInContent']&&(null==_0x151451?(this['_updateController'](_0x2e010f['head']),this['_handleSuggestionControllerDelayed'](_0x3783a3,!0x1)):(this['_updateController'](_0x151451['head']),null==_0x2e010f&&this['_handleSuggestionControllerDelayed'](_0x3783a3,!0x0)));}),null!==_0x3783a3['previous']?this['_updateController'](_0x3783a3['head']):this['_handleSuggestionControllerDelayed'](_0x3783a3,!0x1);}),this['listenTo'](_0x208d67,'suggestionUnloaded',(_0x37db77,_0x8dc7db,_0x2f3284)=>{this['stopListening'](_0x8dc7db,'change:previous'),this['_handleControllerBuffer']['delete'](_0x8dc7db),this['_suggestionToController']['has'](_0x8dc7db)&&this['_destroyController'](_0x8dc7db),_0x2f3284&&this['_updateController'](_0x2f3284['head']);}),this['listenTo'](_0x208d67,'suggestionChanged',(_0x688fa3,_0x40d3eb)=>{this['_updateController'](_0x40d3eb);}),this['listenTo'](_0x310fab,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39efc2,'addComment',(_0x54cf30,{threadId:_0x5ecab9,isFromAdapter:_0x2f3565})=>{if(_0x2f3565||!_0x208d67['hasSuggestion'](_0x5ecab9))return;const _0x2bb211=_0x208d67['getSuggestion'](_0x5ecab9);this['_suggestionToController']['get'](_0x2bb211)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x461688=this['editor']['plugins']['get']('Annotations'),_0xc0e792=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fc017=Array['from'](_0x461688['activeAnnotations'],_0x8da04a=>_0x8da04a['innerView'])['filter'](_0x33024c=>this['_viewToController']['has'](_0x33024c)),_0x37baf9=[];for(const _0x3dd06c of _0x1fc017){const _0x38e6e3=this['_viewToController']['get'](_0x3dd06c)['model']['getAllAdjacentSuggestions']();_0x37baf9['push'](..._0x38e6e3['reduce']((_0x3d8d03,_0x2b64ed)=>[..._0x3d8d03,..._0x2b64ed['getMarkerNames']()],[]));}_0xc0e792['activeMarkers']=_0x37baf9;}['_addUIComponentsToFactory'](){const _0x5e97db=this['editor'],_0x67c898=_0x5e97db['locale'],_0x1bd89f=o(_0x67c898,'Track\x20changes'),_0x1a49ac=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1bd89f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x67c898,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x67c898,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x67c898,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x67c898,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xa3a512 of _0x1a49ac)if(ae(_0xa3a512)){const _0x33db8e=_0x5e97db['commands']['get'](_0xa3a512['model']['commandName']);_0xa3a512['model']['bind']('isOn','isEnabled')['to'](_0x33db8e,'value','isEnabled');}_0x5e97db['ui']['componentFactory']['add']('trackChanges',_0x5b956c=>this['_createToolbarButton'](_0x5b956c,_0x1a49ac,_0x1bd89f)),_0x5e97db['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4b0f97=>this['_createMenuBarMenu'](_0x4b0f97,_0x1a49ac,_0x1bd89f));}['_createToolbarButton'](_0x4e0b80,_0x5d20d5,_0x1b7a41){const _0x43a50f=zt(_0x4e0b80,Zt),_0x43eeca=this['editor']['commands']['get']('trackChanges');_0x43a50f['buttonView']['set']({'tooltip':_0x1b7a41,'label':_0x1b7a41,'icon':ie}),_0x43a50f['buttonView']['bind']('isOn')['to'](_0x43eeca,'value'),_0x43a50f['buttonView']['on']('execute',()=>{_0x43eeca['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x43a50f,_0x5d20d5,{'role':'menu'});const _0x583929=[];for(const _0xebf705 of _0x5d20d5)ae(_0xebf705)&&_0x583929['push'](this['editor']['commands']['get'](_0xebf705['model']['commandName']));const _0x4cba54=_0x43a50f['buttonView'];return _0x4cba54['actionView']['unbind']('isEnabled'),_0x4cba54['arrowView']['unbind']('isEnabled'),_0x4cba54['actionView']['bind']('isEnabled')['to'](_0x43eeca,'isEnabled'),_0x4cba54['arrowView']['bind']('isEnabled')['toMany'](_0x583929,'isEnabled',(..._0xb7f64e)=>_0xb7f64e['some'](_0x38b51b=>_0x38b51b)),_0x43a50f['on']('execute',_0x58a2bc=>{this['editor']['execute'](_0x58a2bc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x43a50f;}['_createMenuBarMenu'](_0x48bea0,_0xb0a6b4,_0x58519d){const _0x552bb7=new Kt(_0x48bea0),_0x28cae0=this['editor']['commands']['get']('trackChanges');_0x552bb7['buttonView']['set']({'label':_0x58519d,'icon':ie});const _0x474424=new Qt(_0x48bea0);for(const _0x1c31c0 of _0xb0a6b4){if('separator'==_0x1c31c0['type']){_0x474424['items']['add'](new Jt(_0x48bea0));continue;}const _0x2d49ab=new Xt(_0x48bea0,_0x552bb7),_0x572015=new Yt(_0x48bea0),_0x5ab2d0=_0x1c31c0['model'];_0x572015['bind'](...Object['keys'](_0x5ab2d0))['to'](_0x5ab2d0),_0x572015['delegate']('execute')['to'](_0x552bb7),_0x572015['on']('execute',()=>{this['editor']['execute'](_0x5ab2d0['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d49ab['children']['add'](_0x572015),_0x474424['items']['add'](_0x2d49ab);}return _0x552bb7['bind']('isEnabled')['to'](_0x28cae0,'isEnabled'),_0x552bb7['panelView']['children']['add'](_0x474424),_0x552bb7;}['_initializeController'](_0x56148b){const _0x3bd4ef=this['editor'],_0x1ecfae=_0x3bd4ef['config'],_0x2381f5=_0x3bd4ef['plugins']['get']('Annotations'),_0x44e01f=_0x3bd4ef['plugins']['get']('CommentsRepository'),_0x4125cf=_0x3bd4ef['plugins']['get']('EditorAnnotations'),_0x3fbe7b=_0x3bd4ef['plugins']['get'](_0x37773b)['me'],_0x3d5435=_0x1ecfae['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x5a771b,CommentThreadInputView:_0x1800fc}=_0x3bd4ef['plugins']['get']('CommentsUI');let _0x24f55e,_0x5e0a12;this['_annotationViews']['has'](_0x56148b['id'])?(_0x5e0a12=this['_annotationViews']['get'](_0x56148b['id']),_0x24f55e=_0x5e0a12['mainView']):(_0x24f55e=new _0x3d5435(_0x3bd4ef['locale'],_0x56148b,_0x3fbe7b,{'disableComments':this['_disableComments'],'editorConfig':_0x1ecfae['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1ecfae['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1ecfae['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1ecfae['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x457e1e(_0x1ecfae['get']('locale')),'CommentView':_0x1ecfae['get']('comments')['CommentView'],'CommentsListView':_0x5a771b,'CommentThreadInputView':_0x1800fc}),_0x24f55e['acceptButton']['on']('execute',()=>{_0x3bd4ef['editing']['view']['focus']();}),_0x24f55e['discardButton']['on']('execute',()=>{_0x3bd4ef['editing']['view']['focus']();}),_0x5e0a12=_0x2381f5['createAnnotationView'](this['editor']['locale'],_0x24f55e),_0x5e0a12['bind']('isDirty')['to'](_0x24f55e,'isDirty'),_0x5e0a12['bind']('length')['to'](_0x24f55e),_0x5e0a12['bind']('type')['to'](_0x24f55e,'type',_0x1c9612=>'suggestion-'+_0x1c9612),this['_annotationViews']['set'](_0x56148b['id'],_0x5e0a12));const _0xcab2da=_0x44e01f['createCommentThreadController'](_0x56148b['commentThread'],_0x24f55e),_0x52e36e=new oe(_0x3bd4ef,_0x56148b,_0x24f55e,_0xcab2da),_0x447926=_0x56148b['getAllAdjacentSuggestions']()['filter'](_0x77a84e=>_0x77a84e['isInContent']);_0x24f55e['descriptionParts']=_0x3bd4ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x447926),this['_suggestionToController']['set'](_0x56148b,_0x52e36e),this['_viewToController']['set'](_0x24f55e,_0x52e36e);const _0x5af347=_0x2381f5['createAnnotation']({'view':_0x5e0a12,'target':()=>{const _0x2ccb8b=[],_0x19f0c3=_0x56148b['getAllAdjacentSuggestions']()['filter'](_0x18b16a=>_0x18b16a['isInContent']);for(const _0x3a60ce of _0x19f0c3)_0x2ccb8b['push'](..._0x3a60ce['getMarkers']());return _0x3468cb(_0x3bd4ef['editing'],_0x2ccb8b);},'type':()=>'suggestion-'+_0x52e36e['view']['type']});_0x44e01f['_bindAnnotationToEditors'](_0x24f55e,_0x5af347),_0x2381f5['add'](_0x5af347),_0x4125cf['registerAnnotation'](_0x5af347);}['_destroyController'](_0x19469e){const _0x16c38b=this['editor']['plugins']['get']('CommentsRepository'),_0xb0ec92=this['editor']['plugins']['get']('Annotations'),_0x1c1e67=this['_suggestionToController']['get'](_0x19469e),_0x1ad8e7=_0x1c1e67['view'],_0x563dae=_0xb0ec92['getByInnerView'](_0x1ad8e7);_0x16c38b['_unbindEditors'](_0x1ad8e7),_0x563dae&&_0xb0ec92['remove'](_0x563dae),this['_suggestionToController']['delete'](_0x19469e),this['_viewToController']['delete'](_0x1ad8e7),_0x1c1e67['destroy']();}['_updateController'](_0x4e8479){if(!_0x4e8479['isInContent']||!this['_suggestionToController']['has'](_0x4e8479))return;const _0x2b3a8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23b11f=this['_suggestionToController']['get'](_0x4e8479),_0x1a8eae=_0x4e8479['getAllAdjacentSuggestions']();_0x23b11f['view']['descriptionParts']=_0x2b3a8a['descriptionFactory']['getDescriptions'](_0x1a8eae);}['destroy'](){for(const _0x120c62 of this['_suggestionToController']['keys']())this['_destroyController'](_0x120c62);for(const _0x3f7b04 of this['_annotationViews']['values']())_0x3f7b04['mainView']['destroy']();super['destroy']();}}function ae(_0x27650c){return'model'in _0x27650c;}class k extends _0x181a03{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x507354){this['editor']['plugins']['get'](p)['adapter']=_0x507354;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x42020f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x42020f);}['getSuggestions']({skipNotAttached:_0x491d78=!0x1,toJSON:_0x51111b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x491d78,'toJSON':_0x51111b});}['getSuggestion'](_0x1f4e54){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1f4e54);}}const T=['Pagination'];class P extends _0x181a03{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x34673b=this['editor'];if(_0x34673b['config']['define']('trackChangesData.editorCreator',_0x15a3c9=>{const _0x5741e5=_0x34673b['model']['document']['getRootNames']()['reduce']((_0x2fee2b,_0x5ae8b6)=>(_0x2fee2b[_0x5ae8b6]='',_0x2fee2b),{});return _0x34673b['constructor']['create'](_0x5741e5,_0x15a3c9);}),'function'!=typeof _0x34673b['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c1713('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f191d){return N(this['editor'],!0x0,_0x1f191d);}['getDataWithDiscardedSuggestions'](_0x26f64c){return N(this['editor'],!0x1,_0x26f64c);}}class D extends _0x181a03{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1bb25e){super(_0x1bb25e),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x23665b){return void 0x0!==_0x23665b['getRootsAttributes'];}async function N(_0xb76b76,_0x5dc0cb,_0x57f2df){const _0x3de890=_0x38e79e(_0xb76b76,T);_0x3de890['plugins']['push'](p,D),_0x3de890['rootsAttributes']=v(_0xb76b76)?_0xb76b76['getRootsAttributes']():void 0x0;const _0x579295=document['createDocumentFragment'](),_0x2a5488=_0xb76b76['config']['get']('trackChangesData')['editorCreator'],_0x392727=await _0x2a5488(_0x3de890,()=>function(_0x49f250){const _0x2e6424=document['createElement']('div');return _0x49f250['appendChild'](_0x2e6424),_0x2e6424;}(_0x579295));!function(_0x16f3da,_0x1872df){const _0x4e2d76=_0x16f3da['model']['document']['getRootNames']()['reduce']((_0x3ec20c,_0x305091)=>(_0x3ec20c[_0x305091]=_0x16f3da['data']['get']({'rootName':_0x305091}),_0x3ec20c),{}),_0x423741=_0x16f3da['plugins']['get']('Users')['users']['map'](_0x5e3cff=>({'id':_0x5e3cff['id'],'name':_0x5e3cff['name']})),_0x278a13=_0x16f3da['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3de754=_0x16f3da['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4bb2cb=_0x1872df['plugins']['get']('Users'),_0x54d4c6=_0x1872df['plugins']['get']('TrackChangesEditing'),_0x10a36e=_0x1872df['plugins']['get']('CommentsRepository');for(const _0x2cdc3b of _0x423741)_0x4bb2cb['getUser'](_0x2cdc3b['id'])||_0x4bb2cb['addUser'](_0x2cdc3b);_0x4bb2cb['me']||_0x4bb2cb['useAnonymousUser']();for(const _0x1571ad of _0x278a13)_0x54d4c6['addSuggestionData'](_0x1571ad);for(const _0xc32a7c of _0x3de754)_0x10a36e['addCommentThread'](_0xc32a7c);_0x1872df['data']['set'](_0x4e2d76);}(_0xb76b76,_0x392727),_0x392727['execute'](_0x5dc0cb?'acceptAllSuggestions':'discardAllSuggestions');const _0x4fcaa8=v(_0x392727)?_0x392727['getFullData'](_0x57f2df):_0x392727['data']['get'](_0x57f2df);return await _0x392727['destroy'](),_0x4fcaa8;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|