@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240513.0 → 0.0.0-nightly-20240515.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +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 _0x5a6596,PendingActions as _0x1a8c28,icons as _0x2b6142}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x32dc20,ObservableMixin as _0x58d1e1,uid as _0x3af419,insertToPriorityArray as _0x3501f6,priorities as _0xb7e399,logWarning as _0x4e88fa,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x27e33d,View as _0xb662dc,ButtonView as _0x31aced,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 _0x5a5bef,hashObject as _0x292a57,surroundingMarkersDetector as _0x4bc611,trimHtml as _0x1dfeb8,UserView as _0x3c0e1e,getDateTimeFormatter as _0x496b5f,getAllMarkersDomElementsSorted as _0x508baf,sanitizeEditorConfig as _0x398fd1}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x467b96,LiveRange as _0x5ac8f0,LivePosition as _0x4ae947}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x570f94,toWidget as _0x447123}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xd65a29,set as _0x1584f2,isEqual as _0x29efb4,unset as _0x3a2df0,omit as Bt}from'lodash-es';import{Delete as _0x58974f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5f5b88,ShiftEnter as _0x24fdd3}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x1f08be,_0x555382){super(_0x1f08be),this['_enabledCommands']=_0x555382,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 _0x36e837 of this['editor']['commands']['commands']())_0x36e837['affectsData']&&!this['_enabledCommands']['has'](_0x36e837)&&_0x36e837['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4abdf4 of this['editor']['commands']['commands']())_0x4abdf4['affectsData']&&!this['_enabledCommands']['has'](_0x4abdf4)&&_0x4abdf4['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x232f8a,_0x1e29a1){super(_0x232f8a),this['_suggestions']=_0x1e29a1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5cdae9){const _0x123801=this['_suggestions']['get'](_0x5cdae9);if(!_0x123801)throw new _0x32dc20('track-changes-accept-suggestion-not-found',this);const _0x42ee92=_0x123801['getRanges']();this['editor']['model']['canEditAt'](_0x42ee92)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x123801);}}class B extends ts{['_suggestions'];constructor(_0x315d05,_0x497b52){super(_0x315d05),this['_suggestions']=_0x497b52,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5cc884){const _0x2a4f45=this['_suggestions']['get'](_0x5cc884);if(!_0x2a4f45)throw new _0x32dc20('track-changes-discard-suggestion-not-found',this);const _0x536d56=_0x2a4f45['getRanges']();this['editor']['model']['canEditAt'](_0x536d56)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2a4f45);}}function ss(_0x279156){return _0x279156['sort']((_0x1d859a,_0x4b570f)=>'deletion'==_0x1d859a['type']&&'deletion'!=_0x4b570f['type']?-0x1:'deletion'!=_0x1d859a['type']&&'deletion'==_0x4b570f['type']?0x1:0x0);}function to(_0x5d877,_0x2ee624){let _0x10c1f4,_0x3c9e33=0x0;const _0x37ecf4=[],_0x3ea257=_0x2ee624['schema'];for(;_0x3c9e33<_0x5d877['length'];){const _0x5e75fd=_0x5d877[_0x3c9e33],_0x92563b=_0x5d877[_0x3c9e33+0x1];_0x10c1f4||(_0x10c1f4=_0x2ee624['createPositionBefore'](_0x5e75fd)),co(_0x2ee624,_0x5e75fd,_0x92563b)||(_0x37ecf4['push'](_0x2ee624['createRange'](_0x10c1f4,_0x3ea257['isObject'](_0x5e75fd)?_0x2ee624['createPositionAfter'](_0x5e75fd):_0x2ee624['createPositionAt'](_0x5e75fd,'end'))),_0x10c1f4=null),_0x3c9e33++;}return _0x37ecf4;}function co(_0xff86d3,_0x8a784c,_0x145d62){if(!_0x145d62)return!0x1;const _0x2bb6d2=_0xff86d3['createPositionAfter'](_0x8a784c),_0x228421=_0xff86d3['createPositionBefore'](_0x145d62);return _0x2bb6d2['isTouching'](_0x228421);}function rs(_0x1fb0b2,_0x35e15a,_0x11670f){for(;_0x11670f['length'];){const _0x1c2922=_0x11670f['splice'](0x0,0x64);_0x1fb0b2['change'](()=>{for(const _0x2a19cf of _0x1c2922)_0x2a19cf['isInContent']&&_0x35e15a['execute'](_0x2a19cf['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3091bf,_0x2a5beb,_0x27c000){super(_0x3091bf),this['_command']=_0x2a5beb,this['_suggestions']=_0x27c000,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x468af9=Array['from'](this['_suggestions']['values']())['some'](_0x460b08=>_0x460b08['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x468af9;}['execute'](){const _0x41b765=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3bdf80 of _0x41b765){const _0x10f5b1=_0x3bdf80['getRanges']();if(!this['editor']['model']['canEditAt'](_0x10f5b1))return;}rs(this['editor']['model'],this['_command'],_0x41b765);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x11b8f7,_0x1be387,_0x1d885b){super(_0x11b8f7),this['_command']=_0x1be387,this['_suggestions']=_0x1d885b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x59e1a0=this['editor']['model']['document']['selection'],_0x361b04=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x167799,_0x489720){const _0x4f7465=Array['from'](_0x167799['getRanges']()),_0x1ef343=new Set();for(const _0x71dc9 of _0x489720)if(_0x71dc9['isInContent']){for(const _0x5a5ddb of _0x4f7465)for(const _0x1eb816 of _0x71dc9['getRanges']())(_0x5a5ddb['isIntersecting'](_0x1eb816)||_0x167799['isCollapsed']&&!_0x71dc9['isMultiRange']&&_0x71dc9['next']&&_0x1eb816['end']['isTouching'](_0x5a5ddb['start']))&&_0x1ef343['add'](_0x71dc9);}return _0x1ef343;}(_0x59e1a0,_0x361b04),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xf22661=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1015d6 of _0xf22661){const _0x431d34=_0x1015d6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x431d34))return;}rs(this['editor']['model'],this['_command'],_0xf22661);}}class u extends _0x58d1e1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5648c8,_0x29a248){super(),this['id']=_0x29a248['id'],this['type']=_0x29a248['type'],this['subType']=_0x29a248['subType']||null,this['author']=_0x29a248['author'],this['creator']=_0x29a248['creator']||_0x29a248['author'],this['isExternal']=Boolean(_0x29a248['attributes']&&_0x29a248['attributes']['@external']),this['data']=null,this['_model']=_0x5648c8,this['_onAccept']=_0x29a248['onAccept'],this['_onDiscard']=_0x29a248['onDiscard'],this['_onAttributesChange']=_0x29a248['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29a248['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 _0x3d6742=this;for(;_0x3d6742['previous'];)_0x3d6742=_0x3d6742['previous'];return _0x3d6742;}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'](_0x2f31bf){this['_markerNames']['add'](_0x2f31bf);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3b3f9b=>this['_model']['markers']['get'](_0x3b3f9b))['filter'](_0x153447=>_0x153447);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x120037=>{for(const _0xe0cd7d of this['getMarkers']())_0x120037['removeMarker'](_0xe0cd7d);}),this['_markerNames']['clear']();}['removeMarker'](_0xe41b21){this['_model']['change'](_0x15194c=>{_0x15194c['removeMarker'](_0xe41b21);}),this['_markerNames']['delete'](_0xe41b21);}['addRange'](_0x35fcf8){const _0x4fd228='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4fd228),this['_model']['change'](_0x2db168=>{_0x2db168['addMarker'](_0x4fd228,{'range':_0x35fcf8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x53827f){for(const _0x2431e3 of this['getRanges']())if(_0x2431e3['isIntersecting'](_0x53827f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4edb2a=>_0x4edb2a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x210610,_0x22eac8)=>[..._0x210610,..._0x22eac8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x145624=this['getRanges']();if(0x1!=_0x145624['length'])return null;const _0x364de0=_0x145624[0x0],_0x3cb198=_0x364de0['start']['nodeAfter'],_0x69b3a0=_0x364de0['end']['nodeBefore'];return _0x3cb198 instanceof _0x467b96?_0x3cb198!=_0x69b3a0?null:_0x3cb198: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 _0x389990=[];let _0x5ab80c=this['head'];for(;_0x5ab80c;)_0x389990['push'](_0x5ab80c),_0x5ab80c=_0x5ab80c['next'];return _0x389990;}['setAttribute'](_0x37363e,_0x55b7bd){const _0x5bb352=_0xd65a29(this['attributes']);_0x1584f2(_0x5bb352,_0x37363e,_0x55b7bd),_0x29efb4(_0x5bb352,this['attributes'])||(this['attributes']=_0x5bb352,this['_onAttributesChange'](_0x5bb352));}['removeAttribute'](_0x32fa9a){const _0x47865f=_0xd65a29(this['attributes']);_0x3a2df0(_0x47865f,_0x32fa9a),_0x29efb4(_0x47865f,this['attributes'])||(this['attributes']=_0x47865f,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 _0x3af419()['substr'](0x1,0x5);}}function o(_0x51b619,_0x161010,_0x30ecd0){const t=_0x51b619['t'];switch(_0x161010){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',_0x30ecd0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x30ecd0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x30ecd0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x30ecd0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x30ecd0);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',_0x30ecd0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x30ecd0);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',_0x30ecd0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x30ecd0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x30ecd0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x30ecd0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x30ecd0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x30ecd0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x30ecd0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x30ecd0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x30ecd0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x30ecd0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x30ecd0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x30ecd0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x30ecd0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x30ecd0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x30ecd0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x30ecd0);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'},_0x30ecd0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x30ecd0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x30ecd0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x30ecd0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x30ecd0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x30ecd0);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'},_0x30ecd0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x30ecd0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x30ecd0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x30ecd0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x30ecd0);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'},_0x30ecd0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x30ecd0);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'},_0x30ecd0);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'},_0x30ecd0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x30ecd0);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'},_0x30ecd0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x30ecd0);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'},_0x30ecd0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x30ecd0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x30ecd0);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'},_0x30ecd0);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'},_0x30ecd0);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 _0x161010;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x406e53,_0x1fbad6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x406e53,this['_locale']=_0x1fbad6;}['getDescriptions'](_0x2d2ebc){const _0x1ed49d=[],_0x137a43=new Set(),_0x595e1d=new Set();for(let _0x5c5a61=0x0;_0x5c5a61<_0x2d2ebc['length'];_0x5c5a61++){const _0x555591=_0x2d2ebc[_0x5c5a61];if(!_0x555591['isInContent'])continue;const _0x26073d=this['_handleCustomCallbackDescription'](_0x555591);if(_0x26073d){if(null!=_0x555591['subType']){if(_0x137a43['has'](_0x555591['subType']))continue;_0x137a43['add'](_0x555591['subType']);}_0x1ed49d['push'](_0x26073d);}else{if('attribute'!=_0x555591['type'])'insertion'!=_0x555591['type']&&'deletion'!=_0x555591['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1ed49d,_0x555591,_0x2d2ebc[_0x5c5a61+0x1]);else{const _0x40c57f=_0x555591['data']['key'];if(_0x595e1d['has'](_0x40c57f))continue;_0x595e1d['add'](_0x555591['data']['key']),_0x40c57f==m?this['_handleRenameSuggestionDescription'](_0x1ed49d,_0x555591):this['_handleAttributeSuggestionDescription'](_0x1ed49d,_0x555591);}}}return this['_resolveDescriptionItems'](_0x1ed49d);}['registerDescriptionCallback'](_0x4c2a4d){this['_customCallbacks']['push'](_0x4c2a4d);}['registerElementLabel'](_0x307cce,_0x5dab36,_0x1ede7c=_0xb7e399['normal']){'function'==typeof _0x307cce?_0x3501f6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x307cce,'label':_0x5dab36,'priority':_0x1ede7c}):this['_itemLabels']['set'](_0x307cce,_0x5dab36);}['registerAttributeLabel'](_0x1faf8f,_0x1cb646){this['_attributeLabels']['set'](_0x1faf8f,_0x1cb646);}['getItemLabel'](_0x2abd6f,_0x28bffc=0x1){let _0x3279d6;for(const _0x4f9e42 of this['_itemLabelsCallbacks'])if(_0x4f9e42['matchingCallback'](_0x2abd6f)){_0x3279d6=_0x4f9e42['label'];break;}return _0x3279d6||(_0x3279d6=this['_itemLabels']['get'](_0x2abd6f['name'])),_0x3279d6?_0x3279d6(_0x28bffc):0x1!==_0x28bffc?_0x28bffc+'\x20'+_0x2abd6f['name']+'s':''+_0x2abd6f['name'];}['_addDescriptionItems'](_0x29abd0,_0x48debf){const _0x36c66e=_0x48debf['getFirstRange']()['getWalker'](),_0xa5fa46='insertion'==_0x48debf['type']?'add':'remove';for(const _0x4be27c of _0x36c66e){const _0x3b553f=_0x4be27c['item'],_0x1bb2d8=_0x29abd0[_0x29abd0['length']-0x1];if(_0x3b553f['is']('$textProxy'))_0x1bb2d8&&_0x1bb2d8['type']['indexOf']('Container')>-0x1&&_0x29abd0['pop'](),_0x1bb2d8&&'text'==_0x1bb2d8['type']?_0x1bb2d8[_0xa5fa46]+=_0x3b553f['data']:_0x29abd0['push']({'type':'text','add':'add'==_0xa5fa46?_0x3b553f['data']:'','remove':'remove'==_0xa5fa46?_0x3b553f['data']:''});else{if(this['_schema']['isObject'](_0x3b553f)){const _0x4801ff=_0x3b553f;if(_0x1bb2d8&&_0x1bb2d8['type']['indexOf']('Container')>-0x1&&_0x29abd0['pop'](),'elementEnd'==_0x4be27c['type'])continue;_0x1bb2d8&&_0x1bb2d8['type']==_0xa5fa46+'Object'&&_0x1bb2d8['element']['name']==_0x4801ff['name']?_0x1bb2d8['quantity']++:_0x29abd0['push']({'type':_0xa5fa46+'Object','element':_0x4801ff,'quantity':0x1}),_0x36c66e['skip'](_0x1b92aa=>!('elementEnd'==_0x1b92aa['type']&&_0x1b92aa['item']==_0x3b553f));}else{if(this['_schema']['checkChild'](_0x3b553f,'$text')||_0x3b553f['is']('element','softBreak')){const _0x57b162=_0x3b553f;if('add'==_0xa5fa46&&'elementStart'==_0x4be27c['type']||'remove'==_0xa5fa46&&'elementEnd'==_0x4be27c['type'])continue;if(_0x1bb2d8&&-0x1==_0x1bb2d8['type']['indexOf']('Container')){'text'==_0x1bb2d8['type']&&(_0x1bb2d8[_0xa5fa46]+='\x0a');continue;}let _0x244227;if(_0x244227='add'==_0xa5fa46?_0x57b162['nextSibling']&&!this['_schema']['isObject'](_0x57b162['nextSibling'])?_0x57b162['nextSibling']:null:_0x57b162['previousSibling']&&!this['_schema']['isObject'](_0x57b162['previousSibling'])?_0x57b162['previousSibling']:null,_0x57b162['isEmpty']||_0x244227&&_0x244227['isEmpty']){const _0x49653f=_0x244227&&_0x244227['isEmpty']?_0x244227:_0x57b162;_0x1bb2d8&&_0x1bb2d8['type']==_0xa5fa46+'EmptyContainer'&&_0x1bb2d8['element']['name']==_0x49653f['name']?_0x1bb2d8['quantity']++:_0x29abd0['push']({'type':_0xa5fa46+'EmptyContainer','element':_0x49653f,'quantity':0x1});}else _0x29abd0['push']({'type':_0xa5fa46+'Container','element':_0x57b162});}}}}}['_resolveDescriptionItems'](_0x3dcbef){const _0x282bde=this['_locale'],_0x446303=[],_0x981b8d=[],_0x4ccf12=[];for(const _0x56085e of _0x3dcbef)switch(_0x56085e['type']){case'text':if(_0x56085e['add']=_0x56085e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x56085e['remove']=_0x56085e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x56085e['add']&&''!=_0x56085e['remove']){_0x446303['push']({'type':'replace','content':o(_0x282bde,'REPLACE_TEXT',['\x22'+_0x56085e['remove']+'\x22','\x22'+_0x56085e['add']+'\x22'])});continue;}if(null!=_0x56085e['add']['match'](/^ +$/)){_0x446303['push']({'type':'insertion','content':o(_0x282bde,'*Insert:*\x20%0',o(_0x282bde,'ELEMENT_SPACE',_0x56085e['add']['length']))});continue;}if(null!=_0x56085e['remove']['match'](/^ +$/)){_0x446303['push']({'type':'deletion','content':o(_0x282bde,'*Remove:*\x20%0',o(_0x282bde,'ELEMENT_SPACE',_0x56085e['remove']['length']))});continue;}if(''!=_0x56085e['add']){_0x446303['push']({'type':'insertion','content':o(_0x282bde,'*Insert:*\x20%0','\x22'+_0x56085e['add']+'\x22')});continue;}_0x446303['push']({'type':'deletion','content':o(_0x282bde,'*Remove:*\x20%0','\x22'+_0x56085e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x446303['push']({'type':'insertion','content':o(_0x282bde,'*Insert:*\x20%0',this['getItemLabel'](_0x56085e['element'],_0x56085e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x446303['push']({'type':'deletion','content':o(_0x282bde,'*Remove:*\x20%0',this['getItemLabel'](_0x56085e['element'],_0x56085e['quantity']))});continue;case'addContainer':_0x446303['push']({'type':'insertion','content':o(_0x282bde,'*Split:*\x20%0',this['getItemLabel'](_0x56085e['element'],_0x56085e['quantity']))});continue;case'removeContainer':_0x446303['push']({'type':'deletion','content':o(_0x282bde,'*Merge:*\x20%0',this['getItemLabel'](_0x56085e['element'],_0x56085e['quantity']))});continue;case'addFormat':_0x981b8d['push'](_0x56085e['key']);continue;case'removeFormat':_0x4ccf12['push'](_0x56085e['key']);continue;default:_0x446303['push'](_0x56085e);}if(_0x981b8d['length']){const _0x51b9e3=_0x981b8d['map'](_0x6fece6=>this['_attributeLabels']['has'](_0x6fece6)?this['_attributeLabels']['get'](_0x6fece6):_0x6fece6)['join'](',\x20');_0x446303['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x51b9e3)});}if(_0x4ccf12['length']){const _0x24188c=_0x4ccf12['map'](_0x50437a=>this['_attributeLabels']['has'](_0x50437a)?this['_attributeLabels']['get'](_0x50437a):_0x50437a)['join'](',\x20');_0x446303['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x24188c)});}return _0x446303;}['_handleCustomCallbackDescription'](_0x2da175){for(const _0x4ae6bc of this['_customCallbacks']){const _0x1f11cb=_0x4ae6bc(_0x2da175);if(_0x1f11cb&&'type'in _0x1f11cb)return _0x1f11cb;}}['_handleAttributeSuggestionDescription'](_0x3c11ef,_0x176587){const _0x3af76a=_0x176587['data'],_0x2288c7=void 0x0===_0x3af76a['newValue']?'removeFormat':'addFormat';_0x3c11ef['push']({'type':_0x2288c7,'key':_0x3af76a['key']});}['_handleRenameSuggestionDescription'](_0x138352,_0x181ce1){_0x138352['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x181ce1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xfbe751,_0xbcf5f9,_0x5560d8){if(this['_addDescriptionItems'](_0xfbe751,_0xbcf5f9),_0x5560d8&&_0x5560d8['getFirstRange']()&&!_0xbcf5f9['getFirstRange']()['end']['isEqual'](_0x5560d8['getFirstRange']()['start'])){const _0x268556=_0xfbe751[_0xfbe751['length']-0x1],_0x10d3ea='insertion'==_0xbcf5f9['type']?'add':'remove';_0x268556&&'text'==_0x268556['type']&&(_0x268556[_0x10d3ea]+='\x0a');}}}class E extends _0x5a6596{['afterInit'](){const _0x3b12f1=this['editor'],_0x1ee35a=_0x3b12f1['plugins']['get']('TrackChangesEditing');_0x3b12f1['commands']['get']('showAIAssistant')&&_0x1ee35a['enableCommand']('showAIAssistant');}}class V extends _0x5a6596{['afterInit'](){const _0x28840d=this['editor'],_0xaa25d9=_0x28840d['locale'];if(!_0x28840d['plugins']['has']('AlignmentEditing'))return;const _0x2855f7=_0x28840d['plugins']['get']('TrackChangesEditing');_0x2855f7['enableDefaultAttributesIntegration']('alignment'),_0x2855f7['registerBlockAttribute']('alignment'),_0x2855f7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xaa25d9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2afc97=this['editor'],_0x7782d8=_0x2afc97['locale'];_0x2afc97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ecb27=>{if('formatBlock'!=_0x5ecb27['type'])return;const {data:_0x458c76}=_0x5ecb27;if(_0x458c76&&'alignment'==_0x458c76['commandName']){const _0x1fb88b=_0x458c76['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x7782d8,'*Format:*\x20%0',function(_0x457b83){switch(_0x457b83){case'left':return o(_0x7782d8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x7782d8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x7782d8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x7782d8,'FORMAT_JUSTIFY_TEXT');}}(_0x1fb88b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5a6596{['afterInit'](){const _0x2ad161=this['editor'],_0xe2ada1=_0x2ad161['plugins']['get']('TrackChangesEditing'),_0xcb82f=_0x2ad161['locale'];for(const _0x5e6596 of ti){if(!_0x2ad161['plugins']['has'](_0x5e6596))continue;const _0x285fa3=_0x5e6596['slice'](0x0,-0x7)['toLowerCase'](),_0x37d81d='FORMAT_'+_0x285fa3['toUpperCase']();_0xe2ada1['enableDefaultAttributesIntegration'](_0x285fa3),_0xe2ada1['registerInlineAttribute'](_0x285fa3),_0xe2ada1['descriptionFactory']['registerAttributeLabel'](_0x285fa3,o(_0xcb82f,_0x37d81d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x158d27=this['editor'],_0xb2582f=_0x158d27['locale'],_0x539e97=_0x158d27['plugins']['get']('TrackChangesEditing');function _0x122866(_0x228ba9,_0x19b135){_0x539e97['descriptionFactory']['registerDescriptionCallback'](_0x22f394=>{if('formatInline'!=_0x22f394['type'])return;const {data:_0x3168c6}=_0x22f394;return _0x3168c6&&_0x3168c6['commandName']===_0x228ba9?_0x3168c6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb2582f,'*Format:*\x20%0',_0x19b135)}:{'type':'format','content':o(_0xb2582f,'*Remove\x20format:*\x20%0',_0x19b135)}:void 0x0;});}_0x122866('bold',o(_0xb2582f,'FORMAT_BOLD')),_0x122866('italic',o(_0xb2582f,'FORMAT_ITALIC')),_0x122866('underline',o(_0xb2582f,'FORMAT_UNDERLINE')),_0x122866('code',o(_0xb2582f,'FORMAT_CODE')),_0x122866('strikethrough',o(_0xb2582f,'FORMAT_STRIKETHROUGH')),_0x122866('subscript',o(_0xb2582f,'FORMAT_SUBSCRIPT')),_0x122866('superscript',o(_0xb2582f,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5a6596{['afterInit'](){const _0x447caf=this['editor'],_0x68f2ac=_0x447caf['locale'];if(!_0x447caf['plugins']['has']('BlockQuoteEditing'))return;const _0x15b5e1=_0x447caf['plugins']['get']('TrackChangesEditing'),_0x233835=this['editor']['commands']['get']('blockQuote');_0x15b5e1['enableCommand']('blockQuote',(_0x15d98a,_0x14b407={})=>{const _0x219fb8=this['editor']['model']['document']['selection'],_0x195675=_0x14b407&&void 0x0!==_0x14b407['forceValue']?_0x14b407['forceValue']:!_0x233835['value'];let _0x1ea011=[];if(_0x195675){const _0x3fe9f5=Array['from'](_0x219fb8['getSelectedBlocks']())['filter'](_0x13e36e=>oo(_0x13e36e)||function(_0x430876,_0xbee8e9){const _0x15310d=_0xbee8e9['checkChild'](_0x430876['parent'],'blockQuote'),_0x588d86=_0xbee8e9['checkChild'](['$root','blockQuote'],_0x430876);return _0x15310d&&_0x588d86;}(_0x13e36e,this['editor']['model']['schema']));_0x1ea011=to(_0x3fe9f5,_0x447caf['model']);}else{const _0x59870b=Array['from'](_0x219fb8['getSelectedBlocks']())['filter'](_0x400919=>oo(_0x400919));_0x1ea011=to(_0x59870b,_0x447caf['model']);}_0x447caf['model']['change'](()=>{for(const _0x349001 of _0x1ea011)_0x15b5e1['markBlockFormat'](_0x349001,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x195675}]});});}),_0x15b5e1['descriptionFactory']['registerDescriptionCallback'](_0xd46df3=>{const {data:_0x45fe17}=_0xd46df3;if(_0x45fe17&&'blockQuote'==_0x45fe17['commandName']){const _0x1610ba=o(_0x68f2ac,'ELEMENT_BLOCK_QUOTE');return _0x45fe17['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x68f2ac,'*Set\x20format:*\x20%0',_0x1610ba)}:{'type':'format','content':o(_0x68f2ac,'*Remove\x20format:*\x20%0',_0x1610ba)};}});}}function oo(_0x4b3425){return'blockQuote'==_0x4b3425['parent']['name'];}class F extends _0x5a6596{['afterInit'](){const _0x38ec7d=this['editor'];_0x38ec7d['plugins']['has']('CaseChange')&&(_0x38ec7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x38ec7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x38ec7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x5a6596{['afterInit'](){const _0x1cca6a=this['editor'];_0x1cca6a['commands']['get']('ckbox')&&_0x1cca6a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5a6596{['afterInit'](){const _0x50b3ff=this['editor'];if(!_0x50b3ff['plugins']['has']('CodeBlock'))return;const _0x4ff51a=_0x50b3ff['plugins']['get']('TrackChangesEditing'),_0x5e67e5=_0x50b3ff['locale'],_0x526d8a=_0x50b3ff['config']['get']('codeBlock')['languages'],_0x5206fe=_0x50b3ff['commands']['get']('codeBlock');_0x4ff51a['enableCommand']('indentCodeBlock'),_0x4ff51a['enableCommand']('outdentCodeBlock'),_0x4ff51a['enableCommand']('codeBlock',(_0x5cdc64,_0x7c7d80={})=>{const _0x59c072=_0x50b3ff['model'],_0x6399fa=_0x50b3ff['model']['document']['selection'],_0x3985da=_0x7c7d80&&void 0x0!==_0x7c7d80['forceValue']?_0x7c7d80['forceValue']:!_0x5206fe['value'];let _0xf14658;_0x7c7d80['language']||(_0x7c7d80['language']=_0x526d8a[0x0]['language']),_0xf14658=_0x3985da?Array['from'](_0x6399fa['getSelectedBlocks']())['filter'](_0x29df49=>eo(_0x29df49)||function(_0x59e12b,_0x16a895){if(_0x59e12b['is']('rootElement')||_0x16a895['isLimit'](_0x59e12b))return!0x1;return _0x16a895['checkChild'](_0x59e12b['parent'],'codeBlock');}(_0x29df49,_0x59c072['schema'])):Array['from'](_0x6399fa['getSelectedBlocks']())['filter'](_0x1caf81=>eo(_0x1caf81));const _0x3e2973=to(_0xf14658,_0x59c072);_0x59c072['change'](()=>{for(const _0x420adc of _0x3e2973)_0x4ff51a['markBlockFormat'](_0x420adc,{'commandName':'codeBlock','commandParams':[{..._0x7c7d80,'forceValue':_0x3985da}],'formatGroupId':'blockName'});});}),(_0x4ff51a['descriptionFactory']['registerElementLabel']('codeBlock',_0x2c069e=>o(_0x5e67e5,'ELEMENT_CODE_BLOCK',_0x2c069e)),_0x4ff51a['descriptionFactory']['registerDescriptionCallback'](_0x1f6907=>{if('formatBlock'!=_0x1f6907['type'])return;const _0x146377=_0x5e67e5['t'],{data:_0x11035e}=_0x1f6907;if(!_0x11035e||'codeBlock'!=_0x11035e['commandName'])return;const _0x9442cc=_0x11035e['commandParams'][0x0]['language'],_0x73c3c=_0x146377(_0x526d8a['find'](_0x33dd23=>_0x33dd23['language']===_0x9442cc)['label'])['toLowerCase']();return _0x11035e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e67e5,'*Set\x20format:*\x20%0',o(_0x5e67e5,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x73c3c+')')}:{'type':'format','content':o(_0x5e67e5,'*Remove\x20format:*\x20%0',o(_0x5e67e5,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2235d2){return'codeBlock'==_0x2235d2['name'];}class H extends _0x5a6596{['afterInit'](){const _0x5d9921=this['editor'];if(!_0x5d9921['plugins']['has']('CommentsEditing'))return;_0x5d9921['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x77dbaf,_0x48f68f,_0x42cb2b){const _0x56548e=[];for(const _0x5e6594 of _0x48f68f['getItems']())_0x5e6594['hasAttribute'](_0x77dbaf)&&_0x56548e['push'](_0x42cb2b['createRangeOn'](_0x5e6594));return _0x56548e;}function _e(_0x152586,_0x2d946f,{showActiveMarker:_0x3cea05=!0x0}={}){const _0x1e06d6=_0x152586['plugins']['get']('TrackChangesEditing');return(_0x116bed,_0x46908e,_0x49322d)=>{if(!_0x49322d['consumable']['test'](_0x46908e['markerRange'],_0x116bed['name']))return;const _0x5ae4ac=_0x46908e['markerRange']['getWalker'](),_0x3cc9d8=_0x46908e['markerRange']['start'],_0x16fc21=_0x152586['model']['schema'];let _0x597f57=null,_0xb37439=null,_0x377d8f=!0x1,_0x58f560=!0x1;for(const _0x2ff893 of _0x5ae4ac){const _0xceaf47=_0x2ff893['item'];_0x377d8f=_0x377d8f||_0x16fc21['isContent'](_0xceaf47);const _0x1e4201=_0x49322d['mapper']['toViewElement'](_0xceaf47);if(_0x1e4201&&_0x1e4201['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2ff893['type']&&(_0x16fc21['isBlock'](_0xceaf47)&&!_0x16fc21['isLimit'](_0xceaf47)&&(_0xceaf47['nextSibling']||_0x3cc9d8['isAtEnd']?_0x597f57&&_0x597f57['parent']==_0xceaf47||(_0x597f57=_0xceaf47,_0x7e0611(_0x2ff893['previousPosition']),_0x58f560=!0x0):_0xb37439=_0xb37439||_0x2ff893['previousPosition']));}function _0x7e0611(_0x5ec1e7){const _0x471eee=_0x49322d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d946f}),_0x5413d0=_0x49322d['mapper']['toViewPosition'](_0x5ec1e7);_0x3cea05&&_0x1e06d6['activeMarkers']['includes'](_0x46908e['markerName'])&&_0x49322d['writer']['addClass']('ck-suggestion-marker--active',_0x471eee),_0x49322d['writer']['insert'](_0x5413d0,_0x471eee),_0x49322d['mapper']['bindElementToMarker'](_0x471eee,_0x46908e['markerName']);}_0x377d8f||_0x58f560||!_0xb37439||_0x7e0611(_0xb37439);};}class q extends _0x5a6596{static get['requires'](){return[_0x58974f];}['init'](){const _0xb41ad5=this['editor'],_0x267c8d=_0xb41ad5['plugins']['get']('TrackChangesEditing');_0x267c8d['enableCommand']('delete');const _0x3c85b3=_0xb41ad5['commands']['get']('deleteForward');_0x267c8d['enableCommand']('deleteForward',(_0x5d7fb6,_0x40c872={})=>{const _0x5d0337=_0xb41ad5['model']['createSelection'](_0xb41ad5['model']['document']['selection']);_0x5d0337['isCollapsed']&&_0xb41ad5['model']['modifySelection'](_0x5d0337,{'direction':'forward','unit':_0x40c872['unit']});const _0x10e6ae=_0x5d0337['getFirstRange'](),_0x558aae=_0x5ac8f0['fromRange'](_0x10e6ae);let _0x14b70d;_0x5d7fb6(_0x40c872),_0x14b70d='$graveyard'==_0x558aae['root']['rootName']?_0xb41ad5['model']['createRange'](_0x10e6ae['start']):_0xb41ad5['model']['createRange'](_0x558aae['start'],_0x558aae['end']),_0x558aae['detach'](),_0xb41ad5['model']['enqueueChange'](_0x3c85b3['buffer']['batch'],_0x5c58f2=>{_0x3c85b3['buffer']['lock'](),_0x5c58f2['setSelection'](_0x5c58f2['createRange'](_0x14b70d['end'])),_0x3c85b3['buffer']['unlock']();});}),_0xb41ad5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xb41ad5,'merge'),{'priority':'high'}),_0xb41ad5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2feee7,_0x2a5d98,_0x5049ab)=>{_0x5049ab['options']['showSuggestionHighlights']&&_e(_0xb41ad5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2feee7,_0x2a5d98,_0x5049ab);},{'priority':'high'}),_0xb41ad5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4b2bc6,_0x5bdcd9,_0x41d3d8)=>{const _0x2779c4=_0x41d3d8['mapper']['markerNameToElements'](_0x5bdcd9['markerName']);if(_0x2779c4){for(const _0x47fd19 of _0x2779c4)_0x47fd19['is']('uiElement')&&(_0x41d3d8['mapper']['unbindElementFromMarkerName'](_0x47fd19,_0x5bdcd9['markerName']),_0x41d3d8['writer']['remove'](_0x47fd19));}},{'priority':'high'});}}class z extends _0x5a6596{['afterInit'](){const _0x3b2ec3=this['editor'];if(!_0x3b2ec3['plugins']['has']('ListEditing'))return;const _0xaf1fad=_0x3b2ec3['locale'],_0x2e3800=_0x3b2ec3['plugins']['get']('TrackChangesEditing'),_0x1de7f6=_0x3b2ec3['plugins']['has']('TodoListEditing'),_0x3c0f67=!!_0x3b2ec3['config']['get']('list.multiBlock');function _0x1c6ccb(_0xaca290){return{'type':'format','content':''+o(_0xaf1fad,'*Set\x20format:*\x20%0',_0xaca290)};}function _0x5f5b07(_0x42c1d9){return{'type':'format','content':''+o(_0xaf1fad,'*Remove\x20format:*\x20%0',_0x42c1d9)};}_0x2e3800['enableDefaultAttributesIntegration']('numberedList'),_0x2e3800['enableDefaultAttributesIntegration']('bulletedList'),_0x2e3800['enableDefaultAttributesIntegration']('customNumberedList'),_0x2e3800['enableDefaultAttributesIntegration']('customBulletedList'),_0x2e3800['enableDefaultAttributesIntegration']('indentList'),_0x2e3800['enableDefaultAttributesIntegration']('outdentList'),_0x2e3800['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2e3800['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2e3800['registerBlockAttribute']('listItemId'),_0x2e3800['registerBlockAttribute']('listType'),_0x2e3800['registerBlockAttribute']('listIndent'),_0x3c0f67&&(_0x2e3800['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2e3800['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1de7f6&&(_0x2e3800['enableDefaultAttributesIntegration']('todoList'),_0x2e3800['enableDefaultAttributesIntegration']('checkTodoList'),_0x2e3800['registerBlockAttribute']('todoListChecked'),_0x2e3800['descriptionFactory']['registerDescriptionCallback'](_0x2d0fc4=>{const {data:_0x2d3977}=_0x2d0fc4;if(_0x2d3977&&'todoListChecked'==_0x2d3977['key'])return{'type':'format','content':_0x2d3977['newValue']?o(_0xaf1fad,'*Check\x20item*'):o(_0xaf1fad,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4cd2f0=>{if(_0x4cd2f0['batch']['isUndo'])return!0x1;let _0x3824f3=!0x1;const _0x1cd95f=_0x2e3800['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38269e=>'todoListChecked'===_0x2e3800['_getAttributeKey'](_0x38269e));for(const _0x319c0a of _0x1cd95f){'todo'!=_0x319c0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2e3800['_findSuggestions'](_0x319c0a['getFirstRange'](),'attribute')['find'](_0x2d88b8=>'listType'===_0x2e3800['_getAttributeKey'](_0x2d88b8['suggestion']))||(_0x4cd2f0['removeMarker'](_0x319c0a['getFirstMarker']()),_0x3824f3=!0x0));}return _0x3824f3;})),_0x2e3800['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xaf1fad,'FORMAT_INDENT'));const _0x3fd582={'type':'format','content':''};_0x2e3800['descriptionFactory']['registerDescriptionCallback'](_0x238ebc=>{const {data:_0x4f865d}=_0x238ebc;if(!_0x4f865d||'listType'!=_0x4f865d['key'])return;let _0x593c7d=_0x238ebc['head'];for(;_0x593c7d;){if(_0x593c7d['data']&&(('listStyle'==_0x593c7d['data']['key']||'listMarkerStyle'==_0x593c7d['data']['key'])&&(_0x593c7d['data']['newValue']&&'default'!=_0x593c7d['data']['newValue']||'default'!=_0x593c7d['data']['oldValue']&&!_0x4f865d['newValue'])||!_0x3c0f67&&_0x593c7d['data']['key']==m))return _0x3fd582;_0x593c7d=_0x593c7d['next'];}if(null==_0x4f865d['newValue'])switch(_0x4f865d['oldValue']){case'bulleted':return _0x5f5b07(o(_0xaf1fad,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f5b07(o(_0xaf1fad,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f5b07(o(_0xaf1fad,'ELEMENT_TODO_LIST'));}switch(_0x4f865d['newValue']){case'bulleted':return _0x1c6ccb(o(_0xaf1fad,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c6ccb(o(_0xaf1fad,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c6ccb(o(_0xaf1fad,'ELEMENT_TODO_LIST'));}}),_0x2e3800['descriptionFactory']['registerDescriptionCallback'](_0x677f00=>{const {data:_0x30a37a}=_0x677f00;if(_0x30a37a&&'listIndent'==_0x30a37a['key'])return null==_0x30a37a['newValue']||null==_0x30a37a['oldValue']&&0x0==_0x30a37a['newValue']?_0x3fd582:void 0x0;}),_0x2e3800['descriptionFactory']['registerDescriptionCallback'](_0x246a8e=>{if('attribute'!=_0x246a8e['type'])return;const {data:_0x4cf4d3}=_0x246a8e;if(!_0x4cf4d3||'listItemId'!=_0x4cf4d3['key'])return;const _0x90e078=le(_0x246a8e);return'newValue'==_0x90e078?{'type':'format','content':o(_0xaf1fad,'*Merge:*\x20list\x20item')}:'oldValue'==_0x90e078?{'type':'format','content':o(_0xaf1fad,'*Split:*\x20list\x20item')}:_0x3fd582;}),_0x3b2ec3['model']['document']['registerPostFixer'](_0x544d2a=>this['listItemIdFixer'](_0x544d2a)),_0x3b2ec3['model']['document']['registerPostFixer'](_0x51eed1=>this['noTrackChangesFixer'](_0x51eed1)),_0x3b2ec3['model']['document']['registerPostFixer'](_0x4b5cee=>this['assureChains'](_0x4b5cee)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2c8ccc){if(_0x2c8ccc['batch']['isUndo']||!_0x2c8ccc['batch']['isLocal'])return!0x1;let _0x41b6a6=!0x1;const _0x137d4b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34d9c4=>_0x34d9c4['data']&&'listItemId'==_0x34d9c4['data']['key'])['filter'](_0x1b3847=>_0x1b3847['data']['newValue']&&_0x1b3847['data']['oldValue']);for(const _0x1ca255 of _0x137d4b)le(_0x1ca255)||(_0x2c8ccc['removeMarker'](_0x1ca255['getFirstMarker']()),_0x41b6a6=!0x0);return _0x41b6a6;}['noTrackChangesFixer'](_0x45c30d){if(_0x45c30d['batch']['isUndo']||!_0x45c30d['batch']['isLocal'])return!0x1;const _0x50416d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x50416d['trackChangesCommand']['value'])return!0x1;let _0xd30e01=!0x1;const _0x29c0fd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x57b301=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x76266=>'attribute'==_0x76266['type'])['filter'](_0x287d5a=>_0x29c0fd['includes'](_0x287d5a['attributeKey']));if(0x0==_0x57b301['length'])return _0xd30e01;for(const _0x2f172b of _0x57b301){const _0x4744d7=_0x50416d['_findSuggestions'](_0x2f172b['range'],'attribute')['filter'](_0x16d8bb=>!_0x16d8bb['meta']['isNextTo'])['map'](_0x344d61=>_0x344d61['suggestion'])['filter'](_0x74c8b0=>{const _0x451cec=_0x50416d['_getAttributeKey'](_0x74c8b0);return _0x29c0fd['includes'](_0x451cec);});if(_0x4744d7['length']){for(const _0x57a4c7 of _0x4744d7)_0x45c30d['removeMarker'](_0x57a4c7['getFirstMarker']());_0xd30e01=!0x0;}}return _0xd30e01;}['assureChains'](_0x805169){if(_0x805169['batch']['isUndo']||!_0x805169['batch']['isLocal'])return!0x1;const _0x165acb=this['editor']['plugins']['get']('TrackChangesEditing');let _0xef54be=!0x1;const _0x275cfe=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x301174 of _0x165acb['getSuggestions']({'skipNotAttached':!0x0})){const _0x527a20=_0x165acb['_findSuggestions'](_0x301174['getFirstRange'](),'attribute')['map'](_0x56f797=>_0x56f797['suggestion'])['filter'](_0x4d7621=>_0x4d7621['data']&&_0x275cfe['includes'](_0x4d7621['data']['key']));if(!_0x527a20['length'])continue;const _0x58a9dc=_0x527a20[0x0]['head']['attributes']['groupId'];if(!_0x527a20['every'](_0x4d56c5=>_0x4d56c5['attributes']['groupId']===_0x58a9dc)){for(const _0x46af15 of _0x527a20)_0x4e9784(_0x46af15,_0x58a9dc)&&(_0xef54be=!0x0);}}return _0xef54be;function _0x58582c(_0x53e25f,_0x3429c4){for(const _0x9425f2 of _0x165acb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d9d25=>'attribute'==_0x3d9d25['type']&&_0x3d9d25['attributes']['groupId']==_0x53e25f))_0x9425f2['setAttribute']('groupId',_0x3429c4);}function _0x4e9784(_0x5d36e3,_0x2faa43){let _0x2c8c45=_0x5d36e3['head'],_0x26630d=!0x1;for(;_0x2c8c45;)_0x2c8c45['attributes']['groupId']!=_0x2faa43&&(_0x58582c(_0x2c8c45['attributes']['groupId'],_0x2faa43),_0x2c8c45['setAttribute']('groupId',_0x2faa43),_0x26630d=!0x0),_0x2c8c45=_0x2c8c45['next'];return _0x26630d;}}['_supportLegacySuggestions'](){const _0x351966=this['editor'],_0x553dd4=_0x351966['locale'],_0x290c3c=_0x351966['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x290c3c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4b3e5e,_0xca8561){const _0x5a35d=[];for(let _0x2dc233 of _0x4b3e5e)_0x2dc233['start']['nodeAfter']===_0x2dc233['end']['parent']&&(_0x2dc233=_0x351966['model']['createRange'](_0x351966['model']['createPositionAt'](_0x2dc233['start']['nodeAfter'],0x0))),_0x5a35d['push'](_0x2dc233);_0x351966['model']['change'](_0x514a19=>{const _0x8062b3=_0x351966['model']['document']['selection'],_0xc325f4=Array['from'](_0x8062b3['getRanges']())['map'](_0xf30e13=>_0x5ac8f0['fromRange'](_0xf30e13));_0x514a19['setSelection'](_0x5a35d),_0x351966['commands']['get'](_0xca8561['commandName'])['refresh'](),_0xca8561['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x351966['execute'](_0xca8561['commandName'],..._0xca8561['commandParams']),_0x514a19['setSelection'](_0xc325f4);for(const _0x46ac03 of _0xc325f4)_0x46ac03['detach']();});}),_0x290c3c['descriptionFactory']['registerElementLabel'](function(_0x5dfcd4){const _0x2ce37d=!_0x351966['model']['schema']['isObject'](_0x5dfcd4),_0x4e1400=_0x5dfcd4['previousSibling'],_0x3e3a3b=_0x5dfcd4['nextSibling'],_0x73de8c=_0x5dfcd4['getAttribute']('listItemId'),_0x49f386=!_0x4e1400||_0x4e1400['getAttribute']('listItemId')!==_0x73de8c,_0x2e23cd=!_0x3e3a3b||_0x3e3a3b['getAttribute']('listItemId')!==_0x73de8c;return _0x2ce37d&&Boolean(_0x73de8c)&&_0x49f386&&_0x2e23cd;},_0x11d211=>o(_0x553dd4,'ELEMENT_LIST_ITEM',_0x11d211));}['_registerLegacyDescription'](){const _0x5da234=this['editor'],_0x4ecde7=_0x5da234['locale'];function _0x3a576e(_0x2dac57){const _0x27b567=_0x5da234['commands']['get']('bulletedList')['value'],_0x2667de=_0x5da234['commands']['get']('numberedList')['value'];return'numberedList'===_0x2dac57?_0x27b567:_0x2667de;}_0x5da234['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3887a5){if('formatBlock'!=_0x3887a5['type'])return;const {data:_0xe972e}=_0x3887a5;if(!_0xe972e)return;let _0x53879d,_0x2c57e5,_0x3bbb78,_0x4fc3aa;switch(_0xe972e['commandName']){case'bulletedList':_0x3bbb78=_0xe972e['commandParams'][0x0]['forceValue'],_0x4fc3aa=_0x3a576e(_0xe972e['commandName']),_0x53879d=_0x3bbb78?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4fc3aa&&_0x5da234['config']['get']('list.multiBlock')||(_0x53879d='*Change\x20to:*\x20%0'),_0x2c57e5={'type':'format','content':o(_0x4ecde7,_0x53879d,o(_0x4ecde7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3bbb78=_0xe972e['commandParams'][0x0]['forceValue'],_0x4fc3aa=_0x3a576e(_0xe972e['commandName']),_0x53879d=_0x3bbb78?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4fc3aa&&_0x5da234['config']['get']('list.multiBlock')||(_0x53879d='*Change\x20to:*\x20%0'),_0x2c57e5={'type':'format','content':o(_0x4ecde7,_0x53879d,o(_0x4ecde7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x53879d='*Indent:*\x20%0',_0x2c57e5={'type':'format','content':o(_0x4ecde7,_0x53879d,o(_0x4ecde7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x53879d=function(_0x3531a5){const _0x415a68=_0x3531a5['getFirstRange']();let _0x4338e4=_0x415a68['start']['nodeAfter'];for(;_0x4338e4&&_0x415a68['containsItem'](_0x4338e4);){if(_0x4338e4['getAttribute']('listIndent')>0x0)return!0x1;_0x4338e4=_0x4338e4['nextSibling'];}return!0x0;}(_0x3887a5)?o(_0x4ecde7,'*Format:*\x20remove\x20from\x20%0',o(_0x4ecde7,function(_0x5530e6){return'ELEMENT_'+_0x5530e6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3887a5))):o(_0x4ecde7,'*Outdent:*\x20%0',o(_0x4ecde7,'ELEMENT_LIST_ITEM')),_0x2c57e5={'type':'format','content':_0x53879d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xe972e['multipleBlocks']&&(_0x53879d='*Merge:*\x20%0',_0x2c57e5={'type':'deletion','content':o(_0x4ecde7,_0x53879d,o(_0x4ecde7,'ELEMENT_LIST_ITEM'))});}return _0x2c57e5;});}}function le(_0x7378dc){let _0x2f4097=_0x7378dc['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2f4097;){const _0x395a6e=_0x2f4097['getAttribute']('listItemId');if(!_0x395a6e)return!0x1;if(_0x395a6e==_0x7378dc['data']['newValue'])return'newValue';if(_0x395a6e==_0x7378dc['data']['oldValue'])return'oldValue';_0x2f4097=_0x2f4097['previousSibling'];}return!0x1;}class ue extends _0x5a6596{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x11cec6=this['editor']['config']['get']('list.properties'),_0x2cb397=this['editor']['plugins']['get']('TrackChangesEditing');_0x11cec6['styles']&&(_0x2cb397['enableDefaultAttributesIntegration']('listStyle'),_0x2cb397['registerBlockAttribute']('listStyle')),_0x11cec6['reversed']&&(_0x2cb397['enableDefaultAttributesIntegration']('listReversed'),_0x2cb397['registerBlockAttribute']('listReversed')),_0x11cec6['startIndex']&&(_0x2cb397['enableDefaultAttributesIntegration']('listStart'),_0x2cb397['registerBlockAttribute']('listStart'));const _0x4e55e8={'type':'format','content':''};_0x2cb397['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x29c633=this['editor']['locale'];_0x2cb397['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x29c633,'FORMAT_LIST_REVERSED')),_0x2cb397['descriptionFactory']['registerDescriptionCallback'](_0x26f428=>{const {data:_0x30c11c}=_0x26f428;if(_0x30c11c&&'listReversed'==_0x30c11c['key'])return null==_0x30c11c['newValue']||0x0==_0x30c11c['newValue']&&null==_0x30c11c['oldValue']?_0x4e55e8:void 0x0;}),_0x2cb397['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x29c633,'FORMAT_LIST_START')),_0x2cb397['descriptionFactory']['registerDescriptionCallback'](_0x533fa3=>{const {data:_0x43470b}=_0x533fa3;if(_0x43470b&&'listStart'==_0x43470b['key'])return null==_0x43470b['newValue']||0x1==_0x43470b['newValue']&&null==_0x43470b['oldValue']?_0x4e55e8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3dc68d=>{if(_0x3dc68d['batch']['isUndo'])return!0x1;let _0x10157a=!0x1;const _0x194bc7=_0x2cb397['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ac0f0=>{const _0x3bab41=_0x2cb397['_getAttributeKey'](_0x4ac0f0);return'listStart'==_0x3bab41||'listReversed'==_0x3bab41;});for(const _0x529071 of _0x194bc7){const _0x46bb98=_0x529071['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x46bb98||'customNumbered'==_0x46bb98)continue;_0x2cb397['_findSuggestions'](_0x529071['getFirstRange'](),'attribute')['find'](_0x4783d6=>'listType'==_0x2cb397['_getAttributeKey'](_0x4783d6['suggestion']))||(_0x3dc68d['removeMarker'](_0x529071['getFirstMarker']()),_0x10157a=!0x0);}return _0x10157a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x52cc86){const _0x5d5728=this['editor']['locale'],{data:_0x260bc3}=_0x52cc86,_0x298d6b={'type':'format','content':''};if(!_0x260bc3||'listStyle'!=_0x260bc3['key'])return;if(!_0x260bc3['oldValue'])return'default'==_0x260bc3['newValue']?_0x298d6b:{'type':'format','content':''+o(_0x5d5728,'*Set\x20format:*\x20%0',o(_0x5d5728,this['_getTranslationKeyForListStyle'](_0x260bc3['newValue'])))};if(!_0x260bc3['newValue']){if('default'==_0x260bc3['oldValue'])return _0x298d6b;let _0x1b9313=_0x52cc86['head'];for(;_0x1b9313;){if(_0x1b9313['data']&&'listType'==_0x1b9313['data']['key']&&_0x1b9313['data']['newValue'])return _0x298d6b;_0x1b9313=_0x1b9313['next'];}return{'type':'format','content':''+o(_0x5d5728,'*Remove\x20format:*\x20%0',o(_0x5d5728,this['_getTranslationKeyForListStyle'](_0x260bc3['oldValue'])))};}if('default'!=_0x260bc3['newValue'])return{'type':'format','content':''+o(_0x5d5728,'*Set\x20format:*\x20%0',o(_0x5d5728,this['_getTranslationKeyForListStyle'](_0x260bc3['newValue'])))};let _0x4fff8d=_0x52cc86['head'];for(;_0x4fff8d;){if(_0x4fff8d['data']&&'listType'==_0x4fff8d['data']['key']&&_0x4fff8d['data']['newValue']&&_0x4fff8d['data']['oldValue'])return _0x298d6b;_0x4fff8d=_0x4fff8d['next'];}return{'type':'format','content':o(_0x5d5728,'*Set\x20format:*\x20%0',o(_0x5d5728,'ELEMENT_'+_0x52cc86['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x20d774=this['editor'],_0x10aa91=_0x20d774['locale'];_0x20d774['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26ac6c=>{if('formatBlock'!=_0x26ac6c['type'])return;const {data:_0x4eb6f8}=_0x26ac6c;if(!_0x4eb6f8)return;let _0x397645,_0x1d82d9;switch(_0x4eb6f8['commandName']){case'listStyle':_0x397645='*Change\x20to:*\x20%0',_0x1d82d9={'type':'format','content':o(_0x10aa91,_0x397645,o(_0x10aa91,this['_getTranslationKeyForListStyle'](_0x4eb6f8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x397645=_0x4eb6f8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d82d9={'type':'format','content':o(_0x10aa91,_0x397645)};break;case'listStart':_0x397645='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d82d9={'type':'format','content':o(_0x10aa91,_0x397645,_0x4eb6f8['commandParams'][0x0]['startIndex'])};}return _0x1d82d9;});}['_getTranslationKeyForListStyle'](_0x1c33da){return'ELEMENT_'+function(_0x5186f9){if(pe['includes'](_0x5186f9))return'bulleted';if(ye['includes'](_0x5186f9))return'numbered';return null;}(_0x1c33da)['toUpperCase']()+'_LIST_'+_0x1c33da['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5a6596{static get['requires'](){return[_0x5f5b88];}['init'](){const _0x1205b7=this['editor'],_0x45baba=_0x1205b7['plugins']['get']('TrackChangesEditing'),_0x5261fa=_0x1205b7['commands']['get']('enter');_0x45baba['enableCommand']('enter',()=>{_0x1205b7['model']['change'](_0xb95e8f=>{const _0x26cf6b=_0x1205b7['model']['document']['selection'],_0x44918d=_0x26cf6b['getFirstPosition'](),_0x3480c1=_0x5ac8f0['fromRange'](_0x26cf6b['getFirstRange']());if(_0x5261fa['enterBlock'](_0xb95e8f)){const _0x575353=_0x1205b7['model']['createPositionAt'](_0x44918d['parent']['nextSibling'],0x0),_0x3b2665=_0xb95e8f['createRange'](_0x44918d,_0x575353);_0x45baba['markInsertion'](_0x3b2665);}else _0xb95e8f['setSelection'](_0xb95e8f['createRange'](_0x3480c1['end']));_0x3480c1['detach'](),_0x5261fa['fire']('afterExecute',{'writer':_0xb95e8f});});}),_0x1205b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1205b7,'split'),{'priority':'high'}),_0x1205b7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x76f6d8,_0x5b933b,_0x1d5287)=>{const _0x59db09=_0x1d5287['mapper']['markerNameToElements'](_0x5b933b['markerName']);if(_0x59db09){for(const _0x882da9 of _0x59db09)_0x882da9['hasClass']('ck-suggestion-marker-split')&&(_0x1d5287['mapper']['unbindElementFromMarkerName'](_0x882da9,_0x5b933b['markerName']),_0x1d5287['writer']['remove'](_0x882da9));}},{'priority':'high'}),_0x1205b7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19461a,_0x1808ba,_0x3e9192)=>{_0x3e9192['options']['showSuggestionHighlights']&&_e(_0x1205b7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x19461a,_0x1808ba,_0x3e9192);},{'priority':'high'});}}class J extends _0x5a6596{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3a413e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a413e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3a413e['enableCommand']('findNext'),_0x3a413e['enableCommand']('findPrevious'),_0x3a413e['enableCommand']('replace'),_0x3a413e['enableCommand']('replaceAll');}['handleFindCommand'](_0x1cba46,_0x59be20,_0x3164bf={}){const _0x7da9f3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1cba46(_0x4eab78=>('string'==typeof _0x59be20?_0x7da9f3['findByTextCallback'](_0x59be20,_0x3164bf):_0x59be20)(_0x4eab78)['filter'](_0x1c972c=>!0x1===this['_isInDeletionRange'](_0x1c972c,_0x4eab78['item'])),_0x3164bf);}['_isInDeletionRange'](_0x3607ca,_0x40f7f3){const _0x384992=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40f7f3,_0x3607ca['start']),this['editor']['model']['createPositionAt'](_0x40f7f3,_0x3607ca['end']));for(const _0x5561c9 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x384992['getIntersection'](_0x5561c9['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 _0x5a6596{['afterInit'](){const _0x57dbd4=this['editor']['locale'],_0x236dd8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x40f7ea,commandName:_0xe60326}of ro)this['editor']['plugins']['has'](_0x40f7ea)&&(_0x236dd8['enableDefaultAttributesIntegration'](_0xe60326),_0x236dd8['registerInlineAttribute'](_0xe60326));_0x57dbd4['t'],_0x236dd8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x57dbd4,'FORMAT_FONT_SIZE')),_0x236dd8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x57dbd4,'FORMAT_FONT_FAMILY')),_0x236dd8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x57dbd4,'FORMAT_FONT_COLOR')),_0x236dd8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x57dbd4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x183eb9=this['editor'],_0x1ccb01=_0x183eb9['locale'];_0x183eb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x137d86=>{const _0x14e564=_0x1ccb01['t'];if('formatInline'!=_0x137d86['type'])return;const {data:_0x275e47}=_0x137d86;if(null!=_0x275e47){if('fontSize'==_0x275e47['commandName']){const _0x2d382b=_0x275e47['commandParams'][0x0]['value'];if(_0x2d382b){const _0x3adba4=_0x14e564(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x7b5bb=>_0x7b5bb['model']==_0x2d382b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ccb01,'*Set\x20font\x20size:*\x20%0',_0x3adba4)};}return{'type':'format','content':o(_0x1ccb01,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x275e47['commandName']){const _0x441f37=_0x275e47['commandParams'][0x0]['value'];return _0x441f37?{'type':'format','content':o(_0x1ccb01,'*Set\x20font\x20family:*\x20%0',_0x441f37)}:{'type':'format','content':o(_0x1ccb01,'*Reset\x20font\x20family*')};}if('fontColor'==_0x275e47['commandName']){const _0x55173a=_0x275e47['commandParams'][0x0]['value'];if(_0x55173a){const _0x466fb8=_0x27e33d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x59e7f9=>_0x59e7f9['model']==_0x55173a);let _0x18ce10=_0x55173a,_0x48abe6='';return _0x466fb8&&(_0x18ce10=_0x466fb8['label'],_0x48abe6=_0x14e564(_0x18ce10)['toLowerCase']()),{'type':'format','content':o(_0x1ccb01,'*Set\x20font\x20color:*\x20%0',_0x48abe6)['trim'](),'color':{'value':_0x55173a,'title':_0x48abe6||_0x18ce10}};}return{'type':'format','content':o(_0x1ccb01,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x275e47['commandName']){const _0x3f8562=_0x275e47['commandParams'][0x0]['value'];if(_0x3f8562){const _0x569ae8=_0x27e33d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1dbfe6=>_0x1dbfe6['model']==_0x3f8562);let _0x40b179=_0x3f8562,_0x1074d3='';return _0x569ae8&&(_0x40b179=_0x569ae8['label'],_0x1074d3=_0x14e564(_0x40b179)['toLowerCase']()),{'type':'format','content':o(_0x1ccb01,'*Set\x20font\x20background\x20color:*\x20%0',_0x1074d3)['trim'](),'color':{'value':_0x3f8562,'title':_0x1074d3||_0x40b179}};}return{'type':'format','content':o(_0x1ccb01,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5a6596{['afterInit'](){const _0x3bbf5c=this['editor'],_0x5e94a4=_0x3bbf5c['plugins']['get']('TrackChangesEditing'),_0x549b6e=_0x3bbf5c['commands']['get']('copyFormat'),_0x3873c8=_0x3bbf5c['commands']['get']('pasteFormat');_0x549b6e&&_0x3873c8&&(_0x5e94a4['enableDefaultAttributesIntegration']('pasteFormat'),_0x5e94a4['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x48cba2=this['editor'],_0x2703d5=_0x48cba2['locale'];_0x48cba2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a1727=>{if('formatBlock'!=_0x1a1727['type']&&'formatInline'!=_0x1a1727['type'])return;const {data:_0x2d77b8}=_0x1a1727;if(_0x2d77b8&&'pasteFormat'===_0x2d77b8['commandName']){const _0x34a168=[],_0x585361=_0x2d77b8['commandParams'][0x0];for(const [_0x38deb1,_0x4ac8ec]of Object['entries'](_0x585361))_0x34a168['push'](so(_0x48cba2,_0x38deb1,_0x4ac8ec));return _0x34a168['length']?{'type':'format','content':o(_0x2703d5,'*Set\x20format\x20to:*\x20%0',_0x34a168['join'](',\x20'))}:{'type':'format','content':o(_0x2703d5,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1b076a,_0x254b07,_0x3f962e){const _0x4b0089=_0x1b076a['locale']['t'],_0x121439=_0x254b07['split'](/(?=[A-Z])/)['join']('\x20'),_0xea541d=_0x4b0089(_0x121439['charAt'](0x0)['toUpperCase']()+_0x121439['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3f962e)return _0xea541d;if('fontColor'===_0x254b07||'fontBackgroundColor'===_0x254b07){const _0x12c19e=_0x27e33d(_0x1b076a['config']['get']('fontColor.colors'))['find'](_0x45965e=>_0x45965e['model']==_0x3f962e);return _0xea541d+'\x20('+(_0x12c19e?_0x4b0089(_0x12c19e['label'])['toLowerCase']():_0x3f962e)+')';}if('fontSize'===_0x254b07&&isNaN(parseFloat(_0x3f962e))){const _0x104a11=_0x1b076a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b076a['config']['get']('fontSize.options'))['find'](_0x316292=>_0x316292['model']==_0x3f962e);return _0xea541d+'\x20('+(_0x104a11?_0x4b0089(_0x104a11['title'])['toLowerCase']():_0x3f962e)+')';}return _0xea541d+'\x20('+_0x3f962e+')';}class Y extends _0x5a6596{['_headingOptions'];['afterInit'](){const _0x52973a=this['editor'];if(!_0x52973a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x52973a['config']['get']('heading.options');const _0x6a6a38=_0x52973a['locale'],_0xd7f603=_0x52973a['plugins']['get']('TrackChangesEditing');_0xd7f603['enableDefaultAttributesIntegration']('heading');for(const _0x5a079d of this['_headingOptions'])'paragraph'!=_0x5a079d['model']&&_0xd7f603['descriptionFactory']['registerElementLabel'](_0x5a079d['model'],_0x2dec92=>{const _0x11eb64=this['_getHeadingLevel'](_0x5a079d['model']);return null!==_0x11eb64?_0x2ce028(_0x2dec92,_0x11eb64):_0xd32283(_0x2dec92,_0x5a079d['title']);});function _0x2ce028(_0x284f6e,_0x48b3d4){return o(_0x6a6a38,'ELEMENT_HEADING',[_0x284f6e,_0x48b3d4]);}function _0xd32283(_0x329e22,_0x3cc311){return o(_0x6a6a38,'ELEMENT_HEADING_CUSTOM',[_0x329e22,_0x3cc311]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x96e0a1=this['editor'],_0xd4802=_0x96e0a1['locale'];function _0x4f112e(_0x3de921,_0x23e9c4){return o(_0xd4802,'ELEMENT_HEADING_CUSTOM',[_0x3de921,_0x23e9c4]);}_0x96e0a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5186bf=>{if('formatBlock'!=_0x5186bf['type'])return;const {data:_0x336c20}=_0x5186bf;if(_0x336c20&&'heading'==_0x336c20['commandName']){const _0x295634=_0x336c20['commandParams'][0x0]['value'],_0x2c3ea8=this['_getHeadingLevel'](_0x295634);if(null!==_0x2c3ea8)return{'type':'format','content':o(_0xd4802,'*Change\x20to:*\x20%0',(_0x3a3aa1=0x1,_0x17031a=_0x2c3ea8,o(_0xd4802,'ELEMENT_HEADING',[_0x3a3aa1,_0x17031a])))};const _0x12ec11=this['_headingOptions']['find'](_0x21a72f=>_0x21a72f['model']===_0x295634)['title'];return{'type':'format','content':o(_0xd4802,'*Change\x20to:*\x20%0',_0x4f112e(0x1,_0x12ec11))};}var _0x3a3aa1,_0x17031a;});}['_getHeadingLevel'](_0x188f21){const _0x5e4328=_0x188f21['match'](/^heading(\d+)/);if(_0x5e4328)return _0x5e4328[0x1];const _0x935ada=this['_headingOptions']?.['find'](_0x17d943=>_0x17d943['model']==_0x188f21);if(_0x935ada&&_0x935ada['view']){const _0x4ff546=_0x935ada['view'],_0x127b5d=(_0x4ff546['name']??_0x4ff546)['match'](/^h(\d+)/);if(_0x127b5d)return _0x127b5d[0x1];}return null;}}class Z extends _0x5a6596{['afterInit'](){const _0x205870=this['editor'];if(!_0x205870['plugins']['has']('HighlightEditing'))return;const _0x304e47=_0x205870['plugins']['get']('TrackChangesEditing'),_0x1ac057=_0x205870['locale'];_0x304e47['enableDefaultAttributesIntegration']('highlight'),_0x304e47['registerInlineAttribute']('highlight'),_0x304e47['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1ac057,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1eddd6=this['editor'],_0x50cf4d=_0x1eddd6['locale'];_0x1eddd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32b096=>{if('formatInline'!=_0x32b096['type'])return;const {data:_0xf90893}=_0x32b096;if(_0xf90893&&'highlight'==_0xf90893['commandName']){const _0x9a98ab=_0x50cf4d['t'],_0x39977f=_0xf90893['commandParams'][0x0]['value'];if(_0x39977f){const _0x1d5194=_0x1eddd6['config']['get']('highlight.options')['find'](_0x37113e=>_0x37113e['model']==_0x39977f),_0x42971b=_0x9a98ab(_0x1d5194['title'])['toLowerCase']();return{'type':'format','content':o(_0x50cf4d,'*Set\x20highlight:*\x20%0',_0x42971b),'color':{'value':_0x1d5194['color'],'title':_0x1d5194['title']}};}return{'type':'format','content':o(_0x50cf4d,'*Remove\x20highlight*',o(_0x50cf4d,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5a6596{['afterInit'](){const _0x5d9baf=this['editor'];if(!_0x5d9baf['plugins']['has']('HorizontalLineEditing'))return;_0x5d9baf['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5ce530=_0x5d9baf['plugins']['get']('TrackChangesEditing'),_0x221668=_0x5d9baf['locale'];_0x5ce530['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3f9c04=>o(_0x221668,'ELEMENT_HORIZONTAL_LINE',_0x3f9c04)),_0x5d9baf['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x144dec,{writer:_0x1ad965,options:_0x4a8b64})=>{if(!_0x4a8b64['showSuggestionHighlights'])return null;const _0x3a787c=_0x1ad965['createContainerElement']('div'),_0x351718=_0x1ad965['createEmptyElement']('hr');return _0x1ad965['addClass']('ck-horizontal-line',_0x3a787c),_0x1ad965['insert'](_0x1ad965['createPositionAt'](_0x3a787c,0x0),_0x351718),_0x3a787c;},'converterPriority':'high'});}}class et extends _0x5a6596{['afterInit'](){const _0x10c138=this['editor'];if(!_0x10c138['plugins']['has']('HtmlEmbed'))return;const _0x1c4281=_0x10c138['plugins']['get']('TrackChangesEditing'),_0x490f76=_0x10c138['locale'];_0x1c4281['descriptionFactory']['registerElementLabel']('rawHtml',_0x4c410f=>o(_0x490f76,'ELEMENT_HTML_EMBED',_0x4c410f)),_0x1c4281['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1c4281['registerBlockAttribute']('value'),_0x1c4281['descriptionFactory']['registerDescriptionCallback'](_0x1667ca=>{if('attribute'!=_0x1667ca['type'])return;const {data:_0x3ba84c}=_0x1667ca;if(_0x3ba84c&&'value'==_0x3ba84c['key']&&_0x1667ca['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x34002d=o(_0x490f76,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x490f76,'*Change\x20%0\x20content*',_0x34002d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x105506=this['editor'],_0x1889c0=_0x105506['locale'];_0x105506['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ce2a7=>{if('formatBlock'!=_0x3ce2a7['type'])return;const {data:_0xd2bf2a}=_0x3ce2a7;if(_0xd2bf2a&&'htmlEmbed'==_0xd2bf2a['commandName']){const _0x5b2195=o(_0x1889c0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1889c0,'*Change\x20%0\x20content*',_0x5b2195)};}});}}class it extends _0x5a6596{['afterInit'](){const _0x417ccd=this['editor'];if(!_0x417ccd['plugins']['has']('ImageEditing'))return;const _0x3c5c89=_0x417ccd['plugins']['get']('TrackChangesEditing'),_0x225535=_0x417ccd['plugins']['get']('ImageUtils'),_0x218bd5=_0x417ccd['locale'];_0x3c5c89['enableCommand']('insertImage'),_0x3c5c89['descriptionFactory']['registerElementLabel']('imageBlock',_0x55fc8c=>o(_0x218bd5,'ELEMENT_IMAGE',_0x55fc8c)),_0x3c5c89['descriptionFactory']['registerElementLabel']('imageInline',_0x4a8531=>o(_0x218bd5,'ELEMENT_INLINE_IMAGE',_0x4a8531)),_0x3c5c89['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x218bd5,'ELEMENT_CAPTION')),_0x417ccd['plugins']['has']('ImageUploadEditing')&&_0x3c5c89['enableCommand']('uploadImage'),_0x417ccd['plugins']['has']('ImageBlockEditing')&&_0x417ccd['plugins']['has']('ImageInlineEditing')&&(_0x3c5c89['enableCommand']('imageTypeInline',(_0x31ba29,_0x586910)=>{const _0x3c86c5=_0x225535['getClosestSelectedImageElement'](_0x417ccd['model']['document']['selection']);_0x417ccd['model']['change'](()=>{_0x3c5c89['markBlockFormat'](_0x3c86c5,{'commandName':'imageTypeInline','commandParams':[_0x586910]},[],'convertBlockImageToInline');});}),_0x3c5c89['enableCommand']('imageTypeBlock',(_0x19cdc,_0x170df7)=>{_0x417ccd['model']['change'](_0x1e8d55=>{let _0x3c70d4=_0x225535['getClosestSelectedImageElement'](_0x417ccd['model']['document']['selection']),_0x1d2a4f=_0x1e8d55['createRangeOn'](_0x3c70d4);const _0x190165=_0x4ae947['fromPosition'](_0x1d2a4f['start'],'toPrevious'),_0x2ccf5d=_0x4ae947['fromPosition'](_0x1d2a4f['end'],'toNext');_0x3c5c89['forceDefaultExecution'](()=>_0x19cdc(_0x170df7)),_0x3c70d4=_0x225535['getClosestSelectedImageElement'](_0x417ccd['model']['document']['selection']),_0x1d2a4f=_0x1e8d55['createRangeOn'](_0x3c70d4);const _0x4abf69=_0x1e8d55['createRange'](_0x190165,_0x2ccf5d);_0x190165['detach'](),_0x2ccf5d['detach'](),_0x3c5c89['markBlockFormat'](_0x3c70d4,{'commandName':'imageTypeInline','commandParams':[_0x170df7]},[],'convertInlineImageToBlock'),_0x4abf69['start']['isBefore'](_0x1d2a4f['start'])&&_0x3c5c89['markInsertion'](_0x1e8d55['createRange'](_0x4abf69['start'],_0x1d2a4f['start']),'convertInlineImageToBlock'),_0x1d2a4f['end']['isBefore'](_0x4abf69['end'])&&_0x3c5c89['markInsertion'](_0x1e8d55['createRange'](_0x1d2a4f['end'],_0x4abf69['end']),'convertInlineImageToBlock');});}),_0x3c5c89['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3c5c89['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3c5c89['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3c5c89['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3c5c89['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3c5c89['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3ac918])=>{const _0x52ba98=_0x3c5c89['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x455e42=_0x3ac918['start'],_0x1a01aa=_0x3ac918['end'];const _0x4583ae=_0x417ccd['model']['schema']['getNearestSelectionRange'](_0x455e42,'backward'),_0x5b3ad2=_0x417ccd['model']['schema']['getNearestSelectionRange'](_0x1a01aa,'forward');_0x4583ae['isCollapsed']&&(_0x455e42=_0x4583ae['start']),_0x5b3ad2['isCollapsed']&&(_0x1a01aa=_0x5b3ad2['end']),_0x52ba98([_0x417ccd['model']['createRange'](_0x455e42,_0x1a01aa)]);}),_0x3c5c89['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x41299c),_0x3c5c89['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x41299c)),_0x417ccd['plugins']['has']('ImageCaptionEditing')&&(_0x3c5c89['enableCommand']('toggleImageCaption',(_0x47e5d7,_0x5eb4f1)=>{const _0x51f8b6=_0x417ccd['plugins']['get']('ImageCaptionUtils');let _0x4f37ea=_0x225535['getClosestSelectedImageElement'](_0x417ccd['model']['document']['selection']),_0x2fe4b5=_0x51f8b6['getCaptionFromImageModelElement'](_0x4f37ea);_0x417ccd['model']['change'](()=>{if(_0x2fe4b5)return void _0x3c5c89['markDeletion'](_0x417ccd['model']['createRangeOn'](_0x2fe4b5));const _0x3f1865=_0x225535['isBlockImage'](_0x4f37ea);_0x47e5d7(_0x5eb4f1),_0x4f37ea=_0x225535['getClosestSelectedImageElement'](_0x417ccd['model']['document']['selection']),_0x2fe4b5=_0x51f8b6['getCaptionFromImageModelElement'](_0x4f37ea),_0x3c5c89['markInsertion'](_0x417ccd['model']['createRangeOn'](_0x2fe4b5),_0x3f1865?null:'imageCaption');});}),_0x3c5c89['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x41299c));const _0x57220b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5a90e0(_0x51e7d2,_0x5d49c9){const _0x3fef5c=_0x57220b['findIndex'](({type:_0x542372,subType:_0x387fe9})=>_0x51e7d2['type']==_0x542372&&_0x51e7d2['subType']==_0x387fe9),_0x6edd54=_0x57220b['findIndex'](({type:_0x4e3a75,subType:_0x2be68b})=>_0x5d49c9['type']==_0x4e3a75&&_0x5d49c9['subType']==_0x2be68b);if(_0x3fef5c<0x0||_0x6edd54<0x0)return!0x1;const _0x5c5b7c=_0x51e7d2['getFirstRange'](),_0x5a166b=_0x5d49c9['getFirstRange']();if((0x0==_0x3fef5c||0x1==_0x3fef5c)&&0x2==_0x6edd54&&_0x5c5b7c['isIntersecting'](_0x5a166b))return!0x0;if(0x2==_0x3fef5c&&0x3==_0x6edd54){const _0x2ffab9=_0x3c5c89['_findSuggestions'](_0x5c5b7c,'insertion')['filter'](({suggestion:_0x33a568,meta:_0x4b85c1})=>_0x4b85c1['isOwn']&&'convertInlineImageToBlock'==_0x33a568['subType']);if(_0x2ffab9['length']>0x1&&_0x5a166b['end']['isEqual'](_0x5c5b7c['start']))return!0x0;if(0x1==_0x2ffab9['length']&&(_0x5c5b7c['start']['isEqual'](_0x5a166b['end'])||_0x5c5b7c['end']['isEqual'](_0x5a166b['start'])))return!0x0;}if(0x3==_0x3fef5c&&0x3==_0x6edd54&&_0x5c5b7c['start']['isBefore'](_0x5a166b['start'])){const _0x50a433=_0x5c5b7c['end']['nodeAfter'],_0x4c57ea=_0x5a166b['start']['nodeBefore'];return _0x225535['isBlockImage'](_0x50a433)&&_0x50a433===_0x4c57ea;}return!0x1;}function _0x41299c(_0x21b1e7,_0x495689){return _0x5a90e0(_0x21b1e7,_0x495689)?[_0x21b1e7,_0x495689]:_0x5a90e0(_0x495689,_0x21b1e7)?[_0x495689,_0x21b1e7]:null;}_0x417ccd['plugins']['has']('ImageResize')&&(_0x3c5c89['enableDefaultAttributesIntegration']('resizeImage'),_0x3c5c89['registerBlockAttribute']('resizedWidth'),_0x3c5c89['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x218bd5,'FORMAT_IMAGE_SIZE'))),_0x417ccd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3c5c89['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3c5c89['registerBlockAttribute']('alt')),_0x3c5c89['descriptionFactory']['registerDescriptionCallback'](_0x4ae612=>{if(!!_0x57220b['find'](({type:_0x21a7b5,subType:_0x5cfe80})=>_0x4ae612['type']==_0x21a7b5&&_0x4ae612['subType']==_0x5cfe80))return _0x4ae612['previous']?{}:void 0x0;}),_0x3c5c89['descriptionFactory']['registerDescriptionCallback'](_0x175f79=>{if('insertion'==_0x175f79['type']||'deletion'==_0x175f79['type']){const _0x9f28ba=_0x175f79['getContainedElement']();if(_0x9f28ba&&_0x9f28ba['is']('element','caption'))return{'type':'insertion'==_0x175f79['type']?'addObject':'removeObject','element':_0x9f28ba,'quantity':0x1};}}),_0x3c5c89['descriptionFactory']['registerDescriptionCallback'](_0x1953b7=>'formatBlock'==_0x1953b7['type']&&'convertInlineImageToBlock'==_0x1953b7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1953b7['type']&&'convertBlockImageToInline'==_0x1953b7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3c5c89['descriptionFactory']['registerDescriptionCallback'](_0x13b928=>{if('attribute'!=_0x13b928['type'])return;const {data:_0x36af40}=_0x13b928;if(!_0x36af40||'alt'!=_0x36af40['key'])return;const _0x1c7646=_0x36af40['newValue'];return _0x1c7646?{'type':'format','content':o(_0x218bd5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1c7646+'\x22')}:{'type':'format','content':o(_0x218bd5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2466de=this['editor'],_0x363bc8=_0x2466de['locale'];_0x2466de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b1dd3=>{if('formatBlock'!=_0x3b1dd3['type']&&'formatInline'!=_0x3b1dd3['type'])return;const {data:_0x425ba4}=_0x3b1dd3;if(_0x425ba4){if('imageTextAlternative'==_0x425ba4['commandName']){const _0x582ba2=_0x425ba4['commandParams'][0x0]['newValue'];return _0x582ba2?{'type':'format','content':o(_0x363bc8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x582ba2+'\x22')}:{'type':'format','content':o(_0x363bc8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x425ba4['commandName']){const _0x2d5d57=_0x425ba4['commandParams'][0x0]['width'];return _0x2d5d57?{'type':'format','content':o(_0x363bc8,'*Set\x20image\x20width:*\x20%0',_0x2d5d57)}:{'type':'format','content':o(_0x363bc8,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5a6596{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xccc4e=this['editor']['locale'],_0x52685d=this['editor']['plugins']['get']('TrackChangesEditing');_0x52685d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x52685d['registerBlockAttribute']('src'),_0x52685d['descriptionFactory']['registerDescriptionCallback'](_0x28c2be=>{if('attribute'!=_0x28c2be['type'])return;const {data:_0x188476}=_0x28c2be;return _0x188476&&'src'==_0x188476['key']?_0x188476['newValue']&&_0x188476['oldValue']?{'type':'format','content':o(_0xccc4e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5337be=this['editor']['plugins']['get']('TrackChangesEditing');_0x5337be['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5337be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5337be['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5337be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5417ac=this['editor'],_0x3f8b73=_0x5417ac['locale'];_0x5417ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29f357=>{if('formatBlock'!=_0x29f357['type']&&'formatInline'!=_0x29f357['type'])return;const {data:_0x58a314}=_0x29f357;if(!_0x58a314||'replaceImageSource'!=_0x58a314['commandName'])return;return{'type':'format','content':o(_0x3f8b73,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5a6596{['afterInit'](){const _0x495d4e=this['editor'];if(!_0x495d4e['plugins']['has']('ImageStyleEditing'))return;const _0xcdd189=_0x495d4e['plugins']['get']('TrackChangesEditing'),_0x34902c=_0x495d4e['plugins']['get']('ImageUtils'),_0x55ced7={};_0xcdd189['enableCommand']('imageStyle',(_0x3db641,_0x612e01)=>{const _0x559769=_0x495d4e['plugins']['get']('Users')['me'],_0x4805d3=_0x495d4e['commands']['get']('imageStyle');let _0x3baddd=_0x34902c['getClosestSelectedImageElement'](_0x495d4e['model']['document']['selection']),_0x39322e=_0x495d4e['model']['createRangeOn'](_0x3baddd),_0x3a2209=_0x4805d3['value'];if(_0x3a2209==_0x612e01['value'])return;const _0x1f642c={'commandName':'imageStyle','commandParams':[_0x612e01],'formatGroupId':_0x3af419()};_0x495d4e['model']['change'](()=>{if(_0xcdd189['getSuggestions']()['filter'](_0x3c1838=>_0x3c1838['isInContent']&&_0x559769==_0x3c1838['author']&&('formatBlock'==_0x3c1838['type']||'formatInline'==_0x3c1838['type'])&&('imageStylePreApply'==_0x3c1838['subType']||'imageStylePostApply'==_0x3c1838['subType'])&&_0x3c1838['getFirstRange']()['isEqual'](_0x39322e))['forEach'](_0x422c78=>_0xcdd189['discardSuggestion'](_0x422c78['head'])),_0x3baddd=_0x34902c['getClosestSelectedImageElement'](_0x495d4e['model']['document']['selection']),_0x39322e=_0x495d4e['model']['createRangeOn'](_0x3baddd),_0x4805d3['refresh'](),_0x495d4e['commands']['get']('imageTypeInline')['refresh'](),_0x495d4e['commands']['get']('imageTypeBlock')['refresh'](),_0x3a2209=_0x4805d3['value'],_0x3a2209!=_0x612e01['value'])return _0x34902c['isInlineImage'](_0x3baddd)&&_0x4805d3['shouldConvertImageType'](_0x612e01['value'],_0x3baddd)?(_0x3db641({..._0x612e01,'setImageSizes':!0x1}),_0x3baddd=_0x34902c['getClosestSelectedImageElement'](_0x495d4e['model']['document']['selection']),void _0xcdd189['markBlockFormat'](_0x3baddd,{..._0x1f642c,'commandReversedParams':[{'value':_0x3a2209||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x34902c['isBlockImage'](_0x3baddd)?_0xcdd189['markBlockFormat'](_0x3baddd,_0x1f642c,[],'imageStylePostApply'):_0xcdd189['markInlineFormat'](_0x39322e,_0x1f642c,'imageStylePostApply'));});});for(const _0x2289ff of _0x495d4e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x55ced7[_0x2289ff['name']]=_0x2289ff['title']['toLowerCase']();_0xcdd189['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xcdd189['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xcdd189['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xcdd189['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x269f43])=>{_0x34902c['setImageNaturalSizeAttributes'](_0x269f43['getContainedElement']());}),_0xcdd189['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x127f22,_0x81d1d9)=>{_0xcdd189['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x127f22,{'commandName':_0x81d1d9['commandName'],'commandParams':_0x81d1d9['commandReversedParams']});}),_0xcdd189['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2af5c9,_0xd9e722){if(_0x2305db(_0x2af5c9,_0xd9e722))return[_0x2af5c9,_0xd9e722];if(_0x2305db(_0xd9e722,_0x2af5c9))return[_0xd9e722,_0x2af5c9];return null;});const _0xd4c8ec=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2305db(_0xb0323a,_0x3ef47c){const _0x3fc39b=_0xd4c8ec['findIndex'](({type:_0xf55850,subType:_0x34373a})=>_0xb0323a['type']==_0xf55850&&_0xb0323a['subType']==_0x34373a),_0x1d8296=_0xd4c8ec['findIndex'](({type:_0x532807,subType:_0x18a337})=>_0x3ef47c['type']==_0x532807&&_0x3ef47c['subType']==_0x18a337);if(_0x3fc39b<0x0||_0x1d8296<0x0)return!0x1;const _0x582ecf=_0xb0323a['getFirstRange'](),_0x3a164c=_0x3ef47c['getFirstRange']();if((0x0==_0x3fc39b||0x1==_0x3fc39b)&&0x2==_0x1d8296&&_0x582ecf['isIntersecting'](_0x3a164c))return!0x0;if(0x2==_0x3fc39b&&0x3==_0x1d8296){const _0x33d729=_0xcdd189['_findSuggestions'](_0x582ecf,'insertion')['filter'](({suggestion:_0x40ad59,meta:_0x12de2a})=>_0x12de2a['isOwn']&&'convertInlineImageToBlock'==_0x40ad59['subType']);if(_0x33d729['length']>0x1&&_0x3a164c['end']['isEqual'](_0x582ecf['start']))return!0x0;if(0x1==_0x33d729['length']&&(_0x582ecf['start']['isEqual'](_0x3a164c['end'])||_0x582ecf['end']['isEqual'](_0x3a164c['start'])))return!0x0;}if(0x3==_0x3fc39b&&0x3==_0x1d8296&&_0x582ecf['start']['isBefore'](_0x3a164c['start'])){const _0x346dfd=_0x582ecf['end']['nodeAfter'],_0x36226b=_0x3a164c['start']['nodeBefore'];return _0x34902c['isBlockImage'](_0x346dfd)&&_0x346dfd===_0x36226b;}return!0x1;}_0x495d4e['model']['document']['registerPostFixer'](()=>{let _0x272776=!0x1;const _0x8302=Array['from'](_0x495d4e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f8e0f,data:_0x182dc8}of _0x8302){const {group:_0x298734,type:_0x5a0210,subType:_0x492be9,id:_0x2c3abc}=_0xcdd189['_splitMarkerName'](_0x2f8e0f);if('suggestion'==_0x298734&&_0xcdd189['hasSuggestion'](_0x2c3abc)){if('formatBlock'==_0x5a0210&&('imageStylePreApply'==_0x492be9||'imageStylePostApply'==_0x492be9)){const _0x55593a=_0xcdd189['getSuggestion'](_0x2c3abc);if(_0x182dc8['newRange']){const _0x4dad11=_0x55593a['getFirstRange']()['getContainedElement']();if(_0x34902c['isBlockImage'](_0x4dad11))continue;_0xcdd189['discardSuggestion'](_0x55593a),_0x272776=!0x0;}}if('insertion'==_0x5a0210&&'imageCaption'==_0x492be9&&!_0x182dc8['newRange']){const _0xe807c4=_0xcdd189['getSuggestion'](_0x2c3abc);_0xe807c4['next']&&_0xe807c4['next']['isInContent']&&(_0xcdd189['discardSuggestion'](_0xe807c4['next']),_0x272776=!0x0);}}}return _0x272776;}),this['_registerLegacyDescription'](_0x55ced7);}['_registerLegacyDescription'](_0x118832){const _0x27eda0=this['editor'],_0x3a2f8c=_0x27eda0['locale'];_0x27eda0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cd375=>{if('formatBlock'!=_0x5cd375['type']&&'formatInline'!=_0x5cd375['type'])return;const {data:_0x116453}=_0x5cd375;if(!_0x116453||'imageStyle'!=_0x116453['commandName'])return;const _0xaaafef=_0x116453['commandParams'][0x0]['value'];return _0x438f8c('side'===_0xaaafef?o(_0x3a2f8c,'FORMAT_SIDE_IMAGE'):_0x118832[_0xaaafef]||_0xaaafef);function _0x438f8c(_0x15118b){return{'type':'format','content':o(_0x3a2f8c,'*Format:*\x20%0',_0x15118b)};}});}}class ot extends _0x5a6596{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2c0a5d){super(_0x2c0a5d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1b67a8=this['editor'],_0x44d294=_0x1b67a8['commands']['get']('importWord'),_0x49beb3=_0x1b67a8['commands']['get']('trackChanges');_0x44d294&&(_0x44d294['on']('execute',(_0x15a736,[,_0x4ed565])=>{this['_trackChangesValueDuringImport']=_0x49beb3['value'],_0x4ed565['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x44d294,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x44d294,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x49beb3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1b67a8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x343878,_0x5bce3a){const {suggestions:_0x1ec88f}=_0x5bce3a,_0x301730=this['editor']['commands']['get']('trackChanges'),_0x1ddcce=_0x301730['value'];this['_trackChangesValueDuringImport']!==_0x1ddcce&&(_0x301730['execute'](),this['_trackChangesExecuted']=!0x0),_0x1ec88f&&_0x1ec88f['forEach'](({id:_0x4da38e,type:_0x5c0b7d,author:_0x1a2907,created_at:_0x22bbbd})=>{const _0x188803={'id':_0x4da38e,'type':_0x5c0b7d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1a2907,'createdAt':_0x22bbbd?new Date(_0x22bbbd):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x188803);});}}class rt extends _0x5a6596{['afterInit'](){const _0x1d717a=this['editor'],_0x1e2eff=_0x1d717a['plugins']['get']('TrackChangesEditing');if(_0x1d717a['plugins']['has']('IndentEditing')&&(_0x1e2eff['enableCommand']('indent'),_0x1e2eff['enableCommand']('outdent')),_0x1d717a['plugins']['has']('IndentBlock')){for(const _0x16c844 of['indentBlock','outdentBlock'])_0x1e2eff['enableDefaultAttributesIntegration'](_0x16c844);}const _0x23ac17=_0x1d717a['locale'];_0x1e2eff['registerBlockAttribute']('blockIndent'),_0x1e2eff['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x23ac17,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x438ae3=this['editor'],_0x1a925a=_0x438ae3['locale'],_0x2aaf2b=_0x438ae3['plugins']['get']('TrackChangesEditing');_0x2aaf2b['descriptionFactory']['registerDescriptionCallback'](_0x3c571e=>{if('formatBlock'!=_0x3c571e['type'])return;const {data:_0x48fe2b}=_0x3c571e;if(!_0x48fe2b)return;if('indentBlock'!=_0x48fe2b['commandName']&&'outdentBlock'!=_0x48fe2b['commandName'])return;const _0xd8126a=_0x3c571e['getItems']()[0x0],_0x50fae5=_0x2aaf2b['descriptionFactory']['getItemLabel'](_0xd8126a);return'indentBlock'==_0x48fe2b['commandName']?{'type':'format','content':o(_0x1a925a,'*Indent:*\x20%0',_0x50fae5)}:'outdentBlock'==_0x48fe2b['commandName']?{'type':'format','content':o(_0x1a925a,'*Outdent:*\x20%0',_0x50fae5)}:void 0x0;});}}class at extends _0x5a6596{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5a6596{['afterInit'](){const _0x524660=this['editor'];if(!_0x524660['plugins']['has']('LinkEditing'))return;const _0x1b2634=_0x524660['plugins']['get']('TrackChangesEditing'),_0x3e38e3=_0x524660['commands']['get']('link');_0x1b2634['enableDefaultAttributesIntegration']('link'),_0x1b2634['enableDefaultAttributesIntegration']('unlink'),_0x1b2634['registerInlineAttribute']('linkHref');for(const _0x2b0f64 of _0x3e38e3['manualDecorators'])_0x1b2634['registerInlineAttribute'](_0x2b0f64['id']),_0x1b2634['descriptionFactory']['registerAttributeLabel'](_0x2b0f64['id'],'link\x20('+_0x2b0f64['label']['toLowerCase']()+')');_0x1b2634['descriptionFactory']['registerDescriptionCallback'](_0xe8d424=>{if('attribute'!=_0xe8d424['type'])return;const {data:_0x1095ab}=_0xe8d424;if(!_0x1095ab||'linkHref'!=_0x1095ab['key'])return;const _0x372088=_0x1095ab['newValue'],_0x14b4ce=_0x524660['locale'];return{'type':'format','content':null==_0x372088?o(_0x14b4ce,'*Remove\x20link*'):o(_0x14b4ce,'*Set\x20link:*\x20%0','\x22'+_0x372088+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4942ac=this['editor'],_0x3676ee=_0x4942ac['locale'];_0x4942ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xff5ff=>{if('formatInline'!=_0xff5ff['type'])return;const {data:_0x289660}=_0xff5ff;if(_0x289660){if('link'==_0x289660['commandName']){const _0x1bbad0=_0x289660['commandParams'][0x0];return{'type':'format','content':o(_0x3676ee,'*Set\x20link:*\x20%0','\x22'+_0x1bbad0+'\x22')};}return'unlink'==_0x289660['commandName']?{'type':'format','content':o(_0x3676ee,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5a6596{['afterInit'](){const _0x12ef00=this['editor'],_0x2de5d2=_0x12ef00['locale'];if(!_0x12ef00['plugins']['has']('LegacyListEditing'))return;const _0x293877=_0x12ef00['plugins']['get']('TrackChangesEditing'),_0x5cee10=_0x12ef00['plugins']['has']('LegacyTodoListEditing');function _0x2f8491(_0x11f7f6){return()=>{const _0x2959d9=_0x12ef00['model']['document']['selection'],_0x577acf=_0x12ef00['commands']['get'](_0x11f7f6);if(_0x577acf['value'])return void _0x12ef00['execute']('paragraph',{});const _0x58791b=_0x11f7f6['slice'](0x0,-0x4),_0x241dae=function(_0x2f0210,_0x3be46e,_0xed1765){let _0x3b2ea5=Array['from'](_0x2f0210)['filter'](_0x5f59b2=>function(_0x57fc24,_0x1d3633){return _0x1d3633['checkChild'](_0x57fc24['parent'],'listItem')&&!_0x1d3633['isObject'](_0x57fc24);}(_0x5f59b2,_0xed1765));_0x3b2ea5=_0x3b2ea5['filter'](_0x485fe2=>!_0x485fe2['is']('element','listItem')||_0x485fe2['getAttribute']('listType')!=_0x3be46e);const _0xf364a0=new Set();for(const _0x36052b of _0x3b2ea5)_0x36052b['is']('element','listItem')?_0xf364a0['add'](me(_0x36052b)):_0xf364a0['add'](_0x36052b);return Array['from'](_0xf364a0);}(_0x2959d9['getSelectedBlocks'](),_0x58791b,_0x12ef00['model']['schema']);_0x12ef00['model']['change'](()=>{for(const _0x6318e6 of _0x241dae)_0x293877['markBlockFormat'](_0x6318e6,{'commandName':_0x11f7f6,'commandParams':[{'forceValue':!_0x577acf['value']}],'formatGroupId':'blockName'},fe(_0x6318e6));});};}function _0x189ddc(_0x986b5a){return()=>{const _0x5ccf8f=function(_0x5879d1){let _0x29ae9f=Array['from'](_0x5879d1);const _0x5e5a19=_0x29ae9f['findIndex'](_0x497cf1=>'listItem'!=_0x497cf1['name']);return _0x5e5a19>-0x1&&(_0x29ae9f=_0x29ae9f['slice'](0x0,_0x5e5a19)),_0x29ae9f;}(_0x12ef00['model']['document']['selection']['getSelectedBlocks']()),_0x1ae91c=_0x12ef00['model']['createRange'](_0x12ef00['model']['createPositionAt'](_0x5ccf8f[0x0],'before'),_0x12ef00['model']['createPositionAt'](_0x5ccf8f[_0x5ccf8f['length']-0x1],'end'));_0x12ef00['model']['change'](()=>{_0x293877['markBlockFormat'](_0x1ae91c,{'commandName':_0x986b5a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x459a53){const _0x4305b1=new Set();for(const _0x347d10 of _0x459a53){let _0x5854b6=_0x347d10['nextSibling'];for(;_0x5854b6&&_0x5854b6['getAttribute']('listIndent')>_0x347d10['getAttribute']('listIndent');)_0x4305b1['add'](_0x5854b6),_0x5854b6=_0x5854b6['nextSibling'];}return Array['from'](_0x4305b1);}(_0x5ccf8f));});};}_0x293877['enableCommand']('numberedList',_0x2f8491('numberedList')),_0x293877['enableCommand']('bulletedList',_0x2f8491('bulletedList')),_0x5cee10&&_0x293877['enableCommand']('todoList',_0x2f8491('todoList')),_0x293877['enableCommand']('indentList',_0x189ddc('indentList')),_0x293877['enableCommand']('outdentList',_0x189ddc('outdentList')),_0x5cee10&&_0x293877['enableCommand']('checkTodoList',()=>{const _0x58d2b7=_0x12ef00['commands']['get']('checkTodoList'),_0x1cfd4f=Array['from'](_0x58d2b7['_selectedElements']);_0x1cfd4f['filter'](_0x440e74=>_0x440e74['getAttribute']('todoListChecked')!=_0x58d2b7['value']),_0x12ef00['model']['change'](()=>{for(const _0x291ecf of _0x1cfd4f)_0x293877['markBlockFormat'](_0x291ecf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x58d2b7['value']}]});});}),_0x293877['descriptionFactory']['registerElementLabel']('listItem',_0x5cb7ed=>o(_0x2de5d2,'ELEMENT_LIST_ITEM',_0x5cb7ed)),_0x293877['descriptionFactory']['registerDescriptionCallback'](_0x3d488c=>{if('formatBlock'!=_0x3d488c['type']&&'formatInline'!=_0x3d488c['type'])return;const {data:_0x147b3f}=_0x3d488c;if(_0x147b3f){if('numberedList'==_0x147b3f['commandName']||'bulletedList'==_0x147b3f['commandName']||'todoList'==_0x147b3f['commandName'])switch(_0x147b3f['commandName']['replace']('List','')){case'bulleted':return _0x1b3585(o(_0x2de5d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b3585(o(_0x2de5d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b3585(o(_0x2de5d2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x147b3f['commandName'])return{'type':'format','content':o(_0x2de5d2,'*Indent:*\x20%0',o(_0x2de5d2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x147b3f['commandName'])return{'type':'format','content':o(_0x2de5d2,'*Outdent:*\x20%0',o(_0x2de5d2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x147b3f['commandName'])return _0x147b3f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2de5d2,'*Check\x20item*')}:{'type':'format','content':o(_0x2de5d2,'*Uncheck\x20item*')};}function _0x1b3585(_0x512d5d){return{'type':'format','content':o(_0x2de5d2,'*Change\x20to:*\x20%0',_0x512d5d)};}});}}function me(_0x224ddf){const _0x1eba96=_0x224ddf['getAttribute']('listIndent');if(0x0==_0x1eba96)return _0x224ddf;let _0x17f4f9=_0x224ddf;for(;_0x224ddf['previousSibling']&&_0x224ddf['previousSibling']['is']('element','listItem');){const _0xaa6171=_0x224ddf['previousSibling']['getAttribute']('listIndent');if(_0xaa6171==_0x1eba96)_0x17f4f9=_0x224ddf['previousSibling'];else{if(_0xaa6171<_0x1eba96)break;}_0x224ddf=_0x224ddf['previousSibling'];}return _0x17f4f9;}function fe(_0x58defa){const _0x342d3c=[];if(_0x58defa['is']('element','listItem')&&_0x58defa['getAttribute']('listIndent')>0x0){let _0x3e6bb0=_0x58defa['nextSibling'];for(;_0x3e6bb0&&'listItem'==_0x3e6bb0['name']&&_0x3e6bb0['getAttribute']('listIndent')==_0x58defa['getAttribute']('listIndent');)_0x342d3c['push'](_0x3e6bb0),_0x3e6bb0=_0x3e6bb0['nextSibling'];}return _0x342d3c;}class K extends _0x5a6596{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x556264=this['editor']['config']['get']('list.properties'),_0x36b571=this['editor']['plugins']['get']('TrackChangesEditing');_0x556264['styles']&&_0x36b571['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x556264['reversed']&&_0x36b571['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x556264['startIndex']&&_0x36b571['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x36b571['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ce413,_0x31f374={}){const _0x1bb744=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48af27=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1bb744['markMultiRangeBlockFormat'](_0x48af27,{'commandName':'listStyle','commandParams':[{'type':_0x31f374['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4e5c60,_0x2a57e0={}){const _0x107921=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45ffa9=this['_getSuggestionBlocks'](_0x3ce379=>_0x3ce379['is']('element','listItem')&&'numbered'===_0x3ce379['getAttribute']('listType'));if(_0x45ffa9['length']<0x1)return;const _0x35542f=_0x45ffa9['map'](_0x588cda=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x588cda,'before'),this['editor']['model']['createPositionAt'](_0x588cda,0x0)));this['editor']['model']['change'](()=>{_0x107921['markMultiRangeBlockFormat'](_0x35542f,{'commandName':'listReversed','commandParams':[{'reversed':_0x2a57e0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1c8d6c,_0x572400={}){const _0x5ce314=this['editor']['plugins']['get']('TrackChangesEditing'),_0x72bd56=this['_getSuggestionBlocks'](_0xba31e7=>_0xba31e7['is']('element','listItem')&&'numbered'===_0xba31e7['getAttribute']('listType'));if(_0x72bd56['length']<0x1)return;const _0xd0242b=_0x72bd56['map'](_0x7a40a0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7a40a0,'before'),this['editor']['model']['createPositionAt'](_0x7a40a0,0x0)));this['editor']['model']['change'](()=>{_0x5ce314['markMultiRangeBlockFormat'](_0xd0242b,{'commandName':'listStart','commandParams':[{'startIndex':_0x572400['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3d545d){if('formatBlock'!=_0x3d545d['type']&&'formatInline'!=_0x3d545d['type'])return;const _0x2b4015=this['editor']['locale'],{data:_0x1d0e80}=_0x3d545d;if(!_0x1d0e80)return;let _0x4e095f,_0x3a056c;switch(_0x1d0e80['commandName']){case'listStyle':_0x4e095f='*Change\x20to:*\x20%0',_0x3a056c={'type':'format','content':o(_0x2b4015,_0x4e095f,o(_0x2b4015,this['_getTranslationKeyForListStyle'](_0x1d0e80['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e095f=_0x1d0e80['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3a056c={'type':'format','content':o(_0x2b4015,_0x4e095f)};break;case'listStart':_0x4e095f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a056c={'type':'format','content':o(_0x2b4015,_0x4e095f,_0x1d0e80['commandParams'][0x0]['startIndex'])};}return _0x3a056c;}['_getSuggestionBlocksForListStyle'](){const _0x21b351=this['editor']['plugins']['get']('LegacyListUtils');let _0x5da308=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5da308[0x0]?.['is']('element','listItem')&&_0x5da308['unshift'](..._0x21b351['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5da308[_0x5da308['length']-0x1]?.['is']('element','listItem')&&_0x5da308['push'](..._0x21b351['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5da308=[...new Set(_0x5da308)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5da308=_0x5da308['filter'](_0x4b6ee4=>_0x4b6ee4['is']('element','listItem'))),_0x5da308;}['_getSuggestionBlocks'](_0x29a05b){const _0x2683f5=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c4d5a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x29a05b)['map'](_0x161d32=>{const _0x4a6452=this['editor']['model']['createPositionAt'](_0x161d32,0x0);return[..._0x2683f5['getSiblingNodes'](_0x4a6452,'backward'),..._0x2683f5['getSiblingNodes'](_0x4a6452,'forward')];})['flat']();return _0x4c4d5a=[...new Set(_0x4c4d5a)],_0x4c4d5a;}['_getTranslationKeyForListStyle'](_0x4455a7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4455a7)||'default')['toUpperCase']()+'_LIST_'+_0x4455a7['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5a6596{['afterInit'](){const _0x3b63c6=this['editor'];if(!_0x3b63c6['plugins']['has']('MediaEmbedEditing'))return;const _0x4b5470=_0x3b63c6['plugins']['get']('TrackChangesEditing'),_0x37a841=_0x3b63c6['locale'];_0x4b5470['enableCommand']('mediaEmbed'),_0x4b5470['descriptionFactory']['registerElementLabel']('media',_0x11fa2c=>o(_0x37a841,'ELEMENT_MEDIA',_0x11fa2c)),_0x3b63c6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x170efc,{writer:_0x4abf8a,options:_0xe39226})=>{if(_0xe39226['showSuggestionHighlights'])return _0x4abf8a['createEmptyElement']('div');},'converterPriority':'high'}),_0x3b63c6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3d957c,_0x43a219,_0x3ca574)=>{_0x3ca574['options']['showSuggestionHighlights']&&_0x3d957c['stop']();},{'priority':'high'});}}class gt extends _0x5a6596{['afterInit'](){const _0x390252=this['editor'];_0x390252['plugins']['has']('MentionEditing')&&_0x390252['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5a6596{['afterInit'](){const _0x324c62=this['editor'],_0xad61b2=_0x324c62['plugins']['get']('TrackChangesEditing');_0x324c62['plugins']['has']('MultiLevelList')&&(_0xad61b2['enableDefaultAttributesIntegration']('multiLevelList'),_0xad61b2['registerBlockAttribute']('listMarkerStyle'),_0xad61b2['descriptionFactory']['registerDescriptionCallback'](_0x205a36=>this['handleDescriptions'](_0x205a36)));}['handleDescriptions'](_0x19ef44){const _0x5ef103=this['editor']['locale'],{data:_0x5a6440}=_0x19ef44,_0x52cc2c={'type':'format','content':''};if(_0x5a6440&&'listMarkerStyle'==_0x5a6440['key']){if(!_0x5a6440['oldValue'])return{'type':'format','content':o(_0x5ef103,'*Set\x20format:*\x20%0',o(_0x5ef103,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a6440['newValue']+')'};if(!_0x5a6440['newValue']){let _0x21a627=_0x19ef44['head'];for(;_0x21a627;){if(_0x21a627['data']&&'listType'==_0x21a627['data']['key']&&_0x21a627['data']['newValue'])return _0x52cc2c;_0x21a627=_0x21a627['next'];}return{'type':'format','content':o(_0x5ef103,'*Remove\x20format:*\x20%0',o(_0x5ef103,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a6440['oldValue']+')'};}}}}class mt extends _0x5a6596{['afterInit'](){const _0xac5e50=this['editor'];if(!_0xac5e50['plugins']['has']('PageBreakEditing'))return;_0xac5e50['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x211948=_0xac5e50['plugins']['get']('TrackChangesEditing'),_0x5a43ee=_0xac5e50['locale'];_0x211948['descriptionFactory']['registerElementLabel']('pageBreak',_0x5e0f77=>o(_0x5a43ee,'ELEMENT_PAGE_BREAK',_0x5e0f77));}}class dt extends _0x5a6596{['afterInit'](){const _0x5612f1=this['editor'];if(!_0x5612f1['plugins']['has']('Paragraph'))return;const _0x1b05bc=_0x5612f1['locale'],_0x1a649d=_0x5612f1['plugins']['get']('TrackChangesEditing');_0x1a649d['descriptionFactory']['registerElementLabel']('paragraph',_0x2aaca9=>o(_0x1b05bc,'ELEMENT_PARAGRAPH',_0x2aaca9)),_0x1a649d['enableDefaultAttributesIntegration']('paragraph'),_0x1a649d['enableCommand']('insertParagraph'),_0x5612f1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5612f1),{'priority':'highest'}),_0x5612f1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x51dace,_0x3afde7,_0x2373a2)=>{_0x2373a2['options']['showSuggestionHighlights']&&nr(_0x5612f1,{'showActiveMarker':!0x1})(_0x51dace,_0x3afde7,_0x2373a2);},{'priority':'highest'});const _0x413370=_0x1a649d['descriptionFactory'];_0x413370['registerDescriptionCallback'](_0x2c822e=>{if('insertion'!==_0x2c822e['type'])return;const {start:_0x25ad96,end:_0x1cb978}=_0x2c822e['getFirstRange']();if(!_0x25ad96['isTouching'](_0x1cb978)||!_0x25ad96['nodeAfter'])return;const _0x5fa26e=_0x5612f1['model']['schema'],_0x1f008c=_0x25ad96['nodeAfter'];return _0x5fa26e['isBlock'](_0x1f008c)&&!_0x5fa26e['isLimit'](_0x1f008c)&&_0x5fa26e['checkChild'](_0x1f008c,'$text')?{'type':'insertion','content':o(_0x1b05bc,'*Insert:*\x20%0',_0x413370['getItemLabel'](_0x1f008c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2cda=this['editor'],_0x2ff8e9=_0x1f2cda['locale'];_0x1f2cda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cb7a=>{if('formatBlock'!=_0x3cb7a['type'])return;const {data:_0x1e25a4}=_0x3cb7a;return _0x1e25a4&&'paragraph'==_0x1e25a4['commandName']?{'type':'format','content':o(_0x2ff8e9,'*Change\x20to:*\x20%0',o(_0x2ff8e9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3a9ff2,{showActiveMarker:_0x24358a=!0x0}={}){return(_0x33eb89,_0x226b16,_0x46ed11)=>{const _0x3473e3=_0x3a9ff2['plugins']['get']('TrackChangesEditing'),_0x28a37d=_0x226b16['markerRange']['start'],_0x2bf731=_0x226b16['markerRange']['end'],_0x6fee83=_0x3a9ff2['model']['schema'];if(!_0x28a37d['isTouching'](_0x2bf731)||!_0x28a37d['nodeAfter'])return;const _0x2a61f8=_0x28a37d['nodeAfter'];if(_0x6fee83['isBlock'](_0x2a61f8)&&!_0x6fee83['isLimit'](_0x2a61f8)&&_0x6fee83['checkChild'](_0x2a61f8,'$text')){if(!_0x46ed11['consumable']['consume'](_0x226b16['markerRange'],_0x33eb89['name']))return;const _0x5372da=_0x46ed11['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0xec9329=_0x46ed11['mapper']['toViewPosition'](_0x2bf731);_0x24358a&&_0x3473e3['activeMarkers']['includes'](_0x226b16['markerName'])&&_0x46ed11['writer']['addClass']('ck-suggestion-marker--active',_0x5372da),_0x46ed11['writer']['insert'](_0xec9329,_0x5372da),_0x46ed11['mapper']['bindElementToMarker'](_0x5372da,_0x226b16['markerName']);}};}class pt extends _0x5a6596{['afterInit'](){const _0x3f7d0b=this['editor'];if(!_0x3f7d0b['plugins']['has']('RemoveFormatEditing'))return;_0x3f7d0b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31d696=this['editor'];_0x31d696['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18db69=>{if('formatBlock'!=_0x18db69['type']&&'formatInline'!=_0x18db69['type'])return;const {data:_0x7e0256}=_0x18db69;return _0x7e0256&&'removeFormat'==_0x7e0256['commandName']?{'type':'format','content':o(_0x31d696['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5a6596{['afterInit'](){const _0x4a3c86=this['editor'];if(!_0x4a3c86['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x37ad19=_0x4a3c86['plugins']['get']('TrackChangesEditing');_0x37ad19['enableCommand']('goToPreviousRestrictedEditingException'),_0x37ad19['enableCommand']('goToNextRestrictedEditingException');const _0x1fd357=_0x4a3c86['plugins']['get']('RestrictedEditingModeEditing');_0x1fd357['enableCommand']('trackChanges'),_0x1fd357['enableCommand']('acceptSuggestion'),_0x1fd357['enableCommand']('discardSuggestion'),_0x1fd357['enableCommand']('acceptAllSuggestions'),_0x1fd357['enableCommand']('discardAllSuggestions'),_0x1fd357['enableCommand']('acceptSelectedSuggestions'),_0x1fd357['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5a6596{static get['requires'](){return[_0x24fdd3];}['init'](){const _0x2bf7f4=this['editor'],_0x14e512=_0x2bf7f4['plugins']['get']('TrackChangesEditing');_0x14e512['enableCommand']('shiftEnter'),_0x2bf7f4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2bf7f4),{'priority':'high'}),_0x2bf7f4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2bf7f4),{'priority':'high'}),_0x2bf7f4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a0f7f,_0x2d3f06,_0x5aeba8)=>{_0x5aeba8['options']['showSuggestionHighlights']&&de(_0x2bf7f4,{'showActiveMarker':!0x1})(_0x3a0f7f,_0x2d3f06,_0x5aeba8);}),_0x14e512['descriptionFactory']['registerElementLabel']('softBreak',_0x4d02d3=>o(_0x2bf7f4['locale'],'ELEMENT_LINE_BREAK',_0x4d02d3));}}function de(_0x25f1b8,{showActiveMarker:_0x133c24=!0x0}={}){return(_0x48784c,_0x4cb4e2,_0x14ab63)=>{const _0x2af8c0=_0x25f1b8['plugins']['get']('TrackChangesEditing');if(!_0x14ab63['consumable']['test'](_0x4cb4e2['markerRange'],_0x48784c['name']))return;const _0x3d66d6=_0x25f1b8['model'];for(const _0x4ed026 of _0x4cb4e2['markerRange']['getItems']()){if(!_0x4ed026['is']('element','softBreak'))continue;const _0x531325='deletion'==_0x4cb4e2['markerName']['split'](':')[0x1]?'merge':'split',_0x48eded=_0x14ab63['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x531325}),_0x12ffa8=_0x14ab63['mapper']['toViewPosition'](_0x3d66d6['createPositionBefore'](_0x4ed026));_0x133c24&&_0x2af8c0['activeMarkers']['includes'](_0x4cb4e2['markerName'])&&_0x14ab63['writer']['addClass']('ck-suggestion-marker--active',_0x48eded),_0x14ab63['writer']['insert'](_0x12ffa8,_0x48eded),_0x14ab63['mapper']['bindElementToMarker'](_0x48eded,_0x4cb4e2['markerName']);}};}class wt extends _0x5a6596{['afterInit'](){const _0x48d320=this['editor'],_0x35042c=_0x48d320['model'],_0x384677=_0x48d320['locale'];if(!_0x48d320['plugins']['has']('StandardEditingModeEditing'))return;const _0x16787b=_0x48d320['plugins']['get']('TrackChangesEditing'),_0x5ac7c8='restrictedEditingException',_0xf46a65=_0x48d320['commands']['get'](_0x5ac7c8);_0x16787b['enableCommand'](_0x5ac7c8,(_0x4133f7,_0x4e2999={})=>{const _0x57b2a9=_0x35042c['document']['selection'];if(_0x57b2a9['isCollapsed'])return void _0x4133f7(_0x4e2999);const _0x22c17c=void 0x0!==_0x4e2999['forceValue']?_0x4e2999['forceValue']:!_0xf46a65['value'];_0x35042c['change'](()=>{const _0x51fda1=Array['from'](_0x57b2a9['getRanges']());for(const _0x38424 of _0x51fda1){const _0x2fefc8=_0x22c17c?[_0x38424]:io(_0x5ac7c8,_0x38424,_0x35042c);for(const _0x46d064 of _0x2fefc8)_0x16787b['markInlineFormat'](_0x46d064,{'commandName':_0x5ac7c8,'commandParams':[{'forceValue':_0x22c17c}]});}});}),_0x16787b['descriptionFactory']['registerDescriptionCallback'](_0x282b97=>{if('formatBlock'!=_0x282b97['type']&&'formatInline'!=_0x282b97['type'])return;const {data:_0xfe3242}=_0x282b97;return _0xfe3242&&_0xfe3242['commandName']==_0x5ac7c8?_0xfe3242['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x384677,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x384677,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5a6596{['afterInit'](){const _0x2bd060=this['editor'];if(!_0x2bd060['plugins']['has']('Style')||!_0x2bd060['plugins']['has']('DataSchema'))return;const _0x534ad6=_0x2bd060['plugins']['get']('TrackChangesEditing'),_0x55597c=_0x2bd060['locale'],_0x38718b=_0x2bd060['config']['get']('style')||{},_0x2d108f=_0x2bd060['plugins']['get']('GeneralHtmlSupport'),_0x38538a=_0x2bd060['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2bd060['plugins']['get']('DataSchema'),_0x38718b['definitions']);_0x534ad6['enableDefaultAttributesIntegration']('style');const _0x5931c6=new Set();for(const _0x58ac20 of _0x38538a['block']){const _0xdb8c45=_0x2d108f['getGhsAttributeNameForElement'](_0x58ac20['element']);_0x5931c6['add'](_0xdb8c45);}const _0x23cee4=new Set();for(const _0x449235 of _0x38538a['inline']){const _0x6e9401=_0x2d108f['getGhsAttributeNameForElement'](_0x449235['element']);_0x23cee4['add'](_0x6e9401);for(const _0x1e9e0c of _0x449235['ghsAttributes'])_0x23cee4['add'](_0x1e9e0c);}for(const _0x4da8d4 of _0x5931c6)_0x534ad6['registerBlockAttribute'](_0x4da8d4),_0x534ad6['descriptionFactory']['registerAttributeLabel'](_0x4da8d4,o(_0x55597c,'FORMAT_STYLE'));for(const _0x4fae2f of _0x23cee4)_0x534ad6['registerInlineAttribute'](_0x4fae2f),_0x534ad6['descriptionFactory']['registerAttributeLabel'](_0x4fae2f,o(_0x55597c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a81e9=this['editor'],_0x107d46=_0x5a81e9['locale'];_0x5a81e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7279a8=>{if('formatBlock'!=_0x7279a8['type']&&'formatInline'!=_0x7279a8['type'])return;const {data:_0x2516d3}=_0x7279a8;return _0x2516d3&&'style'===_0x2516d3['commandName']?_0x2516d3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x107d46,'*Set\x20format:*\x20%0',_0x2516d3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x107d46,'*Remove\x20format:*\x20%0',_0x2516d3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5a6596{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5cb11a){super(_0x5cb11a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x8eda48=this['editor'],_0x33c7a3=_0x8eda48['model']['document']['selection'];if(!_0x8eda48['plugins']['has']('TableEditing'))return;const _0x55eb59=_0x8eda48['locale'],_0x49c05b=_0x8eda48['plugins']['get']('TrackChangesEditing'),_0x4e9dbb=_0x8eda48['plugins']['get']('TableUtils');_0x49c05b['descriptionFactory']['registerElementLabel']('table',_0x9e1100=>o(_0x55eb59,'ELEMENT_TABLE',_0x9e1100)),this['_setupColumnsRowsFixing'](),_0x49c05b['enableCommand']('insertTable'),_0x49c05b['enableCommand']('selectTableRow'),_0x49c05b['enableCommand']('selectTableColumn');for(const _0x28545f of['insertTableRowAbove','insertTableRowBelow']){const _0x1effa3=_0x8eda48['commands']['get'](_0x28545f);_0x49c05b['enableCommand'](_0x28545f,_0x2281c1=>{_0x8eda48['model']['change'](_0x46d389=>{_0x2281c1();const _0x2c5506='above'===_0x1effa3['order'],_0x7ac8eb=_0x4e9dbb['getSelectionAffectedTableCells'](_0x33c7a3),_0x529d56=_0x4e9dbb['getRowIndexes'](_0x7ac8eb),_0x922cf9=_0x2c5506?_0x529d56['first']-0x1:_0x529d56['last']+0x1,_0x59df55=_0x7ac8eb[0x0]['findAncestor']('table'),_0x348d87=_0x4e9dbb['createTableWalker'](_0x59df55,{'startRow':_0x922cf9,'endRow':_0x922cf9}),_0x189998=Array['from'](_0x348d87)['map'](_0x4a07ac=>_0x46d389['createRangeOn'](_0x4a07ac['cell']));_0x49c05b['markMultiRangeInsertion'](_0x189998,'tableRow');});});}for(const _0x2111fc of['insertTableColumnLeft','insertTableColumnRight']){const _0x2007d4=_0x8eda48['commands']['get'](_0x2111fc);_0x49c05b['enableCommand'](_0x2111fc,_0x3f6c27=>{_0x8eda48['model']['change'](_0x6917a7=>{_0x3f6c27();const _0x349ff5='left'===_0x2007d4['order'],_0xe4e830=_0x4e9dbb['getSelectionAffectedTableCells'](_0x33c7a3),_0x18e026=_0x4e9dbb['getColumnIndexes'](_0xe4e830),_0x11ec13=_0x349ff5?_0x18e026['first']-0x1:_0x18e026['last']+0x1,_0x28623c=_0xe4e830[0x0]['findAncestor']('table'),_0x1c2b4e=_0x4e9dbb['createTableWalker'](_0x28623c,{'startRow':0x0,'column':_0x11ec13,'includeAllSlots':!0x1}),_0x13fd78=Array['from'](_0x1c2b4e)['map'](_0x2a2c9c=>_0x6917a7['createRangeOn'](_0x2a2c9c['cell']));_0x49c05b['markMultiRangeInsertion'](_0x13fd78,'tableColumn');});});}for(const _0x18f3ca of['removeTableRow','removeTableColumn']){const _0x1efb4b=_0x18f3ca['substr'](0xb),_0x5515ce=_0x1efb4b['toLowerCase'](),_0x245222=_0x5515ce['substr'](0x0,0x3)+'span',_0x16c0f8='table'+_0x1efb4b,_0x2bfea1='min'+_0x1efb4b,_0x128317='max'+_0x1efb4b;_0x49c05b['enableCommand'](_0x18f3ca,()=>{_0x8eda48['model']['change'](_0x5da9cc=>{const _0x22a37b=_0x4e9dbb['getSelectionAffectedTableCells'](_0x33c7a3),_0x2b903c=_0x22a37b[0x0]['findAncestor']('table');let _0x1ed651;if('removeTableRow'==_0x18f3ca){const _0x4faa58=_0x4e9dbb['getRowIndexes'](_0x22a37b);_0x1ed651={'startRow':_0x4faa58['first'],'endRow':_0x4faa58['last'],'includeAllSlots':!0x0};}else{const _0x3779f6=_0x4e9dbb['getColumnIndexes'](_0x22a37b);_0x1ed651={'startColumn':_0x3779f6['first'],'endColumn':_0x3779f6['last'],'includeAllSlots':!0x0};}const _0x5d8afc=_0x4e9dbb['createTableWalker'](_0x2b903c,_0x1ed651),_0x5288be=Array['from'](_0x5d8afc)['map'](({cell:_0x166571})=>_0x166571),_0x37030f=Ee(_0x5288be['filter'](_0x451b93=>_0x451b93['hasAttribute'](_0x245222))),_0x28cafb=Ee(_0x5288be['filter'](_0xde029c=>!_0xde029c['hasAttribute'](_0x245222)))['map'](_0x234b85=>_0x5da9cc['createRangeOn'](_0x234b85)),_0x477dc7=_0x49c05b['markMultiRangeDeletion'](_0x28cafb,_0x16c0f8);if(_0x477dc7&&('tableRow'==_0x477dc7['subType']||'tableColumn'==_0x477dc7['subType'])){const _0xedc128=this['_getSuggestionCoords'](_0x477dc7);for(const _0x152be7 of _0x37030f){const _0x172864=_0x5da9cc['createRangeOn'](_0x152be7),_0xc26f3f=_0x4e9dbb['getCellLocation'](_0x152be7),_0x22c4fc=_0x152be7['getAttribute'](_0x245222)-0x1,_0x50ae5a=_0xedc128[_0x2bfea1],_0xc60721=_0xedc128[_0x128317];_0x50ae5a<=_0xc26f3f[_0x5515ce]&&_0xc26f3f[_0x5515ce]+_0x22c4fc<=_0xc60721&&_0x477dc7['addRange'](_0x172864);}}});});}function _0x5ea516(_0x7e88e9){const _0x51091a=Array['from'](_0x33c7a3['getRanges']())['map'](_0x14cbd4=>_0x5ac8f0['fromRange'](_0x14cbd4));_0x8eda48['model']['change'](_0x3a221f=>{const _0x4741c0=_0x3a221f['batch'];_0x7e88e9=_0x7e88e9['filter'](_0x59f250=>'$graveyard'!=_0x59f250['root']['rootName']),_0x3a221f['setSelection'](_0x7e88e9),_0x8eda48['commands']['get']('removeTableRow')['refresh'](),_0x8eda48['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x8eda48['model']['enqueueChange'](()=>{_0x8eda48['model']['enqueueChange'](_0x4741c0,_0x1fd56c=>{const _0x24474f=_0x51091a['filter'](_0x485581=>'$graveyard'!=_0x485581['root']['rootName']);_0x24474f['length']>0x0&&_0x1fd56c['setSelection'](_0x24474f);for(const _0x59a0a6 of _0x51091a)_0x59a0a6['detach']();});});});}function _0x59dcc5(_0x127b4a){_0x8eda48['model']['change'](_0x5ea053=>{const _0x1c779a=Array['from'](_0x33c7a3['getRanges']())['map'](_0x427d7e=>_0x5ac8f0['fromRange'](_0x427d7e)),_0x401013=[];for(const _0x13ccf1 of _0x127b4a)for(const _0x1cfeaf of _0x13ccf1['getItems']({'shallow':!0x0}))_0x401013['push'](_0x1cfeaf);for(const _0x58f6bd of _0x401013)'$graveyard'!=_0x58f6bd['root']['rootName']&&(_0x5ea053['setSelection'](_0x5ea053['createPositionAt'](_0x58f6bd,0x0)),_0x8eda48['commands']['get']('removeTableColumn')['refresh'](),_0x8eda48['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3a178b=_0x1c779a['filter'](_0x1817cc=>'$graveyard'!=_0x1817cc['root']['rootName']);_0x3a178b['length']>0x0&&_0x5ea053['setSelection'](_0x3a178b);for(const _0x2ff8ca of _0x1c779a)_0x2ff8ca['detach']();});}function _0xe96a9c(_0x284b7d,_0x3afcfa){return _0x3afcfa['every'](_0x55bbe5=>_0x284b7d['some'](_0x2a8ade=>_0x2a8ade['end']['isEqual'](_0x55bbe5['start'])||_0x55bbe5['end']['isEqual'](_0x2a8ade['start'])));}function _0x58c10c(_0x313fae,_0x2f8e88){return _0x313fae['some'](_0x358934=>_0x2f8e88['some'](_0x2cc78e=>_0x358934['end']['isTouching'](_0x2cc78e['start'])));}_0x8eda48['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f034e,_0x551bd0,_0x281fa9)=>{if(!_0x281fa9['options']['showSuggestionHighlights'])return;const _0x51edd1=_0x551bd0['item'];if(!_0x51edd1)return;const _0x52852a=_0x281fa9['mapper']['toViewElement'](_0x51edd1);function _0x4d5037(_0x554c75){return Array['isArray'](_0x554c75)?_0x554c75:[_0x554c75];}_0x52852a&&'tableCell'===_0x51edd1['name']&&_0x570f94(_0x52852a,_0x281fa9['writer'],(_0x324877,_0x6bcd19,_0x1ce220)=>_0x1ce220['addClass'](_0x4d5037(_0x6bcd19['classes']),_0x324877),(_0x216384,_0x28ba35,_0x544ae5)=>_0x544ae5['removeClass'](_0x4d5037(_0x28ba35['classes']),_0x216384));},{'priority':'highest'}),_0x49c05b['descriptionFactory']['registerDescriptionCallback'](_0x13d426=>{if('insertion'!=_0x13d426['type']&&'deletion'!=_0x13d426['type'])return;const _0x5932ec=_0x13d426['getContainedElement']();if(null!=_0x5932ec&&_0x5932ec['is']('element','table')){if('insertion'==_0x13d426['type']){const _0x3b9fdf=_0x13d426['getItems']()['filter'](_0x588bc5=>_0x588bc5['is']('$textProxy'))['map'](_0x4ae7a2=>_0x4ae7a2['data']);if(_0x3b9fdf['length'])return{'type':'insertion','content':o(_0x55eb59,'*Insert:*\x20%0',o(_0x55eb59,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b9fdf['join']('\x20')+'\x22'))};}if('deletion'==_0x13d426['type']){const _0x493330=_0x13d426['getItems']()['filter'](_0x2b6589=>_0x2b6589['is']('$textProxy'))['map'](_0x906d17=>_0x906d17['data']);if(_0x493330['length'])return{'type':'deletion','content':o(_0x55eb59,'*Remove:*\x20%0',o(_0x55eb59,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x493330['join']('\x20')+'\x22'))};}}}),_0x49c05b['descriptionFactory']['registerDescriptionCallback'](_0x27a518=>{if('tableRow'==_0x27a518['subType']){const _0x41fecd=_0x27a518['getItems']()['filter'](_0x4f9e75=>_0x4f9e75['is']('$textProxy'))['map'](_0xc2ee2b=>_0xc2ee2b['data']),_0x59bf4c=this['_getSuggestionCoords'](_0x27a518),_0xe6ece0=_0x59bf4c['maxRow']-_0x59bf4c['minRow']+0x1;if('insertion'==_0x27a518['type'])return _0x41fecd['length']?{'type':'insertion','content':o(_0x55eb59,'*Insert:*\x20%0',o(_0x55eb59,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xe6ece0,'\x22'+_0x41fecd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x55eb59,'*Insert:*\x20%0',o(_0x55eb59,'ELEMENT_TABLE_ROW',_0xe6ece0))};if('deletion'==_0x27a518['type'])return _0x41fecd['length']?{'type':'deletion','content':o(_0x55eb59,'*Remove:*\x20%0',o(_0x55eb59,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xe6ece0,'\x22'+_0x41fecd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x55eb59,'*Remove:*\x20%0',o(_0x55eb59,'ELEMENT_TABLE_ROW',_0xe6ece0))};}if('tableColumn'==_0x27a518['subType']){const _0x23545b=_0x27a518['getItems']()['filter'](_0x1fa95f=>_0x1fa95f['is']('$textProxy'))['map'](_0x5de289=>_0x5de289['data']),_0xdf11c6=this['_getSuggestionCoords'](_0x27a518),_0x32bd2f=_0xdf11c6['maxColumn']-_0xdf11c6['minColumn']+0x1;if('insertion'==_0x27a518['type'])return _0x23545b['length']?{'type':'insertion','content':o(_0x55eb59,'*Insert:*\x20%0',o(_0x55eb59,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32bd2f,'\x22'+_0x23545b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x55eb59,'*Insert:*\x20%0',o(_0x55eb59,'ELEMENT_TABLE_COLUMN',_0x32bd2f))};if('deletion'==_0x27a518['type'])return _0x23545b['length']?{'type':'deletion','content':o(_0x55eb59,'*Remove:*\x20%0',o(_0x55eb59,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32bd2f,'\x22'+_0x23545b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x55eb59,'*Remove:*\x20%0',o(_0x55eb59,'ELEMENT_TABLE_COLUMN',_0x32bd2f))};}}),_0x49c05b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5ea516),_0x49c05b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5ea516),_0x49c05b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x59dcc5),_0x49c05b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x59dcc5),_0x49c05b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xe96a9c),_0x49c05b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xe96a9c),_0x49c05b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x58c10c),_0x49c05b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x58c10c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2f43c2=this['editor'],_0x2f46bd=_0x2f43c2['model']['document']['selection'];return(_0x260f84,_0x304b23)=>{_0x2f43c2['model']['change'](_0x1cf491=>{const {commandName:_0x3a2a9a,commandParams:_0x336e1a}=_0x304b23;let _0x15e506=_0x260f84[0x0]['end']['nodeBefore'];_0x336e1a&&_0x336e1a[0x0]&&!0x1===_0x336e1a[0x0]['forceValue']&&(_0x15e506=_0x260f84[0x0]['start']['nodeAfter']);const _0x43b6f1=_0x1cf491['createRangeIn'](_0x15e506);if('$graveyard'==_0x43b6f1['root']['rootName'])return;const _0x3a4a6c=Array['from'](_0x2f46bd['getRanges']())['map'](_0x30bb4f=>_0x5ac8f0['fromRange'](_0x30bb4f));_0x1cf491['setSelection'](_0x43b6f1),_0x2f43c2['commands']['get'](_0x3a2a9a)['refresh'](),_0x336e1a['push']({'forceDefaultExecution':!0x0}),_0x2f43c2['execute'](_0x3a2a9a,..._0x336e1a);const _0x4e6043=_0x3a4a6c['filter'](_0x33da54=>'$graveyard'!=_0x33da54['root']['rootName']);_0x4e6043['length']>0x0&&_0x1cf491['setSelection'](_0x4e6043);for(const _0x395db5 of _0x3a4a6c)_0x395db5['detach']();});};}['_getCoordsForCells'](_0x104334){const _0x2038ee=this['editor']['plugins']['get']('TableUtils');let _0x4fc990=Number['MAX_SAFE_INTEGER'],_0x4142a0=Number['MIN_SAFE_INTEGER'],_0x39bdd9=Number['MAX_SAFE_INTEGER'],_0x409f10=Number['MIN_SAFE_INTEGER'];for(const _0x1ed316 of _0x104334){if('$graveyard'==_0x1ed316['root']['rootName'])continue;const {row:_0x4c5645,column:_0x35131c}=_0x2038ee['getCellLocation'](_0x1ed316),_0x29d586=_0x1ed316['hasAttribute']('rowspan')?_0x1ed316['getAttribute']('rowspan')-0x1:0x0,_0x566909=_0x1ed316['hasAttribute']('colspan')?_0x1ed316['getAttribute']('colspan')-0x1:0x0;_0x4fc990=_0x4c5645<_0x4fc990?_0x4c5645:_0x4fc990,_0x4142a0=_0x4c5645+_0x29d586>_0x4142a0?_0x4c5645+_0x29d586:_0x4142a0,_0x39bdd9=_0x35131c<_0x39bdd9?_0x35131c:_0x39bdd9,_0x409f10=_0x35131c+_0x566909>_0x409f10?_0x35131c+_0x566909:_0x409f10;}return{'minRow':_0x4fc990,'maxRow':_0x4142a0,'minColumn':_0x39bdd9,'maxColumn':_0x409f10};}['_setupColumnsRowsFixing'](){const _0x1e077=this['editor'],_0x5f9d7=_0x1e077['plugins']['get']('TrackChangesEditing'),_0x30d4e9=_0x1e077['plugins']['get']('TableUtils');_0x1e077['model']['document']['on']('change:data',()=>{const _0x23eee8=Array['from'](_0x1e077['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1de02f,data:_0x41bfbd}of _0x23eee8){const {group:_0x56d954,id:_0x4b0c84,subType:_0x35a093}=_0x5f9d7['_splitMarkerName'](_0x1de02f);if('suggestion'!=_0x56d954)continue;if(null!=_0x41bfbd['oldRange'])continue;const _0x28ef38=_0x5f9d7['getSuggestion'](_0x4b0c84);this['_tablePostFixingSubtypes']['includes'](_0x35a093)&&this['_tableSuggestions']['add'](_0x28ef38);}},{'priority':'low'});const _0x389cec=(_0x4180f0,_0x35a112)=>{let _0x12a991=!0x1;const _0x467400=_0x35a112['createRangeOn'](_0x4180f0),_0x49c77d=_0x4180f0['findAncestor']('table'),_0x520590=_0x30d4e9['getCellLocation'](_0x4180f0);for(const _0x309359 of this['_tableSuggestions']){const _0x45a595=_0x309359['subType'],_0x5d36dc=_0x45a595['startsWith']('tablePaste'),_0x4468f5=_0x45a595['substr'](_0x5d36dc?0xa:0x5),_0x766311=_0x4468f5['toLowerCase'](),_0xe6e75=_0x766311['substr'](0x0,0x3)+'span',_0x1c2b3b='min'+_0x4468f5,_0x2b7dbd='max'+_0x4468f5;if(!_0x309359['isInContent'])continue;if(_0x49c77d!=_0x309359['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x309359['isIntersectingWithRange'](_0x467400))continue;const _0x2572b4=_0x4180f0['hasAttribute'](_0xe6e75)?_0x4180f0['getAttribute'](_0xe6e75)-0x1:0x0,_0x4e1954=this['_getSuggestionCoords'](_0x309359),_0x644d99=_0x4e1954[_0x1c2b3b],_0x2eddc1=_0x4e1954[_0x2b7dbd];_0x644d99<=_0x520590[_0x766311]&&_0x520590[_0x766311]+_0x2572b4<=_0x2eddc1&&(_0x309359['addRange'](_0x467400),_0x12a991=!0x0);}return _0x12a991;};_0x1e077['model']['document']['registerPostFixer'](_0x31c098=>{let _0x32363b=!0x1;for(const _0x24d407 of _0x1e077['model']['document']['differ']['getChanges']())if('insert'==_0x24d407['type']){if('tableRow'==_0x24d407['name']){for(const _0x2e2058 of _0x24d407['position']['nodeAfter']['getChildren']())_0x32363b=_0x32363b||_0x389cec(_0x2e2058,_0x31c098);}else'tableCell'==_0x24d407['name']&&(_0x32363b=_0x32363b||_0x389cec(_0x24d407['position']['nodeAfter'],_0x31c098));}return _0x32363b;});}['_getSuggestionCoords'](_0x33051a){return this['_getCoordsForCells'](_0x33051a['getRanges']()['map'](_0xa2cb14=>_0xa2cb14['start']['nodeAfter']));}}function Ee(_0x187558){return Array['from'](new Set(_0x187558)['values']());}class St extends _0x5a6596{static get['requires'](){return[jt];}['afterInit'](){const _0x95404=this['editor'],_0xb4d720=_0x95404['model']['document']['selection'],_0x597dc3=_0x95404['locale'];if(!_0x95404['plugins']['has']('TableEditing'))return;const _0x8616b7=_0x95404['plugins']['get']('TrackChangesEditing'),_0x22b9c7=_0x95404['plugins']['get']('TableUtils'),_0x3e8bc6=_0x95404['plugins']['get'](jt);_0x3e8bc6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x8616b7['enableCommand']('mergeTableCells',()=>{const _0x2225bf=_0x22b9c7['getSelectionAffectedTableCells'](_0x95404['model']['document']['selection']);_0x95404['model']['change'](()=>{_0x8616b7['markMultiRangeBlockFormat'](_0x2225bf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x95404['commands']['get']('mergeTableCells')['on']('execute',(_0x449ace,_0x4e9366)=>{_0x95404['commands']['get']('trackChanges')['value']&&(_0x4e9366['length']>0x0&&_0x4e9366[_0x4e9366['length']-0x1]&&_0x4e9366[_0x4e9366['length']-0x1]['forceDefaultExecution']||_0x8616b7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x449ace['stop']());},{'priority':'highest'});for(const _0x49aebc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x118069=_0x95404['commands']['get'](_0x49aebc);_0x8616b7['enableCommand'](_0x49aebc,()=>{const _0x347738=_0x95404['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x28b9cf=>_0x28b9cf['is']('element','tableCell')),_0x26a01e=_0x118069['value'];_0x95404['model']['change'](()=>{_0x8616b7['markMultiRangeBlockFormat']([_0x347738,_0x26a01e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4f1de2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x49d912=_0x95404['commands']['get'](_0x4f1de2);_0x8616b7['enableCommand'](_0x4f1de2,()=>{const _0xeea9dc=_0x22b9c7['getSelectionAffectedTableCells'](_0x95404['model']['document']['selection'])[0x0],_0x366dfa=_0xeea9dc['findAncestor']('table'),{column:_0x21df67,row:_0x608871}=_0x22b9c7['getCellLocation'](_0xeea9dc);let _0x3c7797=[];if('horizontally'==_0x49d912['direction']){const _0x1dcb7f=_0x22b9c7['createTableWalker'](_0x366dfa,{'startRow':_0x608871,'endRow':_0x608871,'includeAllSlots':!0x0});_0x3c7797=Array['from'](_0x1dcb7f)['map'](_0x27af9d=>_0x27af9d['cell']);}else{const _0x2302d2=_0x22b9c7['createTableWalker'](_0x366dfa,{'column':_0x21df67,'includeAllSlots':!0x0});_0x3c7797=Array['from'](_0x2302d2)['map'](_0x21ce24=>_0x21ce24['cell']);}_0x95404['model']['change'](_0x5ebd27=>{_0x8616b7['markBlockFormat'](_0x5ebd27['createRangeOn'](_0xeea9dc),{'commandName':_0x4f1de2,'commandParams':[]},_0x3c7797,_0x4f1de2);});});}_0x8616b7['descriptionFactory']['registerDescriptionCallback'](_0xc0fd97=>{if('formatBlock'!=_0xc0fd97['type']&&'formatInline'!=_0xc0fd97['type'])return;const {data:_0x537dd2}=_0xc0fd97;return _0x537dd2&&'mergeTableCells'==_0x537dd2['commandName']?{'type':'format','content':o(_0x597dc3,'*Merge\x20cells*')}:void 0x0;}),_0x8616b7['descriptionFactory']['registerDescriptionCallback'](_0x1815fd=>{if('formatBlock'!=_0x1815fd['type']&&'formatInline'!=_0x1815fd['type'])return;const {data:_0x3a4d48}=_0x1815fd;return _0x3a4d48?'splitTableCellVertically'==_0x3a4d48['commandName']?{'type':'format','content':o(_0x597dc3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3a4d48['commandName']?{'type':'format','content':o(_0x597dc3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5de81b=_0x3e8bc6['_acceptFormatSuggestionCallbackFactory']();for(const _0x31c8a6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x8616b7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31c8a6,'accept',_0x5de81b);for(const _0x5aa61a of['splitTableCellVertically','splitTableCellHorizontally'])_0x8616b7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5aa61a,'accept',_0x5de81b);_0x8616b7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x32f9b1=>{_0x95404['model']['change'](_0x40797e=>{const _0x3e6d22=Array['from'](_0xb4d720['getRanges']())['map'](_0x297337=>_0x5ac8f0['fromRange'](_0x297337));_0x40797e['setSelection'](_0x32f9b1),_0x95404['commands']['get']('mergeTableCells')['refresh'](),_0x95404['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5650e1=_0x3e6d22['filter'](_0x428490=>'$graveyard'!=_0x428490['root']['rootName']);_0x5650e1['length']>0x0&&_0x40797e['setSelection'](_0x5650e1);for(const _0x355294 of _0x3e6d22)_0x355294['detach']();});});for(const _0x53770f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2afe90=_0x95404['commands']['get'](_0x53770f);_0x2afe90['on']('set:isEnabled',(_0x45842a,_0x2d33ad,_0x25adb9)=>{if(_0x25adb9){const _0x403d28=_0x95404['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1fb15a=>_0x1fb15a['is']('element','tableCell'));this['_areMergableCells'](_0x2afe90['value'],_0x403d28)||(_0x45842a['return']=!0x1,_0x45842a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x38f5ff=this['editor']['commands']['get']('mergeTableCells'),_0x3ac1d8=this['editor']['plugins']['get']('TableUtils');if(!_0x38f5ff['isEnabled'])return!0x1;const _0x1004de=_0x3ac1d8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x45fbfa of _0x1004de)for(const _0x585dde of _0x1004de)if(_0x45fbfa!=_0x585dde&&!this['_areMergableCells'](_0x45fbfa,_0x585dde))return!0x1;return!0x0;}['_areMergableCells'](_0x5da319,_0x3f8487){const _0x54b3ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x500070=this['editor']['model']['createRangeOn'](_0x5da319),_0x544ec4=this['editor']['model']['createRangeOn'](_0x3f8487),_0x15ad3a=new Set(),_0x4da3b7=new Set();for(const _0x17df44 of _0x54b3ee['getSuggestions']())if(('insertion'==_0x17df44['type']||'deletion'==_0x17df44['type']||'mergeTableCells'==_0x17df44['subType'])&&_0x17df44['isInContent']){for(const _0x5098cc of _0x17df44['getRanges']())_0x5098cc['containsRange'](_0x500070,!0x0)&&_0x15ad3a['add'](_0x17df44['type']+':'+_0x17df44['author']['id']),_0x5098cc['containsRange'](_0x544ec4,!0x0)&&_0x4da3b7['add'](_0x17df44['type']+':'+_0x17df44['author']['id']);}if(_0x15ad3a['size']!=_0x4da3b7['size'])return!0x1;for(const _0x3d88ff of _0x15ad3a)if(!_0x4da3b7['has'](_0x3d88ff))return!0x1;return!0x0;}}class At extends _0x5a6596{static get['requires'](){return[jt];}['afterInit'](){const _0x2f74cc=this['editor'];if(!_0x2f74cc['plugins']['has']('TableEditing'))return;const _0x3c4546=_0x2f74cc['locale'],_0x51e143=_0x2f74cc['plugins']['get']('TrackChangesEditing');_0x51e143['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x51e143['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x51e143['registerBlockAttribute']('headingRows'),_0x51e143['registerBlockAttribute']('headingColumns'),_0x51e143['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3c4546,'FORMAT_HEADER_ROW')),_0x51e143['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3c4546,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x141670=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32fe82=this['editor']['plugins']['get']('TableUtils'),_0x241315=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1e2d06({showActiveMarker:_0x28454d=!0x0,setDataAttribute:_0x4cf46f=!0x0}={}){return(_0x3493a7,_0x2ba00,_0x69a426)=>{const {type:_0x1a7dbd,id:_0x278248}=_0x141670['_splitMarkerName'](_0x2ba00['markerName']),_0x121394=_0x141670['getSuggestion'](_0x278248),_0x6c1f9e=_0x121394['data'];if('formatBlock'!=_0x121394['type']||!_0x6c1f9e||'setTableColumnHeader'!=_0x6c1f9e['commandName'])return;if(_0x2ba00['item'])return void _0x3493a7['stop']();if(!_0x69a426['consumable']['consume'](_0x2ba00['markerRange'],_0x3493a7['name']))return;const _0x373dc0=_0x2ba00['markerRange']['start']['nodeAfter'],_0x1bc109=_0x2ba00['markerRange']['end']['nodeBefore'],_0x33f5c0=_0x373dc0['parent']['parent'],{column:_0x40eb6e}=_0x32fe82['getCellLocation'](_0x373dc0),{column:_0x32ac27}=_0x32fe82['getCellLocation'](_0x1bc109);for(let _0x1e2466=_0x40eb6e;_0x1e2466<=_0x32ac27;_0x1e2466++){const _0x3a6002=_0x32fe82['createTableWalker'](_0x33f5c0,{'column':_0x1e2466,'includeAllSlots':!0x1});for(const _0x5ab4f3 of _0x3a6002){const _0x3c388b=_0x5ab4f3['cell'],_0x481112=_0x69a426['mapper']['toViewElement'](_0x3c388b);_0x69a426['writer']['addClass']('ck-suggestion-marker-'+_0x1a7dbd,_0x481112),_0x4cf46f&&_0x69a426['writer']['setAttribute']('data-suggestion',_0x278248,_0x481112),_0x69a426['mapper']['bindElementToMarker'](_0x481112,_0x2ba00['markerName']),_0x28454d&&(_0x141670['activeMarkers']['includes'](_0x2ba00['markerName'])?_0x69a426['writer']['addClass']('ck-suggestion-marker--active',_0x481112):_0x69a426['writer']['removeClass']('ck-suggestion-marker--active',_0x481112));}}};}_0x141670['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x241315),_0x141670['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x241315),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1e2d06(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xfea400,_0x314d29,_0x3d7698)=>{_0x3d7698['options']['showSuggestionHighlights']&&_0x1e2d06({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xfea400,_0x314d29,_0x3d7698);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1cc64c,_0x72d07e,_0xb8bb25)=>{const {type:_0x219e7c,id:_0x27d70c}=_0x141670['_splitMarkerName'](_0x72d07e['markerName']),_0x4a0737=_0x141670['getSuggestion'](_0x27d70c),_0x287862=_0x4a0737['data'];if('formatBlock'!=_0x4a0737['type']||!_0x287862||'setTableColumnHeader'!=_0x287862['commandName'])return;const _0x39f11b=_0xb8bb25['mapper']['markerNameToElements'](_0x72d07e['markerName']);if(_0x39f11b){for(const _0x40cab9 of _0x39f11b)_0xb8bb25['writer']['removeClass']('ck-suggestion-marker-'+_0x219e7c,_0x40cab9),_0xb8bb25['writer']['removeClass']('ck-suggestion-marker--active',_0x40cab9),_0xb8bb25['writer']['removeAttribute']('data-suggestion',_0x40cab9),_0xb8bb25['mapper']['unbindElementFromMarkerName'](_0x40cab9,_0x72d07e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x83cf9d=this['editor'],_0x1b32c3=_0x83cf9d['locale'];function _0x34e2f9(_0x1d15ae){return{'type':'format','content':o(_0x1b32c3,'*Format:*\x20%0',_0x1d15ae)};}_0x83cf9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x438836=>{if('formatBlock'!=_0x438836['type'])return;const {data:_0xe7ba}=_0x438836;if(_0xe7ba){if('setTableRowHeader'==_0xe7ba['commandName']){const _0x20c212=_0xe7ba['commandParams'][0x0]['forceValue'];return _0x34e2f9(o(_0x1b32c3,_0x20c212?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xe7ba['commandName']){const _0x473544=_0xe7ba['commandParams'][0x0]['forceValue'];return _0x34e2f9(o(_0x1b32c3,_0x473544?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5c17b6=>[_0x5c17b6,null]));class It extends _0x5a6596{static get['requires'](){return[jt];}['afterInit'](){const _0x4a3289=this['editor'];if(!_0x4a3289['plugins']['has']('TableClipboard'))return;const _0x411814=_0x4a3289['plugins']['get']('TrackChangesEditing'),_0x4db1af=_0x4a3289['plugins']['get']('TableUtils'),_0x510d43=_0x4a3289['plugins']['get'](jt),_0x58fe87=_0x4a3289['plugins']['get']('TableClipboard');_0x510d43['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4a3289['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4a3289['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x37dfdb=null;_0x4a3289['model']['on']('insertContent',(_0x2abc34,_0x80af6c)=>{const [_0x2adb9c,_0x5d43dc]=_0x80af6c,_0x8dbdc1=_0x80af6c[_0x80af6c['length']-0x1];_0x8dbdc1&&_0x8dbdc1['forceDefaultExecution']||_0x411814['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x573c22,_0x1bfa02,_0xcd917e,_0x8b1509,_0x41885d){if(_0x1bfa02&&!_0x1bfa02['is']('documentSelection'))return!0x1;const _0xb138f6=_0x41885d['getTableIfOnlyTableInContent'](_0x573c22,_0xcd917e);if(!_0xb138f6||!he(_0xb138f6,void 0x0,_0x8b1509))return!0x1;const _0x362113=_0x8b1509['getSelectionAffectedTableCells'](_0xcd917e['document']['selection']);if(!_0x362113['length'])return!0x1;const _0x298da0=_0x362113[0x0]['findAncestor']('table'),_0x50487d=_0x8b1509['getRowIndexes'](_0x362113),_0x30ead6=_0x8b1509['getColumnIndexes'](_0x362113),_0x304341={'startRow':_0x50487d['first'],'endRow':_0x50487d['last'],'startColumn':_0x30ead6['first'],'endColumn':_0x30ead6['last']};return 0x1==_0x362113['length']&&(_0x304341['endRow']+=_0x8b1509['getRows'](_0xb138f6)-0x1,_0x304341['endColumn']+=_0x8b1509['getColumns'](_0xb138f6)-0x1),he(_0x298da0,_0x304341,_0x8b1509);}(_0x2adb9c,_0x5d43dc,_0x4a3289['model'],_0x4db1af,_0x58fe87)&&(_0x2abc34['stop'](),_0x37dfdb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a3289['model']['change'](()=>{_0x4a3289['model']['insertContent'](_0x80af6c[0x0],_0x80af6c[0x1],_0x80af6c[0x2],{'forceDefaultExecution':!0x0});const _0x303472=_0x3af419(),{rowInsertionRanges:_0x1addb8,columnInsertionRanges:_0x38905b,insertionRanges:_0x46ecd6,deletionRanges:_0x5cbabe,cells:_0x5d70b3}=_0x37dfdb;_0x1addb8['length']&&_0x411814['markMultiRangeInsertion'](_0x1addb8,'tablePasteRow',{'tablePasteChainId':_0x303472}),_0x38905b['length']&&_0x411814['markMultiRangeInsertion'](_0x38905b,'tablePasteColumn',{'tablePasteChainId':_0x303472}),_0x46ecd6['length']&&(_0x411814['markMultiRangeInsertion'](_0x46ecd6,'tablePaste',{'tablePasteChainId':_0x303472,'skipNestingCheck':!0x0}),_0x46ecd6['forEach'](_0x221815=>_0x221815['detach']?.())),_0x5cbabe['length']&&(_0x411814['markMultiRangeDeletion'](_0x5cbabe,'tablePaste',{'tablePasteChainId':_0x303472,'skipNestingCheck':!0x0}),_0x5cbabe['forEach'](_0x42e0e0=>_0x42e0e0['detach']?.()));const _0x3b27a5=_0x411814['markMultiRangeBlockFormat'](_0x5d70b3['map'](({element:_0x42e8fc})=>_0x42e8fc),{'formatGroupId':_0x3af419()},[],'tablePasteCell',{'tablePasteChainId':_0x303472});if(_0x3b27a5){const _0x1d67ee=_0x3b27a5['getMarkers'](),_0x520e57=[];for(const {element:_0x317f9,attributes:_0x2e1d7d}of _0x5d70b3){if(!_0x2e1d7d)continue;const _0x219789=_0x4a3289['model']['createRangeOn'](_0x317f9),_0x5812a1=_0x1d67ee['find'](_0x97bb08=>_0x97bb08['getRange']()['isEqual'](_0x219789));_0x5812a1&&_0x520e57['push']([_0x5812a1['name'],_0x2e1d7d]);}_0x520e57['length']&&_0x3b27a5['setAttribute']('markerAttributes',Object['fromEntries'](_0x520e57));}_0x37dfdb=null;}));},{'priority':_0xb7e399['high']+0xa}),_0x4a3289['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2e7c9e,_0x11c3d3)=>{const [_0x46dcc2,_0x321c4a,,_0x463702]=_0x11c3d3;if(!_0x37dfdb)return;_0x2e7c9e['stop']();const _0x146c00=_0x46dcc2['cell'],_0x19c268=_0x321c4a,_0x150529=Pe(_0x146c00),_0x5c6f66=Pe(_0x19c268);_0x2e7c9e['return']=_0x146c00;let _0x5e020a=null,_0x2f25a7=null;if(_0x5c6f66||_0x150529){if(_0x150529&&!_0x5c6f66){_0x463702['remove'](_0x146c00['getChild'](0x0));for(const _0x136424 of Array['from'](_0x19c268['getChildren']()))_0x463702['insert'](_0x136424,_0x146c00,'end');const _0x36d12f=_0x37dfdb['rowInsertionIndexes']['includes'](_0x46dcc2['row']),_0x1a0c12=_0x37dfdb['columnInsertionIndexes']['includes'](_0x46dcc2['column']);_0x36d12f||_0x1a0c12||(_0x5e020a=_0x5ac8f0['fromRange'](_0x463702['createRangeIn'](_0x146c00)));}else _0x5c6f66&&!_0x150529&&(_0x2f25a7=_0x463702['createRangeIn'](_0x146c00));}else{const _0x5c74f5=_0x463702['createElement']('tableCellSuggestion'),_0x62971=_0x463702['createElement']('tableCellSuggestion');_0x463702['wrap'](_0x463702['createRangeIn'](_0x146c00),_0x62971),_0x463702['insert'](_0x5c74f5,_0x146c00,0x0);for(const _0x547bdc of Array['from'](_0x19c268['getChildren']()))_0x463702['insert'](_0x547bdc,_0x5c74f5,'end');_0x5e020a=_0x5ac8f0['fromRange'](_0x463702['createRangeOn'](_0x5c74f5)),_0x2f25a7=_0x5ac8f0['fromRange'](_0x463702['createRangeOn'](_0x62971));}const _0x1ddae3=Array['from'](_0x19c268['getAttributes']())['filter'](([_0x2e40a4])=>ge['includes'](_0x2e40a4));_0x37dfdb['cells']['push']({'element':_0x146c00,'attributes':_0x1ddae3['length']?Object['fromEntries'](_0x1ddae3):null}),_0x5e020a&&_0x37dfdb['insertionRanges']['push'](_0x5e020a),_0x2f25a7&&_0x37dfdb['deletionRanges']['push'](_0x2f25a7);},{'priority':'high'}),_0x4db1af['on']('insertColumns',(_0x5969de,_0x500f9e)=>{const [_0x40c414,_0x571f5f={}]=_0x500f9e;if(!_0x37dfdb)return;const _0x5bb9b9=_0x571f5f['at']||0x0,_0x22ea3e=_0x571f5f['columns']||0x1;_0x37dfdb['columnInsertionIndexes']=new Array(_0x22ea3e)['fill'](_0x5bb9b9)['map']((_0xeb18f,_0x272e8e)=>_0xeb18f+_0x272e8e);for(const {cell:_0x4b005b}of _0x4db1af['createTableWalker'](_0x40c414,{'startColumn':_0x5bb9b9,'endColumn':_0x5bb9b9+_0x22ea3e-0x1}))_0x37dfdb['columnInsertionRanges']['push'](_0x4a3289['model']['createRangeOn'](_0x4b005b));},{'priority':'low'}),_0x4db1af['on']('insertRows',(_0x22a629,_0x5a9a56)=>{const [_0x175f78,_0x596ef6={}]=_0x5a9a56;if(!_0x37dfdb)return;const _0x2e3b7b=_0x596ef6['at']||0x0,_0x4b28cd=_0x596ef6['rows']||0x1;_0x37dfdb['rowInsertionIndexes']=new Array(_0x4b28cd)['fill'](_0x2e3b7b)['map']((_0x3e1b44,_0x3db4e6)=>_0x3e1b44+_0x3db4e6);for(const {cell:_0x401b5f}of _0x4db1af['createTableWalker'](_0x175f78,{'startRow':_0x2e3b7b,'endRow':_0x2e3b7b+_0x4b28cd-0x1}))_0x37dfdb['rowInsertionRanges']['push'](_0x4a3289['model']['createRangeOn'](_0x401b5f));},{'priority':'low'}),_0x411814['descriptionFactory']['registerDescriptionCallback'](_0x44703d=>{if(_0x44703d['subType']&&_0x44703d['subType']['startsWith']('tablePaste'))return _0x44703d['previous']?{}:{'type':'insertion','content':o(_0x4a3289['locale'],'*Replace\x20table\x20cells*')};});const _0x1ecfa4=()=>!0x1;for(const _0xf168d5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x411814['_suggestionFactory']['registerCustomCallback']('insertion',_0xf168d5,'join',_0x1ecfa4),_0x411814['_suggestionFactory']['registerCustomCallback']('deletion',_0xf168d5,'join',_0x1ecfa4),_0x411814['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf168d5,'join',_0x1ecfa4);_0x411814['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1ecfa4),_0x411814['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x107197,_0x23efa5,_0x2351d5)=>{const _0x56f6b9=_0x107197['map'](_0x31d141=>_0x31d141['getContainedElement']())['filter'](_0x4a04e2=>_0x4a04e2),_0x5219c2=new Map(_0x56f6b9['map'](_0x14329a=>[_0x14329a,null]));if(_0x37dfdb){for(const {element:_0x3efede,attributes:_0x55b5b0}of _0x37dfdb['cells'])_0x55b5b0&&_0x5219c2['set'](_0x3efede,_0x55b5b0);}else{if(_0x2351d5&&_0x2351d5['markerAttributes'])for(const [_0x2bc07d,_0x1b0059]of Object['entries'](_0x2351d5['markerAttributes'])){const _0x50b536=_0x4a3289['model']['markers']['get'](_0x2bc07d),_0x58bb90=_0x50b536?_0x50b536['getRange']()['getContainedElement']():null;_0x58bb90&&_0x5219c2['set'](_0x58bb90,_0x1b0059);}}_0x4a3289['model']['change'](_0x196530=>{for(const [_0x4418cb,_0x3efc6b]of _0x5219c2)_0x196530['setAttributes']({...Ce,..._0x3efc6b},_0x4418cb);});});const _0x225971=(_0x2d7110,_0xeb9c86)=>{_0x411814['_suggestionFactory']['registerCustomCallback'](_0x2d7110,'tablePaste',_0xeb9c86,(_0x45907c,_0x17683a,_0x44130c)=>{_0x4a3289['model']['change'](_0x3bfed0=>{const _0x126d34=[];for(const _0x4b95bd of _0x45907c){const _0x2cd55b=_0x4b95bd['start']['nodeAfter'];_0x2cd55b['is']('element','tableCellSuggestion')&&_0x126d34['push'](_0x2cd55b);}_0x411814['_suggestionFactory']['getSuggestionCallback'](_0x2d7110,null,_0xeb9c86)(_0x45907c,_0x17683a,_0x44130c);for(const _0x1c427f of _0x126d34)'$graveyard'!=_0x1c427f['root']['rootName']&&_0x3bfed0['unwrap'](_0x1c427f);});});};_0x225971('insertion','accept'),_0x225971('insertion','discard'),_0x225971('deletion','accept'),_0x225971('deletion','discard'),_0x411814['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3d7fea=>{const _0x10736e=_0x3d7fea['map'](_0x107d22=>_0x107d22['getContainedElement']()),_0x3b7b01=_0x10736e[0x0]['findAncestor']('table'),{minRow:_0x5de5e9,maxRow:_0x44a0d6}=_0x510d43['_getCoordsForCells'](_0x10736e);_0x4db1af['removeRows'](_0x3b7b01,{'at':_0x5de5e9,'rows':_0x44a0d6-_0x5de5e9+0x1});}),_0x411814['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b065b=>{const _0x178506=_0x4b065b['map'](_0x75dc70=>_0x75dc70['getContainedElement']()),_0x2245ee=_0x178506[0x0]['findAncestor']('table'),{minColumn:_0x2919eb,maxColumn:_0x4c8ca3}=_0x510d43['_getCoordsForCells'](_0x178506);_0x4db1af['removeColumns'](_0x2245ee,{'at':_0x2919eb,'columns':_0x4c8ca3-_0x2919eb+0x1});});const _0x1bac17=(_0x31cca7,_0x3b3819)=>{if(!_0x3b3819['subType']||!_0x3b3819['subType']['startsWith']('tablePaste'))return;const _0x3018bd=_0x3b3819['attributes']['tablePasteChainId'],_0x3337ec=_0x411814['getSuggestions']()['filter'](_0x5ccb0b=>_0x5ccb0b['isInContent']&&_0x5ccb0b['attributes']&&_0x5ccb0b['attributes']['tablePasteChainId']==_0x3018bd);_0x3337ec['length']&&_0x3b3819['getAllAdjacentSuggestions']()['length']!=_0x3337ec['length']&&_0x3337ec['reduce']((_0x2a754e,_0x157a3a)=>(_0x2a754e['next']=_0x157a3a,_0x157a3a['previous']=_0x2a754e,_0x157a3a));};function _0x14004c(_0x29b9db,_0x27d186=!0x0){const {id:_0x423335}=_0x411814['_splitMarkerName'](_0x29b9db['markerName']),_0x64d8a1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x40b7d4=_0x411814['activeMarkers']['includes'](_0x29b9db['markerName']);return _0x40b7d4&&_0x64d8a1['push']('ck-suggestion-marker--active'),{'classes':_0x64d8a1,'attributes':{'data-suggestion':_0x423335},'priority':_0x40b7d4&&_0x27d186?0xbc2:0xbb8};}_0x411814['on']('suggestionLoaded',_0x1bac17,{'priority':'high'}),_0x411814['on']('suggestionUnloaded',_0x1bac17,{'priority':'high'}),_0x4a3289['model']['document']['registerPostFixer'](()=>{let _0x2a3f18=!0x1;const _0x36083f=Array['from'](_0x4a3289['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55223b,data:_0x2a81ac}of _0x36083f){const {group:_0x641adc,type:_0x5613d9,id:_0x3fc524}=_0x411814['_splitMarkerName'](_0x55223b);if('suggestion'!=_0x641adc||'deletion'!=_0x5613d9||_0x2a81ac['oldRange'])continue;if(!_0x411814['hasSuggestion'](_0x3fc524))continue;const _0x5d9f06=_0x411814['getSuggestion'](_0x3fc524)['getRanges'](),_0x2e2f22=_0x4a3289['plugins']['get']('Users')['me'];for(const _0x3a8934 of _0x411814['getSuggestions']()){if(!_0x3a8934['isInContent']||_0x3a8934['author']!=_0x2e2f22)continue;if('formatBlock'!=_0x3a8934['type']||'tablePasteCell'!=_0x3a8934['subType'])continue;if(_0x3a8934['getRanges']()['every'](_0x46c08d=>_0x5d9f06['some'](_0xd88b7b=>_0xd88b7b['containsRange'](_0x46c08d,!0x0)))){for(const _0x19afbc of _0x3a8934['getAllAdjacentSuggestions']())_0x19afbc['isInContent']&&(_0x19afbc['discard'](),_0x2a3f18=!0x0);}}}return _0x2a3f18;}),_0x4a3289['model']['document']['registerPostFixer'](_0x36c28e=>{const _0x2d8d92=_0x4a3289['commands']['get']('redo');if(!_0x2d8d92||!_0x2d8d92['_createdBatches']['has'](_0x36c28e['batch']))return!0x1;let _0x4020a5=!0x1;const _0x4712ae=_0x4a3289['plugins']['get']('Users')['me'],_0x54344a=_0x4a3289['model']['document']['differ']['getChanges'](),_0x16bd0d=Array['from'](_0x4a3289['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x50e1c9,data:_0x58c2f2})=>{const {group:_0x2d754f,subType:_0x106f04,authorId:_0x325281}=_0x411814['_splitMarkerName'](_0x50e1c9);return'suggestion'==_0x2d754f&&'tablePaste'==_0x106f04&&_0x325281==_0x4712ae['id']&&!_0x58c2f2['oldRange'];});for(const _0x38dba0 of _0x54344a){if('insert'!=_0x38dba0['type']||'tableCellSuggestion'!=_0x38dba0['name']||0x1!=_0x38dba0['length'])continue;const _0x4f0887=_0x36c28e['createRange'](_0x38dba0['position'],_0x38dba0['position']['getShiftedBy'](0x1));if(!_0x16bd0d['find'](({data:_0x420605})=>_0x420605['newRange']['isEqual'](_0x4f0887))){for(const {name:_0x163463,data:_0x874a08}of _0x16bd0d)if(_0x4f0887['containsRange'](_0x874a08['newRange'])){_0x36c28e['updateMarker'](_0x163463,{'range':_0x4f0887}),_0x4020a5=!0x0;break;}}}return _0x4020a5;}),_0x4a3289['model']['document']['registerPostFixer'](_0x254b1b=>{let _0x870307=!0x1;const _0x20b8ed=_0x4a3289['plugins']['get']('Users')['me'],_0xb371a8=_0x411814['getSuggestions']()['filter'](_0x4b1405=>_0x4b1405['isInContent']&&_0x4b1405['author']==_0x20b8ed),_0x5ae16f=new Set(),_0x2af91a=new Set();for(const _0x44b0fa of _0xb371a8)if('tablePaste'==_0x44b0fa['subType'])for(const _0x51a8c0 of _0x44b0fa['getMarkers']()){const _0x127efd=_0x51a8c0['getRange']()['getContainedElement']();if(_0x127efd){if(_0x127efd['is']('element','tableCellSuggestion')&&Pe(_0x127efd)){_0x44b0fa['removeMarker'](_0x51a8c0['name']),_0x5ae16f['add'](_0x127efd),_0x870307=!0x0;const _0xe725d=_0x127efd['nextSibling'],_0x4689f9=_0x127efd['previousSibling'],_0x22020a=_0xe725d&&_0xe725d['is']('element','tableCellSuggestion'),_0x28fdcc=_0x4689f9&&_0x4689f9['is']('element','tableCellSuggestion');_0x22020a&&!_0x5ae16f['has'](_0xe725d)&&_0x2af91a['add'](_0xe725d),_0x28fdcc&&!_0x5ae16f['has'](_0x4689f9)&&_0x2af91a['add'](_0x4689f9);}else _0x127efd['is']('element','paragraph')&&_0x127efd['isEmpty']&&(_0x44b0fa['removeMarker'](_0x51a8c0['name']),_0x870307=!0x0);}}else{if('tablePasteCell'==_0x44b0fa['subType']){if(!_0x44b0fa['attributes']||!_0x44b0fa['attributes']['tablePasteChainId'])continue;const _0xa90c34=_0x44b0fa['attributes']['markerAttributes'];if(_0xa90c34&&Object['keys'](_0xa90c34)['length'])continue;const _0x203574=_0x44b0fa['attributes']['tablePasteChainId'];let _0x54acaa=!0x0,_0x5c11b2=!0x0;for(const _0x26c599 of _0xb371a8)if(_0x26c599['subType']&&_0x26c599['subType']['startsWith']('tablePaste')){if(!_0x26c599['attributes']['tablePasteChainId']){_0x5c11b2=!0x1;break;}if(_0x26c599['id']!=_0x44b0fa['id']&&_0x26c599['attributes']['tablePasteChainId']==_0x203574){_0x54acaa=!0x1;break;}}_0x5c11b2&&_0x54acaa&&(_0x44b0fa['removeMarkers'](),_0x870307=!0x0);}}for(const _0x267aa3 of _0x5ae16f)_0x254b1b['remove'](_0x267aa3);for(const _0x3b4b3f of _0x2af91a)_0x254b1b['unwrap'](_0x3b4b3f);return _0x870307;}),_0x4a3289['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2f4c5a,_0x2d4736)=>_0x14004c(_0x2f4c5a),'converterPriority':'high'}),_0x4a3289['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5c1153,_0x16085f)=>_0x16085f['options']['showSuggestionHighlights']?_0x14004c(_0x5c1153,!0x1):null,'converterPriority':'high'});const _0x36beb2=_0x4a3289['editing']['view'];this['listenTo'](_0x36beb2['document'],'clipboardOutput',(_0x2a8c64,_0x3af809)=>{const _0xc39251=[];for(const _0x12c440 of _0x36beb2['createRangeIn'](_0x3af809['content'])['getItems']())_0x12c440['is']('element','suggestion-td')&&_0xc39251['push'](_0x12c440);_0x36beb2['change'](_0x1c4650=>{for(const _0x1a31d0 of _0xc39251)_0x1c4650['move'](_0x1c4650['createRangeIn'](_0x1a31d0),_0x1c4650['createPositionBefore'](_0x1a31d0)),_0x1c4650['remove'](_0x1a31d0);});});}}function Pe(_0x3b320e){if(_0x3b320e['isEmpty'])return!0x0;const _0x451eb7=_0x3b320e['getChild'](0x0);return _0x451eb7['is']('element','paragraph')&&_0x451eb7['isEmpty'];}function he(_0xa0316f,_0x2dbe02={},_0x2dce7c){for(const {isAnchor:_0x56f0ff,cellHeight:_0x276864,cellWidth:_0x2c7d3e}of _0x2dce7c['createTableWalker'](_0xa0316f,{'includeAllSlots':!0x0,..._0x2dbe02}))if(!_0x56f0ff||0x1!=_0x276864||0x1!=_0x2c7d3e)return!0x1;return!0x0;}class vt extends _0x5a6596{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3d5663=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d5663['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3d5663['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3d5663['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d5663['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3d5663['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3d5663['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x40c9e7,_0x1195c9){const _0x302760=this['editor']['plugins']['get']('TrackChangesEditing'),_0x171106=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xfe39ab=_0x1195c9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4cc1cc=_0x171106['getColumnGroupElement'](_0xfe39ab);let _0x4f057f=_0x4cc1cc?_0x171106['getTableColumnsWidths'](_0x4cc1cc):null,_0x3b37c3=_0xfe39ab['getAttribute']('tableWidth')||null;const _0x43f4e8=_0x1195c9['tableWidth']||_0x3b37c3,_0x54afc1=_0x1195c9['columnWidths']||_0x4f057f,_0x3f9cbc=this['editor']['plugins']['get']('Users')['me'];for(const _0x199cab of _0x302760['getSuggestions']()){const _0x28af8e=_0x199cab['getContainedElement']();if('resizeTable'===_0x199cab['subType']&&_0x28af8e===_0xfe39ab){_0x199cab['author']!==_0x3f9cbc&&_0x199cab['discard']();const _0x52635a=_0x199cab['data']['commandParams'];_0x3b37c3=_0x52635a[0x0]['tableWidth'],_0x4f057f=_0x52635a[0x0]['columnWidths'];break;}}_0x40c9e7({'table':_0xfe39ab,'tableWidth':_0x43f4e8,'columnWidths':_0x54afc1}),_0x302760['markBlockFormat'](_0xfe39ab,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3b37c3,'columnWidths':_0x4f057f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1b6617){if('formatBlock'!=_0x1b6617['type']&&'formatInline'!=_0x1b6617['type'])return;const {data:_0x373c4a}=_0x1b6617;if(_0x373c4a&&'resizeTable'===_0x373c4a['formatGroupId']){const _0x1493f3='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1493f3)};}}}class _t extends _0x5a6596{['afterInit'](){const _0x2f02aa=this['editor'];_0x2f02aa['plugins']['has']('Template')&&_0x2f02aa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x5a6596{['afterInit'](){const _0x51302c=this['editor'];if(!_0x51302c['commands']['get']('insertTableOfContents'))return;_0x51302c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x415c93=_0x51302c['plugins']['get']('TrackChangesEditing'),_0x4a2f1=_0x51302c['locale'];_0x415c93['descriptionFactory']['registerElementLabel']('tableOfContents',_0x8797f0=>o(_0x4a2f1,'ELEMENT_TABLE_OF_CONTENTS',_0x8797f0));}}class Dt extends _0x5a6596{['afterInit'](){const _0x100405=this['editor'];if(!_0x100405['plugins']['has']('Title'))return;const _0x30191e=_0x100405['plugins']['get']('TrackChangesEditing');_0x30191e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x100405['locale'],'ELEMENT_TITLE')),_0x100405['model']['document']['registerPostFixer'](_0x7d7835=>{let _0x4c6a3b=!0x1;const _0x1e2ca6=Array['from'](_0x100405['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3aafeb,data:_0x27bfd4}of _0x1e2ca6){const {group:_0x485644}=_0x30191e['_splitMarkerName'](_0x3aafeb);if('suggestion'!==_0x485644||!_0x27bfd4['newRange'])continue;const _0x46b02a=_0x27bfd4['newRange'],_0x3365a5=_0x46b02a['end']['nodeBefore'];if(!_0x3365a5||!_0x3365a5['is']('element','title-content'))continue;if(!_0x46b02a['start']['isTouching'](_0x46b02a['end']))continue;const _0x41fc98=_0x100405['model']['schema']['getNearestSelectionRange'](_0x46b02a['end'],'forward');if(_0x41fc98&&_0x41fc98['isCollapsed']){const _0x578dad=_0x7d7835['createRange'](_0x46b02a['start'],_0x41fc98['start']);_0x578dad['isEqual'](_0x46b02a)||(_0x7d7835['updateMarker'](_0x3aafeb,{'range':_0x578dad}),_0x4c6a3b=!0x0);}_0x4c6a3b||(_0x7d7835['removeMarker'](_0x3aafeb),_0x4c6a3b=!0x0);}return _0x4c6a3b;});}}class Nt extends _0x5a6596{['afterInit'](){const _0x41f277=this['editor'],_0x4728e5=_0x41f277['plugins']['get']('TrackChangesEditing');_0x41f277['plugins']['has']('UndoEditing')&&(_0x4728e5['enableCommand']('undo'),_0x4728e5['enableCommand']('redo'));}}class Mt extends _0x5a6596{static get['requires'](){return[jt];}['afterInit'](){const _0x33701c=this['editor'];if(!_0x33701c['plugins']['has']('TableCaptionEditing'))return;_0x33701c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5a6596{['tableProperties'];['tableCellProperties'];constructor(_0x64d30b){super(_0x64d30b),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 _0x4af1e0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa34280 of this['tableProperties'])_0x4af1e0['enableCommand'](_0xa34280,(_0x5ac2a3,_0x594b40)=>{const _0x1a1774=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa34280,[_0x1a1774],this['tableProperties'],'tableProperties',_0x5ac2a3,_0x594b40);});_0x4af1e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4af1e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4af1e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4bfda2,_0x26dc15)=>this['handleDiscardAction'](this['tableProperties'],_0x4bfda2,_0x26dc15)),_0x4af1e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5e7c38 of this['tableCellProperties'])_0x4af1e0['enableCommand'](_0x5e7c38,(_0x4efd2c,_0x23b6ae)=>{const _0x2ef183=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5e7c38,_0x2ef183,this['tableCellProperties'],'tableCellProperties',_0x4efd2c,_0x23b6ae);});_0x4af1e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4af1e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4af1e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x26d311,_0x95baa5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x26d311,_0x95baa5)),_0x4af1e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4af1e0['descriptionFactory']['registerDescriptionCallback'](_0x178f6f=>this['handleSuggestionDescription'](_0x178f6f));}['_handlePropertyChange'](_0x428be6,_0x1a3187,_0x3c2955,_0x5d2a59,_0x1a5f6b,_0x24f13d){const _0x47d3c0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x24f13d['batch'],()=>{for(const _0x5d32dd of _0x1a3187){if(this['_getSuggestion'](_0x5d32dd,_0x5d2a59))_0x1a5f6b(_0x24f13d);else{const _0x432fa1={};for(const _0x8db795 of _0x3c2955){const _0x4db6d1=_0x5d32dd['getAttribute'](_0x8db795);void 0x0!==_0x4db6d1&&(_0x432fa1[_0x8db795]=_0x4db6d1);}_0x1a5f6b(_0x24f13d),_0x47d3c0['markBlockFormat'](_0x5d32dd,{'commandParams':[_0x432fa1]},[],_0x5d2a59);}}});}['handleDiscardAction'](_0x1123a3,_0x129289,_0x3653ec){const _0x37b660=_0x129289[0x0]['start']['nodeAfter'],_0xc88efd=_0x3653ec['commandParams'][0x0];this['editor']['model']['change'](_0x5121c0=>{for(const _0x496b83 of _0x1123a3)void 0x0!==_0xc88efd[_0x496b83]?_0x5121c0['setAttribute'](_0x496b83,_0xc88efd[_0x496b83],_0x37b660):_0x5121c0['removeAttribute'](_0x496b83,_0x37b660);});}['handleSuggestionDescription'](_0x53c870){if(_0x53c870['data'])switch(_0x53c870['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'](_0x2e4c86,_0x5987d2){const _0xf6cc6b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1d843a of _0xf6cc6b['getSuggestions']({'skipNotAttached':!0x0})){const _0x5f315b=_0x1d843a['getContainedElement']();if(_0x1d843a['subType']===_0x5987d2&&_0x5f315b===_0x2e4c86)return _0x1d843a;}return null;}}const m='$elementName';class p extends _0x5a6596{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5a5bef,_0x1a8c28,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x2e1a67){function _0x7357f9(_0x2f6d43){return _0x2f6d43['map'](_0x5492a1=>String['fromCharCode'](_0x5492a1))['join']('');}super(_0x2e1a67),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x211a6f,_0x265912,_0x27ef7b,_0x57d4bc)=>{this['_model']['change'](()=>{for(const _0x3172ee of[..._0x57d4bc,..._0x27ef7b])this['_model']['markers']['has'](_0x3172ee)&&_0x2e1a67['editing']['reconvertMarker'](_0x3172ee);});}),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']=_0x2e1a67['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(),_0x2e1a67['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2e1a67['config']['get']('trackChanges.trackFormatChanges'),_0x2e1a67['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2e1a67['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x2e1a67,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x7357f9([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x7357f9([0x34,0x30,0x34,0x38,0x31,0x30,0x32,0x36]);}['init'](){const _0x231064=this['editor'],_0x5cf852=(_0x50f51d,_0x15a309)=>{if('attribute'!=_0x50f51d)return'ck-suggestion-marker-'+_0x50f51d;const _0x418054=_0x15a309['split']('|')[0x0];return this['_isBlockAttribute'](_0x418054)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x231064['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xf0ee40=>{const {id:_0x3845a2,type:_0x104fe5,subType:_0x497acb}=this['_splitMarkerName'](_0xf0ee40['markerName']),_0x146a37=['ck-suggestion-marker',_0x5cf852(_0x104fe5,_0x497acb)];let _0x280375=0xbb8;return this['activeMarkers']['includes'](_0xf0ee40['markerName'])&&(_0x146a37['push']('ck-suggestion-marker--active'),_0x280375=0xbc2),'deletion'==_0x104fe5&&(_0x280375+=0x5),{'classes':_0x146a37,'attributes':{'data-suggestion':_0x3845a2},'priority':_0x280375};}}),_0x231064['conversion']['for']('dataDowncast')['add'](_0x47b6a8=>{_0x47b6a8['on']('addMarker:suggestion',(_0x47cccf,_0x2da9c5,_0xde506)=>{if(!_0xde506['options']['showSuggestionHighlights'])return;const _0x45d98e=_0x2da9c5['item'];if(!_0x45d98e)return;const _0x5a353f=_0xde506['mapper']['toViewElement'](_0x45d98e);_0x231064['model']['schema']['isObject'](_0x45d98e)&&_0x5a353f&&!_0x5a353f['getCustomProperty']('widget')&&_0x5a353f['is']('containerElement')&&_0x447123(_0x5a353f,_0xde506['writer']);},{'priority':'high'});}),_0x231064['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x24f671,_0x31b5e9)=>{if(!_0x31b5e9['options']['showSuggestionHighlights'])return null;const {type:_0x4c1784,subType:_0x333aa7}=this['_splitMarkerName'](_0x24f671['markerName']);return{'classes':['ck-suggestion-marker',_0x5cf852(_0x4c1784,_0x333aa7)],'priority':0xbb8};}});const _0x33d596=({showActiveMarkers:_0x3197da=!0x0,isAttributeSuggestion:_0x16ab65=!0x1}={})=>(_0x1c617a,_0x289921,_0x5f585f)=>{if(!_0x289921['item'])return;const {id:_0x2d8270}=this['_splitMarkerName'](_0x289921['markerName']);if(_0x16ab65){const _0x2c6f43=this['_suggestions']['get'](_0x2d8270),_0x180877=this['_getAttributeKey'](_0x2c6f43);if(!this['_isBlockAttribute'](_0x180877))return;}if(_0x289921['item']['is']('selection'))return void _0x5f585f['consumable']['consume'](_0x289921['item'],_0x1c617a['name']);const _0x4f94e6=_0x5f585f['mapper']['toViewElement'](_0x289921['item']);if(_0x289921['item']['is']('element')&&_0x231064['model']['schema']['isBlock'](_0x289921['item'])&&!_0x4f94e6['getCustomProperty']('addHighlight')){_0x5f585f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f94e6),_0x5f585f['writer']['setAttribute']('data-suggestion',_0x2d8270,_0x4f94e6),_0x5f585f['mapper']['bindElementToMarker'](_0x4f94e6,_0x289921['markerName']),_0x3197da&&(this['activeMarkers']['includes'](_0x289921['markerName'])?_0x5f585f['writer']['addClass']('ck-suggestion-marker--active',_0x4f94e6):_0x5f585f['writer']['removeClass']('ck-suggestion-marker--active',_0x4f94e6));for(const _0x92152 of _0x231064['model']['createRangeIn'](_0x289921['item'])['getItems']())_0x5f585f['consumable']['consume'](_0x92152,_0x1c617a['name']);_0x5f585f['consumable']['consume'](_0x289921['item'],_0x1c617a['name']);}};_0x231064['conversion']['for']('dataDowncast')['add'](_0x9cb2e4=>{_0x9cb2e4['on']('addMarker:suggestion:formatBlock',(_0x51d9a8,_0x3245b0,_0x1b0b41)=>{_0x1b0b41['options']['showSuggestionHighlights']&&_0x33d596({'showActiveMarkers':!0x1})(_0x51d9a8,_0x3245b0,_0x1b0b41);},{'priority':'highest'});}),_0x231064['conversion']['for']('dataDowncast')['add'](_0x18005e=>{_0x18005e['on']('addMarker:suggestion:attribute',(_0x37ee69,_0x2e744c,_0x1d3469)=>{_0x1d3469['options']['showSuggestionHighlights']&&_0x33d596({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x37ee69,_0x2e744c,_0x1d3469);},{'priority':'highest'});}),_0x231064['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3ddaa5,_0xb30e93)=>_0xb30e93['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3ddaa5['substr'](0xb)}}),_0x231064['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x44c973,{writer:_0x4bef37})=>{let _0x5bf5fe='suggestion:'+_0x44c973['getAttribute']('suggestion-type')+':'+_0x44c973['getAttribute']('id');return _0x44c973['getAttribute']('marker-count')&&(_0x5bf5fe+=':'+_0x44c973['getAttribute']('marker-count')),_0x4bef37['createElement']('$marker',{'data-name':_0x5bf5fe});}}),_0x231064['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x231064['conversion']['for']('editingDowncast')['add'](_0xd77693=>{_0xd77693['on']('addMarker:suggestion:formatBlock',_0x33d596(),{'priority':'high'});}),_0x231064['conversion']['for']('editingDowncast')['add'](_0x91b561=>{_0x91b561['on']('addMarker:suggestion:attribute',_0x33d596({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x231064['conversion']['for']('editingDowncast')['add'](_0x40b3d3=>{_0x40b3d3['on']('removeMarker:suggestion:formatBlock',(_0x1f11d4,_0x562b47,_0x473e)=>{const _0x293816=_0x473e['mapper']['markerNameToElements'](_0x562b47['markerName']);if(_0x293816){for(const _0x9b852a of _0x293816)_0x9b852a['getCustomProperty']('addHighlight')||(_0x473e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9b852a),_0x473e['writer']['removeAttribute']('data-suggestion',_0x9b852a),_0x473e['mapper']['unbindElementFromMarkerName'](_0x9b852a,_0x562b47['markerName']));}},{'priority':'high'});}),_0x231064['conversion']['for']('editingDowncast')['add'](_0x5afe4b=>{_0x5afe4b['on']('removeMarker:suggestion:attribute',(_0x391771,_0x2fd78e,_0x41f39f)=>{const _0xd14433=_0x41f39f['mapper']['markerNameToElements'](_0x2fd78e['markerName']);if(!_0xd14433)return;const {id:_0xc6d107}=this['_splitMarkerName'](_0x2fd78e['markerName']),_0x31c6f9=this['_suggestions']['get'](_0xc6d107),_0x102d36=this['_getAttributeKey'](_0x31c6f9);if(this['_isBlockAttribute'](_0x102d36)){for(const _0x3edf2f of _0xd14433)_0x3edf2f['getCustomProperty']('addHighlight')||(_0x41f39f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3edf2f),_0x41f39f['writer']['removeAttribute']('data-suggestion',_0x3edf2f),_0x41f39f['mapper']['unbindElementFromMarkerName'](_0x3edf2f,_0x2fd78e['markerName']));}},{'priority':'high'});}),_0x231064['model']['document']['registerPostFixer'](_0x304ec5=>{let _0x4df381=!0x1;const _0x48dffc=Array['from'](_0x231064['model']['document']['differ']['getChangedMarkers']()),_0xbe357b=new Set();for(const {name:_0x127764,data:_0x32f014}of _0x48dffc){const {group:_0x2efcc7,type:_0x3f7b5d,subType:_0xd6b750,id:_0x358062}=this['_splitMarkerName'](_0x127764);if('suggestion'!==_0x2efcc7)continue;const _0x13a95d=this['_suggestions']['get'](_0x358062);if(null!=_0x32f014['newRange']){'formatInline'==_0x3f7b5d&&(_0x4df381=_0x4df381||Et(_0x32f014['newRange'],_0x127764,_0x304ec5,_0x231064['model']['schema']));const _0xf268f1='attribute'==_0x3f7b5d&&this['_isBlockAttribute'](_0xd6b750['split']('|')[0x0]);if(_0x32f014['newRange']['isCollapsed']||'$graveyard'==_0x32f014['newRange']['root']['rootName']||'formatBlock'==_0x3f7b5d&&!Ut(_0x32f014['newRange'])||_0xf268f1&&!Ut(_0x32f014['newRange'])||'deletion'==_0x3f7b5d&&!(!Tt(_0x39f6b2=_0x32f014['newRange'])&&!function(_0x533f93){return _0x533f93['start']['parent']==_0x533f93['end']['nodeBefore']&&_0x533f93['start']['isAtEnd'];}(_0x39f6b2)))_0x304ec5['removeMarker'](_0x127764),_0x4df381=!0x0;else{if(!_0x13a95d||!_0x13a95d['isInContent'])continue;_0xbe357b['add'](_0x13a95d);}}}var _0x39f6b2;return _0xbe357b['size']>0x0&&(_0x4df381=!!this['_joinWithAdjacentSuggestions'](_0xbe357b)||_0x4df381),_0x4df381;}),_0x231064['model']['document']['registerPostFixer'](_0x280cf4=>{let _0xe9d24b=!0x1;for(const _0x2d163f of _0x231064['model']['document']['differ']['getChanges']())if('insert'==_0x2d163f['type'])for(const _0x410282 of this['_suggestions']['values']()){if(_0x410282['isMultiRange']||!_0x410282['isInContent'])continue;const _0x250a5c='formatBlock'==_0x410282['type'],_0x3d564=this['_getAttributeKey'](_0x410282),_0x57e76b=_0x3d564&&this['_isBlockAttribute'](_0x3d564);if(!_0x250a5c&&!_0x57e76b)continue;const _0x348bb4=_0x410282['getFirstRange']();if(_0x348bb4['start']['parent']!=_0x348bb4['end']['parent']&&!_0x348bb4['end']['isAtEnd']){const _0x573620=_0x231064['model']['createPositionAt'](_0x348bb4['start']['nodeAfter'],'end'),_0x4d79f9=_0x231064['model']['createRange'](_0x348bb4['start'],_0x573620);_0x280cf4['updateMarker'](_0x410282['getFirstMarker'](),{'range':_0x4d79f9}),_0xe9d24b=!0x0;}}return _0xe9d24b;}),_0x231064['model']['document']['registerPostFixer'](_0x27877e=>this['_processAttributeChanges'](_0x27877e)),_0x231064['model']['document']['registerPostFixer'](_0x30a3a6=>!_0x30a3a6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x30a3a6)),_0x231064['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x231064['model']['document']['on']('change:data',(_0x5beb2e,_0x51f064)=>{if(!_0x51f064['isLocal']||_0x51f064['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1709b8=_0x231064['model']['document']['differ']['getChanges']();if(0x0==_0x1709b8['length'])return;const _0xd8f0e1=[],_0x94926d=_0x1709b8['filter'](_0x2d4918=>'attribute'==_0x2d4918['type']),_0x2461b4=_0x1709b8['filter'](_0x14216f=>'insert'==_0x14216f['type']&&'$text'!=_0x14216f['name']),_0x4a7a0c=_0x1709b8['filter'](_0x5be686=>'remove'==_0x5be686['type']&&'$text'!=_0x5be686['name']);for(const _0x18f9d1 of _0x94926d)this['_isRegisteredAttribute'](_0x18f9d1['attributeKey'])&&_0xd8f0e1['push']({'key':_0x18f9d1['attributeKey'],'newValue':_0x18f9d1['attributeNewValue'],'oldValue':_0x18f9d1['attributeOldValue'],'range':Ot(_0x18f9d1['range'],_0x231064['model'])});for(const _0x3e34e5 of _0x2461b4){const _0x287262=_0x4a7a0c['find'](_0x476746=>_0x476746['_element']===_0x3e34e5['_element']);if(_0x287262){const _0x2e4c4a=Ft(_0x3e34e5['position']['nodeAfter'],_0x231064['model']);_0x287262['name']!==_0x3e34e5['name']&&_0xd8f0e1['push']({'key':m,'newValue':_0x3e34e5['name'],'oldValue':_0x287262['name'],'range':_0x2e4c4a});for(const [_0x41d4ef,_0x1e4e65]of _0x287262['attributes']){if(!this['_isRegisteredAttribute'](_0x41d4ef))continue;const _0x100d54=_0x3e34e5['attributes']['get'](_0x41d4ef);_0x1e4e65!==_0x100d54&&_0xd8f0e1['push']({'key':_0x41d4ef,'newValue':_0x100d54,'oldValue':_0x1e4e65,'range':_0x2e4c4a});}for(const [_0x1e1fdd,_0x58e38c]of _0x3e34e5['attributes'])this['_isRegisteredAttribute'](_0x1e1fdd)&&(_0x287262['attributes']['has'](_0x1e1fdd)||_0xd8f0e1['push']({'key':_0x1e1fdd,'newValue':_0x58e38c,'oldValue':null,'range':_0x2e4c4a}));}}0x0!=_0xd8f0e1['length']&&_0x231064['model']['enqueueChange'](_0x51f064,_0x2a0819=>{const _0x2cadd0=_0x3af419();for(const {range:_0x71caff,key:_0x5428a1,oldValue:_0x2dda13,newValue:_0x1c4479}of _0xd8f0e1)this['markAttributeChange'](_0x71caff,_0x5428a1,_0x2dda13,_0x1c4479,{'groupId':_0x2cadd0});this['_reduceExistingSuggestions'](_0x2a0819,_0xd8f0e1);});},{'priority':'lowest'}),_0x231064['model']['markers']['on']('update:suggestion',(_0x3026d4,_0x269abb,_0x58030d)=>{if(null==_0x58030d){const {id:_0x2b55a8}=this['_splitMarkerName'](_0x269abb['name']),_0x474049=this['_suggestions']['get'](_0x2b55a8);_0x474049&&_0x474049['addMarkerName'](_0x269abb['name']);}}),_0x231064['model']['document']['on']('change:data',()=>{const _0x1a7f6e=Array['from'](_0x231064['model']['document']['differ']['getChangedMarkers']())['filter'](_0x501e43=>'suggestion'===this['_splitMarkerName'](_0x501e43['name'])['group']);if(0x0===_0x1a7f6e['length'])return;_0x1a7f6e['sort']((_0x5ea56c,_0x4c0c48)=>{const _0x2f7bf2=_0x5ea56c['data']['oldRange'],_0x56e9c0=_0x4c0c48['data']['oldRange'];return null===_0x2f7bf2&&null===_0x56e9c0?0x0:null===_0x2f7bf2&&null!==_0x56e9c0?-0x1:null!==_0x2f7bf2&&null===_0x56e9c0?0x1:_0x2f7bf2['start']['isBefore'](_0x56e9c0['start'])?-0x1:0x1;});const _0x55fe13=new Set(),_0x784ad8=new Set();for(const {name:_0x2b0ef1,data:_0x41fde8}of _0x1a7f6e){const {id:_0xc9b0e8}=this['_splitMarkerName'](_0x2b0ef1);if(null===_0x41fde8['oldRange']){const _0x5cc6a6=this['_handleNewSuggestionMarker'](_0x2b0ef1);_0x784ad8['add'](_0x5cc6a6);}else{const _0x3a9366=this['_suggestions']['get'](_0xc9b0e8);null!==_0x41fde8['newRange']||_0x3a9366['isInContent']?(_0x55fe13['add'](_0x3a9366['head']),_0x784ad8['add'](_0x3a9366)):this['_removeSuggestion'](_0x3a9366);}}_0x784ad8['size']>0x0&&this['_refreshSuggestionsChain'](_0x784ad8);for(const _0xd652d3 of _0x55fe13)this['fire']('suggestionChanged',_0xd652d3);}),_0x231064['model']['on']('applyOperation',(_0x2ffe15,_0xf4d661)=>{const _0xadfa8b=_0xf4d661[0x0];if(!this['_suggestions']['size'])return;if(!_0xadfa8b['isDocumentOperation'])return;if(_0xadfa8b['batch']['isUndo']||!_0xadfa8b['batch']['isLocal'])return;let _0x3e992f,_0x1f0d3e;switch(_0xadfa8b['type']){case'insert':_0x3e992f=_0x231064['model']['createPositionAt'](_0xadfa8b['position']),_0x1f0d3e=_0x3e992f['getShiftedBy'](_0xadfa8b['howMany']);break;case'split':_0x3e992f=_0x231064['model']['createPositionAt'](_0xadfa8b['splitPosition']),_0x1f0d3e=_0x231064['model']['createPositionAt'](_0xadfa8b['moveTargetPosition']);break;case'move':_0x3e992f=_0x231064['model']['createPositionAt'](_0xadfa8b['targetPosition']),_0x1f0d3e=_0x3e992f['getShiftedBy'](_0xadfa8b['howMany']);break;default:return;}const _0x16f930=_0x231064['model']['createRange'](_0x3e992f,_0x1f0d3e);_0x231064['model']['change'](()=>{for(const {suggestion:_0x346d5a,meta:_0x5b486b}of this['_findSuggestions'](_0x16f930)){if(_0x346d5a['isMultiRange'])continue;if('formatInline'==_0x346d5a['type'])continue;const _0x2172a1=this['_getAttributeKey'](_0x346d5a);if(_0x2172a1&&this['_isBlockAttribute'](_0x2172a1)&&'split'!=_0xadfa8b['type'])continue;const _0x50cde5=_0x346d5a['data']&&_0x346d5a['data']['multipleBlocks'];('formatBlock'!=_0x346d5a['type']||'split'==_0xadfa8b['type']&&!_0x50cde5)&&(_0x5b486b['containsRangeInObject']||'insertion'==_0x346d5a['type']&&_0x5b486b['isOwn']||_0x346d5a['getFirstRange']()['containsRange'](_0x16f930)&&this['_breakSuggestionMarker'](_0x346d5a,_0x3e992f,_0x1f0d3e));}});},{'priority':'lowest'}),_0x231064['model']['on']('deleteContent',(_0xb9da9e,_0x3d4d99)=>{const _0x34f6ea=_0x3d4d99[0x0],_0x225b23=_0x3d4d99[0x1];if(_0x225b23&&_0x225b23['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x34f6ea['isCollapsed'])return;const _0x3b40f6=_0x231064['model']['schema'],{start:_0x26c518,end:_0x3cfa0b}=_0x34f6ea['getFirstRange'](),_0x201dbe=_0x26c518['nodeAfter']&&_0x3b40f6['isLimit'](_0x26c518['nodeAfter'])?null:_0x3b40f6['getNearestSelectionRange'](_0x26c518,'forward'),_0x46e550=_0x3cfa0b['nodeBefore']&&_0x3b40f6['isLimit'](_0x3cfa0b['nodeBefore'])?null:_0x3b40f6['getNearestSelectionRange'](_0x3cfa0b,'backward'),_0x5bc539=_0x231064['model']['createRange'](_0x201dbe?_0x201dbe['start']:_0x26c518,_0x46e550?_0x46e550['end']:_0x3cfa0b);_0x231064['model']['change'](_0x488d89=>{this['markDeletion'](_0x5bc539);const _0x9957b3=_0x231064['model']['schema']['getNearestSelectionRange'](_0x5bc539['start']);_0x34f6ea['is']('documentSelection')?_0x488d89['setSelection'](_0x9957b3):_0x34f6ea['setTo'](_0x9957b3);}),_0xb9da9e['stop']();},{'priority':_0xb7e399['normal']+0xa}),_0x231064['model']['on']('insertContent',(_0x3b6772,_0x2fd705)=>{const _0x1330a3=_0x2fd705[_0x2fd705['length']-0x1];_0x1330a3&&_0x1330a3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x231064['model']['change'](()=>{let _0x4be6f7=_0x231064['model']['insertContent'](_0x2fd705[0x0],_0x2fd705[0x1],_0x2fd705[0x2],{'forceDefaultExecution':!0x0});if(!_0x4be6f7)return;_0x3b6772['return']=_0x4be6f7['clone']();const _0x221df6=_0x4be6f7['end']['nodeBefore'],_0x5100c7=_0x231064['model']['schema'];_0x221df6&&_0x5100c7['isBlock'](_0x221df6)&&!_0x5100c7['isObject'](_0x221df6)&&(_0x4be6f7=_0x231064['model']['createRange'](_0x4be6f7['start'],_0x231064['model']['createPositionAt'](_0x221df6,'end'))),this['markInsertion'](_0x4be6f7);}),_0x3b6772['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1eed39=new $(_0x231064,this['_suggestions']);_0x231064['commands']['add']('acceptSuggestion',_0x1eed39),this['enableCommand']('acceptSuggestion');const _0x266d67=new B(_0x231064,this['_suggestions']);_0x231064['commands']['add']('discardSuggestion',_0x266d67),this['enableCommand']('discardSuggestion'),_0x231064['commands']['add']('acceptAllSuggestions',new x(_0x231064,_0x1eed39,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x231064['commands']['add']('discardAllSuggestions',new x(_0x231064,_0x266d67,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x231064['commands']['add']('acceptSelectedSuggestions',new R(_0x231064,_0x1eed39,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x231064['commands']['add']('discardSelectedSuggestions',new R(_0x231064,_0x266d67,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x15a0d8=_0x231064['plugins']['get']('CommentsRepository');this['listenTo'](_0x15a0d8,'addComment',(_0x4a6e1b,{threadId:_0x17aa33})=>{const _0x2c336c=this['_suggestions']['get'](_0x17aa33);_0x2c336c&&_0x2c336c['commentThread']&&0x1===_0x2c336c['commentThread']['length']&&this['_updateSuggestionData'](_0x17aa33,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x15a0d8,'removeComment',(_0x36897a,{threadId:_0xc3dd8c})=>{const _0x247d3c=this['_suggestions']['get'](_0xc3dd8c);_0x247d3c&&_0x247d3c['commentThread']&&!_0x247d3c['commentThread']['length']&&this['_updateSuggestionData'](_0xc3dd8c,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3e8e0e){if(this['_adapter'])throw new _0x32dc20('track-changes-adapter-already-set',this);this['_adapter']=_0x3e8e0e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x167557=!0x1,toJSON:_0x117a67=!0x1}={}){const _0x1f82dd=[];for(const _0x37c660 of this['_suggestions']['values']())_0x167557&&!_0x37c660['isInContent']||_0x1f82dd['push'](_0x37c660);return _0x117a67?_0x1f82dd['map'](_0x4b7b5b=>_0x4b7b5b['toJSON']()):_0x1f82dd;}['getSuggestion'](_0x3f2924){const _0x255226=this['_suggestions']['get'](_0x3f2924);if(!_0x255226)throw new _0x32dc20('track-changes-suggestion-not-found',this);return _0x255226;}['hasSuggestion'](_0x22b689){return this['_suggestions']['has'](_0x22b689);}['addSuggestionData'](_0x589e74){const {authorId:_0x1ed6f7,id:_0x1552c3,attributes:_0x106170}=_0x589e74,[_0x1b9131,_0x3940ed]=_0x589e74['type']['split'](':'),_0x2dbb17=this['_suggestions']['get'](_0x1552c3)||this['_createSuggestion'](_0x1b9131,_0x3940ed,_0x1552c3,_0x1ed6f7,_0x106170);if(this['_addThreadToSuggestion'](_0x2dbb17),this['_checkSuggestionCorrectness'](_0x2dbb17,_0x1b9131,_0x3940ed||null,_0x1ed6f7),_0x2dbb17['createdAt']=_0x589e74['createdAt'],_0x2dbb17['_isDataLoaded']=!0x0,_0x106170&&_0x106170['@external']){const _0x3a2f5b=_0x106170['@external'],_0x100fbe=this['_getExternalAuthor'](_0x3a2f5b['authorName']);_0x2dbb17['authoredAt']=_0x3a2f5b['createdAt'],_0x2dbb17['author']=_0x100fbe,_0x2dbb17['isExternal']=!0x0;}else _0x2dbb17['authoredAt']=_0x589e74['createdAt'];switch(_0x589e74['data']&&(_0x2dbb17['data']=_0x589e74['data']),_0x589e74['attributes']&&(_0x2dbb17['attributes']=_0x589e74['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2dbb17['_saved']=!0x0),this['_suggestionState']['get'](_0x2dbb17)){case'notReady':this['_suggestionState']['set'](_0x2dbb17,'dataReady');break;case'markerReady':_0x2dbb17['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2dbb17])),this['_refreshSuggestionsChain'](new Set([_0x2dbb17])),this['_suggestionState']['set'](_0x2dbb17,'ready'),this['fire']('suggestionLoaded',_0x2dbb17)):this['_suggestionState']['set'](_0x2dbb17,'removed');}return _0x2dbb17;}['acceptSuggestion'](_0x45a05a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x496685 of _0x45a05a['getAllAdjacentSuggestions']())_0x496685['accept']();});});}['discardSuggestion'](_0x3efb82){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e506d of _0x3efb82['getAllAdjacentSuggestions']())_0x4e506d['discard']();});});}['enableCommand'](_0x17fed8,_0x37d1db){const _0x2d9a7a=this['editor']['commands']['get'](_0x17fed8);if(!_0x2d9a7a)throw new _0x32dc20('track-changes-command-not-found',this,{'commandName':_0x17fed8});if(this['_enabledCommands']['has'](_0x2d9a7a))throw new _0x32dc20('track-changes-enable-command-twice',this,{'commandName':_0x17fed8});this['_enabledCommands']['add'](_0x2d9a7a),_0x37d1db&&_0x2d9a7a['on']('execute',(_0x5d2d46,_0x148820)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x148820['length']>0x0&&_0x148820[_0x148820['length']-0x1]&&_0x148820[_0x148820['length']-0x1]['forceDefaultExecution']?_0x148820['pop']():(_0x5d2d46['return']=_0x37d1db((..._0x5b5322)=>_0x2d9a7a['execute'](..._0x5b5322,{'forceDefaultExecution':!0x0}),..._0x148820),_0x5d2d46['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x89b386){let _0x3e0d7d,_0x2be203;const _0x22df37=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3e0d7d=_0x89b386();}catch(_0xf6ead9){_0x2be203=_0xf6ead9;}return _0x22df37||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2be203&&_0x32dc20['rethrowUnexpectedError'](_0x2be203,this),_0x3e0d7d;}['markInsertion'](_0xb8c95b,_0x365a15=null,_0x555e0b={}){if(_0xb8c95b['isCollapsed'])return null;const _0x4e7442=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x416507,meta:_0x1487dd}of this['_findSuggestions'](_0xb8c95b,'insertion'))if(_0x1487dd['isOwn']){if(!_0x1487dd['isNextTo']){if(_0x1487dd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x416507,_0x555e0b))continue;return _0x416507;}if(Lt(_0x416507,_0x555e0b))return _0x416507;this['_breakSuggestionMarker'](_0x416507,_0xb8c95b['start'],_0xb8c95b['end']);break;}if(_0x365a15==_0x416507['subType']&&Lt(_0x416507,_0x555e0b)){const _0x4601a3=_0x416507['getFirstRange']();return _0x4601a3['start']['isEqual'](_0xb8c95b['end'])?this['_setSuggestionRange'](_0x416507,this['_model']['createRange'](_0xb8c95b['start'],_0x4601a3['end'])):this['_setSuggestionRange'](_0x416507,this['_model']['createRange'](_0x4601a3['start'],_0xb8c95b['end'])),_0x416507;}}const _0x116c87=_0x3af419(),_0x5b320c=_0x4e7442['id'],_0x56f8d2=_0x365a15?'insertion:'+_0x365a15:'insertion',_0x27bcf4=this['_setSuggestionData']({'id':_0x116c87,'type':_0x56f8d2,'createdAt':new Date(),'authorId':_0x5b320c,'attributes':_0x555e0b});return this['_addSuggestionMarker'](_0x56f8d2,_0x116c87,_0x5b320c,_0xb8c95b),_0x27bcf4;}['markMultiRangeInsertion'](_0x51bb52,_0x14cd4d='multi',_0x350e45={}){const _0x85fce0=this['editor']['plugins']['get']('Users')['me'],_0x5d3238=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x14cd4d,'join');for(const _0x4cf255 of this['getSuggestions']())if(_0x4cf255['author']['id']==_0x85fce0['id']&&'insertion'==_0x4cf255['type']&&_0x4cf255['subType']==_0x14cd4d&&Lt(_0x4cf255,_0x350e45)&&(_0x5d3238(_0x4cf255['getRanges'](),_0x51bb52)||_0x5d3238(_0x51bb52,_0x4cf255['getRanges']()))){for(const _0x3fe3d0 of _0x51bb52)_0x4cf255['addRange'](_0x3fe3d0);return _0x4cf255;}for(const {suggestion:_0xf795a,meta:_0x51cc29}of this['_findSuggestions'](_0x51bb52,'insertion')){if(!_0x51cc29['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x51cc29['containsRangeInObject'])continue;if(!Lt(_0xf795a,_0x350e45))continue;let _0x4cc4e6=!0x0;for(const _0x16284e of _0xf795a['getRanges']())for(const _0x48d5c7 of _0x51bb52)if(!_0x16284e['containsRange'](_0x48d5c7)){_0x4cc4e6=!0x1;break;}if(_0x4cc4e6)return _0xf795a;}const _0x354c93=_0x3af419(),_0x2a8fd9=_0x85fce0['id'],_0x282279='insertion:'+_0x14cd4d,_0x495b23=this['_setSuggestionData']({'id':_0x354c93,'type':_0x282279,'createdAt':new Date(),'authorId':_0x2a8fd9,'attributes':_0x350e45});for(const _0x1a66ce of _0x51bb52)this['_addSuggestionMarker'](_0x282279,_0x354c93,_0x2a8fd9,_0x1a66ce,u['getMultiRangeId']());return _0x495b23;}['markInlineFormat'](_0x54d737,_0x2c2e95,_0xe56579=null,_0x43b547={}){if(_0xe56579=_0xe56579||Vt(_0x2c2e95),_0x54d737['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1f8881=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe56579,'accept');return this['forceDefaultExecution'](()=>_0x1f8881([_0x54d737],_0x2c2e95,_0x43b547)),null;}const _0x3e703f=this['editor']['plugins']['get']('Users')['me'],_0x49a8e2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x194abb,meta:_0x280899}of this['_findSuggestions'](_0x54d737,'insertion'))_0x280899['isOwn']&&!_0x280899['isInsideObject']&&_0x49a8e2['push'](..._0x194abb['getRanges']());}const _0x2bed62=function(_0xb0b45,_0x163a00){const _0x39eff2=[];for(const _0x50c709 of _0x163a00){const _0x3dfe83=_0xb0b45['getIntersection'](_0x50c709);_0x3dfe83&&_0x39eff2['push'](_0x3dfe83);}return _0x39eff2;}(_0x54d737,_0x49a8e2),_0x1f79dd=function(_0x409dae,_0x2ac3e4){const _0x403200=[_0x409dae];for(const _0x2be79d of _0x2ac3e4){let _0x77b4e7=0x0;for(;_0x77b4e7<_0x403200['length'];){const _0x2066c5=_0x403200[_0x77b4e7]['getDifference'](_0x2be79d);_0x403200['splice'](_0x77b4e7,0x1,..._0x2066c5),_0x77b4e7+=_0x2066c5['length'];}}return _0x403200;}(_0x54d737,_0x49a8e2);_0x2bed62['length']&&this['_model']['change'](()=>{for(const _0x166a0f of _0x2bed62){const _0xa67d83=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe56579,'accept');this['forceDefaultExecution'](()=>_0xa67d83([_0x166a0f],_0x2c2e95,_0x43b547));}});for(const _0x4c4b61 of _0x1f79dd){let _0x5e6e02=null,_0x23bd64=_0x4c4b61['start'],_0x3b5242=_0x4c4b61['end'];for(const {suggestion:_0x4fea00,meta:_0x1d450d}of this['_findSuggestions'](_0x4c4b61,'formatInline')){if(!_0x1d450d['isOwn'])continue;if(_0x4fea00['subType']!=_0xe56579)continue;if(!Lt(_0x4fea00,_0x43b547))continue;const _0x24c5fa=_0x4fea00['getFirstRange']();if(_0x24c5fa['containsRange'](_0x4c4b61,!0x0))return null;_0x23bd64=_0x23bd64['isBefore'](_0x24c5fa['start'])?_0x23bd64:_0x24c5fa['start'],_0x3b5242=_0x3b5242['isAfter'](_0x24c5fa['end'])?_0x3b5242:_0x24c5fa['end'],_0x5e6e02?_0x24c5fa['start']['isBefore'](_0x5e6e02['getFirstRange']()['start'])?(_0x5e6e02['removeMarkers'](),_0x5e6e02=_0x4fea00):_0x4fea00['removeMarkers']():_0x5e6e02=_0x4fea00;}const _0x576d4a=this['_model']['createRange'](_0x23bd64,_0x3b5242);if(_0x5e6e02)this['_setSuggestionRange'](_0x5e6e02,_0x576d4a);else{const _0x23df57=_0x3af419(),_0x4b88aa=_0x3e703f['id'];this['_setSuggestionData']({'id':_0x23df57,'type':'formatInline:'+_0xe56579,'data':_0x2c2e95,'createdAt':new Date(),'authorId':_0x4b88aa,'attributes':_0x43b547}),this['_addSuggestionMarker']('formatInline:'+_0xe56579,_0x23df57,_0x4b88aa,_0x576d4a);}}return null;}['markBlockFormat'](_0x3b4ee9,_0x5e6b2e,_0x9c45e1=[],_0x30f30a=null,_0x2f06f0={}){_0x5e6b2e['formatGroupId']||(_0x5e6b2e['formatGroupId']=_0x5e6b2e['commandName']),_0x5e6b2e['multipleBlocks']=_0x3b4ee9['is']('range'),_0x30f30a=_0x30f30a||Vt(_0x5e6b2e);const _0x2105d3=_0x9c45e1['map'](_0x4ac303=>Ft(_0x4ac303,this['_model'])),_0x2ec995=_0x3b4ee9['is']('range')?_0x3b4ee9:Ft(_0x3b4ee9,this['_model']);if('never'===this['_trackFormatChanges']){const _0xaf3c30=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30f30a,'accept');return this['forceDefaultExecution'](()=>_0xaf3c30([_0x2ec995],_0x5e6b2e,_0x2f06f0)),null;}_0x2105d3['push'](_0x2ec995);let _0xdad549=!0x0;for(const _0xfa35d5 of _0x2105d3)if(!this['_rangeIsInLocalUserInsertion'](_0xfa35d5)){_0xdad549=!0x1;break;}if(_0xdad549&&'always'!==this['_trackFormatChanges']){const _0x4dd492=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30f30a,'accept');return this['forceDefaultExecution'](()=>_0x4dd492([_0x2ec995],_0x5e6b2e,_0x2f06f0)),null;}let _0xe80974=null,_0x4a171e=_0x2ec995['start'],_0x246142=_0x2ec995['end'];for(const {suggestion:_0x5ce143,meta:_0x544185}of this['_findSuggestions'](_0x2ec995,'formatBlock')){if(!_0x544185['isOwn'])continue;if(_0x544185['isNextTo']||_0x544185['containsRangeInObject']||_0x544185['isInsideObject'])continue;if(_0x5ce143['data']['formatGroupId']!=_0x5e6b2e['formatGroupId'])continue;if(!Lt(_0x5ce143,_0x2f06f0))continue;const _0x594cee=_0x5ce143['getFirstRange']();if(_0x5ce143['subType']==_0x30f30a){if(_0x594cee['containsRange'](_0x2ec995,!0x0))return null;_0x4a171e=_0x4a171e['isBefore'](_0x594cee['start'])?_0x4a171e:_0x594cee['start'],_0x246142=_0x246142['isAfter'](_0x594cee['end'])?_0x246142:_0x594cee['end'],_0xe80974?_0x594cee['start']['isBefore'](_0xe80974['getFirstRange']()['start'])?(_0xe80974['removeMarkers'](),_0xe80974=_0x5ce143):_0x5ce143['removeMarkers']():_0xe80974=_0x5ce143;}else{const _0x125101=_0x2ec995['getIntersection'](_0x594cee);this['_cutOutSuggestionMarker'](_0x5ce143,_0x125101);}}const _0x235ce6=this['editor']['plugins']['get']('Users')['me'],_0x424a05=_0x3af419(),_0x9a67c3=_0x235ce6['id'];if(_0xe80974)return this['_setSuggestionRange'](_0xe80974,this['_model']['createRange'](_0x4a171e,_0x246142)),_0xe80974;{const _0x1667c5=this['_setSuggestionData']({'id':_0x424a05,'type':'formatBlock:'+_0x30f30a,'data':_0x5e6b2e,'createdAt':new Date(),'authorId':_0x9a67c3,'attributes':_0x2f06f0});return this['_addSuggestionMarker']('formatBlock:'+_0x30f30a,_0x424a05,_0x9a67c3,this['_model']['createRange'](_0x4a171e,_0x246142)),_0x1667c5;}}['markMultiRangeBlockFormat'](_0x746ba,_0x43da86,_0x3ac92e=[],_0x2c410d=null,_0xe9b62f={}){_0x43da86['formatGroupId']||(_0x43da86['formatGroupId']=_0x43da86['commandName']);const _0x4de870=_0x746ba[0x0];_0x43da86['multipleBlocks']=_0x4de870['is']('range'),_0x2c410d=_0x2c410d||Vt(_0x43da86);const _0x5ede33=_0x3ac92e['map'](_0x427abf=>Ft(_0x427abf,this['_model'])),_0x26333e=_0x4de870['is']('range')?_0x746ba:_0x746ba['map'](_0x2f1884=>Ft(_0x2f1884,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4fd9c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c410d,'accept');return this['forceDefaultExecution'](()=>_0x4fd9c9(_0x26333e,_0x43da86,_0xe9b62f)),null;}_0x5ede33['push'](..._0x26333e);let _0x395b2e=!0x0;for(const _0x1b3d0a of _0x5ede33)if(!this['_rangeIsInLocalUserInsertion'](_0x1b3d0a)){_0x395b2e=!0x1;break;}if(_0x395b2e&&'always'!==this['_trackFormatChanges']){const _0xb0a113=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c410d,'accept');return this['forceDefaultExecution'](()=>_0xb0a113(_0x26333e,_0x43da86,_0xe9b62f)),null;}const _0x2db747=this['editor']['plugins']['get']('Users')['me'];for(const _0x42d56a of this['getSuggestions']()){if(_0x42d56a['author']['id']!=_0x2db747['id'])continue;if('formatBlock'!=_0x42d56a['type']||_0x42d56a['data']['formatGroupId']!=_0x43da86['formatGroupId'])continue;if(!Lt(_0x42d56a,_0xe9b62f))continue;const _0x5b4a03=_0x42d56a['subType']==_0x2c410d;for(let _0x586b18=0x0;_0x586b18<_0x26333e['length'];_0x586b18++){const _0x1b003b=_0x26333e[_0x586b18];for(const _0x2c2964 of _0x42d56a['getMarkers']()){const _0x233cce=_0x2c2964['getRange']();if(_0x1b003b['isEqual'](_0x233cce)){_0x5b4a03?(_0x26333e['splice'](_0x586b18,0x1),_0x586b18--):_0x42d56a['removeMarker'](_0x2c2964['name']);break;}}}}if(0x0==_0x26333e['length'])return null;const _0x3e9438=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c410d,'join');for(const _0x26e648 of this['getSuggestions']())if(_0x26e648['author']['id']==_0x2db747['id']&&'formatBlock'==_0x26e648['type']&&_0x26e648['data']['formatGroupId']==_0x43da86['formatGroupId']&&_0x26e648['subType']==_0x2c410d&&Lt(_0x26e648,_0xe9b62f)&&(_0x3e9438(_0x26e648['getRanges'](),_0x26333e)||_0x3e9438(_0x26333e,_0x26e648['getRanges']()))){for(const _0xc153b3 of _0x26333e)_0x26e648['addRange'](_0xc153b3);return _0x26e648;}const _0x1757bd=_0x3af419(),_0x1d1d4f=_0x2db747['id'],_0x11eaec='formatBlock:'+_0x2c410d,_0x52cb5b=this['_setSuggestionData']({'id':_0x1757bd,'type':_0x11eaec,'data':_0x43da86,'createdAt':new Date(),'authorId':_0x1d1d4f,'attributes':_0xe9b62f});for(const _0x3f72f4 of _0x26333e)this['_addSuggestionMarker'](_0x11eaec,_0x1757bd,_0x1d1d4f,_0x3f72f4,u['getMultiRangeId']());return _0x52cb5b;}['markDeletion'](_0x3072e9,_0x38f242=null,_0x36c974={}){if(_0x3072e9['isCollapsed'])return null;const _0x4863f8=this['editor']['plugins']['get']('Users')['me'],_0x121af3=new _0x5ac8f0(_0x3072e9['start'],_0x3072e9['end']);for(const {suggestion:_0x507625,meta:_0x1ae385}of this['_findSuggestions'](_0x121af3,'insertion'))if(_0x1ae385['isOwn']&&!_0x1ae385['isNextTo']){if(_0x507625['isMultiRange']){const _0x386889=_0x507625['getRanges']()['filter'](_0x259cc9=>'$graveyard'!=_0x259cc9['root']['rootName']);_0x386889['every'](_0x200e69=>_0x121af3['containsRange'](_0x200e69,!0x0))&&_0x507625['discard']();if(_0x386889['some'](_0x40a9aa=>_0x40a9aa['containsRange'](_0x121af3,!0x0))){const _0x5154a9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38f242,'accept');return this['forceDefaultExecution'](()=>_0x5154a9([_0x121af3],null,_0x36c974)),null;}}else{const _0x41d20f=_0x121af3['getIntersection'](_0x507625['getFirstRange']());null!==_0x41d20f&&_0x507625['_onDiscard']([_0x41d20f],null,_0x36c974);}}if(_0x121af3['detach'](),_0x121af3['isCollapsed']||'$graveyard'==_0x121af3['root']['rootName'])return null;let _0x12deeb=null,_0x3ed433=_0x121af3['start'],_0x2bb827=_0x121af3['end'];const _0x5d498a=this['_findSuggestions'](_0x121af3,'deletion');for(const {suggestion:_0x127e5c,meta:_0x377ffe}of _0x5d498a){const _0x224305=this['_model']['createRange'](_0x3ed433,_0x2bb827);if(_0x377ffe['isOwn']&&(this['_mergeNestedSuggestions']||!_0x377ffe['containsRangeInObject']&&!_0x377ffe['isInsideObject'])){if(_0x127e5c['isMultiRange']){if(!Lt(_0x127e5c,_0x36c974))continue;let _0x4684d8=!0x0;for(const _0x1564d7 of _0x127e5c['getRanges']()){if(_0x1564d7['containsRange'](_0x224305,!0x0))return _0x127e5c;_0x224305['containsRange'](_0x1564d7)||(_0x4684d8=!0x1);}_0x4684d8&&_0x127e5c['discard']();}else{const _0x65925d=_0x127e5c['getFirstRange']();if(_0x65925d['containsRange'](_0x224305,!0x0))return _0x127e5c;if(!Lt(_0x127e5c,_0x36c974)){_0x224305['containsRange'](_0x65925d)?_0x127e5c['removeMarkers']():_0x65925d['containsPosition'](_0x3ed433)?_0x3ed433=_0x65925d['end']:_0x65925d['containsPosition'](_0x2bb827)&&(_0x2bb827=_0x65925d['start']);continue;}_0x3ed433=_0x3ed433['isBefore'](_0x65925d['start'])?_0x3ed433:_0x65925d['start'],_0x2bb827=_0x2bb827['isAfter'](_0x65925d['end'])?_0x2bb827:_0x65925d['end'],_0x36c974=Object['assign']({},_0x127e5c['attributes']),_0x12deeb?_0x65925d['start']['isBefore'](_0x12deeb['getFirstRange']()['start'])?(_0x12deeb['removeMarkers'](),_0x12deeb=_0x127e5c):_0x127e5c['removeMarkers']():_0x12deeb=_0x127e5c;}}}if(_0x12deeb)return this['_setSuggestionRange'](_0x12deeb,this['_model']['createRange'](_0x3ed433,_0x2bb827)),_0x12deeb;{const _0x2f675d=_0x3af419(),_0x47a4c5=this['_model']['createRange'](_0x3ed433,_0x2bb827),_0x3f94b7=_0x4863f8['id'],_0x2711e4=_0x38f242?'deletion:'+_0x38f242:'deletion',_0x323aa3=this['_setSuggestionData']({'id':_0x2f675d,'type':_0x2711e4,'createdAt':new Date(),'authorId':_0x3f94b7,'attributes':_0x36c974});return this['_addSuggestionMarker'](_0x2711e4,_0x2f675d,_0x3f94b7,_0x47a4c5),_0x323aa3;}}['markMultiRangeDeletion'](_0x1ed68a,_0x4d2417='multi',_0x592635={}){const _0x5f2457=this['editor']['plugins']['get']('Users')['me'],_0x25c100=_0x1ed68a['map'](_0x404823=>new _0x5ac8f0(_0x404823['start'],_0x404823['end'])),_0x4a77ed=new Set();for(const {suggestion:_0x2032e6,meta:_0x944855}of this['_findSuggestions'](_0x25c100,'insertion'))_0x944855['isOwn']&&!_0x944855['isNextTo']&&_0x4a77ed['add'](_0x2032e6);for(const _0x5cdc49 of _0x4a77ed)if(_0x5cdc49['isMultiRange']){const _0x274997=_0x5cdc49['getRanges']();(!_0x5cdc49['attributes']||!_0x5cdc49['attributes']['skipNestingCheck'])&&(_0x274997['every'](_0x5ab23d=>_0x25c100['some'](_0x497f18=>_0x497f18['containsRange'](_0x5ab23d,!0x0)))&&_0x5cdc49['discard']());if(_0x25c100['every'](_0x1e047b=>_0x274997['some'](_0x436041=>_0x436041['containsRange'](_0x1e047b,!0x0)))){const _0x15cc44=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d2417,'accept');return this['forceDefaultExecution'](()=>_0x15cc44(_0x1ed68a,null,_0x592635)),null;}}else{const _0x3a0ff6=_0x5cdc49['getFirstRange']();_0x25c100['some'](_0x172f5c=>_0x172f5c['containsRange'](_0x3a0ff6,!0x0))&&_0x5cdc49['discard']();if(_0x25c100['every'](_0x142098=>_0x3a0ff6['containsRange'](_0x142098,!0x0))){const _0x2a2887=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d2417,'accept');return this['forceDefaultExecution'](()=>_0x2a2887(_0x25c100,null,_0x592635)),null;}}const _0x31224d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d2417,'join');let _0x43b58e=null;for(const _0x2c7cca of this['getSuggestions']())if(_0x2c7cca['author']['id']==_0x5f2457['id']&&_0x2c7cca['isInContent']&&'deletion'==_0x2c7cca['type']&&_0x2c7cca['subType']==_0x4d2417&&Lt(_0x2c7cca,_0x592635)&&(_0x31224d(_0x2c7cca['getRanges'](),_0x25c100)||_0x31224d(_0x25c100,_0x2c7cca['getRanges']()))){if(_0x43b58e){if(_0x2c7cca['commentThread']&&_0x2c7cca['commentThread']['length'])continue;for(const _0xfc6018 of _0x2c7cca['getRanges']())_0x43b58e['isIntersectingWithRange'](_0xfc6018)||_0x43b58e['addRange'](_0xfc6018);_0x2c7cca['removeMarkers']();}else{_0x43b58e=_0x2c7cca;for(const _0x35cea1 of _0x25c100)_0x2c7cca['isIntersectingWithRange'](_0x35cea1)||_0x2c7cca['addRange'](_0x35cea1);}}if(_0x43b58e)return _0x43b58e;_0x4a77ed['clear']();for(const {suggestion:_0x4b1779,meta:_0x53a94d}of this['_findSuggestions'](_0x25c100,'deletion'))_0x53a94d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53a94d['containsRangeInObject']&&!_0x53a94d['isInsideObject'])&&Lt(_0x4b1779,_0x592635)&&_0x4a77ed['add'](_0x4b1779);for(const _0x481490 of _0x4a77ed){const _0x12853c=_0x481490['getRanges']();if(!_0x592635||!_0x592635['skipNestingCheck']){if(_0x25c100['every'](_0x5c2de8=>_0x12853c['some'](_0x233689=>_0x233689['containsRange'](_0x5c2de8,!0x0))))return _0x481490;}(!_0x481490['attributes']||!_0x481490['attributes']['skipNestingCheck'])&&(_0x12853c['every'](_0x1f1cc5=>_0x25c100['some'](_0x5ed039=>_0x5ed039['containsRange'](_0x1f1cc5,!0x0)))&&_0x481490['discard']());}const _0x5bb26d=_0x3af419(),_0x248346=_0x5f2457['id'],_0x1001e8='deletion:'+_0x4d2417,_0x5ee116=this['_setSuggestionData']({'id':_0x5bb26d,'type':_0x1001e8,'createdAt':new Date(),'authorId':_0x248346,'attributes':_0x592635});for(const _0x4a07f4 of _0x25c100)_0x4a07f4['detach'](),_0x4a07f4['isCollapsed']||'$graveyard'==_0x4a07f4['root']['rootName']||this['_addSuggestionMarker'](_0x1001e8,_0x5bb26d,_0x248346,_0x4a07f4,u['getMultiRangeId']());return _0x5ee116;}['markAttributeChange'](_0x299650,_0x592049,_0x42ac72,_0x45a331,_0xce2239){if(_0x299650['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x41c7a8=this['editor']['plugins']['get']('Users')['me']['id'],_0x125071=Array['from'](this['_suggestions']['values']())['filter'](_0x39b547=>'attribute'==_0x39b547['type']&&_0x39b547['data']['key']==_0x592049&&_0x39b547['isIntersectingWithRange'](_0x299650));if('default'===this['_trackFormatChanges']){const _0x557c58=this['_findSuggestions'](_0x299650,'insertion')['filter'](({meta:_0x378b50})=>_0x378b50['isOwn']&&!_0x378b50['isInsideObject']&&!_0x378b50['isNextTo'])['map'](({suggestion:_0xbe7203})=>_0xbe7203);_0x125071['unshift'](..._0x557c58);}const _0xea3bba=new Map([[_0x299650,_0x42ac72]]);for(const _0x2eb352 of _0x125071){const _0x2fbca8='attribute'==_0x2eb352['type']?_0x2eb352['data']['oldValue']:void 0x0,_0x1ddd5b=_0x2eb352['getFirstRange'](),_0x5baccb=Array['from'](_0xea3bba['keys']())['find'](_0x1fdeca=>_0x1fdeca['isIntersecting'](_0x1ddd5b));if(!_0x5baccb)continue;const _0x39422f=_0x5baccb['getDifference'](_0x1ddd5b);this['_isBlockAttribute'](_0x592049)&&'insertion'==_0x2eb352['type']&&0x0!=_0x39422f['length']||(_0xea3bba['delete'](_0x5baccb),_0x39422f['forEach'](_0x4f849a=>{_0xea3bba['set'](_0x4f849a,_0x42ac72);}),'insertion'!=_0x2eb352['type']&&_0x2fbca8!=_0x45a331&&_0xea3bba['set'](_0x5baccb['getIntersection'](_0x1ddd5b),_0x2fbca8));}const _0x586265=[];for(const [_0x3d4a63,_0x2f8280]of _0xea3bba){const _0xdb66d6=_0x3af419(),_0x211215={'key':_0x592049,'oldValue':_0x2f8280,'newValue':_0x45a331};_0x592049['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':_0x592049});const _0x28b711=('attribute:'+(_0x592049+'|'+Vt({'newValue':_0x45a331})))['substring'](0x0,0x3c),_0x5d33a8=this['_setSuggestionData']({'id':_0xdb66d6,'type':_0x28b711,'data':_0x211215,'createdAt':new Date(),'authorId':_0x41c7a8,'attributes':_0xce2239});_0x586265['push'](_0x5d33a8),this['_addSuggestionMarker'](_0x28b711,_0xdb66d6,_0x41c7a8,_0x3d4a63);}return _0x586265;}['enableDefaultAttributesIntegration'](_0x2187f2){this['enableCommand'](_0x2187f2,(_0x36bb17,..._0x5411a7)=>{this['_recordAttributeChanges'](()=>{_0x36bb17(..._0x5411a7);});});}['registerBlockAttribute'](_0x28c49f){this['_blockAttributeKeys']['add'](_0x28c49f);}['registerInlineAttribute'](_0x476681){this['_inlineAttributeKeys']['add'](_0x476681);}['_getAttributeKey'](_0x1940e6){return'attribute'==_0x1940e6['type']?_0x1940e6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x156f46,_0x2d36fc){const _0x3eb0bb=_0x156f46['getFirstMarker']();this['_model']['change'](_0x4e3a5c=>{_0x4e3a5c['updateMarker'](_0x3eb0bb,{'range':_0x2d36fc});});}['_addThreadToSuggestion'](_0x4f5c95){const _0x34e8a6=_0x4f5c95['id'],_0x3b18fe=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x34e8a6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3b18fe,'threadId':_0x34e8a6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x181dad=this['_commentsRepository']['getCommentThread'](_0x34e8a6);_0x181dad['unbind']('isRemovable'),_0x181dad['isRemovable']=!0x1,_0x4f5c95['commentThread']=_0x181dad;}['_checkSuggestionCorrectness'](_0x28cf21,_0x21f7dc,_0x522ef4,_0x39de04){if(_0x28cf21['type']!=_0x21f7dc||_0x28cf21['subType']!=_0x522ef4||_0x28cf21['creator']['id']!=_0x39de04)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x32dc20('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x33d571,_0xa9f741){const _0x205fa7=_0x33d571['getFirstRange']();if(_0xa9f741['isEqual'](_0x205fa7))_0x33d571['removeMarkers']();else{if(_0x205fa7['containsRange'](_0xa9f741)){const _0x1e32cc=this['_model']['createPositionAt'](_0xa9f741['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33d571,this['_model']['createRange'](_0x205fa7['start'],_0x1e32cc));const _0x2ce218=_0x3af419(),_0x1dbd3e=_0x33d571['creator']['id'],_0x56042b=_0x33d571['type']+':'+_0x33d571['subType'];this['_setSuggestionData']({'id':_0x2ce218,'type':_0x56042b,'createdAt':new Date(),'authorId':_0x1dbd3e,'data':_0x33d571['data'],'attributes':_0x33d571['attributes']});const _0x143263=this['_model']['createPositionAt'](_0xa9f741['end']['parent'],'after'),_0xd9ff3e=this['_model']['createRange'](_0x143263,_0x205fa7['end']);this['_addSuggestionMarker'](_0x56042b,_0x2ce218,_0x1dbd3e,_0xd9ff3e);}else{if(_0x205fa7['containsPosition'](_0xa9f741['start'])){const _0x143eef=this['_model']['createPositionAt'](_0xa9f741['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33d571,this['_model']['createRange'](_0x205fa7['start'],_0x143eef));}else{const _0x4022a8=this['_model']['createPositionAt'](_0xa9f741['end']['parent'],'after');this['_setSuggestionRange'](_0x33d571,this['_model']['createRange'](_0x4022a8,_0x205fa7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x48711c){for(const {suggestion:_0x213e20,meta:_0x29214e}of this['_findSuggestions'](_0x48711c,'insertion')){if(!_0x29214e['isOwn'])continue;const _0x16fece=_0x213e20['getRanges']();for(const _0x448c0c of _0x16fece)if(!_0x48711c['getDifference'](_0x448c0c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x330a59){const _0x542023=this['editor']['plugins']['get']('Users')['getUser'](_0x330a59);if(!_0x542023)throw new _0x32dc20('track-changes-user-not-found',this);return _0x542023;}['_getExternalAuthor'](_0x46cf3c){const _0x50729e=this['editor']['plugins']['get']('Users'),_0x290a5f=_0x292a57('external:'+_0x46cf3c),_0x558678=_0x50729e['getUser'](_0x290a5f);return _0x558678||_0x50729e['addUser']({'id':_0x290a5f,'name':_0x46cf3c});}['_createSuggestion'](_0x3b26da,_0x595765,_0x172766,_0x2658e1,_0x4933b7){const _0x344c5b=this['_getAuthorFromId'](_0x2658e1),_0x243ede=this['_suggestionFactory']['buildSuggestion'](_0x3b26da,_0x595765,_0x172766,_0x344c5b,_0x4933b7,_0x45f63c=>{this['_updateSuggestionData'](_0x172766,{'attributes':_0x45f63c});const _0x347b3e=this['getSuggestion'](_0x172766);this['_joinWithAdjacentSuggestions'](new Set([_0x347b3e])),this['_refreshSuggestionsChain'](new Set([_0x347b3e]));});return this['listenTo'](_0x243ede,'accept',()=>{this['_updateSuggestionData'](_0x172766,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x243ede,'discard',()=>{this['_updateSuggestionData'](_0x172766,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x172766,_0x243ede),this['_suggestionState']['set'](_0x243ede,'notReady'),_0x243ede;}['_splitMarkerName'](_0x1b1be8){const _0x5b8df0=_0x1b1be8['split'](':');return{'group':_0x5b8df0[0x0],'type':_0x5b8df0[0x1],'subType':_0x5b8df0['length']>=0x5?_0x5b8df0[0x2]:null,'id':_0x5b8df0['length']<0x5?_0x5b8df0[0x2]:_0x5b8df0[0x3],'authorId':_0x5b8df0['length']<0x5?_0x5b8df0[0x3]:_0x5b8df0[0x4],'markerCount':0x6==_0x5b8df0['length']?_0x5b8df0[0x5]:null};}['_breakSuggestionMarker'](_0xc3d015,_0x1370e0,_0xe8a7e1){const _0x3d8a5b=_0xc3d015['getFirstRange'](),_0xfca78c=_0x3d8a5b['start'],_0x173eac=_0x3d8a5b['end'];this['_setSuggestionRange'](_0xc3d015,this['_model']['createRange'](_0xfca78c,_0x1370e0));const _0x5dd4d6=_0x3af419(),_0x5a2fee=_0xc3d015['creator']['id'],_0x556b4a=_0xc3d015['type']+(_0xc3d015['subType']?':'+_0xc3d015['subType']:'');this['_setSuggestionData']({'id':_0x5dd4d6,'type':_0x556b4a,'createdAt':new Date(),'authorId':_0x5a2fee,'originalSuggestionId':_0xc3d015['id'],'attributes':_0xc3d015['attributes'],'data':_0xc3d015['data']});const _0x4bab9b=this['_getAttributeKey'](_0xc3d015);('formatBlock'==_0xc3d015['type']||_0x4bab9b&&this['_isBlockAttribute'](_0x4bab9b))&&(_0xe8a7e1=this['_model']['createPositionBefore'](_0xe8a7e1['parent'])),this['_addSuggestionMarker'](_0x556b4a,_0x5dd4d6,_0x5a2fee,this['_model']['createRange'](_0xe8a7e1,_0x173eac));}['_findSuggestions'](_0x4b3148,_0x4e7f9e=null){const _0x3fe518=[],_0x3be08f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4b3148)||(_0x4b3148=[_0x4b3148]);for(const _0x53727d of this['getSuggestions']()){if(!_0x53727d['isInContent'])continue;if(_0x4e7f9e&&_0x53727d['type']!=_0x4e7f9e)continue;let _0x933be=!0x1;for(const _0x3883c0 of _0x53727d['getRanges']()){for(const _0xfe0cbd of _0x4b3148){const _0x5f872f=_0xfe0cbd['start']['isEqual'](_0x3883c0['end'])||_0xfe0cbd['end']['isEqual'](_0x3883c0['start']);if(_0x5f872f||_0xfe0cbd['getIntersection'](_0x3883c0)){const _0xdd3b96=_0xfe0cbd['containsRange'](_0x3883c0)&&Rt(this['_model']['schema'],_0x3883c0['start'],_0xfe0cbd),_0x2f74ce=_0x3883c0['containsRange'](_0xfe0cbd)&&Rt(this['_model']['schema'],_0xfe0cbd['start'],_0x3883c0);_0x3fe518['push']({'suggestion':_0x53727d,'meta':{'isOwn':_0x3be08f==_0x53727d['author'],'isNextTo':_0x5f872f,'isInsideObject':_0xdd3b96,'containsRangeInObject':_0x2f74ce}}),_0x933be=!0x0;break;}}if(_0x933be)break;}}return _0x3fe518;}['_addSuggestionMarker'](_0x305cdd,_0x5f229b,_0x217c65,_0xa9dae2,_0x32fd8b){this['_model']['change'](_0x3017d7=>{let _0x31ad07='suggestion:'+_0x305cdd+':'+_0x5f229b+':'+_0x217c65;_0x32fd8b&&(_0x31ad07=_0x31ad07+':'+_0x32fd8b),_0x3017d7['addMarker'](_0x31ad07,{'range':_0xa9dae2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2cfcc5){const _0xd2ade7=_0x2cfcc5['previous'],_0x544b10=_0x2cfcc5['next'];_0x2cfcc5['previous']=null,_0x2cfcc5['next']=null,null!=_0xd2ade7&&_0xd2ade7['next']==_0x2cfcc5&&(_0xd2ade7['next']=_0x544b10),null!=_0x544b10&&_0x544b10['previous']==_0x2cfcc5&&(_0x544b10['previous']=_0xd2ade7),'ready'==this['_suggestionState']['get'](_0x2cfcc5)&&(this['_suggestionState']['set'](_0x2cfcc5,'removed'),this['fire']('suggestionUnloaded',_0x2cfcc5,_0xd2ade7,_0x544b10));}['_setSuggestionData'](_0x480508){const _0x353e4c=_0x480508['id'],_0x4fe9cf=this['addSuggestionData'](_0x480508);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3eca40=this['editor']['plugins']['get']('PendingActions'),_0x129803=_0x4fe9cf['hasComments'],_0x3f5c11=_0x4fe9cf['subType']?_0x4fe9cf['type']+':'+_0x4fe9cf['subType']:_0x4fe9cf['type'],_0x44b916=this['editor']['locale'],_0x4adf7e=_0x3eca40['add'](o(_0x44b916,'PENDING_ACTION_SUGGESTION')),_0x46c6c1={'id':_0x353e4c,'type':_0x3f5c11,'hasComments':_0x129803,'data':_0x480508['data']||null,'originalSuggestionId':_0x480508['originalSuggestionId']||null,'attributes':_0x4fe9cf['attributes']};this['_adapter']['addSuggestion'](_0x46c6c1)['then'](_0x250984=>{_0x4fe9cf['_saved']=!0x0,_0x3eca40['remove'](_0x4adf7e),_0x250984&&_0x250984['createdAt']&&(this['_suggestions']['get'](_0x353e4c)['createdAt']=_0x250984['createdAt']);})['catch'](_0x4a93e7=>{throw _0x4e88fa('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4fe9cf['discard']();}),_0x4fe9cf['stopListening'](),this['_suggestions']['delete'](_0x4fe9cf['id']),this['_suggestionState']['delete'](_0x4fe9cf),_0x4a93e7;});}return _0x4fe9cf;}['_isBlockAttribute'](_0x499ccb){return this['_blockAttributeKeys']['has'](_0x499ccb);}['_updateSuggestionData'](_0x68dbf6,_0x56f77d){const _0x681e7c=this['editor']['plugins']['get']('PendingActions'),_0x50c19c=this['getSuggestion'](_0x68dbf6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x50c19c['_saved']){const _0x3d1542=_0x681e7c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x68dbf6,_0x56f77d)['then'](()=>{_0x681e7c['remove'](_0x3d1542);});}else _0x50c19c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x68dbf6,_0x56f77d);});}}['_getSuggestionData'](_0x5cda3a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x32dc20('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5cda3a);}['_handleNewSuggestionMarker'](_0x2c8a73){const {id:_0x30ce94,type:_0x35e38d,subType:_0x4a22c2,authorId:_0x4c2932}=this['_splitMarkerName'](_0x2c8a73),_0x43621f=this['_suggestions']['get'](_0x30ce94)||this['_createSuggestion'](_0x35e38d,_0x4a22c2,_0x30ce94,_0x4c2932,{});switch(this['_checkSuggestionCorrectness'](_0x43621f,_0x35e38d,_0x4a22c2,_0x4c2932),this['_suggestionState']['get'](_0x43621f)){case'notReady':this['_getSuggestionData'](_0x30ce94)['then'](_0x113cbd=>{let _0x295d53=Promise['resolve']();_0x113cbd['hasComments']&&(_0x295d53=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x30ce94})),_0x295d53['then'](()=>{this['addSuggestionData'](_0x113cbd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x43621f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x30ce94,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x43621f,'ready'),this['fire']('suggestionLoaded',_0x43621f);break;case'ready':this['fire']('suggestionChanged',_0x43621f);}return _0x43621f['addMarkerName'](_0x2c8a73),_0x43621f;}['_refreshSuggestionsChain'](_0x3bdd18){const _0x9bc292=Array['from'](_0x3bdd18),_0x3bd035=_0x9bc292['filter'](_0x293c8a=>'attribute'==_0x293c8a['type']);this['_refreshAttributeSuggestionsChain'](_0x3bd035);const _0x12dca7=_0x9bc292['filter'](_0x27bbbc=>!_0x27bbbc['isMultiRange']&&'attribute'!=_0x27bbbc['type']),_0x488ca3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7656a4=>!_0x7656a4['isMultiRange']&&'attribute'!=_0x7656a4['type']),_0x5564cc=_0x488ca3['filter'](_0x14f6e3=>!_0x3bdd18['has'](_0x14f6e3)),_0x31bb3a=new Map(_0x488ca3['map'](_0x2f21bb=>[_0x2f21bb,this['_suggestionFactory']['getSuggestionCallback'](_0x2f21bb['type'],_0x2f21bb['subType'],'chain')])),_0xa01f5a=new Map(_0x488ca3['map'](_0x263da3=>[_0x263da3,_0x263da3['getFirstRange']()])),_0x144365=new Set(),_0x75d7b4=new Set();for(let _0x291431=0x0;_0x291431<_0x12dca7['length'];_0x291431++)_0x5deb09(_0x12dca7[_0x291431],_0x12dca7,_0x291431+0x1);for(let _0x1edb3e=0x0;_0x1edb3e<_0x12dca7['length'];_0x1edb3e++)_0x5deb09(_0x12dca7[_0x1edb3e],_0x5564cc,0x0);const _0x3dadc5=new Set();for(let _0x53d72d=0x0;_0x53d72d<_0x12dca7['length'];_0x53d72d++){const _0x2c9bed=_0x12dca7[_0x53d72d];!_0x75d7b4['has'](_0x2c9bed)&&_0x2c9bed['previous']&&(_0x3dadc5['add'](_0x2c9bed['previous']),_0x2c9bed['previous']['next']===_0x2c9bed&&(_0x2c9bed['previous']['next']=null),_0x2c9bed['previous']=null),!_0x144365['has'](_0x2c9bed)&&_0x2c9bed['next']&&(_0x3dadc5['add'](_0x2c9bed['next']),_0x2c9bed['next']['previous']===_0x2c9bed&&(_0x2c9bed['next']['previous']=null),_0x2c9bed['next']=null);}function _0x5deb09(_0x38b000,_0x3a5590,_0x194354){for(let _0x412190=_0x194354;_0x412190<_0x3a5590['length'];_0x412190++){const _0x2346da=_0xed8636(_0x38b000,_0x3a5590[_0x412190]);_0x2346da&&(_0x2346da[0x0]['next']=_0x2346da[0x1],_0x2346da[0x1]['previous']=_0x2346da[0x0],_0x144365['add'](_0x2346da[0x0]),_0x75d7b4['add'](_0x2346da[0x1]));}}function _0xed8636(_0x35ba41,_0x325e20){if(_0x35ba41['author']['id']!==_0x325e20['author']['id'])return null;const _0x1f16ec=_0x31bb3a['get'](_0x35ba41)(_0x35ba41,_0x325e20,_0xa01f5a['get'](_0x35ba41),_0xa01f5a['get'](_0x325e20));if(!_0x1f16ec)return null;return _0x31bb3a['get'](_0x325e20)(_0x35ba41,_0x325e20,_0xa01f5a['get'](_0x35ba41),_0xa01f5a['get'](_0x325e20))?_0x1f16ec[0x1]['commentThread']&&_0x1f16ec[0x1]['commentThread']['length']?null:_0x1f16ec:null;}_0x3dadc5['size']&&this['_refreshSuggestionsChain'](_0x3dadc5);}['_refreshAttributeSuggestionsChain'](_0x3408b9){if(0x0==_0x3408b9['length'])return;const _0x276cb2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xea47b1=>'attribute'==_0xea47b1['type']&&_0xea47b1['_isDataLoaded']),_0xca3e78=[],_0x1cdd3c=new Map();for(const _0x51e1f2 of _0x276cb2){const _0x57541b=_0x292a57(_0x51e1f2['attributes']);_0x1cdd3c['has'](_0x57541b)||(_0x1cdd3c['set'](_0x57541b,_0xca3e78['length']),_0xca3e78['push']([]));const _0x20b666=_0x1cdd3c['get'](_0x57541b);_0xca3e78[_0x20b666]['push'](_0x51e1f2);}!(function(){_0xca3e78['sort']((_0x5722a5,_0x17e008)=>{const _0x227699=_0x5722a5[0x0]['createdAt'],_0x5abaa5=_0x17e008[0x0]['createdAt'];return _0x227699==_0x5abaa5?_0x5722a5[0x0]['attributes']['groupId']<_0x17e008[0x0]['attributes']['groupId']?-0x1:0x1:_0x227699<_0x5abaa5?-0x1:0x1;});for(const _0x57e9d7 of _0xca3e78)_0x57e9d7['sort']((_0x345329,_0x39e41e)=>_0x345329['id']<_0x39e41e['id']?-0x1:0x1);}());for(let _0x1230d2=0x0;_0x1230d2<_0xca3e78['length'];_0x1230d2++){if(0x0==_0xca3e78[_0x1230d2]['length'])continue;const _0x5e2ce1=[];for(let _0x1f80fe=_0x1230d2+0x1;_0x1f80fe<_0xca3e78['length'];_0x1f80fe++)0x0!=_0xca3e78[_0x1f80fe]['length']&&_0x3f8753(_0xca3e78[_0x1230d2],_0xca3e78[_0x1f80fe])&&_0x5e2ce1['push'](_0x1f80fe);for(const _0x1f7419 of _0x5e2ce1)_0xca3e78[_0x1230d2]=_0xca3e78[_0x1230d2]['concat'](_0xca3e78[_0x1f7419]),_0xca3e78[_0x1f7419]=[];}for(const _0x4aca8f of _0xca3e78)for(let _0x4c9709=0x0;_0x4c9709<_0x4aca8f['length'];_0x4c9709++)_0x4aca8f[_0x4c9709]['next']=_0x4aca8f[_0x4c9709+0x1]||null;for(const _0x4eeffc of _0xca3e78)for(let _0x7eb8e2=0x0;_0x7eb8e2<_0x4eeffc['length'];_0x7eb8e2++)_0x4eeffc[_0x7eb8e2]['previous']=_0x4eeffc[_0x7eb8e2-0x1]||null;function _0x3f8753(_0x3beb5f,_0xb98847){if(_0x3beb5f[0x0]['attributes']['groupId']!==_0xb98847[0x0]['attributes']['groupId']&&_0x3beb5f[0x0]['author']!==_0xb98847[0x0]['author'])return!0x1;if(!function(_0x1d66e2,_0x2f21c8){if(!_0x1d66e2['hasComments']&&!_0x2f21c8['hasComments'])return!0x0;if(_0x1d66e2['hasComments']&&_0x2f21c8['hasComments'])return!0x1;if(_0x1d66e2['hasComments']&&_0x2f21c8['createdAt']<_0x1d66e2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2f21c8['hasComments']&&_0x1d66e2['createdAt']<_0x2f21c8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3beb5f[0x0],_0xb98847[0x0]))return!0x1;const _0x4b5bbb=Bt(_0x3beb5f[0x0]['attributes'],'groupId'),_0x260f0d=Bt(_0xb98847[0x0]['attributes'],'groupId');if(!_0x29efb4(_0x4b5bbb,_0x260f0d))return!0x1;return!!_0x3beb5f['every'](_0x28cda2=>_0xb98847['some'](_0x5e3c9b=>_0x28cda2['getFirstRange']()['isEqual'](_0x5e3c9b['getFirstRange']())))&&_0xb98847['every'](_0x468cad=>_0x3beb5f['some'](_0x125957=>_0x468cad['getFirstRange']()['isEqual'](_0x125957['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x15eb40){const _0x425573=Array['from'](_0x15eb40),_0x5b056d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x269fb3=_0x5b056d['filter'](_0x4c970f=>!_0x15eb40['has'](_0x4c970f)),_0xa89691=new Map(_0x425573['map'](_0x1631dc=>[_0x1631dc,this['_suggestionFactory']['getSuggestionCallback'](_0x1631dc['type'],_0x1631dc['subType'],'join')])),_0x50667d=new Map(_0x5b056d['map'](_0x33cd1f=>[_0x33cd1f,_0x33cd1f['getRanges']()]));for(let _0x1436ae=0x0;_0x1436ae<_0x425573['length'];_0x1436ae++){if(_0x3c75e0(this,_0x425573[_0x1436ae],_0x425573,_0x1436ae+0x1))return!0x0;}for(let _0x3ba977=0x0;_0x3ba977<_0x425573['length'];_0x3ba977++){if(_0x3c75e0(this,_0x425573[_0x3ba977],_0x269fb3,0x0))return!0x0;}return!0x1;function _0x3c75e0(_0x2c853b,_0x24893f,_0x37f63b,_0x67d1f5){for(let _0x194dae=_0x67d1f5;_0x194dae<_0x37f63b['length'];_0x194dae++){const _0x22ebfe=_0x37f63b[_0x194dae];if(_0x22ebfe['type']!==_0x24893f['type']||_0x22ebfe['author']['id']!==_0x24893f['author']['id']||_0x22ebfe['subType']!==_0x24893f['subType'])continue;if(!Pt(_0x24893f,_0x22ebfe,['groupId']))continue;if('attribute'==_0x24893f['type']&&_0x24893f['data']['oldValue']!=_0x22ebfe['data']['oldValue'])continue;if('attribute'==_0x24893f['type']&&_0x2c853b['_isBlockAttribute'](_0x24893f['data']['key']))continue;if('formatBlock'==_0x24893f['type']){const _0x4ada2d=_0x2c853b['editor']['model'],_0x49c498=_0x24893f['getContainedElement']();if(_0x49c498&&(_0x4ada2d['schema']['isObject'](_0x49c498)||_0x4ada2d['schema']['isLimit'](_0x49c498)))continue;}const _0x19fd4e=_0xa89691['get'](_0x24893f),_0x4f487e=_0x50667d['get'](_0x24893f),_0x5ef015=_0x50667d['get'](_0x22ebfe),_0x4910d1=_0x24893f['commentThread']&&_0x24893f['commentThread']['length'],_0x1e0db9=_0x22ebfe['commentThread']&&_0x22ebfe['commentThread']['length'];if(!_0x4910d1&&_0x19fd4e(_0x5ef015,_0x4f487e))return _0x2c853b['_joinSuggestions'](_0x22ebfe,_0x24893f),_0x50667d['delete'](_0x24893f),!0x0;if(!_0x1e0db9&&_0x19fd4e(_0x4f487e,_0x5ef015))return _0x2c853b['_joinSuggestions'](_0x24893f,_0x22ebfe),_0x50667d['delete'](_0x22ebfe),!0x0;}return!0x1;}}['_joinSuggestions'](_0x511ed0,_0x4cf523){if(_0x511ed0['isMultiRange']){for(const _0x265341 of _0x4cf523['getRanges']())_0x511ed0['addRange'](_0x265341);}else{const _0x22c795=_0x4cf523['getFirstRange']()['end'];this['_setSuggestionRange'](_0x511ed0,this['_model']['createRange'](_0x511ed0['getFirstRange']()['start'],_0x22c795));}_0x4cf523['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5e8026,_0x1d420e){const _0x3939ac=_0x5e8026['startsWith']('format')||_0x5e8026['startsWith']('attribute')?'FORMATTING':_0x5e8026['toUpperCase']();return o(this['editor']['locale'],_0x1d420e+'_'+_0x3939ac+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5ca5c9=this['editor'];if(!_0x5ca5c9['ui'])return;const {ariaLiveAnnouncer:_0x221b6a}=_0x5ca5c9['ui'];_0x4bc611(this['_model'],({left:_0x5d70b2,entered:_0x37ef0c})=>{for(const _0x347f1b of _0x5d70b2){const {group:_0x1fb3eb,type:_0x58230a}=this['_splitMarkerName'](_0x347f1b['name']);if('suggestion'===_0x1fb3eb){_0x221b6a['announce'](this['_getMarkerAnnouncementText'](_0x58230a,'LEAVE'));break;}}for(const _0x3d1801 of _0x37ef0c){const {group:_0x4c2dd4,type:_0x1698bf}=this['_splitMarkerName'](_0x3d1801['name']);if('suggestion'===_0x4c2dd4){_0x221b6a['announce'](this['_getMarkerAnnouncementText'](_0x1698bf,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1f1da0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3e4266=this['editor'],_0x248e23=_0x3e4266['model']['document']['differ']['getChanges']();if(0x0==_0x248e23['length'])return!0x1;const _0x1d5968=[],_0x2cd405=_0x248e23['filter'](_0x16675d=>'attribute'==_0x16675d['type']),_0x1b4efc=_0x248e23['filter'](_0x45e4de=>'insert'==_0x45e4de['type']&&'$text'!=_0x45e4de['name']),_0x27f997=_0x248e23['filter'](_0x2b8417=>'remove'==_0x2b8417['type']&&'$text'!=_0x2b8417['name']);for(const _0x2e8689 of _0x2cd405)_0x1d5968['push']({'key':_0x2e8689['attributeKey'],'newValue':_0x2e8689['attributeNewValue'],'oldValue':_0x2e8689['attributeOldValue'],'range':Ot(_0x2e8689['range'],_0x3e4266['model'])});for(const _0xb89298 of _0x1b4efc){const _0xf81ecf=_0x27f997['find'](_0x3c3a4d=>_0x3c3a4d['position']['isEqual'](_0xb89298['position']));_0xf81ecf&&_0x1d5968['push']({'key':m,'newValue':_0xb89298['name'],'oldValue':_0xf81ecf['name'],'range':_0x3e4266['model']['createRangeOn'](_0xb89298['position']['nodeAfter'])});}return 0x0!=_0x1d5968['length']&&this['_reduceExistingSuggestions'](_0x1f1da0,_0x1d5968);}['_processAttributeSuggestions'](_0x4bbc5a){let _0x47777b=!0x1;const _0x204392=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x25d659=>_0x25d659['data']['newRange']&&_0x25d659['name']['startsWith']('suggestion:attribute:'));for(const _0x51b62b of _0x204392){const {subType:_0x55d6aa,id:_0x38fc44}=this['_splitMarkerName'](_0x51b62b['name']),_0x579a89=_0x55d6aa['split']('|')[0x0];for(const _0x344584 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x344584['id']!=_0x38fc44&&'attribute'==_0x344584['type']&&_0x344584['data']&&_0x344584['data']['key']==_0x579a89&&_0x344584['getFirstRange']()['isIntersecting'](_0x51b62b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x344584,_0x51b62b['data']['newRange'],_0x4bbc5a),_0x47777b=!0x0);}return _0x47777b;}['_recordAttributeChanges'](_0x2780f3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2780f3();}['_isRegisteredAttribute'](_0x24e459){const _0x5d361f=this['_isBlockAttribute'](_0x24e459),_0xb3721c=this['_inlineAttributeKeys']['has'](_0x24e459);return _0x5d361f||_0xb3721c;}['_reduceExistingSuggestions'](_0x18573e,_0x470f2a){if(0x0==_0x470f2a['length'])return!0x1;let _0x4b3cae=!0x1;for(const _0xf78286 of _0x470f2a){const _0x13aa94=this['_findSuggestions'](_0xf78286['range'],'attribute')['filter'](_0x4c8e67=>!_0x4c8e67['meta']['isNextTo'])['map'](_0x519fad=>_0x519fad['suggestion']),_0x459e73=_0x292a57({'newValue':_0xf78286['newValue']});_0x13aa94['filter'](_0x193204=>{const [_0x11e111,_0x369926]=_0x193204['subType']['split']('|');return _0x11e111==_0xf78286['key']&&_0x369926!=_0x459e73;})['forEach'](_0x36836e=>{this['_reduceSuggestionAttributeRange'](_0x36836e,_0xf78286['range'],_0x18573e),_0x4b3cae=!0x0;});}return _0x4b3cae;}['_reduceSuggestionAttributeRange'](_0x3af9dd,_0x249234,_0x18105){const _0x3c46d2=_0x3af9dd['getFirstRange']()['getDifference'](_0x249234);0x0!==_0x3c46d2['length']?0x1!==_0x3c46d2['length']?this['_breakSuggestionMarker'](_0x3af9dd,_0x249234['start'],_0x249234['end']):this['_setSuggestionRange'](_0x3af9dd,_0x3c46d2[0x0]):_0x18105['removeMarker'](_0x3af9dd['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x18b2c1){this['_editor']=_0x18b2c1,this['_model']=_0x18b2c1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x7a4b89,_0x1e870b,_0x1a30f2,_0x123b1c,_0x9b1a92,_0x69c161){return new u(this['_model'],{'type':_0x7a4b89,'subType':_0x1e870b,'id':_0x1a30f2,'author':_0x123b1c,'creator':_0x123b1c,'attributes':_0x9b1a92,'onAttributesChange':_0x69c161,'onAccept':(..._0x2dc7)=>this['getSuggestionCallback'](_0x7a4b89,_0x1e870b,'accept')(..._0x2dc7),'onDiscard':(..._0x1b2268)=>this['getSuggestionCallback'](_0x7a4b89,_0x1e870b,'discard')(..._0x1b2268)});}['registerCustomCallback'](_0x3539ec,_0x42010c,_0x50f301,_0x460a7c){const _0x44b958=_0x3539ec+':'+_0x42010c+':'+_0x50f301;this['_customCallbacks']['set'](_0x44b958,_0x460a7c);}['getSuggestionCallback'](_0x255d4b,_0x348cc3,_0x491e62){const _0x27decc=_0x255d4b+':'+_0x348cc3+':'+_0x491e62;return this['_customCallbacks']['get'](_0x27decc)||this['_defaultCallbacks']['get'](_0x255d4b+':'+_0x491e62);}['_registerDefaultCallbacks'](){const _0x11a1cb=()=>!0x1,_0x2ef8ab=_0x207238=>{_0x207238['sort']((_0x33d7cf,_0x715a50)=>_0x33d7cf['start']['isBefore'](_0x715a50['start'])?0x1:-0x1),this['_model']['change'](_0xc902ca=>{for(const _0x3c45e3 of _0x207238){let _0x20566a;_0x20566a=_0x3c45e3['end']['isAtEnd']&&_0x3c45e3['end']['parent']==_0x3c45e3['start']['nodeAfter']?_0xc902ca['createSelection'](_0x3c45e3['start']['nodeAfter'],'on'):_0xc902ca['createSelection'](_0x3c45e3),this['_model']['deleteContent'](_0x20566a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5d86eb=(_0xbdfbc5,_0x38a2ad)=>{_0x38a2ad&&this['_model']['change'](_0x46e6f9=>{const {commandName:_0x31bfae,commandParams:_0x8b6aab=[]}=_0x38a2ad,_0x3d6c24=_0xbdfbc5['map'](_0x17ea6e=>(Tt(_0x17ea6e)&&(_0x17ea6e=this['_model']['createRange'](_0x17ea6e['end'])),_0x17ea6e))['filter'](_0x4fc12d=>'$graveyard'!==_0x4fc12d['root']['rootName']);if(_0x3d6c24['length']<0x1)return;const _0x5df1e4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x46863a=>_0x5ac8f0['fromRange'](_0x46863a));_0x46e6f9['setSelection'](_0x3d6c24);for(const _0xa7a739 of this['_editor']['commands']['commands']())_0xa7a739['refresh']();_0x8b6aab['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31bfae,..._0x8b6aab);const _0x4f7914=_0x5df1e4['filter'](_0x2515dd=>'$graveyard'!=_0x2515dd['root']['rootName']);_0x4f7914['length']>0x0&&_0x46e6f9['setSelection'](_0x4f7914);for(const _0x2f2bcc of _0x5df1e4)_0x2f2bcc['detach']();});},_0x366c96=(_0x3b1ebf,_0x30012c)=>0x1==_0x3b1ebf['length']&&0x1==_0x30012c['length']&&_0x3b1ebf[0x0]['end']['isEqual'](_0x30012c[0x0]['start']),_0x567ca1=(_0x4b7080,_0x1b5d7c,_0x119b6b,_0x1954e5)=>Gt(_0x4b7080,_0x1b5d7c,_0x119b6b,_0x1954e5,this['_model'])?[_0x4b7080,_0x1b5d7c]:Gt(_0x1b5d7c,_0x4b7080,_0x1954e5,_0x119b6b,this['_model'])?[_0x1b5d7c,_0x4b7080]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x11a1cb),this['_defaultCallbacks']['set']('insertion:discard',_0x2ef8ab),this['_defaultCallbacks']['set']('insertion:join',_0x366c96),this['_defaultCallbacks']['set']('insertion:chain',_0x567ca1),this['_defaultCallbacks']['set']('deletion:accept',_0x2ef8ab),this['_defaultCallbacks']['set']('deletion:discard',_0x11a1cb),this['_defaultCallbacks']['set']('deletion:join',_0x366c96),this['_defaultCallbacks']['set']('deletion:chain',_0x567ca1),this['_defaultCallbacks']['set']('formatInline:accept',_0x5d86eb),this['_defaultCallbacks']['set']('formatInline:discard',_0x11a1cb),this['_defaultCallbacks']['set']('formatInline:join',_0x366c96),this['_defaultCallbacks']['set']('formatInline:chain',_0x11a1cb),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5d86eb),this['_defaultCallbacks']['set']('formatBlock:discard',_0x11a1cb),this['_defaultCallbacks']['set']('formatBlock:join',_0x366c96),this['_defaultCallbacks']['set']('formatBlock:chain',_0x11a1cb),this['_defaultCallbacks']['set']('attribute:accept',_0x11a1cb),this['_defaultCallbacks']['set']('attribute:discard',(_0x48634a,_0x588bbf)=>{if(!_0x588bbf)return;const _0x52ba2f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x32ceb9=>{if(_0x588bbf['key']==m)for(const _0xebc8b of _0x48634a){const _0x475d3d=_0xebc8b['start']['nodeAfter'],_0x3e4ccb=_0x588bbf['oldValue'];_0x32ceb9['rename'](_0x475d3d,_0x3e4ccb);}else{if(_0x52ba2f['_isBlockAttribute'](_0x588bbf['key'])){for(const _0x84a8db of _0x48634a)void 0x0!==_0x588bbf['oldValue']?_0x32ceb9['setAttribute'](_0x588bbf['key'],_0x588bbf['oldValue'],_0x84a8db['start']['nodeAfter']):_0x32ceb9['removeAttribute'](_0x588bbf['key'],_0x84a8db['start']['nodeAfter']);}else{for(const _0x1e893f of _0x48634a)_0x588bbf['oldValue']?_0x32ceb9['setAttribute'](_0x588bbf['key'],_0x588bbf['oldValue'],_0x1e893f):_0x32ceb9['removeAttribute'](_0x588bbf['key'],_0x1e893f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x366c96);}}function Rt(_0x50324c,_0x1fe798,_0x3baa56){for(const _0x553d58 of _0x1fe798['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x553d58['root']==_0x553d58)return!0x1;if(!_0x3baa56['containsItem'](_0x553d58))return!0x1;if(_0x50324c['isObject'](_0x553d58)||_0x50324c['isLimit'](_0x553d58))return!0x0;}return!0x1;}function Tt(_0x1dac23){return _0x1dac23['end']['parent']==_0x1dac23['start']['nodeAfter']&&_0x1dac23['end']['isAtStart'];}function Et(_0x2f47e0,_0x2aeb73,_0x473ce4,_0x32263d){const _0x15736e=_0x1a240d=>!_0x1a240d['item']['is']('$textProxy')&&!_0x32263d['isObject'](_0x1a240d['item']),_0x43a08a=_0x2f47e0['start']['getLastMatchingPosition'](_0x15736e),_0x4b7e2d=_0x2f47e0['end']['getLastMatchingPosition'](_0x15736e,{'direction':'backward'});return(!_0x2f47e0['start']['isEqual'](_0x43a08a)||!_0x2f47e0['end']['isEqual'](_0x4b7e2d))&&(_0x43a08a['isBefore'](_0x4b7e2d)?_0x473ce4['updateMarker'](_0x2aeb73,{'range':_0x473ce4['createRange'](_0x43a08a,_0x4b7e2d)}):_0x473ce4['removeMarker'](_0x2aeb73),!0x0);}function Vt(_0x52b555){return _0x292a57(_0x52b555);}function Ut(_0x219b42){const _0x488802=_0x219b42['start']['nodeAfter'];return _0x488802&&_0x488802['is']('element');}function Ot(_0x440279,_0xc685b6){return null==_0x440279['end']['nodeBefore']&&_0x440279['end']['parent']==_0x440279['start']['nodeAfter']?Ft(_0x440279['start']['nodeAfter'],_0xc685b6):_0x440279;}function Ft(_0x444fee,_0x5013ce){const _0x415832=_0x5013ce['schema']['isObject'](_0x444fee)||_0x5013ce['schema']['isSelectable'](_0x444fee);return _0x5013ce['createRange'](_0x5013ce['createPositionAt'](_0x444fee,'before'),_0x415832?_0x5013ce['createPositionAfter'](_0x444fee):_0x5013ce['createPositionAt'](_0x444fee,'end'));}function Gt(_0x441bbe,_0x256ae9,_0x4a960c,_0x5310f6,_0x5b1e9d){if(!Pt(_0x441bbe,_0x256ae9))return!0x1;if(_0x4a960c['end']['isEqual'](_0x5310f6['start']))return!0x0;if(_0x441bbe['type']!=_0x256ae9['type'])return!0x1;if(!_0x4a960c['end']['isTouching'](_0x5310f6['start']))return!0x1;const _0x5dc971=_0x5b1e9d['createRange'](_0x4a960c['end'],_0x5310f6['start'])['getWalker']();for(const _0x81c3b8 of _0x5dc971)if(['elementStart','elementEnd']['includes'](_0x81c3b8['type'])&&_0x5b1e9d['schema']['isLimit'](_0x81c3b8['item']))return!0x1;return!0x0;}function Pt(_0x474635,_0x54ee04,_0x540235=[]){return!(!_0x474635['_isDataLoaded']||!_0x54ee04['_isDataLoaded'])&&_0x29efb4(Bt(_0x474635['attributes'],_0x540235),Bt(_0x54ee04['attributes'],_0x540235));}function Lt(_0x13cd4c,_0x2c5861){const _0x367bc5=Ht(_0x13cd4c['attributes']),_0x47cde8=Ht(_0x2c5861);if(!_0x13cd4c['_isDataLoaded'])return!0x1;for(const _0x185196 of Object['keys'](_0x47cde8))if(!_0x29efb4(_0x367bc5[_0x185196],_0x47cde8[_0x185196]))return!0x1;return!0x0;}function Ht(_0x355b12){const _0x56517b=Object['assign']({},_0x355b12);return delete _0x56517b['skipNestingCheck'],delete _0x56517b['tablePasteChainId'],_0x56517b;}class oe extends _0x58d1e1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x7fd57a,_0xc121a6,_0x42f003,_0x19899f){super(),this['model']=_0xc121a6,this['view']=_0x42f003,this['commentThreadController']=_0x19899f,this['_editor']=_0x7fd57a,this['_acceptCommand']=_0x7fd57a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x7fd57a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xfdb2a0,_0x4c4528)=>_0xfdb2a0||_0x4c4528),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x23b9a2=>_0x23b9a2&&this['_editor']['model']['canEditAt'](_0xc121a6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x35ef95=>_0x35ef95&&this['_editor']['model']['canEditAt'](_0xc121a6['getRanges']())),this['_pendingAction']=null,_0x42f003['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x42f003,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x42f003,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x42f003,'change:isDirty',()=>{_0x42f003['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 _0x6cdf31=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x6cdf31);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xb662dc{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x1f5b85,_0x49f85c,_0x472a55,_0xe9d015){super(_0x1f5b85),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x49f85c['authoredAt']),this['bind']('authoredAt')['to'](_0x49f85c),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x49f85c,this['_localUser']=_0x472a55,this['_config']=_0xe9d015,_0xe9d015['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:_0xaa6fe9}=this['_config'];this['commentsListView']=new _0xaa6fe9(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',_0x2eb200=>_0x2eb200+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1303c7,_0x189bbc)=>_0x1303c7||!!_0x189bbc);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x367dc3}=this['_config'],_0xf0d5b2=new _0x367dc3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x355842=_0xf0d5b2['commentInputView'];return _0xf0d5b2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x355842,'value',(_0x1873ca,_0x21a361,_0x4f5c45)=>!!_0x4f5c45||_0x1873ca&&!_0x21a361),_0x355842['on']('submit',(_0x3125ce,_0x4b0748)=>{this['fire']('addComment',_0x4b0748),_0x355842['editor']['setData']('');}),_0x355842['on']('cancel',()=>this['focus']()),_0x355842['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xf0d5b2;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x697593,_0x493845,_0x2a7454,_0x11a8cd){super(_0x697593,_0x493845,_0x2a7454,_0x11a8cd),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3d2ded=>_0x3d2ded&&_0x3d2ded[0x0]?_0x3d2ded[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xf8b5e0,_0xfee1af)=>{let _0xf77dbd='';for(const _0x48bca3 of _0xf8b5e0)_0xf77dbd+='<p>'+ds(_0x48bca3['content'],_0x48bca3['color'])+'</p>';return _0xfee1af?_0xf77dbd:_0x1dfeb8(_0xf77dbd,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x697593,'Accept\x20suggestion'),_0x2b6142['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x697593,'Discard\x20suggestion'),_0x2b6142['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3c0e1e(_0x697593,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1b5fc1=this['bindTemplate'],_0xa5d450=[{'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':_0x1b5fc1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1b5fc1['to']('authoredAt',_0x4392b6=>this['_config']['formatDateTime'](_0x4392b6))}]}]},{'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']&&_0xa5d450['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5af1d3={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1b5fc1['if']('isActive','ck-suggestion-wrapper--active'),_0x1b5fc1['to']('type',_0x32df50=>'ck-suggestion-'+_0x32df50),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':_0xa5d450}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5af1d3['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)),_0x5af1d3;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1c491a,_0x6cc13a,_0x46f446)=>{this['_descriptionElement']['innerHTML']=_0x46f446;});}['_createButton'](_0x391065,_0x23c249,_0x1f3f21,_0x148788,_0x3bd8ee){const _0x2fe5d0=new _0x31aced(this['locale']);return _0x2fe5d0['set']({'label':_0x391065,'icon':_0x23c249,'tooltip':!0x0,'tooltipPosition':_0x3bd8ee}),_0x2fe5d0['extendTemplate']({'attributes':{'class':_0x1f3f21}}),_0x2fe5d0['on']('execute',()=>{this['fire'](_0x148788,this['_model']['id']);}),_0x2fe5d0;}['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(_0x1b3b35,_0x5a9d34){let _0x5a2563='';return _0x5a2563+=_0x1b3b35['split']('*')['map']((_0x56d21c,_0x410c74)=>_0x410c74%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x56d21c)+'</span>':us(_0x56d21c))['join'](''),_0x5a9d34&&(_0x5a2563+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5a9d34['value']+'\x22\x20title=\x22'+_0x5a9d34['title']+'\x22></span>'),_0x5a2563;}function us(_0x2ee3ff){const _0x17e1bd=document['createElement']('span');return _0x17e1bd['innerText']=_0x2ee3ff,_0x17e1bd['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 _0x5a6596{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5a5bef,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4bf144){super(_0x4bf144),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x26deab=this['editor']['config'];_0x26deab['define']('trackChanges.SuggestionThreadView',ne),_0x26deab['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x26deab['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4f25bd,_0x5ab9b2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b8e6f,_0x17b933]of this['_handleControllerBuffer']){const _0x4dda4d=this['_suggestionToController']['has'](_0x4b8e6f);_0x4dda4d||_0x17b933?_0x4dda4d&&_0x17b933&&this['_destroyController'](_0x4b8e6f):this['_initializeController'](_0x4b8e6f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4f25bd,_0x5ab9b2);}['init'](){const _0x567876=this['editor'],_0x44b1dd=_0x567876['plugins']['get']('TrackChangesEditing'),_0x5e9d53=_0x567876['plugins']['get']('Annotations'),_0x37107f=_0x567876['plugins']['get']('EditorAnnotations'),_0x39418b=_0x567876['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x37107f['addSourceCollector'](()=>{const _0x56f2a7=[];for(const [_0x47c7fb,_0x905829]of Array['from'](this['_suggestionToController'])){const _0x2d9602=_0x47c7fb['getAllAdjacentSuggestions'](),_0x4889cd=[];for(const _0x545b66 of _0x2d9602){if(!_0x545b66['isInContent'])continue;if(_0x545b66['isMultiRange']){_0x4889cd['push'](..._0x545b66['getRanges']());continue;}const _0x3ec84b=_0x545b66['getFirstRange']();if(_0x4889cd['length']>0x0){const _0x5cc520=_0x4889cd[0x0]['getJoined'](_0x3ec84b);if(_0x5cc520){_0x4889cd[0x0]=_0x5cc520;continue;}}_0x4889cd['push'](_0x3ec84b);}_0x56f2a7['push']([_0x905829['view'],_0x4889cd]);}return _0x56f2a7;}),this['listenTo'](_0x44b1dd,'suggestionLoaded',(_0x1b6355,_0x498260)=>{this['listenTo'](_0x498260,'change:previous',(_0x5f3175,_0x280ff6,_0xa38060,_0x44c4ab)=>{_0x498260['isInContent']&&(null==_0xa38060?(this['_updateController'](_0x44c4ab['head']),this['_handleSuggestionControllerDelayed'](_0x498260,!0x1)):(this['_updateController'](_0xa38060['head']),null==_0x44c4ab&&this['_handleSuggestionControllerDelayed'](_0x498260,!0x0)));}),null!==_0x498260['previous']?this['_updateController'](_0x498260['head']):this['_handleSuggestionControllerDelayed'](_0x498260,!0x1);}),this['listenTo'](_0x44b1dd,'suggestionUnloaded',(_0x3fc87b,_0x3bcc3e,_0x411df5)=>{this['stopListening'](_0x3bcc3e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3bcc3e),this['_suggestionToController']['has'](_0x3bcc3e)&&this['_destroyController'](_0x3bcc3e),_0x411df5&&this['_updateController'](_0x411df5['head']);}),this['listenTo'](_0x44b1dd,'suggestionChanged',(_0x229ebf,_0x4a4523)=>{this['_updateController'](_0x4a4523);}),this['listenTo'](_0x5e9d53,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39418b,'addComment',(_0x2e65f8,{threadId:_0x1a55ea,isFromAdapter:_0x27a7a2})=>{if(_0x27a7a2||!_0x44b1dd['hasSuggestion'](_0x1a55ea))return;const _0x78e8f3=_0x44b1dd['getSuggestion'](_0x1a55ea);this['_suggestionToController']['get'](_0x78e8f3)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2edca8=this['editor']['plugins']['get']('Annotations'),_0x2f219f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14d8db=Array['from'](_0x2edca8['activeAnnotations'],_0x47d4bb=>_0x47d4bb['innerView'])['filter'](_0x309c61=>this['_viewToController']['has'](_0x309c61)),_0x3676b5=[];for(const _0x48cb0e of _0x14d8db){const _0x3398f2=this['_viewToController']['get'](_0x48cb0e)['model']['getAllAdjacentSuggestions']();_0x3676b5['push'](..._0x3398f2['reduce']((_0x337d30,_0x50ccdb)=>[..._0x337d30,..._0x50ccdb['getMarkerNames']()],[]));}_0x2f219f['activeMarkers']=_0x3676b5;}['_addUIComponentsToFactory'](){const _0x187b5f=this['editor'],_0x479dde=_0x187b5f['locale'],_0x1e02f7=o(_0x479dde,'Track\x20changes'),_0x7c2dcc=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1e02f7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x479dde,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x479dde,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x479dde,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x479dde,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x151363 of _0x7c2dcc)if(ae(_0x151363)){const _0x20ebf9=_0x187b5f['commands']['get'](_0x151363['model']['commandName']);_0x151363['model']['bind']('isOn','isEnabled')['to'](_0x20ebf9,'value','isEnabled');}_0x187b5f['ui']['componentFactory']['add']('trackChanges',_0x114b32=>this['_createToolbarButton'](_0x114b32,_0x7c2dcc,_0x1e02f7)),_0x187b5f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x17ab21=>this['_createMenuBarMenu'](_0x17ab21,_0x7c2dcc,_0x1e02f7));}['_createToolbarButton'](_0x47beb5,_0x109d3f,_0x3191fd){const _0x2609d8=zt(_0x47beb5,Zt),_0x59ed2a=this['editor']['commands']['get']('trackChanges');_0x2609d8['buttonView']['set']({'tooltip':_0x3191fd,'label':_0x3191fd,'icon':ie}),_0x2609d8['buttonView']['bind']('isOn')['to'](_0x59ed2a,'value'),_0x2609d8['buttonView']['on']('execute',()=>{_0x59ed2a['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2609d8,_0x109d3f,{'role':'menu'});const _0x22afe8=[];for(const _0xda1071 of _0x109d3f)ae(_0xda1071)&&_0x22afe8['push'](this['editor']['commands']['get'](_0xda1071['model']['commandName']));const _0xa85878=_0x2609d8['buttonView'];return _0xa85878['actionView']['unbind']('isEnabled'),_0xa85878['arrowView']['unbind']('isEnabled'),_0xa85878['actionView']['bind']('isEnabled')['to'](_0x59ed2a,'isEnabled'),_0xa85878['arrowView']['bind']('isEnabled')['toMany'](_0x22afe8,'isEnabled',(..._0x52174d)=>_0x52174d['some'](_0x23fa4c=>_0x23fa4c)),_0x2609d8['on']('execute',_0x145d12=>{this['editor']['execute'](_0x145d12['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2609d8;}['_createMenuBarMenu'](_0x22e0a6,_0x89003a,_0x3928e4){const _0x1de5fb=new Kt(_0x22e0a6),_0xb7acb5=this['editor']['commands']['get']('trackChanges');_0x1de5fb['buttonView']['set']({'label':_0x3928e4,'icon':ie});const _0x19bd9a=new Qt(_0x22e0a6);for(const _0x22ccaf of _0x89003a){if('separator'==_0x22ccaf['type']){_0x19bd9a['items']['add'](new Jt(_0x22e0a6));continue;}const _0x5e1755=new Xt(_0x22e0a6,_0x1de5fb),_0x32fbed=new Yt(_0x22e0a6),_0x7c1f3b=_0x22ccaf['model'];_0x32fbed['bind'](...Object['keys'](_0x7c1f3b))['to'](_0x7c1f3b),_0x32fbed['delegate']('execute')['to'](_0x1de5fb),_0x32fbed['on']('execute',()=>{this['editor']['execute'](_0x7c1f3b['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e1755['children']['add'](_0x32fbed),_0x19bd9a['items']['add'](_0x5e1755);}return _0x1de5fb['bind']('isEnabled')['to'](_0xb7acb5,'isEnabled'),_0x1de5fb['panelView']['children']['add'](_0x19bd9a),_0x1de5fb;}['_initializeController'](_0xdb707b){const _0x1d8055=this['editor'],_0x43e948=_0x1d8055['config'],_0x15a353=_0x1d8055['plugins']['get']('Annotations'),_0x1aa76a=_0x1d8055['plugins']['get']('CommentsRepository'),_0x55692c=_0x1d8055['plugins']['get']('EditorAnnotations'),_0x165b33=_0x1d8055['plugins']['get'](_0x5a5bef)['me'],_0x4fc0bd=_0x43e948['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1c89dd,CommentThreadInputView:_0x1c2d20}=_0x1d8055['plugins']['get']('CommentsUI');let _0x4e7985,_0x45a4dc;this['_annotationViews']['has'](_0xdb707b['id'])?(_0x45a4dc=this['_annotationViews']['get'](_0xdb707b['id']),_0x4e7985=_0x45a4dc['mainView']):(_0x4e7985=new _0x4fc0bd(_0x1d8055['locale'],_0xdb707b,_0x165b33,{'disableComments':this['_disableComments'],'editorConfig':_0x43e948['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x43e948['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x43e948['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x43e948['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x496b5f(_0x43e948['get']('locale')),'CommentView':_0x43e948['get']('comments')['CommentView'],'CommentsListView':_0x1c89dd,'CommentThreadInputView':_0x1c2d20}),_0x4e7985['acceptButton']['on']('execute',()=>{_0x1d8055['editing']['view']['focus']();}),_0x4e7985['discardButton']['on']('execute',()=>{_0x1d8055['editing']['view']['focus']();}),_0x45a4dc=_0x15a353['createAnnotationView'](this['editor']['locale'],_0x4e7985),_0x45a4dc['bind']('isDirty')['to'](_0x4e7985,'isDirty'),_0x45a4dc['bind']('length')['to'](_0x4e7985),_0x45a4dc['bind']('type')['to'](_0x4e7985,'type',_0xb6067f=>'suggestion-'+_0xb6067f),this['_annotationViews']['set'](_0xdb707b['id'],_0x45a4dc));const _0x2940a3=_0x1aa76a['createCommentThreadController'](_0xdb707b['commentThread'],_0x4e7985),_0x71ac6=new oe(_0x1d8055,_0xdb707b,_0x4e7985,_0x2940a3),_0x2d099b=_0xdb707b['getAllAdjacentSuggestions']()['filter'](_0x3393ba=>_0x3393ba['isInContent']);_0x4e7985['descriptionParts']=_0x1d8055['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2d099b),this['_suggestionToController']['set'](_0xdb707b,_0x71ac6),this['_viewToController']['set'](_0x4e7985,_0x71ac6);const _0x376574=_0x15a353['createAnnotation']({'view':_0x45a4dc,'target':()=>{const _0x5628bd=[],_0x136ce0=_0xdb707b['getAllAdjacentSuggestions']()['filter'](_0x522465=>_0x522465['isInContent']);for(const _0xf768df of _0x136ce0)_0x5628bd['push'](..._0xf768df['getMarkers']());return _0x508baf(_0x1d8055['editing'],_0x5628bd);},'type':()=>'suggestion-'+_0x71ac6['view']['type']});_0x1aa76a['_bindAnnotationToEditors'](_0x4e7985,_0x376574),_0x15a353['add'](_0x376574),_0x55692c['registerAnnotation'](_0x376574);}['_destroyController'](_0x2d9efc){const _0x278a3c=this['editor']['plugins']['get']('CommentsRepository'),_0x28729c=this['editor']['plugins']['get']('Annotations'),_0x1fc8c3=this['_suggestionToController']['get'](_0x2d9efc),_0x1f6ed2=_0x1fc8c3['view'],_0x15fff5=_0x28729c['getByInnerView'](_0x1f6ed2);_0x278a3c['_unbindEditors'](_0x1f6ed2),_0x15fff5&&_0x28729c['remove'](_0x15fff5),this['_suggestionToController']['delete'](_0x2d9efc),this['_viewToController']['delete'](_0x1f6ed2),_0x1fc8c3['destroy']();}['_updateController'](_0x590b04){if(!_0x590b04['isInContent']||!this['_suggestionToController']['has'](_0x590b04))return;const _0x13d608=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53ac95=this['_suggestionToController']['get'](_0x590b04),_0x51f011=_0x590b04['getAllAdjacentSuggestions']();_0x53ac95['view']['descriptionParts']=_0x13d608['descriptionFactory']['getDescriptions'](_0x51f011);}['destroy'](){for(const _0x11191f of this['_suggestionToController']['keys']())this['_destroyController'](_0x11191f);for(const _0x140d16 of this['_annotationViews']['values']())_0x140d16['mainView']['destroy']();super['destroy']();}}function ae(_0x1435f2){return'model'in _0x1435f2;}class k extends _0x5a6596{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x948141){this['editor']['plugins']['get'](p)['adapter']=_0x948141;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x53b064){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x53b064);}['getSuggestions']({skipNotAttached:_0x313076=!0x1,toJSON:_0x173b3d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x313076,'toJSON':_0x173b3d});}['getSuggestion'](_0x4c523c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4c523c);}}const T=['Pagination'];class P extends _0x5a6596{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4d47e2=this['editor'];if(_0x4d47e2['config']['define']('trackChangesData.editorCreator',_0x2e72fd=>{const _0x38d188=_0x4d47e2['model']['document']['getRootNames']()['reduce']((_0x105ea4,_0x333af3)=>(_0x105ea4[_0x333af3]='',_0x105ea4),{});return _0x4d47e2['constructor']['create'](_0x38d188,_0x2e72fd);}),'function'!=typeof _0x4d47e2['config']['get']('trackChangesData')['editorCreator'])throw new _0x32dc20('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xcc5c6){return N(this['editor'],!0x0,_0xcc5c6);}['getDataWithDiscardedSuggestions'](_0x21319b){return N(this['editor'],!0x1,_0x21319b);}}class D extends _0x5a6596{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x482b92){super(_0x482b92),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(_0x20746d){return void 0x0!==_0x20746d['getRootsAttributes'];}async function N(_0x59563c,_0x46d935,_0x7c44e9){const _0x452000=_0x398fd1(_0x59563c,T);_0x452000['plugins']['push'](p,D),_0x452000['rootsAttributes']=v(_0x59563c)?_0x59563c['getRootsAttributes']():void 0x0;const _0x385849=document['createDocumentFragment'](),_0x538b52=_0x59563c['config']['get']('trackChangesData')['editorCreator'],_0x4329fd=await _0x538b52(_0x452000,()=>function(_0x340ebd){const _0x528fb2=document['createElement']('div');return _0x340ebd['appendChild'](_0x528fb2),_0x528fb2;}(_0x385849));!function(_0x33747a,_0x53bc0a){const _0x3926dc=_0x33747a['model']['document']['getRootNames']()['reduce']((_0x2f8dbc,_0x31c6ea)=>(_0x2f8dbc[_0x31c6ea]=_0x33747a['data']['get']({'rootName':_0x31c6ea}),_0x2f8dbc),{}),_0x15a69a=_0x33747a['plugins']['get']('Users')['users']['map'](_0x312a1b=>({'id':_0x312a1b['id'],'name':_0x312a1b['name']})),_0x1daa95=_0x33747a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x199b7b=_0x33747a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x58d471=_0x53bc0a['plugins']['get']('Users'),_0x2509e4=_0x53bc0a['plugins']['get']('TrackChangesEditing'),_0x4b958b=_0x53bc0a['plugins']['get']('CommentsRepository');for(const _0x4cd1c8 of _0x15a69a)_0x58d471['getUser'](_0x4cd1c8['id'])||_0x58d471['addUser'](_0x4cd1c8);_0x58d471['me']||_0x58d471['useAnonymousUser']();for(const _0x5ca78e of _0x1daa95)_0x2509e4['addSuggestionData'](_0x5ca78e);for(const _0x4fa59d of _0x199b7b)_0x4b958b['addCommentThread'](_0x4fa59d);_0x53bc0a['data']['set'](_0x3926dc);}(_0x59563c,_0x4329fd),_0x4329fd['execute'](_0x46d935?'acceptAllSuggestions':'discardAllSuggestions');const _0x2b3172=v(_0x4329fd)?_0x4329fd['getFullData'](_0x7c44e9):_0x4329fd['data']['get'](_0x7c44e9);return await _0x4329fd['destroy'](),_0x2b3172;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x3604c0,PendingActions as _0x1c12b1,icons as _0x55c0be}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3ea53d,ObservableMixin as _0x2bbc65,uid as _0x249608,insertToPriorityArray as _0x4468ce,priorities as _0x191c35,logWarning as _0x2990fd,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1055ae,View as _0x5208bb,ButtonView as _0x4b8469,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 _0x17d150,hashObject as _0x4cbba9,surroundingMarkersDetector as _0x3d4169,trimHtml as _0x428f1d,UserView as _0x4889ed,getDateTimeFormatter as _0x157bed,getAllMarkersDomElementsSorted as _0x469787,sanitizeEditorConfig as _0x153cbc}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2a3886,LiveRange as _0x216293,LivePosition as _0x38d187}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x261d74,toWidget as _0x429583}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x58a3d9,set as _0x4701e4,isEqual as _0x37ffe1,unset as _0x392f8b,omit as Bt}from'lodash-es';import{Delete as _0xa61eed,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xcd0ac7,ShiftEnter as _0x4ad629}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x499f3f,_0x5052d6){super(_0x499f3f),this['_enabledCommands']=_0x5052d6,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 _0x47eb62 of this['editor']['commands']['commands']())_0x47eb62['affectsData']&&!this['_enabledCommands']['has'](_0x47eb62)&&_0x47eb62['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x24e779 of this['editor']['commands']['commands']())_0x24e779['affectsData']&&!this['_enabledCommands']['has'](_0x24e779)&&_0x24e779['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x4b7c71,_0x5a7857){super(_0x4b7c71),this['_suggestions']=_0x5a7857,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3874f2){const _0x190fff=this['_suggestions']['get'](_0x3874f2);if(!_0x190fff)throw new _0x3ea53d('track-changes-accept-suggestion-not-found',this);const _0x3407d4=_0x190fff['getRanges']();this['editor']['model']['canEditAt'](_0x3407d4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x190fff);}}class B extends ts{['_suggestions'];constructor(_0x4f63d4,_0x5342ee){super(_0x4f63d4),this['_suggestions']=_0x5342ee,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2a6fa4){const _0x42d4cc=this['_suggestions']['get'](_0x2a6fa4);if(!_0x42d4cc)throw new _0x3ea53d('track-changes-discard-suggestion-not-found',this);const _0x1cef1d=_0x42d4cc['getRanges']();this['editor']['model']['canEditAt'](_0x1cef1d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x42d4cc);}}function ss(_0x38e69c){return _0x38e69c['sort']((_0x1cdd6d,_0x538408)=>'deletion'==_0x1cdd6d['type']&&'deletion'!=_0x538408['type']?-0x1:'deletion'!=_0x1cdd6d['type']&&'deletion'==_0x538408['type']?0x1:0x0);}function to(_0x4b0de0,_0x49b739){let _0x19e513,_0xfb776c=0x0;const _0x4524e4=[],_0x57892a=_0x49b739['schema'];for(;_0xfb776c<_0x4b0de0['length'];){const _0x2475aa=_0x4b0de0[_0xfb776c],_0x51ecf2=_0x4b0de0[_0xfb776c+0x1];_0x19e513||(_0x19e513=_0x49b739['createPositionBefore'](_0x2475aa)),co(_0x49b739,_0x2475aa,_0x51ecf2)||(_0x4524e4['push'](_0x49b739['createRange'](_0x19e513,_0x57892a['isObject'](_0x2475aa)?_0x49b739['createPositionAfter'](_0x2475aa):_0x49b739['createPositionAt'](_0x2475aa,'end'))),_0x19e513=null),_0xfb776c++;}return _0x4524e4;}function co(_0x44950b,_0x2021ce,_0x53048e){if(!_0x53048e)return!0x1;const _0x1d7f7b=_0x44950b['createPositionAfter'](_0x2021ce),_0x538bb1=_0x44950b['createPositionBefore'](_0x53048e);return _0x1d7f7b['isTouching'](_0x538bb1);}function rs(_0x161122,_0x3775a1,_0x3f4d53){for(;_0x3f4d53['length'];){const _0xd5bca5=_0x3f4d53['splice'](0x0,0x64);_0x161122['change'](()=>{for(const _0x141e70 of _0xd5bca5)_0x141e70['isInContent']&&_0x3775a1['execute'](_0x141e70['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x2b8d8d,_0x54b018,_0x5850e4){super(_0x2b8d8d),this['_command']=_0x54b018,this['_suggestions']=_0x5850e4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1cd5a9=Array['from'](this['_suggestions']['values']())['some'](_0x2d4440=>_0x2d4440['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1cd5a9;}['execute'](){const _0x4d1478=ss(Array['from'](this['_suggestions']['values']()));for(const _0x220f5d of _0x4d1478){const _0x21a94a=_0x220f5d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x21a94a))return;}rs(this['editor']['model'],this['_command'],_0x4d1478);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x266b93,_0x5f32e6,_0x4950ab){super(_0x266b93),this['_command']=_0x5f32e6,this['_suggestions']=_0x4950ab,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xbb1be3=this['editor']['model']['document']['selection'],_0x48fa19=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x570414,_0x989d55){const _0xe05335=Array['from'](_0x570414['getRanges']()),_0xb83849=new Set();for(const _0xdfcf12 of _0x989d55)if(_0xdfcf12['isInContent']){for(const _0x3ba650 of _0xe05335)for(const _0x3aa6dc of _0xdfcf12['getRanges']())(_0x3ba650['isIntersecting'](_0x3aa6dc)||_0x570414['isCollapsed']&&!_0xdfcf12['isMultiRange']&&_0xdfcf12['next']&&_0x3aa6dc['end']['isTouching'](_0x3ba650['start']))&&_0xb83849['add'](_0xdfcf12);}return _0xb83849;}(_0xbb1be3,_0x48fa19),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x552f7a=ss(Array['from'](this['_selectedSuggestions']));for(const _0x46b810 of _0x552f7a){const _0x38104c=_0x46b810['getRanges']();if(!this['editor']['model']['canEditAt'](_0x38104c))return;}rs(this['editor']['model'],this['_command'],_0x552f7a);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2bbc65(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x43b2fc,_0x166bd9){super(),this['id']=_0x166bd9['id'],this['type']=_0x166bd9['type'],this['subType']=_0x166bd9['subType']||null,this['author']=_0x166bd9['author'],this['creator']=_0x166bd9['creator']||_0x166bd9['author'],this['isExternal']=Boolean(_0x166bd9['attributes']&&_0x166bd9['attributes']['@external']),this['data']=null,this['_model']=_0x43b2fc,this['_onAccept']=_0x166bd9['onAccept'],this['_onDiscard']=_0x166bd9['onDiscard'],this['_onAttributesChange']=_0x166bd9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x166bd9['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 _0x499601=this;for(;_0x499601['previous'];)_0x499601=_0x499601['previous'];return _0x499601;}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'](_0x7f93a6){this['_markerNames']['add'](_0x7f93a6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x371799=>this['_model']['markers']['get'](_0x371799))['filter'](_0x23b362=>_0x23b362);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1cff6e=>{for(const _0x83af12 of this['getMarkers']())_0x1cff6e['removeMarker'](_0x83af12);}),this['_markerNames']['clear']();}['removeMarker'](_0x532f2b){this['_model']['change'](_0x22e8bf=>{_0x22e8bf['removeMarker'](_0x532f2b);}),this['_markerNames']['delete'](_0x532f2b);}['addRange'](_0x271d50){const _0x5af60a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5af60a),this['_model']['change'](_0x2e9e17=>{_0x2e9e17['addMarker'](_0x5af60a,{'range':_0x271d50,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1164af){for(const _0x191ec5 of this['getRanges']())if(_0x191ec5['isIntersecting'](_0x1164af))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3a0536=>_0x3a0536['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xa75288,_0x3cd209)=>[..._0xa75288,..._0x3cd209['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2409ee=this['getRanges']();if(0x1!=_0x2409ee['length'])return null;const _0x46793c=_0x2409ee[0x0],_0x3c8414=_0x46793c['start']['nodeAfter'],_0x168f9e=_0x46793c['end']['nodeBefore'];return _0x3c8414 instanceof _0x2a3886?_0x3c8414!=_0x168f9e?null:_0x3c8414: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 _0x380d04=[];let _0x2312fb=this['head'];for(;_0x2312fb;)_0x380d04['push'](_0x2312fb),_0x2312fb=_0x2312fb['next'];return _0x380d04;}['setAttribute'](_0x9dadcf,_0x1bfefa){const _0x24749e=_0x58a3d9(this['attributes']);_0x4701e4(_0x24749e,_0x9dadcf,_0x1bfefa),_0x37ffe1(_0x24749e,this['attributes'])||(this['attributes']=_0x24749e,this['_onAttributesChange'](_0x24749e));}['removeAttribute'](_0x4c96ff){const _0x455e8d=_0x58a3d9(this['attributes']);_0x392f8b(_0x455e8d,_0x4c96ff),_0x37ffe1(_0x455e8d,this['attributes'])||(this['attributes']=_0x455e8d,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 _0x249608()['substr'](0x1,0x5);}}function o(_0x86c11a,_0x3d3777,_0x235d7d){const t=_0x86c11a['t'];switch(_0x3d3777){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',_0x235d7d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x235d7d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x235d7d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x235d7d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x235d7d);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',_0x235d7d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x235d7d);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',_0x235d7d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x235d7d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x235d7d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x235d7d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x235d7d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x235d7d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x235d7d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x235d7d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x235d7d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x235d7d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x235d7d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x235d7d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x235d7d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x235d7d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x235d7d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x235d7d);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'},_0x235d7d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x235d7d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x235d7d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x235d7d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x235d7d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x235d7d);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'},_0x235d7d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x235d7d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x235d7d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x235d7d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x235d7d);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'},_0x235d7d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x235d7d);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'},_0x235d7d);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'},_0x235d7d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x235d7d);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'},_0x235d7d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x235d7d);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'},_0x235d7d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x235d7d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x235d7d);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'},_0x235d7d);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'},_0x235d7d);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 _0x3d3777;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2409d4,_0x1af75b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2409d4,this['_locale']=_0x1af75b;}['getDescriptions'](_0x2fb877){const _0x30c92e=[],_0x2e0979=new Set(),_0x492a00=new Set();for(let _0x50dfac=0x0;_0x50dfac<_0x2fb877['length'];_0x50dfac++){const _0x5a6f12=_0x2fb877[_0x50dfac];if(!_0x5a6f12['isInContent'])continue;const _0x162116=this['_handleCustomCallbackDescription'](_0x5a6f12);if(_0x162116){if(null!=_0x5a6f12['subType']){if(_0x2e0979['has'](_0x5a6f12['subType']))continue;_0x2e0979['add'](_0x5a6f12['subType']);}_0x30c92e['push'](_0x162116);}else{if('attribute'!=_0x5a6f12['type'])'insertion'!=_0x5a6f12['type']&&'deletion'!=_0x5a6f12['type']||this['_handleInsertRemoveSuggestionDescription'](_0x30c92e,_0x5a6f12,_0x2fb877[_0x50dfac+0x1]);else{const _0x5c5dea=_0x5a6f12['data']['key'];if(_0x492a00['has'](_0x5c5dea))continue;_0x492a00['add'](_0x5a6f12['data']['key']),_0x5c5dea==m?this['_handleRenameSuggestionDescription'](_0x30c92e,_0x5a6f12):this['_handleAttributeSuggestionDescription'](_0x30c92e,_0x5a6f12);}}}return this['_resolveDescriptionItems'](_0x30c92e);}['registerDescriptionCallback'](_0x3e9653){this['_customCallbacks']['push'](_0x3e9653);}['registerElementLabel'](_0x17f6f2,_0x3e4283,_0xa6aef=_0x191c35['normal']){'function'==typeof _0x17f6f2?_0x4468ce(this['_itemLabelsCallbacks'],{'matchingCallback':_0x17f6f2,'label':_0x3e4283,'priority':_0xa6aef}):this['_itemLabels']['set'](_0x17f6f2,_0x3e4283);}['registerAttributeLabel'](_0x51943b,_0x5b9985){this['_attributeLabels']['set'](_0x51943b,_0x5b9985);}['getItemLabel'](_0x293dd8,_0x12798b=0x1){let _0x2bb2db;for(const _0x6834e3 of this['_itemLabelsCallbacks'])if(_0x6834e3['matchingCallback'](_0x293dd8)){_0x2bb2db=_0x6834e3['label'];break;}return _0x2bb2db||(_0x2bb2db=this['_itemLabels']['get'](_0x293dd8['name'])),_0x2bb2db?_0x2bb2db(_0x12798b):0x1!==_0x12798b?_0x12798b+'\x20'+_0x293dd8['name']+'s':''+_0x293dd8['name'];}['_addDescriptionItems'](_0x476f6d,_0x555770){const _0x2f7408=_0x555770['getFirstRange']()['getWalker'](),_0x32e517='insertion'==_0x555770['type']?'add':'remove';for(const _0xd392da of _0x2f7408){const _0x449e50=_0xd392da['item'],_0x4f3c03=_0x476f6d[_0x476f6d['length']-0x1];if(_0x449e50['is']('$textProxy'))_0x4f3c03&&_0x4f3c03['type']['indexOf']('Container')>-0x1&&_0x476f6d['pop'](),_0x4f3c03&&'text'==_0x4f3c03['type']?_0x4f3c03[_0x32e517]+=_0x449e50['data']:_0x476f6d['push']({'type':'text','add':'add'==_0x32e517?_0x449e50['data']:'','remove':'remove'==_0x32e517?_0x449e50['data']:''});else{if(this['_schema']['isObject'](_0x449e50)){const _0x232ae1=_0x449e50;if(_0x4f3c03&&_0x4f3c03['type']['indexOf']('Container')>-0x1&&_0x476f6d['pop'](),'elementEnd'==_0xd392da['type'])continue;_0x4f3c03&&_0x4f3c03['type']==_0x32e517+'Object'&&_0x4f3c03['element']['name']==_0x232ae1['name']?_0x4f3c03['quantity']++:_0x476f6d['push']({'type':_0x32e517+'Object','element':_0x232ae1,'quantity':0x1}),_0x2f7408['skip'](_0x131703=>!('elementEnd'==_0x131703['type']&&_0x131703['item']==_0x449e50));}else{if(this['_schema']['checkChild'](_0x449e50,'$text')||_0x449e50['is']('element','softBreak')){const _0x7eb400=_0x449e50;if('add'==_0x32e517&&'elementStart'==_0xd392da['type']||'remove'==_0x32e517&&'elementEnd'==_0xd392da['type'])continue;if(_0x4f3c03&&-0x1==_0x4f3c03['type']['indexOf']('Container')){'text'==_0x4f3c03['type']&&(_0x4f3c03[_0x32e517]+='\x0a');continue;}let _0x35c12e;if(_0x35c12e='add'==_0x32e517?_0x7eb400['nextSibling']&&!this['_schema']['isObject'](_0x7eb400['nextSibling'])?_0x7eb400['nextSibling']:null:_0x7eb400['previousSibling']&&!this['_schema']['isObject'](_0x7eb400['previousSibling'])?_0x7eb400['previousSibling']:null,_0x7eb400['isEmpty']||_0x35c12e&&_0x35c12e['isEmpty']){const _0x3dd6a4=_0x35c12e&&_0x35c12e['isEmpty']?_0x35c12e:_0x7eb400;_0x4f3c03&&_0x4f3c03['type']==_0x32e517+'EmptyContainer'&&_0x4f3c03['element']['name']==_0x3dd6a4['name']?_0x4f3c03['quantity']++:_0x476f6d['push']({'type':_0x32e517+'EmptyContainer','element':_0x3dd6a4,'quantity':0x1});}else _0x476f6d['push']({'type':_0x32e517+'Container','element':_0x7eb400});}}}}}['_resolveDescriptionItems'](_0xfa24f3){const _0x325aed=this['_locale'],_0x210d89=[],_0x89a576=[],_0x3f2106=[];for(const _0x3fc56a of _0xfa24f3)switch(_0x3fc56a['type']){case'text':if(_0x3fc56a['add']=_0x3fc56a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3fc56a['remove']=_0x3fc56a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3fc56a['add']&&''!=_0x3fc56a['remove']){_0x210d89['push']({'type':'replace','content':o(_0x325aed,'REPLACE_TEXT',['\x22'+_0x3fc56a['remove']+'\x22','\x22'+_0x3fc56a['add']+'\x22'])});continue;}if(null!=_0x3fc56a['add']['match'](/^ +$/)){_0x210d89['push']({'type':'insertion','content':o(_0x325aed,'*Insert:*\x20%0',o(_0x325aed,'ELEMENT_SPACE',_0x3fc56a['add']['length']))});continue;}if(null!=_0x3fc56a['remove']['match'](/^ +$/)){_0x210d89['push']({'type':'deletion','content':o(_0x325aed,'*Remove:*\x20%0',o(_0x325aed,'ELEMENT_SPACE',_0x3fc56a['remove']['length']))});continue;}if(''!=_0x3fc56a['add']){_0x210d89['push']({'type':'insertion','content':o(_0x325aed,'*Insert:*\x20%0','\x22'+_0x3fc56a['add']+'\x22')});continue;}_0x210d89['push']({'type':'deletion','content':o(_0x325aed,'*Remove:*\x20%0','\x22'+_0x3fc56a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x210d89['push']({'type':'insertion','content':o(_0x325aed,'*Insert:*\x20%0',this['getItemLabel'](_0x3fc56a['element'],_0x3fc56a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x210d89['push']({'type':'deletion','content':o(_0x325aed,'*Remove:*\x20%0',this['getItemLabel'](_0x3fc56a['element'],_0x3fc56a['quantity']))});continue;case'addContainer':_0x210d89['push']({'type':'insertion','content':o(_0x325aed,'*Split:*\x20%0',this['getItemLabel'](_0x3fc56a['element'],_0x3fc56a['quantity']))});continue;case'removeContainer':_0x210d89['push']({'type':'deletion','content':o(_0x325aed,'*Merge:*\x20%0',this['getItemLabel'](_0x3fc56a['element'],_0x3fc56a['quantity']))});continue;case'addFormat':_0x89a576['push'](_0x3fc56a['key']);continue;case'removeFormat':_0x3f2106['push'](_0x3fc56a['key']);continue;default:_0x210d89['push'](_0x3fc56a);}if(_0x89a576['length']){const _0x27fd22=_0x89a576['map'](_0x1bb7c5=>this['_attributeLabels']['has'](_0x1bb7c5)?this['_attributeLabels']['get'](_0x1bb7c5):_0x1bb7c5)['join'](',\x20');_0x210d89['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x27fd22)});}if(_0x3f2106['length']){const _0x3f99d6=_0x3f2106['map'](_0x430f23=>this['_attributeLabels']['has'](_0x430f23)?this['_attributeLabels']['get'](_0x430f23):_0x430f23)['join'](',\x20');_0x210d89['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3f99d6)});}return _0x210d89;}['_handleCustomCallbackDescription'](_0x386897){for(const _0x1c127e of this['_customCallbacks']){const _0x31d5d1=_0x1c127e(_0x386897);if(_0x31d5d1&&'type'in _0x31d5d1)return _0x31d5d1;}}['_handleAttributeSuggestionDescription'](_0x10e070,_0x292f9a){const _0x1c2d1f=_0x292f9a['data'],_0x5aa2eb=void 0x0===_0x1c2d1f['newValue']?'removeFormat':'addFormat';_0x10e070['push']({'type':_0x5aa2eb,'key':_0x1c2d1f['key']});}['_handleRenameSuggestionDescription'](_0x103813,_0x5b3854){_0x103813['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5b3854['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xaaf037,_0x2ae2e5,_0x171e80){if(this['_addDescriptionItems'](_0xaaf037,_0x2ae2e5),_0x171e80&&_0x171e80['getFirstRange']()&&!_0x2ae2e5['getFirstRange']()['end']['isEqual'](_0x171e80['getFirstRange']()['start'])){const _0x5d3598=_0xaaf037[_0xaaf037['length']-0x1],_0x206b5b='insertion'==_0x2ae2e5['type']?'add':'remove';_0x5d3598&&'text'==_0x5d3598['type']&&(_0x5d3598[_0x206b5b]+='\x0a');}}}class E extends _0x3604c0{['afterInit'](){const _0x2b090f=this['editor'],_0x4593fe=_0x2b090f['plugins']['get']('TrackChangesEditing');_0x2b090f['commands']['get']('showAIAssistant')&&_0x4593fe['enableCommand']('showAIAssistant');}}class V extends _0x3604c0{['afterInit'](){const _0x481fd5=this['editor'],_0x5e8897=_0x481fd5['locale'];if(!_0x481fd5['plugins']['has']('AlignmentEditing'))return;const _0x15a944=_0x481fd5['plugins']['get']('TrackChangesEditing');_0x15a944['enableDefaultAttributesIntegration']('alignment'),_0x15a944['registerBlockAttribute']('alignment'),_0x15a944['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5e8897,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3283ae=this['editor'],_0x34392c=_0x3283ae['locale'];_0x3283ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d0e83=>{if('formatBlock'!=_0x2d0e83['type'])return;const {data:_0x20f123}=_0x2d0e83;if(_0x20f123&&'alignment'==_0x20f123['commandName']){const _0x4c4aae=_0x20f123['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x34392c,'*Format:*\x20%0',function(_0x3dc18a){switch(_0x3dc18a){case'left':return o(_0x34392c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x34392c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x34392c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x34392c,'FORMAT_JUSTIFY_TEXT');}}(_0x4c4aae))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x3604c0{['afterInit'](){const _0x552113=this['editor'],_0x497739=_0x552113['plugins']['get']('TrackChangesEditing'),_0x5237d1=_0x552113['locale'];for(const _0x86d140 of ti){if(!_0x552113['plugins']['has'](_0x86d140))continue;const _0x381a2d=_0x86d140['slice'](0x0,-0x7)['toLowerCase'](),_0x29e3a0='FORMAT_'+_0x381a2d['toUpperCase']();_0x497739['enableDefaultAttributesIntegration'](_0x381a2d),_0x497739['registerInlineAttribute'](_0x381a2d),_0x497739['descriptionFactory']['registerAttributeLabel'](_0x381a2d,o(_0x5237d1,_0x29e3a0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b2369=this['editor'],_0x3c4813=_0x3b2369['locale'],_0x2a77eb=_0x3b2369['plugins']['get']('TrackChangesEditing');function _0x12ad7f(_0xa4cb1,_0x5a5995){_0x2a77eb['descriptionFactory']['registerDescriptionCallback'](_0x594fc2=>{if('formatInline'!=_0x594fc2['type'])return;const {data:_0x4fc331}=_0x594fc2;return _0x4fc331&&_0x4fc331['commandName']===_0xa4cb1?_0x4fc331['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c4813,'*Format:*\x20%0',_0x5a5995)}:{'type':'format','content':o(_0x3c4813,'*Remove\x20format:*\x20%0',_0x5a5995)}:void 0x0;});}_0x12ad7f('bold',o(_0x3c4813,'FORMAT_BOLD')),_0x12ad7f('italic',o(_0x3c4813,'FORMAT_ITALIC')),_0x12ad7f('underline',o(_0x3c4813,'FORMAT_UNDERLINE')),_0x12ad7f('code',o(_0x3c4813,'FORMAT_CODE')),_0x12ad7f('strikethrough',o(_0x3c4813,'FORMAT_STRIKETHROUGH')),_0x12ad7f('subscript',o(_0x3c4813,'FORMAT_SUBSCRIPT')),_0x12ad7f('superscript',o(_0x3c4813,'FORMAT_SUPERSCRIPT'));}}class O extends _0x3604c0{['afterInit'](){const _0x5dc434=this['editor'],_0xbfae78=_0x5dc434['locale'];if(!_0x5dc434['plugins']['has']('BlockQuoteEditing'))return;const _0x8a5ae1=_0x5dc434['plugins']['get']('TrackChangesEditing'),_0x1e09c6=this['editor']['commands']['get']('blockQuote');_0x8a5ae1['enableCommand']('blockQuote',(_0x2e32c6,_0x35cf2e={})=>{const _0x2a55f7=this['editor']['model']['document']['selection'],_0x471af5=_0x35cf2e&&void 0x0!==_0x35cf2e['forceValue']?_0x35cf2e['forceValue']:!_0x1e09c6['value'];let _0x595d01=[];if(_0x471af5){const _0x3bff9c=Array['from'](_0x2a55f7['getSelectedBlocks']())['filter'](_0x485441=>oo(_0x485441)||function(_0x4ec330,_0x3edb8f){const _0xc91715=_0x3edb8f['checkChild'](_0x4ec330['parent'],'blockQuote'),_0x173e4e=_0x3edb8f['checkChild'](['$root','blockQuote'],_0x4ec330);return _0xc91715&&_0x173e4e;}(_0x485441,this['editor']['model']['schema']));_0x595d01=to(_0x3bff9c,_0x5dc434['model']);}else{const _0x50b41f=Array['from'](_0x2a55f7['getSelectedBlocks']())['filter'](_0x3f4d39=>oo(_0x3f4d39));_0x595d01=to(_0x50b41f,_0x5dc434['model']);}_0x5dc434['model']['change'](()=>{for(const _0x13404f of _0x595d01)_0x8a5ae1['markBlockFormat'](_0x13404f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x471af5}]});});}),_0x8a5ae1['descriptionFactory']['registerDescriptionCallback'](_0x1a7771=>{const {data:_0x465b1f}=_0x1a7771;if(_0x465b1f&&'blockQuote'==_0x465b1f['commandName']){const _0x26178e=o(_0xbfae78,'ELEMENT_BLOCK_QUOTE');return _0x465b1f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xbfae78,'*Set\x20format:*\x20%0',_0x26178e)}:{'type':'format','content':o(_0xbfae78,'*Remove\x20format:*\x20%0',_0x26178e)};}});}}function oo(_0x3a1645){return'blockQuote'==_0x3a1645['parent']['name'];}class F extends _0x3604c0{['afterInit'](){const _0x1a2561=this['editor'];_0x1a2561['plugins']['has']('CaseChange')&&(_0x1a2561['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1a2561['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1a2561['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x3604c0{['afterInit'](){const _0x5ae5c6=this['editor'];_0x5ae5c6['commands']['get']('ckbox')&&_0x5ae5c6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3604c0{['afterInit'](){const _0x303342=this['editor'];if(!_0x303342['plugins']['has']('CodeBlock'))return;const _0x4d10b3=_0x303342['plugins']['get']('TrackChangesEditing'),_0x1c1c2c=_0x303342['locale'],_0x248b49=_0x303342['config']['get']('codeBlock')['languages'],_0x357476=_0x303342['commands']['get']('codeBlock');_0x4d10b3['enableCommand']('indentCodeBlock'),_0x4d10b3['enableCommand']('outdentCodeBlock'),_0x4d10b3['enableCommand']('codeBlock',(_0x24b89b,_0x12ffff={})=>{const _0x2ec329=_0x303342['model'],_0x5c053f=_0x303342['model']['document']['selection'],_0x124801=_0x12ffff&&void 0x0!==_0x12ffff['forceValue']?_0x12ffff['forceValue']:!_0x357476['value'];let _0x23de4a;_0x12ffff['language']||(_0x12ffff['language']=_0x248b49[0x0]['language']),_0x23de4a=_0x124801?Array['from'](_0x5c053f['getSelectedBlocks']())['filter'](_0x502d59=>eo(_0x502d59)||function(_0x1e888b,_0x105e52){if(_0x1e888b['is']('rootElement')||_0x105e52['isLimit'](_0x1e888b))return!0x1;return _0x105e52['checkChild'](_0x1e888b['parent'],'codeBlock');}(_0x502d59,_0x2ec329['schema'])):Array['from'](_0x5c053f['getSelectedBlocks']())['filter'](_0x2797b1=>eo(_0x2797b1));const _0x4442c6=to(_0x23de4a,_0x2ec329);_0x2ec329['change'](()=>{for(const _0x5ab2fb of _0x4442c6)_0x4d10b3['markBlockFormat'](_0x5ab2fb,{'commandName':'codeBlock','commandParams':[{..._0x12ffff,'forceValue':_0x124801}],'formatGroupId':'blockName'});});}),(_0x4d10b3['descriptionFactory']['registerElementLabel']('codeBlock',_0x3769c4=>o(_0x1c1c2c,'ELEMENT_CODE_BLOCK',_0x3769c4)),_0x4d10b3['descriptionFactory']['registerDescriptionCallback'](_0x492c83=>{if('formatBlock'!=_0x492c83['type'])return;const _0x5af319=_0x1c1c2c['t'],{data:_0x2562a6}=_0x492c83;if(!_0x2562a6||'codeBlock'!=_0x2562a6['commandName'])return;const _0x5a7152=_0x2562a6['commandParams'][0x0]['language'],_0x589dc1=_0x5af319(_0x248b49['find'](_0x46ea38=>_0x46ea38['language']===_0x5a7152)['label'])['toLowerCase']();return _0x2562a6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c1c2c,'*Set\x20format:*\x20%0',o(_0x1c1c2c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x589dc1+')')}:{'type':'format','content':o(_0x1c1c2c,'*Remove\x20format:*\x20%0',o(_0x1c1c2c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x15b290){return'codeBlock'==_0x15b290['name'];}class H extends _0x3604c0{['afterInit'](){const _0x15261f=this['editor'];if(!_0x15261f['plugins']['has']('CommentsEditing'))return;_0x15261f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2505c2,_0x3e9b81,_0x5c8649){const _0xe761c8=[];for(const _0x54b576 of _0x3e9b81['getItems']())_0x54b576['hasAttribute'](_0x2505c2)&&_0xe761c8['push'](_0x5c8649['createRangeOn'](_0x54b576));return _0xe761c8;}function _e(_0xfb7e45,_0x58280a,{showActiveMarker:_0x445697=!0x0}={}){const _0x53bc90=_0xfb7e45['plugins']['get']('TrackChangesEditing');return(_0x16fe13,_0x4e00ee,_0x550847)=>{if(!_0x550847['consumable']['test'](_0x4e00ee['markerRange'],_0x16fe13['name']))return;const _0x31d873=_0x4e00ee['markerRange']['getWalker'](),_0x30d3a1=_0x4e00ee['markerRange']['start'],_0x5b42a8=_0xfb7e45['model']['schema'];let _0x3eb250=null,_0x5d3d2e=null,_0x111686=!0x1,_0x4d98df=!0x1;for(const _0x4e8da5 of _0x31d873){const _0xe23fa2=_0x4e8da5['item'];_0x111686=_0x111686||_0x5b42a8['isContent'](_0xe23fa2);const _0x2e878f=_0x550847['mapper']['toViewElement'](_0xe23fa2);if(_0x2e878f&&_0x2e878f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e8da5['type']&&(_0x5b42a8['isBlock'](_0xe23fa2)&&!_0x5b42a8['isLimit'](_0xe23fa2)&&(_0xe23fa2['nextSibling']||_0x30d3a1['isAtEnd']?_0x3eb250&&_0x3eb250['parent']==_0xe23fa2||(_0x3eb250=_0xe23fa2,_0x4ee9c2(_0x4e8da5['previousPosition']),_0x4d98df=!0x0):_0x5d3d2e=_0x5d3d2e||_0x4e8da5['previousPosition']));}function _0x4ee9c2(_0x3ca124){const _0x5044a4=_0x550847['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58280a}),_0x129b94=_0x550847['mapper']['toViewPosition'](_0x3ca124);_0x445697&&_0x53bc90['activeMarkers']['includes'](_0x4e00ee['markerName'])&&_0x550847['writer']['addClass']('ck-suggestion-marker--active',_0x5044a4),_0x550847['writer']['insert'](_0x129b94,_0x5044a4),_0x550847['mapper']['bindElementToMarker'](_0x5044a4,_0x4e00ee['markerName']);}_0x111686||_0x4d98df||!_0x5d3d2e||_0x4ee9c2(_0x5d3d2e);};}class q extends _0x3604c0{static get['requires'](){return[_0xa61eed];}['init'](){const _0x29c6fe=this['editor'],_0x45c823=_0x29c6fe['plugins']['get']('TrackChangesEditing');_0x45c823['enableCommand']('delete');const _0xcf82f7=_0x29c6fe['commands']['get']('deleteForward');_0x45c823['enableCommand']('deleteForward',(_0x32b75d,_0x5c5bc8={})=>{const _0x3d4aaa=_0x29c6fe['model']['createSelection'](_0x29c6fe['model']['document']['selection']);_0x3d4aaa['isCollapsed']&&_0x29c6fe['model']['modifySelection'](_0x3d4aaa,{'direction':'forward','unit':_0x5c5bc8['unit']});const _0x3b38bd=_0x3d4aaa['getFirstRange'](),_0x394167=_0x216293['fromRange'](_0x3b38bd);let _0x3fccf4;_0x32b75d(_0x5c5bc8),_0x3fccf4='$graveyard'==_0x394167['root']['rootName']?_0x29c6fe['model']['createRange'](_0x3b38bd['start']):_0x29c6fe['model']['createRange'](_0x394167['start'],_0x394167['end']),_0x394167['detach'](),_0x29c6fe['model']['enqueueChange'](_0xcf82f7['buffer']['batch'],_0x2b4e8c=>{_0xcf82f7['buffer']['lock'](),_0x2b4e8c['setSelection'](_0x2b4e8c['createRange'](_0x3fccf4['end'])),_0xcf82f7['buffer']['unlock']();});}),_0x29c6fe['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x29c6fe,'merge'),{'priority':'high'}),_0x29c6fe['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2d39ca,_0x554d11,_0x1c6067)=>{_0x1c6067['options']['showSuggestionHighlights']&&_e(_0x29c6fe,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2d39ca,_0x554d11,_0x1c6067);},{'priority':'high'}),_0x29c6fe['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1500dc,_0x3da3fc,_0xb959d3)=>{const _0x24ca51=_0xb959d3['mapper']['markerNameToElements'](_0x3da3fc['markerName']);if(_0x24ca51){for(const _0x467b4b of _0x24ca51)_0x467b4b['is']('uiElement')&&(_0xb959d3['mapper']['unbindElementFromMarkerName'](_0x467b4b,_0x3da3fc['markerName']),_0xb959d3['writer']['remove'](_0x467b4b));}},{'priority':'high'});}}class z extends _0x3604c0{['afterInit'](){const _0x4157b9=this['editor'];if(!_0x4157b9['plugins']['has']('ListEditing'))return;const _0x25caac=_0x4157b9['locale'],_0x263bc5=_0x4157b9['plugins']['get']('TrackChangesEditing'),_0x40d1da=_0x4157b9['plugins']['has']('TodoListEditing'),_0x449acc=!!_0x4157b9['config']['get']('list.multiBlock');function _0x5d2101(_0xd7d415){return{'type':'format','content':''+o(_0x25caac,'*Set\x20format:*\x20%0',_0xd7d415)};}function _0x27f282(_0x5ea722){return{'type':'format','content':''+o(_0x25caac,'*Remove\x20format:*\x20%0',_0x5ea722)};}_0x263bc5['enableDefaultAttributesIntegration']('numberedList'),_0x263bc5['enableDefaultAttributesIntegration']('bulletedList'),_0x263bc5['enableDefaultAttributesIntegration']('customNumberedList'),_0x263bc5['enableDefaultAttributesIntegration']('customBulletedList'),_0x263bc5['enableDefaultAttributesIntegration']('indentList'),_0x263bc5['enableDefaultAttributesIntegration']('outdentList'),_0x263bc5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x263bc5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x263bc5['registerBlockAttribute']('listItemId'),_0x263bc5['registerBlockAttribute']('listType'),_0x263bc5['registerBlockAttribute']('listIndent'),_0x449acc&&(_0x263bc5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x263bc5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x40d1da&&(_0x263bc5['enableDefaultAttributesIntegration']('todoList'),_0x263bc5['enableDefaultAttributesIntegration']('checkTodoList'),_0x263bc5['registerBlockAttribute']('todoListChecked'),_0x263bc5['descriptionFactory']['registerDescriptionCallback'](_0x333dc8=>{const {data:_0x30be82}=_0x333dc8;if(_0x30be82&&'todoListChecked'==_0x30be82['key'])return{'type':'format','content':_0x30be82['newValue']?o(_0x25caac,'*Check\x20item*'):o(_0x25caac,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1171a1=>{if(_0x1171a1['batch']['isUndo'])return!0x1;let _0x440fe3=!0x1;const _0x11d838=_0x263bc5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20b81a=>'todoListChecked'===_0x263bc5['_getAttributeKey'](_0x20b81a));for(const _0x89c066 of _0x11d838){'todo'!=_0x89c066['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x263bc5['_findSuggestions'](_0x89c066['getFirstRange'](),'attribute')['find'](_0x5c8787=>'listType'===_0x263bc5['_getAttributeKey'](_0x5c8787['suggestion']))||(_0x1171a1['removeMarker'](_0x89c066['getFirstMarker']()),_0x440fe3=!0x0));}return _0x440fe3;})),_0x263bc5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x25caac,'FORMAT_INDENT'));const _0x288339={'type':'format','content':''};_0x263bc5['descriptionFactory']['registerDescriptionCallback'](_0x5bcf70=>{const {data:_0x4cf9c8}=_0x5bcf70;if(!_0x4cf9c8||'listType'!=_0x4cf9c8['key'])return;let _0x340319=_0x5bcf70['head'];for(;_0x340319;){if(_0x340319['data']&&(('listStyle'==_0x340319['data']['key']||'listMarkerStyle'==_0x340319['data']['key'])&&(_0x340319['data']['newValue']&&'default'!=_0x340319['data']['newValue']||'default'!=_0x340319['data']['oldValue']&&!_0x4cf9c8['newValue'])||!_0x449acc&&_0x340319['data']['key']==m))return _0x288339;_0x340319=_0x340319['next'];}if(null==_0x4cf9c8['newValue'])switch(_0x4cf9c8['oldValue']){case'bulleted':return _0x27f282(o(_0x25caac,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x27f282(o(_0x25caac,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x27f282(o(_0x25caac,'ELEMENT_TODO_LIST'));}switch(_0x4cf9c8['newValue']){case'bulleted':return _0x5d2101(o(_0x25caac,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d2101(o(_0x25caac,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d2101(o(_0x25caac,'ELEMENT_TODO_LIST'));}}),_0x263bc5['descriptionFactory']['registerDescriptionCallback'](_0x1fc81c=>{const {data:_0x2a4cba}=_0x1fc81c;if(_0x2a4cba&&'listIndent'==_0x2a4cba['key'])return null==_0x2a4cba['newValue']||null==_0x2a4cba['oldValue']&&0x0==_0x2a4cba['newValue']?_0x288339:void 0x0;}),_0x263bc5['descriptionFactory']['registerDescriptionCallback'](_0x29a1b9=>{if('attribute'!=_0x29a1b9['type'])return;const {data:_0x20bb74}=_0x29a1b9;if(!_0x20bb74||'listItemId'!=_0x20bb74['key'])return;const _0x5a4abb=le(_0x29a1b9);return'newValue'==_0x5a4abb?{'type':'format','content':o(_0x25caac,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5a4abb?{'type':'format','content':o(_0x25caac,'*Split:*\x20list\x20item')}:_0x288339;}),_0x4157b9['model']['document']['registerPostFixer'](_0x10dd85=>this['listItemIdFixer'](_0x10dd85)),_0x4157b9['model']['document']['registerPostFixer'](_0x32d227=>this['noTrackChangesFixer'](_0x32d227)),_0x4157b9['model']['document']['registerPostFixer'](_0x2e33e4=>this['assureChains'](_0x2e33e4)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3c624d){if(_0x3c624d['batch']['isUndo']||!_0x3c624d['batch']['isLocal'])return!0x1;let _0x27e20c=!0x1;const _0x25e9a8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14995a=>_0x14995a['data']&&'listItemId'==_0x14995a['data']['key'])['filter'](_0x3b75dc=>_0x3b75dc['data']['newValue']&&_0x3b75dc['data']['oldValue']);for(const _0x29407e of _0x25e9a8)le(_0x29407e)||(_0x3c624d['removeMarker'](_0x29407e['getFirstMarker']()),_0x27e20c=!0x0);return _0x27e20c;}['noTrackChangesFixer'](_0x474ca9){if(_0x474ca9['batch']['isUndo']||!_0x474ca9['batch']['isLocal'])return!0x1;const _0xebe918=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xebe918['trackChangesCommand']['value'])return!0x1;let _0x36329e=!0x1;const _0x22ef4e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2fcd17=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xd1e5c1=>'attribute'==_0xd1e5c1['type'])['filter'](_0x314da6=>_0x22ef4e['includes'](_0x314da6['attributeKey']));if(0x0==_0x2fcd17['length'])return _0x36329e;for(const _0x15526f of _0x2fcd17){const _0x3c31ee=_0xebe918['_findSuggestions'](_0x15526f['range'],'attribute')['filter'](_0x1dcfbd=>!_0x1dcfbd['meta']['isNextTo'])['map'](_0x2fc6d2=>_0x2fc6d2['suggestion'])['filter'](_0xd5c87c=>{const _0x5d5dea=_0xebe918['_getAttributeKey'](_0xd5c87c);return _0x22ef4e['includes'](_0x5d5dea);});if(_0x3c31ee['length']){for(const _0x3e9540 of _0x3c31ee)_0x474ca9['removeMarker'](_0x3e9540['getFirstMarker']());_0x36329e=!0x0;}}return _0x36329e;}['assureChains'](_0x57699b){if(_0x57699b['batch']['isUndo']||!_0x57699b['batch']['isLocal'])return!0x1;const _0x1f1d90=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2727bf=!0x1;const _0x5e7404=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x35f33e of _0x1f1d90['getSuggestions']({'skipNotAttached':!0x0})){const _0x5239d9=_0x1f1d90['_findSuggestions'](_0x35f33e['getFirstRange'](),'attribute')['map'](_0x2724a8=>_0x2724a8['suggestion'])['filter'](_0x402187=>_0x402187['data']&&_0x5e7404['includes'](_0x402187['data']['key']));if(!_0x5239d9['length'])continue;const _0x57bc78=_0x5239d9[0x0]['head']['attributes']['groupId'];if(!_0x5239d9['every'](_0x288e8c=>_0x288e8c['attributes']['groupId']===_0x57bc78)){for(const _0x54c519 of _0x5239d9)_0x3e2ae2(_0x54c519,_0x57bc78)&&(_0x2727bf=!0x0);}}return _0x2727bf;function _0x1d6455(_0x39590e,_0x1aeb7b){for(const _0x2f6d59 of _0x1f1d90['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f1651=>'attribute'==_0x5f1651['type']&&_0x5f1651['attributes']['groupId']==_0x39590e))_0x2f6d59['setAttribute']('groupId',_0x1aeb7b);}function _0x3e2ae2(_0x3c8f5d,_0x59c6de){let _0x47affb=_0x3c8f5d['head'],_0x724c75=!0x1;for(;_0x47affb;)_0x47affb['attributes']['groupId']!=_0x59c6de&&(_0x1d6455(_0x47affb['attributes']['groupId'],_0x59c6de),_0x47affb['setAttribute']('groupId',_0x59c6de),_0x724c75=!0x0),_0x47affb=_0x47affb['next'];return _0x724c75;}}['_supportLegacySuggestions'](){const _0x59514e=this['editor'],_0xc3a09f=_0x59514e['locale'],_0x2253ba=_0x59514e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2253ba['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x32a06e,_0x5639b5){const _0x2be4f0=[];for(let _0x4b1c2b of _0x32a06e)_0x4b1c2b['start']['nodeAfter']===_0x4b1c2b['end']['parent']&&(_0x4b1c2b=_0x59514e['model']['createRange'](_0x59514e['model']['createPositionAt'](_0x4b1c2b['start']['nodeAfter'],0x0))),_0x2be4f0['push'](_0x4b1c2b);_0x59514e['model']['change'](_0x125cc1=>{const _0x34c436=_0x59514e['model']['document']['selection'],_0x3d3e01=Array['from'](_0x34c436['getRanges']())['map'](_0x4f0716=>_0x216293['fromRange'](_0x4f0716));_0x125cc1['setSelection'](_0x2be4f0),_0x59514e['commands']['get'](_0x5639b5['commandName'])['refresh'](),_0x5639b5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x59514e['execute'](_0x5639b5['commandName'],..._0x5639b5['commandParams']),_0x125cc1['setSelection'](_0x3d3e01);for(const _0x59af8e of _0x3d3e01)_0x59af8e['detach']();});}),_0x2253ba['descriptionFactory']['registerElementLabel'](function(_0x165048){const _0x587025=!_0x59514e['model']['schema']['isObject'](_0x165048),_0x324191=_0x165048['previousSibling'],_0x392ea5=_0x165048['nextSibling'],_0x1cc668=_0x165048['getAttribute']('listItemId'),_0xab4b1a=!_0x324191||_0x324191['getAttribute']('listItemId')!==_0x1cc668,_0x4acd67=!_0x392ea5||_0x392ea5['getAttribute']('listItemId')!==_0x1cc668;return _0x587025&&Boolean(_0x1cc668)&&_0xab4b1a&&_0x4acd67;},_0x3f5a95=>o(_0xc3a09f,'ELEMENT_LIST_ITEM',_0x3f5a95));}['_registerLegacyDescription'](){const _0x31dc02=this['editor'],_0x3efcc2=_0x31dc02['locale'];function _0x1e2902(_0x590887){const _0x248633=_0x31dc02['commands']['get']('bulletedList')['value'],_0x2bfc35=_0x31dc02['commands']['get']('numberedList')['value'];return'numberedList'===_0x590887?_0x248633:_0x2bfc35;}_0x31dc02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x352b4e){if('formatBlock'!=_0x352b4e['type'])return;const {data:_0x51569d}=_0x352b4e;if(!_0x51569d)return;let _0x583f91,_0xdc9495,_0x1b0c57,_0x4f7625;switch(_0x51569d['commandName']){case'bulletedList':_0x1b0c57=_0x51569d['commandParams'][0x0]['forceValue'],_0x4f7625=_0x1e2902(_0x51569d['commandName']),_0x583f91=_0x1b0c57?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4f7625&&_0x31dc02['config']['get']('list.multiBlock')||(_0x583f91='*Change\x20to:*\x20%0'),_0xdc9495={'type':'format','content':o(_0x3efcc2,_0x583f91,o(_0x3efcc2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1b0c57=_0x51569d['commandParams'][0x0]['forceValue'],_0x4f7625=_0x1e2902(_0x51569d['commandName']),_0x583f91=_0x1b0c57?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4f7625&&_0x31dc02['config']['get']('list.multiBlock')||(_0x583f91='*Change\x20to:*\x20%0'),_0xdc9495={'type':'format','content':o(_0x3efcc2,_0x583f91,o(_0x3efcc2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x583f91='*Indent:*\x20%0',_0xdc9495={'type':'format','content':o(_0x3efcc2,_0x583f91,o(_0x3efcc2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x583f91=function(_0x304da6){const _0x307925=_0x304da6['getFirstRange']();let _0x5b172b=_0x307925['start']['nodeAfter'];for(;_0x5b172b&&_0x307925['containsItem'](_0x5b172b);){if(_0x5b172b['getAttribute']('listIndent')>0x0)return!0x1;_0x5b172b=_0x5b172b['nextSibling'];}return!0x0;}(_0x352b4e)?o(_0x3efcc2,'*Format:*\x20remove\x20from\x20%0',o(_0x3efcc2,function(_0x594a58){return'ELEMENT_'+_0x594a58['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x352b4e))):o(_0x3efcc2,'*Outdent:*\x20%0',o(_0x3efcc2,'ELEMENT_LIST_ITEM')),_0xdc9495={'type':'format','content':_0x583f91};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x51569d['multipleBlocks']&&(_0x583f91='*Merge:*\x20%0',_0xdc9495={'type':'deletion','content':o(_0x3efcc2,_0x583f91,o(_0x3efcc2,'ELEMENT_LIST_ITEM'))});}return _0xdc9495;});}}function le(_0x4c0b2e){let _0x599c10=_0x4c0b2e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x599c10;){const _0x1704cb=_0x599c10['getAttribute']('listItemId');if(!_0x1704cb)return!0x1;if(_0x1704cb==_0x4c0b2e['data']['newValue'])return'newValue';if(_0x1704cb==_0x4c0b2e['data']['oldValue'])return'oldValue';_0x599c10=_0x599c10['previousSibling'];}return!0x1;}class ue extends _0x3604c0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5081bb=this['editor']['config']['get']('list.properties'),_0x38f426=this['editor']['plugins']['get']('TrackChangesEditing');_0x5081bb['styles']&&(_0x38f426['enableDefaultAttributesIntegration']('listStyle'),_0x38f426['registerBlockAttribute']('listStyle')),_0x5081bb['reversed']&&(_0x38f426['enableDefaultAttributesIntegration']('listReversed'),_0x38f426['registerBlockAttribute']('listReversed')),_0x5081bb['startIndex']&&(_0x38f426['enableDefaultAttributesIntegration']('listStart'),_0x38f426['registerBlockAttribute']('listStart'));const _0x5fbc7b={'type':'format','content':''};_0x38f426['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ab921=this['editor']['locale'];_0x38f426['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2ab921,'FORMAT_LIST_REVERSED')),_0x38f426['descriptionFactory']['registerDescriptionCallback'](_0x1b2599=>{const {data:_0x51b8c6}=_0x1b2599;if(_0x51b8c6&&'listReversed'==_0x51b8c6['key'])return null==_0x51b8c6['newValue']||0x0==_0x51b8c6['newValue']&&null==_0x51b8c6['oldValue']?_0x5fbc7b:void 0x0;}),_0x38f426['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2ab921,'FORMAT_LIST_START')),_0x38f426['descriptionFactory']['registerDescriptionCallback'](_0x588ea6=>{const {data:_0x31af12}=_0x588ea6;if(_0x31af12&&'listStart'==_0x31af12['key'])return null==_0x31af12['newValue']||0x1==_0x31af12['newValue']&&null==_0x31af12['oldValue']?_0x5fbc7b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x579b11=>{if(_0x579b11['batch']['isUndo'])return!0x1;let _0x85b463=!0x1;const _0x42cb46=_0x38f426['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a88d1=>{const _0x360d13=_0x38f426['_getAttributeKey'](_0x5a88d1);return'listStart'==_0x360d13||'listReversed'==_0x360d13;});for(const _0x1cc5ba of _0x42cb46){const _0x415b97=_0x1cc5ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x415b97||'customNumbered'==_0x415b97)continue;_0x38f426['_findSuggestions'](_0x1cc5ba['getFirstRange'](),'attribute')['find'](_0xc4ea3c=>'listType'==_0x38f426['_getAttributeKey'](_0xc4ea3c['suggestion']))||(_0x579b11['removeMarker'](_0x1cc5ba['getFirstMarker']()),_0x85b463=!0x0);}return _0x85b463;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1f93e9){const _0x4bdfcf=this['editor']['locale'],{data:_0x319c8e}=_0x1f93e9,_0x61bc8f={'type':'format','content':''};if(!_0x319c8e||'listStyle'!=_0x319c8e['key'])return;if(!_0x319c8e['oldValue'])return'default'==_0x319c8e['newValue']?_0x61bc8f:{'type':'format','content':''+o(_0x4bdfcf,'*Set\x20format:*\x20%0',o(_0x4bdfcf,this['_getTranslationKeyForListStyle'](_0x319c8e['newValue'])))};if(!_0x319c8e['newValue']){if('default'==_0x319c8e['oldValue'])return _0x61bc8f;let _0x4d29c5=_0x1f93e9['head'];for(;_0x4d29c5;){if(_0x4d29c5['data']&&'listType'==_0x4d29c5['data']['key']&&_0x4d29c5['data']['newValue'])return _0x61bc8f;_0x4d29c5=_0x4d29c5['next'];}return{'type':'format','content':''+o(_0x4bdfcf,'*Remove\x20format:*\x20%0',o(_0x4bdfcf,this['_getTranslationKeyForListStyle'](_0x319c8e['oldValue'])))};}if('default'!=_0x319c8e['newValue'])return{'type':'format','content':''+o(_0x4bdfcf,'*Set\x20format:*\x20%0',o(_0x4bdfcf,this['_getTranslationKeyForListStyle'](_0x319c8e['newValue'])))};let _0x4933ba=_0x1f93e9['head'];for(;_0x4933ba;){if(_0x4933ba['data']&&'listType'==_0x4933ba['data']['key']&&_0x4933ba['data']['newValue']&&_0x4933ba['data']['oldValue'])return _0x61bc8f;_0x4933ba=_0x4933ba['next'];}return{'type':'format','content':o(_0x4bdfcf,'*Set\x20format:*\x20%0',o(_0x4bdfcf,'ELEMENT_'+_0x1f93e9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x49fd77=this['editor'],_0x527408=_0x49fd77['locale'];_0x49fd77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8da3d2=>{if('formatBlock'!=_0x8da3d2['type'])return;const {data:_0xc8edef}=_0x8da3d2;if(!_0xc8edef)return;let _0x1b7be3,_0x567843;switch(_0xc8edef['commandName']){case'listStyle':_0x1b7be3='*Change\x20to:*\x20%0',_0x567843={'type':'format','content':o(_0x527408,_0x1b7be3,o(_0x527408,this['_getTranslationKeyForListStyle'](_0xc8edef['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b7be3=_0xc8edef['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x567843={'type':'format','content':o(_0x527408,_0x1b7be3)};break;case'listStart':_0x1b7be3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x567843={'type':'format','content':o(_0x527408,_0x1b7be3,_0xc8edef['commandParams'][0x0]['startIndex'])};}return _0x567843;});}['_getTranslationKeyForListStyle'](_0x49cff3){return'ELEMENT_'+function(_0x324c4d){if(pe['includes'](_0x324c4d))return'bulleted';if(ye['includes'](_0x324c4d))return'numbered';return null;}(_0x49cff3)['toUpperCase']()+'_LIST_'+_0x49cff3['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x3604c0{static get['requires'](){return[_0xcd0ac7];}['init'](){const _0x1da2ea=this['editor'],_0x5c7e02=_0x1da2ea['plugins']['get']('TrackChangesEditing'),_0x3c714c=_0x1da2ea['commands']['get']('enter');_0x5c7e02['enableCommand']('enter',()=>{_0x1da2ea['model']['change'](_0xf04cda=>{const _0x178642=_0x1da2ea['model']['document']['selection'],_0x790639=_0x178642['getFirstPosition'](),_0x496e51=_0x216293['fromRange'](_0x178642['getFirstRange']());if(_0x3c714c['enterBlock'](_0xf04cda)){const _0x51457f=_0x1da2ea['model']['createPositionAt'](_0x790639['parent']['nextSibling'],0x0),_0x2bbbe6=_0xf04cda['createRange'](_0x790639,_0x51457f);_0x5c7e02['markInsertion'](_0x2bbbe6);}else _0xf04cda['setSelection'](_0xf04cda['createRange'](_0x496e51['end']));_0x496e51['detach'](),_0x3c714c['fire']('afterExecute',{'writer':_0xf04cda});});}),_0x1da2ea['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1da2ea,'split'),{'priority':'high'}),_0x1da2ea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5579d5,_0x4ac934,_0x5702a0)=>{const _0x1c5098=_0x5702a0['mapper']['markerNameToElements'](_0x4ac934['markerName']);if(_0x1c5098){for(const _0x362971 of _0x1c5098)_0x362971['hasClass']('ck-suggestion-marker-split')&&(_0x5702a0['mapper']['unbindElementFromMarkerName'](_0x362971,_0x4ac934['markerName']),_0x5702a0['writer']['remove'](_0x362971));}},{'priority':'high'}),_0x1da2ea['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1bcda0,_0x14a7aa,_0x3f14d9)=>{_0x3f14d9['options']['showSuggestionHighlights']&&_e(_0x1da2ea,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1bcda0,_0x14a7aa,_0x3f14d9);},{'priority':'high'});}}class J extends _0x3604c0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x13d11=this['editor']['plugins']['get']('TrackChangesEditing');_0x13d11['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x13d11['enableCommand']('findNext'),_0x13d11['enableCommand']('findPrevious'),_0x13d11['enableCommand']('replace'),_0x13d11['enableCommand']('replaceAll');}['handleFindCommand'](_0x5d2e4c,_0x291809,_0x17de01={}){const _0x599761=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5d2e4c(_0x3f60c5=>('string'==typeof _0x291809?_0x599761['findByTextCallback'](_0x291809,_0x17de01):_0x291809)(_0x3f60c5)['filter'](_0x58f4a1=>!0x1===this['_isInDeletionRange'](_0x58f4a1,_0x3f60c5['item'])),_0x17de01);}['_isInDeletionRange'](_0xf47884,_0x4e5a30){const _0x159835=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e5a30,_0xf47884['start']),this['editor']['model']['createPositionAt'](_0x4e5a30,_0xf47884['end']));for(const _0x5d481f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x159835['getIntersection'](_0x5d481f['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 _0x3604c0{['afterInit'](){const _0xf0177b=this['editor']['locale'],_0xbe578d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x58060c,commandName:_0x1d1a14}of ro)this['editor']['plugins']['has'](_0x58060c)&&(_0xbe578d['enableDefaultAttributesIntegration'](_0x1d1a14),_0xbe578d['registerInlineAttribute'](_0x1d1a14));_0xf0177b['t'],_0xbe578d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xf0177b,'FORMAT_FONT_SIZE')),_0xbe578d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xf0177b,'FORMAT_FONT_FAMILY')),_0xbe578d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xf0177b,'FORMAT_FONT_COLOR')),_0xbe578d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xf0177b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x561ccc=this['editor'],_0x545713=_0x561ccc['locale'];_0x561ccc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274ac2=>{const _0x58b153=_0x545713['t'];if('formatInline'!=_0x274ac2['type'])return;const {data:_0x4b3d77}=_0x274ac2;if(null!=_0x4b3d77){if('fontSize'==_0x4b3d77['commandName']){const _0x1aa783=_0x4b3d77['commandParams'][0x0]['value'];if(_0x1aa783){const _0xa2ed3c=_0x58b153(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4df356=>_0x4df356['model']==_0x1aa783)['title'])['toLowerCase']();return{'type':'format','content':o(_0x545713,'*Set\x20font\x20size:*\x20%0',_0xa2ed3c)};}return{'type':'format','content':o(_0x545713,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4b3d77['commandName']){const _0x42aa86=_0x4b3d77['commandParams'][0x0]['value'];return _0x42aa86?{'type':'format','content':o(_0x545713,'*Set\x20font\x20family:*\x20%0',_0x42aa86)}:{'type':'format','content':o(_0x545713,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4b3d77['commandName']){const _0x122162=_0x4b3d77['commandParams'][0x0]['value'];if(_0x122162){const _0x4fa81f=_0x1055ae(this['editor']['config']['get']('fontColor.colors'))['find'](_0x6ac67a=>_0x6ac67a['model']==_0x122162);let _0x3f4b43=_0x122162,_0x27d84b='';return _0x4fa81f&&(_0x3f4b43=_0x4fa81f['label'],_0x27d84b=_0x58b153(_0x3f4b43)['toLowerCase']()),{'type':'format','content':o(_0x545713,'*Set\x20font\x20color:*\x20%0',_0x27d84b)['trim'](),'color':{'value':_0x122162,'title':_0x27d84b||_0x3f4b43}};}return{'type':'format','content':o(_0x545713,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4b3d77['commandName']){const _0x362683=_0x4b3d77['commandParams'][0x0]['value'];if(_0x362683){const _0x36105f=_0x1055ae(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x450796=>_0x450796['model']==_0x362683);let _0x71bfb9=_0x362683,_0x53abc4='';return _0x36105f&&(_0x71bfb9=_0x36105f['label'],_0x53abc4=_0x58b153(_0x71bfb9)['toLowerCase']()),{'type':'format','content':o(_0x545713,'*Set\x20font\x20background\x20color:*\x20%0',_0x53abc4)['trim'](),'color':{'value':_0x362683,'title':_0x53abc4||_0x71bfb9}};}return{'type':'format','content':o(_0x545713,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x3604c0{['afterInit'](){const _0x55a13b=this['editor'],_0x33cfc0=_0x55a13b['plugins']['get']('TrackChangesEditing'),_0x2d4fe6=_0x55a13b['commands']['get']('copyFormat'),_0x1f0ce1=_0x55a13b['commands']['get']('pasteFormat');_0x2d4fe6&&_0x1f0ce1&&(_0x33cfc0['enableDefaultAttributesIntegration']('pasteFormat'),_0x33cfc0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5f478=this['editor'],_0x355ac0=_0x5f478['locale'];_0x5f478['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19f8ab=>{if('formatBlock'!=_0x19f8ab['type']&&'formatInline'!=_0x19f8ab['type'])return;const {data:_0x336a5c}=_0x19f8ab;if(_0x336a5c&&'pasteFormat'===_0x336a5c['commandName']){const _0x446508=[],_0x3cc164=_0x336a5c['commandParams'][0x0];for(const [_0x3df210,_0x427713]of Object['entries'](_0x3cc164))_0x446508['push'](so(_0x5f478,_0x3df210,_0x427713));return _0x446508['length']?{'type':'format','content':o(_0x355ac0,'*Set\x20format\x20to:*\x20%0',_0x446508['join'](',\x20'))}:{'type':'format','content':o(_0x355ac0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x300136,_0x4d7abe,_0x2cccd2){const _0x2bd9be=_0x300136['locale']['t'],_0x283640=_0x4d7abe['split'](/(?=[A-Z])/)['join']('\x20'),_0x32eabf=_0x2bd9be(_0x283640['charAt'](0x0)['toUpperCase']()+_0x283640['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2cccd2)return _0x32eabf;if('fontColor'===_0x4d7abe||'fontBackgroundColor'===_0x4d7abe){const _0x556488=_0x1055ae(_0x300136['config']['get']('fontColor.colors'))['find'](_0xdd47e8=>_0xdd47e8['model']==_0x2cccd2);return _0x32eabf+'\x20('+(_0x556488?_0x2bd9be(_0x556488['label'])['toLowerCase']():_0x2cccd2)+')';}if('fontSize'===_0x4d7abe&&isNaN(parseFloat(_0x2cccd2))){const _0x5ec52c=_0x300136['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x300136['config']['get']('fontSize.options'))['find'](_0x96d627=>_0x96d627['model']==_0x2cccd2);return _0x32eabf+'\x20('+(_0x5ec52c?_0x2bd9be(_0x5ec52c['title'])['toLowerCase']():_0x2cccd2)+')';}return _0x32eabf+'\x20('+_0x2cccd2+')';}class Y extends _0x3604c0{['_headingOptions'];['afterInit'](){const _0x309dd4=this['editor'];if(!_0x309dd4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x309dd4['config']['get']('heading.options');const _0x3a9911=_0x309dd4['locale'],_0xed4eda=_0x309dd4['plugins']['get']('TrackChangesEditing');_0xed4eda['enableDefaultAttributesIntegration']('heading');for(const _0x1aba80 of this['_headingOptions'])'paragraph'!=_0x1aba80['model']&&_0xed4eda['descriptionFactory']['registerElementLabel'](_0x1aba80['model'],_0x3279cc=>{const _0x3272d5=this['_getHeadingLevel'](_0x1aba80['model']);return null!==_0x3272d5?_0x130453(_0x3279cc,_0x3272d5):_0x3c21de(_0x3279cc,_0x1aba80['title']);});function _0x130453(_0x1377d7,_0xa8fea9){return o(_0x3a9911,'ELEMENT_HEADING',[_0x1377d7,_0xa8fea9]);}function _0x3c21de(_0x2e6b0b,_0x49d052){return o(_0x3a9911,'ELEMENT_HEADING_CUSTOM',[_0x2e6b0b,_0x49d052]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x376b14=this['editor'],_0x24375e=_0x376b14['locale'];function _0x18d826(_0x5f5982,_0x10e120){return o(_0x24375e,'ELEMENT_HEADING_CUSTOM',[_0x5f5982,_0x10e120]);}_0x376b14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42807c=>{if('formatBlock'!=_0x42807c['type'])return;const {data:_0x4e29c3}=_0x42807c;if(_0x4e29c3&&'heading'==_0x4e29c3['commandName']){const _0x2de76f=_0x4e29c3['commandParams'][0x0]['value'],_0x3b478d=this['_getHeadingLevel'](_0x2de76f);if(null!==_0x3b478d)return{'type':'format','content':o(_0x24375e,'*Change\x20to:*\x20%0',(_0x362e3d=0x1,_0x2b91c1=_0x3b478d,o(_0x24375e,'ELEMENT_HEADING',[_0x362e3d,_0x2b91c1])))};const _0x298d52=this['_headingOptions']['find'](_0x54cfbe=>_0x54cfbe['model']===_0x2de76f)['title'];return{'type':'format','content':o(_0x24375e,'*Change\x20to:*\x20%0',_0x18d826(0x1,_0x298d52))};}var _0x362e3d,_0x2b91c1;});}['_getHeadingLevel'](_0x73ef29){const _0x3fd329=_0x73ef29['match'](/^heading(\d+)/);if(_0x3fd329)return _0x3fd329[0x1];const _0x23d0cb=this['_headingOptions']?.['find'](_0x5732b3=>_0x5732b3['model']==_0x73ef29);if(_0x23d0cb&&_0x23d0cb['view']){const _0x38629e=_0x23d0cb['view'],_0xbee4b2=(_0x38629e['name']??_0x38629e)['match'](/^h(\d+)/);if(_0xbee4b2)return _0xbee4b2[0x1];}return null;}}class Z extends _0x3604c0{['afterInit'](){const _0x37de20=this['editor'];if(!_0x37de20['plugins']['has']('HighlightEditing'))return;const _0x55d728=_0x37de20['plugins']['get']('TrackChangesEditing'),_0x2496a8=_0x37de20['locale'];_0x55d728['enableDefaultAttributesIntegration']('highlight'),_0x55d728['registerInlineAttribute']('highlight'),_0x55d728['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2496a8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31de77=this['editor'],_0x480036=_0x31de77['locale'];_0x31de77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7d5249=>{if('formatInline'!=_0x7d5249['type'])return;const {data:_0x3a58f2}=_0x7d5249;if(_0x3a58f2&&'highlight'==_0x3a58f2['commandName']){const _0x4466ae=_0x480036['t'],_0x54b2d2=_0x3a58f2['commandParams'][0x0]['value'];if(_0x54b2d2){const _0x58cbc1=_0x31de77['config']['get']('highlight.options')['find'](_0x1593b7=>_0x1593b7['model']==_0x54b2d2),_0x15e208=_0x4466ae(_0x58cbc1['title'])['toLowerCase']();return{'type':'format','content':o(_0x480036,'*Set\x20highlight:*\x20%0',_0x15e208),'color':{'value':_0x58cbc1['color'],'title':_0x58cbc1['title']}};}return{'type':'format','content':o(_0x480036,'*Remove\x20highlight*',o(_0x480036,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x3604c0{['afterInit'](){const _0x1954f3=this['editor'];if(!_0x1954f3['plugins']['has']('HorizontalLineEditing'))return;_0x1954f3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3eade5=_0x1954f3['plugins']['get']('TrackChangesEditing'),_0x45a586=_0x1954f3['locale'];_0x3eade5['descriptionFactory']['registerElementLabel']('horizontalLine',_0xe1bfb6=>o(_0x45a586,'ELEMENT_HORIZONTAL_LINE',_0xe1bfb6)),_0x1954f3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1902c9,{writer:_0x446927,options:_0x5546e4})=>{if(!_0x5546e4['showSuggestionHighlights'])return null;const _0x344380=_0x446927['createContainerElement']('div'),_0x16097b=_0x446927['createEmptyElement']('hr');return _0x446927['addClass']('ck-horizontal-line',_0x344380),_0x446927['insert'](_0x446927['createPositionAt'](_0x344380,0x0),_0x16097b),_0x344380;},'converterPriority':'high'});}}class et extends _0x3604c0{['afterInit'](){const _0x4dfc6c=this['editor'];if(!_0x4dfc6c['plugins']['has']('HtmlEmbed'))return;const _0x59044c=_0x4dfc6c['plugins']['get']('TrackChangesEditing'),_0x445642=_0x4dfc6c['locale'];_0x59044c['descriptionFactory']['registerElementLabel']('rawHtml',_0x260593=>o(_0x445642,'ELEMENT_HTML_EMBED',_0x260593)),_0x59044c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x59044c['registerBlockAttribute']('value'),_0x59044c['descriptionFactory']['registerDescriptionCallback'](_0x31d027=>{if('attribute'!=_0x31d027['type'])return;const {data:_0x5c8b0e}=_0x31d027;if(_0x5c8b0e&&'value'==_0x5c8b0e['key']&&_0x31d027['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3ea781=o(_0x445642,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x445642,'*Change\x20%0\x20content*',_0x3ea781)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56ba16=this['editor'],_0x100dd2=_0x56ba16['locale'];_0x56ba16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e5f6c=>{if('formatBlock'!=_0x2e5f6c['type'])return;const {data:_0x308ee4}=_0x2e5f6c;if(_0x308ee4&&'htmlEmbed'==_0x308ee4['commandName']){const _0x1ab6c6=o(_0x100dd2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x100dd2,'*Change\x20%0\x20content*',_0x1ab6c6)};}});}}class it extends _0x3604c0{['afterInit'](){const _0x2b97f4=this['editor'];if(!_0x2b97f4['plugins']['has']('ImageEditing'))return;const _0x5bd852=_0x2b97f4['plugins']['get']('TrackChangesEditing'),_0x5239ea=_0x2b97f4['plugins']['get']('ImageUtils'),_0x5186ce=_0x2b97f4['locale'];_0x5bd852['enableCommand']('insertImage'),_0x5bd852['descriptionFactory']['registerElementLabel']('imageBlock',_0x48501a=>o(_0x5186ce,'ELEMENT_IMAGE',_0x48501a)),_0x5bd852['descriptionFactory']['registerElementLabel']('imageInline',_0x3348d5=>o(_0x5186ce,'ELEMENT_INLINE_IMAGE',_0x3348d5)),_0x5bd852['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5186ce,'ELEMENT_CAPTION')),_0x2b97f4['plugins']['has']('ImageUploadEditing')&&_0x5bd852['enableCommand']('uploadImage'),_0x2b97f4['plugins']['has']('ImageBlockEditing')&&_0x2b97f4['plugins']['has']('ImageInlineEditing')&&(_0x5bd852['enableCommand']('imageTypeInline',(_0x2b0b3b,_0x5ba3a0)=>{const _0xb8299d=_0x5239ea['getClosestSelectedImageElement'](_0x2b97f4['model']['document']['selection']);_0x2b97f4['model']['change'](()=>{_0x5bd852['markBlockFormat'](_0xb8299d,{'commandName':'imageTypeInline','commandParams':[_0x5ba3a0]},[],'convertBlockImageToInline');});}),_0x5bd852['enableCommand']('imageTypeBlock',(_0x52a109,_0x20e6d8)=>{_0x2b97f4['model']['change'](_0x1a50d3=>{let _0x5450b9=_0x5239ea['getClosestSelectedImageElement'](_0x2b97f4['model']['document']['selection']),_0x3da10f=_0x1a50d3['createRangeOn'](_0x5450b9);const _0x298190=_0x38d187['fromPosition'](_0x3da10f['start'],'toPrevious'),_0x19f5c6=_0x38d187['fromPosition'](_0x3da10f['end'],'toNext');_0x5bd852['forceDefaultExecution'](()=>_0x52a109(_0x20e6d8)),_0x5450b9=_0x5239ea['getClosestSelectedImageElement'](_0x2b97f4['model']['document']['selection']),_0x3da10f=_0x1a50d3['createRangeOn'](_0x5450b9);const _0x580688=_0x1a50d3['createRange'](_0x298190,_0x19f5c6);_0x298190['detach'](),_0x19f5c6['detach'](),_0x5bd852['markBlockFormat'](_0x5450b9,{'commandName':'imageTypeInline','commandParams':[_0x20e6d8]},[],'convertInlineImageToBlock'),_0x580688['start']['isBefore'](_0x3da10f['start'])&&_0x5bd852['markInsertion'](_0x1a50d3['createRange'](_0x580688['start'],_0x3da10f['start']),'convertInlineImageToBlock'),_0x3da10f['end']['isBefore'](_0x580688['end'])&&_0x5bd852['markInsertion'](_0x1a50d3['createRange'](_0x3da10f['end'],_0x580688['end']),'convertInlineImageToBlock');});}),_0x5bd852['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5bd852['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5bd852['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5bd852['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5bd852['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5bd852['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x7e0857])=>{const _0x95908d=_0x5bd852['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xb9a25a=_0x7e0857['start'],_0x172f96=_0x7e0857['end'];const _0x4e94e4=_0x2b97f4['model']['schema']['getNearestSelectionRange'](_0xb9a25a,'backward'),_0x41680d=_0x2b97f4['model']['schema']['getNearestSelectionRange'](_0x172f96,'forward');_0x4e94e4['isCollapsed']&&(_0xb9a25a=_0x4e94e4['start']),_0x41680d['isCollapsed']&&(_0x172f96=_0x41680d['end']),_0x95908d([_0x2b97f4['model']['createRange'](_0xb9a25a,_0x172f96)]);}),_0x5bd852['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x42ecd6),_0x5bd852['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x42ecd6)),_0x2b97f4['plugins']['has']('ImageCaptionEditing')&&(_0x5bd852['enableCommand']('toggleImageCaption',(_0x2192f5,_0x21ac66)=>{const _0x4bd610=_0x2b97f4['plugins']['get']('ImageCaptionUtils');let _0x5acfac=_0x5239ea['getClosestSelectedImageElement'](_0x2b97f4['model']['document']['selection']),_0x14ec38=_0x4bd610['getCaptionFromImageModelElement'](_0x5acfac);_0x2b97f4['model']['change'](()=>{if(_0x14ec38)return void _0x5bd852['markDeletion'](_0x2b97f4['model']['createRangeOn'](_0x14ec38));const _0xc2252e=_0x5239ea['isBlockImage'](_0x5acfac);_0x2192f5(_0x21ac66),_0x5acfac=_0x5239ea['getClosestSelectedImageElement'](_0x2b97f4['model']['document']['selection']),_0x14ec38=_0x4bd610['getCaptionFromImageModelElement'](_0x5acfac),_0x5bd852['markInsertion'](_0x2b97f4['model']['createRangeOn'](_0x14ec38),_0xc2252e?null:'imageCaption');});}),_0x5bd852['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x42ecd6));const _0x3f425b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x514b2c(_0x415d30,_0x42c04d){const _0x5d6862=_0x3f425b['findIndex'](({type:_0xe4604f,subType:_0x30ce92})=>_0x415d30['type']==_0xe4604f&&_0x415d30['subType']==_0x30ce92),_0x1ed794=_0x3f425b['findIndex'](({type:_0x35df86,subType:_0x1936f2})=>_0x42c04d['type']==_0x35df86&&_0x42c04d['subType']==_0x1936f2);if(_0x5d6862<0x0||_0x1ed794<0x0)return!0x1;const _0x40b819=_0x415d30['getFirstRange'](),_0x4d2f36=_0x42c04d['getFirstRange']();if((0x0==_0x5d6862||0x1==_0x5d6862)&&0x2==_0x1ed794&&_0x40b819['isIntersecting'](_0x4d2f36))return!0x0;if(0x2==_0x5d6862&&0x3==_0x1ed794){const _0x3e7245=_0x5bd852['_findSuggestions'](_0x40b819,'insertion')['filter'](({suggestion:_0x430dd4,meta:_0x5ade8e})=>_0x5ade8e['isOwn']&&'convertInlineImageToBlock'==_0x430dd4['subType']);if(_0x3e7245['length']>0x1&&_0x4d2f36['end']['isEqual'](_0x40b819['start']))return!0x0;if(0x1==_0x3e7245['length']&&(_0x40b819['start']['isEqual'](_0x4d2f36['end'])||_0x40b819['end']['isEqual'](_0x4d2f36['start'])))return!0x0;}if(0x3==_0x5d6862&&0x3==_0x1ed794&&_0x40b819['start']['isBefore'](_0x4d2f36['start'])){const _0xf674eb=_0x40b819['end']['nodeAfter'],_0x2c00e1=_0x4d2f36['start']['nodeBefore'];return _0x5239ea['isBlockImage'](_0xf674eb)&&_0xf674eb===_0x2c00e1;}return!0x1;}function _0x42ecd6(_0x38c512,_0x33b2ad){return _0x514b2c(_0x38c512,_0x33b2ad)?[_0x38c512,_0x33b2ad]:_0x514b2c(_0x33b2ad,_0x38c512)?[_0x33b2ad,_0x38c512]:null;}_0x2b97f4['plugins']['has']('ImageResize')&&(_0x5bd852['enableDefaultAttributesIntegration']('resizeImage'),_0x5bd852['registerBlockAttribute']('resizedWidth'),_0x5bd852['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5186ce,'FORMAT_IMAGE_SIZE'))),_0x2b97f4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5bd852['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5bd852['registerBlockAttribute']('alt')),_0x5bd852['descriptionFactory']['registerDescriptionCallback'](_0x8a92ed=>{if(!!_0x3f425b['find'](({type:_0x141359,subType:_0x12c577})=>_0x8a92ed['type']==_0x141359&&_0x8a92ed['subType']==_0x12c577))return _0x8a92ed['previous']?{}:void 0x0;}),_0x5bd852['descriptionFactory']['registerDescriptionCallback'](_0x8755c3=>{if('insertion'==_0x8755c3['type']||'deletion'==_0x8755c3['type']){const _0x4af461=_0x8755c3['getContainedElement']();if(_0x4af461&&_0x4af461['is']('element','caption'))return{'type':'insertion'==_0x8755c3['type']?'addObject':'removeObject','element':_0x4af461,'quantity':0x1};}}),_0x5bd852['descriptionFactory']['registerDescriptionCallback'](_0x586c69=>'formatBlock'==_0x586c69['type']&&'convertInlineImageToBlock'==_0x586c69['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x586c69['type']&&'convertBlockImageToInline'==_0x586c69['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5bd852['descriptionFactory']['registerDescriptionCallback'](_0x500bee=>{if('attribute'!=_0x500bee['type'])return;const {data:_0x3cedb1}=_0x500bee;if(!_0x3cedb1||'alt'!=_0x3cedb1['key'])return;const _0x31268c=_0x3cedb1['newValue'];return _0x31268c?{'type':'format','content':o(_0x5186ce,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x31268c+'\x22')}:{'type':'format','content':o(_0x5186ce,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1346ab=this['editor'],_0x3f7557=_0x1346ab['locale'];_0x1346ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bd8f5=>{if('formatBlock'!=_0x3bd8f5['type']&&'formatInline'!=_0x3bd8f5['type'])return;const {data:_0x65db74}=_0x3bd8f5;if(_0x65db74){if('imageTextAlternative'==_0x65db74['commandName']){const _0x48d66f=_0x65db74['commandParams'][0x0]['newValue'];return _0x48d66f?{'type':'format','content':o(_0x3f7557,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48d66f+'\x22')}:{'type':'format','content':o(_0x3f7557,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x65db74['commandName']){const _0x53a8e6=_0x65db74['commandParams'][0x0]['width'];return _0x53a8e6?{'type':'format','content':o(_0x3f7557,'*Set\x20image\x20width:*\x20%0',_0x53a8e6)}:{'type':'format','content':o(_0x3f7557,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3604c0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3f5172=this['editor']['locale'],_0x558c02=this['editor']['plugins']['get']('TrackChangesEditing');_0x558c02['enableDefaultAttributesIntegration']('replaceImageSource'),_0x558c02['registerBlockAttribute']('src'),_0x558c02['descriptionFactory']['registerDescriptionCallback'](_0x5a9286=>{if('attribute'!=_0x5a9286['type'])return;const {data:_0x4d8dad}=_0x5a9286;return _0x4d8dad&&'src'==_0x4d8dad['key']?_0x4d8dad['newValue']&&_0x4d8dad['oldValue']?{'type':'format','content':o(_0x3f5172,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5d5305=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d5305['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5d5305['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d5305['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5d5305['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fe7ab=this['editor'],_0x5620b6=_0x3fe7ab['locale'];_0x3fe7ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c3c03=>{if('formatBlock'!=_0x5c3c03['type']&&'formatInline'!=_0x5c3c03['type'])return;const {data:_0x1e4d5c}=_0x5c3c03;if(!_0x1e4d5c||'replaceImageSource'!=_0x1e4d5c['commandName'])return;return{'type':'format','content':o(_0x5620b6,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x3604c0{['afterInit'](){const _0x3dc5b1=this['editor'];if(!_0x3dc5b1['plugins']['has']('ImageStyleEditing'))return;const _0x5ffe23=_0x3dc5b1['plugins']['get']('TrackChangesEditing'),_0x3084bd=_0x3dc5b1['plugins']['get']('ImageUtils'),_0x26d5a2={};_0x5ffe23['enableCommand']('imageStyle',(_0x5c7346,_0x74cce1)=>{const _0x466415=_0x3dc5b1['plugins']['get']('Users')['me'],_0x21ccc3=_0x3dc5b1['commands']['get']('imageStyle');let _0x16ae95=_0x3084bd['getClosestSelectedImageElement'](_0x3dc5b1['model']['document']['selection']),_0x2e0b1a=_0x3dc5b1['model']['createRangeOn'](_0x16ae95),_0xbe41a7=_0x21ccc3['value'];if(_0xbe41a7==_0x74cce1['value'])return;const _0x2ff4e2={'commandName':'imageStyle','commandParams':[_0x74cce1],'formatGroupId':_0x249608()};_0x3dc5b1['model']['change'](()=>{if(_0x5ffe23['getSuggestions']()['filter'](_0x1349d2=>_0x1349d2['isInContent']&&_0x466415==_0x1349d2['author']&&('formatBlock'==_0x1349d2['type']||'formatInline'==_0x1349d2['type'])&&('imageStylePreApply'==_0x1349d2['subType']||'imageStylePostApply'==_0x1349d2['subType'])&&_0x1349d2['getFirstRange']()['isEqual'](_0x2e0b1a))['forEach'](_0xd1ed96=>_0x5ffe23['discardSuggestion'](_0xd1ed96['head'])),_0x16ae95=_0x3084bd['getClosestSelectedImageElement'](_0x3dc5b1['model']['document']['selection']),_0x2e0b1a=_0x3dc5b1['model']['createRangeOn'](_0x16ae95),_0x21ccc3['refresh'](),_0x3dc5b1['commands']['get']('imageTypeInline')['refresh'](),_0x3dc5b1['commands']['get']('imageTypeBlock')['refresh'](),_0xbe41a7=_0x21ccc3['value'],_0xbe41a7!=_0x74cce1['value'])return _0x3084bd['isInlineImage'](_0x16ae95)&&_0x21ccc3['shouldConvertImageType'](_0x74cce1['value'],_0x16ae95)?(_0x5c7346({..._0x74cce1,'setImageSizes':!0x1}),_0x16ae95=_0x3084bd['getClosestSelectedImageElement'](_0x3dc5b1['model']['document']['selection']),void _0x5ffe23['markBlockFormat'](_0x16ae95,{..._0x2ff4e2,'commandReversedParams':[{'value':_0xbe41a7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3084bd['isBlockImage'](_0x16ae95)?_0x5ffe23['markBlockFormat'](_0x16ae95,_0x2ff4e2,[],'imageStylePostApply'):_0x5ffe23['markInlineFormat'](_0x2e0b1a,_0x2ff4e2,'imageStylePostApply'));});});for(const _0x395c1d of _0x3dc5b1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x26d5a2[_0x395c1d['name']]=_0x395c1d['title']['toLowerCase']();_0x5ffe23['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5ffe23['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5ffe23['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5ffe23['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x105f58])=>{_0x3084bd['setImageNaturalSizeAttributes'](_0x105f58['getContainedElement']());}),_0x5ffe23['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x367c43,_0x438468)=>{_0x5ffe23['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x367c43,{'commandName':_0x438468['commandName'],'commandParams':_0x438468['commandReversedParams']});}),_0x5ffe23['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x326fff,_0x117ea2){if(_0x20aefb(_0x326fff,_0x117ea2))return[_0x326fff,_0x117ea2];if(_0x20aefb(_0x117ea2,_0x326fff))return[_0x117ea2,_0x326fff];return null;});const _0x28ad1e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20aefb(_0x6d3dc5,_0x5d0d76){const _0x15dede=_0x28ad1e['findIndex'](({type:_0x4cdf86,subType:_0x386cdb})=>_0x6d3dc5['type']==_0x4cdf86&&_0x6d3dc5['subType']==_0x386cdb),_0x49e5f1=_0x28ad1e['findIndex'](({type:_0x4ad6aa,subType:_0x55fc56})=>_0x5d0d76['type']==_0x4ad6aa&&_0x5d0d76['subType']==_0x55fc56);if(_0x15dede<0x0||_0x49e5f1<0x0)return!0x1;const _0x9fb751=_0x6d3dc5['getFirstRange'](),_0xa4ce6a=_0x5d0d76['getFirstRange']();if((0x0==_0x15dede||0x1==_0x15dede)&&0x2==_0x49e5f1&&_0x9fb751['isIntersecting'](_0xa4ce6a))return!0x0;if(0x2==_0x15dede&&0x3==_0x49e5f1){const _0x4a80a1=_0x5ffe23['_findSuggestions'](_0x9fb751,'insertion')['filter'](({suggestion:_0x2c7144,meta:_0x622e84})=>_0x622e84['isOwn']&&'convertInlineImageToBlock'==_0x2c7144['subType']);if(_0x4a80a1['length']>0x1&&_0xa4ce6a['end']['isEqual'](_0x9fb751['start']))return!0x0;if(0x1==_0x4a80a1['length']&&(_0x9fb751['start']['isEqual'](_0xa4ce6a['end'])||_0x9fb751['end']['isEqual'](_0xa4ce6a['start'])))return!0x0;}if(0x3==_0x15dede&&0x3==_0x49e5f1&&_0x9fb751['start']['isBefore'](_0xa4ce6a['start'])){const _0x75b7e0=_0x9fb751['end']['nodeAfter'],_0xdd9e69=_0xa4ce6a['start']['nodeBefore'];return _0x3084bd['isBlockImage'](_0x75b7e0)&&_0x75b7e0===_0xdd9e69;}return!0x1;}_0x3dc5b1['model']['document']['registerPostFixer'](()=>{let _0x409aab=!0x1;const _0x43d39e=Array['from'](_0x3dc5b1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c3dbd,data:_0x30c474}of _0x43d39e){const {group:_0xfab663,type:_0x1aae71,subType:_0x3408fa,id:_0x271110}=_0x5ffe23['_splitMarkerName'](_0x1c3dbd);if('suggestion'==_0xfab663&&_0x5ffe23['hasSuggestion'](_0x271110)){if('formatBlock'==_0x1aae71&&('imageStylePreApply'==_0x3408fa||'imageStylePostApply'==_0x3408fa)){const _0x37a5bd=_0x5ffe23['getSuggestion'](_0x271110);if(_0x30c474['newRange']){const _0x2b9ef6=_0x37a5bd['getFirstRange']()['getContainedElement']();if(_0x3084bd['isBlockImage'](_0x2b9ef6))continue;_0x5ffe23['discardSuggestion'](_0x37a5bd),_0x409aab=!0x0;}}if('insertion'==_0x1aae71&&'imageCaption'==_0x3408fa&&!_0x30c474['newRange']){const _0x20c125=_0x5ffe23['getSuggestion'](_0x271110);_0x20c125['next']&&_0x20c125['next']['isInContent']&&(_0x5ffe23['discardSuggestion'](_0x20c125['next']),_0x409aab=!0x0);}}}return _0x409aab;}),this['_registerLegacyDescription'](_0x26d5a2);}['_registerLegacyDescription'](_0x4b3d12){const _0x47652d=this['editor'],_0x2b3f82=_0x47652d['locale'];_0x47652d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11a88c=>{if('formatBlock'!=_0x11a88c['type']&&'formatInline'!=_0x11a88c['type'])return;const {data:_0x1bd9c4}=_0x11a88c;if(!_0x1bd9c4||'imageStyle'!=_0x1bd9c4['commandName'])return;const _0x547206=_0x1bd9c4['commandParams'][0x0]['value'];return _0x3614e9('side'===_0x547206?o(_0x2b3f82,'FORMAT_SIDE_IMAGE'):_0x4b3d12[_0x547206]||_0x547206);function _0x3614e9(_0x5b7282){return{'type':'format','content':o(_0x2b3f82,'*Format:*\x20%0',_0x5b7282)};}});}}class ot extends _0x3604c0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2b8172){super(_0x2b8172),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3690e2=this['editor'],_0x14bca3=_0x3690e2['commands']['get']('importWord'),_0x2f2042=_0x3690e2['commands']['get']('trackChanges');_0x14bca3&&(_0x14bca3['on']('execute',(_0x592201,[,_0x1feccb])=>{this['_trackChangesValueDuringImport']=_0x2f2042['value'],_0x1feccb['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x14bca3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x14bca3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2f2042['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3690e2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x40c286,_0x3245c4){const {suggestions:_0x2f4120}=_0x3245c4,_0x2e746b=this['editor']['commands']['get']('trackChanges'),_0x313105=_0x2e746b['value'];this['_trackChangesValueDuringImport']!==_0x313105&&(_0x2e746b['execute'](),this['_trackChangesExecuted']=!0x0),_0x2f4120&&_0x2f4120['forEach'](({id:_0x138c8b,type:_0x591a1c,author:_0x1c9cac,created_at:_0x568bc6})=>{const _0x3dea69={'id':_0x138c8b,'type':_0x591a1c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1c9cac,'createdAt':_0x568bc6?new Date(_0x568bc6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3dea69);});}}class rt extends _0x3604c0{['afterInit'](){const _0x914ea2=this['editor'],_0x2959b8=_0x914ea2['plugins']['get']('TrackChangesEditing');if(_0x914ea2['plugins']['has']('IndentEditing')&&(_0x2959b8['enableCommand']('indent'),_0x2959b8['enableCommand']('outdent')),_0x914ea2['plugins']['has']('IndentBlock')){for(const _0x27bc74 of['indentBlock','outdentBlock'])_0x2959b8['enableDefaultAttributesIntegration'](_0x27bc74);}const _0x3195ed=_0x914ea2['locale'];_0x2959b8['registerBlockAttribute']('blockIndent'),_0x2959b8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3195ed,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bd78b=this['editor'],_0x37736f=_0x2bd78b['locale'],_0x59c0fa=_0x2bd78b['plugins']['get']('TrackChangesEditing');_0x59c0fa['descriptionFactory']['registerDescriptionCallback'](_0x114f62=>{if('formatBlock'!=_0x114f62['type'])return;const {data:_0x50798e}=_0x114f62;if(!_0x50798e)return;if('indentBlock'!=_0x50798e['commandName']&&'outdentBlock'!=_0x50798e['commandName'])return;const _0x56542b=_0x114f62['getItems']()[0x0],_0x514bd2=_0x59c0fa['descriptionFactory']['getItemLabel'](_0x56542b);return'indentBlock'==_0x50798e['commandName']?{'type':'format','content':o(_0x37736f,'*Indent:*\x20%0',_0x514bd2)}:'outdentBlock'==_0x50798e['commandName']?{'type':'format','content':o(_0x37736f,'*Outdent:*\x20%0',_0x514bd2)}:void 0x0;});}}class at extends _0x3604c0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x3604c0{['afterInit'](){const _0x2c8b5b=this['editor'];if(!_0x2c8b5b['plugins']['has']('LinkEditing'))return;const _0x54964d=_0x2c8b5b['plugins']['get']('TrackChangesEditing'),_0x760d85=_0x2c8b5b['commands']['get']('link');_0x54964d['enableDefaultAttributesIntegration']('link'),_0x54964d['enableDefaultAttributesIntegration']('unlink'),_0x54964d['registerInlineAttribute']('linkHref');for(const _0x3b4268 of _0x760d85['manualDecorators'])_0x54964d['registerInlineAttribute'](_0x3b4268['id']),_0x54964d['descriptionFactory']['registerAttributeLabel'](_0x3b4268['id'],'link\x20('+_0x3b4268['label']['toLowerCase']()+')');_0x54964d['descriptionFactory']['registerDescriptionCallback'](_0x2647f4=>{if('attribute'!=_0x2647f4['type'])return;const {data:_0x599346}=_0x2647f4;if(!_0x599346||'linkHref'!=_0x599346['key'])return;const _0x4ead01=_0x599346['newValue'],_0x339ea3=_0x2c8b5b['locale'];return{'type':'format','content':null==_0x4ead01?o(_0x339ea3,'*Remove\x20link*'):o(_0x339ea3,'*Set\x20link:*\x20%0','\x22'+_0x4ead01+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ae2c9=this['editor'],_0x3452c3=_0x5ae2c9['locale'];_0x5ae2c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21a659=>{if('formatInline'!=_0x21a659['type'])return;const {data:_0x1b1d2f}=_0x21a659;if(_0x1b1d2f){if('link'==_0x1b1d2f['commandName']){const _0x32a043=_0x1b1d2f['commandParams'][0x0];return{'type':'format','content':o(_0x3452c3,'*Set\x20link:*\x20%0','\x22'+_0x32a043+'\x22')};}return'unlink'==_0x1b1d2f['commandName']?{'type':'format','content':o(_0x3452c3,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x3604c0{['afterInit'](){const _0x124b74=this['editor'],_0x2e118c=_0x124b74['locale'];if(!_0x124b74['plugins']['has']('LegacyListEditing'))return;const _0xa3ee54=_0x124b74['plugins']['get']('TrackChangesEditing'),_0x13b792=_0x124b74['plugins']['has']('LegacyTodoListEditing');function _0x151013(_0x261872){return()=>{const _0x49ab7b=_0x124b74['model']['document']['selection'],_0xbafa9d=_0x124b74['commands']['get'](_0x261872);if(_0xbafa9d['value'])return void _0x124b74['execute']('paragraph',{});const _0x2afc30=_0x261872['slice'](0x0,-0x4),_0x5bd4a9=function(_0x571d38,_0x5ab133,_0x588c19){let _0x384d46=Array['from'](_0x571d38)['filter'](_0x32680a=>function(_0x2d7a86,_0x4e8cd7){return _0x4e8cd7['checkChild'](_0x2d7a86['parent'],'listItem')&&!_0x4e8cd7['isObject'](_0x2d7a86);}(_0x32680a,_0x588c19));_0x384d46=_0x384d46['filter'](_0x52e98b=>!_0x52e98b['is']('element','listItem')||_0x52e98b['getAttribute']('listType')!=_0x5ab133);const _0x2c080b=new Set();for(const _0x1f5ba5 of _0x384d46)_0x1f5ba5['is']('element','listItem')?_0x2c080b['add'](me(_0x1f5ba5)):_0x2c080b['add'](_0x1f5ba5);return Array['from'](_0x2c080b);}(_0x49ab7b['getSelectedBlocks'](),_0x2afc30,_0x124b74['model']['schema']);_0x124b74['model']['change'](()=>{for(const _0x5e7b35 of _0x5bd4a9)_0xa3ee54['markBlockFormat'](_0x5e7b35,{'commandName':_0x261872,'commandParams':[{'forceValue':!_0xbafa9d['value']}],'formatGroupId':'blockName'},fe(_0x5e7b35));});};}function _0x49cb4d(_0x378c70){return()=>{const _0x38b575=function(_0x976452){let _0x333ae4=Array['from'](_0x976452);const _0x549255=_0x333ae4['findIndex'](_0x10ea2e=>'listItem'!=_0x10ea2e['name']);return _0x549255>-0x1&&(_0x333ae4=_0x333ae4['slice'](0x0,_0x549255)),_0x333ae4;}(_0x124b74['model']['document']['selection']['getSelectedBlocks']()),_0x2209aa=_0x124b74['model']['createRange'](_0x124b74['model']['createPositionAt'](_0x38b575[0x0],'before'),_0x124b74['model']['createPositionAt'](_0x38b575[_0x38b575['length']-0x1],'end'));_0x124b74['model']['change'](()=>{_0xa3ee54['markBlockFormat'](_0x2209aa,{'commandName':_0x378c70,'commandParams':[],'formatGroupId':'listIndent'},function(_0x43010f){const _0x372ffb=new Set();for(const _0xb9ae7f of _0x43010f){let _0x91ae8c=_0xb9ae7f['nextSibling'];for(;_0x91ae8c&&_0x91ae8c['getAttribute']('listIndent')>_0xb9ae7f['getAttribute']('listIndent');)_0x372ffb['add'](_0x91ae8c),_0x91ae8c=_0x91ae8c['nextSibling'];}return Array['from'](_0x372ffb);}(_0x38b575));});};}_0xa3ee54['enableCommand']('numberedList',_0x151013('numberedList')),_0xa3ee54['enableCommand']('bulletedList',_0x151013('bulletedList')),_0x13b792&&_0xa3ee54['enableCommand']('todoList',_0x151013('todoList')),_0xa3ee54['enableCommand']('indentList',_0x49cb4d('indentList')),_0xa3ee54['enableCommand']('outdentList',_0x49cb4d('outdentList')),_0x13b792&&_0xa3ee54['enableCommand']('checkTodoList',()=>{const _0x58633b=_0x124b74['commands']['get']('checkTodoList'),_0x1eff0d=Array['from'](_0x58633b['_selectedElements']);_0x1eff0d['filter'](_0x285814=>_0x285814['getAttribute']('todoListChecked')!=_0x58633b['value']),_0x124b74['model']['change'](()=>{for(const _0x8f6a08 of _0x1eff0d)_0xa3ee54['markBlockFormat'](_0x8f6a08,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x58633b['value']}]});});}),_0xa3ee54['descriptionFactory']['registerElementLabel']('listItem',_0x3ea2e1=>o(_0x2e118c,'ELEMENT_LIST_ITEM',_0x3ea2e1)),_0xa3ee54['descriptionFactory']['registerDescriptionCallback'](_0xadef1a=>{if('formatBlock'!=_0xadef1a['type']&&'formatInline'!=_0xadef1a['type'])return;const {data:_0x49ad1e}=_0xadef1a;if(_0x49ad1e){if('numberedList'==_0x49ad1e['commandName']||'bulletedList'==_0x49ad1e['commandName']||'todoList'==_0x49ad1e['commandName'])switch(_0x49ad1e['commandName']['replace']('List','')){case'bulleted':return _0x2d6c6d(o(_0x2e118c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d6c6d(o(_0x2e118c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d6c6d(o(_0x2e118c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x49ad1e['commandName'])return{'type':'format','content':o(_0x2e118c,'*Indent:*\x20%0',o(_0x2e118c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x49ad1e['commandName'])return{'type':'format','content':o(_0x2e118c,'*Outdent:*\x20%0',o(_0x2e118c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x49ad1e['commandName'])return _0x49ad1e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e118c,'*Check\x20item*')}:{'type':'format','content':o(_0x2e118c,'*Uncheck\x20item*')};}function _0x2d6c6d(_0xf26280){return{'type':'format','content':o(_0x2e118c,'*Change\x20to:*\x20%0',_0xf26280)};}});}}function me(_0xde85c5){const _0x4897f6=_0xde85c5['getAttribute']('listIndent');if(0x0==_0x4897f6)return _0xde85c5;let _0x355e7a=_0xde85c5;for(;_0xde85c5['previousSibling']&&_0xde85c5['previousSibling']['is']('element','listItem');){const _0x575c3d=_0xde85c5['previousSibling']['getAttribute']('listIndent');if(_0x575c3d==_0x4897f6)_0x355e7a=_0xde85c5['previousSibling'];else{if(_0x575c3d<_0x4897f6)break;}_0xde85c5=_0xde85c5['previousSibling'];}return _0x355e7a;}function fe(_0x1b295a){const _0x2a7752=[];if(_0x1b295a['is']('element','listItem')&&_0x1b295a['getAttribute']('listIndent')>0x0){let _0xc8989c=_0x1b295a['nextSibling'];for(;_0xc8989c&&'listItem'==_0xc8989c['name']&&_0xc8989c['getAttribute']('listIndent')==_0x1b295a['getAttribute']('listIndent');)_0x2a7752['push'](_0xc8989c),_0xc8989c=_0xc8989c['nextSibling'];}return _0x2a7752;}class K extends _0x3604c0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3bf13a=this['editor']['config']['get']('list.properties'),_0x2f4573=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bf13a['styles']&&_0x2f4573['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3bf13a['reversed']&&_0x2f4573['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3bf13a['startIndex']&&_0x2f4573['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2f4573['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x44af31,_0x47b6ba={}){const _0x1da102=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1699c9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1da102['markMultiRangeBlockFormat'](_0x1699c9,{'commandName':'listStyle','commandParams':[{'type':_0x47b6ba['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x36eada,_0x3ebd83={}){const _0x36671a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ae7ed=this['_getSuggestionBlocks'](_0xedc51e=>_0xedc51e['is']('element','listItem')&&'numbered'===_0xedc51e['getAttribute']('listType'));if(_0x5ae7ed['length']<0x1)return;const _0x2283ba=_0x5ae7ed['map'](_0x41e717=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x41e717,'before'),this['editor']['model']['createPositionAt'](_0x41e717,0x0)));this['editor']['model']['change'](()=>{_0x36671a['markMultiRangeBlockFormat'](_0x2283ba,{'commandName':'listReversed','commandParams':[{'reversed':_0x3ebd83['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x139121,_0x299af9={}){const _0x1feb82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34af16=this['_getSuggestionBlocks'](_0x1219b1=>_0x1219b1['is']('element','listItem')&&'numbered'===_0x1219b1['getAttribute']('listType'));if(_0x34af16['length']<0x1)return;const _0x4a4b53=_0x34af16['map'](_0x30e2bb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30e2bb,'before'),this['editor']['model']['createPositionAt'](_0x30e2bb,0x0)));this['editor']['model']['change'](()=>{_0x1feb82['markMultiRangeBlockFormat'](_0x4a4b53,{'commandName':'listStart','commandParams':[{'startIndex':_0x299af9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x344534){if('formatBlock'!=_0x344534['type']&&'formatInline'!=_0x344534['type'])return;const _0x1defc3=this['editor']['locale'],{data:_0x143828}=_0x344534;if(!_0x143828)return;let _0x2daecb,_0x23ea8e;switch(_0x143828['commandName']){case'listStyle':_0x2daecb='*Change\x20to:*\x20%0',_0x23ea8e={'type':'format','content':o(_0x1defc3,_0x2daecb,o(_0x1defc3,this['_getTranslationKeyForListStyle'](_0x143828['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2daecb=_0x143828['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x23ea8e={'type':'format','content':o(_0x1defc3,_0x2daecb)};break;case'listStart':_0x2daecb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23ea8e={'type':'format','content':o(_0x1defc3,_0x2daecb,_0x143828['commandParams'][0x0]['startIndex'])};}return _0x23ea8e;}['_getSuggestionBlocksForListStyle'](){const _0x50d95f=this['editor']['plugins']['get']('LegacyListUtils');let _0x3dfeb3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3dfeb3[0x0]?.['is']('element','listItem')&&_0x3dfeb3['unshift'](..._0x50d95f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3dfeb3[_0x3dfeb3['length']-0x1]?.['is']('element','listItem')&&_0x3dfeb3['push'](..._0x50d95f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3dfeb3=[...new Set(_0x3dfeb3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3dfeb3=_0x3dfeb3['filter'](_0x576a11=>_0x576a11['is']('element','listItem'))),_0x3dfeb3;}['_getSuggestionBlocks'](_0x818940){const _0x5b1195=this['editor']['plugins']['get']('LegacyListUtils');let _0x14aa76=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x818940)['map'](_0x281307=>{const _0x252e19=this['editor']['model']['createPositionAt'](_0x281307,0x0);return[..._0x5b1195['getSiblingNodes'](_0x252e19,'backward'),..._0x5b1195['getSiblingNodes'](_0x252e19,'forward')];})['flat']();return _0x14aa76=[...new Set(_0x14aa76)],_0x14aa76;}['_getTranslationKeyForListStyle'](_0x35cd3d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x35cd3d)||'default')['toUpperCase']()+'_LIST_'+_0x35cd3d['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x3604c0{['afterInit'](){const _0x347ad1=this['editor'];if(!_0x347ad1['plugins']['has']('MediaEmbedEditing'))return;const _0x3e6cf2=_0x347ad1['plugins']['get']('TrackChangesEditing'),_0x521365=_0x347ad1['locale'];_0x3e6cf2['enableCommand']('mediaEmbed'),_0x3e6cf2['descriptionFactory']['registerElementLabel']('media',_0x546823=>o(_0x521365,'ELEMENT_MEDIA',_0x546823)),_0x347ad1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4ce238,{writer:_0x4d0701,options:_0x340483})=>{if(_0x340483['showSuggestionHighlights'])return _0x4d0701['createEmptyElement']('div');},'converterPriority':'high'}),_0x347ad1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x16876c,_0x5702f,_0x31223b)=>{_0x31223b['options']['showSuggestionHighlights']&&_0x16876c['stop']();},{'priority':'high'});}}class gt extends _0x3604c0{['afterInit'](){const _0x102a64=this['editor'];_0x102a64['plugins']['has']('MentionEditing')&&_0x102a64['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x3604c0{['afterInit'](){const _0x2e847c=this['editor'],_0x3d56b6=_0x2e847c['plugins']['get']('TrackChangesEditing');_0x2e847c['plugins']['has']('MultiLevelList')&&(_0x3d56b6['enableDefaultAttributesIntegration']('multiLevelList'),_0x3d56b6['registerBlockAttribute']('listMarkerStyle'),_0x3d56b6['descriptionFactory']['registerDescriptionCallback'](_0x20c77a=>this['handleDescriptions'](_0x20c77a)));}['handleDescriptions'](_0x598f24){const _0x50ee3a=this['editor']['locale'],{data:_0x57a049}=_0x598f24,_0x29d266={'type':'format','content':''};if(_0x57a049&&'listMarkerStyle'==_0x57a049['key']){if(!_0x57a049['oldValue'])return{'type':'format','content':o(_0x50ee3a,'*Set\x20format:*\x20%0',o(_0x50ee3a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57a049['newValue']+')'};if(!_0x57a049['newValue']){let _0x59534d=_0x598f24['head'];for(;_0x59534d;){if(_0x59534d['data']&&'listType'==_0x59534d['data']['key']&&_0x59534d['data']['newValue'])return _0x29d266;_0x59534d=_0x59534d['next'];}return{'type':'format','content':o(_0x50ee3a,'*Remove\x20format:*\x20%0',o(_0x50ee3a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57a049['oldValue']+')'};}}}}class mt extends _0x3604c0{['afterInit'](){const _0x15c183=this['editor'];if(!_0x15c183['plugins']['has']('PageBreakEditing'))return;_0x15c183['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5c0dae=_0x15c183['plugins']['get']('TrackChangesEditing'),_0x5ddb59=_0x15c183['locale'];_0x5c0dae['descriptionFactory']['registerElementLabel']('pageBreak',_0x408270=>o(_0x5ddb59,'ELEMENT_PAGE_BREAK',_0x408270));}}class dt extends _0x3604c0{['afterInit'](){const _0x6c0d13=this['editor'];if(!_0x6c0d13['plugins']['has']('Paragraph'))return;const _0x1b6540=_0x6c0d13['locale'],_0x43293c=_0x6c0d13['plugins']['get']('TrackChangesEditing');_0x43293c['descriptionFactory']['registerElementLabel']('paragraph',_0x4391e1=>o(_0x1b6540,'ELEMENT_PARAGRAPH',_0x4391e1)),_0x43293c['enableDefaultAttributesIntegration']('paragraph'),_0x43293c['enableCommand']('insertParagraph'),_0x6c0d13['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x6c0d13),{'priority':'highest'}),_0x6c0d13['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x57312f,_0x204604,_0x4d84e5)=>{_0x4d84e5['options']['showSuggestionHighlights']&&nr(_0x6c0d13,{'showActiveMarker':!0x1})(_0x57312f,_0x204604,_0x4d84e5);},{'priority':'highest'});const _0x549577=_0x43293c['descriptionFactory'];_0x549577['registerDescriptionCallback'](_0x3e3966=>{if('insertion'!==_0x3e3966['type'])return;const {start:_0x5d592f,end:_0x3a33a6}=_0x3e3966['getFirstRange']();if(!_0x5d592f['isTouching'](_0x3a33a6)||!_0x5d592f['nodeAfter'])return;const _0x53e025=_0x6c0d13['model']['schema'],_0x1101e8=_0x5d592f['nodeAfter'];return _0x53e025['isBlock'](_0x1101e8)&&!_0x53e025['isLimit'](_0x1101e8)&&_0x53e025['checkChild'](_0x1101e8,'$text')?{'type':'insertion','content':o(_0x1b6540,'*Insert:*\x20%0',_0x549577['getItemLabel'](_0x1101e8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30c16f=this['editor'],_0x1015bc=_0x30c16f['locale'];_0x30c16f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x543086=>{if('formatBlock'!=_0x543086['type'])return;const {data:_0x1d48d7}=_0x543086;return _0x1d48d7&&'paragraph'==_0x1d48d7['commandName']?{'type':'format','content':o(_0x1015bc,'*Change\x20to:*\x20%0',o(_0x1015bc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x20d0fd,{showActiveMarker:_0x16a70f=!0x0}={}){return(_0x5a5b67,_0x1b6aa4,_0x3a5e34)=>{const _0x21dd03=_0x20d0fd['plugins']['get']('TrackChangesEditing'),_0x366894=_0x1b6aa4['markerRange']['start'],_0x43aebb=_0x1b6aa4['markerRange']['end'],_0xc70ae0=_0x20d0fd['model']['schema'];if(!_0x366894['isTouching'](_0x43aebb)||!_0x366894['nodeAfter'])return;const _0x54e3b0=_0x366894['nodeAfter'];if(_0xc70ae0['isBlock'](_0x54e3b0)&&!_0xc70ae0['isLimit'](_0x54e3b0)&&_0xc70ae0['checkChild'](_0x54e3b0,'$text')){if(!_0x3a5e34['consumable']['consume'](_0x1b6aa4['markerRange'],_0x5a5b67['name']))return;const _0x428d1e=_0x3a5e34['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2ebbe0=_0x3a5e34['mapper']['toViewPosition'](_0x43aebb);_0x16a70f&&_0x21dd03['activeMarkers']['includes'](_0x1b6aa4['markerName'])&&_0x3a5e34['writer']['addClass']('ck-suggestion-marker--active',_0x428d1e),_0x3a5e34['writer']['insert'](_0x2ebbe0,_0x428d1e),_0x3a5e34['mapper']['bindElementToMarker'](_0x428d1e,_0x1b6aa4['markerName']);}};}class pt extends _0x3604c0{['afterInit'](){const _0x11843=this['editor'];if(!_0x11843['plugins']['has']('RemoveFormatEditing'))return;_0x11843['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398340=this['editor'];_0x398340['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x302199=>{if('formatBlock'!=_0x302199['type']&&'formatInline'!=_0x302199['type'])return;const {data:_0x66e3e6}=_0x302199;return _0x66e3e6&&'removeFormat'==_0x66e3e6['commandName']?{'type':'format','content':o(_0x398340['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x3604c0{['afterInit'](){const _0x496b85=this['editor'];if(!_0x496b85['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x40f109=_0x496b85['plugins']['get']('TrackChangesEditing');_0x40f109['enableCommand']('goToPreviousRestrictedEditingException'),_0x40f109['enableCommand']('goToNextRestrictedEditingException');const _0x314099=_0x496b85['plugins']['get']('RestrictedEditingModeEditing');_0x314099['enableCommand']('trackChanges'),_0x314099['enableCommand']('acceptSuggestion'),_0x314099['enableCommand']('discardSuggestion'),_0x314099['enableCommand']('acceptAllSuggestions'),_0x314099['enableCommand']('discardAllSuggestions'),_0x314099['enableCommand']('acceptSelectedSuggestions'),_0x314099['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x3604c0{static get['requires'](){return[_0x4ad629];}['init'](){const _0x49e7d4=this['editor'],_0x440cb5=_0x49e7d4['plugins']['get']('TrackChangesEditing');_0x440cb5['enableCommand']('shiftEnter'),_0x49e7d4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x49e7d4),{'priority':'high'}),_0x49e7d4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x49e7d4),{'priority':'high'}),_0x49e7d4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b2cb0,_0x3d49a8,_0x401b45)=>{_0x401b45['options']['showSuggestionHighlights']&&de(_0x49e7d4,{'showActiveMarker':!0x1})(_0x5b2cb0,_0x3d49a8,_0x401b45);}),_0x440cb5['descriptionFactory']['registerElementLabel']('softBreak',_0x31d8a5=>o(_0x49e7d4['locale'],'ELEMENT_LINE_BREAK',_0x31d8a5));}}function de(_0x3817c8,{showActiveMarker:_0x59f27b=!0x0}={}){return(_0x124288,_0x4ca2f0,_0x4ae7f7)=>{const _0x3d33aa=_0x3817c8['plugins']['get']('TrackChangesEditing');if(!_0x4ae7f7['consumable']['test'](_0x4ca2f0['markerRange'],_0x124288['name']))return;const _0x20a763=_0x3817c8['model'];for(const _0x652a9f of _0x4ca2f0['markerRange']['getItems']()){if(!_0x652a9f['is']('element','softBreak'))continue;const _0x3edfb9='deletion'==_0x4ca2f0['markerName']['split'](':')[0x1]?'merge':'split',_0x3210c2=_0x4ae7f7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3edfb9}),_0x2625f2=_0x4ae7f7['mapper']['toViewPosition'](_0x20a763['createPositionBefore'](_0x652a9f));_0x59f27b&&_0x3d33aa['activeMarkers']['includes'](_0x4ca2f0['markerName'])&&_0x4ae7f7['writer']['addClass']('ck-suggestion-marker--active',_0x3210c2),_0x4ae7f7['writer']['insert'](_0x2625f2,_0x3210c2),_0x4ae7f7['mapper']['bindElementToMarker'](_0x3210c2,_0x4ca2f0['markerName']);}};}class wt extends _0x3604c0{['afterInit'](){const _0x477f1f=this['editor'],_0x4dabab=_0x477f1f['model'],_0x3a8b87=_0x477f1f['locale'];if(!_0x477f1f['plugins']['has']('StandardEditingModeEditing'))return;const _0x52936c=_0x477f1f['plugins']['get']('TrackChangesEditing'),_0x1e5982='restrictedEditingException',_0x438eef=_0x477f1f['commands']['get'](_0x1e5982);_0x52936c['enableCommand'](_0x1e5982,(_0x11acb2,_0x206d88={})=>{const _0x36b981=_0x4dabab['document']['selection'];if(_0x36b981['isCollapsed'])return void _0x11acb2(_0x206d88);const _0x144b40=void 0x0!==_0x206d88['forceValue']?_0x206d88['forceValue']:!_0x438eef['value'];_0x4dabab['change'](()=>{const _0x42f49d=Array['from'](_0x36b981['getRanges']());for(const _0x157e5f of _0x42f49d){const _0x5cea20=_0x144b40?[_0x157e5f]:io(_0x1e5982,_0x157e5f,_0x4dabab);for(const _0x4aa439 of _0x5cea20)_0x52936c['markInlineFormat'](_0x4aa439,{'commandName':_0x1e5982,'commandParams':[{'forceValue':_0x144b40}]});}});}),_0x52936c['descriptionFactory']['registerDescriptionCallback'](_0x5f421f=>{if('formatBlock'!=_0x5f421f['type']&&'formatInline'!=_0x5f421f['type'])return;const {data:_0x29aef6}=_0x5f421f;return _0x29aef6&&_0x29aef6['commandName']==_0x1e5982?_0x29aef6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a8b87,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3a8b87,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x3604c0{['afterInit'](){const _0x4085cc=this['editor'];if(!_0x4085cc['plugins']['has']('Style')||!_0x4085cc['plugins']['has']('DataSchema'))return;const _0x5ee608=_0x4085cc['plugins']['get']('TrackChangesEditing'),_0x1f29b6=_0x4085cc['locale'],_0x1cc815=_0x4085cc['config']['get']('style')||{},_0x2d0044=_0x4085cc['plugins']['get']('GeneralHtmlSupport'),_0x5afb4d=_0x4085cc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4085cc['plugins']['get']('DataSchema'),_0x1cc815['definitions']);_0x5ee608['enableDefaultAttributesIntegration']('style');const _0x5436eb=new Set();for(const _0x3e2695 of _0x5afb4d['block']){const _0x9f4ec8=_0x2d0044['getGhsAttributeNameForElement'](_0x3e2695['element']);_0x5436eb['add'](_0x9f4ec8);}const _0x53e295=new Set();for(const _0x44b946 of _0x5afb4d['inline']){const _0x2dd0a4=_0x2d0044['getGhsAttributeNameForElement'](_0x44b946['element']);_0x53e295['add'](_0x2dd0a4);for(const _0x441475 of _0x44b946['ghsAttributes'])_0x53e295['add'](_0x441475);}for(const _0x1af00e of _0x5436eb)_0x5ee608['registerBlockAttribute'](_0x1af00e),_0x5ee608['descriptionFactory']['registerAttributeLabel'](_0x1af00e,o(_0x1f29b6,'FORMAT_STYLE'));for(const _0x4cc9a4 of _0x53e295)_0x5ee608['registerInlineAttribute'](_0x4cc9a4),_0x5ee608['descriptionFactory']['registerAttributeLabel'](_0x4cc9a4,o(_0x1f29b6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x416199=this['editor'],_0x1b5146=_0x416199['locale'];_0x416199['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52857a=>{if('formatBlock'!=_0x52857a['type']&&'formatInline'!=_0x52857a['type'])return;const {data:_0x5b1408}=_0x52857a;return _0x5b1408&&'style'===_0x5b1408['commandName']?_0x5b1408['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b5146,'*Set\x20format:*\x20%0',_0x5b1408['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1b5146,'*Remove\x20format:*\x20%0',_0x5b1408['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x3604c0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x40c054){super(_0x40c054),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x15d107=this['editor'],_0x252491=_0x15d107['model']['document']['selection'];if(!_0x15d107['plugins']['has']('TableEditing'))return;const _0x59b2fb=_0x15d107['locale'],_0x179c02=_0x15d107['plugins']['get']('TrackChangesEditing'),_0x19035e=_0x15d107['plugins']['get']('TableUtils');_0x179c02['descriptionFactory']['registerElementLabel']('table',_0x186c2d=>o(_0x59b2fb,'ELEMENT_TABLE',_0x186c2d)),this['_setupColumnsRowsFixing'](),_0x179c02['enableCommand']('insertTable'),_0x179c02['enableCommand']('selectTableRow'),_0x179c02['enableCommand']('selectTableColumn');for(const _0x29a0fc of['insertTableRowAbove','insertTableRowBelow']){const _0x4597cf=_0x15d107['commands']['get'](_0x29a0fc);_0x179c02['enableCommand'](_0x29a0fc,_0x1d7319=>{_0x15d107['model']['change'](_0xc8c3ce=>{_0x1d7319();const _0x1f3a3a='above'===_0x4597cf['order'],_0x190c69=_0x19035e['getSelectionAffectedTableCells'](_0x252491),_0x132d18=_0x19035e['getRowIndexes'](_0x190c69),_0x13ce1b=_0x1f3a3a?_0x132d18['first']-0x1:_0x132d18['last']+0x1,_0x589b05=_0x190c69[0x0]['findAncestor']('table'),_0x42e3c7=_0x19035e['createTableWalker'](_0x589b05,{'startRow':_0x13ce1b,'endRow':_0x13ce1b}),_0x1d13ca=Array['from'](_0x42e3c7)['map'](_0x1a1f16=>_0xc8c3ce['createRangeOn'](_0x1a1f16['cell']));_0x179c02['markMultiRangeInsertion'](_0x1d13ca,'tableRow');});});}for(const _0x33d283 of['insertTableColumnLeft','insertTableColumnRight']){const _0x33b6e9=_0x15d107['commands']['get'](_0x33d283);_0x179c02['enableCommand'](_0x33d283,_0xa0488f=>{_0x15d107['model']['change'](_0x1f9d13=>{_0xa0488f();const _0x55ff43='left'===_0x33b6e9['order'],_0x4546af=_0x19035e['getSelectionAffectedTableCells'](_0x252491),_0x489994=_0x19035e['getColumnIndexes'](_0x4546af),_0x36775a=_0x55ff43?_0x489994['first']-0x1:_0x489994['last']+0x1,_0x3ed2af=_0x4546af[0x0]['findAncestor']('table'),_0x52b677=_0x19035e['createTableWalker'](_0x3ed2af,{'startRow':0x0,'column':_0x36775a,'includeAllSlots':!0x1}),_0x476b6e=Array['from'](_0x52b677)['map'](_0x2e7e4a=>_0x1f9d13['createRangeOn'](_0x2e7e4a['cell']));_0x179c02['markMultiRangeInsertion'](_0x476b6e,'tableColumn');});});}for(const _0x30c360 of['removeTableRow','removeTableColumn']){const _0x3591bd=_0x30c360['substr'](0xb),_0x5872b1=_0x3591bd['toLowerCase'](),_0x5ef0b2=_0x5872b1['substr'](0x0,0x3)+'span',_0x434cec='table'+_0x3591bd,_0x5c75b2='min'+_0x3591bd,_0x3c7204='max'+_0x3591bd;_0x179c02['enableCommand'](_0x30c360,()=>{_0x15d107['model']['change'](_0x14ebad=>{const _0x2705d8=_0x19035e['getSelectionAffectedTableCells'](_0x252491),_0x159eb2=_0x2705d8[0x0]['findAncestor']('table');let _0x22e880;if('removeTableRow'==_0x30c360){const _0x39015e=_0x19035e['getRowIndexes'](_0x2705d8);_0x22e880={'startRow':_0x39015e['first'],'endRow':_0x39015e['last'],'includeAllSlots':!0x0};}else{const _0x405bd3=_0x19035e['getColumnIndexes'](_0x2705d8);_0x22e880={'startColumn':_0x405bd3['first'],'endColumn':_0x405bd3['last'],'includeAllSlots':!0x0};}const _0x1b7e42=_0x19035e['createTableWalker'](_0x159eb2,_0x22e880),_0x5c0441=Array['from'](_0x1b7e42)['map'](({cell:_0x50ee36})=>_0x50ee36),_0x39a51d=Ee(_0x5c0441['filter'](_0x5c378c=>_0x5c378c['hasAttribute'](_0x5ef0b2))),_0x7c653f=Ee(_0x5c0441['filter'](_0x235082=>!_0x235082['hasAttribute'](_0x5ef0b2)))['map'](_0x1a1ea0=>_0x14ebad['createRangeOn'](_0x1a1ea0)),_0x311662=_0x179c02['markMultiRangeDeletion'](_0x7c653f,_0x434cec);if(_0x311662&&('tableRow'==_0x311662['subType']||'tableColumn'==_0x311662['subType'])){const _0x35f8da=this['_getSuggestionCoords'](_0x311662);for(const _0x26b53a of _0x39a51d){const _0x13168a=_0x14ebad['createRangeOn'](_0x26b53a),_0x5f2187=_0x19035e['getCellLocation'](_0x26b53a),_0x45a401=_0x26b53a['getAttribute'](_0x5ef0b2)-0x1,_0x4afd3f=_0x35f8da[_0x5c75b2],_0xd6a298=_0x35f8da[_0x3c7204];_0x4afd3f<=_0x5f2187[_0x5872b1]&&_0x5f2187[_0x5872b1]+_0x45a401<=_0xd6a298&&_0x311662['addRange'](_0x13168a);}}});});}function _0x2e49f4(_0x37b030){const _0x3e2c9c=Array['from'](_0x252491['getRanges']())['map'](_0x4ba111=>_0x216293['fromRange'](_0x4ba111));_0x15d107['model']['change'](_0x468347=>{const _0x613db0=_0x468347['batch'];_0x37b030=_0x37b030['filter'](_0x42afe1=>'$graveyard'!=_0x42afe1['root']['rootName']),_0x468347['setSelection'](_0x37b030),_0x15d107['commands']['get']('removeTableRow')['refresh'](),_0x15d107['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x15d107['model']['enqueueChange'](()=>{_0x15d107['model']['enqueueChange'](_0x613db0,_0x1f0f6f=>{const _0x518bc9=_0x3e2c9c['filter'](_0x42934f=>'$graveyard'!=_0x42934f['root']['rootName']);_0x518bc9['length']>0x0&&_0x1f0f6f['setSelection'](_0x518bc9);for(const _0x26ad59 of _0x3e2c9c)_0x26ad59['detach']();});});});}function _0x4c8a23(_0x176dc7){_0x15d107['model']['change'](_0x2c6c3c=>{const _0x488693=Array['from'](_0x252491['getRanges']())['map'](_0x1c38af=>_0x216293['fromRange'](_0x1c38af)),_0x204386=[];for(const _0x1c6617 of _0x176dc7)for(const _0x36898b of _0x1c6617['getItems']({'shallow':!0x0}))_0x204386['push'](_0x36898b);for(const _0x52bbbf of _0x204386)'$graveyard'!=_0x52bbbf['root']['rootName']&&(_0x2c6c3c['setSelection'](_0x2c6c3c['createPositionAt'](_0x52bbbf,0x0)),_0x15d107['commands']['get']('removeTableColumn')['refresh'](),_0x15d107['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3cad61=_0x488693['filter'](_0x1e53e6=>'$graveyard'!=_0x1e53e6['root']['rootName']);_0x3cad61['length']>0x0&&_0x2c6c3c['setSelection'](_0x3cad61);for(const _0x5ae83e of _0x488693)_0x5ae83e['detach']();});}function _0x54ce39(_0x3669b3,_0x396c78){return _0x396c78['every'](_0x3c2797=>_0x3669b3['some'](_0x561a09=>_0x561a09['end']['isEqual'](_0x3c2797['start'])||_0x3c2797['end']['isEqual'](_0x561a09['start'])));}function _0x5c02bf(_0x45ef6f,_0x2abdb){return _0x45ef6f['some'](_0x167d9c=>_0x2abdb['some'](_0x227d68=>_0x167d9c['end']['isTouching'](_0x227d68['start'])));}_0x15d107['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2e47e3,_0x31a023,_0x541d30)=>{if(!_0x541d30['options']['showSuggestionHighlights'])return;const _0x448c93=_0x31a023['item'];if(!_0x448c93)return;const _0x5b2947=_0x541d30['mapper']['toViewElement'](_0x448c93);function _0x4128b9(_0x4eef34){return Array['isArray'](_0x4eef34)?_0x4eef34:[_0x4eef34];}_0x5b2947&&'tableCell'===_0x448c93['name']&&_0x261d74(_0x5b2947,_0x541d30['writer'],(_0x5d861f,_0x3850b7,_0x145c3d)=>_0x145c3d['addClass'](_0x4128b9(_0x3850b7['classes']),_0x5d861f),(_0xdb2f2e,_0x1c67bc,_0x18a559)=>_0x18a559['removeClass'](_0x4128b9(_0x1c67bc['classes']),_0xdb2f2e));},{'priority':'highest'}),_0x179c02['descriptionFactory']['registerDescriptionCallback'](_0x648af1=>{if('insertion'!=_0x648af1['type']&&'deletion'!=_0x648af1['type'])return;const _0x730e8e=_0x648af1['getContainedElement']();if(null!=_0x730e8e&&_0x730e8e['is']('element','table')){if('insertion'==_0x648af1['type']){const _0x12e08d=_0x648af1['getItems']()['filter'](_0x22394f=>_0x22394f['is']('$textProxy'))['map'](_0x347b60=>_0x347b60['data']);if(_0x12e08d['length'])return{'type':'insertion','content':o(_0x59b2fb,'*Insert:*\x20%0',o(_0x59b2fb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12e08d['join']('\x20')+'\x22'))};}if('deletion'==_0x648af1['type']){const _0x3b6586=_0x648af1['getItems']()['filter'](_0x3b53ef=>_0x3b53ef['is']('$textProxy'))['map'](_0x2e98eb=>_0x2e98eb['data']);if(_0x3b6586['length'])return{'type':'deletion','content':o(_0x59b2fb,'*Remove:*\x20%0',o(_0x59b2fb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b6586['join']('\x20')+'\x22'))};}}}),_0x179c02['descriptionFactory']['registerDescriptionCallback'](_0x4ad696=>{if('tableRow'==_0x4ad696['subType']){const _0x160b35=_0x4ad696['getItems']()['filter'](_0x4a4c42=>_0x4a4c42['is']('$textProxy'))['map'](_0x5ee04c=>_0x5ee04c['data']),_0x3de9f6=this['_getSuggestionCoords'](_0x4ad696),_0xc01335=_0x3de9f6['maxRow']-_0x3de9f6['minRow']+0x1;if('insertion'==_0x4ad696['type'])return _0x160b35['length']?{'type':'insertion','content':o(_0x59b2fb,'*Insert:*\x20%0',o(_0x59b2fb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc01335,'\x22'+_0x160b35['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x59b2fb,'*Insert:*\x20%0',o(_0x59b2fb,'ELEMENT_TABLE_ROW',_0xc01335))};if('deletion'==_0x4ad696['type'])return _0x160b35['length']?{'type':'deletion','content':o(_0x59b2fb,'*Remove:*\x20%0',o(_0x59b2fb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc01335,'\x22'+_0x160b35['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x59b2fb,'*Remove:*\x20%0',o(_0x59b2fb,'ELEMENT_TABLE_ROW',_0xc01335))};}if('tableColumn'==_0x4ad696['subType']){const _0x5b54a0=_0x4ad696['getItems']()['filter'](_0x2bb508=>_0x2bb508['is']('$textProxy'))['map'](_0x3db6d6=>_0x3db6d6['data']),_0x163ddd=this['_getSuggestionCoords'](_0x4ad696),_0x2105b5=_0x163ddd['maxColumn']-_0x163ddd['minColumn']+0x1;if('insertion'==_0x4ad696['type'])return _0x5b54a0['length']?{'type':'insertion','content':o(_0x59b2fb,'*Insert:*\x20%0',o(_0x59b2fb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2105b5,'\x22'+_0x5b54a0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x59b2fb,'*Insert:*\x20%0',o(_0x59b2fb,'ELEMENT_TABLE_COLUMN',_0x2105b5))};if('deletion'==_0x4ad696['type'])return _0x5b54a0['length']?{'type':'deletion','content':o(_0x59b2fb,'*Remove:*\x20%0',o(_0x59b2fb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2105b5,'\x22'+_0x5b54a0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x59b2fb,'*Remove:*\x20%0',o(_0x59b2fb,'ELEMENT_TABLE_COLUMN',_0x2105b5))};}}),_0x179c02['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e49f4),_0x179c02['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e49f4),_0x179c02['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4c8a23),_0x179c02['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4c8a23),_0x179c02['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x54ce39),_0x179c02['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x54ce39),_0x179c02['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5c02bf),_0x179c02['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5c02bf);}['_acceptFormatSuggestionCallbackFactory'](){const _0x44f91a=this['editor'],_0x55c3cc=_0x44f91a['model']['document']['selection'];return(_0x233893,_0x43d848)=>{_0x44f91a['model']['change'](_0x5a71aa=>{const {commandName:_0x3db1c8,commandParams:_0x500f0e}=_0x43d848;let _0x3a21f2=_0x233893[0x0]['end']['nodeBefore'];_0x500f0e&&_0x500f0e[0x0]&&!0x1===_0x500f0e[0x0]['forceValue']&&(_0x3a21f2=_0x233893[0x0]['start']['nodeAfter']);const _0x1ff81f=_0x5a71aa['createRangeIn'](_0x3a21f2);if('$graveyard'==_0x1ff81f['root']['rootName'])return;const _0x648ad9=Array['from'](_0x55c3cc['getRanges']())['map'](_0x32a83b=>_0x216293['fromRange'](_0x32a83b));_0x5a71aa['setSelection'](_0x1ff81f),_0x44f91a['commands']['get'](_0x3db1c8)['refresh'](),_0x500f0e['push']({'forceDefaultExecution':!0x0}),_0x44f91a['execute'](_0x3db1c8,..._0x500f0e);const _0x56d357=_0x648ad9['filter'](_0x5a018b=>'$graveyard'!=_0x5a018b['root']['rootName']);_0x56d357['length']>0x0&&_0x5a71aa['setSelection'](_0x56d357);for(const _0x55f6ab of _0x648ad9)_0x55f6ab['detach']();});};}['_getCoordsForCells'](_0x3b8ad8){const _0x3f81bc=this['editor']['plugins']['get']('TableUtils');let _0x3424ca=Number['MAX_SAFE_INTEGER'],_0x20d84b=Number['MIN_SAFE_INTEGER'],_0x34cf27=Number['MAX_SAFE_INTEGER'],_0x2cd672=Number['MIN_SAFE_INTEGER'];for(const _0x2f29ec of _0x3b8ad8){if('$graveyard'==_0x2f29ec['root']['rootName'])continue;const {row:_0x27aeaf,column:_0x652e43}=_0x3f81bc['getCellLocation'](_0x2f29ec),_0x165aaa=_0x2f29ec['hasAttribute']('rowspan')?_0x2f29ec['getAttribute']('rowspan')-0x1:0x0,_0x2505b1=_0x2f29ec['hasAttribute']('colspan')?_0x2f29ec['getAttribute']('colspan')-0x1:0x0;_0x3424ca=_0x27aeaf<_0x3424ca?_0x27aeaf:_0x3424ca,_0x20d84b=_0x27aeaf+_0x165aaa>_0x20d84b?_0x27aeaf+_0x165aaa:_0x20d84b,_0x34cf27=_0x652e43<_0x34cf27?_0x652e43:_0x34cf27,_0x2cd672=_0x652e43+_0x2505b1>_0x2cd672?_0x652e43+_0x2505b1:_0x2cd672;}return{'minRow':_0x3424ca,'maxRow':_0x20d84b,'minColumn':_0x34cf27,'maxColumn':_0x2cd672};}['_setupColumnsRowsFixing'](){const _0x5cb2f0=this['editor'],_0x26eb52=_0x5cb2f0['plugins']['get']('TrackChangesEditing'),_0x12e3e4=_0x5cb2f0['plugins']['get']('TableUtils');_0x5cb2f0['model']['document']['on']('change:data',()=>{const _0x329363=Array['from'](_0x5cb2f0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d3386,data:_0x552252}of _0x329363){const {group:_0x3a4034,id:_0x3ac631,subType:_0x8af1fa}=_0x26eb52['_splitMarkerName'](_0x2d3386);if('suggestion'!=_0x3a4034)continue;if(null!=_0x552252['oldRange'])continue;const _0x3d7116=_0x26eb52['getSuggestion'](_0x3ac631);this['_tablePostFixingSubtypes']['includes'](_0x8af1fa)&&this['_tableSuggestions']['add'](_0x3d7116);}},{'priority':'low'});const _0x31ccb0=(_0x3a8879,_0x22eacb)=>{let _0x3e1d0d=!0x1;const _0x1afb46=_0x22eacb['createRangeOn'](_0x3a8879),_0x175574=_0x3a8879['findAncestor']('table'),_0x4acc7a=_0x12e3e4['getCellLocation'](_0x3a8879);for(const _0x3cd212 of this['_tableSuggestions']){const _0x286cec=_0x3cd212['subType'],_0x46d789=_0x286cec['startsWith']('tablePaste'),_0x40e521=_0x286cec['substr'](_0x46d789?0xa:0x5),_0x23bfe0=_0x40e521['toLowerCase'](),_0x484cc9=_0x23bfe0['substr'](0x0,0x3)+'span',_0x55c1be='min'+_0x40e521,_0x32c01c='max'+_0x40e521;if(!_0x3cd212['isInContent'])continue;if(_0x175574!=_0x3cd212['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3cd212['isIntersectingWithRange'](_0x1afb46))continue;const _0xa34a1a=_0x3a8879['hasAttribute'](_0x484cc9)?_0x3a8879['getAttribute'](_0x484cc9)-0x1:0x0,_0x3bde7a=this['_getSuggestionCoords'](_0x3cd212),_0x49b9cc=_0x3bde7a[_0x55c1be],_0x498edd=_0x3bde7a[_0x32c01c];_0x49b9cc<=_0x4acc7a[_0x23bfe0]&&_0x4acc7a[_0x23bfe0]+_0xa34a1a<=_0x498edd&&(_0x3cd212['addRange'](_0x1afb46),_0x3e1d0d=!0x0);}return _0x3e1d0d;};_0x5cb2f0['model']['document']['registerPostFixer'](_0xabff5a=>{let _0x40eeb4=!0x1;for(const _0x303963 of _0x5cb2f0['model']['document']['differ']['getChanges']())if('insert'==_0x303963['type']){if('tableRow'==_0x303963['name']){for(const _0xd53250 of _0x303963['position']['nodeAfter']['getChildren']())_0x40eeb4=_0x40eeb4||_0x31ccb0(_0xd53250,_0xabff5a);}else'tableCell'==_0x303963['name']&&(_0x40eeb4=_0x40eeb4||_0x31ccb0(_0x303963['position']['nodeAfter'],_0xabff5a));}return _0x40eeb4;});}['_getSuggestionCoords'](_0x100b0e){return this['_getCoordsForCells'](_0x100b0e['getRanges']()['map'](_0x46c4bd=>_0x46c4bd['start']['nodeAfter']));}}function Ee(_0x16db68){return Array['from'](new Set(_0x16db68)['values']());}class St extends _0x3604c0{static get['requires'](){return[jt];}['afterInit'](){const _0xf750e2=this['editor'],_0x31f311=_0xf750e2['model']['document']['selection'],_0x2b1fd4=_0xf750e2['locale'];if(!_0xf750e2['plugins']['has']('TableEditing'))return;const _0x50d387=_0xf750e2['plugins']['get']('TrackChangesEditing'),_0xa9e786=_0xf750e2['plugins']['get']('TableUtils'),_0x106964=_0xf750e2['plugins']['get'](jt);_0x106964['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x50d387['enableCommand']('mergeTableCells',()=>{const _0x4db710=_0xa9e786['getSelectionAffectedTableCells'](_0xf750e2['model']['document']['selection']);_0xf750e2['model']['change'](()=>{_0x50d387['markMultiRangeBlockFormat'](_0x4db710,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xf750e2['commands']['get']('mergeTableCells')['on']('execute',(_0x1b34fd,_0x172486)=>{_0xf750e2['commands']['get']('trackChanges')['value']&&(_0x172486['length']>0x0&&_0x172486[_0x172486['length']-0x1]&&_0x172486[_0x172486['length']-0x1]['forceDefaultExecution']||_0x50d387['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1b34fd['stop']());},{'priority':'highest'});for(const _0x1cb03f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x48b64f=_0xf750e2['commands']['get'](_0x1cb03f);_0x50d387['enableCommand'](_0x1cb03f,()=>{const _0x599e7f=_0xf750e2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x26ce85=>_0x26ce85['is']('element','tableCell')),_0x175264=_0x48b64f['value'];_0xf750e2['model']['change'](()=>{_0x50d387['markMultiRangeBlockFormat']([_0x599e7f,_0x175264],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x459297 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xde518d=_0xf750e2['commands']['get'](_0x459297);_0x50d387['enableCommand'](_0x459297,()=>{const _0x3485ed=_0xa9e786['getSelectionAffectedTableCells'](_0xf750e2['model']['document']['selection'])[0x0],_0x30bd49=_0x3485ed['findAncestor']('table'),{column:_0x1360ae,row:_0xff75b2}=_0xa9e786['getCellLocation'](_0x3485ed);let _0x7cbb9e=[];if('horizontally'==_0xde518d['direction']){const _0x55ed5e=_0xa9e786['createTableWalker'](_0x30bd49,{'startRow':_0xff75b2,'endRow':_0xff75b2,'includeAllSlots':!0x0});_0x7cbb9e=Array['from'](_0x55ed5e)['map'](_0x321b29=>_0x321b29['cell']);}else{const _0x33764a=_0xa9e786['createTableWalker'](_0x30bd49,{'column':_0x1360ae,'includeAllSlots':!0x0});_0x7cbb9e=Array['from'](_0x33764a)['map'](_0x1b76f3=>_0x1b76f3['cell']);}_0xf750e2['model']['change'](_0x1a40a7=>{_0x50d387['markBlockFormat'](_0x1a40a7['createRangeOn'](_0x3485ed),{'commandName':_0x459297,'commandParams':[]},_0x7cbb9e,_0x459297);});});}_0x50d387['descriptionFactory']['registerDescriptionCallback'](_0x27b78f=>{if('formatBlock'!=_0x27b78f['type']&&'formatInline'!=_0x27b78f['type'])return;const {data:_0x1b5cbc}=_0x27b78f;return _0x1b5cbc&&'mergeTableCells'==_0x1b5cbc['commandName']?{'type':'format','content':o(_0x2b1fd4,'*Merge\x20cells*')}:void 0x0;}),_0x50d387['descriptionFactory']['registerDescriptionCallback'](_0x2fd02c=>{if('formatBlock'!=_0x2fd02c['type']&&'formatInline'!=_0x2fd02c['type'])return;const {data:_0x1d73eb}=_0x2fd02c;return _0x1d73eb?'splitTableCellVertically'==_0x1d73eb['commandName']?{'type':'format','content':o(_0x2b1fd4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1d73eb['commandName']?{'type':'format','content':o(_0x2b1fd4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1896d2=_0x106964['_acceptFormatSuggestionCallbackFactory']();for(const _0x2b0d2b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x50d387['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b0d2b,'accept',_0x1896d2);for(const _0x3f515b of['splitTableCellVertically','splitTableCellHorizontally'])_0x50d387['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f515b,'accept',_0x1896d2);_0x50d387['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2fa46c=>{_0xf750e2['model']['change'](_0x5a3d49=>{const _0x253ca7=Array['from'](_0x31f311['getRanges']())['map'](_0x5c5290=>_0x216293['fromRange'](_0x5c5290));_0x5a3d49['setSelection'](_0x2fa46c),_0xf750e2['commands']['get']('mergeTableCells')['refresh'](),_0xf750e2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x54343d=_0x253ca7['filter'](_0x475265=>'$graveyard'!=_0x475265['root']['rootName']);_0x54343d['length']>0x0&&_0x5a3d49['setSelection'](_0x54343d);for(const _0x1b5cf2 of _0x253ca7)_0x1b5cf2['detach']();});});for(const _0x1d3cbd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x105b40=_0xf750e2['commands']['get'](_0x1d3cbd);_0x105b40['on']('set:isEnabled',(_0x47dce2,_0x25e92e,_0x5e9e43)=>{if(_0x5e9e43){const _0x5492e8=_0xf750e2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5c1dd5=>_0x5c1dd5['is']('element','tableCell'));this['_areMergableCells'](_0x105b40['value'],_0x5492e8)||(_0x47dce2['return']=!0x1,_0x47dce2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xfd17ed=this['editor']['commands']['get']('mergeTableCells'),_0x2d8571=this['editor']['plugins']['get']('TableUtils');if(!_0xfd17ed['isEnabled'])return!0x1;const _0x33c1b8=_0x2d8571['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d82c4 of _0x33c1b8)for(const _0x1119c2 of _0x33c1b8)if(_0x3d82c4!=_0x1119c2&&!this['_areMergableCells'](_0x3d82c4,_0x1119c2))return!0x1;return!0x0;}['_areMergableCells'](_0x17504d,_0x29f075){const _0x3725ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5905e8=this['editor']['model']['createRangeOn'](_0x17504d),_0x16e750=this['editor']['model']['createRangeOn'](_0x29f075),_0x569103=new Set(),_0x8f4051=new Set();for(const _0x141943 of _0x3725ff['getSuggestions']())if(('insertion'==_0x141943['type']||'deletion'==_0x141943['type']||'mergeTableCells'==_0x141943['subType'])&&_0x141943['isInContent']){for(const _0x15d0eb of _0x141943['getRanges']())_0x15d0eb['containsRange'](_0x5905e8,!0x0)&&_0x569103['add'](_0x141943['type']+':'+_0x141943['author']['id']),_0x15d0eb['containsRange'](_0x16e750,!0x0)&&_0x8f4051['add'](_0x141943['type']+':'+_0x141943['author']['id']);}if(_0x569103['size']!=_0x8f4051['size'])return!0x1;for(const _0x46b468 of _0x569103)if(!_0x8f4051['has'](_0x46b468))return!0x1;return!0x0;}}class At extends _0x3604c0{static get['requires'](){return[jt];}['afterInit'](){const _0x48d6c3=this['editor'];if(!_0x48d6c3['plugins']['has']('TableEditing'))return;const _0x36807c=_0x48d6c3['locale'],_0x470673=_0x48d6c3['plugins']['get']('TrackChangesEditing');_0x470673['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x470673['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x470673['registerBlockAttribute']('headingRows'),_0x470673['registerBlockAttribute']('headingColumns'),_0x470673['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x36807c,'FORMAT_HEADER_ROW')),_0x470673['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x36807c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54df06=this['editor']['plugins']['get']('TrackChangesEditing'),_0x376730=this['editor']['plugins']['get']('TableUtils'),_0x8434fe=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3c24de({showActiveMarker:_0x5b99f9=!0x0,setDataAttribute:_0x23bd45=!0x0}={}){return(_0x5b8042,_0x3db0f6,_0x1b751d)=>{const {type:_0x5cedcb,id:_0x1331b6}=_0x54df06['_splitMarkerName'](_0x3db0f6['markerName']),_0x1a2ac2=_0x54df06['getSuggestion'](_0x1331b6),_0x2579a9=_0x1a2ac2['data'];if('formatBlock'!=_0x1a2ac2['type']||!_0x2579a9||'setTableColumnHeader'!=_0x2579a9['commandName'])return;if(_0x3db0f6['item'])return void _0x5b8042['stop']();if(!_0x1b751d['consumable']['consume'](_0x3db0f6['markerRange'],_0x5b8042['name']))return;const _0x2fded8=_0x3db0f6['markerRange']['start']['nodeAfter'],_0xd2e392=_0x3db0f6['markerRange']['end']['nodeBefore'],_0x19997d=_0x2fded8['parent']['parent'],{column:_0x160a39}=_0x376730['getCellLocation'](_0x2fded8),{column:_0x37cf36}=_0x376730['getCellLocation'](_0xd2e392);for(let _0x59d2d9=_0x160a39;_0x59d2d9<=_0x37cf36;_0x59d2d9++){const _0x1eca84=_0x376730['createTableWalker'](_0x19997d,{'column':_0x59d2d9,'includeAllSlots':!0x1});for(const _0x55ecf5 of _0x1eca84){const _0x50ce1f=_0x55ecf5['cell'],_0x5d6cf3=_0x1b751d['mapper']['toViewElement'](_0x50ce1f);_0x1b751d['writer']['addClass']('ck-suggestion-marker-'+_0x5cedcb,_0x5d6cf3),_0x23bd45&&_0x1b751d['writer']['setAttribute']('data-suggestion',_0x1331b6,_0x5d6cf3),_0x1b751d['mapper']['bindElementToMarker'](_0x5d6cf3,_0x3db0f6['markerName']),_0x5b99f9&&(_0x54df06['activeMarkers']['includes'](_0x3db0f6['markerName'])?_0x1b751d['writer']['addClass']('ck-suggestion-marker--active',_0x5d6cf3):_0x1b751d['writer']['removeClass']('ck-suggestion-marker--active',_0x5d6cf3));}}};}_0x54df06['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8434fe),_0x54df06['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8434fe),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c24de(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x198b92,_0x50d4d4,_0xbc2c87)=>{_0xbc2c87['options']['showSuggestionHighlights']&&_0x3c24de({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x198b92,_0x50d4d4,_0xbc2c87);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x181adf,_0x2712b9,_0x1b0311)=>{const {type:_0x338488,id:_0x5b0694}=_0x54df06['_splitMarkerName'](_0x2712b9['markerName']),_0x1ec929=_0x54df06['getSuggestion'](_0x5b0694),_0x4a240e=_0x1ec929['data'];if('formatBlock'!=_0x1ec929['type']||!_0x4a240e||'setTableColumnHeader'!=_0x4a240e['commandName'])return;const _0x13edb7=_0x1b0311['mapper']['markerNameToElements'](_0x2712b9['markerName']);if(_0x13edb7){for(const _0x15c7e0 of _0x13edb7)_0x1b0311['writer']['removeClass']('ck-suggestion-marker-'+_0x338488,_0x15c7e0),_0x1b0311['writer']['removeClass']('ck-suggestion-marker--active',_0x15c7e0),_0x1b0311['writer']['removeAttribute']('data-suggestion',_0x15c7e0),_0x1b0311['mapper']['unbindElementFromMarkerName'](_0x15c7e0,_0x2712b9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56837b=this['editor'],_0x18b3ab=_0x56837b['locale'];function _0x548adf(_0x45c951){return{'type':'format','content':o(_0x18b3ab,'*Format:*\x20%0',_0x45c951)};}_0x56837b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1149cb=>{if('formatBlock'!=_0x1149cb['type'])return;const {data:_0x40a501}=_0x1149cb;if(_0x40a501){if('setTableRowHeader'==_0x40a501['commandName']){const _0x24dacb=_0x40a501['commandParams'][0x0]['forceValue'];return _0x548adf(o(_0x18b3ab,_0x24dacb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x40a501['commandName']){const _0x51abad=_0x40a501['commandParams'][0x0]['forceValue'];return _0x548adf(o(_0x18b3ab,_0x51abad?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x19022d=>[_0x19022d,null]));class It extends _0x3604c0{static get['requires'](){return[jt];}['afterInit'](){const _0x382dcd=this['editor'];if(!_0x382dcd['plugins']['has']('TableClipboard'))return;const _0x3b97f5=_0x382dcd['plugins']['get']('TrackChangesEditing'),_0x28b4e4=_0x382dcd['plugins']['get']('TableUtils'),_0x212725=_0x382dcd['plugins']['get'](jt),_0x3ba831=_0x382dcd['plugins']['get']('TableClipboard');_0x212725['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x382dcd['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x382dcd['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x110df3=null;_0x382dcd['model']['on']('insertContent',(_0x4ccbe7,_0x348c1c)=>{const [_0xd71948,_0x1a65e5]=_0x348c1c,_0x1e7f5c=_0x348c1c[_0x348c1c['length']-0x1];_0x1e7f5c&&_0x1e7f5c['forceDefaultExecution']||_0x3b97f5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x194b2d,_0x42cb69,_0x46f4d5,_0x4a6ef6,_0x3e6746){if(_0x42cb69&&!_0x42cb69['is']('documentSelection'))return!0x1;const _0x492986=_0x3e6746['getTableIfOnlyTableInContent'](_0x194b2d,_0x46f4d5);if(!_0x492986||!he(_0x492986,void 0x0,_0x4a6ef6))return!0x1;const _0x270209=_0x4a6ef6['getSelectionAffectedTableCells'](_0x46f4d5['document']['selection']);if(!_0x270209['length'])return!0x1;const _0x103af4=_0x270209[0x0]['findAncestor']('table'),_0x425fea=_0x4a6ef6['getRowIndexes'](_0x270209),_0x4d3910=_0x4a6ef6['getColumnIndexes'](_0x270209),_0x5a8951={'startRow':_0x425fea['first'],'endRow':_0x425fea['last'],'startColumn':_0x4d3910['first'],'endColumn':_0x4d3910['last']};return 0x1==_0x270209['length']&&(_0x5a8951['endRow']+=_0x4a6ef6['getRows'](_0x492986)-0x1,_0x5a8951['endColumn']+=_0x4a6ef6['getColumns'](_0x492986)-0x1),he(_0x103af4,_0x5a8951,_0x4a6ef6);}(_0xd71948,_0x1a65e5,_0x382dcd['model'],_0x28b4e4,_0x3ba831)&&(_0x4ccbe7['stop'](),_0x110df3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x382dcd['model']['change'](()=>{_0x382dcd['model']['insertContent'](_0x348c1c[0x0],_0x348c1c[0x1],_0x348c1c[0x2],{'forceDefaultExecution':!0x0});const _0x19f8f2=_0x249608(),{rowInsertionRanges:_0x2d616d,columnInsertionRanges:_0x2ac328,insertionRanges:_0x2ecabe,deletionRanges:_0x37f169,cells:_0xa6efc8}=_0x110df3;_0x2d616d['length']&&_0x3b97f5['markMultiRangeInsertion'](_0x2d616d,'tablePasteRow',{'tablePasteChainId':_0x19f8f2}),_0x2ac328['length']&&_0x3b97f5['markMultiRangeInsertion'](_0x2ac328,'tablePasteColumn',{'tablePasteChainId':_0x19f8f2}),_0x2ecabe['length']&&(_0x3b97f5['markMultiRangeInsertion'](_0x2ecabe,'tablePaste',{'tablePasteChainId':_0x19f8f2,'skipNestingCheck':!0x0}),_0x2ecabe['forEach'](_0x1598ec=>_0x1598ec['detach']?.())),_0x37f169['length']&&(_0x3b97f5['markMultiRangeDeletion'](_0x37f169,'tablePaste',{'tablePasteChainId':_0x19f8f2,'skipNestingCheck':!0x0}),_0x37f169['forEach'](_0x4e94b4=>_0x4e94b4['detach']?.()));const _0x247b54=_0x3b97f5['markMultiRangeBlockFormat'](_0xa6efc8['map'](({element:_0x19f2c4})=>_0x19f2c4),{'formatGroupId':_0x249608()},[],'tablePasteCell',{'tablePasteChainId':_0x19f8f2});if(_0x247b54){const _0xdf2f7f=_0x247b54['getMarkers'](),_0x3a462b=[];for(const {element:_0x4358a1,attributes:_0x359177}of _0xa6efc8){if(!_0x359177)continue;const _0x46980e=_0x382dcd['model']['createRangeOn'](_0x4358a1),_0x20edda=_0xdf2f7f['find'](_0x257d64=>_0x257d64['getRange']()['isEqual'](_0x46980e));_0x20edda&&_0x3a462b['push']([_0x20edda['name'],_0x359177]);}_0x3a462b['length']&&_0x247b54['setAttribute']('markerAttributes',Object['fromEntries'](_0x3a462b));}_0x110df3=null;}));},{'priority':_0x191c35['high']+0xa}),_0x382dcd['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x110596,_0x5c9d24)=>{const [_0x34d9d0,_0x2932b2,,_0x10c4bd]=_0x5c9d24;if(!_0x110df3)return;_0x110596['stop']();const _0x3faa9c=_0x34d9d0['cell'],_0x353360=_0x2932b2,_0x923d6b=Pe(_0x3faa9c),_0x636182=Pe(_0x353360);_0x110596['return']=_0x3faa9c;let _0x3f9eb1=null,_0x52be94=null;if(_0x636182||_0x923d6b){if(_0x923d6b&&!_0x636182){_0x10c4bd['remove'](_0x3faa9c['getChild'](0x0));for(const _0x364b2f of Array['from'](_0x353360['getChildren']()))_0x10c4bd['insert'](_0x364b2f,_0x3faa9c,'end');const _0x3ba084=_0x110df3['rowInsertionIndexes']['includes'](_0x34d9d0['row']),_0xc89082=_0x110df3['columnInsertionIndexes']['includes'](_0x34d9d0['column']);_0x3ba084||_0xc89082||(_0x3f9eb1=_0x216293['fromRange'](_0x10c4bd['createRangeIn'](_0x3faa9c)));}else _0x636182&&!_0x923d6b&&(_0x52be94=_0x10c4bd['createRangeIn'](_0x3faa9c));}else{const _0x56af9e=_0x10c4bd['createElement']('tableCellSuggestion'),_0x5a1f39=_0x10c4bd['createElement']('tableCellSuggestion');_0x10c4bd['wrap'](_0x10c4bd['createRangeIn'](_0x3faa9c),_0x5a1f39),_0x10c4bd['insert'](_0x56af9e,_0x3faa9c,0x0);for(const _0x20297a of Array['from'](_0x353360['getChildren']()))_0x10c4bd['insert'](_0x20297a,_0x56af9e,'end');_0x3f9eb1=_0x216293['fromRange'](_0x10c4bd['createRangeOn'](_0x56af9e)),_0x52be94=_0x216293['fromRange'](_0x10c4bd['createRangeOn'](_0x5a1f39));}const _0x21111e=Array['from'](_0x353360['getAttributes']())['filter'](([_0x357c81])=>ge['includes'](_0x357c81));_0x110df3['cells']['push']({'element':_0x3faa9c,'attributes':_0x21111e['length']?Object['fromEntries'](_0x21111e):null}),_0x3f9eb1&&_0x110df3['insertionRanges']['push'](_0x3f9eb1),_0x52be94&&_0x110df3['deletionRanges']['push'](_0x52be94);},{'priority':'high'}),_0x28b4e4['on']('insertColumns',(_0x30261b,_0x3e2196)=>{const [_0x2e00cb,_0x4867fc={}]=_0x3e2196;if(!_0x110df3)return;const _0x2b8058=_0x4867fc['at']||0x0,_0x19b056=_0x4867fc['columns']||0x1;_0x110df3['columnInsertionIndexes']=new Array(_0x19b056)['fill'](_0x2b8058)['map']((_0x11c2dd,_0x3def74)=>_0x11c2dd+_0x3def74);for(const {cell:_0x111aad}of _0x28b4e4['createTableWalker'](_0x2e00cb,{'startColumn':_0x2b8058,'endColumn':_0x2b8058+_0x19b056-0x1}))_0x110df3['columnInsertionRanges']['push'](_0x382dcd['model']['createRangeOn'](_0x111aad));},{'priority':'low'}),_0x28b4e4['on']('insertRows',(_0x636ec6,_0x137b3e)=>{const [_0x1a8cd0,_0x616ec7={}]=_0x137b3e;if(!_0x110df3)return;const _0x2f8a46=_0x616ec7['at']||0x0,_0x559b30=_0x616ec7['rows']||0x1;_0x110df3['rowInsertionIndexes']=new Array(_0x559b30)['fill'](_0x2f8a46)['map']((_0x52875c,_0x54ed7a)=>_0x52875c+_0x54ed7a);for(const {cell:_0x4b99bd}of _0x28b4e4['createTableWalker'](_0x1a8cd0,{'startRow':_0x2f8a46,'endRow':_0x2f8a46+_0x559b30-0x1}))_0x110df3['rowInsertionRanges']['push'](_0x382dcd['model']['createRangeOn'](_0x4b99bd));},{'priority':'low'}),_0x3b97f5['descriptionFactory']['registerDescriptionCallback'](_0xd7b40=>{if(_0xd7b40['subType']&&_0xd7b40['subType']['startsWith']('tablePaste'))return _0xd7b40['previous']?{}:{'type':'insertion','content':o(_0x382dcd['locale'],'*Replace\x20table\x20cells*')};});const _0x5b0667=()=>!0x1;for(const _0x953997 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3b97f5['_suggestionFactory']['registerCustomCallback']('insertion',_0x953997,'join',_0x5b0667),_0x3b97f5['_suggestionFactory']['registerCustomCallback']('deletion',_0x953997,'join',_0x5b0667),_0x3b97f5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x953997,'join',_0x5b0667);_0x3b97f5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5b0667),_0x3b97f5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2ccbd9,_0x3faf43,_0x1dac86)=>{const _0xf5fe54=_0x2ccbd9['map'](_0x25d70a=>_0x25d70a['getContainedElement']())['filter'](_0x414a17=>_0x414a17),_0x480a52=new Map(_0xf5fe54['map'](_0x1bdc65=>[_0x1bdc65,null]));if(_0x110df3){for(const {element:_0x4c877c,attributes:_0x5750aa}of _0x110df3['cells'])_0x5750aa&&_0x480a52['set'](_0x4c877c,_0x5750aa);}else{if(_0x1dac86&&_0x1dac86['markerAttributes'])for(const [_0x16023e,_0x32e0e3]of Object['entries'](_0x1dac86['markerAttributes'])){const _0xe17ee=_0x382dcd['model']['markers']['get'](_0x16023e),_0x467892=_0xe17ee?_0xe17ee['getRange']()['getContainedElement']():null;_0x467892&&_0x480a52['set'](_0x467892,_0x32e0e3);}}_0x382dcd['model']['change'](_0x3007e5=>{for(const [_0x203e4a,_0x20c195]of _0x480a52)_0x3007e5['setAttributes']({...Ce,..._0x20c195},_0x203e4a);});});const _0x1e7e9b=(_0x1ede9c,_0x19289b)=>{_0x3b97f5['_suggestionFactory']['registerCustomCallback'](_0x1ede9c,'tablePaste',_0x19289b,(_0x442f78,_0x59d892,_0x3fd256)=>{_0x382dcd['model']['change'](_0x4f87c9=>{const _0x5f42be=[];for(const _0x1ab13e of _0x442f78){const _0x4a8cf8=_0x1ab13e['start']['nodeAfter'];_0x4a8cf8['is']('element','tableCellSuggestion')&&_0x5f42be['push'](_0x4a8cf8);}_0x3b97f5['_suggestionFactory']['getSuggestionCallback'](_0x1ede9c,null,_0x19289b)(_0x442f78,_0x59d892,_0x3fd256);for(const _0x430ab8 of _0x5f42be)'$graveyard'!=_0x430ab8['root']['rootName']&&_0x4f87c9['unwrap'](_0x430ab8);});});};_0x1e7e9b('insertion','accept'),_0x1e7e9b('insertion','discard'),_0x1e7e9b('deletion','accept'),_0x1e7e9b('deletion','discard'),_0x3b97f5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x391736=>{const _0xc36e1f=_0x391736['map'](_0x3bcfee=>_0x3bcfee['getContainedElement']()),_0x54cf5e=_0xc36e1f[0x0]['findAncestor']('table'),{minRow:_0x3d8284,maxRow:_0xce8213}=_0x212725['_getCoordsForCells'](_0xc36e1f);_0x28b4e4['removeRows'](_0x54cf5e,{'at':_0x3d8284,'rows':_0xce8213-_0x3d8284+0x1});}),_0x3b97f5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4d761d=>{const _0x462ad4=_0x4d761d['map'](_0x25ad49=>_0x25ad49['getContainedElement']()),_0x3db247=_0x462ad4[0x0]['findAncestor']('table'),{minColumn:_0x1c1432,maxColumn:_0x4a1e12}=_0x212725['_getCoordsForCells'](_0x462ad4);_0x28b4e4['removeColumns'](_0x3db247,{'at':_0x1c1432,'columns':_0x4a1e12-_0x1c1432+0x1});});const _0x1b2c59=(_0x2cb812,_0x43014c)=>{if(!_0x43014c['subType']||!_0x43014c['subType']['startsWith']('tablePaste'))return;const _0x2ae6b1=_0x43014c['attributes']['tablePasteChainId'],_0x5839d7=_0x3b97f5['getSuggestions']()['filter'](_0x1f4f58=>_0x1f4f58['isInContent']&&_0x1f4f58['attributes']&&_0x1f4f58['attributes']['tablePasteChainId']==_0x2ae6b1);_0x5839d7['length']&&_0x43014c['getAllAdjacentSuggestions']()['length']!=_0x5839d7['length']&&_0x5839d7['reduce']((_0x1725e5,_0x2cffa3)=>(_0x1725e5['next']=_0x2cffa3,_0x2cffa3['previous']=_0x1725e5,_0x2cffa3));};function _0x3fc4ca(_0x2a4941,_0x45fe24=!0x0){const {id:_0x4fe5d5}=_0x3b97f5['_splitMarkerName'](_0x2a4941['markerName']),_0x586d91=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3bf004=_0x3b97f5['activeMarkers']['includes'](_0x2a4941['markerName']);return _0x3bf004&&_0x586d91['push']('ck-suggestion-marker--active'),{'classes':_0x586d91,'attributes':{'data-suggestion':_0x4fe5d5},'priority':_0x3bf004&&_0x45fe24?0xbc2:0xbb8};}_0x3b97f5['on']('suggestionLoaded',_0x1b2c59,{'priority':'high'}),_0x3b97f5['on']('suggestionUnloaded',_0x1b2c59,{'priority':'high'}),_0x382dcd['model']['document']['registerPostFixer'](()=>{let _0x30ff6f=!0x1;const _0x725f98=Array['from'](_0x382dcd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5baed6,data:_0x24172d}of _0x725f98){const {group:_0x376eec,type:_0x3fbaed,id:_0x3cb02f}=_0x3b97f5['_splitMarkerName'](_0x5baed6);if('suggestion'!=_0x376eec||'deletion'!=_0x3fbaed||_0x24172d['oldRange'])continue;if(!_0x3b97f5['hasSuggestion'](_0x3cb02f))continue;const _0x199e4b=_0x3b97f5['getSuggestion'](_0x3cb02f)['getRanges'](),_0x5794d7=_0x382dcd['plugins']['get']('Users')['me'];for(const _0x61c4a1 of _0x3b97f5['getSuggestions']()){if(!_0x61c4a1['isInContent']||_0x61c4a1['author']!=_0x5794d7)continue;if('formatBlock'!=_0x61c4a1['type']||'tablePasteCell'!=_0x61c4a1['subType'])continue;if(_0x61c4a1['getRanges']()['every'](_0x3f692c=>_0x199e4b['some'](_0x483d0e=>_0x483d0e['containsRange'](_0x3f692c,!0x0)))){for(const _0x2d5ea3 of _0x61c4a1['getAllAdjacentSuggestions']())_0x2d5ea3['isInContent']&&(_0x2d5ea3['discard'](),_0x30ff6f=!0x0);}}}return _0x30ff6f;}),_0x382dcd['model']['document']['registerPostFixer'](_0x46caca=>{const _0xc1c0f5=_0x382dcd['commands']['get']('redo');if(!_0xc1c0f5||!_0xc1c0f5['_createdBatches']['has'](_0x46caca['batch']))return!0x1;let _0xfb54cd=!0x1;const _0x49dd30=_0x382dcd['plugins']['get']('Users')['me'],_0x4e7015=_0x382dcd['model']['document']['differ']['getChanges'](),_0x593f58=Array['from'](_0x382dcd['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x32ed22,data:_0x83cc57})=>{const {group:_0x99d925,subType:_0x333af1,authorId:_0x222d7a}=_0x3b97f5['_splitMarkerName'](_0x32ed22);return'suggestion'==_0x99d925&&'tablePaste'==_0x333af1&&_0x222d7a==_0x49dd30['id']&&!_0x83cc57['oldRange'];});for(const _0x489d54 of _0x4e7015){if('insert'!=_0x489d54['type']||'tableCellSuggestion'!=_0x489d54['name']||0x1!=_0x489d54['length'])continue;const _0x1120d6=_0x46caca['createRange'](_0x489d54['position'],_0x489d54['position']['getShiftedBy'](0x1));if(!_0x593f58['find'](({data:_0x27a6d1})=>_0x27a6d1['newRange']['isEqual'](_0x1120d6))){for(const {name:_0x1d7ae9,data:_0x292386}of _0x593f58)if(_0x1120d6['containsRange'](_0x292386['newRange'])){_0x46caca['updateMarker'](_0x1d7ae9,{'range':_0x1120d6}),_0xfb54cd=!0x0;break;}}}return _0xfb54cd;}),_0x382dcd['model']['document']['registerPostFixer'](_0x367fc=>{let _0xdb72d9=!0x1;const _0x459723=_0x382dcd['plugins']['get']('Users')['me'],_0x2e1806=_0x3b97f5['getSuggestions']()['filter'](_0x306dde=>_0x306dde['isInContent']&&_0x306dde['author']==_0x459723),_0x2cbea0=new Set(),_0x2624d8=new Set();for(const _0x4b7a01 of _0x2e1806)if('tablePaste'==_0x4b7a01['subType'])for(const _0x33b2e4 of _0x4b7a01['getMarkers']()){const _0x4d6717=_0x33b2e4['getRange']()['getContainedElement']();if(_0x4d6717){if(_0x4d6717['is']('element','tableCellSuggestion')&&Pe(_0x4d6717)){_0x4b7a01['removeMarker'](_0x33b2e4['name']),_0x2cbea0['add'](_0x4d6717),_0xdb72d9=!0x0;const _0x36920f=_0x4d6717['nextSibling'],_0x3d74e8=_0x4d6717['previousSibling'],_0x2fbd12=_0x36920f&&_0x36920f['is']('element','tableCellSuggestion'),_0x1d34ac=_0x3d74e8&&_0x3d74e8['is']('element','tableCellSuggestion');_0x2fbd12&&!_0x2cbea0['has'](_0x36920f)&&_0x2624d8['add'](_0x36920f),_0x1d34ac&&!_0x2cbea0['has'](_0x3d74e8)&&_0x2624d8['add'](_0x3d74e8);}else _0x4d6717['is']('element','paragraph')&&_0x4d6717['isEmpty']&&(_0x4b7a01['removeMarker'](_0x33b2e4['name']),_0xdb72d9=!0x0);}}else{if('tablePasteCell'==_0x4b7a01['subType']){if(!_0x4b7a01['attributes']||!_0x4b7a01['attributes']['tablePasteChainId'])continue;const _0x4188dc=_0x4b7a01['attributes']['markerAttributes'];if(_0x4188dc&&Object['keys'](_0x4188dc)['length'])continue;const _0x5c7ebd=_0x4b7a01['attributes']['tablePasteChainId'];let _0x2147c3=!0x0,_0x406d3f=!0x0;for(const _0x1f244e of _0x2e1806)if(_0x1f244e['subType']&&_0x1f244e['subType']['startsWith']('tablePaste')){if(!_0x1f244e['attributes']['tablePasteChainId']){_0x406d3f=!0x1;break;}if(_0x1f244e['id']!=_0x4b7a01['id']&&_0x1f244e['attributes']['tablePasteChainId']==_0x5c7ebd){_0x2147c3=!0x1;break;}}_0x406d3f&&_0x2147c3&&(_0x4b7a01['removeMarkers'](),_0xdb72d9=!0x0);}}for(const _0x267217 of _0x2cbea0)_0x367fc['remove'](_0x267217);for(const _0x211138 of _0x2624d8)_0x367fc['unwrap'](_0x211138);return _0xdb72d9;}),_0x382dcd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x32fc57,_0x56304e)=>_0x3fc4ca(_0x32fc57),'converterPriority':'high'}),_0x382dcd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2cbfd8,_0x2bdca5)=>_0x2bdca5['options']['showSuggestionHighlights']?_0x3fc4ca(_0x2cbfd8,!0x1):null,'converterPriority':'high'});const _0x444584=_0x382dcd['editing']['view'];this['listenTo'](_0x444584['document'],'clipboardOutput',(_0x1777d1,_0x3e7598)=>{const _0x17eea4=[];for(const _0x3d7525 of _0x444584['createRangeIn'](_0x3e7598['content'])['getItems']())_0x3d7525['is']('element','suggestion-td')&&_0x17eea4['push'](_0x3d7525);_0x444584['change'](_0x305a36=>{for(const _0x55d7fc of _0x17eea4)_0x305a36['move'](_0x305a36['createRangeIn'](_0x55d7fc),_0x305a36['createPositionBefore'](_0x55d7fc)),_0x305a36['remove'](_0x55d7fc);});});}}function Pe(_0x5224ab){if(_0x5224ab['isEmpty'])return!0x0;const _0x3819be=_0x5224ab['getChild'](0x0);return _0x3819be['is']('element','paragraph')&&_0x3819be['isEmpty'];}function he(_0x1c55ee,_0x2bc228={},_0x1eb75e){for(const {isAnchor:_0x435028,cellHeight:_0x1f6f6e,cellWidth:_0x2589b5}of _0x1eb75e['createTableWalker'](_0x1c55ee,{'includeAllSlots':!0x0,..._0x2bc228}))if(!_0x435028||0x1!=_0x1f6f6e||0x1!=_0x2589b5)return!0x1;return!0x0;}class vt extends _0x3604c0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x22a61c=this['editor']['plugins']['get']('TrackChangesEditing');_0x22a61c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x22a61c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x22a61c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22a61c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x22a61c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x22a61c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x310d3c,_0x2e6560){const _0x44f8cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d2a3f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1c882f=_0x2e6560['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2be852=_0x3d2a3f['getColumnGroupElement'](_0x1c882f);let _0x1d55ce=_0x2be852?_0x3d2a3f['getTableColumnsWidths'](_0x2be852):null,_0x38e0b2=_0x1c882f['getAttribute']('tableWidth')||null;const _0x46e92c=_0x2e6560['tableWidth']||_0x38e0b2,_0x2a0d34=_0x2e6560['columnWidths']||_0x1d55ce,_0x2d5e27=this['editor']['plugins']['get']('Users')['me'];for(const _0x337a98 of _0x44f8cf['getSuggestions']()){const _0x4d190e=_0x337a98['getContainedElement']();if('resizeTable'===_0x337a98['subType']&&_0x4d190e===_0x1c882f){_0x337a98['author']!==_0x2d5e27&&_0x337a98['discard']();const _0xdb8a9f=_0x337a98['data']['commandParams'];_0x38e0b2=_0xdb8a9f[0x0]['tableWidth'],_0x1d55ce=_0xdb8a9f[0x0]['columnWidths'];break;}}_0x310d3c({'table':_0x1c882f,'tableWidth':_0x46e92c,'columnWidths':_0x2a0d34}),_0x44f8cf['markBlockFormat'](_0x1c882f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x38e0b2,'columnWidths':_0x1d55ce}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2fcd7e){if('formatBlock'!=_0x2fcd7e['type']&&'formatInline'!=_0x2fcd7e['type'])return;const {data:_0x2ea567}=_0x2fcd7e;if(_0x2ea567&&'resizeTable'===_0x2ea567['formatGroupId']){const _0x21d115='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x21d115)};}}}class _t extends _0x3604c0{['afterInit'](){const _0x158a34=this['editor'];_0x158a34['plugins']['has']('Template')&&_0x158a34['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x3604c0{['afterInit'](){const _0x1fca29=this['editor'];if(!_0x1fca29['commands']['get']('insertTableOfContents'))return;_0x1fca29['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4e34de=_0x1fca29['plugins']['get']('TrackChangesEditing'),_0xeed02b=_0x1fca29['locale'];_0x4e34de['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a38aa=>o(_0xeed02b,'ELEMENT_TABLE_OF_CONTENTS',_0x2a38aa));}}class Dt extends _0x3604c0{['afterInit'](){const _0x59a893=this['editor'];if(!_0x59a893['plugins']['has']('Title'))return;const _0x301234=_0x59a893['plugins']['get']('TrackChangesEditing');_0x301234['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x59a893['locale'],'ELEMENT_TITLE')),_0x59a893['model']['document']['registerPostFixer'](_0x1f1863=>{let _0x503f77=!0x1;const _0x5c97ff=Array['from'](_0x59a893['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x438b76,data:_0x3d7937}of _0x5c97ff){const {group:_0x103f8a}=_0x301234['_splitMarkerName'](_0x438b76);if('suggestion'!==_0x103f8a||!_0x3d7937['newRange'])continue;const _0x1a83ec=_0x3d7937['newRange'],_0xed3309=_0x1a83ec['end']['nodeBefore'];if(!_0xed3309||!_0xed3309['is']('element','title-content'))continue;if(!_0x1a83ec['start']['isTouching'](_0x1a83ec['end']))continue;const _0x14362f=_0x59a893['model']['schema']['getNearestSelectionRange'](_0x1a83ec['end'],'forward');if(_0x14362f&&_0x14362f['isCollapsed']){const _0x5c0d0d=_0x1f1863['createRange'](_0x1a83ec['start'],_0x14362f['start']);_0x5c0d0d['isEqual'](_0x1a83ec)||(_0x1f1863['updateMarker'](_0x438b76,{'range':_0x5c0d0d}),_0x503f77=!0x0);}_0x503f77||(_0x1f1863['removeMarker'](_0x438b76),_0x503f77=!0x0);}return _0x503f77;});}}class Nt extends _0x3604c0{['afterInit'](){const _0x107ccb=this['editor'],_0x23691e=_0x107ccb['plugins']['get']('TrackChangesEditing');_0x107ccb['plugins']['has']('UndoEditing')&&(_0x23691e['enableCommand']('undo'),_0x23691e['enableCommand']('redo'));}}class Mt extends _0x3604c0{static get['requires'](){return[jt];}['afterInit'](){const _0x5ac2cd=this['editor'];if(!_0x5ac2cd['plugins']['has']('TableCaptionEditing'))return;_0x5ac2cd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x3604c0{['tableProperties'];['tableCellProperties'];constructor(_0x62bedc){super(_0x62bedc),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 _0x58b5a7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4702db of this['tableProperties'])_0x58b5a7['enableCommand'](_0x4702db,(_0x54728d,_0x2932c9)=>{const _0x3612f8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4702db,[_0x3612f8],this['tableProperties'],'tableProperties',_0x54728d,_0x2932c9);});_0x58b5a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x58b5a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58b5a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2db325,_0x3a452b)=>this['handleDiscardAction'](this['tableProperties'],_0x2db325,_0x3a452b)),_0x58b5a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x23a278 of this['tableCellProperties'])_0x58b5a7['enableCommand'](_0x23a278,(_0x31157c,_0x40b4b6)=>{const _0x3849f8=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x23a278,_0x3849f8,this['tableCellProperties'],'tableCellProperties',_0x31157c,_0x40b4b6);});_0x58b5a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x58b5a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58b5a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x7db958,_0x24c31e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x7db958,_0x24c31e)),_0x58b5a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x58b5a7['descriptionFactory']['registerDescriptionCallback'](_0xb68d99=>this['handleSuggestionDescription'](_0xb68d99));}['_handlePropertyChange'](_0x1fd9b0,_0x59ed3f,_0x3d44b1,_0x1954ae,_0x329d62,_0x1f2196){const _0x34132b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1f2196['batch'],()=>{for(const _0x45ea4d of _0x59ed3f){if(this['_getSuggestion'](_0x45ea4d,_0x1954ae))_0x329d62(_0x1f2196);else{const _0x3b4b9c={};for(const _0x3afa26 of _0x3d44b1){const _0x51577a=_0x45ea4d['getAttribute'](_0x3afa26);void 0x0!==_0x51577a&&(_0x3b4b9c[_0x3afa26]=_0x51577a);}_0x329d62(_0x1f2196),_0x34132b['markBlockFormat'](_0x45ea4d,{'commandParams':[_0x3b4b9c]},[],_0x1954ae);}}});}['handleDiscardAction'](_0x2417e9,_0x5bd1b7,_0x2ed164){const _0x4fd811=_0x5bd1b7[0x0]['start']['nodeAfter'],_0xa03ab0=_0x2ed164['commandParams'][0x0];this['editor']['model']['change'](_0x1f1a79=>{for(const _0x3391e3 of _0x2417e9)void 0x0!==_0xa03ab0[_0x3391e3]?_0x1f1a79['setAttribute'](_0x3391e3,_0xa03ab0[_0x3391e3],_0x4fd811):_0x1f1a79['removeAttribute'](_0x3391e3,_0x4fd811);});}['handleSuggestionDescription'](_0x29d492){if(_0x29d492['data'])switch(_0x29d492['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'](_0x2af329,_0xa5387f){const _0x973fd3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4bd19f of _0x973fd3['getSuggestions']({'skipNotAttached':!0x0})){const _0x141bea=_0x4bd19f['getContainedElement']();if(_0x4bd19f['subType']===_0xa5387f&&_0x141bea===_0x2af329)return _0x4bd19f;}return null;}}const m='$elementName';class p extends _0x3604c0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x17d150,_0x1c12b1,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x15055e){function _0x48af30(_0x40f770){return _0x40f770['map'](_0x159fbe=>String['fromCharCode'](_0x159fbe))['join']('');}super(_0x15055e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x527595,_0x2ec12a,_0x53568b,_0x5a98a6)=>{this['_model']['change'](()=>{for(const _0x38016f of[..._0x5a98a6,..._0x53568b])this['_model']['markers']['has'](_0x38016f)&&_0x15055e['editing']['reconvertMarker'](_0x38016f);});}),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']=_0x15055e['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(),_0x15055e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x15055e['config']['get']('trackChanges.trackFormatChanges'),_0x15055e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x15055e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x15055e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x48af30([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x48af30([0x34,0x30,0x34,0x38,0x31,0x30,0x33,0x30]);}['init'](){const _0x3163d4=this['editor'],_0x362b4c=(_0x559df3,_0x4479be)=>{if('attribute'!=_0x559df3)return'ck-suggestion-marker-'+_0x559df3;const _0x263376=_0x4479be['split']('|')[0x0];return this['_isBlockAttribute'](_0x263376)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3163d4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x272780=>{const {id:_0x4e4294,type:_0x2f1924,subType:_0x42ccec}=this['_splitMarkerName'](_0x272780['markerName']),_0x1fe5cc=['ck-suggestion-marker',_0x362b4c(_0x2f1924,_0x42ccec)];let _0x37e85d=0xbb8;return this['activeMarkers']['includes'](_0x272780['markerName'])&&(_0x1fe5cc['push']('ck-suggestion-marker--active'),_0x37e85d=0xbc2),'deletion'==_0x2f1924&&(_0x37e85d+=0x5),{'classes':_0x1fe5cc,'attributes':{'data-suggestion':_0x4e4294},'priority':_0x37e85d};}}),_0x3163d4['conversion']['for']('dataDowncast')['add'](_0x2c9148=>{_0x2c9148['on']('addMarker:suggestion',(_0x2b1e0b,_0x2c7367,_0x5b4bad)=>{if(!_0x5b4bad['options']['showSuggestionHighlights'])return;const _0x27f74c=_0x2c7367['item'];if(!_0x27f74c)return;const _0x575671=_0x5b4bad['mapper']['toViewElement'](_0x27f74c);_0x3163d4['model']['schema']['isObject'](_0x27f74c)&&_0x575671&&!_0x575671['getCustomProperty']('widget')&&_0x575671['is']('containerElement')&&_0x429583(_0x575671,_0x5b4bad['writer']);},{'priority':'high'});}),_0x3163d4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x247cc8,_0x417acf)=>{if(!_0x417acf['options']['showSuggestionHighlights'])return null;const {type:_0x417cc2,subType:_0x57bc72}=this['_splitMarkerName'](_0x247cc8['markerName']);return{'classes':['ck-suggestion-marker',_0x362b4c(_0x417cc2,_0x57bc72)],'priority':0xbb8};}});const _0x2ee987=({showActiveMarkers:_0x2c487d=!0x0,isAttributeSuggestion:_0x577b26=!0x1}={})=>(_0x597101,_0x482057,_0x128d38)=>{if(!_0x482057['item'])return;const {id:_0x742f32}=this['_splitMarkerName'](_0x482057['markerName']);if(_0x577b26){const _0x489587=this['_suggestions']['get'](_0x742f32),_0x2565a0=this['_getAttributeKey'](_0x489587);if(!this['_isBlockAttribute'](_0x2565a0))return;}if(_0x482057['item']['is']('selection'))return void _0x128d38['consumable']['consume'](_0x482057['item'],_0x597101['name']);const _0x1c5499=_0x128d38['mapper']['toViewElement'](_0x482057['item']);if(_0x482057['item']['is']('element')&&_0x3163d4['model']['schema']['isBlock'](_0x482057['item'])&&!_0x1c5499['getCustomProperty']('addHighlight')){_0x128d38['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1c5499),_0x128d38['writer']['setAttribute']('data-suggestion',_0x742f32,_0x1c5499),_0x128d38['mapper']['bindElementToMarker'](_0x1c5499,_0x482057['markerName']),_0x2c487d&&(this['activeMarkers']['includes'](_0x482057['markerName'])?_0x128d38['writer']['addClass']('ck-suggestion-marker--active',_0x1c5499):_0x128d38['writer']['removeClass']('ck-suggestion-marker--active',_0x1c5499));for(const _0x7d3080 of _0x3163d4['model']['createRangeIn'](_0x482057['item'])['getItems']())_0x128d38['consumable']['consume'](_0x7d3080,_0x597101['name']);_0x128d38['consumable']['consume'](_0x482057['item'],_0x597101['name']);}};_0x3163d4['conversion']['for']('dataDowncast')['add'](_0x4bbdcf=>{_0x4bbdcf['on']('addMarker:suggestion:formatBlock',(_0x260a00,_0x2ac6aa,_0x303062)=>{_0x303062['options']['showSuggestionHighlights']&&_0x2ee987({'showActiveMarkers':!0x1})(_0x260a00,_0x2ac6aa,_0x303062);},{'priority':'highest'});}),_0x3163d4['conversion']['for']('dataDowncast')['add'](_0x13784d=>{_0x13784d['on']('addMarker:suggestion:attribute',(_0xa17050,_0x24f8cf,_0x15f51e)=>{_0x15f51e['options']['showSuggestionHighlights']&&_0x2ee987({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xa17050,_0x24f8cf,_0x15f51e);},{'priority':'highest'});}),_0x3163d4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x669aa8,_0x514586)=>_0x514586['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x669aa8['substr'](0xb)}}),_0x3163d4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5554f9,{writer:_0x566d5e})=>{let _0x1fbc86='suggestion:'+_0x5554f9['getAttribute']('suggestion-type')+':'+_0x5554f9['getAttribute']('id');return _0x5554f9['getAttribute']('marker-count')&&(_0x1fbc86+=':'+_0x5554f9['getAttribute']('marker-count')),_0x566d5e['createElement']('$marker',{'data-name':_0x1fbc86});}}),_0x3163d4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3163d4['conversion']['for']('editingDowncast')['add'](_0x1c8d25=>{_0x1c8d25['on']('addMarker:suggestion:formatBlock',_0x2ee987(),{'priority':'high'});}),_0x3163d4['conversion']['for']('editingDowncast')['add'](_0x357df7=>{_0x357df7['on']('addMarker:suggestion:attribute',_0x2ee987({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3163d4['conversion']['for']('editingDowncast')['add'](_0x677b99=>{_0x677b99['on']('removeMarker:suggestion:formatBlock',(_0x3cb820,_0x642ec5,_0x516112)=>{const _0x319a62=_0x516112['mapper']['markerNameToElements'](_0x642ec5['markerName']);if(_0x319a62){for(const _0x271592 of _0x319a62)_0x271592['getCustomProperty']('addHighlight')||(_0x516112['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x271592),_0x516112['writer']['removeAttribute']('data-suggestion',_0x271592),_0x516112['mapper']['unbindElementFromMarkerName'](_0x271592,_0x642ec5['markerName']));}},{'priority':'high'});}),_0x3163d4['conversion']['for']('editingDowncast')['add'](_0x3b1d02=>{_0x3b1d02['on']('removeMarker:suggestion:attribute',(_0xe099e4,_0x4f2f5a,_0x4a8bf9)=>{const _0x28fdb0=_0x4a8bf9['mapper']['markerNameToElements'](_0x4f2f5a['markerName']);if(!_0x28fdb0)return;const {id:_0x24be28}=this['_splitMarkerName'](_0x4f2f5a['markerName']),_0x1b344f=this['_suggestions']['get'](_0x24be28),_0xcb34a6=this['_getAttributeKey'](_0x1b344f);if(this['_isBlockAttribute'](_0xcb34a6)){for(const _0x12ee56 of _0x28fdb0)_0x12ee56['getCustomProperty']('addHighlight')||(_0x4a8bf9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x12ee56),_0x4a8bf9['writer']['removeAttribute']('data-suggestion',_0x12ee56),_0x4a8bf9['mapper']['unbindElementFromMarkerName'](_0x12ee56,_0x4f2f5a['markerName']));}},{'priority':'high'});}),_0x3163d4['model']['document']['registerPostFixer'](_0x51b2e7=>{let _0x59004a=!0x1;const _0x96cccb=Array['from'](_0x3163d4['model']['document']['differ']['getChangedMarkers']()),_0x3b9b83=new Set();for(const {name:_0x38e166,data:_0x4d8934}of _0x96cccb){const {group:_0x44d0fa,type:_0x374f2c,subType:_0x5ccaae,id:_0x1b4be7}=this['_splitMarkerName'](_0x38e166);if('suggestion'!==_0x44d0fa)continue;const _0x333523=this['_suggestions']['get'](_0x1b4be7);if(null!=_0x4d8934['newRange']){'formatInline'==_0x374f2c&&(_0x59004a=_0x59004a||Et(_0x4d8934['newRange'],_0x38e166,_0x51b2e7,_0x3163d4['model']['schema']));const _0x4c397f='attribute'==_0x374f2c&&this['_isBlockAttribute'](_0x5ccaae['split']('|')[0x0]);if(_0x4d8934['newRange']['isCollapsed']||'$graveyard'==_0x4d8934['newRange']['root']['rootName']||'formatBlock'==_0x374f2c&&!Ut(_0x4d8934['newRange'])||_0x4c397f&&!Ut(_0x4d8934['newRange'])||'deletion'==_0x374f2c&&!(!Tt(_0x53f4b4=_0x4d8934['newRange'])&&!function(_0x4a34cd){return _0x4a34cd['start']['parent']==_0x4a34cd['end']['nodeBefore']&&_0x4a34cd['start']['isAtEnd'];}(_0x53f4b4)))_0x51b2e7['removeMarker'](_0x38e166),_0x59004a=!0x0;else{if(!_0x333523||!_0x333523['isInContent'])continue;_0x3b9b83['add'](_0x333523);}}}var _0x53f4b4;return _0x3b9b83['size']>0x0&&(_0x59004a=!!this['_joinWithAdjacentSuggestions'](_0x3b9b83)||_0x59004a),_0x59004a;}),_0x3163d4['model']['document']['registerPostFixer'](_0x5878d8=>{let _0x5ed02c=!0x1;for(const _0x332171 of _0x3163d4['model']['document']['differ']['getChanges']())if('insert'==_0x332171['type'])for(const _0x4d4430 of this['_suggestions']['values']()){if(_0x4d4430['isMultiRange']||!_0x4d4430['isInContent'])continue;const _0x234aed='formatBlock'==_0x4d4430['type'],_0x2eb574=this['_getAttributeKey'](_0x4d4430),_0x50b0ee=_0x2eb574&&this['_isBlockAttribute'](_0x2eb574);if(!_0x234aed&&!_0x50b0ee)continue;const _0x42b921=_0x4d4430['getFirstRange']();if(_0x42b921['start']['parent']!=_0x42b921['end']['parent']&&!_0x42b921['end']['isAtEnd']){const _0x437647=_0x3163d4['model']['createPositionAt'](_0x42b921['start']['nodeAfter'],'end'),_0x10ae9b=_0x3163d4['model']['createRange'](_0x42b921['start'],_0x437647);_0x5878d8['updateMarker'](_0x4d4430['getFirstMarker'](),{'range':_0x10ae9b}),_0x5ed02c=!0x0;}}return _0x5ed02c;}),_0x3163d4['model']['document']['registerPostFixer'](_0x444bb8=>this['_processAttributeChanges'](_0x444bb8)),_0x3163d4['model']['document']['registerPostFixer'](_0x12c91a=>!_0x12c91a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x12c91a)),_0x3163d4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3163d4['model']['document']['on']('change:data',(_0x23843a,_0x3f9f73)=>{if(!_0x3f9f73['isLocal']||_0x3f9f73['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x395e32=_0x3163d4['model']['document']['differ']['getChanges']();if(0x0==_0x395e32['length'])return;const _0x16b70e=[],_0x1350d6=_0x395e32['filter'](_0x2b5577=>'attribute'==_0x2b5577['type']),_0x4a6896=_0x395e32['filter'](_0x3a4e98=>'insert'==_0x3a4e98['type']&&'$text'!=_0x3a4e98['name']),_0x4578bd=_0x395e32['filter'](_0x94e977=>'remove'==_0x94e977['type']&&'$text'!=_0x94e977['name']);for(const _0x35ae2c of _0x1350d6)this['_isRegisteredAttribute'](_0x35ae2c['attributeKey'])&&_0x16b70e['push']({'key':_0x35ae2c['attributeKey'],'newValue':_0x35ae2c['attributeNewValue'],'oldValue':_0x35ae2c['attributeOldValue'],'range':Ot(_0x35ae2c['range'],_0x3163d4['model'])});for(const _0x3609eb of _0x4a6896){const _0x408240=_0x4578bd['find'](_0x45cbc7=>_0x45cbc7['_element']===_0x3609eb['_element']);if(_0x408240){const _0x1db567=Ft(_0x3609eb['position']['nodeAfter'],_0x3163d4['model']);_0x408240['name']!==_0x3609eb['name']&&_0x16b70e['push']({'key':m,'newValue':_0x3609eb['name'],'oldValue':_0x408240['name'],'range':_0x1db567});for(const [_0x6dba29,_0x5de040]of _0x408240['attributes']){if(!this['_isRegisteredAttribute'](_0x6dba29))continue;const _0x4da87c=_0x3609eb['attributes']['get'](_0x6dba29);_0x5de040!==_0x4da87c&&_0x16b70e['push']({'key':_0x6dba29,'newValue':_0x4da87c,'oldValue':_0x5de040,'range':_0x1db567});}for(const [_0xd351a5,_0x2d20ae]of _0x3609eb['attributes'])this['_isRegisteredAttribute'](_0xd351a5)&&(_0x408240['attributes']['has'](_0xd351a5)||_0x16b70e['push']({'key':_0xd351a5,'newValue':_0x2d20ae,'oldValue':null,'range':_0x1db567}));}}0x0!=_0x16b70e['length']&&_0x3163d4['model']['enqueueChange'](_0x3f9f73,_0x2ffa8d=>{const _0x1c0540=_0x249608();for(const {range:_0x591534,key:_0x125ae7,oldValue:_0x48edff,newValue:_0x299325}of _0x16b70e)this['markAttributeChange'](_0x591534,_0x125ae7,_0x48edff,_0x299325,{'groupId':_0x1c0540});this['_reduceExistingSuggestions'](_0x2ffa8d,_0x16b70e);});},{'priority':'lowest'}),_0x3163d4['model']['markers']['on']('update:suggestion',(_0x2f9ff0,_0x2f4423,_0x192490)=>{if(null==_0x192490){const {id:_0x4d105d}=this['_splitMarkerName'](_0x2f4423['name']),_0x294f8e=this['_suggestions']['get'](_0x4d105d);_0x294f8e&&_0x294f8e['addMarkerName'](_0x2f4423['name']);}}),_0x3163d4['model']['document']['on']('change:data',()=>{const _0x20b0d6=Array['from'](_0x3163d4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5cf722=>'suggestion'===this['_splitMarkerName'](_0x5cf722['name'])['group']);if(0x0===_0x20b0d6['length'])return;_0x20b0d6['sort']((_0x218e9e,_0xce2919)=>{const _0x47c6d2=_0x218e9e['data']['oldRange'],_0xd0b21d=_0xce2919['data']['oldRange'];return null===_0x47c6d2&&null===_0xd0b21d?0x0:null===_0x47c6d2&&null!==_0xd0b21d?-0x1:null!==_0x47c6d2&&null===_0xd0b21d?0x1:_0x47c6d2['start']['isBefore'](_0xd0b21d['start'])?-0x1:0x1;});const _0x1c20df=new Set(),_0x3718db=new Set();for(const {name:_0x7e7ead,data:_0x36d9d6}of _0x20b0d6){const {id:_0x4b7395}=this['_splitMarkerName'](_0x7e7ead);if(null===_0x36d9d6['oldRange']){const _0x366d06=this['_handleNewSuggestionMarker'](_0x7e7ead);_0x3718db['add'](_0x366d06);}else{const _0xe3e3b8=this['_suggestions']['get'](_0x4b7395);null!==_0x36d9d6['newRange']||_0xe3e3b8['isInContent']?(_0x1c20df['add'](_0xe3e3b8['head']),_0x3718db['add'](_0xe3e3b8)):this['_removeSuggestion'](_0xe3e3b8);}}_0x3718db['size']>0x0&&this['_refreshSuggestionsChain'](_0x3718db);for(const _0x268283 of _0x1c20df)this['fire']('suggestionChanged',_0x268283);}),_0x3163d4['model']['on']('applyOperation',(_0x58bd80,_0x4e5985)=>{const _0x4168b9=_0x4e5985[0x0];if(!this['_suggestions']['size'])return;if(!_0x4168b9['isDocumentOperation'])return;if(_0x4168b9['batch']['isUndo']||!_0x4168b9['batch']['isLocal'])return;let _0x477d39,_0x226d78;switch(_0x4168b9['type']){case'insert':_0x477d39=_0x3163d4['model']['createPositionAt'](_0x4168b9['position']),_0x226d78=_0x477d39['getShiftedBy'](_0x4168b9['howMany']);break;case'split':_0x477d39=_0x3163d4['model']['createPositionAt'](_0x4168b9['splitPosition']),_0x226d78=_0x3163d4['model']['createPositionAt'](_0x4168b9['moveTargetPosition']);break;case'move':_0x477d39=_0x3163d4['model']['createPositionAt'](_0x4168b9['targetPosition']),_0x226d78=_0x477d39['getShiftedBy'](_0x4168b9['howMany']);break;default:return;}const _0x138d89=_0x3163d4['model']['createRange'](_0x477d39,_0x226d78);_0x3163d4['model']['change'](()=>{for(const {suggestion:_0x57045d,meta:_0x4c2179}of this['_findSuggestions'](_0x138d89)){if(_0x57045d['isMultiRange'])continue;if('formatInline'==_0x57045d['type'])continue;const _0x3f5c11=this['_getAttributeKey'](_0x57045d);if(_0x3f5c11&&this['_isBlockAttribute'](_0x3f5c11)&&'split'!=_0x4168b9['type'])continue;const _0x563710=_0x57045d['data']&&_0x57045d['data']['multipleBlocks'];('formatBlock'!=_0x57045d['type']||'split'==_0x4168b9['type']&&!_0x563710)&&(_0x4c2179['containsRangeInObject']||'insertion'==_0x57045d['type']&&_0x4c2179['isOwn']||_0x57045d['getFirstRange']()['containsRange'](_0x138d89)&&this['_breakSuggestionMarker'](_0x57045d,_0x477d39,_0x226d78));}});},{'priority':'lowest'}),_0x3163d4['model']['on']('deleteContent',(_0x406256,_0x4d34ca)=>{const _0x187ad1=_0x4d34ca[0x0],_0x4e296d=_0x4d34ca[0x1];if(_0x4e296d&&_0x4e296d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x187ad1['isCollapsed'])return;const _0x2af563=_0x3163d4['model']['schema'],{start:_0x4c70d6,end:_0x4364be}=_0x187ad1['getFirstRange'](),_0x2776c0=_0x4c70d6['nodeAfter']&&_0x2af563['isLimit'](_0x4c70d6['nodeAfter'])?null:_0x2af563['getNearestSelectionRange'](_0x4c70d6,'forward'),_0x5b0190=_0x4364be['nodeBefore']&&_0x2af563['isLimit'](_0x4364be['nodeBefore'])?null:_0x2af563['getNearestSelectionRange'](_0x4364be,'backward'),_0x4e5b95=_0x3163d4['model']['createRange'](_0x2776c0?_0x2776c0['start']:_0x4c70d6,_0x5b0190?_0x5b0190['end']:_0x4364be);_0x3163d4['model']['change'](_0x3973fb=>{this['markDeletion'](_0x4e5b95);const _0x367370=_0x3163d4['model']['schema']['getNearestSelectionRange'](_0x4e5b95['start']);_0x187ad1['is']('documentSelection')?_0x3973fb['setSelection'](_0x367370):_0x187ad1['setTo'](_0x367370);}),_0x406256['stop']();},{'priority':_0x191c35['normal']+0xa}),_0x3163d4['model']['on']('insertContent',(_0x19c99d,_0x2d6cf3)=>{const _0x516683=_0x2d6cf3[_0x2d6cf3['length']-0x1];_0x516683&&_0x516683['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3163d4['model']['change'](()=>{let _0x1df0f2=_0x3163d4['model']['insertContent'](_0x2d6cf3[0x0],_0x2d6cf3[0x1],_0x2d6cf3[0x2],{'forceDefaultExecution':!0x0});if(!_0x1df0f2)return;_0x19c99d['return']=_0x1df0f2['clone']();const _0x4a49fe=_0x1df0f2['end']['nodeBefore'],_0x38e512=_0x3163d4['model']['schema'];_0x4a49fe&&_0x38e512['isBlock'](_0x4a49fe)&&!_0x38e512['isObject'](_0x4a49fe)&&(_0x1df0f2=_0x3163d4['model']['createRange'](_0x1df0f2['start'],_0x3163d4['model']['createPositionAt'](_0x4a49fe,'end'))),this['markInsertion'](_0x1df0f2);}),_0x19c99d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x227f60=new $(_0x3163d4,this['_suggestions']);_0x3163d4['commands']['add']('acceptSuggestion',_0x227f60),this['enableCommand']('acceptSuggestion');const _0x27d191=new B(_0x3163d4,this['_suggestions']);_0x3163d4['commands']['add']('discardSuggestion',_0x27d191),this['enableCommand']('discardSuggestion'),_0x3163d4['commands']['add']('acceptAllSuggestions',new x(_0x3163d4,_0x227f60,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3163d4['commands']['add']('discardAllSuggestions',new x(_0x3163d4,_0x27d191,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3163d4['commands']['add']('acceptSelectedSuggestions',new R(_0x3163d4,_0x227f60,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3163d4['commands']['add']('discardSelectedSuggestions',new R(_0x3163d4,_0x27d191,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1a6c4e=_0x3163d4['plugins']['get']('CommentsRepository');this['listenTo'](_0x1a6c4e,'addComment',(_0x32f7a1,{threadId:_0x4c81ee})=>{const _0x3be01f=this['_suggestions']['get'](_0x4c81ee);_0x3be01f&&_0x3be01f['commentThread']&&0x1===_0x3be01f['commentThread']['length']&&this['_updateSuggestionData'](_0x4c81ee,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1a6c4e,'removeComment',(_0x6bc67,{threadId:_0x20dac3})=>{const _0x386a6c=this['_suggestions']['get'](_0x20dac3);_0x386a6c&&_0x386a6c['commentThread']&&!_0x386a6c['commentThread']['length']&&this['_updateSuggestionData'](_0x20dac3,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x17c783){if(this['_adapter'])throw new _0x3ea53d('track-changes-adapter-already-set',this);this['_adapter']=_0x17c783;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x29c8bc=!0x1,toJSON:_0x1f899d=!0x1}={}){const _0x4d65b4=[];for(const _0x6a444f of this['_suggestions']['values']())_0x29c8bc&&!_0x6a444f['isInContent']||_0x4d65b4['push'](_0x6a444f);return _0x1f899d?_0x4d65b4['map'](_0x57e38d=>_0x57e38d['toJSON']()):_0x4d65b4;}['getSuggestion'](_0x1340e6){const _0x41f6eb=this['_suggestions']['get'](_0x1340e6);if(!_0x41f6eb)throw new _0x3ea53d('track-changes-suggestion-not-found',this);return _0x41f6eb;}['hasSuggestion'](_0x4139a9){return this['_suggestions']['has'](_0x4139a9);}['addSuggestionData'](_0x1a3a66){const {authorId:_0x2d3b44,id:_0x4af3ca,attributes:_0x3ac8c9}=_0x1a3a66,[_0x940aac,_0x3ba203]=_0x1a3a66['type']['split'](':'),_0x1b28c6=this['_suggestions']['get'](_0x4af3ca)||this['_createSuggestion'](_0x940aac,_0x3ba203,_0x4af3ca,_0x2d3b44,_0x3ac8c9);if(this['_addThreadToSuggestion'](_0x1b28c6),this['_checkSuggestionCorrectness'](_0x1b28c6,_0x940aac,_0x3ba203||null,_0x2d3b44),_0x1b28c6['createdAt']=_0x1a3a66['createdAt'],_0x1b28c6['_isDataLoaded']=!0x0,_0x3ac8c9&&_0x3ac8c9['@external']){const _0xe3579e=_0x3ac8c9['@external'],_0x3d4302=this['_getExternalAuthor'](_0xe3579e['authorName']);_0x1b28c6['authoredAt']=_0xe3579e['createdAt'],_0x1b28c6['author']=_0x3d4302,_0x1b28c6['isExternal']=!0x0;}else _0x1b28c6['authoredAt']=_0x1a3a66['createdAt'];switch(_0x1a3a66['data']&&(_0x1b28c6['data']=_0x1a3a66['data']),_0x1a3a66['attributes']&&(_0x1b28c6['attributes']=_0x1a3a66['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1b28c6['_saved']=!0x0),this['_suggestionState']['get'](_0x1b28c6)){case'notReady':this['_suggestionState']['set'](_0x1b28c6,'dataReady');break;case'markerReady':_0x1b28c6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1b28c6])),this['_refreshSuggestionsChain'](new Set([_0x1b28c6])),this['_suggestionState']['set'](_0x1b28c6,'ready'),this['fire']('suggestionLoaded',_0x1b28c6)):this['_suggestionState']['set'](_0x1b28c6,'removed');}return _0x1b28c6;}['acceptSuggestion'](_0x1e908d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e5844 of _0x1e908d['getAllAdjacentSuggestions']())_0x4e5844['accept']();});});}['discardSuggestion'](_0x32dc09){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xd6e667 of _0x32dc09['getAllAdjacentSuggestions']())_0xd6e667['discard']();});});}['enableCommand'](_0x3974c7,_0x4ea7a9){const _0x3f565b=this['editor']['commands']['get'](_0x3974c7);if(!_0x3f565b)throw new _0x3ea53d('track-changes-command-not-found',this,{'commandName':_0x3974c7});if(this['_enabledCommands']['has'](_0x3f565b))throw new _0x3ea53d('track-changes-enable-command-twice',this,{'commandName':_0x3974c7});this['_enabledCommands']['add'](_0x3f565b),_0x4ea7a9&&_0x3f565b['on']('execute',(_0x52da7a,_0x1ba058)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1ba058['length']>0x0&&_0x1ba058[_0x1ba058['length']-0x1]&&_0x1ba058[_0x1ba058['length']-0x1]['forceDefaultExecution']?_0x1ba058['pop']():(_0x52da7a['return']=_0x4ea7a9((..._0x58f5ff)=>_0x3f565b['execute'](..._0x58f5ff,{'forceDefaultExecution':!0x0}),..._0x1ba058),_0x52da7a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x165308){let _0x17b22f,_0x5a73c7;const _0x3507cd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x17b22f=_0x165308();}catch(_0x25ebbc){_0x5a73c7=_0x25ebbc;}return _0x3507cd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5a73c7&&_0x3ea53d['rethrowUnexpectedError'](_0x5a73c7,this),_0x17b22f;}['markInsertion'](_0x205e49,_0x7f3bfd=null,_0x25bebd={}){if(_0x205e49['isCollapsed'])return null;const _0x1522f1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1ee20b,meta:_0x4099e0}of this['_findSuggestions'](_0x205e49,'insertion'))if(_0x4099e0['isOwn']){if(!_0x4099e0['isNextTo']){if(_0x4099e0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x1ee20b,_0x25bebd))continue;return _0x1ee20b;}if(Lt(_0x1ee20b,_0x25bebd))return _0x1ee20b;this['_breakSuggestionMarker'](_0x1ee20b,_0x205e49['start'],_0x205e49['end']);break;}if(_0x7f3bfd==_0x1ee20b['subType']&&Lt(_0x1ee20b,_0x25bebd)){const _0x4ede10=_0x1ee20b['getFirstRange']();return _0x4ede10['start']['isEqual'](_0x205e49['end'])?this['_setSuggestionRange'](_0x1ee20b,this['_model']['createRange'](_0x205e49['start'],_0x4ede10['end'])):this['_setSuggestionRange'](_0x1ee20b,this['_model']['createRange'](_0x4ede10['start'],_0x205e49['end'])),_0x1ee20b;}}const _0x12c41e=_0x249608(),_0x30aa10=_0x1522f1['id'],_0x7ab729=_0x7f3bfd?'insertion:'+_0x7f3bfd:'insertion',_0x84817d=this['_setSuggestionData']({'id':_0x12c41e,'type':_0x7ab729,'createdAt':new Date(),'authorId':_0x30aa10,'attributes':_0x25bebd});return this['_addSuggestionMarker'](_0x7ab729,_0x12c41e,_0x30aa10,_0x205e49),_0x84817d;}['markMultiRangeInsertion'](_0x53f691,_0x42410b='multi',_0x4d2465={}){const _0x259c52=this['editor']['plugins']['get']('Users')['me'],_0x43a446=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x42410b,'join');for(const _0x1ff56c of this['getSuggestions']())if(_0x1ff56c['author']['id']==_0x259c52['id']&&'insertion'==_0x1ff56c['type']&&_0x1ff56c['subType']==_0x42410b&&Lt(_0x1ff56c,_0x4d2465)&&(_0x43a446(_0x1ff56c['getRanges'](),_0x53f691)||_0x43a446(_0x53f691,_0x1ff56c['getRanges']()))){for(const _0x189d53 of _0x53f691)_0x1ff56c['addRange'](_0x189d53);return _0x1ff56c;}for(const {suggestion:_0x316a19,meta:_0x7e12b9}of this['_findSuggestions'](_0x53f691,'insertion')){if(!_0x7e12b9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x7e12b9['containsRangeInObject'])continue;if(!Lt(_0x316a19,_0x4d2465))continue;let _0x2d77fe=!0x0;for(const _0x559f06 of _0x316a19['getRanges']())for(const _0x3a4127 of _0x53f691)if(!_0x559f06['containsRange'](_0x3a4127)){_0x2d77fe=!0x1;break;}if(_0x2d77fe)return _0x316a19;}const _0x4b4f4d=_0x249608(),_0x5a07cf=_0x259c52['id'],_0x3dd802='insertion:'+_0x42410b,_0x43df96=this['_setSuggestionData']({'id':_0x4b4f4d,'type':_0x3dd802,'createdAt':new Date(),'authorId':_0x5a07cf,'attributes':_0x4d2465});for(const _0x66dc0f of _0x53f691)this['_addSuggestionMarker'](_0x3dd802,_0x4b4f4d,_0x5a07cf,_0x66dc0f,u['getMultiRangeId']());return _0x43df96;}['markInlineFormat'](_0x56a865,_0x1bfba3,_0x48970f=null,_0x3d39fd={}){if(_0x48970f=_0x48970f||Vt(_0x1bfba3),_0x56a865['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x30a96a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x48970f,'accept');return this['forceDefaultExecution'](()=>_0x30a96a([_0x56a865],_0x1bfba3,_0x3d39fd)),null;}const _0x13b2c0=this['editor']['plugins']['get']('Users')['me'],_0x204173=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x39cba2,meta:_0x2d4a19}of this['_findSuggestions'](_0x56a865,'insertion'))_0x2d4a19['isOwn']&&!_0x2d4a19['isInsideObject']&&_0x204173['push'](..._0x39cba2['getRanges']());}const _0x5322ba=function(_0x22b284,_0x16b58f){const _0x19ea20=[];for(const _0x414a4c of _0x16b58f){const _0x4b0dce=_0x22b284['getIntersection'](_0x414a4c);_0x4b0dce&&_0x19ea20['push'](_0x4b0dce);}return _0x19ea20;}(_0x56a865,_0x204173),_0x407400=function(_0x2423bd,_0x94c5a6){const _0x59b9ba=[_0x2423bd];for(const _0x4de991 of _0x94c5a6){let _0x364dcd=0x0;for(;_0x364dcd<_0x59b9ba['length'];){const _0x1262af=_0x59b9ba[_0x364dcd]['getDifference'](_0x4de991);_0x59b9ba['splice'](_0x364dcd,0x1,..._0x1262af),_0x364dcd+=_0x1262af['length'];}}return _0x59b9ba;}(_0x56a865,_0x204173);_0x5322ba['length']&&this['_model']['change'](()=>{for(const _0x253ffe of _0x5322ba){const _0x2de5d6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x48970f,'accept');this['forceDefaultExecution'](()=>_0x2de5d6([_0x253ffe],_0x1bfba3,_0x3d39fd));}});for(const _0x15e4fc of _0x407400){let _0x361fe6=null,_0x2be20d=_0x15e4fc['start'],_0x2fa81a=_0x15e4fc['end'];for(const {suggestion:_0x2b7d25,meta:_0x2381c8}of this['_findSuggestions'](_0x15e4fc,'formatInline')){if(!_0x2381c8['isOwn'])continue;if(_0x2b7d25['subType']!=_0x48970f)continue;if(!Lt(_0x2b7d25,_0x3d39fd))continue;const _0xde6a0a=_0x2b7d25['getFirstRange']();if(_0xde6a0a['containsRange'](_0x15e4fc,!0x0))return null;_0x2be20d=_0x2be20d['isBefore'](_0xde6a0a['start'])?_0x2be20d:_0xde6a0a['start'],_0x2fa81a=_0x2fa81a['isAfter'](_0xde6a0a['end'])?_0x2fa81a:_0xde6a0a['end'],_0x361fe6?_0xde6a0a['start']['isBefore'](_0x361fe6['getFirstRange']()['start'])?(_0x361fe6['removeMarkers'](),_0x361fe6=_0x2b7d25):_0x2b7d25['removeMarkers']():_0x361fe6=_0x2b7d25;}const _0x5cb12f=this['_model']['createRange'](_0x2be20d,_0x2fa81a);if(_0x361fe6)this['_setSuggestionRange'](_0x361fe6,_0x5cb12f);else{const _0x1e7fcb=_0x249608(),_0x54eca6=_0x13b2c0['id'];this['_setSuggestionData']({'id':_0x1e7fcb,'type':'formatInline:'+_0x48970f,'data':_0x1bfba3,'createdAt':new Date(),'authorId':_0x54eca6,'attributes':_0x3d39fd}),this['_addSuggestionMarker']('formatInline:'+_0x48970f,_0x1e7fcb,_0x54eca6,_0x5cb12f);}}return null;}['markBlockFormat'](_0x173183,_0x10f48f,_0x536dd9=[],_0xccd1a3=null,_0x1579c9={}){_0x10f48f['formatGroupId']||(_0x10f48f['formatGroupId']=_0x10f48f['commandName']),_0x10f48f['multipleBlocks']=_0x173183['is']('range'),_0xccd1a3=_0xccd1a3||Vt(_0x10f48f);const _0x350ed0=_0x536dd9['map'](_0x14dab0=>Ft(_0x14dab0,this['_model'])),_0x3079ea=_0x173183['is']('range')?_0x173183:Ft(_0x173183,this['_model']);if('never'===this['_trackFormatChanges']){const _0x24cb8c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xccd1a3,'accept');return this['forceDefaultExecution'](()=>_0x24cb8c([_0x3079ea],_0x10f48f,_0x1579c9)),null;}_0x350ed0['push'](_0x3079ea);let _0x2b0bbd=!0x0;for(const _0x3555cf of _0x350ed0)if(!this['_rangeIsInLocalUserInsertion'](_0x3555cf)){_0x2b0bbd=!0x1;break;}if(_0x2b0bbd&&'always'!==this['_trackFormatChanges']){const _0x266ee2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xccd1a3,'accept');return this['forceDefaultExecution'](()=>_0x266ee2([_0x3079ea],_0x10f48f,_0x1579c9)),null;}let _0x337f85=null,_0x18c527=_0x3079ea['start'],_0x68775c=_0x3079ea['end'];for(const {suggestion:_0x5c37eb,meta:_0x36eb71}of this['_findSuggestions'](_0x3079ea,'formatBlock')){if(!_0x36eb71['isOwn'])continue;if(_0x36eb71['isNextTo']||_0x36eb71['containsRangeInObject']||_0x36eb71['isInsideObject'])continue;if(_0x5c37eb['data']['formatGroupId']!=_0x10f48f['formatGroupId'])continue;if(!Lt(_0x5c37eb,_0x1579c9))continue;const _0x5ceac1=_0x5c37eb['getFirstRange']();if(_0x5c37eb['subType']==_0xccd1a3){if(_0x5ceac1['containsRange'](_0x3079ea,!0x0))return null;_0x18c527=_0x18c527['isBefore'](_0x5ceac1['start'])?_0x18c527:_0x5ceac1['start'],_0x68775c=_0x68775c['isAfter'](_0x5ceac1['end'])?_0x68775c:_0x5ceac1['end'],_0x337f85?_0x5ceac1['start']['isBefore'](_0x337f85['getFirstRange']()['start'])?(_0x337f85['removeMarkers'](),_0x337f85=_0x5c37eb):_0x5c37eb['removeMarkers']():_0x337f85=_0x5c37eb;}else{const _0x2d9b3b=_0x3079ea['getIntersection'](_0x5ceac1);this['_cutOutSuggestionMarker'](_0x5c37eb,_0x2d9b3b);}}const _0x234582=this['editor']['plugins']['get']('Users')['me'],_0x170834=_0x249608(),_0x50bf13=_0x234582['id'];if(_0x337f85)return this['_setSuggestionRange'](_0x337f85,this['_model']['createRange'](_0x18c527,_0x68775c)),_0x337f85;{const _0x3eb751=this['_setSuggestionData']({'id':_0x170834,'type':'formatBlock:'+_0xccd1a3,'data':_0x10f48f,'createdAt':new Date(),'authorId':_0x50bf13,'attributes':_0x1579c9});return this['_addSuggestionMarker']('formatBlock:'+_0xccd1a3,_0x170834,_0x50bf13,this['_model']['createRange'](_0x18c527,_0x68775c)),_0x3eb751;}}['markMultiRangeBlockFormat'](_0x358388,_0x2405f9,_0x5a2d1b=[],_0x49d648=null,_0xdd8abb={}){_0x2405f9['formatGroupId']||(_0x2405f9['formatGroupId']=_0x2405f9['commandName']);const _0x3dff68=_0x358388[0x0];_0x2405f9['multipleBlocks']=_0x3dff68['is']('range'),_0x49d648=_0x49d648||Vt(_0x2405f9);const _0x37dbc7=_0x5a2d1b['map'](_0x8cb34a=>Ft(_0x8cb34a,this['_model'])),_0x209d26=_0x3dff68['is']('range')?_0x358388:_0x358388['map'](_0x3ca7f9=>Ft(_0x3ca7f9,this['_model']));if('never'===this['_trackFormatChanges']){const _0x10bbb8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49d648,'accept');return this['forceDefaultExecution'](()=>_0x10bbb8(_0x209d26,_0x2405f9,_0xdd8abb)),null;}_0x37dbc7['push'](..._0x209d26);let _0x2838c4=!0x0;for(const _0x26bdb9 of _0x37dbc7)if(!this['_rangeIsInLocalUserInsertion'](_0x26bdb9)){_0x2838c4=!0x1;break;}if(_0x2838c4&&'always'!==this['_trackFormatChanges']){const _0x4e59e1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49d648,'accept');return this['forceDefaultExecution'](()=>_0x4e59e1(_0x209d26,_0x2405f9,_0xdd8abb)),null;}const _0x52e829=this['editor']['plugins']['get']('Users')['me'];for(const _0x11de2b of this['getSuggestions']()){if(_0x11de2b['author']['id']!=_0x52e829['id'])continue;if('formatBlock'!=_0x11de2b['type']||_0x11de2b['data']['formatGroupId']!=_0x2405f9['formatGroupId'])continue;if(!Lt(_0x11de2b,_0xdd8abb))continue;const _0x52595c=_0x11de2b['subType']==_0x49d648;for(let _0x36da09=0x0;_0x36da09<_0x209d26['length'];_0x36da09++){const _0x224338=_0x209d26[_0x36da09];for(const _0x39b4b9 of _0x11de2b['getMarkers']()){const _0x1c1b5c=_0x39b4b9['getRange']();if(_0x224338['isEqual'](_0x1c1b5c)){_0x52595c?(_0x209d26['splice'](_0x36da09,0x1),_0x36da09--):_0x11de2b['removeMarker'](_0x39b4b9['name']);break;}}}}if(0x0==_0x209d26['length'])return null;const _0x300734=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49d648,'join');for(const _0x5e66bb of this['getSuggestions']())if(_0x5e66bb['author']['id']==_0x52e829['id']&&'formatBlock'==_0x5e66bb['type']&&_0x5e66bb['data']['formatGroupId']==_0x2405f9['formatGroupId']&&_0x5e66bb['subType']==_0x49d648&&Lt(_0x5e66bb,_0xdd8abb)&&(_0x300734(_0x5e66bb['getRanges'](),_0x209d26)||_0x300734(_0x209d26,_0x5e66bb['getRanges']()))){for(const _0x456959 of _0x209d26)_0x5e66bb['addRange'](_0x456959);return _0x5e66bb;}const _0x500fb1=_0x249608(),_0x3a8d7d=_0x52e829['id'],_0x472be8='formatBlock:'+_0x49d648,_0x797b79=this['_setSuggestionData']({'id':_0x500fb1,'type':_0x472be8,'data':_0x2405f9,'createdAt':new Date(),'authorId':_0x3a8d7d,'attributes':_0xdd8abb});for(const _0x1aadeb of _0x209d26)this['_addSuggestionMarker'](_0x472be8,_0x500fb1,_0x3a8d7d,_0x1aadeb,u['getMultiRangeId']());return _0x797b79;}['markDeletion'](_0x5b0d07,_0x464b9b=null,_0x477f99={}){if(_0x5b0d07['isCollapsed'])return null;const _0x3deb84=this['editor']['plugins']['get']('Users')['me'],_0x52402a=new _0x216293(_0x5b0d07['start'],_0x5b0d07['end']);for(const {suggestion:_0x3b4d9e,meta:_0x4b3f48}of this['_findSuggestions'](_0x52402a,'insertion'))if(_0x4b3f48['isOwn']&&!_0x4b3f48['isNextTo']){if(_0x3b4d9e['isMultiRange']){const _0x42f37e=_0x3b4d9e['getRanges']()['filter'](_0x23131e=>'$graveyard'!=_0x23131e['root']['rootName']);_0x42f37e['every'](_0x525940=>_0x52402a['containsRange'](_0x525940,!0x0))&&_0x3b4d9e['discard']();if(_0x42f37e['some'](_0x5cd4d4=>_0x5cd4d4['containsRange'](_0x52402a,!0x0))){const _0x11eca2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x464b9b,'accept');return this['forceDefaultExecution'](()=>_0x11eca2([_0x52402a],null,_0x477f99)),null;}}else{const _0x56f0f5=_0x52402a['getIntersection'](_0x3b4d9e['getFirstRange']());null!==_0x56f0f5&&_0x3b4d9e['_onDiscard']([_0x56f0f5],null,_0x477f99);}}if(_0x52402a['detach'](),_0x52402a['isCollapsed']||'$graveyard'==_0x52402a['root']['rootName'])return null;let _0xf9c04c=null,_0x56f389=_0x52402a['start'],_0x2625ac=_0x52402a['end'];const _0x5bf688=this['_findSuggestions'](_0x52402a,'deletion');for(const {suggestion:_0x359cb7,meta:_0x2bdcf3}of _0x5bf688){const _0x5bf424=this['_model']['createRange'](_0x56f389,_0x2625ac);if(_0x2bdcf3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2bdcf3['containsRangeInObject']&&!_0x2bdcf3['isInsideObject'])){if(_0x359cb7['isMultiRange']){if(!Lt(_0x359cb7,_0x477f99))continue;let _0x3e64b8=!0x0;for(const _0x56b18b of _0x359cb7['getRanges']()){if(_0x56b18b['containsRange'](_0x5bf424,!0x0))return _0x359cb7;_0x5bf424['containsRange'](_0x56b18b)||(_0x3e64b8=!0x1);}_0x3e64b8&&_0x359cb7['discard']();}else{const _0x26d276=_0x359cb7['getFirstRange']();if(_0x26d276['containsRange'](_0x5bf424,!0x0))return _0x359cb7;if(!Lt(_0x359cb7,_0x477f99)){_0x5bf424['containsRange'](_0x26d276)?_0x359cb7['removeMarkers']():_0x26d276['containsPosition'](_0x56f389)?_0x56f389=_0x26d276['end']:_0x26d276['containsPosition'](_0x2625ac)&&(_0x2625ac=_0x26d276['start']);continue;}_0x56f389=_0x56f389['isBefore'](_0x26d276['start'])?_0x56f389:_0x26d276['start'],_0x2625ac=_0x2625ac['isAfter'](_0x26d276['end'])?_0x2625ac:_0x26d276['end'],_0x477f99=Object['assign']({},_0x359cb7['attributes']),_0xf9c04c?_0x26d276['start']['isBefore'](_0xf9c04c['getFirstRange']()['start'])?(_0xf9c04c['removeMarkers'](),_0xf9c04c=_0x359cb7):_0x359cb7['removeMarkers']():_0xf9c04c=_0x359cb7;}}}if(_0xf9c04c)return this['_setSuggestionRange'](_0xf9c04c,this['_model']['createRange'](_0x56f389,_0x2625ac)),_0xf9c04c;{const _0xcfc1d7=_0x249608(),_0x2ebd73=this['_model']['createRange'](_0x56f389,_0x2625ac),_0x12431c=_0x3deb84['id'],_0x3184e8=_0x464b9b?'deletion:'+_0x464b9b:'deletion',_0x5eb4fe=this['_setSuggestionData']({'id':_0xcfc1d7,'type':_0x3184e8,'createdAt':new Date(),'authorId':_0x12431c,'attributes':_0x477f99});return this['_addSuggestionMarker'](_0x3184e8,_0xcfc1d7,_0x12431c,_0x2ebd73),_0x5eb4fe;}}['markMultiRangeDeletion'](_0x18f28b,_0xcb90c5='multi',_0x4a2084={}){const _0x1783b0=this['editor']['plugins']['get']('Users')['me'],_0x3df446=_0x18f28b['map'](_0x30b29f=>new _0x216293(_0x30b29f['start'],_0x30b29f['end'])),_0x2b3712=new Set();for(const {suggestion:_0x5d3c4f,meta:_0x369f43}of this['_findSuggestions'](_0x3df446,'insertion'))_0x369f43['isOwn']&&!_0x369f43['isNextTo']&&_0x2b3712['add'](_0x5d3c4f);for(const _0x74b137 of _0x2b3712)if(_0x74b137['isMultiRange']){const _0x2f76b5=_0x74b137['getRanges']();(!_0x74b137['attributes']||!_0x74b137['attributes']['skipNestingCheck'])&&(_0x2f76b5['every'](_0x27a227=>_0x3df446['some'](_0x38a9cd=>_0x38a9cd['containsRange'](_0x27a227,!0x0)))&&_0x74b137['discard']());if(_0x3df446['every'](_0x5901b1=>_0x2f76b5['some'](_0x3911ab=>_0x3911ab['containsRange'](_0x5901b1,!0x0)))){const _0x315357=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xcb90c5,'accept');return this['forceDefaultExecution'](()=>_0x315357(_0x18f28b,null,_0x4a2084)),null;}}else{const _0x4eb96d=_0x74b137['getFirstRange']();_0x3df446['some'](_0x3f7975=>_0x3f7975['containsRange'](_0x4eb96d,!0x0))&&_0x74b137['discard']();if(_0x3df446['every'](_0x297622=>_0x4eb96d['containsRange'](_0x297622,!0x0))){const _0x3a6197=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xcb90c5,'accept');return this['forceDefaultExecution'](()=>_0x3a6197(_0x3df446,null,_0x4a2084)),null;}}const _0x13e4e3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xcb90c5,'join');let _0x7ee2d4=null;for(const _0x116b25 of this['getSuggestions']())if(_0x116b25['author']['id']==_0x1783b0['id']&&_0x116b25['isInContent']&&'deletion'==_0x116b25['type']&&_0x116b25['subType']==_0xcb90c5&&Lt(_0x116b25,_0x4a2084)&&(_0x13e4e3(_0x116b25['getRanges'](),_0x3df446)||_0x13e4e3(_0x3df446,_0x116b25['getRanges']()))){if(_0x7ee2d4){if(_0x116b25['commentThread']&&_0x116b25['commentThread']['length'])continue;for(const _0x1b69ce of _0x116b25['getRanges']())_0x7ee2d4['isIntersectingWithRange'](_0x1b69ce)||_0x7ee2d4['addRange'](_0x1b69ce);_0x116b25['removeMarkers']();}else{_0x7ee2d4=_0x116b25;for(const _0x176366 of _0x3df446)_0x116b25['isIntersectingWithRange'](_0x176366)||_0x116b25['addRange'](_0x176366);}}if(_0x7ee2d4)return _0x7ee2d4;_0x2b3712['clear']();for(const {suggestion:_0x5798d4,meta:_0x173b94}of this['_findSuggestions'](_0x3df446,'deletion'))_0x173b94['isOwn']&&(this['_mergeNestedSuggestions']||!_0x173b94['containsRangeInObject']&&!_0x173b94['isInsideObject'])&&Lt(_0x5798d4,_0x4a2084)&&_0x2b3712['add'](_0x5798d4);for(const _0x29f9a2 of _0x2b3712){const _0x2f6218=_0x29f9a2['getRanges']();if(!_0x4a2084||!_0x4a2084['skipNestingCheck']){if(_0x3df446['every'](_0x34ba57=>_0x2f6218['some'](_0x3d0e79=>_0x3d0e79['containsRange'](_0x34ba57,!0x0))))return _0x29f9a2;}(!_0x29f9a2['attributes']||!_0x29f9a2['attributes']['skipNestingCheck'])&&(_0x2f6218['every'](_0x56a1da=>_0x3df446['some'](_0x4ca86d=>_0x4ca86d['containsRange'](_0x56a1da,!0x0)))&&_0x29f9a2['discard']());}const _0x493e24=_0x249608(),_0x49e572=_0x1783b0['id'],_0xca56ce='deletion:'+_0xcb90c5,_0x16bb9a=this['_setSuggestionData']({'id':_0x493e24,'type':_0xca56ce,'createdAt':new Date(),'authorId':_0x49e572,'attributes':_0x4a2084});for(const _0x25bde5 of _0x3df446)_0x25bde5['detach'](),_0x25bde5['isCollapsed']||'$graveyard'==_0x25bde5['root']['rootName']||this['_addSuggestionMarker'](_0xca56ce,_0x493e24,_0x49e572,_0x25bde5,u['getMultiRangeId']());return _0x16bb9a;}['markAttributeChange'](_0x59d36d,_0x3d69f5,_0x56318d,_0x35e27b,_0xd8fb56){if(_0x59d36d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x36180f=this['editor']['plugins']['get']('Users')['me']['id'],_0x4510f7=Array['from'](this['_suggestions']['values']())['filter'](_0x3c87b0=>'attribute'==_0x3c87b0['type']&&_0x3c87b0['data']['key']==_0x3d69f5&&_0x3c87b0['isIntersectingWithRange'](_0x59d36d));if('default'===this['_trackFormatChanges']){const _0x3a72e3=this['_findSuggestions'](_0x59d36d,'insertion')['filter'](({meta:_0x283d6e})=>_0x283d6e['isOwn']&&!_0x283d6e['isInsideObject']&&!_0x283d6e['isNextTo'])['map'](({suggestion:_0x30843e})=>_0x30843e);_0x4510f7['unshift'](..._0x3a72e3);}const _0x5d70f3=new Map([[_0x59d36d,_0x56318d]]);for(const _0x28f21b of _0x4510f7){const _0x408c15='attribute'==_0x28f21b['type']?_0x28f21b['data']['oldValue']:void 0x0,_0xa2602=_0x28f21b['getFirstRange'](),_0x3059a4=Array['from'](_0x5d70f3['keys']())['find'](_0x2c8f29=>_0x2c8f29['isIntersecting'](_0xa2602));if(!_0x3059a4)continue;const _0x279d02=_0x3059a4['getDifference'](_0xa2602);this['_isBlockAttribute'](_0x3d69f5)&&'insertion'==_0x28f21b['type']&&0x0!=_0x279d02['length']||(_0x5d70f3['delete'](_0x3059a4),_0x279d02['forEach'](_0x35acda=>{_0x5d70f3['set'](_0x35acda,_0x56318d);}),'insertion'!=_0x28f21b['type']&&_0x408c15!=_0x35e27b&&_0x5d70f3['set'](_0x3059a4['getIntersection'](_0xa2602),_0x408c15));}const _0xa5ee47=[];for(const [_0x3e0c4c,_0x6d01c2]of _0x5d70f3){const _0x1c7ebd=_0x249608(),_0x1c493c={'key':_0x3d69f5,'oldValue':_0x6d01c2,'newValue':_0x35e27b};_0x3d69f5['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':_0x3d69f5});const _0x2472a9=('attribute:'+(_0x3d69f5+'|'+Vt({'newValue':_0x35e27b})))['substring'](0x0,0x3c),_0x1cf36e=this['_setSuggestionData']({'id':_0x1c7ebd,'type':_0x2472a9,'data':_0x1c493c,'createdAt':new Date(),'authorId':_0x36180f,'attributes':_0xd8fb56});_0xa5ee47['push'](_0x1cf36e),this['_addSuggestionMarker'](_0x2472a9,_0x1c7ebd,_0x36180f,_0x3e0c4c);}return _0xa5ee47;}['enableDefaultAttributesIntegration'](_0x1c485e){this['enableCommand'](_0x1c485e,(_0x4585a7,..._0x29fe62)=>{this['_recordAttributeChanges'](()=>{_0x4585a7(..._0x29fe62);});});}['registerBlockAttribute'](_0x374fe2){this['_blockAttributeKeys']['add'](_0x374fe2);}['registerInlineAttribute'](_0x522757){this['_inlineAttributeKeys']['add'](_0x522757);}['_getAttributeKey'](_0x4c3561){return'attribute'==_0x4c3561['type']?_0x4c3561['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x140df3,_0x248c67){const _0x5110af=_0x140df3['getFirstMarker']();this['_model']['change'](_0x21f4d7=>{_0x21f4d7['updateMarker'](_0x5110af,{'range':_0x248c67});});}['_addThreadToSuggestion'](_0xb6bc71){const _0x477605=_0xb6bc71['id'],_0x3805ad=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x477605)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3805ad,'threadId':_0x477605,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xb6bd0a=this['_commentsRepository']['getCommentThread'](_0x477605);_0xb6bd0a['unbind']('isRemovable'),_0xb6bd0a['isRemovable']=!0x1,_0xb6bc71['commentThread']=_0xb6bd0a;}['_checkSuggestionCorrectness'](_0x416bfd,_0x4e5f7a,_0x50db46,_0x184dbd){if(_0x416bfd['type']!=_0x4e5f7a||_0x416bfd['subType']!=_0x50db46||_0x416bfd['creator']['id']!=_0x184dbd)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ea53d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1f4b0c,_0xf66e59){const _0x1272af=_0x1f4b0c['getFirstRange']();if(_0xf66e59['isEqual'](_0x1272af))_0x1f4b0c['removeMarkers']();else{if(_0x1272af['containsRange'](_0xf66e59)){const _0xe9b4e2=this['_model']['createPositionAt'](_0xf66e59['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f4b0c,this['_model']['createRange'](_0x1272af['start'],_0xe9b4e2));const _0x431615=_0x249608(),_0x2a3ffb=_0x1f4b0c['creator']['id'],_0xd2f48=_0x1f4b0c['type']+':'+_0x1f4b0c['subType'];this['_setSuggestionData']({'id':_0x431615,'type':_0xd2f48,'createdAt':new Date(),'authorId':_0x2a3ffb,'data':_0x1f4b0c['data'],'attributes':_0x1f4b0c['attributes']});const _0x49791f=this['_model']['createPositionAt'](_0xf66e59['end']['parent'],'after'),_0x443253=this['_model']['createRange'](_0x49791f,_0x1272af['end']);this['_addSuggestionMarker'](_0xd2f48,_0x431615,_0x2a3ffb,_0x443253);}else{if(_0x1272af['containsPosition'](_0xf66e59['start'])){const _0x6aecb7=this['_model']['createPositionAt'](_0xf66e59['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f4b0c,this['_model']['createRange'](_0x1272af['start'],_0x6aecb7));}else{const _0x25d478=this['_model']['createPositionAt'](_0xf66e59['end']['parent'],'after');this['_setSuggestionRange'](_0x1f4b0c,this['_model']['createRange'](_0x25d478,_0x1272af['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x203bcb){for(const {suggestion:_0x5e86d9,meta:_0x435471}of this['_findSuggestions'](_0x203bcb,'insertion')){if(!_0x435471['isOwn'])continue;const _0x1a3878=_0x5e86d9['getRanges']();for(const _0x201ad2 of _0x1a3878)if(!_0x203bcb['getDifference'](_0x201ad2)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2b775f){const _0xf44c4d=this['editor']['plugins']['get']('Users')['getUser'](_0x2b775f);if(!_0xf44c4d)throw new _0x3ea53d('track-changes-user-not-found',this);return _0xf44c4d;}['_getExternalAuthor'](_0x41efd0){const _0x23da73=this['editor']['plugins']['get']('Users'),_0x1b4b6b=_0x4cbba9('external:'+_0x41efd0),_0x11373a=_0x23da73['getUser'](_0x1b4b6b);return _0x11373a||_0x23da73['addUser']({'id':_0x1b4b6b,'name':_0x41efd0});}['_createSuggestion'](_0x98617f,_0x50fdb2,_0x2b950a,_0x4bb7e7,_0x35ecb9){const _0x35c000=this['_getAuthorFromId'](_0x4bb7e7),_0x49ad91=this['_suggestionFactory']['buildSuggestion'](_0x98617f,_0x50fdb2,_0x2b950a,_0x35c000,_0x35ecb9,_0x10f41c=>{this['_updateSuggestionData'](_0x2b950a,{'attributes':_0x10f41c});const _0x10bf3a=this['getSuggestion'](_0x2b950a);this['_joinWithAdjacentSuggestions'](new Set([_0x10bf3a])),this['_refreshSuggestionsChain'](new Set([_0x10bf3a]));});return this['listenTo'](_0x49ad91,'accept',()=>{this['_updateSuggestionData'](_0x2b950a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x49ad91,'discard',()=>{this['_updateSuggestionData'](_0x2b950a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2b950a,_0x49ad91),this['_suggestionState']['set'](_0x49ad91,'notReady'),_0x49ad91;}['_splitMarkerName'](_0x3b995d){const _0x14cb68=_0x3b995d['split'](':');return{'group':_0x14cb68[0x0],'type':_0x14cb68[0x1],'subType':_0x14cb68['length']>=0x5?_0x14cb68[0x2]:null,'id':_0x14cb68['length']<0x5?_0x14cb68[0x2]:_0x14cb68[0x3],'authorId':_0x14cb68['length']<0x5?_0x14cb68[0x3]:_0x14cb68[0x4],'markerCount':0x6==_0x14cb68['length']?_0x14cb68[0x5]:null};}['_breakSuggestionMarker'](_0x523c9f,_0x568a93,_0x3f8b2a){const _0x3ba927=_0x523c9f['getFirstRange'](),_0x49513e=_0x3ba927['start'],_0x584a70=_0x3ba927['end'];this['_setSuggestionRange'](_0x523c9f,this['_model']['createRange'](_0x49513e,_0x568a93));const _0x4dedc2=_0x249608(),_0x3ce7b6=_0x523c9f['creator']['id'],_0x20c623=_0x523c9f['type']+(_0x523c9f['subType']?':'+_0x523c9f['subType']:'');this['_setSuggestionData']({'id':_0x4dedc2,'type':_0x20c623,'createdAt':new Date(),'authorId':_0x3ce7b6,'originalSuggestionId':_0x523c9f['id'],'attributes':_0x523c9f['attributes'],'data':_0x523c9f['data']});const _0x36578a=this['_getAttributeKey'](_0x523c9f);('formatBlock'==_0x523c9f['type']||_0x36578a&&this['_isBlockAttribute'](_0x36578a))&&(_0x3f8b2a=this['_model']['createPositionBefore'](_0x3f8b2a['parent'])),this['_addSuggestionMarker'](_0x20c623,_0x4dedc2,_0x3ce7b6,this['_model']['createRange'](_0x3f8b2a,_0x584a70));}['_findSuggestions'](_0x4783b5,_0x1bc072=null){const _0x3d84b8=[],_0xb8a7cc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4783b5)||(_0x4783b5=[_0x4783b5]);for(const _0x2c34e5 of this['getSuggestions']()){if(!_0x2c34e5['isInContent'])continue;if(_0x1bc072&&_0x2c34e5['type']!=_0x1bc072)continue;let _0x515ba8=!0x1;for(const _0x52b99a of _0x2c34e5['getRanges']()){for(const _0x2f78c8 of _0x4783b5){const _0x5c5071=_0x2f78c8['start']['isEqual'](_0x52b99a['end'])||_0x2f78c8['end']['isEqual'](_0x52b99a['start']);if(_0x5c5071||_0x2f78c8['getIntersection'](_0x52b99a)){const _0x19a10c=_0x2f78c8['containsRange'](_0x52b99a)&&Rt(this['_model']['schema'],_0x52b99a['start'],_0x2f78c8),_0x5a3333=_0x52b99a['containsRange'](_0x2f78c8)&&Rt(this['_model']['schema'],_0x2f78c8['start'],_0x52b99a);_0x3d84b8['push']({'suggestion':_0x2c34e5,'meta':{'isOwn':_0xb8a7cc==_0x2c34e5['author'],'isNextTo':_0x5c5071,'isInsideObject':_0x19a10c,'containsRangeInObject':_0x5a3333}}),_0x515ba8=!0x0;break;}}if(_0x515ba8)break;}}return _0x3d84b8;}['_addSuggestionMarker'](_0x1d33d8,_0x9f84b3,_0x5a8c17,_0x105699,_0x308d3a){this['_model']['change'](_0x14a813=>{let _0x3c4d41='suggestion:'+_0x1d33d8+':'+_0x9f84b3+':'+_0x5a8c17;_0x308d3a&&(_0x3c4d41=_0x3c4d41+':'+_0x308d3a),_0x14a813['addMarker'](_0x3c4d41,{'range':_0x105699,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1c3d31){const _0x9d6de9=_0x1c3d31['previous'],_0x8f7f6=_0x1c3d31['next'];_0x1c3d31['previous']=null,_0x1c3d31['next']=null,null!=_0x9d6de9&&_0x9d6de9['next']==_0x1c3d31&&(_0x9d6de9['next']=_0x8f7f6),null!=_0x8f7f6&&_0x8f7f6['previous']==_0x1c3d31&&(_0x8f7f6['previous']=_0x9d6de9),'ready'==this['_suggestionState']['get'](_0x1c3d31)&&(this['_suggestionState']['set'](_0x1c3d31,'removed'),this['fire']('suggestionUnloaded',_0x1c3d31,_0x9d6de9,_0x8f7f6));}['_setSuggestionData'](_0x3cbe0f){const _0x5d6016=_0x3cbe0f['id'],_0x537e00=this['addSuggestionData'](_0x3cbe0f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3ec952=this['editor']['plugins']['get']('PendingActions'),_0xb1920b=_0x537e00['hasComments'],_0x2ed6ee=_0x537e00['subType']?_0x537e00['type']+':'+_0x537e00['subType']:_0x537e00['type'],_0x43af98=this['editor']['locale'],_0x2d6b81=_0x3ec952['add'](o(_0x43af98,'PENDING_ACTION_SUGGESTION')),_0x2c9509={'id':_0x5d6016,'type':_0x2ed6ee,'hasComments':_0xb1920b,'data':_0x3cbe0f['data']||null,'originalSuggestionId':_0x3cbe0f['originalSuggestionId']||null,'attributes':_0x537e00['attributes']};this['_adapter']['addSuggestion'](_0x2c9509)['then'](_0x333edf=>{_0x537e00['_saved']=!0x0,_0x3ec952['remove'](_0x2d6b81),_0x333edf&&_0x333edf['createdAt']&&(this['_suggestions']['get'](_0x5d6016)['createdAt']=_0x333edf['createdAt']);})['catch'](_0x34bfe9=>{throw _0x2990fd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x537e00['discard']();}),_0x537e00['stopListening'](),this['_suggestions']['delete'](_0x537e00['id']),this['_suggestionState']['delete'](_0x537e00),_0x34bfe9;});}return _0x537e00;}['_isBlockAttribute'](_0x5b8be0){return this['_blockAttributeKeys']['has'](_0x5b8be0);}['_updateSuggestionData'](_0x1c0469,_0x33a2bf){const _0x3856ac=this['editor']['plugins']['get']('PendingActions'),_0x5e1590=this['getSuggestion'](_0x1c0469);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5e1590['_saved']){const _0x21e51b=_0x3856ac['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1c0469,_0x33a2bf)['then'](()=>{_0x3856ac['remove'](_0x21e51b);});}else _0x5e1590['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1c0469,_0x33a2bf);});}}['_getSuggestionData'](_0xe1467b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3ea53d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xe1467b);}['_handleNewSuggestionMarker'](_0x46a391){const {id:_0x239265,type:_0xb3263f,subType:_0x2e6ae4,authorId:_0x4de109}=this['_splitMarkerName'](_0x46a391),_0x196820=this['_suggestions']['get'](_0x239265)||this['_createSuggestion'](_0xb3263f,_0x2e6ae4,_0x239265,_0x4de109,{});switch(this['_checkSuggestionCorrectness'](_0x196820,_0xb3263f,_0x2e6ae4,_0x4de109),this['_suggestionState']['get'](_0x196820)){case'notReady':this['_getSuggestionData'](_0x239265)['then'](_0x11fb80=>{let _0x3c47e1=Promise['resolve']();_0x11fb80['hasComments']&&(_0x3c47e1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x239265})),_0x3c47e1['then'](()=>{this['addSuggestionData'](_0x11fb80)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x196820,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x239265,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x196820,'ready'),this['fire']('suggestionLoaded',_0x196820);break;case'ready':this['fire']('suggestionChanged',_0x196820);}return _0x196820['addMarkerName'](_0x46a391),_0x196820;}['_refreshSuggestionsChain'](_0x3e07b5){const _0x5c7cd8=Array['from'](_0x3e07b5),_0x2765ab=_0x5c7cd8['filter'](_0x44ebd1=>'attribute'==_0x44ebd1['type']);this['_refreshAttributeSuggestionsChain'](_0x2765ab);const _0x3cf8c5=_0x5c7cd8['filter'](_0xe637e9=>!_0xe637e9['isMultiRange']&&'attribute'!=_0xe637e9['type']),_0x5570b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x341bef=>!_0x341bef['isMultiRange']&&'attribute'!=_0x341bef['type']),_0x262594=_0x5570b8['filter'](_0x4115c2=>!_0x3e07b5['has'](_0x4115c2)),_0x5171e7=new Map(_0x5570b8['map'](_0x244b0f=>[_0x244b0f,this['_suggestionFactory']['getSuggestionCallback'](_0x244b0f['type'],_0x244b0f['subType'],'chain')])),_0x51475b=new Map(_0x5570b8['map'](_0x4cbe12=>[_0x4cbe12,_0x4cbe12['getFirstRange']()])),_0x3f55d6=new Set(),_0x20d04b=new Set();for(let _0x4c8b74=0x0;_0x4c8b74<_0x3cf8c5['length'];_0x4c8b74++)_0xd0e7a3(_0x3cf8c5[_0x4c8b74],_0x3cf8c5,_0x4c8b74+0x1);for(let _0x45bf6b=0x0;_0x45bf6b<_0x3cf8c5['length'];_0x45bf6b++)_0xd0e7a3(_0x3cf8c5[_0x45bf6b],_0x262594,0x0);const _0x569096=new Set();for(let _0x35a708=0x0;_0x35a708<_0x3cf8c5['length'];_0x35a708++){const _0x41a196=_0x3cf8c5[_0x35a708];!_0x20d04b['has'](_0x41a196)&&_0x41a196['previous']&&(_0x569096['add'](_0x41a196['previous']),_0x41a196['previous']['next']===_0x41a196&&(_0x41a196['previous']['next']=null),_0x41a196['previous']=null),!_0x3f55d6['has'](_0x41a196)&&_0x41a196['next']&&(_0x569096['add'](_0x41a196['next']),_0x41a196['next']['previous']===_0x41a196&&(_0x41a196['next']['previous']=null),_0x41a196['next']=null);}function _0xd0e7a3(_0x9375ac,_0x2250eb,_0x4415c3){for(let _0xe87311=_0x4415c3;_0xe87311<_0x2250eb['length'];_0xe87311++){const _0x2d3b54=_0x24224c(_0x9375ac,_0x2250eb[_0xe87311]);_0x2d3b54&&(_0x2d3b54[0x0]['next']=_0x2d3b54[0x1],_0x2d3b54[0x1]['previous']=_0x2d3b54[0x0],_0x3f55d6['add'](_0x2d3b54[0x0]),_0x20d04b['add'](_0x2d3b54[0x1]));}}function _0x24224c(_0x57f92f,_0x4470b6){if(_0x57f92f['author']['id']!==_0x4470b6['author']['id'])return null;const _0x279b30=_0x5171e7['get'](_0x57f92f)(_0x57f92f,_0x4470b6,_0x51475b['get'](_0x57f92f),_0x51475b['get'](_0x4470b6));if(!_0x279b30)return null;return _0x5171e7['get'](_0x4470b6)(_0x57f92f,_0x4470b6,_0x51475b['get'](_0x57f92f),_0x51475b['get'](_0x4470b6))?_0x279b30[0x1]['commentThread']&&_0x279b30[0x1]['commentThread']['length']?null:_0x279b30:null;}_0x569096['size']&&this['_refreshSuggestionsChain'](_0x569096);}['_refreshAttributeSuggestionsChain'](_0x1d71d2){if(0x0==_0x1d71d2['length'])return;const _0x4d0123=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d0c63=>'attribute'==_0x1d0c63['type']&&_0x1d0c63['_isDataLoaded']),_0x41f0fd=[],_0x2d0364=new Map();for(const _0x1d0fe7 of _0x4d0123){const _0x274c8b=_0x4cbba9(_0x1d0fe7['attributes']);_0x2d0364['has'](_0x274c8b)||(_0x2d0364['set'](_0x274c8b,_0x41f0fd['length']),_0x41f0fd['push']([]));const _0x21c1a5=_0x2d0364['get'](_0x274c8b);_0x41f0fd[_0x21c1a5]['push'](_0x1d0fe7);}!(function(){_0x41f0fd['sort']((_0x4c9bf0,_0x65060d)=>{const _0x3203fb=_0x4c9bf0[0x0]['createdAt'],_0x335a51=_0x65060d[0x0]['createdAt'];return _0x3203fb==_0x335a51?_0x4c9bf0[0x0]['attributes']['groupId']<_0x65060d[0x0]['attributes']['groupId']?-0x1:0x1:_0x3203fb<_0x335a51?-0x1:0x1;});for(const _0x304c7d of _0x41f0fd)_0x304c7d['sort']((_0xb8266e,_0x540812)=>_0xb8266e['id']<_0x540812['id']?-0x1:0x1);}());for(let _0x101c42=0x0;_0x101c42<_0x41f0fd['length'];_0x101c42++){if(0x0==_0x41f0fd[_0x101c42]['length'])continue;const _0x590f67=[];for(let _0x35af08=_0x101c42+0x1;_0x35af08<_0x41f0fd['length'];_0x35af08++)0x0!=_0x41f0fd[_0x35af08]['length']&&_0xde3ab4(_0x41f0fd[_0x101c42],_0x41f0fd[_0x35af08])&&_0x590f67['push'](_0x35af08);for(const _0x61ae27 of _0x590f67)_0x41f0fd[_0x101c42]=_0x41f0fd[_0x101c42]['concat'](_0x41f0fd[_0x61ae27]),_0x41f0fd[_0x61ae27]=[];}for(const _0x3e363f of _0x41f0fd)for(let _0x53d8c6=0x0;_0x53d8c6<_0x3e363f['length'];_0x53d8c6++)_0x3e363f[_0x53d8c6]['next']=_0x3e363f[_0x53d8c6+0x1]||null;for(const _0x4cfb5e of _0x41f0fd)for(let _0x2e542c=0x0;_0x2e542c<_0x4cfb5e['length'];_0x2e542c++)_0x4cfb5e[_0x2e542c]['previous']=_0x4cfb5e[_0x2e542c-0x1]||null;function _0xde3ab4(_0x26bf34,_0x4598d5){if(_0x26bf34[0x0]['attributes']['groupId']!==_0x4598d5[0x0]['attributes']['groupId']&&_0x26bf34[0x0]['author']!==_0x4598d5[0x0]['author'])return!0x1;if(!function(_0x38b166,_0x496f1f){if(!_0x38b166['hasComments']&&!_0x496f1f['hasComments'])return!0x0;if(_0x38b166['hasComments']&&_0x496f1f['hasComments'])return!0x1;if(_0x38b166['hasComments']&&_0x496f1f['createdAt']<_0x38b166['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x496f1f['hasComments']&&_0x38b166['createdAt']<_0x496f1f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x26bf34[0x0],_0x4598d5[0x0]))return!0x1;const _0x26cb96=Bt(_0x26bf34[0x0]['attributes'],'groupId'),_0xa59721=Bt(_0x4598d5[0x0]['attributes'],'groupId');if(!_0x37ffe1(_0x26cb96,_0xa59721))return!0x1;return!!_0x26bf34['every'](_0x312b8f=>_0x4598d5['some'](_0x21fb43=>_0x312b8f['getFirstRange']()['isEqual'](_0x21fb43['getFirstRange']())))&&_0x4598d5['every'](_0x25cf42=>_0x26bf34['some'](_0x10507a=>_0x25cf42['getFirstRange']()['isEqual'](_0x10507a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6d3596){const _0x3340f7=Array['from'](_0x6d3596),_0x5cb0c8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x53a8f4=_0x5cb0c8['filter'](_0x350ae2=>!_0x6d3596['has'](_0x350ae2)),_0x83702f=new Map(_0x3340f7['map'](_0x1bb940=>[_0x1bb940,this['_suggestionFactory']['getSuggestionCallback'](_0x1bb940['type'],_0x1bb940['subType'],'join')])),_0x5070e4=new Map(_0x5cb0c8['map'](_0x335f4d=>[_0x335f4d,_0x335f4d['getRanges']()]));for(let _0x536f49=0x0;_0x536f49<_0x3340f7['length'];_0x536f49++){if(_0x12cc1e(this,_0x3340f7[_0x536f49],_0x3340f7,_0x536f49+0x1))return!0x0;}for(let _0x1cf57d=0x0;_0x1cf57d<_0x3340f7['length'];_0x1cf57d++){if(_0x12cc1e(this,_0x3340f7[_0x1cf57d],_0x53a8f4,0x0))return!0x0;}return!0x1;function _0x12cc1e(_0x4dbe5b,_0x2de05a,_0x36455e,_0xa6fdcc){for(let _0x13c5f0=_0xa6fdcc;_0x13c5f0<_0x36455e['length'];_0x13c5f0++){const _0x34b9e7=_0x36455e[_0x13c5f0];if(_0x34b9e7['type']!==_0x2de05a['type']||_0x34b9e7['author']['id']!==_0x2de05a['author']['id']||_0x34b9e7['subType']!==_0x2de05a['subType'])continue;if(!Pt(_0x2de05a,_0x34b9e7,['groupId']))continue;if('attribute'==_0x2de05a['type']&&_0x2de05a['data']['oldValue']!=_0x34b9e7['data']['oldValue'])continue;if('attribute'==_0x2de05a['type']&&_0x4dbe5b['_isBlockAttribute'](_0x2de05a['data']['key']))continue;if('formatBlock'==_0x2de05a['type']){const _0x4f33c0=_0x4dbe5b['editor']['model'],_0x92b572=_0x2de05a['getContainedElement']();if(_0x92b572&&(_0x4f33c0['schema']['isObject'](_0x92b572)||_0x4f33c0['schema']['isLimit'](_0x92b572)))continue;}const _0x2bf674=_0x83702f['get'](_0x2de05a),_0x5beaa3=_0x5070e4['get'](_0x2de05a),_0x54dd77=_0x5070e4['get'](_0x34b9e7),_0x4bacc8=_0x2de05a['commentThread']&&_0x2de05a['commentThread']['length'],_0xd6e6d8=_0x34b9e7['commentThread']&&_0x34b9e7['commentThread']['length'];if(!_0x4bacc8&&_0x2bf674(_0x54dd77,_0x5beaa3))return _0x4dbe5b['_joinSuggestions'](_0x34b9e7,_0x2de05a),_0x5070e4['delete'](_0x2de05a),!0x0;if(!_0xd6e6d8&&_0x2bf674(_0x5beaa3,_0x54dd77))return _0x4dbe5b['_joinSuggestions'](_0x2de05a,_0x34b9e7),_0x5070e4['delete'](_0x34b9e7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x13696c,_0x484ae9){if(_0x13696c['isMultiRange']){for(const _0x433308 of _0x484ae9['getRanges']())_0x13696c['addRange'](_0x433308);}else{const _0x235424=_0x484ae9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x13696c,this['_model']['createRange'](_0x13696c['getFirstRange']()['start'],_0x235424));}_0x484ae9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5b3b01,_0x511c91){const _0x11fd54=_0x5b3b01['startsWith']('format')||_0x5b3b01['startsWith']('attribute')?'FORMATTING':_0x5b3b01['toUpperCase']();return o(this['editor']['locale'],_0x511c91+'_'+_0x11fd54+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x366a44=this['editor'];if(!_0x366a44['ui'])return;const {ariaLiveAnnouncer:_0x4313c1}=_0x366a44['ui'];_0x3d4169(this['_model'],({left:_0x3abffd,entered:_0x16e694})=>{for(const _0x297a4c of _0x3abffd){const {group:_0x57e162,type:_0x4a920a}=this['_splitMarkerName'](_0x297a4c['name']);if('suggestion'===_0x57e162){_0x4313c1['announce'](this['_getMarkerAnnouncementText'](_0x4a920a,'LEAVE'));break;}}for(const _0x26c391 of _0x16e694){const {group:_0x56826d,type:_0x43cfcb}=this['_splitMarkerName'](_0x26c391['name']);if('suggestion'===_0x56826d){_0x4313c1['announce'](this['_getMarkerAnnouncementText'](_0x43cfcb,'ENTER'));break;}}});}['_processAttributeChanges'](_0x55bb23){if(this['_recordAttributeSuggestions'])return!0x1;const _0x13d407=this['editor'],_0x527ed1=_0x13d407['model']['document']['differ']['getChanges']();if(0x0==_0x527ed1['length'])return!0x1;const _0x673e97=[],_0x1b7213=_0x527ed1['filter'](_0xaa38d7=>'attribute'==_0xaa38d7['type']),_0x5783a0=_0x527ed1['filter'](_0x393724=>'insert'==_0x393724['type']&&'$text'!=_0x393724['name']),_0x306346=_0x527ed1['filter'](_0x1048fb=>'remove'==_0x1048fb['type']&&'$text'!=_0x1048fb['name']);for(const _0x3b7462 of _0x1b7213)_0x673e97['push']({'key':_0x3b7462['attributeKey'],'newValue':_0x3b7462['attributeNewValue'],'oldValue':_0x3b7462['attributeOldValue'],'range':Ot(_0x3b7462['range'],_0x13d407['model'])});for(const _0x11513a of _0x5783a0){const _0x2a20b8=_0x306346['find'](_0x5b9695=>_0x5b9695['position']['isEqual'](_0x11513a['position']));_0x2a20b8&&_0x673e97['push']({'key':m,'newValue':_0x11513a['name'],'oldValue':_0x2a20b8['name'],'range':_0x13d407['model']['createRangeOn'](_0x11513a['position']['nodeAfter'])});}return 0x0!=_0x673e97['length']&&this['_reduceExistingSuggestions'](_0x55bb23,_0x673e97);}['_processAttributeSuggestions'](_0x3ff632){let _0x4d772e=!0x1;const _0x426bd7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x105f5b=>_0x105f5b['data']['newRange']&&_0x105f5b['name']['startsWith']('suggestion:attribute:'));for(const _0x424e2b of _0x426bd7){const {subType:_0x1be88f,id:_0x23de45}=this['_splitMarkerName'](_0x424e2b['name']),_0x17ad60=_0x1be88f['split']('|')[0x0];for(const _0x504d6f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x504d6f['id']!=_0x23de45&&'attribute'==_0x504d6f['type']&&_0x504d6f['data']&&_0x504d6f['data']['key']==_0x17ad60&&_0x504d6f['getFirstRange']()['isIntersecting'](_0x424e2b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x504d6f,_0x424e2b['data']['newRange'],_0x3ff632),_0x4d772e=!0x0);}return _0x4d772e;}['_recordAttributeChanges'](_0x3ddd4e){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3ddd4e();}['_isRegisteredAttribute'](_0x56b3c1){const _0x3287b5=this['_isBlockAttribute'](_0x56b3c1),_0x5e5639=this['_inlineAttributeKeys']['has'](_0x56b3c1);return _0x3287b5||_0x5e5639;}['_reduceExistingSuggestions'](_0x3fd565,_0x515832){if(0x0==_0x515832['length'])return!0x1;let _0x59353c=!0x1;for(const _0x515d08 of _0x515832){const _0x1b8aba=this['_findSuggestions'](_0x515d08['range'],'attribute')['filter'](_0x15c50b=>!_0x15c50b['meta']['isNextTo'])['map'](_0x68426f=>_0x68426f['suggestion']),_0x4b4103=_0x4cbba9({'newValue':_0x515d08['newValue']});_0x1b8aba['filter'](_0x52a018=>{const [_0x2c1459,_0x464b3b]=_0x52a018['subType']['split']('|');return _0x2c1459==_0x515d08['key']&&_0x464b3b!=_0x4b4103;})['forEach'](_0x9f9566=>{this['_reduceSuggestionAttributeRange'](_0x9f9566,_0x515d08['range'],_0x3fd565),_0x59353c=!0x0;});}return _0x59353c;}['_reduceSuggestionAttributeRange'](_0x1521de,_0x57f0d6,_0x12fceb){const _0x8946d5=_0x1521de['getFirstRange']()['getDifference'](_0x57f0d6);0x0!==_0x8946d5['length']?0x1!==_0x8946d5['length']?this['_breakSuggestionMarker'](_0x1521de,_0x57f0d6['start'],_0x57f0d6['end']):this['_setSuggestionRange'](_0x1521de,_0x8946d5[0x0]):_0x12fceb['removeMarker'](_0x1521de['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x47e947){this['_editor']=_0x47e947,this['_model']=_0x47e947['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x26a2aa,_0x3c6018,_0x4ff662,_0x4dd138,_0x5aca0b,_0x3136bb){return new u(this['_model'],{'type':_0x26a2aa,'subType':_0x3c6018,'id':_0x4ff662,'author':_0x4dd138,'creator':_0x4dd138,'attributes':_0x5aca0b,'onAttributesChange':_0x3136bb,'onAccept':(..._0x89ea16)=>this['getSuggestionCallback'](_0x26a2aa,_0x3c6018,'accept')(..._0x89ea16),'onDiscard':(..._0xf4839d)=>this['getSuggestionCallback'](_0x26a2aa,_0x3c6018,'discard')(..._0xf4839d)});}['registerCustomCallback'](_0x36f9b2,_0x831959,_0x558f3f,_0x532a3d){const _0x51d466=_0x36f9b2+':'+_0x831959+':'+_0x558f3f;this['_customCallbacks']['set'](_0x51d466,_0x532a3d);}['getSuggestionCallback'](_0x1bce5b,_0x3359df,_0x5b3763){const _0x4db5e0=_0x1bce5b+':'+_0x3359df+':'+_0x5b3763;return this['_customCallbacks']['get'](_0x4db5e0)||this['_defaultCallbacks']['get'](_0x1bce5b+':'+_0x5b3763);}['_registerDefaultCallbacks'](){const _0x4bfe81=()=>!0x1,_0x2f5ac6=_0x2aceda=>{_0x2aceda['sort']((_0x445679,_0x30bfbe)=>_0x445679['start']['isBefore'](_0x30bfbe['start'])?0x1:-0x1),this['_model']['change'](_0x5d9ded=>{for(const _0x3e23e8 of _0x2aceda){let _0x2747ae;_0x2747ae=_0x3e23e8['end']['isAtEnd']&&_0x3e23e8['end']['parent']==_0x3e23e8['start']['nodeAfter']?_0x5d9ded['createSelection'](_0x3e23e8['start']['nodeAfter'],'on'):_0x5d9ded['createSelection'](_0x3e23e8),this['_model']['deleteContent'](_0x2747ae,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5def2f=(_0x5a8eef,_0x4b16a2)=>{_0x4b16a2&&this['_model']['change'](_0x4879c2=>{const {commandName:_0x3cb3e8,commandParams:_0x1801a1=[]}=_0x4b16a2,_0x2e8f75=_0x5a8eef['map'](_0x57244f=>(Tt(_0x57244f)&&(_0x57244f=this['_model']['createRange'](_0x57244f['end'])),_0x57244f))['filter'](_0x3522f7=>'$graveyard'!==_0x3522f7['root']['rootName']);if(_0x2e8f75['length']<0x1)return;const _0x21613f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2c9448=>_0x216293['fromRange'](_0x2c9448));_0x4879c2['setSelection'](_0x2e8f75);for(const _0xc07dcf of this['_editor']['commands']['commands']())_0xc07dcf['refresh']();_0x1801a1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3cb3e8,..._0x1801a1);const _0x52ae2f=_0x21613f['filter'](_0x10fb40=>'$graveyard'!=_0x10fb40['root']['rootName']);_0x52ae2f['length']>0x0&&_0x4879c2['setSelection'](_0x52ae2f);for(const _0xdbd5f5 of _0x21613f)_0xdbd5f5['detach']();});},_0x2221de=(_0x496d03,_0x104b8e)=>0x1==_0x496d03['length']&&0x1==_0x104b8e['length']&&_0x496d03[0x0]['end']['isEqual'](_0x104b8e[0x0]['start']),_0x23d949=(_0xd2dd7f,_0x5ad890,_0x3679b1,_0x2df2bc)=>Gt(_0xd2dd7f,_0x5ad890,_0x3679b1,_0x2df2bc,this['_model'])?[_0xd2dd7f,_0x5ad890]:Gt(_0x5ad890,_0xd2dd7f,_0x2df2bc,_0x3679b1,this['_model'])?[_0x5ad890,_0xd2dd7f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4bfe81),this['_defaultCallbacks']['set']('insertion:discard',_0x2f5ac6),this['_defaultCallbacks']['set']('insertion:join',_0x2221de),this['_defaultCallbacks']['set']('insertion:chain',_0x23d949),this['_defaultCallbacks']['set']('deletion:accept',_0x2f5ac6),this['_defaultCallbacks']['set']('deletion:discard',_0x4bfe81),this['_defaultCallbacks']['set']('deletion:join',_0x2221de),this['_defaultCallbacks']['set']('deletion:chain',_0x23d949),this['_defaultCallbacks']['set']('formatInline:accept',_0x5def2f),this['_defaultCallbacks']['set']('formatInline:discard',_0x4bfe81),this['_defaultCallbacks']['set']('formatInline:join',_0x2221de),this['_defaultCallbacks']['set']('formatInline:chain',_0x4bfe81),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5def2f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4bfe81),this['_defaultCallbacks']['set']('formatBlock:join',_0x2221de),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4bfe81),this['_defaultCallbacks']['set']('attribute:accept',_0x4bfe81),this['_defaultCallbacks']['set']('attribute:discard',(_0x18d4a2,_0x28670a)=>{if(!_0x28670a)return;const _0x1cd73b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1cb69=>{if(_0x28670a['key']==m)for(const _0x1b7851 of _0x18d4a2){const _0x274634=_0x1b7851['start']['nodeAfter'],_0xaefb22=_0x28670a['oldValue'];_0x1cb69['rename'](_0x274634,_0xaefb22);}else{if(_0x1cd73b['_isBlockAttribute'](_0x28670a['key'])){for(const _0x15840d of _0x18d4a2)void 0x0!==_0x28670a['oldValue']?_0x1cb69['setAttribute'](_0x28670a['key'],_0x28670a['oldValue'],_0x15840d['start']['nodeAfter']):_0x1cb69['removeAttribute'](_0x28670a['key'],_0x15840d['start']['nodeAfter']);}else{for(const _0x3e3098 of _0x18d4a2)_0x28670a['oldValue']?_0x1cb69['setAttribute'](_0x28670a['key'],_0x28670a['oldValue'],_0x3e3098):_0x1cb69['removeAttribute'](_0x28670a['key'],_0x3e3098);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2221de);}}function Rt(_0x32b79a,_0x4512dd,_0x2bc91d){for(const _0xebc058 of _0x4512dd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xebc058['root']==_0xebc058)return!0x1;if(!_0x2bc91d['containsItem'](_0xebc058))return!0x1;if(_0x32b79a['isObject'](_0xebc058)||_0x32b79a['isLimit'](_0xebc058))return!0x0;}return!0x1;}function Tt(_0x5aa29e){return _0x5aa29e['end']['parent']==_0x5aa29e['start']['nodeAfter']&&_0x5aa29e['end']['isAtStart'];}function Et(_0x2598c3,_0x2e4d8c,_0x30718c,_0x505b95){const _0x59c179=_0x5e4ea1=>!_0x5e4ea1['item']['is']('$textProxy')&&!_0x505b95['isObject'](_0x5e4ea1['item']),_0xd442db=_0x2598c3['start']['getLastMatchingPosition'](_0x59c179),_0x1caa3a=_0x2598c3['end']['getLastMatchingPosition'](_0x59c179,{'direction':'backward'});return(!_0x2598c3['start']['isEqual'](_0xd442db)||!_0x2598c3['end']['isEqual'](_0x1caa3a))&&(_0xd442db['isBefore'](_0x1caa3a)?_0x30718c['updateMarker'](_0x2e4d8c,{'range':_0x30718c['createRange'](_0xd442db,_0x1caa3a)}):_0x30718c['removeMarker'](_0x2e4d8c),!0x0);}function Vt(_0x181e91){return _0x4cbba9(_0x181e91);}function Ut(_0x326b6b){const _0x3ecb71=_0x326b6b['start']['nodeAfter'];return _0x3ecb71&&_0x3ecb71['is']('element');}function Ot(_0x197560,_0x5f153a){return null==_0x197560['end']['nodeBefore']&&_0x197560['end']['parent']==_0x197560['start']['nodeAfter']?Ft(_0x197560['start']['nodeAfter'],_0x5f153a):_0x197560;}function Ft(_0x36f682,_0x4bb836){const _0x512ca6=_0x4bb836['schema']['isObject'](_0x36f682)||_0x4bb836['schema']['isSelectable'](_0x36f682);return _0x4bb836['createRange'](_0x4bb836['createPositionAt'](_0x36f682,'before'),_0x512ca6?_0x4bb836['createPositionAfter'](_0x36f682):_0x4bb836['createPositionAt'](_0x36f682,'end'));}function Gt(_0x115e42,_0x5ba2ef,_0x5376c3,_0x13fe24,_0x33fec9){if(!Pt(_0x115e42,_0x5ba2ef))return!0x1;if(_0x5376c3['end']['isEqual'](_0x13fe24['start']))return!0x0;if(_0x115e42['type']!=_0x5ba2ef['type'])return!0x1;if(!_0x5376c3['end']['isTouching'](_0x13fe24['start']))return!0x1;const _0x28750e=_0x33fec9['createRange'](_0x5376c3['end'],_0x13fe24['start'])['getWalker']();for(const _0x56a0ee of _0x28750e)if(['elementStart','elementEnd']['includes'](_0x56a0ee['type'])&&_0x33fec9['schema']['isLimit'](_0x56a0ee['item']))return!0x1;return!0x0;}function Pt(_0x1c8a2b,_0x325816,_0x2e9808=[]){return!(!_0x1c8a2b['_isDataLoaded']||!_0x325816['_isDataLoaded'])&&_0x37ffe1(Bt(_0x1c8a2b['attributes'],_0x2e9808),Bt(_0x325816['attributes'],_0x2e9808));}function Lt(_0x1c38a6,_0x460ad7){const _0x266595=Ht(_0x1c38a6['attributes']),_0x31b448=Ht(_0x460ad7);if(!_0x1c38a6['_isDataLoaded'])return!0x1;for(const _0x299227 of Object['keys'](_0x31b448))if(!_0x37ffe1(_0x266595[_0x299227],_0x31b448[_0x299227]))return!0x1;return!0x0;}function Ht(_0x4fca9d){const _0x392e7f=Object['assign']({},_0x4fca9d);return delete _0x392e7f['skipNestingCheck'],delete _0x392e7f['tablePasteChainId'],_0x392e7f;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2bbc65(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x464c62,_0x5efef4,_0x358559,_0x2658b1){super(),this['model']=_0x5efef4,this['view']=_0x358559,this['commentThreadController']=_0x2658b1,this['_editor']=_0x464c62,this['_acceptCommand']=_0x464c62['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x464c62['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xf58e32,_0x4bc892)=>_0xf58e32||_0x4bc892),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x48da32=>_0x48da32&&this['_editor']['model']['canEditAt'](_0x5efef4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x367084=>_0x367084&&this['_editor']['model']['canEditAt'](_0x5efef4['getRanges']())),this['_pendingAction']=null,_0x358559['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x358559,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x358559,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x358559,'change:isDirty',()=>{_0x358559['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 _0x30b572=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x30b572);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5208bb{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x15fc46,_0x25c324,_0xee9dff,_0x4b661f){super(_0x15fc46),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x25c324['authoredAt']),this['bind']('authoredAt')['to'](_0x25c324),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x25c324,this['_localUser']=_0xee9dff,this['_config']=_0x4b661f,_0x4b661f['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:_0x21cda7}=this['_config'];this['commentsListView']=new _0x21cda7(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',_0xd0816d=>_0xd0816d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1b1481,_0x1f08ed)=>_0x1b1481||!!_0x1f08ed);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5a35f3}=this['_config'],_0x4e4b82=new _0x5a35f3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x8288dc=_0x4e4b82['commentInputView'];return _0x4e4b82['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x8288dc,'value',(_0x576f0a,_0x25d255,_0x332927)=>!!_0x332927||_0x576f0a&&!_0x25d255),_0x8288dc['on']('submit',(_0x54195c,_0x32e342)=>{this['fire']('addComment',_0x32e342),_0x8288dc['editor']['setData']('');}),_0x8288dc['on']('cancel',()=>this['focus']()),_0x8288dc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4e4b82;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x57a124,_0x207b7f,_0x31ba79,_0x2eb020){super(_0x57a124,_0x207b7f,_0x31ba79,_0x2eb020),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x10fb8d=>_0x10fb8d&&_0x10fb8d[0x0]?_0x10fb8d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x472591,_0x29104a)=>{let _0x3eb739='';for(const _0x16a1e9 of _0x472591)_0x3eb739+='<p>'+ds(_0x16a1e9['content'],_0x16a1e9['color'])+'</p>';return _0x29104a?_0x3eb739:_0x428f1d(_0x3eb739,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x57a124,'Accept\x20suggestion'),_0x55c0be['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x57a124,'Discard\x20suggestion'),_0x55c0be['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4889ed(_0x57a124,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5e7672=this['bindTemplate'],_0x55a97d=[{'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':_0x5e7672['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e7672['to']('authoredAt',_0x38830b=>this['_config']['formatDateTime'](_0x38830b))}]}]},{'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']&&_0x55a97d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2828dc={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5e7672['if']('isActive','ck-suggestion-wrapper--active'),_0x5e7672['to']('type',_0x465b88=>'ck-suggestion-'+_0x465b88),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':_0x55a97d}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2828dc['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)),_0x2828dc;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x59a5d2,_0x187eca,_0x93f58f)=>{this['_descriptionElement']['innerHTML']=_0x93f58f;});}['_createButton'](_0x2e8f52,_0x14151d,_0x4282f2,_0xc69a7e,_0x3d72b0){const _0xd187aa=new _0x4b8469(this['locale']);return _0xd187aa['set']({'label':_0x2e8f52,'icon':_0x14151d,'tooltip':!0x0,'tooltipPosition':_0x3d72b0}),_0xd187aa['extendTemplate']({'attributes':{'class':_0x4282f2}}),_0xd187aa['on']('execute',()=>{this['fire'](_0xc69a7e,this['_model']['id']);}),_0xd187aa;}['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(_0x33eaa2,_0x34b1a9){let _0x544c7d='';return _0x544c7d+=_0x33eaa2['split']('*')['map']((_0x297f06,_0x59bae1)=>_0x59bae1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x297f06)+'</span>':us(_0x297f06))['join'](''),_0x34b1a9&&(_0x544c7d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x34b1a9['value']+'\x22\x20title=\x22'+_0x34b1a9['title']+'\x22></span>'),_0x544c7d;}function us(_0x54f698){const _0x93971=document['createElement']('span');return _0x93971['innerText']=_0x54f698,_0x93971['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 _0x3604c0{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x17d150,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x374733){super(_0x374733),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2633a8=this['editor']['config'];_0x2633a8['define']('trackChanges.SuggestionThreadView',ne),_0x2633a8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2633a8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2c963e,_0x19a9f6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x6fb0e8,_0x1a7ac5]of this['_handleControllerBuffer']){const _0x3d9f22=this['_suggestionToController']['has'](_0x6fb0e8);_0x3d9f22||_0x1a7ac5?_0x3d9f22&&_0x1a7ac5&&this['_destroyController'](_0x6fb0e8):this['_initializeController'](_0x6fb0e8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2c963e,_0x19a9f6);}['init'](){const _0x1d185c=this['editor'],_0x31ab29=_0x1d185c['plugins']['get']('TrackChangesEditing'),_0x189245=_0x1d185c['plugins']['get']('Annotations'),_0x19db5e=_0x1d185c['plugins']['get']('EditorAnnotations'),_0x1e82a6=_0x1d185c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x19db5e['addSourceCollector'](()=>{const _0x1b8bff=[];for(const [_0x42199d,_0x19ffaa]of Array['from'](this['_suggestionToController'])){const _0x5b96ae=_0x42199d['getAllAdjacentSuggestions'](),_0x13f6cd=[];for(const _0x59f59e of _0x5b96ae){if(!_0x59f59e['isInContent'])continue;if(_0x59f59e['isMultiRange']){_0x13f6cd['push'](..._0x59f59e['getRanges']());continue;}const _0x1bc715=_0x59f59e['getFirstRange']();if(_0x13f6cd['length']>0x0){const _0x4eba64=_0x13f6cd[0x0]['getJoined'](_0x1bc715);if(_0x4eba64){_0x13f6cd[0x0]=_0x4eba64;continue;}}_0x13f6cd['push'](_0x1bc715);}_0x1b8bff['push']([_0x19ffaa['view'],_0x13f6cd]);}return _0x1b8bff;}),this['listenTo'](_0x31ab29,'suggestionLoaded',(_0x2ffdcd,_0x18b491)=>{this['listenTo'](_0x18b491,'change:previous',(_0x1a95f1,_0x3b46f6,_0x2774a7,_0x367e2b)=>{_0x18b491['isInContent']&&(null==_0x2774a7?(this['_updateController'](_0x367e2b['head']),this['_handleSuggestionControllerDelayed'](_0x18b491,!0x1)):(this['_updateController'](_0x2774a7['head']),null==_0x367e2b&&this['_handleSuggestionControllerDelayed'](_0x18b491,!0x0)));}),null!==_0x18b491['previous']?this['_updateController'](_0x18b491['head']):this['_handleSuggestionControllerDelayed'](_0x18b491,!0x1);}),this['listenTo'](_0x31ab29,'suggestionUnloaded',(_0x14b453,_0xcee8e6,_0x4756f5)=>{this['stopListening'](_0xcee8e6,'change:previous'),this['_handleControllerBuffer']['delete'](_0xcee8e6),this['_suggestionToController']['has'](_0xcee8e6)&&this['_destroyController'](_0xcee8e6),_0x4756f5&&this['_updateController'](_0x4756f5['head']);}),this['listenTo'](_0x31ab29,'suggestionChanged',(_0x3e3832,_0x5de061)=>{this['_updateController'](_0x5de061);}),this['listenTo'](_0x189245,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1e82a6,'addComment',(_0x79e263,{threadId:_0x10a73b,isFromAdapter:_0x2d7ad2})=>{if(_0x2d7ad2||!_0x31ab29['hasSuggestion'](_0x10a73b))return;const _0x4fd507=_0x31ab29['getSuggestion'](_0x10a73b);this['_suggestionToController']['get'](_0x4fd507)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5e9cf7=this['editor']['plugins']['get']('Annotations'),_0x49f976=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d9c36=Array['from'](_0x5e9cf7['activeAnnotations'],_0x1f0859=>_0x1f0859['innerView'])['filter'](_0x2afc4f=>this['_viewToController']['has'](_0x2afc4f)),_0x33604a=[];for(const _0x45efc7 of _0x4d9c36){const _0x138ee0=this['_viewToController']['get'](_0x45efc7)['model']['getAllAdjacentSuggestions']();_0x33604a['push'](..._0x138ee0['reduce']((_0x10db74,_0x42588a)=>[..._0x10db74,..._0x42588a['getMarkerNames']()],[]));}_0x49f976['activeMarkers']=_0x33604a;}['_addUIComponentsToFactory'](){const _0x2a5632=this['editor'],_0xfd2aa7=_0x2a5632['locale'],_0x5f1fd9=o(_0xfd2aa7,'Track\x20changes'),_0x146d7c=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x5f1fd9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xfd2aa7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xfd2aa7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xfd2aa7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xfd2aa7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x23b1d3 of _0x146d7c)if(ae(_0x23b1d3)){const _0x5ad9ac=_0x2a5632['commands']['get'](_0x23b1d3['model']['commandName']);_0x23b1d3['model']['bind']('isOn','isEnabled')['to'](_0x5ad9ac,'value','isEnabled');}_0x2a5632['ui']['componentFactory']['add']('trackChanges',_0x2c874d=>this['_createToolbarButton'](_0x2c874d,_0x146d7c,_0x5f1fd9)),_0x2a5632['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3eb029=>this['_createMenuBarMenu'](_0x3eb029,_0x146d7c,_0x5f1fd9));}['_createToolbarButton'](_0x1013f2,_0x31e014,_0xfff479){const _0x3895b1=zt(_0x1013f2,Zt),_0x26dd2e=this['editor']['commands']['get']('trackChanges');_0x3895b1['buttonView']['set']({'tooltip':_0xfff479,'label':_0xfff479,'icon':ie}),_0x3895b1['buttonView']['bind']('isOn')['to'](_0x26dd2e,'value'),_0x3895b1['buttonView']['on']('execute',()=>{_0x26dd2e['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x3895b1,_0x31e014,{'role':'menu'});const _0x352b5a=[];for(const _0x1a5131 of _0x31e014)ae(_0x1a5131)&&_0x352b5a['push'](this['editor']['commands']['get'](_0x1a5131['model']['commandName']));const _0x191c8d=_0x3895b1['buttonView'];return _0x191c8d['actionView']['unbind']('isEnabled'),_0x191c8d['arrowView']['unbind']('isEnabled'),_0x191c8d['actionView']['bind']('isEnabled')['to'](_0x26dd2e,'isEnabled'),_0x191c8d['arrowView']['bind']('isEnabled')['toMany'](_0x352b5a,'isEnabled',(..._0xe299c4)=>_0xe299c4['some'](_0x5d7d03=>_0x5d7d03)),_0x3895b1['on']('execute',_0x6d1a36=>{this['editor']['execute'](_0x6d1a36['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3895b1;}['_createMenuBarMenu'](_0x275f9e,_0x43a4e4,_0x1be412){const _0x513366=new Kt(_0x275f9e),_0x4350bf=this['editor']['commands']['get']('trackChanges');_0x513366['buttonView']['set']({'label':_0x1be412,'icon':ie});const _0x5cd3f3=new Qt(_0x275f9e);for(const _0x2f0ad9 of _0x43a4e4){if('separator'==_0x2f0ad9['type']){_0x5cd3f3['items']['add'](new Jt(_0x275f9e));continue;}const _0x5de7ad=new Xt(_0x275f9e,_0x513366),_0x1bc67d=new Yt(_0x275f9e),_0x146b94=_0x2f0ad9['model'];_0x1bc67d['bind'](...Object['keys'](_0x146b94))['to'](_0x146b94),_0x1bc67d['delegate']('execute')['to'](_0x513366),_0x1bc67d['on']('execute',()=>{this['editor']['execute'](_0x146b94['commandName']),this['editor']['editing']['view']['focus']();}),_0x5de7ad['children']['add'](_0x1bc67d),_0x5cd3f3['items']['add'](_0x5de7ad);}return _0x513366['bind']('isEnabled')['to'](_0x4350bf,'isEnabled'),_0x513366['panelView']['children']['add'](_0x5cd3f3),_0x513366;}['_initializeController'](_0x182be9){const _0x53603d=this['editor'],_0x2ed8fb=_0x53603d['config'],_0x5a703b=_0x53603d['plugins']['get']('Annotations'),_0x21440f=_0x53603d['plugins']['get']('CommentsRepository'),_0x202e38=_0x53603d['plugins']['get']('EditorAnnotations'),_0x26d390=_0x53603d['plugins']['get'](_0x17d150)['me'],_0x57c38d=_0x2ed8fb['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x2213a9,CommentThreadInputView:_0x2ca1f5}=_0x53603d['plugins']['get']('CommentsUI');let _0x5a162d,_0x226e43;this['_annotationViews']['has'](_0x182be9['id'])?(_0x226e43=this['_annotationViews']['get'](_0x182be9['id']),_0x5a162d=_0x226e43['mainView']):(_0x5a162d=new _0x57c38d(_0x53603d['locale'],_0x182be9,_0x26d390,{'disableComments':this['_disableComments'],'editorConfig':_0x2ed8fb['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2ed8fb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2ed8fb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2ed8fb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x157bed(_0x2ed8fb['get']('locale')),'CommentView':_0x2ed8fb['get']('comments')['CommentView'],'CommentsListView':_0x2213a9,'CommentThreadInputView':_0x2ca1f5}),_0x5a162d['acceptButton']['on']('execute',()=>{_0x53603d['editing']['view']['focus']();}),_0x5a162d['discardButton']['on']('execute',()=>{_0x53603d['editing']['view']['focus']();}),_0x226e43=_0x5a703b['createAnnotationView'](this['editor']['locale'],_0x5a162d),_0x226e43['bind']('isDirty')['to'](_0x5a162d,'isDirty'),_0x226e43['bind']('length')['to'](_0x5a162d),_0x226e43['bind']('type')['to'](_0x5a162d,'type',_0x52a1b8=>'suggestion-'+_0x52a1b8),this['_annotationViews']['set'](_0x182be9['id'],_0x226e43));const _0x324b7b=_0x21440f['createCommentThreadController'](_0x182be9['commentThread'],_0x5a162d),_0x8eb348=new oe(_0x53603d,_0x182be9,_0x5a162d,_0x324b7b),_0x115605=_0x182be9['getAllAdjacentSuggestions']()['filter'](_0x63120d=>_0x63120d['isInContent']);_0x5a162d['descriptionParts']=_0x53603d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x115605),this['_suggestionToController']['set'](_0x182be9,_0x8eb348),this['_viewToController']['set'](_0x5a162d,_0x8eb348);const _0x53921a=_0x5a703b['createAnnotation']({'view':_0x226e43,'target':()=>{const _0x43f7a9=[],_0xb6b1a9=_0x182be9['getAllAdjacentSuggestions']()['filter'](_0x239ffa=>_0x239ffa['isInContent']);for(const _0x31feed of _0xb6b1a9)_0x43f7a9['push'](..._0x31feed['getMarkers']());return _0x469787(_0x53603d['editing'],_0x43f7a9);},'type':()=>'suggestion-'+_0x8eb348['view']['type']});_0x21440f['_bindAnnotationToEditors'](_0x5a162d,_0x53921a),_0x5a703b['add'](_0x53921a),_0x202e38['registerAnnotation'](_0x53921a);}['_destroyController'](_0x3baad1){const _0xbccb58=this['editor']['plugins']['get']('CommentsRepository'),_0x47ba59=this['editor']['plugins']['get']('Annotations'),_0x55d9fc=this['_suggestionToController']['get'](_0x3baad1),_0x729bc7=_0x55d9fc['view'],_0x5596a4=_0x47ba59['getByInnerView'](_0x729bc7);_0xbccb58['_unbindEditors'](_0x729bc7),_0x5596a4&&_0x47ba59['remove'](_0x5596a4),this['_suggestionToController']['delete'](_0x3baad1),this['_viewToController']['delete'](_0x729bc7),_0x55d9fc['destroy']();}['_updateController'](_0x3052d3){if(!_0x3052d3['isInContent']||!this['_suggestionToController']['has'](_0x3052d3))return;const _0x137171=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4050ea=this['_suggestionToController']['get'](_0x3052d3),_0x8597cf=_0x3052d3['getAllAdjacentSuggestions']();_0x4050ea['view']['descriptionParts']=_0x137171['descriptionFactory']['getDescriptions'](_0x8597cf);}['destroy'](){for(const _0x4b43ff of this['_suggestionToController']['keys']())this['_destroyController'](_0x4b43ff);for(const _0x1717d0 of this['_annotationViews']['values']())_0x1717d0['mainView']['destroy']();super['destroy']();}}function ae(_0x25cf43){return'model'in _0x25cf43;}class k extends _0x3604c0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5ac397){this['editor']['plugins']['get'](p)['adapter']=_0x5ac397;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3bade8){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3bade8);}['getSuggestions']({skipNotAttached:_0x1c8404=!0x1,toJSON:_0x51dfb5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1c8404,'toJSON':_0x51dfb5});}['getSuggestion'](_0x3d521b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3d521b);}}const T=['Pagination'];class P extends _0x3604c0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1a66af=this['editor'];if(_0x1a66af['config']['define']('trackChangesData.editorCreator',_0x3cf894=>{const _0x4bd4f1=_0x1a66af['model']['document']['getRootNames']()['reduce']((_0x44ff55,_0x150285)=>(_0x44ff55[_0x150285]='',_0x44ff55),{});return _0x1a66af['constructor']['create'](_0x4bd4f1,_0x3cf894);}),'function'!=typeof _0x1a66af['config']['get']('trackChangesData')['editorCreator'])throw new _0x3ea53d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x144732){return N(this['editor'],!0x0,_0x144732);}['getDataWithDiscardedSuggestions'](_0x5bb585){return N(this['editor'],!0x1,_0x5bb585);}}class D extends _0x3604c0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3262d8){super(_0x3262d8),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(_0x291110){return void 0x0!==_0x291110['getRootsAttributes'];}async function N(_0xace3bc,_0x22017e,_0x4ce451){const _0x3e33c5=_0x153cbc(_0xace3bc,T);_0x3e33c5['plugins']['push'](p,D),_0x3e33c5['rootsAttributes']=v(_0xace3bc)?_0xace3bc['getRootsAttributes']():void 0x0;const _0x448441=document['createDocumentFragment'](),_0xe7d121=_0xace3bc['config']['get']('trackChangesData')['editorCreator'],_0x50d4f6=await _0xe7d121(_0x3e33c5,()=>function(_0x2a2a25){const _0x1ed956=document['createElement']('div');return _0x2a2a25['appendChild'](_0x1ed956),_0x1ed956;}(_0x448441));!function(_0x3ab16e,_0x46406b){const _0x138c3b=_0x3ab16e['model']['document']['getRootNames']()['reduce']((_0x483972,_0x95d9cd)=>(_0x483972[_0x95d9cd]=_0x3ab16e['data']['get']({'rootName':_0x95d9cd}),_0x483972),{}),_0x482a8f=_0x3ab16e['plugins']['get']('Users')['users']['map'](_0x376687=>({'id':_0x376687['id'],'name':_0x376687['name']})),_0x4fe55f=_0x3ab16e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x321637=_0x3ab16e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x372f6a=_0x46406b['plugins']['get']('Users'),_0x10629c=_0x46406b['plugins']['get']('TrackChangesEditing'),_0x1b9f58=_0x46406b['plugins']['get']('CommentsRepository');for(const _0xe0f4b7 of _0x482a8f)_0x372f6a['getUser'](_0xe0f4b7['id'])||_0x372f6a['addUser'](_0xe0f4b7);_0x372f6a['me']||_0x372f6a['useAnonymousUser']();for(const _0x595dfd of _0x4fe55f)_0x10629c['addSuggestionData'](_0x595dfd);for(const _0x32dd8d of _0x321637)_0x1b9f58['addCommentThread'](_0x32dd8d);_0x46406b['data']['set'](_0x138c3b);}(_0xace3bc,_0x50d4f6),_0x50d4f6['execute'](_0x22017e?'acceptAllSuggestions':'discardAllSuggestions');const _0x4a0f5b=v(_0x50d4f6)?_0x50d4f6['getFullData'](_0x4ce451):_0x50d4f6['data']['get'](_0x4ce451);return await _0x50d4f6['destroy'](),_0x4a0f5b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|