@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240506.0 → 0.0.0-nightly-20240508.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/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.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 _0x5511a1,PendingActions as _0x1cf68b,icons as _0x22772e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5a2cc3,ObservableMixin as _0x4cd08f,uid as _0x4c61b3,insertToPriorityArray as _0x50029c,priorities as _0x4b8876,logWarning as _0x396ae6,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x20bde1,View as _0x299e5d,ButtonView as _0x58c753,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 _0xd07c79,hashObject as _0x18968b,surroundingMarkersDetector as _0x572aad,trimHtml as _0x2acff3,UserView as _0x4cc9e8,getDateTimeFormatter as _0x2638f4,getAllMarkersDomElementsSorted as _0x1f8725,sanitizeEditorConfig as _0x261009}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x524355,LiveRange as _0x2f3de9,LivePosition as _0x583a2a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4fc2c1,toWidget as _0x16e8d3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3e6b1b,set as _0x1a7e69,isEqual as _0x2368d0,unset as _0xf2efe1,omit as Bt}from'lodash-es';import{Delete as _0x32994f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x33bee5,ShiftEnter as _0x1b9530}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 _0x3db13d of this['editor']['commands']['commands']())_0x3db13d['affectsData']&&!this['_enabledCommands']['has'](_0x3db13d)&&_0x3db13d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x53898c of this['editor']['commands']['commands']())_0x53898c['affectsData']&&!this['_enabledCommands']['has'](_0x53898c)&&_0x53898c['clearForceDisabled']('TrackChangesCommand');}constructor(_0x4ab4d1,_0x2b7f6e){super(_0x4ab4d1),this['_enabledCommands']=_0x2b7f6e,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4521b8){const _0x1a0ef1=this['_suggestions']['get'](_0x4521b8);if(!_0x1a0ef1)throw new _0x5a2cc3('track-changes-accept-suggestion-not-found',this);const _0x2f1b9e=_0x1a0ef1['getRanges']();this['editor']['model']['canEditAt'](_0x2f1b9e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1a0ef1);}constructor(_0x4723c6,_0x54a7c4){super(_0x4723c6),this['_suggestions']=_0x54a7c4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x498c29){const _0x5ad7f6=this['_suggestions']['get'](_0x498c29);if(!_0x5ad7f6)throw new _0x5a2cc3('track-changes-discard-suggestion-not-found',this);const _0x233759=_0x5ad7f6['getRanges']();this['editor']['model']['canEditAt'](_0x233759)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5ad7f6);}constructor(_0x290bc3,_0x5e69d1){super(_0x290bc3),this['_suggestions']=_0x5e69d1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x2a4e0c){return _0x2a4e0c['sort']((_0x2c62c9,_0x153a00)=>'deletion'==_0x2c62c9['type']&&'deletion'!=_0x153a00['type']?-0x1:'deletion'!=_0x2c62c9['type']&&'deletion'==_0x153a00['type']?0x1:0x0);}function to(_0x16b059,_0x4f0cc9){let _0x61168f,_0x13efbb=0x0;const _0x188f41=[],_0x153c54=_0x4f0cc9['schema'];for(;_0x13efbb<_0x16b059['length'];){const _0x2ad40e=_0x16b059[_0x13efbb],_0x2d2a57=_0x16b059[_0x13efbb+0x1];_0x61168f||(_0x61168f=_0x4f0cc9['createPositionBefore'](_0x2ad40e)),co(_0x4f0cc9,_0x2ad40e,_0x2d2a57)||(_0x188f41['push'](_0x4f0cc9['createRange'](_0x61168f,_0x153c54['isObject'](_0x2ad40e)?_0x4f0cc9['createPositionAfter'](_0x2ad40e):_0x4f0cc9['createPositionAt'](_0x2ad40e,'end'))),_0x61168f=null),_0x13efbb++;}return _0x188f41;}function co(_0x45779b,_0x18f08c,_0x443579){if(!_0x443579)return!0x1;const _0x6c753f=_0x45779b['createPositionAfter'](_0x18f08c),_0x4be965=_0x45779b['createPositionBefore'](_0x443579);return _0x6c753f['isTouching'](_0x4be965);}function rs(_0x458f13,_0x3e48db,_0x2de2c3){for(;_0x2de2c3['length'];){const _0x1c9937=_0x2de2c3['splice'](0x0,0x64);_0x458f13['change'](()=>{for(const _0x5bd924 of _0x1c9937)_0x5bd924['isInContent']&&_0x3e48db['execute'](_0x5bd924['id']);});}}class x extends ts{['refresh'](){const _0x1ddc33=Array['from'](this['_suggestions']['values']())['some'](_0x3ae50f=>_0x3ae50f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ddc33;}['execute'](){const _0x414204=ss(Array['from'](this['_suggestions']['values']()));for(const _0xe52605 of _0x414204){const _0x175fe7=_0xe52605['getRanges']();if(!this['editor']['model']['canEditAt'](_0x175fe7))return;}rs(this['editor']['model'],this['_command'],_0x414204);}constructor(_0x2a5d01,_0x5d1c54,_0x578e0b){super(_0x2a5d01),this['_command']=_0x5d1c54,this['_suggestions']=_0x578e0b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x4cbd27=this['editor']['model']['document']['selection'],_0x4d1e33=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2d9b8e,_0x2a7e71){const _0x1d83c9=Array['from'](_0x2d9b8e['getRanges']()),_0x839948=new Set();for(const _0x5ba49f of _0x2a7e71)if(_0x5ba49f['isInContent']){for(const _0x4f4a95 of _0x1d83c9)for(const _0x59181a of _0x5ba49f['getRanges']())(_0x4f4a95['isIntersecting'](_0x59181a)||_0x2d9b8e['isCollapsed']&&!_0x5ba49f['isMultiRange']&&_0x5ba49f['next']&&_0x59181a['end']['isTouching'](_0x4f4a95['start']))&&_0x839948['add'](_0x5ba49f);}return _0x839948;}(_0x4cbd27,_0x4d1e33),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x45e6b3=ss(Array['from'](this['_selectedSuggestions']));for(const _0x40d816 of _0x45e6b3){const _0x552b6a=_0x40d816['getRanges']();if(!this['editor']['model']['canEditAt'](_0x552b6a))return;}rs(this['editor']['model'],this['_command'],_0x45e6b3);}constructor(_0x46383d,_0x4ea2ad,_0x326a17){super(_0x46383d),this['_command']=_0x4ea2ad,this['_suggestions']=_0x326a17,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x4cd08f(){get['head'](){let _0x1cee3a=this;for(;_0x1cee3a['previous'];)_0x1cee3a=_0x1cee3a['previous'];return _0x1cee3a;}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'](_0x36b45f){this['_markerNames']['add'](_0x36b45f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x392526=>this['_model']['markers']['get'](_0x392526))['filter'](_0x4c8bcb=>_0x4c8bcb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3f97a3=>{for(const _0x406ab2 of this['getMarkers']())_0x3f97a3['removeMarker'](_0x406ab2);}),this['_markerNames']['clear']();}['removeMarker'](_0x44932a){this['_model']['change'](_0x5c6fe3=>{_0x5c6fe3['removeMarker'](_0x44932a);}),this['_markerNames']['delete'](_0x44932a);}['addRange'](_0x3887b8){const _0x514679='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x514679),this['_model']['change'](_0x5dcf46=>{_0x5dcf46['addMarker'](_0x514679,{'range':_0x3887b8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x267dbb){for(const _0x3582f0 of this['getRanges']())if(_0x3582f0['isIntersecting'](_0x267dbb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x463e54=>_0x463e54['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x26f69f,_0x26dd3e)=>[..._0x26f69f,..._0x26dd3e['getItems']()],[]);}['getFirstRange'](){var _0x243308;return(null===(_0x243308=this['getFirstMarker']())||void 0x0===_0x243308?void 0x0:_0x243308['getRange']())||null;}['getContainedElement'](){const _0x180a73=this['getRanges']();if(0x1!=_0x180a73['length'])return null;const _0x1f5958=_0x180a73[0x0],_0xc1cc7f=_0x1f5958['start']['nodeAfter'],_0x2e0c01=_0x1f5958['end']['nodeBefore'];return _0xc1cc7f instanceof _0x524355?_0xc1cc7f!=_0x2e0c01?null:_0xc1cc7f: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 _0x19a6e6=[];let _0xee249c=this['head'];for(;_0xee249c;)_0x19a6e6['push'](_0xee249c),_0xee249c=_0xee249c['next'];return _0x19a6e6;}['setAttribute'](_0x2aa53c,_0x1cd880){const _0x3c7936=_0x3e6b1b(this['attributes']);_0x1a7e69(_0x3c7936,_0x2aa53c,_0x1cd880),_0x2368d0(_0x3c7936,this['attributes'])||(this['attributes']=_0x3c7936,this['_onAttributesChange'](_0x3c7936));}['removeAttribute'](_0x179880){const _0x5a2a7d=_0x3e6b1b(this['attributes']);_0xf2efe1(_0x5a2a7d,_0x179880),_0x2368d0(_0x5a2a7d,this['attributes'])||(this['attributes']=_0x5a2a7d,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 _0x4c61b3()['substr'](0x1,0x5);}constructor(_0x226597,_0x749121){super(),this['_isDataLoaded']=!0x1,this['id']=_0x749121['id'],this['type']=_0x749121['type'],this['subType']=_0x749121['subType']||null,this['author']=_0x749121['author'],this['creator']=_0x749121['creator']||_0x749121['author'],this['isExternal']=Boolean(_0x749121['attributes']&&_0x749121['attributes']['@external']),this['data']=null,this['_model']=_0x226597,this['_onAccept']=_0x749121['onAccept'],this['_onDiscard']=_0x749121['onDiscard'],this['_onAttributesChange']=_0x749121['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x749121['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(_0x430956,_0x2d2313,_0x5e60e1){const t=_0x430956['t'];switch(_0x2d2313){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',_0x5e60e1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5e60e1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5e60e1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5e60e1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5e60e1);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',_0x5e60e1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5e60e1);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',_0x5e60e1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5e60e1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5e60e1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5e60e1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5e60e1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5e60e1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5e60e1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5e60e1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5e60e1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5e60e1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5e60e1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5e60e1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5e60e1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5e60e1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5e60e1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5e60e1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5e60e1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5e60e1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5e60e1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5e60e1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5e60e1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5e60e1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5e60e1);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'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5e60e1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5e60e1);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'},_0x5e60e1);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'},_0x5e60e1);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 _0x2d2313;}}class f{['getDescriptions'](_0x479635){const _0x55fdcc=[],_0x39d5a0=new Set(),_0x600cae=new Set();for(let _0xf0abc7=0x0;_0xf0abc7<_0x479635['length'];_0xf0abc7++){const _0x5d4f34=_0x479635[_0xf0abc7];if(!_0x5d4f34['isInContent'])continue;const _0x391ecd=this['_handleCustomCallbackDescription'](_0x5d4f34);if(_0x391ecd){if(null!=_0x5d4f34['subType']){if(_0x39d5a0['has'](_0x5d4f34['subType']))continue;_0x39d5a0['add'](_0x5d4f34['subType']);}_0x55fdcc['push'](_0x391ecd);}else{if('attribute'!=_0x5d4f34['type'])'insertion'!=_0x5d4f34['type']&&'deletion'!=_0x5d4f34['type']||this['_handleInsertRemoveSuggestionDescription'](_0x55fdcc,_0x5d4f34,_0x479635[_0xf0abc7+0x1]);else{const _0x56256d=_0x5d4f34['data']['key'];if(_0x600cae['has'](_0x56256d))continue;_0x600cae['add'](_0x5d4f34['data']['key']),_0x56256d==m?this['_handleRenameSuggestionDescription'](_0x55fdcc,_0x5d4f34):this['_handleAttributeSuggestionDescription'](_0x55fdcc,_0x5d4f34);}}}return this['_resolveDescriptionItems'](_0x55fdcc);}['registerDescriptionCallback'](_0x1fc493){this['_customCallbacks']['push'](_0x1fc493);}['registerElementLabel'](_0x224468,_0x103866,_0x3452b8=_0x4b8876['normal']){'function'==typeof _0x224468?_0x50029c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x224468,'label':_0x103866,'priority':_0x3452b8}):this['_itemLabels']['set'](_0x224468,_0x103866);}['registerAttributeLabel'](_0x122034,_0x15f6d0){this['_attributeLabels']['set'](_0x122034,_0x15f6d0);}['getItemLabel'](_0x3b2722,_0x4cbe98=0x1){let _0x127528;for(const _0x544df3 of this['_itemLabelsCallbacks'])if(_0x544df3['matchingCallback'](_0x3b2722)){_0x127528=_0x544df3['label'];break;}return _0x127528||(_0x127528=this['_itemLabels']['get'](_0x3b2722['name'])),_0x127528?_0x127528(_0x4cbe98):0x1!==_0x4cbe98?_0x4cbe98+'\x20'+_0x3b2722['name']+'s':''+_0x3b2722['name'];}['_addDescriptionItems'](_0x9b3b5c,_0xba20d7){const _0x1c4c05=_0xba20d7['getFirstRange']()['getWalker'](),_0x1a925f='insertion'==_0xba20d7['type']?'add':'remove';for(const _0x5dec66 of _0x1c4c05){const _0x4b2d66=_0x5dec66['item'],_0x3e09a1=_0x9b3b5c[_0x9b3b5c['length']-0x1];if(_0x4b2d66['is']('$textProxy'))_0x3e09a1&&_0x3e09a1['type']['indexOf']('Container')>-0x1&&_0x9b3b5c['pop'](),_0x3e09a1&&'text'==_0x3e09a1['type']?_0x3e09a1[_0x1a925f]+=_0x4b2d66['data']:_0x9b3b5c['push']({'type':'text','add':'add'==_0x1a925f?_0x4b2d66['data']:'','remove':'remove'==_0x1a925f?_0x4b2d66['data']:''});else{if(this['_schema']['isObject'](_0x4b2d66)){const _0x2b0fb9=_0x4b2d66;if(_0x3e09a1&&_0x3e09a1['type']['indexOf']('Container')>-0x1&&_0x9b3b5c['pop'](),'elementEnd'==_0x5dec66['type'])continue;_0x3e09a1&&_0x3e09a1['type']==_0x1a925f+'Object'&&_0x3e09a1['element']['name']==_0x2b0fb9['name']?_0x3e09a1['quantity']++:_0x9b3b5c['push']({'type':_0x1a925f+'Object','element':_0x2b0fb9,'quantity':0x1}),_0x1c4c05['skip'](_0xe619ac=>!('elementEnd'==_0xe619ac['type']&&_0xe619ac['item']==_0x4b2d66));}else{if(this['_schema']['checkChild'](_0x4b2d66,'$text')||_0x4b2d66['is']('element','softBreak')){const _0x2784b6=_0x4b2d66;if('add'==_0x1a925f&&'elementStart'==_0x5dec66['type']||'remove'==_0x1a925f&&'elementEnd'==_0x5dec66['type'])continue;if(_0x3e09a1&&-0x1==_0x3e09a1['type']['indexOf']('Container')){'text'==_0x3e09a1['type']&&(_0x3e09a1[_0x1a925f]+='\x0a');continue;}let _0x2d4076;if(_0x2d4076='add'==_0x1a925f?_0x2784b6['nextSibling']&&!this['_schema']['isObject'](_0x2784b6['nextSibling'])?_0x2784b6['nextSibling']:null:_0x2784b6['previousSibling']&&!this['_schema']['isObject'](_0x2784b6['previousSibling'])?_0x2784b6['previousSibling']:null,_0x2784b6['isEmpty']||_0x2d4076&&_0x2d4076['isEmpty']){const _0x370d22=_0x2d4076&&_0x2d4076['isEmpty']?_0x2d4076:_0x2784b6;_0x3e09a1&&_0x3e09a1['type']==_0x1a925f+'EmptyContainer'&&_0x3e09a1['element']['name']==_0x370d22['name']?_0x3e09a1['quantity']++:_0x9b3b5c['push']({'type':_0x1a925f+'EmptyContainer','element':_0x370d22,'quantity':0x1});}else _0x9b3b5c['push']({'type':_0x1a925f+'Container','element':_0x2784b6});}}}}}['_resolveDescriptionItems'](_0x87f4a8){const _0x527611=this['_locale'],_0x4a7cc9=[],_0x3d51b6=[],_0x1e50bb=[];for(const _0x3a5108 of _0x87f4a8)switch(_0x3a5108['type']){case'text':if(_0x3a5108['add']=_0x3a5108['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3a5108['remove']=_0x3a5108['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3a5108['add']&&''!=_0x3a5108['remove']){_0x4a7cc9['push']({'type':'replace','content':o(_0x527611,'REPLACE_TEXT',['\x22'+_0x3a5108['remove']+'\x22','\x22'+_0x3a5108['add']+'\x22'])});continue;}if(null!=_0x3a5108['add']['match'](/^ +$/)){_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Insert:*\x20%0',o(_0x527611,'ELEMENT_SPACE',_0x3a5108['add']['length']))});continue;}if(null!=_0x3a5108['remove']['match'](/^ +$/)){_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Remove:*\x20%0',o(_0x527611,'ELEMENT_SPACE',_0x3a5108['remove']['length']))});continue;}if(''!=_0x3a5108['add']){_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Insert:*\x20%0','\x22'+_0x3a5108['add']+'\x22')});continue;}_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Remove:*\x20%0','\x22'+_0x3a5108['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Insert:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Remove:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'addContainer':_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Split:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'removeContainer':_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Merge:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'addFormat':_0x3d51b6['push'](_0x3a5108['key']);continue;case'removeFormat':_0x1e50bb['push'](_0x3a5108['key']);continue;default:_0x4a7cc9['push'](_0x3a5108);}if(_0x3d51b6['length']){const _0x456077=_0x3d51b6['map'](_0x40c4fa=>this['_attributeLabels']['has'](_0x40c4fa)?this['_attributeLabels']['get'](_0x40c4fa):_0x40c4fa)['join'](',\x20');_0x4a7cc9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x456077)});}if(_0x1e50bb['length']){const _0x4acd8a=_0x1e50bb['map'](_0x533e38=>this['_attributeLabels']['has'](_0x533e38)?this['_attributeLabels']['get'](_0x533e38):_0x533e38)['join'](',\x20');_0x4a7cc9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4acd8a)});}return _0x4a7cc9;}['_handleCustomCallbackDescription'](_0x2e6c09){for(const _0x4cee6f of this['_customCallbacks']){const _0x5e964b=_0x4cee6f(_0x2e6c09);if(_0x5e964b&&'type'in _0x5e964b)return _0x5e964b;}}['_handleAttributeSuggestionDescription'](_0x21a5d0,_0x2115f7){const _0x1bbb57=_0x2115f7['data'],_0x31d2e2=void 0x0===_0x1bbb57['newValue']?'removeFormat':'addFormat';_0x21a5d0['push']({'type':_0x31d2e2,'key':_0x1bbb57['key']});}['_handleRenameSuggestionDescription'](_0x364511,_0x39a94a){_0x364511['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x39a94a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x29fe84,_0x3cc961,_0x5479d1){if(this['_addDescriptionItems'](_0x29fe84,_0x3cc961),_0x5479d1&&_0x5479d1['getFirstRange']()&&!_0x3cc961['getFirstRange']()['end']['isEqual'](_0x5479d1['getFirstRange']()['start'])){const _0x486a3a=_0x29fe84[_0x29fe84['length']-0x1],_0x18b773='insertion'==_0x3cc961['type']?'add':'remove';_0x486a3a&&'text'==_0x486a3a['type']&&(_0x486a3a[_0x18b773]+='\x0a');}}constructor(_0x4410fe,_0x21bdad){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4410fe,this['_locale']=_0x21bdad;}}class E extends _0x5511a1{['afterInit'](){const _0x4e40ae=this['editor'],_0x3fb47c=_0x4e40ae['plugins']['get']('TrackChangesEditing');_0x4e40ae['commands']['get']('showAIAssistant')&&_0x3fb47c['enableCommand']('showAIAssistant');}}class V extends _0x5511a1{['afterInit'](){const _0x299a4d=this['editor'],_0x49329b=_0x299a4d['locale'];if(!_0x299a4d['plugins']['has']('AlignmentEditing'))return;const _0x33e123=_0x299a4d['plugins']['get']('TrackChangesEditing');_0x33e123['enableDefaultAttributesIntegration']('alignment'),_0x33e123['registerBlockAttribute']('alignment'),_0x33e123['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x49329b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f4cb4=this['editor'],_0x61dc04=_0x2f4cb4['locale'];_0x2f4cb4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da172=>{if('formatBlock'!=_0x5da172['type'])return;const {data:_0x10dca9}=_0x5da172;if(_0x10dca9&&'alignment'==_0x10dca9['commandName']){const _0x5ba70e=_0x10dca9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x61dc04,'*Format:*\x20%0',function(_0x1e52fd){switch(_0x1e52fd){case'left':return o(_0x61dc04,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x61dc04,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x61dc04,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x61dc04,'FORMAT_JUSTIFY_TEXT');}}(_0x5ba70e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5511a1{['afterInit'](){const _0x2368fd=this['editor'],_0x4d7128=_0x2368fd['plugins']['get']('TrackChangesEditing'),_0x1c447a=_0x2368fd['locale'];for(const _0x4d5eae of ti){if(!_0x2368fd['plugins']['has'](_0x4d5eae))continue;const _0x5019c7=_0x4d5eae['slice'](0x0,-0x7)['toLowerCase'](),_0x446d4d='FORMAT_'+_0x5019c7['toUpperCase']();_0x4d7128['enableDefaultAttributesIntegration'](_0x5019c7),_0x4d7128['registerInlineAttribute'](_0x5019c7),_0x4d7128['descriptionFactory']['registerAttributeLabel'](_0x5019c7,o(_0x1c447a,_0x446d4d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x593186=this['editor'],_0x33c829=_0x593186['locale'],_0x5aab9e=_0x593186['plugins']['get']('TrackChangesEditing');function _0x22a9a(_0x49564d,_0x4a7ad9){_0x5aab9e['descriptionFactory']['registerDescriptionCallback'](_0x1d3101=>{if('formatInline'!=_0x1d3101['type'])return;const {data:_0x1b0617}=_0x1d3101;return _0x1b0617&&_0x1b0617['commandName']===_0x49564d?_0x1b0617['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33c829,'*Format:*\x20%0',_0x4a7ad9)}:{'type':'format','content':o(_0x33c829,'*Remove\x20format:*\x20%0',_0x4a7ad9)}:void 0x0;});}_0x22a9a('bold',o(_0x33c829,'FORMAT_BOLD')),_0x22a9a('italic',o(_0x33c829,'FORMAT_ITALIC')),_0x22a9a('underline',o(_0x33c829,'FORMAT_UNDERLINE')),_0x22a9a('code',o(_0x33c829,'FORMAT_CODE')),_0x22a9a('strikethrough',o(_0x33c829,'FORMAT_STRIKETHROUGH')),_0x22a9a('subscript',o(_0x33c829,'FORMAT_SUBSCRIPT')),_0x22a9a('superscript',o(_0x33c829,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5511a1{['afterInit'](){const _0x425ff1=this['editor'],_0x52207b=_0x425ff1['locale'];if(!_0x425ff1['plugins']['has']('BlockQuoteEditing'))return;const _0x5f2b19=_0x425ff1['plugins']['get']('TrackChangesEditing'),_0x1a6fb4=this['editor']['commands']['get']('blockQuote');_0x5f2b19['enableCommand']('blockQuote',(_0x2619f5,_0x4687b3={})=>{const _0x152241=this['editor']['model']['document']['selection'],_0x2b3069=_0x4687b3&&void 0x0!==_0x4687b3['forceValue']?_0x4687b3['forceValue']:!_0x1a6fb4['value'];let _0x1569f6=[];if(_0x2b3069){const _0x42abad=Array['from'](_0x152241['getSelectedBlocks']())['filter'](_0x33dd71=>oo(_0x33dd71)||function(_0x145682,_0x18f2e2){const _0x3720a9=_0x18f2e2['checkChild'](_0x145682['parent'],'blockQuote'),_0x334ac8=_0x18f2e2['checkChild'](['$root','blockQuote'],_0x145682);return _0x3720a9&&_0x334ac8;}(_0x33dd71,this['editor']['model']['schema']));_0x1569f6=to(_0x42abad,_0x425ff1['model']);}else{const _0xe15e96=Array['from'](_0x152241['getSelectedBlocks']())['filter'](_0x308be3=>oo(_0x308be3));_0x1569f6=to(_0xe15e96,_0x425ff1['model']);}_0x425ff1['model']['change'](()=>{for(const _0x39b104 of _0x1569f6)_0x5f2b19['markBlockFormat'](_0x39b104,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2b3069}]});});}),_0x5f2b19['descriptionFactory']['registerDescriptionCallback'](_0x515cb2=>{const {data:_0x11d801}=_0x515cb2;if(_0x11d801&&'blockQuote'==_0x11d801['commandName']){const _0x418012=o(_0x52207b,'ELEMENT_BLOCK_QUOTE');return _0x11d801['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52207b,'*Set\x20format:*\x20%0',_0x418012)}:{'type':'format','content':o(_0x52207b,'*Remove\x20format:*\x20%0',_0x418012)};}});}}function oo(_0x57a8eb){return'blockQuote'==_0x57a8eb['parent']['name'];}class F extends _0x5511a1{['afterInit'](){const _0x29d1b8=this['editor'];_0x29d1b8['plugins']['has']('CaseChange')&&(_0x29d1b8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x29d1b8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x29d1b8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x5511a1{['afterInit'](){const _0x98edb1=this['editor'];_0x98edb1['commands']['get']('ckbox')&&_0x98edb1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5511a1{['afterInit'](){const _0x5a81f0=this['editor'];if(!_0x5a81f0['plugins']['has']('CodeBlock'))return;const _0x1c51c3=_0x5a81f0['plugins']['get']('TrackChangesEditing'),_0x478b66=_0x5a81f0['locale'],_0x521db3=_0x5a81f0['config']['get']('codeBlock')['languages'],_0x1c7c6f=_0x5a81f0['commands']['get']('codeBlock');_0x1c51c3['enableCommand']('indentCodeBlock'),_0x1c51c3['enableCommand']('outdentCodeBlock'),_0x1c51c3['enableCommand']('codeBlock',(_0x3d3de7,_0x5dd070={})=>{const _0x4b725a=_0x5a81f0['model'],_0x415a29=_0x5a81f0['model']['document']['selection'],_0x371144=_0x5dd070&&void 0x0!==_0x5dd070['forceValue']?_0x5dd070['forceValue']:!_0x1c7c6f['value'];let _0x44e405;_0x5dd070['language']||(_0x5dd070['language']=_0x521db3[0x0]['language']),_0x44e405=_0x371144?Array['from'](_0x415a29['getSelectedBlocks']())['filter'](_0x297625=>eo(_0x297625)||function(_0x28126c,_0x2e09f6){if(_0x28126c['is']('rootElement')||_0x2e09f6['isLimit'](_0x28126c))return!0x1;return _0x2e09f6['checkChild'](_0x28126c['parent'],'codeBlock');}(_0x297625,_0x4b725a['schema'])):Array['from'](_0x415a29['getSelectedBlocks']())['filter'](_0x30b458=>eo(_0x30b458));const _0x5f102e=to(_0x44e405,_0x4b725a);_0x4b725a['change'](()=>{for(const _0x33915e of _0x5f102e)_0x1c51c3['markBlockFormat'](_0x33915e,{'commandName':'codeBlock','commandParams':[{..._0x5dd070,'forceValue':_0x371144}],'formatGroupId':'blockName'});});}),(_0x1c51c3['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a5bed=>o(_0x478b66,'ELEMENT_CODE_BLOCK',_0x2a5bed)),_0x1c51c3['descriptionFactory']['registerDescriptionCallback'](_0x712e99=>{if('formatBlock'!=_0x712e99['type'])return;const _0x3d5d81=_0x478b66['t'],{data:_0x4ef45c}=_0x712e99;if(!_0x4ef45c||'codeBlock'!=_0x4ef45c['commandName'])return;const _0x164002=_0x4ef45c['commandParams'][0x0]['language'],_0x2ead8d=_0x3d5d81(_0x521db3['find'](_0x2e32ba=>_0x2e32ba['language']===_0x164002)['label'])['toLowerCase']();return _0x4ef45c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x478b66,'*Set\x20format:*\x20%0',o(_0x478b66,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2ead8d+')')}:{'type':'format','content':o(_0x478b66,'*Remove\x20format:*\x20%0',o(_0x478b66,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x23a829){return'codeBlock'==_0x23a829['name'];}class H extends _0x5511a1{['afterInit'](){const _0x5a4ce9=this['editor'];if(!_0x5a4ce9['plugins']['has']('CommentsEditing'))return;_0x5a4ce9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3429e9,_0x40ad51,_0x41b846){const _0x5920f=[];for(const _0x784484 of _0x40ad51['getItems']())_0x784484['hasAttribute'](_0x3429e9)&&_0x5920f['push'](_0x41b846['createRangeOn'](_0x784484));return _0x5920f;}function _e(_0xda879a,_0x295fdf,{showActiveMarker:_0x5c2a3b=!0x0}={}){const _0x5db7b6=_0xda879a['plugins']['get']('TrackChangesEditing');return(_0x4a992b,_0x854d5b,_0x21052c)=>{if(!_0x21052c['consumable']['test'](_0x854d5b['markerRange'],_0x4a992b['name']))return;const _0x278caf=_0x854d5b['markerRange']['getWalker'](),_0x294c0b=_0x854d5b['markerRange']['start'],_0x5505b1=_0xda879a['model']['schema'];let _0x44bf52=null,_0x11cb4b=null,_0x33d424=!0x1,_0x61d818=!0x1;for(const _0x16272b of _0x278caf){const _0x4031f1=_0x16272b['item'];_0x33d424=_0x33d424||_0x5505b1['isContent'](_0x4031f1);const _0x2bb75b=_0x21052c['mapper']['toViewElement'](_0x4031f1);if(_0x2bb75b&&_0x2bb75b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x16272b['type']&&(_0x5505b1['isBlock'](_0x4031f1)&&!_0x5505b1['isLimit'](_0x4031f1)&&(_0x4031f1['nextSibling']||_0x294c0b['isAtEnd']?_0x44bf52&&_0x44bf52['parent']==_0x4031f1||(_0x44bf52=_0x4031f1,_0x44f83a(_0x16272b['previousPosition']),_0x61d818=!0x0):_0x11cb4b=_0x11cb4b||_0x16272b['previousPosition']));}function _0x44f83a(_0x4f132f){const _0x2c7ce1=_0x21052c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x295fdf}),_0xa6ead2=_0x21052c['mapper']['toViewPosition'](_0x4f132f);_0x5c2a3b&&_0x5db7b6['activeMarkers']['includes'](_0x854d5b['markerName'])&&_0x21052c['writer']['addClass']('ck-suggestion-marker--active',_0x2c7ce1),_0x21052c['writer']['insert'](_0xa6ead2,_0x2c7ce1),_0x21052c['mapper']['bindElementToMarker'](_0x2c7ce1,_0x854d5b['markerName']);}_0x33d424||_0x61d818||!_0x11cb4b||_0x44f83a(_0x11cb4b);};}class q extends _0x5511a1{static get['requires'](){return[_0x32994f];}['init'](){const _0x166ad5=this['editor'],_0x5717b2=_0x166ad5['plugins']['get']('TrackChangesEditing');_0x5717b2['enableCommand']('delete');const _0x96ae31=_0x166ad5['commands']['get']('deleteForward');_0x5717b2['enableCommand']('deleteForward',(_0xd0927d,_0x142a9e={})=>{const _0xad4254=_0x166ad5['model']['createSelection'](_0x166ad5['model']['document']['selection']);_0xad4254['isCollapsed']&&_0x166ad5['model']['modifySelection'](_0xad4254,{'direction':'forward','unit':_0x142a9e['unit']});const _0x54b2c5=_0xad4254['getFirstRange'](),_0x4604f7=_0x2f3de9['fromRange'](_0x54b2c5);let _0x2f2efe;_0xd0927d(_0x142a9e),_0x2f2efe='$graveyard'==_0x4604f7['root']['rootName']?_0x166ad5['model']['createRange'](_0x54b2c5['start']):_0x166ad5['model']['createRange'](_0x4604f7['start'],_0x4604f7['end']),_0x4604f7['detach'](),_0x166ad5['model']['enqueueChange'](_0x96ae31['buffer']['batch'],_0x41741f=>{_0x96ae31['buffer']['lock'](),_0x41741f['setSelection'](_0x41741f['createRange'](_0x2f2efe['end'])),_0x96ae31['buffer']['unlock']();});}),_0x166ad5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x166ad5,'merge'),{'priority':'high'}),_0x166ad5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3d040c,_0x4ab52d,_0x228cec)=>{_0x228cec['options']['showSuggestionHighlights']&&_e(_0x166ad5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3d040c,_0x4ab52d,_0x228cec);},{'priority':'high'}),_0x166ad5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4dc142,_0x27b8fc,_0x4bf49e)=>{const _0x38aa71=_0x4bf49e['mapper']['markerNameToElements'](_0x27b8fc['markerName']);if(_0x38aa71){for(const _0x573cb8 of _0x38aa71)_0x573cb8['is']('uiElement')&&(_0x4bf49e['mapper']['unbindElementFromMarkerName'](_0x573cb8,_0x27b8fc['markerName']),_0x4bf49e['writer']['remove'](_0x573cb8));}},{'priority':'high'});}}class z extends _0x5511a1{['afterInit'](){const _0x569147=this['editor'];if(!_0x569147['plugins']['has']('ListEditing'))return;const _0x44962f=_0x569147['locale'],_0x156d10=_0x569147['plugins']['get']('TrackChangesEditing'),_0x2aac20=_0x569147['plugins']['has']('TodoListEditing'),_0xa86d0f=!!_0x569147['config']['get']('list.multiBlock');function _0x1653a7(_0x2c8622){return{'type':'format','content':''+o(_0x44962f,'*Set\x20format:*\x20%0',_0x2c8622)};}function _0x186401(_0x3c567a){return{'type':'format','content':''+o(_0x44962f,'*Remove\x20format:*\x20%0',_0x3c567a)};}_0x156d10['enableDefaultAttributesIntegration']('numberedList'),_0x156d10['enableDefaultAttributesIntegration']('bulletedList'),_0x156d10['enableDefaultAttributesIntegration']('customNumberedList'),_0x156d10['enableDefaultAttributesIntegration']('customBulletedList'),_0x156d10['enableDefaultAttributesIntegration']('indentList'),_0x156d10['enableDefaultAttributesIntegration']('outdentList'),_0x156d10['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x156d10['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x156d10['registerBlockAttribute']('listItemId'),_0x156d10['registerBlockAttribute']('listType'),_0x156d10['registerBlockAttribute']('listIndent'),_0xa86d0f&&(_0x156d10['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x156d10['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2aac20&&(_0x156d10['enableDefaultAttributesIntegration']('todoList'),_0x156d10['enableDefaultAttributesIntegration']('checkTodoList'),_0x156d10['registerBlockAttribute']('todoListChecked'),_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x166427=>{const {data:_0x3a1c05}=_0x166427;if(_0x3a1c05&&'todoListChecked'==_0x3a1c05['key'])return{'type':'format','content':_0x3a1c05['newValue']?o(_0x44962f,'*Check\x20item*'):o(_0x44962f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x19abf3=>{if(_0x19abf3['batch']['isUndo'])return!0x1;let _0x58eba4=!0x1;const _0x5f120e=_0x156d10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dcb34=>'todoListChecked'===_0x156d10['_getAttributeKey'](_0x4dcb34));for(const _0x583b4b of _0x5f120e){'todo'!=_0x583b4b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x156d10['_findSuggestions'](_0x583b4b['getFirstRange'](),'attribute')['find'](_0x12e77e=>'listType'===_0x156d10['_getAttributeKey'](_0x12e77e['suggestion']))||(_0x19abf3['removeMarker'](_0x583b4b['getFirstMarker']()),_0x58eba4=!0x0));}return _0x58eba4;})),_0x156d10['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x44962f,'FORMAT_INDENT'));const _0x4aafd3={'type':'format','content':''};_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x3313a1=>{const {data:_0x443162}=_0x3313a1;if(!_0x443162||'listType'!=_0x443162['key'])return;let _0x3bfeb0=_0x3313a1['head'];for(;_0x3bfeb0;){if(_0x3bfeb0['data']&&(('listStyle'==_0x3bfeb0['data']['key']||'listMarkerStyle'==_0x3bfeb0['data']['key'])&&(_0x3bfeb0['data']['newValue']&&'default'!=_0x3bfeb0['data']['newValue']||'default'!=_0x3bfeb0['data']['oldValue']&&!_0x443162['newValue'])||!_0xa86d0f&&_0x3bfeb0['data']['key']==m))return _0x4aafd3;_0x3bfeb0=_0x3bfeb0['next'];}if(null==_0x443162['newValue'])switch(_0x443162['oldValue']){case'bulleted':return _0x186401(o(_0x44962f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x186401(o(_0x44962f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x186401(o(_0x44962f,'ELEMENT_TODO_LIST'));}switch(_0x443162['newValue']){case'bulleted':return _0x1653a7(o(_0x44962f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1653a7(o(_0x44962f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1653a7(o(_0x44962f,'ELEMENT_TODO_LIST'));}}),_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x391e86=>{const {data:_0x452d40}=_0x391e86;if(_0x452d40&&'listIndent'==_0x452d40['key'])return null==_0x452d40['newValue']||null==_0x452d40['oldValue']&&0x0==_0x452d40['newValue']?_0x4aafd3:void 0x0;}),_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x288fbc=>{if('attribute'!=_0x288fbc['type'])return;const {data:_0x1d58d8}=_0x288fbc;if(!_0x1d58d8||'listItemId'!=_0x1d58d8['key'])return;const _0xaf391=le(_0x288fbc);return'newValue'==_0xaf391?{'type':'format','content':o(_0x44962f,'*Merge:*\x20list\x20item')}:'oldValue'==_0xaf391?{'type':'format','content':o(_0x44962f,'*Split:*\x20list\x20item')}:_0x4aafd3;}),_0x569147['model']['document']['registerPostFixer'](_0x5da4c0=>this['listItemIdFixer'](_0x5da4c0)),_0x569147['model']['document']['registerPostFixer'](_0x158742=>this['noTrackChangesFixer'](_0x158742)),_0x569147['model']['document']['registerPostFixer'](_0x4c5484=>this['assureChains'](_0x4c5484)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x15aab4){if(_0x15aab4['batch']['isUndo']||!_0x15aab4['batch']['isLocal'])return!0x1;let _0x3a6fef=!0x1;const _0x22f7c6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c4606=>_0x2c4606['data']&&'listItemId'==_0x2c4606['data']['key'])['filter'](_0x153e64=>_0x153e64['data']['newValue']&&_0x153e64['data']['oldValue']);for(const _0x1b3623 of _0x22f7c6)le(_0x1b3623)||(_0x15aab4['removeMarker'](_0x1b3623['getFirstMarker']()),_0x3a6fef=!0x0);return _0x3a6fef;}['noTrackChangesFixer'](_0x435358){if(_0x435358['batch']['isUndo']||!_0x435358['batch']['isLocal'])return!0x1;const _0x556384=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x556384['trackChangesCommand']['value'])return!0x1;let _0x14a43a=!0x1;const _0x2a4d7f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xf0c92c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x349a48=>'attribute'==_0x349a48['type'])['filter'](_0x45df4f=>_0x2a4d7f['includes'](_0x45df4f['attributeKey']));if(0x0==_0xf0c92c['length'])return _0x14a43a;for(const _0x28583b of _0xf0c92c){const _0x3771a0=_0x556384['_findSuggestions'](_0x28583b['range'],'attribute')['filter'](_0x17b58a=>!_0x17b58a['meta']['isNextTo'])['map'](_0x55174d=>_0x55174d['suggestion'])['filter'](_0x202f31=>{const _0x2e1db3=_0x556384['_getAttributeKey'](_0x202f31);return _0x2a4d7f['includes'](_0x2e1db3);});if(_0x3771a0['length']){for(const _0x41c3cd of _0x3771a0)_0x435358['removeMarker'](_0x41c3cd['getFirstMarker']());_0x14a43a=!0x0;}}return _0x14a43a;}['assureChains'](_0x4966c2){if(_0x4966c2['batch']['isUndo']||!_0x4966c2['batch']['isLocal'])return!0x1;const _0x2af4c6=this['editor']['plugins']['get']('TrackChangesEditing');let _0x388f19=!0x1;const _0x4cfb42=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4282f8 of _0x2af4c6['getSuggestions']({'skipNotAttached':!0x0})){const _0x329a36=_0x2af4c6['_findSuggestions'](_0x4282f8['getFirstRange'](),'attribute')['map'](_0x208bd8=>_0x208bd8['suggestion'])['filter'](_0x3eb400=>_0x3eb400['data']&&_0x4cfb42['includes'](_0x3eb400['data']['key']));if(!_0x329a36['length'])continue;const _0x1ba1d1=_0x329a36[0x0]['head']['attributes']['groupId'];if(!_0x329a36['every'](_0x2c2c45=>_0x2c2c45['attributes']['groupId']===_0x1ba1d1)){for(const _0x5cc05d of _0x329a36)_0x188a8e(_0x5cc05d,_0x1ba1d1)&&(_0x388f19=!0x0);}}return _0x388f19;function _0x2e461c(_0x56008d,_0x456436){for(const _0x36d89c of _0x2af4c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf52515=>'attribute'==_0xf52515['type']&&_0xf52515['attributes']['groupId']==_0x56008d))_0x36d89c['setAttribute']('groupId',_0x456436);}function _0x188a8e(_0x113e86,_0x4e7f5f){let _0x4838ad=_0x113e86['head'],_0x12aad2=!0x1;for(;_0x4838ad;)_0x4838ad['attributes']['groupId']!=_0x4e7f5f&&(_0x2e461c(_0x4838ad['attributes']['groupId'],_0x4e7f5f),_0x4838ad['setAttribute']('groupId',_0x4e7f5f),_0x12aad2=!0x0),_0x4838ad=_0x4838ad['next'];return _0x12aad2;}}['_supportLegacySuggestions'](){const _0x94b859=this['editor'],_0x528857=_0x94b859['locale'],_0x4b4f53=_0x94b859['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4b4f53['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1b4f99,_0x1c27bd){const _0x150d0a=[];for(let _0x55103e of _0x1b4f99)_0x55103e['start']['nodeAfter']===_0x55103e['end']['parent']&&(_0x55103e=_0x94b859['model']['createRange'](_0x94b859['model']['createPositionAt'](_0x55103e['start']['nodeAfter'],0x0))),_0x150d0a['push'](_0x55103e);_0x94b859['model']['change'](_0x1fdfb4=>{const _0x31aa8b=_0x94b859['model']['document']['selection'],_0x4fef6b=Array['from'](_0x31aa8b['getRanges']())['map'](_0x2156f7=>_0x2f3de9['fromRange'](_0x2156f7));_0x1fdfb4['setSelection'](_0x150d0a),_0x94b859['commands']['get'](_0x1c27bd['commandName'])['refresh'](),_0x1c27bd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x94b859['execute'](_0x1c27bd['commandName'],..._0x1c27bd['commandParams']),_0x1fdfb4['setSelection'](_0x4fef6b);for(const _0x221617 of _0x4fef6b)_0x221617['detach']();});}),_0x4b4f53['descriptionFactory']['registerElementLabel'](function(_0x372b66){const _0x29f740=!_0x94b859['model']['schema']['isObject'](_0x372b66),_0x1dc035=_0x372b66['previousSibling'],_0x37f24a=_0x372b66['nextSibling'],_0x4fe1bd=_0x372b66['getAttribute']('listItemId'),_0x2bdea1=!_0x1dc035||_0x1dc035['getAttribute']('listItemId')!==_0x4fe1bd,_0x558cba=!_0x37f24a||_0x37f24a['getAttribute']('listItemId')!==_0x4fe1bd;return _0x29f740&&Boolean(_0x4fe1bd)&&_0x2bdea1&&_0x558cba;},_0x2abc25=>o(_0x528857,'ELEMENT_LIST_ITEM',_0x2abc25));}['_registerLegacyDescription'](){const _0x4b65fe=this['editor'],_0x2d364a=_0x4b65fe['locale'];function _0x265e3c(_0x2d5a20){const _0x237936=_0x4b65fe['commands']['get']('bulletedList')['value'],_0x5f5305=_0x4b65fe['commands']['get']('numberedList')['value'];return'numberedList'===_0x2d5a20?_0x237936:_0x5f5305;}_0x4b65fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2bb670){if('formatBlock'!=_0x2bb670['type'])return;const {data:_0x4a4f0b}=_0x2bb670;if(!_0x4a4f0b)return;let _0x1c6c39,_0x848c3f,_0x2f208b,_0xac1e25;switch(_0x4a4f0b['commandName']){case'bulletedList':_0x2f208b=_0x4a4f0b['commandParams'][0x0]['forceValue'],_0xac1e25=_0x265e3c(_0x4a4f0b['commandName']),_0x1c6c39=_0x2f208b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xac1e25&&_0x4b65fe['config']['get']('list.multiBlock')||(_0x1c6c39='*Change\x20to:*\x20%0'),_0x848c3f={'type':'format','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2f208b=_0x4a4f0b['commandParams'][0x0]['forceValue'],_0xac1e25=_0x265e3c(_0x4a4f0b['commandName']),_0x1c6c39=_0x2f208b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xac1e25&&_0x4b65fe['config']['get']('list.multiBlock')||(_0x1c6c39='*Change\x20to:*\x20%0'),_0x848c3f={'type':'format','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c6c39='*Indent:*\x20%0',_0x848c3f={'type':'format','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c6c39=function(_0x5e3dbf){const _0x50edf8=_0x5e3dbf['getFirstRange']();let _0x101f03=_0x50edf8['start']['nodeAfter'];for(;_0x101f03&&_0x50edf8['containsItem'](_0x101f03);){if(_0x101f03['getAttribute']('listIndent')>0x0)return!0x1;_0x101f03=_0x101f03['nextSibling'];}return!0x0;}(_0x2bb670)?o(_0x2d364a,'*Format:*\x20remove\x20from\x20%0',o(_0x2d364a,function(_0x5118dd){return'ELEMENT_'+_0x5118dd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2bb670))):o(_0x2d364a,'*Outdent:*\x20%0',o(_0x2d364a,'ELEMENT_LIST_ITEM')),_0x848c3f={'type':'format','content':_0x1c6c39};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a4f0b['multipleBlocks']&&(_0x1c6c39='*Merge:*\x20%0',_0x848c3f={'type':'deletion','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_LIST_ITEM'))});}return _0x848c3f;});}}function le(_0x355668){let _0x55f705=_0x355668['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x55f705;){const _0x3a5e73=_0x55f705['getAttribute']('listItemId');if(!_0x3a5e73)return!0x1;if(_0x3a5e73==_0x355668['data']['newValue'])return'newValue';if(_0x3a5e73==_0x355668['data']['oldValue'])return'oldValue';_0x55f705=_0x55f705['previousSibling'];}return!0x1;}class ue extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x14ed68=this['editor']['config']['get']('list.properties'),_0x115ad0=this['editor']['plugins']['get']('TrackChangesEditing');_0x14ed68['styles']&&(_0x115ad0['enableDefaultAttributesIntegration']('listStyle'),_0x115ad0['registerBlockAttribute']('listStyle')),_0x14ed68['reversed']&&(_0x115ad0['enableDefaultAttributesIntegration']('listReversed'),_0x115ad0['registerBlockAttribute']('listReversed')),_0x14ed68['startIndex']&&(_0x115ad0['enableDefaultAttributesIntegration']('listStart'),_0x115ad0['registerBlockAttribute']('listStart'));const _0x1533cd={'type':'format','content':''};_0x115ad0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x79fe40=this['editor']['locale'];_0x115ad0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x79fe40,'FORMAT_LIST_REVERSED')),_0x115ad0['descriptionFactory']['registerDescriptionCallback'](_0x508cc6=>{const {data:_0x3cd550}=_0x508cc6;if(_0x3cd550&&'listReversed'==_0x3cd550['key'])return null==_0x3cd550['newValue']||0x0==_0x3cd550['newValue']&&null==_0x3cd550['oldValue']?_0x1533cd:void 0x0;}),_0x115ad0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x79fe40,'FORMAT_LIST_START')),_0x115ad0['descriptionFactory']['registerDescriptionCallback'](_0x4590a7=>{const {data:_0x4020a1}=_0x4590a7;if(_0x4020a1&&'listStart'==_0x4020a1['key'])return null==_0x4020a1['newValue']||0x1==_0x4020a1['newValue']&&null==_0x4020a1['oldValue']?_0x1533cd:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x29a68f=>{if(_0x29a68f['batch']['isUndo'])return!0x1;let _0x2a719f=!0x1;const _0x38dda0=_0x115ad0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a0485=>{const _0x459a31=_0x115ad0['_getAttributeKey'](_0x5a0485);return'listStart'==_0x459a31||'listReversed'==_0x459a31;});for(const _0x2d6d26 of _0x38dda0){const _0x43208a=_0x2d6d26['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x43208a||'customNumbered'==_0x43208a)continue;_0x115ad0['_findSuggestions'](_0x2d6d26['getFirstRange'](),'attribute')['find'](_0x1ae9c3=>'listType'==_0x115ad0['_getAttributeKey'](_0x1ae9c3['suggestion']))||(_0x29a68f['removeMarker'](_0x2d6d26['getFirstMarker']()),_0x2a719f=!0x0);}return _0x2a719f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x538481){const _0x1befb8=this['editor']['locale'],{data:_0xce6429}=_0x538481,_0x2e892f={'type':'format','content':''};if(!_0xce6429||'listStyle'!=_0xce6429['key'])return;if(!_0xce6429['oldValue'])return'default'==_0xce6429['newValue']?_0x2e892f:{'type':'format','content':''+o(_0x1befb8,'*Set\x20format:*\x20%0',o(_0x1befb8,this['_getTranslationKeyForListStyle'](_0xce6429['newValue'])))};if(!_0xce6429['newValue']){if('default'==_0xce6429['oldValue'])return _0x2e892f;let _0x52da54=_0x538481['head'];for(;_0x52da54;){if(_0x52da54['data']&&'listType'==_0x52da54['data']['key']&&_0x52da54['data']['newValue'])return _0x2e892f;_0x52da54=_0x52da54['next'];}return{'type':'format','content':''+o(_0x1befb8,'*Remove\x20format:*\x20%0',o(_0x1befb8,this['_getTranslationKeyForListStyle'](_0xce6429['oldValue'])))};}if('default'!=_0xce6429['newValue'])return{'type':'format','content':''+o(_0x1befb8,'*Set\x20format:*\x20%0',o(_0x1befb8,this['_getTranslationKeyForListStyle'](_0xce6429['newValue'])))};let _0x4e63da=_0x538481['head'];for(;_0x4e63da;){if(_0x4e63da['data']&&'listType'==_0x4e63da['data']['key']&&_0x4e63da['data']['newValue']&&_0x4e63da['data']['oldValue'])return _0x2e892f;_0x4e63da=_0x4e63da['next'];}return{'type':'format','content':o(_0x1befb8,'*Set\x20format:*\x20%0',o(_0x1befb8,'ELEMENT_'+_0x538481['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x14ffeb=this['editor'],_0x6435a6=_0x14ffeb['locale'];_0x14ffeb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x482cf9=>{if('formatBlock'!=_0x482cf9['type'])return;const {data:_0x313926}=_0x482cf9;if(!_0x313926)return;let _0x59d4b5,_0x4f308d;switch(_0x313926['commandName']){case'listStyle':_0x59d4b5='*Change\x20to:*\x20%0',_0x4f308d={'type':'format','content':o(_0x6435a6,_0x59d4b5,o(_0x6435a6,this['_getTranslationKeyForListStyle'](_0x313926['commandParams'][0x0]['type'])))};break;case'listReversed':_0x59d4b5=_0x313926['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f308d={'type':'format','content':o(_0x6435a6,_0x59d4b5)};break;case'listStart':_0x59d4b5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f308d={'type':'format','content':o(_0x6435a6,_0x59d4b5,_0x313926['commandParams'][0x0]['startIndex'])};}return _0x4f308d;});}['_getTranslationKeyForListStyle'](_0x2f0cfc){return'ELEMENT_'+function(_0x5c3aed){if(pe['includes'](_0x5c3aed))return'bulleted';if(ye['includes'](_0x5c3aed))return'numbered';return null;}(_0x2f0cfc)['toUpperCase']()+'_LIST_'+_0x2f0cfc['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5511a1{static get['requires'](){return[_0x33bee5];}['init'](){const _0x5e4146=this['editor'],_0x32b4a4=_0x5e4146['plugins']['get']('TrackChangesEditing'),_0xb3002d=_0x5e4146['commands']['get']('enter');_0x32b4a4['enableCommand']('enter',()=>{_0x5e4146['model']['change'](_0x2888ee=>{const _0x3b8423=_0x5e4146['model']['document']['selection'],_0x1bbaa0=_0x3b8423['getFirstPosition'](),_0x224f3f=_0x2f3de9['fromRange'](_0x3b8423['getFirstRange']());if(_0xb3002d['enterBlock'](_0x2888ee)){const _0x54a5d3=_0x5e4146['model']['createPositionAt'](_0x1bbaa0['parent']['nextSibling'],0x0),_0x96ebf8=_0x2888ee['createRange'](_0x1bbaa0,_0x54a5d3);_0x32b4a4['markInsertion'](_0x96ebf8);}else _0x2888ee['setSelection'](_0x2888ee['createRange'](_0x224f3f['end']));_0x224f3f['detach'](),_0xb3002d['fire']('afterExecute',{'writer':_0x2888ee});});}),_0x5e4146['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5e4146,'split'),{'priority':'high'}),_0x5e4146['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b57ca,_0x46f980,_0xc9443c)=>{const _0x10bddb=_0xc9443c['mapper']['markerNameToElements'](_0x46f980['markerName']);if(_0x10bddb){for(const _0x1df3ce of _0x10bddb)_0x1df3ce['hasClass']('ck-suggestion-marker-split')&&(_0xc9443c['mapper']['unbindElementFromMarkerName'](_0x1df3ce,_0x46f980['markerName']),_0xc9443c['writer']['remove'](_0x1df3ce));}},{'priority':'high'}),_0x5e4146['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x178389,_0x278a63,_0xaa60f6)=>{_0xaa60f6['options']['showSuggestionHighlights']&&_e(_0x5e4146,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x178389,_0x278a63,_0xaa60f6);},{'priority':'high'});}}class J extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x47c8bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x47c8bf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x47c8bf['enableCommand']('findNext'),_0x47c8bf['enableCommand']('findPrevious'),_0x47c8bf['enableCommand']('replace'),_0x47c8bf['enableCommand']('replaceAll');}['handleFindCommand'](_0x2d306f,_0x34f28a,_0x299384={}){const _0x46ab04=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2d306f(_0x2ee991=>('string'==typeof _0x34f28a?_0x46ab04['findByTextCallback'](_0x34f28a,_0x299384):_0x34f28a)(_0x2ee991)['filter'](_0x37d5c0=>!0x1===this['_isInDeletionRange'](_0x37d5c0,_0x2ee991['item'])),_0x299384);}['_isInDeletionRange'](_0x37f11f,_0x92a81d){const _0x576c14=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x92a81d,_0x37f11f['start']),this['editor']['model']['createPositionAt'](_0x92a81d,_0x37f11f['end']));for(const _0x4412de of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x576c14['getIntersection'](_0x4412de['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 _0x5511a1{['afterInit'](){const _0x33d517=this['editor']['locale'],_0xac875e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4815b0,commandName:_0xa3b9f5}of ro)this['editor']['plugins']['has'](_0x4815b0)&&(_0xac875e['enableDefaultAttributesIntegration'](_0xa3b9f5),_0xac875e['registerInlineAttribute'](_0xa3b9f5));_0x33d517['t'],_0xac875e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x33d517,'FORMAT_FONT_SIZE')),_0xac875e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x33d517,'FORMAT_FONT_FAMILY')),_0xac875e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x33d517,'FORMAT_FONT_COLOR')),_0xac875e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x33d517,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e168f=this['editor'],_0x42ec48=_0x3e168f['locale'];_0x3e168f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4042cd=>{const _0x1241dc=_0x42ec48['t'];if('formatInline'!=_0x4042cd['type'])return;const {data:_0x352c23}=_0x4042cd;if(null!=_0x352c23){if('fontSize'==_0x352c23['commandName']){const _0x1fc363=_0x352c23['commandParams'][0x0]['value'];if(_0x1fc363){const _0x2fd924=_0x1241dc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2030df=>_0x2030df['model']==_0x1fc363)['title'])['toLowerCase']();return{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20size:*\x20%0',_0x2fd924)};}return{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x352c23['commandName']){const _0xe7f3c2=_0x352c23['commandParams'][0x0]['value'];return _0xe7f3c2?{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20family:*\x20%0',_0xe7f3c2)}:{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20family*')};}if('fontColor'==_0x352c23['commandName']){const _0x25bbad=_0x352c23['commandParams'][0x0]['value'];if(_0x25bbad){const _0x50e293=_0x20bde1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x254e1d=>_0x254e1d['model']==_0x25bbad);let _0x5a26ec=_0x25bbad,_0x4f0bfd='';return _0x50e293&&(_0x5a26ec=_0x50e293['label'],_0x4f0bfd=_0x1241dc(_0x5a26ec)['toLowerCase']()),{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20color:*\x20%0',_0x4f0bfd)['trim'](),'color':{'value':_0x25bbad,'title':_0x4f0bfd||_0x5a26ec}};}return{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x352c23['commandName']){const _0x3430d3=_0x352c23['commandParams'][0x0]['value'];if(_0x3430d3){const _0x2d835f=_0x20bde1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x33f514=>_0x33f514['model']==_0x3430d3);let _0x2da9c7=_0x3430d3,_0x3a7b99='';return _0x2d835f&&(_0x2da9c7=_0x2d835f['label'],_0x3a7b99=_0x1241dc(_0x2da9c7)['toLowerCase']()),{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20background\x20color:*\x20%0',_0x3a7b99)['trim'](),'color':{'value':_0x3430d3,'title':_0x3a7b99||_0x2da9c7}};}return{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5511a1{['afterInit'](){const _0x3a84b1=this['editor'],_0x42bce0=_0x3a84b1['plugins']['get']('TrackChangesEditing'),_0x29aa0a=_0x3a84b1['commands']['get']('copyFormat'),_0x1214de=_0x3a84b1['commands']['get']('pasteFormat');_0x29aa0a&&_0x1214de&&(_0x42bce0['enableDefaultAttributesIntegration']('pasteFormat'),_0x42bce0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2c683d=this['editor'],_0x37637a=_0x2c683d['locale'];_0x2c683d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x467ce1=>{if('formatBlock'!=_0x467ce1['type']&&'formatInline'!=_0x467ce1['type'])return;const {data:_0x55144b}=_0x467ce1;if(_0x55144b&&'pasteFormat'===_0x55144b['commandName']){const _0x3c0982=[],_0x3b5c6a=_0x55144b['commandParams'][0x0];for(const [_0x1c69e6,_0x131aa2]of Object['entries'](_0x3b5c6a))_0x3c0982['push'](so(_0x2c683d,_0x1c69e6,_0x131aa2));return _0x3c0982['length']?{'type':'format','content':o(_0x37637a,'*Set\x20format\x20to:*\x20%0',_0x3c0982['join'](',\x20'))}:{'type':'format','content':o(_0x37637a,'*Remove\x20all\x20formatting*')};}});}}function so(_0x384d1c,_0x273ca2,_0x8ba308){const _0xc6dbc4=_0x384d1c['locale']['t'],_0x5d86c6=_0x273ca2['split'](/(?=[A-Z])/)['join']('\x20'),_0x4b494f=_0xc6dbc4(_0x5d86c6['charAt'](0x0)['toUpperCase']()+_0x5d86c6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x8ba308)return _0x4b494f;if('fontColor'===_0x273ca2||'fontBackgroundColor'===_0x273ca2){const _0x53bcab=_0x20bde1(_0x384d1c['config']['get']('fontColor.colors'))['find'](_0x4f74b4=>_0x4f74b4['model']==_0x8ba308);return _0x4b494f+'\x20('+(_0x53bcab?_0xc6dbc4(_0x53bcab['label'])['toLowerCase']():_0x8ba308)+')';}if('fontSize'===_0x273ca2&&isNaN(parseFloat(_0x8ba308))){const _0xea7580=_0x384d1c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x384d1c['config']['get']('fontSize.options'))['find'](_0xe01a38=>_0xe01a38['model']==_0x8ba308);return _0x4b494f+'\x20('+(_0xea7580?_0xc6dbc4(_0xea7580['title'])['toLowerCase']():_0x8ba308)+')';}return _0x4b494f+'\x20('+_0x8ba308+')';}class Y extends _0x5511a1{['afterInit'](){const _0xb764bf=this['editor'];if(!_0xb764bf['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xb764bf['config']['get']('heading.options');const _0xd400bf=_0xb764bf['locale'],_0x4288ad=_0xb764bf['plugins']['get']('TrackChangesEditing');_0x4288ad['enableDefaultAttributesIntegration']('heading');for(const _0xc5f3df of this['_headingOptions'])'paragraph'!=_0xc5f3df['model']&&_0x4288ad['descriptionFactory']['registerElementLabel'](_0xc5f3df['model'],_0x55b9f5=>{const _0x31f41e=this['_getHeadingLevel'](_0xc5f3df['model']);return null!==_0x31f41e?_0x43f999(_0x55b9f5,_0x31f41e):_0x1e3f45(_0x55b9f5,_0xc5f3df['title']);});function _0x43f999(_0x2123b1,_0x3c850a){return o(_0xd400bf,'ELEMENT_HEADING',[_0x2123b1,_0x3c850a]);}function _0x1e3f45(_0x23a1fa,_0x2e0ba6){return o(_0xd400bf,'ELEMENT_HEADING_CUSTOM',[_0x23a1fa,_0x2e0ba6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24e941=this['editor'],_0xbb386d=_0x24e941['locale'];function _0x9dec61(_0xd14bf7,_0x46eadb){return o(_0xbb386d,'ELEMENT_HEADING_CUSTOM',[_0xd14bf7,_0x46eadb]);}_0x24e941['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565dca=>{if('formatBlock'!=_0x565dca['type'])return;const {data:_0x5064ee}=_0x565dca;if(_0x5064ee&&'heading'==_0x5064ee['commandName']){const _0x47481a=_0x5064ee['commandParams'][0x0]['value'],_0x295a3f=this['_getHeadingLevel'](_0x47481a);if(null!==_0x295a3f)return{'type':'format','content':o(_0xbb386d,'*Change\x20to:*\x20%0',(_0x58fdc6=0x1,_0x2432be=_0x295a3f,o(_0xbb386d,'ELEMENT_HEADING',[_0x58fdc6,_0x2432be])))};const _0xe3d7aa=this['_headingOptions']['find'](_0x1649ca=>_0x1649ca['model']===_0x47481a)['title'];return{'type':'format','content':o(_0xbb386d,'*Change\x20to:*\x20%0',_0x9dec61(0x1,_0xe3d7aa))};}var _0x58fdc6,_0x2432be;});}['_getHeadingLevel'](_0xd49d9e){var _0x2714ce,_0x107c05;const _0x480313=_0xd49d9e['match'](/^heading(\d+)/);if(_0x480313)return _0x480313[0x1];const _0x25ed8e=null===(_0x2714ce=this['_headingOptions'])||void 0x0===_0x2714ce?void 0x0:_0x2714ce['find'](_0x29ee67=>_0x29ee67['model']==_0xd49d9e);if(_0x25ed8e&&_0x25ed8e['view']){const _0x407742=_0x25ed8e['view'],_0x176484=(null!==(_0x107c05=_0x407742['name'])&&void 0x0!==_0x107c05?_0x107c05:_0x407742)['match'](/^h(\d+)/);if(_0x176484)return _0x176484[0x1];}return null;}}class Z extends _0x5511a1{['afterInit'](){const _0x235956=this['editor'];if(!_0x235956['plugins']['has']('HighlightEditing'))return;const _0x244671=_0x235956['plugins']['get']('TrackChangesEditing'),_0x104793=_0x235956['locale'];_0x244671['enableDefaultAttributesIntegration']('highlight'),_0x244671['registerInlineAttribute']('highlight'),_0x244671['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x104793,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x340bd7=this['editor'],_0x2aa3a1=_0x340bd7['locale'];_0x340bd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd61f=>{if('formatInline'!=_0x2fd61f['type'])return;const {data:_0x39353f}=_0x2fd61f;if(_0x39353f&&'highlight'==_0x39353f['commandName']){const _0x10d808=_0x2aa3a1['t'],_0x466dcc=_0x39353f['commandParams'][0x0]['value'];if(_0x466dcc){const _0x2f4f15=_0x340bd7['config']['get']('highlight.options')['find'](_0x71ba8=>_0x71ba8['model']==_0x466dcc),_0x526429=_0x10d808(_0x2f4f15['title'])['toLowerCase']();return{'type':'format','content':o(_0x2aa3a1,'*Set\x20highlight:*\x20%0',_0x526429),'color':{'value':_0x2f4f15['color'],'title':_0x2f4f15['title']}};}return{'type':'format','content':o(_0x2aa3a1,'*Remove\x20highlight*',o(_0x2aa3a1,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5511a1{['afterInit'](){const _0x2d6c18=this['editor'];if(!_0x2d6c18['plugins']['has']('HorizontalLineEditing'))return;_0x2d6c18['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3165ba=_0x2d6c18['plugins']['get']('TrackChangesEditing'),_0x348137=_0x2d6c18['locale'];_0x3165ba['descriptionFactory']['registerElementLabel']('horizontalLine',_0x21b25f=>o(_0x348137,'ELEMENT_HORIZONTAL_LINE',_0x21b25f)),_0x2d6c18['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x13928a,{writer:_0x3e080a,options:_0x1fb052})=>{if(!_0x1fb052['showSuggestionHighlights'])return null;const _0x4d049d=_0x3e080a['createContainerElement']('div'),_0x311164=_0x3e080a['createEmptyElement']('hr');return _0x3e080a['addClass']('ck-horizontal-line',_0x4d049d),_0x3e080a['insert'](_0x3e080a['createPositionAt'](_0x4d049d,0x0),_0x311164),_0x4d049d;},'converterPriority':'high'});}}class et extends _0x5511a1{['afterInit'](){const _0x48ef3e=this['editor'];if(!_0x48ef3e['plugins']['has']('HtmlEmbed'))return;const _0x36fc64=_0x48ef3e['plugins']['get']('TrackChangesEditing'),_0x2bd7b6=_0x48ef3e['locale'];_0x36fc64['descriptionFactory']['registerElementLabel']('rawHtml',_0x4178fd=>o(_0x2bd7b6,'ELEMENT_HTML_EMBED',_0x4178fd)),_0x36fc64['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36fc64['registerBlockAttribute']('value'),_0x36fc64['descriptionFactory']['registerDescriptionCallback'](_0x58f5c3=>{if('attribute'!=_0x58f5c3['type'])return;const {data:_0x13107e}=_0x58f5c3;if(_0x13107e&&'value'==_0x13107e['key']&&_0x58f5c3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2a3e42=o(_0x2bd7b6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2bd7b6,'*Change\x20%0\x20content*',_0x2a3e42)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1961d0=this['editor'],_0x3fd874=_0x1961d0['locale'];_0x1961d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354ec2=>{if('formatBlock'!=_0x354ec2['type'])return;const {data:_0x10ed08}=_0x354ec2;if(_0x10ed08&&'htmlEmbed'==_0x10ed08['commandName']){const _0x3242cd=o(_0x3fd874,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3fd874,'*Change\x20%0\x20content*',_0x3242cd)};}});}}class it extends _0x5511a1{['afterInit'](){const _0x52239e=this['editor'];if(!_0x52239e['plugins']['has']('ImageEditing'))return;const _0x55ae94=_0x52239e['plugins']['get']('TrackChangesEditing'),_0x3da80f=_0x52239e['plugins']['get']('ImageUtils'),_0x7edb00=_0x52239e['locale'];_0x55ae94['enableCommand']('insertImage'),_0x55ae94['descriptionFactory']['registerElementLabel']('imageBlock',_0x36bd3f=>o(_0x7edb00,'ELEMENT_IMAGE',_0x36bd3f)),_0x55ae94['descriptionFactory']['registerElementLabel']('imageInline',_0x4b1e0c=>o(_0x7edb00,'ELEMENT_INLINE_IMAGE',_0x4b1e0c)),_0x55ae94['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x7edb00,'ELEMENT_CAPTION')),_0x52239e['plugins']['has']('ImageUploadEditing')&&_0x55ae94['enableCommand']('uploadImage'),_0x52239e['plugins']['has']('ImageBlockEditing')&&_0x52239e['plugins']['has']('ImageInlineEditing')&&(_0x55ae94['enableCommand']('imageTypeInline',(_0x26de56,_0x48e355)=>{const _0x21ec83=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']);_0x52239e['model']['change'](()=>{_0x55ae94['markBlockFormat'](_0x21ec83,{'commandName':'imageTypeInline','commandParams':[_0x48e355]},[],'convertBlockImageToInline');});}),_0x55ae94['enableCommand']('imageTypeBlock',(_0x46918b,_0x2bfcd2)=>{_0x52239e['model']['change'](_0x588acb=>{let _0x3d0356=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x2e969c=_0x588acb['createRangeOn'](_0x3d0356);const _0x5b60b1=_0x583a2a['fromPosition'](_0x2e969c['start'],'toPrevious'),_0x1fd151=_0x583a2a['fromPosition'](_0x2e969c['end'],'toNext');_0x55ae94['forceDefaultExecution'](()=>_0x46918b(_0x2bfcd2)),_0x3d0356=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x2e969c=_0x588acb['createRangeOn'](_0x3d0356);const _0x218a23=_0x588acb['createRange'](_0x5b60b1,_0x1fd151);_0x5b60b1['detach'](),_0x1fd151['detach'](),_0x55ae94['markBlockFormat'](_0x3d0356,{'commandName':'imageTypeInline','commandParams':[_0x2bfcd2]},[],'convertInlineImageToBlock'),_0x218a23['start']['isBefore'](_0x2e969c['start'])&&_0x55ae94['markInsertion'](_0x588acb['createRange'](_0x218a23['start'],_0x2e969c['start']),'convertInlineImageToBlock'),_0x2e969c['end']['isBefore'](_0x218a23['end'])&&_0x55ae94['markInsertion'](_0x588acb['createRange'](_0x2e969c['end'],_0x218a23['end']),'convertInlineImageToBlock');});}),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x55ae94['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x37adcb])=>{const _0x35dc8c=_0x55ae94['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xa6049e=_0x37adcb['start'],_0x1d89ce=_0x37adcb['end'];const _0x5ce5a8=_0x52239e['model']['schema']['getNearestSelectionRange'](_0xa6049e,'backward'),_0x151475=_0x52239e['model']['schema']['getNearestSelectionRange'](_0x1d89ce,'forward');_0x5ce5a8['isCollapsed']&&(_0xa6049e=_0x5ce5a8['start']),_0x151475['isCollapsed']&&(_0x1d89ce=_0x151475['end']),_0x35dc8c([_0x52239e['model']['createRange'](_0xa6049e,_0x1d89ce)]);}),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x51f9bc),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x51f9bc)),_0x52239e['plugins']['has']('ImageCaptionEditing')&&(_0x55ae94['enableCommand']('toggleImageCaption',(_0x12190d,_0x1e8741)=>{const _0x4a8d30=_0x52239e['plugins']['get']('ImageCaptionUtils');let _0x5f58db=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x87b824=_0x4a8d30['getCaptionFromImageModelElement'](_0x5f58db);_0x52239e['model']['change'](()=>{if(_0x87b824)return void _0x55ae94['markDeletion'](_0x52239e['model']['createRangeOn'](_0x87b824));const _0x14c3a1=_0x3da80f['isBlockImage'](_0x5f58db);_0x12190d(_0x1e8741),_0x5f58db=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x87b824=_0x4a8d30['getCaptionFromImageModelElement'](_0x5f58db),_0x55ae94['markInsertion'](_0x52239e['model']['createRangeOn'](_0x87b824),_0x14c3a1?null:'imageCaption');});}),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x51f9bc));const _0x3b12f0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ca580(_0x1de827,_0x51866d){const _0x44552e=_0x3b12f0['findIndex'](({type:_0x34c79b,subType:_0x376e18})=>_0x1de827['type']==_0x34c79b&&_0x1de827['subType']==_0x376e18),_0x115c82=_0x3b12f0['findIndex'](({type:_0x87127a,subType:_0x406bd4})=>_0x51866d['type']==_0x87127a&&_0x51866d['subType']==_0x406bd4);if(_0x44552e<0x0||_0x115c82<0x0)return!0x1;const _0x8e5bf0=_0x1de827['getFirstRange'](),_0x13061d=_0x51866d['getFirstRange']();if((0x0==_0x44552e||0x1==_0x44552e)&&0x2==_0x115c82&&_0x8e5bf0['isIntersecting'](_0x13061d))return!0x0;if(0x2==_0x44552e&&0x3==_0x115c82){const _0x389c0a=_0x55ae94['_findSuggestions'](_0x8e5bf0,'insertion')['filter'](({suggestion:_0x33cff6,meta:_0x29236b})=>_0x29236b['isOwn']&&'convertInlineImageToBlock'==_0x33cff6['subType']);if(_0x389c0a['length']>0x1&&_0x13061d['end']['isEqual'](_0x8e5bf0['start']))return!0x0;if(0x1==_0x389c0a['length']&&(_0x8e5bf0['start']['isEqual'](_0x13061d['end'])||_0x8e5bf0['end']['isEqual'](_0x13061d['start'])))return!0x0;}if(0x3==_0x44552e&&0x3==_0x115c82&&_0x8e5bf0['start']['isBefore'](_0x13061d['start'])){const _0x1bda57=_0x8e5bf0['end']['nodeAfter'],_0x517ff4=_0x13061d['start']['nodeBefore'];return _0x3da80f['isBlockImage'](_0x1bda57)&&_0x1bda57===_0x517ff4;}return!0x1;}function _0x51f9bc(_0x3af3f6,_0x37fc7d){return _0x5ca580(_0x3af3f6,_0x37fc7d)?[_0x3af3f6,_0x37fc7d]:_0x5ca580(_0x37fc7d,_0x3af3f6)?[_0x37fc7d,_0x3af3f6]:null;}_0x52239e['plugins']['has']('ImageResize')&&(_0x55ae94['enableDefaultAttributesIntegration']('resizeImage'),_0x55ae94['registerBlockAttribute']('resizedWidth'),_0x55ae94['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x7edb00,'FORMAT_IMAGE_SIZE'))),_0x52239e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x55ae94['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x55ae94['registerBlockAttribute']('alt')),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0x1bb726=>{if(!!_0x3b12f0['find'](({type:_0x41843a,subType:_0x1250a9})=>_0x1bb726['type']==_0x41843a&&_0x1bb726['subType']==_0x1250a9))return _0x1bb726['previous']?{}:void 0x0;}),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0x5d0bfe=>{if('insertion'==_0x5d0bfe['type']||'deletion'==_0x5d0bfe['type']){const _0x53f63c=_0x5d0bfe['getContainedElement']();if(_0x53f63c&&_0x53f63c['is']('element','caption'))return{'type':'insertion'==_0x5d0bfe['type']?'addObject':'removeObject','element':_0x53f63c,'quantity':0x1};}}),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0x37bdd0=>'formatBlock'==_0x37bdd0['type']&&'convertInlineImageToBlock'==_0x37bdd0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x37bdd0['type']&&'convertBlockImageToInline'==_0x37bdd0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0xb20704=>{if('attribute'!=_0xb20704['type'])return;const {data:_0x767885}=_0xb20704;if(!_0x767885||'alt'!=_0x767885['key'])return;const _0x55d11f=_0x767885['newValue'];return _0x55d11f?{'type':'format','content':o(_0x7edb00,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55d11f+'\x22')}:{'type':'format','content':o(_0x7edb00,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcaa416=this['editor'],_0x562ccb=_0xcaa416['locale'];_0xcaa416['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x345c9d=>{if('formatBlock'!=_0x345c9d['type']&&'formatInline'!=_0x345c9d['type'])return;const {data:_0x1b6173}=_0x345c9d;if(_0x1b6173){if('imageTextAlternative'==_0x1b6173['commandName']){const _0x2324c8=_0x1b6173['commandParams'][0x0]['newValue'];return _0x2324c8?{'type':'format','content':o(_0x562ccb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2324c8+'\x22')}:{'type':'format','content':o(_0x562ccb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1b6173['commandName']){const _0xe07230=_0x1b6173['commandParams'][0x0]['width'];return _0xe07230?{'type':'format','content':o(_0x562ccb,'*Set\x20image\x20width:*\x20%0',_0xe07230)}:{'type':'format','content':o(_0x562ccb,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2ba99c=this['editor']['locale'],_0x461a91=this['editor']['plugins']['get']('TrackChangesEditing');_0x461a91['enableDefaultAttributesIntegration']('replaceImageSource'),_0x461a91['registerBlockAttribute']('src'),_0x461a91['descriptionFactory']['registerDescriptionCallback'](_0x1d4366=>{if('attribute'!=_0x1d4366['type'])return;const {data:_0x48b4cf}=_0x1d4366;return _0x48b4cf&&'src'==_0x48b4cf['key']?_0x48b4cf['newValue']&&_0x48b4cf['oldValue']?{'type':'format','content':o(_0x2ba99c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x210169=this['editor']['plugins']['get']('TrackChangesEditing');_0x210169['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x210169['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x210169['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x210169['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d1381=this['editor'],_0x149b5e=_0x4d1381['locale'];_0x4d1381['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc9b3bc=>{if('formatBlock'!=_0xc9b3bc['type']&&'formatInline'!=_0xc9b3bc['type'])return;const {data:_0x521c30}=_0xc9b3bc;if(!_0x521c30||'replaceImageSource'!=_0x521c30['commandName'])return;return{'type':'format','content':o(_0x149b5e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5511a1{['afterInit'](){const _0x2acd7a=this['editor'];if(!_0x2acd7a['plugins']['has']('ImageStyleEditing'))return;const _0x327d32=_0x2acd7a['plugins']['get']('TrackChangesEditing'),_0x6e8eb6=_0x2acd7a['plugins']['get']('ImageUtils'),_0x3d7013={};_0x327d32['enableCommand']('imageStyle',(_0x14f7c6,_0x51b880)=>{const _0x1b8fb4=_0x2acd7a['plugins']['get']('Users')['me'],_0x547242=_0x2acd7a['commands']['get']('imageStyle');let _0x4f4d7e=_0x6e8eb6['getClosestSelectedImageElement'](_0x2acd7a['model']['document']['selection']),_0xfd1178=_0x2acd7a['model']['createRangeOn'](_0x4f4d7e),_0x5aa104=_0x547242['value'];if(_0x5aa104==_0x51b880['value'])return;const _0xecc462={'commandName':'imageStyle','commandParams':[_0x51b880],'formatGroupId':_0x4c61b3()};_0x2acd7a['model']['change'](()=>{if(_0x327d32['getSuggestions']()['filter'](_0x26c927=>_0x26c927['isInContent']&&_0x1b8fb4==_0x26c927['author']&&('formatBlock'==_0x26c927['type']||'formatInline'==_0x26c927['type'])&&('imageStylePreApply'==_0x26c927['subType']||'imageStylePostApply'==_0x26c927['subType'])&&_0x26c927['getFirstRange']()['isEqual'](_0xfd1178))['forEach'](_0x4f1a99=>_0x327d32['discardSuggestion'](_0x4f1a99['head'])),_0x4f4d7e=_0x6e8eb6['getClosestSelectedImageElement'](_0x2acd7a['model']['document']['selection']),_0xfd1178=_0x2acd7a['model']['createRangeOn'](_0x4f4d7e),_0x547242['refresh'](),_0x2acd7a['commands']['get']('imageTypeInline')['refresh'](),_0x2acd7a['commands']['get']('imageTypeBlock')['refresh'](),_0x5aa104=_0x547242['value'],_0x5aa104!=_0x51b880['value'])return _0x6e8eb6['isInlineImage'](_0x4f4d7e)&&_0x547242['shouldConvertImageType'](_0x51b880['value'],_0x4f4d7e)?(_0x14f7c6({..._0x51b880,'setImageSizes':!0x1}),_0x4f4d7e=_0x6e8eb6['getClosestSelectedImageElement'](_0x2acd7a['model']['document']['selection']),void _0x327d32['markBlockFormat'](_0x4f4d7e,{..._0xecc462,'commandReversedParams':[{'value':_0x5aa104||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x6e8eb6['isBlockImage'](_0x4f4d7e)?_0x327d32['markBlockFormat'](_0x4f4d7e,_0xecc462,[],'imageStylePostApply'):_0x327d32['markInlineFormat'](_0xfd1178,_0xecc462,'imageStylePostApply'));});});for(const _0x44e1b0 of _0x2acd7a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3d7013[_0x44e1b0['name']]=_0x44e1b0['title']['toLowerCase']();_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2500af])=>{_0x6e8eb6['setImageNaturalSizeAttributes'](_0x2500af['getContainedElement']());}),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5e872c,_0x39bcc7)=>{_0x327d32['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5e872c,{'commandName':_0x39bcc7['commandName'],'commandParams':_0x39bcc7['commandReversedParams']});}),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x448d11,_0x1acad3){if(_0x49d171(_0x448d11,_0x1acad3))return[_0x448d11,_0x1acad3];if(_0x49d171(_0x1acad3,_0x448d11))return[_0x1acad3,_0x448d11];return null;});const _0x29923f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49d171(_0x4ff797,_0x1a09b1){const _0x30d7b0=_0x29923f['findIndex'](({type:_0x5f24f5,subType:_0x23a42b})=>_0x4ff797['type']==_0x5f24f5&&_0x4ff797['subType']==_0x23a42b),_0x4b2c75=_0x29923f['findIndex'](({type:_0x4e9260,subType:_0xcfa0d8})=>_0x1a09b1['type']==_0x4e9260&&_0x1a09b1['subType']==_0xcfa0d8);if(_0x30d7b0<0x0||_0x4b2c75<0x0)return!0x1;const _0x5ba18e=_0x4ff797['getFirstRange'](),_0x1e9b5e=_0x1a09b1['getFirstRange']();if((0x0==_0x30d7b0||0x1==_0x30d7b0)&&0x2==_0x4b2c75&&_0x5ba18e['isIntersecting'](_0x1e9b5e))return!0x0;if(0x2==_0x30d7b0&&0x3==_0x4b2c75){const _0x29f9d6=_0x327d32['_findSuggestions'](_0x5ba18e,'insertion')['filter'](({suggestion:_0x419156,meta:_0x242739})=>_0x242739['isOwn']&&'convertInlineImageToBlock'==_0x419156['subType']);if(_0x29f9d6['length']>0x1&&_0x1e9b5e['end']['isEqual'](_0x5ba18e['start']))return!0x0;if(0x1==_0x29f9d6['length']&&(_0x5ba18e['start']['isEqual'](_0x1e9b5e['end'])||_0x5ba18e['end']['isEqual'](_0x1e9b5e['start'])))return!0x0;}if(0x3==_0x30d7b0&&0x3==_0x4b2c75&&_0x5ba18e['start']['isBefore'](_0x1e9b5e['start'])){const _0x1bf495=_0x5ba18e['end']['nodeAfter'],_0x2ba605=_0x1e9b5e['start']['nodeBefore'];return _0x6e8eb6['isBlockImage'](_0x1bf495)&&_0x1bf495===_0x2ba605;}return!0x1;}_0x2acd7a['model']['document']['registerPostFixer'](()=>{let _0x2e9a47=!0x1;const _0x5653ae=Array['from'](_0x2acd7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42e985,data:_0x5b75b7}of _0x5653ae){const {group:_0x2116be,type:_0xc55033,subType:_0x44ab84,id:_0x11bb31}=_0x327d32['_splitMarkerName'](_0x42e985);if('suggestion'==_0x2116be&&_0x327d32['hasSuggestion'](_0x11bb31)){if('formatBlock'==_0xc55033&&('imageStylePreApply'==_0x44ab84||'imageStylePostApply'==_0x44ab84)){const _0x11670e=_0x327d32['getSuggestion'](_0x11bb31);if(_0x5b75b7['newRange']){const _0xc92ea9=_0x11670e['getFirstRange']()['getContainedElement']();if(_0x6e8eb6['isBlockImage'](_0xc92ea9))continue;_0x327d32['discardSuggestion'](_0x11670e),_0x2e9a47=!0x0;}}if('insertion'==_0xc55033&&'imageCaption'==_0x44ab84&&!_0x5b75b7['newRange']){const _0x392e54=_0x327d32['getSuggestion'](_0x11bb31);_0x392e54['next']&&_0x392e54['next']['isInContent']&&(_0x327d32['discardSuggestion'](_0x392e54['next']),_0x2e9a47=!0x0);}}}return _0x2e9a47;}),this['_registerLegacyDescription'](_0x3d7013);}['_registerLegacyDescription'](_0x2fc5d2){const _0x538a1b=this['editor'],_0xc227e0=_0x538a1b['locale'];_0x538a1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x403d33=>{if('formatBlock'!=_0x403d33['type']&&'formatInline'!=_0x403d33['type'])return;const {data:_0x54a6f6}=_0x403d33;if(!_0x54a6f6||'imageStyle'!=_0x54a6f6['commandName'])return;const _0x2fc860=_0x54a6f6['commandParams'][0x0]['value'];return _0xfdcd7c('side'===_0x2fc860?o(_0xc227e0,'FORMAT_SIDE_IMAGE'):_0x2fc5d2[_0x2fc860]||_0x2fc860);function _0xfdcd7c(_0x52a241){return{'type':'format','content':o(_0xc227e0,'*Format:*\x20%0',_0x52a241)};}});}}class ot extends _0x5511a1{['afterInit'](){const _0x1279b4=this['editor'],_0x35d88c=_0x1279b4['commands']['get']('importWord'),_0xe009b7=_0x1279b4['commands']['get']('trackChanges');_0x35d88c&&(_0x35d88c['on']('execute',(_0x119b96,[,_0x436c65])=>{this['_trackChangesValueDuringImport']=_0xe009b7['value'],_0x436c65['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x35d88c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x35d88c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xe009b7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1279b4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3ecbab,_0x1ec81f){const {suggestions:_0x118274}=_0x1ec81f,_0x1d9a21=this['editor']['commands']['get']('trackChanges'),_0x200753=_0x1d9a21['value'];this['_trackChangesValueDuringImport']!==_0x200753&&(_0x1d9a21['execute'](),this['_trackChangesExecuted']=!0x0),_0x118274&&_0x118274['forEach'](({id:_0x3d6a3c,type:_0x180ff6,author:_0x536f03,created_at:_0x391884})=>{const _0x29dd49={'id':_0x3d6a3c,'type':_0x180ff6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x536f03,'createdAt':_0x391884?new Date(_0x391884):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x29dd49);});}constructor(_0x5bee70){super(_0x5bee70),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x5511a1{['afterInit'](){const _0x57ce29=this['editor'],_0x44587f=_0x57ce29['plugins']['get']('TrackChangesEditing');if(_0x57ce29['plugins']['has']('IndentEditing')&&(_0x44587f['enableCommand']('indent'),_0x44587f['enableCommand']('outdent')),_0x57ce29['plugins']['has']('IndentBlock')){for(const _0x1ccfdf of['indentBlock','outdentBlock'])_0x44587f['enableDefaultAttributesIntegration'](_0x1ccfdf);}const _0x1148e1=_0x57ce29['locale'];_0x44587f['registerBlockAttribute']('blockIndent'),_0x44587f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1148e1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d754=this['editor'],_0x295222=_0x52d754['locale'],_0x24a2f6=_0x52d754['plugins']['get']('TrackChangesEditing');_0x24a2f6['descriptionFactory']['registerDescriptionCallback'](_0x2c3f45=>{if('formatBlock'!=_0x2c3f45['type'])return;const {data:_0x101b98}=_0x2c3f45;if(!_0x101b98)return;if('indentBlock'!=_0x101b98['commandName']&&'outdentBlock'!=_0x101b98['commandName'])return;const _0x38a0f1=_0x2c3f45['getItems']()[0x0],_0x9d1e0d=_0x24a2f6['descriptionFactory']['getItemLabel'](_0x38a0f1);return'indentBlock'==_0x101b98['commandName']?{'type':'format','content':o(_0x295222,'*Indent:*\x20%0',_0x9d1e0d)}:'outdentBlock'==_0x101b98['commandName']?{'type':'format','content':o(_0x295222,'*Outdent:*\x20%0',_0x9d1e0d)}:void 0x0;});}}class at extends _0x5511a1{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5511a1{['afterInit'](){const _0x2224d6=this['editor'];if(!_0x2224d6['plugins']['has']('LinkEditing'))return;const _0x3d3cd4=_0x2224d6['plugins']['get']('TrackChangesEditing'),_0x35cdce=_0x2224d6['commands']['get']('link');_0x3d3cd4['enableDefaultAttributesIntegration']('link'),_0x3d3cd4['enableDefaultAttributesIntegration']('unlink'),_0x3d3cd4['registerInlineAttribute']('linkHref');for(const _0x67bd1c of _0x35cdce['manualDecorators'])_0x3d3cd4['registerInlineAttribute'](_0x67bd1c['id']),_0x3d3cd4['descriptionFactory']['registerAttributeLabel'](_0x67bd1c['id'],'link\x20('+_0x67bd1c['label']['toLowerCase']()+')');_0x3d3cd4['descriptionFactory']['registerDescriptionCallback'](_0x15dff9=>{if('attribute'!=_0x15dff9['type'])return;const {data:_0x4fba36}=_0x15dff9;if(!_0x4fba36||'linkHref'!=_0x4fba36['key'])return;const _0x4775b5=_0x4fba36['newValue'],_0x4e1414=_0x2224d6['locale'];return{'type':'format','content':null==_0x4775b5?o(_0x4e1414,'*Remove\x20link*'):o(_0x4e1414,'*Set\x20link:*\x20%0','\x22'+_0x4775b5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c28de=this['editor'],_0x19fa15=_0x3c28de['locale'];_0x3c28de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42c871=>{if('formatInline'!=_0x42c871['type'])return;const {data:_0x5046b1}=_0x42c871;if(_0x5046b1){if('link'==_0x5046b1['commandName']){const _0x4e0359=_0x5046b1['commandParams'][0x0];return{'type':'format','content':o(_0x19fa15,'*Set\x20link:*\x20%0','\x22'+_0x4e0359+'\x22')};}return'unlink'==_0x5046b1['commandName']?{'type':'format','content':o(_0x19fa15,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5511a1{['afterInit'](){const _0x1dce58=this['editor'],_0x1671e6=_0x1dce58['locale'];if(!_0x1dce58['plugins']['has']('LegacyListEditing'))return;const _0x43ec4=_0x1dce58['plugins']['get']('TrackChangesEditing'),_0x1abc8b=_0x1dce58['plugins']['has']('LegacyTodoListEditing');function _0x65483d(_0x209299){return()=>{const _0x980e2c=_0x1dce58['model']['document']['selection'],_0x460fcb=_0x1dce58['commands']['get'](_0x209299);if(_0x460fcb['value'])return void _0x1dce58['execute']('paragraph',{});const _0x3dcfdc=_0x209299['slice'](0x0,-0x4),_0x10b5de=function(_0x4ac60d,_0x10d80c,_0x2be87c){let _0x139640=Array['from'](_0x4ac60d)['filter'](_0xa347a=>function(_0x3206bd,_0x438619){return _0x438619['checkChild'](_0x3206bd['parent'],'listItem')&&!_0x438619['isObject'](_0x3206bd);}(_0xa347a,_0x2be87c));_0x139640=_0x139640['filter'](_0x3381c7=>!_0x3381c7['is']('element','listItem')||_0x3381c7['getAttribute']('listType')!=_0x10d80c);const _0x433966=new Set();for(const _0x5b77bc of _0x139640)_0x5b77bc['is']('element','listItem')?_0x433966['add'](me(_0x5b77bc)):_0x433966['add'](_0x5b77bc);return Array['from'](_0x433966);}(_0x980e2c['getSelectedBlocks'](),_0x3dcfdc,_0x1dce58['model']['schema']);_0x1dce58['model']['change'](()=>{for(const _0x5a136e of _0x10b5de)_0x43ec4['markBlockFormat'](_0x5a136e,{'commandName':_0x209299,'commandParams':[{'forceValue':!_0x460fcb['value']}],'formatGroupId':'blockName'},fe(_0x5a136e));});};}function _0x227ffb(_0x6d1215){return()=>{const _0x5ca401=function(_0x148fb5){let _0x503503=Array['from'](_0x148fb5);const _0x6985c7=_0x503503['findIndex'](_0x4b097e=>'listItem'!=_0x4b097e['name']);return _0x6985c7>-0x1&&(_0x503503=_0x503503['slice'](0x0,_0x6985c7)),_0x503503;}(_0x1dce58['model']['document']['selection']['getSelectedBlocks']()),_0x4bd84d=_0x1dce58['model']['createRange'](_0x1dce58['model']['createPositionAt'](_0x5ca401[0x0],'before'),_0x1dce58['model']['createPositionAt'](_0x5ca401[_0x5ca401['length']-0x1],'end'));_0x1dce58['model']['change'](()=>{_0x43ec4['markBlockFormat'](_0x4bd84d,{'commandName':_0x6d1215,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2aa335){const _0x2d8a97=new Set();for(const _0xf20893 of _0x2aa335){let _0x4c4c32=_0xf20893['nextSibling'];for(;_0x4c4c32&&_0x4c4c32['getAttribute']('listIndent')>_0xf20893['getAttribute']('listIndent');)_0x2d8a97['add'](_0x4c4c32),_0x4c4c32=_0x4c4c32['nextSibling'];}return Array['from'](_0x2d8a97);}(_0x5ca401));});};}_0x43ec4['enableCommand']('numberedList',_0x65483d('numberedList')),_0x43ec4['enableCommand']('bulletedList',_0x65483d('bulletedList')),_0x1abc8b&&_0x43ec4['enableCommand']('todoList',_0x65483d('todoList')),_0x43ec4['enableCommand']('indentList',_0x227ffb('indentList')),_0x43ec4['enableCommand']('outdentList',_0x227ffb('outdentList')),_0x1abc8b&&_0x43ec4['enableCommand']('checkTodoList',()=>{const _0x21b4f5=_0x1dce58['commands']['get']('checkTodoList'),_0x4b6535=Array['from'](_0x21b4f5['_selectedElements']);_0x4b6535['filter'](_0x132293=>_0x132293['getAttribute']('todoListChecked')!=_0x21b4f5['value']),_0x1dce58['model']['change'](()=>{for(const _0x3acba2 of _0x4b6535)_0x43ec4['markBlockFormat'](_0x3acba2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x21b4f5['value']}]});});}),_0x43ec4['descriptionFactory']['registerElementLabel']('listItem',_0x23c11d=>o(_0x1671e6,'ELEMENT_LIST_ITEM',_0x23c11d)),_0x43ec4['descriptionFactory']['registerDescriptionCallback'](_0x3bfffa=>{if('formatBlock'!=_0x3bfffa['type']&&'formatInline'!=_0x3bfffa['type'])return;const {data:_0x117ade}=_0x3bfffa;if(_0x117ade){if('numberedList'==_0x117ade['commandName']||'bulletedList'==_0x117ade['commandName']||'todoList'==_0x117ade['commandName'])switch(_0x117ade['commandName']['replace']('List','')){case'bulleted':return _0x1c42df(o(_0x1671e6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c42df(o(_0x1671e6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c42df(o(_0x1671e6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x117ade['commandName'])return{'type':'format','content':o(_0x1671e6,'*Indent:*\x20%0',o(_0x1671e6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x117ade['commandName'])return{'type':'format','content':o(_0x1671e6,'*Outdent:*\x20%0',o(_0x1671e6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x117ade['commandName'])return _0x117ade['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1671e6,'*Check\x20item*')}:{'type':'format','content':o(_0x1671e6,'*Uncheck\x20item*')};}function _0x1c42df(_0xfe3321){return{'type':'format','content':o(_0x1671e6,'*Change\x20to:*\x20%0',_0xfe3321)};}});}}function me(_0x263fdb){const _0x1e7343=_0x263fdb['getAttribute']('listIndent');if(0x0==_0x1e7343)return _0x263fdb;let _0xd311a8=_0x263fdb;for(;_0x263fdb['previousSibling']&&_0x263fdb['previousSibling']['is']('element','listItem');){const _0x46dfc6=_0x263fdb['previousSibling']['getAttribute']('listIndent');if(_0x46dfc6==_0x1e7343)_0xd311a8=_0x263fdb['previousSibling'];else{if(_0x46dfc6<_0x1e7343)break;}_0x263fdb=_0x263fdb['previousSibling'];}return _0xd311a8;}function fe(_0x4c9c7a){const _0xae9fb1=[];if(_0x4c9c7a['is']('element','listItem')&&_0x4c9c7a['getAttribute']('listIndent')>0x0){let _0xb47aaf=_0x4c9c7a['nextSibling'];for(;_0xb47aaf&&'listItem'==_0xb47aaf['name']&&_0xb47aaf['getAttribute']('listIndent')==_0x4c9c7a['getAttribute']('listIndent');)_0xae9fb1['push'](_0xb47aaf),_0xb47aaf=_0xb47aaf['nextSibling'];}return _0xae9fb1;}class K extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2668f2=this['editor']['config']['get']('list.properties'),_0xbe715=this['editor']['plugins']['get']('TrackChangesEditing');_0x2668f2['styles']&&_0xbe715['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2668f2['reversed']&&_0xbe715['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2668f2['startIndex']&&_0xbe715['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xbe715['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x298138,_0x5ccdc5={}){const _0x2a1ac3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5eadaf=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2a1ac3['markMultiRangeBlockFormat'](_0x5eadaf,{'commandName':'listStyle','commandParams':[{'type':_0x5ccdc5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x547ee7,_0x1a3d0a={}){const _0x25c6be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13c4c0=this['_getSuggestionBlocks'](_0x1fafee=>_0x1fafee['is']('element','listItem')&&'numbered'===_0x1fafee['getAttribute']('listType'));if(_0x13c4c0['length']<0x1)return;const _0x155685=_0x13c4c0['map'](_0x4dd7f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4dd7f4,'before'),this['editor']['model']['createPositionAt'](_0x4dd7f4,0x0)));this['editor']['model']['change'](()=>{_0x25c6be['markMultiRangeBlockFormat'](_0x155685,{'commandName':'listReversed','commandParams':[{'reversed':_0x1a3d0a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x29890f,_0x1cf98c={}){const _0xfbcc74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3936d2=this['_getSuggestionBlocks'](_0x4cc55a=>_0x4cc55a['is']('element','listItem')&&'numbered'===_0x4cc55a['getAttribute']('listType'));if(_0x3936d2['length']<0x1)return;const _0x300c0e=_0x3936d2['map'](_0x1e5b8d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e5b8d,'before'),this['editor']['model']['createPositionAt'](_0x1e5b8d,0x0)));this['editor']['model']['change'](()=>{_0xfbcc74['markMultiRangeBlockFormat'](_0x300c0e,{'commandName':'listStart','commandParams':[{'startIndex':_0x1cf98c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3911e9){if('formatBlock'!=_0x3911e9['type']&&'formatInline'!=_0x3911e9['type'])return;const _0x4ee327=this['editor']['locale'],{data:_0x57f716}=_0x3911e9;if(!_0x57f716)return;let _0x18068a,_0x14e427;switch(_0x57f716['commandName']){case'listStyle':_0x18068a='*Change\x20to:*\x20%0',_0x14e427={'type':'format','content':o(_0x4ee327,_0x18068a,o(_0x4ee327,this['_getTranslationKeyForListStyle'](_0x57f716['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18068a=_0x57f716['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14e427={'type':'format','content':o(_0x4ee327,_0x18068a)};break;case'listStart':_0x18068a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14e427={'type':'format','content':o(_0x4ee327,_0x18068a,_0x57f716['commandParams'][0x0]['startIndex'])};}return _0x14e427;}['_getSuggestionBlocksForListStyle'](){var _0x54c1f7,_0x256584,_0x17568a,_0x54bb3d;const _0x42d8ac=this['editor']['plugins']['get']('LegacyListUtils');let _0x4103b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x54c1f7=_0x4103b4[0x0])||void 0x0===_0x54c1f7?void 0x0:_0x54c1f7['is']('element','listItem'))&&_0x4103b4['unshift'](..._0x42d8ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x256584=_0x4103b4[_0x4103b4['length']-0x1])||void 0x0===_0x256584?void 0x0:_0x256584['is']('element','listItem'))&&_0x4103b4['push'](..._0x42d8ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4103b4=[...new Set(_0x4103b4)],(null===(_0x54bb3d=null===(_0x17568a=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x17568a?void 0x0:_0x17568a['parent'])||void 0x0===_0x54bb3d?void 0x0:_0x54bb3d['is']('element','listItem'))&&(_0x4103b4=_0x4103b4['filter'](_0x4c6466=>_0x4c6466['is']('element','listItem'))),_0x4103b4;}['_getSuggestionBlocks'](_0x875eff){const _0x1569a5=this['editor']['plugins']['get']('LegacyListUtils');let _0x21dd89=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x875eff)['map'](_0x3be3d4=>{const _0x506a3d=this['editor']['model']['createPositionAt'](_0x3be3d4,0x0);return[..._0x1569a5['getSiblingNodes'](_0x506a3d,'backward'),..._0x1569a5['getSiblingNodes'](_0x506a3d,'forward')];})['flat']();return _0x21dd89=[...new Set(_0x21dd89)],_0x21dd89;}['_getTranslationKeyForListStyle'](_0x4576e1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4576e1)||'default')['toUpperCase']()+'_LIST_'+_0x4576e1['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5511a1{['afterInit'](){const _0x3c85b4=this['editor'];if(!_0x3c85b4['plugins']['has']('MediaEmbedEditing'))return;const _0x3f32d8=_0x3c85b4['plugins']['get']('TrackChangesEditing'),_0x5541c6=_0x3c85b4['locale'];_0x3f32d8['enableCommand']('mediaEmbed'),_0x3f32d8['descriptionFactory']['registerElementLabel']('media',_0x27a474=>o(_0x5541c6,'ELEMENT_MEDIA',_0x27a474)),_0x3c85b4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4118bf,{writer:_0x547dea,options:_0x56f935})=>{if(_0x56f935['showSuggestionHighlights'])return _0x547dea['createEmptyElement']('div');},'converterPriority':'high'}),_0x3c85b4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x26a8fe,_0x448fd8,_0x4a2bb5)=>{_0x4a2bb5['options']['showSuggestionHighlights']&&_0x26a8fe['stop']();},{'priority':'high'});}}class gt extends _0x5511a1{['afterInit'](){const _0x374e66=this['editor'];_0x374e66['plugins']['has']('MentionEditing')&&_0x374e66['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5511a1{['afterInit'](){const _0x1fbe80=this['editor'],_0x592b1e=_0x1fbe80['plugins']['get']('TrackChangesEditing');_0x1fbe80['plugins']['has']('MultiLevelList')&&(_0x592b1e['enableDefaultAttributesIntegration']('multiLevelList'),_0x592b1e['registerBlockAttribute']('listMarkerStyle'),_0x592b1e['descriptionFactory']['registerDescriptionCallback'](_0x2e1af3=>this['handleDescriptions'](_0x2e1af3)));}['handleDescriptions'](_0x247d9a){const _0x3f5c84=this['editor']['locale'],{data:_0x47b20e}=_0x247d9a,_0x2289e4={'type':'format','content':''};if(_0x47b20e&&'listMarkerStyle'==_0x47b20e['key']){if(!_0x47b20e['oldValue'])return{'type':'format','content':o(_0x3f5c84,'*Set\x20format:*\x20%0',o(_0x3f5c84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47b20e['newValue']+')'};if(!_0x47b20e['newValue']){let _0x25950e=_0x247d9a['head'];for(;_0x25950e;){if(_0x25950e['data']&&'listType'==_0x25950e['data']['key']&&_0x25950e['data']['newValue'])return _0x2289e4;_0x25950e=_0x25950e['next'];}return{'type':'format','content':o(_0x3f5c84,'*Remove\x20format:*\x20%0',o(_0x3f5c84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47b20e['oldValue']+')'};}}}}class mt extends _0x5511a1{['afterInit'](){const _0x1f3118=this['editor'];if(!_0x1f3118['plugins']['has']('PageBreakEditing'))return;_0x1f3118['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2dc41c=_0x1f3118['plugins']['get']('TrackChangesEditing'),_0x1ee592=_0x1f3118['locale'];_0x2dc41c['descriptionFactory']['registerElementLabel']('pageBreak',_0x5670b4=>o(_0x1ee592,'ELEMENT_PAGE_BREAK',_0x5670b4));}}class dt extends _0x5511a1{['afterInit'](){const _0x287831=this['editor'];if(!_0x287831['plugins']['has']('Paragraph'))return;const _0x3c6516=_0x287831['locale'],_0x4b7044=_0x287831['plugins']['get']('TrackChangesEditing');_0x4b7044['descriptionFactory']['registerElementLabel']('paragraph',_0x39f8fa=>o(_0x3c6516,'ELEMENT_PARAGRAPH',_0x39f8fa)),_0x4b7044['enableDefaultAttributesIntegration']('paragraph'),_0x4b7044['enableCommand']('insertParagraph'),_0x287831['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x287831),{'priority':'highest'}),_0x287831['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43a3c1,_0x1f2c4c,_0xb721b0)=>{_0xb721b0['options']['showSuggestionHighlights']&&nr(_0x287831,{'showActiveMarker':!0x1})(_0x43a3c1,_0x1f2c4c,_0xb721b0);},{'priority':'highest'});const _0x47a9db=_0x4b7044['descriptionFactory'];_0x47a9db['registerDescriptionCallback'](_0x4016e3=>{if('insertion'!==_0x4016e3['type'])return;const {start:_0x16970b,end:_0x2f91b5}=_0x4016e3['getFirstRange']();if(!_0x16970b['isTouching'](_0x2f91b5)||!_0x16970b['nodeAfter'])return;const _0x1c7573=_0x287831['model']['schema'],_0x53e383=_0x16970b['nodeAfter'];return _0x1c7573['isBlock'](_0x53e383)&&!_0x1c7573['isLimit'](_0x53e383)&&_0x1c7573['checkChild'](_0x53e383,'$text')?{'type':'insertion','content':o(_0x3c6516,'*Insert:*\x20%0',_0x47a9db['getItemLabel'](_0x53e383,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x302132=this['editor'],_0x45f385=_0x302132['locale'];_0x302132['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32c92c=>{if('formatBlock'!=_0x32c92c['type'])return;const {data:_0x28c9d8}=_0x32c92c;return _0x28c9d8&&'paragraph'==_0x28c9d8['commandName']?{'type':'format','content':o(_0x45f385,'*Change\x20to:*\x20%0',o(_0x45f385,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3c50d9,{showActiveMarker:_0x5cf783=!0x0}={}){return(_0x3d72d4,_0x174231,_0x4f57bf)=>{const _0x51b8f4=_0x3c50d9['plugins']['get']('TrackChangesEditing'),_0xc43e2a=_0x174231['markerRange']['start'],_0x413912=_0x174231['markerRange']['end'],_0x5744d1=_0x3c50d9['model']['schema'];if(!_0xc43e2a['isTouching'](_0x413912)||!_0xc43e2a['nodeAfter'])return;const _0x5877ec=_0xc43e2a['nodeAfter'];if(_0x5744d1['isBlock'](_0x5877ec)&&!_0x5744d1['isLimit'](_0x5877ec)&&_0x5744d1['checkChild'](_0x5877ec,'$text')){if(!_0x4f57bf['consumable']['consume'](_0x174231['markerRange'],_0x3d72d4['name']))return;const _0x1a10a7=_0x4f57bf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x18fa44=_0x4f57bf['mapper']['toViewPosition'](_0x413912);_0x5cf783&&_0x51b8f4['activeMarkers']['includes'](_0x174231['markerName'])&&_0x4f57bf['writer']['addClass']('ck-suggestion-marker--active',_0x1a10a7),_0x4f57bf['writer']['insert'](_0x18fa44,_0x1a10a7),_0x4f57bf['mapper']['bindElementToMarker'](_0x1a10a7,_0x174231['markerName']);}};}class pt extends _0x5511a1{['afterInit'](){const _0x398309=this['editor'];if(!_0x398309['plugins']['has']('RemoveFormatEditing'))return;_0x398309['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1229b0=this['editor'];_0x1229b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1af86a=>{if('formatBlock'!=_0x1af86a['type']&&'formatInline'!=_0x1af86a['type'])return;const {data:_0x24d1c0}=_0x1af86a;return _0x24d1c0&&'removeFormat'==_0x24d1c0['commandName']?{'type':'format','content':o(_0x1229b0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5511a1{['afterInit'](){const _0xa6486e=this['editor'];if(!_0xa6486e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x28d470=_0xa6486e['plugins']['get']('TrackChangesEditing');_0x28d470['enableCommand']('goToPreviousRestrictedEditingException'),_0x28d470['enableCommand']('goToNextRestrictedEditingException');const _0x3c2118=_0xa6486e['plugins']['get']('RestrictedEditingModeEditing');_0x3c2118['enableCommand']('trackChanges'),_0x3c2118['enableCommand']('acceptSuggestion'),_0x3c2118['enableCommand']('discardSuggestion'),_0x3c2118['enableCommand']('acceptAllSuggestions'),_0x3c2118['enableCommand']('discardAllSuggestions'),_0x3c2118['enableCommand']('acceptSelectedSuggestions'),_0x3c2118['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5511a1{static get['requires'](){return[_0x1b9530];}['init'](){const _0x12f95f=this['editor'],_0x5585d2=_0x12f95f['plugins']['get']('TrackChangesEditing');_0x5585d2['enableCommand']('shiftEnter'),_0x12f95f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x12f95f),{'priority':'high'}),_0x12f95f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x12f95f),{'priority':'high'}),_0x12f95f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x20a484,_0x5951a8,_0x5092ea)=>{_0x5092ea['options']['showSuggestionHighlights']&&de(_0x12f95f,{'showActiveMarker':!0x1})(_0x20a484,_0x5951a8,_0x5092ea);}),_0x5585d2['descriptionFactory']['registerElementLabel']('softBreak',_0x2c16ce=>o(_0x12f95f['locale'],'ELEMENT_LINE_BREAK',_0x2c16ce));}}function de(_0x25221a,{showActiveMarker:_0x1ce009=!0x0}={}){return(_0x8eb9f7,_0x4f9ba9,_0x46f43e)=>{const _0x1d3de5=_0x25221a['plugins']['get']('TrackChangesEditing');if(!_0x46f43e['consumable']['test'](_0x4f9ba9['markerRange'],_0x8eb9f7['name']))return;const _0x383ffa=_0x25221a['model'];for(const _0x2d97f2 of _0x4f9ba9['markerRange']['getItems']()){if(!_0x2d97f2['is']('element','softBreak'))continue;const _0x46fc5b='deletion'==_0x4f9ba9['markerName']['split'](':')[0x1]?'merge':'split',_0x4d2e72=_0x46f43e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46fc5b}),_0x33af2d=_0x46f43e['mapper']['toViewPosition'](_0x383ffa['createPositionBefore'](_0x2d97f2));_0x1ce009&&_0x1d3de5['activeMarkers']['includes'](_0x4f9ba9['markerName'])&&_0x46f43e['writer']['addClass']('ck-suggestion-marker--active',_0x4d2e72),_0x46f43e['writer']['insert'](_0x33af2d,_0x4d2e72),_0x46f43e['mapper']['bindElementToMarker'](_0x4d2e72,_0x4f9ba9['markerName']);}};}class wt extends _0x5511a1{['afterInit'](){const _0x4889d1=this['editor'],_0x33d331=_0x4889d1['model'],_0x47403f=_0x4889d1['locale'];if(!_0x4889d1['plugins']['has']('StandardEditingModeEditing'))return;const _0x5a9e63=_0x4889d1['plugins']['get']('TrackChangesEditing'),_0x2abb28='restrictedEditingException',_0x4c7cde=_0x4889d1['commands']['get'](_0x2abb28);_0x5a9e63['enableCommand'](_0x2abb28,(_0x3c4542,_0x14f580={})=>{const _0x3508a5=_0x33d331['document']['selection'];if(_0x3508a5['isCollapsed'])return void _0x3c4542(_0x14f580);const _0x353001=void 0x0!==_0x14f580['forceValue']?_0x14f580['forceValue']:!_0x4c7cde['value'];_0x33d331['change'](()=>{const _0x5305ec=Array['from'](_0x3508a5['getRanges']());for(const _0xd8fda8 of _0x5305ec){const _0x4b8af9=_0x353001?[_0xd8fda8]:io(_0x2abb28,_0xd8fda8,_0x33d331);for(const _0x524b1a of _0x4b8af9)_0x5a9e63['markInlineFormat'](_0x524b1a,{'commandName':_0x2abb28,'commandParams':[{'forceValue':_0x353001}]});}});}),_0x5a9e63['descriptionFactory']['registerDescriptionCallback'](_0x3ac3d9=>{if('formatBlock'!=_0x3ac3d9['type']&&'formatInline'!=_0x3ac3d9['type'])return;const {data:_0x3e2a4a}=_0x3ac3d9;return _0x3e2a4a&&_0x3e2a4a['commandName']==_0x2abb28?_0x3e2a4a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47403f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x47403f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5511a1{['afterInit'](){const _0x531303=this['editor'];if(!_0x531303['plugins']['has']('Style')||!_0x531303['plugins']['has']('DataSchema'))return;const _0x284976=_0x531303['plugins']['get']('TrackChangesEditing'),_0x50f467=_0x531303['locale'],_0x334350=_0x531303['config']['get']('style')||{},_0xa4872b=_0x531303['plugins']['get']('GeneralHtmlSupport'),_0x630721=_0x531303['plugins']['get']('StyleUtils')['normalizeConfig'](_0x531303['plugins']['get']('DataSchema'),_0x334350['definitions']);_0x284976['enableDefaultAttributesIntegration']('style');const _0x1cd0e1=new Set();for(const _0x1340da of _0x630721['block']){const _0x5639c8=_0xa4872b['getGhsAttributeNameForElement'](_0x1340da['element']);_0x1cd0e1['add'](_0x5639c8);}const _0x1cbcc3=new Set();for(const _0xb1a71e of _0x630721['inline']){const _0x4ee561=_0xa4872b['getGhsAttributeNameForElement'](_0xb1a71e['element']);_0x1cbcc3['add'](_0x4ee561);for(const _0x1b0099 of _0xb1a71e['ghsAttributes'])_0x1cbcc3['add'](_0x1b0099);}for(const _0x497836 of _0x1cd0e1)_0x284976['registerBlockAttribute'](_0x497836),_0x284976['descriptionFactory']['registerAttributeLabel'](_0x497836,o(_0x50f467,'FORMAT_STYLE'));for(const _0x3d932c of _0x1cbcc3)_0x284976['registerInlineAttribute'](_0x3d932c),_0x284976['descriptionFactory']['registerAttributeLabel'](_0x3d932c,o(_0x50f467,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445ae0=this['editor'],_0x4696b1=_0x445ae0['locale'];_0x445ae0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2788d8=>{if('formatBlock'!=_0x2788d8['type']&&'formatInline'!=_0x2788d8['type'])return;const {data:_0x1594da}=_0x2788d8;return _0x1594da&&'style'===_0x1594da['commandName']?_0x1594da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4696b1,'*Set\x20format:*\x20%0',_0x1594da['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4696b1,'*Remove\x20format:*\x20%0',_0x1594da['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5511a1{['afterInit'](){const _0x20570b=this['editor'],_0x3fbbc6=_0x20570b['model']['document']['selection'];if(!_0x20570b['plugins']['has']('TableEditing'))return;const _0xe1662c=_0x20570b['locale'],_0x357bb0=_0x20570b['plugins']['get']('TrackChangesEditing'),_0x4b76cf=_0x20570b['plugins']['get']('TableUtils');_0x357bb0['descriptionFactory']['registerElementLabel']('table',_0x2c0fb7=>o(_0xe1662c,'ELEMENT_TABLE',_0x2c0fb7)),this['_setupColumnsRowsFixing'](),_0x357bb0['enableCommand']('insertTable'),_0x357bb0['enableCommand']('selectTableRow'),_0x357bb0['enableCommand']('selectTableColumn');for(const _0x3fa5c0 of['insertTableRowAbove','insertTableRowBelow']){const _0x2d3252=_0x20570b['commands']['get'](_0x3fa5c0);_0x357bb0['enableCommand'](_0x3fa5c0,_0x2c1693=>{_0x20570b['model']['change'](_0x1826d6=>{_0x2c1693();const _0x27bfea='above'===_0x2d3252['order'],_0x8531a7=_0x4b76cf['getSelectionAffectedTableCells'](_0x3fbbc6),_0x3bd33b=_0x4b76cf['getRowIndexes'](_0x8531a7),_0x434e5e=_0x27bfea?_0x3bd33b['first']-0x1:_0x3bd33b['last']+0x1,_0x25fcdf=_0x8531a7[0x0]['findAncestor']('table'),_0x26eb4a=_0x4b76cf['createTableWalker'](_0x25fcdf,{'startRow':_0x434e5e,'endRow':_0x434e5e}),_0x54eafc=Array['from'](_0x26eb4a)['map'](_0x346275=>_0x1826d6['createRangeOn'](_0x346275['cell']));_0x357bb0['markMultiRangeInsertion'](_0x54eafc,'tableRow');});});}for(const _0x3b9661 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2d1be7=_0x20570b['commands']['get'](_0x3b9661);_0x357bb0['enableCommand'](_0x3b9661,_0x3d98d4=>{_0x20570b['model']['change'](_0x296a4a=>{_0x3d98d4();const _0x45e97d='left'===_0x2d1be7['order'],_0x5c450a=_0x4b76cf['getSelectionAffectedTableCells'](_0x3fbbc6),_0xe080c3=_0x4b76cf['getColumnIndexes'](_0x5c450a),_0x3791b2=_0x45e97d?_0xe080c3['first']-0x1:_0xe080c3['last']+0x1,_0x145387=_0x5c450a[0x0]['findAncestor']('table'),_0x4f69cc=_0x4b76cf['createTableWalker'](_0x145387,{'startRow':0x0,'column':_0x3791b2,'includeAllSlots':!0x1}),_0x24c378=Array['from'](_0x4f69cc)['map'](_0xbd5449=>_0x296a4a['createRangeOn'](_0xbd5449['cell']));_0x357bb0['markMultiRangeInsertion'](_0x24c378,'tableColumn');});});}for(const _0x27351d of['removeTableRow','removeTableColumn']){const _0x34d441=_0x27351d['substr'](0xb),_0x5a9e2d=_0x34d441['toLowerCase'](),_0x4cf704=_0x5a9e2d['substr'](0x0,0x3)+'span',_0x339342='table'+_0x34d441,_0x4378e6='min'+_0x34d441,_0x37068f='max'+_0x34d441;_0x357bb0['enableCommand'](_0x27351d,()=>{_0x20570b['model']['change'](_0x2aa2f3=>{const _0x39487c=_0x4b76cf['getSelectionAffectedTableCells'](_0x3fbbc6),_0x4279d0=_0x39487c[0x0]['findAncestor']('table');let _0x588452;if('removeTableRow'==_0x27351d){const _0x43fbe1=_0x4b76cf['getRowIndexes'](_0x39487c);_0x588452={'startRow':_0x43fbe1['first'],'endRow':_0x43fbe1['last'],'includeAllSlots':!0x0};}else{const _0x21b069=_0x4b76cf['getColumnIndexes'](_0x39487c);_0x588452={'startColumn':_0x21b069['first'],'endColumn':_0x21b069['last'],'includeAllSlots':!0x0};}const _0x4f8003=_0x4b76cf['createTableWalker'](_0x4279d0,_0x588452),_0x2f8a41=Array['from'](_0x4f8003)['map'](({cell:_0x2c9ec7})=>_0x2c9ec7),_0x2e5027=Ee(_0x2f8a41['filter'](_0x2c9e33=>_0x2c9e33['hasAttribute'](_0x4cf704))),_0x197b80=Ee(_0x2f8a41['filter'](_0x1069c4=>!_0x1069c4['hasAttribute'](_0x4cf704)))['map'](_0x513d42=>_0x2aa2f3['createRangeOn'](_0x513d42)),_0x46fc39=_0x357bb0['markMultiRangeDeletion'](_0x197b80,_0x339342);if(_0x46fc39&&('tableRow'==_0x46fc39['subType']||'tableColumn'==_0x46fc39['subType'])){const _0x141c02=this['_getSuggestionCoords'](_0x46fc39);for(const _0x21b9bc of _0x2e5027){const _0x2442f0=_0x2aa2f3['createRangeOn'](_0x21b9bc),_0x55e6cf=_0x4b76cf['getCellLocation'](_0x21b9bc),_0x34df94=_0x21b9bc['getAttribute'](_0x4cf704)-0x1,_0x201058=_0x141c02[_0x4378e6],_0x59d306=_0x141c02[_0x37068f];_0x201058<=_0x55e6cf[_0x5a9e2d]&&_0x55e6cf[_0x5a9e2d]+_0x34df94<=_0x59d306&&_0x46fc39['addRange'](_0x2442f0);}}});});}function _0x2e1d90(_0x72233){const _0x550e67=Array['from'](_0x3fbbc6['getRanges']())['map'](_0x11f1ec=>_0x2f3de9['fromRange'](_0x11f1ec));_0x20570b['model']['change'](_0x5ab0f8=>{const _0x2c53a3=_0x5ab0f8['batch'];_0x72233=_0x72233['filter'](_0x3df261=>'$graveyard'!=_0x3df261['root']['rootName']),_0x5ab0f8['setSelection'](_0x72233),_0x20570b['commands']['get']('removeTableRow')['refresh'](),_0x20570b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x20570b['model']['enqueueChange'](()=>{_0x20570b['model']['enqueueChange'](_0x2c53a3,_0x5a12b2=>{const _0x4df4f5=_0x550e67['filter'](_0x1b5356=>'$graveyard'!=_0x1b5356['root']['rootName']);_0x4df4f5['length']>0x0&&_0x5a12b2['setSelection'](_0x4df4f5);for(const _0x41dc38 of _0x550e67)_0x41dc38['detach']();});});});}function _0x404147(_0x38c3c5){_0x20570b['model']['change'](_0x36f58c=>{const _0x1a7533=Array['from'](_0x3fbbc6['getRanges']())['map'](_0x120a14=>_0x2f3de9['fromRange'](_0x120a14)),_0x8db1f0=[];for(const _0x1acdb0 of _0x38c3c5)for(const _0x27ebfe of _0x1acdb0['getItems']({'shallow':!0x0}))_0x8db1f0['push'](_0x27ebfe);for(const _0x2cbc9c of _0x8db1f0)'$graveyard'!=_0x2cbc9c['root']['rootName']&&(_0x36f58c['setSelection'](_0x36f58c['createPositionAt'](_0x2cbc9c,0x0)),_0x20570b['commands']['get']('removeTableColumn')['refresh'](),_0x20570b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x22cda6=_0x1a7533['filter'](_0x51d3cd=>'$graveyard'!=_0x51d3cd['root']['rootName']);_0x22cda6['length']>0x0&&_0x36f58c['setSelection'](_0x22cda6);for(const _0x2d21b6 of _0x1a7533)_0x2d21b6['detach']();});}function _0x58828a(_0x7501d4,_0x15abaf){return _0x15abaf['every'](_0x2d05df=>_0x7501d4['some'](_0x490846=>_0x490846['end']['isEqual'](_0x2d05df['start'])||_0x2d05df['end']['isEqual'](_0x490846['start'])));}function _0x470d5f(_0x587c1c,_0x106b12){return _0x587c1c['some'](_0x2ea13f=>_0x106b12['some'](_0x31d0aa=>_0x2ea13f['end']['isTouching'](_0x31d0aa['start'])));}_0x20570b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15ba63,_0x17921e,_0xa56e81)=>{if(!_0xa56e81['options']['showSuggestionHighlights'])return;const _0x4297ca=_0x17921e['item'];if(!_0x4297ca)return;const _0x191643=_0xa56e81['mapper']['toViewElement'](_0x4297ca);function _0x48dedd(_0x5f318d){return Array['isArray'](_0x5f318d)?_0x5f318d:[_0x5f318d];}_0x191643&&'tableCell'===_0x4297ca['name']&&_0x4fc2c1(_0x191643,_0xa56e81['writer'],(_0xadfdc4,_0x488300,_0xb54333)=>_0xb54333['addClass'](_0x48dedd(_0x488300['classes']),_0xadfdc4),(_0x10f794,_0x86ad73,_0xdc2c64)=>_0xdc2c64['removeClass'](_0x48dedd(_0x86ad73['classes']),_0x10f794));},{'priority':'highest'}),_0x357bb0['descriptionFactory']['registerDescriptionCallback'](_0x13c5cf=>{if('insertion'!=_0x13c5cf['type']&&'deletion'!=_0x13c5cf['type'])return;const _0x3837a0=_0x13c5cf['getContainedElement']();if(null!=_0x3837a0&&_0x3837a0['is']('element','table')){if('insertion'==_0x13c5cf['type']){const _0x4076a9=_0x13c5cf['getItems']()['filter'](_0x48e6a3=>_0x48e6a3['is']('$textProxy'))['map'](_0x35728b=>_0x35728b['data']);if(_0x4076a9['length'])return{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4076a9['join']('\x20')+'\x22'))};}if('deletion'==_0x13c5cf['type']){const _0x51eed5=_0x13c5cf['getItems']()['filter'](_0x353646=>_0x353646['is']('$textProxy'))['map'](_0x46b53e=>_0x46b53e['data']);if(_0x51eed5['length'])return{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51eed5['join']('\x20')+'\x22'))};}}}),_0x357bb0['descriptionFactory']['registerDescriptionCallback'](_0x12cc83=>{if('tableRow'==_0x12cc83['subType']){const _0x3da1d5=_0x12cc83['getItems']()['filter'](_0x5ab082=>_0x5ab082['is']('$textProxy'))['map'](_0x369d76=>_0x369d76['data']),_0xe33e06=this['_getSuggestionCoords'](_0x12cc83),_0x5cb0b2=_0xe33e06['maxRow']-_0xe33e06['minRow']+0x1;if('insertion'==_0x12cc83['type'])return _0x3da1d5['length']?{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cb0b2,'\x22'+_0x3da1d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW',_0x5cb0b2))};if('deletion'==_0x12cc83['type'])return _0x3da1d5['length']?{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cb0b2,'\x22'+_0x3da1d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW',_0x5cb0b2))};}if('tableColumn'==_0x12cc83['subType']){const _0x217f84=_0x12cc83['getItems']()['filter'](_0x360bb0=>_0x360bb0['is']('$textProxy'))['map'](_0x5c4276=>_0x5c4276['data']),_0x2e8799=this['_getSuggestionCoords'](_0x12cc83),_0x44f53d=_0x2e8799['maxColumn']-_0x2e8799['minColumn']+0x1;if('insertion'==_0x12cc83['type'])return _0x217f84['length']?{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44f53d,'\x22'+_0x217f84['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN',_0x44f53d))};if('deletion'==_0x12cc83['type'])return _0x217f84['length']?{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44f53d,'\x22'+_0x217f84['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN',_0x44f53d))};}}),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e1d90),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e1d90),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x404147),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x404147),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58828a),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58828a),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x470d5f),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x470d5f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x37c41d=this['editor'],_0x1bd516=_0x37c41d['model']['document']['selection'];return(_0x2b9ced,_0x1e051c)=>{_0x37c41d['model']['change'](_0x3911bc=>{const {commandName:_0x4de968,commandParams:_0x2e6eab}=_0x1e051c;let _0x20ee94=_0x2b9ced[0x0]['end']['nodeBefore'];_0x2e6eab&&_0x2e6eab[0x0]&&!0x1===_0x2e6eab[0x0]['forceValue']&&(_0x20ee94=_0x2b9ced[0x0]['start']['nodeAfter']);const _0xf40847=_0x3911bc['createRangeIn'](_0x20ee94);if('$graveyard'==_0xf40847['root']['rootName'])return;const _0x35e3f5=Array['from'](_0x1bd516['getRanges']())['map'](_0x187812=>_0x2f3de9['fromRange'](_0x187812));_0x3911bc['setSelection'](_0xf40847),_0x37c41d['commands']['get'](_0x4de968)['refresh'](),_0x2e6eab['push']({'forceDefaultExecution':!0x0}),_0x37c41d['execute'](_0x4de968,..._0x2e6eab);const _0x8b03b=_0x35e3f5['filter'](_0xed21f1=>'$graveyard'!=_0xed21f1['root']['rootName']);_0x8b03b['length']>0x0&&_0x3911bc['setSelection'](_0x8b03b);for(const _0x3b27c2 of _0x35e3f5)_0x3b27c2['detach']();});};}['_getCoordsForCells'](_0x2c60e4){const _0x3a66f6=this['editor']['plugins']['get']('TableUtils');let _0x4a8ad7=Number['MAX_SAFE_INTEGER'],_0x2e56ee=Number['MIN_SAFE_INTEGER'],_0x3ecd90=Number['MAX_SAFE_INTEGER'],_0x4c1b27=Number['MIN_SAFE_INTEGER'];for(const _0x57c1f5 of _0x2c60e4){if('$graveyard'==_0x57c1f5['root']['rootName'])continue;const {row:_0x108a70,column:_0x37feb2}=_0x3a66f6['getCellLocation'](_0x57c1f5),_0x36b63f=_0x57c1f5['hasAttribute']('rowspan')?_0x57c1f5['getAttribute']('rowspan')-0x1:0x0,_0x26f128=_0x57c1f5['hasAttribute']('colspan')?_0x57c1f5['getAttribute']('colspan')-0x1:0x0;_0x4a8ad7=_0x108a70<_0x4a8ad7?_0x108a70:_0x4a8ad7,_0x2e56ee=_0x108a70+_0x36b63f>_0x2e56ee?_0x108a70+_0x36b63f:_0x2e56ee,_0x3ecd90=_0x37feb2<_0x3ecd90?_0x37feb2:_0x3ecd90,_0x4c1b27=_0x37feb2+_0x26f128>_0x4c1b27?_0x37feb2+_0x26f128:_0x4c1b27;}return{'minRow':_0x4a8ad7,'maxRow':_0x2e56ee,'minColumn':_0x3ecd90,'maxColumn':_0x4c1b27};}['_setupColumnsRowsFixing'](){const _0x46f5cc=this['editor'],_0x47f0d9=_0x46f5cc['plugins']['get']('TrackChangesEditing'),_0x21187f=_0x46f5cc['plugins']['get']('TableUtils');_0x46f5cc['model']['document']['on']('change:data',()=>{const _0x59a250=Array['from'](_0x46f5cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe5ca4,data:_0x5949b1}of _0x59a250){const {group:_0x5a3c37,id:_0x29d74b,subType:_0x44025e}=_0x47f0d9['_splitMarkerName'](_0xe5ca4);if('suggestion'!=_0x5a3c37)continue;if(null!=_0x5949b1['oldRange'])continue;const _0x30e1a5=_0x47f0d9['getSuggestion'](_0x29d74b);this['_tablePostFixingSubtypes']['includes'](_0x44025e)&&this['_tableSuggestions']['add'](_0x30e1a5);}},{'priority':'low'});const _0x5ee9e1=(_0x4d6b3f,_0x38f426)=>{let _0x3ea413=!0x1;const _0x2c7021=_0x38f426['createRangeOn'](_0x4d6b3f),_0xd8d8e4=_0x4d6b3f['findAncestor']('table'),_0x6453ae=_0x21187f['getCellLocation'](_0x4d6b3f);for(const _0x32d8e2 of this['_tableSuggestions']){const _0x15fd5a=_0x32d8e2['subType'],_0x54d060=_0x15fd5a['startsWith']('tablePaste'),_0x3f0c9e=_0x15fd5a['substr'](_0x54d060?0xa:0x5),_0x440997=_0x3f0c9e['toLowerCase'](),_0x21ad24=_0x440997['substr'](0x0,0x3)+'span',_0x274df8='min'+_0x3f0c9e,_0x561b91='max'+_0x3f0c9e;if(!_0x32d8e2['isInContent'])continue;if(_0xd8d8e4!=_0x32d8e2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x32d8e2['isIntersectingWithRange'](_0x2c7021))continue;const _0x4854a4=_0x4d6b3f['hasAttribute'](_0x21ad24)?_0x4d6b3f['getAttribute'](_0x21ad24)-0x1:0x0,_0x2b35e4=this['_getSuggestionCoords'](_0x32d8e2),_0x27c2d3=_0x2b35e4[_0x274df8],_0x1db7e0=_0x2b35e4[_0x561b91];_0x27c2d3<=_0x6453ae[_0x440997]&&_0x6453ae[_0x440997]+_0x4854a4<=_0x1db7e0&&(_0x32d8e2['addRange'](_0x2c7021),_0x3ea413=!0x0);}return _0x3ea413;};_0x46f5cc['model']['document']['registerPostFixer'](_0x3d24ff=>{let _0x5c47c3=!0x1;for(const _0x257c83 of _0x46f5cc['model']['document']['differ']['getChanges']())if('insert'==_0x257c83['type']){if('tableRow'==_0x257c83['name']){for(const _0xf9cbbb of _0x257c83['position']['nodeAfter']['getChildren']())_0x5c47c3=_0x5c47c3||_0x5ee9e1(_0xf9cbbb,_0x3d24ff);}else'tableCell'==_0x257c83['name']&&(_0x5c47c3=_0x5c47c3||_0x5ee9e1(_0x257c83['position']['nodeAfter'],_0x3d24ff));}return _0x5c47c3;});}['_getSuggestionCoords'](_0x3347cd){return this['_getCoordsForCells'](_0x3347cd['getRanges']()['map'](_0x49e65e=>_0x49e65e['start']['nodeAfter']));}constructor(_0x4bdb55){super(_0x4bdb55),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x1e4812){return Array['from'](new Set(_0x1e4812)['values']());}class St extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x27ef7d=this['editor'],_0x54811b=_0x27ef7d['model']['document']['selection'],_0x51dece=_0x27ef7d['locale'];if(!_0x27ef7d['plugins']['has']('TableEditing'))return;const _0x11f9f8=_0x27ef7d['plugins']['get']('TrackChangesEditing'),_0x3fca9f=_0x27ef7d['plugins']['get']('TableUtils'),_0x344a57=_0x27ef7d['plugins']['get'](jt);_0x344a57['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x11f9f8['enableCommand']('mergeTableCells',()=>{const _0x5eb1e2=_0x3fca9f['getSelectionAffectedTableCells'](_0x27ef7d['model']['document']['selection']);_0x27ef7d['model']['change'](()=>{_0x11f9f8['markMultiRangeBlockFormat'](_0x5eb1e2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x27ef7d['commands']['get']('mergeTableCells')['on']('execute',(_0x1fc82e,_0x1ea7ce)=>{_0x27ef7d['commands']['get']('trackChanges')['value']&&(_0x1ea7ce['length']>0x0&&_0x1ea7ce[_0x1ea7ce['length']-0x1]&&_0x1ea7ce[_0x1ea7ce['length']-0x1]['forceDefaultExecution']||_0x11f9f8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1fc82e['stop']());},{'priority':'highest'});for(const _0x2ea913 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5d679f=_0x27ef7d['commands']['get'](_0x2ea913);_0x11f9f8['enableCommand'](_0x2ea913,()=>{const _0xe0a5df=_0x27ef7d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x363370=>_0x363370['is']('element','tableCell')),_0x3257ed=_0x5d679f['value'];_0x27ef7d['model']['change'](()=>{_0x11f9f8['markMultiRangeBlockFormat']([_0xe0a5df,_0x3257ed],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x31254a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x57c971=_0x27ef7d['commands']['get'](_0x31254a);_0x11f9f8['enableCommand'](_0x31254a,()=>{const _0xffa4f6=_0x3fca9f['getSelectionAffectedTableCells'](_0x27ef7d['model']['document']['selection'])[0x0],_0xa6ce8f=_0xffa4f6['findAncestor']('table'),{column:_0x3b5853,row:_0x5856eb}=_0x3fca9f['getCellLocation'](_0xffa4f6);let _0x2c922b=[];if('horizontally'==_0x57c971['direction']){const _0x3dd2b9=_0x3fca9f['createTableWalker'](_0xa6ce8f,{'startRow':_0x5856eb,'endRow':_0x5856eb,'includeAllSlots':!0x0});_0x2c922b=Array['from'](_0x3dd2b9)['map'](_0x4a451a=>_0x4a451a['cell']);}else{const _0x4fd56f=_0x3fca9f['createTableWalker'](_0xa6ce8f,{'column':_0x3b5853,'includeAllSlots':!0x0});_0x2c922b=Array['from'](_0x4fd56f)['map'](_0x5736f2=>_0x5736f2['cell']);}_0x27ef7d['model']['change'](_0x3af741=>{_0x11f9f8['markBlockFormat'](_0x3af741['createRangeOn'](_0xffa4f6),{'commandName':_0x31254a,'commandParams':[]},_0x2c922b,_0x31254a);});});}_0x11f9f8['descriptionFactory']['registerDescriptionCallback'](_0x25bb19=>{if('formatBlock'!=_0x25bb19['type']&&'formatInline'!=_0x25bb19['type'])return;const {data:_0x31bb16}=_0x25bb19;return _0x31bb16&&'mergeTableCells'==_0x31bb16['commandName']?{'type':'format','content':o(_0x51dece,'*Merge\x20cells*')}:void 0x0;}),_0x11f9f8['descriptionFactory']['registerDescriptionCallback'](_0x36491f=>{if('formatBlock'!=_0x36491f['type']&&'formatInline'!=_0x36491f['type'])return;const {data:_0x4e4bd5}=_0x36491f;return _0x4e4bd5?'splitTableCellVertically'==_0x4e4bd5['commandName']?{'type':'format','content':o(_0x51dece,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4e4bd5['commandName']?{'type':'format','content':o(_0x51dece,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x8200a=_0x344a57['_acceptFormatSuggestionCallbackFactory']();for(const _0xe7e75a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x11f9f8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe7e75a,'accept',_0x8200a);for(const _0x1b89d6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x11f9f8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b89d6,'accept',_0x8200a);_0x11f9f8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x12da1d=>{_0x27ef7d['model']['change'](_0x32df99=>{const _0x1fa0ac=Array['from'](_0x54811b['getRanges']())['map'](_0x359a8d=>_0x2f3de9['fromRange'](_0x359a8d));_0x32df99['setSelection'](_0x12da1d),_0x27ef7d['commands']['get']('mergeTableCells')['refresh'](),_0x27ef7d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xcecf62=_0x1fa0ac['filter'](_0x2d39cd=>'$graveyard'!=_0x2d39cd['root']['rootName']);_0xcecf62['length']>0x0&&_0x32df99['setSelection'](_0xcecf62);for(const _0x8528d6 of _0x1fa0ac)_0x8528d6['detach']();});});for(const _0x91d88f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x387d7f=_0x27ef7d['commands']['get'](_0x91d88f);_0x387d7f['on']('set:isEnabled',(_0x5eb05b,_0xf8673d,_0x355073)=>{if(_0x355073){const _0x6e5420=_0x27ef7d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x23e57c=>_0x23e57c['is']('element','tableCell'));this['_areMergableCells'](_0x387d7f['value'],_0x6e5420)||(_0x5eb05b['return']=!0x1,_0x5eb05b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x173a44=this['editor']['commands']['get']('mergeTableCells'),_0x3b1af4=this['editor']['plugins']['get']('TableUtils');if(!_0x173a44['isEnabled'])return!0x1;const _0x3f2f02=_0x3b1af4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4d1f25 of _0x3f2f02)for(const _0x3b4039 of _0x3f2f02)if(_0x4d1f25!=_0x3b4039&&!this['_areMergableCells'](_0x4d1f25,_0x3b4039))return!0x1;return!0x0;}['_areMergableCells'](_0xb9322d,_0x165054){const _0x12cfbd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x575a0e=this['editor']['model']['createRangeOn'](_0xb9322d),_0x3ed972=this['editor']['model']['createRangeOn'](_0x165054),_0x528c13=new Set(),_0x2968fc=new Set();for(const _0x36c578 of _0x12cfbd['getSuggestions']())if(('insertion'==_0x36c578['type']||'deletion'==_0x36c578['type']||'mergeTableCells'==_0x36c578['subType'])&&_0x36c578['isInContent']){for(const _0x51a255 of _0x36c578['getRanges']())_0x51a255['containsRange'](_0x575a0e,!0x0)&&_0x528c13['add'](_0x36c578['type']+':'+_0x36c578['author']['id']),_0x51a255['containsRange'](_0x3ed972,!0x0)&&_0x2968fc['add'](_0x36c578['type']+':'+_0x36c578['author']['id']);}if(_0x528c13['size']!=_0x2968fc['size'])return!0x1;for(const _0xa0b8db of _0x528c13)if(!_0x2968fc['has'](_0xa0b8db))return!0x1;return!0x0;}}class At extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x54fc27=this['editor'];if(!_0x54fc27['plugins']['has']('TableEditing'))return;const _0x475c2a=_0x54fc27['locale'],_0x10963b=_0x54fc27['plugins']['get']('TrackChangesEditing');_0x10963b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x10963b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x10963b['registerBlockAttribute']('headingRows'),_0x10963b['registerBlockAttribute']('headingColumns'),_0x10963b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x475c2a,'FORMAT_HEADER_ROW')),_0x10963b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x475c2a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45f045=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18ee49=this['editor']['plugins']['get']('TableUtils'),_0x5e90da=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3c9546({showActiveMarker:_0x4978d7=!0x0,setDataAttribute:_0x3dde2c=!0x0}={}){return(_0x244485,_0xf3d0d,_0x512e26)=>{const {type:_0x2f7b8a,id:_0x45cc0b}=_0x45f045['_splitMarkerName'](_0xf3d0d['markerName']),_0x37beb1=_0x45f045['getSuggestion'](_0x45cc0b),_0x5838c1=_0x37beb1['data'];if('formatBlock'!=_0x37beb1['type']||!_0x5838c1||'setTableColumnHeader'!=_0x5838c1['commandName'])return;if(_0xf3d0d['item'])return void _0x244485['stop']();if(!_0x512e26['consumable']['consume'](_0xf3d0d['markerRange'],_0x244485['name']))return;const _0x297f40=_0xf3d0d['markerRange']['start']['nodeAfter'],_0x2955f8=_0xf3d0d['markerRange']['end']['nodeBefore'],_0x34a86f=_0x297f40['parent']['parent'],{column:_0x3d4914}=_0x18ee49['getCellLocation'](_0x297f40),{column:_0xcb78e}=_0x18ee49['getCellLocation'](_0x2955f8);for(let _0x135417=_0x3d4914;_0x135417<=_0xcb78e;_0x135417++){const _0x3a6e3d=_0x18ee49['createTableWalker'](_0x34a86f,{'column':_0x135417,'includeAllSlots':!0x1});for(const _0x315494 of _0x3a6e3d){const _0x587f24=_0x315494['cell'],_0x538970=_0x512e26['mapper']['toViewElement'](_0x587f24);_0x512e26['writer']['addClass']('ck-suggestion-marker-'+_0x2f7b8a,_0x538970),_0x3dde2c&&_0x512e26['writer']['setAttribute']('data-suggestion',_0x45cc0b,_0x538970),_0x512e26['mapper']['bindElementToMarker'](_0x538970,_0xf3d0d['markerName']),_0x4978d7&&(_0x45f045['activeMarkers']['includes'](_0xf3d0d['markerName'])?_0x512e26['writer']['addClass']('ck-suggestion-marker--active',_0x538970):_0x512e26['writer']['removeClass']('ck-suggestion-marker--active',_0x538970));}}};}_0x45f045['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5e90da),_0x45f045['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5e90da),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c9546(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24d76c,_0xa118ea,_0x2bd454)=>{_0x2bd454['options']['showSuggestionHighlights']&&_0x3c9546({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x24d76c,_0xa118ea,_0x2bd454);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x106ed5,_0x38ad0b,_0x4c50f0)=>{const {type:_0xd3a873,id:_0x1af68b}=_0x45f045['_splitMarkerName'](_0x38ad0b['markerName']),_0x283efe=_0x45f045['getSuggestion'](_0x1af68b),_0x2bc7c5=_0x283efe['data'];if('formatBlock'!=_0x283efe['type']||!_0x2bc7c5||'setTableColumnHeader'!=_0x2bc7c5['commandName'])return;const _0x13694c=_0x4c50f0['mapper']['markerNameToElements'](_0x38ad0b['markerName']);if(_0x13694c){for(const _0x1b5076 of _0x13694c)_0x4c50f0['writer']['removeClass']('ck-suggestion-marker-'+_0xd3a873,_0x1b5076),_0x4c50f0['writer']['removeClass']('ck-suggestion-marker--active',_0x1b5076),_0x4c50f0['writer']['removeAttribute']('data-suggestion',_0x1b5076),_0x4c50f0['mapper']['unbindElementFromMarkerName'](_0x1b5076,_0x38ad0b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21669e=this['editor'],_0x3ccb36=_0x21669e['locale'];function _0x3224b5(_0x57608a){return{'type':'format','content':o(_0x3ccb36,'*Format:*\x20%0',_0x57608a)};}_0x21669e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeabc0a=>{if('formatBlock'!=_0xeabc0a['type'])return;const {data:_0x151328}=_0xeabc0a;if(_0x151328){if('setTableRowHeader'==_0x151328['commandName']){const _0x373faf=_0x151328['commandParams'][0x0]['forceValue'];return _0x3224b5(o(_0x3ccb36,_0x373faf?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x151328['commandName']){const _0x246bb3=_0x151328['commandParams'][0x0]['forceValue'];return _0x3224b5(o(_0x3ccb36,_0x246bb3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4f64e0=>[_0x4f64e0,null]));class It extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x4904d6=this['editor'];if(!_0x4904d6['plugins']['has']('TableClipboard'))return;const _0x7d4d57=_0x4904d6['plugins']['get']('TrackChangesEditing'),_0x41a1b6=_0x4904d6['plugins']['get']('TableUtils'),_0xd8ca26=_0x4904d6['plugins']['get'](jt),_0x4242f9=_0x4904d6['plugins']['get']('TableClipboard');_0xd8ca26['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4904d6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4904d6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x503fa2=null;_0x4904d6['model']['on']('insertContent',(_0x37f6ed,_0x3e6355)=>{const [_0x4187d1,_0x216630]=_0x3e6355,_0x463a6a=_0x3e6355[_0x3e6355['length']-0x1];_0x463a6a&&_0x463a6a['forceDefaultExecution']||_0x7d4d57['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x18ef9f,_0x174dce,_0x468677,_0x4d2abb,_0x3e8448){if(_0x174dce&&!_0x174dce['is']('documentSelection'))return!0x1;const _0x355218=_0x3e8448['getTableIfOnlyTableInContent'](_0x18ef9f,_0x468677);if(!_0x355218||!he(_0x355218,void 0x0,_0x4d2abb))return!0x1;const _0x462ed6=_0x4d2abb['getSelectionAffectedTableCells'](_0x468677['document']['selection']);if(!_0x462ed6['length'])return!0x1;const _0x44ece3=_0x462ed6[0x0]['findAncestor']('table'),_0x2045ab=_0x4d2abb['getRowIndexes'](_0x462ed6),_0x4f0905=_0x4d2abb['getColumnIndexes'](_0x462ed6),_0x47c781={'startRow':_0x2045ab['first'],'endRow':_0x2045ab['last'],'startColumn':_0x4f0905['first'],'endColumn':_0x4f0905['last']};return 0x1==_0x462ed6['length']&&(_0x47c781['endRow']+=_0x4d2abb['getRows'](_0x355218)-0x1,_0x47c781['endColumn']+=_0x4d2abb['getColumns'](_0x355218)-0x1),he(_0x44ece3,_0x47c781,_0x4d2abb);}(_0x4187d1,_0x216630,_0x4904d6['model'],_0x41a1b6,_0x4242f9)&&(_0x37f6ed['stop'](),_0x503fa2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4904d6['model']['change'](()=>{_0x4904d6['model']['insertContent'](_0x3e6355[0x0],_0x3e6355[0x1],_0x3e6355[0x2],{'forceDefaultExecution':!0x0});const _0x95a81c=_0x4c61b3(),{rowInsertionRanges:_0x166266,columnInsertionRanges:_0x10d10b,insertionRanges:_0x4cd057,deletionRanges:_0xb24696,cells:_0x1b8392}=_0x503fa2;_0x166266['length']&&_0x7d4d57['markMultiRangeInsertion'](_0x166266,'tablePasteRow',{'tablePasteChainId':_0x95a81c}),_0x10d10b['length']&&_0x7d4d57['markMultiRangeInsertion'](_0x10d10b,'tablePasteColumn',{'tablePasteChainId':_0x95a81c}),_0x4cd057['length']&&(_0x7d4d57['markMultiRangeInsertion'](_0x4cd057,'tablePaste',{'tablePasteChainId':_0x95a81c,'skipNestingCheck':!0x0}),_0x4cd057['forEach'](_0x35ca89=>{var _0x270691;return null===(_0x270691=_0x35ca89['detach'])||void 0x0===_0x270691?void 0x0:_0x270691['call'](_0x35ca89);})),_0xb24696['length']&&(_0x7d4d57['markMultiRangeDeletion'](_0xb24696,'tablePaste',{'tablePasteChainId':_0x95a81c,'skipNestingCheck':!0x0}),_0xb24696['forEach'](_0x1037d9=>{var _0x2680b5;return null===(_0x2680b5=_0x1037d9['detach'])||void 0x0===_0x2680b5?void 0x0:_0x2680b5['call'](_0x1037d9);}));const _0x32ba73=_0x7d4d57['markMultiRangeBlockFormat'](_0x1b8392['map'](({element:_0x53d5cc})=>_0x53d5cc),{'formatGroupId':_0x4c61b3()},[],'tablePasteCell',{'tablePasteChainId':_0x95a81c});if(_0x32ba73){const _0x2ee3a5=_0x32ba73['getMarkers'](),_0x11ca68=[];for(const {element:_0x44be4e,attributes:_0x3b48c4}of _0x1b8392){if(!_0x3b48c4)continue;const _0x3a4cc0=_0x4904d6['model']['createRangeOn'](_0x44be4e),_0x341aff=_0x2ee3a5['find'](_0x1abef8=>_0x1abef8['getRange']()['isEqual'](_0x3a4cc0));_0x341aff&&_0x11ca68['push']([_0x341aff['name'],_0x3b48c4]);}_0x11ca68['length']&&_0x32ba73['setAttribute']('markerAttributes',Object['fromEntries'](_0x11ca68));}_0x503fa2=null;}));},{'priority':_0x4b8876['high']+0xa}),_0x4904d6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x51ba9b,_0x5b5367)=>{const [_0x46fe0d,_0x1bd8bd,,_0xf649b6]=_0x5b5367;if(!_0x503fa2)return;_0x51ba9b['stop']();const _0x3195a8=_0x46fe0d['cell'],_0x388755=_0x1bd8bd,_0x14e179=Pe(_0x3195a8),_0x1ee833=Pe(_0x388755);_0x51ba9b['return']=_0x3195a8;let _0x112a53=null,_0xf5f570=null;if(_0x1ee833||_0x14e179){if(_0x14e179&&!_0x1ee833){_0xf649b6['remove'](_0x3195a8['getChild'](0x0));for(const _0x499625 of Array['from'](_0x388755['getChildren']()))_0xf649b6['insert'](_0x499625,_0x3195a8,'end');const _0x14c38b=_0x503fa2['rowInsertionIndexes']['includes'](_0x46fe0d['row']),_0x2d8545=_0x503fa2['columnInsertionIndexes']['includes'](_0x46fe0d['column']);_0x14c38b||_0x2d8545||(_0x112a53=_0x2f3de9['fromRange'](_0xf649b6['createRangeIn'](_0x3195a8)));}else _0x1ee833&&!_0x14e179&&(_0xf5f570=_0xf649b6['createRangeIn'](_0x3195a8));}else{const _0x4778de=_0xf649b6['createElement']('tableCellSuggestion'),_0x120404=_0xf649b6['createElement']('tableCellSuggestion');_0xf649b6['wrap'](_0xf649b6['createRangeIn'](_0x3195a8),_0x120404),_0xf649b6['insert'](_0x4778de,_0x3195a8,0x0);for(const _0x4760a4 of Array['from'](_0x388755['getChildren']()))_0xf649b6['insert'](_0x4760a4,_0x4778de,'end');_0x112a53=_0x2f3de9['fromRange'](_0xf649b6['createRangeOn'](_0x4778de)),_0xf5f570=_0x2f3de9['fromRange'](_0xf649b6['createRangeOn'](_0x120404));}const _0x1e8bcb=Array['from'](_0x388755['getAttributes']())['filter'](([_0x84bd56])=>ge['includes'](_0x84bd56));_0x503fa2['cells']['push']({'element':_0x3195a8,'attributes':_0x1e8bcb['length']?Object['fromEntries'](_0x1e8bcb):null}),_0x112a53&&_0x503fa2['insertionRanges']['push'](_0x112a53),_0xf5f570&&_0x503fa2['deletionRanges']['push'](_0xf5f570);},{'priority':'high'}),_0x41a1b6['on']('insertColumns',(_0x510cad,_0x549e8d)=>{const [_0x29df6e,_0x10b8fd={}]=_0x549e8d;if(!_0x503fa2)return;const _0x131000=_0x10b8fd['at']||0x0,_0x193bf4=_0x10b8fd['columns']||0x1;_0x503fa2['columnInsertionIndexes']=new Array(_0x193bf4)['fill'](_0x131000)['map']((_0x17777e,_0x5cf887)=>_0x17777e+_0x5cf887);for(const {cell:_0x1a70ff}of _0x41a1b6['createTableWalker'](_0x29df6e,{'startColumn':_0x131000,'endColumn':_0x131000+_0x193bf4-0x1}))_0x503fa2['columnInsertionRanges']['push'](_0x4904d6['model']['createRangeOn'](_0x1a70ff));},{'priority':'low'}),_0x41a1b6['on']('insertRows',(_0x2a9ef8,_0x13aafc)=>{const [_0x405d84,_0x67a0b5={}]=_0x13aafc;if(!_0x503fa2)return;const _0x135a31=_0x67a0b5['at']||0x0,_0x12e871=_0x67a0b5['rows']||0x1;_0x503fa2['rowInsertionIndexes']=new Array(_0x12e871)['fill'](_0x135a31)['map']((_0x446ac5,_0xc2b33a)=>_0x446ac5+_0xc2b33a);for(const {cell:_0x35afb5}of _0x41a1b6['createTableWalker'](_0x405d84,{'startRow':_0x135a31,'endRow':_0x135a31+_0x12e871-0x1}))_0x503fa2['rowInsertionRanges']['push'](_0x4904d6['model']['createRangeOn'](_0x35afb5));},{'priority':'low'}),_0x7d4d57['descriptionFactory']['registerDescriptionCallback'](_0x26862f=>{if(_0x26862f['subType']&&_0x26862f['subType']['startsWith']('tablePaste'))return _0x26862f['previous']?{}:{'type':'insertion','content':o(_0x4904d6['locale'],'*Replace\x20table\x20cells*')};});const _0x2a39a8=()=>!0x1;for(const _0x5c5c69 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7d4d57['_suggestionFactory']['registerCustomCallback']('insertion',_0x5c5c69,'join',_0x2a39a8),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('deletion',_0x5c5c69,'join',_0x2a39a8),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c5c69,'join',_0x2a39a8);_0x7d4d57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2a39a8),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x286535,_0x20bfbd,_0xd57780)=>{const _0x8c86d1=_0x286535['map'](_0x56bb4a=>_0x56bb4a['getContainedElement']())['filter'](_0x1032e3=>_0x1032e3),_0x36b323=new Map(_0x8c86d1['map'](_0x3fc096=>[_0x3fc096,null]));if(_0x503fa2){for(const {element:_0x50691a,attributes:_0x4738ce}of _0x503fa2['cells'])_0x4738ce&&_0x36b323['set'](_0x50691a,_0x4738ce);}else{if(_0xd57780&&_0xd57780['markerAttributes'])for(const [_0x5c3cb6,_0x4419ae]of Object['entries'](_0xd57780['markerAttributes'])){const _0x32d0ea=_0x4904d6['model']['markers']['get'](_0x5c3cb6),_0xd3de20=_0x32d0ea?_0x32d0ea['getRange']()['getContainedElement']():null;_0xd3de20&&_0x36b323['set'](_0xd3de20,_0x4419ae);}}_0x4904d6['model']['change'](_0x38c477=>{for(const [_0x41a6f3,_0x1554d4]of _0x36b323)_0x38c477['setAttributes']({...Ce,..._0x1554d4},_0x41a6f3);});});const _0x4bff1a=(_0xb72c72,_0x121d51)=>{_0x7d4d57['_suggestionFactory']['registerCustomCallback'](_0xb72c72,'tablePaste',_0x121d51,(_0x289ee6,_0x524779,_0x131b08)=>{_0x4904d6['model']['change'](_0x1a2276=>{const _0x530557=[];for(const _0x499e93 of _0x289ee6){const _0x4762cf=_0x499e93['start']['nodeAfter'];_0x4762cf['is']('element','tableCellSuggestion')&&_0x530557['push'](_0x4762cf);}_0x7d4d57['_suggestionFactory']['getSuggestionCallback'](_0xb72c72,null,_0x121d51)(_0x289ee6,_0x524779,_0x131b08);for(const _0x404d07 of _0x530557)'$graveyard'!=_0x404d07['root']['rootName']&&_0x1a2276['unwrap'](_0x404d07);});});};_0x4bff1a('insertion','accept'),_0x4bff1a('insertion','discard'),_0x4bff1a('deletion','accept'),_0x4bff1a('deletion','discard'),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x333bd4=>{const _0x1f2664=_0x333bd4['map'](_0x3beb24=>_0x3beb24['getContainedElement']()),_0x5ee42f=_0x1f2664[0x0]['findAncestor']('table'),{minRow:_0x11f6c0,maxRow:_0x113d81}=_0xd8ca26['_getCoordsForCells'](_0x1f2664);_0x41a1b6['removeRows'](_0x5ee42f,{'at':_0x11f6c0,'rows':_0x113d81-_0x11f6c0+0x1});}),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2172e7=>{const _0x46656f=_0x2172e7['map'](_0x1b608b=>_0x1b608b['getContainedElement']()),_0x3eaa06=_0x46656f[0x0]['findAncestor']('table'),{minColumn:_0x56c9bc,maxColumn:_0x12e483}=_0xd8ca26['_getCoordsForCells'](_0x46656f);_0x41a1b6['removeColumns'](_0x3eaa06,{'at':_0x56c9bc,'columns':_0x12e483-_0x56c9bc+0x1});});const _0xc23a63=(_0x466a4c,_0x1d4260)=>{if(!_0x1d4260['subType']||!_0x1d4260['subType']['startsWith']('tablePaste'))return;const _0x470dcc=_0x1d4260['attributes']['tablePasteChainId'],_0x2ff85a=_0x7d4d57['getSuggestions']()['filter'](_0x1c07c5=>_0x1c07c5['isInContent']&&_0x1c07c5['attributes']&&_0x1c07c5['attributes']['tablePasteChainId']==_0x470dcc);_0x2ff85a['length']&&_0x1d4260['getAllAdjacentSuggestions']()['length']!=_0x2ff85a['length']&&_0x2ff85a['reduce']((_0x92fc98,_0x726a3c)=>(_0x92fc98['next']=_0x726a3c,_0x726a3c['previous']=_0x92fc98,_0x726a3c));};function _0x53a8a8(_0x2b70fe,_0x4c3fc1=!0x0){const {id:_0xc9779a}=_0x7d4d57['_splitMarkerName'](_0x2b70fe['markerName']),_0x5eb835=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x19b93c=_0x7d4d57['activeMarkers']['includes'](_0x2b70fe['markerName']);return _0x19b93c&&_0x5eb835['push']('ck-suggestion-marker--active'),{'classes':_0x5eb835,'attributes':{'data-suggestion':_0xc9779a},'priority':_0x19b93c&&_0x4c3fc1?0xbc2:0xbb8};}_0x7d4d57['on']('suggestionLoaded',_0xc23a63,{'priority':'high'}),_0x7d4d57['on']('suggestionUnloaded',_0xc23a63,{'priority':'high'}),_0x4904d6['model']['document']['registerPostFixer'](()=>{let _0x234ef2=!0x1;const _0x5b0476=Array['from'](_0x4904d6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bbbe3,data:_0x807946}of _0x5b0476){const {group:_0x4ed083,type:_0x3ad452,id:_0x26e5ab}=_0x7d4d57['_splitMarkerName'](_0x1bbbe3);if('suggestion'!=_0x4ed083||'deletion'!=_0x3ad452||_0x807946['oldRange'])continue;if(!_0x7d4d57['hasSuggestion'](_0x26e5ab))continue;const _0x5c332b=_0x7d4d57['getSuggestion'](_0x26e5ab)['getRanges'](),_0x425761=_0x4904d6['plugins']['get']('Users')['me'];for(const _0x4c5e96 of _0x7d4d57['getSuggestions']()){if(!_0x4c5e96['isInContent']||_0x4c5e96['author']!=_0x425761)continue;if('formatBlock'!=_0x4c5e96['type']||'tablePasteCell'!=_0x4c5e96['subType'])continue;if(_0x4c5e96['getRanges']()['every'](_0x25f36a=>_0x5c332b['some'](_0x5d82f4=>_0x5d82f4['containsRange'](_0x25f36a,!0x0)))){for(const _0x251044 of _0x4c5e96['getAllAdjacentSuggestions']())_0x251044['isInContent']&&(_0x251044['discard'](),_0x234ef2=!0x0);}}}return _0x234ef2;}),_0x4904d6['model']['document']['registerPostFixer'](_0x12fd3f=>{const _0x3609e0=_0x4904d6['commands']['get']('redo');if(!_0x3609e0||!_0x3609e0['_createdBatches']['has'](_0x12fd3f['batch']))return!0x1;let _0x586c5d=!0x1;const _0x3e2f08=_0x4904d6['plugins']['get']('Users')['me'],_0x57fccc=_0x4904d6['model']['document']['differ']['getChanges'](),_0x25730c=Array['from'](_0x4904d6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x8179f0,data:_0x51bd5d})=>{const {group:_0x3b517a,subType:_0x5aa4d7,authorId:_0x5582e4}=_0x7d4d57['_splitMarkerName'](_0x8179f0);return'suggestion'==_0x3b517a&&'tablePaste'==_0x5aa4d7&&_0x5582e4==_0x3e2f08['id']&&!_0x51bd5d['oldRange'];});for(const _0x21b708 of _0x57fccc){if('insert'!=_0x21b708['type']||'tableCellSuggestion'!=_0x21b708['name']||0x1!=_0x21b708['length'])continue;const _0x14e29e=_0x12fd3f['createRange'](_0x21b708['position'],_0x21b708['position']['getShiftedBy'](0x1));if(!_0x25730c['find'](({data:_0x2af1d5})=>_0x2af1d5['newRange']['isEqual'](_0x14e29e))){for(const {name:_0x4eeb85,data:_0x250be7}of _0x25730c)if(_0x14e29e['containsRange'](_0x250be7['newRange'])){_0x12fd3f['updateMarker'](_0x4eeb85,{'range':_0x14e29e}),_0x586c5d=!0x0;break;}}}return _0x586c5d;}),_0x4904d6['model']['document']['registerPostFixer'](_0x48cdb1=>{let _0x196d22=!0x1;const _0x3f7b21=_0x4904d6['plugins']['get']('Users')['me'],_0x162811=_0x7d4d57['getSuggestions']()['filter'](_0x3e7a33=>_0x3e7a33['isInContent']&&_0x3e7a33['author']==_0x3f7b21),_0xda59a5=new Set(),_0x58d486=new Set();for(const _0x7d4fd8 of _0x162811)if('tablePaste'==_0x7d4fd8['subType'])for(const _0x5e434f of _0x7d4fd8['getMarkers']()){const _0x4edfe6=_0x5e434f['getRange']()['getContainedElement']();if(_0x4edfe6){if(_0x4edfe6['is']('element','tableCellSuggestion')&&Pe(_0x4edfe6)){_0x7d4fd8['removeMarker'](_0x5e434f['name']),_0xda59a5['add'](_0x4edfe6),_0x196d22=!0x0;const _0x52a742=_0x4edfe6['nextSibling'],_0x50c5e5=_0x4edfe6['previousSibling'],_0x1f96d3=_0x52a742&&_0x52a742['is']('element','tableCellSuggestion'),_0x5a0d2c=_0x50c5e5&&_0x50c5e5['is']('element','tableCellSuggestion');_0x1f96d3&&!_0xda59a5['has'](_0x52a742)&&_0x58d486['add'](_0x52a742),_0x5a0d2c&&!_0xda59a5['has'](_0x50c5e5)&&_0x58d486['add'](_0x50c5e5);}else _0x4edfe6['is']('element','paragraph')&&_0x4edfe6['isEmpty']&&(_0x7d4fd8['removeMarker'](_0x5e434f['name']),_0x196d22=!0x0);}}else{if('tablePasteCell'==_0x7d4fd8['subType']){if(!_0x7d4fd8['attributes']||!_0x7d4fd8['attributes']['tablePasteChainId'])continue;const _0x4a3981=_0x7d4fd8['attributes']['markerAttributes'];if(_0x4a3981&&Object['keys'](_0x4a3981)['length'])continue;const _0x557a11=_0x7d4fd8['attributes']['tablePasteChainId'];let _0x21a204=!0x0,_0x2abb5e=!0x0;for(const _0x12ddac of _0x162811)if(_0x12ddac['subType']&&_0x12ddac['subType']['startsWith']('tablePaste')){if(!_0x12ddac['attributes']['tablePasteChainId']){_0x2abb5e=!0x1;break;}if(_0x12ddac['id']!=_0x7d4fd8['id']&&_0x12ddac['attributes']['tablePasteChainId']==_0x557a11){_0x21a204=!0x1;break;}}_0x2abb5e&&_0x21a204&&(_0x7d4fd8['removeMarkers'](),_0x196d22=!0x0);}}for(const _0x5e6c3d of _0xda59a5)_0x48cdb1['remove'](_0x5e6c3d);for(const _0x1fa37d of _0x58d486)_0x48cdb1['unwrap'](_0x1fa37d);return _0x196d22;}),_0x4904d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x959acf,_0x253595)=>_0x53a8a8(_0x959acf),'converterPriority':'high'}),_0x4904d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2e9dfe,_0x2e8183)=>_0x2e8183['options']['showSuggestionHighlights']?_0x53a8a8(_0x2e9dfe,!0x1):null,'converterPriority':'high'});const _0x589929=_0x4904d6['editing']['view'];this['listenTo'](_0x589929['document'],'clipboardOutput',(_0x5c27bb,_0x1edc26)=>{const _0x4c8085=[];for(const _0x50c967 of _0x589929['createRangeIn'](_0x1edc26['content'])['getItems']())_0x50c967['is']('element','suggestion-td')&&_0x4c8085['push'](_0x50c967);_0x589929['change'](_0x425e70=>{for(const _0x4b5280 of _0x4c8085)_0x425e70['move'](_0x425e70['createRangeIn'](_0x4b5280),_0x425e70['createPositionBefore'](_0x4b5280)),_0x425e70['remove'](_0x4b5280);});});}}function Pe(_0x464623){if(_0x464623['isEmpty'])return!0x0;const _0x372ecb=_0x464623['getChild'](0x0);return _0x372ecb['is']('element','paragraph')&&_0x372ecb['isEmpty'];}function he(_0x136557,_0x3df435={},_0x19bf45){for(const {isAnchor:_0x596c95,cellHeight:_0x209751,cellWidth:_0x473172}of _0x19bf45['createTableWalker'](_0x136557,{'includeAllSlots':!0x0,..._0x3df435}))if(!_0x596c95||0x1!=_0x209751||0x1!=_0x473172)return!0x1;return!0x0;}class vt extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x456148=this['editor']['plugins']['get']('TrackChangesEditing');_0x456148['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x456148['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x456148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x456148['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x456148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x456148['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x443b1b,_0x1ec158){const _0x5aa612=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd2bb44=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x193a21=_0x1ec158['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7fa22c=_0xd2bb44['getColumnGroupElement'](_0x193a21);let _0x3079d9=_0x7fa22c?_0xd2bb44['getTableColumnsWidths'](_0x7fa22c):null,_0x297704=_0x193a21['getAttribute']('tableWidth')||null;const _0x5bf563=_0x1ec158['tableWidth']||_0x297704,_0x51d65d=_0x1ec158['columnWidths']||_0x3079d9,_0x497463=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c1574 of _0x5aa612['getSuggestions']()){const _0x28df05=_0x5c1574['getContainedElement']();if('resizeTable'===_0x5c1574['subType']&&_0x28df05===_0x193a21){_0x5c1574['author']!==_0x497463&&_0x5c1574['discard']();const _0x1e13fc=_0x5c1574['data']['commandParams'];_0x297704=_0x1e13fc[0x0]['tableWidth'],_0x3079d9=_0x1e13fc[0x0]['columnWidths'];break;}}_0x443b1b({'table':_0x193a21,'tableWidth':_0x5bf563,'columnWidths':_0x51d65d}),_0x5aa612['markBlockFormat'](_0x193a21,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x297704,'columnWidths':_0x3079d9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2d5205){if('formatBlock'!=_0x2d5205['type']&&'formatInline'!=_0x2d5205['type'])return;const {data:_0x1db3ed}=_0x2d5205;if(_0x1db3ed&&'resizeTable'===_0x1db3ed['formatGroupId']){const _0x51198d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x51198d)};}}}class _t extends _0x5511a1{['afterInit'](){const _0x2bee96=this['editor'];_0x2bee96['plugins']['has']('Template')&&_0x2bee96['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x5511a1{['afterInit'](){const _0xdf1d66=this['editor'];if(!_0xdf1d66['commands']['get']('insertTableOfContents'))return;_0xdf1d66['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5b11fd=_0xdf1d66['plugins']['get']('TrackChangesEditing'),_0x359158=_0xdf1d66['locale'];_0x5b11fd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x138141=>o(_0x359158,'ELEMENT_TABLE_OF_CONTENTS',_0x138141));}}class Dt extends _0x5511a1{['afterInit'](){const _0x55edc8=this['editor'];if(!_0x55edc8['plugins']['has']('Title'))return;const _0x1d3fdf=_0x55edc8['plugins']['get']('TrackChangesEditing');_0x1d3fdf['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x55edc8['locale'],'ELEMENT_TITLE')),_0x55edc8['model']['document']['registerPostFixer'](_0x5bbfb6=>{let _0x1d74d6=!0x1;const _0x4aaabb=Array['from'](_0x55edc8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a775e,data:_0x4fb5b7}of _0x4aaabb){const {group:_0x5acc52}=_0x1d3fdf['_splitMarkerName'](_0x2a775e);if('suggestion'!==_0x5acc52||!_0x4fb5b7['newRange'])continue;const _0x14c9a7=_0x4fb5b7['newRange'],_0x2db760=_0x14c9a7['end']['nodeBefore'];if(!_0x2db760||!_0x2db760['is']('element','title-content'))continue;if(!_0x14c9a7['start']['isTouching'](_0x14c9a7['end']))continue;const _0x436eb9=_0x55edc8['model']['schema']['getNearestSelectionRange'](_0x14c9a7['end'],'forward');if(_0x436eb9&&_0x436eb9['isCollapsed']){const _0x54383c=_0x5bbfb6['createRange'](_0x14c9a7['start'],_0x436eb9['start']);_0x54383c['isEqual'](_0x14c9a7)||(_0x5bbfb6['updateMarker'](_0x2a775e,{'range':_0x54383c}),_0x1d74d6=!0x0);}_0x1d74d6||(_0x5bbfb6['removeMarker'](_0x2a775e),_0x1d74d6=!0x0);}return _0x1d74d6;});}}class Nt extends _0x5511a1{['afterInit'](){const _0x4bfd66=this['editor'],_0x2c7acb=_0x4bfd66['plugins']['get']('TrackChangesEditing');_0x4bfd66['plugins']['has']('UndoEditing')&&(_0x2c7acb['enableCommand']('undo'),_0x2c7acb['enableCommand']('redo'));}}class Mt extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x33e0f3=this['editor'];if(!_0x33e0f3['plugins']['has']('TableCaptionEditing'))return;_0x33e0f3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5511a1{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x893514=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2847ee of this['tableProperties'])_0x893514['enableCommand'](_0x2847ee,(_0x642404,_0x22e5bb)=>{const _0x501ab3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2847ee,[_0x501ab3],this['tableProperties'],'tableProperties',_0x642404,_0x22e5bb);});_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x893514['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5032a3,_0x45f0b8)=>this['handleDiscardAction'](this['tableProperties'],_0x5032a3,_0x45f0b8)),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4dacb0 of this['tableCellProperties'])_0x893514['enableCommand'](_0x4dacb0,(_0x22c262,_0x337958)=>{const _0x1897e0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4dacb0,_0x1897e0,this['tableCellProperties'],'tableCellProperties',_0x22c262,_0x337958);});_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x893514['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2f9344,_0x23f3af)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2f9344,_0x23f3af)),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x893514['descriptionFactory']['registerDescriptionCallback'](_0x284e5e=>this['handleSuggestionDescription'](_0x284e5e));}['_handlePropertyChange'](_0xd48d71,_0x287eca,_0x1e69cb,_0x45e9b4,_0x2ce32d,_0x407f57){const _0x928421=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x407f57['batch'],()=>{for(const _0x19761c of _0x287eca){if(this['_getSuggestion'](_0x19761c,_0x45e9b4))_0x2ce32d(_0x407f57);else{const _0x1e60a9={};for(const _0x5c573d of _0x1e69cb){const _0x4265b0=_0x19761c['getAttribute'](_0x5c573d);void 0x0!==_0x4265b0&&(_0x1e60a9[_0x5c573d]=_0x4265b0);}_0x2ce32d(_0x407f57),_0x928421['markBlockFormat'](_0x19761c,{'commandParams':[_0x1e60a9]},[],_0x45e9b4);}}});}['handleDiscardAction'](_0x720bc6,_0x1e0dae,_0x2016ed){const _0x43981a=_0x1e0dae[0x0]['start']['nodeAfter'],_0x51f7b7=_0x2016ed['commandParams'][0x0];this['editor']['model']['change'](_0x2fd97d=>{for(const _0x35a12e of _0x720bc6)void 0x0!==_0x51f7b7[_0x35a12e]?_0x2fd97d['setAttribute'](_0x35a12e,_0x51f7b7[_0x35a12e],_0x43981a):_0x2fd97d['removeAttribute'](_0x35a12e,_0x43981a);});}['handleSuggestionDescription'](_0x2cf56d){if(_0x2cf56d['data'])switch(_0x2cf56d['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'](_0x4d1ede,_0xe98c74){const _0x1c8ab4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2dd8ee of _0x1c8ab4['getSuggestions']({'skipNotAttached':!0x0})){const _0x22b70b=_0x2dd8ee['getContainedElement']();if(_0x2dd8ee['subType']===_0xe98c74&&_0x22b70b===_0x4d1ede)return _0x2dd8ee;}return null;}constructor(_0xc4c4b7){super(_0xc4c4b7),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 _0x5511a1{static get['requires'](){return['CommentsRepository',_0xd07c79,_0x1cf68b,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 _0x4e4a27=this['editor'],_0x2a182a=(_0x52247f,_0x327b1e)=>{if('attribute'!=_0x52247f)return'ck-suggestion-marker-'+_0x52247f;const _0x41a93a=_0x327b1e['split']('|')[0x0];return this['_isBlockAttribute'](_0x41a93a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4e4a27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1ebecf=>{const {id:_0x17bbab,type:_0x5f11a4,subType:_0x5f1bea}=this['_splitMarkerName'](_0x1ebecf['markerName']),_0x2d557f=['ck-suggestion-marker',_0x2a182a(_0x5f11a4,_0x5f1bea)];let _0x57e4d0=0xbb8;return this['activeMarkers']['includes'](_0x1ebecf['markerName'])&&(_0x2d557f['push']('ck-suggestion-marker--active'),_0x57e4d0=0xbc2),'deletion'==_0x5f11a4&&(_0x57e4d0+=0x5),{'classes':_0x2d557f,'attributes':{'data-suggestion':_0x17bbab},'priority':_0x57e4d0};}}),_0x4e4a27['conversion']['for']('dataDowncast')['add'](_0x10340d=>{_0x10340d['on']('addMarker:suggestion',(_0x11997a,_0xe70bfc,_0x27290d)=>{if(!_0x27290d['options']['showSuggestionHighlights'])return;const _0x2ee726=_0xe70bfc['item'];if(!_0x2ee726)return;const _0x4da709=_0x27290d['mapper']['toViewElement'](_0x2ee726);_0x4e4a27['model']['schema']['isObject'](_0x2ee726)&&_0x4da709&&!_0x4da709['getCustomProperty']('widget')&&_0x4da709['is']('containerElement')&&_0x16e8d3(_0x4da709,_0x27290d['writer']);},{'priority':'high'});}),_0x4e4a27['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1a5909,_0x236366)=>{if(!_0x236366['options']['showSuggestionHighlights'])return null;const {type:_0x383911,subType:_0x36cc34}=this['_splitMarkerName'](_0x1a5909['markerName']);return{'classes':['ck-suggestion-marker',_0x2a182a(_0x383911,_0x36cc34)],'priority':0xbb8};}});const _0x23ae1d=({showActiveMarkers:_0x18a9a5=!0x0,isAttributeSuggestion:_0x58d3b6=!0x1}={})=>(_0x2950a8,_0x2feafc,_0x11dcea)=>{if(!_0x2feafc['item'])return;const {id:_0x55856b}=this['_splitMarkerName'](_0x2feafc['markerName']);if(_0x58d3b6){const _0x518014=this['_suggestions']['get'](_0x55856b),_0xa2f604=this['_getAttributeKey'](_0x518014);if(!this['_isBlockAttribute'](_0xa2f604))return;}if(_0x2feafc['item']['is']('selection'))return void _0x11dcea['consumable']['consume'](_0x2feafc['item'],_0x2950a8['name']);const _0x4d0762=_0x11dcea['mapper']['toViewElement'](_0x2feafc['item']);if(_0x2feafc['item']['is']('element')&&_0x4e4a27['model']['schema']['isBlock'](_0x2feafc['item'])&&!_0x4d0762['getCustomProperty']('addHighlight')){_0x11dcea['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4d0762),_0x11dcea['writer']['setAttribute']('data-suggestion',_0x55856b,_0x4d0762),_0x11dcea['mapper']['bindElementToMarker'](_0x4d0762,_0x2feafc['markerName']),_0x18a9a5&&(this['activeMarkers']['includes'](_0x2feafc['markerName'])?_0x11dcea['writer']['addClass']('ck-suggestion-marker--active',_0x4d0762):_0x11dcea['writer']['removeClass']('ck-suggestion-marker--active',_0x4d0762));for(const _0x539b7f of _0x4e4a27['model']['createRangeIn'](_0x2feafc['item'])['getItems']())_0x11dcea['consumable']['consume'](_0x539b7f,_0x2950a8['name']);_0x11dcea['consumable']['consume'](_0x2feafc['item'],_0x2950a8['name']);}};_0x4e4a27['conversion']['for']('dataDowncast')['add'](_0x51b543=>{_0x51b543['on']('addMarker:suggestion:formatBlock',(_0xf5f4d2,_0x290e06,_0x12ff88)=>{_0x12ff88['options']['showSuggestionHighlights']&&_0x23ae1d({'showActiveMarkers':!0x1})(_0xf5f4d2,_0x290e06,_0x12ff88);},{'priority':'highest'});}),_0x4e4a27['conversion']['for']('dataDowncast')['add'](_0x303501=>{_0x303501['on']('addMarker:suggestion:attribute',(_0x27efef,_0x27bdde,_0x2ec46a)=>{_0x2ec46a['options']['showSuggestionHighlights']&&_0x23ae1d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x27efef,_0x27bdde,_0x2ec46a);},{'priority':'highest'});}),_0x4e4a27['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3fa008,_0x3b640d)=>_0x3b640d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3fa008['substr'](0xb)}}),_0x4e4a27['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x32a601,{writer:_0x43efb7})=>{let _0x471f13='suggestion:'+_0x32a601['getAttribute']('suggestion-type')+':'+_0x32a601['getAttribute']('id');return _0x32a601['getAttribute']('marker-count')&&(_0x471f13+=':'+_0x32a601['getAttribute']('marker-count')),_0x43efb7['createElement']('$marker',{'data-name':_0x471f13});}}),_0x4e4a27['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x8c87ae=>{_0x8c87ae['on']('addMarker:suggestion:formatBlock',_0x23ae1d(),{'priority':'high'});}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x28e5be=>{_0x28e5be['on']('addMarker:suggestion:attribute',_0x23ae1d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x5a16a2=>{_0x5a16a2['on']('removeMarker:suggestion:formatBlock',(_0x47b2d8,_0x59be2c,_0x514a95)=>{const _0x24d05a=_0x514a95['mapper']['markerNameToElements'](_0x59be2c['markerName']);if(_0x24d05a){for(const _0x345aec of _0x24d05a)_0x345aec['getCustomProperty']('addHighlight')||(_0x514a95['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x345aec),_0x514a95['writer']['removeAttribute']('data-suggestion',_0x345aec),_0x514a95['mapper']['unbindElementFromMarkerName'](_0x345aec,_0x59be2c['markerName']));}},{'priority':'high'});}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x4a8c96=>{_0x4a8c96['on']('removeMarker:suggestion:attribute',(_0x5a891f,_0x9a166,_0x1b3b85)=>{const _0x128416=_0x1b3b85['mapper']['markerNameToElements'](_0x9a166['markerName']);if(!_0x128416)return;const {id:_0x225691}=this['_splitMarkerName'](_0x9a166['markerName']),_0x20c88e=this['_suggestions']['get'](_0x225691),_0x3de158=this['_getAttributeKey'](_0x20c88e);if(this['_isBlockAttribute'](_0x3de158)){for(const _0xe10997 of _0x128416)_0xe10997['getCustomProperty']('addHighlight')||(_0x1b3b85['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe10997),_0x1b3b85['writer']['removeAttribute']('data-suggestion',_0xe10997),_0x1b3b85['mapper']['unbindElementFromMarkerName'](_0xe10997,_0x9a166['markerName']));}},{'priority':'high'});}),_0x4e4a27['model']['document']['registerPostFixer'](_0x1c585b=>{let _0x2c931d=!0x1;const _0x3556a3=Array['from'](_0x4e4a27['model']['document']['differ']['getChangedMarkers']()),_0x2c756e=new Set();for(const {name:_0x359c9e,data:_0x289a17}of _0x3556a3){const {group:_0x4ba0d4,type:_0x5f49e8,subType:_0x3f0e36,id:_0x4032b3}=this['_splitMarkerName'](_0x359c9e);if('suggestion'!==_0x4ba0d4)continue;const _0x79a185=this['_suggestions']['get'](_0x4032b3);if(null!=_0x289a17['newRange']){'formatInline'==_0x5f49e8&&(_0x2c931d=_0x2c931d||Et(_0x289a17['newRange'],_0x359c9e,_0x1c585b,_0x4e4a27['model']['schema']));const _0xf542df='attribute'==_0x5f49e8&&this['_isBlockAttribute'](_0x3f0e36['split']('|')[0x0]);if(_0x289a17['newRange']['isCollapsed']||'$graveyard'==_0x289a17['newRange']['root']['rootName']||'formatBlock'==_0x5f49e8&&!Ut(_0x289a17['newRange'])||_0xf542df&&!Ut(_0x289a17['newRange'])||'deletion'==_0x5f49e8&&!(!Tt(_0x4f225a=_0x289a17['newRange'])&&!function(_0x38f7e6){return _0x38f7e6['start']['parent']==_0x38f7e6['end']['nodeBefore']&&_0x38f7e6['start']['isAtEnd'];}(_0x4f225a)))_0x1c585b['removeMarker'](_0x359c9e),_0x2c931d=!0x0;else{if(!_0x79a185||!_0x79a185['isInContent'])continue;_0x2c756e['add'](_0x79a185);}}}var _0x4f225a;return _0x2c756e['size']>0x0&&(_0x2c931d=!!this['_joinWithAdjacentSuggestions'](_0x2c756e)||_0x2c931d),_0x2c931d;}),_0x4e4a27['model']['document']['registerPostFixer'](_0xb7c64e=>{let _0x371e69=!0x1;for(const _0x2e152d of _0x4e4a27['model']['document']['differ']['getChanges']())if('insert'==_0x2e152d['type'])for(const _0x56591c of this['_suggestions']['values']()){if(_0x56591c['isMultiRange']||!_0x56591c['isInContent'])continue;const _0x196f09='formatBlock'==_0x56591c['type'],_0x1cc561=this['_getAttributeKey'](_0x56591c),_0x1bb870=_0x1cc561&&this['_isBlockAttribute'](_0x1cc561);if(!_0x196f09&&!_0x1bb870)continue;const _0x12bcf0=_0x56591c['getFirstRange']();if(_0x12bcf0['start']['parent']!=_0x12bcf0['end']['parent']&&!_0x12bcf0['end']['isAtEnd']){const _0x519195=_0x4e4a27['model']['createPositionAt'](_0x12bcf0['start']['nodeAfter'],'end'),_0x39812d=_0x4e4a27['model']['createRange'](_0x12bcf0['start'],_0x519195);_0xb7c64e['updateMarker'](_0x56591c['getFirstMarker'](),{'range':_0x39812d}),_0x371e69=!0x0;}}return _0x371e69;}),_0x4e4a27['model']['document']['registerPostFixer'](_0x4737fd=>this['_processAttributeChanges'](_0x4737fd)),_0x4e4a27['model']['document']['registerPostFixer'](_0x12779a=>!_0x12779a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x12779a)),_0x4e4a27['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e4a27['model']['document']['on']('change:data',(_0x2377a3,_0x17929b)=>{if(!_0x17929b['isLocal']||_0x17929b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4a9522=_0x4e4a27['model']['document']['differ']['getChanges']();if(0x0==_0x4a9522['length'])return;const _0x29725e=[],_0x7d6684=_0x4a9522['filter'](_0x100077=>'attribute'==_0x100077['type']),_0x546af2=_0x4a9522['filter'](_0x576157=>'insert'==_0x576157['type']&&'$text'!=_0x576157['name']),_0x229297=_0x4a9522['filter'](_0x31d70f=>'remove'==_0x31d70f['type']&&'$text'!=_0x31d70f['name']);for(const _0x5169e1 of _0x7d6684)this['_isRegisteredAttribute'](_0x5169e1['attributeKey'])&&_0x29725e['push']({'key':_0x5169e1['attributeKey'],'newValue':_0x5169e1['attributeNewValue'],'oldValue':_0x5169e1['attributeOldValue'],'range':Ot(_0x5169e1['range'],_0x4e4a27['model'])});for(const _0x20952f of _0x546af2){const _0x40bb5c=_0x229297['find'](_0x46af23=>_0x46af23['_element']===_0x20952f['_element']);if(_0x40bb5c){const _0x4adf65=Ft(_0x20952f['position']['nodeAfter'],_0x4e4a27['model']);_0x40bb5c['name']!==_0x20952f['name']&&_0x29725e['push']({'key':m,'newValue':_0x20952f['name'],'oldValue':_0x40bb5c['name'],'range':_0x4adf65});for(const [_0x314208,_0x4005e7]of _0x40bb5c['attributes']){if(!this['_isRegisteredAttribute'](_0x314208))continue;const _0x1b607f=_0x20952f['attributes']['get'](_0x314208);_0x4005e7!==_0x1b607f&&_0x29725e['push']({'key':_0x314208,'newValue':_0x1b607f,'oldValue':_0x4005e7,'range':_0x4adf65});}for(const [_0xabd6f0,_0x159d6f]of _0x20952f['attributes'])this['_isRegisteredAttribute'](_0xabd6f0)&&(_0x40bb5c['attributes']['has'](_0xabd6f0)||_0x29725e['push']({'key':_0xabd6f0,'newValue':_0x159d6f,'oldValue':null,'range':_0x4adf65}));}}0x0!=_0x29725e['length']&&_0x4e4a27['model']['enqueueChange'](_0x17929b,_0x76754d=>{const _0x4b8e5e=_0x4c61b3();for(const {range:_0x3deae4,key:_0x29b45c,oldValue:_0x21024a,newValue:_0x1ab1c2}of _0x29725e)this['markAttributeChange'](_0x3deae4,_0x29b45c,_0x21024a,_0x1ab1c2,{'groupId':_0x4b8e5e});this['_reduceExistingSuggestions'](_0x76754d,_0x29725e);});},{'priority':'lowest'}),_0x4e4a27['model']['markers']['on']('update:suggestion',(_0x365201,_0x5db660,_0x5d56ae)=>{if(null==_0x5d56ae){const {id:_0x1b4c48}=this['_splitMarkerName'](_0x5db660['name']),_0x48d6f6=this['_suggestions']['get'](_0x1b4c48);_0x48d6f6&&_0x48d6f6['addMarkerName'](_0x5db660['name']);}}),_0x4e4a27['model']['document']['on']('change:data',()=>{const _0x23f22a=Array['from'](_0x4e4a27['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46bc76=>'suggestion'===this['_splitMarkerName'](_0x46bc76['name'])['group']);if(0x0===_0x23f22a['length'])return;_0x23f22a['sort']((_0x22257e,_0x413518)=>{const _0x9809d4=_0x22257e['data']['oldRange'],_0x524f59=_0x413518['data']['oldRange'];return null===_0x9809d4&&null===_0x524f59?0x0:null===_0x9809d4&&null!==_0x524f59?-0x1:null!==_0x9809d4&&null===_0x524f59?0x1:_0x9809d4['start']['isBefore'](_0x524f59['start'])?-0x1:0x1;});const _0x4dc9cd=new Set(),_0x5b10ac=new Set();for(const {name:_0x2ed4cb,data:_0x737b00}of _0x23f22a){const {id:_0x1449b1}=this['_splitMarkerName'](_0x2ed4cb);if(null===_0x737b00['oldRange']){const _0x53a633=this['_handleNewSuggestionMarker'](_0x2ed4cb);_0x5b10ac['add'](_0x53a633);}else{const _0x28d466=this['_suggestions']['get'](_0x1449b1);null!==_0x737b00['newRange']||_0x28d466['isInContent']?(_0x4dc9cd['add'](_0x28d466['head']),_0x5b10ac['add'](_0x28d466)):this['_removeSuggestion'](_0x28d466);}}_0x5b10ac['size']>0x0&&this['_refreshSuggestionsChain'](_0x5b10ac);for(const _0x113b0b of _0x4dc9cd)this['fire']('suggestionChanged',_0x113b0b);}),_0x4e4a27['model']['on']('applyOperation',(_0xa7a0e7,_0x1ad1a2)=>{const _0xb1497a=_0x1ad1a2[0x0];if(!this['_suggestions']['size'])return;if(!_0xb1497a['isDocumentOperation'])return;if(_0xb1497a['batch']['isUndo']||!_0xb1497a['batch']['isLocal'])return;let _0x38ae61,_0x4051b3;switch(_0xb1497a['type']){case'insert':_0x38ae61=_0x4e4a27['model']['createPositionAt'](_0xb1497a['position']),_0x4051b3=_0x38ae61['getShiftedBy'](_0xb1497a['howMany']);break;case'split':_0x38ae61=_0x4e4a27['model']['createPositionAt'](_0xb1497a['splitPosition']),_0x4051b3=_0x4e4a27['model']['createPositionAt'](_0xb1497a['moveTargetPosition']);break;case'move':_0x38ae61=_0x4e4a27['model']['createPositionAt'](_0xb1497a['targetPosition']),_0x4051b3=_0x38ae61['getShiftedBy'](_0xb1497a['howMany']);break;default:return;}const _0x43b228=_0x4e4a27['model']['createRange'](_0x38ae61,_0x4051b3);_0x4e4a27['model']['change'](()=>{for(const {suggestion:_0xff9da5,meta:_0x11f453}of this['_findSuggestions'](_0x43b228)){if(_0xff9da5['isMultiRange'])continue;if('formatInline'==_0xff9da5['type'])continue;const _0x22921b=this['_getAttributeKey'](_0xff9da5);if(_0x22921b&&this['_isBlockAttribute'](_0x22921b)&&'split'!=_0xb1497a['type'])continue;const _0x5c748d=_0xff9da5['data']&&_0xff9da5['data']['multipleBlocks'];('formatBlock'!=_0xff9da5['type']||'split'==_0xb1497a['type']&&!_0x5c748d)&&(_0x11f453['containsRangeInObject']||'insertion'==_0xff9da5['type']&&_0x11f453['isOwn']||_0xff9da5['getFirstRange']()['containsRange'](_0x43b228)&&this['_breakSuggestionMarker'](_0xff9da5,_0x38ae61,_0x4051b3));}});},{'priority':'lowest'}),_0x4e4a27['model']['on']('deleteContent',(_0x26e115,_0x5c4194)=>{const _0x5eb3c1=_0x5c4194[0x0],_0x175559=_0x5c4194[0x1];if(_0x175559&&_0x175559['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5eb3c1['isCollapsed'])return;const _0x19f85b=_0x4e4a27['model']['schema'],{start:_0x34ee64,end:_0x7bb222}=_0x5eb3c1['getFirstRange'](),_0x75b9cd=_0x34ee64['nodeAfter']&&_0x19f85b['isLimit'](_0x34ee64['nodeAfter'])?null:_0x19f85b['getNearestSelectionRange'](_0x34ee64,'forward'),_0x21f2c2=_0x7bb222['nodeBefore']&&_0x19f85b['isLimit'](_0x7bb222['nodeBefore'])?null:_0x19f85b['getNearestSelectionRange'](_0x7bb222,'backward'),_0x5b8b99=_0x4e4a27['model']['createRange'](_0x75b9cd?_0x75b9cd['start']:_0x34ee64,_0x21f2c2?_0x21f2c2['end']:_0x7bb222);_0x4e4a27['model']['change'](_0x4322e1=>{this['markDeletion'](_0x5b8b99);const _0x217945=_0x4e4a27['model']['schema']['getNearestSelectionRange'](_0x5b8b99['start']);_0x5eb3c1['is']('documentSelection')?_0x4322e1['setSelection'](_0x217945):_0x5eb3c1['setTo'](_0x217945);}),_0x26e115['stop']();},{'priority':_0x4b8876['normal']+0xa}),_0x4e4a27['model']['on']('insertContent',(_0x1f56ef,_0x3bb1c5)=>{const _0x436208=_0x3bb1c5[_0x3bb1c5['length']-0x1];_0x436208&&_0x436208['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e4a27['model']['change'](()=>{let _0x279b6d=_0x4e4a27['model']['insertContent'](_0x3bb1c5[0x0],_0x3bb1c5[0x1],_0x3bb1c5[0x2],{'forceDefaultExecution':!0x0});if(!_0x279b6d)return;_0x1f56ef['return']=_0x279b6d['clone']();const _0x3a9fb3=_0x279b6d['end']['nodeBefore'],_0x34e426=_0x4e4a27['model']['schema'];_0x3a9fb3&&_0x34e426['isBlock'](_0x3a9fb3)&&!_0x34e426['isObject'](_0x3a9fb3)&&(_0x279b6d=_0x4e4a27['model']['createRange'](_0x279b6d['start'],_0x4e4a27['model']['createPositionAt'](_0x3a9fb3,'end'))),this['markInsertion'](_0x279b6d);}),_0x1f56ef['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xdccfc0=new $(_0x4e4a27,this['_suggestions']);_0x4e4a27['commands']['add']('acceptSuggestion',_0xdccfc0),this['enableCommand']('acceptSuggestion');const _0xb48b5c=new B(_0x4e4a27,this['_suggestions']);_0x4e4a27['commands']['add']('discardSuggestion',_0xb48b5c),this['enableCommand']('discardSuggestion'),_0x4e4a27['commands']['add']('acceptAllSuggestions',new x(_0x4e4a27,_0xdccfc0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e4a27['commands']['add']('discardAllSuggestions',new x(_0x4e4a27,_0xb48b5c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e4a27['commands']['add']('acceptSelectedSuggestions',new R(_0x4e4a27,_0xdccfc0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e4a27['commands']['add']('discardSelectedSuggestions',new R(_0x4e4a27,_0xb48b5c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4843af=_0x4e4a27['plugins']['get']('CommentsRepository');this['listenTo'](_0x4843af,'addComment',(_0x3c626d,{threadId:_0x22de98})=>{const _0x15bc8d=this['_suggestions']['get'](_0x22de98);_0x15bc8d&&_0x15bc8d['commentThread']&&0x1===_0x15bc8d['commentThread']['length']&&this['_updateSuggestionData'](_0x22de98,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4843af,'removeComment',(_0x3b0e84,{threadId:_0x3b6491})=>{const _0x16503f=this['_suggestions']['get'](_0x3b6491);_0x16503f&&_0x16503f['commentThread']&&!_0x16503f['commentThread']['length']&&this['_updateSuggestionData'](_0x3b6491,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3ef95f){if(this['_adapter'])throw new _0x5a2cc3('track-changes-adapter-already-set',this);this['_adapter']=_0x3ef95f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3fd386=!0x1,toJSON:_0x13ed6e=!0x1}={}){const _0x1fa7ff=[];for(const _0x3725fb of this['_suggestions']['values']())_0x3fd386&&!_0x3725fb['isInContent']||_0x1fa7ff['push'](_0x3725fb);return _0x13ed6e?_0x1fa7ff['map'](_0xc26895=>_0xc26895['toJSON']()):_0x1fa7ff;}['getSuggestion'](_0x142817){const _0x4b1010=this['_suggestions']['get'](_0x142817);if(!_0x4b1010)throw new _0x5a2cc3('track-changes-suggestion-not-found',this);return _0x4b1010;}['hasSuggestion'](_0x4a5b02){return this['_suggestions']['has'](_0x4a5b02);}['addSuggestionData'](_0x55915f){const {authorId:_0x2f7365,id:_0x53f78c,attributes:_0x2c9d84}=_0x55915f,[_0x4ff266,_0x143adb]=_0x55915f['type']['split'](':'),_0x3cb923=this['_suggestions']['get'](_0x53f78c)||this['_createSuggestion'](_0x4ff266,_0x143adb,_0x53f78c,_0x2f7365,_0x2c9d84);if(this['_addThreadToSuggestion'](_0x3cb923),this['_checkSuggestionCorrectness'](_0x3cb923,_0x4ff266,_0x143adb||null,_0x2f7365),_0x3cb923['createdAt']=_0x55915f['createdAt'],_0x3cb923['_isDataLoaded']=!0x0,_0x2c9d84&&_0x2c9d84['@external']){const _0x2e2f20=_0x2c9d84['@external'],_0x1bfeed=this['_getExternalAuthor'](_0x2e2f20['authorName']);_0x3cb923['authoredAt']=_0x2e2f20['createdAt'],_0x3cb923['author']=_0x1bfeed,_0x3cb923['isExternal']=!0x0;}else _0x3cb923['authoredAt']=_0x55915f['createdAt'];switch(_0x55915f['data']&&(_0x3cb923['data']=_0x55915f['data']),_0x55915f['attributes']&&(_0x3cb923['attributes']=_0x55915f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3cb923['_saved']=!0x0),this['_suggestionState']['get'](_0x3cb923)){case'notReady':this['_suggestionState']['set'](_0x3cb923,'dataReady');break;case'markerReady':_0x3cb923['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3cb923])),this['_refreshSuggestionsChain'](new Set([_0x3cb923])),this['_suggestionState']['set'](_0x3cb923,'ready'),this['fire']('suggestionLoaded',_0x3cb923)):this['_suggestionState']['set'](_0x3cb923,'removed');}return _0x3cb923;}['acceptSuggestion'](_0x4b4e9e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45ff39 of _0x4b4e9e['getAllAdjacentSuggestions']())_0x45ff39['accept']();});});}['discardSuggestion'](_0x4ed5d6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xccda22 of _0x4ed5d6['getAllAdjacentSuggestions']())_0xccda22['discard']();});});}['enableCommand'](_0x5e80f5,_0x32cbe6){const _0xb5b164=this['editor']['commands']['get'](_0x5e80f5);if(!_0xb5b164)throw new _0x5a2cc3('track-changes-command-not-found',this,{'commandName':_0x5e80f5});if(this['_enabledCommands']['has'](_0xb5b164))throw new _0x5a2cc3('track-changes-enable-command-twice',this,{'commandName':_0x5e80f5});this['_enabledCommands']['add'](_0xb5b164),_0x32cbe6&&_0xb5b164['on']('execute',(_0x4abbe6,_0x5b544f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b544f['length']>0x0&&_0x5b544f[_0x5b544f['length']-0x1]&&_0x5b544f[_0x5b544f['length']-0x1]['forceDefaultExecution']?_0x5b544f['pop']():(_0x4abbe6['return']=_0x32cbe6((..._0x246ad9)=>_0xb5b164['execute'](..._0x246ad9,{'forceDefaultExecution':!0x0}),..._0x5b544f),_0x4abbe6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x411e86){let _0x407d62,_0x5dc6b4;const _0x379b9f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x407d62=_0x411e86();}catch(_0x1b22d0){_0x5dc6b4=_0x1b22d0;}return _0x379b9f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5dc6b4&&_0x5a2cc3['rethrowUnexpectedError'](_0x5dc6b4,this),_0x407d62;}['markInsertion'](_0x4afaae,_0x5035dd=null,_0x371aad={}){if(_0x4afaae['isCollapsed'])return null;const _0x19b949=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x27fa82,meta:_0x343c17}of this['_findSuggestions'](_0x4afaae,'insertion'))if(_0x343c17['isOwn']){if(!_0x343c17['isNextTo']){if(_0x343c17['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x27fa82,_0x371aad))continue;return _0x27fa82;}if(Lt(_0x27fa82,_0x371aad))return _0x27fa82;this['_breakSuggestionMarker'](_0x27fa82,_0x4afaae['start'],_0x4afaae['end']);break;}if(_0x5035dd==_0x27fa82['subType']&&Lt(_0x27fa82,_0x371aad)){const _0x29ed42=_0x27fa82['getFirstRange']();return _0x29ed42['start']['isEqual'](_0x4afaae['end'])?this['_setSuggestionRange'](_0x27fa82,this['_model']['createRange'](_0x4afaae['start'],_0x29ed42['end'])):this['_setSuggestionRange'](_0x27fa82,this['_model']['createRange'](_0x29ed42['start'],_0x4afaae['end'])),_0x27fa82;}}const _0x5c3efb=_0x4c61b3(),_0x4a9f14=_0x19b949['id'],_0xf4cb42=_0x5035dd?'insertion:'+_0x5035dd:'insertion',_0x6abee1=this['_setSuggestionData']({'id':_0x5c3efb,'type':_0xf4cb42,'createdAt':new Date(),'authorId':_0x4a9f14,'attributes':_0x371aad});return this['_addSuggestionMarker'](_0xf4cb42,_0x5c3efb,_0x4a9f14,_0x4afaae),_0x6abee1;}['markMultiRangeInsertion'](_0x35bcfa,_0xfc962c='multi',_0x38110d={}){const _0x170c55=this['editor']['plugins']['get']('Users')['me'],_0x3ccfe9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xfc962c,'join');for(const _0x33d5af of this['getSuggestions']())if(_0x33d5af['author']['id']==_0x170c55['id']&&'insertion'==_0x33d5af['type']&&_0x33d5af['subType']==_0xfc962c&&Lt(_0x33d5af,_0x38110d)&&(_0x3ccfe9(_0x33d5af['getRanges'](),_0x35bcfa)||_0x3ccfe9(_0x35bcfa,_0x33d5af['getRanges']()))){for(const _0x567be1 of _0x35bcfa)_0x33d5af['addRange'](_0x567be1);return _0x33d5af;}for(const {suggestion:_0x32e5ef,meta:_0xe878fb}of this['_findSuggestions'](_0x35bcfa,'insertion')){if(!_0xe878fb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xe878fb['containsRangeInObject'])continue;if(!Lt(_0x32e5ef,_0x38110d))continue;let _0x3934b3=!0x0;for(const _0x1f87ed of _0x32e5ef['getRanges']())for(const _0x191554 of _0x35bcfa)if(!_0x1f87ed['containsRange'](_0x191554)){_0x3934b3=!0x1;break;}if(_0x3934b3)return _0x32e5ef;}const _0x44706b=_0x4c61b3(),_0x43ee8f=_0x170c55['id'],_0x569137='insertion:'+_0xfc962c,_0x32f2f9=this['_setSuggestionData']({'id':_0x44706b,'type':_0x569137,'createdAt':new Date(),'authorId':_0x43ee8f,'attributes':_0x38110d});for(const _0x319012 of _0x35bcfa)this['_addSuggestionMarker'](_0x569137,_0x44706b,_0x43ee8f,_0x319012,u['getMultiRangeId']());return _0x32f2f9;}['markInlineFormat'](_0x41f9c2,_0x999cec,_0x50045c=null,_0x9566ca={}){if(_0x50045c=_0x50045c||Vt(_0x999cec),_0x41f9c2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5e50e6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50045c,'accept');return this['forceDefaultExecution'](()=>_0x5e50e6([_0x41f9c2],_0x999cec,_0x9566ca)),null;}const _0x22b962=this['editor']['plugins']['get']('Users')['me'],_0x86629e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x40b632,meta:_0x16fc64}of this['_findSuggestions'](_0x41f9c2,'insertion'))_0x16fc64['isOwn']&&!_0x16fc64['isInsideObject']&&_0x86629e['push'](..._0x40b632['getRanges']());}const _0x28a45f=function(_0x530b13,_0x58c2da){const _0x51c4de=[];for(const _0x3c815d of _0x58c2da){const _0x3a1413=_0x530b13['getIntersection'](_0x3c815d);_0x3a1413&&_0x51c4de['push'](_0x3a1413);}return _0x51c4de;}(_0x41f9c2,_0x86629e),_0x1adce7=function(_0x2939b2,_0x326f6d){const _0x20d722=[_0x2939b2];for(const _0x488cfe of _0x326f6d){let _0x5f3165=0x0;for(;_0x5f3165<_0x20d722['length'];){const _0x268761=_0x20d722[_0x5f3165]['getDifference'](_0x488cfe);_0x20d722['splice'](_0x5f3165,0x1,..._0x268761),_0x5f3165+=_0x268761['length'];}}return _0x20d722;}(_0x41f9c2,_0x86629e);_0x28a45f['length']&&this['_model']['change'](()=>{for(const _0x329e6c of _0x28a45f){const _0x57b6d7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50045c,'accept');this['forceDefaultExecution'](()=>_0x57b6d7([_0x329e6c],_0x999cec,_0x9566ca));}});for(const _0x184448 of _0x1adce7){let _0x358505=null,_0x2aef44=_0x184448['start'],_0x4fe0f6=_0x184448['end'];for(const {suggestion:_0x203530,meta:_0x3cb417}of this['_findSuggestions'](_0x184448,'formatInline')){if(!_0x3cb417['isOwn'])continue;if(_0x203530['subType']!=_0x50045c)continue;if(!Lt(_0x203530,_0x9566ca))continue;const _0xca57ac=_0x203530['getFirstRange']();if(_0xca57ac['containsRange'](_0x184448,!0x0))return null;_0x2aef44=_0x2aef44['isBefore'](_0xca57ac['start'])?_0x2aef44:_0xca57ac['start'],_0x4fe0f6=_0x4fe0f6['isAfter'](_0xca57ac['end'])?_0x4fe0f6:_0xca57ac['end'],_0x358505?_0xca57ac['start']['isBefore'](_0x358505['getFirstRange']()['start'])?(_0x358505['removeMarkers'](),_0x358505=_0x203530):_0x203530['removeMarkers']():_0x358505=_0x203530;}const _0x12b59b=this['_model']['createRange'](_0x2aef44,_0x4fe0f6);if(_0x358505)this['_setSuggestionRange'](_0x358505,_0x12b59b);else{const _0x512e96=_0x4c61b3(),_0xc2f54f=_0x22b962['id'];this['_setSuggestionData']({'id':_0x512e96,'type':'formatInline:'+_0x50045c,'data':_0x999cec,'createdAt':new Date(),'authorId':_0xc2f54f,'attributes':_0x9566ca}),this['_addSuggestionMarker']('formatInline:'+_0x50045c,_0x512e96,_0xc2f54f,_0x12b59b);}}return null;}['markBlockFormat'](_0x4f2f59,_0x2a951a,_0x4ef304=[],_0x579208=null,_0x5dc6d3={}){_0x2a951a['formatGroupId']||(_0x2a951a['formatGroupId']=_0x2a951a['commandName']),_0x2a951a['multipleBlocks']=_0x4f2f59['is']('range'),_0x579208=_0x579208||Vt(_0x2a951a);const _0x505690=_0x4ef304['map'](_0x278927=>Ft(_0x278927,this['_model'])),_0x2a7cc6=_0x4f2f59['is']('range')?_0x4f2f59:Ft(_0x4f2f59,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1c05d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x579208,'accept');return this['forceDefaultExecution'](()=>_0x1c05d4([_0x2a7cc6],_0x2a951a,_0x5dc6d3)),null;}_0x505690['push'](_0x2a7cc6);let _0x2e6d2f=!0x0;for(const _0x36c1a5 of _0x505690)if(!this['_rangeIsInLocalUserInsertion'](_0x36c1a5)){_0x2e6d2f=!0x1;break;}if(_0x2e6d2f&&'always'!==this['_trackFormatChanges']){const _0xef9194=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x579208,'accept');return this['forceDefaultExecution'](()=>_0xef9194([_0x2a7cc6],_0x2a951a,_0x5dc6d3)),null;}let _0x1936ac=null,_0x5c10f0=_0x2a7cc6['start'],_0x338ae3=_0x2a7cc6['end'];for(const {suggestion:_0x4492ac,meta:_0x3e4f88}of this['_findSuggestions'](_0x2a7cc6,'formatBlock')){if(!_0x3e4f88['isOwn'])continue;if(_0x3e4f88['isNextTo']||_0x3e4f88['containsRangeInObject']||_0x3e4f88['isInsideObject'])continue;if(_0x4492ac['data']['formatGroupId']!=_0x2a951a['formatGroupId'])continue;if(!Lt(_0x4492ac,_0x5dc6d3))continue;const _0x4c2b75=_0x4492ac['getFirstRange']();if(_0x4492ac['subType']==_0x579208){if(_0x4c2b75['containsRange'](_0x2a7cc6,!0x0))return null;_0x5c10f0=_0x5c10f0['isBefore'](_0x4c2b75['start'])?_0x5c10f0:_0x4c2b75['start'],_0x338ae3=_0x338ae3['isAfter'](_0x4c2b75['end'])?_0x338ae3:_0x4c2b75['end'],_0x1936ac?_0x4c2b75['start']['isBefore'](_0x1936ac['getFirstRange']()['start'])?(_0x1936ac['removeMarkers'](),_0x1936ac=_0x4492ac):_0x4492ac['removeMarkers']():_0x1936ac=_0x4492ac;}else{const _0xf2e37c=_0x2a7cc6['getIntersection'](_0x4c2b75);this['_cutOutSuggestionMarker'](_0x4492ac,_0xf2e37c);}}const _0x206dc7=this['editor']['plugins']['get']('Users')['me'],_0x3c2ec6=_0x4c61b3(),_0xccc48c=_0x206dc7['id'];if(_0x1936ac)return this['_setSuggestionRange'](_0x1936ac,this['_model']['createRange'](_0x5c10f0,_0x338ae3)),_0x1936ac;{const _0x2092b9=this['_setSuggestionData']({'id':_0x3c2ec6,'type':'formatBlock:'+_0x579208,'data':_0x2a951a,'createdAt':new Date(),'authorId':_0xccc48c,'attributes':_0x5dc6d3});return this['_addSuggestionMarker']('formatBlock:'+_0x579208,_0x3c2ec6,_0xccc48c,this['_model']['createRange'](_0x5c10f0,_0x338ae3)),_0x2092b9;}}['markMultiRangeBlockFormat'](_0x1a718a,_0x5322c8,_0x4bc7bd=[],_0x5db26c=null,_0x59ff92={}){_0x5322c8['formatGroupId']||(_0x5322c8['formatGroupId']=_0x5322c8['commandName']);const _0x1ba0be=_0x1a718a[0x0];_0x5322c8['multipleBlocks']=_0x1ba0be['is']('range'),_0x5db26c=_0x5db26c||Vt(_0x5322c8);const _0x507de0=_0x4bc7bd['map'](_0x31dbab=>Ft(_0x31dbab,this['_model'])),_0x465077=_0x1ba0be['is']('range')?_0x1a718a:_0x1a718a['map'](_0x51cfc5=>Ft(_0x51cfc5,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3f720b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5db26c,'accept');return this['forceDefaultExecution'](()=>_0x3f720b(_0x465077,_0x5322c8,_0x59ff92)),null;}_0x507de0['push'](..._0x465077);let _0xefef2=!0x0;for(const _0x33663b of _0x507de0)if(!this['_rangeIsInLocalUserInsertion'](_0x33663b)){_0xefef2=!0x1;break;}if(_0xefef2&&'always'!==this['_trackFormatChanges']){const _0x518786=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5db26c,'accept');return this['forceDefaultExecution'](()=>_0x518786(_0x465077,_0x5322c8,_0x59ff92)),null;}const _0x83aad1=this['editor']['plugins']['get']('Users')['me'];for(const _0x20d0dd of this['getSuggestions']()){if(_0x20d0dd['author']['id']!=_0x83aad1['id'])continue;if('formatBlock'!=_0x20d0dd['type']||_0x20d0dd['data']['formatGroupId']!=_0x5322c8['formatGroupId'])continue;if(!Lt(_0x20d0dd,_0x59ff92))continue;const _0x3ed49a=_0x20d0dd['subType']==_0x5db26c;for(let _0xfb5073=0x0;_0xfb5073<_0x465077['length'];_0xfb5073++){const _0x1ee534=_0x465077[_0xfb5073];for(const _0x1cab0e of _0x20d0dd['getMarkers']()){const _0x1a5659=_0x1cab0e['getRange']();if(_0x1ee534['isEqual'](_0x1a5659)){_0x3ed49a?(_0x465077['splice'](_0xfb5073,0x1),_0xfb5073--):_0x20d0dd['removeMarker'](_0x1cab0e['name']);break;}}}}if(0x0==_0x465077['length'])return null;const _0x17dc27=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5db26c,'join');for(const _0xe98ef of this['getSuggestions']())if(_0xe98ef['author']['id']==_0x83aad1['id']&&'formatBlock'==_0xe98ef['type']&&_0xe98ef['data']['formatGroupId']==_0x5322c8['formatGroupId']&&_0xe98ef['subType']==_0x5db26c&&Lt(_0xe98ef,_0x59ff92)&&(_0x17dc27(_0xe98ef['getRanges'](),_0x465077)||_0x17dc27(_0x465077,_0xe98ef['getRanges']()))){for(const _0x416a9c of _0x465077)_0xe98ef['addRange'](_0x416a9c);return _0xe98ef;}const _0x1180a6=_0x4c61b3(),_0x4a2aac=_0x83aad1['id'],_0x15f6bc='formatBlock:'+_0x5db26c,_0x180f82=this['_setSuggestionData']({'id':_0x1180a6,'type':_0x15f6bc,'data':_0x5322c8,'createdAt':new Date(),'authorId':_0x4a2aac,'attributes':_0x59ff92});for(const _0x3bfe2c of _0x465077)this['_addSuggestionMarker'](_0x15f6bc,_0x1180a6,_0x4a2aac,_0x3bfe2c,u['getMultiRangeId']());return _0x180f82;}['markDeletion'](_0x13ccbc,_0x25b4d4=null,_0x1660d6={}){if(_0x13ccbc['isCollapsed'])return null;const _0x23d9f5=this['editor']['plugins']['get']('Users')['me'],_0x71ceb3=new _0x2f3de9(_0x13ccbc['start'],_0x13ccbc['end']);for(const {suggestion:_0x3ff4ba,meta:_0x1f494f}of this['_findSuggestions'](_0x71ceb3,'insertion'))if(_0x1f494f['isOwn']&&!_0x1f494f['isNextTo']){if(_0x3ff4ba['isMultiRange']){const _0x19356b=_0x3ff4ba['getRanges']()['filter'](_0x14652c=>'$graveyard'!=_0x14652c['root']['rootName']);_0x19356b['every'](_0x285b21=>_0x71ceb3['containsRange'](_0x285b21,!0x0))&&_0x3ff4ba['discard']();if(_0x19356b['some'](_0x14a055=>_0x14a055['containsRange'](_0x71ceb3,!0x0))){const _0x54e9b2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25b4d4,'accept');return this['forceDefaultExecution'](()=>_0x54e9b2([_0x71ceb3],null,_0x1660d6)),null;}}else{const _0x393f65=_0x71ceb3['getIntersection'](_0x3ff4ba['getFirstRange']());null!==_0x393f65&&_0x3ff4ba['_onDiscard']([_0x393f65],null,_0x1660d6);}}if(_0x71ceb3['detach'](),_0x71ceb3['isCollapsed']||'$graveyard'==_0x71ceb3['root']['rootName'])return null;let _0xf88fbf=null,_0x4e0b8b=_0x71ceb3['start'],_0x32cc6b=_0x71ceb3['end'];const _0x503c47=this['_findSuggestions'](_0x71ceb3,'deletion');for(const {suggestion:_0x1f7a85,meta:_0x3792ad}of _0x503c47){const _0xd01e46=this['_model']['createRange'](_0x4e0b8b,_0x32cc6b);if(_0x3792ad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3792ad['containsRangeInObject']&&!_0x3792ad['isInsideObject'])){if(_0x1f7a85['isMultiRange']){if(!Lt(_0x1f7a85,_0x1660d6))continue;let _0x19cb86=!0x0;for(const _0x191400 of _0x1f7a85['getRanges']()){if(_0x191400['containsRange'](_0xd01e46,!0x0))return _0x1f7a85;_0xd01e46['containsRange'](_0x191400)||(_0x19cb86=!0x1);}_0x19cb86&&_0x1f7a85['discard']();}else{const _0x2764d9=_0x1f7a85['getFirstRange']();if(_0x2764d9['containsRange'](_0xd01e46,!0x0))return _0x1f7a85;if(!Lt(_0x1f7a85,_0x1660d6)){_0xd01e46['containsRange'](_0x2764d9)?_0x1f7a85['removeMarkers']():_0x2764d9['containsPosition'](_0x4e0b8b)?_0x4e0b8b=_0x2764d9['end']:_0x2764d9['containsPosition'](_0x32cc6b)&&(_0x32cc6b=_0x2764d9['start']);continue;}_0x4e0b8b=_0x4e0b8b['isBefore'](_0x2764d9['start'])?_0x4e0b8b:_0x2764d9['start'],_0x32cc6b=_0x32cc6b['isAfter'](_0x2764d9['end'])?_0x32cc6b:_0x2764d9['end'],_0x1660d6=Object['assign']({},_0x1f7a85['attributes']),_0xf88fbf?_0x2764d9['start']['isBefore'](_0xf88fbf['getFirstRange']()['start'])?(_0xf88fbf['removeMarkers'](),_0xf88fbf=_0x1f7a85):_0x1f7a85['removeMarkers']():_0xf88fbf=_0x1f7a85;}}}if(_0xf88fbf)return this['_setSuggestionRange'](_0xf88fbf,this['_model']['createRange'](_0x4e0b8b,_0x32cc6b)),_0xf88fbf;{const _0x1fa8f3=_0x4c61b3(),_0x48e155=this['_model']['createRange'](_0x4e0b8b,_0x32cc6b),_0x3b91c7=_0x23d9f5['id'],_0xc93856=_0x25b4d4?'deletion:'+_0x25b4d4:'deletion',_0x40be8a=this['_setSuggestionData']({'id':_0x1fa8f3,'type':_0xc93856,'createdAt':new Date(),'authorId':_0x3b91c7,'attributes':_0x1660d6});return this['_addSuggestionMarker'](_0xc93856,_0x1fa8f3,_0x3b91c7,_0x48e155),_0x40be8a;}}['markMultiRangeDeletion'](_0x49644f,_0x438968='multi',_0x273992={}){const _0x23ca16=this['editor']['plugins']['get']('Users')['me'],_0x364a99=_0x49644f['map'](_0x386a5f=>new _0x2f3de9(_0x386a5f['start'],_0x386a5f['end'])),_0x10610d=new Set();for(const {suggestion:_0xa9b24c,meta:_0x1330a9}of this['_findSuggestions'](_0x364a99,'insertion'))_0x1330a9['isOwn']&&!_0x1330a9['isNextTo']&&_0x10610d['add'](_0xa9b24c);for(const _0x5dacf5 of _0x10610d)if(_0x5dacf5['isMultiRange']){const _0x53f15c=_0x5dacf5['getRanges']();(!_0x5dacf5['attributes']||!_0x5dacf5['attributes']['skipNestingCheck'])&&(_0x53f15c['every'](_0x3ea168=>_0x364a99['some'](_0x57c685=>_0x57c685['containsRange'](_0x3ea168,!0x0)))&&_0x5dacf5['discard']());if(_0x364a99['every'](_0x3a3790=>_0x53f15c['some'](_0x141b15=>_0x141b15['containsRange'](_0x3a3790,!0x0)))){const _0x2ba823=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x438968,'accept');return this['forceDefaultExecution'](()=>_0x2ba823(_0x49644f,null,_0x273992)),null;}}else{const _0x4ea60f=_0x5dacf5['getFirstRange']();_0x364a99['some'](_0x3d8b77=>_0x3d8b77['containsRange'](_0x4ea60f,!0x0))&&_0x5dacf5['discard']();if(_0x364a99['every'](_0x1de432=>_0x4ea60f['containsRange'](_0x1de432,!0x0))){const _0x1a71b8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x438968,'accept');return this['forceDefaultExecution'](()=>_0x1a71b8(_0x364a99,null,_0x273992)),null;}}const _0x3766d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x438968,'join');let _0x290fda=null;for(const _0x4821b8 of this['getSuggestions']())if(_0x4821b8['author']['id']==_0x23ca16['id']&&_0x4821b8['isInContent']&&'deletion'==_0x4821b8['type']&&_0x4821b8['subType']==_0x438968&&Lt(_0x4821b8,_0x273992)&&(_0x3766d6(_0x4821b8['getRanges'](),_0x364a99)||_0x3766d6(_0x364a99,_0x4821b8['getRanges']()))){if(_0x290fda){if(_0x4821b8['commentThread']&&_0x4821b8['commentThread']['length'])continue;for(const _0x85fe2d of _0x4821b8['getRanges']())_0x290fda['isIntersectingWithRange'](_0x85fe2d)||_0x290fda['addRange'](_0x85fe2d);_0x4821b8['removeMarkers']();}else{_0x290fda=_0x4821b8;for(const _0x599ba0 of _0x364a99)_0x4821b8['isIntersectingWithRange'](_0x599ba0)||_0x4821b8['addRange'](_0x599ba0);}}if(_0x290fda)return _0x290fda;_0x10610d['clear']();for(const {suggestion:_0x4ef432,meta:_0xae4b5f}of this['_findSuggestions'](_0x364a99,'deletion'))_0xae4b5f['isOwn']&&(this['_mergeNestedSuggestions']||!_0xae4b5f['containsRangeInObject']&&!_0xae4b5f['isInsideObject'])&&Lt(_0x4ef432,_0x273992)&&_0x10610d['add'](_0x4ef432);for(const _0x2b417c of _0x10610d){const _0xb98d84=_0x2b417c['getRanges']();if(!_0x273992||!_0x273992['skipNestingCheck']){if(_0x364a99['every'](_0x495e17=>_0xb98d84['some'](_0x6881f=>_0x6881f['containsRange'](_0x495e17,!0x0))))return _0x2b417c;}(!_0x2b417c['attributes']||!_0x2b417c['attributes']['skipNestingCheck'])&&(_0xb98d84['every'](_0x581d42=>_0x364a99['some'](_0x2cbdc6=>_0x2cbdc6['containsRange'](_0x581d42,!0x0)))&&_0x2b417c['discard']());}const _0x5b74b0=_0x4c61b3(),_0x32e682=_0x23ca16['id'],_0x1fd1e4='deletion:'+_0x438968,_0xaa07f8=this['_setSuggestionData']({'id':_0x5b74b0,'type':_0x1fd1e4,'createdAt':new Date(),'authorId':_0x32e682,'attributes':_0x273992});for(const _0x300c93 of _0x364a99)_0x300c93['detach'](),_0x300c93['isCollapsed']||'$graveyard'==_0x300c93['root']['rootName']||this['_addSuggestionMarker'](_0x1fd1e4,_0x5b74b0,_0x32e682,_0x300c93,u['getMultiRangeId']());return _0xaa07f8;}['markAttributeChange'](_0x3ac28a,_0x32cb3c,_0xa2e48d,_0x3e519b,_0x3c17a7){if(_0x3ac28a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2563c0=this['editor']['plugins']['get']('Users')['me']['id'],_0xb1021f=Array['from'](this['_suggestions']['values']())['filter'](_0x50d62a=>'attribute'==_0x50d62a['type']&&_0x50d62a['data']['key']==_0x32cb3c&&_0x50d62a['isIntersectingWithRange'](_0x3ac28a));if('default'===this['_trackFormatChanges']){const _0x362906=this['_findSuggestions'](_0x3ac28a,'insertion')['filter'](({meta:_0x3fa4c6})=>_0x3fa4c6['isOwn']&&!_0x3fa4c6['isInsideObject']&&!_0x3fa4c6['isNextTo'])['map'](({suggestion:_0x4bae9b})=>_0x4bae9b);_0xb1021f['unshift'](..._0x362906);}const _0x3007c0=new Map([[_0x3ac28a,_0xa2e48d]]);for(const _0x41b9e1 of _0xb1021f){const _0x4b8982='attribute'==_0x41b9e1['type']?_0x41b9e1['data']['oldValue']:void 0x0,_0x622875=_0x41b9e1['getFirstRange'](),_0x563a03=Array['from'](_0x3007c0['keys']())['find'](_0x5c237c=>_0x5c237c['isIntersecting'](_0x622875));if(!_0x563a03)continue;const _0x3dc124=_0x563a03['getDifference'](_0x622875);this['_isBlockAttribute'](_0x32cb3c)&&'insertion'==_0x41b9e1['type']&&0x0!=_0x3dc124['length']||(_0x3007c0['delete'](_0x563a03),_0x3dc124['forEach'](_0x1e0b90=>{_0x3007c0['set'](_0x1e0b90,_0xa2e48d);}),'insertion'!=_0x41b9e1['type']&&_0x4b8982!=_0x3e519b&&_0x3007c0['set'](_0x563a03['getIntersection'](_0x622875),_0x4b8982));}const _0x5d8d99=[];for(const [_0x574f36,_0x3886c6]of _0x3007c0){const _0x5b33f9=_0x4c61b3(),_0x22b57f={'key':_0x32cb3c,'oldValue':_0x3886c6,'newValue':_0x3e519b};_0x32cb3c['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':_0x32cb3c});const _0x199f03=('attribute:'+(_0x32cb3c+'|'+Vt({'newValue':_0x3e519b})))['substring'](0x0,0x3c),_0x4a4d0e=this['_setSuggestionData']({'id':_0x5b33f9,'type':_0x199f03,'data':_0x22b57f,'createdAt':new Date(),'authorId':_0x2563c0,'attributes':_0x3c17a7});_0x5d8d99['push'](_0x4a4d0e),this['_addSuggestionMarker'](_0x199f03,_0x5b33f9,_0x2563c0,_0x574f36);}return _0x5d8d99;}['enableDefaultAttributesIntegration'](_0x5d00a2){this['enableCommand'](_0x5d00a2,(_0x343bef,..._0x141863)=>{this['_recordAttributeChanges'](()=>{_0x343bef(..._0x141863);});});}['registerBlockAttribute'](_0x2ce806){this['_blockAttributeKeys']['add'](_0x2ce806);}['registerInlineAttribute'](_0x2752fe){this['_inlineAttributeKeys']['add'](_0x2752fe);}['_getAttributeKey'](_0x2d54f1){return'attribute'==_0x2d54f1['type']?_0x2d54f1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x41fe11,_0x2127f1){const _0x2c9b9d=_0x41fe11['getFirstMarker']();this['_model']['change'](_0x429137=>{_0x429137['updateMarker'](_0x2c9b9d,{'range':_0x2127f1});});}['_addThreadToSuggestion'](_0x331aa4){const _0x47091c=_0x331aa4['id'],_0x3d0cdd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47091c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d0cdd,'threadId':_0x47091c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbbd05e=this['_commentsRepository']['getCommentThread'](_0x47091c);_0xbbd05e['unbind']('isRemovable'),_0xbbd05e['isRemovable']=!0x1,_0x331aa4['commentThread']=_0xbbd05e;}['_checkSuggestionCorrectness'](_0x1b7016,_0x1b7856,_0x4bab67,_0x1f77ec){if(_0x1b7016['type']!=_0x1b7856||_0x1b7016['subType']!=_0x4bab67||_0x1b7016['creator']['id']!=_0x1f77ec)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5a2cc3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x28b4f2,_0x2225b5){const _0x31bca3=_0x28b4f2['getFirstRange']();if(_0x2225b5['isEqual'](_0x31bca3))_0x28b4f2['removeMarkers']();else{if(_0x31bca3['containsRange'](_0x2225b5)){const _0x225345=this['_model']['createPositionAt'](_0x2225b5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28b4f2,this['_model']['createRange'](_0x31bca3['start'],_0x225345));const _0x1c8d07=_0x4c61b3(),_0x509c4f=_0x28b4f2['creator']['id'],_0x5ec387=_0x28b4f2['type']+':'+_0x28b4f2['subType'];this['_setSuggestionData']({'id':_0x1c8d07,'type':_0x5ec387,'createdAt':new Date(),'authorId':_0x509c4f,'data':_0x28b4f2['data'],'attributes':_0x28b4f2['attributes']});const _0x41819c=this['_model']['createPositionAt'](_0x2225b5['end']['parent'],'after'),_0x274088=this['_model']['createRange'](_0x41819c,_0x31bca3['end']);this['_addSuggestionMarker'](_0x5ec387,_0x1c8d07,_0x509c4f,_0x274088);}else{if(_0x31bca3['containsPosition'](_0x2225b5['start'])){const _0x3f0b29=this['_model']['createPositionAt'](_0x2225b5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28b4f2,this['_model']['createRange'](_0x31bca3['start'],_0x3f0b29));}else{const _0x2bca87=this['_model']['createPositionAt'](_0x2225b5['end']['parent'],'after');this['_setSuggestionRange'](_0x28b4f2,this['_model']['createRange'](_0x2bca87,_0x31bca3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x41c634){for(const {suggestion:_0x48e7b6,meta:_0xe188ae}of this['_findSuggestions'](_0x41c634,'insertion')){if(!_0xe188ae['isOwn'])continue;const _0x529fe2=_0x48e7b6['getRanges']();for(const _0x3a395e of _0x529fe2)if(!_0x41c634['getDifference'](_0x3a395e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x493429){const _0x2f6a1f=this['editor']['plugins']['get']('Users')['getUser'](_0x493429);if(!_0x2f6a1f)throw new _0x5a2cc3('track-changes-user-not-found',this);return _0x2f6a1f;}['_getExternalAuthor'](_0x310603){const _0x108de4=this['editor']['plugins']['get']('Users'),_0x41ac85=_0x18968b('external:'+_0x310603),_0x400660=_0x108de4['getUser'](_0x41ac85);return _0x400660||_0x108de4['addUser']({'id':_0x41ac85,'name':_0x310603});}['_createSuggestion'](_0x40d641,_0x6b8644,_0x2a9c94,_0x38df5a,_0x44f498){const _0x4dcec0=this['_getAuthorFromId'](_0x38df5a),_0x55eed2=this['_suggestionFactory']['buildSuggestion'](_0x40d641,_0x6b8644,_0x2a9c94,_0x4dcec0,_0x44f498,_0x711af7=>{this['_updateSuggestionData'](_0x2a9c94,{'attributes':_0x711af7});const _0x2c32fa=this['getSuggestion'](_0x2a9c94);this['_joinWithAdjacentSuggestions'](new Set([_0x2c32fa])),this['_refreshSuggestionsChain'](new Set([_0x2c32fa]));});return this['listenTo'](_0x55eed2,'accept',()=>{this['_updateSuggestionData'](_0x2a9c94,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x55eed2,'discard',()=>{this['_updateSuggestionData'](_0x2a9c94,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a9c94,_0x55eed2),this['_suggestionState']['set'](_0x55eed2,'notReady'),_0x55eed2;}['_splitMarkerName'](_0x40bb4f){const _0x1903fc=_0x40bb4f['split'](':');return{'group':_0x1903fc[0x0],'type':_0x1903fc[0x1],'subType':_0x1903fc['length']>=0x5?_0x1903fc[0x2]:null,'id':_0x1903fc['length']<0x5?_0x1903fc[0x2]:_0x1903fc[0x3],'authorId':_0x1903fc['length']<0x5?_0x1903fc[0x3]:_0x1903fc[0x4],'markerCount':0x6==_0x1903fc['length']?_0x1903fc[0x5]:null};}['_breakSuggestionMarker'](_0x32649d,_0x540a76,_0x125fc7){const _0x4d3201=_0x32649d['getFirstRange'](),_0x226d4f=_0x4d3201['start'],_0x4474e6=_0x4d3201['end'];this['_setSuggestionRange'](_0x32649d,this['_model']['createRange'](_0x226d4f,_0x540a76));const _0x2f4cfd=_0x4c61b3(),_0x3e3df8=_0x32649d['creator']['id'],_0x3664e8=_0x32649d['type']+(_0x32649d['subType']?':'+_0x32649d['subType']:'');this['_setSuggestionData']({'id':_0x2f4cfd,'type':_0x3664e8,'createdAt':new Date(),'authorId':_0x3e3df8,'originalSuggestionId':_0x32649d['id'],'attributes':_0x32649d['attributes'],'data':_0x32649d['data']});const _0x57f3db=this['_getAttributeKey'](_0x32649d);('formatBlock'==_0x32649d['type']||_0x57f3db&&this['_isBlockAttribute'](_0x57f3db))&&(_0x125fc7=this['_model']['createPositionBefore'](_0x125fc7['parent'])),this['_addSuggestionMarker'](_0x3664e8,_0x2f4cfd,_0x3e3df8,this['_model']['createRange'](_0x125fc7,_0x4474e6));}['_findSuggestions'](_0x42d4a6,_0x24d5a8=null){const _0x2b7013=[],_0x106c0b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x42d4a6)||(_0x42d4a6=[_0x42d4a6]);for(const _0x3158db of this['getSuggestions']()){if(!_0x3158db['isInContent'])continue;if(_0x24d5a8&&_0x3158db['type']!=_0x24d5a8)continue;let _0x45df1c=!0x1;for(const _0x45695f of _0x3158db['getRanges']()){for(const _0x445e3e of _0x42d4a6){const _0x289d70=_0x445e3e['start']['isEqual'](_0x45695f['end'])||_0x445e3e['end']['isEqual'](_0x45695f['start']);if(_0x289d70||_0x445e3e['getIntersection'](_0x45695f)){const _0x3c1ab9=_0x445e3e['containsRange'](_0x45695f)&&Rt(this['_model']['schema'],_0x45695f['start'],_0x445e3e),_0xde25bd=_0x45695f['containsRange'](_0x445e3e)&&Rt(this['_model']['schema'],_0x445e3e['start'],_0x45695f);_0x2b7013['push']({'suggestion':_0x3158db,'meta':{'isOwn':_0x106c0b==_0x3158db['author'],'isNextTo':_0x289d70,'isInsideObject':_0x3c1ab9,'containsRangeInObject':_0xde25bd}}),_0x45df1c=!0x0;break;}}if(_0x45df1c)break;}}return _0x2b7013;}['_addSuggestionMarker'](_0x2a940b,_0x474c39,_0x3f00f5,_0x2978f8,_0x5be55d){this['_model']['change'](_0x29f6e6=>{let _0x47db74='suggestion:'+_0x2a940b+':'+_0x474c39+':'+_0x3f00f5;_0x5be55d&&(_0x47db74=_0x47db74+':'+_0x5be55d),_0x29f6e6['addMarker'](_0x47db74,{'range':_0x2978f8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3d92d4){const _0x4f5664=_0x3d92d4['previous'],_0x4732fa=_0x3d92d4['next'];_0x3d92d4['previous']=null,_0x3d92d4['next']=null,null!=_0x4f5664&&_0x4f5664['next']==_0x3d92d4&&(_0x4f5664['next']=_0x4732fa),null!=_0x4732fa&&_0x4732fa['previous']==_0x3d92d4&&(_0x4732fa['previous']=_0x4f5664),'ready'==this['_suggestionState']['get'](_0x3d92d4)&&(this['_suggestionState']['set'](_0x3d92d4,'removed'),this['fire']('suggestionUnloaded',_0x3d92d4,_0x4f5664,_0x4732fa));}['_setSuggestionData'](_0x617f4d){const _0x455636=_0x617f4d['id'],_0xa0eb23=this['addSuggestionData'](_0x617f4d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1017a7=this['editor']['plugins']['get']('PendingActions'),_0x51f8ad=_0xa0eb23['hasComments'],_0x33a00c=_0xa0eb23['subType']?_0xa0eb23['type']+':'+_0xa0eb23['subType']:_0xa0eb23['type'],_0x2685db=this['editor']['locale'],_0x17418e=_0x1017a7['add'](o(_0x2685db,'PENDING_ACTION_SUGGESTION')),_0x4f29e0={'id':_0x455636,'type':_0x33a00c,'hasComments':_0x51f8ad,'data':_0x617f4d['data']||null,'originalSuggestionId':_0x617f4d['originalSuggestionId']||null,'attributes':_0xa0eb23['attributes']};this['_adapter']['addSuggestion'](_0x4f29e0)['then'](_0xb257c4=>{_0xa0eb23['_saved']=!0x0,_0x1017a7['remove'](_0x17418e),_0xb257c4&&_0xb257c4['createdAt']&&(this['_suggestions']['get'](_0x455636)['createdAt']=_0xb257c4['createdAt']);})['catch'](_0x4e1c82=>{throw _0x396ae6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xa0eb23['discard']();}),_0xa0eb23['stopListening'](),this['_suggestions']['delete'](_0xa0eb23['id']),this['_suggestionState']['delete'](_0xa0eb23),_0x4e1c82;});}return _0xa0eb23;}['_isBlockAttribute'](_0x4c3e0d){return this['_blockAttributeKeys']['has'](_0x4c3e0d);}['_updateSuggestionData'](_0x4acc96,_0x2073c6){const _0xee46c6=this['editor']['plugins']['get']('PendingActions'),_0x17127a=this['getSuggestion'](_0x4acc96);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x17127a['_saved']){const _0x16cadb=_0xee46c6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4acc96,_0x2073c6)['then'](()=>{_0xee46c6['remove'](_0x16cadb);});}else _0x17127a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4acc96,_0x2073c6);});}}['_getSuggestionData'](_0x3ad020){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5a2cc3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3ad020);}['_handleNewSuggestionMarker'](_0x383a00){const {id:_0x512b58,type:_0x4455a5,subType:_0x3a40b8,authorId:_0x1f0e78}=this['_splitMarkerName'](_0x383a00),_0x4fb92b=this['_suggestions']['get'](_0x512b58)||this['_createSuggestion'](_0x4455a5,_0x3a40b8,_0x512b58,_0x1f0e78,{});switch(this['_checkSuggestionCorrectness'](_0x4fb92b,_0x4455a5,_0x3a40b8,_0x1f0e78),this['_suggestionState']['get'](_0x4fb92b)){case'notReady':this['_getSuggestionData'](_0x512b58)['then'](_0x25461d=>{let _0x468957=Promise['resolve']();_0x25461d['hasComments']&&(_0x468957=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x512b58})),_0x468957['then'](()=>{this['addSuggestionData'](_0x25461d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4fb92b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x512b58,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4fb92b,'ready'),this['fire']('suggestionLoaded',_0x4fb92b);break;case'ready':this['fire']('suggestionChanged',_0x4fb92b);}return _0x4fb92b['addMarkerName'](_0x383a00),_0x4fb92b;}['_refreshSuggestionsChain'](_0x190cb2){const _0x2b6e35=Array['from'](_0x190cb2),_0xcec5d9=_0x2b6e35['filter'](_0x40419c=>'attribute'==_0x40419c['type']);this['_refreshAttributeSuggestionsChain'](_0xcec5d9);const _0x224d01=_0x2b6e35['filter'](_0x2d7776=>!_0x2d7776['isMultiRange']&&'attribute'!=_0x2d7776['type']),_0x1a096f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3108e3=>!_0x3108e3['isMultiRange']&&'attribute'!=_0x3108e3['type']),_0x53a1b1=_0x1a096f['filter'](_0x17f5a8=>!_0x190cb2['has'](_0x17f5a8)),_0x3ccee1=new Map(_0x1a096f['map'](_0xb84509=>[_0xb84509,this['_suggestionFactory']['getSuggestionCallback'](_0xb84509['type'],_0xb84509['subType'],'chain')])),_0x5e94b3=new Map(_0x1a096f['map'](_0x2aa459=>[_0x2aa459,_0x2aa459['getFirstRange']()])),_0x317d0b=new Set(),_0x357574=new Set();for(let _0x1dd0df=0x0;_0x1dd0df<_0x224d01['length'];_0x1dd0df++)_0x2dc247(_0x224d01[_0x1dd0df],_0x224d01,_0x1dd0df+0x1);for(let _0x1c294d=0x0;_0x1c294d<_0x224d01['length'];_0x1c294d++)_0x2dc247(_0x224d01[_0x1c294d],_0x53a1b1,0x0);const _0x159857=new Set();for(let _0x1ae714=0x0;_0x1ae714<_0x224d01['length'];_0x1ae714++){const _0x11581c=_0x224d01[_0x1ae714];!_0x357574['has'](_0x11581c)&&_0x11581c['previous']&&(_0x159857['add'](_0x11581c['previous']),_0x11581c['previous']['next']===_0x11581c&&(_0x11581c['previous']['next']=null),_0x11581c['previous']=null),!_0x317d0b['has'](_0x11581c)&&_0x11581c['next']&&(_0x159857['add'](_0x11581c['next']),_0x11581c['next']['previous']===_0x11581c&&(_0x11581c['next']['previous']=null),_0x11581c['next']=null);}function _0x2dc247(_0x472722,_0x1f1e3b,_0x38849c){for(let _0x4e6817=_0x38849c;_0x4e6817<_0x1f1e3b['length'];_0x4e6817++){const _0x20ae66=_0x118797(_0x472722,_0x1f1e3b[_0x4e6817]);_0x20ae66&&(_0x20ae66[0x0]['next']=_0x20ae66[0x1],_0x20ae66[0x1]['previous']=_0x20ae66[0x0],_0x317d0b['add'](_0x20ae66[0x0]),_0x357574['add'](_0x20ae66[0x1]));}}function _0x118797(_0xb5d7a8,_0x28e67){if(_0xb5d7a8['author']['id']!==_0x28e67['author']['id'])return null;const _0x414e61=_0x3ccee1['get'](_0xb5d7a8)(_0xb5d7a8,_0x28e67,_0x5e94b3['get'](_0xb5d7a8),_0x5e94b3['get'](_0x28e67));if(!_0x414e61)return null;return _0x3ccee1['get'](_0x28e67)(_0xb5d7a8,_0x28e67,_0x5e94b3['get'](_0xb5d7a8),_0x5e94b3['get'](_0x28e67))?_0x414e61[0x1]['commentThread']&&_0x414e61[0x1]['commentThread']['length']?null:_0x414e61:null;}_0x159857['size']&&this['_refreshSuggestionsChain'](_0x159857);}['_refreshAttributeSuggestionsChain'](_0x4a349b){if(0x0==_0x4a349b['length'])return;const _0x57e27b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x187740=>'attribute'==_0x187740['type']&&_0x187740['_isDataLoaded']),_0x4c0b4e=[],_0x110685=new Map();for(const _0x85da58 of _0x57e27b){const _0x87d26=_0x18968b(_0x85da58['attributes']);_0x110685['has'](_0x87d26)||(_0x110685['set'](_0x87d26,_0x4c0b4e['length']),_0x4c0b4e['push']([]));const _0x14078f=_0x110685['get'](_0x87d26);_0x4c0b4e[_0x14078f]['push'](_0x85da58);}!(function(){_0x4c0b4e['sort']((_0x5980b9,_0x24be23)=>{const _0x21728e=_0x5980b9[0x0]['createdAt'],_0x12bec6=_0x24be23[0x0]['createdAt'];return _0x21728e==_0x12bec6?_0x5980b9[0x0]['attributes']['groupId']<_0x24be23[0x0]['attributes']['groupId']?-0x1:0x1:_0x21728e<_0x12bec6?-0x1:0x1;});for(const _0x31b732 of _0x4c0b4e)_0x31b732['sort']((_0x30eca9,_0x3be671)=>_0x30eca9['id']<_0x3be671['id']?-0x1:0x1);}());for(let _0x4f7485=0x0;_0x4f7485<_0x4c0b4e['length'];_0x4f7485++){if(0x0==_0x4c0b4e[_0x4f7485]['length'])continue;const _0x5a94e3=[];for(let _0x2acedb=_0x4f7485+0x1;_0x2acedb<_0x4c0b4e['length'];_0x2acedb++)0x0!=_0x4c0b4e[_0x2acedb]['length']&&_0x469bd7(_0x4c0b4e[_0x4f7485],_0x4c0b4e[_0x2acedb])&&_0x5a94e3['push'](_0x2acedb);for(const _0x2d722 of _0x5a94e3)_0x4c0b4e[_0x4f7485]=_0x4c0b4e[_0x4f7485]['concat'](_0x4c0b4e[_0x2d722]),_0x4c0b4e[_0x2d722]=[];}for(const _0x1eeb3e of _0x4c0b4e)for(let _0x4ecd23=0x0;_0x4ecd23<_0x1eeb3e['length'];_0x4ecd23++)_0x1eeb3e[_0x4ecd23]['next']=_0x1eeb3e[_0x4ecd23+0x1]||null;for(const _0x2eb8f8 of _0x4c0b4e)for(let _0x3c9f68=0x0;_0x3c9f68<_0x2eb8f8['length'];_0x3c9f68++)_0x2eb8f8[_0x3c9f68]['previous']=_0x2eb8f8[_0x3c9f68-0x1]||null;function _0x469bd7(_0x45a70f,_0x122c1d){if(_0x45a70f[0x0]['attributes']['groupId']!==_0x122c1d[0x0]['attributes']['groupId']&&_0x45a70f[0x0]['author']!==_0x122c1d[0x0]['author'])return!0x1;if(!function(_0x22bb41,_0x210579){if(!_0x22bb41['hasComments']&&!_0x210579['hasComments'])return!0x0;if(_0x22bb41['hasComments']&&_0x210579['hasComments'])return!0x1;if(_0x22bb41['hasComments']&&_0x210579['createdAt']<_0x22bb41['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x210579['hasComments']&&_0x22bb41['createdAt']<_0x210579['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x45a70f[0x0],_0x122c1d[0x0]))return!0x1;const _0x497b7a=Bt(_0x45a70f[0x0]['attributes'],'groupId'),_0x3edcc2=Bt(_0x122c1d[0x0]['attributes'],'groupId');if(!_0x2368d0(_0x497b7a,_0x3edcc2))return!0x1;return!!_0x45a70f['every'](_0x20a6f9=>_0x122c1d['some'](_0x29e24c=>_0x20a6f9['getFirstRange']()['isEqual'](_0x29e24c['getFirstRange']())))&&_0x122c1d['every'](_0x4d4817=>_0x45a70f['some'](_0x57af42=>_0x4d4817['getFirstRange']()['isEqual'](_0x57af42['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1f9f70){const _0x51612d=Array['from'](_0x1f9f70),_0x33450c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38876c=_0x33450c['filter'](_0x5856bc=>!_0x1f9f70['has'](_0x5856bc)),_0x214b6e=new Map(_0x51612d['map'](_0x3d530f=>[_0x3d530f,this['_suggestionFactory']['getSuggestionCallback'](_0x3d530f['type'],_0x3d530f['subType'],'join')])),_0x3724b4=new Map(_0x33450c['map'](_0xafc0b3=>[_0xafc0b3,_0xafc0b3['getRanges']()]));for(let _0x1beebc=0x0;_0x1beebc<_0x51612d['length'];_0x1beebc++){if(_0xb22177(this,_0x51612d[_0x1beebc],_0x51612d,_0x1beebc+0x1))return!0x0;}for(let _0x1c6725=0x0;_0x1c6725<_0x51612d['length'];_0x1c6725++){if(_0xb22177(this,_0x51612d[_0x1c6725],_0x38876c,0x0))return!0x0;}return!0x1;function _0xb22177(_0xc90491,_0x120cd3,_0x5c1c82,_0xe9d010){for(let _0x5e9efd=_0xe9d010;_0x5e9efd<_0x5c1c82['length'];_0x5e9efd++){const _0x5e8e58=_0x5c1c82[_0x5e9efd];if(_0x5e8e58['type']!==_0x120cd3['type']||_0x5e8e58['author']['id']!==_0x120cd3['author']['id']||_0x5e8e58['subType']!==_0x120cd3['subType'])continue;if(!Pt(_0x120cd3,_0x5e8e58,['groupId']))continue;if('attribute'==_0x120cd3['type']&&_0x120cd3['data']['oldValue']!=_0x5e8e58['data']['oldValue'])continue;if('attribute'==_0x120cd3['type']&&_0xc90491['_isBlockAttribute'](_0x120cd3['data']['key']))continue;if('formatBlock'==_0x120cd3['type']){const _0x47cc14=_0xc90491['editor']['model'],_0x293f98=_0x120cd3['getContainedElement']();if(_0x293f98&&(_0x47cc14['schema']['isObject'](_0x293f98)||_0x47cc14['schema']['isLimit'](_0x293f98)))continue;}const _0x229dd3=_0x214b6e['get'](_0x120cd3),_0x4e8eda=_0x3724b4['get'](_0x120cd3),_0x59b062=_0x3724b4['get'](_0x5e8e58),_0x13d90f=_0x120cd3['commentThread']&&_0x120cd3['commentThread']['length'],_0x7266a5=_0x5e8e58['commentThread']&&_0x5e8e58['commentThread']['length'];if(!_0x13d90f&&_0x229dd3(_0x59b062,_0x4e8eda))return _0xc90491['_joinSuggestions'](_0x5e8e58,_0x120cd3),_0x3724b4['delete'](_0x120cd3),!0x0;if(!_0x7266a5&&_0x229dd3(_0x4e8eda,_0x59b062))return _0xc90491['_joinSuggestions'](_0x120cd3,_0x5e8e58),_0x3724b4['delete'](_0x5e8e58),!0x0;}return!0x1;}}['_joinSuggestions'](_0x303669,_0x5af4d2){if(_0x303669['isMultiRange']){for(const _0x31db06 of _0x5af4d2['getRanges']())_0x303669['addRange'](_0x31db06);}else{const _0x2e7214=_0x5af4d2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x303669,this['_model']['createRange'](_0x303669['getFirstRange']()['start'],_0x2e7214));}_0x5af4d2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2bc297,_0x4675fd){const _0x51f2cf=_0x2bc297['startsWith']('format')||_0x2bc297['startsWith']('attribute')?'FORMATTING':_0x2bc297['toUpperCase']();return o(this['editor']['locale'],_0x4675fd+'_'+_0x51f2cf+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5db6c8=this['editor'];if(!_0x5db6c8['ui'])return;const {ariaLiveAnnouncer:_0x4a3cc7}=_0x5db6c8['ui'];_0x572aad(this['_model'],({left:_0x515156,entered:_0x5e474e})=>{for(const _0x5a77dc of _0x515156){const {group:_0x4c3736,type:_0x679044}=this['_splitMarkerName'](_0x5a77dc['name']);if('suggestion'===_0x4c3736){_0x4a3cc7['announce'](this['_getMarkerAnnouncementText'](_0x679044,'LEAVE'));break;}}for(const _0x569201 of _0x5e474e){const {group:_0x2133dc,type:_0x1548f4}=this['_splitMarkerName'](_0x569201['name']);if('suggestion'===_0x2133dc){_0x4a3cc7['announce'](this['_getMarkerAnnouncementText'](_0x1548f4,'ENTER'));break;}}});}['_processAttributeChanges'](_0x116349){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5242fd=this['editor'],_0x19f995=_0x5242fd['model']['document']['differ']['getChanges']();if(0x0==_0x19f995['length'])return!0x1;const _0x4eaa77=[],_0x523a9d=_0x19f995['filter'](_0x579a4a=>'attribute'==_0x579a4a['type']),_0x55cf1b=_0x19f995['filter'](_0x3b4ae3=>'insert'==_0x3b4ae3['type']&&'$text'!=_0x3b4ae3['name']),_0x27e8bd=_0x19f995['filter'](_0x247e33=>'remove'==_0x247e33['type']&&'$text'!=_0x247e33['name']);for(const _0x136fa2 of _0x523a9d)_0x4eaa77['push']({'key':_0x136fa2['attributeKey'],'newValue':_0x136fa2['attributeNewValue'],'oldValue':_0x136fa2['attributeOldValue'],'range':Ot(_0x136fa2['range'],_0x5242fd['model'])});for(const _0x4b6b62 of _0x55cf1b){const _0x474ae1=_0x27e8bd['find'](_0xd0b2a=>_0xd0b2a['position']['isEqual'](_0x4b6b62['position']));_0x474ae1&&_0x4eaa77['push']({'key':m,'newValue':_0x4b6b62['name'],'oldValue':_0x474ae1['name'],'range':_0x5242fd['model']['createRangeOn'](_0x4b6b62['position']['nodeAfter'])});}return 0x0!=_0x4eaa77['length']&&this['_reduceExistingSuggestions'](_0x116349,_0x4eaa77);}['_processAttributeSuggestions'](_0x296092){let _0xd53211=!0x1;const _0x18dbe6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x52c9c5=>_0x52c9c5['data']['newRange']&&_0x52c9c5['name']['startsWith']('suggestion:attribute:'));for(const _0x150615 of _0x18dbe6){const {subType:_0x52474f,id:_0x3dd1ee}=this['_splitMarkerName'](_0x150615['name']),_0x426955=_0x52474f['split']('|')[0x0];for(const _0x44d67e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x44d67e['id']!=_0x3dd1ee&&'attribute'==_0x44d67e['type']&&_0x44d67e['data']&&_0x44d67e['data']['key']==_0x426955&&_0x44d67e['getFirstRange']()['isIntersecting'](_0x150615['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x44d67e,_0x150615['data']['newRange'],_0x296092),_0xd53211=!0x0);}return _0xd53211;}['_recordAttributeChanges'](_0x17a60e){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x17a60e();}['_isRegisteredAttribute'](_0x4a1aed){const _0x214543=this['_isBlockAttribute'](_0x4a1aed),_0x55bb07=this['_inlineAttributeKeys']['has'](_0x4a1aed);return _0x214543||_0x55bb07;}['_reduceExistingSuggestions'](_0x132562,_0x3b94f5){if(0x0==_0x3b94f5['length'])return!0x1;let _0x3d0f77=!0x1;for(const _0x434ccc of _0x3b94f5){const _0x51cdc6=this['_findSuggestions'](_0x434ccc['range'],'attribute')['filter'](_0x48a2e8=>!_0x48a2e8['meta']['isNextTo'])['map'](_0x4b1440=>_0x4b1440['suggestion']),_0x3a1da1=_0x18968b({'newValue':_0x434ccc['newValue']});_0x51cdc6['filter'](_0x69b92b=>{const [_0x3a7b57,_0x2adc99]=_0x69b92b['subType']['split']('|');return _0x3a7b57==_0x434ccc['key']&&_0x2adc99!=_0x3a1da1;})['forEach'](_0x5f4aa2=>{this['_reduceSuggestionAttributeRange'](_0x5f4aa2,_0x434ccc['range'],_0x132562),_0x3d0f77=!0x0;});}return _0x3d0f77;}['_reduceSuggestionAttributeRange'](_0x43b03b,_0x2a8184,_0xbd12e5){const _0x2722ac=_0x43b03b['getFirstRange']()['getDifference'](_0x2a8184);0x0!==_0x2722ac['length']?0x1!==_0x2722ac['length']?this['_breakSuggestionMarker'](_0x43b03b,_0x2a8184['start'],_0x2a8184['end']):this['_setSuggestionRange'](_0x43b03b,_0x2722ac[0x0]):_0xbd12e5['removeMarker'](_0x43b03b['getFirstMarker']());}constructor(_0x1396df){function _0x39a675(_0x19b676){return _0x19b676['map'](_0x125e66=>String['fromCharCode'](_0x125e66))['join']('');}super(_0x1396df),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x36fa21,_0x1d5d65,_0x31600a,_0x205589)=>{this['_model']['change'](()=>{for(const _0x2fdfe1 of[..._0x205589,..._0x31600a])this['_model']['markers']['has'](_0x2fdfe1)&&_0x1396df['editing']['reconvertMarker'](_0x2fdfe1);});}),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']=_0x1396df['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(),_0x1396df['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1396df['config']['get']('trackChanges.trackFormatChanges'),_0x1396df['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1396df['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1396df,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x39a675([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x39a675([0x34,0x30,0x34,0x38,0x31,0x30,0x31,0x32]);}}class xt{['buildSuggestion'](_0x550341,_0x522fc2,_0x1e3c6c,_0x14f8af,_0x31facd,_0x25e375){return new u(this['_model'],{'type':_0x550341,'subType':_0x522fc2,'id':_0x1e3c6c,'author':_0x14f8af,'creator':_0x14f8af,'attributes':_0x31facd,'onAttributesChange':_0x25e375,'onAccept':(..._0x3efa17)=>this['getSuggestionCallback'](_0x550341,_0x522fc2,'accept')(..._0x3efa17),'onDiscard':(..._0x29b667)=>this['getSuggestionCallback'](_0x550341,_0x522fc2,'discard')(..._0x29b667)});}['registerCustomCallback'](_0x39b9eb,_0x543edb,_0x53aca6,_0x399050){const _0x2e4a99=_0x39b9eb+':'+_0x543edb+':'+_0x53aca6;this['_customCallbacks']['set'](_0x2e4a99,_0x399050);}['getSuggestionCallback'](_0x10a2a6,_0x1f67e2,_0x2c5aaa){const _0x5ecf8d=_0x10a2a6+':'+_0x1f67e2+':'+_0x2c5aaa;return this['_customCallbacks']['get'](_0x5ecf8d)||this['_defaultCallbacks']['get'](_0x10a2a6+':'+_0x2c5aaa);}['_registerDefaultCallbacks'](){const _0x5e7b3d=()=>!0x1,_0x12b596=_0x3951df=>{_0x3951df['sort']((_0x1f27a9,_0x3e61bc)=>_0x1f27a9['start']['isBefore'](_0x3e61bc['start'])?0x1:-0x1),this['_model']['change'](_0x1c2e3=>{for(const _0x438506 of _0x3951df){let _0x170a0c;_0x170a0c=_0x438506['end']['isAtEnd']&&_0x438506['end']['parent']==_0x438506['start']['nodeAfter']?_0x1c2e3['createSelection'](_0x438506['start']['nodeAfter'],'on'):_0x1c2e3['createSelection'](_0x438506),this['_model']['deleteContent'](_0x170a0c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x53764b=(_0x4b64fd,_0x2e8c53)=>{_0x2e8c53&&this['_model']['change'](_0x25a4e0=>{const {commandName:_0x28da57,commandParams:_0x57dfd7=[]}=_0x2e8c53,_0x1c3a9a=_0x4b64fd['map'](_0x5bc36f=>(Tt(_0x5bc36f)&&(_0x5bc36f=this['_model']['createRange'](_0x5bc36f['end'])),_0x5bc36f))['filter'](_0x54acdd=>'$graveyard'!==_0x54acdd['root']['rootName']);if(_0x1c3a9a['length']<0x1)return;const _0x813499=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc3cb09=>_0x2f3de9['fromRange'](_0xc3cb09));_0x25a4e0['setSelection'](_0x1c3a9a);for(const _0x509991 of this['_editor']['commands']['commands']())_0x509991['refresh']();_0x57dfd7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28da57,..._0x57dfd7);const _0x548b27=_0x813499['filter'](_0x3bb1de=>'$graveyard'!=_0x3bb1de['root']['rootName']);_0x548b27['length']>0x0&&_0x25a4e0['setSelection'](_0x548b27);for(const _0x5b4e98 of _0x813499)_0x5b4e98['detach']();});},_0x5e7636=(_0x5cdc2c,_0x302a57)=>0x1==_0x5cdc2c['length']&&0x1==_0x302a57['length']&&_0x5cdc2c[0x0]['end']['isEqual'](_0x302a57[0x0]['start']),_0x48a93d=(_0x2d33a0,_0x124db7,_0x56690c,_0x150726)=>Gt(_0x2d33a0,_0x124db7,_0x56690c,_0x150726,this['_model'])?[_0x2d33a0,_0x124db7]:Gt(_0x124db7,_0x2d33a0,_0x150726,_0x56690c,this['_model'])?[_0x124db7,_0x2d33a0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e7b3d),this['_defaultCallbacks']['set']('insertion:discard',_0x12b596),this['_defaultCallbacks']['set']('insertion:join',_0x5e7636),this['_defaultCallbacks']['set']('insertion:chain',_0x48a93d),this['_defaultCallbacks']['set']('deletion:accept',_0x12b596),this['_defaultCallbacks']['set']('deletion:discard',_0x5e7b3d),this['_defaultCallbacks']['set']('deletion:join',_0x5e7636),this['_defaultCallbacks']['set']('deletion:chain',_0x48a93d),this['_defaultCallbacks']['set']('formatInline:accept',_0x53764b),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e7b3d),this['_defaultCallbacks']['set']('formatInline:join',_0x5e7636),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e7b3d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x53764b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e7b3d),this['_defaultCallbacks']['set']('formatBlock:join',_0x5e7636),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e7b3d),this['_defaultCallbacks']['set']('attribute:accept',_0x5e7b3d),this['_defaultCallbacks']['set']('attribute:discard',(_0x364fa1,_0x1177cd)=>{if(!_0x1177cd)return;const _0x294a80=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1099a4=>{if(_0x1177cd['key']==m)for(const _0x3c982 of _0x364fa1){const _0x4094e1=_0x3c982['start']['nodeAfter'],_0x53629f=_0x1177cd['oldValue'];_0x1099a4['rename'](_0x4094e1,_0x53629f);}else{if(_0x294a80['_isBlockAttribute'](_0x1177cd['key'])){for(const _0x286e39 of _0x364fa1)void 0x0!==_0x1177cd['oldValue']?_0x1099a4['setAttribute'](_0x1177cd['key'],_0x1177cd['oldValue'],_0x286e39['start']['nodeAfter']):_0x1099a4['removeAttribute'](_0x1177cd['key'],_0x286e39['start']['nodeAfter']);}else{for(const _0x455ab1 of _0x364fa1)_0x1177cd['oldValue']?_0x1099a4['setAttribute'](_0x1177cd['key'],_0x1177cd['oldValue'],_0x455ab1):_0x1099a4['removeAttribute'](_0x1177cd['key'],_0x455ab1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5e7636);}constructor(_0x5af1a6){this['_editor']=_0x5af1a6,this['_model']=_0x5af1a6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x5b44e2,_0x18816c,_0x1c2b3c){for(const _0x415648 of _0x18816c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x415648['root']==_0x415648)return!0x1;if(!_0x1c2b3c['containsItem'](_0x415648))return!0x1;if(_0x5b44e2['isObject'](_0x415648)||_0x5b44e2['isLimit'](_0x415648))return!0x0;}return!0x1;}function Tt(_0x5ee895){return _0x5ee895['end']['parent']==_0x5ee895['start']['nodeAfter']&&_0x5ee895['end']['isAtStart'];}function Et(_0x5bb408,_0x45fa5d,_0x4c83cf,_0x4cd694){const _0x5f2f3d=_0x1ab886=>!_0x1ab886['item']['is']('$textProxy')&&!_0x4cd694['isObject'](_0x1ab886['item']),_0xe7d176=_0x5bb408['start']['getLastMatchingPosition'](_0x5f2f3d),_0x5ca055=_0x5bb408['end']['getLastMatchingPosition'](_0x5f2f3d,{'direction':'backward'});return(!_0x5bb408['start']['isEqual'](_0xe7d176)||!_0x5bb408['end']['isEqual'](_0x5ca055))&&(_0xe7d176['isBefore'](_0x5ca055)?_0x4c83cf['updateMarker'](_0x45fa5d,{'range':_0x4c83cf['createRange'](_0xe7d176,_0x5ca055)}):_0x4c83cf['removeMarker'](_0x45fa5d),!0x0);}function Vt(_0x462a2f){return _0x18968b(_0x462a2f);}function Ut(_0x398f36){const _0x4c9f39=_0x398f36['start']['nodeAfter'];return _0x4c9f39&&_0x4c9f39['is']('element');}function Ot(_0x1dbdd9,_0x2de15d){return null==_0x1dbdd9['end']['nodeBefore']&&_0x1dbdd9['end']['parent']==_0x1dbdd9['start']['nodeAfter']?Ft(_0x1dbdd9['start']['nodeAfter'],_0x2de15d):_0x1dbdd9;}function Ft(_0x37b979,_0x3d5837){const _0x2661cd=_0x3d5837['schema']['isObject'](_0x37b979)||_0x3d5837['schema']['isSelectable'](_0x37b979);return _0x3d5837['createRange'](_0x3d5837['createPositionAt'](_0x37b979,'before'),_0x2661cd?_0x3d5837['createPositionAfter'](_0x37b979):_0x3d5837['createPositionAt'](_0x37b979,'end'));}function Gt(_0x2397ec,_0x328445,_0x18ec31,_0x385850,_0x5a442f){if(!Pt(_0x2397ec,_0x328445))return!0x1;if(_0x18ec31['end']['isEqual'](_0x385850['start']))return!0x0;if(_0x2397ec['type']!=_0x328445['type'])return!0x1;if(!_0x18ec31['end']['isTouching'](_0x385850['start']))return!0x1;const _0x49299c=_0x5a442f['createRange'](_0x18ec31['end'],_0x385850['start'])['getWalker']();for(const _0x1ac3a0 of _0x49299c)if(['elementStart','elementEnd']['includes'](_0x1ac3a0['type'])&&_0x5a442f['schema']['isLimit'](_0x1ac3a0['item']))return!0x1;return!0x0;}function Pt(_0x2cb666,_0x12663f,_0x3839dd=[]){return!(!_0x2cb666['_isDataLoaded']||!_0x12663f['_isDataLoaded'])&&_0x2368d0(Bt(_0x2cb666['attributes'],_0x3839dd),Bt(_0x12663f['attributes'],_0x3839dd));}function Lt(_0x19ce64,_0x385114){const _0x58421b=Ht(_0x19ce64['attributes']),_0x2a7aa2=Ht(_0x385114);if(!_0x19ce64['_isDataLoaded'])return!0x1;for(const _0x37d967 of Object['keys'](_0x2a7aa2))if(!_0x2368d0(_0x58421b[_0x37d967],_0x2a7aa2[_0x37d967]))return!0x1;return!0x0;}function Ht(_0x43b7fd){const _0x465136=Object['assign']({},_0x43b7fd);return delete _0x465136['skipNestingCheck'],delete _0x465136['tablePasteChainId'],_0x465136;}class oe extends _0x4cd08f(){['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 _0xa2046e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xa2046e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x3817a9,_0x4e9fa5,_0x366df8,_0x48491b){super(),this['model']=_0x4e9fa5,this['view']=_0x366df8,this['commentThreadController']=_0x48491b,this['_editor']=_0x3817a9,this['_acceptCommand']=_0x3817a9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3817a9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5738be,_0x6285e3)=>_0x5738be||_0x6285e3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x407ae2=>_0x407ae2&&this['_editor']['model']['canEditAt'](_0x4e9fa5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x35c798=>_0x35c798&&this['_editor']['model']['canEditAt'](_0x4e9fa5['getRanges']())),this['_pendingAction']=null,_0x366df8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x366df8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x366df8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x366df8,'change:isDirty',()=>{_0x366df8['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x299e5d{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5bb3b5}=this['_config'];this['commentsListView']=new _0x5bb3b5(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',_0x378a3e=>_0x378a3e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5189aa,_0x3f8138)=>_0x5189aa||!!_0x3f8138);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x406db7}=this['_config'],_0xe5adbf=new _0x406db7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5899c6=_0xe5adbf['commentInputView'];return _0xe5adbf['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5899c6,'value',(_0x3c3ed6,_0x364320,_0x41f4a7)=>!!_0x41f4a7||_0x3c3ed6&&!_0x364320),_0x5899c6['on']('submit',(_0x254f76,_0x599bf6)=>{this['fire']('addComment',_0x599bf6),_0x5899c6['editor']['setData']('');}),_0x5899c6['on']('cancel',()=>this['focus']()),_0x5899c6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe5adbf;}constructor(_0x3ed3f8,_0x3137c4,_0x321c83,_0x3c8c14){super(_0x3ed3f8),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3137c4['authoredAt']),this['bind']('authoredAt')['to'](_0x3137c4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3137c4,this['_localUser']=_0x321c83,this['_config']=_0x3c8c14,_0x3c8c14['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x4fdc8c=this['bindTemplate'],_0x2f45cc=[{'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':_0x4fdc8c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4fdc8c['to']('authoredAt',_0x8832e0=>this['_config']['formatDateTime'](_0x8832e0))}]}]},{'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']&&_0x2f45cc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x59d58b={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4fdc8c['if']('isActive','ck-suggestion-wrapper--active'),_0x4fdc8c['to']('type',_0x50ad2f=>'ck-suggestion-'+_0x50ad2f),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':_0x2f45cc}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x59d58b['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)),_0x59d58b;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2cc484,_0x31a15e,_0x11caac)=>{this['_descriptionElement']['innerHTML']=_0x11caac;});}['_createButton'](_0x5321c8,_0x4c8ff1,_0x3cc69b,_0xd38c73,_0x327425){const _0x378ad6=new _0x58c753(this['locale']);return _0x378ad6['set']({'label':_0x5321c8,'icon':_0x4c8ff1,'tooltip':!0x0,'tooltipPosition':_0x327425}),_0x378ad6['extendTemplate']({'attributes':{'class':_0x3cc69b}}),_0x378ad6['on']('execute',()=>{this['fire'](_0xd38c73,this['_model']['id']);}),_0x378ad6;}['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(_0x5891c6,_0x418959,_0x3dc9c9,_0x1c3dcb){super(_0x5891c6,_0x418959,_0x3dc9c9,_0x1c3dcb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5cb1bb=>_0x5cb1bb&&_0x5cb1bb[0x0]?_0x5cb1bb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x357eba,_0x137e69)=>{let _0x2c72='';for(const _0x253aa0 of _0x357eba)_0x2c72+='<p>'+ds(_0x253aa0['content'],_0x253aa0['color'])+'</p>';return _0x137e69?_0x2c72:_0x2acff3(_0x2c72,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5891c6,'Accept\x20suggestion'),_0x22772e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5891c6,'Discard\x20suggestion'),_0x22772e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4cc9e8(_0x5891c6,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x29ae5b,_0x1462a8){let _0x46ae27='';return _0x46ae27+=_0x29ae5b['split']('*')['map']((_0x4bca44,_0x12956b)=>_0x12956b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x4bca44)+'</span>':us(_0x4bca44))['join'](''),_0x1462a8&&(_0x46ae27+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1462a8['value']+'\x22\x20title=\x22'+_0x1462a8['title']+'\x22></span>'),_0x46ae27;}function us(_0x5a124f){const _0x3dfc88=document['createElement']('span');return _0x3dfc88['innerText']=_0x5a124f,_0x3dfc88['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 _0x5511a1{static get['requires'](){return[p,_0xd07c79,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x44364e,_0x22ef76){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x45d594,_0x24f8d6]of this['_handleControllerBuffer']){const _0x32e255=this['_suggestionToController']['has'](_0x45d594);_0x32e255||_0x24f8d6?_0x32e255&&_0x24f8d6&&this['_destroyController'](_0x45d594):this['_initializeController'](_0x45d594);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x44364e,_0x22ef76);}['init'](){const _0x5d44b1=this['editor'],_0x31b151=_0x5d44b1['plugins']['get']('TrackChangesEditing'),_0x4a1812=_0x5d44b1['plugins']['get']('Annotations'),_0x58f9a4=_0x5d44b1['plugins']['get']('EditorAnnotations'),_0x39708a=_0x5d44b1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x58f9a4['addSourceCollector'](()=>{const _0x9035df=[];for(const [_0x2e3ff0,_0x13e6eb]of Array['from'](this['_suggestionToController'])){const _0x39cccc=_0x2e3ff0['getAllAdjacentSuggestions'](),_0x29ca05=[];for(const _0x227da4 of _0x39cccc){if(!_0x227da4['isInContent'])continue;if(_0x227da4['isMultiRange']){_0x29ca05['push'](..._0x227da4['getRanges']());continue;}const _0x2cbd4a=_0x227da4['getFirstRange']();if(_0x29ca05['length']>0x0){const _0x4a6c8c=_0x29ca05[0x0]['getJoined'](_0x2cbd4a);if(_0x4a6c8c){_0x29ca05[0x0]=_0x4a6c8c;continue;}}_0x29ca05['push'](_0x2cbd4a);}_0x9035df['push']([_0x13e6eb['view'],_0x29ca05]);}return _0x9035df;}),this['listenTo'](_0x31b151,'suggestionLoaded',(_0x4c360f,_0x4330ca)=>{this['listenTo'](_0x4330ca,'change:previous',(_0x5088a7,_0xefa9c8,_0x14152d,_0x3ed7f2)=>{_0x4330ca['isInContent']&&(null==_0x14152d?(this['_updateController'](_0x3ed7f2['head']),this['_handleSuggestionControllerDelayed'](_0x4330ca,!0x1)):(this['_updateController'](_0x14152d['head']),null==_0x3ed7f2&&this['_handleSuggestionControllerDelayed'](_0x4330ca,!0x0)));}),null!==_0x4330ca['previous']?this['_updateController'](_0x4330ca['head']):this['_handleSuggestionControllerDelayed'](_0x4330ca,!0x1);}),this['listenTo'](_0x31b151,'suggestionUnloaded',(_0x502481,_0x21d389,_0x1a9f73)=>{this['stopListening'](_0x21d389,'change:previous'),this['_handleControllerBuffer']['delete'](_0x21d389),this['_suggestionToController']['has'](_0x21d389)&&this['_destroyController'](_0x21d389),_0x1a9f73&&this['_updateController'](_0x1a9f73['head']);}),this['listenTo'](_0x31b151,'suggestionChanged',(_0xa4c3b5,_0x259e34)=>{this['_updateController'](_0x259e34);}),this['listenTo'](_0x4a1812,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39708a,'addComment',(_0x192fcd,{threadId:_0x4c5f05,isFromAdapter:_0x5a6aa6})=>{if(_0x5a6aa6||!_0x31b151['hasSuggestion'](_0x4c5f05))return;const _0x3ef595=_0x31b151['getSuggestion'](_0x4c5f05);this['_suggestionToController']['get'](_0x3ef595)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x141f51=this['editor']['plugins']['get']('Annotations'),_0x2a294a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d08b2=Array['from'](_0x141f51['activeAnnotations'],_0x3f9986=>_0x3f9986['innerView'])['filter'](_0x2759cf=>this['_viewToController']['has'](_0x2759cf)),_0x3880ee=[];for(const _0x3665b8 of _0x1d08b2){const _0x46e978=this['_viewToController']['get'](_0x3665b8)['model']['getAllAdjacentSuggestions']();_0x3880ee['push'](..._0x46e978['reduce']((_0x3fd4e1,_0x205760)=>[..._0x3fd4e1,..._0x205760['getMarkerNames']()],[]));}_0x2a294a['activeMarkers']=_0x3880ee;}['_addUIComponentsToFactory'](){const _0x262a80=this['editor'],_0x5b147d=_0x262a80['locale'],_0x320122=o(_0x5b147d,'Track\x20changes'),_0xc9790c=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x320122,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x45a80e of _0xc9790c)if(ae(_0x45a80e)){const _0x13af3c=_0x262a80['commands']['get'](_0x45a80e['model']['commandName']);_0x45a80e['model']['bind']('isOn','isEnabled')['to'](_0x13af3c,'value','isEnabled');}_0x262a80['ui']['componentFactory']['add']('trackChanges',_0x13f76d=>this['_createToolbarButton'](_0x13f76d,_0xc9790c,_0x320122)),_0x262a80['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5914a9=>this['_createMenuBarMenu'](_0x5914a9,_0xc9790c,_0x320122));}['_createToolbarButton'](_0x462394,_0x1cb8b6,_0x56cfe5){const _0x48270e=zt(_0x462394,Zt),_0x16c0b5=this['editor']['commands']['get']('trackChanges');_0x48270e['buttonView']['set']({'tooltip':_0x56cfe5,'label':_0x56cfe5,'icon':ie}),_0x48270e['buttonView']['bind']('isOn')['to'](_0x16c0b5,'value'),_0x48270e['buttonView']['on']('execute',()=>{_0x16c0b5['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x48270e,_0x1cb8b6);const _0x4dc7e3=[];for(const _0xb8c0a8 of _0x1cb8b6)ae(_0xb8c0a8)&&_0x4dc7e3['push'](this['editor']['commands']['get'](_0xb8c0a8['model']['commandName']));const _0xf8ecfc=_0x48270e['buttonView'];return _0xf8ecfc['actionView']['unbind']('isEnabled'),_0xf8ecfc['arrowView']['unbind']('isEnabled'),_0xf8ecfc['actionView']['bind']('isEnabled')['to'](_0x16c0b5,'isEnabled'),_0xf8ecfc['arrowView']['bind']('isEnabled')['toMany'](_0x4dc7e3,'isEnabled',(..._0x29de0e)=>_0x29de0e['some'](_0x254801=>_0x254801)),_0x48270e['on']('execute',_0x5d4094=>{this['editor']['execute'](_0x5d4094['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x48270e;}['_createMenuBarMenu'](_0x406c13,_0x529beb,_0x241ca6){const _0x228706=new Kt(_0x406c13),_0x4c7beb=this['editor']['commands']['get']('trackChanges');_0x228706['buttonView']['set']({'label':_0x241ca6,'icon':ie});const _0x2d101e=new Qt(_0x406c13);for(const _0x391d2c of _0x529beb){if('separator'==_0x391d2c['type']){_0x2d101e['items']['add'](new Jt(_0x406c13));continue;}const _0x2fdc34=new Xt(_0x406c13,_0x228706),_0x7ff113=new Yt(_0x406c13),_0x38db21=_0x391d2c['model'];_0x7ff113['bind'](...Object['keys'](_0x38db21))['to'](_0x38db21),_0x7ff113['delegate']('execute')['to'](_0x228706),_0x7ff113['on']('execute',()=>{this['editor']['execute'](_0x38db21['commandName']),this['editor']['editing']['view']['focus']();}),_0x2fdc34['children']['add'](_0x7ff113),_0x2d101e['items']['add'](_0x2fdc34);}return _0x228706['bind']('isEnabled')['to'](_0x4c7beb,'isEnabled'),_0x228706['panelView']['children']['add'](_0x2d101e),_0x228706;}['_initializeController'](_0x2e8e79){const _0x321748=this['editor'],_0x3fdfcd=_0x321748['config'],_0x27bacc=_0x321748['plugins']['get']('Annotations'),_0x186b7d=_0x321748['plugins']['get']('CommentsRepository'),_0x37fee5=_0x321748['plugins']['get']('EditorAnnotations'),_0x142ca2=_0x321748['plugins']['get'](_0xd07c79)['me'],_0x8bf83f=_0x3fdfcd['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xd84fc5,CommentThreadInputView:_0x251a69}=_0x321748['plugins']['get']('CommentsUI');let _0x3aba7a,_0x18185f;this['_annotationViews']['has'](_0x2e8e79['id'])?(_0x18185f=this['_annotationViews']['get'](_0x2e8e79['id']),_0x3aba7a=_0x18185f['mainView']):(_0x3aba7a=new _0x8bf83f(_0x321748['locale'],_0x2e8e79,_0x142ca2,{'disableComments':this['_disableComments'],'editorConfig':_0x3fdfcd['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3fdfcd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3fdfcd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3fdfcd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2638f4(_0x3fdfcd['get']('locale')),'CommentView':_0x3fdfcd['get']('comments')['CommentView'],'CommentsListView':_0xd84fc5,'CommentThreadInputView':_0x251a69}),_0x3aba7a['acceptButton']['on']('execute',()=>{_0x321748['editing']['view']['focus']();}),_0x3aba7a['discardButton']['on']('execute',()=>{_0x321748['editing']['view']['focus']();}),_0x18185f=_0x27bacc['createAnnotationView'](this['editor']['locale'],_0x3aba7a),_0x18185f['bind']('isDirty')['to'](_0x3aba7a,'isDirty'),_0x18185f['bind']('length')['to'](_0x3aba7a),_0x18185f['bind']('type')['to'](_0x3aba7a,'type',_0x1677c0=>'suggestion-'+_0x1677c0),this['_annotationViews']['set'](_0x2e8e79['id'],_0x18185f));const _0x5d466c=_0x186b7d['createCommentThreadController'](_0x2e8e79['commentThread'],_0x3aba7a),_0x26fa7e=new oe(_0x321748,_0x2e8e79,_0x3aba7a,_0x5d466c),_0x39742c=_0x2e8e79['getAllAdjacentSuggestions']()['filter'](_0x3bdcb8=>_0x3bdcb8['isInContent']);_0x3aba7a['descriptionParts']=_0x321748['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x39742c),this['_suggestionToController']['set'](_0x2e8e79,_0x26fa7e),this['_viewToController']['set'](_0x3aba7a,_0x26fa7e);const _0x4102da=_0x27bacc['createAnnotation']({'view':_0x18185f,'target':()=>{const _0x110cb7=[],_0x127794=_0x2e8e79['getAllAdjacentSuggestions']()['filter'](_0x175bb3=>_0x175bb3['isInContent']);for(const _0x18fd7f of _0x127794)_0x110cb7['push'](..._0x18fd7f['getMarkers']());return _0x1f8725(_0x321748['editing'],_0x110cb7);},'type':()=>'suggestion-'+_0x26fa7e['view']['type']});_0x186b7d['_bindAnnotationToEditors'](_0x3aba7a,_0x4102da),_0x27bacc['add'](_0x4102da),_0x37fee5['registerAnnotation'](_0x4102da);}['_destroyController'](_0x1268da){const _0x27c1c6=this['editor']['plugins']['get']('CommentsRepository'),_0x18ad7a=this['editor']['plugins']['get']('Annotations'),_0x37f6e8=this['_suggestionToController']['get'](_0x1268da),_0x29dc28=_0x37f6e8['view'],_0x62907=_0x18ad7a['getByInnerView'](_0x29dc28);_0x27c1c6['_unbindEditors'](_0x29dc28),_0x62907&&_0x18ad7a['remove'](_0x62907),this['_suggestionToController']['delete'](_0x1268da),this['_viewToController']['delete'](_0x29dc28),_0x37f6e8['destroy']();}['_updateController'](_0x26c874){if(!_0x26c874['isInContent']||!this['_suggestionToController']['has'](_0x26c874))return;const _0x105298=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c5ece=this['_suggestionToController']['get'](_0x26c874),_0x57db35=_0x26c874['getAllAdjacentSuggestions']();_0x1c5ece['view']['descriptionParts']=_0x105298['descriptionFactory']['getDescriptions'](_0x57db35);}['destroy'](){for(const _0x2c5435 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2c5435);for(const _0x22b37d of this['_annotationViews']['values']())_0x22b37d['mainView']['destroy']();super['destroy']();}constructor(_0x467eab){super(_0x467eab),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4aff4c=this['editor']['config'];_0x4aff4c['define']('trackChanges.SuggestionThreadView',ne),_0x4aff4c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4aff4c['get']('trackChanges.disableComments');}}function ae(_0x4867b8){return'model'in _0x4867b8;}class k extends _0x5511a1{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x347caa){this['editor']['plugins']['get'](p)['adapter']=_0x347caa;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x104b7c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x104b7c);}['getSuggestions']({skipNotAttached:_0x39c8fb=!0x1,toJSON:_0x57cb4e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x39c8fb,'toJSON':_0x57cb4e});}['getSuggestion'](_0x1217d2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1217d2);}}const T=['Pagination'];class P extends _0x5511a1{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4cf8c1=this['editor'];if(_0x4cf8c1['config']['define']('trackChangesData.editorCreator',_0xf3cd24=>{const _0x1d7892=_0x4cf8c1['model']['document']['getRootNames']()['reduce']((_0x3bbb01,_0x27f5dd)=>(_0x3bbb01[_0x27f5dd]='',_0x3bbb01),{});return _0x4cf8c1['constructor']['create'](_0x1d7892,_0xf3cd24);}),'function'!=typeof _0x4cf8c1['config']['get']('trackChangesData')['editorCreator'])throw new _0x5a2cc3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2367df){return N(this['editor'],!0x0,_0x2367df);}['getDataWithDiscardedSuggestions'](_0x4f3755){return N(this['editor'],!0x1,_0x4f3755);}}class D extends _0x5511a1{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(_0x35adf2){super(_0x35adf2),this['result']='end';}}function v(_0x47c070){return void 0x0!==_0x47c070['getRootsAttributes'];}async function N(_0x236721,_0x294856,_0x8205bf){const _0x230082=_0x261009(_0x236721,T);_0x230082['plugins']['push'](p,D),_0x230082['rootsAttributes']=v(_0x236721)?_0x236721['getRootsAttributes']():void 0x0;const _0x5cdc13=document['createDocumentFragment'](),_0x11a499=_0x236721['config']['get']('trackChangesData')['editorCreator'],_0x54d770=await _0x11a499(_0x230082,()=>function(_0x41c984){const _0xcf8eed=document['createElement']('div');return _0x41c984['appendChild'](_0xcf8eed),_0xcf8eed;}(_0x5cdc13));!function(_0x22b56e,_0x1ef56c){const _0x40a994=_0x22b56e['model']['document']['getRootNames']()['reduce']((_0x14eca8,_0x2275b2)=>(_0x14eca8[_0x2275b2]=_0x22b56e['data']['get']({'rootName':_0x2275b2}),_0x14eca8),{}),_0x3977d4=_0x22b56e['plugins']['get']('Users')['users']['map'](_0x327bec=>({'id':_0x327bec['id'],'name':_0x327bec['name']})),_0x13a407=_0x22b56e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x25980b=_0x22b56e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20a84f=_0x1ef56c['plugins']['get']('Users'),_0x13b780=_0x1ef56c['plugins']['get']('TrackChangesEditing'),_0x469c1f=_0x1ef56c['plugins']['get']('CommentsRepository');for(const _0x477505 of _0x3977d4)_0x20a84f['getUser'](_0x477505['id'])||_0x20a84f['addUser'](_0x477505);_0x20a84f['me']||_0x20a84f['useAnonymousUser']();for(const _0xa4e0e2 of _0x13a407)_0x13b780['addSuggestionData'](_0xa4e0e2);for(const _0x25165c of _0x25980b)_0x469c1f['addCommentThread'](_0x25165c);_0x1ef56c['data']['set'](_0x40a994);}(_0x236721,_0x54d770),_0x54d770['execute'](_0x294856?'acceptAllSuggestions':'discardAllSuggestions');const _0x7fb909=v(_0x54d770)?_0x54d770['getFullData'](_0x8205bf):_0x54d770['data']['get'](_0x8205bf);return await _0x54d770['destroy'](),_0x7fb909;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x38f362,PendingActions as _0x5a48e9,icons as _0x2802c7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5a5bfe,ObservableMixin as _0x1ac91a,uid as _0xced280,insertToPriorityArray as _0x19930b,priorities as _0x47b06d,logWarning as _0x6d7491,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5ad24b,View as _0x2824a1,ButtonView as _0xc95469,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 _0x16f500,hashObject as _0x3f9107,surroundingMarkersDetector as _0x2d64d8,trimHtml as _0x258e73,UserView as _0x4f4756,getDateTimeFormatter as _0x3e3567,getAllMarkersDomElementsSorted as _0x33a426,sanitizeEditorConfig as _0x384e2b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x15499d,LiveRange as _0x5beaf3,LivePosition as _0x1b69ad}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x37a513,toWidget as _0x5e164d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2cbd2e,set as _0x376a0f,isEqual as _0xff7481,unset as _0x272e7a,omit as Bt}from'lodash-es';import{Delete as _0x4af03c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x52f914,ShiftEnter as _0x1ac197}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 _0x1b8f82 of this['editor']['commands']['commands']())_0x1b8f82['affectsData']&&!this['_enabledCommands']['has'](_0x1b8f82)&&_0x1b8f82['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1237bb of this['editor']['commands']['commands']())_0x1237bb['affectsData']&&!this['_enabledCommands']['has'](_0x1237bb)&&_0x1237bb['clearForceDisabled']('TrackChangesCommand');}constructor(_0x51a321,_0x5075b4){super(_0x51a321),this['_enabledCommands']=_0x5075b4,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x433cb1){const _0x1f2991=this['_suggestions']['get'](_0x433cb1);if(!_0x1f2991)throw new _0x5a5bfe('track-changes-accept-suggestion-not-found',this);const _0x32cba1=_0x1f2991['getRanges']();this['editor']['model']['canEditAt'](_0x32cba1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1f2991);}constructor(_0x227ca0,_0xabe837){super(_0x227ca0),this['_suggestions']=_0xabe837,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4034ec){const _0x328d3d=this['_suggestions']['get'](_0x4034ec);if(!_0x328d3d)throw new _0x5a5bfe('track-changes-discard-suggestion-not-found',this);const _0x37e050=_0x328d3d['getRanges']();this['editor']['model']['canEditAt'](_0x37e050)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x328d3d);}constructor(_0x50db89,_0x52578c){super(_0x50db89),this['_suggestions']=_0x52578c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x24e395){return _0x24e395['sort']((_0x1109d0,_0x2e77fb)=>'deletion'==_0x1109d0['type']&&'deletion'!=_0x2e77fb['type']?-0x1:'deletion'!=_0x1109d0['type']&&'deletion'==_0x2e77fb['type']?0x1:0x0);}function to(_0x3ccdd2,_0x4974f8){let _0x3590d1,_0xff5a13=0x0;const _0x37b9ca=[],_0x42fe7a=_0x4974f8['schema'];for(;_0xff5a13<_0x3ccdd2['length'];){const _0x43a12a=_0x3ccdd2[_0xff5a13],_0x3fbeab=_0x3ccdd2[_0xff5a13+0x1];_0x3590d1||(_0x3590d1=_0x4974f8['createPositionBefore'](_0x43a12a)),co(_0x4974f8,_0x43a12a,_0x3fbeab)||(_0x37b9ca['push'](_0x4974f8['createRange'](_0x3590d1,_0x42fe7a['isObject'](_0x43a12a)?_0x4974f8['createPositionAfter'](_0x43a12a):_0x4974f8['createPositionAt'](_0x43a12a,'end'))),_0x3590d1=null),_0xff5a13++;}return _0x37b9ca;}function co(_0x5a82f3,_0x1d82a8,_0x523f76){if(!_0x523f76)return!0x1;const _0x511c78=_0x5a82f3['createPositionAfter'](_0x1d82a8),_0x523d2e=_0x5a82f3['createPositionBefore'](_0x523f76);return _0x511c78['isTouching'](_0x523d2e);}function rs(_0x964e64,_0x580651,_0x196942){for(;_0x196942['length'];){const _0x356519=_0x196942['splice'](0x0,0x64);_0x964e64['change'](()=>{for(const _0x4750fd of _0x356519)_0x4750fd['isInContent']&&_0x580651['execute'](_0x4750fd['id']);});}}class x extends ts{['refresh'](){const _0x5a6c76=Array['from'](this['_suggestions']['values']())['some'](_0x544f1a=>_0x544f1a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5a6c76;}['execute'](){const _0xb2c0a8=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4fe4eb of _0xb2c0a8){const _0x4f259d=_0x4fe4eb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4f259d))return;}rs(this['editor']['model'],this['_command'],_0xb2c0a8);}constructor(_0x1270ee,_0x12f200,_0x594f74){super(_0x1270ee),this['_command']=_0x12f200,this['_suggestions']=_0x594f74,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x49c103=this['editor']['model']['document']['selection'],_0x3cc620=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5e126e,_0xb69b84){const _0x1a8c86=Array['from'](_0x5e126e['getRanges']()),_0x2612b2=new Set();for(const _0xbee02 of _0xb69b84)if(_0xbee02['isInContent']){for(const _0x17f93b of _0x1a8c86)for(const _0xf69e64 of _0xbee02['getRanges']())(_0x17f93b['isIntersecting'](_0xf69e64)||_0x5e126e['isCollapsed']&&!_0xbee02['isMultiRange']&&_0xbee02['next']&&_0xf69e64['end']['isTouching'](_0x17f93b['start']))&&_0x2612b2['add'](_0xbee02);}return _0x2612b2;}(_0x49c103,_0x3cc620),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x114194=ss(Array['from'](this['_selectedSuggestions']));for(const _0x53f72a of _0x114194){const _0x14052b=_0x53f72a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x14052b))return;}rs(this['editor']['model'],this['_command'],_0x114194);}constructor(_0x1b1082,_0x1ccd1b,_0x45919c){super(_0x1b1082),this['_command']=_0x1ccd1b,this['_suggestions']=_0x45919c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x1ac91a(){get['head'](){let _0x421568=this;for(;_0x421568['previous'];)_0x421568=_0x421568['previous'];return _0x421568;}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'](_0x77981e){this['_markerNames']['add'](_0x77981e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4a54f5=>this['_model']['markers']['get'](_0x4a54f5))['filter'](_0x188f75=>_0x188f75);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5f071b=>{for(const _0x49d9dd of this['getMarkers']())_0x5f071b['removeMarker'](_0x49d9dd);}),this['_markerNames']['clear']();}['removeMarker'](_0x31b864){this['_model']['change'](_0x27a4b7=>{_0x27a4b7['removeMarker'](_0x31b864);}),this['_markerNames']['delete'](_0x31b864);}['addRange'](_0x4ef9fe){const _0x1fda9a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1fda9a),this['_model']['change'](_0x181ab5=>{_0x181ab5['addMarker'](_0x1fda9a,{'range':_0x4ef9fe,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x27da54){for(const _0x3001ba of this['getRanges']())if(_0x3001ba['isIntersecting'](_0x27da54))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4d4f57=>_0x4d4f57['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4aeb88,_0x5adeb0)=>[..._0x4aeb88,..._0x5adeb0['getItems']()],[]);}['getFirstRange'](){var _0x5f3967;return(null===(_0x5f3967=this['getFirstMarker']())||void 0x0===_0x5f3967?void 0x0:_0x5f3967['getRange']())||null;}['getContainedElement'](){const _0x4a205c=this['getRanges']();if(0x1!=_0x4a205c['length'])return null;const _0x59dc77=_0x4a205c[0x0],_0x39b9a1=_0x59dc77['start']['nodeAfter'],_0x4b9f71=_0x59dc77['end']['nodeBefore'];return _0x39b9a1 instanceof _0x15499d?_0x39b9a1!=_0x4b9f71?null:_0x39b9a1: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 _0x40b2f2=[];let _0x22a427=this['head'];for(;_0x22a427;)_0x40b2f2['push'](_0x22a427),_0x22a427=_0x22a427['next'];return _0x40b2f2;}['setAttribute'](_0x3cf130,_0x420d81){const _0x55ee01=_0x2cbd2e(this['attributes']);_0x376a0f(_0x55ee01,_0x3cf130,_0x420d81),_0xff7481(_0x55ee01,this['attributes'])||(this['attributes']=_0x55ee01,this['_onAttributesChange'](_0x55ee01));}['removeAttribute'](_0x285b5e){const _0x3c749=_0x2cbd2e(this['attributes']);_0x272e7a(_0x3c749,_0x285b5e),_0xff7481(_0x3c749,this['attributes'])||(this['attributes']=_0x3c749,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 _0xced280()['substr'](0x1,0x5);}constructor(_0x24542d,_0x18d88a){super(),this['_isDataLoaded']=!0x1,this['id']=_0x18d88a['id'],this['type']=_0x18d88a['type'],this['subType']=_0x18d88a['subType']||null,this['author']=_0x18d88a['author'],this['creator']=_0x18d88a['creator']||_0x18d88a['author'],this['isExternal']=Boolean(_0x18d88a['attributes']&&_0x18d88a['attributes']['@external']),this['data']=null,this['_model']=_0x24542d,this['_onAccept']=_0x18d88a['onAccept'],this['_onDiscard']=_0x18d88a['onDiscard'],this['_onAttributesChange']=_0x18d88a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x18d88a['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(_0x4786c8,_0x3603f2,_0x1e9f15){const t=_0x4786c8['t'];switch(_0x3603f2){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',_0x1e9f15);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1e9f15);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1e9f15);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1e9f15);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1e9f15);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',_0x1e9f15);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1e9f15);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',_0x1e9f15);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1e9f15);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1e9f15);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1e9f15);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1e9f15);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1e9f15);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1e9f15);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1e9f15);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1e9f15);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1e9f15);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1e9f15);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1e9f15);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1e9f15);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1e9f15);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1e9f15);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1e9f15);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'},_0x1e9f15);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1e9f15);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1e9f15);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1e9f15);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1e9f15);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1e9f15);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'},_0x1e9f15);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1e9f15);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1e9f15);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1e9f15);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1e9f15);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'},_0x1e9f15);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1e9f15);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'},_0x1e9f15);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'},_0x1e9f15);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1e9f15);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'},_0x1e9f15);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1e9f15);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'},_0x1e9f15);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1e9f15);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1e9f15);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'},_0x1e9f15);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'},_0x1e9f15);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 _0x3603f2;}}class f{['getDescriptions'](_0x53832c){const _0x52ca68=[],_0xf0b1ee=new Set(),_0x327674=new Set();for(let _0x2dba23=0x0;_0x2dba23<_0x53832c['length'];_0x2dba23++){const _0x3859e8=_0x53832c[_0x2dba23];if(!_0x3859e8['isInContent'])continue;const _0x2acb87=this['_handleCustomCallbackDescription'](_0x3859e8);if(_0x2acb87){if(null!=_0x3859e8['subType']){if(_0xf0b1ee['has'](_0x3859e8['subType']))continue;_0xf0b1ee['add'](_0x3859e8['subType']);}_0x52ca68['push'](_0x2acb87);}else{if('attribute'!=_0x3859e8['type'])'insertion'!=_0x3859e8['type']&&'deletion'!=_0x3859e8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x52ca68,_0x3859e8,_0x53832c[_0x2dba23+0x1]);else{const _0x5d106d=_0x3859e8['data']['key'];if(_0x327674['has'](_0x5d106d))continue;_0x327674['add'](_0x3859e8['data']['key']),_0x5d106d==m?this['_handleRenameSuggestionDescription'](_0x52ca68,_0x3859e8):this['_handleAttributeSuggestionDescription'](_0x52ca68,_0x3859e8);}}}return this['_resolveDescriptionItems'](_0x52ca68);}['registerDescriptionCallback'](_0x1f7dae){this['_customCallbacks']['push'](_0x1f7dae);}['registerElementLabel'](_0x59734a,_0x51ccd6,_0x29f90a=_0x47b06d['normal']){'function'==typeof _0x59734a?_0x19930b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x59734a,'label':_0x51ccd6,'priority':_0x29f90a}):this['_itemLabels']['set'](_0x59734a,_0x51ccd6);}['registerAttributeLabel'](_0x27dda9,_0x728ace){this['_attributeLabels']['set'](_0x27dda9,_0x728ace);}['getItemLabel'](_0xbac7fe,_0x3ec8ea=0x1){let _0x275dc7;for(const _0x3bd377 of this['_itemLabelsCallbacks'])if(_0x3bd377['matchingCallback'](_0xbac7fe)){_0x275dc7=_0x3bd377['label'];break;}return _0x275dc7||(_0x275dc7=this['_itemLabels']['get'](_0xbac7fe['name'])),_0x275dc7?_0x275dc7(_0x3ec8ea):0x1!==_0x3ec8ea?_0x3ec8ea+'\x20'+_0xbac7fe['name']+'s':''+_0xbac7fe['name'];}['_addDescriptionItems'](_0x392bc5,_0x340493){const _0x5247e8=_0x340493['getFirstRange']()['getWalker'](),_0x3e3288='insertion'==_0x340493['type']?'add':'remove';for(const _0x5f05be of _0x5247e8){const _0xb51144=_0x5f05be['item'],_0x31dac3=_0x392bc5[_0x392bc5['length']-0x1];if(_0xb51144['is']('$textProxy'))_0x31dac3&&_0x31dac3['type']['indexOf']('Container')>-0x1&&_0x392bc5['pop'](),_0x31dac3&&'text'==_0x31dac3['type']?_0x31dac3[_0x3e3288]+=_0xb51144['data']:_0x392bc5['push']({'type':'text','add':'add'==_0x3e3288?_0xb51144['data']:'','remove':'remove'==_0x3e3288?_0xb51144['data']:''});else{if(this['_schema']['isObject'](_0xb51144)){const _0xe4e050=_0xb51144;if(_0x31dac3&&_0x31dac3['type']['indexOf']('Container')>-0x1&&_0x392bc5['pop'](),'elementEnd'==_0x5f05be['type'])continue;_0x31dac3&&_0x31dac3['type']==_0x3e3288+'Object'&&_0x31dac3['element']['name']==_0xe4e050['name']?_0x31dac3['quantity']++:_0x392bc5['push']({'type':_0x3e3288+'Object','element':_0xe4e050,'quantity':0x1}),_0x5247e8['skip'](_0x59738d=>!('elementEnd'==_0x59738d['type']&&_0x59738d['item']==_0xb51144));}else{if(this['_schema']['checkChild'](_0xb51144,'$text')||_0xb51144['is']('element','softBreak')){const _0x3795c7=_0xb51144;if('add'==_0x3e3288&&'elementStart'==_0x5f05be['type']||'remove'==_0x3e3288&&'elementEnd'==_0x5f05be['type'])continue;if(_0x31dac3&&-0x1==_0x31dac3['type']['indexOf']('Container')){'text'==_0x31dac3['type']&&(_0x31dac3[_0x3e3288]+='\x0a');continue;}let _0xdc5401;if(_0xdc5401='add'==_0x3e3288?_0x3795c7['nextSibling']&&!this['_schema']['isObject'](_0x3795c7['nextSibling'])?_0x3795c7['nextSibling']:null:_0x3795c7['previousSibling']&&!this['_schema']['isObject'](_0x3795c7['previousSibling'])?_0x3795c7['previousSibling']:null,_0x3795c7['isEmpty']||_0xdc5401&&_0xdc5401['isEmpty']){const _0x421801=_0xdc5401&&_0xdc5401['isEmpty']?_0xdc5401:_0x3795c7;_0x31dac3&&_0x31dac3['type']==_0x3e3288+'EmptyContainer'&&_0x31dac3['element']['name']==_0x421801['name']?_0x31dac3['quantity']++:_0x392bc5['push']({'type':_0x3e3288+'EmptyContainer','element':_0x421801,'quantity':0x1});}else _0x392bc5['push']({'type':_0x3e3288+'Container','element':_0x3795c7});}}}}}['_resolveDescriptionItems'](_0x48c5be){const _0x305dd9=this['_locale'],_0x1c6265=[],_0x15bf48=[],_0x51147b=[];for(const _0x18a968 of _0x48c5be)switch(_0x18a968['type']){case'text':if(_0x18a968['add']=_0x18a968['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x18a968['remove']=_0x18a968['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x18a968['add']&&''!=_0x18a968['remove']){_0x1c6265['push']({'type':'replace','content':o(_0x305dd9,'REPLACE_TEXT',['\x22'+_0x18a968['remove']+'\x22','\x22'+_0x18a968['add']+'\x22'])});continue;}if(null!=_0x18a968['add']['match'](/^ +$/)){_0x1c6265['push']({'type':'insertion','content':o(_0x305dd9,'*Insert:*\x20%0',o(_0x305dd9,'ELEMENT_SPACE',_0x18a968['add']['length']))});continue;}if(null!=_0x18a968['remove']['match'](/^ +$/)){_0x1c6265['push']({'type':'deletion','content':o(_0x305dd9,'*Remove:*\x20%0',o(_0x305dd9,'ELEMENT_SPACE',_0x18a968['remove']['length']))});continue;}if(''!=_0x18a968['add']){_0x1c6265['push']({'type':'insertion','content':o(_0x305dd9,'*Insert:*\x20%0','\x22'+_0x18a968['add']+'\x22')});continue;}_0x1c6265['push']({'type':'deletion','content':o(_0x305dd9,'*Remove:*\x20%0','\x22'+_0x18a968['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1c6265['push']({'type':'insertion','content':o(_0x305dd9,'*Insert:*\x20%0',this['getItemLabel'](_0x18a968['element'],_0x18a968['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1c6265['push']({'type':'deletion','content':o(_0x305dd9,'*Remove:*\x20%0',this['getItemLabel'](_0x18a968['element'],_0x18a968['quantity']))});continue;case'addContainer':_0x1c6265['push']({'type':'insertion','content':o(_0x305dd9,'*Split:*\x20%0',this['getItemLabel'](_0x18a968['element'],_0x18a968['quantity']))});continue;case'removeContainer':_0x1c6265['push']({'type':'deletion','content':o(_0x305dd9,'*Merge:*\x20%0',this['getItemLabel'](_0x18a968['element'],_0x18a968['quantity']))});continue;case'addFormat':_0x15bf48['push'](_0x18a968['key']);continue;case'removeFormat':_0x51147b['push'](_0x18a968['key']);continue;default:_0x1c6265['push'](_0x18a968);}if(_0x15bf48['length']){const _0x2b48f9=_0x15bf48['map'](_0x21cb10=>this['_attributeLabels']['has'](_0x21cb10)?this['_attributeLabels']['get'](_0x21cb10):_0x21cb10)['join'](',\x20');_0x1c6265['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2b48f9)});}if(_0x51147b['length']){const _0x228c76=_0x51147b['map'](_0x1f0980=>this['_attributeLabels']['has'](_0x1f0980)?this['_attributeLabels']['get'](_0x1f0980):_0x1f0980)['join'](',\x20');_0x1c6265['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x228c76)});}return _0x1c6265;}['_handleCustomCallbackDescription'](_0x29d6a6){for(const _0x4d561d of this['_customCallbacks']){const _0x3da212=_0x4d561d(_0x29d6a6);if(_0x3da212&&'type'in _0x3da212)return _0x3da212;}}['_handleAttributeSuggestionDescription'](_0x2e6a6e,_0xcc7c34){const _0x3ea3f2=_0xcc7c34['data'],_0x503cf5=void 0x0===_0x3ea3f2['newValue']?'removeFormat':'addFormat';_0x2e6a6e['push']({'type':_0x503cf5,'key':_0x3ea3f2['key']});}['_handleRenameSuggestionDescription'](_0x9f4c98,_0x28a33b){_0x9f4c98['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x28a33b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x182cd0,_0xdcf8fe,_0x44714c){if(this['_addDescriptionItems'](_0x182cd0,_0xdcf8fe),_0x44714c&&_0x44714c['getFirstRange']()&&!_0xdcf8fe['getFirstRange']()['end']['isEqual'](_0x44714c['getFirstRange']()['start'])){const _0x3e520a=_0x182cd0[_0x182cd0['length']-0x1],_0x3807da='insertion'==_0xdcf8fe['type']?'add':'remove';_0x3e520a&&'text'==_0x3e520a['type']&&(_0x3e520a[_0x3807da]+='\x0a');}}constructor(_0x1984b3,_0x4c5282){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1984b3,this['_locale']=_0x4c5282;}}class E extends _0x38f362{['afterInit'](){const _0xce4460=this['editor'],_0x55aa33=_0xce4460['plugins']['get']('TrackChangesEditing');_0xce4460['commands']['get']('showAIAssistant')&&_0x55aa33['enableCommand']('showAIAssistant');}}class V extends _0x38f362{['afterInit'](){const _0x6d986a=this['editor'],_0x35ccd4=_0x6d986a['locale'];if(!_0x6d986a['plugins']['has']('AlignmentEditing'))return;const _0x12defd=_0x6d986a['plugins']['get']('TrackChangesEditing');_0x12defd['enableDefaultAttributesIntegration']('alignment'),_0x12defd['registerBlockAttribute']('alignment'),_0x12defd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x35ccd4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d7cb8=this['editor'],_0x49bde2=_0x2d7cb8['locale'];_0x2d7cb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f0c63=>{if('formatBlock'!=_0x3f0c63['type'])return;const {data:_0x3edc95}=_0x3f0c63;if(_0x3edc95&&'alignment'==_0x3edc95['commandName']){const _0x808ab0=_0x3edc95['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x49bde2,'*Format:*\x20%0',function(_0x3e08f8){switch(_0x3e08f8){case'left':return o(_0x49bde2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x49bde2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x49bde2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x49bde2,'FORMAT_JUSTIFY_TEXT');}}(_0x808ab0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x38f362{['afterInit'](){const _0x37cd48=this['editor'],_0xb0800=_0x37cd48['plugins']['get']('TrackChangesEditing'),_0x248f05=_0x37cd48['locale'];for(const _0x18bb77 of ti){if(!_0x37cd48['plugins']['has'](_0x18bb77))continue;const _0x1f8a77=_0x18bb77['slice'](0x0,-0x7)['toLowerCase'](),_0x299b0c='FORMAT_'+_0x1f8a77['toUpperCase']();_0xb0800['enableDefaultAttributesIntegration'](_0x1f8a77),_0xb0800['registerInlineAttribute'](_0x1f8a77),_0xb0800['descriptionFactory']['registerAttributeLabel'](_0x1f8a77,o(_0x248f05,_0x299b0c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x151fb4=this['editor'],_0x8b7d2e=_0x151fb4['locale'],_0x45d527=_0x151fb4['plugins']['get']('TrackChangesEditing');function _0x2bbb9f(_0x42b3ca,_0x2aed5b){_0x45d527['descriptionFactory']['registerDescriptionCallback'](_0x3af788=>{if('formatInline'!=_0x3af788['type'])return;const {data:_0x2086fb}=_0x3af788;return _0x2086fb&&_0x2086fb['commandName']===_0x42b3ca?_0x2086fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8b7d2e,'*Format:*\x20%0',_0x2aed5b)}:{'type':'format','content':o(_0x8b7d2e,'*Remove\x20format:*\x20%0',_0x2aed5b)}:void 0x0;});}_0x2bbb9f('bold',o(_0x8b7d2e,'FORMAT_BOLD')),_0x2bbb9f('italic',o(_0x8b7d2e,'FORMAT_ITALIC')),_0x2bbb9f('underline',o(_0x8b7d2e,'FORMAT_UNDERLINE')),_0x2bbb9f('code',o(_0x8b7d2e,'FORMAT_CODE')),_0x2bbb9f('strikethrough',o(_0x8b7d2e,'FORMAT_STRIKETHROUGH')),_0x2bbb9f('subscript',o(_0x8b7d2e,'FORMAT_SUBSCRIPT')),_0x2bbb9f('superscript',o(_0x8b7d2e,'FORMAT_SUPERSCRIPT'));}}class O extends _0x38f362{['afterInit'](){const _0x55ae31=this['editor'],_0x4d8a20=_0x55ae31['locale'];if(!_0x55ae31['plugins']['has']('BlockQuoteEditing'))return;const _0x1bba75=_0x55ae31['plugins']['get']('TrackChangesEditing'),_0x3ae0da=this['editor']['commands']['get']('blockQuote');_0x1bba75['enableCommand']('blockQuote',(_0x1b7e9a,_0x2b0cd0={})=>{const _0xc49d87=this['editor']['model']['document']['selection'],_0x38e5d0=_0x2b0cd0&&void 0x0!==_0x2b0cd0['forceValue']?_0x2b0cd0['forceValue']:!_0x3ae0da['value'];let _0x8e532a=[];if(_0x38e5d0){const _0x30dec7=Array['from'](_0xc49d87['getSelectedBlocks']())['filter'](_0x1d4020=>oo(_0x1d4020)||function(_0x5b0519,_0x2c4493){const _0x2ff0d4=_0x2c4493['checkChild'](_0x5b0519['parent'],'blockQuote'),_0x54f672=_0x2c4493['checkChild'](['$root','blockQuote'],_0x5b0519);return _0x2ff0d4&&_0x54f672;}(_0x1d4020,this['editor']['model']['schema']));_0x8e532a=to(_0x30dec7,_0x55ae31['model']);}else{const _0x37cbe8=Array['from'](_0xc49d87['getSelectedBlocks']())['filter'](_0x257090=>oo(_0x257090));_0x8e532a=to(_0x37cbe8,_0x55ae31['model']);}_0x55ae31['model']['change'](()=>{for(const _0x32ac05 of _0x8e532a)_0x1bba75['markBlockFormat'](_0x32ac05,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x38e5d0}]});});}),_0x1bba75['descriptionFactory']['registerDescriptionCallback'](_0x50693b=>{const {data:_0x4013de}=_0x50693b;if(_0x4013de&&'blockQuote'==_0x4013de['commandName']){const _0x5d13a8=o(_0x4d8a20,'ELEMENT_BLOCK_QUOTE');return _0x4013de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d8a20,'*Set\x20format:*\x20%0',_0x5d13a8)}:{'type':'format','content':o(_0x4d8a20,'*Remove\x20format:*\x20%0',_0x5d13a8)};}});}}function oo(_0x471fbe){return'blockQuote'==_0x471fbe['parent']['name'];}class F extends _0x38f362{['afterInit'](){const _0x437982=this['editor'];_0x437982['plugins']['has']('CaseChange')&&(_0x437982['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x437982['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x437982['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x38f362{['afterInit'](){const _0x3200a0=this['editor'];_0x3200a0['commands']['get']('ckbox')&&_0x3200a0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x38f362{['afterInit'](){const _0x29340b=this['editor'];if(!_0x29340b['plugins']['has']('CodeBlock'))return;const _0x2aef17=_0x29340b['plugins']['get']('TrackChangesEditing'),_0x3514c9=_0x29340b['locale'],_0x280611=_0x29340b['config']['get']('codeBlock')['languages'],_0x3e4fca=_0x29340b['commands']['get']('codeBlock');_0x2aef17['enableCommand']('indentCodeBlock'),_0x2aef17['enableCommand']('outdentCodeBlock'),_0x2aef17['enableCommand']('codeBlock',(_0x4bda3a,_0x131907={})=>{const _0x598d8f=_0x29340b['model'],_0x39ab0a=_0x29340b['model']['document']['selection'],_0x140512=_0x131907&&void 0x0!==_0x131907['forceValue']?_0x131907['forceValue']:!_0x3e4fca['value'];let _0x3f3bb9;_0x131907['language']||(_0x131907['language']=_0x280611[0x0]['language']),_0x3f3bb9=_0x140512?Array['from'](_0x39ab0a['getSelectedBlocks']())['filter'](_0x50f46b=>eo(_0x50f46b)||function(_0x395b05,_0x1be069){if(_0x395b05['is']('rootElement')||_0x1be069['isLimit'](_0x395b05))return!0x1;return _0x1be069['checkChild'](_0x395b05['parent'],'codeBlock');}(_0x50f46b,_0x598d8f['schema'])):Array['from'](_0x39ab0a['getSelectedBlocks']())['filter'](_0x55c5d1=>eo(_0x55c5d1));const _0x2e5cb2=to(_0x3f3bb9,_0x598d8f);_0x598d8f['change'](()=>{for(const _0x13c61a of _0x2e5cb2)_0x2aef17['markBlockFormat'](_0x13c61a,{'commandName':'codeBlock','commandParams':[{..._0x131907,'forceValue':_0x140512}],'formatGroupId':'blockName'});});}),(_0x2aef17['descriptionFactory']['registerElementLabel']('codeBlock',_0x282430=>o(_0x3514c9,'ELEMENT_CODE_BLOCK',_0x282430)),_0x2aef17['descriptionFactory']['registerDescriptionCallback'](_0x259612=>{if('formatBlock'!=_0x259612['type'])return;const _0x370c2a=_0x3514c9['t'],{data:_0x478e60}=_0x259612;if(!_0x478e60||'codeBlock'!=_0x478e60['commandName'])return;const _0xf68209=_0x478e60['commandParams'][0x0]['language'],_0x2b9fc7=_0x370c2a(_0x280611['find'](_0x3f7dc6=>_0x3f7dc6['language']===_0xf68209)['label'])['toLowerCase']();return _0x478e60['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3514c9,'*Set\x20format:*\x20%0',o(_0x3514c9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2b9fc7+')')}:{'type':'format','content':o(_0x3514c9,'*Remove\x20format:*\x20%0',o(_0x3514c9,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5edcf7){return'codeBlock'==_0x5edcf7['name'];}class H extends _0x38f362{['afterInit'](){const _0xc2a808=this['editor'];if(!_0xc2a808['plugins']['has']('CommentsEditing'))return;_0xc2a808['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x16715f,_0x44b8c1,_0x467f30){const _0x65b94d=[];for(const _0x3b9b52 of _0x44b8c1['getItems']())_0x3b9b52['hasAttribute'](_0x16715f)&&_0x65b94d['push'](_0x467f30['createRangeOn'](_0x3b9b52));return _0x65b94d;}function _e(_0x4c3b55,_0x467196,{showActiveMarker:_0x4aad9b=!0x0}={}){const _0x195e85=_0x4c3b55['plugins']['get']('TrackChangesEditing');return(_0x54ba73,_0x11f801,_0x2f0463)=>{if(!_0x2f0463['consumable']['test'](_0x11f801['markerRange'],_0x54ba73['name']))return;const _0xff5c4d=_0x11f801['markerRange']['getWalker'](),_0x5660c9=_0x11f801['markerRange']['start'],_0x36e955=_0x4c3b55['model']['schema'];let _0x17d761=null,_0x4c72fc=null,_0x39fe1b=!0x1,_0x570001=!0x1;for(const _0x5ceef1 of _0xff5c4d){const _0x4b0db7=_0x5ceef1['item'];_0x39fe1b=_0x39fe1b||_0x36e955['isContent'](_0x4b0db7);const _0x407d88=_0x2f0463['mapper']['toViewElement'](_0x4b0db7);if(_0x407d88&&_0x407d88['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5ceef1['type']&&(_0x36e955['isBlock'](_0x4b0db7)&&!_0x36e955['isLimit'](_0x4b0db7)&&(_0x4b0db7['nextSibling']||_0x5660c9['isAtEnd']?_0x17d761&&_0x17d761['parent']==_0x4b0db7||(_0x17d761=_0x4b0db7,_0x3be7a6(_0x5ceef1['previousPosition']),_0x570001=!0x0):_0x4c72fc=_0x4c72fc||_0x5ceef1['previousPosition']));}function _0x3be7a6(_0xa72239){const _0x1523f0=_0x2f0463['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x467196}),_0x2f723c=_0x2f0463['mapper']['toViewPosition'](_0xa72239);_0x4aad9b&&_0x195e85['activeMarkers']['includes'](_0x11f801['markerName'])&&_0x2f0463['writer']['addClass']('ck-suggestion-marker--active',_0x1523f0),_0x2f0463['writer']['insert'](_0x2f723c,_0x1523f0),_0x2f0463['mapper']['bindElementToMarker'](_0x1523f0,_0x11f801['markerName']);}_0x39fe1b||_0x570001||!_0x4c72fc||_0x3be7a6(_0x4c72fc);};}class q extends _0x38f362{static get['requires'](){return[_0x4af03c];}['init'](){const _0x22216c=this['editor'],_0x325994=_0x22216c['plugins']['get']('TrackChangesEditing');_0x325994['enableCommand']('delete');const _0x3dff2f=_0x22216c['commands']['get']('deleteForward');_0x325994['enableCommand']('deleteForward',(_0x56facc,_0x4f1c37={})=>{const _0x5d13bd=_0x22216c['model']['createSelection'](_0x22216c['model']['document']['selection']);_0x5d13bd['isCollapsed']&&_0x22216c['model']['modifySelection'](_0x5d13bd,{'direction':'forward','unit':_0x4f1c37['unit']});const _0x1d6677=_0x5d13bd['getFirstRange'](),_0x51f30c=_0x5beaf3['fromRange'](_0x1d6677);let _0x175eee;_0x56facc(_0x4f1c37),_0x175eee='$graveyard'==_0x51f30c['root']['rootName']?_0x22216c['model']['createRange'](_0x1d6677['start']):_0x22216c['model']['createRange'](_0x51f30c['start'],_0x51f30c['end']),_0x51f30c['detach'](),_0x22216c['model']['enqueueChange'](_0x3dff2f['buffer']['batch'],_0xe3f1d3=>{_0x3dff2f['buffer']['lock'](),_0xe3f1d3['setSelection'](_0xe3f1d3['createRange'](_0x175eee['end'])),_0x3dff2f['buffer']['unlock']();});}),_0x22216c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x22216c,'merge'),{'priority':'high'}),_0x22216c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x273a2f,_0x35fce1,_0x5a6e8b)=>{_0x5a6e8b['options']['showSuggestionHighlights']&&_e(_0x22216c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x273a2f,_0x35fce1,_0x5a6e8b);},{'priority':'high'}),_0x22216c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5c5402,_0xfafba3,_0xdffb25)=>{const _0x593224=_0xdffb25['mapper']['markerNameToElements'](_0xfafba3['markerName']);if(_0x593224){for(const _0x16665d of _0x593224)_0x16665d['is']('uiElement')&&(_0xdffb25['mapper']['unbindElementFromMarkerName'](_0x16665d,_0xfafba3['markerName']),_0xdffb25['writer']['remove'](_0x16665d));}},{'priority':'high'});}}class z extends _0x38f362{['afterInit'](){const _0x2cec33=this['editor'];if(!_0x2cec33['plugins']['has']('ListEditing'))return;const _0x4bec34=_0x2cec33['locale'],_0x365ce5=_0x2cec33['plugins']['get']('TrackChangesEditing'),_0x8be4db=_0x2cec33['plugins']['has']('TodoListEditing'),_0x5dc537=!!_0x2cec33['config']['get']('list.multiBlock');function _0x517ce5(_0x409a01){return{'type':'format','content':''+o(_0x4bec34,'*Set\x20format:*\x20%0',_0x409a01)};}function _0x4b466d(_0x4d0d50){return{'type':'format','content':''+o(_0x4bec34,'*Remove\x20format:*\x20%0',_0x4d0d50)};}_0x365ce5['enableDefaultAttributesIntegration']('numberedList'),_0x365ce5['enableDefaultAttributesIntegration']('bulletedList'),_0x365ce5['enableDefaultAttributesIntegration']('customNumberedList'),_0x365ce5['enableDefaultAttributesIntegration']('customBulletedList'),_0x365ce5['enableDefaultAttributesIntegration']('indentList'),_0x365ce5['enableDefaultAttributesIntegration']('outdentList'),_0x365ce5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x365ce5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x365ce5['registerBlockAttribute']('listItemId'),_0x365ce5['registerBlockAttribute']('listType'),_0x365ce5['registerBlockAttribute']('listIndent'),_0x5dc537&&(_0x365ce5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x365ce5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x8be4db&&(_0x365ce5['enableDefaultAttributesIntegration']('todoList'),_0x365ce5['enableDefaultAttributesIntegration']('checkTodoList'),_0x365ce5['registerBlockAttribute']('todoListChecked'),_0x365ce5['descriptionFactory']['registerDescriptionCallback'](_0xbe98a2=>{const {data:_0x2e5b88}=_0xbe98a2;if(_0x2e5b88&&'todoListChecked'==_0x2e5b88['key'])return{'type':'format','content':_0x2e5b88['newValue']?o(_0x4bec34,'*Check\x20item*'):o(_0x4bec34,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x435d0d=>{if(_0x435d0d['batch']['isUndo'])return!0x1;let _0xc8e89=!0x1;const _0x563ab9=_0x365ce5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25d249=>'todoListChecked'===_0x365ce5['_getAttributeKey'](_0x25d249));for(const _0x2f6216 of _0x563ab9){'todo'!=_0x2f6216['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x365ce5['_findSuggestions'](_0x2f6216['getFirstRange'](),'attribute')['find'](_0x2f6dc1=>'listType'===_0x365ce5['_getAttributeKey'](_0x2f6dc1['suggestion']))||(_0x435d0d['removeMarker'](_0x2f6216['getFirstMarker']()),_0xc8e89=!0x0));}return _0xc8e89;})),_0x365ce5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4bec34,'FORMAT_INDENT'));const _0x141c87={'type':'format','content':''};_0x365ce5['descriptionFactory']['registerDescriptionCallback'](_0x55e719=>{const {data:_0x195209}=_0x55e719;if(!_0x195209||'listType'!=_0x195209['key'])return;let _0x2ba1d2=_0x55e719['head'];for(;_0x2ba1d2;){if(_0x2ba1d2['data']&&(('listStyle'==_0x2ba1d2['data']['key']||'listMarkerStyle'==_0x2ba1d2['data']['key'])&&(_0x2ba1d2['data']['newValue']&&'default'!=_0x2ba1d2['data']['newValue']||'default'!=_0x2ba1d2['data']['oldValue']&&!_0x195209['newValue'])||!_0x5dc537&&_0x2ba1d2['data']['key']==m))return _0x141c87;_0x2ba1d2=_0x2ba1d2['next'];}if(null==_0x195209['newValue'])switch(_0x195209['oldValue']){case'bulleted':return _0x4b466d(o(_0x4bec34,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b466d(o(_0x4bec34,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b466d(o(_0x4bec34,'ELEMENT_TODO_LIST'));}switch(_0x195209['newValue']){case'bulleted':return _0x517ce5(o(_0x4bec34,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x517ce5(o(_0x4bec34,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x517ce5(o(_0x4bec34,'ELEMENT_TODO_LIST'));}}),_0x365ce5['descriptionFactory']['registerDescriptionCallback'](_0x88b545=>{const {data:_0x1047c1}=_0x88b545;if(_0x1047c1&&'listIndent'==_0x1047c1['key'])return null==_0x1047c1['newValue']||null==_0x1047c1['oldValue']&&0x0==_0x1047c1['newValue']?_0x141c87:void 0x0;}),_0x365ce5['descriptionFactory']['registerDescriptionCallback'](_0x2994dc=>{if('attribute'!=_0x2994dc['type'])return;const {data:_0x187d62}=_0x2994dc;if(!_0x187d62||'listItemId'!=_0x187d62['key'])return;const _0xfc6594=le(_0x2994dc);return'newValue'==_0xfc6594?{'type':'format','content':o(_0x4bec34,'*Merge:*\x20list\x20item')}:'oldValue'==_0xfc6594?{'type':'format','content':o(_0x4bec34,'*Split:*\x20list\x20item')}:_0x141c87;}),_0x2cec33['model']['document']['registerPostFixer'](_0x397019=>this['listItemIdFixer'](_0x397019)),_0x2cec33['model']['document']['registerPostFixer'](_0x41c2c7=>this['noTrackChangesFixer'](_0x41c2c7)),_0x2cec33['model']['document']['registerPostFixer'](_0x3a4882=>this['assureChains'](_0x3a4882)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3951b3){if(_0x3951b3['batch']['isUndo']||!_0x3951b3['batch']['isLocal'])return!0x1;let _0x34c2e5=!0x1;const _0x454d1a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ab9a4=>_0x5ab9a4['data']&&'listItemId'==_0x5ab9a4['data']['key'])['filter'](_0x1697af=>_0x1697af['data']['newValue']&&_0x1697af['data']['oldValue']);for(const _0x3f3a3b of _0x454d1a)le(_0x3f3a3b)||(_0x3951b3['removeMarker'](_0x3f3a3b['getFirstMarker']()),_0x34c2e5=!0x0);return _0x34c2e5;}['noTrackChangesFixer'](_0x4ac47c){if(_0x4ac47c['batch']['isUndo']||!_0x4ac47c['batch']['isLocal'])return!0x1;const _0x14d2a5=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x14d2a5['trackChangesCommand']['value'])return!0x1;let _0x53dab7=!0x1;const _0x1acfc9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x28a883=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x43ecc3=>'attribute'==_0x43ecc3['type'])['filter'](_0x39bc24=>_0x1acfc9['includes'](_0x39bc24['attributeKey']));if(0x0==_0x28a883['length'])return _0x53dab7;for(const _0x32cac5 of _0x28a883){const _0x5451cd=_0x14d2a5['_findSuggestions'](_0x32cac5['range'],'attribute')['filter'](_0x4a32f2=>!_0x4a32f2['meta']['isNextTo'])['map'](_0x4276b0=>_0x4276b0['suggestion'])['filter'](_0x4f40cc=>{const _0x588ed7=_0x14d2a5['_getAttributeKey'](_0x4f40cc);return _0x1acfc9['includes'](_0x588ed7);});if(_0x5451cd['length']){for(const _0x539eff of _0x5451cd)_0x4ac47c['removeMarker'](_0x539eff['getFirstMarker']());_0x53dab7=!0x0;}}return _0x53dab7;}['assureChains'](_0x58c9e9){if(_0x58c9e9['batch']['isUndo']||!_0x58c9e9['batch']['isLocal'])return!0x1;const _0x180d0d=this['editor']['plugins']['get']('TrackChangesEditing');let _0x193059=!0x1;const _0x28ff81=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x3ad089 of _0x180d0d['getSuggestions']({'skipNotAttached':!0x0})){const _0x2c6073=_0x180d0d['_findSuggestions'](_0x3ad089['getFirstRange'](),'attribute')['map'](_0x2371ed=>_0x2371ed['suggestion'])['filter'](_0x4027b3=>_0x4027b3['data']&&_0x28ff81['includes'](_0x4027b3['data']['key']));if(!_0x2c6073['length'])continue;const _0xad1331=_0x2c6073[0x0]['head']['attributes']['groupId'];if(!_0x2c6073['every'](_0x511894=>_0x511894['attributes']['groupId']===_0xad1331)){for(const _0x3c7370 of _0x2c6073)_0x432ddf(_0x3c7370,_0xad1331)&&(_0x193059=!0x0);}}return _0x193059;function _0x42f73c(_0x3572db,_0x309260){for(const _0x3dde3c of _0x180d0d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50be56=>'attribute'==_0x50be56['type']&&_0x50be56['attributes']['groupId']==_0x3572db))_0x3dde3c['setAttribute']('groupId',_0x309260);}function _0x432ddf(_0xd61c9f,_0x222110){let _0x36c073=_0xd61c9f['head'],_0x3ccb63=!0x1;for(;_0x36c073;)_0x36c073['attributes']['groupId']!=_0x222110&&(_0x42f73c(_0x36c073['attributes']['groupId'],_0x222110),_0x36c073['setAttribute']('groupId',_0x222110),_0x3ccb63=!0x0),_0x36c073=_0x36c073['next'];return _0x3ccb63;}}['_supportLegacySuggestions'](){const _0x1c4433=this['editor'],_0x270a47=_0x1c4433['locale'],_0x620674=_0x1c4433['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x620674['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x283bf4,_0x2fe24a){const _0x567ad3=[];for(let _0x33ae10 of _0x283bf4)_0x33ae10['start']['nodeAfter']===_0x33ae10['end']['parent']&&(_0x33ae10=_0x1c4433['model']['createRange'](_0x1c4433['model']['createPositionAt'](_0x33ae10['start']['nodeAfter'],0x0))),_0x567ad3['push'](_0x33ae10);_0x1c4433['model']['change'](_0x4c70fa=>{const _0x57c4a3=_0x1c4433['model']['document']['selection'],_0x4e4bef=Array['from'](_0x57c4a3['getRanges']())['map'](_0x44330b=>_0x5beaf3['fromRange'](_0x44330b));_0x4c70fa['setSelection'](_0x567ad3),_0x1c4433['commands']['get'](_0x2fe24a['commandName'])['refresh'](),_0x2fe24a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1c4433['execute'](_0x2fe24a['commandName'],..._0x2fe24a['commandParams']),_0x4c70fa['setSelection'](_0x4e4bef);for(const _0x1367a2 of _0x4e4bef)_0x1367a2['detach']();});}),_0x620674['descriptionFactory']['registerElementLabel'](function(_0x322f01){const _0x150fea=!_0x1c4433['model']['schema']['isObject'](_0x322f01),_0x1d6de7=_0x322f01['previousSibling'],_0x520b4e=_0x322f01['nextSibling'],_0x1c9bbc=_0x322f01['getAttribute']('listItemId'),_0x5c4315=!_0x1d6de7||_0x1d6de7['getAttribute']('listItemId')!==_0x1c9bbc,_0x41bcae=!_0x520b4e||_0x520b4e['getAttribute']('listItemId')!==_0x1c9bbc;return _0x150fea&&Boolean(_0x1c9bbc)&&_0x5c4315&&_0x41bcae;},_0x18b1a6=>o(_0x270a47,'ELEMENT_LIST_ITEM',_0x18b1a6));}['_registerLegacyDescription'](){const _0x30795b=this['editor'],_0x2c2db4=_0x30795b['locale'];function _0x5ad0a6(_0xc7cc57){const _0x2f9e0f=_0x30795b['commands']['get']('bulletedList')['value'],_0x5ca081=_0x30795b['commands']['get']('numberedList')['value'];return'numberedList'===_0xc7cc57?_0x2f9e0f:_0x5ca081;}_0x30795b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x124110){if('formatBlock'!=_0x124110['type'])return;const {data:_0x52780d}=_0x124110;if(!_0x52780d)return;let _0x46ccb5,_0x3bb373,_0x5253ae,_0xc485a3;switch(_0x52780d['commandName']){case'bulletedList':_0x5253ae=_0x52780d['commandParams'][0x0]['forceValue'],_0xc485a3=_0x5ad0a6(_0x52780d['commandName']),_0x46ccb5=_0x5253ae?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc485a3&&_0x30795b['config']['get']('list.multiBlock')||(_0x46ccb5='*Change\x20to:*\x20%0'),_0x3bb373={'type':'format','content':o(_0x2c2db4,_0x46ccb5,o(_0x2c2db4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5253ae=_0x52780d['commandParams'][0x0]['forceValue'],_0xc485a3=_0x5ad0a6(_0x52780d['commandName']),_0x46ccb5=_0x5253ae?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc485a3&&_0x30795b['config']['get']('list.multiBlock')||(_0x46ccb5='*Change\x20to:*\x20%0'),_0x3bb373={'type':'format','content':o(_0x2c2db4,_0x46ccb5,o(_0x2c2db4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x46ccb5='*Indent:*\x20%0',_0x3bb373={'type':'format','content':o(_0x2c2db4,_0x46ccb5,o(_0x2c2db4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x46ccb5=function(_0x1781b9){const _0x7cdabd=_0x1781b9['getFirstRange']();let _0x2b7e3a=_0x7cdabd['start']['nodeAfter'];for(;_0x2b7e3a&&_0x7cdabd['containsItem'](_0x2b7e3a);){if(_0x2b7e3a['getAttribute']('listIndent')>0x0)return!0x1;_0x2b7e3a=_0x2b7e3a['nextSibling'];}return!0x0;}(_0x124110)?o(_0x2c2db4,'*Format:*\x20remove\x20from\x20%0',o(_0x2c2db4,function(_0x4e2353){return'ELEMENT_'+_0x4e2353['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x124110))):o(_0x2c2db4,'*Outdent:*\x20%0',o(_0x2c2db4,'ELEMENT_LIST_ITEM')),_0x3bb373={'type':'format','content':_0x46ccb5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x52780d['multipleBlocks']&&(_0x46ccb5='*Merge:*\x20%0',_0x3bb373={'type':'deletion','content':o(_0x2c2db4,_0x46ccb5,o(_0x2c2db4,'ELEMENT_LIST_ITEM'))});}return _0x3bb373;});}}function le(_0x3415ef){let _0x4b209a=_0x3415ef['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b209a;){const _0x23f4a0=_0x4b209a['getAttribute']('listItemId');if(!_0x23f4a0)return!0x1;if(_0x23f4a0==_0x3415ef['data']['newValue'])return'newValue';if(_0x23f4a0==_0x3415ef['data']['oldValue'])return'oldValue';_0x4b209a=_0x4b209a['previousSibling'];}return!0x1;}class ue extends _0x38f362{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x57dcc0=this['editor']['config']['get']('list.properties'),_0x2556e0=this['editor']['plugins']['get']('TrackChangesEditing');_0x57dcc0['styles']&&(_0x2556e0['enableDefaultAttributesIntegration']('listStyle'),_0x2556e0['registerBlockAttribute']('listStyle')),_0x57dcc0['reversed']&&(_0x2556e0['enableDefaultAttributesIntegration']('listReversed'),_0x2556e0['registerBlockAttribute']('listReversed')),_0x57dcc0['startIndex']&&(_0x2556e0['enableDefaultAttributesIntegration']('listStart'),_0x2556e0['registerBlockAttribute']('listStart'));const _0x5bfe8c={'type':'format','content':''};_0x2556e0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1eaed5=this['editor']['locale'];_0x2556e0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1eaed5,'FORMAT_LIST_REVERSED')),_0x2556e0['descriptionFactory']['registerDescriptionCallback'](_0x30d5ba=>{const {data:_0x46ba86}=_0x30d5ba;if(_0x46ba86&&'listReversed'==_0x46ba86['key'])return null==_0x46ba86['newValue']||0x0==_0x46ba86['newValue']&&null==_0x46ba86['oldValue']?_0x5bfe8c:void 0x0;}),_0x2556e0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1eaed5,'FORMAT_LIST_START')),_0x2556e0['descriptionFactory']['registerDescriptionCallback'](_0x119595=>{const {data:_0x248e89}=_0x119595;if(_0x248e89&&'listStart'==_0x248e89['key'])return null==_0x248e89['newValue']||0x1==_0x248e89['newValue']&&null==_0x248e89['oldValue']?_0x5bfe8c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x56df5f=>{if(_0x56df5f['batch']['isUndo'])return!0x1;let _0x4fb176=!0x1;const _0x5d7f45=_0x2556e0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a3537=>{const _0x177e37=_0x2556e0['_getAttributeKey'](_0x2a3537);return'listStart'==_0x177e37||'listReversed'==_0x177e37;});for(const _0x426701 of _0x5d7f45){const _0x48c09e=_0x426701['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x48c09e||'customNumbered'==_0x48c09e)continue;_0x2556e0['_findSuggestions'](_0x426701['getFirstRange'](),'attribute')['find'](_0x2b07fd=>'listType'==_0x2556e0['_getAttributeKey'](_0x2b07fd['suggestion']))||(_0x56df5f['removeMarker'](_0x426701['getFirstMarker']()),_0x4fb176=!0x0);}return _0x4fb176;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x184ede){const _0x5ac08a=this['editor']['locale'],{data:_0x43bea2}=_0x184ede,_0x1ccb99={'type':'format','content':''};if(!_0x43bea2||'listStyle'!=_0x43bea2['key'])return;if(!_0x43bea2['oldValue'])return'default'==_0x43bea2['newValue']?_0x1ccb99:{'type':'format','content':''+o(_0x5ac08a,'*Set\x20format:*\x20%0',o(_0x5ac08a,this['_getTranslationKeyForListStyle'](_0x43bea2['newValue'])))};if(!_0x43bea2['newValue']){if('default'==_0x43bea2['oldValue'])return _0x1ccb99;let _0x5745fc=_0x184ede['head'];for(;_0x5745fc;){if(_0x5745fc['data']&&'listType'==_0x5745fc['data']['key']&&_0x5745fc['data']['newValue'])return _0x1ccb99;_0x5745fc=_0x5745fc['next'];}return{'type':'format','content':''+o(_0x5ac08a,'*Remove\x20format:*\x20%0',o(_0x5ac08a,this['_getTranslationKeyForListStyle'](_0x43bea2['oldValue'])))};}if('default'!=_0x43bea2['newValue'])return{'type':'format','content':''+o(_0x5ac08a,'*Set\x20format:*\x20%0',o(_0x5ac08a,this['_getTranslationKeyForListStyle'](_0x43bea2['newValue'])))};let _0x23d9d3=_0x184ede['head'];for(;_0x23d9d3;){if(_0x23d9d3['data']&&'listType'==_0x23d9d3['data']['key']&&_0x23d9d3['data']['newValue']&&_0x23d9d3['data']['oldValue'])return _0x1ccb99;_0x23d9d3=_0x23d9d3['next'];}return{'type':'format','content':o(_0x5ac08a,'*Set\x20format:*\x20%0',o(_0x5ac08a,'ELEMENT_'+_0x184ede['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x473cff=this['editor'],_0x5136f1=_0x473cff['locale'];_0x473cff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10baf2=>{if('formatBlock'!=_0x10baf2['type'])return;const {data:_0x902cac}=_0x10baf2;if(!_0x902cac)return;let _0x321775,_0x22310e;switch(_0x902cac['commandName']){case'listStyle':_0x321775='*Change\x20to:*\x20%0',_0x22310e={'type':'format','content':o(_0x5136f1,_0x321775,o(_0x5136f1,this['_getTranslationKeyForListStyle'](_0x902cac['commandParams'][0x0]['type'])))};break;case'listReversed':_0x321775=_0x902cac['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x22310e={'type':'format','content':o(_0x5136f1,_0x321775)};break;case'listStart':_0x321775='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x22310e={'type':'format','content':o(_0x5136f1,_0x321775,_0x902cac['commandParams'][0x0]['startIndex'])};}return _0x22310e;});}['_getTranslationKeyForListStyle'](_0x4913a7){return'ELEMENT_'+function(_0x3800bf){if(pe['includes'](_0x3800bf))return'bulleted';if(ye['includes'](_0x3800bf))return'numbered';return null;}(_0x4913a7)['toUpperCase']()+'_LIST_'+_0x4913a7['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x38f362{static get['requires'](){return[_0x52f914];}['init'](){const _0x4b1e19=this['editor'],_0x132cde=_0x4b1e19['plugins']['get']('TrackChangesEditing'),_0x198757=_0x4b1e19['commands']['get']('enter');_0x132cde['enableCommand']('enter',()=>{_0x4b1e19['model']['change'](_0x4c8c94=>{const _0x4a6d95=_0x4b1e19['model']['document']['selection'],_0x2f935a=_0x4a6d95['getFirstPosition'](),_0x2f1a13=_0x5beaf3['fromRange'](_0x4a6d95['getFirstRange']());if(_0x198757['enterBlock'](_0x4c8c94)){const _0x5111ab=_0x4b1e19['model']['createPositionAt'](_0x2f935a['parent']['nextSibling'],0x0),_0xa762f=_0x4c8c94['createRange'](_0x2f935a,_0x5111ab);_0x132cde['markInsertion'](_0xa762f);}else _0x4c8c94['setSelection'](_0x4c8c94['createRange'](_0x2f1a13['end']));_0x2f1a13['detach'](),_0x198757['fire']('afterExecute',{'writer':_0x4c8c94});});}),_0x4b1e19['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4b1e19,'split'),{'priority':'high'}),_0x4b1e19['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4205c1,_0x39165d,_0x4ddcef)=>{const _0x31fbf2=_0x4ddcef['mapper']['markerNameToElements'](_0x39165d['markerName']);if(_0x31fbf2){for(const _0x1a598c of _0x31fbf2)_0x1a598c['hasClass']('ck-suggestion-marker-split')&&(_0x4ddcef['mapper']['unbindElementFromMarkerName'](_0x1a598c,_0x39165d['markerName']),_0x4ddcef['writer']['remove'](_0x1a598c));}},{'priority':'high'}),_0x4b1e19['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5f45a2,_0x533ca3,_0x4ae522)=>{_0x4ae522['options']['showSuggestionHighlights']&&_e(_0x4b1e19,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5f45a2,_0x533ca3,_0x4ae522);},{'priority':'high'});}}class J extends _0x38f362{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3400c9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3400c9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3400c9['enableCommand']('findNext'),_0x3400c9['enableCommand']('findPrevious'),_0x3400c9['enableCommand']('replace'),_0x3400c9['enableCommand']('replaceAll');}['handleFindCommand'](_0x1c7cd8,_0x326207,_0x8da131={}){const _0x30a726=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1c7cd8(_0x54e9ce=>('string'==typeof _0x326207?_0x30a726['findByTextCallback'](_0x326207,_0x8da131):_0x326207)(_0x54e9ce)['filter'](_0x135c9e=>!0x1===this['_isInDeletionRange'](_0x135c9e,_0x54e9ce['item'])),_0x8da131);}['_isInDeletionRange'](_0x5255e2,_0xd3094b){const _0x19b8b6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd3094b,_0x5255e2['start']),this['editor']['model']['createPositionAt'](_0xd3094b,_0x5255e2['end']));for(const _0x857ea2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x19b8b6['getIntersection'](_0x857ea2['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 _0x38f362{['afterInit'](){const _0x4ed3cf=this['editor']['locale'],_0x2cbb4a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x25a14d,commandName:_0x417d6d}of ro)this['editor']['plugins']['has'](_0x25a14d)&&(_0x2cbb4a['enableDefaultAttributesIntegration'](_0x417d6d),_0x2cbb4a['registerInlineAttribute'](_0x417d6d));_0x4ed3cf['t'],_0x2cbb4a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4ed3cf,'FORMAT_FONT_SIZE')),_0x2cbb4a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4ed3cf,'FORMAT_FONT_FAMILY')),_0x2cbb4a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4ed3cf,'FORMAT_FONT_COLOR')),_0x2cbb4a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4ed3cf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b5dae=this['editor'],_0x4259d4=_0x4b5dae['locale'];_0x4b5dae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ba6a=>{const _0x10b6cf=_0x4259d4['t'];if('formatInline'!=_0x5ba6a['type'])return;const {data:_0x170758}=_0x5ba6a;if(null!=_0x170758){if('fontSize'==_0x170758['commandName']){const _0x1cb351=_0x170758['commandParams'][0x0]['value'];if(_0x1cb351){const _0x29eef7=_0x10b6cf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xfd49f0=>_0xfd49f0['model']==_0x1cb351)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4259d4,'*Set\x20font\x20size:*\x20%0',_0x29eef7)};}return{'type':'format','content':o(_0x4259d4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x170758['commandName']){const _0x3f3e44=_0x170758['commandParams'][0x0]['value'];return _0x3f3e44?{'type':'format','content':o(_0x4259d4,'*Set\x20font\x20family:*\x20%0',_0x3f3e44)}:{'type':'format','content':o(_0x4259d4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x170758['commandName']){const _0x3ca7c7=_0x170758['commandParams'][0x0]['value'];if(_0x3ca7c7){const _0x46fdb5=_0x5ad24b(this['editor']['config']['get']('fontColor.colors'))['find'](_0xaa91c4=>_0xaa91c4['model']==_0x3ca7c7);let _0x1ca155=_0x3ca7c7,_0x3a34ec='';return _0x46fdb5&&(_0x1ca155=_0x46fdb5['label'],_0x3a34ec=_0x10b6cf(_0x1ca155)['toLowerCase']()),{'type':'format','content':o(_0x4259d4,'*Set\x20font\x20color:*\x20%0',_0x3a34ec)['trim'](),'color':{'value':_0x3ca7c7,'title':_0x3a34ec||_0x1ca155}};}return{'type':'format','content':o(_0x4259d4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x170758['commandName']){const _0x39d773=_0x170758['commandParams'][0x0]['value'];if(_0x39d773){const _0x57de0f=_0x5ad24b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3c3c5b=>_0x3c3c5b['model']==_0x39d773);let _0x4ea523=_0x39d773,_0x12328c='';return _0x57de0f&&(_0x4ea523=_0x57de0f['label'],_0x12328c=_0x10b6cf(_0x4ea523)['toLowerCase']()),{'type':'format','content':o(_0x4259d4,'*Set\x20font\x20background\x20color:*\x20%0',_0x12328c)['trim'](),'color':{'value':_0x39d773,'title':_0x12328c||_0x4ea523}};}return{'type':'format','content':o(_0x4259d4,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x38f362{['afterInit'](){const _0x5e8b6f=this['editor'],_0x3f7e33=_0x5e8b6f['plugins']['get']('TrackChangesEditing'),_0x576fa8=_0x5e8b6f['commands']['get']('copyFormat'),_0x4c1bbe=_0x5e8b6f['commands']['get']('pasteFormat');_0x576fa8&&_0x4c1bbe&&(_0x3f7e33['enableDefaultAttributesIntegration']('pasteFormat'),_0x3f7e33['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3ecaf8=this['editor'],_0x438826=_0x3ecaf8['locale'];_0x3ecaf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c514b=>{if('formatBlock'!=_0x4c514b['type']&&'formatInline'!=_0x4c514b['type'])return;const {data:_0xf952cb}=_0x4c514b;if(_0xf952cb&&'pasteFormat'===_0xf952cb['commandName']){const _0x51d00e=[],_0x782d29=_0xf952cb['commandParams'][0x0];for(const [_0x1d17e1,_0x5337ca]of Object['entries'](_0x782d29))_0x51d00e['push'](so(_0x3ecaf8,_0x1d17e1,_0x5337ca));return _0x51d00e['length']?{'type':'format','content':o(_0x438826,'*Set\x20format\x20to:*\x20%0',_0x51d00e['join'](',\x20'))}:{'type':'format','content':o(_0x438826,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2aa6dc,_0x379c85,_0x24c20a){const _0x736847=_0x2aa6dc['locale']['t'],_0x1badfa=_0x379c85['split'](/(?=[A-Z])/)['join']('\x20'),_0x50e641=_0x736847(_0x1badfa['charAt'](0x0)['toUpperCase']()+_0x1badfa['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x24c20a)return _0x50e641;if('fontColor'===_0x379c85||'fontBackgroundColor'===_0x379c85){const _0x56a4a6=_0x5ad24b(_0x2aa6dc['config']['get']('fontColor.colors'))['find'](_0x2e21c5=>_0x2e21c5['model']==_0x24c20a);return _0x50e641+'\x20('+(_0x56a4a6?_0x736847(_0x56a4a6['label'])['toLowerCase']():_0x24c20a)+')';}if('fontSize'===_0x379c85&&isNaN(parseFloat(_0x24c20a))){const _0x15683c=_0x2aa6dc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2aa6dc['config']['get']('fontSize.options'))['find'](_0x2e23cc=>_0x2e23cc['model']==_0x24c20a);return _0x50e641+'\x20('+(_0x15683c?_0x736847(_0x15683c['title'])['toLowerCase']():_0x24c20a)+')';}return _0x50e641+'\x20('+_0x24c20a+')';}class Y extends _0x38f362{['afterInit'](){const _0x23ee2c=this['editor'];if(!_0x23ee2c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x23ee2c['config']['get']('heading.options');const _0x51241a=_0x23ee2c['locale'],_0x51f48e=_0x23ee2c['plugins']['get']('TrackChangesEditing');_0x51f48e['enableDefaultAttributesIntegration']('heading');for(const _0x34ca8c of this['_headingOptions'])'paragraph'!=_0x34ca8c['model']&&_0x51f48e['descriptionFactory']['registerElementLabel'](_0x34ca8c['model'],_0x4d3293=>{const _0x4c6c5d=this['_getHeadingLevel'](_0x34ca8c['model']);return null!==_0x4c6c5d?_0x5defc6(_0x4d3293,_0x4c6c5d):_0x331cda(_0x4d3293,_0x34ca8c['title']);});function _0x5defc6(_0x361b61,_0x246da9){return o(_0x51241a,'ELEMENT_HEADING',[_0x361b61,_0x246da9]);}function _0x331cda(_0x2140e3,_0x11abc2){return o(_0x51241a,'ELEMENT_HEADING_CUSTOM',[_0x2140e3,_0x11abc2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51d73e=this['editor'],_0xcfe427=_0x51d73e['locale'];function _0x2e399f(_0x44dbb,_0x1b6417){return o(_0xcfe427,'ELEMENT_HEADING_CUSTOM',[_0x44dbb,_0x1b6417]);}_0x51d73e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d14d5=>{if('formatBlock'!=_0x1d14d5['type'])return;const {data:_0x6c2da3}=_0x1d14d5;if(_0x6c2da3&&'heading'==_0x6c2da3['commandName']){const _0x564200=_0x6c2da3['commandParams'][0x0]['value'],_0x13b318=this['_getHeadingLevel'](_0x564200);if(null!==_0x13b318)return{'type':'format','content':o(_0xcfe427,'*Change\x20to:*\x20%0',(_0x2376f3=0x1,_0x1e3602=_0x13b318,o(_0xcfe427,'ELEMENT_HEADING',[_0x2376f3,_0x1e3602])))};const _0x585e6e=this['_headingOptions']['find'](_0x542ad0=>_0x542ad0['model']===_0x564200)['title'];return{'type':'format','content':o(_0xcfe427,'*Change\x20to:*\x20%0',_0x2e399f(0x1,_0x585e6e))};}var _0x2376f3,_0x1e3602;});}['_getHeadingLevel'](_0x4e4ca7){var _0x20b319,_0x1bdcba;const _0x1c3a9e=_0x4e4ca7['match'](/^heading(\d+)/);if(_0x1c3a9e)return _0x1c3a9e[0x1];const _0x2454f1=null===(_0x20b319=this['_headingOptions'])||void 0x0===_0x20b319?void 0x0:_0x20b319['find'](_0xce745e=>_0xce745e['model']==_0x4e4ca7);if(_0x2454f1&&_0x2454f1['view']){const _0x10651b=_0x2454f1['view'],_0x3b86b7=(null!==(_0x1bdcba=_0x10651b['name'])&&void 0x0!==_0x1bdcba?_0x1bdcba:_0x10651b)['match'](/^h(\d+)/);if(_0x3b86b7)return _0x3b86b7[0x1];}return null;}}class Z extends _0x38f362{['afterInit'](){const _0x3562e8=this['editor'];if(!_0x3562e8['plugins']['has']('HighlightEditing'))return;const _0x26ff49=_0x3562e8['plugins']['get']('TrackChangesEditing'),_0x56a784=_0x3562e8['locale'];_0x26ff49['enableDefaultAttributesIntegration']('highlight'),_0x26ff49['registerInlineAttribute']('highlight'),_0x26ff49['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x56a784,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5eb74a=this['editor'],_0x228826=_0x5eb74a['locale'];_0x5eb74a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x223b78=>{if('formatInline'!=_0x223b78['type'])return;const {data:_0x1aa215}=_0x223b78;if(_0x1aa215&&'highlight'==_0x1aa215['commandName']){const _0x1cb1c0=_0x228826['t'],_0x69fb25=_0x1aa215['commandParams'][0x0]['value'];if(_0x69fb25){const _0x2c1f57=_0x5eb74a['config']['get']('highlight.options')['find'](_0x1148eb=>_0x1148eb['model']==_0x69fb25),_0x3143a5=_0x1cb1c0(_0x2c1f57['title'])['toLowerCase']();return{'type':'format','content':o(_0x228826,'*Set\x20highlight:*\x20%0',_0x3143a5),'color':{'value':_0x2c1f57['color'],'title':_0x2c1f57['title']}};}return{'type':'format','content':o(_0x228826,'*Remove\x20highlight*',o(_0x228826,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x38f362{['afterInit'](){const _0x56b46d=this['editor'];if(!_0x56b46d['plugins']['has']('HorizontalLineEditing'))return;_0x56b46d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x577bdc=_0x56b46d['plugins']['get']('TrackChangesEditing'),_0x1c7298=_0x56b46d['locale'];_0x577bdc['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5eab8b=>o(_0x1c7298,'ELEMENT_HORIZONTAL_LINE',_0x5eab8b)),_0x56b46d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1bcbc4,{writer:_0x521a52,options:_0x48f98c})=>{if(!_0x48f98c['showSuggestionHighlights'])return null;const _0x5bebeb=_0x521a52['createContainerElement']('div'),_0x4463b4=_0x521a52['createEmptyElement']('hr');return _0x521a52['addClass']('ck-horizontal-line',_0x5bebeb),_0x521a52['insert'](_0x521a52['createPositionAt'](_0x5bebeb,0x0),_0x4463b4),_0x5bebeb;},'converterPriority':'high'});}}class et extends _0x38f362{['afterInit'](){const _0x5b5a79=this['editor'];if(!_0x5b5a79['plugins']['has']('HtmlEmbed'))return;const _0x50769e=_0x5b5a79['plugins']['get']('TrackChangesEditing'),_0x334691=_0x5b5a79['locale'];_0x50769e['descriptionFactory']['registerElementLabel']('rawHtml',_0x2b1593=>o(_0x334691,'ELEMENT_HTML_EMBED',_0x2b1593)),_0x50769e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x50769e['registerBlockAttribute']('value'),_0x50769e['descriptionFactory']['registerDescriptionCallback'](_0x371dbb=>{if('attribute'!=_0x371dbb['type'])return;const {data:_0x233b81}=_0x371dbb;if(_0x233b81&&'value'==_0x233b81['key']&&_0x371dbb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2de7ed=o(_0x334691,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x334691,'*Change\x20%0\x20content*',_0x2de7ed)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x501a4f=this['editor'],_0x581f2a=_0x501a4f['locale'];_0x501a4f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ebc33=>{if('formatBlock'!=_0x3ebc33['type'])return;const {data:_0x4895b4}=_0x3ebc33;if(_0x4895b4&&'htmlEmbed'==_0x4895b4['commandName']){const _0x4148d8=o(_0x581f2a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x581f2a,'*Change\x20%0\x20content*',_0x4148d8)};}});}}class it extends _0x38f362{['afterInit'](){const _0x4dc5f5=this['editor'];if(!_0x4dc5f5['plugins']['has']('ImageEditing'))return;const _0x379942=_0x4dc5f5['plugins']['get']('TrackChangesEditing'),_0x2867e8=_0x4dc5f5['plugins']['get']('ImageUtils'),_0x11c83d=_0x4dc5f5['locale'];_0x379942['enableCommand']('insertImage'),_0x379942['descriptionFactory']['registerElementLabel']('imageBlock',_0x330c0b=>o(_0x11c83d,'ELEMENT_IMAGE',_0x330c0b)),_0x379942['descriptionFactory']['registerElementLabel']('imageInline',_0x405eff=>o(_0x11c83d,'ELEMENT_INLINE_IMAGE',_0x405eff)),_0x379942['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x11c83d,'ELEMENT_CAPTION')),_0x4dc5f5['plugins']['has']('ImageUploadEditing')&&_0x379942['enableCommand']('uploadImage'),_0x4dc5f5['plugins']['has']('ImageBlockEditing')&&_0x4dc5f5['plugins']['has']('ImageInlineEditing')&&(_0x379942['enableCommand']('imageTypeInline',(_0x560a0a,_0x43c27d)=>{const _0x36a609=_0x2867e8['getClosestSelectedImageElement'](_0x4dc5f5['model']['document']['selection']);_0x4dc5f5['model']['change'](()=>{_0x379942['markBlockFormat'](_0x36a609,{'commandName':'imageTypeInline','commandParams':[_0x43c27d]},[],'convertBlockImageToInline');});}),_0x379942['enableCommand']('imageTypeBlock',(_0x1eceb1,_0x2e5a11)=>{_0x4dc5f5['model']['change'](_0x528265=>{let _0x3404f3=_0x2867e8['getClosestSelectedImageElement'](_0x4dc5f5['model']['document']['selection']),_0x451f6f=_0x528265['createRangeOn'](_0x3404f3);const _0x15636c=_0x1b69ad['fromPosition'](_0x451f6f['start'],'toPrevious'),_0x19ba31=_0x1b69ad['fromPosition'](_0x451f6f['end'],'toNext');_0x379942['forceDefaultExecution'](()=>_0x1eceb1(_0x2e5a11)),_0x3404f3=_0x2867e8['getClosestSelectedImageElement'](_0x4dc5f5['model']['document']['selection']),_0x451f6f=_0x528265['createRangeOn'](_0x3404f3);const _0x4c48e4=_0x528265['createRange'](_0x15636c,_0x19ba31);_0x15636c['detach'](),_0x19ba31['detach'](),_0x379942['markBlockFormat'](_0x3404f3,{'commandName':'imageTypeInline','commandParams':[_0x2e5a11]},[],'convertInlineImageToBlock'),_0x4c48e4['start']['isBefore'](_0x451f6f['start'])&&_0x379942['markInsertion'](_0x528265['createRange'](_0x4c48e4['start'],_0x451f6f['start']),'convertInlineImageToBlock'),_0x451f6f['end']['isBefore'](_0x4c48e4['end'])&&_0x379942['markInsertion'](_0x528265['createRange'](_0x451f6f['end'],_0x4c48e4['end']),'convertInlineImageToBlock');});}),_0x379942['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x379942['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x379942['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x379942['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x379942['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x379942['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x17b495])=>{const _0x864236=_0x379942['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x499926=_0x17b495['start'],_0x2ffdbb=_0x17b495['end'];const _0xa93804=_0x4dc5f5['model']['schema']['getNearestSelectionRange'](_0x499926,'backward'),_0xcc1c34=_0x4dc5f5['model']['schema']['getNearestSelectionRange'](_0x2ffdbb,'forward');_0xa93804['isCollapsed']&&(_0x499926=_0xa93804['start']),_0xcc1c34['isCollapsed']&&(_0x2ffdbb=_0xcc1c34['end']),_0x864236([_0x4dc5f5['model']['createRange'](_0x499926,_0x2ffdbb)]);}),_0x379942['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x251a46),_0x379942['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x251a46)),_0x4dc5f5['plugins']['has']('ImageCaptionEditing')&&(_0x379942['enableCommand']('toggleImageCaption',(_0x5c0860,_0xaa82a3)=>{const _0x5a664f=_0x4dc5f5['plugins']['get']('ImageCaptionUtils');let _0x3e229c=_0x2867e8['getClosestSelectedImageElement'](_0x4dc5f5['model']['document']['selection']),_0x455567=_0x5a664f['getCaptionFromImageModelElement'](_0x3e229c);_0x4dc5f5['model']['change'](()=>{if(_0x455567)return void _0x379942['markDeletion'](_0x4dc5f5['model']['createRangeOn'](_0x455567));const _0x7ec63b=_0x2867e8['isBlockImage'](_0x3e229c);_0x5c0860(_0xaa82a3),_0x3e229c=_0x2867e8['getClosestSelectedImageElement'](_0x4dc5f5['model']['document']['selection']),_0x455567=_0x5a664f['getCaptionFromImageModelElement'](_0x3e229c),_0x379942['markInsertion'](_0x4dc5f5['model']['createRangeOn'](_0x455567),_0x7ec63b?null:'imageCaption');});}),_0x379942['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x251a46));const _0x218cf6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xcb516f(_0x10263c,_0x48957c){const _0xfd9b8a=_0x218cf6['findIndex'](({type:_0x33bc06,subType:_0x10539c})=>_0x10263c['type']==_0x33bc06&&_0x10263c['subType']==_0x10539c),_0xf28561=_0x218cf6['findIndex'](({type:_0x1c9489,subType:_0x139fc1})=>_0x48957c['type']==_0x1c9489&&_0x48957c['subType']==_0x139fc1);if(_0xfd9b8a<0x0||_0xf28561<0x0)return!0x1;const _0x329962=_0x10263c['getFirstRange'](),_0x3ee6fb=_0x48957c['getFirstRange']();if((0x0==_0xfd9b8a||0x1==_0xfd9b8a)&&0x2==_0xf28561&&_0x329962['isIntersecting'](_0x3ee6fb))return!0x0;if(0x2==_0xfd9b8a&&0x3==_0xf28561){const _0x4820ca=_0x379942['_findSuggestions'](_0x329962,'insertion')['filter'](({suggestion:_0xf428eb,meta:_0x31d9a2})=>_0x31d9a2['isOwn']&&'convertInlineImageToBlock'==_0xf428eb['subType']);if(_0x4820ca['length']>0x1&&_0x3ee6fb['end']['isEqual'](_0x329962['start']))return!0x0;if(0x1==_0x4820ca['length']&&(_0x329962['start']['isEqual'](_0x3ee6fb['end'])||_0x329962['end']['isEqual'](_0x3ee6fb['start'])))return!0x0;}if(0x3==_0xfd9b8a&&0x3==_0xf28561&&_0x329962['start']['isBefore'](_0x3ee6fb['start'])){const _0xfd7151=_0x329962['end']['nodeAfter'],_0x142e31=_0x3ee6fb['start']['nodeBefore'];return _0x2867e8['isBlockImage'](_0xfd7151)&&_0xfd7151===_0x142e31;}return!0x1;}function _0x251a46(_0x5b50a8,_0x1674e6){return _0xcb516f(_0x5b50a8,_0x1674e6)?[_0x5b50a8,_0x1674e6]:_0xcb516f(_0x1674e6,_0x5b50a8)?[_0x1674e6,_0x5b50a8]:null;}_0x4dc5f5['plugins']['has']('ImageResize')&&(_0x379942['enableDefaultAttributesIntegration']('resizeImage'),_0x379942['registerBlockAttribute']('resizedWidth'),_0x379942['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x11c83d,'FORMAT_IMAGE_SIZE'))),_0x4dc5f5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x379942['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x379942['registerBlockAttribute']('alt')),_0x379942['descriptionFactory']['registerDescriptionCallback'](_0x31ba1a=>{if(!!_0x218cf6['find'](({type:_0x4889c8,subType:_0x392f7f})=>_0x31ba1a['type']==_0x4889c8&&_0x31ba1a['subType']==_0x392f7f))return _0x31ba1a['previous']?{}:void 0x0;}),_0x379942['descriptionFactory']['registerDescriptionCallback'](_0x4b2b7c=>{if('insertion'==_0x4b2b7c['type']||'deletion'==_0x4b2b7c['type']){const _0x294604=_0x4b2b7c['getContainedElement']();if(_0x294604&&_0x294604['is']('element','caption'))return{'type':'insertion'==_0x4b2b7c['type']?'addObject':'removeObject','element':_0x294604,'quantity':0x1};}}),_0x379942['descriptionFactory']['registerDescriptionCallback'](_0x358b48=>'formatBlock'==_0x358b48['type']&&'convertInlineImageToBlock'==_0x358b48['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x358b48['type']&&'convertBlockImageToInline'==_0x358b48['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x379942['descriptionFactory']['registerDescriptionCallback'](_0x12f485=>{if('attribute'!=_0x12f485['type'])return;const {data:_0x2fa181}=_0x12f485;if(!_0x2fa181||'alt'!=_0x2fa181['key'])return;const _0x2d7fde=_0x2fa181['newValue'];return _0x2d7fde?{'type':'format','content':o(_0x11c83d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d7fde+'\x22')}:{'type':'format','content':o(_0x11c83d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49fa9c=this['editor'],_0x246008=_0x49fa9c['locale'];_0x49fa9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb24a0c=>{if('formatBlock'!=_0xb24a0c['type']&&'formatInline'!=_0xb24a0c['type'])return;const {data:_0x316b15}=_0xb24a0c;if(_0x316b15){if('imageTextAlternative'==_0x316b15['commandName']){const _0x429873=_0x316b15['commandParams'][0x0]['newValue'];return _0x429873?{'type':'format','content':o(_0x246008,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x429873+'\x22')}:{'type':'format','content':o(_0x246008,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x316b15['commandName']){const _0x5cf8f0=_0x316b15['commandParams'][0x0]['width'];return _0x5cf8f0?{'type':'format','content':o(_0x246008,'*Set\x20image\x20width:*\x20%0',_0x5cf8f0)}:{'type':'format','content':o(_0x246008,'*Reset\x20image\x20width*')};}}});}}class st extends _0x38f362{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x211032=this['editor']['locale'],_0x1f481a=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f481a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1f481a['registerBlockAttribute']('src'),_0x1f481a['descriptionFactory']['registerDescriptionCallback'](_0x1dd0d1=>{if('attribute'!=_0x1dd0d1['type'])return;const {data:_0x7d7e62}=_0x1dd0d1;return _0x7d7e62&&'src'==_0x7d7e62['key']?_0x7d7e62['newValue']&&_0x7d7e62['oldValue']?{'type':'format','content':o(_0x211032,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xadfb72=this['editor']['plugins']['get']('TrackChangesEditing');_0xadfb72['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xadfb72['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xadfb72['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xadfb72['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e372=this['editor'],_0x491ff9=_0x53e372['locale'];_0x53e372['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30361f=>{if('formatBlock'!=_0x30361f['type']&&'formatInline'!=_0x30361f['type'])return;const {data:_0x2304a5}=_0x30361f;if(!_0x2304a5||'replaceImageSource'!=_0x2304a5['commandName'])return;return{'type':'format','content':o(_0x491ff9,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x38f362{['afterInit'](){const _0x220b9e=this['editor'];if(!_0x220b9e['plugins']['has']('ImageStyleEditing'))return;const _0x34a1ab=_0x220b9e['plugins']['get']('TrackChangesEditing'),_0x1781bb=_0x220b9e['plugins']['get']('ImageUtils'),_0x254bcf={};_0x34a1ab['enableCommand']('imageStyle',(_0x1575aa,_0x53e4c4)=>{const _0x3c763e=_0x220b9e['plugins']['get']('Users')['me'],_0x613575=_0x220b9e['commands']['get']('imageStyle');let _0x548731=_0x1781bb['getClosestSelectedImageElement'](_0x220b9e['model']['document']['selection']),_0x2d2f6e=_0x220b9e['model']['createRangeOn'](_0x548731),_0x4e708d=_0x613575['value'];if(_0x4e708d==_0x53e4c4['value'])return;const _0x2b084c={'commandName':'imageStyle','commandParams':[_0x53e4c4],'formatGroupId':_0xced280()};_0x220b9e['model']['change'](()=>{if(_0x34a1ab['getSuggestions']()['filter'](_0x527ef4=>_0x527ef4['isInContent']&&_0x3c763e==_0x527ef4['author']&&('formatBlock'==_0x527ef4['type']||'formatInline'==_0x527ef4['type'])&&('imageStylePreApply'==_0x527ef4['subType']||'imageStylePostApply'==_0x527ef4['subType'])&&_0x527ef4['getFirstRange']()['isEqual'](_0x2d2f6e))['forEach'](_0x285a0e=>_0x34a1ab['discardSuggestion'](_0x285a0e['head'])),_0x548731=_0x1781bb['getClosestSelectedImageElement'](_0x220b9e['model']['document']['selection']),_0x2d2f6e=_0x220b9e['model']['createRangeOn'](_0x548731),_0x613575['refresh'](),_0x220b9e['commands']['get']('imageTypeInline')['refresh'](),_0x220b9e['commands']['get']('imageTypeBlock')['refresh'](),_0x4e708d=_0x613575['value'],_0x4e708d!=_0x53e4c4['value'])return _0x1781bb['isInlineImage'](_0x548731)&&_0x613575['shouldConvertImageType'](_0x53e4c4['value'],_0x548731)?(_0x1575aa({..._0x53e4c4,'setImageSizes':!0x1}),_0x548731=_0x1781bb['getClosestSelectedImageElement'](_0x220b9e['model']['document']['selection']),void _0x34a1ab['markBlockFormat'](_0x548731,{..._0x2b084c,'commandReversedParams':[{'value':_0x4e708d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1781bb['isBlockImage'](_0x548731)?_0x34a1ab['markBlockFormat'](_0x548731,_0x2b084c,[],'imageStylePostApply'):_0x34a1ab['markInlineFormat'](_0x2d2f6e,_0x2b084c,'imageStylePostApply'));});});for(const _0x43b779 of _0x220b9e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x254bcf[_0x43b779['name']]=_0x43b779['title']['toLowerCase']();_0x34a1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x34a1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x34a1ab['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x34a1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x7779c4])=>{_0x1781bb['setImageNaturalSizeAttributes'](_0x7779c4['getContainedElement']());}),_0x34a1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x511608,_0x3eee55)=>{_0x34a1ab['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x511608,{'commandName':_0x3eee55['commandName'],'commandParams':_0x3eee55['commandReversedParams']});}),_0x34a1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58113d,_0x1a13de){if(_0xfdac4b(_0x58113d,_0x1a13de))return[_0x58113d,_0x1a13de];if(_0xfdac4b(_0x1a13de,_0x58113d))return[_0x1a13de,_0x58113d];return null;});const _0x117d75=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xfdac4b(_0x2bcc28,_0x5dd1b8){const _0x2a12b4=_0x117d75['findIndex'](({type:_0x3177f4,subType:_0xbe0f25})=>_0x2bcc28['type']==_0x3177f4&&_0x2bcc28['subType']==_0xbe0f25),_0x1e78cc=_0x117d75['findIndex'](({type:_0x3b4390,subType:_0x597df3})=>_0x5dd1b8['type']==_0x3b4390&&_0x5dd1b8['subType']==_0x597df3);if(_0x2a12b4<0x0||_0x1e78cc<0x0)return!0x1;const _0xafab29=_0x2bcc28['getFirstRange'](),_0x2e0898=_0x5dd1b8['getFirstRange']();if((0x0==_0x2a12b4||0x1==_0x2a12b4)&&0x2==_0x1e78cc&&_0xafab29['isIntersecting'](_0x2e0898))return!0x0;if(0x2==_0x2a12b4&&0x3==_0x1e78cc){const _0x32dea0=_0x34a1ab['_findSuggestions'](_0xafab29,'insertion')['filter'](({suggestion:_0xed69e9,meta:_0x635608})=>_0x635608['isOwn']&&'convertInlineImageToBlock'==_0xed69e9['subType']);if(_0x32dea0['length']>0x1&&_0x2e0898['end']['isEqual'](_0xafab29['start']))return!0x0;if(0x1==_0x32dea0['length']&&(_0xafab29['start']['isEqual'](_0x2e0898['end'])||_0xafab29['end']['isEqual'](_0x2e0898['start'])))return!0x0;}if(0x3==_0x2a12b4&&0x3==_0x1e78cc&&_0xafab29['start']['isBefore'](_0x2e0898['start'])){const _0x53b4e1=_0xafab29['end']['nodeAfter'],_0x13636d=_0x2e0898['start']['nodeBefore'];return _0x1781bb['isBlockImage'](_0x53b4e1)&&_0x53b4e1===_0x13636d;}return!0x1;}_0x220b9e['model']['document']['registerPostFixer'](()=>{let _0x4f2bb0=!0x1;const _0x2bc5e6=Array['from'](_0x220b9e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7e6095,data:_0x414640}of _0x2bc5e6){const {group:_0x56f8ec,type:_0x1460c2,subType:_0x3da74b,id:_0x15bb80}=_0x34a1ab['_splitMarkerName'](_0x7e6095);if('suggestion'==_0x56f8ec&&_0x34a1ab['hasSuggestion'](_0x15bb80)){if('formatBlock'==_0x1460c2&&('imageStylePreApply'==_0x3da74b||'imageStylePostApply'==_0x3da74b)){const _0x43b69f=_0x34a1ab['getSuggestion'](_0x15bb80);if(_0x414640['newRange']){const _0x527560=_0x43b69f['getFirstRange']()['getContainedElement']();if(_0x1781bb['isBlockImage'](_0x527560))continue;_0x34a1ab['discardSuggestion'](_0x43b69f),_0x4f2bb0=!0x0;}}if('insertion'==_0x1460c2&&'imageCaption'==_0x3da74b&&!_0x414640['newRange']){const _0x308040=_0x34a1ab['getSuggestion'](_0x15bb80);_0x308040['next']&&_0x308040['next']['isInContent']&&(_0x34a1ab['discardSuggestion'](_0x308040['next']),_0x4f2bb0=!0x0);}}}return _0x4f2bb0;}),this['_registerLegacyDescription'](_0x254bcf);}['_registerLegacyDescription'](_0x291321){const _0x16b204=this['editor'],_0x38c007=_0x16b204['locale'];_0x16b204['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40f5be=>{if('formatBlock'!=_0x40f5be['type']&&'formatInline'!=_0x40f5be['type'])return;const {data:_0x2c2f77}=_0x40f5be;if(!_0x2c2f77||'imageStyle'!=_0x2c2f77['commandName'])return;const _0x4e9ed2=_0x2c2f77['commandParams'][0x0]['value'];return _0x1d5413('side'===_0x4e9ed2?o(_0x38c007,'FORMAT_SIDE_IMAGE'):_0x291321[_0x4e9ed2]||_0x4e9ed2);function _0x1d5413(_0x23896f){return{'type':'format','content':o(_0x38c007,'*Format:*\x20%0',_0x23896f)};}});}}class ot extends _0x38f362{['afterInit'](){const _0x4d2de3=this['editor'],_0x1fdbbc=_0x4d2de3['commands']['get']('importWord'),_0xbb10e6=_0x4d2de3['commands']['get']('trackChanges');_0x1fdbbc&&(_0x1fdbbc['on']('execute',(_0x14477a,[,_0x352216])=>{this['_trackChangesValueDuringImport']=_0xbb10e6['value'],_0x352216['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1fdbbc,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1fdbbc,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xbb10e6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d2de3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4c35a8,_0x394302){const {suggestions:_0x204791}=_0x394302,_0x5ab720=this['editor']['commands']['get']('trackChanges'),_0xeebe54=_0x5ab720['value'];this['_trackChangesValueDuringImport']!==_0xeebe54&&(_0x5ab720['execute'](),this['_trackChangesExecuted']=!0x0),_0x204791&&_0x204791['forEach'](({id:_0x10c9f3,type:_0x35f6a1,author:_0xd0ba28,created_at:_0x579bcb})=>{const _0x9ba98e={'id':_0x10c9f3,'type':_0x35f6a1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xd0ba28,'createdAt':_0x579bcb?new Date(_0x579bcb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x9ba98e);});}constructor(_0x14dce3){super(_0x14dce3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x38f362{['afterInit'](){const _0x1c7c62=this['editor'],_0x41e98b=_0x1c7c62['plugins']['get']('TrackChangesEditing');if(_0x1c7c62['plugins']['has']('IndentEditing')&&(_0x41e98b['enableCommand']('indent'),_0x41e98b['enableCommand']('outdent')),_0x1c7c62['plugins']['has']('IndentBlock')){for(const _0x5a3bc6 of['indentBlock','outdentBlock'])_0x41e98b['enableDefaultAttributesIntegration'](_0x5a3bc6);}const _0x1e788f=_0x1c7c62['locale'];_0x41e98b['registerBlockAttribute']('blockIndent'),_0x41e98b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1e788f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x291eac=this['editor'],_0x4b3b13=_0x291eac['locale'],_0x192749=_0x291eac['plugins']['get']('TrackChangesEditing');_0x192749['descriptionFactory']['registerDescriptionCallback'](_0x309311=>{if('formatBlock'!=_0x309311['type'])return;const {data:_0x159906}=_0x309311;if(!_0x159906)return;if('indentBlock'!=_0x159906['commandName']&&'outdentBlock'!=_0x159906['commandName'])return;const _0x378388=_0x309311['getItems']()[0x0],_0x30a8f8=_0x192749['descriptionFactory']['getItemLabel'](_0x378388);return'indentBlock'==_0x159906['commandName']?{'type':'format','content':o(_0x4b3b13,'*Indent:*\x20%0',_0x30a8f8)}:'outdentBlock'==_0x159906['commandName']?{'type':'format','content':o(_0x4b3b13,'*Outdent:*\x20%0',_0x30a8f8)}:void 0x0;});}}class at extends _0x38f362{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x38f362{['afterInit'](){const _0x7682c9=this['editor'];if(!_0x7682c9['plugins']['has']('LinkEditing'))return;const _0x1996bc=_0x7682c9['plugins']['get']('TrackChangesEditing'),_0x496f51=_0x7682c9['commands']['get']('link');_0x1996bc['enableDefaultAttributesIntegration']('link'),_0x1996bc['enableDefaultAttributesIntegration']('unlink'),_0x1996bc['registerInlineAttribute']('linkHref');for(const _0x3cfdce of _0x496f51['manualDecorators'])_0x1996bc['registerInlineAttribute'](_0x3cfdce['id']),_0x1996bc['descriptionFactory']['registerAttributeLabel'](_0x3cfdce['id'],'link\x20('+_0x3cfdce['label']['toLowerCase']()+')');_0x1996bc['descriptionFactory']['registerDescriptionCallback'](_0x5e2ea3=>{if('attribute'!=_0x5e2ea3['type'])return;const {data:_0x13c728}=_0x5e2ea3;if(!_0x13c728||'linkHref'!=_0x13c728['key'])return;const _0x13055c=_0x13c728['newValue'],_0x5baa2c=_0x7682c9['locale'];return{'type':'format','content':null==_0x13055c?o(_0x5baa2c,'*Remove\x20link*'):o(_0x5baa2c,'*Set\x20link:*\x20%0','\x22'+_0x13055c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x685ebc=this['editor'],_0x53ba93=_0x685ebc['locale'];_0x685ebc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fe6c4=>{if('formatInline'!=_0x1fe6c4['type'])return;const {data:_0x426595}=_0x1fe6c4;if(_0x426595){if('link'==_0x426595['commandName']){const _0xecd15b=_0x426595['commandParams'][0x0];return{'type':'format','content':o(_0x53ba93,'*Set\x20link:*\x20%0','\x22'+_0xecd15b+'\x22')};}return'unlink'==_0x426595['commandName']?{'type':'format','content':o(_0x53ba93,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x38f362{['afterInit'](){const _0x38ec3d=this['editor'],_0x1ba8de=_0x38ec3d['locale'];if(!_0x38ec3d['plugins']['has']('LegacyListEditing'))return;const _0x4af63c=_0x38ec3d['plugins']['get']('TrackChangesEditing'),_0xbd4dba=_0x38ec3d['plugins']['has']('LegacyTodoListEditing');function _0x188f1b(_0x5aeaaa){return()=>{const _0x24f8ba=_0x38ec3d['model']['document']['selection'],_0x4a953b=_0x38ec3d['commands']['get'](_0x5aeaaa);if(_0x4a953b['value'])return void _0x38ec3d['execute']('paragraph',{});const _0x308999=_0x5aeaaa['slice'](0x0,-0x4),_0xf2f392=function(_0xc178d8,_0x899115,_0x2eec70){let _0x54ac94=Array['from'](_0xc178d8)['filter'](_0x1e55df=>function(_0x4e7beb,_0x118c59){return _0x118c59['checkChild'](_0x4e7beb['parent'],'listItem')&&!_0x118c59['isObject'](_0x4e7beb);}(_0x1e55df,_0x2eec70));_0x54ac94=_0x54ac94['filter'](_0x1a1834=>!_0x1a1834['is']('element','listItem')||_0x1a1834['getAttribute']('listType')!=_0x899115);const _0x4aba11=new Set();for(const _0x1561b3 of _0x54ac94)_0x1561b3['is']('element','listItem')?_0x4aba11['add'](me(_0x1561b3)):_0x4aba11['add'](_0x1561b3);return Array['from'](_0x4aba11);}(_0x24f8ba['getSelectedBlocks'](),_0x308999,_0x38ec3d['model']['schema']);_0x38ec3d['model']['change'](()=>{for(const _0x31814c of _0xf2f392)_0x4af63c['markBlockFormat'](_0x31814c,{'commandName':_0x5aeaaa,'commandParams':[{'forceValue':!_0x4a953b['value']}],'formatGroupId':'blockName'},fe(_0x31814c));});};}function _0x7c3d4f(_0x4f6e66){return()=>{const _0x1d81f1=function(_0x577588){let _0x1db30f=Array['from'](_0x577588);const _0x263bd5=_0x1db30f['findIndex'](_0x1d3811=>'listItem'!=_0x1d3811['name']);return _0x263bd5>-0x1&&(_0x1db30f=_0x1db30f['slice'](0x0,_0x263bd5)),_0x1db30f;}(_0x38ec3d['model']['document']['selection']['getSelectedBlocks']()),_0x304154=_0x38ec3d['model']['createRange'](_0x38ec3d['model']['createPositionAt'](_0x1d81f1[0x0],'before'),_0x38ec3d['model']['createPositionAt'](_0x1d81f1[_0x1d81f1['length']-0x1],'end'));_0x38ec3d['model']['change'](()=>{_0x4af63c['markBlockFormat'](_0x304154,{'commandName':_0x4f6e66,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3b2326){const _0x333db8=new Set();for(const _0x1ad46b of _0x3b2326){let _0x22cef8=_0x1ad46b['nextSibling'];for(;_0x22cef8&&_0x22cef8['getAttribute']('listIndent')>_0x1ad46b['getAttribute']('listIndent');)_0x333db8['add'](_0x22cef8),_0x22cef8=_0x22cef8['nextSibling'];}return Array['from'](_0x333db8);}(_0x1d81f1));});};}_0x4af63c['enableCommand']('numberedList',_0x188f1b('numberedList')),_0x4af63c['enableCommand']('bulletedList',_0x188f1b('bulletedList')),_0xbd4dba&&_0x4af63c['enableCommand']('todoList',_0x188f1b('todoList')),_0x4af63c['enableCommand']('indentList',_0x7c3d4f('indentList')),_0x4af63c['enableCommand']('outdentList',_0x7c3d4f('outdentList')),_0xbd4dba&&_0x4af63c['enableCommand']('checkTodoList',()=>{const _0xcb6bb7=_0x38ec3d['commands']['get']('checkTodoList'),_0x339222=Array['from'](_0xcb6bb7['_selectedElements']);_0x339222['filter'](_0x30c8aa=>_0x30c8aa['getAttribute']('todoListChecked')!=_0xcb6bb7['value']),_0x38ec3d['model']['change'](()=>{for(const _0x1ba549 of _0x339222)_0x4af63c['markBlockFormat'](_0x1ba549,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xcb6bb7['value']}]});});}),_0x4af63c['descriptionFactory']['registerElementLabel']('listItem',_0x1ad561=>o(_0x1ba8de,'ELEMENT_LIST_ITEM',_0x1ad561)),_0x4af63c['descriptionFactory']['registerDescriptionCallback'](_0x3f86d4=>{if('formatBlock'!=_0x3f86d4['type']&&'formatInline'!=_0x3f86d4['type'])return;const {data:_0x2b3c0d}=_0x3f86d4;if(_0x2b3c0d){if('numberedList'==_0x2b3c0d['commandName']||'bulletedList'==_0x2b3c0d['commandName']||'todoList'==_0x2b3c0d['commandName'])switch(_0x2b3c0d['commandName']['replace']('List','')){case'bulleted':return _0x40bcec(o(_0x1ba8de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40bcec(o(_0x1ba8de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40bcec(o(_0x1ba8de,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2b3c0d['commandName'])return{'type':'format','content':o(_0x1ba8de,'*Indent:*\x20%0',o(_0x1ba8de,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2b3c0d['commandName'])return{'type':'format','content':o(_0x1ba8de,'*Outdent:*\x20%0',o(_0x1ba8de,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2b3c0d['commandName'])return _0x2b3c0d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ba8de,'*Check\x20item*')}:{'type':'format','content':o(_0x1ba8de,'*Uncheck\x20item*')};}function _0x40bcec(_0x51f437){return{'type':'format','content':o(_0x1ba8de,'*Change\x20to:*\x20%0',_0x51f437)};}});}}function me(_0x5bb2c9){const _0x15e804=_0x5bb2c9['getAttribute']('listIndent');if(0x0==_0x15e804)return _0x5bb2c9;let _0x56f486=_0x5bb2c9;for(;_0x5bb2c9['previousSibling']&&_0x5bb2c9['previousSibling']['is']('element','listItem');){const _0x3da0a3=_0x5bb2c9['previousSibling']['getAttribute']('listIndent');if(_0x3da0a3==_0x15e804)_0x56f486=_0x5bb2c9['previousSibling'];else{if(_0x3da0a3<_0x15e804)break;}_0x5bb2c9=_0x5bb2c9['previousSibling'];}return _0x56f486;}function fe(_0x162897){const _0x48d7c5=[];if(_0x162897['is']('element','listItem')&&_0x162897['getAttribute']('listIndent')>0x0){let _0x2db5c9=_0x162897['nextSibling'];for(;_0x2db5c9&&'listItem'==_0x2db5c9['name']&&_0x2db5c9['getAttribute']('listIndent')==_0x162897['getAttribute']('listIndent');)_0x48d7c5['push'](_0x2db5c9),_0x2db5c9=_0x2db5c9['nextSibling'];}return _0x48d7c5;}class K extends _0x38f362{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5c169a=this['editor']['config']['get']('list.properties'),_0x1aadb0=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c169a['styles']&&_0x1aadb0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5c169a['reversed']&&_0x1aadb0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5c169a['startIndex']&&_0x1aadb0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1aadb0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x182f85,_0x2030a2={}){const _0x3a17fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f3b3d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3a17fc['markMultiRangeBlockFormat'](_0x2f3b3d,{'commandName':'listStyle','commandParams':[{'type':_0x2030a2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x311a38,_0x1dac05={}){const _0x48b589=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10b344=this['_getSuggestionBlocks'](_0x181d33=>_0x181d33['is']('element','listItem')&&'numbered'===_0x181d33['getAttribute']('listType'));if(_0x10b344['length']<0x1)return;const _0x348a6b=_0x10b344['map'](_0xde5f70=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xde5f70,'before'),this['editor']['model']['createPositionAt'](_0xde5f70,0x0)));this['editor']['model']['change'](()=>{_0x48b589['markMultiRangeBlockFormat'](_0x348a6b,{'commandName':'listReversed','commandParams':[{'reversed':_0x1dac05['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x29ae4a,_0x45de37={}){const _0x260c9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x142e4f=this['_getSuggestionBlocks'](_0x50c1e4=>_0x50c1e4['is']('element','listItem')&&'numbered'===_0x50c1e4['getAttribute']('listType'));if(_0x142e4f['length']<0x1)return;const _0x2e8e1a=_0x142e4f['map'](_0x388ee2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x388ee2,'before'),this['editor']['model']['createPositionAt'](_0x388ee2,0x0)));this['editor']['model']['change'](()=>{_0x260c9a['markMultiRangeBlockFormat'](_0x2e8e1a,{'commandName':'listStart','commandParams':[{'startIndex':_0x45de37['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5616c1){if('formatBlock'!=_0x5616c1['type']&&'formatInline'!=_0x5616c1['type'])return;const _0x325ce8=this['editor']['locale'],{data:_0x466a38}=_0x5616c1;if(!_0x466a38)return;let _0x226ec3,_0x45dbdc;switch(_0x466a38['commandName']){case'listStyle':_0x226ec3='*Change\x20to:*\x20%0',_0x45dbdc={'type':'format','content':o(_0x325ce8,_0x226ec3,o(_0x325ce8,this['_getTranslationKeyForListStyle'](_0x466a38['commandParams'][0x0]['type'])))};break;case'listReversed':_0x226ec3=_0x466a38['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45dbdc={'type':'format','content':o(_0x325ce8,_0x226ec3)};break;case'listStart':_0x226ec3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45dbdc={'type':'format','content':o(_0x325ce8,_0x226ec3,_0x466a38['commandParams'][0x0]['startIndex'])};}return _0x45dbdc;}['_getSuggestionBlocksForListStyle'](){var _0x98946c,_0x1658ba,_0x4c3523,_0x3f74cf;const _0x219807=this['editor']['plugins']['get']('LegacyListUtils');let _0x48a3a7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x98946c=_0x48a3a7[0x0])||void 0x0===_0x98946c?void 0x0:_0x98946c['is']('element','listItem'))&&_0x48a3a7['unshift'](..._0x219807['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x1658ba=_0x48a3a7[_0x48a3a7['length']-0x1])||void 0x0===_0x1658ba?void 0x0:_0x1658ba['is']('element','listItem'))&&_0x48a3a7['push'](..._0x219807['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x48a3a7=[...new Set(_0x48a3a7)],(null===(_0x3f74cf=null===(_0x4c3523=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x4c3523?void 0x0:_0x4c3523['parent'])||void 0x0===_0x3f74cf?void 0x0:_0x3f74cf['is']('element','listItem'))&&(_0x48a3a7=_0x48a3a7['filter'](_0x3fe54c=>_0x3fe54c['is']('element','listItem'))),_0x48a3a7;}['_getSuggestionBlocks'](_0xe2c789){const _0x531663=this['editor']['plugins']['get']('LegacyListUtils');let _0xfd17e6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xe2c789)['map'](_0x4d14ff=>{const _0x23cbcf=this['editor']['model']['createPositionAt'](_0x4d14ff,0x0);return[..._0x531663['getSiblingNodes'](_0x23cbcf,'backward'),..._0x531663['getSiblingNodes'](_0x23cbcf,'forward')];})['flat']();return _0xfd17e6=[...new Set(_0xfd17e6)],_0xfd17e6;}['_getTranslationKeyForListStyle'](_0x372561){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x372561)||'default')['toUpperCase']()+'_LIST_'+_0x372561['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x38f362{['afterInit'](){const _0x501156=this['editor'];if(!_0x501156['plugins']['has']('MediaEmbedEditing'))return;const _0x5a1bbd=_0x501156['plugins']['get']('TrackChangesEditing'),_0x570f5b=_0x501156['locale'];_0x5a1bbd['enableCommand']('mediaEmbed'),_0x5a1bbd['descriptionFactory']['registerElementLabel']('media',_0x118456=>o(_0x570f5b,'ELEMENT_MEDIA',_0x118456)),_0x501156['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x467e9f,{writer:_0x16a223,options:_0x15e08f})=>{if(_0x15e08f['showSuggestionHighlights'])return _0x16a223['createEmptyElement']('div');},'converterPriority':'high'}),_0x501156['data']['downcastDispatcher']['on']('attribute:url:media',(_0x58688f,_0x5c27e1,_0x4dc40e)=>{_0x4dc40e['options']['showSuggestionHighlights']&&_0x58688f['stop']();},{'priority':'high'});}}class gt extends _0x38f362{['afterInit'](){const _0x5820be=this['editor'];_0x5820be['plugins']['has']('MentionEditing')&&_0x5820be['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x38f362{['afterInit'](){const _0x3d81e3=this['editor'],_0x4fd4a5=_0x3d81e3['plugins']['get']('TrackChangesEditing');_0x3d81e3['plugins']['has']('MultiLevelList')&&(_0x4fd4a5['enableDefaultAttributesIntegration']('multiLevelList'),_0x4fd4a5['registerBlockAttribute']('listMarkerStyle'),_0x4fd4a5['descriptionFactory']['registerDescriptionCallback'](_0x479ac5=>this['handleDescriptions'](_0x479ac5)));}['handleDescriptions'](_0x43b793){const _0x2c2263=this['editor']['locale'],{data:_0x394f60}=_0x43b793,_0x8e38c1={'type':'format','content':''};if(_0x394f60&&'listMarkerStyle'==_0x394f60['key']){if(!_0x394f60['oldValue'])return{'type':'format','content':o(_0x2c2263,'*Set\x20format:*\x20%0',o(_0x2c2263,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x394f60['newValue']+')'};if(!_0x394f60['newValue']){let _0x4e6d6c=_0x43b793['head'];for(;_0x4e6d6c;){if(_0x4e6d6c['data']&&'listType'==_0x4e6d6c['data']['key']&&_0x4e6d6c['data']['newValue'])return _0x8e38c1;_0x4e6d6c=_0x4e6d6c['next'];}return{'type':'format','content':o(_0x2c2263,'*Remove\x20format:*\x20%0',o(_0x2c2263,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x394f60['oldValue']+')'};}}}}class mt extends _0x38f362{['afterInit'](){const _0x2209d4=this['editor'];if(!_0x2209d4['plugins']['has']('PageBreakEditing'))return;_0x2209d4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x8a0c38=_0x2209d4['plugins']['get']('TrackChangesEditing'),_0x377cc4=_0x2209d4['locale'];_0x8a0c38['descriptionFactory']['registerElementLabel']('pageBreak',_0x563afb=>o(_0x377cc4,'ELEMENT_PAGE_BREAK',_0x563afb));}}class dt extends _0x38f362{['afterInit'](){const _0x23b985=this['editor'];if(!_0x23b985['plugins']['has']('Paragraph'))return;const _0x48493b=_0x23b985['locale'],_0x1edb45=_0x23b985['plugins']['get']('TrackChangesEditing');_0x1edb45['descriptionFactory']['registerElementLabel']('paragraph',_0xb1d40e=>o(_0x48493b,'ELEMENT_PARAGRAPH',_0xb1d40e)),_0x1edb45['enableDefaultAttributesIntegration']('paragraph'),_0x1edb45['enableCommand']('insertParagraph'),_0x23b985['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x23b985),{'priority':'highest'}),_0x23b985['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x27d55c,_0x8f3955,_0x4a06ed)=>{_0x4a06ed['options']['showSuggestionHighlights']&&nr(_0x23b985,{'showActiveMarker':!0x1})(_0x27d55c,_0x8f3955,_0x4a06ed);},{'priority':'highest'});const _0x590dd9=_0x1edb45['descriptionFactory'];_0x590dd9['registerDescriptionCallback'](_0xd09a93=>{if('insertion'!==_0xd09a93['type'])return;const {start:_0x1a951d,end:_0x426259}=_0xd09a93['getFirstRange']();if(!_0x1a951d['isTouching'](_0x426259)||!_0x1a951d['nodeAfter'])return;const _0x53e8a7=_0x23b985['model']['schema'],_0x4a2ec9=_0x1a951d['nodeAfter'];return _0x53e8a7['isBlock'](_0x4a2ec9)&&!_0x53e8a7['isLimit'](_0x4a2ec9)&&_0x53e8a7['checkChild'](_0x4a2ec9,'$text')?{'type':'insertion','content':o(_0x48493b,'*Insert:*\x20%0',_0x590dd9['getItemLabel'](_0x4a2ec9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a015a=this['editor'],_0x34e61b=_0x3a015a['locale'];_0x3a015a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b9794=>{if('formatBlock'!=_0x4b9794['type'])return;const {data:_0x4659de}=_0x4b9794;return _0x4659de&&'paragraph'==_0x4659de['commandName']?{'type':'format','content':o(_0x34e61b,'*Change\x20to:*\x20%0',o(_0x34e61b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x583c23,{showActiveMarker:_0x585b28=!0x0}={}){return(_0x3418c1,_0x42b57e,_0x2c4760)=>{const _0xf5325a=_0x583c23['plugins']['get']('TrackChangesEditing'),_0x43a3a0=_0x42b57e['markerRange']['start'],_0x3f77fe=_0x42b57e['markerRange']['end'],_0x39f52d=_0x583c23['model']['schema'];if(!_0x43a3a0['isTouching'](_0x3f77fe)||!_0x43a3a0['nodeAfter'])return;const _0x37d7f5=_0x43a3a0['nodeAfter'];if(_0x39f52d['isBlock'](_0x37d7f5)&&!_0x39f52d['isLimit'](_0x37d7f5)&&_0x39f52d['checkChild'](_0x37d7f5,'$text')){if(!_0x2c4760['consumable']['consume'](_0x42b57e['markerRange'],_0x3418c1['name']))return;const _0x3f9ba1=_0x2c4760['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x34cba0=_0x2c4760['mapper']['toViewPosition'](_0x3f77fe);_0x585b28&&_0xf5325a['activeMarkers']['includes'](_0x42b57e['markerName'])&&_0x2c4760['writer']['addClass']('ck-suggestion-marker--active',_0x3f9ba1),_0x2c4760['writer']['insert'](_0x34cba0,_0x3f9ba1),_0x2c4760['mapper']['bindElementToMarker'](_0x3f9ba1,_0x42b57e['markerName']);}};}class pt extends _0x38f362{['afterInit'](){const _0x39ef97=this['editor'];if(!_0x39ef97['plugins']['has']('RemoveFormatEditing'))return;_0x39ef97['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44830e=this['editor'];_0x44830e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4502ac=>{if('formatBlock'!=_0x4502ac['type']&&'formatInline'!=_0x4502ac['type'])return;const {data:_0x882123}=_0x4502ac;return _0x882123&&'removeFormat'==_0x882123['commandName']?{'type':'format','content':o(_0x44830e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x38f362{['afterInit'](){const _0x36ce2c=this['editor'];if(!_0x36ce2c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4e64bb=_0x36ce2c['plugins']['get']('TrackChangesEditing');_0x4e64bb['enableCommand']('goToPreviousRestrictedEditingException'),_0x4e64bb['enableCommand']('goToNextRestrictedEditingException');const _0x188e2c=_0x36ce2c['plugins']['get']('RestrictedEditingModeEditing');_0x188e2c['enableCommand']('trackChanges'),_0x188e2c['enableCommand']('acceptSuggestion'),_0x188e2c['enableCommand']('discardSuggestion'),_0x188e2c['enableCommand']('acceptAllSuggestions'),_0x188e2c['enableCommand']('discardAllSuggestions'),_0x188e2c['enableCommand']('acceptSelectedSuggestions'),_0x188e2c['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x38f362{static get['requires'](){return[_0x1ac197];}['init'](){const _0x6cebf0=this['editor'],_0x5bb14a=_0x6cebf0['plugins']['get']('TrackChangesEditing');_0x5bb14a['enableCommand']('shiftEnter'),_0x6cebf0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x6cebf0),{'priority':'high'}),_0x6cebf0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x6cebf0),{'priority':'high'}),_0x6cebf0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xaeb0b1,_0x326289,_0x555bd4)=>{_0x555bd4['options']['showSuggestionHighlights']&&de(_0x6cebf0,{'showActiveMarker':!0x1})(_0xaeb0b1,_0x326289,_0x555bd4);}),_0x5bb14a['descriptionFactory']['registerElementLabel']('softBreak',_0x18d139=>o(_0x6cebf0['locale'],'ELEMENT_LINE_BREAK',_0x18d139));}}function de(_0x2a38b4,{showActiveMarker:_0x18b1b5=!0x0}={}){return(_0x7ead6d,_0xbefe13,_0x3b4406)=>{const _0x525cc5=_0x2a38b4['plugins']['get']('TrackChangesEditing');if(!_0x3b4406['consumable']['test'](_0xbefe13['markerRange'],_0x7ead6d['name']))return;const _0x42bd73=_0x2a38b4['model'];for(const _0x595c77 of _0xbefe13['markerRange']['getItems']()){if(!_0x595c77['is']('element','softBreak'))continue;const _0x3fcf8a='deletion'==_0xbefe13['markerName']['split'](':')[0x1]?'merge':'split',_0x3a9ba1=_0x3b4406['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3fcf8a}),_0x3ca77e=_0x3b4406['mapper']['toViewPosition'](_0x42bd73['createPositionBefore'](_0x595c77));_0x18b1b5&&_0x525cc5['activeMarkers']['includes'](_0xbefe13['markerName'])&&_0x3b4406['writer']['addClass']('ck-suggestion-marker--active',_0x3a9ba1),_0x3b4406['writer']['insert'](_0x3ca77e,_0x3a9ba1),_0x3b4406['mapper']['bindElementToMarker'](_0x3a9ba1,_0xbefe13['markerName']);}};}class wt extends _0x38f362{['afterInit'](){const _0x939f80=this['editor'],_0x5f4f8c=_0x939f80['model'],_0x117c3f=_0x939f80['locale'];if(!_0x939f80['plugins']['has']('StandardEditingModeEditing'))return;const _0x36586=_0x939f80['plugins']['get']('TrackChangesEditing'),_0x477c36='restrictedEditingException',_0x3c3c6b=_0x939f80['commands']['get'](_0x477c36);_0x36586['enableCommand'](_0x477c36,(_0x32c2e3,_0x26dc29={})=>{const _0x36affe=_0x5f4f8c['document']['selection'];if(_0x36affe['isCollapsed'])return void _0x32c2e3(_0x26dc29);const _0x2fc66d=void 0x0!==_0x26dc29['forceValue']?_0x26dc29['forceValue']:!_0x3c3c6b['value'];_0x5f4f8c['change'](()=>{const _0x228545=Array['from'](_0x36affe['getRanges']());for(const _0x5b9ad8 of _0x228545){const _0x594dd2=_0x2fc66d?[_0x5b9ad8]:io(_0x477c36,_0x5b9ad8,_0x5f4f8c);for(const _0x4c0902 of _0x594dd2)_0x36586['markInlineFormat'](_0x4c0902,{'commandName':_0x477c36,'commandParams':[{'forceValue':_0x2fc66d}]});}});}),_0x36586['descriptionFactory']['registerDescriptionCallback'](_0x2c1698=>{if('formatBlock'!=_0x2c1698['type']&&'formatInline'!=_0x2c1698['type'])return;const {data:_0x3c2325}=_0x2c1698;return _0x3c2325&&_0x3c2325['commandName']==_0x477c36?_0x3c2325['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x117c3f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x117c3f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x38f362{['afterInit'](){const _0x4788a2=this['editor'];if(!_0x4788a2['plugins']['has']('Style')||!_0x4788a2['plugins']['has']('DataSchema'))return;const _0x474acc=_0x4788a2['plugins']['get']('TrackChangesEditing'),_0x23ba5b=_0x4788a2['locale'],_0x1c2705=_0x4788a2['config']['get']('style')||{},_0x56ad7e=_0x4788a2['plugins']['get']('GeneralHtmlSupport'),_0xfe906=_0x4788a2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4788a2['plugins']['get']('DataSchema'),_0x1c2705['definitions']);_0x474acc['enableDefaultAttributesIntegration']('style');const _0x58f648=new Set();for(const _0x2b96e8 of _0xfe906['block']){const _0x3edfaa=_0x56ad7e['getGhsAttributeNameForElement'](_0x2b96e8['element']);_0x58f648['add'](_0x3edfaa);}const _0x463152=new Set();for(const _0x2dd9b3 of _0xfe906['inline']){const _0x298b70=_0x56ad7e['getGhsAttributeNameForElement'](_0x2dd9b3['element']);_0x463152['add'](_0x298b70);for(const _0x5081ed of _0x2dd9b3['ghsAttributes'])_0x463152['add'](_0x5081ed);}for(const _0x219293 of _0x58f648)_0x474acc['registerBlockAttribute'](_0x219293),_0x474acc['descriptionFactory']['registerAttributeLabel'](_0x219293,o(_0x23ba5b,'FORMAT_STYLE'));for(const _0x5dd304 of _0x463152)_0x474acc['registerInlineAttribute'](_0x5dd304),_0x474acc['descriptionFactory']['registerAttributeLabel'](_0x5dd304,o(_0x23ba5b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x405413=this['editor'],_0x30c1ca=_0x405413['locale'];_0x405413['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7acd51=>{if('formatBlock'!=_0x7acd51['type']&&'formatInline'!=_0x7acd51['type'])return;const {data:_0x46ce74}=_0x7acd51;return _0x46ce74&&'style'===_0x46ce74['commandName']?_0x46ce74['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30c1ca,'*Set\x20format:*\x20%0',_0x46ce74['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x30c1ca,'*Remove\x20format:*\x20%0',_0x46ce74['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x38f362{['afterInit'](){const _0x2097bc=this['editor'],_0x12fec0=_0x2097bc['model']['document']['selection'];if(!_0x2097bc['plugins']['has']('TableEditing'))return;const _0x188426=_0x2097bc['locale'],_0x513aa5=_0x2097bc['plugins']['get']('TrackChangesEditing'),_0x4ca40f=_0x2097bc['plugins']['get']('TableUtils');_0x513aa5['descriptionFactory']['registerElementLabel']('table',_0x537cd9=>o(_0x188426,'ELEMENT_TABLE',_0x537cd9)),this['_setupColumnsRowsFixing'](),_0x513aa5['enableCommand']('insertTable'),_0x513aa5['enableCommand']('selectTableRow'),_0x513aa5['enableCommand']('selectTableColumn');for(const _0x37e836 of['insertTableRowAbove','insertTableRowBelow']){const _0x591ff6=_0x2097bc['commands']['get'](_0x37e836);_0x513aa5['enableCommand'](_0x37e836,_0x154730=>{_0x2097bc['model']['change'](_0xc805a8=>{_0x154730();const _0x3f7953='above'===_0x591ff6['order'],_0x5368b0=_0x4ca40f['getSelectionAffectedTableCells'](_0x12fec0),_0x1cff4c=_0x4ca40f['getRowIndexes'](_0x5368b0),_0x1442a5=_0x3f7953?_0x1cff4c['first']-0x1:_0x1cff4c['last']+0x1,_0x3e7f8a=_0x5368b0[0x0]['findAncestor']('table'),_0x250a84=_0x4ca40f['createTableWalker'](_0x3e7f8a,{'startRow':_0x1442a5,'endRow':_0x1442a5}),_0x5d4709=Array['from'](_0x250a84)['map'](_0x37fb2c=>_0xc805a8['createRangeOn'](_0x37fb2c['cell']));_0x513aa5['markMultiRangeInsertion'](_0x5d4709,'tableRow');});});}for(const _0x320d41 of['insertTableColumnLeft','insertTableColumnRight']){const _0x582d1f=_0x2097bc['commands']['get'](_0x320d41);_0x513aa5['enableCommand'](_0x320d41,_0x3a0b92=>{_0x2097bc['model']['change'](_0x23fee7=>{_0x3a0b92();const _0x162aee='left'===_0x582d1f['order'],_0x524b90=_0x4ca40f['getSelectionAffectedTableCells'](_0x12fec0),_0x329cc1=_0x4ca40f['getColumnIndexes'](_0x524b90),_0x24be2f=_0x162aee?_0x329cc1['first']-0x1:_0x329cc1['last']+0x1,_0x574650=_0x524b90[0x0]['findAncestor']('table'),_0x17cb9d=_0x4ca40f['createTableWalker'](_0x574650,{'startRow':0x0,'column':_0x24be2f,'includeAllSlots':!0x1}),_0x4d3934=Array['from'](_0x17cb9d)['map'](_0x8fb4a9=>_0x23fee7['createRangeOn'](_0x8fb4a9['cell']));_0x513aa5['markMultiRangeInsertion'](_0x4d3934,'tableColumn');});});}for(const _0xa74f19 of['removeTableRow','removeTableColumn']){const _0x24a07f=_0xa74f19['substr'](0xb),_0xb6f0e1=_0x24a07f['toLowerCase'](),_0x3a68ee=_0xb6f0e1['substr'](0x0,0x3)+'span',_0x5085d0='table'+_0x24a07f,_0x3bdcf4='min'+_0x24a07f,_0x415c69='max'+_0x24a07f;_0x513aa5['enableCommand'](_0xa74f19,()=>{_0x2097bc['model']['change'](_0x35a5a4=>{const _0x1f34eb=_0x4ca40f['getSelectionAffectedTableCells'](_0x12fec0),_0x27573a=_0x1f34eb[0x0]['findAncestor']('table');let _0x43542c;if('removeTableRow'==_0xa74f19){const _0x1e78ba=_0x4ca40f['getRowIndexes'](_0x1f34eb);_0x43542c={'startRow':_0x1e78ba['first'],'endRow':_0x1e78ba['last'],'includeAllSlots':!0x0};}else{const _0x33bf62=_0x4ca40f['getColumnIndexes'](_0x1f34eb);_0x43542c={'startColumn':_0x33bf62['first'],'endColumn':_0x33bf62['last'],'includeAllSlots':!0x0};}const _0x2c99f6=_0x4ca40f['createTableWalker'](_0x27573a,_0x43542c),_0x1e355b=Array['from'](_0x2c99f6)['map'](({cell:_0x335314})=>_0x335314),_0x3c7541=Ee(_0x1e355b['filter'](_0x34bbd4=>_0x34bbd4['hasAttribute'](_0x3a68ee))),_0x176d55=Ee(_0x1e355b['filter'](_0x5e2db5=>!_0x5e2db5['hasAttribute'](_0x3a68ee)))['map'](_0x5d4168=>_0x35a5a4['createRangeOn'](_0x5d4168)),_0x2c48cf=_0x513aa5['markMultiRangeDeletion'](_0x176d55,_0x5085d0);if(_0x2c48cf&&('tableRow'==_0x2c48cf['subType']||'tableColumn'==_0x2c48cf['subType'])){const _0x3328ea=this['_getSuggestionCoords'](_0x2c48cf);for(const _0x1c94b5 of _0x3c7541){const _0x49e255=_0x35a5a4['createRangeOn'](_0x1c94b5),_0x50922d=_0x4ca40f['getCellLocation'](_0x1c94b5),_0x426fd6=_0x1c94b5['getAttribute'](_0x3a68ee)-0x1,_0x1b9c0c=_0x3328ea[_0x3bdcf4],_0xacad35=_0x3328ea[_0x415c69];_0x1b9c0c<=_0x50922d[_0xb6f0e1]&&_0x50922d[_0xb6f0e1]+_0x426fd6<=_0xacad35&&_0x2c48cf['addRange'](_0x49e255);}}});});}function _0x2b19cc(_0x408898){const _0x5d3a01=Array['from'](_0x12fec0['getRanges']())['map'](_0x2e3e68=>_0x5beaf3['fromRange'](_0x2e3e68));_0x2097bc['model']['change'](_0x1fc891=>{const _0x21d75e=_0x1fc891['batch'];_0x408898=_0x408898['filter'](_0x411873=>'$graveyard'!=_0x411873['root']['rootName']),_0x1fc891['setSelection'](_0x408898),_0x2097bc['commands']['get']('removeTableRow')['refresh'](),_0x2097bc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2097bc['model']['enqueueChange'](()=>{_0x2097bc['model']['enqueueChange'](_0x21d75e,_0x3b904d=>{const _0x10c1e0=_0x5d3a01['filter'](_0x5df5da=>'$graveyard'!=_0x5df5da['root']['rootName']);_0x10c1e0['length']>0x0&&_0x3b904d['setSelection'](_0x10c1e0);for(const _0x4f7ca8 of _0x5d3a01)_0x4f7ca8['detach']();});});});}function _0x4e410b(_0x1039e9){_0x2097bc['model']['change'](_0x1fa877=>{const _0x5d179b=Array['from'](_0x12fec0['getRanges']())['map'](_0x42b5d1=>_0x5beaf3['fromRange'](_0x42b5d1)),_0x129069=[];for(const _0x32b93f of _0x1039e9)for(const _0x3a8e32 of _0x32b93f['getItems']({'shallow':!0x0}))_0x129069['push'](_0x3a8e32);for(const _0x212581 of _0x129069)'$graveyard'!=_0x212581['root']['rootName']&&(_0x1fa877['setSelection'](_0x1fa877['createPositionAt'](_0x212581,0x0)),_0x2097bc['commands']['get']('removeTableColumn')['refresh'](),_0x2097bc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xb9ed87=_0x5d179b['filter'](_0x5c0909=>'$graveyard'!=_0x5c0909['root']['rootName']);_0xb9ed87['length']>0x0&&_0x1fa877['setSelection'](_0xb9ed87);for(const _0x528527 of _0x5d179b)_0x528527['detach']();});}function _0x3996d0(_0x1f64c4,_0x2a02ac){return _0x2a02ac['every'](_0x44e39b=>_0x1f64c4['some'](_0x224677=>_0x224677['end']['isEqual'](_0x44e39b['start'])||_0x44e39b['end']['isEqual'](_0x224677['start'])));}function _0x493bd4(_0x351bd5,_0x446b6e){return _0x351bd5['some'](_0x3fe1c9=>_0x446b6e['some'](_0x25b635=>_0x3fe1c9['end']['isTouching'](_0x25b635['start'])));}_0x2097bc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d08ee,_0x60dbed,_0x583f7a)=>{if(!_0x583f7a['options']['showSuggestionHighlights'])return;const _0x3fdcbd=_0x60dbed['item'];if(!_0x3fdcbd)return;const _0xefff54=_0x583f7a['mapper']['toViewElement'](_0x3fdcbd);function _0xd22948(_0x518f71){return Array['isArray'](_0x518f71)?_0x518f71:[_0x518f71];}_0xefff54&&'tableCell'===_0x3fdcbd['name']&&_0x37a513(_0xefff54,_0x583f7a['writer'],(_0x3b5e20,_0x5b85f8,_0x464262)=>_0x464262['addClass'](_0xd22948(_0x5b85f8['classes']),_0x3b5e20),(_0x28021f,_0xb840bd,_0x4dbfe6)=>_0x4dbfe6['removeClass'](_0xd22948(_0xb840bd['classes']),_0x28021f));},{'priority':'highest'}),_0x513aa5['descriptionFactory']['registerDescriptionCallback'](_0x4bb91e=>{if('insertion'!=_0x4bb91e['type']&&'deletion'!=_0x4bb91e['type'])return;const _0x5f51ab=_0x4bb91e['getContainedElement']();if(null!=_0x5f51ab&&_0x5f51ab['is']('element','table')){if('insertion'==_0x4bb91e['type']){const _0x70972b=_0x4bb91e['getItems']()['filter'](_0x51a4f0=>_0x51a4f0['is']('$textProxy'))['map'](_0x5b24f9=>_0x5b24f9['data']);if(_0x70972b['length'])return{'type':'insertion','content':o(_0x188426,'*Insert:*\x20%0',o(_0x188426,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x70972b['join']('\x20')+'\x22'))};}if('deletion'==_0x4bb91e['type']){const _0x42522e=_0x4bb91e['getItems']()['filter'](_0x377e42=>_0x377e42['is']('$textProxy'))['map'](_0x2bde14=>_0x2bde14['data']);if(_0x42522e['length'])return{'type':'deletion','content':o(_0x188426,'*Remove:*\x20%0',o(_0x188426,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42522e['join']('\x20')+'\x22'))};}}}),_0x513aa5['descriptionFactory']['registerDescriptionCallback'](_0x1748b2=>{if('tableRow'==_0x1748b2['subType']){const _0x1acc1b=_0x1748b2['getItems']()['filter'](_0x4da077=>_0x4da077['is']('$textProxy'))['map'](_0x370787=>_0x370787['data']),_0x20d8d9=this['_getSuggestionCoords'](_0x1748b2),_0x941e1e=_0x20d8d9['maxRow']-_0x20d8d9['minRow']+0x1;if('insertion'==_0x1748b2['type'])return _0x1acc1b['length']?{'type':'insertion','content':o(_0x188426,'*Insert:*\x20%0',o(_0x188426,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x941e1e,'\x22'+_0x1acc1b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x188426,'*Insert:*\x20%0',o(_0x188426,'ELEMENT_TABLE_ROW',_0x941e1e))};if('deletion'==_0x1748b2['type'])return _0x1acc1b['length']?{'type':'deletion','content':o(_0x188426,'*Remove:*\x20%0',o(_0x188426,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x941e1e,'\x22'+_0x1acc1b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x188426,'*Remove:*\x20%0',o(_0x188426,'ELEMENT_TABLE_ROW',_0x941e1e))};}if('tableColumn'==_0x1748b2['subType']){const _0x15afca=_0x1748b2['getItems']()['filter'](_0x53421=>_0x53421['is']('$textProxy'))['map'](_0x181060=>_0x181060['data']),_0x589ef8=this['_getSuggestionCoords'](_0x1748b2),_0x4d2794=_0x589ef8['maxColumn']-_0x589ef8['minColumn']+0x1;if('insertion'==_0x1748b2['type'])return _0x15afca['length']?{'type':'insertion','content':o(_0x188426,'*Insert:*\x20%0',o(_0x188426,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d2794,'\x22'+_0x15afca['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x188426,'*Insert:*\x20%0',o(_0x188426,'ELEMENT_TABLE_COLUMN',_0x4d2794))};if('deletion'==_0x1748b2['type'])return _0x15afca['length']?{'type':'deletion','content':o(_0x188426,'*Remove:*\x20%0',o(_0x188426,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d2794,'\x22'+_0x15afca['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x188426,'*Remove:*\x20%0',o(_0x188426,'ELEMENT_TABLE_COLUMN',_0x4d2794))};}}),_0x513aa5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2b19cc),_0x513aa5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2b19cc),_0x513aa5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4e410b),_0x513aa5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4e410b),_0x513aa5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3996d0),_0x513aa5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3996d0),_0x513aa5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x493bd4),_0x513aa5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x493bd4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x180f1c=this['editor'],_0x5a6f75=_0x180f1c['model']['document']['selection'];return(_0x4ac94b,_0x116db5)=>{_0x180f1c['model']['change'](_0x41c911=>{const {commandName:_0x15fc5f,commandParams:_0x7bc64d}=_0x116db5;let _0x4bb0f6=_0x4ac94b[0x0]['end']['nodeBefore'];_0x7bc64d&&_0x7bc64d[0x0]&&!0x1===_0x7bc64d[0x0]['forceValue']&&(_0x4bb0f6=_0x4ac94b[0x0]['start']['nodeAfter']);const _0x517f95=_0x41c911['createRangeIn'](_0x4bb0f6);if('$graveyard'==_0x517f95['root']['rootName'])return;const _0x9ebcce=Array['from'](_0x5a6f75['getRanges']())['map'](_0x3b69e7=>_0x5beaf3['fromRange'](_0x3b69e7));_0x41c911['setSelection'](_0x517f95),_0x180f1c['commands']['get'](_0x15fc5f)['refresh'](),_0x7bc64d['push']({'forceDefaultExecution':!0x0}),_0x180f1c['execute'](_0x15fc5f,..._0x7bc64d);const _0x485132=_0x9ebcce['filter'](_0x444565=>'$graveyard'!=_0x444565['root']['rootName']);_0x485132['length']>0x0&&_0x41c911['setSelection'](_0x485132);for(const _0x4e8bf8 of _0x9ebcce)_0x4e8bf8['detach']();});};}['_getCoordsForCells'](_0x418ac5){const _0x25ec1b=this['editor']['plugins']['get']('TableUtils');let _0x117dad=Number['MAX_SAFE_INTEGER'],_0x151b32=Number['MIN_SAFE_INTEGER'],_0x178c4e=Number['MAX_SAFE_INTEGER'],_0x4afae2=Number['MIN_SAFE_INTEGER'];for(const _0x5bf24e of _0x418ac5){if('$graveyard'==_0x5bf24e['root']['rootName'])continue;const {row:_0x44dfbd,column:_0x1a37d9}=_0x25ec1b['getCellLocation'](_0x5bf24e),_0x417860=_0x5bf24e['hasAttribute']('rowspan')?_0x5bf24e['getAttribute']('rowspan')-0x1:0x0,_0xd0b007=_0x5bf24e['hasAttribute']('colspan')?_0x5bf24e['getAttribute']('colspan')-0x1:0x0;_0x117dad=_0x44dfbd<_0x117dad?_0x44dfbd:_0x117dad,_0x151b32=_0x44dfbd+_0x417860>_0x151b32?_0x44dfbd+_0x417860:_0x151b32,_0x178c4e=_0x1a37d9<_0x178c4e?_0x1a37d9:_0x178c4e,_0x4afae2=_0x1a37d9+_0xd0b007>_0x4afae2?_0x1a37d9+_0xd0b007:_0x4afae2;}return{'minRow':_0x117dad,'maxRow':_0x151b32,'minColumn':_0x178c4e,'maxColumn':_0x4afae2};}['_setupColumnsRowsFixing'](){const _0x2f5225=this['editor'],_0x2f2526=_0x2f5225['plugins']['get']('TrackChangesEditing'),_0x460b23=_0x2f5225['plugins']['get']('TableUtils');_0x2f5225['model']['document']['on']('change:data',()=>{const _0x29eeb4=Array['from'](_0x2f5225['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c7372,data:_0x17eb28}of _0x29eeb4){const {group:_0xa95729,id:_0x4b9e52,subType:_0x527c8c}=_0x2f2526['_splitMarkerName'](_0x1c7372);if('suggestion'!=_0xa95729)continue;if(null!=_0x17eb28['oldRange'])continue;const _0x442928=_0x2f2526['getSuggestion'](_0x4b9e52);this['_tablePostFixingSubtypes']['includes'](_0x527c8c)&&this['_tableSuggestions']['add'](_0x442928);}},{'priority':'low'});const _0x51f639=(_0x150cde,_0x54f1de)=>{let _0x2428f7=!0x1;const _0x56f239=_0x54f1de['createRangeOn'](_0x150cde),_0x5d51d2=_0x150cde['findAncestor']('table'),_0x4ba780=_0x460b23['getCellLocation'](_0x150cde);for(const _0x5a0fca of this['_tableSuggestions']){const _0xfc87eb=_0x5a0fca['subType'],_0x4c223b=_0xfc87eb['startsWith']('tablePaste'),_0x144dc3=_0xfc87eb['substr'](_0x4c223b?0xa:0x5),_0xe78e83=_0x144dc3['toLowerCase'](),_0xe64199=_0xe78e83['substr'](0x0,0x3)+'span',_0x3dc9e8='min'+_0x144dc3,_0x4ede39='max'+_0x144dc3;if(!_0x5a0fca['isInContent'])continue;if(_0x5d51d2!=_0x5a0fca['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5a0fca['isIntersectingWithRange'](_0x56f239))continue;const _0x28463c=_0x150cde['hasAttribute'](_0xe64199)?_0x150cde['getAttribute'](_0xe64199)-0x1:0x0,_0x4776a8=this['_getSuggestionCoords'](_0x5a0fca),_0xbf2f82=_0x4776a8[_0x3dc9e8],_0x5683f4=_0x4776a8[_0x4ede39];_0xbf2f82<=_0x4ba780[_0xe78e83]&&_0x4ba780[_0xe78e83]+_0x28463c<=_0x5683f4&&(_0x5a0fca['addRange'](_0x56f239),_0x2428f7=!0x0);}return _0x2428f7;};_0x2f5225['model']['document']['registerPostFixer'](_0x40e56c=>{let _0x3f42b2=!0x1;for(const _0x35bd86 of _0x2f5225['model']['document']['differ']['getChanges']())if('insert'==_0x35bd86['type']){if('tableRow'==_0x35bd86['name']){for(const _0x2c8793 of _0x35bd86['position']['nodeAfter']['getChildren']())_0x3f42b2=_0x3f42b2||_0x51f639(_0x2c8793,_0x40e56c);}else'tableCell'==_0x35bd86['name']&&(_0x3f42b2=_0x3f42b2||_0x51f639(_0x35bd86['position']['nodeAfter'],_0x40e56c));}return _0x3f42b2;});}['_getSuggestionCoords'](_0x19f482){return this['_getCoordsForCells'](_0x19f482['getRanges']()['map'](_0x508fee=>_0x508fee['start']['nodeAfter']));}constructor(_0x5e877e){super(_0x5e877e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x557ab7){return Array['from'](new Set(_0x557ab7)['values']());}class St extends _0x38f362{static get['requires'](){return[jt];}['afterInit'](){const _0x21f52e=this['editor'],_0x3106eb=_0x21f52e['model']['document']['selection'],_0x4aa013=_0x21f52e['locale'];if(!_0x21f52e['plugins']['has']('TableEditing'))return;const _0x2d88dd=_0x21f52e['plugins']['get']('TrackChangesEditing'),_0x104eca=_0x21f52e['plugins']['get']('TableUtils'),_0x451941=_0x21f52e['plugins']['get'](jt);_0x451941['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2d88dd['enableCommand']('mergeTableCells',()=>{const _0x1585cd=_0x104eca['getSelectionAffectedTableCells'](_0x21f52e['model']['document']['selection']);_0x21f52e['model']['change'](()=>{_0x2d88dd['markMultiRangeBlockFormat'](_0x1585cd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x21f52e['commands']['get']('mergeTableCells')['on']('execute',(_0x11ccdb,_0x1b8174)=>{_0x21f52e['commands']['get']('trackChanges')['value']&&(_0x1b8174['length']>0x0&&_0x1b8174[_0x1b8174['length']-0x1]&&_0x1b8174[_0x1b8174['length']-0x1]['forceDefaultExecution']||_0x2d88dd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x11ccdb['stop']());},{'priority':'highest'});for(const _0x123d08 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1c0ec5=_0x21f52e['commands']['get'](_0x123d08);_0x2d88dd['enableCommand'](_0x123d08,()=>{const _0x32d859=_0x21f52e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x59a41f=>_0x59a41f['is']('element','tableCell')),_0x1fb7a2=_0x1c0ec5['value'];_0x21f52e['model']['change'](()=>{_0x2d88dd['markMultiRangeBlockFormat']([_0x32d859,_0x1fb7a2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x46dce8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2a67b6=_0x21f52e['commands']['get'](_0x46dce8);_0x2d88dd['enableCommand'](_0x46dce8,()=>{const _0x1cd98e=_0x104eca['getSelectionAffectedTableCells'](_0x21f52e['model']['document']['selection'])[0x0],_0x3105fa=_0x1cd98e['findAncestor']('table'),{column:_0xd87b07,row:_0x5c4c9c}=_0x104eca['getCellLocation'](_0x1cd98e);let _0x190515=[];if('horizontally'==_0x2a67b6['direction']){const _0x57af32=_0x104eca['createTableWalker'](_0x3105fa,{'startRow':_0x5c4c9c,'endRow':_0x5c4c9c,'includeAllSlots':!0x0});_0x190515=Array['from'](_0x57af32)['map'](_0x53e20b=>_0x53e20b['cell']);}else{const _0x1eb0a7=_0x104eca['createTableWalker'](_0x3105fa,{'column':_0xd87b07,'includeAllSlots':!0x0});_0x190515=Array['from'](_0x1eb0a7)['map'](_0x979d8e=>_0x979d8e['cell']);}_0x21f52e['model']['change'](_0x1c4cfe=>{_0x2d88dd['markBlockFormat'](_0x1c4cfe['createRangeOn'](_0x1cd98e),{'commandName':_0x46dce8,'commandParams':[]},_0x190515,_0x46dce8);});});}_0x2d88dd['descriptionFactory']['registerDescriptionCallback'](_0xd57308=>{if('formatBlock'!=_0xd57308['type']&&'formatInline'!=_0xd57308['type'])return;const {data:_0x372a2b}=_0xd57308;return _0x372a2b&&'mergeTableCells'==_0x372a2b['commandName']?{'type':'format','content':o(_0x4aa013,'*Merge\x20cells*')}:void 0x0;}),_0x2d88dd['descriptionFactory']['registerDescriptionCallback'](_0x3ff65d=>{if('formatBlock'!=_0x3ff65d['type']&&'formatInline'!=_0x3ff65d['type'])return;const {data:_0xc2b42}=_0x3ff65d;return _0xc2b42?'splitTableCellVertically'==_0xc2b42['commandName']?{'type':'format','content':o(_0x4aa013,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xc2b42['commandName']?{'type':'format','content':o(_0x4aa013,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xd87337=_0x451941['_acceptFormatSuggestionCallbackFactory']();for(const _0x14216f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2d88dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14216f,'accept',_0xd87337);for(const _0x3e0cde of['splitTableCellVertically','splitTableCellHorizontally'])_0x2d88dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e0cde,'accept',_0xd87337);_0x2d88dd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3e3dfe=>{_0x21f52e['model']['change'](_0x39fbbd=>{const _0x4bcc3f=Array['from'](_0x3106eb['getRanges']())['map'](_0x12d3dc=>_0x5beaf3['fromRange'](_0x12d3dc));_0x39fbbd['setSelection'](_0x3e3dfe),_0x21f52e['commands']['get']('mergeTableCells')['refresh'](),_0x21f52e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1618d2=_0x4bcc3f['filter'](_0x3c6d81=>'$graveyard'!=_0x3c6d81['root']['rootName']);_0x1618d2['length']>0x0&&_0x39fbbd['setSelection'](_0x1618d2);for(const _0x10e928 of _0x4bcc3f)_0x10e928['detach']();});});for(const _0x462aad of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2292a6=_0x21f52e['commands']['get'](_0x462aad);_0x2292a6['on']('set:isEnabled',(_0xb7a502,_0x47f469,_0x35fe32)=>{if(_0x35fe32){const _0x20c577=_0x21f52e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x50ff05=>_0x50ff05['is']('element','tableCell'));this['_areMergableCells'](_0x2292a6['value'],_0x20c577)||(_0xb7a502['return']=!0x1,_0xb7a502['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x71f958=this['editor']['commands']['get']('mergeTableCells'),_0x3125e2=this['editor']['plugins']['get']('TableUtils');if(!_0x71f958['isEnabled'])return!0x1;const _0x387ab2=_0x3125e2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xc12bc6 of _0x387ab2)for(const _0x5ace37 of _0x387ab2)if(_0xc12bc6!=_0x5ace37&&!this['_areMergableCells'](_0xc12bc6,_0x5ace37))return!0x1;return!0x0;}['_areMergableCells'](_0x2b47d2,_0x47eabd){const _0x3dabe9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20b59a=this['editor']['model']['createRangeOn'](_0x2b47d2),_0x44abcd=this['editor']['model']['createRangeOn'](_0x47eabd),_0x56d648=new Set(),_0x410439=new Set();for(const _0x5575b3 of _0x3dabe9['getSuggestions']())if(('insertion'==_0x5575b3['type']||'deletion'==_0x5575b3['type']||'mergeTableCells'==_0x5575b3['subType'])&&_0x5575b3['isInContent']){for(const _0x5a6833 of _0x5575b3['getRanges']())_0x5a6833['containsRange'](_0x20b59a,!0x0)&&_0x56d648['add'](_0x5575b3['type']+':'+_0x5575b3['author']['id']),_0x5a6833['containsRange'](_0x44abcd,!0x0)&&_0x410439['add'](_0x5575b3['type']+':'+_0x5575b3['author']['id']);}if(_0x56d648['size']!=_0x410439['size'])return!0x1;for(const _0x53b28f of _0x56d648)if(!_0x410439['has'](_0x53b28f))return!0x1;return!0x0;}}class At extends _0x38f362{static get['requires'](){return[jt];}['afterInit'](){const _0x1d8f56=this['editor'];if(!_0x1d8f56['plugins']['has']('TableEditing'))return;const _0x467d3a=_0x1d8f56['locale'],_0x2b2f5d=_0x1d8f56['plugins']['get']('TrackChangesEditing');_0x2b2f5d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2b2f5d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2b2f5d['registerBlockAttribute']('headingRows'),_0x2b2f5d['registerBlockAttribute']('headingColumns'),_0x2b2f5d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x467d3a,'FORMAT_HEADER_ROW')),_0x2b2f5d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x467d3a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x35146b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x169c34=this['editor']['plugins']['get']('TableUtils'),_0xa54723=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x51382f({showActiveMarker:_0x4ce833=!0x0,setDataAttribute:_0x2c50c3=!0x0}={}){return(_0x2cc543,_0x1bf62d,_0x57c818)=>{const {type:_0x517c53,id:_0x4ff500}=_0x35146b['_splitMarkerName'](_0x1bf62d['markerName']),_0x24a94d=_0x35146b['getSuggestion'](_0x4ff500),_0x22f4e=_0x24a94d['data'];if('formatBlock'!=_0x24a94d['type']||!_0x22f4e||'setTableColumnHeader'!=_0x22f4e['commandName'])return;if(_0x1bf62d['item'])return void _0x2cc543['stop']();if(!_0x57c818['consumable']['consume'](_0x1bf62d['markerRange'],_0x2cc543['name']))return;const _0x1974ac=_0x1bf62d['markerRange']['start']['nodeAfter'],_0x4007b3=_0x1bf62d['markerRange']['end']['nodeBefore'],_0x19eb2b=_0x1974ac['parent']['parent'],{column:_0x2a7a43}=_0x169c34['getCellLocation'](_0x1974ac),{column:_0x448a96}=_0x169c34['getCellLocation'](_0x4007b3);for(let _0x25627d=_0x2a7a43;_0x25627d<=_0x448a96;_0x25627d++){const _0x3ad601=_0x169c34['createTableWalker'](_0x19eb2b,{'column':_0x25627d,'includeAllSlots':!0x1});for(const _0x26180b of _0x3ad601){const _0x4ddd3e=_0x26180b['cell'],_0x341b0c=_0x57c818['mapper']['toViewElement'](_0x4ddd3e);_0x57c818['writer']['addClass']('ck-suggestion-marker-'+_0x517c53,_0x341b0c),_0x2c50c3&&_0x57c818['writer']['setAttribute']('data-suggestion',_0x4ff500,_0x341b0c),_0x57c818['mapper']['bindElementToMarker'](_0x341b0c,_0x1bf62d['markerName']),_0x4ce833&&(_0x35146b['activeMarkers']['includes'](_0x1bf62d['markerName'])?_0x57c818['writer']['addClass']('ck-suggestion-marker--active',_0x341b0c):_0x57c818['writer']['removeClass']('ck-suggestion-marker--active',_0x341b0c));}}};}_0x35146b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xa54723),_0x35146b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xa54723),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x51382f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47a81b,_0xfb091f,_0x36cd94)=>{_0x36cd94['options']['showSuggestionHighlights']&&_0x51382f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x47a81b,_0xfb091f,_0x36cd94);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x36a72c,_0x51ffe0,_0x2a7f98)=>{const {type:_0x112fc8,id:_0x9ab64a}=_0x35146b['_splitMarkerName'](_0x51ffe0['markerName']),_0x2e8ed2=_0x35146b['getSuggestion'](_0x9ab64a),_0x36a2e3=_0x2e8ed2['data'];if('formatBlock'!=_0x2e8ed2['type']||!_0x36a2e3||'setTableColumnHeader'!=_0x36a2e3['commandName'])return;const _0x333318=_0x2a7f98['mapper']['markerNameToElements'](_0x51ffe0['markerName']);if(_0x333318){for(const _0xeabd5e of _0x333318)_0x2a7f98['writer']['removeClass']('ck-suggestion-marker-'+_0x112fc8,_0xeabd5e),_0x2a7f98['writer']['removeClass']('ck-suggestion-marker--active',_0xeabd5e),_0x2a7f98['writer']['removeAttribute']('data-suggestion',_0xeabd5e),_0x2a7f98['mapper']['unbindElementFromMarkerName'](_0xeabd5e,_0x51ffe0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53a12b=this['editor'],_0x3247ea=_0x53a12b['locale'];function _0x24ab9c(_0x20a5d5){return{'type':'format','content':o(_0x3247ea,'*Format:*\x20%0',_0x20a5d5)};}_0x53a12b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c9c2e=>{if('formatBlock'!=_0x4c9c2e['type'])return;const {data:_0x4f486f}=_0x4c9c2e;if(_0x4f486f){if('setTableRowHeader'==_0x4f486f['commandName']){const _0x4bb3c5=_0x4f486f['commandParams'][0x0]['forceValue'];return _0x24ab9c(o(_0x3247ea,_0x4bb3c5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4f486f['commandName']){const _0xc7c977=_0x4f486f['commandParams'][0x0]['forceValue'];return _0x24ab9c(o(_0x3247ea,_0xc7c977?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0xcc1d63=>[_0xcc1d63,null]));class It extends _0x38f362{static get['requires'](){return[jt];}['afterInit'](){const _0x27abb1=this['editor'];if(!_0x27abb1['plugins']['has']('TableClipboard'))return;const _0x3a1fae=_0x27abb1['plugins']['get']('TrackChangesEditing'),_0x4b422e=_0x27abb1['plugins']['get']('TableUtils'),_0x1ca6d5=_0x27abb1['plugins']['get'](jt),_0x3b061a=_0x27abb1['plugins']['get']('TableClipboard');_0x1ca6d5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x27abb1['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x27abb1['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x188572=null;_0x27abb1['model']['on']('insertContent',(_0x19c3f2,_0x53c8fd)=>{const [_0x3ce38b,_0x5d24ba]=_0x53c8fd,_0x10bea5=_0x53c8fd[_0x53c8fd['length']-0x1];_0x10bea5&&_0x10bea5['forceDefaultExecution']||_0x3a1fae['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x144ce2,_0x5be574,_0x2baa4b,_0x32ca23,_0x38b5bf){if(_0x5be574&&!_0x5be574['is']('documentSelection'))return!0x1;const _0x116682=_0x38b5bf['getTableIfOnlyTableInContent'](_0x144ce2,_0x2baa4b);if(!_0x116682||!he(_0x116682,void 0x0,_0x32ca23))return!0x1;const _0x3bb167=_0x32ca23['getSelectionAffectedTableCells'](_0x2baa4b['document']['selection']);if(!_0x3bb167['length'])return!0x1;const _0x579835=_0x3bb167[0x0]['findAncestor']('table'),_0x313439=_0x32ca23['getRowIndexes'](_0x3bb167),_0x1ee2d4=_0x32ca23['getColumnIndexes'](_0x3bb167),_0x2b2e9d={'startRow':_0x313439['first'],'endRow':_0x313439['last'],'startColumn':_0x1ee2d4['first'],'endColumn':_0x1ee2d4['last']};return 0x1==_0x3bb167['length']&&(_0x2b2e9d['endRow']+=_0x32ca23['getRows'](_0x116682)-0x1,_0x2b2e9d['endColumn']+=_0x32ca23['getColumns'](_0x116682)-0x1),he(_0x579835,_0x2b2e9d,_0x32ca23);}(_0x3ce38b,_0x5d24ba,_0x27abb1['model'],_0x4b422e,_0x3b061a)&&(_0x19c3f2['stop'](),_0x188572={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x27abb1['model']['change'](()=>{_0x27abb1['model']['insertContent'](_0x53c8fd[0x0],_0x53c8fd[0x1],_0x53c8fd[0x2],{'forceDefaultExecution':!0x0});const _0xb7e445=_0xced280(),{rowInsertionRanges:_0x1f88f8,columnInsertionRanges:_0x4301ee,insertionRanges:_0x5d5523,deletionRanges:_0x18515b,cells:_0x352c7f}=_0x188572;_0x1f88f8['length']&&_0x3a1fae['markMultiRangeInsertion'](_0x1f88f8,'tablePasteRow',{'tablePasteChainId':_0xb7e445}),_0x4301ee['length']&&_0x3a1fae['markMultiRangeInsertion'](_0x4301ee,'tablePasteColumn',{'tablePasteChainId':_0xb7e445}),_0x5d5523['length']&&(_0x3a1fae['markMultiRangeInsertion'](_0x5d5523,'tablePaste',{'tablePasteChainId':_0xb7e445,'skipNestingCheck':!0x0}),_0x5d5523['forEach'](_0x57096c=>{var _0x14eb8f;return null===(_0x14eb8f=_0x57096c['detach'])||void 0x0===_0x14eb8f?void 0x0:_0x14eb8f['call'](_0x57096c);})),_0x18515b['length']&&(_0x3a1fae['markMultiRangeDeletion'](_0x18515b,'tablePaste',{'tablePasteChainId':_0xb7e445,'skipNestingCheck':!0x0}),_0x18515b['forEach'](_0x1132ad=>{var _0x451a2a;return null===(_0x451a2a=_0x1132ad['detach'])||void 0x0===_0x451a2a?void 0x0:_0x451a2a['call'](_0x1132ad);}));const _0x281718=_0x3a1fae['markMultiRangeBlockFormat'](_0x352c7f['map'](({element:_0x5ed9f4})=>_0x5ed9f4),{'formatGroupId':_0xced280()},[],'tablePasteCell',{'tablePasteChainId':_0xb7e445});if(_0x281718){const _0x582a4b=_0x281718['getMarkers'](),_0x47cc9d=[];for(const {element:_0x3e7a6d,attributes:_0x4e494f}of _0x352c7f){if(!_0x4e494f)continue;const _0x4a4c67=_0x27abb1['model']['createRangeOn'](_0x3e7a6d),_0x29b44a=_0x582a4b['find'](_0x56153b=>_0x56153b['getRange']()['isEqual'](_0x4a4c67));_0x29b44a&&_0x47cc9d['push']([_0x29b44a['name'],_0x4e494f]);}_0x47cc9d['length']&&_0x281718['setAttribute']('markerAttributes',Object['fromEntries'](_0x47cc9d));}_0x188572=null;}));},{'priority':_0x47b06d['high']+0xa}),_0x27abb1['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x417135,_0x546ff8)=>{const [_0x13420e,_0x13d98a,,_0x18d74c]=_0x546ff8;if(!_0x188572)return;_0x417135['stop']();const _0x303726=_0x13420e['cell'],_0x500e33=_0x13d98a,_0x1ee304=Pe(_0x303726),_0x28057f=Pe(_0x500e33);_0x417135['return']=_0x303726;let _0x803c5c=null,_0x52aa00=null;if(_0x28057f||_0x1ee304){if(_0x1ee304&&!_0x28057f){_0x18d74c['remove'](_0x303726['getChild'](0x0));for(const _0x1974d1 of Array['from'](_0x500e33['getChildren']()))_0x18d74c['insert'](_0x1974d1,_0x303726,'end');const _0x2d4dc2=_0x188572['rowInsertionIndexes']['includes'](_0x13420e['row']),_0x37d203=_0x188572['columnInsertionIndexes']['includes'](_0x13420e['column']);_0x2d4dc2||_0x37d203||(_0x803c5c=_0x5beaf3['fromRange'](_0x18d74c['createRangeIn'](_0x303726)));}else _0x28057f&&!_0x1ee304&&(_0x52aa00=_0x18d74c['createRangeIn'](_0x303726));}else{const _0x131e01=_0x18d74c['createElement']('tableCellSuggestion'),_0x1b45a7=_0x18d74c['createElement']('tableCellSuggestion');_0x18d74c['wrap'](_0x18d74c['createRangeIn'](_0x303726),_0x1b45a7),_0x18d74c['insert'](_0x131e01,_0x303726,0x0);for(const _0x1f7fdc of Array['from'](_0x500e33['getChildren']()))_0x18d74c['insert'](_0x1f7fdc,_0x131e01,'end');_0x803c5c=_0x5beaf3['fromRange'](_0x18d74c['createRangeOn'](_0x131e01)),_0x52aa00=_0x5beaf3['fromRange'](_0x18d74c['createRangeOn'](_0x1b45a7));}const _0x2a7d80=Array['from'](_0x500e33['getAttributes']())['filter'](([_0x25dc41])=>ge['includes'](_0x25dc41));_0x188572['cells']['push']({'element':_0x303726,'attributes':_0x2a7d80['length']?Object['fromEntries'](_0x2a7d80):null}),_0x803c5c&&_0x188572['insertionRanges']['push'](_0x803c5c),_0x52aa00&&_0x188572['deletionRanges']['push'](_0x52aa00);},{'priority':'high'}),_0x4b422e['on']('insertColumns',(_0xfa7328,_0x402854)=>{const [_0x33ea24,_0x5a3861={}]=_0x402854;if(!_0x188572)return;const _0x1b8e5b=_0x5a3861['at']||0x0,_0x1d7c8c=_0x5a3861['columns']||0x1;_0x188572['columnInsertionIndexes']=new Array(_0x1d7c8c)['fill'](_0x1b8e5b)['map']((_0x4d24ed,_0x5c4c88)=>_0x4d24ed+_0x5c4c88);for(const {cell:_0x4265cb}of _0x4b422e['createTableWalker'](_0x33ea24,{'startColumn':_0x1b8e5b,'endColumn':_0x1b8e5b+_0x1d7c8c-0x1}))_0x188572['columnInsertionRanges']['push'](_0x27abb1['model']['createRangeOn'](_0x4265cb));},{'priority':'low'}),_0x4b422e['on']('insertRows',(_0x1a6224,_0x598c35)=>{const [_0x95b3b7,_0x108560={}]=_0x598c35;if(!_0x188572)return;const _0x55f197=_0x108560['at']||0x0,_0x12d893=_0x108560['rows']||0x1;_0x188572['rowInsertionIndexes']=new Array(_0x12d893)['fill'](_0x55f197)['map']((_0x56a838,_0x55d695)=>_0x56a838+_0x55d695);for(const {cell:_0x5ea5e9}of _0x4b422e['createTableWalker'](_0x95b3b7,{'startRow':_0x55f197,'endRow':_0x55f197+_0x12d893-0x1}))_0x188572['rowInsertionRanges']['push'](_0x27abb1['model']['createRangeOn'](_0x5ea5e9));},{'priority':'low'}),_0x3a1fae['descriptionFactory']['registerDescriptionCallback'](_0x4eeff9=>{if(_0x4eeff9['subType']&&_0x4eeff9['subType']['startsWith']('tablePaste'))return _0x4eeff9['previous']?{}:{'type':'insertion','content':o(_0x27abb1['locale'],'*Replace\x20table\x20cells*')};});const _0x677f5e=()=>!0x1;for(const _0x2164f9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3a1fae['_suggestionFactory']['registerCustomCallback']('insertion',_0x2164f9,'join',_0x677f5e),_0x3a1fae['_suggestionFactory']['registerCustomCallback']('deletion',_0x2164f9,'join',_0x677f5e),_0x3a1fae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2164f9,'join',_0x677f5e);_0x3a1fae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x677f5e),_0x3a1fae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1978da,_0x17c19d,_0x4be1aa)=>{const _0x2b07bb=_0x1978da['map'](_0x57d135=>_0x57d135['getContainedElement']())['filter'](_0x27cfb0=>_0x27cfb0),_0x2f3bc5=new Map(_0x2b07bb['map'](_0x1abb79=>[_0x1abb79,null]));if(_0x188572){for(const {element:_0x561e39,attributes:_0x3a2aa9}of _0x188572['cells'])_0x3a2aa9&&_0x2f3bc5['set'](_0x561e39,_0x3a2aa9);}else{if(_0x4be1aa&&_0x4be1aa['markerAttributes'])for(const [_0x60a021,_0x5c85b8]of Object['entries'](_0x4be1aa['markerAttributes'])){const _0x4c0ebf=_0x27abb1['model']['markers']['get'](_0x60a021),_0x3dedd4=_0x4c0ebf?_0x4c0ebf['getRange']()['getContainedElement']():null;_0x3dedd4&&_0x2f3bc5['set'](_0x3dedd4,_0x5c85b8);}}_0x27abb1['model']['change'](_0x4958de=>{for(const [_0xc02923,_0xed18a5]of _0x2f3bc5)_0x4958de['setAttributes']({...Ce,..._0xed18a5},_0xc02923);});});const _0x4add3d=(_0x4fdbd5,_0x1d5bff)=>{_0x3a1fae['_suggestionFactory']['registerCustomCallback'](_0x4fdbd5,'tablePaste',_0x1d5bff,(_0x46d481,_0x36e2e8,_0x1dead1)=>{_0x27abb1['model']['change'](_0x284567=>{const _0xf683ea=[];for(const _0x20f7d2 of _0x46d481){const _0x322ea5=_0x20f7d2['start']['nodeAfter'];_0x322ea5['is']('element','tableCellSuggestion')&&_0xf683ea['push'](_0x322ea5);}_0x3a1fae['_suggestionFactory']['getSuggestionCallback'](_0x4fdbd5,null,_0x1d5bff)(_0x46d481,_0x36e2e8,_0x1dead1);for(const _0xdcdab5 of _0xf683ea)'$graveyard'!=_0xdcdab5['root']['rootName']&&_0x284567['unwrap'](_0xdcdab5);});});};_0x4add3d('insertion','accept'),_0x4add3d('insertion','discard'),_0x4add3d('deletion','accept'),_0x4add3d('deletion','discard'),_0x3a1fae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2bc384=>{const _0x113d0a=_0x2bc384['map'](_0x105693=>_0x105693['getContainedElement']()),_0x2039d9=_0x113d0a[0x0]['findAncestor']('table'),{minRow:_0x2fe90b,maxRow:_0x18d105}=_0x1ca6d5['_getCoordsForCells'](_0x113d0a);_0x4b422e['removeRows'](_0x2039d9,{'at':_0x2fe90b,'rows':_0x18d105-_0x2fe90b+0x1});}),_0x3a1fae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4751e8=>{const _0x33c02f=_0x4751e8['map'](_0xd1735f=>_0xd1735f['getContainedElement']()),_0x121a0b=_0x33c02f[0x0]['findAncestor']('table'),{minColumn:_0x5c764b,maxColumn:_0x336283}=_0x1ca6d5['_getCoordsForCells'](_0x33c02f);_0x4b422e['removeColumns'](_0x121a0b,{'at':_0x5c764b,'columns':_0x336283-_0x5c764b+0x1});});const _0x173082=(_0x4682a2,_0x57e786)=>{if(!_0x57e786['subType']||!_0x57e786['subType']['startsWith']('tablePaste'))return;const _0x33342b=_0x57e786['attributes']['tablePasteChainId'],_0x1520d3=_0x3a1fae['getSuggestions']()['filter'](_0x32f75a=>_0x32f75a['isInContent']&&_0x32f75a['attributes']&&_0x32f75a['attributes']['tablePasteChainId']==_0x33342b);_0x1520d3['length']&&_0x57e786['getAllAdjacentSuggestions']()['length']!=_0x1520d3['length']&&_0x1520d3['reduce']((_0x88af4f,_0x31d8c4)=>(_0x88af4f['next']=_0x31d8c4,_0x31d8c4['previous']=_0x88af4f,_0x31d8c4));};function _0x3bd7d1(_0x4fead5,_0x589138=!0x0){const {id:_0x200ebb}=_0x3a1fae['_splitMarkerName'](_0x4fead5['markerName']),_0x527a06=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1a20d0=_0x3a1fae['activeMarkers']['includes'](_0x4fead5['markerName']);return _0x1a20d0&&_0x527a06['push']('ck-suggestion-marker--active'),{'classes':_0x527a06,'attributes':{'data-suggestion':_0x200ebb},'priority':_0x1a20d0&&_0x589138?0xbc2:0xbb8};}_0x3a1fae['on']('suggestionLoaded',_0x173082,{'priority':'high'}),_0x3a1fae['on']('suggestionUnloaded',_0x173082,{'priority':'high'}),_0x27abb1['model']['document']['registerPostFixer'](()=>{let _0xe8d3f7=!0x1;const _0x80bfe3=Array['from'](_0x27abb1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xaa0070,data:_0xfbd6d0}of _0x80bfe3){const {group:_0x40f68b,type:_0x26916e,id:_0x4bc124}=_0x3a1fae['_splitMarkerName'](_0xaa0070);if('suggestion'!=_0x40f68b||'deletion'!=_0x26916e||_0xfbd6d0['oldRange'])continue;if(!_0x3a1fae['hasSuggestion'](_0x4bc124))continue;const _0x4a3be5=_0x3a1fae['getSuggestion'](_0x4bc124)['getRanges'](),_0x5e5711=_0x27abb1['plugins']['get']('Users')['me'];for(const _0x161cca of _0x3a1fae['getSuggestions']()){if(!_0x161cca['isInContent']||_0x161cca['author']!=_0x5e5711)continue;if('formatBlock'!=_0x161cca['type']||'tablePasteCell'!=_0x161cca['subType'])continue;if(_0x161cca['getRanges']()['every'](_0x4dd219=>_0x4a3be5['some'](_0x3ad8e7=>_0x3ad8e7['containsRange'](_0x4dd219,!0x0)))){for(const _0x1b6c7c of _0x161cca['getAllAdjacentSuggestions']())_0x1b6c7c['isInContent']&&(_0x1b6c7c['discard'](),_0xe8d3f7=!0x0);}}}return _0xe8d3f7;}),_0x27abb1['model']['document']['registerPostFixer'](_0x58c416=>{const _0x54874d=_0x27abb1['commands']['get']('redo');if(!_0x54874d||!_0x54874d['_createdBatches']['has'](_0x58c416['batch']))return!0x1;let _0x13490c=!0x1;const _0x246a74=_0x27abb1['plugins']['get']('Users')['me'],_0x4db863=_0x27abb1['model']['document']['differ']['getChanges'](),_0x24f0f5=Array['from'](_0x27abb1['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3dc833,data:_0xd00d2f})=>{const {group:_0x41b558,subType:_0x246c8d,authorId:_0x32bd95}=_0x3a1fae['_splitMarkerName'](_0x3dc833);return'suggestion'==_0x41b558&&'tablePaste'==_0x246c8d&&_0x32bd95==_0x246a74['id']&&!_0xd00d2f['oldRange'];});for(const _0x29532e of _0x4db863){if('insert'!=_0x29532e['type']||'tableCellSuggestion'!=_0x29532e['name']||0x1!=_0x29532e['length'])continue;const _0x43b722=_0x58c416['createRange'](_0x29532e['position'],_0x29532e['position']['getShiftedBy'](0x1));if(!_0x24f0f5['find'](({data:_0x49c185})=>_0x49c185['newRange']['isEqual'](_0x43b722))){for(const {name:_0x408615,data:_0x3a4213}of _0x24f0f5)if(_0x43b722['containsRange'](_0x3a4213['newRange'])){_0x58c416['updateMarker'](_0x408615,{'range':_0x43b722}),_0x13490c=!0x0;break;}}}return _0x13490c;}),_0x27abb1['model']['document']['registerPostFixer'](_0x16dd37=>{let _0x3a9fb3=!0x1;const _0x21859f=_0x27abb1['plugins']['get']('Users')['me'],_0xbf9895=_0x3a1fae['getSuggestions']()['filter'](_0x4f4c1e=>_0x4f4c1e['isInContent']&&_0x4f4c1e['author']==_0x21859f),_0x4e7384=new Set(),_0x3103a8=new Set();for(const _0x16f131 of _0xbf9895)if('tablePaste'==_0x16f131['subType'])for(const _0x31fe26 of _0x16f131['getMarkers']()){const _0x1ce787=_0x31fe26['getRange']()['getContainedElement']();if(_0x1ce787){if(_0x1ce787['is']('element','tableCellSuggestion')&&Pe(_0x1ce787)){_0x16f131['removeMarker'](_0x31fe26['name']),_0x4e7384['add'](_0x1ce787),_0x3a9fb3=!0x0;const _0x317e48=_0x1ce787['nextSibling'],_0x29722e=_0x1ce787['previousSibling'],_0x1e2359=_0x317e48&&_0x317e48['is']('element','tableCellSuggestion'),_0x33ff8d=_0x29722e&&_0x29722e['is']('element','tableCellSuggestion');_0x1e2359&&!_0x4e7384['has'](_0x317e48)&&_0x3103a8['add'](_0x317e48),_0x33ff8d&&!_0x4e7384['has'](_0x29722e)&&_0x3103a8['add'](_0x29722e);}else _0x1ce787['is']('element','paragraph')&&_0x1ce787['isEmpty']&&(_0x16f131['removeMarker'](_0x31fe26['name']),_0x3a9fb3=!0x0);}}else{if('tablePasteCell'==_0x16f131['subType']){if(!_0x16f131['attributes']||!_0x16f131['attributes']['tablePasteChainId'])continue;const _0x54ad28=_0x16f131['attributes']['markerAttributes'];if(_0x54ad28&&Object['keys'](_0x54ad28)['length'])continue;const _0x574ca4=_0x16f131['attributes']['tablePasteChainId'];let _0x56b494=!0x0,_0x25bf6c=!0x0;for(const _0xb99f2e of _0xbf9895)if(_0xb99f2e['subType']&&_0xb99f2e['subType']['startsWith']('tablePaste')){if(!_0xb99f2e['attributes']['tablePasteChainId']){_0x25bf6c=!0x1;break;}if(_0xb99f2e['id']!=_0x16f131['id']&&_0xb99f2e['attributes']['tablePasteChainId']==_0x574ca4){_0x56b494=!0x1;break;}}_0x25bf6c&&_0x56b494&&(_0x16f131['removeMarkers'](),_0x3a9fb3=!0x0);}}for(const _0x2f7549 of _0x4e7384)_0x16dd37['remove'](_0x2f7549);for(const _0x2f415e of _0x3103a8)_0x16dd37['unwrap'](_0x2f415e);return _0x3a9fb3;}),_0x27abb1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x110331,_0x4c2ad6)=>_0x3bd7d1(_0x110331),'converterPriority':'high'}),_0x27abb1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x46a827,_0x55aa0e)=>_0x55aa0e['options']['showSuggestionHighlights']?_0x3bd7d1(_0x46a827,!0x1):null,'converterPriority':'high'});const _0x1c9628=_0x27abb1['editing']['view'];this['listenTo'](_0x1c9628['document'],'clipboardOutput',(_0x480ad8,_0x14f59a)=>{const _0xc911ce=[];for(const _0x41a4dc of _0x1c9628['createRangeIn'](_0x14f59a['content'])['getItems']())_0x41a4dc['is']('element','suggestion-td')&&_0xc911ce['push'](_0x41a4dc);_0x1c9628['change'](_0x241f8a=>{for(const _0x2c9e1f of _0xc911ce)_0x241f8a['move'](_0x241f8a['createRangeIn'](_0x2c9e1f),_0x241f8a['createPositionBefore'](_0x2c9e1f)),_0x241f8a['remove'](_0x2c9e1f);});});}}function Pe(_0x5e7c6d){if(_0x5e7c6d['isEmpty'])return!0x0;const _0x33d186=_0x5e7c6d['getChild'](0x0);return _0x33d186['is']('element','paragraph')&&_0x33d186['isEmpty'];}function he(_0x384c5e,_0x355065={},_0x31db46){for(const {isAnchor:_0x56bb8d,cellHeight:_0x32e111,cellWidth:_0x20c171}of _0x31db46['createTableWalker'](_0x384c5e,{'includeAllSlots':!0x0,..._0x355065}))if(!_0x56bb8d||0x1!=_0x32e111||0x1!=_0x20c171)return!0x1;return!0x0;}class vt extends _0x38f362{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37e55b=this['editor']['plugins']['get']('TrackChangesEditing');_0x37e55b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37e55b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37e55b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37e55b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37e55b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37e55b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x59ab16,_0xcb30e3){const _0x3d18a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29057b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5921d1=_0xcb30e3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3300c3=_0x29057b['getColumnGroupElement'](_0x5921d1);let _0x3f927a=_0x3300c3?_0x29057b['getTableColumnsWidths'](_0x3300c3):null,_0x1087a2=_0x5921d1['getAttribute']('tableWidth')||null;const _0x5b362b=_0xcb30e3['tableWidth']||_0x1087a2,_0x53a3c7=_0xcb30e3['columnWidths']||_0x3f927a,_0x18c78e=this['editor']['plugins']['get']('Users')['me'];for(const _0x5485b1 of _0x3d18a8['getSuggestions']()){const _0x271a9b=_0x5485b1['getContainedElement']();if('resizeTable'===_0x5485b1['subType']&&_0x271a9b===_0x5921d1){_0x5485b1['author']!==_0x18c78e&&_0x5485b1['discard']();const _0x43f206=_0x5485b1['data']['commandParams'];_0x1087a2=_0x43f206[0x0]['tableWidth'],_0x3f927a=_0x43f206[0x0]['columnWidths'];break;}}_0x59ab16({'table':_0x5921d1,'tableWidth':_0x5b362b,'columnWidths':_0x53a3c7}),_0x3d18a8['markBlockFormat'](_0x5921d1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1087a2,'columnWidths':_0x3f927a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x321a97){if('formatBlock'!=_0x321a97['type']&&'formatInline'!=_0x321a97['type'])return;const {data:_0x442e9a}=_0x321a97;if(_0x442e9a&&'resizeTable'===_0x442e9a['formatGroupId']){const _0x23c67d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x23c67d)};}}}class _t extends _0x38f362{['afterInit'](){const _0x4c15b6=this['editor'];_0x4c15b6['plugins']['has']('Template')&&_0x4c15b6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x38f362{['afterInit'](){const _0x59bc04=this['editor'];if(!_0x59bc04['commands']['get']('insertTableOfContents'))return;_0x59bc04['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xeab9db=_0x59bc04['plugins']['get']('TrackChangesEditing'),_0x22b114=_0x59bc04['locale'];_0xeab9db['descriptionFactory']['registerElementLabel']('tableOfContents',_0x25ad55=>o(_0x22b114,'ELEMENT_TABLE_OF_CONTENTS',_0x25ad55));}}class Dt extends _0x38f362{['afterInit'](){const _0x27ce77=this['editor'];if(!_0x27ce77['plugins']['has']('Title'))return;const _0x144954=_0x27ce77['plugins']['get']('TrackChangesEditing');_0x144954['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x27ce77['locale'],'ELEMENT_TITLE')),_0x27ce77['model']['document']['registerPostFixer'](_0x347bd0=>{let _0x49972f=!0x1;const _0x3e548d=Array['from'](_0x27ce77['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b26d4,data:_0x1c68b0}of _0x3e548d){const {group:_0x3daa40}=_0x144954['_splitMarkerName'](_0x1b26d4);if('suggestion'!==_0x3daa40||!_0x1c68b0['newRange'])continue;const _0x483b5c=_0x1c68b0['newRange'],_0xb7f0b8=_0x483b5c['end']['nodeBefore'];if(!_0xb7f0b8||!_0xb7f0b8['is']('element','title-content'))continue;if(!_0x483b5c['start']['isTouching'](_0x483b5c['end']))continue;const _0x4e4841=_0x27ce77['model']['schema']['getNearestSelectionRange'](_0x483b5c['end'],'forward');if(_0x4e4841&&_0x4e4841['isCollapsed']){const _0x548bb4=_0x347bd0['createRange'](_0x483b5c['start'],_0x4e4841['start']);_0x548bb4['isEqual'](_0x483b5c)||(_0x347bd0['updateMarker'](_0x1b26d4,{'range':_0x548bb4}),_0x49972f=!0x0);}_0x49972f||(_0x347bd0['removeMarker'](_0x1b26d4),_0x49972f=!0x0);}return _0x49972f;});}}class Nt extends _0x38f362{['afterInit'](){const _0x5adda3=this['editor'],_0x3fa0bd=_0x5adda3['plugins']['get']('TrackChangesEditing');_0x5adda3['plugins']['has']('UndoEditing')&&(_0x3fa0bd['enableCommand']('undo'),_0x3fa0bd['enableCommand']('redo'));}}class Mt extends _0x38f362{static get['requires'](){return[jt];}['afterInit'](){const _0x8e8ca9=this['editor'];if(!_0x8e8ca9['plugins']['has']('TableCaptionEditing'))return;_0x8e8ca9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x38f362{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x943f7b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2fea98 of this['tableProperties'])_0x943f7b['enableCommand'](_0x2fea98,(_0x180ad1,_0x37b6cc)=>{const _0x371fd8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2fea98,[_0x371fd8],this['tableProperties'],'tableProperties',_0x180ad1,_0x37b6cc);});_0x943f7b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x943f7b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x943f7b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x583ca4,_0x49e83e)=>this['handleDiscardAction'](this['tableProperties'],_0x583ca4,_0x49e83e)),_0x943f7b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa242fe of this['tableCellProperties'])_0x943f7b['enableCommand'](_0xa242fe,(_0x39c7e6,_0x3a338b)=>{const _0x8ade94=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa242fe,_0x8ade94,this['tableCellProperties'],'tableCellProperties',_0x39c7e6,_0x3a338b);});_0x943f7b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x943f7b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x943f7b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5d5957,_0x41aea5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5d5957,_0x41aea5)),_0x943f7b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x943f7b['descriptionFactory']['registerDescriptionCallback'](_0x2e96f4=>this['handleSuggestionDescription'](_0x2e96f4));}['_handlePropertyChange'](_0x2d006e,_0x26663e,_0x321f6b,_0x3bdeb8,_0x58dddf,_0x5d33e0){const _0x2569e4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5d33e0['batch'],()=>{for(const _0x4a0eca of _0x26663e){if(this['_getSuggestion'](_0x4a0eca,_0x3bdeb8))_0x58dddf(_0x5d33e0);else{const _0x2493a9={};for(const _0x304e4b of _0x321f6b){const _0x394a32=_0x4a0eca['getAttribute'](_0x304e4b);void 0x0!==_0x394a32&&(_0x2493a9[_0x304e4b]=_0x394a32);}_0x58dddf(_0x5d33e0),_0x2569e4['markBlockFormat'](_0x4a0eca,{'commandParams':[_0x2493a9]},[],_0x3bdeb8);}}});}['handleDiscardAction'](_0x18c43d,_0x5d552c,_0x48d952){const _0x5defd2=_0x5d552c[0x0]['start']['nodeAfter'],_0x3191d2=_0x48d952['commandParams'][0x0];this['editor']['model']['change'](_0xd43093=>{for(const _0x112cd2 of _0x18c43d)void 0x0!==_0x3191d2[_0x112cd2]?_0xd43093['setAttribute'](_0x112cd2,_0x3191d2[_0x112cd2],_0x5defd2):_0xd43093['removeAttribute'](_0x112cd2,_0x5defd2);});}['handleSuggestionDescription'](_0x3cf9d2){if(_0x3cf9d2['data'])switch(_0x3cf9d2['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'](_0x49789e,_0x1dc484){const _0x4d0d24=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x530255 of _0x4d0d24['getSuggestions']({'skipNotAttached':!0x0})){const _0x3d1678=_0x530255['getContainedElement']();if(_0x530255['subType']===_0x1dc484&&_0x3d1678===_0x49789e)return _0x530255;}return null;}constructor(_0x4460b0){super(_0x4460b0),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 _0x38f362{static get['requires'](){return['CommentsRepository',_0x16f500,_0x5a48e9,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 _0x2ccc9d=this['editor'],_0x3d5898=(_0x49c588,_0x2778a2)=>{if('attribute'!=_0x49c588)return'ck-suggestion-marker-'+_0x49c588;const _0x169d4f=_0x2778a2['split']('|')[0x0];return this['_isBlockAttribute'](_0x169d4f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2ccc9d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3d711e=>{const {id:_0x3f43e5,type:_0x2965a4,subType:_0x5ecd2b}=this['_splitMarkerName'](_0x3d711e['markerName']),_0x43b60a=['ck-suggestion-marker',_0x3d5898(_0x2965a4,_0x5ecd2b)];let _0x349bce=0xbb8;return this['activeMarkers']['includes'](_0x3d711e['markerName'])&&(_0x43b60a['push']('ck-suggestion-marker--active'),_0x349bce=0xbc2),'deletion'==_0x2965a4&&(_0x349bce+=0x5),{'classes':_0x43b60a,'attributes':{'data-suggestion':_0x3f43e5},'priority':_0x349bce};}}),_0x2ccc9d['conversion']['for']('dataDowncast')['add'](_0x4db197=>{_0x4db197['on']('addMarker:suggestion',(_0x1a6418,_0x52fbb4,_0x57d8d4)=>{if(!_0x57d8d4['options']['showSuggestionHighlights'])return;const _0x3f528a=_0x52fbb4['item'];if(!_0x3f528a)return;const _0x42dcc3=_0x57d8d4['mapper']['toViewElement'](_0x3f528a);_0x2ccc9d['model']['schema']['isObject'](_0x3f528a)&&_0x42dcc3&&!_0x42dcc3['getCustomProperty']('widget')&&_0x42dcc3['is']('containerElement')&&_0x5e164d(_0x42dcc3,_0x57d8d4['writer']);},{'priority':'high'});}),_0x2ccc9d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x17303d,_0x54f5b0)=>{if(!_0x54f5b0['options']['showSuggestionHighlights'])return null;const {type:_0x52d73f,subType:_0x4feb23}=this['_splitMarkerName'](_0x17303d['markerName']);return{'classes':['ck-suggestion-marker',_0x3d5898(_0x52d73f,_0x4feb23)],'priority':0xbb8};}});const _0x479b9a=({showActiveMarkers:_0x49becb=!0x0,isAttributeSuggestion:_0x12026a=!0x1}={})=>(_0x2e10c5,_0x317202,_0x915a58)=>{if(!_0x317202['item'])return;const {id:_0x1286bb}=this['_splitMarkerName'](_0x317202['markerName']);if(_0x12026a){const _0x45f2ca=this['_suggestions']['get'](_0x1286bb),_0x93ab7b=this['_getAttributeKey'](_0x45f2ca);if(!this['_isBlockAttribute'](_0x93ab7b))return;}if(_0x317202['item']['is']('selection'))return void _0x915a58['consumable']['consume'](_0x317202['item'],_0x2e10c5['name']);const _0x1f58a4=_0x915a58['mapper']['toViewElement'](_0x317202['item']);if(_0x317202['item']['is']('element')&&_0x2ccc9d['model']['schema']['isBlock'](_0x317202['item'])&&!_0x1f58a4['getCustomProperty']('addHighlight')){_0x915a58['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1f58a4),_0x915a58['writer']['setAttribute']('data-suggestion',_0x1286bb,_0x1f58a4),_0x915a58['mapper']['bindElementToMarker'](_0x1f58a4,_0x317202['markerName']),_0x49becb&&(this['activeMarkers']['includes'](_0x317202['markerName'])?_0x915a58['writer']['addClass']('ck-suggestion-marker--active',_0x1f58a4):_0x915a58['writer']['removeClass']('ck-suggestion-marker--active',_0x1f58a4));for(const _0x2a3aaa of _0x2ccc9d['model']['createRangeIn'](_0x317202['item'])['getItems']())_0x915a58['consumable']['consume'](_0x2a3aaa,_0x2e10c5['name']);_0x915a58['consumable']['consume'](_0x317202['item'],_0x2e10c5['name']);}};_0x2ccc9d['conversion']['for']('dataDowncast')['add'](_0x1a9fb1=>{_0x1a9fb1['on']('addMarker:suggestion:formatBlock',(_0x203f48,_0x550d76,_0x1d024b)=>{_0x1d024b['options']['showSuggestionHighlights']&&_0x479b9a({'showActiveMarkers':!0x1})(_0x203f48,_0x550d76,_0x1d024b);},{'priority':'highest'});}),_0x2ccc9d['conversion']['for']('dataDowncast')['add'](_0x1fe655=>{_0x1fe655['on']('addMarker:suggestion:attribute',(_0x36536e,_0x2f8198,_0xe4f19d)=>{_0xe4f19d['options']['showSuggestionHighlights']&&_0x479b9a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x36536e,_0x2f8198,_0xe4f19d);},{'priority':'highest'});}),_0x2ccc9d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4d2094,_0x1421e0)=>_0x1421e0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4d2094['substr'](0xb)}}),_0x2ccc9d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41fc2a,{writer:_0x53c8b9})=>{let _0x43a5be='suggestion:'+_0x41fc2a['getAttribute']('suggestion-type')+':'+_0x41fc2a['getAttribute']('id');return _0x41fc2a['getAttribute']('marker-count')&&(_0x43a5be+=':'+_0x41fc2a['getAttribute']('marker-count')),_0x53c8b9['createElement']('$marker',{'data-name':_0x43a5be});}}),_0x2ccc9d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2ccc9d['conversion']['for']('editingDowncast')['add'](_0x512906=>{_0x512906['on']('addMarker:suggestion:formatBlock',_0x479b9a(),{'priority':'high'});}),_0x2ccc9d['conversion']['for']('editingDowncast')['add'](_0x1b6f92=>{_0x1b6f92['on']('addMarker:suggestion:attribute',_0x479b9a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2ccc9d['conversion']['for']('editingDowncast')['add'](_0x2328d3=>{_0x2328d3['on']('removeMarker:suggestion:formatBlock',(_0x52e52e,_0x12944d,_0x2c9e20)=>{const _0x4ecbf2=_0x2c9e20['mapper']['markerNameToElements'](_0x12944d['markerName']);if(_0x4ecbf2){for(const _0x279588 of _0x4ecbf2)_0x279588['getCustomProperty']('addHighlight')||(_0x2c9e20['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x279588),_0x2c9e20['writer']['removeAttribute']('data-suggestion',_0x279588),_0x2c9e20['mapper']['unbindElementFromMarkerName'](_0x279588,_0x12944d['markerName']));}},{'priority':'high'});}),_0x2ccc9d['conversion']['for']('editingDowncast')['add'](_0x3255a4=>{_0x3255a4['on']('removeMarker:suggestion:attribute',(_0x2f3768,_0x46644f,_0x1101a3)=>{const _0x2aa1fe=_0x1101a3['mapper']['markerNameToElements'](_0x46644f['markerName']);if(!_0x2aa1fe)return;const {id:_0x348ffa}=this['_splitMarkerName'](_0x46644f['markerName']),_0x256c73=this['_suggestions']['get'](_0x348ffa),_0x524cb8=this['_getAttributeKey'](_0x256c73);if(this['_isBlockAttribute'](_0x524cb8)){for(const _0x336510 of _0x2aa1fe)_0x336510['getCustomProperty']('addHighlight')||(_0x1101a3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x336510),_0x1101a3['writer']['removeAttribute']('data-suggestion',_0x336510),_0x1101a3['mapper']['unbindElementFromMarkerName'](_0x336510,_0x46644f['markerName']));}},{'priority':'high'});}),_0x2ccc9d['model']['document']['registerPostFixer'](_0x5d8919=>{let _0x1df60d=!0x1;const _0x17e960=Array['from'](_0x2ccc9d['model']['document']['differ']['getChangedMarkers']()),_0x1ef3d0=new Set();for(const {name:_0x3069b9,data:_0x36e540}of _0x17e960){const {group:_0x376018,type:_0x474cd1,subType:_0x41b72a,id:_0x1c196b}=this['_splitMarkerName'](_0x3069b9);if('suggestion'!==_0x376018)continue;const _0x5c8282=this['_suggestions']['get'](_0x1c196b);if(null!=_0x36e540['newRange']){'formatInline'==_0x474cd1&&(_0x1df60d=_0x1df60d||Et(_0x36e540['newRange'],_0x3069b9,_0x5d8919,_0x2ccc9d['model']['schema']));const _0x24019b='attribute'==_0x474cd1&&this['_isBlockAttribute'](_0x41b72a['split']('|')[0x0]);if(_0x36e540['newRange']['isCollapsed']||'$graveyard'==_0x36e540['newRange']['root']['rootName']||'formatBlock'==_0x474cd1&&!Ut(_0x36e540['newRange'])||_0x24019b&&!Ut(_0x36e540['newRange'])||'deletion'==_0x474cd1&&!(!Tt(_0x821479=_0x36e540['newRange'])&&!function(_0x5be7e6){return _0x5be7e6['start']['parent']==_0x5be7e6['end']['nodeBefore']&&_0x5be7e6['start']['isAtEnd'];}(_0x821479)))_0x5d8919['removeMarker'](_0x3069b9),_0x1df60d=!0x0;else{if(!_0x5c8282||!_0x5c8282['isInContent'])continue;_0x1ef3d0['add'](_0x5c8282);}}}var _0x821479;return _0x1ef3d0['size']>0x0&&(_0x1df60d=!!this['_joinWithAdjacentSuggestions'](_0x1ef3d0)||_0x1df60d),_0x1df60d;}),_0x2ccc9d['model']['document']['registerPostFixer'](_0x189f25=>{let _0x303a29=!0x1;for(const _0xfe9ff8 of _0x2ccc9d['model']['document']['differ']['getChanges']())if('insert'==_0xfe9ff8['type'])for(const _0x309e1c of this['_suggestions']['values']()){if(_0x309e1c['isMultiRange']||!_0x309e1c['isInContent'])continue;const _0x43926c='formatBlock'==_0x309e1c['type'],_0x3ae038=this['_getAttributeKey'](_0x309e1c),_0x5d403e=_0x3ae038&&this['_isBlockAttribute'](_0x3ae038);if(!_0x43926c&&!_0x5d403e)continue;const _0x39c371=_0x309e1c['getFirstRange']();if(_0x39c371['start']['parent']!=_0x39c371['end']['parent']&&!_0x39c371['end']['isAtEnd']){const _0x175d0b=_0x2ccc9d['model']['createPositionAt'](_0x39c371['start']['nodeAfter'],'end'),_0x24c9bf=_0x2ccc9d['model']['createRange'](_0x39c371['start'],_0x175d0b);_0x189f25['updateMarker'](_0x309e1c['getFirstMarker'](),{'range':_0x24c9bf}),_0x303a29=!0x0;}}return _0x303a29;}),_0x2ccc9d['model']['document']['registerPostFixer'](_0x2b6172=>this['_processAttributeChanges'](_0x2b6172)),_0x2ccc9d['model']['document']['registerPostFixer'](_0x1f37e8=>!_0x1f37e8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1f37e8)),_0x2ccc9d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2ccc9d['model']['document']['on']('change:data',(_0x546a2a,_0x3f5797)=>{if(!_0x3f5797['isLocal']||_0x3f5797['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x35d96e=_0x2ccc9d['model']['document']['differ']['getChanges']();if(0x0==_0x35d96e['length'])return;const _0x58e9e2=[],_0x35f879=_0x35d96e['filter'](_0x18028a=>'attribute'==_0x18028a['type']),_0x174d43=_0x35d96e['filter'](_0x2c9f4f=>'insert'==_0x2c9f4f['type']&&'$text'!=_0x2c9f4f['name']),_0x4e29cf=_0x35d96e['filter'](_0x16aa6b=>'remove'==_0x16aa6b['type']&&'$text'!=_0x16aa6b['name']);for(const _0x32e129 of _0x35f879)this['_isRegisteredAttribute'](_0x32e129['attributeKey'])&&_0x58e9e2['push']({'key':_0x32e129['attributeKey'],'newValue':_0x32e129['attributeNewValue'],'oldValue':_0x32e129['attributeOldValue'],'range':Ot(_0x32e129['range'],_0x2ccc9d['model'])});for(const _0x253c5a of _0x174d43){const _0x47734e=_0x4e29cf['find'](_0xdb5837=>_0xdb5837['_element']===_0x253c5a['_element']);if(_0x47734e){const _0x258d7f=Ft(_0x253c5a['position']['nodeAfter'],_0x2ccc9d['model']);_0x47734e['name']!==_0x253c5a['name']&&_0x58e9e2['push']({'key':m,'newValue':_0x253c5a['name'],'oldValue':_0x47734e['name'],'range':_0x258d7f});for(const [_0xd05de,_0x43c3f3]of _0x47734e['attributes']){if(!this['_isRegisteredAttribute'](_0xd05de))continue;const _0xb0e05=_0x253c5a['attributes']['get'](_0xd05de);_0x43c3f3!==_0xb0e05&&_0x58e9e2['push']({'key':_0xd05de,'newValue':_0xb0e05,'oldValue':_0x43c3f3,'range':_0x258d7f});}for(const [_0x14c34f,_0x463ae3]of _0x253c5a['attributes'])this['_isRegisteredAttribute'](_0x14c34f)&&(_0x47734e['attributes']['has'](_0x14c34f)||_0x58e9e2['push']({'key':_0x14c34f,'newValue':_0x463ae3,'oldValue':null,'range':_0x258d7f}));}}0x0!=_0x58e9e2['length']&&_0x2ccc9d['model']['enqueueChange'](_0x3f5797,_0x1757fb=>{const _0x5b27a8=_0xced280();for(const {range:_0x50b20d,key:_0x536647,oldValue:_0x5eb18e,newValue:_0x58161a}of _0x58e9e2)this['markAttributeChange'](_0x50b20d,_0x536647,_0x5eb18e,_0x58161a,{'groupId':_0x5b27a8});this['_reduceExistingSuggestions'](_0x1757fb,_0x58e9e2);});},{'priority':'lowest'}),_0x2ccc9d['model']['markers']['on']('update:suggestion',(_0xeeeb2f,_0x2ff2ea,_0x383240)=>{if(null==_0x383240){const {id:_0x507993}=this['_splitMarkerName'](_0x2ff2ea['name']),_0x22345c=this['_suggestions']['get'](_0x507993);_0x22345c&&_0x22345c['addMarkerName'](_0x2ff2ea['name']);}}),_0x2ccc9d['model']['document']['on']('change:data',()=>{const _0x4947ef=Array['from'](_0x2ccc9d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x254458=>'suggestion'===this['_splitMarkerName'](_0x254458['name'])['group']);if(0x0===_0x4947ef['length'])return;_0x4947ef['sort']((_0x3d6070,_0x27ebef)=>{const _0x504d01=_0x3d6070['data']['oldRange'],_0x182aa3=_0x27ebef['data']['oldRange'];return null===_0x504d01&&null===_0x182aa3?0x0:null===_0x504d01&&null!==_0x182aa3?-0x1:null!==_0x504d01&&null===_0x182aa3?0x1:_0x504d01['start']['isBefore'](_0x182aa3['start'])?-0x1:0x1;});const _0x551101=new Set(),_0x4425d8=new Set();for(const {name:_0x5de3ce,data:_0x485de3}of _0x4947ef){const {id:_0xb1854a}=this['_splitMarkerName'](_0x5de3ce);if(null===_0x485de3['oldRange']){const _0x5bdddf=this['_handleNewSuggestionMarker'](_0x5de3ce);_0x4425d8['add'](_0x5bdddf);}else{const _0x124a49=this['_suggestions']['get'](_0xb1854a);null!==_0x485de3['newRange']||_0x124a49['isInContent']?(_0x551101['add'](_0x124a49['head']),_0x4425d8['add'](_0x124a49)):this['_removeSuggestion'](_0x124a49);}}_0x4425d8['size']>0x0&&this['_refreshSuggestionsChain'](_0x4425d8);for(const _0x34e605 of _0x551101)this['fire']('suggestionChanged',_0x34e605);}),_0x2ccc9d['model']['on']('applyOperation',(_0x44dc45,_0x2ce71f)=>{const _0x5247be=_0x2ce71f[0x0];if(!this['_suggestions']['size'])return;if(!_0x5247be['isDocumentOperation'])return;if(_0x5247be['batch']['isUndo']||!_0x5247be['batch']['isLocal'])return;let _0x575938,_0x15af0d;switch(_0x5247be['type']){case'insert':_0x575938=_0x2ccc9d['model']['createPositionAt'](_0x5247be['position']),_0x15af0d=_0x575938['getShiftedBy'](_0x5247be['howMany']);break;case'split':_0x575938=_0x2ccc9d['model']['createPositionAt'](_0x5247be['splitPosition']),_0x15af0d=_0x2ccc9d['model']['createPositionAt'](_0x5247be['moveTargetPosition']);break;case'move':_0x575938=_0x2ccc9d['model']['createPositionAt'](_0x5247be['targetPosition']),_0x15af0d=_0x575938['getShiftedBy'](_0x5247be['howMany']);break;default:return;}const _0x3c7440=_0x2ccc9d['model']['createRange'](_0x575938,_0x15af0d);_0x2ccc9d['model']['change'](()=>{for(const {suggestion:_0x4bd783,meta:_0x29a916}of this['_findSuggestions'](_0x3c7440)){if(_0x4bd783['isMultiRange'])continue;if('formatInline'==_0x4bd783['type'])continue;const _0x11f356=this['_getAttributeKey'](_0x4bd783);if(_0x11f356&&this['_isBlockAttribute'](_0x11f356)&&'split'!=_0x5247be['type'])continue;const _0x479403=_0x4bd783['data']&&_0x4bd783['data']['multipleBlocks'];('formatBlock'!=_0x4bd783['type']||'split'==_0x5247be['type']&&!_0x479403)&&(_0x29a916['containsRangeInObject']||'insertion'==_0x4bd783['type']&&_0x29a916['isOwn']||_0x4bd783['getFirstRange']()['containsRange'](_0x3c7440)&&this['_breakSuggestionMarker'](_0x4bd783,_0x575938,_0x15af0d));}});},{'priority':'lowest'}),_0x2ccc9d['model']['on']('deleteContent',(_0x33713e,_0x4ac8a7)=>{const _0x18b894=_0x4ac8a7[0x0],_0x4b8439=_0x4ac8a7[0x1];if(_0x4b8439&&_0x4b8439['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x18b894['isCollapsed'])return;const _0x1a33e9=_0x2ccc9d['model']['schema'],{start:_0x299af2,end:_0x2b6303}=_0x18b894['getFirstRange'](),_0x2fec23=_0x299af2['nodeAfter']&&_0x1a33e9['isLimit'](_0x299af2['nodeAfter'])?null:_0x1a33e9['getNearestSelectionRange'](_0x299af2,'forward'),_0x54023d=_0x2b6303['nodeBefore']&&_0x1a33e9['isLimit'](_0x2b6303['nodeBefore'])?null:_0x1a33e9['getNearestSelectionRange'](_0x2b6303,'backward'),_0x330a76=_0x2ccc9d['model']['createRange'](_0x2fec23?_0x2fec23['start']:_0x299af2,_0x54023d?_0x54023d['end']:_0x2b6303);_0x2ccc9d['model']['change'](_0x508f80=>{this['markDeletion'](_0x330a76);const _0x3385d9=_0x2ccc9d['model']['schema']['getNearestSelectionRange'](_0x330a76['start']);_0x18b894['is']('documentSelection')?_0x508f80['setSelection'](_0x3385d9):_0x18b894['setTo'](_0x3385d9);}),_0x33713e['stop']();},{'priority':_0x47b06d['normal']+0xa}),_0x2ccc9d['model']['on']('insertContent',(_0x4a4a73,_0x5594fc)=>{const _0x2b0182=_0x5594fc[_0x5594fc['length']-0x1];_0x2b0182&&_0x2b0182['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2ccc9d['model']['change'](()=>{let _0x5a707b=_0x2ccc9d['model']['insertContent'](_0x5594fc[0x0],_0x5594fc[0x1],_0x5594fc[0x2],{'forceDefaultExecution':!0x0});if(!_0x5a707b)return;_0x4a4a73['return']=_0x5a707b['clone']();const _0x2da855=_0x5a707b['end']['nodeBefore'],_0x4a463c=_0x2ccc9d['model']['schema'];_0x2da855&&_0x4a463c['isBlock'](_0x2da855)&&!_0x4a463c['isObject'](_0x2da855)&&(_0x5a707b=_0x2ccc9d['model']['createRange'](_0x5a707b['start'],_0x2ccc9d['model']['createPositionAt'](_0x2da855,'end'))),this['markInsertion'](_0x5a707b);}),_0x4a4a73['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x34a2e2=new $(_0x2ccc9d,this['_suggestions']);_0x2ccc9d['commands']['add']('acceptSuggestion',_0x34a2e2),this['enableCommand']('acceptSuggestion');const _0x2838d3=new B(_0x2ccc9d,this['_suggestions']);_0x2ccc9d['commands']['add']('discardSuggestion',_0x2838d3),this['enableCommand']('discardSuggestion'),_0x2ccc9d['commands']['add']('acceptAllSuggestions',new x(_0x2ccc9d,_0x34a2e2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2ccc9d['commands']['add']('discardAllSuggestions',new x(_0x2ccc9d,_0x2838d3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2ccc9d['commands']['add']('acceptSelectedSuggestions',new R(_0x2ccc9d,_0x34a2e2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2ccc9d['commands']['add']('discardSelectedSuggestions',new R(_0x2ccc9d,_0x2838d3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x36d0a1=_0x2ccc9d['plugins']['get']('CommentsRepository');this['listenTo'](_0x36d0a1,'addComment',(_0x5596ba,{threadId:_0x59f071})=>{const _0x1a91e4=this['_suggestions']['get'](_0x59f071);_0x1a91e4&&_0x1a91e4['commentThread']&&0x1===_0x1a91e4['commentThread']['length']&&this['_updateSuggestionData'](_0x59f071,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x36d0a1,'removeComment',(_0x306bd7,{threadId:_0x565a99})=>{const _0x122108=this['_suggestions']['get'](_0x565a99);_0x122108&&_0x122108['commentThread']&&!_0x122108['commentThread']['length']&&this['_updateSuggestionData'](_0x565a99,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x22b6f7){if(this['_adapter'])throw new _0x5a5bfe('track-changes-adapter-already-set',this);this['_adapter']=_0x22b6f7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1b0fd3=!0x1,toJSON:_0x4a903d=!0x1}={}){const _0x4c49f9=[];for(const _0x4e06ab of this['_suggestions']['values']())_0x1b0fd3&&!_0x4e06ab['isInContent']||_0x4c49f9['push'](_0x4e06ab);return _0x4a903d?_0x4c49f9['map'](_0x1a50c4=>_0x1a50c4['toJSON']()):_0x4c49f9;}['getSuggestion'](_0xc49ba8){const _0x512b8d=this['_suggestions']['get'](_0xc49ba8);if(!_0x512b8d)throw new _0x5a5bfe('track-changes-suggestion-not-found',this);return _0x512b8d;}['hasSuggestion'](_0x870ea1){return this['_suggestions']['has'](_0x870ea1);}['addSuggestionData'](_0xf48657){const {authorId:_0x4e0c8f,id:_0x352b71,attributes:_0x3c1c1a}=_0xf48657,[_0x4d33c4,_0x280ad0]=_0xf48657['type']['split'](':'),_0x1ff6e0=this['_suggestions']['get'](_0x352b71)||this['_createSuggestion'](_0x4d33c4,_0x280ad0,_0x352b71,_0x4e0c8f,_0x3c1c1a);if(this['_addThreadToSuggestion'](_0x1ff6e0),this['_checkSuggestionCorrectness'](_0x1ff6e0,_0x4d33c4,_0x280ad0||null,_0x4e0c8f),_0x1ff6e0['createdAt']=_0xf48657['createdAt'],_0x1ff6e0['_isDataLoaded']=!0x0,_0x3c1c1a&&_0x3c1c1a['@external']){const _0x153b06=_0x3c1c1a['@external'],_0x18fb08=this['_getExternalAuthor'](_0x153b06['authorName']);_0x1ff6e0['authoredAt']=_0x153b06['createdAt'],_0x1ff6e0['author']=_0x18fb08,_0x1ff6e0['isExternal']=!0x0;}else _0x1ff6e0['authoredAt']=_0xf48657['createdAt'];switch(_0xf48657['data']&&(_0x1ff6e0['data']=_0xf48657['data']),_0xf48657['attributes']&&(_0x1ff6e0['attributes']=_0xf48657['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1ff6e0['_saved']=!0x0),this['_suggestionState']['get'](_0x1ff6e0)){case'notReady':this['_suggestionState']['set'](_0x1ff6e0,'dataReady');break;case'markerReady':_0x1ff6e0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1ff6e0])),this['_refreshSuggestionsChain'](new Set([_0x1ff6e0])),this['_suggestionState']['set'](_0x1ff6e0,'ready'),this['fire']('suggestionLoaded',_0x1ff6e0)):this['_suggestionState']['set'](_0x1ff6e0,'removed');}return _0x1ff6e0;}['acceptSuggestion'](_0x4e15e0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x523698 of _0x4e15e0['getAllAdjacentSuggestions']())_0x523698['accept']();});});}['discardSuggestion'](_0x45b400){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf94061 of _0x45b400['getAllAdjacentSuggestions']())_0xf94061['discard']();});});}['enableCommand'](_0x1a0d08,_0x4a5124){const _0x185a92=this['editor']['commands']['get'](_0x1a0d08);if(!_0x185a92)throw new _0x5a5bfe('track-changes-command-not-found',this,{'commandName':_0x1a0d08});if(this['_enabledCommands']['has'](_0x185a92))throw new _0x5a5bfe('track-changes-enable-command-twice',this,{'commandName':_0x1a0d08});this['_enabledCommands']['add'](_0x185a92),_0x4a5124&&_0x185a92['on']('execute',(_0x367130,_0x3cb959)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3cb959['length']>0x0&&_0x3cb959[_0x3cb959['length']-0x1]&&_0x3cb959[_0x3cb959['length']-0x1]['forceDefaultExecution']?_0x3cb959['pop']():(_0x367130['return']=_0x4a5124((..._0x337e2e)=>_0x185a92['execute'](..._0x337e2e,{'forceDefaultExecution':!0x0}),..._0x3cb959),_0x367130['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4bd838){let _0x42d158,_0x1458fb;const _0x68baea=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x42d158=_0x4bd838();}catch(_0xd90842){_0x1458fb=_0xd90842;}return _0x68baea||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1458fb&&_0x5a5bfe['rethrowUnexpectedError'](_0x1458fb,this),_0x42d158;}['markInsertion'](_0xde817d,_0x174e31=null,_0x5445ae={}){if(_0xde817d['isCollapsed'])return null;const _0x449fb5=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2093d8,meta:_0x1e9fdb}of this['_findSuggestions'](_0xde817d,'insertion'))if(_0x1e9fdb['isOwn']){if(!_0x1e9fdb['isNextTo']){if(_0x1e9fdb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2093d8,_0x5445ae))continue;return _0x2093d8;}if(Lt(_0x2093d8,_0x5445ae))return _0x2093d8;this['_breakSuggestionMarker'](_0x2093d8,_0xde817d['start'],_0xde817d['end']);break;}if(_0x174e31==_0x2093d8['subType']&&Lt(_0x2093d8,_0x5445ae)){const _0x3c4fbd=_0x2093d8['getFirstRange']();return _0x3c4fbd['start']['isEqual'](_0xde817d['end'])?this['_setSuggestionRange'](_0x2093d8,this['_model']['createRange'](_0xde817d['start'],_0x3c4fbd['end'])):this['_setSuggestionRange'](_0x2093d8,this['_model']['createRange'](_0x3c4fbd['start'],_0xde817d['end'])),_0x2093d8;}}const _0x157379=_0xced280(),_0x21af16=_0x449fb5['id'],_0x432cf9=_0x174e31?'insertion:'+_0x174e31:'insertion',_0x480033=this['_setSuggestionData']({'id':_0x157379,'type':_0x432cf9,'createdAt':new Date(),'authorId':_0x21af16,'attributes':_0x5445ae});return this['_addSuggestionMarker'](_0x432cf9,_0x157379,_0x21af16,_0xde817d),_0x480033;}['markMultiRangeInsertion'](_0x4593f2,_0x5e7eff='multi',_0x3b5e1e={}){const _0x40dfac=this['editor']['plugins']['get']('Users')['me'],_0x512de4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5e7eff,'join');for(const _0x35e1e9 of this['getSuggestions']())if(_0x35e1e9['author']['id']==_0x40dfac['id']&&'insertion'==_0x35e1e9['type']&&_0x35e1e9['subType']==_0x5e7eff&&Lt(_0x35e1e9,_0x3b5e1e)&&(_0x512de4(_0x35e1e9['getRanges'](),_0x4593f2)||_0x512de4(_0x4593f2,_0x35e1e9['getRanges']()))){for(const _0x34ce42 of _0x4593f2)_0x35e1e9['addRange'](_0x34ce42);return _0x35e1e9;}for(const {suggestion:_0x26405d,meta:_0x5dddf6}of this['_findSuggestions'](_0x4593f2,'insertion')){if(!_0x5dddf6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5dddf6['containsRangeInObject'])continue;if(!Lt(_0x26405d,_0x3b5e1e))continue;let _0x2af5d2=!0x0;for(const _0x1e7f71 of _0x26405d['getRanges']())for(const _0x4baa8c of _0x4593f2)if(!_0x1e7f71['containsRange'](_0x4baa8c)){_0x2af5d2=!0x1;break;}if(_0x2af5d2)return _0x26405d;}const _0x5bc89f=_0xced280(),_0x14cf62=_0x40dfac['id'],_0xaceb02='insertion:'+_0x5e7eff,_0x39aa85=this['_setSuggestionData']({'id':_0x5bc89f,'type':_0xaceb02,'createdAt':new Date(),'authorId':_0x14cf62,'attributes':_0x3b5e1e});for(const _0x47192d of _0x4593f2)this['_addSuggestionMarker'](_0xaceb02,_0x5bc89f,_0x14cf62,_0x47192d,u['getMultiRangeId']());return _0x39aa85;}['markInlineFormat'](_0x2fc211,_0x49fbc5,_0x11bd99=null,_0xd521ef={}){if(_0x11bd99=_0x11bd99||Vt(_0x49fbc5),_0x2fc211['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2c41ad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11bd99,'accept');return this['forceDefaultExecution'](()=>_0x2c41ad([_0x2fc211],_0x49fbc5,_0xd521ef)),null;}const _0xbe26c=this['editor']['plugins']['get']('Users')['me'],_0x190d59=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xee8b68,meta:_0x208fcb}of this['_findSuggestions'](_0x2fc211,'insertion'))_0x208fcb['isOwn']&&!_0x208fcb['isInsideObject']&&_0x190d59['push'](..._0xee8b68['getRanges']());}const _0x24a912=function(_0xd9b38f,_0x170611){const _0x40d909=[];for(const _0x2a2b7d of _0x170611){const _0x434f4e=_0xd9b38f['getIntersection'](_0x2a2b7d);_0x434f4e&&_0x40d909['push'](_0x434f4e);}return _0x40d909;}(_0x2fc211,_0x190d59),_0x2463c1=function(_0xba6490,_0x33e497){const _0x11a7dd=[_0xba6490];for(const _0x2b0bd8 of _0x33e497){let _0x114d1a=0x0;for(;_0x114d1a<_0x11a7dd['length'];){const _0x48f3ca=_0x11a7dd[_0x114d1a]['getDifference'](_0x2b0bd8);_0x11a7dd['splice'](_0x114d1a,0x1,..._0x48f3ca),_0x114d1a+=_0x48f3ca['length'];}}return _0x11a7dd;}(_0x2fc211,_0x190d59);_0x24a912['length']&&this['_model']['change'](()=>{for(const _0x28305e of _0x24a912){const _0x4e1a97=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11bd99,'accept');this['forceDefaultExecution'](()=>_0x4e1a97([_0x28305e],_0x49fbc5,_0xd521ef));}});for(const _0x595061 of _0x2463c1){let _0xcec3d1=null,_0x2c44aa=_0x595061['start'],_0x5010ad=_0x595061['end'];for(const {suggestion:_0x49aa02,meta:_0x273dd0}of this['_findSuggestions'](_0x595061,'formatInline')){if(!_0x273dd0['isOwn'])continue;if(_0x49aa02['subType']!=_0x11bd99)continue;if(!Lt(_0x49aa02,_0xd521ef))continue;const _0x586506=_0x49aa02['getFirstRange']();if(_0x586506['containsRange'](_0x595061,!0x0))return null;_0x2c44aa=_0x2c44aa['isBefore'](_0x586506['start'])?_0x2c44aa:_0x586506['start'],_0x5010ad=_0x5010ad['isAfter'](_0x586506['end'])?_0x5010ad:_0x586506['end'],_0xcec3d1?_0x586506['start']['isBefore'](_0xcec3d1['getFirstRange']()['start'])?(_0xcec3d1['removeMarkers'](),_0xcec3d1=_0x49aa02):_0x49aa02['removeMarkers']():_0xcec3d1=_0x49aa02;}const _0x2bb41a=this['_model']['createRange'](_0x2c44aa,_0x5010ad);if(_0xcec3d1)this['_setSuggestionRange'](_0xcec3d1,_0x2bb41a);else{const _0x4dc4bf=_0xced280(),_0x3b61b1=_0xbe26c['id'];this['_setSuggestionData']({'id':_0x4dc4bf,'type':'formatInline:'+_0x11bd99,'data':_0x49fbc5,'createdAt':new Date(),'authorId':_0x3b61b1,'attributes':_0xd521ef}),this['_addSuggestionMarker']('formatInline:'+_0x11bd99,_0x4dc4bf,_0x3b61b1,_0x2bb41a);}}return null;}['markBlockFormat'](_0x18376a,_0x3f03be,_0x301f19=[],_0x5b4314=null,_0xa8602a={}){_0x3f03be['formatGroupId']||(_0x3f03be['formatGroupId']=_0x3f03be['commandName']),_0x3f03be['multipleBlocks']=_0x18376a['is']('range'),_0x5b4314=_0x5b4314||Vt(_0x3f03be);const _0x9c9b53=_0x301f19['map'](_0x5ce710=>Ft(_0x5ce710,this['_model'])),_0x5e0146=_0x18376a['is']('range')?_0x18376a:Ft(_0x18376a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x488ed1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b4314,'accept');return this['forceDefaultExecution'](()=>_0x488ed1([_0x5e0146],_0x3f03be,_0xa8602a)),null;}_0x9c9b53['push'](_0x5e0146);let _0x4d2982=!0x0;for(const _0x4c8f9b of _0x9c9b53)if(!this['_rangeIsInLocalUserInsertion'](_0x4c8f9b)){_0x4d2982=!0x1;break;}if(_0x4d2982&&'always'!==this['_trackFormatChanges']){const _0x2908a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b4314,'accept');return this['forceDefaultExecution'](()=>_0x2908a8([_0x5e0146],_0x3f03be,_0xa8602a)),null;}let _0x423e1e=null,_0x101ca8=_0x5e0146['start'],_0x286487=_0x5e0146['end'];for(const {suggestion:_0xd702cf,meta:_0xc82266}of this['_findSuggestions'](_0x5e0146,'formatBlock')){if(!_0xc82266['isOwn'])continue;if(_0xc82266['isNextTo']||_0xc82266['containsRangeInObject']||_0xc82266['isInsideObject'])continue;if(_0xd702cf['data']['formatGroupId']!=_0x3f03be['formatGroupId'])continue;if(!Lt(_0xd702cf,_0xa8602a))continue;const _0x5492fe=_0xd702cf['getFirstRange']();if(_0xd702cf['subType']==_0x5b4314){if(_0x5492fe['containsRange'](_0x5e0146,!0x0))return null;_0x101ca8=_0x101ca8['isBefore'](_0x5492fe['start'])?_0x101ca8:_0x5492fe['start'],_0x286487=_0x286487['isAfter'](_0x5492fe['end'])?_0x286487:_0x5492fe['end'],_0x423e1e?_0x5492fe['start']['isBefore'](_0x423e1e['getFirstRange']()['start'])?(_0x423e1e['removeMarkers'](),_0x423e1e=_0xd702cf):_0xd702cf['removeMarkers']():_0x423e1e=_0xd702cf;}else{const _0x389b89=_0x5e0146['getIntersection'](_0x5492fe);this['_cutOutSuggestionMarker'](_0xd702cf,_0x389b89);}}const _0x19d736=this['editor']['plugins']['get']('Users')['me'],_0x3961d7=_0xced280(),_0x219d5d=_0x19d736['id'];if(_0x423e1e)return this['_setSuggestionRange'](_0x423e1e,this['_model']['createRange'](_0x101ca8,_0x286487)),_0x423e1e;{const _0x393cc8=this['_setSuggestionData']({'id':_0x3961d7,'type':'formatBlock:'+_0x5b4314,'data':_0x3f03be,'createdAt':new Date(),'authorId':_0x219d5d,'attributes':_0xa8602a});return this['_addSuggestionMarker']('formatBlock:'+_0x5b4314,_0x3961d7,_0x219d5d,this['_model']['createRange'](_0x101ca8,_0x286487)),_0x393cc8;}}['markMultiRangeBlockFormat'](_0x449d54,_0x52179c,_0x353bfe=[],_0x347b49=null,_0x4b4618={}){_0x52179c['formatGroupId']||(_0x52179c['formatGroupId']=_0x52179c['commandName']);const _0x2bfdb0=_0x449d54[0x0];_0x52179c['multipleBlocks']=_0x2bfdb0['is']('range'),_0x347b49=_0x347b49||Vt(_0x52179c);const _0x8873d7=_0x353bfe['map'](_0x261c01=>Ft(_0x261c01,this['_model'])),_0x26dcbf=_0x2bfdb0['is']('range')?_0x449d54:_0x449d54['map'](_0x4b33b2=>Ft(_0x4b33b2,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4c57a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x347b49,'accept');return this['forceDefaultExecution'](()=>_0x4c57a8(_0x26dcbf,_0x52179c,_0x4b4618)),null;}_0x8873d7['push'](..._0x26dcbf);let _0x51f66b=!0x0;for(const _0x3ac55b of _0x8873d7)if(!this['_rangeIsInLocalUserInsertion'](_0x3ac55b)){_0x51f66b=!0x1;break;}if(_0x51f66b&&'always'!==this['_trackFormatChanges']){const _0x128959=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x347b49,'accept');return this['forceDefaultExecution'](()=>_0x128959(_0x26dcbf,_0x52179c,_0x4b4618)),null;}const _0x2c7a5d=this['editor']['plugins']['get']('Users')['me'];for(const _0x409718 of this['getSuggestions']()){if(_0x409718['author']['id']!=_0x2c7a5d['id'])continue;if('formatBlock'!=_0x409718['type']||_0x409718['data']['formatGroupId']!=_0x52179c['formatGroupId'])continue;if(!Lt(_0x409718,_0x4b4618))continue;const _0x311c7e=_0x409718['subType']==_0x347b49;for(let _0x1a3030=0x0;_0x1a3030<_0x26dcbf['length'];_0x1a3030++){const _0x1caad6=_0x26dcbf[_0x1a3030];for(const _0x1ad195 of _0x409718['getMarkers']()){const _0x26604e=_0x1ad195['getRange']();if(_0x1caad6['isEqual'](_0x26604e)){_0x311c7e?(_0x26dcbf['splice'](_0x1a3030,0x1),_0x1a3030--):_0x409718['removeMarker'](_0x1ad195['name']);break;}}}}if(0x0==_0x26dcbf['length'])return null;const _0x996a6d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x347b49,'join');for(const _0x612337 of this['getSuggestions']())if(_0x612337['author']['id']==_0x2c7a5d['id']&&'formatBlock'==_0x612337['type']&&_0x612337['data']['formatGroupId']==_0x52179c['formatGroupId']&&_0x612337['subType']==_0x347b49&&Lt(_0x612337,_0x4b4618)&&(_0x996a6d(_0x612337['getRanges'](),_0x26dcbf)||_0x996a6d(_0x26dcbf,_0x612337['getRanges']()))){for(const _0x241b40 of _0x26dcbf)_0x612337['addRange'](_0x241b40);return _0x612337;}const _0x3c4946=_0xced280(),_0x382969=_0x2c7a5d['id'],_0x286e94='formatBlock:'+_0x347b49,_0x3ee047=this['_setSuggestionData']({'id':_0x3c4946,'type':_0x286e94,'data':_0x52179c,'createdAt':new Date(),'authorId':_0x382969,'attributes':_0x4b4618});for(const _0x5a809c of _0x26dcbf)this['_addSuggestionMarker'](_0x286e94,_0x3c4946,_0x382969,_0x5a809c,u['getMultiRangeId']());return _0x3ee047;}['markDeletion'](_0x7459ff,_0x3eac2a=null,_0x188f79={}){if(_0x7459ff['isCollapsed'])return null;const _0x400af7=this['editor']['plugins']['get']('Users')['me'],_0x25edf1=new _0x5beaf3(_0x7459ff['start'],_0x7459ff['end']);for(const {suggestion:_0x509512,meta:_0x12a721}of this['_findSuggestions'](_0x25edf1,'insertion'))if(_0x12a721['isOwn']&&!_0x12a721['isNextTo']){if(_0x509512['isMultiRange']){const _0x59bf85=_0x509512['getRanges']()['filter'](_0x20f9ee=>'$graveyard'!=_0x20f9ee['root']['rootName']);_0x59bf85['every'](_0x196471=>_0x25edf1['containsRange'](_0x196471,!0x0))&&_0x509512['discard']();if(_0x59bf85['some'](_0x4f0f1c=>_0x4f0f1c['containsRange'](_0x25edf1,!0x0))){const _0x54eed3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3eac2a,'accept');return this['forceDefaultExecution'](()=>_0x54eed3([_0x25edf1],null,_0x188f79)),null;}}else{const _0x536ff0=_0x25edf1['getIntersection'](_0x509512['getFirstRange']());null!==_0x536ff0&&_0x509512['_onDiscard']([_0x536ff0],null,_0x188f79);}}if(_0x25edf1['detach'](),_0x25edf1['isCollapsed']||'$graveyard'==_0x25edf1['root']['rootName'])return null;let _0x1ca542=null,_0x3a9a84=_0x25edf1['start'],_0x1c0e40=_0x25edf1['end'];const _0x427da3=this['_findSuggestions'](_0x25edf1,'deletion');for(const {suggestion:_0x4e78a3,meta:_0x1fcf3b}of _0x427da3){const _0x40e2d5=this['_model']['createRange'](_0x3a9a84,_0x1c0e40);if(_0x1fcf3b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1fcf3b['containsRangeInObject']&&!_0x1fcf3b['isInsideObject'])){if(_0x4e78a3['isMultiRange']){if(!Lt(_0x4e78a3,_0x188f79))continue;let _0xae455b=!0x0;for(const _0x278078 of _0x4e78a3['getRanges']()){if(_0x278078['containsRange'](_0x40e2d5,!0x0))return _0x4e78a3;_0x40e2d5['containsRange'](_0x278078)||(_0xae455b=!0x1);}_0xae455b&&_0x4e78a3['discard']();}else{const _0x152f69=_0x4e78a3['getFirstRange']();if(_0x152f69['containsRange'](_0x40e2d5,!0x0))return _0x4e78a3;if(!Lt(_0x4e78a3,_0x188f79)){_0x40e2d5['containsRange'](_0x152f69)?_0x4e78a3['removeMarkers']():_0x152f69['containsPosition'](_0x3a9a84)?_0x3a9a84=_0x152f69['end']:_0x152f69['containsPosition'](_0x1c0e40)&&(_0x1c0e40=_0x152f69['start']);continue;}_0x3a9a84=_0x3a9a84['isBefore'](_0x152f69['start'])?_0x3a9a84:_0x152f69['start'],_0x1c0e40=_0x1c0e40['isAfter'](_0x152f69['end'])?_0x1c0e40:_0x152f69['end'],_0x188f79=Object['assign']({},_0x4e78a3['attributes']),_0x1ca542?_0x152f69['start']['isBefore'](_0x1ca542['getFirstRange']()['start'])?(_0x1ca542['removeMarkers'](),_0x1ca542=_0x4e78a3):_0x4e78a3['removeMarkers']():_0x1ca542=_0x4e78a3;}}}if(_0x1ca542)return this['_setSuggestionRange'](_0x1ca542,this['_model']['createRange'](_0x3a9a84,_0x1c0e40)),_0x1ca542;{const _0x4beaf8=_0xced280(),_0x22e15a=this['_model']['createRange'](_0x3a9a84,_0x1c0e40),_0x1acbeb=_0x400af7['id'],_0x1a567d=_0x3eac2a?'deletion:'+_0x3eac2a:'deletion',_0x5f06d3=this['_setSuggestionData']({'id':_0x4beaf8,'type':_0x1a567d,'createdAt':new Date(),'authorId':_0x1acbeb,'attributes':_0x188f79});return this['_addSuggestionMarker'](_0x1a567d,_0x4beaf8,_0x1acbeb,_0x22e15a),_0x5f06d3;}}['markMultiRangeDeletion'](_0x493958,_0x4c573b='multi',_0x234923={}){const _0x3916db=this['editor']['plugins']['get']('Users')['me'],_0x5ed17b=_0x493958['map'](_0x49ede8=>new _0x5beaf3(_0x49ede8['start'],_0x49ede8['end'])),_0x50361c=new Set();for(const {suggestion:_0x1dc911,meta:_0x6f4db7}of this['_findSuggestions'](_0x5ed17b,'insertion'))_0x6f4db7['isOwn']&&!_0x6f4db7['isNextTo']&&_0x50361c['add'](_0x1dc911);for(const _0x46bf82 of _0x50361c)if(_0x46bf82['isMultiRange']){const _0xc96b4b=_0x46bf82['getRanges']();(!_0x46bf82['attributes']||!_0x46bf82['attributes']['skipNestingCheck'])&&(_0xc96b4b['every'](_0x6dced7=>_0x5ed17b['some'](_0x10344f=>_0x10344f['containsRange'](_0x6dced7,!0x0)))&&_0x46bf82['discard']());if(_0x5ed17b['every'](_0x341848=>_0xc96b4b['some'](_0x30356f=>_0x30356f['containsRange'](_0x341848,!0x0)))){const _0x1a78be=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c573b,'accept');return this['forceDefaultExecution'](()=>_0x1a78be(_0x493958,null,_0x234923)),null;}}else{const _0x931c81=_0x46bf82['getFirstRange']();_0x5ed17b['some'](_0x11748f=>_0x11748f['containsRange'](_0x931c81,!0x0))&&_0x46bf82['discard']();if(_0x5ed17b['every'](_0x86183c=>_0x931c81['containsRange'](_0x86183c,!0x0))){const _0xf9b2da=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c573b,'accept');return this['forceDefaultExecution'](()=>_0xf9b2da(_0x5ed17b,null,_0x234923)),null;}}const _0x3e1c76=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c573b,'join');let _0x197fb9=null;for(const _0x124ce5 of this['getSuggestions']())if(_0x124ce5['author']['id']==_0x3916db['id']&&_0x124ce5['isInContent']&&'deletion'==_0x124ce5['type']&&_0x124ce5['subType']==_0x4c573b&&Lt(_0x124ce5,_0x234923)&&(_0x3e1c76(_0x124ce5['getRanges'](),_0x5ed17b)||_0x3e1c76(_0x5ed17b,_0x124ce5['getRanges']()))){if(_0x197fb9){if(_0x124ce5['commentThread']&&_0x124ce5['commentThread']['length'])continue;for(const _0x3cf36c of _0x124ce5['getRanges']())_0x197fb9['isIntersectingWithRange'](_0x3cf36c)||_0x197fb9['addRange'](_0x3cf36c);_0x124ce5['removeMarkers']();}else{_0x197fb9=_0x124ce5;for(const _0x1a94b8 of _0x5ed17b)_0x124ce5['isIntersectingWithRange'](_0x1a94b8)||_0x124ce5['addRange'](_0x1a94b8);}}if(_0x197fb9)return _0x197fb9;_0x50361c['clear']();for(const {suggestion:_0x562b04,meta:_0x868724}of this['_findSuggestions'](_0x5ed17b,'deletion'))_0x868724['isOwn']&&(this['_mergeNestedSuggestions']||!_0x868724['containsRangeInObject']&&!_0x868724['isInsideObject'])&&Lt(_0x562b04,_0x234923)&&_0x50361c['add'](_0x562b04);for(const _0x55e55 of _0x50361c){const _0x47feb8=_0x55e55['getRanges']();if(!_0x234923||!_0x234923['skipNestingCheck']){if(_0x5ed17b['every'](_0x1363a3=>_0x47feb8['some'](_0x42d59f=>_0x42d59f['containsRange'](_0x1363a3,!0x0))))return _0x55e55;}(!_0x55e55['attributes']||!_0x55e55['attributes']['skipNestingCheck'])&&(_0x47feb8['every'](_0x19f345=>_0x5ed17b['some'](_0x3604a5=>_0x3604a5['containsRange'](_0x19f345,!0x0)))&&_0x55e55['discard']());}const _0x36803a=_0xced280(),_0x4e1125=_0x3916db['id'],_0x1bea73='deletion:'+_0x4c573b,_0x2b4c0a=this['_setSuggestionData']({'id':_0x36803a,'type':_0x1bea73,'createdAt':new Date(),'authorId':_0x4e1125,'attributes':_0x234923});for(const _0x806f0a of _0x5ed17b)_0x806f0a['detach'](),_0x806f0a['isCollapsed']||'$graveyard'==_0x806f0a['root']['rootName']||this['_addSuggestionMarker'](_0x1bea73,_0x36803a,_0x4e1125,_0x806f0a,u['getMultiRangeId']());return _0x2b4c0a;}['markAttributeChange'](_0x22bd8d,_0x1b56fd,_0x5f3621,_0x2dc25d,_0x46e534){if(_0x22bd8d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x482f4c=this['editor']['plugins']['get']('Users')['me']['id'],_0x11ec22=Array['from'](this['_suggestions']['values']())['filter'](_0x12d5dd=>'attribute'==_0x12d5dd['type']&&_0x12d5dd['data']['key']==_0x1b56fd&&_0x12d5dd['isIntersectingWithRange'](_0x22bd8d));if('default'===this['_trackFormatChanges']){const _0x3c75da=this['_findSuggestions'](_0x22bd8d,'insertion')['filter'](({meta:_0x40e9ed})=>_0x40e9ed['isOwn']&&!_0x40e9ed['isInsideObject']&&!_0x40e9ed['isNextTo'])['map'](({suggestion:_0x530a63})=>_0x530a63);_0x11ec22['unshift'](..._0x3c75da);}const _0x16ac99=new Map([[_0x22bd8d,_0x5f3621]]);for(const _0x477d61 of _0x11ec22){const _0x60ac02='attribute'==_0x477d61['type']?_0x477d61['data']['oldValue']:void 0x0,_0x25843a=_0x477d61['getFirstRange'](),_0x1fb90b=Array['from'](_0x16ac99['keys']())['find'](_0x5d4e57=>_0x5d4e57['isIntersecting'](_0x25843a));if(!_0x1fb90b)continue;const _0x26e58f=_0x1fb90b['getDifference'](_0x25843a);this['_isBlockAttribute'](_0x1b56fd)&&'insertion'==_0x477d61['type']&&0x0!=_0x26e58f['length']||(_0x16ac99['delete'](_0x1fb90b),_0x26e58f['forEach'](_0x386756=>{_0x16ac99['set'](_0x386756,_0x5f3621);}),'insertion'!=_0x477d61['type']&&_0x60ac02!=_0x2dc25d&&_0x16ac99['set'](_0x1fb90b['getIntersection'](_0x25843a),_0x60ac02));}const _0x23164a=[];for(const [_0x47918f,_0x4eb35e]of _0x16ac99){const _0x35800a=_0xced280(),_0x4530ac={'key':_0x1b56fd,'oldValue':_0x4eb35e,'newValue':_0x2dc25d};_0x1b56fd['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':_0x1b56fd});const _0x215d80=('attribute:'+(_0x1b56fd+'|'+Vt({'newValue':_0x2dc25d})))['substring'](0x0,0x3c),_0x5d2c1c=this['_setSuggestionData']({'id':_0x35800a,'type':_0x215d80,'data':_0x4530ac,'createdAt':new Date(),'authorId':_0x482f4c,'attributes':_0x46e534});_0x23164a['push'](_0x5d2c1c),this['_addSuggestionMarker'](_0x215d80,_0x35800a,_0x482f4c,_0x47918f);}return _0x23164a;}['enableDefaultAttributesIntegration'](_0x2f3a12){this['enableCommand'](_0x2f3a12,(_0x57aafb,..._0x3faa9e)=>{this['_recordAttributeChanges'](()=>{_0x57aafb(..._0x3faa9e);});});}['registerBlockAttribute'](_0x4bec2b){this['_blockAttributeKeys']['add'](_0x4bec2b);}['registerInlineAttribute'](_0x46a982){this['_inlineAttributeKeys']['add'](_0x46a982);}['_getAttributeKey'](_0x518aa2){return'attribute'==_0x518aa2['type']?_0x518aa2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x47c620,_0x3bc0ee){const _0x282609=_0x47c620['getFirstMarker']();this['_model']['change'](_0x3c79f5=>{_0x3c79f5['updateMarker'](_0x282609,{'range':_0x3bc0ee});});}['_addThreadToSuggestion'](_0x4724d5){const _0x36f9c4=_0x4724d5['id'],_0x5a77e1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x36f9c4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5a77e1,'threadId':_0x36f9c4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xea3a06=this['_commentsRepository']['getCommentThread'](_0x36f9c4);_0xea3a06['unbind']('isRemovable'),_0xea3a06['isRemovable']=!0x1,_0x4724d5['commentThread']=_0xea3a06;}['_checkSuggestionCorrectness'](_0x4b979a,_0x3ee22a,_0x1046f2,_0x4d006d){if(_0x4b979a['type']!=_0x3ee22a||_0x4b979a['subType']!=_0x1046f2||_0x4b979a['creator']['id']!=_0x4d006d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5a5bfe('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x28dd32,_0x46c265){const _0xf65305=_0x28dd32['getFirstRange']();if(_0x46c265['isEqual'](_0xf65305))_0x28dd32['removeMarkers']();else{if(_0xf65305['containsRange'](_0x46c265)){const _0x1fbbe3=this['_model']['createPositionAt'](_0x46c265['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28dd32,this['_model']['createRange'](_0xf65305['start'],_0x1fbbe3));const _0x432861=_0xced280(),_0x3bb99f=_0x28dd32['creator']['id'],_0x381cf=_0x28dd32['type']+':'+_0x28dd32['subType'];this['_setSuggestionData']({'id':_0x432861,'type':_0x381cf,'createdAt':new Date(),'authorId':_0x3bb99f,'data':_0x28dd32['data'],'attributes':_0x28dd32['attributes']});const _0x203e26=this['_model']['createPositionAt'](_0x46c265['end']['parent'],'after'),_0x505a21=this['_model']['createRange'](_0x203e26,_0xf65305['end']);this['_addSuggestionMarker'](_0x381cf,_0x432861,_0x3bb99f,_0x505a21);}else{if(_0xf65305['containsPosition'](_0x46c265['start'])){const _0x34cacb=this['_model']['createPositionAt'](_0x46c265['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28dd32,this['_model']['createRange'](_0xf65305['start'],_0x34cacb));}else{const _0x5addb0=this['_model']['createPositionAt'](_0x46c265['end']['parent'],'after');this['_setSuggestionRange'](_0x28dd32,this['_model']['createRange'](_0x5addb0,_0xf65305['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x15cba7){for(const {suggestion:_0x113cbf,meta:_0x47c7fb}of this['_findSuggestions'](_0x15cba7,'insertion')){if(!_0x47c7fb['isOwn'])continue;const _0x1550b8=_0x113cbf['getRanges']();for(const _0x5d4ace of _0x1550b8)if(!_0x15cba7['getDifference'](_0x5d4ace)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x100882){const _0x281cef=this['editor']['plugins']['get']('Users')['getUser'](_0x100882);if(!_0x281cef)throw new _0x5a5bfe('track-changes-user-not-found',this);return _0x281cef;}['_getExternalAuthor'](_0x51650e){const _0x39742e=this['editor']['plugins']['get']('Users'),_0x1a6fcf=_0x3f9107('external:'+_0x51650e),_0x9302c8=_0x39742e['getUser'](_0x1a6fcf);return _0x9302c8||_0x39742e['addUser']({'id':_0x1a6fcf,'name':_0x51650e});}['_createSuggestion'](_0xdfce8d,_0x2f5007,_0x3f05bd,_0x49dd55,_0x19a036){const _0x5a2bae=this['_getAuthorFromId'](_0x49dd55),_0x38c322=this['_suggestionFactory']['buildSuggestion'](_0xdfce8d,_0x2f5007,_0x3f05bd,_0x5a2bae,_0x19a036,_0x3bb59c=>{this['_updateSuggestionData'](_0x3f05bd,{'attributes':_0x3bb59c});const _0x460de5=this['getSuggestion'](_0x3f05bd);this['_joinWithAdjacentSuggestions'](new Set([_0x460de5])),this['_refreshSuggestionsChain'](new Set([_0x460de5]));});return this['listenTo'](_0x38c322,'accept',()=>{this['_updateSuggestionData'](_0x3f05bd,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x38c322,'discard',()=>{this['_updateSuggestionData'](_0x3f05bd,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3f05bd,_0x38c322),this['_suggestionState']['set'](_0x38c322,'notReady'),_0x38c322;}['_splitMarkerName'](_0x42b432){const _0x15cb86=_0x42b432['split'](':');return{'group':_0x15cb86[0x0],'type':_0x15cb86[0x1],'subType':_0x15cb86['length']>=0x5?_0x15cb86[0x2]:null,'id':_0x15cb86['length']<0x5?_0x15cb86[0x2]:_0x15cb86[0x3],'authorId':_0x15cb86['length']<0x5?_0x15cb86[0x3]:_0x15cb86[0x4],'markerCount':0x6==_0x15cb86['length']?_0x15cb86[0x5]:null};}['_breakSuggestionMarker'](_0x351de0,_0x25d5ce,_0x46f4f8){const _0x5e29ce=_0x351de0['getFirstRange'](),_0x5f5449=_0x5e29ce['start'],_0x46c193=_0x5e29ce['end'];this['_setSuggestionRange'](_0x351de0,this['_model']['createRange'](_0x5f5449,_0x25d5ce));const _0x22fd21=_0xced280(),_0x149830=_0x351de0['creator']['id'],_0x2ceac6=_0x351de0['type']+(_0x351de0['subType']?':'+_0x351de0['subType']:'');this['_setSuggestionData']({'id':_0x22fd21,'type':_0x2ceac6,'createdAt':new Date(),'authorId':_0x149830,'originalSuggestionId':_0x351de0['id'],'attributes':_0x351de0['attributes'],'data':_0x351de0['data']});const _0x39a677=this['_getAttributeKey'](_0x351de0);('formatBlock'==_0x351de0['type']||_0x39a677&&this['_isBlockAttribute'](_0x39a677))&&(_0x46f4f8=this['_model']['createPositionBefore'](_0x46f4f8['parent'])),this['_addSuggestionMarker'](_0x2ceac6,_0x22fd21,_0x149830,this['_model']['createRange'](_0x46f4f8,_0x46c193));}['_findSuggestions'](_0x351054,_0x596dc9=null){const _0x2b96af=[],_0x13ab13=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x351054)||(_0x351054=[_0x351054]);for(const _0x3253cd of this['getSuggestions']()){if(!_0x3253cd['isInContent'])continue;if(_0x596dc9&&_0x3253cd['type']!=_0x596dc9)continue;let _0x24343c=!0x1;for(const _0x2e260d of _0x3253cd['getRanges']()){for(const _0x57e578 of _0x351054){const _0x533be3=_0x57e578['start']['isEqual'](_0x2e260d['end'])||_0x57e578['end']['isEqual'](_0x2e260d['start']);if(_0x533be3||_0x57e578['getIntersection'](_0x2e260d)){const _0x2cabe2=_0x57e578['containsRange'](_0x2e260d)&&Rt(this['_model']['schema'],_0x2e260d['start'],_0x57e578),_0x4e37df=_0x2e260d['containsRange'](_0x57e578)&&Rt(this['_model']['schema'],_0x57e578['start'],_0x2e260d);_0x2b96af['push']({'suggestion':_0x3253cd,'meta':{'isOwn':_0x13ab13==_0x3253cd['author'],'isNextTo':_0x533be3,'isInsideObject':_0x2cabe2,'containsRangeInObject':_0x4e37df}}),_0x24343c=!0x0;break;}}if(_0x24343c)break;}}return _0x2b96af;}['_addSuggestionMarker'](_0x5172b1,_0x4b6af7,_0x2fa652,_0x4d8fe2,_0x474fb6){this['_model']['change'](_0x3cc858=>{let _0x4ae1b0='suggestion:'+_0x5172b1+':'+_0x4b6af7+':'+_0x2fa652;_0x474fb6&&(_0x4ae1b0=_0x4ae1b0+':'+_0x474fb6),_0x3cc858['addMarker'](_0x4ae1b0,{'range':_0x4d8fe2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xe6286f){const _0x989a4=_0xe6286f['previous'],_0x16b264=_0xe6286f['next'];_0xe6286f['previous']=null,_0xe6286f['next']=null,null!=_0x989a4&&_0x989a4['next']==_0xe6286f&&(_0x989a4['next']=_0x16b264),null!=_0x16b264&&_0x16b264['previous']==_0xe6286f&&(_0x16b264['previous']=_0x989a4),'ready'==this['_suggestionState']['get'](_0xe6286f)&&(this['_suggestionState']['set'](_0xe6286f,'removed'),this['fire']('suggestionUnloaded',_0xe6286f,_0x989a4,_0x16b264));}['_setSuggestionData'](_0x3d59a0){const _0x53db33=_0x3d59a0['id'],_0x513029=this['addSuggestionData'](_0x3d59a0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1a1083=this['editor']['plugins']['get']('PendingActions'),_0x3f667d=_0x513029['hasComments'],_0x358a8c=_0x513029['subType']?_0x513029['type']+':'+_0x513029['subType']:_0x513029['type'],_0x8ad6eb=this['editor']['locale'],_0x3042fa=_0x1a1083['add'](o(_0x8ad6eb,'PENDING_ACTION_SUGGESTION')),_0x10b936={'id':_0x53db33,'type':_0x358a8c,'hasComments':_0x3f667d,'data':_0x3d59a0['data']||null,'originalSuggestionId':_0x3d59a0['originalSuggestionId']||null,'attributes':_0x513029['attributes']};this['_adapter']['addSuggestion'](_0x10b936)['then'](_0x4717e9=>{_0x513029['_saved']=!0x0,_0x1a1083['remove'](_0x3042fa),_0x4717e9&&_0x4717e9['createdAt']&&(this['_suggestions']['get'](_0x53db33)['createdAt']=_0x4717e9['createdAt']);})['catch'](_0x193823=>{throw _0x6d7491('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x513029['discard']();}),_0x513029['stopListening'](),this['_suggestions']['delete'](_0x513029['id']),this['_suggestionState']['delete'](_0x513029),_0x193823;});}return _0x513029;}['_isBlockAttribute'](_0x1d3f39){return this['_blockAttributeKeys']['has'](_0x1d3f39);}['_updateSuggestionData'](_0xb3fa62,_0x76e48c){const _0x1fc703=this['editor']['plugins']['get']('PendingActions'),_0x440734=this['getSuggestion'](_0xb3fa62);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x440734['_saved']){const _0x14ca12=_0x1fc703['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xb3fa62,_0x76e48c)['then'](()=>{_0x1fc703['remove'](_0x14ca12);});}else _0x440734['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xb3fa62,_0x76e48c);});}}['_getSuggestionData'](_0x13cf6d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5a5bfe('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x13cf6d);}['_handleNewSuggestionMarker'](_0x3642cc){const {id:_0x137a12,type:_0x361c78,subType:_0x320fb4,authorId:_0x8f6a9}=this['_splitMarkerName'](_0x3642cc),_0x4d6643=this['_suggestions']['get'](_0x137a12)||this['_createSuggestion'](_0x361c78,_0x320fb4,_0x137a12,_0x8f6a9,{});switch(this['_checkSuggestionCorrectness'](_0x4d6643,_0x361c78,_0x320fb4,_0x8f6a9),this['_suggestionState']['get'](_0x4d6643)){case'notReady':this['_getSuggestionData'](_0x137a12)['then'](_0x208131=>{let _0x142c3b=Promise['resolve']();_0x208131['hasComments']&&(_0x142c3b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x137a12})),_0x142c3b['then'](()=>{this['addSuggestionData'](_0x208131)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4d6643,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x137a12,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4d6643,'ready'),this['fire']('suggestionLoaded',_0x4d6643);break;case'ready':this['fire']('suggestionChanged',_0x4d6643);}return _0x4d6643['addMarkerName'](_0x3642cc),_0x4d6643;}['_refreshSuggestionsChain'](_0x12f983){const _0x514eb9=Array['from'](_0x12f983),_0x35a5a7=_0x514eb9['filter'](_0x1b3410=>'attribute'==_0x1b3410['type']);this['_refreshAttributeSuggestionsChain'](_0x35a5a7);const _0x416792=_0x514eb9['filter'](_0x1c07bb=>!_0x1c07bb['isMultiRange']&&'attribute'!=_0x1c07bb['type']),_0x1c81d4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30ca30=>!_0x30ca30['isMultiRange']&&'attribute'!=_0x30ca30['type']),_0x5b75e4=_0x1c81d4['filter'](_0x4f8110=>!_0x12f983['has'](_0x4f8110)),_0x47866c=new Map(_0x1c81d4['map'](_0x6db05d=>[_0x6db05d,this['_suggestionFactory']['getSuggestionCallback'](_0x6db05d['type'],_0x6db05d['subType'],'chain')])),_0x55d06e=new Map(_0x1c81d4['map'](_0x159f5d=>[_0x159f5d,_0x159f5d['getFirstRange']()])),_0x131800=new Set(),_0x3a6780=new Set();for(let _0x563073=0x0;_0x563073<_0x416792['length'];_0x563073++)_0x26b762(_0x416792[_0x563073],_0x416792,_0x563073+0x1);for(let _0x333341=0x0;_0x333341<_0x416792['length'];_0x333341++)_0x26b762(_0x416792[_0x333341],_0x5b75e4,0x0);const _0x4b465b=new Set();for(let _0x100f58=0x0;_0x100f58<_0x416792['length'];_0x100f58++){const _0x4892fa=_0x416792[_0x100f58];!_0x3a6780['has'](_0x4892fa)&&_0x4892fa['previous']&&(_0x4b465b['add'](_0x4892fa['previous']),_0x4892fa['previous']['next']===_0x4892fa&&(_0x4892fa['previous']['next']=null),_0x4892fa['previous']=null),!_0x131800['has'](_0x4892fa)&&_0x4892fa['next']&&(_0x4b465b['add'](_0x4892fa['next']),_0x4892fa['next']['previous']===_0x4892fa&&(_0x4892fa['next']['previous']=null),_0x4892fa['next']=null);}function _0x26b762(_0x1931e6,_0xfa4cb,_0x537b0f){for(let _0x11713a=_0x537b0f;_0x11713a<_0xfa4cb['length'];_0x11713a++){const _0x5376c6=_0x3f3216(_0x1931e6,_0xfa4cb[_0x11713a]);_0x5376c6&&(_0x5376c6[0x0]['next']=_0x5376c6[0x1],_0x5376c6[0x1]['previous']=_0x5376c6[0x0],_0x131800['add'](_0x5376c6[0x0]),_0x3a6780['add'](_0x5376c6[0x1]));}}function _0x3f3216(_0x5914c8,_0x53c129){if(_0x5914c8['author']['id']!==_0x53c129['author']['id'])return null;const _0x1d6524=_0x47866c['get'](_0x5914c8)(_0x5914c8,_0x53c129,_0x55d06e['get'](_0x5914c8),_0x55d06e['get'](_0x53c129));if(!_0x1d6524)return null;return _0x47866c['get'](_0x53c129)(_0x5914c8,_0x53c129,_0x55d06e['get'](_0x5914c8),_0x55d06e['get'](_0x53c129))?_0x1d6524[0x1]['commentThread']&&_0x1d6524[0x1]['commentThread']['length']?null:_0x1d6524:null;}_0x4b465b['size']&&this['_refreshSuggestionsChain'](_0x4b465b);}['_refreshAttributeSuggestionsChain'](_0x59e9e4){if(0x0==_0x59e9e4['length'])return;const _0x9a2e9b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3578f5=>'attribute'==_0x3578f5['type']&&_0x3578f5['_isDataLoaded']),_0xa1dd2d=[],_0x44d835=new Map();for(const _0x4f6799 of _0x9a2e9b){const _0x2dc84f=_0x3f9107(_0x4f6799['attributes']);_0x44d835['has'](_0x2dc84f)||(_0x44d835['set'](_0x2dc84f,_0xa1dd2d['length']),_0xa1dd2d['push']([]));const _0x1713bd=_0x44d835['get'](_0x2dc84f);_0xa1dd2d[_0x1713bd]['push'](_0x4f6799);}!(function(){_0xa1dd2d['sort']((_0x36a632,_0x493716)=>{const _0x2c4d65=_0x36a632[0x0]['createdAt'],_0x4c932b=_0x493716[0x0]['createdAt'];return _0x2c4d65==_0x4c932b?_0x36a632[0x0]['attributes']['groupId']<_0x493716[0x0]['attributes']['groupId']?-0x1:0x1:_0x2c4d65<_0x4c932b?-0x1:0x1;});for(const _0x27a352 of _0xa1dd2d)_0x27a352['sort']((_0x540ac7,_0x3f0b41)=>_0x540ac7['id']<_0x3f0b41['id']?-0x1:0x1);}());for(let _0xbec4de=0x0;_0xbec4de<_0xa1dd2d['length'];_0xbec4de++){if(0x0==_0xa1dd2d[_0xbec4de]['length'])continue;const _0x5c8f65=[];for(let _0x2931a9=_0xbec4de+0x1;_0x2931a9<_0xa1dd2d['length'];_0x2931a9++)0x0!=_0xa1dd2d[_0x2931a9]['length']&&_0x1902dc(_0xa1dd2d[_0xbec4de],_0xa1dd2d[_0x2931a9])&&_0x5c8f65['push'](_0x2931a9);for(const _0x21a55e of _0x5c8f65)_0xa1dd2d[_0xbec4de]=_0xa1dd2d[_0xbec4de]['concat'](_0xa1dd2d[_0x21a55e]),_0xa1dd2d[_0x21a55e]=[];}for(const _0x1fc868 of _0xa1dd2d)for(let _0x20da7a=0x0;_0x20da7a<_0x1fc868['length'];_0x20da7a++)_0x1fc868[_0x20da7a]['next']=_0x1fc868[_0x20da7a+0x1]||null;for(const _0xdbc104 of _0xa1dd2d)for(let _0x44705d=0x0;_0x44705d<_0xdbc104['length'];_0x44705d++)_0xdbc104[_0x44705d]['previous']=_0xdbc104[_0x44705d-0x1]||null;function _0x1902dc(_0x493ef1,_0x531cb4){if(_0x493ef1[0x0]['attributes']['groupId']!==_0x531cb4[0x0]['attributes']['groupId']&&_0x493ef1[0x0]['author']!==_0x531cb4[0x0]['author'])return!0x1;if(!function(_0x43b4f1,_0x345e17){if(!_0x43b4f1['hasComments']&&!_0x345e17['hasComments'])return!0x0;if(_0x43b4f1['hasComments']&&_0x345e17['hasComments'])return!0x1;if(_0x43b4f1['hasComments']&&_0x345e17['createdAt']<_0x43b4f1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x345e17['hasComments']&&_0x43b4f1['createdAt']<_0x345e17['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x493ef1[0x0],_0x531cb4[0x0]))return!0x1;const _0x5a9f28=Bt(_0x493ef1[0x0]['attributes'],'groupId'),_0x7ec892=Bt(_0x531cb4[0x0]['attributes'],'groupId');if(!_0xff7481(_0x5a9f28,_0x7ec892))return!0x1;return!!_0x493ef1['every'](_0x22f123=>_0x531cb4['some'](_0x58d596=>_0x22f123['getFirstRange']()['isEqual'](_0x58d596['getFirstRange']())))&&_0x531cb4['every'](_0x191a3c=>_0x493ef1['some'](_0x5256ae=>_0x191a3c['getFirstRange']()['isEqual'](_0x5256ae['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x123cc4){const _0x5a9b4d=Array['from'](_0x123cc4),_0x275ced=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2dee04=_0x275ced['filter'](_0x113c13=>!_0x123cc4['has'](_0x113c13)),_0x5a09b6=new Map(_0x5a9b4d['map'](_0xb9cc50=>[_0xb9cc50,this['_suggestionFactory']['getSuggestionCallback'](_0xb9cc50['type'],_0xb9cc50['subType'],'join')])),_0x3acc1e=new Map(_0x275ced['map'](_0x2c5f65=>[_0x2c5f65,_0x2c5f65['getRanges']()]));for(let _0x1d357b=0x0;_0x1d357b<_0x5a9b4d['length'];_0x1d357b++){if(_0x353fb6(this,_0x5a9b4d[_0x1d357b],_0x5a9b4d,_0x1d357b+0x1))return!0x0;}for(let _0x221d12=0x0;_0x221d12<_0x5a9b4d['length'];_0x221d12++){if(_0x353fb6(this,_0x5a9b4d[_0x221d12],_0x2dee04,0x0))return!0x0;}return!0x1;function _0x353fb6(_0x4bbd24,_0x553123,_0x1118a5,_0x33c687){for(let _0x4dd61a=_0x33c687;_0x4dd61a<_0x1118a5['length'];_0x4dd61a++){const _0x26a73f=_0x1118a5[_0x4dd61a];if(_0x26a73f['type']!==_0x553123['type']||_0x26a73f['author']['id']!==_0x553123['author']['id']||_0x26a73f['subType']!==_0x553123['subType'])continue;if(!Pt(_0x553123,_0x26a73f,['groupId']))continue;if('attribute'==_0x553123['type']&&_0x553123['data']['oldValue']!=_0x26a73f['data']['oldValue'])continue;if('attribute'==_0x553123['type']&&_0x4bbd24['_isBlockAttribute'](_0x553123['data']['key']))continue;if('formatBlock'==_0x553123['type']){const _0x173a11=_0x4bbd24['editor']['model'],_0x273ced=_0x553123['getContainedElement']();if(_0x273ced&&(_0x173a11['schema']['isObject'](_0x273ced)||_0x173a11['schema']['isLimit'](_0x273ced)))continue;}const _0x1a335c=_0x5a09b6['get'](_0x553123),_0x550c4d=_0x3acc1e['get'](_0x553123),_0xd27484=_0x3acc1e['get'](_0x26a73f),_0x5448fc=_0x553123['commentThread']&&_0x553123['commentThread']['length'],_0x536ce4=_0x26a73f['commentThread']&&_0x26a73f['commentThread']['length'];if(!_0x5448fc&&_0x1a335c(_0xd27484,_0x550c4d))return _0x4bbd24['_joinSuggestions'](_0x26a73f,_0x553123),_0x3acc1e['delete'](_0x553123),!0x0;if(!_0x536ce4&&_0x1a335c(_0x550c4d,_0xd27484))return _0x4bbd24['_joinSuggestions'](_0x553123,_0x26a73f),_0x3acc1e['delete'](_0x26a73f),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa48710,_0x7b147){if(_0xa48710['isMultiRange']){for(const _0x3df978 of _0x7b147['getRanges']())_0xa48710['addRange'](_0x3df978);}else{const _0x3eb7f5=_0x7b147['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa48710,this['_model']['createRange'](_0xa48710['getFirstRange']()['start'],_0x3eb7f5));}_0x7b147['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3dbd0f,_0x4b7160){const _0x1ecab5=_0x3dbd0f['startsWith']('format')||_0x3dbd0f['startsWith']('attribute')?'FORMATTING':_0x3dbd0f['toUpperCase']();return o(this['editor']['locale'],_0x4b7160+'_'+_0x1ecab5+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x87edf9=this['editor'];if(!_0x87edf9['ui'])return;const {ariaLiveAnnouncer:_0x2c3693}=_0x87edf9['ui'];_0x2d64d8(this['_model'],({left:_0x8040f5,entered:_0x391bfd})=>{for(const _0x262dc3 of _0x8040f5){const {group:_0x47f266,type:_0x34cb3c}=this['_splitMarkerName'](_0x262dc3['name']);if('suggestion'===_0x47f266){_0x2c3693['announce'](this['_getMarkerAnnouncementText'](_0x34cb3c,'LEAVE'));break;}}for(const _0x5e21d4 of _0x391bfd){const {group:_0x50e7cb,type:_0x5436cd}=this['_splitMarkerName'](_0x5e21d4['name']);if('suggestion'===_0x50e7cb){_0x2c3693['announce'](this['_getMarkerAnnouncementText'](_0x5436cd,'ENTER'));break;}}});}['_processAttributeChanges'](_0x34fede){if(this['_recordAttributeSuggestions'])return!0x1;const _0x19a7f1=this['editor'],_0x49caab=_0x19a7f1['model']['document']['differ']['getChanges']();if(0x0==_0x49caab['length'])return!0x1;const _0x4eabd3=[],_0x303977=_0x49caab['filter'](_0x42fa10=>'attribute'==_0x42fa10['type']),_0x20da69=_0x49caab['filter'](_0xfa9ad3=>'insert'==_0xfa9ad3['type']&&'$text'!=_0xfa9ad3['name']),_0x21410f=_0x49caab['filter'](_0x164732=>'remove'==_0x164732['type']&&'$text'!=_0x164732['name']);for(const _0x22707d of _0x303977)_0x4eabd3['push']({'key':_0x22707d['attributeKey'],'newValue':_0x22707d['attributeNewValue'],'oldValue':_0x22707d['attributeOldValue'],'range':Ot(_0x22707d['range'],_0x19a7f1['model'])});for(const _0x1e0e02 of _0x20da69){const _0x3662f7=_0x21410f['find'](_0x4d7311=>_0x4d7311['position']['isEqual'](_0x1e0e02['position']));_0x3662f7&&_0x4eabd3['push']({'key':m,'newValue':_0x1e0e02['name'],'oldValue':_0x3662f7['name'],'range':_0x19a7f1['model']['createRangeOn'](_0x1e0e02['position']['nodeAfter'])});}return 0x0!=_0x4eabd3['length']&&this['_reduceExistingSuggestions'](_0x34fede,_0x4eabd3);}['_processAttributeSuggestions'](_0xeaf102){let _0x1f1a6c=!0x1;const _0x41570f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1feb91=>_0x1feb91['data']['newRange']&&_0x1feb91['name']['startsWith']('suggestion:attribute:'));for(const _0x568200 of _0x41570f){const {subType:_0x3736b5,id:_0x7b23b5}=this['_splitMarkerName'](_0x568200['name']),_0x3bfa7a=_0x3736b5['split']('|')[0x0];for(const _0x1741c4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1741c4['id']!=_0x7b23b5&&'attribute'==_0x1741c4['type']&&_0x1741c4['data']&&_0x1741c4['data']['key']==_0x3bfa7a&&_0x1741c4['getFirstRange']()['isIntersecting'](_0x568200['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1741c4,_0x568200['data']['newRange'],_0xeaf102),_0x1f1a6c=!0x0);}return _0x1f1a6c;}['_recordAttributeChanges'](_0x1d3361){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1d3361();}['_isRegisteredAttribute'](_0x15672b){const _0x436ded=this['_isBlockAttribute'](_0x15672b),_0x487989=this['_inlineAttributeKeys']['has'](_0x15672b);return _0x436ded||_0x487989;}['_reduceExistingSuggestions'](_0x1daa0f,_0x2096cf){if(0x0==_0x2096cf['length'])return!0x1;let _0x4af9ad=!0x1;for(const _0x53fe0d of _0x2096cf){const _0x3a5dce=this['_findSuggestions'](_0x53fe0d['range'],'attribute')['filter'](_0x1000b3=>!_0x1000b3['meta']['isNextTo'])['map'](_0x2b16c9=>_0x2b16c9['suggestion']),_0x240cf2=_0x3f9107({'newValue':_0x53fe0d['newValue']});_0x3a5dce['filter'](_0x43d1c5=>{const [_0x2074a4,_0x7837b1]=_0x43d1c5['subType']['split']('|');return _0x2074a4==_0x53fe0d['key']&&_0x7837b1!=_0x240cf2;})['forEach'](_0x398e46=>{this['_reduceSuggestionAttributeRange'](_0x398e46,_0x53fe0d['range'],_0x1daa0f),_0x4af9ad=!0x0;});}return _0x4af9ad;}['_reduceSuggestionAttributeRange'](_0x46b12e,_0x93c83,_0x22c414){const _0x1cac97=_0x46b12e['getFirstRange']()['getDifference'](_0x93c83);0x0!==_0x1cac97['length']?0x1!==_0x1cac97['length']?this['_breakSuggestionMarker'](_0x46b12e,_0x93c83['start'],_0x93c83['end']):this['_setSuggestionRange'](_0x46b12e,_0x1cac97[0x0]):_0x22c414['removeMarker'](_0x46b12e['getFirstMarker']());}constructor(_0x5a0f6c){function _0x23e7cb(_0xda98a1){return _0xda98a1['map'](_0x38514d=>String['fromCharCode'](_0x38514d))['join']('');}super(_0x5a0f6c),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xdc5ddb,_0x18aa18,_0x8f99af,_0x21c44a)=>{this['_model']['change'](()=>{for(const _0x744d4 of[..._0x21c44a,..._0x8f99af])this['_model']['markers']['has'](_0x744d4)&&_0x5a0f6c['editing']['reconvertMarker'](_0x744d4);});}),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']=_0x5a0f6c['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(),_0x5a0f6c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5a0f6c['config']['get']('trackChanges.trackFormatChanges'),_0x5a0f6c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5a0f6c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5a0f6c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x23e7cb([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x23e7cb([0x34,0x30,0x34,0x38,0x31,0x30,0x31,0x36]);}}class xt{['buildSuggestion'](_0x14cec0,_0x30df9d,_0x282fb0,_0x5b2bf4,_0x494217,_0x14fa89){return new u(this['_model'],{'type':_0x14cec0,'subType':_0x30df9d,'id':_0x282fb0,'author':_0x5b2bf4,'creator':_0x5b2bf4,'attributes':_0x494217,'onAttributesChange':_0x14fa89,'onAccept':(..._0x374b18)=>this['getSuggestionCallback'](_0x14cec0,_0x30df9d,'accept')(..._0x374b18),'onDiscard':(..._0x3eef83)=>this['getSuggestionCallback'](_0x14cec0,_0x30df9d,'discard')(..._0x3eef83)});}['registerCustomCallback'](_0x54cbdb,_0x5a086a,_0x4f3c8b,_0x19324c){const _0xf14491=_0x54cbdb+':'+_0x5a086a+':'+_0x4f3c8b;this['_customCallbacks']['set'](_0xf14491,_0x19324c);}['getSuggestionCallback'](_0x175c43,_0x41f4bd,_0x2269be){const _0x24e86b=_0x175c43+':'+_0x41f4bd+':'+_0x2269be;return this['_customCallbacks']['get'](_0x24e86b)||this['_defaultCallbacks']['get'](_0x175c43+':'+_0x2269be);}['_registerDefaultCallbacks'](){const _0x52e900=()=>!0x1,_0x49e27c=_0x4cb72f=>{_0x4cb72f['sort']((_0x2aebc2,_0x54bbe1)=>_0x2aebc2['start']['isBefore'](_0x54bbe1['start'])?0x1:-0x1),this['_model']['change'](_0x1106b1=>{for(const _0x23e17c of _0x4cb72f){let _0x260d47;_0x260d47=_0x23e17c['end']['isAtEnd']&&_0x23e17c['end']['parent']==_0x23e17c['start']['nodeAfter']?_0x1106b1['createSelection'](_0x23e17c['start']['nodeAfter'],'on'):_0x1106b1['createSelection'](_0x23e17c),this['_model']['deleteContent'](_0x260d47,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3801f2=(_0x4cdaca,_0x448bb7)=>{_0x448bb7&&this['_model']['change'](_0x784e8e=>{const {commandName:_0x3ce351,commandParams:_0x12d515=[]}=_0x448bb7,_0x514281=_0x4cdaca['map'](_0x2b57e1=>(Tt(_0x2b57e1)&&(_0x2b57e1=this['_model']['createRange'](_0x2b57e1['end'])),_0x2b57e1))['filter'](_0x2cbd=>'$graveyard'!==_0x2cbd['root']['rootName']);if(_0x514281['length']<0x1)return;const _0x289197=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3940c4=>_0x5beaf3['fromRange'](_0x3940c4));_0x784e8e['setSelection'](_0x514281);for(const _0x495e9a of this['_editor']['commands']['commands']())_0x495e9a['refresh']();_0x12d515['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3ce351,..._0x12d515);const _0x42afa5=_0x289197['filter'](_0x45a05e=>'$graveyard'!=_0x45a05e['root']['rootName']);_0x42afa5['length']>0x0&&_0x784e8e['setSelection'](_0x42afa5);for(const _0x223c83 of _0x289197)_0x223c83['detach']();});},_0x437670=(_0x1dde57,_0xb3cc44)=>0x1==_0x1dde57['length']&&0x1==_0xb3cc44['length']&&_0x1dde57[0x0]['end']['isEqual'](_0xb3cc44[0x0]['start']),_0x3c5ca5=(_0x3fbaef,_0x374fbb,_0x5c14c2,_0x3e5e9b)=>Gt(_0x3fbaef,_0x374fbb,_0x5c14c2,_0x3e5e9b,this['_model'])?[_0x3fbaef,_0x374fbb]:Gt(_0x374fbb,_0x3fbaef,_0x3e5e9b,_0x5c14c2,this['_model'])?[_0x374fbb,_0x3fbaef]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52e900),this['_defaultCallbacks']['set']('insertion:discard',_0x49e27c),this['_defaultCallbacks']['set']('insertion:join',_0x437670),this['_defaultCallbacks']['set']('insertion:chain',_0x3c5ca5),this['_defaultCallbacks']['set']('deletion:accept',_0x49e27c),this['_defaultCallbacks']['set']('deletion:discard',_0x52e900),this['_defaultCallbacks']['set']('deletion:join',_0x437670),this['_defaultCallbacks']['set']('deletion:chain',_0x3c5ca5),this['_defaultCallbacks']['set']('formatInline:accept',_0x3801f2),this['_defaultCallbacks']['set']('formatInline:discard',_0x52e900),this['_defaultCallbacks']['set']('formatInline:join',_0x437670),this['_defaultCallbacks']['set']('formatInline:chain',_0x52e900),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3801f2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52e900),this['_defaultCallbacks']['set']('formatBlock:join',_0x437670),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52e900),this['_defaultCallbacks']['set']('attribute:accept',_0x52e900),this['_defaultCallbacks']['set']('attribute:discard',(_0x2c54b7,_0x3c48bb)=>{if(!_0x3c48bb)return;const _0x1fc7b1=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1f98fe=>{if(_0x3c48bb['key']==m)for(const _0x3a4759 of _0x2c54b7){const _0x2110ec=_0x3a4759['start']['nodeAfter'],_0x5c00b9=_0x3c48bb['oldValue'];_0x1f98fe['rename'](_0x2110ec,_0x5c00b9);}else{if(_0x1fc7b1['_isBlockAttribute'](_0x3c48bb['key'])){for(const _0x44576a of _0x2c54b7)void 0x0!==_0x3c48bb['oldValue']?_0x1f98fe['setAttribute'](_0x3c48bb['key'],_0x3c48bb['oldValue'],_0x44576a['start']['nodeAfter']):_0x1f98fe['removeAttribute'](_0x3c48bb['key'],_0x44576a['start']['nodeAfter']);}else{for(const _0x1f1514 of _0x2c54b7)_0x3c48bb['oldValue']?_0x1f98fe['setAttribute'](_0x3c48bb['key'],_0x3c48bb['oldValue'],_0x1f1514):_0x1f98fe['removeAttribute'](_0x3c48bb['key'],_0x1f1514);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x437670);}constructor(_0x515bab){this['_editor']=_0x515bab,this['_model']=_0x515bab['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x5e9cab,_0x4c3c36,_0x4252b6){for(const _0x5edd84 of _0x4c3c36['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5edd84['root']==_0x5edd84)return!0x1;if(!_0x4252b6['containsItem'](_0x5edd84))return!0x1;if(_0x5e9cab['isObject'](_0x5edd84)||_0x5e9cab['isLimit'](_0x5edd84))return!0x0;}return!0x1;}function Tt(_0x1328fe){return _0x1328fe['end']['parent']==_0x1328fe['start']['nodeAfter']&&_0x1328fe['end']['isAtStart'];}function Et(_0x460824,_0x30aa8a,_0x1e2cfd,_0x463f5a){const _0x433cb4=_0xdf8186=>!_0xdf8186['item']['is']('$textProxy')&&!_0x463f5a['isObject'](_0xdf8186['item']),_0x2d1040=_0x460824['start']['getLastMatchingPosition'](_0x433cb4),_0x469779=_0x460824['end']['getLastMatchingPosition'](_0x433cb4,{'direction':'backward'});return(!_0x460824['start']['isEqual'](_0x2d1040)||!_0x460824['end']['isEqual'](_0x469779))&&(_0x2d1040['isBefore'](_0x469779)?_0x1e2cfd['updateMarker'](_0x30aa8a,{'range':_0x1e2cfd['createRange'](_0x2d1040,_0x469779)}):_0x1e2cfd['removeMarker'](_0x30aa8a),!0x0);}function Vt(_0x373bbd){return _0x3f9107(_0x373bbd);}function Ut(_0x114c2b){const _0x23ef20=_0x114c2b['start']['nodeAfter'];return _0x23ef20&&_0x23ef20['is']('element');}function Ot(_0x3ec03,_0x442ba7){return null==_0x3ec03['end']['nodeBefore']&&_0x3ec03['end']['parent']==_0x3ec03['start']['nodeAfter']?Ft(_0x3ec03['start']['nodeAfter'],_0x442ba7):_0x3ec03;}function Ft(_0x4863b0,_0x43d69c){const _0x1e496f=_0x43d69c['schema']['isObject'](_0x4863b0)||_0x43d69c['schema']['isSelectable'](_0x4863b0);return _0x43d69c['createRange'](_0x43d69c['createPositionAt'](_0x4863b0,'before'),_0x1e496f?_0x43d69c['createPositionAfter'](_0x4863b0):_0x43d69c['createPositionAt'](_0x4863b0,'end'));}function Gt(_0x35096d,_0x491e2f,_0x5b2614,_0x5d4011,_0x91d2f2){if(!Pt(_0x35096d,_0x491e2f))return!0x1;if(_0x5b2614['end']['isEqual'](_0x5d4011['start']))return!0x0;if(_0x35096d['type']!=_0x491e2f['type'])return!0x1;if(!_0x5b2614['end']['isTouching'](_0x5d4011['start']))return!0x1;const _0x5463ba=_0x91d2f2['createRange'](_0x5b2614['end'],_0x5d4011['start'])['getWalker']();for(const _0x1dff20 of _0x5463ba)if(['elementStart','elementEnd']['includes'](_0x1dff20['type'])&&_0x91d2f2['schema']['isLimit'](_0x1dff20['item']))return!0x1;return!0x0;}function Pt(_0x36ee34,_0x2fd992,_0x935ed5=[]){return!(!_0x36ee34['_isDataLoaded']||!_0x2fd992['_isDataLoaded'])&&_0xff7481(Bt(_0x36ee34['attributes'],_0x935ed5),Bt(_0x2fd992['attributes'],_0x935ed5));}function Lt(_0x540316,_0x55b8d9){const _0x3e82af=Ht(_0x540316['attributes']),_0x3837ce=Ht(_0x55b8d9);if(!_0x540316['_isDataLoaded'])return!0x1;for(const _0x56d385 of Object['keys'](_0x3837ce))if(!_0xff7481(_0x3e82af[_0x56d385],_0x3837ce[_0x56d385]))return!0x1;return!0x0;}function Ht(_0x2daf52){const _0x439da8=Object['assign']({},_0x2daf52);return delete _0x439da8['skipNestingCheck'],delete _0x439da8['tablePasteChainId'],_0x439da8;}class oe extends _0x1ac91a(){['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 _0x162972=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x162972);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x59e60f,_0x2bc726,_0x5cf847,_0x509306){super(),this['model']=_0x2bc726,this['view']=_0x5cf847,this['commentThreadController']=_0x509306,this['_editor']=_0x59e60f,this['_acceptCommand']=_0x59e60f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x59e60f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4cab7d,_0x20e8bc)=>_0x4cab7d||_0x20e8bc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xe8b95d=>_0xe8b95d&&this['_editor']['model']['canEditAt'](_0x2bc726['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x29b8ed=>_0x29b8ed&&this['_editor']['model']['canEditAt'](_0x2bc726['getRanges']())),this['_pendingAction']=null,_0x5cf847['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5cf847,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5cf847,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5cf847,'change:isDirty',()=>{_0x5cf847['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x2824a1{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x592588}=this['_config'];this['commentsListView']=new _0x592588(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',_0x45a5d9=>_0x45a5d9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x13f3f4,_0x478eb3)=>_0x13f3f4||!!_0x478eb3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x133d10}=this['_config'],_0x14d64d=new _0x133d10(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3d1dbc=_0x14d64d['commentInputView'];return _0x14d64d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3d1dbc,'value',(_0x3c04c9,_0x2d5e8b,_0x7a77a5)=>!!_0x7a77a5||_0x3c04c9&&!_0x2d5e8b),_0x3d1dbc['on']('submit',(_0x25564c,_0x3b2fcf)=>{this['fire']('addComment',_0x3b2fcf),_0x3d1dbc['editor']['setData']('');}),_0x3d1dbc['on']('cancel',()=>this['focus']()),_0x3d1dbc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x14d64d;}constructor(_0x15fd5b,_0x13d021,_0x5c1518,_0x1d0574){super(_0x15fd5b),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x13d021['authoredAt']),this['bind']('authoredAt')['to'](_0x13d021),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x13d021,this['_localUser']=_0x5c1518,this['_config']=_0x1d0574,_0x1d0574['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x3aacca=this['bindTemplate'],_0x203665=[{'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':_0x3aacca['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3aacca['to']('authoredAt',_0x13e2f=>this['_config']['formatDateTime'](_0x13e2f))}]}]},{'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']&&_0x203665['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3e94fb={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3aacca['if']('isActive','ck-suggestion-wrapper--active'),_0x3aacca['to']('type',_0x1af4de=>'ck-suggestion-'+_0x1af4de),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':_0x203665}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3e94fb['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)),_0x3e94fb;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2abd58,_0x3c4eb9,_0x96eeae)=>{this['_descriptionElement']['innerHTML']=_0x96eeae;});}['_createButton'](_0xbc1b20,_0x18d629,_0x56fe1e,_0x7b43b9,_0x3acbc9){const _0x27b760=new _0xc95469(this['locale']);return _0x27b760['set']({'label':_0xbc1b20,'icon':_0x18d629,'tooltip':!0x0,'tooltipPosition':_0x3acbc9}),_0x27b760['extendTemplate']({'attributes':{'class':_0x56fe1e}}),_0x27b760['on']('execute',()=>{this['fire'](_0x7b43b9,this['_model']['id']);}),_0x27b760;}['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(_0x317aa2,_0xdda529,_0xff914d,_0x5146ac){super(_0x317aa2,_0xdda529,_0xff914d,_0x5146ac),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xd491dd=>_0xd491dd&&_0xd491dd[0x0]?_0xd491dd[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x447eca,_0x1e1e20)=>{let _0x204ea0='';for(const _0x35f8f1 of _0x447eca)_0x204ea0+='<p>'+ds(_0x35f8f1['content'],_0x35f8f1['color'])+'</p>';return _0x1e1e20?_0x204ea0:_0x258e73(_0x204ea0,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x317aa2,'Accept\x20suggestion'),_0x2802c7['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x317aa2,'Discard\x20suggestion'),_0x2802c7['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4f4756(_0x317aa2,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x299311,_0x4364b9){let _0x517c00='';return _0x517c00+=_0x299311['split']('*')['map']((_0x39b91c,_0x9b535f)=>_0x9b535f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x39b91c)+'</span>':us(_0x39b91c))['join'](''),_0x4364b9&&(_0x517c00+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4364b9['value']+'\x22\x20title=\x22'+_0x4364b9['title']+'\x22></span>'),_0x517c00;}function us(_0x3f7ac2){const _0x9a74f5=document['createElement']('span');return _0x9a74f5['innerText']=_0x3f7ac2,_0x9a74f5['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 _0x38f362{static get['requires'](){return[p,_0x16f500,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x6118f6,_0x4b1563){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x33b660,_0x45de56]of this['_handleControllerBuffer']){const _0x59237d=this['_suggestionToController']['has'](_0x33b660);_0x59237d||_0x45de56?_0x59237d&&_0x45de56&&this['_destroyController'](_0x33b660):this['_initializeController'](_0x33b660);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x6118f6,_0x4b1563);}['init'](){const _0x412a43=this['editor'],_0x6cdfcb=_0x412a43['plugins']['get']('TrackChangesEditing'),_0x1fedf8=_0x412a43['plugins']['get']('Annotations'),_0x3ba55c=_0x412a43['plugins']['get']('EditorAnnotations'),_0x84c072=_0x412a43['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3ba55c['addSourceCollector'](()=>{const _0x7e11cb=[];for(const [_0x22da16,_0x26b178]of Array['from'](this['_suggestionToController'])){const _0x4f3af6=_0x22da16['getAllAdjacentSuggestions'](),_0x1f63e0=[];for(const _0x2edd1e of _0x4f3af6){if(!_0x2edd1e['isInContent'])continue;if(_0x2edd1e['isMultiRange']){_0x1f63e0['push'](..._0x2edd1e['getRanges']());continue;}const _0x1a2815=_0x2edd1e['getFirstRange']();if(_0x1f63e0['length']>0x0){const _0x1b8dc9=_0x1f63e0[0x0]['getJoined'](_0x1a2815);if(_0x1b8dc9){_0x1f63e0[0x0]=_0x1b8dc9;continue;}}_0x1f63e0['push'](_0x1a2815);}_0x7e11cb['push']([_0x26b178['view'],_0x1f63e0]);}return _0x7e11cb;}),this['listenTo'](_0x6cdfcb,'suggestionLoaded',(_0x59801e,_0x3e042c)=>{this['listenTo'](_0x3e042c,'change:previous',(_0x8a7772,_0x5ab771,_0x2fd3da,_0xc5d0f5)=>{_0x3e042c['isInContent']&&(null==_0x2fd3da?(this['_updateController'](_0xc5d0f5['head']),this['_handleSuggestionControllerDelayed'](_0x3e042c,!0x1)):(this['_updateController'](_0x2fd3da['head']),null==_0xc5d0f5&&this['_handleSuggestionControllerDelayed'](_0x3e042c,!0x0)));}),null!==_0x3e042c['previous']?this['_updateController'](_0x3e042c['head']):this['_handleSuggestionControllerDelayed'](_0x3e042c,!0x1);}),this['listenTo'](_0x6cdfcb,'suggestionUnloaded',(_0x48c458,_0x37912b,_0x1475bf)=>{this['stopListening'](_0x37912b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x37912b),this['_suggestionToController']['has'](_0x37912b)&&this['_destroyController'](_0x37912b),_0x1475bf&&this['_updateController'](_0x1475bf['head']);}),this['listenTo'](_0x6cdfcb,'suggestionChanged',(_0x1a4e11,_0x4cc859)=>{this['_updateController'](_0x4cc859);}),this['listenTo'](_0x1fedf8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x84c072,'addComment',(_0x1e7d2f,{threadId:_0x31a60e,isFromAdapter:_0x1de3d0})=>{if(_0x1de3d0||!_0x6cdfcb['hasSuggestion'](_0x31a60e))return;const _0x58b9f1=_0x6cdfcb['getSuggestion'](_0x31a60e);this['_suggestionToController']['get'](_0x58b9f1)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1cd18d=this['editor']['plugins']['get']('Annotations'),_0x2cb7f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a9d69=Array['from'](_0x1cd18d['activeAnnotations'],_0x53ffe3=>_0x53ffe3['innerView'])['filter'](_0x210454=>this['_viewToController']['has'](_0x210454)),_0x4e5ff7=[];for(const _0x35d09b of _0x3a9d69){const _0x48f848=this['_viewToController']['get'](_0x35d09b)['model']['getAllAdjacentSuggestions']();_0x4e5ff7['push'](..._0x48f848['reduce']((_0x5d9424,_0x4242ad)=>[..._0x5d9424,..._0x4242ad['getMarkerNames']()],[]));}_0x2cb7f2['activeMarkers']=_0x4e5ff7;}['_addUIComponentsToFactory'](){const _0x5684a9=this['editor'],_0xfb25de=_0x5684a9['locale'],_0x4bccf9=o(_0xfb25de,'Track\x20changes'),_0x44a5b4=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x4bccf9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xfb25de,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xfb25de,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xfb25de,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xfb25de,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1ebd83 of _0x44a5b4)if(ae(_0x1ebd83)){const _0x4d4432=_0x5684a9['commands']['get'](_0x1ebd83['model']['commandName']);_0x1ebd83['model']['bind']('isOn','isEnabled')['to'](_0x4d4432,'value','isEnabled');}_0x5684a9['ui']['componentFactory']['add']('trackChanges',_0x10be28=>this['_createToolbarButton'](_0x10be28,_0x44a5b4,_0x4bccf9)),_0x5684a9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x42edce=>this['_createMenuBarMenu'](_0x42edce,_0x44a5b4,_0x4bccf9));}['_createToolbarButton'](_0x5b8e5d,_0x461fee,_0x37ead2){const _0x9fa4d0=zt(_0x5b8e5d,Zt),_0x1e5f4d=this['editor']['commands']['get']('trackChanges');_0x9fa4d0['buttonView']['set']({'tooltip':_0x37ead2,'label':_0x37ead2,'icon':ie}),_0x9fa4d0['buttonView']['bind']('isOn')['to'](_0x1e5f4d,'value'),_0x9fa4d0['buttonView']['on']('execute',()=>{_0x1e5f4d['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x9fa4d0,_0x461fee,{'role':'menu'});const _0xf06937=[];for(const _0x3bd5c1 of _0x461fee)ae(_0x3bd5c1)&&_0xf06937['push'](this['editor']['commands']['get'](_0x3bd5c1['model']['commandName']));const _0x475978=_0x9fa4d0['buttonView'];return _0x475978['actionView']['unbind']('isEnabled'),_0x475978['arrowView']['unbind']('isEnabled'),_0x475978['actionView']['bind']('isEnabled')['to'](_0x1e5f4d,'isEnabled'),_0x475978['arrowView']['bind']('isEnabled')['toMany'](_0xf06937,'isEnabled',(..._0x4126af)=>_0x4126af['some'](_0x14c388=>_0x14c388)),_0x9fa4d0['on']('execute',_0x29ef9e=>{this['editor']['execute'](_0x29ef9e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x9fa4d0;}['_createMenuBarMenu'](_0x3aa75a,_0x22e0b1,_0x4a3793){const _0x1df5b4=new Kt(_0x3aa75a),_0x2d75ae=this['editor']['commands']['get']('trackChanges');_0x1df5b4['buttonView']['set']({'label':_0x4a3793,'icon':ie});const _0x5b44a6=new Qt(_0x3aa75a);for(const _0x1753cb of _0x22e0b1){if('separator'==_0x1753cb['type']){_0x5b44a6['items']['add'](new Jt(_0x3aa75a));continue;}const _0x422047=new Xt(_0x3aa75a,_0x1df5b4),_0x50ace4=new Yt(_0x3aa75a),_0x1eb6bb=_0x1753cb['model'];_0x50ace4['bind'](...Object['keys'](_0x1eb6bb))['to'](_0x1eb6bb),_0x50ace4['delegate']('execute')['to'](_0x1df5b4),_0x50ace4['on']('execute',()=>{this['editor']['execute'](_0x1eb6bb['commandName']),this['editor']['editing']['view']['focus']();}),_0x422047['children']['add'](_0x50ace4),_0x5b44a6['items']['add'](_0x422047);}return _0x1df5b4['bind']('isEnabled')['to'](_0x2d75ae,'isEnabled'),_0x1df5b4['panelView']['children']['add'](_0x5b44a6),_0x1df5b4;}['_initializeController'](_0x34a8c1){const _0x4330b3=this['editor'],_0x16e004=_0x4330b3['config'],_0x38c32f=_0x4330b3['plugins']['get']('Annotations'),_0x2cae7e=_0x4330b3['plugins']['get']('CommentsRepository'),_0x203507=_0x4330b3['plugins']['get']('EditorAnnotations'),_0xf840eb=_0x4330b3['plugins']['get'](_0x16f500)['me'],_0x329e21=_0x16e004['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x13ef67,CommentThreadInputView:_0xa7a0ee}=_0x4330b3['plugins']['get']('CommentsUI');let _0x3d0835,_0x46e1a1;this['_annotationViews']['has'](_0x34a8c1['id'])?(_0x46e1a1=this['_annotationViews']['get'](_0x34a8c1['id']),_0x3d0835=_0x46e1a1['mainView']):(_0x3d0835=new _0x329e21(_0x4330b3['locale'],_0x34a8c1,_0xf840eb,{'disableComments':this['_disableComments'],'editorConfig':_0x16e004['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x16e004['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x16e004['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x16e004['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3e3567(_0x16e004['get']('locale')),'CommentView':_0x16e004['get']('comments')['CommentView'],'CommentsListView':_0x13ef67,'CommentThreadInputView':_0xa7a0ee}),_0x3d0835['acceptButton']['on']('execute',()=>{_0x4330b3['editing']['view']['focus']();}),_0x3d0835['discardButton']['on']('execute',()=>{_0x4330b3['editing']['view']['focus']();}),_0x46e1a1=_0x38c32f['createAnnotationView'](this['editor']['locale'],_0x3d0835),_0x46e1a1['bind']('isDirty')['to'](_0x3d0835,'isDirty'),_0x46e1a1['bind']('length')['to'](_0x3d0835),_0x46e1a1['bind']('type')['to'](_0x3d0835,'type',_0x54a71a=>'suggestion-'+_0x54a71a),this['_annotationViews']['set'](_0x34a8c1['id'],_0x46e1a1));const _0x46ec48=_0x2cae7e['createCommentThreadController'](_0x34a8c1['commentThread'],_0x3d0835),_0xd21f9f=new oe(_0x4330b3,_0x34a8c1,_0x3d0835,_0x46ec48),_0x45ebf4=_0x34a8c1['getAllAdjacentSuggestions']()['filter'](_0x29f739=>_0x29f739['isInContent']);_0x3d0835['descriptionParts']=_0x4330b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x45ebf4),this['_suggestionToController']['set'](_0x34a8c1,_0xd21f9f),this['_viewToController']['set'](_0x3d0835,_0xd21f9f);const _0x59be3b=_0x38c32f['createAnnotation']({'view':_0x46e1a1,'target':()=>{const _0x1403ed=[],_0x23927a=_0x34a8c1['getAllAdjacentSuggestions']()['filter'](_0x2bf7eb=>_0x2bf7eb['isInContent']);for(const _0x5d2008 of _0x23927a)_0x1403ed['push'](..._0x5d2008['getMarkers']());return _0x33a426(_0x4330b3['editing'],_0x1403ed);},'type':()=>'suggestion-'+_0xd21f9f['view']['type']});_0x2cae7e['_bindAnnotationToEditors'](_0x3d0835,_0x59be3b),_0x38c32f['add'](_0x59be3b),_0x203507['registerAnnotation'](_0x59be3b);}['_destroyController'](_0x3a4035){const _0x21835b=this['editor']['plugins']['get']('CommentsRepository'),_0x56716f=this['editor']['plugins']['get']('Annotations'),_0x230f35=this['_suggestionToController']['get'](_0x3a4035),_0x441ab4=_0x230f35['view'],_0x27b366=_0x56716f['getByInnerView'](_0x441ab4);_0x21835b['_unbindEditors'](_0x441ab4),_0x27b366&&_0x56716f['remove'](_0x27b366),this['_suggestionToController']['delete'](_0x3a4035),this['_viewToController']['delete'](_0x441ab4),_0x230f35['destroy']();}['_updateController'](_0x1f6fc8){if(!_0x1f6fc8['isInContent']||!this['_suggestionToController']['has'](_0x1f6fc8))return;const _0x4b1fb9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b8f76=this['_suggestionToController']['get'](_0x1f6fc8),_0x10e70f=_0x1f6fc8['getAllAdjacentSuggestions']();_0x2b8f76['view']['descriptionParts']=_0x4b1fb9['descriptionFactory']['getDescriptions'](_0x10e70f);}['destroy'](){for(const _0x1d26fa of this['_suggestionToController']['keys']())this['_destroyController'](_0x1d26fa);for(const _0x2110fd of this['_annotationViews']['values']())_0x2110fd['mainView']['destroy']();super['destroy']();}constructor(_0x363f6d){super(_0x363f6d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3a42cf=this['editor']['config'];_0x3a42cf['define']('trackChanges.SuggestionThreadView',ne),_0x3a42cf['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3a42cf['get']('trackChanges.disableComments');}}function ae(_0x118feb){return'model'in _0x118feb;}class k extends _0x38f362{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3e389e){this['editor']['plugins']['get'](p)['adapter']=_0x3e389e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d4c96){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d4c96);}['getSuggestions']({skipNotAttached:_0x4c98dc=!0x1,toJSON:_0x50be77=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4c98dc,'toJSON':_0x50be77});}['getSuggestion'](_0x2beed1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2beed1);}}const T=['Pagination'];class P extends _0x38f362{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2b0268=this['editor'];if(_0x2b0268['config']['define']('trackChangesData.editorCreator',_0x361c6c=>{const _0x1b7e6f=_0x2b0268['model']['document']['getRootNames']()['reduce']((_0x46f073,_0x93afa9)=>(_0x46f073[_0x93afa9]='',_0x46f073),{});return _0x2b0268['constructor']['create'](_0x1b7e6f,_0x361c6c);}),'function'!=typeof _0x2b0268['config']['get']('trackChangesData')['editorCreator'])throw new _0x5a5bfe('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x43a990){return N(this['editor'],!0x0,_0x43a990);}['getDataWithDiscardedSuggestions'](_0x50ace5){return N(this['editor'],!0x1,_0x50ace5);}}class D extends _0x38f362{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(_0x21c3cb){super(_0x21c3cb),this['result']='end';}}function v(_0x5bae32){return void 0x0!==_0x5bae32['getRootsAttributes'];}async function N(_0x2ffa00,_0x4ffcd5,_0x22f8f7){const _0x30442d=_0x384e2b(_0x2ffa00,T);_0x30442d['plugins']['push'](p,D),_0x30442d['rootsAttributes']=v(_0x2ffa00)?_0x2ffa00['getRootsAttributes']():void 0x0;const _0x3e40ec=document['createDocumentFragment'](),_0x5e6fef=_0x2ffa00['config']['get']('trackChangesData')['editorCreator'],_0x10be15=await _0x5e6fef(_0x30442d,()=>function(_0x39e077){const _0x4f359a=document['createElement']('div');return _0x39e077['appendChild'](_0x4f359a),_0x4f359a;}(_0x3e40ec));!function(_0xda9754,_0x7d9b32){const _0x481e1e=_0xda9754['model']['document']['getRootNames']()['reduce']((_0x5daec1,_0x1b0a3b)=>(_0x5daec1[_0x1b0a3b]=_0xda9754['data']['get']({'rootName':_0x1b0a3b}),_0x5daec1),{}),_0x1f9f25=_0xda9754['plugins']['get']('Users')['users']['map'](_0x5993d7=>({'id':_0x5993d7['id'],'name':_0x5993d7['name']})),_0x397d70=_0xda9754['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c2d00=_0xda9754['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x102f8c=_0x7d9b32['plugins']['get']('Users'),_0x7c32be=_0x7d9b32['plugins']['get']('TrackChangesEditing'),_0x1ed381=_0x7d9b32['plugins']['get']('CommentsRepository');for(const _0x5ed175 of _0x1f9f25)_0x102f8c['getUser'](_0x5ed175['id'])||_0x102f8c['addUser'](_0x5ed175);_0x102f8c['me']||_0x102f8c['useAnonymousUser']();for(const _0x5556d4 of _0x397d70)_0x7c32be['addSuggestionData'](_0x5556d4);for(const _0x4b14ea of _0x2c2d00)_0x1ed381['addCommentThread'](_0x4b14ea);_0x7d9b32['data']['set'](_0x481e1e);}(_0x2ffa00,_0x10be15),_0x10be15['execute'](_0x4ffcd5?'acceptAllSuggestions':'discardAllSuggestions');const _0x92f6ec=v(_0x10be15)?_0x10be15['getFullData'](_0x22f8f7):_0x10be15['data']['get'](_0x22f8f7);return await _0x10be15['destroy'](),_0x92f6ec;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|