@ckeditor/ckeditor5-track-changes 45.0.0-alpha.5 → 45.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- 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/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/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 +1 -1
- 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,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x1a411a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x263a96,_0x4bd4b9){super(),this['id']=_0x4bd4b9['id'],this['type']=_0x4bd4b9['type'],this['subType']=_0x4bd4b9['subType']||null,this['author']=_0x4bd4b9['author'],this['creator']=_0x4bd4b9['creator']||_0x4bd4b9['author'],this['isExternal']=Boolean(_0x4bd4b9['attributes']&&_0x4bd4b9['attributes']['@external']),this['data']=null,this['_model']=_0x263a96,this['_onAccept']=_0x4bd4b9['onAccept'],this['_onDiscard']=_0x4bd4b9['onDiscard'],this['_onAttributesChange']=_0x4bd4b9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4bd4b9['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 _0x22f793=this;for(;_0x22f793['previous'];)_0x22f793=_0x22f793['previous'];return _0x22f793;}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'](_0x4f3392){this['_markerNames']['add'](_0x4f3392);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x306dc3=>this['_model']['markers']['get'](_0x306dc3))['filter'](_0x554915=>_0x554915);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x154847=>{for(const _0x40ec2b of this['getMarkers']())_0x154847['removeMarker'](_0x40ec2b);}),this['_markerNames']['clear']();}['removeMarker'](_0x28a6df){this['_model']['change'](_0x2ab145=>{_0x2ab145['removeMarker'](_0x28a6df);}),this['_markerNames']['delete'](_0x28a6df);}['addRange'](_0x5a3b77){const _0x117810='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x117810),this['_model']['change'](_0x329e9e=>{_0x329e9e['addMarker'](_0x117810,{'range':_0x5a3b77,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5053e4){for(const _0x1f0b3c of this['getRanges']())if(_0x1f0b3c['isIntersecting'](_0x5053e4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2d8248=>_0x2d8248['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3ac1f0,_0x407a5a)=>[..._0x3ac1f0,..._0x407a5a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1770fa=this['getRanges']();if(0x1!=_0x1770fa['length'])return null;const _0x57b8a3=_0x1770fa[0x0],_0x1b74b5=_0x57b8a3['start']['nodeAfter'],_0x20b5d7=_0x57b8a3['end']['nodeBefore'];return _0x1b74b5 instanceof _0x768cf6?_0x1b74b5!=_0x20b5d7?null:_0x1b74b5: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 _0x4b3a95=[];let _0x12a38f=this['head'];for(;_0x12a38f;)_0x4b3a95['push'](_0x12a38f),_0x12a38f=_0x12a38f['next'];return _0x4b3a95;}['setAttribute'](_0xb147ef,_0x5f3694){const _0x248487=_0x559c1b(this['attributes']);_0x1887e2(_0x248487,_0xb147ef,_0x5f3694),_0xf2f0b6(_0x248487,this['attributes'])||(this['attributes']=_0x248487,this['_onAttributesChange'](_0x248487));}['removeAttribute'](_0x51d365){const _0x283f10=_0x559c1b(this['attributes']);_0x251b70(_0x283f10,_0x51d365),_0xf2f0b6(_0x283f10,this['attributes'])||(this['attributes']=_0x283f10,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 _0x29542d()['substr'](0x1,0x5);}}function c(_0x587586,_0xf6f325,_0x36ae5a){const _0x2b2872=_0x587586['t'],t=_0x587586['t'];switch(_0xf6f325){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',_0x36ae5a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x36ae5a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x36ae5a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x36ae5a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x36ae5a);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',_0x36ae5a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x36ae5a);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',_0x36ae5a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x36ae5a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x36ae5a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x36ae5a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x36ae5a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x36ae5a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x36ae5a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x36ae5a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x36ae5a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x36ae5a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x36ae5a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x36ae5a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x36ae5a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x36ae5a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x36ae5a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x36ae5a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x36ae5a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x36ae5a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x36ae5a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x36ae5a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x36ae5a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x36ae5a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x36ae5a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x36ae5a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x36ae5a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x36ae5a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x36ae5a);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'},_0x36ae5a);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x36ae5a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x36ae5a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x36ae5a);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 _0x2b2872({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x36ae5a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2b2872({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x36ae5a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x36ae5a);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'},_0x36ae5a);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'},_0x36ae5a);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'},_0x36ae5a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xf6f325;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1d2f43,_0x432698){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1d2f43,this['_locale']=_0x432698;}['getDescriptions'](_0x26eb75){const _0x1bba64=[],_0x2769b2=new Set(),_0x358a1d=new Set();for(let _0x4273d2=0x0;_0x4273d2<_0x26eb75['length'];_0x4273d2++){const _0x7e91e=_0x26eb75[_0x4273d2];if(!_0x7e91e['isInContent'])continue;const _0x4961a5=this['_handleCustomCallbackDescription'](_0x7e91e);if(_0x4961a5){if(null!=_0x7e91e['subType']){if(_0x2769b2['has'](_0x7e91e['subType']))continue;_0x2769b2['add'](_0x7e91e['subType']);}_0x1bba64['push'](_0x4961a5);}else{if('attribute'!=_0x7e91e['type'])'insertion'!=_0x7e91e['type']&&'deletion'!=_0x7e91e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1bba64,_0x7e91e,_0x26eb75[_0x4273d2+0x1]);else{const _0x2eb3dd=_0x7e91e['data']['key'];if(_0x358a1d['has'](_0x2eb3dd))continue;_0x358a1d['add'](_0x7e91e['data']['key']),_0x2eb3dd==u?this['_handleRenameSuggestionDescription'](_0x1bba64,_0x7e91e):this['_handleAttributeSuggestionDescription'](_0x1bba64,_0x7e91e);}}}return this['_resolveDescriptionItems'](_0x1bba64);}['registerDescriptionCallback'](_0x5165e5){this['_customCallbacks']['push'](_0x5165e5);}['registerElementLabel'](_0x4862e5,_0x4c3ef1,_0x534706=_0x37adb5['normal']){'function'==typeof _0x4862e5?_0x474092(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4862e5,'label':_0x4c3ef1,'priority':_0x534706}):this['_itemLabels']['set'](_0x4862e5,_0x4c3ef1);}['registerAttributeLabel'](_0x25f7fe,_0xbac1d3){this['_attributeLabels']['set'](_0x25f7fe,_0xbac1d3);}['getItemLabel'](_0x4e84dc,_0x4d1cbb=0x1){let _0x14fa04;for(const _0x44c81c of this['_itemLabelsCallbacks'])if(_0x44c81c['matchingCallback'](_0x4e84dc)){_0x14fa04=_0x44c81c['label'];break;}return _0x14fa04||(_0x14fa04=this['_itemLabels']['get'](_0x4e84dc['name'])),_0x14fa04?_0x14fa04(_0x4d1cbb):0x1!==_0x4d1cbb?_0x4d1cbb+'\x20'+_0x4e84dc['name']+'s':''+_0x4e84dc['name'];}['_addDescriptionItems'](_0x229593,_0x47e306){const _0x2eb6e1=_0x47e306['getFirstRange']()['getWalker'](),_0x30455d='insertion'==_0x47e306['type']?'add':'remove';for(const _0x1b5037 of _0x2eb6e1){const _0x504d1b=_0x1b5037['item'],_0xa43834=_0x229593[_0x229593['length']-0x1];if(_0x504d1b['is']('$textProxy'))_0xa43834&&_0xa43834['type']['indexOf']('Container')>-0x1&&_0x229593['pop'](),_0xa43834&&'text'==_0xa43834['type']?_0xa43834[_0x30455d]+=_0x504d1b['data']:_0x229593['push']({'type':'text','add':'add'==_0x30455d?_0x504d1b['data']:'','remove':'remove'==_0x30455d?_0x504d1b['data']:''});else{if(this['_schema']['isObject'](_0x504d1b)){const _0x5f63ba=_0x504d1b;if(_0xa43834&&_0xa43834['type']['indexOf']('Container')>-0x1&&_0x229593['pop'](),'elementEnd'==_0x1b5037['type'])continue;_0xa43834&&_0xa43834['type']==_0x30455d+'Object'&&_0xa43834['element']['name']==_0x5f63ba['name']?_0xa43834['quantity']++:_0x229593['push']({'type':_0x30455d+'Object','element':_0x5f63ba,'quantity':0x1}),_0x2eb6e1['skip'](_0x301e75=>!('elementEnd'==_0x301e75['type']&&_0x301e75['item']==_0x504d1b));}else{if(this['_schema']['checkChild'](_0x504d1b,'$text')||_0x504d1b['is']('element','softBreak')){const _0x232029=_0x504d1b;if('add'==_0x30455d&&'elementStart'==_0x1b5037['type']||'remove'==_0x30455d&&'elementEnd'==_0x1b5037['type'])continue;if(_0xa43834&&-0x1==_0xa43834['type']['indexOf']('Container')){'text'==_0xa43834['type']&&(_0xa43834[_0x30455d]+='\x0a');continue;}let _0x49e3c0;if(_0x49e3c0='add'==_0x30455d?_0x232029['nextSibling']&&!this['_schema']['isObject'](_0x232029['nextSibling'])?_0x232029['nextSibling']:null:_0x232029['previousSibling']&&!this['_schema']['isObject'](_0x232029['previousSibling'])?_0x232029['previousSibling']:null,_0x232029['isEmpty']||_0x49e3c0&&_0x49e3c0['isEmpty']){const _0x10bf8d=_0x49e3c0&&_0x49e3c0['isEmpty']?_0x49e3c0:_0x232029;_0xa43834&&_0xa43834['type']==_0x30455d+'EmptyContainer'&&_0xa43834['element']['name']==_0x10bf8d['name']?_0xa43834['quantity']++:_0x229593['push']({'type':_0x30455d+'EmptyContainer','element':_0x10bf8d,'quantity':0x1});}else _0x229593['push']({'type':_0x30455d+'Container','element':_0x232029});}}}}}['_resolveDescriptionItems'](_0x15c2dc){const _0x356b91=this['_locale'],_0x236f84=[],_0x58e57f=[],_0x892ccd=[];for(const _0xdd4dbf of _0x15c2dc)switch(_0xdd4dbf['type']){case'text':if(_0xdd4dbf['add']=_0xdd4dbf['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xdd4dbf['remove']=_0xdd4dbf['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xdd4dbf['add']&&''!=_0xdd4dbf['remove']){_0x236f84['push']({'type':'replace','content':c(_0x356b91,'REPLACE_TEXT',['\x22'+_0xdd4dbf['remove']+'\x22','\x22'+_0xdd4dbf['add']+'\x22'])});continue;}if(null!=_0xdd4dbf['add']['match'](/^ +$/)){_0x236f84['push']({'type':'insertion','content':c(_0x356b91,'*Insert:*\x20%0',c(_0x356b91,'ELEMENT_SPACE',_0xdd4dbf['add']['length']))});continue;}if(null!=_0xdd4dbf['remove']['match'](/^ +$/)){_0x236f84['push']({'type':'deletion','content':c(_0x356b91,'*Remove:*\x20%0',c(_0x356b91,'ELEMENT_SPACE',_0xdd4dbf['remove']['length']))});continue;}if(''!=_0xdd4dbf['add']){_0x236f84['push']({'type':'insertion','content':c(_0x356b91,'*Insert:*\x20%0','\x22'+_0xdd4dbf['add']+'\x22')});continue;}_0x236f84['push']({'type':'deletion','content':c(_0x356b91,'*Remove:*\x20%0','\x22'+_0xdd4dbf['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x236f84['push']({'type':'insertion','content':c(_0x356b91,'*Insert:*\x20%0',this['getItemLabel'](_0xdd4dbf['element'],_0xdd4dbf['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x236f84['push']({'type':'deletion','content':c(_0x356b91,'*Remove:*\x20%0',this['getItemLabel'](_0xdd4dbf['element'],_0xdd4dbf['quantity']))});continue;case'addContainer':_0x236f84['push']({'type':'insertion','content':c(_0x356b91,'*Split:*\x20%0',this['getItemLabel'](_0xdd4dbf['element'],_0xdd4dbf['quantity']))});continue;case'removeContainer':_0x236f84['push']({'type':'deletion','content':c(_0x356b91,'*Merge:*\x20%0',this['getItemLabel'](_0xdd4dbf['element'],_0xdd4dbf['quantity']))});continue;case'addFormat':_0x58e57f['push'](_0xdd4dbf['key']);continue;case'removeFormat':_0x892ccd['push'](_0xdd4dbf['key']);continue;default:_0x236f84['push'](_0xdd4dbf);}if(_0x58e57f['length']){const _0x4a42f4=_0x58e57f['map'](_0x501bd6=>this['_attributeLabels']['has'](_0x501bd6)?this['_attributeLabels']['get'](_0x501bd6):_0x501bd6)['join'](',\x20');_0x236f84['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4a42f4)});}if(_0x892ccd['length']){const _0x274bfd=_0x892ccd['map'](_0x449e1c=>this['_attributeLabels']['has'](_0x449e1c)?this['_attributeLabels']['get'](_0x449e1c):_0x449e1c)['join'](',\x20');_0x236f84['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x274bfd)});}return _0x236f84;}['_handleCustomCallbackDescription'](_0x7e57fb){for(const _0x1f384d of this['_customCallbacks']){const _0x53d40f=_0x1f384d(_0x7e57fb);if(_0x53d40f&&'type'in _0x53d40f)return _0x53d40f;}}['_handleAttributeSuggestionDescription'](_0x7bcf5d,_0xa33694){const _0x35d379=_0xa33694['data'],_0x241ac5=void 0x0===_0x35d379['newValue']?'removeFormat':'addFormat';_0x7bcf5d['push']({'type':_0x241ac5,'key':_0x35d379['key']});}['_handleRenameSuggestionDescription'](_0x2a2ee3,_0x45bb27){_0x2a2ee3['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x45bb27['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3f852d,_0x492ee2,_0x554d82){if(this['_addDescriptionItems'](_0x3f852d,_0x492ee2),_0x554d82&&_0x554d82['getFirstRange']()&&!_0x492ee2['getFirstRange']()['end']['isEqual'](_0x554d82['getFirstRange']()['start'])){const _0xfecb3b=_0x3f852d[_0x3f852d['length']-0x1],_0xbcfb95='insertion'==_0x492ee2['type']?'add':'remove';_0xfecb3b&&'text'==_0xfecb3b['type']&&(_0xfecb3b[_0xbcfb95]+='\x0a');}}}class U extends _0x550ef0{['afterInit'](){const _0x1736b9=this['editor'],_0x473fa0=_0x1736b9['plugins']['get']('TrackChangesEditing');_0x1736b9['commands']['get']('showAIAssistant')&&_0x473fa0['enableCommand']('showAIAssistant');}}class V extends _0x550ef0{['afterInit'](){const _0x6e05c5=this['editor'],_0x4fbc5c=_0x6e05c5['locale'];if(!_0x6e05c5['plugins']['has']('AlignmentEditing'))return;const _0x15599e=_0x6e05c5['plugins']['get']('TrackChangesEditing');_0x15599e['enableDefaultAttributesIntegration']('alignment'),_0x15599e['registerBlockAttribute']('alignment'),_0x15599e['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4fbc5c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4937a2=this['editor'],_0x2c6607=_0x4937a2['locale'];_0x4937a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c6a53=>{if('formatBlock'!=_0x5c6a53['type'])return;const {data:_0x222647}=_0x5c6a53;if(_0x222647&&'alignment'==_0x222647['commandName']){const _0x5ad9e6=_0x222647['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2c6607,'*Format:*\x20%0',function(_0x290daa){switch(_0x290daa){case'left':return c(_0x2c6607,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2c6607,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2c6607,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2c6607,'FORMAT_JUSTIFY_TEXT');}}(_0x5ad9e6))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x550ef0{['afterInit'](){const _0x370d0e=this['editor'],_0x12b67f=_0x370d0e['plugins']['get']('TrackChangesEditing'),_0x3ecea1=_0x370d0e['locale'];for(const _0x58215c of Zt){if(!_0x370d0e['plugins']['has'](_0x58215c))continue;const _0x54dd28=_0x58215c['slice'](0x0,-0x7)['toLowerCase'](),_0x4ad8e8='FORMAT_'+_0x54dd28['toUpperCase']();_0x12b67f['enableDefaultAttributesIntegration'](_0x54dd28),_0x12b67f['registerInlineAttribute'](_0x54dd28),_0x12b67f['descriptionFactory']['registerAttributeLabel'](_0x54dd28,c(_0x3ecea1,_0x4ad8e8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17ea0d=this['editor'],_0x14acb9=_0x17ea0d['locale'],_0x543372=_0x17ea0d['plugins']['get']('TrackChangesEditing');function _0x5d4fbd(_0x13612e,_0xfe4288){_0x543372['descriptionFactory']['registerDescriptionCallback'](_0x2036f0=>{if('formatInline'!=_0x2036f0['type'])return;const {data:_0x163755}=_0x2036f0;return _0x163755&&_0x163755['commandName']===_0x13612e?_0x163755['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x14acb9,'*Format:*\x20%0',_0xfe4288)}:{'type':'format','content':c(_0x14acb9,'*Remove\x20format:*\x20%0',_0xfe4288)}:void 0x0;});}_0x5d4fbd('bold',c(_0x14acb9,'FORMAT_BOLD')),_0x5d4fbd('italic',c(_0x14acb9,'FORMAT_ITALIC')),_0x5d4fbd('underline',c(_0x14acb9,'FORMAT_UNDERLINE')),_0x5d4fbd('code',c(_0x14acb9,'FORMAT_CODE')),_0x5d4fbd('strikethrough',c(_0x14acb9,'FORMAT_STRIKETHROUGH')),_0x5d4fbd('subscript',c(_0x14acb9,'FORMAT_SUBSCRIPT')),_0x5d4fbd('superscript',c(_0x14acb9,'FORMAT_SUPERSCRIPT'));}}class G extends _0x550ef0{['afterInit'](){const _0x259ffa=this['editor'],_0x46b2ed=_0x259ffa['locale'];if(!_0x259ffa['plugins']['has']('BlockQuoteEditing'))return;const _0x1537f7=_0x259ffa['plugins']['get']('TrackChangesEditing'),_0x1a3f4a=this['editor']['commands']['get']('blockQuote');_0x1537f7['enableCommand']('blockQuote',(_0x5402f8,_0x2fbbb1={})=>{const _0x2d2249=this['editor']['model']['document']['selection'],_0x54047f=_0x2fbbb1&&void 0x0!==_0x2fbbb1['forceValue']?_0x2fbbb1['forceValue']:!_0x1a3f4a['value'];let _0x344c80=[];if(_0x54047f){const _0xd7e5a5=Array['from'](_0x2d2249['getSelectedBlocks']())['filter'](_0x133b25=>oo(_0x133b25)||function(_0x3e038e,_0x1c82fb){const _0x44847d=_0x1c82fb['checkChild'](_0x3e038e['parent'],'blockQuote'),_0x44a2cb=_0x1c82fb['checkChild'](['$root','blockQuote'],_0x3e038e);return _0x44847d&&_0x44a2cb;}(_0x133b25,this['editor']['model']['schema']));_0x344c80=to(_0xd7e5a5,_0x259ffa['model']);}else{const _0x30b4e6=Array['from'](_0x2d2249['getSelectedBlocks']())['filter'](_0x3eccfd=>oo(_0x3eccfd));_0x344c80=to(_0x30b4e6,_0x259ffa['model']);}_0x259ffa['model']['change'](()=>{for(const _0x4d97da of _0x344c80)_0x1537f7['markBlockFormat'](_0x4d97da,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x54047f}]});});}),_0x1537f7['descriptionFactory']['registerDescriptionCallback'](_0xea7402=>{const {data:_0x4cce97}=_0xea7402;if(_0x4cce97&&'blockQuote'==_0x4cce97['commandName']){const _0x1ef463=c(_0x46b2ed,'ELEMENT_BLOCK_QUOTE');return _0x4cce97['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x46b2ed,'*Set\x20format:*\x20%0',_0x1ef463)}:{'type':'format','content':c(_0x46b2ed,'*Remove\x20format:*\x20%0',_0x1ef463)};}});}}function oo(_0xaadbd7){return'blockQuote'==_0xaadbd7['parent']['name'];}class L extends _0x550ef0{['afterInit'](){const _0x5c7a1e=this['editor'],_0x31720e=_0x5c7a1e['locale'],_0x5384d1=_0x5c7a1e['plugins']['get']('TrackChangesEditing');_0x5c7a1e['plugins']['has']('BookmarkEditing')&&(_0x5384d1['enableCommand']('insertBookmark'),_0x5384d1['enableDefaultAttributesIntegration']('updateBookmark'),_0x5384d1['registerBlockAttribute']('bookmarkId'),_0x5384d1['descriptionFactory']['registerDescriptionCallback'](_0x25ba2d=>{if('insertion'!=_0x25ba2d['type']&&'deletion'!=_0x25ba2d['type']&&'attribute'!=_0x25ba2d['type'])return;const _0x91932f=_0x25ba2d['getContainedElement']();if(null==_0x91932f)return;if(!_0x91932f['is']('element','bookmark'))return;const _0x5670c9=_0x91932f['getAttribute']('bookmarkId');if('insertion'==_0x25ba2d['type'])return{'type':'insertion','content':c(_0x31720e,'*Insert:*\x20%0','\x22'+_0x5670c9+'\x22\x20'+c(_0x31720e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x25ba2d['type'])return{'type':'deletion','content':c(_0x31720e,'*Remove:*\x20%0','\x22'+_0x5670c9+'\x22\x20'+c(_0x31720e,'ELEMENT_BOOKMARK'))};const {data:_0x46e2c6}=_0x25ba2d;if(!_0x46e2c6||'bookmarkId'!=_0x46e2c6['key'])return;return{'type':'format','content':c(_0x31720e,'*Set\x20bookmark:*\x20%0','\x22'+_0x46e2c6['newValue']+'\x22')};}));}}class J extends _0x550ef0{['afterInit'](){const _0x2cf813=this['editor'];_0x2cf813['plugins']['has']('CaseChange')&&(_0x2cf813['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2cf813['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2cf813['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x550ef0{['afterInit'](){const _0x35c720=this['editor'];_0x35c720['commands']['get']('ckbox')&&_0x35c720['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x550ef0{['afterInit'](){const _0x5468b0=this['editor'];if(!_0x5468b0['plugins']['has']('CodeBlock'))return;const _0x35f7bf=_0x5468b0['plugins']['get']('TrackChangesEditing'),_0x1f3342=_0x5468b0['locale'],_0x54fb30=_0x5468b0['config']['get']('codeBlock')['languages'],_0x3441d6=_0x5468b0['commands']['get']('codeBlock');_0x35f7bf['enableCommand']('indentCodeBlock'),_0x35f7bf['enableCommand']('outdentCodeBlock'),_0x35f7bf['enableCommand']('codeBlock',(_0x43b6f5,_0xf57ce6={})=>{const _0x26de2b=_0x5468b0['model'],_0x1e3763=_0x5468b0['model']['document']['selection'],_0x449e9c=_0xf57ce6&&void 0x0!==_0xf57ce6['forceValue']?_0xf57ce6['forceValue']:!_0x3441d6['value'];let _0x39548c;_0xf57ce6['language']||(_0xf57ce6['language']=_0x54fb30[0x0]['language']),_0x39548c=_0x449e9c?Array['from'](_0x1e3763['getSelectedBlocks']())['filter'](_0x1178b5=>eo(_0x1178b5)||function(_0x54ae9a,_0x12c1b6){if(_0x54ae9a['is']('rootElement')||_0x12c1b6['isLimit'](_0x54ae9a))return!0x1;return _0x12c1b6['checkChild'](_0x54ae9a['parent'],'codeBlock');}(_0x1178b5,_0x26de2b['schema'])):Array['from'](_0x1e3763['getSelectedBlocks']())['filter'](_0x571dde=>eo(_0x571dde));const _0x35f143=to(_0x39548c,_0x26de2b);_0x26de2b['change'](()=>{for(const _0x396598 of _0x35f143)_0x35f7bf['markBlockFormat'](_0x396598,{'commandName':'codeBlock','commandParams':[{..._0xf57ce6,'forceValue':_0x449e9c}],'formatGroupId':'blockName'});});}),(_0x35f7bf['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d9c6d=>c(_0x1f3342,'ELEMENT_CODE_BLOCK',_0x3d9c6d)),_0x35f7bf['descriptionFactory']['registerDescriptionCallback'](_0x273798=>{if('formatBlock'!=_0x273798['type'])return;const _0xac9e9d=_0x1f3342['t'],{data:_0x1af91b}=_0x273798;if(!_0x1af91b||'codeBlock'!=_0x1af91b['commandName'])return;const _0x156a7a=_0x1af91b['commandParams'][0x0]['language'],_0x336306=_0xac9e9d(_0x54fb30['find'](_0x4c8c75=>_0x4c8c75['language']===_0x156a7a)['label'])['toLowerCase']();return _0x1af91b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1f3342,'*Set\x20format:*\x20%0',c(_0x1f3342,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x336306+')')}:{'type':'format','content':c(_0x1f3342,'*Remove\x20format:*\x20%0',c(_0x1f3342,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3d93b0){return'codeBlock'==_0x3d93b0['name'];}class q extends _0x550ef0{['afterInit'](){const _0x19e30e=this['editor'];if(!_0x19e30e['plugins']['has']('CommentsEditing'))return;_0x19e30e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x6bd755,_0x5a6a3b,_0x117892){const _0x257a1d=[];for(const _0x5d8c31 of _0x5a6a3b['getItems']())_0x5d8c31['hasAttribute'](_0x6bd755)&&_0x257a1d['push'](_0x117892['createRangeOn'](_0x5d8c31));return _0x257a1d;}function Fe(_0x484876,_0x327a66,{showActiveMarker:_0xe948e4=!0x0}={}){const _0x116764=_0x484876['plugins']['get']('TrackChangesEditing');return(_0x1566b2,_0x2eec5b,_0xf88847)=>{if(!_0xf88847['consumable']['test'](_0x2eec5b['markerRange'],_0x1566b2['name']))return;const _0x4f6c63=_0x2eec5b['markerRange']['getWalker'](),_0x1b8cad=_0x2eec5b['markerRange']['start'],_0xb7549e=_0x484876['model']['schema'];let _0x4f96e6=null,_0x1f0e4a=null,_0x47b185=!0x1,_0x5efa2f=!0x1;for(const _0x45ca3e of _0x4f6c63){const _0x53ef6c=_0x45ca3e['item'];_0x47b185=_0x47b185||_0xb7549e['isContent'](_0x53ef6c);const _0x2bb34e=_0xf88847['mapper']['toViewElement'](_0x53ef6c);if(_0x2bb34e&&_0x2bb34e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x45ca3e['type']&&(_0xb7549e['isBlock'](_0x53ef6c)&&!_0xb7549e['isLimit'](_0x53ef6c)&&(_0x53ef6c['nextSibling']||_0x1b8cad['isAtEnd']?_0x4f96e6&&_0x4f96e6['parent']==_0x53ef6c||(_0x4f96e6=_0x53ef6c,_0xae0754(_0x45ca3e['previousPosition']),_0x5efa2f=!0x0):_0x1f0e4a=_0x1f0e4a||_0x45ca3e['previousPosition']));}function _0xae0754(_0x4f323b){const {authorId:_0x28c3a8}=_0x116764['_splitMarkerName'](_0x2eec5b['markerName']),_0x23bec6=_0xf88847['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x327a66,'data-author-id':_0x28c3a8}),_0x47cdcc=_0xf88847['mapper']['toViewPosition'](_0x4f323b);_0xe948e4&&_0x116764['activeMarkers']['includes'](_0x2eec5b['markerName'])&&_0xf88847['writer']['addClass']('ck-suggestion-marker--active',_0x23bec6),_0xf88847['writer']['insert'](_0x47cdcc,_0x23bec6),_0xf88847['mapper']['bindElementToMarker'](_0x23bec6,_0x2eec5b['markerName']);}_0x47b185||_0x5efa2f||!_0x1f0e4a||_0xae0754(_0x1f0e4a);};}class z extends _0x550ef0{static get['requires'](){return[_0x40bd7c];}['init'](){const _0x1be4df=this['editor'],_0x3f7a50=_0x1be4df['plugins']['get']('TrackChangesEditing');_0x3f7a50['enableCommand']('delete');const _0x28cbc7=_0x1be4df['commands']['get']('deleteForward');_0x3f7a50['enableCommand']('deleteForward',(_0x44a135,_0x40df20={})=>{const _0x31877d=_0x1be4df['model']['createSelection'](_0x1be4df['model']['document']['selection']);_0x31877d['isCollapsed']&&_0x1be4df['model']['modifySelection'](_0x31877d,{'direction':'forward','unit':_0x40df20['unit']});const _0x5ecd9c=_0x31877d['getFirstRange'](),_0x16fb39=_0x14a494['fromRange'](_0x5ecd9c);let _0x4ac6b4;_0x44a135(_0x40df20),_0x4ac6b4='$graveyard'==_0x16fb39['root']['rootName']?_0x1be4df['model']['createRange'](_0x5ecd9c['start']):_0x1be4df['model']['createRange'](_0x16fb39['start'],_0x16fb39['end']),_0x16fb39['detach'](),_0x1be4df['model']['enqueueChange'](_0x28cbc7['buffer']['batch'],_0xbf250c=>{_0x28cbc7['buffer']['lock'](),_0xbf250c['setSelection'](_0xbf250c['createRange'](_0x4ac6b4['end'])),_0x28cbc7['buffer']['unlock']();});}),_0x1be4df['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x1be4df,'merge'),{'priority':'high'}),_0x1be4df['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4eab55,_0x77bf53,_0x33d42f)=>{_0x33d42f['options']['showSuggestionHighlights']&&Fe(_0x1be4df,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4eab55,_0x77bf53,_0x33d42f);},{'priority':'high'}),_0x1be4df['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x21257f,_0x3da15e,_0x54b57b)=>{const _0x2c9f5d=_0x54b57b['mapper']['markerNameToElements'](_0x3da15e['markerName']);if(_0x2c9f5d){for(const _0x54c29b of _0x2c9f5d)_0x54c29b['is']('uiElement')&&(_0x54b57b['mapper']['unbindElementFromMarkerName'](_0x54c29b,_0x3da15e['markerName']),_0x54b57b['writer']['remove'](_0x54c29b));}},{'priority':'high'});}}class W extends _0x550ef0{['afterInit'](){const _0x39cf8e=this['editor'];if(!_0x39cf8e['plugins']['has']('ListEditing'))return;const _0x505fa6=_0x39cf8e['locale'],_0x2061ee=_0x39cf8e['plugins']['get']('TrackChangesEditing'),_0x534d4e=_0x39cf8e['plugins']['has']('TodoListEditing'),_0x392eec=!!_0x39cf8e['config']['get']('list.multiBlock');function _0x24c6a0(_0x241b25){return{'type':'format','content':''+c(_0x505fa6,'*Set\x20format:*\x20%0',_0x241b25)};}function _0x2bd967(_0x1ef019){return{'type':'format','content':''+c(_0x505fa6,'*Remove\x20format:*\x20%0',_0x1ef019)};}_0x2061ee['enableDefaultAttributesIntegration']('numberedList'),_0x2061ee['enableDefaultAttributesIntegration']('bulletedList'),_0x2061ee['enableDefaultAttributesIntegration']('customNumberedList'),_0x2061ee['enableDefaultAttributesIntegration']('customBulletedList'),_0x2061ee['enableDefaultAttributesIntegration']('indentList'),_0x2061ee['enableDefaultAttributesIntegration']('outdentList'),_0x2061ee['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2061ee['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2061ee['registerBlockAttribute']('listItemId'),_0x2061ee['registerBlockAttribute']('listType'),_0x2061ee['registerBlockAttribute']('listIndent'),_0x392eec&&(_0x2061ee['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2061ee['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x534d4e&&(_0x2061ee['enableDefaultAttributesIntegration']('todoList'),_0x2061ee['enableDefaultAttributesIntegration']('checkTodoList'),_0x2061ee['registerBlockAttribute']('todoListChecked'),_0x2061ee['descriptionFactory']['registerDescriptionCallback'](_0x464b4c=>{const {data:_0x4af7a6}=_0x464b4c;if(_0x4af7a6&&'todoListChecked'==_0x4af7a6['key'])return{'type':'format','content':_0x4af7a6['newValue']?c(_0x505fa6,'*Check\x20item*'):c(_0x505fa6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4de1d0=>{if(_0x4de1d0['batch']['isUndo'])return!0x1;let _0x3bc3de=!0x1;const _0x4904b6=_0x2061ee['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x410199=>'todoListChecked'===_0x2061ee['_getAttributeKey'](_0x410199));for(const _0x5c9df3 of _0x4904b6){'todo'!=_0x5c9df3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2061ee['_findSuggestions'](_0x5c9df3['getFirstRange'](),'attribute')['find'](_0x4c2f6e=>'listType'===_0x2061ee['_getAttributeKey'](_0x4c2f6e['suggestion']))||(_0x4de1d0['removeMarker'](_0x5c9df3['getFirstMarker']()),_0x3bc3de=!0x0));}return _0x3bc3de;})),_0x2061ee['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x505fa6,'FORMAT_INDENT'));const _0x28499a={'type':'format','content':''};_0x2061ee['descriptionFactory']['registerDescriptionCallback'](_0x4c6a21=>{const {data:_0x484cd8}=_0x4c6a21;if(!_0x484cd8||'listType'!=_0x484cd8['key'])return;let _0x39b709=_0x4c6a21['head'];for(;_0x39b709;){if(_0x39b709['data']&&(('listStyle'==_0x39b709['data']['key']||'listMarkerStyle'==_0x39b709['data']['key'])&&(_0x39b709['data']['newValue']&&'default'!=_0x39b709['data']['newValue']||'default'!=_0x39b709['data']['oldValue']&&!_0x484cd8['newValue'])||!_0x392eec&&_0x39b709['data']['key']==u))return _0x28499a;_0x39b709=_0x39b709['next'];}if(null==_0x484cd8['newValue'])switch(_0x484cd8['oldValue']){case'bulleted':return _0x2bd967(c(_0x505fa6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2bd967(c(_0x505fa6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2bd967(c(_0x505fa6,'ELEMENT_TODO_LIST'));}switch(_0x484cd8['newValue']){case'bulleted':return _0x24c6a0(c(_0x505fa6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x24c6a0(c(_0x505fa6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x24c6a0(c(_0x505fa6,'ELEMENT_TODO_LIST'));}}),_0x2061ee['descriptionFactory']['registerDescriptionCallback'](_0x13b241=>{const {data:_0x13983e}=_0x13b241;if(_0x13983e&&'listIndent'==_0x13983e['key'])return null==_0x13983e['newValue']||null==_0x13983e['oldValue']&&0x0==_0x13983e['newValue']?_0x28499a:void 0x0;}),_0x2061ee['descriptionFactory']['registerDescriptionCallback'](_0x1c5a5e=>{if('attribute'!=_0x1c5a5e['type'])return;const {data:_0x3c9b7b}=_0x1c5a5e;if(!_0x3c9b7b||'listItemId'!=_0x3c9b7b['key'])return;const _0x34b55d=Te(_0x1c5a5e);return'newValue'==_0x34b55d?{'type':'format','content':c(_0x505fa6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x34b55d?{'type':'format','content':c(_0x505fa6,'*Split:*\x20list\x20item')}:_0x28499a;}),_0x39cf8e['model']['document']['registerPostFixer'](_0x1566d5=>this['listItemIdFixer'](_0x1566d5)),_0x39cf8e['model']['document']['registerPostFixer'](_0x13d43a=>this['noTrackChangesFixer'](_0x13d43a)),_0x39cf8e['model']['document']['on']('change:data',(_0x63dade,_0x2019fc)=>{if(_0x2019fc['isUndo']||!_0x2019fc['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x10e00b){if(_0x10e00b['batch']['isUndo']||!_0x10e00b['batch']['isLocal'])return!0x1;let _0x582e48=!0x1;const _0x453c29=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x345208=>_0x345208['data']&&'listItemId'==_0x345208['data']['key'])['filter'](_0x2b5a72=>_0x2b5a72['data']['newValue']&&_0x2b5a72['data']['oldValue']);for(const _0x31a3cd of _0x453c29)Te(_0x31a3cd)||(_0x10e00b['removeMarker'](_0x31a3cd['getFirstMarker']()),_0x582e48=!0x0);return _0x582e48;}['noTrackChangesFixer'](_0x27c547){if(_0x27c547['batch']['isUndo']||!_0x27c547['batch']['isLocal'])return!0x1;const _0x38a761=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x38a761['trackChangesCommand']['value'])return!0x1;let _0x2c40a3=!0x1;const _0x530c8a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1e2146=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x27ed57=>'attribute'==_0x27ed57['type'])['filter'](_0x4e08ea=>_0x530c8a['includes'](_0x4e08ea['attributeKey']));if(0x0==_0x1e2146['length'])return _0x2c40a3;for(const _0x4f52b9 of _0x1e2146){const _0x55f6c2=_0x38a761['_findSuggestions'](_0x4f52b9['range'],'attribute')['filter'](_0x10962a=>!_0x10962a['meta']['isNextTo'])['map'](_0x22c507=>_0x22c507['suggestion'])['filter'](_0x9379e3=>{const _0x462280=_0x38a761['_getAttributeKey'](_0x9379e3);return _0x530c8a['includes'](_0x462280);});if(_0x55f6c2['length']){for(const _0x3578ac of _0x55f6c2)_0x27c547['removeMarker'](_0x3578ac['getFirstMarker']());_0x2c40a3=!0x0;}}return _0x2c40a3;}['assureChains'](){const _0x413690=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46fd57=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x679f68;const _0x4f01a6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c3317=>{if(_0x1c3317['data']['oldRange']||!_0x1c3317['data']['newRange'])return null;if(!_0x1c3317['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x551869}=_0x413690['_splitMarkerName'](_0x1c3317['name']);if(!_0x413690['hasSuggestion'](_0x551869))return null;const _0x34408c=_0x413690['getSuggestion'](_0x551869);return _0x46fd57['includes'](_0x34408c['data']['key']);})['map'](_0xfaf5a1=>{const {id:_0x5484d1}=_0x413690['_splitMarkerName'](_0xfaf5a1['name']),_0x278872=_0x413690['getSuggestion'](_0x5484d1);return _0x679f68=_0x278872['attributes']['groupId'],_0x278872['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4f01a6['size'])return;const _0x39bc9b=_0x413690['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ee4cd=>'attribute'==_0x2ee4cd['type']&&_0x2ee4cd['data']&&_0x46fd57['includes'](_0x2ee4cd['data']['key'])&&_0x2ee4cd['attributes']['groupId']!=_0x679f68)['map'](_0x4f9f4e=>({'listItem':_0x4f9f4e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4f9f4e['attributes']['groupId']})),_0x4a9505=new Set();for(const {groupId:_0x19a2a9,listItem:_0x56ee19}of _0x39bc9b)_0x4f01a6['has'](_0x56ee19)&&_0x4a9505['add'](_0x19a2a9);for(const _0x375fab of _0x413690['getSuggestions']())_0x4a9505['has'](_0x375fab['attributes']['groupId'])&&_0x375fab['setAttribute']('groupId',_0x679f68);}['_supportLegacySuggestions'](){const _0x497432=this['editor'],_0x490e36=_0x497432['locale'],_0x1a61a6=_0x497432['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a61a6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1dd34c,_0x101569){const _0x545783=[];for(let _0x2a835d of _0x1dd34c)_0x2a835d['start']['nodeAfter']===_0x2a835d['end']['parent']&&(_0x2a835d=_0x497432['model']['createRange'](_0x497432['model']['createPositionAt'](_0x2a835d['start']['nodeAfter'],0x0))),_0x545783['push'](_0x2a835d);_0x497432['model']['change'](_0x4f29f2=>{const _0x20fae4=_0x497432['model']['document']['selection'],_0x4d6547=Array['from'](_0x20fae4['getRanges']())['map'](_0x5d2bf0=>_0x14a494['fromRange'](_0x5d2bf0));_0x4f29f2['setSelection'](_0x545783),_0x497432['commands']['get'](_0x101569['commandName'])['refresh'](),_0x101569['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x497432['execute'](_0x101569['commandName'],..._0x101569['commandParams']),_0x4f29f2['setSelection'](_0x4d6547);for(const _0x5d0e38 of _0x4d6547)_0x5d0e38['detach']();});}),_0x1a61a6['descriptionFactory']['registerElementLabel'](function(_0x243cc3){const _0x3804fd=!_0x497432['model']['schema']['isObject'](_0x243cc3),_0x2be5a3=_0x243cc3['previousSibling'],_0x55cdf5=_0x243cc3['nextSibling'],_0x1cbb67=_0x243cc3['getAttribute']('listItemId'),_0x505b0d=!_0x2be5a3||_0x2be5a3['getAttribute']('listItemId')!==_0x1cbb67,_0x36b109=!_0x55cdf5||_0x55cdf5['getAttribute']('listItemId')!==_0x1cbb67;return _0x3804fd&&Boolean(_0x1cbb67)&&_0x505b0d&&_0x36b109;},_0x3d03be=>c(_0x490e36,'ELEMENT_LIST_ITEM',_0x3d03be));}['_registerLegacyDescription'](){const _0x1362b3=this['editor'],_0x3067db=_0x1362b3['locale'];function _0x406be2(_0x568974){const _0x684de7=_0x1362b3['commands']['get']('bulletedList')['value'],_0x2cb072=_0x1362b3['commands']['get']('numberedList')['value'];return'numberedList'===_0x568974?_0x684de7:_0x2cb072;}_0x1362b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ca8e4){if('formatBlock'!=_0x1ca8e4['type'])return;const {data:_0x4567f1}=_0x1ca8e4;if(!_0x4567f1)return;let _0x482728,_0x5627e7,_0x2ad22a,_0x637419;switch(_0x4567f1['commandName']){case'bulletedList':_0x2ad22a=_0x4567f1['commandParams'][0x0]['forceValue'],_0x637419=_0x406be2(_0x4567f1['commandName']),_0x482728=_0x2ad22a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x637419&&_0x1362b3['config']['get']('list.multiBlock')||(_0x482728='*Change\x20to:*\x20%0'),_0x5627e7={'type':'format','content':c(_0x3067db,_0x482728,c(_0x3067db,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2ad22a=_0x4567f1['commandParams'][0x0]['forceValue'],_0x637419=_0x406be2(_0x4567f1['commandName']),_0x482728=_0x2ad22a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x637419&&_0x1362b3['config']['get']('list.multiBlock')||(_0x482728='*Change\x20to:*\x20%0'),_0x5627e7={'type':'format','content':c(_0x3067db,_0x482728,c(_0x3067db,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x482728='*Indent:*\x20%0',_0x5627e7={'type':'format','content':c(_0x3067db,_0x482728,c(_0x3067db,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x482728=function(_0x2159da){const _0xec4dcd=_0x2159da['getFirstRange']();let _0xbcad9a=_0xec4dcd['start']['nodeAfter'];for(;_0xbcad9a&&_0xec4dcd['containsItem'](_0xbcad9a);){if(_0xbcad9a['getAttribute']('listIndent')>0x0)return!0x1;_0xbcad9a=_0xbcad9a['nextSibling'];}return!0x0;}(_0x1ca8e4)?c(_0x3067db,'*Format:*\x20remove\x20from\x20%0',c(_0x3067db,function(_0xf313c4){return'ELEMENT_'+_0xf313c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ca8e4))):c(_0x3067db,'*Outdent:*\x20%0',c(_0x3067db,'ELEMENT_LIST_ITEM')),_0x5627e7={'type':'format','content':_0x482728};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4567f1['multipleBlocks']&&(_0x482728='*Merge:*\x20%0',_0x5627e7={'type':'deletion','content':c(_0x3067db,_0x482728,c(_0x3067db,'ELEMENT_LIST_ITEM'))});}return _0x5627e7;});}}function Te(_0x4c676f){let _0x30b0a5=_0x4c676f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x30b0a5;){const _0x26c888=_0x30b0a5['getAttribute']('listItemId');if(!_0x26c888)return!0x1;if(_0x26c888==_0x4c676f['data']['newValue'])return'newValue';if(_0x26c888==_0x4c676f['data']['oldValue'])return'oldValue';_0x30b0a5=_0x30b0a5['previousSibling'];}return!0x1;}class Se extends _0x550ef0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4166d1=this['editor']['config']['get']('list.properties'),_0x3a0edc=this['editor']['plugins']['get']('TrackChangesEditing');_0x4166d1['styles']&&(_0x3a0edc['enableDefaultAttributesIntegration']('listStyle'),_0x3a0edc['registerBlockAttribute']('listStyle')),_0x4166d1['reversed']&&(_0x3a0edc['enableDefaultAttributesIntegration']('listReversed'),_0x3a0edc['registerBlockAttribute']('listReversed')),_0x4166d1['startIndex']&&(_0x3a0edc['enableDefaultAttributesIntegration']('listStart'),_0x3a0edc['registerBlockAttribute']('listStart'));const _0x2543f7={'type':'format','content':''};_0x3a0edc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1775f6=this['editor']['locale'];_0x3a0edc['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x1775f6,'FORMAT_LIST_REVERSED')),_0x3a0edc['descriptionFactory']['registerDescriptionCallback'](_0x2cdbf6=>{const {data:_0x578ff3}=_0x2cdbf6;if(_0x578ff3&&'listReversed'==_0x578ff3['key'])return null==_0x578ff3['newValue']||0x0==_0x578ff3['newValue']&&null==_0x578ff3['oldValue']?_0x2543f7:void 0x0;}),_0x3a0edc['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x1775f6,'FORMAT_LIST_START')),_0x3a0edc['descriptionFactory']['registerDescriptionCallback'](_0x2186af=>{const {data:_0x44f980}=_0x2186af;if(_0x44f980&&'listStart'==_0x44f980['key'])return null==_0x44f980['newValue']||0x1==_0x44f980['newValue']&&null==_0x44f980['oldValue']?_0x2543f7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x404ce4=>{if(_0x404ce4['batch']['isUndo'])return!0x1;let _0x2af630=!0x1;const _0x2d7300=_0x3a0edc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2546a1=>{const _0x18d0fd=_0x3a0edc['_getAttributeKey'](_0x2546a1);return'listStart'==_0x18d0fd||'listReversed'==_0x18d0fd;});for(const _0x2a4acd of _0x2d7300){const _0x5e3219=_0x2a4acd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5e3219||'customNumbered'==_0x5e3219)continue;_0x3a0edc['_findSuggestions'](_0x2a4acd['getFirstRange'](),'attribute')['find'](_0xffd27e=>'listType'==_0x3a0edc['_getAttributeKey'](_0xffd27e['suggestion']))||(_0x404ce4['removeMarker'](_0x2a4acd['getFirstMarker']()),_0x2af630=!0x0);}return _0x2af630;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x213c17){const _0x169833=this['editor']['locale'],{data:_0x3ab4de}=_0x213c17,_0x374198={'type':'format','content':''};if(!_0x3ab4de||'listStyle'!=_0x3ab4de['key'])return;if(!_0x3ab4de['oldValue'])return'default'==_0x3ab4de['newValue']?_0x374198:{'type':'format','content':''+c(_0x169833,'*Set\x20format:*\x20%0',c(_0x169833,this['_getTranslationKeyForListStyle'](_0x3ab4de['newValue'])))};if(!_0x3ab4de['newValue']){if('default'==_0x3ab4de['oldValue'])return _0x374198;let _0x107dfa=_0x213c17['head'];for(;_0x107dfa;){if(_0x107dfa['data']&&'listType'==_0x107dfa['data']['key']&&_0x107dfa['data']['newValue'])return _0x374198;_0x107dfa=_0x107dfa['next'];}return{'type':'format','content':''+c(_0x169833,'*Remove\x20format:*\x20%0',c(_0x169833,this['_getTranslationKeyForListStyle'](_0x3ab4de['oldValue'])))};}if('default'!=_0x3ab4de['newValue'])return{'type':'format','content':''+c(_0x169833,'*Set\x20format:*\x20%0',c(_0x169833,this['_getTranslationKeyForListStyle'](_0x3ab4de['newValue'])))};let _0x217447=_0x213c17['head'];for(;_0x217447;){if(_0x217447['data']&&'listType'==_0x217447['data']['key']&&_0x217447['data']['newValue']&&_0x217447['data']['oldValue'])return _0x374198;_0x217447=_0x217447['next'];}return{'type':'format','content':c(_0x169833,'*Set\x20format:*\x20%0',c(_0x169833,'ELEMENT_'+_0x213c17['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x539456=this['editor'],_0x2f81a8=_0x539456['locale'];_0x539456['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x587ec6=>{if('formatBlock'!=_0x587ec6['type'])return;const {data:_0x52d2f7}=_0x587ec6;if(!_0x52d2f7)return;let _0x2ea642,_0x1851fa;switch(_0x52d2f7['commandName']){case'listStyle':_0x2ea642='*Change\x20to:*\x20%0',_0x1851fa={'type':'format','content':c(_0x2f81a8,_0x2ea642,c(_0x2f81a8,this['_getTranslationKeyForListStyle'](_0x52d2f7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2ea642=_0x52d2f7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1851fa={'type':'format','content':c(_0x2f81a8,_0x2ea642)};break;case'listStart':_0x2ea642='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1851fa={'type':'format','content':c(_0x2f81a8,_0x2ea642,_0x52d2f7['commandParams'][0x0]['startIndex'])};}return _0x1851fa;});}['_getTranslationKeyForListStyle'](_0x3d9c10){return'ELEMENT_'+function(_0xa529e8){if(_e['includes'](_0xa529e8))return'bulleted';if(Re['includes'](_0xa529e8))return'numbered';return null;}(_0x3d9c10)['toUpperCase']()+'_LIST_'+_0x3d9c10['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x550ef0{['afterInit'](){const _0x253e6a=this['editor'];_0x253e6a['commands']['get']('emoji')&&_0x253e6a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x550ef0{static get['requires'](){return[_0x567bd8];}['init'](){const _0x9005c6=this['editor'],_0x4b3f83=_0x9005c6['plugins']['get']('TrackChangesEditing'),_0x56370b=_0x9005c6['commands']['get']('enter');_0x4b3f83['enableCommand']('enter',()=>{_0x9005c6['model']['change'](_0x506a4d=>{const _0x45d6ab=_0x9005c6['model']['document']['selection'],_0x44883b=_0x45d6ab['getFirstPosition'](),_0x5c4659=_0x14a494['fromRange'](_0x45d6ab['getFirstRange']());if(_0x56370b['enterBlock'](_0x506a4d)){const _0x31563a=_0x9005c6['model']['createPositionAt'](_0x44883b['parent']['nextSibling'],0x0),_0x29d4b0=_0x506a4d['createRange'](_0x44883b,_0x31563a);_0x4b3f83['markInsertion'](_0x29d4b0);}else _0x506a4d['setSelection'](_0x506a4d['createRange'](_0x5c4659['end']));_0x5c4659['detach'](),_0x56370b['fire']('afterExecute',{'writer':_0x506a4d});});}),_0x9005c6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x9005c6,'split'),{'priority':'high'}),_0x9005c6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x364f0a,_0x1213f9,_0x4a79c9)=>{const _0x266332=_0x4a79c9['mapper']['markerNameToElements'](_0x1213f9['markerName']);if(_0x266332){for(const _0x3584d1 of _0x266332)_0x3584d1['hasClass']('ck-suggestion-marker-split')&&(_0x4a79c9['mapper']['unbindElementFromMarkerName'](_0x3584d1,_0x1213f9['markerName']),_0x4a79c9['writer']['remove'](_0x3584d1));}},{'priority':'high'}),_0x9005c6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x400c64,_0x5af0,_0x5838f4)=>{_0x5838f4['options']['showSuggestionHighlights']&&Fe(_0x9005c6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x400c64,_0x5af0,_0x5838f4);},{'priority':'high'});}}class Z extends _0x550ef0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5e6f6e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e6f6e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5e6f6e['enableCommand']('findNext'),_0x5e6f6e['enableCommand']('findPrevious'),_0x5e6f6e['enableCommand']('replace'),_0x5e6f6e['enableCommand']('replaceAll');}['handleFindCommand'](_0x17ca08,_0x31b7a1,_0x1120d7={}){const _0x386339=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x17ca08(_0x32edfc=>{let _0x5bbc0c=('string'==typeof _0x31b7a1?_0x386339['findByTextCallback'](_0x31b7a1,_0x1120d7):_0x31b7a1)(_0x32edfc);Array['isArray'](_0x5bbc0c)&&(_0x5bbc0c={'results':_0x5bbc0c,'searchText':'string'==typeof _0x31b7a1?_0x31b7a1:''});const _0x2ff7e9=_0x5bbc0c['results']['filter'](_0x2490be=>!0x1===this['_isInDeletionRange'](_0x2490be,_0x32edfc['item']));return{..._0x5bbc0c,'results':_0x2ff7e9};},_0x1120d7);}['_isInDeletionRange'](_0xf747d,_0x1838c0){const _0x32205b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1838c0,_0xf747d['start']),this['editor']['model']['createPositionAt'](_0x1838c0,_0xf747d['end']));for(const _0x1f83cc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x32205b['getIntersection'](_0x1f83cc['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x550ef0{['afterInit'](){const _0x40c7b7=this['editor']['locale'],_0x77ae26=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3c2cb6,commandName:_0x4265a0}of ro)this['editor']['plugins']['has'](_0x3c2cb6)&&(_0x77ae26['enableDefaultAttributesIntegration'](_0x4265a0),_0x77ae26['registerInlineAttribute'](_0x4265a0));_0x77ae26['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x40c7b7,'FORMAT_FONT_SIZE')),_0x77ae26['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x40c7b7,'FORMAT_FONT_FAMILY')),_0x77ae26['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x40c7b7,'FORMAT_FONT_COLOR')),_0x77ae26['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x40c7b7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39f4ef=this['editor'],_0x132791=_0x39f4ef['locale'];_0x39f4ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6bc974=>{const _0x497e6a=_0x132791['t'];if('formatInline'!=_0x6bc974['type'])return;const {data:_0xb2403a}=_0x6bc974;if(null!=_0xb2403a){if('fontSize'==_0xb2403a['commandName']){const _0x471a0e=_0xb2403a['commandParams'][0x0]['value'];if(_0x471a0e){const _0x4e82ab=_0x497e6a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x315b42=>_0x315b42['model']==_0x471a0e)['title'])['toLowerCase']();return{'type':'format','content':c(_0x132791,'*Set\x20font\x20size:*\x20%0',_0x4e82ab)};}return{'type':'format','content':c(_0x132791,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xb2403a['commandName']){const _0x72ff4=_0xb2403a['commandParams'][0x0]['value'];return _0x72ff4?{'type':'format','content':c(_0x132791,'*Set\x20font\x20family:*\x20%0',_0x72ff4)}:{'type':'format','content':c(_0x132791,'*Reset\x20font\x20family*')};}if('fontColor'==_0xb2403a['commandName']){const _0x3390da=_0xb2403a['commandParams'][0x0]['value'];if(_0x3390da){const _0x51e513=_0x16d0e5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x28a662=>_0x28a662['model']==_0x3390da);let _0x3bee1d=_0x3390da,_0x1a6c2a='';return _0x51e513&&(_0x3bee1d=_0x51e513['label'],_0x1a6c2a=_0x497e6a(_0x3bee1d)['toLowerCase']()),{'type':'format','content':c(_0x132791,'*Set\x20font\x20color:*\x20%0',_0x1a6c2a)['trim'](),'color':{'value':_0x3390da,'title':_0x1a6c2a||_0x3bee1d}};}return{'type':'format','content':c(_0x132791,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xb2403a['commandName']){const _0x460b01=_0xb2403a['commandParams'][0x0]['value'];if(_0x460b01){const _0x2b0147=_0x16d0e5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3bbaa3=>_0x3bbaa3['model']==_0x460b01);let _0x436537=_0x460b01,_0x58f1b0='';return _0x2b0147&&(_0x436537=_0x2b0147['label'],_0x58f1b0=_0x497e6a(_0x436537)['toLowerCase']()),{'type':'format','content':c(_0x132791,'*Set\x20font\x20background\x20color:*\x20%0',_0x58f1b0)['trim'](),'color':{'value':_0x460b01,'title':_0x58f1b0||_0x436537}};}return{'type':'format','content':c(_0x132791,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x550ef0{['afterInit'](){const _0x44a6ec=this['editor'],_0x33d398=_0x44a6ec['plugins']['get']('TrackChangesEditing'),_0x50358d=_0x44a6ec['commands']['get']('copyFormat'),_0x15cee0=_0x44a6ec['commands']['get']('pasteFormat');_0x50358d&&_0x15cee0&&(_0x33d398['enableDefaultAttributesIntegration']('pasteFormat'),_0x33d398['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x23f481=this['editor'],_0x48abf8=_0x23f481['locale'];_0x23f481['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d2829=>{if('formatBlock'!=_0x5d2829['type']&&'formatInline'!=_0x5d2829['type'])return;const {data:_0x4738f9}=_0x5d2829;if(_0x4738f9&&'pasteFormat'===_0x4738f9['commandName']){const _0x439242=[],_0x253d8b=_0x4738f9['commandParams'][0x0];for(const [_0x215110,_0x539cae]of Object['entries'](_0x253d8b))_0x439242['push'](so(_0x23f481,_0x215110,_0x539cae));return _0x439242['length']?{'type':'format','content':c(_0x48abf8,'*Set\x20format\x20to:*\x20%0',_0x439242['join'](',\x20'))}:{'type':'format','content':c(_0x48abf8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x579daa,_0x28d737,_0x179d4f){const _0x2cbfac=_0x579daa['locale']['t'],_0x3108e3=_0x28d737['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c47b1=_0x2cbfac(_0x3108e3['charAt'](0x0)['toUpperCase']()+_0x3108e3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x179d4f)return _0x3c47b1;if('fontColor'===_0x28d737||'fontBackgroundColor'===_0x28d737){const _0x53074a=_0x16d0e5(_0x579daa['config']['get']('fontColor.colors'))['find'](_0x3e8745=>_0x3e8745['model']==_0x179d4f);return _0x3c47b1+'\x20('+(_0x53074a?_0x2cbfac(_0x53074a['label'])['toLowerCase']():_0x179d4f)+')';}if('fontSize'===_0x28d737&&isNaN(parseFloat(_0x179d4f))){const _0x122bac=_0x579daa['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x579daa['config']['get']('fontSize.options'))['find'](_0x278213=>_0x278213['model']==_0x179d4f);return _0x3c47b1+'\x20('+(_0x122bac?_0x2cbfac(_0x122bac['title'])['toLowerCase']():_0x179d4f)+')';}return _0x3c47b1+'\x20('+_0x179d4f+')';}class nt extends _0x550ef0{['_headingOptions'];['afterInit'](){const _0x328558=this['editor'];if(!_0x328558['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x328558['config']['get']('heading.options');const _0x2b8eff=_0x328558['locale'],_0x2c8643=_0x328558['plugins']['get']('TrackChangesEditing');_0x2c8643['enableDefaultAttributesIntegration']('heading');for(const _0x289b81 of this['_headingOptions'])'paragraph'!=_0x289b81['model']&&_0x2c8643['descriptionFactory']['registerElementLabel'](_0x289b81['model'],_0x202d28=>{const _0x394942=this['_getHeadingLevel'](_0x289b81['model']);return null!==_0x394942?_0x70c7be(_0x202d28,_0x394942):_0x4470a4(_0x202d28,_0x289b81['title']);});function _0x70c7be(_0x784ec5,_0x5cbf63){return c(_0x2b8eff,'ELEMENT_HEADING',[_0x784ec5,_0x5cbf63]);}function _0x4470a4(_0x452346,_0x978c35){return c(_0x2b8eff,'ELEMENT_HEADING_CUSTOM',[_0x452346,_0x978c35]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x108a80=this['editor'],_0x5e830e=_0x108a80['locale'];function _0x3d425c(_0x17fda8,_0x2cee0d){return c(_0x5e830e,'ELEMENT_HEADING_CUSTOM',[_0x17fda8,_0x2cee0d]);}_0x108a80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39e38a=>{if('formatBlock'!=_0x39e38a['type'])return;const {data:_0x523479}=_0x39e38a;if(_0x523479&&'heading'==_0x523479['commandName']){const _0x172c2a=_0x523479['commandParams'][0x0]['value'],_0x1315e9=this['_getHeadingLevel'](_0x172c2a);if(null!==_0x1315e9)return{'type':'format','content':c(_0x5e830e,'*Change\x20to:*\x20%0',(_0x3d20a3=0x1,_0x4fab28=_0x1315e9,c(_0x5e830e,'ELEMENT_HEADING',[_0x3d20a3,_0x4fab28])))};const _0x405ffb=this['_headingOptions']['find'](_0x491cdc=>_0x491cdc['model']===_0x172c2a)['title'];return{'type':'format','content':c(_0x5e830e,'*Change\x20to:*\x20%0',_0x3d425c(0x1,_0x405ffb))};}var _0x3d20a3,_0x4fab28;});}['_getHeadingLevel'](_0x401524){const _0x43d839=_0x401524['match'](/^heading(\d+)/);if(_0x43d839)return _0x43d839[0x1];const _0x4a97cd=this['_headingOptions']?.['find'](_0x37d016=>_0x37d016['model']==_0x401524);if(_0x4a97cd&&_0x4a97cd['view']){const _0x411d42=_0x4a97cd['view'],_0xe8bd9b=(_0x411d42['name']??_0x411d42)['match'](/^h(\d+)/);if(_0xe8bd9b)return _0xe8bd9b[0x1];}return null;}}class it extends _0x550ef0{['afterInit'](){const _0x5ee430=this['editor'];if(!_0x5ee430['plugins']['has']('HighlightEditing'))return;const _0x2e89de=_0x5ee430['plugins']['get']('TrackChangesEditing'),_0x3e0d46=_0x5ee430['locale'];_0x2e89de['enableDefaultAttributesIntegration']('highlight'),_0x2e89de['registerInlineAttribute']('highlight'),_0x2e89de['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x3e0d46,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c975d=this['editor'],_0x2caf70=_0x3c975d['locale'];_0x3c975d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a759b=>{if('formatInline'!=_0x4a759b['type'])return;const {data:_0x5d2c00}=_0x4a759b;if(_0x5d2c00&&'highlight'==_0x5d2c00['commandName']){const _0x4bd02f=_0x2caf70['t'],_0xdf050a=_0x5d2c00['commandParams'][0x0]['value'];if(_0xdf050a){const _0x256201=_0x3c975d['config']['get']('highlight.options')['find'](_0x269e0b=>_0x269e0b['model']==_0xdf050a),_0x1889ad=_0x4bd02f(_0x256201['title'])['toLowerCase']();return{'type':'format','content':c(_0x2caf70,'*Set\x20highlight:*\x20%0',_0x1889ad),'color':{'value':_0x256201['color'],'title':_0x256201['title']}};}return{'type':'format','content':c(_0x2caf70,'*Remove\x20highlight*',c(_0x2caf70,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x550ef0{['afterInit'](){const _0x5c517a=this['editor'];if(!_0x5c517a['plugins']['has']('HorizontalLineEditing'))return;_0x5c517a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a41d1=_0x5c517a['plugins']['get']('TrackChangesEditing'),_0xfaea23=_0x5c517a['locale'];_0x4a41d1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x52da0e=>c(_0xfaea23,'ELEMENT_HORIZONTAL_LINE',_0x52da0e)),_0x5c517a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5450d0,{writer:_0x3f2450,options:_0x8dcb99})=>{if(!_0x8dcb99['showSuggestionHighlights'])return null;const _0x2d53de=_0x3f2450['createContainerElement']('div'),_0x164e4f=_0x3f2450['createEmptyElement']('hr');return _0x3f2450['addClass']('ck-horizontal-line',_0x2d53de),_0x3f2450['insert'](_0x3f2450['createPositionAt'](_0x2d53de,0x0),_0x164e4f),_0x2d53de;},'converterPriority':'high'});}}class ot extends _0x550ef0{['afterInit'](){const _0x4fe404=this['editor'];if(!_0x4fe404['plugins']['has']('HtmlEmbed'))return;const _0xed913b=_0x4fe404['plugins']['get']('TrackChangesEditing'),_0x13b7c9=_0x4fe404['locale'];_0xed913b['descriptionFactory']['registerElementLabel']('rawHtml',_0x14b577=>c(_0x13b7c9,'ELEMENT_HTML_EMBED',_0x14b577)),_0xed913b['enableDefaultAttributesIntegration']('htmlEmbed'),_0xed913b['registerBlockAttribute']('value'),_0xed913b['descriptionFactory']['registerDescriptionCallback'](_0x550b5e=>{if('attribute'!=_0x550b5e['type'])return;const {data:_0x22c1f8}=_0x550b5e;if(_0x22c1f8&&'value'==_0x22c1f8['key']&&_0x550b5e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1e989b=c(_0x13b7c9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x13b7c9,'*Change\x20%0\x20content*',_0x1e989b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13de4=this['editor'],_0x5bd6f9=_0x13de4['locale'];_0x13de4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4765a3=>{if('formatBlock'!=_0x4765a3['type'])return;const {data:_0x159b05}=_0x4765a3;if(_0x159b05&&'htmlEmbed'==_0x159b05['commandName']){const _0x3c7bb9=c(_0x5bd6f9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5bd6f9,'*Change\x20%0\x20content*',_0x3c7bb9)};}});}}class rt extends _0x550ef0{['afterInit'](){const _0x24cccc=this['editor'];if(!_0x24cccc['plugins']['has']('ImageEditing'))return;const _0x369bb3=_0x24cccc['plugins']['get']('TrackChangesEditing'),_0x209e13=_0x24cccc['plugins']['get']('ImageUtils'),_0x3b9d06=_0x24cccc['locale'];_0x369bb3['enableCommand']('insertImage'),_0x369bb3['descriptionFactory']['registerElementLabel']('imageBlock',_0x30d9c6=>c(_0x3b9d06,'ELEMENT_IMAGE',_0x30d9c6)),_0x369bb3['descriptionFactory']['registerElementLabel']('imageInline',_0x2f2b92=>c(_0x3b9d06,'ELEMENT_INLINE_IMAGE',_0x2f2b92)),_0x369bb3['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3b9d06,'ELEMENT_CAPTION')),_0x24cccc['plugins']['has']('ImageUploadEditing')&&_0x369bb3['enableCommand']('uploadImage'),_0x24cccc['plugins']['has']('ImageBlockEditing')&&_0x24cccc['plugins']['has']('ImageInlineEditing')&&(_0x369bb3['enableCommand']('imageTypeInline',(_0x268ac1,_0xe54c32)=>{const _0x644acc=_0x209e13['getClosestSelectedImageElement'](_0x24cccc['model']['document']['selection']);_0x24cccc['model']['change'](()=>{_0x369bb3['markBlockFormat'](_0x644acc,{'commandName':'imageTypeInline','commandParams':[_0xe54c32]},[],'convertBlockImageToInline');});}),_0x369bb3['enableCommand']('imageTypeBlock',(_0x6ea122,_0x456c3b)=>{_0x24cccc['model']['change'](_0xdee828=>{let _0x466021=_0x209e13['getClosestSelectedImageElement'](_0x24cccc['model']['document']['selection']),_0xce7252=_0xdee828['createRangeOn'](_0x466021);const _0x12b531=_0x16b9a3['fromPosition'](_0xce7252['start'],'toPrevious'),_0xce014f=_0x16b9a3['fromPosition'](_0xce7252['end'],'toNext');_0x369bb3['forceDefaultExecution'](()=>_0x6ea122(_0x456c3b)),_0x466021=_0x209e13['getClosestSelectedImageElement'](_0x24cccc['model']['document']['selection']),_0xce7252=_0xdee828['createRangeOn'](_0x466021);const _0x49d2a8=_0xdee828['createRange'](_0x12b531,_0xce014f);_0x12b531['detach'](),_0xce014f['detach'](),_0x369bb3['markBlockFormat'](_0x466021,{'commandName':'imageTypeInline','commandParams':[_0x456c3b]},[],'convertInlineImageToBlock'),_0x49d2a8['start']['isBefore'](_0xce7252['start'])&&_0x369bb3['markInsertion'](_0xdee828['createRange'](_0x49d2a8['start'],_0xce7252['start']),'convertInlineImageToBlock'),_0xce7252['end']['isBefore'](_0x49d2a8['end'])&&_0x369bb3['markInsertion'](_0xdee828['createRange'](_0xce7252['end'],_0x49d2a8['end']),'convertInlineImageToBlock');});}),_0x369bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x369bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x369bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x369bb3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x369bb3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x369bb3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4be84b])=>{const _0x332aa8=_0x369bb3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x73b60b=_0x4be84b['start'],_0x304862=_0x4be84b['end'];const _0x2d3612=_0x24cccc['model']['schema']['getNearestSelectionRange'](_0x73b60b,'backward'),_0xb9456e=_0x24cccc['model']['schema']['getNearestSelectionRange'](_0x304862,'forward');_0x2d3612['isCollapsed']&&(_0x73b60b=_0x2d3612['start']),_0xb9456e['isCollapsed']&&(_0x304862=_0xb9456e['end']),_0x332aa8([_0x24cccc['model']['createRange'](_0x73b60b,_0x304862)]);}),_0x369bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15b280),_0x369bb3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15b280)),_0x24cccc['plugins']['has']('ImageCaptionEditing')&&(_0x369bb3['enableCommand']('toggleImageCaption',(_0x21d044,_0x2c21a7)=>{const _0x4a0233=_0x24cccc['plugins']['get']('ImageCaptionUtils');let _0x35152f=_0x209e13['getClosestSelectedImageElement'](_0x24cccc['model']['document']['selection']),_0xbc6573=_0x4a0233['getCaptionFromImageModelElement'](_0x35152f);_0x24cccc['model']['change'](()=>{if(_0xbc6573)return void _0x369bb3['markDeletion'](_0x24cccc['model']['createRangeOn'](_0xbc6573));const _0x49161a=_0x209e13['isBlockImage'](_0x35152f);_0x21d044(_0x2c21a7),_0x35152f=_0x209e13['getClosestSelectedImageElement'](_0x24cccc['model']['document']['selection']),_0xbc6573=_0x4a0233['getCaptionFromImageModelElement'](_0x35152f),_0x369bb3['markInsertion'](_0x24cccc['model']['createRangeOn'](_0xbc6573),_0x49161a?null:'imageCaption');});}),_0x369bb3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15b280));const _0x32e0e8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2cfff1(_0x414f2d,_0x1410a6){const _0x503656=_0x32e0e8['findIndex'](({type:_0x11dc7c,subType:_0x2a0a7f})=>_0x414f2d['type']==_0x11dc7c&&_0x414f2d['subType']==_0x2a0a7f),_0x53282b=_0x32e0e8['findIndex'](({type:_0x22ec52,subType:_0x5c717d})=>_0x1410a6['type']==_0x22ec52&&_0x1410a6['subType']==_0x5c717d);if(_0x503656<0x0||_0x53282b<0x0)return!0x1;const _0x52df90=_0x414f2d['getFirstRange'](),_0x1209f3=_0x1410a6['getFirstRange']();if((0x0==_0x503656||0x1==_0x503656)&&0x2==_0x53282b&&_0x52df90['isIntersecting'](_0x1209f3))return!0x0;if(0x2==_0x503656&&0x3==_0x53282b){const _0x3f1d45=_0x369bb3['_findSuggestions'](_0x52df90,'insertion')['filter'](({suggestion:_0x2c4382,meta:_0x211022})=>_0x211022['isOwn']&&'convertInlineImageToBlock'==_0x2c4382['subType']);if(_0x3f1d45['length']>0x1&&_0x1209f3['end']['isEqual'](_0x52df90['start']))return!0x0;if(0x1==_0x3f1d45['length']&&(_0x52df90['start']['isEqual'](_0x1209f3['end'])||_0x52df90['end']['isEqual'](_0x1209f3['start'])))return!0x0;}if(0x3==_0x503656&&0x3==_0x53282b&&_0x52df90['start']['isBefore'](_0x1209f3['start'])){const _0x539d7c=_0x52df90['end']['nodeAfter'],_0x277369=_0x1209f3['start']['nodeBefore'];return _0x209e13['isBlockImage'](_0x539d7c)&&_0x539d7c===_0x277369;}return!0x1;}function _0x15b280(_0x459b61,_0x191985){return _0x2cfff1(_0x459b61,_0x191985)?[_0x459b61,_0x191985]:_0x2cfff1(_0x191985,_0x459b61)?[_0x191985,_0x459b61]:null;}_0x24cccc['plugins']['has']('ImageResize')&&(_0x369bb3['enableDefaultAttributesIntegration']('resizeImage'),_0x369bb3['registerBlockAttribute']('resizedWidth'),_0x369bb3['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3b9d06,'FORMAT_IMAGE_SIZE'))),_0x24cccc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x369bb3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x369bb3['registerBlockAttribute']('alt')),_0x24cccc['plugins']['has']('PictureEditing')&&(_0x369bb3['registerBlockAttribute']('sources'),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x1028eb=>{if('attribute'!=_0x1028eb['type'])return;const {data:_0x59f7dc}=_0x1028eb;return _0x59f7dc&&'sources'==_0x59f7dc['key']?{'type':'format','content':''}:void 0x0;})),_0x24cccc['plugins']['has']('ImageSizeAttributes')&&(_0x369bb3['registerBlockAttribute']('width'),_0x369bb3['registerBlockAttribute']('height'),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x383c9e=>{if('attribute'!=_0x383c9e['type'])return;const {data:_0x294612}=_0x383c9e;return!_0x294612||'width'!=_0x294612['key']&&'height'!=_0x294612['key']?void 0x0:{'type':'format','content':''};})),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x1e25be=>{if(!!_0x32e0e8['find'](({type:_0xaf8233,subType:_0x4d32a3})=>_0x1e25be['type']==_0xaf8233&&_0x1e25be['subType']==_0x4d32a3))return _0x1e25be['previous']?{}:void 0x0;}),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x1be813=>{if('insertion'==_0x1be813['type']||'deletion'==_0x1be813['type']){const _0x3d34b4=_0x1be813['getContainedElement']();if(_0x3d34b4&&_0x3d34b4['is']('element','caption'))return{'type':'insertion'==_0x1be813['type']?'addObject':'removeObject','element':_0x3d34b4,'quantity':0x1};}}),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x2e0053=>'formatBlock'==_0x2e0053['type']&&'convertInlineImageToBlock'==_0x2e0053['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2e0053['type']&&'convertBlockImageToInline'==_0x2e0053['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x269d12=>{if('attribute'!=_0x269d12['type'])return;const {data:_0x2def6b}=_0x269d12;if(!_0x2def6b||'alt'!=_0x2def6b['key'])return;const _0x24c29a=_0x2def6b['newValue'];return _0x24c29a?{'type':'format','content':c(_0x3b9d06,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24c29a+'\x22')}:{'type':'format','content':c(_0x3b9d06,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24ebb8=this['editor'],_0x32f247=_0x24ebb8['locale'];_0x24ebb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40e417=>{if('formatBlock'!=_0x40e417['type']&&'formatInline'!=_0x40e417['type'])return;const {data:_0x3b5b65}=_0x40e417;if(_0x3b5b65){if('imageTextAlternative'==_0x3b5b65['commandName']){const _0x1f72cf=_0x3b5b65['commandParams'][0x0]['newValue'];return _0x1f72cf?{'type':'format','content':c(_0x32f247,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1f72cf+'\x22')}:{'type':'format','content':c(_0x32f247,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b5b65['commandName']){const _0x1d850c=_0x3b5b65['commandParams'][0x0]['width'];return _0x1d850c?{'type':'format','content':c(_0x32f247,'*Set\x20image\x20width:*\x20%0',_0x1d850c)}:{'type':'format','content':c(_0x32f247,'*Reset\x20image\x20width*')};}}});}}class at extends _0x550ef0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x59b085=this['editor']['locale'],_0x27c778=this['editor']['plugins']['get']('TrackChangesEditing');_0x27c778['enableDefaultAttributesIntegration']('replaceImageSource'),_0x27c778['registerBlockAttribute']('src'),_0x27c778['descriptionFactory']['registerDescriptionCallback'](_0x218c22=>{if('attribute'!=_0x218c22['type'])return;const {data:_0x132296}=_0x218c22;return _0x132296&&'src'==_0x132296['key']?_0x132296['newValue']&&_0x132296['oldValue']?{'type':'format','content':c(_0x59b085,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x483335=this['editor']['plugins']['get']('TrackChangesEditing');_0x483335['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x483335['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x483335['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x483335['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x69e123=this['editor'],_0x11bebf=_0x69e123['locale'];_0x69e123['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35e1ff=>{if('formatBlock'!=_0x35e1ff['type']&&'formatInline'!=_0x35e1ff['type'])return;const {data:_0x47a90e}=_0x35e1ff;if(!_0x47a90e||'replaceImageSource'!=_0x47a90e['commandName'])return;return{'type':'format','content':c(_0x11bebf,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x550ef0{['afterInit'](){const _0x321cba=this['editor'];if(!_0x321cba['plugins']['has']('ImageStyleEditing'))return;const _0x539d5e=_0x321cba['plugins']['get']('TrackChangesEditing'),_0x3d1e76=_0x321cba['plugins']['get']('ImageUtils'),_0x1d3f25={};_0x539d5e['enableCommand']('imageStyle',(_0x4d2013,_0x24802d)=>{const _0x5e1444=_0x321cba['plugins']['get']('Users')['me'],_0x27c89a=_0x321cba['commands']['get']('imageStyle');let _0x25d990=_0x3d1e76['getClosestSelectedImageElement'](_0x321cba['model']['document']['selection']),_0x3654c0=_0x321cba['model']['createRangeOn'](_0x25d990),_0xc04f2=_0x27c89a['value'];if(_0xc04f2==_0x24802d['value'])return;const _0x470f42={'commandName':'imageStyle','commandParams':[_0x24802d],'formatGroupId':_0x29542d()};_0x321cba['model']['change'](()=>{if(_0x539d5e['getSuggestions']()['filter'](_0x18250e=>_0x18250e['isInContent']&&_0x5e1444==_0x18250e['author']&&('formatBlock'==_0x18250e['type']||'formatInline'==_0x18250e['type'])&&('imageStylePreApply'==_0x18250e['subType']||'imageStylePostApply'==_0x18250e['subType'])&&_0x18250e['getFirstRange']()['isEqual'](_0x3654c0))['forEach'](_0x14227a=>_0x539d5e['discardSuggestion'](_0x14227a['head'])),_0x25d990=_0x3d1e76['getClosestSelectedImageElement'](_0x321cba['model']['document']['selection']),_0x3654c0=_0x321cba['model']['createRangeOn'](_0x25d990),_0x27c89a['refresh'](),_0x321cba['commands']['get']('imageTypeInline')['refresh'](),_0x321cba['commands']['get']('imageTypeBlock')['refresh'](),_0xc04f2=_0x27c89a['value'],_0xc04f2!=_0x24802d['value'])return _0x3d1e76['isInlineImage'](_0x25d990)&&_0x27c89a['shouldConvertImageType'](_0x24802d['value'],_0x25d990)?(_0x4d2013({..._0x24802d,'setImageSizes':!0x1}),_0x25d990=_0x3d1e76['getClosestSelectedImageElement'](_0x321cba['model']['document']['selection']),void _0x539d5e['markBlockFormat'](_0x25d990,{..._0x470f42,'commandReversedParams':[{'value':_0xc04f2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3d1e76['isBlockImage'](_0x25d990)?_0x539d5e['markBlockFormat'](_0x25d990,_0x470f42,[],'imageStylePostApply'):_0x539d5e['markInlineFormat'](_0x3654c0,_0x470f42,'imageStylePostApply'));});});for(const _0x55dc06 of _0x321cba['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1d3f25[_0x55dc06['name']]=_0x55dc06['title']['toLowerCase']();_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x44aff0])=>{_0x3d1e76['setImageNaturalSizeAttributes'](_0x44aff0['getContainedElement']());}),_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x8778c4,_0x4962c1)=>{_0x539d5e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x8778c4,{'commandName':_0x4962c1['commandName'],'commandParams':_0x4962c1['commandReversedParams']});}),_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4b3ab5,_0xf80f55){if(_0x284db1(_0x4b3ab5,_0xf80f55))return[_0x4b3ab5,_0xf80f55];if(_0x284db1(_0xf80f55,_0x4b3ab5))return[_0xf80f55,_0x4b3ab5];return null;});const _0xabe5ec=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x284db1(_0x22fb25,_0x4b855f){const _0x1a2fc3=_0xabe5ec['findIndex'](({type:_0x31b72f,subType:_0x3d0ea6})=>_0x22fb25['type']==_0x31b72f&&_0x22fb25['subType']==_0x3d0ea6),_0x4e4760=_0xabe5ec['findIndex'](({type:_0x1c6c65,subType:_0x9b379f})=>_0x4b855f['type']==_0x1c6c65&&_0x4b855f['subType']==_0x9b379f);if(_0x1a2fc3<0x0||_0x4e4760<0x0)return!0x1;const _0x50e7d3=_0x22fb25['getFirstRange'](),_0x27ea26=_0x4b855f['getFirstRange']();if((0x0==_0x1a2fc3||0x1==_0x1a2fc3)&&0x2==_0x4e4760&&_0x50e7d3['isIntersecting'](_0x27ea26))return!0x0;if(0x2==_0x1a2fc3&&0x3==_0x4e4760){const _0x134282=_0x539d5e['_findSuggestions'](_0x50e7d3,'insertion')['filter'](({suggestion:_0x416306,meta:_0x3f7e56})=>_0x3f7e56['isOwn']&&'convertInlineImageToBlock'==_0x416306['subType']);if(_0x134282['length']>0x1&&_0x27ea26['end']['isEqual'](_0x50e7d3['start']))return!0x0;if(0x1==_0x134282['length']&&(_0x50e7d3['start']['isEqual'](_0x27ea26['end'])||_0x50e7d3['end']['isEqual'](_0x27ea26['start'])))return!0x0;}if(0x3==_0x1a2fc3&&0x3==_0x4e4760&&_0x50e7d3['start']['isBefore'](_0x27ea26['start'])){const _0x45b65c=_0x50e7d3['end']['nodeAfter'],_0xd19271=_0x27ea26['start']['nodeBefore'];return _0x3d1e76['isBlockImage'](_0x45b65c)&&_0x45b65c===_0xd19271;}return!0x1;}_0x321cba['model']['document']['registerPostFixer'](()=>{let _0x3372f1=!0x1;const _0x3c6921=Array['from'](_0x321cba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x908d6e,data:_0x28e9ed}of _0x3c6921){const {group:_0x3eb860,type:_0x3e63da,subType:_0x562c7b,id:_0x491878}=_0x539d5e['_splitMarkerName'](_0x908d6e);if('suggestion'==_0x3eb860&&_0x539d5e['hasSuggestion'](_0x491878)){if('formatBlock'==_0x3e63da&&('imageStylePreApply'==_0x562c7b||'imageStylePostApply'==_0x562c7b)){const _0x2910ae=_0x539d5e['getSuggestion'](_0x491878);if(_0x28e9ed['newRange']){const _0x2ccf72=_0x2910ae['getFirstRange']()['getContainedElement']();if(_0x3d1e76['isBlockImage'](_0x2ccf72))continue;_0x539d5e['discardSuggestion'](_0x2910ae),_0x3372f1=!0x0;}}if('insertion'==_0x3e63da&&'imageCaption'==_0x562c7b&&!_0x28e9ed['newRange']){const _0x40689d=_0x539d5e['getSuggestion'](_0x491878);_0x40689d['next']&&_0x40689d['next']['isInContent']&&(_0x539d5e['discardSuggestion'](_0x40689d['next']),_0x3372f1=!0x0);}}}return _0x3372f1;}),this['_registerLegacyDescription'](_0x1d3f25);}['_registerLegacyDescription'](_0x1871ef){const _0x59cbdc=this['editor'],_0x44ca3b=_0x59cbdc['locale'];_0x59cbdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b05fd=>{if('formatBlock'!=_0x2b05fd['type']&&'formatInline'!=_0x2b05fd['type'])return;const {data:_0xbf377}=_0x2b05fd;if(!_0xbf377||'imageStyle'!=_0xbf377['commandName'])return;const _0x30cd6c=_0xbf377['commandParams'][0x0]['value'];return _0x2da8e6('side'===_0x30cd6c?c(_0x44ca3b,'FORMAT_SIDE_IMAGE'):_0x1871ef[_0x30cd6c]||_0x30cd6c);function _0x2da8e6(_0x4bbe48){return{'type':'format','content':c(_0x44ca3b,'*Format:*\x20%0',_0x4bbe48)};}});}}class ut extends _0x550ef0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x68eb6a){super(_0x68eb6a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4df98a=this['editor'],_0x42a55f=_0x4df98a['commands']['get']('importWord'),_0x671b90=_0x4df98a['commands']['get']('trackChanges');_0x42a55f&&(_0x42a55f['on']('execute',(_0x1048c7,[,_0x2c93d6])=>{this['_trackChangesValueDuringImport']=_0x671b90['value'],_0x2c93d6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x42a55f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x42a55f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x671b90['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4df98a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x29cebd,_0x2748b9){const {suggestions:_0x1a61ea}=_0x2748b9,_0x35aaca=this['editor']['commands']['get']('trackChanges'),_0x1c31ee=_0x35aaca['value'];this['_trackChangesValueDuringImport']!==_0x1c31ee&&(_0x35aaca['execute'](),this['_trackChangesExecuted']=!0x0),_0x1a61ea&&_0x1a61ea['forEach'](({id:_0x4d7c1a,type:_0x36956d,author:_0xa036df,created_at:_0x29b7e9})=>{const _0x192810={'id':_0x4d7c1a,'type':_0x36956d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xa036df,'createdAt':_0x29b7e9?new Date(_0x29b7e9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x192810);});}}class ft extends _0x550ef0{['afterInit'](){const _0x572d25=this['editor'],_0x4c6a56=_0x572d25['plugins']['get']('TrackChangesEditing');if(_0x572d25['plugins']['has']('IndentEditing')&&(_0x4c6a56['enableCommand']('indent'),_0x4c6a56['enableCommand']('outdent')),_0x572d25['plugins']['has']('IndentBlock')){for(const _0x40fdbd of['indentBlock','outdentBlock'])_0x4c6a56['enableDefaultAttributesIntegration'](_0x40fdbd);}const _0x3758d6=_0x572d25['locale'];_0x4c6a56['registerBlockAttribute']('blockIndent'),_0x4c6a56['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x3758d6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25aab5=this['editor'],_0x483af1=_0x25aab5['locale'],_0x1b041a=_0x25aab5['plugins']['get']('TrackChangesEditing');_0x1b041a['descriptionFactory']['registerDescriptionCallback'](_0x4734c9=>{if('formatBlock'!=_0x4734c9['type'])return;const {data:_0x216469}=_0x4734c9;if(!_0x216469)return;if('indentBlock'!=_0x216469['commandName']&&'outdentBlock'!=_0x216469['commandName'])return;const _0x83c275=_0x4734c9['getItems']()[0x0],_0x178b6d=_0x1b041a['descriptionFactory']['getItemLabel'](_0x83c275);return'indentBlock'==_0x216469['commandName']?{'type':'format','content':c(_0x483af1,'*Indent:*\x20%0',_0x178b6d)}:'outdentBlock'==_0x216469['commandName']?{'type':'format','content':c(_0x483af1,'*Outdent:*\x20%0',_0x178b6d)}:void 0x0;});}}class ht extends _0x550ef0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x550ef0{['afterInit'](){const _0x3b7cec=this['editor'];if(!_0x3b7cec['plugins']['has']('LinkEditing'))return;const _0x127b6c=_0x3b7cec['plugins']['get']('TrackChangesEditing'),_0x3a7e1d=_0x3b7cec['commands']['get']('link');_0x127b6c['enableDefaultAttributesIntegration']('link'),_0x127b6c['enableDefaultAttributesIntegration']('unlink'),_0x127b6c['registerInlineAttribute']('linkHref');for(const _0x3c6d78 of _0x3a7e1d['manualDecorators'])_0x127b6c['registerInlineAttribute'](_0x3c6d78['id']),_0x127b6c['descriptionFactory']['registerAttributeLabel'](_0x3c6d78['id'],'link\x20('+_0x3c6d78['label']['toLowerCase']()+')');_0x127b6c['descriptionFactory']['registerDescriptionCallback'](_0x51cbf4=>{if('attribute'!=_0x51cbf4['type'])return;const {data:_0x5a7cbd}=_0x51cbf4;if(!_0x5a7cbd||'linkHref'!=_0x5a7cbd['key'])return;const _0x1176e2=_0x5a7cbd['newValue'],_0xc806cb=_0x3b7cec['locale'];return{'type':'format','content':null==_0x1176e2?c(_0xc806cb,'*Remove\x20link*'):c(_0xc806cb,'*Set\x20link:*\x20%0','\x22'+_0x1176e2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a82f0=this['editor'],_0x5c35bb=_0x5a82f0['locale'];_0x5a82f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20a116=>{if('formatInline'!=_0x20a116['type'])return;const {data:_0x238105}=_0x20a116;if(_0x238105){if('link'==_0x238105['commandName']){const _0x1416c2=_0x238105['commandParams'][0x0];return{'type':'format','content':c(_0x5c35bb,'*Set\x20link:*\x20%0','\x22'+_0x1416c2+'\x22')};}return'unlink'==_0x238105['commandName']?{'type':'format','content':c(_0x5c35bb,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x550ef0{['afterInit'](){const _0x8e1535=this['editor'],_0x72e95d=_0x8e1535['locale'];if(!_0x8e1535['plugins']['has']('LegacyListEditing'))return;const _0x1a9ecd=_0x8e1535['plugins']['get']('TrackChangesEditing'),_0x4990b8=_0x8e1535['plugins']['has']('LegacyTodoListEditing');function _0x1c7a32(_0x1f6181){return()=>{const _0x4ca710=_0x8e1535['model']['document']['selection'],_0x82a0a9=_0x8e1535['commands']['get'](_0x1f6181);if(_0x82a0a9['value'])return void _0x8e1535['execute']('paragraph',{});const _0x18297e=_0x1f6181['slice'](0x0,-0x4),_0x38b380=function(_0x1042da,_0x3c2f11,_0x4972e9){let _0x41b9fc=Array['from'](_0x1042da)['filter'](_0x2db676=>function(_0x1563bb,_0x2521a3){return _0x2521a3['checkChild'](_0x1563bb['parent'],'listItem')&&!_0x2521a3['isObject'](_0x1563bb);}(_0x2db676,_0x4972e9));_0x41b9fc=_0x41b9fc['filter'](_0x528e26=>!_0x528e26['is']('element','listItem')||_0x528e26['getAttribute']('listType')!=_0x3c2f11);const _0x3d2b94=new Set();for(const _0x58d61a of _0x41b9fc)_0x58d61a['is']('element','listItem')?_0x3d2b94['add'](Le(_0x58d61a)):_0x3d2b94['add'](_0x58d61a);return Array['from'](_0x3d2b94);}(_0x4ca710['getSelectedBlocks'](),_0x18297e,_0x8e1535['model']['schema']);_0x8e1535['model']['change'](()=>{for(const _0x4be2c0 of _0x38b380)_0x1a9ecd['markBlockFormat'](_0x4be2c0,{'commandName':_0x1f6181,'commandParams':[{'forceValue':!_0x82a0a9['value']}],'formatGroupId':'blockName'},Ee(_0x4be2c0));});};}function _0x1181b0(_0x384041){return()=>{const _0x2a4ebd=function(_0x1f0009){let _0x544edc=Array['from'](_0x1f0009);const _0x252015=_0x544edc['findIndex'](_0x425527=>'listItem'!=_0x425527['name']);return _0x252015>-0x1&&(_0x544edc=_0x544edc['slice'](0x0,_0x252015)),_0x544edc;}(_0x8e1535['model']['document']['selection']['getSelectedBlocks']()),_0x154d5c=_0x8e1535['model']['createRange'](_0x8e1535['model']['createPositionAt'](_0x2a4ebd[0x0],'before'),_0x8e1535['model']['createPositionAt'](_0x2a4ebd[_0x2a4ebd['length']-0x1],'end'));_0x8e1535['model']['change'](()=>{_0x1a9ecd['markBlockFormat'](_0x154d5c,{'commandName':_0x384041,'commandParams':[],'formatGroupId':'listIndent'},function(_0x316ff4){const _0x27e1d7=new Set();for(const _0x2a8d00 of _0x316ff4){let _0x31197e=_0x2a8d00['nextSibling'];for(;_0x31197e&&_0x31197e['getAttribute']('listIndent')>_0x2a8d00['getAttribute']('listIndent');)_0x27e1d7['add'](_0x31197e),_0x31197e=_0x31197e['nextSibling'];}return Array['from'](_0x27e1d7);}(_0x2a4ebd));});};}_0x1a9ecd['enableCommand']('numberedList',_0x1c7a32('numberedList')),_0x1a9ecd['enableCommand']('bulletedList',_0x1c7a32('bulletedList')),_0x4990b8&&_0x1a9ecd['enableCommand']('todoList',_0x1c7a32('todoList')),_0x1a9ecd['enableCommand']('indentList',_0x1181b0('indentList')),_0x1a9ecd['enableCommand']('outdentList',_0x1181b0('outdentList')),_0x4990b8&&_0x1a9ecd['enableCommand']('checkTodoList',()=>{const _0x2d5ed3=_0x8e1535['commands']['get']('checkTodoList'),_0x24991c=Array['from'](_0x2d5ed3['_selectedElements']);_0x24991c['filter'](_0x15e081=>_0x15e081['getAttribute']('todoListChecked')!=_0x2d5ed3['value']),_0x8e1535['model']['change'](()=>{for(const _0x5bba97 of _0x24991c)_0x1a9ecd['markBlockFormat'](_0x5bba97,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2d5ed3['value']}]});});}),_0x1a9ecd['descriptionFactory']['registerElementLabel']('listItem',_0x216d10=>c(_0x72e95d,'ELEMENT_LIST_ITEM',_0x216d10)),_0x1a9ecd['descriptionFactory']['registerDescriptionCallback'](_0x24f7ee=>{if('formatBlock'!=_0x24f7ee['type']&&'formatInline'!=_0x24f7ee['type'])return;const {data:_0x396d6a}=_0x24f7ee;if(_0x396d6a){if('numberedList'==_0x396d6a['commandName']||'bulletedList'==_0x396d6a['commandName']||'todoList'==_0x396d6a['commandName'])switch(_0x396d6a['commandName']['replace']('List','')){case'bulleted':return _0x1d6bea(c(_0x72e95d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d6bea(c(_0x72e95d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d6bea(c(_0x72e95d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x396d6a['commandName'])return{'type':'format','content':c(_0x72e95d,'*Indent:*\x20%0',c(_0x72e95d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x396d6a['commandName'])return{'type':'format','content':c(_0x72e95d,'*Outdent:*\x20%0',c(_0x72e95d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x396d6a['commandName'])return _0x396d6a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x72e95d,'*Check\x20item*')}:{'type':'format','content':c(_0x72e95d,'*Uncheck\x20item*')};}function _0x1d6bea(_0x4462b4){return{'type':'format','content':c(_0x72e95d,'*Change\x20to:*\x20%0',_0x4462b4)};}});}}function Le(_0x5c8a0e){const _0x1a79c=_0x5c8a0e['getAttribute']('listIndent');if(0x0==_0x1a79c)return _0x5c8a0e;let _0x543b49=_0x5c8a0e;for(;_0x5c8a0e['previousSibling']&&_0x5c8a0e['previousSibling']['is']('element','listItem');){const _0x436d27=_0x5c8a0e['previousSibling']['getAttribute']('listIndent');if(_0x436d27==_0x1a79c)_0x543b49=_0x5c8a0e['previousSibling'];else{if(_0x436d27<_0x1a79c)break;}_0x5c8a0e=_0x5c8a0e['previousSibling'];}return _0x543b49;}function Ee(_0x47040){const _0x373204=[];if(_0x47040['is']('element','listItem')&&_0x47040['getAttribute']('listIndent')>0x0){let _0x27412b=_0x47040['nextSibling'];for(;_0x27412b&&'listItem'==_0x27412b['name']&&_0x27412b['getAttribute']('listIndent')==_0x47040['getAttribute']('listIndent');)_0x373204['push'](_0x27412b),_0x27412b=_0x27412b['nextSibling'];}return _0x373204;}class Q extends _0x550ef0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2572b8=this['editor']['config']['get']('list.properties'),_0x4ec9a6=this['editor']['plugins']['get']('TrackChangesEditing');_0x2572b8['styles']&&_0x4ec9a6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2572b8['reversed']&&_0x4ec9a6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2572b8['startIndex']&&_0x4ec9a6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4ec9a6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4d2f48,_0x4de058={}){const _0x8b0c1a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x529bb1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x8b0c1a['markMultiRangeBlockFormat'](_0x529bb1,{'commandName':'listStyle','commandParams':[{'type':_0x4de058['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15daac,_0x49636b={}){const _0x164b3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe4dea2=this['_getSuggestionBlocks'](_0xed2e60=>_0xed2e60['is']('element','listItem')&&'numbered'===_0xed2e60['getAttribute']('listType'));if(_0xe4dea2['length']<0x1)return;const _0x428369=_0xe4dea2['map'](_0x1b2cdb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b2cdb,'before'),this['editor']['model']['createPositionAt'](_0x1b2cdb,0x0)));this['editor']['model']['change'](()=>{_0x164b3d['markMultiRangeBlockFormat'](_0x428369,{'commandName':'listReversed','commandParams':[{'reversed':_0x49636b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5dabec,_0x2c048a={}){const _0x4bd052=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c21b4=this['_getSuggestionBlocks'](_0x31b0d5=>_0x31b0d5['is']('element','listItem')&&'numbered'===_0x31b0d5['getAttribute']('listType'));if(_0x2c21b4['length']<0x1)return;const _0x244445=_0x2c21b4['map'](_0x3a0302=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a0302,'before'),this['editor']['model']['createPositionAt'](_0x3a0302,0x0)));this['editor']['model']['change'](()=>{_0x4bd052['markMultiRangeBlockFormat'](_0x244445,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c048a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x12e3d0){if('formatBlock'!=_0x12e3d0['type']&&'formatInline'!=_0x12e3d0['type'])return;const _0xa2546f=this['editor']['locale'],{data:_0x534649}=_0x12e3d0;if(!_0x534649)return;let _0x308d27,_0x34ee58;switch(_0x534649['commandName']){case'listStyle':_0x308d27='*Change\x20to:*\x20%0',_0x34ee58={'type':'format','content':c(_0xa2546f,_0x308d27,c(_0xa2546f,this['_getTranslationKeyForListStyle'](_0x534649['commandParams'][0x0]['type'])))};break;case'listReversed':_0x308d27=_0x534649['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x34ee58={'type':'format','content':c(_0xa2546f,_0x308d27)};break;case'listStart':_0x308d27='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x34ee58={'type':'format','content':c(_0xa2546f,_0x308d27,_0x534649['commandParams'][0x0]['startIndex'])};}return _0x34ee58;}['_getSuggestionBlocksForListStyle'](){const _0x45d064=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a6180=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a6180[0x0]?.['is']('element','listItem')&&_0x5a6180['unshift'](..._0x45d064['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a6180[_0x5a6180['length']-0x1]?.['is']('element','listItem')&&_0x5a6180['push'](..._0x45d064['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a6180=[...new Set(_0x5a6180)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a6180=_0x5a6180['filter'](_0x1f1e85=>_0x1f1e85['is']('element','listItem'))),_0x5a6180;}['_getSuggestionBlocks'](_0x26447b){const _0x37f629=this['editor']['plugins']['get']('LegacyListUtils');let _0x19469a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x26447b)['map'](_0x4935cb=>{const _0x3fd526=this['editor']['model']['createPositionAt'](_0x4935cb,0x0);return[..._0x37f629['getSiblingNodes'](_0x3fd526,'backward'),..._0x37f629['getSiblingNodes'](_0x3fd526,'forward')];})['flat']();return _0x19469a=[...new Set(_0x19469a)],_0x19469a;}['_getTranslationKeyForListStyle'](_0x5e7f29){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5e7f29)||'default')['toUpperCase']()+'_LIST_'+_0x5e7f29['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x550ef0{['afterInit'](){const _0x5cccdf=this['editor'];if(!_0x5cccdf['plugins']['has']('MediaEmbedEditing'))return;const _0xa50b1e=_0x5cccdf['plugins']['get']('TrackChangesEditing'),_0x283330=_0x5cccdf['locale'];_0xa50b1e['enableCommand']('mediaEmbed'),_0xa50b1e['descriptionFactory']['registerElementLabel']('media',_0x54d278=>c(_0x283330,'ELEMENT_MEDIA',_0x54d278)),_0x5cccdf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1bfa68,{writer:_0x1a89af,options:_0x131d54})=>{if(_0x131d54['showSuggestionHighlights'])return _0x1a89af['createEmptyElement']('div');},'converterPriority':'high'}),_0x5cccdf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x38d747,_0x3468bb,_0xda286e)=>{_0xda286e['options']['showSuggestionHighlights']&&_0x38d747['stop']();},{'priority':'high'});}}class pt extends _0x550ef0{['afterInit'](){const _0x3a208e=this['editor'];_0x3a208e['plugins']['has']('MentionEditing')&&_0x3a208e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x550ef0{['afterInit'](){const _0x111075=this['editor'];if(!_0x111075['plugins']['has']('MergeFieldsEditing'))return;const _0x1706b9=_0x111075['plugins']['get']('TrackChangesEditing'),_0x1dfb63=_0x111075['locale'];_0x1706b9['enableCommand']('insertMergeField'),_0x1706b9['enableCommand']('insertMergeFieldBlock'),_0x1706b9['enableCommand']('insertMergeFieldImage'),_0x1706b9['descriptionFactory']['registerElementLabel']('mergeField',_0x48468c=>c(_0x1dfb63,'ELEMENT_MERGE_FIELD',_0x48468c)),_0x1706b9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3fd98f=>c(_0x1dfb63,'ELEMENT_MERGE_FIELD',_0x3fd98f)),_0x1706b9['descriptionFactory']['registerDescriptionCallback'](_0x50b16f=>{if('insertion'!=_0x50b16f['type']&&'deletion'!=_0x50b16f['type'])return;const _0x16b0fe=_0x50b16f['getContainedElement']();if(null==_0x16b0fe)return;const _0x20f6be=_0x111075['plugins']['get']('MergeFieldsEditing');let _0x2cde3c;switch(_0x20f6be['getMergeFieldType'](_0x16b0fe)){case null:return;case'image':{const _0x4c1bb3=_0x20f6be['unwrapAffixes'](_0x16b0fe['getAttribute']('src'));_0x2cde3c=_0x20f6be['getLabel'](_0x4c1bb3)||_0x4c1bb3;break;}default:{const _0x3d95d5=_0x16b0fe['getAttribute']('id');_0x2cde3c=_0x20f6be['getLabel'](_0x3d95d5)||_0x3d95d5;break;}}return'insertion'==_0x50b16f['type']?{'type':'insertion','content':c(_0x1dfb63,'*Insert:*\x20%0','\x22'+_0x2cde3c+'\x22\x20'+c(_0x1dfb63,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1dfb63,'*Remove:*\x20%0','\x22'+_0x2cde3c+'\x22\x20'+c(_0x1dfb63,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x550ef0{['afterInit'](){const _0x369a62=this['editor'],_0x5e31c4=_0x369a62['plugins']['get']('TrackChangesEditing');_0x369a62['plugins']['has']('MultiLevelList')&&(_0x5e31c4['enableDefaultAttributesIntegration']('multiLevelList'),_0x5e31c4['registerBlockAttribute']('listMarkerStyle'),_0x5e31c4['descriptionFactory']['registerDescriptionCallback'](_0x42217c=>this['handleDescriptions'](_0x42217c)));}['handleDescriptions'](_0x20de43){const _0x3c9f1b=this['editor']['locale'],{data:_0xd95b8e}=_0x20de43,_0x2244cb={'type':'format','content':''};if(_0xd95b8e&&'listMarkerStyle'==_0xd95b8e['key']){if(!_0xd95b8e['oldValue'])return{'type':'format','content':c(_0x3c9f1b,'*Set\x20format:*\x20%0',c(_0x3c9f1b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd95b8e['newValue']+')'};if(!_0xd95b8e['newValue']){let _0x1f415d=_0x20de43['head'];for(;_0x1f415d;){if(_0x1f415d['data']&&'listType'==_0x1f415d['data']['key']&&_0x1f415d['data']['newValue'])return _0x2244cb;_0x1f415d=_0x1f415d['next'];}return{'type':'format','content':c(_0x3c9f1b,'*Remove\x20format:*\x20%0',c(_0x3c9f1b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd95b8e['oldValue']+')'};}}}}class bt extends _0x550ef0{['afterInit'](){const _0x1b2293=this['editor'];if(!_0x1b2293['plugins']['has']('PageBreakEditing'))return;_0x1b2293['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x27a851=_0x1b2293['plugins']['get']('TrackChangesEditing'),_0xebf86=_0x1b2293['locale'];_0x27a851['descriptionFactory']['registerElementLabel']('pageBreak',_0x361ff2=>c(_0xebf86,'ELEMENT_PAGE_BREAK',_0x361ff2));}}class yt extends _0x550ef0{['afterInit'](){const _0x109a76=this['editor'];if(!_0x109a76['plugins']['has']('Paragraph'))return;const _0x2f4c81=_0x109a76['locale'],_0x593674=_0x109a76['plugins']['get']('TrackChangesEditing');_0x593674['descriptionFactory']['registerElementLabel']('paragraph',_0x4a3569=>c(_0x2f4c81,'ELEMENT_PARAGRAPH',_0x4a3569)),_0x593674['enableDefaultAttributesIntegration']('paragraph'),_0x593674['enableCommand']('insertParagraph'),_0x109a76['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x109a76),{'priority':'highest'}),_0x109a76['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43dc34,_0x117391,_0x1dfd76)=>{_0x1dfd76['options']['showSuggestionHighlights']&&nr(_0x109a76,{'showActiveMarker':!0x1})(_0x43dc34,_0x117391,_0x1dfd76);},{'priority':'highest'});const _0x47422d=_0x593674['descriptionFactory'];_0x47422d['registerDescriptionCallback'](_0x4d5265=>{if('insertion'!==_0x4d5265['type'])return;const {start:_0x4b2703,end:_0x3d0bcb}=_0x4d5265['getFirstRange']();if(!_0x4b2703['isTouching'](_0x3d0bcb)||!_0x4b2703['nodeAfter'])return;const _0x2a2fca=_0x109a76['model']['schema'],_0x56e86f=_0x4b2703['nodeAfter'];return _0x2a2fca['isBlock'](_0x56e86f)&&!_0x2a2fca['isLimit'](_0x56e86f)&&_0x2a2fca['checkChild'](_0x56e86f,'$text')?{'type':'insertion','content':c(_0x2f4c81,'*Insert:*\x20%0',_0x47422d['getItemLabel'](_0x56e86f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51062f=this['editor'],_0x4b11d2=_0x51062f['locale'];_0x51062f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22bb0f=>{if('formatBlock'!=_0x22bb0f['type'])return;const {data:_0x272e53}=_0x22bb0f;return _0x272e53&&'paragraph'==_0x272e53['commandName']?{'type':'format','content':c(_0x4b11d2,'*Change\x20to:*\x20%0',c(_0x4b11d2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x556c3e,{showActiveMarker:_0x53a9d8=!0x0}={}){return(_0x11b769,_0x1c3cb6,_0x19478d)=>{const _0x3359b1=_0x556c3e['plugins']['get']('TrackChangesEditing'),_0x20cc7f=_0x1c3cb6['markerRange']['start'],_0x3ac2ab=_0x1c3cb6['markerRange']['end'],_0x59a042=_0x556c3e['model']['schema'];if(!_0x20cc7f['isTouching'](_0x3ac2ab)||!_0x20cc7f['nodeAfter'])return;const _0x44c543=_0x20cc7f['nodeAfter'];if(_0x59a042['isBlock'](_0x44c543)&&!_0x59a042['isLimit'](_0x44c543)&&_0x59a042['checkChild'](_0x44c543,'$text')){if(!_0x19478d['consumable']['consume'](_0x1c3cb6['markerRange'],_0x11b769['name']))return;const {authorId:_0x218050}=_0x3359b1['_splitMarkerName'](_0x1c3cb6['markerName']),_0x4384c0=_0x19478d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x218050}),_0xcb637d=_0x19478d['mapper']['toViewPosition'](_0x3ac2ab);_0x53a9d8&&_0x3359b1['activeMarkers']['includes'](_0x1c3cb6['markerName'])&&_0x19478d['writer']['addClass']('ck-suggestion-marker--active',_0x4384c0),_0x19478d['writer']['insert'](_0xcb637d,_0x4384c0),_0x19478d['mapper']['bindElementToMarker'](_0x4384c0,_0x1c3cb6['markerName']);}};}class jt extends _0x550ef0{['afterInit'](){const _0x1da2e4=this['editor'];_0x1da2e4['commands']['get']('replaceSource')&&_0x1da2e4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x550ef0{['afterInit'](){const _0x45c9cc=this['editor'];if(!_0x45c9cc['plugins']['has']('RemoveFormatEditing'))return;_0x45c9cc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb5aa88=this['editor'];_0xb5aa88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e25ad=>{if('formatBlock'!=_0x5e25ad['type']&&'formatInline'!=_0x5e25ad['type'])return;const {data:_0x1b07e0}=_0x5e25ad;return _0x1b07e0&&'removeFormat'==_0x1b07e0['commandName']?{'type':'format','content':c(_0xb5aa88['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x550ef0{['afterInit'](){const _0x51e304=this['editor'];if(!_0x51e304['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4b9a0e=_0x51e304['plugins']['get']('TrackChangesEditing');_0x4b9a0e['enableCommand']('goToPreviousRestrictedEditingException'),_0x4b9a0e['enableCommand']('goToNextRestrictedEditingException');const _0x3c8506=_0x51e304['plugins']['get']('RestrictedEditingModeEditing');_0x3c8506['enableCommand']('trackChanges'),_0x3c8506['enableCommand']('acceptSuggestion'),_0x3c8506['enableCommand']('discardSuggestion'),_0x3c8506['enableCommand']('acceptAllSuggestions'),_0x3c8506['enableCommand']('discardAllSuggestions'),_0x3c8506['enableCommand']('acceptSelectedSuggestions'),_0x3c8506['enableCommand']('discardSelectedSuggestions');}}class It extends _0x550ef0{['afterInit'](){const _0x591c86=this['editor'];if(!_0x591c86['plugins']['has']('ShiftEnter'))return;const _0x3ff244=_0x591c86['plugins']['get']('TrackChangesEditing');_0x3ff244['enableCommand']('shiftEnter'),_0x591c86['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x591c86),{'priority':'high'}),_0x591c86['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x591c86),{'priority':'high'}),_0x591c86['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b9ef9,_0x2b231c,_0x26b9fc)=>{_0x26b9fc['options']['showSuggestionHighlights']&&je(_0x591c86,{'showActiveMarker':!0x1})(_0x5b9ef9,_0x2b231c,_0x26b9fc);}),_0x3ff244['descriptionFactory']['registerElementLabel']('softBreak',_0x19ffcd=>c(_0x591c86['locale'],'ELEMENT_LINE_BREAK',_0x19ffcd));}}function je(_0x1dfdbd,{showActiveMarker:_0x23a0c7=!0x0}={}){return(_0x1927b8,_0x387389,_0x47871a)=>{const _0x9da4e9=_0x1dfdbd['plugins']['get']('TrackChangesEditing');if(!_0x47871a['consumable']['test'](_0x387389['markerRange'],_0x1927b8['name']))return;const _0x4b68cf=_0x1dfdbd['model'];for(const _0xf07186 of _0x387389['markerRange']['getItems']()){if(!_0xf07186['is']('element','softBreak'))continue;const _0xcd1723='deletion'==_0x387389['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3cd005}=_0x9da4e9['_splitMarkerName'](_0x387389['markerName']),_0x482c5f=_0x47871a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcd1723,'data-author-id':_0x3cd005}),_0x1a6ebc=_0x47871a['mapper']['toViewPosition'](_0x4b68cf['createPositionBefore'](_0xf07186));_0x23a0c7&&_0x9da4e9['activeMarkers']['includes'](_0x387389['markerName'])&&_0x47871a['writer']['addClass']('ck-suggestion-marker--active',_0x482c5f),_0x47871a['writer']['insert'](_0x1a6ebc,_0x482c5f),_0x47871a['mapper']['bindElementToMarker'](_0x482c5f,_0x387389['markerName']);}};}class _t extends _0x550ef0{['afterInit'](){const _0x2d4484=this['editor'],_0x54f031=_0x2d4484['model'],_0x3314bd=_0x2d4484['locale'];if(!_0x2d4484['plugins']['has']('StandardEditingModeEditing'))return;const _0x1ae040=_0x2d4484['plugins']['get']('TrackChangesEditing'),_0x3b7834='restrictedEditingException',_0x5425dd=_0x2d4484['commands']['get'](_0x3b7834);_0x1ae040['enableCommand'](_0x3b7834,(_0x6c2eeb,_0x1edb29={})=>{const _0x4060b4=_0x54f031['document']['selection'];if(_0x4060b4['isCollapsed'])return void _0x6c2eeb(_0x1edb29);const _0x51bba6=void 0x0!==_0x1edb29['forceValue']?_0x1edb29['forceValue']:!_0x5425dd['value'];_0x54f031['change'](()=>{const _0x21fd97=Array['from'](_0x4060b4['getRanges']());for(const _0x3763ab of _0x21fd97){const _0x1233c8=_0x51bba6?[_0x3763ab]:io(_0x3b7834,_0x3763ab,_0x54f031);for(const _0x223146 of _0x1233c8)_0x1ae040['markInlineFormat'](_0x223146,{'commandName':_0x3b7834,'commandParams':[{'forceValue':_0x51bba6}]});}});}),_0x1ae040['descriptionFactory']['registerDescriptionCallback'](_0x66dcaa=>{if('formatBlock'!=_0x66dcaa['type']&&'formatInline'!=_0x66dcaa['type'])return;const {data:_0x51e3d9}=_0x66dcaa;return _0x51e3d9&&_0x51e3d9['commandName']==_0x3b7834?_0x51e3d9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3314bd,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3314bd,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x550ef0{['afterInit'](){const _0x490de4=this['editor'];if(!_0x490de4['plugins']['has']('Style')||!_0x490de4['plugins']['has']('DataSchema'))return;const _0x3a5c39=_0x490de4['plugins']['get']('TrackChangesEditing'),_0x51d136=_0x490de4['locale'],_0x807f8f=_0x490de4['config']['get']('style')||{},_0x51a84b=_0x490de4['plugins']['get']('GeneralHtmlSupport'),_0x41b5f4=_0x490de4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x490de4['plugins']['get']('DataSchema'),_0x807f8f['definitions']);_0x3a5c39['enableDefaultAttributesIntegration']('style');const _0xd3bef1=new Set();for(const _0x5eaf2d of _0x41b5f4['block']){const _0x13c34f=_0x51a84b['getGhsAttributeNameForElement'](_0x5eaf2d['element']);_0xd3bef1['add'](_0x13c34f);}const _0x53ae94=new Set();for(const _0x496dc6 of _0x41b5f4['inline']){const _0x2eec03=_0x51a84b['getGhsAttributeNameForElement'](_0x496dc6['element']);_0x53ae94['add'](_0x2eec03);for(const _0x2bebef of _0x496dc6['ghsAttributes'])_0x53ae94['add'](_0x2bebef);}for(const _0x1f514f of _0xd3bef1)_0x3a5c39['registerBlockAttribute'](_0x1f514f),_0x3a5c39['descriptionFactory']['registerAttributeLabel'](_0x1f514f,c(_0x51d136,'FORMAT_STYLE'));for(const _0x21a009 of _0x53ae94)_0x3a5c39['registerInlineAttribute'](_0x21a009),_0x3a5c39['descriptionFactory']['registerAttributeLabel'](_0x21a009,c(_0x51d136,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c28a8=this['editor'],_0xcb1827=_0x1c28a8['locale'];_0x1c28a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d9d31=>{if('formatBlock'!=_0x2d9d31['type']&&'formatInline'!=_0x2d9d31['type'])return;const {data:_0x3f1148}=_0x2d9d31;return _0x3f1148&&'style'===_0x3f1148['commandName']?_0x3f1148['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xcb1827,'*Set\x20format:*\x20%0',_0x3f1148['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0xcb1827,'*Remove\x20format:*\x20%0',_0x3f1148['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x550ef0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x318aa2){super(_0x318aa2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3127a0=this['editor'],_0xab4fba=_0x3127a0['model']['document']['selection'];if(!_0x3127a0['plugins']['has']('TableEditing'))return;const _0xfcf3a8=_0x3127a0['locale'],_0x4db70f=_0x3127a0['plugins']['get']('TrackChangesEditing'),_0x38eb94=_0x3127a0['plugins']['get']('TableUtils');_0x4db70f['descriptionFactory']['registerElementLabel']('table',_0x20b843=>c(_0xfcf3a8,'ELEMENT_TABLE',_0x20b843)),this['_setupColumnsRowsFixing'](),_0x4db70f['enableCommand']('insertTable'),_0x4db70f['enableCommand']('selectTableRow'),_0x4db70f['enableCommand']('selectTableColumn');for(const _0x59044f of['insertTableRowAbove','insertTableRowBelow']){const _0x453f3e=_0x3127a0['commands']['get'](_0x59044f);_0x4db70f['enableCommand'](_0x59044f,_0x52a9df=>{_0x3127a0['model']['change'](_0x490fa7=>{_0x52a9df();const _0x132176='above'===_0x453f3e['order'],_0x508ba6=_0x38eb94['getSelectionAffectedTableCells'](_0xab4fba),_0x27f4c3=_0x38eb94['getRowIndexes'](_0x508ba6),_0x5a7eb5=_0x132176?_0x27f4c3['first']-0x1:_0x27f4c3['last']+0x1,_0x249b9a=_0x508ba6[0x0]['findAncestor']('table'),_0x25767f=_0x38eb94['createTableWalker'](_0x249b9a,{'startRow':_0x5a7eb5,'endRow':_0x5a7eb5}),_0x457e1c=Array['from'](_0x25767f)['map'](_0xfa861d=>_0x490fa7['createRangeOn'](_0xfa861d['cell']));_0x4db70f['markMultiRangeInsertion'](_0x457e1c,'tableRow');});});}for(const _0x5cfc18 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2a8096=_0x3127a0['commands']['get'](_0x5cfc18);_0x4db70f['enableCommand'](_0x5cfc18,_0x58a2ef=>{_0x3127a0['model']['change'](_0x510436=>{_0x58a2ef();const _0x4fbc3c='left'===_0x2a8096['order'],_0x3e4498=_0x38eb94['getSelectionAffectedTableCells'](_0xab4fba),_0x106506=_0x38eb94['getColumnIndexes'](_0x3e4498),_0x558e06=_0x4fbc3c?_0x106506['first']-0x1:_0x106506['last']+0x1,_0x2bfd47=_0x3e4498[0x0]['findAncestor']('table'),_0x4d7d30=_0x38eb94['createTableWalker'](_0x2bfd47,{'startRow':0x0,'column':_0x558e06,'includeAllSlots':!0x1}),_0x1663e0=Array['from'](_0x4d7d30)['map'](_0x4d2e0e=>_0x510436['createRangeOn'](_0x4d2e0e['cell']));_0x4db70f['markMultiRangeInsertion'](_0x1663e0,'tableColumn');});});}for(const _0x11687e of['removeTableRow','removeTableColumn']){const _0x246226=_0x11687e['substr'](0xb),_0x200dbe=_0x246226['toLowerCase'](),_0x381f3a=_0x200dbe['substr'](0x0,0x3)+'span',_0x36aa57='table'+_0x246226,_0x43639e='min'+_0x246226,_0x20ebed='max'+_0x246226;_0x4db70f['enableCommand'](_0x11687e,()=>{_0x3127a0['model']['change'](_0x24c8f5=>{const _0x12d1b4=_0x38eb94['getSelectionAffectedTableCells'](_0xab4fba),_0xb1a7b1=_0x12d1b4[0x0]['findAncestor']('table');let _0x23711c;if('removeTableRow'==_0x11687e){const _0x141fe2=_0x38eb94['getRowIndexes'](_0x12d1b4);_0x23711c={'startRow':_0x141fe2['first'],'endRow':_0x141fe2['last'],'includeAllSlots':!0x0};}else{const _0x5abb88=_0x38eb94['getColumnIndexes'](_0x12d1b4);_0x23711c={'startColumn':_0x5abb88['first'],'endColumn':_0x5abb88['last'],'includeAllSlots':!0x0};}const _0xed1220=_0x38eb94['createTableWalker'](_0xb1a7b1,_0x23711c),_0x3a2873=Array['from'](_0xed1220)['map'](({cell:_0x3cee10})=>_0x3cee10),_0x319ea7=Ne(_0x3a2873['filter'](_0x151688=>_0x151688['hasAttribute'](_0x381f3a))),_0x30ccff=Ne(_0x3a2873['filter'](_0xa9f944=>!_0xa9f944['hasAttribute'](_0x381f3a)))['map'](_0x260ff7=>_0x24c8f5['createRangeOn'](_0x260ff7)),_0x205673=_0x4db70f['markMultiRangeDeletion'](_0x30ccff,_0x36aa57);if(_0x205673&&('tableRow'==_0x205673['subType']||'tableColumn'==_0x205673['subType'])){const _0x246e6c=this['_getSuggestionCoords'](_0x205673);for(const _0x1d9a6a of _0x319ea7){const _0x595279=_0x24c8f5['createRangeOn'](_0x1d9a6a),_0xe4250b=_0x38eb94['getCellLocation'](_0x1d9a6a),_0xe7fa67=_0x1d9a6a['getAttribute'](_0x381f3a)-0x1,_0x229a34=_0x246e6c[_0x43639e],_0x5ce5a8=_0x246e6c[_0x20ebed];_0x229a34<=_0xe4250b[_0x200dbe]&&_0xe4250b[_0x200dbe]+_0xe7fa67<=_0x5ce5a8&&_0x205673['addRange'](_0x595279);}}});});}function _0x478d12(_0x558f58){const _0x412166=Array['from'](_0xab4fba['getRanges']())['map'](_0x5845dc=>_0x14a494['fromRange'](_0x5845dc));_0x3127a0['model']['change'](_0x4289a1=>{const _0x3b61f7=_0x4289a1['batch'];_0x558f58=_0x558f58['filter'](_0x1a5402=>'$graveyard'!=_0x1a5402['root']['rootName']),_0x4289a1['setSelection'](_0x558f58),_0x3127a0['commands']['get']('removeTableRow')['refresh'](),_0x3127a0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3127a0['model']['enqueueChange'](()=>{_0x3127a0['model']['enqueueChange'](_0x3b61f7,_0x2d3b74=>{const _0x8b0035=_0x412166['filter'](_0x2a95bf=>'$graveyard'!=_0x2a95bf['root']['rootName']);_0x8b0035['length']>0x0&&_0x2d3b74['setSelection'](_0x8b0035);for(const _0x11ca9d of _0x412166)_0x11ca9d['detach']();});});});}function _0x763adf(_0xef9c5f){_0x3127a0['model']['change'](_0x137995=>{const _0x290fc4=Array['from'](_0xab4fba['getRanges']())['map'](_0x3ce791=>_0x14a494['fromRange'](_0x3ce791)),_0x491eec=[];for(const _0x1995f9 of _0xef9c5f)for(const _0x383573 of _0x1995f9['getItems']({'shallow':!0x0}))_0x491eec['push'](_0x383573);for(const _0x5a72fe of _0x491eec)'$graveyard'!=_0x5a72fe['root']['rootName']&&(_0x137995['setSelection'](_0x137995['createPositionAt'](_0x5a72fe,0x0)),_0x3127a0['commands']['get']('removeTableColumn')['refresh'](),_0x3127a0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x267e8a=_0x290fc4['filter'](_0x3581a0=>'$graveyard'!=_0x3581a0['root']['rootName']);_0x267e8a['length']>0x0&&_0x137995['setSelection'](_0x267e8a);for(const _0x285a68 of _0x290fc4)_0x285a68['detach']();});}function _0x58d0fb(_0x516ec9,_0x1767e8){return _0x1767e8['every'](_0x252c43=>_0x516ec9['some'](_0x11c137=>_0x11c137['end']['isEqual'](_0x252c43['start'])||_0x252c43['end']['isEqual'](_0x11c137['start'])));}function _0x146835(_0x5463b0,_0xf029b5){return!_0x5463b0['some'](_0x3ef19b=>_0xf029b5['some'](_0x2ec508=>_0x3ef19b['isIntersecting'](_0x2ec508)))&&_0x5463b0['some'](_0x575461=>_0xf029b5['some'](_0x2d8e2c=>_0x575461['end']['isTouching'](_0x2d8e2c['start'])));}_0x3127a0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x44ead8,_0x58f97c,_0x13ade8)=>{if(!_0x13ade8['options']['showSuggestionHighlights'])return;const _0x3bd1b2=_0x58f97c['item'];if(!_0x3bd1b2)return;const _0x39c95e=_0x13ade8['mapper']['toViewElement'](_0x3bd1b2);function _0xe26cf7(_0x4cef06){return Array['isArray'](_0x4cef06)?_0x4cef06:[_0x4cef06];}_0x39c95e&&'tableCell'===_0x3bd1b2['name']&&_0xefd93e(_0x39c95e,_0x13ade8['writer'],(_0x28903f,_0x27fbfe,_0x5b20fa)=>_0x5b20fa['addClass'](_0xe26cf7(_0x27fbfe['classes']),_0x28903f),(_0x539257,_0x329335,_0x5bf1c1)=>_0x5bf1c1['removeClass'](_0xe26cf7(_0x329335['classes']),_0x539257));},{'priority':'highest'}),_0x4db70f['descriptionFactory']['registerDescriptionCallback'](_0x2d170b=>{if('insertion'!=_0x2d170b['type']&&'deletion'!=_0x2d170b['type'])return;const _0xb01c26=_0x2d170b['getContainedElement']();if(null!=_0xb01c26&&_0xb01c26['is']('element','table')){if('insertion'==_0x2d170b['type']){const _0xf2017=_0x2d170b['getItems']()['filter'](_0x30cfbd=>_0x30cfbd['is']('$textProxy'))['map'](_0x195f0d=>_0x195f0d['data']);if(_0xf2017['length'])return{'type':'insertion','content':c(_0xfcf3a8,'*Insert:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf2017['join']('\x20')+'\x22'))};}if('deletion'==_0x2d170b['type']){const _0x5d4c8b=_0x2d170b['getItems']()['filter'](_0x585ed4=>_0x585ed4['is']('$textProxy'))['map'](_0x103e8b=>_0x103e8b['data']);if(_0x5d4c8b['length'])return{'type':'deletion','content':c(_0xfcf3a8,'*Remove:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5d4c8b['join']('\x20')+'\x22'))};}}}),_0x4db70f['descriptionFactory']['registerDescriptionCallback'](_0x3509bc=>{if('tableRow'==_0x3509bc['subType']){const _0x48a463=_0x3509bc['getItems']()['filter'](_0x2ed8de=>_0x2ed8de['is']('$textProxy'))['map'](_0x2e88bb=>_0x2e88bb['data']),_0x529bee=this['_getSuggestionCoords'](_0x3509bc),_0xb8a410=_0x529bee['maxRow']-_0x529bee['minRow']+0x1;if('insertion'==_0x3509bc['type'])return _0x48a463['length']?{'type':'insertion','content':c(_0xfcf3a8,'*Insert:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb8a410,'\x22'+_0x48a463['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xfcf3a8,'*Insert:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_ROW',_0xb8a410))};if('deletion'==_0x3509bc['type'])return _0x48a463['length']?{'type':'deletion','content':c(_0xfcf3a8,'*Remove:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb8a410,'\x22'+_0x48a463['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xfcf3a8,'*Remove:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_ROW',_0xb8a410))};}if('tableColumn'==_0x3509bc['subType']){const _0x38255b=_0x3509bc['getItems']()['filter'](_0xf25aaf=>_0xf25aaf['is']('$textProxy'))['map'](_0x365f02=>_0x365f02['data']),_0x2f7ae7=this['_getSuggestionCoords'](_0x3509bc),_0x5f3c33=_0x2f7ae7['maxColumn']-_0x2f7ae7['minColumn']+0x1;if('insertion'==_0x3509bc['type'])return _0x38255b['length']?{'type':'insertion','content':c(_0xfcf3a8,'*Insert:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f3c33,'\x22'+_0x38255b['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xfcf3a8,'*Insert:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_COLUMN',_0x5f3c33))};if('deletion'==_0x3509bc['type'])return _0x38255b['length']?{'type':'deletion','content':c(_0xfcf3a8,'*Remove:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f3c33,'\x22'+_0x38255b['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xfcf3a8,'*Remove:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_COLUMN',_0x5f3c33))};}}),_0x4db70f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x478d12),_0x4db70f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x478d12),_0x4db70f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x763adf),_0x4db70f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x763adf),_0x4db70f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58d0fb),_0x4db70f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58d0fb),_0x4db70f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x146835),_0x4db70f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x146835);}['_acceptFormatSuggestionCallbackFactory'](){const _0x525076=this['editor'],_0x19a742=_0x525076['model']['document']['selection'];return(_0xcb3f6,_0x2e0ef3)=>{_0x525076['model']['change'](_0x4d4e54=>{const {commandName:_0x2c29d2,commandParams:_0x40d9df}=_0x2e0ef3;let _0x588d8a=_0xcb3f6[0x0]['end']['nodeBefore'];_0x40d9df&&_0x40d9df[0x0]&&!0x1===_0x40d9df[0x0]['forceValue']&&(_0x588d8a=_0xcb3f6[0x0]['start']['nodeAfter']);const _0x2527a8=_0x4d4e54['createRangeIn'](_0x588d8a);if('$graveyard'==_0x2527a8['root']['rootName'])return;const _0x4b340f=Array['from'](_0x19a742['getRanges']())['map'](_0x3bf5d2=>_0x14a494['fromRange'](_0x3bf5d2));_0x4d4e54['setSelection'](_0x2527a8),_0x525076['commands']['get'](_0x2c29d2)['refresh'](),_0x40d9df['push']({'forceDefaultExecution':!0x0}),_0x525076['execute'](_0x2c29d2,..._0x40d9df);const _0xd6af9c=_0x4b340f['filter'](_0x2faf42=>'$graveyard'!=_0x2faf42['root']['rootName']);_0xd6af9c['length']>0x0&&_0x4d4e54['setSelection'](_0xd6af9c);for(const _0x2cd5bf of _0x4b340f)_0x2cd5bf['detach']();});};}['_getCoordsForCells'](_0x50607a){const _0x37013c=this['editor']['plugins']['get']('TableUtils');let _0x2efbb8=Number['MAX_SAFE_INTEGER'],_0x3c68c8=Number['MIN_SAFE_INTEGER'],_0x24e13f=Number['MAX_SAFE_INTEGER'],_0x47ba45=Number['MIN_SAFE_INTEGER'];for(const _0x2f961f of _0x50607a){if('$graveyard'==_0x2f961f['root']['rootName'])continue;const {row:_0x757d4,column:_0x64d0cf}=_0x37013c['getCellLocation'](_0x2f961f),_0xa8a634=_0x2f961f['hasAttribute']('rowspan')?_0x2f961f['getAttribute']('rowspan')-0x1:0x0,_0x4f7224=_0x2f961f['hasAttribute']('colspan')?_0x2f961f['getAttribute']('colspan')-0x1:0x0;_0x2efbb8=_0x757d4<_0x2efbb8?_0x757d4:_0x2efbb8,_0x3c68c8=_0x757d4+_0xa8a634>_0x3c68c8?_0x757d4+_0xa8a634:_0x3c68c8,_0x24e13f=_0x64d0cf<_0x24e13f?_0x64d0cf:_0x24e13f,_0x47ba45=_0x64d0cf+_0x4f7224>_0x47ba45?_0x64d0cf+_0x4f7224:_0x47ba45;}return{'minRow':_0x2efbb8,'maxRow':_0x3c68c8,'minColumn':_0x24e13f,'maxColumn':_0x47ba45};}['_setupColumnsRowsFixing'](){const _0x59d065=this['editor'],_0x1c52dc=_0x59d065['plugins']['get']('TrackChangesEditing'),_0x4a4da8=_0x59d065['plugins']['get']('TableUtils');_0x59d065['model']['document']['on']('change:data',()=>{const _0x50ab6e=Array['from'](_0x59d065['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1824f6,data:_0x3bfd5c}of _0x50ab6e){const {group:_0x4ddc89,id:_0x44f9bf,subType:_0x1ebd87}=_0x1c52dc['_splitMarkerName'](_0x1824f6);if('suggestion'!=_0x4ddc89)continue;if(null!=_0x3bfd5c['oldRange'])continue;const _0x1a86c8=_0x1c52dc['getSuggestion'](_0x44f9bf);this['_tablePostFixingSubtypes']['includes'](_0x1ebd87)&&this['_tableSuggestions']['add'](_0x1a86c8);}},{'priority':'low'});const _0x15851b=(_0x50ed78,_0x29e8ee)=>{let _0x136cfb=!0x1;const _0x33f6f5=_0x29e8ee['createRangeOn'](_0x50ed78),_0x3802b4=_0x50ed78['findAncestor']('table'),_0x1018e4=_0x4a4da8['getCellLocation'](_0x50ed78);for(const _0x42701d of this['_tableSuggestions']){const _0x47cbac=_0x42701d['subType'],_0x5a7d9c=_0x47cbac['startsWith']('tablePaste'),_0x3ad406=_0x47cbac['substr'](_0x5a7d9c?0xa:0x5),_0x18b59b=_0x3ad406['toLowerCase'](),_0x8e3f59=_0x18b59b['substr'](0x0,0x3)+'span',_0xc5c679='min'+_0x3ad406,_0x20b0e6='max'+_0x3ad406;if(!_0x42701d['isInContent'])continue;if(_0x3802b4!=_0x42701d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x42701d['isIntersectingWithRange'](_0x33f6f5))continue;const _0x303f15=_0x50ed78['hasAttribute'](_0x8e3f59)?_0x50ed78['getAttribute'](_0x8e3f59)-0x1:0x0,_0x436e4c=this['_getSuggestionCoords'](_0x42701d),_0xab574=_0x436e4c[_0xc5c679],_0x32d190=_0x436e4c[_0x20b0e6];_0xab574<=_0x1018e4[_0x18b59b]&&_0x1018e4[_0x18b59b]+_0x303f15<=_0x32d190&&(_0x42701d['addRange'](_0x33f6f5),_0x136cfb=!0x0);}return _0x136cfb;};_0x59d065['model']['document']['registerPostFixer'](_0x4697cb=>{let _0x40a8df=!0x1;for(const _0x2329ed of _0x59d065['model']['document']['differ']['getChanges']())if('insert'==_0x2329ed['type']){if('tableRow'==_0x2329ed['name']){for(const _0x1cf875 of _0x2329ed['position']['nodeAfter']['getChildren']())_0x40a8df=_0x40a8df||_0x15851b(_0x1cf875,_0x4697cb);}else'tableCell'==_0x2329ed['name']&&(_0x40a8df=_0x40a8df||_0x15851b(_0x2329ed['position']['nodeAfter'],_0x4697cb));}return _0x40a8df;});}['_getSuggestionCoords'](_0x15e196){return this['_getCoordsForCells'](_0x15e196['getRanges']()['map'](_0x3c94df=>_0x3c94df['start']['nodeAfter']));}}function Ne(_0x29ae7){return Array['from'](new Set(_0x29ae7)['values']());}class Nt extends _0x550ef0{static get['requires'](){return[Ct];}['afterInit'](){const _0x2fb0e1=this['editor'],_0x50f6e0=_0x2fb0e1['model']['document']['selection'],_0x11f03c=_0x2fb0e1['locale'];if(!_0x2fb0e1['plugins']['has']('TableEditing'))return;const _0x31935d=_0x2fb0e1['plugins']['get']('TrackChangesEditing'),_0x5cd93e=_0x2fb0e1['plugins']['get']('TableUtils'),_0x46a994=_0x2fb0e1['plugins']['get'](Ct);_0x46a994['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x31935d['enableCommand']('mergeTableCells',()=>{const _0x1d6f4d=_0x5cd93e['getSelectionAffectedTableCells'](_0x2fb0e1['model']['document']['selection']);_0x2fb0e1['model']['change'](()=>{_0x31935d['markMultiRangeBlockFormat'](_0x1d6f4d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2fb0e1['commands']['get']('mergeTableCells')['on']('execute',(_0x56f6df,_0x569b28)=>{_0x2fb0e1['commands']['get']('trackChanges')['value']&&(_0x569b28['length']>0x0&&_0x569b28[_0x569b28['length']-0x1]&&_0x569b28[_0x569b28['length']-0x1]['forceDefaultExecution']||_0x31935d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x56f6df['stop']());},{'priority':'highest'});for(const _0x17af83 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2fe6c2=_0x2fb0e1['commands']['get'](_0x17af83);_0x31935d['enableCommand'](_0x17af83,()=>{const _0x154696=_0x2fb0e1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45231b=>_0x45231b['is']('element','tableCell')),_0x2ce6fa=_0x2fe6c2['value'];_0x2fb0e1['model']['change'](()=>{_0x31935d['markMultiRangeBlockFormat']([_0x154696,_0x2ce6fa],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3ee45e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x746aba=_0x2fb0e1['commands']['get'](_0x3ee45e);_0x31935d['enableCommand'](_0x3ee45e,()=>{const _0x2607e3=_0x5cd93e['getSelectionAffectedTableCells'](_0x2fb0e1['model']['document']['selection'])[0x0],_0x368a6a=_0x2607e3['findAncestor']('table'),{column:_0x37acfc,row:_0x173f1d}=_0x5cd93e['getCellLocation'](_0x2607e3);let _0x4a4486=[];if('horizontally'==_0x746aba['direction']){const _0x489b2b=_0x5cd93e['createTableWalker'](_0x368a6a,{'startRow':_0x173f1d,'endRow':_0x173f1d,'includeAllSlots':!0x0});_0x4a4486=Array['from'](_0x489b2b)['map'](_0x24bcc1=>_0x24bcc1['cell']);}else{const _0x4d07ab=_0x5cd93e['createTableWalker'](_0x368a6a,{'column':_0x37acfc,'includeAllSlots':!0x0});_0x4a4486=Array['from'](_0x4d07ab)['map'](_0x5795f9=>_0x5795f9['cell']);}_0x2fb0e1['model']['change'](_0x15724f=>{_0x31935d['markBlockFormat'](_0x15724f['createRangeOn'](_0x2607e3),{'commandName':_0x3ee45e,'commandParams':[]},_0x4a4486,_0x3ee45e);});});}_0x31935d['descriptionFactory']['registerDescriptionCallback'](_0x217736=>{if('formatBlock'!=_0x217736['type']&&'formatInline'!=_0x217736['type'])return;const {data:_0x3b6d8}=_0x217736;return _0x3b6d8&&'mergeTableCells'==_0x3b6d8['commandName']?{'type':'format','content':c(_0x11f03c,'*Merge\x20cells*')}:void 0x0;}),_0x31935d['descriptionFactory']['registerDescriptionCallback'](_0x5dea3d=>{if('formatBlock'!=_0x5dea3d['type']&&'formatInline'!=_0x5dea3d['type'])return;const {data:_0x528e51}=_0x5dea3d;return _0x528e51?'splitTableCellVertically'==_0x528e51['commandName']?{'type':'format','content':c(_0x11f03c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x528e51['commandName']?{'type':'format','content':c(_0x11f03c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3340a1=_0x46a994['_acceptFormatSuggestionCallbackFactory']();for(const _0x579f35 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x31935d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x579f35,'accept',_0x3340a1);for(const _0x34e4ee of['splitTableCellVertically','splitTableCellHorizontally'])_0x31935d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34e4ee,'accept',_0x3340a1);_0x31935d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1f1686=>{_0x2fb0e1['model']['change'](_0x2bd324=>{const _0x517c7d=Array['from'](_0x50f6e0['getRanges']())['map'](_0x5dbc7a=>_0x14a494['fromRange'](_0x5dbc7a));_0x2bd324['setSelection'](_0x1f1686),_0x2fb0e1['commands']['get']('mergeTableCells')['refresh'](),_0x2fb0e1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3dfa7c=_0x517c7d['filter'](_0x2f8d4d=>'$graveyard'!=_0x2f8d4d['root']['rootName']);_0x3dfa7c['length']>0x0&&_0x2bd324['setSelection'](_0x3dfa7c);for(const _0x53111a of _0x517c7d)_0x53111a['detach']();});});for(const _0x226548 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x425ad7=_0x2fb0e1['commands']['get'](_0x226548);_0x425ad7['on']('set:isEnabled',(_0x396736,_0x5d6d3e,_0x9c79ab)=>{if(_0x9c79ab){const _0x2e1b14=_0x2fb0e1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x534708=>_0x534708['is']('element','tableCell'));this['_areMergableCells'](_0x425ad7['value'],_0x2e1b14)||(_0x396736['return']=!0x1,_0x396736['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4fa788=this['editor']['commands']['get']('mergeTableCells'),_0x2a8faa=this['editor']['plugins']['get']('TableUtils');if(!_0x4fa788['isEnabled'])return!0x1;const _0x252b30=_0x2a8faa['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5ec075 of _0x252b30)for(const _0x4d7279 of _0x252b30)if(_0x5ec075!=_0x4d7279&&!this['_areMergableCells'](_0x5ec075,_0x4d7279))return!0x1;return!0x0;}['_areMergableCells'](_0x36f957,_0x461ec0){const _0x4f4424=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22f103=this['editor']['model']['createRangeOn'](_0x36f957),_0x43a02f=this['editor']['model']['createRangeOn'](_0x461ec0),_0x2ff0d9=new Set(),_0x343e77=new Set();for(const _0xca3c36 of _0x4f4424['getSuggestions']())if(('insertion'==_0xca3c36['type']||'deletion'==_0xca3c36['type']||'mergeTableCells'==_0xca3c36['subType'])&&_0xca3c36['isInContent']){for(const _0x3884e2 of _0xca3c36['getRanges']())_0x3884e2['containsRange'](_0x22f103,!0x0)&&_0x2ff0d9['add'](_0xca3c36['type']+':'+_0xca3c36['author']['id']),_0x3884e2['containsRange'](_0x43a02f,!0x0)&&_0x343e77['add'](_0xca3c36['type']+':'+_0xca3c36['author']['id']);}if(_0x2ff0d9['size']!=_0x343e77['size'])return!0x1;for(const _0xaf2f74 of _0x2ff0d9)if(!_0x343e77['has'](_0xaf2f74))return!0x1;return!0x0;}}class Dt extends _0x550ef0{static get['requires'](){return[Ct];}['afterInit'](){const _0x4cb5a8=this['editor'];if(!_0x4cb5a8['plugins']['has']('TableEditing'))return;const _0x58e3cb=_0x4cb5a8['locale'],_0x175d3d=_0x4cb5a8['plugins']['get']('TrackChangesEditing');_0x175d3d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x175d3d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x175d3d['registerBlockAttribute']('headingRows'),_0x175d3d['registerBlockAttribute']('headingColumns'),_0x175d3d['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x58e3cb,'FORMAT_HEADER_ROW')),_0x175d3d['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x58e3cb,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b4ae6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b29bc=this['editor']['plugins']['get']('TableUtils'),_0x2546ce=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x2a68a1({showActiveMarker:_0x2aa53e=!0x0,setDataAttribute:_0x51a4dd=!0x0}={}){return(_0xa87942,_0x4dfb05,_0x1bb7ac)=>{const {type:_0x9951a4,id:_0x58d2f3}=_0x1b4ae6['_splitMarkerName'](_0x4dfb05['markerName']),_0x1f1632=_0x1b4ae6['getSuggestion'](_0x58d2f3),_0x40bb3a=_0x1f1632['data'];if('formatBlock'!=_0x1f1632['type']||!_0x40bb3a||'setTableColumnHeader'!=_0x40bb3a['commandName'])return;if(_0x4dfb05['item'])return void _0xa87942['stop']();if(!_0x1bb7ac['consumable']['consume'](_0x4dfb05['markerRange'],_0xa87942['name']))return;const _0x57489a=_0x4dfb05['markerRange']['start']['nodeAfter'],_0x4cf9ca=_0x4dfb05['markerRange']['end']['nodeBefore'],_0x4130e1=_0x57489a['parent']['parent'],{column:_0x4e2205}=_0x1b29bc['getCellLocation'](_0x57489a),{column:_0x500680}=_0x1b29bc['getCellLocation'](_0x4cf9ca);for(let _0x20b419=_0x4e2205;_0x20b419<=_0x500680;_0x20b419++){const _0x1c6a9e=_0x1b29bc['createTableWalker'](_0x4130e1,{'column':_0x20b419,'includeAllSlots':!0x1});for(const _0x2e5dc7 of _0x1c6a9e){const _0x46ffd6=_0x2e5dc7['cell'],_0x5ae8f0=_0x1bb7ac['mapper']['toViewElement'](_0x46ffd6);_0x1bb7ac['writer']['addClass']('ck-suggestion-marker-'+_0x9951a4,_0x5ae8f0),_0x51a4dd&&_0x1bb7ac['writer']['setAttribute']('data-suggestion',_0x58d2f3,_0x5ae8f0),_0x1bb7ac['mapper']['bindElementToMarker'](_0x5ae8f0,_0x4dfb05['markerName']),_0x2aa53e&&(_0x1b4ae6['activeMarkers']['includes'](_0x4dfb05['markerName'])?_0x1bb7ac['writer']['addClass']('ck-suggestion-marker--active',_0x5ae8f0):_0x1bb7ac['writer']['removeClass']('ck-suggestion-marker--active',_0x5ae8f0));}}};}_0x1b4ae6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2546ce),_0x1b4ae6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2546ce),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2a68a1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36efb5,_0x27a80c,_0x11eba4)=>{_0x11eba4['options']['showSuggestionHighlights']&&_0x2a68a1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x36efb5,_0x27a80c,_0x11eba4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3b6d84,_0x32c61c,_0x15a8e4)=>{const {type:_0x47588,id:_0x5c9704}=_0x1b4ae6['_splitMarkerName'](_0x32c61c['markerName']),_0x4eab47=_0x1b4ae6['getSuggestion'](_0x5c9704),_0x1f8262=_0x4eab47['data'];if('formatBlock'!=_0x4eab47['type']||!_0x1f8262||'setTableColumnHeader'!=_0x1f8262['commandName'])return;const _0x5547a4=_0x15a8e4['mapper']['markerNameToElements'](_0x32c61c['markerName']);if(_0x5547a4){for(const _0x5bb321 of _0x5547a4)_0x15a8e4['writer']['removeClass']('ck-suggestion-marker-'+_0x47588,_0x5bb321),_0x15a8e4['writer']['removeClass']('ck-suggestion-marker--active',_0x5bb321),_0x15a8e4['writer']['removeAttribute']('data-suggestion',_0x5bb321),_0x15a8e4['mapper']['unbindElementFromMarkerName'](_0x5bb321,_0x32c61c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c5eb3=this['editor'],_0x2d5def=_0x3c5eb3['locale'];function _0xb2306f(_0x5f0d2d){return{'type':'format','content':c(_0x2d5def,'*Format:*\x20%0',_0x5f0d2d)};}_0x3c5eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9a84=>{if('formatBlock'!=_0x5a9a84['type'])return;const {data:_0x4485e0}=_0x5a9a84;if(_0x4485e0){if('setTableRowHeader'==_0x4485e0['commandName']){const _0x726a06=_0x4485e0['commandParams'][0x0]['forceValue'];return _0xb2306f(c(_0x2d5def,_0x726a06?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4485e0['commandName']){const _0x395a3b=_0x4485e0['commandParams'][0x0]['forceValue'];return _0xb2306f(c(_0x2d5def,_0x395a3b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x550ef0{['afterInit'](){const _0x280d43=this['editor'],_0x7e38b1=_0x280d43['locale'],_0x170d32=_0x280d43['plugins']['get']('TrackChangesEditing');function _0x2381ed(_0x5bfe4f){return{'type':'format','content':''+c(_0x7e38b1,'*Set\x20table\x20type:*\x20%0',_0x5bfe4f)};}_0x280d43['plugins']['has']('TableLayout')&&(_0x170d32['enableCommand']('insertTableLayout'),_0x170d32['enableDefaultAttributesIntegration']('tableType'),_0x170d32['registerBlockAttribute']('tableType'),_0x170d32['descriptionFactory']['registerElementLabel'](_0x2b0a1d=>_0x2b0a1d['is']('element','table')&&'layout'===_0x2b0a1d['getAttribute']('tableType'),_0x56558a=>c(_0x7e38b1,'ELEMENT_LAYOUT_TABLE',_0x56558a)),_0x170d32['descriptionFactory']['registerDescriptionCallback'](_0x2a792b=>{const {data:_0x1de7b3}=_0x2a792b;if(_0x1de7b3&&'tableType'==_0x1de7b3['key'])switch(_0x1de7b3['newValue']){case'layout':return _0x2381ed(c(_0x7e38b1,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2381ed(c(_0x7e38b1,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x297255=>[_0x297255,null]));class $t extends _0x550ef0{static get['requires'](){return[Ct];}['afterInit'](){const _0x246b8f=this['editor'];if(!_0x246b8f['plugins']['has']('TableClipboard'))return;const _0x5b879b=_0x246b8f['plugins']['get']('TrackChangesEditing'),_0x1076e6=_0x246b8f['plugins']['get']('TableUtils'),_0x14efad=_0x246b8f['plugins']['get'](Ct),_0x5c786f=_0x246b8f['plugins']['get']('TableClipboard'),_0x4b8e36=_0x246b8f['plugins']['get']('TableSelection'),_0x256e41=_0x246b8f['plugins']['get'](_0x4b61d8);_0x14efad['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x246b8f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x246b8f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f49bf=null,_0x27a5bc=!0x1;_0x256e41['on']('contentInsertion',(_0x18a827,_0x1f7b1e)=>{_0x27a5bc='paste'===_0x1f7b1e['method'];}),_0x246b8f['model']['on']('insertContent',(_0x27f999,_0x139e1f)=>{if(!_0x27a5bc&&null===_0x4b8e36['getSelectedTableCells']())return;const [_0x190338,_0x22677d]=_0x139e1f,_0x44414c=_0x139e1f[_0x139e1f['length']-0x1];_0x44414c&&_0x44414c['forceDefaultExecution']||_0x5b879b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x260e85,_0x2d279d,_0x4295eb,_0x139d95,_0x1349d1){if(_0x2d279d&&!_0x2d279d['is']('documentSelection'))return!0x1;const _0x57093f=_0x1349d1['getTableIfOnlyTableInContent'](_0x260e85,_0x4295eb);if(!_0x57093f||!De(_0x57093f,void 0x0,_0x139d95))return!0x1;const _0x11d79e=_0x139d95['getSelectionAffectedTableCells'](_0x4295eb['document']['selection']);if(!_0x11d79e['length'])return!0x1;const _0x638b31=_0x11d79e[0x0]['findAncestor']('table'),_0x40abad=_0x139d95['getRowIndexes'](_0x11d79e),_0x26efc9=_0x139d95['getColumnIndexes'](_0x11d79e),_0x16aa4a={'startRow':_0x40abad['first'],'endRow':_0x40abad['last'],'startColumn':_0x26efc9['first'],'endColumn':_0x26efc9['last']};return 0x1==_0x11d79e['length']&&(_0x16aa4a['endRow']+=_0x139d95['getRows'](_0x57093f)-0x1,_0x16aa4a['endColumn']+=_0x139d95['getColumns'](_0x57093f)-0x1),De(_0x638b31,_0x16aa4a,_0x139d95);}(_0x190338,_0x22677d,_0x246b8f['model'],_0x1076e6,_0x5c786f)&&(_0x27f999['stop'](),_0x2f49bf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x246b8f['model']['change'](()=>{_0x246b8f['model']['insertContent'](_0x139e1f[0x0],_0x139e1f[0x1],_0x139e1f[0x2],{'forceDefaultExecution':!0x0});const _0x35c010=_0x29542d(),{rowInsertionRanges:_0x3c239d,columnInsertionRanges:_0x588236,insertionRanges:_0x5d1343,deletionRanges:_0x295a03,cells:_0x4bb7f9}=_0x2f49bf;_0x3c239d['length']&&_0x5b879b['markMultiRangeInsertion'](_0x3c239d,'tablePasteRow',{'tablePasteChainId':_0x35c010}),_0x588236['length']&&_0x5b879b['markMultiRangeInsertion'](_0x588236,'tablePasteColumn',{'tablePasteChainId':_0x35c010}),_0x5d1343['length']&&(_0x5b879b['markMultiRangeInsertion'](_0x5d1343,'tablePaste',{'tablePasteChainId':_0x35c010,'skipNestingCheck':!0x0}),_0x5d1343['forEach'](_0x36da9e=>_0x36da9e['detach']?.())),_0x295a03['length']&&(_0x5b879b['markMultiRangeDeletion'](_0x295a03,'tablePaste',{'tablePasteChainId':_0x35c010,'skipNestingCheck':!0x0}),_0x295a03['forEach'](_0x15c395=>_0x15c395['detach']?.()));const _0x146d2d=_0x5b879b['markMultiRangeBlockFormat'](_0x4bb7f9['map'](({element:_0x35e112})=>_0x35e112),{'formatGroupId':_0x29542d()},[],'tablePasteCell',{'tablePasteChainId':_0x35c010});if(_0x146d2d){const _0x1121b9=_0x146d2d['getMarkers'](),_0x24a70=[];for(const {element:_0x35972e,attributes:_0x4ee77b}of _0x4bb7f9){if(!_0x4ee77b)continue;const _0x4659d1=_0x246b8f['model']['createRangeOn'](_0x35972e),_0x4cd161=_0x1121b9['find'](_0x42b9b6=>_0x42b9b6['getRange']()['isEqual'](_0x4659d1));_0x4cd161&&_0x24a70['push']([_0x4cd161['name'],_0x4ee77b]);}_0x24a70['length']&&_0x146d2d['setAttribute']('markerAttributes',Object['fromEntries'](_0x24a70));}_0x2f49bf=null;}));},{'priority':_0x37adb5['high']+0xa}),_0x256e41['on']('contentInsertion',()=>{_0x27a5bc=!0x1;},{'priority':'lowest'}),_0x246b8f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22623c,_0x383a4d)=>{const [_0x576742,_0x1b4413,,_0x56dabb]=_0x383a4d;if(!_0x2f49bf)return;_0x22623c['stop']();const _0x238efb=_0x576742['cell'],_0x4a6b4f=_0x1b4413,_0x2ae0dc=Ue(_0x238efb),_0x352b71=Ue(_0x4a6b4f);_0x22623c['return']=_0x238efb;let _0x9c9b5e=null,_0xbfddb1=null;if(_0x352b71||_0x2ae0dc){if(_0x2ae0dc&&!_0x352b71){_0x56dabb['remove'](_0x238efb['getChild'](0x0));for(const _0x340bd6 of Array['from'](_0x4a6b4f['getChildren']()))_0x56dabb['insert'](_0x340bd6,_0x238efb,'end');const _0x58c973=_0x2f49bf['rowInsertionIndexes']['includes'](_0x576742['row']),_0x31f9c6=_0x2f49bf['columnInsertionIndexes']['includes'](_0x576742['column']);_0x58c973||_0x31f9c6||(_0x9c9b5e=_0x14a494['fromRange'](_0x56dabb['createRangeIn'](_0x238efb)));}else _0x352b71&&!_0x2ae0dc&&(_0xbfddb1=_0x56dabb['createRangeIn'](_0x238efb));}else{const _0x10f9a4=_0x56dabb['createElement']('tableCellSuggestion'),_0x38f987=_0x56dabb['createElement']('tableCellSuggestion');_0x56dabb['wrap'](_0x56dabb['createRangeIn'](_0x238efb),_0x38f987),_0x56dabb['insert'](_0x10f9a4,_0x238efb,0x0);for(const _0x55e785 of Array['from'](_0x4a6b4f['getChildren']()))_0x56dabb['insert'](_0x55e785,_0x10f9a4,'end');_0x9c9b5e=_0x14a494['fromRange'](_0x56dabb['createRangeOn'](_0x10f9a4)),_0xbfddb1=_0x14a494['fromRange'](_0x56dabb['createRangeOn'](_0x38f987));}const _0x287870=Array['from'](_0x4a6b4f['getAttributes']())['filter'](([_0x3c6970])=>xe['includes'](_0x3c6970));_0x2f49bf['cells']['push']({'element':_0x238efb,'attributes':_0x287870['length']?Object['fromEntries'](_0x287870):null}),_0x9c9b5e&&_0x2f49bf['insertionRanges']['push'](_0x9c9b5e),_0xbfddb1&&_0x2f49bf['deletionRanges']['push'](_0xbfddb1);},{'priority':'high'}),_0x1076e6['on']('insertColumns',(_0x2a8204,_0x3ac9f0)=>{const [_0x22dd0d,_0x1fd69d={}]=_0x3ac9f0;if(!_0x2f49bf)return;const _0x52dd82=_0x1fd69d['at']||0x0,_0x3033cf=_0x1fd69d['columns']||0x1;_0x2f49bf['columnInsertionIndexes']=new Array(_0x3033cf)['fill'](_0x52dd82)['map']((_0x4f41a0,_0x8c8922)=>_0x4f41a0+_0x8c8922);for(const {cell:_0x26c736}of _0x1076e6['createTableWalker'](_0x22dd0d,{'startColumn':_0x52dd82,'endColumn':_0x52dd82+_0x3033cf-0x1}))_0x2f49bf['columnInsertionRanges']['push'](_0x246b8f['model']['createRangeOn'](_0x26c736));},{'priority':'low'}),_0x1076e6['on']('insertRows',(_0x4ee521,_0x2b39ee)=>{const [_0x14f53e,_0x172a84={}]=_0x2b39ee;if(!_0x2f49bf)return;const _0x5e9e20=_0x172a84['at']||0x0,_0x2d9ed9=_0x172a84['rows']||0x1;_0x2f49bf['rowInsertionIndexes']=new Array(_0x2d9ed9)['fill'](_0x5e9e20)['map']((_0x379b9c,_0x2f575e)=>_0x379b9c+_0x2f575e);for(const {cell:_0x41d271}of _0x1076e6['createTableWalker'](_0x14f53e,{'startRow':_0x5e9e20,'endRow':_0x5e9e20+_0x2d9ed9-0x1}))_0x2f49bf['rowInsertionRanges']['push'](_0x246b8f['model']['createRangeOn'](_0x41d271));},{'priority':'low'}),_0x5b879b['descriptionFactory']['registerDescriptionCallback'](_0x58318a=>{if(_0x58318a['subType']&&_0x58318a['subType']['startsWith']('tablePaste'))return _0x58318a['previous']?{}:{'type':'insertion','content':c(_0x246b8f['locale'],'*Replace\x20table\x20cells*')};});const _0x3aa36f=()=>!0x1;for(const _0x4a5ab5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5b879b['_suggestionFactory']['registerCustomCallback']('insertion',_0x4a5ab5,'join',_0x3aa36f),_0x5b879b['_suggestionFactory']['registerCustomCallback']('deletion',_0x4a5ab5,'join',_0x3aa36f),_0x5b879b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a5ab5,'join',_0x3aa36f);_0x5b879b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3aa36f),_0x5b879b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1d01f4,_0x47e912,_0x4a814b)=>{const _0x208b85=_0x1d01f4['map'](_0x38b272=>_0x38b272['getContainedElement']())['filter'](_0x553328=>_0x553328),_0x2b8279=new Map(_0x208b85['map'](_0x405dfe=>[_0x405dfe,null]));if(_0x2f49bf){for(const {element:_0x40e597,attributes:_0x446a7f}of _0x2f49bf['cells'])_0x446a7f&&_0x2b8279['set'](_0x40e597,_0x446a7f);}else{if(_0x4a814b&&_0x4a814b['markerAttributes'])for(const [_0x1032de,_0x420a94]of Object['entries'](_0x4a814b['markerAttributes'])){const _0x27d1a0=_0x246b8f['model']['markers']['get'](_0x1032de),_0x2138d4=_0x27d1a0?_0x27d1a0['getRange']()['getContainedElement']():null;_0x2138d4&&_0x2b8279['set'](_0x2138d4,_0x420a94);}}_0x246b8f['model']['change'](_0x4ef8a8=>{for(const [_0x3fbe0a,_0x2cb796]of _0x2b8279)_0x4ef8a8['setAttributes']({...Oe,..._0x2cb796},_0x3fbe0a);});});const _0x42aedc=(_0x2e0e31,_0x55ca1a)=>{_0x5b879b['_suggestionFactory']['registerCustomCallback'](_0x2e0e31,'tablePaste',_0x55ca1a,(_0x1f0b77,_0x18edc3,_0x5da5e4)=>{_0x246b8f['model']['change'](_0x592ea4=>{const _0x36b4af=[];for(const _0x39df01 of _0x1f0b77){const _0x159193=_0x39df01['start']['nodeAfter'];_0x159193['is']('element','tableCellSuggestion')&&_0x36b4af['push'](_0x159193);}_0x5b879b['_suggestionFactory']['getSuggestionCallback'](_0x2e0e31,null,_0x55ca1a)(_0x1f0b77,_0x18edc3,_0x5da5e4);for(const _0x53f49f of _0x36b4af)'$graveyard'!=_0x53f49f['root']['rootName']&&_0x592ea4['unwrap'](_0x53f49f);});});};_0x42aedc('insertion','accept'),_0x42aedc('insertion','discard'),_0x42aedc('deletion','accept'),_0x42aedc('deletion','discard'),_0x5b879b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x50809d=>{const _0x2d0cc9=_0x50809d['map'](_0x1df516=>_0x1df516['getContainedElement']()),_0x854694=_0x2d0cc9[0x0]['findAncestor']('table'),{minRow:_0x3676c4,maxRow:_0x6bfd0f}=_0x14efad['_getCoordsForCells'](_0x2d0cc9);_0x1076e6['removeRows'](_0x854694,{'at':_0x3676c4,'rows':_0x6bfd0f-_0x3676c4+0x1});}),_0x5b879b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x43cb58=>{const _0x47ad99=_0x43cb58['map'](_0x18c4a6=>_0x18c4a6['getContainedElement']()),_0x537e92=_0x47ad99[0x0]['findAncestor']('table'),{minColumn:_0x3f45b9,maxColumn:_0x45b5b0}=_0x14efad['_getCoordsForCells'](_0x47ad99);_0x1076e6['removeColumns'](_0x537e92,{'at':_0x3f45b9,'columns':_0x45b5b0-_0x3f45b9+0x1});});const _0x56ee46=(_0xb3bb55,_0x638efc)=>{if(!_0x638efc['subType']||!_0x638efc['subType']['startsWith']('tablePaste'))return;const _0x49927d=_0x638efc['attributes']['tablePasteChainId'],_0x6bd58=_0x5b879b['getSuggestions']()['filter'](_0x50cf1f=>_0x50cf1f['isInContent']&&_0x50cf1f['attributes']&&_0x50cf1f['attributes']['tablePasteChainId']==_0x49927d);_0x6bd58['length']&&_0x638efc['getAllAdjacentSuggestions']()['length']!=_0x6bd58['length']&&_0x6bd58['reduce']((_0xc6408a,_0x4aa2fc)=>(_0xc6408a['next']=_0x4aa2fc,_0x4aa2fc['previous']=_0xc6408a,_0x4aa2fc));};function _0x2d77e9(_0x420e26,_0x53091d=!0x0){const {id:_0x506e6e,authorId:_0x4d4a30}=_0x5b879b['_splitMarkerName'](_0x420e26['markerName']),_0x379ed0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x29438c=_0x5b879b['activeMarkers']['includes'](_0x420e26['markerName']);return _0x29438c&&_0x379ed0['push']('ck-suggestion-marker--active'),{'classes':_0x379ed0,'attributes':{'data-suggestion':_0x506e6e,'data-author-id':_0x4d4a30},'priority':_0x29438c&&_0x53091d?0xbc2:0xbb8};}_0x5b879b['on']('suggestionLoaded',_0x56ee46,{'priority':'high'}),_0x5b879b['on']('suggestionUnloaded',_0x56ee46,{'priority':'high'}),_0x246b8f['model']['document']['registerPostFixer'](()=>{let _0x4bdc6f=!0x1;const _0x3cc676=Array['from'](_0x246b8f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x161cbf,data:_0x55a2e1}of _0x3cc676){const {group:_0x5a3209,type:_0x4c8b16,id:_0xae8d06}=_0x5b879b['_splitMarkerName'](_0x161cbf);if('suggestion'!=_0x5a3209||'deletion'!=_0x4c8b16||_0x55a2e1['oldRange'])continue;if(!_0x5b879b['hasSuggestion'](_0xae8d06))continue;const _0x181e93=_0x5b879b['getSuggestion'](_0xae8d06)['getRanges'](),_0x3b01e0=_0x246b8f['plugins']['get']('Users')['me'];for(const _0x2c985c of _0x5b879b['getSuggestions']()){if(!_0x2c985c['isInContent']||_0x2c985c['author']!=_0x3b01e0)continue;if('formatBlock'!=_0x2c985c['type']||'tablePasteCell'!=_0x2c985c['subType'])continue;if(_0x2c985c['getRanges']()['every'](_0x5e6fde=>_0x181e93['some'](_0x38e470=>_0x38e470['containsRange'](_0x5e6fde,!0x0)))){for(const _0x4dd76b of _0x2c985c['getAllAdjacentSuggestions']())_0x4dd76b['isInContent']&&(_0x4dd76b['discard'](),_0x4bdc6f=!0x0);}}}return _0x4bdc6f;}),_0x246b8f['model']['document']['registerPostFixer'](_0x2f4f02=>{const _0x5a30d9=_0x246b8f['commands']['get']('redo');if(!_0x5a30d9||!_0x5a30d9['_createdBatches']['has'](_0x2f4f02['batch']))return!0x1;let _0x132804=!0x1;const _0x56562f=_0x246b8f['plugins']['get']('Users')['me'],_0x35ed5a=_0x246b8f['model']['document']['differ']['getChanges'](),_0x1c3edf=Array['from'](_0x246b8f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5d7b58,data:_0x5b02f1})=>{const {group:_0x37b3e3,subType:_0x2429e5,authorId:_0xf7e2b4}=_0x5b879b['_splitMarkerName'](_0x5d7b58);return'suggestion'==_0x37b3e3&&'tablePaste'==_0x2429e5&&_0xf7e2b4==_0x56562f['id']&&!_0x5b02f1['oldRange'];});for(const _0x57b911 of _0x35ed5a){if('insert'!=_0x57b911['type']||'tableCellSuggestion'!=_0x57b911['name']||0x1!=_0x57b911['length'])continue;const _0xffede4=_0x2f4f02['createRange'](_0x57b911['position'],_0x57b911['position']['getShiftedBy'](0x1));if(!_0x1c3edf['find'](({data:_0xc1bc11})=>_0xc1bc11['newRange']['isEqual'](_0xffede4))){for(const {name:_0x524bbf,data:_0x2e97af}of _0x1c3edf)if(_0xffede4['containsRange'](_0x2e97af['newRange'])){_0x2f4f02['updateMarker'](_0x524bbf,{'range':_0xffede4}),_0x132804=!0x0;break;}}}return _0x132804;}),_0x246b8f['model']['document']['registerPostFixer'](_0x8a2bd5=>{let _0x51b509=!0x1;const _0x108453=_0x246b8f['plugins']['get']('Users')['me'],_0x9c2924=_0x5b879b['getSuggestions']()['filter'](_0x170eea=>_0x170eea['isInContent']&&_0x170eea['author']==_0x108453),_0x18aa72=new Set(),_0x174dcd=new Set();for(const _0x2e4c18 of _0x9c2924)if('tablePaste'==_0x2e4c18['subType'])for(const _0xb1841c of _0x2e4c18['getMarkers']()){const _0x625ac8=_0xb1841c['getRange']()['getContainedElement']();if(_0x625ac8){if(_0x625ac8['is']('element','tableCellSuggestion')&&Ue(_0x625ac8)){_0x2e4c18['removeMarker'](_0xb1841c['name']),_0x18aa72['add'](_0x625ac8),_0x51b509=!0x0;const _0x3129e8=_0x625ac8['nextSibling'],_0x388779=_0x625ac8['previousSibling'],_0x15bc98=_0x3129e8&&_0x3129e8['is']('element','tableCellSuggestion'),_0x249d88=_0x388779&&_0x388779['is']('element','tableCellSuggestion');_0x15bc98&&!_0x18aa72['has'](_0x3129e8)&&_0x174dcd['add'](_0x3129e8),_0x249d88&&!_0x18aa72['has'](_0x388779)&&_0x174dcd['add'](_0x388779);}else _0x625ac8['is']('element','paragraph')&&_0x625ac8['isEmpty']&&(_0x2e4c18['removeMarker'](_0xb1841c['name']),_0x51b509=!0x0);}}else{if('tablePasteCell'==_0x2e4c18['subType']){if(!_0x2e4c18['attributes']||!_0x2e4c18['attributes']['tablePasteChainId'])continue;const _0x2f7979=_0x2e4c18['attributes']['markerAttributes'];if(_0x2f7979&&Object['keys'](_0x2f7979)['length'])continue;const _0x5df44d=_0x2e4c18['attributes']['tablePasteChainId'];let _0x4205f8=!0x0,_0x5efbde=!0x0;for(const _0x28384a of _0x9c2924)if(_0x28384a['subType']&&_0x28384a['subType']['startsWith']('tablePaste')){if(!_0x28384a['attributes']['tablePasteChainId']){_0x5efbde=!0x1;break;}if(_0x28384a['id']!=_0x2e4c18['id']&&_0x28384a['attributes']['tablePasteChainId']==_0x5df44d){_0x4205f8=!0x1;break;}}_0x5efbde&&_0x4205f8&&(_0x2e4c18['removeMarkers'](),_0x51b509=!0x0);}}for(const _0x3bbd64 of _0x18aa72)_0x8a2bd5['remove'](_0x3bbd64);for(const _0xdec3f of _0x174dcd)_0x8a2bd5['unwrap'](_0xdec3f);return _0x51b509;}),_0x246b8f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x29bc18=>_0x2d77e9(_0x29bc18),'converterPriority':'high'}),_0x246b8f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1716c6,_0xfc6da2)=>_0xfc6da2['options']['showSuggestionHighlights']?_0x2d77e9(_0x1716c6,!0x1):null,'converterPriority':'high'});const _0x27dcb7=_0x246b8f['editing']['view'];this['listenTo'](_0x27dcb7['document'],'clipboardOutput',(_0x2f73ef,_0x3b7d22)=>{const _0x581e51=[];for(const _0x184494 of _0x27dcb7['createRangeIn'](_0x3b7d22['content'])['getItems']())_0x184494['is']('element','suggestion-td')&&_0x581e51['push'](_0x184494);_0x27dcb7['change'](_0x4a27c0=>{for(const _0x4e248a of _0x581e51)_0x4a27c0['move'](_0x4a27c0['createRangeIn'](_0x4e248a),_0x4a27c0['createPositionBefore'](_0x4e248a)),_0x4a27c0['remove'](_0x4e248a);});});}}function Ue(_0x1e06db){if(_0x1e06db['isEmpty'])return!0x0;const _0x4f5b5c=_0x1e06db['getChild'](0x0);return _0x4f5b5c['is']('element','paragraph')&&_0x4f5b5c['isEmpty'];}function De(_0x42f79c,_0x1b3ef1={},_0x1d74ad){for(const {isAnchor:_0x172cdf,cellHeight:_0x2e37bf,cellWidth:_0x356072}of _0x1d74ad['createTableWalker'](_0x42f79c,{'includeAllSlots':!0x0,..._0x1b3ef1}))if(!_0x172cdf||0x1!=_0x2e37bf||0x1!=_0x356072)return!0x1;return!0x0;}class Bt extends _0x550ef0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xab19ee=this['editor']['plugins']['get']('TrackChangesEditing');_0xab19ee['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xab19ee['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xab19ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xab19ee['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xab19ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xab19ee['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x158ccd,_0x554d7d){const _0x5e44a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30688d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3919b7=_0x554d7d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x49124e=_0x30688d['getColumnGroupElement'](_0x3919b7);let _0x30dbd2=_0x49124e?_0x30688d['getTableColumnsWidths'](_0x49124e):null,_0x5e27f9=_0x3919b7['getAttribute']('tableWidth')||null;const _0x1ee77c=_0x554d7d['tableWidth']||_0x5e27f9,_0x1654ad=_0x554d7d['columnWidths']||_0x30dbd2,_0x3e9fa2=this['editor']['plugins']['get']('Users')['me'];for(const _0x251f18 of _0x5e44a8['getSuggestions']()){const _0x38893c=_0x251f18['getContainedElement']();if('resizeTable'===_0x251f18['subType']&&_0x38893c===_0x3919b7){_0x251f18['author']!==_0x3e9fa2&&_0x251f18['discard']();const _0x2ed01d=_0x251f18['data']['commandParams'];_0x5e27f9=_0x2ed01d[0x0]['tableWidth'],_0x30dbd2=_0x2ed01d[0x0]['columnWidths'];break;}}_0x158ccd({'table':_0x3919b7,'tableWidth':_0x1ee77c,'columnWidths':_0x1654ad}),_0x5e44a8['markBlockFormat'](_0x3919b7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5e27f9,'columnWidths':_0x30dbd2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5df020){if('formatBlock'!=_0x5df020['type']&&'formatInline'!=_0x5df020['type'])return;const {data:_0x5d4c2a}=_0x5df020;if(_0x5d4c2a&&'resizeTable'===_0x5d4c2a['formatGroupId']){const _0x36ef94='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x36ef94)};}}}class Ot extends _0x550ef0{['afterInit'](){const _0x34ea7a=this['editor'];_0x34ea7a['plugins']['has']('Template')&&_0x34ea7a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x550ef0{['afterInit'](){const _0x5aef2f=this['editor'];if(!_0x5aef2f['commands']['get']('insertTableOfContents'))return;_0x5aef2f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x147e51=_0x5aef2f['plugins']['get']('TrackChangesEditing'),_0x1a3348=_0x5aef2f['locale'];_0x147e51['descriptionFactory']['registerElementLabel']('tableOfContents',_0x82ef9=>c(_0x1a3348,'ELEMENT_TABLE_OF_CONTENTS',_0x82ef9));}}class xt extends _0x550ef0{['afterInit'](){const _0x411ae3=this['editor'];if(!_0x411ae3['plugins']['has']('Title'))return;const _0x19078b=_0x411ae3['plugins']['get']('TrackChangesEditing');_0x19078b['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x411ae3['locale'],'ELEMENT_TITLE')),_0x411ae3['model']['document']['registerPostFixer'](_0x48bccc=>{let _0x5b4218=!0x1;const _0x9d5871=Array['from'](_0x411ae3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x380a4a,data:_0x1c34bd}of _0x9d5871){const {group:_0x4281d0}=_0x19078b['_splitMarkerName'](_0x380a4a);if('suggestion'!==_0x4281d0||!_0x1c34bd['newRange'])continue;const _0x5136cd=_0x1c34bd['newRange'],_0x281150=_0x5136cd['end']['nodeBefore'];if(!_0x281150||!_0x281150['is']('element','title-content'))continue;if(!_0x5136cd['start']['isTouching'](_0x5136cd['end']))continue;const _0x5488e7=_0x411ae3['model']['schema']['getNearestSelectionRange'](_0x5136cd['end'],'forward');if(_0x5488e7&&_0x5488e7['isCollapsed']){const _0x4ccff2=_0x48bccc['createRange'](_0x5136cd['start'],_0x5488e7['start']);_0x4ccff2['isEqual'](_0x5136cd)||(_0x48bccc['updateMarker'](_0x380a4a,{'range':_0x4ccff2}),_0x5b4218=!0x0);}_0x5b4218||(_0x48bccc['removeMarker'](_0x380a4a),_0x5b4218=!0x0);}return _0x5b4218;});}}class Tt extends _0x550ef0{['afterInit'](){const _0x291cac=this['editor'],_0x70c47d=_0x291cac['plugins']['get']('TrackChangesEditing');_0x291cac['plugins']['has']('Uploadcare')&&(_0x70c47d['enableCommand']('uploadcare'),_0x291cac['plugins']['has']('UploadcareImageEdit')&&(_0x70c47d['enableCommand']('uploadcareImageEdit'),_0x70c47d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x70c47d['registerBlockAttribute']('uploadcareImageId'),_0x70c47d['descriptionFactory']['registerDescriptionCallback'](_0x4b2f39=>{if('attribute'!=_0x4b2f39['type'])return;const {data:_0x5a2194}=_0x4b2f39;return _0x5a2194&&'uploadcareImageId'==_0x5a2194['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x550ef0{['afterInit'](){const _0x23043e=this['editor'],_0x215d3=_0x23043e['plugins']['get']('TrackChangesEditing');_0x23043e['plugins']['has']('UndoEditing')&&(_0x215d3['enableCommand']('undo'),_0x215d3['enableCommand']('redo'));}}class Ut extends _0x550ef0{static get['requires'](){return[Ct];}['afterInit'](){const _0x719251=this['editor'];if(!_0x719251['plugins']['has']('TableCaptionEditing'))return;_0x719251['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x550ef0{['tableProperties'];['tableCellProperties'];constructor(_0x4cf801){super(_0x4cf801),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 _0x6cf552=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29914f of this['tableProperties'])_0x6cf552['enableCommand'](_0x29914f,(_0x16d337,_0x62589d)=>{const _0xc9006d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29914f,[_0xc9006d],this['tableProperties'],'tableProperties',_0x16d337,_0x62589d);});_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x6cf552['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4c7f59,_0x23f794)=>this['handleDiscardAction'](this['tableProperties'],_0x4c7f59,_0x23f794)),_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5c3d6e of this['tableCellProperties'])_0x6cf552['enableCommand'](_0x5c3d6e,(_0x3ebdf0,_0x4effdf)=>{const _0x101810=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5c3d6e,_0x101810,this['tableCellProperties'],'tableCellProperties',_0x3ebdf0,_0x4effdf);});_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x6cf552['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3ecf2b,_0x5a69fc)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3ecf2b,_0x5a69fc)),_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x6cf552['descriptionFactory']['registerDescriptionCallback'](_0x4003ba=>this['handleSuggestionDescription'](_0x4003ba));}['_handlePropertyChange'](_0x252ca1,_0x507554,_0x20ee5e,_0x41bff2,_0x2b894b,_0x24d6b4){const _0x42f345=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x24d6b4['batch'],()=>{for(const _0x30d873 of _0x507554){if(this['_getSuggestion'](_0x30d873,_0x41bff2))_0x2b894b(_0x24d6b4);else{const _0x3b12ce={};for(const _0x3804bc of _0x20ee5e){const _0x537480=_0x30d873['getAttribute'](_0x3804bc);void 0x0!==_0x537480&&(_0x3b12ce[_0x3804bc]=_0x537480);}_0x2b894b(_0x24d6b4),_0x42f345['markBlockFormat'](_0x30d873,{'commandParams':[_0x3b12ce]},[],_0x41bff2);}}});}['handleDiscardAction'](_0x4d81de,_0x11105d,_0x304a7c){const _0x404109=_0x11105d[0x0]['start']['nodeAfter'],_0x2456ea=_0x304a7c['commandParams'][0x0];this['editor']['model']['change'](_0x17c4a1=>{for(const _0x33ad8a of _0x4d81de)void 0x0!==_0x2456ea[_0x33ad8a]?_0x17c4a1['setAttribute'](_0x33ad8a,_0x2456ea[_0x33ad8a],_0x404109):_0x17c4a1['removeAttribute'](_0x33ad8a,_0x404109);});}['handleSuggestionDescription'](_0xef581b){if(_0xef581b['data'])switch(_0xef581b['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2cbabc,_0x26d60d){const _0x4d1477=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x186416 of _0x4d1477['getSuggestions']({'skipNotAttached':!0x0})){const _0x57407d=_0x186416['getContainedElement']();if(_0x186416['subType']===_0x26d60d&&_0x57407d===_0x2cbabc)return _0x186416;}return null;}}const u='$elementName';class p extends _0x550ef0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x43132b,_0x42c0fc,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21b8cb){super(_0x21b8cb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x153e18,_0x383ef3,_0x3045d6,_0x29cad5)=>{this['_model']['change'](()=>{for(const _0xc51fa3 of[..._0x29cad5,..._0x3045d6])this['_model']['markers']['has'](_0xc51fa3)&&_0x21b8cb['editing']['reconvertMarker'](_0xc51fa3);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x21b8cb['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x21b8cb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21b8cb['config']['get']('trackChanges.trackFormatChanges'),_0x21b8cb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21b8cb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x21b8cb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d0196=this['editor'],_0x36f84e=(_0x3114e8,_0x341d40)=>{if('attribute'!=_0x3114e8)return'ck-suggestion-marker-'+_0x3114e8;const _0x2cc4a7=_0x341d40['split']('|')[0x0];return this['_isBlockAttribute'](_0x2cc4a7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3d0196['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x512975=>{const {id:_0x24fc47,authorId:_0x32ac27,type:_0x113acb,subType:_0x37ec9d}=this['_splitMarkerName'](_0x512975['markerName']),_0x111cae=['ck-suggestion-marker',_0x36f84e(_0x113acb,_0x37ec9d)];let _0x3c559c=0xbb8;return this['activeMarkers']['includes'](_0x512975['markerName'])&&(_0x111cae['push']('ck-suggestion-marker--active'),_0x3c559c=0xbc2),'deletion'==_0x113acb&&(_0x3c559c+=0x5),{'classes':_0x111cae,'attributes':{'data-suggestion':_0x24fc47,'data-author-id':_0x32ac27},'priority':_0x3c559c};}}),_0x3d0196['conversion']['for']('dataDowncast')['add'](_0x5b0d58=>{_0x5b0d58['on']('addMarker:suggestion',(_0x2c58bb,_0x47a77c,_0x4d883c)=>{if(!_0x4d883c['options']['showSuggestionHighlights'])return;const _0x25863d=_0x47a77c['item'];if(!_0x25863d)return;const _0xb8276f=_0x4d883c['mapper']['toViewElement'](_0x25863d);_0x3d0196['model']['schema']['isObject'](_0x25863d)&&_0xb8276f&&!_0xb8276f['getCustomProperty']('widget')&&_0xb8276f['is']('containerElement')&&_0x146b69(_0xb8276f,_0x4d883c['writer']);},{'priority':'high'});}),_0x3d0196['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d385f,_0x3bacea)=>{if(!_0x3bacea['options']['showSuggestionHighlights'])return null;const {type:_0x475bc0,subType:_0x5ea35f}=this['_splitMarkerName'](_0x2d385f['markerName']);return{'classes':['ck-suggestion-marker',_0x36f84e(_0x475bc0,_0x5ea35f)],'priority':0xbb8};}});const _0x267b19=({showActiveMarkers:_0x108c27=!0x0,isAttributeSuggestion:_0x16ecfd=!0x1}={})=>(_0x41e2ed,_0x5bb166,_0x3d6496)=>{if(!_0x5bb166['item'])return;const {id:_0x251b93,authorId:_0x1770bb}=this['_splitMarkerName'](_0x5bb166['markerName']);if(_0x16ecfd){const _0x1b9b02=this['_suggestions']['get'](_0x251b93),_0xa242e=this['_getAttributeKey'](_0x1b9b02);if(!this['_isBlockAttribute'](_0xa242e))return;}if(_0x5bb166['item']['is']('selection'))return void _0x3d6496['consumable']['consume'](_0x5bb166['item'],_0x41e2ed['name']);const _0x15dfd2=_0x3d6496['mapper']['toViewElement'](_0x5bb166['item']);if(_0x5bb166['item']['is']('element')&&_0x3d0196['model']['schema']['isBlock'](_0x5bb166['item'])&&!_0x15dfd2['getCustomProperty']('addHighlight')){_0x3d6496['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x15dfd2),_0x3d6496['writer']['setAttribute']('data-suggestion',_0x251b93,_0x15dfd2),_0x3d6496['writer']['setAttribute']('data-author-id',_0x1770bb,_0x15dfd2),_0x3d6496['mapper']['bindElementToMarker'](_0x15dfd2,_0x5bb166['markerName']),_0x108c27&&(this['activeMarkers']['includes'](_0x5bb166['markerName'])?_0x3d6496['writer']['addClass']('ck-suggestion-marker--active',_0x15dfd2):_0x3d6496['writer']['removeClass']('ck-suggestion-marker--active',_0x15dfd2));for(const _0x357d30 of _0x3d0196['model']['createRangeIn'](_0x5bb166['item'])['getItems']())_0x3d6496['consumable']['consume'](_0x357d30,_0x41e2ed['name']);_0x3d6496['consumable']['consume'](_0x5bb166['item'],_0x41e2ed['name']);}};_0x3d0196['conversion']['for']('dataDowncast')['add'](_0x80650c=>{_0x80650c['on']('addMarker:suggestion:formatBlock',(_0x294cdc,_0x2676dd,_0x1e4b95)=>{_0x1e4b95['options']['showSuggestionHighlights']&&_0x267b19({'showActiveMarkers':!0x1})(_0x294cdc,_0x2676dd,_0x1e4b95);},{'priority':'highest'});}),_0x3d0196['conversion']['for']('dataDowncast')['add'](_0x4ff5e6=>{_0x4ff5e6['on']('addMarker:suggestion:attribute',(_0x39b25f,_0x697143,_0x2c116d)=>{_0x2c116d['options']['showSuggestionHighlights']&&_0x267b19({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x39b25f,_0x697143,_0x2c116d);},{'priority':'highest'});}),_0x3d0196['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3c7c9f,_0x2ed035)=>_0x2ed035['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3c7c9f['substr'](0xb)}}),_0x3d0196['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x24962f,{writer:_0x832ad})=>{let _0x2b652b='suggestion:'+_0x24962f['getAttribute']('suggestion-type')+':'+_0x24962f['getAttribute']('id');return _0x24962f['getAttribute']('marker-count')&&(_0x2b652b+=':'+_0x24962f['getAttribute']('marker-count')),_0x832ad['createElement']('$marker',{'data-name':_0x2b652b});}}),_0x3d0196['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d0196['conversion']['for']('editingDowncast')['add'](_0x5317ed=>{_0x5317ed['on']('addMarker:suggestion:formatBlock',_0x267b19(),{'priority':'high'});}),_0x3d0196['conversion']['for']('editingDowncast')['add'](_0x2bdeb9=>{_0x2bdeb9['on']('addMarker:suggestion:attribute',_0x267b19({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3d0196['conversion']['for']('editingDowncast')['add'](_0x36023e=>{_0x36023e['on']('removeMarker:suggestion:formatBlock',(_0x4d1515,_0x12292c,_0x25192e)=>{const _0x3846a4=_0x25192e['mapper']['markerNameToElements'](_0x12292c['markerName']);if(_0x3846a4){for(const _0x99668d of _0x3846a4)_0x99668d['getCustomProperty']('addHighlight')||(_0x25192e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x99668d),_0x25192e['writer']['removeAttribute']('data-suggestion',_0x99668d),_0x25192e['writer']['removeAttribute']('data-author-id',_0x99668d),_0x25192e['mapper']['unbindElementFromMarkerName'](_0x99668d,_0x12292c['markerName']));}},{'priority':'high'});}),_0x3d0196['conversion']['for']('editingDowncast')['add'](_0x942db2=>{_0x942db2['on']('removeMarker:suggestion:attribute',(_0x16ee4a,_0x351461,_0xcf6370)=>{const _0x3ba04d=_0xcf6370['mapper']['markerNameToElements'](_0x351461['markerName']);if(!_0x3ba04d)return;const {id:_0x1a875d}=this['_splitMarkerName'](_0x351461['markerName']),_0x3cee8d=this['_suggestions']['get'](_0x1a875d),_0x41ca32=this['_getAttributeKey'](_0x3cee8d);if(this['_isBlockAttribute'](_0x41ca32)){for(const _0x412ffc of _0x3ba04d)_0x412ffc['getCustomProperty']('addHighlight')||(_0xcf6370['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x412ffc),_0xcf6370['writer']['removeAttribute']('data-suggestion',_0x412ffc),_0xcf6370['writer']['removeAttribute']('data-author-id',_0x412ffc),_0xcf6370['mapper']['unbindElementFromMarkerName'](_0x412ffc,_0x351461['markerName']));}},{'priority':'high'});}),_0x3d0196['model']['document']['registerPostFixer'](_0x14c2d4=>{let _0xa60d37=!0x1;const _0x3747c8=Array['from'](_0x3d0196['model']['document']['differ']['getChangedMarkers']()),_0x1e2840=new Set();for(const {name:_0x2c07cf,data:_0x2c9f70}of _0x3747c8){const {group:_0x3139b8,type:_0x42b58f,subType:_0x31b7a6,id:_0x2a65a7}=this['_splitMarkerName'](_0x2c07cf);if('suggestion'!==_0x3139b8)continue;const _0x5358d9=this['_suggestions']['get'](_0x2a65a7);if(null!=_0x2c9f70['newRange']){'formatInline'==_0x42b58f&&(_0xa60d37=_0xa60d37||Jt(_0x2c9f70['newRange'],_0x2c07cf,_0x14c2d4,_0x3d0196['model']['schema']));const _0x53fc26='attribute'==_0x42b58f&&this['_isBlockAttribute'](_0x31b7a6['split']('|')[0x0]);if(_0x2c9f70['newRange']['isCollapsed']||'$graveyard'==_0x2c9f70['newRange']['root']['rootName']||'formatBlock'==_0x42b58f&&!Ht(_0x2c9f70['newRange'])||_0x53fc26&&!Ht(_0x2c9f70['newRange'])||'deletion'==_0x42b58f&&!(!Lt(_0x526acd=_0x2c9f70['newRange'])&&!function(_0x4ed645){return _0x4ed645['start']['parent']==_0x4ed645['end']['nodeBefore']&&_0x4ed645['start']['isAtEnd'];}(_0x526acd)))_0x14c2d4['removeMarker'](_0x2c07cf),_0xa60d37=!0x0;else{if(!_0x5358d9||!_0x5358d9['isInContent'])continue;if(_0x2c9f70['newRange']&&_0x2c9f70['oldRange']&&_0x2c9f70['newRange']['isEqual'](_0x2c9f70['oldRange']))continue;_0x1e2840['add'](_0x5358d9);}}}var _0x526acd;return _0x1e2840['size']>0x0&&(_0xa60d37=!!this['_joinWithAdjacentSuggestions'](_0x1e2840)||_0xa60d37),_0xa60d37;}),_0x3d0196['model']['document']['registerPostFixer'](_0x9ef75e=>{let _0x5c8d9e=!0x1;for(const _0x2985e2 of _0x3d0196['model']['document']['differ']['getChanges']())if('insert'==_0x2985e2['type'])for(const _0x5f15f2 of this['_suggestions']['values']()){if(_0x5f15f2['isMultiRange']||!_0x5f15f2['isInContent'])continue;const _0x109fc8='formatBlock'==_0x5f15f2['type'],_0x3f84f2=this['_getAttributeKey'](_0x5f15f2),_0x104ed2=_0x3f84f2&&this['_isBlockAttribute'](_0x3f84f2);if(!_0x109fc8&&!_0x104ed2)continue;const _0x420651=_0x5f15f2['getFirstRange']();if(_0x420651['start']['parent']!=_0x420651['end']['parent']&&!_0x420651['end']['isAtEnd']){const _0x28f5de=_0x3d0196['model']['createPositionAt'](_0x420651['start']['nodeAfter'],'end'),_0x7f5c1e=_0x3d0196['model']['createRange'](_0x420651['start'],_0x28f5de);_0x9ef75e['updateMarker'](_0x5f15f2['getFirstMarker'](),{'range':_0x7f5c1e}),_0x5c8d9e=!0x0;}}return _0x5c8d9e;}),_0x3d0196['model']['document']['registerPostFixer'](_0x227c16=>this['_processAttributeChanges'](_0x227c16)),_0x3d0196['model']['document']['registerPostFixer'](_0x285f33=>!_0x285f33['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x285f33)),_0x3d0196['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d0196['model']['document']['on']('change:data',(_0x14adad,_0x4e5e3a)=>{if(!_0x4e5e3a['isLocal']||_0x4e5e3a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f9ae1=_0x3d0196['model']['document']['differ']['getChanges']();if(0x0==_0x3f9ae1['length'])return;const _0x46eb93=[],_0x3dfc55=_0x3f9ae1['filter'](_0x1f591c=>'attribute'==_0x1f591c['type']),_0x2fa591=_0x3f9ae1['filter'](_0x11249c=>'insert'==_0x11249c['type']&&'$text'!=_0x11249c['name']);for(const _0x353779 of _0x3dfc55)this['_isRegisteredAttribute'](_0x353779['attributeKey'])&&_0x46eb93['push']({'key':_0x353779['attributeKey'],'newValue':_0x353779['attributeNewValue'],'oldValue':_0x353779['attributeOldValue'],'range':qt(_0x353779['range'],_0x3d0196['model'])});for(const _0x35213c of _0x2fa591){if('rename'!=_0x35213c['action']&&'refresh'!=_0x35213c['action'])continue;const _0x549087=zt(_0x35213c['position']['nodeAfter'],_0x3d0196['model']),_0x5ad21b=_0x35213c['before'];'rename'==_0x35213c['action']&&_0x46eb93['push']({'key':u,'newValue':_0x35213c['name'],'oldValue':_0x5ad21b['name'],'range':_0x549087});for(const [_0x24241c,_0xbdc49]of _0x5ad21b['attributes']){if(!this['_isRegisteredAttribute'](_0x24241c))continue;const _0x4246d5=_0x35213c['attributes']['get'](_0x24241c);_0xbdc49!==_0x4246d5&&_0x46eb93['push']({'key':_0x24241c,'newValue':_0x4246d5,'oldValue':_0xbdc49,'range':_0x549087});}for(const [_0x79a7c9,_0x17ab72]of _0x35213c['attributes'])this['_isRegisteredAttribute'](_0x79a7c9)&&(_0x5ad21b['attributes']['has'](_0x79a7c9)||_0x46eb93['push']({'key':_0x79a7c9,'newValue':_0x17ab72,'oldValue':null,'range':_0x549087}));}0x0!=_0x46eb93['length']&&_0x3d0196['model']['enqueueChange'](_0x4e5e3a,_0x30d2a1=>{const _0x8cc108=_0x29542d();for(const {range:_0x7be21d,key:_0x32107e,oldValue:_0x45ad21,newValue:_0x448a60}of _0x46eb93)this['markAttributeChange'](_0x7be21d,_0x32107e,_0x45ad21,_0x448a60,{'groupId':_0x8cc108});this['_reduceExistingSuggestions'](_0x30d2a1,_0x46eb93);});},{'priority':'lowest'}),_0x3d0196['model']['markers']['on']('update:suggestion',(_0x38e105,_0x95d9ef,_0x2c17da)=>{if(null==_0x2c17da){const {id:_0x336491}=this['_splitMarkerName'](_0x95d9ef['name']),_0x4af11e=this['_suggestions']['get'](_0x336491);_0x4af11e&&_0x4af11e['addMarkerName'](_0x95d9ef['name']);}}),_0x3d0196['model']['document']['on']('change:data',()=>{const _0x5ec036=Array['from'](_0x3d0196['model']['document']['differ']['getChangedMarkers']())['filter'](_0x305044=>'suggestion'===this['_splitMarkerName'](_0x305044['name'])['group']);if(0x0===_0x5ec036['length'])return;_0x5ec036['sort']((_0x3f94fa,_0x339f4d)=>{const _0x1f45f8=_0x3f94fa['data']['oldRange'],_0x22d7c5=_0x339f4d['data']['oldRange'];return null===_0x1f45f8&&null===_0x22d7c5?0x0:null===_0x1f45f8&&null!==_0x22d7c5?-0x1:null!==_0x1f45f8&&null===_0x22d7c5?0x1:_0x1f45f8['start']['isBefore'](_0x22d7c5['start'])?-0x1:0x1;});const _0x485464=new Set(),_0x2e7dcc=new Set();for(const {name:_0x18f0e6,data:_0x28136d}of _0x5ec036){const {id:_0x190328}=this['_splitMarkerName'](_0x18f0e6);if(null===_0x28136d['oldRange']){const _0xf081f9=this['_handleNewSuggestionMarker'](_0x18f0e6);_0x2e7dcc['add'](_0xf081f9);}else{const _0x1aed05=this['_suggestions']['get'](_0x190328);null!==_0x28136d['newRange']||_0x1aed05['isInContent']?(_0x485464['add'](_0x1aed05['head']),_0x2e7dcc['add'](_0x1aed05)):this['_removeSuggestion'](_0x1aed05);}}_0x2e7dcc['size']>0x0&&this['_refreshSuggestionsChain'](_0x2e7dcc);for(const _0x1aa245 of _0x485464)this['fire']('suggestionChanged',_0x1aa245);}),_0x3d0196['model']['on']('applyOperation',(_0x3f302a,_0xe9f4b)=>{const _0x22e595=_0xe9f4b[0x0];if(!this['_suggestions']['size'])return;if(!_0x22e595['isDocumentOperation'])return;if(_0x22e595['batch']['isUndo']||!_0x22e595['batch']['isLocal'])return;let _0x5b1f16,_0x2bed4e;switch(_0x22e595['type']){case'insert':_0x5b1f16=_0x3d0196['model']['createPositionAt'](_0x22e595['position']),_0x2bed4e=_0x5b1f16['getShiftedBy'](_0x22e595['howMany']);break;case'split':_0x5b1f16=_0x3d0196['model']['createPositionAt'](_0x22e595['splitPosition']),_0x2bed4e=_0x3d0196['model']['createPositionAt'](_0x22e595['moveTargetPosition']);break;case'move':_0x5b1f16=_0x3d0196['model']['createPositionAt'](_0x22e595['targetPosition']),_0x2bed4e=_0x5b1f16['getShiftedBy'](_0x22e595['howMany']);break;default:return;}const _0x2898cd=_0x3d0196['model']['createRange'](_0x5b1f16,_0x2bed4e);_0x3d0196['model']['change'](()=>{for(const {suggestion:_0x44b98b,meta:_0x89f66b}of this['_findSuggestions'](_0x2898cd)){if(_0x44b98b['isMultiRange'])continue;if('formatInline'==_0x44b98b['type'])continue;const _0x3c25cc=this['_getAttributeKey'](_0x44b98b);if(_0x3c25cc&&this['_isBlockAttribute'](_0x3c25cc)&&'split'!=_0x22e595['type'])continue;const _0x53327c=_0x44b98b['data']&&_0x44b98b['data']['multipleBlocks'];('formatBlock'!=_0x44b98b['type']||'split'==_0x22e595['type']&&!_0x53327c)&&(_0x89f66b['containsRangeInObject']||'insertion'==_0x44b98b['type']&&_0x89f66b['isOwn']||_0x44b98b['getFirstRange']()['containsRange'](_0x2898cd)&&this['_breakSuggestionMarker'](_0x44b98b,_0x5b1f16,_0x2bed4e));}});},{'priority':'lowest'}),_0x3d0196['model']['on']('deleteContent',(_0x25e470,_0x274b60)=>{const _0x294c18=_0x274b60[0x0],_0x213b8f=_0x274b60[0x1];if(_0x213b8f&&_0x213b8f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x294c18['isCollapsed'])return;const _0x13406a=_0x3d0196['model']['schema'],{start:_0x1243ac,end:_0x2720e5}=_0x294c18['getFirstRange'](),_0x5363f5=_0x1243ac['nodeAfter']&&_0x13406a['isLimit'](_0x1243ac['nodeAfter'])?null:_0x13406a['getNearestSelectionRange'](_0x1243ac,'forward'),_0x1ec856=_0x2720e5['nodeBefore']&&_0x13406a['isLimit'](_0x2720e5['nodeBefore'])?null:_0x13406a['getNearestSelectionRange'](_0x2720e5,'backward'),_0x5d61db=_0x3d0196['model']['createRange'](_0x5363f5?_0x5363f5['start']:_0x1243ac,_0x1ec856?_0x1ec856['end']:_0x2720e5);_0x3d0196['model']['change'](_0x1006d1=>{this['markDeletion'](_0x5d61db);const _0x783083=_0x3d0196['model']['schema']['getNearestSelectionRange'](_0x5d61db['start']);_0x294c18['is']('documentSelection')?_0x1006d1['setSelection'](_0x783083):_0x294c18['setTo'](_0x783083);}),_0x25e470['stop']();},{'priority':_0x37adb5['normal']+0xa}),_0x3d0196['model']['on']('insertContent',(_0x514edc,_0x830100)=>{const _0x3eec7a=_0x830100[_0x830100['length']-0x1];_0x3eec7a&&_0x3eec7a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d0196['model']['change'](()=>{let _0x3054ee=_0x3d0196['model']['insertContent'](_0x830100[0x0],_0x830100[0x1],_0x830100[0x2],{'forceDefaultExecution':!0x0});if(!_0x3054ee)return;_0x514edc['return']=_0x3054ee['clone']();const _0x47307d=_0x3054ee['end']['nodeBefore'],_0x24769b=_0x3d0196['model']['schema'];_0x47307d&&_0x24769b['isBlock'](_0x47307d)&&!_0x24769b['isObject'](_0x47307d)&&(_0x3054ee=_0x3d0196['model']['createRange'](_0x3054ee['start'],_0x3d0196['model']['createPositionAt'](_0x47307d,'end'))),this['markInsertion'](_0x3054ee);}),_0x514edc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x54f0ec=new O(_0x3d0196,this['_suggestions']);_0x3d0196['commands']['add']('acceptSuggestion',_0x54f0ec),this['enableCommand']('acceptSuggestion');const _0x164c51=new R(_0x3d0196,this['_suggestions']);_0x3d0196['commands']['add']('discardSuggestion',_0x164c51),this['enableCommand']('discardSuggestion'),_0x3d0196['commands']['add']('acceptAllSuggestions',new x(_0x3d0196,_0x54f0ec,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d0196['commands']['add']('discardAllSuggestions',new x(_0x3d0196,_0x164c51,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d0196['commands']['add']('acceptSelectedSuggestions',new E(_0x3d0196,_0x54f0ec,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d0196['commands']['add']('discardSelectedSuggestions',new E(_0x3d0196,_0x164c51,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4d1cd8=_0x3d0196['plugins']['get']('CommentsRepository');this['listenTo'](_0x4d1cd8,'addComment',(_0xdbe88d,{threadId:_0x2625ea})=>{const _0x23a71d=this['_suggestions']['get'](_0x2625ea);_0x23a71d&&_0x23a71d['commentThread']&&0x1===_0x23a71d['commentThread']['length']&&this['_updateSuggestionData'](_0x2625ea,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4d1cd8,'removeComment',(_0x5b9514,{threadId:_0x493e78})=>{const _0x34c0a2=this['_suggestions']['get'](_0x493e78);_0x34c0a2&&_0x34c0a2['commentThread']&&!_0x34c0a2['commentThread']['length']&&this['_updateSuggestionData'](_0x493e78,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1f28a3){const _0x5d4adb=_0x5db560([0x30,0x62,0x64,0x6d,0x6a,0x32,0x39,0x66,0x4e,0x5a,0x44,0x42,0x52,0x37,0x6e,0x41,0x6b,0x68,0x4f,0x53,0x35,0x58,0x4b,0x6f,0x46,0x72,0x33,0x75,0x56,0x65,0x47,0x55,0x45,0x70,0x79,0x57,0x51,0x59,0x36,0x61,0x54,0x43,0x6c,0x71,0x63,0x4a,0x50,0x49,0x34,0x76,0x48,0x67,0x7a,0x38,0x69,0x31,0x77,0x74,0x78,0x4d,0x73,0x4c]),_0x13ee02=0x5914ced,_0x50f158=0x5962f5d^_0x13ee02,_0x2826b9=window[_0x5db560([0x44,0x61,0x74,0x65])][_0x5db560([0x6e,0x6f,0x77])](),_0x569788=_0x1f28a3[_0x5db560([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3bdc42=new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4571f4=>{_0x569788[_0x5db560([0x6f,0x6e,0x63,0x65])](_0x5db560([0x72,0x65,0x61,0x64,0x79]),_0x4571f4);}),_0x11b153={[_0x5db560([0x6b,0x74,0x79])]:_0x5db560([0x45,0x43]),[_0x5db560([0x75,0x73,0x65])]:_0x5db560([0x73,0x69,0x67]),[_0x5db560([0x63,0x72,0x76])]:_0x5db560([0x50,0x2d,0x32,0x35,0x36]),[_0x5db560([0x78])]:_0x5db560([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]),[_0x5db560([0x79])]:_0x5db560([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]),[_0x5db560([0x61,0x6c,0x67])]:_0x5db560([0x45,0x53,0x32,0x35,0x36])},_0x30cd9c=_0x569788[_0x5db560([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5db560([0x67,0x65,0x74])](_0x5db560([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35e344(){let _0x3afba6,_0x4934dc=null,_0x3a43e7=null;try{if(_0x30cd9c==_0x5db560([0x47,0x50,0x4c]))return _0x5db560([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3afba6=_0x4b444d(),!_0x3afba6)return _0x5db560([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3afba6[_0x5db560([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a43e7=_0x39103f(_0x3afba6[_0x5db560([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3afba6[_0x5db560([0x6a,0x74,0x69])])),await _0xce63a7()?_0xf8d58b()?_0x4b2ace()?_0x5db560([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x129a13()?(_0x3afba6[_0x5db560([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5db560([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4934dc=_0x44f995(_0x5db560([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3afba6[_0x5db560([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5db560([0x74,0x72,0x69,0x61,0x6c])&&(_0x4934dc=_0x44f995(_0x5db560([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x495602()):_0x5db560([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5db560([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5db560([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2ee7a7){return _0x5db560([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b2ace(){const _0x5a5b3b=[_0x5db560([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5db560([0x74,0x72,0x69,0x61,0x6c])][_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3afba6[_0x5db560([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2826b9/0x3e8:0xe10*_0x50f158;return _0x3afba6[_0x5db560([0x65,0x78,0x70])]<_0x5a5b3b;}function _0xf8d58b(){const _0x363dd0=_0x3afba6[_0x5db560([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x363dd0)return!0x1;if(_0x363dd0[_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db560([0x2a])))return!0x0;if(_0x363dd0[_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db560([0x54,0x43])))return!0x0;if(_0x363dd0[_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db560([0x52,0x54,0x43]))){if(_0x2badb9())return!0x0;if(_0x5b4a2c()||_0x1a9c46())return!0x0;}return!0x1;}function _0x129a13(){const _0x43a52d=_0x3afba6[_0x5db560([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x43a52d||0x0==_0x43a52d[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a7270}=new URL(window[_0x5db560([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x43a52d[_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7270))return!0x0;const _0x2ff2e0=_0x1a7270[_0x5db560([0x73,0x70,0x6c,0x69,0x74])](_0x5db560([0x2e]));return _0x43a52d[_0x5db560([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12ff7a=>_0x12ff7a[_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db560([0x2a])))[_0x5db560([0x6d,0x61,0x70])](_0x55bece=>_0x55bece[_0x5db560([0x73,0x70,0x6c,0x69,0x74])](_0x5db560([0x2e])))[_0x5db560([0x73,0x6f,0x6d,0x65])](_0x82d88f=>_0x2ff2e0[_0x5db560([0x65,0x76,0x65,0x72,0x79])]((_0x441334,_0x27c878)=>_0x82d88f[_0x27c878]===_0x441334||_0x82d88f[_0x27c878]===_0x5db560([0x2a])));}function _0x495602(){return _0x4934dc&&_0x3a43e7?new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x157e88,_0x36cc1c)=>{_0x4934dc[_0x5db560([0x74,0x68,0x65,0x6e])](_0x157e88,_0x36cc1c),_0x3a43e7[_0x5db560([0x74,0x68,0x65,0x6e])](_0x434d72=>{_0x434d72!=_0x5db560([0x56,0x61,0x6c,0x69,0x64])&&_0x157e88(_0x434d72);},_0x36cc1c);}):_0x4934dc||_0x3a43e7||_0x5db560([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39103f(_0x10de26,_0x3b83c7){return new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a94cb=>{if(_0x1cb38e())return _0x5a94cb(_0x5db560([0x56,0x61,0x6c,0x69,0x64]));_0x280495(),_0x569788[_0x5db560([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5db560([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x112976=!0x1;const _0xd9c375=_0x29542d();function _0x2dee0b(_0x3415c9){return!!_0x3415c9&&(typeof _0x3415c9===_0x5db560([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3415c9===_0x5db560([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3415c9[_0x5db560([0x74,0x68,0x65,0x6e])]===_0x5db560([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3415c9[_0x5db560([0x63,0x61,0x74,0x63,0x68])]===_0x5db560([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x148757(_0x9691e3){_0x5a7212(_0x9691e3)[_0x5db560([0x74,0x68,0x65,0x6e])](_0x5ea498=>{if(!_0x5ea498||_0x5ea498[_0x5db560([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5db560([0x6f,0x6b]))return _0x5db560([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1671a8(_0x348c2d(_0xd9c375+_0x3b83c7))!=_0x5ea498[_0x5db560([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5db560([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5db560([0x56,0x61,0x6c,0x69,0x64]);})[_0x5db560([0x74,0x68,0x65,0x6e])](_0x357b60=>(_0x4515df(),_0x357b60),()=>{const _0x169560=_0x59ff37();return null==_0x169560?(_0x4515df(),_0x5db560([0x56,0x61,0x6c,0x69,0x64])):_0x5db560(_0x2826b9-_0x169560>(0x219dc8ed^_0x13ee02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5db560([0x74,0x68,0x65,0x6e])](_0x5a94cb)[_0x5db560([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a94cb(_0x5db560([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4628c6=0x5a7a26d^_0x13ee02;function _0x4515df(){const _0x428a2c=_0x5db560([0x6c,0x6c,0x63,0x74,0x2d])+_0x1671a8(_0x348c2d(_0x10de26)),_0x1091f6=_0x5e0a29(_0x1671a8(window[_0x5db560([0x4d,0x61,0x74,0x68])][_0x5db560([0x63,0x65,0x69,0x6c])](_0x2826b9/_0x4628c6)));window[_0x5db560([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5db560([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x428a2c,_0x1091f6);}function _0x59ff37(){const _0xe43bba=_0x5db560([0x6c,0x6c,0x63,0x74,0x2d])+_0x1671a8(_0x348c2d(_0x10de26)),_0x18dc5c=window[_0x5db560([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5db560([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe43bba);return _0x18dc5c?window[_0x5db560([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e0a29(_0x18dc5c),0x10)*_0x4628c6:null;}function _0x5a7212(_0x4aa474){return new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b9e38,_0x224c2c)=>{_0x4aa474[_0x5db560([0x74,0x68,0x65,0x6e])](_0x1b9e38,_0x224c2c),window[_0x5db560([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x224c2c,0x590982d^_0x13ee02);});}}_0x569788[_0x5db560([0x6f,0x6e])](_0x5db560([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41aad3,_0x168d45)=>{if(_0x168d45[0x0]!=_0x10de26)return _0x5a94cb(_0x5db560([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x168d45[0x1]={..._0x168d45[0x1],[_0x5db560([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd9c375};},{[_0x5db560([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5db560([0x68,0x69,0x67,0x68])}),_0x569788[_0x5db560([0x6f,0x6e])](_0x5db560([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfcdf56=>{_0x2dee0b(_0xfcdf56[_0x5db560([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x112976=!0x0,_0x148757(_0xfcdf56[_0x5db560([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5db560([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5db560([0x6c,0x6f,0x77])}),_0x3bdc42[_0x5db560([0x74,0x68,0x65,0x6e])](()=>{_0x112976||_0x5a94cb(_0x5db560([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1cb38e(){return _0x569788[_0x5db560([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5db560([0x76,0x69,0x65,0x77])][_0x5db560([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5db560([0x61,0x75,0x74,0x6f]);}function _0x280495(){_0x569788[_0x5db560([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5db560([0x76,0x69,0x65,0x77])][_0x5db560([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5db560([0x61,0x75,0x74,0x6f]);}}function _0x44f995(_0x3e628d){const _0x5c948b=[new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c7c3d=>setTimeout(_0x3c7c3d,0x5987221^_0x13ee02)),_0x3bdc42[_0x5db560([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbeb12d=>{let _0x20e794=0x0;_0x569788[_0x5db560([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db560([0x6f,0x6e])](_0x5db560([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5270e0,_0x465a04)=>{_0x465a04[0x0][_0x5db560([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20e794++,_0x20e794==(0x5914d15^_0x13ee02)&&(_0xbeb12d(),_0x5270e0[_0x5db560([0x6f,0x66,0x66])]());});}))];return window[_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5db560([0x72,0x61,0x63,0x65])](_0x5c948b)[_0x5db560([0x74,0x68,0x65,0x6e])](()=>_0x3e628d);}async function _0x2656b2(){await _0x3bdc42,_0x569788[_0x5db560([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db560([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4893e3,_0x569788[_0x5db560([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db560([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4893e3,_0x569788[_0x5db560([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5db560([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2badb9(){return _0x1d9580(_0x5db560([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x47b6e7(_0x5db560([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5db560([0x73,0x74,0x61,0x74,0x65])]==_0x5db560([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5b4a2c(){return _0x1d9580(_0x5db560([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 _0x1a9c46(){return _0x1d9580(_0x5db560([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ff9d2(_0x5558f7){const _0x30a6ab=_0x310511();_0x569788[_0x30a6ab]=_0x5db560([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5558f7,_0x5558f7!=_0x5db560([0x56,0x61,0x6c,0x69,0x64])&&_0x2656b2();}function _0x310511(){const _0x45895a=window[_0x5db560([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5db560([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5db560([0x6e,0x6f,0x77])]())[_0x5db560([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5db560([0x2e]),'');let _0x3637a9=_0x5db560([0x62]);for(let _0x4df691=0x0;_0x4df691<_0x45895a[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4df691+=0x2){let _0x277bf6=window[_0x5db560([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45895a[_0x5db560([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4df691,_0x4df691+0x2));_0x277bf6>=_0x5d4adb[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x277bf6-=_0x5d4adb[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3637a9+=_0x5d4adb[_0x277bf6];}return _0x3637a9;}function _0x4b444d(){const _0x32d042=_0x30cd9c[_0x5db560([0x73,0x70,0x6c,0x69,0x74])](_0x5db560([0x2e]));if(0x3!=_0x32d042[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x511b30(_0x32d042[0x1]);function _0x511b30(_0x4e79d3){const _0x3f732e=_0x5741ff(_0x4e79d3);return _0x3f732e&&_0x1df3d9()?_0x3f732e:null;function _0x1df3d9(){const _0xfdb9a=_0x3f732e[_0x5db560([0x6a,0x74,0x69])],_0x31b029=window[_0x5db560([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfdb9a[_0x5db560([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfdb9a[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42de1b={..._0x3f732e,[_0x5db560([0x6a,0x74,0x69])]:_0xfdb9a[_0x5db560([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xfdb9a[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42de1b[_0x5db560([0x76,0x63])],_0x348c2d(_0x42de1b)==_0x31b029;}}}async function _0xce63a7(){let _0x2639ed=!0x0;try{const _0x422dfc=_0x30cd9c[_0x5db560([0x73,0x70,0x6c,0x69,0x74])](_0x5db560([0x2e])),[_0x5b51eb,_0x34aaa3,_0x52e7a1]=_0x422dfc;return _0x35e656(_0x5b51eb),await _0x54369a(_0x5b51eb,_0x34aaa3,_0x52e7a1),_0x2639ed;}catch(_0x1c5fdf){return!0x1;}function _0x35e656(_0x3bd411){const _0x426bd2=_0x5741ff(_0x3bd411);_0x426bd2&&_0x426bd2[_0x5db560([0x61,0x6c,0x67])]==_0x5db560([0x45,0x53,0x32,0x35,0x36])||(_0x2639ed=!0x1);}async function _0x54369a(_0x8fcb71,_0x5c9d45,_0x109f5b){const _0x3633ba=window[_0x5db560([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5db560([0x66,0x72,0x6f,0x6d])](_0x49048c(_0x109f5b),_0x44142a=>_0x44142a[_0x5db560([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32499e=new window[(_0x5db560([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5db560([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8fcb71+_0x5db560([0x2e])+_0x5c9d45),_0x288aaf=window[_0x5db560([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5db560([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x288aaf)return;const _0x3d75b6=await _0x288aaf[_0x5db560([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5db560([0x6a,0x77,0x6b]),_0x11b153,{[_0x5db560([0x6e,0x61,0x6d,0x65])]:_0x5db560([0x45,0x43,0x44,0x53,0x41]),[_0x5db560([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5db560([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5db560([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x288aaf[_0x5db560([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5db560([0x6e,0x61,0x6d,0x65])]:_0x5db560([0x45,0x43,0x44,0x53,0x41]),[_0x5db560([0x68,0x61,0x73,0x68])]:{[_0x5db560([0x6e,0x61,0x6d,0x65])]:_0x5db560([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d75b6,_0x3633ba,_0x32499e)||(_0x2639ed=!0x1);}}function _0x5741ff(_0x432ef7){return _0x432ef7[_0x5db560([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5db560([0x65,0x79]))?JSON[_0x5db560([0x70,0x61,0x72,0x73,0x65])](_0x49048c(_0x432ef7)):null;}function _0x49048c(_0xfd71d0){return window[_0x5db560([0x61,0x74,0x6f,0x62])](_0xfd71d0[_0x5db560([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5db560([0x2b]))[_0x5db560([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5db560([0x2f])));}function _0x348c2d(_0x1272e0){let _0x4d52f0=0x1505;function _0x325633(_0x2c4d98){for(let _0x2f36b6=0x0;_0x2f36b6<_0x2c4d98[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f36b6++){const _0xe3f7ec=_0x2c4d98[_0x5db560([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f36b6);_0x4d52f0=(_0x4d52f0<<0x5)+_0x4d52f0+_0xe3f7ec,_0x4d52f0&=_0x4d52f0;}}function _0x353801(_0x301d5f){Array[_0x5db560([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x301d5f)?_0x301d5f[_0x5db560([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x353801):_0x301d5f&&typeof _0x301d5f==_0x5db560([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5db560([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x301d5f)[_0x5db560([0x73,0x6f,0x72,0x74])]()[_0x5db560([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x317dd1,_0x28f295])=>{_0x325633(_0x317dd1),_0x353801(_0x28f295);}):_0x325633(window[_0x5db560([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x301d5f));}return _0x353801(_0x1272e0),_0x4d52f0>>>0x0;}function _0x1671a8(_0xf6e26c){return _0xf6e26c[_0x5db560([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5db560([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5db560([0x30]));}function _0x5e0a29(_0x5bd3ae){return _0x5bd3ae[_0x5db560([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5db560([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5db560([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d9580(_0x5637c8){return _0x569788[_0x5db560([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5db560([0x68,0x61,0x73])](_0x5637c8);}function _0x47b6e7(_0x5b73a9){return _0x569788[_0x5db560([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5db560([0x67,0x65,0x74])](_0x5b73a9);}function _0x4893e3(){}function _0x5db560(_0x39fc2c){return _0x39fc2c['map'](_0x41af24=>String['fromCharCode'](_0x41af24))['join']('');}_0x1ff9d2(await _0x35e344());}(this);}set['adapter'](_0x29fb4d){if(this['_adapter'])throw new _0x3c0c52('track-changes-adapter-already-set',this);this['_adapter']=_0x29fb4d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x45ee20=!0x1,toJSON:_0x4d18e7=!0x1}={}){const _0x1017fb=[];for(const _0x4206a5 of this['_suggestions']['values']())_0x45ee20&&!_0x4206a5['isInContent']||_0x1017fb['push'](_0x4206a5);return _0x4d18e7?_0x1017fb['map'](_0x7a914f=>_0x7a914f['toJSON']()):_0x1017fb;}['getSuggestion'](_0x9a8b1b){const _0x1bb44e=this['_suggestions']['get'](_0x9a8b1b);if(!_0x1bb44e)throw new _0x3c0c52('track-changes-suggestion-not-found',this);return _0x1bb44e;}['hasSuggestion'](_0x18828e){return this['_suggestions']['has'](_0x18828e);}['addSuggestionData'](_0x5bb240){const {authorId:_0x46a2fa,id:_0x5cbfb1,attributes:_0x1a274d}=_0x5bb240,[_0x1b506e,_0x5a56ef]=_0x5bb240['type']['split'](':'),_0x4c06f3=this['_suggestions']['get'](_0x5cbfb1)||this['_createSuggestion'](_0x1b506e,_0x5a56ef,_0x5cbfb1,_0x46a2fa,_0x1a274d);if(this['_addThreadToSuggestion'](_0x4c06f3),this['_checkSuggestionCorrectness'](_0x4c06f3,_0x1b506e,_0x5a56ef||null,_0x46a2fa),_0x4c06f3['createdAt']=_0x5bb240['createdAt'],_0x4c06f3['_isDataLoaded']=!0x0,_0x1a274d&&_0x1a274d['@external']){const _0x9dbd8c=_0x1a274d['@external'],_0x398cb1=this['_getExternalAuthor'](_0x9dbd8c['authorName']);_0x4c06f3['authoredAt']=_0x9dbd8c['createdAt'],_0x4c06f3['author']=_0x398cb1,_0x4c06f3['isExternal']=!0x0;}else _0x4c06f3['authoredAt']=_0x5bb240['createdAt'];switch(_0x5bb240['data']&&(_0x4c06f3['data']=_0x5bb240['data']),_0x5bb240['attributes']&&(_0x4c06f3['attributes']=_0x5bb240['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4c06f3['_saved']=!0x0),this['_suggestionState']['get'](_0x4c06f3)){case'notReady':this['_suggestionState']['set'](_0x4c06f3,'dataReady');break;case'markerReady':_0x4c06f3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4c06f3])),this['_refreshSuggestionsChain'](new Set([_0x4c06f3])),this['_suggestionState']['set'](_0x4c06f3,'ready'),this['fire']('suggestionLoaded',_0x4c06f3)):this['_suggestionState']['set'](_0x4c06f3,'removed');}return _0x4c06f3;}['acceptSuggestion'](_0x4bde77){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3745bd of _0x4bde77['getAllAdjacentSuggestions']())_0x3745bd['accept']();});});}['discardSuggestion'](_0x210c19){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x134efe of _0x210c19['getAllAdjacentSuggestions']())_0x134efe['discard']();});});}['enableCommand'](_0x1048e6,_0x6a79ce){const _0x2fdf13=this['editor']['commands']['get'](_0x1048e6);if(!_0x2fdf13)throw new _0x3c0c52('track-changes-command-not-found',this,{'commandName':_0x1048e6});if(this['_enabledCommands']['has'](_0x2fdf13))throw new _0x3c0c52('track-changes-enable-command-twice',this,{'commandName':_0x1048e6});this['_enabledCommands']['add'](_0x2fdf13),_0x6a79ce&&_0x2fdf13['on']('execute',(_0x3dbbc6,_0x148502)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x148502['length']>0x0&&_0x148502[_0x148502['length']-0x1]&&_0x148502[_0x148502['length']-0x1]['forceDefaultExecution']?_0x148502['pop']():(_0x3dbbc6['return']=_0x6a79ce((..._0x40b02c)=>_0x2fdf13['execute'](..._0x40b02c,{'forceDefaultExecution':!0x0}),..._0x148502),_0x3dbbc6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x447f5a){let _0x25c3a2,_0x5a5f01;const _0x595aba=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x25c3a2=_0x447f5a();}catch(_0x96e2df){_0x5a5f01=_0x96e2df;}return _0x595aba||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5a5f01&&_0x3c0c52['rethrowUnexpectedError'](_0x5a5f01,this),_0x25c3a2;}['markInsertion'](_0x5bdd1e,_0x3fc621=null,_0x151ef6={}){if(_0x5bdd1e['isCollapsed'])return null;const _0x4eff7b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x546ec3,meta:_0x4a6755}of this['_findSuggestions'](_0x5bdd1e,'insertion'))if(_0x4a6755['isOwn']){if(!_0x4a6755['isNextTo']){if(_0x4a6755['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x546ec3,_0x151ef6))continue;return _0x546ec3;}if(Xt(_0x546ec3,_0x151ef6))return _0x546ec3;this['_breakSuggestionMarker'](_0x546ec3,_0x5bdd1e['start'],_0x5bdd1e['end']);break;}if(_0x3fc621==_0x546ec3['subType']&&Xt(_0x546ec3,_0x151ef6)){const _0x188b14=_0x546ec3['getFirstRange']();return _0x188b14['start']['isEqual'](_0x5bdd1e['end'])?this['_setSuggestionRange'](_0x546ec3,this['_model']['createRange'](_0x5bdd1e['start'],_0x188b14['end'])):this['_setSuggestionRange'](_0x546ec3,this['_model']['createRange'](_0x188b14['start'],_0x5bdd1e['end'])),_0x546ec3;}}const _0x11983d=_0x29542d(),_0x471672=_0x4eff7b['id'],_0x322460=_0x3fc621?'insertion:'+_0x3fc621:'insertion',_0x7a4468=this['_setSuggestionData']({'id':_0x11983d,'type':_0x322460,'createdAt':new Date(),'authorId':_0x471672,'attributes':_0x151ef6});return this['_addSuggestionMarker'](_0x322460,_0x11983d,_0x471672,_0x5bdd1e),_0x7a4468;}['markMultiRangeInsertion'](_0x199210,_0x143e38='multi',_0x3c3ce7={}){const _0x26380c=this['editor']['plugins']['get']('Users')['me'],_0x7ec64=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x143e38,'join');for(const _0x5abc4b of this['getSuggestions']())if(_0x5abc4b['author']['id']==_0x26380c['id']&&'insertion'==_0x5abc4b['type']&&_0x5abc4b['subType']==_0x143e38&&Xt(_0x5abc4b,_0x3c3ce7)&&(_0x7ec64(_0x5abc4b['getRanges'](),_0x199210)||_0x7ec64(_0x199210,_0x5abc4b['getRanges']()))){for(const _0x53bf17 of _0x199210)_0x5abc4b['addRange'](_0x53bf17);return _0x5abc4b;}for(const {suggestion:_0x1ea615,meta:_0x13acde}of this['_findSuggestions'](_0x199210,'insertion')){if(!_0x13acde['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x13acde['containsRangeInObject'])continue;if(!Xt(_0x1ea615,_0x3c3ce7))continue;let _0x3842b3=!0x0;for(const _0x451a72 of _0x1ea615['getRanges']())for(const _0x2882ca of _0x199210)if(!_0x451a72['containsRange'](_0x2882ca)){_0x3842b3=!0x1;break;}if(_0x3842b3)return _0x1ea615;}const _0x17863e=_0x29542d(),_0x2c5f41=_0x26380c['id'],_0x2694d5='insertion:'+_0x143e38,_0x3e0fa0=this['_setSuggestionData']({'id':_0x17863e,'type':_0x2694d5,'createdAt':new Date(),'authorId':_0x2c5f41,'attributes':_0x3c3ce7});for(const _0x55a200 of _0x199210)this['_addSuggestionMarker'](_0x2694d5,_0x17863e,_0x2c5f41,_0x55a200,o['getMultiRangeId']());return _0x3e0fa0;}['markInlineFormat'](_0x2d3911,_0x1bf4b7,_0x901276=null,_0x3afc06={}){if(_0x901276=_0x901276||Kt(_0x1bf4b7),_0x2d3911['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x24adb4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x901276,'accept');return this['forceDefaultExecution'](()=>_0x24adb4([_0x2d3911],_0x1bf4b7,_0x3afc06)),null;}const _0x37e8d8=this['editor']['plugins']['get']('Users')['me'],_0x303d3b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x12119e,meta:_0x997b63}of this['_findSuggestions'](_0x2d3911,'insertion'))_0x997b63['isOwn']&&!_0x997b63['isInsideObject']&&_0x303d3b['push'](..._0x12119e['getRanges']());}const _0x3dc964=function(_0x3460b0,_0x79f64e){const _0xa095fb=[];for(const _0x4292d7 of _0x79f64e){const _0x1cd501=_0x3460b0['getIntersection'](_0x4292d7);_0x1cd501&&_0xa095fb['push'](_0x1cd501);}return _0xa095fb;}(_0x2d3911,_0x303d3b),_0xf2104d=function(_0x252df8,_0x5dfe00){const _0x4a4767=[_0x252df8];for(const _0x4ce08c of _0x5dfe00){let _0xd780fc=0x0;for(;_0xd780fc<_0x4a4767['length'];){const _0x36cd9b=_0x4a4767[_0xd780fc]['getDifference'](_0x4ce08c);_0x4a4767['splice'](_0xd780fc,0x1,..._0x36cd9b),_0xd780fc+=_0x36cd9b['length'];}}return _0x4a4767;}(_0x2d3911,_0x303d3b);_0x3dc964['length']&&this['_model']['change'](()=>{for(const _0x180fdd of _0x3dc964){const _0x1531a1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x901276,'accept');this['forceDefaultExecution'](()=>_0x1531a1([_0x180fdd],_0x1bf4b7,_0x3afc06));}});for(const _0x1c0d4a of _0xf2104d){let _0x5bd3f8=null,_0x4e40a9=_0x1c0d4a['start'],_0x3e43dd=_0x1c0d4a['end'];for(const {suggestion:_0x1c07bd,meta:_0x52d8d4}of this['_findSuggestions'](_0x1c0d4a,'formatInline')){if(!_0x52d8d4['isOwn'])continue;if(_0x1c07bd['subType']!=_0x901276)continue;if(!Xt(_0x1c07bd,_0x3afc06))continue;const _0x575900=_0x1c07bd['getFirstRange']();if(_0x575900['containsRange'](_0x1c0d4a,!0x0))return null;_0x4e40a9=_0x4e40a9['isBefore'](_0x575900['start'])?_0x4e40a9:_0x575900['start'],_0x3e43dd=_0x3e43dd['isAfter'](_0x575900['end'])?_0x3e43dd:_0x575900['end'],_0x5bd3f8?_0x575900['start']['isBefore'](_0x5bd3f8['getFirstRange']()['start'])?(_0x5bd3f8['removeMarkers'](),_0x5bd3f8=_0x1c07bd):_0x1c07bd['removeMarkers']():_0x5bd3f8=_0x1c07bd;}const _0x594941=this['_model']['createRange'](_0x4e40a9,_0x3e43dd);if(_0x5bd3f8)this['_setSuggestionRange'](_0x5bd3f8,_0x594941);else{const _0x471d10=_0x29542d(),_0x135206=_0x37e8d8['id'];this['_setSuggestionData']({'id':_0x471d10,'type':'formatInline:'+_0x901276,'data':_0x1bf4b7,'createdAt':new Date(),'authorId':_0x135206,'attributes':_0x3afc06}),this['_addSuggestionMarker']('formatInline:'+_0x901276,_0x471d10,_0x135206,_0x594941);}}return null;}['markBlockFormat'](_0x4f5fb9,_0x251157,_0x750cc=[],_0x50bbb9=null,_0x1de546={}){_0x251157['formatGroupId']||(_0x251157['formatGroupId']=_0x251157['commandName']),_0x251157['multipleBlocks']=_0x4f5fb9['is']('range'),_0x50bbb9=_0x50bbb9||Kt(_0x251157);const _0x1800f5=_0x750cc['map'](_0x894908=>zt(_0x894908,this['_model'])),_0x427fe5=_0x4f5fb9['is']('range')?_0x4f5fb9:zt(_0x4f5fb9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x51929d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50bbb9,'accept');return this['forceDefaultExecution'](()=>_0x51929d([_0x427fe5],_0x251157,_0x1de546)),null;}_0x1800f5['push'](_0x427fe5);let _0x3c6e30=!0x0;for(const _0x2660fc of _0x1800f5)if(!this['_rangeIsInLocalUserInsertion'](_0x2660fc)){_0x3c6e30=!0x1;break;}if(_0x3c6e30&&'always'!==this['_trackFormatChanges']){const _0x1f82c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50bbb9,'accept');return this['forceDefaultExecution'](()=>_0x1f82c4([_0x427fe5],_0x251157,_0x1de546)),null;}let _0x4b782e=null,_0x4d0c73=_0x427fe5['start'],_0x240634=_0x427fe5['end'];for(const {suggestion:_0x13cd73,meta:_0x4d8e24}of this['_findSuggestions'](_0x427fe5,'formatBlock')){if(!_0x4d8e24['isOwn'])continue;if(_0x4d8e24['isNextTo']||_0x4d8e24['containsRangeInObject']||_0x4d8e24['isInsideObject'])continue;if(_0x13cd73['data']['formatGroupId']!=_0x251157['formatGroupId'])continue;if(!Xt(_0x13cd73,_0x1de546))continue;const _0xa94945=_0x13cd73['getFirstRange']();if(_0x13cd73['subType']==_0x50bbb9){if(_0xa94945['containsRange'](_0x427fe5,!0x0))return null;_0x4d0c73=_0x4d0c73['isBefore'](_0xa94945['start'])?_0x4d0c73:_0xa94945['start'],_0x240634=_0x240634['isAfter'](_0xa94945['end'])?_0x240634:_0xa94945['end'],_0x4b782e?_0xa94945['start']['isBefore'](_0x4b782e['getFirstRange']()['start'])?(_0x4b782e['removeMarkers'](),_0x4b782e=_0x13cd73):_0x13cd73['removeMarkers']():_0x4b782e=_0x13cd73;}else{const _0x5c5263=_0x427fe5['getIntersection'](_0xa94945);this['_cutOutSuggestionMarker'](_0x13cd73,_0x5c5263);}}const _0x543d4e=this['editor']['plugins']['get']('Users')['me'],_0x9482e=_0x29542d(),_0x3d9888=_0x543d4e['id'];if(_0x4b782e)return this['_setSuggestionRange'](_0x4b782e,this['_model']['createRange'](_0x4d0c73,_0x240634)),_0x4b782e;{const _0x1c18e6=this['_setSuggestionData']({'id':_0x9482e,'type':'formatBlock:'+_0x50bbb9,'data':_0x251157,'createdAt':new Date(),'authorId':_0x3d9888,'attributes':_0x1de546});return this['_addSuggestionMarker']('formatBlock:'+_0x50bbb9,_0x9482e,_0x3d9888,this['_model']['createRange'](_0x4d0c73,_0x240634)),_0x1c18e6;}}['markMultiRangeBlockFormat'](_0x3b9efa,_0xbe4041,_0x4f9b6d=[],_0x13ac87=null,_0x34e0d3={}){_0xbe4041['formatGroupId']||(_0xbe4041['formatGroupId']=_0xbe4041['commandName']);const _0x1c3942=_0x3b9efa[0x0];_0xbe4041['multipleBlocks']=_0x1c3942['is']('range'),_0x13ac87=_0x13ac87||Kt(_0xbe4041);const _0x566ed3=_0x4f9b6d['map'](_0x36e9bc=>zt(_0x36e9bc,this['_model'])),_0x3e8ca8=_0x1c3942['is']('range')?_0x3b9efa:_0x3b9efa['map'](_0x3aae92=>zt(_0x3aae92,this['_model']));if('never'===this['_trackFormatChanges']){const _0x155ace=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ac87,'accept');return this['forceDefaultExecution'](()=>_0x155ace(_0x3e8ca8,_0xbe4041,_0x34e0d3)),null;}_0x566ed3['push'](..._0x3e8ca8);let _0x4584ee=!0x0;for(const _0x49b74e of _0x566ed3)if(!this['_rangeIsInLocalUserInsertion'](_0x49b74e)){_0x4584ee=!0x1;break;}if(_0x4584ee&&'always'!==this['_trackFormatChanges']){const _0x5bd984=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ac87,'accept');return this['forceDefaultExecution'](()=>_0x5bd984(_0x3e8ca8,_0xbe4041,_0x34e0d3)),null;}const _0x14c5d1=this['editor']['plugins']['get']('Users')['me'];for(const _0x20d17e of this['getSuggestions']()){if(_0x20d17e['author']['id']!=_0x14c5d1['id'])continue;if('formatBlock'!=_0x20d17e['type']||_0x20d17e['data']['formatGroupId']!=_0xbe4041['formatGroupId'])continue;if(!Xt(_0x20d17e,_0x34e0d3))continue;const _0x33ecc2=_0x20d17e['subType']==_0x13ac87;for(let _0x15ab23=0x0;_0x15ab23<_0x3e8ca8['length'];_0x15ab23++){const _0x3a89a5=_0x3e8ca8[_0x15ab23];for(const _0x51fbee of _0x20d17e['getMarkers']()){const _0x1e137b=_0x51fbee['getRange']();if(_0x3a89a5['isEqual'](_0x1e137b)){_0x33ecc2?(_0x3e8ca8['splice'](_0x15ab23,0x1),_0x15ab23--):_0x20d17e['removeMarker'](_0x51fbee['name']);break;}}}}if(0x0==_0x3e8ca8['length'])return null;const _0x2dba63=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ac87,'join');for(const _0x2efc1f of this['getSuggestions']())if(_0x2efc1f['author']['id']==_0x14c5d1['id']&&'formatBlock'==_0x2efc1f['type']&&_0x2efc1f['data']['formatGroupId']==_0xbe4041['formatGroupId']&&_0x2efc1f['subType']==_0x13ac87&&Xt(_0x2efc1f,_0x34e0d3)&&(_0x2dba63(_0x2efc1f['getRanges'](),_0x3e8ca8)||_0x2dba63(_0x3e8ca8,_0x2efc1f['getRanges']()))){for(const _0x3cfd26 of _0x3e8ca8)_0x2efc1f['addRange'](_0x3cfd26);return _0x2efc1f;}const _0x3f4259=_0x29542d(),_0xa0079d=_0x14c5d1['id'],_0x59b7a4='formatBlock:'+_0x13ac87,_0x1da9f5=this['_setSuggestionData']({'id':_0x3f4259,'type':_0x59b7a4,'data':_0xbe4041,'createdAt':new Date(),'authorId':_0xa0079d,'attributes':_0x34e0d3});for(const _0x391c59 of _0x3e8ca8)this['_addSuggestionMarker'](_0x59b7a4,_0x3f4259,_0xa0079d,_0x391c59,o['getMultiRangeId']());return _0x1da9f5;}['markDeletion'](_0x31ffc6,_0x4eb2b2=null,_0x3a8383={}){if(_0x31ffc6['isCollapsed'])return null;const _0x2a82f4=this['editor']['plugins']['get']('Users')['me'],_0x1edce4=new _0x14a494(_0x31ffc6['start'],_0x31ffc6['end']);for(const {suggestion:_0x5e7621,meta:_0x337230}of this['_findSuggestions'](_0x1edce4,'insertion'))if(_0x337230['isOwn']&&!_0x337230['isNextTo']){if(_0x5e7621['isMultiRange']){const _0x3ef031=_0x5e7621['getRanges']()['filter'](_0x3cb803=>'$graveyard'!=_0x3cb803['root']['rootName']);_0x3ef031['every'](_0x4e9dc0=>_0x1edce4['containsRange'](_0x4e9dc0,!0x0))&&_0x5e7621['discard']();if(_0x3ef031['some'](_0x182958=>_0x182958['containsRange'](_0x1edce4,!0x0))){const _0x14c57d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4eb2b2,'accept');return this['forceDefaultExecution'](()=>_0x14c57d([_0x1edce4],null,_0x3a8383)),null;}}else{const _0x500643=_0x1edce4['getIntersection'](_0x5e7621['getFirstRange']());null!==_0x500643&&_0x5e7621['_onDiscard']([_0x500643],null,_0x3a8383);}}if(_0x1edce4['detach'](),_0x1edce4['isCollapsed']||'$graveyard'==_0x1edce4['root']['rootName'])return null;let _0xb206ae=null,_0x1b70b6=_0x1edce4['start'],_0x46d7ca=_0x1edce4['end'];const _0x1ec665=this['_findSuggestions'](_0x1edce4,'deletion');for(const {suggestion:_0x4195ef,meta:_0x730709}of _0x1ec665){const _0x408215=this['_model']['createRange'](_0x1b70b6,_0x46d7ca);if(_0x730709['isOwn']&&(this['_mergeNestedSuggestions']||!_0x730709['containsRangeInObject']&&!_0x730709['isInsideObject'])){if(_0x4195ef['isMultiRange']){if(!Xt(_0x4195ef,_0x3a8383))continue;let _0x503615=!0x0;for(const _0x510eff of _0x4195ef['getRanges']()){if(_0x510eff['containsRange'](_0x408215,!0x0))return _0x4195ef;_0x408215['containsRange'](_0x510eff)||(_0x503615=!0x1);}_0x503615&&_0x4195ef['discard']();}else{const _0x539c83=_0x4195ef['getFirstRange']();if(_0x539c83['containsRange'](_0x408215,!0x0))return _0x4195ef;if(!Xt(_0x4195ef,_0x3a8383)){_0x408215['containsRange'](_0x539c83)?_0x4195ef['removeMarkers']():_0x539c83['containsPosition'](_0x1b70b6)?_0x1b70b6=_0x539c83['end']:_0x539c83['containsPosition'](_0x46d7ca)&&(_0x46d7ca=_0x539c83['start']);continue;}_0x1b70b6=_0x1b70b6['isBefore'](_0x539c83['start'])?_0x1b70b6:_0x539c83['start'],_0x46d7ca=_0x46d7ca['isAfter'](_0x539c83['end'])?_0x46d7ca:_0x539c83['end'],_0x3a8383=Object['assign']({},_0x4195ef['attributes']),_0xb206ae?_0x539c83['start']['isBefore'](_0xb206ae['getFirstRange']()['start'])?(_0xb206ae['removeMarkers'](),_0xb206ae=_0x4195ef):_0x4195ef['removeMarkers']():_0xb206ae=_0x4195ef;}}}if(_0xb206ae)return this['_setSuggestionRange'](_0xb206ae,this['_model']['createRange'](_0x1b70b6,_0x46d7ca)),_0xb206ae;{const _0x2eb409=_0x29542d(),_0x2b8856=this['_model']['createRange'](_0x1b70b6,_0x46d7ca),_0x41f1e5=_0x2a82f4['id'],_0x537940=_0x4eb2b2?'deletion:'+_0x4eb2b2:'deletion',_0x2f1bae=this['_setSuggestionData']({'id':_0x2eb409,'type':_0x537940,'createdAt':new Date(),'authorId':_0x41f1e5,'attributes':_0x3a8383});return this['_addSuggestionMarker'](_0x537940,_0x2eb409,_0x41f1e5,_0x2b8856),_0x2f1bae;}}['markMultiRangeDeletion'](_0x55bffd,_0x52aad0='multi',_0x28bebc={}){const _0x508704=this['editor']['plugins']['get']('Users')['me'],_0x195a16=_0x55bffd['map'](_0xe81bc2=>new _0x14a494(_0xe81bc2['start'],_0xe81bc2['end'])),_0x51f939=new Set();for(const {suggestion:_0x3fa7dc,meta:_0x2268c2}of this['_findSuggestions'](_0x195a16,'insertion'))_0x2268c2['isOwn']&&!_0x2268c2['isNextTo']&&_0x51f939['add'](_0x3fa7dc);for(const _0x5b974f of _0x51f939)if(_0x5b974f['isMultiRange']){const _0x4a438d=_0x5b974f['getRanges']();(!_0x5b974f['attributes']||!_0x5b974f['attributes']['skipNestingCheck'])&&(_0x4a438d['every'](_0x5759f7=>_0x195a16['some'](_0x3f5a04=>_0x3f5a04['containsRange'](_0x5759f7,!0x0)))&&_0x5b974f['discard']());if(_0x195a16['every'](_0x6f9667=>_0x4a438d['some'](_0xddc3f9=>_0xddc3f9['containsRange'](_0x6f9667,!0x0)))){const _0x453a67=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52aad0,'accept');return this['forceDefaultExecution'](()=>_0x453a67(_0x55bffd,null,_0x28bebc)),null;}}else{const _0x2eb6f7=_0x5b974f['getFirstRange']();_0x195a16['some'](_0x1988bb=>_0x1988bb['containsRange'](_0x2eb6f7,!0x0))&&_0x5b974f['discard']();if(_0x195a16['every'](_0x10c2d5=>_0x2eb6f7['containsRange'](_0x10c2d5,!0x0))){const _0x535031=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52aad0,'accept');return this['forceDefaultExecution'](()=>_0x535031(_0x195a16,null,_0x28bebc)),null;}}const _0x1f9a20=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52aad0,'join');let _0x1a33c9=null;for(const _0x1eb839 of this['getSuggestions']())if(_0x1eb839['author']['id']==_0x508704['id']&&_0x1eb839['isInContent']&&'deletion'==_0x1eb839['type']&&_0x1eb839['subType']==_0x52aad0&&Xt(_0x1eb839,_0x28bebc)&&(_0x1f9a20(_0x1eb839['getRanges'](),_0x195a16)||_0x1f9a20(_0x195a16,_0x1eb839['getRanges']()))){if(_0x1a33c9){if(_0x1eb839['commentThread']&&_0x1eb839['commentThread']['length'])continue;for(const _0x43270f of _0x1eb839['getRanges']())_0x1a33c9['isIntersectingWithRange'](_0x43270f)||_0x1a33c9['addRange'](_0x43270f);_0x1eb839['removeMarkers']();}else{_0x1a33c9=_0x1eb839;for(const _0x31d26d of _0x195a16)_0x1eb839['isIntersectingWithRange'](_0x31d26d)||_0x1eb839['addRange'](_0x31d26d);}}if(_0x1a33c9)return _0x1a33c9;_0x51f939['clear']();for(const {suggestion:_0x4f0fb4,meta:_0x52eca4}of this['_findSuggestions'](_0x195a16,'deletion'))_0x52eca4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x52eca4['containsRangeInObject']&&!_0x52eca4['isInsideObject'])&&Xt(_0x4f0fb4,_0x28bebc)&&_0x51f939['add'](_0x4f0fb4);for(const _0x1061a8 of _0x51f939){const _0x445867=_0x1061a8['getRanges']();if(!_0x28bebc||!_0x28bebc['skipNestingCheck']){if(_0x195a16['every'](_0xb80aef=>_0x445867['some'](_0x525db6=>_0x525db6['containsRange'](_0xb80aef,!0x0))))return _0x1061a8;}(!_0x1061a8['attributes']||!_0x1061a8['attributes']['skipNestingCheck'])&&(_0x445867['every'](_0x280805=>_0x195a16['some'](_0x24a8af=>_0x24a8af['containsRange'](_0x280805,!0x0)))&&_0x1061a8['discard']());}const _0x223847=_0x29542d(),_0x75f54b=_0x508704['id'],_0x37a06d='deletion:'+_0x52aad0,_0x210071=this['_setSuggestionData']({'id':_0x223847,'type':_0x37a06d,'createdAt':new Date(),'authorId':_0x75f54b,'attributes':_0x28bebc});for(const _0x129463 of _0x195a16)_0x129463['detach'](),_0x129463['isCollapsed']||'$graveyard'==_0x129463['root']['rootName']||this['_addSuggestionMarker'](_0x37a06d,_0x223847,_0x75f54b,_0x129463,o['getMultiRangeId']());return _0x210071;}['markAttributeChange'](_0x5ae8f,_0x127352,_0x53b964,_0xe2ef96,_0x2e2234){if(_0x5ae8f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x19fc33=this['editor']['plugins']['get']('Users')['me']['id'],_0x393e66=Array['from'](this['_suggestions']['values']())['filter'](_0x1b876c=>'attribute'==_0x1b876c['type']&&_0x1b876c['data']['key']==_0x127352&&_0x1b876c['isIntersectingWithRange'](_0x5ae8f));if('default'===this['_trackFormatChanges']){const _0x9f9218=this['_findSuggestions'](_0x5ae8f,'insertion')['filter'](({meta:_0x13d748})=>_0x13d748['isOwn']&&!_0x13d748['isInsideObject']&&!_0x13d748['isNextTo'])['map'](({suggestion:_0x149094})=>_0x149094);_0x393e66['unshift'](..._0x9f9218);}const _0x186b03=new Map([[_0x5ae8f,_0x53b964]]);for(const _0x4bddea of _0x393e66){const _0x877bac='attribute'==_0x4bddea['type']?_0x4bddea['data']['oldValue']:void 0x0,_0xbddde5=_0x4bddea['getFirstRange'](),_0xda5dcc=Array['from'](_0x186b03['keys']())['find'](_0x218288=>_0x218288['isIntersecting'](_0xbddde5));if(!_0xda5dcc)continue;const _0x5e988b=_0xda5dcc['getDifference'](_0xbddde5);this['_isBlockAttribute'](_0x127352)&&'insertion'==_0x4bddea['type']&&0x0!=_0x5e988b['length']||(_0x186b03['delete'](_0xda5dcc),_0x5e988b['forEach'](_0x21d8f4=>{_0x186b03['set'](_0x21d8f4,_0x53b964);}),'insertion'!=_0x4bddea['type']&&_0x877bac!=_0xe2ef96&&_0x186b03['set'](_0xda5dcc['getIntersection'](_0xbddde5),_0x877bac));}const _0x5de016=[];for(const [_0x24d11e,_0x5e85fb]of _0x186b03){const _0x4bcac5=_0x29542d(),_0x111b07={'key':_0x127352,'oldValue':_0x5e85fb,'newValue':_0xe2ef96};_0x127352['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':_0x127352});const _0x427227=('attribute:'+(_0x127352+'|'+Kt({'newValue':_0xe2ef96})))['substring'](0x0,0x3c),_0x221341=this['_setSuggestionData']({'id':_0x4bcac5,'type':_0x427227,'data':_0x111b07,'createdAt':new Date(),'authorId':_0x19fc33,'attributes':_0x2e2234});_0x5de016['push'](_0x221341),this['_addSuggestionMarker'](_0x427227,_0x4bcac5,_0x19fc33,_0x24d11e);}return _0x5de016;}['enableDefaultAttributesIntegration'](_0x350680){this['enableCommand'](_0x350680,(_0x30ab3d,..._0x4cd1bd)=>{this['_recordAttributeChanges'](()=>{_0x30ab3d(..._0x4cd1bd);});});}['registerBlockAttribute'](_0x4f671c){this['_blockAttributeKeys']['add'](_0x4f671c);}['registerInlineAttribute'](_0x4b30ab){this['_inlineAttributeKeys']['add'](_0x4b30ab);}['_getAttributeKey'](_0x21da7a){return'attribute'==_0x21da7a['type']?_0x21da7a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x27fd5c,_0x319b15){const _0x3a99e4=_0x27fd5c['getFirstMarker']();this['_model']['change'](_0x35912b=>{_0x35912b['updateMarker'](_0x3a99e4,{'range':_0x319b15});});}['_addThreadToSuggestion'](_0x32043b){const _0x45acbb=_0x32043b['id'],_0x8caba2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x45acbb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x8caba2,'threadId':_0x45acbb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xeaf911=this['_commentsRepository']['getCommentThread'](_0x45acbb);_0xeaf911['unbind']('isRemovable'),_0xeaf911['isRemovable']=!0x1,_0x32043b['commentThread']=_0xeaf911;}['_checkSuggestionCorrectness'](_0x4676e6,_0x47d4f6,_0x6dad05,_0x47b432){if(_0x4676e6['type']!=_0x47d4f6||_0x4676e6['subType']!=_0x6dad05||_0x4676e6['creator']['id']!=_0x47b432)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3c0c52('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x447539,_0x151a98){const _0x5d59df=_0x447539['getFirstRange']();if(_0x151a98['isEqual'](_0x5d59df))_0x447539['removeMarkers']();else{if(_0x5d59df['containsRange'](_0x151a98)){const _0x505818=this['_model']['createPositionAt'](_0x151a98['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x447539,this['_model']['createRange'](_0x5d59df['start'],_0x505818));const _0x1c1b4d=_0x29542d(),_0x2d6953=_0x447539['creator']['id'],_0x380535=_0x447539['type']+':'+_0x447539['subType'];this['_setSuggestionData']({'id':_0x1c1b4d,'type':_0x380535,'createdAt':new Date(),'authorId':_0x2d6953,'data':_0x447539['data'],'attributes':_0x447539['attributes']});const _0x5502f2=this['_model']['createPositionAt'](_0x151a98['end']['parent'],'after'),_0x36fae4=this['_model']['createRange'](_0x5502f2,_0x5d59df['end']);this['_addSuggestionMarker'](_0x380535,_0x1c1b4d,_0x2d6953,_0x36fae4);}else{if(_0x5d59df['containsPosition'](_0x151a98['start'])){const _0x5d8f57=this['_model']['createPositionAt'](_0x151a98['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x447539,this['_model']['createRange'](_0x5d59df['start'],_0x5d8f57));}else{const _0x48ca14=this['_model']['createPositionAt'](_0x151a98['end']['parent'],'after');this['_setSuggestionRange'](_0x447539,this['_model']['createRange'](_0x48ca14,_0x5d59df['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x360c9f){for(const {suggestion:_0x432a01,meta:_0x34e4f4}of this['_findSuggestions'](_0x360c9f,'insertion')){if(!_0x34e4f4['isOwn'])continue;const _0x36d457=_0x432a01['getRanges']();for(const _0x970a9f of _0x36d457)if(!_0x360c9f['getDifference'](_0x970a9f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x59fcce){const _0x152a20=this['editor']['plugins']['get']('Users')['getUser'](_0x59fcce);if(!_0x152a20)throw new _0x3c0c52('track-changes-user-not-found',this);return _0x152a20;}['_getExternalAuthor'](_0x583d55){const _0x460aa4=this['editor']['plugins']['get']('Users'),_0x14df22=_0x1e8182('external:'+_0x583d55),_0x1feed4=_0x460aa4['getUser'](_0x14df22);return _0x1feed4||_0x460aa4['addUser']({'id':_0x14df22,'name':_0x583d55});}['_createSuggestion'](_0x51465f,_0x2161c1,_0x1d5aee,_0x71da89,_0x25eda2){const _0x4abc77=this['_getAuthorFromId'](_0x71da89),_0x4d3c4d=this['_suggestionFactory']['buildSuggestion'](_0x51465f,_0x2161c1,_0x1d5aee,_0x4abc77,_0x25eda2,_0x5b03ca=>{this['_updateSuggestionData'](_0x1d5aee,{'attributes':_0x5b03ca});const _0x3c5f42=this['getSuggestion'](_0x1d5aee);this['_joinWithAdjacentSuggestions'](new Set([_0x3c5f42])),this['_refreshSuggestionsChain'](new Set([_0x3c5f42]));});return this['listenTo'](_0x4d3c4d,'accept',()=>{this['_updateSuggestionData'](_0x1d5aee,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4d3c4d,'discard',()=>{this['_updateSuggestionData'](_0x1d5aee,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1d5aee,_0x4d3c4d),this['_suggestionState']['set'](_0x4d3c4d,'notReady'),_0x4d3c4d;}['_splitMarkerName'](_0x36aa8f){const _0x5f341a=_0x36aa8f['split'](':');return{'group':_0x5f341a[0x0],'type':_0x5f341a[0x1],'subType':_0x5f341a['length']>=0x5?_0x5f341a[0x2]:null,'id':_0x5f341a['length']<0x5?_0x5f341a[0x2]:_0x5f341a[0x3],'authorId':_0x5f341a['length']<0x5?_0x5f341a[0x3]:_0x5f341a[0x4],'markerCount':0x6==_0x5f341a['length']?_0x5f341a[0x5]:null};}['_breakSuggestionMarker'](_0x4c1ca9,_0xb656c4,_0x9894de){const _0x5af64f=_0x4c1ca9['getFirstRange'](),_0x4de4a4=_0x5af64f['start'],_0x444895=_0x5af64f['end'];this['_setSuggestionRange'](_0x4c1ca9,this['_model']['createRange'](_0x4de4a4,_0xb656c4));const _0xfa6b89=_0x29542d(),_0x3675fb=_0x4c1ca9['creator']['id'],_0x1d2ba4=_0x4c1ca9['type']+(_0x4c1ca9['subType']?':'+_0x4c1ca9['subType']:'');this['_setSuggestionData']({'id':_0xfa6b89,'type':_0x1d2ba4,'createdAt':new Date(),'authorId':_0x3675fb,'originalSuggestionId':_0x4c1ca9['id'],'attributes':_0x4c1ca9['attributes'],'data':_0x4c1ca9['data']});const _0x25e1b6=this['_getAttributeKey'](_0x4c1ca9);('formatBlock'==_0x4c1ca9['type']||_0x25e1b6&&this['_isBlockAttribute'](_0x25e1b6))&&(_0x9894de=this['_model']['createPositionBefore'](_0x9894de['parent'])),this['_addSuggestionMarker'](_0x1d2ba4,_0xfa6b89,_0x3675fb,this['_model']['createRange'](_0x9894de,_0x444895));}['_findSuggestions'](_0x4a09d0,_0x335385=null){const _0x42211c=[],_0x24199d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4a09d0)||(_0x4a09d0=[_0x4a09d0]);for(const _0x44de4b of this['getSuggestions']()){if(!_0x44de4b['isInContent'])continue;if(_0x335385&&_0x44de4b['type']!=_0x335385)continue;let _0x20cffc=!0x1;for(const _0x38fcb7 of _0x44de4b['getRanges']()){for(const _0x5479bd of _0x4a09d0){const _0x2bc18d=_0x5479bd['start']['isEqual'](_0x38fcb7['end'])||_0x5479bd['end']['isEqual'](_0x38fcb7['start']);if(_0x2bc18d||_0x5479bd['getIntersection'](_0x38fcb7)){const _0x3afaa2=_0x5479bd['containsRange'](_0x38fcb7)&&Gt(this['_model']['schema'],_0x38fcb7['start'],_0x5479bd),_0x4f7313=_0x38fcb7['containsRange'](_0x5479bd)&&Gt(this['_model']['schema'],_0x5479bd['start'],_0x38fcb7);_0x42211c['push']({'suggestion':_0x44de4b,'meta':{'isOwn':_0x24199d==_0x44de4b['author'],'isNextTo':_0x2bc18d,'isInsideObject':_0x3afaa2,'containsRangeInObject':_0x4f7313}}),_0x20cffc=!0x0;break;}}if(_0x20cffc)break;}}return _0x42211c;}['_addSuggestionMarker'](_0x48da1f,_0x498596,_0x5119f3,_0x21811a,_0x296c90){this['_model']['change'](_0x2700bb=>{let _0x576f21='suggestion:'+_0x48da1f+':'+_0x498596+':'+_0x5119f3;_0x296c90&&(_0x576f21=_0x576f21+':'+_0x296c90),_0x2700bb['addMarker'](_0x576f21,{'range':_0x21811a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5db74b){const _0x424d49=_0x5db74b['previous'],_0x578042=_0x5db74b['next'];_0x5db74b['previous']=null,_0x5db74b['next']=null,null!=_0x424d49&&_0x424d49['next']==_0x5db74b&&(_0x424d49['next']=_0x578042),null!=_0x578042&&_0x578042['previous']==_0x5db74b&&(_0x578042['previous']=_0x424d49),'ready'==this['_suggestionState']['get'](_0x5db74b)&&(this['_suggestionState']['set'](_0x5db74b,'removed'),this['fire']('suggestionUnloaded',_0x5db74b,_0x424d49,_0x578042));}['_setSuggestionData'](_0x2d3217){const _0x25cca3=_0x2d3217['id'],_0x23df40=this['addSuggestionData'](_0x2d3217);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1cb8df=this['editor']['plugins']['get']('PendingActions'),_0x4e3d53=_0x23df40['hasComments'],_0x1aaefa=_0x23df40['subType']?_0x23df40['type']+':'+_0x23df40['subType']:_0x23df40['type'],_0x1aef7b=this['editor']['locale'],_0x8a4768=_0x1cb8df['add'](c(_0x1aef7b,'PENDING_ACTION_SUGGESTION')),_0x44dafd={'id':_0x25cca3,'type':_0x1aaefa,'hasComments':_0x4e3d53,'data':_0x2d3217['data']||null,'originalSuggestionId':_0x2d3217['originalSuggestionId']||null,'attributes':_0x23df40['attributes']};this['_adapter']['addSuggestion'](_0x44dafd)['then'](_0x44efab=>{_0x23df40['_saved']=!0x0,_0x1cb8df['remove'](_0x8a4768),_0x44efab&&_0x44efab['createdAt']&&(this['_suggestions']['get'](_0x25cca3)['createdAt']=_0x44efab['createdAt']);})['catch'](_0x191bbd=>{throw _0x1b8704('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x23df40['discard']();}),_0x23df40['stopListening'](),this['_suggestions']['delete'](_0x23df40['id']),this['_suggestionState']['delete'](_0x23df40),_0x191bbd;});}return _0x23df40;}['_isBlockAttribute'](_0x1b1a79){return this['_blockAttributeKeys']['has'](_0x1b1a79);}['_updateSuggestionData'](_0x47a66a,_0x5f0b73){const _0x33d310=this['editor']['plugins']['get']('PendingActions'),_0x363dba=this['getSuggestion'](_0x47a66a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x363dba['_saved']){const _0x20154a=_0x33d310['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x47a66a,_0x5f0b73)['then'](()=>{_0x33d310['remove'](_0x20154a);});}else _0x363dba['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x47a66a,_0x5f0b73);});}}['_getSuggestionData'](_0x57191c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3c0c52('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x57191c);}['_handleNewSuggestionMarker'](_0x4a3ec7){const {id:_0xcad960,type:_0x56d1df,subType:_0x4e2e1c,authorId:_0x226d97}=this['_splitMarkerName'](_0x4a3ec7),_0x2c6af7=this['_suggestions']['get'](_0xcad960)||this['_createSuggestion'](_0x56d1df,_0x4e2e1c,_0xcad960,_0x226d97,{});switch(this['_checkSuggestionCorrectness'](_0x2c6af7,_0x56d1df,_0x4e2e1c,_0x226d97),this['_suggestionState']['get'](_0x2c6af7)){case'notReady':this['_getSuggestionData'](_0xcad960)['then'](_0x3e711f=>{let _0x42bd3e=Promise['resolve']();_0x3e711f['hasComments']&&(_0x42bd3e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xcad960})),_0x42bd3e['then'](()=>{this['addSuggestionData'](_0x3e711f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c6af7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xcad960,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c6af7,'ready'),this['fire']('suggestionLoaded',_0x2c6af7);break;case'ready':this['fire']('suggestionChanged',_0x2c6af7);}return _0x2c6af7['addMarkerName'](_0x4a3ec7),_0x2c6af7;}['_refreshSuggestionsChain'](_0x1d082d){const _0x553bd6=Array['from'](_0x1d082d),_0x4d21f6=_0x553bd6['filter'](_0x34c74a=>'attribute'==_0x34c74a['type']);this['_refreshAttributeSuggestionsChain'](_0x4d21f6);const _0x14f3b1=_0x553bd6['filter'](_0x354e09=>!_0x354e09['isMultiRange']&&'attribute'!=_0x354e09['type']),_0x477235=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd599a8=>!_0xd599a8['isMultiRange']&&'attribute'!=_0xd599a8['type']),_0x1bde5b=_0x477235['filter'](_0x46c896=>!_0x1d082d['has'](_0x46c896)),_0x1810e1=new Map(_0x477235['map'](_0x35f9ef=>[_0x35f9ef,this['_suggestionFactory']['getSuggestionCallback'](_0x35f9ef['type'],_0x35f9ef['subType'],'chain')])),_0x49226e=new Map(_0x477235['map'](_0x3c2b44=>[_0x3c2b44,_0x3c2b44['getFirstRange']()])),_0x215a94=new Set(),_0x3f1a12=new Set();for(let _0x489ebf=0x0;_0x489ebf<_0x14f3b1['length'];_0x489ebf++)_0x104068(_0x14f3b1[_0x489ebf],_0x14f3b1,_0x489ebf+0x1);for(let _0x106a21=0x0;_0x106a21<_0x14f3b1['length'];_0x106a21++)_0x104068(_0x14f3b1[_0x106a21],_0x1bde5b,0x0);const _0x55fce2=new Set();for(let _0x7d85a7=0x0;_0x7d85a7<_0x14f3b1['length'];_0x7d85a7++){const _0x450ada=_0x14f3b1[_0x7d85a7];!_0x3f1a12['has'](_0x450ada)&&_0x450ada['previous']&&(_0x55fce2['add'](_0x450ada['previous']),_0x450ada['previous']['next']===_0x450ada&&(_0x450ada['previous']['next']=null),_0x450ada['previous']=null),!_0x215a94['has'](_0x450ada)&&_0x450ada['next']&&(_0x55fce2['add'](_0x450ada['next']),_0x450ada['next']['previous']===_0x450ada&&(_0x450ada['next']['previous']=null),_0x450ada['next']=null);}function _0x104068(_0x23fb72,_0x139476,_0x3213cf){for(let _0xab329e=_0x3213cf;_0xab329e<_0x139476['length'];_0xab329e++){const _0xa016d1=_0x779850(_0x23fb72,_0x139476[_0xab329e]);_0xa016d1&&(_0xa016d1[0x0]['next']=_0xa016d1[0x1],_0xa016d1[0x1]['previous']=_0xa016d1[0x0],_0x215a94['add'](_0xa016d1[0x0]),_0x3f1a12['add'](_0xa016d1[0x1]));}}function _0x779850(_0x41239c,_0x4bd732){if(_0x41239c['author']['id']!==_0x4bd732['author']['id'])return null;const _0x4e70d8=_0x1810e1['get'](_0x41239c)(_0x41239c,_0x4bd732,_0x49226e['get'](_0x41239c),_0x49226e['get'](_0x4bd732));if(!_0x4e70d8)return null;return _0x1810e1['get'](_0x4bd732)(_0x41239c,_0x4bd732,_0x49226e['get'](_0x41239c),_0x49226e['get'](_0x4bd732))?_0x4e70d8[0x1]['commentThread']&&_0x4e70d8[0x1]['commentThread']['length']?null:_0x4e70d8:null;}_0x55fce2['size']&&this['_refreshSuggestionsChain'](_0x55fce2);}['_refreshAttributeSuggestionsChain'](_0x16813e){if(0x0==_0x16813e['length'])return;const _0x5af4d6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4790bc=>'attribute'==_0x4790bc['type']&&_0x4790bc['_isDataLoaded']),_0xa63d7f=[],_0x3d5c70=new Map();for(const _0x1ce72c of _0x5af4d6){const _0x340a42=_0x1e8182(_0x1ce72c['attributes']);_0x3d5c70['has'](_0x340a42)||(_0x3d5c70['set'](_0x340a42,_0xa63d7f['length']),_0xa63d7f['push']([]));const _0x35f20d=_0x3d5c70['get'](_0x340a42);_0xa63d7f[_0x35f20d]['push'](_0x1ce72c);}!(function(){_0xa63d7f['sort']((_0x80673b,_0x3477c7)=>{const _0xfbd68b=_0x80673b[0x0]['createdAt'],_0x56733d=_0x3477c7[0x0]['createdAt'];return _0xfbd68b==_0x56733d?_0x80673b[0x0]['attributes']['groupId']<_0x3477c7[0x0]['attributes']['groupId']?-0x1:0x1:_0xfbd68b<_0x56733d?-0x1:0x1;});for(const _0x48ecfb of _0xa63d7f)_0x48ecfb['sort']((_0x3f369d,_0xcc9ab9)=>_0x3f369d['id']<_0xcc9ab9['id']?-0x1:0x1);}());for(let _0x24eb60=0x0;_0x24eb60<_0xa63d7f['length'];_0x24eb60++){if(0x0==_0xa63d7f[_0x24eb60]['length'])continue;const _0x2de6df=[];for(let _0x102ecd=_0x24eb60+0x1;_0x102ecd<_0xa63d7f['length'];_0x102ecd++)0x0!=_0xa63d7f[_0x102ecd]['length']&&_0x3279f6(_0xa63d7f[_0x24eb60],_0xa63d7f[_0x102ecd])&&_0x2de6df['push'](_0x102ecd);for(const _0x4b0fda of _0x2de6df)_0xa63d7f[_0x24eb60]=_0xa63d7f[_0x24eb60]['concat'](_0xa63d7f[_0x4b0fda]),_0xa63d7f[_0x4b0fda]=[];}for(const _0x386593 of _0xa63d7f)for(let _0x116239=0x0;_0x116239<_0x386593['length'];_0x116239++){const _0x3d686d=_0x386593[_0x116239+0x1]||null;_0x386593[_0x116239]['next']!==_0x3d686d&&(_0x386593[_0x116239]['next']=_0x3d686d);}for(const _0x1d319b of _0xa63d7f)for(let _0x322be6=0x0;_0x322be6<_0x1d319b['length'];_0x322be6++){const _0x3bda4d=_0x1d319b[_0x322be6-0x1]||null;_0x1d319b[_0x322be6]['previous']!==_0x3bda4d&&(_0x1d319b[_0x322be6]['previous']=_0x3bda4d);}function _0x3279f6(_0x3c5b81,_0x402a98){if(_0x3c5b81[0x0]['attributes']['groupId']!==_0x402a98[0x0]['attributes']['groupId']&&_0x3c5b81[0x0]['author']!==_0x402a98[0x0]['author'])return!0x1;if(!function(_0x3f849d,_0x3d4b7f){if(!_0x3f849d['hasComments']&&!_0x3d4b7f['hasComments'])return!0x0;if(_0x3f849d['hasComments']&&_0x3d4b7f['hasComments'])return!0x1;if(_0x3f849d['hasComments']&&_0x3d4b7f['createdAt']<_0x3f849d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3d4b7f['hasComments']&&_0x3f849d['createdAt']<_0x3d4b7f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c5b81[0x0],_0x402a98[0x0]))return!0x1;const _0x43f5b8=Ft(_0x3c5b81[0x0]['attributes'],'groupId'),_0x2d8c1d=Ft(_0x402a98[0x0]['attributes'],'groupId');if(!_0xf2f0b6(_0x43f5b8,_0x2d8c1d))return!0x1;return!!_0x3c5b81['every'](_0x2adf2b=>_0x402a98['some'](_0x54ef2f=>_0x2adf2b['getFirstRange']()['isEqual'](_0x54ef2f['getFirstRange']())))&&_0x402a98['every'](_0x4a8e38=>_0x3c5b81['some'](_0x8fef59=>_0x4a8e38['getFirstRange']()['isEqual'](_0x8fef59['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5b654f){const _0x1ffefb=Array['from'](_0x5b654f),_0x34fe83=this['getSuggestions']({'skipNotAttached':!0x0}),_0x6ff8db=_0x34fe83['filter'](_0x29c8cb=>!_0x5b654f['has'](_0x29c8cb)),_0x510059=new Map(_0x1ffefb['map'](_0x5f2c80=>[_0x5f2c80,this['_suggestionFactory']['getSuggestionCallback'](_0x5f2c80['type'],_0x5f2c80['subType'],'join')])),_0x285367=new Map(_0x34fe83['map'](_0x38ed98=>[_0x38ed98,_0x38ed98['getRanges']()]));for(let _0xbcfdc1=0x0;_0xbcfdc1<_0x1ffefb['length'];_0xbcfdc1++){if(_0x3ef8d6(this,_0x1ffefb[_0xbcfdc1],_0x1ffefb,_0xbcfdc1+0x1))return!0x0;}for(let _0x39512e=0x0;_0x39512e<_0x1ffefb['length'];_0x39512e++){if(_0x3ef8d6(this,_0x1ffefb[_0x39512e],_0x6ff8db,0x0))return!0x0;}return!0x1;function _0x3ef8d6(_0x3003a1,_0x34f68d,_0x1759ea,_0x3ddea7){for(let _0x5043fb=_0x3ddea7;_0x5043fb<_0x1759ea['length'];_0x5043fb++){const _0x5b77b3=_0x1759ea[_0x5043fb];if(_0x5b77b3['type']!==_0x34f68d['type']||_0x5b77b3['author']['id']!==_0x34f68d['author']['id']||_0x5b77b3['subType']!==_0x34f68d['subType'])continue;if(!Qt(_0x34f68d,_0x5b77b3))continue;if('attribute'==_0x34f68d['type']&&_0x34f68d['data']['oldValue']!=_0x5b77b3['data']['oldValue'])continue;if('attribute'==_0x34f68d['type']&&_0x3003a1['_isBlockAttribute'](_0x34f68d['data']['key']))continue;if('formatBlock'==_0x34f68d['type']){const _0x2b13a3=_0x3003a1['editor']['model'],_0x453633=_0x34f68d['getContainedElement']();if(_0x453633&&(_0x2b13a3['schema']['isObject'](_0x453633)||_0x2b13a3['schema']['isLimit'](_0x453633)))continue;}const _0x54f48e=_0x510059['get'](_0x34f68d),_0x526dfb=_0x285367['get'](_0x34f68d),_0x11aa19=_0x285367['get'](_0x5b77b3),_0x5c9975=_0x34f68d['commentThread']&&_0x34f68d['commentThread']['length'],_0x528f54=_0x5b77b3['commentThread']&&_0x5b77b3['commentThread']['length'];if(!_0x5c9975&&_0x54f48e(_0x11aa19,_0x526dfb))return _0x3003a1['_joinSuggestions'](_0x5b77b3,_0x34f68d),_0x285367['delete'](_0x34f68d),!0x0;if(!_0x528f54&&_0x54f48e(_0x526dfb,_0x11aa19))return _0x3003a1['_joinSuggestions'](_0x34f68d,_0x5b77b3),_0x285367['delete'](_0x5b77b3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x134160,_0x2fea00){if(_0x134160['isMultiRange']){for(const _0x5a0e08 of _0x2fea00['getRanges']())_0x134160['addRange'](_0x5a0e08);}else{const _0x3065bd=_0x2fea00['getFirstRange']()['end'];this['_setSuggestionRange'](_0x134160,this['_model']['createRange'](_0x134160['getFirstRange']()['start'],_0x3065bd));}_0x2fea00['removeMarkers']();}['_getMarkerAnnouncementText'](_0x118736,_0x3d1e96,_0x333005){const _0x4560de=_0x118736['startsWith']('format')||_0x118736['startsWith']('attribute')?'FORMATTING':_0x118736['toUpperCase']();return c(this['editor']['locale'],_0x3d1e96+'_'+_0x4560de+'_SUGGESTION_ANNOUNCEMENT',_0x333005);}['_initAriaMarkerChangeAnnouncements'](){const _0x39b8d3=this['editor'];if(!_0x39b8d3['ui'])return;const {ariaLiveAnnouncer:_0x11e88}=_0x39b8d3['ui'];_0x478cce(this['_model'],({left:_0x3d65f2,entered:_0x33c48d})=>{for(const _0x43394c of _0x3d65f2){const {group:_0x454c79,type:_0x3235f9}=this['_splitMarkerName'](_0x43394c['name']);if('suggestion'===_0x454c79){_0x11e88['announce'](this['_getMarkerAnnouncementText'](_0x3235f9,'LEAVE'));break;}}for(const _0x195e76 of _0x33c48d){const {group:_0x2029af,type:_0x5b5be8}=this['_splitMarkerName'](_0x195e76['name']);if('suggestion'===_0x2029af){_0x11e88['announce'](this['_getMarkerAnnouncementText'](_0x5b5be8,'ENTER',_0x4f987c(_0x44e7fc)));break;}}});}['_processAttributeChanges'](_0xc6e77c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x41d602=this['editor'],_0x128cd3=_0x41d602['model']['document']['differ']['getChanges']();if(0x0==_0x128cd3['length'])return!0x1;const _0x1ab879=[],_0x13473b=_0x128cd3['filter'](_0x26ef9a=>'attribute'==_0x26ef9a['type']),_0x5939b0=_0x128cd3['filter'](_0x536c1d=>'insert'==_0x536c1d['type']&&'$text'!=_0x536c1d['name']),_0x56056f=_0x128cd3['filter'](_0x4f6212=>'remove'==_0x4f6212['type']&&'$text'!=_0x4f6212['name']);for(const _0x4a5a4e of _0x13473b)_0x1ab879['push']({'key':_0x4a5a4e['attributeKey'],'newValue':_0x4a5a4e['attributeNewValue'],'oldValue':_0x4a5a4e['attributeOldValue'],'range':qt(_0x4a5a4e['range'],_0x41d602['model'])});for(const _0x2fd68f of _0x5939b0){const _0x3d94df=_0x56056f['find'](_0x2618fc=>_0x2618fc['position']['isEqual'](_0x2fd68f['position']));_0x3d94df&&_0x1ab879['push']({'key':u,'newValue':_0x2fd68f['name'],'oldValue':_0x3d94df['name'],'range':_0x41d602['model']['createRangeOn'](_0x2fd68f['position']['nodeAfter'])});}return 0x0!=_0x1ab879['length']&&this['_reduceExistingSuggestions'](_0xc6e77c,_0x1ab879);}['_processAttributeSuggestions'](_0x8c5b59){let _0x466a86=!0x1;const _0x563639=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e5475=>_0x3e5475['data']['newRange']&&_0x3e5475['name']['startsWith']('suggestion:attribute:'));for(const _0x1ffd6e of _0x563639){const {subType:_0x53fcfd,id:_0x14cf47}=this['_splitMarkerName'](_0x1ffd6e['name']),_0x279ece=_0x53fcfd['split']('|')[0x0];for(const _0x44e2e3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x44e2e3['id']!=_0x14cf47&&'attribute'==_0x44e2e3['type']&&_0x44e2e3['data']&&_0x44e2e3['data']['key']==_0x279ece&&_0x44e2e3['getFirstRange']()['isIntersecting'](_0x1ffd6e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x44e2e3,_0x1ffd6e['data']['newRange'],_0x8c5b59),_0x466a86=!0x0);}return _0x466a86;}['_recordAttributeChanges'](_0x2d75b4){this['_recordAttributeSuggestions']=!0x0,_0x2d75b4();}['_isRegisteredAttribute'](_0x1ec05e){const _0x1a5446=this['_isBlockAttribute'](_0x1ec05e),_0x350fe3=this['_inlineAttributeKeys']['has'](_0x1ec05e);return _0x1a5446||_0x350fe3;}['_reduceExistingSuggestions'](_0xe42747,_0x5c0d01){if(0x0==_0x5c0d01['length'])return!0x1;let _0x341cea=!0x1;for(const _0x412974 of _0x5c0d01){const _0x2d631c=this['_findSuggestions'](_0x412974['range'],'attribute')['filter'](_0x591261=>!_0x591261['meta']['isNextTo'])['map'](_0x55b0c2=>_0x55b0c2['suggestion']),_0x5b0545=_0x1e8182({'newValue':_0x412974['newValue']});_0x2d631c['filter'](_0x18bc13=>{const [_0x1277d6,_0xf9429]=_0x18bc13['subType']['split']('|');return _0x1277d6==_0x412974['key']&&_0xf9429!=_0x5b0545;})['forEach'](_0x1b30cc=>{this['_reduceSuggestionAttributeRange'](_0x1b30cc,_0x412974['range'],_0xe42747),_0x341cea=!0x0;});}return _0x341cea;}['_reduceSuggestionAttributeRange'](_0x1fddf5,_0x413375,_0x3ee167){const _0x205f09=_0x1fddf5['getFirstRange']()['getDifference'](_0x413375);0x0!==_0x205f09['length']?0x1!==_0x205f09['length']?this['_breakSuggestionMarker'](_0x1fddf5,_0x413375['start'],_0x413375['end']):this['_setSuggestionRange'](_0x1fddf5,_0x205f09[0x0]):_0x3ee167['removeMarker'](_0x1fddf5['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3174e8){this['_editor']=_0x3174e8,this['_model']=_0x3174e8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2bb2b6,_0xd603fe,_0x2abc8b,_0x43fe24,_0x18a154,_0x59bcc1){return new o(this['_model'],{'type':_0x2bb2b6,'subType':_0xd603fe,'id':_0x2abc8b,'author':_0x43fe24,'creator':_0x43fe24,'attributes':_0x18a154,'onAttributesChange':_0x59bcc1,'onAccept':(..._0x1b1c2f)=>this['getSuggestionCallback'](_0x2bb2b6,_0xd603fe,'accept')(..._0x1b1c2f),'onDiscard':(..._0x1bc9f3)=>this['getSuggestionCallback'](_0x2bb2b6,_0xd603fe,'discard')(..._0x1bc9f3)});}['registerCustomCallback'](_0x426385,_0x255710,_0x503cf4,_0x2858e7){const _0xc80105=_0x426385+':'+_0x255710+':'+_0x503cf4;this['_customCallbacks']['set'](_0xc80105,_0x2858e7);}['getSuggestionCallback'](_0x5dc2af,_0x531224,_0x597775){const _0x11faf0=_0x5dc2af+':'+_0x531224+':'+_0x597775;return this['_customCallbacks']['get'](_0x11faf0)||this['_defaultCallbacks']['get'](_0x5dc2af+':'+_0x597775);}['_registerDefaultCallbacks'](){const _0x4d0c10=()=>!0x1,_0x20e18e=_0x518097=>{_0x518097['sort']((_0x4768e9,_0x2ddc95)=>_0x4768e9['start']['isBefore'](_0x2ddc95['start'])?0x1:-0x1),this['_model']['change'](_0x581d1a=>{for(const _0x331141 of _0x518097){let _0x106778;_0x106778=_0x331141['end']['isAtEnd']&&_0x331141['end']['parent']==_0x331141['start']['nodeAfter']?_0x581d1a['createSelection'](_0x331141['start']['nodeAfter'],'on'):_0x581d1a['createSelection'](_0x331141),this['_model']['deleteContent'](_0x106778,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x43773c=(_0x370720,_0x594972)=>{_0x594972&&this['_model']['change'](_0x379898=>{const {commandName:_0x133786,commandParams:_0x408b0b=[]}=_0x594972,_0x3519c1=_0x370720['map'](_0x25bdad=>(Lt(_0x25bdad)&&(_0x25bdad=this['_model']['createRange'](_0x25bdad['end'])),_0x25bdad))['filter'](_0x245c64=>'$graveyard'!==_0x245c64['root']['rootName']);if(_0x3519c1['length']<0x1)return;const _0x4f375a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x23f7ca=>_0x14a494['fromRange'](_0x23f7ca));_0x379898['setSelection'](_0x3519c1);for(const _0x4fb6f2 of this['_editor']['commands']['commands']())_0x4fb6f2['refresh']();_0x408b0b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x133786,..._0x408b0b);const _0x4b12ae=_0x4f375a['filter'](_0xbf65c1=>'$graveyard'!=_0xbf65c1['root']['rootName']);_0x4b12ae['length']>0x0&&_0x379898['setSelection'](_0x4b12ae);for(const _0x3604bc of _0x4f375a)_0x3604bc['detach']();});},_0x1eeb06=(_0x4fbbca,_0xdb9ce8)=>0x1==_0x4fbbca['length']&&0x1==_0xdb9ce8['length']&&_0x4fbbca[0x0]['end']['isEqual'](_0xdb9ce8[0x0]['start']),_0x20e463=(_0x3c1c04,_0x209485,_0x5bdd6e,_0xeab4b5)=>Wt(_0x3c1c04,_0x209485,_0x5bdd6e,_0xeab4b5)?[_0x3c1c04,_0x209485]:Wt(_0x209485,_0x3c1c04,_0xeab4b5,_0x5bdd6e)?[_0x209485,_0x3c1c04]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d0c10),this['_defaultCallbacks']['set']('insertion:discard',_0x20e18e),this['_defaultCallbacks']['set']('insertion:join',_0x1eeb06),this['_defaultCallbacks']['set']('insertion:chain',_0x20e463),this['_defaultCallbacks']['set']('deletion:accept',_0x20e18e),this['_defaultCallbacks']['set']('deletion:discard',_0x4d0c10),this['_defaultCallbacks']['set']('deletion:join',_0x1eeb06),this['_defaultCallbacks']['set']('deletion:chain',_0x20e463),this['_defaultCallbacks']['set']('formatInline:accept',_0x43773c),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d0c10),this['_defaultCallbacks']['set']('formatInline:join',_0x1eeb06),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d0c10),this['_defaultCallbacks']['set']('formatBlock:accept',_0x43773c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d0c10),this['_defaultCallbacks']['set']('formatBlock:join',_0x1eeb06),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d0c10),this['_defaultCallbacks']['set']('attribute:accept',_0x4d0c10),this['_defaultCallbacks']['set']('attribute:discard',(_0x506213,_0x24f653)=>{if(!_0x24f653)return;const _0x10391f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x267482=>{if(_0x24f653['key']==u)for(const _0x4cf365 of _0x506213){const _0x11c3d6=_0x4cf365['start']['nodeAfter'],_0x1bb86d=_0x24f653['oldValue'];_0x267482['rename'](_0x11c3d6,_0x1bb86d);}else{if(_0x10391f['_isBlockAttribute'](_0x24f653['key'])){for(const _0x4b7358 of _0x506213)void 0x0!==_0x24f653['oldValue']?_0x267482['setAttribute'](_0x24f653['key'],_0x24f653['oldValue'],_0x4b7358['start']['nodeAfter']):_0x267482['removeAttribute'](_0x24f653['key'],_0x4b7358['start']['nodeAfter']);}else{for(const _0xb8c37d of _0x506213)_0x24f653['oldValue']?_0x267482['setAttribute'](_0x24f653['key'],_0x24f653['oldValue'],_0xb8c37d):_0x267482['removeAttribute'](_0x24f653['key'],_0xb8c37d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1eeb06);}}function Gt(_0x1d6575,_0x542ae5,_0x5a0d73){for(const _0x233242 of _0x542ae5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x233242['root']==_0x233242)return!0x1;if(!_0x5a0d73['containsItem'](_0x233242))return!0x1;if(_0x1d6575['isObject'](_0x233242)||_0x1d6575['isLimit'](_0x233242))return!0x0;}return!0x1;}function Lt(_0x27d315){return _0x27d315['end']['parent']==_0x27d315['start']['nodeAfter']&&_0x27d315['end']['isAtStart'];}function Jt(_0x1c7973,_0x14529e,_0x28d91f,_0x452eca){const _0x19997f=_0x5cee09=>!_0x5cee09['item']['is']('$textProxy')&&!_0x452eca['isObject'](_0x5cee09['item']),_0x1ab591=_0x1c7973['start']['getLastMatchingPosition'](_0x19997f),_0x3dbdcb=_0x1c7973['end']['getLastMatchingPosition'](_0x19997f,{'direction':'backward'});return(!_0x1c7973['start']['isEqual'](_0x1ab591)||!_0x1c7973['end']['isEqual'](_0x3dbdcb))&&(_0x1ab591['isBefore'](_0x3dbdcb)?_0x28d91f['updateMarker'](_0x14529e,{'range':_0x28d91f['createRange'](_0x1ab591,_0x3dbdcb)}):_0x28d91f['removeMarker'](_0x14529e),!0x0);}function Kt(_0x5091ab){return _0x1e8182(_0x5091ab);}function Ht(_0x4135a3){const _0x5201ec=_0x4135a3['start']['nodeAfter'];return _0x5201ec&&_0x5201ec['is']('element');}function qt(_0x4c379b,_0x4217d7){return null==_0x4c379b['end']['nodeBefore']&&_0x4c379b['end']['parent']==_0x4c379b['start']['nodeAfter']?zt(_0x4c379b['start']['nodeAfter'],_0x4217d7):_0x4c379b;}function zt(_0x306dd6,_0x48e086){const _0x573008=_0x48e086['schema']['isObject'](_0x306dd6)||_0x48e086['schema']['isSelectable'](_0x306dd6);return _0x48e086['createRange'](_0x48e086['createPositionAt'](_0x306dd6,'before'),_0x573008?_0x48e086['createPositionAfter'](_0x306dd6):_0x48e086['createPositionAt'](_0x306dd6,'end'));}function Wt(_0x495382,_0x2e9a50,_0x2dfa1f,_0x41c7d7){return!!Qt(_0x495382,_0x2e9a50)&&_0x2dfa1f['end']['isEqual'](_0x41c7d7['start']);}function Qt(_0x14fb8,_0x3335ad){if(!_0x14fb8['_isDataLoaded']||!_0x3335ad['_isDataLoaded'])return!0x1;const _0x5c14ac=new Set(Object['keys'](_0x14fb8['attributes'])),_0xc5a9cd=new Set(Object['keys'](_0x3335ad['attributes']));if(_0x5c14ac['delete']('groupId'),_0xc5a9cd['delete']('groupId'),0x0==_0x5c14ac['size']&&0x0==_0xc5a9cd['size'])return!0x0;if(_0x5c14ac['size']!=_0xc5a9cd['size'])return!0x1;const _0x1be13d={..._0x14fb8['attributes']},_0xd4fb60={..._0x3335ad['attributes']};return delete _0x1be13d['groupId'],delete _0xd4fb60['groupId'],JSON['stringify'](_0x1be13d)==JSON['stringify'](_0xd4fb60);}function Xt(_0x262bdd,_0x523dd1){const _0x3e0ec9=Yt(_0x262bdd['attributes']),_0x450fc4=Yt(_0x523dd1);if(!_0x262bdd['_isDataLoaded'])return!0x1;for(const _0x1226d5 of Object['keys'](_0x450fc4))if(!_0xf2f0b6(_0x3e0ec9[_0x1226d5],_0x450fc4[_0x1226d5]))return!0x1;return!0x0;}function Yt(_0x20505b){const _0x2952ec=Object['assign']({},_0x20505b);return delete _0x2952ec['skipNestingCheck'],delete _0x2952ec['tablePasteChainId'],_0x2952ec;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1a411a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ab228,_0x4b33ba,_0x92811e,_0x49fbdf){super(),this['model']=_0x4b33ba,this['view']=_0x92811e,this['commentThreadController']=_0x49fbdf,this['_editor']=_0x5ab228,this['_acceptCommand']=_0x5ab228['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ab228['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x234683,_0x4758a5)=>_0x234683||_0x4758a5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2fc791=>_0x2fc791&&this['_editor']['model']['canEditAt'](_0x4b33ba['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4f580a=>_0x4f580a&&this['_editor']['model']['canEditAt'](_0x4b33ba['getRanges']())),this['_pendingAction']=null,_0x92811e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x92811e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x92811e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x92811e,'change:isDirty',()=>{_0x92811e['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 _0x5c4c37=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5c4c37);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xecdda6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1d299e,_0x1b137f,_0x5c043b,_0x3f648a){super(_0x1d299e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x41a08c(_0x1d299e,c(_0x1d299e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1b137f['authoredAt']),this['bind']('authoredAt')['to'](_0x1b137f),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',_0x1b137f,'authoredAt',this,'descriptionParts',(_0x5a6f1b,_0x39afc6,_0x500cad)=>{const _0x12d6a3=_0x500cad['map'](_0x484e8c=>ls(_0x484e8c['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5a6f1b-0x1,_0x1b137f['author']['name'],_0x39afc6?_0x3f648a['formatDateTime'](_0x39afc6):'',new DOMParser()['parseFromString'](_0x12d6a3,'text/html')['body']['textContent']]);}),this['focusables']=new _0x20a381(),this['focusTracker']=new _0x2147c3(),this['keystrokes']=new _0xa821b(),this['focusCycler']=new _0x5ddfd6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x359306=>_0x359306['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1b137f,this['_localUser']=_0x5c043b,this['_config']=_0x3f648a,_0x3f648a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x463c62(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x504163}=this['_config'];this['commentsListView']=new _0x504163(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',_0x5c7822=>_0x5c7822+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x313ca1,_0x4e2f5d)=>_0x313ca1||!!_0x4e2f5d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4f00f0}=this['_config'],_0x3e57d6=new _0x4f00f0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b02fd=_0x3e57d6['commentInputView'];return _0x3e57d6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b02fd,'value',(_0x35844d,_0x47cbbc,_0x4a4f8c)=>!!_0x4a4f8c||_0x35844d&&!_0x47cbbc),_0x4b02fd['on']('submit',(_0x457db2,_0x57fcce)=>{this['fire']('addComment',_0x57fcce),_0x4b02fd['editor']['setData']('');}),_0x4b02fd['on']('cancel',()=>this['focus']()),_0x4b02fd['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3e57d6;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x42a3c9,_0x4f787f,_0x391165,_0x8abfe5){super(_0x42a3c9,_0x4f787f,_0x391165,_0x8abfe5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x137c70=>_0x137c70&&_0x137c70[0x0]?_0x137c70[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x36959a,_0x17fc5f)=>{let _0xe7a03='';for(const _0x515dba of _0x36959a)_0xe7a03+='<p>'+ls(_0x515dba['content'],_0x515dba['color'])+'</p>';return _0x17fc5f?_0xe7a03:ti(_0xe7a03,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x8abfe5['SuggestionView'](_0x42a3c9,_0x4f787f,{'formatDateTime':_0x8abfe5['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 _0x77febe=this['bindTemplate'],_0x25937a=[this['suggestionView']];return this['commentsListView']&&_0x25937a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x25937a['push'](this['commentThreadInputView']),_0x25937a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x77febe['if']('isActive','ck-suggestion-wrapper--active'),_0x77febe['to']('type',_0x4cc484=>'ck-suggestion-'+_0x4cc484),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':_0x77febe['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x25937a};}['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 _0xecdda6{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5dfbeb,_0x15d5be,_0x7ebada){super(_0x5dfbeb),this['_model']=_0x15d5be,this['_config']=_0x7ebada,this['set']('description',''),this['bind']('authoredAt')['to'](_0x15d5be),this['acceptButton']=this['_createButton'](c(_0x5dfbeb,'Accept\x20suggestion'),_0xcba04c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x5dfbeb,'Discard\x20suggestion'),_0x1374b9,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x41c98a(_0x5dfbeb,_0x15d5be['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x20a381([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2147c3(),this['keystrokes']=new _0xa821b(),this['focusCycler']=new _0x5ddfd6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x32a7c4=>_0x32a7c4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5b20b4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5b20b4['innerHTML']=this['description'],this['on']('change:description',(_0xdcc3db,_0x59e6e7,_0x51fa19)=>{_0x5b20b4['innerHTML']=_0x51fa19;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x13b755=this['bindTemplate'],_0xbde44e=[{'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':_0x13b755['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x13b755['to']('authoredAt',_0xab1f3b=>this['_config']['formatDateTime'](_0xab1f3b))}]}]},{'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']&&_0xbde44e['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':_0xbde44e}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4a41a1,_0x15d446,_0x24dce0,_0x51738e,_0x533702){const _0x510b2b=new _0x4a7840(this['locale']);return _0x510b2b['set']({'label':_0x4a41a1,'icon':_0x15d446,'tooltip':!0x0,'tooltipPosition':_0x533702}),_0x510b2b['extendTemplate']({'attributes':{'class':_0x24dce0}}),_0x510b2b['on']('execute',()=>{this['fire'](_0x51738e,this['_model']['id']);}),_0x510b2b;}['_setupKeyboardNavigation'](){const _0x10b8b5=this['element'];this['keystrokes']['listenTo'](_0x10b8b5);for(const _0x54a114 of this['focusables'])this['focusTracker']['add'](_0x54a114['element']),this['keystrokes']['listenTo'](_0x54a114['element']);this['keystrokes']['set']('enter',(_0x4cf848,_0x33cdf1)=>{_0x10b8b5===_0x4cf848['target']&&(this['focusCycler']['focusFirst'](),_0x33cdf1());}),this['keystrokes']['set']('esc',(_0x21592f,_0x1d447f)=>{_0x10b8b5!==_0x21592f['target']&&(this['focus'](),_0x1d447f());});}}class d extends _0x550ef0{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x43132b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e852a){super(_0x4e852a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x36e4be=this['editor']['config'];_0x36e4be['define']('trackChanges.SuggestionThreadView',fe),_0x36e4be['define']('trackChanges.SuggestionView',we),_0x36e4be['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x36e4be['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1fb74f,_0x3f3b23){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x13c788,_0x400b75]of this['_handleControllerBuffer']){const _0x39489f=this['_suggestionToController']['has'](_0x13c788);_0x39489f||_0x400b75?_0x39489f&&_0x400b75&&this['_destroyController'](_0x13c788):this['_initializeController'](_0x13c788);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1fb74f,_0x3f3b23);}['init'](){const _0x45c126=this['editor'],_0x19d609=_0x45c126['plugins']['get']('TrackChangesEditing'),_0x256e1f=_0x45c126['plugins']['get']('Annotations'),_0x40d7da=_0x45c126['plugins']['get']('EditorAnnotations'),_0x5576f2=_0x45c126['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x40d7da['addSourceCollector'](()=>{const _0x2bd32b=[];for(const [_0x49dd8d,_0x58c38b]of Array['from'](this['_suggestionToController'])){const _0x942585=_0x49dd8d['getAllAdjacentSuggestions'](),_0x1bf8e9=[];for(const _0x1458e5 of _0x942585){if(!_0x1458e5['isInContent'])continue;if(_0x1458e5['isMultiRange']){_0x1bf8e9['push'](..._0x1458e5['getRanges']());continue;}const _0x3b5c53=_0x1458e5['getFirstRange']();if(_0x1bf8e9['length']>0x0){const _0x5d7589=_0x1bf8e9[0x0]['getJoined'](_0x3b5c53);if(_0x5d7589){_0x1bf8e9[0x0]=_0x5d7589;continue;}}_0x1bf8e9['push'](_0x3b5c53);}_0x2bd32b['push']([_0x58c38b['view'],_0x1bf8e9]);}return _0x2bd32b;}),this['listenTo'](_0x19d609,'suggestionLoaded',(_0x55538e,_0x9ccadc)=>{this['listenTo'](_0x9ccadc,'change:previous',(_0x556b8a,_0x3af370,_0x156810,_0x240136)=>{_0x9ccadc['isInContent']&&(null==_0x156810?(this['_updateController'](_0x240136['head']),this['_handleSuggestionControllerDelayed'](_0x9ccadc,!0x1)):(this['_updateController'](_0x156810['head']),null==_0x240136&&this['_handleSuggestionControllerDelayed'](_0x9ccadc,!0x0)));}),null!==_0x9ccadc['previous']?this['_updateController'](_0x9ccadc['head']):this['_handleSuggestionControllerDelayed'](_0x9ccadc,!0x1);}),this['listenTo'](_0x19d609,'suggestionUnloaded',(_0x5d4683,_0x59b730,_0x4eef18)=>{this['stopListening'](_0x59b730,'change:previous'),this['_handleControllerBuffer']['delete'](_0x59b730),this['_suggestionToController']['has'](_0x59b730)&&this['_destroyController'](_0x59b730),_0x4eef18&&this['_updateController'](_0x4eef18['head']);}),this['listenTo'](_0x19d609,'suggestionChanged',(_0x4a52e0,_0x4b3710)=>{this['_updateController'](_0x4b3710);}),this['listenTo'](_0x256e1f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5576f2,'addComment',(_0x21eea2,{threadId:_0x196c11,isFromAdapter:_0x374bc5})=>{if(_0x374bc5||!_0x19d609['hasSuggestion'](_0x196c11))return;const _0x15fc35=_0x19d609['getSuggestion'](_0x196c11);this['_suggestionToController']['get'](_0x15fc35)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x137c8e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x33551d;for(const _0x44afc6 in _0x137c8e){const _0x427d7e=_0x44afc6,_0x5f3f01=_0x137c8e[_0x427d7e];if('trackChangesLicenseKeyValid'==_0x5f3f01||'trackChangesLicenseKeyInvalid'==_0x5f3f01||'trackChangesLicenseKeyExpired'==_0x5f3f01||'trackChangesLicenseKeyDomainLimit'==_0x5f3f01||'trackChangesLicenseKeyNotAllowed'==_0x5f3f01||'trackChangesLicenseKeyEvaluationLimit'==_0x5f3f01||'trackChangesLicenseKeyTrialLimit'==_0x5f3f01||'trackChangesLicenseKeyUsageLimit'==_0x5f3f01){delete _0x137c8e[_0x427d7e],_0x33551d=_0x5f3f01,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x33551d&&_0x137c8e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x33551d&&_0x137c8e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x33551d&&_0x137c8e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x33551d&&_0x137c8e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x33551d&&_0x137c8e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x33551d&&_0x137c8e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x33551d&&_0x137c8e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1eeb3a=this['editor']['plugins']['get']('Annotations'),_0x435998=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37b973=Array['from'](_0x1eeb3a['activeAnnotations'],_0x5e4245=>_0x5e4245['innerView'])['filter'](_0x436f79=>this['_viewToController']['has'](_0x436f79)),_0x14cf28=[];for(const _0x2468b4 of _0x37b973){const _0x15c03f=this['_viewToController']['get'](_0x2468b4)['model']['getAllAdjacentSuggestions']();_0x14cf28['push'](..._0x15c03f['reduce']((_0x33e66f,_0x3eb2dd)=>[..._0x33e66f,..._0x3eb2dd['getMarkerNames']()],[]));}_0x435998['activeMarkers']=_0x14cf28;}['_addUIComponentsToFactory'](){const _0x5c8706=this['editor'],_0x3091ca=_0x5c8706['locale'],_0x3e4e58=c(_0x3091ca,'Track\x20changes'),_0x58035a=new _0x1605e5([{'type':'switchbutton','model':new _0x379201({'withText':!0x0,'isToggleable':!0x0,'label':_0x3e4e58,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x379201({'withText':!0x0,'label':c(_0x3091ca,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x379201({'withText':!0x0,'label':c(_0x3091ca,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x379201({'withText':!0x0,'label':c(_0x3091ca,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x379201({'withText':!0x0,'label':c(_0x3091ca,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5c8706['plugins']['has']('TrackChangesPreview')&&_0x58035a['addMany']([{'type':'separator'},{'type':'button','model':new _0x379201({'withText':!0x0,'label':c(_0x3091ca,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x132084 of _0x58035a)if(ke(_0x132084)){const _0x1c0f95=_0x5c8706['commands']['get'](_0x132084['model']['commandName']);_0x132084['model']['bind']('isOn','isEnabled')['to'](_0x1c0f95,'value','isEnabled');}_0x5c8706['ui']['componentFactory']['add']('trackChanges',_0x25b6ab=>this['_createToolbarButton'](_0x25b6ab,_0x58035a,_0x3e4e58)),_0x5c8706['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5c6413=>this['_createMenuBarMenu'](_0x5c6413,_0x58035a,_0x3e4e58));}['_createToolbarButton'](_0x55f108,_0x492cd0,_0x1f6113){const _0x386bf7=_0x18bac6(_0x55f108,_0x291d33),_0x4d496c=this['editor']['commands']['get']('trackChanges');_0x386bf7['buttonView']['set']({'tooltip':_0x1f6113,'label':_0x1f6113,'icon':_0x27213d}),_0x386bf7['buttonView']['bind']('isOn')['to'](_0x4d496c,'value'),_0x386bf7['buttonView']['on']('execute',()=>{_0x4d496c['execute'](),this['editor']['editing']['view']['focus']();}),_0x318075(_0x386bf7,_0x492cd0,{'role':'menu'});const _0x1c6a71=[];for(const _0xd7d9f1 of _0x492cd0)ke(_0xd7d9f1)&&_0x1c6a71['push'](this['editor']['commands']['get'](_0xd7d9f1['model']['commandName']));const _0x56b709=_0x386bf7['buttonView'];return _0x56b709['actionView']['unbind']('isEnabled'),_0x56b709['arrowView']['unbind']('isEnabled'),_0x56b709['actionView']['bind']('isEnabled')['to'](_0x4d496c,'isEnabled'),_0x56b709['arrowView']['bind']('isEnabled')['toMany'](_0x1c6a71,'isEnabled',(..._0x7a6f26)=>_0x7a6f26['some'](_0x2637ba=>_0x2637ba)),_0x386bf7['on']('execute',_0x3d8324=>{this['editor']['execute'](_0x3d8324['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x386bf7;}['_createMenuBarMenu'](_0xe36a57,_0x1823a7,_0x395f66){const _0xcde485=new _0x4ba208(_0xe36a57),_0x9642b5=this['editor']['commands']['get']('trackChanges');_0xcde485['buttonView']['set']({'label':_0x395f66,'icon':_0x27213d});const _0x5aaa0b=new _0x3e1657(_0xe36a57);for(const _0x5e600b of _0x1823a7){if('separator'==_0x5e600b['type']){_0x5aaa0b['items']['add'](new _0x1ff7e8(_0xe36a57));continue;}const _0x4d2461=new _0xde6522(_0xe36a57,_0xcde485),_0x2346a7=new _0x3074fc(_0xe36a57),_0xdaeb44=_0x5e600b['model'];_0x2346a7['bind'](...Object['keys'](_0xdaeb44))['to'](_0xdaeb44),_0x2346a7['delegate']('execute')['to'](_0xcde485),_0x2346a7['on']('execute',()=>{this['editor']['execute'](_0xdaeb44['commandName']),this['editor']['editing']['view']['focus']();}),_0x4d2461['children']['add'](_0x2346a7),_0x5aaa0b['items']['add'](_0x4d2461);}return _0xcde485['bind']('isEnabled')['to'](_0x9642b5,'isEnabled'),_0xcde485['panelView']['children']['add'](_0x5aaa0b),_0xcde485;}['_initializeController'](_0xee3da4){const _0x564dc0=this['editor'],_0x15b331=_0x564dc0['config'],_0x45edc7=_0x564dc0['plugins']['get']('Annotations'),_0x5db5d3=_0x564dc0['plugins']['get']('CommentsRepository'),_0x2bda9f=_0x564dc0['plugins']['get']('EditorAnnotations'),_0x5086d3=_0x564dc0['plugins']['get'](_0x43132b)['me'],_0x5b10cb=_0x15b331['get']('trackChanges')['SuggestionThreadView'],_0x411a25=_0x15b331['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1b8aea,CommentThreadInputView:_0x5aed3c}=_0x564dc0['plugins']['get']('CommentsUI');let _0x18615a,_0x2c39ad,_0x1c0262;this['_annotationViews']['has'](_0xee3da4['id'])?(_0x2c39ad=this['_annotationViews']['get'](_0xee3da4['id']),_0x18615a=_0x2c39ad['mainView']):(_0x18615a=new _0x5b10cb(_0x564dc0['locale'],_0xee3da4,_0x5086d3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x15b331['get']('comments.editorConfig'),'licenseKey':_0x15b331['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x15b331['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15b331['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15b331['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x34adfd(_0x15b331['get']('locale'),_0x564dc0['locale']),'CommentView':_0x15b331['get']('comments')['CommentView'],'CommentsListView':_0x1b8aea,'CommentThreadInputView':_0x5aed3c,'SuggestionView':_0x411a25}),_0x18615a['suggestionView']['acceptButton']['on']('execute',()=>{_0x564dc0['editing']['view']['focus']();}),_0x18615a['suggestionView']['discardButton']['on']('execute',()=>{_0x564dc0['editing']['view']['focus']();}),_0x2c39ad=_0x45edc7['createAnnotationView'](this['editor']['locale'],_0x18615a),_0x2c39ad['bind']('isDirty')['to'](_0x18615a,'isDirty'),_0x2c39ad['bind']('length')['to'](_0x18615a),_0x2c39ad['bind']('type')['to'](_0x18615a,'type',_0x13e5ea=>'suggestion-'+_0x13e5ea),_0x18615a['on']('escape',()=>{_0x1c0262['fire']('escape');}),this['_annotationViews']['set'](_0xee3da4['id'],_0x2c39ad));const _0x21bab4=_0x5db5d3['createCommentThreadController'](_0xee3da4['commentThread'],_0x18615a),_0x1162de=new pe(_0x564dc0,_0xee3da4,_0x18615a,_0x21bab4),_0xd146bc=_0xee3da4['getAllAdjacentSuggestions']()['filter'](_0x35f0f5=>_0x35f0f5['isInContent']);_0x18615a['descriptionParts']=_0x564dc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xd146bc),this['_suggestionToController']['set'](_0xee3da4,_0x1162de),this['_viewToController']['set'](_0x18615a,_0x1162de),_0x1c0262=_0x45edc7['createAnnotation']({'view':_0x2c39ad,'target':()=>{const _0x549bae=[],_0x5e4bf4=_0xee3da4['getAllAdjacentSuggestions']()['filter'](_0x5b954c=>_0x5b954c['isInContent']);for(const _0x37d7a6 of _0x5e4bf4)_0x549bae['push'](..._0x37d7a6['getMarkers']());return _0x1ec63f(_0x564dc0['editing'],_0x549bae);},'type':()=>'suggestion-'+_0x1162de['view']['type']}),_0x5db5d3['_bindAnnotationToEditors'](_0x18615a,_0x1c0262),_0x45edc7['add'](_0x1c0262),_0x2bda9f['registerAnnotation'](_0x1c0262);}['_destroyController'](_0x119d54){const _0x56e0e5=this['editor']['plugins']['get']('CommentsRepository'),_0x6b41a3=this['editor']['plugins']['get']('Annotations'),_0x266d45=this['_suggestionToController']['get'](_0x119d54),_0x5677a7=_0x266d45['view'],_0x16a8ff=_0x6b41a3['getByInnerView'](_0x5677a7);_0x56e0e5['_unbindEditors'](_0x5677a7),_0x16a8ff&&_0x6b41a3['remove'](_0x16a8ff),this['_suggestionToController']['delete'](_0x119d54),this['_viewToController']['delete'](_0x5677a7),_0x266d45['destroy']();}['_updateController'](_0x938a5b){if(!_0x938a5b['isInContent']||!this['_suggestionToController']['has'](_0x938a5b))return;const _0xe2656d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d4dba=this['_suggestionToController']['get'](_0x938a5b),_0x46ec9f=_0x938a5b['getAllAdjacentSuggestions']();_0x5d4dba['view']['descriptionParts']=_0xe2656d['descriptionFactory']['getDescriptions'](_0x46ec9f);}['destroy'](){for(const _0x44ce7a of this['_suggestionToController']['keys']())this['_destroyController'](_0x44ce7a);for(const _0x330b9e of this['_annotationViews']['values']())_0x330b9e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x23aef9){return'model'in _0x23aef9;}class k extends _0x550ef0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x534903){this['editor']['plugins']['get'](p)['adapter']=_0x534903;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4e011e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4e011e);}['getSuggestions']({skipNotAttached:_0x336063=!0x1,toJSON:_0x35188c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x336063,'toJSON':_0x35188c});}['getSuggestion'](_0x3bf338){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3bf338);}}const w=['Pagination'];class T extends _0x550ef0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4f1e4d=this['editor'];if(_0x4f1e4d['config']['define']('trackChangesData.editorCreator',_0x54372e=>{const _0x37f6fa=_0x4f1e4d['model']['document']['getRootNames']()['reduce']((_0x17b40c,_0x21353d)=>(_0x17b40c[_0x21353d]='',_0x17b40c),{});return _0x4f1e4d['constructor']['create'](_0x37f6fa,_0x54372e);}),'function'!=typeof _0x4f1e4d['config']['get']('trackChangesData')['editorCreator'])throw new _0x3c0c52('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x434916){return N(this['editor'],!0x0,_0x434916);}['getDataWithDiscardedSuggestions'](_0x274964){return N(this['editor'],!0x1,_0x274964);}}class D extends _0x550ef0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2247c8){function _0x1c9794(_0x349af7){return _0x349af7['map'](_0x421c0e=>String['fromCharCode'](_0x421c0e))['join']('');}super(_0x2247c8),this['result']='end',_0x2247c8[_0x1c9794([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c9794([0x76,0x69,0x65,0x77])][_0x1c9794([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c9794([0x61,0x75,0x74,0x6f]),_0x2247c8[_0x1c9794([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1c9794([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c9794([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1c9794([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1c9794([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 Ge(_0x3850be){return void 0x0!==_0x3850be['getRootsAttributes'];}async function N(_0x1b90c4,_0x31424b,_0x4666b4){const _0x3d65c6=_0x1c1bae(_0x1b90c4,w);_0x3d65c6['plugins']['push'](p,D),_0x3d65c6['rootsAttributes']=Ge(_0x1b90c4)?_0x1b90c4['getRootsAttributes']():void 0x0;const _0x213a0c=document['createDocumentFragment'](),_0x16bde5=_0x1b90c4['config']['get']('trackChangesData')['editorCreator'],_0x46f79e=await _0x16bde5(_0x3d65c6,()=>function(_0x48ff60){const _0x349ae6=document['createElement']('div');return _0x48ff60['appendChild'](_0x349ae6),_0x349ae6;}(_0x213a0c));!function(_0x5e92bb,_0x4e7225){const _0x37cc98=_0x5e92bb['model']['document']['getRootNames']()['reduce']((_0x58a3a1,_0x45aa6d)=>(_0x58a3a1[_0x45aa6d]=_0x5e92bb['data']['get']({'rootName':_0x45aa6d}),_0x58a3a1),{}),_0x13718c=_0x5e92bb['plugins']['get']('Users')['users']['map'](_0x551358=>({'id':_0x551358['id'],'name':_0x551358['name']})),_0x24770c=_0x5e92bb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2b5e75=_0x5e92bb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1fcfd5=_0x4e7225['plugins']['get']('Users'),_0x37fd16=_0x4e7225['plugins']['get']('TrackChangesEditing'),_0xeb4e08=_0x4e7225['plugins']['get']('CommentsRepository');for(const _0x1ce5c2 of _0xeb4e08['getCommentThreads']())_0x1ce5c2['remove']();for(const _0x1f1c3a of _0x13718c)_0x1fcfd5['getUser'](_0x1f1c3a['id'])||_0x1fcfd5['addUser'](_0x1f1c3a);_0x1fcfd5['me']||_0x1fcfd5['useAnonymousUser']();for(const _0x2586ba of _0x2b5e75)_0xeb4e08['addCommentThread'](_0x2586ba);for(const _0xd0f73b of _0x24770c)_0x37fd16['addSuggestionData'](_0xd0f73b);_0x4e7225['data']['set'](_0x37cc98);}(_0x1b90c4,_0x46f79e),_0x46f79e['execute'](_0x31424b?'acceptAllSuggestions':'discardAllSuggestions');const _0x37852b=Ge(_0x46f79e)?_0x46f79e['getFullData'](_0x4666b4):_0x46f79e['data']['get'](_0x4666b4);return await _0x46f79e['destroy'](),_0x37852b;}class Me extends _0xecdda6{['options'];constructor(_0x1d74ec,_0x599c30){super(_0x1d74ec),this['options']=_0x599c30,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'](_0x59dcf0,_0x12e6fd){if(!this['element'])return;const _0x20add9=[];for(const [_0x335867,_0x17696f]of _0x59dcf0){const _0x5710bb=document['createElement']('div');_0x5710bb['setAttribute']('data-ck-root-name',_0x335867),_0x5710bb['className']=_0x17696f['classes']+'\x20ck-track-changes-preview__root-container',_0x5710bb['innerHTML']=_0x17696f['content'],_0x20add9['push'](_0x5710bb);}_0x12e6fd(this['element'],_0x20add9),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5e344c{constructor(_0x182806){super(_0x182806),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2c3226=this['editor'],_0x5c8b47=_0x2c3226['locale'],_0x4954fe=_0x2c3226['plugins']['get']('Dialog');let _0x599ddd;const _0x5acd13=function(_0x40db48){const _0x56bb8d={};if('editables'in _0x40db48['ui']['view']){for(const [_0x9443fb,_0x16bff8]of Object['entries'](_0x40db48['ui']['view']['editables']))_0x56bb8d[_0x9443fb]=_0x16bff8['element'];}else _0x56bb8d[_0x40db48['model']['document']['getRootNames']()[0x0]]=_0x40db48['ui']['view']['editable']['element'];return _0x56bb8d;}(_0x2c3226),_0x31b92a=function(_0x3d2593){let _0x46d4ba=0x0;for(const _0x27c69c of Object['values'](_0x3d2593))_0x46d4ba=Math['max'](_0x46d4ba,_0x27c69c['getBoundingClientRect']()['width']);let _0x79bbd=0x0;for(const _0x42a5d7 of Object['values'](_0x3d2593))_0x79bbd+=_0x42a5d7['getBoundingClientRect']()['height'];const _0x7abeb3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xc2bdbb=Math['min'](_0x79bbd,_0x7abeb3);return{'width':_0x46d4ba,'height':_0xc2bdbb};}(_0x5acd13);_0x4954fe['show']({'id':'finalContentPreview','title':c(_0x5c8b47,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5c8b47,{'dialogRects':_0x31b92a}),'onHide':()=>{_0x599ddd['detachFromDom']();},'onShow':()=>{_0x2c3226['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2a6e23=>{const _0x4b0e2c=this['_standarizeRootsData'](_0x2a6e23,_0x2c3226,_0x5acd13);_0x4954fe['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4b0e2c,_0x2c3226['config']['get']('trackChanges.preview.renderFunction'));}),_0x599ddd=new _0x505171(_0x5c8b47,[_0x4954fe['view']]),_0x599ddd['attachToDom'](),_0x599ddd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2c3226['once']('destroy',()=>{_0x599ddd['detachFromDom']();});const _0x16f947=_0x4954fe['view']['headerView']['class'];_0x4954fe['view']['headerView']['class']=_0x16f947?_0x16f947+'\x20ck-reset_all':'ck-reset_all',_0x4954fe['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4954fe['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1f5940=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x10e02f=_0x1f5940['previewMode'],_0x457ded={};if('$labels'===_0x10e02f){for(const _0x1cda4b of _0x1f5940['getMergeFieldsIds']())_0x457ded[_0x1cda4b]=_0x1f5940['getLabel'](_0x1cda4b)||_0x1cda4b;}else{const _0x446511='$defaultValues'===_0x10e02f?_0x1f5940['getDefaultValues']():_0x1f5940['getDataSetValues'](_0x10e02f,!0x0);for(const _0x2f85d0 of Object['entries'](_0x446511)){const [_0x54dd20,_0x444b1b]=_0x2f85d0;_0x457ded[_0x54dd20]=null!==_0x444b1b?_0x444b1b:_0x1f5940['getLabel'](_0x54dd20)||_0x54dd20;}}return{'mergeFieldsData':_0x457ded};}['_standarizeRootsData'](_0x41bc27,_0x43f4e4,_0x357d2b){let _0x35fcf3;if('string'==typeof _0x41bc27){const _0x5c0559=_0x43f4e4['model']['document']['getRootNames']()[0x0];_0x35fcf3={[_0x5c0559]:_0x41bc27};}else _0x35fcf3=_0x41bc27;const _0x2a2df5=this['_fixMediaEmbeds'](_0x35fcf3,_0x43f4e4),_0x7358be=function(_0x37ac7f,_0x49ea5f){for(const [_0x17fd00,_0x4ee966]of _0x37ac7f)_0x4ee966['classes']=_0x49ea5f[_0x17fd00]['classList']['value']['replace']('ck-focused','');return _0x37ac7f;}(this['_sortRoots'](_0x43f4e4)['reduce']((_0x56044e,_0x37b6b3)=>(_0x56044e['push']([_0x37b6b3,{'content':_0x2a2df5[_0x37b6b3],'classes':''}]),_0x56044e),[]),_0x357d2b);return _0x7358be;}['_fixMediaEmbeds'](_0x15abd5,_0x505496){if(!_0x505496['plugins']['has']('MediaEmbedEditing'))return _0x15abd5;const _0x5cacff=_0x505496['plugins']['get']('MediaEmbedEditing');for(const [_0x5800fc,_0x2a7a47]of Object['entries'](_0x15abd5)){const _0xb81ec7=document['createElement']('div');_0xb81ec7['innerHTML']=_0x2a7a47,(_0xb81ec7['querySelectorAll']('figure.media')['forEach'](_0x4852a6=>{const _0x5e54a6=_0x4852a6['querySelector']('oembed');if(_0x5e54a6){const _0x5351ba=_0x5e54a6['getAttribute']('url');if(_0x5351ba){const _0x265689=_0x5cacff['registry']['getMediaViewElement'](new _0x2437da(_0x505496['editing']['view']['document']),_0x5351ba,{'elementName':'','renderForEditingView':!0x0}),_0x6dcbc5=document['createElement']('div');_0x6dcbc5['classList']['add']('ck-media__wrapper'),_0x265689['render'](_0x6dcbc5,_0x505496['editing']['view']['domConverter']),_0x5e54a6['replaceWith'](_0x6dcbc5);}}}),_0x15abd5[_0x5800fc]=_0xb81ec7['innerHTML']);}return _0x15abd5;}['_sortRoots'](_0x55060c){if(!function(_0x533115){return void 0x0!==_0x533115['getRootsAttributes'];}(_0x55060c))return _0x55060c['model']['document']['getRootNames']();const _0x1b6fef=[],_0x278fdb=new Map();for(const _0x78324d of _0x55060c['model']['document']['getRootNames']()){const _0x480b92=_0x55060c['editing']['view']['getDomRoot'](_0x78324d)['getClientRects']()['item'](0x0);_0x1b6fef['push'](_0x78324d),_0x278fdb['set'](_0x78324d,_0x480b92);}return _0x1b6fef['sort']((_0x45cfbe,_0x59e676)=>{const _0x2600be=_0x278fdb['get'](_0x45cfbe),_0x583c7d=_0x278fdb['get'](_0x59e676);return _0x2600be['y']-_0x583c7d['y']||_0x2600be['x']-_0x583c7d['x'];}),_0x1b6fef;}}class te extends _0x550ef0{static get['requires'](){return[T,_0x5554bd];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x107dd7){super(_0x107dd7),_0x107dd7['commands']['add']('previewFinalContent',new re(this['editor'])),_0x107dd7['config']['define']('trackChanges.preview.renderFunction',(_0x45b189,_0x1769ee)=>{for(const _0x1d7bb7 of _0x1769ee)_0x45b189['appendChild'](_0x1d7bb7);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x3f75d3,Plugin as _0x49d3a0,PendingActions as _0x45c9db}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1ed8a5,ObservableMixin as _0x55eb28,uid as _0x261f54,priorities as _0xbe5b8f,insertToPriorityArray as _0x3c77c3,logWarning as _0x4b42ad,getEnvKeystrokeText as _0x307200,FocusTracker as _0x1ce46a,KeystrokeHandler as _0x2983da,Collection as _0x2469a5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5d4ded,IconCancel as _0x3aaccb,IconTrackChanges as _0x2ead64}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x678eb7,View as _0x2de829,ViewCollection as _0x5e3fca,FocusCycler as _0x4e7d3a,ViewModel as _0x2e39d6,createDropdown as _0x47b20b,SplitButtonView as _0x510b2d,addListToDropdown as _0x302778,MenuBarMenuView as _0x27ca8d,MenuBarMenuListView as _0x3bd327,ListSeparatorView as _0x4b9123,MenuBarMenuListItemView as _0x38df9a,MenuBarMenuListItemButtonView as _0xea57e4,BodyCollection as _0x3ac2df,Dialog as _0x9c557b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x23fc75,hashObject as _0x6bcbd8,surroundingMarkersDetector as _0x2a5fde,FOCUS_ANNOTATION_KEYSTROKE as _0x16187e,AriaDescriptionView as _0x5f14c1,setupThreadKeyboardNavigation as _0x2bcf38,trimHtml as ti,UserView as _0x2faec1,LateFocusButtonView as _0x902b03,getDateTimeFormatter as _0x2ddcb8,getAllMarkersDomElementsSorted as _0x4c97e0,sanitizeEditorConfig as _0x1c3c87}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4e6e40,LiveRange as _0x5702ff,LivePosition as _0x5b7900,DowncastWriter as _0x21a1eb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x409f06,toWidget as _0x28944c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x31a6b5,set as _0x1eeebf,isEqual as _0x2949db,unset as _0x31e314,omit as Ft}from'es-toolkit/compat';import{Delete as _0x140200,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xfef883}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xa18438}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x3f75d3{['_enabledCommands'];constructor(_0x50de8e,_0x360d32){super(_0x50de8e),this['_enabledCommands']=_0x360d32,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 _0x55e79a of this['editor']['commands']['commands']())_0x55e79a['affectsData']&&!this['_enabledCommands']['has'](_0x55e79a)&&_0x55e79a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5f3daa of this['editor']['commands']['commands']())_0x5f3daa['affectsData']&&!this['_enabledCommands']['has'](_0x5f3daa)&&_0x5f3daa['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x3f75d3{['_suggestions'];constructor(_0x40e878,_0x17df4d){super(_0x40e878),this['_suggestions']=_0x17df4d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x53350c){const _0x2d6f19=this['_suggestions']['get'](_0x53350c);if(!_0x2d6f19)throw new _0x1ed8a5('track-changes-accept-suggestion-not-found',this);const _0x2d50d7=_0x2d6f19['getRanges']();this['editor']['model']['canEditAt'](_0x2d50d7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2d6f19);}}class R extends _0x3f75d3{['_suggestions'];constructor(_0x292a3c,_0x5878e4){super(_0x292a3c),this['_suggestions']=_0x5878e4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x398e35){const _0x1573a0=this['_suggestions']['get'](_0x398e35);if(!_0x1573a0)throw new _0x1ed8a5('track-changes-discard-suggestion-not-found',this);const _0x402c26=_0x1573a0['getRanges']();this['editor']['model']['canEditAt'](_0x402c26)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1573a0);}}function ls(_0x804672,_0x218594){let _0x477875='';return _0x477875+=_0x804672['split']('*')['map']((_0x446c9d,_0x71650b)=>_0x71650b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x446c9d)+'</span>':nn(_0x446c9d))['join'](''),_0x218594&&(_0x477875+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x218594['value']+'\x22\x20title=\x22'+_0x218594['title']+'\x22></span>'),_0x477875;}function nn(_0x2de087){const _0x40ed63=document['createElement']('span');return _0x40ed63['innerText']=_0x2de087,_0x40ed63['innerHTML'];}function ts(_0x428aad){return _0x428aad['sort']((_0x1a6755,_0x1f7dee)=>'deletion'==_0x1a6755['type']&&'deletion'!=_0x1f7dee['type']?-0x1:'deletion'!=_0x1a6755['type']&&'deletion'==_0x1f7dee['type']?0x1:0x0);}function to(_0x54847f,_0x56d327){let _0x38e915,_0x3f1123=0x0;const _0x4120e5=[],_0x35644b=_0x56d327['schema'];for(;_0x3f1123<_0x54847f['length'];){const _0x456325=_0x54847f[_0x3f1123],_0x3b787b=_0x54847f[_0x3f1123+0x1];_0x38e915||(_0x38e915=_0x56d327['createPositionBefore'](_0x456325)),on(_0x56d327,_0x456325,_0x3b787b)||(_0x4120e5['push'](_0x56d327['createRange'](_0x38e915,_0x35644b['isObject'](_0x456325)?_0x56d327['createPositionAfter'](_0x456325):_0x56d327['createPositionAt'](_0x456325,'end'))),_0x38e915=null),_0x3f1123++;}return _0x4120e5;}function on(_0x154c72,_0x540c13,_0x34856b){if(!_0x34856b)return!0x1;const _0x571a9e=_0x154c72['createPositionAfter'](_0x540c13),_0x281003=_0x154c72['createPositionBefore'](_0x34856b);return _0x571a9e['isTouching'](_0x281003);}function rs(_0x438c7d,_0x1d140c,_0x3f85d5){for(;_0x3f85d5['length'];){const _0x4229a0=_0x3f85d5['splice'](0x0,0x64);_0x438c7d['change'](()=>{for(const _0x2a7f7 of _0x4229a0)_0x2a7f7['isInContent']&&_0x1d140c['execute'](_0x2a7f7['id']);});}}class x extends _0x3f75d3{['_command'];['_suggestions'];constructor(_0x53f471,_0x1a0176,_0x426994){super(_0x53f471),this['_command']=_0x1a0176,this['_suggestions']=_0x426994,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x55cbad=Array['from'](this['_suggestions']['values']())['some'](_0x5897b6=>_0x5897b6['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x55cbad;}['execute'](){const _0x4755a3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x26cf00 of _0x4755a3){const _0x5e6c0c=_0x26cf00['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e6c0c))return;}rs(this['editor']['model'],this['_command'],_0x4755a3);}}class E extends _0x3f75d3{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x588dc5,_0x3e9d27,_0x5db07b){super(_0x588dc5),this['_command']=_0x3e9d27,this['_suggestions']=_0x5db07b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3c1ad3=this['editor']['model']['document']['selection'],_0x1b50f5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x340abc,_0x284c2d){const _0x122ee7=Array['from'](_0x340abc['getRanges']()),_0x57e56b=new Set();for(const _0x4e4a9b of _0x284c2d)if(_0x4e4a9b['isInContent']){for(const _0x5d6894 of _0x122ee7)for(const _0x30fcb1 of _0x4e4a9b['getRanges']())(_0x5d6894['isIntersecting'](_0x30fcb1)||_0x340abc['isCollapsed']&&!_0x4e4a9b['isMultiRange']&&_0x4e4a9b['next']&&_0x30fcb1['end']['isTouching'](_0x5d6894['start']))&&_0x57e56b['add'](_0x4e4a9b);}return _0x57e56b;}(_0x3c1ad3,_0x1b50f5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1873c4=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1dffbd of _0x1873c4){const _0xaa04cc=_0x1dffbd['getRanges']();if(!this['editor']['model']['canEditAt'](_0xaa04cc))return;}rs(this['editor']['model'],this['_command'],_0x1873c4);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x55eb28(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2ed68f,_0x40763f){super(),this['id']=_0x40763f['id'],this['type']=_0x40763f['type'],this['subType']=_0x40763f['subType']||null,this['author']=_0x40763f['author'],this['creator']=_0x40763f['creator']||_0x40763f['author'],this['isExternal']=Boolean(_0x40763f['attributes']&&_0x40763f['attributes']['@external']),this['data']=null,this['_model']=_0x2ed68f,this['_onAccept']=_0x40763f['onAccept'],this['_onDiscard']=_0x40763f['onDiscard'],this['_onAttributesChange']=_0x40763f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x40763f['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 _0x1fda6c=this;for(;_0x1fda6c['previous'];)_0x1fda6c=_0x1fda6c['previous'];return _0x1fda6c;}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'](_0x41339e){this['_markerNames']['add'](_0x41339e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x68ee18=>this['_model']['markers']['get'](_0x68ee18))['filter'](_0x236ed8=>_0x236ed8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4c7b7a=>{for(const _0x4b29ab of this['getMarkers']())_0x4c7b7a['removeMarker'](_0x4b29ab);}),this['_markerNames']['clear']();}['removeMarker'](_0x4c02bf){this['_model']['change'](_0x4fc9f0=>{_0x4fc9f0['removeMarker'](_0x4c02bf);}),this['_markerNames']['delete'](_0x4c02bf);}['addRange'](_0x8450e6){const _0x1ef4fe='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1ef4fe),this['_model']['change'](_0x2838d0=>{_0x2838d0['addMarker'](_0x1ef4fe,{'range':_0x8450e6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2840fa){for(const _0x248c0a of this['getRanges']())if(_0x248c0a['isIntersecting'](_0x2840fa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4bf19d=>_0x4bf19d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x39a7e2,_0x38ea10)=>[..._0x39a7e2,..._0x38ea10['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x221b34=this['getRanges']();if(0x1!=_0x221b34['length'])return null;const _0x4ca08d=_0x221b34[0x0],_0x2e9238=_0x4ca08d['start']['nodeAfter'],_0x1c0f7d=_0x4ca08d['end']['nodeBefore'];return _0x2e9238 instanceof _0x4e6e40?_0x2e9238!=_0x1c0f7d?null:_0x2e9238: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 _0x19596e=[];let _0x3912d8=this['head'];for(;_0x3912d8;)_0x19596e['push'](_0x3912d8),_0x3912d8=_0x3912d8['next'];return _0x19596e;}['setAttribute'](_0xa8e3e9,_0xe6cd88){const _0x3e9de9=_0x31a6b5(this['attributes']);_0x1eeebf(_0x3e9de9,_0xa8e3e9,_0xe6cd88),_0x2949db(_0x3e9de9,this['attributes'])||(this['attributes']=_0x3e9de9,this['_onAttributesChange'](_0x3e9de9));}['removeAttribute'](_0x2d4611){const _0x4781c5=_0x31a6b5(this['attributes']);_0x31e314(_0x4781c5,_0x2d4611),_0x2949db(_0x4781c5,this['attributes'])||(this['attributes']=_0x4781c5,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 _0x261f54()['substr'](0x1,0x5);}}function c(_0x41446f,_0x4e62e4,_0x33bb5d){const _0x40d3ce=_0x41446f['t'],t=_0x41446f['t'];switch(_0x4e62e4){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',_0x33bb5d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x33bb5d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x33bb5d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x33bb5d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x33bb5d);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',_0x33bb5d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x33bb5d);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',_0x33bb5d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x33bb5d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x33bb5d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x33bb5d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x33bb5d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x33bb5d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x33bb5d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x33bb5d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x33bb5d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x33bb5d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x33bb5d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x33bb5d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x33bb5d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x33bb5d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x33bb5d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x33bb5d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x33bb5d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x33bb5d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x33bb5d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x33bb5d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x33bb5d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x33bb5d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x33bb5d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x33bb5d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x33bb5d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x33bb5d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x33bb5d);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'},_0x33bb5d);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x33bb5d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x33bb5d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x33bb5d);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 _0x40d3ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x33bb5d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x40d3ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x33bb5d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x33bb5d);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'},_0x33bb5d);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'},_0x33bb5d);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'},_0x33bb5d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4e62e4;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x29e129,_0x3e28f2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x29e129,this['_locale']=_0x3e28f2;}['getDescriptions'](_0x1d97b2){const _0x1e212c=[],_0x3a1ed1=new Set(),_0x5edf0f=new Set();for(let _0x72ba10=0x0;_0x72ba10<_0x1d97b2['length'];_0x72ba10++){const _0x11a032=_0x1d97b2[_0x72ba10];if(!_0x11a032['isInContent'])continue;const _0x3cc615=this['_handleCustomCallbackDescription'](_0x11a032);if(_0x3cc615){if(null!=_0x11a032['subType']){if(_0x3a1ed1['has'](_0x11a032['subType']))continue;_0x3a1ed1['add'](_0x11a032['subType']);}_0x1e212c['push'](_0x3cc615);}else{if('attribute'!=_0x11a032['type'])'insertion'!=_0x11a032['type']&&'deletion'!=_0x11a032['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1e212c,_0x11a032,_0x1d97b2[_0x72ba10+0x1]);else{const _0x15098b=_0x11a032['data']['key'];if(_0x5edf0f['has'](_0x15098b))continue;_0x5edf0f['add'](_0x11a032['data']['key']),_0x15098b==u?this['_handleRenameSuggestionDescription'](_0x1e212c,_0x11a032):this['_handleAttributeSuggestionDescription'](_0x1e212c,_0x11a032);}}}return this['_resolveDescriptionItems'](_0x1e212c);}['registerDescriptionCallback'](_0xdce4de){this['_customCallbacks']['push'](_0xdce4de);}['registerElementLabel'](_0x44ad53,_0x3c2b2d,_0x4804ef=_0xbe5b8f['normal']){'function'==typeof _0x44ad53?_0x3c77c3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x44ad53,'label':_0x3c2b2d,'priority':_0x4804ef}):this['_itemLabels']['set'](_0x44ad53,_0x3c2b2d);}['registerAttributeLabel'](_0x4fa405,_0x4d60c2){this['_attributeLabels']['set'](_0x4fa405,_0x4d60c2);}['getItemLabel'](_0x78fd9e,_0x4e692a=0x1){let _0x4da99a;for(const _0x29abb7 of this['_itemLabelsCallbacks'])if(_0x29abb7['matchingCallback'](_0x78fd9e)){_0x4da99a=_0x29abb7['label'];break;}return _0x4da99a||(_0x4da99a=this['_itemLabels']['get'](_0x78fd9e['name'])),_0x4da99a?_0x4da99a(_0x4e692a):0x1!==_0x4e692a?_0x4e692a+'\x20'+_0x78fd9e['name']+'s':''+_0x78fd9e['name'];}['_addDescriptionItems'](_0x33c215,_0x10571b){const _0x5acdc8=_0x10571b['getFirstRange']()['getWalker'](),_0x1588c3='insertion'==_0x10571b['type']?'add':'remove';for(const _0x522737 of _0x5acdc8){const _0x44e1aa=_0x522737['item'],_0x37d8cf=_0x33c215[_0x33c215['length']-0x1];if(_0x44e1aa['is']('$textProxy'))_0x37d8cf&&_0x37d8cf['type']['indexOf']('Container')>-0x1&&_0x33c215['pop'](),_0x37d8cf&&'text'==_0x37d8cf['type']?_0x37d8cf[_0x1588c3]+=_0x44e1aa['data']:_0x33c215['push']({'type':'text','add':'add'==_0x1588c3?_0x44e1aa['data']:'','remove':'remove'==_0x1588c3?_0x44e1aa['data']:''});else{if(this['_schema']['isObject'](_0x44e1aa)){const _0x27d84b=_0x44e1aa;if(_0x37d8cf&&_0x37d8cf['type']['indexOf']('Container')>-0x1&&_0x33c215['pop'](),'elementEnd'==_0x522737['type'])continue;_0x37d8cf&&_0x37d8cf['type']==_0x1588c3+'Object'&&_0x37d8cf['element']['name']==_0x27d84b['name']?_0x37d8cf['quantity']++:_0x33c215['push']({'type':_0x1588c3+'Object','element':_0x27d84b,'quantity':0x1}),_0x5acdc8['skip'](_0x371734=>!('elementEnd'==_0x371734['type']&&_0x371734['item']==_0x44e1aa));}else{if(this['_schema']['checkChild'](_0x44e1aa,'$text')||_0x44e1aa['is']('element','softBreak')){const _0x182622=_0x44e1aa;if('add'==_0x1588c3&&'elementStart'==_0x522737['type']||'remove'==_0x1588c3&&'elementEnd'==_0x522737['type'])continue;if(_0x37d8cf&&-0x1==_0x37d8cf['type']['indexOf']('Container')){'text'==_0x37d8cf['type']&&(_0x37d8cf[_0x1588c3]+='\x0a');continue;}let _0x21549b;if(_0x21549b='add'==_0x1588c3?_0x182622['nextSibling']&&!this['_schema']['isObject'](_0x182622['nextSibling'])?_0x182622['nextSibling']:null:_0x182622['previousSibling']&&!this['_schema']['isObject'](_0x182622['previousSibling'])?_0x182622['previousSibling']:null,_0x182622['isEmpty']||_0x21549b&&_0x21549b['isEmpty']){const _0x3c3d1d=_0x21549b&&_0x21549b['isEmpty']?_0x21549b:_0x182622;_0x37d8cf&&_0x37d8cf['type']==_0x1588c3+'EmptyContainer'&&_0x37d8cf['element']['name']==_0x3c3d1d['name']?_0x37d8cf['quantity']++:_0x33c215['push']({'type':_0x1588c3+'EmptyContainer','element':_0x3c3d1d,'quantity':0x1});}else _0x33c215['push']({'type':_0x1588c3+'Container','element':_0x182622});}}}}}['_resolveDescriptionItems'](_0x5109a3){const _0x41417e=this['_locale'],_0x5e372c=[],_0x17fad8=[],_0x3cf62e=[];for(const _0x301470 of _0x5109a3)switch(_0x301470['type']){case'text':if(_0x301470['add']=_0x301470['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x301470['remove']=_0x301470['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x301470['add']&&''!=_0x301470['remove']){_0x5e372c['push']({'type':'replace','content':c(_0x41417e,'REPLACE_TEXT',['\x22'+_0x301470['remove']+'\x22','\x22'+_0x301470['add']+'\x22'])});continue;}if(null!=_0x301470['add']['match'](/^ +$/)){_0x5e372c['push']({'type':'insertion','content':c(_0x41417e,'*Insert:*\x20%0',c(_0x41417e,'ELEMENT_SPACE',_0x301470['add']['length']))});continue;}if(null!=_0x301470['remove']['match'](/^ +$/)){_0x5e372c['push']({'type':'deletion','content':c(_0x41417e,'*Remove:*\x20%0',c(_0x41417e,'ELEMENT_SPACE',_0x301470['remove']['length']))});continue;}if(''!=_0x301470['add']){_0x5e372c['push']({'type':'insertion','content':c(_0x41417e,'*Insert:*\x20%0','\x22'+_0x301470['add']+'\x22')});continue;}_0x5e372c['push']({'type':'deletion','content':c(_0x41417e,'*Remove:*\x20%0','\x22'+_0x301470['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5e372c['push']({'type':'insertion','content':c(_0x41417e,'*Insert:*\x20%0',this['getItemLabel'](_0x301470['element'],_0x301470['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5e372c['push']({'type':'deletion','content':c(_0x41417e,'*Remove:*\x20%0',this['getItemLabel'](_0x301470['element'],_0x301470['quantity']))});continue;case'addContainer':_0x5e372c['push']({'type':'insertion','content':c(_0x41417e,'*Split:*\x20%0',this['getItemLabel'](_0x301470['element'],_0x301470['quantity']))});continue;case'removeContainer':_0x5e372c['push']({'type':'deletion','content':c(_0x41417e,'*Merge:*\x20%0',this['getItemLabel'](_0x301470['element'],_0x301470['quantity']))});continue;case'addFormat':_0x17fad8['push'](_0x301470['key']);continue;case'removeFormat':_0x3cf62e['push'](_0x301470['key']);continue;default:_0x5e372c['push'](_0x301470);}if(_0x17fad8['length']){const _0x7954b1=_0x17fad8['map'](_0x28fb2b=>this['_attributeLabels']['has'](_0x28fb2b)?this['_attributeLabels']['get'](_0x28fb2b):_0x28fb2b)['join'](',\x20');_0x5e372c['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x7954b1)});}if(_0x3cf62e['length']){const _0x242073=_0x3cf62e['map'](_0x5e8795=>this['_attributeLabels']['has'](_0x5e8795)?this['_attributeLabels']['get'](_0x5e8795):_0x5e8795)['join'](',\x20');_0x5e372c['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x242073)});}return _0x5e372c;}['_handleCustomCallbackDescription'](_0x442b95){for(const _0xa274a9 of this['_customCallbacks']){const _0x2a66d9=_0xa274a9(_0x442b95);if(_0x2a66d9&&'type'in _0x2a66d9)return _0x2a66d9;}}['_handleAttributeSuggestionDescription'](_0x5b1a17,_0x28d183){const _0x415ccf=_0x28d183['data'],_0x526223=void 0x0===_0x415ccf['newValue']?'removeFormat':'addFormat';_0x5b1a17['push']({'type':_0x526223,'key':_0x415ccf['key']});}['_handleRenameSuggestionDescription'](_0x43103b,_0x33c57c){_0x43103b['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x33c57c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x489d94,_0x53f611,_0x32e763){if(this['_addDescriptionItems'](_0x489d94,_0x53f611),_0x32e763&&_0x32e763['getFirstRange']()&&!_0x53f611['getFirstRange']()['end']['isEqual'](_0x32e763['getFirstRange']()['start'])){const _0x5b9fcc=_0x489d94[_0x489d94['length']-0x1],_0x5a3270='insertion'==_0x53f611['type']?'add':'remove';_0x5b9fcc&&'text'==_0x5b9fcc['type']&&(_0x5b9fcc[_0x5a3270]+='\x0a');}}}class U extends _0x49d3a0{['afterInit'](){const _0xfd315c=this['editor'],_0x47e3c1=_0xfd315c['plugins']['get']('TrackChangesEditing');_0xfd315c['commands']['get']('showAIAssistant')&&_0x47e3c1['enableCommand']('showAIAssistant');}}class V extends _0x49d3a0{['afterInit'](){const _0x2bf102=this['editor'],_0x159774=_0x2bf102['locale'];if(!_0x2bf102['plugins']['has']('AlignmentEditing'))return;const _0x10b556=_0x2bf102['plugins']['get']('TrackChangesEditing');_0x10b556['enableDefaultAttributesIntegration']('alignment'),_0x10b556['registerBlockAttribute']('alignment'),_0x10b556['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x159774,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x500755=this['editor'],_0x1799a5=_0x500755['locale'];_0x500755['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1271ab=>{if('formatBlock'!=_0x1271ab['type'])return;const {data:_0x4b9482}=_0x1271ab;if(_0x4b9482&&'alignment'==_0x4b9482['commandName']){const _0x4c95a9=_0x4b9482['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1799a5,'*Format:*\x20%0',function(_0x38109f){switch(_0x38109f){case'left':return c(_0x1799a5,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1799a5,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1799a5,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1799a5,'FORMAT_JUSTIFY_TEXT');}}(_0x4c95a9))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x49d3a0{['afterInit'](){const _0x2dd5c9=this['editor'],_0x6a7d03=_0x2dd5c9['plugins']['get']('TrackChangesEditing'),_0x4cb79f=_0x2dd5c9['locale'];for(const _0x38ac23 of Zt){if(!_0x2dd5c9['plugins']['has'](_0x38ac23))continue;const _0x203b46=_0x38ac23['slice'](0x0,-0x7)['toLowerCase'](),_0x2c8701='FORMAT_'+_0x203b46['toUpperCase']();_0x6a7d03['enableDefaultAttributesIntegration'](_0x203b46),_0x6a7d03['registerInlineAttribute'](_0x203b46),_0x6a7d03['descriptionFactory']['registerAttributeLabel'](_0x203b46,c(_0x4cb79f,_0x2c8701));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e45f4=this['editor'],_0x509f94=_0x3e45f4['locale'],_0x1ef9e9=_0x3e45f4['plugins']['get']('TrackChangesEditing');function _0x50d072(_0x3f37a1,_0xd2b63a){_0x1ef9e9['descriptionFactory']['registerDescriptionCallback'](_0x27edc8=>{if('formatInline'!=_0x27edc8['type'])return;const {data:_0x5f0553}=_0x27edc8;return _0x5f0553&&_0x5f0553['commandName']===_0x3f37a1?_0x5f0553['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x509f94,'*Format:*\x20%0',_0xd2b63a)}:{'type':'format','content':c(_0x509f94,'*Remove\x20format:*\x20%0',_0xd2b63a)}:void 0x0;});}_0x50d072('bold',c(_0x509f94,'FORMAT_BOLD')),_0x50d072('italic',c(_0x509f94,'FORMAT_ITALIC')),_0x50d072('underline',c(_0x509f94,'FORMAT_UNDERLINE')),_0x50d072('code',c(_0x509f94,'FORMAT_CODE')),_0x50d072('strikethrough',c(_0x509f94,'FORMAT_STRIKETHROUGH')),_0x50d072('subscript',c(_0x509f94,'FORMAT_SUBSCRIPT')),_0x50d072('superscript',c(_0x509f94,'FORMAT_SUPERSCRIPT'));}}class G extends _0x49d3a0{['afterInit'](){const _0x365f02=this['editor'],_0x14170d=_0x365f02['locale'];if(!_0x365f02['plugins']['has']('BlockQuoteEditing'))return;const _0x5364e0=_0x365f02['plugins']['get']('TrackChangesEditing'),_0x259276=this['editor']['commands']['get']('blockQuote');_0x5364e0['enableCommand']('blockQuote',(_0x5111e4,_0x571b4f={})=>{const _0xf6654e=this['editor']['model']['document']['selection'],_0x3298a6=_0x571b4f&&void 0x0!==_0x571b4f['forceValue']?_0x571b4f['forceValue']:!_0x259276['value'];let _0x3696d2=[];if(_0x3298a6){const _0x387494=Array['from'](_0xf6654e['getSelectedBlocks']())['filter'](_0xdd9b2c=>oo(_0xdd9b2c)||function(_0x9f7183,_0x540863){const _0x146e0c=_0x540863['checkChild'](_0x9f7183['parent'],'blockQuote'),_0x323c79=_0x540863['checkChild'](['$root','blockQuote'],_0x9f7183);return _0x146e0c&&_0x323c79;}(_0xdd9b2c,this['editor']['model']['schema']));_0x3696d2=to(_0x387494,_0x365f02['model']);}else{const _0x3ca749=Array['from'](_0xf6654e['getSelectedBlocks']())['filter'](_0x3674f4=>oo(_0x3674f4));_0x3696d2=to(_0x3ca749,_0x365f02['model']);}_0x365f02['model']['change'](()=>{for(const _0x2e4068 of _0x3696d2)_0x5364e0['markBlockFormat'](_0x2e4068,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3298a6}]});});}),_0x5364e0['descriptionFactory']['registerDescriptionCallback'](_0x2c3fd4=>{const {data:_0x49601f}=_0x2c3fd4;if(_0x49601f&&'blockQuote'==_0x49601f['commandName']){const _0x440327=c(_0x14170d,'ELEMENT_BLOCK_QUOTE');return _0x49601f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x14170d,'*Set\x20format:*\x20%0',_0x440327)}:{'type':'format','content':c(_0x14170d,'*Remove\x20format:*\x20%0',_0x440327)};}});}}function oo(_0xf6b46){return'blockQuote'==_0xf6b46['parent']['name'];}class L extends _0x49d3a0{['afterInit'](){const _0x3e09cb=this['editor'],_0x513cda=_0x3e09cb['locale'],_0x245708=_0x3e09cb['plugins']['get']('TrackChangesEditing');_0x3e09cb['plugins']['has']('BookmarkEditing')&&(_0x245708['enableCommand']('insertBookmark'),_0x245708['enableDefaultAttributesIntegration']('updateBookmark'),_0x245708['registerBlockAttribute']('bookmarkId'),_0x245708['descriptionFactory']['registerDescriptionCallback'](_0x718942=>{if('insertion'!=_0x718942['type']&&'deletion'!=_0x718942['type']&&'attribute'!=_0x718942['type'])return;const _0x33fd35=_0x718942['getContainedElement']();if(null==_0x33fd35)return;if(!_0x33fd35['is']('element','bookmark'))return;const _0x48975d=_0x33fd35['getAttribute']('bookmarkId');if('insertion'==_0x718942['type'])return{'type':'insertion','content':c(_0x513cda,'*Insert:*\x20%0','\x22'+_0x48975d+'\x22\x20'+c(_0x513cda,'ELEMENT_BOOKMARK'))};if('deletion'==_0x718942['type'])return{'type':'deletion','content':c(_0x513cda,'*Remove:*\x20%0','\x22'+_0x48975d+'\x22\x20'+c(_0x513cda,'ELEMENT_BOOKMARK'))};const {data:_0x3f4bbf}=_0x718942;if(!_0x3f4bbf||'bookmarkId'!=_0x3f4bbf['key'])return;return{'type':'format','content':c(_0x513cda,'*Set\x20bookmark:*\x20%0','\x22'+_0x3f4bbf['newValue']+'\x22')};}));}}class J extends _0x49d3a0{['afterInit'](){const _0x395365=this['editor'];_0x395365['plugins']['has']('CaseChange')&&(_0x395365['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x395365['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x395365['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x49d3a0{['afterInit'](){const _0x31c51d=this['editor'];_0x31c51d['commands']['get']('ckbox')&&_0x31c51d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x49d3a0{['afterInit'](){const _0x25452b=this['editor'];if(!_0x25452b['plugins']['has']('CodeBlock'))return;const _0x953c39=_0x25452b['plugins']['get']('TrackChangesEditing'),_0x5bbd7b=_0x25452b['locale'],_0xc9782f=_0x25452b['config']['get']('codeBlock')['languages'],_0xa4b7d5=_0x25452b['commands']['get']('codeBlock');_0x953c39['enableCommand']('indentCodeBlock'),_0x953c39['enableCommand']('outdentCodeBlock'),_0x953c39['enableCommand']('codeBlock',(_0x2dac41,_0x3a5651={})=>{const _0x57f7b6=_0x25452b['model'],_0x1f8178=_0x25452b['model']['document']['selection'],_0x278bcc=_0x3a5651&&void 0x0!==_0x3a5651['forceValue']?_0x3a5651['forceValue']:!_0xa4b7d5['value'];let _0x87b7b0;_0x3a5651['language']||(_0x3a5651['language']=_0xc9782f[0x0]['language']),_0x87b7b0=_0x278bcc?Array['from'](_0x1f8178['getSelectedBlocks']())['filter'](_0x5d414e=>eo(_0x5d414e)||function(_0x19b915,_0x2c4ff4){if(_0x19b915['is']('rootElement')||_0x2c4ff4['isLimit'](_0x19b915))return!0x1;return _0x2c4ff4['checkChild'](_0x19b915['parent'],'codeBlock');}(_0x5d414e,_0x57f7b6['schema'])):Array['from'](_0x1f8178['getSelectedBlocks']())['filter'](_0x444981=>eo(_0x444981));const _0x4f7201=to(_0x87b7b0,_0x57f7b6);_0x57f7b6['change'](()=>{for(const _0xe6c593 of _0x4f7201)_0x953c39['markBlockFormat'](_0xe6c593,{'commandName':'codeBlock','commandParams':[{..._0x3a5651,'forceValue':_0x278bcc}],'formatGroupId':'blockName'});});}),(_0x953c39['descriptionFactory']['registerElementLabel']('codeBlock',_0x268c27=>c(_0x5bbd7b,'ELEMENT_CODE_BLOCK',_0x268c27)),_0x953c39['descriptionFactory']['registerDescriptionCallback'](_0x10cd78=>{if('formatBlock'!=_0x10cd78['type'])return;const _0x24be31=_0x5bbd7b['t'],{data:_0x4c2aa0}=_0x10cd78;if(!_0x4c2aa0||'codeBlock'!=_0x4c2aa0['commandName'])return;const _0x5d8bd7=_0x4c2aa0['commandParams'][0x0]['language'],_0x305da2=_0x24be31(_0xc9782f['find'](_0x4d3eeb=>_0x4d3eeb['language']===_0x5d8bd7)['label'])['toLowerCase']();return _0x4c2aa0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5bbd7b,'*Set\x20format:*\x20%0',c(_0x5bbd7b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x305da2+')')}:{'type':'format','content':c(_0x5bbd7b,'*Remove\x20format:*\x20%0',c(_0x5bbd7b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4bfece){return'codeBlock'==_0x4bfece['name'];}class q extends _0x49d3a0{['afterInit'](){const _0x25f545=this['editor'];if(!_0x25f545['plugins']['has']('CommentsEditing'))return;_0x25f545['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x15d548,_0x2f8f5d,_0x5f0d98){const _0x25c400=[];for(const _0x50c246 of _0x2f8f5d['getItems']())_0x50c246['hasAttribute'](_0x15d548)&&_0x25c400['push'](_0x5f0d98['createRangeOn'](_0x50c246));return _0x25c400;}function Fe(_0x4505da,_0x512e52,{showActiveMarker:_0xf65cbd=!0x0}={}){const _0x401b4b=_0x4505da['plugins']['get']('TrackChangesEditing');return(_0x3a0cd7,_0x2f0448,_0x51e894)=>{if(!_0x51e894['consumable']['test'](_0x2f0448['markerRange'],_0x3a0cd7['name']))return;const _0x5e5e6d=_0x2f0448['markerRange']['getWalker'](),_0xdcad37=_0x2f0448['markerRange']['start'],_0x1db37c=_0x4505da['model']['schema'];let _0x18e40f=null,_0x5c591e=null,_0x441ee6=!0x1,_0x38bba4=!0x1;for(const _0x443418 of _0x5e5e6d){const _0x3c706f=_0x443418['item'];_0x441ee6=_0x441ee6||_0x1db37c['isContent'](_0x3c706f);const _0x51fdef=_0x51e894['mapper']['toViewElement'](_0x3c706f);if(_0x51fdef&&_0x51fdef['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x443418['type']&&(_0x1db37c['isBlock'](_0x3c706f)&&!_0x1db37c['isLimit'](_0x3c706f)&&(_0x3c706f['nextSibling']||_0xdcad37['isAtEnd']?_0x18e40f&&_0x18e40f['parent']==_0x3c706f||(_0x18e40f=_0x3c706f,_0xf98bbd(_0x443418['previousPosition']),_0x38bba4=!0x0):_0x5c591e=_0x5c591e||_0x443418['previousPosition']));}function _0xf98bbd(_0x14eb9e){const {authorId:_0x4cedb9}=_0x401b4b['_splitMarkerName'](_0x2f0448['markerName']),_0x5d0a45=_0x51e894['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x512e52,'data-author-id':_0x4cedb9}),_0x134879=_0x51e894['mapper']['toViewPosition'](_0x14eb9e);_0xf65cbd&&_0x401b4b['activeMarkers']['includes'](_0x2f0448['markerName'])&&_0x51e894['writer']['addClass']('ck-suggestion-marker--active',_0x5d0a45),_0x51e894['writer']['insert'](_0x134879,_0x5d0a45),_0x51e894['mapper']['bindElementToMarker'](_0x5d0a45,_0x2f0448['markerName']);}_0x441ee6||_0x38bba4||!_0x5c591e||_0xf98bbd(_0x5c591e);};}class z extends _0x49d3a0{static get['requires'](){return[_0x140200];}['init'](){const _0x69efea=this['editor'],_0xdd195e=_0x69efea['plugins']['get']('TrackChangesEditing');_0xdd195e['enableCommand']('delete');const _0x444226=_0x69efea['commands']['get']('deleteForward');_0xdd195e['enableCommand']('deleteForward',(_0x22d440,_0x1f3dba={})=>{const _0x4c5099=_0x69efea['model']['createSelection'](_0x69efea['model']['document']['selection']);_0x4c5099['isCollapsed']&&_0x69efea['model']['modifySelection'](_0x4c5099,{'direction':'forward','unit':_0x1f3dba['unit']});const _0x17183f=_0x4c5099['getFirstRange'](),_0x5ed71c=_0x5702ff['fromRange'](_0x17183f);let _0x44ce51;_0x22d440(_0x1f3dba),_0x44ce51='$graveyard'==_0x5ed71c['root']['rootName']?_0x69efea['model']['createRange'](_0x17183f['start']):_0x69efea['model']['createRange'](_0x5ed71c['start'],_0x5ed71c['end']),_0x5ed71c['detach'](),_0x69efea['model']['enqueueChange'](_0x444226['buffer']['batch'],_0x1cb987=>{_0x444226['buffer']['lock'](),_0x1cb987['setSelection'](_0x1cb987['createRange'](_0x44ce51['end'])),_0x444226['buffer']['unlock']();});}),_0x69efea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x69efea,'merge'),{'priority':'high'}),_0x69efea['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3693d6,_0x1ed42b,_0x1f1316)=>{_0x1f1316['options']['showSuggestionHighlights']&&Fe(_0x69efea,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3693d6,_0x1ed42b,_0x1f1316);},{'priority':'high'}),_0x69efea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x326be0,_0x3ec395,_0x58e3db)=>{const _0x3ec84b=_0x58e3db['mapper']['markerNameToElements'](_0x3ec395['markerName']);if(_0x3ec84b){for(const _0x5047bd of _0x3ec84b)_0x5047bd['is']('uiElement')&&(_0x58e3db['mapper']['unbindElementFromMarkerName'](_0x5047bd,_0x3ec395['markerName']),_0x58e3db['writer']['remove'](_0x5047bd));}},{'priority':'high'});}}class W extends _0x49d3a0{['afterInit'](){const _0x570b91=this['editor'];if(!_0x570b91['plugins']['has']('ListEditing'))return;const _0x554b70=_0x570b91['locale'],_0x35def5=_0x570b91['plugins']['get']('TrackChangesEditing'),_0x5e5de7=_0x570b91['plugins']['has']('TodoListEditing'),_0x5e1873=!!_0x570b91['config']['get']('list.multiBlock');function _0x4615aa(_0x51627b){return{'type':'format','content':''+c(_0x554b70,'*Set\x20format:*\x20%0',_0x51627b)};}function _0x35dba2(_0x472a93){return{'type':'format','content':''+c(_0x554b70,'*Remove\x20format:*\x20%0',_0x472a93)};}_0x35def5['enableDefaultAttributesIntegration']('numberedList'),_0x35def5['enableDefaultAttributesIntegration']('bulletedList'),_0x35def5['enableDefaultAttributesIntegration']('customNumberedList'),_0x35def5['enableDefaultAttributesIntegration']('customBulletedList'),_0x35def5['enableDefaultAttributesIntegration']('indentList'),_0x35def5['enableDefaultAttributesIntegration']('outdentList'),_0x35def5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x35def5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x35def5['registerBlockAttribute']('listItemId'),_0x35def5['registerBlockAttribute']('listType'),_0x35def5['registerBlockAttribute']('listIndent'),_0x5e1873&&(_0x35def5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x35def5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5e5de7&&(_0x35def5['enableDefaultAttributesIntegration']('todoList'),_0x35def5['enableDefaultAttributesIntegration']('checkTodoList'),_0x35def5['registerBlockAttribute']('todoListChecked'),_0x35def5['descriptionFactory']['registerDescriptionCallback'](_0x287d28=>{const {data:_0x30cb50}=_0x287d28;if(_0x30cb50&&'todoListChecked'==_0x30cb50['key'])return{'type':'format','content':_0x30cb50['newValue']?c(_0x554b70,'*Check\x20item*'):c(_0x554b70,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x318e26=>{if(_0x318e26['batch']['isUndo'])return!0x1;let _0x5dfe56=!0x1;const _0x5f2c13=_0x35def5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20d90c=>'todoListChecked'===_0x35def5['_getAttributeKey'](_0x20d90c));for(const _0x5c99df of _0x5f2c13){'todo'!=_0x5c99df['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x35def5['_findSuggestions'](_0x5c99df['getFirstRange'](),'attribute')['find'](_0x3f1fc6=>'listType'===_0x35def5['_getAttributeKey'](_0x3f1fc6['suggestion']))||(_0x318e26['removeMarker'](_0x5c99df['getFirstMarker']()),_0x5dfe56=!0x0));}return _0x5dfe56;})),_0x35def5['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x554b70,'FORMAT_INDENT'));const _0x245cd6={'type':'format','content':''};_0x35def5['descriptionFactory']['registerDescriptionCallback'](_0x6a1bae=>{const {data:_0x52e267}=_0x6a1bae;if(!_0x52e267||'listType'!=_0x52e267['key'])return;let _0x44796f=_0x6a1bae['head'];for(;_0x44796f;){if(_0x44796f['data']&&(('listStyle'==_0x44796f['data']['key']||'listMarkerStyle'==_0x44796f['data']['key'])&&(_0x44796f['data']['newValue']&&'default'!=_0x44796f['data']['newValue']||'default'!=_0x44796f['data']['oldValue']&&!_0x52e267['newValue'])||!_0x5e1873&&_0x44796f['data']['key']==u))return _0x245cd6;_0x44796f=_0x44796f['next'];}if(null==_0x52e267['newValue'])switch(_0x52e267['oldValue']){case'bulleted':return _0x35dba2(c(_0x554b70,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35dba2(c(_0x554b70,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35dba2(c(_0x554b70,'ELEMENT_TODO_LIST'));}switch(_0x52e267['newValue']){case'bulleted':return _0x4615aa(c(_0x554b70,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4615aa(c(_0x554b70,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4615aa(c(_0x554b70,'ELEMENT_TODO_LIST'));}}),_0x35def5['descriptionFactory']['registerDescriptionCallback'](_0x3dce22=>{const {data:_0x53c3bd}=_0x3dce22;if(_0x53c3bd&&'listIndent'==_0x53c3bd['key'])return null==_0x53c3bd['newValue']||null==_0x53c3bd['oldValue']&&0x0==_0x53c3bd['newValue']?_0x245cd6:void 0x0;}),_0x35def5['descriptionFactory']['registerDescriptionCallback'](_0x43fe8a=>{if('attribute'!=_0x43fe8a['type'])return;const {data:_0x51855e}=_0x43fe8a;if(!_0x51855e||'listItemId'!=_0x51855e['key'])return;const _0x2a482f=Te(_0x43fe8a);return'newValue'==_0x2a482f?{'type':'format','content':c(_0x554b70,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2a482f?{'type':'format','content':c(_0x554b70,'*Split:*\x20list\x20item')}:_0x245cd6;}),_0x570b91['model']['document']['registerPostFixer'](_0x2b133c=>this['listItemIdFixer'](_0x2b133c)),_0x570b91['model']['document']['registerPostFixer'](_0x518ae1=>this['noTrackChangesFixer'](_0x518ae1)),_0x570b91['model']['document']['on']('change:data',(_0x1f3a14,_0x3d6779)=>{if(_0x3d6779['isUndo']||!_0x3d6779['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x41d6a2){if(_0x41d6a2['batch']['isUndo']||!_0x41d6a2['batch']['isLocal'])return!0x1;let _0x1b607=!0x1;const _0x4b6fdd=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x427346=>_0x427346['data']&&'listItemId'==_0x427346['data']['key'])['filter'](_0x1baeee=>_0x1baeee['data']['newValue']&&_0x1baeee['data']['oldValue']);for(const _0x23c825 of _0x4b6fdd)Te(_0x23c825)||(_0x41d6a2['removeMarker'](_0x23c825['getFirstMarker']()),_0x1b607=!0x0);return _0x1b607;}['noTrackChangesFixer'](_0x5bfaea){if(_0x5bfaea['batch']['isUndo']||!_0x5bfaea['batch']['isLocal'])return!0x1;const _0x7c9229=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x7c9229['trackChangesCommand']['value'])return!0x1;let _0x5448ea=!0x1;const _0x1daaaf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2d33fa=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1cb38c=>'attribute'==_0x1cb38c['type'])['filter'](_0x2602b0=>_0x1daaaf['includes'](_0x2602b0['attributeKey']));if(0x0==_0x2d33fa['length'])return _0x5448ea;for(const _0x208f07 of _0x2d33fa){const _0x374dd7=_0x7c9229['_findSuggestions'](_0x208f07['range'],'attribute')['filter'](_0xbe6ee4=>!_0xbe6ee4['meta']['isNextTo'])['map'](_0xff67ce=>_0xff67ce['suggestion'])['filter'](_0x124abf=>{const _0x12cb44=_0x7c9229['_getAttributeKey'](_0x124abf);return _0x1daaaf['includes'](_0x12cb44);});if(_0x374dd7['length']){for(const _0x217bf3 of _0x374dd7)_0x5bfaea['removeMarker'](_0x217bf3['getFirstMarker']());_0x5448ea=!0x0;}}return _0x5448ea;}['assureChains'](){const _0x11a06f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x447be2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4f4499;const _0x372855=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x7f316f=>{if(_0x7f316f['data']['oldRange']||!_0x7f316f['data']['newRange'])return null;if(!_0x7f316f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x23efce}=_0x11a06f['_splitMarkerName'](_0x7f316f['name']);if(!_0x11a06f['hasSuggestion'](_0x23efce))return null;const _0x4dca97=_0x11a06f['getSuggestion'](_0x23efce);return _0x447be2['includes'](_0x4dca97['data']['key']);})['map'](_0x252279=>{const {id:_0x1f5bd5}=_0x11a06f['_splitMarkerName'](_0x252279['name']),_0x4a9ce2=_0x11a06f['getSuggestion'](_0x1f5bd5);return _0x4f4499=_0x4a9ce2['attributes']['groupId'],_0x4a9ce2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x372855['size'])return;const _0x3524ad=_0x11a06f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x274231=>'attribute'==_0x274231['type']&&_0x274231['data']&&_0x447be2['includes'](_0x274231['data']['key'])&&_0x274231['attributes']['groupId']!=_0x4f4499)['map'](_0x49153c=>({'listItem':_0x49153c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x49153c['attributes']['groupId']})),_0x4e61a7=new Set();for(const {groupId:_0x4d3c06,listItem:_0x49e5b7}of _0x3524ad)_0x372855['has'](_0x49e5b7)&&_0x4e61a7['add'](_0x4d3c06);for(const _0x4fba96 of _0x11a06f['getSuggestions']())_0x4e61a7['has'](_0x4fba96['attributes']['groupId'])&&_0x4fba96['setAttribute']('groupId',_0x4f4499);}['_supportLegacySuggestions'](){const _0x2ba4f1=this['editor'],_0x3ceed2=_0x2ba4f1['locale'],_0x3e6fbb=_0x2ba4f1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3e6fbb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5cde8e,_0x38eb91){const _0x250d9c=[];for(let _0x4fe4f9 of _0x5cde8e)_0x4fe4f9['start']['nodeAfter']===_0x4fe4f9['end']['parent']&&(_0x4fe4f9=_0x2ba4f1['model']['createRange'](_0x2ba4f1['model']['createPositionAt'](_0x4fe4f9['start']['nodeAfter'],0x0))),_0x250d9c['push'](_0x4fe4f9);_0x2ba4f1['model']['change'](_0x281812=>{const _0x5b8f8d=_0x2ba4f1['model']['document']['selection'],_0x783a5a=Array['from'](_0x5b8f8d['getRanges']())['map'](_0x4b60fc=>_0x5702ff['fromRange'](_0x4b60fc));_0x281812['setSelection'](_0x250d9c),_0x2ba4f1['commands']['get'](_0x38eb91['commandName'])['refresh'](),_0x38eb91['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2ba4f1['execute'](_0x38eb91['commandName'],..._0x38eb91['commandParams']),_0x281812['setSelection'](_0x783a5a);for(const _0x36751d of _0x783a5a)_0x36751d['detach']();});}),_0x3e6fbb['descriptionFactory']['registerElementLabel'](function(_0x27f6cd){const _0x536bee=!_0x2ba4f1['model']['schema']['isObject'](_0x27f6cd),_0x196132=_0x27f6cd['previousSibling'],_0x5b3d75=_0x27f6cd['nextSibling'],_0x28a6f5=_0x27f6cd['getAttribute']('listItemId'),_0x8ccd15=!_0x196132||_0x196132['getAttribute']('listItemId')!==_0x28a6f5,_0x3e5d03=!_0x5b3d75||_0x5b3d75['getAttribute']('listItemId')!==_0x28a6f5;return _0x536bee&&Boolean(_0x28a6f5)&&_0x8ccd15&&_0x3e5d03;},_0x6d9fcf=>c(_0x3ceed2,'ELEMENT_LIST_ITEM',_0x6d9fcf));}['_registerLegacyDescription'](){const _0x4d918f=this['editor'],_0x19ad54=_0x4d918f['locale'];function _0x1a52b2(_0x11ea6c){const _0x38d058=_0x4d918f['commands']['get']('bulletedList')['value'],_0xf08ed2=_0x4d918f['commands']['get']('numberedList')['value'];return'numberedList'===_0x11ea6c?_0x38d058:_0xf08ed2;}_0x4d918f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4d7a19){if('formatBlock'!=_0x4d7a19['type'])return;const {data:_0x128e98}=_0x4d7a19;if(!_0x128e98)return;let _0x3d38b0,_0x3f101f,_0x4fd453,_0x3c9613;switch(_0x128e98['commandName']){case'bulletedList':_0x4fd453=_0x128e98['commandParams'][0x0]['forceValue'],_0x3c9613=_0x1a52b2(_0x128e98['commandName']),_0x3d38b0=_0x4fd453?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c9613&&_0x4d918f['config']['get']('list.multiBlock')||(_0x3d38b0='*Change\x20to:*\x20%0'),_0x3f101f={'type':'format','content':c(_0x19ad54,_0x3d38b0,c(_0x19ad54,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4fd453=_0x128e98['commandParams'][0x0]['forceValue'],_0x3c9613=_0x1a52b2(_0x128e98['commandName']),_0x3d38b0=_0x4fd453?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c9613&&_0x4d918f['config']['get']('list.multiBlock')||(_0x3d38b0='*Change\x20to:*\x20%0'),_0x3f101f={'type':'format','content':c(_0x19ad54,_0x3d38b0,c(_0x19ad54,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3d38b0='*Indent:*\x20%0',_0x3f101f={'type':'format','content':c(_0x19ad54,_0x3d38b0,c(_0x19ad54,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3d38b0=function(_0x24d34e){const _0x114804=_0x24d34e['getFirstRange']();let _0x557a35=_0x114804['start']['nodeAfter'];for(;_0x557a35&&_0x114804['containsItem'](_0x557a35);){if(_0x557a35['getAttribute']('listIndent')>0x0)return!0x1;_0x557a35=_0x557a35['nextSibling'];}return!0x0;}(_0x4d7a19)?c(_0x19ad54,'*Format:*\x20remove\x20from\x20%0',c(_0x19ad54,function(_0x3341d8){return'ELEMENT_'+_0x3341d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4d7a19))):c(_0x19ad54,'*Outdent:*\x20%0',c(_0x19ad54,'ELEMENT_LIST_ITEM')),_0x3f101f={'type':'format','content':_0x3d38b0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x128e98['multipleBlocks']&&(_0x3d38b0='*Merge:*\x20%0',_0x3f101f={'type':'deletion','content':c(_0x19ad54,_0x3d38b0,c(_0x19ad54,'ELEMENT_LIST_ITEM'))});}return _0x3f101f;});}}function Te(_0x300195){let _0x35bc0a=_0x300195['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x35bc0a;){const _0x4d6fd8=_0x35bc0a['getAttribute']('listItemId');if(!_0x4d6fd8)return!0x1;if(_0x4d6fd8==_0x300195['data']['newValue'])return'newValue';if(_0x4d6fd8==_0x300195['data']['oldValue'])return'oldValue';_0x35bc0a=_0x35bc0a['previousSibling'];}return!0x1;}class Se extends _0x49d3a0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2ce186=this['editor']['config']['get']('list.properties'),_0x1861de=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ce186['styles']&&(_0x1861de['enableDefaultAttributesIntegration']('listStyle'),_0x1861de['registerBlockAttribute']('listStyle')),_0x2ce186['reversed']&&(_0x1861de['enableDefaultAttributesIntegration']('listReversed'),_0x1861de['registerBlockAttribute']('listReversed')),_0x2ce186['startIndex']&&(_0x1861de['enableDefaultAttributesIntegration']('listStart'),_0x1861de['registerBlockAttribute']('listStart'));const _0xd3c718={'type':'format','content':''};_0x1861de['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1580f6=this['editor']['locale'];_0x1861de['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x1580f6,'FORMAT_LIST_REVERSED')),_0x1861de['descriptionFactory']['registerDescriptionCallback'](_0x4860d4=>{const {data:_0x2569b6}=_0x4860d4;if(_0x2569b6&&'listReversed'==_0x2569b6['key'])return null==_0x2569b6['newValue']||0x0==_0x2569b6['newValue']&&null==_0x2569b6['oldValue']?_0xd3c718:void 0x0;}),_0x1861de['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x1580f6,'FORMAT_LIST_START')),_0x1861de['descriptionFactory']['registerDescriptionCallback'](_0x979a64=>{const {data:_0x4e4e92}=_0x979a64;if(_0x4e4e92&&'listStart'==_0x4e4e92['key'])return null==_0x4e4e92['newValue']||0x1==_0x4e4e92['newValue']&&null==_0x4e4e92['oldValue']?_0xd3c718:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x298988=>{if(_0x298988['batch']['isUndo'])return!0x1;let _0x35d69c=!0x1;const _0x273002=_0x1861de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56e233=>{const _0x4284dc=_0x1861de['_getAttributeKey'](_0x56e233);return'listStart'==_0x4284dc||'listReversed'==_0x4284dc;});for(const _0x28fa25 of _0x273002){const _0x185f56=_0x28fa25['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x185f56||'customNumbered'==_0x185f56)continue;_0x1861de['_findSuggestions'](_0x28fa25['getFirstRange'](),'attribute')['find'](_0x5c34c3=>'listType'==_0x1861de['_getAttributeKey'](_0x5c34c3['suggestion']))||(_0x298988['removeMarker'](_0x28fa25['getFirstMarker']()),_0x35d69c=!0x0);}return _0x35d69c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3a0015){const _0x7ea143=this['editor']['locale'],{data:_0x1126f2}=_0x3a0015,_0xc48e1a={'type':'format','content':''};if(!_0x1126f2||'listStyle'!=_0x1126f2['key'])return;if(!_0x1126f2['oldValue'])return'default'==_0x1126f2['newValue']?_0xc48e1a:{'type':'format','content':''+c(_0x7ea143,'*Set\x20format:*\x20%0',c(_0x7ea143,this['_getTranslationKeyForListStyle'](_0x1126f2['newValue'])))};if(!_0x1126f2['newValue']){if('default'==_0x1126f2['oldValue'])return _0xc48e1a;let _0x52267c=_0x3a0015['head'];for(;_0x52267c;){if(_0x52267c['data']&&'listType'==_0x52267c['data']['key']&&_0x52267c['data']['newValue'])return _0xc48e1a;_0x52267c=_0x52267c['next'];}return{'type':'format','content':''+c(_0x7ea143,'*Remove\x20format:*\x20%0',c(_0x7ea143,this['_getTranslationKeyForListStyle'](_0x1126f2['oldValue'])))};}if('default'!=_0x1126f2['newValue'])return{'type':'format','content':''+c(_0x7ea143,'*Set\x20format:*\x20%0',c(_0x7ea143,this['_getTranslationKeyForListStyle'](_0x1126f2['newValue'])))};let _0x5f1245=_0x3a0015['head'];for(;_0x5f1245;){if(_0x5f1245['data']&&'listType'==_0x5f1245['data']['key']&&_0x5f1245['data']['newValue']&&_0x5f1245['data']['oldValue'])return _0xc48e1a;_0x5f1245=_0x5f1245['next'];}return{'type':'format','content':c(_0x7ea143,'*Set\x20format:*\x20%0',c(_0x7ea143,'ELEMENT_'+_0x3a0015['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1132b5=this['editor'],_0xa455f=_0x1132b5['locale'];_0x1132b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xccb53a=>{if('formatBlock'!=_0xccb53a['type'])return;const {data:_0x18f739}=_0xccb53a;if(!_0x18f739)return;let _0x939ac9,_0x57c2a9;switch(_0x18f739['commandName']){case'listStyle':_0x939ac9='*Change\x20to:*\x20%0',_0x57c2a9={'type':'format','content':c(_0xa455f,_0x939ac9,c(_0xa455f,this['_getTranslationKeyForListStyle'](_0x18f739['commandParams'][0x0]['type'])))};break;case'listReversed':_0x939ac9=_0x18f739['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x57c2a9={'type':'format','content':c(_0xa455f,_0x939ac9)};break;case'listStart':_0x939ac9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x57c2a9={'type':'format','content':c(_0xa455f,_0x939ac9,_0x18f739['commandParams'][0x0]['startIndex'])};}return _0x57c2a9;});}['_getTranslationKeyForListStyle'](_0x2f9337){return'ELEMENT_'+function(_0xf43307){if(_e['includes'](_0xf43307))return'bulleted';if(Re['includes'](_0xf43307))return'numbered';return null;}(_0x2f9337)['toUpperCase']()+'_LIST_'+_0x2f9337['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x49d3a0{['afterInit'](){const _0x410e90=this['editor'];_0x410e90['commands']['get']('emoji')&&_0x410e90['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x49d3a0{static get['requires'](){return[_0xfef883];}['init'](){const _0x255187=this['editor'],_0x49120e=_0x255187['plugins']['get']('TrackChangesEditing'),_0x4ff9aa=_0x255187['commands']['get']('enter');_0x49120e['enableCommand']('enter',()=>{_0x255187['model']['change'](_0x5e2267=>{const _0x119731=_0x255187['model']['document']['selection'],_0x4b3812=_0x119731['getFirstPosition'](),_0x52b311=_0x5702ff['fromRange'](_0x119731['getFirstRange']());if(_0x4ff9aa['enterBlock'](_0x5e2267)){const _0x12050f=_0x255187['model']['createPositionAt'](_0x4b3812['parent']['nextSibling'],0x0),_0x50133f=_0x5e2267['createRange'](_0x4b3812,_0x12050f);_0x49120e['markInsertion'](_0x50133f);}else _0x5e2267['setSelection'](_0x5e2267['createRange'](_0x52b311['end']));_0x52b311['detach'](),_0x4ff9aa['fire']('afterExecute',{'writer':_0x5e2267});});}),_0x255187['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x255187,'split'),{'priority':'high'}),_0x255187['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xf8d578,_0x33334e,_0x169102)=>{const _0x2f874f=_0x169102['mapper']['markerNameToElements'](_0x33334e['markerName']);if(_0x2f874f){for(const _0x2258bf of _0x2f874f)_0x2258bf['hasClass']('ck-suggestion-marker-split')&&(_0x169102['mapper']['unbindElementFromMarkerName'](_0x2258bf,_0x33334e['markerName']),_0x169102['writer']['remove'](_0x2258bf));}},{'priority':'high'}),_0x255187['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4d8a5c,_0x5c8a34,_0x2fe55d)=>{_0x2fe55d['options']['showSuggestionHighlights']&&Fe(_0x255187,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4d8a5c,_0x5c8a34,_0x2fe55d);},{'priority':'high'});}}class Z extends _0x49d3a0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x247ac8=this['editor']['plugins']['get']('TrackChangesEditing');_0x247ac8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x247ac8['enableCommand']('findNext'),_0x247ac8['enableCommand']('findPrevious'),_0x247ac8['enableCommand']('replace'),_0x247ac8['enableCommand']('replaceAll');}['handleFindCommand'](_0x5aa0e9,_0xf28e52,_0x47515f={}){const _0x568ec5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5aa0e9(_0x51c534=>{let _0x51ce22=('string'==typeof _0xf28e52?_0x568ec5['findByTextCallback'](_0xf28e52,_0x47515f):_0xf28e52)(_0x51c534);Array['isArray'](_0x51ce22)&&(_0x51ce22={'results':_0x51ce22,'searchText':'string'==typeof _0xf28e52?_0xf28e52:''});const _0x2d78b8=_0x51ce22['results']['filter'](_0x2f98b6=>!0x1===this['_isInDeletionRange'](_0x2f98b6,_0x51c534['item']));return{..._0x51ce22,'results':_0x2d78b8};},_0x47515f);}['_isInDeletionRange'](_0x3764c4,_0x1651a0){const _0x1bc95e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1651a0,_0x3764c4['start']),this['editor']['model']['createPositionAt'](_0x1651a0,_0x3764c4['end']));for(const _0x52225f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1bc95e['getIntersection'](_0x52225f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x49d3a0{['afterInit'](){const _0x53d64f=this['editor']['locale'],_0x10a82d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2063fb,commandName:_0x6481f}of ro)this['editor']['plugins']['has'](_0x2063fb)&&(_0x10a82d['enableDefaultAttributesIntegration'](_0x6481f),_0x10a82d['registerInlineAttribute'](_0x6481f));_0x10a82d['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x53d64f,'FORMAT_FONT_SIZE')),_0x10a82d['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x53d64f,'FORMAT_FONT_FAMILY')),_0x10a82d['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x53d64f,'FORMAT_FONT_COLOR')),_0x10a82d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x53d64f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55224e=this['editor'],_0x2fcede=_0x55224e['locale'];_0x55224e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b8599=>{const _0x36949d=_0x2fcede['t'];if('formatInline'!=_0x3b8599['type'])return;const {data:_0x23639a}=_0x3b8599;if(null!=_0x23639a){if('fontSize'==_0x23639a['commandName']){const _0x47ba21=_0x23639a['commandParams'][0x0]['value'];if(_0x47ba21){const _0x12975e=_0x36949d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2fb50d=>_0x2fb50d['model']==_0x47ba21)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2fcede,'*Set\x20font\x20size:*\x20%0',_0x12975e)};}return{'type':'format','content':c(_0x2fcede,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x23639a['commandName']){const _0x57a2c5=_0x23639a['commandParams'][0x0]['value'];return _0x57a2c5?{'type':'format','content':c(_0x2fcede,'*Set\x20font\x20family:*\x20%0',_0x57a2c5)}:{'type':'format','content':c(_0x2fcede,'*Reset\x20font\x20family*')};}if('fontColor'==_0x23639a['commandName']){const _0x36d0c5=_0x23639a['commandParams'][0x0]['value'];if(_0x36d0c5){const _0x1d95ca=_0x678eb7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x99cd4c=>_0x99cd4c['model']==_0x36d0c5);let _0x5f3e4e=_0x36d0c5,_0x12fe36='';return _0x1d95ca&&(_0x5f3e4e=_0x1d95ca['label'],_0x12fe36=_0x36949d(_0x5f3e4e)['toLowerCase']()),{'type':'format','content':c(_0x2fcede,'*Set\x20font\x20color:*\x20%0',_0x12fe36)['trim'](),'color':{'value':_0x36d0c5,'title':_0x12fe36||_0x5f3e4e}};}return{'type':'format','content':c(_0x2fcede,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x23639a['commandName']){const _0x24e030=_0x23639a['commandParams'][0x0]['value'];if(_0x24e030){const _0x52da70=_0x678eb7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x31be78=>_0x31be78['model']==_0x24e030);let _0x4b71bc=_0x24e030,_0x784d1d='';return _0x52da70&&(_0x4b71bc=_0x52da70['label'],_0x784d1d=_0x36949d(_0x4b71bc)['toLowerCase']()),{'type':'format','content':c(_0x2fcede,'*Set\x20font\x20background\x20color:*\x20%0',_0x784d1d)['trim'](),'color':{'value':_0x24e030,'title':_0x784d1d||_0x4b71bc}};}return{'type':'format','content':c(_0x2fcede,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x49d3a0{['afterInit'](){const _0x5726cb=this['editor'],_0x1eaf92=_0x5726cb['plugins']['get']('TrackChangesEditing'),_0x5aa27c=_0x5726cb['commands']['get']('copyFormat'),_0x28cfd4=_0x5726cb['commands']['get']('pasteFormat');_0x5aa27c&&_0x28cfd4&&(_0x1eaf92['enableDefaultAttributesIntegration']('pasteFormat'),_0x1eaf92['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1725f2=this['editor'],_0x5100d8=_0x1725f2['locale'];_0x1725f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38df2c=>{if('formatBlock'!=_0x38df2c['type']&&'formatInline'!=_0x38df2c['type'])return;const {data:_0x342bba}=_0x38df2c;if(_0x342bba&&'pasteFormat'===_0x342bba['commandName']){const _0x3c07cf=[],_0x5a4e3e=_0x342bba['commandParams'][0x0];for(const [_0x4d67cd,_0x3c90fa]of Object['entries'](_0x5a4e3e))_0x3c07cf['push'](so(_0x1725f2,_0x4d67cd,_0x3c90fa));return _0x3c07cf['length']?{'type':'format','content':c(_0x5100d8,'*Set\x20format\x20to:*\x20%0',_0x3c07cf['join'](',\x20'))}:{'type':'format','content':c(_0x5100d8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x8a56c7,_0x5521ea,_0x28ce4d){const _0x4191ec=_0x8a56c7['locale']['t'],_0x155621=_0x5521ea['split'](/(?=[A-Z])/)['join']('\x20'),_0x16b0c0=_0x4191ec(_0x155621['charAt'](0x0)['toUpperCase']()+_0x155621['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x28ce4d)return _0x16b0c0;if('fontColor'===_0x5521ea||'fontBackgroundColor'===_0x5521ea){const _0x52da51=_0x678eb7(_0x8a56c7['config']['get']('fontColor.colors'))['find'](_0x1e67b=>_0x1e67b['model']==_0x28ce4d);return _0x16b0c0+'\x20('+(_0x52da51?_0x4191ec(_0x52da51['label'])['toLowerCase']():_0x28ce4d)+')';}if('fontSize'===_0x5521ea&&isNaN(parseFloat(_0x28ce4d))){const _0xce34f=_0x8a56c7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x8a56c7['config']['get']('fontSize.options'))['find'](_0x5412b8=>_0x5412b8['model']==_0x28ce4d);return _0x16b0c0+'\x20('+(_0xce34f?_0x4191ec(_0xce34f['title'])['toLowerCase']():_0x28ce4d)+')';}return _0x16b0c0+'\x20('+_0x28ce4d+')';}class nt extends _0x49d3a0{['_headingOptions'];['afterInit'](){const _0x4d1ee5=this['editor'];if(!_0x4d1ee5['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4d1ee5['config']['get']('heading.options');const _0x25ddde=_0x4d1ee5['locale'],_0x1a1cd9=_0x4d1ee5['plugins']['get']('TrackChangesEditing');_0x1a1cd9['enableDefaultAttributesIntegration']('heading');for(const _0x8668bb of this['_headingOptions'])'paragraph'!=_0x8668bb['model']&&_0x1a1cd9['descriptionFactory']['registerElementLabel'](_0x8668bb['model'],_0x5ed0a8=>{const _0x195fc=this['_getHeadingLevel'](_0x8668bb['model']);return null!==_0x195fc?_0x25f06c(_0x5ed0a8,_0x195fc):_0x3522f9(_0x5ed0a8,_0x8668bb['title']);});function _0x25f06c(_0x915336,_0x3d1c3a){return c(_0x25ddde,'ELEMENT_HEADING',[_0x915336,_0x3d1c3a]);}function _0x3522f9(_0x308fd6,_0x2a5f85){return c(_0x25ddde,'ELEMENT_HEADING_CUSTOM',[_0x308fd6,_0x2a5f85]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ac7cc=this['editor'],_0x2cf1f8=_0x4ac7cc['locale'];function _0x410ed2(_0x544ca4,_0x1f9e3a){return c(_0x2cf1f8,'ELEMENT_HEADING_CUSTOM',[_0x544ca4,_0x1f9e3a]);}_0x4ac7cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f43cd=>{if('formatBlock'!=_0x5f43cd['type'])return;const {data:_0x37042a}=_0x5f43cd;if(_0x37042a&&'heading'==_0x37042a['commandName']){const _0x2a0eb6=_0x37042a['commandParams'][0x0]['value'],_0x5a1e67=this['_getHeadingLevel'](_0x2a0eb6);if(null!==_0x5a1e67)return{'type':'format','content':c(_0x2cf1f8,'*Change\x20to:*\x20%0',(_0x1a1405=0x1,_0x45f92f=_0x5a1e67,c(_0x2cf1f8,'ELEMENT_HEADING',[_0x1a1405,_0x45f92f])))};const _0x17366e=this['_headingOptions']['find'](_0x3437a2=>_0x3437a2['model']===_0x2a0eb6)['title'];return{'type':'format','content':c(_0x2cf1f8,'*Change\x20to:*\x20%0',_0x410ed2(0x1,_0x17366e))};}var _0x1a1405,_0x45f92f;});}['_getHeadingLevel'](_0x14c472){const _0x12deab=_0x14c472['match'](/^heading(\d+)/);if(_0x12deab)return _0x12deab[0x1];const _0xb9b441=this['_headingOptions']?.['find'](_0xf41cb7=>_0xf41cb7['model']==_0x14c472);if(_0xb9b441&&_0xb9b441['view']){const _0x573ed5=_0xb9b441['view'],_0x1647bb=(_0x573ed5['name']??_0x573ed5)['match'](/^h(\d+)/);if(_0x1647bb)return _0x1647bb[0x1];}return null;}}class it extends _0x49d3a0{['afterInit'](){const _0x29e8fb=this['editor'];if(!_0x29e8fb['plugins']['has']('HighlightEditing'))return;const _0x181fbe=_0x29e8fb['plugins']['get']('TrackChangesEditing'),_0xb29132=_0x29e8fb['locale'];_0x181fbe['enableDefaultAttributesIntegration']('highlight'),_0x181fbe['registerInlineAttribute']('highlight'),_0x181fbe['descriptionFactory']['registerAttributeLabel']('highlight',c(_0xb29132,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f2a53=this['editor'],_0x434e50=_0x4f2a53['locale'];_0x4f2a53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x71cc54=>{if('formatInline'!=_0x71cc54['type'])return;const {data:_0x2ef124}=_0x71cc54;if(_0x2ef124&&'highlight'==_0x2ef124['commandName']){const _0x8df69d=_0x434e50['t'],_0x3ec981=_0x2ef124['commandParams'][0x0]['value'];if(_0x3ec981){const _0x3c2a0d=_0x4f2a53['config']['get']('highlight.options')['find'](_0x1a9788=>_0x1a9788['model']==_0x3ec981),_0x259d7f=_0x8df69d(_0x3c2a0d['title'])['toLowerCase']();return{'type':'format','content':c(_0x434e50,'*Set\x20highlight:*\x20%0',_0x259d7f),'color':{'value':_0x3c2a0d['color'],'title':_0x3c2a0d['title']}};}return{'type':'format','content':c(_0x434e50,'*Remove\x20highlight*',c(_0x434e50,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x49d3a0{['afterInit'](){const _0x35a9b8=this['editor'];if(!_0x35a9b8['plugins']['has']('HorizontalLineEditing'))return;_0x35a9b8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x91ab2c=_0x35a9b8['plugins']['get']('TrackChangesEditing'),_0x50e49f=_0x35a9b8['locale'];_0x91ab2c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x399839=>c(_0x50e49f,'ELEMENT_HORIZONTAL_LINE',_0x399839)),_0x35a9b8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x126020,{writer:_0x2064fd,options:_0x39e7a6})=>{if(!_0x39e7a6['showSuggestionHighlights'])return null;const _0x5f34a5=_0x2064fd['createContainerElement']('div'),_0x3f70c7=_0x2064fd['createEmptyElement']('hr');return _0x2064fd['addClass']('ck-horizontal-line',_0x5f34a5),_0x2064fd['insert'](_0x2064fd['createPositionAt'](_0x5f34a5,0x0),_0x3f70c7),_0x5f34a5;},'converterPriority':'high'});}}class ot extends _0x49d3a0{['afterInit'](){const _0xae00fa=this['editor'];if(!_0xae00fa['plugins']['has']('HtmlEmbed'))return;const _0x2d5913=_0xae00fa['plugins']['get']('TrackChangesEditing'),_0x37c0ec=_0xae00fa['locale'];_0x2d5913['descriptionFactory']['registerElementLabel']('rawHtml',_0x1113c8=>c(_0x37c0ec,'ELEMENT_HTML_EMBED',_0x1113c8)),_0x2d5913['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2d5913['registerBlockAttribute']('value'),_0x2d5913['descriptionFactory']['registerDescriptionCallback'](_0xa70df9=>{if('attribute'!=_0xa70df9['type'])return;const {data:_0x249e0d}=_0xa70df9;if(_0x249e0d&&'value'==_0x249e0d['key']&&_0xa70df9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xf047f0=c(_0x37c0ec,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x37c0ec,'*Change\x20%0\x20content*',_0xf047f0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d642b=this['editor'],_0x373c5f=_0x4d642b['locale'];_0x4d642b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26c4a1=>{if('formatBlock'!=_0x26c4a1['type'])return;const {data:_0x5cb978}=_0x26c4a1;if(_0x5cb978&&'htmlEmbed'==_0x5cb978['commandName']){const _0x3d882c=c(_0x373c5f,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x373c5f,'*Change\x20%0\x20content*',_0x3d882c)};}});}}class rt extends _0x49d3a0{['afterInit'](){const _0x42dd12=this['editor'];if(!_0x42dd12['plugins']['has']('ImageEditing'))return;const _0x550871=_0x42dd12['plugins']['get']('TrackChangesEditing'),_0x1e73ba=_0x42dd12['plugins']['get']('ImageUtils'),_0x32ce42=_0x42dd12['locale'];_0x550871['enableCommand']('insertImage'),_0x550871['descriptionFactory']['registerElementLabel']('imageBlock',_0x5c389e=>c(_0x32ce42,'ELEMENT_IMAGE',_0x5c389e)),_0x550871['descriptionFactory']['registerElementLabel']('imageInline',_0x27d510=>c(_0x32ce42,'ELEMENT_INLINE_IMAGE',_0x27d510)),_0x550871['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x32ce42,'ELEMENT_CAPTION')),_0x42dd12['plugins']['has']('ImageUploadEditing')&&_0x550871['enableCommand']('uploadImage'),_0x42dd12['plugins']['has']('ImageBlockEditing')&&_0x42dd12['plugins']['has']('ImageInlineEditing')&&(_0x550871['enableCommand']('imageTypeInline',(_0x13c4d9,_0x371633)=>{const _0x5981ce=_0x1e73ba['getClosestSelectedImageElement'](_0x42dd12['model']['document']['selection']);_0x42dd12['model']['change'](()=>{_0x550871['markBlockFormat'](_0x5981ce,{'commandName':'imageTypeInline','commandParams':[_0x371633]},[],'convertBlockImageToInline');});}),_0x550871['enableCommand']('imageTypeBlock',(_0x8f3d56,_0x4df57f)=>{_0x42dd12['model']['change'](_0x2fe410=>{let _0x1351c1=_0x1e73ba['getClosestSelectedImageElement'](_0x42dd12['model']['document']['selection']),_0x3ef351=_0x2fe410['createRangeOn'](_0x1351c1);const _0x351aef=_0x5b7900['fromPosition'](_0x3ef351['start'],'toPrevious'),_0x219e45=_0x5b7900['fromPosition'](_0x3ef351['end'],'toNext');_0x550871['forceDefaultExecution'](()=>_0x8f3d56(_0x4df57f)),_0x1351c1=_0x1e73ba['getClosestSelectedImageElement'](_0x42dd12['model']['document']['selection']),_0x3ef351=_0x2fe410['createRangeOn'](_0x1351c1);const _0x159659=_0x2fe410['createRange'](_0x351aef,_0x219e45);_0x351aef['detach'](),_0x219e45['detach'](),_0x550871['markBlockFormat'](_0x1351c1,{'commandName':'imageTypeInline','commandParams':[_0x4df57f]},[],'convertInlineImageToBlock'),_0x159659['start']['isBefore'](_0x3ef351['start'])&&_0x550871['markInsertion'](_0x2fe410['createRange'](_0x159659['start'],_0x3ef351['start']),'convertInlineImageToBlock'),_0x3ef351['end']['isBefore'](_0x159659['end'])&&_0x550871['markInsertion'](_0x2fe410['createRange'](_0x3ef351['end'],_0x159659['end']),'convertInlineImageToBlock');});}),_0x550871['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x550871['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x550871['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x550871['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x550871['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x550871['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2551a7])=>{const _0x186282=_0x550871['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x48e186=_0x2551a7['start'],_0x25d4a6=_0x2551a7['end'];const _0x219a8f=_0x42dd12['model']['schema']['getNearestSelectionRange'](_0x48e186,'backward'),_0x5b30ff=_0x42dd12['model']['schema']['getNearestSelectionRange'](_0x25d4a6,'forward');_0x219a8f['isCollapsed']&&(_0x48e186=_0x219a8f['start']),_0x5b30ff['isCollapsed']&&(_0x25d4a6=_0x5b30ff['end']),_0x186282([_0x42dd12['model']['createRange'](_0x48e186,_0x25d4a6)]);}),_0x550871['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x28c34d),_0x550871['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x28c34d)),_0x42dd12['plugins']['has']('ImageCaptionEditing')&&(_0x550871['enableCommand']('toggleImageCaption',(_0x252627,_0x516dbe)=>{const _0x23572a=_0x42dd12['plugins']['get']('ImageCaptionUtils');let _0x90da5c=_0x1e73ba['getClosestSelectedImageElement'](_0x42dd12['model']['document']['selection']),_0x49e67b=_0x23572a['getCaptionFromImageModelElement'](_0x90da5c);_0x42dd12['model']['change'](()=>{if(_0x49e67b)return void _0x550871['markDeletion'](_0x42dd12['model']['createRangeOn'](_0x49e67b));const _0x40aca7=_0x1e73ba['isBlockImage'](_0x90da5c);_0x252627(_0x516dbe),_0x90da5c=_0x1e73ba['getClosestSelectedImageElement'](_0x42dd12['model']['document']['selection']),_0x49e67b=_0x23572a['getCaptionFromImageModelElement'](_0x90da5c),_0x550871['markInsertion'](_0x42dd12['model']['createRangeOn'](_0x49e67b),_0x40aca7?null:'imageCaption');});}),_0x550871['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x28c34d));const _0x518f89=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x30af9e(_0x2392d2,_0x6964b7){const _0x4ceb3c=_0x518f89['findIndex'](({type:_0x2d09ab,subType:_0xe2cb60})=>_0x2392d2['type']==_0x2d09ab&&_0x2392d2['subType']==_0xe2cb60),_0x5a52a0=_0x518f89['findIndex'](({type:_0x2443b1,subType:_0x50a5b3})=>_0x6964b7['type']==_0x2443b1&&_0x6964b7['subType']==_0x50a5b3);if(_0x4ceb3c<0x0||_0x5a52a0<0x0)return!0x1;const _0x4c45d9=_0x2392d2['getFirstRange'](),_0x4c7b26=_0x6964b7['getFirstRange']();if((0x0==_0x4ceb3c||0x1==_0x4ceb3c)&&0x2==_0x5a52a0&&_0x4c45d9['isIntersecting'](_0x4c7b26))return!0x0;if(0x2==_0x4ceb3c&&0x3==_0x5a52a0){const _0x13d132=_0x550871['_findSuggestions'](_0x4c45d9,'insertion')['filter'](({suggestion:_0x9fed2b,meta:_0x400de5})=>_0x400de5['isOwn']&&'convertInlineImageToBlock'==_0x9fed2b['subType']);if(_0x13d132['length']>0x1&&_0x4c7b26['end']['isEqual'](_0x4c45d9['start']))return!0x0;if(0x1==_0x13d132['length']&&(_0x4c45d9['start']['isEqual'](_0x4c7b26['end'])||_0x4c45d9['end']['isEqual'](_0x4c7b26['start'])))return!0x0;}if(0x3==_0x4ceb3c&&0x3==_0x5a52a0&&_0x4c45d9['start']['isBefore'](_0x4c7b26['start'])){const _0x45639b=_0x4c45d9['end']['nodeAfter'],_0x529831=_0x4c7b26['start']['nodeBefore'];return _0x1e73ba['isBlockImage'](_0x45639b)&&_0x45639b===_0x529831;}return!0x1;}function _0x28c34d(_0x13df5a,_0x4f4fca){return _0x30af9e(_0x13df5a,_0x4f4fca)?[_0x13df5a,_0x4f4fca]:_0x30af9e(_0x4f4fca,_0x13df5a)?[_0x4f4fca,_0x13df5a]:null;}_0x42dd12['plugins']['has']('ImageResize')&&(_0x550871['enableDefaultAttributesIntegration']('resizeImage'),_0x550871['registerBlockAttribute']('resizedWidth'),_0x550871['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x32ce42,'FORMAT_IMAGE_SIZE'))),_0x42dd12['plugins']['has']('ImageTextAlternativeEditing')&&(_0x550871['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x550871['registerBlockAttribute']('alt')),_0x42dd12['plugins']['has']('PictureEditing')&&(_0x550871['registerBlockAttribute']('sources'),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x4c3456=>{if('attribute'!=_0x4c3456['type'])return;const {data:_0x501b0b}=_0x4c3456;return _0x501b0b&&'sources'==_0x501b0b['key']?{'type':'format','content':''}:void 0x0;})),_0x42dd12['plugins']['has']('ImageSizeAttributes')&&(_0x550871['registerBlockAttribute']('width'),_0x550871['registerBlockAttribute']('height'),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x31c842=>{if('attribute'!=_0x31c842['type'])return;const {data:_0x407cbc}=_0x31c842;return!_0x407cbc||'width'!=_0x407cbc['key']&&'height'!=_0x407cbc['key']?void 0x0:{'type':'format','content':''};})),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x299e30=>{if(!!_0x518f89['find'](({type:_0x1d4de9,subType:_0x451603})=>_0x299e30['type']==_0x1d4de9&&_0x299e30['subType']==_0x451603))return _0x299e30['previous']?{}:void 0x0;}),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x2b4f03=>{if('insertion'==_0x2b4f03['type']||'deletion'==_0x2b4f03['type']){const _0xf4f5ac=_0x2b4f03['getContainedElement']();if(_0xf4f5ac&&_0xf4f5ac['is']('element','caption'))return{'type':'insertion'==_0x2b4f03['type']?'addObject':'removeObject','element':_0xf4f5ac,'quantity':0x1};}}),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x30f6b9=>'formatBlock'==_0x30f6b9['type']&&'convertInlineImageToBlock'==_0x30f6b9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x30f6b9['type']&&'convertBlockImageToInline'==_0x30f6b9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x4571e2=>{if('attribute'!=_0x4571e2['type'])return;const {data:_0x34d374}=_0x4571e2;if(!_0x34d374||'alt'!=_0x34d374['key'])return;const _0x5e662f=_0x34d374['newValue'];return _0x5e662f?{'type':'format','content':c(_0x32ce42,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5e662f+'\x22')}:{'type':'format','content':c(_0x32ce42,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x547e17=this['editor'],_0x740ff0=_0x547e17['locale'];_0x547e17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37b867=>{if('formatBlock'!=_0x37b867['type']&&'formatInline'!=_0x37b867['type'])return;const {data:_0x33b639}=_0x37b867;if(_0x33b639){if('imageTextAlternative'==_0x33b639['commandName']){const _0x1af855=_0x33b639['commandParams'][0x0]['newValue'];return _0x1af855?{'type':'format','content':c(_0x740ff0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1af855+'\x22')}:{'type':'format','content':c(_0x740ff0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x33b639['commandName']){const _0x2540cf=_0x33b639['commandParams'][0x0]['width'];return _0x2540cf?{'type':'format','content':c(_0x740ff0,'*Set\x20image\x20width:*\x20%0',_0x2540cf)}:{'type':'format','content':c(_0x740ff0,'*Reset\x20image\x20width*')};}}});}}class at extends _0x49d3a0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2e1af4=this['editor']['locale'],_0x5425b3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5425b3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5425b3['registerBlockAttribute']('src'),_0x5425b3['descriptionFactory']['registerDescriptionCallback'](_0x2c4fc5=>{if('attribute'!=_0x2c4fc5['type'])return;const {data:_0x1b979a}=_0x2c4fc5;return _0x1b979a&&'src'==_0x1b979a['key']?_0x1b979a['newValue']&&_0x1b979a['oldValue']?{'type':'format','content':c(_0x2e1af4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4accee=this['editor']['plugins']['get']('TrackChangesEditing');_0x4accee['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4accee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4accee['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4accee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x109c08=this['editor'],_0x58dd67=_0x109c08['locale'];_0x109c08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x338987=>{if('formatBlock'!=_0x338987['type']&&'formatInline'!=_0x338987['type'])return;const {data:_0x16f2d0}=_0x338987;if(!_0x16f2d0||'replaceImageSource'!=_0x16f2d0['commandName'])return;return{'type':'format','content':c(_0x58dd67,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x49d3a0{['afterInit'](){const _0x4f0832=this['editor'];if(!_0x4f0832['plugins']['has']('ImageStyleEditing'))return;const _0x29d68c=_0x4f0832['plugins']['get']('TrackChangesEditing'),_0x21b32e=_0x4f0832['plugins']['get']('ImageUtils'),_0x2300ea={};_0x29d68c['enableCommand']('imageStyle',(_0x291702,_0x365330)=>{const _0x542d85=_0x4f0832['plugins']['get']('Users')['me'],_0x59a7e8=_0x4f0832['commands']['get']('imageStyle');let _0xed8cc3=_0x21b32e['getClosestSelectedImageElement'](_0x4f0832['model']['document']['selection']),_0x14070d=_0x4f0832['model']['createRangeOn'](_0xed8cc3),_0xda7438=_0x59a7e8['value'];if(_0xda7438==_0x365330['value'])return;const _0x1bf394={'commandName':'imageStyle','commandParams':[_0x365330],'formatGroupId':_0x261f54()};_0x4f0832['model']['change'](()=>{if(_0x29d68c['getSuggestions']()['filter'](_0x45a230=>_0x45a230['isInContent']&&_0x542d85==_0x45a230['author']&&('formatBlock'==_0x45a230['type']||'formatInline'==_0x45a230['type'])&&('imageStylePreApply'==_0x45a230['subType']||'imageStylePostApply'==_0x45a230['subType'])&&_0x45a230['getFirstRange']()['isEqual'](_0x14070d))['forEach'](_0x519fb0=>_0x29d68c['discardSuggestion'](_0x519fb0['head'])),_0xed8cc3=_0x21b32e['getClosestSelectedImageElement'](_0x4f0832['model']['document']['selection']),_0x14070d=_0x4f0832['model']['createRangeOn'](_0xed8cc3),_0x59a7e8['refresh'](),_0x4f0832['commands']['get']('imageTypeInline')['refresh'](),_0x4f0832['commands']['get']('imageTypeBlock')['refresh'](),_0xda7438=_0x59a7e8['value'],_0xda7438!=_0x365330['value'])return _0x21b32e['isInlineImage'](_0xed8cc3)&&_0x59a7e8['shouldConvertImageType'](_0x365330['value'],_0xed8cc3)?(_0x291702({..._0x365330,'setImageSizes':!0x1}),_0xed8cc3=_0x21b32e['getClosestSelectedImageElement'](_0x4f0832['model']['document']['selection']),void _0x29d68c['markBlockFormat'](_0xed8cc3,{..._0x1bf394,'commandReversedParams':[{'value':_0xda7438||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x21b32e['isBlockImage'](_0xed8cc3)?_0x29d68c['markBlockFormat'](_0xed8cc3,_0x1bf394,[],'imageStylePostApply'):_0x29d68c['markInlineFormat'](_0x14070d,_0x1bf394,'imageStylePostApply'));});});for(const _0x1b3b18 of _0x4f0832['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2300ea[_0x1b3b18['name']]=_0x1b3b18['title']['toLowerCase']();_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x182df2])=>{_0x21b32e['setImageNaturalSizeAttributes'](_0x182df2['getContainedElement']());}),_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x18d4b7,_0x2c90e4)=>{_0x29d68c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x18d4b7,{'commandName':_0x2c90e4['commandName'],'commandParams':_0x2c90e4['commandReversedParams']});}),_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x21fd52,_0x41da62){if(_0x14786a(_0x21fd52,_0x41da62))return[_0x21fd52,_0x41da62];if(_0x14786a(_0x41da62,_0x21fd52))return[_0x41da62,_0x21fd52];return null;});const _0x31ec9a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x14786a(_0x86384e,_0xcf51a3){const _0x277917=_0x31ec9a['findIndex'](({type:_0x34f4a4,subType:_0x5cf235})=>_0x86384e['type']==_0x34f4a4&&_0x86384e['subType']==_0x5cf235),_0x246ff3=_0x31ec9a['findIndex'](({type:_0x3ef1fd,subType:_0x5d8008})=>_0xcf51a3['type']==_0x3ef1fd&&_0xcf51a3['subType']==_0x5d8008);if(_0x277917<0x0||_0x246ff3<0x0)return!0x1;const _0x435309=_0x86384e['getFirstRange'](),_0x4480df=_0xcf51a3['getFirstRange']();if((0x0==_0x277917||0x1==_0x277917)&&0x2==_0x246ff3&&_0x435309['isIntersecting'](_0x4480df))return!0x0;if(0x2==_0x277917&&0x3==_0x246ff3){const _0x5e9105=_0x29d68c['_findSuggestions'](_0x435309,'insertion')['filter'](({suggestion:_0x128e26,meta:_0x40914b})=>_0x40914b['isOwn']&&'convertInlineImageToBlock'==_0x128e26['subType']);if(_0x5e9105['length']>0x1&&_0x4480df['end']['isEqual'](_0x435309['start']))return!0x0;if(0x1==_0x5e9105['length']&&(_0x435309['start']['isEqual'](_0x4480df['end'])||_0x435309['end']['isEqual'](_0x4480df['start'])))return!0x0;}if(0x3==_0x277917&&0x3==_0x246ff3&&_0x435309['start']['isBefore'](_0x4480df['start'])){const _0x50fc2d=_0x435309['end']['nodeAfter'],_0x3919dc=_0x4480df['start']['nodeBefore'];return _0x21b32e['isBlockImage'](_0x50fc2d)&&_0x50fc2d===_0x3919dc;}return!0x1;}_0x4f0832['model']['document']['registerPostFixer'](()=>{let _0x223852=!0x1;const _0xd4742c=Array['from'](_0x4f0832['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44cbb2,data:_0x4a8832}of _0xd4742c){const {group:_0x5e2bef,type:_0x26f31c,subType:_0x5640d7,id:_0x3031c0}=_0x29d68c['_splitMarkerName'](_0x44cbb2);if('suggestion'==_0x5e2bef&&_0x29d68c['hasSuggestion'](_0x3031c0)){if('formatBlock'==_0x26f31c&&('imageStylePreApply'==_0x5640d7||'imageStylePostApply'==_0x5640d7)){const _0x1f8938=_0x29d68c['getSuggestion'](_0x3031c0);if(_0x4a8832['newRange']){const _0x38c53a=_0x1f8938['getFirstRange']()['getContainedElement']();if(_0x21b32e['isBlockImage'](_0x38c53a))continue;_0x29d68c['discardSuggestion'](_0x1f8938),_0x223852=!0x0;}}if('insertion'==_0x26f31c&&'imageCaption'==_0x5640d7&&!_0x4a8832['newRange']){const _0x517565=_0x29d68c['getSuggestion'](_0x3031c0);_0x517565['next']&&_0x517565['next']['isInContent']&&(_0x29d68c['discardSuggestion'](_0x517565['next']),_0x223852=!0x0);}}}return _0x223852;}),this['_registerLegacyDescription'](_0x2300ea);}['_registerLegacyDescription'](_0x9aeadd){const _0x402966=this['editor'],_0x634a7c=_0x402966['locale'];_0x402966['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ea4a0=>{if('formatBlock'!=_0x1ea4a0['type']&&'formatInline'!=_0x1ea4a0['type'])return;const {data:_0x3875fe}=_0x1ea4a0;if(!_0x3875fe||'imageStyle'!=_0x3875fe['commandName'])return;const _0x141b79=_0x3875fe['commandParams'][0x0]['value'];return _0x3480e2('side'===_0x141b79?c(_0x634a7c,'FORMAT_SIDE_IMAGE'):_0x9aeadd[_0x141b79]||_0x141b79);function _0x3480e2(_0x2e07a5){return{'type':'format','content':c(_0x634a7c,'*Format:*\x20%0',_0x2e07a5)};}});}}class ut extends _0x49d3a0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x342bee){super(_0x342bee),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x56333f=this['editor'],_0x256592=_0x56333f['commands']['get']('importWord'),_0x1c80c4=_0x56333f['commands']['get']('trackChanges');_0x256592&&(_0x256592['on']('execute',(_0x413eee,[,_0x507545])=>{this['_trackChangesValueDuringImport']=_0x1c80c4['value'],_0x507545['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x256592,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x256592,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1c80c4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x56333f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4019d4,_0x2d980e){const {suggestions:_0x15f030}=_0x2d980e,_0x309138=this['editor']['commands']['get']('trackChanges'),_0x4577ff=_0x309138['value'];this['_trackChangesValueDuringImport']!==_0x4577ff&&(_0x309138['execute'](),this['_trackChangesExecuted']=!0x0),_0x15f030&&_0x15f030['forEach'](({id:_0xd8ad2d,type:_0x12c3ce,author:_0x558d2e,created_at:_0x54f1ed})=>{const _0x31c4a4={'id':_0xd8ad2d,'type':_0x12c3ce,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x558d2e,'createdAt':_0x54f1ed?new Date(_0x54f1ed):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x31c4a4);});}}class ft extends _0x49d3a0{['afterInit'](){const _0x572e74=this['editor'],_0x334e57=_0x572e74['plugins']['get']('TrackChangesEditing');if(_0x572e74['plugins']['has']('IndentEditing')&&(_0x334e57['enableCommand']('indent'),_0x334e57['enableCommand']('outdent')),_0x572e74['plugins']['has']('IndentBlock')){for(const _0x22539c of['indentBlock','outdentBlock'])_0x334e57['enableDefaultAttributesIntegration'](_0x22539c);}const _0x229e10=_0x572e74['locale'];_0x334e57['registerBlockAttribute']('blockIndent'),_0x334e57['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x229e10,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba6a4=this['editor'],_0x96a415=_0x1ba6a4['locale'],_0x557022=_0x1ba6a4['plugins']['get']('TrackChangesEditing');_0x557022['descriptionFactory']['registerDescriptionCallback'](_0x47c5fa=>{if('formatBlock'!=_0x47c5fa['type'])return;const {data:_0x9214d1}=_0x47c5fa;if(!_0x9214d1)return;if('indentBlock'!=_0x9214d1['commandName']&&'outdentBlock'!=_0x9214d1['commandName'])return;const _0x4888b8=_0x47c5fa['getItems']()[0x0],_0x1b6756=_0x557022['descriptionFactory']['getItemLabel'](_0x4888b8);return'indentBlock'==_0x9214d1['commandName']?{'type':'format','content':c(_0x96a415,'*Indent:*\x20%0',_0x1b6756)}:'outdentBlock'==_0x9214d1['commandName']?{'type':'format','content':c(_0x96a415,'*Outdent:*\x20%0',_0x1b6756)}:void 0x0;});}}class ht extends _0x49d3a0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x49d3a0{['afterInit'](){const _0x488870=this['editor'];if(!_0x488870['plugins']['has']('LinkEditing'))return;const _0x32ae60=_0x488870['plugins']['get']('TrackChangesEditing'),_0x1593eb=_0x488870['commands']['get']('link');_0x32ae60['enableDefaultAttributesIntegration']('link'),_0x32ae60['enableDefaultAttributesIntegration']('unlink'),_0x32ae60['registerInlineAttribute']('linkHref');for(const _0x31f460 of _0x1593eb['manualDecorators'])_0x32ae60['registerInlineAttribute'](_0x31f460['id']),_0x32ae60['descriptionFactory']['registerAttributeLabel'](_0x31f460['id'],'link\x20('+_0x31f460['label']['toLowerCase']()+')');_0x32ae60['descriptionFactory']['registerDescriptionCallback'](_0x59bf75=>{if('attribute'!=_0x59bf75['type'])return;const {data:_0x126ea0}=_0x59bf75;if(!_0x126ea0||'linkHref'!=_0x126ea0['key'])return;const _0x482e26=_0x126ea0['newValue'],_0x2062d8=_0x488870['locale'];return{'type':'format','content':null==_0x482e26?c(_0x2062d8,'*Remove\x20link*'):c(_0x2062d8,'*Set\x20link:*\x20%0','\x22'+_0x482e26+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312787=this['editor'],_0x22d53d=_0x312787['locale'];_0x312787['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8d4e14=>{if('formatInline'!=_0x8d4e14['type'])return;const {data:_0x35a031}=_0x8d4e14;if(_0x35a031){if('link'==_0x35a031['commandName']){const _0x43c0d3=_0x35a031['commandParams'][0x0];return{'type':'format','content':c(_0x22d53d,'*Set\x20link:*\x20%0','\x22'+_0x43c0d3+'\x22')};}return'unlink'==_0x35a031['commandName']?{'type':'format','content':c(_0x22d53d,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x49d3a0{['afterInit'](){const _0x4ef50c=this['editor'],_0x59fb34=_0x4ef50c['locale'];if(!_0x4ef50c['plugins']['has']('LegacyListEditing'))return;const _0x118919=_0x4ef50c['plugins']['get']('TrackChangesEditing'),_0x19ddcd=_0x4ef50c['plugins']['has']('LegacyTodoListEditing');function _0xd62343(_0x12ed86){return()=>{const _0xa729b8=_0x4ef50c['model']['document']['selection'],_0x4786ac=_0x4ef50c['commands']['get'](_0x12ed86);if(_0x4786ac['value'])return void _0x4ef50c['execute']('paragraph',{});const _0x17dcad=_0x12ed86['slice'](0x0,-0x4),_0x457cac=function(_0x2fe290,_0x37ffe7,_0x5a7aa1){let _0x1a3af5=Array['from'](_0x2fe290)['filter'](_0x5d5014=>function(_0x3792f0,_0x13aa6c){return _0x13aa6c['checkChild'](_0x3792f0['parent'],'listItem')&&!_0x13aa6c['isObject'](_0x3792f0);}(_0x5d5014,_0x5a7aa1));_0x1a3af5=_0x1a3af5['filter'](_0x2fc517=>!_0x2fc517['is']('element','listItem')||_0x2fc517['getAttribute']('listType')!=_0x37ffe7);const _0x4ab604=new Set();for(const _0x56bcde of _0x1a3af5)_0x56bcde['is']('element','listItem')?_0x4ab604['add'](Le(_0x56bcde)):_0x4ab604['add'](_0x56bcde);return Array['from'](_0x4ab604);}(_0xa729b8['getSelectedBlocks'](),_0x17dcad,_0x4ef50c['model']['schema']);_0x4ef50c['model']['change'](()=>{for(const _0x539786 of _0x457cac)_0x118919['markBlockFormat'](_0x539786,{'commandName':_0x12ed86,'commandParams':[{'forceValue':!_0x4786ac['value']}],'formatGroupId':'blockName'},Ee(_0x539786));});};}function _0xa0ac95(_0x3ebcf5){return()=>{const _0x3b8df1=function(_0x589650){let _0x351a8e=Array['from'](_0x589650);const _0x406879=_0x351a8e['findIndex'](_0xcc1a76=>'listItem'!=_0xcc1a76['name']);return _0x406879>-0x1&&(_0x351a8e=_0x351a8e['slice'](0x0,_0x406879)),_0x351a8e;}(_0x4ef50c['model']['document']['selection']['getSelectedBlocks']()),_0x4976ba=_0x4ef50c['model']['createRange'](_0x4ef50c['model']['createPositionAt'](_0x3b8df1[0x0],'before'),_0x4ef50c['model']['createPositionAt'](_0x3b8df1[_0x3b8df1['length']-0x1],'end'));_0x4ef50c['model']['change'](()=>{_0x118919['markBlockFormat'](_0x4976ba,{'commandName':_0x3ebcf5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x40427f){const _0x5d8467=new Set();for(const _0x464014 of _0x40427f){let _0x20967d=_0x464014['nextSibling'];for(;_0x20967d&&_0x20967d['getAttribute']('listIndent')>_0x464014['getAttribute']('listIndent');)_0x5d8467['add'](_0x20967d),_0x20967d=_0x20967d['nextSibling'];}return Array['from'](_0x5d8467);}(_0x3b8df1));});};}_0x118919['enableCommand']('numberedList',_0xd62343('numberedList')),_0x118919['enableCommand']('bulletedList',_0xd62343('bulletedList')),_0x19ddcd&&_0x118919['enableCommand']('todoList',_0xd62343('todoList')),_0x118919['enableCommand']('indentList',_0xa0ac95('indentList')),_0x118919['enableCommand']('outdentList',_0xa0ac95('outdentList')),_0x19ddcd&&_0x118919['enableCommand']('checkTodoList',()=>{const _0x1bdff4=_0x4ef50c['commands']['get']('checkTodoList'),_0x2f3634=Array['from'](_0x1bdff4['_selectedElements']);_0x2f3634['filter'](_0x4a8a64=>_0x4a8a64['getAttribute']('todoListChecked')!=_0x1bdff4['value']),_0x4ef50c['model']['change'](()=>{for(const _0x533e02 of _0x2f3634)_0x118919['markBlockFormat'](_0x533e02,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1bdff4['value']}]});});}),_0x118919['descriptionFactory']['registerElementLabel']('listItem',_0x14bf6d=>c(_0x59fb34,'ELEMENT_LIST_ITEM',_0x14bf6d)),_0x118919['descriptionFactory']['registerDescriptionCallback'](_0x5efdea=>{if('formatBlock'!=_0x5efdea['type']&&'formatInline'!=_0x5efdea['type'])return;const {data:_0x279f5f}=_0x5efdea;if(_0x279f5f){if('numberedList'==_0x279f5f['commandName']||'bulletedList'==_0x279f5f['commandName']||'todoList'==_0x279f5f['commandName'])switch(_0x279f5f['commandName']['replace']('List','')){case'bulleted':return _0x3afd6e(c(_0x59fb34,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3afd6e(c(_0x59fb34,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3afd6e(c(_0x59fb34,'ELEMENT_TODO_LIST'));}if('indentList'==_0x279f5f['commandName'])return{'type':'format','content':c(_0x59fb34,'*Indent:*\x20%0',c(_0x59fb34,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x279f5f['commandName'])return{'type':'format','content':c(_0x59fb34,'*Outdent:*\x20%0',c(_0x59fb34,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x279f5f['commandName'])return _0x279f5f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59fb34,'*Check\x20item*')}:{'type':'format','content':c(_0x59fb34,'*Uncheck\x20item*')};}function _0x3afd6e(_0xad4b7f){return{'type':'format','content':c(_0x59fb34,'*Change\x20to:*\x20%0',_0xad4b7f)};}});}}function Le(_0x4c6510){const _0x2adcdf=_0x4c6510['getAttribute']('listIndent');if(0x0==_0x2adcdf)return _0x4c6510;let _0x54a403=_0x4c6510;for(;_0x4c6510['previousSibling']&&_0x4c6510['previousSibling']['is']('element','listItem');){const _0x276790=_0x4c6510['previousSibling']['getAttribute']('listIndent');if(_0x276790==_0x2adcdf)_0x54a403=_0x4c6510['previousSibling'];else{if(_0x276790<_0x2adcdf)break;}_0x4c6510=_0x4c6510['previousSibling'];}return _0x54a403;}function Ee(_0x2e6d7b){const _0x287499=[];if(_0x2e6d7b['is']('element','listItem')&&_0x2e6d7b['getAttribute']('listIndent')>0x0){let _0x109e61=_0x2e6d7b['nextSibling'];for(;_0x109e61&&'listItem'==_0x109e61['name']&&_0x109e61['getAttribute']('listIndent')==_0x2e6d7b['getAttribute']('listIndent');)_0x287499['push'](_0x109e61),_0x109e61=_0x109e61['nextSibling'];}return _0x287499;}class Q extends _0x49d3a0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4f8287=this['editor']['config']['get']('list.properties'),_0x1e68b2=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f8287['styles']&&_0x1e68b2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4f8287['reversed']&&_0x1e68b2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4f8287['startIndex']&&_0x1e68b2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1e68b2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x564a61,_0x46338c={}){const _0x5b0212=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ee2fb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5b0212['markMultiRangeBlockFormat'](_0x1ee2fb,{'commandName':'listStyle','commandParams':[{'type':_0x46338c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2d29df,_0x4fa592={}){const _0x29184b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c9a94=this['_getSuggestionBlocks'](_0x2d8075=>_0x2d8075['is']('element','listItem')&&'numbered'===_0x2d8075['getAttribute']('listType'));if(_0x3c9a94['length']<0x1)return;const _0x12a3ad=_0x3c9a94['map'](_0x34a898=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34a898,'before'),this['editor']['model']['createPositionAt'](_0x34a898,0x0)));this['editor']['model']['change'](()=>{_0x29184b['markMultiRangeBlockFormat'](_0x12a3ad,{'commandName':'listReversed','commandParams':[{'reversed':_0x4fa592['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2de06b,_0x5e9e14={}){const _0x2f43e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x465220=this['_getSuggestionBlocks'](_0x4a9d9a=>_0x4a9d9a['is']('element','listItem')&&'numbered'===_0x4a9d9a['getAttribute']('listType'));if(_0x465220['length']<0x1)return;const _0x3003f8=_0x465220['map'](_0xa3fbb3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa3fbb3,'before'),this['editor']['model']['createPositionAt'](_0xa3fbb3,0x0)));this['editor']['model']['change'](()=>{_0x2f43e0['markMultiRangeBlockFormat'](_0x3003f8,{'commandName':'listStart','commandParams':[{'startIndex':_0x5e9e14['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x53fc03){if('formatBlock'!=_0x53fc03['type']&&'formatInline'!=_0x53fc03['type'])return;const _0x538762=this['editor']['locale'],{data:_0xd1b00c}=_0x53fc03;if(!_0xd1b00c)return;let _0x492250,_0x18f0b8;switch(_0xd1b00c['commandName']){case'listStyle':_0x492250='*Change\x20to:*\x20%0',_0x18f0b8={'type':'format','content':c(_0x538762,_0x492250,c(_0x538762,this['_getTranslationKeyForListStyle'](_0xd1b00c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x492250=_0xd1b00c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18f0b8={'type':'format','content':c(_0x538762,_0x492250)};break;case'listStart':_0x492250='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18f0b8={'type':'format','content':c(_0x538762,_0x492250,_0xd1b00c['commandParams'][0x0]['startIndex'])};}return _0x18f0b8;}['_getSuggestionBlocksForListStyle'](){const _0x1a3df4=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ef9b0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3ef9b0[0x0]?.['is']('element','listItem')&&_0x3ef9b0['unshift'](..._0x1a3df4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3ef9b0[_0x3ef9b0['length']-0x1]?.['is']('element','listItem')&&_0x3ef9b0['push'](..._0x1a3df4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3ef9b0=[...new Set(_0x3ef9b0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3ef9b0=_0x3ef9b0['filter'](_0x3cac26=>_0x3cac26['is']('element','listItem'))),_0x3ef9b0;}['_getSuggestionBlocks'](_0x3c94e7){const _0x310d1d=this['editor']['plugins']['get']('LegacyListUtils');let _0x2067df=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3c94e7)['map'](_0x2c0e20=>{const _0xd2a6f=this['editor']['model']['createPositionAt'](_0x2c0e20,0x0);return[..._0x310d1d['getSiblingNodes'](_0xd2a6f,'backward'),..._0x310d1d['getSiblingNodes'](_0xd2a6f,'forward')];})['flat']();return _0x2067df=[...new Set(_0x2067df)],_0x2067df;}['_getTranslationKeyForListStyle'](_0x35ac8e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x35ac8e)||'default')['toUpperCase']()+'_LIST_'+_0x35ac8e['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x49d3a0{['afterInit'](){const _0x3244dc=this['editor'];if(!_0x3244dc['plugins']['has']('MediaEmbedEditing'))return;const _0x1f8eb0=_0x3244dc['plugins']['get']('TrackChangesEditing'),_0x42d2d8=_0x3244dc['locale'];_0x1f8eb0['enableCommand']('mediaEmbed'),_0x1f8eb0['descriptionFactory']['registerElementLabel']('media',_0x5935e9=>c(_0x42d2d8,'ELEMENT_MEDIA',_0x5935e9)),_0x3244dc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2137a6,{writer:_0xa72f7b,options:_0x4b6472})=>{if(_0x4b6472['showSuggestionHighlights'])return _0xa72f7b['createEmptyElement']('div');},'converterPriority':'high'}),_0x3244dc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4d122c,_0x75d09,_0x2346b0)=>{_0x2346b0['options']['showSuggestionHighlights']&&_0x4d122c['stop']();},{'priority':'high'});}}class pt extends _0x49d3a0{['afterInit'](){const _0x481fc4=this['editor'];_0x481fc4['plugins']['has']('MentionEditing')&&_0x481fc4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x49d3a0{['afterInit'](){const _0x59d7ba=this['editor'];if(!_0x59d7ba['plugins']['has']('MergeFieldsEditing'))return;const _0x168c81=_0x59d7ba['plugins']['get']('TrackChangesEditing'),_0x391eb4=_0x59d7ba['locale'];_0x168c81['enableCommand']('insertMergeField'),_0x168c81['enableCommand']('insertMergeFieldBlock'),_0x168c81['enableCommand']('insertMergeFieldImage'),_0x168c81['descriptionFactory']['registerElementLabel']('mergeField',_0x7b7d46=>c(_0x391eb4,'ELEMENT_MERGE_FIELD',_0x7b7d46)),_0x168c81['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4928fc=>c(_0x391eb4,'ELEMENT_MERGE_FIELD',_0x4928fc)),_0x168c81['descriptionFactory']['registerDescriptionCallback'](_0x579048=>{if('insertion'!=_0x579048['type']&&'deletion'!=_0x579048['type'])return;const _0x198322=_0x579048['getContainedElement']();if(null==_0x198322)return;const _0x5a0fa8=_0x59d7ba['plugins']['get']('MergeFieldsEditing');let _0x1adb1a;switch(_0x5a0fa8['getMergeFieldType'](_0x198322)){case null:return;case'image':{const _0xe1810e=_0x5a0fa8['unwrapAffixes'](_0x198322['getAttribute']('src'));_0x1adb1a=_0x5a0fa8['getLabel'](_0xe1810e)||_0xe1810e;break;}default:{const _0x9fcb13=_0x198322['getAttribute']('id');_0x1adb1a=_0x5a0fa8['getLabel'](_0x9fcb13)||_0x9fcb13;break;}}return'insertion'==_0x579048['type']?{'type':'insertion','content':c(_0x391eb4,'*Insert:*\x20%0','\x22'+_0x1adb1a+'\x22\x20'+c(_0x391eb4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x391eb4,'*Remove:*\x20%0','\x22'+_0x1adb1a+'\x22\x20'+c(_0x391eb4,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x49d3a0{['afterInit'](){const _0x119417=this['editor'],_0x140f74=_0x119417['plugins']['get']('TrackChangesEditing');_0x119417['plugins']['has']('MultiLevelList')&&(_0x140f74['enableDefaultAttributesIntegration']('multiLevelList'),_0x140f74['registerBlockAttribute']('listMarkerStyle'),_0x140f74['descriptionFactory']['registerDescriptionCallback'](_0x342cfd=>this['handleDescriptions'](_0x342cfd)));}['handleDescriptions'](_0x3ec87a){const _0x502654=this['editor']['locale'],{data:_0x12e24f}=_0x3ec87a,_0x4f17fb={'type':'format','content':''};if(_0x12e24f&&'listMarkerStyle'==_0x12e24f['key']){if(!_0x12e24f['oldValue'])return{'type':'format','content':c(_0x502654,'*Set\x20format:*\x20%0',c(_0x502654,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x12e24f['newValue']+')'};if(!_0x12e24f['newValue']){let _0x36f7ba=_0x3ec87a['head'];for(;_0x36f7ba;){if(_0x36f7ba['data']&&'listType'==_0x36f7ba['data']['key']&&_0x36f7ba['data']['newValue'])return _0x4f17fb;_0x36f7ba=_0x36f7ba['next'];}return{'type':'format','content':c(_0x502654,'*Remove\x20format:*\x20%0',c(_0x502654,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x12e24f['oldValue']+')'};}}}}class bt extends _0x49d3a0{['afterInit'](){const _0x405f36=this['editor'];if(!_0x405f36['plugins']['has']('PageBreakEditing'))return;_0x405f36['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x53a021=_0x405f36['plugins']['get']('TrackChangesEditing'),_0x2a44a1=_0x405f36['locale'];_0x53a021['descriptionFactory']['registerElementLabel']('pageBreak',_0x76c9f3=>c(_0x2a44a1,'ELEMENT_PAGE_BREAK',_0x76c9f3));}}class yt extends _0x49d3a0{['afterInit'](){const _0xaf3819=this['editor'];if(!_0xaf3819['plugins']['has']('Paragraph'))return;const _0x23a117=_0xaf3819['locale'],_0x55be95=_0xaf3819['plugins']['get']('TrackChangesEditing');_0x55be95['descriptionFactory']['registerElementLabel']('paragraph',_0x366def=>c(_0x23a117,'ELEMENT_PARAGRAPH',_0x366def)),_0x55be95['enableDefaultAttributesIntegration']('paragraph'),_0x55be95['enableCommand']('insertParagraph'),_0xaf3819['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xaf3819),{'priority':'highest'}),_0xaf3819['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3621d9,_0x155b61,_0x17aa56)=>{_0x17aa56['options']['showSuggestionHighlights']&&nr(_0xaf3819,{'showActiveMarker':!0x1})(_0x3621d9,_0x155b61,_0x17aa56);},{'priority':'highest'});const _0x3300f3=_0x55be95['descriptionFactory'];_0x3300f3['registerDescriptionCallback'](_0x435688=>{if('insertion'!==_0x435688['type'])return;const {start:_0x269b50,end:_0x281a63}=_0x435688['getFirstRange']();if(!_0x269b50['isTouching'](_0x281a63)||!_0x269b50['nodeAfter'])return;const _0x5bf5f6=_0xaf3819['model']['schema'],_0x33f961=_0x269b50['nodeAfter'];return _0x5bf5f6['isBlock'](_0x33f961)&&!_0x5bf5f6['isLimit'](_0x33f961)&&_0x5bf5f6['checkChild'](_0x33f961,'$text')?{'type':'insertion','content':c(_0x23a117,'*Insert:*\x20%0',_0x3300f3['getItemLabel'](_0x33f961,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59149d=this['editor'],_0x1d399c=_0x59149d['locale'];_0x59149d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f8abe=>{if('formatBlock'!=_0x2f8abe['type'])return;const {data:_0x99a3cf}=_0x2f8abe;return _0x99a3cf&&'paragraph'==_0x99a3cf['commandName']?{'type':'format','content':c(_0x1d399c,'*Change\x20to:*\x20%0',c(_0x1d399c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x353468,{showActiveMarker:_0x2ea02c=!0x0}={}){return(_0x50207f,_0x5ee6c7,_0x5adc32)=>{const _0x538455=_0x353468['plugins']['get']('TrackChangesEditing'),_0x40206d=_0x5ee6c7['markerRange']['start'],_0x4f8766=_0x5ee6c7['markerRange']['end'],_0x10d15e=_0x353468['model']['schema'];if(!_0x40206d['isTouching'](_0x4f8766)||!_0x40206d['nodeAfter'])return;const _0x543bc0=_0x40206d['nodeAfter'];if(_0x10d15e['isBlock'](_0x543bc0)&&!_0x10d15e['isLimit'](_0x543bc0)&&_0x10d15e['checkChild'](_0x543bc0,'$text')){if(!_0x5adc32['consumable']['consume'](_0x5ee6c7['markerRange'],_0x50207f['name']))return;const {authorId:_0x4dee2c}=_0x538455['_splitMarkerName'](_0x5ee6c7['markerName']),_0x4430b5=_0x5adc32['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4dee2c}),_0x283afa=_0x5adc32['mapper']['toViewPosition'](_0x4f8766);_0x2ea02c&&_0x538455['activeMarkers']['includes'](_0x5ee6c7['markerName'])&&_0x5adc32['writer']['addClass']('ck-suggestion-marker--active',_0x4430b5),_0x5adc32['writer']['insert'](_0x283afa,_0x4430b5),_0x5adc32['mapper']['bindElementToMarker'](_0x4430b5,_0x5ee6c7['markerName']);}};}class jt extends _0x49d3a0{['afterInit'](){const _0x4bb518=this['editor'];_0x4bb518['commands']['get']('replaceSource')&&_0x4bb518['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x49d3a0{['afterInit'](){const _0x5406cf=this['editor'];if(!_0x5406cf['plugins']['has']('RemoveFormatEditing'))return;_0x5406cf['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49112b=this['editor'];_0x49112b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x134b26=>{if('formatBlock'!=_0x134b26['type']&&'formatInline'!=_0x134b26['type'])return;const {data:_0x282a02}=_0x134b26;return _0x282a02&&'removeFormat'==_0x282a02['commandName']?{'type':'format','content':c(_0x49112b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x49d3a0{['afterInit'](){const _0x55fd55=this['editor'];if(!_0x55fd55['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1d734b=_0x55fd55['plugins']['get']('TrackChangesEditing');_0x1d734b['enableCommand']('goToPreviousRestrictedEditingException'),_0x1d734b['enableCommand']('goToNextRestrictedEditingException');const _0x5289e6=_0x55fd55['plugins']['get']('RestrictedEditingModeEditing');_0x5289e6['enableCommand']('trackChanges'),_0x5289e6['enableCommand']('acceptSuggestion'),_0x5289e6['enableCommand']('discardSuggestion'),_0x5289e6['enableCommand']('acceptAllSuggestions'),_0x5289e6['enableCommand']('discardAllSuggestions'),_0x5289e6['enableCommand']('acceptSelectedSuggestions'),_0x5289e6['enableCommand']('discardSelectedSuggestions');}}class It extends _0x49d3a0{['afterInit'](){const _0x11aed4=this['editor'];if(!_0x11aed4['plugins']['has']('ShiftEnter'))return;const _0x3d15ba=_0x11aed4['plugins']['get']('TrackChangesEditing');_0x3d15ba['enableCommand']('shiftEnter'),_0x11aed4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x11aed4),{'priority':'high'}),_0x11aed4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x11aed4),{'priority':'high'}),_0x11aed4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x169afd,_0x167f03,_0x46d338)=>{_0x46d338['options']['showSuggestionHighlights']&&je(_0x11aed4,{'showActiveMarker':!0x1})(_0x169afd,_0x167f03,_0x46d338);}),_0x3d15ba['descriptionFactory']['registerElementLabel']('softBreak',_0x12338e=>c(_0x11aed4['locale'],'ELEMENT_LINE_BREAK',_0x12338e));}}function je(_0x170856,{showActiveMarker:_0x4bfc60=!0x0}={}){return(_0x4deda8,_0x51c023,_0x5b16cf)=>{const _0x45bc4c=_0x170856['plugins']['get']('TrackChangesEditing');if(!_0x5b16cf['consumable']['test'](_0x51c023['markerRange'],_0x4deda8['name']))return;const _0x3376ce=_0x170856['model'];for(const _0x395d5f of _0x51c023['markerRange']['getItems']()){if(!_0x395d5f['is']('element','softBreak'))continue;const _0x4c37cb='deletion'==_0x51c023['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xea7eae}=_0x45bc4c['_splitMarkerName'](_0x51c023['markerName']),_0xdc3539=_0x5b16cf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c37cb,'data-author-id':_0xea7eae}),_0x3677d9=_0x5b16cf['mapper']['toViewPosition'](_0x3376ce['createPositionBefore'](_0x395d5f));_0x4bfc60&&_0x45bc4c['activeMarkers']['includes'](_0x51c023['markerName'])&&_0x5b16cf['writer']['addClass']('ck-suggestion-marker--active',_0xdc3539),_0x5b16cf['writer']['insert'](_0x3677d9,_0xdc3539),_0x5b16cf['mapper']['bindElementToMarker'](_0xdc3539,_0x51c023['markerName']);}};}class _t extends _0x49d3a0{['afterInit'](){const _0x2a185f=this['editor'],_0x14b88f=_0x2a185f['model'],_0x4ac256=_0x2a185f['locale'];if(!_0x2a185f['plugins']['has']('StandardEditingModeEditing'))return;const _0x54dfa0=_0x2a185f['plugins']['get']('TrackChangesEditing'),_0x495615='restrictedEditingException',_0x3d15cc=_0x2a185f['commands']['get'](_0x495615);_0x54dfa0['enableCommand'](_0x495615,(_0x5e2a9f,_0x57d7e5={})=>{const _0x466ec9=_0x14b88f['document']['selection'];if(_0x466ec9['isCollapsed'])return void _0x5e2a9f(_0x57d7e5);const _0x44260a=void 0x0!==_0x57d7e5['forceValue']?_0x57d7e5['forceValue']:!_0x3d15cc['value'];_0x14b88f['change'](()=>{const _0x2fe689=Array['from'](_0x466ec9['getRanges']());for(const _0xf8b787 of _0x2fe689){const _0x415a82=_0x44260a?[_0xf8b787]:io(_0x495615,_0xf8b787,_0x14b88f);for(const _0x2774d2 of _0x415a82)_0x54dfa0['markInlineFormat'](_0x2774d2,{'commandName':_0x495615,'commandParams':[{'forceValue':_0x44260a}]});}});}),_0x54dfa0['descriptionFactory']['registerDescriptionCallback'](_0x4aaf20=>{if('formatBlock'!=_0x4aaf20['type']&&'formatInline'!=_0x4aaf20['type'])return;const {data:_0x52aedb}=_0x4aaf20;return _0x52aedb&&_0x52aedb['commandName']==_0x495615?_0x52aedb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4ac256,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x4ac256,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x49d3a0{['afterInit'](){const _0x4fad31=this['editor'];if(!_0x4fad31['plugins']['has']('Style')||!_0x4fad31['plugins']['has']('DataSchema'))return;const _0x3f1c27=_0x4fad31['plugins']['get']('TrackChangesEditing'),_0x3cfdcc=_0x4fad31['locale'],_0x4e3e29=_0x4fad31['config']['get']('style')||{},_0x3dda47=_0x4fad31['plugins']['get']('GeneralHtmlSupport'),_0x517b7f=_0x4fad31['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4fad31['plugins']['get']('DataSchema'),_0x4e3e29['definitions']);_0x3f1c27['enableDefaultAttributesIntegration']('style');const _0x49c3d1=new Set();for(const _0x4befd2 of _0x517b7f['block']){const _0x33fef7=_0x3dda47['getGhsAttributeNameForElement'](_0x4befd2['element']);_0x49c3d1['add'](_0x33fef7);}const _0x55fc70=new Set();for(const _0x3d3577 of _0x517b7f['inline']){const _0x39e217=_0x3dda47['getGhsAttributeNameForElement'](_0x3d3577['element']);_0x55fc70['add'](_0x39e217);for(const _0x27fb08 of _0x3d3577['ghsAttributes'])_0x55fc70['add'](_0x27fb08);}for(const _0x412f7a of _0x49c3d1)_0x3f1c27['registerBlockAttribute'](_0x412f7a),_0x3f1c27['descriptionFactory']['registerAttributeLabel'](_0x412f7a,c(_0x3cfdcc,'FORMAT_STYLE'));for(const _0x268440 of _0x55fc70)_0x3f1c27['registerInlineAttribute'](_0x268440),_0x3f1c27['descriptionFactory']['registerAttributeLabel'](_0x268440,c(_0x3cfdcc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37c5c4=this['editor'],_0x18ec56=_0x37c5c4['locale'];_0x37c5c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47e70c=>{if('formatBlock'!=_0x47e70c['type']&&'formatInline'!=_0x47e70c['type'])return;const {data:_0x57a970}=_0x47e70c;return _0x57a970&&'style'===_0x57a970['commandName']?_0x57a970['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x18ec56,'*Set\x20format:*\x20%0',_0x57a970['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x18ec56,'*Remove\x20format:*\x20%0',_0x57a970['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x49d3a0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x418863){super(_0x418863),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x26372e=this['editor'],_0x13f4b2=_0x26372e['model']['document']['selection'];if(!_0x26372e['plugins']['has']('TableEditing'))return;const _0x372370=_0x26372e['locale'],_0x197b83=_0x26372e['plugins']['get']('TrackChangesEditing'),_0x4cd192=_0x26372e['plugins']['get']('TableUtils');_0x197b83['descriptionFactory']['registerElementLabel']('table',_0x155649=>c(_0x372370,'ELEMENT_TABLE',_0x155649)),this['_setupColumnsRowsFixing'](),_0x197b83['enableCommand']('insertTable'),_0x197b83['enableCommand']('selectTableRow'),_0x197b83['enableCommand']('selectTableColumn');for(const _0x597b58 of['insertTableRowAbove','insertTableRowBelow']){const _0x23e20f=_0x26372e['commands']['get'](_0x597b58);_0x197b83['enableCommand'](_0x597b58,_0x48cf1a=>{_0x26372e['model']['change'](_0x2d26cf=>{_0x48cf1a();const _0x135a0b='above'===_0x23e20f['order'],_0x11e8e4=_0x4cd192['getSelectionAffectedTableCells'](_0x13f4b2),_0xbe64f2=_0x4cd192['getRowIndexes'](_0x11e8e4),_0x4f2e64=_0x135a0b?_0xbe64f2['first']-0x1:_0xbe64f2['last']+0x1,_0x23e621=_0x11e8e4[0x0]['findAncestor']('table'),_0x5bee37=_0x4cd192['createTableWalker'](_0x23e621,{'startRow':_0x4f2e64,'endRow':_0x4f2e64}),_0x48987b=Array['from'](_0x5bee37)['map'](_0x1aec44=>_0x2d26cf['createRangeOn'](_0x1aec44['cell']));_0x197b83['markMultiRangeInsertion'](_0x48987b,'tableRow');});});}for(const _0x4d81bf of['insertTableColumnLeft','insertTableColumnRight']){const _0x439483=_0x26372e['commands']['get'](_0x4d81bf);_0x197b83['enableCommand'](_0x4d81bf,_0x3dbee5=>{_0x26372e['model']['change'](_0x3c27eb=>{_0x3dbee5();const _0x47d9be='left'===_0x439483['order'],_0x31234d=_0x4cd192['getSelectionAffectedTableCells'](_0x13f4b2),_0x384c86=_0x4cd192['getColumnIndexes'](_0x31234d),_0x4ba584=_0x47d9be?_0x384c86['first']-0x1:_0x384c86['last']+0x1,_0x5c93be=_0x31234d[0x0]['findAncestor']('table'),_0x26f6dc=_0x4cd192['createTableWalker'](_0x5c93be,{'startRow':0x0,'column':_0x4ba584,'includeAllSlots':!0x1}),_0x5eec04=Array['from'](_0x26f6dc)['map'](_0x4f3bc6=>_0x3c27eb['createRangeOn'](_0x4f3bc6['cell']));_0x197b83['markMultiRangeInsertion'](_0x5eec04,'tableColumn');});});}for(const _0x1dca32 of['removeTableRow','removeTableColumn']){const _0x4ced54=_0x1dca32['substr'](0xb),_0x10b332=_0x4ced54['toLowerCase'](),_0x48e13d=_0x10b332['substr'](0x0,0x3)+'span',_0x519e91='table'+_0x4ced54,_0x9b673d='min'+_0x4ced54,_0x1a118a='max'+_0x4ced54;_0x197b83['enableCommand'](_0x1dca32,()=>{_0x26372e['model']['change'](_0x3740fa=>{const _0x1c90c0=_0x4cd192['getSelectionAffectedTableCells'](_0x13f4b2),_0x41d5ad=_0x1c90c0[0x0]['findAncestor']('table');let _0x2e7704;if('removeTableRow'==_0x1dca32){const _0x36668c=_0x4cd192['getRowIndexes'](_0x1c90c0);_0x2e7704={'startRow':_0x36668c['first'],'endRow':_0x36668c['last'],'includeAllSlots':!0x0};}else{const _0x354c2d=_0x4cd192['getColumnIndexes'](_0x1c90c0);_0x2e7704={'startColumn':_0x354c2d['first'],'endColumn':_0x354c2d['last'],'includeAllSlots':!0x0};}const _0x4537ea=_0x4cd192['createTableWalker'](_0x41d5ad,_0x2e7704),_0x1ce7b1=Array['from'](_0x4537ea)['map'](({cell:_0x526876})=>_0x526876),_0x10c977=Ne(_0x1ce7b1['filter'](_0x432e4a=>_0x432e4a['hasAttribute'](_0x48e13d))),_0xaf3290=Ne(_0x1ce7b1['filter'](_0x36c67c=>!_0x36c67c['hasAttribute'](_0x48e13d)))['map'](_0x195cb2=>_0x3740fa['createRangeOn'](_0x195cb2)),_0x38da10=_0x197b83['markMultiRangeDeletion'](_0xaf3290,_0x519e91);if(_0x38da10&&('tableRow'==_0x38da10['subType']||'tableColumn'==_0x38da10['subType'])){const _0x4c9108=this['_getSuggestionCoords'](_0x38da10);for(const _0x1176ab of _0x10c977){const _0x5801e8=_0x3740fa['createRangeOn'](_0x1176ab),_0x11885a=_0x4cd192['getCellLocation'](_0x1176ab),_0x5f3894=_0x1176ab['getAttribute'](_0x48e13d)-0x1,_0x4b33e4=_0x4c9108[_0x9b673d],_0x297778=_0x4c9108[_0x1a118a];_0x4b33e4<=_0x11885a[_0x10b332]&&_0x11885a[_0x10b332]+_0x5f3894<=_0x297778&&_0x38da10['addRange'](_0x5801e8);}}});});}function _0xe8565c(_0x28fe24){const _0x254091=Array['from'](_0x13f4b2['getRanges']())['map'](_0x5607ab=>_0x5702ff['fromRange'](_0x5607ab));_0x26372e['model']['change'](_0x2b0e31=>{const _0x508846=_0x2b0e31['batch'];_0x28fe24=_0x28fe24['filter'](_0x2f76ef=>'$graveyard'!=_0x2f76ef['root']['rootName']),_0x2b0e31['setSelection'](_0x28fe24),_0x26372e['commands']['get']('removeTableRow')['refresh'](),_0x26372e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x26372e['model']['enqueueChange'](()=>{_0x26372e['model']['enqueueChange'](_0x508846,_0x3531f8=>{const _0x1a9a43=_0x254091['filter'](_0x4e5030=>'$graveyard'!=_0x4e5030['root']['rootName']);_0x1a9a43['length']>0x0&&_0x3531f8['setSelection'](_0x1a9a43);for(const _0x25de40 of _0x254091)_0x25de40['detach']();});});});}function _0x14c7cc(_0x1c79d2){_0x26372e['model']['change'](_0x401680=>{const _0x4d871a=Array['from'](_0x13f4b2['getRanges']())['map'](_0x2cbb91=>_0x5702ff['fromRange'](_0x2cbb91)),_0x4ccf80=[];for(const _0x1920c5 of _0x1c79d2)for(const _0x57aa8b of _0x1920c5['getItems']({'shallow':!0x0}))_0x4ccf80['push'](_0x57aa8b);for(const _0x2b0cf0 of _0x4ccf80)'$graveyard'!=_0x2b0cf0['root']['rootName']&&(_0x401680['setSelection'](_0x401680['createPositionAt'](_0x2b0cf0,0x0)),_0x26372e['commands']['get']('removeTableColumn')['refresh'](),_0x26372e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5c47b4=_0x4d871a['filter'](_0x8f5de7=>'$graveyard'!=_0x8f5de7['root']['rootName']);_0x5c47b4['length']>0x0&&_0x401680['setSelection'](_0x5c47b4);for(const _0x18de03 of _0x4d871a)_0x18de03['detach']();});}function _0x3e1f6f(_0x221b23,_0x19e6a6){return _0x19e6a6['every'](_0xdc6390=>_0x221b23['some'](_0x487228=>_0x487228['end']['isEqual'](_0xdc6390['start'])||_0xdc6390['end']['isEqual'](_0x487228['start'])));}function _0x4c46a8(_0x136408,_0x3cce35){return!_0x136408['some'](_0x396e0b=>_0x3cce35['some'](_0xb94350=>_0x396e0b['isIntersecting'](_0xb94350)))&&_0x136408['some'](_0x199640=>_0x3cce35['some'](_0x47ac67=>_0x199640['end']['isTouching'](_0x47ac67['start'])));}_0x26372e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5547a6,_0x5eb0e7,_0x283231)=>{if(!_0x283231['options']['showSuggestionHighlights'])return;const _0x5e0508=_0x5eb0e7['item'];if(!_0x5e0508)return;const _0x5400aa=_0x283231['mapper']['toViewElement'](_0x5e0508);function _0x53d0a9(_0xe5720d){return Array['isArray'](_0xe5720d)?_0xe5720d:[_0xe5720d];}_0x5400aa&&'tableCell'===_0x5e0508['name']&&_0x409f06(_0x5400aa,_0x283231['writer'],(_0xfaee20,_0x43a62a,_0x553bb5)=>_0x553bb5['addClass'](_0x53d0a9(_0x43a62a['classes']),_0xfaee20),(_0x541dce,_0x2136f8,_0x55326d)=>_0x55326d['removeClass'](_0x53d0a9(_0x2136f8['classes']),_0x541dce));},{'priority':'highest'}),_0x197b83['descriptionFactory']['registerDescriptionCallback'](_0x191079=>{if('insertion'!=_0x191079['type']&&'deletion'!=_0x191079['type'])return;const _0x1a62d5=_0x191079['getContainedElement']();if(null!=_0x1a62d5&&_0x1a62d5['is']('element','table')){if('insertion'==_0x191079['type']){const _0x1562c1=_0x191079['getItems']()['filter'](_0x5defae=>_0x5defae['is']('$textProxy'))['map'](_0x29896a=>_0x29896a['data']);if(_0x1562c1['length'])return{'type':'insertion','content':c(_0x372370,'*Insert:*\x20%0',c(_0x372370,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1562c1['join']('\x20')+'\x22'))};}if('deletion'==_0x191079['type']){const _0x2c69e2=_0x191079['getItems']()['filter'](_0xf6f49e=>_0xf6f49e['is']('$textProxy'))['map'](_0x4419b7=>_0x4419b7['data']);if(_0x2c69e2['length'])return{'type':'deletion','content':c(_0x372370,'*Remove:*\x20%0',c(_0x372370,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2c69e2['join']('\x20')+'\x22'))};}}}),_0x197b83['descriptionFactory']['registerDescriptionCallback'](_0x1ef374=>{if('tableRow'==_0x1ef374['subType']){const _0x134780=_0x1ef374['getItems']()['filter'](_0x2ff8db=>_0x2ff8db['is']('$textProxy'))['map'](_0x349f27=>_0x349f27['data']),_0x59f26b=this['_getSuggestionCoords'](_0x1ef374),_0x47224d=_0x59f26b['maxRow']-_0x59f26b['minRow']+0x1;if('insertion'==_0x1ef374['type'])return _0x134780['length']?{'type':'insertion','content':c(_0x372370,'*Insert:*\x20%0',c(_0x372370,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47224d,'\x22'+_0x134780['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x372370,'*Insert:*\x20%0',c(_0x372370,'ELEMENT_TABLE_ROW',_0x47224d))};if('deletion'==_0x1ef374['type'])return _0x134780['length']?{'type':'deletion','content':c(_0x372370,'*Remove:*\x20%0',c(_0x372370,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47224d,'\x22'+_0x134780['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x372370,'*Remove:*\x20%0',c(_0x372370,'ELEMENT_TABLE_ROW',_0x47224d))};}if('tableColumn'==_0x1ef374['subType']){const _0x4b9f4b=_0x1ef374['getItems']()['filter'](_0x100546=>_0x100546['is']('$textProxy'))['map'](_0x506621=>_0x506621['data']),_0x2fb35a=this['_getSuggestionCoords'](_0x1ef374),_0x4552b8=_0x2fb35a['maxColumn']-_0x2fb35a['minColumn']+0x1;if('insertion'==_0x1ef374['type'])return _0x4b9f4b['length']?{'type':'insertion','content':c(_0x372370,'*Insert:*\x20%0',c(_0x372370,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4552b8,'\x22'+_0x4b9f4b['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x372370,'*Insert:*\x20%0',c(_0x372370,'ELEMENT_TABLE_COLUMN',_0x4552b8))};if('deletion'==_0x1ef374['type'])return _0x4b9f4b['length']?{'type':'deletion','content':c(_0x372370,'*Remove:*\x20%0',c(_0x372370,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4552b8,'\x22'+_0x4b9f4b['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x372370,'*Remove:*\x20%0',c(_0x372370,'ELEMENT_TABLE_COLUMN',_0x4552b8))};}}),_0x197b83['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xe8565c),_0x197b83['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xe8565c),_0x197b83['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x14c7cc),_0x197b83['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x14c7cc),_0x197b83['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3e1f6f),_0x197b83['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3e1f6f),_0x197b83['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4c46a8),_0x197b83['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4c46a8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5ef310=this['editor'],_0xb8985c=_0x5ef310['model']['document']['selection'];return(_0x16fcb8,_0x2b4b58)=>{_0x5ef310['model']['change'](_0x50760b=>{const {commandName:_0x504e31,commandParams:_0x47235b}=_0x2b4b58;let _0x5e941e=_0x16fcb8[0x0]['end']['nodeBefore'];_0x47235b&&_0x47235b[0x0]&&!0x1===_0x47235b[0x0]['forceValue']&&(_0x5e941e=_0x16fcb8[0x0]['start']['nodeAfter']);const _0x4436e1=_0x50760b['createRangeIn'](_0x5e941e);if('$graveyard'==_0x4436e1['root']['rootName'])return;const _0x3f0fa1=Array['from'](_0xb8985c['getRanges']())['map'](_0x41503e=>_0x5702ff['fromRange'](_0x41503e));_0x50760b['setSelection'](_0x4436e1),_0x5ef310['commands']['get'](_0x504e31)['refresh'](),_0x47235b['push']({'forceDefaultExecution':!0x0}),_0x5ef310['execute'](_0x504e31,..._0x47235b);const _0xc95ce7=_0x3f0fa1['filter'](_0x437f83=>'$graveyard'!=_0x437f83['root']['rootName']);_0xc95ce7['length']>0x0&&_0x50760b['setSelection'](_0xc95ce7);for(const _0x39ae38 of _0x3f0fa1)_0x39ae38['detach']();});};}['_getCoordsForCells'](_0xaf6840){const _0x1e7031=this['editor']['plugins']['get']('TableUtils');let _0x490583=Number['MAX_SAFE_INTEGER'],_0x51c339=Number['MIN_SAFE_INTEGER'],_0x539d46=Number['MAX_SAFE_INTEGER'],_0x189669=Number['MIN_SAFE_INTEGER'];for(const _0x4eabc0 of _0xaf6840){if('$graveyard'==_0x4eabc0['root']['rootName'])continue;const {row:_0x2fe905,column:_0x225fd0}=_0x1e7031['getCellLocation'](_0x4eabc0),_0x44931d=_0x4eabc0['hasAttribute']('rowspan')?_0x4eabc0['getAttribute']('rowspan')-0x1:0x0,_0x46469c=_0x4eabc0['hasAttribute']('colspan')?_0x4eabc0['getAttribute']('colspan')-0x1:0x0;_0x490583=_0x2fe905<_0x490583?_0x2fe905:_0x490583,_0x51c339=_0x2fe905+_0x44931d>_0x51c339?_0x2fe905+_0x44931d:_0x51c339,_0x539d46=_0x225fd0<_0x539d46?_0x225fd0:_0x539d46,_0x189669=_0x225fd0+_0x46469c>_0x189669?_0x225fd0+_0x46469c:_0x189669;}return{'minRow':_0x490583,'maxRow':_0x51c339,'minColumn':_0x539d46,'maxColumn':_0x189669};}['_setupColumnsRowsFixing'](){const _0x79c5c7=this['editor'],_0x1ef3b2=_0x79c5c7['plugins']['get']('TrackChangesEditing'),_0x1bb38a=_0x79c5c7['plugins']['get']('TableUtils');_0x79c5c7['model']['document']['on']('change:data',()=>{const _0x312f2d=Array['from'](_0x79c5c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e9e05,data:_0xd7896}of _0x312f2d){const {group:_0x4b769b,id:_0x3b2415,subType:_0x46c956}=_0x1ef3b2['_splitMarkerName'](_0x3e9e05);if('suggestion'!=_0x4b769b)continue;if(null!=_0xd7896['oldRange'])continue;const _0x254ab7=_0x1ef3b2['getSuggestion'](_0x3b2415);this['_tablePostFixingSubtypes']['includes'](_0x46c956)&&this['_tableSuggestions']['add'](_0x254ab7);}},{'priority':'low'});const _0x2414da=(_0x157e7c,_0x52476d)=>{let _0x2969c3=!0x1;const _0x133ad5=_0x52476d['createRangeOn'](_0x157e7c),_0x4b830b=_0x157e7c['findAncestor']('table'),_0x20391e=_0x1bb38a['getCellLocation'](_0x157e7c);for(const _0x2b9c89 of this['_tableSuggestions']){const _0x5e0fad=_0x2b9c89['subType'],_0x2a187e=_0x5e0fad['startsWith']('tablePaste'),_0xde12d=_0x5e0fad['substr'](_0x2a187e?0xa:0x5),_0x570dc3=_0xde12d['toLowerCase'](),_0x5e75d1=_0x570dc3['substr'](0x0,0x3)+'span',_0x1ff892='min'+_0xde12d,_0x2d9bee='max'+_0xde12d;if(!_0x2b9c89['isInContent'])continue;if(_0x4b830b!=_0x2b9c89['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2b9c89['isIntersectingWithRange'](_0x133ad5))continue;const _0x1c85c1=_0x157e7c['hasAttribute'](_0x5e75d1)?_0x157e7c['getAttribute'](_0x5e75d1)-0x1:0x0,_0x4d11dc=this['_getSuggestionCoords'](_0x2b9c89),_0xd48f2c=_0x4d11dc[_0x1ff892],_0xc91693=_0x4d11dc[_0x2d9bee];_0xd48f2c<=_0x20391e[_0x570dc3]&&_0x20391e[_0x570dc3]+_0x1c85c1<=_0xc91693&&(_0x2b9c89['addRange'](_0x133ad5),_0x2969c3=!0x0);}return _0x2969c3;};_0x79c5c7['model']['document']['registerPostFixer'](_0x440aa7=>{let _0x3bea03=!0x1;for(const _0x167bfc of _0x79c5c7['model']['document']['differ']['getChanges']())if('insert'==_0x167bfc['type']){if('tableRow'==_0x167bfc['name']){for(const _0x35b4ae of _0x167bfc['position']['nodeAfter']['getChildren']())_0x3bea03=_0x3bea03||_0x2414da(_0x35b4ae,_0x440aa7);}else'tableCell'==_0x167bfc['name']&&(_0x3bea03=_0x3bea03||_0x2414da(_0x167bfc['position']['nodeAfter'],_0x440aa7));}return _0x3bea03;});}['_getSuggestionCoords'](_0x3abc36){return this['_getCoordsForCells'](_0x3abc36['getRanges']()['map'](_0x28d0c7=>_0x28d0c7['start']['nodeAfter']));}}function Ne(_0x47d2c9){return Array['from'](new Set(_0x47d2c9)['values']());}class Nt extends _0x49d3a0{static get['requires'](){return[Ct];}['afterInit'](){const _0x3320d2=this['editor'],_0x24b3ae=_0x3320d2['model']['document']['selection'],_0x32ead4=_0x3320d2['locale'];if(!_0x3320d2['plugins']['has']('TableEditing'))return;const _0x5c6d29=_0x3320d2['plugins']['get']('TrackChangesEditing'),_0x1dad19=_0x3320d2['plugins']['get']('TableUtils'),_0x4a03fb=_0x3320d2['plugins']['get'](Ct);_0x4a03fb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5c6d29['enableCommand']('mergeTableCells',()=>{const _0x36fb0e=_0x1dad19['getSelectionAffectedTableCells'](_0x3320d2['model']['document']['selection']);_0x3320d2['model']['change'](()=>{_0x5c6d29['markMultiRangeBlockFormat'](_0x36fb0e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3320d2['commands']['get']('mergeTableCells')['on']('execute',(_0x5b7b2b,_0x8cfd51)=>{_0x3320d2['commands']['get']('trackChanges')['value']&&(_0x8cfd51['length']>0x0&&_0x8cfd51[_0x8cfd51['length']-0x1]&&_0x8cfd51[_0x8cfd51['length']-0x1]['forceDefaultExecution']||_0x5c6d29['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5b7b2b['stop']());},{'priority':'highest'});for(const _0x36ae26 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5b65cf=_0x3320d2['commands']['get'](_0x36ae26);_0x5c6d29['enableCommand'](_0x36ae26,()=>{const _0x2a5fb0=_0x3320d2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x575bc8=>_0x575bc8['is']('element','tableCell')),_0x256336=_0x5b65cf['value'];_0x3320d2['model']['change'](()=>{_0x5c6d29['markMultiRangeBlockFormat']([_0x2a5fb0,_0x256336],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x51ecdf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x483c6a=_0x3320d2['commands']['get'](_0x51ecdf);_0x5c6d29['enableCommand'](_0x51ecdf,()=>{const _0x31e1fd=_0x1dad19['getSelectionAffectedTableCells'](_0x3320d2['model']['document']['selection'])[0x0],_0x30a8f8=_0x31e1fd['findAncestor']('table'),{column:_0x42cdfa,row:_0x5e23c0}=_0x1dad19['getCellLocation'](_0x31e1fd);let _0x3d3077=[];if('horizontally'==_0x483c6a['direction']){const _0x1cef32=_0x1dad19['createTableWalker'](_0x30a8f8,{'startRow':_0x5e23c0,'endRow':_0x5e23c0,'includeAllSlots':!0x0});_0x3d3077=Array['from'](_0x1cef32)['map'](_0x42a0e7=>_0x42a0e7['cell']);}else{const _0x3bbddf=_0x1dad19['createTableWalker'](_0x30a8f8,{'column':_0x42cdfa,'includeAllSlots':!0x0});_0x3d3077=Array['from'](_0x3bbddf)['map'](_0x137351=>_0x137351['cell']);}_0x3320d2['model']['change'](_0x2b2543=>{_0x5c6d29['markBlockFormat'](_0x2b2543['createRangeOn'](_0x31e1fd),{'commandName':_0x51ecdf,'commandParams':[]},_0x3d3077,_0x51ecdf);});});}_0x5c6d29['descriptionFactory']['registerDescriptionCallback'](_0x5cd88e=>{if('formatBlock'!=_0x5cd88e['type']&&'formatInline'!=_0x5cd88e['type'])return;const {data:_0x5b1005}=_0x5cd88e;return _0x5b1005&&'mergeTableCells'==_0x5b1005['commandName']?{'type':'format','content':c(_0x32ead4,'*Merge\x20cells*')}:void 0x0;}),_0x5c6d29['descriptionFactory']['registerDescriptionCallback'](_0x2aa6a9=>{if('formatBlock'!=_0x2aa6a9['type']&&'formatInline'!=_0x2aa6a9['type'])return;const {data:_0x3e6150}=_0x2aa6a9;return _0x3e6150?'splitTableCellVertically'==_0x3e6150['commandName']?{'type':'format','content':c(_0x32ead4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3e6150['commandName']?{'type':'format','content':c(_0x32ead4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x46fc0d=_0x4a03fb['_acceptFormatSuggestionCallbackFactory']();for(const _0x584d39 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5c6d29['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x584d39,'accept',_0x46fc0d);for(const _0x236a79 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5c6d29['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x236a79,'accept',_0x46fc0d);_0x5c6d29['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1cd896=>{_0x3320d2['model']['change'](_0x2457d4=>{const _0x593a4a=Array['from'](_0x24b3ae['getRanges']())['map'](_0x3e353a=>_0x5702ff['fromRange'](_0x3e353a));_0x2457d4['setSelection'](_0x1cd896),_0x3320d2['commands']['get']('mergeTableCells')['refresh'](),_0x3320d2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1d42b9=_0x593a4a['filter'](_0x415581=>'$graveyard'!=_0x415581['root']['rootName']);_0x1d42b9['length']>0x0&&_0x2457d4['setSelection'](_0x1d42b9);for(const _0x1e3fb9 of _0x593a4a)_0x1e3fb9['detach']();});});for(const _0xfb9799 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x167789=_0x3320d2['commands']['get'](_0xfb9799);_0x167789['on']('set:isEnabled',(_0x307366,_0x5adcb3,_0x13a271)=>{if(_0x13a271){const _0x147835=_0x3320d2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f9478=>_0x4f9478['is']('element','tableCell'));this['_areMergableCells'](_0x167789['value'],_0x147835)||(_0x307366['return']=!0x1,_0x307366['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1e28e2=this['editor']['commands']['get']('mergeTableCells'),_0x365b42=this['editor']['plugins']['get']('TableUtils');if(!_0x1e28e2['isEnabled'])return!0x1;const _0x28e587=_0x365b42['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x15b520 of _0x28e587)for(const _0x3fba01 of _0x28e587)if(_0x15b520!=_0x3fba01&&!this['_areMergableCells'](_0x15b520,_0x3fba01))return!0x1;return!0x0;}['_areMergableCells'](_0x315703,_0x47bcfe){const _0x1d96d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x214475=this['editor']['model']['createRangeOn'](_0x315703),_0x547df2=this['editor']['model']['createRangeOn'](_0x47bcfe),_0x16a973=new Set(),_0xb35ab5=new Set();for(const _0xb6f6cb of _0x1d96d2['getSuggestions']())if(('insertion'==_0xb6f6cb['type']||'deletion'==_0xb6f6cb['type']||'mergeTableCells'==_0xb6f6cb['subType'])&&_0xb6f6cb['isInContent']){for(const _0xc2c3ac of _0xb6f6cb['getRanges']())_0xc2c3ac['containsRange'](_0x214475,!0x0)&&_0x16a973['add'](_0xb6f6cb['type']+':'+_0xb6f6cb['author']['id']),_0xc2c3ac['containsRange'](_0x547df2,!0x0)&&_0xb35ab5['add'](_0xb6f6cb['type']+':'+_0xb6f6cb['author']['id']);}if(_0x16a973['size']!=_0xb35ab5['size'])return!0x1;for(const _0x179d50 of _0x16a973)if(!_0xb35ab5['has'](_0x179d50))return!0x1;return!0x0;}}class Dt extends _0x49d3a0{static get['requires'](){return[Ct];}['afterInit'](){const _0x238883=this['editor'];if(!_0x238883['plugins']['has']('TableEditing'))return;const _0x2756c8=_0x238883['locale'],_0x494a00=_0x238883['plugins']['get']('TrackChangesEditing');_0x494a00['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x494a00['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x494a00['registerBlockAttribute']('headingRows'),_0x494a00['registerBlockAttribute']('headingColumns'),_0x494a00['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x2756c8,'FORMAT_HEADER_ROW')),_0x494a00['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x2756c8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x194471=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3367fb=this['editor']['plugins']['get']('TableUtils'),_0x5b572a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3502b9({showActiveMarker:_0x49eda5=!0x0,setDataAttribute:_0x36aaf3=!0x0}={}){return(_0x360622,_0x270bb6,_0x5240c6)=>{const {type:_0x1cea49,id:_0x19b6fe}=_0x194471['_splitMarkerName'](_0x270bb6['markerName']),_0x486725=_0x194471['getSuggestion'](_0x19b6fe),_0x53e0c6=_0x486725['data'];if('formatBlock'!=_0x486725['type']||!_0x53e0c6||'setTableColumnHeader'!=_0x53e0c6['commandName'])return;if(_0x270bb6['item'])return void _0x360622['stop']();if(!_0x5240c6['consumable']['consume'](_0x270bb6['markerRange'],_0x360622['name']))return;const _0x413eeb=_0x270bb6['markerRange']['start']['nodeAfter'],_0x42e5d0=_0x270bb6['markerRange']['end']['nodeBefore'],_0x236094=_0x413eeb['parent']['parent'],{column:_0x202fba}=_0x3367fb['getCellLocation'](_0x413eeb),{column:_0x2fefdc}=_0x3367fb['getCellLocation'](_0x42e5d0);for(let _0x585fbb=_0x202fba;_0x585fbb<=_0x2fefdc;_0x585fbb++){const _0x4ef9d4=_0x3367fb['createTableWalker'](_0x236094,{'column':_0x585fbb,'includeAllSlots':!0x1});for(const _0x29c92c of _0x4ef9d4){const _0xfe82d5=_0x29c92c['cell'],_0x4cbaaf=_0x5240c6['mapper']['toViewElement'](_0xfe82d5);_0x5240c6['writer']['addClass']('ck-suggestion-marker-'+_0x1cea49,_0x4cbaaf),_0x36aaf3&&_0x5240c6['writer']['setAttribute']('data-suggestion',_0x19b6fe,_0x4cbaaf),_0x5240c6['mapper']['bindElementToMarker'](_0x4cbaaf,_0x270bb6['markerName']),_0x49eda5&&(_0x194471['activeMarkers']['includes'](_0x270bb6['markerName'])?_0x5240c6['writer']['addClass']('ck-suggestion-marker--active',_0x4cbaaf):_0x5240c6['writer']['removeClass']('ck-suggestion-marker--active',_0x4cbaaf));}}};}_0x194471['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5b572a),_0x194471['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5b572a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3502b9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x206876,_0x114bbf,_0x101d62)=>{_0x101d62['options']['showSuggestionHighlights']&&_0x3502b9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x206876,_0x114bbf,_0x101d62);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x36beb1,_0x427931,_0x44366a)=>{const {type:_0x4aec90,id:_0x2b221b}=_0x194471['_splitMarkerName'](_0x427931['markerName']),_0x3510c8=_0x194471['getSuggestion'](_0x2b221b),_0x19151c=_0x3510c8['data'];if('formatBlock'!=_0x3510c8['type']||!_0x19151c||'setTableColumnHeader'!=_0x19151c['commandName'])return;const _0x15bd45=_0x44366a['mapper']['markerNameToElements'](_0x427931['markerName']);if(_0x15bd45){for(const _0x508a09 of _0x15bd45)_0x44366a['writer']['removeClass']('ck-suggestion-marker-'+_0x4aec90,_0x508a09),_0x44366a['writer']['removeClass']('ck-suggestion-marker--active',_0x508a09),_0x44366a['writer']['removeAttribute']('data-suggestion',_0x508a09),_0x44366a['mapper']['unbindElementFromMarkerName'](_0x508a09,_0x427931['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cef47=this['editor'],_0x4464f1=_0x1cef47['locale'];function _0x39c7fd(_0xadcb33){return{'type':'format','content':c(_0x4464f1,'*Format:*\x20%0',_0xadcb33)};}_0x1cef47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37427f=>{if('formatBlock'!=_0x37427f['type'])return;const {data:_0x12eb41}=_0x37427f;if(_0x12eb41){if('setTableRowHeader'==_0x12eb41['commandName']){const _0x4fc624=_0x12eb41['commandParams'][0x0]['forceValue'];return _0x39c7fd(c(_0x4464f1,_0x4fc624?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x12eb41['commandName']){const _0x639870=_0x12eb41['commandParams'][0x0]['forceValue'];return _0x39c7fd(c(_0x4464f1,_0x639870?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x49d3a0{['afterInit'](){const _0x4f0908=this['editor'],_0x47460f=_0x4f0908['locale'],_0xa01942=_0x4f0908['plugins']['get']('TrackChangesEditing');function _0x5d46ad(_0x18f24b){return{'type':'format','content':''+c(_0x47460f,'*Set\x20table\x20type:*\x20%0',_0x18f24b)};}_0x4f0908['plugins']['has']('TableLayout')&&(_0xa01942['enableCommand']('insertTableLayout'),_0xa01942['enableDefaultAttributesIntegration']('tableType'),_0xa01942['registerBlockAttribute']('tableType'),_0xa01942['descriptionFactory']['registerElementLabel'](_0x3453bf=>_0x3453bf['is']('element','table')&&'layout'===_0x3453bf['getAttribute']('tableType'),_0x2a15d2=>c(_0x47460f,'ELEMENT_LAYOUT_TABLE',_0x2a15d2)),_0xa01942['descriptionFactory']['registerDescriptionCallback'](_0x1ca207=>{const {data:_0x109cb8}=_0x1ca207;if(_0x109cb8&&'tableType'==_0x109cb8['key'])switch(_0x109cb8['newValue']){case'layout':return _0x5d46ad(c(_0x47460f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5d46ad(c(_0x47460f,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x98ec0e=>[_0x98ec0e,null]));class $t extends _0x49d3a0{static get['requires'](){return[Ct];}['afterInit'](){const _0x2d7237=this['editor'];if(!_0x2d7237['plugins']['has']('TableClipboard'))return;const _0x2f73e7=_0x2d7237['plugins']['get']('TrackChangesEditing'),_0x14d209=_0x2d7237['plugins']['get']('TableUtils'),_0x477a98=_0x2d7237['plugins']['get'](Ct),_0x4afc98=_0x2d7237['plugins']['get']('TableClipboard'),_0x49b77b=_0x2d7237['plugins']['get']('TableSelection'),_0x312883=_0x2d7237['plugins']['get'](_0xa18438);_0x477a98['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2d7237['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2d7237['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3879cc=null,_0x51e1d5=!0x1;_0x312883['on']('contentInsertion',(_0x59f5e2,_0x596733)=>{_0x51e1d5='paste'===_0x596733['method'];}),_0x2d7237['model']['on']('insertContent',(_0x316fb2,_0x2414d1)=>{if(!_0x51e1d5&&null===_0x49b77b['getSelectedTableCells']())return;const [_0x14fa37,_0x47f812]=_0x2414d1,_0x1c6aae=_0x2414d1[_0x2414d1['length']-0x1];_0x1c6aae&&_0x1c6aae['forceDefaultExecution']||_0x2f73e7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x39d2de,_0x385055,_0x788144,_0x31c43a,_0x39e7c2){if(_0x385055&&!_0x385055['is']('documentSelection'))return!0x1;const _0x2e7f53=_0x39e7c2['getTableIfOnlyTableInContent'](_0x39d2de,_0x788144);if(!_0x2e7f53||!De(_0x2e7f53,void 0x0,_0x31c43a))return!0x1;const _0x3e4fe6=_0x31c43a['getSelectionAffectedTableCells'](_0x788144['document']['selection']);if(!_0x3e4fe6['length'])return!0x1;const _0x41d682=_0x3e4fe6[0x0]['findAncestor']('table'),_0x4c112e=_0x31c43a['getRowIndexes'](_0x3e4fe6),_0x5905e6=_0x31c43a['getColumnIndexes'](_0x3e4fe6),_0x403c7d={'startRow':_0x4c112e['first'],'endRow':_0x4c112e['last'],'startColumn':_0x5905e6['first'],'endColumn':_0x5905e6['last']};return 0x1==_0x3e4fe6['length']&&(_0x403c7d['endRow']+=_0x31c43a['getRows'](_0x2e7f53)-0x1,_0x403c7d['endColumn']+=_0x31c43a['getColumns'](_0x2e7f53)-0x1),De(_0x41d682,_0x403c7d,_0x31c43a);}(_0x14fa37,_0x47f812,_0x2d7237['model'],_0x14d209,_0x4afc98)&&(_0x316fb2['stop'](),_0x3879cc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2d7237['model']['change'](()=>{_0x2d7237['model']['insertContent'](_0x2414d1[0x0],_0x2414d1[0x1],_0x2414d1[0x2],{'forceDefaultExecution':!0x0});const _0x455099=_0x261f54(),{rowInsertionRanges:_0x150379,columnInsertionRanges:_0x5a536a,insertionRanges:_0x5f5b31,deletionRanges:_0x40c4d3,cells:_0x5401a9}=_0x3879cc;_0x150379['length']&&_0x2f73e7['markMultiRangeInsertion'](_0x150379,'tablePasteRow',{'tablePasteChainId':_0x455099}),_0x5a536a['length']&&_0x2f73e7['markMultiRangeInsertion'](_0x5a536a,'tablePasteColumn',{'tablePasteChainId':_0x455099}),_0x5f5b31['length']&&(_0x2f73e7['markMultiRangeInsertion'](_0x5f5b31,'tablePaste',{'tablePasteChainId':_0x455099,'skipNestingCheck':!0x0}),_0x5f5b31['forEach'](_0x2f67d8=>_0x2f67d8['detach']?.())),_0x40c4d3['length']&&(_0x2f73e7['markMultiRangeDeletion'](_0x40c4d3,'tablePaste',{'tablePasteChainId':_0x455099,'skipNestingCheck':!0x0}),_0x40c4d3['forEach'](_0x127f64=>_0x127f64['detach']?.()));const _0x49b27c=_0x2f73e7['markMultiRangeBlockFormat'](_0x5401a9['map'](({element:_0x183eb2})=>_0x183eb2),{'formatGroupId':_0x261f54()},[],'tablePasteCell',{'tablePasteChainId':_0x455099});if(_0x49b27c){const _0x34dc34=_0x49b27c['getMarkers'](),_0x201c48=[];for(const {element:_0x5c28ca,attributes:_0x4736fd}of _0x5401a9){if(!_0x4736fd)continue;const _0x5968d3=_0x2d7237['model']['createRangeOn'](_0x5c28ca),_0x45464e=_0x34dc34['find'](_0x445f9d=>_0x445f9d['getRange']()['isEqual'](_0x5968d3));_0x45464e&&_0x201c48['push']([_0x45464e['name'],_0x4736fd]);}_0x201c48['length']&&_0x49b27c['setAttribute']('markerAttributes',Object['fromEntries'](_0x201c48));}_0x3879cc=null;}));},{'priority':_0xbe5b8f['high']+0xa}),_0x312883['on']('contentInsertion',()=>{_0x51e1d5=!0x1;},{'priority':'lowest'}),_0x2d7237['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe92e89,_0x5d8a99)=>{const [_0x4258f9,_0x30bf63,,_0x290eb0]=_0x5d8a99;if(!_0x3879cc)return;_0xe92e89['stop']();const _0x3dc174=_0x4258f9['cell'],_0x5aded5=_0x30bf63,_0x5a08be=Ue(_0x3dc174),_0x894afd=Ue(_0x5aded5);_0xe92e89['return']=_0x3dc174;let _0x27051e=null,_0x3121c1=null;if(_0x894afd||_0x5a08be){if(_0x5a08be&&!_0x894afd){_0x290eb0['remove'](_0x3dc174['getChild'](0x0));for(const _0x263c4c of Array['from'](_0x5aded5['getChildren']()))_0x290eb0['insert'](_0x263c4c,_0x3dc174,'end');const _0x3b0615=_0x3879cc['rowInsertionIndexes']['includes'](_0x4258f9['row']),_0x7c4220=_0x3879cc['columnInsertionIndexes']['includes'](_0x4258f9['column']);_0x3b0615||_0x7c4220||(_0x27051e=_0x5702ff['fromRange'](_0x290eb0['createRangeIn'](_0x3dc174)));}else _0x894afd&&!_0x5a08be&&(_0x3121c1=_0x290eb0['createRangeIn'](_0x3dc174));}else{const _0x4d2e24=_0x290eb0['createElement']('tableCellSuggestion'),_0x5c8539=_0x290eb0['createElement']('tableCellSuggestion');_0x290eb0['wrap'](_0x290eb0['createRangeIn'](_0x3dc174),_0x5c8539),_0x290eb0['insert'](_0x4d2e24,_0x3dc174,0x0);for(const _0x4f6be3 of Array['from'](_0x5aded5['getChildren']()))_0x290eb0['insert'](_0x4f6be3,_0x4d2e24,'end');_0x27051e=_0x5702ff['fromRange'](_0x290eb0['createRangeOn'](_0x4d2e24)),_0x3121c1=_0x5702ff['fromRange'](_0x290eb0['createRangeOn'](_0x5c8539));}const _0x3872eb=Array['from'](_0x5aded5['getAttributes']())['filter'](([_0x183dcf])=>xe['includes'](_0x183dcf));_0x3879cc['cells']['push']({'element':_0x3dc174,'attributes':_0x3872eb['length']?Object['fromEntries'](_0x3872eb):null}),_0x27051e&&_0x3879cc['insertionRanges']['push'](_0x27051e),_0x3121c1&&_0x3879cc['deletionRanges']['push'](_0x3121c1);},{'priority':'high'}),_0x14d209['on']('insertColumns',(_0x2b0a92,_0x69adb3)=>{const [_0x3db352,_0x4ce51f={}]=_0x69adb3;if(!_0x3879cc)return;const _0x446e5f=_0x4ce51f['at']||0x0,_0x5cafcd=_0x4ce51f['columns']||0x1;_0x3879cc['columnInsertionIndexes']=new Array(_0x5cafcd)['fill'](_0x446e5f)['map']((_0x396087,_0x5ef862)=>_0x396087+_0x5ef862);for(const {cell:_0x5d6244}of _0x14d209['createTableWalker'](_0x3db352,{'startColumn':_0x446e5f,'endColumn':_0x446e5f+_0x5cafcd-0x1}))_0x3879cc['columnInsertionRanges']['push'](_0x2d7237['model']['createRangeOn'](_0x5d6244));},{'priority':'low'}),_0x14d209['on']('insertRows',(_0x37ab58,_0x221240)=>{const [_0x107d85,_0x2e9874={}]=_0x221240;if(!_0x3879cc)return;const _0x1c5ca8=_0x2e9874['at']||0x0,_0x319a28=_0x2e9874['rows']||0x1;_0x3879cc['rowInsertionIndexes']=new Array(_0x319a28)['fill'](_0x1c5ca8)['map']((_0x201325,_0x4f1953)=>_0x201325+_0x4f1953);for(const {cell:_0x36ec84}of _0x14d209['createTableWalker'](_0x107d85,{'startRow':_0x1c5ca8,'endRow':_0x1c5ca8+_0x319a28-0x1}))_0x3879cc['rowInsertionRanges']['push'](_0x2d7237['model']['createRangeOn'](_0x36ec84));},{'priority':'low'}),_0x2f73e7['descriptionFactory']['registerDescriptionCallback'](_0x1055a3=>{if(_0x1055a3['subType']&&_0x1055a3['subType']['startsWith']('tablePaste'))return _0x1055a3['previous']?{}:{'type':'insertion','content':c(_0x2d7237['locale'],'*Replace\x20table\x20cells*')};});const _0x5dec8a=()=>!0x1;for(const _0x3a80dd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2f73e7['_suggestionFactory']['registerCustomCallback']('insertion',_0x3a80dd,'join',_0x5dec8a),_0x2f73e7['_suggestionFactory']['registerCustomCallback']('deletion',_0x3a80dd,'join',_0x5dec8a),_0x2f73e7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a80dd,'join',_0x5dec8a);_0x2f73e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5dec8a),_0x2f73e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5b2d64,_0x1e565e,_0x56c91b)=>{const _0x56aefc=_0x5b2d64['map'](_0x880bf4=>_0x880bf4['getContainedElement']())['filter'](_0x31235e=>_0x31235e),_0x21fb7c=new Map(_0x56aefc['map'](_0x17afeb=>[_0x17afeb,null]));if(_0x3879cc){for(const {element:_0x17f771,attributes:_0x13ee0c}of _0x3879cc['cells'])_0x13ee0c&&_0x21fb7c['set'](_0x17f771,_0x13ee0c);}else{if(_0x56c91b&&_0x56c91b['markerAttributes'])for(const [_0x2216e4,_0x5c6619]of Object['entries'](_0x56c91b['markerAttributes'])){const _0x1f6571=_0x2d7237['model']['markers']['get'](_0x2216e4),_0x3a4872=_0x1f6571?_0x1f6571['getRange']()['getContainedElement']():null;_0x3a4872&&_0x21fb7c['set'](_0x3a4872,_0x5c6619);}}_0x2d7237['model']['change'](_0x38fe1b=>{for(const [_0x2656c8,_0x45c969]of _0x21fb7c)_0x38fe1b['setAttributes']({...Oe,..._0x45c969},_0x2656c8);});});const _0x5caaa1=(_0x4446df,_0x55f9ff)=>{_0x2f73e7['_suggestionFactory']['registerCustomCallback'](_0x4446df,'tablePaste',_0x55f9ff,(_0x1963d1,_0x1206d3,_0x1212c7)=>{_0x2d7237['model']['change'](_0x5b772e=>{const _0x24808e=[];for(const _0x2f4458 of _0x1963d1){const _0x43a87b=_0x2f4458['start']['nodeAfter'];_0x43a87b['is']('element','tableCellSuggestion')&&_0x24808e['push'](_0x43a87b);}_0x2f73e7['_suggestionFactory']['getSuggestionCallback'](_0x4446df,null,_0x55f9ff)(_0x1963d1,_0x1206d3,_0x1212c7);for(const _0x5aa4be of _0x24808e)'$graveyard'!=_0x5aa4be['root']['rootName']&&_0x5b772e['unwrap'](_0x5aa4be);});});};_0x5caaa1('insertion','accept'),_0x5caaa1('insertion','discard'),_0x5caaa1('deletion','accept'),_0x5caaa1('deletion','discard'),_0x2f73e7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4685c2=>{const _0x3b65aa=_0x4685c2['map'](_0xd1760d=>_0xd1760d['getContainedElement']()),_0x453520=_0x3b65aa[0x0]['findAncestor']('table'),{minRow:_0x3d078c,maxRow:_0x809ad4}=_0x477a98['_getCoordsForCells'](_0x3b65aa);_0x14d209['removeRows'](_0x453520,{'at':_0x3d078c,'rows':_0x809ad4-_0x3d078c+0x1});}),_0x2f73e7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xfed2a8=>{const _0x84a2a5=_0xfed2a8['map'](_0x2414db=>_0x2414db['getContainedElement']()),_0x2295a4=_0x84a2a5[0x0]['findAncestor']('table'),{minColumn:_0x5ba7b4,maxColumn:_0xa3e9c5}=_0x477a98['_getCoordsForCells'](_0x84a2a5);_0x14d209['removeColumns'](_0x2295a4,{'at':_0x5ba7b4,'columns':_0xa3e9c5-_0x5ba7b4+0x1});});const _0x3e4a53=(_0x18a0cb,_0x4c5a24)=>{if(!_0x4c5a24['subType']||!_0x4c5a24['subType']['startsWith']('tablePaste'))return;const _0x4bfe97=_0x4c5a24['attributes']['tablePasteChainId'],_0x4704e0=_0x2f73e7['getSuggestions']()['filter'](_0x365050=>_0x365050['isInContent']&&_0x365050['attributes']&&_0x365050['attributes']['tablePasteChainId']==_0x4bfe97);_0x4704e0['length']&&_0x4c5a24['getAllAdjacentSuggestions']()['length']!=_0x4704e0['length']&&_0x4704e0['reduce']((_0x342533,_0x21e1c4)=>(_0x342533['next']=_0x21e1c4,_0x21e1c4['previous']=_0x342533,_0x21e1c4));};function _0x4b599b(_0x4b1dbb,_0x8963d9=!0x0){const {id:_0x49a22e,authorId:_0x33c499}=_0x2f73e7['_splitMarkerName'](_0x4b1dbb['markerName']),_0x1c047b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x413677=_0x2f73e7['activeMarkers']['includes'](_0x4b1dbb['markerName']);return _0x413677&&_0x1c047b['push']('ck-suggestion-marker--active'),{'classes':_0x1c047b,'attributes':{'data-suggestion':_0x49a22e,'data-author-id':_0x33c499},'priority':_0x413677&&_0x8963d9?0xbc2:0xbb8};}_0x2f73e7['on']('suggestionLoaded',_0x3e4a53,{'priority':'high'}),_0x2f73e7['on']('suggestionUnloaded',_0x3e4a53,{'priority':'high'}),_0x2d7237['model']['document']['registerPostFixer'](()=>{let _0x264ea6=!0x1;const _0x3055da=Array['from'](_0x2d7237['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c724e,data:_0x3d2a07}of _0x3055da){const {group:_0xcd5381,type:_0x44b2e5,id:_0x3d0a68}=_0x2f73e7['_splitMarkerName'](_0x3c724e);if('suggestion'!=_0xcd5381||'deletion'!=_0x44b2e5||_0x3d2a07['oldRange'])continue;if(!_0x2f73e7['hasSuggestion'](_0x3d0a68))continue;const _0x129df3=_0x2f73e7['getSuggestion'](_0x3d0a68)['getRanges'](),_0x22ce01=_0x2d7237['plugins']['get']('Users')['me'];for(const _0x2f1f2a of _0x2f73e7['getSuggestions']()){if(!_0x2f1f2a['isInContent']||_0x2f1f2a['author']!=_0x22ce01)continue;if('formatBlock'!=_0x2f1f2a['type']||'tablePasteCell'!=_0x2f1f2a['subType'])continue;if(_0x2f1f2a['getRanges']()['every'](_0x3b9ce3=>_0x129df3['some'](_0x4a47ab=>_0x4a47ab['containsRange'](_0x3b9ce3,!0x0)))){for(const _0x4a5af3 of _0x2f1f2a['getAllAdjacentSuggestions']())_0x4a5af3['isInContent']&&(_0x4a5af3['discard'](),_0x264ea6=!0x0);}}}return _0x264ea6;}),_0x2d7237['model']['document']['registerPostFixer'](_0x2fa15f=>{const _0x2eca85=_0x2d7237['commands']['get']('redo');if(!_0x2eca85||!_0x2eca85['_createdBatches']['has'](_0x2fa15f['batch']))return!0x1;let _0x57a58e=!0x1;const _0x3b04a7=_0x2d7237['plugins']['get']('Users')['me'],_0x26d523=_0x2d7237['model']['document']['differ']['getChanges'](),_0x5d29f6=Array['from'](_0x2d7237['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x7da636,data:_0x4573c4})=>{const {group:_0x5bc6a3,subType:_0x35e8e3,authorId:_0x4b200e}=_0x2f73e7['_splitMarkerName'](_0x7da636);return'suggestion'==_0x5bc6a3&&'tablePaste'==_0x35e8e3&&_0x4b200e==_0x3b04a7['id']&&!_0x4573c4['oldRange'];});for(const _0x2ac32f of _0x26d523){if('insert'!=_0x2ac32f['type']||'tableCellSuggestion'!=_0x2ac32f['name']||0x1!=_0x2ac32f['length'])continue;const _0x3a3b9f=_0x2fa15f['createRange'](_0x2ac32f['position'],_0x2ac32f['position']['getShiftedBy'](0x1));if(!_0x5d29f6['find'](({data:_0x2fec4c})=>_0x2fec4c['newRange']['isEqual'](_0x3a3b9f))){for(const {name:_0x255fb4,data:_0x2a27a2}of _0x5d29f6)if(_0x3a3b9f['containsRange'](_0x2a27a2['newRange'])){_0x2fa15f['updateMarker'](_0x255fb4,{'range':_0x3a3b9f}),_0x57a58e=!0x0;break;}}}return _0x57a58e;}),_0x2d7237['model']['document']['registerPostFixer'](_0x4f1cb5=>{let _0x327602=!0x1;const _0x340fcc=_0x2d7237['plugins']['get']('Users')['me'],_0x6a99f3=_0x2f73e7['getSuggestions']()['filter'](_0x5201d6=>_0x5201d6['isInContent']&&_0x5201d6['author']==_0x340fcc),_0xd7c9fb=new Set(),_0x17c198=new Set();for(const _0x52f6c1 of _0x6a99f3)if('tablePaste'==_0x52f6c1['subType'])for(const _0xacd387 of _0x52f6c1['getMarkers']()){const _0x1b2560=_0xacd387['getRange']()['getContainedElement']();if(_0x1b2560){if(_0x1b2560['is']('element','tableCellSuggestion')&&Ue(_0x1b2560)){_0x52f6c1['removeMarker'](_0xacd387['name']),_0xd7c9fb['add'](_0x1b2560),_0x327602=!0x0;const _0x4767d7=_0x1b2560['nextSibling'],_0x220f52=_0x1b2560['previousSibling'],_0x2c81d7=_0x4767d7&&_0x4767d7['is']('element','tableCellSuggestion'),_0x3cca4e=_0x220f52&&_0x220f52['is']('element','tableCellSuggestion');_0x2c81d7&&!_0xd7c9fb['has'](_0x4767d7)&&_0x17c198['add'](_0x4767d7),_0x3cca4e&&!_0xd7c9fb['has'](_0x220f52)&&_0x17c198['add'](_0x220f52);}else _0x1b2560['is']('element','paragraph')&&_0x1b2560['isEmpty']&&(_0x52f6c1['removeMarker'](_0xacd387['name']),_0x327602=!0x0);}}else{if('tablePasteCell'==_0x52f6c1['subType']){if(!_0x52f6c1['attributes']||!_0x52f6c1['attributes']['tablePasteChainId'])continue;const _0x53d735=_0x52f6c1['attributes']['markerAttributes'];if(_0x53d735&&Object['keys'](_0x53d735)['length'])continue;const _0x512e37=_0x52f6c1['attributes']['tablePasteChainId'];let _0x3ccdf2=!0x0,_0x2b0387=!0x0;for(const _0x2b3442 of _0x6a99f3)if(_0x2b3442['subType']&&_0x2b3442['subType']['startsWith']('tablePaste')){if(!_0x2b3442['attributes']['tablePasteChainId']){_0x2b0387=!0x1;break;}if(_0x2b3442['id']!=_0x52f6c1['id']&&_0x2b3442['attributes']['tablePasteChainId']==_0x512e37){_0x3ccdf2=!0x1;break;}}_0x2b0387&&_0x3ccdf2&&(_0x52f6c1['removeMarkers'](),_0x327602=!0x0);}}for(const _0x345c23 of _0xd7c9fb)_0x4f1cb5['remove'](_0x345c23);for(const _0x1cfa7d of _0x17c198)_0x4f1cb5['unwrap'](_0x1cfa7d);return _0x327602;}),_0x2d7237['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4fbd75=>_0x4b599b(_0x4fbd75),'converterPriority':'high'}),_0x2d7237['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5a32e4,_0x20a4a2)=>_0x20a4a2['options']['showSuggestionHighlights']?_0x4b599b(_0x5a32e4,!0x1):null,'converterPriority':'high'});const _0x4eabad=_0x2d7237['editing']['view'];this['listenTo'](_0x4eabad['document'],'clipboardOutput',(_0x47a5f4,_0x325839)=>{const _0x1d8778=[];for(const _0x1d849b of _0x4eabad['createRangeIn'](_0x325839['content'])['getItems']())_0x1d849b['is']('element','suggestion-td')&&_0x1d8778['push'](_0x1d849b);_0x4eabad['change'](_0x1a9b45=>{for(const _0x2a6c2b of _0x1d8778)_0x1a9b45['move'](_0x1a9b45['createRangeIn'](_0x2a6c2b),_0x1a9b45['createPositionBefore'](_0x2a6c2b)),_0x1a9b45['remove'](_0x2a6c2b);});});}}function Ue(_0x13b0fc){if(_0x13b0fc['isEmpty'])return!0x0;const _0x36bf87=_0x13b0fc['getChild'](0x0);return _0x36bf87['is']('element','paragraph')&&_0x36bf87['isEmpty'];}function De(_0x42911f,_0x3840a0={},_0xf6d3c4){for(const {isAnchor:_0x70a987,cellHeight:_0x3068e9,cellWidth:_0x2d638e}of _0xf6d3c4['createTableWalker'](_0x42911f,{'includeAllSlots':!0x0,..._0x3840a0}))if(!_0x70a987||0x1!=_0x3068e9||0x1!=_0x2d638e)return!0x1;return!0x0;}class Bt extends _0x49d3a0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x945793=this['editor']['plugins']['get']('TrackChangesEditing');_0x945793['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x945793['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x945793['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x945793['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x945793['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x945793['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x10369f,_0x59317a){const _0x106c6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd387ff=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x473e2c=_0x59317a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1616e9=_0xd387ff['getColumnGroupElement'](_0x473e2c);let _0x580465=_0x1616e9?_0xd387ff['getTableColumnsWidths'](_0x1616e9):null,_0x9e52a7=_0x473e2c['getAttribute']('tableWidth')||null;const _0x52e49b=_0x59317a['tableWidth']||_0x9e52a7,_0xf9874d=_0x59317a['columnWidths']||_0x580465,_0x2fd04c=this['editor']['plugins']['get']('Users')['me'];for(const _0x33537e of _0x106c6a['getSuggestions']()){const _0x101f02=_0x33537e['getContainedElement']();if('resizeTable'===_0x33537e['subType']&&_0x101f02===_0x473e2c){_0x33537e['author']!==_0x2fd04c&&_0x33537e['discard']();const _0x4c312b=_0x33537e['data']['commandParams'];_0x9e52a7=_0x4c312b[0x0]['tableWidth'],_0x580465=_0x4c312b[0x0]['columnWidths'];break;}}_0x10369f({'table':_0x473e2c,'tableWidth':_0x52e49b,'columnWidths':_0xf9874d}),_0x106c6a['markBlockFormat'](_0x473e2c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x9e52a7,'columnWidths':_0x580465}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2020dc){if('formatBlock'!=_0x2020dc['type']&&'formatInline'!=_0x2020dc['type'])return;const {data:_0x138af8}=_0x2020dc;if(_0x138af8&&'resizeTable'===_0x138af8['formatGroupId']){const _0x2d2a63='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2d2a63)};}}}class Ot extends _0x49d3a0{['afterInit'](){const _0x44850a=this['editor'];_0x44850a['plugins']['has']('Template')&&_0x44850a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x49d3a0{['afterInit'](){const _0x58b053=this['editor'];if(!_0x58b053['commands']['get']('insertTableOfContents'))return;_0x58b053['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x41365e=_0x58b053['plugins']['get']('TrackChangesEditing'),_0x49aa4f=_0x58b053['locale'];_0x41365e['descriptionFactory']['registerElementLabel']('tableOfContents',_0xd17c6e=>c(_0x49aa4f,'ELEMENT_TABLE_OF_CONTENTS',_0xd17c6e));}}class xt extends _0x49d3a0{['afterInit'](){const _0x54b453=this['editor'];if(!_0x54b453['plugins']['has']('Title'))return;const _0x5acfd3=_0x54b453['plugins']['get']('TrackChangesEditing');_0x5acfd3['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x54b453['locale'],'ELEMENT_TITLE')),_0x54b453['model']['document']['registerPostFixer'](_0x3eef6e=>{let _0x4218e1=!0x1;const _0x117a95=Array['from'](_0x54b453['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22f070,data:_0x45b81c}of _0x117a95){const {group:_0x3b6d87}=_0x5acfd3['_splitMarkerName'](_0x22f070);if('suggestion'!==_0x3b6d87||!_0x45b81c['newRange'])continue;const _0x546690=_0x45b81c['newRange'],_0x2c72e3=_0x546690['end']['nodeBefore'];if(!_0x2c72e3||!_0x2c72e3['is']('element','title-content'))continue;if(!_0x546690['start']['isTouching'](_0x546690['end']))continue;const _0x4b4659=_0x54b453['model']['schema']['getNearestSelectionRange'](_0x546690['end'],'forward');if(_0x4b4659&&_0x4b4659['isCollapsed']){const _0x279be0=_0x3eef6e['createRange'](_0x546690['start'],_0x4b4659['start']);_0x279be0['isEqual'](_0x546690)||(_0x3eef6e['updateMarker'](_0x22f070,{'range':_0x279be0}),_0x4218e1=!0x0);}_0x4218e1||(_0x3eef6e['removeMarker'](_0x22f070),_0x4218e1=!0x0);}return _0x4218e1;});}}class Tt extends _0x49d3a0{['afterInit'](){const _0x4bcc05=this['editor'],_0x48cf31=_0x4bcc05['plugins']['get']('TrackChangesEditing');_0x4bcc05['plugins']['has']('Uploadcare')&&(_0x48cf31['enableCommand']('uploadcare'),_0x4bcc05['plugins']['has']('UploadcareImageEdit')&&(_0x48cf31['enableCommand']('uploadcareImageEdit'),_0x48cf31['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x48cf31['registerBlockAttribute']('uploadcareImageId'),_0x48cf31['descriptionFactory']['registerDescriptionCallback'](_0x35dbe4=>{if('attribute'!=_0x35dbe4['type'])return;const {data:_0x5af445}=_0x35dbe4;return _0x5af445&&'uploadcareImageId'==_0x5af445['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x49d3a0{['afterInit'](){const _0x21a97e=this['editor'],_0x24a5dc=_0x21a97e['plugins']['get']('TrackChangesEditing');_0x21a97e['plugins']['has']('UndoEditing')&&(_0x24a5dc['enableCommand']('undo'),_0x24a5dc['enableCommand']('redo'));}}class Ut extends _0x49d3a0{static get['requires'](){return[Ct];}['afterInit'](){const _0x5c1f66=this['editor'];if(!_0x5c1f66['plugins']['has']('TableCaptionEditing'))return;_0x5c1f66['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x49d3a0{['tableProperties'];['tableCellProperties'];constructor(_0x46921c){super(_0x46921c),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 _0x2257f6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4d0e95 of this['tableProperties'])_0x2257f6['enableCommand'](_0x4d0e95,(_0x422489,_0x2e38dd)=>{const _0xfd625a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4d0e95,[_0xfd625a],this['tableProperties'],'tableProperties',_0x422489,_0x2e38dd);});_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2257f6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5c019f,_0x3bc279)=>this['handleDiscardAction'](this['tableProperties'],_0x5c019f,_0x3bc279)),_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x566d84 of this['tableCellProperties'])_0x2257f6['enableCommand'](_0x566d84,(_0x3ca7c3,_0x450f1d)=>{const _0x40b4f7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x566d84,_0x40b4f7,this['tableCellProperties'],'tableCellProperties',_0x3ca7c3,_0x450f1d);});_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2257f6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2ca26b,_0x48c197)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2ca26b,_0x48c197)),_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2257f6['descriptionFactory']['registerDescriptionCallback'](_0x4d715f=>this['handleSuggestionDescription'](_0x4d715f));}['_handlePropertyChange'](_0x24b3d4,_0x11422e,_0x3e7777,_0xbb630a,_0x2d370f,_0x343f56){const _0x574550=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x343f56['batch'],()=>{for(const _0x25568f of _0x11422e){if(this['_getSuggestion'](_0x25568f,_0xbb630a))_0x2d370f(_0x343f56);else{const _0x1c6d2a={};for(const _0x5eea15 of _0x3e7777){const _0xb33eac=_0x25568f['getAttribute'](_0x5eea15);void 0x0!==_0xb33eac&&(_0x1c6d2a[_0x5eea15]=_0xb33eac);}_0x2d370f(_0x343f56),_0x574550['markBlockFormat'](_0x25568f,{'commandParams':[_0x1c6d2a]},[],_0xbb630a);}}});}['handleDiscardAction'](_0x51c928,_0x50d156,_0x3a8bbb){const _0x5e5c4a=_0x50d156[0x0]['start']['nodeAfter'],_0x39a334=_0x3a8bbb['commandParams'][0x0];this['editor']['model']['change'](_0x2ccad3=>{for(const _0x2015b8 of _0x51c928)void 0x0!==_0x39a334[_0x2015b8]?_0x2ccad3['setAttribute'](_0x2015b8,_0x39a334[_0x2015b8],_0x5e5c4a):_0x2ccad3['removeAttribute'](_0x2015b8,_0x5e5c4a);});}['handleSuggestionDescription'](_0xae90dd){if(_0xae90dd['data'])switch(_0xae90dd['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x23e6b8,_0x3ed41f){const _0x1c8cc0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1d64ac of _0x1c8cc0['getSuggestions']({'skipNotAttached':!0x0})){const _0xa69d23=_0x1d64ac['getContainedElement']();if(_0x1d64ac['subType']===_0x3ed41f&&_0xa69d23===_0x23e6b8)return _0x1d64ac;}return null;}}const u='$elementName';class p extends _0x49d3a0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x23fc75,_0x45c9db,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b4442){super(_0x1b4442),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2fe606,_0x10ff34,_0x5724bf,_0x163056)=>{this['_model']['change'](()=>{for(const _0x21faac of[..._0x163056,..._0x5724bf])this['_model']['markers']['has'](_0x21faac)&&_0x1b4442['editing']['reconvertMarker'](_0x21faac);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1b4442['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x1b4442['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1b4442['config']['get']('trackChanges.trackFormatChanges'),_0x1b4442['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1b4442['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1b4442,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x15fe82=this['editor'],_0x1689a9=(_0x26a4c8,_0x2b6fbf)=>{if('attribute'!=_0x26a4c8)return'ck-suggestion-marker-'+_0x26a4c8;const _0x583199=_0x2b6fbf['split']('|')[0x0];return this['_isBlockAttribute'](_0x583199)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x15fe82['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2a9dfd=>{const {id:_0x2b7d89,authorId:_0x1cf0ab,type:_0x3a548b,subType:_0x10fd20}=this['_splitMarkerName'](_0x2a9dfd['markerName']),_0x171d36=['ck-suggestion-marker',_0x1689a9(_0x3a548b,_0x10fd20)];let _0x1578a3=0xbb8;return this['activeMarkers']['includes'](_0x2a9dfd['markerName'])&&(_0x171d36['push']('ck-suggestion-marker--active'),_0x1578a3=0xbc2),'deletion'==_0x3a548b&&(_0x1578a3+=0x5),{'classes':_0x171d36,'attributes':{'data-suggestion':_0x2b7d89,'data-author-id':_0x1cf0ab},'priority':_0x1578a3};}}),_0x15fe82['conversion']['for']('dataDowncast')['add'](_0x5542ec=>{_0x5542ec['on']('addMarker:suggestion',(_0x447a74,_0x3d464f,_0x448208)=>{if(!_0x448208['options']['showSuggestionHighlights'])return;const _0x540b31=_0x3d464f['item'];if(!_0x540b31)return;const _0x1407f9=_0x448208['mapper']['toViewElement'](_0x540b31);_0x15fe82['model']['schema']['isObject'](_0x540b31)&&_0x1407f9&&!_0x1407f9['getCustomProperty']('widget')&&_0x1407f9['is']('containerElement')&&_0x28944c(_0x1407f9,_0x448208['writer']);},{'priority':'high'});}),_0x15fe82['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x291a3b,_0x596317)=>{if(!_0x596317['options']['showSuggestionHighlights'])return null;const {type:_0x2718cc,subType:_0x540c70}=this['_splitMarkerName'](_0x291a3b['markerName']);return{'classes':['ck-suggestion-marker',_0x1689a9(_0x2718cc,_0x540c70)],'priority':0xbb8};}});const _0x29bddc=({showActiveMarkers:_0x1d7d64=!0x0,isAttributeSuggestion:_0x20f60d=!0x1}={})=>(_0x1e2f66,_0x54177f,_0x45fe6b)=>{if(!_0x54177f['item'])return;const {id:_0x2b8c86,authorId:_0x4b4462}=this['_splitMarkerName'](_0x54177f['markerName']);if(_0x20f60d){const _0x462e3c=this['_suggestions']['get'](_0x2b8c86),_0x1daf5a=this['_getAttributeKey'](_0x462e3c);if(!this['_isBlockAttribute'](_0x1daf5a))return;}if(_0x54177f['item']['is']('selection'))return void _0x45fe6b['consumable']['consume'](_0x54177f['item'],_0x1e2f66['name']);const _0x17529d=_0x45fe6b['mapper']['toViewElement'](_0x54177f['item']);if(_0x54177f['item']['is']('element')&&_0x15fe82['model']['schema']['isBlock'](_0x54177f['item'])&&!_0x17529d['getCustomProperty']('addHighlight')){_0x45fe6b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x17529d),_0x45fe6b['writer']['setAttribute']('data-suggestion',_0x2b8c86,_0x17529d),_0x45fe6b['writer']['setAttribute']('data-author-id',_0x4b4462,_0x17529d),_0x45fe6b['mapper']['bindElementToMarker'](_0x17529d,_0x54177f['markerName']),_0x1d7d64&&(this['activeMarkers']['includes'](_0x54177f['markerName'])?_0x45fe6b['writer']['addClass']('ck-suggestion-marker--active',_0x17529d):_0x45fe6b['writer']['removeClass']('ck-suggestion-marker--active',_0x17529d));for(const _0x702d4f of _0x15fe82['model']['createRangeIn'](_0x54177f['item'])['getItems']())_0x45fe6b['consumable']['consume'](_0x702d4f,_0x1e2f66['name']);_0x45fe6b['consumable']['consume'](_0x54177f['item'],_0x1e2f66['name']);}};_0x15fe82['conversion']['for']('dataDowncast')['add'](_0x48c82b=>{_0x48c82b['on']('addMarker:suggestion:formatBlock',(_0x387df1,_0xb1699e,_0x41c2aa)=>{_0x41c2aa['options']['showSuggestionHighlights']&&_0x29bddc({'showActiveMarkers':!0x1})(_0x387df1,_0xb1699e,_0x41c2aa);},{'priority':'highest'});}),_0x15fe82['conversion']['for']('dataDowncast')['add'](_0xfc93e3=>{_0xfc93e3['on']('addMarker:suggestion:attribute',(_0x2d0692,_0x56bd7a,_0x560b24)=>{_0x560b24['options']['showSuggestionHighlights']&&_0x29bddc({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2d0692,_0x56bd7a,_0x560b24);},{'priority':'highest'});}),_0x15fe82['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x22c69c,_0x3ab636)=>_0x3ab636['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x22c69c['substr'](0xb)}}),_0x15fe82['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ac3fc,{writer:_0x837683})=>{let _0x436e1d='suggestion:'+_0x2ac3fc['getAttribute']('suggestion-type')+':'+_0x2ac3fc['getAttribute']('id');return _0x2ac3fc['getAttribute']('marker-count')&&(_0x436e1d+=':'+_0x2ac3fc['getAttribute']('marker-count')),_0x837683['createElement']('$marker',{'data-name':_0x436e1d});}}),_0x15fe82['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x15fe82['conversion']['for']('editingDowncast')['add'](_0x1f6ab9=>{_0x1f6ab9['on']('addMarker:suggestion:formatBlock',_0x29bddc(),{'priority':'high'});}),_0x15fe82['conversion']['for']('editingDowncast')['add'](_0x3cd908=>{_0x3cd908['on']('addMarker:suggestion:attribute',_0x29bddc({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x15fe82['conversion']['for']('editingDowncast')['add'](_0x41d92a=>{_0x41d92a['on']('removeMarker:suggestion:formatBlock',(_0x380332,_0x36c3e8,_0x5a82c6)=>{const _0x512b90=_0x5a82c6['mapper']['markerNameToElements'](_0x36c3e8['markerName']);if(_0x512b90){for(const _0x2bb4f6 of _0x512b90)_0x2bb4f6['getCustomProperty']('addHighlight')||(_0x5a82c6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2bb4f6),_0x5a82c6['writer']['removeAttribute']('data-suggestion',_0x2bb4f6),_0x5a82c6['writer']['removeAttribute']('data-author-id',_0x2bb4f6),_0x5a82c6['mapper']['unbindElementFromMarkerName'](_0x2bb4f6,_0x36c3e8['markerName']));}},{'priority':'high'});}),_0x15fe82['conversion']['for']('editingDowncast')['add'](_0xccae94=>{_0xccae94['on']('removeMarker:suggestion:attribute',(_0x415a35,_0x3f063f,_0x3d29e5)=>{const _0x3a87a0=_0x3d29e5['mapper']['markerNameToElements'](_0x3f063f['markerName']);if(!_0x3a87a0)return;const {id:_0x4da312}=this['_splitMarkerName'](_0x3f063f['markerName']),_0x2c201e=this['_suggestions']['get'](_0x4da312),_0xc4cfca=this['_getAttributeKey'](_0x2c201e);if(this['_isBlockAttribute'](_0xc4cfca)){for(const _0x359a14 of _0x3a87a0)_0x359a14['getCustomProperty']('addHighlight')||(_0x3d29e5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x359a14),_0x3d29e5['writer']['removeAttribute']('data-suggestion',_0x359a14),_0x3d29e5['writer']['removeAttribute']('data-author-id',_0x359a14),_0x3d29e5['mapper']['unbindElementFromMarkerName'](_0x359a14,_0x3f063f['markerName']));}},{'priority':'high'});}),_0x15fe82['model']['document']['registerPostFixer'](_0xd6ab45=>{let _0xe64e7a=!0x1;const _0x16b64b=Array['from'](_0x15fe82['model']['document']['differ']['getChangedMarkers']()),_0xf421ee=new Set();for(const {name:_0x1d5686,data:_0x45d34b}of _0x16b64b){const {group:_0x4b87aa,type:_0x4f24ac,subType:_0x4c5a39,id:_0x3fc15b}=this['_splitMarkerName'](_0x1d5686);if('suggestion'!==_0x4b87aa)continue;const _0x3a7c9a=this['_suggestions']['get'](_0x3fc15b);if(null!=_0x45d34b['newRange']){'formatInline'==_0x4f24ac&&(_0xe64e7a=_0xe64e7a||Jt(_0x45d34b['newRange'],_0x1d5686,_0xd6ab45,_0x15fe82['model']['schema']));const _0x29ef28='attribute'==_0x4f24ac&&this['_isBlockAttribute'](_0x4c5a39['split']('|')[0x0]);if(_0x45d34b['newRange']['isCollapsed']||'$graveyard'==_0x45d34b['newRange']['root']['rootName']||'formatBlock'==_0x4f24ac&&!Ht(_0x45d34b['newRange'])||_0x29ef28&&!Ht(_0x45d34b['newRange'])||'deletion'==_0x4f24ac&&!(!Lt(_0x2c70cf=_0x45d34b['newRange'])&&!function(_0x3bcc35){return _0x3bcc35['start']['parent']==_0x3bcc35['end']['nodeBefore']&&_0x3bcc35['start']['isAtEnd'];}(_0x2c70cf)))_0xd6ab45['removeMarker'](_0x1d5686),_0xe64e7a=!0x0;else{if(!_0x3a7c9a||!_0x3a7c9a['isInContent'])continue;if(_0x45d34b['newRange']&&_0x45d34b['oldRange']&&_0x45d34b['newRange']['isEqual'](_0x45d34b['oldRange']))continue;_0xf421ee['add'](_0x3a7c9a);}}}var _0x2c70cf;return _0xf421ee['size']>0x0&&(_0xe64e7a=!!this['_joinWithAdjacentSuggestions'](_0xf421ee)||_0xe64e7a),_0xe64e7a;}),_0x15fe82['model']['document']['registerPostFixer'](_0x22fb2e=>{let _0x59860b=!0x1;for(const _0x4b6d15 of _0x15fe82['model']['document']['differ']['getChanges']())if('insert'==_0x4b6d15['type'])for(const _0x356f6d of this['_suggestions']['values']()){if(_0x356f6d['isMultiRange']||!_0x356f6d['isInContent'])continue;const _0x448f9f='formatBlock'==_0x356f6d['type'],_0x22a2ed=this['_getAttributeKey'](_0x356f6d),_0x542009=_0x22a2ed&&this['_isBlockAttribute'](_0x22a2ed);if(!_0x448f9f&&!_0x542009)continue;const _0x43ffcc=_0x356f6d['getFirstRange']();if(_0x43ffcc['start']['parent']!=_0x43ffcc['end']['parent']&&!_0x43ffcc['end']['isAtEnd']){const _0x9f7273=_0x15fe82['model']['createPositionAt'](_0x43ffcc['start']['nodeAfter'],'end'),_0x2111d3=_0x15fe82['model']['createRange'](_0x43ffcc['start'],_0x9f7273);_0x22fb2e['updateMarker'](_0x356f6d['getFirstMarker'](),{'range':_0x2111d3}),_0x59860b=!0x0;}}return _0x59860b;}),_0x15fe82['model']['document']['registerPostFixer'](_0x57e03f=>this['_processAttributeChanges'](_0x57e03f)),_0x15fe82['model']['document']['registerPostFixer'](_0x119fb8=>!_0x119fb8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x119fb8)),_0x15fe82['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x15fe82['model']['document']['on']('change:data',(_0x554000,_0x1018d6)=>{if(!_0x1018d6['isLocal']||_0x1018d6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5d8742=_0x15fe82['model']['document']['differ']['getChanges']();if(0x0==_0x5d8742['length'])return;const _0x5e7e9d=[],_0x438915=_0x5d8742['filter'](_0x865a0e=>'attribute'==_0x865a0e['type']),_0x4faa00=_0x5d8742['filter'](_0x4c4088=>'insert'==_0x4c4088['type']&&'$text'!=_0x4c4088['name']);for(const _0xfd9791 of _0x438915)this['_isRegisteredAttribute'](_0xfd9791['attributeKey'])&&_0x5e7e9d['push']({'key':_0xfd9791['attributeKey'],'newValue':_0xfd9791['attributeNewValue'],'oldValue':_0xfd9791['attributeOldValue'],'range':qt(_0xfd9791['range'],_0x15fe82['model'])});for(const _0x1a6233 of _0x4faa00){if('rename'!=_0x1a6233['action']&&'refresh'!=_0x1a6233['action'])continue;const _0x364bcc=zt(_0x1a6233['position']['nodeAfter'],_0x15fe82['model']),_0x37be8c=_0x1a6233['before'];'rename'==_0x1a6233['action']&&_0x5e7e9d['push']({'key':u,'newValue':_0x1a6233['name'],'oldValue':_0x37be8c['name'],'range':_0x364bcc});for(const [_0x2ccf22,_0x974d63]of _0x37be8c['attributes']){if(!this['_isRegisteredAttribute'](_0x2ccf22))continue;const _0x491a83=_0x1a6233['attributes']['get'](_0x2ccf22);_0x974d63!==_0x491a83&&_0x5e7e9d['push']({'key':_0x2ccf22,'newValue':_0x491a83,'oldValue':_0x974d63,'range':_0x364bcc});}for(const [_0x18577a,_0x5d1a99]of _0x1a6233['attributes'])this['_isRegisteredAttribute'](_0x18577a)&&(_0x37be8c['attributes']['has'](_0x18577a)||_0x5e7e9d['push']({'key':_0x18577a,'newValue':_0x5d1a99,'oldValue':null,'range':_0x364bcc}));}0x0!=_0x5e7e9d['length']&&_0x15fe82['model']['enqueueChange'](_0x1018d6,_0x134ad3=>{const _0x339667=_0x261f54();for(const {range:_0x1e42f4,key:_0x51d4ec,oldValue:_0x15e156,newValue:_0x5ddd91}of _0x5e7e9d)this['markAttributeChange'](_0x1e42f4,_0x51d4ec,_0x15e156,_0x5ddd91,{'groupId':_0x339667});this['_reduceExistingSuggestions'](_0x134ad3,_0x5e7e9d);});},{'priority':'lowest'}),_0x15fe82['model']['markers']['on']('update:suggestion',(_0x4224b7,_0x493cf1,_0x4586f8)=>{if(null==_0x4586f8){const {id:_0x4a6547}=this['_splitMarkerName'](_0x493cf1['name']),_0x1a2b08=this['_suggestions']['get'](_0x4a6547);_0x1a2b08&&_0x1a2b08['addMarkerName'](_0x493cf1['name']);}}),_0x15fe82['model']['document']['on']('change:data',()=>{const _0xb83643=Array['from'](_0x15fe82['model']['document']['differ']['getChangedMarkers']())['filter'](_0x367be1=>'suggestion'===this['_splitMarkerName'](_0x367be1['name'])['group']);if(0x0===_0xb83643['length'])return;_0xb83643['sort']((_0xd5374b,_0x49f7e7)=>{const _0x4fc48=_0xd5374b['data']['oldRange'],_0x2346d0=_0x49f7e7['data']['oldRange'];return null===_0x4fc48&&null===_0x2346d0?0x0:null===_0x4fc48&&null!==_0x2346d0?-0x1:null!==_0x4fc48&&null===_0x2346d0?0x1:_0x4fc48['start']['isBefore'](_0x2346d0['start'])?-0x1:0x1;});const _0x3d3b5f=new Set(),_0x7de7ef=new Set();for(const {name:_0x28642a,data:_0x35a769}of _0xb83643){const {id:_0x4dc188}=this['_splitMarkerName'](_0x28642a);if(null===_0x35a769['oldRange']){const _0x3bb690=this['_handleNewSuggestionMarker'](_0x28642a);_0x7de7ef['add'](_0x3bb690);}else{const _0x354492=this['_suggestions']['get'](_0x4dc188);null!==_0x35a769['newRange']||_0x354492['isInContent']?(_0x3d3b5f['add'](_0x354492['head']),_0x7de7ef['add'](_0x354492)):this['_removeSuggestion'](_0x354492);}}_0x7de7ef['size']>0x0&&this['_refreshSuggestionsChain'](_0x7de7ef);for(const _0x3f8c76 of _0x3d3b5f)this['fire']('suggestionChanged',_0x3f8c76);}),_0x15fe82['model']['on']('applyOperation',(_0x296fe9,_0x1aca2e)=>{const _0x2d55eb=_0x1aca2e[0x0];if(!this['_suggestions']['size'])return;if(!_0x2d55eb['isDocumentOperation'])return;if(_0x2d55eb['batch']['isUndo']||!_0x2d55eb['batch']['isLocal'])return;let _0x108776,_0x3fcba0;switch(_0x2d55eb['type']){case'insert':_0x108776=_0x15fe82['model']['createPositionAt'](_0x2d55eb['position']),_0x3fcba0=_0x108776['getShiftedBy'](_0x2d55eb['howMany']);break;case'split':_0x108776=_0x15fe82['model']['createPositionAt'](_0x2d55eb['splitPosition']),_0x3fcba0=_0x15fe82['model']['createPositionAt'](_0x2d55eb['moveTargetPosition']);break;case'move':_0x108776=_0x15fe82['model']['createPositionAt'](_0x2d55eb['targetPosition']),_0x3fcba0=_0x108776['getShiftedBy'](_0x2d55eb['howMany']);break;default:return;}const _0x3f7858=_0x15fe82['model']['createRange'](_0x108776,_0x3fcba0);_0x15fe82['model']['change'](()=>{for(const {suggestion:_0x30a748,meta:_0x5d6f66}of this['_findSuggestions'](_0x3f7858)){if(_0x30a748['isMultiRange'])continue;if('formatInline'==_0x30a748['type'])continue;const _0x204ac4=this['_getAttributeKey'](_0x30a748);if(_0x204ac4&&this['_isBlockAttribute'](_0x204ac4)&&'split'!=_0x2d55eb['type'])continue;const _0x517f94=_0x30a748['data']&&_0x30a748['data']['multipleBlocks'];('formatBlock'!=_0x30a748['type']||'split'==_0x2d55eb['type']&&!_0x517f94)&&(_0x5d6f66['containsRangeInObject']||'insertion'==_0x30a748['type']&&_0x5d6f66['isOwn']||_0x30a748['getFirstRange']()['containsRange'](_0x3f7858)&&this['_breakSuggestionMarker'](_0x30a748,_0x108776,_0x3fcba0));}});},{'priority':'lowest'}),_0x15fe82['model']['on']('deleteContent',(_0x4561fd,_0xf45388)=>{const _0x205e36=_0xf45388[0x0],_0x49440e=_0xf45388[0x1];if(_0x49440e&&_0x49440e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x205e36['isCollapsed'])return;const _0x3c7a70=_0x15fe82['model']['schema'],{start:_0x2a9a18,end:_0xa36449}=_0x205e36['getFirstRange'](),_0x246f3f=_0x2a9a18['nodeAfter']&&_0x3c7a70['isLimit'](_0x2a9a18['nodeAfter'])?null:_0x3c7a70['getNearestSelectionRange'](_0x2a9a18,'forward'),_0x2db5ab=_0xa36449['nodeBefore']&&_0x3c7a70['isLimit'](_0xa36449['nodeBefore'])?null:_0x3c7a70['getNearestSelectionRange'](_0xa36449,'backward'),_0x576d48=_0x15fe82['model']['createRange'](_0x246f3f?_0x246f3f['start']:_0x2a9a18,_0x2db5ab?_0x2db5ab['end']:_0xa36449);_0x15fe82['model']['change'](_0x55af62=>{this['markDeletion'](_0x576d48);const _0x5cdf82=_0x15fe82['model']['schema']['getNearestSelectionRange'](_0x576d48['start']);_0x205e36['is']('documentSelection')?_0x55af62['setSelection'](_0x5cdf82):_0x205e36['setTo'](_0x5cdf82);}),_0x4561fd['stop']();},{'priority':_0xbe5b8f['normal']+0xa}),_0x15fe82['model']['on']('insertContent',(_0x162f10,_0x30d0c4)=>{const _0x507285=_0x30d0c4[_0x30d0c4['length']-0x1];_0x507285&&_0x507285['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x15fe82['model']['change'](()=>{let _0x585753=_0x15fe82['model']['insertContent'](_0x30d0c4[0x0],_0x30d0c4[0x1],_0x30d0c4[0x2],{'forceDefaultExecution':!0x0});if(!_0x585753)return;_0x162f10['return']=_0x585753['clone']();const _0x536184=_0x585753['end']['nodeBefore'],_0x12d923=_0x15fe82['model']['schema'];_0x536184&&_0x12d923['isBlock'](_0x536184)&&!_0x12d923['isObject'](_0x536184)&&(_0x585753=_0x15fe82['model']['createRange'](_0x585753['start'],_0x15fe82['model']['createPositionAt'](_0x536184,'end'))),this['markInsertion'](_0x585753);}),_0x162f10['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x50a324=new O(_0x15fe82,this['_suggestions']);_0x15fe82['commands']['add']('acceptSuggestion',_0x50a324),this['enableCommand']('acceptSuggestion');const _0x29ef41=new R(_0x15fe82,this['_suggestions']);_0x15fe82['commands']['add']('discardSuggestion',_0x29ef41),this['enableCommand']('discardSuggestion'),_0x15fe82['commands']['add']('acceptAllSuggestions',new x(_0x15fe82,_0x50a324,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x15fe82['commands']['add']('discardAllSuggestions',new x(_0x15fe82,_0x29ef41,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x15fe82['commands']['add']('acceptSelectedSuggestions',new E(_0x15fe82,_0x50a324,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x15fe82['commands']['add']('discardSelectedSuggestions',new E(_0x15fe82,_0x29ef41,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5335e5=_0x15fe82['plugins']['get']('CommentsRepository');this['listenTo'](_0x5335e5,'addComment',(_0xb1651d,{threadId:_0x246a24})=>{const _0x25a524=this['_suggestions']['get'](_0x246a24);_0x25a524&&_0x25a524['commentThread']&&0x1===_0x25a524['commentThread']['length']&&this['_updateSuggestionData'](_0x246a24,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5335e5,'removeComment',(_0x175a3e,{threadId:_0x309db7})=>{const _0x22bf3b=this['_suggestions']['get'](_0x309db7);_0x22bf3b&&_0x22bf3b['commentThread']&&!_0x22bf3b['commentThread']['length']&&this['_updateSuggestionData'](_0x309db7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x6f6cc9){const _0x5680aa=_0x3f5d26([0x78,0x68,0x59,0x55,0x33,0x41,0x31,0x74,0x43,0x6b,0x69,0x4e,0x50,0x38,0x44,0x73,0x4b,0x71,0x61,0x6e,0x53,0x4f,0x5a,0x79,0x46,0x6d,0x30,0x6f,0x70,0x32,0x54,0x45,0x39,0x76,0x4a,0x72,0x63,0x35,0x37,0x66,0x64,0x67,0x62,0x49,0x6a,0x4d,0x7a,0x42,0x58,0x52,0x36,0x57,0x51,0x65,0x48,0x77,0x34,0x6c,0x56,0x4c,0x75,0x47]),_0x21f9ed=0x18aa55d9,_0x4b0448=0x18ad3639^_0x21f9ed,_0xc08375=window[_0x3f5d26([0x44,0x61,0x74,0x65])][_0x3f5d26([0x6e,0x6f,0x77])](),_0x5d7d61=_0x6f6cc9[_0x3f5d26([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17ffa3=new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x770910=>{_0x5d7d61[_0x3f5d26([0x6f,0x6e,0x63,0x65])](_0x3f5d26([0x72,0x65,0x61,0x64,0x79]),_0x770910);}),_0x2b9e5f={[_0x3f5d26([0x6b,0x74,0x79])]:_0x3f5d26([0x45,0x43]),[_0x3f5d26([0x75,0x73,0x65])]:_0x3f5d26([0x73,0x69,0x67]),[_0x3f5d26([0x63,0x72,0x76])]:_0x3f5d26([0x50,0x2d,0x32,0x35,0x36]),[_0x3f5d26([0x78])]:_0x3f5d26([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]),[_0x3f5d26([0x79])]:_0x3f5d26([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]),[_0x3f5d26([0x61,0x6c,0x67])]:_0x3f5d26([0x45,0x53,0x32,0x35,0x36])},_0x25a00f=_0x5d7d61[_0x3f5d26([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f5d26([0x67,0x65,0x74])](_0x3f5d26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x21b094(){let _0x3b8ab7,_0x5c0983=null,_0x40c8da=null;try{if(_0x25a00f==_0x3f5d26([0x47,0x50,0x4c]))return _0x3f5d26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b8ab7=_0x4b4e29(),!_0x3b8ab7)return _0x3f5d26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b8ab7[_0x3f5d26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40c8da=_0x190b9e(_0x3b8ab7[_0x3f5d26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b8ab7[_0x3f5d26([0x6a,0x74,0x69])])),await _0x4fe20e()?_0x281f5a()?_0x4d6b8e()?_0x3f5d26([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4248e1()?(_0x3b8ab7[_0x3f5d26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f5d26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c0983=_0x5c64bf(_0x3f5d26([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b8ab7[_0x3f5d26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f5d26([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c0983=_0x5c64bf(_0x3f5d26([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59f58c()):_0x3f5d26([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f5d26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f5d26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11667a){return _0x3f5d26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d6b8e(){const _0x5b8b44=[_0x3f5d26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f5d26([0x74,0x72,0x69,0x61,0x6c])][_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8ab7[_0x3f5d26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc08375/0x3e8:0xe10*_0x4b0448;return _0x3b8ab7[_0x3f5d26([0x65,0x78,0x70])]<_0x5b8b44;}function _0x281f5a(){const _0x109e77=_0x3b8ab7[_0x3f5d26([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x109e77)return!0x1;if(_0x109e77[_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5d26([0x2a])))return!0x0;if(_0x109e77[_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5d26([0x54,0x43])))return!0x0;if(_0x109e77[_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5d26([0x52,0x54,0x43]))){if(_0x4aee96())return!0x0;if(_0x16fee6()||_0x33a8ee())return!0x0;}return!0x1;}function _0x4248e1(){const _0xb0187b=_0x3b8ab7[_0x3f5d26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb0187b||0x0==_0xb0187b[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43c5dd}=new URL(window[_0x3f5d26([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb0187b[_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c5dd))return!0x0;const _0x2bfe82=_0x43c5dd[_0x3f5d26([0x73,0x70,0x6c,0x69,0x74])](_0x3f5d26([0x2e]));return _0xb0187b[_0x3f5d26([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f5c96=>_0x4f5c96[_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5d26([0x2a])))[_0x3f5d26([0x6d,0x61,0x70])](_0x5efb5e=>_0x5efb5e[_0x3f5d26([0x73,0x70,0x6c,0x69,0x74])](_0x3f5d26([0x2e])))[_0x3f5d26([0x73,0x6f,0x6d,0x65])](_0x5b5875=>_0x2bfe82[_0x3f5d26([0x65,0x76,0x65,0x72,0x79])]((_0x21050b,_0x3b5668)=>_0x5b5875[_0x3b5668]===_0x21050b||_0x5b5875[_0x3b5668]===_0x3f5d26([0x2a])));}function _0x59f58c(){return _0x5c0983&&_0x40c8da?new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e3d37,_0x10bca2)=>{_0x5c0983[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x4e3d37,_0x10bca2),_0x40c8da[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x88705e=>{_0x88705e!=_0x3f5d26([0x56,0x61,0x6c,0x69,0x64])&&_0x4e3d37(_0x88705e);},_0x10bca2);}):_0x5c0983||_0x40c8da||_0x3f5d26([0x56,0x61,0x6c,0x69,0x64]);}}function _0x190b9e(_0x17758d,_0xff7068){return new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16c0a0=>{if(_0x1adebd())return _0x16c0a0(_0x3f5d26([0x56,0x61,0x6c,0x69,0x64]));_0x1d6095(),_0x5d7d61[_0x3f5d26([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f5d26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3db8a3=!0x1;const _0x4659bf=_0x261f54();function _0x48298a(_0xcbc765){return!!_0xcbc765&&(typeof _0xcbc765===_0x3f5d26([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcbc765===_0x3f5d26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcbc765[_0x3f5d26([0x74,0x68,0x65,0x6e])]===_0x3f5d26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcbc765[_0x3f5d26([0x63,0x61,0x74,0x63,0x68])]===_0x3f5d26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a418f(_0x3b894a){_0x43cb39(_0x3b894a)[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x30ad72=>{if(!_0x30ad72||_0x30ad72[_0x3f5d26([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f5d26([0x6f,0x6b]))return _0x3f5d26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x515e57(_0x34ec7b(_0x4659bf+_0xff7068))!=_0x30ad72[_0x3f5d26([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f5d26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f5d26([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x48de77=>(_0x17e364(),_0x48de77),()=>{const _0x4914a2=_0x392579();return null==_0x4914a2?(_0x17e364(),_0x3f5d26([0x56,0x61,0x6c,0x69,0x64])):_0x3f5d26(_0xc08375-_0x4914a2>(0x3ca6d1d9^_0x21f9ed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x16c0a0)[_0x3f5d26([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16c0a0(_0x3f5d26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e900c=0x189cbb59^_0x21f9ed;function _0x17e364(){const _0x3ce8b2=_0x3f5d26([0x6c,0x6c,0x63,0x74,0x2d])+_0x515e57(_0x34ec7b(_0x17758d)),_0xa4263a=_0x36441a(_0x515e57(window[_0x3f5d26([0x4d,0x61,0x74,0x68])][_0x3f5d26([0x63,0x65,0x69,0x6c])](_0xc08375/_0x1e900c)));window[_0x3f5d26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f5d26([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ce8b2,_0xa4263a);}function _0x392579(){const _0x10686d=_0x3f5d26([0x6c,0x6c,0x63,0x74,0x2d])+_0x515e57(_0x34ec7b(_0x17758d)),_0x575fc7=window[_0x3f5d26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f5d26([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10686d);return _0x575fc7?window[_0x3f5d26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36441a(_0x575fc7),0x10)*_0x1e900c:null;}function _0x43cb39(_0x124198){return new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7b8935,_0x53e89a)=>{_0x124198[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x7b8935,_0x53e89a),window[_0x3f5d26([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53e89a,0x18ab8119^_0x21f9ed);});}}_0x5d7d61[_0x3f5d26([0x6f,0x6e])](_0x3f5d26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1538f0,_0x17f5c4)=>{if(_0x17f5c4[0x0]!=_0x17758d)return _0x16c0a0(_0x3f5d26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17f5c4[0x1]={..._0x17f5c4[0x1],[_0x3f5d26([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4659bf};},{[_0x3f5d26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f5d26([0x68,0x69,0x67,0x68])}),_0x5d7d61[_0x3f5d26([0x6f,0x6e])](_0x3f5d26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4291c7=>{_0x48298a(_0x4291c7[_0x3f5d26([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3db8a3=!0x0,_0x1a418f(_0x4291c7[_0x3f5d26([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f5d26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f5d26([0x6c,0x6f,0x77])}),_0x17ffa3[_0x3f5d26([0x74,0x68,0x65,0x6e])](()=>{_0x3db8a3||_0x16c0a0(_0x3f5d26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1adebd(){return _0x5d7d61[_0x3f5d26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f5d26([0x76,0x69,0x65,0x77])][_0x3f5d26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f5d26([0x61,0x75,0x74,0x6f]);}function _0x1d6095(){_0x5d7d61[_0x3f5d26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f5d26([0x76,0x69,0x65,0x77])][_0x3f5d26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f5d26([0x61,0x75,0x74,0x6f]);}}function _0x5c64bf(_0x592eb8){const _0x71e98=[new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19df40=>setTimeout(_0x19df40,0x18a36b15^_0x21f9ed)),_0x17ffa3[_0x3f5d26([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48ada8=>{let _0x4a5852=0x0;_0x5d7d61[_0x3f5d26([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5d26([0x6f,0x6e])](_0x3f5d26([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4042d5,_0x515e3a)=>{_0x515e3a[0x0][_0x3f5d26([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a5852++,_0x4a5852==(0x18aa5421^_0x21f9ed)&&(_0x48ada8(),_0x4042d5[_0x3f5d26([0x6f,0x66,0x66])]());});}))];return window[_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f5d26([0x72,0x61,0x63,0x65])](_0x71e98)[_0x3f5d26([0x74,0x68,0x65,0x6e])](()=>_0x592eb8);}async function _0x33a2da(){await _0x17ffa3,_0x5d7d61[_0x3f5d26([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5d26([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3232ed,_0x5d7d61[_0x3f5d26([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5d26([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3232ed,_0x5d7d61[_0x3f5d26([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f5d26([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4aee96(){return _0x1f3698(_0x3f5d26([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x54f907(_0x3f5d26([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3f5d26([0x73,0x74,0x61,0x74,0x65])]==_0x3f5d26([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x16fee6(){return _0x1f3698(_0x3f5d26([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 _0x33a8ee(){return _0x1f3698(_0x3f5d26([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa81994(_0x1e2a3d){const _0x54d131=_0x44f99a();_0x5d7d61[_0x54d131]=_0x3f5d26([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e2a3d,_0x1e2a3d!=_0x3f5d26([0x56,0x61,0x6c,0x69,0x64])&&_0x33a2da();}function _0x44f99a(){const _0x2eb94c=window[_0x3f5d26([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f5d26([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f5d26([0x6e,0x6f,0x77])]())[_0x3f5d26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f5d26([0x2e]),'');let _0x245e94=_0x3f5d26([0x78]);for(let _0x16dc65=0x0;_0x16dc65<_0x2eb94c[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16dc65+=0x2){let _0x32a04b=window[_0x3f5d26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2eb94c[_0x3f5d26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16dc65,_0x16dc65+0x2));_0x32a04b>=_0x5680aa[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32a04b-=_0x5680aa[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x245e94+=_0x5680aa[_0x32a04b];}return _0x245e94;}function _0x4b4e29(){const _0xa19cea=_0x25a00f[_0x3f5d26([0x73,0x70,0x6c,0x69,0x74])](_0x3f5d26([0x2e]));if(0x3!=_0xa19cea[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf9c805(_0xa19cea[0x1]);function _0xf9c805(_0x39c695){const _0x5dbd49=_0x516cf2(_0x39c695);return _0x5dbd49&&_0x9781f6()?_0x5dbd49:null;function _0x9781f6(){const _0x509be4=_0x5dbd49[_0x3f5d26([0x6a,0x74,0x69])],_0x37701b=window[_0x3f5d26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x509be4[_0x3f5d26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x509be4[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4fa100={..._0x5dbd49,[_0x3f5d26([0x6a,0x74,0x69])]:_0x509be4[_0x3f5d26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x509be4[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4fa100[_0x3f5d26([0x76,0x63])],_0x34ec7b(_0x4fa100)==_0x37701b;}}}async function _0x4fe20e(){let _0x192457=!0x0;try{const _0x242a62=_0x25a00f[_0x3f5d26([0x73,0x70,0x6c,0x69,0x74])](_0x3f5d26([0x2e])),[_0x569036,_0x3a1ad6,_0x5a8d0f]=_0x242a62;return _0x19ab92(_0x569036),await _0x2d94be(_0x569036,_0x3a1ad6,_0x5a8d0f),_0x192457;}catch(_0x5ef962){return!0x1;}function _0x19ab92(_0x38be1a){const _0x176b7=_0x516cf2(_0x38be1a);_0x176b7&&_0x176b7[_0x3f5d26([0x61,0x6c,0x67])]==_0x3f5d26([0x45,0x53,0x32,0x35,0x36])||(_0x192457=!0x1);}async function _0x2d94be(_0x5b4752,_0x42a658,_0x4db3a1){const _0x2b1e42=window[_0x3f5d26([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f5d26([0x66,0x72,0x6f,0x6d])](_0x326202(_0x4db3a1),_0x5f0dd4=>_0x5f0dd4[_0x3f5d26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x334f4f=new window[(_0x3f5d26([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f5d26([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b4752+_0x3f5d26([0x2e])+_0x42a658),_0x1c552a=window[_0x3f5d26([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f5d26([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c552a)return;const _0x1d8624=await _0x1c552a[_0x3f5d26([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f5d26([0x6a,0x77,0x6b]),_0x2b9e5f,{[_0x3f5d26([0x6e,0x61,0x6d,0x65])]:_0x3f5d26([0x45,0x43,0x44,0x53,0x41]),[_0x3f5d26([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f5d26([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f5d26([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c552a[_0x3f5d26([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f5d26([0x6e,0x61,0x6d,0x65])]:_0x3f5d26([0x45,0x43,0x44,0x53,0x41]),[_0x3f5d26([0x68,0x61,0x73,0x68])]:{[_0x3f5d26([0x6e,0x61,0x6d,0x65])]:_0x3f5d26([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d8624,_0x2b1e42,_0x334f4f)||(_0x192457=!0x1);}}function _0x516cf2(_0x2e04d4){return _0x2e04d4[_0x3f5d26([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f5d26([0x65,0x79]))?JSON[_0x3f5d26([0x70,0x61,0x72,0x73,0x65])](_0x326202(_0x2e04d4)):null;}function _0x326202(_0x2ba9aa){return window[_0x3f5d26([0x61,0x74,0x6f,0x62])](_0x2ba9aa[_0x3f5d26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f5d26([0x2b]))[_0x3f5d26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f5d26([0x2f])));}function _0x34ec7b(_0x492846){let _0x2dfee9=0x1505;function _0x493c8d(_0x2defce){for(let _0x77bd23=0x0;_0x77bd23<_0x2defce[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x77bd23++){const _0x1d0a94=_0x2defce[_0x3f5d26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x77bd23);_0x2dfee9=(_0x2dfee9<<0x5)+_0x2dfee9+_0x1d0a94,_0x2dfee9&=_0x2dfee9;}}function _0x1c67c9(_0x28db50){Array[_0x3f5d26([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28db50)?_0x28db50[_0x3f5d26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c67c9):_0x28db50&&typeof _0x28db50==_0x3f5d26([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f5d26([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28db50)[_0x3f5d26([0x73,0x6f,0x72,0x74])]()[_0x3f5d26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7ed53,_0x55a58b])=>{_0x493c8d(_0x7ed53),_0x1c67c9(_0x55a58b);}):_0x493c8d(window[_0x3f5d26([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28db50));}return _0x1c67c9(_0x492846),_0x2dfee9>>>0x0;}function _0x515e57(_0x116306){return _0x116306[_0x3f5d26([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f5d26([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f5d26([0x30]));}function _0x36441a(_0x5e18a1){return _0x5e18a1[_0x3f5d26([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f5d26([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f5d26([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f3698(_0xcd744){return _0x5d7d61[_0x3f5d26([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3f5d26([0x68,0x61,0x73])](_0xcd744);}function _0x54f907(_0x4973bd){return _0x5d7d61[_0x3f5d26([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3f5d26([0x67,0x65,0x74])](_0x4973bd);}function _0x3232ed(){}function _0x3f5d26(_0x4651c1){return _0x4651c1['map'](_0x52e861=>String['fromCharCode'](_0x52e861))['join']('');}_0xa81994(await _0x21b094());}(this);}set['adapter'](_0x5d2b0d){if(this['_adapter'])throw new _0x1ed8a5('track-changes-adapter-already-set',this);this['_adapter']=_0x5d2b0d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5016b1=!0x1,toJSON:_0x341a7e=!0x1}={}){const _0x4a80f8=[];for(const _0x3660d8 of this['_suggestions']['values']())_0x5016b1&&!_0x3660d8['isInContent']||_0x4a80f8['push'](_0x3660d8);return _0x341a7e?_0x4a80f8['map'](_0x545b4b=>_0x545b4b['toJSON']()):_0x4a80f8;}['getSuggestion'](_0x5d04c3){const _0x5200f4=this['_suggestions']['get'](_0x5d04c3);if(!_0x5200f4)throw new _0x1ed8a5('track-changes-suggestion-not-found',this);return _0x5200f4;}['hasSuggestion'](_0x9ba3ac){return this['_suggestions']['has'](_0x9ba3ac);}['addSuggestionData'](_0x121585){const {authorId:_0x473911,id:_0x155602,attributes:_0x2cb13e}=_0x121585,[_0x41736a,_0x4aa38a]=_0x121585['type']['split'](':'),_0x570386=this['_suggestions']['get'](_0x155602)||this['_createSuggestion'](_0x41736a,_0x4aa38a,_0x155602,_0x473911,_0x2cb13e);if(this['_addThreadToSuggestion'](_0x570386),this['_checkSuggestionCorrectness'](_0x570386,_0x41736a,_0x4aa38a||null,_0x473911),_0x570386['createdAt']=_0x121585['createdAt'],_0x570386['_isDataLoaded']=!0x0,_0x2cb13e&&_0x2cb13e['@external']){const _0x44adbc=_0x2cb13e['@external'],_0x5c1301=this['_getExternalAuthor'](_0x44adbc['authorName']);_0x570386['authoredAt']=_0x44adbc['createdAt'],_0x570386['author']=_0x5c1301,_0x570386['isExternal']=!0x0;}else _0x570386['authoredAt']=_0x121585['createdAt'];switch(_0x121585['data']&&(_0x570386['data']=_0x121585['data']),_0x121585['attributes']&&(_0x570386['attributes']=_0x121585['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x570386['_saved']=!0x0),this['_suggestionState']['get'](_0x570386)){case'notReady':this['_suggestionState']['set'](_0x570386,'dataReady');break;case'markerReady':_0x570386['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x570386])),this['_refreshSuggestionsChain'](new Set([_0x570386])),this['_suggestionState']['set'](_0x570386,'ready'),this['fire']('suggestionLoaded',_0x570386)):this['_suggestionState']['set'](_0x570386,'removed');}return _0x570386;}['acceptSuggestion'](_0x441cd3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb1a249 of _0x441cd3['getAllAdjacentSuggestions']())_0xb1a249['accept']();});});}['discardSuggestion'](_0x33feb1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55fd05 of _0x33feb1['getAllAdjacentSuggestions']())_0x55fd05['discard']();});});}['enableCommand'](_0x465fde,_0x2589c3){const _0x479106=this['editor']['commands']['get'](_0x465fde);if(!_0x479106)throw new _0x1ed8a5('track-changes-command-not-found',this,{'commandName':_0x465fde});if(this['_enabledCommands']['has'](_0x479106))throw new _0x1ed8a5('track-changes-enable-command-twice',this,{'commandName':_0x465fde});this['_enabledCommands']['add'](_0x479106),_0x2589c3&&_0x479106['on']('execute',(_0x12c48c,_0x199fd4)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x199fd4['length']>0x0&&_0x199fd4[_0x199fd4['length']-0x1]&&_0x199fd4[_0x199fd4['length']-0x1]['forceDefaultExecution']?_0x199fd4['pop']():(_0x12c48c['return']=_0x2589c3((..._0x2d7e9a)=>_0x479106['execute'](..._0x2d7e9a,{'forceDefaultExecution':!0x0}),..._0x199fd4),_0x12c48c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x47152c){let _0x7f0291,_0x258202;const _0x46ea75=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x7f0291=_0x47152c();}catch(_0x25cb21){_0x258202=_0x25cb21;}return _0x46ea75||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x258202&&_0x1ed8a5['rethrowUnexpectedError'](_0x258202,this),_0x7f0291;}['markInsertion'](_0x363ffb,_0x146bb1=null,_0x1814e2={}){if(_0x363ffb['isCollapsed'])return null;const _0x34cb62=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x56a912,meta:_0x4aa124}of this['_findSuggestions'](_0x363ffb,'insertion'))if(_0x4aa124['isOwn']){if(!_0x4aa124['isNextTo']){if(_0x4aa124['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x56a912,_0x1814e2))continue;return _0x56a912;}if(Xt(_0x56a912,_0x1814e2))return _0x56a912;this['_breakSuggestionMarker'](_0x56a912,_0x363ffb['start'],_0x363ffb['end']);break;}if(_0x146bb1==_0x56a912['subType']&&Xt(_0x56a912,_0x1814e2)){const _0x349c82=_0x56a912['getFirstRange']();return _0x349c82['start']['isEqual'](_0x363ffb['end'])?this['_setSuggestionRange'](_0x56a912,this['_model']['createRange'](_0x363ffb['start'],_0x349c82['end'])):this['_setSuggestionRange'](_0x56a912,this['_model']['createRange'](_0x349c82['start'],_0x363ffb['end'])),_0x56a912;}}const _0x2fca6c=_0x261f54(),_0x1a423f=_0x34cb62['id'],_0x33a2ae=_0x146bb1?'insertion:'+_0x146bb1:'insertion',_0xe7c181=this['_setSuggestionData']({'id':_0x2fca6c,'type':_0x33a2ae,'createdAt':new Date(),'authorId':_0x1a423f,'attributes':_0x1814e2});return this['_addSuggestionMarker'](_0x33a2ae,_0x2fca6c,_0x1a423f,_0x363ffb),_0xe7c181;}['markMultiRangeInsertion'](_0x5be7fb,_0xfaacb6='multi',_0x36750e={}){const _0x519186=this['editor']['plugins']['get']('Users')['me'],_0xe67d69=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xfaacb6,'join');for(const _0x284d03 of this['getSuggestions']())if(_0x284d03['author']['id']==_0x519186['id']&&'insertion'==_0x284d03['type']&&_0x284d03['subType']==_0xfaacb6&&Xt(_0x284d03,_0x36750e)&&(_0xe67d69(_0x284d03['getRanges'](),_0x5be7fb)||_0xe67d69(_0x5be7fb,_0x284d03['getRanges']()))){for(const _0x270884 of _0x5be7fb)_0x284d03['addRange'](_0x270884);return _0x284d03;}for(const {suggestion:_0x35830b,meta:_0x47d5d2}of this['_findSuggestions'](_0x5be7fb,'insertion')){if(!_0x47d5d2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x47d5d2['containsRangeInObject'])continue;if(!Xt(_0x35830b,_0x36750e))continue;let _0x2e5ba0=!0x0;for(const _0x3d1045 of _0x35830b['getRanges']())for(const _0x10a9a7 of _0x5be7fb)if(!_0x3d1045['containsRange'](_0x10a9a7)){_0x2e5ba0=!0x1;break;}if(_0x2e5ba0)return _0x35830b;}const _0x5916c3=_0x261f54(),_0x109150=_0x519186['id'],_0x5e7c7d='insertion:'+_0xfaacb6,_0x915d8d=this['_setSuggestionData']({'id':_0x5916c3,'type':_0x5e7c7d,'createdAt':new Date(),'authorId':_0x109150,'attributes':_0x36750e});for(const _0x123455 of _0x5be7fb)this['_addSuggestionMarker'](_0x5e7c7d,_0x5916c3,_0x109150,_0x123455,o['getMultiRangeId']());return _0x915d8d;}['markInlineFormat'](_0x1ef56c,_0x22f425,_0x185417=null,_0x5b18f9={}){if(_0x185417=_0x185417||Kt(_0x22f425),_0x1ef56c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4f2b39=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x185417,'accept');return this['forceDefaultExecution'](()=>_0x4f2b39([_0x1ef56c],_0x22f425,_0x5b18f9)),null;}const _0x443e52=this['editor']['plugins']['get']('Users')['me'],_0x2d5b32=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x483e9d,meta:_0x5a71b3}of this['_findSuggestions'](_0x1ef56c,'insertion'))_0x5a71b3['isOwn']&&!_0x5a71b3['isInsideObject']&&_0x2d5b32['push'](..._0x483e9d['getRanges']());}const _0x34c781=function(_0x531bd1,_0x262c10){const _0x43472a=[];for(const _0xd9456 of _0x262c10){const _0x37648e=_0x531bd1['getIntersection'](_0xd9456);_0x37648e&&_0x43472a['push'](_0x37648e);}return _0x43472a;}(_0x1ef56c,_0x2d5b32),_0xcd1bf=function(_0xe3cbe7,_0x443c02){const _0x2690a8=[_0xe3cbe7];for(const _0x45947c of _0x443c02){let _0x19719d=0x0;for(;_0x19719d<_0x2690a8['length'];){const _0x537ade=_0x2690a8[_0x19719d]['getDifference'](_0x45947c);_0x2690a8['splice'](_0x19719d,0x1,..._0x537ade),_0x19719d+=_0x537ade['length'];}}return _0x2690a8;}(_0x1ef56c,_0x2d5b32);_0x34c781['length']&&this['_model']['change'](()=>{for(const _0x52db24 of _0x34c781){const _0x3aecaf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x185417,'accept');this['forceDefaultExecution'](()=>_0x3aecaf([_0x52db24],_0x22f425,_0x5b18f9));}});for(const _0x4c5f67 of _0xcd1bf){let _0x261434=null,_0x27ef9a=_0x4c5f67['start'],_0x31e444=_0x4c5f67['end'];for(const {suggestion:_0x387bc9,meta:_0xfb3824}of this['_findSuggestions'](_0x4c5f67,'formatInline')){if(!_0xfb3824['isOwn'])continue;if(_0x387bc9['subType']!=_0x185417)continue;if(!Xt(_0x387bc9,_0x5b18f9))continue;const _0x3a33b5=_0x387bc9['getFirstRange']();if(_0x3a33b5['containsRange'](_0x4c5f67,!0x0))return null;_0x27ef9a=_0x27ef9a['isBefore'](_0x3a33b5['start'])?_0x27ef9a:_0x3a33b5['start'],_0x31e444=_0x31e444['isAfter'](_0x3a33b5['end'])?_0x31e444:_0x3a33b5['end'],_0x261434?_0x3a33b5['start']['isBefore'](_0x261434['getFirstRange']()['start'])?(_0x261434['removeMarkers'](),_0x261434=_0x387bc9):_0x387bc9['removeMarkers']():_0x261434=_0x387bc9;}const _0x5c7914=this['_model']['createRange'](_0x27ef9a,_0x31e444);if(_0x261434)this['_setSuggestionRange'](_0x261434,_0x5c7914);else{const _0x1cc804=_0x261f54(),_0x96078c=_0x443e52['id'];this['_setSuggestionData']({'id':_0x1cc804,'type':'formatInline:'+_0x185417,'data':_0x22f425,'createdAt':new Date(),'authorId':_0x96078c,'attributes':_0x5b18f9}),this['_addSuggestionMarker']('formatInline:'+_0x185417,_0x1cc804,_0x96078c,_0x5c7914);}}return null;}['markBlockFormat'](_0x3ec7c4,_0x2ccde8,_0x282878=[],_0x34d19f=null,_0x5ed8e8={}){_0x2ccde8['formatGroupId']||(_0x2ccde8['formatGroupId']=_0x2ccde8['commandName']),_0x2ccde8['multipleBlocks']=_0x3ec7c4['is']('range'),_0x34d19f=_0x34d19f||Kt(_0x2ccde8);const _0x431a25=_0x282878['map'](_0x4c6779=>zt(_0x4c6779,this['_model'])),_0x392804=_0x3ec7c4['is']('range')?_0x3ec7c4:zt(_0x3ec7c4,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5f2f88=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x34d19f,'accept');return this['forceDefaultExecution'](()=>_0x5f2f88([_0x392804],_0x2ccde8,_0x5ed8e8)),null;}_0x431a25['push'](_0x392804);let _0x10eb46=!0x0;for(const _0x34f0d4 of _0x431a25)if(!this['_rangeIsInLocalUserInsertion'](_0x34f0d4)){_0x10eb46=!0x1;break;}if(_0x10eb46&&'always'!==this['_trackFormatChanges']){const _0x1fb4be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x34d19f,'accept');return this['forceDefaultExecution'](()=>_0x1fb4be([_0x392804],_0x2ccde8,_0x5ed8e8)),null;}let _0x4e4508=null,_0x27aa1f=_0x392804['start'],_0x4c8044=_0x392804['end'];for(const {suggestion:_0x46f43f,meta:_0x4aeb0d}of this['_findSuggestions'](_0x392804,'formatBlock')){if(!_0x4aeb0d['isOwn'])continue;if(_0x4aeb0d['isNextTo']||_0x4aeb0d['containsRangeInObject']||_0x4aeb0d['isInsideObject'])continue;if(_0x46f43f['data']['formatGroupId']!=_0x2ccde8['formatGroupId'])continue;if(!Xt(_0x46f43f,_0x5ed8e8))continue;const _0x1dbe84=_0x46f43f['getFirstRange']();if(_0x46f43f['subType']==_0x34d19f){if(_0x1dbe84['containsRange'](_0x392804,!0x0))return null;_0x27aa1f=_0x27aa1f['isBefore'](_0x1dbe84['start'])?_0x27aa1f:_0x1dbe84['start'],_0x4c8044=_0x4c8044['isAfter'](_0x1dbe84['end'])?_0x4c8044:_0x1dbe84['end'],_0x4e4508?_0x1dbe84['start']['isBefore'](_0x4e4508['getFirstRange']()['start'])?(_0x4e4508['removeMarkers'](),_0x4e4508=_0x46f43f):_0x46f43f['removeMarkers']():_0x4e4508=_0x46f43f;}else{const _0x59a6a4=_0x392804['getIntersection'](_0x1dbe84);this['_cutOutSuggestionMarker'](_0x46f43f,_0x59a6a4);}}const _0x2680c5=this['editor']['plugins']['get']('Users')['me'],_0x36c373=_0x261f54(),_0x1eb44f=_0x2680c5['id'];if(_0x4e4508)return this['_setSuggestionRange'](_0x4e4508,this['_model']['createRange'](_0x27aa1f,_0x4c8044)),_0x4e4508;{const _0xadd289=this['_setSuggestionData']({'id':_0x36c373,'type':'formatBlock:'+_0x34d19f,'data':_0x2ccde8,'createdAt':new Date(),'authorId':_0x1eb44f,'attributes':_0x5ed8e8});return this['_addSuggestionMarker']('formatBlock:'+_0x34d19f,_0x36c373,_0x1eb44f,this['_model']['createRange'](_0x27aa1f,_0x4c8044)),_0xadd289;}}['markMultiRangeBlockFormat'](_0x97769a,_0x5b9295,_0x5230f0=[],_0x30ac1c=null,_0x263de6={}){_0x5b9295['formatGroupId']||(_0x5b9295['formatGroupId']=_0x5b9295['commandName']);const _0x3655e4=_0x97769a[0x0];_0x5b9295['multipleBlocks']=_0x3655e4['is']('range'),_0x30ac1c=_0x30ac1c||Kt(_0x5b9295);const _0xe29e9f=_0x5230f0['map'](_0x146fa4=>zt(_0x146fa4,this['_model'])),_0x4d222d=_0x3655e4['is']('range')?_0x97769a:_0x97769a['map'](_0x54fffc=>zt(_0x54fffc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x560cd7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30ac1c,'accept');return this['forceDefaultExecution'](()=>_0x560cd7(_0x4d222d,_0x5b9295,_0x263de6)),null;}_0xe29e9f['push'](..._0x4d222d);let _0x4197e9=!0x0;for(const _0xb25d99 of _0xe29e9f)if(!this['_rangeIsInLocalUserInsertion'](_0xb25d99)){_0x4197e9=!0x1;break;}if(_0x4197e9&&'always'!==this['_trackFormatChanges']){const _0x53de37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30ac1c,'accept');return this['forceDefaultExecution'](()=>_0x53de37(_0x4d222d,_0x5b9295,_0x263de6)),null;}const _0x90998=this['editor']['plugins']['get']('Users')['me'];for(const _0x6239a6 of this['getSuggestions']()){if(_0x6239a6['author']['id']!=_0x90998['id'])continue;if('formatBlock'!=_0x6239a6['type']||_0x6239a6['data']['formatGroupId']!=_0x5b9295['formatGroupId'])continue;if(!Xt(_0x6239a6,_0x263de6))continue;const _0x18a608=_0x6239a6['subType']==_0x30ac1c;for(let _0x35cc3d=0x0;_0x35cc3d<_0x4d222d['length'];_0x35cc3d++){const _0x59c8b8=_0x4d222d[_0x35cc3d];for(const _0x17ad3 of _0x6239a6['getMarkers']()){const _0x2b1833=_0x17ad3['getRange']();if(_0x59c8b8['isEqual'](_0x2b1833)){_0x18a608?(_0x4d222d['splice'](_0x35cc3d,0x1),_0x35cc3d--):_0x6239a6['removeMarker'](_0x17ad3['name']);break;}}}}if(0x0==_0x4d222d['length'])return null;const _0x48518e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30ac1c,'join');for(const _0x1c6b65 of this['getSuggestions']())if(_0x1c6b65['author']['id']==_0x90998['id']&&'formatBlock'==_0x1c6b65['type']&&_0x1c6b65['data']['formatGroupId']==_0x5b9295['formatGroupId']&&_0x1c6b65['subType']==_0x30ac1c&&Xt(_0x1c6b65,_0x263de6)&&(_0x48518e(_0x1c6b65['getRanges'](),_0x4d222d)||_0x48518e(_0x4d222d,_0x1c6b65['getRanges']()))){for(const _0x555e25 of _0x4d222d)_0x1c6b65['addRange'](_0x555e25);return _0x1c6b65;}const _0x2b8698=_0x261f54(),_0x1f028a=_0x90998['id'],_0x292ab7='formatBlock:'+_0x30ac1c,_0x41c160=this['_setSuggestionData']({'id':_0x2b8698,'type':_0x292ab7,'data':_0x5b9295,'createdAt':new Date(),'authorId':_0x1f028a,'attributes':_0x263de6});for(const _0x58b9e6 of _0x4d222d)this['_addSuggestionMarker'](_0x292ab7,_0x2b8698,_0x1f028a,_0x58b9e6,o['getMultiRangeId']());return _0x41c160;}['markDeletion'](_0x438da0,_0x6dff35=null,_0x4e0f9c={}){if(_0x438da0['isCollapsed'])return null;const _0x2fbe4a=this['editor']['plugins']['get']('Users')['me'],_0x23db16=new _0x5702ff(_0x438da0['start'],_0x438da0['end']);for(const {suggestion:_0x190b19,meta:_0x91def6}of this['_findSuggestions'](_0x23db16,'insertion'))if(_0x91def6['isOwn']&&!_0x91def6['isNextTo']){if(_0x190b19['isMultiRange']){const _0x30c1db=_0x190b19['getRanges']()['filter'](_0x182b43=>'$graveyard'!=_0x182b43['root']['rootName']);_0x30c1db['every'](_0x243430=>_0x23db16['containsRange'](_0x243430,!0x0))&&_0x190b19['discard']();if(_0x30c1db['some'](_0x36da4b=>_0x36da4b['containsRange'](_0x23db16,!0x0))){const _0x1f4880=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6dff35,'accept');return this['forceDefaultExecution'](()=>_0x1f4880([_0x23db16],null,_0x4e0f9c)),null;}}else{const _0x336667=_0x23db16['getIntersection'](_0x190b19['getFirstRange']());null!==_0x336667&&_0x190b19['_onDiscard']([_0x336667],null,_0x4e0f9c);}}if(_0x23db16['detach'](),_0x23db16['isCollapsed']||'$graveyard'==_0x23db16['root']['rootName'])return null;let _0x46f4cb=null,_0x38bc78=_0x23db16['start'],_0x370f9d=_0x23db16['end'];const _0x31be17=this['_findSuggestions'](_0x23db16,'deletion');for(const {suggestion:_0xf902e9,meta:_0x1fe485}of _0x31be17){const _0x9d59e=this['_model']['createRange'](_0x38bc78,_0x370f9d);if(_0x1fe485['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1fe485['containsRangeInObject']&&!_0x1fe485['isInsideObject'])){if(_0xf902e9['isMultiRange']){if(!Xt(_0xf902e9,_0x4e0f9c))continue;let _0x5dc7c9=!0x0;for(const _0x45b3eb of _0xf902e9['getRanges']()){if(_0x45b3eb['containsRange'](_0x9d59e,!0x0))return _0xf902e9;_0x9d59e['containsRange'](_0x45b3eb)||(_0x5dc7c9=!0x1);}_0x5dc7c9&&_0xf902e9['discard']();}else{const _0x393286=_0xf902e9['getFirstRange']();if(_0x393286['containsRange'](_0x9d59e,!0x0))return _0xf902e9;if(!Xt(_0xf902e9,_0x4e0f9c)){_0x9d59e['containsRange'](_0x393286)?_0xf902e9['removeMarkers']():_0x393286['containsPosition'](_0x38bc78)?_0x38bc78=_0x393286['end']:_0x393286['containsPosition'](_0x370f9d)&&(_0x370f9d=_0x393286['start']);continue;}_0x38bc78=_0x38bc78['isBefore'](_0x393286['start'])?_0x38bc78:_0x393286['start'],_0x370f9d=_0x370f9d['isAfter'](_0x393286['end'])?_0x370f9d:_0x393286['end'],_0x4e0f9c=Object['assign']({},_0xf902e9['attributes']),_0x46f4cb?_0x393286['start']['isBefore'](_0x46f4cb['getFirstRange']()['start'])?(_0x46f4cb['removeMarkers'](),_0x46f4cb=_0xf902e9):_0xf902e9['removeMarkers']():_0x46f4cb=_0xf902e9;}}}if(_0x46f4cb)return this['_setSuggestionRange'](_0x46f4cb,this['_model']['createRange'](_0x38bc78,_0x370f9d)),_0x46f4cb;{const _0x8a5d04=_0x261f54(),_0xef71b1=this['_model']['createRange'](_0x38bc78,_0x370f9d),_0xe04c27=_0x2fbe4a['id'],_0x50f276=_0x6dff35?'deletion:'+_0x6dff35:'deletion',_0x505c9b=this['_setSuggestionData']({'id':_0x8a5d04,'type':_0x50f276,'createdAt':new Date(),'authorId':_0xe04c27,'attributes':_0x4e0f9c});return this['_addSuggestionMarker'](_0x50f276,_0x8a5d04,_0xe04c27,_0xef71b1),_0x505c9b;}}['markMultiRangeDeletion'](_0xa48d17,_0x4ed3ce='multi',_0x52b594={}){const _0x4395d8=this['editor']['plugins']['get']('Users')['me'],_0x5e6ae0=_0xa48d17['map'](_0x379011=>new _0x5702ff(_0x379011['start'],_0x379011['end'])),_0x2d8794=new Set();for(const {suggestion:_0x512df0,meta:_0x2cbc16}of this['_findSuggestions'](_0x5e6ae0,'insertion'))_0x2cbc16['isOwn']&&!_0x2cbc16['isNextTo']&&_0x2d8794['add'](_0x512df0);for(const _0x38a2d6 of _0x2d8794)if(_0x38a2d6['isMultiRange']){const _0x29d955=_0x38a2d6['getRanges']();(!_0x38a2d6['attributes']||!_0x38a2d6['attributes']['skipNestingCheck'])&&(_0x29d955['every'](_0x28553b=>_0x5e6ae0['some'](_0x21c0f6=>_0x21c0f6['containsRange'](_0x28553b,!0x0)))&&_0x38a2d6['discard']());if(_0x5e6ae0['every'](_0x2e232e=>_0x29d955['some'](_0x4eb110=>_0x4eb110['containsRange'](_0x2e232e,!0x0)))){const _0x2068d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ed3ce,'accept');return this['forceDefaultExecution'](()=>_0x2068d5(_0xa48d17,null,_0x52b594)),null;}}else{const _0x295d84=_0x38a2d6['getFirstRange']();_0x5e6ae0['some'](_0x7ca40b=>_0x7ca40b['containsRange'](_0x295d84,!0x0))&&_0x38a2d6['discard']();if(_0x5e6ae0['every'](_0x4e9601=>_0x295d84['containsRange'](_0x4e9601,!0x0))){const _0x29315c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ed3ce,'accept');return this['forceDefaultExecution'](()=>_0x29315c(_0x5e6ae0,null,_0x52b594)),null;}}const _0x5ebe0e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ed3ce,'join');let _0x2487e3=null;for(const _0x266f62 of this['getSuggestions']())if(_0x266f62['author']['id']==_0x4395d8['id']&&_0x266f62['isInContent']&&'deletion'==_0x266f62['type']&&_0x266f62['subType']==_0x4ed3ce&&Xt(_0x266f62,_0x52b594)&&(_0x5ebe0e(_0x266f62['getRanges'](),_0x5e6ae0)||_0x5ebe0e(_0x5e6ae0,_0x266f62['getRanges']()))){if(_0x2487e3){if(_0x266f62['commentThread']&&_0x266f62['commentThread']['length'])continue;for(const _0x88912d of _0x266f62['getRanges']())_0x2487e3['isIntersectingWithRange'](_0x88912d)||_0x2487e3['addRange'](_0x88912d);_0x266f62['removeMarkers']();}else{_0x2487e3=_0x266f62;for(const _0x1602ce of _0x5e6ae0)_0x266f62['isIntersectingWithRange'](_0x1602ce)||_0x266f62['addRange'](_0x1602ce);}}if(_0x2487e3)return _0x2487e3;_0x2d8794['clear']();for(const {suggestion:_0x563223,meta:_0x14c568}of this['_findSuggestions'](_0x5e6ae0,'deletion'))_0x14c568['isOwn']&&(this['_mergeNestedSuggestions']||!_0x14c568['containsRangeInObject']&&!_0x14c568['isInsideObject'])&&Xt(_0x563223,_0x52b594)&&_0x2d8794['add'](_0x563223);for(const _0x1cfeb0 of _0x2d8794){const _0x5db544=_0x1cfeb0['getRanges']();if(!_0x52b594||!_0x52b594['skipNestingCheck']){if(_0x5e6ae0['every'](_0x24a965=>_0x5db544['some'](_0x483035=>_0x483035['containsRange'](_0x24a965,!0x0))))return _0x1cfeb0;}(!_0x1cfeb0['attributes']||!_0x1cfeb0['attributes']['skipNestingCheck'])&&(_0x5db544['every'](_0x3bdd4f=>_0x5e6ae0['some'](_0x126829=>_0x126829['containsRange'](_0x3bdd4f,!0x0)))&&_0x1cfeb0['discard']());}const _0x1e0791=_0x261f54(),_0x308d77=_0x4395d8['id'],_0xe715a9='deletion:'+_0x4ed3ce,_0x35800e=this['_setSuggestionData']({'id':_0x1e0791,'type':_0xe715a9,'createdAt':new Date(),'authorId':_0x308d77,'attributes':_0x52b594});for(const _0xfb146b of _0x5e6ae0)_0xfb146b['detach'](),_0xfb146b['isCollapsed']||'$graveyard'==_0xfb146b['root']['rootName']||this['_addSuggestionMarker'](_0xe715a9,_0x1e0791,_0x308d77,_0xfb146b,o['getMultiRangeId']());return _0x35800e;}['markAttributeChange'](_0x3a7eb1,_0x2f5fdb,_0x2499e6,_0xc9fdf2,_0x4d929a){if(_0x3a7eb1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd757ef=this['editor']['plugins']['get']('Users')['me']['id'],_0x46b0ce=Array['from'](this['_suggestions']['values']())['filter'](_0x1e5b34=>'attribute'==_0x1e5b34['type']&&_0x1e5b34['data']['key']==_0x2f5fdb&&_0x1e5b34['isIntersectingWithRange'](_0x3a7eb1));if('default'===this['_trackFormatChanges']){const _0x5e7843=this['_findSuggestions'](_0x3a7eb1,'insertion')['filter'](({meta:_0x46f9ed})=>_0x46f9ed['isOwn']&&!_0x46f9ed['isInsideObject']&&!_0x46f9ed['isNextTo'])['map'](({suggestion:_0x4f12f2})=>_0x4f12f2);_0x46b0ce['unshift'](..._0x5e7843);}const _0xab3cc1=new Map([[_0x3a7eb1,_0x2499e6]]);for(const _0x22ffd8 of _0x46b0ce){const _0x583323='attribute'==_0x22ffd8['type']?_0x22ffd8['data']['oldValue']:void 0x0,_0x52413c=_0x22ffd8['getFirstRange'](),_0xe8192c=Array['from'](_0xab3cc1['keys']())['find'](_0x588fbb=>_0x588fbb['isIntersecting'](_0x52413c));if(!_0xe8192c)continue;const _0x1f3eee=_0xe8192c['getDifference'](_0x52413c);this['_isBlockAttribute'](_0x2f5fdb)&&'insertion'==_0x22ffd8['type']&&0x0!=_0x1f3eee['length']||(_0xab3cc1['delete'](_0xe8192c),_0x1f3eee['forEach'](_0x45d365=>{_0xab3cc1['set'](_0x45d365,_0x2499e6);}),'insertion'!=_0x22ffd8['type']&&_0x583323!=_0xc9fdf2&&_0xab3cc1['set'](_0xe8192c['getIntersection'](_0x52413c),_0x583323));}const _0x598ef0=[];for(const [_0x30777b,_0x224603]of _0xab3cc1){const _0x10d795=_0x261f54(),_0x11f4ae={'key':_0x2f5fdb,'oldValue':_0x224603,'newValue':_0xc9fdf2};_0x2f5fdb['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':_0x2f5fdb});const _0x3fb17f=('attribute:'+(_0x2f5fdb+'|'+Kt({'newValue':_0xc9fdf2})))['substring'](0x0,0x3c),_0xa4eaa8=this['_setSuggestionData']({'id':_0x10d795,'type':_0x3fb17f,'data':_0x11f4ae,'createdAt':new Date(),'authorId':_0xd757ef,'attributes':_0x4d929a});_0x598ef0['push'](_0xa4eaa8),this['_addSuggestionMarker'](_0x3fb17f,_0x10d795,_0xd757ef,_0x30777b);}return _0x598ef0;}['enableDefaultAttributesIntegration'](_0x126a76){this['enableCommand'](_0x126a76,(_0x5ecfe6,..._0x188e31)=>{this['_recordAttributeChanges'](()=>{_0x5ecfe6(..._0x188e31);});});}['registerBlockAttribute'](_0x2b0eb9){this['_blockAttributeKeys']['add'](_0x2b0eb9);}['registerInlineAttribute'](_0x199d0a){this['_inlineAttributeKeys']['add'](_0x199d0a);}['_getAttributeKey'](_0x2a6332){return'attribute'==_0x2a6332['type']?_0x2a6332['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5646c3,_0x390905){const _0x83945d=_0x5646c3['getFirstMarker']();this['_model']['change'](_0x4da4ac=>{_0x4da4ac['updateMarker'](_0x83945d,{'range':_0x390905});});}['_addThreadToSuggestion'](_0x2c856a){const _0x47e249=_0x2c856a['id'],_0xb1d606=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47e249)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb1d606,'threadId':_0x47e249,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4752c8=this['_commentsRepository']['getCommentThread'](_0x47e249);_0x4752c8['unbind']('isRemovable'),_0x4752c8['isRemovable']=!0x1,_0x2c856a['commentThread']=_0x4752c8;}['_checkSuggestionCorrectness'](_0x450f1c,_0x71e657,_0x3ff84f,_0x2da229){if(_0x450f1c['type']!=_0x71e657||_0x450f1c['subType']!=_0x3ff84f||_0x450f1c['creator']['id']!=_0x2da229)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ed8a5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x56c716,_0x4e9f74){const _0x3a069a=_0x56c716['getFirstRange']();if(_0x4e9f74['isEqual'](_0x3a069a))_0x56c716['removeMarkers']();else{if(_0x3a069a['containsRange'](_0x4e9f74)){const _0x24c394=this['_model']['createPositionAt'](_0x4e9f74['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x56c716,this['_model']['createRange'](_0x3a069a['start'],_0x24c394));const _0x3b5b1a=_0x261f54(),_0x399d93=_0x56c716['creator']['id'],_0x192d39=_0x56c716['type']+':'+_0x56c716['subType'];this['_setSuggestionData']({'id':_0x3b5b1a,'type':_0x192d39,'createdAt':new Date(),'authorId':_0x399d93,'data':_0x56c716['data'],'attributes':_0x56c716['attributes']});const _0x1b2799=this['_model']['createPositionAt'](_0x4e9f74['end']['parent'],'after'),_0x1add43=this['_model']['createRange'](_0x1b2799,_0x3a069a['end']);this['_addSuggestionMarker'](_0x192d39,_0x3b5b1a,_0x399d93,_0x1add43);}else{if(_0x3a069a['containsPosition'](_0x4e9f74['start'])){const _0x32f2bb=this['_model']['createPositionAt'](_0x4e9f74['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x56c716,this['_model']['createRange'](_0x3a069a['start'],_0x32f2bb));}else{const _0x42ab01=this['_model']['createPositionAt'](_0x4e9f74['end']['parent'],'after');this['_setSuggestionRange'](_0x56c716,this['_model']['createRange'](_0x42ab01,_0x3a069a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x35995f){for(const {suggestion:_0x4a4313,meta:_0x2e99cf}of this['_findSuggestions'](_0x35995f,'insertion')){if(!_0x2e99cf['isOwn'])continue;const _0x3b9160=_0x4a4313['getRanges']();for(const _0x4a5fc6 of _0x3b9160)if(!_0x35995f['getDifference'](_0x4a5fc6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x28c8a2){const _0x31f372=this['editor']['plugins']['get']('Users')['getUser'](_0x28c8a2);if(!_0x31f372)throw new _0x1ed8a5('track-changes-user-not-found',this);return _0x31f372;}['_getExternalAuthor'](_0x57fc83){const _0x4347c5=this['editor']['plugins']['get']('Users'),_0xd17584=_0x6bcbd8('external:'+_0x57fc83),_0x3f24fb=_0x4347c5['getUser'](_0xd17584);return _0x3f24fb||_0x4347c5['addUser']({'id':_0xd17584,'name':_0x57fc83});}['_createSuggestion'](_0x89e01d,_0x41a388,_0x351b1f,_0x13fc0e,_0x3e7d36){const _0x1dbb5=this['_getAuthorFromId'](_0x13fc0e),_0x4c5580=this['_suggestionFactory']['buildSuggestion'](_0x89e01d,_0x41a388,_0x351b1f,_0x1dbb5,_0x3e7d36,_0x1edf39=>{this['_updateSuggestionData'](_0x351b1f,{'attributes':_0x1edf39});const _0x1a6095=this['getSuggestion'](_0x351b1f);this['_joinWithAdjacentSuggestions'](new Set([_0x1a6095])),this['_refreshSuggestionsChain'](new Set([_0x1a6095]));});return this['listenTo'](_0x4c5580,'accept',()=>{this['_updateSuggestionData'](_0x351b1f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4c5580,'discard',()=>{this['_updateSuggestionData'](_0x351b1f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x351b1f,_0x4c5580),this['_suggestionState']['set'](_0x4c5580,'notReady'),_0x4c5580;}['_splitMarkerName'](_0x431631){const _0x35c34a=_0x431631['split'](':');return{'group':_0x35c34a[0x0],'type':_0x35c34a[0x1],'subType':_0x35c34a['length']>=0x5?_0x35c34a[0x2]:null,'id':_0x35c34a['length']<0x5?_0x35c34a[0x2]:_0x35c34a[0x3],'authorId':_0x35c34a['length']<0x5?_0x35c34a[0x3]:_0x35c34a[0x4],'markerCount':0x6==_0x35c34a['length']?_0x35c34a[0x5]:null};}['_breakSuggestionMarker'](_0x5bbd80,_0xa6dde3,_0x14b57d){const _0x46ab46=_0x5bbd80['getFirstRange'](),_0x46cd7a=_0x46ab46['start'],_0x3d946b=_0x46ab46['end'];this['_setSuggestionRange'](_0x5bbd80,this['_model']['createRange'](_0x46cd7a,_0xa6dde3));const _0x2715f7=_0x261f54(),_0x1e02bc=_0x5bbd80['creator']['id'],_0x21cc38=_0x5bbd80['type']+(_0x5bbd80['subType']?':'+_0x5bbd80['subType']:'');this['_setSuggestionData']({'id':_0x2715f7,'type':_0x21cc38,'createdAt':new Date(),'authorId':_0x1e02bc,'originalSuggestionId':_0x5bbd80['id'],'attributes':_0x5bbd80['attributes'],'data':_0x5bbd80['data']});const _0xdc46b1=this['_getAttributeKey'](_0x5bbd80);('formatBlock'==_0x5bbd80['type']||_0xdc46b1&&this['_isBlockAttribute'](_0xdc46b1))&&(_0x14b57d=this['_model']['createPositionBefore'](_0x14b57d['parent'])),this['_addSuggestionMarker'](_0x21cc38,_0x2715f7,_0x1e02bc,this['_model']['createRange'](_0x14b57d,_0x3d946b));}['_findSuggestions'](_0x26675c,_0x19c47c=null){const _0x55242a=[],_0x3027b8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x26675c)||(_0x26675c=[_0x26675c]);for(const _0x5ef336 of this['getSuggestions']()){if(!_0x5ef336['isInContent'])continue;if(_0x19c47c&&_0x5ef336['type']!=_0x19c47c)continue;let _0x112611=!0x1;for(const _0xc50da2 of _0x5ef336['getRanges']()){for(const _0x172905 of _0x26675c){const _0x5a000e=_0x172905['start']['isEqual'](_0xc50da2['end'])||_0x172905['end']['isEqual'](_0xc50da2['start']);if(_0x5a000e||_0x172905['getIntersection'](_0xc50da2)){const _0x4138f9=_0x172905['containsRange'](_0xc50da2)&&Gt(this['_model']['schema'],_0xc50da2['start'],_0x172905),_0x4feb61=_0xc50da2['containsRange'](_0x172905)&&Gt(this['_model']['schema'],_0x172905['start'],_0xc50da2);_0x55242a['push']({'suggestion':_0x5ef336,'meta':{'isOwn':_0x3027b8==_0x5ef336['author'],'isNextTo':_0x5a000e,'isInsideObject':_0x4138f9,'containsRangeInObject':_0x4feb61}}),_0x112611=!0x0;break;}}if(_0x112611)break;}}return _0x55242a;}['_addSuggestionMarker'](_0xb7d4b4,_0x3fb25a,_0x3e2c5d,_0x1de6d6,_0x3e05e8){this['_model']['change'](_0x50cdc2=>{let _0x39765f='suggestion:'+_0xb7d4b4+':'+_0x3fb25a+':'+_0x3e2c5d;_0x3e05e8&&(_0x39765f=_0x39765f+':'+_0x3e05e8),_0x50cdc2['addMarker'](_0x39765f,{'range':_0x1de6d6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x46e365){const _0x359c3b=_0x46e365['previous'],_0x28a53b=_0x46e365['next'];_0x46e365['previous']=null,_0x46e365['next']=null,null!=_0x359c3b&&_0x359c3b['next']==_0x46e365&&(_0x359c3b['next']=_0x28a53b),null!=_0x28a53b&&_0x28a53b['previous']==_0x46e365&&(_0x28a53b['previous']=_0x359c3b),'ready'==this['_suggestionState']['get'](_0x46e365)&&(this['_suggestionState']['set'](_0x46e365,'removed'),this['fire']('suggestionUnloaded',_0x46e365,_0x359c3b,_0x28a53b));}['_setSuggestionData'](_0x2a13ab){const _0xf13487=_0x2a13ab['id'],_0x4791f5=this['addSuggestionData'](_0x2a13ab);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x336a23=this['editor']['plugins']['get']('PendingActions'),_0x44d5c1=_0x4791f5['hasComments'],_0x4785bf=_0x4791f5['subType']?_0x4791f5['type']+':'+_0x4791f5['subType']:_0x4791f5['type'],_0x53952c=this['editor']['locale'],_0x510c48=_0x336a23['add'](c(_0x53952c,'PENDING_ACTION_SUGGESTION')),_0x28300b={'id':_0xf13487,'type':_0x4785bf,'hasComments':_0x44d5c1,'data':_0x2a13ab['data']||null,'originalSuggestionId':_0x2a13ab['originalSuggestionId']||null,'attributes':_0x4791f5['attributes']};this['_adapter']['addSuggestion'](_0x28300b)['then'](_0x10e58a=>{_0x4791f5['_saved']=!0x0,_0x336a23['remove'](_0x510c48),_0x10e58a&&_0x10e58a['createdAt']&&(this['_suggestions']['get'](_0xf13487)['createdAt']=_0x10e58a['createdAt']);})['catch'](_0x38de8d=>{throw _0x4b42ad('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4791f5['discard']();}),_0x4791f5['stopListening'](),this['_suggestions']['delete'](_0x4791f5['id']),this['_suggestionState']['delete'](_0x4791f5),_0x38de8d;});}return _0x4791f5;}['_isBlockAttribute'](_0x5dce56){return this['_blockAttributeKeys']['has'](_0x5dce56);}['_updateSuggestionData'](_0xe4b4b3,_0x35887b){const _0x5f4d5a=this['editor']['plugins']['get']('PendingActions'),_0xf3b4=this['getSuggestion'](_0xe4b4b3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xf3b4['_saved']){const _0x59bef6=_0x5f4d5a['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xe4b4b3,_0x35887b)['then'](()=>{_0x5f4d5a['remove'](_0x59bef6);});}else _0xf3b4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xe4b4b3,_0x35887b);});}}['_getSuggestionData'](_0x58977c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ed8a5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x58977c);}['_handleNewSuggestionMarker'](_0x56f3a8){const {id:_0x13a98e,type:_0x119302,subType:_0x4c0293,authorId:_0xed97c2}=this['_splitMarkerName'](_0x56f3a8),_0x27389b=this['_suggestions']['get'](_0x13a98e)||this['_createSuggestion'](_0x119302,_0x4c0293,_0x13a98e,_0xed97c2,{});switch(this['_checkSuggestionCorrectness'](_0x27389b,_0x119302,_0x4c0293,_0xed97c2),this['_suggestionState']['get'](_0x27389b)){case'notReady':this['_getSuggestionData'](_0x13a98e)['then'](_0x47edd9=>{let _0x148e8d=Promise['resolve']();_0x47edd9['hasComments']&&(_0x148e8d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x13a98e})),_0x148e8d['then'](()=>{this['addSuggestionData'](_0x47edd9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x27389b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x13a98e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x27389b,'ready'),this['fire']('suggestionLoaded',_0x27389b);break;case'ready':this['fire']('suggestionChanged',_0x27389b);}return _0x27389b['addMarkerName'](_0x56f3a8),_0x27389b;}['_refreshSuggestionsChain'](_0x456b3e){const _0x144181=Array['from'](_0x456b3e),_0x100931=_0x144181['filter'](_0x553ae2=>'attribute'==_0x553ae2['type']);this['_refreshAttributeSuggestionsChain'](_0x100931);const _0x324880=_0x144181['filter'](_0x4b51f1=>!_0x4b51f1['isMultiRange']&&'attribute'!=_0x4b51f1['type']),_0x404944=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x561bb5=>!_0x561bb5['isMultiRange']&&'attribute'!=_0x561bb5['type']),_0x3c1de4=_0x404944['filter'](_0x20d600=>!_0x456b3e['has'](_0x20d600)),_0xfefb73=new Map(_0x404944['map'](_0x3f2367=>[_0x3f2367,this['_suggestionFactory']['getSuggestionCallback'](_0x3f2367['type'],_0x3f2367['subType'],'chain')])),_0x5f002=new Map(_0x404944['map'](_0x1d808=>[_0x1d808,_0x1d808['getFirstRange']()])),_0x3ad3a7=new Set(),_0x358196=new Set();for(let _0x4bb94b=0x0;_0x4bb94b<_0x324880['length'];_0x4bb94b++)_0x494631(_0x324880[_0x4bb94b],_0x324880,_0x4bb94b+0x1);for(let _0x36e1d3=0x0;_0x36e1d3<_0x324880['length'];_0x36e1d3++)_0x494631(_0x324880[_0x36e1d3],_0x3c1de4,0x0);const _0x28929d=new Set();for(let _0x5483df=0x0;_0x5483df<_0x324880['length'];_0x5483df++){const _0x3f7538=_0x324880[_0x5483df];!_0x358196['has'](_0x3f7538)&&_0x3f7538['previous']&&(_0x28929d['add'](_0x3f7538['previous']),_0x3f7538['previous']['next']===_0x3f7538&&(_0x3f7538['previous']['next']=null),_0x3f7538['previous']=null),!_0x3ad3a7['has'](_0x3f7538)&&_0x3f7538['next']&&(_0x28929d['add'](_0x3f7538['next']),_0x3f7538['next']['previous']===_0x3f7538&&(_0x3f7538['next']['previous']=null),_0x3f7538['next']=null);}function _0x494631(_0x5b5dc1,_0xd92e8,_0x5b9f61){for(let _0x1963d9=_0x5b9f61;_0x1963d9<_0xd92e8['length'];_0x1963d9++){const _0x578c6b=_0x1b2275(_0x5b5dc1,_0xd92e8[_0x1963d9]);_0x578c6b&&(_0x578c6b[0x0]['next']=_0x578c6b[0x1],_0x578c6b[0x1]['previous']=_0x578c6b[0x0],_0x3ad3a7['add'](_0x578c6b[0x0]),_0x358196['add'](_0x578c6b[0x1]));}}function _0x1b2275(_0xba578c,_0x34e84c){if(_0xba578c['author']['id']!==_0x34e84c['author']['id'])return null;const _0x2a4d1d=_0xfefb73['get'](_0xba578c)(_0xba578c,_0x34e84c,_0x5f002['get'](_0xba578c),_0x5f002['get'](_0x34e84c));if(!_0x2a4d1d)return null;return _0xfefb73['get'](_0x34e84c)(_0xba578c,_0x34e84c,_0x5f002['get'](_0xba578c),_0x5f002['get'](_0x34e84c))?_0x2a4d1d[0x1]['commentThread']&&_0x2a4d1d[0x1]['commentThread']['length']?null:_0x2a4d1d:null;}_0x28929d['size']&&this['_refreshSuggestionsChain'](_0x28929d);}['_refreshAttributeSuggestionsChain'](_0x34c905){if(0x0==_0x34c905['length'])return;const _0x384a7c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x105b0c=>'attribute'==_0x105b0c['type']&&_0x105b0c['_isDataLoaded']),_0x357e19=[],_0x46d4a0=new Map();for(const _0x910a98 of _0x384a7c){const _0x36cd02=_0x6bcbd8(_0x910a98['attributes']);_0x46d4a0['has'](_0x36cd02)||(_0x46d4a0['set'](_0x36cd02,_0x357e19['length']),_0x357e19['push']([]));const _0xa9db2=_0x46d4a0['get'](_0x36cd02);_0x357e19[_0xa9db2]['push'](_0x910a98);}!(function(){_0x357e19['sort']((_0xa3ece7,_0x4513b2)=>{const _0x564b6a=_0xa3ece7[0x0]['createdAt'],_0x53e80c=_0x4513b2[0x0]['createdAt'];return _0x564b6a==_0x53e80c?_0xa3ece7[0x0]['attributes']['groupId']<_0x4513b2[0x0]['attributes']['groupId']?-0x1:0x1:_0x564b6a<_0x53e80c?-0x1:0x1;});for(const _0x21c706 of _0x357e19)_0x21c706['sort']((_0x57838d,_0x144b8a)=>_0x57838d['id']<_0x144b8a['id']?-0x1:0x1);}());for(let _0xb94b52=0x0;_0xb94b52<_0x357e19['length'];_0xb94b52++){if(0x0==_0x357e19[_0xb94b52]['length'])continue;const _0x5b1e73=[];for(let _0x5b34a6=_0xb94b52+0x1;_0x5b34a6<_0x357e19['length'];_0x5b34a6++)0x0!=_0x357e19[_0x5b34a6]['length']&&_0x5e058b(_0x357e19[_0xb94b52],_0x357e19[_0x5b34a6])&&_0x5b1e73['push'](_0x5b34a6);for(const _0x38b0ab of _0x5b1e73)_0x357e19[_0xb94b52]=_0x357e19[_0xb94b52]['concat'](_0x357e19[_0x38b0ab]),_0x357e19[_0x38b0ab]=[];}for(const _0x191b55 of _0x357e19)for(let _0x21f7ad=0x0;_0x21f7ad<_0x191b55['length'];_0x21f7ad++){const _0x46eb8b=_0x191b55[_0x21f7ad+0x1]||null;_0x191b55[_0x21f7ad]['next']!==_0x46eb8b&&(_0x191b55[_0x21f7ad]['next']=_0x46eb8b);}for(const _0x85a9dd of _0x357e19)for(let _0x295e88=0x0;_0x295e88<_0x85a9dd['length'];_0x295e88++){const _0x3e04ff=_0x85a9dd[_0x295e88-0x1]||null;_0x85a9dd[_0x295e88]['previous']!==_0x3e04ff&&(_0x85a9dd[_0x295e88]['previous']=_0x3e04ff);}function _0x5e058b(_0x246d1f,_0x50db46){if(_0x246d1f[0x0]['attributes']['groupId']!==_0x50db46[0x0]['attributes']['groupId']&&_0x246d1f[0x0]['author']!==_0x50db46[0x0]['author'])return!0x1;if(!function(_0x1170d2,_0x3e4f93){if(!_0x1170d2['hasComments']&&!_0x3e4f93['hasComments'])return!0x0;if(_0x1170d2['hasComments']&&_0x3e4f93['hasComments'])return!0x1;if(_0x1170d2['hasComments']&&_0x3e4f93['createdAt']<_0x1170d2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3e4f93['hasComments']&&_0x1170d2['createdAt']<_0x3e4f93['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x246d1f[0x0],_0x50db46[0x0]))return!0x1;const _0x1bb575=Ft(_0x246d1f[0x0]['attributes'],'groupId'),_0x21f281=Ft(_0x50db46[0x0]['attributes'],'groupId');if(!_0x2949db(_0x1bb575,_0x21f281))return!0x1;return!!_0x246d1f['every'](_0x30465b=>_0x50db46['some'](_0x236653=>_0x30465b['getFirstRange']()['isEqual'](_0x236653['getFirstRange']())))&&_0x50db46['every'](_0x228aad=>_0x246d1f['some'](_0x39d85b=>_0x228aad['getFirstRange']()['isEqual'](_0x39d85b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5bd8d8){const _0x192429=Array['from'](_0x5bd8d8),_0x9872d4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4f8920=_0x9872d4['filter'](_0x37a1a0=>!_0x5bd8d8['has'](_0x37a1a0)),_0x393c1a=new Map(_0x192429['map'](_0x45f3bf=>[_0x45f3bf,this['_suggestionFactory']['getSuggestionCallback'](_0x45f3bf['type'],_0x45f3bf['subType'],'join')])),_0x2d22ac=new Map(_0x9872d4['map'](_0x4cd853=>[_0x4cd853,_0x4cd853['getRanges']()]));for(let _0x19be2a=0x0;_0x19be2a<_0x192429['length'];_0x19be2a++){if(_0x514561(this,_0x192429[_0x19be2a],_0x192429,_0x19be2a+0x1))return!0x0;}for(let _0x3b9046=0x0;_0x3b9046<_0x192429['length'];_0x3b9046++){if(_0x514561(this,_0x192429[_0x3b9046],_0x4f8920,0x0))return!0x0;}return!0x1;function _0x514561(_0x5c31ca,_0x916e,_0x447f0e,_0x41dea3){for(let _0x1583b8=_0x41dea3;_0x1583b8<_0x447f0e['length'];_0x1583b8++){const _0x5935fc=_0x447f0e[_0x1583b8];if(_0x5935fc['type']!==_0x916e['type']||_0x5935fc['author']['id']!==_0x916e['author']['id']||_0x5935fc['subType']!==_0x916e['subType'])continue;if(!Qt(_0x916e,_0x5935fc))continue;if('attribute'==_0x916e['type']&&_0x916e['data']['oldValue']!=_0x5935fc['data']['oldValue'])continue;if('attribute'==_0x916e['type']&&_0x5c31ca['_isBlockAttribute'](_0x916e['data']['key']))continue;if('formatBlock'==_0x916e['type']){const _0x3fd66c=_0x5c31ca['editor']['model'],_0x1bf498=_0x916e['getContainedElement']();if(_0x1bf498&&(_0x3fd66c['schema']['isObject'](_0x1bf498)||_0x3fd66c['schema']['isLimit'](_0x1bf498)))continue;}const _0x28cc10=_0x393c1a['get'](_0x916e),_0x29f3b1=_0x2d22ac['get'](_0x916e),_0x3bf3ff=_0x2d22ac['get'](_0x5935fc),_0x12854d=_0x916e['commentThread']&&_0x916e['commentThread']['length'],_0x3a3331=_0x5935fc['commentThread']&&_0x5935fc['commentThread']['length'];if(!_0x12854d&&_0x28cc10(_0x3bf3ff,_0x29f3b1))return _0x5c31ca['_joinSuggestions'](_0x5935fc,_0x916e),_0x2d22ac['delete'](_0x916e),!0x0;if(!_0x3a3331&&_0x28cc10(_0x29f3b1,_0x3bf3ff))return _0x5c31ca['_joinSuggestions'](_0x916e,_0x5935fc),_0x2d22ac['delete'](_0x5935fc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3bc5c7,_0x3154a8){if(_0x3bc5c7['isMultiRange']){for(const _0x502bc2 of _0x3154a8['getRanges']())_0x3bc5c7['addRange'](_0x502bc2);}else{const _0x36407b=_0x3154a8['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3bc5c7,this['_model']['createRange'](_0x3bc5c7['getFirstRange']()['start'],_0x36407b));}_0x3154a8['removeMarkers']();}['_getMarkerAnnouncementText'](_0xf4fca1,_0x268349,_0x2601b7){const _0x27bdb8=_0xf4fca1['startsWith']('format')||_0xf4fca1['startsWith']('attribute')?'FORMATTING':_0xf4fca1['toUpperCase']();return c(this['editor']['locale'],_0x268349+'_'+_0x27bdb8+'_SUGGESTION_ANNOUNCEMENT',_0x2601b7);}['_initAriaMarkerChangeAnnouncements'](){const _0x160ed0=this['editor'];if(!_0x160ed0['ui'])return;const {ariaLiveAnnouncer:_0x145d57}=_0x160ed0['ui'];_0x2a5fde(this['_model'],({left:_0xc764d3,entered:_0x1e30a4})=>{for(const _0x3fb5bf of _0xc764d3){const {group:_0x457a6c,type:_0x18e083}=this['_splitMarkerName'](_0x3fb5bf['name']);if('suggestion'===_0x457a6c){_0x145d57['announce'](this['_getMarkerAnnouncementText'](_0x18e083,'LEAVE'));break;}}for(const _0x3985b0 of _0x1e30a4){const {group:_0x2cf8ea,type:_0x1a02d8}=this['_splitMarkerName'](_0x3985b0['name']);if('suggestion'===_0x2cf8ea){_0x145d57['announce'](this['_getMarkerAnnouncementText'](_0x1a02d8,'ENTER',_0x307200(_0x16187e)));break;}}});}['_processAttributeChanges'](_0x35ae47){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4b62b9=this['editor'],_0x3b96c7=_0x4b62b9['model']['document']['differ']['getChanges']();if(0x0==_0x3b96c7['length'])return!0x1;const _0x15cff5=[],_0x3ece54=_0x3b96c7['filter'](_0x13707b=>'attribute'==_0x13707b['type']),_0x1e9cd3=_0x3b96c7['filter'](_0x1b9276=>'insert'==_0x1b9276['type']&&'$text'!=_0x1b9276['name']),_0x56628d=_0x3b96c7['filter'](_0xdc3748=>'remove'==_0xdc3748['type']&&'$text'!=_0xdc3748['name']);for(const _0x1f2ec1 of _0x3ece54)_0x15cff5['push']({'key':_0x1f2ec1['attributeKey'],'newValue':_0x1f2ec1['attributeNewValue'],'oldValue':_0x1f2ec1['attributeOldValue'],'range':qt(_0x1f2ec1['range'],_0x4b62b9['model'])});for(const _0xb2f587 of _0x1e9cd3){const _0x2f1ab5=_0x56628d['find'](_0x4e3a59=>_0x4e3a59['position']['isEqual'](_0xb2f587['position']));_0x2f1ab5&&_0x15cff5['push']({'key':u,'newValue':_0xb2f587['name'],'oldValue':_0x2f1ab5['name'],'range':_0x4b62b9['model']['createRangeOn'](_0xb2f587['position']['nodeAfter'])});}return 0x0!=_0x15cff5['length']&&this['_reduceExistingSuggestions'](_0x35ae47,_0x15cff5);}['_processAttributeSuggestions'](_0x171c83){let _0x3a381c=!0x1;const _0x465e2b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b6b10=>_0x3b6b10['data']['newRange']&&_0x3b6b10['name']['startsWith']('suggestion:attribute:'));for(const _0x407162 of _0x465e2b){const {subType:_0x5a8da7,id:_0x5c02b8}=this['_splitMarkerName'](_0x407162['name']),_0x45e084=_0x5a8da7['split']('|')[0x0];for(const _0x2f2a06 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2f2a06['id']!=_0x5c02b8&&'attribute'==_0x2f2a06['type']&&_0x2f2a06['data']&&_0x2f2a06['data']['key']==_0x45e084&&_0x2f2a06['getFirstRange']()['isIntersecting'](_0x407162['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2f2a06,_0x407162['data']['newRange'],_0x171c83),_0x3a381c=!0x0);}return _0x3a381c;}['_recordAttributeChanges'](_0xad0a99){this['_recordAttributeSuggestions']=!0x0,_0xad0a99();}['_isRegisteredAttribute'](_0x2850bd){const _0x4021f7=this['_isBlockAttribute'](_0x2850bd),_0x10b65b=this['_inlineAttributeKeys']['has'](_0x2850bd);return _0x4021f7||_0x10b65b;}['_reduceExistingSuggestions'](_0x30494d,_0x18b0f8){if(0x0==_0x18b0f8['length'])return!0x1;let _0x5a47aa=!0x1;for(const _0xdd1756 of _0x18b0f8){const _0x33c6a8=this['_findSuggestions'](_0xdd1756['range'],'attribute')['filter'](_0x24b6a3=>!_0x24b6a3['meta']['isNextTo'])['map'](_0x17f4c6=>_0x17f4c6['suggestion']),_0x2da9ad=_0x6bcbd8({'newValue':_0xdd1756['newValue']});_0x33c6a8['filter'](_0x5c342f=>{const [_0x1ca929,_0x41a72b]=_0x5c342f['subType']['split']('|');return _0x1ca929==_0xdd1756['key']&&_0x41a72b!=_0x2da9ad;})['forEach'](_0x3cada9=>{this['_reduceSuggestionAttributeRange'](_0x3cada9,_0xdd1756['range'],_0x30494d),_0x5a47aa=!0x0;});}return _0x5a47aa;}['_reduceSuggestionAttributeRange'](_0x43b599,_0xa58980,_0x1aaeb1){const _0x1cf1b1=_0x43b599['getFirstRange']()['getDifference'](_0xa58980);0x0!==_0x1cf1b1['length']?0x1!==_0x1cf1b1['length']?this['_breakSuggestionMarker'](_0x43b599,_0xa58980['start'],_0xa58980['end']):this['_setSuggestionRange'](_0x43b599,_0x1cf1b1[0x0]):_0x1aaeb1['removeMarker'](_0x43b599['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x415235){this['_editor']=_0x415235,this['_model']=_0x415235['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3c6a62,_0x29390e,_0x3042b8,_0x569175,_0x542420,_0x43e097){return new o(this['_model'],{'type':_0x3c6a62,'subType':_0x29390e,'id':_0x3042b8,'author':_0x569175,'creator':_0x569175,'attributes':_0x542420,'onAttributesChange':_0x43e097,'onAccept':(..._0xd2666a)=>this['getSuggestionCallback'](_0x3c6a62,_0x29390e,'accept')(..._0xd2666a),'onDiscard':(..._0x573c78)=>this['getSuggestionCallback'](_0x3c6a62,_0x29390e,'discard')(..._0x573c78)});}['registerCustomCallback'](_0x45354a,_0x3fec62,_0x3fb0b3,_0x56b80b){const _0x32bd21=_0x45354a+':'+_0x3fec62+':'+_0x3fb0b3;this['_customCallbacks']['set'](_0x32bd21,_0x56b80b);}['getSuggestionCallback'](_0x599a5e,_0x51c013,_0xeea9ca){const _0x2e1d18=_0x599a5e+':'+_0x51c013+':'+_0xeea9ca;return this['_customCallbacks']['get'](_0x2e1d18)||this['_defaultCallbacks']['get'](_0x599a5e+':'+_0xeea9ca);}['_registerDefaultCallbacks'](){const _0x37b032=()=>!0x1,_0xc14b6e=_0x8f34b1=>{_0x8f34b1['sort']((_0x123e77,_0xfc9799)=>_0x123e77['start']['isBefore'](_0xfc9799['start'])?0x1:-0x1),this['_model']['change'](_0x1c74f3=>{for(const _0x25f879 of _0x8f34b1){let _0x2b4225;_0x2b4225=_0x25f879['end']['isAtEnd']&&_0x25f879['end']['parent']==_0x25f879['start']['nodeAfter']?_0x1c74f3['createSelection'](_0x25f879['start']['nodeAfter'],'on'):_0x1c74f3['createSelection'](_0x25f879),this['_model']['deleteContent'](_0x2b4225,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x530aef=(_0x1996f6,_0x375e22)=>{_0x375e22&&this['_model']['change'](_0x33770e=>{const {commandName:_0x2806fa,commandParams:_0x27262e=[]}=_0x375e22,_0x5271d6=_0x1996f6['map'](_0x30a235=>(Lt(_0x30a235)&&(_0x30a235=this['_model']['createRange'](_0x30a235['end'])),_0x30a235))['filter'](_0x208bcc=>'$graveyard'!==_0x208bcc['root']['rootName']);if(_0x5271d6['length']<0x1)return;const _0x18145f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x576872=>_0x5702ff['fromRange'](_0x576872));_0x33770e['setSelection'](_0x5271d6);for(const _0x27abd5 of this['_editor']['commands']['commands']())_0x27abd5['refresh']();_0x27262e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2806fa,..._0x27262e);const _0x333001=_0x18145f['filter'](_0x5f1205=>'$graveyard'!=_0x5f1205['root']['rootName']);_0x333001['length']>0x0&&_0x33770e['setSelection'](_0x333001);for(const _0x4aaaed of _0x18145f)_0x4aaaed['detach']();});},_0x5bfdd5=(_0x561a98,_0x45f56a)=>0x1==_0x561a98['length']&&0x1==_0x45f56a['length']&&_0x561a98[0x0]['end']['isEqual'](_0x45f56a[0x0]['start']),_0x3e4e68=(_0x11d010,_0x34cd52,_0x491083,_0x39523f)=>Wt(_0x11d010,_0x34cd52,_0x491083,_0x39523f)?[_0x11d010,_0x34cd52]:Wt(_0x34cd52,_0x11d010,_0x39523f,_0x491083)?[_0x34cd52,_0x11d010]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x37b032),this['_defaultCallbacks']['set']('insertion:discard',_0xc14b6e),this['_defaultCallbacks']['set']('insertion:join',_0x5bfdd5),this['_defaultCallbacks']['set']('insertion:chain',_0x3e4e68),this['_defaultCallbacks']['set']('deletion:accept',_0xc14b6e),this['_defaultCallbacks']['set']('deletion:discard',_0x37b032),this['_defaultCallbacks']['set']('deletion:join',_0x5bfdd5),this['_defaultCallbacks']['set']('deletion:chain',_0x3e4e68),this['_defaultCallbacks']['set']('formatInline:accept',_0x530aef),this['_defaultCallbacks']['set']('formatInline:discard',_0x37b032),this['_defaultCallbacks']['set']('formatInline:join',_0x5bfdd5),this['_defaultCallbacks']['set']('formatInline:chain',_0x37b032),this['_defaultCallbacks']['set']('formatBlock:accept',_0x530aef),this['_defaultCallbacks']['set']('formatBlock:discard',_0x37b032),this['_defaultCallbacks']['set']('formatBlock:join',_0x5bfdd5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x37b032),this['_defaultCallbacks']['set']('attribute:accept',_0x37b032),this['_defaultCallbacks']['set']('attribute:discard',(_0x1fd33b,_0x236d67)=>{if(!_0x236d67)return;const _0x177378=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x48ce09=>{if(_0x236d67['key']==u)for(const _0x48c83d of _0x1fd33b){const _0x1c1293=_0x48c83d['start']['nodeAfter'],_0x286b10=_0x236d67['oldValue'];_0x48ce09['rename'](_0x1c1293,_0x286b10);}else{if(_0x177378['_isBlockAttribute'](_0x236d67['key'])){for(const _0x45cd13 of _0x1fd33b)void 0x0!==_0x236d67['oldValue']?_0x48ce09['setAttribute'](_0x236d67['key'],_0x236d67['oldValue'],_0x45cd13['start']['nodeAfter']):_0x48ce09['removeAttribute'](_0x236d67['key'],_0x45cd13['start']['nodeAfter']);}else{for(const _0x211aa1 of _0x1fd33b)_0x236d67['oldValue']?_0x48ce09['setAttribute'](_0x236d67['key'],_0x236d67['oldValue'],_0x211aa1):_0x48ce09['removeAttribute'](_0x236d67['key'],_0x211aa1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5bfdd5);}}function Gt(_0x505f99,_0x3e4e7f,_0x544bef){for(const _0x1618a2 of _0x3e4e7f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1618a2['root']==_0x1618a2)return!0x1;if(!_0x544bef['containsItem'](_0x1618a2))return!0x1;if(_0x505f99['isObject'](_0x1618a2)||_0x505f99['isLimit'](_0x1618a2))return!0x0;}return!0x1;}function Lt(_0x1f1f09){return _0x1f1f09['end']['parent']==_0x1f1f09['start']['nodeAfter']&&_0x1f1f09['end']['isAtStart'];}function Jt(_0x54d8b2,_0x38ceb1,_0x4a780b,_0x318334){const _0x3f6347=_0xbc3971=>!_0xbc3971['item']['is']('$textProxy')&&!_0x318334['isObject'](_0xbc3971['item']),_0x393116=_0x54d8b2['start']['getLastMatchingPosition'](_0x3f6347),_0x140349=_0x54d8b2['end']['getLastMatchingPosition'](_0x3f6347,{'direction':'backward'});return(!_0x54d8b2['start']['isEqual'](_0x393116)||!_0x54d8b2['end']['isEqual'](_0x140349))&&(_0x393116['isBefore'](_0x140349)?_0x4a780b['updateMarker'](_0x38ceb1,{'range':_0x4a780b['createRange'](_0x393116,_0x140349)}):_0x4a780b['removeMarker'](_0x38ceb1),!0x0);}function Kt(_0x590236){return _0x6bcbd8(_0x590236);}function Ht(_0x5466ef){const _0x320cd8=_0x5466ef['start']['nodeAfter'];return _0x320cd8&&_0x320cd8['is']('element');}function qt(_0x22452c,_0x4fd3b5){return null==_0x22452c['end']['nodeBefore']&&_0x22452c['end']['parent']==_0x22452c['start']['nodeAfter']?zt(_0x22452c['start']['nodeAfter'],_0x4fd3b5):_0x22452c;}function zt(_0x1a91cf,_0x426fc6){const _0x1cebec=_0x426fc6['schema']['isObject'](_0x1a91cf)||_0x426fc6['schema']['isSelectable'](_0x1a91cf);return _0x426fc6['createRange'](_0x426fc6['createPositionAt'](_0x1a91cf,'before'),_0x1cebec?_0x426fc6['createPositionAfter'](_0x1a91cf):_0x426fc6['createPositionAt'](_0x1a91cf,'end'));}function Wt(_0x5cbd9f,_0x20017b,_0x280b64,_0x19cbc1){return!!Qt(_0x5cbd9f,_0x20017b)&&_0x280b64['end']['isEqual'](_0x19cbc1['start']);}function Qt(_0x6b1730,_0x505235){if(!_0x6b1730['_isDataLoaded']||!_0x505235['_isDataLoaded'])return!0x1;const _0x188027=new Set(Object['keys'](_0x6b1730['attributes'])),_0x3b25fb=new Set(Object['keys'](_0x505235['attributes']));if(_0x188027['delete']('groupId'),_0x3b25fb['delete']('groupId'),0x0==_0x188027['size']&&0x0==_0x3b25fb['size'])return!0x0;if(_0x188027['size']!=_0x3b25fb['size'])return!0x1;const _0x19eece={..._0x6b1730['attributes']},_0x1417ec={..._0x505235['attributes']};return delete _0x19eece['groupId'],delete _0x1417ec['groupId'],JSON['stringify'](_0x19eece)==JSON['stringify'](_0x1417ec);}function Xt(_0x4b25c5,_0x4aa178){const _0x208c91=Yt(_0x4b25c5['attributes']),_0x3e76ef=Yt(_0x4aa178);if(!_0x4b25c5['_isDataLoaded'])return!0x1;for(const _0x35054d of Object['keys'](_0x3e76ef))if(!_0x2949db(_0x208c91[_0x35054d],_0x3e76ef[_0x35054d]))return!0x1;return!0x0;}function Yt(_0xd0fbd){const _0x51a0d6=Object['assign']({},_0xd0fbd);return delete _0x51a0d6['skipNestingCheck'],delete _0x51a0d6['tablePasteChainId'],_0x51a0d6;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x55eb28(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1581aa,_0x3ca2e9,_0x3bae06,_0x3acc7c){super(),this['model']=_0x3ca2e9,this['view']=_0x3bae06,this['commentThreadController']=_0x3acc7c,this['_editor']=_0x1581aa,this['_acceptCommand']=_0x1581aa['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1581aa['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3ff405,_0xff67fb)=>_0x3ff405||_0xff67fb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x54dc94=>_0x54dc94&&this['_editor']['model']['canEditAt'](_0x3ca2e9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x33a129=>_0x33a129&&this['_editor']['model']['canEditAt'](_0x3ca2e9['getRanges']())),this['_pendingAction']=null,_0x3bae06['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3bae06,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3bae06,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3bae06,'change:isDirty',()=>{_0x3bae06['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 _0x5d8a76=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5d8a76);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2de829{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x180716,_0x5ed470,_0x2dc35b,_0x364c1b){super(_0x180716),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5f14c1(_0x180716,c(_0x180716,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5ed470['authoredAt']),this['bind']('authoredAt')['to'](_0x5ed470),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',_0x5ed470,'authoredAt',this,'descriptionParts',(_0x292643,_0x334a9e,_0x4a8ac4)=>{const _0x45e56d=_0x4a8ac4['map'](_0x309fca=>ls(_0x309fca['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x292643-0x1,_0x5ed470['author']['name'],_0x334a9e?_0x364c1b['formatDateTime'](_0x334a9e):'',new DOMParser()['parseFromString'](_0x45e56d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5e3fca(),this['focusTracker']=new _0x1ce46a(),this['keystrokes']=new _0x2983da(),this['focusCycler']=new _0x4e7d3a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5e4ea9=>_0x5e4ea9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5ed470,this['_localUser']=_0x2dc35b,this['_config']=_0x364c1b,_0x364c1b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2bcf38(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x321f75}=this['_config'];this['commentsListView']=new _0x321f75(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',_0x5c7202=>_0x5c7202+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x31d5cb,_0x242572)=>_0x31d5cb||!!_0x242572);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xbc9916}=this['_config'],_0x13de8c=new _0xbc9916(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3a963=_0x13de8c['commentInputView'];return _0x13de8c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3a963,'value',(_0x383140,_0x41e13a,_0x921a85)=>!!_0x921a85||_0x383140&&!_0x41e13a),_0x3a963['on']('submit',(_0x4cfcb9,_0x48dc54)=>{this['fire']('addComment',_0x48dc54),_0x3a963['editor']['setData']('');}),_0x3a963['on']('cancel',()=>this['focus']()),_0x3a963['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x13de8c;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x76f1ba,_0x21160e,_0x34da2f,_0x150861){super(_0x76f1ba,_0x21160e,_0x34da2f,_0x150861),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3879d6=>_0x3879d6&&_0x3879d6[0x0]?_0x3879d6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1fb8d6,_0x3447bd)=>{let _0x555e7c='';for(const _0x5853b7 of _0x1fb8d6)_0x555e7c+='<p>'+ls(_0x5853b7['content'],_0x5853b7['color'])+'</p>';return _0x3447bd?_0x555e7c:ti(_0x555e7c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x150861['SuggestionView'](_0x76f1ba,_0x21160e,{'formatDateTime':_0x150861['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 _0x484852=this['bindTemplate'],_0x4080a0=[this['suggestionView']];return this['commentsListView']&&_0x4080a0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4080a0['push'](this['commentThreadInputView']),_0x4080a0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x484852['if']('isActive','ck-suggestion-wrapper--active'),_0x484852['to']('type',_0x5488c1=>'ck-suggestion-'+_0x5488c1),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':_0x484852['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4080a0};}['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 _0x2de829{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1bae14,_0x39ce80,_0x52f735){super(_0x1bae14),this['_model']=_0x39ce80,this['_config']=_0x52f735,this['set']('description',''),this['bind']('authoredAt')['to'](_0x39ce80),this['acceptButton']=this['_createButton'](c(_0x1bae14,'Accept\x20suggestion'),_0x5d4ded,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1bae14,'Discard\x20suggestion'),_0x3aaccb,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2faec1(_0x1bae14,_0x39ce80['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5e3fca([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1ce46a(),this['keystrokes']=new _0x2983da(),this['focusCycler']=new _0x4e7d3a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1046e7=>_0x1046e7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x12f695=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x12f695['innerHTML']=this['description'],this['on']('change:description',(_0x3f5a76,_0x3876b1,_0x184c90)=>{_0x12f695['innerHTML']=_0x184c90;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3bf51b=this['bindTemplate'],_0x38276b=[{'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':_0x3bf51b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3bf51b['to']('authoredAt',_0x308ace=>this['_config']['formatDateTime'](_0x308ace))}]}]},{'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']&&_0x38276b['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':_0x38276b}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x59839c,_0x261517,_0x3274e7,_0xc8492f,_0x52b911){const _0x5a5a68=new _0x902b03(this['locale']);return _0x5a5a68['set']({'label':_0x59839c,'icon':_0x261517,'tooltip':!0x0,'tooltipPosition':_0x52b911}),_0x5a5a68['extendTemplate']({'attributes':{'class':_0x3274e7}}),_0x5a5a68['on']('execute',()=>{this['fire'](_0xc8492f,this['_model']['id']);}),_0x5a5a68;}['_setupKeyboardNavigation'](){const _0x3c5851=this['element'];this['keystrokes']['listenTo'](_0x3c5851);for(const _0x153f7d of this['focusables'])this['focusTracker']['add'](_0x153f7d['element']),this['keystrokes']['listenTo'](_0x153f7d['element']);this['keystrokes']['set']('enter',(_0x475d38,_0x445a01)=>{_0x3c5851===_0x475d38['target']&&(this['focusCycler']['focusFirst'](),_0x445a01());}),this['keystrokes']['set']('esc',(_0x5b2d68,_0x53b339)=>{_0x3c5851!==_0x5b2d68['target']&&(this['focus'](),_0x53b339());});}}class d extends _0x49d3a0{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x23fc75,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29fdf8){super(_0x29fdf8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x31a7e3=this['editor']['config'];_0x31a7e3['define']('trackChanges.SuggestionThreadView',fe),_0x31a7e3['define']('trackChanges.SuggestionView',we),_0x31a7e3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x31a7e3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x224def,_0x55eaa4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x516dd9,_0x330f69]of this['_handleControllerBuffer']){const _0xf196f8=this['_suggestionToController']['has'](_0x516dd9);_0xf196f8||_0x330f69?_0xf196f8&&_0x330f69&&this['_destroyController'](_0x516dd9):this['_initializeController'](_0x516dd9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x224def,_0x55eaa4);}['init'](){const _0x5ea3b9=this['editor'],_0x35ae03=_0x5ea3b9['plugins']['get']('TrackChangesEditing'),_0x1c198f=_0x5ea3b9['plugins']['get']('Annotations'),_0x4538b4=_0x5ea3b9['plugins']['get']('EditorAnnotations'),_0xe44166=_0x5ea3b9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4538b4['addSourceCollector'](()=>{const _0x410c78=[];for(const [_0x804be,_0x168455]of Array['from'](this['_suggestionToController'])){const _0x107090=_0x804be['getAllAdjacentSuggestions'](),_0x10b44a=[];for(const _0x48eea3 of _0x107090){if(!_0x48eea3['isInContent'])continue;if(_0x48eea3['isMultiRange']){_0x10b44a['push'](..._0x48eea3['getRanges']());continue;}const _0x467d79=_0x48eea3['getFirstRange']();if(_0x10b44a['length']>0x0){const _0x59b452=_0x10b44a[0x0]['getJoined'](_0x467d79);if(_0x59b452){_0x10b44a[0x0]=_0x59b452;continue;}}_0x10b44a['push'](_0x467d79);}_0x410c78['push']([_0x168455['view'],_0x10b44a]);}return _0x410c78;}),this['listenTo'](_0x35ae03,'suggestionLoaded',(_0x1c6c04,_0x48c9c8)=>{this['listenTo'](_0x48c9c8,'change:previous',(_0x49c445,_0x434e06,_0x39f011,_0x440ebd)=>{_0x48c9c8['isInContent']&&(null==_0x39f011?(this['_updateController'](_0x440ebd['head']),this['_handleSuggestionControllerDelayed'](_0x48c9c8,!0x1)):(this['_updateController'](_0x39f011['head']),null==_0x440ebd&&this['_handleSuggestionControllerDelayed'](_0x48c9c8,!0x0)));}),null!==_0x48c9c8['previous']?this['_updateController'](_0x48c9c8['head']):this['_handleSuggestionControllerDelayed'](_0x48c9c8,!0x1);}),this['listenTo'](_0x35ae03,'suggestionUnloaded',(_0x18d742,_0x75f279,_0xad1783)=>{this['stopListening'](_0x75f279,'change:previous'),this['_handleControllerBuffer']['delete'](_0x75f279),this['_suggestionToController']['has'](_0x75f279)&&this['_destroyController'](_0x75f279),_0xad1783&&this['_updateController'](_0xad1783['head']);}),this['listenTo'](_0x35ae03,'suggestionChanged',(_0x1a7c4f,_0x296a22)=>{this['_updateController'](_0x296a22);}),this['listenTo'](_0x1c198f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xe44166,'addComment',(_0x2d5ad6,{threadId:_0x3a5dee,isFromAdapter:_0x3d958d})=>{if(_0x3d958d||!_0x35ae03['hasSuggestion'](_0x3a5dee))return;const _0x2747c4=_0x35ae03['getSuggestion'](_0x3a5dee);this['_suggestionToController']['get'](_0x2747c4)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x55aebf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23ad9b;for(const _0x1cf1d8 in _0x55aebf){const _0xc15414=_0x1cf1d8,_0xb3164c=_0x55aebf[_0xc15414];if('trackChangesLicenseKeyValid'==_0xb3164c||'trackChangesLicenseKeyInvalid'==_0xb3164c||'trackChangesLicenseKeyExpired'==_0xb3164c||'trackChangesLicenseKeyDomainLimit'==_0xb3164c||'trackChangesLicenseKeyNotAllowed'==_0xb3164c||'trackChangesLicenseKeyEvaluationLimit'==_0xb3164c||'trackChangesLicenseKeyTrialLimit'==_0xb3164c||'trackChangesLicenseKeyUsageLimit'==_0xb3164c){delete _0x55aebf[_0xc15414],_0x23ad9b=_0xb3164c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x23ad9b&&_0x55aebf['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x23ad9b&&_0x55aebf['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x23ad9b&&_0x55aebf['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x23ad9b&&_0x55aebf['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x23ad9b&&_0x55aebf['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x23ad9b&&_0x55aebf['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x23ad9b&&_0x55aebf['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x30665c=this['editor']['plugins']['get']('Annotations'),_0x3ee8ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19e4dd=Array['from'](_0x30665c['activeAnnotations'],_0x1c7c5e=>_0x1c7c5e['innerView'])['filter'](_0x32c93b=>this['_viewToController']['has'](_0x32c93b)),_0x4f24eb=[];for(const _0x201613 of _0x19e4dd){const _0x478bea=this['_viewToController']['get'](_0x201613)['model']['getAllAdjacentSuggestions']();_0x4f24eb['push'](..._0x478bea['reduce']((_0x2d621b,_0x3cba21)=>[..._0x2d621b,..._0x3cba21['getMarkerNames']()],[]));}_0x3ee8ab['activeMarkers']=_0x4f24eb;}['_addUIComponentsToFactory'](){const _0xc770e9=this['editor'],_0x3bec71=_0xc770e9['locale'],_0x355253=c(_0x3bec71,'Track\x20changes'),_0x8d6b82=new _0x2469a5([{'type':'switchbutton','model':new _0x2e39d6({'withText':!0x0,'isToggleable':!0x0,'label':_0x355253,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e39d6({'withText':!0x0,'label':c(_0x3bec71,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e39d6({'withText':!0x0,'label':c(_0x3bec71,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e39d6({'withText':!0x0,'label':c(_0x3bec71,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e39d6({'withText':!0x0,'label':c(_0x3bec71,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xc770e9['plugins']['has']('TrackChangesPreview')&&_0x8d6b82['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e39d6({'withText':!0x0,'label':c(_0x3bec71,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25daeb of _0x8d6b82)if(ke(_0x25daeb)){const _0xb216a4=_0xc770e9['commands']['get'](_0x25daeb['model']['commandName']);_0x25daeb['model']['bind']('isOn','isEnabled')['to'](_0xb216a4,'value','isEnabled');}_0xc770e9['ui']['componentFactory']['add']('trackChanges',_0x2e919a=>this['_createToolbarButton'](_0x2e919a,_0x8d6b82,_0x355253)),_0xc770e9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x15f72d=>this['_createMenuBarMenu'](_0x15f72d,_0x8d6b82,_0x355253));}['_createToolbarButton'](_0x489147,_0x54cb5a,_0x5886f1){const _0x3e757c=_0x47b20b(_0x489147,_0x510b2d),_0x1dea4d=this['editor']['commands']['get']('trackChanges');_0x3e757c['buttonView']['set']({'tooltip':_0x5886f1,'label':_0x5886f1,'icon':_0x2ead64}),_0x3e757c['buttonView']['bind']('isOn')['to'](_0x1dea4d,'value'),_0x3e757c['buttonView']['on']('execute',()=>{_0x1dea4d['execute'](),this['editor']['editing']['view']['focus']();}),_0x302778(_0x3e757c,_0x54cb5a,{'role':'menu'});const _0x13e93a=[];for(const _0x57729e of _0x54cb5a)ke(_0x57729e)&&_0x13e93a['push'](this['editor']['commands']['get'](_0x57729e['model']['commandName']));const _0x15218a=_0x3e757c['buttonView'];return _0x15218a['actionView']['unbind']('isEnabled'),_0x15218a['arrowView']['unbind']('isEnabled'),_0x15218a['actionView']['bind']('isEnabled')['to'](_0x1dea4d,'isEnabled'),_0x15218a['arrowView']['bind']('isEnabled')['toMany'](_0x13e93a,'isEnabled',(..._0x57094f)=>_0x57094f['some'](_0xc1c83c=>_0xc1c83c)),_0x3e757c['on']('execute',_0x1aac3f=>{this['editor']['execute'](_0x1aac3f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3e757c;}['_createMenuBarMenu'](_0x9ef3ce,_0x26894e,_0xbfd7c2){const _0x3085dc=new _0x27ca8d(_0x9ef3ce),_0x153a58=this['editor']['commands']['get']('trackChanges');_0x3085dc['buttonView']['set']({'label':_0xbfd7c2,'icon':_0x2ead64});const _0x369880=new _0x3bd327(_0x9ef3ce);for(const _0x22baf5 of _0x26894e){if('separator'==_0x22baf5['type']){_0x369880['items']['add'](new _0x4b9123(_0x9ef3ce));continue;}const _0x47fbc3=new _0x38df9a(_0x9ef3ce,_0x3085dc),_0x121a84=new _0xea57e4(_0x9ef3ce),_0x52f10e=_0x22baf5['model'];_0x121a84['bind'](...Object['keys'](_0x52f10e))['to'](_0x52f10e),_0x121a84['delegate']('execute')['to'](_0x3085dc),_0x121a84['on']('execute',()=>{this['editor']['execute'](_0x52f10e['commandName']),this['editor']['editing']['view']['focus']();}),_0x47fbc3['children']['add'](_0x121a84),_0x369880['items']['add'](_0x47fbc3);}return _0x3085dc['bind']('isEnabled')['to'](_0x153a58,'isEnabled'),_0x3085dc['panelView']['children']['add'](_0x369880),_0x3085dc;}['_initializeController'](_0x4086e0){const _0x3390d9=this['editor'],_0x35fa48=_0x3390d9['config'],_0x14ba9a=_0x3390d9['plugins']['get']('Annotations'),_0x41445b=_0x3390d9['plugins']['get']('CommentsRepository'),_0x54cd15=_0x3390d9['plugins']['get']('EditorAnnotations'),_0x5ac4a4=_0x3390d9['plugins']['get'](_0x23fc75)['me'],_0x3ec99c=_0x35fa48['get']('trackChanges')['SuggestionThreadView'],_0x17010b=_0x35fa48['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2b54e6,CommentThreadInputView:_0x4f61fe}=_0x3390d9['plugins']['get']('CommentsUI');let _0x47fb6c,_0x386bda,_0x4917f9;this['_annotationViews']['has'](_0x4086e0['id'])?(_0x386bda=this['_annotationViews']['get'](_0x4086e0['id']),_0x47fb6c=_0x386bda['mainView']):(_0x47fb6c=new _0x3ec99c(_0x3390d9['locale'],_0x4086e0,_0x5ac4a4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x35fa48['get']('comments.editorConfig'),'licenseKey':_0x35fa48['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x35fa48['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x35fa48['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x35fa48['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2ddcb8(_0x35fa48['get']('locale'),_0x3390d9['locale']),'CommentView':_0x35fa48['get']('comments')['CommentView'],'CommentsListView':_0x2b54e6,'CommentThreadInputView':_0x4f61fe,'SuggestionView':_0x17010b}),_0x47fb6c['suggestionView']['acceptButton']['on']('execute',()=>{_0x3390d9['editing']['view']['focus']();}),_0x47fb6c['suggestionView']['discardButton']['on']('execute',()=>{_0x3390d9['editing']['view']['focus']();}),_0x386bda=_0x14ba9a['createAnnotationView'](this['editor']['locale'],_0x47fb6c),_0x386bda['bind']('isDirty')['to'](_0x47fb6c,'isDirty'),_0x386bda['bind']('length')['to'](_0x47fb6c),_0x386bda['bind']('type')['to'](_0x47fb6c,'type',_0x487bf1=>'suggestion-'+_0x487bf1),_0x47fb6c['on']('escape',()=>{_0x4917f9['fire']('escape');}),this['_annotationViews']['set'](_0x4086e0['id'],_0x386bda));const _0x4f55e0=_0x41445b['createCommentThreadController'](_0x4086e0['commentThread'],_0x47fb6c),_0x335549=new pe(_0x3390d9,_0x4086e0,_0x47fb6c,_0x4f55e0),_0x1a10b2=_0x4086e0['getAllAdjacentSuggestions']()['filter'](_0x3ad9b6=>_0x3ad9b6['isInContent']);_0x47fb6c['descriptionParts']=_0x3390d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1a10b2),this['_suggestionToController']['set'](_0x4086e0,_0x335549),this['_viewToController']['set'](_0x47fb6c,_0x335549),_0x4917f9=_0x14ba9a['createAnnotation']({'view':_0x386bda,'target':()=>{const _0x2114f8=[],_0x4ac413=_0x4086e0['getAllAdjacentSuggestions']()['filter'](_0x1e36f7=>_0x1e36f7['isInContent']);for(const _0x3394bd of _0x4ac413)_0x2114f8['push'](..._0x3394bd['getMarkers']());return _0x4c97e0(_0x3390d9['editing'],_0x2114f8);},'type':()=>'suggestion-'+_0x335549['view']['type']}),_0x41445b['_bindAnnotationToEditors'](_0x47fb6c,_0x4917f9),_0x14ba9a['add'](_0x4917f9),_0x54cd15['registerAnnotation'](_0x4917f9);}['_destroyController'](_0x3926fe){const _0x5716bf=this['editor']['plugins']['get']('CommentsRepository'),_0xc623f7=this['editor']['plugins']['get']('Annotations'),_0x57b295=this['_suggestionToController']['get'](_0x3926fe),_0x4138eb=_0x57b295['view'],_0x45b6d9=_0xc623f7['getByInnerView'](_0x4138eb);_0x5716bf['_unbindEditors'](_0x4138eb),_0x45b6d9&&_0xc623f7['remove'](_0x45b6d9),this['_suggestionToController']['delete'](_0x3926fe),this['_viewToController']['delete'](_0x4138eb),_0x57b295['destroy']();}['_updateController'](_0x2dfcd9){if(!_0x2dfcd9['isInContent']||!this['_suggestionToController']['has'](_0x2dfcd9))return;const _0x255599=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f27b0=this['_suggestionToController']['get'](_0x2dfcd9),_0x1a3a67=_0x2dfcd9['getAllAdjacentSuggestions']();_0x1f27b0['view']['descriptionParts']=_0x255599['descriptionFactory']['getDescriptions'](_0x1a3a67);}['destroy'](){for(const _0x53347f of this['_suggestionToController']['keys']())this['_destroyController'](_0x53347f);for(const _0x160515 of this['_annotationViews']['values']())_0x160515['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x419612){return'model'in _0x419612;}class k extends _0x49d3a0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x55610e){this['editor']['plugins']['get'](p)['adapter']=_0x55610e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x20a222){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x20a222);}['getSuggestions']({skipNotAttached:_0x3f4ace=!0x1,toJSON:_0x4a5817=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3f4ace,'toJSON':_0x4a5817});}['getSuggestion'](_0x4bbda5){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4bbda5);}}const w=['Pagination'];class T extends _0x49d3a0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x46519d=this['editor'];if(_0x46519d['config']['define']('trackChangesData.editorCreator',_0x49a526=>{const _0x6bb4de=_0x46519d['model']['document']['getRootNames']()['reduce']((_0x50b78c,_0x3f8e68)=>(_0x50b78c[_0x3f8e68]='',_0x50b78c),{});return _0x46519d['constructor']['create'](_0x6bb4de,_0x49a526);}),'function'!=typeof _0x46519d['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ed8a5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x6b9f4b){return N(this['editor'],!0x0,_0x6b9f4b);}['getDataWithDiscardedSuggestions'](_0x2e22cf){return N(this['editor'],!0x1,_0x2e22cf);}}class D extends _0x49d3a0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29ea63){function _0xf62bfe(_0x3ea33d){return _0x3ea33d['map'](_0x4c063c=>String['fromCharCode'](_0x4c063c))['join']('');}super(_0x29ea63),this['result']='end',_0x29ea63[_0xf62bfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf62bfe([0x76,0x69,0x65,0x77])][_0xf62bfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf62bfe([0x61,0x75,0x74,0x6f]),_0x29ea63[_0xf62bfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xf62bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf62bfe([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xf62bfe([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xf62bfe([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 Ge(_0x3f5202){return void 0x0!==_0x3f5202['getRootsAttributes'];}async function N(_0x3fced7,_0x54abec,_0x57b80f){const _0x4c45af=_0x1c3c87(_0x3fced7,w);_0x4c45af['plugins']['push'](p,D),_0x4c45af['rootsAttributes']=Ge(_0x3fced7)?_0x3fced7['getRootsAttributes']():void 0x0;const _0x2effbd=document['createDocumentFragment'](),_0x1faa06=_0x3fced7['config']['get']('trackChangesData')['editorCreator'],_0x563974=await _0x1faa06(_0x4c45af,()=>function(_0x3c2828){const _0x20c5dd=document['createElement']('div');return _0x3c2828['appendChild'](_0x20c5dd),_0x20c5dd;}(_0x2effbd));!function(_0x5c575b,_0x33c823){const _0x56fd22=_0x5c575b['model']['document']['getRootNames']()['reduce']((_0x1824b4,_0x1d975b)=>(_0x1824b4[_0x1d975b]=_0x5c575b['data']['get']({'rootName':_0x1d975b}),_0x1824b4),{}),_0x87e7df=_0x5c575b['plugins']['get']('Users')['users']['map'](_0x4a02d5=>({'id':_0x4a02d5['id'],'name':_0x4a02d5['name']})),_0x5ae7cc=_0x5c575b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3db2e9=_0x5c575b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x370ec6=_0x33c823['plugins']['get']('Users'),_0x1ee51b=_0x33c823['plugins']['get']('TrackChangesEditing'),_0x1da1ce=_0x33c823['plugins']['get']('CommentsRepository');for(const _0x497127 of _0x1da1ce['getCommentThreads']())_0x497127['remove']();for(const _0x251e10 of _0x87e7df)_0x370ec6['getUser'](_0x251e10['id'])||_0x370ec6['addUser'](_0x251e10);_0x370ec6['me']||_0x370ec6['useAnonymousUser']();for(const _0x10cbe4 of _0x3db2e9)_0x1da1ce['addCommentThread'](_0x10cbe4);for(const _0x5c8fd3 of _0x5ae7cc)_0x1ee51b['addSuggestionData'](_0x5c8fd3);_0x33c823['data']['set'](_0x56fd22);}(_0x3fced7,_0x563974),_0x563974['execute'](_0x54abec?'acceptAllSuggestions':'discardAllSuggestions');const _0xf0cdf5=Ge(_0x563974)?_0x563974['getFullData'](_0x57b80f):_0x563974['data']['get'](_0x57b80f);return await _0x563974['destroy'](),_0xf0cdf5;}class Me extends _0x2de829{['options'];constructor(_0x4e6cea,_0x4257a7){super(_0x4e6cea),this['options']=_0x4257a7,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'](_0x3bedfb,_0x2e3b97){if(!this['element'])return;const _0x4fed8e=[];for(const [_0x53bd15,_0x407e07]of _0x3bedfb){const _0x5355dd=document['createElement']('div');_0x5355dd['setAttribute']('data-ck-root-name',_0x53bd15),_0x5355dd['className']=_0x407e07['classes']+'\x20ck-track-changes-preview__root-container',_0x5355dd['innerHTML']=_0x407e07['content'],_0x4fed8e['push'](_0x5355dd);}_0x2e3b97(this['element'],_0x4fed8e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3f75d3{constructor(_0x17782d){super(_0x17782d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x575bb2=this['editor'],_0x29bddb=_0x575bb2['locale'],_0x698acd=_0x575bb2['plugins']['get']('Dialog');let _0x5855ab;const _0x894895=function(_0x20a0bd){const _0x5af00c={};if('editables'in _0x20a0bd['ui']['view']){for(const [_0x5c3c4b,_0x20b31c]of Object['entries'](_0x20a0bd['ui']['view']['editables']))_0x5af00c[_0x5c3c4b]=_0x20b31c['element'];}else _0x5af00c[_0x20a0bd['model']['document']['getRootNames']()[0x0]]=_0x20a0bd['ui']['view']['editable']['element'];return _0x5af00c;}(_0x575bb2),_0x493020=function(_0x260705){let _0x23c1ea=0x0;for(const _0x1de6e9 of Object['values'](_0x260705))_0x23c1ea=Math['max'](_0x23c1ea,_0x1de6e9['getBoundingClientRect']()['width']);let _0x10b6a5=0x0;for(const _0x31791a of Object['values'](_0x260705))_0x10b6a5+=_0x31791a['getBoundingClientRect']()['height'];const _0x5390dd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x54cd69=Math['min'](_0x10b6a5,_0x5390dd);return{'width':_0x23c1ea,'height':_0x54cd69};}(_0x894895);_0x698acd['show']({'id':'finalContentPreview','title':c(_0x29bddb,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x29bddb,{'dialogRects':_0x493020}),'onHide':()=>{_0x5855ab['detachFromDom']();},'onShow':()=>{_0x575bb2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2e1e0b=>{const _0x403153=this['_standarizeRootsData'](_0x2e1e0b,_0x575bb2,_0x894895);_0x698acd['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x403153,_0x575bb2['config']['get']('trackChanges.preview.renderFunction'));}),_0x5855ab=new _0x3ac2df(_0x29bddb,[_0x698acd['view']]),_0x5855ab['attachToDom'](),_0x5855ab['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x575bb2['once']('destroy',()=>{_0x5855ab['detachFromDom']();});const _0x2b8fc9=_0x698acd['view']['headerView']['class'];_0x698acd['view']['headerView']['class']=_0x2b8fc9?_0x2b8fc9+'\x20ck-reset_all':'ck-reset_all',_0x698acd['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x698acd['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1c6aad=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x12f8db=_0x1c6aad['previewMode'],_0x46b5ab={};if('$labels'===_0x12f8db){for(const _0x4849e8 of _0x1c6aad['getMergeFieldsIds']())_0x46b5ab[_0x4849e8]=_0x1c6aad['getLabel'](_0x4849e8)||_0x4849e8;}else{const _0x2c437e='$defaultValues'===_0x12f8db?_0x1c6aad['getDefaultValues']():_0x1c6aad['getDataSetValues'](_0x12f8db,!0x0);for(const _0x190c0c of Object['entries'](_0x2c437e)){const [_0x54c664,_0xb6896e]=_0x190c0c;_0x46b5ab[_0x54c664]=null!==_0xb6896e?_0xb6896e:_0x1c6aad['getLabel'](_0x54c664)||_0x54c664;}}return{'mergeFieldsData':_0x46b5ab};}['_standarizeRootsData'](_0x37c222,_0x59709a,_0x3294ab){let _0x2c186b;if('string'==typeof _0x37c222){const _0x395c2b=_0x59709a['model']['document']['getRootNames']()[0x0];_0x2c186b={[_0x395c2b]:_0x37c222};}else _0x2c186b=_0x37c222;const _0x5e59e4=this['_fixMediaEmbeds'](_0x2c186b,_0x59709a),_0x529e46=function(_0x488f5e,_0x132366){for(const [_0x332242,_0x516df2]of _0x488f5e)_0x516df2['classes']=_0x132366[_0x332242]['classList']['value']['replace']('ck-focused','');return _0x488f5e;}(this['_sortRoots'](_0x59709a)['reduce']((_0x25527d,_0x5b05dd)=>(_0x25527d['push']([_0x5b05dd,{'content':_0x5e59e4[_0x5b05dd],'classes':''}]),_0x25527d),[]),_0x3294ab);return _0x529e46;}['_fixMediaEmbeds'](_0x313255,_0x461f02){if(!_0x461f02['plugins']['has']('MediaEmbedEditing'))return _0x313255;const _0x22c636=_0x461f02['plugins']['get']('MediaEmbedEditing');for(const [_0xcefd8c,_0x44ab44]of Object['entries'](_0x313255)){const _0x192ebd=document['createElement']('div');_0x192ebd['innerHTML']=_0x44ab44,(_0x192ebd['querySelectorAll']('figure.media')['forEach'](_0x5bc096=>{const _0x572a41=_0x5bc096['querySelector']('oembed');if(_0x572a41){const _0x49b7a9=_0x572a41['getAttribute']('url');if(_0x49b7a9){const _0x548cdd=_0x22c636['registry']['getMediaViewElement'](new _0x21a1eb(_0x461f02['editing']['view']['document']),_0x49b7a9,{'elementName':'','renderForEditingView':!0x0}),_0x5a0925=document['createElement']('div');_0x5a0925['classList']['add']('ck-media__wrapper'),_0x548cdd['render'](_0x5a0925,_0x461f02['editing']['view']['domConverter']),_0x572a41['replaceWith'](_0x5a0925);}}}),_0x313255[_0xcefd8c]=_0x192ebd['innerHTML']);}return _0x313255;}['_sortRoots'](_0x23500e){if(!function(_0x46dac4){return void 0x0!==_0x46dac4['getRootsAttributes'];}(_0x23500e))return _0x23500e['model']['document']['getRootNames']();const _0x1649d9=[],_0x1e419d=new Map();for(const _0x37f946 of _0x23500e['model']['document']['getRootNames']()){const _0x5c8827=_0x23500e['editing']['view']['getDomRoot'](_0x37f946)['getClientRects']()['item'](0x0);_0x1649d9['push'](_0x37f946),_0x1e419d['set'](_0x37f946,_0x5c8827);}return _0x1649d9['sort']((_0x551a7d,_0x1609f1)=>{const _0x37972c=_0x1e419d['get'](_0x551a7d),_0xa4b927=_0x1e419d['get'](_0x1609f1);return _0x37972c['y']-_0xa4b927['y']||_0x37972c['x']-_0xa4b927['x'];}),_0x1649d9;}}class te extends _0x49d3a0{static get['requires'](){return[T,_0x9c557b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50961e){super(_0x50961e),_0x50961e['commands']['add']('previewFinalContent',new re(this['editor'])),_0x50961e['config']['define']('trackChanges.preview.renderFunction',(_0x1db69f,_0x16fbc0)=>{for(const _0x1956e4 of _0x16fbc0)_0x1db69f['appendChild'](_0x1956e4);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|