@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240503.0 → 0.0.0-nightly-20240505.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 _0x61eb43,PendingActions as _0x2b0188,icons as _0x1ce30b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xa5fb70,ObservableMixin as _0x5279e5,uid as _0xdda64a,insertToPriorityArray as _0x6d11c3,priorities as _0x5190c6,logWarning as _0x25c1e2,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5a7d3d,View as _0x2d0858,ButtonView as _0x26344e,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 _0x281dca,hashObject as _0x40f9c5,surroundingMarkersDetector as _0x5ac0e4,trimHtml as _0x4706ba,UserView as _0x236e25,getDateTimeFormatter as _0x194375,getAllMarkersDomElementsSorted as _0x8037d8,sanitizeEditorConfig as _0x103d13}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4bddb3,LiveRange as _0x2819a3,LivePosition as _0x1f9f89}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5b1021,toWidget as _0x324286}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xe225ca,set as _0x596791,isEqual as _0x2da674,unset as _0x2ef1e6,omit as Bt}from'lodash-es';import{Delete as _0x2b1bb1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x46f1e2,ShiftEnter as _0x5c8d28}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x42ca56 of this['editor']['commands']['commands']())_0x42ca56['affectsData']&&!this['_enabledCommands']['has'](_0x42ca56)&&_0x42ca56['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x491df6 of this['editor']['commands']['commands']())_0x491df6['affectsData']&&!this['_enabledCommands']['has'](_0x491df6)&&_0x491df6['clearForceDisabled']('TrackChangesCommand');}constructor(_0x4b43bd,_0x7974b5){super(_0x4b43bd),this['_enabledCommands']=_0x7974b5,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x29efd0){const _0x327b9b=this['_suggestions']['get'](_0x29efd0);if(!_0x327b9b)throw new _0xa5fb70('track-changes-accept-suggestion-not-found',this);const _0xf47d3b=_0x327b9b['getRanges']();this['editor']['model']['canEditAt'](_0xf47d3b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x327b9b);}constructor(_0x2df61d,_0x3c4c32){super(_0x2df61d),this['_suggestions']=_0x3c4c32,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5e51d4){const _0x2d9731=this['_suggestions']['get'](_0x5e51d4);if(!_0x2d9731)throw new _0xa5fb70('track-changes-discard-suggestion-not-found',this);const _0x4cdd98=_0x2d9731['getRanges']();this['editor']['model']['canEditAt'](_0x4cdd98)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2d9731);}constructor(_0x2ce038,_0x246060){super(_0x2ce038),this['_suggestions']=_0x246060,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x3c02e3){return _0x3c02e3['sort']((_0x23c26f,_0x3f403e)=>'deletion'==_0x23c26f['type']&&'deletion'!=_0x3f403e['type']?-0x1:'deletion'!=_0x23c26f['type']&&'deletion'==_0x3f403e['type']?0x1:0x0);}function to(_0x41a6a5,_0x245b35){let _0x2a8244,_0x34e8b9=0x0;const _0x290a67=[],_0x374d8d=_0x245b35['schema'];for(;_0x34e8b9<_0x41a6a5['length'];){const _0xa8e1f5=_0x41a6a5[_0x34e8b9],_0xe4d34a=_0x41a6a5[_0x34e8b9+0x1];_0x2a8244||(_0x2a8244=_0x245b35['createPositionBefore'](_0xa8e1f5)),co(_0x245b35,_0xa8e1f5,_0xe4d34a)||(_0x290a67['push'](_0x245b35['createRange'](_0x2a8244,_0x374d8d['isObject'](_0xa8e1f5)?_0x245b35['createPositionAfter'](_0xa8e1f5):_0x245b35['createPositionAt'](_0xa8e1f5,'end'))),_0x2a8244=null),_0x34e8b9++;}return _0x290a67;}function co(_0x54f7ea,_0x2f4460,_0x4fbae0){if(!_0x4fbae0)return!0x1;const _0x217ae4=_0x54f7ea['createPositionAfter'](_0x2f4460),_0x4d4131=_0x54f7ea['createPositionBefore'](_0x4fbae0);return _0x217ae4['isTouching'](_0x4d4131);}function rs(_0x139086,_0x24f9c1,_0x258bda){for(;_0x258bda['length'];){const _0x5e3fee=_0x258bda['splice'](0x0,0x64);_0x139086['change'](()=>{for(const _0x1a5acc of _0x5e3fee)_0x1a5acc['isInContent']&&_0x24f9c1['execute'](_0x1a5acc['id']);});}}class x extends ts{['refresh'](){const _0x298238=Array['from'](this['_suggestions']['values']())['some'](_0x35f322=>_0x35f322['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x298238;}['execute'](){const _0x4e1f57=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1f8c21 of _0x4e1f57){const _0x49bd16=_0x1f8c21['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49bd16))return;}rs(this['editor']['model'],this['_command'],_0x4e1f57);}constructor(_0x5dcf5b,_0x4b972f,_0x455c16){super(_0x5dcf5b),this['_command']=_0x4b972f,this['_suggestions']=_0x455c16,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x442e83=this['editor']['model']['document']['selection'],_0x414b74=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3fe49f,_0x3cf271){const _0x12784f=Array['from'](_0x3fe49f['getRanges']()),_0x3cca23=new Set();for(const _0xae5b6a of _0x3cf271)if(_0xae5b6a['isInContent']){for(const _0x59179a of _0x12784f)for(const _0x4a0109 of _0xae5b6a['getRanges']())(_0x59179a['isIntersecting'](_0x4a0109)||_0x3fe49f['isCollapsed']&&!_0xae5b6a['isMultiRange']&&_0xae5b6a['next']&&_0x4a0109['end']['isTouching'](_0x59179a['start']))&&_0x3cca23['add'](_0xae5b6a);}return _0x3cca23;}(_0x442e83,_0x414b74),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x418620=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1a18f0 of _0x418620){const _0x30e588=_0x1a18f0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30e588))return;}rs(this['editor']['model'],this['_command'],_0x418620);}constructor(_0x24dd5e,_0x2be051,_0x53f215){super(_0x24dd5e),this['_command']=_0x2be051,this['_suggestions']=_0x53f215,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x5279e5(){get['head'](){let _0x1eb26c=this;for(;_0x1eb26c['previous'];)_0x1eb26c=_0x1eb26c['previous'];return _0x1eb26c;}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'](_0x463e04){this['_markerNames']['add'](_0x463e04);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3364c4=>this['_model']['markers']['get'](_0x3364c4))['filter'](_0x35ffff=>_0x35ffff);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x6a1521=>{for(const _0x3c28a3 of this['getMarkers']())_0x6a1521['removeMarker'](_0x3c28a3);}),this['_markerNames']['clear']();}['removeMarker'](_0x58e07b){this['_model']['change'](_0x40cab0=>{_0x40cab0['removeMarker'](_0x58e07b);}),this['_markerNames']['delete'](_0x58e07b);}['addRange'](_0x113243){const _0x165145='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x165145),this['_model']['change'](_0x4483f8=>{_0x4483f8['addMarker'](_0x165145,{'range':_0x113243,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x35686d){for(const _0x23b8e9 of this['getRanges']())if(_0x23b8e9['isIntersecting'](_0x35686d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5ee80d=>_0x5ee80d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x21934a,_0x41f255)=>[..._0x21934a,..._0x41f255['getItems']()],[]);}['getFirstRange'](){var _0x36af95;return(null===(_0x36af95=this['getFirstMarker']())||void 0x0===_0x36af95?void 0x0:_0x36af95['getRange']())||null;}['getContainedElement'](){const _0x34ce85=this['getRanges']();if(0x1!=_0x34ce85['length'])return null;const _0x508512=_0x34ce85[0x0],_0x46bdf4=_0x508512['start']['nodeAfter'],_0x2c9302=_0x508512['end']['nodeBefore'];return _0x46bdf4 instanceof _0x4bddb3?_0x46bdf4!=_0x2c9302?null:_0x46bdf4: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 _0xa4147c=[];let _0x6de630=this['head'];for(;_0x6de630;)_0xa4147c['push'](_0x6de630),_0x6de630=_0x6de630['next'];return _0xa4147c;}['setAttribute'](_0x29c07b,_0x4f2c31){const _0x2f6dca=_0xe225ca(this['attributes']);_0x596791(_0x2f6dca,_0x29c07b,_0x4f2c31),_0x2da674(_0x2f6dca,this['attributes'])||(this['attributes']=_0x2f6dca,this['_onAttributesChange'](_0x2f6dca));}['removeAttribute'](_0x4d3b05){const _0x2c0444=_0xe225ca(this['attributes']);_0x2ef1e6(_0x2c0444,_0x4d3b05),_0x2da674(_0x2c0444,this['attributes'])||(this['attributes']=_0x2c0444,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 _0xdda64a()['substr'](0x1,0x5);}constructor(_0x7d1990,_0x5538e2){super(),this['_isDataLoaded']=!0x1,this['id']=_0x5538e2['id'],this['type']=_0x5538e2['type'],this['subType']=_0x5538e2['subType']||null,this['author']=_0x5538e2['author'],this['creator']=_0x5538e2['creator']||_0x5538e2['author'],this['isExternal']=Boolean(_0x5538e2['attributes']&&_0x5538e2['attributes']['@external']),this['data']=null,this['_model']=_0x7d1990,this['_onAccept']=_0x5538e2['onAccept'],this['_onDiscard']=_0x5538e2['onDiscard'],this['_onAttributesChange']=_0x5538e2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5538e2['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x4aa10f,_0x2957f5,_0x40e22b){const t=_0x4aa10f['t'];switch(_0x2957f5){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',_0x40e22b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x40e22b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x40e22b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x40e22b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x40e22b);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',_0x40e22b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x40e22b);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',_0x40e22b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x40e22b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x40e22b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x40e22b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x40e22b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x40e22b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x40e22b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x40e22b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x40e22b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x40e22b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x40e22b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x40e22b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x40e22b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x40e22b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x40e22b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x40e22b);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'},_0x40e22b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x40e22b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x40e22b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x40e22b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x40e22b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x40e22b);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'},_0x40e22b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x40e22b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x40e22b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x40e22b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x40e22b);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'},_0x40e22b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x40e22b);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'},_0x40e22b);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'},_0x40e22b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x40e22b);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'},_0x40e22b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x40e22b);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'},_0x40e22b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x40e22b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x40e22b);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'},_0x40e22b);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'},_0x40e22b);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 _0x2957f5;}}class f{['getDescriptions'](_0x33a129){const _0x5cc454=[],_0x1f3db7=new Set(),_0x55f53d=new Set();for(let _0x29c7b6=0x0;_0x29c7b6<_0x33a129['length'];_0x29c7b6++){const _0x3fa7e0=_0x33a129[_0x29c7b6];if(!_0x3fa7e0['isInContent'])continue;const _0x343f87=this['_handleCustomCallbackDescription'](_0x3fa7e0);if(_0x343f87){if(null!=_0x3fa7e0['subType']){if(_0x1f3db7['has'](_0x3fa7e0['subType']))continue;_0x1f3db7['add'](_0x3fa7e0['subType']);}_0x5cc454['push'](_0x343f87);}else{if('attribute'!=_0x3fa7e0['type'])'insertion'!=_0x3fa7e0['type']&&'deletion'!=_0x3fa7e0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5cc454,_0x3fa7e0,_0x33a129[_0x29c7b6+0x1]);else{const _0x4b4be3=_0x3fa7e0['data']['key'];if(_0x55f53d['has'](_0x4b4be3))continue;_0x55f53d['add'](_0x3fa7e0['data']['key']),_0x4b4be3==m?this['_handleRenameSuggestionDescription'](_0x5cc454,_0x3fa7e0):this['_handleAttributeSuggestionDescription'](_0x5cc454,_0x3fa7e0);}}}return this['_resolveDescriptionItems'](_0x5cc454);}['registerDescriptionCallback'](_0x49e909){this['_customCallbacks']['push'](_0x49e909);}['registerElementLabel'](_0x549e93,_0x518a22,_0x3b64a1=_0x5190c6['normal']){'function'==typeof _0x549e93?_0x6d11c3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x549e93,'label':_0x518a22,'priority':_0x3b64a1}):this['_itemLabels']['set'](_0x549e93,_0x518a22);}['registerAttributeLabel'](_0xb6da4e,_0x10a4fa){this['_attributeLabels']['set'](_0xb6da4e,_0x10a4fa);}['getItemLabel'](_0x1442cf,_0x4c0b9b=0x1){let _0x38ee92;for(const _0x1b3898 of this['_itemLabelsCallbacks'])if(_0x1b3898['matchingCallback'](_0x1442cf)){_0x38ee92=_0x1b3898['label'];break;}return _0x38ee92||(_0x38ee92=this['_itemLabels']['get'](_0x1442cf['name'])),_0x38ee92?_0x38ee92(_0x4c0b9b):0x1!==_0x4c0b9b?_0x4c0b9b+'\x20'+_0x1442cf['name']+'s':''+_0x1442cf['name'];}['_addDescriptionItems'](_0x1f5c1a,_0x530d2f){const _0x235b0e=_0x530d2f['getFirstRange']()['getWalker'](),_0x54066f='insertion'==_0x530d2f['type']?'add':'remove';for(const _0x14268c of _0x235b0e){const _0x4c1050=_0x14268c['item'],_0x2ea04f=_0x1f5c1a[_0x1f5c1a['length']-0x1];if(_0x4c1050['is']('$textProxy'))_0x2ea04f&&_0x2ea04f['type']['indexOf']('Container')>-0x1&&_0x1f5c1a['pop'](),_0x2ea04f&&'text'==_0x2ea04f['type']?_0x2ea04f[_0x54066f]+=_0x4c1050['data']:_0x1f5c1a['push']({'type':'text','add':'add'==_0x54066f?_0x4c1050['data']:'','remove':'remove'==_0x54066f?_0x4c1050['data']:''});else{if(this['_schema']['isObject'](_0x4c1050)){const _0x5e047e=_0x4c1050;if(_0x2ea04f&&_0x2ea04f['type']['indexOf']('Container')>-0x1&&_0x1f5c1a['pop'](),'elementEnd'==_0x14268c['type'])continue;_0x2ea04f&&_0x2ea04f['type']==_0x54066f+'Object'&&_0x2ea04f['element']['name']==_0x5e047e['name']?_0x2ea04f['quantity']++:_0x1f5c1a['push']({'type':_0x54066f+'Object','element':_0x5e047e,'quantity':0x1}),_0x235b0e['skip'](_0x5a12ec=>!('elementEnd'==_0x5a12ec['type']&&_0x5a12ec['item']==_0x4c1050));}else{if(this['_schema']['checkChild'](_0x4c1050,'$text')||_0x4c1050['is']('element','softBreak')){const _0x6b81db=_0x4c1050;if('add'==_0x54066f&&'elementStart'==_0x14268c['type']||'remove'==_0x54066f&&'elementEnd'==_0x14268c['type'])continue;if(_0x2ea04f&&-0x1==_0x2ea04f['type']['indexOf']('Container')){'text'==_0x2ea04f['type']&&(_0x2ea04f[_0x54066f]+='\x0a');continue;}let _0x2e9973;if(_0x2e9973='add'==_0x54066f?_0x6b81db['nextSibling']&&!this['_schema']['isObject'](_0x6b81db['nextSibling'])?_0x6b81db['nextSibling']:null:_0x6b81db['previousSibling']&&!this['_schema']['isObject'](_0x6b81db['previousSibling'])?_0x6b81db['previousSibling']:null,_0x6b81db['isEmpty']||_0x2e9973&&_0x2e9973['isEmpty']){const _0x27d2e3=_0x2e9973&&_0x2e9973['isEmpty']?_0x2e9973:_0x6b81db;_0x2ea04f&&_0x2ea04f['type']==_0x54066f+'EmptyContainer'&&_0x2ea04f['element']['name']==_0x27d2e3['name']?_0x2ea04f['quantity']++:_0x1f5c1a['push']({'type':_0x54066f+'EmptyContainer','element':_0x27d2e3,'quantity':0x1});}else _0x1f5c1a['push']({'type':_0x54066f+'Container','element':_0x6b81db});}}}}}['_resolveDescriptionItems'](_0xbae996){const _0xf2b5de=this['_locale'],_0x30906e=[],_0x17ed0f=[],_0x2a7fcd=[];for(const _0x337dcf of _0xbae996)switch(_0x337dcf['type']){case'text':if(_0x337dcf['add']=_0x337dcf['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x337dcf['remove']=_0x337dcf['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x337dcf['add']&&''!=_0x337dcf['remove']){_0x30906e['push']({'type':'replace','content':o(_0xf2b5de,'REPLACE_TEXT',['\x22'+_0x337dcf['remove']+'\x22','\x22'+_0x337dcf['add']+'\x22'])});continue;}if(null!=_0x337dcf['add']['match'](/^ +$/)){_0x30906e['push']({'type':'insertion','content':o(_0xf2b5de,'*Insert:*\x20%0',o(_0xf2b5de,'ELEMENT_SPACE',_0x337dcf['add']['length']))});continue;}if(null!=_0x337dcf['remove']['match'](/^ +$/)){_0x30906e['push']({'type':'deletion','content':o(_0xf2b5de,'*Remove:*\x20%0',o(_0xf2b5de,'ELEMENT_SPACE',_0x337dcf['remove']['length']))});continue;}if(''!=_0x337dcf['add']){_0x30906e['push']({'type':'insertion','content':o(_0xf2b5de,'*Insert:*\x20%0','\x22'+_0x337dcf['add']+'\x22')});continue;}_0x30906e['push']({'type':'deletion','content':o(_0xf2b5de,'*Remove:*\x20%0','\x22'+_0x337dcf['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x30906e['push']({'type':'insertion','content':o(_0xf2b5de,'*Insert:*\x20%0',this['getItemLabel'](_0x337dcf['element'],_0x337dcf['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x30906e['push']({'type':'deletion','content':o(_0xf2b5de,'*Remove:*\x20%0',this['getItemLabel'](_0x337dcf['element'],_0x337dcf['quantity']))});continue;case'addContainer':_0x30906e['push']({'type':'insertion','content':o(_0xf2b5de,'*Split:*\x20%0',this['getItemLabel'](_0x337dcf['element'],_0x337dcf['quantity']))});continue;case'removeContainer':_0x30906e['push']({'type':'deletion','content':o(_0xf2b5de,'*Merge:*\x20%0',this['getItemLabel'](_0x337dcf['element'],_0x337dcf['quantity']))});continue;case'addFormat':_0x17ed0f['push'](_0x337dcf['key']);continue;case'removeFormat':_0x2a7fcd['push'](_0x337dcf['key']);continue;default:_0x30906e['push'](_0x337dcf);}if(_0x17ed0f['length']){const _0x200f18=_0x17ed0f['map'](_0x27ac90=>this['_attributeLabels']['has'](_0x27ac90)?this['_attributeLabels']['get'](_0x27ac90):_0x27ac90)['join'](',\x20');_0x30906e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x200f18)});}if(_0x2a7fcd['length']){const _0x1bd886=_0x2a7fcd['map'](_0x22658a=>this['_attributeLabels']['has'](_0x22658a)?this['_attributeLabels']['get'](_0x22658a):_0x22658a)['join'](',\x20');_0x30906e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1bd886)});}return _0x30906e;}['_handleCustomCallbackDescription'](_0x202a50){for(const _0x2a2dc3 of this['_customCallbacks']){const _0x4c78e7=_0x2a2dc3(_0x202a50);if(_0x4c78e7&&'type'in _0x4c78e7)return _0x4c78e7;}}['_handleAttributeSuggestionDescription'](_0x51eb11,_0x4d7e6a){const _0xef7b53=_0x4d7e6a['data'],_0x21bcf1=void 0x0===_0xef7b53['newValue']?'removeFormat':'addFormat';_0x51eb11['push']({'type':_0x21bcf1,'key':_0xef7b53['key']});}['_handleRenameSuggestionDescription'](_0xe94a17,_0x21e805){_0xe94a17['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x21e805['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2f064d,_0x257116,_0x3b8340){if(this['_addDescriptionItems'](_0x2f064d,_0x257116),_0x3b8340&&_0x3b8340['getFirstRange']()&&!_0x257116['getFirstRange']()['end']['isEqual'](_0x3b8340['getFirstRange']()['start'])){const _0x2f7dec=_0x2f064d[_0x2f064d['length']-0x1],_0x3b9d3e='insertion'==_0x257116['type']?'add':'remove';_0x2f7dec&&'text'==_0x2f7dec['type']&&(_0x2f7dec[_0x3b9d3e]+='\x0a');}}constructor(_0x1e0476,_0x25b5cd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1e0476,this['_locale']=_0x25b5cd;}}class E extends _0x61eb43{['afterInit'](){const _0x2d0b46=this['editor'],_0x4d301a=_0x2d0b46['plugins']['get']('TrackChangesEditing');_0x2d0b46['commands']['get']('showAIAssistant')&&_0x4d301a['enableCommand']('showAIAssistant');}}class V extends _0x61eb43{['afterInit'](){const _0x200d64=this['editor'],_0x1605e8=_0x200d64['locale'];if(!_0x200d64['plugins']['has']('AlignmentEditing'))return;const _0x1b5d64=_0x200d64['plugins']['get']('TrackChangesEditing');_0x1b5d64['enableDefaultAttributesIntegration']('alignment'),_0x1b5d64['registerBlockAttribute']('alignment'),_0x1b5d64['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1605e8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39c730=this['editor'],_0x277313=_0x39c730['locale'];_0x39c730['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x311fe8=>{if('formatBlock'!=_0x311fe8['type'])return;const {data:_0x530b9f}=_0x311fe8;if(_0x530b9f&&'alignment'==_0x530b9f['commandName']){const _0xf53738=_0x530b9f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x277313,'*Format:*\x20%0',function(_0x59fe4f){switch(_0x59fe4f){case'left':return o(_0x277313,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x277313,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x277313,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x277313,'FORMAT_JUSTIFY_TEXT');}}(_0xf53738))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x61eb43{['afterInit'](){const _0x47f75e=this['editor'],_0x921071=_0x47f75e['plugins']['get']('TrackChangesEditing'),_0x24d8c6=_0x47f75e['locale'];for(const _0x20fe27 of ti){if(!_0x47f75e['plugins']['has'](_0x20fe27))continue;const _0x457c3a=_0x20fe27['slice'](0x0,-0x7)['toLowerCase'](),_0x2fa6f5='FORMAT_'+_0x457c3a['toUpperCase']();_0x921071['enableDefaultAttributesIntegration'](_0x457c3a),_0x921071['registerInlineAttribute'](_0x457c3a),_0x921071['descriptionFactory']['registerAttributeLabel'](_0x457c3a,o(_0x24d8c6,_0x2fa6f5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x939235=this['editor'],_0x2a37e2=_0x939235['locale'],_0x10ccac=_0x939235['plugins']['get']('TrackChangesEditing');function _0x204f5b(_0x57e95c,_0x4fcdd6){_0x10ccac['descriptionFactory']['registerDescriptionCallback'](_0xc793a1=>{if('formatInline'!=_0xc793a1['type'])return;const {data:_0x3f071e}=_0xc793a1;return _0x3f071e&&_0x3f071e['commandName']===_0x57e95c?_0x3f071e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a37e2,'*Format:*\x20%0',_0x4fcdd6)}:{'type':'format','content':o(_0x2a37e2,'*Remove\x20format:*\x20%0',_0x4fcdd6)}:void 0x0;});}_0x204f5b('bold',o(_0x2a37e2,'FORMAT_BOLD')),_0x204f5b('italic',o(_0x2a37e2,'FORMAT_ITALIC')),_0x204f5b('underline',o(_0x2a37e2,'FORMAT_UNDERLINE')),_0x204f5b('code',o(_0x2a37e2,'FORMAT_CODE')),_0x204f5b('strikethrough',o(_0x2a37e2,'FORMAT_STRIKETHROUGH')),_0x204f5b('subscript',o(_0x2a37e2,'FORMAT_SUBSCRIPT')),_0x204f5b('superscript',o(_0x2a37e2,'FORMAT_SUPERSCRIPT'));}}class O extends _0x61eb43{['afterInit'](){const _0x39156c=this['editor'],_0x5086b=_0x39156c['locale'];if(!_0x39156c['plugins']['has']('BlockQuoteEditing'))return;const _0x5c42a6=_0x39156c['plugins']['get']('TrackChangesEditing'),_0x29e24f=this['editor']['commands']['get']('blockQuote');_0x5c42a6['enableCommand']('blockQuote',(_0xf273f8,_0x54e633={})=>{const _0x508cf4=this['editor']['model']['document']['selection'],_0x36bbec=_0x54e633&&void 0x0!==_0x54e633['forceValue']?_0x54e633['forceValue']:!_0x29e24f['value'];let _0x30a6d9=[];if(_0x36bbec){const _0x197171=Array['from'](_0x508cf4['getSelectedBlocks']())['filter'](_0x8f29ae=>oo(_0x8f29ae)||function(_0x22184e,_0x407e50){const _0xa79b17=_0x407e50['checkChild'](_0x22184e['parent'],'blockQuote'),_0x3ce314=_0x407e50['checkChild'](['$root','blockQuote'],_0x22184e);return _0xa79b17&&_0x3ce314;}(_0x8f29ae,this['editor']['model']['schema']));_0x30a6d9=to(_0x197171,_0x39156c['model']);}else{const _0x1bde6e=Array['from'](_0x508cf4['getSelectedBlocks']())['filter'](_0x55a7d5=>oo(_0x55a7d5));_0x30a6d9=to(_0x1bde6e,_0x39156c['model']);}_0x39156c['model']['change'](()=>{for(const _0xf26726 of _0x30a6d9)_0x5c42a6['markBlockFormat'](_0xf26726,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x36bbec}]});});}),_0x5c42a6['descriptionFactory']['registerDescriptionCallback'](_0x4efb84=>{const {data:_0x120b40}=_0x4efb84;if(_0x120b40&&'blockQuote'==_0x120b40['commandName']){const _0x3e2619=o(_0x5086b,'ELEMENT_BLOCK_QUOTE');return _0x120b40['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5086b,'*Set\x20format:*\x20%0',_0x3e2619)}:{'type':'format','content':o(_0x5086b,'*Remove\x20format:*\x20%0',_0x3e2619)};}});}}function oo(_0x9b8ad6){return'blockQuote'==_0x9b8ad6['parent']['name'];}class F extends _0x61eb43{['afterInit'](){const _0x53c99a=this['editor'];_0x53c99a['plugins']['has']('CaseChange')&&(_0x53c99a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x53c99a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x53c99a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x61eb43{['afterInit'](){const _0x231a3f=this['editor'];_0x231a3f['commands']['get']('ckbox')&&_0x231a3f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x61eb43{['afterInit'](){const _0x3603ea=this['editor'];if(!_0x3603ea['plugins']['has']('CodeBlock'))return;const _0x48f076=_0x3603ea['plugins']['get']('TrackChangesEditing'),_0x3172e4=_0x3603ea['locale'],_0xa2d790=_0x3603ea['config']['get']('codeBlock')['languages'],_0xa431e6=_0x3603ea['commands']['get']('codeBlock');_0x48f076['enableCommand']('indentCodeBlock'),_0x48f076['enableCommand']('outdentCodeBlock'),_0x48f076['enableCommand']('codeBlock',(_0x2fd4e8,_0x38337e={})=>{const _0x18620a=_0x3603ea['model'],_0x4b3e83=_0x3603ea['model']['document']['selection'],_0x49a618=_0x38337e&&void 0x0!==_0x38337e['forceValue']?_0x38337e['forceValue']:!_0xa431e6['value'];let _0x2ee57a;_0x38337e['language']||(_0x38337e['language']=_0xa2d790[0x0]['language']),_0x2ee57a=_0x49a618?Array['from'](_0x4b3e83['getSelectedBlocks']())['filter'](_0x57891d=>eo(_0x57891d)||function(_0x44accd,_0x537623){if(_0x44accd['is']('rootElement')||_0x537623['isLimit'](_0x44accd))return!0x1;return _0x537623['checkChild'](_0x44accd['parent'],'codeBlock');}(_0x57891d,_0x18620a['schema'])):Array['from'](_0x4b3e83['getSelectedBlocks']())['filter'](_0x5d7952=>eo(_0x5d7952));const _0x5ebb04=to(_0x2ee57a,_0x18620a);_0x18620a['change'](()=>{for(const _0x5bb376 of _0x5ebb04)_0x48f076['markBlockFormat'](_0x5bb376,{'commandName':'codeBlock','commandParams':[{..._0x38337e,'forceValue':_0x49a618}],'formatGroupId':'blockName'});});}),(_0x48f076['descriptionFactory']['registerElementLabel']('codeBlock',_0x47a1c1=>o(_0x3172e4,'ELEMENT_CODE_BLOCK',_0x47a1c1)),_0x48f076['descriptionFactory']['registerDescriptionCallback'](_0x330b40=>{if('formatBlock'!=_0x330b40['type'])return;const _0x2aa257=_0x3172e4['t'],{data:_0x5b2b4a}=_0x330b40;if(!_0x5b2b4a||'codeBlock'!=_0x5b2b4a['commandName'])return;const _0x43f7a5=_0x5b2b4a['commandParams'][0x0]['language'],_0x35b658=_0x2aa257(_0xa2d790['find'](_0xfbdd8=>_0xfbdd8['language']===_0x43f7a5)['label'])['toLowerCase']();return _0x5b2b4a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3172e4,'*Set\x20format:*\x20%0',o(_0x3172e4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x35b658+')')}:{'type':'format','content':o(_0x3172e4,'*Remove\x20format:*\x20%0',o(_0x3172e4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1a2933){return'codeBlock'==_0x1a2933['name'];}class H extends _0x61eb43{['afterInit'](){const _0x59ec84=this['editor'];if(!_0x59ec84['plugins']['has']('CommentsEditing'))return;_0x59ec84['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x331887,_0x349a75,_0x1471c2){const _0x352292=[];for(const _0x77dc6a of _0x349a75['getItems']())_0x77dc6a['hasAttribute'](_0x331887)&&_0x352292['push'](_0x1471c2['createRangeOn'](_0x77dc6a));return _0x352292;}function _e(_0xf92133,_0x533fc9,{showActiveMarker:_0x3df6c4=!0x0}={}){const _0x44f636=_0xf92133['plugins']['get']('TrackChangesEditing');return(_0xb2391,_0xaa9c31,_0x1550ae)=>{if(!_0x1550ae['consumable']['test'](_0xaa9c31['markerRange'],_0xb2391['name']))return;const _0x30a865=_0xaa9c31['markerRange']['getWalker'](),_0xde298c=_0xaa9c31['markerRange']['start'],_0x47509c=_0xf92133['model']['schema'];let _0x2bfccc=null,_0x2162e0=null,_0xfd5d3c=!0x1,_0x47f085=!0x1;for(const _0xa20b8e of _0x30a865){const _0x1d0bfa=_0xa20b8e['item'];_0xfd5d3c=_0xfd5d3c||_0x47509c['isContent'](_0x1d0bfa);const _0x3c5b92=_0x1550ae['mapper']['toViewElement'](_0x1d0bfa);if(_0x3c5b92&&_0x3c5b92['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xa20b8e['type']&&(_0x47509c['isBlock'](_0x1d0bfa)&&!_0x47509c['isLimit'](_0x1d0bfa)&&(_0x1d0bfa['nextSibling']||_0xde298c['isAtEnd']?_0x2bfccc&&_0x2bfccc['parent']==_0x1d0bfa||(_0x2bfccc=_0x1d0bfa,_0x67ff1(_0xa20b8e['previousPosition']),_0x47f085=!0x0):_0x2162e0=_0x2162e0||_0xa20b8e['previousPosition']));}function _0x67ff1(_0x1ced19){const _0x25fa38=_0x1550ae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x533fc9}),_0x538716=_0x1550ae['mapper']['toViewPosition'](_0x1ced19);_0x3df6c4&&_0x44f636['activeMarkers']['includes'](_0xaa9c31['markerName'])&&_0x1550ae['writer']['addClass']('ck-suggestion-marker--active',_0x25fa38),_0x1550ae['writer']['insert'](_0x538716,_0x25fa38),_0x1550ae['mapper']['bindElementToMarker'](_0x25fa38,_0xaa9c31['markerName']);}_0xfd5d3c||_0x47f085||!_0x2162e0||_0x67ff1(_0x2162e0);};}class q extends _0x61eb43{static get['requires'](){return[_0x2b1bb1];}['init'](){const _0x1cf4ac=this['editor'],_0x529306=_0x1cf4ac['plugins']['get']('TrackChangesEditing');_0x529306['enableCommand']('delete');const _0x295a96=_0x1cf4ac['commands']['get']('deleteForward');_0x529306['enableCommand']('deleteForward',(_0xd00559,_0x453474={})=>{const _0x152afc=_0x1cf4ac['model']['createSelection'](_0x1cf4ac['model']['document']['selection']);_0x152afc['isCollapsed']&&_0x1cf4ac['model']['modifySelection'](_0x152afc,{'direction':'forward','unit':_0x453474['unit']});const _0x423221=_0x152afc['getFirstRange'](),_0x3f5ebd=_0x2819a3['fromRange'](_0x423221);let _0x5ab871;_0xd00559(_0x453474),_0x5ab871='$graveyard'==_0x3f5ebd['root']['rootName']?_0x1cf4ac['model']['createRange'](_0x423221['start']):_0x1cf4ac['model']['createRange'](_0x3f5ebd['start'],_0x3f5ebd['end']),_0x3f5ebd['detach'](),_0x1cf4ac['model']['enqueueChange'](_0x295a96['buffer']['batch'],_0x74099d=>{_0x295a96['buffer']['lock'](),_0x74099d['setSelection'](_0x74099d['createRange'](_0x5ab871['end'])),_0x295a96['buffer']['unlock']();});}),_0x1cf4ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1cf4ac,'merge'),{'priority':'high'}),_0x1cf4ac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x405f5e,_0x530b16,_0x17cec6)=>{_0x17cec6['options']['showSuggestionHighlights']&&_e(_0x1cf4ac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x405f5e,_0x530b16,_0x17cec6);},{'priority':'high'}),_0x1cf4ac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4c93bb,_0x11e7ad,_0x3731fc)=>{const _0x330ef9=_0x3731fc['mapper']['markerNameToElements'](_0x11e7ad['markerName']);if(_0x330ef9){for(const _0x1bc62d of _0x330ef9)_0x1bc62d['is']('uiElement')&&(_0x3731fc['mapper']['unbindElementFromMarkerName'](_0x1bc62d,_0x11e7ad['markerName']),_0x3731fc['writer']['remove'](_0x1bc62d));}},{'priority':'high'});}}class z extends _0x61eb43{['afterInit'](){const _0x53cbcd=this['editor'];if(!_0x53cbcd['plugins']['has']('ListEditing'))return;const _0x3ca8b7=_0x53cbcd['locale'],_0x48c74c=_0x53cbcd['plugins']['get']('TrackChangesEditing'),_0x24de1d=_0x53cbcd['plugins']['has']('TodoListEditing'),_0x55c266=!!_0x53cbcd['config']['get']('list.multiBlock');function _0x17121b(_0x210828){return{'type':'format','content':''+o(_0x3ca8b7,'*Set\x20format:*\x20%0',_0x210828)};}function _0x1e4172(_0x5e1472){return{'type':'format','content':''+o(_0x3ca8b7,'*Remove\x20format:*\x20%0',_0x5e1472)};}_0x48c74c['enableDefaultAttributesIntegration']('numberedList'),_0x48c74c['enableDefaultAttributesIntegration']('bulletedList'),_0x48c74c['enableDefaultAttributesIntegration']('customNumberedList'),_0x48c74c['enableDefaultAttributesIntegration']('customBulletedList'),_0x48c74c['enableDefaultAttributesIntegration']('indentList'),_0x48c74c['enableDefaultAttributesIntegration']('outdentList'),_0x48c74c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x48c74c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x48c74c['registerBlockAttribute']('listItemId'),_0x48c74c['registerBlockAttribute']('listType'),_0x48c74c['registerBlockAttribute']('listIndent'),_0x55c266&&(_0x48c74c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x48c74c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x24de1d&&(_0x48c74c['enableDefaultAttributesIntegration']('todoList'),_0x48c74c['enableDefaultAttributesIntegration']('checkTodoList'),_0x48c74c['registerBlockAttribute']('todoListChecked'),_0x48c74c['descriptionFactory']['registerDescriptionCallback'](_0x35f923=>{const {data:_0x494c2c}=_0x35f923;if(_0x494c2c&&'todoListChecked'==_0x494c2c['key'])return{'type':'format','content':_0x494c2c['newValue']?o(_0x3ca8b7,'*Check\x20item*'):o(_0x3ca8b7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x362071=>{if(_0x362071['batch']['isUndo'])return!0x1;let _0x31e4f8=!0x1;const _0x1684f0=_0x48c74c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe7558c=>'todoListChecked'===_0x48c74c['_getAttributeKey'](_0xe7558c));for(const _0x53f4c of _0x1684f0){'todo'!=_0x53f4c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x48c74c['_findSuggestions'](_0x53f4c['getFirstRange'](),'attribute')['find'](_0x7e39c5=>'listType'===_0x48c74c['_getAttributeKey'](_0x7e39c5['suggestion']))||(_0x362071['removeMarker'](_0x53f4c['getFirstMarker']()),_0x31e4f8=!0x0));}return _0x31e4f8;})),_0x48c74c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3ca8b7,'FORMAT_INDENT'));const _0xa41052={'type':'format','content':''};_0x48c74c['descriptionFactory']['registerDescriptionCallback'](_0x4f0a63=>{const {data:_0x2b5fb1}=_0x4f0a63;if(!_0x2b5fb1||'listType'!=_0x2b5fb1['key'])return;let _0x3baae8=_0x4f0a63['head'];for(;_0x3baae8;){if(_0x3baae8['data']&&(('listStyle'==_0x3baae8['data']['key']||'listMarkerStyle'==_0x3baae8['data']['key'])&&(_0x3baae8['data']['newValue']&&'default'!=_0x3baae8['data']['newValue']||'default'!=_0x3baae8['data']['oldValue']&&!_0x2b5fb1['newValue'])||!_0x55c266&&_0x3baae8['data']['key']==m))return _0xa41052;_0x3baae8=_0x3baae8['next'];}if(null==_0x2b5fb1['newValue'])switch(_0x2b5fb1['oldValue']){case'bulleted':return _0x1e4172(o(_0x3ca8b7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e4172(o(_0x3ca8b7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e4172(o(_0x3ca8b7,'ELEMENT_TODO_LIST'));}switch(_0x2b5fb1['newValue']){case'bulleted':return _0x17121b(o(_0x3ca8b7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17121b(o(_0x3ca8b7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17121b(o(_0x3ca8b7,'ELEMENT_TODO_LIST'));}}),_0x48c74c['descriptionFactory']['registerDescriptionCallback'](_0x5c8dff=>{const {data:_0xc7de00}=_0x5c8dff;if(_0xc7de00&&'listIndent'==_0xc7de00['key'])return null==_0xc7de00['newValue']||null==_0xc7de00['oldValue']&&0x0==_0xc7de00['newValue']?_0xa41052:void 0x0;}),_0x48c74c['descriptionFactory']['registerDescriptionCallback'](_0x521719=>{if('attribute'!=_0x521719['type'])return;const {data:_0x5a46e0}=_0x521719;if(!_0x5a46e0||'listItemId'!=_0x5a46e0['key'])return;const _0x2d0b3d=le(_0x521719);return'newValue'==_0x2d0b3d?{'type':'format','content':o(_0x3ca8b7,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2d0b3d?{'type':'format','content':o(_0x3ca8b7,'*Split:*\x20list\x20item')}:_0xa41052;}),_0x53cbcd['model']['document']['registerPostFixer'](_0x2ea7e4=>this['listItemIdFixer'](_0x2ea7e4)),_0x53cbcd['model']['document']['registerPostFixer'](_0x986477=>this['noTrackChangesFixer'](_0x986477)),_0x53cbcd['model']['document']['registerPostFixer'](_0x128441=>this['assureChains'](_0x128441)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5bbbdc){if(_0x5bbbdc['batch']['isUndo']||!_0x5bbbdc['batch']['isLocal'])return!0x1;let _0x1be83f=!0x1;const _0x3a9a88=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d6fe6=>_0x1d6fe6['data']&&'listItemId'==_0x1d6fe6['data']['key'])['filter'](_0x778eb4=>_0x778eb4['data']['newValue']&&_0x778eb4['data']['oldValue']);for(const _0x3c0f6e of _0x3a9a88)le(_0x3c0f6e)||(_0x5bbbdc['removeMarker'](_0x3c0f6e['getFirstMarker']()),_0x1be83f=!0x0);return _0x1be83f;}['noTrackChangesFixer'](_0x11cd99){if(_0x11cd99['batch']['isUndo']||!_0x11cd99['batch']['isLocal'])return!0x1;const _0x41efe9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x41efe9['trackChangesCommand']['value'])return!0x1;let _0x5f58ce=!0x1;const _0xa83e6d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4fbb00=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4698bf=>'attribute'==_0x4698bf['type'])['filter'](_0x585048=>_0xa83e6d['includes'](_0x585048['attributeKey']));if(0x0==_0x4fbb00['length'])return _0x5f58ce;for(const _0x358a1c of _0x4fbb00){const _0x172b7d=_0x41efe9['_findSuggestions'](_0x358a1c['range'],'attribute')['filter'](_0x495601=>!_0x495601['meta']['isNextTo'])['map'](_0x4e0570=>_0x4e0570['suggestion'])['filter'](_0x3640cb=>{const _0x3b7330=_0x41efe9['_getAttributeKey'](_0x3640cb);return _0xa83e6d['includes'](_0x3b7330);});if(_0x172b7d['length']){for(const _0x513385 of _0x172b7d)_0x11cd99['removeMarker'](_0x513385['getFirstMarker']());_0x5f58ce=!0x0;}}return _0x5f58ce;}['assureChains'](_0x122eaa){if(_0x122eaa['batch']['isUndo']||!_0x122eaa['batch']['isLocal'])return!0x1;const _0x4823f2=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2b2e6e=!0x1;const _0x12d288=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x195013 of _0x4823f2['getSuggestions']({'skipNotAttached':!0x0})){const _0x38757a=_0x4823f2['_findSuggestions'](_0x195013['getFirstRange'](),'attribute')['map'](_0x4ee8dd=>_0x4ee8dd['suggestion'])['filter'](_0x20b434=>_0x20b434['data']&&_0x12d288['includes'](_0x20b434['data']['key']));if(!_0x38757a['length'])continue;const _0xb25bb0=_0x38757a[0x0]['head']['attributes']['groupId'];if(!_0x38757a['every'](_0x3a8b58=>_0x3a8b58['attributes']['groupId']===_0xb25bb0)){for(const _0x2402d7 of _0x38757a)_0x355804(_0x2402d7,_0xb25bb0)&&(_0x2b2e6e=!0x0);}}return _0x2b2e6e;function _0x2c9063(_0x149237,_0x41d567){for(const _0x5bd498 of _0x4823f2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d6431=>'attribute'==_0x3d6431['type']&&_0x3d6431['attributes']['groupId']==_0x149237))_0x5bd498['setAttribute']('groupId',_0x41d567);}function _0x355804(_0x17c2ae,_0x3fabf5){let _0x1a9926=_0x17c2ae['head'],_0x3bd7ac=!0x1;for(;_0x1a9926;)_0x1a9926['attributes']['groupId']!=_0x3fabf5&&(_0x2c9063(_0x1a9926['attributes']['groupId'],_0x3fabf5),_0x1a9926['setAttribute']('groupId',_0x3fabf5),_0x3bd7ac=!0x0),_0x1a9926=_0x1a9926['next'];return _0x3bd7ac;}}['_supportLegacySuggestions'](){const _0x13d11a=this['editor'],_0x3d5038=_0x13d11a['locale'],_0x44a6ac=_0x13d11a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x44a6ac['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4ed36e,_0x20c1d1){const _0x31c859=[];for(let _0x146569 of _0x4ed36e)_0x146569['start']['nodeAfter']===_0x146569['end']['parent']&&(_0x146569=_0x13d11a['model']['createRange'](_0x13d11a['model']['createPositionAt'](_0x146569['start']['nodeAfter'],0x0))),_0x31c859['push'](_0x146569);_0x13d11a['model']['change'](_0x2e1ca8=>{const _0x119ebc=_0x13d11a['model']['document']['selection'],_0x1d618b=Array['from'](_0x119ebc['getRanges']())['map'](_0x8224c0=>_0x2819a3['fromRange'](_0x8224c0));_0x2e1ca8['setSelection'](_0x31c859),_0x13d11a['commands']['get'](_0x20c1d1['commandName'])['refresh'](),_0x20c1d1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x13d11a['execute'](_0x20c1d1['commandName'],..._0x20c1d1['commandParams']),_0x2e1ca8['setSelection'](_0x1d618b);for(const _0x19b278 of _0x1d618b)_0x19b278['detach']();});}),_0x44a6ac['descriptionFactory']['registerElementLabel'](function(_0x4f6f55){const _0x328bc1=!_0x13d11a['model']['schema']['isObject'](_0x4f6f55),_0x4377f7=_0x4f6f55['previousSibling'],_0xe31ad6=_0x4f6f55['nextSibling'],_0xf4012d=_0x4f6f55['getAttribute']('listItemId'),_0xf7beac=!_0x4377f7||_0x4377f7['getAttribute']('listItemId')!==_0xf4012d,_0x3e8ef7=!_0xe31ad6||_0xe31ad6['getAttribute']('listItemId')!==_0xf4012d;return _0x328bc1&&Boolean(_0xf4012d)&&_0xf7beac&&_0x3e8ef7;},_0x1e4408=>o(_0x3d5038,'ELEMENT_LIST_ITEM',_0x1e4408));}['_registerLegacyDescription'](){const _0x498f32=this['editor'],_0x25bb8a=_0x498f32['locale'];function _0x921d81(_0xac9905){const _0x36428c=_0x498f32['commands']['get']('bulletedList')['value'],_0x1c7af6=_0x498f32['commands']['get']('numberedList')['value'];return'numberedList'===_0xac9905?_0x36428c:_0x1c7af6;}_0x498f32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xcac629){if('formatBlock'!=_0xcac629['type'])return;const {data:_0x4dba95}=_0xcac629;if(!_0x4dba95)return;let _0x304d2d,_0x2ed37f,_0x5522be,_0x19a6da;switch(_0x4dba95['commandName']){case'bulletedList':_0x5522be=_0x4dba95['commandParams'][0x0]['forceValue'],_0x19a6da=_0x921d81(_0x4dba95['commandName']),_0x304d2d=_0x5522be?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x19a6da&&_0x498f32['config']['get']('list.multiBlock')||(_0x304d2d='*Change\x20to:*\x20%0'),_0x2ed37f={'type':'format','content':o(_0x25bb8a,_0x304d2d,o(_0x25bb8a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5522be=_0x4dba95['commandParams'][0x0]['forceValue'],_0x19a6da=_0x921d81(_0x4dba95['commandName']),_0x304d2d=_0x5522be?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x19a6da&&_0x498f32['config']['get']('list.multiBlock')||(_0x304d2d='*Change\x20to:*\x20%0'),_0x2ed37f={'type':'format','content':o(_0x25bb8a,_0x304d2d,o(_0x25bb8a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x304d2d='*Indent:*\x20%0',_0x2ed37f={'type':'format','content':o(_0x25bb8a,_0x304d2d,o(_0x25bb8a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x304d2d=function(_0x8208a9){const _0xd94f0d=_0x8208a9['getFirstRange']();let _0x2d2f91=_0xd94f0d['start']['nodeAfter'];for(;_0x2d2f91&&_0xd94f0d['containsItem'](_0x2d2f91);){if(_0x2d2f91['getAttribute']('listIndent')>0x0)return!0x1;_0x2d2f91=_0x2d2f91['nextSibling'];}return!0x0;}(_0xcac629)?o(_0x25bb8a,'*Format:*\x20remove\x20from\x20%0',o(_0x25bb8a,function(_0x3e5572){return'ELEMENT_'+_0x3e5572['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xcac629))):o(_0x25bb8a,'*Outdent:*\x20%0',o(_0x25bb8a,'ELEMENT_LIST_ITEM')),_0x2ed37f={'type':'format','content':_0x304d2d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4dba95['multipleBlocks']&&(_0x304d2d='*Merge:*\x20%0',_0x2ed37f={'type':'deletion','content':o(_0x25bb8a,_0x304d2d,o(_0x25bb8a,'ELEMENT_LIST_ITEM'))});}return _0x2ed37f;});}}function le(_0x2d8d66){let _0x438bea=_0x2d8d66['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x438bea;){const _0xbaaffa=_0x438bea['getAttribute']('listItemId');if(!_0xbaaffa)return!0x1;if(_0xbaaffa==_0x2d8d66['data']['newValue'])return'newValue';if(_0xbaaffa==_0x2d8d66['data']['oldValue'])return'oldValue';_0x438bea=_0x438bea['previousSibling'];}return!0x1;}class ue extends _0x61eb43{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f1bb2=this['editor']['config']['get']('list.properties'),_0x15d26b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f1bb2['styles']&&(_0x15d26b['enableDefaultAttributesIntegration']('listStyle'),_0x15d26b['registerBlockAttribute']('listStyle')),_0x5f1bb2['reversed']&&(_0x15d26b['enableDefaultAttributesIntegration']('listReversed'),_0x15d26b['registerBlockAttribute']('listReversed')),_0x5f1bb2['startIndex']&&(_0x15d26b['enableDefaultAttributesIntegration']('listStart'),_0x15d26b['registerBlockAttribute']('listStart'));const _0x24de89={'type':'format','content':''};_0x15d26b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1f33b0=this['editor']['locale'];_0x15d26b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1f33b0,'FORMAT_LIST_REVERSED')),_0x15d26b['descriptionFactory']['registerDescriptionCallback'](_0x1a9745=>{const {data:_0x3be96c}=_0x1a9745;if(_0x3be96c&&'listReversed'==_0x3be96c['key'])return null==_0x3be96c['newValue']||0x0==_0x3be96c['newValue']&&null==_0x3be96c['oldValue']?_0x24de89:void 0x0;}),_0x15d26b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1f33b0,'FORMAT_LIST_START')),_0x15d26b['descriptionFactory']['registerDescriptionCallback'](_0x86dbca=>{const {data:_0x2962b4}=_0x86dbca;if(_0x2962b4&&'listStart'==_0x2962b4['key'])return null==_0x2962b4['newValue']||0x1==_0x2962b4['newValue']&&null==_0x2962b4['oldValue']?_0x24de89:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2de28e=>{if(_0x2de28e['batch']['isUndo'])return!0x1;let _0x4f890f=!0x1;const _0x36c91a=_0x15d26b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44bb44=>{const _0x18aa34=_0x15d26b['_getAttributeKey'](_0x44bb44);return'listStart'==_0x18aa34||'listReversed'==_0x18aa34;});for(const _0x5cdb3c of _0x36c91a){const _0x39055d=_0x5cdb3c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x39055d||'customNumbered'==_0x39055d)continue;_0x15d26b['_findSuggestions'](_0x5cdb3c['getFirstRange'](),'attribute')['find'](_0x589a12=>'listType'==_0x15d26b['_getAttributeKey'](_0x589a12['suggestion']))||(_0x2de28e['removeMarker'](_0x5cdb3c['getFirstMarker']()),_0x4f890f=!0x0);}return _0x4f890f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xa7d8f9){const _0x24cab9=this['editor']['locale'],{data:_0x4dd2cb}=_0xa7d8f9,_0x223bd6={'type':'format','content':''};if(!_0x4dd2cb||'listStyle'!=_0x4dd2cb['key'])return;if(!_0x4dd2cb['oldValue'])return'default'==_0x4dd2cb['newValue']?_0x223bd6:{'type':'format','content':''+o(_0x24cab9,'*Set\x20format:*\x20%0',o(_0x24cab9,this['_getTranslationKeyForListStyle'](_0x4dd2cb['newValue'])))};if(!_0x4dd2cb['newValue']){if('default'==_0x4dd2cb['oldValue'])return _0x223bd6;let _0x4bfa6a=_0xa7d8f9['head'];for(;_0x4bfa6a;){if(_0x4bfa6a['data']&&'listType'==_0x4bfa6a['data']['key']&&_0x4bfa6a['data']['newValue'])return _0x223bd6;_0x4bfa6a=_0x4bfa6a['next'];}return{'type':'format','content':''+o(_0x24cab9,'*Remove\x20format:*\x20%0',o(_0x24cab9,this['_getTranslationKeyForListStyle'](_0x4dd2cb['oldValue'])))};}if('default'!=_0x4dd2cb['newValue'])return{'type':'format','content':''+o(_0x24cab9,'*Set\x20format:*\x20%0',o(_0x24cab9,this['_getTranslationKeyForListStyle'](_0x4dd2cb['newValue'])))};let _0x598c3b=_0xa7d8f9['head'];for(;_0x598c3b;){if(_0x598c3b['data']&&'listType'==_0x598c3b['data']['key']&&_0x598c3b['data']['newValue']&&_0x598c3b['data']['oldValue'])return _0x223bd6;_0x598c3b=_0x598c3b['next'];}return{'type':'format','content':o(_0x24cab9,'*Set\x20format:*\x20%0',o(_0x24cab9,'ELEMENT_'+_0xa7d8f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x302b6a=this['editor'],_0x33eca3=_0x302b6a['locale'];_0x302b6a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x97cbcb=>{if('formatBlock'!=_0x97cbcb['type'])return;const {data:_0x2efcc0}=_0x97cbcb;if(!_0x2efcc0)return;let _0x1768ea,_0x339804;switch(_0x2efcc0['commandName']){case'listStyle':_0x1768ea='*Change\x20to:*\x20%0',_0x339804={'type':'format','content':o(_0x33eca3,_0x1768ea,o(_0x33eca3,this['_getTranslationKeyForListStyle'](_0x2efcc0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1768ea=_0x2efcc0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x339804={'type':'format','content':o(_0x33eca3,_0x1768ea)};break;case'listStart':_0x1768ea='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x339804={'type':'format','content':o(_0x33eca3,_0x1768ea,_0x2efcc0['commandParams'][0x0]['startIndex'])};}return _0x339804;});}['_getTranslationKeyForListStyle'](_0x5375a2){return'ELEMENT_'+function(_0x450186){if(pe['includes'](_0x450186))return'bulleted';if(ye['includes'](_0x450186))return'numbered';return null;}(_0x5375a2)['toUpperCase']()+'_LIST_'+_0x5375a2['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x61eb43{static get['requires'](){return[_0x46f1e2];}['init'](){const _0x212905=this['editor'],_0x34aa3f=_0x212905['plugins']['get']('TrackChangesEditing'),_0x196b40=_0x212905['commands']['get']('enter');_0x34aa3f['enableCommand']('enter',()=>{_0x212905['model']['change'](_0x5177ee=>{const _0x44f738=_0x212905['model']['document']['selection'],_0x3ad461=_0x44f738['getFirstPosition'](),_0x4efab9=_0x2819a3['fromRange'](_0x44f738['getFirstRange']());if(_0x196b40['enterBlock'](_0x5177ee)){const _0x2bdad0=_0x212905['model']['createPositionAt'](_0x3ad461['parent']['nextSibling'],0x0),_0x35c132=_0x5177ee['createRange'](_0x3ad461,_0x2bdad0);_0x34aa3f['markInsertion'](_0x35c132);}else _0x5177ee['setSelection'](_0x5177ee['createRange'](_0x4efab9['end']));_0x4efab9['detach'](),_0x196b40['fire']('afterExecute',{'writer':_0x5177ee});});}),_0x212905['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x212905,'split'),{'priority':'high'}),_0x212905['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xac25d2,_0x5eba1f,_0x2ba746)=>{const _0x1c2647=_0x2ba746['mapper']['markerNameToElements'](_0x5eba1f['markerName']);if(_0x1c2647){for(const _0x1b983f of _0x1c2647)_0x1b983f['hasClass']('ck-suggestion-marker-split')&&(_0x2ba746['mapper']['unbindElementFromMarkerName'](_0x1b983f,_0x5eba1f['markerName']),_0x2ba746['writer']['remove'](_0x1b983f));}},{'priority':'high'}),_0x212905['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x555b11,_0x4df7cd,_0x48b4af)=>{_0x48b4af['options']['showSuggestionHighlights']&&_e(_0x212905,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x555b11,_0x4df7cd,_0x48b4af);},{'priority':'high'});}}class J extends _0x61eb43{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4721da=this['editor']['plugins']['get']('TrackChangesEditing');_0x4721da['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4721da['enableCommand']('findNext'),_0x4721da['enableCommand']('findPrevious'),_0x4721da['enableCommand']('replace'),_0x4721da['enableCommand']('replaceAll');}['handleFindCommand'](_0x103117,_0x407798,_0x4d3f8d={}){const _0x4f4981=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x103117(_0x2a6bf0=>('string'==typeof _0x407798?_0x4f4981['findByTextCallback'](_0x407798,_0x4d3f8d):_0x407798)(_0x2a6bf0)['filter'](_0x2a2998=>!0x1===this['_isInDeletionRange'](_0x2a2998,_0x2a6bf0['item'])),_0x4d3f8d);}['_isInDeletionRange'](_0x3c841e,_0x2c1776){const _0x5d3972=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c1776,_0x3c841e['start']),this['editor']['model']['createPositionAt'](_0x2c1776,_0x3c841e['end']));for(const _0x1ce12e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5d3972['getIntersection'](_0x1ce12e['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 _0x61eb43{['afterInit'](){const _0x36cec4=this['editor']['locale'],_0x4ca5e9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x22cf4a,commandName:_0x2cac78}of ro)this['editor']['plugins']['has'](_0x22cf4a)&&(_0x4ca5e9['enableDefaultAttributesIntegration'](_0x2cac78),_0x4ca5e9['registerInlineAttribute'](_0x2cac78));_0x36cec4['t'],_0x4ca5e9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x36cec4,'FORMAT_FONT_SIZE')),_0x4ca5e9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x36cec4,'FORMAT_FONT_FAMILY')),_0x4ca5e9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x36cec4,'FORMAT_FONT_COLOR')),_0x4ca5e9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x36cec4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b55aa=this['editor'],_0x4ee54b=_0x2b55aa['locale'];_0x2b55aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x460883=>{const _0x41e105=_0x4ee54b['t'];if('formatInline'!=_0x460883['type'])return;const {data:_0x2a6b16}=_0x460883;if(null!=_0x2a6b16){if('fontSize'==_0x2a6b16['commandName']){const _0xea9f0=_0x2a6b16['commandParams'][0x0]['value'];if(_0xea9f0){const _0x308f80=_0x41e105(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2290d3=>_0x2290d3['model']==_0xea9f0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ee54b,'*Set\x20font\x20size:*\x20%0',_0x308f80)};}return{'type':'format','content':o(_0x4ee54b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2a6b16['commandName']){const _0x391be0=_0x2a6b16['commandParams'][0x0]['value'];return _0x391be0?{'type':'format','content':o(_0x4ee54b,'*Set\x20font\x20family:*\x20%0',_0x391be0)}:{'type':'format','content':o(_0x4ee54b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2a6b16['commandName']){const _0x151fdf=_0x2a6b16['commandParams'][0x0]['value'];if(_0x151fdf){const _0x58ddd9=_0x5a7d3d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2711ac=>_0x2711ac['model']==_0x151fdf);let _0x23ae12=_0x151fdf,_0x2921c2='';return _0x58ddd9&&(_0x23ae12=_0x58ddd9['label'],_0x2921c2=_0x41e105(_0x23ae12)['toLowerCase']()),{'type':'format','content':o(_0x4ee54b,'*Set\x20font\x20color:*\x20%0',_0x2921c2)['trim'](),'color':{'value':_0x151fdf,'title':_0x2921c2||_0x23ae12}};}return{'type':'format','content':o(_0x4ee54b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2a6b16['commandName']){const _0x16aac5=_0x2a6b16['commandParams'][0x0]['value'];if(_0x16aac5){const _0x294642=_0x5a7d3d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x305ce9=>_0x305ce9['model']==_0x16aac5);let _0x399431=_0x16aac5,_0x306403='';return _0x294642&&(_0x399431=_0x294642['label'],_0x306403=_0x41e105(_0x399431)['toLowerCase']()),{'type':'format','content':o(_0x4ee54b,'*Set\x20font\x20background\x20color:*\x20%0',_0x306403)['trim'](),'color':{'value':_0x16aac5,'title':_0x306403||_0x399431}};}return{'type':'format','content':o(_0x4ee54b,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x61eb43{['afterInit'](){const _0x58ae89=this['editor'],_0x196ca9=_0x58ae89['plugins']['get']('TrackChangesEditing'),_0x1e21b2=_0x58ae89['commands']['get']('copyFormat'),_0x5a7697=_0x58ae89['commands']['get']('pasteFormat');_0x1e21b2&&_0x5a7697&&(_0x196ca9['enableDefaultAttributesIntegration']('pasteFormat'),_0x196ca9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1ca1e8=this['editor'],_0x928d95=_0x1ca1e8['locale'];_0x1ca1e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a185=>{if('formatBlock'!=_0x19a185['type']&&'formatInline'!=_0x19a185['type'])return;const {data:_0x35b1c1}=_0x19a185;if(_0x35b1c1&&'pasteFormat'===_0x35b1c1['commandName']){const _0x4f56c8=[],_0x4445c3=_0x35b1c1['commandParams'][0x0];for(const [_0x3b4e35,_0x2c2126]of Object['entries'](_0x4445c3))_0x4f56c8['push'](so(_0x1ca1e8,_0x3b4e35,_0x2c2126));return _0x4f56c8['length']?{'type':'format','content':o(_0x928d95,'*Set\x20format\x20to:*\x20%0',_0x4f56c8['join'](',\x20'))}:{'type':'format','content':o(_0x928d95,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3b1d38,_0x49af31,_0x4a09f7){const _0x336dea=_0x3b1d38['locale']['t'],_0x8231c=_0x49af31['split'](/(?=[A-Z])/)['join']('\x20'),_0x51c96d=_0x336dea(_0x8231c['charAt'](0x0)['toUpperCase']()+_0x8231c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4a09f7)return _0x51c96d;if('fontColor'===_0x49af31||'fontBackgroundColor'===_0x49af31){const _0x46be6b=_0x5a7d3d(_0x3b1d38['config']['get']('fontColor.colors'))['find'](_0x34770a=>_0x34770a['model']==_0x4a09f7);return _0x51c96d+'\x20('+(_0x46be6b?_0x336dea(_0x46be6b['label'])['toLowerCase']():_0x4a09f7)+')';}if('fontSize'===_0x49af31&&isNaN(parseFloat(_0x4a09f7))){const _0x403ea4=_0x3b1d38['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3b1d38['config']['get']('fontSize.options'))['find'](_0x765d90=>_0x765d90['model']==_0x4a09f7);return _0x51c96d+'\x20('+(_0x403ea4?_0x336dea(_0x403ea4['title'])['toLowerCase']():_0x4a09f7)+')';}return _0x51c96d+'\x20('+_0x4a09f7+')';}class Y extends _0x61eb43{['afterInit'](){const _0x4fd947=this['editor'];if(!_0x4fd947['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4fd947['config']['get']('heading.options');const _0x3be84d=_0x4fd947['locale'],_0x3e92a7=_0x4fd947['plugins']['get']('TrackChangesEditing');_0x3e92a7['enableDefaultAttributesIntegration']('heading');for(const _0x2d0fcb of this['_headingOptions'])'paragraph'!=_0x2d0fcb['model']&&_0x3e92a7['descriptionFactory']['registerElementLabel'](_0x2d0fcb['model'],_0x40b359=>{const _0x4d13ad=this['_getHeadingLevel'](_0x2d0fcb['model']);return null!==_0x4d13ad?_0x49f03c(_0x40b359,_0x4d13ad):_0x509d12(_0x40b359,_0x2d0fcb['title']);});function _0x49f03c(_0x52e8ff,_0x148d19){return o(_0x3be84d,'ELEMENT_HEADING',[_0x52e8ff,_0x148d19]);}function _0x509d12(_0x4d4faf,_0x3aa0af){return o(_0x3be84d,'ELEMENT_HEADING_CUSTOM',[_0x4d4faf,_0x3aa0af]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bed4b=this['editor'],_0x23b7d9=_0x2bed4b['locale'];function _0x310ee5(_0x45adf9,_0x65c53){return o(_0x23b7d9,'ELEMENT_HEADING_CUSTOM',[_0x45adf9,_0x65c53]);}_0x2bed4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4425e2=>{if('formatBlock'!=_0x4425e2['type'])return;const {data:_0x420949}=_0x4425e2;if(_0x420949&&'heading'==_0x420949['commandName']){const _0x597334=_0x420949['commandParams'][0x0]['value'],_0x2d1096=this['_getHeadingLevel'](_0x597334);if(null!==_0x2d1096)return{'type':'format','content':o(_0x23b7d9,'*Change\x20to:*\x20%0',(_0x209d6a=0x1,_0x4dd3b6=_0x2d1096,o(_0x23b7d9,'ELEMENT_HEADING',[_0x209d6a,_0x4dd3b6])))};const _0xaee09b=this['_headingOptions']['find'](_0x391caf=>_0x391caf['model']===_0x597334)['title'];return{'type':'format','content':o(_0x23b7d9,'*Change\x20to:*\x20%0',_0x310ee5(0x1,_0xaee09b))};}var _0x209d6a,_0x4dd3b6;});}['_getHeadingLevel'](_0x272d18){var _0x4964cd,_0x723c49;const _0x122553=_0x272d18['match'](/^heading(\d+)/);if(_0x122553)return _0x122553[0x1];const _0x34e3c8=null===(_0x4964cd=this['_headingOptions'])||void 0x0===_0x4964cd?void 0x0:_0x4964cd['find'](_0xe094e8=>_0xe094e8['model']==_0x272d18);if(_0x34e3c8&&_0x34e3c8['view']){const _0xb0a1a5=_0x34e3c8['view'],_0x504c36=(null!==(_0x723c49=_0xb0a1a5['name'])&&void 0x0!==_0x723c49?_0x723c49:_0xb0a1a5)['match'](/^h(\d+)/);if(_0x504c36)return _0x504c36[0x1];}return null;}}class Z extends _0x61eb43{['afterInit'](){const _0x1f1dc0=this['editor'];if(!_0x1f1dc0['plugins']['has']('HighlightEditing'))return;const _0x24658c=_0x1f1dc0['plugins']['get']('TrackChangesEditing'),_0x33658f=_0x1f1dc0['locale'];_0x24658c['enableDefaultAttributesIntegration']('highlight'),_0x24658c['registerInlineAttribute']('highlight'),_0x24658c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x33658f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f1a0e=this['editor'],_0x4014d9=_0x3f1a0e['locale'];_0x3f1a0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e4761=>{if('formatInline'!=_0x4e4761['type'])return;const {data:_0x555859}=_0x4e4761;if(_0x555859&&'highlight'==_0x555859['commandName']){const _0x3cc827=_0x4014d9['t'],_0x4a653f=_0x555859['commandParams'][0x0]['value'];if(_0x4a653f){const _0x248139=_0x3f1a0e['config']['get']('highlight.options')['find'](_0x4245d4=>_0x4245d4['model']==_0x4a653f),_0x5133ac=_0x3cc827(_0x248139['title'])['toLowerCase']();return{'type':'format','content':o(_0x4014d9,'*Set\x20highlight:*\x20%0',_0x5133ac),'color':{'value':_0x248139['color'],'title':_0x248139['title']}};}return{'type':'format','content':o(_0x4014d9,'*Remove\x20highlight*',o(_0x4014d9,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x61eb43{['afterInit'](){const _0x138277=this['editor'];if(!_0x138277['plugins']['has']('HorizontalLineEditing'))return;_0x138277['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46d545=_0x138277['plugins']['get']('TrackChangesEditing'),_0x18015c=_0x138277['locale'];_0x46d545['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2688eb=>o(_0x18015c,'ELEMENT_HORIZONTAL_LINE',_0x2688eb)),_0x138277['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3fdaac,{writer:_0x941b45,options:_0x27bde7})=>{if(!_0x27bde7['showSuggestionHighlights'])return null;const _0x2a777f=_0x941b45['createContainerElement']('div'),_0x7446c=_0x941b45['createEmptyElement']('hr');return _0x941b45['addClass']('ck-horizontal-line',_0x2a777f),_0x941b45['insert'](_0x941b45['createPositionAt'](_0x2a777f,0x0),_0x7446c),_0x2a777f;},'converterPriority':'high'});}}class et extends _0x61eb43{['afterInit'](){const _0x894b43=this['editor'];if(!_0x894b43['plugins']['has']('HtmlEmbed'))return;const _0x3f15e2=_0x894b43['plugins']['get']('TrackChangesEditing'),_0x462c15=_0x894b43['locale'];_0x3f15e2['descriptionFactory']['registerElementLabel']('rawHtml',_0x23541b=>o(_0x462c15,'ELEMENT_HTML_EMBED',_0x23541b)),_0x3f15e2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3f15e2['registerBlockAttribute']('value'),_0x3f15e2['descriptionFactory']['registerDescriptionCallback'](_0x122fdf=>{if('attribute'!=_0x122fdf['type'])return;const {data:_0x3550a0}=_0x122fdf;if(_0x3550a0&&'value'==_0x3550a0['key']&&_0x122fdf['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18bdeb=o(_0x462c15,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x462c15,'*Change\x20%0\x20content*',_0x18bdeb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b5369=this['editor'],_0x480bec=_0x1b5369['locale'];_0x1b5369['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d7b5e=>{if('formatBlock'!=_0x4d7b5e['type'])return;const {data:_0x3b2fd5}=_0x4d7b5e;if(_0x3b2fd5&&'htmlEmbed'==_0x3b2fd5['commandName']){const _0x48afed=o(_0x480bec,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x480bec,'*Change\x20%0\x20content*',_0x48afed)};}});}}class it extends _0x61eb43{['afterInit'](){const _0x90106=this['editor'];if(!_0x90106['plugins']['has']('ImageEditing'))return;const _0x545d8d=_0x90106['plugins']['get']('TrackChangesEditing'),_0x2edbef=_0x90106['plugins']['get']('ImageUtils'),_0x25a49e=_0x90106['locale'];_0x545d8d['enableCommand']('insertImage'),_0x545d8d['descriptionFactory']['registerElementLabel']('imageBlock',_0x5094b7=>o(_0x25a49e,'ELEMENT_IMAGE',_0x5094b7)),_0x545d8d['descriptionFactory']['registerElementLabel']('imageInline',_0x2d721f=>o(_0x25a49e,'ELEMENT_INLINE_IMAGE',_0x2d721f)),_0x545d8d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x25a49e,'ELEMENT_CAPTION')),_0x90106['plugins']['has']('ImageUploadEditing')&&_0x545d8d['enableCommand']('uploadImage'),_0x90106['plugins']['has']('ImageBlockEditing')&&_0x90106['plugins']['has']('ImageInlineEditing')&&(_0x545d8d['enableCommand']('imageTypeInline',(_0x1c2d55,_0x4f5b3b)=>{const _0x84a88=_0x2edbef['getClosestSelectedImageElement'](_0x90106['model']['document']['selection']);_0x90106['model']['change'](()=>{_0x545d8d['markBlockFormat'](_0x84a88,{'commandName':'imageTypeInline','commandParams':[_0x4f5b3b]},[],'convertBlockImageToInline');});}),_0x545d8d['enableCommand']('imageTypeBlock',(_0x365ada,_0x29d760)=>{_0x90106['model']['change'](_0x32383c=>{let _0x321d75=_0x2edbef['getClosestSelectedImageElement'](_0x90106['model']['document']['selection']),_0x40a9b8=_0x32383c['createRangeOn'](_0x321d75);const _0x2f28e0=_0x1f9f89['fromPosition'](_0x40a9b8['start'],'toPrevious'),_0xf626d=_0x1f9f89['fromPosition'](_0x40a9b8['end'],'toNext');_0x545d8d['forceDefaultExecution'](()=>_0x365ada(_0x29d760)),_0x321d75=_0x2edbef['getClosestSelectedImageElement'](_0x90106['model']['document']['selection']),_0x40a9b8=_0x32383c['createRangeOn'](_0x321d75);const _0x2dccfa=_0x32383c['createRange'](_0x2f28e0,_0xf626d);_0x2f28e0['detach'](),_0xf626d['detach'](),_0x545d8d['markBlockFormat'](_0x321d75,{'commandName':'imageTypeInline','commandParams':[_0x29d760]},[],'convertInlineImageToBlock'),_0x2dccfa['start']['isBefore'](_0x40a9b8['start'])&&_0x545d8d['markInsertion'](_0x32383c['createRange'](_0x2dccfa['start'],_0x40a9b8['start']),'convertInlineImageToBlock'),_0x40a9b8['end']['isBefore'](_0x2dccfa['end'])&&_0x545d8d['markInsertion'](_0x32383c['createRange'](_0x40a9b8['end'],_0x2dccfa['end']),'convertInlineImageToBlock');});}),_0x545d8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x545d8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x545d8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x545d8d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x545d8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x545d8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3bacd1])=>{const _0x14bc30=_0x545d8d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3e8fb4=_0x3bacd1['start'],_0x54cddc=_0x3bacd1['end'];const _0x2a81ec=_0x90106['model']['schema']['getNearestSelectionRange'](_0x3e8fb4,'backward'),_0x25f7d3=_0x90106['model']['schema']['getNearestSelectionRange'](_0x54cddc,'forward');_0x2a81ec['isCollapsed']&&(_0x3e8fb4=_0x2a81ec['start']),_0x25f7d3['isCollapsed']&&(_0x54cddc=_0x25f7d3['end']),_0x14bc30([_0x90106['model']['createRange'](_0x3e8fb4,_0x54cddc)]);}),_0x545d8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2d2f7d),_0x545d8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2d2f7d)),_0x90106['plugins']['has']('ImageCaptionEditing')&&(_0x545d8d['enableCommand']('toggleImageCaption',(_0x1ef791,_0x84320)=>{const _0x29a659=_0x90106['plugins']['get']('ImageCaptionUtils');let _0x30960f=_0x2edbef['getClosestSelectedImageElement'](_0x90106['model']['document']['selection']),_0x3c0da0=_0x29a659['getCaptionFromImageModelElement'](_0x30960f);_0x90106['model']['change'](()=>{if(_0x3c0da0)return void _0x545d8d['markDeletion'](_0x90106['model']['createRangeOn'](_0x3c0da0));const _0x39f899=_0x2edbef['isBlockImage'](_0x30960f);_0x1ef791(_0x84320),_0x30960f=_0x2edbef['getClosestSelectedImageElement'](_0x90106['model']['document']['selection']),_0x3c0da0=_0x29a659['getCaptionFromImageModelElement'](_0x30960f),_0x545d8d['markInsertion'](_0x90106['model']['createRangeOn'](_0x3c0da0),_0x39f899?null:'imageCaption');});}),_0x545d8d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2d2f7d));const _0x3f4cf7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x260f69(_0x3b72ec,_0x3fc2ac){const _0x4da6be=_0x3f4cf7['findIndex'](({type:_0x3faf7b,subType:_0x2505b3})=>_0x3b72ec['type']==_0x3faf7b&&_0x3b72ec['subType']==_0x2505b3),_0x79a278=_0x3f4cf7['findIndex'](({type:_0x39c5ac,subType:_0x48a60b})=>_0x3fc2ac['type']==_0x39c5ac&&_0x3fc2ac['subType']==_0x48a60b);if(_0x4da6be<0x0||_0x79a278<0x0)return!0x1;const _0x240f7c=_0x3b72ec['getFirstRange'](),_0x25acb0=_0x3fc2ac['getFirstRange']();if((0x0==_0x4da6be||0x1==_0x4da6be)&&0x2==_0x79a278&&_0x240f7c['isIntersecting'](_0x25acb0))return!0x0;if(0x2==_0x4da6be&&0x3==_0x79a278){const _0xcf90f7=_0x545d8d['_findSuggestions'](_0x240f7c,'insertion')['filter'](({suggestion:_0x458a68,meta:_0x1ad8e3})=>_0x1ad8e3['isOwn']&&'convertInlineImageToBlock'==_0x458a68['subType']);if(_0xcf90f7['length']>0x1&&_0x25acb0['end']['isEqual'](_0x240f7c['start']))return!0x0;if(0x1==_0xcf90f7['length']&&(_0x240f7c['start']['isEqual'](_0x25acb0['end'])||_0x240f7c['end']['isEqual'](_0x25acb0['start'])))return!0x0;}if(0x3==_0x4da6be&&0x3==_0x79a278&&_0x240f7c['start']['isBefore'](_0x25acb0['start'])){const _0x741d73=_0x240f7c['end']['nodeAfter'],_0xbc1dce=_0x25acb0['start']['nodeBefore'];return _0x2edbef['isBlockImage'](_0x741d73)&&_0x741d73===_0xbc1dce;}return!0x1;}function _0x2d2f7d(_0x1061bb,_0x1477c5){return _0x260f69(_0x1061bb,_0x1477c5)?[_0x1061bb,_0x1477c5]:_0x260f69(_0x1477c5,_0x1061bb)?[_0x1477c5,_0x1061bb]:null;}_0x90106['plugins']['has']('ImageResize')&&(_0x545d8d['enableDefaultAttributesIntegration']('resizeImage'),_0x545d8d['registerBlockAttribute']('resizedWidth'),_0x545d8d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x25a49e,'FORMAT_IMAGE_SIZE'))),_0x90106['plugins']['has']('ImageTextAlternativeEditing')&&(_0x545d8d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x545d8d['registerBlockAttribute']('alt')),_0x545d8d['descriptionFactory']['registerDescriptionCallback'](_0x3734c7=>{if(!!_0x3f4cf7['find'](({type:_0x17163b,subType:_0x2eb87a})=>_0x3734c7['type']==_0x17163b&&_0x3734c7['subType']==_0x2eb87a))return _0x3734c7['previous']?{}:void 0x0;}),_0x545d8d['descriptionFactory']['registerDescriptionCallback'](_0x1a1f85=>{if('insertion'==_0x1a1f85['type']||'deletion'==_0x1a1f85['type']){const _0x5dde11=_0x1a1f85['getContainedElement']();if(_0x5dde11&&_0x5dde11['is']('element','caption'))return{'type':'insertion'==_0x1a1f85['type']?'addObject':'removeObject','element':_0x5dde11,'quantity':0x1};}}),_0x545d8d['descriptionFactory']['registerDescriptionCallback'](_0x51c88d=>'formatBlock'==_0x51c88d['type']&&'convertInlineImageToBlock'==_0x51c88d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x51c88d['type']&&'convertBlockImageToInline'==_0x51c88d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x545d8d['descriptionFactory']['registerDescriptionCallback'](_0x547d7f=>{if('attribute'!=_0x547d7f['type'])return;const {data:_0x138517}=_0x547d7f;if(!_0x138517||'alt'!=_0x138517['key'])return;const _0x53b01d=_0x138517['newValue'];return _0x53b01d?{'type':'format','content':o(_0x25a49e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x53b01d+'\x22')}:{'type':'format','content':o(_0x25a49e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c3ccf=this['editor'],_0x39df89=_0x4c3ccf['locale'];_0x4c3ccf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f9f4e=>{if('formatBlock'!=_0x2f9f4e['type']&&'formatInline'!=_0x2f9f4e['type'])return;const {data:_0x3ae1b7}=_0x2f9f4e;if(_0x3ae1b7){if('imageTextAlternative'==_0x3ae1b7['commandName']){const _0x5a3b33=_0x3ae1b7['commandParams'][0x0]['newValue'];return _0x5a3b33?{'type':'format','content':o(_0x39df89,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a3b33+'\x22')}:{'type':'format','content':o(_0x39df89,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ae1b7['commandName']){const _0x3b90a6=_0x3ae1b7['commandParams'][0x0]['width'];return _0x3b90a6?{'type':'format','content':o(_0x39df89,'*Set\x20image\x20width:*\x20%0',_0x3b90a6)}:{'type':'format','content':o(_0x39df89,'*Reset\x20image\x20width*')};}}});}}class st extends _0x61eb43{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x48cda3=this['editor']['locale'],_0x4fb502=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fb502['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4fb502['registerBlockAttribute']('src'),_0x4fb502['descriptionFactory']['registerDescriptionCallback'](_0x19ca1a=>{if('attribute'!=_0x19ca1a['type'])return;const {data:_0x7e92c3}=_0x19ca1a;return _0x7e92c3&&'src'==_0x7e92c3['key']?_0x7e92c3['newValue']&&_0x7e92c3['oldValue']?{'type':'format','content':o(_0x48cda3,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x371819=this['editor']['plugins']['get']('TrackChangesEditing');_0x371819['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x371819['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x371819['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x371819['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d6d6c=this['editor'],_0x42ddc6=_0x2d6d6c['locale'];_0x2d6d6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9324=>{if('formatBlock'!=_0x5a9324['type']&&'formatInline'!=_0x5a9324['type'])return;const {data:_0x59325f}=_0x5a9324;if(!_0x59325f||'replaceImageSource'!=_0x59325f['commandName'])return;return{'type':'format','content':o(_0x42ddc6,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x61eb43{['afterInit'](){const _0x49d98c=this['editor'];if(!_0x49d98c['plugins']['has']('ImageStyleEditing'))return;const _0xd03a78=_0x49d98c['plugins']['get']('TrackChangesEditing'),_0x477c12=_0x49d98c['plugins']['get']('ImageUtils'),_0x1b2593={};_0xd03a78['enableCommand']('imageStyle',(_0x269f79,_0x17c199)=>{const _0x1d8c35=_0x49d98c['plugins']['get']('Users')['me'],_0x8e1c9f=_0x49d98c['commands']['get']('imageStyle');let _0x1c1e49=_0x477c12['getClosestSelectedImageElement'](_0x49d98c['model']['document']['selection']),_0xe68e2d=_0x49d98c['model']['createRangeOn'](_0x1c1e49),_0x182b79=_0x8e1c9f['value'];if(_0x182b79==_0x17c199['value'])return;const _0x45ddae={'commandName':'imageStyle','commandParams':[_0x17c199],'formatGroupId':_0xdda64a()};_0x49d98c['model']['change'](()=>{if(_0xd03a78['getSuggestions']()['filter'](_0x18b5b4=>_0x18b5b4['isInContent']&&_0x1d8c35==_0x18b5b4['author']&&('formatBlock'==_0x18b5b4['type']||'formatInline'==_0x18b5b4['type'])&&('imageStylePreApply'==_0x18b5b4['subType']||'imageStylePostApply'==_0x18b5b4['subType'])&&_0x18b5b4['getFirstRange']()['isEqual'](_0xe68e2d))['forEach'](_0x23b15f=>_0xd03a78['discardSuggestion'](_0x23b15f['head'])),_0x1c1e49=_0x477c12['getClosestSelectedImageElement'](_0x49d98c['model']['document']['selection']),_0xe68e2d=_0x49d98c['model']['createRangeOn'](_0x1c1e49),_0x8e1c9f['refresh'](),_0x49d98c['commands']['get']('imageTypeInline')['refresh'](),_0x49d98c['commands']['get']('imageTypeBlock')['refresh'](),_0x182b79=_0x8e1c9f['value'],_0x182b79!=_0x17c199['value'])return _0x477c12['isInlineImage'](_0x1c1e49)&&_0x8e1c9f['shouldConvertImageType'](_0x17c199['value'],_0x1c1e49)?(_0x269f79({..._0x17c199,'setImageSizes':!0x1}),_0x1c1e49=_0x477c12['getClosestSelectedImageElement'](_0x49d98c['model']['document']['selection']),void _0xd03a78['markBlockFormat'](_0x1c1e49,{..._0x45ddae,'commandReversedParams':[{'value':_0x182b79||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x477c12['isBlockImage'](_0x1c1e49)?_0xd03a78['markBlockFormat'](_0x1c1e49,_0x45ddae,[],'imageStylePostApply'):_0xd03a78['markInlineFormat'](_0xe68e2d,_0x45ddae,'imageStylePostApply'));});});for(const _0x542b6c of _0x49d98c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1b2593[_0x542b6c['name']]=_0x542b6c['title']['toLowerCase']();_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4ae2bc])=>{_0x477c12['setImageNaturalSizeAttributes'](_0x4ae2bc['getContainedElement']());}),_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4de33c,_0x521955)=>{_0xd03a78['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4de33c,{'commandName':_0x521955['commandName'],'commandParams':_0x521955['commandReversedParams']});}),_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1a3fbd,_0x43e945){if(_0x5a2ef0(_0x1a3fbd,_0x43e945))return[_0x1a3fbd,_0x43e945];if(_0x5a2ef0(_0x43e945,_0x1a3fbd))return[_0x43e945,_0x1a3fbd];return null;});const _0x521c26=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5a2ef0(_0x45a811,_0x29b93c){const _0x4709a6=_0x521c26['findIndex'](({type:_0x16e005,subType:_0x9fb6d3})=>_0x45a811['type']==_0x16e005&&_0x45a811['subType']==_0x9fb6d3),_0x4220de=_0x521c26['findIndex'](({type:_0xe32422,subType:_0x4011f0})=>_0x29b93c['type']==_0xe32422&&_0x29b93c['subType']==_0x4011f0);if(_0x4709a6<0x0||_0x4220de<0x0)return!0x1;const _0x399ead=_0x45a811['getFirstRange'](),_0x12aa33=_0x29b93c['getFirstRange']();if((0x0==_0x4709a6||0x1==_0x4709a6)&&0x2==_0x4220de&&_0x399ead['isIntersecting'](_0x12aa33))return!0x0;if(0x2==_0x4709a6&&0x3==_0x4220de){const _0x7ca09=_0xd03a78['_findSuggestions'](_0x399ead,'insertion')['filter'](({suggestion:_0x116e3d,meta:_0x4abed8})=>_0x4abed8['isOwn']&&'convertInlineImageToBlock'==_0x116e3d['subType']);if(_0x7ca09['length']>0x1&&_0x12aa33['end']['isEqual'](_0x399ead['start']))return!0x0;if(0x1==_0x7ca09['length']&&(_0x399ead['start']['isEqual'](_0x12aa33['end'])||_0x399ead['end']['isEqual'](_0x12aa33['start'])))return!0x0;}if(0x3==_0x4709a6&&0x3==_0x4220de&&_0x399ead['start']['isBefore'](_0x12aa33['start'])){const _0x1e4106=_0x399ead['end']['nodeAfter'],_0x3455ad=_0x12aa33['start']['nodeBefore'];return _0x477c12['isBlockImage'](_0x1e4106)&&_0x1e4106===_0x3455ad;}return!0x1;}_0x49d98c['model']['document']['registerPostFixer'](()=>{let _0x5b4c64=!0x1;const _0x319116=Array['from'](_0x49d98c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21a94a,data:_0x500c1b}of _0x319116){const {group:_0x1e9d6b,type:_0x2b4f54,subType:_0x33a6c0,id:_0xbe33f5}=_0xd03a78['_splitMarkerName'](_0x21a94a);if('suggestion'==_0x1e9d6b&&_0xd03a78['hasSuggestion'](_0xbe33f5)){if('formatBlock'==_0x2b4f54&&('imageStylePreApply'==_0x33a6c0||'imageStylePostApply'==_0x33a6c0)){const _0x3d50f8=_0xd03a78['getSuggestion'](_0xbe33f5);if(_0x500c1b['newRange']){const _0x560f82=_0x3d50f8['getFirstRange']()['getContainedElement']();if(_0x477c12['isBlockImage'](_0x560f82))continue;_0xd03a78['discardSuggestion'](_0x3d50f8),_0x5b4c64=!0x0;}}if('insertion'==_0x2b4f54&&'imageCaption'==_0x33a6c0&&!_0x500c1b['newRange']){const _0x4ca97b=_0xd03a78['getSuggestion'](_0xbe33f5);_0x4ca97b['next']&&_0x4ca97b['next']['isInContent']&&(_0xd03a78['discardSuggestion'](_0x4ca97b['next']),_0x5b4c64=!0x0);}}}return _0x5b4c64;}),this['_registerLegacyDescription'](_0x1b2593);}['_registerLegacyDescription'](_0x2908bd){const _0x5ccce9=this['editor'],_0x18a2cd=_0x5ccce9['locale'];_0x5ccce9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214f5d=>{if('formatBlock'!=_0x214f5d['type']&&'formatInline'!=_0x214f5d['type'])return;const {data:_0x3f2adf}=_0x214f5d;if(!_0x3f2adf||'imageStyle'!=_0x3f2adf['commandName'])return;const _0x5c6cb6=_0x3f2adf['commandParams'][0x0]['value'];return _0x2d2ca7('side'===_0x5c6cb6?o(_0x18a2cd,'FORMAT_SIDE_IMAGE'):_0x2908bd[_0x5c6cb6]||_0x5c6cb6);function _0x2d2ca7(_0x9a7f77){return{'type':'format','content':o(_0x18a2cd,'*Format:*\x20%0',_0x9a7f77)};}});}}class ot extends _0x61eb43{['afterInit'](){const _0x298958=this['editor'],_0x1e020e=_0x298958['commands']['get']('importWord'),_0x28c2f4=_0x298958['commands']['get']('trackChanges');_0x1e020e&&(_0x1e020e['on']('execute',(_0x39999e,[,_0x596144])=>{this['_trackChangesValueDuringImport']=_0x28c2f4['value'],_0x596144['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1e020e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1e020e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x28c2f4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x298958['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1b0d98,_0x102203){const {suggestions:_0x3729f7}=_0x102203,_0x23767c=this['editor']['commands']['get']('trackChanges'),_0x2a7e30=_0x23767c['value'];this['_trackChangesValueDuringImport']!==_0x2a7e30&&(_0x23767c['execute'](),this['_trackChangesExecuted']=!0x0),_0x3729f7&&_0x3729f7['forEach'](({id:_0x5b01b6,type:_0x128bf5,author:_0x273e04,created_at:_0x52e5bf})=>{const _0x511f08={'id':_0x5b01b6,'type':_0x128bf5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x273e04,'createdAt':_0x52e5bf?new Date(_0x52e5bf):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x511f08);});}constructor(_0x412fe9){super(_0x412fe9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x61eb43{['afterInit'](){const _0x1eed43=this['editor'],_0x176813=_0x1eed43['plugins']['get']('TrackChangesEditing');if(_0x1eed43['plugins']['has']('IndentEditing')&&(_0x176813['enableCommand']('indent'),_0x176813['enableCommand']('outdent')),_0x1eed43['plugins']['has']('IndentBlock')){for(const _0x387ef7 of['indentBlock','outdentBlock'])_0x176813['enableDefaultAttributesIntegration'](_0x387ef7);}const _0x5bb4be=_0x1eed43['locale'];_0x176813['registerBlockAttribute']('blockIndent'),_0x176813['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5bb4be,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x282838=this['editor'],_0x21554e=_0x282838['locale'],_0x9e78b8=_0x282838['plugins']['get']('TrackChangesEditing');_0x9e78b8['descriptionFactory']['registerDescriptionCallback'](_0x38fbf5=>{if('formatBlock'!=_0x38fbf5['type'])return;const {data:_0x289c34}=_0x38fbf5;if(!_0x289c34)return;if('indentBlock'!=_0x289c34['commandName']&&'outdentBlock'!=_0x289c34['commandName'])return;const _0x181de9=_0x38fbf5['getItems']()[0x0],_0x1a4c03=_0x9e78b8['descriptionFactory']['getItemLabel'](_0x181de9);return'indentBlock'==_0x289c34['commandName']?{'type':'format','content':o(_0x21554e,'*Indent:*\x20%0',_0x1a4c03)}:'outdentBlock'==_0x289c34['commandName']?{'type':'format','content':o(_0x21554e,'*Outdent:*\x20%0',_0x1a4c03)}:void 0x0;});}}class at extends _0x61eb43{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x61eb43{['afterInit'](){const _0x31bbf4=this['editor'];if(!_0x31bbf4['plugins']['has']('LinkEditing'))return;const _0x5c9fd0=_0x31bbf4['plugins']['get']('TrackChangesEditing'),_0x5232e6=_0x31bbf4['commands']['get']('link');_0x5c9fd0['enableDefaultAttributesIntegration']('link'),_0x5c9fd0['enableDefaultAttributesIntegration']('unlink'),_0x5c9fd0['registerInlineAttribute']('linkHref');for(const _0x1b722c of _0x5232e6['manualDecorators'])_0x5c9fd0['registerInlineAttribute'](_0x1b722c['id']),_0x5c9fd0['descriptionFactory']['registerAttributeLabel'](_0x1b722c['id'],'link\x20('+_0x1b722c['label']['toLowerCase']()+')');_0x5c9fd0['descriptionFactory']['registerDescriptionCallback'](_0x4fe09b=>{if('attribute'!=_0x4fe09b['type'])return;const {data:_0x257b21}=_0x4fe09b;if(!_0x257b21||'linkHref'!=_0x257b21['key'])return;const _0x36116f=_0x257b21['newValue'],_0x1835d1=_0x31bbf4['locale'];return{'type':'format','content':null==_0x36116f?o(_0x1835d1,'*Remove\x20link*'):o(_0x1835d1,'*Set\x20link:*\x20%0','\x22'+_0x36116f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1203e3=this['editor'],_0x39b7f6=_0x1203e3['locale'];_0x1203e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x550821=>{if('formatInline'!=_0x550821['type'])return;const {data:_0x10aec7}=_0x550821;if(_0x10aec7){if('link'==_0x10aec7['commandName']){const _0x1884ac=_0x10aec7['commandParams'][0x0];return{'type':'format','content':o(_0x39b7f6,'*Set\x20link:*\x20%0','\x22'+_0x1884ac+'\x22')};}return'unlink'==_0x10aec7['commandName']?{'type':'format','content':o(_0x39b7f6,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x61eb43{['afterInit'](){const _0x462f47=this['editor'],_0x10d949=_0x462f47['locale'];if(!_0x462f47['plugins']['has']('LegacyListEditing'))return;const _0x14bc60=_0x462f47['plugins']['get']('TrackChangesEditing'),_0x3a212d=_0x462f47['plugins']['has']('LegacyTodoListEditing');function _0xc5611b(_0x1f84f0){return()=>{const _0x1d3366=_0x462f47['model']['document']['selection'],_0x20423b=_0x462f47['commands']['get'](_0x1f84f0);if(_0x20423b['value'])return void _0x462f47['execute']('paragraph',{});const _0x49dc48=_0x1f84f0['slice'](0x0,-0x4),_0x104511=function(_0x1784fe,_0x421875,_0x3fc588){let _0x2ed7b8=Array['from'](_0x1784fe)['filter'](_0x27e551=>function(_0x24c286,_0x5826b8){return _0x5826b8['checkChild'](_0x24c286['parent'],'listItem')&&!_0x5826b8['isObject'](_0x24c286);}(_0x27e551,_0x3fc588));_0x2ed7b8=_0x2ed7b8['filter'](_0x13ccf0=>!_0x13ccf0['is']('element','listItem')||_0x13ccf0['getAttribute']('listType')!=_0x421875);const _0x4b2eed=new Set();for(const _0x3500e4 of _0x2ed7b8)_0x3500e4['is']('element','listItem')?_0x4b2eed['add'](me(_0x3500e4)):_0x4b2eed['add'](_0x3500e4);return Array['from'](_0x4b2eed);}(_0x1d3366['getSelectedBlocks'](),_0x49dc48,_0x462f47['model']['schema']);_0x462f47['model']['change'](()=>{for(const _0x42f9dd of _0x104511)_0x14bc60['markBlockFormat'](_0x42f9dd,{'commandName':_0x1f84f0,'commandParams':[{'forceValue':!_0x20423b['value']}],'formatGroupId':'blockName'},fe(_0x42f9dd));});};}function _0x366265(_0x4c5c8d){return()=>{const _0x1f7596=function(_0x2c4db0){let _0x44dfb5=Array['from'](_0x2c4db0);const _0x4757c8=_0x44dfb5['findIndex'](_0x16c028=>'listItem'!=_0x16c028['name']);return _0x4757c8>-0x1&&(_0x44dfb5=_0x44dfb5['slice'](0x0,_0x4757c8)),_0x44dfb5;}(_0x462f47['model']['document']['selection']['getSelectedBlocks']()),_0x3af5bc=_0x462f47['model']['createRange'](_0x462f47['model']['createPositionAt'](_0x1f7596[0x0],'before'),_0x462f47['model']['createPositionAt'](_0x1f7596[_0x1f7596['length']-0x1],'end'));_0x462f47['model']['change'](()=>{_0x14bc60['markBlockFormat'](_0x3af5bc,{'commandName':_0x4c5c8d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2a68a8){const _0x5d08ec=new Set();for(const _0x17a361 of _0x2a68a8){let _0x4d83a6=_0x17a361['nextSibling'];for(;_0x4d83a6&&_0x4d83a6['getAttribute']('listIndent')>_0x17a361['getAttribute']('listIndent');)_0x5d08ec['add'](_0x4d83a6),_0x4d83a6=_0x4d83a6['nextSibling'];}return Array['from'](_0x5d08ec);}(_0x1f7596));});};}_0x14bc60['enableCommand']('numberedList',_0xc5611b('numberedList')),_0x14bc60['enableCommand']('bulletedList',_0xc5611b('bulletedList')),_0x3a212d&&_0x14bc60['enableCommand']('todoList',_0xc5611b('todoList')),_0x14bc60['enableCommand']('indentList',_0x366265('indentList')),_0x14bc60['enableCommand']('outdentList',_0x366265('outdentList')),_0x3a212d&&_0x14bc60['enableCommand']('checkTodoList',()=>{const _0x11e136=_0x462f47['commands']['get']('checkTodoList'),_0x3ef8a7=Array['from'](_0x11e136['_selectedElements']);_0x3ef8a7['filter'](_0x33f445=>_0x33f445['getAttribute']('todoListChecked')!=_0x11e136['value']),_0x462f47['model']['change'](()=>{for(const _0x452599 of _0x3ef8a7)_0x14bc60['markBlockFormat'](_0x452599,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x11e136['value']}]});});}),_0x14bc60['descriptionFactory']['registerElementLabel']('listItem',_0x396896=>o(_0x10d949,'ELEMENT_LIST_ITEM',_0x396896)),_0x14bc60['descriptionFactory']['registerDescriptionCallback'](_0x1edc9c=>{if('formatBlock'!=_0x1edc9c['type']&&'formatInline'!=_0x1edc9c['type'])return;const {data:_0x1c4aa5}=_0x1edc9c;if(_0x1c4aa5){if('numberedList'==_0x1c4aa5['commandName']||'bulletedList'==_0x1c4aa5['commandName']||'todoList'==_0x1c4aa5['commandName'])switch(_0x1c4aa5['commandName']['replace']('List','')){case'bulleted':return _0x18e651(o(_0x10d949,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18e651(o(_0x10d949,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18e651(o(_0x10d949,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1c4aa5['commandName'])return{'type':'format','content':o(_0x10d949,'*Indent:*\x20%0',o(_0x10d949,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1c4aa5['commandName'])return{'type':'format','content':o(_0x10d949,'*Outdent:*\x20%0',o(_0x10d949,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1c4aa5['commandName'])return _0x1c4aa5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10d949,'*Check\x20item*')}:{'type':'format','content':o(_0x10d949,'*Uncheck\x20item*')};}function _0x18e651(_0x415ca5){return{'type':'format','content':o(_0x10d949,'*Change\x20to:*\x20%0',_0x415ca5)};}});}}function me(_0x562335){const _0x1b28f5=_0x562335['getAttribute']('listIndent');if(0x0==_0x1b28f5)return _0x562335;let _0x1dcd8c=_0x562335;for(;_0x562335['previousSibling']&&_0x562335['previousSibling']['is']('element','listItem');){const _0xdfc9c7=_0x562335['previousSibling']['getAttribute']('listIndent');if(_0xdfc9c7==_0x1b28f5)_0x1dcd8c=_0x562335['previousSibling'];else{if(_0xdfc9c7<_0x1b28f5)break;}_0x562335=_0x562335['previousSibling'];}return _0x1dcd8c;}function fe(_0x5004d1){const _0x12ef60=[];if(_0x5004d1['is']('element','listItem')&&_0x5004d1['getAttribute']('listIndent')>0x0){let _0x47734d=_0x5004d1['nextSibling'];for(;_0x47734d&&'listItem'==_0x47734d['name']&&_0x47734d['getAttribute']('listIndent')==_0x5004d1['getAttribute']('listIndent');)_0x12ef60['push'](_0x47734d),_0x47734d=_0x47734d['nextSibling'];}return _0x12ef60;}class K extends _0x61eb43{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x35c42b=this['editor']['config']['get']('list.properties'),_0x4d6382=this['editor']['plugins']['get']('TrackChangesEditing');_0x35c42b['styles']&&_0x4d6382['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x35c42b['reversed']&&_0x4d6382['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x35c42b['startIndex']&&_0x4d6382['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d6382['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1e9150,_0x2ff629={}){const _0x34f082=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fd127=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x34f082['markMultiRangeBlockFormat'](_0x2fd127,{'commandName':'listStyle','commandParams':[{'type':_0x2ff629['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x58a221,_0x1a7575={}){const _0x23f93f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8a83b3=this['_getSuggestionBlocks'](_0x24fba7=>_0x24fba7['is']('element','listItem')&&'numbered'===_0x24fba7['getAttribute']('listType'));if(_0x8a83b3['length']<0x1)return;const _0x77a9bf=_0x8a83b3['map'](_0x3e37e7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e37e7,'before'),this['editor']['model']['createPositionAt'](_0x3e37e7,0x0)));this['editor']['model']['change'](()=>{_0x23f93f['markMultiRangeBlockFormat'](_0x77a9bf,{'commandName':'listReversed','commandParams':[{'reversed':_0x1a7575['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x7014a4,_0x16f574={}){const _0x4108b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bb310=this['_getSuggestionBlocks'](_0x537106=>_0x537106['is']('element','listItem')&&'numbered'===_0x537106['getAttribute']('listType'));if(_0x2bb310['length']<0x1)return;const _0xdfc694=_0x2bb310['map'](_0xd57d86=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd57d86,'before'),this['editor']['model']['createPositionAt'](_0xd57d86,0x0)));this['editor']['model']['change'](()=>{_0x4108b8['markMultiRangeBlockFormat'](_0xdfc694,{'commandName':'listStart','commandParams':[{'startIndex':_0x16f574['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5ed637){if('formatBlock'!=_0x5ed637['type']&&'formatInline'!=_0x5ed637['type'])return;const _0x25233b=this['editor']['locale'],{data:_0x19a733}=_0x5ed637;if(!_0x19a733)return;let _0x2bd0fd,_0x3f82cf;switch(_0x19a733['commandName']){case'listStyle':_0x2bd0fd='*Change\x20to:*\x20%0',_0x3f82cf={'type':'format','content':o(_0x25233b,_0x2bd0fd,o(_0x25233b,this['_getTranslationKeyForListStyle'](_0x19a733['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2bd0fd=_0x19a733['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f82cf={'type':'format','content':o(_0x25233b,_0x2bd0fd)};break;case'listStart':_0x2bd0fd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f82cf={'type':'format','content':o(_0x25233b,_0x2bd0fd,_0x19a733['commandParams'][0x0]['startIndex'])};}return _0x3f82cf;}['_getSuggestionBlocksForListStyle'](){var _0x56a19b,_0x35fec5,_0x54048e,_0x386dc8;const _0x17f8a7=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b3b69=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x56a19b=_0x4b3b69[0x0])||void 0x0===_0x56a19b?void 0x0:_0x56a19b['is']('element','listItem'))&&_0x4b3b69['unshift'](..._0x17f8a7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x35fec5=_0x4b3b69[_0x4b3b69['length']-0x1])||void 0x0===_0x35fec5?void 0x0:_0x35fec5['is']('element','listItem'))&&_0x4b3b69['push'](..._0x17f8a7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4b3b69=[...new Set(_0x4b3b69)],(null===(_0x386dc8=null===(_0x54048e=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x54048e?void 0x0:_0x54048e['parent'])||void 0x0===_0x386dc8?void 0x0:_0x386dc8['is']('element','listItem'))&&(_0x4b3b69=_0x4b3b69['filter'](_0x3a215c=>_0x3a215c['is']('element','listItem'))),_0x4b3b69;}['_getSuggestionBlocks'](_0x18dfc2){const _0x4e83aa=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ae4ad=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x18dfc2)['map'](_0x3ab032=>{const _0x9c0450=this['editor']['model']['createPositionAt'](_0x3ab032,0x0);return[..._0x4e83aa['getSiblingNodes'](_0x9c0450,'backward'),..._0x4e83aa['getSiblingNodes'](_0x9c0450,'forward')];})['flat']();return _0x3ae4ad=[...new Set(_0x3ae4ad)],_0x3ae4ad;}['_getTranslationKeyForListStyle'](_0x65dfc4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x65dfc4)||'default')['toUpperCase']()+'_LIST_'+_0x65dfc4['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x61eb43{['afterInit'](){const _0x3594f3=this['editor'];if(!_0x3594f3['plugins']['has']('MediaEmbedEditing'))return;const _0x468258=_0x3594f3['plugins']['get']('TrackChangesEditing'),_0x29bac7=_0x3594f3['locale'];_0x468258['enableCommand']('mediaEmbed'),_0x468258['descriptionFactory']['registerElementLabel']('media',_0x181318=>o(_0x29bac7,'ELEMENT_MEDIA',_0x181318)),_0x3594f3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4d87a6,{writer:_0x4b4b2e,options:_0xfac6bf})=>{if(_0xfac6bf['showSuggestionHighlights'])return _0x4b4b2e['createEmptyElement']('div');},'converterPriority':'high'}),_0x3594f3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x132dbc,_0xabdb4d,_0x15bcc9)=>{_0x15bcc9['options']['showSuggestionHighlights']&&_0x132dbc['stop']();},{'priority':'high'});}}class gt extends _0x61eb43{['afterInit'](){const _0x5a4d18=this['editor'];_0x5a4d18['plugins']['has']('MentionEditing')&&_0x5a4d18['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x61eb43{['afterInit'](){const _0x4b6fe9=this['editor'],_0x535e1c=_0x4b6fe9['plugins']['get']('TrackChangesEditing');_0x4b6fe9['plugins']['has']('MultiLevelList')&&(_0x535e1c['enableDefaultAttributesIntegration']('multiLevelList'),_0x535e1c['registerBlockAttribute']('listMarkerStyle'),_0x535e1c['descriptionFactory']['registerDescriptionCallback'](_0x5e16bc=>this['handleDescriptions'](_0x5e16bc)));}['handleDescriptions'](_0x326534){const _0x1e6d5a=this['editor']['locale'],{data:_0x35b244}=_0x326534,_0x5a571d={'type':'format','content':''};if(_0x35b244&&'listMarkerStyle'==_0x35b244['key']){if(!_0x35b244['oldValue'])return{'type':'format','content':o(_0x1e6d5a,'*Set\x20format:*\x20%0',o(_0x1e6d5a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35b244['newValue']+')'};if(!_0x35b244['newValue']){let _0x5c4498=_0x326534['head'];for(;_0x5c4498;){if(_0x5c4498['data']&&'listType'==_0x5c4498['data']['key']&&_0x5c4498['data']['newValue'])return _0x5a571d;_0x5c4498=_0x5c4498['next'];}return{'type':'format','content':o(_0x1e6d5a,'*Remove\x20format:*\x20%0',o(_0x1e6d5a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35b244['oldValue']+')'};}}}}class mt extends _0x61eb43{['afterInit'](){const _0x31562c=this['editor'];if(!_0x31562c['plugins']['has']('PageBreakEditing'))return;_0x31562c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x45e415=_0x31562c['plugins']['get']('TrackChangesEditing'),_0x3099af=_0x31562c['locale'];_0x45e415['descriptionFactory']['registerElementLabel']('pageBreak',_0x5cff9e=>o(_0x3099af,'ELEMENT_PAGE_BREAK',_0x5cff9e));}}class dt extends _0x61eb43{['afterInit'](){const _0x3a9752=this['editor'];if(!_0x3a9752['plugins']['has']('Paragraph'))return;const _0x5b063d=_0x3a9752['locale'],_0x15c5ee=_0x3a9752['plugins']['get']('TrackChangesEditing');_0x15c5ee['descriptionFactory']['registerElementLabel']('paragraph',_0x3e9100=>o(_0x5b063d,'ELEMENT_PARAGRAPH',_0x3e9100)),_0x15c5ee['enableDefaultAttributesIntegration']('paragraph'),_0x15c5ee['enableCommand']('insertParagraph'),_0x3a9752['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3a9752),{'priority':'highest'}),_0x3a9752['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x272a10,_0x42a2ef,_0x4cde03)=>{_0x4cde03['options']['showSuggestionHighlights']&&nr(_0x3a9752,{'showActiveMarker':!0x1})(_0x272a10,_0x42a2ef,_0x4cde03);},{'priority':'highest'});const _0x5ddee8=_0x15c5ee['descriptionFactory'];_0x5ddee8['registerDescriptionCallback'](_0x2053e5=>{if('insertion'!==_0x2053e5['type'])return;const {start:_0x2f8a0d,end:_0x49d315}=_0x2053e5['getFirstRange']();if(!_0x2f8a0d['isTouching'](_0x49d315)||!_0x2f8a0d['nodeAfter'])return;const _0x773900=_0x3a9752['model']['schema'],_0x25e1f1=_0x2f8a0d['nodeAfter'];return _0x773900['isBlock'](_0x25e1f1)&&!_0x773900['isLimit'](_0x25e1f1)&&_0x773900['checkChild'](_0x25e1f1,'$text')?{'type':'insertion','content':o(_0x5b063d,'*Insert:*\x20%0',_0x5ddee8['getItemLabel'](_0x25e1f1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5200ae=this['editor'],_0x14bfac=_0x5200ae['locale'];_0x5200ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5621d0=>{if('formatBlock'!=_0x5621d0['type'])return;const {data:_0x355fc9}=_0x5621d0;return _0x355fc9&&'paragraph'==_0x355fc9['commandName']?{'type':'format','content':o(_0x14bfac,'*Change\x20to:*\x20%0',o(_0x14bfac,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x43bf92,{showActiveMarker:_0xc59b25=!0x0}={}){return(_0x51a197,_0x42b93e,_0x1b2b17)=>{const _0x42e099=_0x43bf92['plugins']['get']('TrackChangesEditing'),_0x40f5b8=_0x42b93e['markerRange']['start'],_0x30e739=_0x42b93e['markerRange']['end'],_0xe01ef4=_0x43bf92['model']['schema'];if(!_0x40f5b8['isTouching'](_0x30e739)||!_0x40f5b8['nodeAfter'])return;const _0x445dbe=_0x40f5b8['nodeAfter'];if(_0xe01ef4['isBlock'](_0x445dbe)&&!_0xe01ef4['isLimit'](_0x445dbe)&&_0xe01ef4['checkChild'](_0x445dbe,'$text')){if(!_0x1b2b17['consumable']['consume'](_0x42b93e['markerRange'],_0x51a197['name']))return;const _0x6f07e5=_0x1b2b17['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4e2c80=_0x1b2b17['mapper']['toViewPosition'](_0x30e739);_0xc59b25&&_0x42e099['activeMarkers']['includes'](_0x42b93e['markerName'])&&_0x1b2b17['writer']['addClass']('ck-suggestion-marker--active',_0x6f07e5),_0x1b2b17['writer']['insert'](_0x4e2c80,_0x6f07e5),_0x1b2b17['mapper']['bindElementToMarker'](_0x6f07e5,_0x42b93e['markerName']);}};}class pt extends _0x61eb43{['afterInit'](){const _0x42fc77=this['editor'];if(!_0x42fc77['plugins']['has']('RemoveFormatEditing'))return;_0x42fc77['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e749b=this['editor'];_0x1e749b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b21c8=>{if('formatBlock'!=_0x5b21c8['type']&&'formatInline'!=_0x5b21c8['type'])return;const {data:_0x3b4f30}=_0x5b21c8;return _0x3b4f30&&'removeFormat'==_0x3b4f30['commandName']?{'type':'format','content':o(_0x1e749b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x61eb43{['afterInit'](){const _0x3b5a58=this['editor'];if(!_0x3b5a58['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5e23cd=_0x3b5a58['plugins']['get']('TrackChangesEditing');_0x5e23cd['enableCommand']('goToPreviousRestrictedEditingException'),_0x5e23cd['enableCommand']('goToNextRestrictedEditingException');const _0x55575f=_0x3b5a58['plugins']['get']('RestrictedEditingModeEditing');_0x55575f['enableCommand']('trackChanges'),_0x55575f['enableCommand']('acceptSuggestion'),_0x55575f['enableCommand']('discardSuggestion'),_0x55575f['enableCommand']('acceptAllSuggestions'),_0x55575f['enableCommand']('discardAllSuggestions'),_0x55575f['enableCommand']('acceptSelectedSuggestions'),_0x55575f['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x61eb43{static get['requires'](){return[_0x5c8d28];}['init'](){const _0x1096ea=this['editor'],_0x57da6d=_0x1096ea['plugins']['get']('TrackChangesEditing');_0x57da6d['enableCommand']('shiftEnter'),_0x1096ea['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1096ea),{'priority':'high'}),_0x1096ea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1096ea),{'priority':'high'}),_0x1096ea['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b664c,_0x4dd840,_0x2edbdf)=>{_0x2edbdf['options']['showSuggestionHighlights']&&de(_0x1096ea,{'showActiveMarker':!0x1})(_0x1b664c,_0x4dd840,_0x2edbdf);}),_0x57da6d['descriptionFactory']['registerElementLabel']('softBreak',_0x531d37=>o(_0x1096ea['locale'],'ELEMENT_LINE_BREAK',_0x531d37));}}function de(_0x42c589,{showActiveMarker:_0x4a22f8=!0x0}={}){return(_0x10e132,_0x29a62e,_0x2339a9)=>{const _0x3473c7=_0x42c589['plugins']['get']('TrackChangesEditing');if(!_0x2339a9['consumable']['test'](_0x29a62e['markerRange'],_0x10e132['name']))return;const _0x5296c9=_0x42c589['model'];for(const _0x3d572b of _0x29a62e['markerRange']['getItems']()){if(!_0x3d572b['is']('element','softBreak'))continue;const _0xc97200='deletion'==_0x29a62e['markerName']['split'](':')[0x1]?'merge':'split',_0x2e553d=_0x2339a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc97200}),_0x4fedc1=_0x2339a9['mapper']['toViewPosition'](_0x5296c9['createPositionBefore'](_0x3d572b));_0x4a22f8&&_0x3473c7['activeMarkers']['includes'](_0x29a62e['markerName'])&&_0x2339a9['writer']['addClass']('ck-suggestion-marker--active',_0x2e553d),_0x2339a9['writer']['insert'](_0x4fedc1,_0x2e553d),_0x2339a9['mapper']['bindElementToMarker'](_0x2e553d,_0x29a62e['markerName']);}};}class wt extends _0x61eb43{['afterInit'](){const _0xb1fecc=this['editor'],_0x2d6c62=_0xb1fecc['model'],_0x3ef83f=_0xb1fecc['locale'];if(!_0xb1fecc['plugins']['has']('StandardEditingModeEditing'))return;const _0x53f30c=_0xb1fecc['plugins']['get']('TrackChangesEditing'),_0x489356='restrictedEditingException',_0x1189e8=_0xb1fecc['commands']['get'](_0x489356);_0x53f30c['enableCommand'](_0x489356,(_0x1d20cd,_0xab558d={})=>{const _0x15b185=_0x2d6c62['document']['selection'];if(_0x15b185['isCollapsed'])return void _0x1d20cd(_0xab558d);const _0x302279=void 0x0!==_0xab558d['forceValue']?_0xab558d['forceValue']:!_0x1189e8['value'];_0x2d6c62['change'](()=>{const _0x96d22b=Array['from'](_0x15b185['getRanges']());for(const _0x262fda of _0x96d22b){const _0x81267a=_0x302279?[_0x262fda]:io(_0x489356,_0x262fda,_0x2d6c62);for(const _0xd6b299 of _0x81267a)_0x53f30c['markInlineFormat'](_0xd6b299,{'commandName':_0x489356,'commandParams':[{'forceValue':_0x302279}]});}});}),_0x53f30c['descriptionFactory']['registerDescriptionCallback'](_0x3f499f=>{if('formatBlock'!=_0x3f499f['type']&&'formatInline'!=_0x3f499f['type'])return;const {data:_0xfe3b9f}=_0x3f499f;return _0xfe3b9f&&_0xfe3b9f['commandName']==_0x489356?_0xfe3b9f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ef83f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3ef83f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x61eb43{['afterInit'](){const _0x49d0e7=this['editor'];if(!_0x49d0e7['plugins']['has']('Style')||!_0x49d0e7['plugins']['has']('DataSchema'))return;const _0x2a3393=_0x49d0e7['plugins']['get']('TrackChangesEditing'),_0x231a85=_0x49d0e7['locale'],_0x5c7139=_0x49d0e7['config']['get']('style')||{},_0x50cce0=_0x49d0e7['plugins']['get']('GeneralHtmlSupport'),_0x1978e8=_0x49d0e7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x49d0e7['plugins']['get']('DataSchema'),_0x5c7139['definitions']);_0x2a3393['enableDefaultAttributesIntegration']('style');const _0xe15235=new Set();for(const _0xe1bedb of _0x1978e8['block']){const _0xa51f1d=_0x50cce0['getGhsAttributeNameForElement'](_0xe1bedb['element']);_0xe15235['add'](_0xa51f1d);}const _0x9b2cfd=new Set();for(const _0x1db8c5 of _0x1978e8['inline']){const _0x25812f=_0x50cce0['getGhsAttributeNameForElement'](_0x1db8c5['element']);_0x9b2cfd['add'](_0x25812f);for(const _0x1feff8 of _0x1db8c5['ghsAttributes'])_0x9b2cfd['add'](_0x1feff8);}for(const _0x34a6a0 of _0xe15235)_0x2a3393['registerBlockAttribute'](_0x34a6a0),_0x2a3393['descriptionFactory']['registerAttributeLabel'](_0x34a6a0,o(_0x231a85,'FORMAT_STYLE'));for(const _0x130323 of _0x9b2cfd)_0x2a3393['registerInlineAttribute'](_0x130323),_0x2a3393['descriptionFactory']['registerAttributeLabel'](_0x130323,o(_0x231a85,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd479d4=this['editor'],_0x26ccbb=_0xd479d4['locale'];_0xd479d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x189749=>{if('formatBlock'!=_0x189749['type']&&'formatInline'!=_0x189749['type'])return;const {data:_0x355872}=_0x189749;return _0x355872&&'style'===_0x355872['commandName']?_0x355872['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26ccbb,'*Set\x20format:*\x20%0',_0x355872['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x26ccbb,'*Remove\x20format:*\x20%0',_0x355872['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x61eb43{['afterInit'](){const _0x2a036e=this['editor'],_0x553a86=_0x2a036e['model']['document']['selection'];if(!_0x2a036e['plugins']['has']('TableEditing'))return;const _0x55aad5=_0x2a036e['locale'],_0x1984c7=_0x2a036e['plugins']['get']('TrackChangesEditing'),_0x365572=_0x2a036e['plugins']['get']('TableUtils');_0x1984c7['descriptionFactory']['registerElementLabel']('table',_0x442ae3=>o(_0x55aad5,'ELEMENT_TABLE',_0x442ae3)),this['_setupColumnsRowsFixing'](),_0x1984c7['enableCommand']('insertTable'),_0x1984c7['enableCommand']('selectTableRow'),_0x1984c7['enableCommand']('selectTableColumn');for(const _0x274074 of['insertTableRowAbove','insertTableRowBelow']){const _0x5390c2=_0x2a036e['commands']['get'](_0x274074);_0x1984c7['enableCommand'](_0x274074,_0x5c589b=>{_0x2a036e['model']['change'](_0x4eab11=>{_0x5c589b();const _0x5dae94='above'===_0x5390c2['order'],_0x49b2b2=_0x365572['getSelectionAffectedTableCells'](_0x553a86),_0xd5bb3b=_0x365572['getRowIndexes'](_0x49b2b2),_0x2ba575=_0x5dae94?_0xd5bb3b['first']-0x1:_0xd5bb3b['last']+0x1,_0x1a5144=_0x49b2b2[0x0]['findAncestor']('table'),_0x47e886=_0x365572['createTableWalker'](_0x1a5144,{'startRow':_0x2ba575,'endRow':_0x2ba575}),_0x5c9df3=Array['from'](_0x47e886)['map'](_0x5f1972=>_0x4eab11['createRangeOn'](_0x5f1972['cell']));_0x1984c7['markMultiRangeInsertion'](_0x5c9df3,'tableRow');});});}for(const _0x36881d of['insertTableColumnLeft','insertTableColumnRight']){const _0x24d37c=_0x2a036e['commands']['get'](_0x36881d);_0x1984c7['enableCommand'](_0x36881d,_0x809602=>{_0x2a036e['model']['change'](_0x715cfb=>{_0x809602();const _0x2637a2='left'===_0x24d37c['order'],_0x20c6fd=_0x365572['getSelectionAffectedTableCells'](_0x553a86),_0x14cff6=_0x365572['getColumnIndexes'](_0x20c6fd),_0x24808d=_0x2637a2?_0x14cff6['first']-0x1:_0x14cff6['last']+0x1,_0x5e5ea7=_0x20c6fd[0x0]['findAncestor']('table'),_0x2cc58f=_0x365572['createTableWalker'](_0x5e5ea7,{'startRow':0x0,'column':_0x24808d,'includeAllSlots':!0x1}),_0x48a1f1=Array['from'](_0x2cc58f)['map'](_0x178c30=>_0x715cfb['createRangeOn'](_0x178c30['cell']));_0x1984c7['markMultiRangeInsertion'](_0x48a1f1,'tableColumn');});});}for(const _0xfaedff of['removeTableRow','removeTableColumn']){const _0x42143a=_0xfaedff['substr'](0xb),_0x4e5814=_0x42143a['toLowerCase'](),_0x538df5=_0x4e5814['substr'](0x0,0x3)+'span',_0x1cc2d6='table'+_0x42143a,_0x19cc9c='min'+_0x42143a,_0xa59ba0='max'+_0x42143a;_0x1984c7['enableCommand'](_0xfaedff,()=>{_0x2a036e['model']['change'](_0x34504a=>{const _0x27e277=_0x365572['getSelectionAffectedTableCells'](_0x553a86),_0xda525c=_0x27e277[0x0]['findAncestor']('table');let _0x273cf7;if('removeTableRow'==_0xfaedff){const _0x510cd3=_0x365572['getRowIndexes'](_0x27e277);_0x273cf7={'startRow':_0x510cd3['first'],'endRow':_0x510cd3['last'],'includeAllSlots':!0x0};}else{const _0x440936=_0x365572['getColumnIndexes'](_0x27e277);_0x273cf7={'startColumn':_0x440936['first'],'endColumn':_0x440936['last'],'includeAllSlots':!0x0};}const _0x2cf074=_0x365572['createTableWalker'](_0xda525c,_0x273cf7),_0x48e7f7=Array['from'](_0x2cf074)['map'](({cell:_0x4fc8b3})=>_0x4fc8b3),_0xd351ad=Ee(_0x48e7f7['filter'](_0x4c961c=>_0x4c961c['hasAttribute'](_0x538df5))),_0x48ff34=Ee(_0x48e7f7['filter'](_0x2cbf65=>!_0x2cbf65['hasAttribute'](_0x538df5)))['map'](_0x524ef9=>_0x34504a['createRangeOn'](_0x524ef9)),_0x23dd4f=_0x1984c7['markMultiRangeDeletion'](_0x48ff34,_0x1cc2d6);if(_0x23dd4f&&('tableRow'==_0x23dd4f['subType']||'tableColumn'==_0x23dd4f['subType'])){const _0x21a2ec=this['_getSuggestionCoords'](_0x23dd4f);for(const _0x443027 of _0xd351ad){const _0x1ee47d=_0x34504a['createRangeOn'](_0x443027),_0x8c2eee=_0x365572['getCellLocation'](_0x443027),_0x324601=_0x443027['getAttribute'](_0x538df5)-0x1,_0x382194=_0x21a2ec[_0x19cc9c],_0x58985d=_0x21a2ec[_0xa59ba0];_0x382194<=_0x8c2eee[_0x4e5814]&&_0x8c2eee[_0x4e5814]+_0x324601<=_0x58985d&&_0x23dd4f['addRange'](_0x1ee47d);}}});});}function _0x2b0cd5(_0x5910f1){const _0x2dbcab=Array['from'](_0x553a86['getRanges']())['map'](_0x40fc46=>_0x2819a3['fromRange'](_0x40fc46));_0x2a036e['model']['change'](_0x384145=>{const _0x185e58=_0x384145['batch'];_0x5910f1=_0x5910f1['filter'](_0x345438=>'$graveyard'!=_0x345438['root']['rootName']),_0x384145['setSelection'](_0x5910f1),_0x2a036e['commands']['get']('removeTableRow')['refresh'](),_0x2a036e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a036e['model']['enqueueChange'](()=>{_0x2a036e['model']['enqueueChange'](_0x185e58,_0x5c9542=>{const _0x55ea70=_0x2dbcab['filter'](_0x3f74d4=>'$graveyard'!=_0x3f74d4['root']['rootName']);_0x55ea70['length']>0x0&&_0x5c9542['setSelection'](_0x55ea70);for(const _0x1fe0c6 of _0x2dbcab)_0x1fe0c6['detach']();});});});}function _0x23f2f0(_0xacf16e){_0x2a036e['model']['change'](_0x223fdf=>{const _0x4d5384=Array['from'](_0x553a86['getRanges']())['map'](_0xd8b098=>_0x2819a3['fromRange'](_0xd8b098)),_0x1b0c2f=[];for(const _0x4c5242 of _0xacf16e)for(const _0x46d424 of _0x4c5242['getItems']({'shallow':!0x0}))_0x1b0c2f['push'](_0x46d424);for(const _0x328456 of _0x1b0c2f)'$graveyard'!=_0x328456['root']['rootName']&&(_0x223fdf['setSelection'](_0x223fdf['createPositionAt'](_0x328456,0x0)),_0x2a036e['commands']['get']('removeTableColumn')['refresh'](),_0x2a036e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59ece8=_0x4d5384['filter'](_0xa640b1=>'$graveyard'!=_0xa640b1['root']['rootName']);_0x59ece8['length']>0x0&&_0x223fdf['setSelection'](_0x59ece8);for(const _0x1dad7d of _0x4d5384)_0x1dad7d['detach']();});}function _0x2c4698(_0x49357b,_0x24099d){return _0x24099d['every'](_0x12641a=>_0x49357b['some'](_0x445429=>_0x445429['end']['isEqual'](_0x12641a['start'])||_0x12641a['end']['isEqual'](_0x445429['start'])));}function _0x5b0642(_0x1656d4,_0x1bf97a){return _0x1656d4['some'](_0x4a032a=>_0x1bf97a['some'](_0x39947d=>_0x4a032a['end']['isTouching'](_0x39947d['start'])));}_0x2a036e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4716c8,_0x221ff6,_0x5dd693)=>{if(!_0x5dd693['options']['showSuggestionHighlights'])return;const _0x5b5557=_0x221ff6['item'];if(!_0x5b5557)return;const _0x3dc65a=_0x5dd693['mapper']['toViewElement'](_0x5b5557);function _0x3d526c(_0x3fbdbe){return Array['isArray'](_0x3fbdbe)?_0x3fbdbe:[_0x3fbdbe];}_0x3dc65a&&'tableCell'===_0x5b5557['name']&&_0x5b1021(_0x3dc65a,_0x5dd693['writer'],(_0x3c0416,_0x203db9,_0x315d29)=>_0x315d29['addClass'](_0x3d526c(_0x203db9['classes']),_0x3c0416),(_0x5b95c0,_0x34a146,_0x3c3606)=>_0x3c3606['removeClass'](_0x3d526c(_0x34a146['classes']),_0x5b95c0));},{'priority':'highest'}),_0x1984c7['descriptionFactory']['registerDescriptionCallback'](_0x480a3a=>{if('insertion'!=_0x480a3a['type']&&'deletion'!=_0x480a3a['type'])return;const _0x48b3f7=_0x480a3a['getContainedElement']();if(null!=_0x48b3f7&&_0x48b3f7['is']('element','table')){if('insertion'==_0x480a3a['type']){const _0x22f3cd=_0x480a3a['getItems']()['filter'](_0xe78e60=>_0xe78e60['is']('$textProxy'))['map'](_0x35d49c=>_0x35d49c['data']);if(_0x22f3cd['length'])return{'type':'insertion','content':o(_0x55aad5,'*Insert:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x22f3cd['join']('\x20')+'\x22'))};}if('deletion'==_0x480a3a['type']){const _0x2b520e=_0x480a3a['getItems']()['filter'](_0xe0a848=>_0xe0a848['is']('$textProxy'))['map'](_0xe78d66=>_0xe78d66['data']);if(_0x2b520e['length'])return{'type':'deletion','content':o(_0x55aad5,'*Remove:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2b520e['join']('\x20')+'\x22'))};}}}),_0x1984c7['descriptionFactory']['registerDescriptionCallback'](_0x463fc8=>{if('tableRow'==_0x463fc8['subType']){const _0x1af925=_0x463fc8['getItems']()['filter'](_0x26add7=>_0x26add7['is']('$textProxy'))['map'](_0x1ebc23=>_0x1ebc23['data']),_0x38cdf6=this['_getSuggestionCoords'](_0x463fc8),_0x2509ec=_0x38cdf6['maxRow']-_0x38cdf6['minRow']+0x1;if('insertion'==_0x463fc8['type'])return _0x1af925['length']?{'type':'insertion','content':o(_0x55aad5,'*Insert:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2509ec,'\x22'+_0x1af925['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x55aad5,'*Insert:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_ROW',_0x2509ec))};if('deletion'==_0x463fc8['type'])return _0x1af925['length']?{'type':'deletion','content':o(_0x55aad5,'*Remove:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2509ec,'\x22'+_0x1af925['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x55aad5,'*Remove:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_ROW',_0x2509ec))};}if('tableColumn'==_0x463fc8['subType']){const _0x52a7de=_0x463fc8['getItems']()['filter'](_0x192536=>_0x192536['is']('$textProxy'))['map'](_0x39f3d8=>_0x39f3d8['data']),_0x3194d2=this['_getSuggestionCoords'](_0x463fc8),_0x466345=_0x3194d2['maxColumn']-_0x3194d2['minColumn']+0x1;if('insertion'==_0x463fc8['type'])return _0x52a7de['length']?{'type':'insertion','content':o(_0x55aad5,'*Insert:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x466345,'\x22'+_0x52a7de['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x55aad5,'*Insert:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_COLUMN',_0x466345))};if('deletion'==_0x463fc8['type'])return _0x52a7de['length']?{'type':'deletion','content':o(_0x55aad5,'*Remove:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x466345,'\x22'+_0x52a7de['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x55aad5,'*Remove:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_COLUMN',_0x466345))};}}),_0x1984c7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2b0cd5),_0x1984c7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2b0cd5),_0x1984c7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x23f2f0),_0x1984c7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x23f2f0),_0x1984c7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2c4698),_0x1984c7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2c4698),_0x1984c7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5b0642),_0x1984c7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5b0642);}['_acceptFormatSuggestionCallbackFactory'](){const _0x549334=this['editor'],_0x107424=_0x549334['model']['document']['selection'];return(_0x3e0dc6,_0xb46140)=>{_0x549334['model']['change'](_0x47f8b6=>{const {commandName:_0x159798,commandParams:_0x5bce2c}=_0xb46140;let _0x3ebce5=_0x3e0dc6[0x0]['end']['nodeBefore'];_0x5bce2c&&_0x5bce2c[0x0]&&!0x1===_0x5bce2c[0x0]['forceValue']&&(_0x3ebce5=_0x3e0dc6[0x0]['start']['nodeAfter']);const _0x22eb08=_0x47f8b6['createRangeIn'](_0x3ebce5);if('$graveyard'==_0x22eb08['root']['rootName'])return;const _0x55339b=Array['from'](_0x107424['getRanges']())['map'](_0x7e2f33=>_0x2819a3['fromRange'](_0x7e2f33));_0x47f8b6['setSelection'](_0x22eb08),_0x549334['commands']['get'](_0x159798)['refresh'](),_0x5bce2c['push']({'forceDefaultExecution':!0x0}),_0x549334['execute'](_0x159798,..._0x5bce2c);const _0x3fba56=_0x55339b['filter'](_0x3bf53f=>'$graveyard'!=_0x3bf53f['root']['rootName']);_0x3fba56['length']>0x0&&_0x47f8b6['setSelection'](_0x3fba56);for(const _0x14ce20 of _0x55339b)_0x14ce20['detach']();});};}['_getCoordsForCells'](_0x5f30f9){const _0x457da5=this['editor']['plugins']['get']('TableUtils');let _0x47e7fd=Number['MAX_SAFE_INTEGER'],_0x51bf4e=Number['MIN_SAFE_INTEGER'],_0x453c28=Number['MAX_SAFE_INTEGER'],_0x42ea5=Number['MIN_SAFE_INTEGER'];for(const _0x40b748 of _0x5f30f9){if('$graveyard'==_0x40b748['root']['rootName'])continue;const {row:_0x236711,column:_0x336494}=_0x457da5['getCellLocation'](_0x40b748),_0x4f4148=_0x40b748['hasAttribute']('rowspan')?_0x40b748['getAttribute']('rowspan')-0x1:0x0,_0x373a46=_0x40b748['hasAttribute']('colspan')?_0x40b748['getAttribute']('colspan')-0x1:0x0;_0x47e7fd=_0x236711<_0x47e7fd?_0x236711:_0x47e7fd,_0x51bf4e=_0x236711+_0x4f4148>_0x51bf4e?_0x236711+_0x4f4148:_0x51bf4e,_0x453c28=_0x336494<_0x453c28?_0x336494:_0x453c28,_0x42ea5=_0x336494+_0x373a46>_0x42ea5?_0x336494+_0x373a46:_0x42ea5;}return{'minRow':_0x47e7fd,'maxRow':_0x51bf4e,'minColumn':_0x453c28,'maxColumn':_0x42ea5};}['_setupColumnsRowsFixing'](){const _0x1ac4dd=this['editor'],_0x28f485=_0x1ac4dd['plugins']['get']('TrackChangesEditing'),_0x3d7a8b=_0x1ac4dd['plugins']['get']('TableUtils');_0x1ac4dd['model']['document']['on']('change:data',()=>{const _0x50e534=Array['from'](_0x1ac4dd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50f286,data:_0x249de2}of _0x50e534){const {group:_0x1349da,id:_0x56f004,subType:_0x1e3e9b}=_0x28f485['_splitMarkerName'](_0x50f286);if('suggestion'!=_0x1349da)continue;if(null!=_0x249de2['oldRange'])continue;const _0x359bd3=_0x28f485['getSuggestion'](_0x56f004);this['_tablePostFixingSubtypes']['includes'](_0x1e3e9b)&&this['_tableSuggestions']['add'](_0x359bd3);}},{'priority':'low'});const _0x2e1080=(_0x53b576,_0x29f8db)=>{let _0x15f10a=!0x1;const _0x11aa8f=_0x29f8db['createRangeOn'](_0x53b576),_0x20717a=_0x53b576['findAncestor']('table'),_0x4aca9b=_0x3d7a8b['getCellLocation'](_0x53b576);for(const _0x355b9d of this['_tableSuggestions']){const _0x5442a3=_0x355b9d['subType'],_0x29ac82=_0x5442a3['startsWith']('tablePaste'),_0xf479c7=_0x5442a3['substr'](_0x29ac82?0xa:0x5),_0x530864=_0xf479c7['toLowerCase'](),_0x4774d0=_0x530864['substr'](0x0,0x3)+'span',_0x212c40='min'+_0xf479c7,_0x597def='max'+_0xf479c7;if(!_0x355b9d['isInContent'])continue;if(_0x20717a!=_0x355b9d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x355b9d['isIntersectingWithRange'](_0x11aa8f))continue;const _0x3b58ad=_0x53b576['hasAttribute'](_0x4774d0)?_0x53b576['getAttribute'](_0x4774d0)-0x1:0x0,_0x2a7675=this['_getSuggestionCoords'](_0x355b9d),_0x4cdb8b=_0x2a7675[_0x212c40],_0x4d0688=_0x2a7675[_0x597def];_0x4cdb8b<=_0x4aca9b[_0x530864]&&_0x4aca9b[_0x530864]+_0x3b58ad<=_0x4d0688&&(_0x355b9d['addRange'](_0x11aa8f),_0x15f10a=!0x0);}return _0x15f10a;};_0x1ac4dd['model']['document']['registerPostFixer'](_0x4d0d01=>{let _0x112706=!0x1;for(const _0x5d3711 of _0x1ac4dd['model']['document']['differ']['getChanges']())if('insert'==_0x5d3711['type']){if('tableRow'==_0x5d3711['name']){for(const _0x2dbee5 of _0x5d3711['position']['nodeAfter']['getChildren']())_0x112706=_0x112706||_0x2e1080(_0x2dbee5,_0x4d0d01);}else'tableCell'==_0x5d3711['name']&&(_0x112706=_0x112706||_0x2e1080(_0x5d3711['position']['nodeAfter'],_0x4d0d01));}return _0x112706;});}['_getSuggestionCoords'](_0x129e6d){return this['_getCoordsForCells'](_0x129e6d['getRanges']()['map'](_0x2cd681=>_0x2cd681['start']['nodeAfter']));}constructor(_0x6028d3){super(_0x6028d3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x5dc63c){return Array['from'](new Set(_0x5dc63c)['values']());}class St extends _0x61eb43{static get['requires'](){return[jt];}['afterInit'](){const _0x22e302=this['editor'],_0x52980b=_0x22e302['model']['document']['selection'],_0x58846c=_0x22e302['locale'];if(!_0x22e302['plugins']['has']('TableEditing'))return;const _0x950a4e=_0x22e302['plugins']['get']('TrackChangesEditing'),_0x47809a=_0x22e302['plugins']['get']('TableUtils'),_0x3aebdd=_0x22e302['plugins']['get'](jt);_0x3aebdd['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x950a4e['enableCommand']('mergeTableCells',()=>{const _0x295024=_0x47809a['getSelectionAffectedTableCells'](_0x22e302['model']['document']['selection']);_0x22e302['model']['change'](()=>{_0x950a4e['markMultiRangeBlockFormat'](_0x295024,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x22e302['commands']['get']('mergeTableCells')['on']('execute',(_0x52e7ef,_0x1098d1)=>{_0x22e302['commands']['get']('trackChanges')['value']&&(_0x1098d1['length']>0x0&&_0x1098d1[_0x1098d1['length']-0x1]&&_0x1098d1[_0x1098d1['length']-0x1]['forceDefaultExecution']||_0x950a4e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x52e7ef['stop']());},{'priority':'highest'});for(const _0x23158f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3ea2af=_0x22e302['commands']['get'](_0x23158f);_0x950a4e['enableCommand'](_0x23158f,()=>{const _0x2ad498=_0x22e302['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x58cfd5=>_0x58cfd5['is']('element','tableCell')),_0x2f1d3a=_0x3ea2af['value'];_0x22e302['model']['change'](()=>{_0x950a4e['markMultiRangeBlockFormat']([_0x2ad498,_0x2f1d3a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5eace8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x437cf3=_0x22e302['commands']['get'](_0x5eace8);_0x950a4e['enableCommand'](_0x5eace8,()=>{const _0x38906f=_0x47809a['getSelectionAffectedTableCells'](_0x22e302['model']['document']['selection'])[0x0],_0x47b0fe=_0x38906f['findAncestor']('table'),{column:_0x327c67,row:_0x5a4804}=_0x47809a['getCellLocation'](_0x38906f);let _0x12045e=[];if('horizontally'==_0x437cf3['direction']){const _0x1aec87=_0x47809a['createTableWalker'](_0x47b0fe,{'startRow':_0x5a4804,'endRow':_0x5a4804,'includeAllSlots':!0x0});_0x12045e=Array['from'](_0x1aec87)['map'](_0x5cdf4f=>_0x5cdf4f['cell']);}else{const _0x5cd31b=_0x47809a['createTableWalker'](_0x47b0fe,{'column':_0x327c67,'includeAllSlots':!0x0});_0x12045e=Array['from'](_0x5cd31b)['map'](_0x4ddee7=>_0x4ddee7['cell']);}_0x22e302['model']['change'](_0x3672e0=>{_0x950a4e['markBlockFormat'](_0x3672e0['createRangeOn'](_0x38906f),{'commandName':_0x5eace8,'commandParams':[]},_0x12045e,_0x5eace8);});});}_0x950a4e['descriptionFactory']['registerDescriptionCallback'](_0x536ca7=>{if('formatBlock'!=_0x536ca7['type']&&'formatInline'!=_0x536ca7['type'])return;const {data:_0x47bf95}=_0x536ca7;return _0x47bf95&&'mergeTableCells'==_0x47bf95['commandName']?{'type':'format','content':o(_0x58846c,'*Merge\x20cells*')}:void 0x0;}),_0x950a4e['descriptionFactory']['registerDescriptionCallback'](_0x3270f9=>{if('formatBlock'!=_0x3270f9['type']&&'formatInline'!=_0x3270f9['type'])return;const {data:_0x56d8b3}=_0x3270f9;return _0x56d8b3?'splitTableCellVertically'==_0x56d8b3['commandName']?{'type':'format','content':o(_0x58846c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x56d8b3['commandName']?{'type':'format','content':o(_0x58846c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x472132=_0x3aebdd['_acceptFormatSuggestionCallbackFactory']();for(const _0x40a8f4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x950a4e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40a8f4,'accept',_0x472132);for(const _0x389609 of['splitTableCellVertically','splitTableCellHorizontally'])_0x950a4e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x389609,'accept',_0x472132);_0x950a4e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5ca66b=>{_0x22e302['model']['change'](_0x11c45c=>{const _0x189124=Array['from'](_0x52980b['getRanges']())['map'](_0xf5057=>_0x2819a3['fromRange'](_0xf5057));_0x11c45c['setSelection'](_0x5ca66b),_0x22e302['commands']['get']('mergeTableCells')['refresh'](),_0x22e302['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1fc7be=_0x189124['filter'](_0x4e9932=>'$graveyard'!=_0x4e9932['root']['rootName']);_0x1fc7be['length']>0x0&&_0x11c45c['setSelection'](_0x1fc7be);for(const _0x495bce of _0x189124)_0x495bce['detach']();});});for(const _0x3b82e1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x58cf70=_0x22e302['commands']['get'](_0x3b82e1);_0x58cf70['on']('set:isEnabled',(_0x36607e,_0x32c84b,_0x5563b2)=>{if(_0x5563b2){const _0x17ca2f=_0x22e302['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f9ad9=>_0x1f9ad9['is']('element','tableCell'));this['_areMergableCells'](_0x58cf70['value'],_0x17ca2f)||(_0x36607e['return']=!0x1,_0x36607e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4c99e4=this['editor']['commands']['get']('mergeTableCells'),_0x51980c=this['editor']['plugins']['get']('TableUtils');if(!_0x4c99e4['isEnabled'])return!0x1;const _0xce328b=_0x51980c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1efcc1 of _0xce328b)for(const _0x379858 of _0xce328b)if(_0x1efcc1!=_0x379858&&!this['_areMergableCells'](_0x1efcc1,_0x379858))return!0x1;return!0x0;}['_areMergableCells'](_0x12dbbf,_0x27380b){const _0x40c532=this['editor']['plugins']['get']('TrackChangesEditing'),_0x547a9b=this['editor']['model']['createRangeOn'](_0x12dbbf),_0x29add2=this['editor']['model']['createRangeOn'](_0x27380b),_0x1a0464=new Set(),_0x170c8b=new Set();for(const _0x93f6dd of _0x40c532['getSuggestions']())if(('insertion'==_0x93f6dd['type']||'deletion'==_0x93f6dd['type']||'mergeTableCells'==_0x93f6dd['subType'])&&_0x93f6dd['isInContent']){for(const _0xb75855 of _0x93f6dd['getRanges']())_0xb75855['containsRange'](_0x547a9b,!0x0)&&_0x1a0464['add'](_0x93f6dd['type']+':'+_0x93f6dd['author']['id']),_0xb75855['containsRange'](_0x29add2,!0x0)&&_0x170c8b['add'](_0x93f6dd['type']+':'+_0x93f6dd['author']['id']);}if(_0x1a0464['size']!=_0x170c8b['size'])return!0x1;for(const _0x43929f of _0x1a0464)if(!_0x170c8b['has'](_0x43929f))return!0x1;return!0x0;}}class At extends _0x61eb43{static get['requires'](){return[jt];}['afterInit'](){const _0x557479=this['editor'];if(!_0x557479['plugins']['has']('TableEditing'))return;const _0x50a337=_0x557479['locale'],_0x298db2=_0x557479['plugins']['get']('TrackChangesEditing');_0x298db2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x298db2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x298db2['registerBlockAttribute']('headingRows'),_0x298db2['registerBlockAttribute']('headingColumns'),_0x298db2['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x50a337,'FORMAT_HEADER_ROW')),_0x298db2['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x50a337,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f30fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x553dab=this['editor']['plugins']['get']('TableUtils'),_0x292fb3=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x195e1f({showActiveMarker:_0x30e821=!0x0,setDataAttribute:_0x2b4212=!0x0}={}){return(_0x14abd0,_0x460dd4,_0x5f4c14)=>{const {type:_0x10ec95,id:_0x2d5dae}=_0x4f30fb['_splitMarkerName'](_0x460dd4['markerName']),_0x2acbfe=_0x4f30fb['getSuggestion'](_0x2d5dae),_0x201116=_0x2acbfe['data'];if('formatBlock'!=_0x2acbfe['type']||!_0x201116||'setTableColumnHeader'!=_0x201116['commandName'])return;if(_0x460dd4['item'])return void _0x14abd0['stop']();if(!_0x5f4c14['consumable']['consume'](_0x460dd4['markerRange'],_0x14abd0['name']))return;const _0x304c8f=_0x460dd4['markerRange']['start']['nodeAfter'],_0x2c4255=_0x460dd4['markerRange']['end']['nodeBefore'],_0x2f22e3=_0x304c8f['parent']['parent'],{column:_0x4f4bbe}=_0x553dab['getCellLocation'](_0x304c8f),{column:_0x2126df}=_0x553dab['getCellLocation'](_0x2c4255);for(let _0x3cc1bd=_0x4f4bbe;_0x3cc1bd<=_0x2126df;_0x3cc1bd++){const _0x9ef46e=_0x553dab['createTableWalker'](_0x2f22e3,{'column':_0x3cc1bd,'includeAllSlots':!0x1});for(const _0x3c9f86 of _0x9ef46e){const _0x14597f=_0x3c9f86['cell'],_0x5e2ade=_0x5f4c14['mapper']['toViewElement'](_0x14597f);_0x5f4c14['writer']['addClass']('ck-suggestion-marker-'+_0x10ec95,_0x5e2ade),_0x2b4212&&_0x5f4c14['writer']['setAttribute']('data-suggestion',_0x2d5dae,_0x5e2ade),_0x5f4c14['mapper']['bindElementToMarker'](_0x5e2ade,_0x460dd4['markerName']),_0x30e821&&(_0x4f30fb['activeMarkers']['includes'](_0x460dd4['markerName'])?_0x5f4c14['writer']['addClass']('ck-suggestion-marker--active',_0x5e2ade):_0x5f4c14['writer']['removeClass']('ck-suggestion-marker--active',_0x5e2ade));}}};}_0x4f30fb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x292fb3),_0x4f30fb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x292fb3),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x195e1f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x179d54,_0x511c06,_0x160761)=>{_0x160761['options']['showSuggestionHighlights']&&_0x195e1f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x179d54,_0x511c06,_0x160761);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x155de8,_0x4753b0,_0x393774)=>{const {type:_0x2ec1f6,id:_0x39fe0e}=_0x4f30fb['_splitMarkerName'](_0x4753b0['markerName']),_0x193424=_0x4f30fb['getSuggestion'](_0x39fe0e),_0x42eced=_0x193424['data'];if('formatBlock'!=_0x193424['type']||!_0x42eced||'setTableColumnHeader'!=_0x42eced['commandName'])return;const _0x493b1a=_0x393774['mapper']['markerNameToElements'](_0x4753b0['markerName']);if(_0x493b1a){for(const _0x3163f6 of _0x493b1a)_0x393774['writer']['removeClass']('ck-suggestion-marker-'+_0x2ec1f6,_0x3163f6),_0x393774['writer']['removeClass']('ck-suggestion-marker--active',_0x3163f6),_0x393774['writer']['removeAttribute']('data-suggestion',_0x3163f6),_0x393774['mapper']['unbindElementFromMarkerName'](_0x3163f6,_0x4753b0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2403ef=this['editor'],_0x4a2c23=_0x2403ef['locale'];function _0x221cf8(_0xc2d318){return{'type':'format','content':o(_0x4a2c23,'*Format:*\x20%0',_0xc2d318)};}_0x2403ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2431f3=>{if('formatBlock'!=_0x2431f3['type'])return;const {data:_0x1133c9}=_0x2431f3;if(_0x1133c9){if('setTableRowHeader'==_0x1133c9['commandName']){const _0x5174d4=_0x1133c9['commandParams'][0x0]['forceValue'];return _0x221cf8(o(_0x4a2c23,_0x5174d4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1133c9['commandName']){const _0x258c62=_0x1133c9['commandParams'][0x0]['forceValue'];return _0x221cf8(o(_0x4a2c23,_0x258c62?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x236c0a=>[_0x236c0a,null]));class It extends _0x61eb43{static get['requires'](){return[jt];}['afterInit'](){const _0x2104c6=this['editor'];if(!_0x2104c6['plugins']['has']('TableClipboard'))return;const _0x32abae=_0x2104c6['plugins']['get']('TrackChangesEditing'),_0x2725a3=_0x2104c6['plugins']['get']('TableUtils'),_0x2e8b4d=_0x2104c6['plugins']['get'](jt),_0x4fee90=_0x2104c6['plugins']['get']('TableClipboard');_0x2e8b4d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2104c6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2104c6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x59b657=null;_0x2104c6['model']['on']('insertContent',(_0x50f68e,_0x1af330)=>{const [_0x33cf7f,_0x44dcf6]=_0x1af330,_0x45877d=_0x1af330[_0x1af330['length']-0x1];_0x45877d&&_0x45877d['forceDefaultExecution']||_0x32abae['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5b90ef,_0x55da11,_0x2eb898,_0x3d9cc9,_0x2724a5){if(_0x55da11&&!_0x55da11['is']('documentSelection'))return!0x1;const _0x3e79b5=_0x2724a5['getTableIfOnlyTableInContent'](_0x5b90ef,_0x2eb898);if(!_0x3e79b5||!he(_0x3e79b5,void 0x0,_0x3d9cc9))return!0x1;const _0x1d2046=_0x3d9cc9['getSelectionAffectedTableCells'](_0x2eb898['document']['selection']);if(!_0x1d2046['length'])return!0x1;const _0x51bf57=_0x1d2046[0x0]['findAncestor']('table'),_0xa0bcae=_0x3d9cc9['getRowIndexes'](_0x1d2046),_0x1c722e=_0x3d9cc9['getColumnIndexes'](_0x1d2046),_0x386644={'startRow':_0xa0bcae['first'],'endRow':_0xa0bcae['last'],'startColumn':_0x1c722e['first'],'endColumn':_0x1c722e['last']};return 0x1==_0x1d2046['length']&&(_0x386644['endRow']+=_0x3d9cc9['getRows'](_0x3e79b5)-0x1,_0x386644['endColumn']+=_0x3d9cc9['getColumns'](_0x3e79b5)-0x1),he(_0x51bf57,_0x386644,_0x3d9cc9);}(_0x33cf7f,_0x44dcf6,_0x2104c6['model'],_0x2725a3,_0x4fee90)&&(_0x50f68e['stop'](),_0x59b657={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2104c6['model']['change'](()=>{_0x2104c6['model']['insertContent'](_0x1af330[0x0],_0x1af330[0x1],_0x1af330[0x2],{'forceDefaultExecution':!0x0});const _0xb3cee5=_0xdda64a(),{rowInsertionRanges:_0x5d1438,columnInsertionRanges:_0x366e30,insertionRanges:_0x1f4ca3,deletionRanges:_0x369b31,cells:_0x13240d}=_0x59b657;_0x5d1438['length']&&_0x32abae['markMultiRangeInsertion'](_0x5d1438,'tablePasteRow',{'tablePasteChainId':_0xb3cee5}),_0x366e30['length']&&_0x32abae['markMultiRangeInsertion'](_0x366e30,'tablePasteColumn',{'tablePasteChainId':_0xb3cee5}),_0x1f4ca3['length']&&(_0x32abae['markMultiRangeInsertion'](_0x1f4ca3,'tablePaste',{'tablePasteChainId':_0xb3cee5,'skipNestingCheck':!0x0}),_0x1f4ca3['forEach'](_0x1efca4=>{var _0x484ab1;return null===(_0x484ab1=_0x1efca4['detach'])||void 0x0===_0x484ab1?void 0x0:_0x484ab1['call'](_0x1efca4);})),_0x369b31['length']&&(_0x32abae['markMultiRangeDeletion'](_0x369b31,'tablePaste',{'tablePasteChainId':_0xb3cee5,'skipNestingCheck':!0x0}),_0x369b31['forEach'](_0x18a141=>{var _0x3f11a2;return null===(_0x3f11a2=_0x18a141['detach'])||void 0x0===_0x3f11a2?void 0x0:_0x3f11a2['call'](_0x18a141);}));const _0x37aa83=_0x32abae['markMultiRangeBlockFormat'](_0x13240d['map'](({element:_0x988cd8})=>_0x988cd8),{'formatGroupId':_0xdda64a()},[],'tablePasteCell',{'tablePasteChainId':_0xb3cee5});if(_0x37aa83){const _0x401e44=_0x37aa83['getMarkers'](),_0x223a7=[];for(const {element:_0x2ec3dc,attributes:_0x17bf74}of _0x13240d){if(!_0x17bf74)continue;const _0x5cb29a=_0x2104c6['model']['createRangeOn'](_0x2ec3dc),_0x5b4c5f=_0x401e44['find'](_0x5995b8=>_0x5995b8['getRange']()['isEqual'](_0x5cb29a));_0x5b4c5f&&_0x223a7['push']([_0x5b4c5f['name'],_0x17bf74]);}_0x223a7['length']&&_0x37aa83['setAttribute']('markerAttributes',Object['fromEntries'](_0x223a7));}_0x59b657=null;}));},{'priority':_0x5190c6['high']+0xa}),_0x2104c6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3faeb8,_0x522c42)=>{const [_0x481200,_0x1a463c,,_0x3b0eeb]=_0x522c42;if(!_0x59b657)return;_0x3faeb8['stop']();const _0x4e9a42=_0x481200['cell'],_0x5c2946=_0x1a463c,_0x5200e1=Pe(_0x4e9a42),_0x2f03e2=Pe(_0x5c2946);_0x3faeb8['return']=_0x4e9a42;let _0x31ba30=null,_0x30422e=null;if(_0x2f03e2||_0x5200e1){if(_0x5200e1&&!_0x2f03e2){_0x3b0eeb['remove'](_0x4e9a42['getChild'](0x0));for(const _0x5df5ef of Array['from'](_0x5c2946['getChildren']()))_0x3b0eeb['insert'](_0x5df5ef,_0x4e9a42,'end');const _0x2b2012=_0x59b657['rowInsertionIndexes']['includes'](_0x481200['row']),_0x8650ba=_0x59b657['columnInsertionIndexes']['includes'](_0x481200['column']);_0x2b2012||_0x8650ba||(_0x31ba30=_0x2819a3['fromRange'](_0x3b0eeb['createRangeIn'](_0x4e9a42)));}else _0x2f03e2&&!_0x5200e1&&(_0x30422e=_0x3b0eeb['createRangeIn'](_0x4e9a42));}else{const _0x18ddc4=_0x3b0eeb['createElement']('tableCellSuggestion'),_0x4a3e8a=_0x3b0eeb['createElement']('tableCellSuggestion');_0x3b0eeb['wrap'](_0x3b0eeb['createRangeIn'](_0x4e9a42),_0x4a3e8a),_0x3b0eeb['insert'](_0x18ddc4,_0x4e9a42,0x0);for(const _0x5dc7ed of Array['from'](_0x5c2946['getChildren']()))_0x3b0eeb['insert'](_0x5dc7ed,_0x18ddc4,'end');_0x31ba30=_0x2819a3['fromRange'](_0x3b0eeb['createRangeOn'](_0x18ddc4)),_0x30422e=_0x2819a3['fromRange'](_0x3b0eeb['createRangeOn'](_0x4a3e8a));}const _0x39708c=Array['from'](_0x5c2946['getAttributes']())['filter'](([_0x3c4b03])=>ge['includes'](_0x3c4b03));_0x59b657['cells']['push']({'element':_0x4e9a42,'attributes':_0x39708c['length']?Object['fromEntries'](_0x39708c):null}),_0x31ba30&&_0x59b657['insertionRanges']['push'](_0x31ba30),_0x30422e&&_0x59b657['deletionRanges']['push'](_0x30422e);},{'priority':'high'}),_0x2725a3['on']('insertColumns',(_0x5e67ca,_0x1309e1)=>{const [_0xb38759,_0x544a2d={}]=_0x1309e1;if(!_0x59b657)return;const _0x50ce47=_0x544a2d['at']||0x0,_0x15ee20=_0x544a2d['columns']||0x1;_0x59b657['columnInsertionIndexes']=new Array(_0x15ee20)['fill'](_0x50ce47)['map']((_0x4096bd,_0x447565)=>_0x4096bd+_0x447565);for(const {cell:_0x5844e6}of _0x2725a3['createTableWalker'](_0xb38759,{'startColumn':_0x50ce47,'endColumn':_0x50ce47+_0x15ee20-0x1}))_0x59b657['columnInsertionRanges']['push'](_0x2104c6['model']['createRangeOn'](_0x5844e6));},{'priority':'low'}),_0x2725a3['on']('insertRows',(_0x5deb65,_0x37337d)=>{const [_0x480bc8,_0x589333={}]=_0x37337d;if(!_0x59b657)return;const _0x588581=_0x589333['at']||0x0,_0x58c80c=_0x589333['rows']||0x1;_0x59b657['rowInsertionIndexes']=new Array(_0x58c80c)['fill'](_0x588581)['map']((_0x2c6821,_0x58f738)=>_0x2c6821+_0x58f738);for(const {cell:_0x2b18fe}of _0x2725a3['createTableWalker'](_0x480bc8,{'startRow':_0x588581,'endRow':_0x588581+_0x58c80c-0x1}))_0x59b657['rowInsertionRanges']['push'](_0x2104c6['model']['createRangeOn'](_0x2b18fe));},{'priority':'low'}),_0x32abae['descriptionFactory']['registerDescriptionCallback'](_0x556332=>{if(_0x556332['subType']&&_0x556332['subType']['startsWith']('tablePaste'))return _0x556332['previous']?{}:{'type':'insertion','content':o(_0x2104c6['locale'],'*Replace\x20table\x20cells*')};});const _0xa285a6=()=>!0x1;for(const _0xe9f83a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x32abae['_suggestionFactory']['registerCustomCallback']('insertion',_0xe9f83a,'join',_0xa285a6),_0x32abae['_suggestionFactory']['registerCustomCallback']('deletion',_0xe9f83a,'join',_0xa285a6),_0x32abae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe9f83a,'join',_0xa285a6);_0x32abae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa285a6),_0x32abae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xf40d6d,_0x23188d,_0x2dba5b)=>{const _0x3d252c=_0xf40d6d['map'](_0x2b3ebd=>_0x2b3ebd['getContainedElement']())['filter'](_0x127bf3=>_0x127bf3),_0x55311c=new Map(_0x3d252c['map'](_0x36ae0b=>[_0x36ae0b,null]));if(_0x59b657){for(const {element:_0x25801c,attributes:_0x5da3df}of _0x59b657['cells'])_0x5da3df&&_0x55311c['set'](_0x25801c,_0x5da3df);}else{if(_0x2dba5b&&_0x2dba5b['markerAttributes'])for(const [_0x36fcf3,_0x42f45c]of Object['entries'](_0x2dba5b['markerAttributes'])){const _0x43fbae=_0x2104c6['model']['markers']['get'](_0x36fcf3),_0x744fa9=_0x43fbae?_0x43fbae['getRange']()['getContainedElement']():null;_0x744fa9&&_0x55311c['set'](_0x744fa9,_0x42f45c);}}_0x2104c6['model']['change'](_0x29ab4c=>{for(const [_0x38e69d,_0x444b11]of _0x55311c)_0x29ab4c['setAttributes']({...Ce,..._0x444b11},_0x38e69d);});});const _0x5b1364=(_0x31e55c,_0x25629f)=>{_0x32abae['_suggestionFactory']['registerCustomCallback'](_0x31e55c,'tablePaste',_0x25629f,(_0x28f00a,_0x15c29c,_0x250853)=>{_0x2104c6['model']['change'](_0x1e517d=>{const _0x218e32=[];for(const _0x166bc4 of _0x28f00a){const _0xa431a1=_0x166bc4['start']['nodeAfter'];_0xa431a1['is']('element','tableCellSuggestion')&&_0x218e32['push'](_0xa431a1);}_0x32abae['_suggestionFactory']['getSuggestionCallback'](_0x31e55c,null,_0x25629f)(_0x28f00a,_0x15c29c,_0x250853);for(const _0x3acdc4 of _0x218e32)'$graveyard'!=_0x3acdc4['root']['rootName']&&_0x1e517d['unwrap'](_0x3acdc4);});});};_0x5b1364('insertion','accept'),_0x5b1364('insertion','discard'),_0x5b1364('deletion','accept'),_0x5b1364('deletion','discard'),_0x32abae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x355b4f=>{const _0x2d137a=_0x355b4f['map'](_0x312f0b=>_0x312f0b['getContainedElement']()),_0x2e47d4=_0x2d137a[0x0]['findAncestor']('table'),{minRow:_0xf7a0f9,maxRow:_0x4f1a6c}=_0x2e8b4d['_getCoordsForCells'](_0x2d137a);_0x2725a3['removeRows'](_0x2e47d4,{'at':_0xf7a0f9,'rows':_0x4f1a6c-_0xf7a0f9+0x1});}),_0x32abae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3ef419=>{const _0x12aec7=_0x3ef419['map'](_0x3cfd11=>_0x3cfd11['getContainedElement']()),_0x5b75df=_0x12aec7[0x0]['findAncestor']('table'),{minColumn:_0x51099b,maxColumn:_0x2a0580}=_0x2e8b4d['_getCoordsForCells'](_0x12aec7);_0x2725a3['removeColumns'](_0x5b75df,{'at':_0x51099b,'columns':_0x2a0580-_0x51099b+0x1});});const _0x46c679=(_0x84280e,_0x1f45b5)=>{if(!_0x1f45b5['subType']||!_0x1f45b5['subType']['startsWith']('tablePaste'))return;const _0x546090=_0x1f45b5['attributes']['tablePasteChainId'],_0x433141=_0x32abae['getSuggestions']()['filter'](_0x15af7c=>_0x15af7c['isInContent']&&_0x15af7c['attributes']&&_0x15af7c['attributes']['tablePasteChainId']==_0x546090);_0x433141['length']&&_0x1f45b5['getAllAdjacentSuggestions']()['length']!=_0x433141['length']&&_0x433141['reduce']((_0x2970dc,_0x343820)=>(_0x2970dc['next']=_0x343820,_0x343820['previous']=_0x2970dc,_0x343820));};function _0x19741b(_0x1bb103,_0x5d4ad=!0x0){const {id:_0x3fe60b}=_0x32abae['_splitMarkerName'](_0x1bb103['markerName']),_0x246250=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2e28b7=_0x32abae['activeMarkers']['includes'](_0x1bb103['markerName']);return _0x2e28b7&&_0x246250['push']('ck-suggestion-marker--active'),{'classes':_0x246250,'attributes':{'data-suggestion':_0x3fe60b},'priority':_0x2e28b7&&_0x5d4ad?0xbc2:0xbb8};}_0x32abae['on']('suggestionLoaded',_0x46c679,{'priority':'high'}),_0x32abae['on']('suggestionUnloaded',_0x46c679,{'priority':'high'}),_0x2104c6['model']['document']['registerPostFixer'](()=>{let _0x320342=!0x1;const _0x5767d3=Array['from'](_0x2104c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17ec64,data:_0x189f76}of _0x5767d3){const {group:_0xee4278,type:_0x494608,id:_0x4c057f}=_0x32abae['_splitMarkerName'](_0x17ec64);if('suggestion'!=_0xee4278||'deletion'!=_0x494608||_0x189f76['oldRange'])continue;if(!_0x32abae['hasSuggestion'](_0x4c057f))continue;const _0x57ca70=_0x32abae['getSuggestion'](_0x4c057f)['getRanges'](),_0x185096=_0x2104c6['plugins']['get']('Users')['me'];for(const _0x2b6d7f of _0x32abae['getSuggestions']()){if(!_0x2b6d7f['isInContent']||_0x2b6d7f['author']!=_0x185096)continue;if('formatBlock'!=_0x2b6d7f['type']||'tablePasteCell'!=_0x2b6d7f['subType'])continue;if(_0x2b6d7f['getRanges']()['every'](_0x173df6=>_0x57ca70['some'](_0x54d707=>_0x54d707['containsRange'](_0x173df6,!0x0)))){for(const _0x18dc47 of _0x2b6d7f['getAllAdjacentSuggestions']())_0x18dc47['isInContent']&&(_0x18dc47['discard'](),_0x320342=!0x0);}}}return _0x320342;}),_0x2104c6['model']['document']['registerPostFixer'](_0x493226=>{const _0x554307=_0x2104c6['commands']['get']('redo');if(!_0x554307||!_0x554307['_createdBatches']['has'](_0x493226['batch']))return!0x1;let _0x5959ac=!0x1;const _0xb59d1d=_0x2104c6['plugins']['get']('Users')['me'],_0x27994f=_0x2104c6['model']['document']['differ']['getChanges'](),_0x446523=Array['from'](_0x2104c6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x25b0a7,data:_0x1e313f})=>{const {group:_0x1310fc,subType:_0x4fc1e2,authorId:_0x11d148}=_0x32abae['_splitMarkerName'](_0x25b0a7);return'suggestion'==_0x1310fc&&'tablePaste'==_0x4fc1e2&&_0x11d148==_0xb59d1d['id']&&!_0x1e313f['oldRange'];});for(const _0x154e6 of _0x27994f){if('insert'!=_0x154e6['type']||'tableCellSuggestion'!=_0x154e6['name']||0x1!=_0x154e6['length'])continue;const _0x382352=_0x493226['createRange'](_0x154e6['position'],_0x154e6['position']['getShiftedBy'](0x1));if(!_0x446523['find'](({data:_0x13266c})=>_0x13266c['newRange']['isEqual'](_0x382352))){for(const {name:_0x603b34,data:_0x2942c9}of _0x446523)if(_0x382352['containsRange'](_0x2942c9['newRange'])){_0x493226['updateMarker'](_0x603b34,{'range':_0x382352}),_0x5959ac=!0x0;break;}}}return _0x5959ac;}),_0x2104c6['model']['document']['registerPostFixer'](_0x546d4e=>{let _0x190bff=!0x1;const _0x4b71f6=_0x2104c6['plugins']['get']('Users')['me'],_0x2428da=_0x32abae['getSuggestions']()['filter'](_0x2f7fe2=>_0x2f7fe2['isInContent']&&_0x2f7fe2['author']==_0x4b71f6),_0x5e71c0=new Set(),_0x26cf6b=new Set();for(const _0x53db23 of _0x2428da)if('tablePaste'==_0x53db23['subType'])for(const _0x2ad21e of _0x53db23['getMarkers']()){const _0x59484e=_0x2ad21e['getRange']()['getContainedElement']();if(_0x59484e){if(_0x59484e['is']('element','tableCellSuggestion')&&Pe(_0x59484e)){_0x53db23['removeMarker'](_0x2ad21e['name']),_0x5e71c0['add'](_0x59484e),_0x190bff=!0x0;const _0x1e0936=_0x59484e['nextSibling'],_0x35d21f=_0x59484e['previousSibling'],_0x56eeee=_0x1e0936&&_0x1e0936['is']('element','tableCellSuggestion'),_0x3bec27=_0x35d21f&&_0x35d21f['is']('element','tableCellSuggestion');_0x56eeee&&!_0x5e71c0['has'](_0x1e0936)&&_0x26cf6b['add'](_0x1e0936),_0x3bec27&&!_0x5e71c0['has'](_0x35d21f)&&_0x26cf6b['add'](_0x35d21f);}else _0x59484e['is']('element','paragraph')&&_0x59484e['isEmpty']&&(_0x53db23['removeMarker'](_0x2ad21e['name']),_0x190bff=!0x0);}}else{if('tablePasteCell'==_0x53db23['subType']){if(!_0x53db23['attributes']||!_0x53db23['attributes']['tablePasteChainId'])continue;const _0x28f31e=_0x53db23['attributes']['markerAttributes'];if(_0x28f31e&&Object['keys'](_0x28f31e)['length'])continue;const _0x3ccafc=_0x53db23['attributes']['tablePasteChainId'];let _0x179661=!0x0,_0x524e69=!0x0;for(const _0x293cee of _0x2428da)if(_0x293cee['subType']&&_0x293cee['subType']['startsWith']('tablePaste')){if(!_0x293cee['attributes']['tablePasteChainId']){_0x524e69=!0x1;break;}if(_0x293cee['id']!=_0x53db23['id']&&_0x293cee['attributes']['tablePasteChainId']==_0x3ccafc){_0x179661=!0x1;break;}}_0x524e69&&_0x179661&&(_0x53db23['removeMarkers'](),_0x190bff=!0x0);}}for(const _0xfa19c0 of _0x5e71c0)_0x546d4e['remove'](_0xfa19c0);for(const _0x10c66d of _0x26cf6b)_0x546d4e['unwrap'](_0x10c66d);return _0x190bff;}),_0x2104c6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1b84ff,_0x165990)=>_0x19741b(_0x1b84ff),'converterPriority':'high'}),_0x2104c6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3eba8b,_0xcbb9a5)=>_0xcbb9a5['options']['showSuggestionHighlights']?_0x19741b(_0x3eba8b,!0x1):null,'converterPriority':'high'});const _0x1d4fc1=_0x2104c6['editing']['view'];this['listenTo'](_0x1d4fc1['document'],'clipboardOutput',(_0x2b5455,_0x12f31e)=>{const _0x44dec7=[];for(const _0x407ab7 of _0x1d4fc1['createRangeIn'](_0x12f31e['content'])['getItems']())_0x407ab7['is']('element','suggestion-td')&&_0x44dec7['push'](_0x407ab7);_0x1d4fc1['change'](_0xf93d37=>{for(const _0x16cef9 of _0x44dec7)_0xf93d37['move'](_0xf93d37['createRangeIn'](_0x16cef9),_0xf93d37['createPositionBefore'](_0x16cef9)),_0xf93d37['remove'](_0x16cef9);});});}}function Pe(_0x47d55f){if(_0x47d55f['isEmpty'])return!0x0;const _0x211047=_0x47d55f['getChild'](0x0);return _0x211047['is']('element','paragraph')&&_0x211047['isEmpty'];}function he(_0x295b91,_0x34145b={},_0x20d1ef){for(const {isAnchor:_0x5ca3ec,cellHeight:_0x59b0ba,cellWidth:_0x5edf0d}of _0x20d1ef['createTableWalker'](_0x295b91,{'includeAllSlots':!0x0,..._0x34145b}))if(!_0x5ca3ec||0x1!=_0x59b0ba||0x1!=_0x5edf0d)return!0x1;return!0x0;}class vt extends _0x61eb43{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1b77f2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b77f2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1b77f2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1b77f2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b77f2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1b77f2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1b77f2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e6b54,_0x51963d){const _0x547edf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48f701=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16a353=_0x51963d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x10b427=_0x48f701['getColumnGroupElement'](_0x16a353);let _0x232125=_0x10b427?_0x48f701['getTableColumnsWidths'](_0x10b427):null,_0x3b9a1f=_0x16a353['getAttribute']('tableWidth')||null;const _0x18313c=_0x51963d['tableWidth']||_0x3b9a1f,_0x393bf3=_0x51963d['columnWidths']||_0x232125,_0x3f54ee=this['editor']['plugins']['get']('Users')['me'];for(const _0xbcf20f of _0x547edf['getSuggestions']()){const _0x35c9ce=_0xbcf20f['getContainedElement']();if('resizeTable'===_0xbcf20f['subType']&&_0x35c9ce===_0x16a353){_0xbcf20f['author']!==_0x3f54ee&&_0xbcf20f['discard']();const _0x1a66fa=_0xbcf20f['data']['commandParams'];_0x3b9a1f=_0x1a66fa[0x0]['tableWidth'],_0x232125=_0x1a66fa[0x0]['columnWidths'];break;}}_0x5e6b54({'table':_0x16a353,'tableWidth':_0x18313c,'columnWidths':_0x393bf3}),_0x547edf['markBlockFormat'](_0x16a353,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3b9a1f,'columnWidths':_0x232125}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xd695c1){if('formatBlock'!=_0xd695c1['type']&&'formatInline'!=_0xd695c1['type'])return;const {data:_0x58c529}=_0xd695c1;if(_0x58c529&&'resizeTable'===_0x58c529['formatGroupId']){const _0x2ccc46='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2ccc46)};}}}class _t extends _0x61eb43{['afterInit'](){const _0x10900e=this['editor'];_0x10900e['plugins']['has']('Template')&&_0x10900e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x61eb43{['afterInit'](){const _0x565e82=this['editor'];if(!_0x565e82['commands']['get']('insertTableOfContents'))return;_0x565e82['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x8052ef=_0x565e82['plugins']['get']('TrackChangesEditing'),_0x4f1d9c=_0x565e82['locale'];_0x8052ef['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1f019e=>o(_0x4f1d9c,'ELEMENT_TABLE_OF_CONTENTS',_0x1f019e));}}class Dt extends _0x61eb43{['afterInit'](){const _0x1879ec=this['editor'];if(!_0x1879ec['plugins']['has']('Title'))return;const _0x367248=_0x1879ec['plugins']['get']('TrackChangesEditing');_0x367248['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1879ec['locale'],'ELEMENT_TITLE')),_0x1879ec['model']['document']['registerPostFixer'](_0x30e363=>{let _0xdb6b50=!0x1;const _0x532262=Array['from'](_0x1879ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b9941,data:_0x56ad80}of _0x532262){const {group:_0x46c901}=_0x367248['_splitMarkerName'](_0x5b9941);if('suggestion'!==_0x46c901||!_0x56ad80['newRange'])continue;const _0x563787=_0x56ad80['newRange'],_0xcd0932=_0x563787['end']['nodeBefore'];if(!_0xcd0932||!_0xcd0932['is']('element','title-content'))continue;if(!_0x563787['start']['isTouching'](_0x563787['end']))continue;const _0x229c70=_0x1879ec['model']['schema']['getNearestSelectionRange'](_0x563787['end'],'forward');if(_0x229c70&&_0x229c70['isCollapsed']){const _0xd19987=_0x30e363['createRange'](_0x563787['start'],_0x229c70['start']);_0xd19987['isEqual'](_0x563787)||(_0x30e363['updateMarker'](_0x5b9941,{'range':_0xd19987}),_0xdb6b50=!0x0);}_0xdb6b50||(_0x30e363['removeMarker'](_0x5b9941),_0xdb6b50=!0x0);}return _0xdb6b50;});}}class Nt extends _0x61eb43{['afterInit'](){const _0x449353=this['editor'],_0x1d3661=_0x449353['plugins']['get']('TrackChangesEditing');_0x449353['plugins']['has']('UndoEditing')&&(_0x1d3661['enableCommand']('undo'),_0x1d3661['enableCommand']('redo'));}}class Mt extends _0x61eb43{static get['requires'](){return[jt];}['afterInit'](){const _0x12ea94=this['editor'];if(!_0x12ea94['plugins']['has']('TableCaptionEditing'))return;_0x12ea94['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x61eb43{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0xc18db4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5c8cd7 of this['tableProperties'])_0xc18db4['enableCommand'](_0x5c8cd7,(_0x319fb1,_0x4e819f)=>{const _0x1fc1a8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5c8cd7,[_0x1fc1a8],this['tableProperties'],'tableProperties',_0x319fb1,_0x4e819f);});_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xc18db4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xafad0,_0x4a1222)=>this['handleDiscardAction'](this['tableProperties'],_0xafad0,_0x4a1222)),_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xbb7d57 of this['tableCellProperties'])_0xc18db4['enableCommand'](_0xbb7d57,(_0x1857dc,_0x3f10ce)=>{const _0x1cb1bd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xbb7d57,_0x1cb1bd,this['tableCellProperties'],'tableCellProperties',_0x1857dc,_0x3f10ce);});_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xc18db4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x20b0e1,_0x1f09d0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x20b0e1,_0x1f09d0)),_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xc18db4['descriptionFactory']['registerDescriptionCallback'](_0x4297e4=>this['handleSuggestionDescription'](_0x4297e4));}['_handlePropertyChange'](_0x4cc87c,_0x437556,_0x4308e9,_0x1830ae,_0x1e9406,_0x45d4f2){const _0x37c5b3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45d4f2['batch'],()=>{for(const _0x69cc2a of _0x437556){if(this['_getSuggestion'](_0x69cc2a,_0x1830ae))_0x1e9406(_0x45d4f2);else{const _0x1dcea6={};for(const _0x574344 of _0x4308e9){const _0x55ffd2=_0x69cc2a['getAttribute'](_0x574344);void 0x0!==_0x55ffd2&&(_0x1dcea6[_0x574344]=_0x55ffd2);}_0x1e9406(_0x45d4f2),_0x37c5b3['markBlockFormat'](_0x69cc2a,{'commandParams':[_0x1dcea6]},[],_0x1830ae);}}});}['handleDiscardAction'](_0x1a3268,_0x18289b,_0x11cf26){const _0x3a93a0=_0x18289b[0x0]['start']['nodeAfter'],_0x5720ae=_0x11cf26['commandParams'][0x0];this['editor']['model']['change'](_0x2b7926=>{for(const _0x49827d of _0x1a3268)void 0x0!==_0x5720ae[_0x49827d]?_0x2b7926['setAttribute'](_0x49827d,_0x5720ae[_0x49827d],_0x3a93a0):_0x2b7926['removeAttribute'](_0x49827d,_0x3a93a0);});}['handleSuggestionDescription'](_0x866742){if(_0x866742['data'])switch(_0x866742['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'](_0x45b941,_0x59e1c4){const _0x4c118a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2f4422 of _0x4c118a['getSuggestions']({'skipNotAttached':!0x0})){const _0x379c86=_0x2f4422['getContainedElement']();if(_0x2f4422['subType']===_0x59e1c4&&_0x379c86===_0x45b941)return _0x2f4422;}return null;}constructor(_0x41d156){super(_0x41d156),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x61eb43{static get['requires'](){return['CommentsRepository',_0x281dca,_0x2b0188,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'];}['init'](){const _0x477bf3=this['editor'],_0x547608=(_0x1e5e1c,_0x446aed)=>{if('attribute'!=_0x1e5e1c)return'ck-suggestion-marker-'+_0x1e5e1c;const _0x287373=_0x446aed['split']('|')[0x0];return this['_isBlockAttribute'](_0x287373)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x477bf3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x35a8bd=>{const {id:_0x44ed4b,type:_0x5e4735,subType:_0xbafc20}=this['_splitMarkerName'](_0x35a8bd['markerName']),_0x1f1dcf=['ck-suggestion-marker',_0x547608(_0x5e4735,_0xbafc20)];let _0x5380ab=0xbb8;return this['activeMarkers']['includes'](_0x35a8bd['markerName'])&&(_0x1f1dcf['push']('ck-suggestion-marker--active'),_0x5380ab=0xbc2),'deletion'==_0x5e4735&&(_0x5380ab+=0x5),{'classes':_0x1f1dcf,'attributes':{'data-suggestion':_0x44ed4b},'priority':_0x5380ab};}}),_0x477bf3['conversion']['for']('dataDowncast')['add'](_0x587943=>{_0x587943['on']('addMarker:suggestion',(_0x4c26c8,_0x4bb3e2,_0x24ee8a)=>{if(!_0x24ee8a['options']['showSuggestionHighlights'])return;const _0x5429ce=_0x4bb3e2['item'];if(!_0x5429ce)return;const _0x312340=_0x24ee8a['mapper']['toViewElement'](_0x5429ce);_0x477bf3['model']['schema']['isObject'](_0x5429ce)&&_0x312340&&!_0x312340['getCustomProperty']('widget')&&_0x312340['is']('containerElement')&&_0x324286(_0x312340,_0x24ee8a['writer']);},{'priority':'high'});}),_0x477bf3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4c3d4b,_0x2dceac)=>{if(!_0x2dceac['options']['showSuggestionHighlights'])return null;const {type:_0x18bbbb,subType:_0x1cb9f6}=this['_splitMarkerName'](_0x4c3d4b['markerName']);return{'classes':['ck-suggestion-marker',_0x547608(_0x18bbbb,_0x1cb9f6)],'priority':0xbb8};}});const _0x576fa0=({showActiveMarkers:_0x4d27a0=!0x0,isAttributeSuggestion:_0xcf6a84=!0x1}={})=>(_0x16812a,_0x10c287,_0x371e5b)=>{if(!_0x10c287['item'])return;const {id:_0x3125ec}=this['_splitMarkerName'](_0x10c287['markerName']);if(_0xcf6a84){const _0x2dd838=this['_suggestions']['get'](_0x3125ec),_0x58c90d=this['_getAttributeKey'](_0x2dd838);if(!this['_isBlockAttribute'](_0x58c90d))return;}if(_0x10c287['item']['is']('selection'))return void _0x371e5b['consumable']['consume'](_0x10c287['item'],_0x16812a['name']);const _0x80d797=_0x371e5b['mapper']['toViewElement'](_0x10c287['item']);if(_0x10c287['item']['is']('element')&&_0x477bf3['model']['schema']['isBlock'](_0x10c287['item'])&&!_0x80d797['getCustomProperty']('addHighlight')){_0x371e5b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x80d797),_0x371e5b['writer']['setAttribute']('data-suggestion',_0x3125ec,_0x80d797),_0x371e5b['mapper']['bindElementToMarker'](_0x80d797,_0x10c287['markerName']),_0x4d27a0&&(this['activeMarkers']['includes'](_0x10c287['markerName'])?_0x371e5b['writer']['addClass']('ck-suggestion-marker--active',_0x80d797):_0x371e5b['writer']['removeClass']('ck-suggestion-marker--active',_0x80d797));for(const _0x767fde of _0x477bf3['model']['createRangeIn'](_0x10c287['item'])['getItems']())_0x371e5b['consumable']['consume'](_0x767fde,_0x16812a['name']);_0x371e5b['consumable']['consume'](_0x10c287['item'],_0x16812a['name']);}};_0x477bf3['conversion']['for']('dataDowncast')['add'](_0x35fa90=>{_0x35fa90['on']('addMarker:suggestion:formatBlock',(_0x115223,_0x281ee2,_0x17ed07)=>{_0x17ed07['options']['showSuggestionHighlights']&&_0x576fa0({'showActiveMarkers':!0x1})(_0x115223,_0x281ee2,_0x17ed07);},{'priority':'highest'});}),_0x477bf3['conversion']['for']('dataDowncast')['add'](_0x345bd4=>{_0x345bd4['on']('addMarker:suggestion:attribute',(_0xd937b3,_0x5d39c3,_0x433256)=>{_0x433256['options']['showSuggestionHighlights']&&_0x576fa0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xd937b3,_0x5d39c3,_0x433256);},{'priority':'highest'});}),_0x477bf3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x78d227,_0x47ca16)=>_0x47ca16['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x78d227['substr'](0xb)}}),_0x477bf3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x496e49,{writer:_0x270b9d})=>{let _0x57edde='suggestion:'+_0x496e49['getAttribute']('suggestion-type')+':'+_0x496e49['getAttribute']('id');return _0x496e49['getAttribute']('marker-count')&&(_0x57edde+=':'+_0x496e49['getAttribute']('marker-count')),_0x270b9d['createElement']('$marker',{'data-name':_0x57edde});}}),_0x477bf3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x477bf3['conversion']['for']('editingDowncast')['add'](_0x3c56d3=>{_0x3c56d3['on']('addMarker:suggestion:formatBlock',_0x576fa0(),{'priority':'high'});}),_0x477bf3['conversion']['for']('editingDowncast')['add'](_0x3f22d7=>{_0x3f22d7['on']('addMarker:suggestion:attribute',_0x576fa0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x477bf3['conversion']['for']('editingDowncast')['add'](_0x809a3a=>{_0x809a3a['on']('removeMarker:suggestion:formatBlock',(_0x21fb3a,_0x3f06d0,_0x81658b)=>{const _0x59d885=_0x81658b['mapper']['markerNameToElements'](_0x3f06d0['markerName']);if(_0x59d885){for(const _0x1f9d6c of _0x59d885)_0x1f9d6c['getCustomProperty']('addHighlight')||(_0x81658b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f9d6c),_0x81658b['writer']['removeAttribute']('data-suggestion',_0x1f9d6c),_0x81658b['mapper']['unbindElementFromMarkerName'](_0x1f9d6c,_0x3f06d0['markerName']));}},{'priority':'high'});}),_0x477bf3['conversion']['for']('editingDowncast')['add'](_0x4b0e92=>{_0x4b0e92['on']('removeMarker:suggestion:attribute',(_0x44c1b7,_0x31ed09,_0x149125)=>{const _0x216d42=_0x149125['mapper']['markerNameToElements'](_0x31ed09['markerName']);if(!_0x216d42)return;const {id:_0x4b0463}=this['_splitMarkerName'](_0x31ed09['markerName']),_0x558d4e=this['_suggestions']['get'](_0x4b0463),_0x3ee84f=this['_getAttributeKey'](_0x558d4e);if(this['_isBlockAttribute'](_0x3ee84f)){for(const _0x14ac6c of _0x216d42)_0x14ac6c['getCustomProperty']('addHighlight')||(_0x149125['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x14ac6c),_0x149125['writer']['removeAttribute']('data-suggestion',_0x14ac6c),_0x149125['mapper']['unbindElementFromMarkerName'](_0x14ac6c,_0x31ed09['markerName']));}},{'priority':'high'});}),_0x477bf3['model']['document']['registerPostFixer'](_0x12a918=>{let _0x4eb05f=!0x1;const _0x480afb=Array['from'](_0x477bf3['model']['document']['differ']['getChangedMarkers']()),_0x180bd8=new Set();for(const {name:_0x5e3972,data:_0xc86b62}of _0x480afb){const {group:_0x127b74,type:_0x194a2d,subType:_0x2370d3,id:_0x2e3b65}=this['_splitMarkerName'](_0x5e3972);if('suggestion'!==_0x127b74)continue;const _0x178bfd=this['_suggestions']['get'](_0x2e3b65);if(null!=_0xc86b62['newRange']){'formatInline'==_0x194a2d&&(_0x4eb05f=_0x4eb05f||Et(_0xc86b62['newRange'],_0x5e3972,_0x12a918,_0x477bf3['model']['schema']));const _0x341faa='attribute'==_0x194a2d&&this['_isBlockAttribute'](_0x2370d3['split']('|')[0x0]);if(_0xc86b62['newRange']['isCollapsed']||'$graveyard'==_0xc86b62['newRange']['root']['rootName']||'formatBlock'==_0x194a2d&&!Ut(_0xc86b62['newRange'])||_0x341faa&&!Ut(_0xc86b62['newRange'])||'deletion'==_0x194a2d&&!(!Tt(_0x4eca7c=_0xc86b62['newRange'])&&!function(_0x10f01e){return _0x10f01e['start']['parent']==_0x10f01e['end']['nodeBefore']&&_0x10f01e['start']['isAtEnd'];}(_0x4eca7c)))_0x12a918['removeMarker'](_0x5e3972),_0x4eb05f=!0x0;else{if(!_0x178bfd||!_0x178bfd['isInContent'])continue;_0x180bd8['add'](_0x178bfd);}}}var _0x4eca7c;return _0x180bd8['size']>0x0&&(_0x4eb05f=!!this['_joinWithAdjacentSuggestions'](_0x180bd8)||_0x4eb05f),_0x4eb05f;}),_0x477bf3['model']['document']['registerPostFixer'](_0xd0bf36=>{let _0x20796f=!0x1;for(const _0x14c1ae of _0x477bf3['model']['document']['differ']['getChanges']())if('insert'==_0x14c1ae['type'])for(const _0x2a2dd2 of this['_suggestions']['values']()){if(_0x2a2dd2['isMultiRange']||!_0x2a2dd2['isInContent'])continue;const _0x372703='formatBlock'==_0x2a2dd2['type'],_0x2a2252=this['_getAttributeKey'](_0x2a2dd2),_0x12dc47=_0x2a2252&&this['_isBlockAttribute'](_0x2a2252);if(!_0x372703&&!_0x12dc47)continue;const _0x290686=_0x2a2dd2['getFirstRange']();if(_0x290686['start']['parent']!=_0x290686['end']['parent']&&!_0x290686['end']['isAtEnd']){const _0x760b01=_0x477bf3['model']['createPositionAt'](_0x290686['start']['nodeAfter'],'end'),_0x2ea9dd=_0x477bf3['model']['createRange'](_0x290686['start'],_0x760b01);_0xd0bf36['updateMarker'](_0x2a2dd2['getFirstMarker'](),{'range':_0x2ea9dd}),_0x20796f=!0x0;}}return _0x20796f;}),_0x477bf3['model']['document']['registerPostFixer'](_0x23f34a=>this['_processAttributeChanges'](_0x23f34a)),_0x477bf3['model']['document']['registerPostFixer'](_0xa950af=>!_0xa950af['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xa950af)),_0x477bf3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x477bf3['model']['document']['on']('change:data',(_0x257a49,_0xe093f7)=>{if(!_0xe093f7['isLocal']||_0xe093f7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x38d943=_0x477bf3['model']['document']['differ']['getChanges']();if(0x0==_0x38d943['length'])return;const _0x18dd5e=[],_0x1d0ed5=_0x38d943['filter'](_0x5a17e5=>'attribute'==_0x5a17e5['type']),_0x5b7d7b=_0x38d943['filter'](_0x4b5883=>'insert'==_0x4b5883['type']&&'$text'!=_0x4b5883['name']),_0x4d39b1=_0x38d943['filter'](_0x200f23=>'remove'==_0x200f23['type']&&'$text'!=_0x200f23['name']);for(const _0x4e9866 of _0x1d0ed5)this['_isRegisteredAttribute'](_0x4e9866['attributeKey'])&&_0x18dd5e['push']({'key':_0x4e9866['attributeKey'],'newValue':_0x4e9866['attributeNewValue'],'oldValue':_0x4e9866['attributeOldValue'],'range':Ot(_0x4e9866['range'],_0x477bf3['model'])});for(const _0xd3ed73 of _0x5b7d7b){const _0x3f996e=_0x4d39b1['find'](_0x3829e0=>_0x3829e0['_element']===_0xd3ed73['_element']);if(_0x3f996e){const _0x47d780=Ft(_0xd3ed73['position']['nodeAfter'],_0x477bf3['model']);_0x3f996e['name']!==_0xd3ed73['name']&&_0x18dd5e['push']({'key':m,'newValue':_0xd3ed73['name'],'oldValue':_0x3f996e['name'],'range':_0x47d780});for(const [_0x4acf4b,_0x59229d]of _0x3f996e['attributes']){if(!this['_isRegisteredAttribute'](_0x4acf4b))continue;const _0x7ff8fb=_0xd3ed73['attributes']['get'](_0x4acf4b);_0x59229d!==_0x7ff8fb&&_0x18dd5e['push']({'key':_0x4acf4b,'newValue':_0x7ff8fb,'oldValue':_0x59229d,'range':_0x47d780});}for(const [_0x22da9e,_0x22086f]of _0xd3ed73['attributes'])this['_isRegisteredAttribute'](_0x22da9e)&&(_0x3f996e['attributes']['has'](_0x22da9e)||_0x18dd5e['push']({'key':_0x22da9e,'newValue':_0x22086f,'oldValue':null,'range':_0x47d780}));}}0x0!=_0x18dd5e['length']&&_0x477bf3['model']['enqueueChange'](_0xe093f7,_0x2b85b5=>{const _0xea2bff=_0xdda64a();for(const {range:_0x4994cd,key:_0x224644,oldValue:_0x4c1876,newValue:_0x3e2f76}of _0x18dd5e)this['markAttributeChange'](_0x4994cd,_0x224644,_0x4c1876,_0x3e2f76,{'groupId':_0xea2bff});this['_reduceExistingSuggestions'](_0x2b85b5,_0x18dd5e);});},{'priority':'lowest'}),_0x477bf3['model']['markers']['on']('update:suggestion',(_0x518ba2,_0x16aeba,_0x298504)=>{if(null==_0x298504){const {id:_0x39a64c}=this['_splitMarkerName'](_0x16aeba['name']),_0x26b585=this['_suggestions']['get'](_0x39a64c);_0x26b585&&_0x26b585['addMarkerName'](_0x16aeba['name']);}}),_0x477bf3['model']['document']['on']('change:data',()=>{const _0x5a04c5=Array['from'](_0x477bf3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5dfcce=>'suggestion'===this['_splitMarkerName'](_0x5dfcce['name'])['group']);if(0x0===_0x5a04c5['length'])return;_0x5a04c5['sort']((_0x28aea7,_0x51ab2f)=>{const _0x16a1fc=_0x28aea7['data']['oldRange'],_0x1801bf=_0x51ab2f['data']['oldRange'];return null===_0x16a1fc&&null===_0x1801bf?0x0:null===_0x16a1fc&&null!==_0x1801bf?-0x1:null!==_0x16a1fc&&null===_0x1801bf?0x1:_0x16a1fc['start']['isBefore'](_0x1801bf['start'])?-0x1:0x1;});const _0x21ba63=new Set(),_0x246fda=new Set();for(const {name:_0x3dfbf7,data:_0x1a7fa0}of _0x5a04c5){const {id:_0x3de85d}=this['_splitMarkerName'](_0x3dfbf7);if(null===_0x1a7fa0['oldRange']){const _0x45543c=this['_handleNewSuggestionMarker'](_0x3dfbf7);_0x246fda['add'](_0x45543c);}else{const _0x9801ee=this['_suggestions']['get'](_0x3de85d);null!==_0x1a7fa0['newRange']||_0x9801ee['isInContent']?(_0x21ba63['add'](_0x9801ee['head']),_0x246fda['add'](_0x9801ee)):this['_removeSuggestion'](_0x9801ee);}}_0x246fda['size']>0x0&&this['_refreshSuggestionsChain'](_0x246fda);for(const _0x408a39 of _0x21ba63)this['fire']('suggestionChanged',_0x408a39);}),_0x477bf3['model']['on']('applyOperation',(_0x146e8a,_0x2b7066)=>{const _0xfcbca5=_0x2b7066[0x0];if(!this['_suggestions']['size'])return;if(!_0xfcbca5['isDocumentOperation'])return;if(_0xfcbca5['batch']['isUndo']||!_0xfcbca5['batch']['isLocal'])return;let _0x539a9a,_0x1795d3;switch(_0xfcbca5['type']){case'insert':_0x539a9a=_0x477bf3['model']['createPositionAt'](_0xfcbca5['position']),_0x1795d3=_0x539a9a['getShiftedBy'](_0xfcbca5['howMany']);break;case'split':_0x539a9a=_0x477bf3['model']['createPositionAt'](_0xfcbca5['splitPosition']),_0x1795d3=_0x477bf3['model']['createPositionAt'](_0xfcbca5['moveTargetPosition']);break;case'move':_0x539a9a=_0x477bf3['model']['createPositionAt'](_0xfcbca5['targetPosition']),_0x1795d3=_0x539a9a['getShiftedBy'](_0xfcbca5['howMany']);break;default:return;}const _0x4ffcfb=_0x477bf3['model']['createRange'](_0x539a9a,_0x1795d3);_0x477bf3['model']['change'](()=>{for(const {suggestion:_0x3b59ae,meta:_0x1ae8d1}of this['_findSuggestions'](_0x4ffcfb)){if(_0x3b59ae['isMultiRange'])continue;if('formatInline'==_0x3b59ae['type'])continue;const _0x20c51a=this['_getAttributeKey'](_0x3b59ae);if(_0x20c51a&&this['_isBlockAttribute'](_0x20c51a)&&'split'!=_0xfcbca5['type'])continue;const _0x5cfc56=_0x3b59ae['data']&&_0x3b59ae['data']['multipleBlocks'];('formatBlock'!=_0x3b59ae['type']||'split'==_0xfcbca5['type']&&!_0x5cfc56)&&(_0x1ae8d1['containsRangeInObject']||'insertion'==_0x3b59ae['type']&&_0x1ae8d1['isOwn']||_0x3b59ae['getFirstRange']()['containsRange'](_0x4ffcfb)&&this['_breakSuggestionMarker'](_0x3b59ae,_0x539a9a,_0x1795d3));}});},{'priority':'lowest'}),_0x477bf3['model']['on']('deleteContent',(_0x5deaf5,_0x448531)=>{const _0x322f20=_0x448531[0x0],_0x393b9c=_0x448531[0x1];if(_0x393b9c&&_0x393b9c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x322f20['isCollapsed'])return;const _0x4953f3=_0x477bf3['model']['schema'],{start:_0x140d23,end:_0x272c30}=_0x322f20['getFirstRange'](),_0x2e0e34=_0x140d23['nodeAfter']&&_0x4953f3['isLimit'](_0x140d23['nodeAfter'])?null:_0x4953f3['getNearestSelectionRange'](_0x140d23,'forward'),_0x452cd4=_0x272c30['nodeBefore']&&_0x4953f3['isLimit'](_0x272c30['nodeBefore'])?null:_0x4953f3['getNearestSelectionRange'](_0x272c30,'backward'),_0x340da1=_0x477bf3['model']['createRange'](_0x2e0e34?_0x2e0e34['start']:_0x140d23,_0x452cd4?_0x452cd4['end']:_0x272c30);_0x477bf3['model']['change'](_0x4d47ad=>{this['markDeletion'](_0x340da1);const _0x26a870=_0x477bf3['model']['schema']['getNearestSelectionRange'](_0x340da1['start']);_0x322f20['is']('documentSelection')?_0x4d47ad['setSelection'](_0x26a870):_0x322f20['setTo'](_0x26a870);}),_0x5deaf5['stop']();},{'priority':_0x5190c6['normal']+0xa}),_0x477bf3['model']['on']('insertContent',(_0x208918,_0x5e3c31)=>{const _0x4881d6=_0x5e3c31[_0x5e3c31['length']-0x1];_0x4881d6&&_0x4881d6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x477bf3['model']['change'](()=>{let _0x1a7651=_0x477bf3['model']['insertContent'](_0x5e3c31[0x0],_0x5e3c31[0x1],_0x5e3c31[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a7651)return;_0x208918['return']=_0x1a7651['clone']();const _0x53e088=_0x1a7651['end']['nodeBefore'],_0x1acded=_0x477bf3['model']['schema'];_0x53e088&&_0x1acded['isBlock'](_0x53e088)&&!_0x1acded['isObject'](_0x53e088)&&(_0x1a7651=_0x477bf3['model']['createRange'](_0x1a7651['start'],_0x477bf3['model']['createPositionAt'](_0x53e088,'end'))),this['markInsertion'](_0x1a7651);}),_0x208918['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3931e5=new $(_0x477bf3,this['_suggestions']);_0x477bf3['commands']['add']('acceptSuggestion',_0x3931e5),this['enableCommand']('acceptSuggestion');const _0x4d23aa=new B(_0x477bf3,this['_suggestions']);_0x477bf3['commands']['add']('discardSuggestion',_0x4d23aa),this['enableCommand']('discardSuggestion'),_0x477bf3['commands']['add']('acceptAllSuggestions',new x(_0x477bf3,_0x3931e5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x477bf3['commands']['add']('discardAllSuggestions',new x(_0x477bf3,_0x4d23aa,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x477bf3['commands']['add']('acceptSelectedSuggestions',new R(_0x477bf3,_0x3931e5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x477bf3['commands']['add']('discardSelectedSuggestions',new R(_0x477bf3,_0x4d23aa,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x46d811=_0x477bf3['plugins']['get']('CommentsRepository');this['listenTo'](_0x46d811,'addComment',(_0x2a362a,{threadId:_0x124166})=>{const _0x420738=this['_suggestions']['get'](_0x124166);_0x420738&&_0x420738['commentThread']&&0x1===_0x420738['commentThread']['length']&&this['_updateSuggestionData'](_0x124166,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x46d811,'removeComment',(_0x30450b,{threadId:_0xdf83bc})=>{const _0x10d376=this['_suggestions']['get'](_0xdf83bc);_0x10d376&&_0x10d376['commentThread']&&!_0x10d376['commentThread']['length']&&this['_updateSuggestionData'](_0xdf83bc,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x44671a){if(this['_adapter'])throw new _0xa5fb70('track-changes-adapter-already-set',this);this['_adapter']=_0x44671a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x8246c6=!0x1,toJSON:_0x859571=!0x1}={}){const _0xd40214=[];for(const _0x46d02a of this['_suggestions']['values']())_0x8246c6&&!_0x46d02a['isInContent']||_0xd40214['push'](_0x46d02a);return _0x859571?_0xd40214['map'](_0x58425d=>_0x58425d['toJSON']()):_0xd40214;}['getSuggestion'](_0x5d9afd){const _0xb22870=this['_suggestions']['get'](_0x5d9afd);if(!_0xb22870)throw new _0xa5fb70('track-changes-suggestion-not-found',this);return _0xb22870;}['hasSuggestion'](_0x497332){return this['_suggestions']['has'](_0x497332);}['addSuggestionData'](_0x12ddff){const {authorId:_0x6fb462,id:_0xe7ba57,attributes:_0x3c876e}=_0x12ddff,[_0x5bbc8b,_0x13b50f]=_0x12ddff['type']['split'](':'),_0x58b583=this['_suggestions']['get'](_0xe7ba57)||this['_createSuggestion'](_0x5bbc8b,_0x13b50f,_0xe7ba57,_0x6fb462,_0x3c876e);if(this['_addThreadToSuggestion'](_0x58b583),this['_checkSuggestionCorrectness'](_0x58b583,_0x5bbc8b,_0x13b50f||null,_0x6fb462),_0x58b583['createdAt']=_0x12ddff['createdAt'],_0x58b583['_isDataLoaded']=!0x0,_0x3c876e&&_0x3c876e['@external']){const _0x1969e6=_0x3c876e['@external'],_0x53c1af=this['_getExternalAuthor'](_0x1969e6['authorName']);_0x58b583['authoredAt']=_0x1969e6['createdAt'],_0x58b583['author']=_0x53c1af,_0x58b583['isExternal']=!0x0;}else _0x58b583['authoredAt']=_0x12ddff['createdAt'];switch(_0x12ddff['data']&&(_0x58b583['data']=_0x12ddff['data']),_0x12ddff['attributes']&&(_0x58b583['attributes']=_0x12ddff['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x58b583['_saved']=!0x0),this['_suggestionState']['get'](_0x58b583)){case'notReady':this['_suggestionState']['set'](_0x58b583,'dataReady');break;case'markerReady':_0x58b583['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x58b583])),this['_refreshSuggestionsChain'](new Set([_0x58b583])),this['_suggestionState']['set'](_0x58b583,'ready'),this['fire']('suggestionLoaded',_0x58b583)):this['_suggestionState']['set'](_0x58b583,'removed');}return _0x58b583;}['acceptSuggestion'](_0x4f68f0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf8469b of _0x4f68f0['getAllAdjacentSuggestions']())_0xf8469b['accept']();});});}['discardSuggestion'](_0x790ad2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5483dd of _0x790ad2['getAllAdjacentSuggestions']())_0x5483dd['discard']();});});}['enableCommand'](_0x541749,_0x5cad59){const _0x2ef1d2=this['editor']['commands']['get'](_0x541749);if(!_0x2ef1d2)throw new _0xa5fb70('track-changes-command-not-found',this,{'commandName':_0x541749});if(this['_enabledCommands']['has'](_0x2ef1d2))throw new _0xa5fb70('track-changes-enable-command-twice',this,{'commandName':_0x541749});this['_enabledCommands']['add'](_0x2ef1d2),_0x5cad59&&_0x2ef1d2['on']('execute',(_0x1e4b44,_0x4a1b39)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4a1b39['length']>0x0&&_0x4a1b39[_0x4a1b39['length']-0x1]&&_0x4a1b39[_0x4a1b39['length']-0x1]['forceDefaultExecution']?_0x4a1b39['pop']():(_0x1e4b44['return']=_0x5cad59((..._0x30db3f)=>_0x2ef1d2['execute'](..._0x30db3f,{'forceDefaultExecution':!0x0}),..._0x4a1b39),_0x1e4b44['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3da641){let _0x245edc,_0x45fc55;const _0x2bca8f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x245edc=_0x3da641();}catch(_0x365315){_0x45fc55=_0x365315;}return _0x2bca8f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x45fc55&&_0xa5fb70['rethrowUnexpectedError'](_0x45fc55,this),_0x245edc;}['markInsertion'](_0x16e939,_0x2cb67b=null,_0xd6cea={}){if(_0x16e939['isCollapsed'])return null;const _0x4622c1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x690668,meta:_0x362d20}of this['_findSuggestions'](_0x16e939,'insertion'))if(_0x362d20['isOwn']){if(!_0x362d20['isNextTo']){if(_0x362d20['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x690668,_0xd6cea))continue;return _0x690668;}if(Lt(_0x690668,_0xd6cea))return _0x690668;this['_breakSuggestionMarker'](_0x690668,_0x16e939['start'],_0x16e939['end']);break;}if(_0x2cb67b==_0x690668['subType']&&Lt(_0x690668,_0xd6cea)){const _0x78ae28=_0x690668['getFirstRange']();return _0x78ae28['start']['isEqual'](_0x16e939['end'])?this['_setSuggestionRange'](_0x690668,this['_model']['createRange'](_0x16e939['start'],_0x78ae28['end'])):this['_setSuggestionRange'](_0x690668,this['_model']['createRange'](_0x78ae28['start'],_0x16e939['end'])),_0x690668;}}const _0x4c939c=_0xdda64a(),_0x2e643a=_0x4622c1['id'],_0x55b3d0=_0x2cb67b?'insertion:'+_0x2cb67b:'insertion',_0x4604ca=this['_setSuggestionData']({'id':_0x4c939c,'type':_0x55b3d0,'createdAt':new Date(),'authorId':_0x2e643a,'attributes':_0xd6cea});return this['_addSuggestionMarker'](_0x55b3d0,_0x4c939c,_0x2e643a,_0x16e939),_0x4604ca;}['markMultiRangeInsertion'](_0x3c9f1f,_0x40e12b='multi',_0x24d0ac={}){const _0x4d0ad1=this['editor']['plugins']['get']('Users')['me'],_0x2e024e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x40e12b,'join');for(const _0x4b5959 of this['getSuggestions']())if(_0x4b5959['author']['id']==_0x4d0ad1['id']&&'insertion'==_0x4b5959['type']&&_0x4b5959['subType']==_0x40e12b&&Lt(_0x4b5959,_0x24d0ac)&&(_0x2e024e(_0x4b5959['getRanges'](),_0x3c9f1f)||_0x2e024e(_0x3c9f1f,_0x4b5959['getRanges']()))){for(const _0x2ea64a of _0x3c9f1f)_0x4b5959['addRange'](_0x2ea64a);return _0x4b5959;}for(const {suggestion:_0x17246f,meta:_0x1f2fd7}of this['_findSuggestions'](_0x3c9f1f,'insertion')){if(!_0x1f2fd7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1f2fd7['containsRangeInObject'])continue;if(!Lt(_0x17246f,_0x24d0ac))continue;let _0x4d8cfe=!0x0;for(const _0x448afc of _0x17246f['getRanges']())for(const _0x287440 of _0x3c9f1f)if(!_0x448afc['containsRange'](_0x287440)){_0x4d8cfe=!0x1;break;}if(_0x4d8cfe)return _0x17246f;}const _0x2b6b8b=_0xdda64a(),_0x32731c=_0x4d0ad1['id'],_0x87a9ab='insertion:'+_0x40e12b,_0x39d2ac=this['_setSuggestionData']({'id':_0x2b6b8b,'type':_0x87a9ab,'createdAt':new Date(),'authorId':_0x32731c,'attributes':_0x24d0ac});for(const _0x4f6bc9 of _0x3c9f1f)this['_addSuggestionMarker'](_0x87a9ab,_0x2b6b8b,_0x32731c,_0x4f6bc9,u['getMultiRangeId']());return _0x39d2ac;}['markInlineFormat'](_0x503705,_0xa2cae,_0x5f54e5=null,_0x46f9a9={}){if(_0x5f54e5=_0x5f54e5||Vt(_0xa2cae),_0x503705['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5149ae=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5f54e5,'accept');return this['forceDefaultExecution'](()=>_0x5149ae([_0x503705],_0xa2cae,_0x46f9a9)),null;}const _0x2888c3=this['editor']['plugins']['get']('Users')['me'],_0x5de6a1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x52e38a,meta:_0x3dacb7}of this['_findSuggestions'](_0x503705,'insertion'))_0x3dacb7['isOwn']&&!_0x3dacb7['isInsideObject']&&_0x5de6a1['push'](..._0x52e38a['getRanges']());}const _0x32d240=function(_0x3ccb12,_0x2219cd){const _0x7f634=[];for(const _0x28dfea of _0x2219cd){const _0x203ace=_0x3ccb12['getIntersection'](_0x28dfea);_0x203ace&&_0x7f634['push'](_0x203ace);}return _0x7f634;}(_0x503705,_0x5de6a1),_0x259b73=function(_0xf989f5,_0x428461){const _0x224b21=[_0xf989f5];for(const _0x31376f of _0x428461){let _0xaf35e4=0x0;for(;_0xaf35e4<_0x224b21['length'];){const _0x5bc291=_0x224b21[_0xaf35e4]['getDifference'](_0x31376f);_0x224b21['splice'](_0xaf35e4,0x1,..._0x5bc291),_0xaf35e4+=_0x5bc291['length'];}}return _0x224b21;}(_0x503705,_0x5de6a1);_0x32d240['length']&&this['_model']['change'](()=>{for(const _0x4a0845 of _0x32d240){const _0x3fcc99=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5f54e5,'accept');this['forceDefaultExecution'](()=>_0x3fcc99([_0x4a0845],_0xa2cae,_0x46f9a9));}});for(const _0x5c3c23 of _0x259b73){let _0x47fe3b=null,_0x464b26=_0x5c3c23['start'],_0x17cae5=_0x5c3c23['end'];for(const {suggestion:_0x410cd6,meta:_0x2b5d05}of this['_findSuggestions'](_0x5c3c23,'formatInline')){if(!_0x2b5d05['isOwn'])continue;if(_0x410cd6['subType']!=_0x5f54e5)continue;if(!Lt(_0x410cd6,_0x46f9a9))continue;const _0x4b5081=_0x410cd6['getFirstRange']();if(_0x4b5081['containsRange'](_0x5c3c23,!0x0))return null;_0x464b26=_0x464b26['isBefore'](_0x4b5081['start'])?_0x464b26:_0x4b5081['start'],_0x17cae5=_0x17cae5['isAfter'](_0x4b5081['end'])?_0x17cae5:_0x4b5081['end'],_0x47fe3b?_0x4b5081['start']['isBefore'](_0x47fe3b['getFirstRange']()['start'])?(_0x47fe3b['removeMarkers'](),_0x47fe3b=_0x410cd6):_0x410cd6['removeMarkers']():_0x47fe3b=_0x410cd6;}const _0x78ae9e=this['_model']['createRange'](_0x464b26,_0x17cae5);if(_0x47fe3b)this['_setSuggestionRange'](_0x47fe3b,_0x78ae9e);else{const _0x384971=_0xdda64a(),_0x393fa5=_0x2888c3['id'];this['_setSuggestionData']({'id':_0x384971,'type':'formatInline:'+_0x5f54e5,'data':_0xa2cae,'createdAt':new Date(),'authorId':_0x393fa5,'attributes':_0x46f9a9}),this['_addSuggestionMarker']('formatInline:'+_0x5f54e5,_0x384971,_0x393fa5,_0x78ae9e);}}return null;}['markBlockFormat'](_0x21f3d4,_0x1b0a24,_0x45c3dd=[],_0x4b5065=null,_0x4444c7={}){_0x1b0a24['formatGroupId']||(_0x1b0a24['formatGroupId']=_0x1b0a24['commandName']),_0x1b0a24['multipleBlocks']=_0x21f3d4['is']('range'),_0x4b5065=_0x4b5065||Vt(_0x1b0a24);const _0x2f0f1f=_0x45c3dd['map'](_0x17ba7a=>Ft(_0x17ba7a,this['_model'])),_0x425ce0=_0x21f3d4['is']('range')?_0x21f3d4:Ft(_0x21f3d4,this['_model']);if('never'===this['_trackFormatChanges']){const _0x49c326=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b5065,'accept');return this['forceDefaultExecution'](()=>_0x49c326([_0x425ce0],_0x1b0a24,_0x4444c7)),null;}_0x2f0f1f['push'](_0x425ce0);let _0x32d653=!0x0;for(const _0x4252c1 of _0x2f0f1f)if(!this['_rangeIsInLocalUserInsertion'](_0x4252c1)){_0x32d653=!0x1;break;}if(_0x32d653&&'always'!==this['_trackFormatChanges']){const _0x5f20b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b5065,'accept');return this['forceDefaultExecution'](()=>_0x5f20b5([_0x425ce0],_0x1b0a24,_0x4444c7)),null;}let _0x2a9b48=null,_0x592814=_0x425ce0['start'],_0x203faf=_0x425ce0['end'];for(const {suggestion:_0x2f1c6c,meta:_0x58d86f}of this['_findSuggestions'](_0x425ce0,'formatBlock')){if(!_0x58d86f['isOwn'])continue;if(_0x58d86f['isNextTo']||_0x58d86f['containsRangeInObject']||_0x58d86f['isInsideObject'])continue;if(_0x2f1c6c['data']['formatGroupId']!=_0x1b0a24['formatGroupId'])continue;if(!Lt(_0x2f1c6c,_0x4444c7))continue;const _0x195352=_0x2f1c6c['getFirstRange']();if(_0x2f1c6c['subType']==_0x4b5065){if(_0x195352['containsRange'](_0x425ce0,!0x0))return null;_0x592814=_0x592814['isBefore'](_0x195352['start'])?_0x592814:_0x195352['start'],_0x203faf=_0x203faf['isAfter'](_0x195352['end'])?_0x203faf:_0x195352['end'],_0x2a9b48?_0x195352['start']['isBefore'](_0x2a9b48['getFirstRange']()['start'])?(_0x2a9b48['removeMarkers'](),_0x2a9b48=_0x2f1c6c):_0x2f1c6c['removeMarkers']():_0x2a9b48=_0x2f1c6c;}else{const _0x60a6cd=_0x425ce0['getIntersection'](_0x195352);this['_cutOutSuggestionMarker'](_0x2f1c6c,_0x60a6cd);}}const _0xf3bb9d=this['editor']['plugins']['get']('Users')['me'],_0x5bf046=_0xdda64a(),_0x1e88c8=_0xf3bb9d['id'];if(_0x2a9b48)return this['_setSuggestionRange'](_0x2a9b48,this['_model']['createRange'](_0x592814,_0x203faf)),_0x2a9b48;{const _0x2933ac=this['_setSuggestionData']({'id':_0x5bf046,'type':'formatBlock:'+_0x4b5065,'data':_0x1b0a24,'createdAt':new Date(),'authorId':_0x1e88c8,'attributes':_0x4444c7});return this['_addSuggestionMarker']('formatBlock:'+_0x4b5065,_0x5bf046,_0x1e88c8,this['_model']['createRange'](_0x592814,_0x203faf)),_0x2933ac;}}['markMultiRangeBlockFormat'](_0x24feac,_0x516f39,_0x246fdb=[],_0x5bf8bc=null,_0x25da98={}){_0x516f39['formatGroupId']||(_0x516f39['formatGroupId']=_0x516f39['commandName']);const _0x49857e=_0x24feac[0x0];_0x516f39['multipleBlocks']=_0x49857e['is']('range'),_0x5bf8bc=_0x5bf8bc||Vt(_0x516f39);const _0x5d54ad=_0x246fdb['map'](_0x39146a=>Ft(_0x39146a,this['_model'])),_0xac6989=_0x49857e['is']('range')?_0x24feac:_0x24feac['map'](_0x5353fe=>Ft(_0x5353fe,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4eda20=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf8bc,'accept');return this['forceDefaultExecution'](()=>_0x4eda20(_0xac6989,_0x516f39,_0x25da98)),null;}_0x5d54ad['push'](..._0xac6989);let _0x5c4642=!0x0;for(const _0x2a6364 of _0x5d54ad)if(!this['_rangeIsInLocalUserInsertion'](_0x2a6364)){_0x5c4642=!0x1;break;}if(_0x5c4642&&'always'!==this['_trackFormatChanges']){const _0x173553=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf8bc,'accept');return this['forceDefaultExecution'](()=>_0x173553(_0xac6989,_0x516f39,_0x25da98)),null;}const _0x5adf05=this['editor']['plugins']['get']('Users')['me'];for(const _0x1bb584 of this['getSuggestions']()){if(_0x1bb584['author']['id']!=_0x5adf05['id'])continue;if('formatBlock'!=_0x1bb584['type']||_0x1bb584['data']['formatGroupId']!=_0x516f39['formatGroupId'])continue;if(!Lt(_0x1bb584,_0x25da98))continue;const _0x181acf=_0x1bb584['subType']==_0x5bf8bc;for(let _0x2bc5c9=0x0;_0x2bc5c9<_0xac6989['length'];_0x2bc5c9++){const _0x8dfe14=_0xac6989[_0x2bc5c9];for(const _0x509fa0 of _0x1bb584['getMarkers']()){const _0x52c3dc=_0x509fa0['getRange']();if(_0x8dfe14['isEqual'](_0x52c3dc)){_0x181acf?(_0xac6989['splice'](_0x2bc5c9,0x1),_0x2bc5c9--):_0x1bb584['removeMarker'](_0x509fa0['name']);break;}}}}if(0x0==_0xac6989['length'])return null;const _0x1a5621=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf8bc,'join');for(const _0x6a46bb of this['getSuggestions']())if(_0x6a46bb['author']['id']==_0x5adf05['id']&&'formatBlock'==_0x6a46bb['type']&&_0x6a46bb['data']['formatGroupId']==_0x516f39['formatGroupId']&&_0x6a46bb['subType']==_0x5bf8bc&&Lt(_0x6a46bb,_0x25da98)&&(_0x1a5621(_0x6a46bb['getRanges'](),_0xac6989)||_0x1a5621(_0xac6989,_0x6a46bb['getRanges']()))){for(const _0x3812ac of _0xac6989)_0x6a46bb['addRange'](_0x3812ac);return _0x6a46bb;}const _0x358742=_0xdda64a(),_0x38ca88=_0x5adf05['id'],_0x41db5d='formatBlock:'+_0x5bf8bc,_0x3a1d24=this['_setSuggestionData']({'id':_0x358742,'type':_0x41db5d,'data':_0x516f39,'createdAt':new Date(),'authorId':_0x38ca88,'attributes':_0x25da98});for(const _0x227573 of _0xac6989)this['_addSuggestionMarker'](_0x41db5d,_0x358742,_0x38ca88,_0x227573,u['getMultiRangeId']());return _0x3a1d24;}['markDeletion'](_0x495988,_0x11d1f7=null,_0x59a0fa={}){if(_0x495988['isCollapsed'])return null;const _0xa17426=this['editor']['plugins']['get']('Users')['me'],_0x57bdd6=new _0x2819a3(_0x495988['start'],_0x495988['end']);for(const {suggestion:_0x540545,meta:_0x2dbd51}of this['_findSuggestions'](_0x57bdd6,'insertion'))if(_0x2dbd51['isOwn']&&!_0x2dbd51['isNextTo']){if(_0x540545['isMultiRange']){const _0x26d041=_0x540545['getRanges']()['filter'](_0xc81ac3=>'$graveyard'!=_0xc81ac3['root']['rootName']);_0x26d041['every'](_0x285c7f=>_0x57bdd6['containsRange'](_0x285c7f,!0x0))&&_0x540545['discard']();if(_0x26d041['some'](_0x19700a=>_0x19700a['containsRange'](_0x57bdd6,!0x0))){const _0x5ecf67=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x11d1f7,'accept');return this['forceDefaultExecution'](()=>_0x5ecf67([_0x57bdd6],null,_0x59a0fa)),null;}}else{const _0x1a85a0=_0x57bdd6['getIntersection'](_0x540545['getFirstRange']());null!==_0x1a85a0&&_0x540545['_onDiscard']([_0x1a85a0],null,_0x59a0fa);}}if(_0x57bdd6['detach'](),_0x57bdd6['isCollapsed']||'$graveyard'==_0x57bdd6['root']['rootName'])return null;let _0x3c446f=null,_0x4d1b57=_0x57bdd6['start'],_0x1d7ca0=_0x57bdd6['end'];const _0x69327=this['_findSuggestions'](_0x57bdd6,'deletion');for(const {suggestion:_0xe48d7c,meta:_0x504b3f}of _0x69327){const _0x197c0b=this['_model']['createRange'](_0x4d1b57,_0x1d7ca0);if(_0x504b3f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x504b3f['containsRangeInObject']&&!_0x504b3f['isInsideObject'])){if(_0xe48d7c['isMultiRange']){if(!Lt(_0xe48d7c,_0x59a0fa))continue;let _0x3d4d88=!0x0;for(const _0x4f2293 of _0xe48d7c['getRanges']()){if(_0x4f2293['containsRange'](_0x197c0b,!0x0))return _0xe48d7c;_0x197c0b['containsRange'](_0x4f2293)||(_0x3d4d88=!0x1);}_0x3d4d88&&_0xe48d7c['discard']();}else{const _0xaa6a90=_0xe48d7c['getFirstRange']();if(_0xaa6a90['containsRange'](_0x197c0b,!0x0))return _0xe48d7c;if(!Lt(_0xe48d7c,_0x59a0fa)){_0x197c0b['containsRange'](_0xaa6a90)?_0xe48d7c['removeMarkers']():_0xaa6a90['containsPosition'](_0x4d1b57)?_0x4d1b57=_0xaa6a90['end']:_0xaa6a90['containsPosition'](_0x1d7ca0)&&(_0x1d7ca0=_0xaa6a90['start']);continue;}_0x4d1b57=_0x4d1b57['isBefore'](_0xaa6a90['start'])?_0x4d1b57:_0xaa6a90['start'],_0x1d7ca0=_0x1d7ca0['isAfter'](_0xaa6a90['end'])?_0x1d7ca0:_0xaa6a90['end'],_0x59a0fa=Object['assign']({},_0xe48d7c['attributes']),_0x3c446f?_0xaa6a90['start']['isBefore'](_0x3c446f['getFirstRange']()['start'])?(_0x3c446f['removeMarkers'](),_0x3c446f=_0xe48d7c):_0xe48d7c['removeMarkers']():_0x3c446f=_0xe48d7c;}}}if(_0x3c446f)return this['_setSuggestionRange'](_0x3c446f,this['_model']['createRange'](_0x4d1b57,_0x1d7ca0)),_0x3c446f;{const _0x13b969=_0xdda64a(),_0x2db32c=this['_model']['createRange'](_0x4d1b57,_0x1d7ca0),_0x59a23b=_0xa17426['id'],_0x40a896=_0x11d1f7?'deletion:'+_0x11d1f7:'deletion',_0x48eed4=this['_setSuggestionData']({'id':_0x13b969,'type':_0x40a896,'createdAt':new Date(),'authorId':_0x59a23b,'attributes':_0x59a0fa});return this['_addSuggestionMarker'](_0x40a896,_0x13b969,_0x59a23b,_0x2db32c),_0x48eed4;}}['markMultiRangeDeletion'](_0xb7d433,_0x328560='multi',_0x14da7b={}){const _0x3883a7=this['editor']['plugins']['get']('Users')['me'],_0x245995=_0xb7d433['map'](_0x19d1bb=>new _0x2819a3(_0x19d1bb['start'],_0x19d1bb['end'])),_0xe31efa=new Set();for(const {suggestion:_0x123cf3,meta:_0xf93fb2}of this['_findSuggestions'](_0x245995,'insertion'))_0xf93fb2['isOwn']&&!_0xf93fb2['isNextTo']&&_0xe31efa['add'](_0x123cf3);for(const _0x336d4f of _0xe31efa)if(_0x336d4f['isMultiRange']){const _0x22fe66=_0x336d4f['getRanges']();(!_0x336d4f['attributes']||!_0x336d4f['attributes']['skipNestingCheck'])&&(_0x22fe66['every'](_0x3ab839=>_0x245995['some'](_0xd65c3d=>_0xd65c3d['containsRange'](_0x3ab839,!0x0)))&&_0x336d4f['discard']());if(_0x245995['every'](_0x260900=>_0x22fe66['some'](_0x172b95=>_0x172b95['containsRange'](_0x260900,!0x0)))){const _0x3c7279=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x328560,'accept');return this['forceDefaultExecution'](()=>_0x3c7279(_0xb7d433,null,_0x14da7b)),null;}}else{const _0x1eeaf3=_0x336d4f['getFirstRange']();_0x245995['some'](_0x556a26=>_0x556a26['containsRange'](_0x1eeaf3,!0x0))&&_0x336d4f['discard']();if(_0x245995['every'](_0x4933bc=>_0x1eeaf3['containsRange'](_0x4933bc,!0x0))){const _0x55a65b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x328560,'accept');return this['forceDefaultExecution'](()=>_0x55a65b(_0x245995,null,_0x14da7b)),null;}}const _0x5f36eb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x328560,'join');let _0x2c2f3b=null;for(const _0x2b07b3 of this['getSuggestions']())if(_0x2b07b3['author']['id']==_0x3883a7['id']&&_0x2b07b3['isInContent']&&'deletion'==_0x2b07b3['type']&&_0x2b07b3['subType']==_0x328560&&Lt(_0x2b07b3,_0x14da7b)&&(_0x5f36eb(_0x2b07b3['getRanges'](),_0x245995)||_0x5f36eb(_0x245995,_0x2b07b3['getRanges']()))){if(_0x2c2f3b){if(_0x2b07b3['commentThread']&&_0x2b07b3['commentThread']['length'])continue;for(const _0x21cc23 of _0x2b07b3['getRanges']())_0x2c2f3b['isIntersectingWithRange'](_0x21cc23)||_0x2c2f3b['addRange'](_0x21cc23);_0x2b07b3['removeMarkers']();}else{_0x2c2f3b=_0x2b07b3;for(const _0x1aa2d9 of _0x245995)_0x2b07b3['isIntersectingWithRange'](_0x1aa2d9)||_0x2b07b3['addRange'](_0x1aa2d9);}}if(_0x2c2f3b)return _0x2c2f3b;_0xe31efa['clear']();for(const {suggestion:_0x4b53ed,meta:_0x3c49b3}of this['_findSuggestions'](_0x245995,'deletion'))_0x3c49b3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c49b3['containsRangeInObject']&&!_0x3c49b3['isInsideObject'])&&Lt(_0x4b53ed,_0x14da7b)&&_0xe31efa['add'](_0x4b53ed);for(const _0x545128 of _0xe31efa){const _0x1c62ac=_0x545128['getRanges']();if(!_0x14da7b||!_0x14da7b['skipNestingCheck']){if(_0x245995['every'](_0x190e34=>_0x1c62ac['some'](_0x834091=>_0x834091['containsRange'](_0x190e34,!0x0))))return _0x545128;}(!_0x545128['attributes']||!_0x545128['attributes']['skipNestingCheck'])&&(_0x1c62ac['every'](_0x25e548=>_0x245995['some'](_0x4863cc=>_0x4863cc['containsRange'](_0x25e548,!0x0)))&&_0x545128['discard']());}const _0x49532b=_0xdda64a(),_0x3907b8=_0x3883a7['id'],_0x22dc2f='deletion:'+_0x328560,_0x2c4c41=this['_setSuggestionData']({'id':_0x49532b,'type':_0x22dc2f,'createdAt':new Date(),'authorId':_0x3907b8,'attributes':_0x14da7b});for(const _0x14dd76 of _0x245995)_0x14dd76['detach'](),_0x14dd76['isCollapsed']||'$graveyard'==_0x14dd76['root']['rootName']||this['_addSuggestionMarker'](_0x22dc2f,_0x49532b,_0x3907b8,_0x14dd76,u['getMultiRangeId']());return _0x2c4c41;}['markAttributeChange'](_0x59fd91,_0x355843,_0x2aea3c,_0x58e4e4,_0x481889){if(_0x59fd91['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x24cb75=this['editor']['plugins']['get']('Users')['me']['id'],_0x27dd96=Array['from'](this['_suggestions']['values']())['filter'](_0x41fdc5=>'attribute'==_0x41fdc5['type']&&_0x41fdc5['data']['key']==_0x355843&&_0x41fdc5['isIntersectingWithRange'](_0x59fd91));if('default'===this['_trackFormatChanges']){const _0x2e55be=this['_findSuggestions'](_0x59fd91,'insertion')['filter'](({meta:_0x5165ea})=>_0x5165ea['isOwn']&&!_0x5165ea['isInsideObject']&&!_0x5165ea['isNextTo'])['map'](({suggestion:_0x44953d})=>_0x44953d);_0x27dd96['unshift'](..._0x2e55be);}const _0x31d680=new Map([[_0x59fd91,_0x2aea3c]]);for(const _0x1f8e95 of _0x27dd96){const _0x5b03cc='attribute'==_0x1f8e95['type']?_0x1f8e95['data']['oldValue']:void 0x0,_0x13cdf4=_0x1f8e95['getFirstRange'](),_0x149981=Array['from'](_0x31d680['keys']())['find'](_0x2d2664=>_0x2d2664['isIntersecting'](_0x13cdf4));if(!_0x149981)continue;const _0x1a73a5=_0x149981['getDifference'](_0x13cdf4);this['_isBlockAttribute'](_0x355843)&&'insertion'==_0x1f8e95['type']&&0x0!=_0x1a73a5['length']||(_0x31d680['delete'](_0x149981),_0x1a73a5['forEach'](_0x4565a7=>{_0x31d680['set'](_0x4565a7,_0x2aea3c);}),'insertion'!=_0x1f8e95['type']&&_0x5b03cc!=_0x58e4e4&&_0x31d680['set'](_0x149981['getIntersection'](_0x13cdf4),_0x5b03cc));}const _0xaa1dff=[];for(const [_0x189f0d,_0x1bfa01]of _0x31d680){const _0x45dcbd=_0xdda64a(),_0x670547={'key':_0x355843,'oldValue':_0x1bfa01,'newValue':_0x58e4e4};_0x355843['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':_0x355843});const _0x6c4588=('attribute:'+(_0x355843+'|'+Vt({'newValue':_0x58e4e4})))['substring'](0x0,0x3c),_0x428ca2=this['_setSuggestionData']({'id':_0x45dcbd,'type':_0x6c4588,'data':_0x670547,'createdAt':new Date(),'authorId':_0x24cb75,'attributes':_0x481889});_0xaa1dff['push'](_0x428ca2),this['_addSuggestionMarker'](_0x6c4588,_0x45dcbd,_0x24cb75,_0x189f0d);}return _0xaa1dff;}['enableDefaultAttributesIntegration'](_0x201723){this['enableCommand'](_0x201723,(_0x24a699,..._0x41de79)=>{this['_recordAttributeChanges'](()=>{_0x24a699(..._0x41de79);});});}['registerBlockAttribute'](_0x253756){this['_blockAttributeKeys']['add'](_0x253756);}['registerInlineAttribute'](_0x535fde){this['_inlineAttributeKeys']['add'](_0x535fde);}['_getAttributeKey'](_0x4b564e){return'attribute'==_0x4b564e['type']?_0x4b564e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x28b7b4,_0x2828ee){const _0x40b458=_0x28b7b4['getFirstMarker']();this['_model']['change'](_0x137229=>{_0x137229['updateMarker'](_0x40b458,{'range':_0x2828ee});});}['_addThreadToSuggestion'](_0xfef713){const _0x33da62=_0xfef713['id'],_0x1ecb84=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x33da62)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1ecb84,'threadId':_0x33da62,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5567d4=this['_commentsRepository']['getCommentThread'](_0x33da62);_0x5567d4['unbind']('isRemovable'),_0x5567d4['isRemovable']=!0x1,_0xfef713['commentThread']=_0x5567d4;}['_checkSuggestionCorrectness'](_0x1ea063,_0x5758fe,_0x1d61af,_0xcb84b9){if(_0x1ea063['type']!=_0x5758fe||_0x1ea063['subType']!=_0x1d61af||_0x1ea063['creator']['id']!=_0xcb84b9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa5fb70('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3fd83b,_0x556593){const _0x4b381b=_0x3fd83b['getFirstRange']();if(_0x556593['isEqual'](_0x4b381b))_0x3fd83b['removeMarkers']();else{if(_0x4b381b['containsRange'](_0x556593)){const _0x590c1d=this['_model']['createPositionAt'](_0x556593['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fd83b,this['_model']['createRange'](_0x4b381b['start'],_0x590c1d));const _0x1daf3a=_0xdda64a(),_0x27a3a7=_0x3fd83b['creator']['id'],_0x16997d=_0x3fd83b['type']+':'+_0x3fd83b['subType'];this['_setSuggestionData']({'id':_0x1daf3a,'type':_0x16997d,'createdAt':new Date(),'authorId':_0x27a3a7,'data':_0x3fd83b['data'],'attributes':_0x3fd83b['attributes']});const _0x212df1=this['_model']['createPositionAt'](_0x556593['end']['parent'],'after'),_0x4c5580=this['_model']['createRange'](_0x212df1,_0x4b381b['end']);this['_addSuggestionMarker'](_0x16997d,_0x1daf3a,_0x27a3a7,_0x4c5580);}else{if(_0x4b381b['containsPosition'](_0x556593['start'])){const _0x2e6d29=this['_model']['createPositionAt'](_0x556593['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fd83b,this['_model']['createRange'](_0x4b381b['start'],_0x2e6d29));}else{const _0x5629ef=this['_model']['createPositionAt'](_0x556593['end']['parent'],'after');this['_setSuggestionRange'](_0x3fd83b,this['_model']['createRange'](_0x5629ef,_0x4b381b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x46fc2e){for(const {suggestion:_0x354973,meta:_0x28be86}of this['_findSuggestions'](_0x46fc2e,'insertion')){if(!_0x28be86['isOwn'])continue;const _0x2a1ebd=_0x354973['getRanges']();for(const _0x2bd3ca of _0x2a1ebd)if(!_0x46fc2e['getDifference'](_0x2bd3ca)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x47b2d2){const _0x1747c6=this['editor']['plugins']['get']('Users')['getUser'](_0x47b2d2);if(!_0x1747c6)throw new _0xa5fb70('track-changes-user-not-found',this);return _0x1747c6;}['_getExternalAuthor'](_0x422599){const _0x57791d=this['editor']['plugins']['get']('Users'),_0x23bca3=_0x40f9c5('external:'+_0x422599),_0x2b0833=_0x57791d['getUser'](_0x23bca3);return _0x2b0833||_0x57791d['addUser']({'id':_0x23bca3,'name':_0x422599});}['_createSuggestion'](_0x4daa16,_0x146645,_0x42ee47,_0x4a0cb8,_0x41e587){const _0x399eb0=this['_getAuthorFromId'](_0x4a0cb8),_0x192f5f=this['_suggestionFactory']['buildSuggestion'](_0x4daa16,_0x146645,_0x42ee47,_0x399eb0,_0x41e587,_0x36e5db=>{this['_updateSuggestionData'](_0x42ee47,{'attributes':_0x36e5db});const _0x5b4a40=this['getSuggestion'](_0x42ee47);this['_joinWithAdjacentSuggestions'](new Set([_0x5b4a40])),this['_refreshSuggestionsChain'](new Set([_0x5b4a40]));});return this['listenTo'](_0x192f5f,'accept',()=>{this['_updateSuggestionData'](_0x42ee47,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x192f5f,'discard',()=>{this['_updateSuggestionData'](_0x42ee47,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x42ee47,_0x192f5f),this['_suggestionState']['set'](_0x192f5f,'notReady'),_0x192f5f;}['_splitMarkerName'](_0xfe49cb){const _0x324b6d=_0xfe49cb['split'](':');return{'group':_0x324b6d[0x0],'type':_0x324b6d[0x1],'subType':_0x324b6d['length']>=0x5?_0x324b6d[0x2]:null,'id':_0x324b6d['length']<0x5?_0x324b6d[0x2]:_0x324b6d[0x3],'authorId':_0x324b6d['length']<0x5?_0x324b6d[0x3]:_0x324b6d[0x4],'markerCount':0x6==_0x324b6d['length']?_0x324b6d[0x5]:null};}['_breakSuggestionMarker'](_0x331ab6,_0xd49ac0,_0x3f7346){const _0x570e74=_0x331ab6['getFirstRange'](),_0x8515b5=_0x570e74['start'],_0x20a98b=_0x570e74['end'];this['_setSuggestionRange'](_0x331ab6,this['_model']['createRange'](_0x8515b5,_0xd49ac0));const _0x1883da=_0xdda64a(),_0x6d2cc2=_0x331ab6['creator']['id'],_0x4b047=_0x331ab6['type']+(_0x331ab6['subType']?':'+_0x331ab6['subType']:'');this['_setSuggestionData']({'id':_0x1883da,'type':_0x4b047,'createdAt':new Date(),'authorId':_0x6d2cc2,'originalSuggestionId':_0x331ab6['id'],'attributes':_0x331ab6['attributes'],'data':_0x331ab6['data']});const _0x37ea5b=this['_getAttributeKey'](_0x331ab6);('formatBlock'==_0x331ab6['type']||_0x37ea5b&&this['_isBlockAttribute'](_0x37ea5b))&&(_0x3f7346=this['_model']['createPositionBefore'](_0x3f7346['parent'])),this['_addSuggestionMarker'](_0x4b047,_0x1883da,_0x6d2cc2,this['_model']['createRange'](_0x3f7346,_0x20a98b));}['_findSuggestions'](_0x415ce2,_0x490cdd=null){const _0x292ad=[],_0x2501fa=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x415ce2)||(_0x415ce2=[_0x415ce2]);for(const _0x359ada of this['getSuggestions']()){if(!_0x359ada['isInContent'])continue;if(_0x490cdd&&_0x359ada['type']!=_0x490cdd)continue;let _0x99e64=!0x1;for(const _0x465251 of _0x359ada['getRanges']()){for(const _0x496336 of _0x415ce2){const _0x3b6f5c=_0x496336['start']['isEqual'](_0x465251['end'])||_0x496336['end']['isEqual'](_0x465251['start']);if(_0x3b6f5c||_0x496336['getIntersection'](_0x465251)){const _0x555173=_0x496336['containsRange'](_0x465251)&&Rt(this['_model']['schema'],_0x465251['start'],_0x496336),_0xbc6457=_0x465251['containsRange'](_0x496336)&&Rt(this['_model']['schema'],_0x496336['start'],_0x465251);_0x292ad['push']({'suggestion':_0x359ada,'meta':{'isOwn':_0x2501fa==_0x359ada['author'],'isNextTo':_0x3b6f5c,'isInsideObject':_0x555173,'containsRangeInObject':_0xbc6457}}),_0x99e64=!0x0;break;}}if(_0x99e64)break;}}return _0x292ad;}['_addSuggestionMarker'](_0x52118d,_0x407496,_0x3d88d2,_0x89be88,_0x46a30b){this['_model']['change'](_0x4ca988=>{let _0x1b8eed='suggestion:'+_0x52118d+':'+_0x407496+':'+_0x3d88d2;_0x46a30b&&(_0x1b8eed=_0x1b8eed+':'+_0x46a30b),_0x4ca988['addMarker'](_0x1b8eed,{'range':_0x89be88,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x479fc5){const _0x32b9ee=_0x479fc5['previous'],_0x2738d9=_0x479fc5['next'];_0x479fc5['previous']=null,_0x479fc5['next']=null,null!=_0x32b9ee&&_0x32b9ee['next']==_0x479fc5&&(_0x32b9ee['next']=_0x2738d9),null!=_0x2738d9&&_0x2738d9['previous']==_0x479fc5&&(_0x2738d9['previous']=_0x32b9ee),'ready'==this['_suggestionState']['get'](_0x479fc5)&&(this['_suggestionState']['set'](_0x479fc5,'removed'),this['fire']('suggestionUnloaded',_0x479fc5,_0x32b9ee,_0x2738d9));}['_setSuggestionData'](_0x35a3bb){const _0x55e62d=_0x35a3bb['id'],_0x5f4f2c=this['addSuggestionData'](_0x35a3bb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5adab1=this['editor']['plugins']['get']('PendingActions'),_0x466b59=_0x5f4f2c['hasComments'],_0x4ba488=_0x5f4f2c['subType']?_0x5f4f2c['type']+':'+_0x5f4f2c['subType']:_0x5f4f2c['type'],_0x3a4d90=this['editor']['locale'],_0x5be5ab=_0x5adab1['add'](o(_0x3a4d90,'PENDING_ACTION_SUGGESTION')),_0x43d34e={'id':_0x55e62d,'type':_0x4ba488,'hasComments':_0x466b59,'data':_0x35a3bb['data']||null,'originalSuggestionId':_0x35a3bb['originalSuggestionId']||null,'attributes':_0x5f4f2c['attributes']};this['_adapter']['addSuggestion'](_0x43d34e)['then'](_0x35b602=>{_0x5f4f2c['_saved']=!0x0,_0x5adab1['remove'](_0x5be5ab),_0x35b602&&_0x35b602['createdAt']&&(this['_suggestions']['get'](_0x55e62d)['createdAt']=_0x35b602['createdAt']);})['catch'](_0x29f7cf=>{throw _0x25c1e2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5f4f2c['discard']();}),_0x5f4f2c['stopListening'](),this['_suggestions']['delete'](_0x5f4f2c['id']),this['_suggestionState']['delete'](_0x5f4f2c),_0x29f7cf;});}return _0x5f4f2c;}['_isBlockAttribute'](_0x473a0c){return this['_blockAttributeKeys']['has'](_0x473a0c);}['_updateSuggestionData'](_0x59fdd3,_0xcec067){const _0x298d89=this['editor']['plugins']['get']('PendingActions'),_0xb5ea2b=this['getSuggestion'](_0x59fdd3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xb5ea2b['_saved']){const _0x3d07f3=_0x298d89['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x59fdd3,_0xcec067)['then'](()=>{_0x298d89['remove'](_0x3d07f3);});}else _0xb5ea2b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x59fdd3,_0xcec067);});}}['_getSuggestionData'](_0x50ce8c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa5fb70('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50ce8c);}['_handleNewSuggestionMarker'](_0x18063a){const {id:_0x54fbf4,type:_0x5e7fbd,subType:_0x3a26d1,authorId:_0x159242}=this['_splitMarkerName'](_0x18063a),_0x1fe53c=this['_suggestions']['get'](_0x54fbf4)||this['_createSuggestion'](_0x5e7fbd,_0x3a26d1,_0x54fbf4,_0x159242,{});switch(this['_checkSuggestionCorrectness'](_0x1fe53c,_0x5e7fbd,_0x3a26d1,_0x159242),this['_suggestionState']['get'](_0x1fe53c)){case'notReady':this['_getSuggestionData'](_0x54fbf4)['then'](_0x3d9d63=>{let _0x4665db=Promise['resolve']();_0x3d9d63['hasComments']&&(_0x4665db=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x54fbf4})),_0x4665db['then'](()=>{this['addSuggestionData'](_0x3d9d63)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1fe53c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x54fbf4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1fe53c,'ready'),this['fire']('suggestionLoaded',_0x1fe53c);break;case'ready':this['fire']('suggestionChanged',_0x1fe53c);}return _0x1fe53c['addMarkerName'](_0x18063a),_0x1fe53c;}['_refreshSuggestionsChain'](_0x290c23){const _0xa0af84=Array['from'](_0x290c23),_0x3fde0d=_0xa0af84['filter'](_0x35d886=>'attribute'==_0x35d886['type']);this['_refreshAttributeSuggestionsChain'](_0x3fde0d);const _0x4b2342=_0xa0af84['filter'](_0x43195c=>!_0x43195c['isMultiRange']&&'attribute'!=_0x43195c['type']),_0x36c597=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe09c3=>!_0xe09c3['isMultiRange']&&'attribute'!=_0xe09c3['type']),_0x36d207=_0x36c597['filter'](_0x1a6019=>!_0x290c23['has'](_0x1a6019)),_0x1382bd=new Map(_0x36c597['map'](_0x3be8ac=>[_0x3be8ac,this['_suggestionFactory']['getSuggestionCallback'](_0x3be8ac['type'],_0x3be8ac['subType'],'chain')])),_0x305e65=new Map(_0x36c597['map'](_0x1c4305=>[_0x1c4305,_0x1c4305['getFirstRange']()])),_0x24091f=new Set(),_0xb30200=new Set();for(let _0x4d3c46=0x0;_0x4d3c46<_0x4b2342['length'];_0x4d3c46++)_0x4192db(_0x4b2342[_0x4d3c46],_0x4b2342,_0x4d3c46+0x1);for(let _0x4e980a=0x0;_0x4e980a<_0x4b2342['length'];_0x4e980a++)_0x4192db(_0x4b2342[_0x4e980a],_0x36d207,0x0);const _0x29b4fb=new Set();for(let _0x34498f=0x0;_0x34498f<_0x4b2342['length'];_0x34498f++){const _0x3cc50e=_0x4b2342[_0x34498f];!_0xb30200['has'](_0x3cc50e)&&_0x3cc50e['previous']&&(_0x29b4fb['add'](_0x3cc50e['previous']),_0x3cc50e['previous']['next']===_0x3cc50e&&(_0x3cc50e['previous']['next']=null),_0x3cc50e['previous']=null),!_0x24091f['has'](_0x3cc50e)&&_0x3cc50e['next']&&(_0x29b4fb['add'](_0x3cc50e['next']),_0x3cc50e['next']['previous']===_0x3cc50e&&(_0x3cc50e['next']['previous']=null),_0x3cc50e['next']=null);}function _0x4192db(_0x54fa02,_0x5389ae,_0x45437e){for(let _0x96e09e=_0x45437e;_0x96e09e<_0x5389ae['length'];_0x96e09e++){const _0x252cd9=_0xfe5461(_0x54fa02,_0x5389ae[_0x96e09e]);_0x252cd9&&(_0x252cd9[0x0]['next']=_0x252cd9[0x1],_0x252cd9[0x1]['previous']=_0x252cd9[0x0],_0x24091f['add'](_0x252cd9[0x0]),_0xb30200['add'](_0x252cd9[0x1]));}}function _0xfe5461(_0x1e97e9,_0x1d93f3){if(_0x1e97e9['author']['id']!==_0x1d93f3['author']['id'])return null;const _0x3065a0=_0x1382bd['get'](_0x1e97e9)(_0x1e97e9,_0x1d93f3,_0x305e65['get'](_0x1e97e9),_0x305e65['get'](_0x1d93f3));if(!_0x3065a0)return null;return _0x1382bd['get'](_0x1d93f3)(_0x1e97e9,_0x1d93f3,_0x305e65['get'](_0x1e97e9),_0x305e65['get'](_0x1d93f3))?_0x3065a0[0x1]['commentThread']&&_0x3065a0[0x1]['commentThread']['length']?null:_0x3065a0:null;}_0x29b4fb['size']&&this['_refreshSuggestionsChain'](_0x29b4fb);}['_refreshAttributeSuggestionsChain'](_0x3c7b8f){if(0x0==_0x3c7b8f['length'])return;const _0x291f39=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x340b08=>'attribute'==_0x340b08['type']&&_0x340b08['_isDataLoaded']),_0x20137f=[],_0x1c4b12=new Map();for(const _0x5301d2 of _0x291f39){const _0x421fed=_0x40f9c5(_0x5301d2['attributes']);_0x1c4b12['has'](_0x421fed)||(_0x1c4b12['set'](_0x421fed,_0x20137f['length']),_0x20137f['push']([]));const _0x450d65=_0x1c4b12['get'](_0x421fed);_0x20137f[_0x450d65]['push'](_0x5301d2);}!(function(){_0x20137f['sort']((_0xd967f8,_0x40d087)=>{const _0x2775d9=_0xd967f8[0x0]['createdAt'],_0x4a3bd1=_0x40d087[0x0]['createdAt'];return _0x2775d9==_0x4a3bd1?_0xd967f8[0x0]['attributes']['groupId']<_0x40d087[0x0]['attributes']['groupId']?-0x1:0x1:_0x2775d9<_0x4a3bd1?-0x1:0x1;});for(const _0x56d560 of _0x20137f)_0x56d560['sort']((_0x1ee08c,_0x3883e6)=>_0x1ee08c['id']<_0x3883e6['id']?-0x1:0x1);}());for(let _0x1ee398=0x0;_0x1ee398<_0x20137f['length'];_0x1ee398++){if(0x0==_0x20137f[_0x1ee398]['length'])continue;const _0x395bde=[];for(let _0x23cb9f=_0x1ee398+0x1;_0x23cb9f<_0x20137f['length'];_0x23cb9f++)0x0!=_0x20137f[_0x23cb9f]['length']&&_0x7c4f02(_0x20137f[_0x1ee398],_0x20137f[_0x23cb9f])&&_0x395bde['push'](_0x23cb9f);for(const _0x3123f8 of _0x395bde)_0x20137f[_0x1ee398]=_0x20137f[_0x1ee398]['concat'](_0x20137f[_0x3123f8]),_0x20137f[_0x3123f8]=[];}for(const _0x50b8f3 of _0x20137f)for(let _0xe810c7=0x0;_0xe810c7<_0x50b8f3['length'];_0xe810c7++)_0x50b8f3[_0xe810c7]['next']=_0x50b8f3[_0xe810c7+0x1]||null;for(const _0x231b01 of _0x20137f)for(let _0x1b5d36=0x0;_0x1b5d36<_0x231b01['length'];_0x1b5d36++)_0x231b01[_0x1b5d36]['previous']=_0x231b01[_0x1b5d36-0x1]||null;function _0x7c4f02(_0x429778,_0x30f498){if(_0x429778[0x0]['attributes']['groupId']!==_0x30f498[0x0]['attributes']['groupId']&&_0x429778[0x0]['author']!==_0x30f498[0x0]['author'])return!0x1;if(!function(_0x45f655,_0x45ef01){if(!_0x45f655['hasComments']&&!_0x45ef01['hasComments'])return!0x0;if(_0x45f655['hasComments']&&_0x45ef01['hasComments'])return!0x1;if(_0x45f655['hasComments']&&_0x45ef01['createdAt']<_0x45f655['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x45ef01['hasComments']&&_0x45f655['createdAt']<_0x45ef01['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x429778[0x0],_0x30f498[0x0]))return!0x1;const _0x2bed22=Bt(_0x429778[0x0]['attributes'],'groupId'),_0xc1fc80=Bt(_0x30f498[0x0]['attributes'],'groupId');if(!_0x2da674(_0x2bed22,_0xc1fc80))return!0x1;return!!_0x429778['every'](_0x329156=>_0x30f498['some'](_0x3de964=>_0x329156['getFirstRange']()['isEqual'](_0x3de964['getFirstRange']())))&&_0x30f498['every'](_0x3a1994=>_0x429778['some'](_0x1f2f96=>_0x3a1994['getFirstRange']()['isEqual'](_0x1f2f96['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x492d81){const _0x3dbacd=Array['from'](_0x492d81),_0x466a02=this['getSuggestions']({'skipNotAttached':!0x0}),_0x199068=_0x466a02['filter'](_0x1480d9=>!_0x492d81['has'](_0x1480d9)),_0x30c1fa=new Map(_0x3dbacd['map'](_0x59d9fe=>[_0x59d9fe,this['_suggestionFactory']['getSuggestionCallback'](_0x59d9fe['type'],_0x59d9fe['subType'],'join')])),_0x31590e=new Map(_0x466a02['map'](_0x980cf7=>[_0x980cf7,_0x980cf7['getRanges']()]));for(let _0x2af6d5=0x0;_0x2af6d5<_0x3dbacd['length'];_0x2af6d5++){if(_0x24ca54(this,_0x3dbacd[_0x2af6d5],_0x3dbacd,_0x2af6d5+0x1))return!0x0;}for(let _0x54e758=0x0;_0x54e758<_0x3dbacd['length'];_0x54e758++){if(_0x24ca54(this,_0x3dbacd[_0x54e758],_0x199068,0x0))return!0x0;}return!0x1;function _0x24ca54(_0x4b4b6b,_0x354b1a,_0x39f69e,_0x127911){for(let _0x5a6117=_0x127911;_0x5a6117<_0x39f69e['length'];_0x5a6117++){const _0x14b999=_0x39f69e[_0x5a6117];if(_0x14b999['type']!==_0x354b1a['type']||_0x14b999['author']['id']!==_0x354b1a['author']['id']||_0x14b999['subType']!==_0x354b1a['subType'])continue;if(!Pt(_0x354b1a,_0x14b999,['groupId']))continue;if('attribute'==_0x354b1a['type']&&_0x354b1a['data']['oldValue']!=_0x14b999['data']['oldValue'])continue;if('attribute'==_0x354b1a['type']&&_0x4b4b6b['_isBlockAttribute'](_0x354b1a['data']['key']))continue;if('formatBlock'==_0x354b1a['type']){const _0x44f7a4=_0x4b4b6b['editor']['model'],_0xf7409d=_0x354b1a['getContainedElement']();if(_0xf7409d&&(_0x44f7a4['schema']['isObject'](_0xf7409d)||_0x44f7a4['schema']['isLimit'](_0xf7409d)))continue;}const _0x5c7c6c=_0x30c1fa['get'](_0x354b1a),_0x192a13=_0x31590e['get'](_0x354b1a),_0x25f86b=_0x31590e['get'](_0x14b999),_0x3bc187=_0x354b1a['commentThread']&&_0x354b1a['commentThread']['length'],_0x2d6623=_0x14b999['commentThread']&&_0x14b999['commentThread']['length'];if(!_0x3bc187&&_0x5c7c6c(_0x25f86b,_0x192a13))return _0x4b4b6b['_joinSuggestions'](_0x14b999,_0x354b1a),_0x31590e['delete'](_0x354b1a),!0x0;if(!_0x2d6623&&_0x5c7c6c(_0x192a13,_0x25f86b))return _0x4b4b6b['_joinSuggestions'](_0x354b1a,_0x14b999),_0x31590e['delete'](_0x14b999),!0x0;}return!0x1;}}['_joinSuggestions'](_0x10155b,_0x33c3c4){if(_0x10155b['isMultiRange']){for(const _0x3f5f15 of _0x33c3c4['getRanges']())_0x10155b['addRange'](_0x3f5f15);}else{const _0x132b10=_0x33c3c4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x10155b,this['_model']['createRange'](_0x10155b['getFirstRange']()['start'],_0x132b10));}_0x33c3c4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4dd7c0,_0x526523){const _0x3120ad=_0x4dd7c0['startsWith']('format')||_0x4dd7c0['startsWith']('attribute')?'FORMATTING':_0x4dd7c0['toUpperCase']();return o(this['editor']['locale'],_0x526523+'_'+_0x3120ad+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4dd0bb=this['editor'];if(!_0x4dd0bb['ui'])return;const {ariaLiveAnnouncer:_0x5e3eae}=_0x4dd0bb['ui'];_0x5ac0e4(this['_model'],({left:_0x97a860,entered:_0x72264})=>{for(const _0x451d90 of _0x97a860){const {group:_0x206680,type:_0x58de7e}=this['_splitMarkerName'](_0x451d90['name']);if('suggestion'===_0x206680){_0x5e3eae['announce'](this['_getMarkerAnnouncementText'](_0x58de7e,'LEAVE'));break;}}for(const _0x1e4a1a of _0x72264){const {group:_0xa260b6,type:_0x237f64}=this['_splitMarkerName'](_0x1e4a1a['name']);if('suggestion'===_0xa260b6){_0x5e3eae['announce'](this['_getMarkerAnnouncementText'](_0x237f64,'ENTER'));break;}}});}['_processAttributeChanges'](_0x18cc3e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x257c67=this['editor'],_0x2e2a10=_0x257c67['model']['document']['differ']['getChanges']();if(0x0==_0x2e2a10['length'])return!0x1;const _0x448e7e=[],_0x58d68f=_0x2e2a10['filter'](_0x4aec0d=>'attribute'==_0x4aec0d['type']),_0x40d759=_0x2e2a10['filter'](_0x5b7452=>'insert'==_0x5b7452['type']&&'$text'!=_0x5b7452['name']),_0x506738=_0x2e2a10['filter'](_0xc58e62=>'remove'==_0xc58e62['type']&&'$text'!=_0xc58e62['name']);for(const _0x1af1fe of _0x58d68f)_0x448e7e['push']({'key':_0x1af1fe['attributeKey'],'newValue':_0x1af1fe['attributeNewValue'],'oldValue':_0x1af1fe['attributeOldValue'],'range':Ot(_0x1af1fe['range'],_0x257c67['model'])});for(const _0xcf322b of _0x40d759){const _0x3785ac=_0x506738['find'](_0x27f633=>_0x27f633['position']['isEqual'](_0xcf322b['position']));_0x3785ac&&_0x448e7e['push']({'key':m,'newValue':_0xcf322b['name'],'oldValue':_0x3785ac['name'],'range':_0x257c67['model']['createRangeOn'](_0xcf322b['position']['nodeAfter'])});}return 0x0!=_0x448e7e['length']&&this['_reduceExistingSuggestions'](_0x18cc3e,_0x448e7e);}['_processAttributeSuggestions'](_0x4c0c9e){let _0x9723e=!0x1;const _0x36a2de=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x447401=>_0x447401['data']['newRange']&&_0x447401['name']['startsWith']('suggestion:attribute:'));for(const _0x4a56ef of _0x36a2de){const {subType:_0x19a403,id:_0x93a2d0}=this['_splitMarkerName'](_0x4a56ef['name']),_0x3269e8=_0x19a403['split']('|')[0x0];for(const _0x203b09 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x203b09['id']!=_0x93a2d0&&'attribute'==_0x203b09['type']&&_0x203b09['data']&&_0x203b09['data']['key']==_0x3269e8&&_0x203b09['getFirstRange']()['isIntersecting'](_0x4a56ef['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x203b09,_0x4a56ef['data']['newRange'],_0x4c0c9e),_0x9723e=!0x0);}return _0x9723e;}['_recordAttributeChanges'](_0x39a974){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x39a974();}['_isRegisteredAttribute'](_0x5878a5){const _0x5143ef=this['_isBlockAttribute'](_0x5878a5),_0x22fc80=this['_inlineAttributeKeys']['has'](_0x5878a5);return _0x5143ef||_0x22fc80;}['_reduceExistingSuggestions'](_0x15bbd1,_0x9e15e7){if(0x0==_0x9e15e7['length'])return!0x1;let _0x4200a7=!0x1;for(const _0x33d5ef of _0x9e15e7){const _0x2d1028=this['_findSuggestions'](_0x33d5ef['range'],'attribute')['filter'](_0x29de42=>!_0x29de42['meta']['isNextTo'])['map'](_0x3ad4ad=>_0x3ad4ad['suggestion']),_0x5c16f3=_0x40f9c5({'newValue':_0x33d5ef['newValue']});_0x2d1028['filter'](_0x343053=>{const [_0x55f1f3,_0x56f9f1]=_0x343053['subType']['split']('|');return _0x55f1f3==_0x33d5ef['key']&&_0x56f9f1!=_0x5c16f3;})['forEach'](_0x3aa0c7=>{this['_reduceSuggestionAttributeRange'](_0x3aa0c7,_0x33d5ef['range'],_0x15bbd1),_0x4200a7=!0x0;});}return _0x4200a7;}['_reduceSuggestionAttributeRange'](_0x4886e2,_0x3bcf9d,_0x6e400b){const _0x486e5b=_0x4886e2['getFirstRange']()['getDifference'](_0x3bcf9d);0x0!==_0x486e5b['length']?0x1!==_0x486e5b['length']?this['_breakSuggestionMarker'](_0x4886e2,_0x3bcf9d['start'],_0x3bcf9d['end']):this['_setSuggestionRange'](_0x4886e2,_0x486e5b[0x0]):_0x6e400b['removeMarker'](_0x4886e2['getFirstMarker']());}constructor(_0x21ff2f){function _0x18c3f9(_0x50163c){return _0x50163c['map'](_0x134861=>String['fromCharCode'](_0x134861))['join']('');}super(_0x21ff2f),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x8054a0,_0x48df81,_0x303737,_0x23565f)=>{this['_model']['change'](()=>{for(const _0x301f17 of[..._0x23565f,..._0x303737])this['_model']['markers']['has'](_0x301f17)&&_0x21ff2f['editing']['reconvertMarker'](_0x301f17);});}),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']=_0x21ff2f['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(),_0x21ff2f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21ff2f['config']['get']('trackChanges.trackFormatChanges'),_0x21ff2f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21ff2f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x21ff2f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x18c3f9([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x18c3f9([0x34,0x30,0x34,0x38,0x31,0x30,0x30,0x36]);}}class xt{['buildSuggestion'](_0x1abad1,_0x1ec963,_0x1d5c0b,_0x4fb479,_0x3a6d70,_0x59b206){return new u(this['_model'],{'type':_0x1abad1,'subType':_0x1ec963,'id':_0x1d5c0b,'author':_0x4fb479,'creator':_0x4fb479,'attributes':_0x3a6d70,'onAttributesChange':_0x59b206,'onAccept':(..._0x142d9e)=>this['getSuggestionCallback'](_0x1abad1,_0x1ec963,'accept')(..._0x142d9e),'onDiscard':(..._0xa82ea7)=>this['getSuggestionCallback'](_0x1abad1,_0x1ec963,'discard')(..._0xa82ea7)});}['registerCustomCallback'](_0x3f5dc7,_0x1c8159,_0x23b9b3,_0x1f5920){const _0x48c776=_0x3f5dc7+':'+_0x1c8159+':'+_0x23b9b3;this['_customCallbacks']['set'](_0x48c776,_0x1f5920);}['getSuggestionCallback'](_0x27d5b0,_0x432752,_0x5fa5ac){const _0x4696a8=_0x27d5b0+':'+_0x432752+':'+_0x5fa5ac;return this['_customCallbacks']['get'](_0x4696a8)||this['_defaultCallbacks']['get'](_0x27d5b0+':'+_0x5fa5ac);}['_registerDefaultCallbacks'](){const _0x300931=()=>!0x1,_0x53f945=_0x225fc0=>{_0x225fc0['sort']((_0x140a59,_0x4a5784)=>_0x140a59['start']['isBefore'](_0x4a5784['start'])?0x1:-0x1),this['_model']['change'](_0x1436d9=>{for(const _0x5cbeba of _0x225fc0){let _0x3cf875;_0x3cf875=_0x5cbeba['end']['isAtEnd']&&_0x5cbeba['end']['parent']==_0x5cbeba['start']['nodeAfter']?_0x1436d9['createSelection'](_0x5cbeba['start']['nodeAfter'],'on'):_0x1436d9['createSelection'](_0x5cbeba),this['_model']['deleteContent'](_0x3cf875,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x26653f=(_0x21eb31,_0x263825)=>{_0x263825&&this['_model']['change'](_0x19ede4=>{const {commandName:_0x1a19ae,commandParams:_0x1c312d=[]}=_0x263825,_0x2105c2=_0x21eb31['map'](_0x28a981=>(Tt(_0x28a981)&&(_0x28a981=this['_model']['createRange'](_0x28a981['end'])),_0x28a981))['filter'](_0x1c9803=>'$graveyard'!==_0x1c9803['root']['rootName']);if(_0x2105c2['length']<0x1)return;const _0x19489a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1ae0ec=>_0x2819a3['fromRange'](_0x1ae0ec));_0x19ede4['setSelection'](_0x2105c2);for(const _0x3cd16e of this['_editor']['commands']['commands']())_0x3cd16e['refresh']();_0x1c312d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a19ae,..._0x1c312d);const _0x1261df=_0x19489a['filter'](_0x2342f0=>'$graveyard'!=_0x2342f0['root']['rootName']);_0x1261df['length']>0x0&&_0x19ede4['setSelection'](_0x1261df);for(const _0xe0008b of _0x19489a)_0xe0008b['detach']();});},_0x419ca5=(_0x480689,_0x400172)=>0x1==_0x480689['length']&&0x1==_0x400172['length']&&_0x480689[0x0]['end']['isEqual'](_0x400172[0x0]['start']),_0x3d5e87=(_0x4025f2,_0x856bbb,_0x97be9c,_0x19739a)=>Gt(_0x4025f2,_0x856bbb,_0x97be9c,_0x19739a,this['_model'])?[_0x4025f2,_0x856bbb]:Gt(_0x856bbb,_0x4025f2,_0x19739a,_0x97be9c,this['_model'])?[_0x856bbb,_0x4025f2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x300931),this['_defaultCallbacks']['set']('insertion:discard',_0x53f945),this['_defaultCallbacks']['set']('insertion:join',_0x419ca5),this['_defaultCallbacks']['set']('insertion:chain',_0x3d5e87),this['_defaultCallbacks']['set']('deletion:accept',_0x53f945),this['_defaultCallbacks']['set']('deletion:discard',_0x300931),this['_defaultCallbacks']['set']('deletion:join',_0x419ca5),this['_defaultCallbacks']['set']('deletion:chain',_0x3d5e87),this['_defaultCallbacks']['set']('formatInline:accept',_0x26653f),this['_defaultCallbacks']['set']('formatInline:discard',_0x300931),this['_defaultCallbacks']['set']('formatInline:join',_0x419ca5),this['_defaultCallbacks']['set']('formatInline:chain',_0x300931),this['_defaultCallbacks']['set']('formatBlock:accept',_0x26653f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x300931),this['_defaultCallbacks']['set']('formatBlock:join',_0x419ca5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x300931),this['_defaultCallbacks']['set']('attribute:accept',_0x300931),this['_defaultCallbacks']['set']('attribute:discard',(_0x5f34b5,_0x3a4c83)=>{if(!_0x3a4c83)return;const _0x16eae7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x50faad=>{if(_0x3a4c83['key']==m)for(const _0x2852c9 of _0x5f34b5){const _0x4ba836=_0x2852c9['start']['nodeAfter'],_0x3d94f3=_0x3a4c83['oldValue'];_0x50faad['rename'](_0x4ba836,_0x3d94f3);}else{if(_0x16eae7['_isBlockAttribute'](_0x3a4c83['key'])){for(const _0x44aa5d of _0x5f34b5)void 0x0!==_0x3a4c83['oldValue']?_0x50faad['setAttribute'](_0x3a4c83['key'],_0x3a4c83['oldValue'],_0x44aa5d['start']['nodeAfter']):_0x50faad['removeAttribute'](_0x3a4c83['key'],_0x44aa5d['start']['nodeAfter']);}else{for(const _0x532583 of _0x5f34b5)_0x3a4c83['oldValue']?_0x50faad['setAttribute'](_0x3a4c83['key'],_0x3a4c83['oldValue'],_0x532583):_0x50faad['removeAttribute'](_0x3a4c83['key'],_0x532583);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x419ca5);}constructor(_0x58b3f6){this['_editor']=_0x58b3f6,this['_model']=_0x58b3f6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x19c791,_0x2c1555,_0x3c8d8c){for(const _0x18b086 of _0x2c1555['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x18b086['root']==_0x18b086)return!0x1;if(!_0x3c8d8c['containsItem'](_0x18b086))return!0x1;if(_0x19c791['isObject'](_0x18b086)||_0x19c791['isLimit'](_0x18b086))return!0x0;}return!0x1;}function Tt(_0xa48a21){return _0xa48a21['end']['parent']==_0xa48a21['start']['nodeAfter']&&_0xa48a21['end']['isAtStart'];}function Et(_0x3e476b,_0x2c8ac5,_0x3fe926,_0x2e6b3a){const _0x438afb=_0x15ae31=>!_0x15ae31['item']['is']('$textProxy')&&!_0x2e6b3a['isObject'](_0x15ae31['item']),_0x1424bb=_0x3e476b['start']['getLastMatchingPosition'](_0x438afb),_0x59b296=_0x3e476b['end']['getLastMatchingPosition'](_0x438afb,{'direction':'backward'});return(!_0x3e476b['start']['isEqual'](_0x1424bb)||!_0x3e476b['end']['isEqual'](_0x59b296))&&(_0x1424bb['isBefore'](_0x59b296)?_0x3fe926['updateMarker'](_0x2c8ac5,{'range':_0x3fe926['createRange'](_0x1424bb,_0x59b296)}):_0x3fe926['removeMarker'](_0x2c8ac5),!0x0);}function Vt(_0x12676e){return _0x40f9c5(_0x12676e);}function Ut(_0x3865a5){const _0x5e6792=_0x3865a5['start']['nodeAfter'];return _0x5e6792&&_0x5e6792['is']('element');}function Ot(_0x500fbf,_0x36ae4e){return null==_0x500fbf['end']['nodeBefore']&&_0x500fbf['end']['parent']==_0x500fbf['start']['nodeAfter']?Ft(_0x500fbf['start']['nodeAfter'],_0x36ae4e):_0x500fbf;}function Ft(_0x129afa,_0xb7a857){const _0x40776e=_0xb7a857['schema']['isObject'](_0x129afa)||_0xb7a857['schema']['isSelectable'](_0x129afa);return _0xb7a857['createRange'](_0xb7a857['createPositionAt'](_0x129afa,'before'),_0x40776e?_0xb7a857['createPositionAfter'](_0x129afa):_0xb7a857['createPositionAt'](_0x129afa,'end'));}function Gt(_0x3158bc,_0x21dd2c,_0x363400,_0x55b2e2,_0x2e7797){if(!Pt(_0x3158bc,_0x21dd2c))return!0x1;if(_0x363400['end']['isEqual'](_0x55b2e2['start']))return!0x0;if(_0x3158bc['type']!=_0x21dd2c['type'])return!0x1;if(!_0x363400['end']['isTouching'](_0x55b2e2['start']))return!0x1;const _0xfe9d1d=_0x2e7797['createRange'](_0x363400['end'],_0x55b2e2['start'])['getWalker']();for(const _0x53a103 of _0xfe9d1d)if(['elementStart','elementEnd']['includes'](_0x53a103['type'])&&_0x2e7797['schema']['isLimit'](_0x53a103['item']))return!0x1;return!0x0;}function Pt(_0x28357b,_0x4940ab,_0x2af550=[]){return!(!_0x28357b['_isDataLoaded']||!_0x4940ab['_isDataLoaded'])&&_0x2da674(Bt(_0x28357b['attributes'],_0x2af550),Bt(_0x4940ab['attributes'],_0x2af550));}function Lt(_0x42a09f,_0x3aa9b8){const _0x543462=Ht(_0x42a09f['attributes']),_0x30b371=Ht(_0x3aa9b8);if(!_0x42a09f['_isDataLoaded'])return!0x1;for(const _0x20f35e of Object['keys'](_0x30b371))if(!_0x2da674(_0x543462[_0x20f35e],_0x30b371[_0x20f35e]))return!0x1;return!0x0;}function Ht(_0x25d208){const _0x27c090=Object['assign']({},_0x25d208);return delete _0x27c090['skipNestingCheck'],delete _0x27c090['tablePasteChainId'],_0x27c090;}class oe extends _0x5279e5(){['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 _0x3ca021=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3ca021);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x463b95,_0x903cd4,_0x496e3e,_0x264b55){super(),this['model']=_0x903cd4,this['view']=_0x496e3e,this['commentThreadController']=_0x264b55,this['_editor']=_0x463b95,this['_acceptCommand']=_0x463b95['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x463b95['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x46ba79,_0x142161)=>_0x46ba79||_0x142161),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1bc330=>_0x1bc330&&this['_editor']['model']['canEditAt'](_0x903cd4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x28e3d9=>_0x28e3d9&&this['_editor']['model']['canEditAt'](_0x903cd4['getRanges']())),this['_pendingAction']=null,_0x496e3e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x496e3e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x496e3e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x496e3e,'change:isDirty',()=>{_0x496e3e['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x2d0858{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3d4d6e}=this['_config'];this['commentsListView']=new _0x3d4d6e(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',_0x29bc70=>_0x29bc70+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x224814,_0x3fa3db)=>_0x224814||!!_0x3fa3db);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3dc05d}=this['_config'],_0x7818e6=new _0x3dc05d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3ec9f8=_0x7818e6['commentInputView'];return _0x7818e6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3ec9f8,'value',(_0x5593fa,_0x4096ec,_0x3cbde1)=>!!_0x3cbde1||_0x5593fa&&!_0x4096ec),_0x3ec9f8['on']('submit',(_0x26723a,_0x10cdb0)=>{this['fire']('addComment',_0x10cdb0),_0x3ec9f8['editor']['setData']('');}),_0x3ec9f8['on']('cancel',()=>this['focus']()),_0x3ec9f8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7818e6;}constructor(_0x195bd3,_0x40eeb4,_0x1175d9,_0x5a140e){super(_0x195bd3),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x40eeb4['authoredAt']),this['bind']('authoredAt')['to'](_0x40eeb4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x40eeb4,this['_localUser']=_0x1175d9,this['_config']=_0x5a140e,_0x5a140e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x13f823=this['bindTemplate'],_0x1ceaa9=[{'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':_0x13f823['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x13f823['to']('authoredAt',_0x257392=>this['_config']['formatDateTime'](_0x257392))}]}]},{'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']&&_0x1ceaa9['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x23bcb7={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x13f823['if']('isActive','ck-suggestion-wrapper--active'),_0x13f823['to']('type',_0x4f8ce7=>'ck-suggestion-'+_0x4f8ce7),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':_0x1ceaa9}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x23bcb7['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)),_0x23bcb7;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xe57525,_0x4daec3,_0x3eb948)=>{this['_descriptionElement']['innerHTML']=_0x3eb948;});}['_createButton'](_0x4aadff,_0x531a7d,_0x2333a7,_0x53156a,_0x5b01a2){const _0x179048=new _0x26344e(this['locale']);return _0x179048['set']({'label':_0x4aadff,'icon':_0x531a7d,'tooltip':!0x0,'tooltipPosition':_0x5b01a2}),_0x179048['extendTemplate']({'attributes':{'class':_0x2333a7}}),_0x179048['on']('execute',()=>{this['fire'](_0x53156a,this['_model']['id']);}),_0x179048;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}constructor(_0xf471c2,_0x109b4c,_0x58c36f,_0x117509){super(_0xf471c2,_0x109b4c,_0x58c36f,_0x117509),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x171ffb=>_0x171ffb&&_0x171ffb[0x0]?_0x171ffb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2a1173,_0x466a6d)=>{let _0xf41162='';for(const _0x284c2d of _0x2a1173)_0xf41162+='<p>'+ds(_0x284c2d['content'],_0x284c2d['color'])+'</p>';return _0x466a6d?_0xf41162:_0x4706ba(_0xf41162,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0xf471c2,'Accept\x20suggestion'),_0x1ce30b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0xf471c2,'Discard\x20suggestion'),_0x1ce30b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x236e25(_0xf471c2,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x321bbb,_0x43c3e6){let _0x52da0f='';return _0x52da0f+=_0x321bbb['split']('*')['map']((_0xfacfe4,_0x4dd4ec)=>_0x4dd4ec%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xfacfe4)+'</span>':us(_0xfacfe4))['join'](''),_0x43c3e6&&(_0x52da0f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x43c3e6['value']+'\x22\x20title=\x22'+_0x43c3e6['title']+'\x22></span>'),_0x52da0f;}function us(_0x98abdd){const _0xa95326=document['createElement']('span');return _0xa95326['innerText']=_0x98abdd,_0xa95326['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 _0x61eb43{static get['requires'](){return[p,_0x281dca,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x2873ba,_0x188eeb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x40ed66,_0x5d7d26]of this['_handleControllerBuffer']){const _0x31274a=this['_suggestionToController']['has'](_0x40ed66);_0x31274a||_0x5d7d26?_0x31274a&&_0x5d7d26&&this['_destroyController'](_0x40ed66):this['_initializeController'](_0x40ed66);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2873ba,_0x188eeb);}['init'](){const _0x58b49f=this['editor'],_0x4e477b=_0x58b49f['plugins']['get']('TrackChangesEditing'),_0xa13116=_0x58b49f['plugins']['get']('Annotations'),_0x4b7c69=_0x58b49f['plugins']['get']('EditorAnnotations'),_0xfe507a=_0x58b49f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4b7c69['addSourceCollector'](()=>{const _0x5791f7=[];for(const [_0x3ce29f,_0x34095e]of Array['from'](this['_suggestionToController'])){const _0x6f3125=_0x3ce29f['getAllAdjacentSuggestions'](),_0x274612=[];for(const _0x48858f of _0x6f3125){if(!_0x48858f['isInContent'])continue;if(_0x48858f['isMultiRange']){_0x274612['push'](..._0x48858f['getRanges']());continue;}const _0x46d78c=_0x48858f['getFirstRange']();if(_0x274612['length']>0x0){const _0x3b09e1=_0x274612[0x0]['getJoined'](_0x46d78c);if(_0x3b09e1){_0x274612[0x0]=_0x3b09e1;continue;}}_0x274612['push'](_0x46d78c);}_0x5791f7['push']([_0x34095e['view'],_0x274612]);}return _0x5791f7;}),this['listenTo'](_0x4e477b,'suggestionLoaded',(_0x76f7d8,_0x1f20d5)=>{this['listenTo'](_0x1f20d5,'change:previous',(_0x3e80ee,_0x6c6de5,_0x1e81a0,_0x49a4e8)=>{_0x1f20d5['isInContent']&&(null==_0x1e81a0?(this['_updateController'](_0x49a4e8['head']),this['_handleSuggestionControllerDelayed'](_0x1f20d5,!0x1)):(this['_updateController'](_0x1e81a0['head']),null==_0x49a4e8&&this['_handleSuggestionControllerDelayed'](_0x1f20d5,!0x0)));}),null!==_0x1f20d5['previous']?this['_updateController'](_0x1f20d5['head']):this['_handleSuggestionControllerDelayed'](_0x1f20d5,!0x1);}),this['listenTo'](_0x4e477b,'suggestionUnloaded',(_0x1af79f,_0x197a22,_0x315be5)=>{this['stopListening'](_0x197a22,'change:previous'),this['_handleControllerBuffer']['delete'](_0x197a22),this['_suggestionToController']['has'](_0x197a22)&&this['_destroyController'](_0x197a22),_0x315be5&&this['_updateController'](_0x315be5['head']);}),this['listenTo'](_0x4e477b,'suggestionChanged',(_0x29a2bd,_0x7e1883)=>{this['_updateController'](_0x7e1883);}),this['listenTo'](_0xa13116,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xfe507a,'addComment',(_0x2292bb,{threadId:_0x587303,isFromAdapter:_0x2d3125})=>{if(_0x2d3125||!_0x4e477b['hasSuggestion'](_0x587303))return;const _0x39de13=_0x4e477b['getSuggestion'](_0x587303);this['_suggestionToController']['get'](_0x39de13)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x36b3b7=this['editor']['plugins']['get']('Annotations'),_0x51419e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x121cb5=Array['from'](_0x36b3b7['activeAnnotations'],_0x47ca92=>_0x47ca92['innerView'])['filter'](_0x21443e=>this['_viewToController']['has'](_0x21443e)),_0x308bf7=[];for(const _0x2f4b17 of _0x121cb5){const _0x1c7138=this['_viewToController']['get'](_0x2f4b17)['model']['getAllAdjacentSuggestions']();_0x308bf7['push'](..._0x1c7138['reduce']((_0x32e0bd,_0x2e0308)=>[..._0x32e0bd,..._0x2e0308['getMarkerNames']()],[]));}_0x51419e['activeMarkers']=_0x308bf7;}['_addUIComponentsToFactory'](){const _0x29bf65=this['editor'],_0x5eb6e5=_0x29bf65['locale'],_0x1cbceb=o(_0x5eb6e5,'Track\x20changes'),_0x3bec66=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1cbceb,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5eb6e5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5eb6e5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5eb6e5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5eb6e5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x6d5281 of _0x3bec66)if(ae(_0x6d5281)){const _0x12ed4a=_0x29bf65['commands']['get'](_0x6d5281['model']['commandName']);_0x6d5281['model']['bind']('isOn','isEnabled')['to'](_0x12ed4a,'value','isEnabled');}_0x29bf65['ui']['componentFactory']['add']('trackChanges',_0x8f646f=>this['_createToolbarButton'](_0x8f646f,_0x3bec66,_0x1cbceb)),_0x29bf65['ui']['componentFactory']['add']('menuBar:trackChanges',_0x16f53a=>this['_createMenuBarMenu'](_0x16f53a,_0x3bec66,_0x1cbceb));}['_createToolbarButton'](_0x1a32c1,_0xc400c4,_0x1ea82e){const _0x18c9d7=zt(_0x1a32c1,Zt),_0x5a462c=this['editor']['commands']['get']('trackChanges');_0x18c9d7['buttonView']['set']({'tooltip':_0x1ea82e,'label':_0x1ea82e,'icon':ie}),_0x18c9d7['buttonView']['bind']('isOn')['to'](_0x5a462c,'value'),_0x18c9d7['buttonView']['on']('execute',()=>{_0x5a462c['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x18c9d7,_0xc400c4);const _0x485ac0=[];for(const _0x5c63c8 of _0xc400c4)ae(_0x5c63c8)&&_0x485ac0['push'](this['editor']['commands']['get'](_0x5c63c8['model']['commandName']));const _0x3c173c=_0x18c9d7['buttonView'];return _0x3c173c['actionView']['unbind']('isEnabled'),_0x3c173c['arrowView']['unbind']('isEnabled'),_0x3c173c['actionView']['bind']('isEnabled')['to'](_0x5a462c,'isEnabled'),_0x3c173c['arrowView']['bind']('isEnabled')['toMany'](_0x485ac0,'isEnabled',(..._0x5df849)=>_0x5df849['some'](_0x1c4329=>_0x1c4329)),_0x18c9d7['on']('execute',_0xa7e329=>{this['editor']['execute'](_0xa7e329['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x18c9d7;}['_createMenuBarMenu'](_0x4cd49d,_0x184d0b,_0x537720){const _0x2e0b57=new Kt(_0x4cd49d),_0x58273f=this['editor']['commands']['get']('trackChanges');_0x2e0b57['buttonView']['set']({'label':_0x537720,'icon':ie});const _0x7aaee2=new Qt(_0x4cd49d);for(const _0x913bc4 of _0x184d0b){if('separator'==_0x913bc4['type']){_0x7aaee2['items']['add'](new Jt(_0x4cd49d));continue;}const _0xca3536=new Xt(_0x4cd49d,_0x2e0b57),_0x3ec43c=new Yt(_0x4cd49d),_0x49ff3d=_0x913bc4['model'];_0x3ec43c['bind'](...Object['keys'](_0x49ff3d))['to'](_0x49ff3d),_0x3ec43c['delegate']('execute')['to'](_0x2e0b57),_0x3ec43c['on']('execute',()=>{this['editor']['execute'](_0x49ff3d['commandName']),this['editor']['editing']['view']['focus']();}),_0xca3536['children']['add'](_0x3ec43c),_0x7aaee2['items']['add'](_0xca3536);}return _0x2e0b57['bind']('isEnabled')['to'](_0x58273f,'isEnabled'),_0x2e0b57['panelView']['children']['add'](_0x7aaee2),_0x2e0b57;}['_initializeController'](_0x3d79b8){const _0x29ebae=this['editor'],_0x1baa65=_0x29ebae['config'],_0xa0831b=_0x29ebae['plugins']['get']('Annotations'),_0x105e91=_0x29ebae['plugins']['get']('CommentsRepository'),_0x3604b1=_0x29ebae['plugins']['get']('EditorAnnotations'),_0x5113bb=_0x29ebae['plugins']['get'](_0x281dca)['me'],_0x1c2762=_0x1baa65['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4641bd,CommentThreadInputView:_0x271248}=_0x29ebae['plugins']['get']('CommentsUI');let _0x3430a9,_0x141724;this['_annotationViews']['has'](_0x3d79b8['id'])?(_0x141724=this['_annotationViews']['get'](_0x3d79b8['id']),_0x3430a9=_0x141724['mainView']):(_0x3430a9=new _0x1c2762(_0x29ebae['locale'],_0x3d79b8,_0x5113bb,{'disableComments':this['_disableComments'],'editorConfig':_0x1baa65['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1baa65['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1baa65['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1baa65['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x194375(_0x1baa65['get']('locale')),'CommentView':_0x1baa65['get']('comments')['CommentView'],'CommentsListView':_0x4641bd,'CommentThreadInputView':_0x271248}),_0x3430a9['acceptButton']['on']('execute',()=>{_0x29ebae['editing']['view']['focus']();}),_0x3430a9['discardButton']['on']('execute',()=>{_0x29ebae['editing']['view']['focus']();}),_0x141724=_0xa0831b['createAnnotationView'](this['editor']['locale'],_0x3430a9),_0x141724['bind']('isDirty')['to'](_0x3430a9,'isDirty'),_0x141724['bind']('length')['to'](_0x3430a9),_0x141724['bind']('type')['to'](_0x3430a9,'type',_0x2f2016=>'suggestion-'+_0x2f2016),this['_annotationViews']['set'](_0x3d79b8['id'],_0x141724));const _0x1de878=_0x105e91['createCommentThreadController'](_0x3d79b8['commentThread'],_0x3430a9),_0x21558b=new oe(_0x29ebae,_0x3d79b8,_0x3430a9,_0x1de878),_0x2a2bd0=_0x3d79b8['getAllAdjacentSuggestions']()['filter'](_0x5af2b0=>_0x5af2b0['isInContent']);_0x3430a9['descriptionParts']=_0x29ebae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2a2bd0),this['_suggestionToController']['set'](_0x3d79b8,_0x21558b),this['_viewToController']['set'](_0x3430a9,_0x21558b);const _0x3b776c=_0xa0831b['createAnnotation']({'view':_0x141724,'target':()=>{const _0x314320=[],_0x5b7ad8=_0x3d79b8['getAllAdjacentSuggestions']()['filter'](_0x100120=>_0x100120['isInContent']);for(const _0xa95456 of _0x5b7ad8)_0x314320['push'](..._0xa95456['getMarkers']());return _0x8037d8(_0x29ebae['editing'],_0x314320);},'type':()=>'suggestion-'+_0x21558b['view']['type']});_0x105e91['_bindAnnotationToEditors'](_0x3430a9,_0x3b776c),_0xa0831b['add'](_0x3b776c),_0x3604b1['registerAnnotation'](_0x3b776c);}['_destroyController'](_0x41195d){const _0x268df8=this['editor']['plugins']['get']('CommentsRepository'),_0x9dd691=this['editor']['plugins']['get']('Annotations'),_0xb2d820=this['_suggestionToController']['get'](_0x41195d),_0x116bdb=_0xb2d820['view'],_0x4f77f1=_0x9dd691['getByInnerView'](_0x116bdb);_0x268df8['_unbindEditors'](_0x116bdb),_0x4f77f1&&_0x9dd691['remove'](_0x4f77f1),this['_suggestionToController']['delete'](_0x41195d),this['_viewToController']['delete'](_0x116bdb),_0xb2d820['destroy']();}['_updateController'](_0x4763e8){if(!_0x4763e8['isInContent']||!this['_suggestionToController']['has'](_0x4763e8))return;const _0x1fba3f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59ed6e=this['_suggestionToController']['get'](_0x4763e8),_0x426ef5=_0x4763e8['getAllAdjacentSuggestions']();_0x59ed6e['view']['descriptionParts']=_0x1fba3f['descriptionFactory']['getDescriptions'](_0x426ef5);}['destroy'](){for(const _0x282305 of this['_suggestionToController']['keys']())this['_destroyController'](_0x282305);for(const _0x4a14a2 of this['_annotationViews']['values']())_0x4a14a2['mainView']['destroy']();super['destroy']();}constructor(_0x58d590){super(_0x58d590),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40cd2d=this['editor']['config'];_0x40cd2d['define']('trackChanges.SuggestionThreadView',ne),_0x40cd2d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40cd2d['get']('trackChanges.disableComments');}}function ae(_0x488e69){return'model'in _0x488e69;}class k extends _0x61eb43{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x358838){this['editor']['plugins']['get'](p)['adapter']=_0x358838;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xca440f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xca440f);}['getSuggestions']({skipNotAttached:_0x175a9f=!0x1,toJSON:_0x4fc4af=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x175a9f,'toJSON':_0x4fc4af});}['getSuggestion'](_0x37cc57){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x37cc57);}}const T=['Pagination'];class P extends _0x61eb43{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4f83b7=this['editor'];if(_0x4f83b7['config']['define']('trackChangesData.editorCreator',_0xa1d959=>{const _0x143cfe=_0x4f83b7['model']['document']['getRootNames']()['reduce']((_0x2f1ce9,_0x336541)=>(_0x2f1ce9[_0x336541]='',_0x2f1ce9),{});return _0x4f83b7['constructor']['create'](_0x143cfe,_0xa1d959);}),'function'!=typeof _0x4f83b7['config']['get']('trackChangesData')['editorCreator'])throw new _0xa5fb70('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x49c770){return N(this['editor'],!0x0,_0x49c770);}['getDataWithDiscardedSuggestions'](_0x303020){return N(this['editor'],!0x1,_0x303020);}}class D extends _0x61eb43{static get['pluginName'](){return'TrackChangesDataGetter';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}constructor(_0x2b1f21){super(_0x2b1f21),this['result']='end';}}function v(_0x4b8ac5){return void 0x0!==_0x4b8ac5['getRootsAttributes'];}async function N(_0x162b86,_0x55c88d,_0x3f68d8){const _0x375bc5=_0x103d13(_0x162b86,T);_0x375bc5['plugins']['push'](p,D),_0x375bc5['rootsAttributes']=v(_0x162b86)?_0x162b86['getRootsAttributes']():void 0x0;const _0x156c18=document['createDocumentFragment'](),_0x7a676e=_0x162b86['config']['get']('trackChangesData')['editorCreator'],_0x257b5b=await _0x7a676e(_0x375bc5,()=>function(_0x76b26d){const _0x2ca063=document['createElement']('div');return _0x76b26d['appendChild'](_0x2ca063),_0x2ca063;}(_0x156c18));!function(_0xe244f,_0x21c7fb){const _0x541389=_0xe244f['model']['document']['getRootNames']()['reduce']((_0x3658eb,_0x583ee7)=>(_0x3658eb[_0x583ee7]=_0xe244f['data']['get']({'rootName':_0x583ee7}),_0x3658eb),{}),_0x412fc2=_0xe244f['plugins']['get']('Users')['users']['map'](_0x47bd85=>({'id':_0x47bd85['id'],'name':_0x47bd85['name']})),_0x49b53f=_0xe244f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29085e=_0xe244f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x59ef7c=_0x21c7fb['plugins']['get']('Users'),_0x5f2e47=_0x21c7fb['plugins']['get']('TrackChangesEditing'),_0x944023=_0x21c7fb['plugins']['get']('CommentsRepository');for(const _0x57ff14 of _0x412fc2)_0x59ef7c['getUser'](_0x57ff14['id'])||_0x59ef7c['addUser'](_0x57ff14);_0x59ef7c['me']||_0x59ef7c['useAnonymousUser']();for(const _0x1197b6 of _0x49b53f)_0x5f2e47['addSuggestionData'](_0x1197b6);for(const _0x5f4366 of _0x29085e)_0x944023['addCommentThread'](_0x5f4366);_0x21c7fb['data']['set'](_0x541389);}(_0x162b86,_0x257b5b),_0x257b5b['execute'](_0x55c88d?'acceptAllSuggestions':'discardAllSuggestions');const _0x5c8016=v(_0x257b5b)?_0x257b5b['getFullData'](_0x3f68d8):_0x257b5b['data']['get'](_0x3f68d8);return await _0x257b5b['destroy'](),_0x5c8016;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x4d32e5,PendingActions as _0x3c234e,icons as _0x1abf50}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4926cb,ObservableMixin as _0x238325,uid as _0x51245d,insertToPriorityArray as _0x4cac34,priorities as _0x110481,logWarning as _0x75e7a3,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3b7991,View as _0xa8a3a2,ButtonView as _0x1c9e0c,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 _0x1c067c,hashObject as _0x524a26,surroundingMarkersDetector as _0x4e6831,trimHtml as _0x33fac0,UserView as _0x3f1e81,getDateTimeFormatter as _0x7fcc34,getAllMarkersDomElementsSorted as _0x2d0a4d,sanitizeEditorConfig as _0x3a99fa}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x251353,LiveRange as _0x1ed262,LivePosition as _0x326423}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x49b737,toWidget as _0x3d1709}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x42c6ce,set as _0x3a0639,isEqual as _0xdd32d6,unset as _0x386faf,omit as Bt}from'lodash-es';import{Delete as _0x509374,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x280d01,ShiftEnter as _0x52b05a}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x5dafa8 of this['editor']['commands']['commands']())_0x5dafa8['affectsData']&&!this['_enabledCommands']['has'](_0x5dafa8)&&_0x5dafa8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xbd3d01 of this['editor']['commands']['commands']())_0xbd3d01['affectsData']&&!this['_enabledCommands']['has'](_0xbd3d01)&&_0xbd3d01['clearForceDisabled']('TrackChangesCommand');}constructor(_0x9e25fc,_0x319278){super(_0x9e25fc),this['_enabledCommands']=_0x319278,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4dd217){const _0x3b2cb2=this['_suggestions']['get'](_0x4dd217);if(!_0x3b2cb2)throw new _0x4926cb('track-changes-accept-suggestion-not-found',this);const _0x3585d8=_0x3b2cb2['getRanges']();this['editor']['model']['canEditAt'](_0x3585d8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3b2cb2);}constructor(_0x34ebec,_0x27fc36){super(_0x34ebec),this['_suggestions']=_0x27fc36,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x769c62){const _0x296c0f=this['_suggestions']['get'](_0x769c62);if(!_0x296c0f)throw new _0x4926cb('track-changes-discard-suggestion-not-found',this);const _0xfe8de1=_0x296c0f['getRanges']();this['editor']['model']['canEditAt'](_0xfe8de1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x296c0f);}constructor(_0x393b05,_0x2b2607){super(_0x393b05),this['_suggestions']=_0x2b2607,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x2fa439){return _0x2fa439['sort']((_0x119c0c,_0x5b448a)=>'deletion'==_0x119c0c['type']&&'deletion'!=_0x5b448a['type']?-0x1:'deletion'!=_0x119c0c['type']&&'deletion'==_0x5b448a['type']?0x1:0x0);}function to(_0x145634,_0x573bdb){let _0x3ad298,_0x2cea0f=0x0;const _0x532684=[],_0x3579c2=_0x573bdb['schema'];for(;_0x2cea0f<_0x145634['length'];){const _0x11e068=_0x145634[_0x2cea0f],_0x302a7f=_0x145634[_0x2cea0f+0x1];_0x3ad298||(_0x3ad298=_0x573bdb['createPositionBefore'](_0x11e068)),co(_0x573bdb,_0x11e068,_0x302a7f)||(_0x532684['push'](_0x573bdb['createRange'](_0x3ad298,_0x3579c2['isObject'](_0x11e068)?_0x573bdb['createPositionAfter'](_0x11e068):_0x573bdb['createPositionAt'](_0x11e068,'end'))),_0x3ad298=null),_0x2cea0f++;}return _0x532684;}function co(_0x4bc93a,_0x304d67,_0x45c15a){if(!_0x45c15a)return!0x1;const _0x4f1cb8=_0x4bc93a['createPositionAfter'](_0x304d67),_0x324fbc=_0x4bc93a['createPositionBefore'](_0x45c15a);return _0x4f1cb8['isTouching'](_0x324fbc);}function rs(_0x5d1f92,_0x470617,_0xb23d0f){for(;_0xb23d0f['length'];){const _0x48ac71=_0xb23d0f['splice'](0x0,0x64);_0x5d1f92['change'](()=>{for(const _0x58278a of _0x48ac71)_0x58278a['isInContent']&&_0x470617['execute'](_0x58278a['id']);});}}class x extends ts{['refresh'](){const _0x10b256=Array['from'](this['_suggestions']['values']())['some'](_0x2d5979=>_0x2d5979['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x10b256;}['execute'](){const _0x1e801b=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3fa0c7 of _0x1e801b){const _0x3573b3=_0x3fa0c7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3573b3))return;}rs(this['editor']['model'],this['_command'],_0x1e801b);}constructor(_0x3c8066,_0x2e8628,_0x1ab223){super(_0x3c8066),this['_command']=_0x2e8628,this['_suggestions']=_0x1ab223,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x598b00=this['editor']['model']['document']['selection'],_0x2cf78b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1ab311,_0xa148eb){const _0x1c4e40=Array['from'](_0x1ab311['getRanges']()),_0x3105a7=new Set();for(const _0x15ae8f of _0xa148eb)if(_0x15ae8f['isInContent']){for(const _0x3e8230 of _0x1c4e40)for(const _0x4f1d46 of _0x15ae8f['getRanges']())(_0x3e8230['isIntersecting'](_0x4f1d46)||_0x1ab311['isCollapsed']&&!_0x15ae8f['isMultiRange']&&_0x15ae8f['next']&&_0x4f1d46['end']['isTouching'](_0x3e8230['start']))&&_0x3105a7['add'](_0x15ae8f);}return _0x3105a7;}(_0x598b00,_0x2cf78b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x11da46=ss(Array['from'](this['_selectedSuggestions']));for(const _0x596d66 of _0x11da46){const _0xdcaafb=_0x596d66['getRanges']();if(!this['editor']['model']['canEditAt'](_0xdcaafb))return;}rs(this['editor']['model'],this['_command'],_0x11da46);}constructor(_0x3583fb,_0x516e6e,_0x52a142){super(_0x3583fb),this['_command']=_0x516e6e,this['_suggestions']=_0x52a142,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x238325(){get['head'](){let _0x5d8e2b=this;for(;_0x5d8e2b['previous'];)_0x5d8e2b=_0x5d8e2b['previous'];return _0x5d8e2b;}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'](_0x233211){this['_markerNames']['add'](_0x233211);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x25faaf=>this['_model']['markers']['get'](_0x25faaf))['filter'](_0x4ba65d=>_0x4ba65d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x54d4d6=>{for(const _0x56c16d of this['getMarkers']())_0x54d4d6['removeMarker'](_0x56c16d);}),this['_markerNames']['clear']();}['removeMarker'](_0x1e3bee){this['_model']['change'](_0x524f48=>{_0x524f48['removeMarker'](_0x1e3bee);}),this['_markerNames']['delete'](_0x1e3bee);}['addRange'](_0x2f2434){const _0x46169b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x46169b),this['_model']['change'](_0x52b110=>{_0x52b110['addMarker'](_0x46169b,{'range':_0x2f2434,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1472b9){for(const _0x417aa0 of this['getRanges']())if(_0x417aa0['isIntersecting'](_0x1472b9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1ef1ab=>_0x1ef1ab['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x40634c,_0x4f28f5)=>[..._0x40634c,..._0x4f28f5['getItems']()],[]);}['getFirstRange'](){var _0x45a57f;return(null===(_0x45a57f=this['getFirstMarker']())||void 0x0===_0x45a57f?void 0x0:_0x45a57f['getRange']())||null;}['getContainedElement'](){const _0x37673f=this['getRanges']();if(0x1!=_0x37673f['length'])return null;const _0x5cdaa0=_0x37673f[0x0],_0x45d7d9=_0x5cdaa0['start']['nodeAfter'],_0x392347=_0x5cdaa0['end']['nodeBefore'];return _0x45d7d9 instanceof _0x251353?_0x45d7d9!=_0x392347?null:_0x45d7d9: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 _0x43cc92=[];let _0x35a76b=this['head'];for(;_0x35a76b;)_0x43cc92['push'](_0x35a76b),_0x35a76b=_0x35a76b['next'];return _0x43cc92;}['setAttribute'](_0x3af8c0,_0xcbf92b){const _0x1a5199=_0x42c6ce(this['attributes']);_0x3a0639(_0x1a5199,_0x3af8c0,_0xcbf92b),_0xdd32d6(_0x1a5199,this['attributes'])||(this['attributes']=_0x1a5199,this['_onAttributesChange'](_0x1a5199));}['removeAttribute'](_0x2b76cf){const _0xb0300=_0x42c6ce(this['attributes']);_0x386faf(_0xb0300,_0x2b76cf),_0xdd32d6(_0xb0300,this['attributes'])||(this['attributes']=_0xb0300,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 _0x51245d()['substr'](0x1,0x5);}constructor(_0x55ee6b,_0x6c2c5e){super(),this['_isDataLoaded']=!0x1,this['id']=_0x6c2c5e['id'],this['type']=_0x6c2c5e['type'],this['subType']=_0x6c2c5e['subType']||null,this['author']=_0x6c2c5e['author'],this['creator']=_0x6c2c5e['creator']||_0x6c2c5e['author'],this['isExternal']=Boolean(_0x6c2c5e['attributes']&&_0x6c2c5e['attributes']['@external']),this['data']=null,this['_model']=_0x55ee6b,this['_onAccept']=_0x6c2c5e['onAccept'],this['_onDiscard']=_0x6c2c5e['onDiscard'],this['_onAttributesChange']=_0x6c2c5e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6c2c5e['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x101985,_0x4e7db9,_0x44eca8){const t=_0x101985['t'];switch(_0x4e7db9){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',_0x44eca8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44eca8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44eca8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44eca8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44eca8);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',_0x44eca8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44eca8);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',_0x44eca8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44eca8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44eca8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44eca8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44eca8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44eca8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44eca8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44eca8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44eca8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44eca8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44eca8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44eca8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44eca8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44eca8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44eca8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44eca8);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'},_0x44eca8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44eca8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44eca8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44eca8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44eca8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44eca8);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'},_0x44eca8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44eca8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44eca8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44eca8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44eca8);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'},_0x44eca8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44eca8);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'},_0x44eca8);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'},_0x44eca8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44eca8);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'},_0x44eca8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44eca8);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'},_0x44eca8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44eca8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44eca8);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'},_0x44eca8);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'},_0x44eca8);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 _0x4e7db9;}}class f{['getDescriptions'](_0x2fea09){const _0x2bd90f=[],_0x5e9e48=new Set(),_0x39f5e8=new Set();for(let _0x510ae5=0x0;_0x510ae5<_0x2fea09['length'];_0x510ae5++){const _0x431df7=_0x2fea09[_0x510ae5];if(!_0x431df7['isInContent'])continue;const _0x174b0d=this['_handleCustomCallbackDescription'](_0x431df7);if(_0x174b0d){if(null!=_0x431df7['subType']){if(_0x5e9e48['has'](_0x431df7['subType']))continue;_0x5e9e48['add'](_0x431df7['subType']);}_0x2bd90f['push'](_0x174b0d);}else{if('attribute'!=_0x431df7['type'])'insertion'!=_0x431df7['type']&&'deletion'!=_0x431df7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2bd90f,_0x431df7,_0x2fea09[_0x510ae5+0x1]);else{const _0x1dd048=_0x431df7['data']['key'];if(_0x39f5e8['has'](_0x1dd048))continue;_0x39f5e8['add'](_0x431df7['data']['key']),_0x1dd048==m?this['_handleRenameSuggestionDescription'](_0x2bd90f,_0x431df7):this['_handleAttributeSuggestionDescription'](_0x2bd90f,_0x431df7);}}}return this['_resolveDescriptionItems'](_0x2bd90f);}['registerDescriptionCallback'](_0x1b3561){this['_customCallbacks']['push'](_0x1b3561);}['registerElementLabel'](_0x3e319a,_0x2d847f,_0xf1f098=_0x110481['normal']){'function'==typeof _0x3e319a?_0x4cac34(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3e319a,'label':_0x2d847f,'priority':_0xf1f098}):this['_itemLabels']['set'](_0x3e319a,_0x2d847f);}['registerAttributeLabel'](_0x1f5dc3,_0xc833d0){this['_attributeLabels']['set'](_0x1f5dc3,_0xc833d0);}['getItemLabel'](_0x595e50,_0x421e64=0x1){let _0x4fc410;for(const _0x276fde of this['_itemLabelsCallbacks'])if(_0x276fde['matchingCallback'](_0x595e50)){_0x4fc410=_0x276fde['label'];break;}return _0x4fc410||(_0x4fc410=this['_itemLabels']['get'](_0x595e50['name'])),_0x4fc410?_0x4fc410(_0x421e64):0x1!==_0x421e64?_0x421e64+'\x20'+_0x595e50['name']+'s':''+_0x595e50['name'];}['_addDescriptionItems'](_0xf17f2,_0x291fbc){const _0x166b94=_0x291fbc['getFirstRange']()['getWalker'](),_0x4e9345='insertion'==_0x291fbc['type']?'add':'remove';for(const _0x58e999 of _0x166b94){const _0x1cf20e=_0x58e999['item'],_0x1f6586=_0xf17f2[_0xf17f2['length']-0x1];if(_0x1cf20e['is']('$textProxy'))_0x1f6586&&_0x1f6586['type']['indexOf']('Container')>-0x1&&_0xf17f2['pop'](),_0x1f6586&&'text'==_0x1f6586['type']?_0x1f6586[_0x4e9345]+=_0x1cf20e['data']:_0xf17f2['push']({'type':'text','add':'add'==_0x4e9345?_0x1cf20e['data']:'','remove':'remove'==_0x4e9345?_0x1cf20e['data']:''});else{if(this['_schema']['isObject'](_0x1cf20e)){const _0x2376ea=_0x1cf20e;if(_0x1f6586&&_0x1f6586['type']['indexOf']('Container')>-0x1&&_0xf17f2['pop'](),'elementEnd'==_0x58e999['type'])continue;_0x1f6586&&_0x1f6586['type']==_0x4e9345+'Object'&&_0x1f6586['element']['name']==_0x2376ea['name']?_0x1f6586['quantity']++:_0xf17f2['push']({'type':_0x4e9345+'Object','element':_0x2376ea,'quantity':0x1}),_0x166b94['skip'](_0xbe0e8d=>!('elementEnd'==_0xbe0e8d['type']&&_0xbe0e8d['item']==_0x1cf20e));}else{if(this['_schema']['checkChild'](_0x1cf20e,'$text')||_0x1cf20e['is']('element','softBreak')){const _0x7b434b=_0x1cf20e;if('add'==_0x4e9345&&'elementStart'==_0x58e999['type']||'remove'==_0x4e9345&&'elementEnd'==_0x58e999['type'])continue;if(_0x1f6586&&-0x1==_0x1f6586['type']['indexOf']('Container')){'text'==_0x1f6586['type']&&(_0x1f6586[_0x4e9345]+='\x0a');continue;}let _0x2e513a;if(_0x2e513a='add'==_0x4e9345?_0x7b434b['nextSibling']&&!this['_schema']['isObject'](_0x7b434b['nextSibling'])?_0x7b434b['nextSibling']:null:_0x7b434b['previousSibling']&&!this['_schema']['isObject'](_0x7b434b['previousSibling'])?_0x7b434b['previousSibling']:null,_0x7b434b['isEmpty']||_0x2e513a&&_0x2e513a['isEmpty']){const _0x510ed6=_0x2e513a&&_0x2e513a['isEmpty']?_0x2e513a:_0x7b434b;_0x1f6586&&_0x1f6586['type']==_0x4e9345+'EmptyContainer'&&_0x1f6586['element']['name']==_0x510ed6['name']?_0x1f6586['quantity']++:_0xf17f2['push']({'type':_0x4e9345+'EmptyContainer','element':_0x510ed6,'quantity':0x1});}else _0xf17f2['push']({'type':_0x4e9345+'Container','element':_0x7b434b});}}}}}['_resolveDescriptionItems'](_0x6d937c){const _0x489ae1=this['_locale'],_0x4437be=[],_0xe797b=[],_0x5c3f10=[];for(const _0x2452d4 of _0x6d937c)switch(_0x2452d4['type']){case'text':if(_0x2452d4['add']=_0x2452d4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2452d4['remove']=_0x2452d4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2452d4['add']&&''!=_0x2452d4['remove']){_0x4437be['push']({'type':'replace','content':o(_0x489ae1,'REPLACE_TEXT',['\x22'+_0x2452d4['remove']+'\x22','\x22'+_0x2452d4['add']+'\x22'])});continue;}if(null!=_0x2452d4['add']['match'](/^ +$/)){_0x4437be['push']({'type':'insertion','content':o(_0x489ae1,'*Insert:*\x20%0',o(_0x489ae1,'ELEMENT_SPACE',_0x2452d4['add']['length']))});continue;}if(null!=_0x2452d4['remove']['match'](/^ +$/)){_0x4437be['push']({'type':'deletion','content':o(_0x489ae1,'*Remove:*\x20%0',o(_0x489ae1,'ELEMENT_SPACE',_0x2452d4['remove']['length']))});continue;}if(''!=_0x2452d4['add']){_0x4437be['push']({'type':'insertion','content':o(_0x489ae1,'*Insert:*\x20%0','\x22'+_0x2452d4['add']+'\x22')});continue;}_0x4437be['push']({'type':'deletion','content':o(_0x489ae1,'*Remove:*\x20%0','\x22'+_0x2452d4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4437be['push']({'type':'insertion','content':o(_0x489ae1,'*Insert:*\x20%0',this['getItemLabel'](_0x2452d4['element'],_0x2452d4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4437be['push']({'type':'deletion','content':o(_0x489ae1,'*Remove:*\x20%0',this['getItemLabel'](_0x2452d4['element'],_0x2452d4['quantity']))});continue;case'addContainer':_0x4437be['push']({'type':'insertion','content':o(_0x489ae1,'*Split:*\x20%0',this['getItemLabel'](_0x2452d4['element'],_0x2452d4['quantity']))});continue;case'removeContainer':_0x4437be['push']({'type':'deletion','content':o(_0x489ae1,'*Merge:*\x20%0',this['getItemLabel'](_0x2452d4['element'],_0x2452d4['quantity']))});continue;case'addFormat':_0xe797b['push'](_0x2452d4['key']);continue;case'removeFormat':_0x5c3f10['push'](_0x2452d4['key']);continue;default:_0x4437be['push'](_0x2452d4);}if(_0xe797b['length']){const _0x19929a=_0xe797b['map'](_0x2364a2=>this['_attributeLabels']['has'](_0x2364a2)?this['_attributeLabels']['get'](_0x2364a2):_0x2364a2)['join'](',\x20');_0x4437be['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x19929a)});}if(_0x5c3f10['length']){const _0x35c3c2=_0x5c3f10['map'](_0x2676a1=>this['_attributeLabels']['has'](_0x2676a1)?this['_attributeLabels']['get'](_0x2676a1):_0x2676a1)['join'](',\x20');_0x4437be['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x35c3c2)});}return _0x4437be;}['_handleCustomCallbackDescription'](_0x384443){for(const _0x30bac7 of this['_customCallbacks']){const _0xe7da5f=_0x30bac7(_0x384443);if(_0xe7da5f&&'type'in _0xe7da5f)return _0xe7da5f;}}['_handleAttributeSuggestionDescription'](_0x1fdb6f,_0x239b1c){const _0x113ed5=_0x239b1c['data'],_0x59593f=void 0x0===_0x113ed5['newValue']?'removeFormat':'addFormat';_0x1fdb6f['push']({'type':_0x59593f,'key':_0x113ed5['key']});}['_handleRenameSuggestionDescription'](_0x236124,_0xab12a0){_0x236124['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xab12a0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2a5215,_0x2e333c,_0x55ceed){if(this['_addDescriptionItems'](_0x2a5215,_0x2e333c),_0x55ceed&&_0x55ceed['getFirstRange']()&&!_0x2e333c['getFirstRange']()['end']['isEqual'](_0x55ceed['getFirstRange']()['start'])){const _0x47c6e7=_0x2a5215[_0x2a5215['length']-0x1],_0x4c8962='insertion'==_0x2e333c['type']?'add':'remove';_0x47c6e7&&'text'==_0x47c6e7['type']&&(_0x47c6e7[_0x4c8962]+='\x0a');}}constructor(_0x262cd4,_0x2a5993){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x262cd4,this['_locale']=_0x2a5993;}}class E extends _0x4d32e5{['afterInit'](){const _0x11b65e=this['editor'],_0x47eb65=_0x11b65e['plugins']['get']('TrackChangesEditing');_0x11b65e['commands']['get']('showAIAssistant')&&_0x47eb65['enableCommand']('showAIAssistant');}}class V extends _0x4d32e5{['afterInit'](){const _0x57244d=this['editor'],_0x46a797=_0x57244d['locale'];if(!_0x57244d['plugins']['has']('AlignmentEditing'))return;const _0x3d37a4=_0x57244d['plugins']['get']('TrackChangesEditing');_0x3d37a4['enableDefaultAttributesIntegration']('alignment'),_0x3d37a4['registerBlockAttribute']('alignment'),_0x3d37a4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x46a797,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56cea4=this['editor'],_0x12bcdc=_0x56cea4['locale'];_0x56cea4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e7b8e=>{if('formatBlock'!=_0x5e7b8e['type'])return;const {data:_0x5d1f21}=_0x5e7b8e;if(_0x5d1f21&&'alignment'==_0x5d1f21['commandName']){const _0x1f30e8=_0x5d1f21['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x12bcdc,'*Format:*\x20%0',function(_0xb991e2){switch(_0xb991e2){case'left':return o(_0x12bcdc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x12bcdc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x12bcdc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x12bcdc,'FORMAT_JUSTIFY_TEXT');}}(_0x1f30e8))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4d32e5{['afterInit'](){const _0x5333ae=this['editor'],_0x45a886=_0x5333ae['plugins']['get']('TrackChangesEditing'),_0x297489=_0x5333ae['locale'];for(const _0xfa4083 of ti){if(!_0x5333ae['plugins']['has'](_0xfa4083))continue;const _0x4506ec=_0xfa4083['slice'](0x0,-0x7)['toLowerCase'](),_0x125d0a='FORMAT_'+_0x4506ec['toUpperCase']();_0x45a886['enableDefaultAttributesIntegration'](_0x4506ec),_0x45a886['registerInlineAttribute'](_0x4506ec),_0x45a886['descriptionFactory']['registerAttributeLabel'](_0x4506ec,o(_0x297489,_0x125d0a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4400db=this['editor'],_0x13b491=_0x4400db['locale'],_0x5cc993=_0x4400db['plugins']['get']('TrackChangesEditing');function _0x5b414e(_0x3e7545,_0x491f0d){_0x5cc993['descriptionFactory']['registerDescriptionCallback'](_0x5aac22=>{if('formatInline'!=_0x5aac22['type'])return;const {data:_0x19df1c}=_0x5aac22;return _0x19df1c&&_0x19df1c['commandName']===_0x3e7545?_0x19df1c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13b491,'*Format:*\x20%0',_0x491f0d)}:{'type':'format','content':o(_0x13b491,'*Remove\x20format:*\x20%0',_0x491f0d)}:void 0x0;});}_0x5b414e('bold',o(_0x13b491,'FORMAT_BOLD')),_0x5b414e('italic',o(_0x13b491,'FORMAT_ITALIC')),_0x5b414e('underline',o(_0x13b491,'FORMAT_UNDERLINE')),_0x5b414e('code',o(_0x13b491,'FORMAT_CODE')),_0x5b414e('strikethrough',o(_0x13b491,'FORMAT_STRIKETHROUGH')),_0x5b414e('subscript',o(_0x13b491,'FORMAT_SUBSCRIPT')),_0x5b414e('superscript',o(_0x13b491,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4d32e5{['afterInit'](){const _0x59c782=this['editor'],_0x518287=_0x59c782['locale'];if(!_0x59c782['plugins']['has']('BlockQuoteEditing'))return;const _0x4804e0=_0x59c782['plugins']['get']('TrackChangesEditing'),_0x4e891a=this['editor']['commands']['get']('blockQuote');_0x4804e0['enableCommand']('blockQuote',(_0x39d82b,_0x3302fa={})=>{const _0x15b3cf=this['editor']['model']['document']['selection'],_0x340a17=_0x3302fa&&void 0x0!==_0x3302fa['forceValue']?_0x3302fa['forceValue']:!_0x4e891a['value'];let _0x32e57f=[];if(_0x340a17){const _0x5e39ee=Array['from'](_0x15b3cf['getSelectedBlocks']())['filter'](_0x49b691=>oo(_0x49b691)||function(_0x2d9684,_0x15d139){const _0x1719d7=_0x15d139['checkChild'](_0x2d9684['parent'],'blockQuote'),_0x4e8d86=_0x15d139['checkChild'](['$root','blockQuote'],_0x2d9684);return _0x1719d7&&_0x4e8d86;}(_0x49b691,this['editor']['model']['schema']));_0x32e57f=to(_0x5e39ee,_0x59c782['model']);}else{const _0x1113c9=Array['from'](_0x15b3cf['getSelectedBlocks']())['filter'](_0x36d6b4=>oo(_0x36d6b4));_0x32e57f=to(_0x1113c9,_0x59c782['model']);}_0x59c782['model']['change'](()=>{for(const _0xf13f27 of _0x32e57f)_0x4804e0['markBlockFormat'](_0xf13f27,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x340a17}]});});}),_0x4804e0['descriptionFactory']['registerDescriptionCallback'](_0x492f2d=>{const {data:_0x7b7afe}=_0x492f2d;if(_0x7b7afe&&'blockQuote'==_0x7b7afe['commandName']){const _0x60626d=o(_0x518287,'ELEMENT_BLOCK_QUOTE');return _0x7b7afe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x518287,'*Set\x20format:*\x20%0',_0x60626d)}:{'type':'format','content':o(_0x518287,'*Remove\x20format:*\x20%0',_0x60626d)};}});}}function oo(_0x4890d0){return'blockQuote'==_0x4890d0['parent']['name'];}class F extends _0x4d32e5{['afterInit'](){const _0x425f4d=this['editor'];_0x425f4d['plugins']['has']('CaseChange')&&(_0x425f4d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x425f4d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x425f4d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x4d32e5{['afterInit'](){const _0xbfab96=this['editor'];_0xbfab96['commands']['get']('ckbox')&&_0xbfab96['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4d32e5{['afterInit'](){const _0x1d23ca=this['editor'];if(!_0x1d23ca['plugins']['has']('CodeBlock'))return;const _0x29317a=_0x1d23ca['plugins']['get']('TrackChangesEditing'),_0x5af1b8=_0x1d23ca['locale'],_0x27f0ef=_0x1d23ca['config']['get']('codeBlock')['languages'],_0x4e98ff=_0x1d23ca['commands']['get']('codeBlock');_0x29317a['enableCommand']('indentCodeBlock'),_0x29317a['enableCommand']('outdentCodeBlock'),_0x29317a['enableCommand']('codeBlock',(_0x5372ec,_0x1d142b={})=>{const _0xb9f5e6=_0x1d23ca['model'],_0x2ea039=_0x1d23ca['model']['document']['selection'],_0x50f0c8=_0x1d142b&&void 0x0!==_0x1d142b['forceValue']?_0x1d142b['forceValue']:!_0x4e98ff['value'];let _0x17e8bf;_0x1d142b['language']||(_0x1d142b['language']=_0x27f0ef[0x0]['language']),_0x17e8bf=_0x50f0c8?Array['from'](_0x2ea039['getSelectedBlocks']())['filter'](_0x23a2da=>eo(_0x23a2da)||function(_0x42a982,_0x132250){if(_0x42a982['is']('rootElement')||_0x132250['isLimit'](_0x42a982))return!0x1;return _0x132250['checkChild'](_0x42a982['parent'],'codeBlock');}(_0x23a2da,_0xb9f5e6['schema'])):Array['from'](_0x2ea039['getSelectedBlocks']())['filter'](_0x6f1a4b=>eo(_0x6f1a4b));const _0xdf8053=to(_0x17e8bf,_0xb9f5e6);_0xb9f5e6['change'](()=>{for(const _0xc045d3 of _0xdf8053)_0x29317a['markBlockFormat'](_0xc045d3,{'commandName':'codeBlock','commandParams':[{..._0x1d142b,'forceValue':_0x50f0c8}],'formatGroupId':'blockName'});});}),(_0x29317a['descriptionFactory']['registerElementLabel']('codeBlock',_0x170a64=>o(_0x5af1b8,'ELEMENT_CODE_BLOCK',_0x170a64)),_0x29317a['descriptionFactory']['registerDescriptionCallback'](_0x3e3e97=>{if('formatBlock'!=_0x3e3e97['type'])return;const _0x437171=_0x5af1b8['t'],{data:_0x5e4df4}=_0x3e3e97;if(!_0x5e4df4||'codeBlock'!=_0x5e4df4['commandName'])return;const _0x220a96=_0x5e4df4['commandParams'][0x0]['language'],_0x216dfa=_0x437171(_0x27f0ef['find'](_0x49998e=>_0x49998e['language']===_0x220a96)['label'])['toLowerCase']();return _0x5e4df4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5af1b8,'*Set\x20format:*\x20%0',o(_0x5af1b8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x216dfa+')')}:{'type':'format','content':o(_0x5af1b8,'*Remove\x20format:*\x20%0',o(_0x5af1b8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1bf39b){return'codeBlock'==_0x1bf39b['name'];}class H extends _0x4d32e5{['afterInit'](){const _0x12215b=this['editor'];if(!_0x12215b['plugins']['has']('CommentsEditing'))return;_0x12215b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3ee00f,_0xee2cae,_0x21b6e5){const _0x1fb100=[];for(const _0x6885a5 of _0xee2cae['getItems']())_0x6885a5['hasAttribute'](_0x3ee00f)&&_0x1fb100['push'](_0x21b6e5['createRangeOn'](_0x6885a5));return _0x1fb100;}function _e(_0xf6c3b2,_0x328cb6,{showActiveMarker:_0xd8ee61=!0x0}={}){const _0x20d06a=_0xf6c3b2['plugins']['get']('TrackChangesEditing');return(_0x19fb98,_0x439447,_0x4adf7f)=>{if(!_0x4adf7f['consumable']['test'](_0x439447['markerRange'],_0x19fb98['name']))return;const _0x57f254=_0x439447['markerRange']['getWalker'](),_0x4b3108=_0x439447['markerRange']['start'],_0x4d57e7=_0xf6c3b2['model']['schema'];let _0x47bae2=null,_0x5a0c7a=null,_0x16aafa=!0x1,_0x548612=!0x1;for(const _0x30cc4e of _0x57f254){const _0x127279=_0x30cc4e['item'];_0x16aafa=_0x16aafa||_0x4d57e7['isContent'](_0x127279);const _0x189e8c=_0x4adf7f['mapper']['toViewElement'](_0x127279);if(_0x189e8c&&_0x189e8c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30cc4e['type']&&(_0x4d57e7['isBlock'](_0x127279)&&!_0x4d57e7['isLimit'](_0x127279)&&(_0x127279['nextSibling']||_0x4b3108['isAtEnd']?_0x47bae2&&_0x47bae2['parent']==_0x127279||(_0x47bae2=_0x127279,_0x4dddc2(_0x30cc4e['previousPosition']),_0x548612=!0x0):_0x5a0c7a=_0x5a0c7a||_0x30cc4e['previousPosition']));}function _0x4dddc2(_0x4c61c0){const _0xe27b4a=_0x4adf7f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x328cb6}),_0x5b7355=_0x4adf7f['mapper']['toViewPosition'](_0x4c61c0);_0xd8ee61&&_0x20d06a['activeMarkers']['includes'](_0x439447['markerName'])&&_0x4adf7f['writer']['addClass']('ck-suggestion-marker--active',_0xe27b4a),_0x4adf7f['writer']['insert'](_0x5b7355,_0xe27b4a),_0x4adf7f['mapper']['bindElementToMarker'](_0xe27b4a,_0x439447['markerName']);}_0x16aafa||_0x548612||!_0x5a0c7a||_0x4dddc2(_0x5a0c7a);};}class q extends _0x4d32e5{static get['requires'](){return[_0x509374];}['init'](){const _0x1bd90b=this['editor'],_0x4ba208=_0x1bd90b['plugins']['get']('TrackChangesEditing');_0x4ba208['enableCommand']('delete');const _0x57d72d=_0x1bd90b['commands']['get']('deleteForward');_0x4ba208['enableCommand']('deleteForward',(_0x14de76,_0x985535={})=>{const _0x2af8e6=_0x1bd90b['model']['createSelection'](_0x1bd90b['model']['document']['selection']);_0x2af8e6['isCollapsed']&&_0x1bd90b['model']['modifySelection'](_0x2af8e6,{'direction':'forward','unit':_0x985535['unit']});const _0x2b7dad=_0x2af8e6['getFirstRange'](),_0x365296=_0x1ed262['fromRange'](_0x2b7dad);let _0x4d09f1;_0x14de76(_0x985535),_0x4d09f1='$graveyard'==_0x365296['root']['rootName']?_0x1bd90b['model']['createRange'](_0x2b7dad['start']):_0x1bd90b['model']['createRange'](_0x365296['start'],_0x365296['end']),_0x365296['detach'](),_0x1bd90b['model']['enqueueChange'](_0x57d72d['buffer']['batch'],_0x1c76a3=>{_0x57d72d['buffer']['lock'](),_0x1c76a3['setSelection'](_0x1c76a3['createRange'](_0x4d09f1['end'])),_0x57d72d['buffer']['unlock']();});}),_0x1bd90b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1bd90b,'merge'),{'priority':'high'}),_0x1bd90b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xc93429,_0x190999,_0x39840d)=>{_0x39840d['options']['showSuggestionHighlights']&&_e(_0x1bd90b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xc93429,_0x190999,_0x39840d);},{'priority':'high'}),_0x1bd90b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x40d0d7,_0x1a15a0,_0x8d496e)=>{const _0x3d52e0=_0x8d496e['mapper']['markerNameToElements'](_0x1a15a0['markerName']);if(_0x3d52e0){for(const _0x50d58c of _0x3d52e0)_0x50d58c['is']('uiElement')&&(_0x8d496e['mapper']['unbindElementFromMarkerName'](_0x50d58c,_0x1a15a0['markerName']),_0x8d496e['writer']['remove'](_0x50d58c));}},{'priority':'high'});}}class z extends _0x4d32e5{['afterInit'](){const _0x2d6d9b=this['editor'];if(!_0x2d6d9b['plugins']['has']('ListEditing'))return;const _0x4680bb=_0x2d6d9b['locale'],_0x1241e3=_0x2d6d9b['plugins']['get']('TrackChangesEditing'),_0x495eec=_0x2d6d9b['plugins']['has']('TodoListEditing'),_0x5c0f3c=!!_0x2d6d9b['config']['get']('list.multiBlock');function _0x377055(_0x42fb43){return{'type':'format','content':''+o(_0x4680bb,'*Set\x20format:*\x20%0',_0x42fb43)};}function _0x17824d(_0x3bb230){return{'type':'format','content':''+o(_0x4680bb,'*Remove\x20format:*\x20%0',_0x3bb230)};}_0x1241e3['enableDefaultAttributesIntegration']('numberedList'),_0x1241e3['enableDefaultAttributesIntegration']('bulletedList'),_0x1241e3['enableDefaultAttributesIntegration']('customNumberedList'),_0x1241e3['enableDefaultAttributesIntegration']('customBulletedList'),_0x1241e3['enableDefaultAttributesIntegration']('indentList'),_0x1241e3['enableDefaultAttributesIntegration']('outdentList'),_0x1241e3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1241e3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1241e3['registerBlockAttribute']('listItemId'),_0x1241e3['registerBlockAttribute']('listType'),_0x1241e3['registerBlockAttribute']('listIndent'),_0x5c0f3c&&(_0x1241e3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1241e3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x495eec&&(_0x1241e3['enableDefaultAttributesIntegration']('todoList'),_0x1241e3['enableDefaultAttributesIntegration']('checkTodoList'),_0x1241e3['registerBlockAttribute']('todoListChecked'),_0x1241e3['descriptionFactory']['registerDescriptionCallback'](_0x279f75=>{const {data:_0x557594}=_0x279f75;if(_0x557594&&'todoListChecked'==_0x557594['key'])return{'type':'format','content':_0x557594['newValue']?o(_0x4680bb,'*Check\x20item*'):o(_0x4680bb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x150788=>{if(_0x150788['batch']['isUndo'])return!0x1;let _0x4f8814=!0x1;const _0x40ef53=_0x1241e3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x211dd6=>'todoListChecked'===_0x1241e3['_getAttributeKey'](_0x211dd6));for(const _0x51ead0 of _0x40ef53){'todo'!=_0x51ead0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1241e3['_findSuggestions'](_0x51ead0['getFirstRange'](),'attribute')['find'](_0x2dca94=>'listType'===_0x1241e3['_getAttributeKey'](_0x2dca94['suggestion']))||(_0x150788['removeMarker'](_0x51ead0['getFirstMarker']()),_0x4f8814=!0x0));}return _0x4f8814;})),_0x1241e3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4680bb,'FORMAT_INDENT'));const _0x547d03={'type':'format','content':''};_0x1241e3['descriptionFactory']['registerDescriptionCallback'](_0x41a194=>{const {data:_0x23d14b}=_0x41a194;if(!_0x23d14b||'listType'!=_0x23d14b['key'])return;let _0x2d6326=_0x41a194['head'];for(;_0x2d6326;){if(_0x2d6326['data']&&(('listStyle'==_0x2d6326['data']['key']||'listMarkerStyle'==_0x2d6326['data']['key'])&&(_0x2d6326['data']['newValue']&&'default'!=_0x2d6326['data']['newValue']||'default'!=_0x2d6326['data']['oldValue']&&!_0x23d14b['newValue'])||!_0x5c0f3c&&_0x2d6326['data']['key']==m))return _0x547d03;_0x2d6326=_0x2d6326['next'];}if(null==_0x23d14b['newValue'])switch(_0x23d14b['oldValue']){case'bulleted':return _0x17824d(o(_0x4680bb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17824d(o(_0x4680bb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17824d(o(_0x4680bb,'ELEMENT_TODO_LIST'));}switch(_0x23d14b['newValue']){case'bulleted':return _0x377055(o(_0x4680bb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x377055(o(_0x4680bb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x377055(o(_0x4680bb,'ELEMENT_TODO_LIST'));}}),_0x1241e3['descriptionFactory']['registerDescriptionCallback'](_0x30a35b=>{const {data:_0x3aa358}=_0x30a35b;if(_0x3aa358&&'listIndent'==_0x3aa358['key'])return null==_0x3aa358['newValue']||null==_0x3aa358['oldValue']&&0x0==_0x3aa358['newValue']?_0x547d03:void 0x0;}),_0x1241e3['descriptionFactory']['registerDescriptionCallback'](_0x3810b0=>{if('attribute'!=_0x3810b0['type'])return;const {data:_0x1d0545}=_0x3810b0;if(!_0x1d0545||'listItemId'!=_0x1d0545['key'])return;const _0x1b21f5=le(_0x3810b0);return'newValue'==_0x1b21f5?{'type':'format','content':o(_0x4680bb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1b21f5?{'type':'format','content':o(_0x4680bb,'*Split:*\x20list\x20item')}:_0x547d03;}),_0x2d6d9b['model']['document']['registerPostFixer'](_0x214464=>this['listItemIdFixer'](_0x214464)),_0x2d6d9b['model']['document']['registerPostFixer'](_0x3134d7=>this['noTrackChangesFixer'](_0x3134d7)),_0x2d6d9b['model']['document']['registerPostFixer'](_0x583422=>this['assureChains'](_0x583422)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x488f51){if(_0x488f51['batch']['isUndo']||!_0x488f51['batch']['isLocal'])return!0x1;let _0x53ae69=!0x1;const _0x4cd73c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20c7c4=>_0x20c7c4['data']&&'listItemId'==_0x20c7c4['data']['key'])['filter'](_0x28eb30=>_0x28eb30['data']['newValue']&&_0x28eb30['data']['oldValue']);for(const _0x11a803 of _0x4cd73c)le(_0x11a803)||(_0x488f51['removeMarker'](_0x11a803['getFirstMarker']()),_0x53ae69=!0x0);return _0x53ae69;}['noTrackChangesFixer'](_0x288cb2){if(_0x288cb2['batch']['isUndo']||!_0x288cb2['batch']['isLocal'])return!0x1;const _0x1502bb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1502bb['trackChangesCommand']['value'])return!0x1;let _0x59dd46=!0x1;const _0x122a64=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x58cf2b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xdfbdb0=>'attribute'==_0xdfbdb0['type'])['filter'](_0x1afb09=>_0x122a64['includes'](_0x1afb09['attributeKey']));if(0x0==_0x58cf2b['length'])return _0x59dd46;for(const _0x104e1b of _0x58cf2b){const _0x46736d=_0x1502bb['_findSuggestions'](_0x104e1b['range'],'attribute')['filter'](_0x372f5f=>!_0x372f5f['meta']['isNextTo'])['map'](_0xad1e79=>_0xad1e79['suggestion'])['filter'](_0x42ebca=>{const _0x5920e9=_0x1502bb['_getAttributeKey'](_0x42ebca);return _0x122a64['includes'](_0x5920e9);});if(_0x46736d['length']){for(const _0xd51fc7 of _0x46736d)_0x288cb2['removeMarker'](_0xd51fc7['getFirstMarker']());_0x59dd46=!0x0;}}return _0x59dd46;}['assureChains'](_0x333448){if(_0x333448['batch']['isUndo']||!_0x333448['batch']['isLocal'])return!0x1;const _0x2f5917=this['editor']['plugins']['get']('TrackChangesEditing');let _0x5d1eb4=!0x1;const _0x4985fc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x783a45 of _0x2f5917['getSuggestions']({'skipNotAttached':!0x0})){const _0x177e00=_0x2f5917['_findSuggestions'](_0x783a45['getFirstRange'](),'attribute')['map'](_0x56d21d=>_0x56d21d['suggestion'])['filter'](_0x5d3d49=>_0x5d3d49['data']&&_0x4985fc['includes'](_0x5d3d49['data']['key']));if(!_0x177e00['length'])continue;const _0x1a93f7=_0x177e00[0x0]['head']['attributes']['groupId'];if(!_0x177e00['every'](_0x1825de=>_0x1825de['attributes']['groupId']===_0x1a93f7)){for(const _0x22b1d8 of _0x177e00)_0x4be920(_0x22b1d8,_0x1a93f7)&&(_0x5d1eb4=!0x0);}}return _0x5d1eb4;function _0x5332f3(_0x51e85b,_0x4dbd8d){for(const _0x271a02 of _0x2f5917['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8bd37=>'attribute'==_0xc8bd37['type']&&_0xc8bd37['attributes']['groupId']==_0x51e85b))_0x271a02['setAttribute']('groupId',_0x4dbd8d);}function _0x4be920(_0x38cecb,_0x3093b4){let _0x3e4f23=_0x38cecb['head'],_0x1e14aa=!0x1;for(;_0x3e4f23;)_0x3e4f23['attributes']['groupId']!=_0x3093b4&&(_0x5332f3(_0x3e4f23['attributes']['groupId'],_0x3093b4),_0x3e4f23['setAttribute']('groupId',_0x3093b4),_0x1e14aa=!0x0),_0x3e4f23=_0x3e4f23['next'];return _0x1e14aa;}}['_supportLegacySuggestions'](){const _0x325875=this['editor'],_0x53599d=_0x325875['locale'],_0x1fa1b6=_0x325875['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1fa1b6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2f00ff,_0x9810e1){const _0x50b88d=[];for(let _0x213993 of _0x2f00ff)_0x213993['start']['nodeAfter']===_0x213993['end']['parent']&&(_0x213993=_0x325875['model']['createRange'](_0x325875['model']['createPositionAt'](_0x213993['start']['nodeAfter'],0x0))),_0x50b88d['push'](_0x213993);_0x325875['model']['change'](_0x405922=>{const _0x1fbddf=_0x325875['model']['document']['selection'],_0x2ced8a=Array['from'](_0x1fbddf['getRanges']())['map'](_0x23c083=>_0x1ed262['fromRange'](_0x23c083));_0x405922['setSelection'](_0x50b88d),_0x325875['commands']['get'](_0x9810e1['commandName'])['refresh'](),_0x9810e1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x325875['execute'](_0x9810e1['commandName'],..._0x9810e1['commandParams']),_0x405922['setSelection'](_0x2ced8a);for(const _0x4dc472 of _0x2ced8a)_0x4dc472['detach']();});}),_0x1fa1b6['descriptionFactory']['registerElementLabel'](function(_0x30cafa){const _0xafefad=!_0x325875['model']['schema']['isObject'](_0x30cafa),_0x2390fc=_0x30cafa['previousSibling'],_0x5347e5=_0x30cafa['nextSibling'],_0x11d2be=_0x30cafa['getAttribute']('listItemId'),_0x764ef=!_0x2390fc||_0x2390fc['getAttribute']('listItemId')!==_0x11d2be,_0x2fb3e0=!_0x5347e5||_0x5347e5['getAttribute']('listItemId')!==_0x11d2be;return _0xafefad&&Boolean(_0x11d2be)&&_0x764ef&&_0x2fb3e0;},_0x25d276=>o(_0x53599d,'ELEMENT_LIST_ITEM',_0x25d276));}['_registerLegacyDescription'](){const _0x3a6b92=this['editor'],_0x3a59a8=_0x3a6b92['locale'];function _0x5a0a75(_0x575bff){const _0x4ca1c0=_0x3a6b92['commands']['get']('bulletedList')['value'],_0x5d5f67=_0x3a6b92['commands']['get']('numberedList')['value'];return'numberedList'===_0x575bff?_0x4ca1c0:_0x5d5f67;}_0x3a6b92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4910c2){if('formatBlock'!=_0x4910c2['type'])return;const {data:_0x1e51aa}=_0x4910c2;if(!_0x1e51aa)return;let _0x5a7d2a,_0x3b75fd,_0x1444aa,_0x981c78;switch(_0x1e51aa['commandName']){case'bulletedList':_0x1444aa=_0x1e51aa['commandParams'][0x0]['forceValue'],_0x981c78=_0x5a0a75(_0x1e51aa['commandName']),_0x5a7d2a=_0x1444aa?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x981c78&&_0x3a6b92['config']['get']('list.multiBlock')||(_0x5a7d2a='*Change\x20to:*\x20%0'),_0x3b75fd={'type':'format','content':o(_0x3a59a8,_0x5a7d2a,o(_0x3a59a8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1444aa=_0x1e51aa['commandParams'][0x0]['forceValue'],_0x981c78=_0x5a0a75(_0x1e51aa['commandName']),_0x5a7d2a=_0x1444aa?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x981c78&&_0x3a6b92['config']['get']('list.multiBlock')||(_0x5a7d2a='*Change\x20to:*\x20%0'),_0x3b75fd={'type':'format','content':o(_0x3a59a8,_0x5a7d2a,o(_0x3a59a8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5a7d2a='*Indent:*\x20%0',_0x3b75fd={'type':'format','content':o(_0x3a59a8,_0x5a7d2a,o(_0x3a59a8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5a7d2a=function(_0x2cbb78){const _0x160ad7=_0x2cbb78['getFirstRange']();let _0x217bcf=_0x160ad7['start']['nodeAfter'];for(;_0x217bcf&&_0x160ad7['containsItem'](_0x217bcf);){if(_0x217bcf['getAttribute']('listIndent')>0x0)return!0x1;_0x217bcf=_0x217bcf['nextSibling'];}return!0x0;}(_0x4910c2)?o(_0x3a59a8,'*Format:*\x20remove\x20from\x20%0',o(_0x3a59a8,function(_0x6800bd){return'ELEMENT_'+_0x6800bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4910c2))):o(_0x3a59a8,'*Outdent:*\x20%0',o(_0x3a59a8,'ELEMENT_LIST_ITEM')),_0x3b75fd={'type':'format','content':_0x5a7d2a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1e51aa['multipleBlocks']&&(_0x5a7d2a='*Merge:*\x20%0',_0x3b75fd={'type':'deletion','content':o(_0x3a59a8,_0x5a7d2a,o(_0x3a59a8,'ELEMENT_LIST_ITEM'))});}return _0x3b75fd;});}}function le(_0xc392f4){let _0x3dd2df=_0xc392f4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3dd2df;){const _0x58a1ab=_0x3dd2df['getAttribute']('listItemId');if(!_0x58a1ab)return!0x1;if(_0x58a1ab==_0xc392f4['data']['newValue'])return'newValue';if(_0x58a1ab==_0xc392f4['data']['oldValue'])return'oldValue';_0x3dd2df=_0x3dd2df['previousSibling'];}return!0x1;}class ue extends _0x4d32e5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x156848=this['editor']['config']['get']('list.properties'),_0x512877=this['editor']['plugins']['get']('TrackChangesEditing');_0x156848['styles']&&(_0x512877['enableDefaultAttributesIntegration']('listStyle'),_0x512877['registerBlockAttribute']('listStyle')),_0x156848['reversed']&&(_0x512877['enableDefaultAttributesIntegration']('listReversed'),_0x512877['registerBlockAttribute']('listReversed')),_0x156848['startIndex']&&(_0x512877['enableDefaultAttributesIntegration']('listStart'),_0x512877['registerBlockAttribute']('listStart'));const _0x438b00={'type':'format','content':''};_0x512877['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x40d538=this['editor']['locale'];_0x512877['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x40d538,'FORMAT_LIST_REVERSED')),_0x512877['descriptionFactory']['registerDescriptionCallback'](_0x32649a=>{const {data:_0x2354da}=_0x32649a;if(_0x2354da&&'listReversed'==_0x2354da['key'])return null==_0x2354da['newValue']||0x0==_0x2354da['newValue']&&null==_0x2354da['oldValue']?_0x438b00:void 0x0;}),_0x512877['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x40d538,'FORMAT_LIST_START')),_0x512877['descriptionFactory']['registerDescriptionCallback'](_0x53651f=>{const {data:_0x26133b}=_0x53651f;if(_0x26133b&&'listStart'==_0x26133b['key'])return null==_0x26133b['newValue']||0x1==_0x26133b['newValue']&&null==_0x26133b['oldValue']?_0x438b00:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa8f997=>{if(_0xa8f997['batch']['isUndo'])return!0x1;let _0x4ac25b=!0x1;const _0xb17439=_0x512877['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a739c=>{const _0x57c4f3=_0x512877['_getAttributeKey'](_0x2a739c);return'listStart'==_0x57c4f3||'listReversed'==_0x57c4f3;});for(const _0x138f63 of _0xb17439){const _0x4c98b2=_0x138f63['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4c98b2||'customNumbered'==_0x4c98b2)continue;_0x512877['_findSuggestions'](_0x138f63['getFirstRange'](),'attribute')['find'](_0x5d013a=>'listType'==_0x512877['_getAttributeKey'](_0x5d013a['suggestion']))||(_0xa8f997['removeMarker'](_0x138f63['getFirstMarker']()),_0x4ac25b=!0x0);}return _0x4ac25b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5ee399){const _0x5c9819=this['editor']['locale'],{data:_0x4bc147}=_0x5ee399,_0x23452a={'type':'format','content':''};if(!_0x4bc147||'listStyle'!=_0x4bc147['key'])return;if(!_0x4bc147['oldValue'])return'default'==_0x4bc147['newValue']?_0x23452a:{'type':'format','content':''+o(_0x5c9819,'*Set\x20format:*\x20%0',o(_0x5c9819,this['_getTranslationKeyForListStyle'](_0x4bc147['newValue'])))};if(!_0x4bc147['newValue']){if('default'==_0x4bc147['oldValue'])return _0x23452a;let _0x2af891=_0x5ee399['head'];for(;_0x2af891;){if(_0x2af891['data']&&'listType'==_0x2af891['data']['key']&&_0x2af891['data']['newValue'])return _0x23452a;_0x2af891=_0x2af891['next'];}return{'type':'format','content':''+o(_0x5c9819,'*Remove\x20format:*\x20%0',o(_0x5c9819,this['_getTranslationKeyForListStyle'](_0x4bc147['oldValue'])))};}if('default'!=_0x4bc147['newValue'])return{'type':'format','content':''+o(_0x5c9819,'*Set\x20format:*\x20%0',o(_0x5c9819,this['_getTranslationKeyForListStyle'](_0x4bc147['newValue'])))};let _0x240bb0=_0x5ee399['head'];for(;_0x240bb0;){if(_0x240bb0['data']&&'listType'==_0x240bb0['data']['key']&&_0x240bb0['data']['newValue']&&_0x240bb0['data']['oldValue'])return _0x23452a;_0x240bb0=_0x240bb0['next'];}return{'type':'format','content':o(_0x5c9819,'*Set\x20format:*\x20%0',o(_0x5c9819,'ELEMENT_'+_0x5ee399['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1dc423=this['editor'],_0x5995da=_0x1dc423['locale'];_0x1dc423['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2241f6=>{if('formatBlock'!=_0x2241f6['type'])return;const {data:_0x24beab}=_0x2241f6;if(!_0x24beab)return;let _0x3857b9,_0x583dac;switch(_0x24beab['commandName']){case'listStyle':_0x3857b9='*Change\x20to:*\x20%0',_0x583dac={'type':'format','content':o(_0x5995da,_0x3857b9,o(_0x5995da,this['_getTranslationKeyForListStyle'](_0x24beab['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3857b9=_0x24beab['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x583dac={'type':'format','content':o(_0x5995da,_0x3857b9)};break;case'listStart':_0x3857b9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x583dac={'type':'format','content':o(_0x5995da,_0x3857b9,_0x24beab['commandParams'][0x0]['startIndex'])};}return _0x583dac;});}['_getTranslationKeyForListStyle'](_0x63f9af){return'ELEMENT_'+function(_0x16cf9c){if(pe['includes'](_0x16cf9c))return'bulleted';if(ye['includes'](_0x16cf9c))return'numbered';return null;}(_0x63f9af)['toUpperCase']()+'_LIST_'+_0x63f9af['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4d32e5{static get['requires'](){return[_0x280d01];}['init'](){const _0x186e7e=this['editor'],_0x2f49a0=_0x186e7e['plugins']['get']('TrackChangesEditing'),_0x76ef7f=_0x186e7e['commands']['get']('enter');_0x2f49a0['enableCommand']('enter',()=>{_0x186e7e['model']['change'](_0xe376bc=>{const _0x126887=_0x186e7e['model']['document']['selection'],_0x2a8f8f=_0x126887['getFirstPosition'](),_0x35b0d5=_0x1ed262['fromRange'](_0x126887['getFirstRange']());if(_0x76ef7f['enterBlock'](_0xe376bc)){const _0x525604=_0x186e7e['model']['createPositionAt'](_0x2a8f8f['parent']['nextSibling'],0x0),_0x31c59e=_0xe376bc['createRange'](_0x2a8f8f,_0x525604);_0x2f49a0['markInsertion'](_0x31c59e);}else _0xe376bc['setSelection'](_0xe376bc['createRange'](_0x35b0d5['end']));_0x35b0d5['detach'](),_0x76ef7f['fire']('afterExecute',{'writer':_0xe376bc});});}),_0x186e7e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x186e7e,'split'),{'priority':'high'}),_0x186e7e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3d004f,_0x3d27cb,_0x5955c7)=>{const _0x52f886=_0x5955c7['mapper']['markerNameToElements'](_0x3d27cb['markerName']);if(_0x52f886){for(const _0x53fed2 of _0x52f886)_0x53fed2['hasClass']('ck-suggestion-marker-split')&&(_0x5955c7['mapper']['unbindElementFromMarkerName'](_0x53fed2,_0x3d27cb['markerName']),_0x5955c7['writer']['remove'](_0x53fed2));}},{'priority':'high'}),_0x186e7e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4340d1,_0x59c2aa,_0x192a5d)=>{_0x192a5d['options']['showSuggestionHighlights']&&_e(_0x186e7e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4340d1,_0x59c2aa,_0x192a5d);},{'priority':'high'});}}class J extends _0x4d32e5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x145ba2=this['editor']['plugins']['get']('TrackChangesEditing');_0x145ba2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x145ba2['enableCommand']('findNext'),_0x145ba2['enableCommand']('findPrevious'),_0x145ba2['enableCommand']('replace'),_0x145ba2['enableCommand']('replaceAll');}['handleFindCommand'](_0x146e48,_0x48b637,_0x6ea953={}){const _0x5686cf=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x146e48(_0x43b6b8=>('string'==typeof _0x48b637?_0x5686cf['findByTextCallback'](_0x48b637,_0x6ea953):_0x48b637)(_0x43b6b8)['filter'](_0x5e277c=>!0x1===this['_isInDeletionRange'](_0x5e277c,_0x43b6b8['item'])),_0x6ea953);}['_isInDeletionRange'](_0x54bcd0,_0x3bb9d9){const _0x23a95e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bb9d9,_0x54bcd0['start']),this['editor']['model']['createPositionAt'](_0x3bb9d9,_0x54bcd0['end']));for(const _0x2b04cb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23a95e['getIntersection'](_0x2b04cb['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 _0x4d32e5{['afterInit'](){const _0x3b9573=this['editor']['locale'],_0x9be8ad=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x954640,commandName:_0x137e8f}of ro)this['editor']['plugins']['has'](_0x954640)&&(_0x9be8ad['enableDefaultAttributesIntegration'](_0x137e8f),_0x9be8ad['registerInlineAttribute'](_0x137e8f));_0x3b9573['t'],_0x9be8ad['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3b9573,'FORMAT_FONT_SIZE')),_0x9be8ad['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3b9573,'FORMAT_FONT_FAMILY')),_0x9be8ad['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3b9573,'FORMAT_FONT_COLOR')),_0x9be8ad['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3b9573,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x382a3f=this['editor'],_0x48b94b=_0x382a3f['locale'];_0x382a3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9f81bb=>{const _0x4a9145=_0x48b94b['t'];if('formatInline'!=_0x9f81bb['type'])return;const {data:_0x1638a2}=_0x9f81bb;if(null!=_0x1638a2){if('fontSize'==_0x1638a2['commandName']){const _0x4db166=_0x1638a2['commandParams'][0x0]['value'];if(_0x4db166){const _0x2c550d=_0x4a9145(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2c41ff=>_0x2c41ff['model']==_0x4db166)['title'])['toLowerCase']();return{'type':'format','content':o(_0x48b94b,'*Set\x20font\x20size:*\x20%0',_0x2c550d)};}return{'type':'format','content':o(_0x48b94b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1638a2['commandName']){const _0x3dea77=_0x1638a2['commandParams'][0x0]['value'];return _0x3dea77?{'type':'format','content':o(_0x48b94b,'*Set\x20font\x20family:*\x20%0',_0x3dea77)}:{'type':'format','content':o(_0x48b94b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1638a2['commandName']){const _0x3cf590=_0x1638a2['commandParams'][0x0]['value'];if(_0x3cf590){const _0x5f53c0=_0x3b7991(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1de357=>_0x1de357['model']==_0x3cf590);let _0x20f49c=_0x3cf590,_0x261205='';return _0x5f53c0&&(_0x20f49c=_0x5f53c0['label'],_0x261205=_0x4a9145(_0x20f49c)['toLowerCase']()),{'type':'format','content':o(_0x48b94b,'*Set\x20font\x20color:*\x20%0',_0x261205)['trim'](),'color':{'value':_0x3cf590,'title':_0x261205||_0x20f49c}};}return{'type':'format','content':o(_0x48b94b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1638a2['commandName']){const _0x49dedd=_0x1638a2['commandParams'][0x0]['value'];if(_0x49dedd){const _0x761647=_0x3b7991(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x396697=>_0x396697['model']==_0x49dedd);let _0x4c3ac3=_0x49dedd,_0x40e2d5='';return _0x761647&&(_0x4c3ac3=_0x761647['label'],_0x40e2d5=_0x4a9145(_0x4c3ac3)['toLowerCase']()),{'type':'format','content':o(_0x48b94b,'*Set\x20font\x20background\x20color:*\x20%0',_0x40e2d5)['trim'](),'color':{'value':_0x49dedd,'title':_0x40e2d5||_0x4c3ac3}};}return{'type':'format','content':o(_0x48b94b,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4d32e5{['afterInit'](){const _0x3435b9=this['editor'],_0xb74511=_0x3435b9['plugins']['get']('TrackChangesEditing'),_0x729b4c=_0x3435b9['commands']['get']('copyFormat'),_0x3a847b=_0x3435b9['commands']['get']('pasteFormat');_0x729b4c&&_0x3a847b&&(_0xb74511['enableDefaultAttributesIntegration']('pasteFormat'),_0xb74511['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20996a=this['editor'],_0x25650e=_0x20996a['locale'];_0x20996a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55ced2=>{if('formatBlock'!=_0x55ced2['type']&&'formatInline'!=_0x55ced2['type'])return;const {data:_0x12c799}=_0x55ced2;if(_0x12c799&&'pasteFormat'===_0x12c799['commandName']){const _0x276a6a=[],_0x4ab023=_0x12c799['commandParams'][0x0];for(const [_0x518980,_0x589f01]of Object['entries'](_0x4ab023))_0x276a6a['push'](so(_0x20996a,_0x518980,_0x589f01));return _0x276a6a['length']?{'type':'format','content':o(_0x25650e,'*Set\x20format\x20to:*\x20%0',_0x276a6a['join'](',\x20'))}:{'type':'format','content':o(_0x25650e,'*Remove\x20all\x20formatting*')};}});}}function so(_0xa82ae,_0x527978,_0x233145){const _0x7bf129=_0xa82ae['locale']['t'],_0x2bdb7f=_0x527978['split'](/(?=[A-Z])/)['join']('\x20'),_0x264d28=_0x7bf129(_0x2bdb7f['charAt'](0x0)['toUpperCase']()+_0x2bdb7f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x233145)return _0x264d28;if('fontColor'===_0x527978||'fontBackgroundColor'===_0x527978){const _0x2fcb8d=_0x3b7991(_0xa82ae['config']['get']('fontColor.colors'))['find'](_0x326a53=>_0x326a53['model']==_0x233145);return _0x264d28+'\x20('+(_0x2fcb8d?_0x7bf129(_0x2fcb8d['label'])['toLowerCase']():_0x233145)+')';}if('fontSize'===_0x527978&&isNaN(parseFloat(_0x233145))){const _0xcbfa31=_0xa82ae['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xa82ae['config']['get']('fontSize.options'))['find'](_0xbd639a=>_0xbd639a['model']==_0x233145);return _0x264d28+'\x20('+(_0xcbfa31?_0x7bf129(_0xcbfa31['title'])['toLowerCase']():_0x233145)+')';}return _0x264d28+'\x20('+_0x233145+')';}class Y extends _0x4d32e5{['afterInit'](){const _0x2f27b2=this['editor'];if(!_0x2f27b2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2f27b2['config']['get']('heading.options');const _0x526a2b=_0x2f27b2['locale'],_0x5617cd=_0x2f27b2['plugins']['get']('TrackChangesEditing');_0x5617cd['enableDefaultAttributesIntegration']('heading');for(const _0x3cecc5 of this['_headingOptions'])'paragraph'!=_0x3cecc5['model']&&_0x5617cd['descriptionFactory']['registerElementLabel'](_0x3cecc5['model'],_0x401109=>{const _0x159853=this['_getHeadingLevel'](_0x3cecc5['model']);return null!==_0x159853?_0x50bf1a(_0x401109,_0x159853):_0x2d3b79(_0x401109,_0x3cecc5['title']);});function _0x50bf1a(_0x37eed7,_0x43d0b3){return o(_0x526a2b,'ELEMENT_HEADING',[_0x37eed7,_0x43d0b3]);}function _0x2d3b79(_0xca6039,_0x3cf68a){return o(_0x526a2b,'ELEMENT_HEADING_CUSTOM',[_0xca6039,_0x3cf68a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a335f=this['editor'],_0x3b80ca=_0x3a335f['locale'];function _0x3add7a(_0x54b255,_0x377305){return o(_0x3b80ca,'ELEMENT_HEADING_CUSTOM',[_0x54b255,_0x377305]);}_0x3a335f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x176f96=>{if('formatBlock'!=_0x176f96['type'])return;const {data:_0x2cc6cf}=_0x176f96;if(_0x2cc6cf&&'heading'==_0x2cc6cf['commandName']){const _0x38f093=_0x2cc6cf['commandParams'][0x0]['value'],_0x2c9b35=this['_getHeadingLevel'](_0x38f093);if(null!==_0x2c9b35)return{'type':'format','content':o(_0x3b80ca,'*Change\x20to:*\x20%0',(_0x31ee50=0x1,_0x250b95=_0x2c9b35,o(_0x3b80ca,'ELEMENT_HEADING',[_0x31ee50,_0x250b95])))};const _0x4d7a2d=this['_headingOptions']['find'](_0x414900=>_0x414900['model']===_0x38f093)['title'];return{'type':'format','content':o(_0x3b80ca,'*Change\x20to:*\x20%0',_0x3add7a(0x1,_0x4d7a2d))};}var _0x31ee50,_0x250b95;});}['_getHeadingLevel'](_0x2344f4){var _0x199dda,_0x152d92;const _0x3440c5=_0x2344f4['match'](/^heading(\d+)/);if(_0x3440c5)return _0x3440c5[0x1];const _0x462197=null===(_0x199dda=this['_headingOptions'])||void 0x0===_0x199dda?void 0x0:_0x199dda['find'](_0x3dfe44=>_0x3dfe44['model']==_0x2344f4);if(_0x462197&&_0x462197['view']){const _0x2ec91e=_0x462197['view'],_0x305f64=(null!==(_0x152d92=_0x2ec91e['name'])&&void 0x0!==_0x152d92?_0x152d92:_0x2ec91e)['match'](/^h(\d+)/);if(_0x305f64)return _0x305f64[0x1];}return null;}}class Z extends _0x4d32e5{['afterInit'](){const _0x397cef=this['editor'];if(!_0x397cef['plugins']['has']('HighlightEditing'))return;const _0xf98df2=_0x397cef['plugins']['get']('TrackChangesEditing'),_0x276cc1=_0x397cef['locale'];_0xf98df2['enableDefaultAttributesIntegration']('highlight'),_0xf98df2['registerInlineAttribute']('highlight'),_0xf98df2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x276cc1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x428a23=this['editor'],_0xc1a067=_0x428a23['locale'];_0x428a23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b925f=>{if('formatInline'!=_0x1b925f['type'])return;const {data:_0x2faacc}=_0x1b925f;if(_0x2faacc&&'highlight'==_0x2faacc['commandName']){const _0x38ad75=_0xc1a067['t'],_0x3590d0=_0x2faacc['commandParams'][0x0]['value'];if(_0x3590d0){const _0x46b102=_0x428a23['config']['get']('highlight.options')['find'](_0x43792a=>_0x43792a['model']==_0x3590d0),_0x45f1a8=_0x38ad75(_0x46b102['title'])['toLowerCase']();return{'type':'format','content':o(_0xc1a067,'*Set\x20highlight:*\x20%0',_0x45f1a8),'color':{'value':_0x46b102['color'],'title':_0x46b102['title']}};}return{'type':'format','content':o(_0xc1a067,'*Remove\x20highlight*',o(_0xc1a067,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4d32e5{['afterInit'](){const _0x98f694=this['editor'];if(!_0x98f694['plugins']['has']('HorizontalLineEditing'))return;_0x98f694['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xc8f995=_0x98f694['plugins']['get']('TrackChangesEditing'),_0x15d740=_0x98f694['locale'];_0xc8f995['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33f402=>o(_0x15d740,'ELEMENT_HORIZONTAL_LINE',_0x33f402)),_0x98f694['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x503514,{writer:_0x2a7185,options:_0x4acd58})=>{if(!_0x4acd58['showSuggestionHighlights'])return null;const _0x54b2b9=_0x2a7185['createContainerElement']('div'),_0x116e24=_0x2a7185['createEmptyElement']('hr');return _0x2a7185['addClass']('ck-horizontal-line',_0x54b2b9),_0x2a7185['insert'](_0x2a7185['createPositionAt'](_0x54b2b9,0x0),_0x116e24),_0x54b2b9;},'converterPriority':'high'});}}class et extends _0x4d32e5{['afterInit'](){const _0x2eaff7=this['editor'];if(!_0x2eaff7['plugins']['has']('HtmlEmbed'))return;const _0x28124e=_0x2eaff7['plugins']['get']('TrackChangesEditing'),_0x307613=_0x2eaff7['locale'];_0x28124e['descriptionFactory']['registerElementLabel']('rawHtml',_0x4047ed=>o(_0x307613,'ELEMENT_HTML_EMBED',_0x4047ed)),_0x28124e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x28124e['registerBlockAttribute']('value'),_0x28124e['descriptionFactory']['registerDescriptionCallback'](_0x361616=>{if('attribute'!=_0x361616['type'])return;const {data:_0x5d3e3b}=_0x361616;if(_0x5d3e3b&&'value'==_0x5d3e3b['key']&&_0x361616['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x229fc7=o(_0x307613,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x307613,'*Change\x20%0\x20content*',_0x229fc7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40702e=this['editor'],_0x1d5520=_0x40702e['locale'];_0x40702e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x931e93=>{if('formatBlock'!=_0x931e93['type'])return;const {data:_0x1872b7}=_0x931e93;if(_0x1872b7&&'htmlEmbed'==_0x1872b7['commandName']){const _0x5039f6=o(_0x1d5520,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d5520,'*Change\x20%0\x20content*',_0x5039f6)};}});}}class it extends _0x4d32e5{['afterInit'](){const _0x5c3b98=this['editor'];if(!_0x5c3b98['plugins']['has']('ImageEditing'))return;const _0x3ed622=_0x5c3b98['plugins']['get']('TrackChangesEditing'),_0x29faf4=_0x5c3b98['plugins']['get']('ImageUtils'),_0x7c0783=_0x5c3b98['locale'];_0x3ed622['enableCommand']('insertImage'),_0x3ed622['descriptionFactory']['registerElementLabel']('imageBlock',_0x5830a6=>o(_0x7c0783,'ELEMENT_IMAGE',_0x5830a6)),_0x3ed622['descriptionFactory']['registerElementLabel']('imageInline',_0xce1ec5=>o(_0x7c0783,'ELEMENT_INLINE_IMAGE',_0xce1ec5)),_0x3ed622['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x7c0783,'ELEMENT_CAPTION')),_0x5c3b98['plugins']['has']('ImageUploadEditing')&&_0x3ed622['enableCommand']('uploadImage'),_0x5c3b98['plugins']['has']('ImageBlockEditing')&&_0x5c3b98['plugins']['has']('ImageInlineEditing')&&(_0x3ed622['enableCommand']('imageTypeInline',(_0x48fd52,_0x1eccec)=>{const _0x1eb0ed=_0x29faf4['getClosestSelectedImageElement'](_0x5c3b98['model']['document']['selection']);_0x5c3b98['model']['change'](()=>{_0x3ed622['markBlockFormat'](_0x1eb0ed,{'commandName':'imageTypeInline','commandParams':[_0x1eccec]},[],'convertBlockImageToInline');});}),_0x3ed622['enableCommand']('imageTypeBlock',(_0x2118a7,_0x2fc1a7)=>{_0x5c3b98['model']['change'](_0xed7df1=>{let _0x3fa4ae=_0x29faf4['getClosestSelectedImageElement'](_0x5c3b98['model']['document']['selection']),_0x5ece7d=_0xed7df1['createRangeOn'](_0x3fa4ae);const _0x4eeadc=_0x326423['fromPosition'](_0x5ece7d['start'],'toPrevious'),_0x1c94f0=_0x326423['fromPosition'](_0x5ece7d['end'],'toNext');_0x3ed622['forceDefaultExecution'](()=>_0x2118a7(_0x2fc1a7)),_0x3fa4ae=_0x29faf4['getClosestSelectedImageElement'](_0x5c3b98['model']['document']['selection']),_0x5ece7d=_0xed7df1['createRangeOn'](_0x3fa4ae);const _0x34efa9=_0xed7df1['createRange'](_0x4eeadc,_0x1c94f0);_0x4eeadc['detach'](),_0x1c94f0['detach'](),_0x3ed622['markBlockFormat'](_0x3fa4ae,{'commandName':'imageTypeInline','commandParams':[_0x2fc1a7]},[],'convertInlineImageToBlock'),_0x34efa9['start']['isBefore'](_0x5ece7d['start'])&&_0x3ed622['markInsertion'](_0xed7df1['createRange'](_0x34efa9['start'],_0x5ece7d['start']),'convertInlineImageToBlock'),_0x5ece7d['end']['isBefore'](_0x34efa9['end'])&&_0x3ed622['markInsertion'](_0xed7df1['createRange'](_0x5ece7d['end'],_0x34efa9['end']),'convertInlineImageToBlock');});}),_0x3ed622['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ed622['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ed622['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ed622['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ed622['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ed622['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xbccd3c])=>{const _0x28f0ea=_0x3ed622['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2ee58b=_0xbccd3c['start'],_0x4c1932=_0xbccd3c['end'];const _0x4e7af2=_0x5c3b98['model']['schema']['getNearestSelectionRange'](_0x2ee58b,'backward'),_0xde3abf=_0x5c3b98['model']['schema']['getNearestSelectionRange'](_0x4c1932,'forward');_0x4e7af2['isCollapsed']&&(_0x2ee58b=_0x4e7af2['start']),_0xde3abf['isCollapsed']&&(_0x4c1932=_0xde3abf['end']),_0x28f0ea([_0x5c3b98['model']['createRange'](_0x2ee58b,_0x4c1932)]);}),_0x3ed622['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x10215f),_0x3ed622['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x10215f)),_0x5c3b98['plugins']['has']('ImageCaptionEditing')&&(_0x3ed622['enableCommand']('toggleImageCaption',(_0x17fa6e,_0x19a3c7)=>{const _0x3d37ce=_0x5c3b98['plugins']['get']('ImageCaptionUtils');let _0x5cbeed=_0x29faf4['getClosestSelectedImageElement'](_0x5c3b98['model']['document']['selection']),_0x5d2720=_0x3d37ce['getCaptionFromImageModelElement'](_0x5cbeed);_0x5c3b98['model']['change'](()=>{if(_0x5d2720)return void _0x3ed622['markDeletion'](_0x5c3b98['model']['createRangeOn'](_0x5d2720));const _0x1390d7=_0x29faf4['isBlockImage'](_0x5cbeed);_0x17fa6e(_0x19a3c7),_0x5cbeed=_0x29faf4['getClosestSelectedImageElement'](_0x5c3b98['model']['document']['selection']),_0x5d2720=_0x3d37ce['getCaptionFromImageModelElement'](_0x5cbeed),_0x3ed622['markInsertion'](_0x5c3b98['model']['createRangeOn'](_0x5d2720),_0x1390d7?null:'imageCaption');});}),_0x3ed622['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x10215f));const _0x52e91c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ee8a7(_0x429edf,_0x5d2995){const _0x22baaf=_0x52e91c['findIndex'](({type:_0x224e6d,subType:_0x50b423})=>_0x429edf['type']==_0x224e6d&&_0x429edf['subType']==_0x50b423),_0x982e1c=_0x52e91c['findIndex'](({type:_0x149ce4,subType:_0x4c15f3})=>_0x5d2995['type']==_0x149ce4&&_0x5d2995['subType']==_0x4c15f3);if(_0x22baaf<0x0||_0x982e1c<0x0)return!0x1;const _0x49b004=_0x429edf['getFirstRange'](),_0x579b99=_0x5d2995['getFirstRange']();if((0x0==_0x22baaf||0x1==_0x22baaf)&&0x2==_0x982e1c&&_0x49b004['isIntersecting'](_0x579b99))return!0x0;if(0x2==_0x22baaf&&0x3==_0x982e1c){const _0x3ca190=_0x3ed622['_findSuggestions'](_0x49b004,'insertion')['filter'](({suggestion:_0xc8537c,meta:_0x5648ce})=>_0x5648ce['isOwn']&&'convertInlineImageToBlock'==_0xc8537c['subType']);if(_0x3ca190['length']>0x1&&_0x579b99['end']['isEqual'](_0x49b004['start']))return!0x0;if(0x1==_0x3ca190['length']&&(_0x49b004['start']['isEqual'](_0x579b99['end'])||_0x49b004['end']['isEqual'](_0x579b99['start'])))return!0x0;}if(0x3==_0x22baaf&&0x3==_0x982e1c&&_0x49b004['start']['isBefore'](_0x579b99['start'])){const _0xf6fe48=_0x49b004['end']['nodeAfter'],_0x56fe16=_0x579b99['start']['nodeBefore'];return _0x29faf4['isBlockImage'](_0xf6fe48)&&_0xf6fe48===_0x56fe16;}return!0x1;}function _0x10215f(_0x47b17f,_0x36fa7e){return _0x4ee8a7(_0x47b17f,_0x36fa7e)?[_0x47b17f,_0x36fa7e]:_0x4ee8a7(_0x36fa7e,_0x47b17f)?[_0x36fa7e,_0x47b17f]:null;}_0x5c3b98['plugins']['has']('ImageResize')&&(_0x3ed622['enableDefaultAttributesIntegration']('resizeImage'),_0x3ed622['registerBlockAttribute']('resizedWidth'),_0x3ed622['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x7c0783,'FORMAT_IMAGE_SIZE'))),_0x5c3b98['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3ed622['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3ed622['registerBlockAttribute']('alt')),_0x3ed622['descriptionFactory']['registerDescriptionCallback'](_0x54d008=>{if(!!_0x52e91c['find'](({type:_0x290082,subType:_0x203886})=>_0x54d008['type']==_0x290082&&_0x54d008['subType']==_0x203886))return _0x54d008['previous']?{}:void 0x0;}),_0x3ed622['descriptionFactory']['registerDescriptionCallback'](_0x5d1f06=>{if('insertion'==_0x5d1f06['type']||'deletion'==_0x5d1f06['type']){const _0xe3e7a9=_0x5d1f06['getContainedElement']();if(_0xe3e7a9&&_0xe3e7a9['is']('element','caption'))return{'type':'insertion'==_0x5d1f06['type']?'addObject':'removeObject','element':_0xe3e7a9,'quantity':0x1};}}),_0x3ed622['descriptionFactory']['registerDescriptionCallback'](_0x5f242f=>'formatBlock'==_0x5f242f['type']&&'convertInlineImageToBlock'==_0x5f242f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5f242f['type']&&'convertBlockImageToInline'==_0x5f242f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ed622['descriptionFactory']['registerDescriptionCallback'](_0x3c4078=>{if('attribute'!=_0x3c4078['type'])return;const {data:_0x25007f}=_0x3c4078;if(!_0x25007f||'alt'!=_0x25007f['key'])return;const _0x312fd9=_0x25007f['newValue'];return _0x312fd9?{'type':'format','content':o(_0x7c0783,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x312fd9+'\x22')}:{'type':'format','content':o(_0x7c0783,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5891ae=this['editor'],_0x4d6450=_0x5891ae['locale'];_0x5891ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20c7fc=>{if('formatBlock'!=_0x20c7fc['type']&&'formatInline'!=_0x20c7fc['type'])return;const {data:_0x4b46ac}=_0x20c7fc;if(_0x4b46ac){if('imageTextAlternative'==_0x4b46ac['commandName']){const _0x27485c=_0x4b46ac['commandParams'][0x0]['newValue'];return _0x27485c?{'type':'format','content':o(_0x4d6450,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x27485c+'\x22')}:{'type':'format','content':o(_0x4d6450,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4b46ac['commandName']){const _0x66a90d=_0x4b46ac['commandParams'][0x0]['width'];return _0x66a90d?{'type':'format','content':o(_0x4d6450,'*Set\x20image\x20width:*\x20%0',_0x66a90d)}:{'type':'format','content':o(_0x4d6450,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4d32e5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x22d441=this['editor']['locale'],_0x4748a1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4748a1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4748a1['registerBlockAttribute']('src'),_0x4748a1['descriptionFactory']['registerDescriptionCallback'](_0x4b3f24=>{if('attribute'!=_0x4b3f24['type'])return;const {data:_0x190e40}=_0x4b3f24;return _0x190e40&&'src'==_0x190e40['key']?_0x190e40['newValue']&&_0x190e40['oldValue']?{'type':'format','content':o(_0x22d441,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x29f731=this['editor']['plugins']['get']('TrackChangesEditing');_0x29f731['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x29f731['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29f731['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x29f731['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5acde6=this['editor'],_0x4fc282=_0x5acde6['locale'];_0x5acde6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb577ac=>{if('formatBlock'!=_0xb577ac['type']&&'formatInline'!=_0xb577ac['type'])return;const {data:_0x3cdc57}=_0xb577ac;if(!_0x3cdc57||'replaceImageSource'!=_0x3cdc57['commandName'])return;return{'type':'format','content':o(_0x4fc282,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4d32e5{['afterInit'](){const _0x53d50a=this['editor'];if(!_0x53d50a['plugins']['has']('ImageStyleEditing'))return;const _0xe0b4f5=_0x53d50a['plugins']['get']('TrackChangesEditing'),_0x402058=_0x53d50a['plugins']['get']('ImageUtils'),_0xdd1f3b={};_0xe0b4f5['enableCommand']('imageStyle',(_0x588817,_0x2abeb6)=>{const _0x57a8f5=_0x53d50a['plugins']['get']('Users')['me'],_0x26090d=_0x53d50a['commands']['get']('imageStyle');let _0x54863d=_0x402058['getClosestSelectedImageElement'](_0x53d50a['model']['document']['selection']),_0x2c2b6c=_0x53d50a['model']['createRangeOn'](_0x54863d),_0x487cad=_0x26090d['value'];if(_0x487cad==_0x2abeb6['value'])return;const _0x2e8511={'commandName':'imageStyle','commandParams':[_0x2abeb6],'formatGroupId':_0x51245d()};_0x53d50a['model']['change'](()=>{if(_0xe0b4f5['getSuggestions']()['filter'](_0x275f85=>_0x275f85['isInContent']&&_0x57a8f5==_0x275f85['author']&&('formatBlock'==_0x275f85['type']||'formatInline'==_0x275f85['type'])&&('imageStylePreApply'==_0x275f85['subType']||'imageStylePostApply'==_0x275f85['subType'])&&_0x275f85['getFirstRange']()['isEqual'](_0x2c2b6c))['forEach'](_0x4745d3=>_0xe0b4f5['discardSuggestion'](_0x4745d3['head'])),_0x54863d=_0x402058['getClosestSelectedImageElement'](_0x53d50a['model']['document']['selection']),_0x2c2b6c=_0x53d50a['model']['createRangeOn'](_0x54863d),_0x26090d['refresh'](),_0x53d50a['commands']['get']('imageTypeInline')['refresh'](),_0x53d50a['commands']['get']('imageTypeBlock')['refresh'](),_0x487cad=_0x26090d['value'],_0x487cad!=_0x2abeb6['value'])return _0x402058['isInlineImage'](_0x54863d)&&_0x26090d['shouldConvertImageType'](_0x2abeb6['value'],_0x54863d)?(_0x588817({..._0x2abeb6,'setImageSizes':!0x1}),_0x54863d=_0x402058['getClosestSelectedImageElement'](_0x53d50a['model']['document']['selection']),void _0xe0b4f5['markBlockFormat'](_0x54863d,{..._0x2e8511,'commandReversedParams':[{'value':_0x487cad||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x402058['isBlockImage'](_0x54863d)?_0xe0b4f5['markBlockFormat'](_0x54863d,_0x2e8511,[],'imageStylePostApply'):_0xe0b4f5['markInlineFormat'](_0x2c2b6c,_0x2e8511,'imageStylePostApply'));});});for(const _0x294c59 of _0x53d50a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xdd1f3b[_0x294c59['name']]=_0x294c59['title']['toLowerCase']();_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1cf36d])=>{_0x402058['setImageNaturalSizeAttributes'](_0x1cf36d['getContainedElement']());}),_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2cea5e,_0x573901)=>{_0xe0b4f5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2cea5e,{'commandName':_0x573901['commandName'],'commandParams':_0x573901['commandReversedParams']});}),_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e5ab4,_0x16ae43){if(_0x2be257(_0x3e5ab4,_0x16ae43))return[_0x3e5ab4,_0x16ae43];if(_0x2be257(_0x16ae43,_0x3e5ab4))return[_0x16ae43,_0x3e5ab4];return null;});const _0x5d482e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2be257(_0x53f3fe,_0x3d64d7){const _0x3a3586=_0x5d482e['findIndex'](({type:_0x4b5304,subType:_0x5b1e96})=>_0x53f3fe['type']==_0x4b5304&&_0x53f3fe['subType']==_0x5b1e96),_0x338427=_0x5d482e['findIndex'](({type:_0x3c9532,subType:_0x29c8cb})=>_0x3d64d7['type']==_0x3c9532&&_0x3d64d7['subType']==_0x29c8cb);if(_0x3a3586<0x0||_0x338427<0x0)return!0x1;const _0x272ff4=_0x53f3fe['getFirstRange'](),_0x12584c=_0x3d64d7['getFirstRange']();if((0x0==_0x3a3586||0x1==_0x3a3586)&&0x2==_0x338427&&_0x272ff4['isIntersecting'](_0x12584c))return!0x0;if(0x2==_0x3a3586&&0x3==_0x338427){const _0x2f75e6=_0xe0b4f5['_findSuggestions'](_0x272ff4,'insertion')['filter'](({suggestion:_0x2674d7,meta:_0x53d020})=>_0x53d020['isOwn']&&'convertInlineImageToBlock'==_0x2674d7['subType']);if(_0x2f75e6['length']>0x1&&_0x12584c['end']['isEqual'](_0x272ff4['start']))return!0x0;if(0x1==_0x2f75e6['length']&&(_0x272ff4['start']['isEqual'](_0x12584c['end'])||_0x272ff4['end']['isEqual'](_0x12584c['start'])))return!0x0;}if(0x3==_0x3a3586&&0x3==_0x338427&&_0x272ff4['start']['isBefore'](_0x12584c['start'])){const _0xf72b4b=_0x272ff4['end']['nodeAfter'],_0x34f364=_0x12584c['start']['nodeBefore'];return _0x402058['isBlockImage'](_0xf72b4b)&&_0xf72b4b===_0x34f364;}return!0x1;}_0x53d50a['model']['document']['registerPostFixer'](()=>{let _0x18ee29=!0x1;const _0x2e513d=Array['from'](_0x53d50a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe46df6,data:_0x580999}of _0x2e513d){const {group:_0x192298,type:_0x4c615c,subType:_0xc0d92d,id:_0x5e5e81}=_0xe0b4f5['_splitMarkerName'](_0xe46df6);if('suggestion'==_0x192298&&_0xe0b4f5['hasSuggestion'](_0x5e5e81)){if('formatBlock'==_0x4c615c&&('imageStylePreApply'==_0xc0d92d||'imageStylePostApply'==_0xc0d92d)){const _0x5121e6=_0xe0b4f5['getSuggestion'](_0x5e5e81);if(_0x580999['newRange']){const _0x5a56d7=_0x5121e6['getFirstRange']()['getContainedElement']();if(_0x402058['isBlockImage'](_0x5a56d7))continue;_0xe0b4f5['discardSuggestion'](_0x5121e6),_0x18ee29=!0x0;}}if('insertion'==_0x4c615c&&'imageCaption'==_0xc0d92d&&!_0x580999['newRange']){const _0x4a4d34=_0xe0b4f5['getSuggestion'](_0x5e5e81);_0x4a4d34['next']&&_0x4a4d34['next']['isInContent']&&(_0xe0b4f5['discardSuggestion'](_0x4a4d34['next']),_0x18ee29=!0x0);}}}return _0x18ee29;}),this['_registerLegacyDescription'](_0xdd1f3b);}['_registerLegacyDescription'](_0x133abe){const _0x468d89=this['editor'],_0x1345bb=_0x468d89['locale'];_0x468d89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2087ba=>{if('formatBlock'!=_0x2087ba['type']&&'formatInline'!=_0x2087ba['type'])return;const {data:_0x1c37e2}=_0x2087ba;if(!_0x1c37e2||'imageStyle'!=_0x1c37e2['commandName'])return;const _0x4aced0=_0x1c37e2['commandParams'][0x0]['value'];return _0x1adcc9('side'===_0x4aced0?o(_0x1345bb,'FORMAT_SIDE_IMAGE'):_0x133abe[_0x4aced0]||_0x4aced0);function _0x1adcc9(_0x1a5226){return{'type':'format','content':o(_0x1345bb,'*Format:*\x20%0',_0x1a5226)};}});}}class ot extends _0x4d32e5{['afterInit'](){const _0x2fa9be=this['editor'],_0x188ae1=_0x2fa9be['commands']['get']('importWord'),_0x31c500=_0x2fa9be['commands']['get']('trackChanges');_0x188ae1&&(_0x188ae1['on']('execute',(_0x2e98ae,[,_0x4dec8c])=>{this['_trackChangesValueDuringImport']=_0x31c500['value'],_0x4dec8c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x188ae1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x188ae1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x31c500['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2fa9be['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4c792d,_0x388eaf){const {suggestions:_0x419fe2}=_0x388eaf,_0x5b4bf6=this['editor']['commands']['get']('trackChanges'),_0x516fa7=_0x5b4bf6['value'];this['_trackChangesValueDuringImport']!==_0x516fa7&&(_0x5b4bf6['execute'](),this['_trackChangesExecuted']=!0x0),_0x419fe2&&_0x419fe2['forEach'](({id:_0x4d63f8,type:_0x18fb0a,author:_0x141653,created_at:_0x311f9c})=>{const _0x2851ac={'id':_0x4d63f8,'type':_0x18fb0a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x141653,'createdAt':_0x311f9c?new Date(_0x311f9c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2851ac);});}constructor(_0x2e5752){super(_0x2e5752),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x4d32e5{['afterInit'](){const _0x58f411=this['editor'],_0x2fa5a0=_0x58f411['plugins']['get']('TrackChangesEditing');if(_0x58f411['plugins']['has']('IndentEditing')&&(_0x2fa5a0['enableCommand']('indent'),_0x2fa5a0['enableCommand']('outdent')),_0x58f411['plugins']['has']('IndentBlock')){for(const _0x4f0dc0 of['indentBlock','outdentBlock'])_0x2fa5a0['enableDefaultAttributesIntegration'](_0x4f0dc0);}const _0xe7c346=_0x58f411['locale'];_0x2fa5a0['registerBlockAttribute']('blockIndent'),_0x2fa5a0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xe7c346,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b2a4b=this['editor'],_0x27a2e0=_0x5b2a4b['locale'],_0x559bc2=_0x5b2a4b['plugins']['get']('TrackChangesEditing');_0x559bc2['descriptionFactory']['registerDescriptionCallback'](_0x23bb07=>{if('formatBlock'!=_0x23bb07['type'])return;const {data:_0x56ced9}=_0x23bb07;if(!_0x56ced9)return;if('indentBlock'!=_0x56ced9['commandName']&&'outdentBlock'!=_0x56ced9['commandName'])return;const _0x20aa8a=_0x23bb07['getItems']()[0x0],_0x48e5ab=_0x559bc2['descriptionFactory']['getItemLabel'](_0x20aa8a);return'indentBlock'==_0x56ced9['commandName']?{'type':'format','content':o(_0x27a2e0,'*Indent:*\x20%0',_0x48e5ab)}:'outdentBlock'==_0x56ced9['commandName']?{'type':'format','content':o(_0x27a2e0,'*Outdent:*\x20%0',_0x48e5ab)}:void 0x0;});}}class at extends _0x4d32e5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4d32e5{['afterInit'](){const _0x393504=this['editor'];if(!_0x393504['plugins']['has']('LinkEditing'))return;const _0x3f4ab7=_0x393504['plugins']['get']('TrackChangesEditing'),_0x53fb1b=_0x393504['commands']['get']('link');_0x3f4ab7['enableDefaultAttributesIntegration']('link'),_0x3f4ab7['enableDefaultAttributesIntegration']('unlink'),_0x3f4ab7['registerInlineAttribute']('linkHref');for(const _0x2bcda6 of _0x53fb1b['manualDecorators'])_0x3f4ab7['registerInlineAttribute'](_0x2bcda6['id']),_0x3f4ab7['descriptionFactory']['registerAttributeLabel'](_0x2bcda6['id'],'link\x20('+_0x2bcda6['label']['toLowerCase']()+')');_0x3f4ab7['descriptionFactory']['registerDescriptionCallback'](_0x53ee02=>{if('attribute'!=_0x53ee02['type'])return;const {data:_0x4ca1c5}=_0x53ee02;if(!_0x4ca1c5||'linkHref'!=_0x4ca1c5['key'])return;const _0x2909d9=_0x4ca1c5['newValue'],_0x59edbb=_0x393504['locale'];return{'type':'format','content':null==_0x2909d9?o(_0x59edbb,'*Remove\x20link*'):o(_0x59edbb,'*Set\x20link:*\x20%0','\x22'+_0x2909d9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x514635=this['editor'],_0x50e371=_0x514635['locale'];_0x514635['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x344207=>{if('formatInline'!=_0x344207['type'])return;const {data:_0x480fd3}=_0x344207;if(_0x480fd3){if('link'==_0x480fd3['commandName']){const _0x211b51=_0x480fd3['commandParams'][0x0];return{'type':'format','content':o(_0x50e371,'*Set\x20link:*\x20%0','\x22'+_0x211b51+'\x22')};}return'unlink'==_0x480fd3['commandName']?{'type':'format','content':o(_0x50e371,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4d32e5{['afterInit'](){const _0x5a1806=this['editor'],_0x50602f=_0x5a1806['locale'];if(!_0x5a1806['plugins']['has']('LegacyListEditing'))return;const _0x2e289e=_0x5a1806['plugins']['get']('TrackChangesEditing'),_0x1fe48c=_0x5a1806['plugins']['has']('LegacyTodoListEditing');function _0x156083(_0x26f838){return()=>{const _0x53f715=_0x5a1806['model']['document']['selection'],_0x42608d=_0x5a1806['commands']['get'](_0x26f838);if(_0x42608d['value'])return void _0x5a1806['execute']('paragraph',{});const _0x25ec0c=_0x26f838['slice'](0x0,-0x4),_0x9b2798=function(_0x4ae6e0,_0x1f8adc,_0x1d7aa1){let _0x585b5d=Array['from'](_0x4ae6e0)['filter'](_0x34d3b0=>function(_0xea0f55,_0x105a8e){return _0x105a8e['checkChild'](_0xea0f55['parent'],'listItem')&&!_0x105a8e['isObject'](_0xea0f55);}(_0x34d3b0,_0x1d7aa1));_0x585b5d=_0x585b5d['filter'](_0x4920b1=>!_0x4920b1['is']('element','listItem')||_0x4920b1['getAttribute']('listType')!=_0x1f8adc);const _0x61c63d=new Set();for(const _0x4cfb8f of _0x585b5d)_0x4cfb8f['is']('element','listItem')?_0x61c63d['add'](me(_0x4cfb8f)):_0x61c63d['add'](_0x4cfb8f);return Array['from'](_0x61c63d);}(_0x53f715['getSelectedBlocks'](),_0x25ec0c,_0x5a1806['model']['schema']);_0x5a1806['model']['change'](()=>{for(const _0x536fc3 of _0x9b2798)_0x2e289e['markBlockFormat'](_0x536fc3,{'commandName':_0x26f838,'commandParams':[{'forceValue':!_0x42608d['value']}],'formatGroupId':'blockName'},fe(_0x536fc3));});};}function _0xc5d7d4(_0x57a292){return()=>{const _0x1981f4=function(_0x117cf8){let _0x930571=Array['from'](_0x117cf8);const _0x2b253c=_0x930571['findIndex'](_0x32c609=>'listItem'!=_0x32c609['name']);return _0x2b253c>-0x1&&(_0x930571=_0x930571['slice'](0x0,_0x2b253c)),_0x930571;}(_0x5a1806['model']['document']['selection']['getSelectedBlocks']()),_0x301562=_0x5a1806['model']['createRange'](_0x5a1806['model']['createPositionAt'](_0x1981f4[0x0],'before'),_0x5a1806['model']['createPositionAt'](_0x1981f4[_0x1981f4['length']-0x1],'end'));_0x5a1806['model']['change'](()=>{_0x2e289e['markBlockFormat'](_0x301562,{'commandName':_0x57a292,'commandParams':[],'formatGroupId':'listIndent'},function(_0x56462c){const _0x1160cc=new Set();for(const _0x2416e2 of _0x56462c){let _0xe0316a=_0x2416e2['nextSibling'];for(;_0xe0316a&&_0xe0316a['getAttribute']('listIndent')>_0x2416e2['getAttribute']('listIndent');)_0x1160cc['add'](_0xe0316a),_0xe0316a=_0xe0316a['nextSibling'];}return Array['from'](_0x1160cc);}(_0x1981f4));});};}_0x2e289e['enableCommand']('numberedList',_0x156083('numberedList')),_0x2e289e['enableCommand']('bulletedList',_0x156083('bulletedList')),_0x1fe48c&&_0x2e289e['enableCommand']('todoList',_0x156083('todoList')),_0x2e289e['enableCommand']('indentList',_0xc5d7d4('indentList')),_0x2e289e['enableCommand']('outdentList',_0xc5d7d4('outdentList')),_0x1fe48c&&_0x2e289e['enableCommand']('checkTodoList',()=>{const _0xab267f=_0x5a1806['commands']['get']('checkTodoList'),_0x3e27fd=Array['from'](_0xab267f['_selectedElements']);_0x3e27fd['filter'](_0x5ed21a=>_0x5ed21a['getAttribute']('todoListChecked')!=_0xab267f['value']),_0x5a1806['model']['change'](()=>{for(const _0x4b1721 of _0x3e27fd)_0x2e289e['markBlockFormat'](_0x4b1721,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xab267f['value']}]});});}),_0x2e289e['descriptionFactory']['registerElementLabel']('listItem',_0x237796=>o(_0x50602f,'ELEMENT_LIST_ITEM',_0x237796)),_0x2e289e['descriptionFactory']['registerDescriptionCallback'](_0x253a32=>{if('formatBlock'!=_0x253a32['type']&&'formatInline'!=_0x253a32['type'])return;const {data:_0xb4e934}=_0x253a32;if(_0xb4e934){if('numberedList'==_0xb4e934['commandName']||'bulletedList'==_0xb4e934['commandName']||'todoList'==_0xb4e934['commandName'])switch(_0xb4e934['commandName']['replace']('List','')){case'bulleted':return _0x184174(o(_0x50602f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x184174(o(_0x50602f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x184174(o(_0x50602f,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb4e934['commandName'])return{'type':'format','content':o(_0x50602f,'*Indent:*\x20%0',o(_0x50602f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb4e934['commandName'])return{'type':'format','content':o(_0x50602f,'*Outdent:*\x20%0',o(_0x50602f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb4e934['commandName'])return _0xb4e934['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50602f,'*Check\x20item*')}:{'type':'format','content':o(_0x50602f,'*Uncheck\x20item*')};}function _0x184174(_0x5f4f45){return{'type':'format','content':o(_0x50602f,'*Change\x20to:*\x20%0',_0x5f4f45)};}});}}function me(_0x565ea3){const _0x5196d6=_0x565ea3['getAttribute']('listIndent');if(0x0==_0x5196d6)return _0x565ea3;let _0x2b3962=_0x565ea3;for(;_0x565ea3['previousSibling']&&_0x565ea3['previousSibling']['is']('element','listItem');){const _0x40174e=_0x565ea3['previousSibling']['getAttribute']('listIndent');if(_0x40174e==_0x5196d6)_0x2b3962=_0x565ea3['previousSibling'];else{if(_0x40174e<_0x5196d6)break;}_0x565ea3=_0x565ea3['previousSibling'];}return _0x2b3962;}function fe(_0x19538e){const _0xd9f730=[];if(_0x19538e['is']('element','listItem')&&_0x19538e['getAttribute']('listIndent')>0x0){let _0x3abbd6=_0x19538e['nextSibling'];for(;_0x3abbd6&&'listItem'==_0x3abbd6['name']&&_0x3abbd6['getAttribute']('listIndent')==_0x19538e['getAttribute']('listIndent');)_0xd9f730['push'](_0x3abbd6),_0x3abbd6=_0x3abbd6['nextSibling'];}return _0xd9f730;}class K extends _0x4d32e5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1fdb57=this['editor']['config']['get']('list.properties'),_0x264ed7=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fdb57['styles']&&_0x264ed7['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1fdb57['reversed']&&_0x264ed7['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1fdb57['startIndex']&&_0x264ed7['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x264ed7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x560316,_0x32c839={}){const _0x444920=this['editor']['plugins']['get']('TrackChangesEditing'),_0x370230=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x444920['markMultiRangeBlockFormat'](_0x370230,{'commandName':'listStyle','commandParams':[{'type':_0x32c839['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5b5504,_0x3de0ec={}){const _0x2bd4f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43898a=this['_getSuggestionBlocks'](_0xb9148=>_0xb9148['is']('element','listItem')&&'numbered'===_0xb9148['getAttribute']('listType'));if(_0x43898a['length']<0x1)return;const _0x37bf0f=_0x43898a['map'](_0x486fcb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x486fcb,'before'),this['editor']['model']['createPositionAt'](_0x486fcb,0x0)));this['editor']['model']['change'](()=>{_0x2bd4f6['markMultiRangeBlockFormat'](_0x37bf0f,{'commandName':'listReversed','commandParams':[{'reversed':_0x3de0ec['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3c1dfa,_0x21d898={}){const _0x35160b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13628d=this['_getSuggestionBlocks'](_0xd88095=>_0xd88095['is']('element','listItem')&&'numbered'===_0xd88095['getAttribute']('listType'));if(_0x13628d['length']<0x1)return;const _0x3bded7=_0x13628d['map'](_0x5f5dab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f5dab,'before'),this['editor']['model']['createPositionAt'](_0x5f5dab,0x0)));this['editor']['model']['change'](()=>{_0x35160b['markMultiRangeBlockFormat'](_0x3bded7,{'commandName':'listStart','commandParams':[{'startIndex':_0x21d898['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xd7d9e3){if('formatBlock'!=_0xd7d9e3['type']&&'formatInline'!=_0xd7d9e3['type'])return;const _0xe81e48=this['editor']['locale'],{data:_0x340968}=_0xd7d9e3;if(!_0x340968)return;let _0x175e9c,_0x588e15;switch(_0x340968['commandName']){case'listStyle':_0x175e9c='*Change\x20to:*\x20%0',_0x588e15={'type':'format','content':o(_0xe81e48,_0x175e9c,o(_0xe81e48,this['_getTranslationKeyForListStyle'](_0x340968['commandParams'][0x0]['type'])))};break;case'listReversed':_0x175e9c=_0x340968['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x588e15={'type':'format','content':o(_0xe81e48,_0x175e9c)};break;case'listStart':_0x175e9c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x588e15={'type':'format','content':o(_0xe81e48,_0x175e9c,_0x340968['commandParams'][0x0]['startIndex'])};}return _0x588e15;}['_getSuggestionBlocksForListStyle'](){var _0x418bd4,_0x24b3f0,_0x165522,_0x23aab0;const _0x179c1a=this['editor']['plugins']['get']('LegacyListUtils');let _0x5dfb22=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x418bd4=_0x5dfb22[0x0])||void 0x0===_0x418bd4?void 0x0:_0x418bd4['is']('element','listItem'))&&_0x5dfb22['unshift'](..._0x179c1a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x24b3f0=_0x5dfb22[_0x5dfb22['length']-0x1])||void 0x0===_0x24b3f0?void 0x0:_0x24b3f0['is']('element','listItem'))&&_0x5dfb22['push'](..._0x179c1a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5dfb22=[...new Set(_0x5dfb22)],(null===(_0x23aab0=null===(_0x165522=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x165522?void 0x0:_0x165522['parent'])||void 0x0===_0x23aab0?void 0x0:_0x23aab0['is']('element','listItem'))&&(_0x5dfb22=_0x5dfb22['filter'](_0xe578a8=>_0xe578a8['is']('element','listItem'))),_0x5dfb22;}['_getSuggestionBlocks'](_0xfb1690){const _0x423ecc=this['editor']['plugins']['get']('LegacyListUtils');let _0x57292e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xfb1690)['map'](_0x122fa7=>{const _0x1a657d=this['editor']['model']['createPositionAt'](_0x122fa7,0x0);return[..._0x423ecc['getSiblingNodes'](_0x1a657d,'backward'),..._0x423ecc['getSiblingNodes'](_0x1a657d,'forward')];})['flat']();return _0x57292e=[...new Set(_0x57292e)],_0x57292e;}['_getTranslationKeyForListStyle'](_0x3a236e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3a236e)||'default')['toUpperCase']()+'_LIST_'+_0x3a236e['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4d32e5{['afterInit'](){const _0x52222a=this['editor'];if(!_0x52222a['plugins']['has']('MediaEmbedEditing'))return;const _0x22a70e=_0x52222a['plugins']['get']('TrackChangesEditing'),_0x27be9a=_0x52222a['locale'];_0x22a70e['enableCommand']('mediaEmbed'),_0x22a70e['descriptionFactory']['registerElementLabel']('media',_0xc3b09b=>o(_0x27be9a,'ELEMENT_MEDIA',_0xc3b09b)),_0x52222a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d77de,{writer:_0x3760ea,options:_0x3894b4})=>{if(_0x3894b4['showSuggestionHighlights'])return _0x3760ea['createEmptyElement']('div');},'converterPriority':'high'}),_0x52222a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x35f2d5,_0x48a6d7,_0x5c56f2)=>{_0x5c56f2['options']['showSuggestionHighlights']&&_0x35f2d5['stop']();},{'priority':'high'});}}class gt extends _0x4d32e5{['afterInit'](){const _0x452582=this['editor'];_0x452582['plugins']['has']('MentionEditing')&&_0x452582['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4d32e5{['afterInit'](){const _0x32fd80=this['editor'],_0x3566d0=_0x32fd80['plugins']['get']('TrackChangesEditing');_0x32fd80['plugins']['has']('MultiLevelList')&&(_0x3566d0['enableDefaultAttributesIntegration']('multiLevelList'),_0x3566d0['registerBlockAttribute']('listMarkerStyle'),_0x3566d0['descriptionFactory']['registerDescriptionCallback'](_0x36c333=>this['handleDescriptions'](_0x36c333)));}['handleDescriptions'](_0x3f3635){const _0x164d7f=this['editor']['locale'],{data:_0x40aab8}=_0x3f3635,_0x4d2ca9={'type':'format','content':''};if(_0x40aab8&&'listMarkerStyle'==_0x40aab8['key']){if(!_0x40aab8['oldValue'])return{'type':'format','content':o(_0x164d7f,'*Set\x20format:*\x20%0',o(_0x164d7f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x40aab8['newValue']+')'};if(!_0x40aab8['newValue']){let _0x33242f=_0x3f3635['head'];for(;_0x33242f;){if(_0x33242f['data']&&'listType'==_0x33242f['data']['key']&&_0x33242f['data']['newValue'])return _0x4d2ca9;_0x33242f=_0x33242f['next'];}return{'type':'format','content':o(_0x164d7f,'*Remove\x20format:*\x20%0',o(_0x164d7f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x40aab8['oldValue']+')'};}}}}class mt extends _0x4d32e5{['afterInit'](){const _0x132bfe=this['editor'];if(!_0x132bfe['plugins']['has']('PageBreakEditing'))return;_0x132bfe['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4b5688=_0x132bfe['plugins']['get']('TrackChangesEditing'),_0x1adf91=_0x132bfe['locale'];_0x4b5688['descriptionFactory']['registerElementLabel']('pageBreak',_0x2d81fe=>o(_0x1adf91,'ELEMENT_PAGE_BREAK',_0x2d81fe));}}class dt extends _0x4d32e5{['afterInit'](){const _0x466d44=this['editor'];if(!_0x466d44['plugins']['has']('Paragraph'))return;const _0x24e2a7=_0x466d44['locale'],_0x5ca5ce=_0x466d44['plugins']['get']('TrackChangesEditing');_0x5ca5ce['descriptionFactory']['registerElementLabel']('paragraph',_0x235aca=>o(_0x24e2a7,'ELEMENT_PARAGRAPH',_0x235aca)),_0x5ca5ce['enableDefaultAttributesIntegration']('paragraph'),_0x5ca5ce['enableCommand']('insertParagraph'),_0x466d44['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x466d44),{'priority':'highest'}),_0x466d44['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37e244,_0x2cf29b,_0x5249e0)=>{_0x5249e0['options']['showSuggestionHighlights']&&nr(_0x466d44,{'showActiveMarker':!0x1})(_0x37e244,_0x2cf29b,_0x5249e0);},{'priority':'highest'});const _0x29a3e5=_0x5ca5ce['descriptionFactory'];_0x29a3e5['registerDescriptionCallback'](_0x24179f=>{if('insertion'!==_0x24179f['type'])return;const {start:_0x5945fb,end:_0x4d8297}=_0x24179f['getFirstRange']();if(!_0x5945fb['isTouching'](_0x4d8297)||!_0x5945fb['nodeAfter'])return;const _0x347398=_0x466d44['model']['schema'],_0x2ede7b=_0x5945fb['nodeAfter'];return _0x347398['isBlock'](_0x2ede7b)&&!_0x347398['isLimit'](_0x2ede7b)&&_0x347398['checkChild'](_0x2ede7b,'$text')?{'type':'insertion','content':o(_0x24e2a7,'*Insert:*\x20%0',_0x29a3e5['getItemLabel'](_0x2ede7b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37b28e=this['editor'],_0x15cbf=_0x37b28e['locale'];_0x37b28e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb56837=>{if('formatBlock'!=_0xb56837['type'])return;const {data:_0x53c8e9}=_0xb56837;return _0x53c8e9&&'paragraph'==_0x53c8e9['commandName']?{'type':'format','content':o(_0x15cbf,'*Change\x20to:*\x20%0',o(_0x15cbf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x54fb34,{showActiveMarker:_0x3f690e=!0x0}={}){return(_0x582764,_0x340ead,_0x484016)=>{const _0x1506d2=_0x54fb34['plugins']['get']('TrackChangesEditing'),_0x2583f1=_0x340ead['markerRange']['start'],_0xccac7a=_0x340ead['markerRange']['end'],_0x2e4ae5=_0x54fb34['model']['schema'];if(!_0x2583f1['isTouching'](_0xccac7a)||!_0x2583f1['nodeAfter'])return;const _0x56d22f=_0x2583f1['nodeAfter'];if(_0x2e4ae5['isBlock'](_0x56d22f)&&!_0x2e4ae5['isLimit'](_0x56d22f)&&_0x2e4ae5['checkChild'](_0x56d22f,'$text')){if(!_0x484016['consumable']['consume'](_0x340ead['markerRange'],_0x582764['name']))return;const _0x50fd67=_0x484016['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5f116b=_0x484016['mapper']['toViewPosition'](_0xccac7a);_0x3f690e&&_0x1506d2['activeMarkers']['includes'](_0x340ead['markerName'])&&_0x484016['writer']['addClass']('ck-suggestion-marker--active',_0x50fd67),_0x484016['writer']['insert'](_0x5f116b,_0x50fd67),_0x484016['mapper']['bindElementToMarker'](_0x50fd67,_0x340ead['markerName']);}};}class pt extends _0x4d32e5{['afterInit'](){const _0x5ae771=this['editor'];if(!_0x5ae771['plugins']['has']('RemoveFormatEditing'))return;_0x5ae771['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3814=this['editor'];_0x2c3814['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cd57c=>{if('formatBlock'!=_0x2cd57c['type']&&'formatInline'!=_0x2cd57c['type'])return;const {data:_0x4a2f1a}=_0x2cd57c;return _0x4a2f1a&&'removeFormat'==_0x4a2f1a['commandName']?{'type':'format','content':o(_0x2c3814['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4d32e5{['afterInit'](){const _0x5e4d30=this['editor'];if(!_0x5e4d30['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x170734=_0x5e4d30['plugins']['get']('TrackChangesEditing');_0x170734['enableCommand']('goToPreviousRestrictedEditingException'),_0x170734['enableCommand']('goToNextRestrictedEditingException');const _0x780af1=_0x5e4d30['plugins']['get']('RestrictedEditingModeEditing');_0x780af1['enableCommand']('trackChanges'),_0x780af1['enableCommand']('acceptSuggestion'),_0x780af1['enableCommand']('discardSuggestion'),_0x780af1['enableCommand']('acceptAllSuggestions'),_0x780af1['enableCommand']('discardAllSuggestions'),_0x780af1['enableCommand']('acceptSelectedSuggestions'),_0x780af1['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4d32e5{static get['requires'](){return[_0x52b05a];}['init'](){const _0xe35cb=this['editor'],_0x5d9b0c=_0xe35cb['plugins']['get']('TrackChangesEditing');_0x5d9b0c['enableCommand']('shiftEnter'),_0xe35cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0xe35cb),{'priority':'high'}),_0xe35cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0xe35cb),{'priority':'high'}),_0xe35cb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b987a,_0x3f12aa,_0x22e167)=>{_0x22e167['options']['showSuggestionHighlights']&&de(_0xe35cb,{'showActiveMarker':!0x1})(_0x2b987a,_0x3f12aa,_0x22e167);}),_0x5d9b0c['descriptionFactory']['registerElementLabel']('softBreak',_0x519474=>o(_0xe35cb['locale'],'ELEMENT_LINE_BREAK',_0x519474));}}function de(_0x621ef0,{showActiveMarker:_0x375343=!0x0}={}){return(_0x924c56,_0x5804d4,_0x1b9f89)=>{const _0x192062=_0x621ef0['plugins']['get']('TrackChangesEditing');if(!_0x1b9f89['consumable']['test'](_0x5804d4['markerRange'],_0x924c56['name']))return;const _0x261f36=_0x621ef0['model'];for(const _0x219aa7 of _0x5804d4['markerRange']['getItems']()){if(!_0x219aa7['is']('element','softBreak'))continue;const _0x411c41='deletion'==_0x5804d4['markerName']['split'](':')[0x1]?'merge':'split',_0x5a796c=_0x1b9f89['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x411c41}),_0x3aa8d4=_0x1b9f89['mapper']['toViewPosition'](_0x261f36['createPositionBefore'](_0x219aa7));_0x375343&&_0x192062['activeMarkers']['includes'](_0x5804d4['markerName'])&&_0x1b9f89['writer']['addClass']('ck-suggestion-marker--active',_0x5a796c),_0x1b9f89['writer']['insert'](_0x3aa8d4,_0x5a796c),_0x1b9f89['mapper']['bindElementToMarker'](_0x5a796c,_0x5804d4['markerName']);}};}class wt extends _0x4d32e5{['afterInit'](){const _0x350991=this['editor'],_0x27eb42=_0x350991['model'],_0x69cc56=_0x350991['locale'];if(!_0x350991['plugins']['has']('StandardEditingModeEditing'))return;const _0x21481f=_0x350991['plugins']['get']('TrackChangesEditing'),_0x15dc73='restrictedEditingException',_0x3163a0=_0x350991['commands']['get'](_0x15dc73);_0x21481f['enableCommand'](_0x15dc73,(_0x51de62,_0xc6ae67={})=>{const _0x3ce2d1=_0x27eb42['document']['selection'];if(_0x3ce2d1['isCollapsed'])return void _0x51de62(_0xc6ae67);const _0x40f12f=void 0x0!==_0xc6ae67['forceValue']?_0xc6ae67['forceValue']:!_0x3163a0['value'];_0x27eb42['change'](()=>{const _0x143acb=Array['from'](_0x3ce2d1['getRanges']());for(const _0x437ea8 of _0x143acb){const _0x3b9fc0=_0x40f12f?[_0x437ea8]:io(_0x15dc73,_0x437ea8,_0x27eb42);for(const _0x42190f of _0x3b9fc0)_0x21481f['markInlineFormat'](_0x42190f,{'commandName':_0x15dc73,'commandParams':[{'forceValue':_0x40f12f}]});}});}),_0x21481f['descriptionFactory']['registerDescriptionCallback'](_0x17f61e=>{if('formatBlock'!=_0x17f61e['type']&&'formatInline'!=_0x17f61e['type'])return;const {data:_0x40764e}=_0x17f61e;return _0x40764e&&_0x40764e['commandName']==_0x15dc73?_0x40764e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x69cc56,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x69cc56,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4d32e5{['afterInit'](){const _0x58d950=this['editor'];if(!_0x58d950['plugins']['has']('Style')||!_0x58d950['plugins']['has']('DataSchema'))return;const _0x2f1bf3=_0x58d950['plugins']['get']('TrackChangesEditing'),_0x230b27=_0x58d950['locale'],_0x558424=_0x58d950['config']['get']('style')||{},_0x3d819c=_0x58d950['plugins']['get']('GeneralHtmlSupport'),_0x46c442=_0x58d950['plugins']['get']('StyleUtils')['normalizeConfig'](_0x58d950['plugins']['get']('DataSchema'),_0x558424['definitions']);_0x2f1bf3['enableDefaultAttributesIntegration']('style');const _0x1e7e5d=new Set();for(const _0x155cef of _0x46c442['block']){const _0x553a44=_0x3d819c['getGhsAttributeNameForElement'](_0x155cef['element']);_0x1e7e5d['add'](_0x553a44);}const _0x11d263=new Set();for(const _0x574e7f of _0x46c442['inline']){const _0x580c79=_0x3d819c['getGhsAttributeNameForElement'](_0x574e7f['element']);_0x11d263['add'](_0x580c79);for(const _0x542cd5 of _0x574e7f['ghsAttributes'])_0x11d263['add'](_0x542cd5);}for(const _0x22a4c0 of _0x1e7e5d)_0x2f1bf3['registerBlockAttribute'](_0x22a4c0),_0x2f1bf3['descriptionFactory']['registerAttributeLabel'](_0x22a4c0,o(_0x230b27,'FORMAT_STYLE'));for(const _0x2d1252 of _0x11d263)_0x2f1bf3['registerInlineAttribute'](_0x2d1252),_0x2f1bf3['descriptionFactory']['registerAttributeLabel'](_0x2d1252,o(_0x230b27,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x493572=this['editor'],_0x3305d9=_0x493572['locale'];_0x493572['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fb780=>{if('formatBlock'!=_0x2fb780['type']&&'formatInline'!=_0x2fb780['type'])return;const {data:_0x23f1b1}=_0x2fb780;return _0x23f1b1&&'style'===_0x23f1b1['commandName']?_0x23f1b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3305d9,'*Set\x20format:*\x20%0',_0x23f1b1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3305d9,'*Remove\x20format:*\x20%0',_0x23f1b1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4d32e5{['afterInit'](){const _0x234b11=this['editor'],_0x33b1dd=_0x234b11['model']['document']['selection'];if(!_0x234b11['plugins']['has']('TableEditing'))return;const _0x5dbd53=_0x234b11['locale'],_0x2f1960=_0x234b11['plugins']['get']('TrackChangesEditing'),_0x140dd7=_0x234b11['plugins']['get']('TableUtils');_0x2f1960['descriptionFactory']['registerElementLabel']('table',_0x4df90a=>o(_0x5dbd53,'ELEMENT_TABLE',_0x4df90a)),this['_setupColumnsRowsFixing'](),_0x2f1960['enableCommand']('insertTable'),_0x2f1960['enableCommand']('selectTableRow'),_0x2f1960['enableCommand']('selectTableColumn');for(const _0x3dee06 of['insertTableRowAbove','insertTableRowBelow']){const _0x1ae83e=_0x234b11['commands']['get'](_0x3dee06);_0x2f1960['enableCommand'](_0x3dee06,_0x2538ab=>{_0x234b11['model']['change'](_0x201a59=>{_0x2538ab();const _0x567ad2='above'===_0x1ae83e['order'],_0x2a2c83=_0x140dd7['getSelectionAffectedTableCells'](_0x33b1dd),_0x12147b=_0x140dd7['getRowIndexes'](_0x2a2c83),_0x4f5767=_0x567ad2?_0x12147b['first']-0x1:_0x12147b['last']+0x1,_0x540086=_0x2a2c83[0x0]['findAncestor']('table'),_0x3586ad=_0x140dd7['createTableWalker'](_0x540086,{'startRow':_0x4f5767,'endRow':_0x4f5767}),_0x2f4106=Array['from'](_0x3586ad)['map'](_0x582109=>_0x201a59['createRangeOn'](_0x582109['cell']));_0x2f1960['markMultiRangeInsertion'](_0x2f4106,'tableRow');});});}for(const _0x577832 of['insertTableColumnLeft','insertTableColumnRight']){const _0x524705=_0x234b11['commands']['get'](_0x577832);_0x2f1960['enableCommand'](_0x577832,_0x41cc3c=>{_0x234b11['model']['change'](_0x30bed8=>{_0x41cc3c();const _0x311887='left'===_0x524705['order'],_0x5247db=_0x140dd7['getSelectionAffectedTableCells'](_0x33b1dd),_0x5ea001=_0x140dd7['getColumnIndexes'](_0x5247db),_0xd766c9=_0x311887?_0x5ea001['first']-0x1:_0x5ea001['last']+0x1,_0xb4cf93=_0x5247db[0x0]['findAncestor']('table'),_0x4b5a81=_0x140dd7['createTableWalker'](_0xb4cf93,{'startRow':0x0,'column':_0xd766c9,'includeAllSlots':!0x1}),_0x449b82=Array['from'](_0x4b5a81)['map'](_0x5d8ead=>_0x30bed8['createRangeOn'](_0x5d8ead['cell']));_0x2f1960['markMultiRangeInsertion'](_0x449b82,'tableColumn');});});}for(const _0x13e477 of['removeTableRow','removeTableColumn']){const _0x5bf27c=_0x13e477['substr'](0xb),_0x191634=_0x5bf27c['toLowerCase'](),_0x15d234=_0x191634['substr'](0x0,0x3)+'span',_0xbdcdf8='table'+_0x5bf27c,_0x59252d='min'+_0x5bf27c,_0x2a5c6a='max'+_0x5bf27c;_0x2f1960['enableCommand'](_0x13e477,()=>{_0x234b11['model']['change'](_0x5e4f47=>{const _0x172603=_0x140dd7['getSelectionAffectedTableCells'](_0x33b1dd),_0x5c1207=_0x172603[0x0]['findAncestor']('table');let _0x34c600;if('removeTableRow'==_0x13e477){const _0x2e7db7=_0x140dd7['getRowIndexes'](_0x172603);_0x34c600={'startRow':_0x2e7db7['first'],'endRow':_0x2e7db7['last'],'includeAllSlots':!0x0};}else{const _0x5f426e=_0x140dd7['getColumnIndexes'](_0x172603);_0x34c600={'startColumn':_0x5f426e['first'],'endColumn':_0x5f426e['last'],'includeAllSlots':!0x0};}const _0x25cceb=_0x140dd7['createTableWalker'](_0x5c1207,_0x34c600),_0x48d8c6=Array['from'](_0x25cceb)['map'](({cell:_0x5e8013})=>_0x5e8013),_0x24e22=Ee(_0x48d8c6['filter'](_0x50661a=>_0x50661a['hasAttribute'](_0x15d234))),_0x52daba=Ee(_0x48d8c6['filter'](_0xcdba6c=>!_0xcdba6c['hasAttribute'](_0x15d234)))['map'](_0x1e94dc=>_0x5e4f47['createRangeOn'](_0x1e94dc)),_0xef89cf=_0x2f1960['markMultiRangeDeletion'](_0x52daba,_0xbdcdf8);if(_0xef89cf&&('tableRow'==_0xef89cf['subType']||'tableColumn'==_0xef89cf['subType'])){const _0x37cf05=this['_getSuggestionCoords'](_0xef89cf);for(const _0xfcbd34 of _0x24e22){const _0x4d9d64=_0x5e4f47['createRangeOn'](_0xfcbd34),_0x47722e=_0x140dd7['getCellLocation'](_0xfcbd34),_0x5a9cb5=_0xfcbd34['getAttribute'](_0x15d234)-0x1,_0x59b572=_0x37cf05[_0x59252d],_0x3c5227=_0x37cf05[_0x2a5c6a];_0x59b572<=_0x47722e[_0x191634]&&_0x47722e[_0x191634]+_0x5a9cb5<=_0x3c5227&&_0xef89cf['addRange'](_0x4d9d64);}}});});}function _0x9f9d5b(_0x24aaf5){const _0x42bc0c=Array['from'](_0x33b1dd['getRanges']())['map'](_0xaf0058=>_0x1ed262['fromRange'](_0xaf0058));_0x234b11['model']['change'](_0x1827fa=>{const _0x380248=_0x1827fa['batch'];_0x24aaf5=_0x24aaf5['filter'](_0x1fc836=>'$graveyard'!=_0x1fc836['root']['rootName']),_0x1827fa['setSelection'](_0x24aaf5),_0x234b11['commands']['get']('removeTableRow')['refresh'](),_0x234b11['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x234b11['model']['enqueueChange'](()=>{_0x234b11['model']['enqueueChange'](_0x380248,_0x5ba0f2=>{const _0x44a7e8=_0x42bc0c['filter'](_0x29a457=>'$graveyard'!=_0x29a457['root']['rootName']);_0x44a7e8['length']>0x0&&_0x5ba0f2['setSelection'](_0x44a7e8);for(const _0xa9c6c4 of _0x42bc0c)_0xa9c6c4['detach']();});});});}function _0xedbec(_0x53d5b3){_0x234b11['model']['change'](_0x417d17=>{const _0x35a5ea=Array['from'](_0x33b1dd['getRanges']())['map'](_0x15746d=>_0x1ed262['fromRange'](_0x15746d)),_0x163aa4=[];for(const _0x16748c of _0x53d5b3)for(const _0x5ecc0a of _0x16748c['getItems']({'shallow':!0x0}))_0x163aa4['push'](_0x5ecc0a);for(const _0x5411a4 of _0x163aa4)'$graveyard'!=_0x5411a4['root']['rootName']&&(_0x417d17['setSelection'](_0x417d17['createPositionAt'](_0x5411a4,0x0)),_0x234b11['commands']['get']('removeTableColumn')['refresh'](),_0x234b11['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x444197=_0x35a5ea['filter'](_0x31cced=>'$graveyard'!=_0x31cced['root']['rootName']);_0x444197['length']>0x0&&_0x417d17['setSelection'](_0x444197);for(const _0x32904c of _0x35a5ea)_0x32904c['detach']();});}function _0x5740fd(_0x428491,_0x3b9f79){return _0x3b9f79['every'](_0x3a5ea1=>_0x428491['some'](_0x5310f0=>_0x5310f0['end']['isEqual'](_0x3a5ea1['start'])||_0x3a5ea1['end']['isEqual'](_0x5310f0['start'])));}function _0x3e1600(_0x121ec6,_0x3720f3){return _0x121ec6['some'](_0x4a2c1f=>_0x3720f3['some'](_0x3f0698=>_0x4a2c1f['end']['isTouching'](_0x3f0698['start'])));}_0x234b11['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43e4bd,_0x385d1f,_0x42bfd2)=>{if(!_0x42bfd2['options']['showSuggestionHighlights'])return;const _0x4d59ed=_0x385d1f['item'];if(!_0x4d59ed)return;const _0x4d0f51=_0x42bfd2['mapper']['toViewElement'](_0x4d59ed);function _0x9315e7(_0x1c1c4d){return Array['isArray'](_0x1c1c4d)?_0x1c1c4d:[_0x1c1c4d];}_0x4d0f51&&'tableCell'===_0x4d59ed['name']&&_0x49b737(_0x4d0f51,_0x42bfd2['writer'],(_0x4e0603,_0x35f94e,_0x29e8c3)=>_0x29e8c3['addClass'](_0x9315e7(_0x35f94e['classes']),_0x4e0603),(_0x4908cb,_0x4274bc,_0x58951e)=>_0x58951e['removeClass'](_0x9315e7(_0x4274bc['classes']),_0x4908cb));},{'priority':'highest'}),_0x2f1960['descriptionFactory']['registerDescriptionCallback'](_0x30844c=>{if('insertion'!=_0x30844c['type']&&'deletion'!=_0x30844c['type'])return;const _0x20b643=_0x30844c['getContainedElement']();if(null!=_0x20b643&&_0x20b643['is']('element','table')){if('insertion'==_0x30844c['type']){const _0x1992fa=_0x30844c['getItems']()['filter'](_0x4fb894=>_0x4fb894['is']('$textProxy'))['map'](_0x46ba20=>_0x46ba20['data']);if(_0x1992fa['length'])return{'type':'insertion','content':o(_0x5dbd53,'*Insert:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1992fa['join']('\x20')+'\x22'))};}if('deletion'==_0x30844c['type']){const _0x1ad559=_0x30844c['getItems']()['filter'](_0x4c1e4e=>_0x4c1e4e['is']('$textProxy'))['map'](_0x183bf6=>_0x183bf6['data']);if(_0x1ad559['length'])return{'type':'deletion','content':o(_0x5dbd53,'*Remove:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1ad559['join']('\x20')+'\x22'))};}}}),_0x2f1960['descriptionFactory']['registerDescriptionCallback'](_0x28141d=>{if('tableRow'==_0x28141d['subType']){const _0x5023d0=_0x28141d['getItems']()['filter'](_0x59ddca=>_0x59ddca['is']('$textProxy'))['map'](_0x4b8624=>_0x4b8624['data']),_0x1ffcbf=this['_getSuggestionCoords'](_0x28141d),_0x2fc96f=_0x1ffcbf['maxRow']-_0x1ffcbf['minRow']+0x1;if('insertion'==_0x28141d['type'])return _0x5023d0['length']?{'type':'insertion','content':o(_0x5dbd53,'*Insert:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fc96f,'\x22'+_0x5023d0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5dbd53,'*Insert:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_ROW',_0x2fc96f))};if('deletion'==_0x28141d['type'])return _0x5023d0['length']?{'type':'deletion','content':o(_0x5dbd53,'*Remove:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fc96f,'\x22'+_0x5023d0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5dbd53,'*Remove:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_ROW',_0x2fc96f))};}if('tableColumn'==_0x28141d['subType']){const _0x5bf804=_0x28141d['getItems']()['filter'](_0x3dd3d6=>_0x3dd3d6['is']('$textProxy'))['map'](_0x5c1098=>_0x5c1098['data']),_0x233eb5=this['_getSuggestionCoords'](_0x28141d),_0x12250a=_0x233eb5['maxColumn']-_0x233eb5['minColumn']+0x1;if('insertion'==_0x28141d['type'])return _0x5bf804['length']?{'type':'insertion','content':o(_0x5dbd53,'*Insert:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x12250a,'\x22'+_0x5bf804['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5dbd53,'*Insert:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_COLUMN',_0x12250a))};if('deletion'==_0x28141d['type'])return _0x5bf804['length']?{'type':'deletion','content':o(_0x5dbd53,'*Remove:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x12250a,'\x22'+_0x5bf804['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5dbd53,'*Remove:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_COLUMN',_0x12250a))};}}),_0x2f1960['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9f9d5b),_0x2f1960['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9f9d5b),_0x2f1960['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xedbec),_0x2f1960['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xedbec),_0x2f1960['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5740fd),_0x2f1960['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5740fd),_0x2f1960['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3e1600),_0x2f1960['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3e1600);}['_acceptFormatSuggestionCallbackFactory'](){const _0xfe78b4=this['editor'],_0x312381=_0xfe78b4['model']['document']['selection'];return(_0x2268b9,_0x106351)=>{_0xfe78b4['model']['change'](_0x527671=>{const {commandName:_0x4cc6e5,commandParams:_0x290e64}=_0x106351;let _0x29047c=_0x2268b9[0x0]['end']['nodeBefore'];_0x290e64&&_0x290e64[0x0]&&!0x1===_0x290e64[0x0]['forceValue']&&(_0x29047c=_0x2268b9[0x0]['start']['nodeAfter']);const _0x26db26=_0x527671['createRangeIn'](_0x29047c);if('$graveyard'==_0x26db26['root']['rootName'])return;const _0xb0795a=Array['from'](_0x312381['getRanges']())['map'](_0xe293bc=>_0x1ed262['fromRange'](_0xe293bc));_0x527671['setSelection'](_0x26db26),_0xfe78b4['commands']['get'](_0x4cc6e5)['refresh'](),_0x290e64['push']({'forceDefaultExecution':!0x0}),_0xfe78b4['execute'](_0x4cc6e5,..._0x290e64);const _0x38584d=_0xb0795a['filter'](_0x4f798d=>'$graveyard'!=_0x4f798d['root']['rootName']);_0x38584d['length']>0x0&&_0x527671['setSelection'](_0x38584d);for(const _0x8fceea of _0xb0795a)_0x8fceea['detach']();});};}['_getCoordsForCells'](_0xcdec5f){const _0x4dddc8=this['editor']['plugins']['get']('TableUtils');let _0x36514b=Number['MAX_SAFE_INTEGER'],_0x82d340=Number['MIN_SAFE_INTEGER'],_0x2977bb=Number['MAX_SAFE_INTEGER'],_0x34e26e=Number['MIN_SAFE_INTEGER'];for(const _0x103090 of _0xcdec5f){if('$graveyard'==_0x103090['root']['rootName'])continue;const {row:_0x52cec6,column:_0x589a91}=_0x4dddc8['getCellLocation'](_0x103090),_0xfe8ae7=_0x103090['hasAttribute']('rowspan')?_0x103090['getAttribute']('rowspan')-0x1:0x0,_0x1baf1f=_0x103090['hasAttribute']('colspan')?_0x103090['getAttribute']('colspan')-0x1:0x0;_0x36514b=_0x52cec6<_0x36514b?_0x52cec6:_0x36514b,_0x82d340=_0x52cec6+_0xfe8ae7>_0x82d340?_0x52cec6+_0xfe8ae7:_0x82d340,_0x2977bb=_0x589a91<_0x2977bb?_0x589a91:_0x2977bb,_0x34e26e=_0x589a91+_0x1baf1f>_0x34e26e?_0x589a91+_0x1baf1f:_0x34e26e;}return{'minRow':_0x36514b,'maxRow':_0x82d340,'minColumn':_0x2977bb,'maxColumn':_0x34e26e};}['_setupColumnsRowsFixing'](){const _0x318d40=this['editor'],_0x510188=_0x318d40['plugins']['get']('TrackChangesEditing'),_0x227012=_0x318d40['plugins']['get']('TableUtils');_0x318d40['model']['document']['on']('change:data',()=>{const _0x337318=Array['from'](_0x318d40['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31cc65,data:_0x1ec3d6}of _0x337318){const {group:_0x2bcbb7,id:_0x3cfef3,subType:_0xe73fb6}=_0x510188['_splitMarkerName'](_0x31cc65);if('suggestion'!=_0x2bcbb7)continue;if(null!=_0x1ec3d6['oldRange'])continue;const _0x364b75=_0x510188['getSuggestion'](_0x3cfef3);this['_tablePostFixingSubtypes']['includes'](_0xe73fb6)&&this['_tableSuggestions']['add'](_0x364b75);}},{'priority':'low'});const _0xd11cc7=(_0x250238,_0x372e7b)=>{let _0x3503b1=!0x1;const _0x2afeb4=_0x372e7b['createRangeOn'](_0x250238),_0x15e4e0=_0x250238['findAncestor']('table'),_0x63e2a4=_0x227012['getCellLocation'](_0x250238);for(const _0x5192fa of this['_tableSuggestions']){const _0x59e163=_0x5192fa['subType'],_0x592f30=_0x59e163['startsWith']('tablePaste'),_0x2cc3da=_0x59e163['substr'](_0x592f30?0xa:0x5),_0x103600=_0x2cc3da['toLowerCase'](),_0x18422f=_0x103600['substr'](0x0,0x3)+'span',_0x340329='min'+_0x2cc3da,_0x3d3542='max'+_0x2cc3da;if(!_0x5192fa['isInContent'])continue;if(_0x15e4e0!=_0x5192fa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5192fa['isIntersectingWithRange'](_0x2afeb4))continue;const _0x2cd5f2=_0x250238['hasAttribute'](_0x18422f)?_0x250238['getAttribute'](_0x18422f)-0x1:0x0,_0x44d02c=this['_getSuggestionCoords'](_0x5192fa),_0x404694=_0x44d02c[_0x340329],_0x11a15c=_0x44d02c[_0x3d3542];_0x404694<=_0x63e2a4[_0x103600]&&_0x63e2a4[_0x103600]+_0x2cd5f2<=_0x11a15c&&(_0x5192fa['addRange'](_0x2afeb4),_0x3503b1=!0x0);}return _0x3503b1;};_0x318d40['model']['document']['registerPostFixer'](_0x47b1fe=>{let _0x195a68=!0x1;for(const _0x46916a of _0x318d40['model']['document']['differ']['getChanges']())if('insert'==_0x46916a['type']){if('tableRow'==_0x46916a['name']){for(const _0x16640d of _0x46916a['position']['nodeAfter']['getChildren']())_0x195a68=_0x195a68||_0xd11cc7(_0x16640d,_0x47b1fe);}else'tableCell'==_0x46916a['name']&&(_0x195a68=_0x195a68||_0xd11cc7(_0x46916a['position']['nodeAfter'],_0x47b1fe));}return _0x195a68;});}['_getSuggestionCoords'](_0x4d8631){return this['_getCoordsForCells'](_0x4d8631['getRanges']()['map'](_0x24e8d0=>_0x24e8d0['start']['nodeAfter']));}constructor(_0x14d92e){super(_0x14d92e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x50839b){return Array['from'](new Set(_0x50839b)['values']());}class St extends _0x4d32e5{static get['requires'](){return[jt];}['afterInit'](){const _0x5992de=this['editor'],_0x264090=_0x5992de['model']['document']['selection'],_0x2f07eb=_0x5992de['locale'];if(!_0x5992de['plugins']['has']('TableEditing'))return;const _0x483378=_0x5992de['plugins']['get']('TrackChangesEditing'),_0x4131b0=_0x5992de['plugins']['get']('TableUtils'),_0x4cfa2d=_0x5992de['plugins']['get'](jt);_0x4cfa2d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x483378['enableCommand']('mergeTableCells',()=>{const _0x690198=_0x4131b0['getSelectionAffectedTableCells'](_0x5992de['model']['document']['selection']);_0x5992de['model']['change'](()=>{_0x483378['markMultiRangeBlockFormat'](_0x690198,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5992de['commands']['get']('mergeTableCells')['on']('execute',(_0x15b369,_0xb1491c)=>{_0x5992de['commands']['get']('trackChanges')['value']&&(_0xb1491c['length']>0x0&&_0xb1491c[_0xb1491c['length']-0x1]&&_0xb1491c[_0xb1491c['length']-0x1]['forceDefaultExecution']||_0x483378['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x15b369['stop']());},{'priority':'highest'});for(const _0x28709f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4a9e01=_0x5992de['commands']['get'](_0x28709f);_0x483378['enableCommand'](_0x28709f,()=>{const _0x9d27e3=_0x5992de['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd7d98e=>_0xd7d98e['is']('element','tableCell')),_0x463bab=_0x4a9e01['value'];_0x5992de['model']['change'](()=>{_0x483378['markMultiRangeBlockFormat']([_0x9d27e3,_0x463bab],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x327ac7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2529cd=_0x5992de['commands']['get'](_0x327ac7);_0x483378['enableCommand'](_0x327ac7,()=>{const _0x13d899=_0x4131b0['getSelectionAffectedTableCells'](_0x5992de['model']['document']['selection'])[0x0],_0x2b9396=_0x13d899['findAncestor']('table'),{column:_0x5614fa,row:_0x282784}=_0x4131b0['getCellLocation'](_0x13d899);let _0x1f0eb8=[];if('horizontally'==_0x2529cd['direction']){const _0x9752cc=_0x4131b0['createTableWalker'](_0x2b9396,{'startRow':_0x282784,'endRow':_0x282784,'includeAllSlots':!0x0});_0x1f0eb8=Array['from'](_0x9752cc)['map'](_0x683848=>_0x683848['cell']);}else{const _0x480911=_0x4131b0['createTableWalker'](_0x2b9396,{'column':_0x5614fa,'includeAllSlots':!0x0});_0x1f0eb8=Array['from'](_0x480911)['map'](_0x1b503c=>_0x1b503c['cell']);}_0x5992de['model']['change'](_0x59a744=>{_0x483378['markBlockFormat'](_0x59a744['createRangeOn'](_0x13d899),{'commandName':_0x327ac7,'commandParams':[]},_0x1f0eb8,_0x327ac7);});});}_0x483378['descriptionFactory']['registerDescriptionCallback'](_0x5b24dd=>{if('formatBlock'!=_0x5b24dd['type']&&'formatInline'!=_0x5b24dd['type'])return;const {data:_0x53a3a1}=_0x5b24dd;return _0x53a3a1&&'mergeTableCells'==_0x53a3a1['commandName']?{'type':'format','content':o(_0x2f07eb,'*Merge\x20cells*')}:void 0x0;}),_0x483378['descriptionFactory']['registerDescriptionCallback'](_0x48d576=>{if('formatBlock'!=_0x48d576['type']&&'formatInline'!=_0x48d576['type'])return;const {data:_0x234fe7}=_0x48d576;return _0x234fe7?'splitTableCellVertically'==_0x234fe7['commandName']?{'type':'format','content':o(_0x2f07eb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x234fe7['commandName']?{'type':'format','content':o(_0x2f07eb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2a58bb=_0x4cfa2d['_acceptFormatSuggestionCallbackFactory']();for(const _0x15a564 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x483378['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15a564,'accept',_0x2a58bb);for(const _0x280be2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x483378['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x280be2,'accept',_0x2a58bb);_0x483378['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x35ea79=>{_0x5992de['model']['change'](_0x535af9=>{const _0x2431d8=Array['from'](_0x264090['getRanges']())['map'](_0x4d94a0=>_0x1ed262['fromRange'](_0x4d94a0));_0x535af9['setSelection'](_0x35ea79),_0x5992de['commands']['get']('mergeTableCells')['refresh'](),_0x5992de['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5f20f4=_0x2431d8['filter'](_0x137d5d=>'$graveyard'!=_0x137d5d['root']['rootName']);_0x5f20f4['length']>0x0&&_0x535af9['setSelection'](_0x5f20f4);for(const _0x589ca9 of _0x2431d8)_0x589ca9['detach']();});});for(const _0x3b172e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x499fcc=_0x5992de['commands']['get'](_0x3b172e);_0x499fcc['on']('set:isEnabled',(_0x3812ab,_0x30b5be,_0x255e8d)=>{if(_0x255e8d){const _0x38eec8=_0x5992de['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10a582=>_0x10a582['is']('element','tableCell'));this['_areMergableCells'](_0x499fcc['value'],_0x38eec8)||(_0x3812ab['return']=!0x1,_0x3812ab['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf1c1c9=this['editor']['commands']['get']('mergeTableCells'),_0x3d514d=this['editor']['plugins']['get']('TableUtils');if(!_0xf1c1c9['isEnabled'])return!0x1;const _0xca46fb=_0x3d514d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5ab1a5 of _0xca46fb)for(const _0x5bf92f of _0xca46fb)if(_0x5ab1a5!=_0x5bf92f&&!this['_areMergableCells'](_0x5ab1a5,_0x5bf92f))return!0x1;return!0x0;}['_areMergableCells'](_0x1c1818,_0x5aebed){const _0x29ed64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20560c=this['editor']['model']['createRangeOn'](_0x1c1818),_0x1912d8=this['editor']['model']['createRangeOn'](_0x5aebed),_0x52ec92=new Set(),_0x17b3c3=new Set();for(const _0x13041d of _0x29ed64['getSuggestions']())if(('insertion'==_0x13041d['type']||'deletion'==_0x13041d['type']||'mergeTableCells'==_0x13041d['subType'])&&_0x13041d['isInContent']){for(const _0x3af621 of _0x13041d['getRanges']())_0x3af621['containsRange'](_0x20560c,!0x0)&&_0x52ec92['add'](_0x13041d['type']+':'+_0x13041d['author']['id']),_0x3af621['containsRange'](_0x1912d8,!0x0)&&_0x17b3c3['add'](_0x13041d['type']+':'+_0x13041d['author']['id']);}if(_0x52ec92['size']!=_0x17b3c3['size'])return!0x1;for(const _0x2074d4 of _0x52ec92)if(!_0x17b3c3['has'](_0x2074d4))return!0x1;return!0x0;}}class At extends _0x4d32e5{static get['requires'](){return[jt];}['afterInit'](){const _0x5cb438=this['editor'];if(!_0x5cb438['plugins']['has']('TableEditing'))return;const _0x148d98=_0x5cb438['locale'],_0x42f4cf=_0x5cb438['plugins']['get']('TrackChangesEditing');_0x42f4cf['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x42f4cf['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x42f4cf['registerBlockAttribute']('headingRows'),_0x42f4cf['registerBlockAttribute']('headingColumns'),_0x42f4cf['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x148d98,'FORMAT_HEADER_ROW')),_0x42f4cf['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x148d98,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x11b5b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cd337=this['editor']['plugins']['get']('TableUtils'),_0x190be5=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x19c5b5({showActiveMarker:_0x4f6057=!0x0,setDataAttribute:_0x442843=!0x0}={}){return(_0x39251d,_0x12e01c,_0x3be55e)=>{const {type:_0x11b9d9,id:_0x8be8ca}=_0x11b5b9['_splitMarkerName'](_0x12e01c['markerName']),_0x1f94a5=_0x11b5b9['getSuggestion'](_0x8be8ca),_0x1d0739=_0x1f94a5['data'];if('formatBlock'!=_0x1f94a5['type']||!_0x1d0739||'setTableColumnHeader'!=_0x1d0739['commandName'])return;if(_0x12e01c['item'])return void _0x39251d['stop']();if(!_0x3be55e['consumable']['consume'](_0x12e01c['markerRange'],_0x39251d['name']))return;const _0x5c9271=_0x12e01c['markerRange']['start']['nodeAfter'],_0x48af4e=_0x12e01c['markerRange']['end']['nodeBefore'],_0x563952=_0x5c9271['parent']['parent'],{column:_0x4916b6}=_0x1cd337['getCellLocation'](_0x5c9271),{column:_0x5cafdc}=_0x1cd337['getCellLocation'](_0x48af4e);for(let _0xd42b13=_0x4916b6;_0xd42b13<=_0x5cafdc;_0xd42b13++){const _0x3ba2f1=_0x1cd337['createTableWalker'](_0x563952,{'column':_0xd42b13,'includeAllSlots':!0x1});for(const _0x140033 of _0x3ba2f1){const _0x4533b0=_0x140033['cell'],_0x2158e1=_0x3be55e['mapper']['toViewElement'](_0x4533b0);_0x3be55e['writer']['addClass']('ck-suggestion-marker-'+_0x11b9d9,_0x2158e1),_0x442843&&_0x3be55e['writer']['setAttribute']('data-suggestion',_0x8be8ca,_0x2158e1),_0x3be55e['mapper']['bindElementToMarker'](_0x2158e1,_0x12e01c['markerName']),_0x4f6057&&(_0x11b5b9['activeMarkers']['includes'](_0x12e01c['markerName'])?_0x3be55e['writer']['addClass']('ck-suggestion-marker--active',_0x2158e1):_0x3be55e['writer']['removeClass']('ck-suggestion-marker--active',_0x2158e1));}}};}_0x11b5b9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x190be5),_0x11b5b9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x190be5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x19c5b5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x99981a,_0x570a1f,_0x3a7ed8)=>{_0x3a7ed8['options']['showSuggestionHighlights']&&_0x19c5b5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x99981a,_0x570a1f,_0x3a7ed8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4fa4b5,_0x40b21d,_0x4475c2)=>{const {type:_0x2474a5,id:_0x150bde}=_0x11b5b9['_splitMarkerName'](_0x40b21d['markerName']),_0x57c19d=_0x11b5b9['getSuggestion'](_0x150bde),_0x25a923=_0x57c19d['data'];if('formatBlock'!=_0x57c19d['type']||!_0x25a923||'setTableColumnHeader'!=_0x25a923['commandName'])return;const _0x4c090c=_0x4475c2['mapper']['markerNameToElements'](_0x40b21d['markerName']);if(_0x4c090c){for(const _0x463198 of _0x4c090c)_0x4475c2['writer']['removeClass']('ck-suggestion-marker-'+_0x2474a5,_0x463198),_0x4475c2['writer']['removeClass']('ck-suggestion-marker--active',_0x463198),_0x4475c2['writer']['removeAttribute']('data-suggestion',_0x463198),_0x4475c2['mapper']['unbindElementFromMarkerName'](_0x463198,_0x40b21d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x771afc=this['editor'],_0x2cfd17=_0x771afc['locale'];function _0x258cc3(_0x47759c){return{'type':'format','content':o(_0x2cfd17,'*Format:*\x20%0',_0x47759c)};}_0x771afc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb35b9f=>{if('formatBlock'!=_0xb35b9f['type'])return;const {data:_0x41c783}=_0xb35b9f;if(_0x41c783){if('setTableRowHeader'==_0x41c783['commandName']){const _0x3eed2a=_0x41c783['commandParams'][0x0]['forceValue'];return _0x258cc3(o(_0x2cfd17,_0x3eed2a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x41c783['commandName']){const _0x3e367c=_0x41c783['commandParams'][0x0]['forceValue'];return _0x258cc3(o(_0x2cfd17,_0x3e367c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3c3ace=>[_0x3c3ace,null]));class It extends _0x4d32e5{static get['requires'](){return[jt];}['afterInit'](){const _0x17ee05=this['editor'];if(!_0x17ee05['plugins']['has']('TableClipboard'))return;const _0x437544=_0x17ee05['plugins']['get']('TrackChangesEditing'),_0x45750f=_0x17ee05['plugins']['get']('TableUtils'),_0x42acc1=_0x17ee05['plugins']['get'](jt),_0x562321=_0x17ee05['plugins']['get']('TableClipboard');_0x42acc1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x17ee05['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x17ee05['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x423833=null;_0x17ee05['model']['on']('insertContent',(_0x2ba213,_0x21a6a0)=>{const [_0x57a00c,_0x43b85c]=_0x21a6a0,_0x3f4002=_0x21a6a0[_0x21a6a0['length']-0x1];_0x3f4002&&_0x3f4002['forceDefaultExecution']||_0x437544['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2390d1,_0x1a5aee,_0x17d49a,_0x4e9167,_0x5243ae){if(_0x1a5aee&&!_0x1a5aee['is']('documentSelection'))return!0x1;const _0x3da842=_0x5243ae['getTableIfOnlyTableInContent'](_0x2390d1,_0x17d49a);if(!_0x3da842||!he(_0x3da842,void 0x0,_0x4e9167))return!0x1;const _0x507967=_0x4e9167['getSelectionAffectedTableCells'](_0x17d49a['document']['selection']);if(!_0x507967['length'])return!0x1;const _0x1c1750=_0x507967[0x0]['findAncestor']('table'),_0x1e76ca=_0x4e9167['getRowIndexes'](_0x507967),_0x4b6a9c=_0x4e9167['getColumnIndexes'](_0x507967),_0x33bd78={'startRow':_0x1e76ca['first'],'endRow':_0x1e76ca['last'],'startColumn':_0x4b6a9c['first'],'endColumn':_0x4b6a9c['last']};return 0x1==_0x507967['length']&&(_0x33bd78['endRow']+=_0x4e9167['getRows'](_0x3da842)-0x1,_0x33bd78['endColumn']+=_0x4e9167['getColumns'](_0x3da842)-0x1),he(_0x1c1750,_0x33bd78,_0x4e9167);}(_0x57a00c,_0x43b85c,_0x17ee05['model'],_0x45750f,_0x562321)&&(_0x2ba213['stop'](),_0x423833={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x17ee05['model']['change'](()=>{_0x17ee05['model']['insertContent'](_0x21a6a0[0x0],_0x21a6a0[0x1],_0x21a6a0[0x2],{'forceDefaultExecution':!0x0});const _0x360418=_0x51245d(),{rowInsertionRanges:_0x583684,columnInsertionRanges:_0xebe264,insertionRanges:_0x1f844c,deletionRanges:_0x5ae77a,cells:_0x241dd4}=_0x423833;_0x583684['length']&&_0x437544['markMultiRangeInsertion'](_0x583684,'tablePasteRow',{'tablePasteChainId':_0x360418}),_0xebe264['length']&&_0x437544['markMultiRangeInsertion'](_0xebe264,'tablePasteColumn',{'tablePasteChainId':_0x360418}),_0x1f844c['length']&&(_0x437544['markMultiRangeInsertion'](_0x1f844c,'tablePaste',{'tablePasteChainId':_0x360418,'skipNestingCheck':!0x0}),_0x1f844c['forEach'](_0x4a52b7=>{var _0x5ca3db;return null===(_0x5ca3db=_0x4a52b7['detach'])||void 0x0===_0x5ca3db?void 0x0:_0x5ca3db['call'](_0x4a52b7);})),_0x5ae77a['length']&&(_0x437544['markMultiRangeDeletion'](_0x5ae77a,'tablePaste',{'tablePasteChainId':_0x360418,'skipNestingCheck':!0x0}),_0x5ae77a['forEach'](_0x3315c2=>{var _0x3a4601;return null===(_0x3a4601=_0x3315c2['detach'])||void 0x0===_0x3a4601?void 0x0:_0x3a4601['call'](_0x3315c2);}));const _0x7a4869=_0x437544['markMultiRangeBlockFormat'](_0x241dd4['map'](({element:_0x5919e6})=>_0x5919e6),{'formatGroupId':_0x51245d()},[],'tablePasteCell',{'tablePasteChainId':_0x360418});if(_0x7a4869){const _0x3d26ff=_0x7a4869['getMarkers'](),_0xa57187=[];for(const {element:_0x1dd612,attributes:_0x216b6c}of _0x241dd4){if(!_0x216b6c)continue;const _0x538a18=_0x17ee05['model']['createRangeOn'](_0x1dd612),_0x840794=_0x3d26ff['find'](_0x1bc14f=>_0x1bc14f['getRange']()['isEqual'](_0x538a18));_0x840794&&_0xa57187['push']([_0x840794['name'],_0x216b6c]);}_0xa57187['length']&&_0x7a4869['setAttribute']('markerAttributes',Object['fromEntries'](_0xa57187));}_0x423833=null;}));},{'priority':_0x110481['high']+0xa}),_0x17ee05['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x386d63,_0x23f0b2)=>{const [_0x1ebb84,_0x46ef98,,_0x144ad2]=_0x23f0b2;if(!_0x423833)return;_0x386d63['stop']();const _0x1c6bf7=_0x1ebb84['cell'],_0x1d79e6=_0x46ef98,_0x648468=Pe(_0x1c6bf7),_0xb460b5=Pe(_0x1d79e6);_0x386d63['return']=_0x1c6bf7;let _0x52b561=null,_0x390d41=null;if(_0xb460b5||_0x648468){if(_0x648468&&!_0xb460b5){_0x144ad2['remove'](_0x1c6bf7['getChild'](0x0));for(const _0x2020ef of Array['from'](_0x1d79e6['getChildren']()))_0x144ad2['insert'](_0x2020ef,_0x1c6bf7,'end');const _0x5dfc55=_0x423833['rowInsertionIndexes']['includes'](_0x1ebb84['row']),_0x11a56f=_0x423833['columnInsertionIndexes']['includes'](_0x1ebb84['column']);_0x5dfc55||_0x11a56f||(_0x52b561=_0x1ed262['fromRange'](_0x144ad2['createRangeIn'](_0x1c6bf7)));}else _0xb460b5&&!_0x648468&&(_0x390d41=_0x144ad2['createRangeIn'](_0x1c6bf7));}else{const _0x437d82=_0x144ad2['createElement']('tableCellSuggestion'),_0x45aac6=_0x144ad2['createElement']('tableCellSuggestion');_0x144ad2['wrap'](_0x144ad2['createRangeIn'](_0x1c6bf7),_0x45aac6),_0x144ad2['insert'](_0x437d82,_0x1c6bf7,0x0);for(const _0x266a19 of Array['from'](_0x1d79e6['getChildren']()))_0x144ad2['insert'](_0x266a19,_0x437d82,'end');_0x52b561=_0x1ed262['fromRange'](_0x144ad2['createRangeOn'](_0x437d82)),_0x390d41=_0x1ed262['fromRange'](_0x144ad2['createRangeOn'](_0x45aac6));}const _0xf66186=Array['from'](_0x1d79e6['getAttributes']())['filter'](([_0x33584e])=>ge['includes'](_0x33584e));_0x423833['cells']['push']({'element':_0x1c6bf7,'attributes':_0xf66186['length']?Object['fromEntries'](_0xf66186):null}),_0x52b561&&_0x423833['insertionRanges']['push'](_0x52b561),_0x390d41&&_0x423833['deletionRanges']['push'](_0x390d41);},{'priority':'high'}),_0x45750f['on']('insertColumns',(_0x8ff11,_0x5dca18)=>{const [_0x4d6e7b,_0x56e421={}]=_0x5dca18;if(!_0x423833)return;const _0xacb01b=_0x56e421['at']||0x0,_0x782524=_0x56e421['columns']||0x1;_0x423833['columnInsertionIndexes']=new Array(_0x782524)['fill'](_0xacb01b)['map']((_0x26b696,_0x5608e7)=>_0x26b696+_0x5608e7);for(const {cell:_0x52175f}of _0x45750f['createTableWalker'](_0x4d6e7b,{'startColumn':_0xacb01b,'endColumn':_0xacb01b+_0x782524-0x1}))_0x423833['columnInsertionRanges']['push'](_0x17ee05['model']['createRangeOn'](_0x52175f));},{'priority':'low'}),_0x45750f['on']('insertRows',(_0x3a3c1c,_0x426fba)=>{const [_0x28c931,_0x4e0bc6={}]=_0x426fba;if(!_0x423833)return;const _0x40895c=_0x4e0bc6['at']||0x0,_0x216dc1=_0x4e0bc6['rows']||0x1;_0x423833['rowInsertionIndexes']=new Array(_0x216dc1)['fill'](_0x40895c)['map']((_0x127c04,_0x5e04a6)=>_0x127c04+_0x5e04a6);for(const {cell:_0x1bc2ee}of _0x45750f['createTableWalker'](_0x28c931,{'startRow':_0x40895c,'endRow':_0x40895c+_0x216dc1-0x1}))_0x423833['rowInsertionRanges']['push'](_0x17ee05['model']['createRangeOn'](_0x1bc2ee));},{'priority':'low'}),_0x437544['descriptionFactory']['registerDescriptionCallback'](_0x51c379=>{if(_0x51c379['subType']&&_0x51c379['subType']['startsWith']('tablePaste'))return _0x51c379['previous']?{}:{'type':'insertion','content':o(_0x17ee05['locale'],'*Replace\x20table\x20cells*')};});const _0xa3798=()=>!0x1;for(const _0x4f323c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x437544['_suggestionFactory']['registerCustomCallback']('insertion',_0x4f323c,'join',_0xa3798),_0x437544['_suggestionFactory']['registerCustomCallback']('deletion',_0x4f323c,'join',_0xa3798),_0x437544['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f323c,'join',_0xa3798);_0x437544['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa3798),_0x437544['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x485a31,_0x25493c,_0x5886a2)=>{const _0x39c2a4=_0x485a31['map'](_0xbe9589=>_0xbe9589['getContainedElement']())['filter'](_0x1ce928=>_0x1ce928),_0x37203b=new Map(_0x39c2a4['map'](_0x57a84f=>[_0x57a84f,null]));if(_0x423833){for(const {element:_0x15c8ab,attributes:_0x167044}of _0x423833['cells'])_0x167044&&_0x37203b['set'](_0x15c8ab,_0x167044);}else{if(_0x5886a2&&_0x5886a2['markerAttributes'])for(const [_0x36d893,_0x1bc80e]of Object['entries'](_0x5886a2['markerAttributes'])){const _0x245e0a=_0x17ee05['model']['markers']['get'](_0x36d893),_0xd580ee=_0x245e0a?_0x245e0a['getRange']()['getContainedElement']():null;_0xd580ee&&_0x37203b['set'](_0xd580ee,_0x1bc80e);}}_0x17ee05['model']['change'](_0xa02c5e=>{for(const [_0x5ceb16,_0x50c540]of _0x37203b)_0xa02c5e['setAttributes']({...Ce,..._0x50c540},_0x5ceb16);});});const _0x3a1035=(_0x2db2c9,_0x5c3a1b)=>{_0x437544['_suggestionFactory']['registerCustomCallback'](_0x2db2c9,'tablePaste',_0x5c3a1b,(_0x392482,_0xd3afd8,_0x21ac0f)=>{_0x17ee05['model']['change'](_0x431374=>{const _0x230b0d=[];for(const _0xa997e9 of _0x392482){const _0x367cdb=_0xa997e9['start']['nodeAfter'];_0x367cdb['is']('element','tableCellSuggestion')&&_0x230b0d['push'](_0x367cdb);}_0x437544['_suggestionFactory']['getSuggestionCallback'](_0x2db2c9,null,_0x5c3a1b)(_0x392482,_0xd3afd8,_0x21ac0f);for(const _0x22a68c of _0x230b0d)'$graveyard'!=_0x22a68c['root']['rootName']&&_0x431374['unwrap'](_0x22a68c);});});};_0x3a1035('insertion','accept'),_0x3a1035('insertion','discard'),_0x3a1035('deletion','accept'),_0x3a1035('deletion','discard'),_0x437544['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x469206=>{const _0x237616=_0x469206['map'](_0x33122d=>_0x33122d['getContainedElement']()),_0x1571ca=_0x237616[0x0]['findAncestor']('table'),{minRow:_0x5be6bf,maxRow:_0x19b426}=_0x42acc1['_getCoordsForCells'](_0x237616);_0x45750f['removeRows'](_0x1571ca,{'at':_0x5be6bf,'rows':_0x19b426-_0x5be6bf+0x1});}),_0x437544['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x35dadf=>{const _0x663951=_0x35dadf['map'](_0x4a5fff=>_0x4a5fff['getContainedElement']()),_0x1e0396=_0x663951[0x0]['findAncestor']('table'),{minColumn:_0x9f0228,maxColumn:_0x4c599c}=_0x42acc1['_getCoordsForCells'](_0x663951);_0x45750f['removeColumns'](_0x1e0396,{'at':_0x9f0228,'columns':_0x4c599c-_0x9f0228+0x1});});const _0x47848f=(_0x5d0b8e,_0x18847a)=>{if(!_0x18847a['subType']||!_0x18847a['subType']['startsWith']('tablePaste'))return;const _0x3f8e12=_0x18847a['attributes']['tablePasteChainId'],_0x8dfe93=_0x437544['getSuggestions']()['filter'](_0x4b306c=>_0x4b306c['isInContent']&&_0x4b306c['attributes']&&_0x4b306c['attributes']['tablePasteChainId']==_0x3f8e12);_0x8dfe93['length']&&_0x18847a['getAllAdjacentSuggestions']()['length']!=_0x8dfe93['length']&&_0x8dfe93['reduce']((_0x5c300a,_0x23ed12)=>(_0x5c300a['next']=_0x23ed12,_0x23ed12['previous']=_0x5c300a,_0x23ed12));};function _0x300809(_0x265554,_0x201ee0=!0x0){const {id:_0x470ffe}=_0x437544['_splitMarkerName'](_0x265554['markerName']),_0x21545e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2c76cf=_0x437544['activeMarkers']['includes'](_0x265554['markerName']);return _0x2c76cf&&_0x21545e['push']('ck-suggestion-marker--active'),{'classes':_0x21545e,'attributes':{'data-suggestion':_0x470ffe},'priority':_0x2c76cf&&_0x201ee0?0xbc2:0xbb8};}_0x437544['on']('suggestionLoaded',_0x47848f,{'priority':'high'}),_0x437544['on']('suggestionUnloaded',_0x47848f,{'priority':'high'}),_0x17ee05['model']['document']['registerPostFixer'](()=>{let _0x5b8ca2=!0x1;const _0x46d68c=Array['from'](_0x17ee05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a3492,data:_0x5ecf26}of _0x46d68c){const {group:_0x4d96d7,type:_0x5ea415,id:_0x181685}=_0x437544['_splitMarkerName'](_0x3a3492);if('suggestion'!=_0x4d96d7||'deletion'!=_0x5ea415||_0x5ecf26['oldRange'])continue;if(!_0x437544['hasSuggestion'](_0x181685))continue;const _0x25f829=_0x437544['getSuggestion'](_0x181685)['getRanges'](),_0x309678=_0x17ee05['plugins']['get']('Users')['me'];for(const _0x50e06f of _0x437544['getSuggestions']()){if(!_0x50e06f['isInContent']||_0x50e06f['author']!=_0x309678)continue;if('formatBlock'!=_0x50e06f['type']||'tablePasteCell'!=_0x50e06f['subType'])continue;if(_0x50e06f['getRanges']()['every'](_0x724537=>_0x25f829['some'](_0x1db547=>_0x1db547['containsRange'](_0x724537,!0x0)))){for(const _0x1631b5 of _0x50e06f['getAllAdjacentSuggestions']())_0x1631b5['isInContent']&&(_0x1631b5['discard'](),_0x5b8ca2=!0x0);}}}return _0x5b8ca2;}),_0x17ee05['model']['document']['registerPostFixer'](_0x1b4b52=>{const _0x18c679=_0x17ee05['commands']['get']('redo');if(!_0x18c679||!_0x18c679['_createdBatches']['has'](_0x1b4b52['batch']))return!0x1;let _0x47b40b=!0x1;const _0x281e85=_0x17ee05['plugins']['get']('Users')['me'],_0x25fa45=_0x17ee05['model']['document']['differ']['getChanges'](),_0x3a4b7e=Array['from'](_0x17ee05['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x564f33,data:_0x2be69c})=>{const {group:_0x47590f,subType:_0x59aeeb,authorId:_0x72a1c8}=_0x437544['_splitMarkerName'](_0x564f33);return'suggestion'==_0x47590f&&'tablePaste'==_0x59aeeb&&_0x72a1c8==_0x281e85['id']&&!_0x2be69c['oldRange'];});for(const _0x39035e of _0x25fa45){if('insert'!=_0x39035e['type']||'tableCellSuggestion'!=_0x39035e['name']||0x1!=_0x39035e['length'])continue;const _0x4f8957=_0x1b4b52['createRange'](_0x39035e['position'],_0x39035e['position']['getShiftedBy'](0x1));if(!_0x3a4b7e['find'](({data:_0x562cdb})=>_0x562cdb['newRange']['isEqual'](_0x4f8957))){for(const {name:_0x5473eb,data:_0x1c46a8}of _0x3a4b7e)if(_0x4f8957['containsRange'](_0x1c46a8['newRange'])){_0x1b4b52['updateMarker'](_0x5473eb,{'range':_0x4f8957}),_0x47b40b=!0x0;break;}}}return _0x47b40b;}),_0x17ee05['model']['document']['registerPostFixer'](_0x5c5b40=>{let _0x2f6260=!0x1;const _0x4ceaea=_0x17ee05['plugins']['get']('Users')['me'],_0x747399=_0x437544['getSuggestions']()['filter'](_0x2d412d=>_0x2d412d['isInContent']&&_0x2d412d['author']==_0x4ceaea),_0x29e48d=new Set(),_0x570cb9=new Set();for(const _0x392a7d of _0x747399)if('tablePaste'==_0x392a7d['subType'])for(const _0x531b2e of _0x392a7d['getMarkers']()){const _0x5eeee5=_0x531b2e['getRange']()['getContainedElement']();if(_0x5eeee5){if(_0x5eeee5['is']('element','tableCellSuggestion')&&Pe(_0x5eeee5)){_0x392a7d['removeMarker'](_0x531b2e['name']),_0x29e48d['add'](_0x5eeee5),_0x2f6260=!0x0;const _0x2d9403=_0x5eeee5['nextSibling'],_0x236566=_0x5eeee5['previousSibling'],_0x5ccbd5=_0x2d9403&&_0x2d9403['is']('element','tableCellSuggestion'),_0x1aa0d1=_0x236566&&_0x236566['is']('element','tableCellSuggestion');_0x5ccbd5&&!_0x29e48d['has'](_0x2d9403)&&_0x570cb9['add'](_0x2d9403),_0x1aa0d1&&!_0x29e48d['has'](_0x236566)&&_0x570cb9['add'](_0x236566);}else _0x5eeee5['is']('element','paragraph')&&_0x5eeee5['isEmpty']&&(_0x392a7d['removeMarker'](_0x531b2e['name']),_0x2f6260=!0x0);}}else{if('tablePasteCell'==_0x392a7d['subType']){if(!_0x392a7d['attributes']||!_0x392a7d['attributes']['tablePasteChainId'])continue;const _0x23dd0d=_0x392a7d['attributes']['markerAttributes'];if(_0x23dd0d&&Object['keys'](_0x23dd0d)['length'])continue;const _0x990fda=_0x392a7d['attributes']['tablePasteChainId'];let _0x264a30=!0x0,_0x2372f7=!0x0;for(const _0x2c38b2 of _0x747399)if(_0x2c38b2['subType']&&_0x2c38b2['subType']['startsWith']('tablePaste')){if(!_0x2c38b2['attributes']['tablePasteChainId']){_0x2372f7=!0x1;break;}if(_0x2c38b2['id']!=_0x392a7d['id']&&_0x2c38b2['attributes']['tablePasteChainId']==_0x990fda){_0x264a30=!0x1;break;}}_0x2372f7&&_0x264a30&&(_0x392a7d['removeMarkers'](),_0x2f6260=!0x0);}}for(const _0x84a098 of _0x29e48d)_0x5c5b40['remove'](_0x84a098);for(const _0x3e2ba9 of _0x570cb9)_0x5c5b40['unwrap'](_0x3e2ba9);return _0x2f6260;}),_0x17ee05['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2cc7e7,_0x40de2a)=>_0x300809(_0x2cc7e7),'converterPriority':'high'}),_0x17ee05['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x256173,_0x56f760)=>_0x56f760['options']['showSuggestionHighlights']?_0x300809(_0x256173,!0x1):null,'converterPriority':'high'});const _0x12c2e0=_0x17ee05['editing']['view'];this['listenTo'](_0x12c2e0['document'],'clipboardOutput',(_0x508edd,_0x3bbd02)=>{const _0x50ed91=[];for(const _0x1edd87 of _0x12c2e0['createRangeIn'](_0x3bbd02['content'])['getItems']())_0x1edd87['is']('element','suggestion-td')&&_0x50ed91['push'](_0x1edd87);_0x12c2e0['change'](_0x29be20=>{for(const _0x400768 of _0x50ed91)_0x29be20['move'](_0x29be20['createRangeIn'](_0x400768),_0x29be20['createPositionBefore'](_0x400768)),_0x29be20['remove'](_0x400768);});});}}function Pe(_0x26cbf4){if(_0x26cbf4['isEmpty'])return!0x0;const _0x2304fe=_0x26cbf4['getChild'](0x0);return _0x2304fe['is']('element','paragraph')&&_0x2304fe['isEmpty'];}function he(_0x5430ed,_0x302bfe={},_0x15c8d5){for(const {isAnchor:_0x436df5,cellHeight:_0xe1d783,cellWidth:_0x3e5f8d}of _0x15c8d5['createTableWalker'](_0x5430ed,{'includeAllSlots':!0x0,..._0x302bfe}))if(!_0x436df5||0x1!=_0xe1d783||0x1!=_0x3e5f8d)return!0x1;return!0x0;}class vt extends _0x4d32e5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4336c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4336c1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4336c1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4336c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4336c1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4336c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4336c1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x29a7b9,_0x1826ae){const _0x4df499=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3151a6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e635f=_0x1826ae['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x53b8f6=_0x3151a6['getColumnGroupElement'](_0x1e635f);let _0x3e0cb3=_0x53b8f6?_0x3151a6['getTableColumnsWidths'](_0x53b8f6):null,_0x2ced59=_0x1e635f['getAttribute']('tableWidth')||null;const _0x1af8b9=_0x1826ae['tableWidth']||_0x2ced59,_0x26be8f=_0x1826ae['columnWidths']||_0x3e0cb3,_0xa3103b=this['editor']['plugins']['get']('Users')['me'];for(const _0x1a1be0 of _0x4df499['getSuggestions']()){const _0x74f254=_0x1a1be0['getContainedElement']();if('resizeTable'===_0x1a1be0['subType']&&_0x74f254===_0x1e635f){_0x1a1be0['author']!==_0xa3103b&&_0x1a1be0['discard']();const _0xc8cd3e=_0x1a1be0['data']['commandParams'];_0x2ced59=_0xc8cd3e[0x0]['tableWidth'],_0x3e0cb3=_0xc8cd3e[0x0]['columnWidths'];break;}}_0x29a7b9({'table':_0x1e635f,'tableWidth':_0x1af8b9,'columnWidths':_0x26be8f}),_0x4df499['markBlockFormat'](_0x1e635f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2ced59,'columnWidths':_0x3e0cb3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x273722){if('formatBlock'!=_0x273722['type']&&'formatInline'!=_0x273722['type'])return;const {data:_0x50d625}=_0x273722;if(_0x50d625&&'resizeTable'===_0x50d625['formatGroupId']){const _0x393c0d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x393c0d)};}}}class _t extends _0x4d32e5{['afterInit'](){const _0x3ecd4b=this['editor'];_0x3ecd4b['plugins']['has']('Template')&&_0x3ecd4b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x4d32e5{['afterInit'](){const _0x2200b3=this['editor'];if(!_0x2200b3['commands']['get']('insertTableOfContents'))return;_0x2200b3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x553e85=_0x2200b3['plugins']['get']('TrackChangesEditing'),_0x2aabe3=_0x2200b3['locale'];_0x553e85['descriptionFactory']['registerElementLabel']('tableOfContents',_0x43d654=>o(_0x2aabe3,'ELEMENT_TABLE_OF_CONTENTS',_0x43d654));}}class Dt extends _0x4d32e5{['afterInit'](){const _0x3776d2=this['editor'];if(!_0x3776d2['plugins']['has']('Title'))return;const _0x10d84f=_0x3776d2['plugins']['get']('TrackChangesEditing');_0x10d84f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3776d2['locale'],'ELEMENT_TITLE')),_0x3776d2['model']['document']['registerPostFixer'](_0xbff050=>{let _0x43faf1=!0x1;const _0x21576d=Array['from'](_0x3776d2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5df4cb,data:_0x21822b}of _0x21576d){const {group:_0xf63ce5}=_0x10d84f['_splitMarkerName'](_0x5df4cb);if('suggestion'!==_0xf63ce5||!_0x21822b['newRange'])continue;const _0x375f81=_0x21822b['newRange'],_0x17701e=_0x375f81['end']['nodeBefore'];if(!_0x17701e||!_0x17701e['is']('element','title-content'))continue;if(!_0x375f81['start']['isTouching'](_0x375f81['end']))continue;const _0x458a7a=_0x3776d2['model']['schema']['getNearestSelectionRange'](_0x375f81['end'],'forward');if(_0x458a7a&&_0x458a7a['isCollapsed']){const _0x3b36af=_0xbff050['createRange'](_0x375f81['start'],_0x458a7a['start']);_0x3b36af['isEqual'](_0x375f81)||(_0xbff050['updateMarker'](_0x5df4cb,{'range':_0x3b36af}),_0x43faf1=!0x0);}_0x43faf1||(_0xbff050['removeMarker'](_0x5df4cb),_0x43faf1=!0x0);}return _0x43faf1;});}}class Nt extends _0x4d32e5{['afterInit'](){const _0x1bca1e=this['editor'],_0x2639e7=_0x1bca1e['plugins']['get']('TrackChangesEditing');_0x1bca1e['plugins']['has']('UndoEditing')&&(_0x2639e7['enableCommand']('undo'),_0x2639e7['enableCommand']('redo'));}}class Mt extends _0x4d32e5{static get['requires'](){return[jt];}['afterInit'](){const _0x5424d6=this['editor'];if(!_0x5424d6['plugins']['has']('TableCaptionEditing'))return;_0x5424d6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4d32e5{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x159eab=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x142d21 of this['tableProperties'])_0x159eab['enableCommand'](_0x142d21,(_0x1d68a8,_0x4076b1)=>{const _0x319d47=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x142d21,[_0x319d47],this['tableProperties'],'tableProperties',_0x1d68a8,_0x4076b1);});_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x159eab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2c62d9,_0x3634dc)=>this['handleDiscardAction'](this['tableProperties'],_0x2c62d9,_0x3634dc)),_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f659c of this['tableCellProperties'])_0x159eab['enableCommand'](_0x1f659c,(_0x1ab390,_0x5dc014)=>{const _0x5a253d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f659c,_0x5a253d,this['tableCellProperties'],'tableCellProperties',_0x1ab390,_0x5dc014);});_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x159eab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5ec5ff,_0x4aa1cb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5ec5ff,_0x4aa1cb)),_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x159eab['descriptionFactory']['registerDescriptionCallback'](_0x59fee9=>this['handleSuggestionDescription'](_0x59fee9));}['_handlePropertyChange'](_0xfe8f3,_0x9bd429,_0x53e6e6,_0x2ffeb3,_0x32e3bc,_0x30d10a){const _0x1a2c55=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30d10a['batch'],()=>{for(const _0x17f847 of _0x9bd429){if(this['_getSuggestion'](_0x17f847,_0x2ffeb3))_0x32e3bc(_0x30d10a);else{const _0x5adcd8={};for(const _0x5a2aee of _0x53e6e6){const _0x19c50a=_0x17f847['getAttribute'](_0x5a2aee);void 0x0!==_0x19c50a&&(_0x5adcd8[_0x5a2aee]=_0x19c50a);}_0x32e3bc(_0x30d10a),_0x1a2c55['markBlockFormat'](_0x17f847,{'commandParams':[_0x5adcd8]},[],_0x2ffeb3);}}});}['handleDiscardAction'](_0x208644,_0x1934f4,_0x1e0de4){const _0x4ce08a=_0x1934f4[0x0]['start']['nodeAfter'],_0x4b4bad=_0x1e0de4['commandParams'][0x0];this['editor']['model']['change'](_0x200572=>{for(const _0x520653 of _0x208644)void 0x0!==_0x4b4bad[_0x520653]?_0x200572['setAttribute'](_0x520653,_0x4b4bad[_0x520653],_0x4ce08a):_0x200572['removeAttribute'](_0x520653,_0x4ce08a);});}['handleSuggestionDescription'](_0x1bfb5a){if(_0x1bfb5a['data'])switch(_0x1bfb5a['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'](_0x4db08d,_0x58bae5){const _0x2f8ab9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x598448 of _0x2f8ab9['getSuggestions']({'skipNotAttached':!0x0})){const _0x537661=_0x598448['getContainedElement']();if(_0x598448['subType']===_0x58bae5&&_0x537661===_0x4db08d)return _0x598448;}return null;}constructor(_0x3f4e5c){super(_0x3f4e5c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x4d32e5{static get['requires'](){return['CommentsRepository',_0x1c067c,_0x3c234e,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'];}['init'](){const _0x22fbdc=this['editor'],_0x8b7d4=(_0x16c615,_0x4ae857)=>{if('attribute'!=_0x16c615)return'ck-suggestion-marker-'+_0x16c615;const _0x4883e6=_0x4ae857['split']('|')[0x0];return this['_isBlockAttribute'](_0x4883e6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x22fbdc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1f6310=>{const {id:_0x573332,type:_0xf7ed11,subType:_0x49ffb5}=this['_splitMarkerName'](_0x1f6310['markerName']),_0x1d77f2=['ck-suggestion-marker',_0x8b7d4(_0xf7ed11,_0x49ffb5)];let _0x432588=0xbb8;return this['activeMarkers']['includes'](_0x1f6310['markerName'])&&(_0x1d77f2['push']('ck-suggestion-marker--active'),_0x432588=0xbc2),'deletion'==_0xf7ed11&&(_0x432588+=0x5),{'classes':_0x1d77f2,'attributes':{'data-suggestion':_0x573332},'priority':_0x432588};}}),_0x22fbdc['conversion']['for']('dataDowncast')['add'](_0x45b0fb=>{_0x45b0fb['on']('addMarker:suggestion',(_0x42eb21,_0xdd2ac9,_0xde4fe6)=>{if(!_0xde4fe6['options']['showSuggestionHighlights'])return;const _0x4f71f8=_0xdd2ac9['item'];if(!_0x4f71f8)return;const _0x44a096=_0xde4fe6['mapper']['toViewElement'](_0x4f71f8);_0x22fbdc['model']['schema']['isObject'](_0x4f71f8)&&_0x44a096&&!_0x44a096['getCustomProperty']('widget')&&_0x44a096['is']('containerElement')&&_0x3d1709(_0x44a096,_0xde4fe6['writer']);},{'priority':'high'});}),_0x22fbdc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5756df,_0x29fc07)=>{if(!_0x29fc07['options']['showSuggestionHighlights'])return null;const {type:_0x44c5fb,subType:_0x1e0bd4}=this['_splitMarkerName'](_0x5756df['markerName']);return{'classes':['ck-suggestion-marker',_0x8b7d4(_0x44c5fb,_0x1e0bd4)],'priority':0xbb8};}});const _0x2ed414=({showActiveMarkers:_0xb50abe=!0x0,isAttributeSuggestion:_0x3aceaf=!0x1}={})=>(_0x3e634d,_0x724c57,_0x1f4d85)=>{if(!_0x724c57['item'])return;const {id:_0x2af509}=this['_splitMarkerName'](_0x724c57['markerName']);if(_0x3aceaf){const _0x175752=this['_suggestions']['get'](_0x2af509),_0x3f20b7=this['_getAttributeKey'](_0x175752);if(!this['_isBlockAttribute'](_0x3f20b7))return;}if(_0x724c57['item']['is']('selection'))return void _0x1f4d85['consumable']['consume'](_0x724c57['item'],_0x3e634d['name']);const _0x565440=_0x1f4d85['mapper']['toViewElement'](_0x724c57['item']);if(_0x724c57['item']['is']('element')&&_0x22fbdc['model']['schema']['isBlock'](_0x724c57['item'])&&!_0x565440['getCustomProperty']('addHighlight')){_0x1f4d85['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x565440),_0x1f4d85['writer']['setAttribute']('data-suggestion',_0x2af509,_0x565440),_0x1f4d85['mapper']['bindElementToMarker'](_0x565440,_0x724c57['markerName']),_0xb50abe&&(this['activeMarkers']['includes'](_0x724c57['markerName'])?_0x1f4d85['writer']['addClass']('ck-suggestion-marker--active',_0x565440):_0x1f4d85['writer']['removeClass']('ck-suggestion-marker--active',_0x565440));for(const _0x2b886a of _0x22fbdc['model']['createRangeIn'](_0x724c57['item'])['getItems']())_0x1f4d85['consumable']['consume'](_0x2b886a,_0x3e634d['name']);_0x1f4d85['consumable']['consume'](_0x724c57['item'],_0x3e634d['name']);}};_0x22fbdc['conversion']['for']('dataDowncast')['add'](_0x29e0d9=>{_0x29e0d9['on']('addMarker:suggestion:formatBlock',(_0x5c038f,_0x17f55c,_0x42dc00)=>{_0x42dc00['options']['showSuggestionHighlights']&&_0x2ed414({'showActiveMarkers':!0x1})(_0x5c038f,_0x17f55c,_0x42dc00);},{'priority':'highest'});}),_0x22fbdc['conversion']['for']('dataDowncast')['add'](_0xe44a5e=>{_0xe44a5e['on']('addMarker:suggestion:attribute',(_0x24d37b,_0x33fa3e,_0x951cc5)=>{_0x951cc5['options']['showSuggestionHighlights']&&_0x2ed414({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x24d37b,_0x33fa3e,_0x951cc5);},{'priority':'highest'});}),_0x22fbdc['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24196b,_0x3f8555)=>_0x3f8555['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x24196b['substr'](0xb)}}),_0x22fbdc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ab321,{writer:_0x48ebaf})=>{let _0x4c778c='suggestion:'+_0x3ab321['getAttribute']('suggestion-type')+':'+_0x3ab321['getAttribute']('id');return _0x3ab321['getAttribute']('marker-count')&&(_0x4c778c+=':'+_0x3ab321['getAttribute']('marker-count')),_0x48ebaf['createElement']('$marker',{'data-name':_0x4c778c});}}),_0x22fbdc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x22fbdc['conversion']['for']('editingDowncast')['add'](_0x4d8994=>{_0x4d8994['on']('addMarker:suggestion:formatBlock',_0x2ed414(),{'priority':'high'});}),_0x22fbdc['conversion']['for']('editingDowncast')['add'](_0x35242f=>{_0x35242f['on']('addMarker:suggestion:attribute',_0x2ed414({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x22fbdc['conversion']['for']('editingDowncast')['add'](_0x5b2e0b=>{_0x5b2e0b['on']('removeMarker:suggestion:formatBlock',(_0x4e4887,_0x3d33ce,_0x2d78a7)=>{const _0xc1d480=_0x2d78a7['mapper']['markerNameToElements'](_0x3d33ce['markerName']);if(_0xc1d480){for(const _0x362d20 of _0xc1d480)_0x362d20['getCustomProperty']('addHighlight')||(_0x2d78a7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x362d20),_0x2d78a7['writer']['removeAttribute']('data-suggestion',_0x362d20),_0x2d78a7['mapper']['unbindElementFromMarkerName'](_0x362d20,_0x3d33ce['markerName']));}},{'priority':'high'});}),_0x22fbdc['conversion']['for']('editingDowncast')['add'](_0xa2da27=>{_0xa2da27['on']('removeMarker:suggestion:attribute',(_0x31ba55,_0x1b319b,_0x1690dd)=>{const _0x1eab13=_0x1690dd['mapper']['markerNameToElements'](_0x1b319b['markerName']);if(!_0x1eab13)return;const {id:_0x1ce151}=this['_splitMarkerName'](_0x1b319b['markerName']),_0x2b9a27=this['_suggestions']['get'](_0x1ce151),_0x2609d7=this['_getAttributeKey'](_0x2b9a27);if(this['_isBlockAttribute'](_0x2609d7)){for(const _0x28f756 of _0x1eab13)_0x28f756['getCustomProperty']('addHighlight')||(_0x1690dd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x28f756),_0x1690dd['writer']['removeAttribute']('data-suggestion',_0x28f756),_0x1690dd['mapper']['unbindElementFromMarkerName'](_0x28f756,_0x1b319b['markerName']));}},{'priority':'high'});}),_0x22fbdc['model']['document']['registerPostFixer'](_0x424210=>{let _0x21fd6e=!0x1;const _0x413f24=Array['from'](_0x22fbdc['model']['document']['differ']['getChangedMarkers']()),_0x18da5b=new Set();for(const {name:_0x51d5d0,data:_0x3823a6}of _0x413f24){const {group:_0xce70fe,type:_0x1374c2,subType:_0x1814cc,id:_0x2df5bd}=this['_splitMarkerName'](_0x51d5d0);if('suggestion'!==_0xce70fe)continue;const _0x5a3bdc=this['_suggestions']['get'](_0x2df5bd);if(null!=_0x3823a6['newRange']){'formatInline'==_0x1374c2&&(_0x21fd6e=_0x21fd6e||Et(_0x3823a6['newRange'],_0x51d5d0,_0x424210,_0x22fbdc['model']['schema']));const _0x2ba18e='attribute'==_0x1374c2&&this['_isBlockAttribute'](_0x1814cc['split']('|')[0x0]);if(_0x3823a6['newRange']['isCollapsed']||'$graveyard'==_0x3823a6['newRange']['root']['rootName']||'formatBlock'==_0x1374c2&&!Ut(_0x3823a6['newRange'])||_0x2ba18e&&!Ut(_0x3823a6['newRange'])||'deletion'==_0x1374c2&&!(!Tt(_0x448bc2=_0x3823a6['newRange'])&&!function(_0x1a7dce){return _0x1a7dce['start']['parent']==_0x1a7dce['end']['nodeBefore']&&_0x1a7dce['start']['isAtEnd'];}(_0x448bc2)))_0x424210['removeMarker'](_0x51d5d0),_0x21fd6e=!0x0;else{if(!_0x5a3bdc||!_0x5a3bdc['isInContent'])continue;_0x18da5b['add'](_0x5a3bdc);}}}var _0x448bc2;return _0x18da5b['size']>0x0&&(_0x21fd6e=!!this['_joinWithAdjacentSuggestions'](_0x18da5b)||_0x21fd6e),_0x21fd6e;}),_0x22fbdc['model']['document']['registerPostFixer'](_0x449ba8=>{let _0x2adf65=!0x1;for(const _0x48f3ea of _0x22fbdc['model']['document']['differ']['getChanges']())if('insert'==_0x48f3ea['type'])for(const _0x41d432 of this['_suggestions']['values']()){if(_0x41d432['isMultiRange']||!_0x41d432['isInContent'])continue;const _0x57631f='formatBlock'==_0x41d432['type'],_0xcf4bba=this['_getAttributeKey'](_0x41d432),_0x2ae068=_0xcf4bba&&this['_isBlockAttribute'](_0xcf4bba);if(!_0x57631f&&!_0x2ae068)continue;const _0xddc4a7=_0x41d432['getFirstRange']();if(_0xddc4a7['start']['parent']!=_0xddc4a7['end']['parent']&&!_0xddc4a7['end']['isAtEnd']){const _0x2b7daf=_0x22fbdc['model']['createPositionAt'](_0xddc4a7['start']['nodeAfter'],'end'),_0x4eecaf=_0x22fbdc['model']['createRange'](_0xddc4a7['start'],_0x2b7daf);_0x449ba8['updateMarker'](_0x41d432['getFirstMarker'](),{'range':_0x4eecaf}),_0x2adf65=!0x0;}}return _0x2adf65;}),_0x22fbdc['model']['document']['registerPostFixer'](_0x1cc5f7=>this['_processAttributeChanges'](_0x1cc5f7)),_0x22fbdc['model']['document']['registerPostFixer'](_0x35267f=>!_0x35267f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x35267f)),_0x22fbdc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x22fbdc['model']['document']['on']('change:data',(_0x4356a2,_0xdf3c23)=>{if(!_0xdf3c23['isLocal']||_0xdf3c23['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x28a8d8=_0x22fbdc['model']['document']['differ']['getChanges']();if(0x0==_0x28a8d8['length'])return;const _0x2308ce=[],_0x5c3698=_0x28a8d8['filter'](_0x5d159f=>'attribute'==_0x5d159f['type']),_0x32b1a1=_0x28a8d8['filter'](_0x11c6e7=>'insert'==_0x11c6e7['type']&&'$text'!=_0x11c6e7['name']),_0x4b8018=_0x28a8d8['filter'](_0xc8a688=>'remove'==_0xc8a688['type']&&'$text'!=_0xc8a688['name']);for(const _0x3ac369 of _0x5c3698)this['_isRegisteredAttribute'](_0x3ac369['attributeKey'])&&_0x2308ce['push']({'key':_0x3ac369['attributeKey'],'newValue':_0x3ac369['attributeNewValue'],'oldValue':_0x3ac369['attributeOldValue'],'range':Ot(_0x3ac369['range'],_0x22fbdc['model'])});for(const _0x42d14f of _0x32b1a1){const _0x52d54a=_0x4b8018['find'](_0xf0f922=>_0xf0f922['_element']===_0x42d14f['_element']);if(_0x52d54a){const _0xb67a3f=Ft(_0x42d14f['position']['nodeAfter'],_0x22fbdc['model']);_0x52d54a['name']!==_0x42d14f['name']&&_0x2308ce['push']({'key':m,'newValue':_0x42d14f['name'],'oldValue':_0x52d54a['name'],'range':_0xb67a3f});for(const [_0x4208a3,_0xd36e14]of _0x52d54a['attributes']){if(!this['_isRegisteredAttribute'](_0x4208a3))continue;const _0x5c9a0e=_0x42d14f['attributes']['get'](_0x4208a3);_0xd36e14!==_0x5c9a0e&&_0x2308ce['push']({'key':_0x4208a3,'newValue':_0x5c9a0e,'oldValue':_0xd36e14,'range':_0xb67a3f});}for(const [_0x67320,_0x522127]of _0x42d14f['attributes'])this['_isRegisteredAttribute'](_0x67320)&&(_0x52d54a['attributes']['has'](_0x67320)||_0x2308ce['push']({'key':_0x67320,'newValue':_0x522127,'oldValue':null,'range':_0xb67a3f}));}}0x0!=_0x2308ce['length']&&_0x22fbdc['model']['enqueueChange'](_0xdf3c23,_0x3ff9df=>{const _0x5e7df7=_0x51245d();for(const {range:_0x4ba628,key:_0x564a8f,oldValue:_0x3ec5e0,newValue:_0x33c219}of _0x2308ce)this['markAttributeChange'](_0x4ba628,_0x564a8f,_0x3ec5e0,_0x33c219,{'groupId':_0x5e7df7});this['_reduceExistingSuggestions'](_0x3ff9df,_0x2308ce);});},{'priority':'lowest'}),_0x22fbdc['model']['markers']['on']('update:suggestion',(_0x1746ea,_0x44bb8d,_0xf2b130)=>{if(null==_0xf2b130){const {id:_0x1a87d8}=this['_splitMarkerName'](_0x44bb8d['name']),_0x445260=this['_suggestions']['get'](_0x1a87d8);_0x445260&&_0x445260['addMarkerName'](_0x44bb8d['name']);}}),_0x22fbdc['model']['document']['on']('change:data',()=>{const _0x1fffc2=Array['from'](_0x22fbdc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1a912a=>'suggestion'===this['_splitMarkerName'](_0x1a912a['name'])['group']);if(0x0===_0x1fffc2['length'])return;_0x1fffc2['sort']((_0x20c020,_0x5c241c)=>{const _0x1be23c=_0x20c020['data']['oldRange'],_0x28943a=_0x5c241c['data']['oldRange'];return null===_0x1be23c&&null===_0x28943a?0x0:null===_0x1be23c&&null!==_0x28943a?-0x1:null!==_0x1be23c&&null===_0x28943a?0x1:_0x1be23c['start']['isBefore'](_0x28943a['start'])?-0x1:0x1;});const _0x2861d3=new Set(),_0x56b814=new Set();for(const {name:_0x7da291,data:_0x501a79}of _0x1fffc2){const {id:_0x1a63b0}=this['_splitMarkerName'](_0x7da291);if(null===_0x501a79['oldRange']){const _0x2d2a54=this['_handleNewSuggestionMarker'](_0x7da291);_0x56b814['add'](_0x2d2a54);}else{const _0x3af356=this['_suggestions']['get'](_0x1a63b0);null!==_0x501a79['newRange']||_0x3af356['isInContent']?(_0x2861d3['add'](_0x3af356['head']),_0x56b814['add'](_0x3af356)):this['_removeSuggestion'](_0x3af356);}}_0x56b814['size']>0x0&&this['_refreshSuggestionsChain'](_0x56b814);for(const _0x4635b9 of _0x2861d3)this['fire']('suggestionChanged',_0x4635b9);}),_0x22fbdc['model']['on']('applyOperation',(_0x1b946d,_0x59ca84)=>{const _0x3990c1=_0x59ca84[0x0];if(!this['_suggestions']['size'])return;if(!_0x3990c1['isDocumentOperation'])return;if(_0x3990c1['batch']['isUndo']||!_0x3990c1['batch']['isLocal'])return;let _0x3b00cb,_0x1c1c48;switch(_0x3990c1['type']){case'insert':_0x3b00cb=_0x22fbdc['model']['createPositionAt'](_0x3990c1['position']),_0x1c1c48=_0x3b00cb['getShiftedBy'](_0x3990c1['howMany']);break;case'split':_0x3b00cb=_0x22fbdc['model']['createPositionAt'](_0x3990c1['splitPosition']),_0x1c1c48=_0x22fbdc['model']['createPositionAt'](_0x3990c1['moveTargetPosition']);break;case'move':_0x3b00cb=_0x22fbdc['model']['createPositionAt'](_0x3990c1['targetPosition']),_0x1c1c48=_0x3b00cb['getShiftedBy'](_0x3990c1['howMany']);break;default:return;}const _0x358df8=_0x22fbdc['model']['createRange'](_0x3b00cb,_0x1c1c48);_0x22fbdc['model']['change'](()=>{for(const {suggestion:_0x551944,meta:_0x408268}of this['_findSuggestions'](_0x358df8)){if(_0x551944['isMultiRange'])continue;if('formatInline'==_0x551944['type'])continue;const _0x87d935=this['_getAttributeKey'](_0x551944);if(_0x87d935&&this['_isBlockAttribute'](_0x87d935)&&'split'!=_0x3990c1['type'])continue;const _0x3e0b62=_0x551944['data']&&_0x551944['data']['multipleBlocks'];('formatBlock'!=_0x551944['type']||'split'==_0x3990c1['type']&&!_0x3e0b62)&&(_0x408268['containsRangeInObject']||'insertion'==_0x551944['type']&&_0x408268['isOwn']||_0x551944['getFirstRange']()['containsRange'](_0x358df8)&&this['_breakSuggestionMarker'](_0x551944,_0x3b00cb,_0x1c1c48));}});},{'priority':'lowest'}),_0x22fbdc['model']['on']('deleteContent',(_0x2b3ca5,_0x1e4c07)=>{const _0x466e42=_0x1e4c07[0x0],_0x2804dc=_0x1e4c07[0x1];if(_0x2804dc&&_0x2804dc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x466e42['isCollapsed'])return;const _0x3186dd=_0x22fbdc['model']['schema'],{start:_0xd46d5c,end:_0x17f171}=_0x466e42['getFirstRange'](),_0x333ea5=_0xd46d5c['nodeAfter']&&_0x3186dd['isLimit'](_0xd46d5c['nodeAfter'])?null:_0x3186dd['getNearestSelectionRange'](_0xd46d5c,'forward'),_0x2fe12a=_0x17f171['nodeBefore']&&_0x3186dd['isLimit'](_0x17f171['nodeBefore'])?null:_0x3186dd['getNearestSelectionRange'](_0x17f171,'backward'),_0x2f76da=_0x22fbdc['model']['createRange'](_0x333ea5?_0x333ea5['start']:_0xd46d5c,_0x2fe12a?_0x2fe12a['end']:_0x17f171);_0x22fbdc['model']['change'](_0xd7e083=>{this['markDeletion'](_0x2f76da);const _0x18a0fa=_0x22fbdc['model']['schema']['getNearestSelectionRange'](_0x2f76da['start']);_0x466e42['is']('documentSelection')?_0xd7e083['setSelection'](_0x18a0fa):_0x466e42['setTo'](_0x18a0fa);}),_0x2b3ca5['stop']();},{'priority':_0x110481['normal']+0xa}),_0x22fbdc['model']['on']('insertContent',(_0x49b4bc,_0x488006)=>{const _0x786bae=_0x488006[_0x488006['length']-0x1];_0x786bae&&_0x786bae['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x22fbdc['model']['change'](()=>{let _0x120b6d=_0x22fbdc['model']['insertContent'](_0x488006[0x0],_0x488006[0x1],_0x488006[0x2],{'forceDefaultExecution':!0x0});if(!_0x120b6d)return;_0x49b4bc['return']=_0x120b6d['clone']();const _0x487765=_0x120b6d['end']['nodeBefore'],_0xbb9075=_0x22fbdc['model']['schema'];_0x487765&&_0xbb9075['isBlock'](_0x487765)&&!_0xbb9075['isObject'](_0x487765)&&(_0x120b6d=_0x22fbdc['model']['createRange'](_0x120b6d['start'],_0x22fbdc['model']['createPositionAt'](_0x487765,'end'))),this['markInsertion'](_0x120b6d);}),_0x49b4bc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x29d5ec=new $(_0x22fbdc,this['_suggestions']);_0x22fbdc['commands']['add']('acceptSuggestion',_0x29d5ec),this['enableCommand']('acceptSuggestion');const _0xbed954=new B(_0x22fbdc,this['_suggestions']);_0x22fbdc['commands']['add']('discardSuggestion',_0xbed954),this['enableCommand']('discardSuggestion'),_0x22fbdc['commands']['add']('acceptAllSuggestions',new x(_0x22fbdc,_0x29d5ec,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x22fbdc['commands']['add']('discardAllSuggestions',new x(_0x22fbdc,_0xbed954,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x22fbdc['commands']['add']('acceptSelectedSuggestions',new R(_0x22fbdc,_0x29d5ec,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x22fbdc['commands']['add']('discardSelectedSuggestions',new R(_0x22fbdc,_0xbed954,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xffaf91=_0x22fbdc['plugins']['get']('CommentsRepository');this['listenTo'](_0xffaf91,'addComment',(_0x490d08,{threadId:_0x386666})=>{const _0x5e48b5=this['_suggestions']['get'](_0x386666);_0x5e48b5&&_0x5e48b5['commentThread']&&0x1===_0x5e48b5['commentThread']['length']&&this['_updateSuggestionData'](_0x386666,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xffaf91,'removeComment',(_0x5a7218,{threadId:_0x5b151a})=>{const _0x693779=this['_suggestions']['get'](_0x5b151a);_0x693779&&_0x693779['commentThread']&&!_0x693779['commentThread']['length']&&this['_updateSuggestionData'](_0x5b151a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x18c427){if(this['_adapter'])throw new _0x4926cb('track-changes-adapter-already-set',this);this['_adapter']=_0x18c427;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x33fa41=!0x1,toJSON:_0x37e2d1=!0x1}={}){const _0x345eb8=[];for(const _0x4e278f of this['_suggestions']['values']())_0x33fa41&&!_0x4e278f['isInContent']||_0x345eb8['push'](_0x4e278f);return _0x37e2d1?_0x345eb8['map'](_0x1bec41=>_0x1bec41['toJSON']()):_0x345eb8;}['getSuggestion'](_0x300d19){const _0x898426=this['_suggestions']['get'](_0x300d19);if(!_0x898426)throw new _0x4926cb('track-changes-suggestion-not-found',this);return _0x898426;}['hasSuggestion'](_0x206eb5){return this['_suggestions']['has'](_0x206eb5);}['addSuggestionData'](_0x3bf48a){const {authorId:_0xde7cf1,id:_0x5dfb55,attributes:_0x509477}=_0x3bf48a,[_0x5bc596,_0x2b1ce6]=_0x3bf48a['type']['split'](':'),_0x43e334=this['_suggestions']['get'](_0x5dfb55)||this['_createSuggestion'](_0x5bc596,_0x2b1ce6,_0x5dfb55,_0xde7cf1,_0x509477);if(this['_addThreadToSuggestion'](_0x43e334),this['_checkSuggestionCorrectness'](_0x43e334,_0x5bc596,_0x2b1ce6||null,_0xde7cf1),_0x43e334['createdAt']=_0x3bf48a['createdAt'],_0x43e334['_isDataLoaded']=!0x0,_0x509477&&_0x509477['@external']){const _0x53afcc=_0x509477['@external'],_0x5ef778=this['_getExternalAuthor'](_0x53afcc['authorName']);_0x43e334['authoredAt']=_0x53afcc['createdAt'],_0x43e334['author']=_0x5ef778,_0x43e334['isExternal']=!0x0;}else _0x43e334['authoredAt']=_0x3bf48a['createdAt'];switch(_0x3bf48a['data']&&(_0x43e334['data']=_0x3bf48a['data']),_0x3bf48a['attributes']&&(_0x43e334['attributes']=_0x3bf48a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43e334['_saved']=!0x0),this['_suggestionState']['get'](_0x43e334)){case'notReady':this['_suggestionState']['set'](_0x43e334,'dataReady');break;case'markerReady':_0x43e334['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43e334])),this['_refreshSuggestionsChain'](new Set([_0x43e334])),this['_suggestionState']['set'](_0x43e334,'ready'),this['fire']('suggestionLoaded',_0x43e334)):this['_suggestionState']['set'](_0x43e334,'removed');}return _0x43e334;}['acceptSuggestion'](_0x203d6f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x485890 of _0x203d6f['getAllAdjacentSuggestions']())_0x485890['accept']();});});}['discardSuggestion'](_0x4b39dd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c3119 of _0x4b39dd['getAllAdjacentSuggestions']())_0x1c3119['discard']();});});}['enableCommand'](_0x42b48c,_0x14a45c){const _0x302d4d=this['editor']['commands']['get'](_0x42b48c);if(!_0x302d4d)throw new _0x4926cb('track-changes-command-not-found',this,{'commandName':_0x42b48c});if(this['_enabledCommands']['has'](_0x302d4d))throw new _0x4926cb('track-changes-enable-command-twice',this,{'commandName':_0x42b48c});this['_enabledCommands']['add'](_0x302d4d),_0x14a45c&&_0x302d4d['on']('execute',(_0x454786,_0x28919c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x28919c['length']>0x0&&_0x28919c[_0x28919c['length']-0x1]&&_0x28919c[_0x28919c['length']-0x1]['forceDefaultExecution']?_0x28919c['pop']():(_0x454786['return']=_0x14a45c((..._0x1cce26)=>_0x302d4d['execute'](..._0x1cce26,{'forceDefaultExecution':!0x0}),..._0x28919c),_0x454786['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2ba89d){let _0x37380a,_0x5847fe;const _0x3fb5f8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x37380a=_0x2ba89d();}catch(_0x195fef){_0x5847fe=_0x195fef;}return _0x3fb5f8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5847fe&&_0x4926cb['rethrowUnexpectedError'](_0x5847fe,this),_0x37380a;}['markInsertion'](_0x3447a2,_0x2fbb1c=null,_0xd12f02={}){if(_0x3447a2['isCollapsed'])return null;const _0x5d671b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x466254,meta:_0x4cbaca}of this['_findSuggestions'](_0x3447a2,'insertion'))if(_0x4cbaca['isOwn']){if(!_0x4cbaca['isNextTo']){if(_0x4cbaca['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x466254,_0xd12f02))continue;return _0x466254;}if(Lt(_0x466254,_0xd12f02))return _0x466254;this['_breakSuggestionMarker'](_0x466254,_0x3447a2['start'],_0x3447a2['end']);break;}if(_0x2fbb1c==_0x466254['subType']&&Lt(_0x466254,_0xd12f02)){const _0x572dcd=_0x466254['getFirstRange']();return _0x572dcd['start']['isEqual'](_0x3447a2['end'])?this['_setSuggestionRange'](_0x466254,this['_model']['createRange'](_0x3447a2['start'],_0x572dcd['end'])):this['_setSuggestionRange'](_0x466254,this['_model']['createRange'](_0x572dcd['start'],_0x3447a2['end'])),_0x466254;}}const _0x321d44=_0x51245d(),_0x122c00=_0x5d671b['id'],_0x5821fb=_0x2fbb1c?'insertion:'+_0x2fbb1c:'insertion',_0x4ef9fc=this['_setSuggestionData']({'id':_0x321d44,'type':_0x5821fb,'createdAt':new Date(),'authorId':_0x122c00,'attributes':_0xd12f02});return this['_addSuggestionMarker'](_0x5821fb,_0x321d44,_0x122c00,_0x3447a2),_0x4ef9fc;}['markMultiRangeInsertion'](_0x33cbcd,_0x2cbdb8='multi',_0x2cdef4={}){const _0x3689fa=this['editor']['plugins']['get']('Users')['me'],_0x3cc60a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2cbdb8,'join');for(const _0x3cfaa4 of this['getSuggestions']())if(_0x3cfaa4['author']['id']==_0x3689fa['id']&&'insertion'==_0x3cfaa4['type']&&_0x3cfaa4['subType']==_0x2cbdb8&&Lt(_0x3cfaa4,_0x2cdef4)&&(_0x3cc60a(_0x3cfaa4['getRanges'](),_0x33cbcd)||_0x3cc60a(_0x33cbcd,_0x3cfaa4['getRanges']()))){for(const _0x54f7e9 of _0x33cbcd)_0x3cfaa4['addRange'](_0x54f7e9);return _0x3cfaa4;}for(const {suggestion:_0x4244a0,meta:_0x464dce}of this['_findSuggestions'](_0x33cbcd,'insertion')){if(!_0x464dce['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x464dce['containsRangeInObject'])continue;if(!Lt(_0x4244a0,_0x2cdef4))continue;let _0x25f8d9=!0x0;for(const _0x24493a of _0x4244a0['getRanges']())for(const _0x1968a9 of _0x33cbcd)if(!_0x24493a['containsRange'](_0x1968a9)){_0x25f8d9=!0x1;break;}if(_0x25f8d9)return _0x4244a0;}const _0x1901f9=_0x51245d(),_0x5efa3b=_0x3689fa['id'],_0x45454c='insertion:'+_0x2cbdb8,_0x3b481a=this['_setSuggestionData']({'id':_0x1901f9,'type':_0x45454c,'createdAt':new Date(),'authorId':_0x5efa3b,'attributes':_0x2cdef4});for(const _0x4a19a3 of _0x33cbcd)this['_addSuggestionMarker'](_0x45454c,_0x1901f9,_0x5efa3b,_0x4a19a3,u['getMultiRangeId']());return _0x3b481a;}['markInlineFormat'](_0x3b2266,_0x18e5b6,_0x229e8a=null,_0x1f9df4={}){if(_0x229e8a=_0x229e8a||Vt(_0x18e5b6),_0x3b2266['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x8fcbd6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x229e8a,'accept');return this['forceDefaultExecution'](()=>_0x8fcbd6([_0x3b2266],_0x18e5b6,_0x1f9df4)),null;}const _0x4efc4b=this['editor']['plugins']['get']('Users')['me'],_0x41040b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3240ba,meta:_0xe1ac94}of this['_findSuggestions'](_0x3b2266,'insertion'))_0xe1ac94['isOwn']&&!_0xe1ac94['isInsideObject']&&_0x41040b['push'](..._0x3240ba['getRanges']());}const _0x3a2e71=function(_0x5cc320,_0x413649){const _0x110f1f=[];for(const _0x261327 of _0x413649){const _0x3b22c=_0x5cc320['getIntersection'](_0x261327);_0x3b22c&&_0x110f1f['push'](_0x3b22c);}return _0x110f1f;}(_0x3b2266,_0x41040b),_0x124a3e=function(_0x235996,_0x1ba1cf){const _0x3837b9=[_0x235996];for(const _0x4d5d60 of _0x1ba1cf){let _0x3f1908=0x0;for(;_0x3f1908<_0x3837b9['length'];){const _0x39d9f8=_0x3837b9[_0x3f1908]['getDifference'](_0x4d5d60);_0x3837b9['splice'](_0x3f1908,0x1,..._0x39d9f8),_0x3f1908+=_0x39d9f8['length'];}}return _0x3837b9;}(_0x3b2266,_0x41040b);_0x3a2e71['length']&&this['_model']['change'](()=>{for(const _0x3bcab4 of _0x3a2e71){const _0x56920b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x229e8a,'accept');this['forceDefaultExecution'](()=>_0x56920b([_0x3bcab4],_0x18e5b6,_0x1f9df4));}});for(const _0x14691a of _0x124a3e){let _0x2eed92=null,_0x4ece72=_0x14691a['start'],_0x1a447b=_0x14691a['end'];for(const {suggestion:_0x208701,meta:_0x3f53a7}of this['_findSuggestions'](_0x14691a,'formatInline')){if(!_0x3f53a7['isOwn'])continue;if(_0x208701['subType']!=_0x229e8a)continue;if(!Lt(_0x208701,_0x1f9df4))continue;const _0x46187e=_0x208701['getFirstRange']();if(_0x46187e['containsRange'](_0x14691a,!0x0))return null;_0x4ece72=_0x4ece72['isBefore'](_0x46187e['start'])?_0x4ece72:_0x46187e['start'],_0x1a447b=_0x1a447b['isAfter'](_0x46187e['end'])?_0x1a447b:_0x46187e['end'],_0x2eed92?_0x46187e['start']['isBefore'](_0x2eed92['getFirstRange']()['start'])?(_0x2eed92['removeMarkers'](),_0x2eed92=_0x208701):_0x208701['removeMarkers']():_0x2eed92=_0x208701;}const _0x4d1c3e=this['_model']['createRange'](_0x4ece72,_0x1a447b);if(_0x2eed92)this['_setSuggestionRange'](_0x2eed92,_0x4d1c3e);else{const _0x2f2963=_0x51245d(),_0x53e5f1=_0x4efc4b['id'];this['_setSuggestionData']({'id':_0x2f2963,'type':'formatInline:'+_0x229e8a,'data':_0x18e5b6,'createdAt':new Date(),'authorId':_0x53e5f1,'attributes':_0x1f9df4}),this['_addSuggestionMarker']('formatInline:'+_0x229e8a,_0x2f2963,_0x53e5f1,_0x4d1c3e);}}return null;}['markBlockFormat'](_0x3c4b53,_0x3a23f7,_0x4a4d10=[],_0x365e32=null,_0x5d4848={}){_0x3a23f7['formatGroupId']||(_0x3a23f7['formatGroupId']=_0x3a23f7['commandName']),_0x3a23f7['multipleBlocks']=_0x3c4b53['is']('range'),_0x365e32=_0x365e32||Vt(_0x3a23f7);const _0x3e3ff0=_0x4a4d10['map'](_0x4af29a=>Ft(_0x4af29a,this['_model'])),_0x4afbdc=_0x3c4b53['is']('range')?_0x3c4b53:Ft(_0x3c4b53,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4961b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x365e32,'accept');return this['forceDefaultExecution'](()=>_0x4961b8([_0x4afbdc],_0x3a23f7,_0x5d4848)),null;}_0x3e3ff0['push'](_0x4afbdc);let _0x35857e=!0x0;for(const _0x18e6ff of _0x3e3ff0)if(!this['_rangeIsInLocalUserInsertion'](_0x18e6ff)){_0x35857e=!0x1;break;}if(_0x35857e&&'always'!==this['_trackFormatChanges']){const _0x1cbdf7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x365e32,'accept');return this['forceDefaultExecution'](()=>_0x1cbdf7([_0x4afbdc],_0x3a23f7,_0x5d4848)),null;}let _0x4a405d=null,_0x5c963e=_0x4afbdc['start'],_0x502ef0=_0x4afbdc['end'];for(const {suggestion:_0x1df23d,meta:_0x3278da}of this['_findSuggestions'](_0x4afbdc,'formatBlock')){if(!_0x3278da['isOwn'])continue;if(_0x3278da['isNextTo']||_0x3278da['containsRangeInObject']||_0x3278da['isInsideObject'])continue;if(_0x1df23d['data']['formatGroupId']!=_0x3a23f7['formatGroupId'])continue;if(!Lt(_0x1df23d,_0x5d4848))continue;const _0xe0f36d=_0x1df23d['getFirstRange']();if(_0x1df23d['subType']==_0x365e32){if(_0xe0f36d['containsRange'](_0x4afbdc,!0x0))return null;_0x5c963e=_0x5c963e['isBefore'](_0xe0f36d['start'])?_0x5c963e:_0xe0f36d['start'],_0x502ef0=_0x502ef0['isAfter'](_0xe0f36d['end'])?_0x502ef0:_0xe0f36d['end'],_0x4a405d?_0xe0f36d['start']['isBefore'](_0x4a405d['getFirstRange']()['start'])?(_0x4a405d['removeMarkers'](),_0x4a405d=_0x1df23d):_0x1df23d['removeMarkers']():_0x4a405d=_0x1df23d;}else{const _0x35505d=_0x4afbdc['getIntersection'](_0xe0f36d);this['_cutOutSuggestionMarker'](_0x1df23d,_0x35505d);}}const _0x340418=this['editor']['plugins']['get']('Users')['me'],_0x4b13b0=_0x51245d(),_0x239979=_0x340418['id'];if(_0x4a405d)return this['_setSuggestionRange'](_0x4a405d,this['_model']['createRange'](_0x5c963e,_0x502ef0)),_0x4a405d;{const _0x4e5643=this['_setSuggestionData']({'id':_0x4b13b0,'type':'formatBlock:'+_0x365e32,'data':_0x3a23f7,'createdAt':new Date(),'authorId':_0x239979,'attributes':_0x5d4848});return this['_addSuggestionMarker']('formatBlock:'+_0x365e32,_0x4b13b0,_0x239979,this['_model']['createRange'](_0x5c963e,_0x502ef0)),_0x4e5643;}}['markMultiRangeBlockFormat'](_0x21453f,_0x2cb4a9,_0x19ebfa=[],_0x49318f=null,_0x1aec9e={}){_0x2cb4a9['formatGroupId']||(_0x2cb4a9['formatGroupId']=_0x2cb4a9['commandName']);const _0x49414e=_0x21453f[0x0];_0x2cb4a9['multipleBlocks']=_0x49414e['is']('range'),_0x49318f=_0x49318f||Vt(_0x2cb4a9);const _0x5026d6=_0x19ebfa['map'](_0x6039a0=>Ft(_0x6039a0,this['_model'])),_0xba52b4=_0x49414e['is']('range')?_0x21453f:_0x21453f['map'](_0x2263f4=>Ft(_0x2263f4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x49947f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49318f,'accept');return this['forceDefaultExecution'](()=>_0x49947f(_0xba52b4,_0x2cb4a9,_0x1aec9e)),null;}_0x5026d6['push'](..._0xba52b4);let _0x121e62=!0x0;for(const _0x493fe6 of _0x5026d6)if(!this['_rangeIsInLocalUserInsertion'](_0x493fe6)){_0x121e62=!0x1;break;}if(_0x121e62&&'always'!==this['_trackFormatChanges']){const _0x53ca32=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49318f,'accept');return this['forceDefaultExecution'](()=>_0x53ca32(_0xba52b4,_0x2cb4a9,_0x1aec9e)),null;}const _0x50bd32=this['editor']['plugins']['get']('Users')['me'];for(const _0x131eea of this['getSuggestions']()){if(_0x131eea['author']['id']!=_0x50bd32['id'])continue;if('formatBlock'!=_0x131eea['type']||_0x131eea['data']['formatGroupId']!=_0x2cb4a9['formatGroupId'])continue;if(!Lt(_0x131eea,_0x1aec9e))continue;const _0x106075=_0x131eea['subType']==_0x49318f;for(let _0x1d9100=0x0;_0x1d9100<_0xba52b4['length'];_0x1d9100++){const _0x331b2a=_0xba52b4[_0x1d9100];for(const _0x5cdb15 of _0x131eea['getMarkers']()){const _0x50f881=_0x5cdb15['getRange']();if(_0x331b2a['isEqual'](_0x50f881)){_0x106075?(_0xba52b4['splice'](_0x1d9100,0x1),_0x1d9100--):_0x131eea['removeMarker'](_0x5cdb15['name']);break;}}}}if(0x0==_0xba52b4['length'])return null;const _0x4cb192=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49318f,'join');for(const _0x2723ad of this['getSuggestions']())if(_0x2723ad['author']['id']==_0x50bd32['id']&&'formatBlock'==_0x2723ad['type']&&_0x2723ad['data']['formatGroupId']==_0x2cb4a9['formatGroupId']&&_0x2723ad['subType']==_0x49318f&&Lt(_0x2723ad,_0x1aec9e)&&(_0x4cb192(_0x2723ad['getRanges'](),_0xba52b4)||_0x4cb192(_0xba52b4,_0x2723ad['getRanges']()))){for(const _0x3cebe3 of _0xba52b4)_0x2723ad['addRange'](_0x3cebe3);return _0x2723ad;}const _0x149aaa=_0x51245d(),_0x2d8a01=_0x50bd32['id'],_0x5590e6='formatBlock:'+_0x49318f,_0x3dbe0c=this['_setSuggestionData']({'id':_0x149aaa,'type':_0x5590e6,'data':_0x2cb4a9,'createdAt':new Date(),'authorId':_0x2d8a01,'attributes':_0x1aec9e});for(const _0x3d0e4c of _0xba52b4)this['_addSuggestionMarker'](_0x5590e6,_0x149aaa,_0x2d8a01,_0x3d0e4c,u['getMultiRangeId']());return _0x3dbe0c;}['markDeletion'](_0x12c385,_0x121096=null,_0x436002={}){if(_0x12c385['isCollapsed'])return null;const _0x16a219=this['editor']['plugins']['get']('Users')['me'],_0x77fb13=new _0x1ed262(_0x12c385['start'],_0x12c385['end']);for(const {suggestion:_0x3e9f65,meta:_0x4477c7}of this['_findSuggestions'](_0x77fb13,'insertion'))if(_0x4477c7['isOwn']&&!_0x4477c7['isNextTo']){if(_0x3e9f65['isMultiRange']){const _0x37b90b=_0x3e9f65['getRanges']()['filter'](_0x351899=>'$graveyard'!=_0x351899['root']['rootName']);_0x37b90b['every'](_0x2c6c18=>_0x77fb13['containsRange'](_0x2c6c18,!0x0))&&_0x3e9f65['discard']();if(_0x37b90b['some'](_0x24f7f3=>_0x24f7f3['containsRange'](_0x77fb13,!0x0))){const _0x884fd2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x121096,'accept');return this['forceDefaultExecution'](()=>_0x884fd2([_0x77fb13],null,_0x436002)),null;}}else{const _0x5a6345=_0x77fb13['getIntersection'](_0x3e9f65['getFirstRange']());null!==_0x5a6345&&_0x3e9f65['_onDiscard']([_0x5a6345],null,_0x436002);}}if(_0x77fb13['detach'](),_0x77fb13['isCollapsed']||'$graveyard'==_0x77fb13['root']['rootName'])return null;let _0x10fb7c=null,_0x3352e2=_0x77fb13['start'],_0xd018f7=_0x77fb13['end'];const _0x115f80=this['_findSuggestions'](_0x77fb13,'deletion');for(const {suggestion:_0x4cf883,meta:_0x37e742}of _0x115f80){const _0x2f427a=this['_model']['createRange'](_0x3352e2,_0xd018f7);if(_0x37e742['isOwn']&&(this['_mergeNestedSuggestions']||!_0x37e742['containsRangeInObject']&&!_0x37e742['isInsideObject'])){if(_0x4cf883['isMultiRange']){if(!Lt(_0x4cf883,_0x436002))continue;let _0x5ed298=!0x0;for(const _0x269135 of _0x4cf883['getRanges']()){if(_0x269135['containsRange'](_0x2f427a,!0x0))return _0x4cf883;_0x2f427a['containsRange'](_0x269135)||(_0x5ed298=!0x1);}_0x5ed298&&_0x4cf883['discard']();}else{const _0x368311=_0x4cf883['getFirstRange']();if(_0x368311['containsRange'](_0x2f427a,!0x0))return _0x4cf883;if(!Lt(_0x4cf883,_0x436002)){_0x2f427a['containsRange'](_0x368311)?_0x4cf883['removeMarkers']():_0x368311['containsPosition'](_0x3352e2)?_0x3352e2=_0x368311['end']:_0x368311['containsPosition'](_0xd018f7)&&(_0xd018f7=_0x368311['start']);continue;}_0x3352e2=_0x3352e2['isBefore'](_0x368311['start'])?_0x3352e2:_0x368311['start'],_0xd018f7=_0xd018f7['isAfter'](_0x368311['end'])?_0xd018f7:_0x368311['end'],_0x436002=Object['assign']({},_0x4cf883['attributes']),_0x10fb7c?_0x368311['start']['isBefore'](_0x10fb7c['getFirstRange']()['start'])?(_0x10fb7c['removeMarkers'](),_0x10fb7c=_0x4cf883):_0x4cf883['removeMarkers']():_0x10fb7c=_0x4cf883;}}}if(_0x10fb7c)return this['_setSuggestionRange'](_0x10fb7c,this['_model']['createRange'](_0x3352e2,_0xd018f7)),_0x10fb7c;{const _0x16cdcc=_0x51245d(),_0x4eb38e=this['_model']['createRange'](_0x3352e2,_0xd018f7),_0x40e268=_0x16a219['id'],_0xf5f4ec=_0x121096?'deletion:'+_0x121096:'deletion',_0x230460=this['_setSuggestionData']({'id':_0x16cdcc,'type':_0xf5f4ec,'createdAt':new Date(),'authorId':_0x40e268,'attributes':_0x436002});return this['_addSuggestionMarker'](_0xf5f4ec,_0x16cdcc,_0x40e268,_0x4eb38e),_0x230460;}}['markMultiRangeDeletion'](_0x1f699a,_0x29dab8='multi',_0x46e780={}){const _0x595fa4=this['editor']['plugins']['get']('Users')['me'],_0xb270b3=_0x1f699a['map'](_0x5849a3=>new _0x1ed262(_0x5849a3['start'],_0x5849a3['end'])),_0x50110a=new Set();for(const {suggestion:_0x216dd2,meta:_0x3d495b}of this['_findSuggestions'](_0xb270b3,'insertion'))_0x3d495b['isOwn']&&!_0x3d495b['isNextTo']&&_0x50110a['add'](_0x216dd2);for(const _0x5cb273 of _0x50110a)if(_0x5cb273['isMultiRange']){const _0x5daee8=_0x5cb273['getRanges']();(!_0x5cb273['attributes']||!_0x5cb273['attributes']['skipNestingCheck'])&&(_0x5daee8['every'](_0x6ec01d=>_0xb270b3['some'](_0x599830=>_0x599830['containsRange'](_0x6ec01d,!0x0)))&&_0x5cb273['discard']());if(_0xb270b3['every'](_0x136a87=>_0x5daee8['some'](_0x2bc570=>_0x2bc570['containsRange'](_0x136a87,!0x0)))){const _0x4aca44=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29dab8,'accept');return this['forceDefaultExecution'](()=>_0x4aca44(_0x1f699a,null,_0x46e780)),null;}}else{const _0x50a269=_0x5cb273['getFirstRange']();_0xb270b3['some'](_0x384a1c=>_0x384a1c['containsRange'](_0x50a269,!0x0))&&_0x5cb273['discard']();if(_0xb270b3['every'](_0x47aacf=>_0x50a269['containsRange'](_0x47aacf,!0x0))){const _0x240c6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29dab8,'accept');return this['forceDefaultExecution'](()=>_0x240c6b(_0xb270b3,null,_0x46e780)),null;}}const _0x29fc7f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29dab8,'join');let _0x56b614=null;for(const _0x503476 of this['getSuggestions']())if(_0x503476['author']['id']==_0x595fa4['id']&&_0x503476['isInContent']&&'deletion'==_0x503476['type']&&_0x503476['subType']==_0x29dab8&&Lt(_0x503476,_0x46e780)&&(_0x29fc7f(_0x503476['getRanges'](),_0xb270b3)||_0x29fc7f(_0xb270b3,_0x503476['getRanges']()))){if(_0x56b614){if(_0x503476['commentThread']&&_0x503476['commentThread']['length'])continue;for(const _0x3a16ac of _0x503476['getRanges']())_0x56b614['isIntersectingWithRange'](_0x3a16ac)||_0x56b614['addRange'](_0x3a16ac);_0x503476['removeMarkers']();}else{_0x56b614=_0x503476;for(const _0x3b5d53 of _0xb270b3)_0x503476['isIntersectingWithRange'](_0x3b5d53)||_0x503476['addRange'](_0x3b5d53);}}if(_0x56b614)return _0x56b614;_0x50110a['clear']();for(const {suggestion:_0x1829b1,meta:_0x454494}of this['_findSuggestions'](_0xb270b3,'deletion'))_0x454494['isOwn']&&(this['_mergeNestedSuggestions']||!_0x454494['containsRangeInObject']&&!_0x454494['isInsideObject'])&&Lt(_0x1829b1,_0x46e780)&&_0x50110a['add'](_0x1829b1);for(const _0x58aad5 of _0x50110a){const _0x1b89fa=_0x58aad5['getRanges']();if(!_0x46e780||!_0x46e780['skipNestingCheck']){if(_0xb270b3['every'](_0x33c5a0=>_0x1b89fa['some'](_0x300ab6=>_0x300ab6['containsRange'](_0x33c5a0,!0x0))))return _0x58aad5;}(!_0x58aad5['attributes']||!_0x58aad5['attributes']['skipNestingCheck'])&&(_0x1b89fa['every'](_0x52fffa=>_0xb270b3['some'](_0x349645=>_0x349645['containsRange'](_0x52fffa,!0x0)))&&_0x58aad5['discard']());}const _0x165c48=_0x51245d(),_0x4905c8=_0x595fa4['id'],_0x56109e='deletion:'+_0x29dab8,_0x32e1f0=this['_setSuggestionData']({'id':_0x165c48,'type':_0x56109e,'createdAt':new Date(),'authorId':_0x4905c8,'attributes':_0x46e780});for(const _0x2e9f9e of _0xb270b3)_0x2e9f9e['detach'](),_0x2e9f9e['isCollapsed']||'$graveyard'==_0x2e9f9e['root']['rootName']||this['_addSuggestionMarker'](_0x56109e,_0x165c48,_0x4905c8,_0x2e9f9e,u['getMultiRangeId']());return _0x32e1f0;}['markAttributeChange'](_0x10e7ac,_0x239cb0,_0x324ca0,_0x59b339,_0x122127){if(_0x10e7ac['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x815915=this['editor']['plugins']['get']('Users')['me']['id'],_0x5de9a1=Array['from'](this['_suggestions']['values']())['filter'](_0x4ffddf=>'attribute'==_0x4ffddf['type']&&_0x4ffddf['data']['key']==_0x239cb0&&_0x4ffddf['isIntersectingWithRange'](_0x10e7ac));if('default'===this['_trackFormatChanges']){const _0x23bff8=this['_findSuggestions'](_0x10e7ac,'insertion')['filter'](({meta:_0x16882f})=>_0x16882f['isOwn']&&!_0x16882f['isInsideObject']&&!_0x16882f['isNextTo'])['map'](({suggestion:_0x5af09e})=>_0x5af09e);_0x5de9a1['unshift'](..._0x23bff8);}const _0x41d2cc=new Map([[_0x10e7ac,_0x324ca0]]);for(const _0x363ac7 of _0x5de9a1){const _0x4118fd='attribute'==_0x363ac7['type']?_0x363ac7['data']['oldValue']:void 0x0,_0x4645ce=_0x363ac7['getFirstRange'](),_0x2aea1f=Array['from'](_0x41d2cc['keys']())['find'](_0x162abc=>_0x162abc['isIntersecting'](_0x4645ce));if(!_0x2aea1f)continue;const _0x29cc8a=_0x2aea1f['getDifference'](_0x4645ce);this['_isBlockAttribute'](_0x239cb0)&&'insertion'==_0x363ac7['type']&&0x0!=_0x29cc8a['length']||(_0x41d2cc['delete'](_0x2aea1f),_0x29cc8a['forEach'](_0x55f2ab=>{_0x41d2cc['set'](_0x55f2ab,_0x324ca0);}),'insertion'!=_0x363ac7['type']&&_0x4118fd!=_0x59b339&&_0x41d2cc['set'](_0x2aea1f['getIntersection'](_0x4645ce),_0x4118fd));}const _0x1be514=[];for(const [_0x370e16,_0x4d4bdb]of _0x41d2cc){const _0x48111a=_0x51245d(),_0x53a6f7={'key':_0x239cb0,'oldValue':_0x4d4bdb,'newValue':_0x59b339};_0x239cb0['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':_0x239cb0});const _0x85ba74=('attribute:'+(_0x239cb0+'|'+Vt({'newValue':_0x59b339})))['substring'](0x0,0x3c),_0x4c4a2e=this['_setSuggestionData']({'id':_0x48111a,'type':_0x85ba74,'data':_0x53a6f7,'createdAt':new Date(),'authorId':_0x815915,'attributes':_0x122127});_0x1be514['push'](_0x4c4a2e),this['_addSuggestionMarker'](_0x85ba74,_0x48111a,_0x815915,_0x370e16);}return _0x1be514;}['enableDefaultAttributesIntegration'](_0x3665fa){this['enableCommand'](_0x3665fa,(_0x1356b8,..._0x2b6442)=>{this['_recordAttributeChanges'](()=>{_0x1356b8(..._0x2b6442);});});}['registerBlockAttribute'](_0x196655){this['_blockAttributeKeys']['add'](_0x196655);}['registerInlineAttribute'](_0x1bd7bb){this['_inlineAttributeKeys']['add'](_0x1bd7bb);}['_getAttributeKey'](_0x32c2c9){return'attribute'==_0x32c2c9['type']?_0x32c2c9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1d9997,_0x194bfe){const _0x40b4a9=_0x1d9997['getFirstMarker']();this['_model']['change'](_0xf3d65e=>{_0xf3d65e['updateMarker'](_0x40b4a9,{'range':_0x194bfe});});}['_addThreadToSuggestion'](_0x2621c6){const _0x57af7b=_0x2621c6['id'],_0x54fb64=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x57af7b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x54fb64,'threadId':_0x57af7b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x324367=this['_commentsRepository']['getCommentThread'](_0x57af7b);_0x324367['unbind']('isRemovable'),_0x324367['isRemovable']=!0x1,_0x2621c6['commentThread']=_0x324367;}['_checkSuggestionCorrectness'](_0x921faf,_0xdd34f2,_0x2164da,_0x3a7c34){if(_0x921faf['type']!=_0xdd34f2||_0x921faf['subType']!=_0x2164da||_0x921faf['creator']['id']!=_0x3a7c34)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4926cb('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5328af,_0x29e7ac){const _0x497395=_0x5328af['getFirstRange']();if(_0x29e7ac['isEqual'](_0x497395))_0x5328af['removeMarkers']();else{if(_0x497395['containsRange'](_0x29e7ac)){const _0x1db1a3=this['_model']['createPositionAt'](_0x29e7ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5328af,this['_model']['createRange'](_0x497395['start'],_0x1db1a3));const _0x384806=_0x51245d(),_0xa3c5a5=_0x5328af['creator']['id'],_0x49af77=_0x5328af['type']+':'+_0x5328af['subType'];this['_setSuggestionData']({'id':_0x384806,'type':_0x49af77,'createdAt':new Date(),'authorId':_0xa3c5a5,'data':_0x5328af['data'],'attributes':_0x5328af['attributes']});const _0x186f93=this['_model']['createPositionAt'](_0x29e7ac['end']['parent'],'after'),_0x2d4ffd=this['_model']['createRange'](_0x186f93,_0x497395['end']);this['_addSuggestionMarker'](_0x49af77,_0x384806,_0xa3c5a5,_0x2d4ffd);}else{if(_0x497395['containsPosition'](_0x29e7ac['start'])){const _0x3dbbef=this['_model']['createPositionAt'](_0x29e7ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5328af,this['_model']['createRange'](_0x497395['start'],_0x3dbbef));}else{const _0x16b953=this['_model']['createPositionAt'](_0x29e7ac['end']['parent'],'after');this['_setSuggestionRange'](_0x5328af,this['_model']['createRange'](_0x16b953,_0x497395['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1f4576){for(const {suggestion:_0x30d716,meta:_0xc8361c}of this['_findSuggestions'](_0x1f4576,'insertion')){if(!_0xc8361c['isOwn'])continue;const _0x33f580=_0x30d716['getRanges']();for(const _0x1d61fd of _0x33f580)if(!_0x1f4576['getDifference'](_0x1d61fd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x352948){const _0x1d9907=this['editor']['plugins']['get']('Users')['getUser'](_0x352948);if(!_0x1d9907)throw new _0x4926cb('track-changes-user-not-found',this);return _0x1d9907;}['_getExternalAuthor'](_0x3ca154){const _0x4be72b=this['editor']['plugins']['get']('Users'),_0x424073=_0x524a26('external:'+_0x3ca154),_0x20a5b2=_0x4be72b['getUser'](_0x424073);return _0x20a5b2||_0x4be72b['addUser']({'id':_0x424073,'name':_0x3ca154});}['_createSuggestion'](_0x3f4809,_0x1aac39,_0x10599a,_0x3c0ebb,_0x4668a7){const _0x1b9134=this['_getAuthorFromId'](_0x3c0ebb),_0x119cfe=this['_suggestionFactory']['buildSuggestion'](_0x3f4809,_0x1aac39,_0x10599a,_0x1b9134,_0x4668a7,_0x54cb4d=>{this['_updateSuggestionData'](_0x10599a,{'attributes':_0x54cb4d});const _0xbd0a22=this['getSuggestion'](_0x10599a);this['_joinWithAdjacentSuggestions'](new Set([_0xbd0a22])),this['_refreshSuggestionsChain'](new Set([_0xbd0a22]));});return this['listenTo'](_0x119cfe,'accept',()=>{this['_updateSuggestionData'](_0x10599a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x119cfe,'discard',()=>{this['_updateSuggestionData'](_0x10599a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x10599a,_0x119cfe),this['_suggestionState']['set'](_0x119cfe,'notReady'),_0x119cfe;}['_splitMarkerName'](_0x7a9351){const _0x2a7517=_0x7a9351['split'](':');return{'group':_0x2a7517[0x0],'type':_0x2a7517[0x1],'subType':_0x2a7517['length']>=0x5?_0x2a7517[0x2]:null,'id':_0x2a7517['length']<0x5?_0x2a7517[0x2]:_0x2a7517[0x3],'authorId':_0x2a7517['length']<0x5?_0x2a7517[0x3]:_0x2a7517[0x4],'markerCount':0x6==_0x2a7517['length']?_0x2a7517[0x5]:null};}['_breakSuggestionMarker'](_0x4d2832,_0x5d6c2f,_0x9ab538){const _0x1d8641=_0x4d2832['getFirstRange'](),_0x34e23c=_0x1d8641['start'],_0x3c4e52=_0x1d8641['end'];this['_setSuggestionRange'](_0x4d2832,this['_model']['createRange'](_0x34e23c,_0x5d6c2f));const _0x3de363=_0x51245d(),_0x1eb66c=_0x4d2832['creator']['id'],_0x3baee5=_0x4d2832['type']+(_0x4d2832['subType']?':'+_0x4d2832['subType']:'');this['_setSuggestionData']({'id':_0x3de363,'type':_0x3baee5,'createdAt':new Date(),'authorId':_0x1eb66c,'originalSuggestionId':_0x4d2832['id'],'attributes':_0x4d2832['attributes'],'data':_0x4d2832['data']});const _0x659a92=this['_getAttributeKey'](_0x4d2832);('formatBlock'==_0x4d2832['type']||_0x659a92&&this['_isBlockAttribute'](_0x659a92))&&(_0x9ab538=this['_model']['createPositionBefore'](_0x9ab538['parent'])),this['_addSuggestionMarker'](_0x3baee5,_0x3de363,_0x1eb66c,this['_model']['createRange'](_0x9ab538,_0x3c4e52));}['_findSuggestions'](_0x165ace,_0x2ee6f9=null){const _0x2447bb=[],_0x475e7b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x165ace)||(_0x165ace=[_0x165ace]);for(const _0x39c09a of this['getSuggestions']()){if(!_0x39c09a['isInContent'])continue;if(_0x2ee6f9&&_0x39c09a['type']!=_0x2ee6f9)continue;let _0x3d7c0a=!0x1;for(const _0x4bb469 of _0x39c09a['getRanges']()){for(const _0x115774 of _0x165ace){const _0x53aafd=_0x115774['start']['isEqual'](_0x4bb469['end'])||_0x115774['end']['isEqual'](_0x4bb469['start']);if(_0x53aafd||_0x115774['getIntersection'](_0x4bb469)){const _0x3cda9a=_0x115774['containsRange'](_0x4bb469)&&Rt(this['_model']['schema'],_0x4bb469['start'],_0x115774),_0x5e4e43=_0x4bb469['containsRange'](_0x115774)&&Rt(this['_model']['schema'],_0x115774['start'],_0x4bb469);_0x2447bb['push']({'suggestion':_0x39c09a,'meta':{'isOwn':_0x475e7b==_0x39c09a['author'],'isNextTo':_0x53aafd,'isInsideObject':_0x3cda9a,'containsRangeInObject':_0x5e4e43}}),_0x3d7c0a=!0x0;break;}}if(_0x3d7c0a)break;}}return _0x2447bb;}['_addSuggestionMarker'](_0x260ff3,_0x1cec49,_0x200daa,_0x5990d3,_0x5eeb00){this['_model']['change'](_0x5f2bf3=>{let _0x340aac='suggestion:'+_0x260ff3+':'+_0x1cec49+':'+_0x200daa;_0x5eeb00&&(_0x340aac=_0x340aac+':'+_0x5eeb00),_0x5f2bf3['addMarker'](_0x340aac,{'range':_0x5990d3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x402e48){const _0x5af276=_0x402e48['previous'],_0x109291=_0x402e48['next'];_0x402e48['previous']=null,_0x402e48['next']=null,null!=_0x5af276&&_0x5af276['next']==_0x402e48&&(_0x5af276['next']=_0x109291),null!=_0x109291&&_0x109291['previous']==_0x402e48&&(_0x109291['previous']=_0x5af276),'ready'==this['_suggestionState']['get'](_0x402e48)&&(this['_suggestionState']['set'](_0x402e48,'removed'),this['fire']('suggestionUnloaded',_0x402e48,_0x5af276,_0x109291));}['_setSuggestionData'](_0xf4a513){const _0x20b56b=_0xf4a513['id'],_0xb8c6c7=this['addSuggestionData'](_0xf4a513);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x11087c=this['editor']['plugins']['get']('PendingActions'),_0x3ac2ae=_0xb8c6c7['hasComments'],_0x579658=_0xb8c6c7['subType']?_0xb8c6c7['type']+':'+_0xb8c6c7['subType']:_0xb8c6c7['type'],_0x373879=this['editor']['locale'],_0x20183d=_0x11087c['add'](o(_0x373879,'PENDING_ACTION_SUGGESTION')),_0x50c0be={'id':_0x20b56b,'type':_0x579658,'hasComments':_0x3ac2ae,'data':_0xf4a513['data']||null,'originalSuggestionId':_0xf4a513['originalSuggestionId']||null,'attributes':_0xb8c6c7['attributes']};this['_adapter']['addSuggestion'](_0x50c0be)['then'](_0x32662f=>{_0xb8c6c7['_saved']=!0x0,_0x11087c['remove'](_0x20183d),_0x32662f&&_0x32662f['createdAt']&&(this['_suggestions']['get'](_0x20b56b)['createdAt']=_0x32662f['createdAt']);})['catch'](_0x3e3fd2=>{throw _0x75e7a3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb8c6c7['discard']();}),_0xb8c6c7['stopListening'](),this['_suggestions']['delete'](_0xb8c6c7['id']),this['_suggestionState']['delete'](_0xb8c6c7),_0x3e3fd2;});}return _0xb8c6c7;}['_isBlockAttribute'](_0x23c2ce){return this['_blockAttributeKeys']['has'](_0x23c2ce);}['_updateSuggestionData'](_0x59730e,_0x477929){const _0x2f5dbb=this['editor']['plugins']['get']('PendingActions'),_0x5808fc=this['getSuggestion'](_0x59730e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5808fc['_saved']){const _0x22f2b0=_0x2f5dbb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x59730e,_0x477929)['then'](()=>{_0x2f5dbb['remove'](_0x22f2b0);});}else _0x5808fc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x59730e,_0x477929);});}}['_getSuggestionData'](_0x446d2d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4926cb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x446d2d);}['_handleNewSuggestionMarker'](_0x29b62b){const {id:_0x15772f,type:_0x4f8a1e,subType:_0x4521f2,authorId:_0x4f53d1}=this['_splitMarkerName'](_0x29b62b),_0x2e713e=this['_suggestions']['get'](_0x15772f)||this['_createSuggestion'](_0x4f8a1e,_0x4521f2,_0x15772f,_0x4f53d1,{});switch(this['_checkSuggestionCorrectness'](_0x2e713e,_0x4f8a1e,_0x4521f2,_0x4f53d1),this['_suggestionState']['get'](_0x2e713e)){case'notReady':this['_getSuggestionData'](_0x15772f)['then'](_0x4ea64a=>{let _0x13e436=Promise['resolve']();_0x4ea64a['hasComments']&&(_0x13e436=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x15772f})),_0x13e436['then'](()=>{this['addSuggestionData'](_0x4ea64a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2e713e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x15772f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2e713e,'ready'),this['fire']('suggestionLoaded',_0x2e713e);break;case'ready':this['fire']('suggestionChanged',_0x2e713e);}return _0x2e713e['addMarkerName'](_0x29b62b),_0x2e713e;}['_refreshSuggestionsChain'](_0x368a28){const _0x2dc669=Array['from'](_0x368a28),_0x5cfd74=_0x2dc669['filter'](_0xa7caac=>'attribute'==_0xa7caac['type']);this['_refreshAttributeSuggestionsChain'](_0x5cfd74);const _0x54e1ce=_0x2dc669['filter'](_0x5a629d=>!_0x5a629d['isMultiRange']&&'attribute'!=_0x5a629d['type']),_0xc73ab9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a9157=>!_0x5a9157['isMultiRange']&&'attribute'!=_0x5a9157['type']),_0x50a298=_0xc73ab9['filter'](_0x22803c=>!_0x368a28['has'](_0x22803c)),_0x1781aa=new Map(_0xc73ab9['map'](_0x31f543=>[_0x31f543,this['_suggestionFactory']['getSuggestionCallback'](_0x31f543['type'],_0x31f543['subType'],'chain')])),_0x57906b=new Map(_0xc73ab9['map'](_0x4e517d=>[_0x4e517d,_0x4e517d['getFirstRange']()])),_0x5d22c8=new Set(),_0x5d281f=new Set();for(let _0xdf76d1=0x0;_0xdf76d1<_0x54e1ce['length'];_0xdf76d1++)_0x1888d6(_0x54e1ce[_0xdf76d1],_0x54e1ce,_0xdf76d1+0x1);for(let _0x392929=0x0;_0x392929<_0x54e1ce['length'];_0x392929++)_0x1888d6(_0x54e1ce[_0x392929],_0x50a298,0x0);const _0x11d6ff=new Set();for(let _0x546f15=0x0;_0x546f15<_0x54e1ce['length'];_0x546f15++){const _0x2da74b=_0x54e1ce[_0x546f15];!_0x5d281f['has'](_0x2da74b)&&_0x2da74b['previous']&&(_0x11d6ff['add'](_0x2da74b['previous']),_0x2da74b['previous']['next']===_0x2da74b&&(_0x2da74b['previous']['next']=null),_0x2da74b['previous']=null),!_0x5d22c8['has'](_0x2da74b)&&_0x2da74b['next']&&(_0x11d6ff['add'](_0x2da74b['next']),_0x2da74b['next']['previous']===_0x2da74b&&(_0x2da74b['next']['previous']=null),_0x2da74b['next']=null);}function _0x1888d6(_0x4c3af9,_0x223666,_0x50dd23){for(let _0x1e19dc=_0x50dd23;_0x1e19dc<_0x223666['length'];_0x1e19dc++){const _0x29ba89=_0x37fe49(_0x4c3af9,_0x223666[_0x1e19dc]);_0x29ba89&&(_0x29ba89[0x0]['next']=_0x29ba89[0x1],_0x29ba89[0x1]['previous']=_0x29ba89[0x0],_0x5d22c8['add'](_0x29ba89[0x0]),_0x5d281f['add'](_0x29ba89[0x1]));}}function _0x37fe49(_0x86fca4,_0x178c33){if(_0x86fca4['author']['id']!==_0x178c33['author']['id'])return null;const _0x39c540=_0x1781aa['get'](_0x86fca4)(_0x86fca4,_0x178c33,_0x57906b['get'](_0x86fca4),_0x57906b['get'](_0x178c33));if(!_0x39c540)return null;return _0x1781aa['get'](_0x178c33)(_0x86fca4,_0x178c33,_0x57906b['get'](_0x86fca4),_0x57906b['get'](_0x178c33))?_0x39c540[0x1]['commentThread']&&_0x39c540[0x1]['commentThread']['length']?null:_0x39c540:null;}_0x11d6ff['size']&&this['_refreshSuggestionsChain'](_0x11d6ff);}['_refreshAttributeSuggestionsChain'](_0x4612c0){if(0x0==_0x4612c0['length'])return;const _0x5af90e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4127a7=>'attribute'==_0x4127a7['type']&&_0x4127a7['_isDataLoaded']),_0x79e797=[],_0x3091de=new Map();for(const _0x3f0631 of _0x5af90e){const _0xd33cc8=_0x524a26(_0x3f0631['attributes']);_0x3091de['has'](_0xd33cc8)||(_0x3091de['set'](_0xd33cc8,_0x79e797['length']),_0x79e797['push']([]));const _0x57d126=_0x3091de['get'](_0xd33cc8);_0x79e797[_0x57d126]['push'](_0x3f0631);}!(function(){_0x79e797['sort']((_0x4fd6e6,_0x35c293)=>{const _0x5eb568=_0x4fd6e6[0x0]['createdAt'],_0x43f1fe=_0x35c293[0x0]['createdAt'];return _0x5eb568==_0x43f1fe?_0x4fd6e6[0x0]['attributes']['groupId']<_0x35c293[0x0]['attributes']['groupId']?-0x1:0x1:_0x5eb568<_0x43f1fe?-0x1:0x1;});for(const _0x1ca911 of _0x79e797)_0x1ca911['sort']((_0x595038,_0x2643c3)=>_0x595038['id']<_0x2643c3['id']?-0x1:0x1);}());for(let _0x452151=0x0;_0x452151<_0x79e797['length'];_0x452151++){if(0x0==_0x79e797[_0x452151]['length'])continue;const _0x359e3c=[];for(let _0x384f32=_0x452151+0x1;_0x384f32<_0x79e797['length'];_0x384f32++)0x0!=_0x79e797[_0x384f32]['length']&&_0x2d0208(_0x79e797[_0x452151],_0x79e797[_0x384f32])&&_0x359e3c['push'](_0x384f32);for(const _0x3bbdb4 of _0x359e3c)_0x79e797[_0x452151]=_0x79e797[_0x452151]['concat'](_0x79e797[_0x3bbdb4]),_0x79e797[_0x3bbdb4]=[];}for(const _0xd4efc1 of _0x79e797)for(let _0x372232=0x0;_0x372232<_0xd4efc1['length'];_0x372232++)_0xd4efc1[_0x372232]['next']=_0xd4efc1[_0x372232+0x1]||null;for(const _0x233278 of _0x79e797)for(let _0x4f4cbb=0x0;_0x4f4cbb<_0x233278['length'];_0x4f4cbb++)_0x233278[_0x4f4cbb]['previous']=_0x233278[_0x4f4cbb-0x1]||null;function _0x2d0208(_0x5b890e,_0x5ee61f){if(_0x5b890e[0x0]['attributes']['groupId']!==_0x5ee61f[0x0]['attributes']['groupId']&&_0x5b890e[0x0]['author']!==_0x5ee61f[0x0]['author'])return!0x1;if(!function(_0x5d51d7,_0x25d4e8){if(!_0x5d51d7['hasComments']&&!_0x25d4e8['hasComments'])return!0x0;if(_0x5d51d7['hasComments']&&_0x25d4e8['hasComments'])return!0x1;if(_0x5d51d7['hasComments']&&_0x25d4e8['createdAt']<_0x5d51d7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x25d4e8['hasComments']&&_0x5d51d7['createdAt']<_0x25d4e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b890e[0x0],_0x5ee61f[0x0]))return!0x1;const _0x50d8c3=Bt(_0x5b890e[0x0]['attributes'],'groupId'),_0x3a0208=Bt(_0x5ee61f[0x0]['attributes'],'groupId');if(!_0xdd32d6(_0x50d8c3,_0x3a0208))return!0x1;return!!_0x5b890e['every'](_0x3a37eb=>_0x5ee61f['some'](_0x1415cd=>_0x3a37eb['getFirstRange']()['isEqual'](_0x1415cd['getFirstRange']())))&&_0x5ee61f['every'](_0x295567=>_0x5b890e['some'](_0x2999cf=>_0x295567['getFirstRange']()['isEqual'](_0x2999cf['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x95de4e){const _0x35f754=Array['from'](_0x95de4e),_0x251a5b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x314548=_0x251a5b['filter'](_0x404ffe=>!_0x95de4e['has'](_0x404ffe)),_0xb59ffc=new Map(_0x35f754['map'](_0x303a38=>[_0x303a38,this['_suggestionFactory']['getSuggestionCallback'](_0x303a38['type'],_0x303a38['subType'],'join')])),_0x43cb9f=new Map(_0x251a5b['map'](_0x33cb8b=>[_0x33cb8b,_0x33cb8b['getRanges']()]));for(let _0x6ce48=0x0;_0x6ce48<_0x35f754['length'];_0x6ce48++){if(_0x471149(this,_0x35f754[_0x6ce48],_0x35f754,_0x6ce48+0x1))return!0x0;}for(let _0x50f3e9=0x0;_0x50f3e9<_0x35f754['length'];_0x50f3e9++){if(_0x471149(this,_0x35f754[_0x50f3e9],_0x314548,0x0))return!0x0;}return!0x1;function _0x471149(_0x6972f4,_0x425263,_0x581ca5,_0x2ef61d){for(let _0x2f3914=_0x2ef61d;_0x2f3914<_0x581ca5['length'];_0x2f3914++){const _0x75b87=_0x581ca5[_0x2f3914];if(_0x75b87['type']!==_0x425263['type']||_0x75b87['author']['id']!==_0x425263['author']['id']||_0x75b87['subType']!==_0x425263['subType'])continue;if(!Pt(_0x425263,_0x75b87,['groupId']))continue;if('attribute'==_0x425263['type']&&_0x425263['data']['oldValue']!=_0x75b87['data']['oldValue'])continue;if('attribute'==_0x425263['type']&&_0x6972f4['_isBlockAttribute'](_0x425263['data']['key']))continue;if('formatBlock'==_0x425263['type']){const _0x203644=_0x6972f4['editor']['model'],_0x4b0cab=_0x425263['getContainedElement']();if(_0x4b0cab&&(_0x203644['schema']['isObject'](_0x4b0cab)||_0x203644['schema']['isLimit'](_0x4b0cab)))continue;}const _0x3ccd58=_0xb59ffc['get'](_0x425263),_0x4e98ae=_0x43cb9f['get'](_0x425263),_0x5b72ef=_0x43cb9f['get'](_0x75b87),_0x462e65=_0x425263['commentThread']&&_0x425263['commentThread']['length'],_0x975407=_0x75b87['commentThread']&&_0x75b87['commentThread']['length'];if(!_0x462e65&&_0x3ccd58(_0x5b72ef,_0x4e98ae))return _0x6972f4['_joinSuggestions'](_0x75b87,_0x425263),_0x43cb9f['delete'](_0x425263),!0x0;if(!_0x975407&&_0x3ccd58(_0x4e98ae,_0x5b72ef))return _0x6972f4['_joinSuggestions'](_0x425263,_0x75b87),_0x43cb9f['delete'](_0x75b87),!0x0;}return!0x1;}}['_joinSuggestions'](_0x401a0b,_0x468591){if(_0x401a0b['isMultiRange']){for(const _0x4311c2 of _0x468591['getRanges']())_0x401a0b['addRange'](_0x4311c2);}else{const _0x2cac7a=_0x468591['getFirstRange']()['end'];this['_setSuggestionRange'](_0x401a0b,this['_model']['createRange'](_0x401a0b['getFirstRange']()['start'],_0x2cac7a));}_0x468591['removeMarkers']();}['_getMarkerAnnouncementText'](_0x504af8,_0x506c68){const _0x2a11ab=_0x504af8['startsWith']('format')||_0x504af8['startsWith']('attribute')?'FORMATTING':_0x504af8['toUpperCase']();return o(this['editor']['locale'],_0x506c68+'_'+_0x2a11ab+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4c045a=this['editor'];if(!_0x4c045a['ui'])return;const {ariaLiveAnnouncer:_0x193b79}=_0x4c045a['ui'];_0x4e6831(this['_model'],({left:_0x1abe21,entered:_0x4b997d})=>{for(const _0x2bde9c of _0x1abe21){const {group:_0x745c8,type:_0x1992bd}=this['_splitMarkerName'](_0x2bde9c['name']);if('suggestion'===_0x745c8){_0x193b79['announce'](this['_getMarkerAnnouncementText'](_0x1992bd,'LEAVE'));break;}}for(const _0x27bc6f of _0x4b997d){const {group:_0x27d981,type:_0x1f194b}=this['_splitMarkerName'](_0x27bc6f['name']);if('suggestion'===_0x27d981){_0x193b79['announce'](this['_getMarkerAnnouncementText'](_0x1f194b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2f097c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x465bc0=this['editor'],_0x10ba83=_0x465bc0['model']['document']['differ']['getChanges']();if(0x0==_0x10ba83['length'])return!0x1;const _0x3955e5=[],_0x51827b=_0x10ba83['filter'](_0x125782=>'attribute'==_0x125782['type']),_0x12386e=_0x10ba83['filter'](_0x478021=>'insert'==_0x478021['type']&&'$text'!=_0x478021['name']),_0x317797=_0x10ba83['filter'](_0x577ef6=>'remove'==_0x577ef6['type']&&'$text'!=_0x577ef6['name']);for(const _0x15ad0a of _0x51827b)_0x3955e5['push']({'key':_0x15ad0a['attributeKey'],'newValue':_0x15ad0a['attributeNewValue'],'oldValue':_0x15ad0a['attributeOldValue'],'range':Ot(_0x15ad0a['range'],_0x465bc0['model'])});for(const _0x28c8f2 of _0x12386e){const _0x1cb14e=_0x317797['find'](_0x312cad=>_0x312cad['position']['isEqual'](_0x28c8f2['position']));_0x1cb14e&&_0x3955e5['push']({'key':m,'newValue':_0x28c8f2['name'],'oldValue':_0x1cb14e['name'],'range':_0x465bc0['model']['createRangeOn'](_0x28c8f2['position']['nodeAfter'])});}return 0x0!=_0x3955e5['length']&&this['_reduceExistingSuggestions'](_0x2f097c,_0x3955e5);}['_processAttributeSuggestions'](_0x2b9c2f){let _0x28d79e=!0x1;const _0x20adbd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd6b4f9=>_0xd6b4f9['data']['newRange']&&_0xd6b4f9['name']['startsWith']('suggestion:attribute:'));for(const _0x344992 of _0x20adbd){const {subType:_0x1ef41f,id:_0x29e2f3}=this['_splitMarkerName'](_0x344992['name']),_0x3ca14d=_0x1ef41f['split']('|')[0x0];for(const _0x4c194c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4c194c['id']!=_0x29e2f3&&'attribute'==_0x4c194c['type']&&_0x4c194c['data']&&_0x4c194c['data']['key']==_0x3ca14d&&_0x4c194c['getFirstRange']()['isIntersecting'](_0x344992['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4c194c,_0x344992['data']['newRange'],_0x2b9c2f),_0x28d79e=!0x0);}return _0x28d79e;}['_recordAttributeChanges'](_0x2f81b6){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2f81b6();}['_isRegisteredAttribute'](_0x2a918f){const _0xbee03b=this['_isBlockAttribute'](_0x2a918f),_0x5b7a16=this['_inlineAttributeKeys']['has'](_0x2a918f);return _0xbee03b||_0x5b7a16;}['_reduceExistingSuggestions'](_0x521ca3,_0x632fca){if(0x0==_0x632fca['length'])return!0x1;let _0x18abfc=!0x1;for(const _0x332b16 of _0x632fca){const _0x24e575=this['_findSuggestions'](_0x332b16['range'],'attribute')['filter'](_0x4d31a8=>!_0x4d31a8['meta']['isNextTo'])['map'](_0xa022ac=>_0xa022ac['suggestion']),_0x16e5d1=_0x524a26({'newValue':_0x332b16['newValue']});_0x24e575['filter'](_0xe4ba09=>{const [_0x1b0aee,_0xc04cfd]=_0xe4ba09['subType']['split']('|');return _0x1b0aee==_0x332b16['key']&&_0xc04cfd!=_0x16e5d1;})['forEach'](_0x4c247b=>{this['_reduceSuggestionAttributeRange'](_0x4c247b,_0x332b16['range'],_0x521ca3),_0x18abfc=!0x0;});}return _0x18abfc;}['_reduceSuggestionAttributeRange'](_0x5eaf5c,_0x1f0689,_0x39afce){const _0xaa3a70=_0x5eaf5c['getFirstRange']()['getDifference'](_0x1f0689);0x0!==_0xaa3a70['length']?0x1!==_0xaa3a70['length']?this['_breakSuggestionMarker'](_0x5eaf5c,_0x1f0689['start'],_0x1f0689['end']):this['_setSuggestionRange'](_0x5eaf5c,_0xaa3a70[0x0]):_0x39afce['removeMarker'](_0x5eaf5c['getFirstMarker']());}constructor(_0x1a5989){function _0x1d89c2(_0x1676f3){return _0x1676f3['map'](_0x19a390=>String['fromCharCode'](_0x19a390))['join']('');}super(_0x1a5989),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2a4429,_0x42fbf7,_0x590ac0,_0x3294ad)=>{this['_model']['change'](()=>{for(const _0x4d6002 of[..._0x3294ad,..._0x590ac0])this['_model']['markers']['has'](_0x4d6002)&&_0x1a5989['editing']['reconvertMarker'](_0x4d6002);});}),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']=_0x1a5989['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(),_0x1a5989['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1a5989['config']['get']('trackChanges.trackFormatChanges'),_0x1a5989['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1a5989['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1a5989,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1d89c2([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1d89c2([0x34,0x30,0x34,0x38,0x31,0x30,0x31,0x30]);}}class xt{['buildSuggestion'](_0x5d8460,_0x375fca,_0x555eae,_0x4a2940,_0x54333a,_0x10bfe0){return new u(this['_model'],{'type':_0x5d8460,'subType':_0x375fca,'id':_0x555eae,'author':_0x4a2940,'creator':_0x4a2940,'attributes':_0x54333a,'onAttributesChange':_0x10bfe0,'onAccept':(..._0x52aa11)=>this['getSuggestionCallback'](_0x5d8460,_0x375fca,'accept')(..._0x52aa11),'onDiscard':(..._0x18e7e5)=>this['getSuggestionCallback'](_0x5d8460,_0x375fca,'discard')(..._0x18e7e5)});}['registerCustomCallback'](_0x1a152e,_0x39a390,_0x69e603,_0xc7d6cd){const _0x50e150=_0x1a152e+':'+_0x39a390+':'+_0x69e603;this['_customCallbacks']['set'](_0x50e150,_0xc7d6cd);}['getSuggestionCallback'](_0xc4914e,_0x3dc17f,_0x53808d){const _0x13dbfd=_0xc4914e+':'+_0x3dc17f+':'+_0x53808d;return this['_customCallbacks']['get'](_0x13dbfd)||this['_defaultCallbacks']['get'](_0xc4914e+':'+_0x53808d);}['_registerDefaultCallbacks'](){const _0x5623bd=()=>!0x1,_0x1682f7=_0x4b5fff=>{_0x4b5fff['sort']((_0x4d3e43,_0x1fd73a)=>_0x4d3e43['start']['isBefore'](_0x1fd73a['start'])?0x1:-0x1),this['_model']['change'](_0x2b47a2=>{for(const _0x5cae96 of _0x4b5fff){let _0x1f4289;_0x1f4289=_0x5cae96['end']['isAtEnd']&&_0x5cae96['end']['parent']==_0x5cae96['start']['nodeAfter']?_0x2b47a2['createSelection'](_0x5cae96['start']['nodeAfter'],'on'):_0x2b47a2['createSelection'](_0x5cae96),this['_model']['deleteContent'](_0x1f4289,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x40c731=(_0x56f4fe,_0xaaf4e7)=>{_0xaaf4e7&&this['_model']['change'](_0x3aa86e=>{const {commandName:_0x1c81b6,commandParams:_0x2cf68c=[]}=_0xaaf4e7,_0x2e89b0=_0x56f4fe['map'](_0x571666=>(Tt(_0x571666)&&(_0x571666=this['_model']['createRange'](_0x571666['end'])),_0x571666))['filter'](_0x3df48a=>'$graveyard'!==_0x3df48a['root']['rootName']);if(_0x2e89b0['length']<0x1)return;const _0x454e80=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x221c1c=>_0x1ed262['fromRange'](_0x221c1c));_0x3aa86e['setSelection'](_0x2e89b0);for(const _0x2075f3 of this['_editor']['commands']['commands']())_0x2075f3['refresh']();_0x2cf68c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c81b6,..._0x2cf68c);const _0x2d03ee=_0x454e80['filter'](_0xd637c9=>'$graveyard'!=_0xd637c9['root']['rootName']);_0x2d03ee['length']>0x0&&_0x3aa86e['setSelection'](_0x2d03ee);for(const _0x35d0b1 of _0x454e80)_0x35d0b1['detach']();});},_0x2d6ad5=(_0x4ddd60,_0x14a80e)=>0x1==_0x4ddd60['length']&&0x1==_0x14a80e['length']&&_0x4ddd60[0x0]['end']['isEqual'](_0x14a80e[0x0]['start']),_0x84d29e=(_0x51847a,_0xc04637,_0x3af8b5,_0x371b43)=>Gt(_0x51847a,_0xc04637,_0x3af8b5,_0x371b43,this['_model'])?[_0x51847a,_0xc04637]:Gt(_0xc04637,_0x51847a,_0x371b43,_0x3af8b5,this['_model'])?[_0xc04637,_0x51847a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5623bd),this['_defaultCallbacks']['set']('insertion:discard',_0x1682f7),this['_defaultCallbacks']['set']('insertion:join',_0x2d6ad5),this['_defaultCallbacks']['set']('insertion:chain',_0x84d29e),this['_defaultCallbacks']['set']('deletion:accept',_0x1682f7),this['_defaultCallbacks']['set']('deletion:discard',_0x5623bd),this['_defaultCallbacks']['set']('deletion:join',_0x2d6ad5),this['_defaultCallbacks']['set']('deletion:chain',_0x84d29e),this['_defaultCallbacks']['set']('formatInline:accept',_0x40c731),this['_defaultCallbacks']['set']('formatInline:discard',_0x5623bd),this['_defaultCallbacks']['set']('formatInline:join',_0x2d6ad5),this['_defaultCallbacks']['set']('formatInline:chain',_0x5623bd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x40c731),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5623bd),this['_defaultCallbacks']['set']('formatBlock:join',_0x2d6ad5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5623bd),this['_defaultCallbacks']['set']('attribute:accept',_0x5623bd),this['_defaultCallbacks']['set']('attribute:discard',(_0x26e93c,_0x345e28)=>{if(!_0x345e28)return;const _0x479eb8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4a8358=>{if(_0x345e28['key']==m)for(const _0x176c95 of _0x26e93c){const _0x335e53=_0x176c95['start']['nodeAfter'],_0x1d6b06=_0x345e28['oldValue'];_0x4a8358['rename'](_0x335e53,_0x1d6b06);}else{if(_0x479eb8['_isBlockAttribute'](_0x345e28['key'])){for(const _0x46c3be of _0x26e93c)void 0x0!==_0x345e28['oldValue']?_0x4a8358['setAttribute'](_0x345e28['key'],_0x345e28['oldValue'],_0x46c3be['start']['nodeAfter']):_0x4a8358['removeAttribute'](_0x345e28['key'],_0x46c3be['start']['nodeAfter']);}else{for(const _0x43647c of _0x26e93c)_0x345e28['oldValue']?_0x4a8358['setAttribute'](_0x345e28['key'],_0x345e28['oldValue'],_0x43647c):_0x4a8358['removeAttribute'](_0x345e28['key'],_0x43647c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2d6ad5);}constructor(_0x2f40e3){this['_editor']=_0x2f40e3,this['_model']=_0x2f40e3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x14b8d7,_0x3cf4e3,_0x237332){for(const _0x26d805 of _0x3cf4e3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x26d805['root']==_0x26d805)return!0x1;if(!_0x237332['containsItem'](_0x26d805))return!0x1;if(_0x14b8d7['isObject'](_0x26d805)||_0x14b8d7['isLimit'](_0x26d805))return!0x0;}return!0x1;}function Tt(_0x52c4f9){return _0x52c4f9['end']['parent']==_0x52c4f9['start']['nodeAfter']&&_0x52c4f9['end']['isAtStart'];}function Et(_0x28ded0,_0x6d3f4,_0x31a184,_0x4f74a4){const _0x2e54ab=_0x549009=>!_0x549009['item']['is']('$textProxy')&&!_0x4f74a4['isObject'](_0x549009['item']),_0x5acc1c=_0x28ded0['start']['getLastMatchingPosition'](_0x2e54ab),_0x464f1d=_0x28ded0['end']['getLastMatchingPosition'](_0x2e54ab,{'direction':'backward'});return(!_0x28ded0['start']['isEqual'](_0x5acc1c)||!_0x28ded0['end']['isEqual'](_0x464f1d))&&(_0x5acc1c['isBefore'](_0x464f1d)?_0x31a184['updateMarker'](_0x6d3f4,{'range':_0x31a184['createRange'](_0x5acc1c,_0x464f1d)}):_0x31a184['removeMarker'](_0x6d3f4),!0x0);}function Vt(_0x449dac){return _0x524a26(_0x449dac);}function Ut(_0x25d02b){const _0x4767ab=_0x25d02b['start']['nodeAfter'];return _0x4767ab&&_0x4767ab['is']('element');}function Ot(_0x137df9,_0x21f32b){return null==_0x137df9['end']['nodeBefore']&&_0x137df9['end']['parent']==_0x137df9['start']['nodeAfter']?Ft(_0x137df9['start']['nodeAfter'],_0x21f32b):_0x137df9;}function Ft(_0x32413e,_0x28cc97){const _0x536bd5=_0x28cc97['schema']['isObject'](_0x32413e)||_0x28cc97['schema']['isSelectable'](_0x32413e);return _0x28cc97['createRange'](_0x28cc97['createPositionAt'](_0x32413e,'before'),_0x536bd5?_0x28cc97['createPositionAfter'](_0x32413e):_0x28cc97['createPositionAt'](_0x32413e,'end'));}function Gt(_0x90b23b,_0x483531,_0x1540d6,_0x13ae6b,_0x3a2c22){if(!Pt(_0x90b23b,_0x483531))return!0x1;if(_0x1540d6['end']['isEqual'](_0x13ae6b['start']))return!0x0;if(_0x90b23b['type']!=_0x483531['type'])return!0x1;if(!_0x1540d6['end']['isTouching'](_0x13ae6b['start']))return!0x1;const _0x19fd86=_0x3a2c22['createRange'](_0x1540d6['end'],_0x13ae6b['start'])['getWalker']();for(const _0x3772e2 of _0x19fd86)if(['elementStart','elementEnd']['includes'](_0x3772e2['type'])&&_0x3a2c22['schema']['isLimit'](_0x3772e2['item']))return!0x1;return!0x0;}function Pt(_0x2c6de3,_0x25ca6a,_0xa67801=[]){return!(!_0x2c6de3['_isDataLoaded']||!_0x25ca6a['_isDataLoaded'])&&_0xdd32d6(Bt(_0x2c6de3['attributes'],_0xa67801),Bt(_0x25ca6a['attributes'],_0xa67801));}function Lt(_0xa8b7bd,_0x30f806){const _0x21d52b=Ht(_0xa8b7bd['attributes']),_0x2575ca=Ht(_0x30f806);if(!_0xa8b7bd['_isDataLoaded'])return!0x1;for(const _0x460778 of Object['keys'](_0x2575ca))if(!_0xdd32d6(_0x21d52b[_0x460778],_0x2575ca[_0x460778]))return!0x1;return!0x0;}function Ht(_0x5ed3fd){const _0x45e93c=Object['assign']({},_0x5ed3fd);return delete _0x45e93c['skipNestingCheck'],delete _0x45e93c['tablePasteChainId'],_0x45e93c;}class oe extends _0x238325(){['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 _0x58a6ee=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x58a6ee);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x50f8d7,_0x515c2c,_0x3edbef,_0x42aafc){super(),this['model']=_0x515c2c,this['view']=_0x3edbef,this['commentThreadController']=_0x42aafc,this['_editor']=_0x50f8d7,this['_acceptCommand']=_0x50f8d7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x50f8d7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3b2e37,_0x4bba93)=>_0x3b2e37||_0x4bba93),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x40c192=>_0x40c192&&this['_editor']['model']['canEditAt'](_0x515c2c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42090a=>_0x42090a&&this['_editor']['model']['canEditAt'](_0x515c2c['getRanges']())),this['_pendingAction']=null,_0x3edbef['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3edbef,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3edbef,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3edbef,'change:isDirty',()=>{_0x3edbef['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0xa8a3a2{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x557efc}=this['_config'];this['commentsListView']=new _0x557efc(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',_0x15bbca=>_0x15bbca+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xeed6f0,_0x58dd00)=>_0xeed6f0||!!_0x58dd00);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2e8bec}=this['_config'],_0x35340c=new _0x2e8bec(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xfa6a71=_0x35340c['commentInputView'];return _0x35340c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xfa6a71,'value',(_0xbe0ff0,_0x3b5aae,_0x1ed8c8)=>!!_0x1ed8c8||_0xbe0ff0&&!_0x3b5aae),_0xfa6a71['on']('submit',(_0xff2444,_0x2c7f14)=>{this['fire']('addComment',_0x2c7f14),_0xfa6a71['editor']['setData']('');}),_0xfa6a71['on']('cancel',()=>this['focus']()),_0xfa6a71['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x35340c;}constructor(_0x4473a8,_0x51717a,_0x2c97c0,_0x3224f4){super(_0x4473a8),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x51717a['authoredAt']),this['bind']('authoredAt')['to'](_0x51717a),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x51717a,this['_localUser']=_0x2c97c0,this['_config']=_0x3224f4,_0x3224f4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x206e53=this['bindTemplate'],_0x3c2004=[{'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':_0x206e53['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x206e53['to']('authoredAt',_0x3bae23=>this['_config']['formatDateTime'](_0x3bae23))}]}]},{'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']&&_0x3c2004['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4e3ea4={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x206e53['if']('isActive','ck-suggestion-wrapper--active'),_0x206e53['to']('type',_0x3eb670=>'ck-suggestion-'+_0x3eb670),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':_0x3c2004}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4e3ea4['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)),_0x4e3ea4;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xe11339,_0x374486,_0x137e5b)=>{this['_descriptionElement']['innerHTML']=_0x137e5b;});}['_createButton'](_0x2160cd,_0x3b334f,_0x469c7f,_0x1c5a65,_0x1f0678){const _0x4bcb1a=new _0x1c9e0c(this['locale']);return _0x4bcb1a['set']({'label':_0x2160cd,'icon':_0x3b334f,'tooltip':!0x0,'tooltipPosition':_0x1f0678}),_0x4bcb1a['extendTemplate']({'attributes':{'class':_0x469c7f}}),_0x4bcb1a['on']('execute',()=>{this['fire'](_0x1c5a65,this['_model']['id']);}),_0x4bcb1a;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}constructor(_0x2a2cb8,_0x4f71a7,_0x56ad5d,_0x457933){super(_0x2a2cb8,_0x4f71a7,_0x56ad5d,_0x457933),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x36e68e=>_0x36e68e&&_0x36e68e[0x0]?_0x36e68e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1f25c7,_0x4aa698)=>{let _0x5671c1='';for(const _0x5059fa of _0x1f25c7)_0x5671c1+='<p>'+ds(_0x5059fa['content'],_0x5059fa['color'])+'</p>';return _0x4aa698?_0x5671c1:_0x33fac0(_0x5671c1,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2a2cb8,'Accept\x20suggestion'),_0x1abf50['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2a2cb8,'Discard\x20suggestion'),_0x1abf50['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3f1e81(_0x2a2cb8,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x5af9ab,_0x381f27){let _0x1f7aad='';return _0x1f7aad+=_0x5af9ab['split']('*')['map']((_0x3b9810,_0x5485d5)=>_0x5485d5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x3b9810)+'</span>':us(_0x3b9810))['join'](''),_0x381f27&&(_0x1f7aad+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x381f27['value']+'\x22\x20title=\x22'+_0x381f27['title']+'\x22></span>'),_0x1f7aad;}function us(_0x1df37f){const _0x424da0=document['createElement']('span');return _0x424da0['innerText']=_0x1df37f,_0x424da0['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 _0x4d32e5{static get['requires'](){return[p,_0x1c067c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x13de22,_0x24dd4c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2853ca,_0x181cfb]of this['_handleControllerBuffer']){const _0x43e9dc=this['_suggestionToController']['has'](_0x2853ca);_0x43e9dc||_0x181cfb?_0x43e9dc&&_0x181cfb&&this['_destroyController'](_0x2853ca):this['_initializeController'](_0x2853ca);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x13de22,_0x24dd4c);}['init'](){const _0x26b577=this['editor'],_0x19368a=_0x26b577['plugins']['get']('TrackChangesEditing'),_0x193b88=_0x26b577['plugins']['get']('Annotations'),_0x5e4487=_0x26b577['plugins']['get']('EditorAnnotations'),_0x4d2dea=_0x26b577['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5e4487['addSourceCollector'](()=>{const _0x2445d7=[];for(const [_0x1c6768,_0x444ef9]of Array['from'](this['_suggestionToController'])){const _0x2e6ba7=_0x1c6768['getAllAdjacentSuggestions'](),_0x2de589=[];for(const _0x2d3b4b of _0x2e6ba7){if(!_0x2d3b4b['isInContent'])continue;if(_0x2d3b4b['isMultiRange']){_0x2de589['push'](..._0x2d3b4b['getRanges']());continue;}const _0x4cc181=_0x2d3b4b['getFirstRange']();if(_0x2de589['length']>0x0){const _0x31692c=_0x2de589[0x0]['getJoined'](_0x4cc181);if(_0x31692c){_0x2de589[0x0]=_0x31692c;continue;}}_0x2de589['push'](_0x4cc181);}_0x2445d7['push']([_0x444ef9['view'],_0x2de589]);}return _0x2445d7;}),this['listenTo'](_0x19368a,'suggestionLoaded',(_0x58459a,_0x1d51c6)=>{this['listenTo'](_0x1d51c6,'change:previous',(_0x2905f5,_0x5009e4,_0x259e8a,_0x146dcb)=>{_0x1d51c6['isInContent']&&(null==_0x259e8a?(this['_updateController'](_0x146dcb['head']),this['_handleSuggestionControllerDelayed'](_0x1d51c6,!0x1)):(this['_updateController'](_0x259e8a['head']),null==_0x146dcb&&this['_handleSuggestionControllerDelayed'](_0x1d51c6,!0x0)));}),null!==_0x1d51c6['previous']?this['_updateController'](_0x1d51c6['head']):this['_handleSuggestionControllerDelayed'](_0x1d51c6,!0x1);}),this['listenTo'](_0x19368a,'suggestionUnloaded',(_0x3ccc15,_0x104ecf,_0xa83eaa)=>{this['stopListening'](_0x104ecf,'change:previous'),this['_handleControllerBuffer']['delete'](_0x104ecf),this['_suggestionToController']['has'](_0x104ecf)&&this['_destroyController'](_0x104ecf),_0xa83eaa&&this['_updateController'](_0xa83eaa['head']);}),this['listenTo'](_0x19368a,'suggestionChanged',(_0x291a8f,_0x2000ca)=>{this['_updateController'](_0x2000ca);}),this['listenTo'](_0x193b88,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4d2dea,'addComment',(_0x589775,{threadId:_0x496b16,isFromAdapter:_0x52e925})=>{if(_0x52e925||!_0x19368a['hasSuggestion'](_0x496b16))return;const _0x6d912e=_0x19368a['getSuggestion'](_0x496b16);this['_suggestionToController']['get'](_0x6d912e)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x37886a=this['editor']['plugins']['get']('Annotations'),_0x3c2eb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0xac00b=Array['from'](_0x37886a['activeAnnotations'],_0x4a9129=>_0x4a9129['innerView'])['filter'](_0x891e9f=>this['_viewToController']['has'](_0x891e9f)),_0x4d858b=[];for(const _0x4b27b6 of _0xac00b){const _0x209e78=this['_viewToController']['get'](_0x4b27b6)['model']['getAllAdjacentSuggestions']();_0x4d858b['push'](..._0x209e78['reduce']((_0x1e0a89,_0x1ddc0a)=>[..._0x1e0a89,..._0x1ddc0a['getMarkerNames']()],[]));}_0x3c2eb8['activeMarkers']=_0x4d858b;}['_addUIComponentsToFactory'](){const _0x457df9=this['editor'],_0x325040=_0x457df9['locale'],_0x480e8b=o(_0x325040,'Track\x20changes'),_0x45bca8=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x480e8b,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x325040,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x325040,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x325040,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x325040,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x57cef1 of _0x45bca8)if(ae(_0x57cef1)){const _0xe16181=_0x457df9['commands']['get'](_0x57cef1['model']['commandName']);_0x57cef1['model']['bind']('isOn','isEnabled')['to'](_0xe16181,'value','isEnabled');}_0x457df9['ui']['componentFactory']['add']('trackChanges',_0xbf0bac=>this['_createToolbarButton'](_0xbf0bac,_0x45bca8,_0x480e8b)),_0x457df9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2249da=>this['_createMenuBarMenu'](_0x2249da,_0x45bca8,_0x480e8b));}['_createToolbarButton'](_0x4a941b,_0x4fc671,_0x118405){const _0x553813=zt(_0x4a941b,Zt),_0x17274e=this['editor']['commands']['get']('trackChanges');_0x553813['buttonView']['set']({'tooltip':_0x118405,'label':_0x118405,'icon':ie}),_0x553813['buttonView']['bind']('isOn')['to'](_0x17274e,'value'),_0x553813['buttonView']['on']('execute',()=>{_0x17274e['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x553813,_0x4fc671);const _0x13a2b5=[];for(const _0x3eae79 of _0x4fc671)ae(_0x3eae79)&&_0x13a2b5['push'](this['editor']['commands']['get'](_0x3eae79['model']['commandName']));const _0x72ba6f=_0x553813['buttonView'];return _0x72ba6f['actionView']['unbind']('isEnabled'),_0x72ba6f['arrowView']['unbind']('isEnabled'),_0x72ba6f['actionView']['bind']('isEnabled')['to'](_0x17274e,'isEnabled'),_0x72ba6f['arrowView']['bind']('isEnabled')['toMany'](_0x13a2b5,'isEnabled',(..._0x4fd753)=>_0x4fd753['some'](_0x4c5063=>_0x4c5063)),_0x553813['on']('execute',_0x4c751b=>{this['editor']['execute'](_0x4c751b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x553813;}['_createMenuBarMenu'](_0x36fe23,_0x2697e2,_0x54dec3){const _0x2c2f23=new Kt(_0x36fe23),_0x4fe091=this['editor']['commands']['get']('trackChanges');_0x2c2f23['buttonView']['set']({'label':_0x54dec3,'icon':ie});const _0x117086=new Qt(_0x36fe23);for(const _0x262df4 of _0x2697e2){if('separator'==_0x262df4['type']){_0x117086['items']['add'](new Jt(_0x36fe23));continue;}const _0x42e1ba=new Xt(_0x36fe23,_0x2c2f23),_0x2d8cc9=new Yt(_0x36fe23),_0x5bf4f7=_0x262df4['model'];_0x2d8cc9['bind'](...Object['keys'](_0x5bf4f7))['to'](_0x5bf4f7),_0x2d8cc9['delegate']('execute')['to'](_0x2c2f23),_0x2d8cc9['on']('execute',()=>{this['editor']['execute'](_0x5bf4f7['commandName']),this['editor']['editing']['view']['focus']();}),_0x42e1ba['children']['add'](_0x2d8cc9),_0x117086['items']['add'](_0x42e1ba);}return _0x2c2f23['bind']('isEnabled')['to'](_0x4fe091,'isEnabled'),_0x2c2f23['panelView']['children']['add'](_0x117086),_0x2c2f23;}['_initializeController'](_0xf3eb37){const _0x22a8ab=this['editor'],_0x43087e=_0x22a8ab['config'],_0x3ce7bb=_0x22a8ab['plugins']['get']('Annotations'),_0x260b87=_0x22a8ab['plugins']['get']('CommentsRepository'),_0x284b3a=_0x22a8ab['plugins']['get']('EditorAnnotations'),_0x161ed1=_0x22a8ab['plugins']['get'](_0x1c067c)['me'],_0x3d0a56=_0x43087e['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x20287f,CommentThreadInputView:_0x1ea258}=_0x22a8ab['plugins']['get']('CommentsUI');let _0x5c84e0,_0x2d569e;this['_annotationViews']['has'](_0xf3eb37['id'])?(_0x2d569e=this['_annotationViews']['get'](_0xf3eb37['id']),_0x5c84e0=_0x2d569e['mainView']):(_0x5c84e0=new _0x3d0a56(_0x22a8ab['locale'],_0xf3eb37,_0x161ed1,{'disableComments':this['_disableComments'],'editorConfig':_0x43087e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x43087e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x43087e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x43087e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x7fcc34(_0x43087e['get']('locale')),'CommentView':_0x43087e['get']('comments')['CommentView'],'CommentsListView':_0x20287f,'CommentThreadInputView':_0x1ea258}),_0x5c84e0['acceptButton']['on']('execute',()=>{_0x22a8ab['editing']['view']['focus']();}),_0x5c84e0['discardButton']['on']('execute',()=>{_0x22a8ab['editing']['view']['focus']();}),_0x2d569e=_0x3ce7bb['createAnnotationView'](this['editor']['locale'],_0x5c84e0),_0x2d569e['bind']('isDirty')['to'](_0x5c84e0,'isDirty'),_0x2d569e['bind']('length')['to'](_0x5c84e0),_0x2d569e['bind']('type')['to'](_0x5c84e0,'type',_0x2dbe27=>'suggestion-'+_0x2dbe27),this['_annotationViews']['set'](_0xf3eb37['id'],_0x2d569e));const _0x21ef0c=_0x260b87['createCommentThreadController'](_0xf3eb37['commentThread'],_0x5c84e0),_0x139890=new oe(_0x22a8ab,_0xf3eb37,_0x5c84e0,_0x21ef0c),_0x1e1b20=_0xf3eb37['getAllAdjacentSuggestions']()['filter'](_0x3b9ff0=>_0x3b9ff0['isInContent']);_0x5c84e0['descriptionParts']=_0x22a8ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1e1b20),this['_suggestionToController']['set'](_0xf3eb37,_0x139890),this['_viewToController']['set'](_0x5c84e0,_0x139890);const _0x1389d6=_0x3ce7bb['createAnnotation']({'view':_0x2d569e,'target':()=>{const _0x5088ca=[],_0x49dffb=_0xf3eb37['getAllAdjacentSuggestions']()['filter'](_0x4f6844=>_0x4f6844['isInContent']);for(const _0x503a4c of _0x49dffb)_0x5088ca['push'](..._0x503a4c['getMarkers']());return _0x2d0a4d(_0x22a8ab['editing'],_0x5088ca);},'type':()=>'suggestion-'+_0x139890['view']['type']});_0x260b87['_bindAnnotationToEditors'](_0x5c84e0,_0x1389d6),_0x3ce7bb['add'](_0x1389d6),_0x284b3a['registerAnnotation'](_0x1389d6);}['_destroyController'](_0x51925a){const _0x79b581=this['editor']['plugins']['get']('CommentsRepository'),_0x5b7503=this['editor']['plugins']['get']('Annotations'),_0x2a5feb=this['_suggestionToController']['get'](_0x51925a),_0x4ac3d6=_0x2a5feb['view'],_0x4fbad2=_0x5b7503['getByInnerView'](_0x4ac3d6);_0x79b581['_unbindEditors'](_0x4ac3d6),_0x4fbad2&&_0x5b7503['remove'](_0x4fbad2),this['_suggestionToController']['delete'](_0x51925a),this['_viewToController']['delete'](_0x4ac3d6),_0x2a5feb['destroy']();}['_updateController'](_0x1e3346){if(!_0x1e3346['isInContent']||!this['_suggestionToController']['has'](_0x1e3346))return;const _0x287a7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c9478=this['_suggestionToController']['get'](_0x1e3346),_0x4e427e=_0x1e3346['getAllAdjacentSuggestions']();_0x1c9478['view']['descriptionParts']=_0x287a7f['descriptionFactory']['getDescriptions'](_0x4e427e);}['destroy'](){for(const _0x1d087a of this['_suggestionToController']['keys']())this['_destroyController'](_0x1d087a);for(const _0x1367c4 of this['_annotationViews']['values']())_0x1367c4['mainView']['destroy']();super['destroy']();}constructor(_0x415e2f){super(_0x415e2f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xc50700=this['editor']['config'];_0xc50700['define']('trackChanges.SuggestionThreadView',ne),_0xc50700['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xc50700['get']('trackChanges.disableComments');}}function ae(_0x41f3e3){return'model'in _0x41f3e3;}class k extends _0x4d32e5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x27dda0){this['editor']['plugins']['get'](p)['adapter']=_0x27dda0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1a2902){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1a2902);}['getSuggestions']({skipNotAttached:_0x3e0d04=!0x1,toJSON:_0x435ccd=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3e0d04,'toJSON':_0x435ccd});}['getSuggestion'](_0x3dbc48){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3dbc48);}}const T=['Pagination'];class P extends _0x4d32e5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x55bcd8=this['editor'];if(_0x55bcd8['config']['define']('trackChangesData.editorCreator',_0x53c3fa=>{const _0x38c035=_0x55bcd8['model']['document']['getRootNames']()['reduce']((_0x15ac21,_0x172ace)=>(_0x15ac21[_0x172ace]='',_0x15ac21),{});return _0x55bcd8['constructor']['create'](_0x38c035,_0x53c3fa);}),'function'!=typeof _0x55bcd8['config']['get']('trackChangesData')['editorCreator'])throw new _0x4926cb('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x20ffa6){return N(this['editor'],!0x0,_0x20ffa6);}['getDataWithDiscardedSuggestions'](_0x58c4e2){return N(this['editor'],!0x1,_0x58c4e2);}}class D extends _0x4d32e5{static get['pluginName'](){return'TrackChangesDataGetter';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}constructor(_0x4d5cd0){super(_0x4d5cd0),this['result']='end';}}function v(_0x2e293b){return void 0x0!==_0x2e293b['getRootsAttributes'];}async function N(_0x206ef8,_0x3aac1d,_0x4f839e){const _0xc112d8=_0x3a99fa(_0x206ef8,T);_0xc112d8['plugins']['push'](p,D),_0xc112d8['rootsAttributes']=v(_0x206ef8)?_0x206ef8['getRootsAttributes']():void 0x0;const _0x3c71ca=document['createDocumentFragment'](),_0x393217=_0x206ef8['config']['get']('trackChangesData')['editorCreator'],_0x345bf9=await _0x393217(_0xc112d8,()=>function(_0x59e5e7){const _0x5a6985=document['createElement']('div');return _0x59e5e7['appendChild'](_0x5a6985),_0x5a6985;}(_0x3c71ca));!function(_0x21d06b,_0x41699d){const _0x220fe2=_0x21d06b['model']['document']['getRootNames']()['reduce']((_0x4bdc8d,_0x2cef6c)=>(_0x4bdc8d[_0x2cef6c]=_0x21d06b['data']['get']({'rootName':_0x2cef6c}),_0x4bdc8d),{}),_0x399129=_0x21d06b['plugins']['get']('Users')['users']['map'](_0x26a9c0=>({'id':_0x26a9c0['id'],'name':_0x26a9c0['name']})),_0x183bf2=_0x21d06b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29bd55=_0x21d06b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c50bd=_0x41699d['plugins']['get']('Users'),_0x166367=_0x41699d['plugins']['get']('TrackChangesEditing'),_0x3a0caa=_0x41699d['plugins']['get']('CommentsRepository');for(const _0x3fae5 of _0x399129)_0x2c50bd['getUser'](_0x3fae5['id'])||_0x2c50bd['addUser'](_0x3fae5);_0x2c50bd['me']||_0x2c50bd['useAnonymousUser']();for(const _0x5bbde2 of _0x183bf2)_0x166367['addSuggestionData'](_0x5bbde2);for(const _0x261a56 of _0x29bd55)_0x3a0caa['addCommentThread'](_0x261a56);_0x41699d['data']['set'](_0x220fe2);}(_0x206ef8,_0x345bf9),_0x345bf9['execute'](_0x3aac1d?'acceptAllSuggestions':'discardAllSuggestions');const _0x2ae56b=v(_0x345bf9)?_0x345bf9['getFullData'](_0x4f839e):_0x345bf9['data']['get'](_0x4f839e);return await _0x345bf9['destroy'](),_0x2ae56b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|