@ckeditor/ckeditor5-track-changes 46.0.1-alpha.0 → 46.0.1-alpha.10
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/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.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/bs.js +1 -1
- package/dist/translations/bs.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-ch.js +1 -1
- package/dist/translations/de-ch.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-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.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/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.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/gu.js +1 -1
- package/dist/translations/gu.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/hy.js +1 -1
- package/dist/translations/hy.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/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.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/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.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/oc.js +1 -1
- package/dist/translations/oc.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/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.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/ti.js +1 -1
- package/dist/translations/ti.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/ug.js +1 -1
- package/dist/translations/ug.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/uz.js +1 -1
- package/dist/translations/uz.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/lang/translations/ar.po +16 -16
- package/lang/translations/bg.po +16 -16
- package/lang/translations/bn.po +16 -16
- package/lang/translations/ca.po +16 -16
- package/lang/translations/cs.po +16 -16
- package/lang/translations/da.po +16 -16
- package/lang/translations/de.po +16 -16
- package/lang/translations/el.po +16 -16
- package/lang/translations/es.po +16 -16
- package/lang/translations/et.po +16 -16
- package/lang/translations/fi.po +16 -16
- package/lang/translations/fr.po +16 -16
- package/lang/translations/he.po +16 -16
- package/lang/translations/hi.po +16 -16
- package/lang/translations/hu.po +16 -16
- package/lang/translations/id.po +16 -16
- package/lang/translations/it.po +16 -16
- package/lang/translations/ja.po +16 -16
- package/lang/translations/ko.po +16 -16
- package/lang/translations/lt.po +16 -16
- package/lang/translations/lv.po +16 -16
- package/lang/translations/ms.po +16 -16
- package/lang/translations/nl.po +16 -16
- package/lang/translations/no.po +16 -16
- package/lang/translations/pl.po +16 -16
- package/lang/translations/pt-br.po +16 -16
- package/lang/translations/pt.po +16 -16
- package/lang/translations/ro.po +16 -16
- package/lang/translations/ru.po +16 -16
- package/lang/translations/sk.po +16 -16
- package/lang/translations/sr.po +16 -16
- package/lang/translations/sv.po +16 -16
- package/lang/translations/th.po +16 -16
- package/lang/translations/tr.po +16 -16
- package/lang/translations/uk.po +16 -16
- package/lang/translations/vi.po +20 -20
- package/lang/translations/zh-cn.po +16 -16
- package/lang/translations/zh.po +16 -16
- package/package.json +27 -27
- 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/previewfinalcontentcommand.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/bookmark.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/emoji.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/lineheight.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/mergefields.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/replacesourcecommand.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 +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.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/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- 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/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x7cb8e6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x454a9b,_0x1cff53){super(),this['id']=_0x1cff53['id'],this['type']=_0x1cff53['type'],this['subType']=_0x1cff53['subType']||null,this['author']=_0x1cff53['author'],this['creator']=_0x1cff53['creator']||_0x1cff53['author'],this['isExternal']=Boolean(_0x1cff53['attributes']&&_0x1cff53['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1cff53['originalSuggestionId']||null,this['_model']=_0x454a9b,this['_onAccept']=_0x1cff53['onAccept'],this['_onDiscard']=_0x1cff53['onDiscard'],this['_onAttributesChange']=_0x1cff53['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1cff53['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 _0x365f62=this;for(;_0x365f62['previous'];)_0x365f62=_0x365f62['previous'];return _0x365f62;}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'](_0x1a2d27){this['_markerNames']['add'](_0x1a2d27);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4c7f17=>this['_model']['markers']['get'](_0x4c7f17))['filter'](_0x5814b4=>_0x5814b4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x331938=>{for(const _0x3957f7 of this['getMarkers']())_0x331938['removeMarker'](_0x3957f7);}),this['_markerNames']['clear']();}['removeMarker'](_0x1d5188){this['_model']['change'](_0x1eb41c=>{_0x1eb41c['removeMarker'](_0x1d5188);}),this['_markerNames']['delete'](_0x1d5188);}['addRange'](_0x311a73){const _0x5b7614='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5b7614),this['_model']['change'](_0x50ca40=>{_0x50ca40['addMarker'](_0x5b7614,{'range':_0x311a73,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x146d48){for(const _0x2d9fb0 of this['getRanges']())if(_0x2d9fb0['isIntersecting'](_0x146d48))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3f6c19=>_0x3f6c19['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1417f3,_0x19d67d)=>[..._0x1417f3,..._0x19d67d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x478a5c=this['getRanges']();if(0x1!=_0x478a5c['length'])return null;const _0x36649f=_0x478a5c[0x0],_0x4ac9a8=_0x36649f['start']['nodeAfter'],_0x3ad87a=_0x36649f['end']['nodeBefore'];return _0x4ac9a8 instanceof _0x3789ac?_0x4ac9a8!=_0x3ad87a?null:_0x4ac9a8: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 _0x582a6c=[];let _0x413c8a=this['head'];for(;_0x413c8a;)_0x582a6c['push'](_0x413c8a),_0x413c8a=_0x413c8a['next'];return _0x582a6c;}['setAttribute'](_0x3059b0,_0x429647){const _0x101542=_0x16bcb8(this['attributes']);_0x1c3f0c(_0x101542,_0x3059b0,_0x429647),_0xc3c78d(_0x101542,this['attributes'])||(this['attributes']=_0x101542,this['_onAttributesChange'](_0x101542));}['removeAttribute'](_0x1db31a){const _0x309667=_0x16bcb8(this['attributes']);_0x18baf1(_0x309667,_0x1db31a),_0xc3c78d(_0x309667,this['attributes'])||(this['attributes']=_0x309667,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 _0x50cf13()['substr'](0x1,0x5);}}function o(_0x220a2c,_0x3cfd30,_0x15e2c7){const _0x335719=_0x220a2c['t'],t=_0x220a2c['t'];switch(_0x3cfd30){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x15e2c7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x15e2c7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x15e2c7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x15e2c7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x15e2c7);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',_0x15e2c7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x15e2c7);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x15e2c7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x15e2c7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x15e2c7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x15e2c7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x15e2c7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x15e2c7);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x15e2c7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x15e2c7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x15e2c7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x15e2c7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x15e2c7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x15e2c7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x15e2c7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x15e2c7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x15e2c7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x15e2c7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x15e2c7);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x15e2c7);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'},_0x15e2c7);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x15e2c7);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x15e2c7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x15e2c7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x15e2c7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x15e2c7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x15e2c7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x15e2c7);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'},_0x15e2c7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x15e2c7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x15e2c7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x15e2c7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x15e2c7);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'},_0x15e2c7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x15e2c7);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'},_0x15e2c7);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x15e2c7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x15e2c7);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'},_0x15e2c7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x15e2c7);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'},_0x15e2c7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x15e2c7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x15e2c7);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x15e2c7);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x15e2c7);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 _0x335719({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x15e2c7);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x335719({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x15e2c7);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x15e2c7);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x15e2c7);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x15e2c7);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x15e2c7);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3cfd30;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4c3e89,_0x346ec9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4c3e89,this['_locale']=_0x346ec9;}['getDescriptions'](_0xc1728d){const _0x351599=[],_0x340992=new Set(),_0x3f8cc4=new Set();for(let _0x4d86a5=0x0;_0x4d86a5<_0xc1728d['length'];_0x4d86a5++){const _0x67c363=_0xc1728d[_0x4d86a5];if(!_0x67c363['isInContent'])continue;const _0x54e7d1=this['_handleCustomCallbackDescription'](_0x67c363);if(_0x54e7d1){if(null!=_0x67c363['subType']){if(_0x340992['has'](_0x67c363['subType']))continue;_0x340992['add'](_0x67c363['subType']);}_0x351599['push'](_0x54e7d1);}else{if('attribute'==_0x67c363['type']){const _0x1a0913=_0x67c363['data']['key'];if(_0x3f8cc4['has'](_0x1a0913))continue;_0x3f8cc4['add'](_0x67c363['data']['key']),_0x1a0913==m?this['_handleRenameSuggestionDescription'](_0x351599,_0x67c363):this['_handleAttributeSuggestionDescription'](_0x351599,_0x67c363);continue;}'insertion'!=_0x67c363['type']&&'deletion'!=_0x67c363['type']||this['_handleInsertRemoveSuggestionDescription'](_0x351599,_0x67c363,_0xc1728d[_0x4d86a5+0x1]);}}return this['_resolveDescriptionItems'](_0x351599);}['registerDescriptionCallback'](_0x125790){this['_customCallbacks']['push'](_0x125790);}['registerElementLabel'](_0x2a7394,_0x8dcef,_0x55aa54=_0x4bf36d['normal']){'function'==typeof _0x2a7394?_0x21dd1f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2a7394,'label':_0x8dcef,'priority':_0x55aa54}):this['_itemLabels']['set'](_0x2a7394,_0x8dcef);}['registerAttributeLabel'](_0x39fe58,_0x3507e7){this['_attributeLabels']['set'](_0x39fe58,_0x3507e7);}['getItemLabel'](_0x20ef21,_0x26953b=0x1){let _0x106fcd;for(const _0x39f6a2 of this['_itemLabelsCallbacks'])if(_0x39f6a2['matchingCallback'](_0x20ef21)){_0x106fcd=_0x39f6a2['label'];break;}return _0x106fcd||(_0x106fcd=this['_itemLabels']['get'](_0x20ef21['name'])),_0x106fcd?_0x106fcd(_0x26953b):0x1!==_0x26953b?_0x26953b+'\x20'+_0x20ef21['name']+'s':''+_0x20ef21['name'];}['_addDescriptionItems'](_0x15a58a,_0x220c77){const _0x5ba5f5=_0x220c77['getFirstRange']()['getWalker'](),_0x37db3a='insertion'==_0x220c77['type']?'add':'remove';for(const _0x5db59a of _0x5ba5f5){const _0xd12c52=_0x5db59a['item'],_0x17507d=_0x15a58a[_0x15a58a['length']-0x1];if(_0xd12c52['is']('$textProxy'))_0x17507d&&_0x17507d['type']['indexOf']('Container')>-0x1&&_0x15a58a['pop'](),_0x17507d&&'text'==_0x17507d['type']?_0x17507d[_0x37db3a]+=_0xd12c52['data']:_0x15a58a['push']({'type':'text','add':'add'==_0x37db3a?_0xd12c52['data']:'','remove':'remove'==_0x37db3a?_0xd12c52['data']:''});else{if(this['_schema']['isObject'](_0xd12c52)){const _0x25ce4c=_0xd12c52;if(_0x17507d&&_0x17507d['type']['indexOf']('Container')>-0x1&&_0x15a58a['pop'](),'elementEnd'==_0x5db59a['type'])continue;_0x17507d&&_0x17507d['type']==_0x37db3a+'Object'&&_0x17507d['element']['name']==_0x25ce4c['name']?_0x17507d['quantity']++:_0x15a58a['push']({'type':_0x37db3a+'Object','element':_0x25ce4c,'quantity':0x1}),_0x5ba5f5['skip'](_0x2fa35a=>!('elementEnd'==_0x2fa35a['type']&&_0x2fa35a['item']==_0xd12c52));}else{if(this['_schema']['checkChild'](_0xd12c52,'$text')||_0xd12c52['is']('element','softBreak')){const _0x3b0372=_0xd12c52;if('add'==_0x37db3a&&'elementStart'==_0x5db59a['type']||'remove'==_0x37db3a&&'elementEnd'==_0x5db59a['type'])continue;if(_0x17507d&&-0x1==_0x17507d['type']['indexOf']('Container')){'text'==_0x17507d['type']&&(_0x17507d[_0x37db3a]+='\x0a');continue;}let _0x1f1fdb;if(_0x1f1fdb='add'==_0x37db3a?_0x3b0372['nextSibling']&&!this['_schema']['isObject'](_0x3b0372['nextSibling'])?_0x3b0372['nextSibling']:null:_0x3b0372['previousSibling']&&!this['_schema']['isObject'](_0x3b0372['previousSibling'])?_0x3b0372['previousSibling']:null,_0x3b0372['isEmpty']||_0x1f1fdb&&_0x1f1fdb['isEmpty']){const _0x4b7067=_0x1f1fdb&&_0x1f1fdb['isEmpty']?_0x1f1fdb:_0x3b0372;_0x17507d&&_0x17507d['type']==_0x37db3a+'EmptyContainer'&&_0x17507d['element']['name']==_0x4b7067['name']?_0x17507d['quantity']++:_0x15a58a['push']({'type':_0x37db3a+'EmptyContainer','element':_0x4b7067,'quantity':0x1});}else _0x15a58a['push']({'type':_0x37db3a+'Container','element':_0x3b0372});}}}}}['_resolveDescriptionItems'](_0x27f273){const _0x34ee6e=this['_locale'],_0x4e1960=[],_0xe0a51b=[],_0x48d514=[];for(const _0x362d12 of _0x27f273)switch(_0x362d12['type']){case'text':if(_0x362d12['add']=_0x362d12['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x362d12['remove']=_0x362d12['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x362d12['add']&&''!=_0x362d12['remove']){_0x4e1960['push']({'type':'replace','content':o(_0x34ee6e,'REPLACE_TEXT',['\x22'+_0x362d12['remove']+'\x22','\x22'+_0x362d12['add']+'\x22'])});continue;}if(null!=_0x362d12['add']['match'](/^ +$/)){_0x4e1960['push']({'type':'insertion','content':o(_0x34ee6e,'*Insert:*\x20%0',o(_0x34ee6e,'ELEMENT_SPACE',_0x362d12['add']['length']))});continue;}if(null!=_0x362d12['remove']['match'](/^ +$/)){_0x4e1960['push']({'type':'deletion','content':o(_0x34ee6e,'*Remove:*\x20%0',o(_0x34ee6e,'ELEMENT_SPACE',_0x362d12['remove']['length']))});continue;}if(''!=_0x362d12['add']){_0x4e1960['push']({'type':'insertion','content':o(_0x34ee6e,'*Insert:*\x20%0','\x22'+_0x362d12['add']+'\x22')});continue;}_0x4e1960['push']({'type':'deletion','content':o(_0x34ee6e,'*Remove:*\x20%0','\x22'+_0x362d12['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4e1960['push']({'type':'insertion','content':o(_0x34ee6e,'*Insert:*\x20%0',this['getItemLabel'](_0x362d12['element'],_0x362d12['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4e1960['push']({'type':'deletion','content':o(_0x34ee6e,'*Remove:*\x20%0',this['getItemLabel'](_0x362d12['element'],_0x362d12['quantity']))});continue;case'addContainer':_0x4e1960['push']({'type':'insertion','content':o(_0x34ee6e,'*Split:*\x20%0',this['getItemLabel'](_0x362d12['element'],_0x362d12['quantity']))});continue;case'removeContainer':_0x4e1960['push']({'type':'deletion','content':o(_0x34ee6e,'*Merge:*\x20%0',this['getItemLabel'](_0x362d12['element'],_0x362d12['quantity']))});continue;case'addFormat':_0xe0a51b['push'](_0x362d12['key']);continue;case'removeFormat':_0x48d514['push'](_0x362d12['key']);continue;default:_0x4e1960['push'](_0x362d12);}if(_0xe0a51b['length']){const _0x659cc6=_0xe0a51b['map'](_0x3ed32d=>this['_attributeLabels']['has'](_0x3ed32d)?this['_attributeLabels']['get'](_0x3ed32d):_0x3ed32d)['join'](',\x20');_0x4e1960['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x659cc6)});}if(_0x48d514['length']){const _0x153755=_0x48d514['map'](_0x64d1e3=>this['_attributeLabels']['has'](_0x64d1e3)?this['_attributeLabels']['get'](_0x64d1e3):_0x64d1e3)['join'](',\x20');_0x4e1960['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x153755)});}return _0x4e1960;}['_handleCustomCallbackDescription'](_0x4655e2){for(const _0x1e4c31 of this['_customCallbacks']){const _0x2d88c3=_0x1e4c31(_0x4655e2);if(_0x2d88c3&&'type'in _0x2d88c3)return _0x2d88c3;}}['_handleAttributeSuggestionDescription'](_0x9516fc,_0x8eaa10){const _0x346fc8=_0x8eaa10['data'],_0x5607b8=void 0x0===_0x346fc8['newValue']?'removeFormat':'addFormat';_0x9516fc['push']({'type':_0x5607b8,'key':_0x346fc8['key']});}['_handleRenameSuggestionDescription'](_0x5944a3,_0x5d6b2a){_0x5944a3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5d6b2a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57da5b,_0xfb568d,_0x550fe8){if(this['_addDescriptionItems'](_0x57da5b,_0xfb568d),_0x550fe8&&_0x550fe8['getFirstRange']()&&!_0xfb568d['getFirstRange']()['end']['isEqual'](_0x550fe8['getFirstRange']()['start'])){const _0x27e240=_0x57da5b[_0x57da5b['length']-0x1],_0xf7b950='insertion'==_0xfb568d['type']?'add':'remove';_0x27e240&&'text'==_0x27e240['type']&&(_0x27e240[_0xf7b950]+='\x0a');}}}class O extends _0x5b0fc1{['afterInit'](){const _0x11c712=this['editor'],_0x35004c=_0x11c712['plugins']['get']('TrackChangesEditing');_0x11c712['commands']['get']('showAIAssistant')&&_0x35004c['enableCommand']('showAIAssistant');}}class E extends _0x5b0fc1{['afterInit'](){const _0x3cb9ab=this['editor'],_0x435ced=_0x3cb9ab['locale'];if(!_0x3cb9ab['plugins']['has']('AlignmentEditing'))return;const _0x4c6280=_0x3cb9ab['plugins']['get']('TrackChangesEditing');_0x4c6280['enableDefaultAttributesIntegration']('alignment'),_0x4c6280['registerBlockAttribute']('alignment'),_0x4c6280['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x435ced,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e9a4a=this['editor'],_0x1252a0=_0x4e9a4a['locale'];_0x4e9a4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x399d06=>{if('formatBlock'!=_0x399d06['type'])return;const {data:_0x568c62}=_0x399d06;if(_0x568c62&&'alignment'==_0x568c62['commandName']){const _0x10d137=_0x568c62['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1252a0,'*Format:*\x20%0',function(_0x6d6e16){switch(_0x6d6e16){case'left':return o(_0x1252a0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1252a0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1252a0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1252a0,'FORMAT_JUSTIFY_TEXT');}}(_0x10d137))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x5b0fc1{['afterInit'](){const _0x126cf5=this['editor'],_0x3ab579=_0x126cf5['plugins']['get']('TrackChangesEditing'),_0xad4d45=_0x126cf5['locale'];for(const _0x424246 of ti){if(!_0x126cf5['plugins']['has'](_0x424246))continue;const _0xe27a88=_0x424246['slice'](0x0,-0x7)['toLowerCase'](),_0x4d5f70='FORMAT_'+_0xe27a88['toUpperCase']();_0x3ab579['enableDefaultAttributesIntegration'](_0xe27a88),_0x3ab579['registerInlineAttribute'](_0xe27a88),_0x3ab579['descriptionFactory']['registerAttributeLabel'](_0xe27a88,o(_0xad4d45,_0x4d5f70));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d4b1f=this['editor'],_0x4f9b81=_0x4d4b1f['locale'],_0x2b29c4=_0x4d4b1f['plugins']['get']('TrackChangesEditing');function _0x519e28(_0x5c96b1,_0x2cb545){_0x2b29c4['descriptionFactory']['registerDescriptionCallback'](_0x2ac46a=>{if('formatInline'!=_0x2ac46a['type'])return;const {data:_0xaac2fc}=_0x2ac46a;return _0xaac2fc&&_0xaac2fc['commandName']===_0x5c96b1?_0xaac2fc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f9b81,'*Format:*\x20%0',_0x2cb545)}:{'type':'format','content':o(_0x4f9b81,'*Remove\x20format:*\x20%0',_0x2cb545)}:void 0x0;});}_0x519e28('bold',o(_0x4f9b81,'FORMAT_BOLD')),_0x519e28('italic',o(_0x4f9b81,'FORMAT_ITALIC')),_0x519e28('underline',o(_0x4f9b81,'FORMAT_UNDERLINE')),_0x519e28('code',o(_0x4f9b81,'FORMAT_CODE')),_0x519e28('strikethrough',o(_0x4f9b81,'FORMAT_STRIKETHROUGH')),_0x519e28('subscript',o(_0x4f9b81,'FORMAT_SUBSCRIPT')),_0x519e28('superscript',o(_0x4f9b81,'FORMAT_SUPERSCRIPT'));}}class U extends _0x5b0fc1{['afterInit'](){const _0x12ce53=this['editor'],_0x3e5d0d=_0x12ce53['locale'];if(!_0x12ce53['plugins']['has']('BlockQuoteEditing'))return;const _0x371a21=_0x12ce53['plugins']['get']('TrackChangesEditing'),_0x4e1243=this['editor']['commands']['get']('blockQuote');_0x371a21['enableCommand']('blockQuote',(_0x36179c,_0x245fb2={})=>{const _0x47e70d=this['editor']['model']['document']['selection'],_0x512fb6=_0x245fb2&&void 0x0!==_0x245fb2['forceValue']?_0x245fb2['forceValue']:!_0x4e1243['value'];let _0x4cd741=[];if(_0x512fb6){const _0xcc2409=Array['from'](_0x47e70d['getSelectedBlocks']())['filter'](_0x4465a4=>oo(_0x4465a4)||function(_0x11cc43,_0x2331b3){const _0x2f13aa=_0x2331b3['checkChild'](_0x11cc43['parent'],'blockQuote'),_0x4d43eb=_0x2331b3['checkChild'](['$root','blockQuote'],_0x11cc43);return _0x2f13aa&&_0x4d43eb;}(_0x4465a4,this['editor']['model']['schema']));_0x4cd741=to(_0xcc2409,_0x12ce53['model']);}else{const _0x3517fc=Array['from'](_0x47e70d['getSelectedBlocks']())['filter'](_0x48eba2=>oo(_0x48eba2));_0x4cd741=to(_0x3517fc,_0x12ce53['model']);}_0x12ce53['model']['change'](()=>{for(const _0x4a3e09 of _0x4cd741)_0x371a21['markBlockFormat'](_0x4a3e09,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x512fb6}]});});}),_0x371a21['descriptionFactory']['registerDescriptionCallback'](_0x578afc=>{const {data:_0x4d4215}=_0x578afc;if(_0x4d4215&&'blockQuote'==_0x4d4215['commandName']){const _0x2e55b0=o(_0x3e5d0d,'ELEMENT_BLOCK_QUOTE');return _0x4d4215['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e5d0d,'*Set\x20format:*\x20%0',_0x2e55b0)}:{'type':'format','content':o(_0x3e5d0d,'*Remove\x20format:*\x20%0',_0x2e55b0)};}});}}function oo(_0x2d564f){return'blockQuote'==_0x2d564f['parent']['name'];}class V extends _0x5b0fc1{['afterInit'](){const _0xcbd180=this['editor'],_0x138687=_0xcbd180['locale'],_0x1e609c=_0xcbd180['plugins']['get']('TrackChangesEditing');_0xcbd180['plugins']['has']('BookmarkEditing')&&(_0x1e609c['enableCommand']('insertBookmark'),_0x1e609c['enableDefaultAttributesIntegration']('updateBookmark'),_0x1e609c['registerBlockAttribute']('bookmarkId'),_0x1e609c['descriptionFactory']['registerDescriptionCallback'](_0x5f4a51=>{if('insertion'!=_0x5f4a51['type']&&'deletion'!=_0x5f4a51['type']&&'attribute'!=_0x5f4a51['type'])return;const _0x528fd8=_0x5f4a51['getContainedElement']();if(null==_0x528fd8)return;if(!_0x528fd8['is']('element','bookmark'))return;const _0x552a14=_0x528fd8['getAttribute']('bookmarkId');if('insertion'==_0x5f4a51['type'])return{'type':'insertion','content':o(_0x138687,'*Insert:*\x20%0','\x22'+_0x552a14+'\x22\x20'+o(_0x138687,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5f4a51['type'])return{'type':'deletion','content':o(_0x138687,'*Remove:*\x20%0','\x22'+_0x552a14+'\x22\x20'+o(_0x138687,'ELEMENT_BOOKMARK'))};const {data:_0x24b44a}=_0x5f4a51;if(!_0x24b44a||'bookmarkId'!=_0x24b44a['key'])return;return{'type':'format','content':o(_0x138687,'*Set\x20bookmark:*\x20%0','\x22'+_0x24b44a['newValue']+'\x22')};}));}}class F extends _0x5b0fc1{['afterInit'](){const _0x3cbd8a=this['editor'];_0x3cbd8a['plugins']['has']('CaseChange')&&(_0x3cbd8a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3cbd8a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3cbd8a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x5b0fc1{['afterInit'](){const _0x525843=this['editor'];_0x525843['commands']['get']('ckbox')&&_0x525843['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5b0fc1{['afterInit'](){const _0x333abe=this['editor'];if(!_0x333abe['plugins']['has']('CodeBlock'))return;const _0x58a4b2=_0x333abe['plugins']['get']('TrackChangesEditing'),_0x4ba86b=_0x333abe['locale'],_0x1f4d0e=_0x333abe['config']['get']('codeBlock')['languages'],_0x36bae4=_0x333abe['commands']['get']('codeBlock');_0x58a4b2['enableCommand']('indentCodeBlock'),_0x58a4b2['enableCommand']('outdentCodeBlock'),_0x58a4b2['enableCommand']('codeBlock',(_0x3a29f4,_0x1183b4={})=>{const _0x3c6a93=_0x333abe['model'],_0x534f8a=_0x333abe['model']['document']['selection'],_0x2f010c=_0x1183b4&&void 0x0!==_0x1183b4['forceValue']?_0x1183b4['forceValue']:!_0x36bae4['value'];let _0x4e8a31;_0x1183b4['language']||(_0x1183b4['language']=_0x1f4d0e[0x0]['language']),_0x4e8a31=_0x2f010c?Array['from'](_0x534f8a['getSelectedBlocks']())['filter'](_0x5a3dca=>co(_0x5a3dca)||function(_0x470093,_0x2632e2){if(_0x470093['is']('rootElement')||_0x2632e2['isLimit'](_0x470093))return!0x1;return _0x2632e2['checkChild'](_0x470093['parent'],'codeBlock');}(_0x5a3dca,_0x3c6a93['schema'])):Array['from'](_0x534f8a['getSelectedBlocks']())['filter'](_0x181adc=>co(_0x181adc));const _0xe1b596=to(_0x4e8a31,_0x3c6a93);_0x3c6a93['change'](()=>{for(const _0x487aca of _0xe1b596)_0x58a4b2['markBlockFormat'](_0x487aca,{'commandName':'codeBlock','commandParams':[{..._0x1183b4,'forceValue':_0x2f010c}],'formatGroupId':'blockName'});});}),(_0x58a4b2['descriptionFactory']['registerElementLabel']('codeBlock',_0x1b02ec=>o(_0x4ba86b,'ELEMENT_CODE_BLOCK',_0x1b02ec)),_0x58a4b2['descriptionFactory']['registerDescriptionCallback'](_0x58a44c=>{if('formatBlock'!=_0x58a44c['type'])return;const _0x44ac20=_0x4ba86b['t'],{data:_0x43710d}=_0x58a44c;if(!_0x43710d||'codeBlock'!=_0x43710d['commandName'])return;const _0x41d754=_0x43710d['commandParams'][0x0]['language'],_0x2eeebf=_0x44ac20(_0x1f4d0e['find'](_0x22c11a=>_0x22c11a['language']===_0x41d754)['label'])['toLowerCase']();return _0x43710d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ba86b,'*Set\x20format:*\x20%0',o(_0x4ba86b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2eeebf+')')}:{'type':'format','content':o(_0x4ba86b,'*Remove\x20format:*\x20%0',o(_0x4ba86b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3566f5){return'codeBlock'==_0x3566f5['name'];}class J extends _0x5b0fc1{['afterInit'](){const _0x3544ed=this['editor'];if(!_0x3544ed['plugins']['has']('CommentsEditing'))return;_0x3544ed['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1997b0,_0x43c6b6,_0x533a7a){const _0x18c8e9=[];for(const _0x1f10a9 of _0x43c6b6['getItems']())_0x1f10a9['hasAttribute'](_0x1997b0)&&_0x18c8e9['push'](_0x533a7a['createRangeOn'](_0x1f10a9));return _0x18c8e9;}function De(_0x38189f,_0x512113,{showActiveMarker:_0xa06614=!0x0}={}){const _0x4ce005=_0x38189f['plugins']['get']('TrackChangesEditing');return(_0x50bfa9,_0x221145,_0x492dbd)=>{if(!_0x492dbd['consumable']['test'](_0x221145['markerRange'],_0x50bfa9['name']))return;const _0x419e4f=_0x221145['markerRange']['getWalker'](),_0x52a513=_0x221145['markerRange']['start'],_0x2a7d65=_0x38189f['model']['schema'];let _0x513985=null,_0x549b3c=null,_0x1d21da=!0x1,_0x2d5ede=!0x1;for(const _0x3d4e9d of _0x419e4f){const _0x49e49c=_0x3d4e9d['item'];_0x1d21da=_0x1d21da||_0x2a7d65['isContent'](_0x49e49c);const _0x428e5d=_0x492dbd['mapper']['toViewElement'](_0x49e49c);if(_0x428e5d&&_0x428e5d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d4e9d['type']&&(_0x2a7d65['isBlock'](_0x49e49c)&&!_0x2a7d65['isLimit'](_0x49e49c)&&(_0x49e49c['nextSibling']||_0x52a513['isAtEnd']?_0x513985&&_0x513985['parent']==_0x49e49c||(_0x513985=_0x49e49c,_0x4e8b9d(_0x3d4e9d['previousPosition']),_0x2d5ede=!0x0):_0x549b3c=_0x549b3c||_0x3d4e9d['previousPosition']));}function _0x4e8b9d(_0x21bbed){const {id:_0x399d88,authorId:_0x5ce84e}=_0x4ce005['_splitMarkerName'](_0x221145['markerName']),_0x5ebb00=_0x492dbd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x512113,'data-suggestion':_0x399d88,'data-author-id':_0x5ce84e}),_0x14f8f2=_0x492dbd['mapper']['toViewPosition'](_0x21bbed);_0xa06614&&_0x4ce005['activeMarkers']['includes'](_0x221145['markerName'])&&_0x492dbd['writer']['addClass']('ck-suggestion-marker--active',_0x5ebb00),_0x492dbd['writer']['insert'](_0x14f8f2,_0x5ebb00),_0x492dbd['mapper']['bindElementToMarker'](_0x5ebb00,_0x221145['markerName']);}_0x1d21da||_0x2d5ede||!_0x549b3c||_0x4e8b9d(_0x549b3c);};}class K extends _0x5b0fc1{static get['requires'](){return[_0x39e551];}['init'](){const _0x109625=this['editor'],_0x95bf30=_0x109625['plugins']['get']('TrackChangesEditing');_0x95bf30['enableCommand']('delete');const _0x23dfb9=_0x109625['commands']['get']('deleteForward');_0x95bf30['enableCommand']('deleteForward',(_0xf186c6,_0x553f0e={})=>{const _0x2f673c=_0x109625['model']['createSelection'](_0x109625['model']['document']['selection']);_0x2f673c['isCollapsed']&&_0x109625['model']['modifySelection'](_0x2f673c,{'direction':'forward','unit':_0x553f0e['unit']});const _0x1d3235=_0x2f673c['getFirstRange'](),_0x19560a=_0xb0dd32['fromRange'](_0x1d3235);let _0xc57177;_0xf186c6(_0x553f0e),_0xc57177='$graveyard'==_0x19560a['root']['rootName']?_0x109625['model']['createRange'](_0x1d3235['start']):_0x109625['model']['createRange'](_0x19560a['start'],_0x19560a['end']),_0x19560a['detach'](),_0x109625['model']['enqueueChange'](_0x23dfb9['buffer']['batch'],_0x5541f9=>{_0x23dfb9['buffer']['lock'](),_0x5541f9['setSelection'](_0x5541f9['createRange'](_0xc57177['end'])),_0x23dfb9['buffer']['unlock']();});}),_0x109625['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x109625,'merge'),{'priority':'high'}),_0x109625['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x151968,_0x4049e1,_0x4a2c34)=>{_0x4a2c34['options']['showSuggestionHighlights']&&De(_0x109625,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x151968,_0x4049e1,_0x4a2c34);},{'priority':'high'}),_0x109625['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fe4dc,_0x30da99,_0x2e86bc)=>{const _0x4ee83b=_0x2e86bc['mapper']['markerNameToElements'](_0x30da99['markerName']);if(_0x4ee83b){for(const _0x29e99c of _0x4ee83b)_0x29e99c['is']('uiElement')&&(_0x2e86bc['mapper']['unbindElementFromMarkerName'](_0x29e99c,_0x30da99['markerName']),_0x2e86bc['writer']['remove'](_0x29e99c));}},{'priority':'high'});}}class H extends _0x5b0fc1{['afterInit'](){const _0x53041f=this['editor'];if(!_0x53041f['plugins']['has']('ListEditing'))return;const _0x4a77de=_0x53041f['locale'],_0x276fc1=_0x53041f['plugins']['get']('TrackChangesEditing'),_0x50b39c=_0x53041f['plugins']['has']('TodoListEditing'),_0x52e1a8=!!_0x53041f['config']['get']('list.multiBlock');function _0x6705aa(_0x3a4aca){return{'type':'format','content':''+o(_0x4a77de,'*Set\x20format:*\x20%0',_0x3a4aca)};}function _0xc919bb(_0x346ce9){return{'type':'format','content':''+o(_0x4a77de,'*Remove\x20format:*\x20%0',_0x346ce9)};}_0x276fc1['enableDefaultAttributesIntegration']('numberedList'),_0x276fc1['enableDefaultAttributesIntegration']('bulletedList'),_0x276fc1['enableDefaultAttributesIntegration']('customNumberedList'),_0x276fc1['enableDefaultAttributesIntegration']('customBulletedList'),_0x276fc1['enableDefaultAttributesIntegration']('indentList'),_0x276fc1['enableDefaultAttributesIntegration']('outdentList'),_0x276fc1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x276fc1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x276fc1['registerBlockAttribute']('listItemId'),_0x276fc1['registerBlockAttribute']('listType'),_0x276fc1['registerBlockAttribute']('listIndent'),_0x52e1a8&&(_0x276fc1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x276fc1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x50b39c&&(_0x276fc1['enableDefaultAttributesIntegration']('todoList'),_0x276fc1['enableDefaultAttributesIntegration']('checkTodoList'),_0x276fc1['registerBlockAttribute']('todoListChecked'),_0x276fc1['descriptionFactory']['registerDescriptionCallback'](_0x1a3120=>{const {data:_0x158db7}=_0x1a3120;if(_0x158db7&&'todoListChecked'==_0x158db7['key'])return{'type':'format','content':_0x158db7['newValue']?o(_0x4a77de,'*Check\x20item*'):o(_0x4a77de,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5e5f98=>{if(_0x5e5f98['batch']['isUndo'])return!0x1;let _0x3c355e=!0x1;const _0x3dff21=_0x276fc1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x195073=>'todoListChecked'===_0x276fc1['_getAttributeKey'](_0x195073));for(const _0x14ec04 of _0x3dff21){'todo'!=_0x14ec04['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x276fc1['_findSuggestions'](_0x14ec04['getFirstRange'](),'attribute')['find'](_0x49b98b=>'listType'===_0x276fc1['_getAttributeKey'](_0x49b98b['suggestion']))||(_0x5e5f98['removeMarker'](_0x14ec04['getFirstMarker']()),_0x3c355e=!0x0));}return _0x3c355e;})),_0x276fc1['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4a77de,'FORMAT_INDENT'));const _0x3bb32b={'type':'format','content':''};_0x276fc1['descriptionFactory']['registerDescriptionCallback'](_0x1e3daa=>{const {data:_0xcda8a6}=_0x1e3daa;if(!_0xcda8a6||'listType'!=_0xcda8a6['key'])return;let _0x8b078c=_0x1e3daa['head'];for(;_0x8b078c;){if(_0x8b078c['data']&&(('listStyle'==_0x8b078c['data']['key']||'listMarkerStyle'==_0x8b078c['data']['key'])&&(_0x8b078c['data']['newValue']&&'default'!=_0x8b078c['data']['newValue']||'default'!=_0x8b078c['data']['oldValue']&&!_0xcda8a6['newValue'])||!_0x52e1a8&&_0x8b078c['data']['key']==m))return _0x3bb32b;_0x8b078c=_0x8b078c['next'];}if(null==_0xcda8a6['newValue'])switch(_0xcda8a6['oldValue']){case'bulleted':return _0xc919bb(o(_0x4a77de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc919bb(o(_0x4a77de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc919bb(o(_0x4a77de,'ELEMENT_TODO_LIST'));}switch(_0xcda8a6['newValue']){case'bulleted':return _0x6705aa(o(_0x4a77de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x6705aa(o(_0x4a77de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x6705aa(o(_0x4a77de,'ELEMENT_TODO_LIST'));}}),_0x276fc1['descriptionFactory']['registerDescriptionCallback'](_0x4968ba=>{const {data:_0x4aae1c}=_0x4968ba;if(_0x4aae1c&&'listIndent'==_0x4aae1c['key'])return null==_0x4aae1c['newValue']||null==_0x4aae1c['oldValue']&&0x0==_0x4aae1c['newValue']?_0x3bb32b:void 0x0;}),_0x276fc1['descriptionFactory']['registerDescriptionCallback'](_0x25e69d=>{if('attribute'!=_0x25e69d['type'])return;const {data:_0x1754f0}=_0x25e69d;if(!_0x1754f0||'listItemId'!=_0x1754f0['key'])return;const _0x2f8017=Te(_0x25e69d);return'newValue'==_0x2f8017?{'type':'format','content':o(_0x4a77de,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2f8017?{'type':'format','content':o(_0x4a77de,'*Split:*\x20list\x20item')}:_0x3bb32b;}),_0x53041f['model']['document']['registerPostFixer'](_0x19131b=>this['listItemIdFixer'](_0x19131b)),_0x53041f['model']['document']['registerPostFixer'](_0x2501f1=>this['noTrackChangesFixer'](_0x2501f1)),_0x53041f['model']['document']['on']('change:data',(_0x552e49,_0x21aa0a)=>{if(_0x21aa0a['isUndo']||!_0x21aa0a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x35a6cc){if(_0x35a6cc['batch']['isUndo']||!_0x35a6cc['batch']['isLocal'])return!0x1;let _0x35982d=!0x1;const _0x3cc8d4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x178092=>_0x178092['data']&&'listItemId'==_0x178092['data']['key'])['filter'](_0x2949a5=>_0x2949a5['data']['newValue']&&_0x2949a5['data']['oldValue']);for(const _0x1fe640 of _0x3cc8d4)Te(_0x1fe640)||(_0x35a6cc['removeMarker'](_0x1fe640['getFirstMarker']()),_0x35982d=!0x0);return _0x35982d;}['noTrackChangesFixer'](_0x324977){if(_0x324977['batch']['isUndo']||!_0x324977['batch']['isLocal'])return!0x1;const _0x56fc55=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56fc55['trackChangesCommand']['value'])return!0x1;let _0x1b3180=!0x1;const _0x207665=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x12cc19=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5bf2f3=>'attribute'==_0x5bf2f3['type'])['filter'](_0x205697=>_0x207665['includes'](_0x205697['attributeKey']));if(0x0==_0x12cc19['length'])return _0x1b3180;for(const _0x47b561 of _0x12cc19){const _0x5211ec=_0x56fc55['_findSuggestions'](_0x47b561['range'],'attribute')['filter'](_0x22d2d4=>!_0x22d2d4['meta']['isNextTo'])['map'](_0x1fd8eb=>_0x1fd8eb['suggestion'])['filter'](_0x361b6a=>{const _0x37d64a=_0x56fc55['_getAttributeKey'](_0x361b6a);return _0x207665['includes'](_0x37d64a);});if(_0x5211ec['length']){for(const _0x273d6d of _0x5211ec)_0x324977['removeMarker'](_0x273d6d['getFirstMarker']());_0x1b3180=!0x0;}}return _0x1b3180;}['assureChains'](){const _0x3205a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10005e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33f970;const _0x3ba85d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3d3a74=>{if(_0x3d3a74['data']['oldRange']||!_0x3d3a74['data']['newRange'])return null;if(!_0x3d3a74['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39e7ef}=_0x3205a0['_splitMarkerName'](_0x3d3a74['name']);if(!_0x3205a0['hasSuggestion'](_0x39e7ef))return null;const _0x529a52=_0x3205a0['getSuggestion'](_0x39e7ef);return _0x10005e['includes'](_0x529a52['data']['key']);})['map'](_0x16917d=>{const {id:_0x468f67}=_0x3205a0['_splitMarkerName'](_0x16917d['name']),_0x406806=_0x3205a0['getSuggestion'](_0x468f67);return _0x33f970=_0x406806['attributes']['groupId'],_0x406806['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3ba85d['size'])return;const _0x5257fb=_0x3205a0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x475e80=>'attribute'==_0x475e80['type']&&_0x475e80['data']&&_0x10005e['includes'](_0x475e80['data']['key'])&&_0x475e80['attributes']['groupId']!=_0x33f970)['map'](_0x384dcd=>({'listItem':_0x384dcd['getFirstRange']()['start']['nodeAfter'],'groupId':_0x384dcd['attributes']['groupId']})),_0xa08fee=new Set();for(const {groupId:_0x432845,listItem:_0x487c4b}of _0x5257fb)_0x3ba85d['has'](_0x487c4b)&&_0xa08fee['add'](_0x432845);for(const _0x285f9b of _0x3205a0['getSuggestions']())_0xa08fee['has'](_0x285f9b['attributes']['groupId'])&&_0x285f9b['setAttribute']('groupId',_0x33f970);}['_supportLegacySuggestions'](){const _0x4fee8a=this['editor'],_0x30fe6b=_0x4fee8a['locale'],_0x59ed38=_0x4fee8a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x59ed38['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xf85ab4,_0x1e7583){const _0x2155dc=[];for(let _0x558cdf of _0xf85ab4)_0x558cdf['start']['nodeAfter']===_0x558cdf['end']['parent']&&(_0x558cdf=_0x4fee8a['model']['createRange'](_0x4fee8a['model']['createPositionAt'](_0x558cdf['start']['nodeAfter'],0x0))),_0x2155dc['push'](_0x558cdf);_0x4fee8a['model']['change'](_0x16a347=>{const _0x458855=_0x4fee8a['model']['document']['selection'],_0xe1423=Array['from'](_0x458855['getRanges']())['map'](_0x5902e3=>_0xb0dd32['fromRange'](_0x5902e3));_0x16a347['setSelection'](_0x2155dc),_0x4fee8a['commands']['get'](_0x1e7583['commandName'])['refresh'](),_0x1e7583['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4fee8a['execute'](_0x1e7583['commandName'],..._0x1e7583['commandParams']),_0x16a347['setSelection'](_0xe1423);for(const _0x5f118e of _0xe1423)_0x5f118e['detach']();});}),_0x59ed38['descriptionFactory']['registerElementLabel'](function(_0x40063a){const _0x5ba8b4=!_0x4fee8a['model']['schema']['isObject'](_0x40063a),_0x5f2e6e=_0x40063a['previousSibling'],_0x55dca4=_0x40063a['nextSibling'],_0xca588c=_0x40063a['getAttribute']('listItemId'),_0x1e91a0=!_0x5f2e6e||_0x5f2e6e['getAttribute']('listItemId')!==_0xca588c,_0x150510=!_0x55dca4||_0x55dca4['getAttribute']('listItemId')!==_0xca588c;return _0x5ba8b4&&Boolean(_0xca588c)&&_0x1e91a0&&_0x150510;},_0x4cbc2f=>o(_0x30fe6b,'ELEMENT_LIST_ITEM',_0x4cbc2f));}['_registerLegacyDescription'](){const _0x53e227=this['editor'],_0xecadb2=_0x53e227['locale'];function _0xb166ab(_0xcbd0c0){const _0x416a5e=_0x53e227['commands']['get']('bulletedList')['value'],_0x28a1d4=_0x53e227['commands']['get']('numberedList')['value'];return'numberedList'===_0xcbd0c0?_0x416a5e:_0x28a1d4;}_0x53e227['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x451e1d){if('formatBlock'!=_0x451e1d['type'])return;const {data:_0x137628}=_0x451e1d;if(!_0x137628)return;let _0x31d06a,_0x36573a,_0x1fd091,_0x196f13;switch(_0x137628['commandName']){case'bulletedList':_0x1fd091=_0x137628['commandParams'][0x0]['forceValue'],_0x196f13=_0xb166ab(_0x137628['commandName']),_0x31d06a=_0x1fd091?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x196f13&&_0x53e227['config']['get']('list.multiBlock')||(_0x31d06a='*Change\x20to:*\x20%0'),_0x36573a={'type':'format','content':o(_0xecadb2,_0x31d06a,o(_0xecadb2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1fd091=_0x137628['commandParams'][0x0]['forceValue'],_0x196f13=_0xb166ab(_0x137628['commandName']),_0x31d06a=_0x1fd091?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x196f13&&_0x53e227['config']['get']('list.multiBlock')||(_0x31d06a='*Change\x20to:*\x20%0'),_0x36573a={'type':'format','content':o(_0xecadb2,_0x31d06a,o(_0xecadb2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x31d06a='*Indent:*\x20%0',_0x36573a={'type':'format','content':o(_0xecadb2,_0x31d06a,o(_0xecadb2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x31d06a=function(_0x16dbe2){const _0x1732ce=_0x16dbe2['getFirstRange']();let _0x4f6772=_0x1732ce['start']['nodeAfter'];for(;_0x4f6772&&_0x1732ce['containsItem'](_0x4f6772);){if(_0x4f6772['getAttribute']('listIndent')>0x0)return!0x1;_0x4f6772=_0x4f6772['nextSibling'];}return!0x0;}(_0x451e1d)?o(_0xecadb2,'*Format:*\x20remove\x20from\x20%0',o(_0xecadb2,function(_0xd59c59){return'ELEMENT_'+_0xd59c59['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x451e1d))):o(_0xecadb2,'*Outdent:*\x20%0',o(_0xecadb2,'ELEMENT_LIST_ITEM')),_0x36573a={'type':'format','content':_0x31d06a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x137628['multipleBlocks']&&(_0x31d06a='*Merge:*\x20%0',_0x36573a={'type':'deletion','content':o(_0xecadb2,_0x31d06a,o(_0xecadb2,'ELEMENT_LIST_ITEM'))});}return _0x36573a;});}}function Te(_0x4a9f07){let _0x3fe60e=_0x4a9f07['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3fe60e;){const _0x4b05df=_0x3fe60e['getAttribute']('listItemId');if(!_0x4b05df)return!0x1;if(_0x4b05df==_0x4a9f07['data']['newValue'])return'newValue';if(_0x4b05df==_0x4a9f07['data']['oldValue'])return'oldValue';_0x3fe60e=_0x3fe60e['previousSibling'];}return!0x1;}class q extends _0x5b0fc1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4f1737=this['editor']['config']['get']('list.properties'),_0x1c41aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f1737['styles']&&(_0x1c41aa['enableDefaultAttributesIntegration']('listStyle'),_0x1c41aa['registerBlockAttribute']('listStyle')),_0x4f1737['reversed']&&(_0x1c41aa['enableDefaultAttributesIntegration']('listReversed'),_0x1c41aa['registerBlockAttribute']('listReversed')),_0x4f1737['startIndex']&&(_0x1c41aa['enableDefaultAttributesIntegration']('listStart'),_0x1c41aa['registerBlockAttribute']('listStart'));const _0x4903fa={'type':'format','content':''};_0x1c41aa['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x38865f=this['editor']['locale'];_0x1c41aa['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x38865f,'FORMAT_LIST_REVERSED')),_0x1c41aa['descriptionFactory']['registerDescriptionCallback'](_0x4ec438=>{const {data:_0x1f4153}=_0x4ec438;if(_0x1f4153&&'listReversed'==_0x1f4153['key'])return null==_0x1f4153['newValue']||0x0==_0x1f4153['newValue']&&null==_0x1f4153['oldValue']?_0x4903fa:void 0x0;}),_0x1c41aa['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x38865f,'FORMAT_LIST_START')),_0x1c41aa['descriptionFactory']['registerDescriptionCallback'](_0x34e9de=>{const {data:_0x367906}=_0x34e9de;if(_0x367906&&'listStart'==_0x367906['key'])return null==_0x367906['newValue']||0x1==_0x367906['newValue']&&null==_0x367906['oldValue']?_0x4903fa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x464554=>{if(_0x464554['batch']['isUndo'])return!0x1;let _0x434b4f=!0x1;const _0x4a6ae6=_0x1c41aa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15b9c7=>{const _0x138f50=_0x1c41aa['_getAttributeKey'](_0x15b9c7);return'listStart'==_0x138f50||'listReversed'==_0x138f50;});for(const _0x34d576 of _0x4a6ae6){const _0x188978=_0x34d576['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x188978||'customNumbered'==_0x188978)continue;_0x1c41aa['_findSuggestions'](_0x34d576['getFirstRange'](),'attribute')['find'](_0x44d9c1=>'listType'==_0x1c41aa['_getAttributeKey'](_0x44d9c1['suggestion']))||(_0x464554['removeMarker'](_0x34d576['getFirstMarker']()),_0x434b4f=!0x0);}return _0x434b4f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2aacbf){const _0x1accd0=this['editor']['locale'],{data:_0x527e86}=_0x2aacbf,_0x4205c5={'type':'format','content':''};if(!_0x527e86||'listStyle'!=_0x527e86['key'])return;if(!_0x527e86['oldValue'])return'default'==_0x527e86['newValue']?_0x4205c5:{'type':'format','content':''+o(_0x1accd0,'*Set\x20format:*\x20%0',o(_0x1accd0,this['_getTranslationKeyForListStyle'](_0x527e86['newValue'])))};if(!_0x527e86['newValue']){if('default'==_0x527e86['oldValue'])return _0x4205c5;let _0x10aa18=_0x2aacbf['head'];for(;_0x10aa18;){if(_0x10aa18['data']&&'listType'==_0x10aa18['data']['key']&&_0x10aa18['data']['newValue'])return _0x4205c5;_0x10aa18=_0x10aa18['next'];}return{'type':'format','content':''+o(_0x1accd0,'*Remove\x20format:*\x20%0',o(_0x1accd0,this['_getTranslationKeyForListStyle'](_0x527e86['oldValue'])))};}if('default'!=_0x527e86['newValue'])return{'type':'format','content':''+o(_0x1accd0,'*Set\x20format:*\x20%0',o(_0x1accd0,this['_getTranslationKeyForListStyle'](_0x527e86['newValue'])))};let _0x4c64cf=_0x2aacbf['head'];for(;_0x4c64cf;){if(_0x4c64cf['data']&&'listType'==_0x4c64cf['data']['key']&&_0x4c64cf['data']['newValue']&&_0x4c64cf['data']['oldValue'])return _0x4205c5;_0x4c64cf=_0x4c64cf['next'];}return{'type':'format','content':o(_0x1accd0,'*Set\x20format:*\x20%0',o(_0x1accd0,'ELEMENT_'+_0x2aacbf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1eb348=this['editor'],_0x2da2fa=_0x1eb348['locale'];_0x1eb348['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56e3bf=>{if('formatBlock'!=_0x56e3bf['type'])return;const {data:_0xd59e84}=_0x56e3bf;if(!_0xd59e84)return;let _0x1d7619,_0x54802d;switch(_0xd59e84['commandName']){case'listStyle':_0x1d7619='*Change\x20to:*\x20%0',_0x54802d={'type':'format','content':o(_0x2da2fa,_0x1d7619,o(_0x2da2fa,this['_getTranslationKeyForListStyle'](_0xd59e84['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d7619=_0xd59e84['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x54802d={'type':'format','content':o(_0x2da2fa,_0x1d7619)};break;case'listStart':_0x1d7619='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54802d={'type':'format','content':o(_0x2da2fa,_0x1d7619,_0xd59e84['commandParams'][0x0]['startIndex'])};}return _0x54802d;});}['_getTranslationKeyForListStyle'](_0x228e26){return'ELEMENT_'+function(_0x5ce52a){if(Se['includes'](_0x5ce52a))return'bulleted';if(_e['includes'](_0x5ce52a))return'numbered';return null;}(_0x228e26)['toUpperCase']()+'_LIST_'+_0x228e26['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x5b0fc1{['afterInit'](){const _0x413886=this['editor'];_0x413886['commands']['get']('emoji')&&_0x413886['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x5b0fc1{static get['requires'](){return[_0x241c18];}['init'](){const _0xb78216=this['editor'],_0x257044=_0xb78216['plugins']['get']('TrackChangesEditing'),_0x5740e7=_0xb78216['commands']['get']('enter');_0x257044['enableCommand']('enter',()=>{_0xb78216['model']['change'](_0x523ded=>{const _0x125605=_0xb78216['model']['document']['selection'],_0x1f2470=_0x125605['getFirstPosition'](),_0x4e8be3=_0xb0dd32['fromRange'](_0x125605['getFirstRange']());if(_0x5740e7['enterBlock'](_0x523ded)){const _0x4a953d=_0xb78216['model']['createPositionAt'](_0x1f2470['parent']['nextSibling'],0x0),_0x3ce8dc=_0x523ded['createRange'](_0x1f2470,_0x4a953d);_0x257044['markInsertion'](_0x3ce8dc);}else _0x523ded['setSelection'](_0x523ded['createRange'](_0x4e8be3['end']));_0x4e8be3['detach'](),_0x5740e7['fire']('afterExecute',{'writer':_0x523ded});});}),_0xb78216['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xb78216,'split'),{'priority':'high'}),_0xb78216['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1f97ae,_0x49a15a,_0x4e416c)=>{const _0x18aeb5=_0x4e416c['mapper']['markerNameToElements'](_0x49a15a['markerName']);if(_0x18aeb5){for(const _0x2d87b4 of _0x18aeb5)_0x2d87b4['hasClass']('ck-suggestion-marker-split')&&(_0x4e416c['mapper']['unbindElementFromMarkerName'](_0x2d87b4,_0x49a15a['markerName']),_0x4e416c['writer']['remove'](_0x2d87b4));}},{'priority':'high'}),_0xb78216['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x42b35d,_0x1c1fc8,_0x1849ab)=>{_0x1849ab['options']['showSuggestionHighlights']&&De(_0xb78216,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x42b35d,_0x1c1fc8,_0x1849ab);},{'priority':'high'});}}class Q extends _0x5b0fc1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x52d757=this['editor']['plugins']['get']('TrackChangesEditing');_0x52d757['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x52d757['enableCommand']('findNext'),_0x52d757['enableCommand']('findPrevious'),_0x52d757['enableCommand']('replace'),_0x52d757['enableCommand']('replaceAll');}['handleFindCommand'](_0x31b418,_0x4272f3,_0x4ae28b={}){const _0x4b6668=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x31b418(_0x19a618=>{let _0xe3f4e3=('string'==typeof _0x4272f3?_0x4b6668['findByTextCallback'](_0x4272f3,_0x4ae28b):_0x4272f3)(_0x19a618);Array['isArray'](_0xe3f4e3)&&(_0xe3f4e3={'results':_0xe3f4e3,'searchText':'string'==typeof _0x4272f3?_0x4272f3:''});const _0x3f56f2=_0xe3f4e3['results']['filter'](_0x19cdd0=>!0x1===this['_isInDeletionRange'](_0x19cdd0,_0x19a618['item']));return{..._0xe3f4e3,'results':_0x3f56f2};},_0x4ae28b);}['_isInDeletionRange'](_0x250bce,_0x3a369a){const _0x30f249=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a369a,_0x250bce['start']),this['editor']['model']['createPositionAt'](_0x3a369a,_0x250bce['end']));for(const _0xca3c5d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x30f249['getIntersection'](_0xca3c5d['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x5b0fc1{['afterInit'](){const _0x3424f2=this['editor']['locale'],_0x5725a0=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3369eb,commandName:_0x2e90d6}of eo)this['editor']['plugins']['has'](_0x3369eb)&&(_0x5725a0['enableDefaultAttributesIntegration'](_0x2e90d6),_0x5725a0['registerInlineAttribute'](_0x2e90d6));_0x5725a0['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3424f2,'FORMAT_FONT_SIZE')),_0x5725a0['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3424f2,'FORMAT_FONT_FAMILY')),_0x5725a0['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3424f2,'FORMAT_FONT_COLOR')),_0x5725a0['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3424f2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ca0f5=this['editor'],_0x4bf473=_0x3ca0f5['locale'];_0x3ca0f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dfe43=>{const _0x554476=_0x4bf473['t'];if('formatInline'!=_0x1dfe43['type'])return;const {data:_0x141fd8}=_0x1dfe43;if(null!=_0x141fd8){if('fontSize'==_0x141fd8['commandName']){const _0x1464ee=_0x141fd8['commandParams'][0x0]['value'];if(_0x1464ee){const _0x16be4e=_0x554476(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x41118a=>_0x41118a['model']==_0x1464ee)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4bf473,'*Set\x20font\x20size:*\x20%0',_0x16be4e)};}return{'type':'format','content':o(_0x4bf473,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x141fd8['commandName']){const _0x3000cf=_0x141fd8['commandParams'][0x0]['value'];return _0x3000cf?{'type':'format','content':o(_0x4bf473,'*Set\x20font\x20family:*\x20%0',_0x3000cf)}:{'type':'format','content':o(_0x4bf473,'*Reset\x20font\x20family*')};}if('fontColor'==_0x141fd8['commandName']){const _0x24bb3d=_0x141fd8['commandParams'][0x0]['value'];if(_0x24bb3d){const _0x492f12=_0x434e10(this['editor']['config']['get']('fontColor.colors'))['find'](_0x534ea5=>_0x534ea5['model']==_0x24bb3d);let _0x506533=_0x24bb3d,_0x2781da='';return _0x492f12&&(_0x506533=_0x492f12['label'],_0x2781da=_0x554476(_0x506533)['toLowerCase']()),{'type':'format','content':o(_0x4bf473,'*Set\x20font\x20color:*\x20%0',_0x2781da)['trim'](),'color':{'value':_0x24bb3d,'title':_0x2781da||_0x506533}};}return{'type':'format','content':o(_0x4bf473,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x141fd8['commandName']){const _0x3f2920=_0x141fd8['commandParams'][0x0]['value'];if(_0x3f2920){const _0x27251=_0x434e10(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x19e59b=>_0x19e59b['model']==_0x3f2920);let _0xa9eaf4=_0x3f2920,_0x361b1e='';return _0x27251&&(_0xa9eaf4=_0x27251['label'],_0x361b1e=_0x554476(_0xa9eaf4)['toLowerCase']()),{'type':'format','content':o(_0x4bf473,'*Set\x20font\x20background\x20color:*\x20%0',_0x361b1e)['trim'](),'color':{'value':_0x3f2920,'title':_0x361b1e||_0xa9eaf4}};}return{'type':'format','content':o(_0x4bf473,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x5b0fc1{['afterInit'](){const _0x368c90=this['editor'],_0x9c694d=_0x368c90['plugins']['get']('TrackChangesEditing'),_0x4287a4=_0x368c90['commands']['get']('copyFormat'),_0x376172=_0x368c90['commands']['get']('pasteFormat');_0x4287a4&&_0x376172&&(_0x9c694d['enableDefaultAttributesIntegration']('pasteFormat'),_0x9c694d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x123012=this['editor'],_0x3dd513=_0x123012['locale'];_0x123012['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2313cb=>{if('formatBlock'!=_0x2313cb['type']&&'formatInline'!=_0x2313cb['type'])return;const {data:_0x3ef60f}=_0x2313cb;if(_0x3ef60f&&'pasteFormat'===_0x3ef60f['commandName']){const _0x352d94=[],_0x467c19=_0x3ef60f['commandParams'][0x0];for(const [_0x1f7fdb,_0x29f3ce]of Object['entries'](_0x467c19))_0x352d94['push'](ro(_0x123012,_0x1f7fdb,_0x29f3ce));return _0x352d94['length']?{'type':'format','content':o(_0x3dd513,'*Set\x20format\x20to:*\x20%0',_0x352d94['join'](',\x20'))}:{'type':'format','content':o(_0x3dd513,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xa2ce7f,_0x508289,_0x4bd4b3){const _0x4cb842=_0xa2ce7f['locale']['t'],_0x1608c3=_0x508289['split'](/(?=[A-Z])/)['join']('\x20'),_0x450162=_0x4cb842(_0x1608c3['charAt'](0x0)['toUpperCase']()+_0x1608c3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4bd4b3)return _0x450162;if('fontColor'===_0x508289||'fontBackgroundColor'===_0x508289){const _0x246414=_0x434e10(_0xa2ce7f['config']['get']('fontColor.colors'))['find'](_0x2339a4=>_0x2339a4['model']==_0x4bd4b3);return _0x450162+'\x20('+(_0x246414?_0x4cb842(_0x246414['label'])['toLowerCase']():_0x4bd4b3)+')';}if('fontSize'===_0x508289&&isNaN(parseFloat(_0x4bd4b3))){const _0x5c3545=_0xa2ce7f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xa2ce7f['config']['get']('fontSize.options'))['find'](_0x40967f=>_0x40967f['model']==_0x4bd4b3);return _0x450162+'\x20('+(_0x5c3545?_0x4cb842(_0x5c3545['title'])['toLowerCase']():_0x4bd4b3)+')';}return _0x450162+'\x20('+_0x4bd4b3+')';}class Z extends _0x5b0fc1{['_headingOptions'];['afterInit'](){const _0x1d14b1=this['editor'];if(!_0x1d14b1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1d14b1['config']['get']('heading.options');const _0x20a18b=_0x1d14b1['locale'],_0x4db47b=_0x1d14b1['plugins']['get']('TrackChangesEditing');_0x4db47b['enableDefaultAttributesIntegration']('heading');for(const _0x2b0550 of this['_headingOptions'])'paragraph'!=_0x2b0550['model']&&_0x4db47b['descriptionFactory']['registerElementLabel'](_0x2b0550['model'],_0x368992=>{const _0x2c8fcf=this['_getHeadingLevel'](_0x2b0550['model']);return null!==_0x2c8fcf?_0x18986e(_0x368992,_0x2c8fcf):_0x5cd6d4(_0x368992,_0x2b0550['title']);});function _0x18986e(_0x508ff6,_0x40bbdd){return o(_0x20a18b,'ELEMENT_HEADING',[_0x508ff6,_0x40bbdd]);}function _0x5cd6d4(_0xf590ff,_0xd64953){return o(_0x20a18b,'ELEMENT_HEADING_CUSTOM',[_0xf590ff,_0xd64953]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54b0e9=this['editor'],_0x5d0669=_0x54b0e9['locale'];function _0x1372f3(_0x2b1ea3,_0x25280d){return o(_0x5d0669,'ELEMENT_HEADING_CUSTOM',[_0x2b1ea3,_0x25280d]);}_0x54b0e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x582afb=>{if('formatBlock'!=_0x582afb['type'])return;const {data:_0x3f028d}=_0x582afb;if(_0x3f028d&&'heading'==_0x3f028d['commandName']){const _0x58a5ca=_0x3f028d['commandParams'][0x0]['value'],_0x1fdf06=this['_getHeadingLevel'](_0x58a5ca);if(null!==_0x1fdf06)return{'type':'format','content':o(_0x5d0669,'*Change\x20to:*\x20%0',(_0x1fc096=0x1,_0x58adb0=_0x1fdf06,o(_0x5d0669,'ELEMENT_HEADING',[_0x1fc096,_0x58adb0])))};const _0x527292=this['_headingOptions']['find'](_0x12eafe=>_0x12eafe['model']===_0x58a5ca)['title'];return{'type':'format','content':o(_0x5d0669,'*Change\x20to:*\x20%0',_0x1372f3(0x1,_0x527292))};}var _0x1fc096,_0x58adb0;});}['_getHeadingLevel'](_0x1c4719){const _0x4f152b=_0x1c4719['match'](/^heading(\d+)/);if(_0x4f152b)return _0x4f152b[0x1];const _0x44c6ae=this['_headingOptions']?.['find'](_0x562a22=>_0x562a22['model']==_0x1c4719);if(_0x44c6ae&&_0x44c6ae['view']){const _0x3534fd=_0x44c6ae['view'],_0x300c22=(_0x3534fd['name']??_0x3534fd)['match'](/^h(\d+)/);if(_0x300c22)return _0x300c22[0x1];}return null;}}class tt extends _0x5b0fc1{['afterInit'](){const _0x175fa6=this['editor'];if(!_0x175fa6['plugins']['has']('HighlightEditing'))return;const _0x2841fd=_0x175fa6['plugins']['get']('TrackChangesEditing'),_0x25c365=_0x175fa6['locale'];_0x2841fd['enableDefaultAttributesIntegration']('highlight'),_0x2841fd['registerInlineAttribute']('highlight'),_0x2841fd['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x25c365,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e212=this['editor'],_0x47406c=_0x2e212['locale'];_0x2e212['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16e1bf=>{if('formatInline'!=_0x16e1bf['type'])return;const {data:_0x393dde}=_0x16e1bf;if(_0x393dde&&'highlight'==_0x393dde['commandName']){const _0x57f26a=_0x47406c['t'],_0x5d7b72=_0x393dde['commandParams'][0x0]['value'];if(_0x5d7b72){const _0x186c09=_0x2e212['config']['get']('highlight.options')['find'](_0x2c91e3=>_0x2c91e3['model']==_0x5d7b72),_0x35e5d0=_0x57f26a(_0x186c09['title'])['toLowerCase']();return{'type':'format','content':o(_0x47406c,'*Set\x20highlight:*\x20%0',_0x35e5d0),'color':{'value':_0x186c09['color'],'title':_0x186c09['title']}};}return{'type':'format','content':o(_0x47406c,'*Remove\x20highlight*',o(_0x47406c,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x5b0fc1{['afterInit'](){const _0x57a49c=this['editor'];if(!_0x57a49c['plugins']['has']('HorizontalLineEditing'))return;_0x57a49c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x142fe0=_0x57a49c['plugins']['get']('TrackChangesEditing'),_0x56e774=_0x57a49c['locale'];_0x142fe0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x499245=>o(_0x56e774,'ELEMENT_HORIZONTAL_LINE',_0x499245)),_0x57a49c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48c83d,{writer:_0x5594c0,options:_0x3b8359})=>{if(!_0x3b8359['showSuggestionHighlights'])return null;const _0x188a81=_0x5594c0['createContainerElement']('div'),_0x70afb9=_0x5594c0['createEmptyElement']('hr');return _0x5594c0['addClass']('ck-horizontal-line',_0x188a81),_0x5594c0['insert'](_0x5594c0['createPositionAt'](_0x188a81,0x0),_0x70afb9),_0x188a81;},'converterPriority':'high'});}}class nt extends _0x5b0fc1{['afterInit'](){const _0x466f5a=this['editor'];if(!_0x466f5a['plugins']['has']('HtmlEmbed'))return;const _0xb8e07=_0x466f5a['plugins']['get']('TrackChangesEditing'),_0x3adab3=_0x466f5a['locale'];_0xb8e07['descriptionFactory']['registerElementLabel']('rawHtml',_0x37a7d6=>o(_0x3adab3,'ELEMENT_HTML_EMBED',_0x37a7d6)),_0xb8e07['enableDefaultAttributesIntegration']('htmlEmbed'),_0xb8e07['registerBlockAttribute']('value'),_0xb8e07['descriptionFactory']['registerDescriptionCallback'](_0x48c82f=>{if('attribute'!=_0x48c82f['type'])return;const {data:_0x3d3f99}=_0x48c82f;if(_0x3d3f99&&'value'==_0x3d3f99['key']&&_0x48c82f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x26bdbd=o(_0x3adab3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3adab3,'*Change\x20%0\x20content*',_0x26bdbd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x204166=this['editor'],_0x5a1b39=_0x204166['locale'];_0x204166['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6f6d7=>{if('formatBlock'!=_0x6f6d7['type'])return;const {data:_0xe4e502}=_0x6f6d7;if(_0xe4e502&&'htmlEmbed'==_0xe4e502['commandName']){const _0x493f6a=o(_0x5a1b39,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5a1b39,'*Change\x20%0\x20content*',_0x493f6a)};}});}}class et extends _0x5b0fc1{['afterInit'](){const _0x518a7d=this['editor'];if(!_0x518a7d['plugins']['has']('ImageEditing'))return;const _0x2f325c=_0x518a7d['plugins']['get']('TrackChangesEditing'),_0x5451f2=_0x518a7d['plugins']['get']('ImageUtils'),_0x10e851=_0x518a7d['locale'];_0x2f325c['enableCommand']('insertImage'),_0x2f325c['descriptionFactory']['registerElementLabel']('imageBlock',_0x54c584=>o(_0x10e851,'ELEMENT_IMAGE',_0x54c584)),_0x2f325c['descriptionFactory']['registerElementLabel']('imageInline',_0xa61ef3=>o(_0x10e851,'ELEMENT_INLINE_IMAGE',_0xa61ef3)),_0x2f325c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x10e851,'ELEMENT_CAPTION')),_0x518a7d['plugins']['has']('ImageUploadEditing')&&_0x2f325c['enableCommand']('uploadImage'),_0x518a7d['plugins']['has']('ImageBlockEditing')&&_0x518a7d['plugins']['has']('ImageInlineEditing')&&(_0x2f325c['enableCommand']('imageTypeInline',(_0x5eb570,_0x87c4d4)=>{const _0x32dc26=_0x5451f2['getClosestSelectedImageElement'](_0x518a7d['model']['document']['selection']);_0x518a7d['model']['change'](()=>{_0x2f325c['markBlockFormat'](_0x32dc26,{'commandName':'imageTypeInline','commandParams':[_0x87c4d4]},[],'convertBlockImageToInline');});}),_0x2f325c['enableCommand']('imageTypeBlock',(_0xea13a5,_0x5923a4)=>{_0x518a7d['model']['change'](_0x4dd29c=>{let _0x38f358=_0x5451f2['getClosestSelectedImageElement'](_0x518a7d['model']['document']['selection']),_0xca07ae=_0x4dd29c['createRangeOn'](_0x38f358);const _0x36c9ae=_0x4193f1['fromPosition'](_0xca07ae['start'],'toPrevious'),_0x18124f=_0x4193f1['fromPosition'](_0xca07ae['end'],'toNext');_0x2f325c['forceDefaultExecution'](()=>_0xea13a5(_0x5923a4)),_0x38f358=_0x5451f2['getClosestSelectedImageElement'](_0x518a7d['model']['document']['selection']),_0xca07ae=_0x4dd29c['createRangeOn'](_0x38f358);const _0x205bff=_0x4dd29c['createRange'](_0x36c9ae,_0x18124f);_0x36c9ae['detach'](),_0x18124f['detach'](),_0x2f325c['markBlockFormat'](_0x38f358,{'commandName':'imageTypeInline','commandParams':[_0x5923a4]},[],'convertInlineImageToBlock'),_0x205bff['start']['isBefore'](_0xca07ae['start'])&&_0x2f325c['markInsertion'](_0x4dd29c['createRange'](_0x205bff['start'],_0xca07ae['start']),'convertInlineImageToBlock'),_0xca07ae['end']['isBefore'](_0x205bff['end'])&&_0x2f325c['markInsertion'](_0x4dd29c['createRange'](_0xca07ae['end'],_0x205bff['end']),'convertInlineImageToBlock');});}),_0x2f325c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2f325c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2f325c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2f325c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2f325c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2f325c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1d8be8])=>{const _0x9bb780=_0x2f325c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x370517=_0x1d8be8['start'],_0x54e8c8=_0x1d8be8['end'];const _0x4ee692=_0x518a7d['model']['schema']['getNearestSelectionRange'](_0x370517,'backward'),_0x5581d8=_0x518a7d['model']['schema']['getNearestSelectionRange'](_0x54e8c8,'forward');_0x4ee692['isCollapsed']&&(_0x370517=_0x4ee692['start']),_0x5581d8['isCollapsed']&&(_0x54e8c8=_0x5581d8['end']),_0x9bb780([_0x518a7d['model']['createRange'](_0x370517,_0x54e8c8)]);}),_0x2f325c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x352275),_0x2f325c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x352275)),_0x518a7d['plugins']['has']('ImageCaptionEditing')&&(_0x2f325c['enableCommand']('toggleImageCaption',(_0x2bf402,_0x512663)=>{const _0x27075a=_0x518a7d['plugins']['get']('ImageCaptionUtils');let _0x280462=_0x5451f2['getClosestSelectedImageElement'](_0x518a7d['model']['document']['selection']),_0x319c53=_0x27075a['getCaptionFromImageModelElement'](_0x280462);_0x518a7d['model']['change'](()=>{if(_0x319c53)return void _0x2f325c['markDeletion'](_0x518a7d['model']['createRangeOn'](_0x319c53));const _0x5a9ffc=_0x5451f2['isBlockImage'](_0x280462);_0x2bf402(_0x512663),_0x280462=_0x5451f2['getClosestSelectedImageElement'](_0x518a7d['model']['document']['selection']),_0x319c53=_0x27075a['getCaptionFromImageModelElement'](_0x280462),_0x2f325c['markInsertion'](_0x518a7d['model']['createRangeOn'](_0x319c53),_0x5a9ffc?null:'imageCaption');});}),_0x2f325c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x352275));const _0x133341=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1cdbb0(_0x464d0f,_0x30b94a){const _0x438d51=_0x133341['findIndex'](({type:_0x3d7c08,subType:_0x2a09c0})=>_0x464d0f['type']==_0x3d7c08&&_0x464d0f['subType']==_0x2a09c0),_0x49752d=_0x133341['findIndex'](({type:_0x1ca0f3,subType:_0x462a08})=>_0x30b94a['type']==_0x1ca0f3&&_0x30b94a['subType']==_0x462a08);if(_0x438d51<0x0||_0x49752d<0x0)return!0x1;const _0x4cc32d=_0x464d0f['getFirstRange'](),_0x529db8=_0x30b94a['getFirstRange']();if((0x0==_0x438d51||0x1==_0x438d51)&&0x2==_0x49752d&&_0x4cc32d['isIntersecting'](_0x529db8))return!0x0;if(0x2==_0x438d51&&0x3==_0x49752d){const _0x11e503=_0x2f325c['_findSuggestions'](_0x4cc32d,'insertion')['filter'](({suggestion:_0x3435ad,meta:_0x3bd4d7})=>_0x3bd4d7['isOwn']&&'convertInlineImageToBlock'==_0x3435ad['subType']);if(_0x11e503['length']>0x1&&_0x529db8['end']['isEqual'](_0x4cc32d['start']))return!0x0;if(0x1==_0x11e503['length']&&(_0x4cc32d['start']['isEqual'](_0x529db8['end'])||_0x4cc32d['end']['isEqual'](_0x529db8['start'])))return!0x0;}if(0x3==_0x438d51&&0x3==_0x49752d&&_0x4cc32d['start']['isBefore'](_0x529db8['start'])){const _0x354525=_0x4cc32d['end']['nodeAfter'],_0x2c6226=_0x529db8['start']['nodeBefore'];return _0x5451f2['isBlockImage'](_0x354525)&&_0x354525===_0x2c6226;}return!0x1;}function _0x352275(_0xb2c754,_0x47947a){return _0x1cdbb0(_0xb2c754,_0x47947a)?[_0xb2c754,_0x47947a]:_0x1cdbb0(_0x47947a,_0xb2c754)?[_0x47947a,_0xb2c754]:null;}_0x518a7d['plugins']['has']('ImageResize')&&(_0x2f325c['enableDefaultAttributesIntegration']('resizeImage'),_0x2f325c['registerBlockAttribute']('resizedWidth'),_0x2f325c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x10e851,'FORMAT_IMAGE_SIZE'))),_0x518a7d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2f325c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2f325c['registerBlockAttribute']('alt')),_0x518a7d['plugins']['has']('PictureEditing')&&(_0x2f325c['registerBlockAttribute']('sources'),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x461153=>{if('attribute'!=_0x461153['type'])return;const {data:_0x2f13e2}=_0x461153;return _0x2f13e2&&'sources'==_0x2f13e2['key']?{'type':'format','content':''}:void 0x0;})),_0x518a7d['plugins']['has']('ImageSizeAttributes')&&(_0x2f325c['registerBlockAttribute']('width'),_0x2f325c['registerBlockAttribute']('height'),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x13d656=>{if('attribute'!=_0x13d656['type'])return;const {data:_0x159bd3}=_0x13d656;return!_0x159bd3||'width'!=_0x159bd3['key']&&'height'!=_0x159bd3['key']?void 0x0:{'type':'format','content':''};})),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x32c95d=>{if(!!_0x133341['find'](({type:_0x264c7d,subType:_0x222ab2})=>_0x32c95d['type']==_0x264c7d&&_0x32c95d['subType']==_0x222ab2))return _0x32c95d['previous']?{}:void 0x0;}),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x3e9ba0=>{if('insertion'==_0x3e9ba0['type']||'deletion'==_0x3e9ba0['type']){const _0xf8e3b1=_0x3e9ba0['getContainedElement']();if(_0xf8e3b1&&_0xf8e3b1['is']('element','caption'))return{'type':'insertion'==_0x3e9ba0['type']?'addObject':'removeObject','element':_0xf8e3b1,'quantity':0x1};}}),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x51b72f=>'formatBlock'==_0x51b72f['type']&&'convertInlineImageToBlock'==_0x51b72f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x51b72f['type']&&'convertBlockImageToInline'==_0x51b72f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x2fa950=>{if('attribute'!=_0x2fa950['type'])return;const {data:_0x1b7cfb}=_0x2fa950;if(!_0x1b7cfb||'alt'!=_0x1b7cfb['key'])return;const _0x3d0836=_0x1b7cfb['newValue'];return _0x3d0836?{'type':'format','content':o(_0x10e851,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3d0836+'\x22')}:{'type':'format','content':o(_0x10e851,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a4a46=this['editor'],_0x441393=_0x4a4a46['locale'];_0x4a4a46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x75491e=>{if('formatBlock'!=_0x75491e['type']&&'formatInline'!=_0x75491e['type'])return;const {data:_0x508544}=_0x75491e;if(_0x508544){if('imageTextAlternative'==_0x508544['commandName']){const _0x4e0c72=_0x508544['commandParams'][0x0]['newValue'];return _0x4e0c72?{'type':'format','content':o(_0x441393,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e0c72+'\x22')}:{'type':'format','content':o(_0x441393,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x508544['commandName']){const _0x30e6ab=_0x508544['commandParams'][0x0]['width'];return _0x30e6ab?{'type':'format','content':o(_0x441393,'*Set\x20image\x20width:*\x20%0',_0x30e6ab)}:{'type':'format','content':o(_0x441393,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5b0fc1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3c08f9=this['editor']['locale'],_0x17d114=this['editor']['plugins']['get']('TrackChangesEditing');_0x17d114['enableDefaultAttributesIntegration']('replaceImageSource'),_0x17d114['registerBlockAttribute']('src'),_0x17d114['descriptionFactory']['registerDescriptionCallback'](_0x1ce31a=>{if('attribute'!=_0x1ce31a['type'])return;const {data:_0xdb5fa5}=_0x1ce31a;return _0xdb5fa5&&'src'==_0xdb5fa5['key']?_0xdb5fa5['newValue']&&_0xdb5fa5['oldValue']?{'type':'format','content':o(_0x3c08f9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xdd5006=this['editor']['plugins']['get']('TrackChangesEditing');_0xdd5006['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xdd5006['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xdd5006['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xdd5006['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xba4d3e=this['editor'],_0x59591a=_0xba4d3e['locale'];_0xba4d3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x466105=>{if('formatBlock'!=_0x466105['type']&&'formatInline'!=_0x466105['type'])return;const {data:_0x2a0776}=_0x466105;if(!_0x2a0776||'replaceImageSource'!=_0x2a0776['commandName'])return;return{'type':'format','content':o(_0x59591a,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x5b0fc1{['afterInit'](){const _0x5af7b5=this['editor'];if(!_0x5af7b5['plugins']['has']('ImageStyleEditing'))return;const _0x620e54=_0x5af7b5['plugins']['get']('TrackChangesEditing'),_0x382d65=_0x5af7b5['plugins']['get']('ImageUtils'),_0x37937={};_0x620e54['enableCommand']('imageStyle',(_0x593064,_0x58211b)=>{const _0x966996=_0x5af7b5['plugins']['get']('Users')['me'],_0x74ad59=_0x5af7b5['commands']['get']('imageStyle');let _0x286777=_0x382d65['getClosestSelectedImageElement'](_0x5af7b5['model']['document']['selection']),_0x302d56=_0x5af7b5['model']['createRangeOn'](_0x286777),_0x57e1d6=_0x74ad59['value'];if(_0x57e1d6==_0x58211b['value'])return;const _0x2bc9e1={'commandName':'imageStyle','commandParams':[_0x58211b],'formatGroupId':_0x50cf13()};_0x5af7b5['model']['change'](()=>{if(_0x620e54['getSuggestions']()['filter'](_0x34e4fe=>_0x34e4fe['isInContent']&&_0x966996==_0x34e4fe['author']&&('formatBlock'==_0x34e4fe['type']||'formatInline'==_0x34e4fe['type'])&&('imageStylePreApply'==_0x34e4fe['subType']||'imageStylePostApply'==_0x34e4fe['subType'])&&_0x34e4fe['getFirstRange']()['isEqual'](_0x302d56))['forEach'](_0x1e0909=>_0x620e54['discardSuggestion'](_0x1e0909['head'])),_0x286777=_0x382d65['getClosestSelectedImageElement'](_0x5af7b5['model']['document']['selection']),_0x302d56=_0x5af7b5['model']['createRangeOn'](_0x286777),_0x74ad59['refresh'](),_0x5af7b5['commands']['get']('imageTypeInline')['refresh'](),_0x5af7b5['commands']['get']('imageTypeBlock')['refresh'](),_0x57e1d6=_0x74ad59['value'],_0x57e1d6!=_0x58211b['value'])return _0x382d65['isInlineImage'](_0x286777)&&_0x74ad59['shouldConvertImageType'](_0x58211b['value'],_0x286777)?(_0x593064({..._0x58211b,'setImageSizes':!0x1}),_0x286777=_0x382d65['getClosestSelectedImageElement'](_0x5af7b5['model']['document']['selection']),void _0x620e54['markBlockFormat'](_0x286777,{..._0x2bc9e1,'commandReversedParams':[{'value':_0x57e1d6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x382d65['isBlockImage'](_0x286777)?_0x620e54['markBlockFormat'](_0x286777,_0x2bc9e1,[],'imageStylePostApply'):_0x620e54['markInlineFormat'](_0x302d56,_0x2bc9e1,'imageStylePostApply'));});});for(const _0x9122a9 of _0x5af7b5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x37937[_0x9122a9['name']]=_0x9122a9['title']['toLowerCase']();_0x620e54['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x620e54['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x620e54['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x620e54['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4efa03])=>{_0x382d65['setImageNaturalSizeAttributes'](_0x4efa03['getContainedElement']());}),_0x620e54['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1425ba,_0x316e6c)=>{_0x620e54['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1425ba,{'commandName':_0x316e6c['commandName'],'commandParams':_0x316e6c['commandReversedParams']});}),_0x620e54['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1be5c8,_0x15b7fa){if(_0x58bde8(_0x1be5c8,_0x15b7fa))return[_0x1be5c8,_0x15b7fa];if(_0x58bde8(_0x15b7fa,_0x1be5c8))return[_0x15b7fa,_0x1be5c8];return null;});const _0x3bb2ce=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58bde8(_0x2bf29e,_0x2585b3){const _0x5d208a=_0x3bb2ce['findIndex'](({type:_0x42b8ae,subType:_0x4c7cf4})=>_0x2bf29e['type']==_0x42b8ae&&_0x2bf29e['subType']==_0x4c7cf4),_0x53431d=_0x3bb2ce['findIndex'](({type:_0x544631,subType:_0x52abed})=>_0x2585b3['type']==_0x544631&&_0x2585b3['subType']==_0x52abed);if(_0x5d208a<0x0||_0x53431d<0x0)return!0x1;const _0x4ad3cb=_0x2bf29e['getFirstRange'](),_0x179849=_0x2585b3['getFirstRange']();if((0x0==_0x5d208a||0x1==_0x5d208a)&&0x2==_0x53431d&&_0x4ad3cb['isIntersecting'](_0x179849))return!0x0;if(0x2==_0x5d208a&&0x3==_0x53431d){const _0x4c98a7=_0x620e54['_findSuggestions'](_0x4ad3cb,'insertion')['filter'](({suggestion:_0x2bd948,meta:_0x65d358})=>_0x65d358['isOwn']&&'convertInlineImageToBlock'==_0x2bd948['subType']);if(_0x4c98a7['length']>0x1&&_0x179849['end']['isEqual'](_0x4ad3cb['start']))return!0x0;if(0x1==_0x4c98a7['length']&&(_0x4ad3cb['start']['isEqual'](_0x179849['end'])||_0x4ad3cb['end']['isEqual'](_0x179849['start'])))return!0x0;}if(0x3==_0x5d208a&&0x3==_0x53431d&&_0x4ad3cb['start']['isBefore'](_0x179849['start'])){const _0x3886ba=_0x4ad3cb['end']['nodeAfter'],_0x45a00f=_0x179849['start']['nodeBefore'];return _0x382d65['isBlockImage'](_0x3886ba)&&_0x3886ba===_0x45a00f;}return!0x1;}_0x5af7b5['model']['document']['registerPostFixer'](()=>{let _0xb511bf=!0x1;const _0x45dac2=Array['from'](_0x5af7b5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26f9f7,data:_0x472a7a}of _0x45dac2){const {group:_0x105a8f,type:_0x12df75,subType:_0x1e4127,id:_0x166b02}=_0x620e54['_splitMarkerName'](_0x26f9f7);if('suggestion'==_0x105a8f&&_0x620e54['hasSuggestion'](_0x166b02)){if('formatBlock'==_0x12df75&&('imageStylePreApply'==_0x1e4127||'imageStylePostApply'==_0x1e4127)){const _0x5a90fb=_0x620e54['getSuggestion'](_0x166b02);if(_0x472a7a['newRange']){const _0x150a95=_0x5a90fb['getFirstRange']()['getContainedElement']();if(_0x382d65['isBlockImage'](_0x150a95))continue;_0x620e54['discardSuggestion'](_0x5a90fb),_0xb511bf=!0x0;}}if('insertion'==_0x12df75&&'imageCaption'==_0x1e4127&&!_0x472a7a['newRange']){const _0x48d379=_0x620e54['getSuggestion'](_0x166b02);_0x48d379['next']&&_0x48d379['next']['isInContent']&&(_0x620e54['discardSuggestion'](_0x48d379['next']),_0xb511bf=!0x0);}}}return _0xb511bf;}),this['_registerLegacyDescription'](_0x37937);}['_registerLegacyDescription'](_0x15ce75){const _0x463a83=this['editor'],_0x981b79=_0x463a83['locale'];_0x463a83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ca5bf=>{if('formatBlock'!=_0x3ca5bf['type']&&'formatInline'!=_0x3ca5bf['type'])return;const {data:_0x5253cc}=_0x3ca5bf;if(!_0x5253cc||'imageStyle'!=_0x5253cc['commandName'])return;const _0x2d83b0=_0x5253cc['commandParams'][0x0]['value'];return _0x1e5bf5('side'===_0x2d83b0?o(_0x981b79,'FORMAT_SIDE_IMAGE'):_0x15ce75[_0x2d83b0]||_0x2d83b0);function _0x1e5bf5(_0x23a4ba){return{'type':'format','content':o(_0x981b79,'*Format:*\x20%0',_0x23a4ba)};}});}}class rt extends _0x5b0fc1{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x38dbb8){super(_0x38dbb8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x816676=this['editor'],_0x5078b7=_0x816676['commands']['get']('importWord'),_0x12138a=_0x816676['commands']['get']('trackChanges');_0x5078b7&&(_0x5078b7['on']('execute',(_0x3f6439,[,_0x2b2f81])=>{this['_trackChangesValueDuringImport']=_0x12138a['value'],_0x2b2f81['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5078b7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5078b7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x12138a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x816676['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x416351,_0x408061){const {suggestions:_0x112c2f}=_0x408061,_0x1e4be3=this['editor']['commands']['get']('trackChanges'),_0x3d060c=_0x1e4be3['value'];this['_trackChangesValueDuringImport']!==_0x3d060c&&(_0x1e4be3['execute'](),this['_trackChangesExecuted']=!0x0),_0x112c2f&&_0x112c2f['forEach'](({id:_0x17a446,type:_0x225d1a,author:_0x5695f9,created_at:_0x5d5e07})=>{const _0x3f3056={'id':_0x17a446,'type':_0x225d1a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5695f9,'createdAt':_0x5d5e07?new Date(_0x5d5e07):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3f3056);});}}class at extends _0x5b0fc1{['afterInit'](){const _0x2d2206=this['editor'],_0x17d826=_0x2d2206['plugins']['get']('TrackChangesEditing');if(_0x2d2206['plugins']['has']('IndentEditing')&&(_0x17d826['enableCommand']('indent'),_0x17d826['enableCommand']('outdent')),_0x2d2206['plugins']['has']('IndentBlock')){for(const _0x598a88 of['indentBlock','outdentBlock'])_0x17d826['enableDefaultAttributesIntegration'](_0x598a88);}const _0x254139=_0x2d2206['locale'];_0x17d826['registerBlockAttribute']('blockIndent'),_0x17d826['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x254139,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c4dcb=this['editor'],_0x4f3719=_0x2c4dcb['locale'],_0x2bb990=_0x2c4dcb['plugins']['get']('TrackChangesEditing');_0x2bb990['descriptionFactory']['registerDescriptionCallback'](_0x2eb68f=>{if('formatBlock'!=_0x2eb68f['type'])return;const {data:_0x3fed9a}=_0x2eb68f;if(!_0x3fed9a)return;if('indentBlock'!=_0x3fed9a['commandName']&&'outdentBlock'!=_0x3fed9a['commandName'])return;const _0x2059fc=_0x2eb68f['getItems']()[0x0],_0x23a600=_0x2bb990['descriptionFactory']['getItemLabel'](_0x2059fc);return'indentBlock'==_0x3fed9a['commandName']?{'type':'format','content':o(_0x4f3719,'*Indent:*\x20%0',_0x23a600)}:'outdentBlock'==_0x3fed9a['commandName']?{'type':'format','content':o(_0x4f3719,'*Outdent:*\x20%0',_0x23a600)}:void 0x0;});}}class ct extends _0x5b0fc1{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x5b0fc1{['afterInit'](){const _0x30eaaf=this['editor'];if(!_0x30eaaf['plugins']['has']('LinkEditing'))return;const _0x1fb866=_0x30eaaf['plugins']['get']('TrackChangesEditing'),_0x29cbbe=_0x30eaaf['commands']['get']('link');_0x1fb866['enableDefaultAttributesIntegration']('link'),_0x1fb866['enableDefaultAttributesIntegration']('unlink'),_0x1fb866['registerInlineAttribute']('linkHref');for(const _0x202da8 of _0x29cbbe['manualDecorators'])_0x1fb866['registerInlineAttribute'](_0x202da8['id']),_0x1fb866['descriptionFactory']['registerAttributeLabel'](_0x202da8['id'],'link\x20('+_0x202da8['label']['toLowerCase']()+')');_0x1fb866['descriptionFactory']['registerDescriptionCallback'](_0xddac26=>{if('attribute'!=_0xddac26['type'])return;const {data:_0x2a06d0}=_0xddac26;if(!_0x2a06d0||'linkHref'!=_0x2a06d0['key'])return;const _0x196cbf=_0x2a06d0['newValue'],_0x3af703=_0x30eaaf['locale'];return{'type':'format','content':null==_0x196cbf?o(_0x3af703,'*Remove\x20link*'):o(_0x3af703,'*Set\x20link:*\x20%0','\x22'+_0x196cbf+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x124c0a=this['editor'],_0x38dd71=_0x124c0a['locale'];_0x124c0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4072c2=>{if('formatInline'!=_0x4072c2['type'])return;const {data:_0x4e37b9}=_0x4072c2;if(_0x4e37b9){if('link'==_0x4e37b9['commandName']){const _0x59010d=_0x4e37b9['commandParams'][0x0];return{'type':'format','content':o(_0x38dd71,'*Set\x20link:*\x20%0','\x22'+_0x59010d+'\x22')};}return'unlink'==_0x4e37b9['commandName']?{'type':'format','content':o(_0x38dd71,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x5b0fc1{['afterInit'](){const _0x3a79f6=this['editor'],_0x5787fe=_0x3a79f6['locale'];if(!_0x3a79f6['plugins']['has']('LegacyListEditing'))return;const _0x41e309=_0x3a79f6['plugins']['get']('TrackChangesEditing'),_0x3e8cd0=_0x3a79f6['plugins']['has']('LegacyTodoListEditing');function _0x2a8984(_0x26eba6){return()=>{const _0x372e8b=_0x3a79f6['model']['document']['selection'],_0x18398c=_0x3a79f6['commands']['get'](_0x26eba6);if(_0x18398c['value'])return void _0x3a79f6['execute']('paragraph',{});const _0x5592dd=_0x26eba6['slice'](0x0,-0x4),_0x3ed9bb=function(_0x34fd01,_0x234574,_0xed8e72){let _0x10d911=Array['from'](_0x34fd01)['filter'](_0x879354=>function(_0x1b9854,_0x16a1b2){return _0x16a1b2['checkChild'](_0x1b9854['parent'],'listItem')&&!_0x16a1b2['isObject'](_0x1b9854);}(_0x879354,_0xed8e72));_0x10d911=_0x10d911['filter'](_0xb6459b=>!_0xb6459b['is']('element','listItem')||_0xb6459b['getAttribute']('listType')!=_0x234574);const _0x5a7239=new Set();for(const _0xd8ff87 of _0x10d911)_0xd8ff87['is']('element','listItem')?_0x5a7239['add'](Le(_0xd8ff87)):_0x5a7239['add'](_0xd8ff87);return Array['from'](_0x5a7239);}(_0x372e8b['getSelectedBlocks'](),_0x5592dd,_0x3a79f6['model']['schema']);_0x3a79f6['model']['change'](()=>{for(const _0x70b376 of _0x3ed9bb)_0x41e309['markBlockFormat'](_0x70b376,{'commandName':_0x26eba6,'commandParams':[{'forceValue':!_0x18398c['value']}],'formatGroupId':'blockName'},Ee(_0x70b376));});};}function _0x18beae(_0x4a4480){return()=>{const _0x218e15=function(_0x548c30){let _0x496a3e=Array['from'](_0x548c30);const _0xc15489=_0x496a3e['findIndex'](_0x28b45d=>'listItem'!=_0x28b45d['name']);return _0xc15489>-0x1&&(_0x496a3e=_0x496a3e['slice'](0x0,_0xc15489)),_0x496a3e;}(_0x3a79f6['model']['document']['selection']['getSelectedBlocks']()),_0x4a7bbd=_0x3a79f6['model']['createRange'](_0x3a79f6['model']['createPositionAt'](_0x218e15[0x0],'before'),_0x3a79f6['model']['createPositionAt'](_0x218e15[_0x218e15['length']-0x1],'end'));_0x3a79f6['model']['change'](()=>{_0x41e309['markBlockFormat'](_0x4a7bbd,{'commandName':_0x4a4480,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e95a8){const _0x35d469=new Set();for(const _0x23fcc2 of _0x3e95a8){let _0x40e5bc=_0x23fcc2['nextSibling'];for(;_0x40e5bc&&_0x40e5bc['getAttribute']('listIndent')>_0x23fcc2['getAttribute']('listIndent');)_0x35d469['add'](_0x40e5bc),_0x40e5bc=_0x40e5bc['nextSibling'];}return Array['from'](_0x35d469);}(_0x218e15));});};}_0x41e309['enableCommand']('numberedList',_0x2a8984('numberedList')),_0x41e309['enableCommand']('bulletedList',_0x2a8984('bulletedList')),_0x3e8cd0&&_0x41e309['enableCommand']('todoList',_0x2a8984('todoList')),_0x41e309['enableCommand']('indentList',_0x18beae('indentList')),_0x41e309['enableCommand']('outdentList',_0x18beae('outdentList')),_0x3e8cd0&&_0x41e309['enableCommand']('checkTodoList',()=>{const _0x5f0ebb=_0x3a79f6['commands']['get']('checkTodoList'),_0x103f0d=Array['from'](_0x5f0ebb['_selectedElements']);_0x103f0d['filter'](_0x2593f9=>_0x2593f9['getAttribute']('todoListChecked')!=_0x5f0ebb['value']),_0x3a79f6['model']['change'](()=>{for(const _0x1d40c4 of _0x103f0d)_0x41e309['markBlockFormat'](_0x1d40c4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5f0ebb['value']}]});});}),_0x41e309['descriptionFactory']['registerElementLabel']('listItem',_0x154525=>o(_0x5787fe,'ELEMENT_LIST_ITEM',_0x154525)),_0x41e309['descriptionFactory']['registerDescriptionCallback'](_0x5304b2=>{if('formatBlock'!=_0x5304b2['type']&&'formatInline'!=_0x5304b2['type'])return;const {data:_0x38bb9c}=_0x5304b2;if(_0x38bb9c){if('numberedList'==_0x38bb9c['commandName']||'bulletedList'==_0x38bb9c['commandName']||'todoList'==_0x38bb9c['commandName'])switch(_0x38bb9c['commandName']['replace']('List','')){case'bulleted':return _0x28091e(o(_0x5787fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28091e(o(_0x5787fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28091e(o(_0x5787fe,'ELEMENT_TODO_LIST'));}if('indentList'==_0x38bb9c['commandName'])return{'type':'format','content':o(_0x5787fe,'*Indent:*\x20%0',o(_0x5787fe,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x38bb9c['commandName'])return{'type':'format','content':o(_0x5787fe,'*Outdent:*\x20%0',o(_0x5787fe,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x38bb9c['commandName'])return _0x38bb9c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5787fe,'*Check\x20item*')}:{'type':'format','content':o(_0x5787fe,'*Uncheck\x20item*')};}function _0x28091e(_0xd7bf6f){return{'type':'format','content':o(_0x5787fe,'*Change\x20to:*\x20%0',_0xd7bf6f)};}});}}function Le(_0x3d2c46){const _0x118ee7=_0x3d2c46['getAttribute']('listIndent');if(0x0==_0x118ee7)return _0x3d2c46;let _0x3da39e=_0x3d2c46;for(;_0x3d2c46['previousSibling']&&_0x3d2c46['previousSibling']['is']('element','listItem');){const _0x298180=_0x3d2c46['previousSibling']['getAttribute']('listIndent');if(_0x298180==_0x118ee7)_0x3da39e=_0x3d2c46['previousSibling'];else{if(_0x298180<_0x118ee7)break;}_0x3d2c46=_0x3d2c46['previousSibling'];}return _0x3da39e;}function Ee(_0xd71a95){const _0x5e8ee9=[];if(_0xd71a95['is']('element','listItem')&&_0xd71a95['getAttribute']('listIndent')>0x0){let _0x200128=_0xd71a95['nextSibling'];for(;_0x200128&&'listItem'==_0x200128['name']&&_0x200128['getAttribute']('listIndent')==_0xd71a95['getAttribute']('listIndent');)_0x5e8ee9['push'](_0x200128),_0x200128=_0x200128['nextSibling'];}return _0x5e8ee9;}class ht extends _0x5b0fc1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x49822d=this['editor']['config']['get']('list.properties'),_0x187951=this['editor']['plugins']['get']('TrackChangesEditing');_0x49822d['styles']&&_0x187951['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x49822d['reversed']&&_0x187951['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x49822d['startIndex']&&_0x187951['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x187951['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x43dc8a,_0x3ed451={}){const _0x6ba350=this['editor']['plugins']['get']('TrackChangesEditing'),_0x410820=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x6ba350['markMultiRangeBlockFormat'](_0x410820,{'commandName':'listStyle','commandParams':[{'type':_0x3ed451['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4b06bb,_0x1744df={}){const _0x4ad59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x204c17=this['_getSuggestionBlocks'](_0x435f7c=>_0x435f7c['is']('element','listItem')&&'numbered'===_0x435f7c['getAttribute']('listType'));if(_0x204c17['length']<0x1)return;const _0x2576ec=_0x204c17['map'](_0x29ee33=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29ee33,'before'),this['editor']['model']['createPositionAt'](_0x29ee33,0x0)));this['editor']['model']['change'](()=>{_0x4ad59['markMultiRangeBlockFormat'](_0x2576ec,{'commandName':'listReversed','commandParams':[{'reversed':_0x1744df['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xb4a43,_0x1e98b4={}){const _0x1f5b2f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35fe77=this['_getSuggestionBlocks'](_0x354082=>_0x354082['is']('element','listItem')&&'numbered'===_0x354082['getAttribute']('listType'));if(_0x35fe77['length']<0x1)return;const _0x4afb0c=_0x35fe77['map'](_0x4c275c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c275c,'before'),this['editor']['model']['createPositionAt'](_0x4c275c,0x0)));this['editor']['model']['change'](()=>{_0x1f5b2f['markMultiRangeBlockFormat'](_0x4afb0c,{'commandName':'listStart','commandParams':[{'startIndex':_0x1e98b4['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4acfdb){if('formatBlock'!=_0x4acfdb['type']&&'formatInline'!=_0x4acfdb['type'])return;const _0x53952b=this['editor']['locale'],{data:_0x1cd73a}=_0x4acfdb;if(!_0x1cd73a)return;let _0x42080e,_0x31357f;switch(_0x1cd73a['commandName']){case'listStyle':_0x42080e='*Change\x20to:*\x20%0',_0x31357f={'type':'format','content':o(_0x53952b,_0x42080e,o(_0x53952b,this['_getTranslationKeyForListStyle'](_0x1cd73a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x42080e=_0x1cd73a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x31357f={'type':'format','content':o(_0x53952b,_0x42080e)};break;case'listStart':_0x42080e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x31357f={'type':'format','content':o(_0x53952b,_0x42080e,_0x1cd73a['commandParams'][0x0]['startIndex'])};}return _0x31357f;}['_getSuggestionBlocksForListStyle'](){const _0x25795e=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a64cb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4a64cb[0x0]?.['is']('element','listItem')&&_0x4a64cb['unshift'](..._0x25795e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4a64cb[_0x4a64cb['length']-0x1]?.['is']('element','listItem')&&_0x4a64cb['push'](..._0x25795e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4a64cb=[...new Set(_0x4a64cb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4a64cb=_0x4a64cb['filter'](_0x322d9f=>_0x322d9f['is']('element','listItem'))),_0x4a64cb;}['_getSuggestionBlocks'](_0x3ba355){const _0x2fea4b=this['editor']['plugins']['get']('LegacyListUtils');let _0x329a29=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3ba355)['map'](_0x56d50a=>{const _0x50b023=this['editor']['model']['createPositionAt'](_0x56d50a,0x0);return[..._0x2fea4b['getSiblingNodes'](_0x50b023,'backward'),..._0x2fea4b['getSiblingNodes'](_0x50b023,'forward')];})['flat']();return _0x329a29=[...new Set(_0x329a29)],_0x329a29;}['_getTranslationKeyForListStyle'](_0x3cd3cb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3cd3cb)||'default')['toUpperCase']()+'_LIST_'+_0x3cd3cb['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x5b0fc1{['afterInit'](){const _0xaf350b=this['editor'];if(!_0xaf350b['plugins']['has']('MediaEmbedEditing'))return;const _0x596439=_0xaf350b['plugins']['get']('TrackChangesEditing'),_0x3f060a=_0xaf350b['locale'];_0x596439['enableCommand']('mediaEmbed'),_0x596439['descriptionFactory']['registerElementLabel']('media',_0x4b9d47=>o(_0x3f060a,'ELEMENT_MEDIA',_0x4b9d47)),_0xaf350b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3d7683,{writer:_0x2d74e4,options:_0x1a7c1d})=>{if(_0x1a7c1d['showSuggestionHighlights'])return _0x2d74e4['createEmptyElement']('div');},'converterPriority':'high'}),_0xaf350b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x281d61,_0x32cd8c,_0x4558b1)=>{_0x4558b1['options']['showSuggestionHighlights']&&_0x281d61['stop']();},{'priority':'high'});}}class lt extends _0x5b0fc1{['afterInit'](){const _0x170370=this['editor'];_0x170370['plugins']['has']('MentionEditing')&&_0x170370['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x5b0fc1{['afterInit'](){const _0x513cd2=this['editor'];if(!_0x513cd2['plugins']['has']('MergeFieldsEditing'))return;const _0x387c77=_0x513cd2['plugins']['get']('TrackChangesEditing'),_0x2a26ce=_0x513cd2['locale'];_0x387c77['enableCommand']('insertMergeField'),_0x387c77['enableCommand']('insertMergeFieldBlock'),_0x387c77['enableCommand']('insertMergeFieldImage'),_0x387c77['descriptionFactory']['registerElementLabel']('mergeField',_0xc785e3=>o(_0x2a26ce,'ELEMENT_MERGE_FIELD',_0xc785e3)),_0x387c77['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5cc5d4=>o(_0x2a26ce,'ELEMENT_MERGE_FIELD',_0x5cc5d4)),_0x387c77['descriptionFactory']['registerDescriptionCallback'](_0x20ffce=>{if('insertion'!=_0x20ffce['type']&&'deletion'!=_0x20ffce['type'])return;const _0xdb8853=_0x20ffce['getContainedElement']();if(null==_0xdb8853)return;const _0x22b264=_0x513cd2['plugins']['get']('MergeFieldsEditing');let _0x276ad0;switch(_0x22b264['getMergeFieldType'](_0xdb8853)){case null:return;case'image':{const _0x5c6f40=_0x22b264['unwrapAffixes'](_0xdb8853['getAttribute']('src'));_0x276ad0=_0x22b264['getLabel'](_0x5c6f40)||_0x5c6f40;break;}default:{const _0x5b7d56=_0xdb8853['getAttribute']('id');_0x276ad0=_0x22b264['getLabel'](_0x5b7d56)||_0x5b7d56;break;}}return'insertion'==_0x20ffce['type']?{'type':'insertion','content':o(_0x2a26ce,'*Insert:*\x20%0','\x22'+_0x276ad0+'\x22\x20'+o(_0x2a26ce,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2a26ce,'*Remove:*\x20%0','\x22'+_0x276ad0+'\x22\x20'+o(_0x2a26ce,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x5b0fc1{['afterInit'](){const _0x1522ed=this['editor'],_0x562526=_0x1522ed['plugins']['get']('TrackChangesEditing');_0x1522ed['plugins']['has']('MultiLevelList')&&(_0x562526['enableDefaultAttributesIntegration']('multiLevelList'),_0x562526['registerBlockAttribute']('listMarkerStyle'),_0x562526['descriptionFactory']['registerDescriptionCallback'](_0xa9df71=>this['handleDescriptions'](_0xa9df71)));}['handleDescriptions'](_0x3f5db9){const _0x43bed2=this['editor']['locale'],{data:_0x3f28e1}=_0x3f5db9,_0x3d5d32={'type':'format','content':''};if(_0x3f28e1&&'listMarkerStyle'==_0x3f28e1['key']){if(!_0x3f28e1['oldValue'])return{'type':'format','content':o(_0x43bed2,'*Set\x20format:*\x20%0',o(_0x43bed2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f28e1['newValue']+')'};if(!_0x3f28e1['newValue']){let _0x23c556=_0x3f5db9['head'];for(;_0x23c556;){if(_0x23c556['data']&&'listType'==_0x23c556['data']['key']&&_0x23c556['data']['newValue'])return _0x3d5d32;_0x23c556=_0x23c556['next'];}return{'type':'format','content':o(_0x43bed2,'*Remove\x20format:*\x20%0',o(_0x43bed2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f28e1['oldValue']+')'};}}}}class pt extends _0x5b0fc1{['afterInit'](){const _0x5d70c9=this['editor'];if(!_0x5d70c9['plugins']['has']('PageBreakEditing'))return;_0x5d70c9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x45ee98=_0x5d70c9['plugins']['get']('TrackChangesEditing'),_0x4bbdc5=_0x5d70c9['locale'];_0x45ee98['descriptionFactory']['registerElementLabel']('pageBreak',_0x3fb1b3=>o(_0x4bbdc5,'ELEMENT_PAGE_BREAK',_0x3fb1b3));}}class kt extends _0x5b0fc1{['afterInit'](){const _0x2ba95e=this['editor'];if(!_0x2ba95e['plugins']['has']('Paragraph'))return;const _0x2e6516=_0x2ba95e['locale'],_0x2849af=_0x2ba95e['plugins']['get']('TrackChangesEditing');_0x2849af['descriptionFactory']['registerElementLabel']('paragraph',_0x2c8473=>o(_0x2e6516,'ELEMENT_PARAGRAPH',_0x2c8473)),_0x2849af['enableDefaultAttributesIntegration']('paragraph'),_0x2849af['enableCommand']('insertParagraph'),_0x2ba95e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2ba95e),{'priority':'highest'}),_0x2ba95e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1c0d18,_0x39b2f2,_0x205c7b)=>{_0x205c7b['options']['showSuggestionHighlights']&&nr(_0x2ba95e,{'showActiveMarker':!0x1})(_0x1c0d18,_0x39b2f2,_0x205c7b);},{'priority':'highest'});const _0x54bb62=_0x2849af['descriptionFactory'];_0x54bb62['registerDescriptionCallback'](_0x5e7df3=>{if('insertion'!==_0x5e7df3['type'])return;const {start:_0x10119b,end:_0x336d1d}=_0x5e7df3['getFirstRange']();if(!_0x10119b['isTouching'](_0x336d1d)||!_0x10119b['nodeAfter'])return;const _0x23bfd9=_0x2ba95e['model']['schema'],_0x9e1065=_0x10119b['nodeAfter'];return _0x23bfd9['isBlock'](_0x9e1065)&&!_0x23bfd9['isLimit'](_0x9e1065)&&_0x23bfd9['checkChild'](_0x9e1065,'$text')?{'type':'insertion','content':o(_0x2e6516,'*Insert:*\x20%0',_0x54bb62['getItemLabel'](_0x9e1065,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x271780=this['editor'],_0x975d71=_0x271780['locale'];_0x271780['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7214bb=>{if('formatBlock'!=_0x7214bb['type'])return;const {data:_0x14a782}=_0x7214bb;return _0x14a782&&'paragraph'==_0x14a782['commandName']?{'type':'format','content':o(_0x975d71,'*Change\x20to:*\x20%0',o(_0x975d71,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2681fb,{showActiveMarker:_0x5afb04=!0x0}={}){return(_0x59ba10,_0x46aeec,_0x501079)=>{const _0x3c04bd=_0x2681fb['plugins']['get']('TrackChangesEditing'),_0x49af21=_0x46aeec['markerRange']['start'],_0x52078e=_0x46aeec['markerRange']['end'],_0x283922=_0x2681fb['model']['schema'];if(!_0x49af21['isTouching'](_0x52078e)||!_0x49af21['nodeAfter'])return;const _0x5bee92=_0x49af21['nodeAfter'];if(_0x283922['isBlock'](_0x5bee92)&&!_0x283922['isLimit'](_0x5bee92)&&_0x283922['checkChild'](_0x5bee92,'$text')){if(!_0x501079['consumable']['consume'](_0x46aeec['markerRange'],_0x59ba10['name']))return;const {id:_0x35e31f,authorId:_0x489138}=_0x3c04bd['_splitMarkerName'](_0x46aeec['markerName']),_0x4410f9=_0x501079['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x35e31f,'data-author-id':_0x489138}),_0x13d80b=_0x501079['mapper']['toViewPosition'](_0x52078e);_0x5afb04&&_0x3c04bd['activeMarkers']['includes'](_0x46aeec['markerName'])&&_0x501079['writer']['addClass']('ck-suggestion-marker--active',_0x4410f9),_0x501079['writer']['insert'](_0x13d80b,_0x4410f9),_0x501079['mapper']['bindElementToMarker'](_0x4410f9,_0x46aeec['markerName']);}};}class wt extends _0x5b0fc1{['afterInit'](){const _0x5999f5=this['editor'];_0x5999f5['commands']['get']('replaceSource')&&_0x5999f5['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x5b0fc1{['afterInit'](){const _0x2cb8e9=this['editor'];if(!_0x2cb8e9['plugins']['has']('RemoveFormatEditing'))return;_0x2cb8e9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf66b91=this['editor'];_0xf66b91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b76ee=>{if('formatBlock'!=_0x5b76ee['type']&&'formatInline'!=_0x5b76ee['type'])return;const {data:_0x575c36}=_0x5b76ee;return _0x575c36&&'removeFormat'==_0x575c36['commandName']?{'type':'format','content':o(_0xf66b91['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x5b0fc1{['afterInit'](){const _0x30cdac=this['editor'];if(!_0x30cdac['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x474c1d=_0x30cdac['plugins']['get']('TrackChangesEditing');_0x474c1d['enableCommand']('goToPreviousRestrictedEditingException'),_0x474c1d['enableCommand']('goToNextRestrictedEditingException');const _0x27ef2c=_0x30cdac['plugins']['get']('RestrictedEditingModeEditing');_0x27ef2c['enableCommand']('trackChanges'),_0x27ef2c['enableCommand']('acceptSuggestion'),_0x27ef2c['enableCommand']('discardSuggestion'),_0x27ef2c['enableCommand']('acceptAllSuggestions'),_0x27ef2c['enableCommand']('discardAllSuggestions'),_0x27ef2c['enableCommand']('acceptSelectedSuggestions'),_0x27ef2c['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x5b0fc1{['afterInit'](){const _0x57a4d1=this['editor'];if(!_0x57a4d1['plugins']['has']('ShiftEnter'))return;const _0x38597e=_0x57a4d1['plugins']['get']('TrackChangesEditing');_0x38597e['enableCommand']('shiftEnter'),_0x57a4d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x57a4d1),{'priority':'high'}),_0x57a4d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x57a4d1),{'priority':'high'}),_0x57a4d1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f0d27,_0x42cebf,_0x366de3)=>{_0x366de3['options']['showSuggestionHighlights']&&je(_0x57a4d1,{'showActiveMarker':!0x1})(_0x2f0d27,_0x42cebf,_0x366de3);}),_0x38597e['descriptionFactory']['registerElementLabel']('softBreak',_0x2274bd=>o(_0x57a4d1['locale'],'ELEMENT_LINE_BREAK',_0x2274bd));}}function je(_0x3d326a,{showActiveMarker:_0x3aa13b=!0x0}={}){return(_0x3e803c,_0x5743b9,_0xfb4039)=>{const _0x5ddbd8=_0x3d326a['plugins']['get']('TrackChangesEditing');if(!_0xfb4039['consumable']['test'](_0x5743b9['markerRange'],_0x3e803c['name']))return;const _0x3fddcc=_0x3d326a['model'];for(const _0x198f6b of _0x5743b9['markerRange']['getItems']()){if(!_0x198f6b['is']('element','softBreak'))continue;const _0x399903='deletion'==_0x5743b9['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2d7cfd,authorId:_0x56cd49}=_0x5ddbd8['_splitMarkerName'](_0x5743b9['markerName']),_0x4b849e=_0xfb4039['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x399903,'data-suggestion':_0x2d7cfd,'data-author-id':_0x56cd49}),_0x5e7950=_0xfb4039['mapper']['toViewPosition'](_0x3fddcc['createPositionBefore'](_0x198f6b));_0x3aa13b&&_0x5ddbd8['activeMarkers']['includes'](_0x5743b9['markerName'])&&_0xfb4039['writer']['addClass']('ck-suggestion-marker--active',_0x4b849e),_0xfb4039['writer']['insert'](_0x5e7950,_0x4b849e),_0xfb4039['mapper']['bindElementToMarker'](_0x4b849e,_0x5743b9['markerName']);}};}class St extends _0x5b0fc1{['afterInit'](){const _0x1255af=this['editor'],_0x308caa=_0x1255af['model'],_0x2f46c3=_0x1255af['locale'];if(!_0x1255af['plugins']['has']('StandardEditingModeEditing'))return;const _0x3a92c4=_0x1255af['plugins']['get']('TrackChangesEditing'),_0x94f6a0='restrictedEditingException',_0x2dbfc7=_0x1255af['commands']['get'](_0x94f6a0);_0x3a92c4['enableCommand'](_0x94f6a0,(_0x49a7f0,_0x5f3d11={})=>{const _0x302412=_0x308caa['document']['selection'];if(_0x302412['isCollapsed'])return void _0x49a7f0(_0x5f3d11);const _0x417d8f=void 0x0!==_0x5f3d11['forceValue']?_0x5f3d11['forceValue']:!_0x2dbfc7['value'];_0x308caa['change'](()=>{const _0x3e1c5f=Array['from'](_0x302412['getRanges']());for(const _0x1e81f8 of _0x3e1c5f){const _0x3da533=_0x417d8f?[_0x1e81f8]:io(_0x94f6a0,_0x1e81f8,_0x308caa);for(const _0x16d72e of _0x3da533)_0x3a92c4['markInlineFormat'](_0x16d72e,{'commandName':_0x94f6a0,'commandParams':[{'forceValue':_0x417d8f}]});}});}),_0x3a92c4['descriptionFactory']['registerDescriptionCallback'](_0x540770=>{if('formatBlock'!=_0x540770['type']&&'formatInline'!=_0x540770['type'])return;const {data:_0x5433d1}=_0x540770;return _0x5433d1&&_0x5433d1['commandName']==_0x94f6a0?_0x5433d1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f46c3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2f46c3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x5b0fc1{['afterInit'](){const _0x1e19e1=this['editor'];if(!_0x1e19e1['plugins']['has']('Style')||!_0x1e19e1['plugins']['has']('DataSchema'))return;const _0x34a141=_0x1e19e1['plugins']['get']('TrackChangesEditing'),_0x455ea3=_0x1e19e1['locale'],_0x4e7743=_0x1e19e1['config']['get']('style')||{},_0x212ba9=_0x1e19e1['plugins']['get']('GeneralHtmlSupport'),_0x3e21fd=_0x1e19e1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1e19e1['plugins']['get']('DataSchema'),_0x4e7743['definitions']);_0x34a141['enableDefaultAttributesIntegration']('style');const _0x2b5ebc=new Set();for(const _0x280ff8 of _0x3e21fd['block']){const _0x317c2a=_0x212ba9['getGhsAttributeNameForElement'](_0x280ff8['element']);_0x2b5ebc['add'](_0x317c2a);}const _0x2c9d19=new Set();for(const _0xd3db5b of _0x3e21fd['inline']){const _0x4e5748=_0x212ba9['getGhsAttributeNameForElement'](_0xd3db5b['element']);_0x2c9d19['add'](_0x4e5748);for(const _0x3e86c3 of _0xd3db5b['ghsAttributes'])_0x2c9d19['add'](_0x3e86c3);}for(const _0x929de2 of _0x2b5ebc)_0x34a141['registerBlockAttribute'](_0x929de2),_0x34a141['descriptionFactory']['registerAttributeLabel'](_0x929de2,o(_0x455ea3,'FORMAT_STYLE'));for(const _0x29f325 of _0x2c9d19)_0x34a141['registerInlineAttribute'](_0x29f325),_0x34a141['descriptionFactory']['registerAttributeLabel'](_0x29f325,o(_0x455ea3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54f796=this['editor'],_0x4f464c=_0x54f796['locale'];_0x54f796['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32b26f=>{if('formatBlock'!=_0x32b26f['type']&&'formatInline'!=_0x32b26f['type'])return;const {data:_0x9d7c9c}=_0x32b26f;return _0x9d7c9c&&'style'===_0x9d7c9c['commandName']?_0x9d7c9c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f464c,'*Set\x20format:*\x20%0',_0x9d7c9c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4f464c,'*Remove\x20format:*\x20%0',_0x9d7c9c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x5b0fc1{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1f366d){super(_0x1f366d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x51d4d8=this['editor'],_0x42f8d9=_0x51d4d8['model']['document']['selection'];if(!_0x51d4d8['plugins']['has']('TableEditing'))return;const _0x435c89=_0x51d4d8['locale'],_0x5ebaa8=_0x51d4d8['plugins']['get']('TrackChangesEditing'),_0x32716e=_0x51d4d8['plugins']['get']('TableUtils');_0x5ebaa8['descriptionFactory']['registerElementLabel']('table',_0x689cf9=>o(_0x435c89,'ELEMENT_TABLE',_0x689cf9)),this['_setupColumnsRowsFixing'](),_0x5ebaa8['enableCommand']('insertTable'),_0x5ebaa8['enableCommand']('selectTableRow'),_0x5ebaa8['enableCommand']('selectTableColumn');for(const _0x21502b of['insertTableRowAbove','insertTableRowBelow']){const _0x2ca1c4=_0x51d4d8['commands']['get'](_0x21502b);_0x5ebaa8['enableCommand'](_0x21502b,_0x16e103=>{_0x51d4d8['model']['change'](_0x1e696e=>{_0x16e103();const _0x5cb05a='above'===_0x2ca1c4['order'],_0x419162=_0x32716e['getSelectionAffectedTableCells'](_0x42f8d9),_0xae4c92=_0x32716e['getRowIndexes'](_0x419162),_0x31224c=_0x5cb05a?_0xae4c92['first']-0x1:_0xae4c92['last']+0x1,_0x29a51d=_0x419162[0x0]['findAncestor']('table'),_0x19dade=_0x32716e['createTableWalker'](_0x29a51d,{'startRow':_0x31224c,'endRow':_0x31224c}),_0x5bcb76=Array['from'](_0x19dade)['map'](_0x24e25b=>_0x1e696e['createRangeOn'](_0x24e25b['cell']));_0x5ebaa8['markMultiRangeInsertion'](_0x5bcb76,'tableRow');});});}for(const _0x1d4b66 of['insertTableColumnLeft','insertTableColumnRight']){const _0xe934d1=_0x51d4d8['commands']['get'](_0x1d4b66);_0x5ebaa8['enableCommand'](_0x1d4b66,_0x4ed5d3=>{_0x51d4d8['model']['change'](_0x2e7302=>{_0x4ed5d3();const _0x1ee6d5='left'===_0xe934d1['order'],_0x15740c=_0x32716e['getSelectionAffectedTableCells'](_0x42f8d9),_0x36e429=_0x32716e['getColumnIndexes'](_0x15740c),_0x480d71=_0x1ee6d5?_0x36e429['first']-0x1:_0x36e429['last']+0x1,_0x4b4bb0=_0x15740c[0x0]['findAncestor']('table'),_0x3fcac7=_0x32716e['createTableWalker'](_0x4b4bb0,{'startRow':0x0,'column':_0x480d71,'includeAllSlots':!0x1}),_0x21b7e2=Array['from'](_0x3fcac7)['map'](_0x241eb4=>_0x2e7302['createRangeOn'](_0x241eb4['cell']));_0x5ebaa8['markMultiRangeInsertion'](_0x21b7e2,'tableColumn');});});}for(const _0x235d7f of['removeTableRow','removeTableColumn']){const _0x1595dd=_0x235d7f['substr'](0xb),_0x9abbc8=_0x1595dd['toLowerCase'](),_0xc697b=_0x9abbc8['substr'](0x0,0x3)+'span',_0x57e98b='table'+_0x1595dd,_0x867f25='min'+_0x1595dd,_0x110fc8='max'+_0x1595dd;_0x5ebaa8['enableCommand'](_0x235d7f,()=>{_0x51d4d8['model']['change'](_0x558c11=>{const _0x4377fc=_0x32716e['getSelectionAffectedTableCells'](_0x42f8d9),_0x1644ff=_0x4377fc[0x0]['findAncestor']('table');let _0x104c3c;if('removeTableRow'==_0x235d7f){const _0x356cfa=_0x32716e['getRowIndexes'](_0x4377fc);_0x104c3c={'startRow':_0x356cfa['first'],'endRow':_0x356cfa['last'],'includeAllSlots':!0x0};}else{const _0x18a656=_0x32716e['getColumnIndexes'](_0x4377fc);_0x104c3c={'startColumn':_0x18a656['first'],'endColumn':_0x18a656['last'],'includeAllSlots':!0x0};}const _0x5df784=_0x32716e['createTableWalker'](_0x1644ff,_0x104c3c),_0x42e0d3=Array['from'](_0x5df784)['map'](({cell:_0x535983})=>_0x535983),_0x9ae96c=Ne(_0x42e0d3['filter'](_0xd8a1e0=>_0xd8a1e0['hasAttribute'](_0xc697b))),_0x51dfc5=Ne(_0x42e0d3['filter'](_0x52343c=>!_0x52343c['hasAttribute'](_0xc697b)))['map'](_0x355859=>_0x558c11['createRangeOn'](_0x355859)),_0x4bed94=_0x5ebaa8['markMultiRangeDeletion'](_0x51dfc5,_0x57e98b);if(_0x4bed94&&('tableRow'==_0x4bed94['subType']||'tableColumn'==_0x4bed94['subType'])){const _0x511431=this['_getSuggestionCoords'](_0x4bed94);for(const _0x1604b8 of _0x9ae96c){const _0x19b4d4=_0x558c11['createRangeOn'](_0x1604b8),_0x193514=_0x32716e['getCellLocation'](_0x1604b8),_0x2ac4f5=_0x1604b8['getAttribute'](_0xc697b)-0x1,_0x9f161f=_0x511431[_0x867f25],_0x34a22f=_0x511431[_0x110fc8];_0x9f161f<=_0x193514[_0x9abbc8]&&_0x193514[_0x9abbc8]+_0x2ac4f5<=_0x34a22f&&_0x4bed94['addRange'](_0x19b4d4);}}});});}function _0x2c25f2(_0x159e53){const _0x41518e=Array['from'](_0x42f8d9['getRanges']())['map'](_0x4b62f5=>_0xb0dd32['fromRange'](_0x4b62f5));_0x51d4d8['model']['change'](_0x36ec71=>{const _0x39dbd3=_0x36ec71['batch'];_0x159e53=_0x159e53['filter'](_0x52315c=>'$graveyard'!=_0x52315c['root']['rootName']),_0x36ec71['setSelection'](_0x159e53),_0x51d4d8['commands']['get']('removeTableRow')['refresh'](),_0x51d4d8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x51d4d8['model']['enqueueChange'](()=>{_0x51d4d8['model']['enqueueChange'](_0x39dbd3,_0x10cdc1=>{const _0x126c8e=_0x41518e['filter'](_0x3ebf2a=>'$graveyard'!=_0x3ebf2a['root']['rootName']);_0x126c8e['length']>0x0&&_0x10cdc1['setSelection'](_0x126c8e);for(const _0x1eae8c of _0x41518e)_0x1eae8c['detach']();});});});}function _0x26982b(_0x35ae76){_0x51d4d8['model']['change'](_0x429603=>{const _0xbc29dc=Array['from'](_0x42f8d9['getRanges']())['map'](_0x5062d9=>_0xb0dd32['fromRange'](_0x5062d9)),_0x43dda8=[];for(const _0x33d54a of _0x35ae76)for(const _0x5034b5 of _0x33d54a['getItems']({'shallow':!0x0}))_0x43dda8['push'](_0x5034b5);for(const _0x4398d9 of _0x43dda8)'$graveyard'!=_0x4398d9['root']['rootName']&&(_0x429603['setSelection'](_0x429603['createPositionAt'](_0x4398d9,0x0)),_0x51d4d8['commands']['get']('removeTableColumn')['refresh'](),_0x51d4d8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x41409b=_0xbc29dc['filter'](_0x5940ab=>'$graveyard'!=_0x5940ab['root']['rootName']);_0x41409b['length']>0x0&&_0x429603['setSelection'](_0x41409b);for(const _0x813ed4 of _0xbc29dc)_0x813ed4['detach']();});}function _0x1b2f11(_0x26d311,_0x3e73b3){return _0x3e73b3['every'](_0x1bbeaf=>_0x26d311['some'](_0x298620=>_0x298620['end']['isEqual'](_0x1bbeaf['start'])||_0x1bbeaf['end']['isEqual'](_0x298620['start'])));}function _0x2f3589(_0x226c19,_0x228576){return!_0x226c19['some'](_0x3eff9d=>_0x228576['some'](_0x109938=>_0x3eff9d['isIntersecting'](_0x109938)))&&_0x226c19['some'](_0x483f48=>_0x228576['some'](_0x325ed4=>_0x483f48['end']['isTouching'](_0x325ed4['start'])));}_0x51d4d8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a327c,_0x2be6d0,_0x356869)=>{if(!_0x356869['options']['showSuggestionHighlights'])return;const _0x532e88=_0x2be6d0['item'];if(!_0x532e88||!_0x532e88['is']('element','tableCell'))return;const _0x5a4c7b=_0x356869['mapper']['toViewElement'](_0x532e88);if(_0x5a4c7b){const {id:_0x1c74d3,authorId:_0xf5f5c}=_0x5ebaa8['_splitMarkerName'](_0x2be6d0['markerName']);_0x5b7cda(_0x5a4c7b,_0x356869['writer'],(_0x459bd9,_0x505891,_0x4e0479)=>{_0x4e0479['addClass'](_0x551839(_0x505891['classes']),_0x459bd9),_0x4e0479['setAttribute']('data-suggestion-id',_0x1c74d3,_0x459bd9),_0x4e0479['setAttribute']('data-author-id',_0xf5f5c,_0x459bd9);},(_0x2aefe8,_0x3cb124,_0x3988fd)=>{_0x3988fd['removeClass'](_0x551839(_0x3cb124['classes']),_0x2aefe8),_0x3988fd['removeAttribute']('data-suggestion-id',_0x2aefe8),_0x3988fd['removeAttribute']('data-author-id',_0x2aefe8);});}},{'priority':'highest'}),_0x5ebaa8['descriptionFactory']['registerDescriptionCallback'](_0x4795f5=>{if('insertion'!=_0x4795f5['type']&&'deletion'!=_0x4795f5['type'])return;const _0x295341=_0x4795f5['getContainedElement']();if(null!=_0x295341&&_0x295341['is']('element','table')){if('insertion'==_0x4795f5['type']){const _0x144f88=_0x4795f5['getItems']()['filter'](_0xd5f91a=>_0xd5f91a['is']('$textProxy'))['map'](_0x2156b4=>_0x2156b4['data']);if(_0x144f88['length'])return{'type':'insertion','content':o(_0x435c89,'*Insert:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x144f88['join']('\x20')+'\x22'))};}if('deletion'==_0x4795f5['type']){const _0x5f4340=_0x4795f5['getItems']()['filter'](_0x2b39bd=>_0x2b39bd['is']('$textProxy'))['map'](_0x4b0eb5=>_0x4b0eb5['data']);if(_0x5f4340['length'])return{'type':'deletion','content':o(_0x435c89,'*Remove:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5f4340['join']('\x20')+'\x22'))};}}}),_0x5ebaa8['descriptionFactory']['registerDescriptionCallback'](_0x27e8ef=>{if('tableRow'==_0x27e8ef['subType']){const _0x17b8a1=_0x27e8ef['getItems']()['filter'](_0x302bbb=>_0x302bbb['is']('$textProxy'))['map'](_0x23b5c6=>_0x23b5c6['data']),_0x31fe1f=this['_getSuggestionCoords'](_0x27e8ef),_0x594886=_0x31fe1f['maxRow']-_0x31fe1f['minRow']+0x1;if('insertion'==_0x27e8ef['type'])return _0x17b8a1['length']?{'type':'insertion','content':o(_0x435c89,'*Insert:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x594886,'\x22'+_0x17b8a1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x435c89,'*Insert:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_ROW',_0x594886))};if('deletion'==_0x27e8ef['type'])return _0x17b8a1['length']?{'type':'deletion','content':o(_0x435c89,'*Remove:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x594886,'\x22'+_0x17b8a1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x435c89,'*Remove:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_ROW',_0x594886))};}if('tableColumn'==_0x27e8ef['subType']){const _0x5ff1e1=_0x27e8ef['getItems']()['filter'](_0x23c981=>_0x23c981['is']('$textProxy'))['map'](_0x32592d=>_0x32592d['data']),_0x5e044c=this['_getSuggestionCoords'](_0x27e8ef),_0x1b9505=_0x5e044c['maxColumn']-_0x5e044c['minColumn']+0x1;if('insertion'==_0x27e8ef['type'])return _0x5ff1e1['length']?{'type':'insertion','content':o(_0x435c89,'*Insert:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b9505,'\x22'+_0x5ff1e1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x435c89,'*Insert:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_COLUMN',_0x1b9505))};if('deletion'==_0x27e8ef['type'])return _0x5ff1e1['length']?{'type':'deletion','content':o(_0x435c89,'*Remove:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b9505,'\x22'+_0x5ff1e1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x435c89,'*Remove:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_COLUMN',_0x1b9505))};}}),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c25f2),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c25f2),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x26982b),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x26982b),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1b2f11),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1b2f11),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2f3589),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2f3589);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4531b3=this['editor'],_0x402677=_0x4531b3['model']['document']['selection'];return(_0x562c8f,_0x2af705)=>{_0x4531b3['model']['change'](_0x24c78d=>{const {commandName:_0x54127d,commandParams:_0x18327e}=_0x2af705;let _0x33e8ff=_0x562c8f[0x0]['end']['nodeBefore'];_0x18327e&&_0x18327e[0x0]&&!0x1===_0x18327e[0x0]['forceValue']&&(_0x33e8ff=_0x562c8f[0x0]['start']['nodeAfter']);const _0x2c3fcb=_0x24c78d['createRangeIn'](_0x33e8ff);if('$graveyard'==_0x2c3fcb['root']['rootName'])return;const _0x249abd=Array['from'](_0x402677['getRanges']())['map'](_0x54557f=>_0xb0dd32['fromRange'](_0x54557f));_0x24c78d['setSelection'](_0x2c3fcb),_0x4531b3['commands']['get'](_0x54127d)['refresh'](),_0x18327e['push']({'forceDefaultExecution':!0x0}),_0x4531b3['execute'](_0x54127d,..._0x18327e);const _0xbdb54d=_0x249abd['filter'](_0x29880e=>'$graveyard'!=_0x29880e['root']['rootName']);_0xbdb54d['length']>0x0&&_0x24c78d['setSelection'](_0xbdb54d);for(const _0x3aa1a1 of _0x249abd)_0x3aa1a1['detach']();});};}['_getCoordsForCells'](_0x287a24){const _0x508168=this['editor']['plugins']['get']('TableUtils');let _0x251b39=Number['MAX_SAFE_INTEGER'],_0x1b8bc3=Number['MIN_SAFE_INTEGER'],_0x185140=Number['MAX_SAFE_INTEGER'],_0x60921e=Number['MIN_SAFE_INTEGER'];for(const _0x1d134a of _0x287a24){if('$graveyard'==_0x1d134a['root']['rootName'])continue;const {row:_0x4e24a3,column:_0xbc7f89}=_0x508168['getCellLocation'](_0x1d134a),_0x161322=_0x1d134a['hasAttribute']('rowspan')?_0x1d134a['getAttribute']('rowspan')-0x1:0x0,_0x2fb822=_0x1d134a['hasAttribute']('colspan')?_0x1d134a['getAttribute']('colspan')-0x1:0x0;_0x251b39=_0x4e24a3<_0x251b39?_0x4e24a3:_0x251b39,_0x1b8bc3=_0x4e24a3+_0x161322>_0x1b8bc3?_0x4e24a3+_0x161322:_0x1b8bc3,_0x185140=_0xbc7f89<_0x185140?_0xbc7f89:_0x185140,_0x60921e=_0xbc7f89+_0x2fb822>_0x60921e?_0xbc7f89+_0x2fb822:_0x60921e;}return{'minRow':_0x251b39,'maxRow':_0x1b8bc3,'minColumn':_0x185140,'maxColumn':_0x60921e};}['_setupColumnsRowsFixing'](){const _0x2ab238=this['editor'],_0x2ee752=_0x2ab238['plugins']['get']('TrackChangesEditing'),_0xd61d3b=_0x2ab238['plugins']['get']('TableUtils');_0x2ab238['model']['document']['on']('change:data',()=>{const _0x12a82b=Array['from'](_0x2ab238['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20a879,data:_0x532e08}of _0x12a82b){const {group:_0x135d8b,id:_0x2eb1d1,subType:_0x174487}=_0x2ee752['_splitMarkerName'](_0x20a879);if('suggestion'!=_0x135d8b)continue;if(null!=_0x532e08['oldRange'])continue;const _0x2c26a4=_0x2ee752['getSuggestion'](_0x2eb1d1);this['_tablePostFixingSubtypes']['includes'](_0x174487)&&this['_tableSuggestions']['add'](_0x2c26a4);}},{'priority':'low'});const _0x349200=(_0x6e6f40,_0x15caa3)=>{let _0xa143c2=!0x1;const _0xf08759=_0x15caa3['createRangeOn'](_0x6e6f40),_0x469e91=_0x6e6f40['findAncestor']('table'),_0x27a00e=_0xd61d3b['getCellLocation'](_0x6e6f40);for(const _0x43bc2 of this['_tableSuggestions']){const _0x275d19=_0x43bc2['subType'],_0x3d5b5f=_0x275d19['startsWith']('tablePaste'),_0x196de2=_0x275d19['substr'](_0x3d5b5f?0xa:0x5),_0x5e6668=_0x196de2['toLowerCase'](),_0x822f35=_0x5e6668['substr'](0x0,0x3)+'span',_0x4c26ad='min'+_0x196de2,_0x1a4dc8='max'+_0x196de2;if(!_0x43bc2['isInContent'])continue;if(_0x469e91!=_0x43bc2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x43bc2['isIntersectingWithRange'](_0xf08759))continue;const _0x5008f1=_0x6e6f40['hasAttribute'](_0x822f35)?_0x6e6f40['getAttribute'](_0x822f35)-0x1:0x0,_0x47f68b=this['_getSuggestionCoords'](_0x43bc2),_0x641f4d=_0x47f68b[_0x4c26ad],_0x167b68=_0x47f68b[_0x1a4dc8];_0x641f4d<=_0x27a00e[_0x5e6668]&&_0x27a00e[_0x5e6668]+_0x5008f1<=_0x167b68&&(_0x43bc2['addRange'](_0xf08759),_0xa143c2=!0x0);}return _0xa143c2;};_0x2ab238['model']['document']['registerPostFixer'](_0x546388=>{let _0x3484ef=!0x1;for(const _0x258771 of _0x2ab238['model']['document']['differ']['getChanges']())if('insert'==_0x258771['type']){if('tableRow'==_0x258771['name']){for(const _0x5f5332 of _0x258771['position']['nodeAfter']['getChildren']())_0x3484ef=_0x3484ef||_0x349200(_0x5f5332,_0x546388);}else'tableCell'==_0x258771['name']&&(_0x3484ef=_0x3484ef||_0x349200(_0x258771['position']['nodeAfter'],_0x546388));}return _0x3484ef;});}['_getSuggestionCoords'](_0x35ae45){return this['_getCoordsForCells'](_0x35ae45['getRanges']()['map'](_0x53f3d1=>_0x53f3d1['start']['nodeAfter']));}}function Ne(_0xb1f4ab){return Array['from'](new Set(_0xb1f4ab)['values']());}class _t extends _0x5b0fc1{static get['requires'](){return[At];}['afterInit'](){const _0x152091=this['editor'],_0x448b18=_0x152091['model']['document']['selection'],_0x2dca42=_0x152091['locale'];if(!_0x152091['plugins']['has']('TableEditing'))return;const _0x2b67ae=_0x152091['plugins']['get']('TrackChangesEditing'),_0x2b54a4=_0x152091['plugins']['get']('TableUtils'),_0x15a30a=_0x152091['plugins']['get'](At);_0x15a30a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2b67ae['enableCommand']('mergeTableCells',()=>{const _0x4a0e60=_0x2b54a4['getSelectionAffectedTableCells'](_0x152091['model']['document']['selection']);_0x152091['model']['change'](()=>{_0x2b67ae['markMultiRangeBlockFormat'](_0x4a0e60,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x152091['commands']['get']('mergeTableCells')['on']('execute',(_0x17d57e,_0x48592f)=>{_0x152091['commands']['get']('trackChanges')['value']&&(_0x48592f['length']>0x0&&_0x48592f[_0x48592f['length']-0x1]&&_0x48592f[_0x48592f['length']-0x1]['forceDefaultExecution']||_0x2b67ae['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x17d57e['stop']());},{'priority':'highest'});for(const _0x35f961 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3c4d61=_0x152091['commands']['get'](_0x35f961);_0x2b67ae['enableCommand'](_0x35f961,()=>{const _0x2e27b8=_0x152091['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2aa003=>_0x2aa003['is']('element','tableCell')),_0x41b574=_0x3c4d61['value'];_0x152091['model']['change'](()=>{_0x2b67ae['markMultiRangeBlockFormat']([_0x2e27b8,_0x41b574],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x182323 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x34a060=_0x152091['commands']['get'](_0x182323);_0x2b67ae['enableCommand'](_0x182323,()=>{const _0x79a18f=_0x2b54a4['getSelectionAffectedTableCells'](_0x152091['model']['document']['selection'])[0x0],_0xa542c2=_0x79a18f['findAncestor']('table'),{column:_0x367b97,row:_0xb9a4e6}=_0x2b54a4['getCellLocation'](_0x79a18f);let _0xd3b65c=[];if('horizontally'==_0x34a060['direction']){const _0xec05cc=_0x2b54a4['createTableWalker'](_0xa542c2,{'startRow':_0xb9a4e6,'endRow':_0xb9a4e6,'includeAllSlots':!0x0});_0xd3b65c=Array['from'](_0xec05cc)['map'](_0x1fc030=>_0x1fc030['cell']);}else{const _0x570337=_0x2b54a4['createTableWalker'](_0xa542c2,{'column':_0x367b97,'includeAllSlots':!0x0});_0xd3b65c=Array['from'](_0x570337)['map'](_0x399e82=>_0x399e82['cell']);}_0x152091['model']['change'](_0x19dc29=>{_0x2b67ae['markBlockFormat'](_0x19dc29['createRangeOn'](_0x79a18f),{'commandName':_0x182323,'commandParams':[]},_0xd3b65c,_0x182323);});});}_0x2b67ae['descriptionFactory']['registerDescriptionCallback'](_0x2b74e7=>{if('formatBlock'!=_0x2b74e7['type']&&'formatInline'!=_0x2b74e7['type'])return;const {data:_0x39f284}=_0x2b74e7;return _0x39f284&&'mergeTableCells'==_0x39f284['commandName']?{'type':'format','content':o(_0x2dca42,'*Merge\x20cells*')}:void 0x0;}),_0x2b67ae['descriptionFactory']['registerDescriptionCallback'](_0x280673=>{if('formatBlock'!=_0x280673['type']&&'formatInline'!=_0x280673['type'])return;const {data:_0x95fc5d}=_0x280673;return _0x95fc5d?'splitTableCellVertically'==_0x95fc5d['commandName']?{'type':'format','content':o(_0x2dca42,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x95fc5d['commandName']?{'type':'format','content':o(_0x2dca42,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5bc31b=_0x15a30a['_acceptFormatSuggestionCallbackFactory']();for(const _0x10b0cf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2b67ae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10b0cf,'accept',_0x5bc31b);for(const _0x5e5952 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2b67ae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e5952,'accept',_0x5bc31b);_0x2b67ae['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1e5ddd=>{_0x152091['model']['change'](_0x3a282f=>{const _0x1c6041=Array['from'](_0x448b18['getRanges']())['map'](_0x8b5e5d=>_0xb0dd32['fromRange'](_0x8b5e5d));_0x3a282f['setSelection'](_0x1e5ddd),_0x152091['commands']['get']('mergeTableCells')['refresh'](),_0x152091['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2494c8=_0x1c6041['filter'](_0x22fccf=>'$graveyard'!=_0x22fccf['root']['rootName']);_0x2494c8['length']>0x0&&_0x3a282f['setSelection'](_0x2494c8);for(const _0x5e6f31 of _0x1c6041)_0x5e6f31['detach']();});});for(const _0xae8881 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5275d9=_0x152091['commands']['get'](_0xae8881);_0x5275d9['on']('set:isEnabled',(_0x320392,_0x2c8b01,_0x43bba9)=>{if(_0x43bba9){const _0x5272ee=_0x152091['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3372cd=>_0x3372cd['is']('element','tableCell'));this['_areMergableCells'](_0x5275d9['value'],_0x5272ee)||(_0x320392['return']=!0x1,_0x320392['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x52a2ad=this['editor']['commands']['get']('mergeTableCells'),_0x6d5b34=this['editor']['plugins']['get']('TableUtils');if(!_0x52a2ad['isEnabled'])return!0x1;const _0x104e16=_0x6d5b34['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4b1d25 of _0x104e16)for(const _0x429c1a of _0x104e16)if(_0x4b1d25!=_0x429c1a&&!this['_areMergableCells'](_0x4b1d25,_0x429c1a))return!0x1;return!0x0;}['_areMergableCells'](_0x2ad201,_0x1bd695){const _0x3333cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4351dd=this['editor']['model']['createRangeOn'](_0x2ad201),_0x496093=this['editor']['model']['createRangeOn'](_0x1bd695),_0x3e4ac6=new Set(),_0x238efa=new Set();for(const _0x1d1e05 of _0x3333cf['getSuggestions']())if(('insertion'==_0x1d1e05['type']||'deletion'==_0x1d1e05['type']||'mergeTableCells'==_0x1d1e05['subType'])&&_0x1d1e05['isInContent']){for(const _0x53e15 of _0x1d1e05['getRanges']())_0x53e15['containsRange'](_0x4351dd,!0x0)&&_0x3e4ac6['add'](_0x1d1e05['type']+':'+_0x1d1e05['author']['id']),_0x53e15['containsRange'](_0x496093,!0x0)&&_0x238efa['add'](_0x1d1e05['type']+':'+_0x1d1e05['author']['id']);}if(_0x3e4ac6['size']!=_0x238efa['size'])return!0x1;for(const _0x2c591f of _0x3e4ac6)if(!_0x238efa['has'](_0x2c591f))return!0x1;return!0x0;}}class Ct extends _0x5b0fc1{static get['requires'](){return[At];}['afterInit'](){const _0x4383c1=this['editor'];if(!_0x4383c1['plugins']['has']('TableEditing'))return;const _0x27892c=_0x4383c1['locale'],_0x331d92=_0x4383c1['plugins']['get']('TrackChangesEditing');_0x331d92['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x331d92['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x331d92['registerBlockAttribute']('headingRows'),_0x331d92['registerBlockAttribute']('headingColumns'),_0x331d92['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x27892c,'FORMAT_HEADER_ROW')),_0x331d92['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x27892c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1cda0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29ed0a=this['editor']['plugins']['get']('TableUtils'),_0x791d5c=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2b4133({showActiveMarker:_0x2b3e0d=!0x0,setDataAttribute:_0x34fa58=!0x0}={}){return(_0x47449d,_0x3227e7,_0x477b90)=>{const {type:_0x387542,id:_0x3633fa}=_0x1cda0b['_splitMarkerName'](_0x3227e7['markerName']),_0x3d8b95=_0x1cda0b['getSuggestion'](_0x3633fa),_0x3d750b=_0x3d8b95['data'];if('formatBlock'!=_0x3d8b95['type']||!_0x3d750b||'setTableColumnHeader'!=_0x3d750b['commandName'])return;if(_0x3227e7['item'])return void _0x47449d['stop']();if(!_0x477b90['consumable']['consume'](_0x3227e7['markerRange'],_0x47449d['name']))return;const _0x21bc40=_0x3227e7['markerRange']['start']['nodeAfter'],_0x3c0dfc=_0x3227e7['markerRange']['end']['nodeBefore'],_0x3a850d=_0x21bc40['parent']['parent'],{column:_0x28034b}=_0x29ed0a['getCellLocation'](_0x21bc40),{column:_0x54d09e}=_0x29ed0a['getCellLocation'](_0x3c0dfc);for(let _0x87861e=_0x28034b;_0x87861e<=_0x54d09e;_0x87861e++){const _0x448e5a=_0x29ed0a['createTableWalker'](_0x3a850d,{'column':_0x87861e,'includeAllSlots':!0x1});for(const _0x1e5545 of _0x448e5a){const _0xec72dd=_0x1e5545['cell'],_0x574acd=_0x477b90['mapper']['toViewElement'](_0xec72dd);_0x477b90['writer']['addClass']('ck-suggestion-marker-'+_0x387542,_0x574acd),_0x34fa58&&_0x477b90['writer']['setAttribute']('data-suggestion',_0x3633fa,_0x574acd),_0x477b90['mapper']['bindElementToMarker'](_0x574acd,_0x3227e7['markerName']),_0x2b3e0d&&(_0x1cda0b['activeMarkers']['includes'](_0x3227e7['markerName'])?_0x477b90['writer']['addClass']('ck-suggestion-marker--active',_0x574acd):_0x477b90['writer']['removeClass']('ck-suggestion-marker--active',_0x574acd));}}};}_0x1cda0b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x791d5c),_0x1cda0b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x791d5c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2b4133(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59c231,_0x159d35,_0x5d96be)=>{_0x5d96be['options']['showSuggestionHighlights']&&_0x2b4133({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59c231,_0x159d35,_0x5d96be);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xa65432,_0x58372f,_0x383752)=>{const {type:_0x51bbab,id:_0x56965b}=_0x1cda0b['_splitMarkerName'](_0x58372f['markerName']),_0x1537df=_0x1cda0b['getSuggestion'](_0x56965b),_0x4e785e=_0x1537df['data'];if('formatBlock'!=_0x1537df['type']||!_0x4e785e||'setTableColumnHeader'!=_0x4e785e['commandName'])return;const _0x3118d1=_0x383752['mapper']['markerNameToElements'](_0x58372f['markerName']);if(_0x3118d1){for(const _0x3fcd10 of _0x3118d1)_0x383752['writer']['removeClass']('ck-suggestion-marker-'+_0x51bbab,_0x3fcd10),_0x383752['writer']['removeClass']('ck-suggestion-marker--active',_0x3fcd10),_0x383752['writer']['removeAttribute']('data-suggestion',_0x3fcd10),_0x383752['mapper']['unbindElementFromMarkerName'](_0x3fcd10,_0x58372f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x465d52=this['editor'],_0xd5a954=_0x465d52['locale'];function _0x44a9f1(_0x42f75d){return{'type':'format','content':o(_0xd5a954,'*Format:*\x20%0',_0x42f75d)};}_0x465d52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ae8d2=>{if('formatBlock'!=_0x5ae8d2['type'])return;const {data:_0x344147}=_0x5ae8d2;if(_0x344147){if('setTableRowHeader'==_0x344147['commandName']){const _0x471189=_0x344147['commandParams'][0x0]['forceValue'];return _0x44a9f1(o(_0xd5a954,_0x471189?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x344147['commandName']){const _0x38000c=_0x344147['commandParams'][0x0]['forceValue'];return _0x44a9f1(o(_0xd5a954,_0x38000c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x5b0fc1{['afterInit'](){const _0x5e3b99=this['editor'],_0x471006=_0x5e3b99['locale'],_0x433a51=_0x5e3b99['plugins']['get']('TrackChangesEditing');function _0x242d5a(_0x51ca63){return{'type':'format','content':''+o(_0x471006,'*Set\x20table\x20type:*\x20%0',_0x51ca63)};}_0x5e3b99['plugins']['has']('TableLayout')&&(_0x433a51['enableCommand']('insertTableLayout'),_0x433a51['enableDefaultAttributesIntegration']('tableType'),_0x433a51['registerBlockAttribute']('tableType'),_0x433a51['descriptionFactory']['registerElementLabel'](_0x3455d7=>_0x3455d7['is']('element','table')&&'layout'===_0x3455d7['getAttribute']('tableType'),_0x355050=>o(_0x471006,'ELEMENT_LAYOUT_TABLE',_0x355050)),_0x433a51['descriptionFactory']['registerDescriptionCallback'](_0x515b02=>{const {data:_0x522d77}=_0x515b02;if(_0x522d77&&'tableType'==_0x522d77['key'])switch(_0x522d77['newValue']){case'layout':return _0x242d5a(o(_0x471006,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x242d5a(o(_0x471006,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x18a1d3=>[_0x18a1d3,null]));class Nt extends _0x5b0fc1{static get['requires'](){return[At];}['afterInit'](){const _0x104863=this['editor'];if(!_0x104863['plugins']['has']('TableClipboard'))return;const _0x4071b3=_0x104863['plugins']['get']('TrackChangesEditing'),_0x2e71b8=_0x104863['plugins']['get']('TableUtils'),_0x5b54b3=_0x104863['plugins']['get'](At),_0x55b825=_0x104863['plugins']['get']('TableClipboard'),_0x261151=_0x104863['plugins']['get']('TableSelection'),_0x2ff839=_0x104863['plugins']['get'](_0x187e23);_0x5b54b3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x104863['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x104863['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2d2acb=null,_0x58e6e4=!0x1;_0x2ff839['on']('contentInsertion',(_0x23de45,_0xb2d621)=>{_0x58e6e4='paste'===_0xb2d621['method'];}),_0x104863['model']['on']('insertContent',(_0x2077ce,_0x3e4151)=>{if(!_0x58e6e4&&null===_0x261151['getSelectedTableCells']())return;const [_0x3f6ebb,_0x598ff4]=_0x3e4151,_0x1793da=_0x3e4151[_0x3e4151['length']-0x1];_0x1793da&&_0x1793da['forceDefaultExecution']||_0x4071b3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x32615a,_0x21abdb,_0x5d53b0,_0x5a7cf3,_0x5e7c9b){if(_0x21abdb&&!_0x21abdb['is']('documentSelection'))return!0x1;const _0x2052e3=_0x5e7c9b['getTableIfOnlyTableInContent'](_0x32615a,_0x5d53b0);if(!_0x2052e3||!Ue(_0x2052e3,void 0x0,_0x5a7cf3))return!0x1;const _0x43e102=_0x5a7cf3['getSelectionAffectedTableCells'](_0x5d53b0['document']['selection']);if(!_0x43e102['length'])return!0x1;const _0x14a79e=_0x43e102[0x0]['findAncestor']('table'),_0x1ccae8=_0x5a7cf3['getRowIndexes'](_0x43e102),_0x53909f=_0x5a7cf3['getColumnIndexes'](_0x43e102),_0xb3dc42={'startRow':_0x1ccae8['first'],'endRow':_0x1ccae8['last'],'startColumn':_0x53909f['first'],'endColumn':_0x53909f['last']};return 0x1==_0x43e102['length']&&(_0xb3dc42['endRow']+=_0x5a7cf3['getRows'](_0x2052e3)-0x1,_0xb3dc42['endColumn']+=_0x5a7cf3['getColumns'](_0x2052e3)-0x1),Ue(_0x14a79e,_0xb3dc42,_0x5a7cf3);}(_0x3f6ebb,_0x598ff4,_0x104863['model'],_0x2e71b8,_0x55b825)&&(_0x2077ce['stop'](),_0x2d2acb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x104863['model']['change'](()=>{_0x104863['model']['insertContent'](_0x3e4151[0x0],_0x3e4151[0x1],_0x3e4151[0x2],{'forceDefaultExecution':!0x0});const _0x170cee=_0x50cf13(),{rowInsertionRanges:_0x352b1a,columnInsertionRanges:_0x41f7a6,insertionRanges:_0x2ca47a,deletionRanges:_0xfbb49c,cells:_0x522b8d}=_0x2d2acb;_0x352b1a['length']&&_0x4071b3['markMultiRangeInsertion'](_0x352b1a,'tablePasteRow',{'tablePasteChainId':_0x170cee}),_0x41f7a6['length']&&_0x4071b3['markMultiRangeInsertion'](_0x41f7a6,'tablePasteColumn',{'tablePasteChainId':_0x170cee}),_0x2ca47a['length']&&(_0x4071b3['markMultiRangeInsertion'](_0x2ca47a,'tablePaste',{'tablePasteChainId':_0x170cee,'skipNestingCheck':!0x0}),_0x2ca47a['forEach'](_0x265d89=>_0x265d89['detach']?.())),_0xfbb49c['length']&&(_0x4071b3['markMultiRangeDeletion'](_0xfbb49c,'tablePaste',{'tablePasteChainId':_0x170cee,'skipNestingCheck':!0x0}),_0xfbb49c['forEach'](_0x3bd6f5=>_0x3bd6f5['detach']?.()));const _0x3e35bc=_0x4071b3['markMultiRangeBlockFormat'](_0x522b8d['map'](({element:_0x59cccb})=>_0x59cccb),{'formatGroupId':_0x50cf13()},[],'tablePasteCell',{'tablePasteChainId':_0x170cee});if(_0x3e35bc){const _0x565736=_0x3e35bc['getMarkers'](),_0x453efb=[];for(const {element:_0x52a8db,attributes:_0x272345}of _0x522b8d){if(!_0x272345)continue;const _0x1abcc5=_0x104863['model']['createRangeOn'](_0x52a8db),_0x4a4b50=_0x565736['find'](_0x4a60fe=>_0x4a60fe['getRange']()['isEqual'](_0x1abcc5));_0x4a4b50&&_0x453efb['push']([_0x4a4b50['name'],_0x272345]);}_0x453efb['length']&&_0x3e35bc['setAttribute']('markerAttributes',Object['fromEntries'](_0x453efb));}_0x2d2acb=null;}));},{'priority':_0x4bf36d['high']+0xa}),_0x2ff839['on']('contentInsertion',()=>{_0x58e6e4=!0x1;},{'priority':'lowest'}),_0x104863['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x32dfb0,_0x201ad8)=>{const [_0x3fcf89,_0x457448,,_0x3a3e38]=_0x201ad8;if(!_0x2d2acb)return;_0x32dfb0['stop']();const _0x197f92=_0x3fcf89['cell'],_0x344a7a=_0x457448,_0x46cbde=Oe(_0x197f92),_0x40a0dd=Oe(_0x344a7a);_0x32dfb0['return']=_0x197f92;let _0x155c5f=null,_0x4ba276=null;if(_0x40a0dd||_0x46cbde){if(_0x46cbde&&!_0x40a0dd){_0x3a3e38['remove'](_0x197f92['getChild'](0x0));for(const _0xe104c0 of Array['from'](_0x344a7a['getChildren']()))_0x3a3e38['insert'](_0xe104c0,_0x197f92,'end');const _0x4f4bbc=_0x2d2acb['rowInsertionIndexes']['includes'](_0x3fcf89['row']),_0xd1473e=_0x2d2acb['columnInsertionIndexes']['includes'](_0x3fcf89['column']);_0x4f4bbc||_0xd1473e||(_0x155c5f=_0xb0dd32['fromRange'](_0x3a3e38['createRangeIn'](_0x197f92)));}else _0x40a0dd&&!_0x46cbde&&(_0x4ba276=_0x3a3e38['createRangeIn'](_0x197f92));}else{const _0x227bb9=_0x3a3e38['createElement']('tableCellSuggestion'),_0x37f589=_0x3a3e38['createElement']('tableCellSuggestion');_0x3a3e38['wrap'](_0x3a3e38['createRangeIn'](_0x197f92),_0x37f589),_0x3a3e38['insert'](_0x227bb9,_0x197f92,0x0);for(const _0x4faf23 of Array['from'](_0x344a7a['getChildren']()))_0x3a3e38['insert'](_0x4faf23,_0x227bb9,'end');_0x155c5f=_0xb0dd32['fromRange'](_0x3a3e38['createRangeOn'](_0x227bb9)),_0x4ba276=_0xb0dd32['fromRange'](_0x3a3e38['createRangeOn'](_0x37f589));}const _0x212d6e=Array['from'](_0x344a7a['getAttributes']())['filter'](([_0x35faca])=>Be['includes'](_0x35faca));_0x2d2acb['cells']['push']({'element':_0x197f92,'attributes':_0x212d6e['length']?Object['fromEntries'](_0x212d6e):null}),_0x155c5f&&_0x2d2acb['insertionRanges']['push'](_0x155c5f),_0x4ba276&&_0x2d2acb['deletionRanges']['push'](_0x4ba276);},{'priority':'high'}),_0x2e71b8['on']('insertColumns',(_0x18ab7f,_0x3dbfdd)=>{const [_0xf88339,_0x23d568={}]=_0x3dbfdd;if(!_0x2d2acb)return;const _0x308462=_0x23d568['at']||0x0,_0x1fee4c=_0x23d568['columns']||0x1;_0x2d2acb['columnInsertionIndexes']=new Array(_0x1fee4c)['fill'](_0x308462)['map']((_0x1f00f2,_0x5e3604)=>_0x1f00f2+_0x5e3604);for(const {cell:_0x821dc1}of _0x2e71b8['createTableWalker'](_0xf88339,{'startColumn':_0x308462,'endColumn':_0x308462+_0x1fee4c-0x1}))_0x2d2acb['columnInsertionRanges']['push'](_0x104863['model']['createRangeOn'](_0x821dc1));},{'priority':'low'}),_0x2e71b8['on']('insertRows',(_0x470ff3,_0x201dd6)=>{const [_0x309977,_0x3c6efc={}]=_0x201dd6;if(!_0x2d2acb)return;const _0x5985cb=_0x3c6efc['at']||0x0,_0x464144=_0x3c6efc['rows']||0x1;_0x2d2acb['rowInsertionIndexes']=new Array(_0x464144)['fill'](_0x5985cb)['map']((_0x4e4b24,_0x802e79)=>_0x4e4b24+_0x802e79);for(const {cell:_0xa2e1cb}of _0x2e71b8['createTableWalker'](_0x309977,{'startRow':_0x5985cb,'endRow':_0x5985cb+_0x464144-0x1}))_0x2d2acb['rowInsertionRanges']['push'](_0x104863['model']['createRangeOn'](_0xa2e1cb));},{'priority':'low'}),_0x4071b3['descriptionFactory']['registerDescriptionCallback'](_0xf1baf0=>{if(_0xf1baf0['subType']&&_0xf1baf0['subType']['startsWith']('tablePaste'))return _0xf1baf0['previous']?{}:{'type':'insertion','content':o(_0x104863['locale'],'*Replace\x20table\x20cells*')};});const _0x5e050a=()=>!0x1;for(const _0x402a2e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4071b3['_suggestionFactory']['registerCustomCallback']('insertion',_0x402a2e,'join',_0x5e050a),_0x4071b3['_suggestionFactory']['registerCustomCallback']('deletion',_0x402a2e,'join',_0x5e050a),_0x4071b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x402a2e,'join',_0x5e050a);_0x4071b3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5e050a),_0x4071b3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xcd07fb,_0x33cc0b,_0xe375a8)=>{const _0x48ea2a=_0xcd07fb['map'](_0x3e86bf=>_0x3e86bf['getContainedElement']())['filter'](_0x1aea7a=>_0x1aea7a),_0x13765a=new Map(_0x48ea2a['map'](_0x13fa9a=>[_0x13fa9a,null]));if(_0x2d2acb){for(const {element:_0x71fc58,attributes:_0xc2fded}of _0x2d2acb['cells'])_0xc2fded&&_0x13765a['set'](_0x71fc58,_0xc2fded);}else{if(_0xe375a8&&_0xe375a8['markerAttributes'])for(const [_0x569f81,_0x1b3816]of Object['entries'](_0xe375a8['markerAttributes'])){const _0x1b2430=_0x104863['model']['markers']['get'](_0x569f81),_0x1c8b31=_0x1b2430?_0x1b2430['getRange']()['getContainedElement']():null;_0x1c8b31&&_0x13765a['set'](_0x1c8b31,_0x1b3816);}}_0x104863['model']['change'](_0x2836de=>{for(const [_0x1336cc,_0x7dfa69]of _0x13765a)_0x2836de['setAttributes']({...xe,..._0x7dfa69},_0x1336cc);});});const _0x4ac5b8=(_0x44341b,_0x2aedb7)=>{_0x4071b3['_suggestionFactory']['registerCustomCallback'](_0x44341b,'tablePaste',_0x2aedb7,(_0x33a134,_0x201619,_0x1b6995)=>{_0x104863['model']['change'](_0x14449c=>{const _0x599d5f=[];for(const _0x559162 of _0x33a134){const _0x2924bc=_0x559162['start']['nodeAfter'];_0x2924bc['is']('element','tableCellSuggestion')&&_0x599d5f['push'](_0x2924bc);}_0x4071b3['_suggestionFactory']['getSuggestionCallback'](_0x44341b,null,_0x2aedb7)(_0x33a134,_0x201619,_0x1b6995);for(const _0x51be20 of _0x599d5f)'$graveyard'!=_0x51be20['root']['rootName']&&_0x14449c['unwrap'](_0x51be20);});});};_0x4ac5b8('insertion','accept'),_0x4ac5b8('insertion','discard'),_0x4ac5b8('deletion','accept'),_0x4ac5b8('deletion','discard'),_0x4071b3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e9eff=>{const _0x5da2d7=_0x1e9eff['map'](_0x5ed200=>_0x5ed200['getContainedElement']()),_0x391d65=_0x5da2d7[0x0]['findAncestor']('table'),{minRow:_0x5c06e9,maxRow:_0x3f4f68}=_0x5b54b3['_getCoordsForCells'](_0x5da2d7);_0x2e71b8['removeRows'](_0x391d65,{'at':_0x5c06e9,'rows':_0x3f4f68-_0x5c06e9+0x1});}),_0x4071b3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x207818=>{const _0x48b4ac=_0x207818['map'](_0x5b7193=>_0x5b7193['getContainedElement']()),_0x25a33b=_0x48b4ac[0x0]['findAncestor']('table'),{minColumn:_0x35541b,maxColumn:_0x344a27}=_0x5b54b3['_getCoordsForCells'](_0x48b4ac);_0x2e71b8['removeColumns'](_0x25a33b,{'at':_0x35541b,'columns':_0x344a27-_0x35541b+0x1});});const _0x58a49a=(_0x5cf1fb,_0xcca46b)=>{if(!_0xcca46b['subType']||!_0xcca46b['subType']['startsWith']('tablePaste'))return;const _0x33f201=_0xcca46b['attributes']['tablePasteChainId'],_0x1f0bf2=_0x4071b3['getSuggestions']()['filter'](_0x4b6bd1=>_0x4b6bd1['isInContent']&&_0x4b6bd1['attributes']&&_0x4b6bd1['attributes']['tablePasteChainId']==_0x33f201);_0x1f0bf2['length']&&_0xcca46b['getAllAdjacentSuggestions']()['length']!=_0x1f0bf2['length']&&_0x1f0bf2['reduce']((_0x2b729e,_0x494a3b)=>(_0x2b729e['next']=_0x494a3b,_0x494a3b['previous']=_0x2b729e,_0x494a3b));};function _0x14e39a(_0x13ff93,_0x5a06ba=!0x0){const {id:_0x5d7189,authorId:_0x185dbf}=_0x4071b3['_splitMarkerName'](_0x13ff93['markerName']),_0x57004c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x42d97d=_0x4071b3['activeMarkers']['includes'](_0x13ff93['markerName']);return _0x42d97d&&_0x57004c['push']('ck-suggestion-marker--active'),{'classes':_0x57004c,'attributes':{'data-suggestion':_0x5d7189,'data-author-id':_0x185dbf},'priority':_0x42d97d&&_0x5a06ba?0xbc2:0xbb8};}_0x4071b3['on']('suggestionLoaded',_0x58a49a,{'priority':'high'}),_0x4071b3['on']('suggestionUnloaded',_0x58a49a,{'priority':'high'}),_0x104863['model']['document']['registerPostFixer'](()=>{let _0x3dd96d=!0x1;const _0x55b3ba=Array['from'](_0x104863['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49f62c,data:_0x4c638a}of _0x55b3ba){const {group:_0x33daa1,type:_0x18c6b0,id:_0x17aae6}=_0x4071b3['_splitMarkerName'](_0x49f62c);if('suggestion'!=_0x33daa1||'deletion'!=_0x18c6b0||_0x4c638a['oldRange'])continue;if(!_0x4071b3['hasSuggestion'](_0x17aae6))continue;const _0x4f8b30=_0x4071b3['getSuggestion'](_0x17aae6)['getRanges'](),_0x108326=_0x104863['plugins']['get']('Users')['me'];for(const _0x5d13a0 of _0x4071b3['getSuggestions']()){if(!_0x5d13a0['isInContent']||_0x5d13a0['author']!=_0x108326)continue;if('formatBlock'!=_0x5d13a0['type']||'tablePasteCell'!=_0x5d13a0['subType'])continue;if(_0x5d13a0['getRanges']()['every'](_0x1cee87=>_0x4f8b30['some'](_0x579690=>_0x579690['containsRange'](_0x1cee87,!0x0)))){for(const _0x58fb94 of _0x5d13a0['getAllAdjacentSuggestions']())_0x58fb94['isInContent']&&(_0x58fb94['discard'](),_0x3dd96d=!0x0);}}}return _0x3dd96d;}),_0x104863['model']['document']['registerPostFixer'](_0x2a2560=>{const _0x5e2b6e=_0x104863['commands']['get']('redo');if(!_0x5e2b6e||!_0x5e2b6e['_createdBatches']['has'](_0x2a2560['batch']))return!0x1;let _0x3a0385=!0x1;const _0x34b88d=_0x104863['plugins']['get']('Users')['me'],_0x4731ae=_0x104863['model']['document']['differ']['getChanges'](),_0x1903f9=Array['from'](_0x104863['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2f973e,data:_0x29edbe})=>{const {group:_0x241cdd,subType:_0x3acd7a,authorId:_0x1e8a06}=_0x4071b3['_splitMarkerName'](_0x2f973e);return'suggestion'==_0x241cdd&&'tablePaste'==_0x3acd7a&&_0x1e8a06==_0x34b88d['id']&&!_0x29edbe['oldRange'];});for(const _0x28858a of _0x4731ae){if('insert'!=_0x28858a['type']||'tableCellSuggestion'!=_0x28858a['name']||0x1!=_0x28858a['length'])continue;const _0x5081a5=_0x2a2560['createRange'](_0x28858a['position'],_0x28858a['position']['getShiftedBy'](0x1));if(!_0x1903f9['find'](({data:_0x16b95c})=>_0x16b95c['newRange']['isEqual'](_0x5081a5))){for(const {name:_0x49cb54,data:_0x27184e}of _0x1903f9)if(_0x5081a5['containsRange'](_0x27184e['newRange'])){_0x2a2560['updateMarker'](_0x49cb54,{'range':_0x5081a5}),_0x3a0385=!0x0;break;}}}return _0x3a0385;}),_0x104863['model']['document']['registerPostFixer'](_0x33b012=>{let _0x17897e=!0x1;const _0x87dd72=_0x104863['plugins']['get']('Users')['me'],_0x48cc7a=_0x4071b3['getSuggestions']()['filter'](_0x532bdc=>_0x532bdc['isInContent']&&_0x532bdc['author']==_0x87dd72),_0x578c21=new Set(),_0x21f173=new Set();for(const _0x38c91d of _0x48cc7a)if('tablePaste'==_0x38c91d['subType'])for(const _0xfe7440 of _0x38c91d['getMarkers']()){const _0x2aefdb=_0xfe7440['getRange']()['getContainedElement']();if(_0x2aefdb){if(_0x2aefdb['is']('element','tableCellSuggestion')&&Oe(_0x2aefdb)){_0x38c91d['removeMarker'](_0xfe7440['name']),_0x578c21['add'](_0x2aefdb),_0x17897e=!0x0;const _0x9cd54d=_0x2aefdb['nextSibling'],_0x2b8dda=_0x2aefdb['previousSibling'],_0x3122bf=_0x9cd54d&&_0x9cd54d['is']('element','tableCellSuggestion'),_0x40836a=_0x2b8dda&&_0x2b8dda['is']('element','tableCellSuggestion');_0x3122bf&&!_0x578c21['has'](_0x9cd54d)&&_0x21f173['add'](_0x9cd54d),_0x40836a&&!_0x578c21['has'](_0x2b8dda)&&_0x21f173['add'](_0x2b8dda);}else _0x2aefdb['is']('element','paragraph')&&_0x2aefdb['isEmpty']&&(_0x38c91d['removeMarker'](_0xfe7440['name']),_0x17897e=!0x0);}}else{if('tablePasteCell'==_0x38c91d['subType']){if(!_0x38c91d['attributes']||!_0x38c91d['attributes']['tablePasteChainId'])continue;const _0x1943b5=_0x38c91d['attributes']['markerAttributes'];if(_0x1943b5&&Object['keys'](_0x1943b5)['length'])continue;const _0x5947ed=_0x38c91d['attributes']['tablePasteChainId'];let _0x44d4dc=!0x0,_0x3bc04d=!0x0;for(const _0x366da7 of _0x48cc7a)if(_0x366da7['subType']&&_0x366da7['subType']['startsWith']('tablePaste')){if(!_0x366da7['attributes']['tablePasteChainId']){_0x3bc04d=!0x1;break;}if(_0x366da7['id']!=_0x38c91d['id']&&_0x366da7['attributes']['tablePasteChainId']==_0x5947ed){_0x44d4dc=!0x1;break;}}_0x3bc04d&&_0x44d4dc&&(_0x38c91d['removeMarkers'](),_0x17897e=!0x0);}}for(const _0x1697e6 of _0x578c21)_0x33b012['remove'](_0x1697e6);for(const _0x589c63 of _0x21f173)_0x33b012['unwrap'](_0x589c63);return _0x17897e;}),_0x104863['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2cf0e6=>_0x14e39a(_0x2cf0e6),'converterPriority':'high'}),_0x104863['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4da50a,_0x1052f6)=>_0x1052f6['options']['showSuggestionHighlights']?_0x14e39a(_0x4da50a,!0x1):null,'converterPriority':'high'});const _0x4703c3=_0x104863['editing']['view'];this['listenTo'](_0x4703c3['document'],'clipboardOutput',(_0x21ff01,_0x1a2733)=>{const _0x3e3c4c=[];for(const _0x24f72f of _0x4703c3['createRangeIn'](_0x1a2733['content'])['getItems']())_0x24f72f['is']('element','suggestion-td')&&_0x3e3c4c['push'](_0x24f72f);_0x4703c3['change'](_0x5b9304=>{for(const _0x4370ea of _0x3e3c4c)_0x5b9304['move'](_0x5b9304['createRangeIn'](_0x4370ea),_0x5b9304['createPositionBefore'](_0x4370ea)),_0x5b9304['remove'](_0x4370ea);});});}}function Oe(_0x4da200){if(_0x4da200['isEmpty'])return!0x0;const _0x120f4e=_0x4da200['getChild'](0x0);return _0x120f4e['is']('element','paragraph')&&_0x120f4e['isEmpty'];}function Ue(_0xa66910,_0x56ac64={},_0x2c0581){for(const {isAnchor:_0x47228b,cellHeight:_0x3b5d01,cellWidth:_0x31f3b7}of _0x2c0581['createTableWalker'](_0xa66910,{'includeAllSlots':!0x0,..._0x56ac64}))if(!_0x47228b||0x1!=_0x3b5d01||0x1!=_0x31f3b7)return!0x1;return!0x0;}class Dt extends _0x5b0fc1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3393a9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3393a9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3393a9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3393a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3393a9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3393a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3393a9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x51fef3,_0x3ba86a){const _0x138223=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cff16=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4d9e90=_0x3ba86a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x178124=_0x3cff16['getColumnGroupElement'](_0x4d9e90);let _0x4c15bb=_0x178124?_0x3cff16['getTableColumnsWidths'](_0x178124):null,_0x349923=_0x4d9e90['getAttribute']('tableWidth')||null;const _0xbef9e6=_0x3ba86a['tableWidth']||_0x349923,_0x169a50=_0x3ba86a['columnWidths']||_0x4c15bb,_0x177d1d=this['editor']['plugins']['get']('Users')['me'];for(const _0x477a0f of _0x138223['getSuggestions']()){const _0x501973=_0x477a0f['getContainedElement']();if('resizeTable'===_0x477a0f['subType']&&_0x501973===_0x4d9e90){_0x477a0f['author']!==_0x177d1d&&_0x477a0f['discard']();const _0x3c9603=_0x477a0f['data']['commandParams'];_0x349923=_0x3c9603[0x0]['tableWidth'],_0x4c15bb=_0x3c9603[0x0]['columnWidths'];break;}}_0x51fef3({'table':_0x4d9e90,'tableWidth':_0xbef9e6,'columnWidths':_0x169a50}),_0x138223['markBlockFormat'](_0x4d9e90,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x349923,'columnWidths':_0x4c15bb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5ef0e5){if('formatBlock'!=_0x5ef0e5['type']&&'formatInline'!=_0x5ef0e5['type'])return;const {data:_0xebfc6d}=_0x5ef0e5;if(_0xebfc6d&&'resizeTable'===_0xebfc6d['formatGroupId']){const _0x5a81f8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5a81f8)};}}}class $t extends _0x5b0fc1{['afterInit'](){const _0x438a39=this['editor'];_0x438a39['plugins']['has']('Template')&&_0x438a39['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5b0fc1{['afterInit'](){const _0x483406=this['editor'];if(!_0x483406['commands']['get']('insertTableOfContents'))return;_0x483406['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1e1fc9=_0x483406['plugins']['get']('TrackChangesEditing'),_0x2ef13a=_0x483406['locale'];_0x1e1fc9['descriptionFactory']['registerElementLabel']('tableOfContents',_0xe582bc=>o(_0x2ef13a,'ELEMENT_TABLE_OF_CONTENTS',_0xe582bc));}}class Bt extends _0x5b0fc1{['afterInit'](){const _0x39e1ee=this['editor'];if(!_0x39e1ee['plugins']['has']('Title'))return;const _0x24149f=_0x39e1ee['plugins']['get']('TrackChangesEditing');_0x24149f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x39e1ee['locale'],'ELEMENT_TITLE')),_0x39e1ee['model']['document']['registerPostFixer'](_0x26aa1c=>{let _0x279117=!0x1;const _0x126c15=Array['from'](_0x39e1ee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c04e7,data:_0x9b3015}of _0x126c15){const {group:_0x1daa5}=_0x24149f['_splitMarkerName'](_0x5c04e7);if('suggestion'!==_0x1daa5||!_0x9b3015['newRange'])continue;const _0x25ff25=_0x9b3015['newRange'],_0x4628ec=_0x25ff25['end']['nodeBefore'];if(!_0x4628ec||!_0x4628ec['is']('element','title-content'))continue;if(!_0x25ff25['start']['isTouching'](_0x25ff25['end']))continue;const _0x507c9c=_0x39e1ee['model']['schema']['getNearestSelectionRange'](_0x25ff25['end'],'forward');if(_0x507c9c&&_0x507c9c['isCollapsed']){const _0x13950b=_0x26aa1c['createRange'](_0x25ff25['start'],_0x507c9c['start']);_0x13950b['isEqual'](_0x25ff25)||(_0x26aa1c['updateMarker'](_0x5c04e7,{'range':_0x13950b}),_0x279117=!0x0);}_0x279117||(_0x26aa1c['removeMarker'](_0x5c04e7),_0x279117=!0x0);}return _0x279117;});}}class Tt extends _0x5b0fc1{['afterInit'](){const _0x5ec4aa=this['editor'],_0x39a436=_0x5ec4aa['plugins']['get']('TrackChangesEditing');_0x5ec4aa['plugins']['has']('Uploadcare')&&(_0x39a436['enableCommand']('uploadcare'),_0x5ec4aa['plugins']['has']('UploadcareImageEdit')&&(_0x39a436['enableCommand']('uploadcareImageEdit'),_0x39a436['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x39a436['registerBlockAttribute']('uploadcareImageId'),_0x39a436['descriptionFactory']['registerDescriptionCallback'](_0xa05c5e=>{if('attribute'!=_0xa05c5e['type'])return;const {data:_0x10b8a8}=_0xa05c5e;return _0x10b8a8&&'uploadcareImageId'==_0x10b8a8['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x5b0fc1{['afterInit'](){const _0x4405b4=this['editor'],_0x277450=_0x4405b4['plugins']['get']('TrackChangesEditing');_0x4405b4['plugins']['has']('UndoEditing')&&(_0x277450['enableCommand']('undo'),_0x277450['enableCommand']('redo'));}}class Ot extends _0x5b0fc1{static get['requires'](){return[At];}['afterInit'](){const _0x461c1b=this['editor'];if(!_0x461c1b['plugins']['has']('TableCaptionEditing'))return;_0x461c1b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x5b0fc1{['tableProperties'];['tableCellProperties'];constructor(_0x33481c){super(_0x33481c),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3ffb72=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x63eef1 of this['tableProperties'])_0x3ffb72['enableCommand'](_0x63eef1,(_0x10ff04,_0x2872e5)=>{const _0x302b2a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x63eef1,[_0x302b2a],this['tableProperties'],'tableProperties',_0x10ff04,_0x2872e5);});_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ffb72['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1ea853,_0x24e57f)=>this['handleDiscardAction'](this['tableProperties'],_0x1ea853,_0x24e57f)),_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1e309a of this['tableCellProperties'])_0x3ffb72['enableCommand'](_0x1e309a,(_0x589a4d,_0x2b3d10)=>{const _0x589394=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1e309a,_0x589394,this['tableCellProperties'],'tableCellProperties',_0x589a4d,_0x2b3d10);});_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ffb72['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x15ea37,_0x517322)=>this['handleDiscardAction'](this['tableCellProperties'],_0x15ea37,_0x517322)),_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3ffb72['descriptionFactory']['registerDescriptionCallback'](_0x4d93ea=>this['handleSuggestionDescription'](_0x4d93ea)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x32ed8b,_0xf0becb,_0x4681a3,_0x605710,_0x477d55,_0x17b7fc){const _0x4c4bd8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x17b7fc['batch'],()=>{for(const _0x2ffec8 of _0xf0becb){if(this['_getSuggestion'](_0x2ffec8,_0x605710))_0x477d55(_0x17b7fc);else{const _0x40dc7a={};for(const _0x1ef406 of _0x4681a3){const _0x1a9592=_0x2ffec8['getAttribute'](_0x1ef406);void 0x0!==_0x1a9592&&(_0x40dc7a[_0x1ef406]=_0x1a9592);}_0x477d55(_0x17b7fc),_0x4c4bd8['markBlockFormat'](_0x2ffec8,{'commandParams':[_0x40dc7a]},[],_0x605710);}}});}['handleDiscardAction'](_0x58b569,_0x3293d4,_0x177cb){const _0x3ef0ea=_0x3293d4[0x0]['start']['nodeAfter'],_0x5e50a4=_0x177cb['commandParams'][0x0];this['editor']['model']['change'](_0x3a4921=>{for(const _0x14bd70 of _0x58b569)void 0x0!==_0x5e50a4[_0x14bd70]?_0x3a4921['setAttribute'](_0x14bd70,_0x5e50a4[_0x14bd70],_0x3ef0ea):_0x3a4921['removeAttribute'](_0x14bd70,_0x3ef0ea);});}['handleSuggestionDescription'](_0x42557a){if(_0x42557a['data'])switch(_0x42557a['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'](_0xf70280,_0x2e6677){const _0x403cf3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3e3cd8 of _0x403cf3['getSuggestions']({'skipNotAttached':!0x0})){const _0x10ea1f=_0x3e3cd8['getContainedElement']();if(_0x3e3cd8['subType']===_0x2e6677&&_0x10ea1f===_0xf70280)return _0x3e3cd8;}return null;}['_registerTablePropertiesAttributes'](){const _0x4b4b30=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2acaa3=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x422461 of _0x2acaa3){const _0x4e06e3=_0x422461['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4b4b30['registerBlockAttribute'](_0x422461),_0x4b4b30['descriptionFactory']['registerAttributeLabel'](_0x422461,o(this['editor']['locale'],'FORMAT_'+_0x4e06e3));}}}class Rt extends _0x5b0fc1{['afterInit'](){const _0x120b24=this['editor'];if(!_0x120b24['plugins']['has']('LineHeight'))return;const _0x257088=_0x120b24['plugins']['get']('TrackChangesEditing'),_0x13bd3e=_0x120b24['locale'];_0x257088['enableDefaultAttributesIntegration']('lineHeight'),_0x257088['registerBlockAttribute']('lineHeight'),_0x257088['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x13bd3e,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x5b0fc1{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x234c27,_0x418a50,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x415342){super(_0x415342),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3a0c7f,_0x5b5bda,_0x4367eb,_0x23d099)=>{this['_model']['change'](()=>{for(const _0x316774 of[..._0x23d099,..._0x4367eb])this['_model']['markers']['has'](_0x316774)&&_0x415342['editing']['reconvertMarker'](_0x316774);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x415342['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(),_0x415342['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x415342['config']['get']('trackChanges.trackFormatChanges'),_0x415342['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x415342['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x415342,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x444179=this['editor'],_0xc434df=(_0x4c4c9a,_0x5d5362)=>{if('attribute'!=_0x4c4c9a)return'ck-suggestion-marker-'+_0x4c4c9a;const _0x36934a=_0x5d5362['split']('|')[0x0];return this['_isBlockAttribute'](_0x36934a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x444179['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5ba6ee=>{const {id:_0x165a46,authorId:_0x4775cd,type:_0x2512e6,subType:_0x100ad5}=this['_splitMarkerName'](_0x5ba6ee['markerName']),_0x257278=['ck-suggestion-marker',_0xc434df(_0x2512e6,_0x100ad5)];let _0x22255a=0xbb8;return this['activeMarkers']['includes'](_0x5ba6ee['markerName'])&&(_0x257278['push']('ck-suggestion-marker--active'),_0x22255a=0xbc2),'deletion'==_0x2512e6&&(_0x22255a+=0x5),{'classes':_0x257278,'attributes':{'data-suggestion':_0x165a46,'data-author-id':_0x4775cd},'priority':_0x22255a};}}),_0x444179['conversion']['for']('dataDowncast')['add'](_0xd59516=>{_0xd59516['on']('addMarker:suggestion',(_0x1809e2,_0x1140cd,_0x251b14)=>{if(!_0x251b14['options']['showSuggestionHighlights'])return;const _0xf6a5f=_0x1140cd['item'];if(!_0xf6a5f)return;const _0x22c713=_0x251b14['mapper']['toViewElement'](_0xf6a5f);_0x444179['model']['schema']['isObject'](_0xf6a5f)&&_0x22c713&&!_0x22c713['getCustomProperty']('widget')&&_0x22c713['is']('containerElement')&&_0xf36840(_0x22c713,_0x251b14['writer']);},{'priority':'high'});}),_0x444179['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x108a80,_0x164592)=>{if(!_0x164592['options']['showSuggestionHighlights'])return null;const {id:_0x18c5ef,authorId:_0x10b7ed,type:_0x2ed935,subType:_0x2c4e37}=this['_splitMarkerName'](_0x108a80['markerName']);return{'classes':['ck-suggestion-marker',_0xc434df(_0x2ed935,_0x2c4e37)],'priority':0xbb8,'attributes':{'data-suggestion':_0x18c5ef,'data-author-id':_0x10b7ed}};}});const _0x30d439=({showActiveMarkers:_0x1b7a52=!0x0,isAttributeSuggestion:_0x276a1a=!0x1}={})=>(_0x3409c4,_0x5755fc,_0x4f642f)=>{if(!_0x5755fc['item'])return;const {id:_0xd94949,authorId:_0x15fb00}=this['_splitMarkerName'](_0x5755fc['markerName']);if(_0x276a1a){const _0x5126a3=this['_suggestions']['get'](_0xd94949),_0x54ed9d=this['_getAttributeKey'](_0x5126a3);if(!this['_isBlockAttribute'](_0x54ed9d))return;}if(_0x5755fc['item']['is']('selection'))return void _0x4f642f['consumable']['consume'](_0x5755fc['item'],_0x3409c4['name']);const _0x3afbc0=_0x4f642f['mapper']['toViewElement'](_0x5755fc['item']);if(_0x5755fc['item']['is']('element')&&_0x444179['model']['schema']['isBlock'](_0x5755fc['item'])&&!_0x3afbc0['getCustomProperty']('addHighlight')){_0x4f642f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3afbc0),_0x4f642f['writer']['setAttribute']('data-suggestion',_0xd94949,_0x3afbc0),_0x4f642f['writer']['setAttribute']('data-author-id',_0x15fb00,_0x3afbc0),_0x4f642f['mapper']['bindElementToMarker'](_0x3afbc0,_0x5755fc['markerName']),_0x1b7a52&&(this['activeMarkers']['includes'](_0x5755fc['markerName'])?_0x4f642f['writer']['addClass']('ck-suggestion-marker--active',_0x3afbc0):_0x4f642f['writer']['removeClass']('ck-suggestion-marker--active',_0x3afbc0));for(const _0x219343 of _0x444179['model']['createRangeIn'](_0x5755fc['item'])['getItems']())_0x4f642f['consumable']['consume'](_0x219343,_0x3409c4['name']);_0x4f642f['consumable']['consume'](_0x5755fc['item'],_0x3409c4['name']);}};_0x444179['conversion']['for']('dataDowncast')['add'](_0x40f86f=>{_0x40f86f['on']('addMarker:suggestion:formatBlock',(_0x3ff673,_0x176b54,_0x170f08)=>{_0x170f08['options']['showSuggestionHighlights']&&_0x30d439({'showActiveMarkers':!0x1})(_0x3ff673,_0x176b54,_0x170f08);},{'priority':'highest'});}),_0x444179['conversion']['for']('dataDowncast')['add'](_0x5ece01=>{_0x5ece01['on']('addMarker:suggestion:attribute',(_0x170d8c,_0x1bab15,_0xcb2322)=>{_0xcb2322['options']['showSuggestionHighlights']&&_0x30d439({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x170d8c,_0x1bab15,_0xcb2322);},{'priority':'highest'});}),_0x444179['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1bd1bb,_0x5a63db)=>{if(_0x5a63db['options']['showSuggestionHighlights']){const {id:_0x953c72,authorId:_0xeb7cb7}=this['_splitMarkerName'](_0x1bd1bb);return _0x1bd1bb['includes'](':split')||_0x1bd1bb['includes'](':merge')?{'group':'suggestion','name':_0x1bd1bb['substr'](0xb),'attributes':{'data-suggestion':_0x953c72,'data-author-id':_0xeb7cb7}}:null;}return{'group':'suggestion','name':_0x1bd1bb['substr'](0xb)};}}),_0x444179['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c0d45,{writer:_0x7798b6})=>{let _0x503035='suggestion:'+_0x1c0d45['getAttribute']('suggestion-type')+':'+_0x1c0d45['getAttribute']('id');return _0x1c0d45['getAttribute']('marker-count')&&(_0x503035+=':'+_0x1c0d45['getAttribute']('marker-count')),_0x7798b6['createElement']('$marker',{'data-name':_0x503035});}}),_0x444179['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x444179['conversion']['for']('editingDowncast')['add'](_0x482258=>{_0x482258['on']('addMarker:suggestion:formatBlock',_0x30d439(),{'priority':'high'});}),_0x444179['conversion']['for']('editingDowncast')['add'](_0x121aa0=>{_0x121aa0['on']('addMarker:suggestion:attribute',_0x30d439({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x444179['conversion']['for']('editingDowncast')['add'](_0x177023=>{_0x177023['on']('removeMarker:suggestion:formatBlock',(_0x5141a1,_0x53a4a5,_0x39b347)=>{const _0x3d40a0=_0x39b347['mapper']['markerNameToElements'](_0x53a4a5['markerName']);if(_0x3d40a0){for(const _0x5a6b4f of _0x3d40a0)_0x5a6b4f['getCustomProperty']('addHighlight')||(_0x39b347['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a6b4f),_0x39b347['writer']['removeAttribute']('data-suggestion',_0x5a6b4f),_0x39b347['writer']['removeAttribute']('data-author-id',_0x5a6b4f),_0x39b347['mapper']['unbindElementFromMarkerName'](_0x5a6b4f,_0x53a4a5['markerName']));}},{'priority':'high'});}),_0x444179['conversion']['for']('editingDowncast')['add'](_0x2317e6=>{_0x2317e6['on']('removeMarker:suggestion:attribute',(_0x2597f4,_0x2cc704,_0x1c7d84)=>{const _0x36aac0=_0x1c7d84['mapper']['markerNameToElements'](_0x2cc704['markerName']);if(!_0x36aac0)return;const {id:_0x55eb53}=this['_splitMarkerName'](_0x2cc704['markerName']),_0xe76154=this['_suggestions']['get'](_0x55eb53),_0x14f55e=this['_getAttributeKey'](_0xe76154);if(this['_isBlockAttribute'](_0x14f55e)){for(const _0x39e8a9 of _0x36aac0)_0x39e8a9['getCustomProperty']('addHighlight')||(_0x1c7d84['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x39e8a9),_0x1c7d84['writer']['removeAttribute']('data-suggestion',_0x39e8a9),_0x1c7d84['writer']['removeAttribute']('data-author-id',_0x39e8a9),_0x1c7d84['mapper']['unbindElementFromMarkerName'](_0x39e8a9,_0x2cc704['markerName']));}},{'priority':'high'});}),_0x444179['model']['document']['registerPostFixer'](_0x1cefac=>{let _0x698b3d=!0x1;const _0x3a84f7=Array['from'](_0x444179['model']['document']['differ']['getChangedMarkers']()),_0x193d42=new Set();for(const {name:_0x4a74d3,data:_0x53cbc1}of _0x3a84f7){const {group:_0x96ddaa,type:_0x4b25c5,subType:_0x37d1d9,id:_0x2fd0be}=this['_splitMarkerName'](_0x4a74d3);if('suggestion'!==_0x96ddaa)continue;const _0x4bc10b=_0x37d1d9?'suggestion:'+_0x4b25c5+':'+_0x37d1d9+':'+_0x2fd0be:'suggestion:'+_0x4b25c5+':'+_0x2fd0be,_0x669cb9=_0x444179['model']['markers']['getMarkersGroup'](_0x4bc10b),_0x193295=_0x444179['model']['markers']['get'](_0x4a74d3),_0x51740d=this['_suggestions']['get'](_0x2fd0be);if(null!=_0x53cbc1['newRange']){'formatInline'==_0x4b25c5&&(_0x698b3d=_0x698b3d||Gt(_0x53cbc1['newRange'],_0x4a74d3,_0x1cefac,_0x444179['model']['schema']));const _0x568656='attribute'==_0x4b25c5&&this['_isBlockAttribute'](_0x37d1d9['split']('|')[0x0]),_0xc72f19='attribute'==_0x4b25c5&&this['_isInlineAttribute'](_0x37d1d9['split']('|')[0x0]);if(_0x53cbc1['newRange']['isCollapsed']||'$graveyard'==_0x53cbc1['newRange']['root']['rootName']||'formatBlock'==_0x4b25c5&&!Jt(_0x53cbc1['newRange'])||_0x568656&&!Jt(_0x53cbc1['newRange'])||_0xc72f19&&Kt(_0x53cbc1['newRange'])||'deletion'==_0x4b25c5&&Kt(_0x53cbc1['newRange'])||_0x193295&&Ht(_0x193295,_0x669cb9))_0x1cefac['removeMarker'](_0x4a74d3),_0x698b3d=!0x0;else{if(!_0x51740d||!_0x51740d['isInContent'])continue;if(_0x53cbc1['newRange']&&_0x53cbc1['oldRange']&&_0x53cbc1['newRange']['isEqual'](_0x53cbc1['oldRange']))continue;_0x193d42['add'](_0x51740d);}}}return _0x193d42['size']>0x0&&(_0x698b3d=!!this['_joinWithAdjacentSuggestions'](_0x193d42)||_0x698b3d),_0x698b3d;}),_0x444179['model']['document']['registerPostFixer'](_0x375902=>{let _0x18a969=!0x1;for(const _0x1de3bb of _0x444179['model']['document']['differ']['getChanges']())if('insert'==_0x1de3bb['type'])for(const _0x25df97 of this['_suggestions']['values']()){if(_0x25df97['isMultiRange']||!_0x25df97['isInContent'])continue;const _0x121030='formatBlock'==_0x25df97['type'],_0x466b33=this['_getAttributeKey'](_0x25df97),_0x1b73b1=_0x466b33&&this['_isBlockAttribute'](_0x466b33);if(!_0x121030&&!_0x1b73b1)continue;const _0x1ea9f9=_0x25df97['getFirstRange']();if(_0x1ea9f9['start']['parent']!=_0x1ea9f9['end']['parent']&&!_0x1ea9f9['end']['isAtEnd']){const _0x34cf0d=_0x444179['model']['createPositionAt'](_0x1ea9f9['start']['nodeAfter'],'end'),_0x1355a8=_0x444179['model']['createRange'](_0x1ea9f9['start'],_0x34cf0d);_0x375902['updateMarker'](_0x25df97['getFirstMarker'](),{'range':_0x1355a8}),_0x18a969=!0x0;}}return _0x18a969;}),_0x444179['model']['document']['registerPostFixer'](_0x4e45b5=>this['_processAttributeChanges'](_0x4e45b5)),_0x444179['model']['document']['registerPostFixer'](_0x2fa4fa=>!_0x2fa4fa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2fa4fa)),_0x444179['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x444179['model']['document']['on']('change:data',(_0x107de6,_0x502eec)=>{if(!_0x502eec['isLocal']||_0x502eec['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x406c7d=_0x444179['model']['document']['differ']['getChanges']();if(0x0==_0x406c7d['length'])return;const _0x554b4c=[],_0x1c60aa=_0x406c7d['filter'](_0x320a75=>'attribute'==_0x320a75['type']),_0x428688=_0x406c7d['filter'](_0x12e811=>'insert'==_0x12e811['type']&&'$text'!=_0x12e811['name']);for(const _0x470a52 of _0x1c60aa)this['_isRegisteredAttribute'](_0x470a52['attributeKey'])&&_0x554b4c['push']({'key':_0x470a52['attributeKey'],'newValue':_0x470a52['attributeNewValue'],'oldValue':_0x470a52['attributeOldValue'],'range':qt(_0x470a52['range'],_0x444179['model'])});for(const _0xa7112 of _0x428688){if('rename'!=_0xa7112['action']&&'refresh'!=_0xa7112['action'])continue;const _0x433eda=zt(_0xa7112['position']['nodeAfter'],_0x444179['model']),_0x332c91=_0xa7112['before'];'rename'==_0xa7112['action']&&_0x554b4c['push']({'key':m,'newValue':_0xa7112['name'],'oldValue':_0x332c91['name'],'range':_0x433eda});for(const [_0x416c11,_0x1762d6]of _0x332c91['attributes']){if(!this['_isRegisteredAttribute'](_0x416c11))continue;const _0x2e5ed5=_0xa7112['attributes']['get'](_0x416c11);_0x1762d6!==_0x2e5ed5&&_0x554b4c['push']({'key':_0x416c11,'newValue':_0x2e5ed5,'oldValue':_0x1762d6,'range':_0x433eda});}for(const [_0x27bd1d,_0x34f37e]of _0xa7112['attributes'])this['_isRegisteredAttribute'](_0x27bd1d)&&(_0x332c91['attributes']['has'](_0x27bd1d)||_0x554b4c['push']({'key':_0x27bd1d,'newValue':_0x34f37e,'oldValue':null,'range':_0x433eda}));}0x0!=_0x554b4c['length']&&_0x444179['model']['enqueueChange'](_0x502eec,_0x3449b0=>{const _0xb7e020=_0x50cf13();for(const {range:_0x407801,key:_0x2a0a5e,oldValue:_0x44535a,newValue:_0x53012c}of _0x554b4c)this['markAttributeChange'](_0x407801,_0x2a0a5e,_0x44535a,_0x53012c,{'groupId':_0xb7e020});this['_reduceExistingSuggestions'](_0x3449b0,_0x554b4c);});},{'priority':'lowest'}),_0x444179['model']['markers']['on']('update:suggestion',(_0x2e26a5,_0x591876,_0x1074fd)=>{if(null==_0x1074fd){const {id:_0x14532b}=this['_splitMarkerName'](_0x591876['name']),_0x36cd15=this['_suggestions']['get'](_0x14532b);_0x36cd15&&_0x36cd15['addMarkerName'](_0x591876['name']);}}),_0x444179['model']['document']['on']('change:data',()=>{const _0x39253c=Array['from'](_0x444179['model']['document']['differ']['getChangedMarkers']())['filter'](_0x416d2b=>'suggestion'===this['_splitMarkerName'](_0x416d2b['name'])['group']);if(0x0===_0x39253c['length'])return;_0x39253c['sort']((_0x277063,_0x5bfafc)=>{const _0x3e7f1d=_0x277063['data']['oldRange'],_0x4d508b=_0x5bfafc['data']['oldRange'];return null===_0x3e7f1d&&null===_0x4d508b?0x0:null===_0x3e7f1d&&null!==_0x4d508b?-0x1:null!==_0x3e7f1d&&null===_0x4d508b?0x1:_0x3e7f1d['start']['isBefore'](_0x4d508b['start'])?-0x1:0x1;});const _0x4852ec=new Set(),_0x237606=new Set();for(const {name:_0xe57928,data:_0x35db98}of _0x39253c){const {id:_0x16b411}=this['_splitMarkerName'](_0xe57928);if(null===_0x35db98['oldRange']){const _0x3de9b1=this['_handleNewSuggestionMarker'](_0xe57928);_0x237606['add'](_0x3de9b1);}else{const _0x442d59=this['_suggestions']['get'](_0x16b411);null!==_0x35db98['newRange']||_0x442d59['isInContent']?(_0x4852ec['add'](_0x442d59['head']),_0x237606['add'](_0x442d59)):this['_removeSuggestion'](_0x442d59);}}_0x237606['size']>0x0&&this['_refreshSuggestionsChain'](_0x237606);for(const _0x46f537 of _0x4852ec)this['fire']('suggestionChanged',_0x46f537);}),_0x444179['model']['on']('applyOperation',(_0x58b9eb,_0x31a26f)=>{const _0x1b847e=_0x31a26f[0x0];if(!this['_suggestions']['size'])return;if(!_0x1b847e['isDocumentOperation'])return;if(_0x1b847e['batch']['isUndo']||!_0x1b847e['batch']['isLocal'])return;let _0x3ea854,_0x228451;switch(_0x1b847e['type']){case'insert':_0x3ea854=_0x444179['model']['createPositionAt'](_0x1b847e['position']),_0x228451=_0x3ea854['getShiftedBy'](_0x1b847e['howMany']);break;case'split':_0x3ea854=_0x444179['model']['createPositionAt'](_0x1b847e['splitPosition']),_0x228451=_0x444179['model']['createPositionAt'](_0x1b847e['moveTargetPosition']);break;case'move':_0x3ea854=_0x444179['model']['createPositionAt'](_0x1b847e['targetPosition']),_0x228451=_0x3ea854['getShiftedBy'](_0x1b847e['howMany']);break;default:return;}const _0x3a4ba0=_0x444179['model']['createRange'](_0x3ea854,_0x228451);_0x444179['model']['change'](()=>{for(const {suggestion:_0x3f6ef5,meta:_0x475872}of this['_findSuggestions'](_0x3a4ba0)){if(_0x3f6ef5['isMultiRange'])continue;if('formatInline'==_0x3f6ef5['type'])continue;const _0x1a3a25=this['_getAttributeKey'](_0x3f6ef5);if(_0x1a3a25&&this['_isBlockAttribute'](_0x1a3a25)&&'split'!=_0x1b847e['type'])continue;const _0x39c8e7=_0x3f6ef5['data']&&_0x3f6ef5['data']['multipleBlocks'];('formatBlock'!=_0x3f6ef5['type']||'split'==_0x1b847e['type']&&!_0x39c8e7)&&(_0x475872['containsRangeInObject']||'insertion'==_0x3f6ef5['type']&&_0x475872['isOwn']||_0x3f6ef5['getFirstRange']()['containsRange'](_0x3a4ba0)&&this['_breakSuggestionMarker'](_0x3f6ef5,_0x3ea854,_0x228451));}});},{'priority':'lowest'}),_0x444179['model']['on']('deleteContent',(_0x426b25,_0x4b071a)=>{const _0x1fdace=_0x4b071a[0x0],_0xcf0b08=_0x4b071a[0x1];if(_0xcf0b08&&_0xcf0b08['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1fdace['isCollapsed'])return;const _0x87d8da=_0x444179['model']['schema'],{start:_0x33a061,end:_0x4794d1}=_0x1fdace['getFirstRange'](),_0x8f174d=_0x33a061['nodeAfter']&&_0x87d8da['isLimit'](_0x33a061['nodeAfter'])?null:_0x87d8da['getNearestSelectionRange'](_0x33a061,'forward'),_0x30defc=_0x4794d1['nodeBefore']&&_0x87d8da['isLimit'](_0x4794d1['nodeBefore'])?null:_0x87d8da['getNearestSelectionRange'](_0x4794d1,'backward'),_0x32221d=_0x444179['model']['createRange'](_0x8f174d?_0x8f174d['start']:_0x33a061,_0x30defc?_0x30defc['end']:_0x4794d1);_0x444179['model']['change'](_0x5db3a8=>{this['markDeletion'](_0x32221d);const _0x350d5f=_0x444179['model']['schema']['getNearestSelectionRange'](_0x32221d['start']);_0x1fdace['is']('documentSelection')?_0x5db3a8['setSelection'](_0x350d5f):_0x1fdace['setTo'](_0x350d5f);}),_0x426b25['stop']();},{'priority':_0x4bf36d['normal']+0xa}),_0x444179['model']['on']('insertContent',(_0x77d150,_0x12be9a)=>{const _0x20d0e1=_0x12be9a[_0x12be9a['length']-0x1];_0x20d0e1&&_0x20d0e1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x444179['model']['change'](()=>{let _0x26c638=_0x444179['model']['insertContent'](_0x12be9a[0x0],_0x12be9a[0x1],_0x12be9a[0x2],{'forceDefaultExecution':!0x0});if(!_0x26c638)return;_0x77d150['return']=_0x26c638['clone']();const _0x358a85=_0x26c638['end']['nodeBefore'],_0xfdeae5=_0x444179['model']['schema'];_0x358a85&&_0xfdeae5['isBlock'](_0x358a85)&&!_0xfdeae5['isObject'](_0x358a85)&&(_0x26c638=_0x444179['model']['createRange'](_0x26c638['start'],_0x444179['model']['createPositionAt'](_0x358a85,'end'))),this['markInsertion'](_0x26c638);}),_0x77d150['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xca927d=new D(_0x444179,this['_suggestions']);_0x444179['commands']['add']('acceptSuggestion',_0xca927d),this['enableCommand']('acceptSuggestion');const _0x338145=new $(_0x444179,this['_suggestions']);_0x444179['commands']['add']('discardSuggestion',_0x338145),this['enableCommand']('discardSuggestion'),_0x444179['commands']['add']('acceptAllSuggestions',new M(_0x444179,_0xca927d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x444179['commands']['add']('discardAllSuggestions',new M(_0x444179,_0x338145,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x444179['commands']['add']('acceptSelectedSuggestions',new B(_0x444179,_0xca927d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x444179['commands']['add']('discardSelectedSuggestions',new B(_0x444179,_0x338145,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3f346c=_0x444179['plugins']['get']('CommentsRepository');this['listenTo'](_0x3f346c,'addComment',(_0x1a557c,{threadId:_0x3d4fd8})=>{const _0x3b1993=this['_suggestions']['get'](_0x3d4fd8);_0x3b1993&&_0x3b1993['commentThread']&&0x1===_0x3b1993['commentThread']['length']&&this['_updateSuggestionData'](_0x3d4fd8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3f346c,'removeComment',(_0x5c2644,{threadId:_0x299b70})=>{const _0x51c075=this['_suggestions']['get'](_0x299b70);_0x51c075&&_0x51c075['commentThread']&&!_0x51c075['commentThread']['length']&&this['_updateSuggestionData'](_0x299b70,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5a534c){const _0x3558d9=_0x2283a0([0x62,0x79,0x45,0x6d,0x32,0x4f,0x51,0x4e,0x53,0x46,0x75,0x39,0x61,0x56,0x4a,0x76,0x72,0x65,0x70,0x78,0x68,0x55,0x58,0x50,0x48,0x30,0x49,0x47,0x54,0x67,0x4b,0x7a,0x31,0x6a,0x33,0x38,0x6c,0x71,0x34,0x66,0x6f,0x63,0x77,0x74,0x69,0x41,0x73,0x42,0x52,0x44,0x59,0x37,0x4d,0x35,0x64,0x6e,0x4c,0x6b,0x57,0x5a,0x43,0x36]),_0x4c8ec8=0x15a3b94b,_0x549c2a=0x15a4d643^_0x4c8ec8,_0x20e6b4=window[_0x2283a0([0x44,0x61,0x74,0x65])][_0x2283a0([0x6e,0x6f,0x77])](),_0x499c08=_0x5a534c[_0x2283a0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a60c3=new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46dae7=>{_0x499c08[_0x2283a0([0x6f,0x6e,0x63,0x65])](_0x2283a0([0x72,0x65,0x61,0x64,0x79]),_0x46dae7);}),_0x36cec9={[_0x2283a0([0x6b,0x74,0x79])]:_0x2283a0([0x45,0x43]),[_0x2283a0([0x75,0x73,0x65])]:_0x2283a0([0x73,0x69,0x67]),[_0x2283a0([0x63,0x72,0x76])]:_0x2283a0([0x50,0x2d,0x32,0x35,0x36]),[_0x2283a0([0x78])]:_0x2283a0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2283a0([0x79])]:_0x2283a0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2283a0([0x61,0x6c,0x67])]:_0x2283a0([0x45,0x53,0x32,0x35,0x36])},_0x5a6b30=_0x499c08[_0x2283a0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2283a0([0x67,0x65,0x74])](_0x2283a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x389f44(){let _0xa3fbfa,_0x2166b5=null,_0x4f84da=null;try{if(_0x5a6b30==_0x2283a0([0x47,0x50,0x4c]))return _0x2283a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa3fbfa=_0x1741db(),!_0xa3fbfa)return _0x2283a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa3fbfa[_0x2283a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f84da=_0x23c258(_0xa3fbfa[_0x2283a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa3fbfa[_0x2283a0([0x6a,0x74,0x69])])),await _0x2aa147()?_0x5af5d9()?_0x56c5ce()?_0x2283a0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ad4d9()?(_0xa3fbfa[_0x2283a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2283a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2166b5=_0x3ca8f3(_0x2283a0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa3fbfa[_0x2283a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2283a0([0x74,0x72,0x69,0x61,0x6c])&&(_0x2166b5=_0x3ca8f3(_0x2283a0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4787fe()):_0x2283a0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2283a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2283a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2283a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56c5ce(){const _0x26544f=[_0x2283a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2283a0([0x74,0x72,0x69,0x61,0x6c])][_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3fbfa[_0x2283a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20e6b4/0x3e8:0xe10*_0x549c2a;return _0xa3fbfa[_0x2283a0([0x65,0x78,0x70])]<_0x26544f;}function _0x5af5d9(){const _0x3148fb=_0xa3fbfa[_0x2283a0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3148fb)return!0x1;if(_0x3148fb[_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2283a0([0x2a])))return!0x0;if(_0x3148fb[_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2283a0([0x54,0x43])))return!0x0;if(_0x3148fb[_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2283a0([0x52,0x54,0x43]))){if(_0x227dce())return!0x0;if(_0xc5b356()||_0x3cc589())return!0x0;}return!0x1;}function _0x1ad4d9(){const _0x26602c=_0xa3fbfa[_0x2283a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26602c||0x0==_0x26602c[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xcf3ef4}=new URL(window[_0x2283a0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26602c[_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcf3ef4))return!0x0;const _0x4c35b0=_0xcf3ef4[_0x2283a0([0x73,0x70,0x6c,0x69,0x74])](_0x2283a0([0x2e]));return _0x26602c[_0x2283a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1be93e=>_0x1be93e[_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2283a0([0x2a])))[_0x2283a0([0x6d,0x61,0x70])](_0xd5de11=>_0xd5de11[_0x2283a0([0x73,0x70,0x6c,0x69,0x74])](_0x2283a0([0x2e])))[_0x2283a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54b2c9=>_0x54b2c9[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c35b0[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2283a0([0x6d,0x61,0x70])](_0x173548=>Array(_0x4c35b0[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x173548[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2283a0([0x66,0x69,0x6c,0x6c])](_0x173548[0x0]===_0x2283a0([0x2a])?_0x2283a0([0x2a]):'')[_0x2283a0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x173548))[_0x2283a0([0x73,0x6f,0x6d,0x65])](_0x42dbcf=>_0x4c35b0[_0x2283a0([0x65,0x76,0x65,0x72,0x79])]((_0x268b89,_0x52f53a)=>_0x42dbcf[_0x52f53a]===_0x268b89||_0x42dbcf[_0x52f53a]===_0x2283a0([0x2a])));}function _0x4787fe(){return _0x2166b5&&_0x4f84da?new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3dd358,_0x4bd01b)=>{_0x2166b5[_0x2283a0([0x74,0x68,0x65,0x6e])](_0x3dd358,_0x4bd01b),_0x4f84da[_0x2283a0([0x74,0x68,0x65,0x6e])](_0x4d9e2f=>{_0x4d9e2f!=_0x2283a0([0x56,0x61,0x6c,0x69,0x64])&&_0x3dd358(_0x4d9e2f);},_0x4bd01b);}):_0x2166b5||_0x4f84da||_0x2283a0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23c258(_0x2b305e,_0x1ae6c1){return new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59eea9=>{if(_0x10aaf5())return _0x59eea9(_0x2283a0([0x56,0x61,0x6c,0x69,0x64]));_0x488927(),_0x499c08[_0x2283a0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2283a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b79b9=!0x1;const _0x4dcb9f=_0x50cf13();function _0x8485c7(_0x23226c){return!!_0x23226c&&(typeof _0x23226c===_0x2283a0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23226c===_0x2283a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23226c[_0x2283a0([0x74,0x68,0x65,0x6e])]===_0x2283a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23226c[_0x2283a0([0x63,0x61,0x74,0x63,0x68])]===_0x2283a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c531a(_0x2ccc10){_0x5fb06a(_0x2ccc10)[_0x2283a0([0x74,0x68,0x65,0x6e])](_0x29fc86=>{if(!_0x29fc86||_0x29fc86[_0x2283a0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2283a0([0x6f,0x6b]))return _0x2283a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2422e6(_0x487b3d(_0x4dcb9f+_0x1ae6c1))!=_0x29fc86[_0x2283a0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2283a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2283a0([0x56,0x61,0x6c,0x69,0x64]);})[_0x2283a0([0x74,0x68,0x65,0x6e])](_0x49f3b3=>(_0xb9a938(),_0x49f3b3),()=>{const _0x4062b=_0x1601ef();return null==_0x4062b?(_0xb9a938(),_0x2283a0([0x56,0x61,0x6c,0x69,0x64])):_0x2283a0(_0x20e6b4-_0x4062b>(0x31af3d4b^_0x4c8ec8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2283a0([0x74,0x68,0x65,0x6e])](_0x59eea9)[_0x2283a0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x59eea9(_0x2283a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59553b=0x159557cb^_0x4c8ec8;function _0xb9a938(){const _0x6ec9eb=_0x2283a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2422e6(_0x487b3d(_0x2b305e)),_0x270098=_0x1c9833(_0x2422e6(window[_0x2283a0([0x4d,0x61,0x74,0x68])][_0x2283a0([0x63,0x65,0x69,0x6c])](_0x20e6b4/_0x59553b)));window[_0x2283a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2283a0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6ec9eb,_0x270098);}function _0x1601ef(){const _0x2f29a9=_0x2283a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2422e6(_0x487b3d(_0x2b305e)),_0xf3c7fc=window[_0x2283a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2283a0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f29a9);return _0xf3c7fc?window[_0x2283a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c9833(_0xf3c7fc),0x10)*_0x59553b:null;}function _0x5fb06a(_0x5030a7){return new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe8be5b,_0x246a2e)=>{_0x5030a7[_0x2283a0([0x74,0x68,0x65,0x6e])](_0xe8be5b,_0x246a2e),window[_0x2283a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x246a2e,0x15a26d8b^_0x4c8ec8);});}}_0x499c08[_0x2283a0([0x6f,0x6e])](_0x2283a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c2943,_0x94feb0)=>{if(_0x94feb0[0x0]!=_0x2b305e)return _0x59eea9(_0x2283a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x94feb0[0x1]={..._0x94feb0[0x1],[_0x2283a0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4dcb9f};},{[_0x2283a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2283a0([0x68,0x69,0x67,0x68])}),_0x499c08[_0x2283a0([0x6f,0x6e])](_0x2283a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52a89d=>{_0x8485c7(_0x52a89d[_0x2283a0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b79b9=!0x0,_0x4c531a(_0x52a89d[_0x2283a0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2283a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2283a0([0x6c,0x6f,0x77])}),_0x2a60c3[_0x2283a0([0x74,0x68,0x65,0x6e])](()=>{_0x2b79b9||_0x59eea9(_0x2283a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10aaf5(){return _0x499c08[_0x2283a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2283a0([0x76,0x69,0x65,0x77])][_0x2283a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2283a0([0x61,0x75,0x74,0x6f]);}function _0x488927(){_0x499c08[_0x2283a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2283a0([0x76,0x69,0x65,0x77])][_0x2283a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2283a0([0x61,0x75,0x74,0x6f]);}}function _0x3ca8f3(_0x3d97e5){const _0x1b8ee0=[new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x571e39=>setTimeout(_0x571e39,0x15aa8787^_0x4c8ec8)),_0x2a60c3[_0x2283a0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17190f=>{let _0x4b92fc=0x0;_0x499c08[_0x2283a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2283a0([0x6f,0x6e])](_0x2283a0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f3f53,_0x1e0536)=>{_0x1e0536[0x0][_0x2283a0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b92fc++,_0x4b92fc==(0x15a3b8b3^_0x4c8ec8)&&(_0x17190f(),_0x1f3f53[_0x2283a0([0x6f,0x66,0x66])]());});}))];return window[_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2283a0([0x72,0x61,0x63,0x65])](_0x1b8ee0)[_0x2283a0([0x74,0x68,0x65,0x6e])](()=>_0x3d97e5);}async function _0x1c9f3f(){await _0x2a60c3,_0x499c08[_0x2283a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2283a0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38892f,_0x499c08[_0x2283a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2283a0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38892f,_0x499c08[_0x2283a0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2283a0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x227dce(){return _0x17bdca(_0x2283a0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5219d9(_0x2283a0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2283a0([0x73,0x74,0x61,0x74,0x65])]==_0x2283a0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xc5b356(){return _0x17bdca(_0x2283a0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3cc589(){return _0x17bdca(_0x2283a0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x10b94d(_0x52a5f3){const _0x44341e=_0x389270();_0x499c08[_0x44341e]=_0x2283a0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52a5f3,_0x52a5f3!=_0x2283a0([0x56,0x61,0x6c,0x69,0x64])&&_0x1c9f3f();}function _0x389270(){const _0x31a6d7=window[_0x2283a0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2283a0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2283a0([0x6e,0x6f,0x77])]())[_0x2283a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2283a0([0x2e]),'');let _0x3563e5=_0x2283a0([0x62]);for(let _0x425923=0x0;_0x425923<_0x31a6d7[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x425923+=0x2){let _0x5d782b=window[_0x2283a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31a6d7[_0x2283a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x425923,_0x425923+0x2));_0x5d782b>=_0x3558d9[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d782b-=_0x3558d9[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3563e5+=_0x3558d9[_0x5d782b];}return _0x3563e5;}function _0x1741db(){const _0x2d88e1=_0x5a6b30[_0x2283a0([0x73,0x70,0x6c,0x69,0x74])](_0x2283a0([0x2e]));if(0x3!=_0x2d88e1[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ea46e(_0x2d88e1[0x1]);function _0x3ea46e(_0x53ff2e){const _0x2f0a24=_0x2544fd(_0x53ff2e);return _0x2f0a24&&_0x48e0a1()?_0x2f0a24:null;function _0x48e0a1(){const _0x4a4371=_0x2f0a24[_0x2283a0([0x6a,0x74,0x69])],_0x23d1fb=window[_0x2283a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a4371[_0x2283a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a4371[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bd817={..._0x2f0a24,[_0x2283a0([0x6a,0x74,0x69])]:_0x4a4371[_0x2283a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a4371[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bd817[_0x2283a0([0x76,0x63])],_0x487b3d(_0x3bd817)==_0x23d1fb;}}}async function _0x2aa147(){let _0x5e7611=!0x0;try{const _0x1e33c=_0x5a6b30[_0x2283a0([0x73,0x70,0x6c,0x69,0x74])](_0x2283a0([0x2e])),[_0x2b9cf0,_0x333aa6,_0x175341]=_0x1e33c;return _0x23f19a(_0x2b9cf0),await _0x42fbd5(_0x2b9cf0,_0x333aa6,_0x175341),_0x5e7611;}catch{return!0x1;}function _0x23f19a(_0x213a78){const _0x2bb78b=_0x2544fd(_0x213a78);_0x2bb78b&&_0x2bb78b[_0x2283a0([0x61,0x6c,0x67])]==_0x2283a0([0x45,0x53,0x32,0x35,0x36])||(_0x5e7611=!0x1);}async function _0x42fbd5(_0x42cb95,_0x581e63,_0xf0fd7b){const _0x36e718=window[_0x2283a0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2283a0([0x66,0x72,0x6f,0x6d])](_0xb49a8(_0xf0fd7b),_0x5a611e=>_0x5a611e[_0x2283a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x110cff=new window[(_0x2283a0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2283a0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x42cb95+_0x2283a0([0x2e])+_0x581e63),_0x465692=window[_0x2283a0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2283a0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x465692)return;const _0x51682d=await _0x465692[_0x2283a0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2283a0([0x6a,0x77,0x6b]),_0x36cec9,{[_0x2283a0([0x6e,0x61,0x6d,0x65])]:_0x2283a0([0x45,0x43,0x44,0x53,0x41]),[_0x2283a0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2283a0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2283a0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x465692[_0x2283a0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2283a0([0x6e,0x61,0x6d,0x65])]:_0x2283a0([0x45,0x43,0x44,0x53,0x41]),[_0x2283a0([0x68,0x61,0x73,0x68])]:{[_0x2283a0([0x6e,0x61,0x6d,0x65])]:_0x2283a0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51682d,_0x36e718,_0x110cff)||(_0x5e7611=!0x1);}}function _0x2544fd(_0x3c4fc5){return _0x3c4fc5[_0x2283a0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2283a0([0x65,0x79]))?JSON[_0x2283a0([0x70,0x61,0x72,0x73,0x65])](_0xb49a8(_0x3c4fc5)):null;}function _0xb49a8(_0x5ce0cf){return window[_0x2283a0([0x61,0x74,0x6f,0x62])](_0x5ce0cf[_0x2283a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2283a0([0x2b]))[_0x2283a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2283a0([0x2f])));}function _0x487b3d(_0x119d85){let _0x54458f=0x1505;function _0x3e6c61(_0x38d4c4){for(let _0x2dcaed=0x0;_0x2dcaed<_0x38d4c4[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2dcaed++){const _0x59510a=_0x38d4c4[_0x2283a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2dcaed);_0x54458f=(_0x54458f<<0x5)+_0x54458f+_0x59510a,_0x54458f&=_0x54458f;}}function _0x4fb886(_0x563285){Array[_0x2283a0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x563285)?_0x563285[_0x2283a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fb886):_0x563285&&typeof _0x563285==_0x2283a0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2283a0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x563285)[_0x2283a0([0x73,0x6f,0x72,0x74])]()[_0x2283a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x153315,_0x418072])=>{_0x3e6c61(_0x153315),_0x4fb886(_0x418072);}):_0x3e6c61(window[_0x2283a0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x563285));}return _0x4fb886(_0x119d85),_0x54458f>>>0x0;}function _0x2422e6(_0x1a9bd5){return _0x1a9bd5[_0x2283a0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2283a0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2283a0([0x30]));}function _0x1c9833(_0x5c201d){return _0x5c201d[_0x2283a0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2283a0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2283a0([0x6a,0x6f,0x69,0x6e])]('');}function _0x17bdca(_0xa00198){return _0x499c08[_0x2283a0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2283a0([0x68,0x61,0x73])](_0xa00198);}function _0x5219d9(_0x34d30a){return _0x499c08[_0x2283a0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2283a0([0x67,0x65,0x74])](_0x34d30a);}function _0x38892f(){}function _0x2283a0(_0x504670){return _0x504670['map'](_0x50e74d=>String['fromCharCode'](_0x50e74d))['join']('');}_0x10b94d(await _0x389f44());}(this);}set['adapter'](_0x3816be){if(this['_adapter'])throw new _0xa020e('track-changes-adapter-already-set',this);this['_adapter']=_0x3816be;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1aa304=!0x1,toJSON:_0x427a4c=!0x1}={}){const _0x5c2cf9=[];for(const _0x2eff79 of this['_suggestions']['values']())_0x1aa304&&!_0x2eff79['isInContent']||_0x5c2cf9['push'](_0x2eff79);return _0x427a4c?_0x5c2cf9['map'](_0x328496=>_0x328496['toJSON']()):_0x5c2cf9;}['getSuggestion'](_0x3ce079){const _0x573318=this['_suggestions']['get'](_0x3ce079);if(!_0x573318)throw new _0xa020e('track-changes-suggestion-not-found',this);return _0x573318;}['hasSuggestion'](_0x43e28c){return this['_suggestions']['has'](_0x43e28c);}['addSuggestionData'](_0x1ae7cd){const {authorId:_0xf8988c,id:_0x1b01d4,originalSuggestionId:_0x533933,attributes:_0x2e606c}=_0x1ae7cd,[_0x330704,_0x57a809]=_0x1ae7cd['type']['split'](':'),_0x5286cc=this['_suggestions']['get'](_0x1b01d4)||this['_createSuggestion'](_0x330704,_0x57a809,_0x1b01d4,_0xf8988c,_0x2e606c,_0x533933);if(this['_addThreadToSuggestion'](_0x5286cc),this['_checkSuggestionCorrectness'](_0x5286cc,_0x330704,_0x57a809||null,_0xf8988c),_0x5286cc['createdAt']=_0x1ae7cd['createdAt'],_0x5286cc['_isDataLoaded']=!0x0,_0x2e606c&&_0x2e606c['@external']){const _0x4921a4=_0x2e606c['@external'],_0x61abdc=this['_getExternalAuthor'](_0x4921a4['authorName']);_0x5286cc['authoredAt']=_0x4921a4['createdAt'],_0x5286cc['author']=_0x61abdc,_0x5286cc['isExternal']=!0x0;}else _0x5286cc['authoredAt']=_0x1ae7cd['createdAt'];switch(_0x1ae7cd['data']&&(_0x5286cc['data']=_0x1ae7cd['data']),_0x1ae7cd['attributes']&&(_0x5286cc['attributes']=_0x1ae7cd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5286cc['_saved']=!0x0),this['_suggestionState']['get'](_0x5286cc)){case'notReady':this['_suggestionState']['set'](_0x5286cc,'dataReady');break;case'markerReady':_0x5286cc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5286cc])),this['_refreshSuggestionsChain'](new Set([_0x5286cc])),this['_suggestionState']['set'](_0x5286cc,'ready'),this['fire']('suggestionLoaded',_0x5286cc)):this['_suggestionState']['set'](_0x5286cc,'removed');}return _0x5286cc;}['acceptSuggestion'](_0x1525f3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xad9aa1 of _0x1525f3['getAllAdjacentSuggestions']())_0xad9aa1['accept']();});});}['discardSuggestion'](_0x51fd08){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4dd8a8 of _0x51fd08['getAllAdjacentSuggestions']())_0x4dd8a8['discard']();});});}['enableCommand'](_0x44f655,_0x81ae85){const _0x4c1f9b=this['editor']['commands']['get'](_0x44f655);if(!_0x4c1f9b)throw new _0xa020e('track-changes-command-not-found',this,{'commandName':_0x44f655});if(this['_enabledCommands']['has'](_0x4c1f9b))throw new _0xa020e('track-changes-enable-command-twice',this,{'commandName':_0x44f655});this['_enabledCommands']['add'](_0x4c1f9b),_0x81ae85&&_0x4c1f9b['on']('execute',(_0x1815eb,_0x3e3c44)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3e3c44['length']>0x0&&_0x3e3c44[_0x3e3c44['length']-0x1]&&_0x3e3c44[_0x3e3c44['length']-0x1]['forceDefaultExecution']?_0x3e3c44['pop']():(_0x1815eb['return']=_0x81ae85((..._0x20f65d)=>_0x4c1f9b['execute'](..._0x20f65d,{'forceDefaultExecution':!0x0}),..._0x3e3c44),_0x1815eb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x18994d){let _0x18147d,_0x3d349a;const _0x456682=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x18147d=_0x18994d();}catch(_0x54adb9){_0x3d349a=_0x54adb9;}return _0x456682||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3d349a&&_0xa020e['rethrowUnexpectedError'](_0x3d349a,this),_0x18147d;}['markInsertion'](_0x6c83f3,_0x4b6a0f=null,_0x53616d={}){if(_0x6c83f3['isCollapsed'])return null;const _0x360a00=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x53616d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x260c9c,meta:_0x357c71}of this['_findSuggestions'](_0x6c83f3,'insertion'))if(_0x357c71['isOwn']){if(!_0x357c71['isNextTo']){if(_0x357c71['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x260c9c,_0x53616d))continue;return _0x260c9c;}if(Xt(_0x260c9c,_0x53616d))return _0x260c9c;this['_breakSuggestionMarker'](_0x260c9c,_0x6c83f3['start'],_0x6c83f3['end']);break;}if(_0x4b6a0f==_0x260c9c['subType']&&Xt(_0x260c9c,_0x53616d)){const _0x401f85=_0x260c9c['getFirstRange']();return _0x401f85['start']['isEqual'](_0x6c83f3['end'])?this['_setSuggestionRange'](_0x260c9c,this['_model']['createRange'](_0x6c83f3['start'],_0x401f85['end'])):this['_setSuggestionRange'](_0x260c9c,this['_model']['createRange'](_0x401f85['start'],_0x6c83f3['end'])),_0x260c9c;}}const _0x52b4d8=_0x50cf13(),_0x12f384=_0x360a00['id'],_0x14716d=_0x4b6a0f?'insertion:'+_0x4b6a0f:'insertion',_0x3bf1b1=this['_setSuggestionData']({'id':_0x52b4d8,'type':_0x14716d,'createdAt':new Date(),'authorId':_0x12f384,'attributes':_0x53616d});return this['_addSuggestionMarker'](_0x14716d,_0x52b4d8,_0x12f384,_0x6c83f3),_0x3bf1b1;}['markMultiRangeInsertion'](_0xc4c9fb,_0x20ac1d='multi',_0x3f3a0f={}){const _0x173580=this['editor']['plugins']['get']('Users')['me'],_0x566dad=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x20ac1d,'join');this['_trackingSessionId']&&(_0x3f3a0f['trackingSessionId']=this['_trackingSessionId']);for(const _0x5d9ec5 of this['getSuggestions']())if(_0x5d9ec5['author']['id']==_0x173580['id']&&'insertion'==_0x5d9ec5['type']&&_0x5d9ec5['subType']==_0x20ac1d&&Xt(_0x5d9ec5,_0x3f3a0f)&&(_0x566dad(_0x5d9ec5['getRanges'](),_0xc4c9fb)||_0x566dad(_0xc4c9fb,_0x5d9ec5['getRanges']()))){for(const _0xb01423 of _0xc4c9fb)_0x5d9ec5['addRange'](_0xb01423);return _0x5d9ec5;}for(const {suggestion:_0x5c148e,meta:_0x28f42d}of this['_findSuggestions'](_0xc4c9fb,'insertion')){if(!_0x28f42d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x28f42d['containsRangeInObject'])continue;if(!Xt(_0x5c148e,_0x3f3a0f))continue;let _0x3d768d=!0x0;for(const _0x3e3196 of _0x5c148e['getRanges']())for(const _0x197b06 of _0xc4c9fb)if(!_0x3e3196['containsRange'](_0x197b06)){_0x3d768d=!0x1;break;}if(_0x3d768d)return _0x5c148e;}const _0x147fb=_0x50cf13(),_0x180a10=_0x173580['id'],_0x1d6178='insertion:'+_0x20ac1d,_0x2a20e2=this['_setSuggestionData']({'id':_0x147fb,'type':_0x1d6178,'createdAt':new Date(),'authorId':_0x180a10,'attributes':_0x3f3a0f});for(const _0x50cf00 of _0xc4c9fb)this['_addSuggestionMarker'](_0x1d6178,_0x147fb,_0x180a10,_0x50cf00,T['getMultiRangeId']());return _0x2a20e2;}['markInlineFormat'](_0x26437d,_0x52df94,_0x1bac1d=null,_0x105b6f={}){if(_0x1bac1d=_0x1bac1d||Lt(_0x52df94),_0x26437d['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x105b6f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xd7d432=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bac1d,'accept');return this['forceDefaultExecution'](()=>_0xd7d432([_0x26437d],_0x52df94,_0x105b6f)),null;}const _0x5f2967=this['editor']['plugins']['get']('Users')['me'],_0x23bfbf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2765da,meta:_0x4855a1}of this['_findSuggestions'](_0x26437d,'insertion'))_0x4855a1['isOwn']&&!_0x4855a1['isInsideObject']&&_0x23bfbf['push'](..._0x2765da['getRanges']());}const _0xc2d77e=function(_0x5af4ea,_0x4debea){const _0x2b2bcd=[];for(const _0x2e3a32 of _0x4debea){const _0x4d187e=_0x5af4ea['getIntersection'](_0x2e3a32);_0x4d187e&&_0x2b2bcd['push'](_0x4d187e);}return _0x2b2bcd;}(_0x26437d,_0x23bfbf),_0x3e7d73=function(_0xfe5ba3,_0xb4e9f5){const _0x44131d=[_0xfe5ba3];for(const _0x474509 of _0xb4e9f5){let _0xf4e51d=0x0;for(;_0xf4e51d<_0x44131d['length'];){const _0x4ce2d7=_0x44131d[_0xf4e51d]['getDifference'](_0x474509);_0x44131d['splice'](_0xf4e51d,0x1,..._0x4ce2d7),_0xf4e51d+=_0x4ce2d7['length'];}}return _0x44131d;}(_0x26437d,_0x23bfbf);_0xc2d77e['length']&&this['_model']['change'](()=>{for(const _0x243fa6 of _0xc2d77e){const _0x2750d8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bac1d,'accept');this['forceDefaultExecution'](()=>_0x2750d8([_0x243fa6],_0x52df94,_0x105b6f));}});for(const _0xbc7500 of _0x3e7d73){let _0x18b294=null,_0x23c4c6=_0xbc7500['start'],_0x170dfa=_0xbc7500['end'];for(const {suggestion:_0x1144e8,meta:_0x4d38bc}of this['_findSuggestions'](_0xbc7500,'formatInline')){if(!_0x4d38bc['isOwn'])continue;if(_0x1144e8['subType']!=_0x1bac1d)continue;if(!Xt(_0x1144e8,_0x105b6f))continue;const _0x3c5f2a=_0x1144e8['getFirstRange']();if(_0x3c5f2a['containsRange'](_0xbc7500,!0x0))return null;_0x23c4c6=_0x23c4c6['isBefore'](_0x3c5f2a['start'])?_0x23c4c6:_0x3c5f2a['start'],_0x170dfa=_0x170dfa['isAfter'](_0x3c5f2a['end'])?_0x170dfa:_0x3c5f2a['end'],_0x18b294?_0x3c5f2a['start']['isBefore'](_0x18b294['getFirstRange']()['start'])?(_0x18b294['removeMarkers'](),_0x18b294=_0x1144e8):_0x1144e8['removeMarkers']():_0x18b294=_0x1144e8;}const _0x3b5e9e=this['_model']['createRange'](_0x23c4c6,_0x170dfa);if(_0x18b294)this['_setSuggestionRange'](_0x18b294,_0x3b5e9e);else{const _0x2c990b=_0x50cf13(),_0x5d4722=_0x5f2967['id'];this['_setSuggestionData']({'id':_0x2c990b,'type':'formatInline:'+_0x1bac1d,'data':_0x52df94,'createdAt':new Date(),'authorId':_0x5d4722,'attributes':_0x105b6f}),this['_addSuggestionMarker']('formatInline:'+_0x1bac1d,_0x2c990b,_0x5d4722,_0x3b5e9e);}}return null;}['markBlockFormat'](_0x584cf4,_0x2805d0,_0x27be9c=[],_0x4ef438=null,_0x4d1f37={}){_0x2805d0['formatGroupId']||(_0x2805d0['formatGroupId']=_0x2805d0['commandName']),_0x2805d0['multipleBlocks']=_0x584cf4['is']('range'),_0x4ef438=_0x4ef438||Lt(_0x2805d0);const _0x5843b6=_0x27be9c['map'](_0x5a9433=>zt(_0x5a9433,this['_model'])),_0x4ee4aa=_0x584cf4['is']('range')?_0x584cf4:zt(_0x584cf4,this['_model']);if(this['_trackingSessionId']&&(_0x4d1f37['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x363e69=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ef438,'accept');return this['forceDefaultExecution'](()=>_0x363e69([_0x4ee4aa],_0x2805d0,_0x4d1f37)),null;}_0x5843b6['push'](_0x4ee4aa);let _0x589fd1=!0x0;for(const _0x10977f of _0x5843b6)if(!this['_rangeIsInLocalUserInsertion'](_0x10977f)){_0x589fd1=!0x1;break;}if(_0x589fd1&&'always'!==this['_trackFormatChanges']){const _0x1d0396=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ef438,'accept');return this['forceDefaultExecution'](()=>_0x1d0396([_0x4ee4aa],_0x2805d0,_0x4d1f37)),null;}let _0x278dd9=null,_0x350338=_0x4ee4aa['start'],_0x4b4913=_0x4ee4aa['end'];for(const {suggestion:_0x5854d2,meta:_0x32cb29}of this['_findSuggestions'](_0x4ee4aa,'formatBlock')){if(!_0x32cb29['isOwn'])continue;if(_0x32cb29['isNextTo']||_0x32cb29['containsRangeInObject']||_0x32cb29['isInsideObject'])continue;if(_0x5854d2['data']['formatGroupId']!=_0x2805d0['formatGroupId'])continue;if(!Xt(_0x5854d2,_0x4d1f37))continue;const _0x31bc75=_0x5854d2['getFirstRange']();if(_0x5854d2['subType']==_0x4ef438){if(_0x31bc75['containsRange'](_0x4ee4aa,!0x0))return null;_0x350338=_0x350338['isBefore'](_0x31bc75['start'])?_0x350338:_0x31bc75['start'],_0x4b4913=_0x4b4913['isAfter'](_0x31bc75['end'])?_0x4b4913:_0x31bc75['end'],_0x278dd9?_0x31bc75['start']['isBefore'](_0x278dd9['getFirstRange']()['start'])?(_0x278dd9['removeMarkers'](),_0x278dd9=_0x5854d2):_0x5854d2['removeMarkers']():_0x278dd9=_0x5854d2;}else{const _0x163899=_0x4ee4aa['getIntersection'](_0x31bc75);this['_cutOutSuggestionMarker'](_0x5854d2,_0x163899);}}const _0x30fdd3=this['editor']['plugins']['get']('Users')['me'],_0xa8c83f=_0x50cf13(),_0x108e4a=_0x30fdd3['id'];if(_0x278dd9)return this['_setSuggestionRange'](_0x278dd9,this['_model']['createRange'](_0x350338,_0x4b4913)),_0x278dd9;{const _0x450c64=this['_setSuggestionData']({'id':_0xa8c83f,'type':'formatBlock:'+_0x4ef438,'data':_0x2805d0,'createdAt':new Date(),'authorId':_0x108e4a,'attributes':_0x4d1f37});return this['_addSuggestionMarker']('formatBlock:'+_0x4ef438,_0xa8c83f,_0x108e4a,this['_model']['createRange'](_0x350338,_0x4b4913)),_0x450c64;}}['markMultiRangeBlockFormat'](_0x55bcd1,_0x1a0410,_0xad305a=[],_0x4d5b73=null,_0x2fb316={}){_0x1a0410['formatGroupId']||(_0x1a0410['formatGroupId']=_0x1a0410['commandName']);const _0x3c6cb1=_0x55bcd1[0x0];_0x1a0410['multipleBlocks']=_0x3c6cb1['is']('range'),_0x4d5b73=_0x4d5b73||Lt(_0x1a0410);const _0x3ebfe5=_0xad305a['map'](_0x370deb=>zt(_0x370deb,this['_model'])),_0x49b6f7=_0x3c6cb1['is']('range')?_0x55bcd1:_0x55bcd1['map'](_0x3f4101=>zt(_0x3f4101,this['_model']));if(this['_trackingSessionId']&&(_0x2fb316['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x43b0fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d5b73,'accept');return this['forceDefaultExecution'](()=>_0x43b0fa(_0x49b6f7,_0x1a0410,_0x2fb316)),null;}_0x3ebfe5['push'](..._0x49b6f7);let _0x3ad937=!0x0;for(const _0x21d9c6 of _0x3ebfe5)if(!this['_rangeIsInLocalUserInsertion'](_0x21d9c6)){_0x3ad937=!0x1;break;}if(_0x3ad937&&'always'!==this['_trackFormatChanges']){const _0x3c6e19=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d5b73,'accept');return this['forceDefaultExecution'](()=>_0x3c6e19(_0x49b6f7,_0x1a0410,_0x2fb316)),null;}const _0x2b2662=this['editor']['plugins']['get']('Users')['me'];for(const _0x5887d2 of this['getSuggestions']()){const _0x44c4d0=_0x5887d2['data'];if(_0x5887d2['author']['id']!=_0x2b2662['id'])continue;if('formatBlock'!=_0x5887d2['type']||_0x44c4d0['formatGroupId']!=_0x1a0410['formatGroupId'])continue;if(!Xt(_0x5887d2,_0x2fb316))continue;const _0x4accdc=_0x5887d2['subType']==_0x4d5b73;for(let _0x5c7e0e=0x0;_0x5c7e0e<_0x49b6f7['length'];_0x5c7e0e++){const _0xf734d0=_0x49b6f7[_0x5c7e0e];for(const _0x1cf464 of _0x5887d2['getMarkers']()){const _0x24bde7=_0x1cf464['getRange']();if(_0xf734d0['isEqual'](_0x24bde7)){_0x4accdc?(_0x49b6f7['splice'](_0x5c7e0e,0x1),_0x5c7e0e--):_0x5887d2['removeMarker'](_0x1cf464['name']);break;}}}}if(0x0==_0x49b6f7['length'])return null;const _0x3abb68=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d5b73,'join');for(const _0x3c514d of this['getSuggestions']()){const _0x37deb9=_0x3c514d['data'];if(_0x3c514d['author']['id']==_0x2b2662['id']&&('formatBlock'==_0x3c514d['type']&&_0x37deb9['formatGroupId']==_0x1a0410['formatGroupId']&&_0x3c514d['subType']==_0x4d5b73&&Xt(_0x3c514d,_0x2fb316)&&(_0x3abb68(_0x3c514d['getRanges'](),_0x49b6f7)||_0x3abb68(_0x49b6f7,_0x3c514d['getRanges']())))){for(const _0x410fd0 of _0x49b6f7)_0x3c514d['addRange'](_0x410fd0);return _0x3c514d;}}const _0x4b4c47=_0x50cf13(),_0x2b77a5=_0x2b2662['id'],_0x1b5aa3='formatBlock:'+_0x4d5b73,_0x3bd906=this['_setSuggestionData']({'id':_0x4b4c47,'type':_0x1b5aa3,'data':_0x1a0410,'createdAt':new Date(),'authorId':_0x2b77a5,'attributes':_0x2fb316});for(const _0x5f06d7 of _0x49b6f7)this['_addSuggestionMarker'](_0x1b5aa3,_0x4b4c47,_0x2b77a5,_0x5f06d7,T['getMultiRangeId']());return _0x3bd906;}['markDeletion'](_0x149b97,_0x757540=null,_0x4ffdb7={}){if(_0x149b97['isCollapsed'])return null;const _0x12abf5=this['editor']['plugins']['get']('Users')['me'],_0x446a11=new _0xb0dd32(_0x149b97['start'],_0x149b97['end']);this['_trackingSessionId']&&(_0x4ffdb7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x555b49,meta:_0x39da13}of this['_findSuggestions'](_0x446a11,'insertion'))if(_0x39da13['isOwn']&&!_0x39da13['isNextTo']){if(_0x555b49['isMultiRange']){const _0x5707d5=_0x555b49['getRanges']()['filter'](_0x4b3bc5=>'$graveyard'!=_0x4b3bc5['root']['rootName']);_0x5707d5['every'](_0x4bc499=>_0x446a11['containsRange'](_0x4bc499,!0x0))&&_0x555b49['discard']();if(_0x5707d5['some'](_0xe3c6db=>_0xe3c6db['containsRange'](_0x446a11,!0x0))){const _0x2aff75=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x757540,'accept');return this['forceDefaultExecution'](()=>_0x2aff75([_0x446a11],null,_0x4ffdb7)),null;}}else{const _0x2ef2b8=_0x446a11['getIntersection'](_0x555b49['getFirstRange']());null!==_0x2ef2b8&&_0x555b49['_onDiscard']([_0x2ef2b8],null,_0x4ffdb7);}}if(_0x446a11['detach'](),_0x446a11['isCollapsed']||'$graveyard'==_0x446a11['root']['rootName'])return null;let _0x34c6c1=null,_0x5c60ae=_0x446a11['start'],_0x58dff4=_0x446a11['end'];const _0x413c87=this['_findSuggestions'](_0x446a11,'deletion');for(const {suggestion:_0x1d9938,meta:_0xd3efdc}of _0x413c87){const _0x4b761e=this['_model']['createRange'](_0x5c60ae,_0x58dff4);if(_0xd3efdc['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd3efdc['containsRangeInObject']&&!_0xd3efdc['isInsideObject'])){if(_0x1d9938['isMultiRange']){if(!Xt(_0x1d9938,_0x4ffdb7))continue;let _0x2def5d=!0x0;for(const _0x29ca75 of _0x1d9938['getRanges']()){if(_0x29ca75['containsRange'](_0x4b761e,!0x0))return _0x1d9938;_0x4b761e['containsRange'](_0x29ca75)||(_0x2def5d=!0x1);}_0x2def5d&&_0x1d9938['discard']();}else{const _0x54ac25=_0x1d9938['getFirstRange']();if(_0x54ac25['containsRange'](_0x4b761e,!0x0))return _0x1d9938;if(!Xt(_0x1d9938,_0x4ffdb7)){_0x4b761e['containsRange'](_0x54ac25)?_0x1d9938['removeMarkers']():_0x54ac25['containsPosition'](_0x5c60ae)?_0x5c60ae=_0x54ac25['end']:_0x54ac25['containsPosition'](_0x58dff4)&&(_0x58dff4=_0x54ac25['start']);continue;}_0x5c60ae=_0x5c60ae['isBefore'](_0x54ac25['start'])?_0x5c60ae:_0x54ac25['start'],_0x58dff4=_0x58dff4['isAfter'](_0x54ac25['end'])?_0x58dff4:_0x54ac25['end'],_0x4ffdb7=Object['assign']({},_0x1d9938['attributes']),_0x34c6c1?_0x54ac25['start']['isBefore'](_0x34c6c1['getFirstRange']()['start'])?(_0x34c6c1['removeMarkers'](),_0x34c6c1=_0x1d9938):_0x1d9938['removeMarkers']():_0x34c6c1=_0x1d9938;}}}if(_0x34c6c1)return this['_setSuggestionRange'](_0x34c6c1,this['_model']['createRange'](_0x5c60ae,_0x58dff4)),_0x34c6c1;{const _0x1d72e0=_0x50cf13(),_0xf4a181=this['_model']['createRange'](_0x5c60ae,_0x58dff4),_0x2f99de=_0x12abf5['id'],_0x215811=_0x757540?'deletion:'+_0x757540:'deletion',_0x4afdc7=this['_setSuggestionData']({'id':_0x1d72e0,'type':_0x215811,'createdAt':new Date(),'authorId':_0x2f99de,'attributes':_0x4ffdb7});return this['_addSuggestionMarker'](_0x215811,_0x1d72e0,_0x2f99de,_0xf4a181),_0x4afdc7;}}['markMultiRangeDeletion'](_0x286611,_0x3ed4f0='multi',_0x3108b0={}){const _0x1c4527=this['editor']['plugins']['get']('Users')['me'],_0x3832b3=_0x286611['map'](_0x4ea9c1=>new _0xb0dd32(_0x4ea9c1['start'],_0x4ea9c1['end'])),_0x22abe4=new Set();this['_trackingSessionId']&&(_0x3108b0['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x365a2f,meta:_0x35971e}of this['_findSuggestions'](_0x3832b3,'insertion'))_0x35971e['isOwn']&&!_0x35971e['isNextTo']&&_0x22abe4['add'](_0x365a2f);for(const _0x305414 of _0x22abe4)if(_0x305414['isMultiRange']){const _0x1f6deb=_0x305414['getRanges']();(!_0x305414['attributes']||!_0x305414['attributes']['skipNestingCheck'])&&(_0x1f6deb['every'](_0x39e49f=>_0x3832b3['some'](_0xfcd6e3=>_0xfcd6e3['containsRange'](_0x39e49f,!0x0)))&&_0x305414['discard']());if(_0x3832b3['every'](_0x48ef4a=>_0x1f6deb['some'](_0xaa5e79=>_0xaa5e79['containsRange'](_0x48ef4a,!0x0)))){const _0x1369eb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ed4f0,'accept');return this['forceDefaultExecution'](()=>_0x1369eb(_0x286611,null,_0x3108b0)),null;}}else{const _0x4406f0=_0x305414['getFirstRange']();_0x3832b3['some'](_0x4853a8=>_0x4853a8['containsRange'](_0x4406f0,!0x0))&&_0x305414['discard']();if(_0x3832b3['every'](_0x689e9f=>_0x4406f0['containsRange'](_0x689e9f,!0x0))){const _0x72ace9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ed4f0,'accept');return this['forceDefaultExecution'](()=>_0x72ace9(_0x3832b3,null,_0x3108b0)),null;}}const _0x1ec20a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ed4f0,'join');let _0x5456d7=null;for(const _0xe0458d of this['getSuggestions']())if(_0xe0458d['author']['id']==_0x1c4527['id']&&_0xe0458d['isInContent']&&'deletion'==_0xe0458d['type']&&_0xe0458d['subType']==_0x3ed4f0&&Xt(_0xe0458d,_0x3108b0)&&(_0x1ec20a(_0xe0458d['getRanges'](),_0x3832b3)||_0x1ec20a(_0x3832b3,_0xe0458d['getRanges']()))){if(_0x5456d7){if(_0xe0458d['commentThread']&&_0xe0458d['commentThread']['length'])continue;for(const _0x409266 of _0xe0458d['getRanges']())_0x5456d7['isIntersectingWithRange'](_0x409266)||_0x5456d7['addRange'](_0x409266);_0xe0458d['removeMarkers']();}else{_0x5456d7=_0xe0458d;for(const _0x20e69b of _0x3832b3)_0xe0458d['isIntersectingWithRange'](_0x20e69b)||_0xe0458d['addRange'](_0x20e69b);}}if(_0x5456d7)return _0x5456d7;_0x22abe4['clear']();for(const {suggestion:_0x4b97a7,meta:_0x154d8e}of this['_findSuggestions'](_0x3832b3,'deletion'))_0x154d8e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x154d8e['containsRangeInObject']&&!_0x154d8e['isInsideObject'])&&Xt(_0x4b97a7,_0x3108b0)&&_0x22abe4['add'](_0x4b97a7);for(const _0x3cf460 of _0x22abe4){const _0x3ae142=_0x3cf460['getRanges']();if(!_0x3108b0||!_0x3108b0['skipNestingCheck']){if(_0x3832b3['every'](_0x4325bf=>_0x3ae142['some'](_0xb50034=>_0xb50034['containsRange'](_0x4325bf,!0x0))))return _0x3cf460;}(!_0x3cf460['attributes']||!_0x3cf460['attributes']['skipNestingCheck'])&&(_0x3ae142['every'](_0x55eb4c=>_0x3832b3['some'](_0x36ea56=>_0x36ea56['containsRange'](_0x55eb4c,!0x0)))&&_0x3cf460['discard']());}const _0x570721=_0x50cf13(),_0x57a318=_0x1c4527['id'],_0x2463ee='deletion:'+_0x3ed4f0,_0x599086=this['_setSuggestionData']({'id':_0x570721,'type':_0x2463ee,'createdAt':new Date(),'authorId':_0x57a318,'attributes':_0x3108b0});for(const _0xaad600 of _0x3832b3)_0xaad600['detach'](),_0xaad600['isCollapsed']||'$graveyard'==_0xaad600['root']['rootName']||this['_addSuggestionMarker'](_0x2463ee,_0x570721,_0x57a318,_0xaad600,T['getMultiRangeId']());return _0x599086;}['markAttributeChange'](_0x40300f,_0x331b8f,_0x203c32,_0x4b636b,_0x145eb3){if(_0x40300f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2ca571=this['editor']['plugins']['get']('Users')['me']['id'],_0x2a659d=Array['from'](this['_suggestions']['values']())['filter'](_0x34acae=>'attribute'==_0x34acae['type']&&_0x34acae['data']['key']==_0x331b8f&&_0x34acae['isIntersectingWithRange'](_0x40300f));if(this['_trackingSessionId']&&(_0x145eb3['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x387ecb=this['_findSuggestions'](_0x40300f,'insertion')['filter'](({meta:_0x5342c1})=>_0x5342c1['isOwn']&&!_0x5342c1['isInsideObject']&&!_0x5342c1['isNextTo'])['map'](({suggestion:_0x1436d1})=>_0x1436d1);_0x2a659d['unshift'](..._0x387ecb);}const _0x4f1e13=new Map([[_0x40300f,_0x203c32]]);for(const _0x264f2e of _0x2a659d){const _0x2fbb62='attribute'==_0x264f2e['type']?_0x264f2e['data']['oldValue']:void 0x0,_0x2e4005=_0x264f2e['getFirstRange'](),_0x55f67b=Array['from'](_0x4f1e13['keys']())['find'](_0x2076c6=>_0x2076c6['isIntersecting'](_0x2e4005));if(!_0x55f67b)continue;const _0x43f922=_0x55f67b['getDifference'](_0x2e4005);this['_isBlockAttribute'](_0x331b8f)&&'insertion'==_0x264f2e['type']&&0x0!=_0x43f922['length']||(_0x4f1e13['delete'](_0x55f67b),_0x43f922['forEach'](_0x48efb2=>{_0x4f1e13['set'](_0x48efb2,_0x203c32);}),'insertion'!=_0x264f2e['type']&&_0x2fbb62!=_0x4b636b&&_0x4f1e13['set'](_0x55f67b['getIntersection'](_0x2e4005),_0x2fbb62));}const _0x1f3b6c=[];for(const [_0x183715,_0x59e6f3]of _0x4f1e13){const _0x5df1d4=_0x50cf13(),_0x1bc7ac={'key':_0x331b8f,'oldValue':_0x59e6f3,'newValue':_0x4b636b};_0x331b8f['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':_0x331b8f});const _0x2456f2=('attribute:'+(_0x331b8f+'|'+Lt({'newValue':_0x4b636b})))['substring'](0x0,0x3c),_0xcdb617=this['_setSuggestionData']({'id':_0x5df1d4,'type':_0x2456f2,'data':_0x1bc7ac,'createdAt':new Date(),'authorId':_0x2ca571,'attributes':_0x145eb3});_0x1f3b6c['push'](_0xcdb617),this['_addSuggestionMarker'](_0x2456f2,_0x5df1d4,_0x2ca571,_0x183715);}return _0x1f3b6c;}['enableDefaultAttributesIntegration'](_0x19dc18){this['enableCommand'](_0x19dc18,(_0x13fd0a,..._0x5dd0f4)=>{this['recordAttributeChanges'](()=>{_0x13fd0a(..._0x5dd0f4);});});}['registerBlockAttribute'](_0x15dabc){this['_blockAttributeKeys']['add'](_0x15dabc);}['registerInlineAttribute'](_0x429f52){this['_inlineAttributeKeys']['add'](_0x429f52);}['startTrackingSession'](_0x4528a2){return this['_trackingSessionId']=void 0x0!==_0x4528a2?_0x4528a2:_0x50cf13(),this['_trackingSessionId'];}['_getAttributeKey'](_0x147482){return'attribute'==_0x147482['type']?_0x147482['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1f289d,_0x137930){const _0xd593db=_0x1f289d['getFirstMarker']();this['_model']['change'](_0x4bacc7=>{_0x4bacc7['updateMarker'](_0xd593db,{'range':_0x137930});});}['_addThreadToSuggestion'](_0x5ca201){const _0x4b66b2=_0x5ca201['id'],_0x582411=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4b66b2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x582411,'threadId':_0x4b66b2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x57b259=this['_commentsRepository']['getCommentThread'](_0x4b66b2);_0x57b259['unbind']('isRemovable'),_0x57b259['isRemovable']=!0x1,_0x5ca201['commentThread']=_0x57b259;}['_checkSuggestionCorrectness'](_0x55c4fd,_0x7ae2af,_0x3ad921,_0x627581){if(_0x55c4fd['type']!=_0x7ae2af||_0x55c4fd['subType']!=_0x3ad921||_0x55c4fd['creator']['id']!=_0x627581)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa020e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4d9906,_0x2d3366){const _0x19aa83=_0x4d9906['getFirstRange']();if(_0x2d3366['isEqual'](_0x19aa83))_0x4d9906['removeMarkers']();else{if(_0x19aa83['containsRange'](_0x2d3366)){const _0x52b779=this['_model']['createPositionAt'](_0x2d3366['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4d9906,this['_model']['createRange'](_0x19aa83['start'],_0x52b779));const _0x2c460c=_0x50cf13(),_0x103511=_0x4d9906['creator']['id'],_0x44f57a=_0x4d9906['type']+':'+_0x4d9906['subType'];this['_setSuggestionData']({'id':_0x2c460c,'type':_0x44f57a,'createdAt':new Date(),'authorId':_0x103511,'data':_0x4d9906['data'],'attributes':_0x4d9906['attributes']});const _0x37c8a0=this['_model']['createPositionAt'](_0x2d3366['end']['parent'],'after'),_0x4196bd=this['_model']['createRange'](_0x37c8a0,_0x19aa83['end']);this['_addSuggestionMarker'](_0x44f57a,_0x2c460c,_0x103511,_0x4196bd);}else{if(_0x19aa83['containsPosition'](_0x2d3366['start'])){const _0x1fa224=this['_model']['createPositionAt'](_0x2d3366['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4d9906,this['_model']['createRange'](_0x19aa83['start'],_0x1fa224));}else{const _0x1935dc=this['_model']['createPositionAt'](_0x2d3366['end']['parent'],'after');this['_setSuggestionRange'](_0x4d9906,this['_model']['createRange'](_0x1935dc,_0x19aa83['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x140b1b){for(const {suggestion:_0x21d0ba,meta:_0x420838}of this['_findSuggestions'](_0x140b1b,'insertion')){if(!_0x420838['isOwn'])continue;const _0x200440=_0x21d0ba['getRanges']();for(const _0xbe670a of _0x200440)if(!_0x140b1b['getDifference'](_0xbe670a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x535978){const _0x4f18f2=this['editor']['plugins']['get']('Users')['getUser'](_0x535978);if(!_0x4f18f2)throw new _0xa020e('track-changes-user-not-found',this);return _0x4f18f2;}['_getExternalAuthor'](_0x4db1fc){const _0x4f7462=this['editor']['plugins']['get']('Users'),_0x4b6c28=_0x33e6a4('external:'+_0x4db1fc),_0x580f3c=_0x4f7462['getUser'](_0x4b6c28);return _0x580f3c||_0x4f7462['addUser']({'id':_0x4b6c28,'name':_0x4db1fc});}['_createSuggestion'](_0x1665d4,_0x4e8172,_0x43efee,_0x5d1f9a,_0x742b8,_0x1a9524){const _0x256d5e=this['_getAuthorFromId'](_0x5d1f9a),_0x4cf5d9=this['_suggestionFactory']['buildSuggestion'](_0x1665d4,_0x4e8172,_0x43efee,_0x256d5e,_0x742b8,_0x4e4404=>{this['_updateSuggestionData'](_0x43efee,{'attributes':_0x4e4404});const _0x56adcc=this['getSuggestion'](_0x43efee);this['_joinWithAdjacentSuggestions'](new Set([_0x56adcc])),this['_refreshSuggestionsChain'](new Set([_0x56adcc]));},_0x1a9524);return this['listenTo'](_0x4cf5d9,'accept',()=>{this['_updateSuggestionData'](_0x43efee,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4cf5d9,'discard',()=>{this['_updateSuggestionData'](_0x43efee,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x43efee,_0x4cf5d9),this['_suggestionState']['set'](_0x4cf5d9,'notReady'),_0x4cf5d9;}['_splitMarkerName'](_0x479aa2){const _0x42d774=_0x479aa2['split'](':');return{'group':_0x42d774[0x0],'type':_0x42d774[0x1],'subType':_0x42d774['length']>=0x5?_0x42d774[0x2]:null,'id':_0x42d774['length']<0x5?_0x42d774[0x2]:_0x42d774[0x3],'authorId':_0x42d774['length']<0x5?_0x42d774[0x3]:_0x42d774[0x4],'markerCount':0x6==_0x42d774['length']?_0x42d774[0x5]:null};}['_breakSuggestionMarker'](_0x581543,_0x2bb98d,_0x97b4fa){const _0x39c066=_0x581543['getFirstRange'](),_0x531bdc=_0x39c066['start'],_0x4d0b99=_0x39c066['end'];this['_setSuggestionRange'](_0x581543,this['_model']['createRange'](_0x531bdc,_0x2bb98d));const _0x482c74=_0x50cf13(),_0x5600ba=_0x581543['creator']['id'],_0x470b66=_0x581543['type']+(_0x581543['subType']?':'+_0x581543['subType']:'');this['_setSuggestionData']({'id':_0x482c74,'type':_0x470b66,'createdAt':new Date(),'authorId':_0x5600ba,'originalSuggestionId':_0x581543['_originalSuggestionId']||_0x581543['id'],'attributes':_0x581543['attributes'],'data':_0x581543['data']});const _0x2de1f7=this['_getAttributeKey'](_0x581543);('formatBlock'==_0x581543['type']||_0x2de1f7&&this['_isBlockAttribute'](_0x2de1f7))&&(_0x97b4fa=this['_model']['createPositionBefore'](_0x97b4fa['parent'])),this['_addSuggestionMarker'](_0x470b66,_0x482c74,_0x5600ba,this['_model']['createRange'](_0x97b4fa,_0x4d0b99));}['_findSuggestions'](_0x5ccd2d,_0x3a04de=null){const _0x1206dc=[],_0x55f739=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5ccd2d)||(_0x5ccd2d=[_0x5ccd2d]);for(const _0x1407fb of this['getSuggestions']()){if(!_0x1407fb['isInContent'])continue;if(_0x3a04de&&_0x1407fb['type']!=_0x3a04de)continue;let _0x556b56=!0x1;for(const _0x368443 of _0x1407fb['getRanges']()){for(const _0x248609 of _0x5ccd2d){const _0x521af9=_0x248609['start']['isEqual'](_0x368443['end'])||_0x248609['end']['isEqual'](_0x368443['start']);if(_0x521af9||_0x248609['getIntersection'](_0x368443)){const _0x3aa933=_0x248609['containsRange'](_0x368443)&&Ft(this['_model']['schema'],_0x368443['start'],_0x248609),_0xa53401=_0x368443['containsRange'](_0x248609)&&Ft(this['_model']['schema'],_0x248609['start'],_0x368443);_0x1206dc['push']({'suggestion':_0x1407fb,'meta':{'isOwn':_0x55f739==_0x1407fb['author'],'isNextTo':_0x521af9,'isInsideObject':_0x3aa933,'containsRangeInObject':_0xa53401}}),_0x556b56=!0x0;break;}}if(_0x556b56)break;}}return _0x1206dc;}['_addSuggestionMarker'](_0x20470f,_0x121b32,_0xdf9d76,_0x1b038d,_0x1f839e){this['_model']['change'](_0x2ae8ee=>{let _0x46301d='suggestion:'+_0x20470f+':'+_0x121b32+':'+_0xdf9d76;_0x1f839e&&(_0x46301d=_0x46301d+':'+_0x1f839e),_0x2ae8ee['addMarker'](_0x46301d,{'range':_0x1b038d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xdd8245){const _0x1986c2=_0xdd8245['previous'],_0x4513c0=_0xdd8245['next'];_0xdd8245['previous']=null,_0xdd8245['next']=null,null!=_0x1986c2&&_0x1986c2['next']==_0xdd8245&&(_0x1986c2['next']=_0x4513c0),null!=_0x4513c0&&_0x4513c0['previous']==_0xdd8245&&(_0x4513c0['previous']=_0x1986c2),'ready'==this['_suggestionState']['get'](_0xdd8245)&&(this['_suggestionState']['set'](_0xdd8245,'removed'),this['fire']('suggestionUnloaded',_0xdd8245,_0x1986c2,_0x4513c0));}['_setSuggestionData'](_0x1a6602){const _0x22b37a=_0x1a6602['id'],_0x2ff165=this['addSuggestionData'](_0x1a6602);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d07dd=this['editor']['plugins']['get']('PendingActions'),_0x1f7bb5=_0x2ff165['hasComments'],_0x5da9be=_0x2ff165['subType']?_0x2ff165['type']+':'+_0x2ff165['subType']:_0x2ff165['type'],_0x12b4a8=this['editor']['locale'],_0x3eb284=_0x1d07dd['add'](o(_0x12b4a8,'PENDING_ACTION_SUGGESTION')),_0x1b1c4c={'id':_0x22b37a,'type':_0x5da9be,'hasComments':_0x1f7bb5,'data':_0x1a6602['data']||null,'originalSuggestionId':_0x1a6602['originalSuggestionId']||null,'attributes':_0x2ff165['attributes']};this['_adapter']['addSuggestion'](_0x1b1c4c)['then'](_0x4eefad=>{_0x2ff165['_saved']=!0x0,_0x1d07dd['remove'](_0x3eb284),_0x4eefad&&_0x4eefad['createdAt']&&(this['_suggestions']['get'](_0x22b37a)['createdAt']=_0x4eefad['createdAt']);})['catch'](_0x2ec319=>{throw _0x398cda('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2ff165['discard']();}),_0x2ff165['stopListening'](),this['_suggestions']['delete'](_0x2ff165['id']),this['_suggestionState']['delete'](_0x2ff165),_0x2ec319;});}return _0x2ff165;}['_isBlockAttribute'](_0x27672f){return this['_blockAttributeKeys']['has'](_0x27672f);}['_isInlineAttribute'](_0x2b81d4){return this['_inlineAttributeKeys']['has'](_0x2b81d4);}['_updateSuggestionData'](_0x596f4a,_0x2b8627){const _0xb4edc0=this['editor']['plugins']['get']('PendingActions'),_0x48e346=this['getSuggestion'](_0x596f4a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x48e346['_saved']){const _0x16a779=_0xb4edc0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x596f4a,_0x2b8627)['then'](()=>{_0xb4edc0['remove'](_0x16a779);});}else _0x48e346['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x596f4a,_0x2b8627);});}}['_getSuggestionData'](_0x647c7){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa020e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x647c7);}['_handleNewSuggestionMarker'](_0x101d2e){const {id:_0x10527d,type:_0x28a9e6,subType:_0xbaf809,authorId:_0x3afc3c}=this['_splitMarkerName'](_0x101d2e),_0x262a91=this['_suggestions']['get'](_0x10527d)||this['_createSuggestion'](_0x28a9e6,_0xbaf809,_0x10527d,_0x3afc3c,{});switch(this['_checkSuggestionCorrectness'](_0x262a91,_0x28a9e6,_0xbaf809,_0x3afc3c),this['_suggestionState']['get'](_0x262a91)){case'notReady':this['_getSuggestionData'](_0x10527d)['then'](_0x7d042f=>{let _0xd2a321=Promise['resolve']();_0x7d042f['hasComments']&&(_0xd2a321=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x10527d})),_0xd2a321['then'](()=>{this['addSuggestionData'](_0x7d042f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x262a91,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x10527d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x262a91,'ready'),this['fire']('suggestionLoaded',_0x262a91);break;case'ready':this['fire']('suggestionChanged',_0x262a91);}return _0x262a91['addMarkerName'](_0x101d2e),_0x262a91;}['_refreshSuggestionsChain'](_0x442aa7){const _0x22478f=Array['from'](_0x442aa7),_0x3c0562=_0x22478f['filter'](_0xb7bcbb=>'attribute'==_0xb7bcbb['type']);this['_refreshAttributeSuggestionsChain'](_0x3c0562);const _0x3ccd81=_0x22478f['filter'](_0x5f0892=>!_0x5f0892['isMultiRange']&&'attribute'!=_0x5f0892['type']),_0x26c466=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c1edf=>!_0x2c1edf['isMultiRange']&&'attribute'!=_0x2c1edf['type']),_0x19bf34=_0x26c466['filter'](_0x3491d7=>!_0x442aa7['has'](_0x3491d7)),_0x1839c2=new Map(_0x26c466['map'](_0x5bd31e=>[_0x5bd31e,this['_suggestionFactory']['getSuggestionCallback'](_0x5bd31e['type'],_0x5bd31e['subType'],'chain')])),_0x3a9460=new Map(_0x26c466['map'](_0x9190b5=>[_0x9190b5,_0x9190b5['getFirstRange']()])),_0x19f070=new Set(),_0x1f37b3=new Set();for(let _0x14e280=0x0;_0x14e280<_0x3ccd81['length'];_0x14e280++)_0xa3e5ea(_0x3ccd81[_0x14e280],_0x3ccd81,_0x14e280+0x1);for(let _0x3b2cef=0x0;_0x3b2cef<_0x3ccd81['length'];_0x3b2cef++)_0xa3e5ea(_0x3ccd81[_0x3b2cef],_0x19bf34,0x0);const _0x31072a=new Set();for(let _0x1ffad3=0x0;_0x1ffad3<_0x3ccd81['length'];_0x1ffad3++){const _0x2ea888=_0x3ccd81[_0x1ffad3];!_0x1f37b3['has'](_0x2ea888)&&_0x2ea888['previous']&&(_0x31072a['add'](_0x2ea888['previous']),_0x2ea888['previous']['next']===_0x2ea888&&(_0x2ea888['previous']['next']=null),_0x2ea888['previous']=null),!_0x19f070['has'](_0x2ea888)&&_0x2ea888['next']&&(_0x31072a['add'](_0x2ea888['next']),_0x2ea888['next']['previous']===_0x2ea888&&(_0x2ea888['next']['previous']=null),_0x2ea888['next']=null);}function _0xa3e5ea(_0x51e06f,_0x333e49,_0x23fb2b){for(let _0xaba8ec=_0x23fb2b;_0xaba8ec<_0x333e49['length'];_0xaba8ec++){const _0x3a92be=_0x18ce57(_0x51e06f,_0x333e49[_0xaba8ec]);_0x3a92be&&(_0x3a92be[0x0]['next']=_0x3a92be[0x1],_0x3a92be[0x1]['previous']=_0x3a92be[0x0],_0x19f070['add'](_0x3a92be[0x0]),_0x1f37b3['add'](_0x3a92be[0x1]));}}function _0x18ce57(_0x129f9b,_0x3cc8ff){if(_0x129f9b['author']['id']!==_0x3cc8ff['author']['id'])return null;const _0x4872fc=_0x1839c2['get'](_0x129f9b)(_0x129f9b,_0x3cc8ff,_0x3a9460['get'](_0x129f9b),_0x3a9460['get'](_0x3cc8ff));if(!_0x4872fc)return null;return _0x1839c2['get'](_0x3cc8ff)(_0x129f9b,_0x3cc8ff,_0x3a9460['get'](_0x129f9b),_0x3a9460['get'](_0x3cc8ff))?_0x4872fc[0x1]['commentThread']&&_0x4872fc[0x1]['commentThread']['length']?null:_0x4872fc:null;}_0x31072a['size']&&this['_refreshSuggestionsChain'](_0x31072a);}['_refreshAttributeSuggestionsChain'](_0x42b050){if(0x0==_0x42b050['length'])return;const _0x30e3c9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58be5b=>'attribute'==_0x58be5b['type']&&_0x58be5b['_isDataLoaded']),_0x5951d7=[],_0x450e5b=new Map();for(const _0x13ac9c of _0x30e3c9){const _0x40a7a2=_0x33e6a4(_0x13ac9c['attributes']);_0x450e5b['has'](_0x40a7a2)||(_0x450e5b['set'](_0x40a7a2,_0x5951d7['length']),_0x5951d7['push']([]));const _0x1c847d=_0x450e5b['get'](_0x40a7a2);_0x5951d7[_0x1c847d]['push'](_0x13ac9c);}!(function(){_0x5951d7['sort']((_0x15b5ba,_0x1beb86)=>{const _0x508294=_0x15b5ba[0x0]['createdAt'],_0x22827c=_0x1beb86[0x0]['createdAt'];return _0x508294==_0x22827c?_0x15b5ba[0x0]['attributes']['groupId']<_0x1beb86[0x0]['attributes']['groupId']?-0x1:0x1:_0x508294<_0x22827c?-0x1:0x1;});for(const _0x67a979 of _0x5951d7)_0x67a979['sort']((_0x3551a0,_0x47b17d)=>_0x3551a0['id']<_0x47b17d['id']?-0x1:0x1);}());for(let _0x5450de=0x0;_0x5450de<_0x5951d7['length'];_0x5450de++){if(0x0==_0x5951d7[_0x5450de]['length'])continue;const _0x194c52=[];for(let _0x17d6d6=_0x5450de+0x1;_0x17d6d6<_0x5951d7['length'];_0x17d6d6++)0x0!=_0x5951d7[_0x17d6d6]['length']&&_0x551345(_0x5951d7[_0x5450de],_0x5951d7[_0x17d6d6])&&_0x194c52['push'](_0x17d6d6);for(const _0x1a83be of _0x194c52)_0x5951d7[_0x5450de]=_0x5951d7[_0x5450de]['concat'](_0x5951d7[_0x1a83be]),_0x5951d7[_0x1a83be]=[];}for(const _0xad4d4a of _0x5951d7)for(let _0x5e5129=0x0;_0x5e5129<_0xad4d4a['length'];_0x5e5129++){const _0x129041=_0xad4d4a[_0x5e5129+0x1]||null;_0xad4d4a[_0x5e5129]['next']!==_0x129041&&(_0xad4d4a[_0x5e5129]['next']=_0x129041);}for(const _0x4e9454 of _0x5951d7)for(let _0x52fd6e=0x0;_0x52fd6e<_0x4e9454['length'];_0x52fd6e++){const _0x135f4e=_0x4e9454[_0x52fd6e-0x1]||null;_0x4e9454[_0x52fd6e]['previous']!==_0x135f4e&&(_0x4e9454[_0x52fd6e]['previous']=_0x135f4e);}function _0x551345(_0x4f8c8c,_0x2faa79){if(_0x4f8c8c[0x0]['attributes']['groupId']!==_0x2faa79[0x0]['attributes']['groupId']&&_0x4f8c8c[0x0]['author']!==_0x2faa79[0x0]['author'])return!0x1;if(!function(_0x3cb9da,_0x17140b){if(!_0x3cb9da['hasComments']&&!_0x17140b['hasComments'])return!0x0;if(_0x3cb9da['hasComments']&&_0x17140b['hasComments'])return!0x1;if(_0x3cb9da['hasComments']&&_0x17140b['createdAt']<_0x3cb9da['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x17140b['hasComments']&&_0x3cb9da['createdAt']<_0x17140b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4f8c8c[0x0],_0x2faa79[0x0]))return!0x1;const _0x302410=Ut(_0x4f8c8c[0x0]['attributes'],['groupId','trackingSessionId']),_0x25540d=Ut(_0x2faa79[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xc3c78d(_0x302410,_0x25540d))return!0x1;if(_0x4f8c8c[0x0]['attributes']['groupId']==_0x2faa79[0x0]['attributes']['groupId'])return!0x0;if(_0x4f8c8c[0x0]['attributes']['trackingSessionId']!==_0x2faa79[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4f8c8c['every'](_0x5852fb=>_0x2faa79['some'](_0x220bb9=>_0x5852fb['getFirstRange']()['isEqual'](_0x220bb9['getFirstRange']())))&&_0x2faa79['every'](_0x5397eb=>_0x4f8c8c['some'](_0x1dc615=>_0x5397eb['getFirstRange']()['isEqual'](_0x1dc615['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5d2090){const _0x570e77=Array['from'](_0x5d2090),_0x4beff5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3cce5a=_0x4beff5['filter'](_0x1bb316=>!_0x5d2090['has'](_0x1bb316)),_0x316a11=new Map(_0x570e77['map'](_0x2e3b0f=>[_0x2e3b0f,this['_suggestionFactory']['getSuggestionCallback'](_0x2e3b0f['type'],_0x2e3b0f['subType'],'join')])),_0x247ba6=new Map(_0x4beff5['map'](_0xd17e15=>[_0xd17e15,_0xd17e15['getRanges']()]));for(let _0x498a23=0x0;_0x498a23<_0x570e77['length'];_0x498a23++){if(_0x1e74f3(this,_0x570e77[_0x498a23],_0x570e77,_0x498a23+0x1))return!0x0;}for(let _0x5345ea=0x0;_0x5345ea<_0x570e77['length'];_0x5345ea++){if(_0x1e74f3(this,_0x570e77[_0x5345ea],_0x3cce5a,0x0))return!0x0;}return!0x1;function _0x1e74f3(_0x88ac78,_0x41f419,_0xafa5d4,_0x3940a2){for(let _0x452591=_0x3940a2;_0x452591<_0xafa5d4['length'];_0x452591++){const _0x57cd46=_0xafa5d4[_0x452591];if(_0x57cd46['type']!==_0x41f419['type']||_0x57cd46['author']['id']!==_0x41f419['author']['id']||_0x57cd46['subType']!==_0x41f419['subType'])continue;if(!Qt(_0x41f419,_0x57cd46))continue;if('attribute'==_0x41f419['type']&&_0x41f419['data']['oldValue']!=_0x57cd46['data']['oldValue'])continue;if('attribute'==_0x41f419['type']&&_0x88ac78['_isBlockAttribute'](_0x41f419['data']['key']))continue;if('formatBlock'==_0x41f419['type']){const _0x42a06d=_0x88ac78['editor']['model'],_0x1e175e=_0x41f419['getContainedElement']();if(_0x1e175e&&(_0x42a06d['schema']['isObject'](_0x1e175e)||_0x42a06d['schema']['isLimit'](_0x1e175e)))continue;}const _0x36059b=_0x316a11['get'](_0x41f419),_0x5f4fa4=_0x247ba6['get'](_0x41f419),_0x35e468=_0x247ba6['get'](_0x57cd46),_0x2e5ecf=_0x41f419['commentThread']&&_0x41f419['commentThread']['length'],_0x41094c=_0x57cd46['commentThread']&&_0x57cd46['commentThread']['length'];if(!_0x2e5ecf&&_0x36059b(_0x35e468,_0x5f4fa4))return _0x88ac78['_joinSuggestions'](_0x57cd46,_0x41f419),_0x247ba6['delete'](_0x41f419),!0x0;if(!_0x41094c&&_0x36059b(_0x5f4fa4,_0x35e468))return _0x88ac78['_joinSuggestions'](_0x41f419,_0x57cd46),_0x247ba6['delete'](_0x57cd46),!0x0;}return!0x1;}}['_joinSuggestions'](_0x330800,_0x1d307c){if(_0x330800['isMultiRange']){for(const _0x391fb5 of _0x1d307c['getRanges']())_0x330800['addRange'](_0x391fb5);}else{const _0x25c95c=_0x1d307c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x330800,this['_model']['createRange'](_0x330800['getFirstRange']()['start'],_0x25c95c));}_0x1d307c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x65d28,_0x276137,_0x1b5258){const _0x25e587=_0x65d28['startsWith']('format')||_0x65d28['startsWith']('attribute')?'FORMATTING':_0x65d28['toUpperCase']();return o(this['editor']['locale'],_0x276137+'_'+_0x25e587+'_SUGGESTION_ANNOUNCEMENT',_0x1b5258);}['_initAriaMarkerChangeAnnouncements'](){const _0xeef275=this['editor'];if(!_0xeef275['ui'])return;const {ariaLiveAnnouncer:_0xda8f10}=_0xeef275['ui'];_0x29126e(this['_model'],({left:_0x583167,entered:_0x2b6a62})=>{for(const _0x10e336 of _0x583167){const {group:_0x352dd6,type:_0x1fa776}=this['_splitMarkerName'](_0x10e336['name']);if('suggestion'===_0x352dd6){_0xda8f10['announce'](this['_getMarkerAnnouncementText'](_0x1fa776,'LEAVE'));break;}}for(const _0x3f01a3 of _0x2b6a62){const {group:_0x158d14,type:_0x4e3b70}=this['_splitMarkerName'](_0x3f01a3['name']);if('suggestion'===_0x158d14){_0xda8f10['announce'](this['_getMarkerAnnouncementText'](_0x4e3b70,'ENTER',_0x4e40d3(_0x4b2cc3)));break;}}});}['_processAttributeChanges'](_0xeca5f0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1bdf67=this['editor'],_0xe89f01=_0x1bdf67['model']['document']['differ']['getChanges']();if(0x0==_0xe89f01['length'])return!0x1;const _0x331cb1=[],_0x82ef04=_0xe89f01['filter'](_0x1a9f49=>'attribute'==_0x1a9f49['type']),_0x4aca30=_0xe89f01['filter'](_0x422bb0=>'insert'==_0x422bb0['type']&&'$text'!=_0x422bb0['name']),_0x2b81c2=_0xe89f01['filter'](_0x5e1c3e=>'remove'==_0x5e1c3e['type']&&'$text'!=_0x5e1c3e['name']);for(const _0x52eb6b of _0x82ef04)_0x331cb1['push']({'key':_0x52eb6b['attributeKey'],'newValue':_0x52eb6b['attributeNewValue'],'oldValue':_0x52eb6b['attributeOldValue'],'range':qt(_0x52eb6b['range'],_0x1bdf67['model'])});for(const _0x21257b of _0x4aca30){const _0x2c146b=_0x2b81c2['find'](_0x3a2d56=>_0x3a2d56['position']['isEqual'](_0x21257b['position']));_0x2c146b&&_0x331cb1['push']({'key':m,'newValue':_0x21257b['name'],'oldValue':_0x2c146b['name'],'range':_0x1bdf67['model']['createRangeOn'](_0x21257b['position']['nodeAfter'])});}return 0x0!=_0x331cb1['length']&&this['_reduceExistingSuggestions'](_0xeca5f0,_0x331cb1);}['_processAttributeSuggestions'](_0x19274c){let _0xc97be4=!0x1;const _0x4e5596=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e9231=>_0x5e9231['data']['newRange']&&_0x5e9231['name']['startsWith']('suggestion:attribute:'));for(const _0x375ceb of _0x4e5596){const {subType:_0x321769,id:_0x53d21e}=this['_splitMarkerName'](_0x375ceb['name']),_0x5afafc=_0x321769['split']('|')[0x0];for(const _0x13c0a0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x13c0a0['id']!=_0x53d21e&&'attribute'==_0x13c0a0['type']&&_0x13c0a0['data']&&_0x13c0a0['data']['key']==_0x5afafc&&_0x13c0a0['getFirstRange']()['isIntersecting'](_0x375ceb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x13c0a0,_0x375ceb['data']['newRange'],_0x19274c),_0xc97be4=!0x0);}return _0xc97be4;}['recordAttributeChanges'](_0x5d9237){this['_recordAttributeSuggestions']=!0x0,_0x5d9237();}['_isRegisteredAttribute'](_0x4772f7){const _0x39541d=this['_isBlockAttribute'](_0x4772f7),_0x2941f0=this['_isInlineAttribute'](_0x4772f7);return _0x39541d||_0x2941f0;}['_reduceExistingSuggestions'](_0x1c3a7c,_0x2360df){if(0x0==_0x2360df['length'])return!0x1;let _0x5d7d99=!0x1;for(const _0x5ae199 of _0x2360df){const _0x35da38=this['_findSuggestions'](_0x5ae199['range'],'attribute')['filter'](_0x48131f=>!_0x48131f['meta']['isNextTo'])['map'](_0x24f008=>_0x24f008['suggestion']),_0x374356=_0x33e6a4({'newValue':_0x5ae199['newValue']});_0x35da38['filter'](_0x5b94d7=>{const [_0x43e644,_0x1303b2]=_0x5b94d7['subType']['split']('|');return _0x43e644==_0x5ae199['key']&&_0x1303b2!=_0x374356;})['forEach'](_0x4c4836=>{this['_reduceSuggestionAttributeRange'](_0x4c4836,_0x5ae199['range'],_0x1c3a7c),_0x5d7d99=!0x0;});}return _0x5d7d99;}['_reduceSuggestionAttributeRange'](_0x5b42d0,_0x1736a7,_0x5624ee){const _0x37c045=_0x5b42d0['getFirstRange']()['getDifference'](_0x1736a7);0x0!==_0x37c045['length']?0x1!==_0x37c045['length']?this['_breakSuggestionMarker'](_0x5b42d0,_0x1736a7['start'],_0x1736a7['end']):this['_setSuggestionRange'](_0x5b42d0,_0x37c045[0x0]):_0x5624ee['removeMarker'](_0x5b42d0['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1d6cdc){this['_editor']=_0x1d6cdc,this['_model']=_0x1d6cdc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x14ae44,_0x599db4,_0x1b23f0,_0x3b1632,_0x5a5c54,_0x1058e3,_0x392059){return new T(this['_model'],{'type':_0x14ae44,'subType':_0x599db4,'id':_0x1b23f0,'originalSuggestionId':_0x392059,'author':_0x3b1632,'creator':_0x3b1632,'attributes':_0x5a5c54,'onAttributesChange':_0x1058e3,'onAccept':(..._0x3a9900)=>this['getSuggestionCallback'](_0x14ae44,_0x599db4,'accept')(..._0x3a9900),'onDiscard':(..._0x4ec8dd)=>this['getSuggestionCallback'](_0x14ae44,_0x599db4,'discard')(..._0x4ec8dd)});}['registerCustomCallback'](_0x11538b,_0x509db3,_0x5dc106,_0x75eaf4){const _0x594a57=_0x11538b+':'+_0x509db3+':'+_0x5dc106;this['_customCallbacks']['set'](_0x594a57,_0x75eaf4);}['getSuggestionCallback'](_0x465a03,_0x49bfdc,_0x10bccf){const _0x31e5d7=_0x465a03+':'+_0x49bfdc+':'+_0x10bccf;return this['_customCallbacks']['get'](_0x31e5d7)||this['_defaultCallbacks']['get'](_0x465a03+':'+_0x10bccf);}['_registerDefaultCallbacks'](){const _0x3b8b4c=()=>!0x1,_0x3b9c42=_0x28f167=>{_0x28f167['sort']((_0x3a9527,_0x5e8bc4)=>_0x3a9527['start']['isBefore'](_0x5e8bc4['start'])?0x1:-0x1),this['_model']['change'](_0x1d5752=>{for(const _0x1652e6 of _0x28f167){let _0x44a629;_0x44a629=_0x1652e6['end']['isAtEnd']&&_0x1652e6['end']['parent']==_0x1652e6['start']['nodeAfter']?_0x1d5752['createSelection'](_0x1652e6['start']['nodeAfter'],'on'):_0x1d5752['createSelection'](_0x1652e6),this['_model']['deleteContent'](_0x44a629,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1b9373=(_0x59bfdc,_0x1c9874)=>{_0x1c9874&&this['_model']['change'](_0x86ce6e=>{const {commandName:_0xd66741,commandParams:_0x560889=[]}=_0x1c9874,_0x3c973f=_0x59bfdc['map'](_0x596508=>(Pt(_0x596508)&&(_0x596508=this['_model']['createRange'](_0x596508['end'])),_0x596508))['filter'](_0x136ab1=>'$graveyard'!==_0x136ab1['root']['rootName']);if(_0x3c973f['length']<0x1)return;const _0x5af528=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2f11e0=>_0xb0dd32['fromRange'](_0x2f11e0));_0x86ce6e['setSelection'](_0x3c973f);for(const _0x5ae24d of this['_editor']['commands']['commands']())_0x5ae24d['refresh']();_0x560889['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xd66741,..._0x560889);const _0x99abcb=_0x5af528['filter'](_0x150cec=>'$graveyard'!=_0x150cec['root']['rootName']);_0x99abcb['length']>0x0&&_0x86ce6e['setSelection'](_0x99abcb);for(const _0x4aa64e of _0x5af528)_0x4aa64e['detach']();});},_0x236b06=(_0xbbe615,_0x4046bc)=>0x1==_0xbbe615['length']&&0x1==_0x4046bc['length']&&_0xbbe615[0x0]['end']['isEqual'](_0x4046bc[0x0]['start']),_0x37e2d1=(_0x1ebda4,_0x2ab5ad,_0x130a20,_0x443b4a)=>Wt(_0x1ebda4,_0x2ab5ad,_0x130a20,_0x443b4a)?[_0x1ebda4,_0x2ab5ad]:Wt(_0x2ab5ad,_0x1ebda4,_0x443b4a,_0x130a20)?[_0x2ab5ad,_0x1ebda4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3b8b4c),this['_defaultCallbacks']['set']('insertion:discard',_0x3b9c42),this['_defaultCallbacks']['set']('insertion:join',_0x236b06),this['_defaultCallbacks']['set']('insertion:chain',_0x37e2d1),this['_defaultCallbacks']['set']('deletion:accept',_0x3b9c42),this['_defaultCallbacks']['set']('deletion:discard',_0x3b8b4c),this['_defaultCallbacks']['set']('deletion:join',_0x236b06),this['_defaultCallbacks']['set']('deletion:chain',_0x37e2d1),this['_defaultCallbacks']['set']('formatInline:accept',_0x1b9373),this['_defaultCallbacks']['set']('formatInline:discard',_0x3b8b4c),this['_defaultCallbacks']['set']('formatInline:join',_0x236b06),this['_defaultCallbacks']['set']('formatInline:chain',_0x3b8b4c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1b9373),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3b8b4c),this['_defaultCallbacks']['set']('formatBlock:join',_0x236b06),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3b8b4c),this['_defaultCallbacks']['set']('attribute:accept',_0x3b8b4c),this['_defaultCallbacks']['set']('attribute:discard',(_0x22ddb2,_0x5cc40b)=>{if(!_0x5cc40b)return;const _0x59aa3e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5e3ca8=>{if(_0x5cc40b['key']==m)for(const _0x3954f6 of _0x22ddb2){const _0x4ff19b=_0x3954f6['start']['nodeAfter'],_0x7343fd=_0x5cc40b['oldValue'];_0x5e3ca8['rename'](_0x4ff19b,_0x7343fd);}else{if(_0x59aa3e['_isBlockAttribute'](_0x5cc40b['key'])){for(const _0x3552f8 of _0x22ddb2)void 0x0!==_0x5cc40b['oldValue']?_0x5e3ca8['setAttribute'](_0x5cc40b['key'],_0x5cc40b['oldValue'],_0x3552f8['start']['nodeAfter']):_0x5e3ca8['removeAttribute'](_0x5cc40b['key'],_0x3552f8['start']['nodeAfter']);}else{for(const _0x1d8ea9 of _0x22ddb2)_0x5cc40b['oldValue']?_0x5e3ca8['setAttribute'](_0x5cc40b['key'],_0x5cc40b['oldValue'],_0x1d8ea9):_0x5e3ca8['removeAttribute'](_0x5cc40b['key'],_0x1d8ea9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x236b06);}}function Ft(_0x2aaa6c,_0x23f215,_0x2b799d){for(const _0x2e27a5 of _0x23f215['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e27a5['root']==_0x2e27a5)return!0x1;if(!_0x2b799d['containsItem'](_0x2e27a5))return!0x1;if(_0x2aaa6c['isObject'](_0x2e27a5)||_0x2aaa6c['isLimit'](_0x2e27a5))return!0x0;}return!0x1;}function Pt(_0x561080){return _0x561080['end']['parent']==_0x561080['start']['nodeAfter']&&_0x561080['end']['isAtStart'];}function Gt(_0x41ed25,_0x30abf3,_0x339915,_0x512240){const _0x1e66fe=_0x18f2a8=>!_0x18f2a8['item']['is']('$textProxy')&&!_0x512240['isObject'](_0x18f2a8['item']),_0x56470a=_0x41ed25['start']['getLastMatchingPosition'](_0x1e66fe),_0x54a859=_0x41ed25['end']['getLastMatchingPosition'](_0x1e66fe,{'direction':'backward'});return(!_0x41ed25['start']['isEqual'](_0x56470a)||!_0x41ed25['end']['isEqual'](_0x54a859))&&(_0x56470a['isBefore'](_0x54a859)?_0x339915['updateMarker'](_0x30abf3,{'range':_0x339915['createRange'](_0x56470a,_0x54a859)}):_0x339915['removeMarker'](_0x30abf3),!0x0);}function Lt(_0x2b0a27){return _0x33e6a4(_0x2b0a27);}function Jt(_0x1a475e){const _0x1d59a0=_0x1a475e['start']['nodeAfter'];return _0x1d59a0&&_0x1d59a0['is']('element');}function Kt(_0x574fbc){return Pt(_0x574fbc)||function(_0x5e3f02){return _0x5e3f02['start']['parent']==_0x5e3f02['end']['nodeBefore']&&_0x5e3f02['start']['isAtEnd'];}(_0x574fbc);}function Ht(_0x454f30,_0x34b022){try{const _0x3a53b8=_0x454f30['getRange']();for(const _0x26156d of _0x34b022)if(_0x454f30!==_0x26156d&&_0x3a53b8&&_0x3a53b8['isIntersecting'](_0x26156d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x516627,_0x4b0e98){return null==_0x516627['end']['nodeBefore']&&_0x516627['end']['parent']==_0x516627['start']['nodeAfter']?zt(_0x516627['start']['nodeAfter'],_0x4b0e98):_0x516627;}function zt(_0x187586,_0x3c880f){const _0x50288b=_0x3c880f['schema']['isObject'](_0x187586)||_0x3c880f['schema']['isSelectable'](_0x187586);return _0x3c880f['createRange'](_0x3c880f['createPositionAt'](_0x187586,'before'),_0x50288b?_0x3c880f['createPositionAfter'](_0x187586):_0x3c880f['createPositionAt'](_0x187586,'end'));}function Wt(_0x34254d,_0x568ec8,_0x3cd511,_0x3d41ee){return!!Qt(_0x34254d,_0x568ec8)&&_0x3cd511['end']['isEqual'](_0x3d41ee['start']);}function Qt(_0x17f9fc,_0x4711e0){if(!_0x17f9fc['_isDataLoaded']||!_0x4711e0['_isDataLoaded'])return!0x1;const _0x1f7a9c=new Set(Object['keys'](_0x17f9fc['attributes'])),_0xecb67e=new Set(Object['keys'](_0x4711e0['attributes']));if(_0x1f7a9c['delete']('groupId'),_0xecb67e['delete']('groupId'),0x0==_0x1f7a9c['size']&&0x0==_0xecb67e['size'])return!0x0;if(_0x1f7a9c['size']!=_0xecb67e['size'])return!0x1;const _0x3b4c72={..._0x17f9fc['attributes']},_0x399bf2={..._0x4711e0['attributes']};return delete _0x3b4c72['groupId'],delete _0x399bf2['groupId'],JSON['stringify'](_0x3b4c72)==JSON['stringify'](_0x399bf2);}function Xt(_0x586136,_0x4f62fe){const _0x2f0b36=Yt(_0x586136['attributes']),_0x3ede35=Yt(_0x4f62fe);if(!_0x586136['_isDataLoaded'])return!0x1;for(const _0x13a9ac of Object['keys'](_0x3ede35))if(!_0xc3c78d(_0x2f0b36[_0x13a9ac],_0x3ede35[_0x13a9ac]))return!0x1;return!0x0;}function Yt(_0x54cbbe){const _0x11d8ef=Object['assign']({},_0x54cbbe);return delete _0x11d8ef['skipNestingCheck'],delete _0x11d8ef['tablePasteChainId'],_0x11d8ef;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x7cb8e6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x33176d,_0x484336,_0x41b24a,_0x576986){super(),this['model']=_0x484336,this['view']=_0x41b24a,this['commentThreadController']=_0x576986,this['_editor']=_0x33176d,this['_acceptCommand']=_0x33176d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x33176d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xe8f7a7,_0x414be1)=>_0xe8f7a7||_0x414be1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1f786d=>_0x1f786d&&this['_editor']['model']['canEditAt'](_0x484336['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x57187e=>_0x57187e&&this['_editor']['model']['canEditAt'](_0x484336['getRanges']())),this['_pendingAction']=null,_0x41b24a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x41b24a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x41b24a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x41b24a,'change:isDirty',()=>{_0x41b24a['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 _0x15cb2f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x15cb2f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x82181d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x23345b,_0x43efc7,_0x5e3be5,_0x49ef30){super(_0x23345b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xfbaee4(_0x23345b,o(_0x23345b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x43efc7['authoredAt']),this['bind']('authoredAt')['to'](_0x43efc7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x43efc7,'authoredAt',this,'descriptionParts',(_0x5f2544,_0x5d842c,_0x3b212e)=>{const _0x419ae2=_0x3b212e['map'](_0x1697f7=>ls(_0x1697f7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5f2544-0x1,_0x43efc7['author']['name'],_0x5d842c?_0x49ef30['formatDateTime'](_0x5d842c):'',new DOMParser()['parseFromString'](_0x419ae2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x37eaf5(),this['focusTracker']=new _0x2ddf09(),this['keystrokes']=new _0x1d8819(),this['focusCycler']=new _0x4f3dd6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x227d96=>_0x227d96['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x43efc7,this['_localUser']=_0x5e3be5,this['_config']=_0x49ef30,_0x49ef30['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xb72961(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x28db25}=this['_config'];this['commentsListView']=new _0x28db25(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',_0x54d74a=>_0x54d74a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1387cb,_0x284a87)=>_0x1387cb||!!_0x284a87);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x57e022}=this['_config'],_0x405392=new _0x57e022(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2b9941=_0x405392['commentInputView'];return _0x405392['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2b9941,'value',(_0x551e1c,_0x142e57,_0x3fcaed)=>!!_0x3fcaed||_0x551e1c&&!_0x142e57),_0x2b9941['on']('submit',(_0x4f499e,_0x4c156b)=>{this['fire']('addComment',_0x4c156b),_0x2b9941['editor']['setData']('');}),_0x2b9941['on']('cancel',()=>this['focus']()),_0x2b9941['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x405392;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x119b88,_0x5550f7,_0x8217ab,_0x329d90){super(_0x119b88,_0x5550f7,_0x8217ab,_0x329d90),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2325d3=>_0x2325d3&&_0x2325d3[0x0]?_0x2325d3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x49b716,_0x20cb1d)=>{let _0x134291='';for(const _0x46b6da of _0x49b716)_0x134291+='<p>'+ls(_0x46b6da['content'],_0x46b6da['color'])+'</p>';return _0x20cb1d?_0x134291:_0x160e74(_0x134291,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x329d90['SuggestionView'](_0x119b88,_0x5550f7,{'formatDateTime':_0x329d90['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x44892d=this['bindTemplate'],_0xa7ddf6=[this['suggestionView']];return this['commentsListView']&&_0xa7ddf6['push'](this['commentsListView']),this['commentThreadInputView']&&_0xa7ddf6['push'](this['commentThreadInputView']),_0xa7ddf6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x44892d['if']('isActive','ck-suggestion-wrapper--active'),_0x44892d['to']('type',_0x51e42f=>'ck-suggestion-'+_0x51e42f),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':0x0,'role':'listitem','aria-label':_0x44892d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xa7ddf6};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x82181d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1c4f03,_0x7aa093,_0x689198){super(_0x1c4f03),this['_model']=_0x7aa093,this['_config']=_0x689198,this['set']('description',''),this['bind']('authoredAt')['to'](_0x7aa093),this['acceptButton']=this['_createButton'](o(_0x1c4f03,'Accept\x20suggestion'),_0x213bac,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1c4f03,'Discard\x20suggestion'),_0x6ce368,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x14672c(_0x1c4f03,_0x7aa093['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x37eaf5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2ddf09(),this['keystrokes']=new _0x1d8819(),this['focusCycler']=new _0x4f3dd6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x30acdc=>_0x30acdc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x325070=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x325070['innerHTML']=this['description'],this['on']('change:description',(_0x2c9414,_0x5e6081,_0x4a644d)=>{_0x325070['innerHTML']=_0x4a644d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2e92a0=this['bindTemplate'],_0x53781d=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2e92a0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2e92a0['to']('authoredAt',_0x25f81d=>this['_config']['formatDateTime'](_0x25f81d))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x53781d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x53781d}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4172a9,_0x234e51,_0x32ff12,_0x2560f3,_0x5d7c18){const _0x3e7278=new _0x319b6b(this['locale']);return _0x3e7278['set']({'label':_0x4172a9,'icon':_0x234e51,'tooltip':!0x0,'tooltipPosition':_0x5d7c18}),_0x3e7278['extendTemplate']({'attributes':{'class':_0x32ff12}}),_0x3e7278['on']('execute',()=>{this['fire'](_0x2560f3,this['_model']['id']);}),_0x3e7278;}['_setupKeyboardNavigation'](){const _0x2133ae=this['element'];this['keystrokes']['listenTo'](_0x2133ae);for(const _0x388b01 of this['focusables'])this['focusTracker']['add'](_0x388b01['element']),this['keystrokes']['listenTo'](_0x388b01['element']);this['keystrokes']['set']('enter',(_0x3a2234,_0x11c91f)=>{_0x2133ae===_0x3a2234['target']&&(this['focusCycler']['focusFirst'](),_0x11c91f());}),this['keystrokes']['set']('esc',(_0x279c1f,_0x10075c)=>{_0x2133ae!==_0x279c1f['target']&&(this['focus'](),_0x10075c());});}}class u extends _0x5b0fc1{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x234c27,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a88cb){super(_0x5a88cb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x31c4b5=this['editor']['config'];_0x31c4b5['define']('trackChanges.SuggestionThreadView',fe),_0x31c4b5['define']('trackChanges.SuggestionView',we),_0x31c4b5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x31c4b5['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3e4a2d,_0x5f257c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3916a0,_0x3613cd]of this['_handleControllerBuffer']){const _0x1c1512=this['_suggestionToController']['has'](_0x3916a0);_0x1c1512||_0x3613cd?_0x1c1512&&_0x3613cd&&this['_destroyController'](_0x3916a0):this['_initializeController'](_0x3916a0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3e4a2d,_0x5f257c);}['init'](){const _0x5d5d87=this['editor'],_0x39b534=_0x5d5d87['plugins']['get']('TrackChangesEditing'),_0xe78399=_0x5d5d87['plugins']['get']('Annotations'),_0x5cc9a2=_0x5d5d87['plugins']['get']('EditorAnnotations'),_0x54a86b=_0x5d5d87['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5cc9a2['addSourceCollector'](()=>{const _0x13da52=[];for(const [_0x4f772a,_0x5090f4]of Array['from'](this['_suggestionToController'])){const _0x5220d8=_0x4f772a['getAllAdjacentSuggestions'](),_0x57b0a5=[];for(const _0x26b9b5 of _0x5220d8){if(!_0x26b9b5['isInContent'])continue;if(_0x26b9b5['isMultiRange']){_0x57b0a5['push'](..._0x26b9b5['getRanges']());continue;}const _0x2eb961=_0x26b9b5['getFirstRange']();if(_0x57b0a5['length']>0x0){const _0x2fdfc3=_0x57b0a5[0x0]['getJoined'](_0x2eb961);if(_0x2fdfc3){_0x57b0a5[0x0]=_0x2fdfc3;continue;}}_0x57b0a5['push'](_0x2eb961);}_0x13da52['push']([_0x5090f4['view'],_0x57b0a5]);}return _0x13da52;}),this['listenTo'](_0x39b534,'suggestionLoaded',(_0x49cb1d,_0x3a8253)=>{this['listenTo'](_0x3a8253,'change:previous',(_0x2d2c03,_0x54e065,_0x4f4875,_0x1202f8)=>{_0x3a8253['isInContent']&&(null==_0x4f4875?(this['_updateController'](_0x1202f8['head']),this['_handleSuggestionControllerDelayed'](_0x3a8253,!0x1)):(this['_updateController'](_0x4f4875['head']),null==_0x1202f8&&this['_handleSuggestionControllerDelayed'](_0x3a8253,!0x0)));}),null!==_0x3a8253['previous']?this['_updateController'](_0x3a8253['head']):this['_handleSuggestionControllerDelayed'](_0x3a8253,!0x1);}),this['listenTo'](_0x39b534,'suggestionUnloaded',(_0x3dcad2,_0x10fcc9,_0x575e6e)=>{this['stopListening'](_0x10fcc9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x10fcc9),this['_suggestionToController']['has'](_0x10fcc9)&&this['_destroyController'](_0x10fcc9),_0x575e6e&&this['_updateController'](_0x575e6e['head']);}),this['listenTo'](_0x39b534,'suggestionChanged',(_0x1b134b,_0x510afb)=>{this['_updateController'](_0x510afb);}),this['listenTo'](_0xe78399,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x54a86b,'addComment',(_0x317524,{threadId:_0x319595,isFromAdapter:_0x3e715f})=>{if(_0x3e715f||!_0x39b534['hasSuggestion'](_0x319595))return;const _0x958745=_0x39b534['getSuggestion'](_0x319595);this['_suggestionToController']['get'](_0x958745)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a9113=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14669a;for(const _0x325737 in _0x4a9113){const _0x343e0c=_0x325737,_0x5461c1=_0x4a9113[_0x343e0c];if('trackChangesLicenseKeyValid'==_0x5461c1||'trackChangesLicenseKeyInvalid'==_0x5461c1||'trackChangesLicenseKeyExpired'==_0x5461c1||'trackChangesLicenseKeyDomainLimit'==_0x5461c1||'trackChangesLicenseKeyNotAllowed'==_0x5461c1||'trackChangesLicenseKeyEvaluationLimit'==_0x5461c1||'trackChangesLicenseKeyTrialLimit'==_0x5461c1||'trackChangesLicenseKeyUsageLimit'==_0x5461c1){delete _0x4a9113[_0x343e0c],_0x14669a=_0x5461c1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x14669a&&_0x4a9113['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x14669a&&_0x4a9113['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x14669a&&_0x4a9113['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x14669a&&_0x4a9113['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x14669a&&_0x4a9113['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x14669a&&_0x4a9113['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x14669a&&_0x4a9113['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x336ca1){const _0x247fd4=this['_suggestionToController']['get'](_0x336ca1);if(!_0x247fd4)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x247fd4['view'])||null;}['getSuggestionForAnnotation'](_0x494050){const _0x201083=this['_viewToController']['get'](_0x494050['innerView']);return _0x201083?_0x201083['model']:null;}['_refreshActiveMarkers'](){const _0x2680e4=this['editor']['plugins']['get']('Annotations'),_0xd462bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a024e=Array['from'](_0x2680e4['activeAnnotations'],_0x5ac778=>_0x5ac778['innerView'])['filter'](_0x4947ce=>this['_viewToController']['has'](_0x4947ce)),_0x586946=[];for(const _0x119848 of _0x5a024e){const _0x227bb8=this['_viewToController']['get'](_0x119848)['model']['getAllAdjacentSuggestions']();_0x586946['push'](..._0x227bb8['reduce']((_0x51f063,_0x5f2f98)=>[..._0x51f063,..._0x5f2f98['getMarkerNames']()],[]));}_0xd462bb['activeMarkers']=_0x586946;}['_addUIComponentsToFactory'](){const _0x4bc555=this['editor'],_0x2253dc=_0x4bc555['locale'],_0x33d586=o(_0x2253dc,'Track\x20changes'),_0x176cf5=new _0x19a98c([{'type':'switchbutton','model':new _0x512104({'withText':!0x0,'isToggleable':!0x0,'label':_0x33d586,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x512104({'withText':!0x0,'label':o(_0x2253dc,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x512104({'withText':!0x0,'label':o(_0x2253dc,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x512104({'withText':!0x0,'label':o(_0x2253dc,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x512104({'withText':!0x0,'label':o(_0x2253dc,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4bc555['plugins']['has']('TrackChangesPreview')&&_0x176cf5['addMany']([{'type':'separator'},{'type':'button','model':new _0x512104({'withText':!0x0,'label':o(_0x2253dc,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x401a43 of _0x176cf5)if(ke(_0x401a43)){const _0x2ad014=_0x4bc555['commands']['get'](_0x401a43['model']['commandName']);_0x401a43['model']['bind']('isOn','isEnabled')['to'](_0x2ad014,'value','isEnabled');}_0x4bc555['ui']['componentFactory']['add']('trackChanges',_0x170937=>this['_createToolbarButton'](_0x170937,_0x176cf5,_0x33d586)),_0x4bc555['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1ce82d=>this['_createMenuBarMenu'](_0x1ce82d,_0x176cf5,_0x33d586));}['_createToolbarButton'](_0x53beff,_0x196aa2,_0x17fb44){const _0x235f37=_0x5a6ae7(_0x53beff,_0x5d4f1c),_0x144b23=this['editor']['commands']['get']('trackChanges');_0x235f37['buttonView']['set']({'tooltip':_0x17fb44,'label':_0x17fb44,'icon':_0x5d3ade}),_0x235f37['buttonView']['bind']('isOn')['to'](_0x144b23,'value'),_0x235f37['buttonView']['on']('execute',()=>{_0x144b23['execute'](),this['editor']['editing']['view']['focus']();}),_0x4ea227(_0x235f37,_0x196aa2,{'role':'menu'});const _0x2f49f6=[];for(const _0x4aea66 of _0x196aa2)ke(_0x4aea66)&&_0x2f49f6['push'](this['editor']['commands']['get'](_0x4aea66['model']['commandName']));const _0xf27a6a=_0x235f37['buttonView'];return _0xf27a6a['actionView']['unbind']('isEnabled'),_0xf27a6a['arrowView']['unbind']('isEnabled'),_0xf27a6a['actionView']['bind']('isEnabled')['to'](_0x144b23,'isEnabled'),_0xf27a6a['arrowView']['bind']('isEnabled')['toMany'](_0x2f49f6,'isEnabled',(..._0x39f9af)=>_0x39f9af['some'](_0x1a577b=>_0x1a577b)),_0x235f37['on']('execute',_0x3ac385=>{this['editor']['execute'](_0x3ac385['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x235f37;}['_createMenuBarMenu'](_0x23b5fa,_0x1451e8,_0x2e308e){const _0x25fc4d=new _0x43299e(_0x23b5fa),_0x23238a=this['editor']['commands']['get']('trackChanges');_0x25fc4d['buttonView']['set']({'label':_0x2e308e,'icon':_0x5d3ade});const _0x5d82b1=new _0x2b1a48(_0x23b5fa);for(const _0x42256c of _0x1451e8){if('separator'==_0x42256c['type']){_0x5d82b1['items']['add'](new _0x584afe(_0x23b5fa));continue;}const _0x5a5da4=new _0x5da6d5(_0x23b5fa,_0x25fc4d),_0x3e61fc=new _0x305d68(_0x23b5fa),_0x3826c7=_0x42256c['model'];_0x3e61fc['bind'](...Object['keys'](_0x3826c7))['to'](_0x3826c7),_0x3e61fc['delegate']('execute')['to'](_0x25fc4d),_0x3e61fc['on']('execute',()=>{this['editor']['execute'](_0x3826c7['commandName']),this['editor']['editing']['view']['focus']();}),_0x5a5da4['children']['add'](_0x3e61fc),_0x5d82b1['items']['add'](_0x5a5da4);}return _0x25fc4d['bind']('isEnabled')['to'](_0x23238a,'isEnabled'),_0x25fc4d['panelView']['children']['add'](_0x5d82b1),_0x25fc4d;}['_initializeController'](_0x16b0b6){const _0x45b1f5=this['editor'],_0x5108b0=_0x45b1f5['config'],_0x52901f=_0x45b1f5['plugins']['get']('Annotations'),_0x4ee928=_0x45b1f5['plugins']['get']('CommentsRepository'),_0x5024d6=_0x45b1f5['plugins']['get']('EditorAnnotations'),_0x1f1355=_0x45b1f5['plugins']['get'](_0x234c27)['me'],_0x278d76=_0x5108b0['get']('trackChanges')['SuggestionThreadView'],_0x2abf4d=_0x5108b0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x34944d,CommentThreadInputView:_0x52f339}=_0x45b1f5['plugins']['get']('CommentsUI');let _0x105704,_0x588a0b,_0x474bca;this['_annotationViews']['has'](_0x16b0b6['id'])?(_0x588a0b=this['_annotationViews']['get'](_0x16b0b6['id']),_0x105704=_0x588a0b['mainView']):(_0x105704=new _0x278d76(_0x45b1f5['locale'],_0x16b0b6,_0x1f1355,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5108b0['get']('comments.editorConfig'),'licenseKey':_0x5108b0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5108b0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5108b0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5108b0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1e0570(_0x5108b0['get']('locale'),_0x45b1f5['locale']),'CommentView':_0x5108b0['get']('comments')['CommentView'],'CommentsListView':_0x34944d,'CommentThreadInputView':_0x52f339,'SuggestionView':_0x2abf4d}),_0x105704['suggestionView']['acceptButton']['on']('execute',()=>{_0x45b1f5['editing']['view']['focus']();}),_0x105704['suggestionView']['discardButton']['on']('execute',()=>{_0x45b1f5['editing']['view']['focus']();}),_0x588a0b=_0x52901f['createAnnotationView'](this['editor']['locale'],_0x105704),_0x588a0b['bind']('isDirty')['to'](_0x105704,'isDirty'),_0x588a0b['bind']('length')['to'](_0x105704),_0x588a0b['bind']('type')['to'](_0x105704,'type',_0x467910=>'suggestion-'+_0x467910),_0x105704['on']('escape',()=>{_0x474bca['fire']('escape');}),this['_annotationViews']['set'](_0x16b0b6['id'],_0x588a0b));const _0x245984=_0x4ee928['createCommentThreadController'](_0x16b0b6['commentThread'],_0x105704),_0x1ee0cf=new pe(_0x45b1f5,_0x16b0b6,_0x105704,_0x245984),_0x92e7e4=_0x16b0b6['getAllAdjacentSuggestions']()['filter'](_0x5d104d=>_0x5d104d['isInContent']);_0x105704['descriptionParts']=_0x45b1f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x92e7e4),this['_suggestionToController']['set'](_0x16b0b6,_0x1ee0cf),this['_viewToController']['set'](_0x105704,_0x1ee0cf);const _0x26167c=()=>{const _0x4df47d=[],_0x526533=_0x16b0b6['getAllAdjacentSuggestions']()['filter'](_0xa8402a=>_0xa8402a['isInContent']);for(const _0x2ed38d of _0x526533)_0x4df47d['push'](..._0x2ed38d['getMarkers']());return _0x4ab8a4(_0x45b1f5['editing'],_0x4df47d);};_0x474bca=_0x52901f['createAnnotation']({'view':_0x588a0b,'target':_0x26167c,'type':()=>'suggestion-'+_0x1ee0cf['view']['type'],'isVisible':!!_0x26167c()}),_0x4ee928['_bindAnnotationToEditors'](_0x105704,_0x474bca),_0x52901f['add'](_0x474bca),_0x5024d6['registerAnnotation'](_0x474bca);}['_destroyController'](_0x42f678){const _0x31bd9b=this['editor']['plugins']['get']('CommentsRepository'),_0xaae139=this['editor']['plugins']['get']('Annotations'),_0x3a9e42=this['_suggestionToController']['get'](_0x42f678),_0x16c4f0=_0x3a9e42['view'],_0x5b99d7=_0xaae139['getByInnerView'](_0x16c4f0);_0x31bd9b['_unbindEditors'](_0x16c4f0),_0x5b99d7&&_0xaae139['remove'](_0x5b99d7),this['_suggestionToController']['delete'](_0x42f678),this['_viewToController']['delete'](_0x16c4f0),_0x3a9e42['destroy']();}['_updateController'](_0x3126cd){if(!_0x3126cd['isInContent']||!this['_suggestionToController']['has'](_0x3126cd))return;const _0x1b8487=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4afe60=this['_suggestionToController']['get'](_0x3126cd),_0x13d107=_0x3126cd['getAllAdjacentSuggestions']();_0x4afe60['view']['descriptionParts']=_0x1b8487['descriptionFactory']['getDescriptions'](_0x13d107);}['destroy'](){for(const _0x13c1f8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x13c1f8);for(const _0x1b188a of this['_annotationViews']['values']())_0x1b188a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3dfce1){return'model'in _0x3dfce1;}class Fe extends _0x5b0fc1{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3e51b3){this['editor']['plugins']['get'](d)['adapter']=_0x3e51b3;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1447e3){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1447e3);}['getSuggestions']({skipNotAttached:_0x22452e=!0x1,toJSON:_0xe320c8=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x22452e,'toJSON':_0xe320c8});}['getSuggestion'](_0x17396c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x17396c);}}const p=['Pagination'];class re extends _0x5b0fc1{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1221e8=this['editor'];if(_0x1221e8['config']['define']('trackChangesData.editorCreator',_0x39d82d=>{const _0xa39c86=_0x1221e8['model']['document']['getRootNames']()['reduce']((_0x325991,_0x576007)=>(_0x325991[_0x576007]='',_0x325991),{});return _0x1221e8['constructor']['create'](_0xa39c86,_0x39d82d);}),'function'!=typeof _0x1221e8['config']['get']('trackChangesData')['editorCreator'])throw new _0xa020e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x51aeb0){return P(this['editor'],!0x0,_0x51aeb0);}['getDataWithDiscardedSuggestions'](_0x400a9a){return P(this['editor'],!0x1,_0x400a9a);}}class Ge extends _0x5b0fc1{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27da97){function _0x225708(_0x4735bb){return _0x4735bb['map'](_0x34dbc9=>String['fromCharCode'](_0x34dbc9))['join']('');}super(_0x27da97),this['result']='end',_0x27da97[_0x225708([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x225708([0x76,0x69,0x65,0x77])][_0x225708([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x225708([0x61,0x75,0x74,0x6f]),_0x27da97[_0x225708([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x225708([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x225708([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x225708([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x225708([0x6f,0x6b])});}['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 He(_0x3d5522){return void 0x0!==_0x3d5522['getRootsAttributes'];}async function P(_0x134e78,_0x96685c,_0x465593){const _0x3e4059=_0x30b1b3(_0x134e78,p);_0x3e4059['plugins']['push'](d,Ge),_0x3e4059['rootsAttributes']=He(_0x134e78)?_0x134e78['getRootsAttributes']():void 0x0;const _0x4a27f1=document['createDocumentFragment'](),_0x473600=_0x134e78['config']['get']('trackChangesData')['editorCreator'],_0x23ee97=await _0x473600(_0x3e4059,()=>function(_0x2eccfd){const _0x445318=document['createElement']('div');return _0x2eccfd['appendChild'](_0x445318),_0x445318;}(_0x4a27f1));!function(_0x53ac7c,_0xfdbcf5){const _0x21b5cb=_0x53ac7c['model']['document']['getRootNames']()['reduce']((_0xdabed3,_0x13af0c)=>(_0xdabed3[_0x13af0c]=_0x53ac7c['data']['get']({'rootName':_0x13af0c}),_0xdabed3),{}),_0x2d7605=_0x53ac7c['plugins']['get']('Users')['users']['map'](_0x18444a=>({'id':_0x18444a['id'],'name':_0x18444a['name']})),_0x3070fa=_0x53ac7c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x343b4d=_0x53ac7c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19a777=_0xfdbcf5['plugins']['get']('Users'),_0x2ee9c2=_0xfdbcf5['plugins']['get']('TrackChangesEditing'),_0x46db4f=_0xfdbcf5['plugins']['get']('CommentsRepository');for(const _0x5525c2 of _0x46db4f['getCommentThreads']())_0x5525c2['remove']();for(const _0x5b1e20 of _0x2d7605)_0x19a777['getUser'](_0x5b1e20['id'])||_0x19a777['addUser'](_0x5b1e20);_0x19a777['me']||_0x19a777['useAnonymousUser']();for(const _0x28dd1e of _0x343b4d)_0x46db4f['addCommentThread'](_0x28dd1e);for(const _0x57b94b of _0x3070fa)_0x2ee9c2['addSuggestionData'](_0x57b94b);_0xfdbcf5['data']['set'](_0x21b5cb);}(_0x134e78,_0x23ee97),_0x23ee97['execute'](_0x96685c?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a642e=He(_0x23ee97)?_0x23ee97['getFullData'](_0x465593):_0x23ee97['data']['get'](_0x465593);return await _0x23ee97['destroy'](),_0x3a642e;}class Me extends _0x82181d{['options'];constructor(_0x47abb0,_0x489415){super(_0x47abb0),this['options']=_0x489415,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x503b2d,_0x3d32e7){if(!this['element'])return;const _0x1915a7=[];for(const [_0x1c46f7,_0x55f43e]of _0x503b2d){const _0x44b994=document['createElement']('div');_0x44b994['setAttribute']('data-ck-root-name',_0x1c46f7),_0x44b994['className']=_0x55f43e['classes']+'\x20ck-track-changes-preview__root-container',_0x44b994['innerHTML']=_0x55f43e['content'],_0x1915a7['push'](_0x44b994);}_0x3d32e7(this['element'],_0x1915a7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2a3112{constructor(_0x3e4a16){super(_0x3e4a16),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4eee75=this['editor'],_0x5084fd=_0x4eee75['locale'],_0x18edee=_0x4eee75['plugins']['get']('Dialog');let _0x1b9355;const _0x2b00d4=function(_0x32d659){const _0x470794={};if('editables'in _0x32d659['ui']['view']){for(const [_0x17f813,_0x2320b3]of Object['entries'](_0x32d659['ui']['view']['editables']))_0x470794[_0x17f813]=_0x2320b3['element'];}else _0x470794[_0x32d659['model']['document']['getRootNames']()[0x0]]=_0x32d659['ui']['view']['editable']['element'];return _0x470794;}(_0x4eee75),_0x5c0be3=function(_0x40308c){let _0x33984e=0x0;for(const _0x2ff0af of Object['values'](_0x40308c))_0x33984e=Math['max'](_0x33984e,_0x2ff0af['getBoundingClientRect']()['width']);let _0x24cc7d=0x0;for(const _0x4cbc70 of Object['values'](_0x40308c))_0x24cc7d+=_0x4cbc70['getBoundingClientRect']()['height'];const _0x29bdc6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4ad342=Math['min'](_0x24cc7d,_0x29bdc6);return{'width':_0x33984e,'height':_0x4ad342};}(_0x2b00d4);_0x18edee['show']({'id':'finalContentPreview','title':o(_0x5084fd,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5084fd,{'dialogRects':_0x5c0be3}),'onHide':()=>{_0x1b9355['detachFromDom']();},'onShow':()=>{_0x4eee75['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4435e9=>{const _0x243fab=this['_standarizeRootsData'](_0x4435e9,_0x4eee75,_0x2b00d4);_0x18edee['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x243fab,_0x4eee75['config']['get']('trackChanges.preview.renderFunction'));}),_0x1b9355=new _0x202643(_0x5084fd,[_0x18edee['view']]),_0x1b9355['attachToDom'](),_0x1b9355['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4eee75['once']('destroy',()=>{_0x1b9355['detachFromDom']();});const _0x159843=_0x18edee['view']['headerView']['class'];_0x18edee['view']['headerView']['class']=_0x159843?_0x159843+'\x20ck-reset_all':'ck-reset_all',_0x18edee['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x18edee['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x251415=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x44cb08=_0x251415['previewMode'],_0x15088a={};if('$labels'===_0x44cb08){for(const _0x571c39 of _0x251415['getMergeFieldsIds']())_0x15088a[_0x571c39]=_0x251415['getLabel'](_0x571c39)||_0x571c39;}else{const _0x1f37ec='$defaultValues'===_0x44cb08?_0x251415['getDefaultValues']():_0x251415['getDataSetValues'](_0x44cb08,!0x0);for(const _0x1edd54 of Object['entries'](_0x1f37ec)){const [_0x51879c,_0x4143fb]=_0x1edd54;_0x15088a[_0x51879c]=null!==_0x4143fb?_0x4143fb:_0x251415['getLabel'](_0x51879c)||_0x51879c;}}return{'mergeFieldsData':_0x15088a};}['_standarizeRootsData'](_0x4f0c4b,_0x58f3a1,_0xfe8c10){let _0x528dc2;if('string'==typeof _0x4f0c4b){const _0x5e80cd=_0x58f3a1['model']['document']['getRootNames']()[0x0];_0x528dc2={[_0x5e80cd]:_0x4f0c4b};}else _0x528dc2=_0x4f0c4b;const _0xbcb389=this['_fixMediaEmbeds'](_0x528dc2,_0x58f3a1),_0x34772a=function(_0x5e141e,_0x16cc1c){for(const [_0x34133e,_0x370777]of _0x5e141e)_0x370777['classes']=_0x16cc1c[_0x34133e]['classList']['value']['replace']('ck-focused','');return _0x5e141e;}(this['_sortRoots'](_0x58f3a1)['reduce']((_0x55d042,_0x469e97)=>(_0x55d042['push']([_0x469e97,{'content':_0xbcb389[_0x469e97],'classes':''}]),_0x55d042),[]),_0xfe8c10);return _0x34772a;}['_fixMediaEmbeds'](_0x2989bd,_0x4da9a3){if(!_0x4da9a3['plugins']['has']('MediaEmbedEditing'))return _0x2989bd;const _0xbc3d75=_0x4da9a3['plugins']['get']('MediaEmbedEditing');for(const [_0x2a7c96,_0x27b265]of Object['entries'](_0x2989bd)){const _0x5c9726=document['createElement']('div');_0x5c9726['innerHTML']=_0x27b265,(_0x5c9726['querySelectorAll']('figure.media')['forEach'](_0x1d7096=>{const _0x46530c=_0x1d7096['querySelector']('oembed');if(_0x46530c){const _0xd0c159=_0x46530c['getAttribute']('url');if(_0xd0c159){const _0x140501=_0xbc3d75['registry']['getMediaViewElement'](new _0x44279a(_0x4da9a3['editing']['view']['document']),_0xd0c159,{'elementName':'','renderForEditingView':!0x0}),_0xeb9d43=document['createElement']('div');_0xeb9d43['classList']['add']('ck-media__wrapper'),_0x140501['render'](_0xeb9d43,_0x4da9a3['editing']['view']['domConverter']),_0x46530c['replaceWith'](_0xeb9d43);}}}),_0x2989bd[_0x2a7c96]=_0x5c9726['innerHTML']);}return _0x2989bd;}['_sortRoots'](_0x3cc4b5){if(!function(_0x430b3e){return void 0x0!==_0x430b3e['getRootsAttributes'];}(_0x3cc4b5))return _0x3cc4b5['model']['document']['getRootNames']();const _0x1c96c0=[],_0x591521=new Map();for(const _0x413700 of _0x3cc4b5['model']['document']['getRootNames']()){const _0x5cee70=_0x3cc4b5['editing']['view']['getDomRoot'](_0x413700)['getClientRects']()['item'](0x0);_0x1c96c0['push'](_0x413700),_0x591521['set'](_0x413700,_0x5cee70);}return _0x1c96c0['sort']((_0x537455,_0x547b1c)=>{const _0x459b1e=_0x591521['get'](_0x537455),_0xf2120e=_0x591521['get'](_0x547b1c);return _0x459b1e['y']-_0xf2120e['y']||_0x459b1e['x']-_0xf2120e['x'];}),_0x1c96c0;}}class $e extends _0x5b0fc1{static get['requires'](){return[re,_0x370ae0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x383cd0){super(_0x383cd0),_0x383cd0['commands']['add']('previewFinalContent',new te(this['editor'])),_0x383cd0['config']['define']('trackChanges.preview.renderFunction',(_0x125f60,_0x20bd2b)=>{for(const _0x585700 of _0x20bd2b)_0x125f60['appendChild'](_0x585700);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x5be447,Plugin as _0x8725f3,PendingActions as _0x5d7386}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4fc565,ObservableMixin as _0x3c38f4,uid as _0xd0f9be,priorities as _0x4c5029,insertToPriorityArray as _0xcfcfef,toArray as _0x2a699c,logWarning as _0x40102e,getEnvKeystrokeText as _0x17d6f8,FocusTracker as _0x420794,KeystrokeHandler as _0x23ba89,Collection as _0x36cae3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4a712b,IconCancel as _0x550f39,IconTrackChanges as _0x23ec22}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x13ed01,View as _0x82070,ViewCollection as _0x3bbed4,FocusCycler as _0x49c277,UIModel as _0x1cf42f,createDropdown as _0x92968c,SplitButtonView as _0x326f58,addListToDropdown as _0x305f68,MenuBarMenuView as _0x106e9a,MenuBarMenuListView as _0x117bf8,ListSeparatorView as _0x133aa6,MenuBarMenuListItemView as _0x1e07cc,MenuBarMenuListItemButtonView as _0x360cd2,BodyCollection as _0x21b6d8,Dialog as _0x35058c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5c3456,hashObject as _0xc7d82c,surroundingMarkersDetector as _0x102e1c,FOCUS_ANNOTATION_KEYSTROKE as _0x2534da,AriaDescriptionView as _0x33c388,setupThreadKeyboardNavigation as _0x19ab60,trimHtml as _0xcd9997,UserView as _0x5a8aec,LateFocusButtonView as _0x2caa7c,getDateTimeFormatter as _0x54739e,getAllMarkersDomElementsSorted as _0x198ca2,sanitizeEditorConfig as _0x13b2d3}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x32d25f,ModelLiveRange as _0x3e3f9b,ModelLivePosition as _0x5ebc95,ViewDowncastWriter as _0xe495ac}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5107fe,toWidget as _0x6e93eb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x14f8f8,set as _0x10efcf,isEqual as _0x1314a1,unset as _0x54060d,omit as Ut}from'es-toolkit/compat';import{Delete as _0x1eb864,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x33a875}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x24f075}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x5be447{['_enabledCommands'];constructor(_0x335022,_0x4a4733){super(_0x335022),this['_enabledCommands']=_0x4a4733,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 _0x407677 of this['editor']['commands']['commands']())_0x407677['affectsData']&&!this['_enabledCommands']['has'](_0x407677)&&_0x407677['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1c425a of this['editor']['commands']['commands']())_0x1c425a['affectsData']&&!this['_enabledCommands']['has'](_0x1c425a)&&_0x1c425a['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x5be447{['_suggestions'];constructor(_0x3df98b,_0x23f211){super(_0x3df98b),this['_suggestions']=_0x23f211,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24cd30){const _0x38e803=this['_suggestions']['get'](_0x24cd30);if(!_0x38e803)throw new _0x4fc565('track-changes-accept-suggestion-not-found',this);const _0x1ee177=_0x38e803['getRanges']();this['editor']['model']['canEditAt'](_0x1ee177)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x38e803);}}class $ extends _0x5be447{['_suggestions'];constructor(_0x3aa8bd,_0xaf85f9){super(_0x3aa8bd),this['_suggestions']=_0xaf85f9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x541384){const _0xd59500=this['_suggestions']['get'](_0x541384);if(!_0xd59500)throw new _0x4fc565('track-changes-discard-suggestion-not-found',this);const _0x35182e=_0xd59500['getRanges']();this['editor']['model']['canEditAt'](_0x35182e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xd59500);}}function ls(_0x1c60ae,_0xeea39c){let _0x2e0830='';return _0x2e0830+=_0x1c60ae['split']('*')['map']((_0x51fe39,_0x1ab411)=>_0x1ab411%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x51fe39)+'</span>':Zt(_0x51fe39))['join'](''),_0xeea39c&&(_0x2e0830+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xeea39c['value']+'\x22\x20title=\x22'+_0xeea39c['title']+'\x22></span>'),_0x2e0830;}function Zt(_0x5a1631){const _0x25e5af=document['createElement']('span');return _0x25e5af['innerText']=_0x5a1631,_0x25e5af['innerHTML'];}function ts(_0x550f50){return _0x550f50['sort']((_0x3a545d,_0x593cf0)=>'attribute'===_0x3a545d['type']&&'attribute'!==_0x593cf0['type']?-0x1:'attribute'!==_0x3a545d['type']&&'attribute'===_0x593cf0['type']?0x1:'deletion'==_0x3a545d['type']&&'deletion'!=_0x593cf0['type']?-0x1:'deletion'!=_0x3a545d['type']&&'deletion'==_0x593cf0['type']?0x1:0x0);}function to(_0x2ba3fc,_0x286fc9){let _0x3f266e,_0x5f7af6=0x0;const _0x2f9b8c=[],_0x375577=_0x286fc9['schema'];for(;_0x5f7af6<_0x2ba3fc['length'];){const _0xcaf84c=_0x2ba3fc[_0x5f7af6],_0x4d8be3=_0x2ba3fc[_0x5f7af6+0x1];_0x3f266e||(_0x3f266e=_0x286fc9['createPositionBefore'](_0xcaf84c)),tn(_0x286fc9,_0xcaf84c,_0x4d8be3)||(_0x2f9b8c['push'](_0x286fc9['createRange'](_0x3f266e,_0x375577['isObject'](_0xcaf84c)?_0x286fc9['createPositionAfter'](_0xcaf84c):_0x286fc9['createPositionAt'](_0xcaf84c,'end'))),_0x3f266e=null),_0x5f7af6++;}return _0x2f9b8c;}function tn(_0x4c1983,_0x25498f,_0x52c764){if(!_0x52c764)return!0x1;const _0x5da5b9=_0x4c1983['createPositionAfter'](_0x25498f),_0x5b8acd=_0x4c1983['createPositionBefore'](_0x52c764);return _0x5da5b9['isTouching'](_0x5b8acd);}function rs(_0x50b566,_0x52a48c,_0xbad12b){for(;_0xbad12b['length'];){const _0x9da7ad=_0xbad12b['splice'](0x0,0x64);_0x50b566['change'](()=>{for(const _0x23e427 of _0x9da7ad)_0x23e427['isInContent']&&_0x52a48c['execute'](_0x23e427['id']);});}}class M extends _0x5be447{['_command'];['_suggestions'];constructor(_0x5b3a9a,_0x313112,_0x5692f1){super(_0x5b3a9a),this['_command']=_0x313112,this['_suggestions']=_0x5692f1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x82af42=Array['from'](this['_suggestions']['values']())['some'](_0x4ae538=>_0x4ae538['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x82af42;}['execute'](){const _0x39a617=ts(Array['from'](this['_suggestions']['values']()));for(const _0x41133d of _0x39a617){const _0x9f6e49=_0x41133d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9f6e49))return;}rs(this['editor']['model'],this['_command'],_0x39a617);}}class B extends _0x5be447{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2dc030,_0x2a2b85,_0x41105d){super(_0x2dc030),this['_command']=_0x2a2b85,this['_suggestions']=_0x41105d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdb9f4a=this['editor']['model']['document']['selection'],_0x28ad72=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3eca53,_0x519576){const _0x485c13=Array['from'](_0x3eca53['getRanges']()),_0x494054=new Set();for(const _0x4f7929 of _0x519576)if(_0x4f7929['isInContent']){for(const _0x4809cd of _0x485c13)for(const _0x3fea9c of _0x4f7929['getRanges']())(_0x4809cd['isIntersecting'](_0x3fea9c)||_0x3eca53['isCollapsed']&&!_0x4f7929['isMultiRange']&&_0x4f7929['next']&&_0x3fea9c['end']['isTouching'](_0x4809cd['start']))&&_0x494054['add'](_0x4f7929);}return _0x494054;}(_0xdb9f4a,_0x28ad72),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x409105=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3f651f of _0x409105){const _0x30734b=_0x3f651f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30734b))return;}rs(this['editor']['model'],this['_command'],_0x409105);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3c38f4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x366e15,_0x712dab){super(),this['id']=_0x712dab['id'],this['type']=_0x712dab['type'],this['subType']=_0x712dab['subType']||null,this['author']=_0x712dab['author'],this['creator']=_0x712dab['creator']||_0x712dab['author'],this['isExternal']=Boolean(_0x712dab['attributes']&&_0x712dab['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x712dab['originalSuggestionId']||null,this['_model']=_0x366e15,this['_onAccept']=_0x712dab['onAccept'],this['_onDiscard']=_0x712dab['onDiscard'],this['_onAttributesChange']=_0x712dab['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x712dab['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 _0x2e2a9b=this;for(;_0x2e2a9b['previous'];)_0x2e2a9b=_0x2e2a9b['previous'];return _0x2e2a9b;}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'](_0x52b651){this['_markerNames']['add'](_0x52b651);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4863e6=>this['_model']['markers']['get'](_0x4863e6))['filter'](_0x4ac14d=>_0x4ac14d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x44929f=>{for(const _0x4fa920 of this['getMarkers']())_0x44929f['removeMarker'](_0x4fa920);}),this['_markerNames']['clear']();}['removeMarker'](_0x525ff1){this['_model']['change'](_0x441c81=>{_0x441c81['removeMarker'](_0x525ff1);}),this['_markerNames']['delete'](_0x525ff1);}['addRange'](_0x193262){const _0x3204fc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x3204fc),this['_model']['change'](_0x42d50d=>{_0x42d50d['addMarker'](_0x3204fc,{'range':_0x193262,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x839294){for(const _0x4aa7fc of this['getRanges']())if(_0x4aa7fc['isIntersecting'](_0x839294))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x54e759=>_0x54e759['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x177175,_0x4ff0ca)=>[..._0x177175,..._0x4ff0ca['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x37a7c1=this['getRanges']();if(0x1!=_0x37a7c1['length'])return null;const _0x4ceadc=_0x37a7c1[0x0],_0x5683a8=_0x4ceadc['start']['nodeAfter'],_0x3595ac=_0x4ceadc['end']['nodeBefore'];return _0x5683a8 instanceof _0x32d25f?_0x5683a8!=_0x3595ac?null:_0x5683a8: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 _0xe32c5d=[];let _0x4b4eb2=this['head'];for(;_0x4b4eb2;)_0xe32c5d['push'](_0x4b4eb2),_0x4b4eb2=_0x4b4eb2['next'];return _0xe32c5d;}['setAttribute'](_0x84f2e4,_0x2b2090){const _0x53f096=_0x14f8f8(this['attributes']);_0x10efcf(_0x53f096,_0x84f2e4,_0x2b2090),_0x1314a1(_0x53f096,this['attributes'])||(this['attributes']=_0x53f096,this['_onAttributesChange'](_0x53f096));}['removeAttribute'](_0xeff3f7){const _0x32228d=_0x14f8f8(this['attributes']);_0x54060d(_0x32228d,_0xeff3f7),_0x1314a1(_0x32228d,this['attributes'])||(this['attributes']=_0x32228d,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 _0xd0f9be()['substr'](0x1,0x5);}}function o(_0x252e64,_0x124f59,_0x191967){const _0x52ec6b=_0x252e64['t'],t=_0x252e64['t'];switch(_0x124f59){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x191967);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x191967);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x191967);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x191967);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x191967);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',_0x191967);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x191967);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x191967);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x191967);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x191967);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x191967);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x191967);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x191967);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x191967);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x191967);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x191967);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x191967);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x191967);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x191967);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x191967);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x191967);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x191967);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x191967);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x191967);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x191967);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'},_0x191967);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x191967);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x191967);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x191967);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x191967);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x191967);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x191967);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x191967);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'},_0x191967);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x191967);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x191967);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x191967);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x191967);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'},_0x191967);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x191967);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'},_0x191967);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x191967);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x191967);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'},_0x191967);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x191967);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'},_0x191967);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x191967);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x191967);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x191967);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x191967);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 _0x52ec6b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x191967);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x52ec6b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x191967);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x191967);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x191967);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x191967);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x191967);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x124f59;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xcf91f4,_0xfd5ac8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xcf91f4,this['_locale']=_0xfd5ac8;}['getDescriptions'](_0x47d25b){const _0x2b3030=[],_0x11a713=new Set(),_0x319fa7=new Set();for(let _0x414bb7=0x0;_0x414bb7<_0x47d25b['length'];_0x414bb7++){const _0x123b4d=_0x47d25b[_0x414bb7];if(!_0x123b4d['isInContent'])continue;const _0x5dd1f3=this['_handleCustomCallbackDescription'](_0x123b4d);if(_0x5dd1f3){if(null!=_0x123b4d['subType']){if(_0x11a713['has'](_0x123b4d['subType']))continue;_0x11a713['add'](_0x123b4d['subType']);}_0x2b3030['push'](_0x5dd1f3);}else{if('attribute'==_0x123b4d['type']){const _0x5a64ba=_0x123b4d['data']['key'];if(_0x319fa7['has'](_0x5a64ba))continue;_0x319fa7['add'](_0x123b4d['data']['key']),_0x5a64ba==m?this['_handleRenameSuggestionDescription'](_0x2b3030,_0x123b4d):this['_handleAttributeSuggestionDescription'](_0x2b3030,_0x123b4d);continue;}'insertion'!=_0x123b4d['type']&&'deletion'!=_0x123b4d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2b3030,_0x123b4d,_0x47d25b[_0x414bb7+0x1]);}}return this['_resolveDescriptionItems'](_0x2b3030);}['registerDescriptionCallback'](_0x5e2fed){this['_customCallbacks']['push'](_0x5e2fed);}['registerElementLabel'](_0xdcd204,_0x204351,_0x1ad0fc=_0x4c5029['normal']){'function'==typeof _0xdcd204?_0xcfcfef(this['_itemLabelsCallbacks'],{'matchingCallback':_0xdcd204,'label':_0x204351,'priority':_0x1ad0fc}):this['_itemLabels']['set'](_0xdcd204,_0x204351);}['registerAttributeLabel'](_0x1bd34f,_0x7b876c){this['_attributeLabels']['set'](_0x1bd34f,_0x7b876c);}['getItemLabel'](_0x4e8793,_0x5e96b4=0x1){let _0x5ef1e8;for(const _0xbab895 of this['_itemLabelsCallbacks'])if(_0xbab895['matchingCallback'](_0x4e8793)){_0x5ef1e8=_0xbab895['label'];break;}return _0x5ef1e8||(_0x5ef1e8=this['_itemLabels']['get'](_0x4e8793['name'])),_0x5ef1e8?_0x5ef1e8(_0x5e96b4):0x1!==_0x5e96b4?_0x5e96b4+'\x20'+_0x4e8793['name']+'s':''+_0x4e8793['name'];}['_addDescriptionItems'](_0x39b9be,_0x3dd795){const _0x4d0f96=_0x3dd795['getFirstRange']()['getWalker'](),_0x1124dd='insertion'==_0x3dd795['type']?'add':'remove';for(const _0x224cca of _0x4d0f96){const _0xcfce6c=_0x224cca['item'],_0x4a24b6=_0x39b9be[_0x39b9be['length']-0x1];if(_0xcfce6c['is']('$textProxy'))_0x4a24b6&&_0x4a24b6['type']['indexOf']('Container')>-0x1&&_0x39b9be['pop'](),_0x4a24b6&&'text'==_0x4a24b6['type']?_0x4a24b6[_0x1124dd]+=_0xcfce6c['data']:_0x39b9be['push']({'type':'text','add':'add'==_0x1124dd?_0xcfce6c['data']:'','remove':'remove'==_0x1124dd?_0xcfce6c['data']:''});else{if(this['_schema']['isObject'](_0xcfce6c)){const _0x106454=_0xcfce6c;if(_0x4a24b6&&_0x4a24b6['type']['indexOf']('Container')>-0x1&&_0x39b9be['pop'](),'elementEnd'==_0x224cca['type'])continue;_0x4a24b6&&_0x4a24b6['type']==_0x1124dd+'Object'&&_0x4a24b6['element']['name']==_0x106454['name']?_0x4a24b6['quantity']++:_0x39b9be['push']({'type':_0x1124dd+'Object','element':_0x106454,'quantity':0x1}),_0x4d0f96['skip'](_0x9da7b=>!('elementEnd'==_0x9da7b['type']&&_0x9da7b['item']==_0xcfce6c));}else{if(this['_schema']['checkChild'](_0xcfce6c,'$text')||_0xcfce6c['is']('element','softBreak')){const _0x57175e=_0xcfce6c;if('add'==_0x1124dd&&'elementStart'==_0x224cca['type']||'remove'==_0x1124dd&&'elementEnd'==_0x224cca['type'])continue;if(_0x4a24b6&&-0x1==_0x4a24b6['type']['indexOf']('Container')){'text'==_0x4a24b6['type']&&(_0x4a24b6[_0x1124dd]+='\x0a');continue;}let _0x23461b;if(_0x23461b='add'==_0x1124dd?_0x57175e['nextSibling']&&!this['_schema']['isObject'](_0x57175e['nextSibling'])?_0x57175e['nextSibling']:null:_0x57175e['previousSibling']&&!this['_schema']['isObject'](_0x57175e['previousSibling'])?_0x57175e['previousSibling']:null,_0x57175e['isEmpty']||_0x23461b&&_0x23461b['isEmpty']){const _0x55a2bc=_0x23461b&&_0x23461b['isEmpty']?_0x23461b:_0x57175e;_0x4a24b6&&_0x4a24b6['type']==_0x1124dd+'EmptyContainer'&&_0x4a24b6['element']['name']==_0x55a2bc['name']?_0x4a24b6['quantity']++:_0x39b9be['push']({'type':_0x1124dd+'EmptyContainer','element':_0x55a2bc,'quantity':0x1});}else _0x39b9be['push']({'type':_0x1124dd+'Container','element':_0x57175e});}}}}}['_resolveDescriptionItems'](_0x187bc5){const _0x37cafb=this['_locale'],_0x6726c=[],_0x3b82b9=[],_0x296840=[];for(const _0x2d940b of _0x187bc5)switch(_0x2d940b['type']){case'text':if(_0x2d940b['add']=_0x2d940b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2d940b['remove']=_0x2d940b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2d940b['add']&&''!=_0x2d940b['remove']){_0x6726c['push']({'type':'replace','content':o(_0x37cafb,'REPLACE_TEXT',['\x22'+_0x2d940b['remove']+'\x22','\x22'+_0x2d940b['add']+'\x22'])});continue;}if(null!=_0x2d940b['add']['match'](/^ +$/)){_0x6726c['push']({'type':'insertion','content':o(_0x37cafb,'*Insert:*\x20%0',o(_0x37cafb,'ELEMENT_SPACE',_0x2d940b['add']['length']))});continue;}if(null!=_0x2d940b['remove']['match'](/^ +$/)){_0x6726c['push']({'type':'deletion','content':o(_0x37cafb,'*Remove:*\x20%0',o(_0x37cafb,'ELEMENT_SPACE',_0x2d940b['remove']['length']))});continue;}if(''!=_0x2d940b['add']){_0x6726c['push']({'type':'insertion','content':o(_0x37cafb,'*Insert:*\x20%0','\x22'+_0x2d940b['add']+'\x22')});continue;}_0x6726c['push']({'type':'deletion','content':o(_0x37cafb,'*Remove:*\x20%0','\x22'+_0x2d940b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x6726c['push']({'type':'insertion','content':o(_0x37cafb,'*Insert:*\x20%0',this['getItemLabel'](_0x2d940b['element'],_0x2d940b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x6726c['push']({'type':'deletion','content':o(_0x37cafb,'*Remove:*\x20%0',this['getItemLabel'](_0x2d940b['element'],_0x2d940b['quantity']))});continue;case'addContainer':_0x6726c['push']({'type':'insertion','content':o(_0x37cafb,'*Split:*\x20%0',this['getItemLabel'](_0x2d940b['element'],_0x2d940b['quantity']))});continue;case'removeContainer':_0x6726c['push']({'type':'deletion','content':o(_0x37cafb,'*Merge:*\x20%0',this['getItemLabel'](_0x2d940b['element'],_0x2d940b['quantity']))});continue;case'addFormat':_0x3b82b9['push'](_0x2d940b['key']);continue;case'removeFormat':_0x296840['push'](_0x2d940b['key']);continue;default:_0x6726c['push'](_0x2d940b);}if(_0x3b82b9['length']){const _0x5efca3=_0x3b82b9['map'](_0x435131=>this['_attributeLabels']['has'](_0x435131)?this['_attributeLabels']['get'](_0x435131):_0x435131)['join'](',\x20');_0x6726c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5efca3)});}if(_0x296840['length']){const _0x56c52e=_0x296840['map'](_0x1d3e1c=>this['_attributeLabels']['has'](_0x1d3e1c)?this['_attributeLabels']['get'](_0x1d3e1c):_0x1d3e1c)['join'](',\x20');_0x6726c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x56c52e)});}return _0x6726c;}['_handleCustomCallbackDescription'](_0x1d33a7){for(const _0x30bbec of this['_customCallbacks']){const _0x6586f4=_0x30bbec(_0x1d33a7);if(_0x6586f4&&'type'in _0x6586f4)return _0x6586f4;}}['_handleAttributeSuggestionDescription'](_0x2d35a2,_0x49d349){const _0x4caae6=_0x49d349['data'],_0x1fdbc8=void 0x0===_0x4caae6['newValue']?'removeFormat':'addFormat';_0x2d35a2['push']({'type':_0x1fdbc8,'key':_0x4caae6['key']});}['_handleRenameSuggestionDescription'](_0x5837d9,_0x15512d){_0x5837d9['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x15512d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1f162e,_0x611a17,_0x31c312){if(this['_addDescriptionItems'](_0x1f162e,_0x611a17),_0x31c312&&_0x31c312['getFirstRange']()&&!_0x611a17['getFirstRange']()['end']['isEqual'](_0x31c312['getFirstRange']()['start'])){const _0xa85fe3=_0x1f162e[_0x1f162e['length']-0x1],_0xf6ce74='insertion'==_0x611a17['type']?'add':'remove';_0xa85fe3&&'text'==_0xa85fe3['type']&&(_0xa85fe3[_0xf6ce74]+='\x0a');}}}class O extends _0x8725f3{['afterInit'](){const _0x28d508=this['editor'],_0x504a10=_0x28d508['plugins']['get']('TrackChangesEditing');_0x28d508['commands']['get']('showAIAssistant')&&_0x504a10['enableCommand']('showAIAssistant');}}class E extends _0x8725f3{['afterInit'](){const _0x2621f1=this['editor'],_0x153992=_0x2621f1['locale'];if(!_0x2621f1['plugins']['has']('AlignmentEditing'))return;const _0x4343a4=_0x2621f1['plugins']['get']('TrackChangesEditing');_0x4343a4['enableDefaultAttributesIntegration']('alignment'),_0x4343a4['registerBlockAttribute']('alignment'),_0x4343a4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x153992,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5654ff=this['editor'],_0x2aa662=_0x5654ff['locale'];_0x5654ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f41ec=>{if('formatBlock'!=_0x3f41ec['type'])return;const {data:_0x1bf74b}=_0x3f41ec;if(_0x1bf74b&&'alignment'==_0x1bf74b['commandName']){const _0x4286e1=_0x1bf74b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2aa662,'*Format:*\x20%0',function(_0x6c5a76){switch(_0x6c5a76){case'left':return o(_0x2aa662,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2aa662,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2aa662,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2aa662,'FORMAT_JUSTIFY_TEXT');}}(_0x4286e1))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x8725f3{['afterInit'](){const _0x268fb1=this['editor'],_0x47c46b=_0x268fb1['plugins']['get']('TrackChangesEditing'),_0x8537d2=_0x268fb1['locale'];for(const _0x39ccc7 of ti){if(!_0x268fb1['plugins']['has'](_0x39ccc7))continue;const _0x1f1477=_0x39ccc7['slice'](0x0,-0x7)['toLowerCase'](),_0x452120='FORMAT_'+_0x1f1477['toUpperCase']();_0x47c46b['enableDefaultAttributesIntegration'](_0x1f1477),_0x47c46b['registerInlineAttribute'](_0x1f1477),_0x47c46b['descriptionFactory']['registerAttributeLabel'](_0x1f1477,o(_0x8537d2,_0x452120));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30a410=this['editor'],_0x3ecde6=_0x30a410['locale'],_0x54f082=_0x30a410['plugins']['get']('TrackChangesEditing');function _0x476822(_0x191731,_0x5ef5e1){_0x54f082['descriptionFactory']['registerDescriptionCallback'](_0xe26cf4=>{if('formatInline'!=_0xe26cf4['type'])return;const {data:_0x37c7b6}=_0xe26cf4;return _0x37c7b6&&_0x37c7b6['commandName']===_0x191731?_0x37c7b6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ecde6,'*Format:*\x20%0',_0x5ef5e1)}:{'type':'format','content':o(_0x3ecde6,'*Remove\x20format:*\x20%0',_0x5ef5e1)}:void 0x0;});}_0x476822('bold',o(_0x3ecde6,'FORMAT_BOLD')),_0x476822('italic',o(_0x3ecde6,'FORMAT_ITALIC')),_0x476822('underline',o(_0x3ecde6,'FORMAT_UNDERLINE')),_0x476822('code',o(_0x3ecde6,'FORMAT_CODE')),_0x476822('strikethrough',o(_0x3ecde6,'FORMAT_STRIKETHROUGH')),_0x476822('subscript',o(_0x3ecde6,'FORMAT_SUBSCRIPT')),_0x476822('superscript',o(_0x3ecde6,'FORMAT_SUPERSCRIPT'));}}class U extends _0x8725f3{['afterInit'](){const _0x86af77=this['editor'],_0x35b501=_0x86af77['locale'];if(!_0x86af77['plugins']['has']('BlockQuoteEditing'))return;const _0x3816a4=_0x86af77['plugins']['get']('TrackChangesEditing'),_0x191437=this['editor']['commands']['get']('blockQuote');_0x3816a4['enableCommand']('blockQuote',(_0x3f26a7,_0x5a770b={})=>{const _0x1e8e64=this['editor']['model']['document']['selection'],_0x2e66cf=_0x5a770b&&void 0x0!==_0x5a770b['forceValue']?_0x5a770b['forceValue']:!_0x191437['value'];let _0x284772=[];if(_0x2e66cf){const _0x15a696=Array['from'](_0x1e8e64['getSelectedBlocks']())['filter'](_0x2c842c=>oo(_0x2c842c)||function(_0x5d4aa9,_0x47669c){const _0x1d74bb=_0x47669c['checkChild'](_0x5d4aa9['parent'],'blockQuote'),_0x52642c=_0x47669c['checkChild'](['$root','blockQuote'],_0x5d4aa9);return _0x1d74bb&&_0x52642c;}(_0x2c842c,this['editor']['model']['schema']));_0x284772=to(_0x15a696,_0x86af77['model']);}else{const _0x29b97c=Array['from'](_0x1e8e64['getSelectedBlocks']())['filter'](_0x101dd8=>oo(_0x101dd8));_0x284772=to(_0x29b97c,_0x86af77['model']);}_0x86af77['model']['change'](()=>{for(const _0x7055af of _0x284772)_0x3816a4['markBlockFormat'](_0x7055af,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2e66cf}]});});}),_0x3816a4['descriptionFactory']['registerDescriptionCallback'](_0x5abbcf=>{const {data:_0x2dc919}=_0x5abbcf;if(_0x2dc919&&'blockQuote'==_0x2dc919['commandName']){const _0x49a86a=o(_0x35b501,'ELEMENT_BLOCK_QUOTE');return _0x2dc919['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35b501,'*Set\x20format:*\x20%0',_0x49a86a)}:{'type':'format','content':o(_0x35b501,'*Remove\x20format:*\x20%0',_0x49a86a)};}});}}function oo(_0x27239e){return'blockQuote'==_0x27239e['parent']['name'];}class V extends _0x8725f3{['afterInit'](){const _0x4d5157=this['editor'],_0x4aeb43=_0x4d5157['locale'],_0x364120=_0x4d5157['plugins']['get']('TrackChangesEditing');_0x4d5157['plugins']['has']('BookmarkEditing')&&(_0x364120['enableCommand']('insertBookmark'),_0x364120['enableDefaultAttributesIntegration']('updateBookmark'),_0x364120['registerBlockAttribute']('bookmarkId'),_0x364120['descriptionFactory']['registerDescriptionCallback'](_0x2631c2=>{if('insertion'!=_0x2631c2['type']&&'deletion'!=_0x2631c2['type']&&'attribute'!=_0x2631c2['type'])return;const _0x336c12=_0x2631c2['getContainedElement']();if(null==_0x336c12)return;if(!_0x336c12['is']('element','bookmark'))return;const _0x152db7=_0x336c12['getAttribute']('bookmarkId');if('insertion'==_0x2631c2['type'])return{'type':'insertion','content':o(_0x4aeb43,'*Insert:*\x20%0','\x22'+_0x152db7+'\x22\x20'+o(_0x4aeb43,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2631c2['type'])return{'type':'deletion','content':o(_0x4aeb43,'*Remove:*\x20%0','\x22'+_0x152db7+'\x22\x20'+o(_0x4aeb43,'ELEMENT_BOOKMARK'))};const {data:_0x5121fb}=_0x2631c2;if(!_0x5121fb||'bookmarkId'!=_0x5121fb['key'])return;return{'type':'format','content':o(_0x4aeb43,'*Set\x20bookmark:*\x20%0','\x22'+_0x5121fb['newValue']+'\x22')};}));}}class F extends _0x8725f3{['afterInit'](){const _0x180e24=this['editor'];_0x180e24['plugins']['has']('CaseChange')&&(_0x180e24['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x180e24['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x180e24['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x8725f3{['afterInit'](){const _0x2886c1=this['editor'];_0x2886c1['commands']['get']('ckbox')&&_0x2886c1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x8725f3{['afterInit'](){const _0x4cccf7=this['editor'];if(!_0x4cccf7['plugins']['has']('CodeBlock'))return;const _0x585f2f=_0x4cccf7['plugins']['get']('TrackChangesEditing'),_0x2467a9=_0x4cccf7['locale'],_0x20502=_0x4cccf7['config']['get']('codeBlock')['languages'],_0x42b653=_0x4cccf7['commands']['get']('codeBlock');_0x585f2f['enableCommand']('indentCodeBlock'),_0x585f2f['enableCommand']('outdentCodeBlock'),_0x585f2f['enableCommand']('codeBlock',(_0x2dd27c,_0x309b1d={})=>{const _0x3c7584=_0x4cccf7['model'],_0x486122=_0x4cccf7['model']['document']['selection'],_0x5b4ac1=_0x309b1d&&void 0x0!==_0x309b1d['forceValue']?_0x309b1d['forceValue']:!_0x42b653['value'];let _0x275a21;_0x309b1d['language']||(_0x309b1d['language']=_0x20502[0x0]['language']),_0x275a21=_0x5b4ac1?Array['from'](_0x486122['getSelectedBlocks']())['filter'](_0x29cb6d=>co(_0x29cb6d)||function(_0x158c06,_0x3b63ec){if(_0x158c06['is']('rootElement')||_0x3b63ec['isLimit'](_0x158c06))return!0x1;return _0x3b63ec['checkChild'](_0x158c06['parent'],'codeBlock');}(_0x29cb6d,_0x3c7584['schema'])):Array['from'](_0x486122['getSelectedBlocks']())['filter'](_0x975ee7=>co(_0x975ee7));const _0x2b12f2=to(_0x275a21,_0x3c7584);_0x3c7584['change'](()=>{for(const _0x554c92 of _0x2b12f2)_0x585f2f['markBlockFormat'](_0x554c92,{'commandName':'codeBlock','commandParams':[{..._0x309b1d,'forceValue':_0x5b4ac1}],'formatGroupId':'blockName'});});}),(_0x585f2f['descriptionFactory']['registerElementLabel']('codeBlock',_0x14257f=>o(_0x2467a9,'ELEMENT_CODE_BLOCK',_0x14257f)),_0x585f2f['descriptionFactory']['registerDescriptionCallback'](_0x2d59bb=>{if('formatBlock'!=_0x2d59bb['type'])return;const _0x2ea815=_0x2467a9['t'],{data:_0x143a42}=_0x2d59bb;if(!_0x143a42||'codeBlock'!=_0x143a42['commandName'])return;const _0x34a5f8=_0x143a42['commandParams'][0x0]['language'],_0x3b70d4=_0x2ea815(_0x20502['find'](_0x57961c=>_0x57961c['language']===_0x34a5f8)['label'])['toLowerCase']();return _0x143a42['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2467a9,'*Set\x20format:*\x20%0',o(_0x2467a9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3b70d4+')')}:{'type':'format','content':o(_0x2467a9,'*Remove\x20format:*\x20%0',o(_0x2467a9,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3419af){return'codeBlock'==_0x3419af['name'];}class J extends _0x8725f3{['afterInit'](){const _0x171b84=this['editor'];if(!_0x171b84['plugins']['has']('CommentsEditing'))return;_0x171b84['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4e5dd8,_0x34f4df,_0x5eab56){const _0x37b704=[];for(const _0x30f88e of _0x34f4df['getItems']())_0x30f88e['hasAttribute'](_0x4e5dd8)&&_0x37b704['push'](_0x5eab56['createRangeOn'](_0x30f88e));return _0x37b704;}function De(_0x294404,_0x1afbcb,{showActiveMarker:_0x4345fc=!0x0}={}){const _0x1ab5c4=_0x294404['plugins']['get']('TrackChangesEditing');return(_0x43dab1,_0x41a23a,_0x19346b)=>{if(!_0x19346b['consumable']['test'](_0x41a23a['markerRange'],_0x43dab1['name']))return;const _0x2c9de6=_0x41a23a['markerRange']['getWalker'](),_0x570f54=_0x41a23a['markerRange']['start'],_0x2a211d=_0x294404['model']['schema'];let _0x4d3204=null,_0x4dd543=null,_0x22af8d=!0x1,_0x311fe2=!0x1;for(const _0x58556b of _0x2c9de6){const _0x17ccef=_0x58556b['item'];_0x22af8d=_0x22af8d||_0x2a211d['isContent'](_0x17ccef);const _0x458332=_0x19346b['mapper']['toViewElement'](_0x17ccef);if(_0x458332&&_0x458332['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58556b['type']&&(_0x2a211d['isBlock'](_0x17ccef)&&!_0x2a211d['isLimit'](_0x17ccef)&&(_0x17ccef['nextSibling']||_0x570f54['isAtEnd']?_0x4d3204&&_0x4d3204['parent']==_0x17ccef||(_0x4d3204=_0x17ccef,_0x1846d0(_0x58556b['previousPosition']),_0x311fe2=!0x0):_0x4dd543=_0x4dd543||_0x58556b['previousPosition']));}function _0x1846d0(_0x78c723){const {id:_0x4c9f84,authorId:_0x1d7bbc}=_0x1ab5c4['_splitMarkerName'](_0x41a23a['markerName']),_0x384691=_0x19346b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1afbcb,'data-suggestion':_0x4c9f84,'data-author-id':_0x1d7bbc}),_0x1b66ca=_0x19346b['mapper']['toViewPosition'](_0x78c723);_0x4345fc&&_0x1ab5c4['activeMarkers']['includes'](_0x41a23a['markerName'])&&_0x19346b['writer']['addClass']('ck-suggestion-marker--active',_0x384691),_0x19346b['writer']['insert'](_0x1b66ca,_0x384691),_0x19346b['mapper']['bindElementToMarker'](_0x384691,_0x41a23a['markerName']);}_0x22af8d||_0x311fe2||!_0x4dd543||_0x1846d0(_0x4dd543);};}class K extends _0x8725f3{static get['requires'](){return[_0x1eb864];}['init'](){const _0x214a76=this['editor'],_0x2ba10a=_0x214a76['plugins']['get']('TrackChangesEditing');_0x2ba10a['enableCommand']('delete');const _0x193746=_0x214a76['commands']['get']('deleteForward');_0x2ba10a['enableCommand']('deleteForward',(_0x53286e,_0x484def={})=>{const _0x57cb1d=_0x214a76['model']['createSelection'](_0x214a76['model']['document']['selection']);_0x57cb1d['isCollapsed']&&_0x214a76['model']['modifySelection'](_0x57cb1d,{'direction':'forward','unit':_0x484def['unit']});const _0x4a3655=_0x57cb1d['getFirstRange'](),_0x2bc1ba=_0x3e3f9b['fromRange'](_0x4a3655);let _0x358ec2;_0x53286e(_0x484def),_0x358ec2='$graveyard'==_0x2bc1ba['root']['rootName']?_0x214a76['model']['createRange'](_0x4a3655['start']):_0x214a76['model']['createRange'](_0x2bc1ba['start'],_0x2bc1ba['end']),_0x2bc1ba['detach'](),_0x214a76['model']['enqueueChange'](_0x193746['buffer']['batch'],_0x48d84e=>{_0x193746['buffer']['lock'](),_0x48d84e['setSelection'](_0x48d84e['createRange'](_0x358ec2['end'])),_0x193746['buffer']['unlock']();});}),_0x214a76['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x214a76,'merge'),{'priority':'high'}),_0x214a76['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38155d,_0x2c84ee,_0x2659f6)=>{_0x2659f6['options']['showSuggestionHighlights']&&De(_0x214a76,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38155d,_0x2c84ee,_0x2659f6);},{'priority':'high'}),_0x214a76['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x595e92,_0x577d95,_0x316eb4)=>{const _0x20b496=_0x316eb4['mapper']['markerNameToElements'](_0x577d95['markerName']);if(_0x20b496){for(const _0x2b8227 of _0x20b496)_0x2b8227['is']('uiElement')&&(_0x316eb4['mapper']['unbindElementFromMarkerName'](_0x2b8227,_0x577d95['markerName']),_0x316eb4['writer']['remove'](_0x2b8227));}},{'priority':'high'});}}class H extends _0x8725f3{['afterInit'](){const _0x1c8a17=this['editor'];if(!_0x1c8a17['plugins']['has']('ListEditing'))return;const _0x3d50f5=_0x1c8a17['locale'],_0x2a81b3=_0x1c8a17['plugins']['get']('TrackChangesEditing'),_0x4b5001=_0x1c8a17['plugins']['has']('TodoListEditing'),_0x62d5b=!!_0x1c8a17['config']['get']('list.multiBlock');function _0x57dd05(_0x58f28f){return{'type':'format','content':''+o(_0x3d50f5,'*Set\x20format:*\x20%0',_0x58f28f)};}function _0x1b011c(_0x53f56c){return{'type':'format','content':''+o(_0x3d50f5,'*Remove\x20format:*\x20%0',_0x53f56c)};}_0x2a81b3['enableDefaultAttributesIntegration']('numberedList'),_0x2a81b3['enableDefaultAttributesIntegration']('bulletedList'),_0x2a81b3['enableDefaultAttributesIntegration']('customNumberedList'),_0x2a81b3['enableDefaultAttributesIntegration']('customBulletedList'),_0x2a81b3['enableDefaultAttributesIntegration']('indentList'),_0x2a81b3['enableDefaultAttributesIntegration']('outdentList'),_0x2a81b3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2a81b3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2a81b3['registerBlockAttribute']('listItemId'),_0x2a81b3['registerBlockAttribute']('listType'),_0x2a81b3['registerBlockAttribute']('listIndent'),_0x62d5b&&(_0x2a81b3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2a81b3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4b5001&&(_0x2a81b3['enableDefaultAttributesIntegration']('todoList'),_0x2a81b3['enableDefaultAttributesIntegration']('checkTodoList'),_0x2a81b3['registerBlockAttribute']('todoListChecked'),_0x2a81b3['descriptionFactory']['registerDescriptionCallback'](_0x6cb222=>{const {data:_0x260b30}=_0x6cb222;if(_0x260b30&&'todoListChecked'==_0x260b30['key'])return{'type':'format','content':_0x260b30['newValue']?o(_0x3d50f5,'*Check\x20item*'):o(_0x3d50f5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x432eb1=>{if(_0x432eb1['batch']['isUndo'])return!0x1;let _0x56072e=!0x1;const _0x19fe59=_0x2a81b3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x406eef=>'todoListChecked'===_0x2a81b3['_getAttributeKey'](_0x406eef));for(const _0x112e8a of _0x19fe59){'todo'!=_0x112e8a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2a81b3['_findSuggestions'](_0x112e8a['getFirstRange'](),'attribute')['find'](_0x23def7=>'listType'===_0x2a81b3['_getAttributeKey'](_0x23def7['suggestion']))||(_0x432eb1['removeMarker'](_0x112e8a['getFirstMarker']()),_0x56072e=!0x0));}return _0x56072e;})),_0x2a81b3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3d50f5,'FORMAT_INDENT'));const _0x3a70a1={'type':'format','content':''};_0x2a81b3['descriptionFactory']['registerDescriptionCallback'](_0x2ab36a=>{const {data:_0xd49710}=_0x2ab36a;if(!_0xd49710||'listType'!=_0xd49710['key'])return;let _0x5a9780=_0x2ab36a['head'];for(;_0x5a9780;){if(_0x5a9780['data']&&(('listStyle'==_0x5a9780['data']['key']||'listMarkerStyle'==_0x5a9780['data']['key'])&&(_0x5a9780['data']['newValue']&&'default'!=_0x5a9780['data']['newValue']||'default'!=_0x5a9780['data']['oldValue']&&!_0xd49710['newValue'])||!_0x62d5b&&_0x5a9780['data']['key']==m))return _0x3a70a1;_0x5a9780=_0x5a9780['next'];}if(null==_0xd49710['newValue'])switch(_0xd49710['oldValue']){case'bulleted':return _0x1b011c(o(_0x3d50f5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b011c(o(_0x3d50f5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b011c(o(_0x3d50f5,'ELEMENT_TODO_LIST'));}switch(_0xd49710['newValue']){case'bulleted':return _0x57dd05(o(_0x3d50f5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x57dd05(o(_0x3d50f5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x57dd05(o(_0x3d50f5,'ELEMENT_TODO_LIST'));}}),_0x2a81b3['descriptionFactory']['registerDescriptionCallback'](_0x5ca9be=>{const {data:_0x1660e0}=_0x5ca9be;if(_0x1660e0&&'listIndent'==_0x1660e0['key'])return null==_0x1660e0['newValue']||null==_0x1660e0['oldValue']&&0x0==_0x1660e0['newValue']?_0x3a70a1:void 0x0;}),_0x2a81b3['descriptionFactory']['registerDescriptionCallback'](_0x326172=>{if('attribute'!=_0x326172['type'])return;const {data:_0x5b3f51}=_0x326172;if(!_0x5b3f51||'listItemId'!=_0x5b3f51['key'])return;const _0xf260eb=Te(_0x326172);return'newValue'==_0xf260eb?{'type':'format','content':o(_0x3d50f5,'*Merge:*\x20list\x20item')}:'oldValue'==_0xf260eb?{'type':'format','content':o(_0x3d50f5,'*Split:*\x20list\x20item')}:_0x3a70a1;}),_0x1c8a17['model']['document']['registerPostFixer'](_0x564c82=>this['listItemIdFixer'](_0x564c82)),_0x1c8a17['model']['document']['registerPostFixer'](_0x19ff1d=>this['noTrackChangesFixer'](_0x19ff1d)),_0x1c8a17['model']['document']['on']('change:data',(_0x252f55,_0x2489b0)=>{if(_0x2489b0['isUndo']||!_0x2489b0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4c62b7){if(_0x4c62b7['batch']['isUndo']||!_0x4c62b7['batch']['isLocal'])return!0x1;let _0x244dd5=!0x1;const _0x2c52f9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44a0d9=>_0x44a0d9['data']&&'listItemId'==_0x44a0d9['data']['key'])['filter'](_0x56eebc=>_0x56eebc['data']['newValue']&&_0x56eebc['data']['oldValue']);for(const _0x493372 of _0x2c52f9)Te(_0x493372)||(_0x4c62b7['removeMarker'](_0x493372['getFirstMarker']()),_0x244dd5=!0x0);return _0x244dd5;}['noTrackChangesFixer'](_0x31bb2c){if(_0x31bb2c['batch']['isUndo']||!_0x31bb2c['batch']['isLocal'])return!0x1;const _0x1d7d67=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1d7d67['trackChangesCommand']['value'])return!0x1;let _0x33ac2b=!0x1;const _0x4f2fa7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x23663b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x549238=>'attribute'==_0x549238['type'])['filter'](_0x10614b=>_0x4f2fa7['includes'](_0x10614b['attributeKey']));if(0x0==_0x23663b['length'])return _0x33ac2b;for(const _0x2694da of _0x23663b){const _0x3802e4=_0x1d7d67['_findSuggestions'](_0x2694da['range'],'attribute')['filter'](_0x44b5ce=>!_0x44b5ce['meta']['isNextTo'])['map'](_0x294691=>_0x294691['suggestion'])['filter'](_0xf5d2bb=>{const _0xc2eb99=_0x1d7d67['_getAttributeKey'](_0xf5d2bb);return _0x4f2fa7['includes'](_0xc2eb99);});if(_0x3802e4['length']){for(const _0x5ca6f2 of _0x3802e4)_0x31bb2c['removeMarker'](_0x5ca6f2['getFirstMarker']());_0x33ac2b=!0x0;}}return _0x33ac2b;}['assureChains'](){const _0x5f277b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cc931=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4529e1;const _0x469e5c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x28bd2a=>{if(_0x28bd2a['data']['oldRange']||!_0x28bd2a['data']['newRange'])return null;if(!_0x28bd2a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x217ce7}=_0x5f277b['_splitMarkerName'](_0x28bd2a['name']);if(!_0x5f277b['hasSuggestion'](_0x217ce7))return null;const _0x26d873=_0x5f277b['getSuggestion'](_0x217ce7);return _0x3cc931['includes'](_0x26d873['data']['key']);})['map'](_0x42670b=>{const {id:_0x9f8d57}=_0x5f277b['_splitMarkerName'](_0x42670b['name']),_0x3bf060=_0x5f277b['getSuggestion'](_0x9f8d57);return _0x4529e1=_0x3bf060['attributes']['groupId'],_0x3bf060['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x469e5c['size'])return;const _0x34db80=_0x5f277b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x85aaa8=>'attribute'==_0x85aaa8['type']&&_0x85aaa8['data']&&_0x3cc931['includes'](_0x85aaa8['data']['key'])&&_0x85aaa8['attributes']['groupId']!=_0x4529e1)['map'](_0x379e4a=>({'listItem':_0x379e4a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x379e4a['attributes']['groupId']})),_0x266fb6=new Set();for(const {groupId:_0x48c728,listItem:_0x1cbb2d}of _0x34db80)_0x469e5c['has'](_0x1cbb2d)&&_0x266fb6['add'](_0x48c728);for(const _0x1c841f of _0x5f277b['getSuggestions']())_0x266fb6['has'](_0x1c841f['attributes']['groupId'])&&_0x1c841f['setAttribute']('groupId',_0x4529e1);}['_supportLegacySuggestions'](){const _0x2202ec=this['editor'],_0x57a24c=_0x2202ec['locale'],_0x5a1d94=_0x2202ec['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5a1d94['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1c3f0b,_0x58f793){const _0x5569a0=[];for(let _0x2a0d48 of _0x1c3f0b)_0x2a0d48['start']['nodeAfter']===_0x2a0d48['end']['parent']&&(_0x2a0d48=_0x2202ec['model']['createRange'](_0x2202ec['model']['createPositionAt'](_0x2a0d48['start']['nodeAfter'],0x0))),_0x5569a0['push'](_0x2a0d48);_0x2202ec['model']['change'](_0x5674c6=>{const _0x3401f0=_0x2202ec['model']['document']['selection'],_0x3d2962=Array['from'](_0x3401f0['getRanges']())['map'](_0x269624=>_0x3e3f9b['fromRange'](_0x269624));_0x5674c6['setSelection'](_0x5569a0),_0x2202ec['commands']['get'](_0x58f793['commandName'])['refresh'](),_0x58f793['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2202ec['execute'](_0x58f793['commandName'],..._0x58f793['commandParams']),_0x5674c6['setSelection'](_0x3d2962);for(const _0x55987e of _0x3d2962)_0x55987e['detach']();});}),_0x5a1d94['descriptionFactory']['registerElementLabel'](function(_0x456313){const _0x3c8813=!_0x2202ec['model']['schema']['isObject'](_0x456313),_0x24d93f=_0x456313['previousSibling'],_0x476383=_0x456313['nextSibling'],_0x4ab849=_0x456313['getAttribute']('listItemId'),_0x10e4af=!_0x24d93f||_0x24d93f['getAttribute']('listItemId')!==_0x4ab849,_0x80b75a=!_0x476383||_0x476383['getAttribute']('listItemId')!==_0x4ab849;return _0x3c8813&&Boolean(_0x4ab849)&&_0x10e4af&&_0x80b75a;},_0x16a4bc=>o(_0x57a24c,'ELEMENT_LIST_ITEM',_0x16a4bc));}['_registerLegacyDescription'](){const _0x154b41=this['editor'],_0x12f7af=_0x154b41['locale'];function _0x436f30(_0x42a2d4){const _0x20bc99=_0x154b41['commands']['get']('bulletedList')['value'],_0x3390f0=_0x154b41['commands']['get']('numberedList')['value'];return'numberedList'===_0x42a2d4?_0x20bc99:_0x3390f0;}_0x154b41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x28c35b){if('formatBlock'!=_0x28c35b['type'])return;const {data:_0x21803d}=_0x28c35b;if(!_0x21803d)return;let _0x2bb665,_0x1c796e,_0x12f348,_0x2657ed;switch(_0x21803d['commandName']){case'bulletedList':_0x12f348=_0x21803d['commandParams'][0x0]['forceValue'],_0x2657ed=_0x436f30(_0x21803d['commandName']),_0x2bb665=_0x12f348?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2657ed&&_0x154b41['config']['get']('list.multiBlock')||(_0x2bb665='*Change\x20to:*\x20%0'),_0x1c796e={'type':'format','content':o(_0x12f7af,_0x2bb665,o(_0x12f7af,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x12f348=_0x21803d['commandParams'][0x0]['forceValue'],_0x2657ed=_0x436f30(_0x21803d['commandName']),_0x2bb665=_0x12f348?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2657ed&&_0x154b41['config']['get']('list.multiBlock')||(_0x2bb665='*Change\x20to:*\x20%0'),_0x1c796e={'type':'format','content':o(_0x12f7af,_0x2bb665,o(_0x12f7af,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2bb665='*Indent:*\x20%0',_0x1c796e={'type':'format','content':o(_0x12f7af,_0x2bb665,o(_0x12f7af,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2bb665=function(_0x3fc19e){const _0x22b1b8=_0x3fc19e['getFirstRange']();let _0x1a0c25=_0x22b1b8['start']['nodeAfter'];for(;_0x1a0c25&&_0x22b1b8['containsItem'](_0x1a0c25);){if(_0x1a0c25['getAttribute']('listIndent')>0x0)return!0x1;_0x1a0c25=_0x1a0c25['nextSibling'];}return!0x0;}(_0x28c35b)?o(_0x12f7af,'*Format:*\x20remove\x20from\x20%0',o(_0x12f7af,function(_0x23f31c){return'ELEMENT_'+_0x23f31c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x28c35b))):o(_0x12f7af,'*Outdent:*\x20%0',o(_0x12f7af,'ELEMENT_LIST_ITEM')),_0x1c796e={'type':'format','content':_0x2bb665};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x21803d['multipleBlocks']&&(_0x2bb665='*Merge:*\x20%0',_0x1c796e={'type':'deletion','content':o(_0x12f7af,_0x2bb665,o(_0x12f7af,'ELEMENT_LIST_ITEM'))});}return _0x1c796e;});}}function Te(_0x74a390){let _0x328bf8=_0x74a390['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x328bf8;){const _0x38f1a4=_0x328bf8['getAttribute']('listItemId');if(!_0x38f1a4)return!0x1;if(_0x38f1a4==_0x74a390['data']['newValue'])return'newValue';if(_0x38f1a4==_0x74a390['data']['oldValue'])return'oldValue';_0x328bf8=_0x328bf8['previousSibling'];}return!0x1;}class q extends _0x8725f3{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x20eb0b=this['editor']['config']['get']('list.properties'),_0x5b25d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x20eb0b['styles']&&(_0x5b25d3['enableDefaultAttributesIntegration']('listStyle'),_0x5b25d3['registerBlockAttribute']('listStyle')),_0x20eb0b['reversed']&&(_0x5b25d3['enableDefaultAttributesIntegration']('listReversed'),_0x5b25d3['registerBlockAttribute']('listReversed')),_0x20eb0b['startIndex']&&(_0x5b25d3['enableDefaultAttributesIntegration']('listStart'),_0x5b25d3['registerBlockAttribute']('listStart'));const _0x2dd26f={'type':'format','content':''};_0x5b25d3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x27c8b1=this['editor']['locale'];_0x5b25d3['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x27c8b1,'FORMAT_LIST_REVERSED')),_0x5b25d3['descriptionFactory']['registerDescriptionCallback'](_0x1a2d68=>{const {data:_0x1460ae}=_0x1a2d68;if(_0x1460ae&&'listReversed'==_0x1460ae['key'])return null==_0x1460ae['newValue']||0x0==_0x1460ae['newValue']&&null==_0x1460ae['oldValue']?_0x2dd26f:void 0x0;}),_0x5b25d3['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x27c8b1,'FORMAT_LIST_START')),_0x5b25d3['descriptionFactory']['registerDescriptionCallback'](_0x1b14d6=>{const {data:_0x490bc2}=_0x1b14d6;if(_0x490bc2&&'listStart'==_0x490bc2['key'])return null==_0x490bc2['newValue']||0x1==_0x490bc2['newValue']&&null==_0x490bc2['oldValue']?_0x2dd26f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2f5916=>{if(_0x2f5916['batch']['isUndo'])return!0x1;let _0x23e560=!0x1;const _0x4fe40f=_0x5b25d3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23d503=>{const _0x2ec509=_0x5b25d3['_getAttributeKey'](_0x23d503);return'listStart'==_0x2ec509||'listReversed'==_0x2ec509;});for(const _0x2e1788 of _0x4fe40f){const _0x25ef29=_0x2e1788['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x25ef29||'customNumbered'==_0x25ef29)continue;_0x5b25d3['_findSuggestions'](_0x2e1788['getFirstRange'](),'attribute')['find'](_0x13d659=>'listType'==_0x5b25d3['_getAttributeKey'](_0x13d659['suggestion']))||(_0x2f5916['removeMarker'](_0x2e1788['getFirstMarker']()),_0x23e560=!0x0);}return _0x23e560;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4d8082){const _0x2ce4ce=this['editor']['locale'],{data:_0x28fdf5}=_0x4d8082,_0x219d2d={'type':'format','content':''};if(!_0x28fdf5||'listStyle'!=_0x28fdf5['key'])return;if(!_0x28fdf5['oldValue'])return'default'==_0x28fdf5['newValue']?_0x219d2d:{'type':'format','content':''+o(_0x2ce4ce,'*Set\x20format:*\x20%0',o(_0x2ce4ce,this['_getTranslationKeyForListStyle'](_0x28fdf5['newValue'])))};if(!_0x28fdf5['newValue']){if('default'==_0x28fdf5['oldValue'])return _0x219d2d;let _0x356da0=_0x4d8082['head'];for(;_0x356da0;){if(_0x356da0['data']&&'listType'==_0x356da0['data']['key']&&_0x356da0['data']['newValue'])return _0x219d2d;_0x356da0=_0x356da0['next'];}return{'type':'format','content':''+o(_0x2ce4ce,'*Remove\x20format:*\x20%0',o(_0x2ce4ce,this['_getTranslationKeyForListStyle'](_0x28fdf5['oldValue'])))};}if('default'!=_0x28fdf5['newValue'])return{'type':'format','content':''+o(_0x2ce4ce,'*Set\x20format:*\x20%0',o(_0x2ce4ce,this['_getTranslationKeyForListStyle'](_0x28fdf5['newValue'])))};let _0xf33fff=_0x4d8082['head'];for(;_0xf33fff;){if(_0xf33fff['data']&&'listType'==_0xf33fff['data']['key']&&_0xf33fff['data']['newValue']&&_0xf33fff['data']['oldValue'])return _0x219d2d;_0xf33fff=_0xf33fff['next'];}return{'type':'format','content':o(_0x2ce4ce,'*Set\x20format:*\x20%0',o(_0x2ce4ce,'ELEMENT_'+_0x4d8082['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x43d431=this['editor'],_0x3fdc5e=_0x43d431['locale'];_0x43d431['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4127f9=>{if('formatBlock'!=_0x4127f9['type'])return;const {data:_0xfb2d64}=_0x4127f9;if(!_0xfb2d64)return;let _0x36f511,_0x2b31fd;switch(_0xfb2d64['commandName']){case'listStyle':_0x36f511='*Change\x20to:*\x20%0',_0x2b31fd={'type':'format','content':o(_0x3fdc5e,_0x36f511,o(_0x3fdc5e,this['_getTranslationKeyForListStyle'](_0xfb2d64['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36f511=_0xfb2d64['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b31fd={'type':'format','content':o(_0x3fdc5e,_0x36f511)};break;case'listStart':_0x36f511='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b31fd={'type':'format','content':o(_0x3fdc5e,_0x36f511,_0xfb2d64['commandParams'][0x0]['startIndex'])};}return _0x2b31fd;});}['_getTranslationKeyForListStyle'](_0xeee38f){return'ELEMENT_'+function(_0x48aa87){if(Se['includes'](_0x48aa87))return'bulleted';if(_e['includes'](_0x48aa87))return'numbered';return null;}(_0xeee38f)['toUpperCase']()+'_LIST_'+_0xeee38f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x8725f3{['afterInit'](){const _0x2b15eb=this['editor'];_0x2b15eb['commands']['get']('emoji')&&_0x2b15eb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x8725f3{static get['requires'](){return[_0x33a875];}['init'](){const _0xaa4571=this['editor'],_0x2c787d=_0xaa4571['plugins']['get']('TrackChangesEditing'),_0x3c600f=_0xaa4571['commands']['get']('enter');_0x2c787d['enableCommand']('enter',()=>{_0xaa4571['model']['change'](_0xfc0bad=>{const _0x52bfba=_0xaa4571['model']['document']['selection'],_0x380860=_0x52bfba['getFirstPosition'](),_0x335695=_0x3e3f9b['fromRange'](_0x52bfba['getFirstRange']());if(_0x3c600f['enterBlock'](_0xfc0bad)){const _0x426720=_0xaa4571['model']['createPositionAt'](_0x380860['parent']['nextSibling'],0x0),_0x9f9f82=_0xfc0bad['createRange'](_0x380860,_0x426720);_0x2c787d['markInsertion'](_0x9f9f82);}else _0xfc0bad['setSelection'](_0xfc0bad['createRange'](_0x335695['end']));_0x335695['detach'](),_0x3c600f['fire']('afterExecute',{'writer':_0xfc0bad});});}),_0xaa4571['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xaa4571,'split'),{'priority':'high'}),_0xaa4571['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2a8622,_0x236d24,_0x1e0b80)=>{const _0x24bd5b=_0x1e0b80['mapper']['markerNameToElements'](_0x236d24['markerName']);if(_0x24bd5b){for(const _0x1aecd5 of _0x24bd5b)_0x1aecd5['hasClass']('ck-suggestion-marker-split')&&(_0x1e0b80['mapper']['unbindElementFromMarkerName'](_0x1aecd5,_0x236d24['markerName']),_0x1e0b80['writer']['remove'](_0x1aecd5));}},{'priority':'high'}),_0xaa4571['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x515b6d,_0x49278f,_0x48bf11)=>{_0x48bf11['options']['showSuggestionHighlights']&&De(_0xaa4571,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x515b6d,_0x49278f,_0x48bf11);},{'priority':'high'});}}class Q extends _0x8725f3{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x210dd7=this['editor']['plugins']['get']('TrackChangesEditing');_0x210dd7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x210dd7['enableCommand']('findNext'),_0x210dd7['enableCommand']('findPrevious'),_0x210dd7['enableCommand']('replace'),_0x210dd7['enableCommand']('replaceAll');}['handleFindCommand'](_0x54429d,_0x3b9087,_0x13d32a={}){const _0x1cc267=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x54429d(_0x125971=>{let _0x23daac=('string'==typeof _0x3b9087?_0x1cc267['findByTextCallback'](_0x3b9087,_0x13d32a):_0x3b9087)(_0x125971);Array['isArray'](_0x23daac)&&(_0x23daac={'results':_0x23daac,'searchText':'string'==typeof _0x3b9087?_0x3b9087:''});const _0x3d5722=_0x23daac['results']['filter'](_0x2e7ce8=>!0x1===this['_isInDeletionRange'](_0x2e7ce8,_0x125971['item']));return{..._0x23daac,'results':_0x3d5722};},_0x13d32a);}['_isInDeletionRange'](_0x196241,_0x5c4582){const _0x510d21=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c4582,_0x196241['start']),this['editor']['model']['createPositionAt'](_0x5c4582,_0x196241['end']));for(const _0x30a726 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x510d21['getIntersection'](_0x30a726['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x8725f3{['afterInit'](){const _0x585f2b=this['editor']['locale'],_0x3f8d64=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x347415,commandName:_0x3e28fd}of eo)this['editor']['plugins']['has'](_0x347415)&&(_0x3f8d64['enableDefaultAttributesIntegration'](_0x3e28fd),_0x3f8d64['registerInlineAttribute'](_0x3e28fd));_0x3f8d64['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x585f2b,'FORMAT_FONT_SIZE')),_0x3f8d64['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x585f2b,'FORMAT_FONT_FAMILY')),_0x3f8d64['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x585f2b,'FORMAT_FONT_COLOR')),_0x3f8d64['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x585f2b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b1d49=this['editor'],_0xd435a8=_0x3b1d49['locale'];_0x3b1d49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4328de=>{const _0x5d46a1=_0xd435a8['t'];if('formatInline'!=_0x4328de['type'])return;const {data:_0x11fbee}=_0x4328de;if(null!=_0x11fbee){if('fontSize'==_0x11fbee['commandName']){const _0x1502e7=_0x11fbee['commandParams'][0x0]['value'];if(_0x1502e7){const _0x274b0c=_0x5d46a1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5e7822=>_0x5e7822['model']==_0x1502e7)['title'])['toLowerCase']();return{'type':'format','content':o(_0xd435a8,'*Set\x20font\x20size:*\x20%0',_0x274b0c)};}return{'type':'format','content':o(_0xd435a8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x11fbee['commandName']){const _0x3bad0f=_0x11fbee['commandParams'][0x0]['value'];return _0x3bad0f?{'type':'format','content':o(_0xd435a8,'*Set\x20font\x20family:*\x20%0',_0x3bad0f)}:{'type':'format','content':o(_0xd435a8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x11fbee['commandName']){const _0x5c0e27=_0x11fbee['commandParams'][0x0]['value'];if(_0x5c0e27){const _0x891999=_0x13ed01(this['editor']['config']['get']('fontColor.colors'))['find'](_0x585498=>_0x585498['model']==_0x5c0e27);let _0x4f617c=_0x5c0e27,_0x919833='';return _0x891999&&(_0x4f617c=_0x891999['label'],_0x919833=_0x5d46a1(_0x4f617c)['toLowerCase']()),{'type':'format','content':o(_0xd435a8,'*Set\x20font\x20color:*\x20%0',_0x919833)['trim'](),'color':{'value':_0x5c0e27,'title':_0x919833||_0x4f617c}};}return{'type':'format','content':o(_0xd435a8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x11fbee['commandName']){const _0x283be0=_0x11fbee['commandParams'][0x0]['value'];if(_0x283be0){const _0x3f0914=_0x13ed01(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1ff107=>_0x1ff107['model']==_0x283be0);let _0x36ac80=_0x283be0,_0x1a45cd='';return _0x3f0914&&(_0x36ac80=_0x3f0914['label'],_0x1a45cd=_0x5d46a1(_0x36ac80)['toLowerCase']()),{'type':'format','content':o(_0xd435a8,'*Set\x20font\x20background\x20color:*\x20%0',_0x1a45cd)['trim'](),'color':{'value':_0x283be0,'title':_0x1a45cd||_0x36ac80}};}return{'type':'format','content':o(_0xd435a8,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x8725f3{['afterInit'](){const _0x35509c=this['editor'],_0x6c75ca=_0x35509c['plugins']['get']('TrackChangesEditing'),_0x27d84e=_0x35509c['commands']['get']('copyFormat'),_0xf577f6=_0x35509c['commands']['get']('pasteFormat');_0x27d84e&&_0xf577f6&&(_0x6c75ca['enableDefaultAttributesIntegration']('pasteFormat'),_0x6c75ca['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x203ed5=this['editor'],_0x3988f3=_0x203ed5['locale'];_0x203ed5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x485002=>{if('formatBlock'!=_0x485002['type']&&'formatInline'!=_0x485002['type'])return;const {data:_0x2c356d}=_0x485002;if(_0x2c356d&&'pasteFormat'===_0x2c356d['commandName']){const _0x1814cb=[],_0x448d6c=_0x2c356d['commandParams'][0x0];for(const [_0x24988a,_0x19b334]of Object['entries'](_0x448d6c))_0x1814cb['push'](ro(_0x203ed5,_0x24988a,_0x19b334));return _0x1814cb['length']?{'type':'format','content':o(_0x3988f3,'*Set\x20format\x20to:*\x20%0',_0x1814cb['join'](',\x20'))}:{'type':'format','content':o(_0x3988f3,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1b2df2,_0x264f63,_0x4f0221){const _0x53b1b2=_0x1b2df2['locale']['t'],_0x422bcb=_0x264f63['split'](/(?=[A-Z])/)['join']('\x20'),_0xab20ba=_0x53b1b2(_0x422bcb['charAt'](0x0)['toUpperCase']()+_0x422bcb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4f0221)return _0xab20ba;if('fontColor'===_0x264f63||'fontBackgroundColor'===_0x264f63){const _0x88887d=_0x13ed01(_0x1b2df2['config']['get']('fontColor.colors'))['find'](_0x2ced93=>_0x2ced93['model']==_0x4f0221);return _0xab20ba+'\x20('+(_0x88887d?_0x53b1b2(_0x88887d['label'])['toLowerCase']():_0x4f0221)+')';}if('fontSize'===_0x264f63&&isNaN(parseFloat(_0x4f0221))){const _0x18f727=_0x1b2df2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b2df2['config']['get']('fontSize.options'))['find'](_0x97ec56=>_0x97ec56['model']==_0x4f0221);return _0xab20ba+'\x20('+(_0x18f727?_0x53b1b2(_0x18f727['title'])['toLowerCase']():_0x4f0221)+')';}return _0xab20ba+'\x20('+_0x4f0221+')';}class Z extends _0x8725f3{['_headingOptions'];['afterInit'](){const _0x120e04=this['editor'];if(!_0x120e04['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x120e04['config']['get']('heading.options');const _0x222d3b=_0x120e04['locale'],_0x51c4a1=_0x120e04['plugins']['get']('TrackChangesEditing');_0x51c4a1['enableDefaultAttributesIntegration']('heading');for(const _0x56822c of this['_headingOptions'])'paragraph'!=_0x56822c['model']&&_0x51c4a1['descriptionFactory']['registerElementLabel'](_0x56822c['model'],_0x19ca15=>{const _0x228899=this['_getHeadingLevel'](_0x56822c['model']);return null!==_0x228899?_0x146105(_0x19ca15,_0x228899):_0x197552(_0x19ca15,_0x56822c['title']);});function _0x146105(_0x4a772f,_0x1b3498){return o(_0x222d3b,'ELEMENT_HEADING',[_0x4a772f,_0x1b3498]);}function _0x197552(_0x5efd6c,_0x704d78){return o(_0x222d3b,'ELEMENT_HEADING_CUSTOM',[_0x5efd6c,_0x704d78]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x472729=this['editor'],_0x231bec=_0x472729['locale'];function _0x4db30b(_0x47561c,_0x279d09){return o(_0x231bec,'ELEMENT_HEADING_CUSTOM',[_0x47561c,_0x279d09]);}_0x472729['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b1bf8=>{if('formatBlock'!=_0x4b1bf8['type'])return;const {data:_0xff5457}=_0x4b1bf8;if(_0xff5457&&'heading'==_0xff5457['commandName']){const _0x59bb00=_0xff5457['commandParams'][0x0]['value'],_0xa9d9c4=this['_getHeadingLevel'](_0x59bb00);if(null!==_0xa9d9c4)return{'type':'format','content':o(_0x231bec,'*Change\x20to:*\x20%0',(_0x3f267c=0x1,_0x44efb8=_0xa9d9c4,o(_0x231bec,'ELEMENT_HEADING',[_0x3f267c,_0x44efb8])))};const _0x235932=this['_headingOptions']['find'](_0x7e654b=>_0x7e654b['model']===_0x59bb00)['title'];return{'type':'format','content':o(_0x231bec,'*Change\x20to:*\x20%0',_0x4db30b(0x1,_0x235932))};}var _0x3f267c,_0x44efb8;});}['_getHeadingLevel'](_0x3cedfa){const _0x2f67bb=_0x3cedfa['match'](/^heading(\d+)/);if(_0x2f67bb)return _0x2f67bb[0x1];const _0x1dc258=this['_headingOptions']?.['find'](_0xa90ca4=>_0xa90ca4['model']==_0x3cedfa);if(_0x1dc258&&_0x1dc258['view']){const _0xa4f769=_0x1dc258['view'],_0x270654=(_0xa4f769['name']??_0xa4f769)['match'](/^h(\d+)/);if(_0x270654)return _0x270654[0x1];}return null;}}class tt extends _0x8725f3{['afterInit'](){const _0x53637f=this['editor'];if(!_0x53637f['plugins']['has']('HighlightEditing'))return;const _0x4a9513=_0x53637f['plugins']['get']('TrackChangesEditing'),_0x21218c=_0x53637f['locale'];_0x4a9513['enableDefaultAttributesIntegration']('highlight'),_0x4a9513['registerInlineAttribute']('highlight'),_0x4a9513['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x21218c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2867cd=this['editor'],_0x4fd40f=_0x2867cd['locale'];_0x2867cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37ea68=>{if('formatInline'!=_0x37ea68['type'])return;const {data:_0x5661f9}=_0x37ea68;if(_0x5661f9&&'highlight'==_0x5661f9['commandName']){const _0x322660=_0x4fd40f['t'],_0x709d32=_0x5661f9['commandParams'][0x0]['value'];if(_0x709d32){const _0x374040=_0x2867cd['config']['get']('highlight.options')['find'](_0xdd1195=>_0xdd1195['model']==_0x709d32),_0x21f436=_0x322660(_0x374040['title'])['toLowerCase']();return{'type':'format','content':o(_0x4fd40f,'*Set\x20highlight:*\x20%0',_0x21f436),'color':{'value':_0x374040['color'],'title':_0x374040['title']}};}return{'type':'format','content':o(_0x4fd40f,'*Remove\x20highlight*',o(_0x4fd40f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x8725f3{['afterInit'](){const _0x38bfd4=this['editor'];if(!_0x38bfd4['plugins']['has']('HorizontalLineEditing'))return;_0x38bfd4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xef14d2=_0x38bfd4['plugins']['get']('TrackChangesEditing'),_0x3ba134=_0x38bfd4['locale'];_0xef14d2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x124be8=>o(_0x3ba134,'ELEMENT_HORIZONTAL_LINE',_0x124be8)),_0x38bfd4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x11cdab,{writer:_0x3bb413,options:_0x5ef6fc})=>{if(!_0x5ef6fc['showSuggestionHighlights'])return null;const _0x569983=_0x3bb413['createContainerElement']('div'),_0x4547a1=_0x3bb413['createEmptyElement']('hr');return _0x3bb413['addClass']('ck-horizontal-line',_0x569983),_0x3bb413['insert'](_0x3bb413['createPositionAt'](_0x569983,0x0),_0x4547a1),_0x569983;},'converterPriority':'high'});}}class nt extends _0x8725f3{['afterInit'](){const _0xf8bde8=this['editor'];if(!_0xf8bde8['plugins']['has']('HtmlEmbed'))return;const _0x5dfd7f=_0xf8bde8['plugins']['get']('TrackChangesEditing'),_0x4c3501=_0xf8bde8['locale'];_0x5dfd7f['descriptionFactory']['registerElementLabel']('rawHtml',_0x5a485a=>o(_0x4c3501,'ELEMENT_HTML_EMBED',_0x5a485a)),_0x5dfd7f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5dfd7f['registerBlockAttribute']('value'),_0x5dfd7f['descriptionFactory']['registerDescriptionCallback'](_0x483e6c=>{if('attribute'!=_0x483e6c['type'])return;const {data:_0x55c821}=_0x483e6c;if(_0x55c821&&'value'==_0x55c821['key']&&_0x483e6c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x475c50=o(_0x4c3501,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4c3501,'*Change\x20%0\x20content*',_0x475c50)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x105bf5=this['editor'],_0x1461f4=_0x105bf5['locale'];_0x105bf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f802e=>{if('formatBlock'!=_0x1f802e['type'])return;const {data:_0x3a659b}=_0x1f802e;if(_0x3a659b&&'htmlEmbed'==_0x3a659b['commandName']){const _0x2ce7cf=o(_0x1461f4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1461f4,'*Change\x20%0\x20content*',_0x2ce7cf)};}});}}class et extends _0x8725f3{['afterInit'](){const _0x430915=this['editor'];if(!_0x430915['plugins']['has']('ImageEditing'))return;const _0x18f640=_0x430915['plugins']['get']('TrackChangesEditing'),_0x246192=_0x430915['plugins']['get']('ImageUtils'),_0x1c7e51=_0x430915['locale'];_0x18f640['enableCommand']('insertImage'),_0x18f640['descriptionFactory']['registerElementLabel']('imageBlock',_0x41a094=>o(_0x1c7e51,'ELEMENT_IMAGE',_0x41a094)),_0x18f640['descriptionFactory']['registerElementLabel']('imageInline',_0x56c703=>o(_0x1c7e51,'ELEMENT_INLINE_IMAGE',_0x56c703)),_0x18f640['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1c7e51,'ELEMENT_CAPTION')),_0x430915['plugins']['has']('ImageUploadEditing')&&_0x18f640['enableCommand']('uploadImage'),_0x430915['plugins']['has']('ImageBlockEditing')&&_0x430915['plugins']['has']('ImageInlineEditing')&&(_0x18f640['enableCommand']('imageTypeInline',(_0x1a765c,_0x2f7860)=>{const _0x47acf8=_0x246192['getClosestSelectedImageElement'](_0x430915['model']['document']['selection']);_0x430915['model']['change'](()=>{_0x18f640['markBlockFormat'](_0x47acf8,{'commandName':'imageTypeInline','commandParams':[_0x2f7860]},[],'convertBlockImageToInline');});}),_0x18f640['enableCommand']('imageTypeBlock',(_0xc9f583,_0x53eb45)=>{_0x430915['model']['change'](_0x3301a9=>{let _0x2bab79=_0x246192['getClosestSelectedImageElement'](_0x430915['model']['document']['selection']),_0x408f81=_0x3301a9['createRangeOn'](_0x2bab79);const _0x322d8e=_0x5ebc95['fromPosition'](_0x408f81['start'],'toPrevious'),_0x60ba04=_0x5ebc95['fromPosition'](_0x408f81['end'],'toNext');_0x18f640['forceDefaultExecution'](()=>_0xc9f583(_0x53eb45)),_0x2bab79=_0x246192['getClosestSelectedImageElement'](_0x430915['model']['document']['selection']),_0x408f81=_0x3301a9['createRangeOn'](_0x2bab79);const _0x19cacb=_0x3301a9['createRange'](_0x322d8e,_0x60ba04);_0x322d8e['detach'](),_0x60ba04['detach'](),_0x18f640['markBlockFormat'](_0x2bab79,{'commandName':'imageTypeInline','commandParams':[_0x53eb45]},[],'convertInlineImageToBlock'),_0x19cacb['start']['isBefore'](_0x408f81['start'])&&_0x18f640['markInsertion'](_0x3301a9['createRange'](_0x19cacb['start'],_0x408f81['start']),'convertInlineImageToBlock'),_0x408f81['end']['isBefore'](_0x19cacb['end'])&&_0x18f640['markInsertion'](_0x3301a9['createRange'](_0x408f81['end'],_0x19cacb['end']),'convertInlineImageToBlock');});}),_0x18f640['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x18f640['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x18f640['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x18f640['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x18f640['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x18f640['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1a9298])=>{const _0x3b24f7=_0x18f640['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x16da7f=_0x1a9298['start'],_0xd3d758=_0x1a9298['end'];const _0x1b3322=_0x430915['model']['schema']['getNearestSelectionRange'](_0x16da7f,'backward'),_0x164b85=_0x430915['model']['schema']['getNearestSelectionRange'](_0xd3d758,'forward');_0x1b3322['isCollapsed']&&(_0x16da7f=_0x1b3322['start']),_0x164b85['isCollapsed']&&(_0xd3d758=_0x164b85['end']),_0x3b24f7([_0x430915['model']['createRange'](_0x16da7f,_0xd3d758)]);}),_0x18f640['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3386d1),_0x18f640['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3386d1)),_0x430915['plugins']['has']('ImageCaptionEditing')&&(_0x18f640['enableCommand']('toggleImageCaption',(_0x4f52ba,_0x4760bf)=>{const _0x1a09e8=_0x430915['plugins']['get']('ImageCaptionUtils');let _0x202c0a=_0x246192['getClosestSelectedImageElement'](_0x430915['model']['document']['selection']),_0x25cb17=_0x1a09e8['getCaptionFromImageModelElement'](_0x202c0a);_0x430915['model']['change'](()=>{if(_0x25cb17)return void _0x18f640['markDeletion'](_0x430915['model']['createRangeOn'](_0x25cb17));const _0x10e43b=_0x246192['isBlockImage'](_0x202c0a);_0x4f52ba(_0x4760bf),_0x202c0a=_0x246192['getClosestSelectedImageElement'](_0x430915['model']['document']['selection']),_0x25cb17=_0x1a09e8['getCaptionFromImageModelElement'](_0x202c0a),_0x18f640['markInsertion'](_0x430915['model']['createRangeOn'](_0x25cb17),_0x10e43b?null:'imageCaption');});}),_0x18f640['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3386d1));const _0x23ed0e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x154b79(_0x58a1d6,_0x6c5c5){const _0x1c6497=_0x23ed0e['findIndex'](({type:_0x29ee41,subType:_0x486843})=>_0x58a1d6['type']==_0x29ee41&&_0x58a1d6['subType']==_0x486843),_0x46f360=_0x23ed0e['findIndex'](({type:_0x4b830a,subType:_0x5ea85c})=>_0x6c5c5['type']==_0x4b830a&&_0x6c5c5['subType']==_0x5ea85c);if(_0x1c6497<0x0||_0x46f360<0x0)return!0x1;const _0x1da8b9=_0x58a1d6['getFirstRange'](),_0x8f026f=_0x6c5c5['getFirstRange']();if((0x0==_0x1c6497||0x1==_0x1c6497)&&0x2==_0x46f360&&_0x1da8b9['isIntersecting'](_0x8f026f))return!0x0;if(0x2==_0x1c6497&&0x3==_0x46f360){const _0x2c38c6=_0x18f640['_findSuggestions'](_0x1da8b9,'insertion')['filter'](({suggestion:_0x212a75,meta:_0x528fc8})=>_0x528fc8['isOwn']&&'convertInlineImageToBlock'==_0x212a75['subType']);if(_0x2c38c6['length']>0x1&&_0x8f026f['end']['isEqual'](_0x1da8b9['start']))return!0x0;if(0x1==_0x2c38c6['length']&&(_0x1da8b9['start']['isEqual'](_0x8f026f['end'])||_0x1da8b9['end']['isEqual'](_0x8f026f['start'])))return!0x0;}if(0x3==_0x1c6497&&0x3==_0x46f360&&_0x1da8b9['start']['isBefore'](_0x8f026f['start'])){const _0x2a44b8=_0x1da8b9['end']['nodeAfter'],_0x447cd8=_0x8f026f['start']['nodeBefore'];return _0x246192['isBlockImage'](_0x2a44b8)&&_0x2a44b8===_0x447cd8;}return!0x1;}function _0x3386d1(_0x5cc7e0,_0x23cf2b){return _0x154b79(_0x5cc7e0,_0x23cf2b)?[_0x5cc7e0,_0x23cf2b]:_0x154b79(_0x23cf2b,_0x5cc7e0)?[_0x23cf2b,_0x5cc7e0]:null;}_0x430915['plugins']['has']('ImageResize')&&(_0x18f640['enableDefaultAttributesIntegration']('resizeImage'),_0x18f640['registerBlockAttribute']('resizedWidth'),_0x18f640['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1c7e51,'FORMAT_IMAGE_SIZE'))),_0x430915['plugins']['has']('ImageTextAlternativeEditing')&&(_0x18f640['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x18f640['registerBlockAttribute']('alt')),_0x430915['plugins']['has']('PictureEditing')&&(_0x18f640['registerBlockAttribute']('sources'),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0x1a92be=>{if('attribute'!=_0x1a92be['type'])return;const {data:_0x3429e4}=_0x1a92be;return _0x3429e4&&'sources'==_0x3429e4['key']?{'type':'format','content':''}:void 0x0;})),_0x430915['plugins']['has']('ImageSizeAttributes')&&(_0x18f640['registerBlockAttribute']('width'),_0x18f640['registerBlockAttribute']('height'),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0x1e1c97=>{if('attribute'!=_0x1e1c97['type'])return;const {data:_0x3e0651}=_0x1e1c97;return!_0x3e0651||'width'!=_0x3e0651['key']&&'height'!=_0x3e0651['key']?void 0x0:{'type':'format','content':''};})),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0x485909=>{if(!!_0x23ed0e['find'](({type:_0x33fe90,subType:_0x2e72e6})=>_0x485909['type']==_0x33fe90&&_0x485909['subType']==_0x2e72e6))return _0x485909['previous']?{}:void 0x0;}),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0x258b6a=>{if('insertion'==_0x258b6a['type']||'deletion'==_0x258b6a['type']){const _0x492497=_0x258b6a['getContainedElement']();if(_0x492497&&_0x492497['is']('element','caption'))return{'type':'insertion'==_0x258b6a['type']?'addObject':'removeObject','element':_0x492497,'quantity':0x1};}}),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0x228ebd=>'formatBlock'==_0x228ebd['type']&&'convertInlineImageToBlock'==_0x228ebd['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x228ebd['type']&&'convertBlockImageToInline'==_0x228ebd['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0xdd31c6=>{if('attribute'!=_0xdd31c6['type'])return;const {data:_0x4fe6db}=_0xdd31c6;if(!_0x4fe6db||'alt'!=_0x4fe6db['key'])return;const _0x1d369a=_0x4fe6db['newValue'];return _0x1d369a?{'type':'format','content':o(_0x1c7e51,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d369a+'\x22')}:{'type':'format','content':o(_0x1c7e51,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19a2b0=this['editor'],_0x4df3bc=_0x19a2b0['locale'];_0x19a2b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f8c92=>{if('formatBlock'!=_0x3f8c92['type']&&'formatInline'!=_0x3f8c92['type'])return;const {data:_0x5c1782}=_0x3f8c92;if(_0x5c1782){if('imageTextAlternative'==_0x5c1782['commandName']){const _0x199a8e=_0x5c1782['commandParams'][0x0]['newValue'];return _0x199a8e?{'type':'format','content':o(_0x4df3bc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x199a8e+'\x22')}:{'type':'format','content':o(_0x4df3bc,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5c1782['commandName']){const _0x32138d=_0x5c1782['commandParams'][0x0]['width'];return _0x32138d?{'type':'format','content':o(_0x4df3bc,'*Set\x20image\x20width:*\x20%0',_0x32138d)}:{'type':'format','content':o(_0x4df3bc,'*Reset\x20image\x20width*')};}}});}}class st extends _0x8725f3{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5de266=this['editor']['locale'],_0x31a4ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x31a4ca['enableDefaultAttributesIntegration']('replaceImageSource'),_0x31a4ca['registerBlockAttribute']('src'),_0x31a4ca['descriptionFactory']['registerDescriptionCallback'](_0x2eafd2=>{if('attribute'!=_0x2eafd2['type'])return;const {data:_0x3e962e}=_0x2eafd2;return _0x3e962e&&'src'==_0x3e962e['key']?_0x3e962e['newValue']&&_0x3e962e['oldValue']?{'type':'format','content':o(_0x5de266,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50bafe=this['editor']['plugins']['get']('TrackChangesEditing');_0x50bafe['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x50bafe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50bafe['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x50bafe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c1c59=this['editor'],_0x3d65e7=_0x4c1c59['locale'];_0x4c1c59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222754=>{if('formatBlock'!=_0x222754['type']&&'formatInline'!=_0x222754['type'])return;const {data:_0x1ef6b1}=_0x222754;if(!_0x1ef6b1||'replaceImageSource'!=_0x1ef6b1['commandName'])return;return{'type':'format','content':o(_0x3d65e7,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x8725f3{['afterInit'](){const _0x2b757f=this['editor'];if(!_0x2b757f['plugins']['has']('ImageStyleEditing'))return;const _0x3f8198=_0x2b757f['plugins']['get']('TrackChangesEditing'),_0x11a6bf=_0x2b757f['plugins']['get']('ImageUtils'),_0x1aa7e4={};_0x3f8198['enableCommand']('imageStyle',(_0x54fbaf,_0x438c28)=>{const _0x32c940=_0x2b757f['plugins']['get']('Users')['me'],_0x5126a5=_0x2b757f['commands']['get']('imageStyle');let _0x41cd3b=_0x11a6bf['getClosestSelectedImageElement'](_0x2b757f['model']['document']['selection']),_0x516e47=_0x2b757f['model']['createRangeOn'](_0x41cd3b),_0x441cb4=_0x5126a5['value'];if(_0x441cb4==_0x438c28['value'])return;const _0x569a49={'commandName':'imageStyle','commandParams':[_0x438c28],'formatGroupId':_0xd0f9be()};_0x2b757f['model']['change'](()=>{if(_0x3f8198['getSuggestions']()['filter'](_0x435334=>_0x435334['isInContent']&&_0x32c940==_0x435334['author']&&('formatBlock'==_0x435334['type']||'formatInline'==_0x435334['type'])&&('imageStylePreApply'==_0x435334['subType']||'imageStylePostApply'==_0x435334['subType'])&&_0x435334['getFirstRange']()['isEqual'](_0x516e47))['forEach'](_0x1b2e6a=>_0x3f8198['discardSuggestion'](_0x1b2e6a['head'])),_0x41cd3b=_0x11a6bf['getClosestSelectedImageElement'](_0x2b757f['model']['document']['selection']),_0x516e47=_0x2b757f['model']['createRangeOn'](_0x41cd3b),_0x5126a5['refresh'](),_0x2b757f['commands']['get']('imageTypeInline')['refresh'](),_0x2b757f['commands']['get']('imageTypeBlock')['refresh'](),_0x441cb4=_0x5126a5['value'],_0x441cb4!=_0x438c28['value'])return _0x11a6bf['isInlineImage'](_0x41cd3b)&&_0x5126a5['shouldConvertImageType'](_0x438c28['value'],_0x41cd3b)?(_0x54fbaf({..._0x438c28,'setImageSizes':!0x1}),_0x41cd3b=_0x11a6bf['getClosestSelectedImageElement'](_0x2b757f['model']['document']['selection']),void _0x3f8198['markBlockFormat'](_0x41cd3b,{..._0x569a49,'commandReversedParams':[{'value':_0x441cb4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x11a6bf['isBlockImage'](_0x41cd3b)?_0x3f8198['markBlockFormat'](_0x41cd3b,_0x569a49,[],'imageStylePostApply'):_0x3f8198['markInlineFormat'](_0x516e47,_0x569a49,'imageStylePostApply'));});});for(const _0x94a831 of _0x2b757f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1aa7e4[_0x94a831['name']]=_0x94a831['title']['toLowerCase']();_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x570312])=>{_0x11a6bf['setImageNaturalSizeAttributes'](_0x570312['getContainedElement']());}),_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5eb075,_0x12bc7e)=>{_0x3f8198['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5eb075,{'commandName':_0x12bc7e['commandName'],'commandParams':_0x12bc7e['commandReversedParams']});}),_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xc61a3,_0x4e2429){if(_0x16658a(_0xc61a3,_0x4e2429))return[_0xc61a3,_0x4e2429];if(_0x16658a(_0x4e2429,_0xc61a3))return[_0x4e2429,_0xc61a3];return null;});const _0x96dff5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x16658a(_0x5e2b36,_0x22c15b){const _0xdcc9e1=_0x96dff5['findIndex'](({type:_0x12595b,subType:_0x4c08e3})=>_0x5e2b36['type']==_0x12595b&&_0x5e2b36['subType']==_0x4c08e3),_0x25effe=_0x96dff5['findIndex'](({type:_0x371b9b,subType:_0xb7e94a})=>_0x22c15b['type']==_0x371b9b&&_0x22c15b['subType']==_0xb7e94a);if(_0xdcc9e1<0x0||_0x25effe<0x0)return!0x1;const _0x4b7d9a=_0x5e2b36['getFirstRange'](),_0x50e1f2=_0x22c15b['getFirstRange']();if((0x0==_0xdcc9e1||0x1==_0xdcc9e1)&&0x2==_0x25effe&&_0x4b7d9a['isIntersecting'](_0x50e1f2))return!0x0;if(0x2==_0xdcc9e1&&0x3==_0x25effe){const _0x2c4eaa=_0x3f8198['_findSuggestions'](_0x4b7d9a,'insertion')['filter'](({suggestion:_0x66e0d9,meta:_0x4afc12})=>_0x4afc12['isOwn']&&'convertInlineImageToBlock'==_0x66e0d9['subType']);if(_0x2c4eaa['length']>0x1&&_0x50e1f2['end']['isEqual'](_0x4b7d9a['start']))return!0x0;if(0x1==_0x2c4eaa['length']&&(_0x4b7d9a['start']['isEqual'](_0x50e1f2['end'])||_0x4b7d9a['end']['isEqual'](_0x50e1f2['start'])))return!0x0;}if(0x3==_0xdcc9e1&&0x3==_0x25effe&&_0x4b7d9a['start']['isBefore'](_0x50e1f2['start'])){const _0x340014=_0x4b7d9a['end']['nodeAfter'],_0x501f5b=_0x50e1f2['start']['nodeBefore'];return _0x11a6bf['isBlockImage'](_0x340014)&&_0x340014===_0x501f5b;}return!0x1;}_0x2b757f['model']['document']['registerPostFixer'](()=>{let _0xc1701e=!0x1;const _0x2822ac=Array['from'](_0x2b757f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28817d,data:_0x1d3a57}of _0x2822ac){const {group:_0x17767e,type:_0x5e059,subType:_0x4fbdb3,id:_0x215a01}=_0x3f8198['_splitMarkerName'](_0x28817d);if('suggestion'==_0x17767e&&_0x3f8198['hasSuggestion'](_0x215a01)){if('formatBlock'==_0x5e059&&('imageStylePreApply'==_0x4fbdb3||'imageStylePostApply'==_0x4fbdb3)){const _0x395558=_0x3f8198['getSuggestion'](_0x215a01);if(_0x1d3a57['newRange']){const _0x265f1b=_0x395558['getFirstRange']()['getContainedElement']();if(_0x11a6bf['isBlockImage'](_0x265f1b))continue;_0x3f8198['discardSuggestion'](_0x395558),_0xc1701e=!0x0;}}if('insertion'==_0x5e059&&'imageCaption'==_0x4fbdb3&&!_0x1d3a57['newRange']){const _0x532d64=_0x3f8198['getSuggestion'](_0x215a01);_0x532d64['next']&&_0x532d64['next']['isInContent']&&(_0x3f8198['discardSuggestion'](_0x532d64['next']),_0xc1701e=!0x0);}}}return _0xc1701e;}),this['_registerLegacyDescription'](_0x1aa7e4);}['_registerLegacyDescription'](_0x244dbd){const _0x2113f9=this['editor'],_0x5b1665=_0x2113f9['locale'];_0x2113f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57abaa=>{if('formatBlock'!=_0x57abaa['type']&&'formatInline'!=_0x57abaa['type'])return;const {data:_0x4c24e9}=_0x57abaa;if(!_0x4c24e9||'imageStyle'!=_0x4c24e9['commandName'])return;const _0x4a1832=_0x4c24e9['commandParams'][0x0]['value'];return _0x3a916e('side'===_0x4a1832?o(_0x5b1665,'FORMAT_SIDE_IMAGE'):_0x244dbd[_0x4a1832]||_0x4a1832);function _0x3a916e(_0x2db7fb){return{'type':'format','content':o(_0x5b1665,'*Format:*\x20%0',_0x2db7fb)};}});}}class rt extends _0x8725f3{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5a44de){super(_0x5a44de),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1f2bae=this['editor'],_0x13ec6f=_0x1f2bae['commands']['get']('importWord'),_0x185ec8=_0x1f2bae['commands']['get']('trackChanges');_0x13ec6f&&(_0x13ec6f['on']('execute',(_0x5a8b53,[,_0x48736d])=>{this['_trackChangesValueDuringImport']=_0x185ec8['value'],_0x48736d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x13ec6f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x13ec6f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x185ec8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f2bae['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x226961,_0xee309d){const {suggestions:_0x201529}=_0xee309d,_0x2ebc75=this['editor']['commands']['get']('trackChanges'),_0x2f663e=_0x2ebc75['value'];this['_trackChangesValueDuringImport']!==_0x2f663e&&(_0x2ebc75['execute'](),this['_trackChangesExecuted']=!0x0),_0x201529&&_0x201529['forEach'](({id:_0x143977,type:_0x430319,author:_0x3de9a3,created_at:_0x9f8940})=>{const _0x99dd40={'id':_0x143977,'type':_0x430319,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3de9a3,'createdAt':_0x9f8940?new Date(_0x9f8940):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x99dd40);});}}class at extends _0x8725f3{['afterInit'](){const _0x133af7=this['editor'],_0x1cf589=_0x133af7['plugins']['get']('TrackChangesEditing');if(_0x133af7['plugins']['has']('IndentEditing')&&(_0x1cf589['enableCommand']('indent'),_0x1cf589['enableCommand']('outdent')),_0x133af7['plugins']['has']('IndentBlock')){for(const _0x532dd1 of['indentBlock','outdentBlock'])_0x1cf589['enableDefaultAttributesIntegration'](_0x532dd1);}const _0x238ecc=_0x133af7['locale'];_0x1cf589['registerBlockAttribute']('blockIndent'),_0x1cf589['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x238ecc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf91cd=this['editor'],_0x17d86b=_0xcf91cd['locale'],_0x12ea55=_0xcf91cd['plugins']['get']('TrackChangesEditing');_0x12ea55['descriptionFactory']['registerDescriptionCallback'](_0x1660f8=>{if('formatBlock'!=_0x1660f8['type'])return;const {data:_0x3d32c3}=_0x1660f8;if(!_0x3d32c3)return;if('indentBlock'!=_0x3d32c3['commandName']&&'outdentBlock'!=_0x3d32c3['commandName'])return;const _0xc52f27=_0x1660f8['getItems']()[0x0],_0x14c316=_0x12ea55['descriptionFactory']['getItemLabel'](_0xc52f27);return'indentBlock'==_0x3d32c3['commandName']?{'type':'format','content':o(_0x17d86b,'*Indent:*\x20%0',_0x14c316)}:'outdentBlock'==_0x3d32c3['commandName']?{'type':'format','content':o(_0x17d86b,'*Outdent:*\x20%0',_0x14c316)}:void 0x0;});}}class ct extends _0x8725f3{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x8725f3{['afterInit'](){const _0x46a1af=this['editor'];if(!_0x46a1af['plugins']['has']('LinkEditing'))return;const _0xb0a204=_0x46a1af['plugins']['get']('TrackChangesEditing'),_0x37efe8=_0x46a1af['commands']['get']('link');_0xb0a204['enableDefaultAttributesIntegration']('link'),_0xb0a204['enableDefaultAttributesIntegration']('unlink'),_0xb0a204['registerInlineAttribute']('linkHref');for(const _0x16ce00 of _0x37efe8['manualDecorators'])_0xb0a204['registerInlineAttribute'](_0x16ce00['id']),_0xb0a204['descriptionFactory']['registerAttributeLabel'](_0x16ce00['id'],'link\x20('+_0x16ce00['label']['toLowerCase']()+')');_0xb0a204['descriptionFactory']['registerDescriptionCallback'](_0x4cbca0=>{if('attribute'!=_0x4cbca0['type'])return;const {data:_0x1d7a29}=_0x4cbca0;if(!_0x1d7a29||'linkHref'!=_0x1d7a29['key'])return;const _0x80dd5d=_0x1d7a29['newValue'],_0x3f41fc=_0x46a1af['locale'];return{'type':'format','content':null==_0x80dd5d?o(_0x3f41fc,'*Remove\x20link*'):o(_0x3f41fc,'*Set\x20link:*\x20%0','\x22'+_0x80dd5d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c2f76=this['editor'],_0x4ac9dc=_0x1c2f76['locale'];_0x1c2f76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c61fc=>{if('formatInline'!=_0x4c61fc['type'])return;const {data:_0x3ef3da}=_0x4c61fc;if(_0x3ef3da){if('link'==_0x3ef3da['commandName']){const _0x2aac75=_0x3ef3da['commandParams'][0x0];return{'type':'format','content':o(_0x4ac9dc,'*Set\x20link:*\x20%0','\x22'+_0x2aac75+'\x22')};}return'unlink'==_0x3ef3da['commandName']?{'type':'format','content':o(_0x4ac9dc,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x8725f3{['afterInit'](){const _0x166d1c=this['editor'],_0x5cfdf1=_0x166d1c['locale'];if(!_0x166d1c['plugins']['has']('LegacyListEditing'))return;const _0x22ff3f=_0x166d1c['plugins']['get']('TrackChangesEditing'),_0x2deb59=_0x166d1c['plugins']['has']('LegacyTodoListEditing');function _0x471182(_0x689c49){return()=>{const _0x5b3f0a=_0x166d1c['model']['document']['selection'],_0x5ca7ec=_0x166d1c['commands']['get'](_0x689c49);if(_0x5ca7ec['value'])return void _0x166d1c['execute']('paragraph',{});const _0x190342=_0x689c49['slice'](0x0,-0x4),_0x482bb1=function(_0x1e1e7a,_0x565586,_0x37debb){let _0x4dd033=Array['from'](_0x1e1e7a)['filter'](_0x5c5444=>function(_0x23add7,_0x159d58){return _0x159d58['checkChild'](_0x23add7['parent'],'listItem')&&!_0x159d58['isObject'](_0x23add7);}(_0x5c5444,_0x37debb));_0x4dd033=_0x4dd033['filter'](_0x4b3270=>!_0x4b3270['is']('element','listItem')||_0x4b3270['getAttribute']('listType')!=_0x565586);const _0x2daa39=new Set();for(const _0x1033ee of _0x4dd033)_0x1033ee['is']('element','listItem')?_0x2daa39['add'](Le(_0x1033ee)):_0x2daa39['add'](_0x1033ee);return Array['from'](_0x2daa39);}(_0x5b3f0a['getSelectedBlocks'](),_0x190342,_0x166d1c['model']['schema']);_0x166d1c['model']['change'](()=>{for(const _0x558b97 of _0x482bb1)_0x22ff3f['markBlockFormat'](_0x558b97,{'commandName':_0x689c49,'commandParams':[{'forceValue':!_0x5ca7ec['value']}],'formatGroupId':'blockName'},Ee(_0x558b97));});};}function _0x2315dc(_0x4d64c7){return()=>{const _0x4e89f1=function(_0x57cca2){let _0x3a9c29=Array['from'](_0x57cca2);const _0x106f89=_0x3a9c29['findIndex'](_0x4e2411=>'listItem'!=_0x4e2411['name']);return _0x106f89>-0x1&&(_0x3a9c29=_0x3a9c29['slice'](0x0,_0x106f89)),_0x3a9c29;}(_0x166d1c['model']['document']['selection']['getSelectedBlocks']()),_0x5e6c21=_0x166d1c['model']['createRange'](_0x166d1c['model']['createPositionAt'](_0x4e89f1[0x0],'before'),_0x166d1c['model']['createPositionAt'](_0x4e89f1[_0x4e89f1['length']-0x1],'end'));_0x166d1c['model']['change'](()=>{_0x22ff3f['markBlockFormat'](_0x5e6c21,{'commandName':_0x4d64c7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3fd740){const _0x59459c=new Set();for(const _0x2f70fd of _0x3fd740){let _0x1f0e34=_0x2f70fd['nextSibling'];for(;_0x1f0e34&&_0x1f0e34['getAttribute']('listIndent')>_0x2f70fd['getAttribute']('listIndent');)_0x59459c['add'](_0x1f0e34),_0x1f0e34=_0x1f0e34['nextSibling'];}return Array['from'](_0x59459c);}(_0x4e89f1));});};}_0x22ff3f['enableCommand']('numberedList',_0x471182('numberedList')),_0x22ff3f['enableCommand']('bulletedList',_0x471182('bulletedList')),_0x2deb59&&_0x22ff3f['enableCommand']('todoList',_0x471182('todoList')),_0x22ff3f['enableCommand']('indentList',_0x2315dc('indentList')),_0x22ff3f['enableCommand']('outdentList',_0x2315dc('outdentList')),_0x2deb59&&_0x22ff3f['enableCommand']('checkTodoList',()=>{const _0x63f6cc=_0x166d1c['commands']['get']('checkTodoList'),_0x4038d9=Array['from'](_0x63f6cc['_selectedElements']);_0x4038d9['filter'](_0x1fe8e9=>_0x1fe8e9['getAttribute']('todoListChecked')!=_0x63f6cc['value']),_0x166d1c['model']['change'](()=>{for(const _0x58c860 of _0x4038d9)_0x22ff3f['markBlockFormat'](_0x58c860,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x63f6cc['value']}]});});}),_0x22ff3f['descriptionFactory']['registerElementLabel']('listItem',_0xcb95f7=>o(_0x5cfdf1,'ELEMENT_LIST_ITEM',_0xcb95f7)),_0x22ff3f['descriptionFactory']['registerDescriptionCallback'](_0x58ff15=>{if('formatBlock'!=_0x58ff15['type']&&'formatInline'!=_0x58ff15['type'])return;const {data:_0x273c37}=_0x58ff15;if(_0x273c37){if('numberedList'==_0x273c37['commandName']||'bulletedList'==_0x273c37['commandName']||'todoList'==_0x273c37['commandName'])switch(_0x273c37['commandName']['replace']('List','')){case'bulleted':return _0x45f867(o(_0x5cfdf1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45f867(o(_0x5cfdf1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45f867(o(_0x5cfdf1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x273c37['commandName'])return{'type':'format','content':o(_0x5cfdf1,'*Indent:*\x20%0',o(_0x5cfdf1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x273c37['commandName'])return{'type':'format','content':o(_0x5cfdf1,'*Outdent:*\x20%0',o(_0x5cfdf1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x273c37['commandName'])return _0x273c37['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cfdf1,'*Check\x20item*')}:{'type':'format','content':o(_0x5cfdf1,'*Uncheck\x20item*')};}function _0x45f867(_0x28cd72){return{'type':'format','content':o(_0x5cfdf1,'*Change\x20to:*\x20%0',_0x28cd72)};}});}}function Le(_0x3a15fa){const _0x1caf64=_0x3a15fa['getAttribute']('listIndent');if(0x0==_0x1caf64)return _0x3a15fa;let _0x113aca=_0x3a15fa;for(;_0x3a15fa['previousSibling']&&_0x3a15fa['previousSibling']['is']('element','listItem');){const _0x17afd0=_0x3a15fa['previousSibling']['getAttribute']('listIndent');if(_0x17afd0==_0x1caf64)_0x113aca=_0x3a15fa['previousSibling'];else{if(_0x17afd0<_0x1caf64)break;}_0x3a15fa=_0x3a15fa['previousSibling'];}return _0x113aca;}function Ee(_0x456d76){const _0x693138=[];if(_0x456d76['is']('element','listItem')&&_0x456d76['getAttribute']('listIndent')>0x0){let _0x509d01=_0x456d76['nextSibling'];for(;_0x509d01&&'listItem'==_0x509d01['name']&&_0x509d01['getAttribute']('listIndent')==_0x456d76['getAttribute']('listIndent');)_0x693138['push'](_0x509d01),_0x509d01=_0x509d01['nextSibling'];}return _0x693138;}class ht extends _0x8725f3{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f00e7=this['editor']['config']['get']('list.properties'),_0x524c0c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f00e7['styles']&&_0x524c0c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f00e7['reversed']&&_0x524c0c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f00e7['startIndex']&&_0x524c0c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x524c0c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x99a96b,_0x7262c6={}){const _0x2946f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24340a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2946f3['markMultiRangeBlockFormat'](_0x24340a,{'commandName':'listStyle','commandParams':[{'type':_0x7262c6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3b17fb,_0x2704c7={}){const _0x385721=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b3f22=this['_getSuggestionBlocks'](_0x381fc0=>_0x381fc0['is']('element','listItem')&&'numbered'===_0x381fc0['getAttribute']('listType'));if(_0x3b3f22['length']<0x1)return;const _0x5bb7d0=_0x3b3f22['map'](_0x19aaba=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19aaba,'before'),this['editor']['model']['createPositionAt'](_0x19aaba,0x0)));this['editor']['model']['change'](()=>{_0x385721['markMultiRangeBlockFormat'](_0x5bb7d0,{'commandName':'listReversed','commandParams':[{'reversed':_0x2704c7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x37df9b,_0x51ad47={}){const _0x599c0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x244d30=this['_getSuggestionBlocks'](_0x47eeae=>_0x47eeae['is']('element','listItem')&&'numbered'===_0x47eeae['getAttribute']('listType'));if(_0x244d30['length']<0x1)return;const _0x128ab6=_0x244d30['map'](_0x4cdb5f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4cdb5f,'before'),this['editor']['model']['createPositionAt'](_0x4cdb5f,0x0)));this['editor']['model']['change'](()=>{_0x599c0e['markMultiRangeBlockFormat'](_0x128ab6,{'commandName':'listStart','commandParams':[{'startIndex':_0x51ad47['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x387c1c){if('formatBlock'!=_0x387c1c['type']&&'formatInline'!=_0x387c1c['type'])return;const _0x58a5d6=this['editor']['locale'],{data:_0x348c3d}=_0x387c1c;if(!_0x348c3d)return;let _0x42cf50,_0x58d911;switch(_0x348c3d['commandName']){case'listStyle':_0x42cf50='*Change\x20to:*\x20%0',_0x58d911={'type':'format','content':o(_0x58a5d6,_0x42cf50,o(_0x58a5d6,this['_getTranslationKeyForListStyle'](_0x348c3d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x42cf50=_0x348c3d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x58d911={'type':'format','content':o(_0x58a5d6,_0x42cf50)};break;case'listStart':_0x42cf50='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x58d911={'type':'format','content':o(_0x58a5d6,_0x42cf50,_0x348c3d['commandParams'][0x0]['startIndex'])};}return _0x58d911;}['_getSuggestionBlocksForListStyle'](){const _0x114366=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bf6ef=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2bf6ef[0x0]?.['is']('element','listItem')&&_0x2bf6ef['unshift'](..._0x114366['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2bf6ef[_0x2bf6ef['length']-0x1]?.['is']('element','listItem')&&_0x2bf6ef['push'](..._0x114366['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2bf6ef=[...new Set(_0x2bf6ef)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2bf6ef=_0x2bf6ef['filter'](_0x11fef0=>_0x11fef0['is']('element','listItem'))),_0x2bf6ef;}['_getSuggestionBlocks'](_0x3c6530){const _0x829cd5=this['editor']['plugins']['get']('LegacyListUtils');let _0x18f894=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3c6530)['map'](_0x173e1f=>{const _0x4990ec=this['editor']['model']['createPositionAt'](_0x173e1f,0x0);return[..._0x829cd5['getSiblingNodes'](_0x4990ec,'backward'),..._0x829cd5['getSiblingNodes'](_0x4990ec,'forward')];})['flat']();return _0x18f894=[...new Set(_0x18f894)],_0x18f894;}['_getTranslationKeyForListStyle'](_0x41ddf2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x41ddf2)||'default')['toUpperCase']()+'_LIST_'+_0x41ddf2['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x8725f3{['afterInit'](){const _0x3e251e=this['editor'];if(!_0x3e251e['plugins']['has']('MediaEmbedEditing'))return;const _0x2187da=_0x3e251e['plugins']['get']('TrackChangesEditing'),_0x425288=_0x3e251e['locale'];_0x2187da['enableCommand']('mediaEmbed'),_0x2187da['descriptionFactory']['registerElementLabel']('media',_0x31f3b0=>o(_0x425288,'ELEMENT_MEDIA',_0x31f3b0)),_0x3e251e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1e4230,{writer:_0x5876b3,options:_0xd1102d})=>{if(_0xd1102d['showSuggestionHighlights'])return _0x5876b3['createEmptyElement']('div');},'converterPriority':'high'}),_0x3e251e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3541e3,_0x5d8c22,_0x1ece58)=>{_0x1ece58['options']['showSuggestionHighlights']&&_0x3541e3['stop']();},{'priority':'high'});}}class lt extends _0x8725f3{['afterInit'](){const _0x1f5b3f=this['editor'];_0x1f5b3f['plugins']['has']('MentionEditing')&&_0x1f5b3f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x8725f3{['afterInit'](){const _0x1f50e1=this['editor'];if(!_0x1f50e1['plugins']['has']('MergeFieldsEditing'))return;const _0x5598f3=_0x1f50e1['plugins']['get']('TrackChangesEditing'),_0x4d0f82=_0x1f50e1['locale'];_0x5598f3['enableCommand']('insertMergeField'),_0x5598f3['enableCommand']('insertMergeFieldBlock'),_0x5598f3['enableCommand']('insertMergeFieldImage'),_0x5598f3['descriptionFactory']['registerElementLabel']('mergeField',_0x44d8c7=>o(_0x4d0f82,'ELEMENT_MERGE_FIELD',_0x44d8c7)),_0x5598f3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4d0e21=>o(_0x4d0f82,'ELEMENT_MERGE_FIELD',_0x4d0e21)),_0x5598f3['descriptionFactory']['registerDescriptionCallback'](_0x72ec6=>{if('insertion'!=_0x72ec6['type']&&'deletion'!=_0x72ec6['type'])return;const _0x1d35f2=_0x72ec6['getContainedElement']();if(null==_0x1d35f2)return;const _0xc6f6dd=_0x1f50e1['plugins']['get']('MergeFieldsEditing');let _0x41cae8;switch(_0xc6f6dd['getMergeFieldType'](_0x1d35f2)){case null:return;case'image':{const _0x3fa8ac=_0xc6f6dd['unwrapAffixes'](_0x1d35f2['getAttribute']('src'));_0x41cae8=_0xc6f6dd['getLabel'](_0x3fa8ac)||_0x3fa8ac;break;}default:{const _0xdead12=_0x1d35f2['getAttribute']('id');_0x41cae8=_0xc6f6dd['getLabel'](_0xdead12)||_0xdead12;break;}}return'insertion'==_0x72ec6['type']?{'type':'insertion','content':o(_0x4d0f82,'*Insert:*\x20%0','\x22'+_0x41cae8+'\x22\x20'+o(_0x4d0f82,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4d0f82,'*Remove:*\x20%0','\x22'+_0x41cae8+'\x22\x20'+o(_0x4d0f82,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x8725f3{['afterInit'](){const _0x3b2f74=this['editor'],_0x22a443=_0x3b2f74['plugins']['get']('TrackChangesEditing');_0x3b2f74['plugins']['has']('MultiLevelList')&&(_0x22a443['enableDefaultAttributesIntegration']('multiLevelList'),_0x22a443['registerBlockAttribute']('listMarkerStyle'),_0x22a443['descriptionFactory']['registerDescriptionCallback'](_0x95c53b=>this['handleDescriptions'](_0x95c53b)));}['handleDescriptions'](_0x2ad913){const _0x211005=this['editor']['locale'],{data:_0x1de70a}=_0x2ad913,_0x2651c4={'type':'format','content':''};if(_0x1de70a&&'listMarkerStyle'==_0x1de70a['key']){if(!_0x1de70a['oldValue'])return{'type':'format','content':o(_0x211005,'*Set\x20format:*\x20%0',o(_0x211005,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1de70a['newValue']+')'};if(!_0x1de70a['newValue']){let _0x4dd141=_0x2ad913['head'];for(;_0x4dd141;){if(_0x4dd141['data']&&'listType'==_0x4dd141['data']['key']&&_0x4dd141['data']['newValue'])return _0x2651c4;_0x4dd141=_0x4dd141['next'];}return{'type':'format','content':o(_0x211005,'*Remove\x20format:*\x20%0',o(_0x211005,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1de70a['oldValue']+')'};}}}}class pt extends _0x8725f3{['afterInit'](){const _0x46cb34=this['editor'];if(!_0x46cb34['plugins']['has']('PageBreakEditing'))return;_0x46cb34['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1a8faa=_0x46cb34['plugins']['get']('TrackChangesEditing'),_0x529820=_0x46cb34['locale'];_0x1a8faa['descriptionFactory']['registerElementLabel']('pageBreak',_0x3765ac=>o(_0x529820,'ELEMENT_PAGE_BREAK',_0x3765ac));}}class kt extends _0x8725f3{['afterInit'](){const _0x15423a=this['editor'];if(!_0x15423a['plugins']['has']('Paragraph'))return;const _0x26a523=_0x15423a['locale'],_0x50053e=_0x15423a['plugins']['get']('TrackChangesEditing');_0x50053e['descriptionFactory']['registerElementLabel']('paragraph',_0x8a1187=>o(_0x26a523,'ELEMENT_PARAGRAPH',_0x8a1187)),_0x50053e['enableDefaultAttributesIntegration']('paragraph'),_0x50053e['enableCommand']('insertParagraph'),_0x15423a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x15423a),{'priority':'highest'}),_0x15423a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x333a51,_0x2ce91,_0x185bc0)=>{_0x185bc0['options']['showSuggestionHighlights']&&nr(_0x15423a,{'showActiveMarker':!0x1})(_0x333a51,_0x2ce91,_0x185bc0);},{'priority':'highest'});const _0x10638c=_0x50053e['descriptionFactory'];_0x10638c['registerDescriptionCallback'](_0xff31c8=>{if('insertion'!==_0xff31c8['type'])return;const {start:_0x4d8e65,end:_0x5be182}=_0xff31c8['getFirstRange']();if(!_0x4d8e65['isTouching'](_0x5be182)||!_0x4d8e65['nodeAfter'])return;const _0x1a3345=_0x15423a['model']['schema'],_0x2c07f4=_0x4d8e65['nodeAfter'];return _0x1a3345['isBlock'](_0x2c07f4)&&!_0x1a3345['isLimit'](_0x2c07f4)&&_0x1a3345['checkChild'](_0x2c07f4,'$text')?{'type':'insertion','content':o(_0x26a523,'*Insert:*\x20%0',_0x10638c['getItemLabel'](_0x2c07f4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28be8c=this['editor'],_0x395ce0=_0x28be8c['locale'];_0x28be8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a1f66=>{if('formatBlock'!=_0x5a1f66['type'])return;const {data:_0xa5425d}=_0x5a1f66;return _0xa5425d&&'paragraph'==_0xa5425d['commandName']?{'type':'format','content':o(_0x395ce0,'*Change\x20to:*\x20%0',o(_0x395ce0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x299649,{showActiveMarker:_0x3f618b=!0x0}={}){return(_0x582c83,_0x15097d,_0x578cf3)=>{const _0x4436b1=_0x299649['plugins']['get']('TrackChangesEditing'),_0x4bf56f=_0x15097d['markerRange']['start'],_0x1cd4e7=_0x15097d['markerRange']['end'],_0x2f343d=_0x299649['model']['schema'];if(!_0x4bf56f['isTouching'](_0x1cd4e7)||!_0x4bf56f['nodeAfter'])return;const _0x33e600=_0x4bf56f['nodeAfter'];if(_0x2f343d['isBlock'](_0x33e600)&&!_0x2f343d['isLimit'](_0x33e600)&&_0x2f343d['checkChild'](_0x33e600,'$text')){if(!_0x578cf3['consumable']['consume'](_0x15097d['markerRange'],_0x582c83['name']))return;const {id:_0x151302,authorId:_0x5b1ec1}=_0x4436b1['_splitMarkerName'](_0x15097d['markerName']),_0x19c024=_0x578cf3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x151302,'data-author-id':_0x5b1ec1}),_0x50c530=_0x578cf3['mapper']['toViewPosition'](_0x1cd4e7);_0x3f618b&&_0x4436b1['activeMarkers']['includes'](_0x15097d['markerName'])&&_0x578cf3['writer']['addClass']('ck-suggestion-marker--active',_0x19c024),_0x578cf3['writer']['insert'](_0x50c530,_0x19c024),_0x578cf3['mapper']['bindElementToMarker'](_0x19c024,_0x15097d['markerName']);}};}class wt extends _0x8725f3{['afterInit'](){const _0x4a1655=this['editor'];_0x4a1655['commands']['get']('replaceSource')&&_0x4a1655['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x8725f3{['afterInit'](){const _0x38f176=this['editor'];if(!_0x38f176['plugins']['has']('RemoveFormatEditing'))return;_0x38f176['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb6bfab=this['editor'];_0xb6bfab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x446b99=>{if('formatBlock'!=_0x446b99['type']&&'formatInline'!=_0x446b99['type'])return;const {data:_0xcffaf4}=_0x446b99;return _0xcffaf4&&'removeFormat'==_0xcffaf4['commandName']?{'type':'format','content':o(_0xb6bfab['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x8725f3{['afterInit'](){const _0x15d145=this['editor'];if(!_0x15d145['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x58b6df=_0x15d145['plugins']['get']('TrackChangesEditing');_0x58b6df['enableCommand']('goToPreviousRestrictedEditingException'),_0x58b6df['enableCommand']('goToNextRestrictedEditingException');const _0x269c82=_0x15d145['plugins']['get']('RestrictedEditingModeEditing');_0x269c82['enableCommand']('trackChanges'),_0x269c82['enableCommand']('acceptSuggestion'),_0x269c82['enableCommand']('discardSuggestion'),_0x269c82['enableCommand']('acceptAllSuggestions'),_0x269c82['enableCommand']('discardAllSuggestions'),_0x269c82['enableCommand']('acceptSelectedSuggestions'),_0x269c82['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x8725f3{['afterInit'](){const _0x565256=this['editor'];if(!_0x565256['plugins']['has']('ShiftEnter'))return;const _0x1b4496=_0x565256['plugins']['get']('TrackChangesEditing');_0x1b4496['enableCommand']('shiftEnter'),_0x565256['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x565256),{'priority':'high'}),_0x565256['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x565256),{'priority':'high'}),_0x565256['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4908f8,_0x55783a,_0x2d57d3)=>{_0x2d57d3['options']['showSuggestionHighlights']&&je(_0x565256,{'showActiveMarker':!0x1})(_0x4908f8,_0x55783a,_0x2d57d3);}),_0x1b4496['descriptionFactory']['registerElementLabel']('softBreak',_0x1fb6e4=>o(_0x565256['locale'],'ELEMENT_LINE_BREAK',_0x1fb6e4));}}function je(_0x2f8dea,{showActiveMarker:_0x3f51c3=!0x0}={}){return(_0x3bbe19,_0x4f9eb4,_0x42ffe5)=>{const _0xa070dd=_0x2f8dea['plugins']['get']('TrackChangesEditing');if(!_0x42ffe5['consumable']['test'](_0x4f9eb4['markerRange'],_0x3bbe19['name']))return;const _0x1c8137=_0x2f8dea['model'];for(const _0x2b464f of _0x4f9eb4['markerRange']['getItems']()){if(!_0x2b464f['is']('element','softBreak'))continue;const _0x43d3d1='deletion'==_0x4f9eb4['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x19226b,authorId:_0x4ae2ad}=_0xa070dd['_splitMarkerName'](_0x4f9eb4['markerName']),_0x2dac4f=_0x42ffe5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x43d3d1,'data-suggestion':_0x19226b,'data-author-id':_0x4ae2ad}),_0x157f81=_0x42ffe5['mapper']['toViewPosition'](_0x1c8137['createPositionBefore'](_0x2b464f));_0x3f51c3&&_0xa070dd['activeMarkers']['includes'](_0x4f9eb4['markerName'])&&_0x42ffe5['writer']['addClass']('ck-suggestion-marker--active',_0x2dac4f),_0x42ffe5['writer']['insert'](_0x157f81,_0x2dac4f),_0x42ffe5['mapper']['bindElementToMarker'](_0x2dac4f,_0x4f9eb4['markerName']);}};}class St extends _0x8725f3{['afterInit'](){const _0x3239e1=this['editor'],_0x17a6fd=_0x3239e1['model'],_0x52d80f=_0x3239e1['locale'];if(!_0x3239e1['plugins']['has']('StandardEditingModeEditing'))return;const _0x29daa6=_0x3239e1['plugins']['get']('TrackChangesEditing'),_0x37dca9='restrictedEditingException',_0x532b02=_0x3239e1['commands']['get'](_0x37dca9);_0x29daa6['enableCommand'](_0x37dca9,(_0x4a3e35,_0x785614={})=>{const _0x255a7f=_0x17a6fd['document']['selection'];if(_0x255a7f['isCollapsed'])return void _0x4a3e35(_0x785614);const _0x1de6d8=void 0x0!==_0x785614['forceValue']?_0x785614['forceValue']:!_0x532b02['value'];_0x17a6fd['change'](()=>{const _0x51d6db=Array['from'](_0x255a7f['getRanges']());for(const _0x480edd of _0x51d6db){const _0x1f30fd=_0x1de6d8?[_0x480edd]:io(_0x37dca9,_0x480edd,_0x17a6fd);for(const _0x22def5 of _0x1f30fd)_0x29daa6['markInlineFormat'](_0x22def5,{'commandName':_0x37dca9,'commandParams':[{'forceValue':_0x1de6d8}]});}});}),_0x29daa6['descriptionFactory']['registerDescriptionCallback'](_0x10c4ce=>{if('formatBlock'!=_0x10c4ce['type']&&'formatInline'!=_0x10c4ce['type'])return;const {data:_0x191645}=_0x10c4ce;return _0x191645&&_0x191645['commandName']==_0x37dca9?_0x191645['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52d80f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x52d80f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x8725f3{['afterInit'](){const _0x13d7ce=this['editor'];if(!_0x13d7ce['plugins']['has']('Style')||!_0x13d7ce['plugins']['has']('DataSchema'))return;const _0x340f1e=_0x13d7ce['plugins']['get']('TrackChangesEditing'),_0x2bb46c=_0x13d7ce['locale'],_0x5c8a58=_0x13d7ce['config']['get']('style')||{},_0x109aed=_0x13d7ce['plugins']['get']('GeneralHtmlSupport'),_0x227e19=_0x13d7ce['plugins']['get']('StyleUtils')['normalizeConfig'](_0x13d7ce['plugins']['get']('DataSchema'),_0x5c8a58['definitions']);_0x340f1e['enableDefaultAttributesIntegration']('style');const _0x1f192b=new Set();for(const _0x1b7e99 of _0x227e19['block']){const _0xff1398=_0x109aed['getGhsAttributeNameForElement'](_0x1b7e99['element']);_0x1f192b['add'](_0xff1398);}const _0x1bc9c8=new Set();for(const _0x55f6fd of _0x227e19['inline']){const _0x280b40=_0x109aed['getGhsAttributeNameForElement'](_0x55f6fd['element']);_0x1bc9c8['add'](_0x280b40);for(const _0x3a0c3b of _0x55f6fd['ghsAttributes'])_0x1bc9c8['add'](_0x3a0c3b);}for(const _0x3299d2 of _0x1f192b)_0x340f1e['registerBlockAttribute'](_0x3299d2),_0x340f1e['descriptionFactory']['registerAttributeLabel'](_0x3299d2,o(_0x2bb46c,'FORMAT_STYLE'));for(const _0x446a2f of _0x1bc9c8)_0x340f1e['registerInlineAttribute'](_0x446a2f),_0x340f1e['descriptionFactory']['registerAttributeLabel'](_0x446a2f,o(_0x2bb46c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5118f7=this['editor'],_0x2450d2=_0x5118f7['locale'];_0x5118f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcb2f06=>{if('formatBlock'!=_0xcb2f06['type']&&'formatInline'!=_0xcb2f06['type'])return;const {data:_0x99bac0}=_0xcb2f06;return _0x99bac0&&'style'===_0x99bac0['commandName']?_0x99bac0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2450d2,'*Set\x20format:*\x20%0',_0x99bac0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2450d2,'*Remove\x20format:*\x20%0',_0x99bac0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x8725f3{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3f6213){super(_0x3f6213),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5ceba1=this['editor'],_0x262e62=_0x5ceba1['model']['document']['selection'];if(!_0x5ceba1['plugins']['has']('TableEditing'))return;const _0x51c2d1=_0x5ceba1['locale'],_0x25285c=_0x5ceba1['plugins']['get']('TrackChangesEditing'),_0x20db0d=_0x5ceba1['plugins']['get']('TableUtils');_0x25285c['descriptionFactory']['registerElementLabel']('table',_0x13d563=>o(_0x51c2d1,'ELEMENT_TABLE',_0x13d563)),this['_setupColumnsRowsFixing'](),_0x25285c['enableCommand']('insertTable'),_0x25285c['enableCommand']('selectTableRow'),_0x25285c['enableCommand']('selectTableColumn');for(const _0x40ebcb of['insertTableRowAbove','insertTableRowBelow']){const _0x3dd6ba=_0x5ceba1['commands']['get'](_0x40ebcb);_0x25285c['enableCommand'](_0x40ebcb,_0x3d32aa=>{_0x5ceba1['model']['change'](_0x126459=>{_0x3d32aa();const _0x247113='above'===_0x3dd6ba['order'],_0x2a746f=_0x20db0d['getSelectionAffectedTableCells'](_0x262e62),_0x2698ff=_0x20db0d['getRowIndexes'](_0x2a746f),_0x20e0b8=_0x247113?_0x2698ff['first']-0x1:_0x2698ff['last']+0x1,_0xdce0cd=_0x2a746f[0x0]['findAncestor']('table'),_0x252543=_0x20db0d['createTableWalker'](_0xdce0cd,{'startRow':_0x20e0b8,'endRow':_0x20e0b8}),_0x34250a=Array['from'](_0x252543)['map'](_0x1e8c12=>_0x126459['createRangeOn'](_0x1e8c12['cell']));_0x25285c['markMultiRangeInsertion'](_0x34250a,'tableRow');});});}for(const _0x14448b of['insertTableColumnLeft','insertTableColumnRight']){const _0x2ac201=_0x5ceba1['commands']['get'](_0x14448b);_0x25285c['enableCommand'](_0x14448b,_0x40094a=>{_0x5ceba1['model']['change'](_0x92ed7c=>{_0x40094a();const _0x557c85='left'===_0x2ac201['order'],_0x3a2c88=_0x20db0d['getSelectionAffectedTableCells'](_0x262e62),_0x43706a=_0x20db0d['getColumnIndexes'](_0x3a2c88),_0x3e62db=_0x557c85?_0x43706a['first']-0x1:_0x43706a['last']+0x1,_0x2779f6=_0x3a2c88[0x0]['findAncestor']('table'),_0x398c8f=_0x20db0d['createTableWalker'](_0x2779f6,{'startRow':0x0,'column':_0x3e62db,'includeAllSlots':!0x1}),_0x134d97=Array['from'](_0x398c8f)['map'](_0x51abb2=>_0x92ed7c['createRangeOn'](_0x51abb2['cell']));_0x25285c['markMultiRangeInsertion'](_0x134d97,'tableColumn');});});}for(const _0xf39458 of['removeTableRow','removeTableColumn']){const _0x58bbf3=_0xf39458['substr'](0xb),_0x2b9976=_0x58bbf3['toLowerCase'](),_0x5739fe=_0x2b9976['substr'](0x0,0x3)+'span',_0x1e732d='table'+_0x58bbf3,_0x2b18cc='min'+_0x58bbf3,_0x6d7c3a='max'+_0x58bbf3;_0x25285c['enableCommand'](_0xf39458,()=>{_0x5ceba1['model']['change'](_0x4aa00a=>{const _0xf7c007=_0x20db0d['getSelectionAffectedTableCells'](_0x262e62),_0x3097bb=_0xf7c007[0x0]['findAncestor']('table');let _0x54971e;if('removeTableRow'==_0xf39458){const _0x361f19=_0x20db0d['getRowIndexes'](_0xf7c007);_0x54971e={'startRow':_0x361f19['first'],'endRow':_0x361f19['last'],'includeAllSlots':!0x0};}else{const _0x510d95=_0x20db0d['getColumnIndexes'](_0xf7c007);_0x54971e={'startColumn':_0x510d95['first'],'endColumn':_0x510d95['last'],'includeAllSlots':!0x0};}const _0x4212d3=_0x20db0d['createTableWalker'](_0x3097bb,_0x54971e),_0x35fa2a=Array['from'](_0x4212d3)['map'](({cell:_0x55cf79})=>_0x55cf79),_0x2fe4c7=Ne(_0x35fa2a['filter'](_0x2b7943=>_0x2b7943['hasAttribute'](_0x5739fe))),_0x5a5a87=Ne(_0x35fa2a['filter'](_0x1b4655=>!_0x1b4655['hasAttribute'](_0x5739fe)))['map'](_0x5c8bdb=>_0x4aa00a['createRangeOn'](_0x5c8bdb)),_0x30b1ab=_0x25285c['markMultiRangeDeletion'](_0x5a5a87,_0x1e732d);if(_0x30b1ab&&('tableRow'==_0x30b1ab['subType']||'tableColumn'==_0x30b1ab['subType'])){const _0x1e89a2=this['_getSuggestionCoords'](_0x30b1ab);for(const _0x3475e3 of _0x2fe4c7){const _0x323db9=_0x4aa00a['createRangeOn'](_0x3475e3),_0x1191a5=_0x20db0d['getCellLocation'](_0x3475e3),_0x2c7105=_0x3475e3['getAttribute'](_0x5739fe)-0x1,_0x2f18eb=_0x1e89a2[_0x2b18cc],_0xd87469=_0x1e89a2[_0x6d7c3a];_0x2f18eb<=_0x1191a5[_0x2b9976]&&_0x1191a5[_0x2b9976]+_0x2c7105<=_0xd87469&&_0x30b1ab['addRange'](_0x323db9);}}});});}function _0x1286f6(_0xc9186){const _0x558c0e=Array['from'](_0x262e62['getRanges']())['map'](_0x16a467=>_0x3e3f9b['fromRange'](_0x16a467));_0x5ceba1['model']['change'](_0x57f563=>{const _0x178868=_0x57f563['batch'];_0xc9186=_0xc9186['filter'](_0x42c4b0=>'$graveyard'!=_0x42c4b0['root']['rootName']),_0x57f563['setSelection'](_0xc9186),_0x5ceba1['commands']['get']('removeTableRow')['refresh'](),_0x5ceba1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5ceba1['model']['enqueueChange'](()=>{_0x5ceba1['model']['enqueueChange'](_0x178868,_0x41e868=>{const _0x52332a=_0x558c0e['filter'](_0xcc2643=>'$graveyard'!=_0xcc2643['root']['rootName']);_0x52332a['length']>0x0&&_0x41e868['setSelection'](_0x52332a);for(const _0x4cf538 of _0x558c0e)_0x4cf538['detach']();});});});}function _0x6e82e0(_0x1e5485){_0x5ceba1['model']['change'](_0x548e81=>{const _0x5e9953=Array['from'](_0x262e62['getRanges']())['map'](_0xb2376c=>_0x3e3f9b['fromRange'](_0xb2376c)),_0xa8e843=[];for(const _0x1a92f7 of _0x1e5485)for(const _0xab18d5 of _0x1a92f7['getItems']({'shallow':!0x0}))_0xa8e843['push'](_0xab18d5);for(const _0x189bb9 of _0xa8e843)'$graveyard'!=_0x189bb9['root']['rootName']&&(_0x548e81['setSelection'](_0x548e81['createPositionAt'](_0x189bb9,0x0)),_0x5ceba1['commands']['get']('removeTableColumn')['refresh'](),_0x5ceba1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1fbecf=_0x5e9953['filter'](_0x11a285=>'$graveyard'!=_0x11a285['root']['rootName']);_0x1fbecf['length']>0x0&&_0x548e81['setSelection'](_0x1fbecf);for(const _0x9ab48a of _0x5e9953)_0x9ab48a['detach']();});}function _0x3c0e87(_0x1d5f36,_0x4eda94){return _0x4eda94['every'](_0x3a9b2c=>_0x1d5f36['some'](_0x16fa2e=>_0x16fa2e['end']['isEqual'](_0x3a9b2c['start'])||_0x3a9b2c['end']['isEqual'](_0x16fa2e['start'])));}function _0x4232a7(_0x24dcbe,_0x47f07d){return!_0x24dcbe['some'](_0x584c21=>_0x47f07d['some'](_0x53cb3b=>_0x584c21['isIntersecting'](_0x53cb3b)))&&_0x24dcbe['some'](_0x873f25=>_0x47f07d['some'](_0x3b244f=>_0x873f25['end']['isTouching'](_0x3b244f['start'])));}_0x5ceba1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4070ed,_0x3a1451,_0x572c86)=>{if(!_0x572c86['options']['showSuggestionHighlights'])return;const _0x52eafc=_0x3a1451['item'];if(!_0x52eafc||!_0x52eafc['is']('element','tableCell'))return;const _0x3a921d=_0x572c86['mapper']['toViewElement'](_0x52eafc);if(_0x3a921d){const {id:_0x43db13,authorId:_0x298da5}=_0x25285c['_splitMarkerName'](_0x3a1451['markerName']);_0x5107fe(_0x3a921d,_0x572c86['writer'],(_0x1caab2,_0x15e76b,_0x4e2e87)=>{_0x4e2e87['addClass'](_0x2a699c(_0x15e76b['classes']),_0x1caab2),_0x4e2e87['setAttribute']('data-suggestion-id',_0x43db13,_0x1caab2),_0x4e2e87['setAttribute']('data-author-id',_0x298da5,_0x1caab2);},(_0x3aad8b,_0x5c6f48,_0x5e6a1f)=>{_0x5e6a1f['removeClass'](_0x2a699c(_0x5c6f48['classes']),_0x3aad8b),_0x5e6a1f['removeAttribute']('data-suggestion-id',_0x3aad8b),_0x5e6a1f['removeAttribute']('data-author-id',_0x3aad8b);});}},{'priority':'highest'}),_0x25285c['descriptionFactory']['registerDescriptionCallback'](_0x5ba2c8=>{if('insertion'!=_0x5ba2c8['type']&&'deletion'!=_0x5ba2c8['type'])return;const _0x460c77=_0x5ba2c8['getContainedElement']();if(null!=_0x460c77&&_0x460c77['is']('element','table')){if('insertion'==_0x5ba2c8['type']){const _0x170733=_0x5ba2c8['getItems']()['filter'](_0x1afe01=>_0x1afe01['is']('$textProxy'))['map'](_0x42f8ca=>_0x42f8ca['data']);if(_0x170733['length'])return{'type':'insertion','content':o(_0x51c2d1,'*Insert:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x170733['join']('\x20')+'\x22'))};}if('deletion'==_0x5ba2c8['type']){const _0xe6a354=_0x5ba2c8['getItems']()['filter'](_0x426d96=>_0x426d96['is']('$textProxy'))['map'](_0x263f65=>_0x263f65['data']);if(_0xe6a354['length'])return{'type':'deletion','content':o(_0x51c2d1,'*Remove:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe6a354['join']('\x20')+'\x22'))};}}}),_0x25285c['descriptionFactory']['registerDescriptionCallback'](_0x244c0f=>{if('tableRow'==_0x244c0f['subType']){const _0x2d5ae1=_0x244c0f['getItems']()['filter'](_0x468be6=>_0x468be6['is']('$textProxy'))['map'](_0x30f162=>_0x30f162['data']),_0x2f3a65=this['_getSuggestionCoords'](_0x244c0f),_0xb74d39=_0x2f3a65['maxRow']-_0x2f3a65['minRow']+0x1;if('insertion'==_0x244c0f['type'])return _0x2d5ae1['length']?{'type':'insertion','content':o(_0x51c2d1,'*Insert:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb74d39,'\x22'+_0x2d5ae1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x51c2d1,'*Insert:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_ROW',_0xb74d39))};if('deletion'==_0x244c0f['type'])return _0x2d5ae1['length']?{'type':'deletion','content':o(_0x51c2d1,'*Remove:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb74d39,'\x22'+_0x2d5ae1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x51c2d1,'*Remove:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_ROW',_0xb74d39))};}if('tableColumn'==_0x244c0f['subType']){const _0x130046=_0x244c0f['getItems']()['filter'](_0xd0e521=>_0xd0e521['is']('$textProxy'))['map'](_0x1474aa=>_0x1474aa['data']),_0x28f7fa=this['_getSuggestionCoords'](_0x244c0f),_0x5cf6a3=_0x28f7fa['maxColumn']-_0x28f7fa['minColumn']+0x1;if('insertion'==_0x244c0f['type'])return _0x130046['length']?{'type':'insertion','content':o(_0x51c2d1,'*Insert:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5cf6a3,'\x22'+_0x130046['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x51c2d1,'*Insert:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_COLUMN',_0x5cf6a3))};if('deletion'==_0x244c0f['type'])return _0x130046['length']?{'type':'deletion','content':o(_0x51c2d1,'*Remove:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5cf6a3,'\x22'+_0x130046['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x51c2d1,'*Remove:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_COLUMN',_0x5cf6a3))};}}),_0x25285c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1286f6),_0x25285c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1286f6),_0x25285c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x6e82e0),_0x25285c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x6e82e0),_0x25285c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3c0e87),_0x25285c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3c0e87),_0x25285c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4232a7),_0x25285c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4232a7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x60bd4c=this['editor'],_0x1a6fcb=_0x60bd4c['model']['document']['selection'];return(_0x33ea84,_0x48a13c)=>{_0x60bd4c['model']['change'](_0x330052=>{const {commandName:_0x1d4a79,commandParams:_0xf9ea6c}=_0x48a13c;let _0x3b0a2c=_0x33ea84[0x0]['end']['nodeBefore'];_0xf9ea6c&&_0xf9ea6c[0x0]&&!0x1===_0xf9ea6c[0x0]['forceValue']&&(_0x3b0a2c=_0x33ea84[0x0]['start']['nodeAfter']);const _0x2c0242=_0x330052['createRangeIn'](_0x3b0a2c);if('$graveyard'==_0x2c0242['root']['rootName'])return;const _0x1d2404=Array['from'](_0x1a6fcb['getRanges']())['map'](_0x4d9fb8=>_0x3e3f9b['fromRange'](_0x4d9fb8));_0x330052['setSelection'](_0x2c0242),_0x60bd4c['commands']['get'](_0x1d4a79)['refresh'](),_0xf9ea6c['push']({'forceDefaultExecution':!0x0}),_0x60bd4c['execute'](_0x1d4a79,..._0xf9ea6c);const _0x3179d3=_0x1d2404['filter'](_0x3afccc=>'$graveyard'!=_0x3afccc['root']['rootName']);_0x3179d3['length']>0x0&&_0x330052['setSelection'](_0x3179d3);for(const _0x4e65fc of _0x1d2404)_0x4e65fc['detach']();});};}['_getCoordsForCells'](_0x46d50a){const _0x102a63=this['editor']['plugins']['get']('TableUtils');let _0x421177=Number['MAX_SAFE_INTEGER'],_0xec3a1b=Number['MIN_SAFE_INTEGER'],_0x21bd1f=Number['MAX_SAFE_INTEGER'],_0xb32c30=Number['MIN_SAFE_INTEGER'];for(const _0x181f26 of _0x46d50a){if('$graveyard'==_0x181f26['root']['rootName'])continue;const {row:_0x2a9c75,column:_0x3eec9b}=_0x102a63['getCellLocation'](_0x181f26),_0x458dc3=_0x181f26['hasAttribute']('rowspan')?_0x181f26['getAttribute']('rowspan')-0x1:0x0,_0x432fc9=_0x181f26['hasAttribute']('colspan')?_0x181f26['getAttribute']('colspan')-0x1:0x0;_0x421177=_0x2a9c75<_0x421177?_0x2a9c75:_0x421177,_0xec3a1b=_0x2a9c75+_0x458dc3>_0xec3a1b?_0x2a9c75+_0x458dc3:_0xec3a1b,_0x21bd1f=_0x3eec9b<_0x21bd1f?_0x3eec9b:_0x21bd1f,_0xb32c30=_0x3eec9b+_0x432fc9>_0xb32c30?_0x3eec9b+_0x432fc9:_0xb32c30;}return{'minRow':_0x421177,'maxRow':_0xec3a1b,'minColumn':_0x21bd1f,'maxColumn':_0xb32c30};}['_setupColumnsRowsFixing'](){const _0x3ff8d0=this['editor'],_0x381608=_0x3ff8d0['plugins']['get']('TrackChangesEditing'),_0x386623=_0x3ff8d0['plugins']['get']('TableUtils');_0x3ff8d0['model']['document']['on']('change:data',()=>{const _0x4cf2b6=Array['from'](_0x3ff8d0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ebae8,data:_0x32727d}of _0x4cf2b6){const {group:_0x930800,id:_0x32b9b8,subType:_0x40b20f}=_0x381608['_splitMarkerName'](_0x5ebae8);if('suggestion'!=_0x930800)continue;if(null!=_0x32727d['oldRange'])continue;const _0xbdc487=_0x381608['getSuggestion'](_0x32b9b8);this['_tablePostFixingSubtypes']['includes'](_0x40b20f)&&this['_tableSuggestions']['add'](_0xbdc487);}},{'priority':'low'});const _0xab9e99=(_0x53ccce,_0xa8632)=>{let _0x1a0cb4=!0x1;const _0x90ef=_0xa8632['createRangeOn'](_0x53ccce),_0x2d48cf=_0x53ccce['findAncestor']('table'),_0x1b450c=_0x386623['getCellLocation'](_0x53ccce);for(const _0x1cdf31 of this['_tableSuggestions']){const _0x273da8=_0x1cdf31['subType'],_0xce7177=_0x273da8['startsWith']('tablePaste'),_0x41e77d=_0x273da8['substr'](_0xce7177?0xa:0x5),_0x579729=_0x41e77d['toLowerCase'](),_0x33b4da=_0x579729['substr'](0x0,0x3)+'span',_0x4f7df8='min'+_0x41e77d,_0x5d54e6='max'+_0x41e77d;if(!_0x1cdf31['isInContent'])continue;if(_0x2d48cf!=_0x1cdf31['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1cdf31['isIntersectingWithRange'](_0x90ef))continue;const _0x322edb=_0x53ccce['hasAttribute'](_0x33b4da)?_0x53ccce['getAttribute'](_0x33b4da)-0x1:0x0,_0x5aeb46=this['_getSuggestionCoords'](_0x1cdf31),_0x5e5fcd=_0x5aeb46[_0x4f7df8],_0x5b18db=_0x5aeb46[_0x5d54e6];_0x5e5fcd<=_0x1b450c[_0x579729]&&_0x1b450c[_0x579729]+_0x322edb<=_0x5b18db&&(_0x1cdf31['addRange'](_0x90ef),_0x1a0cb4=!0x0);}return _0x1a0cb4;};_0x3ff8d0['model']['document']['registerPostFixer'](_0x26539a=>{let _0x5217c7=!0x1;for(const _0x13a750 of _0x3ff8d0['model']['document']['differ']['getChanges']())if('insert'==_0x13a750['type']){if('tableRow'==_0x13a750['name']){for(const _0xd97457 of _0x13a750['position']['nodeAfter']['getChildren']())_0x5217c7=_0x5217c7||_0xab9e99(_0xd97457,_0x26539a);}else'tableCell'==_0x13a750['name']&&(_0x5217c7=_0x5217c7||_0xab9e99(_0x13a750['position']['nodeAfter'],_0x26539a));}return _0x5217c7;});}['_getSuggestionCoords'](_0x45a00c){return this['_getCoordsForCells'](_0x45a00c['getRanges']()['map'](_0x1dac8b=>_0x1dac8b['start']['nodeAfter']));}}function Ne(_0x275faa){return Array['from'](new Set(_0x275faa)['values']());}class _t extends _0x8725f3{static get['requires'](){return[At];}['afterInit'](){const _0x422374=this['editor'],_0x244e31=_0x422374['model']['document']['selection'],_0x32dd6b=_0x422374['locale'];if(!_0x422374['plugins']['has']('TableEditing'))return;const _0x28115b=_0x422374['plugins']['get']('TrackChangesEditing'),_0xf44fb6=_0x422374['plugins']['get']('TableUtils'),_0x21fc7d=_0x422374['plugins']['get'](At);_0x21fc7d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28115b['enableCommand']('mergeTableCells',()=>{const _0x28127e=_0xf44fb6['getSelectionAffectedTableCells'](_0x422374['model']['document']['selection']);_0x422374['model']['change'](()=>{_0x28115b['markMultiRangeBlockFormat'](_0x28127e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x422374['commands']['get']('mergeTableCells')['on']('execute',(_0x1f7f31,_0x1e8bd9)=>{_0x422374['commands']['get']('trackChanges')['value']&&(_0x1e8bd9['length']>0x0&&_0x1e8bd9[_0x1e8bd9['length']-0x1]&&_0x1e8bd9[_0x1e8bd9['length']-0x1]['forceDefaultExecution']||_0x28115b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1f7f31['stop']());},{'priority':'highest'});for(const _0xb7937f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x48db79=_0x422374['commands']['get'](_0xb7937f);_0x28115b['enableCommand'](_0xb7937f,()=>{const _0x2fc463=_0x422374['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x20e18f=>_0x20e18f['is']('element','tableCell')),_0x5ad0bf=_0x48db79['value'];_0x422374['model']['change'](()=>{_0x28115b['markMultiRangeBlockFormat']([_0x2fc463,_0x5ad0bf],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x451f49 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x59b8bf=_0x422374['commands']['get'](_0x451f49);_0x28115b['enableCommand'](_0x451f49,()=>{const _0x5b45c3=_0xf44fb6['getSelectionAffectedTableCells'](_0x422374['model']['document']['selection'])[0x0],_0x2cc51d=_0x5b45c3['findAncestor']('table'),{column:_0x151f36,row:_0x135ca2}=_0xf44fb6['getCellLocation'](_0x5b45c3);let _0x315b9e=[];if('horizontally'==_0x59b8bf['direction']){const _0x34410e=_0xf44fb6['createTableWalker'](_0x2cc51d,{'startRow':_0x135ca2,'endRow':_0x135ca2,'includeAllSlots':!0x0});_0x315b9e=Array['from'](_0x34410e)['map'](_0xb979a1=>_0xb979a1['cell']);}else{const _0x38b95c=_0xf44fb6['createTableWalker'](_0x2cc51d,{'column':_0x151f36,'includeAllSlots':!0x0});_0x315b9e=Array['from'](_0x38b95c)['map'](_0x491c71=>_0x491c71['cell']);}_0x422374['model']['change'](_0x5db9be=>{_0x28115b['markBlockFormat'](_0x5db9be['createRangeOn'](_0x5b45c3),{'commandName':_0x451f49,'commandParams':[]},_0x315b9e,_0x451f49);});});}_0x28115b['descriptionFactory']['registerDescriptionCallback'](_0x53335f=>{if('formatBlock'!=_0x53335f['type']&&'formatInline'!=_0x53335f['type'])return;const {data:_0x2b62da}=_0x53335f;return _0x2b62da&&'mergeTableCells'==_0x2b62da['commandName']?{'type':'format','content':o(_0x32dd6b,'*Merge\x20cells*')}:void 0x0;}),_0x28115b['descriptionFactory']['registerDescriptionCallback'](_0xb00ab6=>{if('formatBlock'!=_0xb00ab6['type']&&'formatInline'!=_0xb00ab6['type'])return;const {data:_0x348c91}=_0xb00ab6;return _0x348c91?'splitTableCellVertically'==_0x348c91['commandName']?{'type':'format','content':o(_0x32dd6b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x348c91['commandName']?{'type':'format','content':o(_0x32dd6b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5513d2=_0x21fc7d['_acceptFormatSuggestionCallbackFactory']();for(const _0x18f973 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28115b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18f973,'accept',_0x5513d2);for(const _0x35b4cd of['splitTableCellVertically','splitTableCellHorizontally'])_0x28115b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35b4cd,'accept',_0x5513d2);_0x28115b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x8edf14=>{_0x422374['model']['change'](_0x326d17=>{const _0x17d458=Array['from'](_0x244e31['getRanges']())['map'](_0x57c016=>_0x3e3f9b['fromRange'](_0x57c016));_0x326d17['setSelection'](_0x8edf14),_0x422374['commands']['get']('mergeTableCells')['refresh'](),_0x422374['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x323efd=_0x17d458['filter'](_0x49ff0a=>'$graveyard'!=_0x49ff0a['root']['rootName']);_0x323efd['length']>0x0&&_0x326d17['setSelection'](_0x323efd);for(const _0x586c93 of _0x17d458)_0x586c93['detach']();});});for(const _0x39ec2b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x544870=_0x422374['commands']['get'](_0x39ec2b);_0x544870['on']('set:isEnabled',(_0x1301f0,_0x50481a,_0x2473a5)=>{if(_0x2473a5){const _0x1bb63d=_0x422374['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2b4f9a=>_0x2b4f9a['is']('element','tableCell'));this['_areMergableCells'](_0x544870['value'],_0x1bb63d)||(_0x1301f0['return']=!0x1,_0x1301f0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1398ef=this['editor']['commands']['get']('mergeTableCells'),_0x59a753=this['editor']['plugins']['get']('TableUtils');if(!_0x1398ef['isEnabled'])return!0x1;const _0x54cea6=_0x59a753['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3a0fa9 of _0x54cea6)for(const _0x3b9355 of _0x54cea6)if(_0x3a0fa9!=_0x3b9355&&!this['_areMergableCells'](_0x3a0fa9,_0x3b9355))return!0x1;return!0x0;}['_areMergableCells'](_0x2d86b4,_0x2ce58){const _0x757fde=this['editor']['plugins']['get']('TrackChangesEditing'),_0x209113=this['editor']['model']['createRangeOn'](_0x2d86b4),_0x437d13=this['editor']['model']['createRangeOn'](_0x2ce58),_0x4d4500=new Set(),_0x35b4c1=new Set();for(const _0x4f7f29 of _0x757fde['getSuggestions']())if(('insertion'==_0x4f7f29['type']||'deletion'==_0x4f7f29['type']||'mergeTableCells'==_0x4f7f29['subType'])&&_0x4f7f29['isInContent']){for(const _0x5cb3e7 of _0x4f7f29['getRanges']())_0x5cb3e7['containsRange'](_0x209113,!0x0)&&_0x4d4500['add'](_0x4f7f29['type']+':'+_0x4f7f29['author']['id']),_0x5cb3e7['containsRange'](_0x437d13,!0x0)&&_0x35b4c1['add'](_0x4f7f29['type']+':'+_0x4f7f29['author']['id']);}if(_0x4d4500['size']!=_0x35b4c1['size'])return!0x1;for(const _0x4ac24c of _0x4d4500)if(!_0x35b4c1['has'](_0x4ac24c))return!0x1;return!0x0;}}class Ct extends _0x8725f3{static get['requires'](){return[At];}['afterInit'](){const _0x25116c=this['editor'];if(!_0x25116c['plugins']['has']('TableEditing'))return;const _0x25b1ba=_0x25116c['locale'],_0x721716=_0x25116c['plugins']['get']('TrackChangesEditing');_0x721716['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x721716['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x721716['registerBlockAttribute']('headingRows'),_0x721716['registerBlockAttribute']('headingColumns'),_0x721716['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x25b1ba,'FORMAT_HEADER_ROW')),_0x721716['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x25b1ba,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19ba7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f84a0=this['editor']['plugins']['get']('TableUtils'),_0x2f96d9=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x4c11d8({showActiveMarker:_0x5c2a83=!0x0,setDataAttribute:_0x4e59b4=!0x0}={}){return(_0x12631c,_0x14000a,_0x544fad)=>{const {type:_0x5dc9de,id:_0x46e0fa}=_0x19ba7f['_splitMarkerName'](_0x14000a['markerName']),_0x3c78b6=_0x19ba7f['getSuggestion'](_0x46e0fa),_0x38ec24=_0x3c78b6['data'];if('formatBlock'!=_0x3c78b6['type']||!_0x38ec24||'setTableColumnHeader'!=_0x38ec24['commandName'])return;if(_0x14000a['item'])return void _0x12631c['stop']();if(!_0x544fad['consumable']['consume'](_0x14000a['markerRange'],_0x12631c['name']))return;const _0x3c4ea7=_0x14000a['markerRange']['start']['nodeAfter'],_0x468397=_0x14000a['markerRange']['end']['nodeBefore'],_0x4823ca=_0x3c4ea7['parent']['parent'],{column:_0x2a6a62}=_0x4f84a0['getCellLocation'](_0x3c4ea7),{column:_0x5de75d}=_0x4f84a0['getCellLocation'](_0x468397);for(let _0x45a960=_0x2a6a62;_0x45a960<=_0x5de75d;_0x45a960++){const _0x2f3566=_0x4f84a0['createTableWalker'](_0x4823ca,{'column':_0x45a960,'includeAllSlots':!0x1});for(const _0x14d749 of _0x2f3566){const _0x59684c=_0x14d749['cell'],_0x5eb0d9=_0x544fad['mapper']['toViewElement'](_0x59684c);_0x544fad['writer']['addClass']('ck-suggestion-marker-'+_0x5dc9de,_0x5eb0d9),_0x4e59b4&&_0x544fad['writer']['setAttribute']('data-suggestion',_0x46e0fa,_0x5eb0d9),_0x544fad['mapper']['bindElementToMarker'](_0x5eb0d9,_0x14000a['markerName']),_0x5c2a83&&(_0x19ba7f['activeMarkers']['includes'](_0x14000a['markerName'])?_0x544fad['writer']['addClass']('ck-suggestion-marker--active',_0x5eb0d9):_0x544fad['writer']['removeClass']('ck-suggestion-marker--active',_0x5eb0d9));}}};}_0x19ba7f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f96d9),_0x19ba7f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f96d9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4c11d8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47bf19,_0x2da76a,_0x26cc51)=>{_0x26cc51['options']['showSuggestionHighlights']&&_0x4c11d8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x47bf19,_0x2da76a,_0x26cc51);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x38faa5,_0xbce978,_0x32630d)=>{const {type:_0x2c4fcc,id:_0x41d9d3}=_0x19ba7f['_splitMarkerName'](_0xbce978['markerName']),_0x19e81e=_0x19ba7f['getSuggestion'](_0x41d9d3),_0x8843c3=_0x19e81e['data'];if('formatBlock'!=_0x19e81e['type']||!_0x8843c3||'setTableColumnHeader'!=_0x8843c3['commandName'])return;const _0x5d0556=_0x32630d['mapper']['markerNameToElements'](_0xbce978['markerName']);if(_0x5d0556){for(const _0x3ea4f1 of _0x5d0556)_0x32630d['writer']['removeClass']('ck-suggestion-marker-'+_0x2c4fcc,_0x3ea4f1),_0x32630d['writer']['removeClass']('ck-suggestion-marker--active',_0x3ea4f1),_0x32630d['writer']['removeAttribute']('data-suggestion',_0x3ea4f1),_0x32630d['mapper']['unbindElementFromMarkerName'](_0x3ea4f1,_0xbce978['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51ed31=this['editor'],_0x14f739=_0x51ed31['locale'];function _0x34cb89(_0x3951fc){return{'type':'format','content':o(_0x14f739,'*Format:*\x20%0',_0x3951fc)};}_0x51ed31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b627a=>{if('formatBlock'!=_0x3b627a['type'])return;const {data:_0xc3d11}=_0x3b627a;if(_0xc3d11){if('setTableRowHeader'==_0xc3d11['commandName']){const _0x16ddc1=_0xc3d11['commandParams'][0x0]['forceValue'];return _0x34cb89(o(_0x14f739,_0x16ddc1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xc3d11['commandName']){const _0x38fe05=_0xc3d11['commandParams'][0x0]['forceValue'];return _0x34cb89(o(_0x14f739,_0x38fe05?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x8725f3{['afterInit'](){const _0x1d6d3c=this['editor'],_0x2a23d7=_0x1d6d3c['locale'],_0x3c962b=_0x1d6d3c['plugins']['get']('TrackChangesEditing');function _0x53e6d8(_0x2ca5b4){return{'type':'format','content':''+o(_0x2a23d7,'*Set\x20table\x20type:*\x20%0',_0x2ca5b4)};}_0x1d6d3c['plugins']['has']('TableLayout')&&(_0x3c962b['enableCommand']('insertTableLayout'),_0x3c962b['enableDefaultAttributesIntegration']('tableType'),_0x3c962b['registerBlockAttribute']('tableType'),_0x3c962b['descriptionFactory']['registerElementLabel'](_0x23b548=>_0x23b548['is']('element','table')&&'layout'===_0x23b548['getAttribute']('tableType'),_0x411e06=>o(_0x2a23d7,'ELEMENT_LAYOUT_TABLE',_0x411e06)),_0x3c962b['descriptionFactory']['registerDescriptionCallback'](_0x360c60=>{const {data:_0x5a72bb}=_0x360c60;if(_0x5a72bb&&'tableType'==_0x5a72bb['key'])switch(_0x5a72bb['newValue']){case'layout':return _0x53e6d8(o(_0x2a23d7,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x53e6d8(o(_0x2a23d7,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x4b1bf7=>[_0x4b1bf7,null]));class Nt extends _0x8725f3{static get['requires'](){return[At];}['afterInit'](){const _0x1b23fb=this['editor'];if(!_0x1b23fb['plugins']['has']('TableClipboard'))return;const _0x2f76e3=_0x1b23fb['plugins']['get']('TrackChangesEditing'),_0x4ddd6c=_0x1b23fb['plugins']['get']('TableUtils'),_0x57f038=_0x1b23fb['plugins']['get'](At),_0x3136ed=_0x1b23fb['plugins']['get']('TableClipboard'),_0x4e4afb=_0x1b23fb['plugins']['get']('TableSelection'),_0x3e1a81=_0x1b23fb['plugins']['get'](_0x24f075);_0x57f038['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1b23fb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1b23fb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x17e0c4=null,_0x2026bc=!0x1;_0x3e1a81['on']('contentInsertion',(_0x5ed430,_0x167f2d)=>{_0x2026bc='paste'===_0x167f2d['method'];}),_0x1b23fb['model']['on']('insertContent',(_0x2b3913,_0x1f022)=>{if(!_0x2026bc&&null===_0x4e4afb['getSelectedTableCells']())return;const [_0x179790,_0x15a8ba]=_0x1f022,_0x211849=_0x1f022[_0x1f022['length']-0x1];_0x211849&&_0x211849['forceDefaultExecution']||_0x2f76e3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5c3774,_0x454b37,_0x5ef439,_0x297c39,_0x34783e){if(_0x454b37&&!_0x454b37['is']('documentSelection'))return!0x1;const _0x226698=_0x34783e['getTableIfOnlyTableInContent'](_0x5c3774,_0x5ef439);if(!_0x226698||!Ue(_0x226698,void 0x0,_0x297c39))return!0x1;const _0x225f7f=_0x297c39['getSelectionAffectedTableCells'](_0x5ef439['document']['selection']);if(!_0x225f7f['length'])return!0x1;const _0x5d6530=_0x225f7f[0x0]['findAncestor']('table'),_0x3b4a2a=_0x297c39['getRowIndexes'](_0x225f7f),_0x395e7e=_0x297c39['getColumnIndexes'](_0x225f7f),_0x4e867a={'startRow':_0x3b4a2a['first'],'endRow':_0x3b4a2a['last'],'startColumn':_0x395e7e['first'],'endColumn':_0x395e7e['last']};return 0x1==_0x225f7f['length']&&(_0x4e867a['endRow']+=_0x297c39['getRows'](_0x226698)-0x1,_0x4e867a['endColumn']+=_0x297c39['getColumns'](_0x226698)-0x1),Ue(_0x5d6530,_0x4e867a,_0x297c39);}(_0x179790,_0x15a8ba,_0x1b23fb['model'],_0x4ddd6c,_0x3136ed)&&(_0x2b3913['stop'](),_0x17e0c4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1b23fb['model']['change'](()=>{_0x1b23fb['model']['insertContent'](_0x1f022[0x0],_0x1f022[0x1],_0x1f022[0x2],{'forceDefaultExecution':!0x0});const _0x8b8554=_0xd0f9be(),{rowInsertionRanges:_0x2e55f1,columnInsertionRanges:_0x1344b8,insertionRanges:_0x2417b7,deletionRanges:_0x43feaf,cells:_0x3fe11c}=_0x17e0c4;_0x2e55f1['length']&&_0x2f76e3['markMultiRangeInsertion'](_0x2e55f1,'tablePasteRow',{'tablePasteChainId':_0x8b8554}),_0x1344b8['length']&&_0x2f76e3['markMultiRangeInsertion'](_0x1344b8,'tablePasteColumn',{'tablePasteChainId':_0x8b8554}),_0x2417b7['length']&&(_0x2f76e3['markMultiRangeInsertion'](_0x2417b7,'tablePaste',{'tablePasteChainId':_0x8b8554,'skipNestingCheck':!0x0}),_0x2417b7['forEach'](_0x16a852=>_0x16a852['detach']?.())),_0x43feaf['length']&&(_0x2f76e3['markMultiRangeDeletion'](_0x43feaf,'tablePaste',{'tablePasteChainId':_0x8b8554,'skipNestingCheck':!0x0}),_0x43feaf['forEach'](_0x3cd366=>_0x3cd366['detach']?.()));const _0x5e73d7=_0x2f76e3['markMultiRangeBlockFormat'](_0x3fe11c['map'](({element:_0x5dbcfe})=>_0x5dbcfe),{'formatGroupId':_0xd0f9be()},[],'tablePasteCell',{'tablePasteChainId':_0x8b8554});if(_0x5e73d7){const _0x1ec6d0=_0x5e73d7['getMarkers'](),_0x4c8832=[];for(const {element:_0x482366,attributes:_0x5641ff}of _0x3fe11c){if(!_0x5641ff)continue;const _0x731482=_0x1b23fb['model']['createRangeOn'](_0x482366),_0x510ab7=_0x1ec6d0['find'](_0x203837=>_0x203837['getRange']()['isEqual'](_0x731482));_0x510ab7&&_0x4c8832['push']([_0x510ab7['name'],_0x5641ff]);}_0x4c8832['length']&&_0x5e73d7['setAttribute']('markerAttributes',Object['fromEntries'](_0x4c8832));}_0x17e0c4=null;}));},{'priority':_0x4c5029['high']+0xa}),_0x3e1a81['on']('contentInsertion',()=>{_0x2026bc=!0x1;},{'priority':'lowest'}),_0x1b23fb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x59f1c2,_0x454e07)=>{const [_0x231020,_0x1559a5,,_0x2ec788]=_0x454e07;if(!_0x17e0c4)return;_0x59f1c2['stop']();const _0x109ef6=_0x231020['cell'],_0x1aeda7=_0x1559a5,_0x5a6d31=Oe(_0x109ef6),_0x5b9124=Oe(_0x1aeda7);_0x59f1c2['return']=_0x109ef6;let _0x2a128a=null,_0x206f1d=null;if(_0x5b9124||_0x5a6d31){if(_0x5a6d31&&!_0x5b9124){_0x2ec788['remove'](_0x109ef6['getChild'](0x0));for(const _0x2346e4 of Array['from'](_0x1aeda7['getChildren']()))_0x2ec788['insert'](_0x2346e4,_0x109ef6,'end');const _0x577bb7=_0x17e0c4['rowInsertionIndexes']['includes'](_0x231020['row']),_0xb1667e=_0x17e0c4['columnInsertionIndexes']['includes'](_0x231020['column']);_0x577bb7||_0xb1667e||(_0x2a128a=_0x3e3f9b['fromRange'](_0x2ec788['createRangeIn'](_0x109ef6)));}else _0x5b9124&&!_0x5a6d31&&(_0x206f1d=_0x2ec788['createRangeIn'](_0x109ef6));}else{const _0x13703a=_0x2ec788['createElement']('tableCellSuggestion'),_0x4d5fe5=_0x2ec788['createElement']('tableCellSuggestion');_0x2ec788['wrap'](_0x2ec788['createRangeIn'](_0x109ef6),_0x4d5fe5),_0x2ec788['insert'](_0x13703a,_0x109ef6,0x0);for(const _0x3ba797 of Array['from'](_0x1aeda7['getChildren']()))_0x2ec788['insert'](_0x3ba797,_0x13703a,'end');_0x2a128a=_0x3e3f9b['fromRange'](_0x2ec788['createRangeOn'](_0x13703a)),_0x206f1d=_0x3e3f9b['fromRange'](_0x2ec788['createRangeOn'](_0x4d5fe5));}const _0x23fe0e=Array['from'](_0x1aeda7['getAttributes']())['filter'](([_0x32ef71])=>Be['includes'](_0x32ef71));_0x17e0c4['cells']['push']({'element':_0x109ef6,'attributes':_0x23fe0e['length']?Object['fromEntries'](_0x23fe0e):null}),_0x2a128a&&_0x17e0c4['insertionRanges']['push'](_0x2a128a),_0x206f1d&&_0x17e0c4['deletionRanges']['push'](_0x206f1d);},{'priority':'high'}),_0x4ddd6c['on']('insertColumns',(_0x2d3fa5,_0x242877)=>{const [_0x498657,_0x2bb4b3={}]=_0x242877;if(!_0x17e0c4)return;const _0x3fe07d=_0x2bb4b3['at']||0x0,_0x14b53a=_0x2bb4b3['columns']||0x1;_0x17e0c4['columnInsertionIndexes']=new Array(_0x14b53a)['fill'](_0x3fe07d)['map']((_0x416aa8,_0x3ff814)=>_0x416aa8+_0x3ff814);for(const {cell:_0x15e358}of _0x4ddd6c['createTableWalker'](_0x498657,{'startColumn':_0x3fe07d,'endColumn':_0x3fe07d+_0x14b53a-0x1}))_0x17e0c4['columnInsertionRanges']['push'](_0x1b23fb['model']['createRangeOn'](_0x15e358));},{'priority':'low'}),_0x4ddd6c['on']('insertRows',(_0x4a64c3,_0x5203ac)=>{const [_0x399ac7,_0x42cdef={}]=_0x5203ac;if(!_0x17e0c4)return;const _0x3cfe80=_0x42cdef['at']||0x0,_0x55a16a=_0x42cdef['rows']||0x1;_0x17e0c4['rowInsertionIndexes']=new Array(_0x55a16a)['fill'](_0x3cfe80)['map']((_0x12b508,_0x2ae90c)=>_0x12b508+_0x2ae90c);for(const {cell:_0x2c681a}of _0x4ddd6c['createTableWalker'](_0x399ac7,{'startRow':_0x3cfe80,'endRow':_0x3cfe80+_0x55a16a-0x1}))_0x17e0c4['rowInsertionRanges']['push'](_0x1b23fb['model']['createRangeOn'](_0x2c681a));},{'priority':'low'}),_0x2f76e3['descriptionFactory']['registerDescriptionCallback'](_0x24a8e1=>{if(_0x24a8e1['subType']&&_0x24a8e1['subType']['startsWith']('tablePaste'))return _0x24a8e1['previous']?{}:{'type':'insertion','content':o(_0x1b23fb['locale'],'*Replace\x20table\x20cells*')};});const _0x121316=()=>!0x1;for(const _0x328d47 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2f76e3['_suggestionFactory']['registerCustomCallback']('insertion',_0x328d47,'join',_0x121316),_0x2f76e3['_suggestionFactory']['registerCustomCallback']('deletion',_0x328d47,'join',_0x121316),_0x2f76e3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x328d47,'join',_0x121316);_0x2f76e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x121316),_0x2f76e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5ae060,_0xe96237,_0x423032)=>{const _0x46721d=_0x5ae060['map'](_0x8b69fc=>_0x8b69fc['getContainedElement']())['filter'](_0x178456=>_0x178456),_0x1170cb=new Map(_0x46721d['map'](_0x16995b=>[_0x16995b,null]));if(_0x17e0c4){for(const {element:_0x2d2a8f,attributes:_0x3c9d02}of _0x17e0c4['cells'])_0x3c9d02&&_0x1170cb['set'](_0x2d2a8f,_0x3c9d02);}else{if(_0x423032&&_0x423032['markerAttributes'])for(const [_0x4d930a,_0x433bf5]of Object['entries'](_0x423032['markerAttributes'])){const _0xbd50a5=_0x1b23fb['model']['markers']['get'](_0x4d930a),_0x33beb0=_0xbd50a5?_0xbd50a5['getRange']()['getContainedElement']():null;_0x33beb0&&_0x1170cb['set'](_0x33beb0,_0x433bf5);}}_0x1b23fb['model']['change'](_0xa9c550=>{for(const [_0x1fea92,_0xadafaf]of _0x1170cb)_0xa9c550['setAttributes']({...xe,..._0xadafaf},_0x1fea92);});});const _0x30e88b=(_0x33d0a6,_0x1ed0b0)=>{_0x2f76e3['_suggestionFactory']['registerCustomCallback'](_0x33d0a6,'tablePaste',_0x1ed0b0,(_0x3dbe5c,_0x4072ba,_0x3429a0)=>{_0x1b23fb['model']['change'](_0x320aa9=>{const _0x2333d3=[];for(const _0x44605d of _0x3dbe5c){const _0x5f26bb=_0x44605d['start']['nodeAfter'];_0x5f26bb['is']('element','tableCellSuggestion')&&_0x2333d3['push'](_0x5f26bb);}_0x2f76e3['_suggestionFactory']['getSuggestionCallback'](_0x33d0a6,null,_0x1ed0b0)(_0x3dbe5c,_0x4072ba,_0x3429a0);for(const _0x4de63b of _0x2333d3)'$graveyard'!=_0x4de63b['root']['rootName']&&_0x320aa9['unwrap'](_0x4de63b);});});};_0x30e88b('insertion','accept'),_0x30e88b('insertion','discard'),_0x30e88b('deletion','accept'),_0x30e88b('deletion','discard'),_0x2f76e3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x43e88c=>{const _0x474106=_0x43e88c['map'](_0x2cf3df=>_0x2cf3df['getContainedElement']()),_0xd51c38=_0x474106[0x0]['findAncestor']('table'),{minRow:_0x4dfc1d,maxRow:_0x312300}=_0x57f038['_getCoordsForCells'](_0x474106);_0x4ddd6c['removeRows'](_0xd51c38,{'at':_0x4dfc1d,'rows':_0x312300-_0x4dfc1d+0x1});}),_0x2f76e3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2850f5=>{const _0x5281d7=_0x2850f5['map'](_0xbaa163=>_0xbaa163['getContainedElement']()),_0x5b4176=_0x5281d7[0x0]['findAncestor']('table'),{minColumn:_0x268aed,maxColumn:_0x52db2c}=_0x57f038['_getCoordsForCells'](_0x5281d7);_0x4ddd6c['removeColumns'](_0x5b4176,{'at':_0x268aed,'columns':_0x52db2c-_0x268aed+0x1});});const _0x544897=(_0xb20fa7,_0x50afd6)=>{if(!_0x50afd6['subType']||!_0x50afd6['subType']['startsWith']('tablePaste'))return;const _0x5c87dc=_0x50afd6['attributes']['tablePasteChainId'],_0x21ce00=_0x2f76e3['getSuggestions']()['filter'](_0x4d23c8=>_0x4d23c8['isInContent']&&_0x4d23c8['attributes']&&_0x4d23c8['attributes']['tablePasteChainId']==_0x5c87dc);_0x21ce00['length']&&_0x50afd6['getAllAdjacentSuggestions']()['length']!=_0x21ce00['length']&&_0x21ce00['reduce']((_0x4c6d7a,_0xd24df3)=>(_0x4c6d7a['next']=_0xd24df3,_0xd24df3['previous']=_0x4c6d7a,_0xd24df3));};function _0x4a18af(_0x339bcb,_0x3e8097=!0x0){const {id:_0x18716f,authorId:_0x1fac65}=_0x2f76e3['_splitMarkerName'](_0x339bcb['markerName']),_0x49b494=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xd70dec=_0x2f76e3['activeMarkers']['includes'](_0x339bcb['markerName']);return _0xd70dec&&_0x49b494['push']('ck-suggestion-marker--active'),{'classes':_0x49b494,'attributes':{'data-suggestion':_0x18716f,'data-author-id':_0x1fac65},'priority':_0xd70dec&&_0x3e8097?0xbc2:0xbb8};}_0x2f76e3['on']('suggestionLoaded',_0x544897,{'priority':'high'}),_0x2f76e3['on']('suggestionUnloaded',_0x544897,{'priority':'high'}),_0x1b23fb['model']['document']['registerPostFixer'](()=>{let _0x102742=!0x1;const _0x12dde6=Array['from'](_0x1b23fb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34d6ce,data:_0x1d3acc}of _0x12dde6){const {group:_0xe68506,type:_0x2438d7,id:_0x4cae37}=_0x2f76e3['_splitMarkerName'](_0x34d6ce);if('suggestion'!=_0xe68506||'deletion'!=_0x2438d7||_0x1d3acc['oldRange'])continue;if(!_0x2f76e3['hasSuggestion'](_0x4cae37))continue;const _0x1e27d6=_0x2f76e3['getSuggestion'](_0x4cae37)['getRanges'](),_0x2ce6a3=_0x1b23fb['plugins']['get']('Users')['me'];for(const _0x1c6e0a of _0x2f76e3['getSuggestions']()){if(!_0x1c6e0a['isInContent']||_0x1c6e0a['author']!=_0x2ce6a3)continue;if('formatBlock'!=_0x1c6e0a['type']||'tablePasteCell'!=_0x1c6e0a['subType'])continue;if(_0x1c6e0a['getRanges']()['every'](_0x37ecb0=>_0x1e27d6['some'](_0x1138c7=>_0x1138c7['containsRange'](_0x37ecb0,!0x0)))){for(const _0x1641b4 of _0x1c6e0a['getAllAdjacentSuggestions']())_0x1641b4['isInContent']&&(_0x1641b4['discard'](),_0x102742=!0x0);}}}return _0x102742;}),_0x1b23fb['model']['document']['registerPostFixer'](_0x32d6f7=>{const _0x17e18c=_0x1b23fb['commands']['get']('redo');if(!_0x17e18c||!_0x17e18c['_createdBatches']['has'](_0x32d6f7['batch']))return!0x1;let _0x5bdc8c=!0x1;const _0x122cf3=_0x1b23fb['plugins']['get']('Users')['me'],_0x245719=_0x1b23fb['model']['document']['differ']['getChanges'](),_0x8110ce=Array['from'](_0x1b23fb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x33756a,data:_0x4721ff})=>{const {group:_0x44f498,subType:_0x49789d,authorId:_0x5be043}=_0x2f76e3['_splitMarkerName'](_0x33756a);return'suggestion'==_0x44f498&&'tablePaste'==_0x49789d&&_0x5be043==_0x122cf3['id']&&!_0x4721ff['oldRange'];});for(const _0x194d60 of _0x245719){if('insert'!=_0x194d60['type']||'tableCellSuggestion'!=_0x194d60['name']||0x1!=_0x194d60['length'])continue;const _0x2e887c=_0x32d6f7['createRange'](_0x194d60['position'],_0x194d60['position']['getShiftedBy'](0x1));if(!_0x8110ce['find'](({data:_0x1ca354})=>_0x1ca354['newRange']['isEqual'](_0x2e887c))){for(const {name:_0x424a2f,data:_0x4d85f6}of _0x8110ce)if(_0x2e887c['containsRange'](_0x4d85f6['newRange'])){_0x32d6f7['updateMarker'](_0x424a2f,{'range':_0x2e887c}),_0x5bdc8c=!0x0;break;}}}return _0x5bdc8c;}),_0x1b23fb['model']['document']['registerPostFixer'](_0x3b26ba=>{let _0x22d9d=!0x1;const _0x4d0a6b=_0x1b23fb['plugins']['get']('Users')['me'],_0x43843f=_0x2f76e3['getSuggestions']()['filter'](_0x54fbea=>_0x54fbea['isInContent']&&_0x54fbea['author']==_0x4d0a6b),_0x3a576d=new Set(),_0x238078=new Set();for(const _0x41f3e6 of _0x43843f)if('tablePaste'==_0x41f3e6['subType'])for(const _0x2bd3e0 of _0x41f3e6['getMarkers']()){const _0x2f54aa=_0x2bd3e0['getRange']()['getContainedElement']();if(_0x2f54aa){if(_0x2f54aa['is']('element','tableCellSuggestion')&&Oe(_0x2f54aa)){_0x41f3e6['removeMarker'](_0x2bd3e0['name']),_0x3a576d['add'](_0x2f54aa),_0x22d9d=!0x0;const _0x5bb4e3=_0x2f54aa['nextSibling'],_0x2954a5=_0x2f54aa['previousSibling'],_0x4c7430=_0x5bb4e3&&_0x5bb4e3['is']('element','tableCellSuggestion'),_0x50e5ac=_0x2954a5&&_0x2954a5['is']('element','tableCellSuggestion');_0x4c7430&&!_0x3a576d['has'](_0x5bb4e3)&&_0x238078['add'](_0x5bb4e3),_0x50e5ac&&!_0x3a576d['has'](_0x2954a5)&&_0x238078['add'](_0x2954a5);}else _0x2f54aa['is']('element','paragraph')&&_0x2f54aa['isEmpty']&&(_0x41f3e6['removeMarker'](_0x2bd3e0['name']),_0x22d9d=!0x0);}}else{if('tablePasteCell'==_0x41f3e6['subType']){if(!_0x41f3e6['attributes']||!_0x41f3e6['attributes']['tablePasteChainId'])continue;const _0x3bbc18=_0x41f3e6['attributes']['markerAttributes'];if(_0x3bbc18&&Object['keys'](_0x3bbc18)['length'])continue;const _0x2ccba4=_0x41f3e6['attributes']['tablePasteChainId'];let _0x91b9c0=!0x0,_0x113076=!0x0;for(const _0x3d02e7 of _0x43843f)if(_0x3d02e7['subType']&&_0x3d02e7['subType']['startsWith']('tablePaste')){if(!_0x3d02e7['attributes']['tablePasteChainId']){_0x113076=!0x1;break;}if(_0x3d02e7['id']!=_0x41f3e6['id']&&_0x3d02e7['attributes']['tablePasteChainId']==_0x2ccba4){_0x91b9c0=!0x1;break;}}_0x113076&&_0x91b9c0&&(_0x41f3e6['removeMarkers'](),_0x22d9d=!0x0);}}for(const _0x8b46df of _0x3a576d)_0x3b26ba['remove'](_0x8b46df);for(const _0x2411a9 of _0x238078)_0x3b26ba['unwrap'](_0x2411a9);return _0x22d9d;}),_0x1b23fb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x571c30=>_0x4a18af(_0x571c30),'converterPriority':'high'}),_0x1b23fb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x484461,_0x5cea94)=>_0x5cea94['options']['showSuggestionHighlights']?_0x4a18af(_0x484461,!0x1):null,'converterPriority':'high'});const _0x5b99b3=_0x1b23fb['editing']['view'];this['listenTo'](_0x5b99b3['document'],'clipboardOutput',(_0x52734c,_0x20f69d)=>{const _0x482542=[];for(const _0x3e0dda of _0x5b99b3['createRangeIn'](_0x20f69d['content'])['getItems']())_0x3e0dda['is']('element','suggestion-td')&&_0x482542['push'](_0x3e0dda);_0x5b99b3['change'](_0x53a92c=>{for(const _0x9c3599 of _0x482542)_0x53a92c['move'](_0x53a92c['createRangeIn'](_0x9c3599),_0x53a92c['createPositionBefore'](_0x9c3599)),_0x53a92c['remove'](_0x9c3599);});});}}function Oe(_0x14d204){if(_0x14d204['isEmpty'])return!0x0;const _0x54a27a=_0x14d204['getChild'](0x0);return _0x54a27a['is']('element','paragraph')&&_0x54a27a['isEmpty'];}function Ue(_0x3ce391,_0x2b5d77={},_0x9484cf){for(const {isAnchor:_0x4fa828,cellHeight:_0x5f956d,cellWidth:_0x2321bd}of _0x9484cf['createTableWalker'](_0x3ce391,{'includeAllSlots':!0x0,..._0x2b5d77}))if(!_0x4fa828||0x1!=_0x5f956d||0x1!=_0x2321bd)return!0x1;return!0x0;}class Dt extends _0x8725f3{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x565c84=this['editor']['plugins']['get']('TrackChangesEditing');_0x565c84['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x565c84['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x565c84['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x565c84['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x565c84['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x565c84['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xf6ae2a,_0x106f0a){const _0x5652dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2aac95=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5b0505=_0x106f0a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x43193d=_0x2aac95['getColumnGroupElement'](_0x5b0505);let _0x331dfe=_0x43193d?_0x2aac95['getTableColumnsWidths'](_0x43193d):null,_0x48e2b3=_0x5b0505['getAttribute']('tableWidth')||null;const _0x53a3d9=_0x106f0a['tableWidth']||_0x48e2b3,_0x587fa0=_0x106f0a['columnWidths']||_0x331dfe,_0x250389=this['editor']['plugins']['get']('Users')['me'];for(const _0x307e55 of _0x5652dc['getSuggestions']()){const _0x5e70a7=_0x307e55['getContainedElement']();if('resizeTable'===_0x307e55['subType']&&_0x5e70a7===_0x5b0505){_0x307e55['author']!==_0x250389&&_0x307e55['discard']();const _0x4cc399=_0x307e55['data']['commandParams'];_0x48e2b3=_0x4cc399[0x0]['tableWidth'],_0x331dfe=_0x4cc399[0x0]['columnWidths'];break;}}_0xf6ae2a({'table':_0x5b0505,'tableWidth':_0x53a3d9,'columnWidths':_0x587fa0}),_0x5652dc['markBlockFormat'](_0x5b0505,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x48e2b3,'columnWidths':_0x331dfe}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x421b29){if('formatBlock'!=_0x421b29['type']&&'formatInline'!=_0x421b29['type'])return;const {data:_0x284af8}=_0x421b29;if(_0x284af8&&'resizeTable'===_0x284af8['formatGroupId']){const _0x25e795='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x25e795)};}}}class $t extends _0x8725f3{['afterInit'](){const _0x76c2d4=this['editor'];_0x76c2d4['plugins']['has']('Template')&&_0x76c2d4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x8725f3{['afterInit'](){const _0x57aabd=this['editor'];if(!_0x57aabd['commands']['get']('insertTableOfContents'))return;_0x57aabd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x46075a=_0x57aabd['plugins']['get']('TrackChangesEditing'),_0x500db1=_0x57aabd['locale'];_0x46075a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5d67b3=>o(_0x500db1,'ELEMENT_TABLE_OF_CONTENTS',_0x5d67b3));}}class Bt extends _0x8725f3{['afterInit'](){const _0x5aea8a=this['editor'];if(!_0x5aea8a['plugins']['has']('Title'))return;const _0x3d9646=_0x5aea8a['plugins']['get']('TrackChangesEditing');_0x3d9646['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5aea8a['locale'],'ELEMENT_TITLE')),_0x5aea8a['model']['document']['registerPostFixer'](_0x33297c=>{let _0x14bf0e=!0x1;const _0xbc2da7=Array['from'](_0x5aea8a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3469e6,data:_0xae972a}of _0xbc2da7){const {group:_0x26bd18}=_0x3d9646['_splitMarkerName'](_0x3469e6);if('suggestion'!==_0x26bd18||!_0xae972a['newRange'])continue;const _0x35e035=_0xae972a['newRange'],_0x57691d=_0x35e035['end']['nodeBefore'];if(!_0x57691d||!_0x57691d['is']('element','title-content'))continue;if(!_0x35e035['start']['isTouching'](_0x35e035['end']))continue;const _0x5b2c1c=_0x5aea8a['model']['schema']['getNearestSelectionRange'](_0x35e035['end'],'forward');if(_0x5b2c1c&&_0x5b2c1c['isCollapsed']){const _0x1d6e74=_0x33297c['createRange'](_0x35e035['start'],_0x5b2c1c['start']);_0x1d6e74['isEqual'](_0x35e035)||(_0x33297c['updateMarker'](_0x3469e6,{'range':_0x1d6e74}),_0x14bf0e=!0x0);}_0x14bf0e||(_0x33297c['removeMarker'](_0x3469e6),_0x14bf0e=!0x0);}return _0x14bf0e;});}}class Tt extends _0x8725f3{['afterInit'](){const _0x1952be=this['editor'],_0x19ad07=_0x1952be['plugins']['get']('TrackChangesEditing');_0x1952be['plugins']['has']('Uploadcare')&&(_0x19ad07['enableCommand']('uploadcare'),_0x1952be['plugins']['has']('UploadcareImageEdit')&&(_0x19ad07['enableCommand']('uploadcareImageEdit'),_0x19ad07['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x19ad07['registerBlockAttribute']('uploadcareImageId'),_0x19ad07['descriptionFactory']['registerDescriptionCallback'](_0x7ed0c5=>{if('attribute'!=_0x7ed0c5['type'])return;const {data:_0x566274}=_0x7ed0c5;return _0x566274&&'uploadcareImageId'==_0x566274['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x8725f3{['afterInit'](){const _0x128e68=this['editor'],_0x2dc814=_0x128e68['plugins']['get']('TrackChangesEditing');_0x128e68['plugins']['has']('UndoEditing')&&(_0x2dc814['enableCommand']('undo'),_0x2dc814['enableCommand']('redo'));}}class Ot extends _0x8725f3{static get['requires'](){return[At];}['afterInit'](){const _0x7ecb25=this['editor'];if(!_0x7ecb25['plugins']['has']('TableCaptionEditing'))return;_0x7ecb25['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x8725f3{['tableProperties'];['tableCellProperties'];constructor(_0x3f17b4){super(_0x3f17b4),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2ca640=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1ae09d of this['tableProperties'])_0x2ca640['enableCommand'](_0x1ae09d,(_0x3a0895,_0x1f3293)=>{const _0x46788c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1ae09d,[_0x46788c],this['tableProperties'],'tableProperties',_0x3a0895,_0x1f3293);});_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2ca640['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5688ec,_0x321030)=>this['handleDiscardAction'](this['tableProperties'],_0x5688ec,_0x321030)),_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x536425 of this['tableCellProperties'])_0x2ca640['enableCommand'](_0x536425,(_0x36a029,_0x41ba16)=>{const _0x180033=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x536425,_0x180033,this['tableCellProperties'],'tableCellProperties',_0x36a029,_0x41ba16);});_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2ca640['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33664c,_0x3f995a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33664c,_0x3f995a)),_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2ca640['descriptionFactory']['registerDescriptionCallback'](_0x458c97=>this['handleSuggestionDescription'](_0x458c97)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x454c3e,_0x335c93,_0x4aa9c9,_0x50603c,_0x19313b,_0x41674c){const _0x2cb5ce=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x41674c['batch'],()=>{for(const _0xe4ea5e of _0x335c93){if(this['_getSuggestion'](_0xe4ea5e,_0x50603c))_0x19313b(_0x41674c);else{const _0xa698df={};for(const _0x455d4d of _0x4aa9c9){const _0x2cdbbf=_0xe4ea5e['getAttribute'](_0x455d4d);void 0x0!==_0x2cdbbf&&(_0xa698df[_0x455d4d]=_0x2cdbbf);}_0x19313b(_0x41674c),_0x2cb5ce['markBlockFormat'](_0xe4ea5e,{'commandParams':[_0xa698df]},[],_0x50603c);}}});}['handleDiscardAction'](_0xffa0cd,_0x19a0bf,_0x44ef1d){const _0x17e3c7=_0x19a0bf[0x0]['start']['nodeAfter'],_0x108186=_0x44ef1d['commandParams'][0x0];this['editor']['model']['change'](_0x299bce=>{for(const _0x3d1434 of _0xffa0cd)void 0x0!==_0x108186[_0x3d1434]?_0x299bce['setAttribute'](_0x3d1434,_0x108186[_0x3d1434],_0x17e3c7):_0x299bce['removeAttribute'](_0x3d1434,_0x17e3c7);});}['handleSuggestionDescription'](_0x1ad2a6){if(_0x1ad2a6['data'])switch(_0x1ad2a6['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'](_0x2b9a5f,_0x27dc3f){const _0x4a951f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x54f196 of _0x4a951f['getSuggestions']({'skipNotAttached':!0x0})){const _0x39d1db=_0x54f196['getContainedElement']();if(_0x54f196['subType']===_0x27dc3f&&_0x39d1db===_0x2b9a5f)return _0x54f196;}return null;}['_registerTablePropertiesAttributes'](){const _0x1a1efc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b2494=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x278031 of _0x5b2494){const _0x270b4d=_0x278031['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1a1efc['registerBlockAttribute'](_0x278031),_0x1a1efc['descriptionFactory']['registerAttributeLabel'](_0x278031,o(this['editor']['locale'],'FORMAT_'+_0x270b4d));}}}class Rt extends _0x8725f3{['afterInit'](){const _0x4005f2=this['editor'];if(!_0x4005f2['plugins']['has']('LineHeight'))return;const _0x2bcbb0=_0x4005f2['plugins']['get']('TrackChangesEditing'),_0x37b5db=_0x4005f2['locale'];_0x2bcbb0['enableDefaultAttributesIntegration']('lineHeight'),_0x2bcbb0['registerBlockAttribute']('lineHeight'),_0x2bcbb0['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x37b5db,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x8725f3{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5c3456,_0x5d7386,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41d59d){super(_0x41d59d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x37d331,_0x1027b1,_0x1bab0d,_0x45e238)=>{this['_model']['change'](()=>{for(const _0x37e922 of[..._0x45e238,..._0x1bab0d])this['_model']['markers']['has'](_0x37e922)&&_0x41d59d['editing']['reconvertMarker'](_0x37e922);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x41d59d['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(),_0x41d59d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x41d59d['config']['get']('trackChanges.trackFormatChanges'),_0x41d59d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x41d59d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x41d59d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xe94645=this['editor'],_0x1c32f4=(_0x223a39,_0x2616b3)=>{if('attribute'!=_0x223a39)return'ck-suggestion-marker-'+_0x223a39;const _0x2aa1cd=_0x2616b3['split']('|')[0x0];return this['_isBlockAttribute'](_0x2aa1cd)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xe94645['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4623c7=>{const {id:_0x13f6bb,authorId:_0xfde806,type:_0x127df6,subType:_0x5d685f}=this['_splitMarkerName'](_0x4623c7['markerName']),_0x1f2002=['ck-suggestion-marker',_0x1c32f4(_0x127df6,_0x5d685f)];let _0xa8b7e0=0xbb8;return this['activeMarkers']['includes'](_0x4623c7['markerName'])&&(_0x1f2002['push']('ck-suggestion-marker--active'),_0xa8b7e0=0xbc2),'deletion'==_0x127df6&&(_0xa8b7e0+=0x5),{'classes':_0x1f2002,'attributes':{'data-suggestion':_0x13f6bb,'data-author-id':_0xfde806},'priority':_0xa8b7e0};}}),_0xe94645['conversion']['for']('dataDowncast')['add'](_0x550a7d=>{_0x550a7d['on']('addMarker:suggestion',(_0x1d25ac,_0x7ebfb1,_0x11e325)=>{if(!_0x11e325['options']['showSuggestionHighlights'])return;const _0xc5d33c=_0x7ebfb1['item'];if(!_0xc5d33c)return;const _0x436634=_0x11e325['mapper']['toViewElement'](_0xc5d33c);_0xe94645['model']['schema']['isObject'](_0xc5d33c)&&_0x436634&&!_0x436634['getCustomProperty']('widget')&&_0x436634['is']('containerElement')&&_0x6e93eb(_0x436634,_0x11e325['writer']);},{'priority':'high'});}),_0xe94645['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x439bf3,_0x9334ef)=>{if(!_0x9334ef['options']['showSuggestionHighlights'])return null;const {id:_0x4aa674,authorId:_0x168ce2,type:_0x111abe,subType:_0x181489}=this['_splitMarkerName'](_0x439bf3['markerName']);return{'classes':['ck-suggestion-marker',_0x1c32f4(_0x111abe,_0x181489)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4aa674,'data-author-id':_0x168ce2}};}});const _0x5375b2=({showActiveMarkers:_0x7a14c=!0x0,isAttributeSuggestion:_0x1ac79e=!0x1}={})=>(_0x4701e9,_0x34eff1,_0x4c43bf)=>{if(!_0x34eff1['item'])return;const {id:_0x427444,authorId:_0xe875df}=this['_splitMarkerName'](_0x34eff1['markerName']);if(_0x1ac79e){const _0x4df439=this['_suggestions']['get'](_0x427444),_0x206568=this['_getAttributeKey'](_0x4df439);if(!this['_isBlockAttribute'](_0x206568))return;}if(_0x34eff1['item']['is']('selection'))return void _0x4c43bf['consumable']['consume'](_0x34eff1['item'],_0x4701e9['name']);const _0x5ec4cf=_0x4c43bf['mapper']['toViewElement'](_0x34eff1['item']);if(_0x34eff1['item']['is']('element')&&_0xe94645['model']['schema']['isBlock'](_0x34eff1['item'])&&!_0x5ec4cf['getCustomProperty']('addHighlight')){_0x4c43bf['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5ec4cf),_0x4c43bf['writer']['setAttribute']('data-suggestion',_0x427444,_0x5ec4cf),_0x4c43bf['writer']['setAttribute']('data-author-id',_0xe875df,_0x5ec4cf),_0x4c43bf['mapper']['bindElementToMarker'](_0x5ec4cf,_0x34eff1['markerName']),_0x7a14c&&(this['activeMarkers']['includes'](_0x34eff1['markerName'])?_0x4c43bf['writer']['addClass']('ck-suggestion-marker--active',_0x5ec4cf):_0x4c43bf['writer']['removeClass']('ck-suggestion-marker--active',_0x5ec4cf));for(const _0x4d110f of _0xe94645['model']['createRangeIn'](_0x34eff1['item'])['getItems']())_0x4c43bf['consumable']['consume'](_0x4d110f,_0x4701e9['name']);_0x4c43bf['consumable']['consume'](_0x34eff1['item'],_0x4701e9['name']);}};_0xe94645['conversion']['for']('dataDowncast')['add'](_0x114bde=>{_0x114bde['on']('addMarker:suggestion:formatBlock',(_0x3fbc6e,_0x284a1a,_0x3c1e70)=>{_0x3c1e70['options']['showSuggestionHighlights']&&_0x5375b2({'showActiveMarkers':!0x1})(_0x3fbc6e,_0x284a1a,_0x3c1e70);},{'priority':'highest'});}),_0xe94645['conversion']['for']('dataDowncast')['add'](_0xe457a5=>{_0xe457a5['on']('addMarker:suggestion:attribute',(_0x40fa59,_0x16902e,_0x2e4f88)=>{_0x2e4f88['options']['showSuggestionHighlights']&&_0x5375b2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x40fa59,_0x16902e,_0x2e4f88);},{'priority':'highest'});}),_0xe94645['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4d2c5c,_0x462f93)=>{if(_0x462f93['options']['showSuggestionHighlights']){const {id:_0x2d3b39,authorId:_0x709d4c}=this['_splitMarkerName'](_0x4d2c5c);return _0x4d2c5c['includes'](':split')||_0x4d2c5c['includes'](':merge')?{'group':'suggestion','name':_0x4d2c5c['substr'](0xb),'attributes':{'data-suggestion':_0x2d3b39,'data-author-id':_0x709d4c}}:null;}return{'group':'suggestion','name':_0x4d2c5c['substr'](0xb)};}}),_0xe94645['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1a271c,{writer:_0x4cdb45})=>{let _0x172cf8='suggestion:'+_0x1a271c['getAttribute']('suggestion-type')+':'+_0x1a271c['getAttribute']('id');return _0x1a271c['getAttribute']('marker-count')&&(_0x172cf8+=':'+_0x1a271c['getAttribute']('marker-count')),_0x4cdb45['createElement']('$marker',{'data-name':_0x172cf8});}}),_0xe94645['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xe94645['conversion']['for']('editingDowncast')['add'](_0x8cfcf3=>{_0x8cfcf3['on']('addMarker:suggestion:formatBlock',_0x5375b2(),{'priority':'high'});}),_0xe94645['conversion']['for']('editingDowncast')['add'](_0x599fc8=>{_0x599fc8['on']('addMarker:suggestion:attribute',_0x5375b2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xe94645['conversion']['for']('editingDowncast')['add'](_0x392a6e=>{_0x392a6e['on']('removeMarker:suggestion:formatBlock',(_0x3a6412,_0x5da578,_0x3faf66)=>{const _0xa618e=_0x3faf66['mapper']['markerNameToElements'](_0x5da578['markerName']);if(_0xa618e){for(const _0x3c9c93 of _0xa618e)_0x3c9c93['getCustomProperty']('addHighlight')||(_0x3faf66['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c9c93),_0x3faf66['writer']['removeAttribute']('data-suggestion',_0x3c9c93),_0x3faf66['writer']['removeAttribute']('data-author-id',_0x3c9c93),_0x3faf66['mapper']['unbindElementFromMarkerName'](_0x3c9c93,_0x5da578['markerName']));}},{'priority':'high'});}),_0xe94645['conversion']['for']('editingDowncast')['add'](_0x5be919=>{_0x5be919['on']('removeMarker:suggestion:attribute',(_0xf40b63,_0x4c368d,_0x3195bd)=>{const _0x593d03=_0x3195bd['mapper']['markerNameToElements'](_0x4c368d['markerName']);if(!_0x593d03)return;const {id:_0x42b6b7}=this['_splitMarkerName'](_0x4c368d['markerName']),_0xd48fd4=this['_suggestions']['get'](_0x42b6b7),_0x208856=this['_getAttributeKey'](_0xd48fd4);if(this['_isBlockAttribute'](_0x208856)){for(const _0x532cf8 of _0x593d03)_0x532cf8['getCustomProperty']('addHighlight')||(_0x3195bd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x532cf8),_0x3195bd['writer']['removeAttribute']('data-suggestion',_0x532cf8),_0x3195bd['writer']['removeAttribute']('data-author-id',_0x532cf8),_0x3195bd['mapper']['unbindElementFromMarkerName'](_0x532cf8,_0x4c368d['markerName']));}},{'priority':'high'});}),_0xe94645['model']['document']['registerPostFixer'](_0x25fe72=>{let _0x38e910=!0x1;const _0x5f0e5b=Array['from'](_0xe94645['model']['document']['differ']['getChangedMarkers']()),_0xa49c7f=new Set();for(const {name:_0x3a4481,data:_0x37f5c3}of _0x5f0e5b){const {group:_0x5d52c0,type:_0x4e38cd,subType:_0x2a9225,id:_0x335fd2}=this['_splitMarkerName'](_0x3a4481);if('suggestion'!==_0x5d52c0)continue;const _0x3e27d7=_0x2a9225?'suggestion:'+_0x4e38cd+':'+_0x2a9225+':'+_0x335fd2:'suggestion:'+_0x4e38cd+':'+_0x335fd2,_0x52aed2=_0xe94645['model']['markers']['getMarkersGroup'](_0x3e27d7),_0x34ee1f=_0xe94645['model']['markers']['get'](_0x3a4481),_0x6354ef=this['_suggestions']['get'](_0x335fd2);if(null!=_0x37f5c3['newRange']){'formatInline'==_0x4e38cd&&(_0x38e910=_0x38e910||Gt(_0x37f5c3['newRange'],_0x3a4481,_0x25fe72,_0xe94645['model']['schema']));const _0x2d087e='attribute'==_0x4e38cd&&this['_isBlockAttribute'](_0x2a9225['split']('|')[0x0]),_0x35333b='attribute'==_0x4e38cd&&this['_isInlineAttribute'](_0x2a9225['split']('|')[0x0]);if(_0x37f5c3['newRange']['isCollapsed']||'$graveyard'==_0x37f5c3['newRange']['root']['rootName']||'formatBlock'==_0x4e38cd&&!Jt(_0x37f5c3['newRange'])||_0x2d087e&&!Jt(_0x37f5c3['newRange'])||_0x35333b&&Kt(_0x37f5c3['newRange'])||'deletion'==_0x4e38cd&&Kt(_0x37f5c3['newRange'])||_0x34ee1f&&Ht(_0x34ee1f,_0x52aed2))_0x25fe72['removeMarker'](_0x3a4481),_0x38e910=!0x0;else{if(!_0x6354ef||!_0x6354ef['isInContent'])continue;if(_0x37f5c3['newRange']&&_0x37f5c3['oldRange']&&_0x37f5c3['newRange']['isEqual'](_0x37f5c3['oldRange']))continue;_0xa49c7f['add'](_0x6354ef);}}}return _0xa49c7f['size']>0x0&&(_0x38e910=!!this['_joinWithAdjacentSuggestions'](_0xa49c7f)||_0x38e910),_0x38e910;}),_0xe94645['model']['document']['registerPostFixer'](_0x425198=>{let _0x5906c1=!0x1;for(const _0x3cf8d4 of _0xe94645['model']['document']['differ']['getChanges']())if('insert'==_0x3cf8d4['type'])for(const _0x277025 of this['_suggestions']['values']()){if(_0x277025['isMultiRange']||!_0x277025['isInContent'])continue;const _0x2a1747='formatBlock'==_0x277025['type'],_0x2be628=this['_getAttributeKey'](_0x277025),_0x2598df=_0x2be628&&this['_isBlockAttribute'](_0x2be628);if(!_0x2a1747&&!_0x2598df)continue;const _0x21de4b=_0x277025['getFirstRange']();if(_0x21de4b['start']['parent']!=_0x21de4b['end']['parent']&&!_0x21de4b['end']['isAtEnd']){const _0x479176=_0xe94645['model']['createPositionAt'](_0x21de4b['start']['nodeAfter'],'end'),_0x278cd5=_0xe94645['model']['createRange'](_0x21de4b['start'],_0x479176);_0x425198['updateMarker'](_0x277025['getFirstMarker'](),{'range':_0x278cd5}),_0x5906c1=!0x0;}}return _0x5906c1;}),_0xe94645['model']['document']['registerPostFixer'](_0x541d49=>this['_processAttributeChanges'](_0x541d49)),_0xe94645['model']['document']['registerPostFixer'](_0x4cbf91=>!_0x4cbf91['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4cbf91)),_0xe94645['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xe94645['model']['document']['on']('change:data',(_0x324f07,_0x47bd10)=>{if(!_0x47bd10['isLocal']||_0x47bd10['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x43f629=_0xe94645['model']['document']['differ']['getChanges']();if(0x0==_0x43f629['length'])return;const _0x4d49da=[],_0x2d47d1=_0x43f629['filter'](_0xd1b517=>'attribute'==_0xd1b517['type']),_0x4e4289=_0x43f629['filter'](_0x1db1fb=>'insert'==_0x1db1fb['type']&&'$text'!=_0x1db1fb['name']);for(const _0x32dfda of _0x2d47d1)this['_isRegisteredAttribute'](_0x32dfda['attributeKey'])&&_0x4d49da['push']({'key':_0x32dfda['attributeKey'],'newValue':_0x32dfda['attributeNewValue'],'oldValue':_0x32dfda['attributeOldValue'],'range':qt(_0x32dfda['range'],_0xe94645['model'])});for(const _0x2852b0 of _0x4e4289){if('rename'!=_0x2852b0['action']&&'refresh'!=_0x2852b0['action'])continue;const _0x15f7fc=zt(_0x2852b0['position']['nodeAfter'],_0xe94645['model']),_0x689f3a=_0x2852b0['before'];'rename'==_0x2852b0['action']&&_0x4d49da['push']({'key':m,'newValue':_0x2852b0['name'],'oldValue':_0x689f3a['name'],'range':_0x15f7fc});for(const [_0x3f53b2,_0x1cb1e4]of _0x689f3a['attributes']){if(!this['_isRegisteredAttribute'](_0x3f53b2))continue;const _0x51df9c=_0x2852b0['attributes']['get'](_0x3f53b2);_0x1cb1e4!==_0x51df9c&&_0x4d49da['push']({'key':_0x3f53b2,'newValue':_0x51df9c,'oldValue':_0x1cb1e4,'range':_0x15f7fc});}for(const [_0x1899eb,_0x56bc25]of _0x2852b0['attributes'])this['_isRegisteredAttribute'](_0x1899eb)&&(_0x689f3a['attributes']['has'](_0x1899eb)||_0x4d49da['push']({'key':_0x1899eb,'newValue':_0x56bc25,'oldValue':null,'range':_0x15f7fc}));}0x0!=_0x4d49da['length']&&_0xe94645['model']['enqueueChange'](_0x47bd10,_0x29a846=>{const _0x24c1cf=_0xd0f9be();for(const {range:_0x2920b7,key:_0x38ae7b,oldValue:_0xebd00e,newValue:_0x4db256}of _0x4d49da)this['markAttributeChange'](_0x2920b7,_0x38ae7b,_0xebd00e,_0x4db256,{'groupId':_0x24c1cf});this['_reduceExistingSuggestions'](_0x29a846,_0x4d49da);});},{'priority':'lowest'}),_0xe94645['model']['markers']['on']('update:suggestion',(_0x551b8e,_0xd5e526,_0x33ab6c)=>{if(null==_0x33ab6c){const {id:_0x4106bd}=this['_splitMarkerName'](_0xd5e526['name']),_0x52e3bd=this['_suggestions']['get'](_0x4106bd);_0x52e3bd&&_0x52e3bd['addMarkerName'](_0xd5e526['name']);}}),_0xe94645['model']['document']['on']('change:data',()=>{const _0xc27937=Array['from'](_0xe94645['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4fe142=>'suggestion'===this['_splitMarkerName'](_0x4fe142['name'])['group']);if(0x0===_0xc27937['length'])return;_0xc27937['sort']((_0x2bbe97,_0x3e964a)=>{const _0x586877=_0x2bbe97['data']['oldRange'],_0xaafa66=_0x3e964a['data']['oldRange'];return null===_0x586877&&null===_0xaafa66?0x0:null===_0x586877&&null!==_0xaafa66?-0x1:null!==_0x586877&&null===_0xaafa66?0x1:_0x586877['start']['isBefore'](_0xaafa66['start'])?-0x1:0x1;});const _0x14dabc=new Set(),_0xc1a42f=new Set();for(const {name:_0xd91c15,data:_0x2f5dfe}of _0xc27937){const {id:_0x3eaf48}=this['_splitMarkerName'](_0xd91c15);if(null===_0x2f5dfe['oldRange']){const _0x7a959=this['_handleNewSuggestionMarker'](_0xd91c15);_0xc1a42f['add'](_0x7a959);}else{const _0x4225d1=this['_suggestions']['get'](_0x3eaf48);null!==_0x2f5dfe['newRange']||_0x4225d1['isInContent']?(_0x14dabc['add'](_0x4225d1['head']),_0xc1a42f['add'](_0x4225d1)):this['_removeSuggestion'](_0x4225d1);}}_0xc1a42f['size']>0x0&&this['_refreshSuggestionsChain'](_0xc1a42f);for(const _0x3c1bb4 of _0x14dabc)this['fire']('suggestionChanged',_0x3c1bb4);}),_0xe94645['model']['on']('applyOperation',(_0x2fb5bd,_0x25a05a)=>{const _0x4cb021=_0x25a05a[0x0];if(!this['_suggestions']['size'])return;if(!_0x4cb021['isDocumentOperation'])return;if(_0x4cb021['batch']['isUndo']||!_0x4cb021['batch']['isLocal'])return;let _0x5c9121,_0x43d802;switch(_0x4cb021['type']){case'insert':_0x5c9121=_0xe94645['model']['createPositionAt'](_0x4cb021['position']),_0x43d802=_0x5c9121['getShiftedBy'](_0x4cb021['howMany']);break;case'split':_0x5c9121=_0xe94645['model']['createPositionAt'](_0x4cb021['splitPosition']),_0x43d802=_0xe94645['model']['createPositionAt'](_0x4cb021['moveTargetPosition']);break;case'move':_0x5c9121=_0xe94645['model']['createPositionAt'](_0x4cb021['targetPosition']),_0x43d802=_0x5c9121['getShiftedBy'](_0x4cb021['howMany']);break;default:return;}const _0x2c9c8d=_0xe94645['model']['createRange'](_0x5c9121,_0x43d802);_0xe94645['model']['change'](()=>{for(const {suggestion:_0x56fc59,meta:_0x58fe2e}of this['_findSuggestions'](_0x2c9c8d)){if(_0x56fc59['isMultiRange'])continue;if('formatInline'==_0x56fc59['type'])continue;const _0x21bafe=this['_getAttributeKey'](_0x56fc59);if(_0x21bafe&&this['_isBlockAttribute'](_0x21bafe)&&'split'!=_0x4cb021['type'])continue;const _0x27f529=_0x56fc59['data']&&_0x56fc59['data']['multipleBlocks'];('formatBlock'!=_0x56fc59['type']||'split'==_0x4cb021['type']&&!_0x27f529)&&(_0x58fe2e['containsRangeInObject']||'insertion'==_0x56fc59['type']&&_0x58fe2e['isOwn']||_0x56fc59['getFirstRange']()['containsRange'](_0x2c9c8d)&&this['_breakSuggestionMarker'](_0x56fc59,_0x5c9121,_0x43d802));}});},{'priority':'lowest'}),_0xe94645['model']['on']('deleteContent',(_0x2262b8,_0x2eb748)=>{const _0x47d11e=_0x2eb748[0x0],_0x1bfc1f=_0x2eb748[0x1];if(_0x1bfc1f&&_0x1bfc1f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x47d11e['isCollapsed'])return;const _0x43fcac=_0xe94645['model']['schema'],{start:_0x2bd40,end:_0x378134}=_0x47d11e['getFirstRange'](),_0x5d438f=_0x2bd40['nodeAfter']&&_0x43fcac['isLimit'](_0x2bd40['nodeAfter'])?null:_0x43fcac['getNearestSelectionRange'](_0x2bd40,'forward'),_0x160691=_0x378134['nodeBefore']&&_0x43fcac['isLimit'](_0x378134['nodeBefore'])?null:_0x43fcac['getNearestSelectionRange'](_0x378134,'backward'),_0x212ee4=_0xe94645['model']['createRange'](_0x5d438f?_0x5d438f['start']:_0x2bd40,_0x160691?_0x160691['end']:_0x378134);_0xe94645['model']['change'](_0x3d570d=>{this['markDeletion'](_0x212ee4);const _0x4a2171=_0xe94645['model']['schema']['getNearestSelectionRange'](_0x212ee4['start']);_0x47d11e['is']('documentSelection')?_0x3d570d['setSelection'](_0x4a2171):_0x47d11e['setTo'](_0x4a2171);}),_0x2262b8['stop']();},{'priority':_0x4c5029['normal']+0xa}),_0xe94645['model']['on']('insertContent',(_0x5d12cd,_0x31d9af)=>{const _0x2036aa=_0x31d9af[_0x31d9af['length']-0x1];_0x2036aa&&_0x2036aa['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xe94645['model']['change'](()=>{let _0x505c00=_0xe94645['model']['insertContent'](_0x31d9af[0x0],_0x31d9af[0x1],_0x31d9af[0x2],{'forceDefaultExecution':!0x0});if(!_0x505c00)return;_0x5d12cd['return']=_0x505c00['clone']();const _0x390f8c=_0x505c00['end']['nodeBefore'],_0x5838bc=_0xe94645['model']['schema'];_0x390f8c&&_0x5838bc['isBlock'](_0x390f8c)&&!_0x5838bc['isObject'](_0x390f8c)&&(_0x505c00=_0xe94645['model']['createRange'](_0x505c00['start'],_0xe94645['model']['createPositionAt'](_0x390f8c,'end'))),this['markInsertion'](_0x505c00);}),_0x5d12cd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5cd402=new D(_0xe94645,this['_suggestions']);_0xe94645['commands']['add']('acceptSuggestion',_0x5cd402),this['enableCommand']('acceptSuggestion');const _0x23188a=new $(_0xe94645,this['_suggestions']);_0xe94645['commands']['add']('discardSuggestion',_0x23188a),this['enableCommand']('discardSuggestion'),_0xe94645['commands']['add']('acceptAllSuggestions',new M(_0xe94645,_0x5cd402,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xe94645['commands']['add']('discardAllSuggestions',new M(_0xe94645,_0x23188a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xe94645['commands']['add']('acceptSelectedSuggestions',new B(_0xe94645,_0x5cd402,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xe94645['commands']['add']('discardSelectedSuggestions',new B(_0xe94645,_0x23188a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x44f810=_0xe94645['plugins']['get']('CommentsRepository');this['listenTo'](_0x44f810,'addComment',(_0x4402c1,{threadId:_0x417780})=>{const _0x51bc92=this['_suggestions']['get'](_0x417780);_0x51bc92&&_0x51bc92['commentThread']&&0x1===_0x51bc92['commentThread']['length']&&this['_updateSuggestionData'](_0x417780,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x44f810,'removeComment',(_0x529f59,{threadId:_0x34e874})=>{const _0x3df242=this['_suggestions']['get'](_0x34e874);_0x3df242&&_0x3df242['commentThread']&&!_0x3df242['commentThread']['length']&&this['_updateSuggestionData'](_0x34e874,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x275d76){const _0x114a7a=_0x42412f([0x4f,0x61,0x30,0x38,0x52,0x47,0x6e,0x72,0x31,0x4b,0x7a,0x33,0x5a,0x75,0x55,0x59,0x68,0x57,0x67,0x73,0x6f,0x46,0x56,0x77,0x42,0x48,0x69,0x62,0x4e,0x76,0x6a,0x6c,0x44,0x35,0x51,0x54,0x58,0x34,0x6b,0x71,0x6d,0x32,0x64,0x4d,0x39,0x50,0x74,0x37,0x49,0x63,0x4a,0x70,0x4c,0x43,0x66,0x53,0x78,0x45,0x79,0x41,0x36,0x65]),_0x3d2420=0x7a631f67,_0x3e51f1=0x7a6470af^_0x3d2420,_0x33b6cf=window[_0x42412f([0x44,0x61,0x74,0x65])][_0x42412f([0x6e,0x6f,0x77])](),_0x2214eb=_0x275d76[_0x42412f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x348e9d=new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d6f1f=>{_0x2214eb[_0x42412f([0x6f,0x6e,0x63,0x65])](_0x42412f([0x72,0x65,0x61,0x64,0x79]),_0x5d6f1f);}),_0x54bf1b={[_0x42412f([0x6b,0x74,0x79])]:_0x42412f([0x45,0x43]),[_0x42412f([0x75,0x73,0x65])]:_0x42412f([0x73,0x69,0x67]),[_0x42412f([0x63,0x72,0x76])]:_0x42412f([0x50,0x2d,0x32,0x35,0x36]),[_0x42412f([0x78])]:_0x42412f([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x42412f([0x79])]:_0x42412f([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x42412f([0x61,0x6c,0x67])]:_0x42412f([0x45,0x53,0x32,0x35,0x36])},_0x2c149f=_0x2214eb[_0x42412f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42412f([0x67,0x65,0x74])](_0x42412f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c3f9d(){let _0x11c00c,_0x174ac4=null,_0x515b41=null;try{if(_0x2c149f==_0x42412f([0x47,0x50,0x4c]))return _0x42412f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11c00c=_0x579463(),!_0x11c00c)return _0x42412f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11c00c[_0x42412f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x515b41=_0x5ca004(_0x11c00c[_0x42412f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11c00c[_0x42412f([0x6a,0x74,0x69])])),await _0x18cfc0()?_0x30992f()?_0x281236()?_0x42412f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x481f1a()?(_0x11c00c[_0x42412f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42412f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x174ac4=_0x20c5ab(_0x42412f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11c00c[_0x42412f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42412f([0x74,0x72,0x69,0x61,0x6c])&&(_0x174ac4=_0x20c5ab(_0x42412f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b2897()):_0x42412f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42412f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42412f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42412f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x281236(){const _0x425869=[_0x42412f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42412f([0x74,0x72,0x69,0x61,0x6c])][_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11c00c[_0x42412f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33b6cf/0x3e8:0xe10*_0x3e51f1;return _0x11c00c[_0x42412f([0x65,0x78,0x70])]<_0x425869;}function _0x30992f(){const _0x1dfa95=_0x11c00c[_0x42412f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1dfa95)return!0x1;if(_0x1dfa95[_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42412f([0x2a])))return!0x0;if(_0x1dfa95[_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42412f([0x54,0x43])))return!0x0;if(_0x1dfa95[_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42412f([0x52,0x54,0x43]))){if(_0x300f9b())return!0x0;if(_0x3ba4d1()||_0x423bd3())return!0x0;}return!0x1;}function _0x481f1a(){const _0x535774=_0x11c00c[_0x42412f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x535774||0x0==_0x535774[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f1d4a}=new URL(window[_0x42412f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x535774[_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f1d4a))return!0x0;const _0x177cb5=_0x5f1d4a[_0x42412f([0x73,0x70,0x6c,0x69,0x74])](_0x42412f([0x2e]));return _0x535774[_0x42412f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28066d=>_0x28066d[_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42412f([0x2a])))[_0x42412f([0x6d,0x61,0x70])](_0x5e807c=>_0x5e807c[_0x42412f([0x73,0x70,0x6c,0x69,0x74])](_0x42412f([0x2e])))[_0x42412f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d397e=>_0x4d397e[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x177cb5[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42412f([0x6d,0x61,0x70])](_0x3cdfde=>Array(_0x177cb5[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3cdfde[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42412f([0x66,0x69,0x6c,0x6c])](_0x3cdfde[0x0]===_0x42412f([0x2a])?_0x42412f([0x2a]):'')[_0x42412f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3cdfde))[_0x42412f([0x73,0x6f,0x6d,0x65])](_0x40f71e=>_0x177cb5[_0x42412f([0x65,0x76,0x65,0x72,0x79])]((_0x1daec1,_0x5e5883)=>_0x40f71e[_0x5e5883]===_0x1daec1||_0x40f71e[_0x5e5883]===_0x42412f([0x2a])));}function _0x3b2897(){return _0x174ac4&&_0x515b41?new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d410c,_0x49e00f)=>{_0x174ac4[_0x42412f([0x74,0x68,0x65,0x6e])](_0x4d410c,_0x49e00f),_0x515b41[_0x42412f([0x74,0x68,0x65,0x6e])](_0x54dc94=>{_0x54dc94!=_0x42412f([0x56,0x61,0x6c,0x69,0x64])&&_0x4d410c(_0x54dc94);},_0x49e00f);}):_0x174ac4||_0x515b41||_0x42412f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ca004(_0x1ff6b2,_0x2a4084){return new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x146e13=>{if(_0x394b0a())return _0x146e13(_0x42412f([0x56,0x61,0x6c,0x69,0x64]));_0x1c0a8a(),_0x2214eb[_0x42412f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42412f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3816a2=!0x1;const _0x4403b2=_0xd0f9be();function _0x204926(_0x5772ac){return!!_0x5772ac&&(typeof _0x5772ac===_0x42412f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5772ac===_0x42412f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5772ac[_0x42412f([0x74,0x68,0x65,0x6e])]===_0x42412f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5772ac[_0x42412f([0x63,0x61,0x74,0x63,0x68])]===_0x42412f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6eee34(_0x3b3587){_0x6e8692(_0x3b3587)[_0x42412f([0x74,0x68,0x65,0x6e])](_0x86d146=>{if(!_0x86d146||_0x86d146[_0x42412f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42412f([0x6f,0x6b]))return _0x42412f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a1e8d(_0xd15ff3(_0x4403b2+_0x2a4084))!=_0x86d146[_0x42412f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42412f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42412f([0x56,0x61,0x6c,0x69,0x64]);})[_0x42412f([0x74,0x68,0x65,0x6e])](_0x3df9b0=>(_0xb0298c(),_0x3df9b0),()=>{const _0xe3d921=_0x193b12();return null==_0xe3d921?(_0xb0298c(),_0x42412f([0x56,0x61,0x6c,0x69,0x64])):_0x42412f(_0x33b6cf-_0xe3d921>(0x5e6f9b67^_0x3d2420)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42412f([0x74,0x68,0x65,0x6e])](_0x146e13)[_0x42412f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x146e13(_0x42412f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x440d19=0x7a55f1e7^_0x3d2420;function _0xb0298c(){const _0x1dfa68=_0x42412f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a1e8d(_0xd15ff3(_0x1ff6b2)),_0x6794fa=_0x5267fe(_0x2a1e8d(window[_0x42412f([0x4d,0x61,0x74,0x68])][_0x42412f([0x63,0x65,0x69,0x6c])](_0x33b6cf/_0x440d19)));window[_0x42412f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42412f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dfa68,_0x6794fa);}function _0x193b12(){const _0x4c3c1f=_0x42412f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a1e8d(_0xd15ff3(_0x1ff6b2)),_0x4e733e=window[_0x42412f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42412f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c3c1f);return _0x4e733e?window[_0x42412f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5267fe(_0x4e733e),0x10)*_0x440d19:null;}function _0x6e8692(_0x31bdb7){return new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c97c0,_0x5d40dd)=>{_0x31bdb7[_0x42412f([0x74,0x68,0x65,0x6e])](_0x3c97c0,_0x5d40dd),window[_0x42412f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d40dd,0x7a62cba7^_0x3d2420);});}}_0x2214eb[_0x42412f([0x6f,0x6e])](_0x42412f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf5b7f3,_0x1430ad)=>{if(_0x1430ad[0x0]!=_0x1ff6b2)return _0x146e13(_0x42412f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1430ad[0x1]={..._0x1430ad[0x1],[_0x42412f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4403b2};},{[_0x42412f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42412f([0x68,0x69,0x67,0x68])}),_0x2214eb[_0x42412f([0x6f,0x6e])](_0x42412f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a5fd9=>{_0x204926(_0x5a5fd9[_0x42412f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3816a2=!0x0,_0x6eee34(_0x5a5fd9[_0x42412f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42412f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42412f([0x6c,0x6f,0x77])}),_0x348e9d[_0x42412f([0x74,0x68,0x65,0x6e])](()=>{_0x3816a2||_0x146e13(_0x42412f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x394b0a(){return _0x2214eb[_0x42412f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42412f([0x76,0x69,0x65,0x77])][_0x42412f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42412f([0x61,0x75,0x74,0x6f]);}function _0x1c0a8a(){_0x2214eb[_0x42412f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42412f([0x76,0x69,0x65,0x77])][_0x42412f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42412f([0x61,0x75,0x74,0x6f]);}}function _0x20c5ab(_0x522087){const _0xe24a6b=[new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ba99=>setTimeout(_0x57ba99,0x7a6a21ab^_0x3d2420)),_0x348e9d[_0x42412f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f0e1=>{let _0x27823f=0x0;_0x2214eb[_0x42412f([0x6d,0x6f,0x64,0x65,0x6c])][_0x42412f([0x6f,0x6e])](_0x42412f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x595ac3,_0x128a50)=>{_0x128a50[0x0][_0x42412f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x27823f++,_0x27823f==(0x7a631e9f^_0x3d2420)&&(_0x20f0e1(),_0x595ac3[_0x42412f([0x6f,0x66,0x66])]());});}))];return window[_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42412f([0x72,0x61,0x63,0x65])](_0xe24a6b)[_0x42412f([0x74,0x68,0x65,0x6e])](()=>_0x522087);}async function _0x2dd3d4(){await _0x348e9d,_0x2214eb[_0x42412f([0x6d,0x6f,0x64,0x65,0x6c])][_0x42412f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xfafefd,_0x2214eb[_0x42412f([0x6d,0x6f,0x64,0x65,0x6c])][_0x42412f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xfafefd,_0x2214eb[_0x42412f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42412f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x300f9b(){return _0x190dea(_0x42412f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x498b37(_0x42412f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x42412f([0x73,0x74,0x61,0x74,0x65])]==_0x42412f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3ba4d1(){return _0x190dea(_0x42412f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x423bd3(){return _0x190dea(_0x42412f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3fd924(_0x58af1e){const _0x42a753=_0x1108a5();_0x2214eb[_0x42a753]=_0x42412f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58af1e,_0x58af1e!=_0x42412f([0x56,0x61,0x6c,0x69,0x64])&&_0x2dd3d4();}function _0x1108a5(){const _0x161807=window[_0x42412f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42412f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42412f([0x6e,0x6f,0x77])]())[_0x42412f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42412f([0x2e]),'');let _0x1ab58d=_0x42412f([0x4f]);for(let _0x576747=0x0;_0x576747<_0x161807[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x576747+=0x2){let _0x33ca73=window[_0x42412f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x161807[_0x42412f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x576747,_0x576747+0x2));_0x33ca73>=_0x114a7a[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33ca73-=_0x114a7a[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ab58d+=_0x114a7a[_0x33ca73];}return _0x1ab58d;}function _0x579463(){const _0x4b8af1=_0x2c149f[_0x42412f([0x73,0x70,0x6c,0x69,0x74])](_0x42412f([0x2e]));if(0x3!=_0x4b8af1[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3abe24(_0x4b8af1[0x1]);function _0x3abe24(_0x4708cf){const _0x244012=_0x2a2846(_0x4708cf);return _0x244012&&_0x25c919()?_0x244012:null;function _0x25c919(){const _0x516887=_0x244012[_0x42412f([0x6a,0x74,0x69])],_0xf25cf=window[_0x42412f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x516887[_0x42412f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x516887[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x511272={..._0x244012,[_0x42412f([0x6a,0x74,0x69])]:_0x516887[_0x42412f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x516887[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x511272[_0x42412f([0x76,0x63])],_0xd15ff3(_0x511272)==_0xf25cf;}}}async function _0x18cfc0(){let _0x4f24e1=!0x0;try{const _0x511c92=_0x2c149f[_0x42412f([0x73,0x70,0x6c,0x69,0x74])](_0x42412f([0x2e])),[_0x4802d2,_0x5b5b8e,_0x5d9ddd]=_0x511c92;return _0x6f0c36(_0x4802d2),await _0x1bfb5f(_0x4802d2,_0x5b5b8e,_0x5d9ddd),_0x4f24e1;}catch{return!0x1;}function _0x6f0c36(_0x56a02f){const _0x379e69=_0x2a2846(_0x56a02f);_0x379e69&&_0x379e69[_0x42412f([0x61,0x6c,0x67])]==_0x42412f([0x45,0x53,0x32,0x35,0x36])||(_0x4f24e1=!0x1);}async function _0x1bfb5f(_0x438192,_0x45f376,_0x225c52){const _0x5c528e=window[_0x42412f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42412f([0x66,0x72,0x6f,0x6d])](_0x160bc5(_0x225c52),_0x57de00=>_0x57de00[_0x42412f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d1d96=new window[(_0x42412f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42412f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x438192+_0x42412f([0x2e])+_0x45f376),_0x8add84=window[_0x42412f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42412f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8add84)return;const _0x410da2=await _0x8add84[_0x42412f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42412f([0x6a,0x77,0x6b]),_0x54bf1b,{[_0x42412f([0x6e,0x61,0x6d,0x65])]:_0x42412f([0x45,0x43,0x44,0x53,0x41]),[_0x42412f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42412f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42412f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8add84[_0x42412f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42412f([0x6e,0x61,0x6d,0x65])]:_0x42412f([0x45,0x43,0x44,0x53,0x41]),[_0x42412f([0x68,0x61,0x73,0x68])]:{[_0x42412f([0x6e,0x61,0x6d,0x65])]:_0x42412f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x410da2,_0x5c528e,_0x1d1d96)||(_0x4f24e1=!0x1);}}function _0x2a2846(_0x4e0df5){return _0x4e0df5[_0x42412f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42412f([0x65,0x79]))?JSON[_0x42412f([0x70,0x61,0x72,0x73,0x65])](_0x160bc5(_0x4e0df5)):null;}function _0x160bc5(_0x5eb430){return window[_0x42412f([0x61,0x74,0x6f,0x62])](_0x5eb430[_0x42412f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42412f([0x2b]))[_0x42412f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42412f([0x2f])));}function _0xd15ff3(_0xe69e0b){let _0x54dd5a=0x1505;function _0x2e63df(_0x4e56c9){for(let _0x437a3e=0x0;_0x437a3e<_0x4e56c9[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x437a3e++){const _0x33b0f5=_0x4e56c9[_0x42412f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x437a3e);_0x54dd5a=(_0x54dd5a<<0x5)+_0x54dd5a+_0x33b0f5,_0x54dd5a&=_0x54dd5a;}}function _0xa6fd90(_0x8de73b){Array[_0x42412f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8de73b)?_0x8de73b[_0x42412f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa6fd90):_0x8de73b&&typeof _0x8de73b==_0x42412f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42412f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8de73b)[_0x42412f([0x73,0x6f,0x72,0x74])]()[_0x42412f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c6ad9,_0xe023e5])=>{_0x2e63df(_0x3c6ad9),_0xa6fd90(_0xe023e5);}):_0x2e63df(window[_0x42412f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8de73b));}return _0xa6fd90(_0xe69e0b),_0x54dd5a>>>0x0;}function _0x2a1e8d(_0x2dfd3a){return _0x2dfd3a[_0x42412f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42412f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42412f([0x30]));}function _0x5267fe(_0x1bc232){return _0x1bc232[_0x42412f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42412f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42412f([0x6a,0x6f,0x69,0x6e])]('');}function _0x190dea(_0x56860f){return _0x2214eb[_0x42412f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42412f([0x68,0x61,0x73])](_0x56860f);}function _0x498b37(_0x5325a5){return _0x2214eb[_0x42412f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42412f([0x67,0x65,0x74])](_0x5325a5);}function _0xfafefd(){}function _0x42412f(_0x2d26d3){return _0x2d26d3['map'](_0x32fe41=>String['fromCharCode'](_0x32fe41))['join']('');}_0x3fd924(await _0x2c3f9d());}(this);}set['adapter'](_0x3f5a44){if(this['_adapter'])throw new _0x4fc565('track-changes-adapter-already-set',this);this['_adapter']=_0x3f5a44;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x430995=!0x1,toJSON:_0x4a3387=!0x1}={}){const _0x41b9e4=[];for(const _0x5bc91c of this['_suggestions']['values']())_0x430995&&!_0x5bc91c['isInContent']||_0x41b9e4['push'](_0x5bc91c);return _0x4a3387?_0x41b9e4['map'](_0x33d25d=>_0x33d25d['toJSON']()):_0x41b9e4;}['getSuggestion'](_0x291b2d){const _0x4c4992=this['_suggestions']['get'](_0x291b2d);if(!_0x4c4992)throw new _0x4fc565('track-changes-suggestion-not-found',this);return _0x4c4992;}['hasSuggestion'](_0x489d50){return this['_suggestions']['has'](_0x489d50);}['addSuggestionData'](_0x9ca5bc){const {authorId:_0x17b880,id:_0x50b89a,originalSuggestionId:_0x54b44e,attributes:_0x5ee60f}=_0x9ca5bc,[_0xb709f2,_0x1c5945]=_0x9ca5bc['type']['split'](':'),_0x3452aa=this['_suggestions']['get'](_0x50b89a)||this['_createSuggestion'](_0xb709f2,_0x1c5945,_0x50b89a,_0x17b880,_0x5ee60f,_0x54b44e);if(this['_addThreadToSuggestion'](_0x3452aa),this['_checkSuggestionCorrectness'](_0x3452aa,_0xb709f2,_0x1c5945||null,_0x17b880),_0x3452aa['createdAt']=_0x9ca5bc['createdAt'],_0x3452aa['_isDataLoaded']=!0x0,_0x5ee60f&&_0x5ee60f['@external']){const _0x305425=_0x5ee60f['@external'],_0x28bb79=this['_getExternalAuthor'](_0x305425['authorName']);_0x3452aa['authoredAt']=_0x305425['createdAt'],_0x3452aa['author']=_0x28bb79,_0x3452aa['isExternal']=!0x0;}else _0x3452aa['authoredAt']=_0x9ca5bc['createdAt'];switch(_0x9ca5bc['data']&&(_0x3452aa['data']=_0x9ca5bc['data']),_0x9ca5bc['attributes']&&(_0x3452aa['attributes']=_0x9ca5bc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3452aa['_saved']=!0x0),this['_suggestionState']['get'](_0x3452aa)){case'notReady':this['_suggestionState']['set'](_0x3452aa,'dataReady');break;case'markerReady':_0x3452aa['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3452aa])),this['_refreshSuggestionsChain'](new Set([_0x3452aa])),this['_suggestionState']['set'](_0x3452aa,'ready'),this['fire']('suggestionLoaded',_0x3452aa)):this['_suggestionState']['set'](_0x3452aa,'removed');}return _0x3452aa;}['acceptSuggestion'](_0x543c33){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d7c9b of _0x543c33['getAllAdjacentSuggestions']())_0x5d7c9b['accept']();});});}['discardSuggestion'](_0x13f4c6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x50cbfd of _0x13f4c6['getAllAdjacentSuggestions']())_0x50cbfd['discard']();});});}['enableCommand'](_0xa12f30,_0x5c8e77){const _0x3ac846=this['editor']['commands']['get'](_0xa12f30);if(!_0x3ac846)throw new _0x4fc565('track-changes-command-not-found',this,{'commandName':_0xa12f30});if(this['_enabledCommands']['has'](_0x3ac846))throw new _0x4fc565('track-changes-enable-command-twice',this,{'commandName':_0xa12f30});this['_enabledCommands']['add'](_0x3ac846),_0x5c8e77&&_0x3ac846['on']('execute',(_0x34c059,_0x1e17ea)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1e17ea['length']>0x0&&_0x1e17ea[_0x1e17ea['length']-0x1]&&_0x1e17ea[_0x1e17ea['length']-0x1]['forceDefaultExecution']?_0x1e17ea['pop']():(_0x34c059['return']=_0x5c8e77((..._0x5a4565)=>_0x3ac846['execute'](..._0x5a4565,{'forceDefaultExecution':!0x0}),..._0x1e17ea),_0x34c059['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3e557a){let _0x3b4aee,_0xbd3554;const _0x887afb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3b4aee=_0x3e557a();}catch(_0x2e64e6){_0xbd3554=_0x2e64e6;}return _0x887afb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xbd3554&&_0x4fc565['rethrowUnexpectedError'](_0xbd3554,this),_0x3b4aee;}['markInsertion'](_0xb05933,_0x3026b6=null,_0x4081d2={}){if(_0xb05933['isCollapsed'])return null;const _0x5a2053=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4081d2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ee2f9,meta:_0x128b8c}of this['_findSuggestions'](_0xb05933,'insertion'))if(_0x128b8c['isOwn']){if(!_0x128b8c['isNextTo']){if(_0x128b8c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2ee2f9,_0x4081d2))continue;return _0x2ee2f9;}if(Xt(_0x2ee2f9,_0x4081d2))return _0x2ee2f9;this['_breakSuggestionMarker'](_0x2ee2f9,_0xb05933['start'],_0xb05933['end']);break;}if(_0x3026b6==_0x2ee2f9['subType']&&Xt(_0x2ee2f9,_0x4081d2)){const _0x47e642=_0x2ee2f9['getFirstRange']();return _0x47e642['start']['isEqual'](_0xb05933['end'])?this['_setSuggestionRange'](_0x2ee2f9,this['_model']['createRange'](_0xb05933['start'],_0x47e642['end'])):this['_setSuggestionRange'](_0x2ee2f9,this['_model']['createRange'](_0x47e642['start'],_0xb05933['end'])),_0x2ee2f9;}}const _0x409d0d=_0xd0f9be(),_0x2433af=_0x5a2053['id'],_0x512683=_0x3026b6?'insertion:'+_0x3026b6:'insertion',_0x194d69=this['_setSuggestionData']({'id':_0x409d0d,'type':_0x512683,'createdAt':new Date(),'authorId':_0x2433af,'attributes':_0x4081d2});return this['_addSuggestionMarker'](_0x512683,_0x409d0d,_0x2433af,_0xb05933),_0x194d69;}['markMultiRangeInsertion'](_0x521c29,_0x38fc8b='multi',_0x2cff66={}){const _0x17cba3=this['editor']['plugins']['get']('Users')['me'],_0x5d9f0c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x38fc8b,'join');this['_trackingSessionId']&&(_0x2cff66['trackingSessionId']=this['_trackingSessionId']);for(const _0x3e3170 of this['getSuggestions']())if(_0x3e3170['author']['id']==_0x17cba3['id']&&'insertion'==_0x3e3170['type']&&_0x3e3170['subType']==_0x38fc8b&&Xt(_0x3e3170,_0x2cff66)&&(_0x5d9f0c(_0x3e3170['getRanges'](),_0x521c29)||_0x5d9f0c(_0x521c29,_0x3e3170['getRanges']()))){for(const _0x26e55e of _0x521c29)_0x3e3170['addRange'](_0x26e55e);return _0x3e3170;}for(const {suggestion:_0x5c2cee,meta:_0x44dc97}of this['_findSuggestions'](_0x521c29,'insertion')){if(!_0x44dc97['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x44dc97['containsRangeInObject'])continue;if(!Xt(_0x5c2cee,_0x2cff66))continue;let _0x26859d=!0x0;for(const _0x4df9f2 of _0x5c2cee['getRanges']())for(const _0x1e010c of _0x521c29)if(!_0x4df9f2['containsRange'](_0x1e010c)){_0x26859d=!0x1;break;}if(_0x26859d)return _0x5c2cee;}const _0x4ed5e4=_0xd0f9be(),_0x3a05c6=_0x17cba3['id'],_0x525017='insertion:'+_0x38fc8b,_0x31d448=this['_setSuggestionData']({'id':_0x4ed5e4,'type':_0x525017,'createdAt':new Date(),'authorId':_0x3a05c6,'attributes':_0x2cff66});for(const _0x490193 of _0x521c29)this['_addSuggestionMarker'](_0x525017,_0x4ed5e4,_0x3a05c6,_0x490193,T['getMultiRangeId']());return _0x31d448;}['markInlineFormat'](_0x22cc10,_0x4abbd0,_0x521133=null,_0x30751d={}){if(_0x521133=_0x521133||Lt(_0x4abbd0),_0x22cc10['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x30751d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x22ffc7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x521133,'accept');return this['forceDefaultExecution'](()=>_0x22ffc7([_0x22cc10],_0x4abbd0,_0x30751d)),null;}const _0x5df205=this['editor']['plugins']['get']('Users')['me'],_0x2a358b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x377055,meta:_0x1c617e}of this['_findSuggestions'](_0x22cc10,'insertion'))_0x1c617e['isOwn']&&!_0x1c617e['isInsideObject']&&_0x2a358b['push'](..._0x377055['getRanges']());}const _0x3b64fc=function(_0x4adad8,_0x4e90fd){const _0x1abc7d=[];for(const _0xf9474a of _0x4e90fd){const _0x235930=_0x4adad8['getIntersection'](_0xf9474a);_0x235930&&_0x1abc7d['push'](_0x235930);}return _0x1abc7d;}(_0x22cc10,_0x2a358b),_0x172e7d=function(_0x598ca3,_0x1ff358){const _0x3ae81c=[_0x598ca3];for(const _0x26602a of _0x1ff358){let _0x4f0705=0x0;for(;_0x4f0705<_0x3ae81c['length'];){const _0x1d464c=_0x3ae81c[_0x4f0705]['getDifference'](_0x26602a);_0x3ae81c['splice'](_0x4f0705,0x1,..._0x1d464c),_0x4f0705+=_0x1d464c['length'];}}return _0x3ae81c;}(_0x22cc10,_0x2a358b);_0x3b64fc['length']&&this['_model']['change'](()=>{for(const _0x259f58 of _0x3b64fc){const _0x2cf3a6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x521133,'accept');this['forceDefaultExecution'](()=>_0x2cf3a6([_0x259f58],_0x4abbd0,_0x30751d));}});for(const _0x4907ce of _0x172e7d){let _0x551267=null,_0x46fc21=_0x4907ce['start'],_0x3370c8=_0x4907ce['end'];for(const {suggestion:_0x2d8c7c,meta:_0x1b38cb}of this['_findSuggestions'](_0x4907ce,'formatInline')){if(!_0x1b38cb['isOwn'])continue;if(_0x2d8c7c['subType']!=_0x521133)continue;if(!Xt(_0x2d8c7c,_0x30751d))continue;const _0x1d2a1f=_0x2d8c7c['getFirstRange']();if(_0x1d2a1f['containsRange'](_0x4907ce,!0x0))return null;_0x46fc21=_0x46fc21['isBefore'](_0x1d2a1f['start'])?_0x46fc21:_0x1d2a1f['start'],_0x3370c8=_0x3370c8['isAfter'](_0x1d2a1f['end'])?_0x3370c8:_0x1d2a1f['end'],_0x551267?_0x1d2a1f['start']['isBefore'](_0x551267['getFirstRange']()['start'])?(_0x551267['removeMarkers'](),_0x551267=_0x2d8c7c):_0x2d8c7c['removeMarkers']():_0x551267=_0x2d8c7c;}const _0x3b4406=this['_model']['createRange'](_0x46fc21,_0x3370c8);if(_0x551267)this['_setSuggestionRange'](_0x551267,_0x3b4406);else{const _0x316b67=_0xd0f9be(),_0x67777b=_0x5df205['id'];this['_setSuggestionData']({'id':_0x316b67,'type':'formatInline:'+_0x521133,'data':_0x4abbd0,'createdAt':new Date(),'authorId':_0x67777b,'attributes':_0x30751d}),this['_addSuggestionMarker']('formatInline:'+_0x521133,_0x316b67,_0x67777b,_0x3b4406);}}return null;}['markBlockFormat'](_0x53ac4a,_0x597cdf,_0x1a44da=[],_0x510ab2=null,_0x319ba0={}){_0x597cdf['formatGroupId']||(_0x597cdf['formatGroupId']=_0x597cdf['commandName']),_0x597cdf['multipleBlocks']=_0x53ac4a['is']('range'),_0x510ab2=_0x510ab2||Lt(_0x597cdf);const _0x3e9478=_0x1a44da['map'](_0x52c1e1=>zt(_0x52c1e1,this['_model'])),_0x129d46=_0x53ac4a['is']('range')?_0x53ac4a:zt(_0x53ac4a,this['_model']);if(this['_trackingSessionId']&&(_0x319ba0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5d0c8a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x510ab2,'accept');return this['forceDefaultExecution'](()=>_0x5d0c8a([_0x129d46],_0x597cdf,_0x319ba0)),null;}_0x3e9478['push'](_0x129d46);let _0x3016a0=!0x0;for(const _0x4386ac of _0x3e9478)if(!this['_rangeIsInLocalUserInsertion'](_0x4386ac)){_0x3016a0=!0x1;break;}if(_0x3016a0&&'always'!==this['_trackFormatChanges']){const _0x12d47a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x510ab2,'accept');return this['forceDefaultExecution'](()=>_0x12d47a([_0x129d46],_0x597cdf,_0x319ba0)),null;}let _0x563aff=null,_0x5d7aa1=_0x129d46['start'],_0xc84c30=_0x129d46['end'];for(const {suggestion:_0x5a8607,meta:_0x2611be}of this['_findSuggestions'](_0x129d46,'formatBlock')){if(!_0x2611be['isOwn'])continue;if(_0x2611be['isNextTo']||_0x2611be['containsRangeInObject']||_0x2611be['isInsideObject'])continue;if(_0x5a8607['data']['formatGroupId']!=_0x597cdf['formatGroupId'])continue;if(!Xt(_0x5a8607,_0x319ba0))continue;const _0x2c6648=_0x5a8607['getFirstRange']();if(_0x5a8607['subType']==_0x510ab2){if(_0x2c6648['containsRange'](_0x129d46,!0x0))return null;_0x5d7aa1=_0x5d7aa1['isBefore'](_0x2c6648['start'])?_0x5d7aa1:_0x2c6648['start'],_0xc84c30=_0xc84c30['isAfter'](_0x2c6648['end'])?_0xc84c30:_0x2c6648['end'],_0x563aff?_0x2c6648['start']['isBefore'](_0x563aff['getFirstRange']()['start'])?(_0x563aff['removeMarkers'](),_0x563aff=_0x5a8607):_0x5a8607['removeMarkers']():_0x563aff=_0x5a8607;}else{const _0x159eb7=_0x129d46['getIntersection'](_0x2c6648);this['_cutOutSuggestionMarker'](_0x5a8607,_0x159eb7);}}const _0x487896=this['editor']['plugins']['get']('Users')['me'],_0x42be29=_0xd0f9be(),_0x2bbf2b=_0x487896['id'];if(_0x563aff)return this['_setSuggestionRange'](_0x563aff,this['_model']['createRange'](_0x5d7aa1,_0xc84c30)),_0x563aff;{const _0x6265dd=this['_setSuggestionData']({'id':_0x42be29,'type':'formatBlock:'+_0x510ab2,'data':_0x597cdf,'createdAt':new Date(),'authorId':_0x2bbf2b,'attributes':_0x319ba0});return this['_addSuggestionMarker']('formatBlock:'+_0x510ab2,_0x42be29,_0x2bbf2b,this['_model']['createRange'](_0x5d7aa1,_0xc84c30)),_0x6265dd;}}['markMultiRangeBlockFormat'](_0x3ba96f,_0x317cf1,_0x5bcd47=[],_0x1e901f=null,_0x389d3c={}){_0x317cf1['formatGroupId']||(_0x317cf1['formatGroupId']=_0x317cf1['commandName']);const _0x9b3f13=_0x3ba96f[0x0];_0x317cf1['multipleBlocks']=_0x9b3f13['is']('range'),_0x1e901f=_0x1e901f||Lt(_0x317cf1);const _0x48ba05=_0x5bcd47['map'](_0x32f45c=>zt(_0x32f45c,this['_model'])),_0xa683f4=_0x9b3f13['is']('range')?_0x3ba96f:_0x3ba96f['map'](_0xb7cf3b=>zt(_0xb7cf3b,this['_model']));if(this['_trackingSessionId']&&(_0x389d3c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4e71c5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e901f,'accept');return this['forceDefaultExecution'](()=>_0x4e71c5(_0xa683f4,_0x317cf1,_0x389d3c)),null;}_0x48ba05['push'](..._0xa683f4);let _0x4633ca=!0x0;for(const _0xe4a3d4 of _0x48ba05)if(!this['_rangeIsInLocalUserInsertion'](_0xe4a3d4)){_0x4633ca=!0x1;break;}if(_0x4633ca&&'always'!==this['_trackFormatChanges']){const _0x2ff90a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e901f,'accept');return this['forceDefaultExecution'](()=>_0x2ff90a(_0xa683f4,_0x317cf1,_0x389d3c)),null;}const _0x50582f=this['editor']['plugins']['get']('Users')['me'];for(const _0x90c636 of this['getSuggestions']()){const _0x3fc14c=_0x90c636['data'];if(_0x90c636['author']['id']!=_0x50582f['id'])continue;if('formatBlock'!=_0x90c636['type']||_0x3fc14c['formatGroupId']!=_0x317cf1['formatGroupId'])continue;if(!Xt(_0x90c636,_0x389d3c))continue;const _0x1f0a1e=_0x90c636['subType']==_0x1e901f;for(let _0x26a196=0x0;_0x26a196<_0xa683f4['length'];_0x26a196++){const _0x36c623=_0xa683f4[_0x26a196];for(const _0x1ae596 of _0x90c636['getMarkers']()){const _0x3ab9b5=_0x1ae596['getRange']();if(_0x36c623['isEqual'](_0x3ab9b5)){_0x1f0a1e?(_0xa683f4['splice'](_0x26a196,0x1),_0x26a196--):_0x90c636['removeMarker'](_0x1ae596['name']);break;}}}}if(0x0==_0xa683f4['length'])return null;const _0x13ae36=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e901f,'join');for(const _0xe3e70e of this['getSuggestions']()){const _0x41bba4=_0xe3e70e['data'];if(_0xe3e70e['author']['id']==_0x50582f['id']&&('formatBlock'==_0xe3e70e['type']&&_0x41bba4['formatGroupId']==_0x317cf1['formatGroupId']&&_0xe3e70e['subType']==_0x1e901f&&Xt(_0xe3e70e,_0x389d3c)&&(_0x13ae36(_0xe3e70e['getRanges'](),_0xa683f4)||_0x13ae36(_0xa683f4,_0xe3e70e['getRanges']())))){for(const _0xe46167 of _0xa683f4)_0xe3e70e['addRange'](_0xe46167);return _0xe3e70e;}}const _0x148fa2=_0xd0f9be(),_0x24d914=_0x50582f['id'],_0x31db05='formatBlock:'+_0x1e901f,_0x155c0b=this['_setSuggestionData']({'id':_0x148fa2,'type':_0x31db05,'data':_0x317cf1,'createdAt':new Date(),'authorId':_0x24d914,'attributes':_0x389d3c});for(const _0x1ca9e3 of _0xa683f4)this['_addSuggestionMarker'](_0x31db05,_0x148fa2,_0x24d914,_0x1ca9e3,T['getMultiRangeId']());return _0x155c0b;}['markDeletion'](_0x56957e,_0x5598fc=null,_0x40cf1b={}){if(_0x56957e['isCollapsed'])return null;const _0xfb763a=this['editor']['plugins']['get']('Users')['me'],_0x2b01c3=new _0x3e3f9b(_0x56957e['start'],_0x56957e['end']);this['_trackingSessionId']&&(_0x40cf1b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x585ba5,meta:_0x523c47}of this['_findSuggestions'](_0x2b01c3,'insertion'))if(_0x523c47['isOwn']&&!_0x523c47['isNextTo']){if(_0x585ba5['isMultiRange']){const _0x33d9f9=_0x585ba5['getRanges']()['filter'](_0xcc373a=>'$graveyard'!=_0xcc373a['root']['rootName']);_0x33d9f9['every'](_0x32b70a=>_0x2b01c3['containsRange'](_0x32b70a,!0x0))&&_0x585ba5['discard']();if(_0x33d9f9['some'](_0x4631a8=>_0x4631a8['containsRange'](_0x2b01c3,!0x0))){const _0x2eff22=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5598fc,'accept');return this['forceDefaultExecution'](()=>_0x2eff22([_0x2b01c3],null,_0x40cf1b)),null;}}else{const _0x24d21e=_0x2b01c3['getIntersection'](_0x585ba5['getFirstRange']());null!==_0x24d21e&&_0x585ba5['_onDiscard']([_0x24d21e],null,_0x40cf1b);}}if(_0x2b01c3['detach'](),_0x2b01c3['isCollapsed']||'$graveyard'==_0x2b01c3['root']['rootName'])return null;let _0x344ad0=null,_0x4eb2b3=_0x2b01c3['start'],_0x32f51c=_0x2b01c3['end'];const _0x5913f4=this['_findSuggestions'](_0x2b01c3,'deletion');for(const {suggestion:_0x5e0c4f,meta:_0x18c698}of _0x5913f4){const _0x16a536=this['_model']['createRange'](_0x4eb2b3,_0x32f51c);if(_0x18c698['isOwn']&&(this['_mergeNestedSuggestions']||!_0x18c698['containsRangeInObject']&&!_0x18c698['isInsideObject'])){if(_0x5e0c4f['isMultiRange']){if(!Xt(_0x5e0c4f,_0x40cf1b))continue;let _0x4ab5dc=!0x0;for(const _0x28a0f3 of _0x5e0c4f['getRanges']()){if(_0x28a0f3['containsRange'](_0x16a536,!0x0))return _0x5e0c4f;_0x16a536['containsRange'](_0x28a0f3)||(_0x4ab5dc=!0x1);}_0x4ab5dc&&_0x5e0c4f['discard']();}else{const _0x5ab685=_0x5e0c4f['getFirstRange']();if(_0x5ab685['containsRange'](_0x16a536,!0x0))return _0x5e0c4f;if(!Xt(_0x5e0c4f,_0x40cf1b)){_0x16a536['containsRange'](_0x5ab685)?_0x5e0c4f['removeMarkers']():_0x5ab685['containsPosition'](_0x4eb2b3)?_0x4eb2b3=_0x5ab685['end']:_0x5ab685['containsPosition'](_0x32f51c)&&(_0x32f51c=_0x5ab685['start']);continue;}_0x4eb2b3=_0x4eb2b3['isBefore'](_0x5ab685['start'])?_0x4eb2b3:_0x5ab685['start'],_0x32f51c=_0x32f51c['isAfter'](_0x5ab685['end'])?_0x32f51c:_0x5ab685['end'],_0x40cf1b=Object['assign']({},_0x5e0c4f['attributes']),_0x344ad0?_0x5ab685['start']['isBefore'](_0x344ad0['getFirstRange']()['start'])?(_0x344ad0['removeMarkers'](),_0x344ad0=_0x5e0c4f):_0x5e0c4f['removeMarkers']():_0x344ad0=_0x5e0c4f;}}}if(_0x344ad0)return this['_setSuggestionRange'](_0x344ad0,this['_model']['createRange'](_0x4eb2b3,_0x32f51c)),_0x344ad0;{const _0x1ec289=_0xd0f9be(),_0x5db1c6=this['_model']['createRange'](_0x4eb2b3,_0x32f51c),_0x17e913=_0xfb763a['id'],_0x47eaf2=_0x5598fc?'deletion:'+_0x5598fc:'deletion',_0x3ce0fe=this['_setSuggestionData']({'id':_0x1ec289,'type':_0x47eaf2,'createdAt':new Date(),'authorId':_0x17e913,'attributes':_0x40cf1b});return this['_addSuggestionMarker'](_0x47eaf2,_0x1ec289,_0x17e913,_0x5db1c6),_0x3ce0fe;}}['markMultiRangeDeletion'](_0x37a527,_0x33650d='multi',_0x28619a={}){const _0x593692=this['editor']['plugins']['get']('Users')['me'],_0x1f3568=_0x37a527['map'](_0x59971c=>new _0x3e3f9b(_0x59971c['start'],_0x59971c['end'])),_0x2d0e6c=new Set();this['_trackingSessionId']&&(_0x28619a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5c4f2e,meta:_0x3bfc1a}of this['_findSuggestions'](_0x1f3568,'insertion'))_0x3bfc1a['isOwn']&&!_0x3bfc1a['isNextTo']&&_0x2d0e6c['add'](_0x5c4f2e);for(const _0x459c8e of _0x2d0e6c)if(_0x459c8e['isMultiRange']){const _0x21bbb1=_0x459c8e['getRanges']();(!_0x459c8e['attributes']||!_0x459c8e['attributes']['skipNestingCheck'])&&(_0x21bbb1['every'](_0x128c6c=>_0x1f3568['some'](_0x1b9c73=>_0x1b9c73['containsRange'](_0x128c6c,!0x0)))&&_0x459c8e['discard']());if(_0x1f3568['every'](_0xef047d=>_0x21bbb1['some'](_0x532abc=>_0x532abc['containsRange'](_0xef047d,!0x0)))){const _0x561a23=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33650d,'accept');return this['forceDefaultExecution'](()=>_0x561a23(_0x37a527,null,_0x28619a)),null;}}else{const _0x5302a0=_0x459c8e['getFirstRange']();_0x1f3568['some'](_0x367397=>_0x367397['containsRange'](_0x5302a0,!0x0))&&_0x459c8e['discard']();if(_0x1f3568['every'](_0x55a42e=>_0x5302a0['containsRange'](_0x55a42e,!0x0))){const _0x4be2ca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33650d,'accept');return this['forceDefaultExecution'](()=>_0x4be2ca(_0x1f3568,null,_0x28619a)),null;}}const _0x364823=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33650d,'join');let _0x439008=null;for(const _0x21c688 of this['getSuggestions']())if(_0x21c688['author']['id']==_0x593692['id']&&_0x21c688['isInContent']&&'deletion'==_0x21c688['type']&&_0x21c688['subType']==_0x33650d&&Xt(_0x21c688,_0x28619a)&&(_0x364823(_0x21c688['getRanges'](),_0x1f3568)||_0x364823(_0x1f3568,_0x21c688['getRanges']()))){if(_0x439008){if(_0x21c688['commentThread']&&_0x21c688['commentThread']['length'])continue;for(const _0x29aff6 of _0x21c688['getRanges']())_0x439008['isIntersectingWithRange'](_0x29aff6)||_0x439008['addRange'](_0x29aff6);_0x21c688['removeMarkers']();}else{_0x439008=_0x21c688;for(const _0x614af9 of _0x1f3568)_0x21c688['isIntersectingWithRange'](_0x614af9)||_0x21c688['addRange'](_0x614af9);}}if(_0x439008)return _0x439008;_0x2d0e6c['clear']();for(const {suggestion:_0xccc144,meta:_0x10436a}of this['_findSuggestions'](_0x1f3568,'deletion'))_0x10436a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x10436a['containsRangeInObject']&&!_0x10436a['isInsideObject'])&&Xt(_0xccc144,_0x28619a)&&_0x2d0e6c['add'](_0xccc144);for(const _0x542751 of _0x2d0e6c){const _0x238c85=_0x542751['getRanges']();if(!_0x28619a||!_0x28619a['skipNestingCheck']){if(_0x1f3568['every'](_0x57c236=>_0x238c85['some'](_0x17c083=>_0x17c083['containsRange'](_0x57c236,!0x0))))return _0x542751;}(!_0x542751['attributes']||!_0x542751['attributes']['skipNestingCheck'])&&(_0x238c85['every'](_0x92b3d3=>_0x1f3568['some'](_0x2a207e=>_0x2a207e['containsRange'](_0x92b3d3,!0x0)))&&_0x542751['discard']());}const _0x1498ff=_0xd0f9be(),_0x7d0574=_0x593692['id'],_0x895555='deletion:'+_0x33650d,_0x4e3a1f=this['_setSuggestionData']({'id':_0x1498ff,'type':_0x895555,'createdAt':new Date(),'authorId':_0x7d0574,'attributes':_0x28619a});for(const _0x3f5378 of _0x1f3568)_0x3f5378['detach'](),_0x3f5378['isCollapsed']||'$graveyard'==_0x3f5378['root']['rootName']||this['_addSuggestionMarker'](_0x895555,_0x1498ff,_0x7d0574,_0x3f5378,T['getMultiRangeId']());return _0x4e3a1f;}['markAttributeChange'](_0x2746fe,_0x21545b,_0x27e1fb,_0x42e1a4,_0x38c05b){if(_0x2746fe['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1aa985=this['editor']['plugins']['get']('Users')['me']['id'],_0xdb1347=Array['from'](this['_suggestions']['values']())['filter'](_0x2a9dd3=>'attribute'==_0x2a9dd3['type']&&_0x2a9dd3['data']['key']==_0x21545b&&_0x2a9dd3['isIntersectingWithRange'](_0x2746fe));if(this['_trackingSessionId']&&(_0x38c05b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x514496=this['_findSuggestions'](_0x2746fe,'insertion')['filter'](({meta:_0x14e77a})=>_0x14e77a['isOwn']&&!_0x14e77a['isInsideObject']&&!_0x14e77a['isNextTo'])['map'](({suggestion:_0x39e126})=>_0x39e126);_0xdb1347['unshift'](..._0x514496);}const _0x1671f4=new Map([[_0x2746fe,_0x27e1fb]]);for(const _0x898e0e of _0xdb1347){const _0x4eff4b='attribute'==_0x898e0e['type']?_0x898e0e['data']['oldValue']:void 0x0,_0x5ad668=_0x898e0e['getFirstRange'](),_0x5ed90f=Array['from'](_0x1671f4['keys']())['find'](_0x31fe7f=>_0x31fe7f['isIntersecting'](_0x5ad668));if(!_0x5ed90f)continue;const _0x47795e=_0x5ed90f['getDifference'](_0x5ad668);this['_isBlockAttribute'](_0x21545b)&&'insertion'==_0x898e0e['type']&&0x0!=_0x47795e['length']||(_0x1671f4['delete'](_0x5ed90f),_0x47795e['forEach'](_0x11ff19=>{_0x1671f4['set'](_0x11ff19,_0x27e1fb);}),'insertion'!=_0x898e0e['type']&&_0x4eff4b!=_0x42e1a4&&_0x1671f4['set'](_0x5ed90f['getIntersection'](_0x5ad668),_0x4eff4b));}const _0x33ca5d=[];for(const [_0x5205b1,_0x2af891]of _0x1671f4){const _0x32cdb3=_0xd0f9be(),_0x3d208d={'key':_0x21545b,'oldValue':_0x2af891,'newValue':_0x42e1a4};_0x21545b['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':_0x21545b});const _0x4bab0e=('attribute:'+(_0x21545b+'|'+Lt({'newValue':_0x42e1a4})))['substring'](0x0,0x3c),_0x227b0c=this['_setSuggestionData']({'id':_0x32cdb3,'type':_0x4bab0e,'data':_0x3d208d,'createdAt':new Date(),'authorId':_0x1aa985,'attributes':_0x38c05b});_0x33ca5d['push'](_0x227b0c),this['_addSuggestionMarker'](_0x4bab0e,_0x32cdb3,_0x1aa985,_0x5205b1);}return _0x33ca5d;}['enableDefaultAttributesIntegration'](_0x1244e7){this['enableCommand'](_0x1244e7,(_0x354d2e,..._0x526ac4)=>{this['recordAttributeChanges'](()=>{_0x354d2e(..._0x526ac4);});});}['registerBlockAttribute'](_0x1bf51d){this['_blockAttributeKeys']['add'](_0x1bf51d);}['registerInlineAttribute'](_0x369eba){this['_inlineAttributeKeys']['add'](_0x369eba);}['startTrackingSession'](_0x4c5103){return this['_trackingSessionId']=void 0x0!==_0x4c5103?_0x4c5103:_0xd0f9be(),this['_trackingSessionId'];}['_getAttributeKey'](_0x46f936){return'attribute'==_0x46f936['type']?_0x46f936['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x398c21,_0xd83ca6){const _0x1ed268=_0x398c21['getFirstMarker']();this['_model']['change'](_0x55fdc7=>{_0x55fdc7['updateMarker'](_0x1ed268,{'range':_0xd83ca6});});}['_addThreadToSuggestion'](_0x495a3b){const _0x4a41a6=_0x495a3b['id'],_0x58bc19=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4a41a6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x58bc19,'threadId':_0x4a41a6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x59b3d8=this['_commentsRepository']['getCommentThread'](_0x4a41a6);_0x59b3d8['unbind']('isRemovable'),_0x59b3d8['isRemovable']=!0x1,_0x495a3b['commentThread']=_0x59b3d8;}['_checkSuggestionCorrectness'](_0x394cc7,_0x10b46a,_0x545bc7,_0xafebac){if(_0x394cc7['type']!=_0x10b46a||_0x394cc7['subType']!=_0x545bc7||_0x394cc7['creator']['id']!=_0xafebac)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4fc565('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x554f62,_0x19d152){const _0x2399c1=_0x554f62['getFirstRange']();if(_0x19d152['isEqual'](_0x2399c1))_0x554f62['removeMarkers']();else{if(_0x2399c1['containsRange'](_0x19d152)){const _0x6c707b=this['_model']['createPositionAt'](_0x19d152['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x554f62,this['_model']['createRange'](_0x2399c1['start'],_0x6c707b));const _0x44fbf2=_0xd0f9be(),_0x218b6a=_0x554f62['creator']['id'],_0x232485=_0x554f62['type']+':'+_0x554f62['subType'];this['_setSuggestionData']({'id':_0x44fbf2,'type':_0x232485,'createdAt':new Date(),'authorId':_0x218b6a,'data':_0x554f62['data'],'attributes':_0x554f62['attributes']});const _0x513808=this['_model']['createPositionAt'](_0x19d152['end']['parent'],'after'),_0x277902=this['_model']['createRange'](_0x513808,_0x2399c1['end']);this['_addSuggestionMarker'](_0x232485,_0x44fbf2,_0x218b6a,_0x277902);}else{if(_0x2399c1['containsPosition'](_0x19d152['start'])){const _0x23e997=this['_model']['createPositionAt'](_0x19d152['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x554f62,this['_model']['createRange'](_0x2399c1['start'],_0x23e997));}else{const _0x276e77=this['_model']['createPositionAt'](_0x19d152['end']['parent'],'after');this['_setSuggestionRange'](_0x554f62,this['_model']['createRange'](_0x276e77,_0x2399c1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x366617){for(const {suggestion:_0x41369a,meta:_0x5482be}of this['_findSuggestions'](_0x366617,'insertion')){if(!_0x5482be['isOwn'])continue;const _0x23a2c0=_0x41369a['getRanges']();for(const _0x3f6ab0 of _0x23a2c0)if(!_0x366617['getDifference'](_0x3f6ab0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x13c49a){const _0x5052af=this['editor']['plugins']['get']('Users')['getUser'](_0x13c49a);if(!_0x5052af)throw new _0x4fc565('track-changes-user-not-found',this);return _0x5052af;}['_getExternalAuthor'](_0x2c5e9a){const _0x456927=this['editor']['plugins']['get']('Users'),_0x546b8c=_0xc7d82c('external:'+_0x2c5e9a),_0xff7d0=_0x456927['getUser'](_0x546b8c);return _0xff7d0||_0x456927['addUser']({'id':_0x546b8c,'name':_0x2c5e9a});}['_createSuggestion'](_0x2fb76b,_0xb6d283,_0x3dc6bd,_0x5a7f49,_0x4f2593,_0x246edd){const _0x353ce5=this['_getAuthorFromId'](_0x5a7f49),_0x2bee75=this['_suggestionFactory']['buildSuggestion'](_0x2fb76b,_0xb6d283,_0x3dc6bd,_0x353ce5,_0x4f2593,_0x4fdd39=>{this['_updateSuggestionData'](_0x3dc6bd,{'attributes':_0x4fdd39});const _0x45a64d=this['getSuggestion'](_0x3dc6bd);this['_joinWithAdjacentSuggestions'](new Set([_0x45a64d])),this['_refreshSuggestionsChain'](new Set([_0x45a64d]));},_0x246edd);return this['listenTo'](_0x2bee75,'accept',()=>{this['_updateSuggestionData'](_0x3dc6bd,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2bee75,'discard',()=>{this['_updateSuggestionData'](_0x3dc6bd,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3dc6bd,_0x2bee75),this['_suggestionState']['set'](_0x2bee75,'notReady'),_0x2bee75;}['_splitMarkerName'](_0xbdc626){const _0x2ddd56=_0xbdc626['split'](':');return{'group':_0x2ddd56[0x0],'type':_0x2ddd56[0x1],'subType':_0x2ddd56['length']>=0x5?_0x2ddd56[0x2]:null,'id':_0x2ddd56['length']<0x5?_0x2ddd56[0x2]:_0x2ddd56[0x3],'authorId':_0x2ddd56['length']<0x5?_0x2ddd56[0x3]:_0x2ddd56[0x4],'markerCount':0x6==_0x2ddd56['length']?_0x2ddd56[0x5]:null};}['_breakSuggestionMarker'](_0x44448c,_0x506283,_0x47ffdd){const _0x30cd28=_0x44448c['getFirstRange'](),_0x20a02f=_0x30cd28['start'],_0x357759=_0x30cd28['end'];this['_setSuggestionRange'](_0x44448c,this['_model']['createRange'](_0x20a02f,_0x506283));const _0x2219aa=_0xd0f9be(),_0x3ee7f1=_0x44448c['creator']['id'],_0x1afdfb=_0x44448c['type']+(_0x44448c['subType']?':'+_0x44448c['subType']:'');this['_setSuggestionData']({'id':_0x2219aa,'type':_0x1afdfb,'createdAt':new Date(),'authorId':_0x3ee7f1,'originalSuggestionId':_0x44448c['_originalSuggestionId']||_0x44448c['id'],'attributes':_0x44448c['attributes'],'data':_0x44448c['data']});const _0x17830b=this['_getAttributeKey'](_0x44448c);('formatBlock'==_0x44448c['type']||_0x17830b&&this['_isBlockAttribute'](_0x17830b))&&(_0x47ffdd=this['_model']['createPositionBefore'](_0x47ffdd['parent'])),this['_addSuggestionMarker'](_0x1afdfb,_0x2219aa,_0x3ee7f1,this['_model']['createRange'](_0x47ffdd,_0x357759));}['_findSuggestions'](_0x2ece18,_0x56dfda=null){const _0x10af2a=[],_0x5e4eca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2ece18)||(_0x2ece18=[_0x2ece18]);for(const _0x4dc921 of this['getSuggestions']()){if(!_0x4dc921['isInContent'])continue;if(_0x56dfda&&_0x4dc921['type']!=_0x56dfda)continue;let _0x2c5126=!0x1;for(const _0x173780 of _0x4dc921['getRanges']()){for(const _0x14b961 of _0x2ece18){const _0x51084f=_0x14b961['start']['isEqual'](_0x173780['end'])||_0x14b961['end']['isEqual'](_0x173780['start']);if(_0x51084f||_0x14b961['getIntersection'](_0x173780)){const _0x5da996=_0x14b961['containsRange'](_0x173780)&&Ft(this['_model']['schema'],_0x173780['start'],_0x14b961),_0x173362=_0x173780['containsRange'](_0x14b961)&&Ft(this['_model']['schema'],_0x14b961['start'],_0x173780);_0x10af2a['push']({'suggestion':_0x4dc921,'meta':{'isOwn':_0x5e4eca==_0x4dc921['author'],'isNextTo':_0x51084f,'isInsideObject':_0x5da996,'containsRangeInObject':_0x173362}}),_0x2c5126=!0x0;break;}}if(_0x2c5126)break;}}return _0x10af2a;}['_addSuggestionMarker'](_0x2bc4e2,_0x3bb5c6,_0x41217a,_0x51b982,_0x5b9c93){this['_model']['change'](_0x23891c=>{let _0x36872e='suggestion:'+_0x2bc4e2+':'+_0x3bb5c6+':'+_0x41217a;_0x5b9c93&&(_0x36872e=_0x36872e+':'+_0x5b9c93),_0x23891c['addMarker'](_0x36872e,{'range':_0x51b982,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x59b676){const _0x4ee690=_0x59b676['previous'],_0x25a23d=_0x59b676['next'];_0x59b676['previous']=null,_0x59b676['next']=null,null!=_0x4ee690&&_0x4ee690['next']==_0x59b676&&(_0x4ee690['next']=_0x25a23d),null!=_0x25a23d&&_0x25a23d['previous']==_0x59b676&&(_0x25a23d['previous']=_0x4ee690),'ready'==this['_suggestionState']['get'](_0x59b676)&&(this['_suggestionState']['set'](_0x59b676,'removed'),this['fire']('suggestionUnloaded',_0x59b676,_0x4ee690,_0x25a23d));}['_setSuggestionData'](_0x38b353){const _0x3f5bff=_0x38b353['id'],_0x2e000f=this['addSuggestionData'](_0x38b353);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5d7e89=this['editor']['plugins']['get']('PendingActions'),_0x25534f=_0x2e000f['hasComments'],_0x20cd0b=_0x2e000f['subType']?_0x2e000f['type']+':'+_0x2e000f['subType']:_0x2e000f['type'],_0x1bf99b=this['editor']['locale'],_0x1ff5f3=_0x5d7e89['add'](o(_0x1bf99b,'PENDING_ACTION_SUGGESTION')),_0x5abb58={'id':_0x3f5bff,'type':_0x20cd0b,'hasComments':_0x25534f,'data':_0x38b353['data']||null,'originalSuggestionId':_0x38b353['originalSuggestionId']||null,'attributes':_0x2e000f['attributes']};this['_adapter']['addSuggestion'](_0x5abb58)['then'](_0x2c3289=>{_0x2e000f['_saved']=!0x0,_0x5d7e89['remove'](_0x1ff5f3),_0x2c3289&&_0x2c3289['createdAt']&&(this['_suggestions']['get'](_0x3f5bff)['createdAt']=_0x2c3289['createdAt']);})['catch'](_0x1023a5=>{throw _0x40102e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2e000f['discard']();}),_0x2e000f['stopListening'](),this['_suggestions']['delete'](_0x2e000f['id']),this['_suggestionState']['delete'](_0x2e000f),_0x1023a5;});}return _0x2e000f;}['_isBlockAttribute'](_0x1ee20a){return this['_blockAttributeKeys']['has'](_0x1ee20a);}['_isInlineAttribute'](_0x272d1b){return this['_inlineAttributeKeys']['has'](_0x272d1b);}['_updateSuggestionData'](_0x3f154c,_0x22a58f){const _0xf780e7=this['editor']['plugins']['get']('PendingActions'),_0x559272=this['getSuggestion'](_0x3f154c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x559272['_saved']){const _0x47c696=_0xf780e7['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3f154c,_0x22a58f)['then'](()=>{_0xf780e7['remove'](_0x47c696);});}else _0x559272['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3f154c,_0x22a58f);});}}['_getSuggestionData'](_0x1b7333){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4fc565('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1b7333);}['_handleNewSuggestionMarker'](_0x5aec7b){const {id:_0x1d8cf0,type:_0xdff7bb,subType:_0x437c89,authorId:_0xd09775}=this['_splitMarkerName'](_0x5aec7b),_0xaad858=this['_suggestions']['get'](_0x1d8cf0)||this['_createSuggestion'](_0xdff7bb,_0x437c89,_0x1d8cf0,_0xd09775,{});switch(this['_checkSuggestionCorrectness'](_0xaad858,_0xdff7bb,_0x437c89,_0xd09775),this['_suggestionState']['get'](_0xaad858)){case'notReady':this['_getSuggestionData'](_0x1d8cf0)['then'](_0x1f648d=>{let _0x51f4d2=Promise['resolve']();_0x1f648d['hasComments']&&(_0x51f4d2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1d8cf0})),_0x51f4d2['then'](()=>{this['addSuggestionData'](_0x1f648d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xaad858,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d8cf0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xaad858,'ready'),this['fire']('suggestionLoaded',_0xaad858);break;case'ready':this['fire']('suggestionChanged',_0xaad858);}return _0xaad858['addMarkerName'](_0x5aec7b),_0xaad858;}['_refreshSuggestionsChain'](_0x131b3a){const _0x5a0944=Array['from'](_0x131b3a),_0x58fb2f=_0x5a0944['filter'](_0x1989ac=>'attribute'==_0x1989ac['type']);this['_refreshAttributeSuggestionsChain'](_0x58fb2f);const _0x396435=_0x5a0944['filter'](_0x3b5225=>!_0x3b5225['isMultiRange']&&'attribute'!=_0x3b5225['type']),_0x390f2d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25ef1b=>!_0x25ef1b['isMultiRange']&&'attribute'!=_0x25ef1b['type']),_0x151a9d=_0x390f2d['filter'](_0x484bad=>!_0x131b3a['has'](_0x484bad)),_0x5e9d63=new Map(_0x390f2d['map'](_0x18e194=>[_0x18e194,this['_suggestionFactory']['getSuggestionCallback'](_0x18e194['type'],_0x18e194['subType'],'chain')])),_0xeda59e=new Map(_0x390f2d['map'](_0x427c7a=>[_0x427c7a,_0x427c7a['getFirstRange']()])),_0xeff5ff=new Set(),_0x1843bb=new Set();for(let _0x1fe64c=0x0;_0x1fe64c<_0x396435['length'];_0x1fe64c++)_0x460aad(_0x396435[_0x1fe64c],_0x396435,_0x1fe64c+0x1);for(let _0x377724=0x0;_0x377724<_0x396435['length'];_0x377724++)_0x460aad(_0x396435[_0x377724],_0x151a9d,0x0);const _0x2e1ee4=new Set();for(let _0x17453e=0x0;_0x17453e<_0x396435['length'];_0x17453e++){const _0x25ed24=_0x396435[_0x17453e];!_0x1843bb['has'](_0x25ed24)&&_0x25ed24['previous']&&(_0x2e1ee4['add'](_0x25ed24['previous']),_0x25ed24['previous']['next']===_0x25ed24&&(_0x25ed24['previous']['next']=null),_0x25ed24['previous']=null),!_0xeff5ff['has'](_0x25ed24)&&_0x25ed24['next']&&(_0x2e1ee4['add'](_0x25ed24['next']),_0x25ed24['next']['previous']===_0x25ed24&&(_0x25ed24['next']['previous']=null),_0x25ed24['next']=null);}function _0x460aad(_0x16d44e,_0x3fcdee,_0x245aed){for(let _0x423cc5=_0x245aed;_0x423cc5<_0x3fcdee['length'];_0x423cc5++){const _0x145b48=_0x16af2c(_0x16d44e,_0x3fcdee[_0x423cc5]);_0x145b48&&(_0x145b48[0x0]['next']=_0x145b48[0x1],_0x145b48[0x1]['previous']=_0x145b48[0x0],_0xeff5ff['add'](_0x145b48[0x0]),_0x1843bb['add'](_0x145b48[0x1]));}}function _0x16af2c(_0x55c46a,_0x321832){if(_0x55c46a['author']['id']!==_0x321832['author']['id'])return null;const _0x32f867=_0x5e9d63['get'](_0x55c46a)(_0x55c46a,_0x321832,_0xeda59e['get'](_0x55c46a),_0xeda59e['get'](_0x321832));if(!_0x32f867)return null;return _0x5e9d63['get'](_0x321832)(_0x55c46a,_0x321832,_0xeda59e['get'](_0x55c46a),_0xeda59e['get'](_0x321832))?_0x32f867[0x1]['commentThread']&&_0x32f867[0x1]['commentThread']['length']?null:_0x32f867:null;}_0x2e1ee4['size']&&this['_refreshSuggestionsChain'](_0x2e1ee4);}['_refreshAttributeSuggestionsChain'](_0x2cb780){if(0x0==_0x2cb780['length'])return;const _0x5c5eff=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58c0b8=>'attribute'==_0x58c0b8['type']&&_0x58c0b8['_isDataLoaded']),_0x5318d6=[],_0x12ad80=new Map();for(const _0x4d9981 of _0x5c5eff){const _0x42c7ab=_0xc7d82c(_0x4d9981['attributes']);_0x12ad80['has'](_0x42c7ab)||(_0x12ad80['set'](_0x42c7ab,_0x5318d6['length']),_0x5318d6['push']([]));const _0x10aca1=_0x12ad80['get'](_0x42c7ab);_0x5318d6[_0x10aca1]['push'](_0x4d9981);}!(function(){_0x5318d6['sort']((_0xaf57f2,_0x3f9dca)=>{const _0x497a75=_0xaf57f2[0x0]['createdAt'],_0x484b6=_0x3f9dca[0x0]['createdAt'];return _0x497a75==_0x484b6?_0xaf57f2[0x0]['attributes']['groupId']<_0x3f9dca[0x0]['attributes']['groupId']?-0x1:0x1:_0x497a75<_0x484b6?-0x1:0x1;});for(const _0x357221 of _0x5318d6)_0x357221['sort']((_0x21edaf,_0x461b39)=>_0x21edaf['id']<_0x461b39['id']?-0x1:0x1);}());for(let _0x374281=0x0;_0x374281<_0x5318d6['length'];_0x374281++){if(0x0==_0x5318d6[_0x374281]['length'])continue;const _0xe05fcb=[];for(let _0x177d19=_0x374281+0x1;_0x177d19<_0x5318d6['length'];_0x177d19++)0x0!=_0x5318d6[_0x177d19]['length']&&_0xc49591(_0x5318d6[_0x374281],_0x5318d6[_0x177d19])&&_0xe05fcb['push'](_0x177d19);for(const _0x25f206 of _0xe05fcb)_0x5318d6[_0x374281]=_0x5318d6[_0x374281]['concat'](_0x5318d6[_0x25f206]),_0x5318d6[_0x25f206]=[];}for(const _0x159b7e of _0x5318d6)for(let _0x144273=0x0;_0x144273<_0x159b7e['length'];_0x144273++){const _0x3db588=_0x159b7e[_0x144273+0x1]||null;_0x159b7e[_0x144273]['next']!==_0x3db588&&(_0x159b7e[_0x144273]['next']=_0x3db588);}for(const _0x5a0cd1 of _0x5318d6)for(let _0x574220=0x0;_0x574220<_0x5a0cd1['length'];_0x574220++){const _0x3dadad=_0x5a0cd1[_0x574220-0x1]||null;_0x5a0cd1[_0x574220]['previous']!==_0x3dadad&&(_0x5a0cd1[_0x574220]['previous']=_0x3dadad);}function _0xc49591(_0x60f985,_0xeae767){if(_0x60f985[0x0]['attributes']['groupId']!==_0xeae767[0x0]['attributes']['groupId']&&_0x60f985[0x0]['author']!==_0xeae767[0x0]['author'])return!0x1;if(!function(_0x1035f6,_0x2a35f5){if(!_0x1035f6['hasComments']&&!_0x2a35f5['hasComments'])return!0x0;if(_0x1035f6['hasComments']&&_0x2a35f5['hasComments'])return!0x1;if(_0x1035f6['hasComments']&&_0x2a35f5['createdAt']<_0x1035f6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2a35f5['hasComments']&&_0x1035f6['createdAt']<_0x2a35f5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x60f985[0x0],_0xeae767[0x0]))return!0x1;const _0x30b07c=Ut(_0x60f985[0x0]['attributes'],['groupId','trackingSessionId']),_0x1c0eb0=Ut(_0xeae767[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1314a1(_0x30b07c,_0x1c0eb0))return!0x1;if(_0x60f985[0x0]['attributes']['groupId']==_0xeae767[0x0]['attributes']['groupId'])return!0x0;if(_0x60f985[0x0]['attributes']['trackingSessionId']!==_0xeae767[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x60f985['every'](_0x5c8591=>_0xeae767['some'](_0x43f95b=>_0x5c8591['getFirstRange']()['isEqual'](_0x43f95b['getFirstRange']())))&&_0xeae767['every'](_0x485446=>_0x60f985['some'](_0x1fac07=>_0x485446['getFirstRange']()['isEqual'](_0x1fac07['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2e3978){const _0x4dd2b2=Array['from'](_0x2e3978),_0x3f8dc3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x264375=_0x3f8dc3['filter'](_0x40946f=>!_0x2e3978['has'](_0x40946f)),_0x3a22d2=new Map(_0x4dd2b2['map'](_0x5de0cf=>[_0x5de0cf,this['_suggestionFactory']['getSuggestionCallback'](_0x5de0cf['type'],_0x5de0cf['subType'],'join')])),_0x3acbd4=new Map(_0x3f8dc3['map'](_0x1cb9fd=>[_0x1cb9fd,_0x1cb9fd['getRanges']()]));for(let _0x3b9d14=0x0;_0x3b9d14<_0x4dd2b2['length'];_0x3b9d14++){if(_0x57b3ea(this,_0x4dd2b2[_0x3b9d14],_0x4dd2b2,_0x3b9d14+0x1))return!0x0;}for(let _0x7c2793=0x0;_0x7c2793<_0x4dd2b2['length'];_0x7c2793++){if(_0x57b3ea(this,_0x4dd2b2[_0x7c2793],_0x264375,0x0))return!0x0;}return!0x1;function _0x57b3ea(_0xcb86e4,_0x480bf8,_0x1fb64c,_0x28b51f){for(let _0x316fc9=_0x28b51f;_0x316fc9<_0x1fb64c['length'];_0x316fc9++){const _0x46e5d8=_0x1fb64c[_0x316fc9];if(_0x46e5d8['type']!==_0x480bf8['type']||_0x46e5d8['author']['id']!==_0x480bf8['author']['id']||_0x46e5d8['subType']!==_0x480bf8['subType'])continue;if(!Qt(_0x480bf8,_0x46e5d8))continue;if('attribute'==_0x480bf8['type']&&_0x480bf8['data']['oldValue']!=_0x46e5d8['data']['oldValue'])continue;if('attribute'==_0x480bf8['type']&&_0xcb86e4['_isBlockAttribute'](_0x480bf8['data']['key']))continue;if('formatBlock'==_0x480bf8['type']){const _0x38b286=_0xcb86e4['editor']['model'],_0x4f338c=_0x480bf8['getContainedElement']();if(_0x4f338c&&(_0x38b286['schema']['isObject'](_0x4f338c)||_0x38b286['schema']['isLimit'](_0x4f338c)))continue;}const _0x3c392b=_0x3a22d2['get'](_0x480bf8),_0x55762a=_0x3acbd4['get'](_0x480bf8),_0xd4172b=_0x3acbd4['get'](_0x46e5d8),_0x2b3070=_0x480bf8['commentThread']&&_0x480bf8['commentThread']['length'],_0x860765=_0x46e5d8['commentThread']&&_0x46e5d8['commentThread']['length'];if(!_0x2b3070&&_0x3c392b(_0xd4172b,_0x55762a))return _0xcb86e4['_joinSuggestions'](_0x46e5d8,_0x480bf8),_0x3acbd4['delete'](_0x480bf8),!0x0;if(!_0x860765&&_0x3c392b(_0x55762a,_0xd4172b))return _0xcb86e4['_joinSuggestions'](_0x480bf8,_0x46e5d8),_0x3acbd4['delete'](_0x46e5d8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x555221,_0x5446ec){if(_0x555221['isMultiRange']){for(const _0x81c1b1 of _0x5446ec['getRanges']())_0x555221['addRange'](_0x81c1b1);}else{const _0x367bd9=_0x5446ec['getFirstRange']()['end'];this['_setSuggestionRange'](_0x555221,this['_model']['createRange'](_0x555221['getFirstRange']()['start'],_0x367bd9));}_0x5446ec['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5130a1,_0x958c6c,_0x496ec9){const _0x5203e8=_0x5130a1['startsWith']('format')||_0x5130a1['startsWith']('attribute')?'FORMATTING':_0x5130a1['toUpperCase']();return o(this['editor']['locale'],_0x958c6c+'_'+_0x5203e8+'_SUGGESTION_ANNOUNCEMENT',_0x496ec9);}['_initAriaMarkerChangeAnnouncements'](){const _0x320fd9=this['editor'];if(!_0x320fd9['ui'])return;const {ariaLiveAnnouncer:_0x3a82f6}=_0x320fd9['ui'];_0x102e1c(this['_model'],({left:_0x2607f0,entered:_0x4b22f5})=>{for(const _0xa9bc58 of _0x2607f0){const {group:_0x36c664,type:_0x32654c}=this['_splitMarkerName'](_0xa9bc58['name']);if('suggestion'===_0x36c664){_0x3a82f6['announce'](this['_getMarkerAnnouncementText'](_0x32654c,'LEAVE'));break;}}for(const _0x4a3e07 of _0x4b22f5){const {group:_0x2965c8,type:_0x1cb788}=this['_splitMarkerName'](_0x4a3e07['name']);if('suggestion'===_0x2965c8){_0x3a82f6['announce'](this['_getMarkerAnnouncementText'](_0x1cb788,'ENTER',_0x17d6f8(_0x2534da)));break;}}});}['_processAttributeChanges'](_0x44f5b3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x29c579=this['editor'],_0x2f7811=_0x29c579['model']['document']['differ']['getChanges']();if(0x0==_0x2f7811['length'])return!0x1;const _0x257a8d=[],_0x35be1f=_0x2f7811['filter'](_0x94071=>'attribute'==_0x94071['type']),_0x4a15e0=_0x2f7811['filter'](_0x454e30=>'insert'==_0x454e30['type']&&'$text'!=_0x454e30['name']),_0x2401cf=_0x2f7811['filter'](_0x5205f0=>'remove'==_0x5205f0['type']&&'$text'!=_0x5205f0['name']);for(const _0x214d66 of _0x35be1f)_0x257a8d['push']({'key':_0x214d66['attributeKey'],'newValue':_0x214d66['attributeNewValue'],'oldValue':_0x214d66['attributeOldValue'],'range':qt(_0x214d66['range'],_0x29c579['model'])});for(const _0xf4b26b of _0x4a15e0){const _0x304e57=_0x2401cf['find'](_0x51a1ae=>_0x51a1ae['position']['isEqual'](_0xf4b26b['position']));_0x304e57&&_0x257a8d['push']({'key':m,'newValue':_0xf4b26b['name'],'oldValue':_0x304e57['name'],'range':_0x29c579['model']['createRangeOn'](_0xf4b26b['position']['nodeAfter'])});}return 0x0!=_0x257a8d['length']&&this['_reduceExistingSuggestions'](_0x44f5b3,_0x257a8d);}['_processAttributeSuggestions'](_0x2a9266){let _0xda5401=!0x1;const _0x31ee3a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e7e30=>_0x4e7e30['data']['newRange']&&_0x4e7e30['name']['startsWith']('suggestion:attribute:'));for(const _0x32edf9 of _0x31ee3a){const {subType:_0x163a09,id:_0x59c58f}=this['_splitMarkerName'](_0x32edf9['name']),_0xd23bfe=_0x163a09['split']('|')[0x0];for(const _0x3c0680 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3c0680['id']!=_0x59c58f&&'attribute'==_0x3c0680['type']&&_0x3c0680['data']&&_0x3c0680['data']['key']==_0xd23bfe&&_0x3c0680['getFirstRange']()['isIntersecting'](_0x32edf9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3c0680,_0x32edf9['data']['newRange'],_0x2a9266),_0xda5401=!0x0);}return _0xda5401;}['recordAttributeChanges'](_0x52aca2){this['_recordAttributeSuggestions']=!0x0,_0x52aca2();}['_isRegisteredAttribute'](_0x769a87){const _0x3719b1=this['_isBlockAttribute'](_0x769a87),_0x271a27=this['_isInlineAttribute'](_0x769a87);return _0x3719b1||_0x271a27;}['_reduceExistingSuggestions'](_0x4ddb5d,_0x10ba7c){if(0x0==_0x10ba7c['length'])return!0x1;let _0x52429b=!0x1;for(const _0x4de1f5 of _0x10ba7c){const _0x189d4c=this['_findSuggestions'](_0x4de1f5['range'],'attribute')['filter'](_0x446155=>!_0x446155['meta']['isNextTo'])['map'](_0xd0a7c3=>_0xd0a7c3['suggestion']),_0xd9757f=_0xc7d82c({'newValue':_0x4de1f5['newValue']});_0x189d4c['filter'](_0x3e6aeb=>{const [_0x3fa3c3,_0x2d74f8]=_0x3e6aeb['subType']['split']('|');return _0x3fa3c3==_0x4de1f5['key']&&_0x2d74f8!=_0xd9757f;})['forEach'](_0x513113=>{this['_reduceSuggestionAttributeRange'](_0x513113,_0x4de1f5['range'],_0x4ddb5d),_0x52429b=!0x0;});}return _0x52429b;}['_reduceSuggestionAttributeRange'](_0x4962b8,_0x1711e9,_0x2a5b3b){const _0x16ea1e=_0x4962b8['getFirstRange']()['getDifference'](_0x1711e9);0x0!==_0x16ea1e['length']?0x1!==_0x16ea1e['length']?this['_breakSuggestionMarker'](_0x4962b8,_0x1711e9['start'],_0x1711e9['end']):this['_setSuggestionRange'](_0x4962b8,_0x16ea1e[0x0]):_0x2a5b3b['removeMarker'](_0x4962b8['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3cd839){this['_editor']=_0x3cd839,this['_model']=_0x3cd839['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x355596,_0x3460bd,_0x44abea,_0x529a9d,_0x118525,_0x1807f2,_0x4622b3){return new T(this['_model'],{'type':_0x355596,'subType':_0x3460bd,'id':_0x44abea,'originalSuggestionId':_0x4622b3,'author':_0x529a9d,'creator':_0x529a9d,'attributes':_0x118525,'onAttributesChange':_0x1807f2,'onAccept':(..._0x5ce271)=>this['getSuggestionCallback'](_0x355596,_0x3460bd,'accept')(..._0x5ce271),'onDiscard':(..._0x2e0ac3)=>this['getSuggestionCallback'](_0x355596,_0x3460bd,'discard')(..._0x2e0ac3)});}['registerCustomCallback'](_0x1bbe8f,_0x4e273c,_0x28c1fe,_0x5286ce){const _0x4bbe30=_0x1bbe8f+':'+_0x4e273c+':'+_0x28c1fe;this['_customCallbacks']['set'](_0x4bbe30,_0x5286ce);}['getSuggestionCallback'](_0x1ff6b7,_0x106068,_0x4163ba){const _0x2a0b7c=_0x1ff6b7+':'+_0x106068+':'+_0x4163ba;return this['_customCallbacks']['get'](_0x2a0b7c)||this['_defaultCallbacks']['get'](_0x1ff6b7+':'+_0x4163ba);}['_registerDefaultCallbacks'](){const _0x15d36e=()=>!0x1,_0x4b4565=_0x378cf5=>{_0x378cf5['sort']((_0x20e21f,_0x3bc35d)=>_0x20e21f['start']['isBefore'](_0x3bc35d['start'])?0x1:-0x1),this['_model']['change'](_0x51615f=>{for(const _0x405087 of _0x378cf5){let _0x161260;_0x161260=_0x405087['end']['isAtEnd']&&_0x405087['end']['parent']==_0x405087['start']['nodeAfter']?_0x51615f['createSelection'](_0x405087['start']['nodeAfter'],'on'):_0x51615f['createSelection'](_0x405087),this['_model']['deleteContent'](_0x161260,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4f28e4=(_0x540c1b,_0x4875b3)=>{_0x4875b3&&this['_model']['change'](_0x25e7d3=>{const {commandName:_0x384ad6,commandParams:_0x5790=[]}=_0x4875b3,_0xe1a8ba=_0x540c1b['map'](_0x5c3006=>(Pt(_0x5c3006)&&(_0x5c3006=this['_model']['createRange'](_0x5c3006['end'])),_0x5c3006))['filter'](_0x153480=>'$graveyard'!==_0x153480['root']['rootName']);if(_0xe1a8ba['length']<0x1)return;const _0x528b40=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2c615e=>_0x3e3f9b['fromRange'](_0x2c615e));_0x25e7d3['setSelection'](_0xe1a8ba);for(const _0x489854 of this['_editor']['commands']['commands']())_0x489854['refresh']();_0x5790['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x384ad6,..._0x5790);const _0x49690a=_0x528b40['filter'](_0x3758e1=>'$graveyard'!=_0x3758e1['root']['rootName']);_0x49690a['length']>0x0&&_0x25e7d3['setSelection'](_0x49690a);for(const _0x53dd3c of _0x528b40)_0x53dd3c['detach']();});},_0x1c089f=(_0x196d01,_0x5ecbe2)=>0x1==_0x196d01['length']&&0x1==_0x5ecbe2['length']&&_0x196d01[0x0]['end']['isEqual'](_0x5ecbe2[0x0]['start']),_0x55069f=(_0x2e7db6,_0x209448,_0x491349,_0x3b2bc6)=>Wt(_0x2e7db6,_0x209448,_0x491349,_0x3b2bc6)?[_0x2e7db6,_0x209448]:Wt(_0x209448,_0x2e7db6,_0x3b2bc6,_0x491349)?[_0x209448,_0x2e7db6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x15d36e),this['_defaultCallbacks']['set']('insertion:discard',_0x4b4565),this['_defaultCallbacks']['set']('insertion:join',_0x1c089f),this['_defaultCallbacks']['set']('insertion:chain',_0x55069f),this['_defaultCallbacks']['set']('deletion:accept',_0x4b4565),this['_defaultCallbacks']['set']('deletion:discard',_0x15d36e),this['_defaultCallbacks']['set']('deletion:join',_0x1c089f),this['_defaultCallbacks']['set']('deletion:chain',_0x55069f),this['_defaultCallbacks']['set']('formatInline:accept',_0x4f28e4),this['_defaultCallbacks']['set']('formatInline:discard',_0x15d36e),this['_defaultCallbacks']['set']('formatInline:join',_0x1c089f),this['_defaultCallbacks']['set']('formatInline:chain',_0x15d36e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4f28e4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x15d36e),this['_defaultCallbacks']['set']('formatBlock:join',_0x1c089f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x15d36e),this['_defaultCallbacks']['set']('attribute:accept',_0x15d36e),this['_defaultCallbacks']['set']('attribute:discard',(_0x424c9d,_0x5a94e3)=>{if(!_0x5a94e3)return;const _0x4f2bb0=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2192ae=>{if(_0x5a94e3['key']==m)for(const _0x32e138 of _0x424c9d){const _0x50df7d=_0x32e138['start']['nodeAfter'],_0x1541be=_0x5a94e3['oldValue'];_0x2192ae['rename'](_0x50df7d,_0x1541be);}else{if(_0x4f2bb0['_isBlockAttribute'](_0x5a94e3['key'])){for(const _0x20ef5d of _0x424c9d)void 0x0!==_0x5a94e3['oldValue']?_0x2192ae['setAttribute'](_0x5a94e3['key'],_0x5a94e3['oldValue'],_0x20ef5d['start']['nodeAfter']):_0x2192ae['removeAttribute'](_0x5a94e3['key'],_0x20ef5d['start']['nodeAfter']);}else{for(const _0x5154ad of _0x424c9d)_0x5a94e3['oldValue']?_0x2192ae['setAttribute'](_0x5a94e3['key'],_0x5a94e3['oldValue'],_0x5154ad):_0x2192ae['removeAttribute'](_0x5a94e3['key'],_0x5154ad);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1c089f);}}function Ft(_0x11d2db,_0x325044,_0x1e1254){for(const _0x59f24b of _0x325044['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59f24b['root']==_0x59f24b)return!0x1;if(!_0x1e1254['containsItem'](_0x59f24b))return!0x1;if(_0x11d2db['isObject'](_0x59f24b)||_0x11d2db['isLimit'](_0x59f24b))return!0x0;}return!0x1;}function Pt(_0x15cacc){return _0x15cacc['end']['parent']==_0x15cacc['start']['nodeAfter']&&_0x15cacc['end']['isAtStart'];}function Gt(_0x5ea64d,_0x6beffb,_0xd53ef9,_0x4deaac){const _0xa0783a=_0x3767f0=>!_0x3767f0['item']['is']('$textProxy')&&!_0x4deaac['isObject'](_0x3767f0['item']),_0x385224=_0x5ea64d['start']['getLastMatchingPosition'](_0xa0783a),_0x474dfb=_0x5ea64d['end']['getLastMatchingPosition'](_0xa0783a,{'direction':'backward'});return(!_0x5ea64d['start']['isEqual'](_0x385224)||!_0x5ea64d['end']['isEqual'](_0x474dfb))&&(_0x385224['isBefore'](_0x474dfb)?_0xd53ef9['updateMarker'](_0x6beffb,{'range':_0xd53ef9['createRange'](_0x385224,_0x474dfb)}):_0xd53ef9['removeMarker'](_0x6beffb),!0x0);}function Lt(_0x21b7fe){return _0xc7d82c(_0x21b7fe);}function Jt(_0x4f8c38){const _0x5b9851=_0x4f8c38['start']['nodeAfter'];return _0x5b9851&&_0x5b9851['is']('element');}function Kt(_0x9bc396){return Pt(_0x9bc396)||function(_0x27654d){return _0x27654d['start']['parent']==_0x27654d['end']['nodeBefore']&&_0x27654d['start']['isAtEnd'];}(_0x9bc396);}function Ht(_0x3ca0af,_0x4144c7){try{const _0x3f3ff0=_0x3ca0af['getRange']();for(const _0x2dee4f of _0x4144c7)if(_0x3ca0af!==_0x2dee4f&&_0x3f3ff0&&_0x3f3ff0['isIntersecting'](_0x2dee4f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x5d921a,_0x3b6321){return null==_0x5d921a['end']['nodeBefore']&&_0x5d921a['end']['parent']==_0x5d921a['start']['nodeAfter']?zt(_0x5d921a['start']['nodeAfter'],_0x3b6321):_0x5d921a;}function zt(_0x590d0e,_0x469f48){const _0x357d95=_0x469f48['schema']['isObject'](_0x590d0e)||_0x469f48['schema']['isSelectable'](_0x590d0e);return _0x469f48['createRange'](_0x469f48['createPositionAt'](_0x590d0e,'before'),_0x357d95?_0x469f48['createPositionAfter'](_0x590d0e):_0x469f48['createPositionAt'](_0x590d0e,'end'));}function Wt(_0x1081f3,_0x3a094,_0x370f89,_0x574757){return!!Qt(_0x1081f3,_0x3a094)&&_0x370f89['end']['isEqual'](_0x574757['start']);}function Qt(_0x2deade,_0x545117){if(!_0x2deade['_isDataLoaded']||!_0x545117['_isDataLoaded'])return!0x1;const _0x3c7399=new Set(Object['keys'](_0x2deade['attributes'])),_0x298626=new Set(Object['keys'](_0x545117['attributes']));if(_0x3c7399['delete']('groupId'),_0x298626['delete']('groupId'),0x0==_0x3c7399['size']&&0x0==_0x298626['size'])return!0x0;if(_0x3c7399['size']!=_0x298626['size'])return!0x1;const _0x46ad05={..._0x2deade['attributes']},_0x219619={..._0x545117['attributes']};return delete _0x46ad05['groupId'],delete _0x219619['groupId'],JSON['stringify'](_0x46ad05)==JSON['stringify'](_0x219619);}function Xt(_0x1b96bd,_0x721a4){const _0x116ccb=Yt(_0x1b96bd['attributes']),_0x1f0d65=Yt(_0x721a4);if(!_0x1b96bd['_isDataLoaded'])return!0x1;for(const _0x369290 of Object['keys'](_0x1f0d65))if(!_0x1314a1(_0x116ccb[_0x369290],_0x1f0d65[_0x369290]))return!0x1;return!0x0;}function Yt(_0x458808){const _0x40bece=Object['assign']({},_0x458808);return delete _0x40bece['skipNestingCheck'],delete _0x40bece['tablePasteChainId'],_0x40bece;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3c38f4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x334f6b,_0x79ca68,_0x5743ec,_0x314b16){super(),this['model']=_0x79ca68,this['view']=_0x5743ec,this['commentThreadController']=_0x314b16,this['_editor']=_0x334f6b,this['_acceptCommand']=_0x334f6b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x334f6b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2dd8aa,_0x26823e)=>_0x2dd8aa||_0x26823e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3e6b39=>_0x3e6b39&&this['_editor']['model']['canEditAt'](_0x79ca68['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x36c2d9=>_0x36c2d9&&this['_editor']['model']['canEditAt'](_0x79ca68['getRanges']())),this['_pendingAction']=null,_0x5743ec['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5743ec,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5743ec,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5743ec,'change:isDirty',()=>{_0x5743ec['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 _0x12a340=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x12a340);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x82070{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4df2a1,_0x135459,_0x584011,_0x10c425){super(_0x4df2a1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x33c388(_0x4df2a1,o(_0x4df2a1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x135459['authoredAt']),this['bind']('authoredAt')['to'](_0x135459),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x135459,'authoredAt',this,'descriptionParts',(_0x14a5e4,_0x2a54dd,_0x4e1f00)=>{const _0x395f7b=_0x4e1f00['map'](_0x117e5c=>ls(_0x117e5c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x14a5e4-0x1,_0x135459['author']['name'],_0x2a54dd?_0x10c425['formatDateTime'](_0x2a54dd):'',new DOMParser()['parseFromString'](_0x395f7b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3bbed4(),this['focusTracker']=new _0x420794(),this['keystrokes']=new _0x23ba89(),this['focusCycler']=new _0x49c277({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x64791e=>_0x64791e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x135459,this['_localUser']=_0x584011,this['_config']=_0x10c425,_0x10c425['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x19ab60(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2ef9ea}=this['_config'];this['commentsListView']=new _0x2ef9ea(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',_0x316da9=>_0x316da9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3161d4,_0x305821)=>_0x3161d4||!!_0x305821);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x20d8c2}=this['_config'],_0xe39269=new _0x20d8c2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2b4e9b=_0xe39269['commentInputView'];return _0xe39269['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2b4e9b,'value',(_0x5bc391,_0x176a7b,_0x7d939)=>!!_0x7d939||_0x5bc391&&!_0x176a7b),_0x2b4e9b['on']('submit',(_0x297997,_0x1513d4)=>{this['fire']('addComment',_0x1513d4),_0x2b4e9b['editor']['setData']('');}),_0x2b4e9b['on']('cancel',()=>this['focus']()),_0x2b4e9b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe39269;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x254d58,_0xd5b49c,_0x52ed0b,_0x4fec46){super(_0x254d58,_0xd5b49c,_0x52ed0b,_0x4fec46),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3333d4=>_0x3333d4&&_0x3333d4[0x0]?_0x3333d4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x143571,_0x21b2a3)=>{let _0x29b146='';for(const _0xc3a7d4 of _0x143571)_0x29b146+='<p>'+ls(_0xc3a7d4['content'],_0xc3a7d4['color'])+'</p>';return _0x21b2a3?_0x29b146:_0xcd9997(_0x29b146,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4fec46['SuggestionView'](_0x254d58,_0xd5b49c,{'formatDateTime':_0x4fec46['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x59230c=this['bindTemplate'],_0x2ba93a=[this['suggestionView']];return this['commentsListView']&&_0x2ba93a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2ba93a['push'](this['commentThreadInputView']),_0x2ba93a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x59230c['if']('isActive','ck-suggestion-wrapper--active'),_0x59230c['to']('type',_0x2fad50=>'ck-suggestion-'+_0x2fad50),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':0x0,'role':'listitem','aria-label':_0x59230c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2ba93a};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x82070{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4b5084,_0x1bbbb9,_0x26402a){super(_0x4b5084),this['_model']=_0x1bbbb9,this['_config']=_0x26402a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1bbbb9),this['acceptButton']=this['_createButton'](o(_0x4b5084,'Accept\x20suggestion'),_0x4a712b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4b5084,'Discard\x20suggestion'),_0x550f39,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5a8aec(_0x4b5084,_0x1bbbb9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3bbed4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x420794(),this['keystrokes']=new _0x23ba89(),this['focusCycler']=new _0x49c277({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x46d761=>_0x46d761['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x184c00=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x184c00['innerHTML']=this['description'],this['on']('change:description',(_0x55edf8,_0x235595,_0x49f7df)=>{_0x184c00['innerHTML']=_0x49f7df;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x185d77=this['bindTemplate'],_0x962b06=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x185d77['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x185d77['to']('authoredAt',_0x6f5c81=>this['_config']['formatDateTime'](_0x6f5c81))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x962b06['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x962b06}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xc663bf,_0x450966,_0x34f200,_0x17994f,_0x1e75d0){const _0x30af09=new _0x2caa7c(this['locale']);return _0x30af09['set']({'label':_0xc663bf,'icon':_0x450966,'tooltip':!0x0,'tooltipPosition':_0x1e75d0}),_0x30af09['extendTemplate']({'attributes':{'class':_0x34f200}}),_0x30af09['on']('execute',()=>{this['fire'](_0x17994f,this['_model']['id']);}),_0x30af09;}['_setupKeyboardNavigation'](){const _0x3390f5=this['element'];this['keystrokes']['listenTo'](_0x3390f5);for(const _0xc5ccd4 of this['focusables'])this['focusTracker']['add'](_0xc5ccd4['element']),this['keystrokes']['listenTo'](_0xc5ccd4['element']);this['keystrokes']['set']('enter',(_0x3b7b74,_0x2b8f8a)=>{_0x3390f5===_0x3b7b74['target']&&(this['focusCycler']['focusFirst'](),_0x2b8f8a());}),this['keystrokes']['set']('esc',(_0x9c9e99,_0xcd7053)=>{_0x3390f5!==_0x9c9e99['target']&&(this['focus'](),_0xcd7053());});}}class u extends _0x8725f3{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5c3456,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e9fd3){super(_0x1e9fd3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4660da=this['editor']['config'];_0x4660da['define']('trackChanges.SuggestionThreadView',fe),_0x4660da['define']('trackChanges.SuggestionView',we),_0x4660da['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4660da['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x426923,_0x326093){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x16a7f8,_0x384912]of this['_handleControllerBuffer']){const _0x311b26=this['_suggestionToController']['has'](_0x16a7f8);_0x311b26||_0x384912?_0x311b26&&_0x384912&&this['_destroyController'](_0x16a7f8):this['_initializeController'](_0x16a7f8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x426923,_0x326093);}['init'](){const _0xa3e37a=this['editor'],_0x50784d=_0xa3e37a['plugins']['get']('TrackChangesEditing'),_0x445b57=_0xa3e37a['plugins']['get']('Annotations'),_0x301a4e=_0xa3e37a['plugins']['get']('EditorAnnotations'),_0x45a1cf=_0xa3e37a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x301a4e['addSourceCollector'](()=>{const _0x5ea766=[];for(const [_0x5bf8fe,_0x14973a]of Array['from'](this['_suggestionToController'])){const _0x782a80=_0x5bf8fe['getAllAdjacentSuggestions'](),_0x2c6b81=[];for(const _0x3707c0 of _0x782a80){if(!_0x3707c0['isInContent'])continue;if(_0x3707c0['isMultiRange']){_0x2c6b81['push'](..._0x3707c0['getRanges']());continue;}const _0xf244e0=_0x3707c0['getFirstRange']();if(_0x2c6b81['length']>0x0){const _0x1a9d45=_0x2c6b81[0x0]['getJoined'](_0xf244e0);if(_0x1a9d45){_0x2c6b81[0x0]=_0x1a9d45;continue;}}_0x2c6b81['push'](_0xf244e0);}_0x5ea766['push']([_0x14973a['view'],_0x2c6b81]);}return _0x5ea766;}),this['listenTo'](_0x50784d,'suggestionLoaded',(_0x511244,_0x34d6fb)=>{this['listenTo'](_0x34d6fb,'change:previous',(_0x2c603b,_0x2a464f,_0x444aba,_0x443d4c)=>{_0x34d6fb['isInContent']&&(null==_0x444aba?(this['_updateController'](_0x443d4c['head']),this['_handleSuggestionControllerDelayed'](_0x34d6fb,!0x1)):(this['_updateController'](_0x444aba['head']),null==_0x443d4c&&this['_handleSuggestionControllerDelayed'](_0x34d6fb,!0x0)));}),null!==_0x34d6fb['previous']?this['_updateController'](_0x34d6fb['head']):this['_handleSuggestionControllerDelayed'](_0x34d6fb,!0x1);}),this['listenTo'](_0x50784d,'suggestionUnloaded',(_0x29e322,_0x5563a5,_0x26e230)=>{this['stopListening'](_0x5563a5,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5563a5),this['_suggestionToController']['has'](_0x5563a5)&&this['_destroyController'](_0x5563a5),_0x26e230&&this['_updateController'](_0x26e230['head']);}),this['listenTo'](_0x50784d,'suggestionChanged',(_0x254a61,_0x1d555b)=>{this['_updateController'](_0x1d555b);}),this['listenTo'](_0x445b57,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x45a1cf,'addComment',(_0x5278a6,{threadId:_0x27a1c0,isFromAdapter:_0x279c11})=>{if(_0x279c11||!_0x50784d['hasSuggestion'](_0x27a1c0))return;const _0xff01d3=_0x50784d['getSuggestion'](_0x27a1c0);this['_suggestionToController']['get'](_0xff01d3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2751a0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f53c2;for(const _0x3f21b1 in _0x2751a0){const _0x305fd3=_0x3f21b1,_0x9243ef=_0x2751a0[_0x305fd3];if('trackChangesLicenseKeyValid'==_0x9243ef||'trackChangesLicenseKeyInvalid'==_0x9243ef||'trackChangesLicenseKeyExpired'==_0x9243ef||'trackChangesLicenseKeyDomainLimit'==_0x9243ef||'trackChangesLicenseKeyNotAllowed'==_0x9243ef||'trackChangesLicenseKeyEvaluationLimit'==_0x9243ef||'trackChangesLicenseKeyTrialLimit'==_0x9243ef||'trackChangesLicenseKeyUsageLimit'==_0x9243ef){delete _0x2751a0[_0x305fd3],_0x1f53c2=_0x9243ef,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1f53c2&&_0x2751a0['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1f53c2&&_0x2751a0['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1f53c2&&_0x2751a0['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1f53c2&&_0x2751a0['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1f53c2&&_0x2751a0['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1f53c2&&_0x2751a0['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1f53c2&&_0x2751a0['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x331f0a){const _0x25e579=this['_suggestionToController']['get'](_0x331f0a);if(!_0x25e579)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x25e579['view'])||null;}['getSuggestionForAnnotation'](_0x5027f3){const _0x2dd587=this['_viewToController']['get'](_0x5027f3['innerView']);return _0x2dd587?_0x2dd587['model']:null;}['_refreshActiveMarkers'](){const _0x1b2dc6=this['editor']['plugins']['get']('Annotations'),_0x5b6188=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e0148=Array['from'](_0x1b2dc6['activeAnnotations'],_0x42eac7=>_0x42eac7['innerView'])['filter'](_0x5d0bfd=>this['_viewToController']['has'](_0x5d0bfd)),_0x568f07=[];for(const _0x196a31 of _0x3e0148){const _0x1133ea=this['_viewToController']['get'](_0x196a31)['model']['getAllAdjacentSuggestions']();_0x568f07['push'](..._0x1133ea['reduce']((_0xd730db,_0x1d8705)=>[..._0xd730db,..._0x1d8705['getMarkerNames']()],[]));}_0x5b6188['activeMarkers']=_0x568f07;}['_addUIComponentsToFactory'](){const _0x560ea0=this['editor'],_0x36966d=_0x560ea0['locale'],_0x1b5b7e=o(_0x36966d,'Track\x20changes'),_0x3a5639=new _0x36cae3([{'type':'switchbutton','model':new _0x1cf42f({'withText':!0x0,'isToggleable':!0x0,'label':_0x1b5b7e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1cf42f({'withText':!0x0,'label':o(_0x36966d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1cf42f({'withText':!0x0,'label':o(_0x36966d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1cf42f({'withText':!0x0,'label':o(_0x36966d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1cf42f({'withText':!0x0,'label':o(_0x36966d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x560ea0['plugins']['has']('TrackChangesPreview')&&_0x3a5639['addMany']([{'type':'separator'},{'type':'button','model':new _0x1cf42f({'withText':!0x0,'label':o(_0x36966d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2f93c4 of _0x3a5639)if(ke(_0x2f93c4)){const _0x21cc44=_0x560ea0['commands']['get'](_0x2f93c4['model']['commandName']);_0x2f93c4['model']['bind']('isOn','isEnabled')['to'](_0x21cc44,'value','isEnabled');}_0x560ea0['ui']['componentFactory']['add']('trackChanges',_0x435ef0=>this['_createToolbarButton'](_0x435ef0,_0x3a5639,_0x1b5b7e)),_0x560ea0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4b472e=>this['_createMenuBarMenu'](_0x4b472e,_0x3a5639,_0x1b5b7e));}['_createToolbarButton'](_0x5c7bf3,_0x44c859,_0x3d4865){const _0x11ca8f=_0x92968c(_0x5c7bf3,_0x326f58),_0x570c17=this['editor']['commands']['get']('trackChanges');_0x11ca8f['buttonView']['set']({'tooltip':_0x3d4865,'label':_0x3d4865,'icon':_0x23ec22}),_0x11ca8f['buttonView']['bind']('isOn')['to'](_0x570c17,'value'),_0x11ca8f['buttonView']['on']('execute',()=>{_0x570c17['execute'](),this['editor']['editing']['view']['focus']();}),_0x305f68(_0x11ca8f,_0x44c859,{'role':'menu'});const _0x14049e=[];for(const _0x16f305 of _0x44c859)ke(_0x16f305)&&_0x14049e['push'](this['editor']['commands']['get'](_0x16f305['model']['commandName']));const _0x44e06b=_0x11ca8f['buttonView'];return _0x44e06b['actionView']['unbind']('isEnabled'),_0x44e06b['arrowView']['unbind']('isEnabled'),_0x44e06b['actionView']['bind']('isEnabled')['to'](_0x570c17,'isEnabled'),_0x44e06b['arrowView']['bind']('isEnabled')['toMany'](_0x14049e,'isEnabled',(..._0x53575e)=>_0x53575e['some'](_0x42b636=>_0x42b636)),_0x11ca8f['on']('execute',_0x283309=>{this['editor']['execute'](_0x283309['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x11ca8f;}['_createMenuBarMenu'](_0x3d9df3,_0x12e32f,_0x44039c){const _0x5ae1db=new _0x106e9a(_0x3d9df3),_0x3d3707=this['editor']['commands']['get']('trackChanges');_0x5ae1db['buttonView']['set']({'label':_0x44039c,'icon':_0x23ec22});const _0x529651=new _0x117bf8(_0x3d9df3);for(const _0x300661 of _0x12e32f){if('separator'==_0x300661['type']){_0x529651['items']['add'](new _0x133aa6(_0x3d9df3));continue;}const _0x10d140=new _0x1e07cc(_0x3d9df3,_0x5ae1db),_0x1ceaea=new _0x360cd2(_0x3d9df3),_0x221a32=_0x300661['model'];_0x1ceaea['bind'](...Object['keys'](_0x221a32))['to'](_0x221a32),_0x1ceaea['delegate']('execute')['to'](_0x5ae1db),_0x1ceaea['on']('execute',()=>{this['editor']['execute'](_0x221a32['commandName']),this['editor']['editing']['view']['focus']();}),_0x10d140['children']['add'](_0x1ceaea),_0x529651['items']['add'](_0x10d140);}return _0x5ae1db['bind']('isEnabled')['to'](_0x3d3707,'isEnabled'),_0x5ae1db['panelView']['children']['add'](_0x529651),_0x5ae1db;}['_initializeController'](_0x31456c){const _0xf024ca=this['editor'],_0x4a334b=_0xf024ca['config'],_0x484bfb=_0xf024ca['plugins']['get']('Annotations'),_0x3503da=_0xf024ca['plugins']['get']('CommentsRepository'),_0x42d0fc=_0xf024ca['plugins']['get']('EditorAnnotations'),_0x28eff0=_0xf024ca['plugins']['get'](_0x5c3456)['me'],_0x2efeed=_0x4a334b['get']('trackChanges')['SuggestionThreadView'],_0x236acd=_0x4a334b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5e56ac,CommentThreadInputView:_0x29908e}=_0xf024ca['plugins']['get']('CommentsUI');let _0x275ac3,_0x577ff5,_0x564fc8;this['_annotationViews']['has'](_0x31456c['id'])?(_0x577ff5=this['_annotationViews']['get'](_0x31456c['id']),_0x275ac3=_0x577ff5['mainView']):(_0x275ac3=new _0x2efeed(_0xf024ca['locale'],_0x31456c,_0x28eff0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4a334b['get']('comments.editorConfig'),'licenseKey':_0x4a334b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4a334b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a334b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a334b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x54739e(_0x4a334b['get']('locale'),_0xf024ca['locale']),'CommentView':_0x4a334b['get']('comments')['CommentView'],'CommentsListView':_0x5e56ac,'CommentThreadInputView':_0x29908e,'SuggestionView':_0x236acd}),_0x275ac3['suggestionView']['acceptButton']['on']('execute',()=>{_0xf024ca['editing']['view']['focus']();}),_0x275ac3['suggestionView']['discardButton']['on']('execute',()=>{_0xf024ca['editing']['view']['focus']();}),_0x577ff5=_0x484bfb['createAnnotationView'](this['editor']['locale'],_0x275ac3),_0x577ff5['bind']('isDirty')['to'](_0x275ac3,'isDirty'),_0x577ff5['bind']('length')['to'](_0x275ac3),_0x577ff5['bind']('type')['to'](_0x275ac3,'type',_0x459fbd=>'suggestion-'+_0x459fbd),_0x275ac3['on']('escape',()=>{_0x564fc8['fire']('escape');}),this['_annotationViews']['set'](_0x31456c['id'],_0x577ff5));const _0x2bebca=_0x3503da['createCommentThreadController'](_0x31456c['commentThread'],_0x275ac3),_0x1c1bea=new pe(_0xf024ca,_0x31456c,_0x275ac3,_0x2bebca),_0x5ab487=_0x31456c['getAllAdjacentSuggestions']()['filter'](_0x5c2f70=>_0x5c2f70['isInContent']);_0x275ac3['descriptionParts']=_0xf024ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5ab487),this['_suggestionToController']['set'](_0x31456c,_0x1c1bea),this['_viewToController']['set'](_0x275ac3,_0x1c1bea);const _0x47f498=()=>{const _0x4b74f7=[],_0x391dc7=_0x31456c['getAllAdjacentSuggestions']()['filter'](_0x2ee46a=>_0x2ee46a['isInContent']);for(const _0x2b5d5f of _0x391dc7)_0x4b74f7['push'](..._0x2b5d5f['getMarkers']());return _0x198ca2(_0xf024ca['editing'],_0x4b74f7);};_0x564fc8=_0x484bfb['createAnnotation']({'view':_0x577ff5,'target':_0x47f498,'type':()=>'suggestion-'+_0x1c1bea['view']['type'],'isVisible':!!_0x47f498()}),_0x3503da['_bindAnnotationToEditors'](_0x275ac3,_0x564fc8),_0x484bfb['add'](_0x564fc8),_0x42d0fc['registerAnnotation'](_0x564fc8);}['_destroyController'](_0x1b2969){const _0x5e0f75=this['editor']['plugins']['get']('CommentsRepository'),_0x1fea1c=this['editor']['plugins']['get']('Annotations'),_0x340c9c=this['_suggestionToController']['get'](_0x1b2969),_0x5777c6=_0x340c9c['view'],_0x34402f=_0x1fea1c['getByInnerView'](_0x5777c6);_0x5e0f75['_unbindEditors'](_0x5777c6),_0x34402f&&_0x1fea1c['remove'](_0x34402f),this['_suggestionToController']['delete'](_0x1b2969),this['_viewToController']['delete'](_0x5777c6),_0x340c9c['destroy']();}['_updateController'](_0x26f8d6){if(!_0x26f8d6['isInContent']||!this['_suggestionToController']['has'](_0x26f8d6))return;const _0x108c36=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24d841=this['_suggestionToController']['get'](_0x26f8d6),_0x4ea275=_0x26f8d6['getAllAdjacentSuggestions']();_0x24d841['view']['descriptionParts']=_0x108c36['descriptionFactory']['getDescriptions'](_0x4ea275);}['destroy'](){for(const _0x576177 of this['_suggestionToController']['keys']())this['_destroyController'](_0x576177);for(const _0x287532 of this['_annotationViews']['values']())_0x287532['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x490229){return'model'in _0x490229;}class Fe extends _0x8725f3{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x152ecd){this['editor']['plugins']['get'](d)['adapter']=_0x152ecd;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x487ebf){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x487ebf);}['getSuggestions']({skipNotAttached:_0x295e83=!0x1,toJSON:_0x4dccce=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x295e83,'toJSON':_0x4dccce});}['getSuggestion'](_0x28d3cb){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x28d3cb);}}const p=['Pagination'];class re extends _0x8725f3{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x551a73=this['editor'];if(_0x551a73['config']['define']('trackChangesData.editorCreator',_0x291ff6=>{const _0x4635d7=_0x551a73['model']['document']['getRootNames']()['reduce']((_0x55949b,_0x129cbc)=>(_0x55949b[_0x129cbc]='',_0x55949b),{});return _0x551a73['constructor']['create'](_0x4635d7,_0x291ff6);}),'function'!=typeof _0x551a73['config']['get']('trackChangesData')['editorCreator'])throw new _0x4fc565('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5a03f8){return P(this['editor'],!0x0,_0x5a03f8);}['getDataWithDiscardedSuggestions'](_0x10311b){return P(this['editor'],!0x1,_0x10311b);}}class Ge extends _0x8725f3{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34db0d){function _0x4572f4(_0x4b7476){return _0x4b7476['map'](_0x13d030=>String['fromCharCode'](_0x13d030))['join']('');}super(_0x34db0d),this['result']='end',_0x34db0d[_0x4572f4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4572f4([0x76,0x69,0x65,0x77])][_0x4572f4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4572f4([0x61,0x75,0x74,0x6f]),_0x34db0d[_0x4572f4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4572f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4572f4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4572f4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4572f4([0x6f,0x6b])});}['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 He(_0xe12496){return void 0x0!==_0xe12496['getRootsAttributes'];}async function P(_0x4598f4,_0x24f6d7,_0x490eab){const _0x34dc30=_0x13b2d3(_0x4598f4,p);_0x34dc30['plugins']['push'](d,Ge),_0x34dc30['rootsAttributes']=He(_0x4598f4)?_0x4598f4['getRootsAttributes']():void 0x0;const _0xf87aaa=document['createDocumentFragment'](),_0x3686d3=_0x4598f4['config']['get']('trackChangesData')['editorCreator'],_0x2599df=await _0x3686d3(_0x34dc30,()=>function(_0x33aa09){const _0x11c229=document['createElement']('div');return _0x33aa09['appendChild'](_0x11c229),_0x11c229;}(_0xf87aaa));!function(_0xd687c,_0x535c5b){const _0x2366ac=_0xd687c['model']['document']['getRootNames']()['reduce']((_0x836654,_0x339ace)=>(_0x836654[_0x339ace]=_0xd687c['data']['get']({'rootName':_0x339ace}),_0x836654),{}),_0x1baba4=_0xd687c['plugins']['get']('Users')['users']['map'](_0x3ca9e6=>({'id':_0x3ca9e6['id'],'name':_0x3ca9e6['name']})),_0x452f7a=_0xd687c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1d6e81=_0xd687c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26420d=_0x535c5b['plugins']['get']('Users'),_0x1986c5=_0x535c5b['plugins']['get']('TrackChangesEditing'),_0x450423=_0x535c5b['plugins']['get']('CommentsRepository');for(const _0x439e32 of _0x450423['getCommentThreads']())_0x439e32['remove']();for(const _0x3faf54 of _0x1baba4)_0x26420d['getUser'](_0x3faf54['id'])||_0x26420d['addUser'](_0x3faf54);_0x26420d['me']||_0x26420d['useAnonymousUser']();for(const _0x3c6906 of _0x1d6e81)_0x450423['addCommentThread'](_0x3c6906);for(const _0x4ba065 of _0x452f7a)_0x1986c5['addSuggestionData'](_0x4ba065);_0x535c5b['data']['set'](_0x2366ac);}(_0x4598f4,_0x2599df),_0x2599df['execute'](_0x24f6d7?'acceptAllSuggestions':'discardAllSuggestions');const _0x48f180=He(_0x2599df)?_0x2599df['getFullData'](_0x490eab):_0x2599df['data']['get'](_0x490eab);return await _0x2599df['destroy'](),_0x48f180;}class Me extends _0x82070{['options'];constructor(_0x5d921c,_0x469e52){super(_0x5d921c),this['options']=_0x469e52,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x29f0d8,_0x2764d2){if(!this['element'])return;const _0x19ea7c=[];for(const [_0x1e5d61,_0x1662ab]of _0x29f0d8){const _0x1ce5d9=document['createElement']('div');_0x1ce5d9['setAttribute']('data-ck-root-name',_0x1e5d61),_0x1ce5d9['className']=_0x1662ab['classes']+'\x20ck-track-changes-preview__root-container',_0x1ce5d9['innerHTML']=_0x1662ab['content'],_0x19ea7c['push'](_0x1ce5d9);}_0x2764d2(this['element'],_0x19ea7c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5be447{constructor(_0x50fcc4){super(_0x50fcc4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4094c7=this['editor'],_0x52e557=_0x4094c7['locale'],_0x25055f=_0x4094c7['plugins']['get']('Dialog');let _0x2c722b;const _0x4a3624=function(_0x53fe77){const _0x1f4d7c={};if('editables'in _0x53fe77['ui']['view']){for(const [_0x124b79,_0x2acf40]of Object['entries'](_0x53fe77['ui']['view']['editables']))_0x1f4d7c[_0x124b79]=_0x2acf40['element'];}else _0x1f4d7c[_0x53fe77['model']['document']['getRootNames']()[0x0]]=_0x53fe77['ui']['view']['editable']['element'];return _0x1f4d7c;}(_0x4094c7),_0x5f4ce5=function(_0x335b6b){let _0x42deaf=0x0;for(const _0x775b58 of Object['values'](_0x335b6b))_0x42deaf=Math['max'](_0x42deaf,_0x775b58['getBoundingClientRect']()['width']);let _0x4e99cc=0x0;for(const _0x23d039 of Object['values'](_0x335b6b))_0x4e99cc+=_0x23d039['getBoundingClientRect']()['height'];const _0xf86dc=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5607d5=Math['min'](_0x4e99cc,_0xf86dc);return{'width':_0x42deaf,'height':_0x5607d5};}(_0x4a3624);_0x25055f['show']({'id':'finalContentPreview','title':o(_0x52e557,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x52e557,{'dialogRects':_0x5f4ce5}),'onHide':()=>{_0x2c722b['detachFromDom']();},'onShow':()=>{_0x4094c7['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x181d49=>{const _0x574a52=this['_standarizeRootsData'](_0x181d49,_0x4094c7,_0x4a3624);_0x25055f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x574a52,_0x4094c7['config']['get']('trackChanges.preview.renderFunction'));}),_0x2c722b=new _0x21b6d8(_0x52e557,[_0x25055f['view']]),_0x2c722b['attachToDom'](),_0x2c722b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4094c7['once']('destroy',()=>{_0x2c722b['detachFromDom']();});const _0x1b551b=_0x25055f['view']['headerView']['class'];_0x25055f['view']['headerView']['class']=_0x1b551b?_0x1b551b+'\x20ck-reset_all':'ck-reset_all',_0x25055f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x25055f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x513d32=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xfd27c=_0x513d32['previewMode'],_0x4aafb8={};if('$labels'===_0xfd27c){for(const _0x246fe8 of _0x513d32['getMergeFieldsIds']())_0x4aafb8[_0x246fe8]=_0x513d32['getLabel'](_0x246fe8)||_0x246fe8;}else{const _0x50ded9='$defaultValues'===_0xfd27c?_0x513d32['getDefaultValues']():_0x513d32['getDataSetValues'](_0xfd27c,!0x0);for(const _0x550b61 of Object['entries'](_0x50ded9)){const [_0x32c496,_0x4b9685]=_0x550b61;_0x4aafb8[_0x32c496]=null!==_0x4b9685?_0x4b9685:_0x513d32['getLabel'](_0x32c496)||_0x32c496;}}return{'mergeFieldsData':_0x4aafb8};}['_standarizeRootsData'](_0x14ca58,_0x31851f,_0x2bcd20){let _0x3a99ab;if('string'==typeof _0x14ca58){const _0x57a74e=_0x31851f['model']['document']['getRootNames']()[0x0];_0x3a99ab={[_0x57a74e]:_0x14ca58};}else _0x3a99ab=_0x14ca58;const _0x291675=this['_fixMediaEmbeds'](_0x3a99ab,_0x31851f),_0x115bb8=function(_0x12657f,_0x597c10){for(const [_0x5228eb,_0x541a15]of _0x12657f)_0x541a15['classes']=_0x597c10[_0x5228eb]['classList']['value']['replace']('ck-focused','');return _0x12657f;}(this['_sortRoots'](_0x31851f)['reduce']((_0x1241ac,_0x10ffcd)=>(_0x1241ac['push']([_0x10ffcd,{'content':_0x291675[_0x10ffcd],'classes':''}]),_0x1241ac),[]),_0x2bcd20);return _0x115bb8;}['_fixMediaEmbeds'](_0x4c5c05,_0x3ce289){if(!_0x3ce289['plugins']['has']('MediaEmbedEditing'))return _0x4c5c05;const _0x63cce4=_0x3ce289['plugins']['get']('MediaEmbedEditing');for(const [_0x151b33,_0x2c4aed]of Object['entries'](_0x4c5c05)){const _0x8329d2=document['createElement']('div');_0x8329d2['innerHTML']=_0x2c4aed,(_0x8329d2['querySelectorAll']('figure.media')['forEach'](_0x3997c5=>{const _0x48dbba=_0x3997c5['querySelector']('oembed');if(_0x48dbba){const _0x2a13b5=_0x48dbba['getAttribute']('url');if(_0x2a13b5){const _0x61ed6=_0x63cce4['registry']['getMediaViewElement'](new _0xe495ac(_0x3ce289['editing']['view']['document']),_0x2a13b5,{'elementName':'','renderForEditingView':!0x0}),_0x1e2808=document['createElement']('div');_0x1e2808['classList']['add']('ck-media__wrapper'),_0x61ed6['render'](_0x1e2808,_0x3ce289['editing']['view']['domConverter']),_0x48dbba['replaceWith'](_0x1e2808);}}}),_0x4c5c05[_0x151b33]=_0x8329d2['innerHTML']);}return _0x4c5c05;}['_sortRoots'](_0x54457c){if(!function(_0x3692fd){return void 0x0!==_0x3692fd['getRootsAttributes'];}(_0x54457c))return _0x54457c['model']['document']['getRootNames']();const _0x1afdb6=[],_0x310ff=new Map();for(const _0x29544a of _0x54457c['model']['document']['getRootNames']()){const _0x181176=_0x54457c['editing']['view']['getDomRoot'](_0x29544a)['getClientRects']()['item'](0x0);_0x1afdb6['push'](_0x29544a),_0x310ff['set'](_0x29544a,_0x181176);}return _0x1afdb6['sort']((_0x2e75ed,_0x3e11fe)=>{const _0x1c8b7b=_0x310ff['get'](_0x2e75ed),_0x584709=_0x310ff['get'](_0x3e11fe);return _0x1c8b7b['y']-_0x584709['y']||_0x1c8b7b['x']-_0x584709['x'];}),_0x1afdb6;}}class $e extends _0x8725f3{static get['requires'](){return[re,_0x35058c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x103110){super(_0x103110),_0x103110['commands']['add']('previewFinalContent',new te(this['editor'])),_0x103110['config']['define']('trackChanges.preview.renderFunction',(_0x1eccf7,_0x3bc701)=>{for(const _0x3d7142 of _0x3bc701)_0x1eccf7['appendChild'](_0x3d7142);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|