@ckeditor/ckeditor5-track-changes 41.4.1 → 42.0.0-alpha.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/README.md +6 -0
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -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/dist/types/suggestion.d.ts +1 -1
- package/dist/types/ui/suggestioncontroller.d.ts +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.d.ts +1 -1
- package/src/suggestion.js +2 -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.d.ts +1 -1
- package/src/ui/suggestioncontroller.js +2 -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,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as _0x357748,PendingActions as _0x4f18c1,icons as _0x5382e6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3c3be4,ObservableMixin as _0x173313,uid as _0x501bc0,insertToPriorityArray as _0x4831d2,priorities as _0x16dc4b,logWarning as _0x36e342,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x52a58c,View as _0x231896,ButtonView as _0x5a8fe4,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 _0x4b8c42,hashObject as _0x134b70,surroundingMarkersDetector as _0x3c88a5,trimHtml as _0x428c37,UserView as _0x3a0d18,getDateTimeFormatter as _0x183220,getAllMarkersDomElementsSorted as _0xf0cc4b,sanitizeEditorConfig as _0x42ff30}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xed7ecb,LiveRange as _0x2242e5,LivePosition as _0x135ce5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3ce59a,toWidget as _0x53b114}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1b100a,set as _0xa751a2,isEqual as _0x3298cf,unset as _0x367af2,omit as Bt}from'lodash-es';import{Delete as _0x4b89be,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xd05fea,ShiftEnter as _0x554ffa}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 _0x3806f8 of this['editor']['commands']['commands']())_0x3806f8['affectsData']&&!this['_enabledCommands']['has'](_0x3806f8)&&_0x3806f8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x357133 of this['editor']['commands']['commands']())_0x357133['affectsData']&&!this['_enabledCommands']['has'](_0x357133)&&_0x357133['clearForceDisabled']('TrackChangesCommand');}constructor(_0x4e625d,_0x25f458){super(_0x4e625d),this['_enabledCommands']=_0x25f458,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3418f9){const _0x3b6c09=this['_suggestions']['get'](_0x3418f9);if(!_0x3b6c09)throw new _0x3c3be4('track-changes-accept-suggestion-not-found',this);const _0x4ed914=_0x3b6c09['getRanges']();this['editor']['model']['canEditAt'](_0x4ed914)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3b6c09);}constructor(_0x158e16,_0x3a4efd){super(_0x158e16),this['_suggestions']=_0x3a4efd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2307a6){const _0x21ae3a=this['_suggestions']['get'](_0x2307a6);if(!_0x21ae3a)throw new _0x3c3be4('track-changes-discard-suggestion-not-found',this);const _0x3b5496=_0x21ae3a['getRanges']();this['editor']['model']['canEditAt'](_0x3b5496)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x21ae3a);}constructor(_0x51430c,_0xa614f1){super(_0x51430c),this['_suggestions']=_0xa614f1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x4a1f8d){return _0x4a1f8d['sort']((_0x42fcc6,_0x2fa13c)=>'deletion'==_0x42fcc6['type']&&'deletion'!=_0x2fa13c['type']?-0x1:'deletion'!=_0x42fcc6['type']&&'deletion'==_0x2fa13c['type']?0x1:0x0);}function to(_0x12f894,_0x4c1a90){let _0x203c9f,_0x455dc5=0x0;const _0x307402=[],_0x5bfbdf=_0x4c1a90['schema'];for(;_0x455dc5<_0x12f894['length'];){const _0x549fc9=_0x12f894[_0x455dc5],_0x4f8c08=_0x12f894[_0x455dc5+0x1];_0x203c9f||(_0x203c9f=_0x4c1a90['createPositionBefore'](_0x549fc9)),co(_0x4c1a90,_0x549fc9,_0x4f8c08)||(_0x307402['push'](_0x4c1a90['createRange'](_0x203c9f,_0x5bfbdf['isObject'](_0x549fc9)?_0x4c1a90['createPositionAfter'](_0x549fc9):_0x4c1a90['createPositionAt'](_0x549fc9,'end'))),_0x203c9f=null),_0x455dc5++;}return _0x307402;}function co(_0x594b34,_0x28ab7b,_0x5c1d69){if(!_0x5c1d69)return!0x1;const _0x1265f6=_0x594b34['createPositionAfter'](_0x28ab7b),_0x108b28=_0x594b34['createPositionBefore'](_0x5c1d69);return _0x1265f6['isTouching'](_0x108b28);}function rs(_0x39f415,_0x2fe6ea,_0x572355){for(;_0x572355['length'];){const _0x3013f0=_0x572355['splice'](0x0,0x64);_0x39f415['change'](()=>{for(const _0x19047e of _0x3013f0)_0x19047e['isInContent']&&_0x2fe6ea['execute'](_0x19047e['id']);});}}class x extends ts{['refresh'](){const _0x457776=Array['from'](this['_suggestions']['values']())['some'](_0x54fc24=>_0x54fc24['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x457776;}['execute'](){const _0x2f2a45=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3a93ee of _0x2f2a45){const _0x38292e=_0x3a93ee['getRanges']();if(!this['editor']['model']['canEditAt'](_0x38292e))return;}rs(this['editor']['model'],this['_command'],_0x2f2a45);}constructor(_0x5cd024,_0x3355fe,_0x14d4b0){super(_0x5cd024),this['_command']=_0x3355fe,this['_suggestions']=_0x14d4b0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x5a6731=this['editor']['model']['document']['selection'],_0x639a2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x10dbd4,_0x310bd3){const _0x1e9cb9=Array['from'](_0x10dbd4['getRanges']()),_0x3259c8=new Set();for(const _0x460f56 of _0x310bd3)if(_0x460f56['isInContent']){for(const _0x194eb6 of _0x1e9cb9)for(const _0x591b51 of _0x460f56['getRanges']())(_0x194eb6['isIntersecting'](_0x591b51)||_0x10dbd4['isCollapsed']&&!_0x460f56['isMultiRange']&&_0x460f56['next']&&_0x591b51['end']['isTouching'](_0x194eb6['start']))&&_0x3259c8['add'](_0x460f56);}return _0x3259c8;}(_0x5a6731,_0x639a2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x199af7=ss(Array['from'](this['_selectedSuggestions']));for(const _0x25cbdc of _0x199af7){const _0x39b677=_0x25cbdc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x39b677))return;}rs(this['editor']['model'],this['_command'],_0x199af7);}constructor(_0x50ef5d,_0x48b5e7,_0x51bdf7){super(_0x50ef5d),this['_command']=_0x48b5e7,this['_suggestions']=_0x51bdf7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x173313(){get['head'](){let _0x4284ff=this;for(;_0x4284ff['previous'];)_0x4284ff=_0x4284ff['previous'];return _0x4284ff;}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'](_0x170dc7){this['_markerNames']['add'](_0x170dc7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x50e837=>this['_model']['markers']['get'](_0x50e837))['filter'](_0x279a3d=>_0x279a3d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x49498b=>{for(const _0x4d724a of this['getMarkers']())_0x49498b['removeMarker'](_0x4d724a);}),this['_markerNames']['clear']();}['removeMarker'](_0x499c6e){this['_model']['change'](_0x2b7685=>{_0x2b7685['removeMarker'](_0x499c6e);}),this['_markerNames']['delete'](_0x499c6e);}['addRange'](_0x2ef7cd){const _0x494361='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x494361),this['_model']['change'](_0x1a083a=>{_0x1a083a['addMarker'](_0x494361,{'range':_0x2ef7cd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x41131f){for(const _0x2696ca of this['getRanges']())if(_0x2696ca['isIntersecting'](_0x41131f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4be0e4=>_0x4be0e4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2ec0ea,_0x41486c)=>[..._0x2ec0ea,..._0x41486c['getItems']()],[]);}['getFirstRange'](){var _0x2b9b9d;return(null===(_0x2b9b9d=this['getFirstMarker']())||void 0x0===_0x2b9b9d?void 0x0:_0x2b9b9d['getRange']())||null;}['getContainedElement'](){const _0x5cb247=this['getRanges']();if(0x1!=_0x5cb247['length'])return null;const _0x10e9d2=_0x5cb247[0x0],_0x252e43=_0x10e9d2['start']['nodeAfter'],_0x1cee6e=_0x10e9d2['end']['nodeBefore'];return _0x252e43 instanceof _0xed7ecb?_0x252e43!=_0x1cee6e?null:_0x252e43: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 _0x514605=[];let _0x1fe946=this['head'];for(;_0x1fe946;)_0x514605['push'](_0x1fe946),_0x1fe946=_0x1fe946['next'];return _0x514605;}['setAttribute'](_0x5d6e6d,_0x3af759){const _0x5822fe=_0x1b100a(this['attributes']);_0xa751a2(_0x5822fe,_0x5d6e6d,_0x3af759),_0x3298cf(_0x5822fe,this['attributes'])||(this['attributes']=_0x5822fe,this['_onAttributesChange'](_0x5822fe));}['removeAttribute'](_0x42e54d){const _0x3ed7ee=_0x1b100a(this['attributes']);_0x367af2(_0x3ed7ee,_0x42e54d),_0x3298cf(_0x3ed7ee,this['attributes'])||(this['attributes']=_0x3ed7ee,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 _0x501bc0()['substr'](0x1,0x5);}constructor(_0xda5ff6,_0x5564f5){super(),this['_isDataLoaded']=!0x1,this['id']=_0x5564f5['id'],this['type']=_0x5564f5['type'],this['subType']=_0x5564f5['subType']||null,this['author']=_0x5564f5['author'],this['creator']=_0x5564f5['creator']||_0x5564f5['author'],this['isExternal']=Boolean(_0x5564f5['attributes']&&_0x5564f5['attributes']['@external']),this['data']=null,this['_model']=_0xda5ff6,this['_onAccept']=_0x5564f5['onAccept'],this['_onDiscard']=_0x5564f5['onDiscard'],this['_onAttributesChange']=_0x5564f5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5564f5['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(_0x16ce82,_0x20f55a,_0x41ad6f){const t=_0x16ce82['t'];switch(_0x20f55a){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',_0x41ad6f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x41ad6f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x41ad6f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x41ad6f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x41ad6f);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',_0x41ad6f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x41ad6f);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',_0x41ad6f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x41ad6f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x41ad6f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x41ad6f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x41ad6f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x41ad6f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x41ad6f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x41ad6f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x41ad6f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x41ad6f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x41ad6f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x41ad6f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x41ad6f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x41ad6f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x41ad6f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x41ad6f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x41ad6f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x41ad6f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x41ad6f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x41ad6f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x41ad6f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x41ad6f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x41ad6f);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'},_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x41ad6f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x41ad6f);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'},_0x41ad6f);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'},_0x41ad6f);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 _0x20f55a;}}class f{['getDescriptions'](_0x169c12){const _0x152133=[],_0x4820f5=new Set(),_0x135e24=new Set();for(let _0x62df5=0x0;_0x62df5<_0x169c12['length'];_0x62df5++){const _0x4e6836=_0x169c12[_0x62df5];if(!_0x4e6836['isInContent'])continue;const _0x45d416=this['_handleCustomCallbackDescription'](_0x4e6836);if(_0x45d416){if(null!=_0x4e6836['subType']){if(_0x4820f5['has'](_0x4e6836['subType']))continue;_0x4820f5['add'](_0x4e6836['subType']);}_0x152133['push'](_0x45d416);}else{if('attribute'!=_0x4e6836['type'])'insertion'!=_0x4e6836['type']&&'deletion'!=_0x4e6836['type']||this['_handleInsertRemoveSuggestionDescription'](_0x152133,_0x4e6836,_0x169c12[_0x62df5+0x1]);else{const _0xcaa015=_0x4e6836['data']['key'];if(_0x135e24['has'](_0xcaa015))continue;_0x135e24['add'](_0x4e6836['data']['key']),_0xcaa015==m?this['_handleRenameSuggestionDescription'](_0x152133,_0x4e6836):this['_handleAttributeSuggestionDescription'](_0x152133,_0x4e6836);}}}return this['_resolveDescriptionItems'](_0x152133);}['registerDescriptionCallback'](_0x3d3bb9){this['_customCallbacks']['push'](_0x3d3bb9);}['registerElementLabel'](_0xab0440,_0x40c2d8,_0x1c0f4e=_0x16dc4b['normal']){'function'==typeof _0xab0440?_0x4831d2(this['_itemLabelsCallbacks'],{'matchingCallback':_0xab0440,'label':_0x40c2d8,'priority':_0x1c0f4e}):this['_itemLabels']['set'](_0xab0440,_0x40c2d8);}['registerAttributeLabel'](_0x126997,_0x10ba78){this['_attributeLabels']['set'](_0x126997,_0x10ba78);}['getItemLabel'](_0x4dfb35,_0x43e9af=0x1){let _0x4a7b86;for(const _0x7130a1 of this['_itemLabelsCallbacks'])if(_0x7130a1['matchingCallback'](_0x4dfb35)){_0x4a7b86=_0x7130a1['label'];break;}return _0x4a7b86||(_0x4a7b86=this['_itemLabels']['get'](_0x4dfb35['name'])),_0x4a7b86?_0x4a7b86(_0x43e9af):0x1!==_0x43e9af?_0x43e9af+'\x20'+_0x4dfb35['name']+'s':''+_0x4dfb35['name'];}['_addDescriptionItems'](_0x5b2e11,_0x191da8){const _0x27b850=_0x191da8['getFirstRange']()['getWalker'](),_0x21c324='insertion'==_0x191da8['type']?'add':'remove';for(const _0x38b40f of _0x27b850){const _0x20b66e=_0x38b40f['item'],_0x38e8d8=_0x5b2e11[_0x5b2e11['length']-0x1];if(_0x20b66e['is']('$textProxy'))_0x38e8d8&&_0x38e8d8['type']['indexOf']('Container')>-0x1&&_0x5b2e11['pop'](),_0x38e8d8&&'text'==_0x38e8d8['type']?_0x38e8d8[_0x21c324]+=_0x20b66e['data']:_0x5b2e11['push']({'type':'text','add':'add'==_0x21c324?_0x20b66e['data']:'','remove':'remove'==_0x21c324?_0x20b66e['data']:''});else{if(this['_schema']['isObject'](_0x20b66e)){const _0x345688=_0x20b66e;if(_0x38e8d8&&_0x38e8d8['type']['indexOf']('Container')>-0x1&&_0x5b2e11['pop'](),'elementEnd'==_0x38b40f['type'])continue;_0x38e8d8&&_0x38e8d8['type']==_0x21c324+'Object'&&_0x38e8d8['element']['name']==_0x345688['name']?_0x38e8d8['quantity']++:_0x5b2e11['push']({'type':_0x21c324+'Object','element':_0x345688,'quantity':0x1}),_0x27b850['skip'](_0x3ae5c0=>!('elementEnd'==_0x3ae5c0['type']&&_0x3ae5c0['item']==_0x20b66e));}else{if(this['_schema']['checkChild'](_0x20b66e,'$text')||_0x20b66e['is']('element','softBreak')){const _0x1d476c=_0x20b66e;if('add'==_0x21c324&&'elementStart'==_0x38b40f['type']||'remove'==_0x21c324&&'elementEnd'==_0x38b40f['type'])continue;if(_0x38e8d8&&-0x1==_0x38e8d8['type']['indexOf']('Container')){'text'==_0x38e8d8['type']&&(_0x38e8d8[_0x21c324]+='\x0a');continue;}let _0x2f8e7f;if(_0x2f8e7f='add'==_0x21c324?_0x1d476c['nextSibling']&&!this['_schema']['isObject'](_0x1d476c['nextSibling'])?_0x1d476c['nextSibling']:null:_0x1d476c['previousSibling']&&!this['_schema']['isObject'](_0x1d476c['previousSibling'])?_0x1d476c['previousSibling']:null,_0x1d476c['isEmpty']||_0x2f8e7f&&_0x2f8e7f['isEmpty']){const _0x22ab37=_0x2f8e7f&&_0x2f8e7f['isEmpty']?_0x2f8e7f:_0x1d476c;_0x38e8d8&&_0x38e8d8['type']==_0x21c324+'EmptyContainer'&&_0x38e8d8['element']['name']==_0x22ab37['name']?_0x38e8d8['quantity']++:_0x5b2e11['push']({'type':_0x21c324+'EmptyContainer','element':_0x22ab37,'quantity':0x1});}else _0x5b2e11['push']({'type':_0x21c324+'Container','element':_0x1d476c});}}}}}['_resolveDescriptionItems'](_0x3324eb){const _0x1e42e1=this['_locale'],_0x40f49c=[],_0x1c8e91=[],_0x39c4ed=[];for(const _0x5c99de of _0x3324eb)switch(_0x5c99de['type']){case'text':if(_0x5c99de['add']=_0x5c99de['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5c99de['remove']=_0x5c99de['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5c99de['add']&&''!=_0x5c99de['remove']){_0x40f49c['push']({'type':'replace','content':o(_0x1e42e1,'REPLACE_TEXT',['\x22'+_0x5c99de['remove']+'\x22','\x22'+_0x5c99de['add']+'\x22'])});continue;}if(null!=_0x5c99de['add']['match'](/^ +$/)){_0x40f49c['push']({'type':'insertion','content':o(_0x1e42e1,'*Insert:*\x20%0',o(_0x1e42e1,'ELEMENT_SPACE',_0x5c99de['add']['length']))});continue;}if(null!=_0x5c99de['remove']['match'](/^ +$/)){_0x40f49c['push']({'type':'deletion','content':o(_0x1e42e1,'*Remove:*\x20%0',o(_0x1e42e1,'ELEMENT_SPACE',_0x5c99de['remove']['length']))});continue;}if(''!=_0x5c99de['add']){_0x40f49c['push']({'type':'insertion','content':o(_0x1e42e1,'*Insert:*\x20%0','\x22'+_0x5c99de['add']+'\x22')});continue;}_0x40f49c['push']({'type':'deletion','content':o(_0x1e42e1,'*Remove:*\x20%0','\x22'+_0x5c99de['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x40f49c['push']({'type':'insertion','content':o(_0x1e42e1,'*Insert:*\x20%0',this['getItemLabel'](_0x5c99de['element'],_0x5c99de['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x40f49c['push']({'type':'deletion','content':o(_0x1e42e1,'*Remove:*\x20%0',this['getItemLabel'](_0x5c99de['element'],_0x5c99de['quantity']))});continue;case'addContainer':_0x40f49c['push']({'type':'insertion','content':o(_0x1e42e1,'*Split:*\x20%0',this['getItemLabel'](_0x5c99de['element'],_0x5c99de['quantity']))});continue;case'removeContainer':_0x40f49c['push']({'type':'deletion','content':o(_0x1e42e1,'*Merge:*\x20%0',this['getItemLabel'](_0x5c99de['element'],_0x5c99de['quantity']))});continue;case'addFormat':_0x1c8e91['push'](_0x5c99de['key']);continue;case'removeFormat':_0x39c4ed['push'](_0x5c99de['key']);continue;default:_0x40f49c['push'](_0x5c99de);}if(_0x1c8e91['length']){const _0x8bab77=_0x1c8e91['map'](_0x177544=>this['_attributeLabels']['has'](_0x177544)?this['_attributeLabels']['get'](_0x177544):_0x177544)['join'](',\x20');_0x40f49c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x8bab77)});}if(_0x39c4ed['length']){const _0x4f8834=_0x39c4ed['map'](_0x2bce2a=>this['_attributeLabels']['has'](_0x2bce2a)?this['_attributeLabels']['get'](_0x2bce2a):_0x2bce2a)['join'](',\x20');_0x40f49c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4f8834)});}return _0x40f49c;}['_handleCustomCallbackDescription'](_0x531a47){for(const _0x2df007 of this['_customCallbacks']){const _0x465264=_0x2df007(_0x531a47);if(_0x465264&&'type'in _0x465264)return _0x465264;}}['_handleAttributeSuggestionDescription'](_0x409c36,_0xbe52f5){const _0x446643=_0xbe52f5['data'],_0x43e3f5=void 0x0===_0x446643['newValue']?'removeFormat':'addFormat';_0x409c36['push']({'type':_0x43e3f5,'key':_0x446643['key']});}['_handleRenameSuggestionDescription'](_0x465e54,_0x46d6f4){_0x465e54['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46d6f4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2e2a58,_0x58665a,_0x3ba939){if(this['_addDescriptionItems'](_0x2e2a58,_0x58665a),_0x3ba939&&_0x3ba939['getFirstRange']()&&!_0x58665a['getFirstRange']()['end']['isEqual'](_0x3ba939['getFirstRange']()['start'])){const _0x1621de=_0x2e2a58[_0x2e2a58['length']-0x1],_0x4650e8='insertion'==_0x58665a['type']?'add':'remove';_0x1621de&&'text'==_0x1621de['type']&&(_0x1621de[_0x4650e8]+='\x0a');}}constructor(_0x24e40e,_0x4b6fba){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x24e40e,this['_locale']=_0x4b6fba;}}class E extends _0x357748{['afterInit'](){const _0x2fb597=this['editor'],_0x1ae897=_0x2fb597['plugins']['get']('TrackChangesEditing');_0x2fb597['commands']['get']('showAIAssistant')&&_0x1ae897['enableCommand']('showAIAssistant');}}class V extends _0x357748{['afterInit'](){const _0x4c6232=this['editor'],_0x52afe9=_0x4c6232['locale'];if(!_0x4c6232['plugins']['has']('AlignmentEditing'))return;const _0x4f49dd=_0x4c6232['plugins']['get']('TrackChangesEditing');_0x4f49dd['enableDefaultAttributesIntegration']('alignment'),_0x4f49dd['registerBlockAttribute']('alignment'),_0x4f49dd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x52afe9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x244075=this['editor'],_0x56623c=_0x244075['locale'];_0x244075['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25f67a=>{if('formatBlock'!=_0x25f67a['type'])return;const {data:_0x36075b}=_0x25f67a;if(_0x36075b&&'alignment'==_0x36075b['commandName']){const _0x4df434=_0x36075b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x56623c,'*Format:*\x20%0',function(_0x1f347d){switch(_0x1f347d){case'left':return o(_0x56623c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x56623c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x56623c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x56623c,'FORMAT_JUSTIFY_TEXT');}}(_0x4df434))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x357748{['afterInit'](){const _0x1e5bb1=this['editor'],_0x3a1ae8=_0x1e5bb1['plugins']['get']('TrackChangesEditing'),_0x33abb3=_0x1e5bb1['locale'];for(const _0x51a60a of ti){if(!_0x1e5bb1['plugins']['has'](_0x51a60a))continue;const _0x5474b5=_0x51a60a['slice'](0x0,-0x7)['toLowerCase'](),_0x39cf89='FORMAT_'+_0x5474b5['toUpperCase']();_0x3a1ae8['enableDefaultAttributesIntegration'](_0x5474b5),_0x3a1ae8['registerInlineAttribute'](_0x5474b5),_0x3a1ae8['descriptionFactory']['registerAttributeLabel'](_0x5474b5,o(_0x33abb3,_0x39cf89));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3169c8=this['editor'],_0x42957d=_0x3169c8['locale'],_0x573c27=_0x3169c8['plugins']['get']('TrackChangesEditing');function _0x1c0a87(_0x21bd5f,_0x2f2584){_0x573c27['descriptionFactory']['registerDescriptionCallback'](_0x16133b=>{if('formatInline'!=_0x16133b['type'])return;const {data:_0x31a9c1}=_0x16133b;return _0x31a9c1&&_0x31a9c1['commandName']===_0x21bd5f?_0x31a9c1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42957d,'*Format:*\x20%0',_0x2f2584)}:{'type':'format','content':o(_0x42957d,'*Remove\x20format:*\x20%0',_0x2f2584)}:void 0x0;});}_0x1c0a87('bold',o(_0x42957d,'FORMAT_BOLD')),_0x1c0a87('italic',o(_0x42957d,'FORMAT_ITALIC')),_0x1c0a87('underline',o(_0x42957d,'FORMAT_UNDERLINE')),_0x1c0a87('code',o(_0x42957d,'FORMAT_CODE')),_0x1c0a87('strikethrough',o(_0x42957d,'FORMAT_STRIKETHROUGH')),_0x1c0a87('subscript',o(_0x42957d,'FORMAT_SUBSCRIPT')),_0x1c0a87('superscript',o(_0x42957d,'FORMAT_SUPERSCRIPT'));}}class O extends _0x357748{['afterInit'](){const _0x14ca29=this['editor'],_0x3fb9b1=_0x14ca29['locale'];if(!_0x14ca29['plugins']['has']('BlockQuoteEditing'))return;const _0x43ec6f=_0x14ca29['plugins']['get']('TrackChangesEditing'),_0x8153c7=this['editor']['commands']['get']('blockQuote');_0x43ec6f['enableCommand']('blockQuote',(_0x588c54,_0x488b0b={})=>{const _0x38271f=this['editor']['model']['document']['selection'],_0x28201e=_0x488b0b&&void 0x0!==_0x488b0b['forceValue']?_0x488b0b['forceValue']:!_0x8153c7['value'];let _0x49b213=[];if(_0x28201e){const _0x46ddef=Array['from'](_0x38271f['getSelectedBlocks']())['filter'](_0x9309bd=>oo(_0x9309bd)||function(_0x4bff7d,_0x34b11b){const _0x7a24d2=_0x34b11b['checkChild'](_0x4bff7d['parent'],'blockQuote'),_0x38e17e=_0x34b11b['checkChild'](['$root','blockQuote'],_0x4bff7d);return _0x7a24d2&&_0x38e17e;}(_0x9309bd,this['editor']['model']['schema']));_0x49b213=to(_0x46ddef,_0x14ca29['model']);}else{const _0x3e585a=Array['from'](_0x38271f['getSelectedBlocks']())['filter'](_0x33f579=>oo(_0x33f579));_0x49b213=to(_0x3e585a,_0x14ca29['model']);}_0x14ca29['model']['change'](()=>{for(const _0x604410 of _0x49b213)_0x43ec6f['markBlockFormat'](_0x604410,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x28201e}]});});}),_0x43ec6f['descriptionFactory']['registerDescriptionCallback'](_0x589588=>{const {data:_0x5a8e56}=_0x589588;if(_0x5a8e56&&'blockQuote'==_0x5a8e56['commandName']){const _0x6a2a40=o(_0x3fb9b1,'ELEMENT_BLOCK_QUOTE');return _0x5a8e56['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fb9b1,'*Set\x20format:*\x20%0',_0x6a2a40)}:{'type':'format','content':o(_0x3fb9b1,'*Remove\x20format:*\x20%0',_0x6a2a40)};}});}}function oo(_0x50c4e0){return'blockQuote'==_0x50c4e0['parent']['name'];}class F extends _0x357748{['afterInit'](){const _0x20c504=this['editor'];_0x20c504['plugins']['has']('CaseChange')&&(_0x20c504['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x20c504['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x20c504['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x357748{['afterInit'](){const _0x52b6e3=this['editor'];_0x52b6e3['commands']['get']('ckbox')&&_0x52b6e3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x357748{['afterInit'](){const _0x40b39e=this['editor'];if(!_0x40b39e['plugins']['has']('CodeBlock'))return;const _0xa8c34d=_0x40b39e['plugins']['get']('TrackChangesEditing'),_0x4109c8=_0x40b39e['locale'],_0x58a8ba=_0x40b39e['config']['get']('codeBlock')['languages'],_0x6c80d7=_0x40b39e['commands']['get']('codeBlock');_0xa8c34d['enableCommand']('indentCodeBlock'),_0xa8c34d['enableCommand']('outdentCodeBlock'),_0xa8c34d['enableCommand']('codeBlock',(_0x24e48e,_0x2f5e1b={})=>{const _0x1dbe3e=_0x40b39e['model'],_0x702cf5=_0x40b39e['model']['document']['selection'],_0x22e779=_0x2f5e1b&&void 0x0!==_0x2f5e1b['forceValue']?_0x2f5e1b['forceValue']:!_0x6c80d7['value'];let _0x2bbd51;_0x2f5e1b['language']||(_0x2f5e1b['language']=_0x58a8ba[0x0]['language']),_0x2bbd51=_0x22e779?Array['from'](_0x702cf5['getSelectedBlocks']())['filter'](_0x4b4b86=>eo(_0x4b4b86)||function(_0x209ee4,_0x21e371){if(_0x209ee4['is']('rootElement')||_0x21e371['isLimit'](_0x209ee4))return!0x1;return _0x21e371['checkChild'](_0x209ee4['parent'],'codeBlock');}(_0x4b4b86,_0x1dbe3e['schema'])):Array['from'](_0x702cf5['getSelectedBlocks']())['filter'](_0x5e0d94=>eo(_0x5e0d94));const _0x1a6478=to(_0x2bbd51,_0x1dbe3e);_0x1dbe3e['change'](()=>{for(const _0x6169bc of _0x1a6478)_0xa8c34d['markBlockFormat'](_0x6169bc,{'commandName':'codeBlock','commandParams':[{..._0x2f5e1b,'forceValue':_0x22e779}],'formatGroupId':'blockName'});});}),(_0xa8c34d['descriptionFactory']['registerElementLabel']('codeBlock',_0x49a664=>o(_0x4109c8,'ELEMENT_CODE_BLOCK',_0x49a664)),_0xa8c34d['descriptionFactory']['registerDescriptionCallback'](_0x4a54ca=>{if('formatBlock'!=_0x4a54ca['type'])return;const _0x50c2e8=_0x4109c8['t'],{data:_0x3af1a4}=_0x4a54ca;if(!_0x3af1a4||'codeBlock'!=_0x3af1a4['commandName'])return;const _0x41b2b7=_0x3af1a4['commandParams'][0x0]['language'],_0x3b33bd=_0x50c2e8(_0x58a8ba['find'](_0x43b894=>_0x43b894['language']===_0x41b2b7)['label'])['toLowerCase']();return _0x3af1a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4109c8,'*Set\x20format:*\x20%0',o(_0x4109c8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3b33bd+')')}:{'type':'format','content':o(_0x4109c8,'*Remove\x20format:*\x20%0',o(_0x4109c8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x48ebc9){return'codeBlock'==_0x48ebc9['name'];}class H extends _0x357748{['afterInit'](){const _0x3483de=this['editor'];if(!_0x3483de['plugins']['has']('CommentsEditing'))return;_0x3483de['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe6c61e,_0x54b0c1,_0x29d06d){const _0x49785b=[];for(const _0x12192e of _0x54b0c1['getItems']())_0x12192e['hasAttribute'](_0xe6c61e)&&_0x49785b['push'](_0x29d06d['createRangeOn'](_0x12192e));return _0x49785b;}function _e(_0x40f900,_0x453858,{showActiveMarker:_0x28f52c=!0x0}={}){const _0x5336b7=_0x40f900['plugins']['get']('TrackChangesEditing');return(_0x28dfde,_0x4e9018,_0x1f3ca1)=>{if(!_0x1f3ca1['consumable']['test'](_0x4e9018['markerRange'],_0x28dfde['name']))return;const _0xa6f34a=_0x4e9018['markerRange']['getWalker'](),_0x3c2443=_0x4e9018['markerRange']['start'],_0x2fb6f9=_0x40f900['model']['schema'];let _0x610291=null,_0x460b93=null,_0x2da3b1=!0x1,_0x435f8e=!0x1;for(const _0x52c3ba of _0xa6f34a){const _0xa2533d=_0x52c3ba['item'];_0x2da3b1=_0x2da3b1||_0x2fb6f9['isContent'](_0xa2533d);const _0x1be36c=_0x1f3ca1['mapper']['toViewElement'](_0xa2533d);if(_0x1be36c&&_0x1be36c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x52c3ba['type']&&(_0x2fb6f9['isBlock'](_0xa2533d)&&!_0x2fb6f9['isLimit'](_0xa2533d)&&(_0xa2533d['nextSibling']||_0x3c2443['isAtEnd']?_0x610291&&_0x610291['parent']==_0xa2533d||(_0x610291=_0xa2533d,_0x8053cd(_0x52c3ba['previousPosition']),_0x435f8e=!0x0):_0x460b93=_0x460b93||_0x52c3ba['previousPosition']));}function _0x8053cd(_0x3b0e5a){const _0xeca355=_0x1f3ca1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x453858}),_0x1b35db=_0x1f3ca1['mapper']['toViewPosition'](_0x3b0e5a);_0x28f52c&&_0x5336b7['activeMarkers']['includes'](_0x4e9018['markerName'])&&_0x1f3ca1['writer']['addClass']('ck-suggestion-marker--active',_0xeca355),_0x1f3ca1['writer']['insert'](_0x1b35db,_0xeca355),_0x1f3ca1['mapper']['bindElementToMarker'](_0xeca355,_0x4e9018['markerName']);}_0x2da3b1||_0x435f8e||!_0x460b93||_0x8053cd(_0x460b93);};}class q extends _0x357748{static get['requires'](){return[_0x4b89be];}['init'](){const _0x39049f=this['editor'],_0x1e00f1=_0x39049f['plugins']['get']('TrackChangesEditing');_0x1e00f1['enableCommand']('delete');const _0x4d3238=_0x39049f['commands']['get']('deleteForward');_0x1e00f1['enableCommand']('deleteForward',(_0x9290b0,_0x4b7df6={})=>{const _0x18d007=_0x39049f['model']['createSelection'](_0x39049f['model']['document']['selection']);_0x18d007['isCollapsed']&&_0x39049f['model']['modifySelection'](_0x18d007,{'direction':'forward','unit':_0x4b7df6['unit']});const _0x373e6e=_0x18d007['getFirstRange'](),_0x2e3675=_0x2242e5['fromRange'](_0x373e6e);let _0x3d7e4f;_0x9290b0(_0x4b7df6),_0x3d7e4f='$graveyard'==_0x2e3675['root']['rootName']?_0x39049f['model']['createRange'](_0x373e6e['start']):_0x39049f['model']['createRange'](_0x2e3675['start'],_0x2e3675['end']),_0x2e3675['detach'](),_0x39049f['model']['enqueueChange'](_0x4d3238['buffer']['batch'],_0x20e84f=>{_0x4d3238['buffer']['lock'](),_0x20e84f['setSelection'](_0x20e84f['createRange'](_0x3d7e4f['end'])),_0x4d3238['buffer']['unlock']();});}),_0x39049f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x39049f,'merge'),{'priority':'high'}),_0x39049f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4bbcf5,_0x29bf72,_0x341d68)=>{_0x341d68['options']['showSuggestionHighlights']&&_e(_0x39049f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4bbcf5,_0x29bf72,_0x341d68);},{'priority':'high'}),_0x39049f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x342294,_0x47cc53,_0x43621d)=>{const _0x3a99f4=_0x43621d['mapper']['markerNameToElements'](_0x47cc53['markerName']);if(_0x3a99f4){for(const _0x5dfe1f of _0x3a99f4)_0x5dfe1f['is']('uiElement')&&(_0x43621d['mapper']['unbindElementFromMarkerName'](_0x5dfe1f,_0x47cc53['markerName']),_0x43621d['writer']['remove'](_0x5dfe1f));}},{'priority':'high'});}}class z extends _0x357748{['afterInit'](){const _0x4203de=this['editor'];if(!_0x4203de['plugins']['has']('ListEditing'))return;const _0x1fc764=_0x4203de['locale'],_0x423fb7=_0x4203de['plugins']['get']('TrackChangesEditing'),_0x3a209b=_0x4203de['plugins']['has']('TodoListEditing'),_0x307c5a=!!_0x4203de['config']['get']('list.multiBlock');function _0x5b1a5a(_0x3f0df5){return{'type':'format','content':''+o(_0x1fc764,'*Set\x20format:*\x20%0',_0x3f0df5)};}function _0x4fa2f8(_0x5716a3){return{'type':'format','content':''+o(_0x1fc764,'*Remove\x20format:*\x20%0',_0x5716a3)};}_0x423fb7['enableDefaultAttributesIntegration']('numberedList'),_0x423fb7['enableDefaultAttributesIntegration']('bulletedList'),_0x423fb7['enableDefaultAttributesIntegration']('customNumberedList'),_0x423fb7['enableDefaultAttributesIntegration']('customBulletedList'),_0x423fb7['enableDefaultAttributesIntegration']('indentList'),_0x423fb7['enableDefaultAttributesIntegration']('outdentList'),_0x423fb7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x423fb7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x423fb7['registerBlockAttribute']('listItemId'),_0x423fb7['registerBlockAttribute']('listType'),_0x423fb7['registerBlockAttribute']('listIndent'),_0x307c5a&&(_0x423fb7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x423fb7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3a209b&&(_0x423fb7['enableDefaultAttributesIntegration']('todoList'),_0x423fb7['enableDefaultAttributesIntegration']('checkTodoList'),_0x423fb7['registerBlockAttribute']('todoListChecked'),_0x423fb7['descriptionFactory']['registerDescriptionCallback'](_0xed363f=>{const {data:_0x4ea76b}=_0xed363f;if(_0x4ea76b&&'todoListChecked'==_0x4ea76b['key'])return{'type':'format','content':_0x4ea76b['newValue']?o(_0x1fc764,'*Check\x20item*'):o(_0x1fc764,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x27060b=>{if(_0x27060b['batch']['isUndo'])return!0x1;let _0x11a7ee=!0x1;const _0x5475a1=_0x423fb7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2dabbe=>'todoListChecked'===_0x423fb7['_getAttributeKey'](_0x2dabbe));for(const _0x2ab034 of _0x5475a1){'todo'!=_0x2ab034['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x423fb7['_findSuggestions'](_0x2ab034['getFirstRange'](),'attribute')['find'](_0x277390=>'listType'===_0x423fb7['_getAttributeKey'](_0x277390['suggestion']))||(_0x27060b['removeMarker'](_0x2ab034['getFirstMarker']()),_0x11a7ee=!0x0));}return _0x11a7ee;})),_0x423fb7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1fc764,'FORMAT_INDENT'));const _0x2b0672={'type':'format','content':''};_0x423fb7['descriptionFactory']['registerDescriptionCallback'](_0x3c9208=>{const {data:_0x614965}=_0x3c9208;if(!_0x614965||'listType'!=_0x614965['key'])return;let _0x38239a=_0x3c9208['head'];for(;_0x38239a;){if(_0x38239a['data']&&(('listStyle'==_0x38239a['data']['key']||'listMarkerStyle'==_0x38239a['data']['key'])&&(_0x38239a['data']['newValue']&&'default'!=_0x38239a['data']['newValue']||'default'!=_0x38239a['data']['oldValue']&&!_0x614965['newValue'])||!_0x307c5a&&_0x38239a['data']['key']==m))return _0x2b0672;_0x38239a=_0x38239a['next'];}if(null==_0x614965['newValue'])switch(_0x614965['oldValue']){case'bulleted':return _0x4fa2f8(o(_0x1fc764,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4fa2f8(o(_0x1fc764,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4fa2f8(o(_0x1fc764,'ELEMENT_TODO_LIST'));}switch(_0x614965['newValue']){case'bulleted':return _0x5b1a5a(o(_0x1fc764,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b1a5a(o(_0x1fc764,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b1a5a(o(_0x1fc764,'ELEMENT_TODO_LIST'));}}),_0x423fb7['descriptionFactory']['registerDescriptionCallback'](_0x4b4417=>{const {data:_0xf786f2}=_0x4b4417;if(_0xf786f2&&'listIndent'==_0xf786f2['key'])return null==_0xf786f2['newValue']||null==_0xf786f2['oldValue']&&0x0==_0xf786f2['newValue']?_0x2b0672:void 0x0;}),_0x423fb7['descriptionFactory']['registerDescriptionCallback'](_0x5e54b7=>{if('attribute'!=_0x5e54b7['type'])return;const {data:_0x501a7d}=_0x5e54b7;if(!_0x501a7d||'listItemId'!=_0x501a7d['key'])return;const _0x47fe70=le(_0x5e54b7);return'newValue'==_0x47fe70?{'type':'format','content':o(_0x1fc764,'*Merge:*\x20list\x20item')}:'oldValue'==_0x47fe70?{'type':'format','content':o(_0x1fc764,'*Split:*\x20list\x20item')}:_0x2b0672;}),_0x4203de['model']['document']['registerPostFixer'](_0x29ea60=>this['listItemIdFixer'](_0x29ea60)),_0x4203de['model']['document']['registerPostFixer'](_0x5a2063=>this['noTrackChangesFixer'](_0x5a2063)),_0x4203de['model']['document']['registerPostFixer'](_0x27733a=>this['assureChains'](_0x27733a)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4770d3){if(_0x4770d3['batch']['isUndo']||!_0x4770d3['batch']['isLocal'])return!0x1;let _0x4f1e27=!0x1;const _0x5d95ea=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4122e6=>_0x4122e6['data']&&'listItemId'==_0x4122e6['data']['key'])['filter'](_0x526e6a=>_0x526e6a['data']['newValue']&&_0x526e6a['data']['oldValue']);for(const _0x56ebd3 of _0x5d95ea)le(_0x56ebd3)||(_0x4770d3['removeMarker'](_0x56ebd3['getFirstMarker']()),_0x4f1e27=!0x0);return _0x4f1e27;}['noTrackChangesFixer'](_0x1ec078){if(_0x1ec078['batch']['isUndo']||!_0x1ec078['batch']['isLocal'])return!0x1;const _0x23b59d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x23b59d['trackChangesCommand']['value'])return!0x1;let _0x386feb=!0x1;const _0x581261=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1ecef5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5c904a=>'attribute'==_0x5c904a['type'])['filter'](_0x2a6d41=>_0x581261['includes'](_0x2a6d41['attributeKey']));if(0x0==_0x1ecef5['length'])return _0x386feb;for(const _0x59afa of _0x1ecef5){const _0xcaa7d=_0x23b59d['_findSuggestions'](_0x59afa['range'],'attribute')['filter'](_0x3ed6ee=>!_0x3ed6ee['meta']['isNextTo'])['map'](_0x139ee3=>_0x139ee3['suggestion'])['filter'](_0x22c2a6=>{const _0x1a4e40=_0x23b59d['_getAttributeKey'](_0x22c2a6);return _0x581261['includes'](_0x1a4e40);});if(_0xcaa7d['length']){for(const _0x53011f of _0xcaa7d)_0x1ec078['removeMarker'](_0x53011f['getFirstMarker']());_0x386feb=!0x0;}}return _0x386feb;}['assureChains'](_0x5b7411){if(_0x5b7411['batch']['isUndo']||!_0x5b7411['batch']['isLocal'])return!0x1;const _0x38ef4a=this['editor']['plugins']['get']('TrackChangesEditing');let _0x535541=!0x1;const _0x3572fd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xb7392e of _0x38ef4a['getSuggestions']({'skipNotAttached':!0x0})){const _0x397805=_0x38ef4a['_findSuggestions'](_0xb7392e['getFirstRange'](),'attribute')['map'](_0x11ef4f=>_0x11ef4f['suggestion'])['filter'](_0x1905f5=>_0x1905f5['data']&&_0x3572fd['includes'](_0x1905f5['data']['key']));if(!_0x397805['length'])continue;const _0x49e6c1=_0x397805[0x0]['head']['attributes']['groupId'];if(!_0x397805['every'](_0x373c9b=>_0x373c9b['attributes']['groupId']===_0x49e6c1)){for(const _0x6165f4 of _0x397805)_0x338448(_0x6165f4,_0x49e6c1)&&(_0x535541=!0x0);}}return _0x535541;function _0x3fb06f(_0x3fe777,_0x3c71cf){for(const _0x711830 of _0x38ef4a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ce5ce=>'attribute'==_0x4ce5ce['type']&&_0x4ce5ce['attributes']['groupId']==_0x3fe777))_0x711830['setAttribute']('groupId',_0x3c71cf);}function _0x338448(_0x1e6694,_0x50be98){let _0x223875=_0x1e6694['head'],_0x41f2c4=!0x1;for(;_0x223875;)_0x223875['attributes']['groupId']!=_0x50be98&&(_0x3fb06f(_0x223875['attributes']['groupId'],_0x50be98),_0x223875['setAttribute']('groupId',_0x50be98),_0x41f2c4=!0x0),_0x223875=_0x223875['next'];return _0x41f2c4;}}['_supportLegacySuggestions'](){const _0x5e6e51=this['editor'],_0xb3719b=_0x5e6e51['locale'],_0x136f44=_0x5e6e51['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x136f44['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3f9ff8,_0x3bf649){const _0x4a0f2d=[];for(let _0x42f47c of _0x3f9ff8)_0x42f47c['start']['nodeAfter']===_0x42f47c['end']['parent']&&(_0x42f47c=_0x5e6e51['model']['createRange'](_0x5e6e51['model']['createPositionAt'](_0x42f47c['start']['nodeAfter'],0x0))),_0x4a0f2d['push'](_0x42f47c);_0x5e6e51['model']['change'](_0x178629=>{const _0x2f3ee2=_0x5e6e51['model']['document']['selection'],_0x4d6c1=Array['from'](_0x2f3ee2['getRanges']())['map'](_0x51383d=>_0x2242e5['fromRange'](_0x51383d));_0x178629['setSelection'](_0x4a0f2d),_0x5e6e51['commands']['get'](_0x3bf649['commandName'])['refresh'](),_0x3bf649['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5e6e51['execute'](_0x3bf649['commandName'],..._0x3bf649['commandParams']),_0x178629['setSelection'](_0x4d6c1);for(const _0x53b1b5 of _0x4d6c1)_0x53b1b5['detach']();});}),_0x136f44['descriptionFactory']['registerElementLabel'](function(_0x442e61){const _0x461590=!_0x5e6e51['model']['schema']['isObject'](_0x442e61),_0x1bb9c1=_0x442e61['previousSibling'],_0xf8f2cf=_0x442e61['nextSibling'],_0x2a8992=_0x442e61['getAttribute']('listItemId'),_0x29ec12=!_0x1bb9c1||_0x1bb9c1['getAttribute']('listItemId')!==_0x2a8992,_0x2ab92a=!_0xf8f2cf||_0xf8f2cf['getAttribute']('listItemId')!==_0x2a8992;return _0x461590&&Boolean(_0x2a8992)&&_0x29ec12&&_0x2ab92a;},_0x4ffc56=>o(_0xb3719b,'ELEMENT_LIST_ITEM',_0x4ffc56));}['_registerLegacyDescription'](){const _0x144e67=this['editor'],_0x3be4d7=_0x144e67['locale'];function _0x55b52e(_0xd89b08){const _0x2904c8=_0x144e67['commands']['get']('bulletedList')['value'],_0x480ff4=_0x144e67['commands']['get']('numberedList')['value'];return'numberedList'===_0xd89b08?_0x2904c8:_0x480ff4;}_0x144e67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a3271){if('formatBlock'!=_0x4a3271['type'])return;const {data:_0x5759b9}=_0x4a3271;if(!_0x5759b9)return;let _0x166649,_0x5353ed,_0x81f963,_0x486e28;switch(_0x5759b9['commandName']){case'bulletedList':_0x81f963=_0x5759b9['commandParams'][0x0]['forceValue'],_0x486e28=_0x55b52e(_0x5759b9['commandName']),_0x166649=_0x81f963?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x486e28&&_0x144e67['config']['get']('list.multiBlock')||(_0x166649='*Change\x20to:*\x20%0'),_0x5353ed={'type':'format','content':o(_0x3be4d7,_0x166649,o(_0x3be4d7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x81f963=_0x5759b9['commandParams'][0x0]['forceValue'],_0x486e28=_0x55b52e(_0x5759b9['commandName']),_0x166649=_0x81f963?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x486e28&&_0x144e67['config']['get']('list.multiBlock')||(_0x166649='*Change\x20to:*\x20%0'),_0x5353ed={'type':'format','content':o(_0x3be4d7,_0x166649,o(_0x3be4d7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x166649='*Indent:*\x20%0',_0x5353ed={'type':'format','content':o(_0x3be4d7,_0x166649,o(_0x3be4d7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x166649=function(_0x37a9a4){const _0x3734c8=_0x37a9a4['getFirstRange']();let _0x43e309=_0x3734c8['start']['nodeAfter'];for(;_0x43e309&&_0x3734c8['containsItem'](_0x43e309);){if(_0x43e309['getAttribute']('listIndent')>0x0)return!0x1;_0x43e309=_0x43e309['nextSibling'];}return!0x0;}(_0x4a3271)?o(_0x3be4d7,'*Format:*\x20remove\x20from\x20%0',o(_0x3be4d7,function(_0x48e496){return'ELEMENT_'+_0x48e496['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a3271))):o(_0x3be4d7,'*Outdent:*\x20%0',o(_0x3be4d7,'ELEMENT_LIST_ITEM')),_0x5353ed={'type':'format','content':_0x166649};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5759b9['multipleBlocks']&&(_0x166649='*Merge:*\x20%0',_0x5353ed={'type':'deletion','content':o(_0x3be4d7,_0x166649,o(_0x3be4d7,'ELEMENT_LIST_ITEM'))});}return _0x5353ed;});}}function le(_0x1eeeaf){let _0x2cb721=_0x1eeeaf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2cb721;){const _0xfede74=_0x2cb721['getAttribute']('listItemId');if(!_0xfede74)return!0x1;if(_0xfede74==_0x1eeeaf['data']['newValue'])return'newValue';if(_0xfede74==_0x1eeeaf['data']['oldValue'])return'oldValue';_0x2cb721=_0x2cb721['previousSibling'];}return!0x1;}class ue extends _0x357748{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x102f16=this['editor']['config']['get']('list.properties'),_0x64f09f=this['editor']['plugins']['get']('TrackChangesEditing');_0x102f16['styles']&&(_0x64f09f['enableDefaultAttributesIntegration']('listStyle'),_0x64f09f['registerBlockAttribute']('listStyle')),_0x102f16['reversed']&&(_0x64f09f['enableDefaultAttributesIntegration']('listReversed'),_0x64f09f['registerBlockAttribute']('listReversed')),_0x102f16['startIndex']&&(_0x64f09f['enableDefaultAttributesIntegration']('listStart'),_0x64f09f['registerBlockAttribute']('listStart'));const _0x142501={'type':'format','content':''};_0x64f09f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x124bfe=this['editor']['locale'];_0x64f09f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x124bfe,'FORMAT_LIST_REVERSED')),_0x64f09f['descriptionFactory']['registerDescriptionCallback'](_0x54e96c=>{const {data:_0x5292b8}=_0x54e96c;if(_0x5292b8&&'listReversed'==_0x5292b8['key'])return null==_0x5292b8['newValue']||0x0==_0x5292b8['newValue']&&null==_0x5292b8['oldValue']?_0x142501:void 0x0;}),_0x64f09f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x124bfe,'FORMAT_LIST_START')),_0x64f09f['descriptionFactory']['registerDescriptionCallback'](_0x55b365=>{const {data:_0x2448d6}=_0x55b365;if(_0x2448d6&&'listStart'==_0x2448d6['key'])return null==_0x2448d6['newValue']||0x1==_0x2448d6['newValue']&&null==_0x2448d6['oldValue']?_0x142501:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x551676=>{if(_0x551676['batch']['isUndo'])return!0x1;let _0x1c44d4=!0x1;const _0x2e010f=_0x64f09f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x561794=>{const _0x49cd66=_0x64f09f['_getAttributeKey'](_0x561794);return'listStart'==_0x49cd66||'listReversed'==_0x49cd66;});for(const _0x29e508 of _0x2e010f){const _0x2fd1d7=_0x29e508['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2fd1d7||'customNumbered'==_0x2fd1d7)continue;_0x64f09f['_findSuggestions'](_0x29e508['getFirstRange'](),'attribute')['find'](_0x3b47ff=>'listType'==_0x64f09f['_getAttributeKey'](_0x3b47ff['suggestion']))||(_0x551676['removeMarker'](_0x29e508['getFirstMarker']()),_0x1c44d4=!0x0);}return _0x1c44d4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3f4e7c){const _0x286b6f=this['editor']['locale'],{data:_0x206d1a}=_0x3f4e7c,_0x11f46c={'type':'format','content':''};if(!_0x206d1a||'listStyle'!=_0x206d1a['key'])return;if(!_0x206d1a['oldValue'])return'default'==_0x206d1a['newValue']?_0x11f46c:{'type':'format','content':''+o(_0x286b6f,'*Set\x20format:*\x20%0',o(_0x286b6f,this['_getTranslationKeyForListStyle'](_0x206d1a['newValue'])))};if(!_0x206d1a['newValue']){if('default'==_0x206d1a['oldValue'])return _0x11f46c;let _0x220bd=_0x3f4e7c['head'];for(;_0x220bd;){if(_0x220bd['data']&&'listType'==_0x220bd['data']['key']&&_0x220bd['data']['newValue'])return _0x11f46c;_0x220bd=_0x220bd['next'];}return{'type':'format','content':''+o(_0x286b6f,'*Remove\x20format:*\x20%0',o(_0x286b6f,this['_getTranslationKeyForListStyle'](_0x206d1a['oldValue'])))};}if('default'!=_0x206d1a['newValue'])return{'type':'format','content':''+o(_0x286b6f,'*Set\x20format:*\x20%0',o(_0x286b6f,this['_getTranslationKeyForListStyle'](_0x206d1a['newValue'])))};let _0x58b38=_0x3f4e7c['head'];for(;_0x58b38;){if(_0x58b38['data']&&'listType'==_0x58b38['data']['key']&&_0x58b38['data']['newValue']&&_0x58b38['data']['oldValue'])return _0x11f46c;_0x58b38=_0x58b38['next'];}return{'type':'format','content':o(_0x286b6f,'*Set\x20format:*\x20%0',o(_0x286b6f,'ELEMENT_'+_0x3f4e7c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x25b9f2=this['editor'],_0x11b13f=_0x25b9f2['locale'];_0x25b9f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb4ea=>{if('formatBlock'!=_0x2eb4ea['type'])return;const {data:_0xac5c71}=_0x2eb4ea;if(!_0xac5c71)return;let _0x21dad1,_0x2fab42;switch(_0xac5c71['commandName']){case'listStyle':_0x21dad1='*Change\x20to:*\x20%0',_0x2fab42={'type':'format','content':o(_0x11b13f,_0x21dad1,o(_0x11b13f,this['_getTranslationKeyForListStyle'](_0xac5c71['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21dad1=_0xac5c71['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2fab42={'type':'format','content':o(_0x11b13f,_0x21dad1)};break;case'listStart':_0x21dad1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2fab42={'type':'format','content':o(_0x11b13f,_0x21dad1,_0xac5c71['commandParams'][0x0]['startIndex'])};}return _0x2fab42;});}['_getTranslationKeyForListStyle'](_0x5e0c88){return'ELEMENT_'+function(_0x343ea7){if(pe['includes'](_0x343ea7))return'bulleted';if(ye['includes'](_0x343ea7))return'numbered';return null;}(_0x5e0c88)['toUpperCase']()+'_LIST_'+_0x5e0c88['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x357748{static get['requires'](){return[_0xd05fea];}['init'](){const _0x444d42=this['editor'],_0x3182bc=_0x444d42['plugins']['get']('TrackChangesEditing'),_0x464a00=_0x444d42['commands']['get']('enter');_0x3182bc['enableCommand']('enter',()=>{_0x444d42['model']['change'](_0x207418=>{const _0x109ae4=_0x444d42['model']['document']['selection'],_0x190df7=_0x109ae4['getFirstPosition'](),_0x545a8f=_0x2242e5['fromRange'](_0x109ae4['getFirstRange']());if(_0x464a00['enterBlock'](_0x207418)){const _0x543f07=_0x444d42['model']['createPositionAt'](_0x190df7['parent']['nextSibling'],0x0),_0x26709d=_0x207418['createRange'](_0x190df7,_0x543f07);_0x3182bc['markInsertion'](_0x26709d);}else _0x207418['setSelection'](_0x207418['createRange'](_0x545a8f['end']));_0x545a8f['detach'](),_0x464a00['fire']('afterExecute',{'writer':_0x207418});});}),_0x444d42['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x444d42,'split'),{'priority':'high'}),_0x444d42['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3075ae,_0x3aebfa,_0x4315ba)=>{const _0x7822e5=_0x4315ba['mapper']['markerNameToElements'](_0x3aebfa['markerName']);if(_0x7822e5){for(const _0x17cb04 of _0x7822e5)_0x17cb04['hasClass']('ck-suggestion-marker-split')&&(_0x4315ba['mapper']['unbindElementFromMarkerName'](_0x17cb04,_0x3aebfa['markerName']),_0x4315ba['writer']['remove'](_0x17cb04));}},{'priority':'high'}),_0x444d42['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x31b7e1,_0x1619b2,_0x411c34)=>{_0x411c34['options']['showSuggestionHighlights']&&_e(_0x444d42,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x31b7e1,_0x1619b2,_0x411c34);},{'priority':'high'});}}class J extends _0x357748{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5263d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5263d3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5263d3['enableCommand']('findNext'),_0x5263d3['enableCommand']('findPrevious'),_0x5263d3['enableCommand']('replace'),_0x5263d3['enableCommand']('replaceAll');}['handleFindCommand'](_0x1f94c8,_0xa37b94,_0x1d21f6={}){const _0x5c90d3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1f94c8(_0x2aa6c3=>('string'==typeof _0xa37b94?_0x5c90d3['findByTextCallback'](_0xa37b94,_0x1d21f6):_0xa37b94)(_0x2aa6c3)['filter'](_0x38d759=>!0x1===this['_isInDeletionRange'](_0x38d759,_0x2aa6c3['item'])),_0x1d21f6);}['_isInDeletionRange'](_0x5030dc,_0x328632){const _0xfd3147=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x328632,_0x5030dc['start']),this['editor']['model']['createPositionAt'](_0x328632,_0x5030dc['end']));for(const _0x574ec4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xfd3147['getIntersection'](_0x574ec4['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 _0x357748{['afterInit'](){const _0x3f3807=this['editor']['locale'],_0x362f4a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5479db,commandName:_0x10f813}of ro)this['editor']['plugins']['has'](_0x5479db)&&(_0x362f4a['enableDefaultAttributesIntegration'](_0x10f813),_0x362f4a['registerInlineAttribute'](_0x10f813));_0x3f3807['t'],_0x362f4a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3f3807,'FORMAT_FONT_SIZE')),_0x362f4a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3f3807,'FORMAT_FONT_FAMILY')),_0x362f4a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3f3807,'FORMAT_FONT_COLOR')),_0x362f4a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3f3807,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x274a27=this['editor'],_0x35ebf5=_0x274a27['locale'];_0x274a27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12c8c0=>{const _0x246c89=_0x35ebf5['t'];if('formatInline'!=_0x12c8c0['type'])return;const {data:_0x1ebef3}=_0x12c8c0;if(null!=_0x1ebef3){if('fontSize'==_0x1ebef3['commandName']){const _0x14c841=_0x1ebef3['commandParams'][0x0]['value'];if(_0x14c841){const _0x35a90e=_0x246c89(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x395653=>_0x395653['model']==_0x14c841)['title'])['toLowerCase']();return{'type':'format','content':o(_0x35ebf5,'*Set\x20font\x20size:*\x20%0',_0x35a90e)};}return{'type':'format','content':o(_0x35ebf5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1ebef3['commandName']){const _0x9da149=_0x1ebef3['commandParams'][0x0]['value'];return _0x9da149?{'type':'format','content':o(_0x35ebf5,'*Set\x20font\x20family:*\x20%0',_0x9da149)}:{'type':'format','content':o(_0x35ebf5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1ebef3['commandName']){const _0x3db2eb=_0x1ebef3['commandParams'][0x0]['value'];if(_0x3db2eb){const _0x7a02d=_0x52a58c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1de496=>_0x1de496['model']==_0x3db2eb);let _0x4fe1be=_0x3db2eb,_0xb89946='';return _0x7a02d&&(_0x4fe1be=_0x7a02d['label'],_0xb89946=_0x246c89(_0x4fe1be)['toLowerCase']()),{'type':'format','content':o(_0x35ebf5,'*Set\x20font\x20color:*\x20%0',_0xb89946)['trim'](),'color':{'value':_0x3db2eb,'title':_0xb89946||_0x4fe1be}};}return{'type':'format','content':o(_0x35ebf5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1ebef3['commandName']){const _0x10ce60=_0x1ebef3['commandParams'][0x0]['value'];if(_0x10ce60){const _0x37cf17=_0x52a58c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x369dd0=>_0x369dd0['model']==_0x10ce60);let _0x55c66a=_0x10ce60,_0x42ebb8='';return _0x37cf17&&(_0x55c66a=_0x37cf17['label'],_0x42ebb8=_0x246c89(_0x55c66a)['toLowerCase']()),{'type':'format','content':o(_0x35ebf5,'*Set\x20font\x20background\x20color:*\x20%0',_0x42ebb8)['trim'](),'color':{'value':_0x10ce60,'title':_0x42ebb8||_0x55c66a}};}return{'type':'format','content':o(_0x35ebf5,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x357748{['afterInit'](){const _0x4774da=this['editor'],_0x4f9987=_0x4774da['plugins']['get']('TrackChangesEditing'),_0x31bba1=_0x4774da['commands']['get']('copyFormat'),_0x49b3bc=_0x4774da['commands']['get']('pasteFormat');_0x31bba1&&_0x49b3bc&&(_0x4f9987['enableDefaultAttributesIntegration']('pasteFormat'),_0x4f9987['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x9161ce=this['editor'],_0x44ec8f=_0x9161ce['locale'];_0x9161ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x322e42=>{if('formatBlock'!=_0x322e42['type']&&'formatInline'!=_0x322e42['type'])return;const {data:_0x2551a6}=_0x322e42;if(_0x2551a6&&'pasteFormat'===_0x2551a6['commandName']){const _0x470f3d=[],_0x4bcdb0=_0x2551a6['commandParams'][0x0];for(const [_0x210e7f,_0xd03f63]of Object['entries'](_0x4bcdb0))_0x470f3d['push'](so(_0x9161ce,_0x210e7f,_0xd03f63));return _0x470f3d['length']?{'type':'format','content':o(_0x44ec8f,'*Set\x20format\x20to:*\x20%0',_0x470f3d['join'](',\x20'))}:{'type':'format','content':o(_0x44ec8f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1dd528,_0x41f74d,_0x10c8d2){const _0x51a23d=_0x1dd528['locale']['t'],_0x248610=_0x41f74d['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ba36e=_0x51a23d(_0x248610['charAt'](0x0)['toUpperCase']()+_0x248610['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x10c8d2)return _0x2ba36e;if('fontColor'===_0x41f74d||'fontBackgroundColor'===_0x41f74d){const _0x1f227a=_0x52a58c(_0x1dd528['config']['get']('fontColor.colors'))['find'](_0x28754e=>_0x28754e['model']==_0x10c8d2);return _0x2ba36e+'\x20('+(_0x1f227a?_0x51a23d(_0x1f227a['label'])['toLowerCase']():_0x10c8d2)+')';}if('fontSize'===_0x41f74d&&isNaN(parseFloat(_0x10c8d2))){const _0x2830d6=_0x1dd528['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1dd528['config']['get']('fontSize.options'))['find'](_0x4bbc3a=>_0x4bbc3a['model']==_0x10c8d2);return _0x2ba36e+'\x20('+(_0x2830d6?_0x51a23d(_0x2830d6['title'])['toLowerCase']():_0x10c8d2)+')';}return _0x2ba36e+'\x20('+_0x10c8d2+')';}class Y extends _0x357748{['afterInit'](){const _0x574271=this['editor'];if(!_0x574271['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x574271['config']['get']('heading.options');const _0x2621a0=_0x574271['locale'],_0x4ddcfb=_0x574271['plugins']['get']('TrackChangesEditing');_0x4ddcfb['enableDefaultAttributesIntegration']('heading');for(const _0x731827 of this['_headingOptions'])'paragraph'!=_0x731827['model']&&_0x4ddcfb['descriptionFactory']['registerElementLabel'](_0x731827['model'],_0x4861ba=>{const _0x194493=this['_getHeadingLevel'](_0x731827['model']);return null!==_0x194493?_0x1f7485(_0x4861ba,_0x194493):_0x3fe78d(_0x4861ba,_0x731827['title']);});function _0x1f7485(_0x280823,_0x4a6150){return o(_0x2621a0,'ELEMENT_HEADING',[_0x280823,_0x4a6150]);}function _0x3fe78d(_0x3fedc7,_0x51aa29){return o(_0x2621a0,'ELEMENT_HEADING_CUSTOM',[_0x3fedc7,_0x51aa29]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12401f=this['editor'],_0xc6a1cb=_0x12401f['locale'];function _0x5a6d76(_0x47e7fe,_0x36aaad){return o(_0xc6a1cb,'ELEMENT_HEADING_CUSTOM',[_0x47e7fe,_0x36aaad]);}_0x12401f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a0c5=>{if('formatBlock'!=_0x34a0c5['type'])return;const {data:_0x5c1e15}=_0x34a0c5;if(_0x5c1e15&&'heading'==_0x5c1e15['commandName']){const _0x216215=_0x5c1e15['commandParams'][0x0]['value'],_0x4a1b9f=this['_getHeadingLevel'](_0x216215);if(null!==_0x4a1b9f)return{'type':'format','content':o(_0xc6a1cb,'*Change\x20to:*\x20%0',(_0xb2c020=0x1,_0x271025=_0x4a1b9f,o(_0xc6a1cb,'ELEMENT_HEADING',[_0xb2c020,_0x271025])))};const _0x493820=this['_headingOptions']['find'](_0x3c5b12=>_0x3c5b12['model']===_0x216215)['title'];return{'type':'format','content':o(_0xc6a1cb,'*Change\x20to:*\x20%0',_0x5a6d76(0x1,_0x493820))};}var _0xb2c020,_0x271025;});}['_getHeadingLevel'](_0x101349){var _0x31e640,_0x175151;const _0xd6eb34=_0x101349['match'](/^heading(\d+)/);if(_0xd6eb34)return _0xd6eb34[0x1];const _0x482396=null===(_0x31e640=this['_headingOptions'])||void 0x0===_0x31e640?void 0x0:_0x31e640['find'](_0x241878=>_0x241878['model']==_0x101349);if(_0x482396&&_0x482396['view']){const _0x5958fa=_0x482396['view'],_0x500cf1=(null!==(_0x175151=_0x5958fa['name'])&&void 0x0!==_0x175151?_0x175151:_0x5958fa)['match'](/^h(\d+)/);if(_0x500cf1)return _0x500cf1[0x1];}return null;}}class Z extends _0x357748{['afterInit'](){const _0x434c80=this['editor'];if(!_0x434c80['plugins']['has']('HighlightEditing'))return;const _0x525fc0=_0x434c80['plugins']['get']('TrackChangesEditing'),_0x3a71f7=_0x434c80['locale'];_0x525fc0['enableDefaultAttributesIntegration']('highlight'),_0x525fc0['registerInlineAttribute']('highlight'),_0x525fc0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3a71f7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e985b=this['editor'],_0x13aab4=_0x4e985b['locale'];_0x4e985b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b9501=>{if('formatInline'!=_0x4b9501['type'])return;const {data:_0x106b1b}=_0x4b9501;if(_0x106b1b&&'highlight'==_0x106b1b['commandName']){const _0x16235f=_0x13aab4['t'],_0x4e339d=_0x106b1b['commandParams'][0x0]['value'];if(_0x4e339d){const _0xf6d07d=_0x4e985b['config']['get']('highlight.options')['find'](_0x425974=>_0x425974['model']==_0x4e339d),_0x4175a8=_0x16235f(_0xf6d07d['title'])['toLowerCase']();return{'type':'format','content':o(_0x13aab4,'*Set\x20highlight:*\x20%0',_0x4175a8),'color':{'value':_0xf6d07d['color'],'title':_0xf6d07d['title']}};}return{'type':'format','content':o(_0x13aab4,'*Remove\x20highlight*',o(_0x13aab4,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x357748{['afterInit'](){const _0x2c5acd=this['editor'];if(!_0x2c5acd['plugins']['has']('HorizontalLineEditing'))return;_0x2c5acd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c462e=_0x2c5acd['plugins']['get']('TrackChangesEditing'),_0x3674b6=_0x2c5acd['locale'];_0x4c462e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5c7eb2=>o(_0x3674b6,'ELEMENT_HORIZONTAL_LINE',_0x5c7eb2)),_0x2c5acd['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x14562e,{writer:_0x23fc7a,options:_0x553bc2})=>{if(!_0x553bc2['showSuggestionHighlights'])return null;const _0x3d2b61=_0x23fc7a['createContainerElement']('div'),_0x740770=_0x23fc7a['createEmptyElement']('hr');return _0x23fc7a['addClass']('ck-horizontal-line',_0x3d2b61),_0x23fc7a['insert'](_0x23fc7a['createPositionAt'](_0x3d2b61,0x0),_0x740770),_0x3d2b61;},'converterPriority':'high'});}}class et extends _0x357748{['afterInit'](){const _0x33bbb5=this['editor'];if(!_0x33bbb5['plugins']['has']('HtmlEmbed'))return;const _0x29f904=_0x33bbb5['plugins']['get']('TrackChangesEditing'),_0x8a40c8=_0x33bbb5['locale'];_0x29f904['descriptionFactory']['registerElementLabel']('rawHtml',_0x215b0e=>o(_0x8a40c8,'ELEMENT_HTML_EMBED',_0x215b0e)),_0x29f904['enableDefaultAttributesIntegration']('htmlEmbed'),_0x29f904['registerBlockAttribute']('value'),_0x29f904['descriptionFactory']['registerDescriptionCallback'](_0x1c8b5a=>{if('attribute'!=_0x1c8b5a['type'])return;const {data:_0x2ecc3b}=_0x1c8b5a;if(_0x2ecc3b&&'value'==_0x2ecc3b['key']&&_0x1c8b5a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3bb676=o(_0x8a40c8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x8a40c8,'*Change\x20%0\x20content*',_0x3bb676)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fc36e=this['editor'],_0x837563=_0x1fc36e['locale'];_0x1fc36e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x311c41=>{if('formatBlock'!=_0x311c41['type'])return;const {data:_0x3890bb}=_0x311c41;if(_0x3890bb&&'htmlEmbed'==_0x3890bb['commandName']){const _0x5ebcd8=o(_0x837563,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x837563,'*Change\x20%0\x20content*',_0x5ebcd8)};}});}}class it extends _0x357748{['afterInit'](){const _0x3fbb6f=this['editor'];if(!_0x3fbb6f['plugins']['has']('ImageEditing'))return;const _0x4b9c17=_0x3fbb6f['plugins']['get']('TrackChangesEditing'),_0x36d73d=_0x3fbb6f['plugins']['get']('ImageUtils'),_0x55d11e=_0x3fbb6f['locale'];_0x4b9c17['enableCommand']('insertImage'),_0x4b9c17['descriptionFactory']['registerElementLabel']('imageBlock',_0xc10090=>o(_0x55d11e,'ELEMENT_IMAGE',_0xc10090)),_0x4b9c17['descriptionFactory']['registerElementLabel']('imageInline',_0x183846=>o(_0x55d11e,'ELEMENT_INLINE_IMAGE',_0x183846)),_0x4b9c17['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x55d11e,'ELEMENT_CAPTION')),_0x3fbb6f['plugins']['has']('ImageUploadEditing')&&_0x4b9c17['enableCommand']('uploadImage'),_0x3fbb6f['plugins']['has']('ImageBlockEditing')&&_0x3fbb6f['plugins']['has']('ImageInlineEditing')&&(_0x4b9c17['enableCommand']('imageTypeInline',(_0x194963,_0x587c2c)=>{const _0x2f8178=_0x36d73d['getClosestSelectedImageElement'](_0x3fbb6f['model']['document']['selection']);_0x3fbb6f['model']['change'](()=>{_0x4b9c17['markBlockFormat'](_0x2f8178,{'commandName':'imageTypeInline','commandParams':[_0x587c2c]},[],'convertBlockImageToInline');});}),_0x4b9c17['enableCommand']('imageTypeBlock',(_0x18897e,_0x5ace54)=>{_0x3fbb6f['model']['change'](_0x5d25f6=>{let _0x332f7b=_0x36d73d['getClosestSelectedImageElement'](_0x3fbb6f['model']['document']['selection']),_0x2115d5=_0x5d25f6['createRangeOn'](_0x332f7b);const _0x58808a=_0x135ce5['fromPosition'](_0x2115d5['start'],'toPrevious'),_0x28edce=_0x135ce5['fromPosition'](_0x2115d5['end'],'toNext');_0x4b9c17['forceDefaultExecution'](()=>_0x18897e(_0x5ace54)),_0x332f7b=_0x36d73d['getClosestSelectedImageElement'](_0x3fbb6f['model']['document']['selection']),_0x2115d5=_0x5d25f6['createRangeOn'](_0x332f7b);const _0x288004=_0x5d25f6['createRange'](_0x58808a,_0x28edce);_0x58808a['detach'](),_0x28edce['detach'](),_0x4b9c17['markBlockFormat'](_0x332f7b,{'commandName':'imageTypeInline','commandParams':[_0x5ace54]},[],'convertInlineImageToBlock'),_0x288004['start']['isBefore'](_0x2115d5['start'])&&_0x4b9c17['markInsertion'](_0x5d25f6['createRange'](_0x288004['start'],_0x2115d5['start']),'convertInlineImageToBlock'),_0x2115d5['end']['isBefore'](_0x288004['end'])&&_0x4b9c17['markInsertion'](_0x5d25f6['createRange'](_0x2115d5['end'],_0x288004['end']),'convertInlineImageToBlock');});}),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4b9c17['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x37cf1f])=>{const _0x4879a6=_0x4b9c17['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2498d1=_0x37cf1f['start'],_0x1e4cd7=_0x37cf1f['end'];const _0x1a03a3=_0x3fbb6f['model']['schema']['getNearestSelectionRange'](_0x2498d1,'backward'),_0x5eb2fc=_0x3fbb6f['model']['schema']['getNearestSelectionRange'](_0x1e4cd7,'forward');_0x1a03a3['isCollapsed']&&(_0x2498d1=_0x1a03a3['start']),_0x5eb2fc['isCollapsed']&&(_0x1e4cd7=_0x5eb2fc['end']),_0x4879a6([_0x3fbb6f['model']['createRange'](_0x2498d1,_0x1e4cd7)]);}),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5c9017),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5c9017)),_0x3fbb6f['plugins']['has']('ImageCaptionEditing')&&(_0x4b9c17['enableCommand']('toggleImageCaption',(_0x1b0bef,_0x57816e)=>{const _0x2c04db=_0x3fbb6f['plugins']['get']('ImageCaptionUtils');let _0x4a3a04=_0x36d73d['getClosestSelectedImageElement'](_0x3fbb6f['model']['document']['selection']),_0x2c3ec8=_0x2c04db['getCaptionFromImageModelElement'](_0x4a3a04);_0x3fbb6f['model']['change'](()=>{if(_0x2c3ec8)return void _0x4b9c17['markDeletion'](_0x3fbb6f['model']['createRangeOn'](_0x2c3ec8));const _0x549623=_0x36d73d['isBlockImage'](_0x4a3a04);_0x1b0bef(_0x57816e),_0x4a3a04=_0x36d73d['getClosestSelectedImageElement'](_0x3fbb6f['model']['document']['selection']),_0x2c3ec8=_0x2c04db['getCaptionFromImageModelElement'](_0x4a3a04),_0x4b9c17['markInsertion'](_0x3fbb6f['model']['createRangeOn'](_0x2c3ec8),_0x549623?null:'imageCaption');});}),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5c9017));const _0x15e7c8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xfa87d8(_0x4e5138,_0x152290){const _0xf689c1=_0x15e7c8['findIndex'](({type:_0x35be26,subType:_0x279915})=>_0x4e5138['type']==_0x35be26&&_0x4e5138['subType']==_0x279915),_0x1db0e4=_0x15e7c8['findIndex'](({type:_0x4dd55d,subType:_0x3df970})=>_0x152290['type']==_0x4dd55d&&_0x152290['subType']==_0x3df970);if(_0xf689c1<0x0||_0x1db0e4<0x0)return!0x1;const _0x57da95=_0x4e5138['getFirstRange'](),_0x5bf9f1=_0x152290['getFirstRange']();if((0x0==_0xf689c1||0x1==_0xf689c1)&&0x2==_0x1db0e4&&_0x57da95['isIntersecting'](_0x5bf9f1))return!0x0;if(0x2==_0xf689c1&&0x3==_0x1db0e4){const _0x372530=_0x4b9c17['_findSuggestions'](_0x57da95,'insertion')['filter'](({suggestion:_0x33c383,meta:_0x414e6a})=>_0x414e6a['isOwn']&&'convertInlineImageToBlock'==_0x33c383['subType']);if(_0x372530['length']>0x1&&_0x5bf9f1['end']['isEqual'](_0x57da95['start']))return!0x0;if(0x1==_0x372530['length']&&(_0x57da95['start']['isEqual'](_0x5bf9f1['end'])||_0x57da95['end']['isEqual'](_0x5bf9f1['start'])))return!0x0;}if(0x3==_0xf689c1&&0x3==_0x1db0e4&&_0x57da95['start']['isBefore'](_0x5bf9f1['start'])){const _0x17d7ff=_0x57da95['end']['nodeAfter'],_0x27414c=_0x5bf9f1['start']['nodeBefore'];return _0x36d73d['isBlockImage'](_0x17d7ff)&&_0x17d7ff===_0x27414c;}return!0x1;}function _0x5c9017(_0x516c91,_0x3f2621){return _0xfa87d8(_0x516c91,_0x3f2621)?[_0x516c91,_0x3f2621]:_0xfa87d8(_0x3f2621,_0x516c91)?[_0x3f2621,_0x516c91]:null;}_0x3fbb6f['plugins']['has']('ImageResize')&&(_0x4b9c17['enableDefaultAttributesIntegration']('resizeImage'),_0x4b9c17['registerBlockAttribute']('resizedWidth'),_0x4b9c17['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x55d11e,'FORMAT_IMAGE_SIZE'))),_0x3fbb6f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4b9c17['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4b9c17['registerBlockAttribute']('alt')),_0x4b9c17['descriptionFactory']['registerDescriptionCallback'](_0x15b8db=>{if(!!_0x15e7c8['find'](({type:_0x176bca,subType:_0xa9ee05})=>_0x15b8db['type']==_0x176bca&&_0x15b8db['subType']==_0xa9ee05))return _0x15b8db['previous']?{}:void 0x0;}),_0x4b9c17['descriptionFactory']['registerDescriptionCallback'](_0xc22d10=>{if('insertion'==_0xc22d10['type']||'deletion'==_0xc22d10['type']){const _0x4a8a66=_0xc22d10['getContainedElement']();if(_0x4a8a66&&_0x4a8a66['is']('element','caption'))return{'type':'insertion'==_0xc22d10['type']?'addObject':'removeObject','element':_0x4a8a66,'quantity':0x1};}}),_0x4b9c17['descriptionFactory']['registerDescriptionCallback'](_0x2b386=>'formatBlock'==_0x2b386['type']&&'convertInlineImageToBlock'==_0x2b386['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2b386['type']&&'convertBlockImageToInline'==_0x2b386['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4b9c17['descriptionFactory']['registerDescriptionCallback'](_0x207199=>{if('attribute'!=_0x207199['type'])return;const {data:_0x4210c3}=_0x207199;if(!_0x4210c3||'alt'!=_0x4210c3['key'])return;const _0x309db2=_0x4210c3['newValue'];return _0x309db2?{'type':'format','content':o(_0x55d11e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x309db2+'\x22')}:{'type':'format','content':o(_0x55d11e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3028f8=this['editor'],_0x5cb87b=_0x3028f8['locale'];_0x3028f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34d30b=>{if('formatBlock'!=_0x34d30b['type']&&'formatInline'!=_0x34d30b['type'])return;const {data:_0x386c1e}=_0x34d30b;if(_0x386c1e){if('imageTextAlternative'==_0x386c1e['commandName']){const _0x386f0f=_0x386c1e['commandParams'][0x0]['newValue'];return _0x386f0f?{'type':'format','content':o(_0x5cb87b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x386f0f+'\x22')}:{'type':'format','content':o(_0x5cb87b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x386c1e['commandName']){const _0x2f2368=_0x386c1e['commandParams'][0x0]['width'];return _0x2f2368?{'type':'format','content':o(_0x5cb87b,'*Set\x20image\x20width:*\x20%0',_0x2f2368)}:{'type':'format','content':o(_0x5cb87b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x357748{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x24a197=this['editor']['locale'],_0x44cb19=this['editor']['plugins']['get']('TrackChangesEditing');_0x44cb19['enableDefaultAttributesIntegration']('replaceImageSource'),_0x44cb19['registerBlockAttribute']('src'),_0x44cb19['descriptionFactory']['registerDescriptionCallback'](_0x5e97f9=>{if('attribute'!=_0x5e97f9['type'])return;const {data:_0x5853fd}=_0x5e97f9;return _0x5853fd&&'src'==_0x5853fd['key']?_0x5853fd['newValue']&&_0x5853fd['oldValue']?{'type':'format','content':o(_0x24a197,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x469323=this['editor']['plugins']['get']('TrackChangesEditing');_0x469323['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x469323['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x469323['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x469323['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9d2e8c=this['editor'],_0x10f4ee=_0x9d2e8c['locale'];_0x9d2e8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1909cf=>{if('formatBlock'!=_0x1909cf['type']&&'formatInline'!=_0x1909cf['type'])return;const {data:_0x40832b}=_0x1909cf;if(!_0x40832b||'replaceImageSource'!=_0x40832b['commandName'])return;return{'type':'format','content':o(_0x10f4ee,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x357748{['afterInit'](){const _0x324436=this['editor'];if(!_0x324436['plugins']['has']('ImageStyleEditing'))return;const _0x53962b=_0x324436['plugins']['get']('TrackChangesEditing'),_0x1ed0bf=_0x324436['plugins']['get']('ImageUtils'),_0x29c285={};_0x53962b['enableCommand']('imageStyle',(_0x1e376a,_0x5767c8)=>{const _0x546829=_0x324436['plugins']['get']('Users')['me'],_0x469c00=_0x324436['commands']['get']('imageStyle');let _0x1e956c=_0x1ed0bf['getClosestSelectedImageElement'](_0x324436['model']['document']['selection']),_0x47d09d=_0x324436['model']['createRangeOn'](_0x1e956c),_0x3cf29a=_0x469c00['value'];if(_0x3cf29a==_0x5767c8['value'])return;const _0x2fc049={'commandName':'imageStyle','commandParams':[_0x5767c8],'formatGroupId':_0x501bc0()};_0x324436['model']['change'](()=>{if(_0x53962b['getSuggestions']()['filter'](_0x2b06b2=>_0x2b06b2['isInContent']&&_0x546829==_0x2b06b2['author']&&('formatBlock'==_0x2b06b2['type']||'formatInline'==_0x2b06b2['type'])&&('imageStylePreApply'==_0x2b06b2['subType']||'imageStylePostApply'==_0x2b06b2['subType'])&&_0x2b06b2['getFirstRange']()['isEqual'](_0x47d09d))['forEach'](_0x3cad92=>_0x53962b['discardSuggestion'](_0x3cad92['head'])),_0x1e956c=_0x1ed0bf['getClosestSelectedImageElement'](_0x324436['model']['document']['selection']),_0x47d09d=_0x324436['model']['createRangeOn'](_0x1e956c),_0x469c00['refresh'](),_0x324436['commands']['get']('imageTypeInline')['refresh'](),_0x324436['commands']['get']('imageTypeBlock')['refresh'](),_0x3cf29a=_0x469c00['value'],_0x3cf29a!=_0x5767c8['value'])return _0x1ed0bf['isInlineImage'](_0x1e956c)&&_0x469c00['shouldConvertImageType'](_0x5767c8['value'],_0x1e956c)?(_0x1e376a({..._0x5767c8,'setImageSizes':!0x1}),_0x1e956c=_0x1ed0bf['getClosestSelectedImageElement'](_0x324436['model']['document']['selection']),void _0x53962b['markBlockFormat'](_0x1e956c,{..._0x2fc049,'commandReversedParams':[{'value':_0x3cf29a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1ed0bf['isBlockImage'](_0x1e956c)?_0x53962b['markBlockFormat'](_0x1e956c,_0x2fc049,[],'imageStylePostApply'):_0x53962b['markInlineFormat'](_0x47d09d,_0x2fc049,'imageStylePostApply'));});});for(const _0x5b20a9 of _0x324436['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x29c285[_0x5b20a9['name']]=_0x5b20a9['title']['toLowerCase']();_0x53962b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x53962b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x53962b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x53962b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3a30b1])=>{_0x1ed0bf['setImageNaturalSizeAttributes'](_0x3a30b1['getContainedElement']());}),_0x53962b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x12e31f,_0x4cb4b3)=>{_0x53962b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x12e31f,{'commandName':_0x4cb4b3['commandName'],'commandParams':_0x4cb4b3['commandReversedParams']});}),_0x53962b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1e3793,_0x58a904){if(_0x147689(_0x1e3793,_0x58a904))return[_0x1e3793,_0x58a904];if(_0x147689(_0x58a904,_0x1e3793))return[_0x58a904,_0x1e3793];return null;});const _0x51a70a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x147689(_0xf95f3a,_0x4fa872){const _0x47f87c=_0x51a70a['findIndex'](({type:_0x9130f0,subType:_0x39ac52})=>_0xf95f3a['type']==_0x9130f0&&_0xf95f3a['subType']==_0x39ac52),_0x2bb1dd=_0x51a70a['findIndex'](({type:_0x4f74b3,subType:_0x52564a})=>_0x4fa872['type']==_0x4f74b3&&_0x4fa872['subType']==_0x52564a);if(_0x47f87c<0x0||_0x2bb1dd<0x0)return!0x1;const _0x167112=_0xf95f3a['getFirstRange'](),_0x470e74=_0x4fa872['getFirstRange']();if((0x0==_0x47f87c||0x1==_0x47f87c)&&0x2==_0x2bb1dd&&_0x167112['isIntersecting'](_0x470e74))return!0x0;if(0x2==_0x47f87c&&0x3==_0x2bb1dd){const _0xc08d52=_0x53962b['_findSuggestions'](_0x167112,'insertion')['filter'](({suggestion:_0x1283bf,meta:_0x4b5e82})=>_0x4b5e82['isOwn']&&'convertInlineImageToBlock'==_0x1283bf['subType']);if(_0xc08d52['length']>0x1&&_0x470e74['end']['isEqual'](_0x167112['start']))return!0x0;if(0x1==_0xc08d52['length']&&(_0x167112['start']['isEqual'](_0x470e74['end'])||_0x167112['end']['isEqual'](_0x470e74['start'])))return!0x0;}if(0x3==_0x47f87c&&0x3==_0x2bb1dd&&_0x167112['start']['isBefore'](_0x470e74['start'])){const _0x147433=_0x167112['end']['nodeAfter'],_0x109913=_0x470e74['start']['nodeBefore'];return _0x1ed0bf['isBlockImage'](_0x147433)&&_0x147433===_0x109913;}return!0x1;}_0x324436['model']['document']['registerPostFixer'](()=>{let _0x23f55a=!0x1;const _0xfeb417=Array['from'](_0x324436['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4171fe,data:_0x462cb9}of _0xfeb417){const {group:_0x2d4f20,type:_0x801f7a,subType:_0x62055a,id:_0x1083a1}=_0x53962b['_splitMarkerName'](_0x4171fe);if('suggestion'==_0x2d4f20&&_0x53962b['hasSuggestion'](_0x1083a1)){if('formatBlock'==_0x801f7a&&('imageStylePreApply'==_0x62055a||'imageStylePostApply'==_0x62055a)){const _0x5b7c31=_0x53962b['getSuggestion'](_0x1083a1);if(_0x462cb9['newRange']){const _0x45bb7e=_0x5b7c31['getFirstRange']()['getContainedElement']();if(_0x1ed0bf['isBlockImage'](_0x45bb7e))continue;_0x53962b['discardSuggestion'](_0x5b7c31),_0x23f55a=!0x0;}}if('insertion'==_0x801f7a&&'imageCaption'==_0x62055a&&!_0x462cb9['newRange']){const _0x283c69=_0x53962b['getSuggestion'](_0x1083a1);_0x283c69['next']&&_0x283c69['next']['isInContent']&&(_0x53962b['discardSuggestion'](_0x283c69['next']),_0x23f55a=!0x0);}}}return _0x23f55a;}),this['_registerLegacyDescription'](_0x29c285);}['_registerLegacyDescription'](_0x18b286){const _0x79011d=this['editor'],_0x250593=_0x79011d['locale'];_0x79011d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x102ae5=>{if('formatBlock'!=_0x102ae5['type']&&'formatInline'!=_0x102ae5['type'])return;const {data:_0x444694}=_0x102ae5;if(!_0x444694||'imageStyle'!=_0x444694['commandName'])return;const _0x5d772b=_0x444694['commandParams'][0x0]['value'];return _0x3de931('side'===_0x5d772b?o(_0x250593,'FORMAT_SIDE_IMAGE'):_0x18b286[_0x5d772b]||_0x5d772b);function _0x3de931(_0x9dfadf){return{'type':'format','content':o(_0x250593,'*Format:*\x20%0',_0x9dfadf)};}});}}class ot extends _0x357748{['afterInit'](){const _0x160ffb=this['editor'],_0x40363e=_0x160ffb['commands']['get']('importWord'),_0x14148b=_0x160ffb['commands']['get']('trackChanges');_0x40363e&&(_0x40363e['on']('execute',(_0x2842bb,[,_0x202391])=>{this['_trackChangesValueDuringImport']=_0x14148b['value'],_0x202391['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x40363e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x40363e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x14148b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x160ffb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x596a7d,_0x4d2c5a){const {suggestions:_0x40abd4}=_0x4d2c5a,_0x537404=this['editor']['commands']['get']('trackChanges'),_0x130d1a=_0x537404['value'];this['_trackChangesValueDuringImport']!==_0x130d1a&&(_0x537404['execute'](),this['_trackChangesExecuted']=!0x0),_0x40abd4&&_0x40abd4['forEach'](({id:_0x54db1b,type:_0x371ca7,author:_0x1bbf8f,created_at:_0x3a2af6})=>{const _0x389026={'id':_0x54db1b,'type':_0x371ca7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1bbf8f,'createdAt':_0x3a2af6?new Date(_0x3a2af6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x389026);});}constructor(_0x5dc6e9){super(_0x5dc6e9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x357748{['afterInit'](){const _0x313096=this['editor'],_0x909d0a=_0x313096['plugins']['get']('TrackChangesEditing');if(_0x313096['plugins']['has']('IndentEditing')&&(_0x909d0a['enableCommand']('indent'),_0x909d0a['enableCommand']('outdent')),_0x313096['plugins']['has']('IndentBlock')){for(const _0x588d47 of['indentBlock','outdentBlock'])_0x909d0a['enableDefaultAttributesIntegration'](_0x588d47);}const _0xa785f5=_0x313096['locale'];_0x909d0a['registerBlockAttribute']('blockIndent'),_0x909d0a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xa785f5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28edae=this['editor'],_0x153f68=_0x28edae['locale'],_0x87d2a1=_0x28edae['plugins']['get']('TrackChangesEditing');_0x87d2a1['descriptionFactory']['registerDescriptionCallback'](_0x11da60=>{if('formatBlock'!=_0x11da60['type'])return;const {data:_0x226e7e}=_0x11da60;if(!_0x226e7e)return;if('indentBlock'!=_0x226e7e['commandName']&&'outdentBlock'!=_0x226e7e['commandName'])return;const _0x4cfe32=_0x11da60['getItems']()[0x0],_0x347078=_0x87d2a1['descriptionFactory']['getItemLabel'](_0x4cfe32);return'indentBlock'==_0x226e7e['commandName']?{'type':'format','content':o(_0x153f68,'*Indent:*\x20%0',_0x347078)}:'outdentBlock'==_0x226e7e['commandName']?{'type':'format','content':o(_0x153f68,'*Outdent:*\x20%0',_0x347078)}:void 0x0;});}}class at extends _0x357748{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x357748{['afterInit'](){const _0x548e3a=this['editor'];if(!_0x548e3a['plugins']['has']('LinkEditing'))return;const _0xb77e24=_0x548e3a['plugins']['get']('TrackChangesEditing'),_0x298ed6=_0x548e3a['commands']['get']('link');_0xb77e24['enableDefaultAttributesIntegration']('link'),_0xb77e24['enableDefaultAttributesIntegration']('unlink'),_0xb77e24['registerInlineAttribute']('linkHref');for(const _0x19b8de of _0x298ed6['manualDecorators'])_0xb77e24['registerInlineAttribute'](_0x19b8de['id']),_0xb77e24['descriptionFactory']['registerAttributeLabel'](_0x19b8de['id'],'link\x20('+_0x19b8de['label']['toLowerCase']()+')');_0xb77e24['descriptionFactory']['registerDescriptionCallback'](_0x1630b5=>{if('attribute'!=_0x1630b5['type'])return;const {data:_0x3052e7}=_0x1630b5;if(!_0x3052e7||'linkHref'!=_0x3052e7['key'])return;const _0x5914eb=_0x3052e7['newValue'],_0x1fd9ca=_0x548e3a['locale'];return{'type':'format','content':null==_0x5914eb?o(_0x1fd9ca,'*Remove\x20link*'):o(_0x1fd9ca,'*Set\x20link:*\x20%0','\x22'+_0x5914eb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a2396=this['editor'],_0x4976d0=_0x3a2396['locale'];_0x3a2396['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a2c39=>{if('formatInline'!=_0x1a2c39['type'])return;const {data:_0x2d46fd}=_0x1a2c39;if(_0x2d46fd){if('link'==_0x2d46fd['commandName']){const _0x5ecc60=_0x2d46fd['commandParams'][0x0];return{'type':'format','content':o(_0x4976d0,'*Set\x20link:*\x20%0','\x22'+_0x5ecc60+'\x22')};}return'unlink'==_0x2d46fd['commandName']?{'type':'format','content':o(_0x4976d0,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x357748{['afterInit'](){const _0x23d69e=this['editor'],_0x4b59b1=_0x23d69e['locale'];if(!_0x23d69e['plugins']['has']('LegacyListEditing'))return;const _0x3b9567=_0x23d69e['plugins']['get']('TrackChangesEditing'),_0x20fa1b=_0x23d69e['plugins']['has']('LegacyTodoListEditing');function _0x3208a5(_0x379136){return()=>{const _0x580cd5=_0x23d69e['model']['document']['selection'],_0x395989=_0x23d69e['commands']['get'](_0x379136);if(_0x395989['value'])return void _0x23d69e['execute']('paragraph',{});const _0xa09492=_0x379136['slice'](0x0,-0x4),_0x18adba=function(_0x48e44c,_0x572de5,_0x4a0a58){let _0xab0cdc=Array['from'](_0x48e44c)['filter'](_0x1bc9b5=>function(_0x29ef0b,_0x29942a){return _0x29942a['checkChild'](_0x29ef0b['parent'],'listItem')&&!_0x29942a['isObject'](_0x29ef0b);}(_0x1bc9b5,_0x4a0a58));_0xab0cdc=_0xab0cdc['filter'](_0x5a4d3d=>!_0x5a4d3d['is']('element','listItem')||_0x5a4d3d['getAttribute']('listType')!=_0x572de5);const _0x6b1e57=new Set();for(const _0x14dfaf of _0xab0cdc)_0x14dfaf['is']('element','listItem')?_0x6b1e57['add'](me(_0x14dfaf)):_0x6b1e57['add'](_0x14dfaf);return Array['from'](_0x6b1e57);}(_0x580cd5['getSelectedBlocks'](),_0xa09492,_0x23d69e['model']['schema']);_0x23d69e['model']['change'](()=>{for(const _0x581dc2 of _0x18adba)_0x3b9567['markBlockFormat'](_0x581dc2,{'commandName':_0x379136,'commandParams':[{'forceValue':!_0x395989['value']}],'formatGroupId':'blockName'},fe(_0x581dc2));});};}function _0x16368a(_0x23c57b){return()=>{const _0x1f0b0a=function(_0x411a2a){let _0x177e8e=Array['from'](_0x411a2a);const _0x59845c=_0x177e8e['findIndex'](_0x43586=>'listItem'!=_0x43586['name']);return _0x59845c>-0x1&&(_0x177e8e=_0x177e8e['slice'](0x0,_0x59845c)),_0x177e8e;}(_0x23d69e['model']['document']['selection']['getSelectedBlocks']()),_0xcce906=_0x23d69e['model']['createRange'](_0x23d69e['model']['createPositionAt'](_0x1f0b0a[0x0],'before'),_0x23d69e['model']['createPositionAt'](_0x1f0b0a[_0x1f0b0a['length']-0x1],'end'));_0x23d69e['model']['change'](()=>{_0x3b9567['markBlockFormat'](_0xcce906,{'commandName':_0x23c57b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28527c){const _0x468c70=new Set();for(const _0x453f08 of _0x28527c){let _0x4533bf=_0x453f08['nextSibling'];for(;_0x4533bf&&_0x4533bf['getAttribute']('listIndent')>_0x453f08['getAttribute']('listIndent');)_0x468c70['add'](_0x4533bf),_0x4533bf=_0x4533bf['nextSibling'];}return Array['from'](_0x468c70);}(_0x1f0b0a));});};}_0x3b9567['enableCommand']('numberedList',_0x3208a5('numberedList')),_0x3b9567['enableCommand']('bulletedList',_0x3208a5('bulletedList')),_0x20fa1b&&_0x3b9567['enableCommand']('todoList',_0x3208a5('todoList')),_0x3b9567['enableCommand']('indentList',_0x16368a('indentList')),_0x3b9567['enableCommand']('outdentList',_0x16368a('outdentList')),_0x20fa1b&&_0x3b9567['enableCommand']('checkTodoList',()=>{const _0xc3a468=_0x23d69e['commands']['get']('checkTodoList'),_0x4427f8=Array['from'](_0xc3a468['_selectedElements']);_0x4427f8['filter'](_0x2f722d=>_0x2f722d['getAttribute']('todoListChecked')!=_0xc3a468['value']),_0x23d69e['model']['change'](()=>{for(const _0x577c9a of _0x4427f8)_0x3b9567['markBlockFormat'](_0x577c9a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc3a468['value']}]});});}),_0x3b9567['descriptionFactory']['registerElementLabel']('listItem',_0x588f69=>o(_0x4b59b1,'ELEMENT_LIST_ITEM',_0x588f69)),_0x3b9567['descriptionFactory']['registerDescriptionCallback'](_0x4a5904=>{if('formatBlock'!=_0x4a5904['type']&&'formatInline'!=_0x4a5904['type'])return;const {data:_0x388636}=_0x4a5904;if(_0x388636){if('numberedList'==_0x388636['commandName']||'bulletedList'==_0x388636['commandName']||'todoList'==_0x388636['commandName'])switch(_0x388636['commandName']['replace']('List','')){case'bulleted':return _0x5a87a1(o(_0x4b59b1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a87a1(o(_0x4b59b1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a87a1(o(_0x4b59b1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x388636['commandName'])return{'type':'format','content':o(_0x4b59b1,'*Indent:*\x20%0',o(_0x4b59b1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x388636['commandName'])return{'type':'format','content':o(_0x4b59b1,'*Outdent:*\x20%0',o(_0x4b59b1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x388636['commandName'])return _0x388636['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b59b1,'*Check\x20item*')}:{'type':'format','content':o(_0x4b59b1,'*Uncheck\x20item*')};}function _0x5a87a1(_0x530184){return{'type':'format','content':o(_0x4b59b1,'*Change\x20to:*\x20%0',_0x530184)};}});}}function me(_0x3d3b88){const _0x1650dd=_0x3d3b88['getAttribute']('listIndent');if(0x0==_0x1650dd)return _0x3d3b88;let _0x3f36cb=_0x3d3b88;for(;_0x3d3b88['previousSibling']&&_0x3d3b88['previousSibling']['is']('element','listItem');){const _0x16ed52=_0x3d3b88['previousSibling']['getAttribute']('listIndent');if(_0x16ed52==_0x1650dd)_0x3f36cb=_0x3d3b88['previousSibling'];else{if(_0x16ed52<_0x1650dd)break;}_0x3d3b88=_0x3d3b88['previousSibling'];}return _0x3f36cb;}function fe(_0x525d81){const _0x1e9b3d=[];if(_0x525d81['is']('element','listItem')&&_0x525d81['getAttribute']('listIndent')>0x0){let _0x9422ee=_0x525d81['nextSibling'];for(;_0x9422ee&&'listItem'==_0x9422ee['name']&&_0x9422ee['getAttribute']('listIndent')==_0x525d81['getAttribute']('listIndent');)_0x1e9b3d['push'](_0x9422ee),_0x9422ee=_0x9422ee['nextSibling'];}return _0x1e9b3d;}class K extends _0x357748{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5d3763=this['editor']['config']['get']('list.properties'),_0x387b6e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d3763['styles']&&_0x387b6e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5d3763['reversed']&&_0x387b6e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5d3763['startIndex']&&_0x387b6e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x387b6e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x48a027,_0x259b08={}){const _0x432513=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d27fb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x432513['markMultiRangeBlockFormat'](_0x5d27fb,{'commandName':'listStyle','commandParams':[{'type':_0x259b08['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1998a2,_0x2659a7={}){const _0x9351e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d6b5a=this['_getSuggestionBlocks'](_0x90838f=>_0x90838f['is']('element','listItem')&&'numbered'===_0x90838f['getAttribute']('listType'));if(_0x5d6b5a['length']<0x1)return;const _0x52ce98=_0x5d6b5a['map'](_0x1360c2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1360c2,'before'),this['editor']['model']['createPositionAt'](_0x1360c2,0x0)));this['editor']['model']['change'](()=>{_0x9351e5['markMultiRangeBlockFormat'](_0x52ce98,{'commandName':'listReversed','commandParams':[{'reversed':_0x2659a7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x364496,_0x530823={}){const _0x45cc57=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56ef5c=this['_getSuggestionBlocks'](_0x1c33ab=>_0x1c33ab['is']('element','listItem')&&'numbered'===_0x1c33ab['getAttribute']('listType'));if(_0x56ef5c['length']<0x1)return;const _0x3fd3e5=_0x56ef5c['map'](_0x327400=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x327400,'before'),this['editor']['model']['createPositionAt'](_0x327400,0x0)));this['editor']['model']['change'](()=>{_0x45cc57['markMultiRangeBlockFormat'](_0x3fd3e5,{'commandName':'listStart','commandParams':[{'startIndex':_0x530823['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x9c0fb7){if('formatBlock'!=_0x9c0fb7['type']&&'formatInline'!=_0x9c0fb7['type'])return;const _0x57670a=this['editor']['locale'],{data:_0x1e8e51}=_0x9c0fb7;if(!_0x1e8e51)return;let _0x55619d,_0x674770;switch(_0x1e8e51['commandName']){case'listStyle':_0x55619d='*Change\x20to:*\x20%0',_0x674770={'type':'format','content':o(_0x57670a,_0x55619d,o(_0x57670a,this['_getTranslationKeyForListStyle'](_0x1e8e51['commandParams'][0x0]['type'])))};break;case'listReversed':_0x55619d=_0x1e8e51['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x674770={'type':'format','content':o(_0x57670a,_0x55619d)};break;case'listStart':_0x55619d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x674770={'type':'format','content':o(_0x57670a,_0x55619d,_0x1e8e51['commandParams'][0x0]['startIndex'])};}return _0x674770;}['_getSuggestionBlocksForListStyle'](){var _0x41b326,_0x47082e,_0x4ab161,_0x557590;const _0x317b41=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b0bbf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x41b326=_0x2b0bbf[0x0])||void 0x0===_0x41b326?void 0x0:_0x41b326['is']('element','listItem'))&&_0x2b0bbf['unshift'](..._0x317b41['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x47082e=_0x2b0bbf[_0x2b0bbf['length']-0x1])||void 0x0===_0x47082e?void 0x0:_0x47082e['is']('element','listItem'))&&_0x2b0bbf['push'](..._0x317b41['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2b0bbf=[...new Set(_0x2b0bbf)],(null===(_0x557590=null===(_0x4ab161=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x4ab161?void 0x0:_0x4ab161['parent'])||void 0x0===_0x557590?void 0x0:_0x557590['is']('element','listItem'))&&(_0x2b0bbf=_0x2b0bbf['filter'](_0x4b7c09=>_0x4b7c09['is']('element','listItem'))),_0x2b0bbf;}['_getSuggestionBlocks'](_0x1f2210){const _0x5c7505=this['editor']['plugins']['get']('LegacyListUtils');let _0x360836=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1f2210)['map'](_0x55bd80=>{const _0x528125=this['editor']['model']['createPositionAt'](_0x55bd80,0x0);return[..._0x5c7505['getSiblingNodes'](_0x528125,'backward'),..._0x5c7505['getSiblingNodes'](_0x528125,'forward')];})['flat']();return _0x360836=[...new Set(_0x360836)],_0x360836;}['_getTranslationKeyForListStyle'](_0x1ae4fe){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1ae4fe)||'default')['toUpperCase']()+'_LIST_'+_0x1ae4fe['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x357748{['afterInit'](){const _0x93faa2=this['editor'];if(!_0x93faa2['plugins']['has']('MediaEmbedEditing'))return;const _0x57a524=_0x93faa2['plugins']['get']('TrackChangesEditing'),_0x49b0ba=_0x93faa2['locale'];_0x57a524['enableCommand']('mediaEmbed'),_0x57a524['descriptionFactory']['registerElementLabel']('media',_0x3cdd55=>o(_0x49b0ba,'ELEMENT_MEDIA',_0x3cdd55)),_0x93faa2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x467306,{writer:_0x31082e,options:_0x121b0d})=>{if(_0x121b0d['showSuggestionHighlights'])return _0x31082e['createEmptyElement']('div');},'converterPriority':'high'}),_0x93faa2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2cc3e2,_0x149cd5,_0x4a2b47)=>{_0x4a2b47['options']['showSuggestionHighlights']&&_0x2cc3e2['stop']();},{'priority':'high'});}}class gt extends _0x357748{['afterInit'](){const _0x248697=this['editor'];_0x248697['plugins']['has']('MentionEditing')&&_0x248697['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x357748{['afterInit'](){const _0x12a239=this['editor'],_0xc1b68d=_0x12a239['plugins']['get']('TrackChangesEditing');_0x12a239['plugins']['has']('MultiLevelList')&&(_0xc1b68d['enableDefaultAttributesIntegration']('multiLevelList'),_0xc1b68d['registerBlockAttribute']('listMarkerStyle'),_0xc1b68d['descriptionFactory']['registerDescriptionCallback'](_0x31cbad=>this['handleDescriptions'](_0x31cbad)));}['handleDescriptions'](_0x2ad3b3){const _0x5a3cc3=this['editor']['locale'],{data:_0x310a07}=_0x2ad3b3,_0x23876e={'type':'format','content':''};if(_0x310a07&&'listMarkerStyle'==_0x310a07['key']){if(!_0x310a07['oldValue'])return{'type':'format','content':o(_0x5a3cc3,'*Set\x20format:*\x20%0',o(_0x5a3cc3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x310a07['newValue']+')'};if(!_0x310a07['newValue']){let _0x270995=_0x2ad3b3['head'];for(;_0x270995;){if(_0x270995['data']&&'listType'==_0x270995['data']['key']&&_0x270995['data']['newValue'])return _0x23876e;_0x270995=_0x270995['next'];}return{'type':'format','content':o(_0x5a3cc3,'*Remove\x20format:*\x20%0',o(_0x5a3cc3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x310a07['oldValue']+')'};}}}}class mt extends _0x357748{['afterInit'](){const _0x542662=this['editor'];if(!_0x542662['plugins']['has']('PageBreakEditing'))return;_0x542662['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x12250a=_0x542662['plugins']['get']('TrackChangesEditing'),_0xa4be18=_0x542662['locale'];_0x12250a['descriptionFactory']['registerElementLabel']('pageBreak',_0x9b96d4=>o(_0xa4be18,'ELEMENT_PAGE_BREAK',_0x9b96d4));}}class dt extends _0x357748{['afterInit'](){const _0x4c0a09=this['editor'];if(!_0x4c0a09['plugins']['has']('Paragraph'))return;const _0x59e2c3=_0x4c0a09['locale'],_0x1fc8c3=_0x4c0a09['plugins']['get']('TrackChangesEditing');_0x1fc8c3['descriptionFactory']['registerElementLabel']('paragraph',_0xd133cb=>o(_0x59e2c3,'ELEMENT_PARAGRAPH',_0xd133cb)),_0x1fc8c3['enableDefaultAttributesIntegration']('paragraph'),_0x1fc8c3['enableCommand']('insertParagraph'),_0x4c0a09['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4c0a09),{'priority':'highest'}),_0x4c0a09['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3fd5e0,_0x107887,_0x89d1cb)=>{_0x89d1cb['options']['showSuggestionHighlights']&&nr(_0x4c0a09,{'showActiveMarker':!0x1})(_0x3fd5e0,_0x107887,_0x89d1cb);},{'priority':'highest'});const _0x52f58c=_0x1fc8c3['descriptionFactory'];_0x52f58c['registerDescriptionCallback'](_0x587f15=>{if('insertion'!==_0x587f15['type'])return;const {start:_0x3875a3,end:_0x39d095}=_0x587f15['getFirstRange']();if(!_0x3875a3['isTouching'](_0x39d095)||!_0x3875a3['nodeAfter'])return;const _0xf60dc0=_0x4c0a09['model']['schema'],_0x88fcc1=_0x3875a3['nodeAfter'];return _0xf60dc0['isBlock'](_0x88fcc1)&&!_0xf60dc0['isLimit'](_0x88fcc1)&&_0xf60dc0['checkChild'](_0x88fcc1,'$text')?{'type':'insertion','content':o(_0x59e2c3,'*Insert:*\x20%0',_0x52f58c['getItemLabel'](_0x88fcc1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bdee7=this['editor'],_0x724655=_0x4bdee7['locale'];_0x4bdee7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4db72b=>{if('formatBlock'!=_0x4db72b['type'])return;const {data:_0x1bb2c7}=_0x4db72b;return _0x1bb2c7&&'paragraph'==_0x1bb2c7['commandName']?{'type':'format','content':o(_0x724655,'*Change\x20to:*\x20%0',o(_0x724655,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1dd89b,{showActiveMarker:_0x33f28c=!0x0}={}){return(_0x1ef86a,_0x1b6a3f,_0x5eedf2)=>{const _0x5db64e=_0x1dd89b['plugins']['get']('TrackChangesEditing'),_0x60ff5=_0x1b6a3f['markerRange']['start'],_0x7cf672=_0x1b6a3f['markerRange']['end'],_0x52e04b=_0x1dd89b['model']['schema'];if(!_0x60ff5['isTouching'](_0x7cf672)||!_0x60ff5['nodeAfter'])return;const _0x277195=_0x60ff5['nodeAfter'];if(_0x52e04b['isBlock'](_0x277195)&&!_0x52e04b['isLimit'](_0x277195)&&_0x52e04b['checkChild'](_0x277195,'$text')){if(!_0x5eedf2['consumable']['consume'](_0x1b6a3f['markerRange'],_0x1ef86a['name']))return;const _0x4b64c9=_0x5eedf2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4ccaf2=_0x5eedf2['mapper']['toViewPosition'](_0x7cf672);_0x33f28c&&_0x5db64e['activeMarkers']['includes'](_0x1b6a3f['markerName'])&&_0x5eedf2['writer']['addClass']('ck-suggestion-marker--active',_0x4b64c9),_0x5eedf2['writer']['insert'](_0x4ccaf2,_0x4b64c9),_0x5eedf2['mapper']['bindElementToMarker'](_0x4b64c9,_0x1b6a3f['markerName']);}};}class pt extends _0x357748{['afterInit'](){const _0x33e980=this['editor'];if(!_0x33e980['plugins']['has']('RemoveFormatEditing'))return;_0x33e980['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2549f7=this['editor'];_0x2549f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4de3be=>{if('formatBlock'!=_0x4de3be['type']&&'formatInline'!=_0x4de3be['type'])return;const {data:_0x48885d}=_0x4de3be;return _0x48885d&&'removeFormat'==_0x48885d['commandName']?{'type':'format','content':o(_0x2549f7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x357748{['afterInit'](){const _0x539eac=this['editor'];if(!_0x539eac['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1459e6=_0x539eac['plugins']['get']('TrackChangesEditing');_0x1459e6['enableCommand']('goToPreviousRestrictedEditingException'),_0x1459e6['enableCommand']('goToNextRestrictedEditingException');const _0x3f769f=_0x539eac['plugins']['get']('RestrictedEditingModeEditing');_0x3f769f['enableCommand']('trackChanges'),_0x3f769f['enableCommand']('acceptSuggestion'),_0x3f769f['enableCommand']('discardSuggestion'),_0x3f769f['enableCommand']('acceptAllSuggestions'),_0x3f769f['enableCommand']('discardAllSuggestions'),_0x3f769f['enableCommand']('acceptSelectedSuggestions'),_0x3f769f['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x357748{static get['requires'](){return[_0x554ffa];}['init'](){const _0x18068a=this['editor'],_0x25ae7e=_0x18068a['plugins']['get']('TrackChangesEditing');_0x25ae7e['enableCommand']('shiftEnter'),_0x18068a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x18068a),{'priority':'high'}),_0x18068a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x18068a),{'priority':'high'}),_0x18068a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35fcab,_0x2d228d,_0x2d3abe)=>{_0x2d3abe['options']['showSuggestionHighlights']&&de(_0x18068a,{'showActiveMarker':!0x1})(_0x35fcab,_0x2d228d,_0x2d3abe);}),_0x25ae7e['descriptionFactory']['registerElementLabel']('softBreak',_0x2624ec=>o(_0x18068a['locale'],'ELEMENT_LINE_BREAK',_0x2624ec));}}function de(_0x2bb437,{showActiveMarker:_0x29cd86=!0x0}={}){return(_0x29a031,_0x5bde09,_0x53e327)=>{const _0xd77173=_0x2bb437['plugins']['get']('TrackChangesEditing');if(!_0x53e327['consumable']['test'](_0x5bde09['markerRange'],_0x29a031['name']))return;const _0x497033=_0x2bb437['model'];for(const _0x159187 of _0x5bde09['markerRange']['getItems']()){if(!_0x159187['is']('element','softBreak'))continue;const _0x5c22f0='deletion'==_0x5bde09['markerName']['split'](':')[0x1]?'merge':'split',_0x344fb2=_0x53e327['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c22f0}),_0x137505=_0x53e327['mapper']['toViewPosition'](_0x497033['createPositionBefore'](_0x159187));_0x29cd86&&_0xd77173['activeMarkers']['includes'](_0x5bde09['markerName'])&&_0x53e327['writer']['addClass']('ck-suggestion-marker--active',_0x344fb2),_0x53e327['writer']['insert'](_0x137505,_0x344fb2),_0x53e327['mapper']['bindElementToMarker'](_0x344fb2,_0x5bde09['markerName']);}};}class wt extends _0x357748{['afterInit'](){const _0x50edce=this['editor'],_0x4deaa7=_0x50edce['model'],_0x3fc397=_0x50edce['locale'];if(!_0x50edce['plugins']['has']('StandardEditingModeEditing'))return;const _0x1f2933=_0x50edce['plugins']['get']('TrackChangesEditing'),_0x4759c7='restrictedEditingException',_0x305d9a=_0x50edce['commands']['get'](_0x4759c7);_0x1f2933['enableCommand'](_0x4759c7,(_0x48cd04,_0x2c8c50={})=>{const _0xfd5be6=_0x4deaa7['document']['selection'];if(_0xfd5be6['isCollapsed'])return void _0x48cd04(_0x2c8c50);const _0x40fc4b=void 0x0!==_0x2c8c50['forceValue']?_0x2c8c50['forceValue']:!_0x305d9a['value'];_0x4deaa7['change'](()=>{const _0x5b2bf9=Array['from'](_0xfd5be6['getRanges']());for(const _0x598213 of _0x5b2bf9){const _0x54d40e=_0x40fc4b?[_0x598213]:io(_0x4759c7,_0x598213,_0x4deaa7);for(const _0x493506 of _0x54d40e)_0x1f2933['markInlineFormat'](_0x493506,{'commandName':_0x4759c7,'commandParams':[{'forceValue':_0x40fc4b}]});}});}),_0x1f2933['descriptionFactory']['registerDescriptionCallback'](_0x914641=>{if('formatBlock'!=_0x914641['type']&&'formatInline'!=_0x914641['type'])return;const {data:_0x4b740a}=_0x914641;return _0x4b740a&&_0x4b740a['commandName']==_0x4759c7?_0x4b740a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fc397,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3fc397,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x357748{['afterInit'](){const _0x22222a=this['editor'];if(!_0x22222a['plugins']['has']('Style')||!_0x22222a['plugins']['has']('DataSchema'))return;const _0x32ccc0=_0x22222a['plugins']['get']('TrackChangesEditing'),_0x1e4eb9=_0x22222a['locale'],_0x5e04e3=_0x22222a['config']['get']('style')||{},_0x66ec4f=_0x22222a['plugins']['get']('GeneralHtmlSupport'),_0x4d5b28=_0x22222a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x22222a['plugins']['get']('DataSchema'),_0x5e04e3['definitions']);_0x32ccc0['enableDefaultAttributesIntegration']('style');const _0x13c558=new Set();for(const _0x13b229 of _0x4d5b28['block']){const _0x1192b6=_0x66ec4f['getGhsAttributeNameForElement'](_0x13b229['element']);_0x13c558['add'](_0x1192b6);}const _0x1a1667=new Set();for(const _0x4aa2c8 of _0x4d5b28['inline']){const _0x1ef154=_0x66ec4f['getGhsAttributeNameForElement'](_0x4aa2c8['element']);_0x1a1667['add'](_0x1ef154);for(const _0xd31e81 of _0x4aa2c8['ghsAttributes'])_0x1a1667['add'](_0xd31e81);}for(const _0x406c06 of _0x13c558)_0x32ccc0['registerBlockAttribute'](_0x406c06),_0x32ccc0['descriptionFactory']['registerAttributeLabel'](_0x406c06,o(_0x1e4eb9,'FORMAT_STYLE'));for(const _0x306988 of _0x1a1667)_0x32ccc0['registerInlineAttribute'](_0x306988),_0x32ccc0['descriptionFactory']['registerAttributeLabel'](_0x306988,o(_0x1e4eb9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13fd84=this['editor'],_0x378cb2=_0x13fd84['locale'];_0x13fd84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ced69=>{if('formatBlock'!=_0x1ced69['type']&&'formatInline'!=_0x1ced69['type'])return;const {data:_0x409451}=_0x1ced69;return _0x409451&&'style'===_0x409451['commandName']?_0x409451['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x378cb2,'*Set\x20format:*\x20%0',_0x409451['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x378cb2,'*Remove\x20format:*\x20%0',_0x409451['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x357748{['afterInit'](){const _0x30b0bd=this['editor'],_0xea0eba=_0x30b0bd['model']['document']['selection'];if(!_0x30b0bd['plugins']['has']('TableEditing'))return;const _0x45ba89=_0x30b0bd['locale'],_0xacaf3b=_0x30b0bd['plugins']['get']('TrackChangesEditing'),_0x3ee74c=_0x30b0bd['plugins']['get']('TableUtils');_0xacaf3b['descriptionFactory']['registerElementLabel']('table',_0x5ce618=>o(_0x45ba89,'ELEMENT_TABLE',_0x5ce618)),this['_setupColumnsRowsFixing'](),_0xacaf3b['enableCommand']('insertTable'),_0xacaf3b['enableCommand']('selectTableRow'),_0xacaf3b['enableCommand']('selectTableColumn');for(const _0x17c98a of['insertTableRowAbove','insertTableRowBelow']){const _0x743d7c=_0x30b0bd['commands']['get'](_0x17c98a);_0xacaf3b['enableCommand'](_0x17c98a,_0x460df9=>{_0x30b0bd['model']['change'](_0x54923a=>{_0x460df9();const _0x1c6af5='above'===_0x743d7c['order'],_0x28ae69=_0x3ee74c['getSelectionAffectedTableCells'](_0xea0eba),_0x125e7b=_0x3ee74c['getRowIndexes'](_0x28ae69),_0x5934f5=_0x1c6af5?_0x125e7b['first']-0x1:_0x125e7b['last']+0x1,_0x3f58f1=_0x28ae69[0x0]['findAncestor']('table'),_0x48d059=_0x3ee74c['createTableWalker'](_0x3f58f1,{'startRow':_0x5934f5,'endRow':_0x5934f5}),_0xd1ea1a=Array['from'](_0x48d059)['map'](_0x311508=>_0x54923a['createRangeOn'](_0x311508['cell']));_0xacaf3b['markMultiRangeInsertion'](_0xd1ea1a,'tableRow');});});}for(const _0x10432a of['insertTableColumnLeft','insertTableColumnRight']){const _0x4b60b9=_0x30b0bd['commands']['get'](_0x10432a);_0xacaf3b['enableCommand'](_0x10432a,_0x327262=>{_0x30b0bd['model']['change'](_0x162f3c=>{_0x327262();const _0x6d654f='left'===_0x4b60b9['order'],_0x2984ec=_0x3ee74c['getSelectionAffectedTableCells'](_0xea0eba),_0x631d5c=_0x3ee74c['getColumnIndexes'](_0x2984ec),_0x407c7c=_0x6d654f?_0x631d5c['first']-0x1:_0x631d5c['last']+0x1,_0x29f728=_0x2984ec[0x0]['findAncestor']('table'),_0x2c5263=_0x3ee74c['createTableWalker'](_0x29f728,{'startRow':0x0,'column':_0x407c7c,'includeAllSlots':!0x1}),_0x4fc007=Array['from'](_0x2c5263)['map'](_0x1a0ab7=>_0x162f3c['createRangeOn'](_0x1a0ab7['cell']));_0xacaf3b['markMultiRangeInsertion'](_0x4fc007,'tableColumn');});});}for(const _0x5ae051 of['removeTableRow','removeTableColumn']){const _0x12fb85=_0x5ae051['substr'](0xb),_0x380192=_0x12fb85['toLowerCase'](),_0x3d8ece=_0x380192['substr'](0x0,0x3)+'span',_0x3941ed='table'+_0x12fb85,_0x1e91bd='min'+_0x12fb85,_0x7ce292='max'+_0x12fb85;_0xacaf3b['enableCommand'](_0x5ae051,()=>{_0x30b0bd['model']['change'](_0x427469=>{const _0x112dfe=_0x3ee74c['getSelectionAffectedTableCells'](_0xea0eba),_0x82d614=_0x112dfe[0x0]['findAncestor']('table');let _0x1c4834;if('removeTableRow'==_0x5ae051){const _0x33b7d3=_0x3ee74c['getRowIndexes'](_0x112dfe);_0x1c4834={'startRow':_0x33b7d3['first'],'endRow':_0x33b7d3['last'],'includeAllSlots':!0x0};}else{const _0x1f5af7=_0x3ee74c['getColumnIndexes'](_0x112dfe);_0x1c4834={'startColumn':_0x1f5af7['first'],'endColumn':_0x1f5af7['last'],'includeAllSlots':!0x0};}const _0x2c8b30=_0x3ee74c['createTableWalker'](_0x82d614,_0x1c4834),_0x1e7d66=Array['from'](_0x2c8b30)['map'](({cell:_0x251c1e})=>_0x251c1e),_0x298a5f=Ee(_0x1e7d66['filter'](_0x3d0e94=>_0x3d0e94['hasAttribute'](_0x3d8ece))),_0x1b7c06=Ee(_0x1e7d66['filter'](_0xd53175=>!_0xd53175['hasAttribute'](_0x3d8ece)))['map'](_0x1ad1bb=>_0x427469['createRangeOn'](_0x1ad1bb)),_0x2cebd8=_0xacaf3b['markMultiRangeDeletion'](_0x1b7c06,_0x3941ed);if(_0x2cebd8&&('tableRow'==_0x2cebd8['subType']||'tableColumn'==_0x2cebd8['subType'])){const _0x3bf1a7=this['_getSuggestionCoords'](_0x2cebd8);for(const _0x2a00d6 of _0x298a5f){const _0x33b4e8=_0x427469['createRangeOn'](_0x2a00d6),_0x1bc830=_0x3ee74c['getCellLocation'](_0x2a00d6),_0x1226c1=_0x2a00d6['getAttribute'](_0x3d8ece)-0x1,_0x4deef3=_0x3bf1a7[_0x1e91bd],_0x1909ee=_0x3bf1a7[_0x7ce292];_0x4deef3<=_0x1bc830[_0x380192]&&_0x1bc830[_0x380192]+_0x1226c1<=_0x1909ee&&_0x2cebd8['addRange'](_0x33b4e8);}}});});}function _0x56b5de(_0x28fd72){const _0x12aaff=Array['from'](_0xea0eba['getRanges']())['map'](_0x55c737=>_0x2242e5['fromRange'](_0x55c737));_0x30b0bd['model']['change'](_0x5dbdd7=>{const _0xabc07e=_0x5dbdd7['batch'];_0x28fd72=_0x28fd72['filter'](_0x164914=>'$graveyard'!=_0x164914['root']['rootName']),_0x5dbdd7['setSelection'](_0x28fd72),_0x30b0bd['commands']['get']('removeTableRow')['refresh'](),_0x30b0bd['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x30b0bd['model']['enqueueChange'](()=>{_0x30b0bd['model']['enqueueChange'](_0xabc07e,_0x577b7a=>{const _0x1c1d2f=_0x12aaff['filter'](_0x193c70=>'$graveyard'!=_0x193c70['root']['rootName']);_0x1c1d2f['length']>0x0&&_0x577b7a['setSelection'](_0x1c1d2f);for(const _0x3bab44 of _0x12aaff)_0x3bab44['detach']();});});});}function _0x453f56(_0x2e24f9){_0x30b0bd['model']['change'](_0x296f88=>{const _0xec3eaf=Array['from'](_0xea0eba['getRanges']())['map'](_0xd24385=>_0x2242e5['fromRange'](_0xd24385)),_0x358cef=[];for(const _0xcb365f of _0x2e24f9)for(const _0x226acb of _0xcb365f['getItems']({'shallow':!0x0}))_0x358cef['push'](_0x226acb);for(const _0x120707 of _0x358cef)'$graveyard'!=_0x120707['root']['rootName']&&(_0x296f88['setSelection'](_0x296f88['createPositionAt'](_0x120707,0x0)),_0x30b0bd['commands']['get']('removeTableColumn')['refresh'](),_0x30b0bd['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3389f2=_0xec3eaf['filter'](_0x318631=>'$graveyard'!=_0x318631['root']['rootName']);_0x3389f2['length']>0x0&&_0x296f88['setSelection'](_0x3389f2);for(const _0x22c9f6 of _0xec3eaf)_0x22c9f6['detach']();});}function _0x16b4ad(_0x396d76,_0x1d4f14){return _0x1d4f14['every'](_0x567435=>_0x396d76['some'](_0x6ed993=>_0x6ed993['end']['isEqual'](_0x567435['start'])||_0x567435['end']['isEqual'](_0x6ed993['start'])));}function _0x5007ea(_0x3d2ac7,_0x2255aa){return _0x3d2ac7['some'](_0x1bb9c4=>_0x2255aa['some'](_0x5e88f4=>_0x1bb9c4['end']['isTouching'](_0x5e88f4['start'])));}_0x30b0bd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x107323,_0x29fc70,_0x2655a5)=>{if(!_0x2655a5['options']['showSuggestionHighlights'])return;const _0x2e58b6=_0x29fc70['item'];if(!_0x2e58b6)return;const _0x47a32f=_0x2655a5['mapper']['toViewElement'](_0x2e58b6);function _0x4432f0(_0x317b3d){return Array['isArray'](_0x317b3d)?_0x317b3d:[_0x317b3d];}_0x47a32f&&'tableCell'===_0x2e58b6['name']&&_0x3ce59a(_0x47a32f,_0x2655a5['writer'],(_0x50e3e8,_0x4c30ae,_0x1351b7)=>_0x1351b7['addClass'](_0x4432f0(_0x4c30ae['classes']),_0x50e3e8),(_0x52deca,_0x10732b,_0x3bc85c)=>_0x3bc85c['removeClass'](_0x4432f0(_0x10732b['classes']),_0x52deca));},{'priority':'highest'}),_0xacaf3b['descriptionFactory']['registerDescriptionCallback'](_0x1cce70=>{if('insertion'!=_0x1cce70['type']&&'deletion'!=_0x1cce70['type'])return;const _0xa238ef=_0x1cce70['getContainedElement']();if(null!=_0xa238ef&&_0xa238ef['is']('element','table')){if('insertion'==_0x1cce70['type']){const _0x5bc362=_0x1cce70['getItems']()['filter'](_0x27c1de=>_0x27c1de['is']('$textProxy'))['map'](_0x37f2d5=>_0x37f2d5['data']);if(_0x5bc362['length'])return{'type':'insertion','content':o(_0x45ba89,'*Insert:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5bc362['join']('\x20')+'\x22'))};}if('deletion'==_0x1cce70['type']){const _0x4f56ef=_0x1cce70['getItems']()['filter'](_0x5cfb27=>_0x5cfb27['is']('$textProxy'))['map'](_0x36a96c=>_0x36a96c['data']);if(_0x4f56ef['length'])return{'type':'deletion','content':o(_0x45ba89,'*Remove:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f56ef['join']('\x20')+'\x22'))};}}}),_0xacaf3b['descriptionFactory']['registerDescriptionCallback'](_0x684e9a=>{if('tableRow'==_0x684e9a['subType']){const _0x481b8e=_0x684e9a['getItems']()['filter'](_0x5d405e=>_0x5d405e['is']('$textProxy'))['map'](_0x4ca251=>_0x4ca251['data']),_0xf4f79d=this['_getSuggestionCoords'](_0x684e9a),_0x421cd9=_0xf4f79d['maxRow']-_0xf4f79d['minRow']+0x1;if('insertion'==_0x684e9a['type'])return _0x481b8e['length']?{'type':'insertion','content':o(_0x45ba89,'*Insert:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x421cd9,'\x22'+_0x481b8e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x45ba89,'*Insert:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_ROW',_0x421cd9))};if('deletion'==_0x684e9a['type'])return _0x481b8e['length']?{'type':'deletion','content':o(_0x45ba89,'*Remove:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x421cd9,'\x22'+_0x481b8e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x45ba89,'*Remove:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_ROW',_0x421cd9))};}if('tableColumn'==_0x684e9a['subType']){const _0x247b98=_0x684e9a['getItems']()['filter'](_0x196f8e=>_0x196f8e['is']('$textProxy'))['map'](_0xeb339b=>_0xeb339b['data']),_0x1fc63d=this['_getSuggestionCoords'](_0x684e9a),_0x3b7848=_0x1fc63d['maxColumn']-_0x1fc63d['minColumn']+0x1;if('insertion'==_0x684e9a['type'])return _0x247b98['length']?{'type':'insertion','content':o(_0x45ba89,'*Insert:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b7848,'\x22'+_0x247b98['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x45ba89,'*Insert:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_COLUMN',_0x3b7848))};if('deletion'==_0x684e9a['type'])return _0x247b98['length']?{'type':'deletion','content':o(_0x45ba89,'*Remove:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b7848,'\x22'+_0x247b98['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x45ba89,'*Remove:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_COLUMN',_0x3b7848))};}}),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x56b5de),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x56b5de),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x453f56),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x453f56),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x16b4ad),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x16b4ad),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5007ea),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5007ea);}['_acceptFormatSuggestionCallbackFactory'](){const _0x43f676=this['editor'],_0x39a426=_0x43f676['model']['document']['selection'];return(_0x200321,_0x41d695)=>{_0x43f676['model']['change'](_0x168c62=>{const {commandName:_0x257e72,commandParams:_0x4e0139}=_0x41d695;let _0x320e33=_0x200321[0x0]['end']['nodeBefore'];_0x4e0139&&_0x4e0139[0x0]&&!0x1===_0x4e0139[0x0]['forceValue']&&(_0x320e33=_0x200321[0x0]['start']['nodeAfter']);const _0x46656b=_0x168c62['createRangeIn'](_0x320e33);if('$graveyard'==_0x46656b['root']['rootName'])return;const _0x10599b=Array['from'](_0x39a426['getRanges']())['map'](_0x11fbc1=>_0x2242e5['fromRange'](_0x11fbc1));_0x168c62['setSelection'](_0x46656b),_0x43f676['commands']['get'](_0x257e72)['refresh'](),_0x4e0139['push']({'forceDefaultExecution':!0x0}),_0x43f676['execute'](_0x257e72,..._0x4e0139);const _0x57d9a5=_0x10599b['filter'](_0x478917=>'$graveyard'!=_0x478917['root']['rootName']);_0x57d9a5['length']>0x0&&_0x168c62['setSelection'](_0x57d9a5);for(const _0x4ba850 of _0x10599b)_0x4ba850['detach']();});};}['_getCoordsForCells'](_0x3b04f3){const _0x1efc4c=this['editor']['plugins']['get']('TableUtils');let _0x4ebca9=Number['MAX_SAFE_INTEGER'],_0x403ecf=Number['MIN_SAFE_INTEGER'],_0x54ac69=Number['MAX_SAFE_INTEGER'],_0x15352b=Number['MIN_SAFE_INTEGER'];for(const _0x5d7832 of _0x3b04f3){if('$graveyard'==_0x5d7832['root']['rootName'])continue;const {row:_0x382f83,column:_0x173af9}=_0x1efc4c['getCellLocation'](_0x5d7832),_0x35f07d=_0x5d7832['hasAttribute']('rowspan')?_0x5d7832['getAttribute']('rowspan')-0x1:0x0,_0x3d21b9=_0x5d7832['hasAttribute']('colspan')?_0x5d7832['getAttribute']('colspan')-0x1:0x0;_0x4ebca9=_0x382f83<_0x4ebca9?_0x382f83:_0x4ebca9,_0x403ecf=_0x382f83+_0x35f07d>_0x403ecf?_0x382f83+_0x35f07d:_0x403ecf,_0x54ac69=_0x173af9<_0x54ac69?_0x173af9:_0x54ac69,_0x15352b=_0x173af9+_0x3d21b9>_0x15352b?_0x173af9+_0x3d21b9:_0x15352b;}return{'minRow':_0x4ebca9,'maxRow':_0x403ecf,'minColumn':_0x54ac69,'maxColumn':_0x15352b};}['_setupColumnsRowsFixing'](){const _0xf7fb1f=this['editor'],_0x3add20=_0xf7fb1f['plugins']['get']('TrackChangesEditing'),_0x2a71c6=_0xf7fb1f['plugins']['get']('TableUtils');_0xf7fb1f['model']['document']['on']('change:data',()=>{const _0xe6b57=Array['from'](_0xf7fb1f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x460b3c,data:_0x28c095}of _0xe6b57){const {group:_0x5ebf81,id:_0x40f0a4,subType:_0x5d20ae}=_0x3add20['_splitMarkerName'](_0x460b3c);if('suggestion'!=_0x5ebf81)continue;if(null!=_0x28c095['oldRange'])continue;const _0x41b57a=_0x3add20['getSuggestion'](_0x40f0a4);this['_tablePostFixingSubtypes']['includes'](_0x5d20ae)&&this['_tableSuggestions']['add'](_0x41b57a);}},{'priority':'low'});const _0x5bb18f=(_0x12416b,_0x58aa64)=>{let _0x43a73b=!0x1;const _0x4ab679=_0x58aa64['createRangeOn'](_0x12416b),_0x4486c3=_0x12416b['findAncestor']('table'),_0x441dda=_0x2a71c6['getCellLocation'](_0x12416b);for(const _0x11dfaf of this['_tableSuggestions']){const _0x160d93=_0x11dfaf['subType'],_0x3fefe2=_0x160d93['startsWith']('tablePaste'),_0xff3ba2=_0x160d93['substr'](_0x3fefe2?0xa:0x5),_0xd0bf62=_0xff3ba2['toLowerCase'](),_0x4a23e3=_0xd0bf62['substr'](0x0,0x3)+'span',_0x38cdcf='min'+_0xff3ba2,_0x5594c2='max'+_0xff3ba2;if(!_0x11dfaf['isInContent'])continue;if(_0x4486c3!=_0x11dfaf['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x11dfaf['isIntersectingWithRange'](_0x4ab679))continue;const _0x51bc07=_0x12416b['hasAttribute'](_0x4a23e3)?_0x12416b['getAttribute'](_0x4a23e3)-0x1:0x0,_0x337413=this['_getSuggestionCoords'](_0x11dfaf),_0x5dfd52=_0x337413[_0x38cdcf],_0x5afce0=_0x337413[_0x5594c2];_0x5dfd52<=_0x441dda[_0xd0bf62]&&_0x441dda[_0xd0bf62]+_0x51bc07<=_0x5afce0&&(_0x11dfaf['addRange'](_0x4ab679),_0x43a73b=!0x0);}return _0x43a73b;};_0xf7fb1f['model']['document']['registerPostFixer'](_0x97d99b=>{let _0x1f4b6a=!0x1;for(const _0x138b21 of _0xf7fb1f['model']['document']['differ']['getChanges']())if('insert'==_0x138b21['type']){if('tableRow'==_0x138b21['name']){for(const _0xc32e47 of _0x138b21['position']['nodeAfter']['getChildren']())_0x1f4b6a=_0x1f4b6a||_0x5bb18f(_0xc32e47,_0x97d99b);}else'tableCell'==_0x138b21['name']&&(_0x1f4b6a=_0x1f4b6a||_0x5bb18f(_0x138b21['position']['nodeAfter'],_0x97d99b));}return _0x1f4b6a;});}['_getSuggestionCoords'](_0x3ab10b){return this['_getCoordsForCells'](_0x3ab10b['getRanges']()['map'](_0x2521e3=>_0x2521e3['start']['nodeAfter']));}constructor(_0x40f80e){super(_0x40f80e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x4a8ba2){return Array['from'](new Set(_0x4a8ba2)['values']());}class St extends _0x357748{static get['requires'](){return[jt];}['afterInit'](){const _0x5b2f6d=this['editor'],_0x192f73=_0x5b2f6d['model']['document']['selection'],_0x4119a4=_0x5b2f6d['locale'];if(!_0x5b2f6d['plugins']['has']('TableEditing'))return;const _0x17ead9=_0x5b2f6d['plugins']['get']('TrackChangesEditing'),_0x3d3cad=_0x5b2f6d['plugins']['get']('TableUtils'),_0x1a3e61=_0x5b2f6d['plugins']['get'](jt);_0x1a3e61['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x17ead9['enableCommand']('mergeTableCells',()=>{const _0x6a4814=_0x3d3cad['getSelectionAffectedTableCells'](_0x5b2f6d['model']['document']['selection']);_0x5b2f6d['model']['change'](()=>{_0x17ead9['markMultiRangeBlockFormat'](_0x6a4814,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5b2f6d['commands']['get']('mergeTableCells')['on']('execute',(_0x2de25c,_0x135196)=>{_0x5b2f6d['commands']['get']('trackChanges')['value']&&(_0x135196['length']>0x0&&_0x135196[_0x135196['length']-0x1]&&_0x135196[_0x135196['length']-0x1]['forceDefaultExecution']||_0x17ead9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2de25c['stop']());},{'priority':'highest'});for(const _0x1ecd15 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x384307=_0x5b2f6d['commands']['get'](_0x1ecd15);_0x17ead9['enableCommand'](_0x1ecd15,()=>{const _0x18e30a=_0x5b2f6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5a5431=>_0x5a5431['is']('element','tableCell')),_0x5e451c=_0x384307['value'];_0x5b2f6d['model']['change'](()=>{_0x17ead9['markMultiRangeBlockFormat']([_0x18e30a,_0x5e451c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2399b3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x153e31=_0x5b2f6d['commands']['get'](_0x2399b3);_0x17ead9['enableCommand'](_0x2399b3,()=>{const _0x4417e6=_0x3d3cad['getSelectionAffectedTableCells'](_0x5b2f6d['model']['document']['selection'])[0x0],_0x2e8c42=_0x4417e6['findAncestor']('table'),{column:_0x1438da,row:_0x825f1e}=_0x3d3cad['getCellLocation'](_0x4417e6);let _0x481863=[];if('horizontally'==_0x153e31['direction']){const _0x535fcc=_0x3d3cad['createTableWalker'](_0x2e8c42,{'startRow':_0x825f1e,'endRow':_0x825f1e,'includeAllSlots':!0x0});_0x481863=Array['from'](_0x535fcc)['map'](_0x196d0f=>_0x196d0f['cell']);}else{const _0x5f2bfa=_0x3d3cad['createTableWalker'](_0x2e8c42,{'column':_0x1438da,'includeAllSlots':!0x0});_0x481863=Array['from'](_0x5f2bfa)['map'](_0x4d7beb=>_0x4d7beb['cell']);}_0x5b2f6d['model']['change'](_0x4d1324=>{_0x17ead9['markBlockFormat'](_0x4d1324['createRangeOn'](_0x4417e6),{'commandName':_0x2399b3,'commandParams':[]},_0x481863,_0x2399b3);});});}_0x17ead9['descriptionFactory']['registerDescriptionCallback'](_0x18ed3f=>{if('formatBlock'!=_0x18ed3f['type']&&'formatInline'!=_0x18ed3f['type'])return;const {data:_0x4f59cc}=_0x18ed3f;return _0x4f59cc&&'mergeTableCells'==_0x4f59cc['commandName']?{'type':'format','content':o(_0x4119a4,'*Merge\x20cells*')}:void 0x0;}),_0x17ead9['descriptionFactory']['registerDescriptionCallback'](_0x1f88b0=>{if('formatBlock'!=_0x1f88b0['type']&&'formatInline'!=_0x1f88b0['type'])return;const {data:_0xa3455b}=_0x1f88b0;return _0xa3455b?'splitTableCellVertically'==_0xa3455b['commandName']?{'type':'format','content':o(_0x4119a4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xa3455b['commandName']?{'type':'format','content':o(_0x4119a4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x30bed5=_0x1a3e61['_acceptFormatSuggestionCallbackFactory']();for(const _0x18027e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x17ead9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18027e,'accept',_0x30bed5);for(const _0x61733a of['splitTableCellVertically','splitTableCellHorizontally'])_0x17ead9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x61733a,'accept',_0x30bed5);_0x17ead9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xd1a6a1=>{_0x5b2f6d['model']['change'](_0x3beacc=>{const _0x3af03e=Array['from'](_0x192f73['getRanges']())['map'](_0x58f694=>_0x2242e5['fromRange'](_0x58f694));_0x3beacc['setSelection'](_0xd1a6a1),_0x5b2f6d['commands']['get']('mergeTableCells')['refresh'](),_0x5b2f6d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5a1e75=_0x3af03e['filter'](_0x1d7d1f=>'$graveyard'!=_0x1d7d1f['root']['rootName']);_0x5a1e75['length']>0x0&&_0x3beacc['setSelection'](_0x5a1e75);for(const _0x595852 of _0x3af03e)_0x595852['detach']();});});for(const _0x235a79 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3bf4c9=_0x5b2f6d['commands']['get'](_0x235a79);_0x3bf4c9['on']('set:isEnabled',(_0x341f72,_0x4d6e13,_0x40e353)=>{if(_0x40e353){const _0x5792b2=_0x5b2f6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1ad62a=>_0x1ad62a['is']('element','tableCell'));this['_areMergableCells'](_0x3bf4c9['value'],_0x5792b2)||(_0x341f72['return']=!0x1,_0x341f72['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x465cfe=this['editor']['commands']['get']('mergeTableCells'),_0x1c2b4a=this['editor']['plugins']['get']('TableUtils');if(!_0x465cfe['isEnabled'])return!0x1;const _0x3e15b3=_0x1c2b4a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x43d431 of _0x3e15b3)for(const _0x276051 of _0x3e15b3)if(_0x43d431!=_0x276051&&!this['_areMergableCells'](_0x43d431,_0x276051))return!0x1;return!0x0;}['_areMergableCells'](_0x1d3944,_0x5013f5){const _0x399540=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38c173=this['editor']['model']['createRangeOn'](_0x1d3944),_0x2f7f38=this['editor']['model']['createRangeOn'](_0x5013f5),_0x262ea5=new Set(),_0x4ec815=new Set();for(const _0x405a7f of _0x399540['getSuggestions']())if(('insertion'==_0x405a7f['type']||'deletion'==_0x405a7f['type']||'mergeTableCells'==_0x405a7f['subType'])&&_0x405a7f['isInContent']){for(const _0x2d7e42 of _0x405a7f['getRanges']())_0x2d7e42['containsRange'](_0x38c173,!0x0)&&_0x262ea5['add'](_0x405a7f['type']+':'+_0x405a7f['author']['id']),_0x2d7e42['containsRange'](_0x2f7f38,!0x0)&&_0x4ec815['add'](_0x405a7f['type']+':'+_0x405a7f['author']['id']);}if(_0x262ea5['size']!=_0x4ec815['size'])return!0x1;for(const _0xce56e3 of _0x262ea5)if(!_0x4ec815['has'](_0xce56e3))return!0x1;return!0x0;}}class At extends _0x357748{static get['requires'](){return[jt];}['afterInit'](){const _0x562f72=this['editor'];if(!_0x562f72['plugins']['has']('TableEditing'))return;const _0x2d8154=_0x562f72['locale'],_0x1dc396=_0x562f72['plugins']['get']('TrackChangesEditing');_0x1dc396['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1dc396['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1dc396['registerBlockAttribute']('headingRows'),_0x1dc396['registerBlockAttribute']('headingColumns'),_0x1dc396['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2d8154,'FORMAT_HEADER_ROW')),_0x1dc396['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2d8154,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x49282b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27405f=this['editor']['plugins']['get']('TableUtils'),_0x467aa1=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0xc637d5({showActiveMarker:_0x1edd08=!0x0,setDataAttribute:_0x5a0a0d=!0x0}={}){return(_0x5f2c60,_0x47c591,_0x281aa1)=>{const {type:_0x57c508,id:_0x3dd75c}=_0x49282b['_splitMarkerName'](_0x47c591['markerName']),_0x3f455c=_0x49282b['getSuggestion'](_0x3dd75c),_0x24e59a=_0x3f455c['data'];if('formatBlock'!=_0x3f455c['type']||!_0x24e59a||'setTableColumnHeader'!=_0x24e59a['commandName'])return;if(_0x47c591['item'])return void _0x5f2c60['stop']();if(!_0x281aa1['consumable']['consume'](_0x47c591['markerRange'],_0x5f2c60['name']))return;const _0x4dceaf=_0x47c591['markerRange']['start']['nodeAfter'],_0x45d73a=_0x47c591['markerRange']['end']['nodeBefore'],_0x562415=_0x4dceaf['parent']['parent'],{column:_0x4006e3}=_0x27405f['getCellLocation'](_0x4dceaf),{column:_0x3435d4}=_0x27405f['getCellLocation'](_0x45d73a);for(let _0x213cc5=_0x4006e3;_0x213cc5<=_0x3435d4;_0x213cc5++){const _0x5b3786=_0x27405f['createTableWalker'](_0x562415,{'column':_0x213cc5,'includeAllSlots':!0x1});for(const _0x33fdcd of _0x5b3786){const _0x16766c=_0x33fdcd['cell'],_0x103b75=_0x281aa1['mapper']['toViewElement'](_0x16766c);_0x281aa1['writer']['addClass']('ck-suggestion-marker-'+_0x57c508,_0x103b75),_0x5a0a0d&&_0x281aa1['writer']['setAttribute']('data-suggestion',_0x3dd75c,_0x103b75),_0x281aa1['mapper']['bindElementToMarker'](_0x103b75,_0x47c591['markerName']),_0x1edd08&&(_0x49282b['activeMarkers']['includes'](_0x47c591['markerName'])?_0x281aa1['writer']['addClass']('ck-suggestion-marker--active',_0x103b75):_0x281aa1['writer']['removeClass']('ck-suggestion-marker--active',_0x103b75));}}};}_0x49282b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x467aa1),_0x49282b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x467aa1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc637d5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9ca258,_0x4adbfe,_0x5cc1de)=>{_0x5cc1de['options']['showSuggestionHighlights']&&_0xc637d5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x9ca258,_0x4adbfe,_0x5cc1de);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x13eace,_0x3690b8,_0x46e1d8)=>{const {type:_0x218f9b,id:_0x50ff02}=_0x49282b['_splitMarkerName'](_0x3690b8['markerName']),_0x442dba=_0x49282b['getSuggestion'](_0x50ff02),_0x59423d=_0x442dba['data'];if('formatBlock'!=_0x442dba['type']||!_0x59423d||'setTableColumnHeader'!=_0x59423d['commandName'])return;const _0x368325=_0x46e1d8['mapper']['markerNameToElements'](_0x3690b8['markerName']);if(_0x368325){for(const _0x1a7cb1 of _0x368325)_0x46e1d8['writer']['removeClass']('ck-suggestion-marker-'+_0x218f9b,_0x1a7cb1),_0x46e1d8['writer']['removeClass']('ck-suggestion-marker--active',_0x1a7cb1),_0x46e1d8['writer']['removeAttribute']('data-suggestion',_0x1a7cb1),_0x46e1d8['mapper']['unbindElementFromMarkerName'](_0x1a7cb1,_0x3690b8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x812946=this['editor'],_0x32bb6d=_0x812946['locale'];function _0x3610df(_0x4a33f3){return{'type':'format','content':o(_0x32bb6d,'*Format:*\x20%0',_0x4a33f3)};}_0x812946['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x551adb=>{if('formatBlock'!=_0x551adb['type'])return;const {data:_0x2084ad}=_0x551adb;if(_0x2084ad){if('setTableRowHeader'==_0x2084ad['commandName']){const _0x313595=_0x2084ad['commandParams'][0x0]['forceValue'];return _0x3610df(o(_0x32bb6d,_0x313595?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2084ad['commandName']){const _0x2518ae=_0x2084ad['commandParams'][0x0]['forceValue'];return _0x3610df(o(_0x32bb6d,_0x2518ae?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4b1e5e=>[_0x4b1e5e,null]));class It extends _0x357748{static get['requires'](){return[jt];}['afterInit'](){const _0x377b05=this['editor'];if(!_0x377b05['plugins']['has']('TableClipboard'))return;const _0x1c30ed=_0x377b05['plugins']['get']('TrackChangesEditing'),_0x2bf70b=_0x377b05['plugins']['get']('TableUtils'),_0x5d6d46=_0x377b05['plugins']['get'](jt),_0x194b4d=_0x377b05['plugins']['get']('TableClipboard');_0x5d6d46['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x377b05['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x377b05['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1b9b5a=null;_0x377b05['model']['on']('insertContent',(_0x2d2e5c,_0x6148d0)=>{const [_0x3c5e5a,_0x5cb002]=_0x6148d0,_0x1d74db=_0x6148d0[_0x6148d0['length']-0x1];_0x1d74db&&_0x1d74db['forceDefaultExecution']||_0x1c30ed['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xb017a,_0x5e33d5,_0x4994e5,_0x4a31eb,_0x35260e){if(_0x5e33d5&&!_0x5e33d5['is']('documentSelection'))return!0x1;const _0x4dc5ff=_0x35260e['getTableIfOnlyTableInContent'](_0xb017a,_0x4994e5);if(!_0x4dc5ff||!he(_0x4dc5ff,void 0x0,_0x4a31eb))return!0x1;const _0x21d918=_0x4a31eb['getSelectionAffectedTableCells'](_0x4994e5['document']['selection']);if(!_0x21d918['length'])return!0x1;const _0x32dcdb=_0x21d918[0x0]['findAncestor']('table'),_0x5eec01=_0x4a31eb['getRowIndexes'](_0x21d918),_0x305c36=_0x4a31eb['getColumnIndexes'](_0x21d918),_0x1fff1b={'startRow':_0x5eec01['first'],'endRow':_0x5eec01['last'],'startColumn':_0x305c36['first'],'endColumn':_0x305c36['last']};return 0x1==_0x21d918['length']&&(_0x1fff1b['endRow']+=_0x4a31eb['getRows'](_0x4dc5ff)-0x1,_0x1fff1b['endColumn']+=_0x4a31eb['getColumns'](_0x4dc5ff)-0x1),he(_0x32dcdb,_0x1fff1b,_0x4a31eb);}(_0x3c5e5a,_0x5cb002,_0x377b05['model'],_0x2bf70b,_0x194b4d)&&(_0x2d2e5c['stop'](),_0x1b9b5a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x377b05['model']['change'](()=>{_0x377b05['model']['insertContent'](_0x6148d0[0x0],_0x6148d0[0x1],_0x6148d0[0x2],{'forceDefaultExecution':!0x0});const _0x39e977=_0x501bc0(),{rowInsertionRanges:_0x37016b,columnInsertionRanges:_0x281912,insertionRanges:_0x46bd37,deletionRanges:_0x7f855f,cells:_0x202bee}=_0x1b9b5a;_0x37016b['length']&&_0x1c30ed['markMultiRangeInsertion'](_0x37016b,'tablePasteRow',{'tablePasteChainId':_0x39e977}),_0x281912['length']&&_0x1c30ed['markMultiRangeInsertion'](_0x281912,'tablePasteColumn',{'tablePasteChainId':_0x39e977}),_0x46bd37['length']&&(_0x1c30ed['markMultiRangeInsertion'](_0x46bd37,'tablePaste',{'tablePasteChainId':_0x39e977,'skipNestingCheck':!0x0}),_0x46bd37['forEach'](_0x4f16be=>{var _0x3b1b01;return null===(_0x3b1b01=_0x4f16be['detach'])||void 0x0===_0x3b1b01?void 0x0:_0x3b1b01['call'](_0x4f16be);})),_0x7f855f['length']&&(_0x1c30ed['markMultiRangeDeletion'](_0x7f855f,'tablePaste',{'tablePasteChainId':_0x39e977,'skipNestingCheck':!0x0}),_0x7f855f['forEach'](_0x138e11=>{var _0xe8db53;return null===(_0xe8db53=_0x138e11['detach'])||void 0x0===_0xe8db53?void 0x0:_0xe8db53['call'](_0x138e11);}));const _0x56cdb6=_0x1c30ed['markMultiRangeBlockFormat'](_0x202bee['map'](({element:_0x3ba6b1})=>_0x3ba6b1),{'formatGroupId':_0x501bc0()},[],'tablePasteCell',{'tablePasteChainId':_0x39e977});if(_0x56cdb6){const _0x578965=_0x56cdb6['getMarkers'](),_0x25d4f5=[];for(const {element:_0xa030b7,attributes:_0x29599c}of _0x202bee){if(!_0x29599c)continue;const _0x2ae4ae=_0x377b05['model']['createRangeOn'](_0xa030b7),_0xae68d6=_0x578965['find'](_0x53d62a=>_0x53d62a['getRange']()['isEqual'](_0x2ae4ae));_0xae68d6&&_0x25d4f5['push']([_0xae68d6['name'],_0x29599c]);}_0x25d4f5['length']&&_0x56cdb6['setAttribute']('markerAttributes',Object['fromEntries'](_0x25d4f5));}_0x1b9b5a=null;}));},{'priority':_0x16dc4b['high']+0xa}),_0x377b05['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1581ec,_0x41c6f4)=>{const [_0x2c75fa,_0x2e741a,,_0x5e90a3]=_0x41c6f4;if(!_0x1b9b5a)return;_0x1581ec['stop']();const _0x5e486b=_0x2c75fa['cell'],_0x4d8a55=_0x2e741a,_0x340631=Pe(_0x5e486b),_0x1076c9=Pe(_0x4d8a55);_0x1581ec['return']=_0x5e486b;let _0x4abcfb=null,_0x7e75d8=null;if(_0x1076c9||_0x340631){if(_0x340631&&!_0x1076c9){_0x5e90a3['remove'](_0x5e486b['getChild'](0x0));for(const _0x64c6ee of Array['from'](_0x4d8a55['getChildren']()))_0x5e90a3['insert'](_0x64c6ee,_0x5e486b,'end');const _0x1300b9=_0x1b9b5a['rowInsertionIndexes']['includes'](_0x2c75fa['row']),_0x245e00=_0x1b9b5a['columnInsertionIndexes']['includes'](_0x2c75fa['column']);_0x1300b9||_0x245e00||(_0x4abcfb=_0x2242e5['fromRange'](_0x5e90a3['createRangeIn'](_0x5e486b)));}else _0x1076c9&&!_0x340631&&(_0x7e75d8=_0x5e90a3['createRangeIn'](_0x5e486b));}else{const _0x2e4598=_0x5e90a3['createElement']('tableCellSuggestion'),_0x2178b4=_0x5e90a3['createElement']('tableCellSuggestion');_0x5e90a3['wrap'](_0x5e90a3['createRangeIn'](_0x5e486b),_0x2178b4),_0x5e90a3['insert'](_0x2e4598,_0x5e486b,0x0);for(const _0x4d7f93 of Array['from'](_0x4d8a55['getChildren']()))_0x5e90a3['insert'](_0x4d7f93,_0x2e4598,'end');_0x4abcfb=_0x2242e5['fromRange'](_0x5e90a3['createRangeOn'](_0x2e4598)),_0x7e75d8=_0x2242e5['fromRange'](_0x5e90a3['createRangeOn'](_0x2178b4));}const _0x540ee9=Array['from'](_0x4d8a55['getAttributes']())['filter'](([_0x218425])=>ge['includes'](_0x218425));_0x1b9b5a['cells']['push']({'element':_0x5e486b,'attributes':_0x540ee9['length']?Object['fromEntries'](_0x540ee9):null}),_0x4abcfb&&_0x1b9b5a['insertionRanges']['push'](_0x4abcfb),_0x7e75d8&&_0x1b9b5a['deletionRanges']['push'](_0x7e75d8);},{'priority':'high'}),_0x2bf70b['on']('insertColumns',(_0x2b55ce,_0x4685da)=>{const [_0x54bcd6,_0x5f1803={}]=_0x4685da;if(!_0x1b9b5a)return;const _0x3c4e30=_0x5f1803['at']||0x0,_0x4ec154=_0x5f1803['columns']||0x1;_0x1b9b5a['columnInsertionIndexes']=new Array(_0x4ec154)['fill'](_0x3c4e30)['map']((_0x113915,_0x3d1471)=>_0x113915+_0x3d1471);for(const {cell:_0x327bd}of _0x2bf70b['createTableWalker'](_0x54bcd6,{'startColumn':_0x3c4e30,'endColumn':_0x3c4e30+_0x4ec154-0x1}))_0x1b9b5a['columnInsertionRanges']['push'](_0x377b05['model']['createRangeOn'](_0x327bd));},{'priority':'low'}),_0x2bf70b['on']('insertRows',(_0x219195,_0x2f35ee)=>{const [_0x556ea9,_0x11ebfc={}]=_0x2f35ee;if(!_0x1b9b5a)return;const _0x581f85=_0x11ebfc['at']||0x0,_0x55186a=_0x11ebfc['rows']||0x1;_0x1b9b5a['rowInsertionIndexes']=new Array(_0x55186a)['fill'](_0x581f85)['map']((_0x2bc668,_0x184367)=>_0x2bc668+_0x184367);for(const {cell:_0x19b8c8}of _0x2bf70b['createTableWalker'](_0x556ea9,{'startRow':_0x581f85,'endRow':_0x581f85+_0x55186a-0x1}))_0x1b9b5a['rowInsertionRanges']['push'](_0x377b05['model']['createRangeOn'](_0x19b8c8));},{'priority':'low'}),_0x1c30ed['descriptionFactory']['registerDescriptionCallback'](_0x4c8189=>{if(_0x4c8189['subType']&&_0x4c8189['subType']['startsWith']('tablePaste'))return _0x4c8189['previous']?{}:{'type':'insertion','content':o(_0x377b05['locale'],'*Replace\x20table\x20cells*')};});const _0x49a6f8=()=>!0x1;for(const _0x367a4c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1c30ed['_suggestionFactory']['registerCustomCallback']('insertion',_0x367a4c,'join',_0x49a6f8),_0x1c30ed['_suggestionFactory']['registerCustomCallback']('deletion',_0x367a4c,'join',_0x49a6f8),_0x1c30ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x367a4c,'join',_0x49a6f8);_0x1c30ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x49a6f8),_0x1c30ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4e5383,_0x3becb0,_0x38f2e1)=>{const _0x2ec6c5=_0x4e5383['map'](_0x569ac0=>_0x569ac0['getContainedElement']())['filter'](_0x15ab94=>_0x15ab94),_0x599b46=new Map(_0x2ec6c5['map'](_0x26491a=>[_0x26491a,null]));if(_0x1b9b5a){for(const {element:_0x40b77f,attributes:_0x45fee3}of _0x1b9b5a['cells'])_0x45fee3&&_0x599b46['set'](_0x40b77f,_0x45fee3);}else{if(_0x38f2e1&&_0x38f2e1['markerAttributes'])for(const [_0x5ded89,_0x420b3d]of Object['entries'](_0x38f2e1['markerAttributes'])){const _0x1b99d4=_0x377b05['model']['markers']['get'](_0x5ded89),_0x1d0d68=_0x1b99d4?_0x1b99d4['getRange']()['getContainedElement']():null;_0x1d0d68&&_0x599b46['set'](_0x1d0d68,_0x420b3d);}}_0x377b05['model']['change'](_0x3ab704=>{for(const [_0xa04078,_0x30ae80]of _0x599b46)_0x3ab704['setAttributes']({...Ce,..._0x30ae80},_0xa04078);});});const _0x89b27d=(_0x2ed052,_0x1f6f73)=>{_0x1c30ed['_suggestionFactory']['registerCustomCallback'](_0x2ed052,'tablePaste',_0x1f6f73,(_0x52ff68,_0x3d8a3a,_0xf57956)=>{_0x377b05['model']['change'](_0x968696=>{const _0x103d45=[];for(const _0x4e7ebe of _0x52ff68){const _0x3b0083=_0x4e7ebe['start']['nodeAfter'];_0x3b0083['is']('element','tableCellSuggestion')&&_0x103d45['push'](_0x3b0083);}_0x1c30ed['_suggestionFactory']['getSuggestionCallback'](_0x2ed052,null,_0x1f6f73)(_0x52ff68,_0x3d8a3a,_0xf57956);for(const _0x5198d6 of _0x103d45)'$graveyard'!=_0x5198d6['root']['rootName']&&_0x968696['unwrap'](_0x5198d6);});});};_0x89b27d('insertion','accept'),_0x89b27d('insertion','discard'),_0x89b27d('deletion','accept'),_0x89b27d('deletion','discard'),_0x1c30ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x58ffe2=>{const _0x391f96=_0x58ffe2['map'](_0x1ea4ed=>_0x1ea4ed['getContainedElement']()),_0x2cee3f=_0x391f96[0x0]['findAncestor']('table'),{minRow:_0x26e1c1,maxRow:_0x2807c4}=_0x5d6d46['_getCoordsForCells'](_0x391f96);_0x2bf70b['removeRows'](_0x2cee3f,{'at':_0x26e1c1,'rows':_0x2807c4-_0x26e1c1+0x1});}),_0x1c30ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xef764b=>{const _0x4d9a9a=_0xef764b['map'](_0x26ec2b=>_0x26ec2b['getContainedElement']()),_0x513aba=_0x4d9a9a[0x0]['findAncestor']('table'),{minColumn:_0x1174d3,maxColumn:_0x49ccf8}=_0x5d6d46['_getCoordsForCells'](_0x4d9a9a);_0x2bf70b['removeColumns'](_0x513aba,{'at':_0x1174d3,'columns':_0x49ccf8-_0x1174d3+0x1});});const _0xeb01c7=(_0x25c217,_0x33ec14)=>{if(!_0x33ec14['subType']||!_0x33ec14['subType']['startsWith']('tablePaste'))return;const _0xa180b0=_0x33ec14['attributes']['tablePasteChainId'],_0x463029=_0x1c30ed['getSuggestions']()['filter'](_0x43b650=>_0x43b650['isInContent']&&_0x43b650['attributes']&&_0x43b650['attributes']['tablePasteChainId']==_0xa180b0);_0x463029['length']&&_0x33ec14['getAllAdjacentSuggestions']()['length']!=_0x463029['length']&&_0x463029['reduce']((_0x1d12ac,_0x49b2a3)=>(_0x1d12ac['next']=_0x49b2a3,_0x49b2a3['previous']=_0x1d12ac,_0x49b2a3));};function _0x2551a1(_0x5eb3ed,_0x48055a=!0x0){const {id:_0x23fca6}=_0x1c30ed['_splitMarkerName'](_0x5eb3ed['markerName']),_0xc6608d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5611ce=_0x1c30ed['activeMarkers']['includes'](_0x5eb3ed['markerName']);return _0x5611ce&&_0xc6608d['push']('ck-suggestion-marker--active'),{'classes':_0xc6608d,'attributes':{'data-suggestion':_0x23fca6},'priority':_0x5611ce&&_0x48055a?0xbc2:0xbb8};}_0x1c30ed['on']('suggestionLoaded',_0xeb01c7,{'priority':'high'}),_0x1c30ed['on']('suggestionUnloaded',_0xeb01c7,{'priority':'high'}),_0x377b05['model']['document']['registerPostFixer'](()=>{let _0x42cf7e=!0x1;const _0x581446=Array['from'](_0x377b05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e9b32,data:_0x479f82}of _0x581446){const {group:_0x2fbff0,type:_0x493b60,id:_0x3fb9be}=_0x1c30ed['_splitMarkerName'](_0x3e9b32);if('suggestion'!=_0x2fbff0||'deletion'!=_0x493b60||_0x479f82['oldRange'])continue;if(!_0x1c30ed['hasSuggestion'](_0x3fb9be))continue;const _0x19b9fb=_0x1c30ed['getSuggestion'](_0x3fb9be)['getRanges'](),_0x1c792d=_0x377b05['plugins']['get']('Users')['me'];for(const _0xdf8e3c of _0x1c30ed['getSuggestions']()){if(!_0xdf8e3c['isInContent']||_0xdf8e3c['author']!=_0x1c792d)continue;if('formatBlock'!=_0xdf8e3c['type']||'tablePasteCell'!=_0xdf8e3c['subType'])continue;if(_0xdf8e3c['getRanges']()['every'](_0x3b8771=>_0x19b9fb['some'](_0x2a68d3=>_0x2a68d3['containsRange'](_0x3b8771,!0x0)))){for(const _0x5aa9c7 of _0xdf8e3c['getAllAdjacentSuggestions']())_0x5aa9c7['isInContent']&&(_0x5aa9c7['discard'](),_0x42cf7e=!0x0);}}}return _0x42cf7e;}),_0x377b05['model']['document']['registerPostFixer'](_0x51ac8a=>{const _0x3f6a8c=_0x377b05['commands']['get']('redo');if(!_0x3f6a8c||!_0x3f6a8c['_createdBatches']['has'](_0x51ac8a['batch']))return!0x1;let _0x15b916=!0x1;const _0x337335=_0x377b05['plugins']['get']('Users')['me'],_0x540039=_0x377b05['model']['document']['differ']['getChanges'](),_0x5f3a9d=Array['from'](_0x377b05['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x46ae53,data:_0x4ba03e})=>{const {group:_0x5694ef,subType:_0x40543c,authorId:_0x2b80f1}=_0x1c30ed['_splitMarkerName'](_0x46ae53);return'suggestion'==_0x5694ef&&'tablePaste'==_0x40543c&&_0x2b80f1==_0x337335['id']&&!_0x4ba03e['oldRange'];});for(const _0x5d015b of _0x540039){if('insert'!=_0x5d015b['type']||'tableCellSuggestion'!=_0x5d015b['name']||0x1!=_0x5d015b['length'])continue;const _0x595f97=_0x51ac8a['createRange'](_0x5d015b['position'],_0x5d015b['position']['getShiftedBy'](0x1));if(!_0x5f3a9d['find'](({data:_0x15eca3})=>_0x15eca3['newRange']['isEqual'](_0x595f97))){for(const {name:_0x5797ae,data:_0x157af8}of _0x5f3a9d)if(_0x595f97['containsRange'](_0x157af8['newRange'])){_0x51ac8a['updateMarker'](_0x5797ae,{'range':_0x595f97}),_0x15b916=!0x0;break;}}}return _0x15b916;}),_0x377b05['model']['document']['registerPostFixer'](_0x435122=>{let _0x3cfa39=!0x1;const _0x22c3b2=_0x377b05['plugins']['get']('Users')['me'],_0xd2beaf=_0x1c30ed['getSuggestions']()['filter'](_0x37d4d8=>_0x37d4d8['isInContent']&&_0x37d4d8['author']==_0x22c3b2),_0x1c956d=new Set(),_0x58dcf0=new Set();for(const _0x60aad7 of _0xd2beaf)if('tablePaste'==_0x60aad7['subType'])for(const _0x5cfa81 of _0x60aad7['getMarkers']()){const _0x5765e8=_0x5cfa81['getRange']()['getContainedElement']();if(_0x5765e8){if(_0x5765e8['is']('element','tableCellSuggestion')&&Pe(_0x5765e8)){_0x60aad7['removeMarker'](_0x5cfa81['name']),_0x1c956d['add'](_0x5765e8),_0x3cfa39=!0x0;const _0x2e5691=_0x5765e8['nextSibling'],_0x5c5daf=_0x5765e8['previousSibling'],_0x46f320=_0x2e5691&&_0x2e5691['is']('element','tableCellSuggestion'),_0x59d478=_0x5c5daf&&_0x5c5daf['is']('element','tableCellSuggestion');_0x46f320&&!_0x1c956d['has'](_0x2e5691)&&_0x58dcf0['add'](_0x2e5691),_0x59d478&&!_0x1c956d['has'](_0x5c5daf)&&_0x58dcf0['add'](_0x5c5daf);}else _0x5765e8['is']('element','paragraph')&&_0x5765e8['isEmpty']&&(_0x60aad7['removeMarker'](_0x5cfa81['name']),_0x3cfa39=!0x0);}}else{if('tablePasteCell'==_0x60aad7['subType']){if(!_0x60aad7['attributes']||!_0x60aad7['attributes']['tablePasteChainId'])continue;const _0x34c2db=_0x60aad7['attributes']['markerAttributes'];if(_0x34c2db&&Object['keys'](_0x34c2db)['length'])continue;const _0x269b3a=_0x60aad7['attributes']['tablePasteChainId'];let _0x192d04=!0x0,_0x171da7=!0x0;for(const _0x1aac7a of _0xd2beaf)if(_0x1aac7a['subType']&&_0x1aac7a['subType']['startsWith']('tablePaste')){if(!_0x1aac7a['attributes']['tablePasteChainId']){_0x171da7=!0x1;break;}if(_0x1aac7a['id']!=_0x60aad7['id']&&_0x1aac7a['attributes']['tablePasteChainId']==_0x269b3a){_0x192d04=!0x1;break;}}_0x171da7&&_0x192d04&&(_0x60aad7['removeMarkers'](),_0x3cfa39=!0x0);}}for(const _0x1ab60b of _0x1c956d)_0x435122['remove'](_0x1ab60b);for(const _0x1c72ef of _0x58dcf0)_0x435122['unwrap'](_0x1c72ef);return _0x3cfa39;}),_0x377b05['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x17e89e,_0x3437b2)=>_0x2551a1(_0x17e89e),'converterPriority':'high'}),_0x377b05['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x117f5e,_0x233193)=>_0x233193['options']['showSuggestionHighlights']?_0x2551a1(_0x117f5e,!0x1):null,'converterPriority':'high'});const _0x5d5e7d=_0x377b05['editing']['view'];this['listenTo'](_0x5d5e7d['document'],'clipboardOutput',(_0x56e80a,_0x2450f9)=>{const _0x580766=[];for(const _0xf11a47 of _0x5d5e7d['createRangeIn'](_0x2450f9['content'])['getItems']())_0xf11a47['is']('element','suggestion-td')&&_0x580766['push'](_0xf11a47);_0x5d5e7d['change'](_0xc6d033=>{for(const _0x171173 of _0x580766)_0xc6d033['move'](_0xc6d033['createRangeIn'](_0x171173),_0xc6d033['createPositionBefore'](_0x171173)),_0xc6d033['remove'](_0x171173);});});}}function Pe(_0x151b9c){if(_0x151b9c['isEmpty'])return!0x0;const _0x5eaa72=_0x151b9c['getChild'](0x0);return _0x5eaa72['is']('element','paragraph')&&_0x5eaa72['isEmpty'];}function he(_0x13cdf6,_0x4cd147={},_0x340d9a){for(const {isAnchor:_0x1c1cf9,cellHeight:_0x3bf4a7,cellWidth:_0x2b1c07}of _0x340d9a['createTableWalker'](_0x13cdf6,{'includeAllSlots':!0x0,..._0x4cd147}))if(!_0x1c1cf9||0x1!=_0x3bf4a7||0x1!=_0x2b1c07)return!0x1;return!0x0;}class vt extends _0x357748{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x265965=this['editor']['plugins']['get']('TrackChangesEditing');_0x265965['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x265965['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x265965['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x265965['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x265965['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x265965['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x286717,_0x45bb5d){const _0x1f9aa9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fc746=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1eadd2=_0x45bb5d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3a68b4=_0x4fc746['getColumnGroupElement'](_0x1eadd2);let _0x3deeb2=_0x3a68b4?_0x4fc746['getTableColumnsWidths'](_0x3a68b4):null,_0x18e5ee=_0x1eadd2['getAttribute']('tableWidth')||null;const _0x228de6=_0x45bb5d['tableWidth']||_0x18e5ee,_0x2c3f96=_0x45bb5d['columnWidths']||_0x3deeb2,_0x3c82db=this['editor']['plugins']['get']('Users')['me'];for(const _0x4ec63b of _0x1f9aa9['getSuggestions']()){const _0x54a62f=_0x4ec63b['getContainedElement']();if('resizeTable'===_0x4ec63b['subType']&&_0x54a62f===_0x1eadd2){_0x4ec63b['author']!==_0x3c82db&&_0x4ec63b['discard']();const _0x1b4ee7=_0x4ec63b['data']['commandParams'];_0x18e5ee=_0x1b4ee7[0x0]['tableWidth'],_0x3deeb2=_0x1b4ee7[0x0]['columnWidths'];break;}}_0x286717({'table':_0x1eadd2,'tableWidth':_0x228de6,'columnWidths':_0x2c3f96}),_0x1f9aa9['markBlockFormat'](_0x1eadd2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x18e5ee,'columnWidths':_0x3deeb2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x270e11){if('formatBlock'!=_0x270e11['type']&&'formatInline'!=_0x270e11['type'])return;const {data:_0x36e508}=_0x270e11;if(_0x36e508&&'resizeTable'===_0x36e508['formatGroupId']){const _0xfde2a8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xfde2a8)};}}}class _t extends _0x357748{['afterInit'](){const _0x3a8c30=this['editor'];_0x3a8c30['plugins']['has']('Template')&&_0x3a8c30['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x357748{['afterInit'](){const _0x4ae546=this['editor'];if(!_0x4ae546['commands']['get']('insertTableOfContents'))return;_0x4ae546['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3b1662=_0x4ae546['plugins']['get']('TrackChangesEditing'),_0x5321e9=_0x4ae546['locale'];_0x3b1662['descriptionFactory']['registerElementLabel']('tableOfContents',_0x57eeda=>o(_0x5321e9,'ELEMENT_TABLE_OF_CONTENTS',_0x57eeda));}}class Dt extends _0x357748{['afterInit'](){const _0x323712=this['editor'];if(!_0x323712['plugins']['has']('Title'))return;const _0x20dd0d=_0x323712['plugins']['get']('TrackChangesEditing');_0x20dd0d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x323712['locale'],'ELEMENT_TITLE')),_0x323712['model']['document']['registerPostFixer'](_0xb2eb0c=>{let _0xa0e58d=!0x1;const _0x4a28a0=Array['from'](_0x323712['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11bc64,data:_0x450353}of _0x4a28a0){const {group:_0xbf7059}=_0x20dd0d['_splitMarkerName'](_0x11bc64);if('suggestion'!==_0xbf7059||!_0x450353['newRange'])continue;const _0x15a416=_0x450353['newRange'],_0x2b9511=_0x15a416['end']['nodeBefore'];if(!_0x2b9511||!_0x2b9511['is']('element','title-content'))continue;if(!_0x15a416['start']['isTouching'](_0x15a416['end']))continue;const _0x1efcd3=_0x323712['model']['schema']['getNearestSelectionRange'](_0x15a416['end'],'forward');if(_0x1efcd3&&_0x1efcd3['isCollapsed']){const _0x5471d5=_0xb2eb0c['createRange'](_0x15a416['start'],_0x1efcd3['start']);_0x5471d5['isEqual'](_0x15a416)||(_0xb2eb0c['updateMarker'](_0x11bc64,{'range':_0x5471d5}),_0xa0e58d=!0x0);}_0xa0e58d||(_0xb2eb0c['removeMarker'](_0x11bc64),_0xa0e58d=!0x0);}return _0xa0e58d;});}}class Nt extends _0x357748{['afterInit'](){const _0x5e9161=this['editor'],_0x34d45a=_0x5e9161['plugins']['get']('TrackChangesEditing');_0x5e9161['plugins']['has']('UndoEditing')&&(_0x34d45a['enableCommand']('undo'),_0x34d45a['enableCommand']('redo'));}}class Mt extends _0x357748{static get['requires'](){return[jt];}['afterInit'](){const _0x819c88=this['editor'];if(!_0x819c88['plugins']['has']('TableCaptionEditing'))return;_0x819c88['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x357748{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x248d05=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x44ddf2 of this['tableProperties'])_0x248d05['enableCommand'](_0x44ddf2,(_0x1b107f,_0x3416d0)=>{const _0x2e6972=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x44ddf2,[_0x2e6972],this['tableProperties'],'tableProperties',_0x1b107f,_0x3416d0);});_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x248d05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2f4318,_0x2446a8)=>this['handleDiscardAction'](this['tableProperties'],_0x2f4318,_0x2446a8)),_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5acda0 of this['tableCellProperties'])_0x248d05['enableCommand'](_0x5acda0,(_0x2d8356,_0x1f36c9)=>{const _0x566aeb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5acda0,_0x566aeb,this['tableCellProperties'],'tableCellProperties',_0x2d8356,_0x1f36c9);});_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x248d05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc4f88d,_0x29a525)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc4f88d,_0x29a525)),_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x248d05['descriptionFactory']['registerDescriptionCallback'](_0x2a03dd=>this['handleSuggestionDescription'](_0x2a03dd));}['_handlePropertyChange'](_0xbd6b25,_0x57e8d5,_0x39409b,_0x28bbe6,_0x44c1e4,_0x2c7151){const _0xed3a47=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2c7151['batch'],()=>{for(const _0x38936b of _0x57e8d5){if(this['_getSuggestion'](_0x38936b,_0x28bbe6))_0x44c1e4(_0x2c7151);else{const _0x2bb882={};for(const _0x45549d of _0x39409b){const _0x3f1cd5=_0x38936b['getAttribute'](_0x45549d);void 0x0!==_0x3f1cd5&&(_0x2bb882[_0x45549d]=_0x3f1cd5);}_0x44c1e4(_0x2c7151),_0xed3a47['markBlockFormat'](_0x38936b,{'commandParams':[_0x2bb882]},[],_0x28bbe6);}}});}['handleDiscardAction'](_0x5351b9,_0x1067c8,_0x34525e){const _0x4e468=_0x1067c8[0x0]['start']['nodeAfter'],_0x3adcc9=_0x34525e['commandParams'][0x0];this['editor']['model']['change'](_0xdb1279=>{for(const _0x1f142d of _0x5351b9)void 0x0!==_0x3adcc9[_0x1f142d]?_0xdb1279['setAttribute'](_0x1f142d,_0x3adcc9[_0x1f142d],_0x4e468):_0xdb1279['removeAttribute'](_0x1f142d,_0x4e468);});}['handleSuggestionDescription'](_0x34edea){if(_0x34edea['data'])switch(_0x34edea['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'](_0x56808a,_0x1d0d3f){const _0xfe9fed=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5474e9 of _0xfe9fed['getSuggestions']({'skipNotAttached':!0x0})){const _0x38d902=_0x5474e9['getContainedElement']();if(_0x5474e9['subType']===_0x1d0d3f&&_0x38d902===_0x56808a)return _0x5474e9;}return null;}constructor(_0x996d00){super(_0x996d00),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 _0x357748{static get['requires'](){return['CommentsRepository',_0x4b8c42,_0x4f18c1,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 _0x21eccc=this['editor'],_0x144c5b=(_0x385773,_0x163f5d)=>{if('attribute'!=_0x385773)return'ck-suggestion-marker-'+_0x385773;const _0x338053=_0x163f5d['split']('|')[0x0];return this['_isBlockAttribute'](_0x338053)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x21eccc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3b3560=>{const {id:_0x191aaf,type:_0x555ddb,subType:_0x598c55}=this['_splitMarkerName'](_0x3b3560['markerName']),_0x3d2ab0=['ck-suggestion-marker',_0x144c5b(_0x555ddb,_0x598c55)];let _0x5ea041=0xbb8;return this['activeMarkers']['includes'](_0x3b3560['markerName'])&&(_0x3d2ab0['push']('ck-suggestion-marker--active'),_0x5ea041=0xbc2),'deletion'==_0x555ddb&&(_0x5ea041+=0x5),{'classes':_0x3d2ab0,'attributes':{'data-suggestion':_0x191aaf},'priority':_0x5ea041};}}),_0x21eccc['conversion']['for']('dataDowncast')['add'](_0x2a505e=>{_0x2a505e['on']('addMarker:suggestion',(_0x2eeb81,_0x2936f0,_0x237844)=>{if(!_0x237844['options']['showSuggestionHighlights'])return;const _0x4fea32=_0x2936f0['item'];if(!_0x4fea32)return;const _0x2f4154=_0x237844['mapper']['toViewElement'](_0x4fea32);_0x21eccc['model']['schema']['isObject'](_0x4fea32)&&_0x2f4154&&!_0x2f4154['getCustomProperty']('widget')&&_0x2f4154['is']('containerElement')&&_0x53b114(_0x2f4154,_0x237844['writer']);},{'priority':'high'});}),_0x21eccc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x37895f,_0x4095db)=>{if(!_0x4095db['options']['showSuggestionHighlights'])return null;const {type:_0x252425,subType:_0x3a23f3}=this['_splitMarkerName'](_0x37895f['markerName']);return{'classes':['ck-suggestion-marker',_0x144c5b(_0x252425,_0x3a23f3)],'priority':0xbb8};}});const _0x152e7d=({showActiveMarkers:_0x41dfad=!0x0,isAttributeSuggestion:_0x43ca4a=!0x1}={})=>(_0x1c6329,_0x22c00a,_0x55b096)=>{if(!_0x22c00a['item'])return;const {id:_0x5ef732}=this['_splitMarkerName'](_0x22c00a['markerName']);if(_0x43ca4a){const _0x59651d=this['_suggestions']['get'](_0x5ef732),_0x3a0c8f=this['_getAttributeKey'](_0x59651d);if(!this['_isBlockAttribute'](_0x3a0c8f))return;}if(_0x22c00a['item']['is']('selection'))return void _0x55b096['consumable']['consume'](_0x22c00a['item'],_0x1c6329['name']);const _0x205f7f=_0x55b096['mapper']['toViewElement'](_0x22c00a['item']);if(_0x22c00a['item']['is']('element')&&_0x21eccc['model']['schema']['isBlock'](_0x22c00a['item'])&&!_0x205f7f['getCustomProperty']('addHighlight')){_0x55b096['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x205f7f),_0x55b096['writer']['setAttribute']('data-suggestion',_0x5ef732,_0x205f7f),_0x55b096['mapper']['bindElementToMarker'](_0x205f7f,_0x22c00a['markerName']),_0x41dfad&&(this['activeMarkers']['includes'](_0x22c00a['markerName'])?_0x55b096['writer']['addClass']('ck-suggestion-marker--active',_0x205f7f):_0x55b096['writer']['removeClass']('ck-suggestion-marker--active',_0x205f7f));for(const _0x993a34 of _0x21eccc['model']['createRangeIn'](_0x22c00a['item'])['getItems']())_0x55b096['consumable']['consume'](_0x993a34,_0x1c6329['name']);_0x55b096['consumable']['consume'](_0x22c00a['item'],_0x1c6329['name']);}};_0x21eccc['conversion']['for']('dataDowncast')['add'](_0x1921b6=>{_0x1921b6['on']('addMarker:suggestion:formatBlock',(_0x3747ff,_0x22888f,_0x5c1565)=>{_0x5c1565['options']['showSuggestionHighlights']&&_0x152e7d({'showActiveMarkers':!0x1})(_0x3747ff,_0x22888f,_0x5c1565);},{'priority':'highest'});}),_0x21eccc['conversion']['for']('dataDowncast')['add'](_0x13f084=>{_0x13f084['on']('addMarker:suggestion:attribute',(_0x571a9d,_0xe82585,_0x123cb)=>{_0x123cb['options']['showSuggestionHighlights']&&_0x152e7d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x571a9d,_0xe82585,_0x123cb);},{'priority':'highest'});}),_0x21eccc['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1852b4,_0xd9dac0)=>_0xd9dac0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1852b4['substr'](0xb)}}),_0x21eccc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3f5708,{writer:_0xa8814c})=>{let _0x22c7a4='suggestion:'+_0x3f5708['getAttribute']('suggestion-type')+':'+_0x3f5708['getAttribute']('id');return _0x3f5708['getAttribute']('marker-count')&&(_0x22c7a4+=':'+_0x3f5708['getAttribute']('marker-count')),_0xa8814c['createElement']('$marker',{'data-name':_0x22c7a4});}}),_0x21eccc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x21eccc['conversion']['for']('editingDowncast')['add'](_0x18fa97=>{_0x18fa97['on']('addMarker:suggestion:formatBlock',_0x152e7d(),{'priority':'high'});}),_0x21eccc['conversion']['for']('editingDowncast')['add'](_0x458d8f=>{_0x458d8f['on']('addMarker:suggestion:attribute',_0x152e7d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x21eccc['conversion']['for']('editingDowncast')['add'](_0x317795=>{_0x317795['on']('removeMarker:suggestion:formatBlock',(_0x591bf8,_0x13c87a,_0x43b3e8)=>{const _0x31a55b=_0x43b3e8['mapper']['markerNameToElements'](_0x13c87a['markerName']);if(_0x31a55b){for(const _0x149142 of _0x31a55b)_0x149142['getCustomProperty']('addHighlight')||(_0x43b3e8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x149142),_0x43b3e8['writer']['removeAttribute']('data-suggestion',_0x149142),_0x43b3e8['mapper']['unbindElementFromMarkerName'](_0x149142,_0x13c87a['markerName']));}},{'priority':'high'});}),_0x21eccc['conversion']['for']('editingDowncast')['add'](_0x49330c=>{_0x49330c['on']('removeMarker:suggestion:attribute',(_0x136e18,_0x223cba,_0x362eca)=>{const _0x4bf4a9=_0x362eca['mapper']['markerNameToElements'](_0x223cba['markerName']);if(!_0x4bf4a9)return;const {id:_0x4f8dd3}=this['_splitMarkerName'](_0x223cba['markerName']),_0x2a98e8=this['_suggestions']['get'](_0x4f8dd3),_0x26a09c=this['_getAttributeKey'](_0x2a98e8);if(this['_isBlockAttribute'](_0x26a09c)){for(const _0x1fd66d of _0x4bf4a9)_0x1fd66d['getCustomProperty']('addHighlight')||(_0x362eca['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1fd66d),_0x362eca['writer']['removeAttribute']('data-suggestion',_0x1fd66d),_0x362eca['mapper']['unbindElementFromMarkerName'](_0x1fd66d,_0x223cba['markerName']));}},{'priority':'high'});}),_0x21eccc['model']['document']['registerPostFixer'](_0x197387=>{let _0x4953a6=!0x1;const _0xc3307=Array['from'](_0x21eccc['model']['document']['differ']['getChangedMarkers']()),_0x2b1e33=new Set();for(const {name:_0x463428,data:_0x49cf77}of _0xc3307){const {group:_0x19eea6,type:_0x190d8f,subType:_0x22352e,id:_0x16c4da}=this['_splitMarkerName'](_0x463428);if('suggestion'!==_0x19eea6)continue;const _0x4da28e=this['_suggestions']['get'](_0x16c4da);if(null!=_0x49cf77['newRange']){'formatInline'==_0x190d8f&&(_0x4953a6=_0x4953a6||Et(_0x49cf77['newRange'],_0x463428,_0x197387,_0x21eccc['model']['schema']));const _0x51e0b6='attribute'==_0x190d8f&&this['_isBlockAttribute'](_0x22352e['split']('|')[0x0]);if(_0x49cf77['newRange']['isCollapsed']||'$graveyard'==_0x49cf77['newRange']['root']['rootName']||'formatBlock'==_0x190d8f&&!Ut(_0x49cf77['newRange'])||_0x51e0b6&&!Ut(_0x49cf77['newRange'])||'deletion'==_0x190d8f&&!(!Tt(_0x1fb670=_0x49cf77['newRange'])&&!function(_0x5df4d7){return _0x5df4d7['start']['parent']==_0x5df4d7['end']['nodeBefore']&&_0x5df4d7['start']['isAtEnd'];}(_0x1fb670)))_0x197387['removeMarker'](_0x463428),_0x4953a6=!0x0;else{if(!_0x4da28e||!_0x4da28e['isInContent'])continue;_0x2b1e33['add'](_0x4da28e);}}}var _0x1fb670;return _0x2b1e33['size']>0x0&&(_0x4953a6=!!this['_joinWithAdjacentSuggestions'](_0x2b1e33)||_0x4953a6),_0x4953a6;}),_0x21eccc['model']['document']['registerPostFixer'](_0x4a809a=>{let _0xaa35a1=!0x1;for(const _0x236174 of _0x21eccc['model']['document']['differ']['getChanges']())if('insert'==_0x236174['type'])for(const _0x1e015e of this['_suggestions']['values']()){if(_0x1e015e['isMultiRange']||!_0x1e015e['isInContent'])continue;const _0xc8550='formatBlock'==_0x1e015e['type'],_0x4dc1e5=this['_getAttributeKey'](_0x1e015e),_0x380b6c=_0x4dc1e5&&this['_isBlockAttribute'](_0x4dc1e5);if(!_0xc8550&&!_0x380b6c)continue;const _0x43c821=_0x1e015e['getFirstRange']();if(_0x43c821['start']['parent']!=_0x43c821['end']['parent']&&!_0x43c821['end']['isAtEnd']){const _0x11ff96=_0x21eccc['model']['createPositionAt'](_0x43c821['start']['nodeAfter'],'end'),_0x5b5bea=_0x21eccc['model']['createRange'](_0x43c821['start'],_0x11ff96);_0x4a809a['updateMarker'](_0x1e015e['getFirstMarker'](),{'range':_0x5b5bea}),_0xaa35a1=!0x0;}}return _0xaa35a1;}),_0x21eccc['model']['document']['registerPostFixer'](_0x19acc6=>this['_processAttributeChanges'](_0x19acc6)),_0x21eccc['model']['document']['registerPostFixer'](_0x546a04=>!_0x546a04['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x546a04)),_0x21eccc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x21eccc['model']['document']['on']('change:data',(_0x2ae7ea,_0x2f805d)=>{if(!_0x2f805d['isLocal']||_0x2f805d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x206290=_0x21eccc['model']['document']['differ']['getChanges']();if(0x0==_0x206290['length'])return;const _0x48978a=[],_0x427a29=_0x206290['filter'](_0x4554af=>'attribute'==_0x4554af['type']),_0x39fb53=_0x206290['filter'](_0x1939a3=>'insert'==_0x1939a3['type']&&'$text'!=_0x1939a3['name']),_0x5526fd=_0x206290['filter'](_0x1e4a53=>'remove'==_0x1e4a53['type']&&'$text'!=_0x1e4a53['name']);for(const _0x7af00 of _0x427a29)this['_isRegisteredAttribute'](_0x7af00['attributeKey'])&&_0x48978a['push']({'key':_0x7af00['attributeKey'],'newValue':_0x7af00['attributeNewValue'],'oldValue':_0x7af00['attributeOldValue'],'range':Ot(_0x7af00['range'],_0x21eccc['model'])});for(const _0x1838bd of _0x39fb53){const _0x2d8070=_0x5526fd['find'](_0x3c4a93=>_0x3c4a93['_element']===_0x1838bd['_element']);if(_0x2d8070){const _0x12faac=Ft(_0x1838bd['position']['nodeAfter'],_0x21eccc['model']);_0x2d8070['name']!==_0x1838bd['name']&&_0x48978a['push']({'key':m,'newValue':_0x1838bd['name'],'oldValue':_0x2d8070['name'],'range':_0x12faac});for(const [_0x2c1c88,_0x2065b4]of _0x2d8070['attributes']){if(!this['_isRegisteredAttribute'](_0x2c1c88))continue;const _0x38cfc2=_0x1838bd['attributes']['get'](_0x2c1c88);_0x2065b4!==_0x38cfc2&&_0x48978a['push']({'key':_0x2c1c88,'newValue':_0x38cfc2,'oldValue':_0x2065b4,'range':_0x12faac});}for(const [_0x39c94f,_0x13b499]of _0x1838bd['attributes'])this['_isRegisteredAttribute'](_0x39c94f)&&(_0x2d8070['attributes']['has'](_0x39c94f)||_0x48978a['push']({'key':_0x39c94f,'newValue':_0x13b499,'oldValue':null,'range':_0x12faac}));}}0x0!=_0x48978a['length']&&_0x21eccc['model']['enqueueChange'](_0x2f805d,_0x309034=>{const _0x4c6898=_0x501bc0();for(const {range:_0x444c7d,key:_0xae9a09,oldValue:_0x15f6d1,newValue:_0x1255d0}of _0x48978a)this['markAttributeChange'](_0x444c7d,_0xae9a09,_0x15f6d1,_0x1255d0,{'groupId':_0x4c6898});this['_reduceExistingSuggestions'](_0x309034,_0x48978a);});},{'priority':'lowest'}),_0x21eccc['model']['markers']['on']('update:suggestion',(_0x1878a4,_0x518236,_0x45c5af)=>{if(null==_0x45c5af){const {id:_0x2078c4}=this['_splitMarkerName'](_0x518236['name']),_0x25773b=this['_suggestions']['get'](_0x2078c4);_0x25773b&&_0x25773b['addMarkerName'](_0x518236['name']);}}),_0x21eccc['model']['document']['on']('change:data',()=>{const _0x591ed4=Array['from'](_0x21eccc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x114e12=>'suggestion'===this['_splitMarkerName'](_0x114e12['name'])['group']);if(0x0===_0x591ed4['length'])return;_0x591ed4['sort']((_0x546a2e,_0x6c008b)=>{const _0xf4adbe=_0x546a2e['data']['oldRange'],_0x42fab8=_0x6c008b['data']['oldRange'];return null===_0xf4adbe&&null===_0x42fab8?0x0:null===_0xf4adbe&&null!==_0x42fab8?-0x1:null!==_0xf4adbe&&null===_0x42fab8?0x1:_0xf4adbe['start']['isBefore'](_0x42fab8['start'])?-0x1:0x1;});const _0x263bbc=new Set(),_0x506e71=new Set();for(const {name:_0x3e8e47,data:_0x47d581}of _0x591ed4){const {id:_0x4a005a}=this['_splitMarkerName'](_0x3e8e47);if(null===_0x47d581['oldRange']){const _0x529bfd=this['_handleNewSuggestionMarker'](_0x3e8e47);_0x506e71['add'](_0x529bfd);}else{const _0x3c2cb0=this['_suggestions']['get'](_0x4a005a);null!==_0x47d581['newRange']||_0x3c2cb0['isInContent']?(_0x263bbc['add'](_0x3c2cb0['head']),_0x506e71['add'](_0x3c2cb0)):this['_removeSuggestion'](_0x3c2cb0);}}_0x506e71['size']>0x0&&this['_refreshSuggestionsChain'](_0x506e71);for(const _0x1ca35f of _0x263bbc)this['fire']('suggestionChanged',_0x1ca35f);}),_0x21eccc['model']['on']('applyOperation',(_0x22b4c6,_0x1fdfa1)=>{const _0x7cf5d3=_0x1fdfa1[0x0];if(!this['_suggestions']['size'])return;if(!_0x7cf5d3['isDocumentOperation'])return;if(_0x7cf5d3['batch']['isUndo']||!_0x7cf5d3['batch']['isLocal'])return;let _0x2b3df9,_0x46a7f6;switch(_0x7cf5d3['type']){case'insert':_0x2b3df9=_0x21eccc['model']['createPositionAt'](_0x7cf5d3['position']),_0x46a7f6=_0x2b3df9['getShiftedBy'](_0x7cf5d3['howMany']);break;case'split':_0x2b3df9=_0x21eccc['model']['createPositionAt'](_0x7cf5d3['splitPosition']),_0x46a7f6=_0x21eccc['model']['createPositionAt'](_0x7cf5d3['moveTargetPosition']);break;case'move':_0x2b3df9=_0x21eccc['model']['createPositionAt'](_0x7cf5d3['targetPosition']),_0x46a7f6=_0x2b3df9['getShiftedBy'](_0x7cf5d3['howMany']);break;default:return;}const _0x34668e=_0x21eccc['model']['createRange'](_0x2b3df9,_0x46a7f6);_0x21eccc['model']['change'](()=>{for(const {suggestion:_0x1cbd7a,meta:_0x5f3517}of this['_findSuggestions'](_0x34668e)){if(_0x1cbd7a['isMultiRange'])continue;if('formatInline'==_0x1cbd7a['type'])continue;const _0x209125=this['_getAttributeKey'](_0x1cbd7a);if(_0x209125&&this['_isBlockAttribute'](_0x209125)&&'split'!=_0x7cf5d3['type'])continue;const _0xf7ce87=_0x1cbd7a['data']&&_0x1cbd7a['data']['multipleBlocks'];('formatBlock'!=_0x1cbd7a['type']||'split'==_0x7cf5d3['type']&&!_0xf7ce87)&&(_0x5f3517['containsRangeInObject']||'insertion'==_0x1cbd7a['type']&&_0x5f3517['isOwn']||_0x1cbd7a['getFirstRange']()['containsRange'](_0x34668e)&&this['_breakSuggestionMarker'](_0x1cbd7a,_0x2b3df9,_0x46a7f6));}});},{'priority':'lowest'}),_0x21eccc['model']['on']('deleteContent',(_0x52369f,_0x56b86a)=>{const _0xc40d1b=_0x56b86a[0x0],_0x5e0876=_0x56b86a[0x1];if(_0x5e0876&&_0x5e0876['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xc40d1b['isCollapsed'])return;const _0x3e16f4=_0x21eccc['model']['schema'],{start:_0x568234,end:_0x3e9718}=_0xc40d1b['getFirstRange'](),_0x78d285=_0x568234['nodeAfter']&&_0x3e16f4['isLimit'](_0x568234['nodeAfter'])?null:_0x3e16f4['getNearestSelectionRange'](_0x568234,'forward'),_0x44404a=_0x3e9718['nodeBefore']&&_0x3e16f4['isLimit'](_0x3e9718['nodeBefore'])?null:_0x3e16f4['getNearestSelectionRange'](_0x3e9718,'backward'),_0x20eedf=_0x21eccc['model']['createRange'](_0x78d285?_0x78d285['start']:_0x568234,_0x44404a?_0x44404a['end']:_0x3e9718);_0x21eccc['model']['change'](_0x4c4256=>{this['markDeletion'](_0x20eedf);const _0x29ac59=_0x21eccc['model']['schema']['getNearestSelectionRange'](_0x20eedf['start']);_0xc40d1b['is']('documentSelection')?_0x4c4256['setSelection'](_0x29ac59):_0xc40d1b['setTo'](_0x29ac59);}),_0x52369f['stop']();},{'priority':_0x16dc4b['normal']+0xa}),_0x21eccc['model']['on']('insertContent',(_0x681554,_0x4b1e86)=>{const _0x364543=_0x4b1e86[_0x4b1e86['length']-0x1];_0x364543&&_0x364543['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x21eccc['model']['change'](()=>{let _0x127a46=_0x21eccc['model']['insertContent'](_0x4b1e86[0x0],_0x4b1e86[0x1],_0x4b1e86[0x2],{'forceDefaultExecution':!0x0});if(!_0x127a46)return;_0x681554['return']=_0x127a46['clone']();const _0x398eda=_0x127a46['end']['nodeBefore'],_0x45c62f=_0x21eccc['model']['schema'];_0x398eda&&_0x45c62f['isBlock'](_0x398eda)&&!_0x45c62f['isObject'](_0x398eda)&&(_0x127a46=_0x21eccc['model']['createRange'](_0x127a46['start'],_0x21eccc['model']['createPositionAt'](_0x398eda,'end'))),this['markInsertion'](_0x127a46);}),_0x681554['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x36c834=new $(_0x21eccc,this['_suggestions']);_0x21eccc['commands']['add']('acceptSuggestion',_0x36c834),this['enableCommand']('acceptSuggestion');const _0x14b2ca=new B(_0x21eccc,this['_suggestions']);_0x21eccc['commands']['add']('discardSuggestion',_0x14b2ca),this['enableCommand']('discardSuggestion'),_0x21eccc['commands']['add']('acceptAllSuggestions',new x(_0x21eccc,_0x36c834,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x21eccc['commands']['add']('discardAllSuggestions',new x(_0x21eccc,_0x14b2ca,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x21eccc['commands']['add']('acceptSelectedSuggestions',new R(_0x21eccc,_0x36c834,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x21eccc['commands']['add']('discardSelectedSuggestions',new R(_0x21eccc,_0x14b2ca,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1c95fd=_0x21eccc['plugins']['get']('CommentsRepository');this['listenTo'](_0x1c95fd,'addComment',(_0x2674fe,{threadId:_0x5b947a})=>{const _0x13b640=this['_suggestions']['get'](_0x5b947a);_0x13b640&&_0x13b640['commentThread']&&0x1===_0x13b640['commentThread']['length']&&this['_updateSuggestionData'](_0x5b947a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1c95fd,'removeComment',(_0x488eb3,{threadId:_0x32c16b})=>{const _0x528fe3=this['_suggestions']['get'](_0x32c16b);_0x528fe3&&_0x528fe3['commentThread']&&!_0x528fe3['commentThread']['length']&&this['_updateSuggestionData'](_0x32c16b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x19113b){if(this['_adapter'])throw new _0x3c3be4('track-changes-adapter-already-set',this);this['_adapter']=_0x19113b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x49713f=!0x1,toJSON:_0x52cba6=!0x1}={}){const _0x43c0ed=[];for(const _0x6c9615 of this['_suggestions']['values']())_0x49713f&&!_0x6c9615['isInContent']||_0x43c0ed['push'](_0x6c9615);return _0x52cba6?_0x43c0ed['map'](_0x2a20ef=>_0x2a20ef['toJSON']()):_0x43c0ed;}['getSuggestion'](_0x89a334){const _0x5716a6=this['_suggestions']['get'](_0x89a334);if(!_0x5716a6)throw new _0x3c3be4('track-changes-suggestion-not-found',this);return _0x5716a6;}['hasSuggestion'](_0x341c53){return this['_suggestions']['has'](_0x341c53);}['addSuggestionData'](_0x2fa070){const {authorId:_0x14d2f3,id:_0x433792,attributes:_0xae28f6}=_0x2fa070,[_0x66c673,_0x19ce94]=_0x2fa070['type']['split'](':'),_0x15a9eb=this['_suggestions']['get'](_0x433792)||this['_createSuggestion'](_0x66c673,_0x19ce94,_0x433792,_0x14d2f3,_0xae28f6);if(this['_addThreadToSuggestion'](_0x15a9eb),this['_checkSuggestionCorrectness'](_0x15a9eb,_0x66c673,_0x19ce94||null,_0x14d2f3),_0x15a9eb['createdAt']=_0x2fa070['createdAt'],_0x15a9eb['_isDataLoaded']=!0x0,_0xae28f6&&_0xae28f6['@external']){const _0x3f6686=_0xae28f6['@external'],_0x402dd9=this['_getExternalAuthor'](_0x3f6686['authorName']);_0x15a9eb['authoredAt']=_0x3f6686['createdAt'],_0x15a9eb['author']=_0x402dd9,_0x15a9eb['isExternal']=!0x0;}else _0x15a9eb['authoredAt']=_0x2fa070['createdAt'];switch(_0x2fa070['data']&&(_0x15a9eb['data']=_0x2fa070['data']),_0x2fa070['attributes']&&(_0x15a9eb['attributes']=_0x2fa070['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x15a9eb['_saved']=!0x0),this['_suggestionState']['get'](_0x15a9eb)){case'notReady':this['_suggestionState']['set'](_0x15a9eb,'dataReady');break;case'markerReady':_0x15a9eb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x15a9eb])),this['_refreshSuggestionsChain'](new Set([_0x15a9eb])),this['_suggestionState']['set'](_0x15a9eb,'ready'),this['fire']('suggestionLoaded',_0x15a9eb)):this['_suggestionState']['set'](_0x15a9eb,'removed');}return _0x15a9eb;}['acceptSuggestion'](_0x2f5dbc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf4e063 of _0x2f5dbc['getAllAdjacentSuggestions']())_0xf4e063['accept']();});});}['discardSuggestion'](_0x10a225){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x34c75c of _0x10a225['getAllAdjacentSuggestions']())_0x34c75c['discard']();});});}['enableCommand'](_0x112922,_0x4134f0){const _0x5cfcb4=this['editor']['commands']['get'](_0x112922);if(!_0x5cfcb4)throw new _0x3c3be4('track-changes-command-not-found',this,{'commandName':_0x112922});if(this['_enabledCommands']['has'](_0x5cfcb4))throw new _0x3c3be4('track-changes-enable-command-twice',this,{'commandName':_0x112922});this['_enabledCommands']['add'](_0x5cfcb4),_0x4134f0&&_0x5cfcb4['on']('execute',(_0x3e65a7,_0x1002dd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1002dd['length']>0x0&&_0x1002dd[_0x1002dd['length']-0x1]&&_0x1002dd[_0x1002dd['length']-0x1]['forceDefaultExecution']?_0x1002dd['pop']():(_0x3e65a7['return']=_0x4134f0((..._0x280615)=>_0x5cfcb4['execute'](..._0x280615,{'forceDefaultExecution':!0x0}),..._0x1002dd),_0x3e65a7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x6d9a0a){let _0x277b64,_0x327fc1;const _0x518e30=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x277b64=_0x6d9a0a();}catch(_0x4cbc5f){_0x327fc1=_0x4cbc5f;}return _0x518e30||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x327fc1&&_0x3c3be4['rethrowUnexpectedError'](_0x327fc1,this),_0x277b64;}['markInsertion'](_0x5d3ddd,_0x27ebf7=null,_0xa9c5d={}){if(_0x5d3ddd['isCollapsed'])return null;const _0x5870ad=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x48f626,meta:_0x12cde4}of this['_findSuggestions'](_0x5d3ddd,'insertion'))if(_0x12cde4['isOwn']){if(!_0x12cde4['isNextTo']){if(_0x12cde4['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x48f626,_0xa9c5d))continue;return _0x48f626;}if(Lt(_0x48f626,_0xa9c5d))return _0x48f626;this['_breakSuggestionMarker'](_0x48f626,_0x5d3ddd['start'],_0x5d3ddd['end']);break;}if(_0x27ebf7==_0x48f626['subType']&&Lt(_0x48f626,_0xa9c5d)){const _0x5afca6=_0x48f626['getFirstRange']();return _0x5afca6['start']['isEqual'](_0x5d3ddd['end'])?this['_setSuggestionRange'](_0x48f626,this['_model']['createRange'](_0x5d3ddd['start'],_0x5afca6['end'])):this['_setSuggestionRange'](_0x48f626,this['_model']['createRange'](_0x5afca6['start'],_0x5d3ddd['end'])),_0x48f626;}}const _0x109c40=_0x501bc0(),_0x83ee86=_0x5870ad['id'],_0x36b2d4=_0x27ebf7?'insertion:'+_0x27ebf7:'insertion',_0x3dbf77=this['_setSuggestionData']({'id':_0x109c40,'type':_0x36b2d4,'createdAt':new Date(),'authorId':_0x83ee86,'attributes':_0xa9c5d});return this['_addSuggestionMarker'](_0x36b2d4,_0x109c40,_0x83ee86,_0x5d3ddd),_0x3dbf77;}['markMultiRangeInsertion'](_0x50bede,_0x2aa6ed='multi',_0x1319fb={}){const _0x3e47ef=this['editor']['plugins']['get']('Users')['me'],_0x3f8ff8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2aa6ed,'join');for(const _0x249736 of this['getSuggestions']())if(_0x249736['author']['id']==_0x3e47ef['id']&&'insertion'==_0x249736['type']&&_0x249736['subType']==_0x2aa6ed&&Lt(_0x249736,_0x1319fb)&&(_0x3f8ff8(_0x249736['getRanges'](),_0x50bede)||_0x3f8ff8(_0x50bede,_0x249736['getRanges']()))){for(const _0x1bf682 of _0x50bede)_0x249736['addRange'](_0x1bf682);return _0x249736;}for(const {suggestion:_0x359558,meta:_0x516354}of this['_findSuggestions'](_0x50bede,'insertion')){if(!_0x516354['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x516354['containsRangeInObject'])continue;if(!Lt(_0x359558,_0x1319fb))continue;let _0x3d52b9=!0x0;for(const _0x59325b of _0x359558['getRanges']())for(const _0x239c06 of _0x50bede)if(!_0x59325b['containsRange'](_0x239c06)){_0x3d52b9=!0x1;break;}if(_0x3d52b9)return _0x359558;}const _0x2e9e03=_0x501bc0(),_0x4ee8b5=_0x3e47ef['id'],_0x11fa07='insertion:'+_0x2aa6ed,_0x57b527=this['_setSuggestionData']({'id':_0x2e9e03,'type':_0x11fa07,'createdAt':new Date(),'authorId':_0x4ee8b5,'attributes':_0x1319fb});for(const _0x40a194 of _0x50bede)this['_addSuggestionMarker'](_0x11fa07,_0x2e9e03,_0x4ee8b5,_0x40a194,u['getMultiRangeId']());return _0x57b527;}['markInlineFormat'](_0x1b2917,_0x5111e7,_0x37ab4e=null,_0x455d1d={}){if(_0x37ab4e=_0x37ab4e||Vt(_0x5111e7),_0x1b2917['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x42e5bd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37ab4e,'accept');return this['forceDefaultExecution'](()=>_0x42e5bd([_0x1b2917],_0x5111e7,_0x455d1d)),null;}const _0x48294b=this['editor']['plugins']['get']('Users')['me'],_0x586c93=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xaf7c4c,meta:_0x2afe38}of this['_findSuggestions'](_0x1b2917,'insertion'))_0x2afe38['isOwn']&&!_0x2afe38['isInsideObject']&&_0x586c93['push'](..._0xaf7c4c['getRanges']());}const _0x51dd7e=function(_0x1f3aa8,_0x46afa5){const _0x34f081=[];for(const _0x480be4 of _0x46afa5){const _0x128e1c=_0x1f3aa8['getIntersection'](_0x480be4);_0x128e1c&&_0x34f081['push'](_0x128e1c);}return _0x34f081;}(_0x1b2917,_0x586c93),_0x2186fe=function(_0x1c830b,_0x4c89bd){const _0x2aef0c=[_0x1c830b];for(const _0x48ca4c of _0x4c89bd){let _0x4fc62a=0x0;for(;_0x4fc62a<_0x2aef0c['length'];){const _0xa92b5d=_0x2aef0c[_0x4fc62a]['getDifference'](_0x48ca4c);_0x2aef0c['splice'](_0x4fc62a,0x1,..._0xa92b5d),_0x4fc62a+=_0xa92b5d['length'];}}return _0x2aef0c;}(_0x1b2917,_0x586c93);_0x51dd7e['length']&&this['_model']['change'](()=>{for(const _0x3b35c9 of _0x51dd7e){const _0x83551=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37ab4e,'accept');this['forceDefaultExecution'](()=>_0x83551([_0x3b35c9],_0x5111e7,_0x455d1d));}});for(const _0x4ffd47 of _0x2186fe){let _0x79042d=null,_0x4e87cd=_0x4ffd47['start'],_0x4e79de=_0x4ffd47['end'];for(const {suggestion:_0x1a472b,meta:_0x349c31}of this['_findSuggestions'](_0x4ffd47,'formatInline')){if(!_0x349c31['isOwn'])continue;if(_0x1a472b['subType']!=_0x37ab4e)continue;if(!Lt(_0x1a472b,_0x455d1d))continue;const _0x26fdd7=_0x1a472b['getFirstRange']();if(_0x26fdd7['containsRange'](_0x4ffd47,!0x0))return null;_0x4e87cd=_0x4e87cd['isBefore'](_0x26fdd7['start'])?_0x4e87cd:_0x26fdd7['start'],_0x4e79de=_0x4e79de['isAfter'](_0x26fdd7['end'])?_0x4e79de:_0x26fdd7['end'],_0x79042d?_0x26fdd7['start']['isBefore'](_0x79042d['getFirstRange']()['start'])?(_0x79042d['removeMarkers'](),_0x79042d=_0x1a472b):_0x1a472b['removeMarkers']():_0x79042d=_0x1a472b;}const _0x3188bc=this['_model']['createRange'](_0x4e87cd,_0x4e79de);if(_0x79042d)this['_setSuggestionRange'](_0x79042d,_0x3188bc);else{const _0x391e82=_0x501bc0(),_0x51dd42=_0x48294b['id'];this['_setSuggestionData']({'id':_0x391e82,'type':'formatInline:'+_0x37ab4e,'data':_0x5111e7,'createdAt':new Date(),'authorId':_0x51dd42,'attributes':_0x455d1d}),this['_addSuggestionMarker']('formatInline:'+_0x37ab4e,_0x391e82,_0x51dd42,_0x3188bc);}}return null;}['markBlockFormat'](_0x105e9c,_0x307e6e,_0x4a31a8=[],_0x45b625=null,_0x410df5={}){_0x307e6e['formatGroupId']||(_0x307e6e['formatGroupId']=_0x307e6e['commandName']),_0x307e6e['multipleBlocks']=_0x105e9c['is']('range'),_0x45b625=_0x45b625||Vt(_0x307e6e);const _0x3c3556=_0x4a31a8['map'](_0x508f90=>Ft(_0x508f90,this['_model'])),_0x2df55d=_0x105e9c['is']('range')?_0x105e9c:Ft(_0x105e9c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3a8cca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45b625,'accept');return this['forceDefaultExecution'](()=>_0x3a8cca([_0x2df55d],_0x307e6e,_0x410df5)),null;}_0x3c3556['push'](_0x2df55d);let _0x37cab6=!0x0;for(const _0x2c82c6 of _0x3c3556)if(!this['_rangeIsInLocalUserInsertion'](_0x2c82c6)){_0x37cab6=!0x1;break;}if(_0x37cab6&&'always'!==this['_trackFormatChanges']){const _0x1e3c57=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45b625,'accept');return this['forceDefaultExecution'](()=>_0x1e3c57([_0x2df55d],_0x307e6e,_0x410df5)),null;}let _0x47c343=null,_0x10b13f=_0x2df55d['start'],_0x166192=_0x2df55d['end'];for(const {suggestion:_0x538ab4,meta:_0x5d6daf}of this['_findSuggestions'](_0x2df55d,'formatBlock')){if(!_0x5d6daf['isOwn'])continue;if(_0x5d6daf['isNextTo']||_0x5d6daf['containsRangeInObject']||_0x5d6daf['isInsideObject'])continue;if(_0x538ab4['data']['formatGroupId']!=_0x307e6e['formatGroupId'])continue;if(!Lt(_0x538ab4,_0x410df5))continue;const _0x936cb1=_0x538ab4['getFirstRange']();if(_0x538ab4['subType']==_0x45b625){if(_0x936cb1['containsRange'](_0x2df55d,!0x0))return null;_0x10b13f=_0x10b13f['isBefore'](_0x936cb1['start'])?_0x10b13f:_0x936cb1['start'],_0x166192=_0x166192['isAfter'](_0x936cb1['end'])?_0x166192:_0x936cb1['end'],_0x47c343?_0x936cb1['start']['isBefore'](_0x47c343['getFirstRange']()['start'])?(_0x47c343['removeMarkers'](),_0x47c343=_0x538ab4):_0x538ab4['removeMarkers']():_0x47c343=_0x538ab4;}else{const _0x6a119=_0x2df55d['getIntersection'](_0x936cb1);this['_cutOutSuggestionMarker'](_0x538ab4,_0x6a119);}}const _0x1c5b2c=this['editor']['plugins']['get']('Users')['me'],_0xbfd75d=_0x501bc0(),_0xce92ec=_0x1c5b2c['id'];if(_0x47c343)return this['_setSuggestionRange'](_0x47c343,this['_model']['createRange'](_0x10b13f,_0x166192)),_0x47c343;{const _0x9863a5=this['_setSuggestionData']({'id':_0xbfd75d,'type':'formatBlock:'+_0x45b625,'data':_0x307e6e,'createdAt':new Date(),'authorId':_0xce92ec,'attributes':_0x410df5});return this['_addSuggestionMarker']('formatBlock:'+_0x45b625,_0xbfd75d,_0xce92ec,this['_model']['createRange'](_0x10b13f,_0x166192)),_0x9863a5;}}['markMultiRangeBlockFormat'](_0x364f9c,_0xaf5584,_0x5e349e=[],_0x54421=null,_0x4a8157={}){_0xaf5584['formatGroupId']||(_0xaf5584['formatGroupId']=_0xaf5584['commandName']);const _0x3d37f8=_0x364f9c[0x0];_0xaf5584['multipleBlocks']=_0x3d37f8['is']('range'),_0x54421=_0x54421||Vt(_0xaf5584);const _0x2018af=_0x5e349e['map'](_0x41f4e4=>Ft(_0x41f4e4,this['_model'])),_0x48ebf1=_0x3d37f8['is']('range')?_0x364f9c:_0x364f9c['map'](_0x17dc3b=>Ft(_0x17dc3b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x6a5ef8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54421,'accept');return this['forceDefaultExecution'](()=>_0x6a5ef8(_0x48ebf1,_0xaf5584,_0x4a8157)),null;}_0x2018af['push'](..._0x48ebf1);let _0x2a4728=!0x0;for(const _0x5244d1 of _0x2018af)if(!this['_rangeIsInLocalUserInsertion'](_0x5244d1)){_0x2a4728=!0x1;break;}if(_0x2a4728&&'always'!==this['_trackFormatChanges']){const _0x20fda3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54421,'accept');return this['forceDefaultExecution'](()=>_0x20fda3(_0x48ebf1,_0xaf5584,_0x4a8157)),null;}const _0xe4e710=this['editor']['plugins']['get']('Users')['me'];for(const _0x3001d6 of this['getSuggestions']()){if(_0x3001d6['author']['id']!=_0xe4e710['id'])continue;if('formatBlock'!=_0x3001d6['type']||_0x3001d6['data']['formatGroupId']!=_0xaf5584['formatGroupId'])continue;if(!Lt(_0x3001d6,_0x4a8157))continue;const _0x58d466=_0x3001d6['subType']==_0x54421;for(let _0xa28cd6=0x0;_0xa28cd6<_0x48ebf1['length'];_0xa28cd6++){const _0x30257f=_0x48ebf1[_0xa28cd6];for(const _0x549edd of _0x3001d6['getMarkers']()){const _0x2bc574=_0x549edd['getRange']();if(_0x30257f['isEqual'](_0x2bc574)){_0x58d466?(_0x48ebf1['splice'](_0xa28cd6,0x1),_0xa28cd6--):_0x3001d6['removeMarker'](_0x549edd['name']);break;}}}}if(0x0==_0x48ebf1['length'])return null;const _0x15bb49=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54421,'join');for(const _0x24f4b5 of this['getSuggestions']())if(_0x24f4b5['author']['id']==_0xe4e710['id']&&'formatBlock'==_0x24f4b5['type']&&_0x24f4b5['data']['formatGroupId']==_0xaf5584['formatGroupId']&&_0x24f4b5['subType']==_0x54421&&Lt(_0x24f4b5,_0x4a8157)&&(_0x15bb49(_0x24f4b5['getRanges'](),_0x48ebf1)||_0x15bb49(_0x48ebf1,_0x24f4b5['getRanges']()))){for(const _0x1dec3d of _0x48ebf1)_0x24f4b5['addRange'](_0x1dec3d);return _0x24f4b5;}const _0x128b33=_0x501bc0(),_0x22949c=_0xe4e710['id'],_0x7f9fd8='formatBlock:'+_0x54421,_0x354d3d=this['_setSuggestionData']({'id':_0x128b33,'type':_0x7f9fd8,'data':_0xaf5584,'createdAt':new Date(),'authorId':_0x22949c,'attributes':_0x4a8157});for(const _0x6478a6 of _0x48ebf1)this['_addSuggestionMarker'](_0x7f9fd8,_0x128b33,_0x22949c,_0x6478a6,u['getMultiRangeId']());return _0x354d3d;}['markDeletion'](_0x5a3cfd,_0x13df55=null,_0x411205={}){if(_0x5a3cfd['isCollapsed'])return null;const _0x1d2ed4=this['editor']['plugins']['get']('Users')['me'],_0x4e615e=new _0x2242e5(_0x5a3cfd['start'],_0x5a3cfd['end']);for(const {suggestion:_0x1985e4,meta:_0x1369ac}of this['_findSuggestions'](_0x4e615e,'insertion'))if(_0x1369ac['isOwn']&&!_0x1369ac['isNextTo']){if(_0x1985e4['isMultiRange']){const _0x57223e=_0x1985e4['getRanges']()['filter'](_0x1264ac=>'$graveyard'!=_0x1264ac['root']['rootName']);_0x57223e['every'](_0x48b6d4=>_0x4e615e['containsRange'](_0x48b6d4,!0x0))&&_0x1985e4['discard']();if(_0x57223e['some'](_0x5cbeb2=>_0x5cbeb2['containsRange'](_0x4e615e,!0x0))){const _0x5329d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x13df55,'accept');return this['forceDefaultExecution'](()=>_0x5329d6([_0x4e615e],null,_0x411205)),null;}}else{const _0x114409=_0x4e615e['getIntersection'](_0x1985e4['getFirstRange']());null!==_0x114409&&_0x1985e4['_onDiscard']([_0x114409],null,_0x411205);}}if(_0x4e615e['detach'](),_0x4e615e['isCollapsed']||'$graveyard'==_0x4e615e['root']['rootName'])return null;let _0x3df7eb=null,_0x5e2481=_0x4e615e['start'],_0x408dda=_0x4e615e['end'];const _0x1976a8=this['_findSuggestions'](_0x4e615e,'deletion');for(const {suggestion:_0x483e4b,meta:_0x495875}of _0x1976a8){const _0x3d3393=this['_model']['createRange'](_0x5e2481,_0x408dda);if(_0x495875['isOwn']&&(this['_mergeNestedSuggestions']||!_0x495875['containsRangeInObject']&&!_0x495875['isInsideObject'])){if(_0x483e4b['isMultiRange']){if(!Lt(_0x483e4b,_0x411205))continue;let _0x323904=!0x0;for(const _0x4b466f of _0x483e4b['getRanges']()){if(_0x4b466f['containsRange'](_0x3d3393,!0x0))return _0x483e4b;_0x3d3393['containsRange'](_0x4b466f)||(_0x323904=!0x1);}_0x323904&&_0x483e4b['discard']();}else{const _0x2564c5=_0x483e4b['getFirstRange']();if(_0x2564c5['containsRange'](_0x3d3393,!0x0))return _0x483e4b;if(!Lt(_0x483e4b,_0x411205)){_0x3d3393['containsRange'](_0x2564c5)?_0x483e4b['removeMarkers']():_0x2564c5['containsPosition'](_0x5e2481)?_0x5e2481=_0x2564c5['end']:_0x2564c5['containsPosition'](_0x408dda)&&(_0x408dda=_0x2564c5['start']);continue;}_0x5e2481=_0x5e2481['isBefore'](_0x2564c5['start'])?_0x5e2481:_0x2564c5['start'],_0x408dda=_0x408dda['isAfter'](_0x2564c5['end'])?_0x408dda:_0x2564c5['end'],_0x411205=Object['assign']({},_0x483e4b['attributes']),_0x3df7eb?_0x2564c5['start']['isBefore'](_0x3df7eb['getFirstRange']()['start'])?(_0x3df7eb['removeMarkers'](),_0x3df7eb=_0x483e4b):_0x483e4b['removeMarkers']():_0x3df7eb=_0x483e4b;}}}if(_0x3df7eb)return this['_setSuggestionRange'](_0x3df7eb,this['_model']['createRange'](_0x5e2481,_0x408dda)),_0x3df7eb;{const _0x4072f5=_0x501bc0(),_0x35f9be=this['_model']['createRange'](_0x5e2481,_0x408dda),_0x1f2551=_0x1d2ed4['id'],_0x396463=_0x13df55?'deletion:'+_0x13df55:'deletion',_0x373150=this['_setSuggestionData']({'id':_0x4072f5,'type':_0x396463,'createdAt':new Date(),'authorId':_0x1f2551,'attributes':_0x411205});return this['_addSuggestionMarker'](_0x396463,_0x4072f5,_0x1f2551,_0x35f9be),_0x373150;}}['markMultiRangeDeletion'](_0x2828e3,_0x489e23='multi',_0x2bc455={}){const _0x37a158=this['editor']['plugins']['get']('Users')['me'],_0x35415f=_0x2828e3['map'](_0x142447=>new _0x2242e5(_0x142447['start'],_0x142447['end'])),_0x6064b7=new Set();for(const {suggestion:_0x38201b,meta:_0xa522da}of this['_findSuggestions'](_0x35415f,'insertion'))_0xa522da['isOwn']&&!_0xa522da['isNextTo']&&_0x6064b7['add'](_0x38201b);for(const _0x2bc50f of _0x6064b7)if(_0x2bc50f['isMultiRange']){const _0x55eeb0=_0x2bc50f['getRanges']();(!_0x2bc50f['attributes']||!_0x2bc50f['attributes']['skipNestingCheck'])&&(_0x55eeb0['every'](_0x157346=>_0x35415f['some'](_0x18405c=>_0x18405c['containsRange'](_0x157346,!0x0)))&&_0x2bc50f['discard']());if(_0x35415f['every'](_0x51ed55=>_0x55eeb0['some'](_0xa20fc2=>_0xa20fc2['containsRange'](_0x51ed55,!0x0)))){const _0x486466=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x489e23,'accept');return this['forceDefaultExecution'](()=>_0x486466(_0x2828e3,null,_0x2bc455)),null;}}else{const _0x33a498=_0x2bc50f['getFirstRange']();_0x35415f['some'](_0x5d205c=>_0x5d205c['containsRange'](_0x33a498,!0x0))&&_0x2bc50f['discard']();if(_0x35415f['every'](_0x390bed=>_0x33a498['containsRange'](_0x390bed,!0x0))){const _0x3647da=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x489e23,'accept');return this['forceDefaultExecution'](()=>_0x3647da(_0x35415f,null,_0x2bc455)),null;}}const _0x1a5050=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x489e23,'join');let _0x5c7694=null;for(const _0xe0d34f of this['getSuggestions']())if(_0xe0d34f['author']['id']==_0x37a158['id']&&_0xe0d34f['isInContent']&&'deletion'==_0xe0d34f['type']&&_0xe0d34f['subType']==_0x489e23&&Lt(_0xe0d34f,_0x2bc455)&&(_0x1a5050(_0xe0d34f['getRanges'](),_0x35415f)||_0x1a5050(_0x35415f,_0xe0d34f['getRanges']()))){if(_0x5c7694){if(_0xe0d34f['commentThread']&&_0xe0d34f['commentThread']['length'])continue;for(const _0x4c8a0e of _0xe0d34f['getRanges']())_0x5c7694['isIntersectingWithRange'](_0x4c8a0e)||_0x5c7694['addRange'](_0x4c8a0e);_0xe0d34f['removeMarkers']();}else{_0x5c7694=_0xe0d34f;for(const _0x4d9e77 of _0x35415f)_0xe0d34f['isIntersectingWithRange'](_0x4d9e77)||_0xe0d34f['addRange'](_0x4d9e77);}}if(_0x5c7694)return _0x5c7694;_0x6064b7['clear']();for(const {suggestion:_0x2c7dbb,meta:_0xa4f8ef}of this['_findSuggestions'](_0x35415f,'deletion'))_0xa4f8ef['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa4f8ef['containsRangeInObject']&&!_0xa4f8ef['isInsideObject'])&&Lt(_0x2c7dbb,_0x2bc455)&&_0x6064b7['add'](_0x2c7dbb);for(const _0xac4cc2 of _0x6064b7){const _0x1ad117=_0xac4cc2['getRanges']();if(!_0x2bc455||!_0x2bc455['skipNestingCheck']){if(_0x35415f['every'](_0x50498e=>_0x1ad117['some'](_0x399558=>_0x399558['containsRange'](_0x50498e,!0x0))))return _0xac4cc2;}(!_0xac4cc2['attributes']||!_0xac4cc2['attributes']['skipNestingCheck'])&&(_0x1ad117['every'](_0x1b98d1=>_0x35415f['some'](_0x121f1c=>_0x121f1c['containsRange'](_0x1b98d1,!0x0)))&&_0xac4cc2['discard']());}const _0x5e24b3=_0x501bc0(),_0x252f5c=_0x37a158['id'],_0x258c64='deletion:'+_0x489e23,_0x119dc9=this['_setSuggestionData']({'id':_0x5e24b3,'type':_0x258c64,'createdAt':new Date(),'authorId':_0x252f5c,'attributes':_0x2bc455});for(const _0x4fcf67 of _0x35415f)_0x4fcf67['detach'](),_0x4fcf67['isCollapsed']||'$graveyard'==_0x4fcf67['root']['rootName']||this['_addSuggestionMarker'](_0x258c64,_0x5e24b3,_0x252f5c,_0x4fcf67,u['getMultiRangeId']());return _0x119dc9;}['markAttributeChange'](_0x354593,_0x2dba7c,_0xa8fc04,_0x1d0365,_0x553c0d){if(_0x354593['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x464889=this['editor']['plugins']['get']('Users')['me']['id'],_0x3e2515=Array['from'](this['_suggestions']['values']())['filter'](_0x25b44b=>'attribute'==_0x25b44b['type']&&_0x25b44b['data']['key']==_0x2dba7c&&_0x25b44b['isIntersectingWithRange'](_0x354593));if('default'===this['_trackFormatChanges']){const _0x2953cd=this['_findSuggestions'](_0x354593,'insertion')['filter'](({meta:_0x2e9717})=>_0x2e9717['isOwn']&&!_0x2e9717['isInsideObject']&&!_0x2e9717['isNextTo'])['map'](({suggestion:_0x4e80c3})=>_0x4e80c3);_0x3e2515['unshift'](..._0x2953cd);}const _0x3a60b1=new Map([[_0x354593,_0xa8fc04]]);for(const _0x5f5542 of _0x3e2515){const _0x2434c4='attribute'==_0x5f5542['type']?_0x5f5542['data']['oldValue']:void 0x0,_0xb8d6ee=_0x5f5542['getFirstRange'](),_0x1d7276=Array['from'](_0x3a60b1['keys']())['find'](_0x39271c=>_0x39271c['isIntersecting'](_0xb8d6ee));if(!_0x1d7276)continue;const _0x12d5ce=_0x1d7276['getDifference'](_0xb8d6ee);this['_isBlockAttribute'](_0x2dba7c)&&'insertion'==_0x5f5542['type']&&0x0!=_0x12d5ce['length']||(_0x3a60b1['delete'](_0x1d7276),_0x12d5ce['forEach'](_0x1d8a2a=>{_0x3a60b1['set'](_0x1d8a2a,_0xa8fc04);}),'insertion'!=_0x5f5542['type']&&_0x2434c4!=_0x1d0365&&_0x3a60b1['set'](_0x1d7276['getIntersection'](_0xb8d6ee),_0x2434c4));}const _0x3d9577=[];for(const [_0x45dca,_0x449aca]of _0x3a60b1){const _0x2092c8=_0x501bc0(),_0x1bbf8c={'key':_0x2dba7c,'oldValue':_0x449aca,'newValue':_0x1d0365};_0x2dba7c['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':_0x2dba7c});const _0x515ad2=('attribute:'+(_0x2dba7c+'|'+Vt({'newValue':_0x1d0365})))['substring'](0x0,0x3c),_0x307558=this['_setSuggestionData']({'id':_0x2092c8,'type':_0x515ad2,'data':_0x1bbf8c,'createdAt':new Date(),'authorId':_0x464889,'attributes':_0x553c0d});_0x3d9577['push'](_0x307558),this['_addSuggestionMarker'](_0x515ad2,_0x2092c8,_0x464889,_0x45dca);}return _0x3d9577;}['enableDefaultAttributesIntegration'](_0xf2e9a6){this['enableCommand'](_0xf2e9a6,(_0x5aff04,..._0x371dac)=>{this['_recordAttributeChanges'](()=>{_0x5aff04(..._0x371dac);});});}['registerBlockAttribute'](_0x232d66){this['_blockAttributeKeys']['add'](_0x232d66);}['registerInlineAttribute'](_0x575a00){this['_inlineAttributeKeys']['add'](_0x575a00);}['_getAttributeKey'](_0x48c2d8){return'attribute'==_0x48c2d8['type']?_0x48c2d8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x20339b,_0x390067){const _0x32b3b9=_0x20339b['getFirstMarker']();this['_model']['change'](_0xe5c359=>{_0xe5c359['updateMarker'](_0x32b3b9,{'range':_0x390067});});}['_addThreadToSuggestion'](_0x4d3faa){const _0x4b7fe4=_0x4d3faa['id'],_0x4babdb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4b7fe4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4babdb,'threadId':_0x4b7fe4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xe5d41a=this['_commentsRepository']['getCommentThread'](_0x4b7fe4);_0xe5d41a['unbind']('isRemovable'),_0xe5d41a['isRemovable']=!0x1,_0x4d3faa['commentThread']=_0xe5d41a;}['_checkSuggestionCorrectness'](_0x48a841,_0x38abef,_0x542bb9,_0x58b810){if(_0x48a841['type']!=_0x38abef||_0x48a841['subType']!=_0x542bb9||_0x48a841['creator']['id']!=_0x58b810)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3c3be4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5ea5af,_0x9ccc6f){const _0x4b9fce=_0x5ea5af['getFirstRange']();if(_0x9ccc6f['isEqual'](_0x4b9fce))_0x5ea5af['removeMarkers']();else{if(_0x4b9fce['containsRange'](_0x9ccc6f)){const _0x1f48a0=this['_model']['createPositionAt'](_0x9ccc6f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5ea5af,this['_model']['createRange'](_0x4b9fce['start'],_0x1f48a0));const _0x168cee=_0x501bc0(),_0x5d3f77=_0x5ea5af['creator']['id'],_0x3915fe=_0x5ea5af['type']+':'+_0x5ea5af['subType'];this['_setSuggestionData']({'id':_0x168cee,'type':_0x3915fe,'createdAt':new Date(),'authorId':_0x5d3f77,'data':_0x5ea5af['data'],'attributes':_0x5ea5af['attributes']});const _0x1157a5=this['_model']['createPositionAt'](_0x9ccc6f['end']['parent'],'after'),_0x551337=this['_model']['createRange'](_0x1157a5,_0x4b9fce['end']);this['_addSuggestionMarker'](_0x3915fe,_0x168cee,_0x5d3f77,_0x551337);}else{if(_0x4b9fce['containsPosition'](_0x9ccc6f['start'])){const _0x2d7970=this['_model']['createPositionAt'](_0x9ccc6f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5ea5af,this['_model']['createRange'](_0x4b9fce['start'],_0x2d7970));}else{const _0x180834=this['_model']['createPositionAt'](_0x9ccc6f['end']['parent'],'after');this['_setSuggestionRange'](_0x5ea5af,this['_model']['createRange'](_0x180834,_0x4b9fce['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2d068a){for(const {suggestion:_0xfe8fb6,meta:_0x4d103d}of this['_findSuggestions'](_0x2d068a,'insertion')){if(!_0x4d103d['isOwn'])continue;const _0x4c14d0=_0xfe8fb6['getRanges']();for(const _0x24e123 of _0x4c14d0)if(!_0x2d068a['getDifference'](_0x24e123)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x234933){const _0x1db576=this['editor']['plugins']['get']('Users')['getUser'](_0x234933);if(!_0x1db576)throw new _0x3c3be4('track-changes-user-not-found',this);return _0x1db576;}['_getExternalAuthor'](_0x2ac077){const _0x38e421=this['editor']['plugins']['get']('Users'),_0x38edbf=_0x134b70('external:'+_0x2ac077),_0x5681a7=_0x38e421['getUser'](_0x38edbf);return _0x5681a7||_0x38e421['addUser']({'id':_0x38edbf,'name':_0x2ac077});}['_createSuggestion'](_0x5eef77,_0x518644,_0x327103,_0x2a83e9,_0x21c6ec){const _0x55b346=this['_getAuthorFromId'](_0x2a83e9),_0x240f5e=this['_suggestionFactory']['buildSuggestion'](_0x5eef77,_0x518644,_0x327103,_0x55b346,_0x21c6ec,_0x79a210=>{this['_updateSuggestionData'](_0x327103,{'attributes':_0x79a210});const _0x39080e=this['getSuggestion'](_0x327103);this['_joinWithAdjacentSuggestions'](new Set([_0x39080e])),this['_refreshSuggestionsChain'](new Set([_0x39080e]));});return this['listenTo'](_0x240f5e,'accept',()=>{this['_updateSuggestionData'](_0x327103,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x240f5e,'discard',()=>{this['_updateSuggestionData'](_0x327103,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x327103,_0x240f5e),this['_suggestionState']['set'](_0x240f5e,'notReady'),_0x240f5e;}['_splitMarkerName'](_0x25a3b4){const _0x241809=_0x25a3b4['split'](':');return{'group':_0x241809[0x0],'type':_0x241809[0x1],'subType':_0x241809['length']>=0x5?_0x241809[0x2]:null,'id':_0x241809['length']<0x5?_0x241809[0x2]:_0x241809[0x3],'authorId':_0x241809['length']<0x5?_0x241809[0x3]:_0x241809[0x4],'markerCount':0x6==_0x241809['length']?_0x241809[0x5]:null};}['_breakSuggestionMarker'](_0x1c9d65,_0xf5980f,_0x31ef41){const _0xd189cc=_0x1c9d65['getFirstRange'](),_0x11df6a=_0xd189cc['start'],_0x117ad8=_0xd189cc['end'];this['_setSuggestionRange'](_0x1c9d65,this['_model']['createRange'](_0x11df6a,_0xf5980f));const _0x1ed6cc=_0x501bc0(),_0x30c54f=_0x1c9d65['creator']['id'],_0x1660a0=_0x1c9d65['type']+(_0x1c9d65['subType']?':'+_0x1c9d65['subType']:'');this['_setSuggestionData']({'id':_0x1ed6cc,'type':_0x1660a0,'createdAt':new Date(),'authorId':_0x30c54f,'originalSuggestionId':_0x1c9d65['id'],'attributes':_0x1c9d65['attributes'],'data':_0x1c9d65['data']});const _0x2be7e3=this['_getAttributeKey'](_0x1c9d65);('formatBlock'==_0x1c9d65['type']||_0x2be7e3&&this['_isBlockAttribute'](_0x2be7e3))&&(_0x31ef41=this['_model']['createPositionBefore'](_0x31ef41['parent'])),this['_addSuggestionMarker'](_0x1660a0,_0x1ed6cc,_0x30c54f,this['_model']['createRange'](_0x31ef41,_0x117ad8));}['_findSuggestions'](_0x3cb9f9,_0x2db17e=null){const _0x52c2fc=[],_0x15e4aa=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3cb9f9)||(_0x3cb9f9=[_0x3cb9f9]);for(const _0x40fcef of this['getSuggestions']()){if(!_0x40fcef['isInContent'])continue;if(_0x2db17e&&_0x40fcef['type']!=_0x2db17e)continue;let _0x4f41f1=!0x1;for(const _0xbac14 of _0x40fcef['getRanges']()){for(const _0x389d32 of _0x3cb9f9){const _0x260b8b=_0x389d32['start']['isEqual'](_0xbac14['end'])||_0x389d32['end']['isEqual'](_0xbac14['start']);if(_0x260b8b||_0x389d32['getIntersection'](_0xbac14)){const _0x188469=_0x389d32['containsRange'](_0xbac14)&&Rt(this['_model']['schema'],_0xbac14['start'],_0x389d32),_0x1a03c1=_0xbac14['containsRange'](_0x389d32)&&Rt(this['_model']['schema'],_0x389d32['start'],_0xbac14);_0x52c2fc['push']({'suggestion':_0x40fcef,'meta':{'isOwn':_0x15e4aa==_0x40fcef['author'],'isNextTo':_0x260b8b,'isInsideObject':_0x188469,'containsRangeInObject':_0x1a03c1}}),_0x4f41f1=!0x0;break;}}if(_0x4f41f1)break;}}return _0x52c2fc;}['_addSuggestionMarker'](_0x175a5c,_0x13188f,_0x23804e,_0x3b5dae,_0x38b7e8){this['_model']['change'](_0x12bd60=>{let _0x378818='suggestion:'+_0x175a5c+':'+_0x13188f+':'+_0x23804e;_0x38b7e8&&(_0x378818=_0x378818+':'+_0x38b7e8),_0x12bd60['addMarker'](_0x378818,{'range':_0x3b5dae,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4eb9e4){const _0x3177d8=_0x4eb9e4['previous'],_0xd284f7=_0x4eb9e4['next'];_0x4eb9e4['previous']=null,_0x4eb9e4['next']=null,null!=_0x3177d8&&_0x3177d8['next']==_0x4eb9e4&&(_0x3177d8['next']=_0xd284f7),null!=_0xd284f7&&_0xd284f7['previous']==_0x4eb9e4&&(_0xd284f7['previous']=_0x3177d8),'ready'==this['_suggestionState']['get'](_0x4eb9e4)&&(this['_suggestionState']['set'](_0x4eb9e4,'removed'),this['fire']('suggestionUnloaded',_0x4eb9e4,_0x3177d8,_0xd284f7));}['_setSuggestionData'](_0x1a19eb){const _0x2969f6=_0x1a19eb['id'],_0x52b7c8=this['addSuggestionData'](_0x1a19eb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x303bec=this['editor']['plugins']['get']('PendingActions'),_0x46637e=_0x52b7c8['hasComments'],_0x3b3f71=_0x52b7c8['subType']?_0x52b7c8['type']+':'+_0x52b7c8['subType']:_0x52b7c8['type'],_0x3a9b6b=this['editor']['locale'],_0x56a278=_0x303bec['add'](o(_0x3a9b6b,'PENDING_ACTION_SUGGESTION')),_0x13659e={'id':_0x2969f6,'type':_0x3b3f71,'hasComments':_0x46637e,'data':_0x1a19eb['data']||null,'originalSuggestionId':_0x1a19eb['originalSuggestionId']||null,'attributes':_0x52b7c8['attributes']};this['_adapter']['addSuggestion'](_0x13659e)['then'](_0x3ed9a4=>{_0x52b7c8['_saved']=!0x0,_0x303bec['remove'](_0x56a278),_0x3ed9a4&&_0x3ed9a4['createdAt']&&(this['_suggestions']['get'](_0x2969f6)['createdAt']=_0x3ed9a4['createdAt']);})['catch'](_0x48988b=>{throw _0x36e342('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x52b7c8['discard']();}),_0x52b7c8['stopListening'](),this['_suggestions']['delete'](_0x52b7c8['id']),this['_suggestionState']['delete'](_0x52b7c8),_0x48988b;});}return _0x52b7c8;}['_isBlockAttribute'](_0x20dbc7){return this['_blockAttributeKeys']['has'](_0x20dbc7);}['_updateSuggestionData'](_0x2eaa8d,_0x120373){const _0x176ed5=this['editor']['plugins']['get']('PendingActions'),_0x2e6490=this['getSuggestion'](_0x2eaa8d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2e6490['_saved']){const _0x2fd8f9=_0x176ed5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2eaa8d,_0x120373)['then'](()=>{_0x176ed5['remove'](_0x2fd8f9);});}else _0x2e6490['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2eaa8d,_0x120373);});}}['_getSuggestionData'](_0x47a8dc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3c3be4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47a8dc);}['_handleNewSuggestionMarker'](_0x4f97d6){const {id:_0x2f25ad,type:_0x21b26f,subType:_0xb690f7,authorId:_0x380615}=this['_splitMarkerName'](_0x4f97d6),_0x16ff57=this['_suggestions']['get'](_0x2f25ad)||this['_createSuggestion'](_0x21b26f,_0xb690f7,_0x2f25ad,_0x380615,{});switch(this['_checkSuggestionCorrectness'](_0x16ff57,_0x21b26f,_0xb690f7,_0x380615),this['_suggestionState']['get'](_0x16ff57)){case'notReady':this['_getSuggestionData'](_0x2f25ad)['then'](_0x2422ef=>{let _0x372fbf=Promise['resolve']();_0x2422ef['hasComments']&&(_0x372fbf=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2f25ad})),_0x372fbf['then'](()=>{this['addSuggestionData'](_0x2422ef)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x16ff57,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2f25ad,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x16ff57,'ready'),this['fire']('suggestionLoaded',_0x16ff57);break;case'ready':this['fire']('suggestionChanged',_0x16ff57);}return _0x16ff57['addMarkerName'](_0x4f97d6),_0x16ff57;}['_refreshSuggestionsChain'](_0x209336){const _0xa4f9a8=Array['from'](_0x209336),_0x422db5=_0xa4f9a8['filter'](_0x1f6d7f=>'attribute'==_0x1f6d7f['type']);this['_refreshAttributeSuggestionsChain'](_0x422db5);const _0x32328f=_0xa4f9a8['filter'](_0x25fecf=>!_0x25fecf['isMultiRange']&&'attribute'!=_0x25fecf['type']),_0x25497c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c26f1=>!_0x2c26f1['isMultiRange']&&'attribute'!=_0x2c26f1['type']),_0x5bea75=_0x25497c['filter'](_0x26ed68=>!_0x209336['has'](_0x26ed68)),_0x34a571=new Map(_0x25497c['map'](_0x555eec=>[_0x555eec,this['_suggestionFactory']['getSuggestionCallback'](_0x555eec['type'],_0x555eec['subType'],'chain')])),_0xaa2838=new Map(_0x25497c['map'](_0x3351fb=>[_0x3351fb,_0x3351fb['getFirstRange']()])),_0x11585e=new Set(),_0x39978d=new Set();for(let _0x1d0598=0x0;_0x1d0598<_0x32328f['length'];_0x1d0598++)_0x156908(_0x32328f[_0x1d0598],_0x32328f,_0x1d0598+0x1);for(let _0xb93a7=0x0;_0xb93a7<_0x32328f['length'];_0xb93a7++)_0x156908(_0x32328f[_0xb93a7],_0x5bea75,0x0);const _0x1c2645=new Set();for(let _0x4a63fe=0x0;_0x4a63fe<_0x32328f['length'];_0x4a63fe++){const _0x3f73b0=_0x32328f[_0x4a63fe];!_0x39978d['has'](_0x3f73b0)&&_0x3f73b0['previous']&&(_0x1c2645['add'](_0x3f73b0['previous']),_0x3f73b0['previous']['next']===_0x3f73b0&&(_0x3f73b0['previous']['next']=null),_0x3f73b0['previous']=null),!_0x11585e['has'](_0x3f73b0)&&_0x3f73b0['next']&&(_0x1c2645['add'](_0x3f73b0['next']),_0x3f73b0['next']['previous']===_0x3f73b0&&(_0x3f73b0['next']['previous']=null),_0x3f73b0['next']=null);}function _0x156908(_0x23471f,_0x211083,_0x236c23){for(let _0x246e64=_0x236c23;_0x246e64<_0x211083['length'];_0x246e64++){const _0x5bb06c=_0x410bce(_0x23471f,_0x211083[_0x246e64]);_0x5bb06c&&(_0x5bb06c[0x0]['next']=_0x5bb06c[0x1],_0x5bb06c[0x1]['previous']=_0x5bb06c[0x0],_0x11585e['add'](_0x5bb06c[0x0]),_0x39978d['add'](_0x5bb06c[0x1]));}}function _0x410bce(_0x5cbf87,_0x2f163e){if(_0x5cbf87['author']['id']!==_0x2f163e['author']['id'])return null;const _0x31a171=_0x34a571['get'](_0x5cbf87)(_0x5cbf87,_0x2f163e,_0xaa2838['get'](_0x5cbf87),_0xaa2838['get'](_0x2f163e));if(!_0x31a171)return null;return _0x34a571['get'](_0x2f163e)(_0x5cbf87,_0x2f163e,_0xaa2838['get'](_0x5cbf87),_0xaa2838['get'](_0x2f163e))?_0x31a171[0x1]['commentThread']&&_0x31a171[0x1]['commentThread']['length']?null:_0x31a171:null;}_0x1c2645['size']&&this['_refreshSuggestionsChain'](_0x1c2645);}['_refreshAttributeSuggestionsChain'](_0x4b6726){if(0x0==_0x4b6726['length'])return;const _0x58c9dc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x470421=>'attribute'==_0x470421['type']&&_0x470421['_isDataLoaded']),_0x1ffb0f=[],_0x5ed805=new Map();for(const _0x3c90f2 of _0x58c9dc){const _0x107933=_0x134b70(_0x3c90f2['attributes']);_0x5ed805['has'](_0x107933)||(_0x5ed805['set'](_0x107933,_0x1ffb0f['length']),_0x1ffb0f['push']([]));const _0x551bf9=_0x5ed805['get'](_0x107933);_0x1ffb0f[_0x551bf9]['push'](_0x3c90f2);}!(function(){_0x1ffb0f['sort']((_0x39a0ee,_0x6464f7)=>{const _0x3be6bb=_0x39a0ee[0x0]['createdAt'],_0x13388d=_0x6464f7[0x0]['createdAt'];return _0x3be6bb==_0x13388d?_0x39a0ee[0x0]['attributes']['groupId']<_0x6464f7[0x0]['attributes']['groupId']?-0x1:0x1:_0x3be6bb<_0x13388d?-0x1:0x1;});for(const _0x582f9f of _0x1ffb0f)_0x582f9f['sort']((_0xba6604,_0x50a0d7)=>_0xba6604['id']<_0x50a0d7['id']?-0x1:0x1);}());for(let _0x56c0b5=0x0;_0x56c0b5<_0x1ffb0f['length'];_0x56c0b5++){if(0x0==_0x1ffb0f[_0x56c0b5]['length'])continue;const _0x5ddf6e=[];for(let _0x1805c9=_0x56c0b5+0x1;_0x1805c9<_0x1ffb0f['length'];_0x1805c9++)0x0!=_0x1ffb0f[_0x1805c9]['length']&&_0x1520cf(_0x1ffb0f[_0x56c0b5],_0x1ffb0f[_0x1805c9])&&_0x5ddf6e['push'](_0x1805c9);for(const _0x373be7 of _0x5ddf6e)_0x1ffb0f[_0x56c0b5]=_0x1ffb0f[_0x56c0b5]['concat'](_0x1ffb0f[_0x373be7]),_0x1ffb0f[_0x373be7]=[];}for(const _0x1c7a5d of _0x1ffb0f)for(let _0x177e17=0x0;_0x177e17<_0x1c7a5d['length'];_0x177e17++)_0x1c7a5d[_0x177e17]['next']=_0x1c7a5d[_0x177e17+0x1]||null;for(const _0x56aab8 of _0x1ffb0f)for(let _0x36fcfd=0x0;_0x36fcfd<_0x56aab8['length'];_0x36fcfd++)_0x56aab8[_0x36fcfd]['previous']=_0x56aab8[_0x36fcfd-0x1]||null;function _0x1520cf(_0x484d6c,_0x12463f){if(_0x484d6c[0x0]['attributes']['groupId']!==_0x12463f[0x0]['attributes']['groupId']&&_0x484d6c[0x0]['author']!==_0x12463f[0x0]['author'])return!0x1;if(!function(_0x3148f2,_0x59c554){if(!_0x3148f2['hasComments']&&!_0x59c554['hasComments'])return!0x0;if(_0x3148f2['hasComments']&&_0x59c554['hasComments'])return!0x1;if(_0x3148f2['hasComments']&&_0x59c554['createdAt']<_0x3148f2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x59c554['hasComments']&&_0x3148f2['createdAt']<_0x59c554['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x484d6c[0x0],_0x12463f[0x0]))return!0x1;const _0x4c3eef=Bt(_0x484d6c[0x0]['attributes'],'groupId'),_0x246e4f=Bt(_0x12463f[0x0]['attributes'],'groupId');if(!_0x3298cf(_0x4c3eef,_0x246e4f))return!0x1;return!!_0x484d6c['every'](_0x3cfc23=>_0x12463f['some'](_0xde72c2=>_0x3cfc23['getFirstRange']()['isEqual'](_0xde72c2['getFirstRange']())))&&_0x12463f['every'](_0x50e873=>_0x484d6c['some'](_0x579825=>_0x50e873['getFirstRange']()['isEqual'](_0x579825['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1083d4){const _0x57bbe3=Array['from'](_0x1083d4),_0x52bb49=this['getSuggestions']({'skipNotAttached':!0x0}),_0x163953=_0x52bb49['filter'](_0x2ceda1=>!_0x1083d4['has'](_0x2ceda1)),_0x430ae0=new Map(_0x57bbe3['map'](_0x573cc2=>[_0x573cc2,this['_suggestionFactory']['getSuggestionCallback'](_0x573cc2['type'],_0x573cc2['subType'],'join')])),_0x3d240f=new Map(_0x52bb49['map'](_0x5c4db7=>[_0x5c4db7,_0x5c4db7['getRanges']()]));for(let _0x23f0be=0x0;_0x23f0be<_0x57bbe3['length'];_0x23f0be++){if(_0x46c976(this,_0x57bbe3[_0x23f0be],_0x57bbe3,_0x23f0be+0x1))return!0x0;}for(let _0x1df6e2=0x0;_0x1df6e2<_0x57bbe3['length'];_0x1df6e2++){if(_0x46c976(this,_0x57bbe3[_0x1df6e2],_0x163953,0x0))return!0x0;}return!0x1;function _0x46c976(_0x33f97a,_0x35fb4c,_0x31bdd0,_0x59763c){for(let _0x23548f=_0x59763c;_0x23548f<_0x31bdd0['length'];_0x23548f++){const _0x5bc7ef=_0x31bdd0[_0x23548f];if(_0x5bc7ef['type']!==_0x35fb4c['type']||_0x5bc7ef['author']['id']!==_0x35fb4c['author']['id']||_0x5bc7ef['subType']!==_0x35fb4c['subType'])continue;if(!Pt(_0x35fb4c,_0x5bc7ef,['groupId']))continue;if('attribute'==_0x35fb4c['type']&&_0x35fb4c['data']['oldValue']!=_0x5bc7ef['data']['oldValue'])continue;if('attribute'==_0x35fb4c['type']&&_0x33f97a['_isBlockAttribute'](_0x35fb4c['data']['key']))continue;if('formatBlock'==_0x35fb4c['type']){const _0x43e340=_0x33f97a['editor']['model'],_0x1ba193=_0x35fb4c['getContainedElement']();if(_0x1ba193&&(_0x43e340['schema']['isObject'](_0x1ba193)||_0x43e340['schema']['isLimit'](_0x1ba193)))continue;}const _0x582aa9=_0x430ae0['get'](_0x35fb4c),_0x1736c0=_0x3d240f['get'](_0x35fb4c),_0x2d305d=_0x3d240f['get'](_0x5bc7ef),_0xb42c4c=_0x35fb4c['commentThread']&&_0x35fb4c['commentThread']['length'],_0x2e0406=_0x5bc7ef['commentThread']&&_0x5bc7ef['commentThread']['length'];if(!_0xb42c4c&&_0x582aa9(_0x2d305d,_0x1736c0))return _0x33f97a['_joinSuggestions'](_0x5bc7ef,_0x35fb4c),_0x3d240f['delete'](_0x35fb4c),!0x0;if(!_0x2e0406&&_0x582aa9(_0x1736c0,_0x2d305d))return _0x33f97a['_joinSuggestions'](_0x35fb4c,_0x5bc7ef),_0x3d240f['delete'](_0x5bc7ef),!0x0;}return!0x1;}}['_joinSuggestions'](_0xc010ae,_0x2fd8fc){if(_0xc010ae['isMultiRange']){for(const _0x16501b of _0x2fd8fc['getRanges']())_0xc010ae['addRange'](_0x16501b);}else{const _0x514dc1=_0x2fd8fc['getFirstRange']()['end'];this['_setSuggestionRange'](_0xc010ae,this['_model']['createRange'](_0xc010ae['getFirstRange']()['start'],_0x514dc1));}_0x2fd8fc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x8bd0be,_0x59a9b5){const _0x3fcfa1=_0x8bd0be['startsWith']('format')||_0x8bd0be['startsWith']('attribute')?'FORMATTING':_0x8bd0be['toUpperCase']();return o(this['editor']['locale'],_0x59a9b5+'_'+_0x3fcfa1+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x27609e=this['editor'];if(!_0x27609e['ui'])return;const {ariaLiveAnnouncer:_0x484b67}=_0x27609e['ui'];_0x3c88a5(this['_model'],({left:_0x5b5a69,entered:_0x2d73df})=>{for(const _0x4894c6 of _0x5b5a69){const {group:_0x2705c9,type:_0x52e2e6}=this['_splitMarkerName'](_0x4894c6['name']);if('suggestion'===_0x2705c9){_0x484b67['announce'](this['_getMarkerAnnouncementText'](_0x52e2e6,'LEAVE'));break;}}for(const _0x9e475a of _0x2d73df){const {group:_0x5d0ae2,type:_0x1cedd6}=this['_splitMarkerName'](_0x9e475a['name']);if('suggestion'===_0x5d0ae2){_0x484b67['announce'](this['_getMarkerAnnouncementText'](_0x1cedd6,'ENTER'));break;}}});}['_processAttributeChanges'](_0x145a5f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x6d881b=this['editor'],_0x2f17cc=_0x6d881b['model']['document']['differ']['getChanges']();if(0x0==_0x2f17cc['length'])return!0x1;const _0x211acc=[],_0x44b73f=_0x2f17cc['filter'](_0x30f728=>'attribute'==_0x30f728['type']),_0x467c84=_0x2f17cc['filter'](_0x16600b=>'insert'==_0x16600b['type']&&'$text'!=_0x16600b['name']),_0x41a79d=_0x2f17cc['filter'](_0x2accca=>'remove'==_0x2accca['type']&&'$text'!=_0x2accca['name']);for(const _0x42cdfe of _0x44b73f)_0x211acc['push']({'key':_0x42cdfe['attributeKey'],'newValue':_0x42cdfe['attributeNewValue'],'oldValue':_0x42cdfe['attributeOldValue'],'range':Ot(_0x42cdfe['range'],_0x6d881b['model'])});for(const _0x59b211 of _0x467c84){const _0x5b5476=_0x41a79d['find'](_0x29cbb2=>_0x29cbb2['position']['isEqual'](_0x59b211['position']));_0x5b5476&&_0x211acc['push']({'key':m,'newValue':_0x59b211['name'],'oldValue':_0x5b5476['name'],'range':_0x6d881b['model']['createRangeOn'](_0x59b211['position']['nodeAfter'])});}return 0x0!=_0x211acc['length']&&this['_reduceExistingSuggestions'](_0x145a5f,_0x211acc);}['_processAttributeSuggestions'](_0x3b38ed){let _0xbeb858=!0x1;const _0x5b1058=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e5a18=>_0x5e5a18['data']['newRange']&&_0x5e5a18['name']['startsWith']('suggestion:attribute:'));for(const _0x1424a1 of _0x5b1058){const {subType:_0x3bc39e,id:_0x5ab82f}=this['_splitMarkerName'](_0x1424a1['name']),_0x4d557d=_0x3bc39e['split']('|')[0x0];for(const _0x5a2a1f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5a2a1f['id']!=_0x5ab82f&&'attribute'==_0x5a2a1f['type']&&_0x5a2a1f['data']&&_0x5a2a1f['data']['key']==_0x4d557d&&_0x5a2a1f['getFirstRange']()['isIntersecting'](_0x1424a1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5a2a1f,_0x1424a1['data']['newRange'],_0x3b38ed),_0xbeb858=!0x0);}return _0xbeb858;}['_recordAttributeChanges'](_0x2eee2e){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2eee2e();}['_isRegisteredAttribute'](_0xa4a5e8){const _0x2781e0=this['_isBlockAttribute'](_0xa4a5e8),_0x5a8a2c=this['_inlineAttributeKeys']['has'](_0xa4a5e8);return _0x2781e0||_0x5a8a2c;}['_reduceExistingSuggestions'](_0x43b41e,_0x1cbced){if(0x0==_0x1cbced['length'])return!0x1;let _0x389ee6=!0x1;for(const _0x30624d of _0x1cbced){const _0x59ab9a=this['_findSuggestions'](_0x30624d['range'],'attribute')['filter'](_0x55637e=>!_0x55637e['meta']['isNextTo'])['map'](_0x365439=>_0x365439['suggestion']),_0x2961fc=_0x134b70({'newValue':_0x30624d['newValue']});_0x59ab9a['filter'](_0x207dcd=>{const [_0x53bea3,_0x3f1856]=_0x207dcd['subType']['split']('|');return _0x53bea3==_0x30624d['key']&&_0x3f1856!=_0x2961fc;})['forEach'](_0x2f24e5=>{this['_reduceSuggestionAttributeRange'](_0x2f24e5,_0x30624d['range'],_0x43b41e),_0x389ee6=!0x0;});}return _0x389ee6;}['_reduceSuggestionAttributeRange'](_0x1fe13e,_0x55b7e8,_0xd0b59d){const _0x1b05cd=_0x1fe13e['getFirstRange']()['getDifference'](_0x55b7e8);0x0!==_0x1b05cd['length']?0x1!==_0x1b05cd['length']?this['_breakSuggestionMarker'](_0x1fe13e,_0x55b7e8['start'],_0x55b7e8['end']):this['_setSuggestionRange'](_0x1fe13e,_0x1b05cd[0x0]):_0xd0b59d['removeMarker'](_0x1fe13e['getFirstMarker']());}constructor(_0x501f61){function _0x11fbf4(_0x570a6c){return _0x570a6c['map'](_0x206d2c=>String['fromCharCode'](_0x206d2c))['join']('');}super(_0x501f61),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4962b5,_0xeed008,_0x535833,_0x2c956c)=>{this['_model']['change'](()=>{for(const _0x2726b1 of[..._0x2c956c,..._0x535833])this['_model']['markers']['has'](_0x2726b1)&&_0x501f61['editing']['reconvertMarker'](_0x2726b1);});}),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']=_0x501f61['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(),_0x501f61['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x501f61['config']['get']('trackChanges.trackFormatChanges'),_0x501f61['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x501f61['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x501f61,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x11fbf4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x11fbf4([0x34,0x30,0x34,0x38,0x31,0x30,0x33,0x32]);}}class xt{['buildSuggestion'](_0x3c86c2,_0x4d8a9f,_0x4e16d0,_0x4b5945,_0x4b2e27,_0x310932){return new u(this['_model'],{'type':_0x3c86c2,'subType':_0x4d8a9f,'id':_0x4e16d0,'author':_0x4b5945,'creator':_0x4b5945,'attributes':_0x4b2e27,'onAttributesChange':_0x310932,'onAccept':(..._0x266476)=>this['getSuggestionCallback'](_0x3c86c2,_0x4d8a9f,'accept')(..._0x266476),'onDiscard':(..._0x5db5e1)=>this['getSuggestionCallback'](_0x3c86c2,_0x4d8a9f,'discard')(..._0x5db5e1)});}['registerCustomCallback'](_0x172e91,_0x4892e0,_0x49e3cd,_0x8be025){const _0x10f760=_0x172e91+':'+_0x4892e0+':'+_0x49e3cd;this['_customCallbacks']['set'](_0x10f760,_0x8be025);}['getSuggestionCallback'](_0x34f6e7,_0x4901cf,_0x437553){const _0x5ad7b6=_0x34f6e7+':'+_0x4901cf+':'+_0x437553;return this['_customCallbacks']['get'](_0x5ad7b6)||this['_defaultCallbacks']['get'](_0x34f6e7+':'+_0x437553);}['_registerDefaultCallbacks'](){const _0x263a2a=()=>!0x1,_0x1f90a9=_0x51862b=>{_0x51862b['sort']((_0x38b27e,_0x40692b)=>_0x38b27e['start']['isBefore'](_0x40692b['start'])?0x1:-0x1),this['_model']['change'](_0x2feef4=>{for(const _0x313e7e of _0x51862b){let _0x26d867;_0x26d867=_0x313e7e['end']['isAtEnd']&&_0x313e7e['end']['parent']==_0x313e7e['start']['nodeAfter']?_0x2feef4['createSelection'](_0x313e7e['start']['nodeAfter'],'on'):_0x2feef4['createSelection'](_0x313e7e),this['_model']['deleteContent'](_0x26d867,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4f4aec=(_0xdae3c6,_0xc86df8)=>{_0xc86df8&&this['_model']['change'](_0x52536d=>{const {commandName:_0x162730,commandParams:_0x330227=[]}=_0xc86df8,_0xc7b9b0=_0xdae3c6['map'](_0x52f007=>(Tt(_0x52f007)&&(_0x52f007=this['_model']['createRange'](_0x52f007['end'])),_0x52f007))['filter'](_0x139a2e=>'$graveyard'!==_0x139a2e['root']['rootName']);if(_0xc7b9b0['length']<0x1)return;const _0x4a1af8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x28d333=>_0x2242e5['fromRange'](_0x28d333));_0x52536d['setSelection'](_0xc7b9b0);for(const _0xdba5cf of this['_editor']['commands']['commands']())_0xdba5cf['refresh']();_0x330227['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x162730,..._0x330227);const _0x26e692=_0x4a1af8['filter'](_0x109bb7=>'$graveyard'!=_0x109bb7['root']['rootName']);_0x26e692['length']>0x0&&_0x52536d['setSelection'](_0x26e692);for(const _0x345c50 of _0x4a1af8)_0x345c50['detach']();});},_0x539e9d=(_0x13b5eb,_0x2517db)=>0x1==_0x13b5eb['length']&&0x1==_0x2517db['length']&&_0x13b5eb[0x0]['end']['isEqual'](_0x2517db[0x0]['start']),_0x28323a=(_0x3a7020,_0x316988,_0x20a18f,_0x50cc4c)=>Gt(_0x3a7020,_0x316988,_0x20a18f,_0x50cc4c,this['_model'])?[_0x3a7020,_0x316988]:Gt(_0x316988,_0x3a7020,_0x50cc4c,_0x20a18f,this['_model'])?[_0x316988,_0x3a7020]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x263a2a),this['_defaultCallbacks']['set']('insertion:discard',_0x1f90a9),this['_defaultCallbacks']['set']('insertion:join',_0x539e9d),this['_defaultCallbacks']['set']('insertion:chain',_0x28323a),this['_defaultCallbacks']['set']('deletion:accept',_0x1f90a9),this['_defaultCallbacks']['set']('deletion:discard',_0x263a2a),this['_defaultCallbacks']['set']('deletion:join',_0x539e9d),this['_defaultCallbacks']['set']('deletion:chain',_0x28323a),this['_defaultCallbacks']['set']('formatInline:accept',_0x4f4aec),this['_defaultCallbacks']['set']('formatInline:discard',_0x263a2a),this['_defaultCallbacks']['set']('formatInline:join',_0x539e9d),this['_defaultCallbacks']['set']('formatInline:chain',_0x263a2a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4f4aec),this['_defaultCallbacks']['set']('formatBlock:discard',_0x263a2a),this['_defaultCallbacks']['set']('formatBlock:join',_0x539e9d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x263a2a),this['_defaultCallbacks']['set']('attribute:accept',_0x263a2a),this['_defaultCallbacks']['set']('attribute:discard',(_0x4b631d,_0x1937cd)=>{if(!_0x1937cd)return;const _0x542d9c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1c1655=>{if(_0x1937cd['key']==m)for(const _0x33872b of _0x4b631d){const _0x1edeeb=_0x33872b['start']['nodeAfter'],_0x9255b5=_0x1937cd['oldValue'];_0x1c1655['rename'](_0x1edeeb,_0x9255b5);}else{if(_0x542d9c['_isBlockAttribute'](_0x1937cd['key'])){for(const _0x2a0fda of _0x4b631d)void 0x0!==_0x1937cd['oldValue']?_0x1c1655['setAttribute'](_0x1937cd['key'],_0x1937cd['oldValue'],_0x2a0fda['start']['nodeAfter']):_0x1c1655['removeAttribute'](_0x1937cd['key'],_0x2a0fda['start']['nodeAfter']);}else{for(const _0x11e601 of _0x4b631d)_0x1937cd['oldValue']?_0x1c1655['setAttribute'](_0x1937cd['key'],_0x1937cd['oldValue'],_0x11e601):_0x1c1655['removeAttribute'](_0x1937cd['key'],_0x11e601);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x539e9d);}constructor(_0x42866c){this['_editor']=_0x42866c,this['_model']=_0x42866c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x4f99e4,_0x59cd67,_0x393049){for(const _0x5283e7 of _0x59cd67['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5283e7['root']==_0x5283e7)return!0x1;if(!_0x393049['containsItem'](_0x5283e7))return!0x1;if(_0x4f99e4['isObject'](_0x5283e7)||_0x4f99e4['isLimit'](_0x5283e7))return!0x0;}return!0x1;}function Tt(_0x25963f){return _0x25963f['end']['parent']==_0x25963f['start']['nodeAfter']&&_0x25963f['end']['isAtStart'];}function Et(_0x328729,_0x2bfcce,_0x5249f5,_0x77b519){const _0x590fc6=_0x523f08=>!_0x523f08['item']['is']('$textProxy')&&!_0x77b519['isObject'](_0x523f08['item']),_0x139fd8=_0x328729['start']['getLastMatchingPosition'](_0x590fc6),_0x1739fb=_0x328729['end']['getLastMatchingPosition'](_0x590fc6,{'direction':'backward'});return(!_0x328729['start']['isEqual'](_0x139fd8)||!_0x328729['end']['isEqual'](_0x1739fb))&&(_0x139fd8['isBefore'](_0x1739fb)?_0x5249f5['updateMarker'](_0x2bfcce,{'range':_0x5249f5['createRange'](_0x139fd8,_0x1739fb)}):_0x5249f5['removeMarker'](_0x2bfcce),!0x0);}function Vt(_0x4f6d75){return _0x134b70(_0x4f6d75);}function Ut(_0x9177fa){const _0xd13b2=_0x9177fa['start']['nodeAfter'];return _0xd13b2&&_0xd13b2['is']('element');}function Ot(_0x4ce60c,_0x38b523){return null==_0x4ce60c['end']['nodeBefore']&&_0x4ce60c['end']['parent']==_0x4ce60c['start']['nodeAfter']?Ft(_0x4ce60c['start']['nodeAfter'],_0x38b523):_0x4ce60c;}function Ft(_0x48c9f4,_0xefc10c){const _0x333427=_0xefc10c['schema']['isObject'](_0x48c9f4)||_0xefc10c['schema']['isSelectable'](_0x48c9f4);return _0xefc10c['createRange'](_0xefc10c['createPositionAt'](_0x48c9f4,'before'),_0x333427?_0xefc10c['createPositionAfter'](_0x48c9f4):_0xefc10c['createPositionAt'](_0x48c9f4,'end'));}function Gt(_0x5878bd,_0x26cd82,_0x4668e2,_0x179f7b,_0x49871c){if(!Pt(_0x5878bd,_0x26cd82))return!0x1;if(_0x4668e2['end']['isEqual'](_0x179f7b['start']))return!0x0;if(_0x5878bd['type']!=_0x26cd82['type'])return!0x1;if(!_0x4668e2['end']['isTouching'](_0x179f7b['start']))return!0x1;const _0x589a1a=_0x49871c['createRange'](_0x4668e2['end'],_0x179f7b['start'])['getWalker']();for(const _0x36accc of _0x589a1a)if(['elementStart','elementEnd']['includes'](_0x36accc['type'])&&_0x49871c['schema']['isLimit'](_0x36accc['item']))return!0x1;return!0x0;}function Pt(_0x596c95,_0x416f6f,_0x11f11c=[]){return!(!_0x596c95['_isDataLoaded']||!_0x416f6f['_isDataLoaded'])&&_0x3298cf(Bt(_0x596c95['attributes'],_0x11f11c),Bt(_0x416f6f['attributes'],_0x11f11c));}function Lt(_0x59e3f5,_0x30f4e4){const _0x471baf=Ht(_0x59e3f5['attributes']),_0xae30e4=Ht(_0x30f4e4);if(!_0x59e3f5['_isDataLoaded'])return!0x1;for(const _0x5b3922 of Object['keys'](_0xae30e4))if(!_0x3298cf(_0x471baf[_0x5b3922],_0xae30e4[_0x5b3922]))return!0x1;return!0x0;}function Ht(_0x1c3011){const _0x25cba4=Object['assign']({},_0x1c3011);return delete _0x25cba4['skipNestingCheck'],delete _0x25cba4['tablePasteChainId'],_0x25cba4;}class oe extends _0x173313(){['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 _0x5cb81b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5cb81b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x3a4fcf,_0x40b378,_0x16fff0,_0x75d855){super(),this['model']=_0x40b378,this['view']=_0x16fff0,this['commentThreadController']=_0x75d855,this['_editor']=_0x3a4fcf,this['_acceptCommand']=_0x3a4fcf['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a4fcf['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3e1fca,_0x309597)=>_0x3e1fca||_0x309597),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x400102=>_0x400102&&this['_editor']['model']['canEditAt'](_0x40b378['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x13ca58=>_0x13ca58&&this['_editor']['model']['canEditAt'](_0x40b378['getRanges']())),this['_pendingAction']=null,_0x16fff0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x16fff0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x16fff0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x16fff0,'change:isDirty',()=>{_0x16fff0['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x231896{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x52852b}=this['_config'];this['commentsListView']=new _0x52852b(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',_0x260790=>_0x260790+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2cb6bc,_0x2c6e87)=>_0x2cb6bc||!!_0x2c6e87);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x739290}=this['_config'],_0x190ab6=new _0x739290(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x50fd79=_0x190ab6['commentInputView'];return _0x190ab6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x50fd79,'value',(_0x2385ae,_0x45c2fa,_0x10e7e2)=>!!_0x10e7e2||_0x2385ae&&!_0x45c2fa),_0x50fd79['on']('submit',(_0x14f15a,_0x3300f2)=>{this['fire']('addComment',_0x3300f2),_0x50fd79['editor']['setData']('');}),_0x50fd79['on']('cancel',()=>this['focus']()),_0x50fd79['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x190ab6;}constructor(_0x92b0b5,_0x48c4a6,_0x45f631,_0x4a8660){super(_0x92b0b5),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x48c4a6['authoredAt']),this['bind']('authoredAt')['to'](_0x48c4a6),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x48c4a6,this['_localUser']=_0x45f631,this['_config']=_0x4a8660,_0x4a8660['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x3e3c12=this['bindTemplate'],_0x3557e2=[{'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':_0x3e3c12['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e3c12['to']('authoredAt',_0x5cfcba=>this['_config']['formatDateTime'](_0x5cfcba))}]}]},{'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']&&_0x3557e2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1b1603={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3e3c12['if']('isActive','ck-suggestion-wrapper--active'),_0x3e3c12['to']('type',_0x37b913=>'ck-suggestion-'+_0x37b913),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':_0x3557e2}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1b1603['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)),_0x1b1603;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x45754d,_0x27f7e9,_0x50f7b8)=>{this['_descriptionElement']['innerHTML']=_0x50f7b8;});}['_createButton'](_0x2c4a81,_0x20842f,_0x35a24e,_0x4ef3df,_0x3dc50c){const _0x188814=new _0x5a8fe4(this['locale']);return _0x188814['set']({'label':_0x2c4a81,'icon':_0x20842f,'tooltip':!0x0,'tooltipPosition':_0x3dc50c}),_0x188814['extendTemplate']({'attributes':{'class':_0x35a24e}}),_0x188814['on']('execute',()=>{this['fire'](_0x4ef3df,this['_model']['id']);}),_0x188814;}['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(_0x49b4d1,_0x7c7c61,_0x1eb6b5,_0x43874c){super(_0x49b4d1,_0x7c7c61,_0x1eb6b5,_0x43874c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3f8dd6=>_0x3f8dd6&&_0x3f8dd6[0x0]?_0x3f8dd6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5c4c29,_0x175701)=>{let _0x4d7e8d='';for(const _0x1a26b5 of _0x5c4c29)_0x4d7e8d+='<p>'+ds(_0x1a26b5['content'],_0x1a26b5['color'])+'</p>';return _0x175701?_0x4d7e8d:_0x428c37(_0x4d7e8d,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x49b4d1,'Accept\x20suggestion'),_0x5382e6['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x49b4d1,'Discard\x20suggestion'),_0x5382e6['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3a0d18(_0x49b4d1,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x5634f4,_0x38eda5){let _0x3c70b6='';return _0x3c70b6+=_0x5634f4['split']('*')['map']((_0x354113,_0x54a95e)=>_0x54a95e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x354113)+'</span>':us(_0x354113))['join'](''),_0x38eda5&&(_0x3c70b6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x38eda5['value']+'\x22\x20title=\x22'+_0x38eda5['title']+'\x22></span>'),_0x3c70b6;}function us(_0x5b304d){const _0x1b07d9=document['createElement']('span');return _0x1b07d9['innerText']=_0x5b304d,_0x1b07d9['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 _0x357748{static get['requires'](){return[p,_0x4b8c42,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x3ce2b8,_0x15890f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1cf70a,_0x1e300d]of this['_handleControllerBuffer']){const _0x38e44e=this['_suggestionToController']['has'](_0x1cf70a);_0x38e44e||_0x1e300d?_0x38e44e&&_0x1e300d&&this['_destroyController'](_0x1cf70a):this['_initializeController'](_0x1cf70a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ce2b8,_0x15890f);}['init'](){const _0x30ecb6=this['editor'],_0x9b19d5=_0x30ecb6['plugins']['get']('TrackChangesEditing'),_0x534253=_0x30ecb6['plugins']['get']('Annotations'),_0x3f9bac=_0x30ecb6['plugins']['get']('EditorAnnotations'),_0x3dc2ce=_0x30ecb6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f9bac['addSourceCollector'](()=>{const _0x22267c=[];for(const [_0x5c278b,_0xa2aa31]of Array['from'](this['_suggestionToController'])){const _0x47768=_0x5c278b['getAllAdjacentSuggestions'](),_0x567864=[];for(const _0x5c7d4e of _0x47768){if(!_0x5c7d4e['isInContent'])continue;if(_0x5c7d4e['isMultiRange']){_0x567864['push'](..._0x5c7d4e['getRanges']());continue;}const _0x248b97=_0x5c7d4e['getFirstRange']();if(_0x567864['length']>0x0){const _0x56128b=_0x567864[0x0]['getJoined'](_0x248b97);if(_0x56128b){_0x567864[0x0]=_0x56128b;continue;}}_0x567864['push'](_0x248b97);}_0x22267c['push']([_0xa2aa31['view'],_0x567864]);}return _0x22267c;}),this['listenTo'](_0x9b19d5,'suggestionLoaded',(_0x8d2e7a,_0x491472)=>{this['listenTo'](_0x491472,'change:previous',(_0x395f4b,_0x4fbf01,_0x24001f,_0x2b5102)=>{_0x491472['isInContent']&&(null==_0x24001f?(this['_updateController'](_0x2b5102['head']),this['_handleSuggestionControllerDelayed'](_0x491472,!0x1)):(this['_updateController'](_0x24001f['head']),null==_0x2b5102&&this['_handleSuggestionControllerDelayed'](_0x491472,!0x0)));}),null!==_0x491472['previous']?this['_updateController'](_0x491472['head']):this['_handleSuggestionControllerDelayed'](_0x491472,!0x1);}),this['listenTo'](_0x9b19d5,'suggestionUnloaded',(_0x2343db,_0x54d21e,_0x25a6dd)=>{this['stopListening'](_0x54d21e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x54d21e),this['_suggestionToController']['has'](_0x54d21e)&&this['_destroyController'](_0x54d21e),_0x25a6dd&&this['_updateController'](_0x25a6dd['head']);}),this['listenTo'](_0x9b19d5,'suggestionChanged',(_0x91015,_0x5a85f3)=>{this['_updateController'](_0x5a85f3);}),this['listenTo'](_0x534253,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3dc2ce,'addComment',(_0x56fee4,{threadId:_0x449abb,isFromAdapter:_0x51e405})=>{if(_0x51e405||!_0x9b19d5['hasSuggestion'](_0x449abb))return;const _0x57fe3f=_0x9b19d5['getSuggestion'](_0x449abb);this['_suggestionToController']['get'](_0x57fe3f)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1ac2a4=this['editor']['plugins']['get']('Annotations'),_0x22db11=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4662f1=Array['from'](_0x1ac2a4['activeAnnotations'],_0x42297c=>_0x42297c['innerView'])['filter'](_0x269d8d=>this['_viewToController']['has'](_0x269d8d)),_0x590663=[];for(const _0x5c5320 of _0x4662f1){const _0x7c66=this['_viewToController']['get'](_0x5c5320)['model']['getAllAdjacentSuggestions']();_0x590663['push'](..._0x7c66['reduce']((_0x1f43eb,_0x15d141)=>[..._0x1f43eb,..._0x15d141['getMarkerNames']()],[]));}_0x22db11['activeMarkers']=_0x590663;}['_addUIComponentsToFactory'](){const _0x488466=this['editor'],_0x20e8be=_0x488466['locale'],_0x56ba1b=o(_0x20e8be,'Track\x20changes'),_0xa36b83=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x56ba1b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x20e8be,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x20e8be,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x20e8be,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x20e8be,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x52f61e of _0xa36b83)if(ae(_0x52f61e)){const _0x85544a=_0x488466['commands']['get'](_0x52f61e['model']['commandName']);_0x52f61e['model']['bind']('isOn','isEnabled')['to'](_0x85544a,'value','isEnabled');}_0x488466['ui']['componentFactory']['add']('trackChanges',_0x4015a2=>this['_createToolbarButton'](_0x4015a2,_0xa36b83,_0x56ba1b)),_0x488466['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3eab25=>this['_createMenuBarMenu'](_0x3eab25,_0xa36b83,_0x56ba1b));}['_createToolbarButton'](_0x16e760,_0x499f15,_0x5ab643){const _0x417708=zt(_0x16e760,Zt),_0x5cd008=this['editor']['commands']['get']('trackChanges');_0x417708['buttonView']['set']({'tooltip':_0x5ab643,'label':_0x5ab643,'icon':ie}),_0x417708['buttonView']['bind']('isOn')['to'](_0x5cd008,'value'),_0x417708['buttonView']['on']('execute',()=>{_0x5cd008['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x417708,_0x499f15,{'role':'menu'});const _0x216b00=[];for(const _0x2a0daf of _0x499f15)ae(_0x2a0daf)&&_0x216b00['push'](this['editor']['commands']['get'](_0x2a0daf['model']['commandName']));const _0x19611c=_0x417708['buttonView'];return _0x19611c['actionView']['unbind']('isEnabled'),_0x19611c['arrowView']['unbind']('isEnabled'),_0x19611c['actionView']['bind']('isEnabled')['to'](_0x5cd008,'isEnabled'),_0x19611c['arrowView']['bind']('isEnabled')['toMany'](_0x216b00,'isEnabled',(..._0x1c0b78)=>_0x1c0b78['some'](_0x345ff6=>_0x345ff6)),_0x417708['on']('execute',_0x5885e8=>{this['editor']['execute'](_0x5885e8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x417708;}['_createMenuBarMenu'](_0x5238b4,_0x4a6061,_0x54d505){const _0x3d7547=new Kt(_0x5238b4),_0x2488e5=this['editor']['commands']['get']('trackChanges');_0x3d7547['buttonView']['set']({'label':_0x54d505,'icon':ie});const _0x175157=new Qt(_0x5238b4);for(const _0x1998f9 of _0x4a6061){if('separator'==_0x1998f9['type']){_0x175157['items']['add'](new Jt(_0x5238b4));continue;}const _0x71340c=new Xt(_0x5238b4,_0x3d7547),_0x276a6a=new Yt(_0x5238b4),_0x58b07c=_0x1998f9['model'];_0x276a6a['bind'](...Object['keys'](_0x58b07c))['to'](_0x58b07c),_0x276a6a['delegate']('execute')['to'](_0x3d7547),_0x276a6a['on']('execute',()=>{this['editor']['execute'](_0x58b07c['commandName']),this['editor']['editing']['view']['focus']();}),_0x71340c['children']['add'](_0x276a6a),_0x175157['items']['add'](_0x71340c);}return _0x3d7547['bind']('isEnabled')['to'](_0x2488e5,'isEnabled'),_0x3d7547['panelView']['children']['add'](_0x175157),_0x3d7547;}['_initializeController'](_0x15a142){const _0x268363=this['editor'],_0x15d324=_0x268363['config'],_0x25f76c=_0x268363['plugins']['get']('Annotations'),_0x11317c=_0x268363['plugins']['get']('CommentsRepository'),_0x5d97ab=_0x268363['plugins']['get']('EditorAnnotations'),_0x473408=_0x268363['plugins']['get'](_0x4b8c42)['me'],_0x3fe02f=_0x15d324['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x191237,CommentThreadInputView:_0x4a5839}=_0x268363['plugins']['get']('CommentsUI');let _0x496589,_0xf06f98;this['_annotationViews']['has'](_0x15a142['id'])?(_0xf06f98=this['_annotationViews']['get'](_0x15a142['id']),_0x496589=_0xf06f98['mainView']):(_0x496589=new _0x3fe02f(_0x268363['locale'],_0x15a142,_0x473408,{'disableComments':this['_disableComments'],'editorConfig':_0x15d324['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x15d324['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15d324['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15d324['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x183220(_0x15d324['get']('locale')),'CommentView':_0x15d324['get']('comments')['CommentView'],'CommentsListView':_0x191237,'CommentThreadInputView':_0x4a5839}),_0x496589['acceptButton']['on']('execute',()=>{_0x268363['editing']['view']['focus']();}),_0x496589['discardButton']['on']('execute',()=>{_0x268363['editing']['view']['focus']();}),_0xf06f98=_0x25f76c['createAnnotationView'](this['editor']['locale'],_0x496589),_0xf06f98['bind']('isDirty')['to'](_0x496589,'isDirty'),_0xf06f98['bind']('length')['to'](_0x496589),_0xf06f98['bind']('type')['to'](_0x496589,'type',_0x4c8ae3=>'suggestion-'+_0x4c8ae3),this['_annotationViews']['set'](_0x15a142['id'],_0xf06f98));const _0x5c5450=_0x11317c['createCommentThreadController'](_0x15a142['commentThread'],_0x496589),_0x558689=new oe(_0x268363,_0x15a142,_0x496589,_0x5c5450),_0x225931=_0x15a142['getAllAdjacentSuggestions']()['filter'](_0xc03388=>_0xc03388['isInContent']);_0x496589['descriptionParts']=_0x268363['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x225931),this['_suggestionToController']['set'](_0x15a142,_0x558689),this['_viewToController']['set'](_0x496589,_0x558689);const _0x2edb30=_0x25f76c['createAnnotation']({'view':_0xf06f98,'target':()=>{const _0x1aec28=[],_0x1976f5=_0x15a142['getAllAdjacentSuggestions']()['filter'](_0x129f83=>_0x129f83['isInContent']);for(const _0x591dcf of _0x1976f5)_0x1aec28['push'](..._0x591dcf['getMarkers']());return _0xf0cc4b(_0x268363['editing'],_0x1aec28);},'type':()=>'suggestion-'+_0x558689['view']['type']});_0x11317c['_bindAnnotationToEditors'](_0x496589,_0x2edb30),_0x25f76c['add'](_0x2edb30),_0x5d97ab['registerAnnotation'](_0x2edb30);}['_destroyController'](_0x4dc920){const _0x56c914=this['editor']['plugins']['get']('CommentsRepository'),_0x3c697a=this['editor']['plugins']['get']('Annotations'),_0x1b58a5=this['_suggestionToController']['get'](_0x4dc920),_0x2d7740=_0x1b58a5['view'],_0x2d34a9=_0x3c697a['getByInnerView'](_0x2d7740);_0x56c914['_unbindEditors'](_0x2d7740),_0x2d34a9&&_0x3c697a['remove'](_0x2d34a9),this['_suggestionToController']['delete'](_0x4dc920),this['_viewToController']['delete'](_0x2d7740),_0x1b58a5['destroy']();}['_updateController'](_0x498238){if(!_0x498238['isInContent']||!this['_suggestionToController']['has'](_0x498238))return;const _0x23beda=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51f4e1=this['_suggestionToController']['get'](_0x498238),_0x18dc9e=_0x498238['getAllAdjacentSuggestions']();_0x51f4e1['view']['descriptionParts']=_0x23beda['descriptionFactory']['getDescriptions'](_0x18dc9e);}['destroy'](){for(const _0x487937 of this['_suggestionToController']['keys']())this['_destroyController'](_0x487937);for(const _0x3ccb24 of this['_annotationViews']['values']())_0x3ccb24['mainView']['destroy']();super['destroy']();}constructor(_0x23ceea){super(_0x23ceea),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x29ceaa=this['editor']['config'];_0x29ceaa['define']('trackChanges.SuggestionThreadView',ne),_0x29ceaa['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x29ceaa['get']('trackChanges.disableComments');}}function ae(_0x42c82b){return'model'in _0x42c82b;}class k extends _0x357748{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4fa6d9){this['editor']['plugins']['get'](p)['adapter']=_0x4fa6d9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3cf059){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3cf059);}['getSuggestions']({skipNotAttached:_0x2934e1=!0x1,toJSON:_0x5e465e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2934e1,'toJSON':_0x5e465e});}['getSuggestion'](_0x52887e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x52887e);}}const T=['Pagination'];class P extends _0x357748{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x176b44=this['editor'];if(_0x176b44['config']['define']('trackChangesData.editorCreator',_0x253c45=>{const _0x50373c=_0x176b44['model']['document']['getRootNames']()['reduce']((_0x2da22d,_0x443103)=>(_0x2da22d[_0x443103]='',_0x2da22d),{});return _0x176b44['constructor']['create'](_0x50373c,_0x253c45);}),'function'!=typeof _0x176b44['config']['get']('trackChangesData')['editorCreator'])throw new _0x3c3be4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x53c2aa){return N(this['editor'],!0x0,_0x53c2aa);}['getDataWithDiscardedSuggestions'](_0x4cc17a){return N(this['editor'],!0x1,_0x4cc17a);}}class D extends _0x357748{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(_0x54456e){super(_0x54456e),this['result']='end';}}function v(_0x3e1e4f){return void 0x0!==_0x3e1e4f['getRootsAttributes'];}async function N(_0x110c83,_0x3319d4,_0x1dca38){const _0x43903f=_0x42ff30(_0x110c83,T);_0x43903f['plugins']['push'](p,D),_0x43903f['rootsAttributes']=v(_0x110c83)?_0x110c83['getRootsAttributes']():void 0x0;const _0x52be7f=document['createDocumentFragment'](),_0x686ede=_0x110c83['config']['get']('trackChangesData')['editorCreator'],_0x4dd7f7=await _0x686ede(_0x43903f,()=>function(_0xda6d84){const _0x102d0e=document['createElement']('div');return _0xda6d84['appendChild'](_0x102d0e),_0x102d0e;}(_0x52be7f));!function(_0x5099e0,_0x47b912){const _0x4e5e52=_0x5099e0['model']['document']['getRootNames']()['reduce']((_0x8f303e,_0x4ea732)=>(_0x8f303e[_0x4ea732]=_0x5099e0['data']['get']({'rootName':_0x4ea732}),_0x8f303e),{}),_0x49007c=_0x5099e0['plugins']['get']('Users')['users']['map'](_0x3796ac=>({'id':_0x3796ac['id'],'name':_0x3796ac['name']})),_0x4f2581=_0x5099e0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a9214=_0x5099e0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x251615=_0x47b912['plugins']['get']('Users'),_0x4c048a=_0x47b912['plugins']['get']('TrackChangesEditing'),_0x18d209=_0x47b912['plugins']['get']('CommentsRepository');for(const _0x4fc474 of _0x49007c)_0x251615['getUser'](_0x4fc474['id'])||_0x251615['addUser'](_0x4fc474);_0x251615['me']||_0x251615['useAnonymousUser']();for(const _0x4e685b of _0x4f2581)_0x4c048a['addSuggestionData'](_0x4e685b);for(const _0x3a335a of _0x1a9214)_0x18d209['addCommentThread'](_0x3a335a);_0x47b912['data']['set'](_0x4e5e52);}(_0x110c83,_0x4dd7f7),_0x4dd7f7['execute'](_0x3319d4?'acceptAllSuggestions':'discardAllSuggestions');const _0x30ac02=v(_0x4dd7f7)?_0x4dd7f7['getFullData'](_0x1dca38):_0x4dd7f7['data']['get'](_0x1dca38);return await _0x4dd7f7['destroy'](),_0x30ac02;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x1fbed8,PendingActions as _0x4a148a,icons as _0x5c0b00}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x10ffdc,ObservableMixin as _0xb83c2,uid as _0x267db8,insertToPriorityArray as _0x385583,priorities as _0x4600a6,logWarning as _0x45d037,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xca245e,View as _0x2f672b,ButtonView as _0x2b30b9,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 _0x2c81c1,hashObject as _0x2254fe,surroundingMarkersDetector as _0x22f6d8,trimHtml as _0x236f40,UserView as _0xcac560,getDateTimeFormatter as _0x104c0a,getAllMarkersDomElementsSorted as _0x428234,sanitizeEditorConfig as _0x1db5f8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4d7b17,LiveRange as _0x47172d,LivePosition as _0x50c555}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x28b9ff,toWidget as _0x7ac521}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x17a613,set as _0x29ab6b,isEqual as _0x4c53ba,unset as _0x1b63a7,omit as Bt}from'lodash-es';import{Delete as _0x2bca8d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3b480f,ShiftEnter as _0x23710c}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x403a32,_0x3180ce){super(_0x403a32),this['_enabledCommands']=_0x3180ce,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x2a03b3 of this['editor']['commands']['commands']())_0x2a03b3['affectsData']&&!this['_enabledCommands']['has'](_0x2a03b3)&&_0x2a03b3['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1eb315 of this['editor']['commands']['commands']())_0x1eb315['affectsData']&&!this['_enabledCommands']['has'](_0x1eb315)&&_0x1eb315['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x16e718,_0x3261d0){super(_0x16e718),this['_suggestions']=_0x3261d0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5aae2d){const _0x4a68a0=this['_suggestions']['get'](_0x5aae2d);if(!_0x4a68a0)throw new _0x10ffdc('track-changes-accept-suggestion-not-found',this);const _0xcbb2da=_0x4a68a0['getRanges']();this['editor']['model']['canEditAt'](_0xcbb2da)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4a68a0);}}class B extends ts{['_suggestions'];constructor(_0x198c43,_0x3520f7){super(_0x198c43),this['_suggestions']=_0x3520f7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1f590b){const _0x59beed=this['_suggestions']['get'](_0x1f590b);if(!_0x59beed)throw new _0x10ffdc('track-changes-discard-suggestion-not-found',this);const _0x2d8c5d=_0x59beed['getRanges']();this['editor']['model']['canEditAt'](_0x2d8c5d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x59beed);}}function ss(_0x372d2e){return _0x372d2e['sort']((_0x46caea,_0x3ab158)=>'deletion'==_0x46caea['type']&&'deletion'!=_0x3ab158['type']?-0x1:'deletion'!=_0x46caea['type']&&'deletion'==_0x3ab158['type']?0x1:0x0);}function to(_0x297ddd,_0x19a52e){let _0x42ee4b,_0x5c351b=0x0;const _0x184006=[],_0xf564b3=_0x19a52e['schema'];for(;_0x5c351b<_0x297ddd['length'];){const _0x51a7e1=_0x297ddd[_0x5c351b],_0x3cf300=_0x297ddd[_0x5c351b+0x1];_0x42ee4b||(_0x42ee4b=_0x19a52e['createPositionBefore'](_0x51a7e1)),co(_0x19a52e,_0x51a7e1,_0x3cf300)||(_0x184006['push'](_0x19a52e['createRange'](_0x42ee4b,_0xf564b3['isObject'](_0x51a7e1)?_0x19a52e['createPositionAfter'](_0x51a7e1):_0x19a52e['createPositionAt'](_0x51a7e1,'end'))),_0x42ee4b=null),_0x5c351b++;}return _0x184006;}function co(_0x859d99,_0x205a70,_0x48bafc){if(!_0x48bafc)return!0x1;const _0x27e29a=_0x859d99['createPositionAfter'](_0x205a70),_0x285afb=_0x859d99['createPositionBefore'](_0x48bafc);return _0x27e29a['isTouching'](_0x285afb);}function rs(_0x301cf0,_0x1a86ee,_0x58e6a7){for(;_0x58e6a7['length'];){const _0x476d4c=_0x58e6a7['splice'](0x0,0x64);_0x301cf0['change'](()=>{for(const _0x2481fb of _0x476d4c)_0x2481fb['isInContent']&&_0x1a86ee['execute'](_0x2481fb['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x29e8c1,_0x1b9723,_0x5358d0){super(_0x29e8c1),this['_command']=_0x1b9723,this['_suggestions']=_0x5358d0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5e8d2c=Array['from'](this['_suggestions']['values']())['some'](_0x197c86=>_0x197c86['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5e8d2c;}['execute'](){const _0x53f43b=ss(Array['from'](this['_suggestions']['values']()));for(const _0x329fa5 of _0x53f43b){const _0x463cd6=_0x329fa5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x463cd6))return;}rs(this['editor']['model'],this['_command'],_0x53f43b);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xccf231,_0x12098d,_0xedbdae){super(_0xccf231),this['_command']=_0x12098d,this['_suggestions']=_0xedbdae,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x58e8a8=this['editor']['model']['document']['selection'],_0x2c20f2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x310fc1,_0x2d23fd){const _0xce1cce=Array['from'](_0x310fc1['getRanges']()),_0x55c802=new Set();for(const _0x8a814e of _0x2d23fd)if(_0x8a814e['isInContent']){for(const _0x169cf4 of _0xce1cce)for(const _0xb46dca of _0x8a814e['getRanges']())(_0x169cf4['isIntersecting'](_0xb46dca)||_0x310fc1['isCollapsed']&&!_0x8a814e['isMultiRange']&&_0x8a814e['next']&&_0xb46dca['end']['isTouching'](_0x169cf4['start']))&&_0x55c802['add'](_0x8a814e);}return _0x55c802;}(_0x58e8a8,_0x2c20f2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x33842a=ss(Array['from'](this['_selectedSuggestions']));for(const _0x12fb41 of _0x33842a){const _0x1311ba=_0x12fb41['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1311ba))return;}rs(this['editor']['model'],this['_command'],_0x33842a);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xb83c2(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x666cf3,_0xe61a9){super(),this['id']=_0xe61a9['id'],this['type']=_0xe61a9['type'],this['subType']=_0xe61a9['subType']||null,this['author']=_0xe61a9['author'],this['creator']=_0xe61a9['creator']||_0xe61a9['author'],this['isExternal']=Boolean(_0xe61a9['attributes']&&_0xe61a9['attributes']['@external']),this['data']=null,this['_model']=_0x666cf3,this['_onAccept']=_0xe61a9['onAccept'],this['_onDiscard']=_0xe61a9['onDiscard'],this['_onAttributesChange']=_0xe61a9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xe61a9['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x5d3ce7=this;for(;_0x5d3ce7['previous'];)_0x5d3ce7=_0x5d3ce7['previous'];return _0x5d3ce7;}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'](_0x15b8b4){this['_markerNames']['add'](_0x15b8b4);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x49b4a9=>this['_model']['markers']['get'](_0x49b4a9))['filter'](_0x59e5cd=>_0x59e5cd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x596811=>{for(const _0x1f4e2f of this['getMarkers']())_0x596811['removeMarker'](_0x1f4e2f);}),this['_markerNames']['clear']();}['removeMarker'](_0x22bbd0){this['_model']['change'](_0x39dcf2=>{_0x39dcf2['removeMarker'](_0x22bbd0);}),this['_markerNames']['delete'](_0x22bbd0);}['addRange'](_0x174e7d){const _0x4ac3c6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4ac3c6),this['_model']['change'](_0x2c28a6=>{_0x2c28a6['addMarker'](_0x4ac3c6,{'range':_0x174e7d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4c8bc0){for(const _0x1419e9 of this['getRanges']())if(_0x1419e9['isIntersecting'](_0x4c8bc0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x411c45=>_0x411c45['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x115537,_0x35a1d1)=>[..._0x115537,..._0x35a1d1['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x49ce39=this['getRanges']();if(0x1!=_0x49ce39['length'])return null;const _0x4ad2e3=_0x49ce39[0x0],_0x4b079e=_0x4ad2e3['start']['nodeAfter'],_0xb940fb=_0x4ad2e3['end']['nodeBefore'];return _0x4b079e instanceof _0x4d7b17?_0x4b079e!=_0xb940fb?null:_0x4b079e: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 _0x18b795=[];let _0xe40319=this['head'];for(;_0xe40319;)_0x18b795['push'](_0xe40319),_0xe40319=_0xe40319['next'];return _0x18b795;}['setAttribute'](_0x30e474,_0x5ad727){const _0x4560c9=_0x17a613(this['attributes']);_0x29ab6b(_0x4560c9,_0x30e474,_0x5ad727),_0x4c53ba(_0x4560c9,this['attributes'])||(this['attributes']=_0x4560c9,this['_onAttributesChange'](_0x4560c9));}['removeAttribute'](_0x14c2d6){const _0x2657a2=_0x17a613(this['attributes']);_0x1b63a7(_0x2657a2,_0x14c2d6),_0x4c53ba(_0x2657a2,this['attributes'])||(this['attributes']=_0x2657a2,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 _0x267db8()['substr'](0x1,0x5);}}function o(_0x1d8c63,_0x4603e0,_0x493004){const t=_0x1d8c63['t'];switch(_0x4603e0){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',_0x493004);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x493004);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x493004);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x493004);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x493004);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',_0x493004);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x493004);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',_0x493004);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x493004);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x493004);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x493004);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x493004);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x493004);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x493004);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x493004);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x493004);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x493004);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x493004);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x493004);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x493004);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x493004);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x493004);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x493004);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'},_0x493004);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x493004);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x493004);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x493004);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x493004);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x493004);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'},_0x493004);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x493004);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x493004);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x493004);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x493004);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'},_0x493004);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x493004);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'},_0x493004);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'},_0x493004);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x493004);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'},_0x493004);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x493004);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'},_0x493004);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x493004);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x493004);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'},_0x493004);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'},_0x493004);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 _0x4603e0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5ca02f,_0x572558){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5ca02f,this['_locale']=_0x572558;}['getDescriptions'](_0x1b83e9){const _0x1d8839=[],_0x55e0d1=new Set(),_0x153f45=new Set();for(let _0xb8a5f4=0x0;_0xb8a5f4<_0x1b83e9['length'];_0xb8a5f4++){const _0x532b12=_0x1b83e9[_0xb8a5f4];if(!_0x532b12['isInContent'])continue;const _0x4a3518=this['_handleCustomCallbackDescription'](_0x532b12);if(_0x4a3518){if(null!=_0x532b12['subType']){if(_0x55e0d1['has'](_0x532b12['subType']))continue;_0x55e0d1['add'](_0x532b12['subType']);}_0x1d8839['push'](_0x4a3518);}else{if('attribute'!=_0x532b12['type'])'insertion'!=_0x532b12['type']&&'deletion'!=_0x532b12['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1d8839,_0x532b12,_0x1b83e9[_0xb8a5f4+0x1]);else{const _0x4f105f=_0x532b12['data']['key'];if(_0x153f45['has'](_0x4f105f))continue;_0x153f45['add'](_0x532b12['data']['key']),_0x4f105f==m?this['_handleRenameSuggestionDescription'](_0x1d8839,_0x532b12):this['_handleAttributeSuggestionDescription'](_0x1d8839,_0x532b12);}}}return this['_resolveDescriptionItems'](_0x1d8839);}['registerDescriptionCallback'](_0x523f75){this['_customCallbacks']['push'](_0x523f75);}['registerElementLabel'](_0x200256,_0x49a36d,_0x346025=_0x4600a6['normal']){'function'==typeof _0x200256?_0x385583(this['_itemLabelsCallbacks'],{'matchingCallback':_0x200256,'label':_0x49a36d,'priority':_0x346025}):this['_itemLabels']['set'](_0x200256,_0x49a36d);}['registerAttributeLabel'](_0x570459,_0x18432b){this['_attributeLabels']['set'](_0x570459,_0x18432b);}['getItemLabel'](_0x3eb893,_0x13a3cc=0x1){let _0x464892;for(const _0x4d9725 of this['_itemLabelsCallbacks'])if(_0x4d9725['matchingCallback'](_0x3eb893)){_0x464892=_0x4d9725['label'];break;}return _0x464892||(_0x464892=this['_itemLabels']['get'](_0x3eb893['name'])),_0x464892?_0x464892(_0x13a3cc):0x1!==_0x13a3cc?_0x13a3cc+'\x20'+_0x3eb893['name']+'s':''+_0x3eb893['name'];}['_addDescriptionItems'](_0x34607c,_0xd6d6cd){const _0x1b112a=_0xd6d6cd['getFirstRange']()['getWalker'](),_0x2d259d='insertion'==_0xd6d6cd['type']?'add':'remove';for(const _0x2e97be of _0x1b112a){const _0x52b03e=_0x2e97be['item'],_0x3ff00c=_0x34607c[_0x34607c['length']-0x1];if(_0x52b03e['is']('$textProxy'))_0x3ff00c&&_0x3ff00c['type']['indexOf']('Container')>-0x1&&_0x34607c['pop'](),_0x3ff00c&&'text'==_0x3ff00c['type']?_0x3ff00c[_0x2d259d]+=_0x52b03e['data']:_0x34607c['push']({'type':'text','add':'add'==_0x2d259d?_0x52b03e['data']:'','remove':'remove'==_0x2d259d?_0x52b03e['data']:''});else{if(this['_schema']['isObject'](_0x52b03e)){const _0x2176f3=_0x52b03e;if(_0x3ff00c&&_0x3ff00c['type']['indexOf']('Container')>-0x1&&_0x34607c['pop'](),'elementEnd'==_0x2e97be['type'])continue;_0x3ff00c&&_0x3ff00c['type']==_0x2d259d+'Object'&&_0x3ff00c['element']['name']==_0x2176f3['name']?_0x3ff00c['quantity']++:_0x34607c['push']({'type':_0x2d259d+'Object','element':_0x2176f3,'quantity':0x1}),_0x1b112a['skip'](_0x412b77=>!('elementEnd'==_0x412b77['type']&&_0x412b77['item']==_0x52b03e));}else{if(this['_schema']['checkChild'](_0x52b03e,'$text')||_0x52b03e['is']('element','softBreak')){const _0x1ecfd1=_0x52b03e;if('add'==_0x2d259d&&'elementStart'==_0x2e97be['type']||'remove'==_0x2d259d&&'elementEnd'==_0x2e97be['type'])continue;if(_0x3ff00c&&-0x1==_0x3ff00c['type']['indexOf']('Container')){'text'==_0x3ff00c['type']&&(_0x3ff00c[_0x2d259d]+='\x0a');continue;}let _0x5762ba;if(_0x5762ba='add'==_0x2d259d?_0x1ecfd1['nextSibling']&&!this['_schema']['isObject'](_0x1ecfd1['nextSibling'])?_0x1ecfd1['nextSibling']:null:_0x1ecfd1['previousSibling']&&!this['_schema']['isObject'](_0x1ecfd1['previousSibling'])?_0x1ecfd1['previousSibling']:null,_0x1ecfd1['isEmpty']||_0x5762ba&&_0x5762ba['isEmpty']){const _0x54f13f=_0x5762ba&&_0x5762ba['isEmpty']?_0x5762ba:_0x1ecfd1;_0x3ff00c&&_0x3ff00c['type']==_0x2d259d+'EmptyContainer'&&_0x3ff00c['element']['name']==_0x54f13f['name']?_0x3ff00c['quantity']++:_0x34607c['push']({'type':_0x2d259d+'EmptyContainer','element':_0x54f13f,'quantity':0x1});}else _0x34607c['push']({'type':_0x2d259d+'Container','element':_0x1ecfd1});}}}}}['_resolveDescriptionItems'](_0x5e68fd){const _0x249fd2=this['_locale'],_0x25f336=[],_0x3cdcc1=[],_0x3a6e60=[];for(const _0x305235 of _0x5e68fd)switch(_0x305235['type']){case'text':if(_0x305235['add']=_0x305235['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x305235['remove']=_0x305235['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x305235['add']&&''!=_0x305235['remove']){_0x25f336['push']({'type':'replace','content':o(_0x249fd2,'REPLACE_TEXT',['\x22'+_0x305235['remove']+'\x22','\x22'+_0x305235['add']+'\x22'])});continue;}if(null!=_0x305235['add']['match'](/^ +$/)){_0x25f336['push']({'type':'insertion','content':o(_0x249fd2,'*Insert:*\x20%0',o(_0x249fd2,'ELEMENT_SPACE',_0x305235['add']['length']))});continue;}if(null!=_0x305235['remove']['match'](/^ +$/)){_0x25f336['push']({'type':'deletion','content':o(_0x249fd2,'*Remove:*\x20%0',o(_0x249fd2,'ELEMENT_SPACE',_0x305235['remove']['length']))});continue;}if(''!=_0x305235['add']){_0x25f336['push']({'type':'insertion','content':o(_0x249fd2,'*Insert:*\x20%0','\x22'+_0x305235['add']+'\x22')});continue;}_0x25f336['push']({'type':'deletion','content':o(_0x249fd2,'*Remove:*\x20%0','\x22'+_0x305235['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x25f336['push']({'type':'insertion','content':o(_0x249fd2,'*Insert:*\x20%0',this['getItemLabel'](_0x305235['element'],_0x305235['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x25f336['push']({'type':'deletion','content':o(_0x249fd2,'*Remove:*\x20%0',this['getItemLabel'](_0x305235['element'],_0x305235['quantity']))});continue;case'addContainer':_0x25f336['push']({'type':'insertion','content':o(_0x249fd2,'*Split:*\x20%0',this['getItemLabel'](_0x305235['element'],_0x305235['quantity']))});continue;case'removeContainer':_0x25f336['push']({'type':'deletion','content':o(_0x249fd2,'*Merge:*\x20%0',this['getItemLabel'](_0x305235['element'],_0x305235['quantity']))});continue;case'addFormat':_0x3cdcc1['push'](_0x305235['key']);continue;case'removeFormat':_0x3a6e60['push'](_0x305235['key']);continue;default:_0x25f336['push'](_0x305235);}if(_0x3cdcc1['length']){const _0xfb7fe5=_0x3cdcc1['map'](_0x1738c1=>this['_attributeLabels']['has'](_0x1738c1)?this['_attributeLabels']['get'](_0x1738c1):_0x1738c1)['join'](',\x20');_0x25f336['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xfb7fe5)});}if(_0x3a6e60['length']){const _0x1f9b84=_0x3a6e60['map'](_0x4b419d=>this['_attributeLabels']['has'](_0x4b419d)?this['_attributeLabels']['get'](_0x4b419d):_0x4b419d)['join'](',\x20');_0x25f336['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1f9b84)});}return _0x25f336;}['_handleCustomCallbackDescription'](_0x1fa584){for(const _0x2de4ec of this['_customCallbacks']){const _0x4749fa=_0x2de4ec(_0x1fa584);if(_0x4749fa&&'type'in _0x4749fa)return _0x4749fa;}}['_handleAttributeSuggestionDescription'](_0x13292c,_0x4e73ed){const _0x2beffb=_0x4e73ed['data'],_0x57866c=void 0x0===_0x2beffb['newValue']?'removeFormat':'addFormat';_0x13292c['push']({'type':_0x57866c,'key':_0x2beffb['key']});}['_handleRenameSuggestionDescription'](_0x3d4396,_0x1127b2){_0x3d4396['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1127b2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5228be,_0x8126ca,_0x274ec0){if(this['_addDescriptionItems'](_0x5228be,_0x8126ca),_0x274ec0&&_0x274ec0['getFirstRange']()&&!_0x8126ca['getFirstRange']()['end']['isEqual'](_0x274ec0['getFirstRange']()['start'])){const _0x51f9f8=_0x5228be[_0x5228be['length']-0x1],_0x4352cf='insertion'==_0x8126ca['type']?'add':'remove';_0x51f9f8&&'text'==_0x51f9f8['type']&&(_0x51f9f8[_0x4352cf]+='\x0a');}}}class E extends _0x1fbed8{['afterInit'](){const _0x38ae58=this['editor'],_0x51780d=_0x38ae58['plugins']['get']('TrackChangesEditing');_0x38ae58['commands']['get']('showAIAssistant')&&_0x51780d['enableCommand']('showAIAssistant');}}class V extends _0x1fbed8{['afterInit'](){const _0xa9bcab=this['editor'],_0x29860c=_0xa9bcab['locale'];if(!_0xa9bcab['plugins']['has']('AlignmentEditing'))return;const _0x455f4a=_0xa9bcab['plugins']['get']('TrackChangesEditing');_0x455f4a['enableDefaultAttributesIntegration']('alignment'),_0x455f4a['registerBlockAttribute']('alignment'),_0x455f4a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x29860c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb1054b=this['editor'],_0x45bca6=_0xb1054b['locale'];_0xb1054b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaff1c0=>{if('formatBlock'!=_0xaff1c0['type'])return;const {data:_0x370539}=_0xaff1c0;if(_0x370539&&'alignment'==_0x370539['commandName']){const _0x512a7b=_0x370539['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x45bca6,'*Format:*\x20%0',function(_0x369042){switch(_0x369042){case'left':return o(_0x45bca6,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x45bca6,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x45bca6,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x45bca6,'FORMAT_JUSTIFY_TEXT');}}(_0x512a7b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1fbed8{['afterInit'](){const _0x1c7e06=this['editor'],_0x3e334a=_0x1c7e06['plugins']['get']('TrackChangesEditing'),_0x1644db=_0x1c7e06['locale'];for(const _0x37a175 of ti){if(!_0x1c7e06['plugins']['has'](_0x37a175))continue;const _0x133aa3=_0x37a175['slice'](0x0,-0x7)['toLowerCase'](),_0x56c187='FORMAT_'+_0x133aa3['toUpperCase']();_0x3e334a['enableDefaultAttributesIntegration'](_0x133aa3),_0x3e334a['registerInlineAttribute'](_0x133aa3),_0x3e334a['descriptionFactory']['registerAttributeLabel'](_0x133aa3,o(_0x1644db,_0x56c187));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3429cf=this['editor'],_0x5ec820=_0x3429cf['locale'],_0x141835=_0x3429cf['plugins']['get']('TrackChangesEditing');function _0x47cf6a(_0x2c2107,_0x7b446e){_0x141835['descriptionFactory']['registerDescriptionCallback'](_0x259e37=>{if('formatInline'!=_0x259e37['type'])return;const {data:_0x501c4d}=_0x259e37;return _0x501c4d&&_0x501c4d['commandName']===_0x2c2107?_0x501c4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ec820,'*Format:*\x20%0',_0x7b446e)}:{'type':'format','content':o(_0x5ec820,'*Remove\x20format:*\x20%0',_0x7b446e)}:void 0x0;});}_0x47cf6a('bold',o(_0x5ec820,'FORMAT_BOLD')),_0x47cf6a('italic',o(_0x5ec820,'FORMAT_ITALIC')),_0x47cf6a('underline',o(_0x5ec820,'FORMAT_UNDERLINE')),_0x47cf6a('code',o(_0x5ec820,'FORMAT_CODE')),_0x47cf6a('strikethrough',o(_0x5ec820,'FORMAT_STRIKETHROUGH')),_0x47cf6a('subscript',o(_0x5ec820,'FORMAT_SUBSCRIPT')),_0x47cf6a('superscript',o(_0x5ec820,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1fbed8{['afterInit'](){const _0x278afe=this['editor'],_0x5ab80b=_0x278afe['locale'];if(!_0x278afe['plugins']['has']('BlockQuoteEditing'))return;const _0x1d8fb4=_0x278afe['plugins']['get']('TrackChangesEditing'),_0x4cda69=this['editor']['commands']['get']('blockQuote');_0x1d8fb4['enableCommand']('blockQuote',(_0x37e6ce,_0x40daf9={})=>{const _0xaa80bd=this['editor']['model']['document']['selection'],_0xe259cf=_0x40daf9&&void 0x0!==_0x40daf9['forceValue']?_0x40daf9['forceValue']:!_0x4cda69['value'];let _0x56186b=[];if(_0xe259cf){const _0x40066f=Array['from'](_0xaa80bd['getSelectedBlocks']())['filter'](_0x5d9f5f=>oo(_0x5d9f5f)||function(_0x32d31c,_0x1a6b4f){const _0x3ae16b=_0x1a6b4f['checkChild'](_0x32d31c['parent'],'blockQuote'),_0x2d0724=_0x1a6b4f['checkChild'](['$root','blockQuote'],_0x32d31c);return _0x3ae16b&&_0x2d0724;}(_0x5d9f5f,this['editor']['model']['schema']));_0x56186b=to(_0x40066f,_0x278afe['model']);}else{const _0x270db0=Array['from'](_0xaa80bd['getSelectedBlocks']())['filter'](_0xd92b06=>oo(_0xd92b06));_0x56186b=to(_0x270db0,_0x278afe['model']);}_0x278afe['model']['change'](()=>{for(const _0x222b15 of _0x56186b)_0x1d8fb4['markBlockFormat'](_0x222b15,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xe259cf}]});});}),_0x1d8fb4['descriptionFactory']['registerDescriptionCallback'](_0x15e3fa=>{const {data:_0xf08c21}=_0x15e3fa;if(_0xf08c21&&'blockQuote'==_0xf08c21['commandName']){const _0x26b86a=o(_0x5ab80b,'ELEMENT_BLOCK_QUOTE');return _0xf08c21['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ab80b,'*Set\x20format:*\x20%0',_0x26b86a)}:{'type':'format','content':o(_0x5ab80b,'*Remove\x20format:*\x20%0',_0x26b86a)};}});}}function oo(_0x56427b){return'blockQuote'==_0x56427b['parent']['name'];}class G extends _0x1fbed8{['afterInit'](){const _0x4616c9=this['editor'];_0x4616c9['plugins']['has']('CaseChange')&&(_0x4616c9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4616c9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4616c9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1fbed8{['afterInit'](){const _0x43d922=this['editor'];_0x43d922['commands']['get']('ckbox')&&_0x43d922['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1fbed8{['afterInit'](){const _0x366fec=this['editor'];if(!_0x366fec['plugins']['has']('CodeBlock'))return;const _0x5532f9=_0x366fec['plugins']['get']('TrackChangesEditing'),_0xeba913=_0x366fec['locale'],_0x43b9f5=_0x366fec['config']['get']('codeBlock')['languages'],_0x1c25ad=_0x366fec['commands']['get']('codeBlock');_0x5532f9['enableCommand']('indentCodeBlock'),_0x5532f9['enableCommand']('outdentCodeBlock'),_0x5532f9['enableCommand']('codeBlock',(_0x1189b7,_0x11d17a={})=>{const _0x231327=_0x366fec['model'],_0x529dd3=_0x366fec['model']['document']['selection'],_0x4a6f23=_0x11d17a&&void 0x0!==_0x11d17a['forceValue']?_0x11d17a['forceValue']:!_0x1c25ad['value'];let _0x77dc28;_0x11d17a['language']||(_0x11d17a['language']=_0x43b9f5[0x0]['language']),_0x77dc28=_0x4a6f23?Array['from'](_0x529dd3['getSelectedBlocks']())['filter'](_0x5cd54d=>eo(_0x5cd54d)||function(_0x2e001c,_0x284ff8){if(_0x2e001c['is']('rootElement')||_0x284ff8['isLimit'](_0x2e001c))return!0x1;return _0x284ff8['checkChild'](_0x2e001c['parent'],'codeBlock');}(_0x5cd54d,_0x231327['schema'])):Array['from'](_0x529dd3['getSelectedBlocks']())['filter'](_0x4454c5=>eo(_0x4454c5));const _0x1d11e4=to(_0x77dc28,_0x231327);_0x231327['change'](()=>{for(const _0x16b96c of _0x1d11e4)_0x5532f9['markBlockFormat'](_0x16b96c,{'commandName':'codeBlock','commandParams':[{..._0x11d17a,'forceValue':_0x4a6f23}],'formatGroupId':'blockName'});});}),(_0x5532f9['descriptionFactory']['registerElementLabel']('codeBlock',_0x109d99=>o(_0xeba913,'ELEMENT_CODE_BLOCK',_0x109d99)),_0x5532f9['descriptionFactory']['registerDescriptionCallback'](_0x12a56c=>{if('formatBlock'!=_0x12a56c['type'])return;const _0x157b20=_0xeba913['t'],{data:_0x15320f}=_0x12a56c;if(!_0x15320f||'codeBlock'!=_0x15320f['commandName'])return;const _0x4c55fb=_0x15320f['commandParams'][0x0]['language'],_0x2bbac7=_0x157b20(_0x43b9f5['find'](_0x400413=>_0x400413['language']===_0x4c55fb)['label'])['toLowerCase']();return _0x15320f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xeba913,'*Set\x20format:*\x20%0',o(_0xeba913,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2bbac7+')')}:{'type':'format','content':o(_0xeba913,'*Remove\x20format:*\x20%0',o(_0xeba913,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x593d9b){return'codeBlock'==_0x593d9b['name'];}class H extends _0x1fbed8{['afterInit'](){const _0x5d47fb=this['editor'];if(!_0x5d47fb['plugins']['has']('CommentsEditing'))return;_0x5d47fb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4bb6f1,_0x53f1f4,_0x1310ec){const _0x1c821b=[];for(const _0x58207c of _0x53f1f4['getItems']())_0x58207c['hasAttribute'](_0x4bb6f1)&&_0x1c821b['push'](_0x1310ec['createRangeOn'](_0x58207c));return _0x1c821b;}function _e(_0x87ca0e,_0x52e872,{showActiveMarker:_0x49980f=!0x0}={}){const _0x3f411a=_0x87ca0e['plugins']['get']('TrackChangesEditing');return(_0x20bf52,_0x27933e,_0x18e540)=>{if(!_0x18e540['consumable']['test'](_0x27933e['markerRange'],_0x20bf52['name']))return;const _0x80e63c=_0x27933e['markerRange']['getWalker'](),_0x24ac2e=_0x27933e['markerRange']['start'],_0x3f16e0=_0x87ca0e['model']['schema'];let _0x12fdf0=null,_0x5cc2d6=null,_0xb0913d=!0x1,_0x19a5ba=!0x1;for(const _0x39e8e1 of _0x80e63c){const _0x42b8bf=_0x39e8e1['item'];_0xb0913d=_0xb0913d||_0x3f16e0['isContent'](_0x42b8bf);const _0x5ea2b5=_0x18e540['mapper']['toViewElement'](_0x42b8bf);if(_0x5ea2b5&&_0x5ea2b5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x39e8e1['type']&&(_0x3f16e0['isBlock'](_0x42b8bf)&&!_0x3f16e0['isLimit'](_0x42b8bf)&&(_0x42b8bf['nextSibling']||_0x24ac2e['isAtEnd']?_0x12fdf0&&_0x12fdf0['parent']==_0x42b8bf||(_0x12fdf0=_0x42b8bf,_0x231f90(_0x39e8e1['previousPosition']),_0x19a5ba=!0x0):_0x5cc2d6=_0x5cc2d6||_0x39e8e1['previousPosition']));}function _0x231f90(_0x17c4c0){const _0x56fa93=_0x18e540['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x52e872}),_0x47f581=_0x18e540['mapper']['toViewPosition'](_0x17c4c0);_0x49980f&&_0x3f411a['activeMarkers']['includes'](_0x27933e['markerName'])&&_0x18e540['writer']['addClass']('ck-suggestion-marker--active',_0x56fa93),_0x18e540['writer']['insert'](_0x47f581,_0x56fa93),_0x18e540['mapper']['bindElementToMarker'](_0x56fa93,_0x27933e['markerName']);}_0xb0913d||_0x19a5ba||!_0x5cc2d6||_0x231f90(_0x5cc2d6);};}class q extends _0x1fbed8{static get['requires'](){return[_0x2bca8d];}['init'](){const _0x394b1b=this['editor'],_0x402026=_0x394b1b['plugins']['get']('TrackChangesEditing');_0x402026['enableCommand']('delete');const _0x3b6610=_0x394b1b['commands']['get']('deleteForward');_0x402026['enableCommand']('deleteForward',(_0x14ecf2,_0x44016c={})=>{const _0x1ebcf7=_0x394b1b['model']['createSelection'](_0x394b1b['model']['document']['selection']);_0x1ebcf7['isCollapsed']&&_0x394b1b['model']['modifySelection'](_0x1ebcf7,{'direction':'forward','unit':_0x44016c['unit']});const _0x11cf41=_0x1ebcf7['getFirstRange'](),_0xf6f20b=_0x47172d['fromRange'](_0x11cf41);let _0x35bc1f;_0x14ecf2(_0x44016c),_0x35bc1f='$graveyard'==_0xf6f20b['root']['rootName']?_0x394b1b['model']['createRange'](_0x11cf41['start']):_0x394b1b['model']['createRange'](_0xf6f20b['start'],_0xf6f20b['end']),_0xf6f20b['detach'](),_0x394b1b['model']['enqueueChange'](_0x3b6610['buffer']['batch'],_0x57ca75=>{_0x3b6610['buffer']['lock'](),_0x57ca75['setSelection'](_0x57ca75['createRange'](_0x35bc1f['end'])),_0x3b6610['buffer']['unlock']();});}),_0x394b1b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x394b1b,'merge'),{'priority':'high'}),_0x394b1b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3746e7,_0x45b35f,_0xef831)=>{_0xef831['options']['showSuggestionHighlights']&&_e(_0x394b1b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3746e7,_0x45b35f,_0xef831);},{'priority':'high'}),_0x394b1b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3423d5,_0xf75441,_0x5ad205)=>{const _0x3a4f87=_0x5ad205['mapper']['markerNameToElements'](_0xf75441['markerName']);if(_0x3a4f87){for(const _0x60614d of _0x3a4f87)_0x60614d['is']('uiElement')&&(_0x5ad205['mapper']['unbindElementFromMarkerName'](_0x60614d,_0xf75441['markerName']),_0x5ad205['writer']['remove'](_0x60614d));}},{'priority':'high'});}}class z extends _0x1fbed8{['afterInit'](){const _0x93470=this['editor'];if(!_0x93470['plugins']['has']('ListEditing'))return;const _0x369665=_0x93470['locale'],_0x2e0f75=_0x93470['plugins']['get']('TrackChangesEditing'),_0x24efd8=_0x93470['plugins']['has']('TodoListEditing'),_0x29b9bd=!!_0x93470['config']['get']('list.multiBlock');function _0x2b1cfd(_0x3aaa43){return{'type':'format','content':''+o(_0x369665,'*Set\x20format:*\x20%0',_0x3aaa43)};}function _0x21a874(_0x425568){return{'type':'format','content':''+o(_0x369665,'*Remove\x20format:*\x20%0',_0x425568)};}_0x2e0f75['enableDefaultAttributesIntegration']('numberedList'),_0x2e0f75['enableDefaultAttributesIntegration']('bulletedList'),_0x2e0f75['enableDefaultAttributesIntegration']('customNumberedList'),_0x2e0f75['enableDefaultAttributesIntegration']('customBulletedList'),_0x2e0f75['enableDefaultAttributesIntegration']('indentList'),_0x2e0f75['enableDefaultAttributesIntegration']('outdentList'),_0x2e0f75['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2e0f75['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2e0f75['registerBlockAttribute']('listItemId'),_0x2e0f75['registerBlockAttribute']('listType'),_0x2e0f75['registerBlockAttribute']('listIndent'),_0x29b9bd&&(_0x2e0f75['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2e0f75['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x24efd8&&(_0x2e0f75['enableDefaultAttributesIntegration']('todoList'),_0x2e0f75['enableDefaultAttributesIntegration']('checkTodoList'),_0x2e0f75['registerBlockAttribute']('todoListChecked'),_0x2e0f75['descriptionFactory']['registerDescriptionCallback'](_0x448f91=>{const {data:_0x299682}=_0x448f91;if(_0x299682&&'todoListChecked'==_0x299682['key'])return{'type':'format','content':_0x299682['newValue']?o(_0x369665,'*Check\x20item*'):o(_0x369665,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5499dd=>{if(_0x5499dd['batch']['isUndo'])return!0x1;let _0x14f79a=!0x1;const _0x2aa321=_0x2e0f75['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2dc231=>'todoListChecked'===_0x2e0f75['_getAttributeKey'](_0x2dc231));for(const _0x749ca7 of _0x2aa321){'todo'!=_0x749ca7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2e0f75['_findSuggestions'](_0x749ca7['getFirstRange'](),'attribute')['find'](_0x36e218=>'listType'===_0x2e0f75['_getAttributeKey'](_0x36e218['suggestion']))||(_0x5499dd['removeMarker'](_0x749ca7['getFirstMarker']()),_0x14f79a=!0x0));}return _0x14f79a;})),_0x2e0f75['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x369665,'FORMAT_INDENT'));const _0x2486da={'type':'format','content':''};_0x2e0f75['descriptionFactory']['registerDescriptionCallback'](_0x17e9d5=>{const {data:_0x59d485}=_0x17e9d5;if(!_0x59d485||'listType'!=_0x59d485['key'])return;let _0x2cfaff=_0x17e9d5['head'];for(;_0x2cfaff;){if(_0x2cfaff['data']&&(('listStyle'==_0x2cfaff['data']['key']||'listMarkerStyle'==_0x2cfaff['data']['key'])&&(_0x2cfaff['data']['newValue']&&'default'!=_0x2cfaff['data']['newValue']||'default'!=_0x2cfaff['data']['oldValue']&&!_0x59d485['newValue'])||!_0x29b9bd&&_0x2cfaff['data']['key']==m))return _0x2486da;_0x2cfaff=_0x2cfaff['next'];}if(null==_0x59d485['newValue'])switch(_0x59d485['oldValue']){case'bulleted':return _0x21a874(o(_0x369665,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x21a874(o(_0x369665,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x21a874(o(_0x369665,'ELEMENT_TODO_LIST'));}switch(_0x59d485['newValue']){case'bulleted':return _0x2b1cfd(o(_0x369665,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b1cfd(o(_0x369665,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b1cfd(o(_0x369665,'ELEMENT_TODO_LIST'));}}),_0x2e0f75['descriptionFactory']['registerDescriptionCallback'](_0x1353f3=>{const {data:_0x386a60}=_0x1353f3;if(_0x386a60&&'listIndent'==_0x386a60['key'])return null==_0x386a60['newValue']||null==_0x386a60['oldValue']&&0x0==_0x386a60['newValue']?_0x2486da:void 0x0;}),_0x2e0f75['descriptionFactory']['registerDescriptionCallback'](_0x3dbe0a=>{if('attribute'!=_0x3dbe0a['type'])return;const {data:_0x4c96e6}=_0x3dbe0a;if(!_0x4c96e6||'listItemId'!=_0x4c96e6['key'])return;const _0x32d297=le(_0x3dbe0a);return'newValue'==_0x32d297?{'type':'format','content':o(_0x369665,'*Merge:*\x20list\x20item')}:'oldValue'==_0x32d297?{'type':'format','content':o(_0x369665,'*Split:*\x20list\x20item')}:_0x2486da;}),_0x93470['model']['document']['registerPostFixer'](_0x80bab1=>this['listItemIdFixer'](_0x80bab1)),_0x93470['model']['document']['registerPostFixer'](_0x45d29f=>this['noTrackChangesFixer'](_0x45d29f)),_0x93470['model']['document']['registerPostFixer'](_0x38360a=>this['assureChains'](_0x38360a)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x49c69b){if(_0x49c69b['batch']['isUndo']||!_0x49c69b['batch']['isLocal'])return!0x1;let _0xd2b718=!0x1;const _0x173784=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10f320=>_0x10f320['data']&&'listItemId'==_0x10f320['data']['key'])['filter'](_0x1240d0=>_0x1240d0['data']['newValue']&&_0x1240d0['data']['oldValue']);for(const _0x487bd8 of _0x173784)le(_0x487bd8)||(_0x49c69b['removeMarker'](_0x487bd8['getFirstMarker']()),_0xd2b718=!0x0);return _0xd2b718;}['noTrackChangesFixer'](_0x1ea312){if(_0x1ea312['batch']['isUndo']||!_0x1ea312['batch']['isLocal'])return!0x1;const _0x266cd3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x266cd3['trackChangesCommand']['value'])return!0x1;let _0x53148f=!0x1;const _0x53b844=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x469c44=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x45c9b8=>'attribute'==_0x45c9b8['type'])['filter'](_0xf02f45=>_0x53b844['includes'](_0xf02f45['attributeKey']));if(0x0==_0x469c44['length'])return _0x53148f;for(const _0x28050c of _0x469c44){const _0xb96eb9=_0x266cd3['_findSuggestions'](_0x28050c['range'],'attribute')['filter'](_0x436e65=>!_0x436e65['meta']['isNextTo'])['map'](_0x4bf21f=>_0x4bf21f['suggestion'])['filter'](_0x1192c1=>{const _0x5cc1bb=_0x266cd3['_getAttributeKey'](_0x1192c1);return _0x53b844['includes'](_0x5cc1bb);});if(_0xb96eb9['length']){for(const _0x1b0172 of _0xb96eb9)_0x1ea312['removeMarker'](_0x1b0172['getFirstMarker']());_0x53148f=!0x0;}}return _0x53148f;}['assureChains'](_0x279910){if(_0x279910['batch']['isUndo']||!_0x279910['batch']['isLocal'])return!0x1;const _0x204db8=this['editor']['plugins']['get']('TrackChangesEditing');let _0x4bd89c=!0x1;const _0xd57c17=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x405e1d of _0x204db8['getSuggestions']({'skipNotAttached':!0x0})){const _0x2be269=_0x204db8['_findSuggestions'](_0x405e1d['getFirstRange'](),'attribute')['map'](_0x1e2e94=>_0x1e2e94['suggestion'])['filter'](_0x2066b=>_0x2066b['data']&&_0xd57c17['includes'](_0x2066b['data']['key']));if(!_0x2be269['length'])continue;const _0x1fd9ab=_0x2be269[0x0]['head']['attributes']['groupId'];if(!_0x2be269['every'](_0x2ccc2b=>_0x2ccc2b['attributes']['groupId']===_0x1fd9ab)){for(const _0x1e8775 of _0x2be269)_0x3ba7ce(_0x1e8775,_0x1fd9ab)&&(_0x4bd89c=!0x0);}}return _0x4bd89c;function _0x2f0c80(_0x2d8257,_0x54ec27){for(const _0x108eb4 of _0x204db8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x539eaf=>'attribute'==_0x539eaf['type']&&_0x539eaf['attributes']['groupId']==_0x2d8257))_0x108eb4['setAttribute']('groupId',_0x54ec27);}function _0x3ba7ce(_0x1c7019,_0x3384ca){let _0x28ce70=_0x1c7019['head'],_0x27e5f7=!0x1;for(;_0x28ce70;)_0x28ce70['attributes']['groupId']!=_0x3384ca&&(_0x2f0c80(_0x28ce70['attributes']['groupId'],_0x3384ca),_0x28ce70['setAttribute']('groupId',_0x3384ca),_0x27e5f7=!0x0),_0x28ce70=_0x28ce70['next'];return _0x27e5f7;}}['_supportLegacySuggestions'](){const _0x111bd4=this['editor'],_0x30707d=_0x111bd4['locale'],_0x41b08f=_0x111bd4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x41b08f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5dbc25,_0x18aa6d){const _0x13c528=[];for(let _0x5dd8f4 of _0x5dbc25)_0x5dd8f4['start']['nodeAfter']===_0x5dd8f4['end']['parent']&&(_0x5dd8f4=_0x111bd4['model']['createRange'](_0x111bd4['model']['createPositionAt'](_0x5dd8f4['start']['nodeAfter'],0x0))),_0x13c528['push'](_0x5dd8f4);_0x111bd4['model']['change'](_0x32db60=>{const _0x32ba77=_0x111bd4['model']['document']['selection'],_0x2a237b=Array['from'](_0x32ba77['getRanges']())['map'](_0x2dd1ae=>_0x47172d['fromRange'](_0x2dd1ae));_0x32db60['setSelection'](_0x13c528),_0x111bd4['commands']['get'](_0x18aa6d['commandName'])['refresh'](),_0x18aa6d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x111bd4['execute'](_0x18aa6d['commandName'],..._0x18aa6d['commandParams']),_0x32db60['setSelection'](_0x2a237b);for(const _0x300c9c of _0x2a237b)_0x300c9c['detach']();});}),_0x41b08f['descriptionFactory']['registerElementLabel'](function(_0x2100ae){const _0x5d51d1=!_0x111bd4['model']['schema']['isObject'](_0x2100ae),_0x20e6a6=_0x2100ae['previousSibling'],_0x42cd03=_0x2100ae['nextSibling'],_0x1ed490=_0x2100ae['getAttribute']('listItemId'),_0x5146e9=!_0x20e6a6||_0x20e6a6['getAttribute']('listItemId')!==_0x1ed490,_0xb90062=!_0x42cd03||_0x42cd03['getAttribute']('listItemId')!==_0x1ed490;return _0x5d51d1&&Boolean(_0x1ed490)&&_0x5146e9&&_0xb90062;},_0x24059=>o(_0x30707d,'ELEMENT_LIST_ITEM',_0x24059));}['_registerLegacyDescription'](){const _0x5179f0=this['editor'],_0x56f4b9=_0x5179f0['locale'];function _0xc92ea1(_0x225e45){const _0x5ad03b=_0x5179f0['commands']['get']('bulletedList')['value'],_0x2c2dff=_0x5179f0['commands']['get']('numberedList')['value'];return'numberedList'===_0x225e45?_0x5ad03b:_0x2c2dff;}_0x5179f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x41a420){if('formatBlock'!=_0x41a420['type'])return;const {data:_0x4a2b61}=_0x41a420;if(!_0x4a2b61)return;let _0x433834,_0x54a399,_0x2e985b,_0x5818ab;switch(_0x4a2b61['commandName']){case'bulletedList':_0x2e985b=_0x4a2b61['commandParams'][0x0]['forceValue'],_0x5818ab=_0xc92ea1(_0x4a2b61['commandName']),_0x433834=_0x2e985b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5818ab&&_0x5179f0['config']['get']('list.multiBlock')||(_0x433834='*Change\x20to:*\x20%0'),_0x54a399={'type':'format','content':o(_0x56f4b9,_0x433834,o(_0x56f4b9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2e985b=_0x4a2b61['commandParams'][0x0]['forceValue'],_0x5818ab=_0xc92ea1(_0x4a2b61['commandName']),_0x433834=_0x2e985b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5818ab&&_0x5179f0['config']['get']('list.multiBlock')||(_0x433834='*Change\x20to:*\x20%0'),_0x54a399={'type':'format','content':o(_0x56f4b9,_0x433834,o(_0x56f4b9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x433834='*Indent:*\x20%0',_0x54a399={'type':'format','content':o(_0x56f4b9,_0x433834,o(_0x56f4b9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x433834=function(_0x357695){const _0x1b51fc=_0x357695['getFirstRange']();let _0xb107dc=_0x1b51fc['start']['nodeAfter'];for(;_0xb107dc&&_0x1b51fc['containsItem'](_0xb107dc);){if(_0xb107dc['getAttribute']('listIndent')>0x0)return!0x1;_0xb107dc=_0xb107dc['nextSibling'];}return!0x0;}(_0x41a420)?o(_0x56f4b9,'*Format:*\x20remove\x20from\x20%0',o(_0x56f4b9,function(_0x5012f9){return'ELEMENT_'+_0x5012f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x41a420))):o(_0x56f4b9,'*Outdent:*\x20%0',o(_0x56f4b9,'ELEMENT_LIST_ITEM')),_0x54a399={'type':'format','content':_0x433834};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a2b61['multipleBlocks']&&(_0x433834='*Merge:*\x20%0',_0x54a399={'type':'deletion','content':o(_0x56f4b9,_0x433834,o(_0x56f4b9,'ELEMENT_LIST_ITEM'))});}return _0x54a399;});}}function le(_0x4128f4){let _0x57d474=_0x4128f4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x57d474;){const _0x577f74=_0x57d474['getAttribute']('listItemId');if(!_0x577f74)return!0x1;if(_0x577f74==_0x4128f4['data']['newValue'])return'newValue';if(_0x577f74==_0x4128f4['data']['oldValue'])return'oldValue';_0x57d474=_0x57d474['previousSibling'];}return!0x1;}class ue extends _0x1fbed8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x35267e=this['editor']['config']['get']('list.properties'),_0x27712b=this['editor']['plugins']['get']('TrackChangesEditing');_0x35267e['styles']&&(_0x27712b['enableDefaultAttributesIntegration']('listStyle'),_0x27712b['registerBlockAttribute']('listStyle')),_0x35267e['reversed']&&(_0x27712b['enableDefaultAttributesIntegration']('listReversed'),_0x27712b['registerBlockAttribute']('listReversed')),_0x35267e['startIndex']&&(_0x27712b['enableDefaultAttributesIntegration']('listStart'),_0x27712b['registerBlockAttribute']('listStart'));const _0x35a188={'type':'format','content':''};_0x27712b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xa8cbb1=this['editor']['locale'];_0x27712b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xa8cbb1,'FORMAT_LIST_REVERSED')),_0x27712b['descriptionFactory']['registerDescriptionCallback'](_0x135896=>{const {data:_0x4fe6d2}=_0x135896;if(_0x4fe6d2&&'listReversed'==_0x4fe6d2['key'])return null==_0x4fe6d2['newValue']||0x0==_0x4fe6d2['newValue']&&null==_0x4fe6d2['oldValue']?_0x35a188:void 0x0;}),_0x27712b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xa8cbb1,'FORMAT_LIST_START')),_0x27712b['descriptionFactory']['registerDescriptionCallback'](_0x28ae47=>{const {data:_0x2ac683}=_0x28ae47;if(_0x2ac683&&'listStart'==_0x2ac683['key'])return null==_0x2ac683['newValue']||0x1==_0x2ac683['newValue']&&null==_0x2ac683['oldValue']?_0x35a188:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x259b41=>{if(_0x259b41['batch']['isUndo'])return!0x1;let _0x3c6036=!0x1;const _0x53252c=_0x27712b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d2c67=>{const _0x2929f4=_0x27712b['_getAttributeKey'](_0x1d2c67);return'listStart'==_0x2929f4||'listReversed'==_0x2929f4;});for(const _0x166c92 of _0x53252c){const _0x221c76=_0x166c92['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x221c76||'customNumbered'==_0x221c76)continue;_0x27712b['_findSuggestions'](_0x166c92['getFirstRange'](),'attribute')['find'](_0x4c0fb1=>'listType'==_0x27712b['_getAttributeKey'](_0x4c0fb1['suggestion']))||(_0x259b41['removeMarker'](_0x166c92['getFirstMarker']()),_0x3c6036=!0x0);}return _0x3c6036;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1c7605){const _0x5cfe7d=this['editor']['locale'],{data:_0x4e96ba}=_0x1c7605,_0x1f92bf={'type':'format','content':''};if(!_0x4e96ba||'listStyle'!=_0x4e96ba['key'])return;if(!_0x4e96ba['oldValue'])return'default'==_0x4e96ba['newValue']?_0x1f92bf:{'type':'format','content':''+o(_0x5cfe7d,'*Set\x20format:*\x20%0',o(_0x5cfe7d,this['_getTranslationKeyForListStyle'](_0x4e96ba['newValue'])))};if(!_0x4e96ba['newValue']){if('default'==_0x4e96ba['oldValue'])return _0x1f92bf;let _0x176bf6=_0x1c7605['head'];for(;_0x176bf6;){if(_0x176bf6['data']&&'listType'==_0x176bf6['data']['key']&&_0x176bf6['data']['newValue'])return _0x1f92bf;_0x176bf6=_0x176bf6['next'];}return{'type':'format','content':''+o(_0x5cfe7d,'*Remove\x20format:*\x20%0',o(_0x5cfe7d,this['_getTranslationKeyForListStyle'](_0x4e96ba['oldValue'])))};}if('default'!=_0x4e96ba['newValue'])return{'type':'format','content':''+o(_0x5cfe7d,'*Set\x20format:*\x20%0',o(_0x5cfe7d,this['_getTranslationKeyForListStyle'](_0x4e96ba['newValue'])))};let _0x4535aa=_0x1c7605['head'];for(;_0x4535aa;){if(_0x4535aa['data']&&'listType'==_0x4535aa['data']['key']&&_0x4535aa['data']['newValue']&&_0x4535aa['data']['oldValue'])return _0x1f92bf;_0x4535aa=_0x4535aa['next'];}return{'type':'format','content':o(_0x5cfe7d,'*Set\x20format:*\x20%0',o(_0x5cfe7d,'ELEMENT_'+_0x1c7605['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x51c836=this['editor'],_0x58072e=_0x51c836['locale'];_0x51c836['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a6145=>{if('formatBlock'!=_0x1a6145['type'])return;const {data:_0x1c3af4}=_0x1a6145;if(!_0x1c3af4)return;let _0x158411,_0x2863be;switch(_0x1c3af4['commandName']){case'listStyle':_0x158411='*Change\x20to:*\x20%0',_0x2863be={'type':'format','content':o(_0x58072e,_0x158411,o(_0x58072e,this['_getTranslationKeyForListStyle'](_0x1c3af4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x158411=_0x1c3af4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2863be={'type':'format','content':o(_0x58072e,_0x158411)};break;case'listStart':_0x158411='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2863be={'type':'format','content':o(_0x58072e,_0x158411,_0x1c3af4['commandParams'][0x0]['startIndex'])};}return _0x2863be;});}['_getTranslationKeyForListStyle'](_0x3087e1){return'ELEMENT_'+function(_0x20c50b){if(pe['includes'](_0x20c50b))return'bulleted';if(ye['includes'](_0x20c50b))return'numbered';return null;}(_0x3087e1)['toUpperCase']()+'_LIST_'+_0x3087e1['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1fbed8{static get['requires'](){return[_0x3b480f];}['init'](){const _0x4179ee=this['editor'],_0x5d1e44=_0x4179ee['plugins']['get']('TrackChangesEditing'),_0x17fe1d=_0x4179ee['commands']['get']('enter');_0x5d1e44['enableCommand']('enter',()=>{_0x4179ee['model']['change'](_0xd13e46=>{const _0x2de077=_0x4179ee['model']['document']['selection'],_0x59a9d0=_0x2de077['getFirstPosition'](),_0x5b4d78=_0x47172d['fromRange'](_0x2de077['getFirstRange']());if(_0x17fe1d['enterBlock'](_0xd13e46)){const _0x42daca=_0x4179ee['model']['createPositionAt'](_0x59a9d0['parent']['nextSibling'],0x0),_0x3c5796=_0xd13e46['createRange'](_0x59a9d0,_0x42daca);_0x5d1e44['markInsertion'](_0x3c5796);}else _0xd13e46['setSelection'](_0xd13e46['createRange'](_0x5b4d78['end']));_0x5b4d78['detach'](),_0x17fe1d['fire']('afterExecute',{'writer':_0xd13e46});});}),_0x4179ee['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4179ee,'split'),{'priority':'high'}),_0x4179ee['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x464177,_0x402e6c,_0x1781b6)=>{const _0x153d06=_0x1781b6['mapper']['markerNameToElements'](_0x402e6c['markerName']);if(_0x153d06){for(const _0x19caaa of _0x153d06)_0x19caaa['hasClass']('ck-suggestion-marker-split')&&(_0x1781b6['mapper']['unbindElementFromMarkerName'](_0x19caaa,_0x402e6c['markerName']),_0x1781b6['writer']['remove'](_0x19caaa));}},{'priority':'high'}),_0x4179ee['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4995fc,_0x18c076,_0x2a2478)=>{_0x2a2478['options']['showSuggestionHighlights']&&_e(_0x4179ee,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4995fc,_0x18c076,_0x2a2478);},{'priority':'high'});}}class J extends _0x1fbed8{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5a78b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a78b1['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5a78b1['enableCommand']('findNext'),_0x5a78b1['enableCommand']('findPrevious'),_0x5a78b1['enableCommand']('replace'),_0x5a78b1['enableCommand']('replaceAll');}['handleFindCommand'](_0x4935dc,_0x5b5035,_0x221be7={}){const _0x6f5893=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4935dc(_0x5826f3=>('string'==typeof _0x5b5035?_0x6f5893['findByTextCallback'](_0x5b5035,_0x221be7):_0x5b5035)(_0x5826f3)['filter'](_0x2573c0=>!0x1===this['_isInDeletionRange'](_0x2573c0,_0x5826f3['item'])),_0x221be7);}['_isInDeletionRange'](_0x5279c0,_0x4734d0){const _0x335ce1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4734d0,_0x5279c0['start']),this['editor']['model']['createPositionAt'](_0x4734d0,_0x5279c0['end']));for(const _0x446d0a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x335ce1['getIntersection'](_0x446d0a['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 _0x1fbed8{['afterInit'](){const _0x387c09=this['editor']['locale'],_0x112209=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xc5c5e8,commandName:_0x8d6c8a}of ro)this['editor']['plugins']['has'](_0xc5c5e8)&&(_0x112209['enableDefaultAttributesIntegration'](_0x8d6c8a),_0x112209['registerInlineAttribute'](_0x8d6c8a));_0x387c09['t'],_0x112209['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x387c09,'FORMAT_FONT_SIZE')),_0x112209['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x387c09,'FORMAT_FONT_FAMILY')),_0x112209['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x387c09,'FORMAT_FONT_COLOR')),_0x112209['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x387c09,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bb95a=this['editor'],_0x5bdaf0=_0x5bb95a['locale'];_0x5bb95a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f289e=>{const _0x1deec9=_0x5bdaf0['t'];if('formatInline'!=_0x2f289e['type'])return;const {data:_0x8bb560}=_0x2f289e;if(null!=_0x8bb560){if('fontSize'==_0x8bb560['commandName']){const _0x52aaf2=_0x8bb560['commandParams'][0x0]['value'];if(_0x52aaf2){const _0x329020=_0x1deec9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x145d08=>_0x145d08['model']==_0x52aaf2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5bdaf0,'*Set\x20font\x20size:*\x20%0',_0x329020)};}return{'type':'format','content':o(_0x5bdaf0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8bb560['commandName']){const _0xbfa23a=_0x8bb560['commandParams'][0x0]['value'];return _0xbfa23a?{'type':'format','content':o(_0x5bdaf0,'*Set\x20font\x20family:*\x20%0',_0xbfa23a)}:{'type':'format','content':o(_0x5bdaf0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8bb560['commandName']){const _0x50f29a=_0x8bb560['commandParams'][0x0]['value'];if(_0x50f29a){const _0x3e8e54=_0xca245e(this['editor']['config']['get']('fontColor.colors'))['find'](_0xbc58eb=>_0xbc58eb['model']==_0x50f29a);let _0x5bafe0=_0x50f29a,_0x5ed9c6='';return _0x3e8e54&&(_0x5bafe0=_0x3e8e54['label'],_0x5ed9c6=_0x1deec9(_0x5bafe0)['toLowerCase']()),{'type':'format','content':o(_0x5bdaf0,'*Set\x20font\x20color:*\x20%0',_0x5ed9c6)['trim'](),'color':{'value':_0x50f29a,'title':_0x5ed9c6||_0x5bafe0}};}return{'type':'format','content':o(_0x5bdaf0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8bb560['commandName']){const _0x5aac32=_0x8bb560['commandParams'][0x0]['value'];if(_0x5aac32){const _0x340c12=_0xca245e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3865f7=>_0x3865f7['model']==_0x5aac32);let _0x3e99a0=_0x5aac32,_0x265e22='';return _0x340c12&&(_0x3e99a0=_0x340c12['label'],_0x265e22=_0x1deec9(_0x3e99a0)['toLowerCase']()),{'type':'format','content':o(_0x5bdaf0,'*Set\x20font\x20background\x20color:*\x20%0',_0x265e22)['trim'](),'color':{'value':_0x5aac32,'title':_0x265e22||_0x3e99a0}};}return{'type':'format','content':o(_0x5bdaf0,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1fbed8{['afterInit'](){const _0x59a7a0=this['editor'],_0x4148c5=_0x59a7a0['plugins']['get']('TrackChangesEditing'),_0x905378=_0x59a7a0['commands']['get']('copyFormat'),_0x1685a9=_0x59a7a0['commands']['get']('pasteFormat');_0x905378&&_0x1685a9&&(_0x4148c5['enableDefaultAttributesIntegration']('pasteFormat'),_0x4148c5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2f8607=this['editor'],_0x4081af=_0x2f8607['locale'];_0x2f8607['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20a08a=>{if('formatBlock'!=_0x20a08a['type']&&'formatInline'!=_0x20a08a['type'])return;const {data:_0x540d87}=_0x20a08a;if(_0x540d87&&'pasteFormat'===_0x540d87['commandName']){const _0x22369a=[],_0x2018c4=_0x540d87['commandParams'][0x0];for(const [_0x4f8936,_0x1630ee]of Object['entries'](_0x2018c4))_0x22369a['push'](so(_0x2f8607,_0x4f8936,_0x1630ee));return _0x22369a['length']?{'type':'format','content':o(_0x4081af,'*Set\x20format\x20to:*\x20%0',_0x22369a['join'](',\x20'))}:{'type':'format','content':o(_0x4081af,'*Remove\x20all\x20formatting*')};}});}}function so(_0x376a73,_0x4cea9b,_0x295950){const _0x1738d9=_0x376a73['locale']['t'],_0x390479=_0x4cea9b['split'](/(?=[A-Z])/)['join']('\x20'),_0x3d0832=_0x1738d9(_0x390479['charAt'](0x0)['toUpperCase']()+_0x390479['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x295950)return _0x3d0832;if('fontColor'===_0x4cea9b||'fontBackgroundColor'===_0x4cea9b){const _0x43cf71=_0xca245e(_0x376a73['config']['get']('fontColor.colors'))['find'](_0x1604bf=>_0x1604bf['model']==_0x295950);return _0x3d0832+'\x20('+(_0x43cf71?_0x1738d9(_0x43cf71['label'])['toLowerCase']():_0x295950)+')';}if('fontSize'===_0x4cea9b&&isNaN(parseFloat(_0x295950))){const _0x14707f=_0x376a73['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x376a73['config']['get']('fontSize.options'))['find'](_0x58eace=>_0x58eace['model']==_0x295950);return _0x3d0832+'\x20('+(_0x14707f?_0x1738d9(_0x14707f['title'])['toLowerCase']():_0x295950)+')';}return _0x3d0832+'\x20('+_0x295950+')';}class Y extends _0x1fbed8{['_headingOptions'];['afterInit'](){const _0x584d75=this['editor'];if(!_0x584d75['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x584d75['config']['get']('heading.options');const _0x25703d=_0x584d75['locale'],_0x52abfa=_0x584d75['plugins']['get']('TrackChangesEditing');_0x52abfa['enableDefaultAttributesIntegration']('heading');for(const _0x38187b of this['_headingOptions'])'paragraph'!=_0x38187b['model']&&_0x52abfa['descriptionFactory']['registerElementLabel'](_0x38187b['model'],_0x24fb72=>{const _0x524770=this['_getHeadingLevel'](_0x38187b['model']);return null!==_0x524770?_0x2d9d3e(_0x24fb72,_0x524770):_0x4771dc(_0x24fb72,_0x38187b['title']);});function _0x2d9d3e(_0x44c6c0,_0x74aeab){return o(_0x25703d,'ELEMENT_HEADING',[_0x44c6c0,_0x74aeab]);}function _0x4771dc(_0x2b7a0d,_0xb85c1f){return o(_0x25703d,'ELEMENT_HEADING_CUSTOM',[_0x2b7a0d,_0xb85c1f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x296527=this['editor'],_0x488c6f=_0x296527['locale'];function _0xc2d014(_0x2f4be8,_0x15017f){return o(_0x488c6f,'ELEMENT_HEADING_CUSTOM',[_0x2f4be8,_0x15017f]);}_0x296527['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36b21e=>{if('formatBlock'!=_0x36b21e['type'])return;const {data:_0x3d4b22}=_0x36b21e;if(_0x3d4b22&&'heading'==_0x3d4b22['commandName']){const _0x5b19bd=_0x3d4b22['commandParams'][0x0]['value'],_0x56198b=this['_getHeadingLevel'](_0x5b19bd);if(null!==_0x56198b)return{'type':'format','content':o(_0x488c6f,'*Change\x20to:*\x20%0',(_0x27637c=0x1,_0x8d43c=_0x56198b,o(_0x488c6f,'ELEMENT_HEADING',[_0x27637c,_0x8d43c])))};const _0x2032c3=this['_headingOptions']['find'](_0x2c4768=>_0x2c4768['model']===_0x5b19bd)['title'];return{'type':'format','content':o(_0x488c6f,'*Change\x20to:*\x20%0',_0xc2d014(0x1,_0x2032c3))};}var _0x27637c,_0x8d43c;});}['_getHeadingLevel'](_0x1e377f){const _0x2de6b7=_0x1e377f['match'](/^heading(\d+)/);if(_0x2de6b7)return _0x2de6b7[0x1];const _0xb8bd1b=this['_headingOptions']?.['find'](_0x2b1385=>_0x2b1385['model']==_0x1e377f);if(_0xb8bd1b&&_0xb8bd1b['view']){const _0x9ee015=_0xb8bd1b['view'],_0x5d29bc=(_0x9ee015['name']??_0x9ee015)['match'](/^h(\d+)/);if(_0x5d29bc)return _0x5d29bc[0x1];}return null;}}class Z extends _0x1fbed8{['afterInit'](){const _0x21f97f=this['editor'];if(!_0x21f97f['plugins']['has']('HighlightEditing'))return;const _0x1c1748=_0x21f97f['plugins']['get']('TrackChangesEditing'),_0x108e45=_0x21f97f['locale'];_0x1c1748['enableDefaultAttributesIntegration']('highlight'),_0x1c1748['registerInlineAttribute']('highlight'),_0x1c1748['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x108e45,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fd366=this['editor'],_0x3ff8c4=_0x3fd366['locale'];_0x3fd366['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ebce6=>{if('formatInline'!=_0x4ebce6['type'])return;const {data:_0x3ee3bc}=_0x4ebce6;if(_0x3ee3bc&&'highlight'==_0x3ee3bc['commandName']){const _0x563fad=_0x3ff8c4['t'],_0x3cb6e0=_0x3ee3bc['commandParams'][0x0]['value'];if(_0x3cb6e0){const _0x2fdc12=_0x3fd366['config']['get']('highlight.options')['find'](_0x675d18=>_0x675d18['model']==_0x3cb6e0),_0x2f9f4a=_0x563fad(_0x2fdc12['title'])['toLowerCase']();return{'type':'format','content':o(_0x3ff8c4,'*Set\x20highlight:*\x20%0',_0x2f9f4a),'color':{'value':_0x2fdc12['color'],'title':_0x2fdc12['title']}};}return{'type':'format','content':o(_0x3ff8c4,'*Remove\x20highlight*',o(_0x3ff8c4,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1fbed8{['afterInit'](){const _0x115a34=this['editor'];if(!_0x115a34['plugins']['has']('HorizontalLineEditing'))return;_0x115a34['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x36288a=_0x115a34['plugins']['get']('TrackChangesEditing'),_0x556124=_0x115a34['locale'];_0x36288a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x25d41d=>o(_0x556124,'ELEMENT_HORIZONTAL_LINE',_0x25d41d)),_0x115a34['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2808ab,{writer:_0x88bd7e,options:_0xcac5eb})=>{if(!_0xcac5eb['showSuggestionHighlights'])return null;const _0x2e0267=_0x88bd7e['createContainerElement']('div'),_0x79ce53=_0x88bd7e['createEmptyElement']('hr');return _0x88bd7e['addClass']('ck-horizontal-line',_0x2e0267),_0x88bd7e['insert'](_0x88bd7e['createPositionAt'](_0x2e0267,0x0),_0x79ce53),_0x2e0267;},'converterPriority':'high'});}}class et extends _0x1fbed8{['afterInit'](){const _0x29d3f6=this['editor'];if(!_0x29d3f6['plugins']['has']('HtmlEmbed'))return;const _0x4ee072=_0x29d3f6['plugins']['get']('TrackChangesEditing'),_0x1a6ac0=_0x29d3f6['locale'];_0x4ee072['descriptionFactory']['registerElementLabel']('rawHtml',_0x28a9c3=>o(_0x1a6ac0,'ELEMENT_HTML_EMBED',_0x28a9c3)),_0x4ee072['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4ee072['registerBlockAttribute']('value'),_0x4ee072['descriptionFactory']['registerDescriptionCallback'](_0x47a774=>{if('attribute'!=_0x47a774['type'])return;const {data:_0x1b66e6}=_0x47a774;if(_0x1b66e6&&'value'==_0x1b66e6['key']&&_0x47a774['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3740af=o(_0x1a6ac0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1a6ac0,'*Change\x20%0\x20content*',_0x3740af)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29f519=this['editor'],_0x1164da=_0x29f519['locale'];_0x29f519['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x126348=>{if('formatBlock'!=_0x126348['type'])return;const {data:_0x20a2bb}=_0x126348;if(_0x20a2bb&&'htmlEmbed'==_0x20a2bb['commandName']){const _0x4c5c4d=o(_0x1164da,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1164da,'*Change\x20%0\x20content*',_0x4c5c4d)};}});}}class it extends _0x1fbed8{['afterInit'](){const _0x21464e=this['editor'];if(!_0x21464e['plugins']['has']('ImageEditing'))return;const _0x3d1340=_0x21464e['plugins']['get']('TrackChangesEditing'),_0x2370c4=_0x21464e['plugins']['get']('ImageUtils'),_0x3595ba=_0x21464e['locale'];_0x3d1340['enableCommand']('insertImage'),_0x3d1340['descriptionFactory']['registerElementLabel']('imageBlock',_0x4c4f37=>o(_0x3595ba,'ELEMENT_IMAGE',_0x4c4f37)),_0x3d1340['descriptionFactory']['registerElementLabel']('imageInline',_0x5abf46=>o(_0x3595ba,'ELEMENT_INLINE_IMAGE',_0x5abf46)),_0x3d1340['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3595ba,'ELEMENT_CAPTION')),_0x21464e['plugins']['has']('ImageUploadEditing')&&_0x3d1340['enableCommand']('uploadImage'),_0x21464e['plugins']['has']('ImageBlockEditing')&&_0x21464e['plugins']['has']('ImageInlineEditing')&&(_0x3d1340['enableCommand']('imageTypeInline',(_0x5e810d,_0x58309b)=>{const _0x3e1a1f=_0x2370c4['getClosestSelectedImageElement'](_0x21464e['model']['document']['selection']);_0x21464e['model']['change'](()=>{_0x3d1340['markBlockFormat'](_0x3e1a1f,{'commandName':'imageTypeInline','commandParams':[_0x58309b]},[],'convertBlockImageToInline');});}),_0x3d1340['enableCommand']('imageTypeBlock',(_0x42b221,_0xad8d1)=>{_0x21464e['model']['change'](_0x165947=>{let _0x50412c=_0x2370c4['getClosestSelectedImageElement'](_0x21464e['model']['document']['selection']),_0x5b0447=_0x165947['createRangeOn'](_0x50412c);const _0x512983=_0x50c555['fromPosition'](_0x5b0447['start'],'toPrevious'),_0x4d643a=_0x50c555['fromPosition'](_0x5b0447['end'],'toNext');_0x3d1340['forceDefaultExecution'](()=>_0x42b221(_0xad8d1)),_0x50412c=_0x2370c4['getClosestSelectedImageElement'](_0x21464e['model']['document']['selection']),_0x5b0447=_0x165947['createRangeOn'](_0x50412c);const _0x357e19=_0x165947['createRange'](_0x512983,_0x4d643a);_0x512983['detach'](),_0x4d643a['detach'](),_0x3d1340['markBlockFormat'](_0x50412c,{'commandName':'imageTypeInline','commandParams':[_0xad8d1]},[],'convertInlineImageToBlock'),_0x357e19['start']['isBefore'](_0x5b0447['start'])&&_0x3d1340['markInsertion'](_0x165947['createRange'](_0x357e19['start'],_0x5b0447['start']),'convertInlineImageToBlock'),_0x5b0447['end']['isBefore'](_0x357e19['end'])&&_0x3d1340['markInsertion'](_0x165947['createRange'](_0x5b0447['end'],_0x357e19['end']),'convertInlineImageToBlock');});}),_0x3d1340['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3d1340['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3d1340['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3d1340['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3d1340['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3d1340['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5da317])=>{const _0x518311=_0x3d1340['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3d9acc=_0x5da317['start'],_0x152c91=_0x5da317['end'];const _0x5abcad=_0x21464e['model']['schema']['getNearestSelectionRange'](_0x3d9acc,'backward'),_0x111e2e=_0x21464e['model']['schema']['getNearestSelectionRange'](_0x152c91,'forward');_0x5abcad['isCollapsed']&&(_0x3d9acc=_0x5abcad['start']),_0x111e2e['isCollapsed']&&(_0x152c91=_0x111e2e['end']),_0x518311([_0x21464e['model']['createRange'](_0x3d9acc,_0x152c91)]);}),_0x3d1340['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x153a05),_0x3d1340['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x153a05)),_0x21464e['plugins']['has']('ImageCaptionEditing')&&(_0x3d1340['enableCommand']('toggleImageCaption',(_0x27f490,_0x381bf2)=>{const _0x408216=_0x21464e['plugins']['get']('ImageCaptionUtils');let _0x1bbeed=_0x2370c4['getClosestSelectedImageElement'](_0x21464e['model']['document']['selection']),_0x261631=_0x408216['getCaptionFromImageModelElement'](_0x1bbeed);_0x21464e['model']['change'](()=>{if(_0x261631)return void _0x3d1340['markDeletion'](_0x21464e['model']['createRangeOn'](_0x261631));const _0x289a58=_0x2370c4['isBlockImage'](_0x1bbeed);_0x27f490(_0x381bf2),_0x1bbeed=_0x2370c4['getClosestSelectedImageElement'](_0x21464e['model']['document']['selection']),_0x261631=_0x408216['getCaptionFromImageModelElement'](_0x1bbeed),_0x3d1340['markInsertion'](_0x21464e['model']['createRangeOn'](_0x261631),_0x289a58?null:'imageCaption');});}),_0x3d1340['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x153a05));const _0x15d99a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4777c9(_0x265588,_0x322d5a){const _0x8e40f8=_0x15d99a['findIndex'](({type:_0x39dc39,subType:_0x2fa035})=>_0x265588['type']==_0x39dc39&&_0x265588['subType']==_0x2fa035),_0x1d1645=_0x15d99a['findIndex'](({type:_0xcba187,subType:_0xcc45e3})=>_0x322d5a['type']==_0xcba187&&_0x322d5a['subType']==_0xcc45e3);if(_0x8e40f8<0x0||_0x1d1645<0x0)return!0x1;const _0xd8b6f=_0x265588['getFirstRange'](),_0x9262b6=_0x322d5a['getFirstRange']();if((0x0==_0x8e40f8||0x1==_0x8e40f8)&&0x2==_0x1d1645&&_0xd8b6f['isIntersecting'](_0x9262b6))return!0x0;if(0x2==_0x8e40f8&&0x3==_0x1d1645){const _0x458724=_0x3d1340['_findSuggestions'](_0xd8b6f,'insertion')['filter'](({suggestion:_0x59af9e,meta:_0x2bb95a})=>_0x2bb95a['isOwn']&&'convertInlineImageToBlock'==_0x59af9e['subType']);if(_0x458724['length']>0x1&&_0x9262b6['end']['isEqual'](_0xd8b6f['start']))return!0x0;if(0x1==_0x458724['length']&&(_0xd8b6f['start']['isEqual'](_0x9262b6['end'])||_0xd8b6f['end']['isEqual'](_0x9262b6['start'])))return!0x0;}if(0x3==_0x8e40f8&&0x3==_0x1d1645&&_0xd8b6f['start']['isBefore'](_0x9262b6['start'])){const _0x3e58ce=_0xd8b6f['end']['nodeAfter'],_0x34c4c8=_0x9262b6['start']['nodeBefore'];return _0x2370c4['isBlockImage'](_0x3e58ce)&&_0x3e58ce===_0x34c4c8;}return!0x1;}function _0x153a05(_0x5cabfc,_0x35d304){return _0x4777c9(_0x5cabfc,_0x35d304)?[_0x5cabfc,_0x35d304]:_0x4777c9(_0x35d304,_0x5cabfc)?[_0x35d304,_0x5cabfc]:null;}_0x21464e['plugins']['has']('ImageResize')&&(_0x3d1340['enableDefaultAttributesIntegration']('resizeImage'),_0x3d1340['registerBlockAttribute']('resizedWidth'),_0x3d1340['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3595ba,'FORMAT_IMAGE_SIZE'))),_0x21464e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3d1340['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3d1340['registerBlockAttribute']('alt')),_0x3d1340['descriptionFactory']['registerDescriptionCallback'](_0x4b6a5a=>{if(!!_0x15d99a['find'](({type:_0x2d386e,subType:_0x3b056e})=>_0x4b6a5a['type']==_0x2d386e&&_0x4b6a5a['subType']==_0x3b056e))return _0x4b6a5a['previous']?{}:void 0x0;}),_0x3d1340['descriptionFactory']['registerDescriptionCallback'](_0x254ae1=>{if('insertion'==_0x254ae1['type']||'deletion'==_0x254ae1['type']){const _0x2d859b=_0x254ae1['getContainedElement']();if(_0x2d859b&&_0x2d859b['is']('element','caption'))return{'type':'insertion'==_0x254ae1['type']?'addObject':'removeObject','element':_0x2d859b,'quantity':0x1};}}),_0x3d1340['descriptionFactory']['registerDescriptionCallback'](_0x298084=>'formatBlock'==_0x298084['type']&&'convertInlineImageToBlock'==_0x298084['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x298084['type']&&'convertBlockImageToInline'==_0x298084['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3d1340['descriptionFactory']['registerDescriptionCallback'](_0x4bdd0b=>{if('attribute'!=_0x4bdd0b['type'])return;const {data:_0x2da3c5}=_0x4bdd0b;if(!_0x2da3c5||'alt'!=_0x2da3c5['key'])return;const _0x30ea9e=_0x2da3c5['newValue'];return _0x30ea9e?{'type':'format','content':o(_0x3595ba,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30ea9e+'\x22')}:{'type':'format','content':o(_0x3595ba,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x137077=this['editor'],_0x4fda2c=_0x137077['locale'];_0x137077['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x477e4a=>{if('formatBlock'!=_0x477e4a['type']&&'formatInline'!=_0x477e4a['type'])return;const {data:_0x5b0b44}=_0x477e4a;if(_0x5b0b44){if('imageTextAlternative'==_0x5b0b44['commandName']){const _0x3965da=_0x5b0b44['commandParams'][0x0]['newValue'];return _0x3965da?{'type':'format','content':o(_0x4fda2c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3965da+'\x22')}:{'type':'format','content':o(_0x4fda2c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5b0b44['commandName']){const _0x3b8db7=_0x5b0b44['commandParams'][0x0]['width'];return _0x3b8db7?{'type':'format','content':o(_0x4fda2c,'*Set\x20image\x20width:*\x20%0',_0x3b8db7)}:{'type':'format','content':o(_0x4fda2c,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1fbed8{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4aab80=this['editor']['locale'],_0x3ec9c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ec9c5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3ec9c5['registerBlockAttribute']('src'),_0x3ec9c5['descriptionFactory']['registerDescriptionCallback'](_0x1cd770=>{if('attribute'!=_0x1cd770['type'])return;const {data:_0x42e0ae}=_0x1cd770;return _0x42e0ae&&'src'==_0x42e0ae['key']?_0x42e0ae['newValue']&&_0x42e0ae['oldValue']?{'type':'format','content':o(_0x4aab80,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1884b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x1884b1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1884b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1884b1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1884b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x343607=this['editor'],_0x3df7c6=_0x343607['locale'];_0x343607['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10dd07=>{if('formatBlock'!=_0x10dd07['type']&&'formatInline'!=_0x10dd07['type'])return;const {data:_0x51006}=_0x10dd07;if(!_0x51006||'replaceImageSource'!=_0x51006['commandName'])return;return{'type':'format','content':o(_0x3df7c6,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1fbed8{['afterInit'](){const _0x599416=this['editor'];if(!_0x599416['plugins']['has']('ImageStyleEditing'))return;const _0x3f63cb=_0x599416['plugins']['get']('TrackChangesEditing'),_0x20d022=_0x599416['plugins']['get']('ImageUtils'),_0x5bd866={};_0x3f63cb['enableCommand']('imageStyle',(_0x4c6538,_0x1d615a)=>{const _0x4fa596=_0x599416['plugins']['get']('Users')['me'],_0x47acdf=_0x599416['commands']['get']('imageStyle');let _0x2165a8=_0x20d022['getClosestSelectedImageElement'](_0x599416['model']['document']['selection']),_0x4c6daf=_0x599416['model']['createRangeOn'](_0x2165a8),_0x598b32=_0x47acdf['value'];if(_0x598b32==_0x1d615a['value'])return;const _0xe818a1={'commandName':'imageStyle','commandParams':[_0x1d615a],'formatGroupId':_0x267db8()};_0x599416['model']['change'](()=>{if(_0x3f63cb['getSuggestions']()['filter'](_0xf74936=>_0xf74936['isInContent']&&_0x4fa596==_0xf74936['author']&&('formatBlock'==_0xf74936['type']||'formatInline'==_0xf74936['type'])&&('imageStylePreApply'==_0xf74936['subType']||'imageStylePostApply'==_0xf74936['subType'])&&_0xf74936['getFirstRange']()['isEqual'](_0x4c6daf))['forEach'](_0x4af81d=>_0x3f63cb['discardSuggestion'](_0x4af81d['head'])),_0x2165a8=_0x20d022['getClosestSelectedImageElement'](_0x599416['model']['document']['selection']),_0x4c6daf=_0x599416['model']['createRangeOn'](_0x2165a8),_0x47acdf['refresh'](),_0x599416['commands']['get']('imageTypeInline')['refresh'](),_0x599416['commands']['get']('imageTypeBlock')['refresh'](),_0x598b32=_0x47acdf['value'],_0x598b32!=_0x1d615a['value'])return _0x20d022['isInlineImage'](_0x2165a8)&&_0x47acdf['shouldConvertImageType'](_0x1d615a['value'],_0x2165a8)?(_0x4c6538({..._0x1d615a,'setImageSizes':!0x1}),_0x2165a8=_0x20d022['getClosestSelectedImageElement'](_0x599416['model']['document']['selection']),void _0x3f63cb['markBlockFormat'](_0x2165a8,{..._0xe818a1,'commandReversedParams':[{'value':_0x598b32||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x20d022['isBlockImage'](_0x2165a8)?_0x3f63cb['markBlockFormat'](_0x2165a8,_0xe818a1,[],'imageStylePostApply'):_0x3f63cb['markInlineFormat'](_0x4c6daf,_0xe818a1,'imageStylePostApply'));});});for(const _0x5a9591 of _0x599416['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5bd866[_0x5a9591['name']]=_0x5a9591['title']['toLowerCase']();_0x3f63cb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3f63cb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3f63cb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3f63cb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x50d5d3])=>{_0x20d022['setImageNaturalSizeAttributes'](_0x50d5d3['getContainedElement']());}),_0x3f63cb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2cf944,_0x24f3e5)=>{_0x3f63cb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2cf944,{'commandName':_0x24f3e5['commandName'],'commandParams':_0x24f3e5['commandReversedParams']});}),_0x3f63cb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x454594,_0x3d90f8){if(_0x508608(_0x454594,_0x3d90f8))return[_0x454594,_0x3d90f8];if(_0x508608(_0x3d90f8,_0x454594))return[_0x3d90f8,_0x454594];return null;});const _0x35e9e0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x508608(_0x1622c4,_0x36993c){const _0x3b40b8=_0x35e9e0['findIndex'](({type:_0x56ef98,subType:_0x5b9660})=>_0x1622c4['type']==_0x56ef98&&_0x1622c4['subType']==_0x5b9660),_0x12153b=_0x35e9e0['findIndex'](({type:_0x2ea98e,subType:_0x1ca949})=>_0x36993c['type']==_0x2ea98e&&_0x36993c['subType']==_0x1ca949);if(_0x3b40b8<0x0||_0x12153b<0x0)return!0x1;const _0x223493=_0x1622c4['getFirstRange'](),_0x5d3613=_0x36993c['getFirstRange']();if((0x0==_0x3b40b8||0x1==_0x3b40b8)&&0x2==_0x12153b&&_0x223493['isIntersecting'](_0x5d3613))return!0x0;if(0x2==_0x3b40b8&&0x3==_0x12153b){const _0x5aef0c=_0x3f63cb['_findSuggestions'](_0x223493,'insertion')['filter'](({suggestion:_0x4e0bb2,meta:_0x488139})=>_0x488139['isOwn']&&'convertInlineImageToBlock'==_0x4e0bb2['subType']);if(_0x5aef0c['length']>0x1&&_0x5d3613['end']['isEqual'](_0x223493['start']))return!0x0;if(0x1==_0x5aef0c['length']&&(_0x223493['start']['isEqual'](_0x5d3613['end'])||_0x223493['end']['isEqual'](_0x5d3613['start'])))return!0x0;}if(0x3==_0x3b40b8&&0x3==_0x12153b&&_0x223493['start']['isBefore'](_0x5d3613['start'])){const _0x43e750=_0x223493['end']['nodeAfter'],_0x4cc7d9=_0x5d3613['start']['nodeBefore'];return _0x20d022['isBlockImage'](_0x43e750)&&_0x43e750===_0x4cc7d9;}return!0x1;}_0x599416['model']['document']['registerPostFixer'](()=>{let _0x2fbdaa=!0x1;const _0x205da4=Array['from'](_0x599416['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48a39b,data:_0x11fe5c}of _0x205da4){const {group:_0x42e2ea,type:_0x5cf7ea,subType:_0x3891c2,id:_0x213572}=_0x3f63cb['_splitMarkerName'](_0x48a39b);if('suggestion'==_0x42e2ea&&_0x3f63cb['hasSuggestion'](_0x213572)){if('formatBlock'==_0x5cf7ea&&('imageStylePreApply'==_0x3891c2||'imageStylePostApply'==_0x3891c2)){const _0x2c658a=_0x3f63cb['getSuggestion'](_0x213572);if(_0x11fe5c['newRange']){const _0x18a1f5=_0x2c658a['getFirstRange']()['getContainedElement']();if(_0x20d022['isBlockImage'](_0x18a1f5))continue;_0x3f63cb['discardSuggestion'](_0x2c658a),_0x2fbdaa=!0x0;}}if('insertion'==_0x5cf7ea&&'imageCaption'==_0x3891c2&&!_0x11fe5c['newRange']){const _0xa2dbb=_0x3f63cb['getSuggestion'](_0x213572);_0xa2dbb['next']&&_0xa2dbb['next']['isInContent']&&(_0x3f63cb['discardSuggestion'](_0xa2dbb['next']),_0x2fbdaa=!0x0);}}}return _0x2fbdaa;}),this['_registerLegacyDescription'](_0x5bd866);}['_registerLegacyDescription'](_0x1982dd){const _0x59238c=this['editor'],_0x2dddc4=_0x59238c['locale'];_0x59238c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e88c7=>{if('formatBlock'!=_0x5e88c7['type']&&'formatInline'!=_0x5e88c7['type'])return;const {data:_0x2676b4}=_0x5e88c7;if(!_0x2676b4||'imageStyle'!=_0x2676b4['commandName'])return;const _0x56fff7=_0x2676b4['commandParams'][0x0]['value'];return _0x56e69d('side'===_0x56fff7?o(_0x2dddc4,'FORMAT_SIDE_IMAGE'):_0x1982dd[_0x56fff7]||_0x56fff7);function _0x56e69d(_0x9cd425){return{'type':'format','content':o(_0x2dddc4,'*Format:*\x20%0',_0x9cd425)};}});}}class ot extends _0x1fbed8{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x370764){super(_0x370764),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x408cb0=this['editor'],_0x3a5d35=_0x408cb0['commands']['get']('importWord'),_0x34ab3c=_0x408cb0['commands']['get']('trackChanges');_0x3a5d35&&(_0x3a5d35['on']('execute',(_0x6556f1,[,_0x684b46])=>{this['_trackChangesValueDuringImport']=_0x34ab3c['value'],_0x684b46['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3a5d35,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3a5d35,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x34ab3c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x408cb0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xa50e8f,_0x273ec1){const {suggestions:_0x515b6f}=_0x273ec1,_0x2946d5=this['editor']['commands']['get']('trackChanges'),_0x2d544f=_0x2946d5['value'];this['_trackChangesValueDuringImport']!==_0x2d544f&&(_0x2946d5['execute'](),this['_trackChangesExecuted']=!0x0),_0x515b6f&&_0x515b6f['forEach'](({id:_0x6f6b96,type:_0x48fca5,author:_0x339b2b,created_at:_0x9f2629})=>{const _0x4eec57={'id':_0x6f6b96,'type':_0x48fca5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x339b2b,'createdAt':_0x9f2629?new Date(_0x9f2629):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4eec57);});}}class rt extends _0x1fbed8{['afterInit'](){const _0x473e62=this['editor'],_0x419981=_0x473e62['plugins']['get']('TrackChangesEditing');if(_0x473e62['plugins']['has']('IndentEditing')&&(_0x419981['enableCommand']('indent'),_0x419981['enableCommand']('outdent')),_0x473e62['plugins']['has']('IndentBlock')){for(const _0x5bae1f of['indentBlock','outdentBlock'])_0x419981['enableDefaultAttributesIntegration'](_0x5bae1f);}const _0x17c153=_0x473e62['locale'];_0x419981['registerBlockAttribute']('blockIndent'),_0x419981['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x17c153,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d8d4f=this['editor'],_0x15c4bd=_0x1d8d4f['locale'],_0x29a33b=_0x1d8d4f['plugins']['get']('TrackChangesEditing');_0x29a33b['descriptionFactory']['registerDescriptionCallback'](_0x680b6f=>{if('formatBlock'!=_0x680b6f['type'])return;const {data:_0x2e3e5c}=_0x680b6f;if(!_0x2e3e5c)return;if('indentBlock'!=_0x2e3e5c['commandName']&&'outdentBlock'!=_0x2e3e5c['commandName'])return;const _0x845614=_0x680b6f['getItems']()[0x0],_0x49c673=_0x29a33b['descriptionFactory']['getItemLabel'](_0x845614);return'indentBlock'==_0x2e3e5c['commandName']?{'type':'format','content':o(_0x15c4bd,'*Indent:*\x20%0',_0x49c673)}:'outdentBlock'==_0x2e3e5c['commandName']?{'type':'format','content':o(_0x15c4bd,'*Outdent:*\x20%0',_0x49c673)}:void 0x0;});}}class at extends _0x1fbed8{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1fbed8{['afterInit'](){const _0x249374=this['editor'];if(!_0x249374['plugins']['has']('LinkEditing'))return;const _0xf8e42f=_0x249374['plugins']['get']('TrackChangesEditing'),_0x212ee2=_0x249374['commands']['get']('link');_0xf8e42f['enableDefaultAttributesIntegration']('link'),_0xf8e42f['enableDefaultAttributesIntegration']('unlink'),_0xf8e42f['registerInlineAttribute']('linkHref');for(const _0x3c0861 of _0x212ee2['manualDecorators'])_0xf8e42f['registerInlineAttribute'](_0x3c0861['id']),_0xf8e42f['descriptionFactory']['registerAttributeLabel'](_0x3c0861['id'],'link\x20('+_0x3c0861['label']['toLowerCase']()+')');_0xf8e42f['descriptionFactory']['registerDescriptionCallback'](_0x533bab=>{if('attribute'!=_0x533bab['type'])return;const {data:_0x1a9021}=_0x533bab;if(!_0x1a9021||'linkHref'!=_0x1a9021['key'])return;const _0x1b6cab=_0x1a9021['newValue'],_0x2610d3=_0x249374['locale'];return{'type':'format','content':null==_0x1b6cab?o(_0x2610d3,'*Remove\x20link*'):o(_0x2610d3,'*Set\x20link:*\x20%0','\x22'+_0x1b6cab+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41b89f=this['editor'],_0xbae1c8=_0x41b89f['locale'];_0x41b89f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24bb12=>{if('formatInline'!=_0x24bb12['type'])return;const {data:_0x4c5c8d}=_0x24bb12;if(_0x4c5c8d){if('link'==_0x4c5c8d['commandName']){const _0x4bfb46=_0x4c5c8d['commandParams'][0x0];return{'type':'format','content':o(_0xbae1c8,'*Set\x20link:*\x20%0','\x22'+_0x4bfb46+'\x22')};}return'unlink'==_0x4c5c8d['commandName']?{'type':'format','content':o(_0xbae1c8,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1fbed8{['afterInit'](){const _0x2a00db=this['editor'],_0x3a5aca=_0x2a00db['locale'];if(!_0x2a00db['plugins']['has']('LegacyListEditing'))return;const _0x3a8584=_0x2a00db['plugins']['get']('TrackChangesEditing'),_0xb748f8=_0x2a00db['plugins']['has']('LegacyTodoListEditing');function _0x5845cd(_0x54b5e9){return()=>{const _0x53cb75=_0x2a00db['model']['document']['selection'],_0x446c79=_0x2a00db['commands']['get'](_0x54b5e9);if(_0x446c79['value'])return void _0x2a00db['execute']('paragraph',{});const _0x5c7dbe=_0x54b5e9['slice'](0x0,-0x4),_0x3f4913=function(_0x3f5bb8,_0x4d5bc8,_0x23aec2){let _0x37ba9b=Array['from'](_0x3f5bb8)['filter'](_0x218bce=>function(_0x7fb769,_0x5bbd10){return _0x5bbd10['checkChild'](_0x7fb769['parent'],'listItem')&&!_0x5bbd10['isObject'](_0x7fb769);}(_0x218bce,_0x23aec2));_0x37ba9b=_0x37ba9b['filter'](_0x514da9=>!_0x514da9['is']('element','listItem')||_0x514da9['getAttribute']('listType')!=_0x4d5bc8);const _0x24b290=new Set();for(const _0x3be0aa of _0x37ba9b)_0x3be0aa['is']('element','listItem')?_0x24b290['add'](me(_0x3be0aa)):_0x24b290['add'](_0x3be0aa);return Array['from'](_0x24b290);}(_0x53cb75['getSelectedBlocks'](),_0x5c7dbe,_0x2a00db['model']['schema']);_0x2a00db['model']['change'](()=>{for(const _0xdf47cf of _0x3f4913)_0x3a8584['markBlockFormat'](_0xdf47cf,{'commandName':_0x54b5e9,'commandParams':[{'forceValue':!_0x446c79['value']}],'formatGroupId':'blockName'},fe(_0xdf47cf));});};}function _0x4eece0(_0x3b41e2){return()=>{const _0x44c5b7=function(_0x3c787a){let _0xade006=Array['from'](_0x3c787a);const _0x5432b1=_0xade006['findIndex'](_0x234e1f=>'listItem'!=_0x234e1f['name']);return _0x5432b1>-0x1&&(_0xade006=_0xade006['slice'](0x0,_0x5432b1)),_0xade006;}(_0x2a00db['model']['document']['selection']['getSelectedBlocks']()),_0x2381f1=_0x2a00db['model']['createRange'](_0x2a00db['model']['createPositionAt'](_0x44c5b7[0x0],'before'),_0x2a00db['model']['createPositionAt'](_0x44c5b7[_0x44c5b7['length']-0x1],'end'));_0x2a00db['model']['change'](()=>{_0x3a8584['markBlockFormat'](_0x2381f1,{'commandName':_0x3b41e2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x191210){const _0x321199=new Set();for(const _0x15d00e of _0x191210){let _0x56e585=_0x15d00e['nextSibling'];for(;_0x56e585&&_0x56e585['getAttribute']('listIndent')>_0x15d00e['getAttribute']('listIndent');)_0x321199['add'](_0x56e585),_0x56e585=_0x56e585['nextSibling'];}return Array['from'](_0x321199);}(_0x44c5b7));});};}_0x3a8584['enableCommand']('numberedList',_0x5845cd('numberedList')),_0x3a8584['enableCommand']('bulletedList',_0x5845cd('bulletedList')),_0xb748f8&&_0x3a8584['enableCommand']('todoList',_0x5845cd('todoList')),_0x3a8584['enableCommand']('indentList',_0x4eece0('indentList')),_0x3a8584['enableCommand']('outdentList',_0x4eece0('outdentList')),_0xb748f8&&_0x3a8584['enableCommand']('checkTodoList',()=>{const _0x15376c=_0x2a00db['commands']['get']('checkTodoList'),_0x1de3f7=Array['from'](_0x15376c['_selectedElements']);_0x1de3f7['filter'](_0x53289a=>_0x53289a['getAttribute']('todoListChecked')!=_0x15376c['value']),_0x2a00db['model']['change'](()=>{for(const _0x545d4c of _0x1de3f7)_0x3a8584['markBlockFormat'](_0x545d4c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x15376c['value']}]});});}),_0x3a8584['descriptionFactory']['registerElementLabel']('listItem',_0x54e5f7=>o(_0x3a5aca,'ELEMENT_LIST_ITEM',_0x54e5f7)),_0x3a8584['descriptionFactory']['registerDescriptionCallback'](_0x28c3cd=>{if('formatBlock'!=_0x28c3cd['type']&&'formatInline'!=_0x28c3cd['type'])return;const {data:_0x4505ef}=_0x28c3cd;if(_0x4505ef){if('numberedList'==_0x4505ef['commandName']||'bulletedList'==_0x4505ef['commandName']||'todoList'==_0x4505ef['commandName'])switch(_0x4505ef['commandName']['replace']('List','')){case'bulleted':return _0x5386dd(o(_0x3a5aca,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5386dd(o(_0x3a5aca,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5386dd(o(_0x3a5aca,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4505ef['commandName'])return{'type':'format','content':o(_0x3a5aca,'*Indent:*\x20%0',o(_0x3a5aca,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4505ef['commandName'])return{'type':'format','content':o(_0x3a5aca,'*Outdent:*\x20%0',o(_0x3a5aca,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4505ef['commandName'])return _0x4505ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a5aca,'*Check\x20item*')}:{'type':'format','content':o(_0x3a5aca,'*Uncheck\x20item*')};}function _0x5386dd(_0x2cab66){return{'type':'format','content':o(_0x3a5aca,'*Change\x20to:*\x20%0',_0x2cab66)};}});}}function me(_0x1691dd){const _0x32af92=_0x1691dd['getAttribute']('listIndent');if(0x0==_0x32af92)return _0x1691dd;let _0x5afc0e=_0x1691dd;for(;_0x1691dd['previousSibling']&&_0x1691dd['previousSibling']['is']('element','listItem');){const _0x158510=_0x1691dd['previousSibling']['getAttribute']('listIndent');if(_0x158510==_0x32af92)_0x5afc0e=_0x1691dd['previousSibling'];else{if(_0x158510<_0x32af92)break;}_0x1691dd=_0x1691dd['previousSibling'];}return _0x5afc0e;}function fe(_0x1aca60){const _0x18911c=[];if(_0x1aca60['is']('element','listItem')&&_0x1aca60['getAttribute']('listIndent')>0x0){let _0x354623=_0x1aca60['nextSibling'];for(;_0x354623&&'listItem'==_0x354623['name']&&_0x354623['getAttribute']('listIndent')==_0x1aca60['getAttribute']('listIndent');)_0x18911c['push'](_0x354623),_0x354623=_0x354623['nextSibling'];}return _0x18911c;}class K extends _0x1fbed8{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5cb609=this['editor']['config']['get']('list.properties'),_0x8b4d17=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cb609['styles']&&_0x8b4d17['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5cb609['reversed']&&_0x8b4d17['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5cb609['startIndex']&&_0x8b4d17['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x8b4d17['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2e3802,_0x85831c={}){const _0x3da831=this['editor']['plugins']['get']('TrackChangesEditing'),_0x88074c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3da831['markMultiRangeBlockFormat'](_0x88074c,{'commandName':'listStyle','commandParams':[{'type':_0x85831c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x10241e,_0x5b3305={}){const _0x2a8d8d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x111ceb=this['_getSuggestionBlocks'](_0x42b4d6=>_0x42b4d6['is']('element','listItem')&&'numbered'===_0x42b4d6['getAttribute']('listType'));if(_0x111ceb['length']<0x1)return;const _0x24ed24=_0x111ceb['map'](_0x34a1e9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34a1e9,'before'),this['editor']['model']['createPositionAt'](_0x34a1e9,0x0)));this['editor']['model']['change'](()=>{_0x2a8d8d['markMultiRangeBlockFormat'](_0x24ed24,{'commandName':'listReversed','commandParams':[{'reversed':_0x5b3305['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1b153f,_0x49b00a={}){const _0x6489ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c0a17=this['_getSuggestionBlocks'](_0x1fe930=>_0x1fe930['is']('element','listItem')&&'numbered'===_0x1fe930['getAttribute']('listType'));if(_0x5c0a17['length']<0x1)return;const _0x399f27=_0x5c0a17['map'](_0x5b7fd1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b7fd1,'before'),this['editor']['model']['createPositionAt'](_0x5b7fd1,0x0)));this['editor']['model']['change'](()=>{_0x6489ec['markMultiRangeBlockFormat'](_0x399f27,{'commandName':'listStart','commandParams':[{'startIndex':_0x49b00a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x473717){if('formatBlock'!=_0x473717['type']&&'formatInline'!=_0x473717['type'])return;const _0x3bda9e=this['editor']['locale'],{data:_0x276cbb}=_0x473717;if(!_0x276cbb)return;let _0x1eb25f,_0x3fdbcf;switch(_0x276cbb['commandName']){case'listStyle':_0x1eb25f='*Change\x20to:*\x20%0',_0x3fdbcf={'type':'format','content':o(_0x3bda9e,_0x1eb25f,o(_0x3bda9e,this['_getTranslationKeyForListStyle'](_0x276cbb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1eb25f=_0x276cbb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3fdbcf={'type':'format','content':o(_0x3bda9e,_0x1eb25f)};break;case'listStart':_0x1eb25f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3fdbcf={'type':'format','content':o(_0x3bda9e,_0x1eb25f,_0x276cbb['commandParams'][0x0]['startIndex'])};}return _0x3fdbcf;}['_getSuggestionBlocksForListStyle'](){const _0x4d1017=this['editor']['plugins']['get']('LegacyListUtils');let _0x2a0859=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2a0859[0x0]?.['is']('element','listItem')&&_0x2a0859['unshift'](..._0x4d1017['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2a0859[_0x2a0859['length']-0x1]?.['is']('element','listItem')&&_0x2a0859['push'](..._0x4d1017['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2a0859=[...new Set(_0x2a0859)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2a0859=_0x2a0859['filter'](_0x5cf508=>_0x5cf508['is']('element','listItem'))),_0x2a0859;}['_getSuggestionBlocks'](_0x459f5b){const _0x3dc403=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ea638=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x459f5b)['map'](_0x3a2d1e=>{const _0x31209c=this['editor']['model']['createPositionAt'](_0x3a2d1e,0x0);return[..._0x3dc403['getSiblingNodes'](_0x31209c,'backward'),..._0x3dc403['getSiblingNodes'](_0x31209c,'forward')];})['flat']();return _0x2ea638=[...new Set(_0x2ea638)],_0x2ea638;}['_getTranslationKeyForListStyle'](_0xb41658){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xb41658)||'default')['toUpperCase']()+'_LIST_'+_0xb41658['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1fbed8{['afterInit'](){const _0xb49a3a=this['editor'];if(!_0xb49a3a['plugins']['has']('MediaEmbedEditing'))return;const _0x59f633=_0xb49a3a['plugins']['get']('TrackChangesEditing'),_0x1e5da0=_0xb49a3a['locale'];_0x59f633['enableCommand']('mediaEmbed'),_0x59f633['descriptionFactory']['registerElementLabel']('media',_0x9d8652=>o(_0x1e5da0,'ELEMENT_MEDIA',_0x9d8652)),_0xb49a3a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x25ab05,{writer:_0x3817a0,options:_0x3feb7e})=>{if(_0x3feb7e['showSuggestionHighlights'])return _0x3817a0['createEmptyElement']('div');},'converterPriority':'high'}),_0xb49a3a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x363de2,_0x4a1cb2,_0x49826c)=>{_0x49826c['options']['showSuggestionHighlights']&&_0x363de2['stop']();},{'priority':'high'});}}class gt extends _0x1fbed8{['afterInit'](){const _0x7a109=this['editor'];_0x7a109['plugins']['has']('MentionEditing')&&_0x7a109['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1fbed8{['afterInit'](){const _0x48e526=this['editor'],_0x5e5a62=_0x48e526['plugins']['get']('TrackChangesEditing');_0x48e526['plugins']['has']('MultiLevelList')&&(_0x5e5a62['enableDefaultAttributesIntegration']('multiLevelList'),_0x5e5a62['registerBlockAttribute']('listMarkerStyle'),_0x5e5a62['descriptionFactory']['registerDescriptionCallback'](_0x2f4b26=>this['handleDescriptions'](_0x2f4b26)));}['handleDescriptions'](_0x1d7f1b){const _0x2c2a11=this['editor']['locale'],{data:_0x3c1234}=_0x1d7f1b,_0x2bf7ca={'type':'format','content':''};if(_0x3c1234&&'listMarkerStyle'==_0x3c1234['key']){if(!_0x3c1234['oldValue'])return{'type':'format','content':o(_0x2c2a11,'*Set\x20format:*\x20%0',o(_0x2c2a11,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c1234['newValue']+')'};if(!_0x3c1234['newValue']){let _0x521aec=_0x1d7f1b['head'];for(;_0x521aec;){if(_0x521aec['data']&&'listType'==_0x521aec['data']['key']&&_0x521aec['data']['newValue'])return _0x2bf7ca;_0x521aec=_0x521aec['next'];}return{'type':'format','content':o(_0x2c2a11,'*Remove\x20format:*\x20%0',o(_0x2c2a11,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c1234['oldValue']+')'};}}}}class mt extends _0x1fbed8{['afterInit'](){const _0xe5715f=this['editor'];if(!_0xe5715f['plugins']['has']('PageBreakEditing'))return;_0xe5715f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4c53b2=_0xe5715f['plugins']['get']('TrackChangesEditing'),_0x4158d0=_0xe5715f['locale'];_0x4c53b2['descriptionFactory']['registerElementLabel']('pageBreak',_0x4762a3=>o(_0x4158d0,'ELEMENT_PAGE_BREAK',_0x4762a3));}}class dt extends _0x1fbed8{['afterInit'](){const _0x34cf29=this['editor'];if(!_0x34cf29['plugins']['has']('Paragraph'))return;const _0x317ee5=_0x34cf29['locale'],_0x54eacb=_0x34cf29['plugins']['get']('TrackChangesEditing');_0x54eacb['descriptionFactory']['registerElementLabel']('paragraph',_0x482e11=>o(_0x317ee5,'ELEMENT_PARAGRAPH',_0x482e11)),_0x54eacb['enableDefaultAttributesIntegration']('paragraph'),_0x54eacb['enableCommand']('insertParagraph'),_0x34cf29['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x34cf29),{'priority':'highest'}),_0x34cf29['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ab43d,_0x4c9b66,_0x10114d)=>{_0x10114d['options']['showSuggestionHighlights']&&nr(_0x34cf29,{'showActiveMarker':!0x1})(_0x3ab43d,_0x4c9b66,_0x10114d);},{'priority':'highest'});const _0x25d04d=_0x54eacb['descriptionFactory'];_0x25d04d['registerDescriptionCallback'](_0x18dd8a=>{if('insertion'!==_0x18dd8a['type'])return;const {start:_0xd23071,end:_0x46615f}=_0x18dd8a['getFirstRange']();if(!_0xd23071['isTouching'](_0x46615f)||!_0xd23071['nodeAfter'])return;const _0x1fa6b1=_0x34cf29['model']['schema'],_0x268672=_0xd23071['nodeAfter'];return _0x1fa6b1['isBlock'](_0x268672)&&!_0x1fa6b1['isLimit'](_0x268672)&&_0x1fa6b1['checkChild'](_0x268672,'$text')?{'type':'insertion','content':o(_0x317ee5,'*Insert:*\x20%0',_0x25d04d['getItemLabel'](_0x268672,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3367a4=this['editor'],_0x39ff66=_0x3367a4['locale'];_0x3367a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b3a3=>{if('formatBlock'!=_0x42b3a3['type'])return;const {data:_0x1d2712}=_0x42b3a3;return _0x1d2712&&'paragraph'==_0x1d2712['commandName']?{'type':'format','content':o(_0x39ff66,'*Change\x20to:*\x20%0',o(_0x39ff66,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x278192,{showActiveMarker:_0x1d9753=!0x0}={}){return(_0x5b98b3,_0x2c3cde,_0x48a7cf)=>{const _0x3cba67=_0x278192['plugins']['get']('TrackChangesEditing'),_0x19fa21=_0x2c3cde['markerRange']['start'],_0x45d7c7=_0x2c3cde['markerRange']['end'],_0x4e2fe4=_0x278192['model']['schema'];if(!_0x19fa21['isTouching'](_0x45d7c7)||!_0x19fa21['nodeAfter'])return;const _0x5a99ab=_0x19fa21['nodeAfter'];if(_0x4e2fe4['isBlock'](_0x5a99ab)&&!_0x4e2fe4['isLimit'](_0x5a99ab)&&_0x4e2fe4['checkChild'](_0x5a99ab,'$text')){if(!_0x48a7cf['consumable']['consume'](_0x2c3cde['markerRange'],_0x5b98b3['name']))return;const _0x57166c=_0x48a7cf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x57a190=_0x48a7cf['mapper']['toViewPosition'](_0x45d7c7);_0x1d9753&&_0x3cba67['activeMarkers']['includes'](_0x2c3cde['markerName'])&&_0x48a7cf['writer']['addClass']('ck-suggestion-marker--active',_0x57166c),_0x48a7cf['writer']['insert'](_0x57a190,_0x57166c),_0x48a7cf['mapper']['bindElementToMarker'](_0x57166c,_0x2c3cde['markerName']);}};}class pt extends _0x1fbed8{['afterInit'](){const _0x1e86e4=this['editor'];if(!_0x1e86e4['plugins']['has']('RemoveFormatEditing'))return;_0x1e86e4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43a571=this['editor'];_0x43a571['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ce1f9=>{if('formatBlock'!=_0x1ce1f9['type']&&'formatInline'!=_0x1ce1f9['type'])return;const {data:_0x4d5052}=_0x1ce1f9;return _0x4d5052&&'removeFormat'==_0x4d5052['commandName']?{'type':'format','content':o(_0x43a571['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1fbed8{['afterInit'](){const _0x4689c0=this['editor'];if(!_0x4689c0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3bcce9=_0x4689c0['plugins']['get']('TrackChangesEditing');_0x3bcce9['enableCommand']('goToPreviousRestrictedEditingException'),_0x3bcce9['enableCommand']('goToNextRestrictedEditingException');const _0x4168c4=_0x4689c0['plugins']['get']('RestrictedEditingModeEditing');_0x4168c4['enableCommand']('trackChanges'),_0x4168c4['enableCommand']('acceptSuggestion'),_0x4168c4['enableCommand']('discardSuggestion'),_0x4168c4['enableCommand']('acceptAllSuggestions'),_0x4168c4['enableCommand']('discardAllSuggestions'),_0x4168c4['enableCommand']('acceptSelectedSuggestions'),_0x4168c4['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1fbed8{static get['requires'](){return[_0x23710c];}['init'](){const _0x21480f=this['editor'],_0x36a03e=_0x21480f['plugins']['get']('TrackChangesEditing');_0x36a03e['enableCommand']('shiftEnter'),_0x21480f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x21480f),{'priority':'high'}),_0x21480f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x21480f),{'priority':'high'}),_0x21480f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2630d7,_0x144544,_0x5c04d8)=>{_0x5c04d8['options']['showSuggestionHighlights']&&de(_0x21480f,{'showActiveMarker':!0x1})(_0x2630d7,_0x144544,_0x5c04d8);}),_0x36a03e['descriptionFactory']['registerElementLabel']('softBreak',_0x569215=>o(_0x21480f['locale'],'ELEMENT_LINE_BREAK',_0x569215));}}function de(_0x4ad5de,{showActiveMarker:_0x17276e=!0x0}={}){return(_0x3577b2,_0x2e9000,_0x59bbd6)=>{const _0x42537b=_0x4ad5de['plugins']['get']('TrackChangesEditing');if(!_0x59bbd6['consumable']['test'](_0x2e9000['markerRange'],_0x3577b2['name']))return;const _0xc807b=_0x4ad5de['model'];for(const _0x29be51 of _0x2e9000['markerRange']['getItems']()){if(!_0x29be51['is']('element','softBreak'))continue;const _0x4a5b2e='deletion'==_0x2e9000['markerName']['split'](':')[0x1]?'merge':'split',_0x491846=_0x59bbd6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a5b2e}),_0x44e1d3=_0x59bbd6['mapper']['toViewPosition'](_0xc807b['createPositionBefore'](_0x29be51));_0x17276e&&_0x42537b['activeMarkers']['includes'](_0x2e9000['markerName'])&&_0x59bbd6['writer']['addClass']('ck-suggestion-marker--active',_0x491846),_0x59bbd6['writer']['insert'](_0x44e1d3,_0x491846),_0x59bbd6['mapper']['bindElementToMarker'](_0x491846,_0x2e9000['markerName']);}};}class wt extends _0x1fbed8{['afterInit'](){const _0x54e1ef=this['editor'],_0x5ba12e=_0x54e1ef['model'],_0x1c530d=_0x54e1ef['locale'];if(!_0x54e1ef['plugins']['has']('StandardEditingModeEditing'))return;const _0x1d8cc0=_0x54e1ef['plugins']['get']('TrackChangesEditing'),_0x41ad03='restrictedEditingException',_0x1585a1=_0x54e1ef['commands']['get'](_0x41ad03);_0x1d8cc0['enableCommand'](_0x41ad03,(_0xb51eba,_0x29e5cc={})=>{const _0x33404d=_0x5ba12e['document']['selection'];if(_0x33404d['isCollapsed'])return void _0xb51eba(_0x29e5cc);const _0x28f710=void 0x0!==_0x29e5cc['forceValue']?_0x29e5cc['forceValue']:!_0x1585a1['value'];_0x5ba12e['change'](()=>{const _0x4f421e=Array['from'](_0x33404d['getRanges']());for(const _0x29af42 of _0x4f421e){const _0x4c4cd0=_0x28f710?[_0x29af42]:io(_0x41ad03,_0x29af42,_0x5ba12e);for(const _0x1e897f of _0x4c4cd0)_0x1d8cc0['markInlineFormat'](_0x1e897f,{'commandName':_0x41ad03,'commandParams':[{'forceValue':_0x28f710}]});}});}),_0x1d8cc0['descriptionFactory']['registerDescriptionCallback'](_0x10f757=>{if('formatBlock'!=_0x10f757['type']&&'formatInline'!=_0x10f757['type'])return;const {data:_0x5db503}=_0x10f757;return _0x5db503&&_0x5db503['commandName']==_0x41ad03?_0x5db503['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c530d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1c530d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1fbed8{['afterInit'](){const _0x48cb0b=this['editor'];if(!_0x48cb0b['plugins']['has']('Style')||!_0x48cb0b['plugins']['has']('DataSchema'))return;const _0x5c7551=_0x48cb0b['plugins']['get']('TrackChangesEditing'),_0x1deb06=_0x48cb0b['locale'],_0x4c8d56=_0x48cb0b['config']['get']('style')||{},_0x54651b=_0x48cb0b['plugins']['get']('GeneralHtmlSupport'),_0x47746d=_0x48cb0b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x48cb0b['plugins']['get']('DataSchema'),_0x4c8d56['definitions']);_0x5c7551['enableDefaultAttributesIntegration']('style');const _0x2d5ee3=new Set();for(const _0x53bf0e of _0x47746d['block']){const _0x39ce59=_0x54651b['getGhsAttributeNameForElement'](_0x53bf0e['element']);_0x2d5ee3['add'](_0x39ce59);}const _0x1419e6=new Set();for(const _0x165e2c of _0x47746d['inline']){const _0x153837=_0x54651b['getGhsAttributeNameForElement'](_0x165e2c['element']);_0x1419e6['add'](_0x153837);for(const _0x2f57df of _0x165e2c['ghsAttributes'])_0x1419e6['add'](_0x2f57df);}for(const _0x4469eb of _0x2d5ee3)_0x5c7551['registerBlockAttribute'](_0x4469eb),_0x5c7551['descriptionFactory']['registerAttributeLabel'](_0x4469eb,o(_0x1deb06,'FORMAT_STYLE'));for(const _0x4bca0e of _0x1419e6)_0x5c7551['registerInlineAttribute'](_0x4bca0e),_0x5c7551['descriptionFactory']['registerAttributeLabel'](_0x4bca0e,o(_0x1deb06,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48ed1e=this['editor'],_0x396ecd=_0x48ed1e['locale'];_0x48ed1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14acc0=>{if('formatBlock'!=_0x14acc0['type']&&'formatInline'!=_0x14acc0['type'])return;const {data:_0x2db165}=_0x14acc0;return _0x2db165&&'style'===_0x2db165['commandName']?_0x2db165['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x396ecd,'*Set\x20format:*\x20%0',_0x2db165['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x396ecd,'*Remove\x20format:*\x20%0',_0x2db165['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1fbed8{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x512d72){super(_0x512d72),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x53d160=this['editor'],_0x72759d=_0x53d160['model']['document']['selection'];if(!_0x53d160['plugins']['has']('TableEditing'))return;const _0x3bc656=_0x53d160['locale'],_0x4e9d59=_0x53d160['plugins']['get']('TrackChangesEditing'),_0x97d34e=_0x53d160['plugins']['get']('TableUtils');_0x4e9d59['descriptionFactory']['registerElementLabel']('table',_0x4fd589=>o(_0x3bc656,'ELEMENT_TABLE',_0x4fd589)),this['_setupColumnsRowsFixing'](),_0x4e9d59['enableCommand']('insertTable'),_0x4e9d59['enableCommand']('selectTableRow'),_0x4e9d59['enableCommand']('selectTableColumn');for(const _0x204bd7 of['insertTableRowAbove','insertTableRowBelow']){const _0x2eb67d=_0x53d160['commands']['get'](_0x204bd7);_0x4e9d59['enableCommand'](_0x204bd7,_0x300fbf=>{_0x53d160['model']['change'](_0x24d0c6=>{_0x300fbf();const _0x317e1c='above'===_0x2eb67d['order'],_0x50aeeb=_0x97d34e['getSelectionAffectedTableCells'](_0x72759d),_0x45c321=_0x97d34e['getRowIndexes'](_0x50aeeb),_0x4791e3=_0x317e1c?_0x45c321['first']-0x1:_0x45c321['last']+0x1,_0x2764d9=_0x50aeeb[0x0]['findAncestor']('table'),_0x233488=_0x97d34e['createTableWalker'](_0x2764d9,{'startRow':_0x4791e3,'endRow':_0x4791e3}),_0x3ae70c=Array['from'](_0x233488)['map'](_0x1ef5a7=>_0x24d0c6['createRangeOn'](_0x1ef5a7['cell']));_0x4e9d59['markMultiRangeInsertion'](_0x3ae70c,'tableRow');});});}for(const _0x35f446 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2b5db3=_0x53d160['commands']['get'](_0x35f446);_0x4e9d59['enableCommand'](_0x35f446,_0xe54d6a=>{_0x53d160['model']['change'](_0x561628=>{_0xe54d6a();const _0x4e6172='left'===_0x2b5db3['order'],_0x587675=_0x97d34e['getSelectionAffectedTableCells'](_0x72759d),_0x31ad1d=_0x97d34e['getColumnIndexes'](_0x587675),_0x242088=_0x4e6172?_0x31ad1d['first']-0x1:_0x31ad1d['last']+0x1,_0x337612=_0x587675[0x0]['findAncestor']('table'),_0x1a273a=_0x97d34e['createTableWalker'](_0x337612,{'startRow':0x0,'column':_0x242088,'includeAllSlots':!0x1}),_0x3b8f42=Array['from'](_0x1a273a)['map'](_0x5c59c2=>_0x561628['createRangeOn'](_0x5c59c2['cell']));_0x4e9d59['markMultiRangeInsertion'](_0x3b8f42,'tableColumn');});});}for(const _0x281f0f of['removeTableRow','removeTableColumn']){const _0x59161a=_0x281f0f['substr'](0xb),_0x6ea525=_0x59161a['toLowerCase'](),_0x52e23f=_0x6ea525['substr'](0x0,0x3)+'span',_0x383645='table'+_0x59161a,_0x5296ab='min'+_0x59161a,_0x2200bd='max'+_0x59161a;_0x4e9d59['enableCommand'](_0x281f0f,()=>{_0x53d160['model']['change'](_0xb2e8a9=>{const _0x39280d=_0x97d34e['getSelectionAffectedTableCells'](_0x72759d),_0x46e2bc=_0x39280d[0x0]['findAncestor']('table');let _0x4c3cdc;if('removeTableRow'==_0x281f0f){const _0x52652a=_0x97d34e['getRowIndexes'](_0x39280d);_0x4c3cdc={'startRow':_0x52652a['first'],'endRow':_0x52652a['last'],'includeAllSlots':!0x0};}else{const _0x210924=_0x97d34e['getColumnIndexes'](_0x39280d);_0x4c3cdc={'startColumn':_0x210924['first'],'endColumn':_0x210924['last'],'includeAllSlots':!0x0};}const _0x559472=_0x97d34e['createTableWalker'](_0x46e2bc,_0x4c3cdc),_0xf0cef0=Array['from'](_0x559472)['map'](({cell:_0x3597e5})=>_0x3597e5),_0xd72794=Ee(_0xf0cef0['filter'](_0x149754=>_0x149754['hasAttribute'](_0x52e23f))),_0x2e0641=Ee(_0xf0cef0['filter'](_0x128c35=>!_0x128c35['hasAttribute'](_0x52e23f)))['map'](_0x30a9fd=>_0xb2e8a9['createRangeOn'](_0x30a9fd)),_0x55535d=_0x4e9d59['markMultiRangeDeletion'](_0x2e0641,_0x383645);if(_0x55535d&&('tableRow'==_0x55535d['subType']||'tableColumn'==_0x55535d['subType'])){const _0x47dc32=this['_getSuggestionCoords'](_0x55535d);for(const _0x244c20 of _0xd72794){const _0x5a8ab2=_0xb2e8a9['createRangeOn'](_0x244c20),_0x4278d7=_0x97d34e['getCellLocation'](_0x244c20),_0x1438d6=_0x244c20['getAttribute'](_0x52e23f)-0x1,_0x4c5de9=_0x47dc32[_0x5296ab],_0x56f4f0=_0x47dc32[_0x2200bd];_0x4c5de9<=_0x4278d7[_0x6ea525]&&_0x4278d7[_0x6ea525]+_0x1438d6<=_0x56f4f0&&_0x55535d['addRange'](_0x5a8ab2);}}});});}function _0x5bdc16(_0x2ca316){const _0x33369b=Array['from'](_0x72759d['getRanges']())['map'](_0x29afde=>_0x47172d['fromRange'](_0x29afde));_0x53d160['model']['change'](_0x3b089f=>{const _0x515d13=_0x3b089f['batch'];_0x2ca316=_0x2ca316['filter'](_0x51687a=>'$graveyard'!=_0x51687a['root']['rootName']),_0x3b089f['setSelection'](_0x2ca316),_0x53d160['commands']['get']('removeTableRow')['refresh'](),_0x53d160['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x53d160['model']['enqueueChange'](()=>{_0x53d160['model']['enqueueChange'](_0x515d13,_0x51b638=>{const _0xe96034=_0x33369b['filter'](_0x44cdd5=>'$graveyard'!=_0x44cdd5['root']['rootName']);_0xe96034['length']>0x0&&_0x51b638['setSelection'](_0xe96034);for(const _0x35b702 of _0x33369b)_0x35b702['detach']();});});});}function _0x49157e(_0x1c26eb){_0x53d160['model']['change'](_0x4a6ff5=>{const _0x31b266=Array['from'](_0x72759d['getRanges']())['map'](_0x5c5674=>_0x47172d['fromRange'](_0x5c5674)),_0xd5411f=[];for(const _0x3949ea of _0x1c26eb)for(const _0x3c244a of _0x3949ea['getItems']({'shallow':!0x0}))_0xd5411f['push'](_0x3c244a);for(const _0x5c35f3 of _0xd5411f)'$graveyard'!=_0x5c35f3['root']['rootName']&&(_0x4a6ff5['setSelection'](_0x4a6ff5['createPositionAt'](_0x5c35f3,0x0)),_0x53d160['commands']['get']('removeTableColumn')['refresh'](),_0x53d160['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x128d9b=_0x31b266['filter'](_0xc3bf8=>'$graveyard'!=_0xc3bf8['root']['rootName']);_0x128d9b['length']>0x0&&_0x4a6ff5['setSelection'](_0x128d9b);for(const _0x50a2fe of _0x31b266)_0x50a2fe['detach']();});}function _0x2cbdd6(_0x217745,_0x1cd04b){return _0x1cd04b['every'](_0x590a4d=>_0x217745['some'](_0x575d8b=>_0x575d8b['end']['isEqual'](_0x590a4d['start'])||_0x590a4d['end']['isEqual'](_0x575d8b['start'])));}function _0x1c5a48(_0x17bfde,_0x38a5e2){return!_0x17bfde['some'](_0x9a242b=>_0x38a5e2['some'](_0x16b0eb=>_0x9a242b['isIntersecting'](_0x16b0eb)))&&_0x17bfde['some'](_0x258e45=>_0x38a5e2['some'](_0xf99882=>_0x258e45['end']['isTouching'](_0xf99882['start'])));}_0x53d160['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3e841c,_0x584417,_0x37fc4b)=>{if(!_0x37fc4b['options']['showSuggestionHighlights'])return;const _0x592bba=_0x584417['item'];if(!_0x592bba)return;const _0x213804=_0x37fc4b['mapper']['toViewElement'](_0x592bba);function _0x50b342(_0x4773dd){return Array['isArray'](_0x4773dd)?_0x4773dd:[_0x4773dd];}_0x213804&&'tableCell'===_0x592bba['name']&&_0x28b9ff(_0x213804,_0x37fc4b['writer'],(_0x58253d,_0x32f7a2,_0x3fe7a5)=>_0x3fe7a5['addClass'](_0x50b342(_0x32f7a2['classes']),_0x58253d),(_0x56bbc3,_0x327645,_0x32e97a)=>_0x32e97a['removeClass'](_0x50b342(_0x327645['classes']),_0x56bbc3));},{'priority':'highest'}),_0x4e9d59['descriptionFactory']['registerDescriptionCallback'](_0x406f8f=>{if('insertion'!=_0x406f8f['type']&&'deletion'!=_0x406f8f['type'])return;const _0x44466a=_0x406f8f['getContainedElement']();if(null!=_0x44466a&&_0x44466a['is']('element','table')){if('insertion'==_0x406f8f['type']){const _0x325f2f=_0x406f8f['getItems']()['filter'](_0xb015be=>_0xb015be['is']('$textProxy'))['map'](_0x1ea98f=>_0x1ea98f['data']);if(_0x325f2f['length'])return{'type':'insertion','content':o(_0x3bc656,'*Insert:*\x20%0',o(_0x3bc656,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x325f2f['join']('\x20')+'\x22'))};}if('deletion'==_0x406f8f['type']){const _0x386b0b=_0x406f8f['getItems']()['filter'](_0x3cf8d0=>_0x3cf8d0['is']('$textProxy'))['map'](_0xacc51d=>_0xacc51d['data']);if(_0x386b0b['length'])return{'type':'deletion','content':o(_0x3bc656,'*Remove:*\x20%0',o(_0x3bc656,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x386b0b['join']('\x20')+'\x22'))};}}}),_0x4e9d59['descriptionFactory']['registerDescriptionCallback'](_0x25b27e=>{if('tableRow'==_0x25b27e['subType']){const _0x48a886=_0x25b27e['getItems']()['filter'](_0x2fd354=>_0x2fd354['is']('$textProxy'))['map'](_0x59cf18=>_0x59cf18['data']),_0x3016bd=this['_getSuggestionCoords'](_0x25b27e),_0x3f84b8=_0x3016bd['maxRow']-_0x3016bd['minRow']+0x1;if('insertion'==_0x25b27e['type'])return _0x48a886['length']?{'type':'insertion','content':o(_0x3bc656,'*Insert:*\x20%0',o(_0x3bc656,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f84b8,'\x22'+_0x48a886['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3bc656,'*Insert:*\x20%0',o(_0x3bc656,'ELEMENT_TABLE_ROW',_0x3f84b8))};if('deletion'==_0x25b27e['type'])return _0x48a886['length']?{'type':'deletion','content':o(_0x3bc656,'*Remove:*\x20%0',o(_0x3bc656,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f84b8,'\x22'+_0x48a886['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3bc656,'*Remove:*\x20%0',o(_0x3bc656,'ELEMENT_TABLE_ROW',_0x3f84b8))};}if('tableColumn'==_0x25b27e['subType']){const _0x3548b1=_0x25b27e['getItems']()['filter'](_0x5008eb=>_0x5008eb['is']('$textProxy'))['map'](_0x280437=>_0x280437['data']),_0x1a12e3=this['_getSuggestionCoords'](_0x25b27e),_0x236cf9=_0x1a12e3['maxColumn']-_0x1a12e3['minColumn']+0x1;if('insertion'==_0x25b27e['type'])return _0x3548b1['length']?{'type':'insertion','content':o(_0x3bc656,'*Insert:*\x20%0',o(_0x3bc656,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x236cf9,'\x22'+_0x3548b1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3bc656,'*Insert:*\x20%0',o(_0x3bc656,'ELEMENT_TABLE_COLUMN',_0x236cf9))};if('deletion'==_0x25b27e['type'])return _0x3548b1['length']?{'type':'deletion','content':o(_0x3bc656,'*Remove:*\x20%0',o(_0x3bc656,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x236cf9,'\x22'+_0x3548b1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3bc656,'*Remove:*\x20%0',o(_0x3bc656,'ELEMENT_TABLE_COLUMN',_0x236cf9))};}}),_0x4e9d59['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5bdc16),_0x4e9d59['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5bdc16),_0x4e9d59['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x49157e),_0x4e9d59['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x49157e),_0x4e9d59['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2cbdd6),_0x4e9d59['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2cbdd6),_0x4e9d59['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1c5a48),_0x4e9d59['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1c5a48);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3bbd29=this['editor'],_0x7b432a=_0x3bbd29['model']['document']['selection'];return(_0x4e8245,_0x294c49)=>{_0x3bbd29['model']['change'](_0x2aace2=>{const {commandName:_0x25755b,commandParams:_0x1ed084}=_0x294c49;let _0x4328e6=_0x4e8245[0x0]['end']['nodeBefore'];_0x1ed084&&_0x1ed084[0x0]&&!0x1===_0x1ed084[0x0]['forceValue']&&(_0x4328e6=_0x4e8245[0x0]['start']['nodeAfter']);const _0x4b81d8=_0x2aace2['createRangeIn'](_0x4328e6);if('$graveyard'==_0x4b81d8['root']['rootName'])return;const _0x562ae2=Array['from'](_0x7b432a['getRanges']())['map'](_0x35a676=>_0x47172d['fromRange'](_0x35a676));_0x2aace2['setSelection'](_0x4b81d8),_0x3bbd29['commands']['get'](_0x25755b)['refresh'](),_0x1ed084['push']({'forceDefaultExecution':!0x0}),_0x3bbd29['execute'](_0x25755b,..._0x1ed084);const _0x5ad78a=_0x562ae2['filter'](_0x5198dc=>'$graveyard'!=_0x5198dc['root']['rootName']);_0x5ad78a['length']>0x0&&_0x2aace2['setSelection'](_0x5ad78a);for(const _0x2e0e70 of _0x562ae2)_0x2e0e70['detach']();});};}['_getCoordsForCells'](_0x3555ad){const _0x2b4047=this['editor']['plugins']['get']('TableUtils');let _0x314f53=Number['MAX_SAFE_INTEGER'],_0x27f790=Number['MIN_SAFE_INTEGER'],_0xbff373=Number['MAX_SAFE_INTEGER'],_0x1c4255=Number['MIN_SAFE_INTEGER'];for(const _0xf8bb5d of _0x3555ad){if('$graveyard'==_0xf8bb5d['root']['rootName'])continue;const {row:_0x410fdb,column:_0x296e57}=_0x2b4047['getCellLocation'](_0xf8bb5d),_0x47b9a4=_0xf8bb5d['hasAttribute']('rowspan')?_0xf8bb5d['getAttribute']('rowspan')-0x1:0x0,_0x43a00d=_0xf8bb5d['hasAttribute']('colspan')?_0xf8bb5d['getAttribute']('colspan')-0x1:0x0;_0x314f53=_0x410fdb<_0x314f53?_0x410fdb:_0x314f53,_0x27f790=_0x410fdb+_0x47b9a4>_0x27f790?_0x410fdb+_0x47b9a4:_0x27f790,_0xbff373=_0x296e57<_0xbff373?_0x296e57:_0xbff373,_0x1c4255=_0x296e57+_0x43a00d>_0x1c4255?_0x296e57+_0x43a00d:_0x1c4255;}return{'minRow':_0x314f53,'maxRow':_0x27f790,'minColumn':_0xbff373,'maxColumn':_0x1c4255};}['_setupColumnsRowsFixing'](){const _0x1c01f6=this['editor'],_0x1caa40=_0x1c01f6['plugins']['get']('TrackChangesEditing'),_0x273b91=_0x1c01f6['plugins']['get']('TableUtils');_0x1c01f6['model']['document']['on']('change:data',()=>{const _0x524574=Array['from'](_0x1c01f6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17eeb3,data:_0x54814a}of _0x524574){const {group:_0x28a443,id:_0x289ebc,subType:_0x1c82a0}=_0x1caa40['_splitMarkerName'](_0x17eeb3);if('suggestion'!=_0x28a443)continue;if(null!=_0x54814a['oldRange'])continue;const _0x59280d=_0x1caa40['getSuggestion'](_0x289ebc);this['_tablePostFixingSubtypes']['includes'](_0x1c82a0)&&this['_tableSuggestions']['add'](_0x59280d);}},{'priority':'low'});const _0x5ab434=(_0x343f2e,_0x265863)=>{let _0x2d8bda=!0x1;const _0x30869b=_0x265863['createRangeOn'](_0x343f2e),_0x24d9aa=_0x343f2e['findAncestor']('table'),_0x4f6841=_0x273b91['getCellLocation'](_0x343f2e);for(const _0x26d74b of this['_tableSuggestions']){const _0x4413d1=_0x26d74b['subType'],_0x578b41=_0x4413d1['startsWith']('tablePaste'),_0x351e3c=_0x4413d1['substr'](_0x578b41?0xa:0x5),_0x42e789=_0x351e3c['toLowerCase'](),_0x3a4a0d=_0x42e789['substr'](0x0,0x3)+'span',_0x17392f='min'+_0x351e3c,_0x3e4043='max'+_0x351e3c;if(!_0x26d74b['isInContent'])continue;if(_0x24d9aa!=_0x26d74b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x26d74b['isIntersectingWithRange'](_0x30869b))continue;const _0x5a60ab=_0x343f2e['hasAttribute'](_0x3a4a0d)?_0x343f2e['getAttribute'](_0x3a4a0d)-0x1:0x0,_0x4e1731=this['_getSuggestionCoords'](_0x26d74b),_0x3fca62=_0x4e1731[_0x17392f],_0x4279da=_0x4e1731[_0x3e4043];_0x3fca62<=_0x4f6841[_0x42e789]&&_0x4f6841[_0x42e789]+_0x5a60ab<=_0x4279da&&(_0x26d74b['addRange'](_0x30869b),_0x2d8bda=!0x0);}return _0x2d8bda;};_0x1c01f6['model']['document']['registerPostFixer'](_0x428d8b=>{let _0x4de151=!0x1;for(const _0x38536b of _0x1c01f6['model']['document']['differ']['getChanges']())if('insert'==_0x38536b['type']){if('tableRow'==_0x38536b['name']){for(const _0x245da0 of _0x38536b['position']['nodeAfter']['getChildren']())_0x4de151=_0x4de151||_0x5ab434(_0x245da0,_0x428d8b);}else'tableCell'==_0x38536b['name']&&(_0x4de151=_0x4de151||_0x5ab434(_0x38536b['position']['nodeAfter'],_0x428d8b));}return _0x4de151;});}['_getSuggestionCoords'](_0x37eedb){return this['_getCoordsForCells'](_0x37eedb['getRanges']()['map'](_0xeb2603=>_0xeb2603['start']['nodeAfter']));}}function Ee(_0x1685ca){return Array['from'](new Set(_0x1685ca)['values']());}class St extends _0x1fbed8{static get['requires'](){return[jt];}['afterInit'](){const _0x329b53=this['editor'],_0x118161=_0x329b53['model']['document']['selection'],_0x2e2ce8=_0x329b53['locale'];if(!_0x329b53['plugins']['has']('TableEditing'))return;const _0x5cc78d=_0x329b53['plugins']['get']('TrackChangesEditing'),_0x275bf9=_0x329b53['plugins']['get']('TableUtils'),_0x2e95e0=_0x329b53['plugins']['get'](jt);_0x2e95e0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5cc78d['enableCommand']('mergeTableCells',()=>{const _0xc09dd3=_0x275bf9['getSelectionAffectedTableCells'](_0x329b53['model']['document']['selection']);_0x329b53['model']['change'](()=>{_0x5cc78d['markMultiRangeBlockFormat'](_0xc09dd3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x329b53['commands']['get']('mergeTableCells')['on']('execute',(_0x215714,_0x59aa86)=>{_0x329b53['commands']['get']('trackChanges')['value']&&(_0x59aa86['length']>0x0&&_0x59aa86[_0x59aa86['length']-0x1]&&_0x59aa86[_0x59aa86['length']-0x1]['forceDefaultExecution']||_0x5cc78d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x215714['stop']());},{'priority':'highest'});for(const _0x5833bb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3bc977=_0x329b53['commands']['get'](_0x5833bb);_0x5cc78d['enableCommand'](_0x5833bb,()=>{const _0x5b1795=_0x329b53['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x962efd=>_0x962efd['is']('element','tableCell')),_0x21fdca=_0x3bc977['value'];_0x329b53['model']['change'](()=>{_0x5cc78d['markMultiRangeBlockFormat']([_0x5b1795,_0x21fdca],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xb54de2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3c5d27=_0x329b53['commands']['get'](_0xb54de2);_0x5cc78d['enableCommand'](_0xb54de2,()=>{const _0xbebc61=_0x275bf9['getSelectionAffectedTableCells'](_0x329b53['model']['document']['selection'])[0x0],_0x244e33=_0xbebc61['findAncestor']('table'),{column:_0x57fb16,row:_0x4affd2}=_0x275bf9['getCellLocation'](_0xbebc61);let _0x1a9902=[];if('horizontally'==_0x3c5d27['direction']){const _0x21088f=_0x275bf9['createTableWalker'](_0x244e33,{'startRow':_0x4affd2,'endRow':_0x4affd2,'includeAllSlots':!0x0});_0x1a9902=Array['from'](_0x21088f)['map'](_0x10c152=>_0x10c152['cell']);}else{const _0x5bdde6=_0x275bf9['createTableWalker'](_0x244e33,{'column':_0x57fb16,'includeAllSlots':!0x0});_0x1a9902=Array['from'](_0x5bdde6)['map'](_0x679dfa=>_0x679dfa['cell']);}_0x329b53['model']['change'](_0x17db58=>{_0x5cc78d['markBlockFormat'](_0x17db58['createRangeOn'](_0xbebc61),{'commandName':_0xb54de2,'commandParams':[]},_0x1a9902,_0xb54de2);});});}_0x5cc78d['descriptionFactory']['registerDescriptionCallback'](_0x1f3d82=>{if('formatBlock'!=_0x1f3d82['type']&&'formatInline'!=_0x1f3d82['type'])return;const {data:_0x130297}=_0x1f3d82;return _0x130297&&'mergeTableCells'==_0x130297['commandName']?{'type':'format','content':o(_0x2e2ce8,'*Merge\x20cells*')}:void 0x0;}),_0x5cc78d['descriptionFactory']['registerDescriptionCallback'](_0xad8e64=>{if('formatBlock'!=_0xad8e64['type']&&'formatInline'!=_0xad8e64['type'])return;const {data:_0x20e4e0}=_0xad8e64;return _0x20e4e0?'splitTableCellVertically'==_0x20e4e0['commandName']?{'type':'format','content':o(_0x2e2ce8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x20e4e0['commandName']?{'type':'format','content':o(_0x2e2ce8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x39983c=_0x2e95e0['_acceptFormatSuggestionCallbackFactory']();for(const _0x469ab2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5cc78d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x469ab2,'accept',_0x39983c);for(const _0x19093c of['splitTableCellVertically','splitTableCellHorizontally'])_0x5cc78d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19093c,'accept',_0x39983c);_0x5cc78d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x17973f=>{_0x329b53['model']['change'](_0x2556e1=>{const _0x46b43e=Array['from'](_0x118161['getRanges']())['map'](_0x1fd87e=>_0x47172d['fromRange'](_0x1fd87e));_0x2556e1['setSelection'](_0x17973f),_0x329b53['commands']['get']('mergeTableCells')['refresh'](),_0x329b53['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x792dbf=_0x46b43e['filter'](_0x506ab8=>'$graveyard'!=_0x506ab8['root']['rootName']);_0x792dbf['length']>0x0&&_0x2556e1['setSelection'](_0x792dbf);for(const _0x8353cf of _0x46b43e)_0x8353cf['detach']();});});for(const _0x5c5b41 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2f53d7=_0x329b53['commands']['get'](_0x5c5b41);_0x2f53d7['on']('set:isEnabled',(_0x342c48,_0x495e30,_0x3ca18e)=>{if(_0x3ca18e){const _0x2eb8dd=_0x329b53['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x20a71f=>_0x20a71f['is']('element','tableCell'));this['_areMergableCells'](_0x2f53d7['value'],_0x2eb8dd)||(_0x342c48['return']=!0x1,_0x342c48['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x233b17=this['editor']['commands']['get']('mergeTableCells'),_0x1b6095=this['editor']['plugins']['get']('TableUtils');if(!_0x233b17['isEnabled'])return!0x1;const _0x270eb2=_0x1b6095['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x125b14 of _0x270eb2)for(const _0x382af9 of _0x270eb2)if(_0x125b14!=_0x382af9&&!this['_areMergableCells'](_0x125b14,_0x382af9))return!0x1;return!0x0;}['_areMergableCells'](_0x54cb1b,_0x4b6a14){const _0x1a85ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x494919=this['editor']['model']['createRangeOn'](_0x54cb1b),_0x68c3b6=this['editor']['model']['createRangeOn'](_0x4b6a14),_0x47dc6d=new Set(),_0x3f03fa=new Set();for(const _0x228c29 of _0x1a85ef['getSuggestions']())if(('insertion'==_0x228c29['type']||'deletion'==_0x228c29['type']||'mergeTableCells'==_0x228c29['subType'])&&_0x228c29['isInContent']){for(const _0xf3a8ce of _0x228c29['getRanges']())_0xf3a8ce['containsRange'](_0x494919,!0x0)&&_0x47dc6d['add'](_0x228c29['type']+':'+_0x228c29['author']['id']),_0xf3a8ce['containsRange'](_0x68c3b6,!0x0)&&_0x3f03fa['add'](_0x228c29['type']+':'+_0x228c29['author']['id']);}if(_0x47dc6d['size']!=_0x3f03fa['size'])return!0x1;for(const _0x22cf1f of _0x47dc6d)if(!_0x3f03fa['has'](_0x22cf1f))return!0x1;return!0x0;}}class At extends _0x1fbed8{static get['requires'](){return[jt];}['afterInit'](){const _0x1a5415=this['editor'];if(!_0x1a5415['plugins']['has']('TableEditing'))return;const _0x2c818b=_0x1a5415['locale'],_0x37d671=_0x1a5415['plugins']['get']('TrackChangesEditing');_0x37d671['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x37d671['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x37d671['registerBlockAttribute']('headingRows'),_0x37d671['registerBlockAttribute']('headingColumns'),_0x37d671['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2c818b,'FORMAT_HEADER_ROW')),_0x37d671['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2c818b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2cfb19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44f862=this['editor']['plugins']['get']('TableUtils'),_0x4df2a7=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x48975f({showActiveMarker:_0x567172=!0x0,setDataAttribute:_0x5646c1=!0x0}={}){return(_0x17a774,_0x59d0be,_0xc7a8e3)=>{const {type:_0x5ea107,id:_0x313c29}=_0x2cfb19['_splitMarkerName'](_0x59d0be['markerName']),_0x19bfdb=_0x2cfb19['getSuggestion'](_0x313c29),_0x4e49ca=_0x19bfdb['data'];if('formatBlock'!=_0x19bfdb['type']||!_0x4e49ca||'setTableColumnHeader'!=_0x4e49ca['commandName'])return;if(_0x59d0be['item'])return void _0x17a774['stop']();if(!_0xc7a8e3['consumable']['consume'](_0x59d0be['markerRange'],_0x17a774['name']))return;const _0x1c9b78=_0x59d0be['markerRange']['start']['nodeAfter'],_0x3d6ada=_0x59d0be['markerRange']['end']['nodeBefore'],_0x4ba604=_0x1c9b78['parent']['parent'],{column:_0x1eab36}=_0x44f862['getCellLocation'](_0x1c9b78),{column:_0x33ea92}=_0x44f862['getCellLocation'](_0x3d6ada);for(let _0x38d592=_0x1eab36;_0x38d592<=_0x33ea92;_0x38d592++){const _0x440d48=_0x44f862['createTableWalker'](_0x4ba604,{'column':_0x38d592,'includeAllSlots':!0x1});for(const _0x563679 of _0x440d48){const _0x5e6235=_0x563679['cell'],_0x33653f=_0xc7a8e3['mapper']['toViewElement'](_0x5e6235);_0xc7a8e3['writer']['addClass']('ck-suggestion-marker-'+_0x5ea107,_0x33653f),_0x5646c1&&_0xc7a8e3['writer']['setAttribute']('data-suggestion',_0x313c29,_0x33653f),_0xc7a8e3['mapper']['bindElementToMarker'](_0x33653f,_0x59d0be['markerName']),_0x567172&&(_0x2cfb19['activeMarkers']['includes'](_0x59d0be['markerName'])?_0xc7a8e3['writer']['addClass']('ck-suggestion-marker--active',_0x33653f):_0xc7a8e3['writer']['removeClass']('ck-suggestion-marker--active',_0x33653f));}}};}_0x2cfb19['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4df2a7),_0x2cfb19['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4df2a7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x48975f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5bdc61,_0x252cbe,_0x4c977b)=>{_0x4c977b['options']['showSuggestionHighlights']&&_0x48975f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5bdc61,_0x252cbe,_0x4c977b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x240670,_0x5e7689,_0x105b56)=>{const {type:_0x1c964e,id:_0x55032c}=_0x2cfb19['_splitMarkerName'](_0x5e7689['markerName']),_0x24dd44=_0x2cfb19['getSuggestion'](_0x55032c),_0x35146=_0x24dd44['data'];if('formatBlock'!=_0x24dd44['type']||!_0x35146||'setTableColumnHeader'!=_0x35146['commandName'])return;const _0x422929=_0x105b56['mapper']['markerNameToElements'](_0x5e7689['markerName']);if(_0x422929){for(const _0x2eee1d of _0x422929)_0x105b56['writer']['removeClass']('ck-suggestion-marker-'+_0x1c964e,_0x2eee1d),_0x105b56['writer']['removeClass']('ck-suggestion-marker--active',_0x2eee1d),_0x105b56['writer']['removeAttribute']('data-suggestion',_0x2eee1d),_0x105b56['mapper']['unbindElementFromMarkerName'](_0x2eee1d,_0x5e7689['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55dc15=this['editor'],_0x38e283=_0x55dc15['locale'];function _0x1b3f1f(_0x544498){return{'type':'format','content':o(_0x38e283,'*Format:*\x20%0',_0x544498)};}_0x55dc15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50b397=>{if('formatBlock'!=_0x50b397['type'])return;const {data:_0x4fc85f}=_0x50b397;if(_0x4fc85f){if('setTableRowHeader'==_0x4fc85f['commandName']){const _0x554748=_0x4fc85f['commandParams'][0x0]['forceValue'];return _0x1b3f1f(o(_0x38e283,_0x554748?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4fc85f['commandName']){const _0x1f487c=_0x4fc85f['commandParams'][0x0]['forceValue'];return _0x1b3f1f(o(_0x38e283,_0x1f487c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x338eb4=>[_0x338eb4,null]));class It extends _0x1fbed8{static get['requires'](){return[jt];}['afterInit'](){const _0x42de1e=this['editor'];if(!_0x42de1e['plugins']['has']('TableClipboard'))return;const _0x57491b=_0x42de1e['plugins']['get']('TrackChangesEditing'),_0x194315=_0x42de1e['plugins']['get']('TableUtils'),_0x292ddb=_0x42de1e['plugins']['get'](jt),_0x9cc0e2=_0x42de1e['plugins']['get']('TableClipboard');_0x292ddb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x42de1e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x42de1e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x27a94e=null;_0x42de1e['model']['on']('insertContent',(_0x18a438,_0x5619a9)=>{const [_0x3a1552,_0x2a8f15]=_0x5619a9,_0x29e725=_0x5619a9[_0x5619a9['length']-0x1];_0x29e725&&_0x29e725['forceDefaultExecution']||_0x57491b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x544f76,_0x610106,_0x2db89f,_0xc20756,_0x21e021){if(_0x610106&&!_0x610106['is']('documentSelection'))return!0x1;const _0x445e4c=_0x21e021['getTableIfOnlyTableInContent'](_0x544f76,_0x2db89f);if(!_0x445e4c||!he(_0x445e4c,void 0x0,_0xc20756))return!0x1;const _0x410989=_0xc20756['getSelectionAffectedTableCells'](_0x2db89f['document']['selection']);if(!_0x410989['length'])return!0x1;const _0x20adf2=_0x410989[0x0]['findAncestor']('table'),_0x2efcc0=_0xc20756['getRowIndexes'](_0x410989),_0x27a84d=_0xc20756['getColumnIndexes'](_0x410989),_0x5b22a3={'startRow':_0x2efcc0['first'],'endRow':_0x2efcc0['last'],'startColumn':_0x27a84d['first'],'endColumn':_0x27a84d['last']};return 0x1==_0x410989['length']&&(_0x5b22a3['endRow']+=_0xc20756['getRows'](_0x445e4c)-0x1,_0x5b22a3['endColumn']+=_0xc20756['getColumns'](_0x445e4c)-0x1),he(_0x20adf2,_0x5b22a3,_0xc20756);}(_0x3a1552,_0x2a8f15,_0x42de1e['model'],_0x194315,_0x9cc0e2)&&(_0x18a438['stop'](),_0x27a94e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x42de1e['model']['change'](()=>{_0x42de1e['model']['insertContent'](_0x5619a9[0x0],_0x5619a9[0x1],_0x5619a9[0x2],{'forceDefaultExecution':!0x0});const _0xb33b8e=_0x267db8(),{rowInsertionRanges:_0xc59213,columnInsertionRanges:_0x4fa6c6,insertionRanges:_0x5147f7,deletionRanges:_0x21ef24,cells:_0x5a48b8}=_0x27a94e;_0xc59213['length']&&_0x57491b['markMultiRangeInsertion'](_0xc59213,'tablePasteRow',{'tablePasteChainId':_0xb33b8e}),_0x4fa6c6['length']&&_0x57491b['markMultiRangeInsertion'](_0x4fa6c6,'tablePasteColumn',{'tablePasteChainId':_0xb33b8e}),_0x5147f7['length']&&(_0x57491b['markMultiRangeInsertion'](_0x5147f7,'tablePaste',{'tablePasteChainId':_0xb33b8e,'skipNestingCheck':!0x0}),_0x5147f7['forEach'](_0x3d1415=>_0x3d1415['detach']?.())),_0x21ef24['length']&&(_0x57491b['markMultiRangeDeletion'](_0x21ef24,'tablePaste',{'tablePasteChainId':_0xb33b8e,'skipNestingCheck':!0x0}),_0x21ef24['forEach'](_0x2940ae=>_0x2940ae['detach']?.()));const _0x8d15dc=_0x57491b['markMultiRangeBlockFormat'](_0x5a48b8['map'](({element:_0x17d7dd})=>_0x17d7dd),{'formatGroupId':_0x267db8()},[],'tablePasteCell',{'tablePasteChainId':_0xb33b8e});if(_0x8d15dc){const _0x52a534=_0x8d15dc['getMarkers'](),_0x1c42fa=[];for(const {element:_0x13a619,attributes:_0x4c6bb8}of _0x5a48b8){if(!_0x4c6bb8)continue;const _0x110854=_0x42de1e['model']['createRangeOn'](_0x13a619),_0x1d1115=_0x52a534['find'](_0x272c22=>_0x272c22['getRange']()['isEqual'](_0x110854));_0x1d1115&&_0x1c42fa['push']([_0x1d1115['name'],_0x4c6bb8]);}_0x1c42fa['length']&&_0x8d15dc['setAttribute']('markerAttributes',Object['fromEntries'](_0x1c42fa));}_0x27a94e=null;}));},{'priority':_0x4600a6['high']+0xa}),_0x42de1e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1f19fb,_0x535436)=>{const [_0xfb488e,_0x28dd25,,_0x254ab6]=_0x535436;if(!_0x27a94e)return;_0x1f19fb['stop']();const _0x5ea69f=_0xfb488e['cell'],_0x22cf2a=_0x28dd25,_0x125695=Pe(_0x5ea69f),_0x489341=Pe(_0x22cf2a);_0x1f19fb['return']=_0x5ea69f;let _0x58e374=null,_0x494e77=null;if(_0x489341||_0x125695){if(_0x125695&&!_0x489341){_0x254ab6['remove'](_0x5ea69f['getChild'](0x0));for(const _0x50df9c of Array['from'](_0x22cf2a['getChildren']()))_0x254ab6['insert'](_0x50df9c,_0x5ea69f,'end');const _0x3a0f3d=_0x27a94e['rowInsertionIndexes']['includes'](_0xfb488e['row']),_0x192349=_0x27a94e['columnInsertionIndexes']['includes'](_0xfb488e['column']);_0x3a0f3d||_0x192349||(_0x58e374=_0x47172d['fromRange'](_0x254ab6['createRangeIn'](_0x5ea69f)));}else _0x489341&&!_0x125695&&(_0x494e77=_0x254ab6['createRangeIn'](_0x5ea69f));}else{const _0x366a2d=_0x254ab6['createElement']('tableCellSuggestion'),_0x129071=_0x254ab6['createElement']('tableCellSuggestion');_0x254ab6['wrap'](_0x254ab6['createRangeIn'](_0x5ea69f),_0x129071),_0x254ab6['insert'](_0x366a2d,_0x5ea69f,0x0);for(const _0x11c7f8 of Array['from'](_0x22cf2a['getChildren']()))_0x254ab6['insert'](_0x11c7f8,_0x366a2d,'end');_0x58e374=_0x47172d['fromRange'](_0x254ab6['createRangeOn'](_0x366a2d)),_0x494e77=_0x47172d['fromRange'](_0x254ab6['createRangeOn'](_0x129071));}const _0x181217=Array['from'](_0x22cf2a['getAttributes']())['filter'](([_0x45e3c9])=>ge['includes'](_0x45e3c9));_0x27a94e['cells']['push']({'element':_0x5ea69f,'attributes':_0x181217['length']?Object['fromEntries'](_0x181217):null}),_0x58e374&&_0x27a94e['insertionRanges']['push'](_0x58e374),_0x494e77&&_0x27a94e['deletionRanges']['push'](_0x494e77);},{'priority':'high'}),_0x194315['on']('insertColumns',(_0x3a877e,_0x1b52c5)=>{const [_0x2e8c8f,_0x56002a={}]=_0x1b52c5;if(!_0x27a94e)return;const _0x1cad46=_0x56002a['at']||0x0,_0x5808cb=_0x56002a['columns']||0x1;_0x27a94e['columnInsertionIndexes']=new Array(_0x5808cb)['fill'](_0x1cad46)['map']((_0x245fb8,_0x3a0bec)=>_0x245fb8+_0x3a0bec);for(const {cell:_0x489f70}of _0x194315['createTableWalker'](_0x2e8c8f,{'startColumn':_0x1cad46,'endColumn':_0x1cad46+_0x5808cb-0x1}))_0x27a94e['columnInsertionRanges']['push'](_0x42de1e['model']['createRangeOn'](_0x489f70));},{'priority':'low'}),_0x194315['on']('insertRows',(_0x42f544,_0x4ca793)=>{const [_0xb26673,_0xbe7ba4={}]=_0x4ca793;if(!_0x27a94e)return;const _0x34f927=_0xbe7ba4['at']||0x0,_0x54b4b9=_0xbe7ba4['rows']||0x1;_0x27a94e['rowInsertionIndexes']=new Array(_0x54b4b9)['fill'](_0x34f927)['map']((_0x315fd5,_0x23705b)=>_0x315fd5+_0x23705b);for(const {cell:_0x21e6e6}of _0x194315['createTableWalker'](_0xb26673,{'startRow':_0x34f927,'endRow':_0x34f927+_0x54b4b9-0x1}))_0x27a94e['rowInsertionRanges']['push'](_0x42de1e['model']['createRangeOn'](_0x21e6e6));},{'priority':'low'}),_0x57491b['descriptionFactory']['registerDescriptionCallback'](_0x26ac9f=>{if(_0x26ac9f['subType']&&_0x26ac9f['subType']['startsWith']('tablePaste'))return _0x26ac9f['previous']?{}:{'type':'insertion','content':o(_0x42de1e['locale'],'*Replace\x20table\x20cells*')};});const _0x4dc563=()=>!0x1;for(const _0x501895 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x57491b['_suggestionFactory']['registerCustomCallback']('insertion',_0x501895,'join',_0x4dc563),_0x57491b['_suggestionFactory']['registerCustomCallback']('deletion',_0x501895,'join',_0x4dc563),_0x57491b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x501895,'join',_0x4dc563);_0x57491b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4dc563),_0x57491b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5398bb,_0x1e496f,_0x4474b5)=>{const _0x3c04bb=_0x5398bb['map'](_0x552631=>_0x552631['getContainedElement']())['filter'](_0x1fa009=>_0x1fa009),_0x3bd078=new Map(_0x3c04bb['map'](_0x31eb87=>[_0x31eb87,null]));if(_0x27a94e){for(const {element:_0xc05350,attributes:_0x552264}of _0x27a94e['cells'])_0x552264&&_0x3bd078['set'](_0xc05350,_0x552264);}else{if(_0x4474b5&&_0x4474b5['markerAttributes'])for(const [_0xa54db1,_0x3386b1]of Object['entries'](_0x4474b5['markerAttributes'])){const _0x2bbdf0=_0x42de1e['model']['markers']['get'](_0xa54db1),_0x1a0b5a=_0x2bbdf0?_0x2bbdf0['getRange']()['getContainedElement']():null;_0x1a0b5a&&_0x3bd078['set'](_0x1a0b5a,_0x3386b1);}}_0x42de1e['model']['change'](_0x554641=>{for(const [_0x5b6823,_0x5b86d8]of _0x3bd078)_0x554641['setAttributes']({...Ce,..._0x5b86d8},_0x5b6823);});});const _0x25dca0=(_0x287126,_0x145852)=>{_0x57491b['_suggestionFactory']['registerCustomCallback'](_0x287126,'tablePaste',_0x145852,(_0x41d6b1,_0x51c4f7,_0x7f247f)=>{_0x42de1e['model']['change'](_0x39acfd=>{const _0x41e6d1=[];for(const _0x123abe of _0x41d6b1){const _0x1e94e7=_0x123abe['start']['nodeAfter'];_0x1e94e7['is']('element','tableCellSuggestion')&&_0x41e6d1['push'](_0x1e94e7);}_0x57491b['_suggestionFactory']['getSuggestionCallback'](_0x287126,null,_0x145852)(_0x41d6b1,_0x51c4f7,_0x7f247f);for(const _0x5d9f4f of _0x41e6d1)'$graveyard'!=_0x5d9f4f['root']['rootName']&&_0x39acfd['unwrap'](_0x5d9f4f);});});};_0x25dca0('insertion','accept'),_0x25dca0('insertion','discard'),_0x25dca0('deletion','accept'),_0x25dca0('deletion','discard'),_0x57491b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4b6a59=>{const _0x1fe604=_0x4b6a59['map'](_0x1c3dd9=>_0x1c3dd9['getContainedElement']()),_0xfcbafb=_0x1fe604[0x0]['findAncestor']('table'),{minRow:_0x431b78,maxRow:_0x468a60}=_0x292ddb['_getCoordsForCells'](_0x1fe604);_0x194315['removeRows'](_0xfcbafb,{'at':_0x431b78,'rows':_0x468a60-_0x431b78+0x1});}),_0x57491b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x583a47=>{const _0x40d021=_0x583a47['map'](_0x33d7af=>_0x33d7af['getContainedElement']()),_0x156443=_0x40d021[0x0]['findAncestor']('table'),{minColumn:_0x4c2041,maxColumn:_0x290c6c}=_0x292ddb['_getCoordsForCells'](_0x40d021);_0x194315['removeColumns'](_0x156443,{'at':_0x4c2041,'columns':_0x290c6c-_0x4c2041+0x1});});const _0xee91b3=(_0x3c2a58,_0x4b0828)=>{if(!_0x4b0828['subType']||!_0x4b0828['subType']['startsWith']('tablePaste'))return;const _0x6f89bf=_0x4b0828['attributes']['tablePasteChainId'],_0x1ac87c=_0x57491b['getSuggestions']()['filter'](_0x26b10f=>_0x26b10f['isInContent']&&_0x26b10f['attributes']&&_0x26b10f['attributes']['tablePasteChainId']==_0x6f89bf);_0x1ac87c['length']&&_0x4b0828['getAllAdjacentSuggestions']()['length']!=_0x1ac87c['length']&&_0x1ac87c['reduce']((_0x5eabdc,_0x1b968c)=>(_0x5eabdc['next']=_0x1b968c,_0x1b968c['previous']=_0x5eabdc,_0x1b968c));};function _0x102b42(_0x7aa7d4,_0x3cfbc1=!0x0){const {id:_0x19695b}=_0x57491b['_splitMarkerName'](_0x7aa7d4['markerName']),_0x230308=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4cc7b9=_0x57491b['activeMarkers']['includes'](_0x7aa7d4['markerName']);return _0x4cc7b9&&_0x230308['push']('ck-suggestion-marker--active'),{'classes':_0x230308,'attributes':{'data-suggestion':_0x19695b},'priority':_0x4cc7b9&&_0x3cfbc1?0xbc2:0xbb8};}_0x57491b['on']('suggestionLoaded',_0xee91b3,{'priority':'high'}),_0x57491b['on']('suggestionUnloaded',_0xee91b3,{'priority':'high'}),_0x42de1e['model']['document']['registerPostFixer'](()=>{let _0xf7bc57=!0x1;const _0x4b76b6=Array['from'](_0x42de1e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21b18c,data:_0x47fd15}of _0x4b76b6){const {group:_0x5efa95,type:_0x23b2ed,id:_0x16b208}=_0x57491b['_splitMarkerName'](_0x21b18c);if('suggestion'!=_0x5efa95||'deletion'!=_0x23b2ed||_0x47fd15['oldRange'])continue;if(!_0x57491b['hasSuggestion'](_0x16b208))continue;const _0x1aa5e8=_0x57491b['getSuggestion'](_0x16b208)['getRanges'](),_0x5736de=_0x42de1e['plugins']['get']('Users')['me'];for(const _0x3887f7 of _0x57491b['getSuggestions']()){if(!_0x3887f7['isInContent']||_0x3887f7['author']!=_0x5736de)continue;if('formatBlock'!=_0x3887f7['type']||'tablePasteCell'!=_0x3887f7['subType'])continue;if(_0x3887f7['getRanges']()['every'](_0x385931=>_0x1aa5e8['some'](_0x1e145c=>_0x1e145c['containsRange'](_0x385931,!0x0)))){for(const _0x3089f6 of _0x3887f7['getAllAdjacentSuggestions']())_0x3089f6['isInContent']&&(_0x3089f6['discard'](),_0xf7bc57=!0x0);}}}return _0xf7bc57;}),_0x42de1e['model']['document']['registerPostFixer'](_0x3466d2=>{const _0x3ca009=_0x42de1e['commands']['get']('redo');if(!_0x3ca009||!_0x3ca009['_createdBatches']['has'](_0x3466d2['batch']))return!0x1;let _0x3ffe35=!0x1;const _0x3e1706=_0x42de1e['plugins']['get']('Users')['me'],_0x3b567f=_0x42de1e['model']['document']['differ']['getChanges'](),_0x79fec3=Array['from'](_0x42de1e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x45f794,data:_0x157d34})=>{const {group:_0x1f5e8a,subType:_0x31e3a9,authorId:_0x2f4961}=_0x57491b['_splitMarkerName'](_0x45f794);return'suggestion'==_0x1f5e8a&&'tablePaste'==_0x31e3a9&&_0x2f4961==_0x3e1706['id']&&!_0x157d34['oldRange'];});for(const _0x51938d of _0x3b567f){if('insert'!=_0x51938d['type']||'tableCellSuggestion'!=_0x51938d['name']||0x1!=_0x51938d['length'])continue;const _0x4c7741=_0x3466d2['createRange'](_0x51938d['position'],_0x51938d['position']['getShiftedBy'](0x1));if(!_0x79fec3['find'](({data:_0xab0a93})=>_0xab0a93['newRange']['isEqual'](_0x4c7741))){for(const {name:_0xd3fdd,data:_0x101c1f}of _0x79fec3)if(_0x4c7741['containsRange'](_0x101c1f['newRange'])){_0x3466d2['updateMarker'](_0xd3fdd,{'range':_0x4c7741}),_0x3ffe35=!0x0;break;}}}return _0x3ffe35;}),_0x42de1e['model']['document']['registerPostFixer'](_0x527eed=>{let _0x5659f8=!0x1;const _0x579140=_0x42de1e['plugins']['get']('Users')['me'],_0x2e7c24=_0x57491b['getSuggestions']()['filter'](_0x128e05=>_0x128e05['isInContent']&&_0x128e05['author']==_0x579140),_0x155d6b=new Set(),_0x408f5a=new Set();for(const _0x2e04ed of _0x2e7c24)if('tablePaste'==_0x2e04ed['subType'])for(const _0x56f856 of _0x2e04ed['getMarkers']()){const _0x144c3e=_0x56f856['getRange']()['getContainedElement']();if(_0x144c3e){if(_0x144c3e['is']('element','tableCellSuggestion')&&Pe(_0x144c3e)){_0x2e04ed['removeMarker'](_0x56f856['name']),_0x155d6b['add'](_0x144c3e),_0x5659f8=!0x0;const _0x9a6bb1=_0x144c3e['nextSibling'],_0x70cfe1=_0x144c3e['previousSibling'],_0x3d2ffb=_0x9a6bb1&&_0x9a6bb1['is']('element','tableCellSuggestion'),_0x21a6d1=_0x70cfe1&&_0x70cfe1['is']('element','tableCellSuggestion');_0x3d2ffb&&!_0x155d6b['has'](_0x9a6bb1)&&_0x408f5a['add'](_0x9a6bb1),_0x21a6d1&&!_0x155d6b['has'](_0x70cfe1)&&_0x408f5a['add'](_0x70cfe1);}else _0x144c3e['is']('element','paragraph')&&_0x144c3e['isEmpty']&&(_0x2e04ed['removeMarker'](_0x56f856['name']),_0x5659f8=!0x0);}}else{if('tablePasteCell'==_0x2e04ed['subType']){if(!_0x2e04ed['attributes']||!_0x2e04ed['attributes']['tablePasteChainId'])continue;const _0x2ee2c3=_0x2e04ed['attributes']['markerAttributes'];if(_0x2ee2c3&&Object['keys'](_0x2ee2c3)['length'])continue;const _0x4728fe=_0x2e04ed['attributes']['tablePasteChainId'];let _0x41c9a0=!0x0,_0x1252b6=!0x0;for(const _0x36093e of _0x2e7c24)if(_0x36093e['subType']&&_0x36093e['subType']['startsWith']('tablePaste')){if(!_0x36093e['attributes']['tablePasteChainId']){_0x1252b6=!0x1;break;}if(_0x36093e['id']!=_0x2e04ed['id']&&_0x36093e['attributes']['tablePasteChainId']==_0x4728fe){_0x41c9a0=!0x1;break;}}_0x1252b6&&_0x41c9a0&&(_0x2e04ed['removeMarkers'](),_0x5659f8=!0x0);}}for(const _0xa28eb2 of _0x155d6b)_0x527eed['remove'](_0xa28eb2);for(const _0x41a298 of _0x408f5a)_0x527eed['unwrap'](_0x41a298);return _0x5659f8;}),_0x42de1e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38054b,_0x36fba5)=>_0x102b42(_0x38054b),'converterPriority':'high'}),_0x42de1e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29766c,_0xc900b4)=>_0xc900b4['options']['showSuggestionHighlights']?_0x102b42(_0x29766c,!0x1):null,'converterPriority':'high'});const _0x33c157=_0x42de1e['editing']['view'];this['listenTo'](_0x33c157['document'],'clipboardOutput',(_0x41c66d,_0x5d1e37)=>{const _0x48df41=[];for(const _0x20a973 of _0x33c157['createRangeIn'](_0x5d1e37['content'])['getItems']())_0x20a973['is']('element','suggestion-td')&&_0x48df41['push'](_0x20a973);_0x33c157['change'](_0x357bac=>{for(const _0x3988c7 of _0x48df41)_0x357bac['move'](_0x357bac['createRangeIn'](_0x3988c7),_0x357bac['createPositionBefore'](_0x3988c7)),_0x357bac['remove'](_0x3988c7);});});}}function Pe(_0x121219){if(_0x121219['isEmpty'])return!0x0;const _0x4e8a01=_0x121219['getChild'](0x0);return _0x4e8a01['is']('element','paragraph')&&_0x4e8a01['isEmpty'];}function he(_0x1adcaf,_0x4db377={},_0x1cccf6){for(const {isAnchor:_0x458fbc,cellHeight:_0x1543c6,cellWidth:_0x64b773}of _0x1cccf6['createTableWalker'](_0x1adcaf,{'includeAllSlots':!0x0,..._0x4db377}))if(!_0x458fbc||0x1!=_0x1543c6||0x1!=_0x64b773)return!0x1;return!0x0;}class vt extends _0x1fbed8{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x19b09e=this['editor']['plugins']['get']('TrackChangesEditing');_0x19b09e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x19b09e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x19b09e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19b09e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x19b09e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x19b09e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x559bf1,_0x270406){const _0x3563b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26e1b5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1aec54=_0x270406['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x30e760=_0x26e1b5['getColumnGroupElement'](_0x1aec54);let _0x4f5e3f=_0x30e760?_0x26e1b5['getTableColumnsWidths'](_0x30e760):null,_0x475a19=_0x1aec54['getAttribute']('tableWidth')||null;const _0x2b241f=_0x270406['tableWidth']||_0x475a19,_0x3b1adc=_0x270406['columnWidths']||_0x4f5e3f,_0x562ecc=this['editor']['plugins']['get']('Users')['me'];for(const _0x1872d0 of _0x3563b6['getSuggestions']()){const _0x4dec03=_0x1872d0['getContainedElement']();if('resizeTable'===_0x1872d0['subType']&&_0x4dec03===_0x1aec54){_0x1872d0['author']!==_0x562ecc&&_0x1872d0['discard']();const _0xa5cf36=_0x1872d0['data']['commandParams'];_0x475a19=_0xa5cf36[0x0]['tableWidth'],_0x4f5e3f=_0xa5cf36[0x0]['columnWidths'];break;}}_0x559bf1({'table':_0x1aec54,'tableWidth':_0x2b241f,'columnWidths':_0x3b1adc}),_0x3563b6['markBlockFormat'](_0x1aec54,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x475a19,'columnWidths':_0x4f5e3f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x53f331){if('formatBlock'!=_0x53f331['type']&&'formatInline'!=_0x53f331['type'])return;const {data:_0x5b51b8}=_0x53f331;if(_0x5b51b8&&'resizeTable'===_0x5b51b8['formatGroupId']){const _0x534a73='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x534a73)};}}}class Ct extends _0x1fbed8{['afterInit'](){const _0x486600=this['editor'];_0x486600['plugins']['has']('Template')&&_0x486600['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1fbed8{['afterInit'](){const _0x2ef7e1=this['editor'];if(!_0x2ef7e1['commands']['get']('insertTableOfContents'))return;_0x2ef7e1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x161d89=_0x2ef7e1['plugins']['get']('TrackChangesEditing'),_0x3d63ee=_0x2ef7e1['locale'];_0x161d89['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2169e5=>o(_0x3d63ee,'ELEMENT_TABLE_OF_CONTENTS',_0x2169e5));}}class Dt extends _0x1fbed8{['afterInit'](){const _0x2581bc=this['editor'];if(!_0x2581bc['plugins']['has']('Title'))return;const _0x15af64=_0x2581bc['plugins']['get']('TrackChangesEditing');_0x15af64['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2581bc['locale'],'ELEMENT_TITLE')),_0x2581bc['model']['document']['registerPostFixer'](_0x33a499=>{let _0x4d24f7=!0x1;const _0x23bc0a=Array['from'](_0x2581bc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47a9e1,data:_0x8bb636}of _0x23bc0a){const {group:_0x52d0f3}=_0x15af64['_splitMarkerName'](_0x47a9e1);if('suggestion'!==_0x52d0f3||!_0x8bb636['newRange'])continue;const _0x39c76d=_0x8bb636['newRange'],_0x38b077=_0x39c76d['end']['nodeBefore'];if(!_0x38b077||!_0x38b077['is']('element','title-content'))continue;if(!_0x39c76d['start']['isTouching'](_0x39c76d['end']))continue;const _0x35ea72=_0x2581bc['model']['schema']['getNearestSelectionRange'](_0x39c76d['end'],'forward');if(_0x35ea72&&_0x35ea72['isCollapsed']){const _0x3adb5c=_0x33a499['createRange'](_0x39c76d['start'],_0x35ea72['start']);_0x3adb5c['isEqual'](_0x39c76d)||(_0x33a499['updateMarker'](_0x47a9e1,{'range':_0x3adb5c}),_0x4d24f7=!0x0);}_0x4d24f7||(_0x33a499['removeMarker'](_0x47a9e1),_0x4d24f7=!0x0);}return _0x4d24f7;});}}class Nt extends _0x1fbed8{['afterInit'](){const _0xd5fbfe=this['editor'],_0x5a02e0=_0xd5fbfe['plugins']['get']('TrackChangesEditing');_0xd5fbfe['plugins']['has']('UndoEditing')&&(_0x5a02e0['enableCommand']('undo'),_0x5a02e0['enableCommand']('redo'));}}class Mt extends _0x1fbed8{static get['requires'](){return[jt];}['afterInit'](){const _0x4b664b=this['editor'];if(!_0x4b664b['plugins']['has']('TableCaptionEditing'))return;_0x4b664b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1fbed8{['tableProperties'];['tableCellProperties'];constructor(_0x4b11b8){super(_0x4b11b8),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x3cd5b7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x171131 of this['tableProperties'])_0x3cd5b7['enableCommand'](_0x171131,(_0x151d19,_0x4bbd94)=>{const _0x11bb21=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x171131,[_0x11bb21],this['tableProperties'],'tableProperties',_0x151d19,_0x4bbd94);});_0x3cd5b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3cd5b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3cd5b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xc23efc,_0x343772)=>this['handleDiscardAction'](this['tableProperties'],_0xc23efc,_0x343772)),_0x3cd5b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x32e52d of this['tableCellProperties'])_0x3cd5b7['enableCommand'](_0x32e52d,(_0x23383b,_0x4cec0b)=>{const _0x4d6d38=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x32e52d,_0x4d6d38,this['tableCellProperties'],'tableCellProperties',_0x23383b,_0x4cec0b);});_0x3cd5b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3cd5b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3cd5b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x427f58,_0xcc791f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x427f58,_0xcc791f)),_0x3cd5b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3cd5b7['descriptionFactory']['registerDescriptionCallback'](_0x52b9dc=>this['handleSuggestionDescription'](_0x52b9dc));}['_handlePropertyChange'](_0x433d20,_0x19cb73,_0x13a405,_0x1fa514,_0x4cd3db,_0x4ec357){const _0x3ce3dd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4ec357['batch'],()=>{for(const _0x1d6952 of _0x19cb73){if(this['_getSuggestion'](_0x1d6952,_0x1fa514))_0x4cd3db(_0x4ec357);else{const _0x353a51={};for(const _0x393887 of _0x13a405){const _0x443f4b=_0x1d6952['getAttribute'](_0x393887);void 0x0!==_0x443f4b&&(_0x353a51[_0x393887]=_0x443f4b);}_0x4cd3db(_0x4ec357),_0x3ce3dd['markBlockFormat'](_0x1d6952,{'commandParams':[_0x353a51]},[],_0x1fa514);}}});}['handleDiscardAction'](_0x5f202b,_0x72864,_0x40fdbc){const _0x541e48=_0x72864[0x0]['start']['nodeAfter'],_0x3b41cb=_0x40fdbc['commandParams'][0x0];this['editor']['model']['change'](_0x155060=>{for(const _0x49ff16 of _0x5f202b)void 0x0!==_0x3b41cb[_0x49ff16]?_0x155060['setAttribute'](_0x49ff16,_0x3b41cb[_0x49ff16],_0x541e48):_0x155060['removeAttribute'](_0x49ff16,_0x541e48);});}['handleSuggestionDescription'](_0x67babf){if(_0x67babf['data'])switch(_0x67babf['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'](_0x466c7c,_0x43eb93){const _0x29a7f8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x56cf4a of _0x29a7f8['getSuggestions']({'skipNotAttached':!0x0})){const _0x55f5ed=_0x56cf4a['getContainedElement']();if(_0x56cf4a['subType']===_0x43eb93&&_0x55f5ed===_0x466c7c)return _0x56cf4a;}return null;}}const m='$elementName';class p extends _0x1fbed8{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2c81c1,_0x4a148a,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x2e6cfc){function _0x54b89d(_0x2ffa75){return _0x2ffa75['map'](_0x269532=>String['fromCharCode'](_0x269532))['join']('');}super(_0x2e6cfc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1d06d2,_0x1644fa,_0x3b166c,_0x5a0aa8)=>{this['_model']['change'](()=>{for(const _0x16e368 of[..._0x5a0aa8,..._0x3b166c])this['_model']['markers']['has'](_0x16e368)&&_0x2e6cfc['editing']['reconvertMarker'](_0x16e368);});}),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']=_0x2e6cfc['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(),_0x2e6cfc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2e6cfc['config']['get']('trackChanges.trackFormatChanges'),_0x2e6cfc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2e6cfc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x2e6cfc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x54b89d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x54b89d([0x34,0x30,0x34,0x38,0x31,0x32,0x31,0x30]);}['init'](){const _0x50dc99=this['editor'],_0x38c95c=(_0x347e46,_0x1ad897)=>{if('attribute'!=_0x347e46)return'ck-suggestion-marker-'+_0x347e46;const _0x1a524e=_0x1ad897['split']('|')[0x0];return this['_isBlockAttribute'](_0x1a524e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x50dc99['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x166174=>{const {id:_0x28b31f,type:_0x154620,subType:_0x165e4c}=this['_splitMarkerName'](_0x166174['markerName']),_0x3d0156=['ck-suggestion-marker',_0x38c95c(_0x154620,_0x165e4c)];let _0x1a2338=0xbb8;return this['activeMarkers']['includes'](_0x166174['markerName'])&&(_0x3d0156['push']('ck-suggestion-marker--active'),_0x1a2338=0xbc2),'deletion'==_0x154620&&(_0x1a2338+=0x5),{'classes':_0x3d0156,'attributes':{'data-suggestion':_0x28b31f},'priority':_0x1a2338};}}),_0x50dc99['conversion']['for']('dataDowncast')['add'](_0x57fb6b=>{_0x57fb6b['on']('addMarker:suggestion',(_0x89908b,_0x4573b3,_0x433b47)=>{if(!_0x433b47['options']['showSuggestionHighlights'])return;const _0x53ace2=_0x4573b3['item'];if(!_0x53ace2)return;const _0x24a8ef=_0x433b47['mapper']['toViewElement'](_0x53ace2);_0x50dc99['model']['schema']['isObject'](_0x53ace2)&&_0x24a8ef&&!_0x24a8ef['getCustomProperty']('widget')&&_0x24a8ef['is']('containerElement')&&_0x7ac521(_0x24a8ef,_0x433b47['writer']);},{'priority':'high'});}),_0x50dc99['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5b0f46,_0x399487)=>{if(!_0x399487['options']['showSuggestionHighlights'])return null;const {type:_0x30fb66,subType:_0x206d94}=this['_splitMarkerName'](_0x5b0f46['markerName']);return{'classes':['ck-suggestion-marker',_0x38c95c(_0x30fb66,_0x206d94)],'priority':0xbb8};}});const _0x1b6ed1=({showActiveMarkers:_0x2ed151=!0x0,isAttributeSuggestion:_0x5041a5=!0x1}={})=>(_0xe7ff8b,_0x23aa82,_0x227684)=>{if(!_0x23aa82['item'])return;const {id:_0x549bcd}=this['_splitMarkerName'](_0x23aa82['markerName']);if(_0x5041a5){const _0x3255ce=this['_suggestions']['get'](_0x549bcd),_0x58adf8=this['_getAttributeKey'](_0x3255ce);if(!this['_isBlockAttribute'](_0x58adf8))return;}if(_0x23aa82['item']['is']('selection'))return void _0x227684['consumable']['consume'](_0x23aa82['item'],_0xe7ff8b['name']);const _0xa68678=_0x227684['mapper']['toViewElement'](_0x23aa82['item']);if(_0x23aa82['item']['is']('element')&&_0x50dc99['model']['schema']['isBlock'](_0x23aa82['item'])&&!_0xa68678['getCustomProperty']('addHighlight')){_0x227684['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xa68678),_0x227684['writer']['setAttribute']('data-suggestion',_0x549bcd,_0xa68678),_0x227684['mapper']['bindElementToMarker'](_0xa68678,_0x23aa82['markerName']),_0x2ed151&&(this['activeMarkers']['includes'](_0x23aa82['markerName'])?_0x227684['writer']['addClass']('ck-suggestion-marker--active',_0xa68678):_0x227684['writer']['removeClass']('ck-suggestion-marker--active',_0xa68678));for(const _0x1eace2 of _0x50dc99['model']['createRangeIn'](_0x23aa82['item'])['getItems']())_0x227684['consumable']['consume'](_0x1eace2,_0xe7ff8b['name']);_0x227684['consumable']['consume'](_0x23aa82['item'],_0xe7ff8b['name']);}};_0x50dc99['conversion']['for']('dataDowncast')['add'](_0x10882a=>{_0x10882a['on']('addMarker:suggestion:formatBlock',(_0x1a5ca9,_0x21ddab,_0x184e57)=>{_0x184e57['options']['showSuggestionHighlights']&&_0x1b6ed1({'showActiveMarkers':!0x1})(_0x1a5ca9,_0x21ddab,_0x184e57);},{'priority':'highest'});}),_0x50dc99['conversion']['for']('dataDowncast')['add'](_0x48ad0b=>{_0x48ad0b['on']('addMarker:suggestion:attribute',(_0x5457c5,_0x2037ca,_0xa31df0)=>{_0xa31df0['options']['showSuggestionHighlights']&&_0x1b6ed1({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5457c5,_0x2037ca,_0xa31df0);},{'priority':'highest'});}),_0x50dc99['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x19edc6,_0x49dfd7)=>_0x49dfd7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x19edc6['substr'](0xb)}}),_0x50dc99['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x59f071,{writer:_0x456fd0})=>{let _0x500a36='suggestion:'+_0x59f071['getAttribute']('suggestion-type')+':'+_0x59f071['getAttribute']('id');return _0x59f071['getAttribute']('marker-count')&&(_0x500a36+=':'+_0x59f071['getAttribute']('marker-count')),_0x456fd0['createElement']('$marker',{'data-name':_0x500a36});}}),_0x50dc99['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x50dc99['conversion']['for']('editingDowncast')['add'](_0x1de08b=>{_0x1de08b['on']('addMarker:suggestion:formatBlock',_0x1b6ed1(),{'priority':'high'});}),_0x50dc99['conversion']['for']('editingDowncast')['add'](_0x5645c2=>{_0x5645c2['on']('addMarker:suggestion:attribute',_0x1b6ed1({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x50dc99['conversion']['for']('editingDowncast')['add'](_0x422f0a=>{_0x422f0a['on']('removeMarker:suggestion:formatBlock',(_0x562001,_0x428c85,_0x301267)=>{const _0x26cc9c=_0x301267['mapper']['markerNameToElements'](_0x428c85['markerName']);if(_0x26cc9c){for(const _0x3863ba of _0x26cc9c)_0x3863ba['getCustomProperty']('addHighlight')||(_0x301267['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3863ba),_0x301267['writer']['removeAttribute']('data-suggestion',_0x3863ba),_0x301267['mapper']['unbindElementFromMarkerName'](_0x3863ba,_0x428c85['markerName']));}},{'priority':'high'});}),_0x50dc99['conversion']['for']('editingDowncast')['add'](_0x15b368=>{_0x15b368['on']('removeMarker:suggestion:attribute',(_0x4265af,_0xda6255,_0x295da4)=>{const _0x45c0c9=_0x295da4['mapper']['markerNameToElements'](_0xda6255['markerName']);if(!_0x45c0c9)return;const {id:_0x37b6c5}=this['_splitMarkerName'](_0xda6255['markerName']),_0x3b1b50=this['_suggestions']['get'](_0x37b6c5),_0x3e0757=this['_getAttributeKey'](_0x3b1b50);if(this['_isBlockAttribute'](_0x3e0757)){for(const _0x2615f2 of _0x45c0c9)_0x2615f2['getCustomProperty']('addHighlight')||(_0x295da4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2615f2),_0x295da4['writer']['removeAttribute']('data-suggestion',_0x2615f2),_0x295da4['mapper']['unbindElementFromMarkerName'](_0x2615f2,_0xda6255['markerName']));}},{'priority':'high'});}),_0x50dc99['model']['document']['registerPostFixer'](_0x82173b=>{let _0x4bd829=!0x1;const _0x361be4=Array['from'](_0x50dc99['model']['document']['differ']['getChangedMarkers']()),_0x25ca1b=new Set();for(const {name:_0x575b57,data:_0x48a7e7}of _0x361be4){const {group:_0x1f9b79,type:_0x35c0a5,subType:_0x2cfe7f,id:_0x44261f}=this['_splitMarkerName'](_0x575b57);if('suggestion'!==_0x1f9b79)continue;const _0x54e5ac=this['_suggestions']['get'](_0x44261f);if(null!=_0x48a7e7['newRange']){'formatInline'==_0x35c0a5&&(_0x4bd829=_0x4bd829||Et(_0x48a7e7['newRange'],_0x575b57,_0x82173b,_0x50dc99['model']['schema']));const _0xb4b1c8='attribute'==_0x35c0a5&&this['_isBlockAttribute'](_0x2cfe7f['split']('|')[0x0]);if(_0x48a7e7['newRange']['isCollapsed']||'$graveyard'==_0x48a7e7['newRange']['root']['rootName']||'formatBlock'==_0x35c0a5&&!Ut(_0x48a7e7['newRange'])||_0xb4b1c8&&!Ut(_0x48a7e7['newRange'])||'deletion'==_0x35c0a5&&!(!Tt(_0x51be9d=_0x48a7e7['newRange'])&&!function(_0x1403b1){return _0x1403b1['start']['parent']==_0x1403b1['end']['nodeBefore']&&_0x1403b1['start']['isAtEnd'];}(_0x51be9d)))_0x82173b['removeMarker'](_0x575b57),_0x4bd829=!0x0;else{if(!_0x54e5ac||!_0x54e5ac['isInContent'])continue;_0x25ca1b['add'](_0x54e5ac);}}}var _0x51be9d;return _0x25ca1b['size']>0x0&&(_0x4bd829=!!this['_joinWithAdjacentSuggestions'](_0x25ca1b)||_0x4bd829),_0x4bd829;}),_0x50dc99['model']['document']['registerPostFixer'](_0x412a59=>{let _0x35ce9e=!0x1;for(const _0x478f8f of _0x50dc99['model']['document']['differ']['getChanges']())if('insert'==_0x478f8f['type'])for(const _0x5494cf of this['_suggestions']['values']()){if(_0x5494cf['isMultiRange']||!_0x5494cf['isInContent'])continue;const _0x379428='formatBlock'==_0x5494cf['type'],_0x4cc9aa=this['_getAttributeKey'](_0x5494cf),_0x270972=_0x4cc9aa&&this['_isBlockAttribute'](_0x4cc9aa);if(!_0x379428&&!_0x270972)continue;const _0x261f19=_0x5494cf['getFirstRange']();if(_0x261f19['start']['parent']!=_0x261f19['end']['parent']&&!_0x261f19['end']['isAtEnd']){const _0x1a5d7d=_0x50dc99['model']['createPositionAt'](_0x261f19['start']['nodeAfter'],'end'),_0x30f82e=_0x50dc99['model']['createRange'](_0x261f19['start'],_0x1a5d7d);_0x412a59['updateMarker'](_0x5494cf['getFirstMarker'](),{'range':_0x30f82e}),_0x35ce9e=!0x0;}}return _0x35ce9e;}),_0x50dc99['model']['document']['registerPostFixer'](_0x395132=>this['_processAttributeChanges'](_0x395132)),_0x50dc99['model']['document']['registerPostFixer'](_0x1e7a0e=>!_0x1e7a0e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1e7a0e)),_0x50dc99['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x50dc99['model']['document']['on']('change:data',(_0x4d8c58,_0x369514)=>{if(!_0x369514['isLocal']||_0x369514['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xfa5e90=_0x50dc99['model']['document']['differ']['getChanges']();if(0x0==_0xfa5e90['length'])return;const _0x16494b=[],_0x6b7c4d=_0xfa5e90['filter'](_0x353476=>'attribute'==_0x353476['type']),_0x912ab2=_0xfa5e90['filter'](_0x4ec094=>'insert'==_0x4ec094['type']&&'$text'!=_0x4ec094['name']);for(const _0x5defcb of _0x6b7c4d)this['_isRegisteredAttribute'](_0x5defcb['attributeKey'])&&_0x16494b['push']({'key':_0x5defcb['attributeKey'],'newValue':_0x5defcb['attributeNewValue'],'oldValue':_0x5defcb['attributeOldValue'],'range':Ot(_0x5defcb['range'],_0x50dc99['model'])});for(const _0x25bfec of _0x912ab2){if('rename'!=_0x25bfec['action']&&'refresh'!=_0x25bfec['action'])continue;const _0x418229=Gt(_0x25bfec['position']['nodeAfter'],_0x50dc99['model']),_0x29aa8c=_0x25bfec['before'];'rename'==_0x25bfec['action']&&_0x16494b['push']({'key':m,'newValue':_0x25bfec['name'],'oldValue':_0x29aa8c['name'],'range':_0x418229});for(const [_0x1214b1,_0x170572]of _0x29aa8c['attributes']){if(!this['_isRegisteredAttribute'](_0x1214b1))continue;const _0x58b847=_0x25bfec['attributes']['get'](_0x1214b1);_0x170572!==_0x58b847&&_0x16494b['push']({'key':_0x1214b1,'newValue':_0x58b847,'oldValue':_0x170572,'range':_0x418229});}for(const [_0x11fc8d,_0x372b24]of _0x25bfec['attributes'])this['_isRegisteredAttribute'](_0x11fc8d)&&(_0x29aa8c['attributes']['has'](_0x11fc8d)||_0x16494b['push']({'key':_0x11fc8d,'newValue':_0x372b24,'oldValue':null,'range':_0x418229}));}0x0!=_0x16494b['length']&&_0x50dc99['model']['enqueueChange'](_0x369514,_0x5280b0=>{const _0x9bf54d=_0x267db8();for(const {range:_0x335573,key:_0x456ba8,oldValue:_0x42cdab,newValue:_0x4ec7cb}of _0x16494b)this['markAttributeChange'](_0x335573,_0x456ba8,_0x42cdab,_0x4ec7cb,{'groupId':_0x9bf54d});this['_reduceExistingSuggestions'](_0x5280b0,_0x16494b);});},{'priority':'lowest'}),_0x50dc99['model']['markers']['on']('update:suggestion',(_0x50145b,_0x66cf95,_0x37080d)=>{if(null==_0x37080d){const {id:_0x4b095f}=this['_splitMarkerName'](_0x66cf95['name']),_0x1c1e04=this['_suggestions']['get'](_0x4b095f);_0x1c1e04&&_0x1c1e04['addMarkerName'](_0x66cf95['name']);}}),_0x50dc99['model']['document']['on']('change:data',()=>{const _0x7b8a5=Array['from'](_0x50dc99['model']['document']['differ']['getChangedMarkers']())['filter'](_0x223f58=>'suggestion'===this['_splitMarkerName'](_0x223f58['name'])['group']);if(0x0===_0x7b8a5['length'])return;_0x7b8a5['sort']((_0x533293,_0x59325c)=>{const _0x5f1f4e=_0x533293['data']['oldRange'],_0x5f52cf=_0x59325c['data']['oldRange'];return null===_0x5f1f4e&&null===_0x5f52cf?0x0:null===_0x5f1f4e&&null!==_0x5f52cf?-0x1:null!==_0x5f1f4e&&null===_0x5f52cf?0x1:_0x5f1f4e['start']['isBefore'](_0x5f52cf['start'])?-0x1:0x1;});const _0x56f7af=new Set(),_0x14dfbe=new Set();for(const {name:_0x2e0f96,data:_0x34e7ac}of _0x7b8a5){const {id:_0x1e1922}=this['_splitMarkerName'](_0x2e0f96);if(null===_0x34e7ac['oldRange']){const _0x4c68f9=this['_handleNewSuggestionMarker'](_0x2e0f96);_0x14dfbe['add'](_0x4c68f9);}else{const _0x3b1075=this['_suggestions']['get'](_0x1e1922);null!==_0x34e7ac['newRange']||_0x3b1075['isInContent']?(_0x56f7af['add'](_0x3b1075['head']),_0x14dfbe['add'](_0x3b1075)):this['_removeSuggestion'](_0x3b1075);}}_0x14dfbe['size']>0x0&&this['_refreshSuggestionsChain'](_0x14dfbe);for(const _0x1d1586 of _0x56f7af)this['fire']('suggestionChanged',_0x1d1586);}),_0x50dc99['model']['on']('applyOperation',(_0x211414,_0x197dbf)=>{const _0x43b8e6=_0x197dbf[0x0];if(!this['_suggestions']['size'])return;if(!_0x43b8e6['isDocumentOperation'])return;if(_0x43b8e6['batch']['isUndo']||!_0x43b8e6['batch']['isLocal'])return;let _0x497ac7,_0x287878;switch(_0x43b8e6['type']){case'insert':_0x497ac7=_0x50dc99['model']['createPositionAt'](_0x43b8e6['position']),_0x287878=_0x497ac7['getShiftedBy'](_0x43b8e6['howMany']);break;case'split':_0x497ac7=_0x50dc99['model']['createPositionAt'](_0x43b8e6['splitPosition']),_0x287878=_0x50dc99['model']['createPositionAt'](_0x43b8e6['moveTargetPosition']);break;case'move':_0x497ac7=_0x50dc99['model']['createPositionAt'](_0x43b8e6['targetPosition']),_0x287878=_0x497ac7['getShiftedBy'](_0x43b8e6['howMany']);break;default:return;}const _0x39a1f9=_0x50dc99['model']['createRange'](_0x497ac7,_0x287878);_0x50dc99['model']['change'](()=>{for(const {suggestion:_0xa141ef,meta:_0x1e5ec6}of this['_findSuggestions'](_0x39a1f9)){if(_0xa141ef['isMultiRange'])continue;if('formatInline'==_0xa141ef['type'])continue;const _0x10a9b=this['_getAttributeKey'](_0xa141ef);if(_0x10a9b&&this['_isBlockAttribute'](_0x10a9b)&&'split'!=_0x43b8e6['type'])continue;const _0x126847=_0xa141ef['data']&&_0xa141ef['data']['multipleBlocks'];('formatBlock'!=_0xa141ef['type']||'split'==_0x43b8e6['type']&&!_0x126847)&&(_0x1e5ec6['containsRangeInObject']||'insertion'==_0xa141ef['type']&&_0x1e5ec6['isOwn']||_0xa141ef['getFirstRange']()['containsRange'](_0x39a1f9)&&this['_breakSuggestionMarker'](_0xa141ef,_0x497ac7,_0x287878));}});},{'priority':'lowest'}),_0x50dc99['model']['on']('deleteContent',(_0x1a6bf3,_0x59ac27)=>{const _0x390e0d=_0x59ac27[0x0],_0x46cf25=_0x59ac27[0x1];if(_0x46cf25&&_0x46cf25['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x390e0d['isCollapsed'])return;const _0x9a40c8=_0x50dc99['model']['schema'],{start:_0x5c4ec5,end:_0x48576b}=_0x390e0d['getFirstRange'](),_0x2e66c0=_0x5c4ec5['nodeAfter']&&_0x9a40c8['isLimit'](_0x5c4ec5['nodeAfter'])?null:_0x9a40c8['getNearestSelectionRange'](_0x5c4ec5,'forward'),_0x4b5e47=_0x48576b['nodeBefore']&&_0x9a40c8['isLimit'](_0x48576b['nodeBefore'])?null:_0x9a40c8['getNearestSelectionRange'](_0x48576b,'backward'),_0x1268d7=_0x50dc99['model']['createRange'](_0x2e66c0?_0x2e66c0['start']:_0x5c4ec5,_0x4b5e47?_0x4b5e47['end']:_0x48576b);_0x50dc99['model']['change'](_0x483098=>{this['markDeletion'](_0x1268d7);const _0x2fc52c=_0x50dc99['model']['schema']['getNearestSelectionRange'](_0x1268d7['start']);_0x390e0d['is']('documentSelection')?_0x483098['setSelection'](_0x2fc52c):_0x390e0d['setTo'](_0x2fc52c);}),_0x1a6bf3['stop']();},{'priority':_0x4600a6['normal']+0xa}),_0x50dc99['model']['on']('insertContent',(_0x56a2d7,_0x4f8c7d)=>{const _0x16fe1a=_0x4f8c7d[_0x4f8c7d['length']-0x1];_0x16fe1a&&_0x16fe1a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x50dc99['model']['change'](()=>{let _0x1ded41=_0x50dc99['model']['insertContent'](_0x4f8c7d[0x0],_0x4f8c7d[0x1],_0x4f8c7d[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ded41)return;_0x56a2d7['return']=_0x1ded41['clone']();const _0x190640=_0x1ded41['end']['nodeBefore'],_0x356fac=_0x50dc99['model']['schema'];_0x190640&&_0x356fac['isBlock'](_0x190640)&&!_0x356fac['isObject'](_0x190640)&&(_0x1ded41=_0x50dc99['model']['createRange'](_0x1ded41['start'],_0x50dc99['model']['createPositionAt'](_0x190640,'end'))),this['markInsertion'](_0x1ded41);}),_0x56a2d7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1d3a47=new $(_0x50dc99,this['_suggestions']);_0x50dc99['commands']['add']('acceptSuggestion',_0x1d3a47),this['enableCommand']('acceptSuggestion');const _0x449ab2=new B(_0x50dc99,this['_suggestions']);_0x50dc99['commands']['add']('discardSuggestion',_0x449ab2),this['enableCommand']('discardSuggestion'),_0x50dc99['commands']['add']('acceptAllSuggestions',new x(_0x50dc99,_0x1d3a47,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x50dc99['commands']['add']('discardAllSuggestions',new x(_0x50dc99,_0x449ab2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x50dc99['commands']['add']('acceptSelectedSuggestions',new R(_0x50dc99,_0x1d3a47,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x50dc99['commands']['add']('discardSelectedSuggestions',new R(_0x50dc99,_0x449ab2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x131700=_0x50dc99['plugins']['get']('CommentsRepository');this['listenTo'](_0x131700,'addComment',(_0x3a6c21,{threadId:_0x2c0d96})=>{const _0x54bb4a=this['_suggestions']['get'](_0x2c0d96);_0x54bb4a&&_0x54bb4a['commentThread']&&0x1===_0x54bb4a['commentThread']['length']&&this['_updateSuggestionData'](_0x2c0d96,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x131700,'removeComment',(_0x27c328,{threadId:_0x31b381})=>{const _0x1030a1=this['_suggestions']['get'](_0x31b381);_0x1030a1&&_0x1030a1['commentThread']&&!_0x1030a1['commentThread']['length']&&this['_updateSuggestionData'](_0x31b381,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x27cf07){if(this['_adapter'])throw new _0x10ffdc('track-changes-adapter-already-set',this);this['_adapter']=_0x27cf07;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x439add=!0x1,toJSON:_0x1ef1bc=!0x1}={}){const _0x1a1719=[];for(const _0x3d99bb of this['_suggestions']['values']())_0x439add&&!_0x3d99bb['isInContent']||_0x1a1719['push'](_0x3d99bb);return _0x1ef1bc?_0x1a1719['map'](_0x5708c0=>_0x5708c0['toJSON']()):_0x1a1719;}['getSuggestion'](_0xe09bce){const _0x21086b=this['_suggestions']['get'](_0xe09bce);if(!_0x21086b)throw new _0x10ffdc('track-changes-suggestion-not-found',this);return _0x21086b;}['hasSuggestion'](_0x3c8983){return this['_suggestions']['has'](_0x3c8983);}['addSuggestionData'](_0x4b699d){const {authorId:_0x9b5777,id:_0x278be9,attributes:_0x292b82}=_0x4b699d,[_0x3c975f,_0x587eda]=_0x4b699d['type']['split'](':'),_0x20431e=this['_suggestions']['get'](_0x278be9)||this['_createSuggestion'](_0x3c975f,_0x587eda,_0x278be9,_0x9b5777,_0x292b82);if(this['_addThreadToSuggestion'](_0x20431e),this['_checkSuggestionCorrectness'](_0x20431e,_0x3c975f,_0x587eda||null,_0x9b5777),_0x20431e['createdAt']=_0x4b699d['createdAt'],_0x20431e['_isDataLoaded']=!0x0,_0x292b82&&_0x292b82['@external']){const _0x1d5a43=_0x292b82['@external'],_0x16014e=this['_getExternalAuthor'](_0x1d5a43['authorName']);_0x20431e['authoredAt']=_0x1d5a43['createdAt'],_0x20431e['author']=_0x16014e,_0x20431e['isExternal']=!0x0;}else _0x20431e['authoredAt']=_0x4b699d['createdAt'];switch(_0x4b699d['data']&&(_0x20431e['data']=_0x4b699d['data']),_0x4b699d['attributes']&&(_0x20431e['attributes']=_0x4b699d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x20431e['_saved']=!0x0),this['_suggestionState']['get'](_0x20431e)){case'notReady':this['_suggestionState']['set'](_0x20431e,'dataReady');break;case'markerReady':_0x20431e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x20431e])),this['_refreshSuggestionsChain'](new Set([_0x20431e])),this['_suggestionState']['set'](_0x20431e,'ready'),this['fire']('suggestionLoaded',_0x20431e)):this['_suggestionState']['set'](_0x20431e,'removed');}return _0x20431e;}['acceptSuggestion'](_0x4f086d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54e52a of _0x4f086d['getAllAdjacentSuggestions']())_0x54e52a['accept']();});});}['discardSuggestion'](_0x46c6f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2baa12 of _0x46c6f8['getAllAdjacentSuggestions']())_0x2baa12['discard']();});});}['enableCommand'](_0x75d56c,_0x38f4e4){const _0x4bdfbc=this['editor']['commands']['get'](_0x75d56c);if(!_0x4bdfbc)throw new _0x10ffdc('track-changes-command-not-found',this,{'commandName':_0x75d56c});if(this['_enabledCommands']['has'](_0x4bdfbc))throw new _0x10ffdc('track-changes-enable-command-twice',this,{'commandName':_0x75d56c});this['_enabledCommands']['add'](_0x4bdfbc),_0x38f4e4&&_0x4bdfbc['on']('execute',(_0x1e909c,_0xbc9432)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xbc9432['length']>0x0&&_0xbc9432[_0xbc9432['length']-0x1]&&_0xbc9432[_0xbc9432['length']-0x1]['forceDefaultExecution']?_0xbc9432['pop']():(_0x1e909c['return']=_0x38f4e4((..._0x29b9f2)=>_0x4bdfbc['execute'](..._0x29b9f2,{'forceDefaultExecution':!0x0}),..._0xbc9432),_0x1e909c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2ff77f){let _0x57c988,_0x1942d0;const _0x330e50=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x57c988=_0x2ff77f();}catch(_0x1a3196){_0x1942d0=_0x1a3196;}return _0x330e50||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1942d0&&_0x10ffdc['rethrowUnexpectedError'](_0x1942d0,this),_0x57c988;}['markInsertion'](_0x2732c9,_0x57a924=null,_0x514011={}){if(_0x2732c9['isCollapsed'])return null;const _0x3e9c7d=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2d6d47,meta:_0x5598c8}of this['_findSuggestions'](_0x2732c9,'insertion'))if(_0x5598c8['isOwn']){if(!_0x5598c8['isNextTo']){if(_0x5598c8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2d6d47,_0x514011))continue;return _0x2d6d47;}if(Lt(_0x2d6d47,_0x514011))return _0x2d6d47;this['_breakSuggestionMarker'](_0x2d6d47,_0x2732c9['start'],_0x2732c9['end']);break;}if(_0x57a924==_0x2d6d47['subType']&&Lt(_0x2d6d47,_0x514011)){const _0x5e2e30=_0x2d6d47['getFirstRange']();return _0x5e2e30['start']['isEqual'](_0x2732c9['end'])?this['_setSuggestionRange'](_0x2d6d47,this['_model']['createRange'](_0x2732c9['start'],_0x5e2e30['end'])):this['_setSuggestionRange'](_0x2d6d47,this['_model']['createRange'](_0x5e2e30['start'],_0x2732c9['end'])),_0x2d6d47;}}const _0x10de58=_0x267db8(),_0x24e7eb=_0x3e9c7d['id'],_0x2a20c0=_0x57a924?'insertion:'+_0x57a924:'insertion',_0xad0816=this['_setSuggestionData']({'id':_0x10de58,'type':_0x2a20c0,'createdAt':new Date(),'authorId':_0x24e7eb,'attributes':_0x514011});return this['_addSuggestionMarker'](_0x2a20c0,_0x10de58,_0x24e7eb,_0x2732c9),_0xad0816;}['markMultiRangeInsertion'](_0x4e8a4d,_0x2e8d0d='multi',_0x26abf2={}){const _0x527aa2=this['editor']['plugins']['get']('Users')['me'],_0x4ae240=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2e8d0d,'join');for(const _0x42312e of this['getSuggestions']())if(_0x42312e['author']['id']==_0x527aa2['id']&&'insertion'==_0x42312e['type']&&_0x42312e['subType']==_0x2e8d0d&&Lt(_0x42312e,_0x26abf2)&&(_0x4ae240(_0x42312e['getRanges'](),_0x4e8a4d)||_0x4ae240(_0x4e8a4d,_0x42312e['getRanges']()))){for(const _0x3aa3dd of _0x4e8a4d)_0x42312e['addRange'](_0x3aa3dd);return _0x42312e;}for(const {suggestion:_0x503cd7,meta:_0x1d25a9}of this['_findSuggestions'](_0x4e8a4d,'insertion')){if(!_0x1d25a9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1d25a9['containsRangeInObject'])continue;if(!Lt(_0x503cd7,_0x26abf2))continue;let _0x35e73b=!0x0;for(const _0xddb8c8 of _0x503cd7['getRanges']())for(const _0xaa4525 of _0x4e8a4d)if(!_0xddb8c8['containsRange'](_0xaa4525)){_0x35e73b=!0x1;break;}if(_0x35e73b)return _0x503cd7;}const _0x3f2f69=_0x267db8(),_0x122b8e=_0x527aa2['id'],_0x16af22='insertion:'+_0x2e8d0d,_0x24555d=this['_setSuggestionData']({'id':_0x3f2f69,'type':_0x16af22,'createdAt':new Date(),'authorId':_0x122b8e,'attributes':_0x26abf2});for(const _0x23ba05 of _0x4e8a4d)this['_addSuggestionMarker'](_0x16af22,_0x3f2f69,_0x122b8e,_0x23ba05,u['getMultiRangeId']());return _0x24555d;}['markInlineFormat'](_0x40a036,_0x1561de,_0x6fbffd=null,_0x25a9a0={}){if(_0x6fbffd=_0x6fbffd||Vt(_0x1561de),_0x40a036['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3fc25c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6fbffd,'accept');return this['forceDefaultExecution'](()=>_0x3fc25c([_0x40a036],_0x1561de,_0x25a9a0)),null;}const _0x373334=this['editor']['plugins']['get']('Users')['me'],_0x2997af=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xb3192f,meta:_0x222a72}of this['_findSuggestions'](_0x40a036,'insertion'))_0x222a72['isOwn']&&!_0x222a72['isInsideObject']&&_0x2997af['push'](..._0xb3192f['getRanges']());}const _0x1066cf=function(_0x3c9ed6,_0x9f63cf){const _0x144272=[];for(const _0x2416d7 of _0x9f63cf){const _0x328ce3=_0x3c9ed6['getIntersection'](_0x2416d7);_0x328ce3&&_0x144272['push'](_0x328ce3);}return _0x144272;}(_0x40a036,_0x2997af),_0x5bbeda=function(_0x11c842,_0x2a7213){const _0xec0b02=[_0x11c842];for(const _0x3d1b60 of _0x2a7213){let _0x1c6ef5=0x0;for(;_0x1c6ef5<_0xec0b02['length'];){const _0x297455=_0xec0b02[_0x1c6ef5]['getDifference'](_0x3d1b60);_0xec0b02['splice'](_0x1c6ef5,0x1,..._0x297455),_0x1c6ef5+=_0x297455['length'];}}return _0xec0b02;}(_0x40a036,_0x2997af);_0x1066cf['length']&&this['_model']['change'](()=>{for(const _0x554e66 of _0x1066cf){const _0x4d00dc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6fbffd,'accept');this['forceDefaultExecution'](()=>_0x4d00dc([_0x554e66],_0x1561de,_0x25a9a0));}});for(const _0x4feda3 of _0x5bbeda){let _0x50d850=null,_0x496ede=_0x4feda3['start'],_0x4e4266=_0x4feda3['end'];for(const {suggestion:_0x2d5cc3,meta:_0x223ec4}of this['_findSuggestions'](_0x4feda3,'formatInline')){if(!_0x223ec4['isOwn'])continue;if(_0x2d5cc3['subType']!=_0x6fbffd)continue;if(!Lt(_0x2d5cc3,_0x25a9a0))continue;const _0x138524=_0x2d5cc3['getFirstRange']();if(_0x138524['containsRange'](_0x4feda3,!0x0))return null;_0x496ede=_0x496ede['isBefore'](_0x138524['start'])?_0x496ede:_0x138524['start'],_0x4e4266=_0x4e4266['isAfter'](_0x138524['end'])?_0x4e4266:_0x138524['end'],_0x50d850?_0x138524['start']['isBefore'](_0x50d850['getFirstRange']()['start'])?(_0x50d850['removeMarkers'](),_0x50d850=_0x2d5cc3):_0x2d5cc3['removeMarkers']():_0x50d850=_0x2d5cc3;}const _0x3a6056=this['_model']['createRange'](_0x496ede,_0x4e4266);if(_0x50d850)this['_setSuggestionRange'](_0x50d850,_0x3a6056);else{const _0x5a1e3d=_0x267db8(),_0x2b17d8=_0x373334['id'];this['_setSuggestionData']({'id':_0x5a1e3d,'type':'formatInline:'+_0x6fbffd,'data':_0x1561de,'createdAt':new Date(),'authorId':_0x2b17d8,'attributes':_0x25a9a0}),this['_addSuggestionMarker']('formatInline:'+_0x6fbffd,_0x5a1e3d,_0x2b17d8,_0x3a6056);}}return null;}['markBlockFormat'](_0x207de0,_0x55551c,_0x51abc5=[],_0x384bc2=null,_0x4fac85={}){_0x55551c['formatGroupId']||(_0x55551c['formatGroupId']=_0x55551c['commandName']),_0x55551c['multipleBlocks']=_0x207de0['is']('range'),_0x384bc2=_0x384bc2||Vt(_0x55551c);const _0x106f60=_0x51abc5['map'](_0x4442fb=>Gt(_0x4442fb,this['_model'])),_0x299003=_0x207de0['is']('range')?_0x207de0:Gt(_0x207de0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x332236=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x384bc2,'accept');return this['forceDefaultExecution'](()=>_0x332236([_0x299003],_0x55551c,_0x4fac85)),null;}_0x106f60['push'](_0x299003);let _0x2ce8cc=!0x0;for(const _0x4cee8d of _0x106f60)if(!this['_rangeIsInLocalUserInsertion'](_0x4cee8d)){_0x2ce8cc=!0x1;break;}if(_0x2ce8cc&&'always'!==this['_trackFormatChanges']){const _0xcc892c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x384bc2,'accept');return this['forceDefaultExecution'](()=>_0xcc892c([_0x299003],_0x55551c,_0x4fac85)),null;}let _0x10d9d3=null,_0x1cfeb2=_0x299003['start'],_0x583320=_0x299003['end'];for(const {suggestion:_0x55024b,meta:_0x365014}of this['_findSuggestions'](_0x299003,'formatBlock')){if(!_0x365014['isOwn'])continue;if(_0x365014['isNextTo']||_0x365014['containsRangeInObject']||_0x365014['isInsideObject'])continue;if(_0x55024b['data']['formatGroupId']!=_0x55551c['formatGroupId'])continue;if(!Lt(_0x55024b,_0x4fac85))continue;const _0x57c6dc=_0x55024b['getFirstRange']();if(_0x55024b['subType']==_0x384bc2){if(_0x57c6dc['containsRange'](_0x299003,!0x0))return null;_0x1cfeb2=_0x1cfeb2['isBefore'](_0x57c6dc['start'])?_0x1cfeb2:_0x57c6dc['start'],_0x583320=_0x583320['isAfter'](_0x57c6dc['end'])?_0x583320:_0x57c6dc['end'],_0x10d9d3?_0x57c6dc['start']['isBefore'](_0x10d9d3['getFirstRange']()['start'])?(_0x10d9d3['removeMarkers'](),_0x10d9d3=_0x55024b):_0x55024b['removeMarkers']():_0x10d9d3=_0x55024b;}else{const _0x1de3ea=_0x299003['getIntersection'](_0x57c6dc);this['_cutOutSuggestionMarker'](_0x55024b,_0x1de3ea);}}const _0x341f8c=this['editor']['plugins']['get']('Users')['me'],_0x25cc50=_0x267db8(),_0x48597c=_0x341f8c['id'];if(_0x10d9d3)return this['_setSuggestionRange'](_0x10d9d3,this['_model']['createRange'](_0x1cfeb2,_0x583320)),_0x10d9d3;{const _0x5402c9=this['_setSuggestionData']({'id':_0x25cc50,'type':'formatBlock:'+_0x384bc2,'data':_0x55551c,'createdAt':new Date(),'authorId':_0x48597c,'attributes':_0x4fac85});return this['_addSuggestionMarker']('formatBlock:'+_0x384bc2,_0x25cc50,_0x48597c,this['_model']['createRange'](_0x1cfeb2,_0x583320)),_0x5402c9;}}['markMultiRangeBlockFormat'](_0x156b11,_0xe38dad,_0x21f42b=[],_0x3d755b=null,_0x17ff70={}){_0xe38dad['formatGroupId']||(_0xe38dad['formatGroupId']=_0xe38dad['commandName']);const _0x49d589=_0x156b11[0x0];_0xe38dad['multipleBlocks']=_0x49d589['is']('range'),_0x3d755b=_0x3d755b||Vt(_0xe38dad);const _0x160416=_0x21f42b['map'](_0x4e22ac=>Gt(_0x4e22ac,this['_model'])),_0x304565=_0x49d589['is']('range')?_0x156b11:_0x156b11['map'](_0x2efc57=>Gt(_0x2efc57,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2d9682=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d755b,'accept');return this['forceDefaultExecution'](()=>_0x2d9682(_0x304565,_0xe38dad,_0x17ff70)),null;}_0x160416['push'](..._0x304565);let _0x591eae=!0x0;for(const _0x258e29 of _0x160416)if(!this['_rangeIsInLocalUserInsertion'](_0x258e29)){_0x591eae=!0x1;break;}if(_0x591eae&&'always'!==this['_trackFormatChanges']){const _0x4442a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d755b,'accept');return this['forceDefaultExecution'](()=>_0x4442a7(_0x304565,_0xe38dad,_0x17ff70)),null;}const _0x5ac90e=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d7db5 of this['getSuggestions']()){if(_0x4d7db5['author']['id']!=_0x5ac90e['id'])continue;if('formatBlock'!=_0x4d7db5['type']||_0x4d7db5['data']['formatGroupId']!=_0xe38dad['formatGroupId'])continue;if(!Lt(_0x4d7db5,_0x17ff70))continue;const _0x3dfb5f=_0x4d7db5['subType']==_0x3d755b;for(let _0x329c47=0x0;_0x329c47<_0x304565['length'];_0x329c47++){const _0x375136=_0x304565[_0x329c47];for(const _0x11ff2c of _0x4d7db5['getMarkers']()){const _0x4f0916=_0x11ff2c['getRange']();if(_0x375136['isEqual'](_0x4f0916)){_0x3dfb5f?(_0x304565['splice'](_0x329c47,0x1),_0x329c47--):_0x4d7db5['removeMarker'](_0x11ff2c['name']);break;}}}}if(0x0==_0x304565['length'])return null;const _0x2e1b48=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d755b,'join');for(const _0x290b95 of this['getSuggestions']())if(_0x290b95['author']['id']==_0x5ac90e['id']&&'formatBlock'==_0x290b95['type']&&_0x290b95['data']['formatGroupId']==_0xe38dad['formatGroupId']&&_0x290b95['subType']==_0x3d755b&&Lt(_0x290b95,_0x17ff70)&&(_0x2e1b48(_0x290b95['getRanges'](),_0x304565)||_0x2e1b48(_0x304565,_0x290b95['getRanges']()))){for(const _0x532420 of _0x304565)_0x290b95['addRange'](_0x532420);return _0x290b95;}const _0x3b282b=_0x267db8(),_0xa359b3=_0x5ac90e['id'],_0xf80134='formatBlock:'+_0x3d755b,_0x37c540=this['_setSuggestionData']({'id':_0x3b282b,'type':_0xf80134,'data':_0xe38dad,'createdAt':new Date(),'authorId':_0xa359b3,'attributes':_0x17ff70});for(const _0x4f18a8 of _0x304565)this['_addSuggestionMarker'](_0xf80134,_0x3b282b,_0xa359b3,_0x4f18a8,u['getMultiRangeId']());return _0x37c540;}['markDeletion'](_0x22c989,_0x5dc148=null,_0x22c4ea={}){if(_0x22c989['isCollapsed'])return null;const _0x4fd721=this['editor']['plugins']['get']('Users')['me'],_0x4dedad=new _0x47172d(_0x22c989['start'],_0x22c989['end']);for(const {suggestion:_0x1838f1,meta:_0x343682}of this['_findSuggestions'](_0x4dedad,'insertion'))if(_0x343682['isOwn']&&!_0x343682['isNextTo']){if(_0x1838f1['isMultiRange']){const _0xa11807=_0x1838f1['getRanges']()['filter'](_0x52a2b2=>'$graveyard'!=_0x52a2b2['root']['rootName']);_0xa11807['every'](_0xf934d9=>_0x4dedad['containsRange'](_0xf934d9,!0x0))&&_0x1838f1['discard']();if(_0xa11807['some'](_0xce5f70=>_0xce5f70['containsRange'](_0x4dedad,!0x0))){const _0x10a70d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dc148,'accept');return this['forceDefaultExecution'](()=>_0x10a70d([_0x4dedad],null,_0x22c4ea)),null;}}else{const _0x536767=_0x4dedad['getIntersection'](_0x1838f1['getFirstRange']());null!==_0x536767&&_0x1838f1['_onDiscard']([_0x536767],null,_0x22c4ea);}}if(_0x4dedad['detach'](),_0x4dedad['isCollapsed']||'$graveyard'==_0x4dedad['root']['rootName'])return null;let _0x2ad76a=null,_0x21a693=_0x4dedad['start'],_0x329657=_0x4dedad['end'];const _0x1a4c7a=this['_findSuggestions'](_0x4dedad,'deletion');for(const {suggestion:_0x43a4e2,meta:_0x4b0daf}of _0x1a4c7a){const _0x54adf2=this['_model']['createRange'](_0x21a693,_0x329657);if(_0x4b0daf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b0daf['containsRangeInObject']&&!_0x4b0daf['isInsideObject'])){if(_0x43a4e2['isMultiRange']){if(!Lt(_0x43a4e2,_0x22c4ea))continue;let _0xdc79f5=!0x0;for(const _0x3bdb27 of _0x43a4e2['getRanges']()){if(_0x3bdb27['containsRange'](_0x54adf2,!0x0))return _0x43a4e2;_0x54adf2['containsRange'](_0x3bdb27)||(_0xdc79f5=!0x1);}_0xdc79f5&&_0x43a4e2['discard']();}else{const _0x5863cc=_0x43a4e2['getFirstRange']();if(_0x5863cc['containsRange'](_0x54adf2,!0x0))return _0x43a4e2;if(!Lt(_0x43a4e2,_0x22c4ea)){_0x54adf2['containsRange'](_0x5863cc)?_0x43a4e2['removeMarkers']():_0x5863cc['containsPosition'](_0x21a693)?_0x21a693=_0x5863cc['end']:_0x5863cc['containsPosition'](_0x329657)&&(_0x329657=_0x5863cc['start']);continue;}_0x21a693=_0x21a693['isBefore'](_0x5863cc['start'])?_0x21a693:_0x5863cc['start'],_0x329657=_0x329657['isAfter'](_0x5863cc['end'])?_0x329657:_0x5863cc['end'],_0x22c4ea=Object['assign']({},_0x43a4e2['attributes']),_0x2ad76a?_0x5863cc['start']['isBefore'](_0x2ad76a['getFirstRange']()['start'])?(_0x2ad76a['removeMarkers'](),_0x2ad76a=_0x43a4e2):_0x43a4e2['removeMarkers']():_0x2ad76a=_0x43a4e2;}}}if(_0x2ad76a)return this['_setSuggestionRange'](_0x2ad76a,this['_model']['createRange'](_0x21a693,_0x329657)),_0x2ad76a;{const _0x187064=_0x267db8(),_0x14502c=this['_model']['createRange'](_0x21a693,_0x329657),_0x1dcf93=_0x4fd721['id'],_0x12aa1f=_0x5dc148?'deletion:'+_0x5dc148:'deletion',_0x141feb=this['_setSuggestionData']({'id':_0x187064,'type':_0x12aa1f,'createdAt':new Date(),'authorId':_0x1dcf93,'attributes':_0x22c4ea});return this['_addSuggestionMarker'](_0x12aa1f,_0x187064,_0x1dcf93,_0x14502c),_0x141feb;}}['markMultiRangeDeletion'](_0x4d36cb,_0x3d6f6d='multi',_0x13e2d1={}){const _0x29d19d=this['editor']['plugins']['get']('Users')['me'],_0x3b4438=_0x4d36cb['map'](_0x1a4d93=>new _0x47172d(_0x1a4d93['start'],_0x1a4d93['end'])),_0x376af1=new Set();for(const {suggestion:_0x3d0711,meta:_0x17845f}of this['_findSuggestions'](_0x3b4438,'insertion'))_0x17845f['isOwn']&&!_0x17845f['isNextTo']&&_0x376af1['add'](_0x3d0711);for(const _0x2f42fb of _0x376af1)if(_0x2f42fb['isMultiRange']){const _0x450c3d=_0x2f42fb['getRanges']();(!_0x2f42fb['attributes']||!_0x2f42fb['attributes']['skipNestingCheck'])&&(_0x450c3d['every'](_0x19b1ed=>_0x3b4438['some'](_0x41865f=>_0x41865f['containsRange'](_0x19b1ed,!0x0)))&&_0x2f42fb['discard']());if(_0x3b4438['every'](_0x52660a=>_0x450c3d['some'](_0x534d52=>_0x534d52['containsRange'](_0x52660a,!0x0)))){const _0x118d88=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d6f6d,'accept');return this['forceDefaultExecution'](()=>_0x118d88(_0x4d36cb,null,_0x13e2d1)),null;}}else{const _0x28875b=_0x2f42fb['getFirstRange']();_0x3b4438['some'](_0x596e80=>_0x596e80['containsRange'](_0x28875b,!0x0))&&_0x2f42fb['discard']();if(_0x3b4438['every'](_0x2d5486=>_0x28875b['containsRange'](_0x2d5486,!0x0))){const _0x4edc96=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d6f6d,'accept');return this['forceDefaultExecution'](()=>_0x4edc96(_0x3b4438,null,_0x13e2d1)),null;}}const _0x5bea39=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d6f6d,'join');let _0x2244cd=null;for(const _0x49b102 of this['getSuggestions']())if(_0x49b102['author']['id']==_0x29d19d['id']&&_0x49b102['isInContent']&&'deletion'==_0x49b102['type']&&_0x49b102['subType']==_0x3d6f6d&&Lt(_0x49b102,_0x13e2d1)&&(_0x5bea39(_0x49b102['getRanges'](),_0x3b4438)||_0x5bea39(_0x3b4438,_0x49b102['getRanges']()))){if(_0x2244cd){if(_0x49b102['commentThread']&&_0x49b102['commentThread']['length'])continue;for(const _0x3527a2 of _0x49b102['getRanges']())_0x2244cd['isIntersectingWithRange'](_0x3527a2)||_0x2244cd['addRange'](_0x3527a2);_0x49b102['removeMarkers']();}else{_0x2244cd=_0x49b102;for(const _0x2ef950 of _0x3b4438)_0x49b102['isIntersectingWithRange'](_0x2ef950)||_0x49b102['addRange'](_0x2ef950);}}if(_0x2244cd)return _0x2244cd;_0x376af1['clear']();for(const {suggestion:_0xb20555,meta:_0x4a2e12}of this['_findSuggestions'](_0x3b4438,'deletion'))_0x4a2e12['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a2e12['containsRangeInObject']&&!_0x4a2e12['isInsideObject'])&&Lt(_0xb20555,_0x13e2d1)&&_0x376af1['add'](_0xb20555);for(const _0x587e1f of _0x376af1){const _0x3fb2f6=_0x587e1f['getRanges']();if(!_0x13e2d1||!_0x13e2d1['skipNestingCheck']){if(_0x3b4438['every'](_0x104e0b=>_0x3fb2f6['some'](_0x3fa1c6=>_0x3fa1c6['containsRange'](_0x104e0b,!0x0))))return _0x587e1f;}(!_0x587e1f['attributes']||!_0x587e1f['attributes']['skipNestingCheck'])&&(_0x3fb2f6['every'](_0x942f6f=>_0x3b4438['some'](_0x5f4005=>_0x5f4005['containsRange'](_0x942f6f,!0x0)))&&_0x587e1f['discard']());}const _0x5515d8=_0x267db8(),_0x3014f4=_0x29d19d['id'],_0x176c41='deletion:'+_0x3d6f6d,_0x538677=this['_setSuggestionData']({'id':_0x5515d8,'type':_0x176c41,'createdAt':new Date(),'authorId':_0x3014f4,'attributes':_0x13e2d1});for(const _0x119dbf of _0x3b4438)_0x119dbf['detach'](),_0x119dbf['isCollapsed']||'$graveyard'==_0x119dbf['root']['rootName']||this['_addSuggestionMarker'](_0x176c41,_0x5515d8,_0x3014f4,_0x119dbf,u['getMultiRangeId']());return _0x538677;}['markAttributeChange'](_0x2e066f,_0x94eed8,_0x8be007,_0x4fdecd,_0x440659){if(_0x2e066f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x165080=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b2a48=Array['from'](this['_suggestions']['values']())['filter'](_0x24a174=>'attribute'==_0x24a174['type']&&_0x24a174['data']['key']==_0x94eed8&&_0x24a174['isIntersectingWithRange'](_0x2e066f));if('default'===this['_trackFormatChanges']){const _0x2ebd0b=this['_findSuggestions'](_0x2e066f,'insertion')['filter'](({meta:_0x5d3eec})=>_0x5d3eec['isOwn']&&!_0x5d3eec['isInsideObject']&&!_0x5d3eec['isNextTo'])['map'](({suggestion:_0x30ca26})=>_0x30ca26);_0x3b2a48['unshift'](..._0x2ebd0b);}const _0x5be81d=new Map([[_0x2e066f,_0x8be007]]);for(const _0x3b59ed of _0x3b2a48){const _0x48918d='attribute'==_0x3b59ed['type']?_0x3b59ed['data']['oldValue']:void 0x0,_0x397a2d=_0x3b59ed['getFirstRange'](),_0x158430=Array['from'](_0x5be81d['keys']())['find'](_0x39a16d=>_0x39a16d['isIntersecting'](_0x397a2d));if(!_0x158430)continue;const _0xa94035=_0x158430['getDifference'](_0x397a2d);this['_isBlockAttribute'](_0x94eed8)&&'insertion'==_0x3b59ed['type']&&0x0!=_0xa94035['length']||(_0x5be81d['delete'](_0x158430),_0xa94035['forEach'](_0x572240=>{_0x5be81d['set'](_0x572240,_0x8be007);}),'insertion'!=_0x3b59ed['type']&&_0x48918d!=_0x4fdecd&&_0x5be81d['set'](_0x158430['getIntersection'](_0x397a2d),_0x48918d));}const _0x339675=[];for(const [_0x3aba5b,_0x33d49d]of _0x5be81d){const _0x16b86a=_0x267db8(),_0x3c406e={'key':_0x94eed8,'oldValue':_0x33d49d,'newValue':_0x4fdecd};_0x94eed8['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':_0x94eed8});const _0x26bff2=('attribute:'+(_0x94eed8+'|'+Vt({'newValue':_0x4fdecd})))['substring'](0x0,0x3c),_0x21b9c7=this['_setSuggestionData']({'id':_0x16b86a,'type':_0x26bff2,'data':_0x3c406e,'createdAt':new Date(),'authorId':_0x165080,'attributes':_0x440659});_0x339675['push'](_0x21b9c7),this['_addSuggestionMarker'](_0x26bff2,_0x16b86a,_0x165080,_0x3aba5b);}return _0x339675;}['enableDefaultAttributesIntegration'](_0x59df1b){this['enableCommand'](_0x59df1b,(_0x418822,..._0x5b9581)=>{this['_recordAttributeChanges'](()=>{_0x418822(..._0x5b9581);});});}['registerBlockAttribute'](_0x97a420){this['_blockAttributeKeys']['add'](_0x97a420);}['registerInlineAttribute'](_0x5b2070){this['_inlineAttributeKeys']['add'](_0x5b2070);}['_getAttributeKey'](_0x6fabfb){return'attribute'==_0x6fabfb['type']?_0x6fabfb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x37efb8,_0x67c01d){const _0x161f32=_0x37efb8['getFirstMarker']();this['_model']['change'](_0x4a1f16=>{_0x4a1f16['updateMarker'](_0x161f32,{'range':_0x67c01d});});}['_addThreadToSuggestion'](_0x27a67f){const _0x5011b8=_0x27a67f['id'],_0x499258=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5011b8)||this['_commentsRepository']['addCommentThread']({'channelId':_0x499258,'threadId':_0x5011b8,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x34cfd9=this['_commentsRepository']['getCommentThread'](_0x5011b8);_0x34cfd9['unbind']('isRemovable'),_0x34cfd9['isRemovable']=!0x1,_0x27a67f['commentThread']=_0x34cfd9;}['_checkSuggestionCorrectness'](_0x276758,_0x5f1545,_0x1ace82,_0x59f922){if(_0x276758['type']!=_0x5f1545||_0x276758['subType']!=_0x1ace82||_0x276758['creator']['id']!=_0x59f922)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x10ffdc('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x43e14a,_0x18a164){const _0xdd9f49=_0x43e14a['getFirstRange']();if(_0x18a164['isEqual'](_0xdd9f49))_0x43e14a['removeMarkers']();else{if(_0xdd9f49['containsRange'](_0x18a164)){const _0x366c8f=this['_model']['createPositionAt'](_0x18a164['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43e14a,this['_model']['createRange'](_0xdd9f49['start'],_0x366c8f));const _0x3037a0=_0x267db8(),_0x3873b0=_0x43e14a['creator']['id'],_0x17cb2e=_0x43e14a['type']+':'+_0x43e14a['subType'];this['_setSuggestionData']({'id':_0x3037a0,'type':_0x17cb2e,'createdAt':new Date(),'authorId':_0x3873b0,'data':_0x43e14a['data'],'attributes':_0x43e14a['attributes']});const _0x6d8f12=this['_model']['createPositionAt'](_0x18a164['end']['parent'],'after'),_0x8705ba=this['_model']['createRange'](_0x6d8f12,_0xdd9f49['end']);this['_addSuggestionMarker'](_0x17cb2e,_0x3037a0,_0x3873b0,_0x8705ba);}else{if(_0xdd9f49['containsPosition'](_0x18a164['start'])){const _0x577d51=this['_model']['createPositionAt'](_0x18a164['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43e14a,this['_model']['createRange'](_0xdd9f49['start'],_0x577d51));}else{const _0x4f3118=this['_model']['createPositionAt'](_0x18a164['end']['parent'],'after');this['_setSuggestionRange'](_0x43e14a,this['_model']['createRange'](_0x4f3118,_0xdd9f49['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2573fc){for(const {suggestion:_0x133f9f,meta:_0x22623d}of this['_findSuggestions'](_0x2573fc,'insertion')){if(!_0x22623d['isOwn'])continue;const _0x594387=_0x133f9f['getRanges']();for(const _0x413174 of _0x594387)if(!_0x2573fc['getDifference'](_0x413174)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2918cf){const _0x2d7453=this['editor']['plugins']['get']('Users')['getUser'](_0x2918cf);if(!_0x2d7453)throw new _0x10ffdc('track-changes-user-not-found',this);return _0x2d7453;}['_getExternalAuthor'](_0x33b39c){const _0x189bb4=this['editor']['plugins']['get']('Users'),_0xe5e685=_0x2254fe('external:'+_0x33b39c),_0x4a657d=_0x189bb4['getUser'](_0xe5e685);return _0x4a657d||_0x189bb4['addUser']({'id':_0xe5e685,'name':_0x33b39c});}['_createSuggestion'](_0x40bd85,_0x3ed42e,_0x108ac8,_0x4a98ad,_0xac4860){const _0x5e0466=this['_getAuthorFromId'](_0x4a98ad),_0x2534c4=this['_suggestionFactory']['buildSuggestion'](_0x40bd85,_0x3ed42e,_0x108ac8,_0x5e0466,_0xac4860,_0x1e8933=>{this['_updateSuggestionData'](_0x108ac8,{'attributes':_0x1e8933});const _0x4b7a3a=this['getSuggestion'](_0x108ac8);this['_joinWithAdjacentSuggestions'](new Set([_0x4b7a3a])),this['_refreshSuggestionsChain'](new Set([_0x4b7a3a]));});return this['listenTo'](_0x2534c4,'accept',()=>{this['_updateSuggestionData'](_0x108ac8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2534c4,'discard',()=>{this['_updateSuggestionData'](_0x108ac8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x108ac8,_0x2534c4),this['_suggestionState']['set'](_0x2534c4,'notReady'),_0x2534c4;}['_splitMarkerName'](_0x35e3a7){const _0x4ac8d8=_0x35e3a7['split'](':');return{'group':_0x4ac8d8[0x0],'type':_0x4ac8d8[0x1],'subType':_0x4ac8d8['length']>=0x5?_0x4ac8d8[0x2]:null,'id':_0x4ac8d8['length']<0x5?_0x4ac8d8[0x2]:_0x4ac8d8[0x3],'authorId':_0x4ac8d8['length']<0x5?_0x4ac8d8[0x3]:_0x4ac8d8[0x4],'markerCount':0x6==_0x4ac8d8['length']?_0x4ac8d8[0x5]:null};}['_breakSuggestionMarker'](_0x3fcfdc,_0x546efe,_0x1c1756){const _0x238e71=_0x3fcfdc['getFirstRange'](),_0x40cf02=_0x238e71['start'],_0x311c0b=_0x238e71['end'];this['_setSuggestionRange'](_0x3fcfdc,this['_model']['createRange'](_0x40cf02,_0x546efe));const _0x200694=_0x267db8(),_0x15f53f=_0x3fcfdc['creator']['id'],_0x2e758a=_0x3fcfdc['type']+(_0x3fcfdc['subType']?':'+_0x3fcfdc['subType']:'');this['_setSuggestionData']({'id':_0x200694,'type':_0x2e758a,'createdAt':new Date(),'authorId':_0x15f53f,'originalSuggestionId':_0x3fcfdc['id'],'attributes':_0x3fcfdc['attributes'],'data':_0x3fcfdc['data']});const _0x4790d7=this['_getAttributeKey'](_0x3fcfdc);('formatBlock'==_0x3fcfdc['type']||_0x4790d7&&this['_isBlockAttribute'](_0x4790d7))&&(_0x1c1756=this['_model']['createPositionBefore'](_0x1c1756['parent'])),this['_addSuggestionMarker'](_0x2e758a,_0x200694,_0x15f53f,this['_model']['createRange'](_0x1c1756,_0x311c0b));}['_findSuggestions'](_0x11eba7,_0x1ebd91=null){const _0x54bb56=[],_0x16105a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x11eba7)||(_0x11eba7=[_0x11eba7]);for(const _0x1c5d52 of this['getSuggestions']()){if(!_0x1c5d52['isInContent'])continue;if(_0x1ebd91&&_0x1c5d52['type']!=_0x1ebd91)continue;let _0x377cd7=!0x1;for(const _0x3914e2 of _0x1c5d52['getRanges']()){for(const _0x43b28f of _0x11eba7){const _0x2f4341=_0x43b28f['start']['isEqual'](_0x3914e2['end'])||_0x43b28f['end']['isEqual'](_0x3914e2['start']);if(_0x2f4341||_0x43b28f['getIntersection'](_0x3914e2)){const _0x32753e=_0x43b28f['containsRange'](_0x3914e2)&&Rt(this['_model']['schema'],_0x3914e2['start'],_0x43b28f),_0x5125b5=_0x3914e2['containsRange'](_0x43b28f)&&Rt(this['_model']['schema'],_0x43b28f['start'],_0x3914e2);_0x54bb56['push']({'suggestion':_0x1c5d52,'meta':{'isOwn':_0x16105a==_0x1c5d52['author'],'isNextTo':_0x2f4341,'isInsideObject':_0x32753e,'containsRangeInObject':_0x5125b5}}),_0x377cd7=!0x0;break;}}if(_0x377cd7)break;}}return _0x54bb56;}['_addSuggestionMarker'](_0xd3b350,_0x22648d,_0x5f2bc3,_0x71a6f6,_0x2d615f){this['_model']['change'](_0x2cacc5=>{let _0x22a031='suggestion:'+_0xd3b350+':'+_0x22648d+':'+_0x5f2bc3;_0x2d615f&&(_0x22a031=_0x22a031+':'+_0x2d615f),_0x2cacc5['addMarker'](_0x22a031,{'range':_0x71a6f6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x11d545){const _0x248d7c=_0x11d545['previous'],_0x52c8ed=_0x11d545['next'];_0x11d545['previous']=null,_0x11d545['next']=null,null!=_0x248d7c&&_0x248d7c['next']==_0x11d545&&(_0x248d7c['next']=_0x52c8ed),null!=_0x52c8ed&&_0x52c8ed['previous']==_0x11d545&&(_0x52c8ed['previous']=_0x248d7c),'ready'==this['_suggestionState']['get'](_0x11d545)&&(this['_suggestionState']['set'](_0x11d545,'removed'),this['fire']('suggestionUnloaded',_0x11d545,_0x248d7c,_0x52c8ed));}['_setSuggestionData'](_0x6bbf90){const _0x15f533=_0x6bbf90['id'],_0x294aa2=this['addSuggestionData'](_0x6bbf90);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5d0ee2=this['editor']['plugins']['get']('PendingActions'),_0x5f1d89=_0x294aa2['hasComments'],_0x1de3b1=_0x294aa2['subType']?_0x294aa2['type']+':'+_0x294aa2['subType']:_0x294aa2['type'],_0x4f4818=this['editor']['locale'],_0x1a3899=_0x5d0ee2['add'](o(_0x4f4818,'PENDING_ACTION_SUGGESTION')),_0x3effc6={'id':_0x15f533,'type':_0x1de3b1,'hasComments':_0x5f1d89,'data':_0x6bbf90['data']||null,'originalSuggestionId':_0x6bbf90['originalSuggestionId']||null,'attributes':_0x294aa2['attributes']};this['_adapter']['addSuggestion'](_0x3effc6)['then'](_0x2ee714=>{_0x294aa2['_saved']=!0x0,_0x5d0ee2['remove'](_0x1a3899),_0x2ee714&&_0x2ee714['createdAt']&&(this['_suggestions']['get'](_0x15f533)['createdAt']=_0x2ee714['createdAt']);})['catch'](_0x4dcdfd=>{throw _0x45d037('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x294aa2['discard']();}),_0x294aa2['stopListening'](),this['_suggestions']['delete'](_0x294aa2['id']),this['_suggestionState']['delete'](_0x294aa2),_0x4dcdfd;});}return _0x294aa2;}['_isBlockAttribute'](_0x2d6c05){return this['_blockAttributeKeys']['has'](_0x2d6c05);}['_updateSuggestionData'](_0x42c03b,_0x14798b){const _0x377a20=this['editor']['plugins']['get']('PendingActions'),_0x50b306=this['getSuggestion'](_0x42c03b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x50b306['_saved']){const _0x592546=_0x377a20['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x42c03b,_0x14798b)['then'](()=>{_0x377a20['remove'](_0x592546);});}else _0x50b306['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x42c03b,_0x14798b);});}}['_getSuggestionData'](_0x58011a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x10ffdc('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x58011a);}['_handleNewSuggestionMarker'](_0x4f4b4a){const {id:_0x5b7e03,type:_0x4bc6e8,subType:_0x3bf102,authorId:_0x4e0437}=this['_splitMarkerName'](_0x4f4b4a),_0x571c3a=this['_suggestions']['get'](_0x5b7e03)||this['_createSuggestion'](_0x4bc6e8,_0x3bf102,_0x5b7e03,_0x4e0437,{});switch(this['_checkSuggestionCorrectness'](_0x571c3a,_0x4bc6e8,_0x3bf102,_0x4e0437),this['_suggestionState']['get'](_0x571c3a)){case'notReady':this['_getSuggestionData'](_0x5b7e03)['then'](_0x53f8ec=>{let _0x265e5b=Promise['resolve']();_0x53f8ec['hasComments']&&(_0x265e5b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5b7e03})),_0x265e5b['then'](()=>{this['addSuggestionData'](_0x53f8ec)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x571c3a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5b7e03,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x571c3a,'ready'),this['fire']('suggestionLoaded',_0x571c3a);break;case'ready':this['fire']('suggestionChanged',_0x571c3a);}return _0x571c3a['addMarkerName'](_0x4f4b4a),_0x571c3a;}['_refreshSuggestionsChain'](_0x1cad95){const _0x1eed48=Array['from'](_0x1cad95),_0x5b16c6=_0x1eed48['filter'](_0x311341=>'attribute'==_0x311341['type']);this['_refreshAttributeSuggestionsChain'](_0x5b16c6);const _0x15925b=_0x1eed48['filter'](_0x4c6eae=>!_0x4c6eae['isMultiRange']&&'attribute'!=_0x4c6eae['type']),_0x2e2fdf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e1a4d=>!_0x1e1a4d['isMultiRange']&&'attribute'!=_0x1e1a4d['type']),_0x371d13=_0x2e2fdf['filter'](_0x9f7237=>!_0x1cad95['has'](_0x9f7237)),_0x5109ab=new Map(_0x2e2fdf['map'](_0x1bddcd=>[_0x1bddcd,this['_suggestionFactory']['getSuggestionCallback'](_0x1bddcd['type'],_0x1bddcd['subType'],'chain')])),_0x5cde2a=new Map(_0x2e2fdf['map'](_0x959488=>[_0x959488,_0x959488['getFirstRange']()])),_0x1be84d=new Set(),_0x367eb6=new Set();for(let _0x1d293f=0x0;_0x1d293f<_0x15925b['length'];_0x1d293f++)_0x5f0213(_0x15925b[_0x1d293f],_0x15925b,_0x1d293f+0x1);for(let _0x4555b0=0x0;_0x4555b0<_0x15925b['length'];_0x4555b0++)_0x5f0213(_0x15925b[_0x4555b0],_0x371d13,0x0);const _0x26b19c=new Set();for(let _0x194049=0x0;_0x194049<_0x15925b['length'];_0x194049++){const _0xb28495=_0x15925b[_0x194049];!_0x367eb6['has'](_0xb28495)&&_0xb28495['previous']&&(_0x26b19c['add'](_0xb28495['previous']),_0xb28495['previous']['next']===_0xb28495&&(_0xb28495['previous']['next']=null),_0xb28495['previous']=null),!_0x1be84d['has'](_0xb28495)&&_0xb28495['next']&&(_0x26b19c['add'](_0xb28495['next']),_0xb28495['next']['previous']===_0xb28495&&(_0xb28495['next']['previous']=null),_0xb28495['next']=null);}function _0x5f0213(_0x46d875,_0x55dc73,_0x2e277b){for(let _0x545a9e=_0x2e277b;_0x545a9e<_0x55dc73['length'];_0x545a9e++){const _0xdc0dd=_0x54e810(_0x46d875,_0x55dc73[_0x545a9e]);_0xdc0dd&&(_0xdc0dd[0x0]['next']=_0xdc0dd[0x1],_0xdc0dd[0x1]['previous']=_0xdc0dd[0x0],_0x1be84d['add'](_0xdc0dd[0x0]),_0x367eb6['add'](_0xdc0dd[0x1]));}}function _0x54e810(_0x4921b4,_0x4a0542){if(_0x4921b4['author']['id']!==_0x4a0542['author']['id'])return null;const _0x427234=_0x5109ab['get'](_0x4921b4)(_0x4921b4,_0x4a0542,_0x5cde2a['get'](_0x4921b4),_0x5cde2a['get'](_0x4a0542));if(!_0x427234)return null;return _0x5109ab['get'](_0x4a0542)(_0x4921b4,_0x4a0542,_0x5cde2a['get'](_0x4921b4),_0x5cde2a['get'](_0x4a0542))?_0x427234[0x1]['commentThread']&&_0x427234[0x1]['commentThread']['length']?null:_0x427234:null;}_0x26b19c['size']&&this['_refreshSuggestionsChain'](_0x26b19c);}['_refreshAttributeSuggestionsChain'](_0x4d52c6){if(0x0==_0x4d52c6['length'])return;const _0x17c70c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6f65d7=>'attribute'==_0x6f65d7['type']&&_0x6f65d7['_isDataLoaded']),_0x395125=[],_0x42f220=new Map();for(const _0x189add of _0x17c70c){const _0x5b3c8c=_0x2254fe(_0x189add['attributes']);_0x42f220['has'](_0x5b3c8c)||(_0x42f220['set'](_0x5b3c8c,_0x395125['length']),_0x395125['push']([]));const _0x5a5e09=_0x42f220['get'](_0x5b3c8c);_0x395125[_0x5a5e09]['push'](_0x189add);}!(function(){_0x395125['sort']((_0x12d6ed,_0x570766)=>{const _0xb930c9=_0x12d6ed[0x0]['createdAt'],_0x1cabcf=_0x570766[0x0]['createdAt'];return _0xb930c9==_0x1cabcf?_0x12d6ed[0x0]['attributes']['groupId']<_0x570766[0x0]['attributes']['groupId']?-0x1:0x1:_0xb930c9<_0x1cabcf?-0x1:0x1;});for(const _0x501ee8 of _0x395125)_0x501ee8['sort']((_0x4ceea6,_0x673e96)=>_0x4ceea6['id']<_0x673e96['id']?-0x1:0x1);}());for(let _0x2b0535=0x0;_0x2b0535<_0x395125['length'];_0x2b0535++){if(0x0==_0x395125[_0x2b0535]['length'])continue;const _0x4a0530=[];for(let _0x4340a5=_0x2b0535+0x1;_0x4340a5<_0x395125['length'];_0x4340a5++)0x0!=_0x395125[_0x4340a5]['length']&&_0x3e9ccc(_0x395125[_0x2b0535],_0x395125[_0x4340a5])&&_0x4a0530['push'](_0x4340a5);for(const _0x2af948 of _0x4a0530)_0x395125[_0x2b0535]=_0x395125[_0x2b0535]['concat'](_0x395125[_0x2af948]),_0x395125[_0x2af948]=[];}for(const _0x17e41e of _0x395125)for(let _0x100f22=0x0;_0x100f22<_0x17e41e['length'];_0x100f22++)_0x17e41e[_0x100f22]['next']=_0x17e41e[_0x100f22+0x1]||null;for(const _0x384583 of _0x395125)for(let _0x2f476b=0x0;_0x2f476b<_0x384583['length'];_0x2f476b++)_0x384583[_0x2f476b]['previous']=_0x384583[_0x2f476b-0x1]||null;function _0x3e9ccc(_0x2b84ae,_0x3a957c){if(_0x2b84ae[0x0]['attributes']['groupId']!==_0x3a957c[0x0]['attributes']['groupId']&&_0x2b84ae[0x0]['author']!==_0x3a957c[0x0]['author'])return!0x1;if(!function(_0x20ddb3,_0x40ba43){if(!_0x20ddb3['hasComments']&&!_0x40ba43['hasComments'])return!0x0;if(_0x20ddb3['hasComments']&&_0x40ba43['hasComments'])return!0x1;if(_0x20ddb3['hasComments']&&_0x40ba43['createdAt']<_0x20ddb3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x40ba43['hasComments']&&_0x20ddb3['createdAt']<_0x40ba43['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2b84ae[0x0],_0x3a957c[0x0]))return!0x1;const _0xf4eb80=Bt(_0x2b84ae[0x0]['attributes'],'groupId'),_0x4d1e6a=Bt(_0x3a957c[0x0]['attributes'],'groupId');if(!_0x4c53ba(_0xf4eb80,_0x4d1e6a))return!0x1;return!!_0x2b84ae['every'](_0x4a47fb=>_0x3a957c['some'](_0x58fcf6=>_0x4a47fb['getFirstRange']()['isEqual'](_0x58fcf6['getFirstRange']())))&&_0x3a957c['every'](_0x362106=>_0x2b84ae['some'](_0x2fe992=>_0x362106['getFirstRange']()['isEqual'](_0x2fe992['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xbf2f3){const _0x364394=Array['from'](_0xbf2f3),_0x21368e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2eedf2=_0x21368e['filter'](_0x5d84c7=>!_0xbf2f3['has'](_0x5d84c7)),_0x340a26=new Map(_0x364394['map'](_0x23fc20=>[_0x23fc20,this['_suggestionFactory']['getSuggestionCallback'](_0x23fc20['type'],_0x23fc20['subType'],'join')])),_0x23927e=new Map(_0x21368e['map'](_0x2a699a=>[_0x2a699a,_0x2a699a['getRanges']()]));for(let _0x34846e=0x0;_0x34846e<_0x364394['length'];_0x34846e++){if(_0x27dd77(this,_0x364394[_0x34846e],_0x364394,_0x34846e+0x1))return!0x0;}for(let _0x391744=0x0;_0x391744<_0x364394['length'];_0x391744++){if(_0x27dd77(this,_0x364394[_0x391744],_0x2eedf2,0x0))return!0x0;}return!0x1;function _0x27dd77(_0x148d2d,_0x5d88a5,_0x1a47b9,_0x4bc21a){for(let _0x56aa80=_0x4bc21a;_0x56aa80<_0x1a47b9['length'];_0x56aa80++){const _0x40331d=_0x1a47b9[_0x56aa80];if(_0x40331d['type']!==_0x5d88a5['type']||_0x40331d['author']['id']!==_0x5d88a5['author']['id']||_0x40331d['subType']!==_0x5d88a5['subType'])continue;if(!Pt(_0x5d88a5,_0x40331d,['groupId']))continue;if('attribute'==_0x5d88a5['type']&&_0x5d88a5['data']['oldValue']!=_0x40331d['data']['oldValue'])continue;if('attribute'==_0x5d88a5['type']&&_0x148d2d['_isBlockAttribute'](_0x5d88a5['data']['key']))continue;if('formatBlock'==_0x5d88a5['type']){const _0x290dd0=_0x148d2d['editor']['model'],_0x3e58a9=_0x5d88a5['getContainedElement']();if(_0x3e58a9&&(_0x290dd0['schema']['isObject'](_0x3e58a9)||_0x290dd0['schema']['isLimit'](_0x3e58a9)))continue;}const _0x4ac1e9=_0x340a26['get'](_0x5d88a5),_0x280363=_0x23927e['get'](_0x5d88a5),_0x4f0762=_0x23927e['get'](_0x40331d),_0x3b0d36=_0x5d88a5['commentThread']&&_0x5d88a5['commentThread']['length'],_0x2de19d=_0x40331d['commentThread']&&_0x40331d['commentThread']['length'];if(!_0x3b0d36&&_0x4ac1e9(_0x4f0762,_0x280363))return _0x148d2d['_joinSuggestions'](_0x40331d,_0x5d88a5),_0x23927e['delete'](_0x5d88a5),!0x0;if(!_0x2de19d&&_0x4ac1e9(_0x280363,_0x4f0762))return _0x148d2d['_joinSuggestions'](_0x5d88a5,_0x40331d),_0x23927e['delete'](_0x40331d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3f59b4,_0x11d7ca){if(_0x3f59b4['isMultiRange']){for(const _0x626d69 of _0x11d7ca['getRanges']())_0x3f59b4['addRange'](_0x626d69);}else{const _0xec892=_0x11d7ca['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3f59b4,this['_model']['createRange'](_0x3f59b4['getFirstRange']()['start'],_0xec892));}_0x11d7ca['removeMarkers']();}['_getMarkerAnnouncementText'](_0x439694,_0x1d0832){const _0x2bc7ba=_0x439694['startsWith']('format')||_0x439694['startsWith']('attribute')?'FORMATTING':_0x439694['toUpperCase']();return o(this['editor']['locale'],_0x1d0832+'_'+_0x2bc7ba+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x333311=this['editor'];if(!_0x333311['ui'])return;const {ariaLiveAnnouncer:_0x2508da}=_0x333311['ui'];_0x22f6d8(this['_model'],({left:_0x420083,entered:_0x3db934})=>{for(const _0x202f68 of _0x420083){const {group:_0x3a94f9,type:_0x1e00f5}=this['_splitMarkerName'](_0x202f68['name']);if('suggestion'===_0x3a94f9){_0x2508da['announce'](this['_getMarkerAnnouncementText'](_0x1e00f5,'LEAVE'));break;}}for(const _0x5b106b of _0x3db934){const {group:_0x110227,type:_0x57e323}=this['_splitMarkerName'](_0x5b106b['name']);if('suggestion'===_0x110227){_0x2508da['announce'](this['_getMarkerAnnouncementText'](_0x57e323,'ENTER'));break;}}});}['_processAttributeChanges'](_0x358a4c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4388fa=this['editor'],_0x1216a2=_0x4388fa['model']['document']['differ']['getChanges']();if(0x0==_0x1216a2['length'])return!0x1;const _0x430efc=[],_0x1c8ceb=_0x1216a2['filter'](_0x363368=>'attribute'==_0x363368['type']),_0x2f3700=_0x1216a2['filter'](_0x2fb6f7=>'insert'==_0x2fb6f7['type']&&'$text'!=_0x2fb6f7['name']),_0x3fcecc=_0x1216a2['filter'](_0x4a5280=>'remove'==_0x4a5280['type']&&'$text'!=_0x4a5280['name']);for(const _0x2de600 of _0x1c8ceb)_0x430efc['push']({'key':_0x2de600['attributeKey'],'newValue':_0x2de600['attributeNewValue'],'oldValue':_0x2de600['attributeOldValue'],'range':Ot(_0x2de600['range'],_0x4388fa['model'])});for(const _0x33aa54 of _0x2f3700){const _0x5f368b=_0x3fcecc['find'](_0x3102f2=>_0x3102f2['position']['isEqual'](_0x33aa54['position']));_0x5f368b&&_0x430efc['push']({'key':m,'newValue':_0x33aa54['name'],'oldValue':_0x5f368b['name'],'range':_0x4388fa['model']['createRangeOn'](_0x33aa54['position']['nodeAfter'])});}return 0x0!=_0x430efc['length']&&this['_reduceExistingSuggestions'](_0x358a4c,_0x430efc);}['_processAttributeSuggestions'](_0x2814f8){let _0x3d00ab=!0x1;const _0x2b01f3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x58dd0f=>_0x58dd0f['data']['newRange']&&_0x58dd0f['name']['startsWith']('suggestion:attribute:'));for(const _0x46aa7b of _0x2b01f3){const {subType:_0x20e719,id:_0xce61c6}=this['_splitMarkerName'](_0x46aa7b['name']),_0x3018c3=_0x20e719['split']('|')[0x0];for(const _0x212552 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x212552['id']!=_0xce61c6&&'attribute'==_0x212552['type']&&_0x212552['data']&&_0x212552['data']['key']==_0x3018c3&&_0x212552['getFirstRange']()['isIntersecting'](_0x46aa7b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x212552,_0x46aa7b['data']['newRange'],_0x2814f8),_0x3d00ab=!0x0);}return _0x3d00ab;}['_recordAttributeChanges'](_0x27771f){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x27771f();}['_isRegisteredAttribute'](_0x59f66d){const _0x44589b=this['_isBlockAttribute'](_0x59f66d),_0x741dcd=this['_inlineAttributeKeys']['has'](_0x59f66d);return _0x44589b||_0x741dcd;}['_reduceExistingSuggestions'](_0x89e701,_0x16195b){if(0x0==_0x16195b['length'])return!0x1;let _0xa309c0=!0x1;for(const _0x138571 of _0x16195b){const _0x52436c=this['_findSuggestions'](_0x138571['range'],'attribute')['filter'](_0xa5748=>!_0xa5748['meta']['isNextTo'])['map'](_0x2e4c9f=>_0x2e4c9f['suggestion']),_0x29fd50=_0x2254fe({'newValue':_0x138571['newValue']});_0x52436c['filter'](_0x252afc=>{const [_0x589f6b,_0x43d3a3]=_0x252afc['subType']['split']('|');return _0x589f6b==_0x138571['key']&&_0x43d3a3!=_0x29fd50;})['forEach'](_0x50fcb8=>{this['_reduceSuggestionAttributeRange'](_0x50fcb8,_0x138571['range'],_0x89e701),_0xa309c0=!0x0;});}return _0xa309c0;}['_reduceSuggestionAttributeRange'](_0x53f980,_0x2b2653,_0x2c8b02){const _0x33802a=_0x53f980['getFirstRange']()['getDifference'](_0x2b2653);0x0!==_0x33802a['length']?0x1!==_0x33802a['length']?this['_breakSuggestionMarker'](_0x53f980,_0x2b2653['start'],_0x2b2653['end']):this['_setSuggestionRange'](_0x53f980,_0x33802a[0x0]):_0x2c8b02['removeMarker'](_0x53f980['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x268ddb){this['_editor']=_0x268ddb,this['_model']=_0x268ddb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x23f086,_0x27dc42,_0x4a8e97,_0x3b030d,_0x2304eb,_0x1ec367){return new u(this['_model'],{'type':_0x23f086,'subType':_0x27dc42,'id':_0x4a8e97,'author':_0x3b030d,'creator':_0x3b030d,'attributes':_0x2304eb,'onAttributesChange':_0x1ec367,'onAccept':(..._0x364edd)=>this['getSuggestionCallback'](_0x23f086,_0x27dc42,'accept')(..._0x364edd),'onDiscard':(..._0x3febdd)=>this['getSuggestionCallback'](_0x23f086,_0x27dc42,'discard')(..._0x3febdd)});}['registerCustomCallback'](_0xa28503,_0x1213c1,_0x1b4874,_0x22f6be){const _0xd19ecc=_0xa28503+':'+_0x1213c1+':'+_0x1b4874;this['_customCallbacks']['set'](_0xd19ecc,_0x22f6be);}['getSuggestionCallback'](_0x3d97c5,_0x12138f,_0x5547fe){const _0x5c7478=_0x3d97c5+':'+_0x12138f+':'+_0x5547fe;return this['_customCallbacks']['get'](_0x5c7478)||this['_defaultCallbacks']['get'](_0x3d97c5+':'+_0x5547fe);}['_registerDefaultCallbacks'](){const _0x11d386=()=>!0x1,_0x1ced9d=_0x4a9fff=>{_0x4a9fff['sort']((_0x342c9f,_0xd43034)=>_0x342c9f['start']['isBefore'](_0xd43034['start'])?0x1:-0x1),this['_model']['change'](_0x383c95=>{for(const _0x3c82be of _0x4a9fff){let _0x396930;_0x396930=_0x3c82be['end']['isAtEnd']&&_0x3c82be['end']['parent']==_0x3c82be['start']['nodeAfter']?_0x383c95['createSelection'](_0x3c82be['start']['nodeAfter'],'on'):_0x383c95['createSelection'](_0x3c82be),this['_model']['deleteContent'](_0x396930,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x14fac5=(_0x474247,_0x35c255)=>{_0x35c255&&this['_model']['change'](_0x50ca74=>{const {commandName:_0x52d6c7,commandParams:_0x2d60b2=[]}=_0x35c255,_0x50fdb7=_0x474247['map'](_0x459bb9=>(Tt(_0x459bb9)&&(_0x459bb9=this['_model']['createRange'](_0x459bb9['end'])),_0x459bb9))['filter'](_0x2bd9c8=>'$graveyard'!==_0x2bd9c8['root']['rootName']);if(_0x50fdb7['length']<0x1)return;const _0x3fe108=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2499b0=>_0x47172d['fromRange'](_0x2499b0));_0x50ca74['setSelection'](_0x50fdb7);for(const _0x11887b of this['_editor']['commands']['commands']())_0x11887b['refresh']();_0x2d60b2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x52d6c7,..._0x2d60b2);const _0x9902ce=_0x3fe108['filter'](_0x9e2d3a=>'$graveyard'!=_0x9e2d3a['root']['rootName']);_0x9902ce['length']>0x0&&_0x50ca74['setSelection'](_0x9902ce);for(const _0x267910 of _0x3fe108)_0x267910['detach']();});},_0x26abd9=(_0x1d3fc0,_0x35a68e)=>0x1==_0x1d3fc0['length']&&0x1==_0x35a68e['length']&&_0x1d3fc0[0x0]['end']['isEqual'](_0x35a68e[0x0]['start']),_0x88701d=(_0x3affbd,_0x43a49e,_0x19a3d9,_0x5c49a7)=>Ft(_0x3affbd,_0x43a49e,_0x19a3d9,_0x5c49a7,this['_model'])?[_0x3affbd,_0x43a49e]:Ft(_0x43a49e,_0x3affbd,_0x5c49a7,_0x19a3d9,this['_model'])?[_0x43a49e,_0x3affbd]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x11d386),this['_defaultCallbacks']['set']('insertion:discard',_0x1ced9d),this['_defaultCallbacks']['set']('insertion:join',_0x26abd9),this['_defaultCallbacks']['set']('insertion:chain',_0x88701d),this['_defaultCallbacks']['set']('deletion:accept',_0x1ced9d),this['_defaultCallbacks']['set']('deletion:discard',_0x11d386),this['_defaultCallbacks']['set']('deletion:join',_0x26abd9),this['_defaultCallbacks']['set']('deletion:chain',_0x88701d),this['_defaultCallbacks']['set']('formatInline:accept',_0x14fac5),this['_defaultCallbacks']['set']('formatInline:discard',_0x11d386),this['_defaultCallbacks']['set']('formatInline:join',_0x26abd9),this['_defaultCallbacks']['set']('formatInline:chain',_0x11d386),this['_defaultCallbacks']['set']('formatBlock:accept',_0x14fac5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x11d386),this['_defaultCallbacks']['set']('formatBlock:join',_0x26abd9),this['_defaultCallbacks']['set']('formatBlock:chain',_0x11d386),this['_defaultCallbacks']['set']('attribute:accept',_0x11d386),this['_defaultCallbacks']['set']('attribute:discard',(_0x1f7dfd,_0x31bf6c)=>{if(!_0x31bf6c)return;const _0x1948f3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x98ba47=>{if(_0x31bf6c['key']==m)for(const _0x100eb9 of _0x1f7dfd){const _0x39f59d=_0x100eb9['start']['nodeAfter'],_0x42ee1c=_0x31bf6c['oldValue'];_0x98ba47['rename'](_0x39f59d,_0x42ee1c);}else{if(_0x1948f3['_isBlockAttribute'](_0x31bf6c['key'])){for(const _0x331328 of _0x1f7dfd)void 0x0!==_0x31bf6c['oldValue']?_0x98ba47['setAttribute'](_0x31bf6c['key'],_0x31bf6c['oldValue'],_0x331328['start']['nodeAfter']):_0x98ba47['removeAttribute'](_0x31bf6c['key'],_0x331328['start']['nodeAfter']);}else{for(const _0x402157 of _0x1f7dfd)_0x31bf6c['oldValue']?_0x98ba47['setAttribute'](_0x31bf6c['key'],_0x31bf6c['oldValue'],_0x402157):_0x98ba47['removeAttribute'](_0x31bf6c['key'],_0x402157);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x26abd9);}}function Rt(_0x407cd2,_0x2a989c,_0x2151b7){for(const _0x2d842d of _0x2a989c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2d842d['root']==_0x2d842d)return!0x1;if(!_0x2151b7['containsItem'](_0x2d842d))return!0x1;if(_0x407cd2['isObject'](_0x2d842d)||_0x407cd2['isLimit'](_0x2d842d))return!0x0;}return!0x1;}function Tt(_0x2ffd68){return _0x2ffd68['end']['parent']==_0x2ffd68['start']['nodeAfter']&&_0x2ffd68['end']['isAtStart'];}function Et(_0x31632a,_0x6c9bf3,_0x36ab05,_0xb9bdf8){const _0xd04c5=_0x4de71a=>!_0x4de71a['item']['is']('$textProxy')&&!_0xb9bdf8['isObject'](_0x4de71a['item']),_0x3cd2f0=_0x31632a['start']['getLastMatchingPosition'](_0xd04c5),_0x520406=_0x31632a['end']['getLastMatchingPosition'](_0xd04c5,{'direction':'backward'});return(!_0x31632a['start']['isEqual'](_0x3cd2f0)||!_0x31632a['end']['isEqual'](_0x520406))&&(_0x3cd2f0['isBefore'](_0x520406)?_0x36ab05['updateMarker'](_0x6c9bf3,{'range':_0x36ab05['createRange'](_0x3cd2f0,_0x520406)}):_0x36ab05['removeMarker'](_0x6c9bf3),!0x0);}function Vt(_0x49376d){return _0x2254fe(_0x49376d);}function Ut(_0x370d47){const _0x19d848=_0x370d47['start']['nodeAfter'];return _0x19d848&&_0x19d848['is']('element');}function Ot(_0x153f9e,_0x275b88){return null==_0x153f9e['end']['nodeBefore']&&_0x153f9e['end']['parent']==_0x153f9e['start']['nodeAfter']?Gt(_0x153f9e['start']['nodeAfter'],_0x275b88):_0x153f9e;}function Gt(_0x4429fb,_0x4465eb){const _0x701adb=_0x4465eb['schema']['isObject'](_0x4429fb)||_0x4465eb['schema']['isSelectable'](_0x4429fb);return _0x4465eb['createRange'](_0x4465eb['createPositionAt'](_0x4429fb,'before'),_0x701adb?_0x4465eb['createPositionAfter'](_0x4429fb):_0x4465eb['createPositionAt'](_0x4429fb,'end'));}function Ft(_0x155668,_0x34896c,_0x3bce4f,_0xbb69fa,_0x36b9c0){if(!Pt(_0x155668,_0x34896c))return!0x1;if(_0x3bce4f['end']['isEqual'](_0xbb69fa['start']))return!0x0;if(_0x155668['type']!=_0x34896c['type'])return!0x1;if(!_0x3bce4f['end']['isTouching'](_0xbb69fa['start']))return!0x1;const _0x28bc03=_0x36b9c0['createRange'](_0x3bce4f['end'],_0xbb69fa['start'])['getWalker']();for(const _0x1a718a of _0x28bc03)if(['elementStart','elementEnd']['includes'](_0x1a718a['type'])&&_0x36b9c0['schema']['isLimit'](_0x1a718a['item']))return!0x1;return!0x0;}function Pt(_0x2c6943,_0x1b40a3,_0x547225=[]){return!(!_0x2c6943['_isDataLoaded']||!_0x1b40a3['_isDataLoaded'])&&_0x4c53ba(Bt(_0x2c6943['attributes'],_0x547225),Bt(_0x1b40a3['attributes'],_0x547225));}function Lt(_0x2c1469,_0x2048ef){const _0x56de16=Ht(_0x2c1469['attributes']),_0xff301a=Ht(_0x2048ef);if(!_0x2c1469['_isDataLoaded'])return!0x1;for(const _0x5842e5 of Object['keys'](_0xff301a))if(!_0x4c53ba(_0x56de16[_0x5842e5],_0xff301a[_0x5842e5]))return!0x1;return!0x0;}function Ht(_0x2cc61f){const _0x5ce2e6=Object['assign']({},_0x2cc61f);return delete _0x5ce2e6['skipNestingCheck'],delete _0x5ce2e6['tablePasteChainId'],_0x5ce2e6;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xb83c2(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x157c24,_0x27f67d,_0x35a0d3,_0x4356d8){super(),this['model']=_0x27f67d,this['view']=_0x35a0d3,this['commentThreadController']=_0x4356d8,this['_editor']=_0x157c24,this['_acceptCommand']=_0x157c24['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x157c24['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5a7e44,_0x3c20b5)=>_0x5a7e44||_0x3c20b5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x462809=>_0x462809&&this['_editor']['model']['canEditAt'](_0x27f67d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x82391c=>_0x82391c&&this['_editor']['model']['canEditAt'](_0x27f67d['getRanges']())),this['_pendingAction']=null,_0x35a0d3['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x35a0d3,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x35a0d3,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x35a0d3,'change:isDirty',()=>{_0x35a0d3['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x525280=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x525280);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x2f672b{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3c64aa,_0x562d8d,_0x21e02e,_0x548872){super(_0x3c64aa),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x562d8d['authoredAt']),this['bind']('authoredAt')['to'](_0x562d8d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x562d8d,this['_localUser']=_0x21e02e,this['_config']=_0x548872,_0x548872['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x540ad0}=this['_config'];this['commentsListView']=new _0x540ad0(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',_0x5ecb98=>_0x5ecb98+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1690aa,_0x1787ac)=>_0x1690aa||!!_0x1787ac);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x96b552}=this['_config'],_0x33913d=new _0x96b552(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x48b0e3=_0x33913d['commentInputView'];return _0x33913d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x48b0e3,'value',(_0x374eef,_0x13fb2e,_0x5080de)=>!!_0x5080de||_0x374eef&&!_0x13fb2e),_0x48b0e3['on']('submit',(_0x5d6133,_0x2d389a)=>{this['fire']('addComment',_0x2d389a),_0x48b0e3['editor']['setData']('');}),_0x48b0e3['on']('cancel',()=>this['focus']()),_0x48b0e3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x33913d;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0xd1e1d8,_0x23c145,_0x56feaf,_0x488196){super(_0xd1e1d8,_0x23c145,_0x56feaf,_0x488196),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x22d249=>_0x22d249&&_0x22d249[0x0]?_0x22d249[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x44be78,_0xd05910)=>{let _0x1fde02='';for(const _0x2436c9 of _0x44be78)_0x1fde02+='<p>'+ds(_0x2436c9['content'],_0x2436c9['color'])+'</p>';return _0xd05910?_0x1fde02:_0x236f40(_0x1fde02,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0xd1e1d8,'Accept\x20suggestion'),_0x5c0b00['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0xd1e1d8,'Discard\x20suggestion'),_0x5c0b00['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xcac560(_0xd1e1d8,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5987d1=this['bindTemplate'],_0x1d4504=[{'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':_0x5987d1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5987d1['to']('authoredAt',_0x2cf4a0=>this['_config']['formatDateTime'](_0x2cf4a0))}]}]},{'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']&&_0x1d4504['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2fffd9={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5987d1['if']('isActive','ck-suggestion-wrapper--active'),_0x5987d1['to']('type',_0x3d023d=>'ck-suggestion-'+_0x3d023d),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':_0x1d4504}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2fffd9['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)),_0x2fffd9;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x6b5e98,_0x34924c,_0x4deb82)=>{this['_descriptionElement']['innerHTML']=_0x4deb82;});}['_createButton'](_0x4b4261,_0x24689b,_0x39a219,_0x1a6ef1,_0x3fba19){const _0x3ab9f6=new _0x2b30b9(this['locale']);return _0x3ab9f6['set']({'label':_0x4b4261,'icon':_0x24689b,'tooltip':!0x0,'tooltipPosition':_0x3fba19}),_0x3ab9f6['extendTemplate']({'attributes':{'class':_0x39a219}}),_0x3ab9f6['on']('execute',()=>{this['fire'](_0x1a6ef1,this['_model']['id']);}),_0x3ab9f6;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0xedf5e6,_0x1526d8){let _0x12cafe='';return _0x12cafe+=_0xedf5e6['split']('*')['map']((_0x1c151f,_0x3e5640)=>_0x3e5640%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x1c151f)+'</span>':us(_0x1c151f))['join'](''),_0x1526d8&&(_0x12cafe+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1526d8['value']+'\x22\x20title=\x22'+_0x1526d8['title']+'\x22></span>'),_0x12cafe;}function us(_0x29c830){const _0x2f494a=document['createElement']('span');return _0x2f494a['innerText']=_0x29c830,_0x2f494a['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 _0x1fbed8{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2c81c1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x594ba9){super(_0x594ba9),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5e4fa4=this['editor']['config'];_0x5e4fa4['define']('trackChanges.SuggestionThreadView',ne),_0x5e4fa4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5e4fa4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3a0d2f,_0x2351d4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x450cb1,_0x4e0ec9]of this['_handleControllerBuffer']){const _0x4d0fb8=this['_suggestionToController']['has'](_0x450cb1);_0x4d0fb8||_0x4e0ec9?_0x4d0fb8&&_0x4e0ec9&&this['_destroyController'](_0x450cb1):this['_initializeController'](_0x450cb1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3a0d2f,_0x2351d4);}['init'](){const _0x4af924=this['editor'],_0x5df376=_0x4af924['plugins']['get']('TrackChangesEditing'),_0x33c723=_0x4af924['plugins']['get']('Annotations'),_0x14e44b=_0x4af924['plugins']['get']('EditorAnnotations'),_0x546f63=_0x4af924['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x14e44b['addSourceCollector'](()=>{const _0x3a4598=[];for(const [_0x5e59ab,_0x5aa322]of Array['from'](this['_suggestionToController'])){const _0x32f327=_0x5e59ab['getAllAdjacentSuggestions'](),_0x48aa17=[];for(const _0x14455a of _0x32f327){if(!_0x14455a['isInContent'])continue;if(_0x14455a['isMultiRange']){_0x48aa17['push'](..._0x14455a['getRanges']());continue;}const _0x27b09a=_0x14455a['getFirstRange']();if(_0x48aa17['length']>0x0){const _0x1f2e2d=_0x48aa17[0x0]['getJoined'](_0x27b09a);if(_0x1f2e2d){_0x48aa17[0x0]=_0x1f2e2d;continue;}}_0x48aa17['push'](_0x27b09a);}_0x3a4598['push']([_0x5aa322['view'],_0x48aa17]);}return _0x3a4598;}),this['listenTo'](_0x5df376,'suggestionLoaded',(_0x5410a1,_0xc17530)=>{this['listenTo'](_0xc17530,'change:previous',(_0x4de259,_0x9c560a,_0x4528ea,_0x31630b)=>{_0xc17530['isInContent']&&(null==_0x4528ea?(this['_updateController'](_0x31630b['head']),this['_handleSuggestionControllerDelayed'](_0xc17530,!0x1)):(this['_updateController'](_0x4528ea['head']),null==_0x31630b&&this['_handleSuggestionControllerDelayed'](_0xc17530,!0x0)));}),null!==_0xc17530['previous']?this['_updateController'](_0xc17530['head']):this['_handleSuggestionControllerDelayed'](_0xc17530,!0x1);}),this['listenTo'](_0x5df376,'suggestionUnloaded',(_0x431420,_0x146412,_0x5af9f4)=>{this['stopListening'](_0x146412,'change:previous'),this['_handleControllerBuffer']['delete'](_0x146412),this['_suggestionToController']['has'](_0x146412)&&this['_destroyController'](_0x146412),_0x5af9f4&&this['_updateController'](_0x5af9f4['head']);}),this['listenTo'](_0x5df376,'suggestionChanged',(_0x55f8dc,_0x2499c0)=>{this['_updateController'](_0x2499c0);}),this['listenTo'](_0x33c723,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x546f63,'addComment',(_0x55f429,{threadId:_0x3be528,isFromAdapter:_0x5d3b64})=>{if(_0x5d3b64||!_0x5df376['hasSuggestion'](_0x3be528))return;const _0x4442d5=_0x5df376['getSuggestion'](_0x3be528);this['_suggestionToController']['get'](_0x4442d5)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2cfe68=this['editor']['plugins']['get']('Annotations'),_0x407f3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e9b0f=Array['from'](_0x2cfe68['activeAnnotations'],_0x329ec0=>_0x329ec0['innerView'])['filter'](_0x3d9d65=>this['_viewToController']['has'](_0x3d9d65)),_0x477a01=[];for(const _0x7a4a29 of _0x3e9b0f){const _0x4c26fa=this['_viewToController']['get'](_0x7a4a29)['model']['getAllAdjacentSuggestions']();_0x477a01['push'](..._0x4c26fa['reduce']((_0x32b471,_0x25a47b)=>[..._0x32b471,..._0x25a47b['getMarkerNames']()],[]));}_0x407f3d['activeMarkers']=_0x477a01;}['_addUIComponentsToFactory'](){const _0x4cc464=this['editor'],_0x451a8b=_0x4cc464['locale'],_0x27138a=o(_0x451a8b,'Track\x20changes'),_0x276985=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x27138a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x451a8b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x451a8b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x451a8b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x451a8b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x7f6723 of _0x276985)if(ae(_0x7f6723)){const _0x556311=_0x4cc464['commands']['get'](_0x7f6723['model']['commandName']);_0x7f6723['model']['bind']('isOn','isEnabled')['to'](_0x556311,'value','isEnabled');}_0x4cc464['ui']['componentFactory']['add']('trackChanges',_0x19a35b=>this['_createToolbarButton'](_0x19a35b,_0x276985,_0x27138a)),_0x4cc464['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2c69fe=>this['_createMenuBarMenu'](_0x2c69fe,_0x276985,_0x27138a));}['_createToolbarButton'](_0x4de4d7,_0x4ccb9f,_0x38875a){const _0x5165b2=zt(_0x4de4d7,Zt),_0xc89b1e=this['editor']['commands']['get']('trackChanges');_0x5165b2['buttonView']['set']({'tooltip':_0x38875a,'label':_0x38875a,'icon':ie}),_0x5165b2['buttonView']['bind']('isOn')['to'](_0xc89b1e,'value'),_0x5165b2['buttonView']['on']('execute',()=>{_0xc89b1e['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x5165b2,_0x4ccb9f,{'role':'menu'});const _0x27862e=[];for(const _0x55e44d of _0x4ccb9f)ae(_0x55e44d)&&_0x27862e['push'](this['editor']['commands']['get'](_0x55e44d['model']['commandName']));const _0x2652c3=_0x5165b2['buttonView'];return _0x2652c3['actionView']['unbind']('isEnabled'),_0x2652c3['arrowView']['unbind']('isEnabled'),_0x2652c3['actionView']['bind']('isEnabled')['to'](_0xc89b1e,'isEnabled'),_0x2652c3['arrowView']['bind']('isEnabled')['toMany'](_0x27862e,'isEnabled',(..._0xdbb6a2)=>_0xdbb6a2['some'](_0x1d7bea=>_0x1d7bea)),_0x5165b2['on']('execute',_0x53b8ff=>{this['editor']['execute'](_0x53b8ff['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5165b2;}['_createMenuBarMenu'](_0x1bbc4c,_0x5338c9,_0x2bb97e){const _0x4137ab=new Kt(_0x1bbc4c),_0x59ba02=this['editor']['commands']['get']('trackChanges');_0x4137ab['buttonView']['set']({'label':_0x2bb97e,'icon':ie});const _0x21f8e2=new Qt(_0x1bbc4c);for(const _0x5e4d08 of _0x5338c9){if('separator'==_0x5e4d08['type']){_0x21f8e2['items']['add'](new Jt(_0x1bbc4c));continue;}const _0x3c166c=new Xt(_0x1bbc4c,_0x4137ab),_0x3ac0a0=new Yt(_0x1bbc4c),_0x1f554b=_0x5e4d08['model'];_0x3ac0a0['bind'](...Object['keys'](_0x1f554b))['to'](_0x1f554b),_0x3ac0a0['delegate']('execute')['to'](_0x4137ab),_0x3ac0a0['on']('execute',()=>{this['editor']['execute'](_0x1f554b['commandName']),this['editor']['editing']['view']['focus']();}),_0x3c166c['children']['add'](_0x3ac0a0),_0x21f8e2['items']['add'](_0x3c166c);}return _0x4137ab['bind']('isEnabled')['to'](_0x59ba02,'isEnabled'),_0x4137ab['panelView']['children']['add'](_0x21f8e2),_0x4137ab;}['_initializeController'](_0x138113){const _0x1f333f=this['editor'],_0x16b428=_0x1f333f['config'],_0xc71a0f=_0x1f333f['plugins']['get']('Annotations'),_0x299b3e=_0x1f333f['plugins']['get']('CommentsRepository'),_0x1b0bfa=_0x1f333f['plugins']['get']('EditorAnnotations'),_0x2b5769=_0x1f333f['plugins']['get'](_0x2c81c1)['me'],_0xf575c2=_0x16b428['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x528c52,CommentThreadInputView:_0x3963a4}=_0x1f333f['plugins']['get']('CommentsUI');let _0x561d1,_0x13ba91;this['_annotationViews']['has'](_0x138113['id'])?(_0x13ba91=this['_annotationViews']['get'](_0x138113['id']),_0x561d1=_0x13ba91['mainView']):(_0x561d1=new _0xf575c2(_0x1f333f['locale'],_0x138113,_0x2b5769,{'disableComments':this['_disableComments'],'editorConfig':_0x16b428['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x16b428['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x16b428['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x16b428['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x104c0a(_0x16b428['get']('locale')),'CommentView':_0x16b428['get']('comments')['CommentView'],'CommentsListView':_0x528c52,'CommentThreadInputView':_0x3963a4}),_0x561d1['acceptButton']['on']('execute',()=>{_0x1f333f['editing']['view']['focus']();}),_0x561d1['discardButton']['on']('execute',()=>{_0x1f333f['editing']['view']['focus']();}),_0x13ba91=_0xc71a0f['createAnnotationView'](this['editor']['locale'],_0x561d1),_0x13ba91['bind']('isDirty')['to'](_0x561d1,'isDirty'),_0x13ba91['bind']('length')['to'](_0x561d1),_0x13ba91['bind']('type')['to'](_0x561d1,'type',_0x30a785=>'suggestion-'+_0x30a785),this['_annotationViews']['set'](_0x138113['id'],_0x13ba91));const _0x14f188=_0x299b3e['createCommentThreadController'](_0x138113['commentThread'],_0x561d1),_0x531931=new oe(_0x1f333f,_0x138113,_0x561d1,_0x14f188),_0x5ce352=_0x138113['getAllAdjacentSuggestions']()['filter'](_0x5d75ec=>_0x5d75ec['isInContent']);_0x561d1['descriptionParts']=_0x1f333f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5ce352),this['_suggestionToController']['set'](_0x138113,_0x531931),this['_viewToController']['set'](_0x561d1,_0x531931);const _0x2d8c22=_0xc71a0f['createAnnotation']({'view':_0x13ba91,'target':()=>{const _0x3786ee=[],_0x21ef7a=_0x138113['getAllAdjacentSuggestions']()['filter'](_0x34af2b=>_0x34af2b['isInContent']);for(const _0x11e125 of _0x21ef7a)_0x3786ee['push'](..._0x11e125['getMarkers']());return _0x428234(_0x1f333f['editing'],_0x3786ee);},'type':()=>'suggestion-'+_0x531931['view']['type']});_0x299b3e['_bindAnnotationToEditors'](_0x561d1,_0x2d8c22),_0xc71a0f['add'](_0x2d8c22),_0x1b0bfa['registerAnnotation'](_0x2d8c22);}['_destroyController'](_0x1506f2){const _0x50e243=this['editor']['plugins']['get']('CommentsRepository'),_0xee77e5=this['editor']['plugins']['get']('Annotations'),_0x3a104a=this['_suggestionToController']['get'](_0x1506f2),_0xe85ed1=_0x3a104a['view'],_0xff2330=_0xee77e5['getByInnerView'](_0xe85ed1);_0x50e243['_unbindEditors'](_0xe85ed1),_0xff2330&&_0xee77e5['remove'](_0xff2330),this['_suggestionToController']['delete'](_0x1506f2),this['_viewToController']['delete'](_0xe85ed1),_0x3a104a['destroy']();}['_updateController'](_0x3cbfc0){if(!_0x3cbfc0['isInContent']||!this['_suggestionToController']['has'](_0x3cbfc0))return;const _0x2f130f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37dd2f=this['_suggestionToController']['get'](_0x3cbfc0),_0x54ce1a=_0x3cbfc0['getAllAdjacentSuggestions']();_0x37dd2f['view']['descriptionParts']=_0x2f130f['descriptionFactory']['getDescriptions'](_0x54ce1a);}['destroy'](){for(const _0x37b2b4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x37b2b4);for(const _0x212070 of this['_annotationViews']['values']())_0x212070['mainView']['destroy']();super['destroy']();}}function ae(_0x2ac47d){return'model'in _0x2ac47d;}class k extends _0x1fbed8{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x524f7e){this['editor']['plugins']['get'](p)['adapter']=_0x524f7e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x43dcc0){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x43dcc0);}['getSuggestions']({skipNotAttached:_0x2c5c0d=!0x1,toJSON:_0x48792f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2c5c0d,'toJSON':_0x48792f});}['getSuggestion'](_0x1ed4fd){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1ed4fd);}}const T=['Pagination'];class P extends _0x1fbed8{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x22811d=this['editor'];if(_0x22811d['config']['define']('trackChangesData.editorCreator',_0x28a33c=>{const _0x2ed661=_0x22811d['model']['document']['getRootNames']()['reduce']((_0x5810d3,_0x278534)=>(_0x5810d3[_0x278534]='',_0x5810d3),{});return _0x22811d['constructor']['create'](_0x2ed661,_0x28a33c);}),'function'!=typeof _0x22811d['config']['get']('trackChangesData')['editorCreator'])throw new _0x10ffdc('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3aecfb){return N(this['editor'],!0x0,_0x3aecfb);}['getDataWithDiscardedSuggestions'](_0x5a0945){return N(this['editor'],!0x1,_0x5a0945);}}class D extends _0x1fbed8{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x55ae8e){super(_0x55ae8e),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x3b72c9){return void 0x0!==_0x3b72c9['getRootsAttributes'];}async function N(_0xb7eb21,_0x5db988,_0x344681){const _0x44c972=_0x1db5f8(_0xb7eb21,T);_0x44c972['plugins']['push'](p,D),_0x44c972['rootsAttributes']=v(_0xb7eb21)?_0xb7eb21['getRootsAttributes']():void 0x0;const _0x387a12=document['createDocumentFragment'](),_0x24b964=_0xb7eb21['config']['get']('trackChangesData')['editorCreator'],_0xd95400=await _0x24b964(_0x44c972,()=>function(_0xe75802){const _0x3838b3=document['createElement']('div');return _0xe75802['appendChild'](_0x3838b3),_0x3838b3;}(_0x387a12));!function(_0x25a360,_0x464d82){const _0x5861df=_0x25a360['model']['document']['getRootNames']()['reduce']((_0x52e18e,_0x354e27)=>(_0x52e18e[_0x354e27]=_0x25a360['data']['get']({'rootName':_0x354e27}),_0x52e18e),{}),_0x1a8a40=_0x25a360['plugins']['get']('Users')['users']['map'](_0x1aae28=>({'id':_0x1aae28['id'],'name':_0x1aae28['name']})),_0x25445e=_0x25a360['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34142f=_0x25a360['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2031b4=_0x464d82['plugins']['get']('Users'),_0x62d107=_0x464d82['plugins']['get']('TrackChangesEditing'),_0x40ac13=_0x464d82['plugins']['get']('CommentsRepository');for(const _0x46d8b3 of _0x1a8a40)_0x2031b4['getUser'](_0x46d8b3['id'])||_0x2031b4['addUser'](_0x46d8b3);_0x2031b4['me']||_0x2031b4['useAnonymousUser']();for(const _0x4d27ea of _0x34142f)_0x40ac13['addCommentThread'](_0x4d27ea);for(const _0x295e55 of _0x25445e)_0x62d107['addSuggestionData'](_0x295e55);_0x464d82['data']['set'](_0x5861df);}(_0xb7eb21,_0xd95400),_0xd95400['execute'](_0x5db988?'acceptAllSuggestions':'discardAllSuggestions');const _0x118972=v(_0xd95400)?_0xd95400['getFullData'](_0x344681):_0xd95400['data']['get'](_0x344681);return await _0xd95400['destroy'](),_0x118972;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|