@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250321.0 → 0.0.0-nightly-20250323.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -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/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 +26 -26
- 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/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
|
-
_0x1fb0c7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3e5fbc,_0x15d09e){super(),this['id']=_0x15d09e['id'],this['type']=_0x15d09e['type'],this['subType']=_0x15d09e['subType']||null,this['author']=_0x15d09e['author'],this['creator']=_0x15d09e['creator']||_0x15d09e['author'],this['isExternal']=Boolean(_0x15d09e['attributes']&&_0x15d09e['attributes']['@external']),this['data']=null,this['_model']=_0x3e5fbc,this['_onAccept']=_0x15d09e['onAccept'],this['_onDiscard']=_0x15d09e['onDiscard'],this['_onAttributesChange']=_0x15d09e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x15d09e['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 _0x392298=this;for(;_0x392298['previous'];)_0x392298=_0x392298['previous'];return _0x392298;}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'](_0x4ae98f){this['_markerNames']['add'](_0x4ae98f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1fd4d8=>this['_model']['markers']['get'](_0x1fd4d8))['filter'](_0x53ec3d=>_0x53ec3d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1e90f5=>{for(const _0xe7df39 of this['getMarkers']())_0x1e90f5['removeMarker'](_0xe7df39);}),this['_markerNames']['clear']();}['removeMarker'](_0x17a580){this['_model']['change'](_0x21bedc=>{_0x21bedc['removeMarker'](_0x17a580);}),this['_markerNames']['delete'](_0x17a580);}['addRange'](_0x3ce239){const _0x3d0d6b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x3d0d6b),this['_model']['change'](_0x3e2c7a=>{_0x3e2c7a['addMarker'](_0x3d0d6b,{'range':_0x3ce239,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3b9fb6){for(const _0x4ea459 of this['getRanges']())if(_0x4ea459['isIntersecting'](_0x3b9fb6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x543ecd=>_0x543ecd['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x49e299,_0xd06373)=>[..._0x49e299,..._0xd06373['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5d7b6a=this['getRanges']();if(0x1!=_0x5d7b6a['length'])return null;const _0x4ffd49=_0x5d7b6a[0x0],_0x2106c9=_0x4ffd49['start']['nodeAfter'],_0x1d7640=_0x4ffd49['end']['nodeBefore'];return _0x2106c9 instanceof _0x547981?_0x2106c9!=_0x1d7640?null:_0x2106c9: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 _0x3f9288=[];let _0x2b32e3=this['head'];for(;_0x2b32e3;)_0x3f9288['push'](_0x2b32e3),_0x2b32e3=_0x2b32e3['next'];return _0x3f9288;}['setAttribute'](_0x522c28,_0x295b5d){const _0x212196=_0x47473a(this['attributes']);_0x3e9b65(_0x212196,_0x522c28,_0x295b5d),_0xf5d1bc(_0x212196,this['attributes'])||(this['attributes']=_0x212196,this['_onAttributesChange'](_0x212196));}['removeAttribute'](_0x594d08){const _0x2f550b=_0x47473a(this['attributes']);_0x3a43ca(_0x2f550b,_0x594d08),_0xf5d1bc(_0x2f550b,this['attributes'])||(this['attributes']=_0x2f550b,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 _0x1f8928()['substr'](0x1,0x5);}}function c(_0x2e7859,_0x3c9741,_0x5a53d0){const _0x3ce4f9=_0x2e7859['t'],t=_0x2e7859['t'];switch(_0x3c9741){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',_0x5a53d0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5a53d0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5a53d0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5a53d0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5a53d0);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',_0x5a53d0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5a53d0);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',_0x5a53d0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5a53d0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5a53d0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5a53d0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5a53d0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5a53d0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5a53d0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5a53d0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5a53d0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5a53d0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5a53d0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5a53d0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5a53d0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5a53d0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5a53d0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5a53d0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5a53d0);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'},_0x5a53d0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5a53d0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5a53d0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5a53d0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5a53d0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5a53d0);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'},_0x5a53d0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5a53d0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5a53d0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5a53d0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5a53d0);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'},_0x5a53d0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5a53d0);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'},_0x5a53d0);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'},_0x5a53d0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5a53d0);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'},_0x5a53d0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5a53d0);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'},_0x5a53d0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5a53d0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5a53d0);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'},_0x5a53d0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5a53d0);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 _0x3ce4f9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5a53d0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3ce4f9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5a53d0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5a53d0);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'},_0x5a53d0);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'},_0x5a53d0);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'},_0x5a53d0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3c9741;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x56ed42,_0x2d0642){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x56ed42,this['_locale']=_0x2d0642;}['getDescriptions'](_0x5bb301){const _0xe5bfac=[],_0xdb4faa=new Set(),_0x63c97a=new Set();for(let _0x2fad09=0x0;_0x2fad09<_0x5bb301['length'];_0x2fad09++){const _0x2b2aa8=_0x5bb301[_0x2fad09];if(!_0x2b2aa8['isInContent'])continue;const _0x2f531e=this['_handleCustomCallbackDescription'](_0x2b2aa8);if(_0x2f531e){if(null!=_0x2b2aa8['subType']){if(_0xdb4faa['has'](_0x2b2aa8['subType']))continue;_0xdb4faa['add'](_0x2b2aa8['subType']);}_0xe5bfac['push'](_0x2f531e);}else{if('attribute'!=_0x2b2aa8['type'])'insertion'!=_0x2b2aa8['type']&&'deletion'!=_0x2b2aa8['type']||this['_handleInsertRemoveSuggestionDescription'](_0xe5bfac,_0x2b2aa8,_0x5bb301[_0x2fad09+0x1]);else{const _0x1a5eef=_0x2b2aa8['data']['key'];if(_0x63c97a['has'](_0x1a5eef))continue;_0x63c97a['add'](_0x2b2aa8['data']['key']),_0x1a5eef==u?this['_handleRenameSuggestionDescription'](_0xe5bfac,_0x2b2aa8):this['_handleAttributeSuggestionDescription'](_0xe5bfac,_0x2b2aa8);}}}return this['_resolveDescriptionItems'](_0xe5bfac);}['registerDescriptionCallback'](_0x4f693f){this['_customCallbacks']['push'](_0x4f693f);}['registerElementLabel'](_0x1213ba,_0x4532e4,_0x3c2c90=_0x2bbd9f['normal']){'function'==typeof _0x1213ba?_0x107dd5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1213ba,'label':_0x4532e4,'priority':_0x3c2c90}):this['_itemLabels']['set'](_0x1213ba,_0x4532e4);}['registerAttributeLabel'](_0x45b9fb,_0x143835){this['_attributeLabels']['set'](_0x45b9fb,_0x143835);}['getItemLabel'](_0x49832e,_0x3ffcf3=0x1){let _0x40c6e2;for(const _0x11393b of this['_itemLabelsCallbacks'])if(_0x11393b['matchingCallback'](_0x49832e)){_0x40c6e2=_0x11393b['label'];break;}return _0x40c6e2||(_0x40c6e2=this['_itemLabels']['get'](_0x49832e['name'])),_0x40c6e2?_0x40c6e2(_0x3ffcf3):0x1!==_0x3ffcf3?_0x3ffcf3+'\x20'+_0x49832e['name']+'s':''+_0x49832e['name'];}['_addDescriptionItems'](_0x2563a8,_0x5f0193){const _0x4987c7=_0x5f0193['getFirstRange']()['getWalker'](),_0x227284='insertion'==_0x5f0193['type']?'add':'remove';for(const _0x4cadb1 of _0x4987c7){const _0x406a75=_0x4cadb1['item'],_0x16c5c2=_0x2563a8[_0x2563a8['length']-0x1];if(_0x406a75['is']('$textProxy'))_0x16c5c2&&_0x16c5c2['type']['indexOf']('Container')>-0x1&&_0x2563a8['pop'](),_0x16c5c2&&'text'==_0x16c5c2['type']?_0x16c5c2[_0x227284]+=_0x406a75['data']:_0x2563a8['push']({'type':'text','add':'add'==_0x227284?_0x406a75['data']:'','remove':'remove'==_0x227284?_0x406a75['data']:''});else{if(this['_schema']['isObject'](_0x406a75)){const _0x441ca1=_0x406a75;if(_0x16c5c2&&_0x16c5c2['type']['indexOf']('Container')>-0x1&&_0x2563a8['pop'](),'elementEnd'==_0x4cadb1['type'])continue;_0x16c5c2&&_0x16c5c2['type']==_0x227284+'Object'&&_0x16c5c2['element']['name']==_0x441ca1['name']?_0x16c5c2['quantity']++:_0x2563a8['push']({'type':_0x227284+'Object','element':_0x441ca1,'quantity':0x1}),_0x4987c7['skip'](_0xfc04f4=>!('elementEnd'==_0xfc04f4['type']&&_0xfc04f4['item']==_0x406a75));}else{if(this['_schema']['checkChild'](_0x406a75,'$text')||_0x406a75['is']('element','softBreak')){const _0x5b4e51=_0x406a75;if('add'==_0x227284&&'elementStart'==_0x4cadb1['type']||'remove'==_0x227284&&'elementEnd'==_0x4cadb1['type'])continue;if(_0x16c5c2&&-0x1==_0x16c5c2['type']['indexOf']('Container')){'text'==_0x16c5c2['type']&&(_0x16c5c2[_0x227284]+='\x0a');continue;}let _0xf7b8b2;if(_0xf7b8b2='add'==_0x227284?_0x5b4e51['nextSibling']&&!this['_schema']['isObject'](_0x5b4e51['nextSibling'])?_0x5b4e51['nextSibling']:null:_0x5b4e51['previousSibling']&&!this['_schema']['isObject'](_0x5b4e51['previousSibling'])?_0x5b4e51['previousSibling']:null,_0x5b4e51['isEmpty']||_0xf7b8b2&&_0xf7b8b2['isEmpty']){const _0x2bd06b=_0xf7b8b2&&_0xf7b8b2['isEmpty']?_0xf7b8b2:_0x5b4e51;_0x16c5c2&&_0x16c5c2['type']==_0x227284+'EmptyContainer'&&_0x16c5c2['element']['name']==_0x2bd06b['name']?_0x16c5c2['quantity']++:_0x2563a8['push']({'type':_0x227284+'EmptyContainer','element':_0x2bd06b,'quantity':0x1});}else _0x2563a8['push']({'type':_0x227284+'Container','element':_0x5b4e51});}}}}}['_resolveDescriptionItems'](_0x483015){const _0x4abc11=this['_locale'],_0xfb2394=[],_0x167e6c=[],_0x8f4c50=[];for(const _0x1867d4 of _0x483015)switch(_0x1867d4['type']){case'text':if(_0x1867d4['add']=_0x1867d4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1867d4['remove']=_0x1867d4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1867d4['add']&&''!=_0x1867d4['remove']){_0xfb2394['push']({'type':'replace','content':c(_0x4abc11,'REPLACE_TEXT',['\x22'+_0x1867d4['remove']+'\x22','\x22'+_0x1867d4['add']+'\x22'])});continue;}if(null!=_0x1867d4['add']['match'](/^ +$/)){_0xfb2394['push']({'type':'insertion','content':c(_0x4abc11,'*Insert:*\x20%0',c(_0x4abc11,'ELEMENT_SPACE',_0x1867d4['add']['length']))});continue;}if(null!=_0x1867d4['remove']['match'](/^ +$/)){_0xfb2394['push']({'type':'deletion','content':c(_0x4abc11,'*Remove:*\x20%0',c(_0x4abc11,'ELEMENT_SPACE',_0x1867d4['remove']['length']))});continue;}if(''!=_0x1867d4['add']){_0xfb2394['push']({'type':'insertion','content':c(_0x4abc11,'*Insert:*\x20%0','\x22'+_0x1867d4['add']+'\x22')});continue;}_0xfb2394['push']({'type':'deletion','content':c(_0x4abc11,'*Remove:*\x20%0','\x22'+_0x1867d4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xfb2394['push']({'type':'insertion','content':c(_0x4abc11,'*Insert:*\x20%0',this['getItemLabel'](_0x1867d4['element'],_0x1867d4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xfb2394['push']({'type':'deletion','content':c(_0x4abc11,'*Remove:*\x20%0',this['getItemLabel'](_0x1867d4['element'],_0x1867d4['quantity']))});continue;case'addContainer':_0xfb2394['push']({'type':'insertion','content':c(_0x4abc11,'*Split:*\x20%0',this['getItemLabel'](_0x1867d4['element'],_0x1867d4['quantity']))});continue;case'removeContainer':_0xfb2394['push']({'type':'deletion','content':c(_0x4abc11,'*Merge:*\x20%0',this['getItemLabel'](_0x1867d4['element'],_0x1867d4['quantity']))});continue;case'addFormat':_0x167e6c['push'](_0x1867d4['key']);continue;case'removeFormat':_0x8f4c50['push'](_0x1867d4['key']);continue;default:_0xfb2394['push'](_0x1867d4);}if(_0x167e6c['length']){const _0x8c5a78=_0x167e6c['map'](_0x3fd46e=>this['_attributeLabels']['has'](_0x3fd46e)?this['_attributeLabels']['get'](_0x3fd46e):_0x3fd46e)['join'](',\x20');_0xfb2394['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x8c5a78)});}if(_0x8f4c50['length']){const _0xb3b9f6=_0x8f4c50['map'](_0x5a70aa=>this['_attributeLabels']['has'](_0x5a70aa)?this['_attributeLabels']['get'](_0x5a70aa):_0x5a70aa)['join'](',\x20');_0xfb2394['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xb3b9f6)});}return _0xfb2394;}['_handleCustomCallbackDescription'](_0x469805){for(const _0x4ebef5 of this['_customCallbacks']){const _0x422144=_0x4ebef5(_0x469805);if(_0x422144&&'type'in _0x422144)return _0x422144;}}['_handleAttributeSuggestionDescription'](_0x5ad07f,_0x541558){const _0x557389=_0x541558['data'],_0x4118ae=void 0x0===_0x557389['newValue']?'removeFormat':'addFormat';_0x5ad07f['push']({'type':_0x4118ae,'key':_0x557389['key']});}['_handleRenameSuggestionDescription'](_0x2be89f,_0x1ed737){_0x2be89f['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1ed737['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x47520e,_0x3e84d4,_0x212ffb){if(this['_addDescriptionItems'](_0x47520e,_0x3e84d4),_0x212ffb&&_0x212ffb['getFirstRange']()&&!_0x3e84d4['getFirstRange']()['end']['isEqual'](_0x212ffb['getFirstRange']()['start'])){const _0x1c6285=_0x47520e[_0x47520e['length']-0x1],_0xff25c1='insertion'==_0x3e84d4['type']?'add':'remove';_0x1c6285&&'text'==_0x1c6285['type']&&(_0x1c6285[_0xff25c1]+='\x0a');}}}class U extends _0x299b22{['afterInit'](){const _0x2a4e6a=this['editor'],_0x1e9a33=_0x2a4e6a['plugins']['get']('TrackChangesEditing');_0x2a4e6a['commands']['get']('showAIAssistant')&&_0x1e9a33['enableCommand']('showAIAssistant');}}class V extends _0x299b22{['afterInit'](){const _0x526dea=this['editor'],_0x35db2a=_0x526dea['locale'];if(!_0x526dea['plugins']['has']('AlignmentEditing'))return;const _0x390ad2=_0x526dea['plugins']['get']('TrackChangesEditing');_0x390ad2['enableDefaultAttributesIntegration']('alignment'),_0x390ad2['registerBlockAttribute']('alignment'),_0x390ad2['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x35db2a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53ee4e=this['editor'],_0x504c47=_0x53ee4e['locale'];_0x53ee4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3084c0=>{if('formatBlock'!=_0x3084c0['type'])return;const {data:_0x4ab167}=_0x3084c0;if(_0x4ab167&&'alignment'==_0x4ab167['commandName']){const _0x1b5086=_0x4ab167['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x504c47,'*Format:*\x20%0',function(_0x5566fd){switch(_0x5566fd){case'left':return c(_0x504c47,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x504c47,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x504c47,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x504c47,'FORMAT_JUSTIFY_TEXT');}}(_0x1b5086))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x299b22{['afterInit'](){const _0x58231d=this['editor'],_0x852bf=_0x58231d['plugins']['get']('TrackChangesEditing'),_0x141889=_0x58231d['locale'];for(const _0x28e75e of Yt){if(!_0x58231d['plugins']['has'](_0x28e75e))continue;const _0x3617e5=_0x28e75e['slice'](0x0,-0x7)['toLowerCase'](),_0x48a2e0='FORMAT_'+_0x3617e5['toUpperCase']();_0x852bf['enableDefaultAttributesIntegration'](_0x3617e5),_0x852bf['registerInlineAttribute'](_0x3617e5),_0x852bf['descriptionFactory']['registerAttributeLabel'](_0x3617e5,c(_0x141889,_0x48a2e0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc081c7=this['editor'],_0x48c83d=_0xc081c7['locale'],_0x34f236=_0xc081c7['plugins']['get']('TrackChangesEditing');function _0x178e2e(_0x395176,_0x3f7c30){_0x34f236['descriptionFactory']['registerDescriptionCallback'](_0x18153a=>{if('formatInline'!=_0x18153a['type'])return;const {data:_0x8ebee4}=_0x18153a;return _0x8ebee4&&_0x8ebee4['commandName']===_0x395176?_0x8ebee4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x48c83d,'*Format:*\x20%0',_0x3f7c30)}:{'type':'format','content':c(_0x48c83d,'*Remove\x20format:*\x20%0',_0x3f7c30)}:void 0x0;});}_0x178e2e('bold',c(_0x48c83d,'FORMAT_BOLD')),_0x178e2e('italic',c(_0x48c83d,'FORMAT_ITALIC')),_0x178e2e('underline',c(_0x48c83d,'FORMAT_UNDERLINE')),_0x178e2e('code',c(_0x48c83d,'FORMAT_CODE')),_0x178e2e('strikethrough',c(_0x48c83d,'FORMAT_STRIKETHROUGH')),_0x178e2e('subscript',c(_0x48c83d,'FORMAT_SUBSCRIPT')),_0x178e2e('superscript',c(_0x48c83d,'FORMAT_SUPERSCRIPT'));}}class G extends _0x299b22{['afterInit'](){const _0x553925=this['editor'],_0x516f3f=_0x553925['locale'];if(!_0x553925['plugins']['has']('BlockQuoteEditing'))return;const _0x72add2=_0x553925['plugins']['get']('TrackChangesEditing'),_0xdabea=this['editor']['commands']['get']('blockQuote');_0x72add2['enableCommand']('blockQuote',(_0x404689,_0x49fe01={})=>{const _0x3536d4=this['editor']['model']['document']['selection'],_0x3b0f07=_0x49fe01&&void 0x0!==_0x49fe01['forceValue']?_0x49fe01['forceValue']:!_0xdabea['value'];let _0x589835=[];if(_0x3b0f07){const _0x1bd914=Array['from'](_0x3536d4['getSelectedBlocks']())['filter'](_0x3f0483=>to(_0x3f0483)||function(_0x5a65d9,_0x1638e0){const _0x4046a6=_0x1638e0['checkChild'](_0x5a65d9['parent'],'blockQuote'),_0x5cd255=_0x1638e0['checkChild'](['$root','blockQuote'],_0x5a65d9);return _0x4046a6&&_0x5cd255;}(_0x3f0483,this['editor']['model']['schema']));_0x589835=Zt(_0x1bd914,_0x553925['model']);}else{const _0x2cef5b=Array['from'](_0x3536d4['getSelectedBlocks']())['filter'](_0x2ac5c3=>to(_0x2ac5c3));_0x589835=Zt(_0x2cef5b,_0x553925['model']);}_0x553925['model']['change'](()=>{for(const _0x313785 of _0x589835)_0x72add2['markBlockFormat'](_0x313785,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3b0f07}]});});}),_0x72add2['descriptionFactory']['registerDescriptionCallback'](_0x1f36d5=>{const {data:_0x2858c4}=_0x1f36d5;if(_0x2858c4&&'blockQuote'==_0x2858c4['commandName']){const _0x964009=c(_0x516f3f,'ELEMENT_BLOCK_QUOTE');return _0x2858c4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x516f3f,'*Set\x20format:*\x20%0',_0x964009)}:{'type':'format','content':c(_0x516f3f,'*Remove\x20format:*\x20%0',_0x964009)};}});}}function to(_0x357e0f){return'blockQuote'==_0x357e0f['parent']['name'];}class L extends _0x299b22{['afterInit'](){const _0x506f40=this['editor'],_0x2d7c8f=_0x506f40['locale'],_0x4c7b2a=_0x506f40['plugins']['get']('TrackChangesEditing');_0x506f40['plugins']['has']('BookmarkEditing')&&(_0x4c7b2a['enableCommand']('insertBookmark'),_0x4c7b2a['enableDefaultAttributesIntegration']('updateBookmark'),_0x4c7b2a['registerBlockAttribute']('bookmarkId'),_0x4c7b2a['descriptionFactory']['registerDescriptionCallback'](_0x54a459=>{if('insertion'!=_0x54a459['type']&&'deletion'!=_0x54a459['type']&&'attribute'!=_0x54a459['type'])return;const _0x5c52f2=_0x54a459['getContainedElement']();if(null==_0x5c52f2)return;if(!_0x5c52f2['is']('element','bookmark'))return;const _0x50ce8e=_0x5c52f2['getAttribute']('bookmarkId');if('insertion'==_0x54a459['type'])return{'type':'insertion','content':c(_0x2d7c8f,'*Insert:*\x20%0','\x22'+_0x50ce8e+'\x22\x20'+c(_0x2d7c8f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x54a459['type'])return{'type':'deletion','content':c(_0x2d7c8f,'*Remove:*\x20%0','\x22'+_0x50ce8e+'\x22\x20'+c(_0x2d7c8f,'ELEMENT_BOOKMARK'))};const {data:_0x5a3466}=_0x54a459;if(!_0x5a3466||'bookmarkId'!=_0x5a3466['key'])return;return{'type':'format','content':c(_0x2d7c8f,'*Set\x20bookmark:*\x20%0','\x22'+_0x5a3466['newValue']+'\x22')};}));}}class J extends _0x299b22{['afterInit'](){const _0x123678=this['editor'];_0x123678['plugins']['has']('CaseChange')&&(_0x123678['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x123678['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x123678['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x299b22{['afterInit'](){const _0x3a6206=this['editor'];_0x3a6206['commands']['get']('ckbox')&&_0x3a6206['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x299b22{['afterInit'](){const _0xfe98dd=this['editor'];if(!_0xfe98dd['plugins']['has']('CodeBlock'))return;const _0x15cddb=_0xfe98dd['plugins']['get']('TrackChangesEditing'),_0x5eb239=_0xfe98dd['locale'],_0x980329=_0xfe98dd['config']['get']('codeBlock')['languages'],_0x1e855d=_0xfe98dd['commands']['get']('codeBlock');_0x15cddb['enableCommand']('indentCodeBlock'),_0x15cddb['enableCommand']('outdentCodeBlock'),_0x15cddb['enableCommand']('codeBlock',(_0x10adcf,_0x24f9a4={})=>{const _0x2e42ba=_0xfe98dd['model'],_0x468258=_0xfe98dd['model']['document']['selection'],_0x512eb2=_0x24f9a4&&void 0x0!==_0x24f9a4['forceValue']?_0x24f9a4['forceValue']:!_0x1e855d['value'];let _0x330f66;_0x24f9a4['language']||(_0x24f9a4['language']=_0x980329[0x0]['language']),_0x330f66=_0x512eb2?Array['from'](_0x468258['getSelectedBlocks']())['filter'](_0x14ea76=>oo(_0x14ea76)||function(_0x3297d4,_0x460b8e){if(_0x3297d4['is']('rootElement')||_0x460b8e['isLimit'](_0x3297d4))return!0x1;return _0x460b8e['checkChild'](_0x3297d4['parent'],'codeBlock');}(_0x14ea76,_0x2e42ba['schema'])):Array['from'](_0x468258['getSelectedBlocks']())['filter'](_0x3fcbde=>oo(_0x3fcbde));const _0x41a699=Zt(_0x330f66,_0x2e42ba);_0x2e42ba['change'](()=>{for(const _0x4945d8 of _0x41a699)_0x15cddb['markBlockFormat'](_0x4945d8,{'commandName':'codeBlock','commandParams':[{..._0x24f9a4,'forceValue':_0x512eb2}],'formatGroupId':'blockName'});});}),(_0x15cddb['descriptionFactory']['registerElementLabel']('codeBlock',_0x2029c5=>c(_0x5eb239,'ELEMENT_CODE_BLOCK',_0x2029c5)),_0x15cddb['descriptionFactory']['registerDescriptionCallback'](_0x5a1045=>{if('formatBlock'!=_0x5a1045['type'])return;const _0x52136e=_0x5eb239['t'],{data:_0x2cdc91}=_0x5a1045;if(!_0x2cdc91||'codeBlock'!=_0x2cdc91['commandName'])return;const _0x58e3be=_0x2cdc91['commandParams'][0x0]['language'],_0x17d888=_0x52136e(_0x980329['find'](_0x5aace3=>_0x5aace3['language']===_0x58e3be)['label'])['toLowerCase']();return _0x2cdc91['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5eb239,'*Set\x20format:*\x20%0',c(_0x5eb239,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x17d888+')')}:{'type':'format','content':c(_0x5eb239,'*Remove\x20format:*\x20%0',c(_0x5eb239,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0xb8108a){return'codeBlock'==_0xb8108a['name'];}class q extends _0x299b22{['afterInit'](){const _0x119675=this['editor'];if(!_0x119675['plugins']['has']('CommentsEditing'))return;_0x119675['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x59f239,_0xba5bc1,_0x2ee8f3){const _0x29312e=[];for(const _0x382f45 of _0xba5bc1['getItems']())_0x382f45['hasAttribute'](_0x59f239)&&_0x29312e['push'](_0x2ee8f3['createRangeOn'](_0x382f45));return _0x29312e;}function De(_0x2b0697,_0x208ecb,{showActiveMarker:_0x490951=!0x0}={}){const _0x236b83=_0x2b0697['plugins']['get']('TrackChangesEditing');return(_0x64fc91,_0x549cb6,_0x58d0c9)=>{if(!_0x58d0c9['consumable']['test'](_0x549cb6['markerRange'],_0x64fc91['name']))return;const _0x179b29=_0x549cb6['markerRange']['getWalker'](),_0x490d47=_0x549cb6['markerRange']['start'],_0xa9148f=_0x2b0697['model']['schema'];let _0x56ae2d=null,_0x3add1e=null,_0x2a84db=!0x1,_0x33c1e2=!0x1;for(const _0x3caa75 of _0x179b29){const _0x56e7f5=_0x3caa75['item'];_0x2a84db=_0x2a84db||_0xa9148f['isContent'](_0x56e7f5);const _0x1f7a2c=_0x58d0c9['mapper']['toViewElement'](_0x56e7f5);if(_0x1f7a2c&&_0x1f7a2c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3caa75['type']&&(_0xa9148f['isBlock'](_0x56e7f5)&&!_0xa9148f['isLimit'](_0x56e7f5)&&(_0x56e7f5['nextSibling']||_0x490d47['isAtEnd']?_0x56ae2d&&_0x56ae2d['parent']==_0x56e7f5||(_0x56ae2d=_0x56e7f5,_0x307a9c(_0x3caa75['previousPosition']),_0x33c1e2=!0x0):_0x3add1e=_0x3add1e||_0x3caa75['previousPosition']));}function _0x307a9c(_0x5206e2){const {authorId:_0xd77e14}=_0x236b83['_splitMarkerName'](_0x549cb6['markerName']),_0x266714=_0x58d0c9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x208ecb,'data-author-id':_0xd77e14}),_0x3c4a3d=_0x58d0c9['mapper']['toViewPosition'](_0x5206e2);_0x490951&&_0x236b83['activeMarkers']['includes'](_0x549cb6['markerName'])&&_0x58d0c9['writer']['addClass']('ck-suggestion-marker--active',_0x266714),_0x58d0c9['writer']['insert'](_0x3c4a3d,_0x266714),_0x58d0c9['mapper']['bindElementToMarker'](_0x266714,_0x549cb6['markerName']);}_0x2a84db||_0x33c1e2||!_0x3add1e||_0x307a9c(_0x3add1e);};}class z extends _0x299b22{static get['requires'](){return[_0x4d0733];}['init'](){const _0x28d6f3=this['editor'],_0x199c5f=_0x28d6f3['plugins']['get']('TrackChangesEditing');_0x199c5f['enableCommand']('delete');const _0x48add2=_0x28d6f3['commands']['get']('deleteForward');_0x199c5f['enableCommand']('deleteForward',(_0x2399d6,_0xc24f13={})=>{const _0x2644f6=_0x28d6f3['model']['createSelection'](_0x28d6f3['model']['document']['selection']);_0x2644f6['isCollapsed']&&_0x28d6f3['model']['modifySelection'](_0x2644f6,{'direction':'forward','unit':_0xc24f13['unit']});const _0x306ed7=_0x2644f6['getFirstRange'](),_0x4ded75=_0x507d1e['fromRange'](_0x306ed7);let _0x2f1685;_0x2399d6(_0xc24f13),_0x2f1685='$graveyard'==_0x4ded75['root']['rootName']?_0x28d6f3['model']['createRange'](_0x306ed7['start']):_0x28d6f3['model']['createRange'](_0x4ded75['start'],_0x4ded75['end']),_0x4ded75['detach'](),_0x28d6f3['model']['enqueueChange'](_0x48add2['buffer']['batch'],_0x516558=>{_0x48add2['buffer']['lock'](),_0x516558['setSelection'](_0x516558['createRange'](_0x2f1685['end'])),_0x48add2['buffer']['unlock']();});}),_0x28d6f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x28d6f3,'merge'),{'priority':'high'}),_0x28d6f3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2c8b6a,_0x19de05,_0x3b5a9f)=>{_0x3b5a9f['options']['showSuggestionHighlights']&&De(_0x28d6f3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2c8b6a,_0x19de05,_0x3b5a9f);},{'priority':'high'}),_0x28d6f3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5bb317,_0xf38313,_0x5a246c)=>{const _0x2f7a53=_0x5a246c['mapper']['markerNameToElements'](_0xf38313['markerName']);if(_0x2f7a53){for(const _0x4a9f0f of _0x2f7a53)_0x4a9f0f['is']('uiElement')&&(_0x5a246c['mapper']['unbindElementFromMarkerName'](_0x4a9f0f,_0xf38313['markerName']),_0x5a246c['writer']['remove'](_0x4a9f0f));}},{'priority':'high'});}}class W extends _0x299b22{['afterInit'](){const _0x64959a=this['editor'];if(!_0x64959a['plugins']['has']('ListEditing'))return;const _0x44cecd=_0x64959a['locale'],_0x2a60a6=_0x64959a['plugins']['get']('TrackChangesEditing'),_0x5cb75f=_0x64959a['plugins']['has']('TodoListEditing'),_0x571ab5=!!_0x64959a['config']['get']('list.multiBlock');function _0x44b7b0(_0x4cf961){return{'type':'format','content':''+c(_0x44cecd,'*Set\x20format:*\x20%0',_0x4cf961)};}function _0x3c924b(_0x2455f7){return{'type':'format','content':''+c(_0x44cecd,'*Remove\x20format:*\x20%0',_0x2455f7)};}_0x2a60a6['enableDefaultAttributesIntegration']('numberedList'),_0x2a60a6['enableDefaultAttributesIntegration']('bulletedList'),_0x2a60a6['enableDefaultAttributesIntegration']('customNumberedList'),_0x2a60a6['enableDefaultAttributesIntegration']('customBulletedList'),_0x2a60a6['enableDefaultAttributesIntegration']('indentList'),_0x2a60a6['enableDefaultAttributesIntegration']('outdentList'),_0x2a60a6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2a60a6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2a60a6['registerBlockAttribute']('listItemId'),_0x2a60a6['registerBlockAttribute']('listType'),_0x2a60a6['registerBlockAttribute']('listIndent'),_0x571ab5&&(_0x2a60a6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2a60a6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5cb75f&&(_0x2a60a6['enableDefaultAttributesIntegration']('todoList'),_0x2a60a6['enableDefaultAttributesIntegration']('checkTodoList'),_0x2a60a6['registerBlockAttribute']('todoListChecked'),_0x2a60a6['descriptionFactory']['registerDescriptionCallback'](_0x15fbf9=>{const {data:_0x1e2e73}=_0x15fbf9;if(_0x1e2e73&&'todoListChecked'==_0x1e2e73['key'])return{'type':'format','content':_0x1e2e73['newValue']?c(_0x44cecd,'*Check\x20item*'):c(_0x44cecd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4abce9=>{if(_0x4abce9['batch']['isUndo'])return!0x1;let _0x29cb31=!0x1;const _0x334ce5=_0x2a60a6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x117213=>'todoListChecked'===_0x2a60a6['_getAttributeKey'](_0x117213));for(const _0x51e2b5 of _0x334ce5){'todo'!=_0x51e2b5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2a60a6['_findSuggestions'](_0x51e2b5['getFirstRange'](),'attribute')['find'](_0x236409=>'listType'===_0x2a60a6['_getAttributeKey'](_0x236409['suggestion']))||(_0x4abce9['removeMarker'](_0x51e2b5['getFirstMarker']()),_0x29cb31=!0x0));}return _0x29cb31;})),_0x2a60a6['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x44cecd,'FORMAT_INDENT'));const _0x76efe8={'type':'format','content':''};_0x2a60a6['descriptionFactory']['registerDescriptionCallback'](_0x4b73b8=>{const {data:_0x6da90b}=_0x4b73b8;if(!_0x6da90b||'listType'!=_0x6da90b['key'])return;let _0x1416fb=_0x4b73b8['head'];for(;_0x1416fb;){if(_0x1416fb['data']&&(('listStyle'==_0x1416fb['data']['key']||'listMarkerStyle'==_0x1416fb['data']['key'])&&(_0x1416fb['data']['newValue']&&'default'!=_0x1416fb['data']['newValue']||'default'!=_0x1416fb['data']['oldValue']&&!_0x6da90b['newValue'])||!_0x571ab5&&_0x1416fb['data']['key']==u))return _0x76efe8;_0x1416fb=_0x1416fb['next'];}if(null==_0x6da90b['newValue'])switch(_0x6da90b['oldValue']){case'bulleted':return _0x3c924b(c(_0x44cecd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c924b(c(_0x44cecd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c924b(c(_0x44cecd,'ELEMENT_TODO_LIST'));}switch(_0x6da90b['newValue']){case'bulleted':return _0x44b7b0(c(_0x44cecd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x44b7b0(c(_0x44cecd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x44b7b0(c(_0x44cecd,'ELEMENT_TODO_LIST'));}}),_0x2a60a6['descriptionFactory']['registerDescriptionCallback'](_0x41bf4b=>{const {data:_0x34af44}=_0x41bf4b;if(_0x34af44&&'listIndent'==_0x34af44['key'])return null==_0x34af44['newValue']||null==_0x34af44['oldValue']&&0x0==_0x34af44['newValue']?_0x76efe8:void 0x0;}),_0x2a60a6['descriptionFactory']['registerDescriptionCallback'](_0x361cf7=>{if('attribute'!=_0x361cf7['type'])return;const {data:_0x5ec14a}=_0x361cf7;if(!_0x5ec14a||'listItemId'!=_0x5ec14a['key'])return;const _0x3b2b6b=Te(_0x361cf7);return'newValue'==_0x3b2b6b?{'type':'format','content':c(_0x44cecd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3b2b6b?{'type':'format','content':c(_0x44cecd,'*Split:*\x20list\x20item')}:_0x76efe8;}),_0x64959a['model']['document']['registerPostFixer'](_0x5b44b3=>this['listItemIdFixer'](_0x5b44b3)),_0x64959a['model']['document']['registerPostFixer'](_0x482c18=>this['noTrackChangesFixer'](_0x482c18)),_0x64959a['model']['document']['on']('change:data',(_0x4f7d27,_0x11ce21)=>{if(_0x11ce21['isUndo']||!_0x11ce21['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x487b28){if(_0x487b28['batch']['isUndo']||!_0x487b28['batch']['isLocal'])return!0x1;let _0x329018=!0x1;const _0x29dbd3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12d32c=>_0x12d32c['data']&&'listItemId'==_0x12d32c['data']['key'])['filter'](_0x1a0d4f=>_0x1a0d4f['data']['newValue']&&_0x1a0d4f['data']['oldValue']);for(const _0x4cc0dd of _0x29dbd3)Te(_0x4cc0dd)||(_0x487b28['removeMarker'](_0x4cc0dd['getFirstMarker']()),_0x329018=!0x0);return _0x329018;}['noTrackChangesFixer'](_0x232737){if(_0x232737['batch']['isUndo']||!_0x232737['batch']['isLocal'])return!0x1;const _0x30a304=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30a304['trackChangesCommand']['value'])return!0x1;let _0x449f71=!0x1;const _0x5219b5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x31a592=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4aaa0b=>'attribute'==_0x4aaa0b['type'])['filter'](_0x99f584=>_0x5219b5['includes'](_0x99f584['attributeKey']));if(0x0==_0x31a592['length'])return _0x449f71;for(const _0x46bf87 of _0x31a592){const _0x542604=_0x30a304['_findSuggestions'](_0x46bf87['range'],'attribute')['filter'](_0x15d851=>!_0x15d851['meta']['isNextTo'])['map'](_0x14f108=>_0x14f108['suggestion'])['filter'](_0x104278=>{const _0x1f2555=_0x30a304['_getAttributeKey'](_0x104278);return _0x5219b5['includes'](_0x1f2555);});if(_0x542604['length']){for(const _0x29e75c of _0x542604)_0x232737['removeMarker'](_0x29e75c['getFirstMarker']());_0x449f71=!0x0;}}return _0x449f71;}['assureChains'](){const _0x11c845=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ae3b5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x44f846;const _0x3b93c4=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2593b4=>{if(_0x2593b4['data']['oldRange']||!_0x2593b4['data']['newRange'])return null;if(!_0x2593b4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2e02f5}=_0x11c845['_splitMarkerName'](_0x2593b4['name']);if(!_0x11c845['hasSuggestion'](_0x2e02f5))return null;const _0x5a19cf=_0x11c845['getSuggestion'](_0x2e02f5);return _0x1ae3b5['includes'](_0x5a19cf['data']['key']);})['map'](_0x235750=>{const {id:_0x5b0049}=_0x11c845['_splitMarkerName'](_0x235750['name']),_0x17f611=_0x11c845['getSuggestion'](_0x5b0049);return _0x44f846=_0x17f611['attributes']['groupId'],_0x17f611['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3b93c4['size'])return;const _0x586386=_0x11c845['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfc2ef4=>'attribute'==_0xfc2ef4['type']&&_0xfc2ef4['data']&&_0x1ae3b5['includes'](_0xfc2ef4['data']['key'])&&_0xfc2ef4['attributes']['groupId']!=_0x44f846)['map'](_0x1a4a31=>({'listItem':_0x1a4a31['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1a4a31['attributes']['groupId']})),_0x59acef=new Set();for(const {groupId:_0x22fb7d,listItem:_0x209053}of _0x586386)_0x3b93c4['has'](_0x209053)&&_0x59acef['add'](_0x22fb7d);for(const _0x803f42 of _0x11c845['getSuggestions']())_0x59acef['has'](_0x803f42['attributes']['groupId'])&&_0x803f42['setAttribute']('groupId',_0x44f846);}['_supportLegacySuggestions'](){const _0x576a7a=this['editor'],_0xe958db=_0x576a7a['locale'],_0x497d2e=_0x576a7a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x497d2e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1f3643,_0x2a1467){const _0xf8023a=[];for(let _0x59ef0b of _0x1f3643)_0x59ef0b['start']['nodeAfter']===_0x59ef0b['end']['parent']&&(_0x59ef0b=_0x576a7a['model']['createRange'](_0x576a7a['model']['createPositionAt'](_0x59ef0b['start']['nodeAfter'],0x0))),_0xf8023a['push'](_0x59ef0b);_0x576a7a['model']['change'](_0x5b9554=>{const _0x598ba1=_0x576a7a['model']['document']['selection'],_0x14969c=Array['from'](_0x598ba1['getRanges']())['map'](_0x496fa6=>_0x507d1e['fromRange'](_0x496fa6));_0x5b9554['setSelection'](_0xf8023a),_0x576a7a['commands']['get'](_0x2a1467['commandName'])['refresh'](),_0x2a1467['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x576a7a['execute'](_0x2a1467['commandName'],..._0x2a1467['commandParams']),_0x5b9554['setSelection'](_0x14969c);for(const _0x48429d of _0x14969c)_0x48429d['detach']();});}),_0x497d2e['descriptionFactory']['registerElementLabel'](function(_0x46f7a0){const _0x8b8026=!_0x576a7a['model']['schema']['isObject'](_0x46f7a0),_0x276a63=_0x46f7a0['previousSibling'],_0x31a956=_0x46f7a0['nextSibling'],_0x1f0b5c=_0x46f7a0['getAttribute']('listItemId'),_0x320a02=!_0x276a63||_0x276a63['getAttribute']('listItemId')!==_0x1f0b5c,_0x47132b=!_0x31a956||_0x31a956['getAttribute']('listItemId')!==_0x1f0b5c;return _0x8b8026&&Boolean(_0x1f0b5c)&&_0x320a02&&_0x47132b;},_0x1404fb=>c(_0xe958db,'ELEMENT_LIST_ITEM',_0x1404fb));}['_registerLegacyDescription'](){const _0x83e1e4=this['editor'],_0x28f467=_0x83e1e4['locale'];function _0x3e31ea(_0x3191f6){const _0x39d451=_0x83e1e4['commands']['get']('bulletedList')['value'],_0x42ada9=_0x83e1e4['commands']['get']('numberedList')['value'];return'numberedList'===_0x3191f6?_0x39d451:_0x42ada9;}_0x83e1e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x101eac){if('formatBlock'!=_0x101eac['type'])return;const {data:_0x3affb8}=_0x101eac;if(!_0x3affb8)return;let _0x7fe1e2,_0x2bd308,_0x44da51,_0x2bf3b9;switch(_0x3affb8['commandName']){case'bulletedList':_0x44da51=_0x3affb8['commandParams'][0x0]['forceValue'],_0x2bf3b9=_0x3e31ea(_0x3affb8['commandName']),_0x7fe1e2=_0x44da51?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2bf3b9&&_0x83e1e4['config']['get']('list.multiBlock')||(_0x7fe1e2='*Change\x20to:*\x20%0'),_0x2bd308={'type':'format','content':c(_0x28f467,_0x7fe1e2,c(_0x28f467,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x44da51=_0x3affb8['commandParams'][0x0]['forceValue'],_0x2bf3b9=_0x3e31ea(_0x3affb8['commandName']),_0x7fe1e2=_0x44da51?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2bf3b9&&_0x83e1e4['config']['get']('list.multiBlock')||(_0x7fe1e2='*Change\x20to:*\x20%0'),_0x2bd308={'type':'format','content':c(_0x28f467,_0x7fe1e2,c(_0x28f467,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x7fe1e2='*Indent:*\x20%0',_0x2bd308={'type':'format','content':c(_0x28f467,_0x7fe1e2,c(_0x28f467,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x7fe1e2=function(_0x44c0ff){const _0x3616a6=_0x44c0ff['getFirstRange']();let _0xfb1e25=_0x3616a6['start']['nodeAfter'];for(;_0xfb1e25&&_0x3616a6['containsItem'](_0xfb1e25);){if(_0xfb1e25['getAttribute']('listIndent')>0x0)return!0x1;_0xfb1e25=_0xfb1e25['nextSibling'];}return!0x0;}(_0x101eac)?c(_0x28f467,'*Format:*\x20remove\x20from\x20%0',c(_0x28f467,function(_0x40e767){return'ELEMENT_'+_0x40e767['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x101eac))):c(_0x28f467,'*Outdent:*\x20%0',c(_0x28f467,'ELEMENT_LIST_ITEM')),_0x2bd308={'type':'format','content':_0x7fe1e2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3affb8['multipleBlocks']&&(_0x7fe1e2='*Merge:*\x20%0',_0x2bd308={'type':'deletion','content':c(_0x28f467,_0x7fe1e2,c(_0x28f467,'ELEMENT_LIST_ITEM'))});}return _0x2bd308;});}}function Te(_0x48d752){let _0x5beb54=_0x48d752['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5beb54;){const _0x5cfb43=_0x5beb54['getAttribute']('listItemId');if(!_0x5cfb43)return!0x1;if(_0x5cfb43==_0x48d752['data']['newValue'])return'newValue';if(_0x5cfb43==_0x48d752['data']['oldValue'])return'oldValue';_0x5beb54=_0x5beb54['previousSibling'];}return!0x1;}class Se extends _0x299b22{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1d9039=this['editor']['config']['get']('list.properties'),_0x187b76=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d9039['styles']&&(_0x187b76['enableDefaultAttributesIntegration']('listStyle'),_0x187b76['registerBlockAttribute']('listStyle')),_0x1d9039['reversed']&&(_0x187b76['enableDefaultAttributesIntegration']('listReversed'),_0x187b76['registerBlockAttribute']('listReversed')),_0x1d9039['startIndex']&&(_0x187b76['enableDefaultAttributesIntegration']('listStart'),_0x187b76['registerBlockAttribute']('listStart'));const _0x2d15c7={'type':'format','content':''};_0x187b76['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2d2bdb=this['editor']['locale'];_0x187b76['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2d2bdb,'FORMAT_LIST_REVERSED')),_0x187b76['descriptionFactory']['registerDescriptionCallback'](_0x1b3a6f=>{const {data:_0x46de74}=_0x1b3a6f;if(_0x46de74&&'listReversed'==_0x46de74['key'])return null==_0x46de74['newValue']||0x0==_0x46de74['newValue']&&null==_0x46de74['oldValue']?_0x2d15c7:void 0x0;}),_0x187b76['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2d2bdb,'FORMAT_LIST_START')),_0x187b76['descriptionFactory']['registerDescriptionCallback'](_0x4d2aa9=>{const {data:_0x1a8fb4}=_0x4d2aa9;if(_0x1a8fb4&&'listStart'==_0x1a8fb4['key'])return null==_0x1a8fb4['newValue']||0x1==_0x1a8fb4['newValue']&&null==_0x1a8fb4['oldValue']?_0x2d15c7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xadc22c=>{if(_0xadc22c['batch']['isUndo'])return!0x1;let _0x2d15e9=!0x1;const _0x46d30f=_0x187b76['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe302f4=>{const _0x2e7a65=_0x187b76['_getAttributeKey'](_0xe302f4);return'listStart'==_0x2e7a65||'listReversed'==_0x2e7a65;});for(const _0x415c3a of _0x46d30f){const _0x1afc7c=_0x415c3a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1afc7c||'customNumbered'==_0x1afc7c)continue;_0x187b76['_findSuggestions'](_0x415c3a['getFirstRange'](),'attribute')['find'](_0x4fec24=>'listType'==_0x187b76['_getAttributeKey'](_0x4fec24['suggestion']))||(_0xadc22c['removeMarker'](_0x415c3a['getFirstMarker']()),_0x2d15e9=!0x0);}return _0x2d15e9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x127116){const _0x14c00b=this['editor']['locale'],{data:_0x590365}=_0x127116,_0x1ecdf1={'type':'format','content':''};if(!_0x590365||'listStyle'!=_0x590365['key'])return;if(!_0x590365['oldValue'])return'default'==_0x590365['newValue']?_0x1ecdf1:{'type':'format','content':''+c(_0x14c00b,'*Set\x20format:*\x20%0',c(_0x14c00b,this['_getTranslationKeyForListStyle'](_0x590365['newValue'])))};if(!_0x590365['newValue']){if('default'==_0x590365['oldValue'])return _0x1ecdf1;let _0x474d90=_0x127116['head'];for(;_0x474d90;){if(_0x474d90['data']&&'listType'==_0x474d90['data']['key']&&_0x474d90['data']['newValue'])return _0x1ecdf1;_0x474d90=_0x474d90['next'];}return{'type':'format','content':''+c(_0x14c00b,'*Remove\x20format:*\x20%0',c(_0x14c00b,this['_getTranslationKeyForListStyle'](_0x590365['oldValue'])))};}if('default'!=_0x590365['newValue'])return{'type':'format','content':''+c(_0x14c00b,'*Set\x20format:*\x20%0',c(_0x14c00b,this['_getTranslationKeyForListStyle'](_0x590365['newValue'])))};let _0x43c51d=_0x127116['head'];for(;_0x43c51d;){if(_0x43c51d['data']&&'listType'==_0x43c51d['data']['key']&&_0x43c51d['data']['newValue']&&_0x43c51d['data']['oldValue'])return _0x1ecdf1;_0x43c51d=_0x43c51d['next'];}return{'type':'format','content':c(_0x14c00b,'*Set\x20format:*\x20%0',c(_0x14c00b,'ELEMENT_'+_0x127116['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4b75d7=this['editor'],_0x1f5acb=_0x4b75d7['locale'];_0x4b75d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d0669=>{if('formatBlock'!=_0x5d0669['type'])return;const {data:_0x31ecef}=_0x5d0669;if(!_0x31ecef)return;let _0x460281,_0x349a18;switch(_0x31ecef['commandName']){case'listStyle':_0x460281='*Change\x20to:*\x20%0',_0x349a18={'type':'format','content':c(_0x1f5acb,_0x460281,c(_0x1f5acb,this['_getTranslationKeyForListStyle'](_0x31ecef['commandParams'][0x0]['type'])))};break;case'listReversed':_0x460281=_0x31ecef['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x349a18={'type':'format','content':c(_0x1f5acb,_0x460281)};break;case'listStart':_0x460281='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x349a18={'type':'format','content':c(_0x1f5acb,_0x460281,_0x31ecef['commandParams'][0x0]['startIndex'])};}return _0x349a18;});}['_getTranslationKeyForListStyle'](_0xf11a52){return'ELEMENT_'+function(_0x894dc1){if(_e['includes'](_0x894dc1))return'bulleted';if(Re['includes'](_0x894dc1))return'numbered';return null;}(_0xf11a52)['toUpperCase']()+'_LIST_'+_0xf11a52['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x299b22{['afterInit'](){const _0x1ee703=this['editor'];_0x1ee703['commands']['get']('emoji')&&_0x1ee703['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x299b22{static get['requires'](){return[_0x217479];}['init'](){const _0x3e9295=this['editor'],_0x34d80f=_0x3e9295['plugins']['get']('TrackChangesEditing'),_0x8f1a0c=_0x3e9295['commands']['get']('enter');_0x34d80f['enableCommand']('enter',()=>{_0x3e9295['model']['change'](_0x1a7b06=>{const _0x40ede4=_0x3e9295['model']['document']['selection'],_0x54512e=_0x40ede4['getFirstPosition'](),_0x56a0aa=_0x507d1e['fromRange'](_0x40ede4['getFirstRange']());if(_0x8f1a0c['enterBlock'](_0x1a7b06)){const _0xc1aa21=_0x3e9295['model']['createPositionAt'](_0x54512e['parent']['nextSibling'],0x0),_0x48411d=_0x1a7b06['createRange'](_0x54512e,_0xc1aa21);_0x34d80f['markInsertion'](_0x48411d);}else _0x1a7b06['setSelection'](_0x1a7b06['createRange'](_0x56a0aa['end']));_0x56a0aa['detach'](),_0x8f1a0c['fire']('afterExecute',{'writer':_0x1a7b06});});}),_0x3e9295['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3e9295,'split'),{'priority':'high'}),_0x3e9295['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b78bc,_0x4f95a6,_0x12ce83)=>{const _0x368c08=_0x12ce83['mapper']['markerNameToElements'](_0x4f95a6['markerName']);if(_0x368c08){for(const _0x2259fd of _0x368c08)_0x2259fd['hasClass']('ck-suggestion-marker-split')&&(_0x12ce83['mapper']['unbindElementFromMarkerName'](_0x2259fd,_0x4f95a6['markerName']),_0x12ce83['writer']['remove'](_0x2259fd));}},{'priority':'high'}),_0x3e9295['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x32b4cc,_0x1d5427,_0x2f751f)=>{_0x2f751f['options']['showSuggestionHighlights']&&De(_0x3e9295,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x32b4cc,_0x1d5427,_0x2f751f);},{'priority':'high'});}}class Z extends _0x299b22{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x592f66=this['editor']['plugins']['get']('TrackChangesEditing');_0x592f66['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x592f66['enableCommand']('findNext'),_0x592f66['enableCommand']('findPrevious'),_0x592f66['enableCommand']('replace'),_0x592f66['enableCommand']('replaceAll');}['handleFindCommand'](_0x3d0818,_0x1fc2dd,_0x576547={}){const _0xd5c3b3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3d0818(_0x26ede5=>{let _0x2fde72=('string'==typeof _0x1fc2dd?_0xd5c3b3['findByTextCallback'](_0x1fc2dd,_0x576547):_0x1fc2dd)(_0x26ede5);Array['isArray'](_0x2fde72)&&(_0x2fde72={'results':_0x2fde72,'searchText':'string'==typeof _0x1fc2dd?_0x1fc2dd:''});const _0x2542a5=_0x2fde72['results']['filter'](_0x3fde99=>!0x1===this['_isInDeletionRange'](_0x3fde99,_0x26ede5['item']));return{..._0x2fde72,'results':_0x2542a5};},_0x576547);}['_isInDeletionRange'](_0x3038c2,_0x1aa50c){const _0xba71e5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1aa50c,_0x3038c2['start']),this['editor']['model']['createPositionAt'](_0x1aa50c,_0x3038c2['end']));for(const _0x1befdf of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xba71e5['getIntersection'](_0x1befdf['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x299b22{['afterInit'](){const _0x1a3bf4=this['editor']['locale'],_0x223a19=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3c932a,commandName:_0x4c4817}of eo)this['editor']['plugins']['has'](_0x3c932a)&&(_0x223a19['enableDefaultAttributesIntegration'](_0x4c4817),_0x223a19['registerInlineAttribute'](_0x4c4817));_0x223a19['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x1a3bf4,'FORMAT_FONT_SIZE')),_0x223a19['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x1a3bf4,'FORMAT_FONT_FAMILY')),_0x223a19['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x1a3bf4,'FORMAT_FONT_COLOR')),_0x223a19['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x1a3bf4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10acf3=this['editor'],_0x530950=_0x10acf3['locale'];_0x10acf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xffce34=>{const _0x1b85ef=_0x530950['t'];if('formatInline'!=_0xffce34['type'])return;const {data:_0x35fd63}=_0xffce34;if(null!=_0x35fd63){if('fontSize'==_0x35fd63['commandName']){const _0x4d1b06=_0x35fd63['commandParams'][0x0]['value'];if(_0x4d1b06){const _0x31ef2c=_0x1b85ef(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4972ea=>_0x4972ea['model']==_0x4d1b06)['title'])['toLowerCase']();return{'type':'format','content':c(_0x530950,'*Set\x20font\x20size:*\x20%0',_0x31ef2c)};}return{'type':'format','content':c(_0x530950,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x35fd63['commandName']){const _0x56e6b3=_0x35fd63['commandParams'][0x0]['value'];return _0x56e6b3?{'type':'format','content':c(_0x530950,'*Set\x20font\x20family:*\x20%0',_0x56e6b3)}:{'type':'format','content':c(_0x530950,'*Reset\x20font\x20family*')};}if('fontColor'==_0x35fd63['commandName']){const _0x3cf84f=_0x35fd63['commandParams'][0x0]['value'];if(_0x3cf84f){const _0x381ff4=_0x718b36(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3ec399=>_0x3ec399['model']==_0x3cf84f);let _0x434f12=_0x3cf84f,_0x3266e8='';return _0x381ff4&&(_0x434f12=_0x381ff4['label'],_0x3266e8=_0x1b85ef(_0x434f12)['toLowerCase']()),{'type':'format','content':c(_0x530950,'*Set\x20font\x20color:*\x20%0',_0x3266e8)['trim'](),'color':{'value':_0x3cf84f,'title':_0x3266e8||_0x434f12}};}return{'type':'format','content':c(_0x530950,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x35fd63['commandName']){const _0x383732=_0x35fd63['commandParams'][0x0]['value'];if(_0x383732){const _0x7f3c86=_0x718b36(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1f5a8f=>_0x1f5a8f['model']==_0x383732);let _0x24a2d9=_0x383732,_0x86beea='';return _0x7f3c86&&(_0x24a2d9=_0x7f3c86['label'],_0x86beea=_0x1b85ef(_0x24a2d9)['toLowerCase']()),{'type':'format','content':c(_0x530950,'*Set\x20font\x20background\x20color:*\x20%0',_0x86beea)['trim'](),'color':{'value':_0x383732,'title':_0x86beea||_0x24a2d9}};}return{'type':'format','content':c(_0x530950,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x299b22{['afterInit'](){const _0x4ec8f5=this['editor'],_0x454dd3=_0x4ec8f5['plugins']['get']('TrackChangesEditing'),_0x29aece=_0x4ec8f5['commands']['get']('copyFormat'),_0x1cc793=_0x4ec8f5['commands']['get']('pasteFormat');_0x29aece&&_0x1cc793&&(_0x454dd3['enableDefaultAttributesIntegration']('pasteFormat'),_0x454dd3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x23487d=this['editor'],_0x170e69=_0x23487d['locale'];_0x23487d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28cb69=>{if('formatBlock'!=_0x28cb69['type']&&'formatInline'!=_0x28cb69['type'])return;const {data:_0xc167bd}=_0x28cb69;if(_0xc167bd&&'pasteFormat'===_0xc167bd['commandName']){const _0x5cce74=[],_0x5b8ab7=_0xc167bd['commandParams'][0x0];for(const [_0x5dd27a,_0x24d6eb]of Object['entries'](_0x5b8ab7))_0x5cce74['push'](ro(_0x23487d,_0x5dd27a,_0x24d6eb));return _0x5cce74['length']?{'type':'format','content':c(_0x170e69,'*Set\x20format\x20to:*\x20%0',_0x5cce74['join'](',\x20'))}:{'type':'format','content':c(_0x170e69,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4a72aa,_0x37b31a,_0x1f429f){const _0x1f45d6=_0x4a72aa['locale']['t'],_0x4e0e5b=_0x37b31a['split'](/(?=[A-Z])/)['join']('\x20'),_0x31fc1b=_0x1f45d6(_0x4e0e5b['charAt'](0x0)['toUpperCase']()+_0x4e0e5b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1f429f)return _0x31fc1b;if('fontColor'===_0x37b31a||'fontBackgroundColor'===_0x37b31a){const _0x1428a8=_0x718b36(_0x4a72aa['config']['get']('fontColor.colors'))['find'](_0x31dd12=>_0x31dd12['model']==_0x1f429f);return _0x31fc1b+'\x20('+(_0x1428a8?_0x1f45d6(_0x1428a8['label'])['toLowerCase']():_0x1f429f)+')';}if('fontSize'===_0x37b31a&&isNaN(parseFloat(_0x1f429f))){const _0x5b5519=_0x4a72aa['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4a72aa['config']['get']('fontSize.options'))['find'](_0x2c725a=>_0x2c725a['model']==_0x1f429f);return _0x31fc1b+'\x20('+(_0x5b5519?_0x1f45d6(_0x5b5519['title'])['toLowerCase']():_0x1f429f)+')';}return _0x31fc1b+'\x20('+_0x1f429f+')';}class nt extends _0x299b22{['_headingOptions'];['afterInit'](){const _0x172861=this['editor'];if(!_0x172861['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x172861['config']['get']('heading.options');const _0x4b6adb=_0x172861['locale'],_0x18ae92=_0x172861['plugins']['get']('TrackChangesEditing');_0x18ae92['enableDefaultAttributesIntegration']('heading');for(const _0x35c3bc of this['_headingOptions'])'paragraph'!=_0x35c3bc['model']&&_0x18ae92['descriptionFactory']['registerElementLabel'](_0x35c3bc['model'],_0x4fdce6=>{const _0x183746=this['_getHeadingLevel'](_0x35c3bc['model']);return null!==_0x183746?_0x26e2d0(_0x4fdce6,_0x183746):_0x38fbfd(_0x4fdce6,_0x35c3bc['title']);});function _0x26e2d0(_0x191e84,_0x4d4fb6){return c(_0x4b6adb,'ELEMENT_HEADING',[_0x191e84,_0x4d4fb6]);}function _0x38fbfd(_0xf002ed,_0x4e6fcc){return c(_0x4b6adb,'ELEMENT_HEADING_CUSTOM',[_0xf002ed,_0x4e6fcc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x273ed5=this['editor'],_0x541847=_0x273ed5['locale'];function _0x23e9f1(_0x19c8c8,_0x125d23){return c(_0x541847,'ELEMENT_HEADING_CUSTOM',[_0x19c8c8,_0x125d23]);}_0x273ed5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51882b=>{if('formatBlock'!=_0x51882b['type'])return;const {data:_0x7ed108}=_0x51882b;if(_0x7ed108&&'heading'==_0x7ed108['commandName']){const _0x36835b=_0x7ed108['commandParams'][0x0]['value'],_0x41f2da=this['_getHeadingLevel'](_0x36835b);if(null!==_0x41f2da)return{'type':'format','content':c(_0x541847,'*Change\x20to:*\x20%0',(_0x2d8292=0x1,_0x30096d=_0x41f2da,c(_0x541847,'ELEMENT_HEADING',[_0x2d8292,_0x30096d])))};const _0xc53516=this['_headingOptions']['find'](_0x1fa12c=>_0x1fa12c['model']===_0x36835b)['title'];return{'type':'format','content':c(_0x541847,'*Change\x20to:*\x20%0',_0x23e9f1(0x1,_0xc53516))};}var _0x2d8292,_0x30096d;});}['_getHeadingLevel'](_0x59bd86){const _0x1749cd=_0x59bd86['match'](/^heading(\d+)/);if(_0x1749cd)return _0x1749cd[0x1];const _0x136e14=this['_headingOptions']?.['find'](_0xc69348=>_0xc69348['model']==_0x59bd86);if(_0x136e14&&_0x136e14['view']){const _0x2409a1=_0x136e14['view'],_0x196114=(_0x2409a1['name']??_0x2409a1)['match'](/^h(\d+)/);if(_0x196114)return _0x196114[0x1];}return null;}}class it extends _0x299b22{['afterInit'](){const _0x38becf=this['editor'];if(!_0x38becf['plugins']['has']('HighlightEditing'))return;const _0x440ae8=_0x38becf['plugins']['get']('TrackChangesEditing'),_0x5cc16f=_0x38becf['locale'];_0x440ae8['enableDefaultAttributesIntegration']('highlight'),_0x440ae8['registerInlineAttribute']('highlight'),_0x440ae8['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5cc16f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b85d8=this['editor'],_0x9aa522=_0x3b85d8['locale'];_0x3b85d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a87c8=>{if('formatInline'!=_0x4a87c8['type'])return;const {data:_0x2e7700}=_0x4a87c8;if(_0x2e7700&&'highlight'==_0x2e7700['commandName']){const _0x5ba38f=_0x9aa522['t'],_0xdc4914=_0x2e7700['commandParams'][0x0]['value'];if(_0xdc4914){const _0x297e2c=_0x3b85d8['config']['get']('highlight.options')['find'](_0x3a7ffd=>_0x3a7ffd['model']==_0xdc4914),_0x11af8d=_0x5ba38f(_0x297e2c['title'])['toLowerCase']();return{'type':'format','content':c(_0x9aa522,'*Set\x20highlight:*\x20%0',_0x11af8d),'color':{'value':_0x297e2c['color'],'title':_0x297e2c['title']}};}return{'type':'format','content':c(_0x9aa522,'*Remove\x20highlight*',c(_0x9aa522,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x299b22{['afterInit'](){const _0x2d83c6=this['editor'];if(!_0x2d83c6['plugins']['has']('HorizontalLineEditing'))return;_0x2d83c6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xf8026d=_0x2d83c6['plugins']['get']('TrackChangesEditing'),_0x2bfb80=_0x2d83c6['locale'];_0xf8026d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1114f0=>c(_0x2bfb80,'ELEMENT_HORIZONTAL_LINE',_0x1114f0)),_0x2d83c6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4877df,{writer:_0x24f801,options:_0x1f09f4})=>{if(!_0x1f09f4['showSuggestionHighlights'])return null;const _0x2656d4=_0x24f801['createContainerElement']('div'),_0x1aeec2=_0x24f801['createEmptyElement']('hr');return _0x24f801['addClass']('ck-horizontal-line',_0x2656d4),_0x24f801['insert'](_0x24f801['createPositionAt'](_0x2656d4,0x0),_0x1aeec2),_0x2656d4;},'converterPriority':'high'});}}class ot extends _0x299b22{['afterInit'](){const _0x5b1337=this['editor'];if(!_0x5b1337['plugins']['has']('HtmlEmbed'))return;const _0x2516f0=_0x5b1337['plugins']['get']('TrackChangesEditing'),_0x53ece2=_0x5b1337['locale'];_0x2516f0['descriptionFactory']['registerElementLabel']('rawHtml',_0x1b07c3=>c(_0x53ece2,'ELEMENT_HTML_EMBED',_0x1b07c3)),_0x2516f0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2516f0['registerBlockAttribute']('value'),_0x2516f0['descriptionFactory']['registerDescriptionCallback'](_0x5ae840=>{if('attribute'!=_0x5ae840['type'])return;const {data:_0x473ae6}=_0x5ae840;if(_0x473ae6&&'value'==_0x473ae6['key']&&_0x5ae840['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x10f2e9=c(_0x53ece2,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x53ece2,'*Change\x20%0\x20content*',_0x10f2e9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a16b5=this['editor'],_0x499293=_0x1a16b5['locale'];_0x1a16b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13c166=>{if('formatBlock'!=_0x13c166['type'])return;const {data:_0x8ce201}=_0x13c166;if(_0x8ce201&&'htmlEmbed'==_0x8ce201['commandName']){const _0x34f52e=c(_0x499293,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x499293,'*Change\x20%0\x20content*',_0x34f52e)};}});}}class rt extends _0x299b22{['afterInit'](){const _0x153832=this['editor'];if(!_0x153832['plugins']['has']('ImageEditing'))return;const _0x2db73b=_0x153832['plugins']['get']('TrackChangesEditing'),_0x252d32=_0x153832['plugins']['get']('ImageUtils'),_0x58ff74=_0x153832['locale'];_0x2db73b['enableCommand']('insertImage'),_0x2db73b['descriptionFactory']['registerElementLabel']('imageBlock',_0x2ae253=>c(_0x58ff74,'ELEMENT_IMAGE',_0x2ae253)),_0x2db73b['descriptionFactory']['registerElementLabel']('imageInline',_0x55dd3f=>c(_0x58ff74,'ELEMENT_INLINE_IMAGE',_0x55dd3f)),_0x2db73b['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x58ff74,'ELEMENT_CAPTION')),_0x153832['plugins']['has']('ImageUploadEditing')&&_0x2db73b['enableCommand']('uploadImage'),_0x153832['plugins']['has']('ImageBlockEditing')&&_0x153832['plugins']['has']('ImageInlineEditing')&&(_0x2db73b['enableCommand']('imageTypeInline',(_0x42a46e,_0x46c8d9)=>{const _0x553d3a=_0x252d32['getClosestSelectedImageElement'](_0x153832['model']['document']['selection']);_0x153832['model']['change'](()=>{_0x2db73b['markBlockFormat'](_0x553d3a,{'commandName':'imageTypeInline','commandParams':[_0x46c8d9]},[],'convertBlockImageToInline');});}),_0x2db73b['enableCommand']('imageTypeBlock',(_0x33128e,_0x1e983e)=>{_0x153832['model']['change'](_0x35ea51=>{let _0x105e9c=_0x252d32['getClosestSelectedImageElement'](_0x153832['model']['document']['selection']),_0x37d7d1=_0x35ea51['createRangeOn'](_0x105e9c);const _0xdb8c10=_0x27acef['fromPosition'](_0x37d7d1['start'],'toPrevious'),_0x1149a7=_0x27acef['fromPosition'](_0x37d7d1['end'],'toNext');_0x2db73b['forceDefaultExecution'](()=>_0x33128e(_0x1e983e)),_0x105e9c=_0x252d32['getClosestSelectedImageElement'](_0x153832['model']['document']['selection']),_0x37d7d1=_0x35ea51['createRangeOn'](_0x105e9c);const _0xa84ca=_0x35ea51['createRange'](_0xdb8c10,_0x1149a7);_0xdb8c10['detach'](),_0x1149a7['detach'](),_0x2db73b['markBlockFormat'](_0x105e9c,{'commandName':'imageTypeInline','commandParams':[_0x1e983e]},[],'convertInlineImageToBlock'),_0xa84ca['start']['isBefore'](_0x37d7d1['start'])&&_0x2db73b['markInsertion'](_0x35ea51['createRange'](_0xa84ca['start'],_0x37d7d1['start']),'convertInlineImageToBlock'),_0x37d7d1['end']['isBefore'](_0xa84ca['end'])&&_0x2db73b['markInsertion'](_0x35ea51['createRange'](_0x37d7d1['end'],_0xa84ca['end']),'convertInlineImageToBlock');});}),_0x2db73b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2db73b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2db73b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2db73b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2db73b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2db73b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2ce69a])=>{const _0x2e6e1b=_0x2db73b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19c417=_0x2ce69a['start'],_0x494b9a=_0x2ce69a['end'];const _0xf3d1a1=_0x153832['model']['schema']['getNearestSelectionRange'](_0x19c417,'backward'),_0x3c2de1=_0x153832['model']['schema']['getNearestSelectionRange'](_0x494b9a,'forward');_0xf3d1a1['isCollapsed']&&(_0x19c417=_0xf3d1a1['start']),_0x3c2de1['isCollapsed']&&(_0x494b9a=_0x3c2de1['end']),_0x2e6e1b([_0x153832['model']['createRange'](_0x19c417,_0x494b9a)]);}),_0x2db73b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3105ca),_0x2db73b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3105ca)),_0x153832['plugins']['has']('ImageCaptionEditing')&&(_0x2db73b['enableCommand']('toggleImageCaption',(_0x503f6e,_0x223d85)=>{const _0x39d084=_0x153832['plugins']['get']('ImageCaptionUtils');let _0x4e8401=_0x252d32['getClosestSelectedImageElement'](_0x153832['model']['document']['selection']),_0x308548=_0x39d084['getCaptionFromImageModelElement'](_0x4e8401);_0x153832['model']['change'](()=>{if(_0x308548)return void _0x2db73b['markDeletion'](_0x153832['model']['createRangeOn'](_0x308548));const _0x1d78e1=_0x252d32['isBlockImage'](_0x4e8401);_0x503f6e(_0x223d85),_0x4e8401=_0x252d32['getClosestSelectedImageElement'](_0x153832['model']['document']['selection']),_0x308548=_0x39d084['getCaptionFromImageModelElement'](_0x4e8401),_0x2db73b['markInsertion'](_0x153832['model']['createRangeOn'](_0x308548),_0x1d78e1?null:'imageCaption');});}),_0x2db73b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3105ca));const _0xb5a372=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2dd7a6(_0x8757a,_0xc84e2e){const _0xa3f0cb=_0xb5a372['findIndex'](({type:_0x3dd746,subType:_0x3d39e7})=>_0x8757a['type']==_0x3dd746&&_0x8757a['subType']==_0x3d39e7),_0x3dd838=_0xb5a372['findIndex'](({type:_0x5156a3,subType:_0x4ac334})=>_0xc84e2e['type']==_0x5156a3&&_0xc84e2e['subType']==_0x4ac334);if(_0xa3f0cb<0x0||_0x3dd838<0x0)return!0x1;const _0xfb5345=_0x8757a['getFirstRange'](),_0x16db14=_0xc84e2e['getFirstRange']();if((0x0==_0xa3f0cb||0x1==_0xa3f0cb)&&0x2==_0x3dd838&&_0xfb5345['isIntersecting'](_0x16db14))return!0x0;if(0x2==_0xa3f0cb&&0x3==_0x3dd838){const _0x43163f=_0x2db73b['_findSuggestions'](_0xfb5345,'insertion')['filter'](({suggestion:_0x1ee802,meta:_0x263182})=>_0x263182['isOwn']&&'convertInlineImageToBlock'==_0x1ee802['subType']);if(_0x43163f['length']>0x1&&_0x16db14['end']['isEqual'](_0xfb5345['start']))return!0x0;if(0x1==_0x43163f['length']&&(_0xfb5345['start']['isEqual'](_0x16db14['end'])||_0xfb5345['end']['isEqual'](_0x16db14['start'])))return!0x0;}if(0x3==_0xa3f0cb&&0x3==_0x3dd838&&_0xfb5345['start']['isBefore'](_0x16db14['start'])){const _0x150551=_0xfb5345['end']['nodeAfter'],_0x1c07e9=_0x16db14['start']['nodeBefore'];return _0x252d32['isBlockImage'](_0x150551)&&_0x150551===_0x1c07e9;}return!0x1;}function _0x3105ca(_0xc69af0,_0x78a32a){return _0x2dd7a6(_0xc69af0,_0x78a32a)?[_0xc69af0,_0x78a32a]:_0x2dd7a6(_0x78a32a,_0xc69af0)?[_0x78a32a,_0xc69af0]:null;}_0x153832['plugins']['has']('ImageResize')&&(_0x2db73b['enableDefaultAttributesIntegration']('resizeImage'),_0x2db73b['registerBlockAttribute']('resizedWidth'),_0x2db73b['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x58ff74,'FORMAT_IMAGE_SIZE'))),_0x153832['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2db73b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2db73b['registerBlockAttribute']('alt')),_0x153832['plugins']['has']('PictureEditing')&&(_0x2db73b['registerBlockAttribute']('sources'),_0x2db73b['descriptionFactory']['registerDescriptionCallback'](_0xca92c5=>{if('attribute'!=_0xca92c5['type'])return;const {data:_0xe07adf}=_0xca92c5;return _0xe07adf&&'sources'==_0xe07adf['key']?{'type':'format','content':''}:void 0x0;})),_0x153832['plugins']['has']('ImageSizeAttributes')&&(_0x2db73b['registerBlockAttribute']('width'),_0x2db73b['registerBlockAttribute']('height'),_0x2db73b['descriptionFactory']['registerDescriptionCallback'](_0x41c0ab=>{if('attribute'!=_0x41c0ab['type'])return;const {data:_0x3430a4}=_0x41c0ab;return!_0x3430a4||'width'!=_0x3430a4['key']&&'height'!=_0x3430a4['key']?void 0x0:{'type':'format','content':''};})),_0x2db73b['descriptionFactory']['registerDescriptionCallback'](_0x599957=>{if(!!_0xb5a372['find'](({type:_0x393f5a,subType:_0x35d74b})=>_0x599957['type']==_0x393f5a&&_0x599957['subType']==_0x35d74b))return _0x599957['previous']?{}:void 0x0;}),_0x2db73b['descriptionFactory']['registerDescriptionCallback'](_0x484a6e=>{if('insertion'==_0x484a6e['type']||'deletion'==_0x484a6e['type']){const _0x30e334=_0x484a6e['getContainedElement']();if(_0x30e334&&_0x30e334['is']('element','caption'))return{'type':'insertion'==_0x484a6e['type']?'addObject':'removeObject','element':_0x30e334,'quantity':0x1};}}),_0x2db73b['descriptionFactory']['registerDescriptionCallback'](_0x278f08=>'formatBlock'==_0x278f08['type']&&'convertInlineImageToBlock'==_0x278f08['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x278f08['type']&&'convertBlockImageToInline'==_0x278f08['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2db73b['descriptionFactory']['registerDescriptionCallback'](_0x35aab2=>{if('attribute'!=_0x35aab2['type'])return;const {data:_0x1f932a}=_0x35aab2;if(!_0x1f932a||'alt'!=_0x1f932a['key'])return;const _0x2fe84d=_0x1f932a['newValue'];return _0x2fe84d?{'type':'format','content':c(_0x58ff74,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2fe84d+'\x22')}:{'type':'format','content':c(_0x58ff74,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x107b2a=this['editor'],_0x436c47=_0x107b2a['locale'];_0x107b2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57f7b0=>{if('formatBlock'!=_0x57f7b0['type']&&'formatInline'!=_0x57f7b0['type'])return;const {data:_0x234f98}=_0x57f7b0;if(_0x234f98){if('imageTextAlternative'==_0x234f98['commandName']){const _0xbe961b=_0x234f98['commandParams'][0x0]['newValue'];return _0xbe961b?{'type':'format','content':c(_0x436c47,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xbe961b+'\x22')}:{'type':'format','content':c(_0x436c47,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x234f98['commandName']){const _0x2ab386=_0x234f98['commandParams'][0x0]['width'];return _0x2ab386?{'type':'format','content':c(_0x436c47,'*Set\x20image\x20width:*\x20%0',_0x2ab386)}:{'type':'format','content':c(_0x436c47,'*Reset\x20image\x20width*')};}}});}}class at extends _0x299b22{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2fd106=this['editor']['locale'],_0x21a250=this['editor']['plugins']['get']('TrackChangesEditing');_0x21a250['enableDefaultAttributesIntegration']('replaceImageSource'),_0x21a250['registerBlockAttribute']('src'),_0x21a250['descriptionFactory']['registerDescriptionCallback'](_0x40a933=>{if('attribute'!=_0x40a933['type'])return;const {data:_0x5c4b03}=_0x40a933;return _0x5c4b03&&'src'==_0x5c4b03['key']?_0x5c4b03['newValue']&&_0x5c4b03['oldValue']?{'type':'format','content':c(_0x2fd106,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2fcd23=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fcd23['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2fcd23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2fcd23['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2fcd23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ab70b=this['editor'],_0x578b02=_0x1ab70b['locale'];_0x1ab70b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f2267=>{if('formatBlock'!=_0x2f2267['type']&&'formatInline'!=_0x2f2267['type'])return;const {data:_0x19144d}=_0x2f2267;if(!_0x19144d||'replaceImageSource'!=_0x19144d['commandName'])return;return{'type':'format','content':c(_0x578b02,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x299b22{['afterInit'](){const _0x2fa710=this['editor'];if(!_0x2fa710['plugins']['has']('ImageStyleEditing'))return;const _0x4875ba=_0x2fa710['plugins']['get']('TrackChangesEditing'),_0x174880=_0x2fa710['plugins']['get']('ImageUtils'),_0x46ae51={};_0x4875ba['enableCommand']('imageStyle',(_0x46b87b,_0x45e3c7)=>{const _0x3aa85a=_0x2fa710['plugins']['get']('Users')['me'],_0x5b58ff=_0x2fa710['commands']['get']('imageStyle');let _0x3b2478=_0x174880['getClosestSelectedImageElement'](_0x2fa710['model']['document']['selection']),_0x4c0f09=_0x2fa710['model']['createRangeOn'](_0x3b2478),_0x2a90bf=_0x5b58ff['value'];if(_0x2a90bf==_0x45e3c7['value'])return;const _0x26822f={'commandName':'imageStyle','commandParams':[_0x45e3c7],'formatGroupId':_0x1f8928()};_0x2fa710['model']['change'](()=>{if(_0x4875ba['getSuggestions']()['filter'](_0x1a2bfe=>_0x1a2bfe['isInContent']&&_0x3aa85a==_0x1a2bfe['author']&&('formatBlock'==_0x1a2bfe['type']||'formatInline'==_0x1a2bfe['type'])&&('imageStylePreApply'==_0x1a2bfe['subType']||'imageStylePostApply'==_0x1a2bfe['subType'])&&_0x1a2bfe['getFirstRange']()['isEqual'](_0x4c0f09))['forEach'](_0x128cad=>_0x4875ba['discardSuggestion'](_0x128cad['head'])),_0x3b2478=_0x174880['getClosestSelectedImageElement'](_0x2fa710['model']['document']['selection']),_0x4c0f09=_0x2fa710['model']['createRangeOn'](_0x3b2478),_0x5b58ff['refresh'](),_0x2fa710['commands']['get']('imageTypeInline')['refresh'](),_0x2fa710['commands']['get']('imageTypeBlock')['refresh'](),_0x2a90bf=_0x5b58ff['value'],_0x2a90bf!=_0x45e3c7['value'])return _0x174880['isInlineImage'](_0x3b2478)&&_0x5b58ff['shouldConvertImageType'](_0x45e3c7['value'],_0x3b2478)?(_0x46b87b({..._0x45e3c7,'setImageSizes':!0x1}),_0x3b2478=_0x174880['getClosestSelectedImageElement'](_0x2fa710['model']['document']['selection']),void _0x4875ba['markBlockFormat'](_0x3b2478,{..._0x26822f,'commandReversedParams':[{'value':_0x2a90bf||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x174880['isBlockImage'](_0x3b2478)?_0x4875ba['markBlockFormat'](_0x3b2478,_0x26822f,[],'imageStylePostApply'):_0x4875ba['markInlineFormat'](_0x4c0f09,_0x26822f,'imageStylePostApply'));});});for(const _0x399763 of _0x2fa710['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x46ae51[_0x399763['name']]=_0x399763['title']['toLowerCase']();_0x4875ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4875ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4875ba['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4875ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4d05e9])=>{_0x174880['setImageNaturalSizeAttributes'](_0x4d05e9['getContainedElement']());}),_0x4875ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x46c7e2,_0x1bb68d)=>{_0x4875ba['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x46c7e2,{'commandName':_0x1bb68d['commandName'],'commandParams':_0x1bb68d['commandReversedParams']});}),_0x4875ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3a8408,_0x74aac5){if(_0x39c14a(_0x3a8408,_0x74aac5))return[_0x3a8408,_0x74aac5];if(_0x39c14a(_0x74aac5,_0x3a8408))return[_0x74aac5,_0x3a8408];return null;});const _0x3b6e79=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39c14a(_0x311205,_0x3c94d1){const _0x20fc2a=_0x3b6e79['findIndex'](({type:_0x257829,subType:_0xdca88c})=>_0x311205['type']==_0x257829&&_0x311205['subType']==_0xdca88c),_0x24e34e=_0x3b6e79['findIndex'](({type:_0x26ae6c,subType:_0x2fe94e})=>_0x3c94d1['type']==_0x26ae6c&&_0x3c94d1['subType']==_0x2fe94e);if(_0x20fc2a<0x0||_0x24e34e<0x0)return!0x1;const _0x7e90de=_0x311205['getFirstRange'](),_0x309439=_0x3c94d1['getFirstRange']();if((0x0==_0x20fc2a||0x1==_0x20fc2a)&&0x2==_0x24e34e&&_0x7e90de['isIntersecting'](_0x309439))return!0x0;if(0x2==_0x20fc2a&&0x3==_0x24e34e){const _0x5584ed=_0x4875ba['_findSuggestions'](_0x7e90de,'insertion')['filter'](({suggestion:_0x4476c9,meta:_0x31cbb5})=>_0x31cbb5['isOwn']&&'convertInlineImageToBlock'==_0x4476c9['subType']);if(_0x5584ed['length']>0x1&&_0x309439['end']['isEqual'](_0x7e90de['start']))return!0x0;if(0x1==_0x5584ed['length']&&(_0x7e90de['start']['isEqual'](_0x309439['end'])||_0x7e90de['end']['isEqual'](_0x309439['start'])))return!0x0;}if(0x3==_0x20fc2a&&0x3==_0x24e34e&&_0x7e90de['start']['isBefore'](_0x309439['start'])){const _0x167baa=_0x7e90de['end']['nodeAfter'],_0x5b4a3e=_0x309439['start']['nodeBefore'];return _0x174880['isBlockImage'](_0x167baa)&&_0x167baa===_0x5b4a3e;}return!0x1;}_0x2fa710['model']['document']['registerPostFixer'](()=>{let _0x52f07a=!0x1;const _0x3838ed=Array['from'](_0x2fa710['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x46959f,data:_0x3c9b86}of _0x3838ed){const {group:_0x1b5387,type:_0x80b55e,subType:_0x468b34,id:_0x221162}=_0x4875ba['_splitMarkerName'](_0x46959f);if('suggestion'==_0x1b5387&&_0x4875ba['hasSuggestion'](_0x221162)){if('formatBlock'==_0x80b55e&&('imageStylePreApply'==_0x468b34||'imageStylePostApply'==_0x468b34)){const _0x2e7749=_0x4875ba['getSuggestion'](_0x221162);if(_0x3c9b86['newRange']){const _0x1ddf36=_0x2e7749['getFirstRange']()['getContainedElement']();if(_0x174880['isBlockImage'](_0x1ddf36))continue;_0x4875ba['discardSuggestion'](_0x2e7749),_0x52f07a=!0x0;}}if('insertion'==_0x80b55e&&'imageCaption'==_0x468b34&&!_0x3c9b86['newRange']){const _0x38731f=_0x4875ba['getSuggestion'](_0x221162);_0x38731f['next']&&_0x38731f['next']['isInContent']&&(_0x4875ba['discardSuggestion'](_0x38731f['next']),_0x52f07a=!0x0);}}}return _0x52f07a;}),this['_registerLegacyDescription'](_0x46ae51);}['_registerLegacyDescription'](_0x386b95){const _0x2f25d0=this['editor'],_0x960058=_0x2f25d0['locale'];_0x2f25d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x541e98=>{if('formatBlock'!=_0x541e98['type']&&'formatInline'!=_0x541e98['type'])return;const {data:_0x278790}=_0x541e98;if(!_0x278790||'imageStyle'!=_0x278790['commandName'])return;const _0x48f46f=_0x278790['commandParams'][0x0]['value'];return _0x246972('side'===_0x48f46f?c(_0x960058,'FORMAT_SIDE_IMAGE'):_0x386b95[_0x48f46f]||_0x48f46f);function _0x246972(_0x252b97){return{'type':'format','content':c(_0x960058,'*Format:*\x20%0',_0x252b97)};}});}}class ut extends _0x299b22{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xd78805){super(_0xd78805),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x163ef3=this['editor'],_0x343d80=_0x163ef3['commands']['get']('importWord'),_0x364bf6=_0x163ef3['commands']['get']('trackChanges');_0x343d80&&(_0x343d80['on']('execute',(_0x3fd54c,[,_0x2b86f7])=>{this['_trackChangesValueDuringImport']=_0x364bf6['value'],_0x2b86f7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x343d80,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x343d80,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x364bf6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x163ef3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xbd33,_0x46d0c9){const {suggestions:_0x339c32}=_0x46d0c9,_0x30141d=this['editor']['commands']['get']('trackChanges'),_0x4ec827=_0x30141d['value'];this['_trackChangesValueDuringImport']!==_0x4ec827&&(_0x30141d['execute'](),this['_trackChangesExecuted']=!0x0),_0x339c32&&_0x339c32['forEach'](({id:_0x2b7bf2,type:_0x445abe,author:_0x428d58,created_at:_0x28cf0e})=>{const _0x10176d={'id':_0x2b7bf2,'type':_0x445abe,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x428d58,'createdAt':_0x28cf0e?new Date(_0x28cf0e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x10176d);});}}class ft extends _0x299b22{['afterInit'](){const _0xf727b0=this['editor'],_0x8be46c=_0xf727b0['plugins']['get']('TrackChangesEditing');if(_0xf727b0['plugins']['has']('IndentEditing')&&(_0x8be46c['enableCommand']('indent'),_0x8be46c['enableCommand']('outdent')),_0xf727b0['plugins']['has']('IndentBlock')){for(const _0x381eb0 of['indentBlock','outdentBlock'])_0x8be46c['enableDefaultAttributesIntegration'](_0x381eb0);}const _0x4c9cbb=_0xf727b0['locale'];_0x8be46c['registerBlockAttribute']('blockIndent'),_0x8be46c['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x4c9cbb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c0d88=this['editor'],_0x1a2f40=_0x5c0d88['locale'],_0x2fc39b=_0x5c0d88['plugins']['get']('TrackChangesEditing');_0x2fc39b['descriptionFactory']['registerDescriptionCallback'](_0x48c0e0=>{if('formatBlock'!=_0x48c0e0['type'])return;const {data:_0x20b809}=_0x48c0e0;if(!_0x20b809)return;if('indentBlock'!=_0x20b809['commandName']&&'outdentBlock'!=_0x20b809['commandName'])return;const _0x20cf94=_0x48c0e0['getItems']()[0x0],_0x49a4da=_0x2fc39b['descriptionFactory']['getItemLabel'](_0x20cf94);return'indentBlock'==_0x20b809['commandName']?{'type':'format','content':c(_0x1a2f40,'*Indent:*\x20%0',_0x49a4da)}:'outdentBlock'==_0x20b809['commandName']?{'type':'format','content':c(_0x1a2f40,'*Outdent:*\x20%0',_0x49a4da)}:void 0x0;});}}class ht extends _0x299b22{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x299b22{['afterInit'](){const _0x562a46=this['editor'];if(!_0x562a46['plugins']['has']('LinkEditing'))return;const _0x2e39e2=_0x562a46['plugins']['get']('TrackChangesEditing'),_0x3c95e8=_0x562a46['commands']['get']('link');_0x2e39e2['enableDefaultAttributesIntegration']('link'),_0x2e39e2['enableDefaultAttributesIntegration']('unlink'),_0x2e39e2['registerInlineAttribute']('linkHref');for(const _0x59e6fc of _0x3c95e8['manualDecorators'])_0x2e39e2['registerInlineAttribute'](_0x59e6fc['id']),_0x2e39e2['descriptionFactory']['registerAttributeLabel'](_0x59e6fc['id'],'link\x20('+_0x59e6fc['label']['toLowerCase']()+')');_0x2e39e2['descriptionFactory']['registerDescriptionCallback'](_0x358252=>{if('attribute'!=_0x358252['type'])return;const {data:_0x3cb1b3}=_0x358252;if(!_0x3cb1b3||'linkHref'!=_0x3cb1b3['key'])return;const _0x1e677f=_0x3cb1b3['newValue'],_0x1e8720=_0x562a46['locale'];return{'type':'format','content':null==_0x1e677f?c(_0x1e8720,'*Remove\x20link*'):c(_0x1e8720,'*Set\x20link:*\x20%0','\x22'+_0x1e677f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6bce90=this['editor'],_0x583256=_0x6bce90['locale'];_0x6bce90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d8dd2=>{if('formatInline'!=_0x5d8dd2['type'])return;const {data:_0xa340c}=_0x5d8dd2;if(_0xa340c){if('link'==_0xa340c['commandName']){const _0x2f35ff=_0xa340c['commandParams'][0x0];return{'type':'format','content':c(_0x583256,'*Set\x20link:*\x20%0','\x22'+_0x2f35ff+'\x22')};}return'unlink'==_0xa340c['commandName']?{'type':'format','content':c(_0x583256,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x299b22{['afterInit'](){const _0x1a681c=this['editor'],_0x148fd6=_0x1a681c['locale'];if(!_0x1a681c['plugins']['has']('LegacyListEditing'))return;const _0x2cbbb7=_0x1a681c['plugins']['get']('TrackChangesEditing'),_0x42804a=_0x1a681c['plugins']['has']('LegacyTodoListEditing');function _0x3239b5(_0x28ebf0){return()=>{const _0x3d1d42=_0x1a681c['model']['document']['selection'],_0x31883e=_0x1a681c['commands']['get'](_0x28ebf0);if(_0x31883e['value'])return void _0x1a681c['execute']('paragraph',{});const _0x8bc4ea=_0x28ebf0['slice'](0x0,-0x4),_0x434acb=function(_0x4e242f,_0x653090,_0x7bbc4e){let _0xa438a2=Array['from'](_0x4e242f)['filter'](_0x7d403b=>function(_0x19bda8,_0xeff8c4){return _0xeff8c4['checkChild'](_0x19bda8['parent'],'listItem')&&!_0xeff8c4['isObject'](_0x19bda8);}(_0x7d403b,_0x7bbc4e));_0xa438a2=_0xa438a2['filter'](_0x2930be=>!_0x2930be['is']('element','listItem')||_0x2930be['getAttribute']('listType')!=_0x653090);const _0xba8fa9=new Set();for(const _0x2157e7 of _0xa438a2)_0x2157e7['is']('element','listItem')?_0xba8fa9['add'](Le(_0x2157e7)):_0xba8fa9['add'](_0x2157e7);return Array['from'](_0xba8fa9);}(_0x3d1d42['getSelectedBlocks'](),_0x8bc4ea,_0x1a681c['model']['schema']);_0x1a681c['model']['change'](()=>{for(const _0x51bd6a of _0x434acb)_0x2cbbb7['markBlockFormat'](_0x51bd6a,{'commandName':_0x28ebf0,'commandParams':[{'forceValue':!_0x31883e['value']}],'formatGroupId':'blockName'},Ee(_0x51bd6a));});};}function _0xe65226(_0x54983f){return()=>{const _0x557580=function(_0xdeba7e){let _0x7a5869=Array['from'](_0xdeba7e);const _0x3c4fbc=_0x7a5869['findIndex'](_0x4db519=>'listItem'!=_0x4db519['name']);return _0x3c4fbc>-0x1&&(_0x7a5869=_0x7a5869['slice'](0x0,_0x3c4fbc)),_0x7a5869;}(_0x1a681c['model']['document']['selection']['getSelectedBlocks']()),_0x2f35c5=_0x1a681c['model']['createRange'](_0x1a681c['model']['createPositionAt'](_0x557580[0x0],'before'),_0x1a681c['model']['createPositionAt'](_0x557580[_0x557580['length']-0x1],'end'));_0x1a681c['model']['change'](()=>{_0x2cbbb7['markBlockFormat'](_0x2f35c5,{'commandName':_0x54983f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x56902d){const _0x120338=new Set();for(const _0x51454f of _0x56902d){let _0x5f3a64=_0x51454f['nextSibling'];for(;_0x5f3a64&&_0x5f3a64['getAttribute']('listIndent')>_0x51454f['getAttribute']('listIndent');)_0x120338['add'](_0x5f3a64),_0x5f3a64=_0x5f3a64['nextSibling'];}return Array['from'](_0x120338);}(_0x557580));});};}_0x2cbbb7['enableCommand']('numberedList',_0x3239b5('numberedList')),_0x2cbbb7['enableCommand']('bulletedList',_0x3239b5('bulletedList')),_0x42804a&&_0x2cbbb7['enableCommand']('todoList',_0x3239b5('todoList')),_0x2cbbb7['enableCommand']('indentList',_0xe65226('indentList')),_0x2cbbb7['enableCommand']('outdentList',_0xe65226('outdentList')),_0x42804a&&_0x2cbbb7['enableCommand']('checkTodoList',()=>{const _0x3c2a0f=_0x1a681c['commands']['get']('checkTodoList'),_0x3b3996=Array['from'](_0x3c2a0f['_selectedElements']);_0x3b3996['filter'](_0x486687=>_0x486687['getAttribute']('todoListChecked')!=_0x3c2a0f['value']),_0x1a681c['model']['change'](()=>{for(const _0x14a3de of _0x3b3996)_0x2cbbb7['markBlockFormat'](_0x14a3de,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3c2a0f['value']}]});});}),_0x2cbbb7['descriptionFactory']['registerElementLabel']('listItem',_0x4554e0=>c(_0x148fd6,'ELEMENT_LIST_ITEM',_0x4554e0)),_0x2cbbb7['descriptionFactory']['registerDescriptionCallback'](_0x302041=>{if('formatBlock'!=_0x302041['type']&&'formatInline'!=_0x302041['type'])return;const {data:_0x5698c8}=_0x302041;if(_0x5698c8){if('numberedList'==_0x5698c8['commandName']||'bulletedList'==_0x5698c8['commandName']||'todoList'==_0x5698c8['commandName'])switch(_0x5698c8['commandName']['replace']('List','')){case'bulleted':return _0x4e0181(c(_0x148fd6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e0181(c(_0x148fd6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e0181(c(_0x148fd6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5698c8['commandName'])return{'type':'format','content':c(_0x148fd6,'*Indent:*\x20%0',c(_0x148fd6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5698c8['commandName'])return{'type':'format','content':c(_0x148fd6,'*Outdent:*\x20%0',c(_0x148fd6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5698c8['commandName'])return _0x5698c8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x148fd6,'*Check\x20item*')}:{'type':'format','content':c(_0x148fd6,'*Uncheck\x20item*')};}function _0x4e0181(_0x3984ab){return{'type':'format','content':c(_0x148fd6,'*Change\x20to:*\x20%0',_0x3984ab)};}});}}function Le(_0x2559c6){const _0xf66435=_0x2559c6['getAttribute']('listIndent');if(0x0==_0xf66435)return _0x2559c6;let _0x236b86=_0x2559c6;for(;_0x2559c6['previousSibling']&&_0x2559c6['previousSibling']['is']('element','listItem');){const _0x12d6c4=_0x2559c6['previousSibling']['getAttribute']('listIndent');if(_0x12d6c4==_0xf66435)_0x236b86=_0x2559c6['previousSibling'];else{if(_0x12d6c4<_0xf66435)break;}_0x2559c6=_0x2559c6['previousSibling'];}return _0x236b86;}function Ee(_0x14f423){const _0x92c5f4=[];if(_0x14f423['is']('element','listItem')&&_0x14f423['getAttribute']('listIndent')>0x0){let _0x2f7b09=_0x14f423['nextSibling'];for(;_0x2f7b09&&'listItem'==_0x2f7b09['name']&&_0x2f7b09['getAttribute']('listIndent')==_0x14f423['getAttribute']('listIndent');)_0x92c5f4['push'](_0x2f7b09),_0x2f7b09=_0x2f7b09['nextSibling'];}return _0x92c5f4;}class Q extends _0x299b22{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5276ad=this['editor']['config']['get']('list.properties'),_0x40db24=this['editor']['plugins']['get']('TrackChangesEditing');_0x5276ad['styles']&&_0x40db24['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5276ad['reversed']&&_0x40db24['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5276ad['startIndex']&&_0x40db24['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x40db24['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x24efa7,_0x25fdba={}){const _0x2b6ef6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x368f16=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2b6ef6['markMultiRangeBlockFormat'](_0x368f16,{'commandName':'listStyle','commandParams':[{'type':_0x25fdba['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4d9080,_0x4bb047={}){const _0x30d4c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cc03d=this['_getSuggestionBlocks'](_0x1000a7=>_0x1000a7['is']('element','listItem')&&'numbered'===_0x1000a7['getAttribute']('listType'));if(_0x3cc03d['length']<0x1)return;const _0x32354d=_0x3cc03d['map'](_0x514203=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x514203,'before'),this['editor']['model']['createPositionAt'](_0x514203,0x0)));this['editor']['model']['change'](()=>{_0x30d4c0['markMultiRangeBlockFormat'](_0x32354d,{'commandName':'listReversed','commandParams':[{'reversed':_0x4bb047['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x96a377,_0x5d958a={}){const _0x225bcf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d95f4=this['_getSuggestionBlocks'](_0x403365=>_0x403365['is']('element','listItem')&&'numbered'===_0x403365['getAttribute']('listType'));if(_0x5d95f4['length']<0x1)return;const _0x4831a5=_0x5d95f4['map'](_0x2a8390=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a8390,'before'),this['editor']['model']['createPositionAt'](_0x2a8390,0x0)));this['editor']['model']['change'](()=>{_0x225bcf['markMultiRangeBlockFormat'](_0x4831a5,{'commandName':'listStart','commandParams':[{'startIndex':_0x5d958a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x27fae0){if('formatBlock'!=_0x27fae0['type']&&'formatInline'!=_0x27fae0['type'])return;const _0x4c1f61=this['editor']['locale'],{data:_0x1eb9ae}=_0x27fae0;if(!_0x1eb9ae)return;let _0x159349,_0x1b63b4;switch(_0x1eb9ae['commandName']){case'listStyle':_0x159349='*Change\x20to:*\x20%0',_0x1b63b4={'type':'format','content':c(_0x4c1f61,_0x159349,c(_0x4c1f61,this['_getTranslationKeyForListStyle'](_0x1eb9ae['commandParams'][0x0]['type'])))};break;case'listReversed':_0x159349=_0x1eb9ae['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b63b4={'type':'format','content':c(_0x4c1f61,_0x159349)};break;case'listStart':_0x159349='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b63b4={'type':'format','content':c(_0x4c1f61,_0x159349,_0x1eb9ae['commandParams'][0x0]['startIndex'])};}return _0x1b63b4;}['_getSuggestionBlocksForListStyle'](){const _0xd3858d=this['editor']['plugins']['get']('LegacyListUtils');let _0xc5a3e4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xc5a3e4[0x0]?.['is']('element','listItem')&&_0xc5a3e4['unshift'](..._0xd3858d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xc5a3e4[_0xc5a3e4['length']-0x1]?.['is']('element','listItem')&&_0xc5a3e4['push'](..._0xd3858d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xc5a3e4=[...new Set(_0xc5a3e4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xc5a3e4=_0xc5a3e4['filter'](_0x354081=>_0x354081['is']('element','listItem'))),_0xc5a3e4;}['_getSuggestionBlocks'](_0x5ba1a9){const _0x5574b6=this['editor']['plugins']['get']('LegacyListUtils');let _0x1bfe9a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5ba1a9)['map'](_0x4ef821=>{const _0x54a893=this['editor']['model']['createPositionAt'](_0x4ef821,0x0);return[..._0x5574b6['getSiblingNodes'](_0x54a893,'backward'),..._0x5574b6['getSiblingNodes'](_0x54a893,'forward')];})['flat']();return _0x1bfe9a=[...new Set(_0x1bfe9a)],_0x1bfe9a;}['_getTranslationKeyForListStyle'](_0x3a1996){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3a1996)||'default')['toUpperCase']()+'_LIST_'+_0x3a1996['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x299b22{['afterInit'](){const _0x34ded5=this['editor'];if(!_0x34ded5['plugins']['has']('MediaEmbedEditing'))return;const _0x5a4345=_0x34ded5['plugins']['get']('TrackChangesEditing'),_0x140bbb=_0x34ded5['locale'];_0x5a4345['enableCommand']('mediaEmbed'),_0x5a4345['descriptionFactory']['registerElementLabel']('media',_0x1bc6bd=>c(_0x140bbb,'ELEMENT_MEDIA',_0x1bc6bd)),_0x34ded5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x14d256,{writer:_0x4523fd,options:_0x58c314})=>{if(_0x58c314['showSuggestionHighlights'])return _0x4523fd['createEmptyElement']('div');},'converterPriority':'high'}),_0x34ded5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x49dd33,_0xf07df3,_0x27e9ce)=>{_0x27e9ce['options']['showSuggestionHighlights']&&_0x49dd33['stop']();},{'priority':'high'});}}class pt extends _0x299b22{['afterInit'](){const _0xbe54b1=this['editor'];_0xbe54b1['plugins']['has']('MentionEditing')&&_0xbe54b1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x299b22{['afterInit'](){const _0x3af368=this['editor'];if(!_0x3af368['plugins']['has']('MergeFieldsEditing'))return;const _0x454522=_0x3af368['plugins']['get']('TrackChangesEditing'),_0x409139=_0x3af368['locale'];_0x454522['enableCommand']('insertMergeField'),_0x454522['enableCommand']('insertMergeFieldBlock'),_0x454522['enableCommand']('insertMergeFieldImage'),_0x454522['descriptionFactory']['registerElementLabel']('mergeField',_0x40efd5=>c(_0x409139,'ELEMENT_MERGE_FIELD',_0x40efd5)),_0x454522['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2112df=>c(_0x409139,'ELEMENT_MERGE_FIELD',_0x2112df)),_0x454522['descriptionFactory']['registerDescriptionCallback'](_0x31c2ba=>{if('insertion'!=_0x31c2ba['type']&&'deletion'!=_0x31c2ba['type'])return;const _0x26ab80=_0x31c2ba['getContainedElement']();if(null==_0x26ab80)return;const _0x18bc18=_0x3af368['plugins']['get']('MergeFieldsEditing');let _0x449ff7;switch(_0x18bc18['getMergeFieldType'](_0x26ab80)){case null:return;case'image':{const _0x23b170=_0x18bc18['unwrapAffixes'](_0x26ab80['getAttribute']('src'));_0x449ff7=_0x18bc18['getLabel'](_0x23b170)||_0x23b170;break;}default:{const _0x2675ca=_0x26ab80['getAttribute']('id');_0x449ff7=_0x18bc18['getLabel'](_0x2675ca)||_0x2675ca;break;}}return'insertion'==_0x31c2ba['type']?{'type':'insertion','content':c(_0x409139,'*Insert:*\x20%0','\x22'+_0x449ff7+'\x22\x20'+c(_0x409139,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x409139,'*Remove:*\x20%0','\x22'+_0x449ff7+'\x22\x20'+c(_0x409139,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x299b22{['afterInit'](){const _0x54860e=this['editor'],_0x583103=_0x54860e['plugins']['get']('TrackChangesEditing');_0x54860e['plugins']['has']('MultiLevelList')&&(_0x583103['enableDefaultAttributesIntegration']('multiLevelList'),_0x583103['registerBlockAttribute']('listMarkerStyle'),_0x583103['descriptionFactory']['registerDescriptionCallback'](_0x31eb27=>this['handleDescriptions'](_0x31eb27)));}['handleDescriptions'](_0x23a9d1){const _0x2afe34=this['editor']['locale'],{data:_0x4c32e2}=_0x23a9d1,_0x4c3b8e={'type':'format','content':''};if(_0x4c32e2&&'listMarkerStyle'==_0x4c32e2['key']){if(!_0x4c32e2['oldValue'])return{'type':'format','content':c(_0x2afe34,'*Set\x20format:*\x20%0',c(_0x2afe34,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c32e2['newValue']+')'};if(!_0x4c32e2['newValue']){let _0x3cf2bc=_0x23a9d1['head'];for(;_0x3cf2bc;){if(_0x3cf2bc['data']&&'listType'==_0x3cf2bc['data']['key']&&_0x3cf2bc['data']['newValue'])return _0x4c3b8e;_0x3cf2bc=_0x3cf2bc['next'];}return{'type':'format','content':c(_0x2afe34,'*Remove\x20format:*\x20%0',c(_0x2afe34,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c32e2['oldValue']+')'};}}}}class bt extends _0x299b22{['afterInit'](){const _0x210a47=this['editor'];if(!_0x210a47['plugins']['has']('PageBreakEditing'))return;_0x210a47['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3f4a4c=_0x210a47['plugins']['get']('TrackChangesEditing'),_0x5ec3aa=_0x210a47['locale'];_0x3f4a4c['descriptionFactory']['registerElementLabel']('pageBreak',_0x50528f=>c(_0x5ec3aa,'ELEMENT_PAGE_BREAK',_0x50528f));}}class yt extends _0x299b22{['afterInit'](){const _0x542a7e=this['editor'];if(!_0x542a7e['plugins']['has']('Paragraph'))return;const _0x2165e8=_0x542a7e['locale'],_0x92f62d=_0x542a7e['plugins']['get']('TrackChangesEditing');_0x92f62d['descriptionFactory']['registerElementLabel']('paragraph',_0xad00eb=>c(_0x2165e8,'ELEMENT_PARAGRAPH',_0xad00eb)),_0x92f62d['enableDefaultAttributesIntegration']('paragraph'),_0x92f62d['enableCommand']('insertParagraph'),_0x542a7e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x542a7e),{'priority':'highest'}),_0x542a7e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x508e25,_0x1e1c0d,_0x1d784f)=>{_0x1d784f['options']['showSuggestionHighlights']&&nr(_0x542a7e,{'showActiveMarker':!0x1})(_0x508e25,_0x1e1c0d,_0x1d784f);},{'priority':'highest'});const _0x1e1077=_0x92f62d['descriptionFactory'];_0x1e1077['registerDescriptionCallback'](_0x343fe0=>{if('insertion'!==_0x343fe0['type'])return;const {start:_0x8477e8,end:_0x34c01e}=_0x343fe0['getFirstRange']();if(!_0x8477e8['isTouching'](_0x34c01e)||!_0x8477e8['nodeAfter'])return;const _0x1b9e4f=_0x542a7e['model']['schema'],_0x485205=_0x8477e8['nodeAfter'];return _0x1b9e4f['isBlock'](_0x485205)&&!_0x1b9e4f['isLimit'](_0x485205)&&_0x1b9e4f['checkChild'](_0x485205,'$text')?{'type':'insertion','content':c(_0x2165e8,'*Insert:*\x20%0',_0x1e1077['getItemLabel'](_0x485205,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ee01e=this['editor'],_0x359224=_0x3ee01e['locale'];_0x3ee01e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56c829=>{if('formatBlock'!=_0x56c829['type'])return;const {data:_0xc6bef2}=_0x56c829;return _0xc6bef2&&'paragraph'==_0xc6bef2['commandName']?{'type':'format','content':c(_0x359224,'*Change\x20to:*\x20%0',c(_0x359224,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1ae2ae,{showActiveMarker:_0x3f8ee6=!0x0}={}){return(_0x5d8713,_0x4be1d7,_0x1a4914)=>{const _0x498f55=_0x1ae2ae['plugins']['get']('TrackChangesEditing'),_0x1deaff=_0x4be1d7['markerRange']['start'],_0x81434d=_0x4be1d7['markerRange']['end'],_0x2c3af0=_0x1ae2ae['model']['schema'];if(!_0x1deaff['isTouching'](_0x81434d)||!_0x1deaff['nodeAfter'])return;const _0x2aef53=_0x1deaff['nodeAfter'];if(_0x2c3af0['isBlock'](_0x2aef53)&&!_0x2c3af0['isLimit'](_0x2aef53)&&_0x2c3af0['checkChild'](_0x2aef53,'$text')){if(!_0x1a4914['consumable']['consume'](_0x4be1d7['markerRange'],_0x5d8713['name']))return;const {authorId:_0x348229}=_0x498f55['_splitMarkerName'](_0x4be1d7['markerName']),_0x5f5812=_0x1a4914['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x348229}),_0x1ab3c9=_0x1a4914['mapper']['toViewPosition'](_0x81434d);_0x3f8ee6&&_0x498f55['activeMarkers']['includes'](_0x4be1d7['markerName'])&&_0x1a4914['writer']['addClass']('ck-suggestion-marker--active',_0x5f5812),_0x1a4914['writer']['insert'](_0x1ab3c9,_0x5f5812),_0x1a4914['mapper']['bindElementToMarker'](_0x5f5812,_0x4be1d7['markerName']);}};}class jt extends _0x299b22{['afterInit'](){const _0x339af9=this['editor'];_0x339af9['commands']['get']('replaceSource')&&_0x339af9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x299b22{['afterInit'](){const _0x5ae4f2=this['editor'];if(!_0x5ae4f2['plugins']['has']('RemoveFormatEditing'))return;_0x5ae4f2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52918=this['editor'];_0x52918['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21b88a=>{if('formatBlock'!=_0x21b88a['type']&&'formatInline'!=_0x21b88a['type'])return;const {data:_0x1d3933}=_0x21b88a;return _0x1d3933&&'removeFormat'==_0x1d3933['commandName']?{'type':'format','content':c(_0x52918['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x299b22{['afterInit'](){const _0xad54c9=this['editor'];if(!_0xad54c9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x49ce10=_0xad54c9['plugins']['get']('TrackChangesEditing');_0x49ce10['enableCommand']('goToPreviousRestrictedEditingException'),_0x49ce10['enableCommand']('goToNextRestrictedEditingException');const _0x4c3dfe=_0xad54c9['plugins']['get']('RestrictedEditingModeEditing');_0x4c3dfe['enableCommand']('trackChanges'),_0x4c3dfe['enableCommand']('acceptSuggestion'),_0x4c3dfe['enableCommand']('discardSuggestion'),_0x4c3dfe['enableCommand']('acceptAllSuggestions'),_0x4c3dfe['enableCommand']('discardAllSuggestions'),_0x4c3dfe['enableCommand']('acceptSelectedSuggestions'),_0x4c3dfe['enableCommand']('discardSelectedSuggestions');}}class It extends _0x299b22{static get['requires'](){return[_0x1382e0];}['init'](){const _0x4f5e02=this['editor'],_0x355ee6=_0x4f5e02['plugins']['get']('TrackChangesEditing');_0x355ee6['enableCommand']('shiftEnter'),_0x4f5e02['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4f5e02),{'priority':'high'}),_0x4f5e02['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4f5e02),{'priority':'high'}),_0x4f5e02['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4005b4,_0x50f6bc,_0x1a24a7)=>{_0x1a24a7['options']['showSuggestionHighlights']&&je(_0x4f5e02,{'showActiveMarker':!0x1})(_0x4005b4,_0x50f6bc,_0x1a24a7);}),_0x355ee6['descriptionFactory']['registerElementLabel']('softBreak',_0x2ba778=>c(_0x4f5e02['locale'],'ELEMENT_LINE_BREAK',_0x2ba778));}}function je(_0x5e2d0b,{showActiveMarker:_0x4e6513=!0x0}={}){return(_0x1d5c3e,_0x50373a,_0x91c07b)=>{const _0x25d07a=_0x5e2d0b['plugins']['get']('TrackChangesEditing');if(!_0x91c07b['consumable']['test'](_0x50373a['markerRange'],_0x1d5c3e['name']))return;const _0x2e4ca9=_0x5e2d0b['model'];for(const _0x34f45b of _0x50373a['markerRange']['getItems']()){if(!_0x34f45b['is']('element','softBreak'))continue;const _0xd461e3='deletion'==_0x50373a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x473a2b}=_0x25d07a['_splitMarkerName'](_0x50373a['markerName']),_0x5d574d=_0x91c07b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd461e3,'data-author-id':_0x473a2b}),_0x3adbbd=_0x91c07b['mapper']['toViewPosition'](_0x2e4ca9['createPositionBefore'](_0x34f45b));_0x4e6513&&_0x25d07a['activeMarkers']['includes'](_0x50373a['markerName'])&&_0x91c07b['writer']['addClass']('ck-suggestion-marker--active',_0x5d574d),_0x91c07b['writer']['insert'](_0x3adbbd,_0x5d574d),_0x91c07b['mapper']['bindElementToMarker'](_0x5d574d,_0x50373a['markerName']);}};}class _t extends _0x299b22{['afterInit'](){const _0x3f3d15=this['editor'],_0x177929=_0x3f3d15['model'],_0x4c9852=_0x3f3d15['locale'];if(!_0x3f3d15['plugins']['has']('StandardEditingModeEditing'))return;const _0xd49e6=_0x3f3d15['plugins']['get']('TrackChangesEditing'),_0x4e1fc5='restrictedEditingException',_0x58e8b8=_0x3f3d15['commands']['get'](_0x4e1fc5);_0xd49e6['enableCommand'](_0x4e1fc5,(_0x5db374,_0xf45102={})=>{const _0xd43a5e=_0x177929['document']['selection'];if(_0xd43a5e['isCollapsed'])return void _0x5db374(_0xf45102);const _0x4e8c98=void 0x0!==_0xf45102['forceValue']?_0xf45102['forceValue']:!_0x58e8b8['value'];_0x177929['change'](()=>{const _0x19246d=Array['from'](_0xd43a5e['getRanges']());for(const _0x227898 of _0x19246d){const _0x12a579=_0x4e8c98?[_0x227898]:io(_0x4e1fc5,_0x227898,_0x177929);for(const _0x3d3acd of _0x12a579)_0xd49e6['markInlineFormat'](_0x3d3acd,{'commandName':_0x4e1fc5,'commandParams':[{'forceValue':_0x4e8c98}]});}});}),_0xd49e6['descriptionFactory']['registerDescriptionCallback'](_0x4317f7=>{if('formatBlock'!=_0x4317f7['type']&&'formatInline'!=_0x4317f7['type'])return;const {data:_0xb22a22}=_0x4317f7;return _0xb22a22&&_0xb22a22['commandName']==_0x4e1fc5?_0xb22a22['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4c9852,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x4c9852,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x299b22{['afterInit'](){const _0x5ae7a7=this['editor'];if(!_0x5ae7a7['plugins']['has']('Style')||!_0x5ae7a7['plugins']['has']('DataSchema'))return;const _0x5a0fdc=_0x5ae7a7['plugins']['get']('TrackChangesEditing'),_0xb9b6bf=_0x5ae7a7['locale'],_0x1e7af5=_0x5ae7a7['config']['get']('style')||{},_0x5cc64c=_0x5ae7a7['plugins']['get']('GeneralHtmlSupport'),_0x4847f5=_0x5ae7a7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5ae7a7['plugins']['get']('DataSchema'),_0x1e7af5['definitions']);_0x5a0fdc['enableDefaultAttributesIntegration']('style');const _0x31bb82=new Set();for(const _0x30229a of _0x4847f5['block']){const _0x26f181=_0x5cc64c['getGhsAttributeNameForElement'](_0x30229a['element']);_0x31bb82['add'](_0x26f181);}const _0x883434=new Set();for(const _0x3f97ef of _0x4847f5['inline']){const _0x56b0e9=_0x5cc64c['getGhsAttributeNameForElement'](_0x3f97ef['element']);_0x883434['add'](_0x56b0e9);for(const _0x40adce of _0x3f97ef['ghsAttributes'])_0x883434['add'](_0x40adce);}for(const _0xe087cc of _0x31bb82)_0x5a0fdc['registerBlockAttribute'](_0xe087cc),_0x5a0fdc['descriptionFactory']['registerAttributeLabel'](_0xe087cc,c(_0xb9b6bf,'FORMAT_STYLE'));for(const _0x557d0f of _0x883434)_0x5a0fdc['registerInlineAttribute'](_0x557d0f),_0x5a0fdc['descriptionFactory']['registerAttributeLabel'](_0x557d0f,c(_0xb9b6bf,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32293a=this['editor'],_0x59bd8e=_0x32293a['locale'];_0x32293a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e141f=>{if('formatBlock'!=_0x1e141f['type']&&'formatInline'!=_0x1e141f['type'])return;const {data:_0x4c975b}=_0x1e141f;return _0x4c975b&&'style'===_0x4c975b['commandName']?_0x4c975b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59bd8e,'*Set\x20format:*\x20%0',_0x4c975b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x59bd8e,'*Remove\x20format:*\x20%0',_0x4c975b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x299b22{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x12d483){super(_0x12d483),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2892f3=this['editor'],_0x1f1389=_0x2892f3['model']['document']['selection'];if(!_0x2892f3['plugins']['has']('TableEditing'))return;const _0x3f388c=_0x2892f3['locale'],_0x41903b=_0x2892f3['plugins']['get']('TrackChangesEditing'),_0x229b0a=_0x2892f3['plugins']['get']('TableUtils');_0x41903b['descriptionFactory']['registerElementLabel']('table',_0x5cbcba=>c(_0x3f388c,'ELEMENT_TABLE',_0x5cbcba)),this['_setupColumnsRowsFixing'](),_0x41903b['enableCommand']('insertTable'),_0x41903b['enableCommand']('selectTableRow'),_0x41903b['enableCommand']('selectTableColumn');for(const _0x1ae6f8 of['insertTableRowAbove','insertTableRowBelow']){const _0xb120a2=_0x2892f3['commands']['get'](_0x1ae6f8);_0x41903b['enableCommand'](_0x1ae6f8,_0x4f7a2b=>{_0x2892f3['model']['change'](_0x21bb50=>{_0x4f7a2b();const _0x9fd548='above'===_0xb120a2['order'],_0xfe139=_0x229b0a['getSelectionAffectedTableCells'](_0x1f1389),_0x28e416=_0x229b0a['getRowIndexes'](_0xfe139),_0x20e660=_0x9fd548?_0x28e416['first']-0x1:_0x28e416['last']+0x1,_0x1bd51c=_0xfe139[0x0]['findAncestor']('table'),_0x29b7df=_0x229b0a['createTableWalker'](_0x1bd51c,{'startRow':_0x20e660,'endRow':_0x20e660}),_0x52623f=Array['from'](_0x29b7df)['map'](_0x3e8914=>_0x21bb50['createRangeOn'](_0x3e8914['cell']));_0x41903b['markMultiRangeInsertion'](_0x52623f,'tableRow');});});}for(const _0xe3c3d2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5d6b6a=_0x2892f3['commands']['get'](_0xe3c3d2);_0x41903b['enableCommand'](_0xe3c3d2,_0x382f2e=>{_0x2892f3['model']['change'](_0x374e78=>{_0x382f2e();const _0x498360='left'===_0x5d6b6a['order'],_0xe499bc=_0x229b0a['getSelectionAffectedTableCells'](_0x1f1389),_0x5b555f=_0x229b0a['getColumnIndexes'](_0xe499bc),_0x3e6169=_0x498360?_0x5b555f['first']-0x1:_0x5b555f['last']+0x1,_0x443065=_0xe499bc[0x0]['findAncestor']('table'),_0x5c0653=_0x229b0a['createTableWalker'](_0x443065,{'startRow':0x0,'column':_0x3e6169,'includeAllSlots':!0x1}),_0x56a3e1=Array['from'](_0x5c0653)['map'](_0x221844=>_0x374e78['createRangeOn'](_0x221844['cell']));_0x41903b['markMultiRangeInsertion'](_0x56a3e1,'tableColumn');});});}for(const _0x1eddd9 of['removeTableRow','removeTableColumn']){const _0x2c7f3d=_0x1eddd9['substr'](0xb),_0x2ded1e=_0x2c7f3d['toLowerCase'](),_0x192cc8=_0x2ded1e['substr'](0x0,0x3)+'span',_0x3f4174='table'+_0x2c7f3d,_0x5b7cbd='min'+_0x2c7f3d,_0x5e0748='max'+_0x2c7f3d;_0x41903b['enableCommand'](_0x1eddd9,()=>{_0x2892f3['model']['change'](_0x16378b=>{const _0x392bdb=_0x229b0a['getSelectionAffectedTableCells'](_0x1f1389),_0x561e50=_0x392bdb[0x0]['findAncestor']('table');let _0x20a82e;if('removeTableRow'==_0x1eddd9){const _0x34fd84=_0x229b0a['getRowIndexes'](_0x392bdb);_0x20a82e={'startRow':_0x34fd84['first'],'endRow':_0x34fd84['last'],'includeAllSlots':!0x0};}else{const _0x38df34=_0x229b0a['getColumnIndexes'](_0x392bdb);_0x20a82e={'startColumn':_0x38df34['first'],'endColumn':_0x38df34['last'],'includeAllSlots':!0x0};}const _0x386cfa=_0x229b0a['createTableWalker'](_0x561e50,_0x20a82e),_0x4f91ec=Array['from'](_0x386cfa)['map'](({cell:_0x2692bf})=>_0x2692bf),_0x16cf51=Ne(_0x4f91ec['filter'](_0x13eb49=>_0x13eb49['hasAttribute'](_0x192cc8))),_0xc4ce40=Ne(_0x4f91ec['filter'](_0x5dff47=>!_0x5dff47['hasAttribute'](_0x192cc8)))['map'](_0x4f3218=>_0x16378b['createRangeOn'](_0x4f3218)),_0x37b1a5=_0x41903b['markMultiRangeDeletion'](_0xc4ce40,_0x3f4174);if(_0x37b1a5&&('tableRow'==_0x37b1a5['subType']||'tableColumn'==_0x37b1a5['subType'])){const _0x39fae6=this['_getSuggestionCoords'](_0x37b1a5);for(const _0x26f718 of _0x16cf51){const _0x411bd8=_0x16378b['createRangeOn'](_0x26f718),_0x1b8c19=_0x229b0a['getCellLocation'](_0x26f718),_0x56c9cb=_0x26f718['getAttribute'](_0x192cc8)-0x1,_0x12f725=_0x39fae6[_0x5b7cbd],_0x32d6ae=_0x39fae6[_0x5e0748];_0x12f725<=_0x1b8c19[_0x2ded1e]&&_0x1b8c19[_0x2ded1e]+_0x56c9cb<=_0x32d6ae&&_0x37b1a5['addRange'](_0x411bd8);}}});});}function _0x30c8ed(_0x248ee4){const _0x4b5dc3=Array['from'](_0x1f1389['getRanges']())['map'](_0x1b59b2=>_0x507d1e['fromRange'](_0x1b59b2));_0x2892f3['model']['change'](_0x14f1f8=>{const _0x590195=_0x14f1f8['batch'];_0x248ee4=_0x248ee4['filter'](_0x1524a3=>'$graveyard'!=_0x1524a3['root']['rootName']),_0x14f1f8['setSelection'](_0x248ee4),_0x2892f3['commands']['get']('removeTableRow')['refresh'](),_0x2892f3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2892f3['model']['enqueueChange'](()=>{_0x2892f3['model']['enqueueChange'](_0x590195,_0x3cdfa5=>{const _0x319569=_0x4b5dc3['filter'](_0x52bf59=>'$graveyard'!=_0x52bf59['root']['rootName']);_0x319569['length']>0x0&&_0x3cdfa5['setSelection'](_0x319569);for(const _0x2bae89 of _0x4b5dc3)_0x2bae89['detach']();});});});}function _0x161499(_0x5a8153){_0x2892f3['model']['change'](_0x117fc9=>{const _0x460bc4=Array['from'](_0x1f1389['getRanges']())['map'](_0x28fc5d=>_0x507d1e['fromRange'](_0x28fc5d)),_0x4b9639=[];for(const _0x1981ff of _0x5a8153)for(const _0x54fc7d of _0x1981ff['getItems']({'shallow':!0x0}))_0x4b9639['push'](_0x54fc7d);for(const _0x2f75db of _0x4b9639)'$graveyard'!=_0x2f75db['root']['rootName']&&(_0x117fc9['setSelection'](_0x117fc9['createPositionAt'](_0x2f75db,0x0)),_0x2892f3['commands']['get']('removeTableColumn')['refresh'](),_0x2892f3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3cba6a=_0x460bc4['filter'](_0x3b875b=>'$graveyard'!=_0x3b875b['root']['rootName']);_0x3cba6a['length']>0x0&&_0x117fc9['setSelection'](_0x3cba6a);for(const _0x4316fd of _0x460bc4)_0x4316fd['detach']();});}function _0x11a712(_0x3de3e1,_0x16ea98){return _0x16ea98['every'](_0x8fcc64=>_0x3de3e1['some'](_0x3b4347=>_0x3b4347['end']['isEqual'](_0x8fcc64['start'])||_0x8fcc64['end']['isEqual'](_0x3b4347['start'])));}function _0x35fd41(_0x13ac28,_0x24e9b7){return!_0x13ac28['some'](_0x4d6d06=>_0x24e9b7['some'](_0x87f3f6=>_0x4d6d06['isIntersecting'](_0x87f3f6)))&&_0x13ac28['some'](_0x48a388=>_0x24e9b7['some'](_0x3e241f=>_0x48a388['end']['isTouching'](_0x3e241f['start'])));}_0x2892f3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ed29d,_0x4906c4,_0x80b76f)=>{if(!_0x80b76f['options']['showSuggestionHighlights'])return;const _0x518183=_0x4906c4['item'];if(!_0x518183)return;const _0x5cf069=_0x80b76f['mapper']['toViewElement'](_0x518183);function _0x4ed7bc(_0x102eba){return Array['isArray'](_0x102eba)?_0x102eba:[_0x102eba];}_0x5cf069&&'tableCell'===_0x518183['name']&&_0x191c1c(_0x5cf069,_0x80b76f['writer'],(_0x3e9645,_0x152d9c,_0x5855d7)=>_0x5855d7['addClass'](_0x4ed7bc(_0x152d9c['classes']),_0x3e9645),(_0x3c57b8,_0x3858f4,_0x223e8e)=>_0x223e8e['removeClass'](_0x4ed7bc(_0x3858f4['classes']),_0x3c57b8));},{'priority':'highest'}),_0x41903b['descriptionFactory']['registerDescriptionCallback'](_0x2b68de=>{if('insertion'!=_0x2b68de['type']&&'deletion'!=_0x2b68de['type'])return;const _0x33eb99=_0x2b68de['getContainedElement']();if(null!=_0x33eb99&&_0x33eb99['is']('element','table')){if('insertion'==_0x2b68de['type']){const _0x21f26c=_0x2b68de['getItems']()['filter'](_0x1fb46b=>_0x1fb46b['is']('$textProxy'))['map'](_0x140233=>_0x140233['data']);if(_0x21f26c['length'])return{'type':'insertion','content':c(_0x3f388c,'*Insert:*\x20%0',c(_0x3f388c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21f26c['join']('\x20')+'\x22'))};}if('deletion'==_0x2b68de['type']){const _0x39cd5a=_0x2b68de['getItems']()['filter'](_0x4b8292=>_0x4b8292['is']('$textProxy'))['map'](_0x2acfd3=>_0x2acfd3['data']);if(_0x39cd5a['length'])return{'type':'deletion','content':c(_0x3f388c,'*Remove:*\x20%0',c(_0x3f388c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x39cd5a['join']('\x20')+'\x22'))};}}}),_0x41903b['descriptionFactory']['registerDescriptionCallback'](_0x284125=>{if('tableRow'==_0x284125['subType']){const _0x2032d7=_0x284125['getItems']()['filter'](_0x355446=>_0x355446['is']('$textProxy'))['map'](_0x388ead=>_0x388ead['data']),_0x23974a=this['_getSuggestionCoords'](_0x284125),_0x11c9c4=_0x23974a['maxRow']-_0x23974a['minRow']+0x1;if('insertion'==_0x284125['type'])return _0x2032d7['length']?{'type':'insertion','content':c(_0x3f388c,'*Insert:*\x20%0',c(_0x3f388c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x11c9c4,'\x22'+_0x2032d7['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3f388c,'*Insert:*\x20%0',c(_0x3f388c,'ELEMENT_TABLE_ROW',_0x11c9c4))};if('deletion'==_0x284125['type'])return _0x2032d7['length']?{'type':'deletion','content':c(_0x3f388c,'*Remove:*\x20%0',c(_0x3f388c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x11c9c4,'\x22'+_0x2032d7['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3f388c,'*Remove:*\x20%0',c(_0x3f388c,'ELEMENT_TABLE_ROW',_0x11c9c4))};}if('tableColumn'==_0x284125['subType']){const _0x4b0d5c=_0x284125['getItems']()['filter'](_0x5728c1=>_0x5728c1['is']('$textProxy'))['map'](_0x49230d=>_0x49230d['data']),_0x476684=this['_getSuggestionCoords'](_0x284125),_0x7de1c6=_0x476684['maxColumn']-_0x476684['minColumn']+0x1;if('insertion'==_0x284125['type'])return _0x4b0d5c['length']?{'type':'insertion','content':c(_0x3f388c,'*Insert:*\x20%0',c(_0x3f388c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x7de1c6,'\x22'+_0x4b0d5c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3f388c,'*Insert:*\x20%0',c(_0x3f388c,'ELEMENT_TABLE_COLUMN',_0x7de1c6))};if('deletion'==_0x284125['type'])return _0x4b0d5c['length']?{'type':'deletion','content':c(_0x3f388c,'*Remove:*\x20%0',c(_0x3f388c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x7de1c6,'\x22'+_0x4b0d5c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3f388c,'*Remove:*\x20%0',c(_0x3f388c,'ELEMENT_TABLE_COLUMN',_0x7de1c6))};}}),_0x41903b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x30c8ed),_0x41903b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x30c8ed),_0x41903b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x161499),_0x41903b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x161499),_0x41903b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x11a712),_0x41903b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x11a712),_0x41903b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x35fd41),_0x41903b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x35fd41);}['_acceptFormatSuggestionCallbackFactory'](){const _0x45516e=this['editor'],_0x4e628a=_0x45516e['model']['document']['selection'];return(_0x2f7fc6,_0x2a4b3f)=>{_0x45516e['model']['change'](_0xa8059a=>{const {commandName:_0x5eb633,commandParams:_0x13ab27}=_0x2a4b3f;let _0x4ec7d8=_0x2f7fc6[0x0]['end']['nodeBefore'];_0x13ab27&&_0x13ab27[0x0]&&!0x1===_0x13ab27[0x0]['forceValue']&&(_0x4ec7d8=_0x2f7fc6[0x0]['start']['nodeAfter']);const _0x4d47a9=_0xa8059a['createRangeIn'](_0x4ec7d8);if('$graveyard'==_0x4d47a9['root']['rootName'])return;const _0x21c40c=Array['from'](_0x4e628a['getRanges']())['map'](_0x93678a=>_0x507d1e['fromRange'](_0x93678a));_0xa8059a['setSelection'](_0x4d47a9),_0x45516e['commands']['get'](_0x5eb633)['refresh'](),_0x13ab27['push']({'forceDefaultExecution':!0x0}),_0x45516e['execute'](_0x5eb633,..._0x13ab27);const _0x56b29e=_0x21c40c['filter'](_0x34643f=>'$graveyard'!=_0x34643f['root']['rootName']);_0x56b29e['length']>0x0&&_0xa8059a['setSelection'](_0x56b29e);for(const _0x5e8bae of _0x21c40c)_0x5e8bae['detach']();});};}['_getCoordsForCells'](_0x5c6429){const _0x3a8db5=this['editor']['plugins']['get']('TableUtils');let _0x3ffb3e=Number['MAX_SAFE_INTEGER'],_0x2c3647=Number['MIN_SAFE_INTEGER'],_0x1bf996=Number['MAX_SAFE_INTEGER'],_0x5db2ac=Number['MIN_SAFE_INTEGER'];for(const _0x4e21f4 of _0x5c6429){if('$graveyard'==_0x4e21f4['root']['rootName'])continue;const {row:_0x5a5c2a,column:_0x1f96a7}=_0x3a8db5['getCellLocation'](_0x4e21f4),_0xa32afc=_0x4e21f4['hasAttribute']('rowspan')?_0x4e21f4['getAttribute']('rowspan')-0x1:0x0,_0x365497=_0x4e21f4['hasAttribute']('colspan')?_0x4e21f4['getAttribute']('colspan')-0x1:0x0;_0x3ffb3e=_0x5a5c2a<_0x3ffb3e?_0x5a5c2a:_0x3ffb3e,_0x2c3647=_0x5a5c2a+_0xa32afc>_0x2c3647?_0x5a5c2a+_0xa32afc:_0x2c3647,_0x1bf996=_0x1f96a7<_0x1bf996?_0x1f96a7:_0x1bf996,_0x5db2ac=_0x1f96a7+_0x365497>_0x5db2ac?_0x1f96a7+_0x365497:_0x5db2ac;}return{'minRow':_0x3ffb3e,'maxRow':_0x2c3647,'minColumn':_0x1bf996,'maxColumn':_0x5db2ac};}['_setupColumnsRowsFixing'](){const _0x4718af=this['editor'],_0x434727=_0x4718af['plugins']['get']('TrackChangesEditing'),_0x2d3c3f=_0x4718af['plugins']['get']('TableUtils');_0x4718af['model']['document']['on']('change:data',()=>{const _0x1312d2=Array['from'](_0x4718af['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e6c91,data:_0x4b0719}of _0x1312d2){const {group:_0x31170b,id:_0x2d6344,subType:_0xd31ba3}=_0x434727['_splitMarkerName'](_0x5e6c91);if('suggestion'!=_0x31170b)continue;if(null!=_0x4b0719['oldRange'])continue;const _0x28ee97=_0x434727['getSuggestion'](_0x2d6344);this['_tablePostFixingSubtypes']['includes'](_0xd31ba3)&&this['_tableSuggestions']['add'](_0x28ee97);}},{'priority':'low'});const _0x5989ae=(_0x389e0b,_0x42ba06)=>{let _0x22b66c=!0x1;const _0xe18d97=_0x42ba06['createRangeOn'](_0x389e0b),_0xbd3747=_0x389e0b['findAncestor']('table'),_0x77290e=_0x2d3c3f['getCellLocation'](_0x389e0b);for(const _0x30a348 of this['_tableSuggestions']){const _0x4f01af=_0x30a348['subType'],_0x2dee86=_0x4f01af['startsWith']('tablePaste'),_0x1d4140=_0x4f01af['substr'](_0x2dee86?0xa:0x5),_0x7f5a75=_0x1d4140['toLowerCase'](),_0x25630f=_0x7f5a75['substr'](0x0,0x3)+'span',_0x39a9ac='min'+_0x1d4140,_0x4044b5='max'+_0x1d4140;if(!_0x30a348['isInContent'])continue;if(_0xbd3747!=_0x30a348['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x30a348['isIntersectingWithRange'](_0xe18d97))continue;const _0x1f34d2=_0x389e0b['hasAttribute'](_0x25630f)?_0x389e0b['getAttribute'](_0x25630f)-0x1:0x0,_0x3dcef2=this['_getSuggestionCoords'](_0x30a348),_0x13a5b4=_0x3dcef2[_0x39a9ac],_0x153571=_0x3dcef2[_0x4044b5];_0x13a5b4<=_0x77290e[_0x7f5a75]&&_0x77290e[_0x7f5a75]+_0x1f34d2<=_0x153571&&(_0x30a348['addRange'](_0xe18d97),_0x22b66c=!0x0);}return _0x22b66c;};_0x4718af['model']['document']['registerPostFixer'](_0xeec91b=>{let _0x193a8c=!0x1;for(const _0x4e3bb5 of _0x4718af['model']['document']['differ']['getChanges']())if('insert'==_0x4e3bb5['type']){if('tableRow'==_0x4e3bb5['name']){for(const _0x17926f of _0x4e3bb5['position']['nodeAfter']['getChildren']())_0x193a8c=_0x193a8c||_0x5989ae(_0x17926f,_0xeec91b);}else'tableCell'==_0x4e3bb5['name']&&(_0x193a8c=_0x193a8c||_0x5989ae(_0x4e3bb5['position']['nodeAfter'],_0xeec91b));}return _0x193a8c;});}['_getSuggestionCoords'](_0xc6c775){return this['_getCoordsForCells'](_0xc6c775['getRanges']()['map'](_0x453c70=>_0x453c70['start']['nodeAfter']));}}function Ne(_0x56422c){return Array['from'](new Set(_0x56422c)['values']());}class Nt extends _0x299b22{static get['requires'](){return[Ct];}['afterInit'](){const _0x20d762=this['editor'],_0x34779c=_0x20d762['model']['document']['selection'],_0x2f47c0=_0x20d762['locale'];if(!_0x20d762['plugins']['has']('TableEditing'))return;const _0x4326eb=_0x20d762['plugins']['get']('TrackChangesEditing'),_0x43056f=_0x20d762['plugins']['get']('TableUtils'),_0x3a437a=_0x20d762['plugins']['get'](Ct);_0x3a437a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4326eb['enableCommand']('mergeTableCells',()=>{const _0x1034d4=_0x43056f['getSelectionAffectedTableCells'](_0x20d762['model']['document']['selection']);_0x20d762['model']['change'](()=>{_0x4326eb['markMultiRangeBlockFormat'](_0x1034d4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x20d762['commands']['get']('mergeTableCells')['on']('execute',(_0x1a1560,_0x5d3199)=>{_0x20d762['commands']['get']('trackChanges')['value']&&(_0x5d3199['length']>0x0&&_0x5d3199[_0x5d3199['length']-0x1]&&_0x5d3199[_0x5d3199['length']-0x1]['forceDefaultExecution']||_0x4326eb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1a1560['stop']());},{'priority':'highest'});for(const _0x560b4a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x52ca2a=_0x20d762['commands']['get'](_0x560b4a);_0x4326eb['enableCommand'](_0x560b4a,()=>{const _0x5f19e9=_0x20d762['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x225eb0=>_0x225eb0['is']('element','tableCell')),_0x28d5ff=_0x52ca2a['value'];_0x20d762['model']['change'](()=>{_0x4326eb['markMultiRangeBlockFormat']([_0x5f19e9,_0x28d5ff],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2a2e8f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2119d3=_0x20d762['commands']['get'](_0x2a2e8f);_0x4326eb['enableCommand'](_0x2a2e8f,()=>{const _0x604b27=_0x43056f['getSelectionAffectedTableCells'](_0x20d762['model']['document']['selection'])[0x0],_0xacac88=_0x604b27['findAncestor']('table'),{column:_0xcfacfc,row:_0x44c9fe}=_0x43056f['getCellLocation'](_0x604b27);let _0x462e6e=[];if('horizontally'==_0x2119d3['direction']){const _0x35af47=_0x43056f['createTableWalker'](_0xacac88,{'startRow':_0x44c9fe,'endRow':_0x44c9fe,'includeAllSlots':!0x0});_0x462e6e=Array['from'](_0x35af47)['map'](_0x9b5f24=>_0x9b5f24['cell']);}else{const _0x14e1fb=_0x43056f['createTableWalker'](_0xacac88,{'column':_0xcfacfc,'includeAllSlots':!0x0});_0x462e6e=Array['from'](_0x14e1fb)['map'](_0x3226ae=>_0x3226ae['cell']);}_0x20d762['model']['change'](_0x374f40=>{_0x4326eb['markBlockFormat'](_0x374f40['createRangeOn'](_0x604b27),{'commandName':_0x2a2e8f,'commandParams':[]},_0x462e6e,_0x2a2e8f);});});}_0x4326eb['descriptionFactory']['registerDescriptionCallback'](_0xf6395e=>{if('formatBlock'!=_0xf6395e['type']&&'formatInline'!=_0xf6395e['type'])return;const {data:_0x40d113}=_0xf6395e;return _0x40d113&&'mergeTableCells'==_0x40d113['commandName']?{'type':'format','content':c(_0x2f47c0,'*Merge\x20cells*')}:void 0x0;}),_0x4326eb['descriptionFactory']['registerDescriptionCallback'](_0x47ee67=>{if('formatBlock'!=_0x47ee67['type']&&'formatInline'!=_0x47ee67['type'])return;const {data:_0x479283}=_0x47ee67;return _0x479283?'splitTableCellVertically'==_0x479283['commandName']?{'type':'format','content':c(_0x2f47c0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x479283['commandName']?{'type':'format','content':c(_0x2f47c0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xdd9a1e=_0x3a437a['_acceptFormatSuggestionCallbackFactory']();for(const _0x16e105 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4326eb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16e105,'accept',_0xdd9a1e);for(const _0x231668 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4326eb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x231668,'accept',_0xdd9a1e);_0x4326eb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2247a8=>{_0x20d762['model']['change'](_0x33a95e=>{const _0x33fb56=Array['from'](_0x34779c['getRanges']())['map'](_0x42f772=>_0x507d1e['fromRange'](_0x42f772));_0x33a95e['setSelection'](_0x2247a8),_0x20d762['commands']['get']('mergeTableCells')['refresh'](),_0x20d762['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xb54843=_0x33fb56['filter'](_0x453b50=>'$graveyard'!=_0x453b50['root']['rootName']);_0xb54843['length']>0x0&&_0x33a95e['setSelection'](_0xb54843);for(const _0x2d36d2 of _0x33fb56)_0x2d36d2['detach']();});});for(const _0x258100 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3986f4=_0x20d762['commands']['get'](_0x258100);_0x3986f4['on']('set:isEnabled',(_0x56da2e,_0x50dc24,_0x562aaf)=>{if(_0x562aaf){const _0x57cc9b=_0x20d762['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38749a=>_0x38749a['is']('element','tableCell'));this['_areMergableCells'](_0x3986f4['value'],_0x57cc9b)||(_0x56da2e['return']=!0x1,_0x56da2e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x575870=this['editor']['commands']['get']('mergeTableCells'),_0x4cf095=this['editor']['plugins']['get']('TableUtils');if(!_0x575870['isEnabled'])return!0x1;const _0x6e7e6e=_0x4cf095['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3de3ee of _0x6e7e6e)for(const _0x5e1716 of _0x6e7e6e)if(_0x3de3ee!=_0x5e1716&&!this['_areMergableCells'](_0x3de3ee,_0x5e1716))return!0x1;return!0x0;}['_areMergableCells'](_0xd2e86b,_0x280ae9){const _0x4d6aef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10b0f9=this['editor']['model']['createRangeOn'](_0xd2e86b),_0x1ebaba=this['editor']['model']['createRangeOn'](_0x280ae9),_0xe69370=new Set(),_0xb9a5f3=new Set();for(const _0x23bc1d of _0x4d6aef['getSuggestions']())if(('insertion'==_0x23bc1d['type']||'deletion'==_0x23bc1d['type']||'mergeTableCells'==_0x23bc1d['subType'])&&_0x23bc1d['isInContent']){for(const _0x4c21e3 of _0x23bc1d['getRanges']())_0x4c21e3['containsRange'](_0x10b0f9,!0x0)&&_0xe69370['add'](_0x23bc1d['type']+':'+_0x23bc1d['author']['id']),_0x4c21e3['containsRange'](_0x1ebaba,!0x0)&&_0xb9a5f3['add'](_0x23bc1d['type']+':'+_0x23bc1d['author']['id']);}if(_0xe69370['size']!=_0xb9a5f3['size'])return!0x1;for(const _0x249f5d of _0xe69370)if(!_0xb9a5f3['has'](_0x249f5d))return!0x1;return!0x0;}}class Dt extends _0x299b22{static get['requires'](){return[Ct];}['afterInit'](){const _0x53158e=this['editor'];if(!_0x53158e['plugins']['has']('TableEditing'))return;const _0xe7735f=_0x53158e['locale'],_0x12718e=_0x53158e['plugins']['get']('TrackChangesEditing');_0x12718e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x12718e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x12718e['registerBlockAttribute']('headingRows'),_0x12718e['registerBlockAttribute']('headingColumns'),_0x12718e['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xe7735f,'FORMAT_HEADER_ROW')),_0x12718e['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xe7735f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5e1bdb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54fa6b=this['editor']['plugins']['get']('TableUtils'),_0x2e251c=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x14007f({showActiveMarker:_0x1a8869=!0x0,setDataAttribute:_0x446a91=!0x0}={}){return(_0x248409,_0x46fbd3,_0x4b56c4)=>{const {type:_0xee056f,id:_0x4d9803}=_0x5e1bdb['_splitMarkerName'](_0x46fbd3['markerName']),_0x50e212=_0x5e1bdb['getSuggestion'](_0x4d9803),_0xf2a690=_0x50e212['data'];if('formatBlock'!=_0x50e212['type']||!_0xf2a690||'setTableColumnHeader'!=_0xf2a690['commandName'])return;if(_0x46fbd3['item'])return void _0x248409['stop']();if(!_0x4b56c4['consumable']['consume'](_0x46fbd3['markerRange'],_0x248409['name']))return;const _0x1944c8=_0x46fbd3['markerRange']['start']['nodeAfter'],_0x13c4ad=_0x46fbd3['markerRange']['end']['nodeBefore'],_0xb0ab01=_0x1944c8['parent']['parent'],{column:_0x29093f}=_0x54fa6b['getCellLocation'](_0x1944c8),{column:_0x72e6f4}=_0x54fa6b['getCellLocation'](_0x13c4ad);for(let _0x98987f=_0x29093f;_0x98987f<=_0x72e6f4;_0x98987f++){const _0x35a002=_0x54fa6b['createTableWalker'](_0xb0ab01,{'column':_0x98987f,'includeAllSlots':!0x1});for(const _0x3ad7b1 of _0x35a002){const _0x524c59=_0x3ad7b1['cell'],_0x135207=_0x4b56c4['mapper']['toViewElement'](_0x524c59);_0x4b56c4['writer']['addClass']('ck-suggestion-marker-'+_0xee056f,_0x135207),_0x446a91&&_0x4b56c4['writer']['setAttribute']('data-suggestion',_0x4d9803,_0x135207),_0x4b56c4['mapper']['bindElementToMarker'](_0x135207,_0x46fbd3['markerName']),_0x1a8869&&(_0x5e1bdb['activeMarkers']['includes'](_0x46fbd3['markerName'])?_0x4b56c4['writer']['addClass']('ck-suggestion-marker--active',_0x135207):_0x4b56c4['writer']['removeClass']('ck-suggestion-marker--active',_0x135207));}}};}_0x5e1bdb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2e251c),_0x5e1bdb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2e251c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x14007f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x46caa2,_0x1dd191,_0x253e29)=>{_0x253e29['options']['showSuggestionHighlights']&&_0x14007f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x46caa2,_0x1dd191,_0x253e29);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x18a498,_0xd133b2,_0x5ccc81)=>{const {type:_0xfb4142,id:_0x3a9afe}=_0x5e1bdb['_splitMarkerName'](_0xd133b2['markerName']),_0x2c0c2a=_0x5e1bdb['getSuggestion'](_0x3a9afe),_0x22c392=_0x2c0c2a['data'];if('formatBlock'!=_0x2c0c2a['type']||!_0x22c392||'setTableColumnHeader'!=_0x22c392['commandName'])return;const _0x3186fb=_0x5ccc81['mapper']['markerNameToElements'](_0xd133b2['markerName']);if(_0x3186fb){for(const _0x4f6739 of _0x3186fb)_0x5ccc81['writer']['removeClass']('ck-suggestion-marker-'+_0xfb4142,_0x4f6739),_0x5ccc81['writer']['removeClass']('ck-suggestion-marker--active',_0x4f6739),_0x5ccc81['writer']['removeAttribute']('data-suggestion',_0x4f6739),_0x5ccc81['mapper']['unbindElementFromMarkerName'](_0x4f6739,_0xd133b2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x505005=this['editor'],_0x551fc9=_0x505005['locale'];function _0x16dc03(_0x36c321){return{'type':'format','content':c(_0x551fc9,'*Format:*\x20%0',_0x36c321)};}_0x505005['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30a0e2=>{if('formatBlock'!=_0x30a0e2['type'])return;const {data:_0x581ce1}=_0x30a0e2;if(_0x581ce1){if('setTableRowHeader'==_0x581ce1['commandName']){const _0x5d7624=_0x581ce1['commandParams'][0x0]['forceValue'];return _0x16dc03(c(_0x551fc9,_0x5d7624?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x581ce1['commandName']){const _0x5759d9=_0x581ce1['commandParams'][0x0]['forceValue'];return _0x16dc03(c(_0x551fc9,_0x5759d9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2b4c4f=>[_0x2b4c4f,null]));class Mt extends _0x299b22{static get['requires'](){return[Ct];}['afterInit'](){const _0x4d3681=this['editor'];if(!_0x4d3681['plugins']['has']('TableClipboard'))return;const _0x164353=_0x4d3681['plugins']['get']('TrackChangesEditing'),_0x475e2a=_0x4d3681['plugins']['get']('TableUtils'),_0xd41da3=_0x4d3681['plugins']['get'](Ct),_0x1a600d=_0x4d3681['plugins']['get']('TableClipboard');_0xd41da3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4d3681['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4d3681['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x420b89=null;_0x4d3681['model']['on']('insertContent',(_0x3f97e9,_0x5eb938)=>{const [_0xe6026c,_0x2f6237]=_0x5eb938,_0x5ea6fa=_0x5eb938[_0x5eb938['length']-0x1];_0x5ea6fa&&_0x5ea6fa['forceDefaultExecution']||_0x164353['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4756ee,_0x2a5961,_0x5293a6,_0x2c38d6,_0x178500){if(_0x2a5961&&!_0x2a5961['is']('documentSelection'))return!0x1;const _0x5bcdd5=_0x178500['getTableIfOnlyTableInContent'](_0x4756ee,_0x5293a6);if(!_0x5bcdd5||!Ue(_0x5bcdd5,void 0x0,_0x2c38d6))return!0x1;const _0x596548=_0x2c38d6['getSelectionAffectedTableCells'](_0x5293a6['document']['selection']);if(!_0x596548['length'])return!0x1;const _0x85767d=_0x596548[0x0]['findAncestor']('table'),_0x33af92=_0x2c38d6['getRowIndexes'](_0x596548),_0x44cb63=_0x2c38d6['getColumnIndexes'](_0x596548),_0x208ba6={'startRow':_0x33af92['first'],'endRow':_0x33af92['last'],'startColumn':_0x44cb63['first'],'endColumn':_0x44cb63['last']};return 0x1==_0x596548['length']&&(_0x208ba6['endRow']+=_0x2c38d6['getRows'](_0x5bcdd5)-0x1,_0x208ba6['endColumn']+=_0x2c38d6['getColumns'](_0x5bcdd5)-0x1),Ue(_0x85767d,_0x208ba6,_0x2c38d6);}(_0xe6026c,_0x2f6237,_0x4d3681['model'],_0x475e2a,_0x1a600d)&&(_0x3f97e9['stop'](),_0x420b89={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4d3681['model']['change'](()=>{_0x4d3681['model']['insertContent'](_0x5eb938[0x0],_0x5eb938[0x1],_0x5eb938[0x2],{'forceDefaultExecution':!0x0});const _0x4d5e23=_0x1f8928(),{rowInsertionRanges:_0x280fe5,columnInsertionRanges:_0x336044,insertionRanges:_0x4c3ba4,deletionRanges:_0x83de18,cells:_0x1ec57b}=_0x420b89;_0x280fe5['length']&&_0x164353['markMultiRangeInsertion'](_0x280fe5,'tablePasteRow',{'tablePasteChainId':_0x4d5e23}),_0x336044['length']&&_0x164353['markMultiRangeInsertion'](_0x336044,'tablePasteColumn',{'tablePasteChainId':_0x4d5e23}),_0x4c3ba4['length']&&(_0x164353['markMultiRangeInsertion'](_0x4c3ba4,'tablePaste',{'tablePasteChainId':_0x4d5e23,'skipNestingCheck':!0x0}),_0x4c3ba4['forEach'](_0x3e5c93=>_0x3e5c93['detach']?.())),_0x83de18['length']&&(_0x164353['markMultiRangeDeletion'](_0x83de18,'tablePaste',{'tablePasteChainId':_0x4d5e23,'skipNestingCheck':!0x0}),_0x83de18['forEach'](_0x2c3459=>_0x2c3459['detach']?.()));const _0x205303=_0x164353['markMultiRangeBlockFormat'](_0x1ec57b['map'](({element:_0x34546e})=>_0x34546e),{'formatGroupId':_0x1f8928()},[],'tablePasteCell',{'tablePasteChainId':_0x4d5e23});if(_0x205303){const _0x1bfaf4=_0x205303['getMarkers'](),_0x41819b=[];for(const {element:_0x4e31a0,attributes:_0x2a7ebb}of _0x1ec57b){if(!_0x2a7ebb)continue;const _0xdce71f=_0x4d3681['model']['createRangeOn'](_0x4e31a0),_0x414651=_0x1bfaf4['find'](_0x1af40d=>_0x1af40d['getRange']()['isEqual'](_0xdce71f));_0x414651&&_0x41819b['push']([_0x414651['name'],_0x2a7ebb]);}_0x41819b['length']&&_0x205303['setAttribute']('markerAttributes',Object['fromEntries'](_0x41819b));}_0x420b89=null;}));},{'priority':_0x2bbd9f['high']+0xa}),_0x4d3681['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xfa86f0,_0xd654a5)=>{const [_0x7bfdea,_0x1f4ebe,,_0x283d80]=_0xd654a5;if(!_0x420b89)return;_0xfa86f0['stop']();const _0x141652=_0x7bfdea['cell'],_0x455ba5=_0x1f4ebe,_0x1a4390=Oe(_0x141652),_0x160034=Oe(_0x455ba5);_0xfa86f0['return']=_0x141652;let _0x540ccf=null,_0x1200a4=null;if(_0x160034||_0x1a4390){if(_0x1a4390&&!_0x160034){_0x283d80['remove'](_0x141652['getChild'](0x0));for(const _0x2e851d of Array['from'](_0x455ba5['getChildren']()))_0x283d80['insert'](_0x2e851d,_0x141652,'end');const _0x39a04d=_0x420b89['rowInsertionIndexes']['includes'](_0x7bfdea['row']),_0x1acf4b=_0x420b89['columnInsertionIndexes']['includes'](_0x7bfdea['column']);_0x39a04d||_0x1acf4b||(_0x540ccf=_0x507d1e['fromRange'](_0x283d80['createRangeIn'](_0x141652)));}else _0x160034&&!_0x1a4390&&(_0x1200a4=_0x283d80['createRangeIn'](_0x141652));}else{const _0x22f99d=_0x283d80['createElement']('tableCellSuggestion'),_0x2e8245=_0x283d80['createElement']('tableCellSuggestion');_0x283d80['wrap'](_0x283d80['createRangeIn'](_0x141652),_0x2e8245),_0x283d80['insert'](_0x22f99d,_0x141652,0x0);for(const _0xae34bd of Array['from'](_0x455ba5['getChildren']()))_0x283d80['insert'](_0xae34bd,_0x22f99d,'end');_0x540ccf=_0x507d1e['fromRange'](_0x283d80['createRangeOn'](_0x22f99d)),_0x1200a4=_0x507d1e['fromRange'](_0x283d80['createRangeOn'](_0x2e8245));}const _0x46d03e=Array['from'](_0x455ba5['getAttributes']())['filter'](([_0x1c2704])=>Be['includes'](_0x1c2704));_0x420b89['cells']['push']({'element':_0x141652,'attributes':_0x46d03e['length']?Object['fromEntries'](_0x46d03e):null}),_0x540ccf&&_0x420b89['insertionRanges']['push'](_0x540ccf),_0x1200a4&&_0x420b89['deletionRanges']['push'](_0x1200a4);},{'priority':'high'}),_0x475e2a['on']('insertColumns',(_0x190501,_0x4018eb)=>{const [_0x489675,_0x11231e={}]=_0x4018eb;if(!_0x420b89)return;const _0x2d6346=_0x11231e['at']||0x0,_0x2cf5f1=_0x11231e['columns']||0x1;_0x420b89['columnInsertionIndexes']=new Array(_0x2cf5f1)['fill'](_0x2d6346)['map']((_0xcbbb7b,_0xd83e0c)=>_0xcbbb7b+_0xd83e0c);for(const {cell:_0x593034}of _0x475e2a['createTableWalker'](_0x489675,{'startColumn':_0x2d6346,'endColumn':_0x2d6346+_0x2cf5f1-0x1}))_0x420b89['columnInsertionRanges']['push'](_0x4d3681['model']['createRangeOn'](_0x593034));},{'priority':'low'}),_0x475e2a['on']('insertRows',(_0x2d6e17,_0x203aa0)=>{const [_0x44cec0,_0x5a2d92={}]=_0x203aa0;if(!_0x420b89)return;const _0x1a4c9f=_0x5a2d92['at']||0x0,_0x9093de=_0x5a2d92['rows']||0x1;_0x420b89['rowInsertionIndexes']=new Array(_0x9093de)['fill'](_0x1a4c9f)['map']((_0x204f5c,_0x1d21a6)=>_0x204f5c+_0x1d21a6);for(const {cell:_0x8b6786}of _0x475e2a['createTableWalker'](_0x44cec0,{'startRow':_0x1a4c9f,'endRow':_0x1a4c9f+_0x9093de-0x1}))_0x420b89['rowInsertionRanges']['push'](_0x4d3681['model']['createRangeOn'](_0x8b6786));},{'priority':'low'}),_0x164353['descriptionFactory']['registerDescriptionCallback'](_0xf4d519=>{if(_0xf4d519['subType']&&_0xf4d519['subType']['startsWith']('tablePaste'))return _0xf4d519['previous']?{}:{'type':'insertion','content':c(_0x4d3681['locale'],'*Replace\x20table\x20cells*')};});const _0x2293eb=()=>!0x1;for(const _0x184a24 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x164353['_suggestionFactory']['registerCustomCallback']('insertion',_0x184a24,'join',_0x2293eb),_0x164353['_suggestionFactory']['registerCustomCallback']('deletion',_0x184a24,'join',_0x2293eb),_0x164353['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x184a24,'join',_0x2293eb);_0x164353['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2293eb),_0x164353['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xd8c2bb,_0x59e9d4,_0x20990f)=>{const _0xf7658=_0xd8c2bb['map'](_0x29aea2=>_0x29aea2['getContainedElement']())['filter'](_0x2e8406=>_0x2e8406),_0xaa2c10=new Map(_0xf7658['map'](_0x1af742=>[_0x1af742,null]));if(_0x420b89){for(const {element:_0x4e8d9c,attributes:_0x2798bf}of _0x420b89['cells'])_0x2798bf&&_0xaa2c10['set'](_0x4e8d9c,_0x2798bf);}else{if(_0x20990f&&_0x20990f['markerAttributes'])for(const [_0x241f0d,_0x172d58]of Object['entries'](_0x20990f['markerAttributes'])){const _0x27e1d9=_0x4d3681['model']['markers']['get'](_0x241f0d),_0x1555e6=_0x27e1d9?_0x27e1d9['getRange']()['getContainedElement']():null;_0x1555e6&&_0xaa2c10['set'](_0x1555e6,_0x172d58);}}_0x4d3681['model']['change'](_0xc654af=>{for(const [_0x7efa0b,_0x5e2aed]of _0xaa2c10)_0xc654af['setAttributes']({...xe,..._0x5e2aed},_0x7efa0b);});});const _0x5daf38=(_0x5135cc,_0x2fa609)=>{_0x164353['_suggestionFactory']['registerCustomCallback'](_0x5135cc,'tablePaste',_0x2fa609,(_0x47c384,_0x1bf8dc,_0x552c67)=>{_0x4d3681['model']['change'](_0x414a27=>{const _0x2f1d84=[];for(const _0x523dad of _0x47c384){const _0x39e30b=_0x523dad['start']['nodeAfter'];_0x39e30b['is']('element','tableCellSuggestion')&&_0x2f1d84['push'](_0x39e30b);}_0x164353['_suggestionFactory']['getSuggestionCallback'](_0x5135cc,null,_0x2fa609)(_0x47c384,_0x1bf8dc,_0x552c67);for(const _0x197b83 of _0x2f1d84)'$graveyard'!=_0x197b83['root']['rootName']&&_0x414a27['unwrap'](_0x197b83);});});};_0x5daf38('insertion','accept'),_0x5daf38('insertion','discard'),_0x5daf38('deletion','accept'),_0x5daf38('deletion','discard'),_0x164353['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x40535f=>{const _0x451995=_0x40535f['map'](_0xcf51c7=>_0xcf51c7['getContainedElement']()),_0x504d56=_0x451995[0x0]['findAncestor']('table'),{minRow:_0x192ee3,maxRow:_0x565827}=_0xd41da3['_getCoordsForCells'](_0x451995);_0x475e2a['removeRows'](_0x504d56,{'at':_0x192ee3,'rows':_0x565827-_0x192ee3+0x1});}),_0x164353['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3fbbd7=>{const _0x554049=_0x3fbbd7['map'](_0x58d2f6=>_0x58d2f6['getContainedElement']()),_0x3055d2=_0x554049[0x0]['findAncestor']('table'),{minColumn:_0x30ea2e,maxColumn:_0x1cd5e4}=_0xd41da3['_getCoordsForCells'](_0x554049);_0x475e2a['removeColumns'](_0x3055d2,{'at':_0x30ea2e,'columns':_0x1cd5e4-_0x30ea2e+0x1});});const _0x275c99=(_0x293912,_0x2c55cd)=>{if(!_0x2c55cd['subType']||!_0x2c55cd['subType']['startsWith']('tablePaste'))return;const _0x2ef70e=_0x2c55cd['attributes']['tablePasteChainId'],_0x1f2015=_0x164353['getSuggestions']()['filter'](_0x119941=>_0x119941['isInContent']&&_0x119941['attributes']&&_0x119941['attributes']['tablePasteChainId']==_0x2ef70e);_0x1f2015['length']&&_0x2c55cd['getAllAdjacentSuggestions']()['length']!=_0x1f2015['length']&&_0x1f2015['reduce']((_0x4d48bf,_0x4bc71f)=>(_0x4d48bf['next']=_0x4bc71f,_0x4bc71f['previous']=_0x4d48bf,_0x4bc71f));};function _0x304623(_0xeb0d33,_0x40d7fe=!0x0){const {id:_0x57ca75,authorId:_0x46b3a8}=_0x164353['_splitMarkerName'](_0xeb0d33['markerName']),_0x202ceb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x476c4b=_0x164353['activeMarkers']['includes'](_0xeb0d33['markerName']);return _0x476c4b&&_0x202ceb['push']('ck-suggestion-marker--active'),{'classes':_0x202ceb,'attributes':{'data-suggestion':_0x57ca75,'data-author-id':_0x46b3a8},'priority':_0x476c4b&&_0x40d7fe?0xbc2:0xbb8};}_0x164353['on']('suggestionLoaded',_0x275c99,{'priority':'high'}),_0x164353['on']('suggestionUnloaded',_0x275c99,{'priority':'high'}),_0x4d3681['model']['document']['registerPostFixer'](()=>{let _0x38e30a=!0x1;const _0x6d9346=Array['from'](_0x4d3681['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x386f74,data:_0x2cc4c6}of _0x6d9346){const {group:_0x3aab53,type:_0xd1c4b2,id:_0x30a9b0}=_0x164353['_splitMarkerName'](_0x386f74);if('suggestion'!=_0x3aab53||'deletion'!=_0xd1c4b2||_0x2cc4c6['oldRange'])continue;if(!_0x164353['hasSuggestion'](_0x30a9b0))continue;const _0x46d973=_0x164353['getSuggestion'](_0x30a9b0)['getRanges'](),_0x3bd885=_0x4d3681['plugins']['get']('Users')['me'];for(const _0x56ea38 of _0x164353['getSuggestions']()){if(!_0x56ea38['isInContent']||_0x56ea38['author']!=_0x3bd885)continue;if('formatBlock'!=_0x56ea38['type']||'tablePasteCell'!=_0x56ea38['subType'])continue;if(_0x56ea38['getRanges']()['every'](_0x169c38=>_0x46d973['some'](_0x17cf0d=>_0x17cf0d['containsRange'](_0x169c38,!0x0)))){for(const _0x2870b4 of _0x56ea38['getAllAdjacentSuggestions']())_0x2870b4['isInContent']&&(_0x2870b4['discard'](),_0x38e30a=!0x0);}}}return _0x38e30a;}),_0x4d3681['model']['document']['registerPostFixer'](_0x3c2056=>{const _0xc7e5=_0x4d3681['commands']['get']('redo');if(!_0xc7e5||!_0xc7e5['_createdBatches']['has'](_0x3c2056['batch']))return!0x1;let _0x4aa618=!0x1;const _0x4110b4=_0x4d3681['plugins']['get']('Users')['me'],_0x3006ec=_0x4d3681['model']['document']['differ']['getChanges'](),_0x5ae1ed=Array['from'](_0x4d3681['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5ce464,data:_0xbb5bc1})=>{const {group:_0x5549b2,subType:_0x867e13,authorId:_0x5b31bc}=_0x164353['_splitMarkerName'](_0x5ce464);return'suggestion'==_0x5549b2&&'tablePaste'==_0x867e13&&_0x5b31bc==_0x4110b4['id']&&!_0xbb5bc1['oldRange'];});for(const _0x100b42 of _0x3006ec){if('insert'!=_0x100b42['type']||'tableCellSuggestion'!=_0x100b42['name']||0x1!=_0x100b42['length'])continue;const _0x4d083c=_0x3c2056['createRange'](_0x100b42['position'],_0x100b42['position']['getShiftedBy'](0x1));if(!_0x5ae1ed['find'](({data:_0x4f9b8f})=>_0x4f9b8f['newRange']['isEqual'](_0x4d083c))){for(const {name:_0x3ffd05,data:_0x2c9fcd}of _0x5ae1ed)if(_0x4d083c['containsRange'](_0x2c9fcd['newRange'])){_0x3c2056['updateMarker'](_0x3ffd05,{'range':_0x4d083c}),_0x4aa618=!0x0;break;}}}return _0x4aa618;}),_0x4d3681['model']['document']['registerPostFixer'](_0x1f875b=>{let _0x4362b4=!0x1;const _0x1d75d3=_0x4d3681['plugins']['get']('Users')['me'],_0x135acc=_0x164353['getSuggestions']()['filter'](_0x3046d3=>_0x3046d3['isInContent']&&_0x3046d3['author']==_0x1d75d3),_0xe51388=new Set(),_0x4f468f=new Set();for(const _0x54cb3a of _0x135acc)if('tablePaste'==_0x54cb3a['subType'])for(const _0x329370 of _0x54cb3a['getMarkers']()){const _0x35854b=_0x329370['getRange']()['getContainedElement']();if(_0x35854b){if(_0x35854b['is']('element','tableCellSuggestion')&&Oe(_0x35854b)){_0x54cb3a['removeMarker'](_0x329370['name']),_0xe51388['add'](_0x35854b),_0x4362b4=!0x0;const _0x188c88=_0x35854b['nextSibling'],_0x3e7136=_0x35854b['previousSibling'],_0x3723ae=_0x188c88&&_0x188c88['is']('element','tableCellSuggestion'),_0x104a92=_0x3e7136&&_0x3e7136['is']('element','tableCellSuggestion');_0x3723ae&&!_0xe51388['has'](_0x188c88)&&_0x4f468f['add'](_0x188c88),_0x104a92&&!_0xe51388['has'](_0x3e7136)&&_0x4f468f['add'](_0x3e7136);}else _0x35854b['is']('element','paragraph')&&_0x35854b['isEmpty']&&(_0x54cb3a['removeMarker'](_0x329370['name']),_0x4362b4=!0x0);}}else{if('tablePasteCell'==_0x54cb3a['subType']){if(!_0x54cb3a['attributes']||!_0x54cb3a['attributes']['tablePasteChainId'])continue;const _0x167bc0=_0x54cb3a['attributes']['markerAttributes'];if(_0x167bc0&&Object['keys'](_0x167bc0)['length'])continue;const _0x1a5944=_0x54cb3a['attributes']['tablePasteChainId'];let _0x21dd83=!0x0,_0x275ba1=!0x0;for(const _0xbf8987 of _0x135acc)if(_0xbf8987['subType']&&_0xbf8987['subType']['startsWith']('tablePaste')){if(!_0xbf8987['attributes']['tablePasteChainId']){_0x275ba1=!0x1;break;}if(_0xbf8987['id']!=_0x54cb3a['id']&&_0xbf8987['attributes']['tablePasteChainId']==_0x1a5944){_0x21dd83=!0x1;break;}}_0x275ba1&&_0x21dd83&&(_0x54cb3a['removeMarkers'](),_0x4362b4=!0x0);}}for(const _0x411872 of _0xe51388)_0x1f875b['remove'](_0x411872);for(const _0x51a9c4 of _0x4f468f)_0x1f875b['unwrap'](_0x51a9c4);return _0x4362b4;}),_0x4d3681['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x448479=>_0x304623(_0x448479),'converterPriority':'high'}),_0x4d3681['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x594cdf,_0x50a1ed)=>_0x50a1ed['options']['showSuggestionHighlights']?_0x304623(_0x594cdf,!0x1):null,'converterPriority':'high'});const _0x3023ae=_0x4d3681['editing']['view'];this['listenTo'](_0x3023ae['document'],'clipboardOutput',(_0x450c8d,_0x22e3e6)=>{const _0x3cf2a2=[];for(const _0x406c6b of _0x3023ae['createRangeIn'](_0x22e3e6['content'])['getItems']())_0x406c6b['is']('element','suggestion-td')&&_0x3cf2a2['push'](_0x406c6b);_0x3023ae['change'](_0x32beda=>{for(const _0x547e39 of _0x3cf2a2)_0x32beda['move'](_0x32beda['createRangeIn'](_0x547e39),_0x32beda['createPositionBefore'](_0x547e39)),_0x32beda['remove'](_0x547e39);});});}}function Oe(_0x3072e5){if(_0x3072e5['isEmpty'])return!0x0;const _0x82797f=_0x3072e5['getChild'](0x0);return _0x82797f['is']('element','paragraph')&&_0x82797f['isEmpty'];}function Ue(_0x314fb6,_0x2455f8={},_0x4694b8){for(const {isAnchor:_0x49cad6,cellHeight:_0x1bba68,cellWidth:_0x529f77}of _0x4694b8['createTableWalker'](_0x314fb6,{'includeAllSlots':!0x0,..._0x2455f8}))if(!_0x49cad6||0x1!=_0x1bba68||0x1!=_0x529f77)return!0x1;return!0x0;}class $t extends _0x299b22{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x182421=this['editor']['plugins']['get']('TrackChangesEditing');_0x182421['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x182421['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x182421['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x182421['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x182421['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x182421['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xec8b86,_0x12abd4){const _0x3e6ce2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xac46bf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e0c84=_0x12abd4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x95dc74=_0xac46bf['getColumnGroupElement'](_0x1e0c84);let _0x283a01=_0x95dc74?_0xac46bf['getTableColumnsWidths'](_0x95dc74):null,_0x20ee08=_0x1e0c84['getAttribute']('tableWidth')||null;const _0x40ea69=_0x12abd4['tableWidth']||_0x20ee08,_0x9638a=_0x12abd4['columnWidths']||_0x283a01,_0x2073b3=this['editor']['plugins']['get']('Users')['me'];for(const _0x3127ed of _0x3e6ce2['getSuggestions']()){const _0x27fef4=_0x3127ed['getContainedElement']();if('resizeTable'===_0x3127ed['subType']&&_0x27fef4===_0x1e0c84){_0x3127ed['author']!==_0x2073b3&&_0x3127ed['discard']();const _0xe58e0c=_0x3127ed['data']['commandParams'];_0x20ee08=_0xe58e0c[0x0]['tableWidth'],_0x283a01=_0xe58e0c[0x0]['columnWidths'];break;}}_0xec8b86({'table':_0x1e0c84,'tableWidth':_0x40ea69,'columnWidths':_0x9638a}),_0x3e6ce2['markBlockFormat'](_0x1e0c84,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x20ee08,'columnWidths':_0x283a01}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2f24c7){if('formatBlock'!=_0x2f24c7['type']&&'formatInline'!=_0x2f24c7['type'])return;const {data:_0x235a68}=_0x2f24c7;if(_0x235a68&&'resizeTable'===_0x235a68['formatGroupId']){const _0x3635c3='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3635c3)};}}}class Bt extends _0x299b22{['afterInit'](){const _0x4a0122=this['editor'];_0x4a0122['plugins']['has']('Template')&&_0x4a0122['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x299b22{['afterInit'](){const _0x38093e=this['editor'];if(!_0x38093e['commands']['get']('insertTableOfContents'))return;_0x38093e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2ef0f1=_0x38093e['plugins']['get']('TrackChangesEditing'),_0x2b0930=_0x38093e['locale'];_0x2ef0f1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4e983a=>c(_0x2b0930,'ELEMENT_TABLE_OF_CONTENTS',_0x4e983a));}}class Rt extends _0x299b22{['afterInit'](){const _0x150f7e=this['editor'];if(!_0x150f7e['plugins']['has']('Title'))return;const _0x7b11e0=_0x150f7e['plugins']['get']('TrackChangesEditing');_0x7b11e0['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x150f7e['locale'],'ELEMENT_TITLE')),_0x150f7e['model']['document']['registerPostFixer'](_0x382194=>{let _0x46a9e5=!0x1;const _0x3b893f=Array['from'](_0x150f7e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d2338,data:_0x4fbfb3}of _0x3b893f){const {group:_0x23c443}=_0x7b11e0['_splitMarkerName'](_0x3d2338);if('suggestion'!==_0x23c443||!_0x4fbfb3['newRange'])continue;const _0x3262ca=_0x4fbfb3['newRange'],_0x4f7841=_0x3262ca['end']['nodeBefore'];if(!_0x4f7841||!_0x4f7841['is']('element','title-content'))continue;if(!_0x3262ca['start']['isTouching'](_0x3262ca['end']))continue;const _0x4f966b=_0x150f7e['model']['schema']['getNearestSelectionRange'](_0x3262ca['end'],'forward');if(_0x4f966b&&_0x4f966b['isCollapsed']){const _0x2c6493=_0x382194['createRange'](_0x3262ca['start'],_0x4f966b['start']);_0x2c6493['isEqual'](_0x3262ca)||(_0x382194['updateMarker'](_0x3d2338,{'range':_0x2c6493}),_0x46a9e5=!0x0);}_0x46a9e5||(_0x382194['removeMarker'](_0x3d2338),_0x46a9e5=!0x0);}return _0x46a9e5;});}}class xt extends _0x299b22{['afterInit'](){const _0xbec902=this['editor'],_0x52eb90=_0xbec902['plugins']['get']('TrackChangesEditing');_0xbec902['plugins']['has']('Uploadcare')&&(_0x52eb90['enableCommand']('uploadcare'),_0xbec902['plugins']['has']('UploadcareImageEdit')&&(_0x52eb90['enableCommand']('uploadcareImageEdit'),_0x52eb90['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x52eb90['registerBlockAttribute']('uploadcareImageId'),_0x52eb90['descriptionFactory']['registerDescriptionCallback'](_0x4ab353=>{if('attribute'!=_0x4ab353['type'])return;const {data:_0x11bdf4}=_0x4ab353;return _0x11bdf4&&'uploadcareImageId'==_0x11bdf4['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x299b22{['afterInit'](){const _0x5f218e=this['editor'],_0x3dfed1=_0x5f218e['plugins']['get']('TrackChangesEditing');_0x5f218e['plugins']['has']('UndoEditing')&&(_0x3dfed1['enableCommand']('undo'),_0x3dfed1['enableCommand']('redo'));}}class Et extends _0x299b22{static get['requires'](){return[Ct];}['afterInit'](){const _0x5e8ae1=this['editor'];if(!_0x5e8ae1['plugins']['has']('TableCaptionEditing'))return;_0x5e8ae1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x299b22{['tableProperties'];['tableCellProperties'];constructor(_0x432752){super(_0x432752),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 _0x122625=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x47cb4c of this['tableProperties'])_0x122625['enableCommand'](_0x47cb4c,(_0x5a062c,_0x1596c7)=>{const _0x403dce=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x47cb4c,[_0x403dce],this['tableProperties'],'tableProperties',_0x5a062c,_0x1596c7);});_0x122625['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x122625['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x122625['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3fa318,_0x4a32c4)=>this['handleDiscardAction'](this['tableProperties'],_0x3fa318,_0x4a32c4)),_0x122625['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc4255e of this['tableCellProperties'])_0x122625['enableCommand'](_0xc4255e,(_0x52ced2,_0x31d422)=>{const _0x1ea8dd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc4255e,_0x1ea8dd,this['tableCellProperties'],'tableCellProperties',_0x52ced2,_0x31d422);});_0x122625['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x122625['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x122625['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xfc08ce,_0x18ccfc)=>this['handleDiscardAction'](this['tableCellProperties'],_0xfc08ce,_0x18ccfc)),_0x122625['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x122625['descriptionFactory']['registerDescriptionCallback'](_0x195be8=>this['handleSuggestionDescription'](_0x195be8));}['_handlePropertyChange'](_0x436696,_0x4460ec,_0x4f201a,_0x4736a4,_0xd0defb,_0x2e750b){const _0x25d655=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2e750b['batch'],()=>{for(const _0x5b2b97 of _0x4460ec){if(this['_getSuggestion'](_0x5b2b97,_0x4736a4))_0xd0defb(_0x2e750b);else{const _0x155347={};for(const _0x582041 of _0x4f201a){const _0x5066f2=_0x5b2b97['getAttribute'](_0x582041);void 0x0!==_0x5066f2&&(_0x155347[_0x582041]=_0x5066f2);}_0xd0defb(_0x2e750b),_0x25d655['markBlockFormat'](_0x5b2b97,{'commandParams':[_0x155347]},[],_0x4736a4);}}});}['handleDiscardAction'](_0x5d0da3,_0x481268,_0x309fd8){const _0x2b536b=_0x481268[0x0]['start']['nodeAfter'],_0x3c16a7=_0x309fd8['commandParams'][0x0];this['editor']['model']['change'](_0x2a3a82=>{for(const _0xb21c24 of _0x5d0da3)void 0x0!==_0x3c16a7[_0xb21c24]?_0x2a3a82['setAttribute'](_0xb21c24,_0x3c16a7[_0xb21c24],_0x2b536b):_0x2a3a82['removeAttribute'](_0xb21c24,_0x2b536b);});}['handleSuggestionDescription'](_0x346ab4){if(_0x346ab4['data'])switch(_0x346ab4['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'](_0xdeac7c,_0x53dee5){const _0x424ef3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x101b9d of _0x424ef3['getSuggestions']({'skipNotAttached':!0x0})){const _0x17a847=_0x101b9d['getContainedElement']();if(_0x101b9d['subType']===_0x53dee5&&_0x17a847===_0xdeac7c)return _0x101b9d;}return null;}}const u='$elementName';class p extends _0x299b22{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x450b2f,_0xdbdf54,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,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x434ec0){super(_0x434ec0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x255f3c,_0x589b03,_0x496a8d,_0x5873ac)=>{this['_model']['change'](()=>{for(const _0x216f86 of[..._0x5873ac,..._0x496a8d])this['_model']['markers']['has'](_0x216f86)&&_0x434ec0['editing']['reconvertMarker'](_0x216f86);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x434ec0['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(),_0x434ec0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x434ec0['config']['get']('trackChanges.trackFormatChanges'),_0x434ec0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x434ec0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x434ec0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x26d16c=this['editor'],_0x34857a=(_0x4d6bea,_0x5325da)=>{if('attribute'!=_0x4d6bea)return'ck-suggestion-marker-'+_0x4d6bea;const _0x53d98b=_0x5325da['split']('|')[0x0];return this['_isBlockAttribute'](_0x53d98b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x26d16c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x53a2dc=>{const {id:_0xb24196,authorId:_0x39c41f,type:_0x3ce0c0,subType:_0x3501b9}=this['_splitMarkerName'](_0x53a2dc['markerName']),_0x5bec24=['ck-suggestion-marker',_0x34857a(_0x3ce0c0,_0x3501b9)];let _0x5f4ddf=0xbb8;return this['activeMarkers']['includes'](_0x53a2dc['markerName'])&&(_0x5bec24['push']('ck-suggestion-marker--active'),_0x5f4ddf=0xbc2),'deletion'==_0x3ce0c0&&(_0x5f4ddf+=0x5),{'classes':_0x5bec24,'attributes':{'data-suggestion':_0xb24196,'data-author-id':_0x39c41f},'priority':_0x5f4ddf};}}),_0x26d16c['conversion']['for']('dataDowncast')['add'](_0x3466d1=>{_0x3466d1['on']('addMarker:suggestion',(_0x1e3d1a,_0xe3f2b0,_0x25b076)=>{if(!_0x25b076['options']['showSuggestionHighlights'])return;const _0x37a0f8=_0xe3f2b0['item'];if(!_0x37a0f8)return;const _0x25fa11=_0x25b076['mapper']['toViewElement'](_0x37a0f8);_0x26d16c['model']['schema']['isObject'](_0x37a0f8)&&_0x25fa11&&!_0x25fa11['getCustomProperty']('widget')&&_0x25fa11['is']('containerElement')&&_0x159d8a(_0x25fa11,_0x25b076['writer']);},{'priority':'high'});}),_0x26d16c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5a9627,_0x4a899c)=>{if(!_0x4a899c['options']['showSuggestionHighlights'])return null;const {type:_0x39b087,subType:_0x99564e}=this['_splitMarkerName'](_0x5a9627['markerName']);return{'classes':['ck-suggestion-marker',_0x34857a(_0x39b087,_0x99564e)],'priority':0xbb8};}});const _0x168d38=({showActiveMarkers:_0xa46f54=!0x0,isAttributeSuggestion:_0x506fa8=!0x1}={})=>(_0x4fdda4,_0x185496,_0x500219)=>{if(!_0x185496['item'])return;const {id:_0x570d25,authorId:_0x55434f}=this['_splitMarkerName'](_0x185496['markerName']);if(_0x506fa8){const _0x1082e9=this['_suggestions']['get'](_0x570d25),_0x1919ce=this['_getAttributeKey'](_0x1082e9);if(!this['_isBlockAttribute'](_0x1919ce))return;}if(_0x185496['item']['is']('selection'))return void _0x500219['consumable']['consume'](_0x185496['item'],_0x4fdda4['name']);const _0x4cc6d3=_0x500219['mapper']['toViewElement'](_0x185496['item']);if(_0x185496['item']['is']('element')&&_0x26d16c['model']['schema']['isBlock'](_0x185496['item'])&&!_0x4cc6d3['getCustomProperty']('addHighlight')){_0x500219['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4cc6d3),_0x500219['writer']['setAttribute']('data-suggestion',_0x570d25,_0x4cc6d3),_0x500219['writer']['setAttribute']('data-author-id',_0x55434f,_0x4cc6d3),_0x500219['mapper']['bindElementToMarker'](_0x4cc6d3,_0x185496['markerName']),_0xa46f54&&(this['activeMarkers']['includes'](_0x185496['markerName'])?_0x500219['writer']['addClass']('ck-suggestion-marker--active',_0x4cc6d3):_0x500219['writer']['removeClass']('ck-suggestion-marker--active',_0x4cc6d3));for(const _0x5755ff of _0x26d16c['model']['createRangeIn'](_0x185496['item'])['getItems']())_0x500219['consumable']['consume'](_0x5755ff,_0x4fdda4['name']);_0x500219['consumable']['consume'](_0x185496['item'],_0x4fdda4['name']);}};_0x26d16c['conversion']['for']('dataDowncast')['add'](_0x51eab6=>{_0x51eab6['on']('addMarker:suggestion:formatBlock',(_0xa20c00,_0x1b841,_0x327916)=>{_0x327916['options']['showSuggestionHighlights']&&_0x168d38({'showActiveMarkers':!0x1})(_0xa20c00,_0x1b841,_0x327916);},{'priority':'highest'});}),_0x26d16c['conversion']['for']('dataDowncast')['add'](_0x4b2bc6=>{_0x4b2bc6['on']('addMarker:suggestion:attribute',(_0x132237,_0x383df6,_0x572dfe)=>{_0x572dfe['options']['showSuggestionHighlights']&&_0x168d38({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x132237,_0x383df6,_0x572dfe);},{'priority':'highest'});}),_0x26d16c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x38cf7e,_0x3b4e8c)=>_0x3b4e8c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x38cf7e['substr'](0xb)}}),_0x26d16c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xdb4ce8,{writer:_0x5d351d})=>{let _0x40edbe='suggestion:'+_0xdb4ce8['getAttribute']('suggestion-type')+':'+_0xdb4ce8['getAttribute']('id');return _0xdb4ce8['getAttribute']('marker-count')&&(_0x40edbe+=':'+_0xdb4ce8['getAttribute']('marker-count')),_0x5d351d['createElement']('$marker',{'data-name':_0x40edbe});}}),_0x26d16c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x26d16c['conversion']['for']('editingDowncast')['add'](_0x3b2669=>{_0x3b2669['on']('addMarker:suggestion:formatBlock',_0x168d38(),{'priority':'high'});}),_0x26d16c['conversion']['for']('editingDowncast')['add'](_0x17e85c=>{_0x17e85c['on']('addMarker:suggestion:attribute',_0x168d38({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x26d16c['conversion']['for']('editingDowncast')['add'](_0x48eaeb=>{_0x48eaeb['on']('removeMarker:suggestion:formatBlock',(_0xf91bba,_0x3b0962,_0x4cdeb6)=>{const _0x41ebce=_0x4cdeb6['mapper']['markerNameToElements'](_0x3b0962['markerName']);if(_0x41ebce){for(const _0x8591c4 of _0x41ebce)_0x8591c4['getCustomProperty']('addHighlight')||(_0x4cdeb6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x8591c4),_0x4cdeb6['writer']['removeAttribute']('data-suggestion',_0x8591c4),_0x4cdeb6['writer']['removeAttribute']('data-author-id',_0x8591c4),_0x4cdeb6['mapper']['unbindElementFromMarkerName'](_0x8591c4,_0x3b0962['markerName']));}},{'priority':'high'});}),_0x26d16c['conversion']['for']('editingDowncast')['add'](_0x10bb23=>{_0x10bb23['on']('removeMarker:suggestion:attribute',(_0x2ff404,_0x106b6f,_0x4c004a)=>{const _0x443ba7=_0x4c004a['mapper']['markerNameToElements'](_0x106b6f['markerName']);if(!_0x443ba7)return;const {id:_0x121f6b}=this['_splitMarkerName'](_0x106b6f['markerName']),_0x17362a=this['_suggestions']['get'](_0x121f6b),_0xe1122d=this['_getAttributeKey'](_0x17362a);if(this['_isBlockAttribute'](_0xe1122d)){for(const _0x5d131e of _0x443ba7)_0x5d131e['getCustomProperty']('addHighlight')||(_0x4c004a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5d131e),_0x4c004a['writer']['removeAttribute']('data-suggestion',_0x5d131e),_0x4c004a['writer']['removeAttribute']('data-author-id',_0x5d131e),_0x4c004a['mapper']['unbindElementFromMarkerName'](_0x5d131e,_0x106b6f['markerName']));}},{'priority':'high'});}),_0x26d16c['model']['document']['registerPostFixer'](_0x3ff135=>{let _0x57aec4=!0x1;const _0x2c098c=Array['from'](_0x26d16c['model']['document']['differ']['getChangedMarkers']()),_0x52c1a0=new Set();for(const {name:_0x5df928,data:_0x4127ae}of _0x2c098c){const {group:_0x651079,type:_0x573fa3,subType:_0x4c9a47,id:_0x16b98b}=this['_splitMarkerName'](_0x5df928);if('suggestion'!==_0x651079)continue;const _0xd06500=this['_suggestions']['get'](_0x16b98b);if(null!=_0x4127ae['newRange']){'formatInline'==_0x573fa3&&(_0x57aec4=_0x57aec4||Lt(_0x4127ae['newRange'],_0x5df928,_0x3ff135,_0x26d16c['model']['schema']));const _0x2e4364='attribute'==_0x573fa3&&this['_isBlockAttribute'](_0x4c9a47['split']('|')[0x0]);if(_0x4127ae['newRange']['isCollapsed']||'$graveyard'==_0x4127ae['newRange']['root']['rootName']||'formatBlock'==_0x573fa3&&!Kt(_0x4127ae['newRange'])||_0x2e4364&&!Kt(_0x4127ae['newRange'])||'deletion'==_0x573fa3&&!(!Gt(_0x1962c5=_0x4127ae['newRange'])&&!function(_0x81ee57){return _0x81ee57['start']['parent']==_0x81ee57['end']['nodeBefore']&&_0x81ee57['start']['isAtEnd'];}(_0x1962c5)))_0x3ff135['removeMarker'](_0x5df928),_0x57aec4=!0x0;else{if(!_0xd06500||!_0xd06500['isInContent'])continue;if(_0x4127ae['newRange']&&_0x4127ae['oldRange']&&_0x4127ae['newRange']['isEqual'](_0x4127ae['oldRange']))continue;_0x52c1a0['add'](_0xd06500);}}}var _0x1962c5;return _0x52c1a0['size']>0x0&&(_0x57aec4=!!this['_joinWithAdjacentSuggestions'](_0x52c1a0)||_0x57aec4),_0x57aec4;}),_0x26d16c['model']['document']['registerPostFixer'](_0xc9c729=>{let _0x48a3bd=!0x1;for(const _0x5cca47 of _0x26d16c['model']['document']['differ']['getChanges']())if('insert'==_0x5cca47['type'])for(const _0x1e3723 of this['_suggestions']['values']()){if(_0x1e3723['isMultiRange']||!_0x1e3723['isInContent'])continue;const _0x5783f9='formatBlock'==_0x1e3723['type'],_0xa26f4b=this['_getAttributeKey'](_0x1e3723),_0x338029=_0xa26f4b&&this['_isBlockAttribute'](_0xa26f4b);if(!_0x5783f9&&!_0x338029)continue;const _0x42da6e=_0x1e3723['getFirstRange']();if(_0x42da6e['start']['parent']!=_0x42da6e['end']['parent']&&!_0x42da6e['end']['isAtEnd']){const _0x31193d=_0x26d16c['model']['createPositionAt'](_0x42da6e['start']['nodeAfter'],'end'),_0x23c75c=_0x26d16c['model']['createRange'](_0x42da6e['start'],_0x31193d);_0xc9c729['updateMarker'](_0x1e3723['getFirstMarker'](),{'range':_0x23c75c}),_0x48a3bd=!0x0;}}return _0x48a3bd;}),_0x26d16c['model']['document']['registerPostFixer'](_0x595cb4=>this['_processAttributeChanges'](_0x595cb4)),_0x26d16c['model']['document']['registerPostFixer'](_0x5c5b57=>!_0x5c5b57['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5c5b57)),_0x26d16c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x26d16c['model']['document']['on']('change:data',(_0x1f6e94,_0x40a6fb)=>{if(!_0x40a6fb['isLocal']||_0x40a6fb['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x118e15=_0x26d16c['model']['document']['differ']['getChanges']();if(0x0==_0x118e15['length'])return;const _0x5a3cfd=[],_0x3e1598=_0x118e15['filter'](_0x5cf356=>'attribute'==_0x5cf356['type']),_0x425520=_0x118e15['filter'](_0x4faf99=>'insert'==_0x4faf99['type']&&'$text'!=_0x4faf99['name']);for(const _0x1c29fa of _0x3e1598)this['_isRegisteredAttribute'](_0x1c29fa['attributeKey'])&&_0x5a3cfd['push']({'key':_0x1c29fa['attributeKey'],'newValue':_0x1c29fa['attributeNewValue'],'oldValue':_0x1c29fa['attributeOldValue'],'range':Ht(_0x1c29fa['range'],_0x26d16c['model'])});for(const _0x431a4a of _0x425520){if('rename'!=_0x431a4a['action']&&'refresh'!=_0x431a4a['action'])continue;const _0x4a0c32=qt(_0x431a4a['position']['nodeAfter'],_0x26d16c['model']),_0x9d0395=_0x431a4a['before'];'rename'==_0x431a4a['action']&&_0x5a3cfd['push']({'key':u,'newValue':_0x431a4a['name'],'oldValue':_0x9d0395['name'],'range':_0x4a0c32});for(const [_0x52e81a,_0x3cd0aa]of _0x9d0395['attributes']){if(!this['_isRegisteredAttribute'](_0x52e81a))continue;const _0x3ad6ea=_0x431a4a['attributes']['get'](_0x52e81a);_0x3cd0aa!==_0x3ad6ea&&_0x5a3cfd['push']({'key':_0x52e81a,'newValue':_0x3ad6ea,'oldValue':_0x3cd0aa,'range':_0x4a0c32});}for(const [_0x442487,_0xf0b88b]of _0x431a4a['attributes'])this['_isRegisteredAttribute'](_0x442487)&&(_0x9d0395['attributes']['has'](_0x442487)||_0x5a3cfd['push']({'key':_0x442487,'newValue':_0xf0b88b,'oldValue':null,'range':_0x4a0c32}));}0x0!=_0x5a3cfd['length']&&_0x26d16c['model']['enqueueChange'](_0x40a6fb,_0x239db6=>{const _0x311133=_0x1f8928();for(const {range:_0x1493d3,key:_0x38cc61,oldValue:_0x12b536,newValue:_0xb741fc}of _0x5a3cfd)this['markAttributeChange'](_0x1493d3,_0x38cc61,_0x12b536,_0xb741fc,{'groupId':_0x311133});this['_reduceExistingSuggestions'](_0x239db6,_0x5a3cfd);});},{'priority':'lowest'}),_0x26d16c['model']['markers']['on']('update:suggestion',(_0x193902,_0x1e1768,_0x4db68d)=>{if(null==_0x4db68d){const {id:_0x153acb}=this['_splitMarkerName'](_0x1e1768['name']),_0x10c666=this['_suggestions']['get'](_0x153acb);_0x10c666&&_0x10c666['addMarkerName'](_0x1e1768['name']);}}),_0x26d16c['model']['document']['on']('change:data',()=>{const _0x20075f=Array['from'](_0x26d16c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20af5b=>'suggestion'===this['_splitMarkerName'](_0x20af5b['name'])['group']);if(0x0===_0x20075f['length'])return;_0x20075f['sort']((_0x295d84,_0x4c52a3)=>{const _0x4ad06c=_0x295d84['data']['oldRange'],_0x47a7f4=_0x4c52a3['data']['oldRange'];return null===_0x4ad06c&&null===_0x47a7f4?0x0:null===_0x4ad06c&&null!==_0x47a7f4?-0x1:null!==_0x4ad06c&&null===_0x47a7f4?0x1:_0x4ad06c['start']['isBefore'](_0x47a7f4['start'])?-0x1:0x1;});const _0x3b7601=new Set(),_0x4c83fe=new Set();for(const {name:_0x3c543f,data:_0x4304d5}of _0x20075f){const {id:_0x26fee5}=this['_splitMarkerName'](_0x3c543f);if(null===_0x4304d5['oldRange']){const _0x4915e4=this['_handleNewSuggestionMarker'](_0x3c543f);_0x4c83fe['add'](_0x4915e4);}else{const _0x25ce4d=this['_suggestions']['get'](_0x26fee5);null!==_0x4304d5['newRange']||_0x25ce4d['isInContent']?(_0x3b7601['add'](_0x25ce4d['head']),_0x4c83fe['add'](_0x25ce4d)):this['_removeSuggestion'](_0x25ce4d);}}_0x4c83fe['size']>0x0&&this['_refreshSuggestionsChain'](_0x4c83fe);for(const _0x27a364 of _0x3b7601)this['fire']('suggestionChanged',_0x27a364);}),_0x26d16c['model']['on']('applyOperation',(_0x49e3ee,_0x48dd32)=>{const _0x2e2365=_0x48dd32[0x0];if(!this['_suggestions']['size'])return;if(!_0x2e2365['isDocumentOperation'])return;if(_0x2e2365['batch']['isUndo']||!_0x2e2365['batch']['isLocal'])return;let _0x22d72e,_0x12729c;switch(_0x2e2365['type']){case'insert':_0x22d72e=_0x26d16c['model']['createPositionAt'](_0x2e2365['position']),_0x12729c=_0x22d72e['getShiftedBy'](_0x2e2365['howMany']);break;case'split':_0x22d72e=_0x26d16c['model']['createPositionAt'](_0x2e2365['splitPosition']),_0x12729c=_0x26d16c['model']['createPositionAt'](_0x2e2365['moveTargetPosition']);break;case'move':_0x22d72e=_0x26d16c['model']['createPositionAt'](_0x2e2365['targetPosition']),_0x12729c=_0x22d72e['getShiftedBy'](_0x2e2365['howMany']);break;default:return;}const _0x3d0ebb=_0x26d16c['model']['createRange'](_0x22d72e,_0x12729c);_0x26d16c['model']['change'](()=>{for(const {suggestion:_0xa4e98a,meta:_0x1439a6}of this['_findSuggestions'](_0x3d0ebb)){if(_0xa4e98a['isMultiRange'])continue;if('formatInline'==_0xa4e98a['type'])continue;const _0x2177f5=this['_getAttributeKey'](_0xa4e98a);if(_0x2177f5&&this['_isBlockAttribute'](_0x2177f5)&&'split'!=_0x2e2365['type'])continue;const _0x5580a8=_0xa4e98a['data']&&_0xa4e98a['data']['multipleBlocks'];('formatBlock'!=_0xa4e98a['type']||'split'==_0x2e2365['type']&&!_0x5580a8)&&(_0x1439a6['containsRangeInObject']||'insertion'==_0xa4e98a['type']&&_0x1439a6['isOwn']||_0xa4e98a['getFirstRange']()['containsRange'](_0x3d0ebb)&&this['_breakSuggestionMarker'](_0xa4e98a,_0x22d72e,_0x12729c));}});},{'priority':'lowest'}),_0x26d16c['model']['on']('deleteContent',(_0x28b2bf,_0x4b3f29)=>{const _0xd8e863=_0x4b3f29[0x0],_0x15fbf7=_0x4b3f29[0x1];if(_0x15fbf7&&_0x15fbf7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd8e863['isCollapsed'])return;const _0x484ab8=_0x26d16c['model']['schema'],{start:_0x26d8df,end:_0x4874dd}=_0xd8e863['getFirstRange'](),_0x3d23cd=_0x26d8df['nodeAfter']&&_0x484ab8['isLimit'](_0x26d8df['nodeAfter'])?null:_0x484ab8['getNearestSelectionRange'](_0x26d8df,'forward'),_0x52b3c2=_0x4874dd['nodeBefore']&&_0x484ab8['isLimit'](_0x4874dd['nodeBefore'])?null:_0x484ab8['getNearestSelectionRange'](_0x4874dd,'backward'),_0xe1bb5b=_0x26d16c['model']['createRange'](_0x3d23cd?_0x3d23cd['start']:_0x26d8df,_0x52b3c2?_0x52b3c2['end']:_0x4874dd);_0x26d16c['model']['change'](_0x38fb04=>{this['markDeletion'](_0xe1bb5b);const _0xfc312d=_0x26d16c['model']['schema']['getNearestSelectionRange'](_0xe1bb5b['start']);_0xd8e863['is']('documentSelection')?_0x38fb04['setSelection'](_0xfc312d):_0xd8e863['setTo'](_0xfc312d);}),_0x28b2bf['stop']();},{'priority':_0x2bbd9f['normal']+0xa}),_0x26d16c['model']['on']('insertContent',(_0x50630c,_0x552c39)=>{const _0x548c82=_0x552c39[_0x552c39['length']-0x1];_0x548c82&&_0x548c82['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x26d16c['model']['change'](()=>{let _0x2c2866=_0x26d16c['model']['insertContent'](_0x552c39[0x0],_0x552c39[0x1],_0x552c39[0x2],{'forceDefaultExecution':!0x0});if(!_0x2c2866)return;_0x50630c['return']=_0x2c2866['clone']();const _0x506671=_0x2c2866['end']['nodeBefore'],_0x1dcc36=_0x26d16c['model']['schema'];_0x506671&&_0x1dcc36['isBlock'](_0x506671)&&!_0x1dcc36['isObject'](_0x506671)&&(_0x2c2866=_0x26d16c['model']['createRange'](_0x2c2866['start'],_0x26d16c['model']['createPositionAt'](_0x506671,'end'))),this['markInsertion'](_0x2c2866);}),_0x50630c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x505070=new O(_0x26d16c,this['_suggestions']);_0x26d16c['commands']['add']('acceptSuggestion',_0x505070),this['enableCommand']('acceptSuggestion');const _0x2f8132=new R(_0x26d16c,this['_suggestions']);_0x26d16c['commands']['add']('discardSuggestion',_0x2f8132),this['enableCommand']('discardSuggestion'),_0x26d16c['commands']['add']('acceptAllSuggestions',new x(_0x26d16c,_0x505070,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x26d16c['commands']['add']('discardAllSuggestions',new x(_0x26d16c,_0x2f8132,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x26d16c['commands']['add']('acceptSelectedSuggestions',new E(_0x26d16c,_0x505070,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x26d16c['commands']['add']('discardSelectedSuggestions',new E(_0x26d16c,_0x2f8132,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x389ef2=_0x26d16c['plugins']['get']('CommentsRepository');this['listenTo'](_0x389ef2,'addComment',(_0x5119f4,{threadId:_0x4285ca})=>{const _0x251037=this['_suggestions']['get'](_0x4285ca);_0x251037&&_0x251037['commentThread']&&0x1===_0x251037['commentThread']['length']&&this['_updateSuggestionData'](_0x4285ca,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x389ef2,'removeComment',(_0x57b60b,{threadId:_0x237190})=>{const _0x4613e7=this['_suggestions']['get'](_0x237190);_0x4613e7&&_0x4613e7['commentThread']&&!_0x4613e7['commentThread']['length']&&this['_updateSuggestionData'](_0x237190,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1499cf){const _0x5d8068=_0x3bb274([0x71,0x33,0x72,0x74,0x5a,0x44,0x35,0x30,0x70,0x37,0x58,0x56,0x75,0x50,0x54,0x69,0x4b,0x6c,0x68,0x41,0x57,0x65,0x4f,0x4d,0x76,0x34,0x63,0x62,0x45,0x49,0x77,0x47,0x32,0x55,0x39,0x31,0x52,0x4e,0x53,0x6b,0x59,0x6f,0x46,0x7a,0x43,0x61,0x38,0x6a,0x64,0x48,0x42,0x79,0x4c,0x51,0x36,0x66,0x6d,0x6e,0x67,0x78,0x73,0x4a]),_0x42bf33=0x284361fe,_0x2dd32e=0x2844033e^_0x42bf33,_0x3a6b2b=window[_0x3bb274([0x44,0x61,0x74,0x65])][_0x3bb274([0x6e,0x6f,0x77])](),_0x164153=_0x1499cf[_0x3bb274([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4cade5=new window[(_0x3bb274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fff95=>{_0x164153[_0x3bb274([0x6f,0x6e,0x63,0x65])](_0x3bb274([0x72,0x65,0x61,0x64,0x79]),_0x3fff95);}),_0x3d7a25={[_0x3bb274([0x6b,0x74,0x79])]:_0x3bb274([0x45,0x43]),[_0x3bb274([0x75,0x73,0x65])]:_0x3bb274([0x73,0x69,0x67]),[_0x3bb274([0x63,0x72,0x76])]:_0x3bb274([0x50,0x2d,0x32,0x35,0x36]),[_0x3bb274([0x78])]:_0x3bb274([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]),[_0x3bb274([0x79])]:_0x3bb274([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]),[_0x3bb274([0x61,0x6c,0x67])]:_0x3bb274([0x45,0x53,0x32,0x35,0x36])},_0x1cb5ab=_0x164153[_0x3bb274([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bb274([0x67,0x65,0x74])](_0x3bb274([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e71b5(){let _0x3aa227,_0xd4b68b=null,_0x1d4352=null;try{if(_0x1cb5ab==_0x3bb274([0x47,0x50,0x4c]))return _0x3bb274([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3aa227=_0x4fcf00(),!_0x3aa227)return _0x3bb274([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3aa227[_0x3bb274([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d4352=_0x5732e3(_0x3aa227[_0x3bb274([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3aa227[_0x3bb274([0x6a,0x74,0x69])])),await _0x10bbc8()?_0x28b3ea()?_0x33f003()?_0x3bb274([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e6cd9()?(_0x3aa227[_0x3bb274([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bb274([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd4b68b=_0x19d7d0(_0x3bb274([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3aa227[_0x3bb274([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bb274([0x74,0x72,0x69,0x61,0x6c])&&(_0xd4b68b=_0x19d7d0(_0x3bb274([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x155402()):_0x3bb274([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bb274([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bb274([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x222f1e){return _0x3bb274([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33f003(){const _0x4e1981=[_0x3bb274([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bb274([0x74,0x72,0x69,0x61,0x6c])][_0x3bb274([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aa227[_0x3bb274([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a6b2b/0x3e8:0xe10*_0x2dd32e;return _0x3aa227[_0x3bb274([0x65,0x78,0x70])]<_0x4e1981;}function _0x28b3ea(){const _0x4c91e4=_0x3aa227[_0x3bb274([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4c91e4)return!0x1;if(_0x4c91e4[_0x3bb274([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb274([0x2a])))return!0x0;if(_0x4c91e4[_0x3bb274([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb274([0x54,0x43])))return!0x0;if(_0x4c91e4[_0x3bb274([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb274([0x52,0x54,0x43]))){if(_0x375e60())return!0x0;if(_0x5eeeca()||_0x5852ae())return!0x0;}return!0x1;}function _0x2e6cd9(){const _0x1792a4=_0x3aa227[_0x3bb274([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1792a4||0x0==_0x1792a4[_0x3bb274([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a64df}=new URL(window[_0x3bb274([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1792a4[_0x3bb274([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a64df))return!0x0;const _0x66291b=_0x2a64df[_0x3bb274([0x73,0x70,0x6c,0x69,0x74])](_0x3bb274([0x2e]));return _0x1792a4[_0x3bb274([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x417fe9=>_0x417fe9[_0x3bb274([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb274([0x2a])))[_0x3bb274([0x6d,0x61,0x70])](_0x46f15e=>_0x46f15e[_0x3bb274([0x73,0x70,0x6c,0x69,0x74])](_0x3bb274([0x2e])))[_0x3bb274([0x73,0x6f,0x6d,0x65])](_0x33c1d0=>_0x66291b[_0x3bb274([0x65,0x76,0x65,0x72,0x79])]((_0x428ada,_0x3cedd4)=>_0x33c1d0[_0x3cedd4]===_0x428ada||_0x33c1d0[_0x3cedd4]===_0x3bb274([0x2a])));}function _0x155402(){return _0xd4b68b&&_0x1d4352?new window[(_0x3bb274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f0b93,_0x2418d1)=>{_0xd4b68b[_0x3bb274([0x74,0x68,0x65,0x6e])](_0x1f0b93,_0x2418d1),_0x1d4352[_0x3bb274([0x74,0x68,0x65,0x6e])](_0x26d6c7=>{_0x26d6c7!=_0x3bb274([0x56,0x61,0x6c,0x69,0x64])&&_0x1f0b93(_0x26d6c7);},_0x2418d1);}):_0xd4b68b||_0x1d4352||_0x3bb274([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5732e3(_0x2194a7,_0x4bd5a9){return new window[(_0x3bb274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1943fc=>{if(_0x2058bc())return _0x1943fc(_0x3bb274([0x56,0x61,0x6c,0x69,0x64]));_0x3108a1(),_0x164153[_0x3bb274([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bb274([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37bcc1=!0x1;const _0x844f81=_0x1f8928();function _0x1da0bc(_0xf38e48){return!!_0xf38e48&&(typeof _0xf38e48===_0x3bb274([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf38e48===_0x3bb274([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf38e48[_0x3bb274([0x74,0x68,0x65,0x6e])]===_0x3bb274([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf38e48[_0x3bb274([0x63,0x61,0x74,0x63,0x68])]===_0x3bb274([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11eb32(_0x51026b){_0x554638(_0x51026b)[_0x3bb274([0x74,0x68,0x65,0x6e])](_0x55bdce=>{if(!_0x55bdce||_0x55bdce[_0x3bb274([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bb274([0x6f,0x6b]))return _0x3bb274([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x494ffc(_0x3ba424(_0x844f81+_0x4bd5a9))!=_0x55bdce[_0x3bb274([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bb274([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bb274([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bb274([0x74,0x68,0x65,0x6e])](_0xb08d06=>(_0x41fd44(),_0xb08d06),()=>{const _0x31b883=_0x3bacfe();return null==_0x31b883?(_0x41fd44(),_0x3bb274([0x56,0x61,0x6c,0x69,0x64])):_0x3bb274(_0x3a6b2b-_0x31b883>(0xc4fe5fe^_0x42bf33)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bb274([0x74,0x68,0x65,0x6e])](_0x1943fc)[_0x3bb274([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1943fc(_0x3bb274([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2822b6=0x28758f7e^_0x42bf33;function _0x41fd44(){const _0x21c799=_0x3bb274([0x6c,0x6c,0x63,0x74,0x2d])+_0x494ffc(_0x3ba424(_0x2194a7)),_0x305a19=_0x7c141b(_0x494ffc(window[_0x3bb274([0x4d,0x61,0x74,0x68])][_0x3bb274([0x63,0x65,0x69,0x6c])](_0x3a6b2b/_0x2822b6)));window[_0x3bb274([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bb274([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21c799,_0x305a19);}function _0x3bacfe(){const _0x2259f7=_0x3bb274([0x6c,0x6c,0x63,0x74,0x2d])+_0x494ffc(_0x3ba424(_0x2194a7)),_0x8d8916=window[_0x3bb274([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bb274([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2259f7);return _0x8d8916?window[_0x3bb274([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7c141b(_0x8d8916),0x10)*_0x2822b6:null;}function _0x554638(_0x520b84){return new window[(_0x3bb274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f6207,_0x9fdd35)=>{_0x520b84[_0x3bb274([0x74,0x68,0x65,0x6e])](_0x4f6207,_0x9fdd35),window[_0x3bb274([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9fdd35,0x2842b53e^_0x42bf33);});}}_0x164153[_0x3bb274([0x6f,0x6e])](_0x3bb274([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xaa82f4,_0x57b15d)=>{if(_0x57b15d[0x0]!=_0x2194a7)return _0x1943fc(_0x3bb274([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57b15d[0x1]={..._0x57b15d[0x1],[_0x3bb274([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x844f81};},{[_0x3bb274([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bb274([0x68,0x69,0x67,0x68])}),_0x164153[_0x3bb274([0x6f,0x6e])](_0x3bb274([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x586ee1=>{_0x1da0bc(_0x586ee1[_0x3bb274([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37bcc1=!0x0,_0x11eb32(_0x586ee1[_0x3bb274([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bb274([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bb274([0x6c,0x6f,0x77])}),_0x4cade5[_0x3bb274([0x74,0x68,0x65,0x6e])](()=>{_0x37bcc1||_0x1943fc(_0x3bb274([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2058bc(){return _0x164153[_0x3bb274([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bb274([0x76,0x69,0x65,0x77])][_0x3bb274([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bb274([0x61,0x75,0x74,0x6f]);}function _0x3108a1(){_0x164153[_0x3bb274([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bb274([0x76,0x69,0x65,0x77])][_0x3bb274([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bb274([0x61,0x75,0x74,0x6f]);}}function _0x19d7d0(_0x22dc18){const _0x55da1c=[new window[(_0x3bb274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53e210=>setTimeout(_0x53e210,0x284a5f32^_0x42bf33)),_0x4cade5[_0x3bb274([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bb274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ba7c3=>{let _0x1c7d7d=0x0;_0x164153[_0x3bb274([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb274([0x6f,0x6e])](_0x3bb274([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x102b0b,_0x3ad1ad)=>{_0x3ad1ad[0x0][_0x3bb274([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1c7d7d++,_0x1c7d7d==(0x28436006^_0x42bf33)&&(_0x5ba7c3(),_0x102b0b[_0x3bb274([0x6f,0x66,0x66])]());});}))];return window[_0x3bb274([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bb274([0x72,0x61,0x63,0x65])](_0x55da1c)[_0x3bb274([0x74,0x68,0x65,0x6e])](()=>_0x22dc18);}async function _0xdae917(){await _0x4cade5,_0x164153[_0x3bb274([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb274([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4a2748,_0x164153[_0x3bb274([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb274([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4a2748,_0x164153[_0x3bb274([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bb274([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x375e60(){return _0x3847ca(_0x3bb274([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5f31f5(_0x3bb274([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3bb274([0x73,0x74,0x61,0x74,0x65])]==_0x3bb274([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5eeeca(){return _0x3847ca(_0x3bb274([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 _0x5852ae(){return _0x3847ca(_0x3bb274([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x6e39b3(_0xf93f14){const _0x11fbae=_0x1f65fd();_0x164153[_0x11fbae]=_0x3bb274([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf93f14,_0xf93f14!=_0x3bb274([0x56,0x61,0x6c,0x69,0x64])&&_0xdae917();}function _0x1f65fd(){const _0x4942e1=window[_0x3bb274([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bb274([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bb274([0x6e,0x6f,0x77])]())[_0x3bb274([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bb274([0x2e]),'');let _0x47ee99=_0x3bb274([0x71]);for(let _0x9dc97a=0x0;_0x9dc97a<_0x4942e1[_0x3bb274([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9dc97a+=0x2){let _0x4805c8=window[_0x3bb274([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4942e1[_0x3bb274([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9dc97a,_0x9dc97a+0x2));_0x4805c8>=_0x5d8068[_0x3bb274([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4805c8-=_0x5d8068[_0x3bb274([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47ee99+=_0x5d8068[_0x4805c8];}return _0x47ee99;}function _0x4fcf00(){const _0x2723f3=_0x1cb5ab[_0x3bb274([0x73,0x70,0x6c,0x69,0x74])](_0x3bb274([0x2e]));if(0x3!=_0x2723f3[_0x3bb274([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5189cb(_0x2723f3[0x1]);function _0x5189cb(_0x5716a1){const _0x5ae995=_0x1f78f7(_0x5716a1);return _0x5ae995&&_0x5d9721()?_0x5ae995:null;function _0x5d9721(){const _0x11e9cd=_0x5ae995[_0x3bb274([0x6a,0x74,0x69])],_0x15bfd3=window[_0x3bb274([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11e9cd[_0x3bb274([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11e9cd[_0x3bb274([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b2d61={..._0x5ae995,[_0x3bb274([0x6a,0x74,0x69])]:_0x11e9cd[_0x3bb274([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x11e9cd[_0x3bb274([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b2d61[_0x3bb274([0x76,0x63])],_0x3ba424(_0x5b2d61)==_0x15bfd3;}}}async function _0x10bbc8(){let _0x76aae0=!0x0;try{const _0x2447a3=_0x1cb5ab[_0x3bb274([0x73,0x70,0x6c,0x69,0x74])](_0x3bb274([0x2e])),[_0x1f9524,_0xd40a3d,_0x2929fc]=_0x2447a3;return _0x2021b3(_0x1f9524),await _0x157490(_0x1f9524,_0xd40a3d,_0x2929fc),_0x76aae0;}catch(_0x16f496){return!0x1;}function _0x2021b3(_0x379d8c){const _0x288512=_0x1f78f7(_0x379d8c);_0x288512&&_0x288512[_0x3bb274([0x61,0x6c,0x67])]==_0x3bb274([0x45,0x53,0x32,0x35,0x36])||(_0x76aae0=!0x1);}async function _0x157490(_0x2e704a,_0x3efa10,_0xb195b1){const _0x3e378b=window[_0x3bb274([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bb274([0x66,0x72,0x6f,0x6d])](_0x215a5b(_0xb195b1),_0x324488=>_0x324488[_0x3bb274([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12deb3=new window[(_0x3bb274([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bb274([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e704a+_0x3bb274([0x2e])+_0x3efa10),_0xd30050=window[_0x3bb274([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bb274([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd30050)return;const _0x1bb620=await _0xd30050[_0x3bb274([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bb274([0x6a,0x77,0x6b]),_0x3d7a25,{[_0x3bb274([0x6e,0x61,0x6d,0x65])]:_0x3bb274([0x45,0x43,0x44,0x53,0x41]),[_0x3bb274([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bb274([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bb274([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd30050[_0x3bb274([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bb274([0x6e,0x61,0x6d,0x65])]:_0x3bb274([0x45,0x43,0x44,0x53,0x41]),[_0x3bb274([0x68,0x61,0x73,0x68])]:{[_0x3bb274([0x6e,0x61,0x6d,0x65])]:_0x3bb274([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1bb620,_0x3e378b,_0x12deb3)||(_0x76aae0=!0x1);}}function _0x1f78f7(_0x40b99b){return _0x40b99b[_0x3bb274([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bb274([0x65,0x79]))?JSON[_0x3bb274([0x70,0x61,0x72,0x73,0x65])](_0x215a5b(_0x40b99b)):null;}function _0x215a5b(_0x441a37){return window[_0x3bb274([0x61,0x74,0x6f,0x62])](_0x441a37[_0x3bb274([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bb274([0x2b]))[_0x3bb274([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bb274([0x2f])));}function _0x3ba424(_0x3b8a89){let _0x27724a=0x1505;function _0x59f0b6(_0x49bc80){for(let _0x5dff96=0x0;_0x5dff96<_0x49bc80[_0x3bb274([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dff96++){const _0x16862f=_0x49bc80[_0x3bb274([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dff96);_0x27724a=(_0x27724a<<0x5)+_0x27724a+_0x16862f,_0x27724a&=_0x27724a;}}function _0x2536e2(_0x59ab5f){Array[_0x3bb274([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x59ab5f)?_0x59ab5f[_0x3bb274([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2536e2):_0x59ab5f&&typeof _0x59ab5f==_0x3bb274([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bb274([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x59ab5f)[_0x3bb274([0x73,0x6f,0x72,0x74])]()[_0x3bb274([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x340056,_0x2e7fd8])=>{_0x59f0b6(_0x340056),_0x2536e2(_0x2e7fd8);}):_0x59f0b6(window[_0x3bb274([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x59ab5f));}return _0x2536e2(_0x3b8a89),_0x27724a>>>0x0;}function _0x494ffc(_0x18e4d4){return _0x18e4d4[_0x3bb274([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bb274([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bb274([0x30]));}function _0x7c141b(_0x30929e){return _0x30929e[_0x3bb274([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bb274([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bb274([0x6a,0x6f,0x69,0x6e])]('');}function _0x3847ca(_0x1dbd64){return _0x164153[_0x3bb274([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bb274([0x68,0x61,0x73])](_0x1dbd64);}function _0x5f31f5(_0x2dff41){return _0x164153[_0x3bb274([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bb274([0x67,0x65,0x74])](_0x2dff41);}function _0x4a2748(){}function _0x3bb274(_0x1c6486){return _0x1c6486['map'](_0x14d678=>String['fromCharCode'](_0x14d678))['join']('');}_0x6e39b3(await _0x5e71b5());}(this);}set['adapter'](_0x48ea60){if(this['_adapter'])throw new _0x20c027('track-changes-adapter-already-set',this);this['_adapter']=_0x48ea60;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2cce29=!0x1,toJSON:_0x5ce12b=!0x1}={}){const _0x20072e=[];for(const _0x3aa217 of this['_suggestions']['values']())_0x2cce29&&!_0x3aa217['isInContent']||_0x20072e['push'](_0x3aa217);return _0x5ce12b?_0x20072e['map'](_0x58ccca=>_0x58ccca['toJSON']()):_0x20072e;}['getSuggestion'](_0x388fdb){const _0x28891d=this['_suggestions']['get'](_0x388fdb);if(!_0x28891d)throw new _0x20c027('track-changes-suggestion-not-found',this);return _0x28891d;}['hasSuggestion'](_0x485dc2){return this['_suggestions']['has'](_0x485dc2);}['addSuggestionData'](_0x3d87ad){const {authorId:_0x32727d,id:_0x676249,attributes:_0xd2e875}=_0x3d87ad,[_0x415f08,_0x558430]=_0x3d87ad['type']['split'](':'),_0x47fbb5=this['_suggestions']['get'](_0x676249)||this['_createSuggestion'](_0x415f08,_0x558430,_0x676249,_0x32727d,_0xd2e875);if(this['_addThreadToSuggestion'](_0x47fbb5),this['_checkSuggestionCorrectness'](_0x47fbb5,_0x415f08,_0x558430||null,_0x32727d),_0x47fbb5['createdAt']=_0x3d87ad['createdAt'],_0x47fbb5['_isDataLoaded']=!0x0,_0xd2e875&&_0xd2e875['@external']){const _0x3a9a52=_0xd2e875['@external'],_0x2e1be9=this['_getExternalAuthor'](_0x3a9a52['authorName']);_0x47fbb5['authoredAt']=_0x3a9a52['createdAt'],_0x47fbb5['author']=_0x2e1be9,_0x47fbb5['isExternal']=!0x0;}else _0x47fbb5['authoredAt']=_0x3d87ad['createdAt'];switch(_0x3d87ad['data']&&(_0x47fbb5['data']=_0x3d87ad['data']),_0x3d87ad['attributes']&&(_0x47fbb5['attributes']=_0x3d87ad['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x47fbb5['_saved']=!0x0),this['_suggestionState']['get'](_0x47fbb5)){case'notReady':this['_suggestionState']['set'](_0x47fbb5,'dataReady');break;case'markerReady':_0x47fbb5['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x47fbb5])),this['_refreshSuggestionsChain'](new Set([_0x47fbb5])),this['_suggestionState']['set'](_0x47fbb5,'ready'),this['fire']('suggestionLoaded',_0x47fbb5)):this['_suggestionState']['set'](_0x47fbb5,'removed');}return _0x47fbb5;}['acceptSuggestion'](_0x434690){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f09b0 of _0x434690['getAllAdjacentSuggestions']())_0x4f09b0['accept']();});});}['discardSuggestion'](_0x35834c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x274c4c of _0x35834c['getAllAdjacentSuggestions']())_0x274c4c['discard']();});});}['enableCommand'](_0x35b15b,_0x426c4b){const _0x1c41cf=this['editor']['commands']['get'](_0x35b15b);if(!_0x1c41cf)throw new _0x20c027('track-changes-command-not-found',this,{'commandName':_0x35b15b});if(this['_enabledCommands']['has'](_0x1c41cf))throw new _0x20c027('track-changes-enable-command-twice',this,{'commandName':_0x35b15b});this['_enabledCommands']['add'](_0x1c41cf),_0x426c4b&&_0x1c41cf['on']('execute',(_0x9f24c2,_0x3cf95a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3cf95a['length']>0x0&&_0x3cf95a[_0x3cf95a['length']-0x1]&&_0x3cf95a[_0x3cf95a['length']-0x1]['forceDefaultExecution']?_0x3cf95a['pop']():(_0x9f24c2['return']=_0x426c4b((..._0x1e933d)=>_0x1c41cf['execute'](..._0x1e933d,{'forceDefaultExecution':!0x0}),..._0x3cf95a),_0x9f24c2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x13a244){let _0x58dc88,_0x1f4239;const _0x32d7c0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x58dc88=_0x13a244();}catch(_0x4a810f){_0x1f4239=_0x4a810f;}return _0x32d7c0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1f4239&&_0x20c027['rethrowUnexpectedError'](_0x1f4239,this),_0x58dc88;}['markInsertion'](_0xaeea76,_0x54c638=null,_0x53ee8d={}){if(_0xaeea76['isCollapsed'])return null;const _0x40847c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x42345e,meta:_0x408f69}of this['_findSuggestions'](_0xaeea76,'insertion'))if(_0x408f69['isOwn']){if(!_0x408f69['isNextTo']){if(_0x408f69['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x42345e,_0x53ee8d))continue;return _0x42345e;}if(Qt(_0x42345e,_0x53ee8d))return _0x42345e;this['_breakSuggestionMarker'](_0x42345e,_0xaeea76['start'],_0xaeea76['end']);break;}if(_0x54c638==_0x42345e['subType']&&Qt(_0x42345e,_0x53ee8d)){const _0x2fe2df=_0x42345e['getFirstRange']();return _0x2fe2df['start']['isEqual'](_0xaeea76['end'])?this['_setSuggestionRange'](_0x42345e,this['_model']['createRange'](_0xaeea76['start'],_0x2fe2df['end'])):this['_setSuggestionRange'](_0x42345e,this['_model']['createRange'](_0x2fe2df['start'],_0xaeea76['end'])),_0x42345e;}}const _0x4826fd=_0x1f8928(),_0x258fbd=_0x40847c['id'],_0x664491=_0x54c638?'insertion:'+_0x54c638:'insertion',_0x152ab2=this['_setSuggestionData']({'id':_0x4826fd,'type':_0x664491,'createdAt':new Date(),'authorId':_0x258fbd,'attributes':_0x53ee8d});return this['_addSuggestionMarker'](_0x664491,_0x4826fd,_0x258fbd,_0xaeea76),_0x152ab2;}['markMultiRangeInsertion'](_0x2c79eb,_0x5cc0d9='multi',_0x435459={}){const _0x2859c4=this['editor']['plugins']['get']('Users')['me'],_0xfc05eb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5cc0d9,'join');for(const _0x39afb3 of this['getSuggestions']())if(_0x39afb3['author']['id']==_0x2859c4['id']&&'insertion'==_0x39afb3['type']&&_0x39afb3['subType']==_0x5cc0d9&&Qt(_0x39afb3,_0x435459)&&(_0xfc05eb(_0x39afb3['getRanges'](),_0x2c79eb)||_0xfc05eb(_0x2c79eb,_0x39afb3['getRanges']()))){for(const _0x5a3e65 of _0x2c79eb)_0x39afb3['addRange'](_0x5a3e65);return _0x39afb3;}for(const {suggestion:_0x52a0b0,meta:_0x473878}of this['_findSuggestions'](_0x2c79eb,'insertion')){if(!_0x473878['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x473878['containsRangeInObject'])continue;if(!Qt(_0x52a0b0,_0x435459))continue;let _0x3d9e67=!0x0;for(const _0x1795cd of _0x52a0b0['getRanges']())for(const _0x2f6a22 of _0x2c79eb)if(!_0x1795cd['containsRange'](_0x2f6a22)){_0x3d9e67=!0x1;break;}if(_0x3d9e67)return _0x52a0b0;}const _0x438727=_0x1f8928(),_0x94ba1b=_0x2859c4['id'],_0x122998='insertion:'+_0x5cc0d9,_0x51c71e=this['_setSuggestionData']({'id':_0x438727,'type':_0x122998,'createdAt':new Date(),'authorId':_0x94ba1b,'attributes':_0x435459});for(const _0x28aac1 of _0x2c79eb)this['_addSuggestionMarker'](_0x122998,_0x438727,_0x94ba1b,_0x28aac1,o['getMultiRangeId']());return _0x51c71e;}['markInlineFormat'](_0x17ebcf,_0x5394c,_0x115847=null,_0x286551={}){if(_0x115847=_0x115847||Jt(_0x5394c),_0x17ebcf['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x12a935=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x115847,'accept');return this['forceDefaultExecution'](()=>_0x12a935([_0x17ebcf],_0x5394c,_0x286551)),null;}const _0x105368=this['editor']['plugins']['get']('Users')['me'],_0x1fa9ec=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5e9c8a,meta:_0x50828b}of this['_findSuggestions'](_0x17ebcf,'insertion'))_0x50828b['isOwn']&&!_0x50828b['isInsideObject']&&_0x1fa9ec['push'](..._0x5e9c8a['getRanges']());}const _0x4963e3=function(_0x43ddda,_0x1aefb7){const _0x1eb957=[];for(const _0x3d1f5d of _0x1aefb7){const _0x187f25=_0x43ddda['getIntersection'](_0x3d1f5d);_0x187f25&&_0x1eb957['push'](_0x187f25);}return _0x1eb957;}(_0x17ebcf,_0x1fa9ec),_0x1ca4d7=function(_0x55d61f,_0x13182a){const _0x4e8c28=[_0x55d61f];for(const _0x5e1c2d of _0x13182a){let _0x7c7032=0x0;for(;_0x7c7032<_0x4e8c28['length'];){const _0x15fceb=_0x4e8c28[_0x7c7032]['getDifference'](_0x5e1c2d);_0x4e8c28['splice'](_0x7c7032,0x1,..._0x15fceb),_0x7c7032+=_0x15fceb['length'];}}return _0x4e8c28;}(_0x17ebcf,_0x1fa9ec);_0x4963e3['length']&&this['_model']['change'](()=>{for(const _0x1367c3 of _0x4963e3){const _0x32ef27=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x115847,'accept');this['forceDefaultExecution'](()=>_0x32ef27([_0x1367c3],_0x5394c,_0x286551));}});for(const _0xab22c4 of _0x1ca4d7){let _0x5ea70d=null,_0xa59283=_0xab22c4['start'],_0x3f8426=_0xab22c4['end'];for(const {suggestion:_0x36c2c4,meta:_0x5824ec}of this['_findSuggestions'](_0xab22c4,'formatInline')){if(!_0x5824ec['isOwn'])continue;if(_0x36c2c4['subType']!=_0x115847)continue;if(!Qt(_0x36c2c4,_0x286551))continue;const _0x6087a5=_0x36c2c4['getFirstRange']();if(_0x6087a5['containsRange'](_0xab22c4,!0x0))return null;_0xa59283=_0xa59283['isBefore'](_0x6087a5['start'])?_0xa59283:_0x6087a5['start'],_0x3f8426=_0x3f8426['isAfter'](_0x6087a5['end'])?_0x3f8426:_0x6087a5['end'],_0x5ea70d?_0x6087a5['start']['isBefore'](_0x5ea70d['getFirstRange']()['start'])?(_0x5ea70d['removeMarkers'](),_0x5ea70d=_0x36c2c4):_0x36c2c4['removeMarkers']():_0x5ea70d=_0x36c2c4;}const _0x1d5401=this['_model']['createRange'](_0xa59283,_0x3f8426);if(_0x5ea70d)this['_setSuggestionRange'](_0x5ea70d,_0x1d5401);else{const _0x1f6d5c=_0x1f8928(),_0x3a8ad1=_0x105368['id'];this['_setSuggestionData']({'id':_0x1f6d5c,'type':'formatInline:'+_0x115847,'data':_0x5394c,'createdAt':new Date(),'authorId':_0x3a8ad1,'attributes':_0x286551}),this['_addSuggestionMarker']('formatInline:'+_0x115847,_0x1f6d5c,_0x3a8ad1,_0x1d5401);}}return null;}['markBlockFormat'](_0x58d4b0,_0x1bcae1,_0x208539=[],_0x263353=null,_0x10ffb2={}){_0x1bcae1['formatGroupId']||(_0x1bcae1['formatGroupId']=_0x1bcae1['commandName']),_0x1bcae1['multipleBlocks']=_0x58d4b0['is']('range'),_0x263353=_0x263353||Jt(_0x1bcae1);const _0x51d8bb=_0x208539['map'](_0x3b2900=>qt(_0x3b2900,this['_model'])),_0x1d0842=_0x58d4b0['is']('range')?_0x58d4b0:qt(_0x58d4b0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3f6d47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x263353,'accept');return this['forceDefaultExecution'](()=>_0x3f6d47([_0x1d0842],_0x1bcae1,_0x10ffb2)),null;}_0x51d8bb['push'](_0x1d0842);let _0xd44386=!0x0;for(const _0x366a63 of _0x51d8bb)if(!this['_rangeIsInLocalUserInsertion'](_0x366a63)){_0xd44386=!0x1;break;}if(_0xd44386&&'always'!==this['_trackFormatChanges']){const _0x687a1e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x263353,'accept');return this['forceDefaultExecution'](()=>_0x687a1e([_0x1d0842],_0x1bcae1,_0x10ffb2)),null;}let _0x21f5ba=null,_0xa9b26e=_0x1d0842['start'],_0x387510=_0x1d0842['end'];for(const {suggestion:_0x553ff6,meta:_0x3ffb00}of this['_findSuggestions'](_0x1d0842,'formatBlock')){if(!_0x3ffb00['isOwn'])continue;if(_0x3ffb00['isNextTo']||_0x3ffb00['containsRangeInObject']||_0x3ffb00['isInsideObject'])continue;if(_0x553ff6['data']['formatGroupId']!=_0x1bcae1['formatGroupId'])continue;if(!Qt(_0x553ff6,_0x10ffb2))continue;const _0x1d804c=_0x553ff6['getFirstRange']();if(_0x553ff6['subType']==_0x263353){if(_0x1d804c['containsRange'](_0x1d0842,!0x0))return null;_0xa9b26e=_0xa9b26e['isBefore'](_0x1d804c['start'])?_0xa9b26e:_0x1d804c['start'],_0x387510=_0x387510['isAfter'](_0x1d804c['end'])?_0x387510:_0x1d804c['end'],_0x21f5ba?_0x1d804c['start']['isBefore'](_0x21f5ba['getFirstRange']()['start'])?(_0x21f5ba['removeMarkers'](),_0x21f5ba=_0x553ff6):_0x553ff6['removeMarkers']():_0x21f5ba=_0x553ff6;}else{const _0x27a2ac=_0x1d0842['getIntersection'](_0x1d804c);this['_cutOutSuggestionMarker'](_0x553ff6,_0x27a2ac);}}const _0x415942=this['editor']['plugins']['get']('Users')['me'],_0x1c4754=_0x1f8928(),_0x32c696=_0x415942['id'];if(_0x21f5ba)return this['_setSuggestionRange'](_0x21f5ba,this['_model']['createRange'](_0xa9b26e,_0x387510)),_0x21f5ba;{const _0x520208=this['_setSuggestionData']({'id':_0x1c4754,'type':'formatBlock:'+_0x263353,'data':_0x1bcae1,'createdAt':new Date(),'authorId':_0x32c696,'attributes':_0x10ffb2});return this['_addSuggestionMarker']('formatBlock:'+_0x263353,_0x1c4754,_0x32c696,this['_model']['createRange'](_0xa9b26e,_0x387510)),_0x520208;}}['markMultiRangeBlockFormat'](_0x34ac9d,_0x263922,_0x2ece07=[],_0x10341a=null,_0x273f8b={}){_0x263922['formatGroupId']||(_0x263922['formatGroupId']=_0x263922['commandName']);const _0x8c6ba5=_0x34ac9d[0x0];_0x263922['multipleBlocks']=_0x8c6ba5['is']('range'),_0x10341a=_0x10341a||Jt(_0x263922);const _0x2a9d9d=_0x2ece07['map'](_0x19d46d=>qt(_0x19d46d,this['_model'])),_0x134a2f=_0x8c6ba5['is']('range')?_0x34ac9d:_0x34ac9d['map'](_0xe14e15=>qt(_0xe14e15,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2e31a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10341a,'accept');return this['forceDefaultExecution'](()=>_0x2e31a9(_0x134a2f,_0x263922,_0x273f8b)),null;}_0x2a9d9d['push'](..._0x134a2f);let _0x175cf3=!0x0;for(const _0x172db4 of _0x2a9d9d)if(!this['_rangeIsInLocalUserInsertion'](_0x172db4)){_0x175cf3=!0x1;break;}if(_0x175cf3&&'always'!==this['_trackFormatChanges']){const _0x255b3c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10341a,'accept');return this['forceDefaultExecution'](()=>_0x255b3c(_0x134a2f,_0x263922,_0x273f8b)),null;}const _0x4c7ecd=this['editor']['plugins']['get']('Users')['me'];for(const _0x309ff1 of this['getSuggestions']()){if(_0x309ff1['author']['id']!=_0x4c7ecd['id'])continue;if('formatBlock'!=_0x309ff1['type']||_0x309ff1['data']['formatGroupId']!=_0x263922['formatGroupId'])continue;if(!Qt(_0x309ff1,_0x273f8b))continue;const _0xf11847=_0x309ff1['subType']==_0x10341a;for(let _0x9e58a=0x0;_0x9e58a<_0x134a2f['length'];_0x9e58a++){const _0x49242e=_0x134a2f[_0x9e58a];for(const _0x4bb3ed of _0x309ff1['getMarkers']()){const _0x3cd4e5=_0x4bb3ed['getRange']();if(_0x49242e['isEqual'](_0x3cd4e5)){_0xf11847?(_0x134a2f['splice'](_0x9e58a,0x1),_0x9e58a--):_0x309ff1['removeMarker'](_0x4bb3ed['name']);break;}}}}if(0x0==_0x134a2f['length'])return null;const _0x141e95=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10341a,'join');for(const _0x4c0ee4 of this['getSuggestions']())if(_0x4c0ee4['author']['id']==_0x4c7ecd['id']&&'formatBlock'==_0x4c0ee4['type']&&_0x4c0ee4['data']['formatGroupId']==_0x263922['formatGroupId']&&_0x4c0ee4['subType']==_0x10341a&&Qt(_0x4c0ee4,_0x273f8b)&&(_0x141e95(_0x4c0ee4['getRanges'](),_0x134a2f)||_0x141e95(_0x134a2f,_0x4c0ee4['getRanges']()))){for(const _0x11f64c of _0x134a2f)_0x4c0ee4['addRange'](_0x11f64c);return _0x4c0ee4;}const _0x1e9fc8=_0x1f8928(),_0x23175e=_0x4c7ecd['id'],_0x40c296='formatBlock:'+_0x10341a,_0xe347d1=this['_setSuggestionData']({'id':_0x1e9fc8,'type':_0x40c296,'data':_0x263922,'createdAt':new Date(),'authorId':_0x23175e,'attributes':_0x273f8b});for(const _0x4dbf93 of _0x134a2f)this['_addSuggestionMarker'](_0x40c296,_0x1e9fc8,_0x23175e,_0x4dbf93,o['getMultiRangeId']());return _0xe347d1;}['markDeletion'](_0x31f74f,_0x4ba74a=null,_0xd62004={}){if(_0x31f74f['isCollapsed'])return null;const _0x286980=this['editor']['plugins']['get']('Users')['me'],_0x1d30f6=new _0x507d1e(_0x31f74f['start'],_0x31f74f['end']);for(const {suggestion:_0x224319,meta:_0x4baf2a}of this['_findSuggestions'](_0x1d30f6,'insertion'))if(_0x4baf2a['isOwn']&&!_0x4baf2a['isNextTo']){if(_0x224319['isMultiRange']){const _0x26bbe6=_0x224319['getRanges']()['filter'](_0x5113b9=>'$graveyard'!=_0x5113b9['root']['rootName']);_0x26bbe6['every'](_0xf6fdc2=>_0x1d30f6['containsRange'](_0xf6fdc2,!0x0))&&_0x224319['discard']();if(_0x26bbe6['some'](_0x5a2b26=>_0x5a2b26['containsRange'](_0x1d30f6,!0x0))){const _0x3b5433=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ba74a,'accept');return this['forceDefaultExecution'](()=>_0x3b5433([_0x1d30f6],null,_0xd62004)),null;}}else{const _0x418604=_0x1d30f6['getIntersection'](_0x224319['getFirstRange']());null!==_0x418604&&_0x224319['_onDiscard']([_0x418604],null,_0xd62004);}}if(_0x1d30f6['detach'](),_0x1d30f6['isCollapsed']||'$graveyard'==_0x1d30f6['root']['rootName'])return null;let _0x24e3bf=null,_0x1d68a0=_0x1d30f6['start'],_0xac5b48=_0x1d30f6['end'];const _0x223484=this['_findSuggestions'](_0x1d30f6,'deletion');for(const {suggestion:_0x3eb37a,meta:_0x37d59b}of _0x223484){const _0x54aca2=this['_model']['createRange'](_0x1d68a0,_0xac5b48);if(_0x37d59b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x37d59b['containsRangeInObject']&&!_0x37d59b['isInsideObject'])){if(_0x3eb37a['isMultiRange']){if(!Qt(_0x3eb37a,_0xd62004))continue;let _0x136e87=!0x0;for(const _0x11f95f of _0x3eb37a['getRanges']()){if(_0x11f95f['containsRange'](_0x54aca2,!0x0))return _0x3eb37a;_0x54aca2['containsRange'](_0x11f95f)||(_0x136e87=!0x1);}_0x136e87&&_0x3eb37a['discard']();}else{const _0x1f14a0=_0x3eb37a['getFirstRange']();if(_0x1f14a0['containsRange'](_0x54aca2,!0x0))return _0x3eb37a;if(!Qt(_0x3eb37a,_0xd62004)){_0x54aca2['containsRange'](_0x1f14a0)?_0x3eb37a['removeMarkers']():_0x1f14a0['containsPosition'](_0x1d68a0)?_0x1d68a0=_0x1f14a0['end']:_0x1f14a0['containsPosition'](_0xac5b48)&&(_0xac5b48=_0x1f14a0['start']);continue;}_0x1d68a0=_0x1d68a0['isBefore'](_0x1f14a0['start'])?_0x1d68a0:_0x1f14a0['start'],_0xac5b48=_0xac5b48['isAfter'](_0x1f14a0['end'])?_0xac5b48:_0x1f14a0['end'],_0xd62004=Object['assign']({},_0x3eb37a['attributes']),_0x24e3bf?_0x1f14a0['start']['isBefore'](_0x24e3bf['getFirstRange']()['start'])?(_0x24e3bf['removeMarkers'](),_0x24e3bf=_0x3eb37a):_0x3eb37a['removeMarkers']():_0x24e3bf=_0x3eb37a;}}}if(_0x24e3bf)return this['_setSuggestionRange'](_0x24e3bf,this['_model']['createRange'](_0x1d68a0,_0xac5b48)),_0x24e3bf;{const _0x60fb85=_0x1f8928(),_0x26b4c8=this['_model']['createRange'](_0x1d68a0,_0xac5b48),_0x3dbd46=_0x286980['id'],_0x3103b1=_0x4ba74a?'deletion:'+_0x4ba74a:'deletion',_0x5eec02=this['_setSuggestionData']({'id':_0x60fb85,'type':_0x3103b1,'createdAt':new Date(),'authorId':_0x3dbd46,'attributes':_0xd62004});return this['_addSuggestionMarker'](_0x3103b1,_0x60fb85,_0x3dbd46,_0x26b4c8),_0x5eec02;}}['markMultiRangeDeletion'](_0x1ca6b9,_0x2f71fb='multi',_0x9fa176={}){const _0x294656=this['editor']['plugins']['get']('Users')['me'],_0x2c7282=_0x1ca6b9['map'](_0x2d1f48=>new _0x507d1e(_0x2d1f48['start'],_0x2d1f48['end'])),_0x2d50c5=new Set();for(const {suggestion:_0x3f4c87,meta:_0x826009}of this['_findSuggestions'](_0x2c7282,'insertion'))_0x826009['isOwn']&&!_0x826009['isNextTo']&&_0x2d50c5['add'](_0x3f4c87);for(const _0x3121cc of _0x2d50c5)if(_0x3121cc['isMultiRange']){const _0x942a75=_0x3121cc['getRanges']();(!_0x3121cc['attributes']||!_0x3121cc['attributes']['skipNestingCheck'])&&(_0x942a75['every'](_0x1a11ed=>_0x2c7282['some'](_0x30a383=>_0x30a383['containsRange'](_0x1a11ed,!0x0)))&&_0x3121cc['discard']());if(_0x2c7282['every'](_0x1064e0=>_0x942a75['some'](_0x564834=>_0x564834['containsRange'](_0x1064e0,!0x0)))){const _0x330050=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f71fb,'accept');return this['forceDefaultExecution'](()=>_0x330050(_0x1ca6b9,null,_0x9fa176)),null;}}else{const _0x350ec5=_0x3121cc['getFirstRange']();_0x2c7282['some'](_0x48f269=>_0x48f269['containsRange'](_0x350ec5,!0x0))&&_0x3121cc['discard']();if(_0x2c7282['every'](_0x46c00b=>_0x350ec5['containsRange'](_0x46c00b,!0x0))){const _0x2a72bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f71fb,'accept');return this['forceDefaultExecution'](()=>_0x2a72bc(_0x2c7282,null,_0x9fa176)),null;}}const _0x14d871=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f71fb,'join');let _0x13a40b=null;for(const _0x5c7cea of this['getSuggestions']())if(_0x5c7cea['author']['id']==_0x294656['id']&&_0x5c7cea['isInContent']&&'deletion'==_0x5c7cea['type']&&_0x5c7cea['subType']==_0x2f71fb&&Qt(_0x5c7cea,_0x9fa176)&&(_0x14d871(_0x5c7cea['getRanges'](),_0x2c7282)||_0x14d871(_0x2c7282,_0x5c7cea['getRanges']()))){if(_0x13a40b){if(_0x5c7cea['commentThread']&&_0x5c7cea['commentThread']['length'])continue;for(const _0x129cb7 of _0x5c7cea['getRanges']())_0x13a40b['isIntersectingWithRange'](_0x129cb7)||_0x13a40b['addRange'](_0x129cb7);_0x5c7cea['removeMarkers']();}else{_0x13a40b=_0x5c7cea;for(const _0x2fe12a of _0x2c7282)_0x5c7cea['isIntersectingWithRange'](_0x2fe12a)||_0x5c7cea['addRange'](_0x2fe12a);}}if(_0x13a40b)return _0x13a40b;_0x2d50c5['clear']();for(const {suggestion:_0x34632c,meta:_0x2b3a2f}of this['_findSuggestions'](_0x2c7282,'deletion'))_0x2b3a2f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2b3a2f['containsRangeInObject']&&!_0x2b3a2f['isInsideObject'])&&Qt(_0x34632c,_0x9fa176)&&_0x2d50c5['add'](_0x34632c);for(const _0x42b367 of _0x2d50c5){const _0x560a68=_0x42b367['getRanges']();if(!_0x9fa176||!_0x9fa176['skipNestingCheck']){if(_0x2c7282['every'](_0x299238=>_0x560a68['some'](_0x4fe7b8=>_0x4fe7b8['containsRange'](_0x299238,!0x0))))return _0x42b367;}(!_0x42b367['attributes']||!_0x42b367['attributes']['skipNestingCheck'])&&(_0x560a68['every'](_0x29ecb8=>_0x2c7282['some'](_0x20484f=>_0x20484f['containsRange'](_0x29ecb8,!0x0)))&&_0x42b367['discard']());}const _0x4473e9=_0x1f8928(),_0x3e15ab=_0x294656['id'],_0xa0f722='deletion:'+_0x2f71fb,_0x251d38=this['_setSuggestionData']({'id':_0x4473e9,'type':_0xa0f722,'createdAt':new Date(),'authorId':_0x3e15ab,'attributes':_0x9fa176});for(const _0x53abd8 of _0x2c7282)_0x53abd8['detach'](),_0x53abd8['isCollapsed']||'$graveyard'==_0x53abd8['root']['rootName']||this['_addSuggestionMarker'](_0xa0f722,_0x4473e9,_0x3e15ab,_0x53abd8,o['getMultiRangeId']());return _0x251d38;}['markAttributeChange'](_0x57de53,_0x58c9c9,_0x239ef0,_0x5842dc,_0x474865){if(_0x57de53['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1d128c=this['editor']['plugins']['get']('Users')['me']['id'],_0x82ae88=Array['from'](this['_suggestions']['values']())['filter'](_0x1890f5=>'attribute'==_0x1890f5['type']&&_0x1890f5['data']['key']==_0x58c9c9&&_0x1890f5['isIntersectingWithRange'](_0x57de53));if('default'===this['_trackFormatChanges']){const _0x1beac5=this['_findSuggestions'](_0x57de53,'insertion')['filter'](({meta:_0x2afced})=>_0x2afced['isOwn']&&!_0x2afced['isInsideObject']&&!_0x2afced['isNextTo'])['map'](({suggestion:_0x57aad1})=>_0x57aad1);_0x82ae88['unshift'](..._0x1beac5);}const _0x4f91e7=new Map([[_0x57de53,_0x239ef0]]);for(const _0x5bffec of _0x82ae88){const _0x2cc571='attribute'==_0x5bffec['type']?_0x5bffec['data']['oldValue']:void 0x0,_0x32bbfe=_0x5bffec['getFirstRange'](),_0x296021=Array['from'](_0x4f91e7['keys']())['find'](_0x3b4c9a=>_0x3b4c9a['isIntersecting'](_0x32bbfe));if(!_0x296021)continue;const _0x27ac22=_0x296021['getDifference'](_0x32bbfe);this['_isBlockAttribute'](_0x58c9c9)&&'insertion'==_0x5bffec['type']&&0x0!=_0x27ac22['length']||(_0x4f91e7['delete'](_0x296021),_0x27ac22['forEach'](_0x299b5f=>{_0x4f91e7['set'](_0x299b5f,_0x239ef0);}),'insertion'!=_0x5bffec['type']&&_0x2cc571!=_0x5842dc&&_0x4f91e7['set'](_0x296021['getIntersection'](_0x32bbfe),_0x2cc571));}const _0x32a57f=[];for(const [_0x58249b,_0x343a54]of _0x4f91e7){const _0x251f28=_0x1f8928(),_0xa99c5a={'key':_0x58c9c9,'oldValue':_0x343a54,'newValue':_0x5842dc};_0x58c9c9['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':_0x58c9c9});const _0x402a07=('attribute:'+(_0x58c9c9+'|'+Jt({'newValue':_0x5842dc})))['substring'](0x0,0x3c),_0x230e99=this['_setSuggestionData']({'id':_0x251f28,'type':_0x402a07,'data':_0xa99c5a,'createdAt':new Date(),'authorId':_0x1d128c,'attributes':_0x474865});_0x32a57f['push'](_0x230e99),this['_addSuggestionMarker'](_0x402a07,_0x251f28,_0x1d128c,_0x58249b);}return _0x32a57f;}['enableDefaultAttributesIntegration'](_0x385b7a){this['enableCommand'](_0x385b7a,(_0x4f5272,..._0x1d816f)=>{this['_recordAttributeChanges'](()=>{_0x4f5272(..._0x1d816f);});});}['registerBlockAttribute'](_0x1ce202){this['_blockAttributeKeys']['add'](_0x1ce202);}['registerInlineAttribute'](_0x30a9d1){this['_inlineAttributeKeys']['add'](_0x30a9d1);}['_getAttributeKey'](_0x251ea5){return'attribute'==_0x251ea5['type']?_0x251ea5['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4f6ab9,_0x10e8e1){const _0x5827dc=_0x4f6ab9['getFirstMarker']();this['_model']['change'](_0xf6c463=>{_0xf6c463['updateMarker'](_0x5827dc,{'range':_0x10e8e1});});}['_addThreadToSuggestion'](_0x198cab){const _0x2a2ad9=_0x198cab['id'],_0x10fc81=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a2ad9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x10fc81,'threadId':_0x2a2ad9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1c5aec=this['_commentsRepository']['getCommentThread'](_0x2a2ad9);_0x1c5aec['unbind']('isRemovable'),_0x1c5aec['isRemovable']=!0x1,_0x198cab['commentThread']=_0x1c5aec;}['_checkSuggestionCorrectness'](_0x33f4ca,_0xca35cf,_0x14db07,_0x5d2f06){if(_0x33f4ca['type']!=_0xca35cf||_0x33f4ca['subType']!=_0x14db07||_0x33f4ca['creator']['id']!=_0x5d2f06)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x20c027('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x414db5,_0x4432b9){const _0x36d7e5=_0x414db5['getFirstRange']();if(_0x4432b9['isEqual'](_0x36d7e5))_0x414db5['removeMarkers']();else{if(_0x36d7e5['containsRange'](_0x4432b9)){const _0x465864=this['_model']['createPositionAt'](_0x4432b9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x414db5,this['_model']['createRange'](_0x36d7e5['start'],_0x465864));const _0x4cb698=_0x1f8928(),_0x119fba=_0x414db5['creator']['id'],_0x5c250a=_0x414db5['type']+':'+_0x414db5['subType'];this['_setSuggestionData']({'id':_0x4cb698,'type':_0x5c250a,'createdAt':new Date(),'authorId':_0x119fba,'data':_0x414db5['data'],'attributes':_0x414db5['attributes']});const _0x3571fc=this['_model']['createPositionAt'](_0x4432b9['end']['parent'],'after'),_0x29dbbc=this['_model']['createRange'](_0x3571fc,_0x36d7e5['end']);this['_addSuggestionMarker'](_0x5c250a,_0x4cb698,_0x119fba,_0x29dbbc);}else{if(_0x36d7e5['containsPosition'](_0x4432b9['start'])){const _0x5e3c73=this['_model']['createPositionAt'](_0x4432b9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x414db5,this['_model']['createRange'](_0x36d7e5['start'],_0x5e3c73));}else{const _0x4d2d2d=this['_model']['createPositionAt'](_0x4432b9['end']['parent'],'after');this['_setSuggestionRange'](_0x414db5,this['_model']['createRange'](_0x4d2d2d,_0x36d7e5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4739e4){for(const {suggestion:_0x30e034,meta:_0x292189}of this['_findSuggestions'](_0x4739e4,'insertion')){if(!_0x292189['isOwn'])continue;const _0x1dcdf1=_0x30e034['getRanges']();for(const _0x167421 of _0x1dcdf1)if(!_0x4739e4['getDifference'](_0x167421)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x57802b){const _0x26509e=this['editor']['plugins']['get']('Users')['getUser'](_0x57802b);if(!_0x26509e)throw new _0x20c027('track-changes-user-not-found',this);return _0x26509e;}['_getExternalAuthor'](_0x41e4ce){const _0x5bce07=this['editor']['plugins']['get']('Users'),_0x4a8647=_0x24a172('external:'+_0x41e4ce),_0x3f590f=_0x5bce07['getUser'](_0x4a8647);return _0x3f590f||_0x5bce07['addUser']({'id':_0x4a8647,'name':_0x41e4ce});}['_createSuggestion'](_0x134aa4,_0x1ac06e,_0x28c0ea,_0x454008,_0x95bec3){const _0x18baf7=this['_getAuthorFromId'](_0x454008),_0x22fc8e=this['_suggestionFactory']['buildSuggestion'](_0x134aa4,_0x1ac06e,_0x28c0ea,_0x18baf7,_0x95bec3,_0x2e3a6c=>{this['_updateSuggestionData'](_0x28c0ea,{'attributes':_0x2e3a6c});const _0x413a53=this['getSuggestion'](_0x28c0ea);this['_joinWithAdjacentSuggestions'](new Set([_0x413a53])),this['_refreshSuggestionsChain'](new Set([_0x413a53]));});return this['listenTo'](_0x22fc8e,'accept',()=>{this['_updateSuggestionData'](_0x28c0ea,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x22fc8e,'discard',()=>{this['_updateSuggestionData'](_0x28c0ea,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x28c0ea,_0x22fc8e),this['_suggestionState']['set'](_0x22fc8e,'notReady'),_0x22fc8e;}['_splitMarkerName'](_0x258d4a){const _0x258032=_0x258d4a['split'](':');return{'group':_0x258032[0x0],'type':_0x258032[0x1],'subType':_0x258032['length']>=0x5?_0x258032[0x2]:null,'id':_0x258032['length']<0x5?_0x258032[0x2]:_0x258032[0x3],'authorId':_0x258032['length']<0x5?_0x258032[0x3]:_0x258032[0x4],'markerCount':0x6==_0x258032['length']?_0x258032[0x5]:null};}['_breakSuggestionMarker'](_0x586547,_0x3ff9b2,_0x138741){const _0xf11ba4=_0x586547['getFirstRange'](),_0x3defd5=_0xf11ba4['start'],_0x597858=_0xf11ba4['end'];this['_setSuggestionRange'](_0x586547,this['_model']['createRange'](_0x3defd5,_0x3ff9b2));const _0x13c8a5=_0x1f8928(),_0x4c94df=_0x586547['creator']['id'],_0x16f32d=_0x586547['type']+(_0x586547['subType']?':'+_0x586547['subType']:'');this['_setSuggestionData']({'id':_0x13c8a5,'type':_0x16f32d,'createdAt':new Date(),'authorId':_0x4c94df,'originalSuggestionId':_0x586547['id'],'attributes':_0x586547['attributes'],'data':_0x586547['data']});const _0x2fc7a9=this['_getAttributeKey'](_0x586547);('formatBlock'==_0x586547['type']||_0x2fc7a9&&this['_isBlockAttribute'](_0x2fc7a9))&&(_0x138741=this['_model']['createPositionBefore'](_0x138741['parent'])),this['_addSuggestionMarker'](_0x16f32d,_0x13c8a5,_0x4c94df,this['_model']['createRange'](_0x138741,_0x597858));}['_findSuggestions'](_0x5e40f5,_0x5689d5=null){const _0xd45084=[],_0x426465=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5e40f5)||(_0x5e40f5=[_0x5e40f5]);for(const _0x996098 of this['getSuggestions']()){if(!_0x996098['isInContent'])continue;if(_0x5689d5&&_0x996098['type']!=_0x5689d5)continue;let _0xb29524=!0x1;for(const _0x3f85c1 of _0x996098['getRanges']()){for(const _0x16e93d of _0x5e40f5){const _0x53e9aa=_0x16e93d['start']['isEqual'](_0x3f85c1['end'])||_0x16e93d['end']['isEqual'](_0x3f85c1['start']);if(_0x53e9aa||_0x16e93d['getIntersection'](_0x3f85c1)){const _0xca5c7a=_0x16e93d['containsRange'](_0x3f85c1)&&Pt(this['_model']['schema'],_0x3f85c1['start'],_0x16e93d),_0x44204e=_0x3f85c1['containsRange'](_0x16e93d)&&Pt(this['_model']['schema'],_0x16e93d['start'],_0x3f85c1);_0xd45084['push']({'suggestion':_0x996098,'meta':{'isOwn':_0x426465==_0x996098['author'],'isNextTo':_0x53e9aa,'isInsideObject':_0xca5c7a,'containsRangeInObject':_0x44204e}}),_0xb29524=!0x0;break;}}if(_0xb29524)break;}}return _0xd45084;}['_addSuggestionMarker'](_0x398310,_0x3c1bec,_0x25554b,_0x52a3a1,_0x1c5b6c){this['_model']['change'](_0x15d3b8=>{let _0x5bee37='suggestion:'+_0x398310+':'+_0x3c1bec+':'+_0x25554b;_0x1c5b6c&&(_0x5bee37=_0x5bee37+':'+_0x1c5b6c),_0x15d3b8['addMarker'](_0x5bee37,{'range':_0x52a3a1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2027f3){const _0x460e6b=_0x2027f3['previous'],_0x6d3f99=_0x2027f3['next'];_0x2027f3['previous']=null,_0x2027f3['next']=null,null!=_0x460e6b&&_0x460e6b['next']==_0x2027f3&&(_0x460e6b['next']=_0x6d3f99),null!=_0x6d3f99&&_0x6d3f99['previous']==_0x2027f3&&(_0x6d3f99['previous']=_0x460e6b),'ready'==this['_suggestionState']['get'](_0x2027f3)&&(this['_suggestionState']['set'](_0x2027f3,'removed'),this['fire']('suggestionUnloaded',_0x2027f3,_0x460e6b,_0x6d3f99));}['_setSuggestionData'](_0x210a6c){const _0x3bf5eb=_0x210a6c['id'],_0x7d2125=this['addSuggestionData'](_0x210a6c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x16c99d=this['editor']['plugins']['get']('PendingActions'),_0x38558c=_0x7d2125['hasComments'],_0x41c1d1=_0x7d2125['subType']?_0x7d2125['type']+':'+_0x7d2125['subType']:_0x7d2125['type'],_0x2d19c8=this['editor']['locale'],_0x3f675c=_0x16c99d['add'](c(_0x2d19c8,'PENDING_ACTION_SUGGESTION')),_0x246936={'id':_0x3bf5eb,'type':_0x41c1d1,'hasComments':_0x38558c,'data':_0x210a6c['data']||null,'originalSuggestionId':_0x210a6c['originalSuggestionId']||null,'attributes':_0x7d2125['attributes']};this['_adapter']['addSuggestion'](_0x246936)['then'](_0x23c4a4=>{_0x7d2125['_saved']=!0x0,_0x16c99d['remove'](_0x3f675c),_0x23c4a4&&_0x23c4a4['createdAt']&&(this['_suggestions']['get'](_0x3bf5eb)['createdAt']=_0x23c4a4['createdAt']);})['catch'](_0x5ec06a=>{throw _0x1d375d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x7d2125['discard']();}),_0x7d2125['stopListening'](),this['_suggestions']['delete'](_0x7d2125['id']),this['_suggestionState']['delete'](_0x7d2125),_0x5ec06a;});}return _0x7d2125;}['_isBlockAttribute'](_0x8ff395){return this['_blockAttributeKeys']['has'](_0x8ff395);}['_updateSuggestionData'](_0x2e24c1,_0x37c3bf){const _0x4e50b3=this['editor']['plugins']['get']('PendingActions'),_0x15ae38=this['getSuggestion'](_0x2e24c1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x15ae38['_saved']){const _0x22fa31=_0x4e50b3['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2e24c1,_0x37c3bf)['then'](()=>{_0x4e50b3['remove'](_0x22fa31);});}else _0x15ae38['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2e24c1,_0x37c3bf);});}}['_getSuggestionData'](_0x283c94){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x20c027('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x283c94);}['_handleNewSuggestionMarker'](_0x224a2b){const {id:_0x536741,type:_0x372506,subType:_0x1e6098,authorId:_0x19fe8f}=this['_splitMarkerName'](_0x224a2b),_0x63cb3=this['_suggestions']['get'](_0x536741)||this['_createSuggestion'](_0x372506,_0x1e6098,_0x536741,_0x19fe8f,{});switch(this['_checkSuggestionCorrectness'](_0x63cb3,_0x372506,_0x1e6098,_0x19fe8f),this['_suggestionState']['get'](_0x63cb3)){case'notReady':this['_getSuggestionData'](_0x536741)['then'](_0x20daff=>{let _0x5898ee=Promise['resolve']();_0x20daff['hasComments']&&(_0x5898ee=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x536741})),_0x5898ee['then'](()=>{this['addSuggestionData'](_0x20daff)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x63cb3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x536741,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x63cb3,'ready'),this['fire']('suggestionLoaded',_0x63cb3);break;case'ready':this['fire']('suggestionChanged',_0x63cb3);}return _0x63cb3['addMarkerName'](_0x224a2b),_0x63cb3;}['_refreshSuggestionsChain'](_0x355900){const _0x30fc6f=Array['from'](_0x355900),_0x35e31e=_0x30fc6f['filter'](_0x308c6d=>'attribute'==_0x308c6d['type']);this['_refreshAttributeSuggestionsChain'](_0x35e31e);const _0xa1c839=_0x30fc6f['filter'](_0xe7c675=>!_0xe7c675['isMultiRange']&&'attribute'!=_0xe7c675['type']),_0x505e7b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x518fb9=>!_0x518fb9['isMultiRange']&&'attribute'!=_0x518fb9['type']),_0x236f72=_0x505e7b['filter'](_0x3caf70=>!_0x355900['has'](_0x3caf70)),_0x5a8478=new Map(_0x505e7b['map'](_0x63e430=>[_0x63e430,this['_suggestionFactory']['getSuggestionCallback'](_0x63e430['type'],_0x63e430['subType'],'chain')])),_0x105fe5=new Map(_0x505e7b['map'](_0x28d672=>[_0x28d672,_0x28d672['getFirstRange']()])),_0x479408=new Set(),_0x100065=new Set();for(let _0x41cbd5=0x0;_0x41cbd5<_0xa1c839['length'];_0x41cbd5++)_0x4897b7(_0xa1c839[_0x41cbd5],_0xa1c839,_0x41cbd5+0x1);for(let _0x5bec44=0x0;_0x5bec44<_0xa1c839['length'];_0x5bec44++)_0x4897b7(_0xa1c839[_0x5bec44],_0x236f72,0x0);const _0x19f74f=new Set();for(let _0x37a9af=0x0;_0x37a9af<_0xa1c839['length'];_0x37a9af++){const _0x354903=_0xa1c839[_0x37a9af];!_0x100065['has'](_0x354903)&&_0x354903['previous']&&(_0x19f74f['add'](_0x354903['previous']),_0x354903['previous']['next']===_0x354903&&(_0x354903['previous']['next']=null),_0x354903['previous']=null),!_0x479408['has'](_0x354903)&&_0x354903['next']&&(_0x19f74f['add'](_0x354903['next']),_0x354903['next']['previous']===_0x354903&&(_0x354903['next']['previous']=null),_0x354903['next']=null);}function _0x4897b7(_0x909eac,_0x5064fc,_0x16bea4){for(let _0x4bec92=_0x16bea4;_0x4bec92<_0x5064fc['length'];_0x4bec92++){const _0x8531ed=_0x2cf7c2(_0x909eac,_0x5064fc[_0x4bec92]);_0x8531ed&&(_0x8531ed[0x0]['next']=_0x8531ed[0x1],_0x8531ed[0x1]['previous']=_0x8531ed[0x0],_0x479408['add'](_0x8531ed[0x0]),_0x100065['add'](_0x8531ed[0x1]));}}function _0x2cf7c2(_0x2a00ad,_0x327347){if(_0x2a00ad['author']['id']!==_0x327347['author']['id'])return null;const _0x182559=_0x5a8478['get'](_0x2a00ad)(_0x2a00ad,_0x327347,_0x105fe5['get'](_0x2a00ad),_0x105fe5['get'](_0x327347));if(!_0x182559)return null;return _0x5a8478['get'](_0x327347)(_0x2a00ad,_0x327347,_0x105fe5['get'](_0x2a00ad),_0x105fe5['get'](_0x327347))?_0x182559[0x1]['commentThread']&&_0x182559[0x1]['commentThread']['length']?null:_0x182559:null;}_0x19f74f['size']&&this['_refreshSuggestionsChain'](_0x19f74f);}['_refreshAttributeSuggestionsChain'](_0x43db85){if(0x0==_0x43db85['length'])return;const _0x51ccb0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x493331=>'attribute'==_0x493331['type']&&_0x493331['_isDataLoaded']),_0x42011b=[],_0x3823f5=new Map();for(const _0x24817d of _0x51ccb0){const _0x59617a=_0x24a172(_0x24817d['attributes']);_0x3823f5['has'](_0x59617a)||(_0x3823f5['set'](_0x59617a,_0x42011b['length']),_0x42011b['push']([]));const _0xfd6e02=_0x3823f5['get'](_0x59617a);_0x42011b[_0xfd6e02]['push'](_0x24817d);}!(function(){_0x42011b['sort']((_0x3c7ba5,_0x288c3a)=>{const _0x8d8292=_0x3c7ba5[0x0]['createdAt'],_0x3e5be1=_0x288c3a[0x0]['createdAt'];return _0x8d8292==_0x3e5be1?_0x3c7ba5[0x0]['attributes']['groupId']<_0x288c3a[0x0]['attributes']['groupId']?-0x1:0x1:_0x8d8292<_0x3e5be1?-0x1:0x1;});for(const _0x25c9aa of _0x42011b)_0x25c9aa['sort']((_0x4a62ee,_0x4362fa)=>_0x4a62ee['id']<_0x4362fa['id']?-0x1:0x1);}());for(let _0x5138fb=0x0;_0x5138fb<_0x42011b['length'];_0x5138fb++){if(0x0==_0x42011b[_0x5138fb]['length'])continue;const _0xf6500=[];for(let _0xa0544e=_0x5138fb+0x1;_0xa0544e<_0x42011b['length'];_0xa0544e++)0x0!=_0x42011b[_0xa0544e]['length']&&_0x50d600(_0x42011b[_0x5138fb],_0x42011b[_0xa0544e])&&_0xf6500['push'](_0xa0544e);for(const _0x5a23ed of _0xf6500)_0x42011b[_0x5138fb]=_0x42011b[_0x5138fb]['concat'](_0x42011b[_0x5a23ed]),_0x42011b[_0x5a23ed]=[];}for(const _0x180792 of _0x42011b)for(let _0x539c45=0x0;_0x539c45<_0x180792['length'];_0x539c45++){const _0x313348=_0x180792[_0x539c45+0x1]||null;_0x180792[_0x539c45]['next']!==_0x313348&&(_0x180792[_0x539c45]['next']=_0x313348);}for(const _0x57bda4 of _0x42011b)for(let _0x186b98=0x0;_0x186b98<_0x57bda4['length'];_0x186b98++){const _0x4ac1da=_0x57bda4[_0x186b98-0x1]||null;_0x57bda4[_0x186b98]['previous']!==_0x4ac1da&&(_0x57bda4[_0x186b98]['previous']=_0x4ac1da);}function _0x50d600(_0x382fdb,_0x369593){if(_0x382fdb[0x0]['attributes']['groupId']!==_0x369593[0x0]['attributes']['groupId']&&_0x382fdb[0x0]['author']!==_0x369593[0x0]['author'])return!0x1;if(!function(_0x51984c,_0x19cd1a){if(!_0x51984c['hasComments']&&!_0x19cd1a['hasComments'])return!0x0;if(_0x51984c['hasComments']&&_0x19cd1a['hasComments'])return!0x1;if(_0x51984c['hasComments']&&_0x19cd1a['createdAt']<_0x51984c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x19cd1a['hasComments']&&_0x51984c['createdAt']<_0x19cd1a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x382fdb[0x0],_0x369593[0x0]))return!0x1;const _0x57ee3e=Vt(_0x382fdb[0x0]['attributes'],'groupId'),_0x546d01=Vt(_0x369593[0x0]['attributes'],'groupId');if(!_0xf5d1bc(_0x57ee3e,_0x546d01))return!0x1;return!!_0x382fdb['every'](_0x4206cc=>_0x369593['some'](_0x367a69=>_0x4206cc['getFirstRange']()['isEqual'](_0x367a69['getFirstRange']())))&&_0x369593['every'](_0x224de0=>_0x382fdb['some'](_0x731cc=>_0x224de0['getFirstRange']()['isEqual'](_0x731cc['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x214340){const _0x16b577=Array['from'](_0x214340),_0x59d756=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1cd9cb=_0x59d756['filter'](_0x1276e6=>!_0x214340['has'](_0x1276e6)),_0x1cd217=new Map(_0x16b577['map'](_0x317df3=>[_0x317df3,this['_suggestionFactory']['getSuggestionCallback'](_0x317df3['type'],_0x317df3['subType'],'join')])),_0x41e492=new Map(_0x59d756['map'](_0x328755=>[_0x328755,_0x328755['getRanges']()]));for(let _0x4c7e86=0x0;_0x4c7e86<_0x16b577['length'];_0x4c7e86++){if(_0x58085a(this,_0x16b577[_0x4c7e86],_0x16b577,_0x4c7e86+0x1))return!0x0;}for(let _0x48fa75=0x0;_0x48fa75<_0x16b577['length'];_0x48fa75++){if(_0x58085a(this,_0x16b577[_0x48fa75],_0x1cd9cb,0x0))return!0x0;}return!0x1;function _0x58085a(_0x5be7e0,_0x2afd15,_0x3bc55d,_0x461bd6){for(let _0x3fac25=_0x461bd6;_0x3fac25<_0x3bc55d['length'];_0x3fac25++){const _0x575339=_0x3bc55d[_0x3fac25];if(_0x575339['type']!==_0x2afd15['type']||_0x575339['author']['id']!==_0x2afd15['author']['id']||_0x575339['subType']!==_0x2afd15['subType'])continue;if(!Wt(_0x2afd15,_0x575339))continue;if('attribute'==_0x2afd15['type']&&_0x2afd15['data']['oldValue']!=_0x575339['data']['oldValue'])continue;if('attribute'==_0x2afd15['type']&&_0x5be7e0['_isBlockAttribute'](_0x2afd15['data']['key']))continue;if('formatBlock'==_0x2afd15['type']){const _0x44f85a=_0x5be7e0['editor']['model'],_0x53e54a=_0x2afd15['getContainedElement']();if(_0x53e54a&&(_0x44f85a['schema']['isObject'](_0x53e54a)||_0x44f85a['schema']['isLimit'](_0x53e54a)))continue;}const _0x3f545f=_0x1cd217['get'](_0x2afd15),_0x424819=_0x41e492['get'](_0x2afd15),_0x38a611=_0x41e492['get'](_0x575339),_0xa35f00=_0x2afd15['commentThread']&&_0x2afd15['commentThread']['length'],_0x149b55=_0x575339['commentThread']&&_0x575339['commentThread']['length'];if(!_0xa35f00&&_0x3f545f(_0x38a611,_0x424819))return _0x5be7e0['_joinSuggestions'](_0x575339,_0x2afd15),_0x41e492['delete'](_0x2afd15),!0x0;if(!_0x149b55&&_0x3f545f(_0x424819,_0x38a611))return _0x5be7e0['_joinSuggestions'](_0x2afd15,_0x575339),_0x41e492['delete'](_0x575339),!0x0;}return!0x1;}}['_joinSuggestions'](_0x296a71,_0x22502c){if(_0x296a71['isMultiRange']){for(const _0xc6aabd of _0x22502c['getRanges']())_0x296a71['addRange'](_0xc6aabd);}else{const _0x4f7e5c=_0x22502c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x296a71,this['_model']['createRange'](_0x296a71['getFirstRange']()['start'],_0x4f7e5c));}_0x22502c['removeMarkers']();}['_getMarkerAnnouncementText'](_0xfa2cd7,_0x4d6e66,_0x139c8e){const _0x49c7f6=_0xfa2cd7['startsWith']('format')||_0xfa2cd7['startsWith']('attribute')?'FORMATTING':_0xfa2cd7['toUpperCase']();return c(this['editor']['locale'],_0x4d6e66+'_'+_0x49c7f6+'_SUGGESTION_ANNOUNCEMENT',_0x139c8e);}['_initAriaMarkerChangeAnnouncements'](){const _0xcad9a4=this['editor'];if(!_0xcad9a4['ui'])return;const {ariaLiveAnnouncer:_0x43f168}=_0xcad9a4['ui'];_0x23d321(this['_model'],({left:_0x75a338,entered:_0x259982})=>{for(const _0x4da2ef of _0x75a338){const {group:_0x168f18,type:_0x555e3e}=this['_splitMarkerName'](_0x4da2ef['name']);if('suggestion'===_0x168f18){_0x43f168['announce'](this['_getMarkerAnnouncementText'](_0x555e3e,'LEAVE'));break;}}for(const _0x50c6fc of _0x259982){const {group:_0x4246bc,type:_0x160bdb}=this['_splitMarkerName'](_0x50c6fc['name']);if('suggestion'===_0x4246bc){_0x43f168['announce'](this['_getMarkerAnnouncementText'](_0x160bdb,'ENTER',_0x15e370(_0x4608fb)));break;}}});}['_processAttributeChanges'](_0x41dbbf){if(this['_recordAttributeSuggestions'])return!0x1;const _0x414ffc=this['editor'],_0x531eaa=_0x414ffc['model']['document']['differ']['getChanges']();if(0x0==_0x531eaa['length'])return!0x1;const _0x1f46ec=[],_0x535bae=_0x531eaa['filter'](_0x38802f=>'attribute'==_0x38802f['type']),_0x1e3fe2=_0x531eaa['filter'](_0x5d7422=>'insert'==_0x5d7422['type']&&'$text'!=_0x5d7422['name']),_0x4ff4df=_0x531eaa['filter'](_0x4eecd0=>'remove'==_0x4eecd0['type']&&'$text'!=_0x4eecd0['name']);for(const _0x1342f2 of _0x535bae)_0x1f46ec['push']({'key':_0x1342f2['attributeKey'],'newValue':_0x1342f2['attributeNewValue'],'oldValue':_0x1342f2['attributeOldValue'],'range':Ht(_0x1342f2['range'],_0x414ffc['model'])});for(const _0x590e5c of _0x1e3fe2){const _0x10bc3c=_0x4ff4df['find'](_0xd7b1a9=>_0xd7b1a9['position']['isEqual'](_0x590e5c['position']));_0x10bc3c&&_0x1f46ec['push']({'key':u,'newValue':_0x590e5c['name'],'oldValue':_0x10bc3c['name'],'range':_0x414ffc['model']['createRangeOn'](_0x590e5c['position']['nodeAfter'])});}return 0x0!=_0x1f46ec['length']&&this['_reduceExistingSuggestions'](_0x41dbbf,_0x1f46ec);}['_processAttributeSuggestions'](_0x3411b4){let _0x33eeb0=!0x1;const _0x120605=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3d3c5b=>_0x3d3c5b['data']['newRange']&&_0x3d3c5b['name']['startsWith']('suggestion:attribute:'));for(const _0x1bc155 of _0x120605){const {subType:_0x37434c,id:_0x499394}=this['_splitMarkerName'](_0x1bc155['name']),_0x182525=_0x37434c['split']('|')[0x0];for(const _0x58309a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x58309a['id']!=_0x499394&&'attribute'==_0x58309a['type']&&_0x58309a['data']&&_0x58309a['data']['key']==_0x182525&&_0x58309a['getFirstRange']()['isIntersecting'](_0x1bc155['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x58309a,_0x1bc155['data']['newRange'],_0x3411b4),_0x33eeb0=!0x0);}return _0x33eeb0;}['_recordAttributeChanges'](_0xd70262){this['_recordAttributeSuggestions']=!0x0,_0xd70262();}['_isRegisteredAttribute'](_0x36d7b0){const _0x37910a=this['_isBlockAttribute'](_0x36d7b0),_0x19e6e3=this['_inlineAttributeKeys']['has'](_0x36d7b0);return _0x37910a||_0x19e6e3;}['_reduceExistingSuggestions'](_0x419a58,_0x1b453c){if(0x0==_0x1b453c['length'])return!0x1;let _0xa31fa4=!0x1;for(const _0x54f798 of _0x1b453c){const _0x382b2d=this['_findSuggestions'](_0x54f798['range'],'attribute')['filter'](_0x2b1b23=>!_0x2b1b23['meta']['isNextTo'])['map'](_0x286528=>_0x286528['suggestion']),_0x52a9f5=_0x24a172({'newValue':_0x54f798['newValue']});_0x382b2d['filter'](_0x5da67c=>{const [_0x44ae9e,_0x5c9dd4]=_0x5da67c['subType']['split']('|');return _0x44ae9e==_0x54f798['key']&&_0x5c9dd4!=_0x52a9f5;})['forEach'](_0x201ce9=>{this['_reduceSuggestionAttributeRange'](_0x201ce9,_0x54f798['range'],_0x419a58),_0xa31fa4=!0x0;});}return _0xa31fa4;}['_reduceSuggestionAttributeRange'](_0x133a1d,_0x30d8f1,_0x153f7d){const _0x26872f=_0x133a1d['getFirstRange']()['getDifference'](_0x30d8f1);0x0!==_0x26872f['length']?0x1!==_0x26872f['length']?this['_breakSuggestionMarker'](_0x133a1d,_0x30d8f1['start'],_0x30d8f1['end']):this['_setSuggestionRange'](_0x133a1d,_0x26872f[0x0]):_0x153f7d['removeMarker'](_0x133a1d['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x31a6ca){this['_editor']=_0x31a6ca,this['_model']=_0x31a6ca['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5660da,_0x16f2c0,_0x13cec2,_0x493a76,_0xf0cf7,_0xf5b59a){return new o(this['_model'],{'type':_0x5660da,'subType':_0x16f2c0,'id':_0x13cec2,'author':_0x493a76,'creator':_0x493a76,'attributes':_0xf0cf7,'onAttributesChange':_0xf5b59a,'onAccept':(..._0x3c8b89)=>this['getSuggestionCallback'](_0x5660da,_0x16f2c0,'accept')(..._0x3c8b89),'onDiscard':(..._0x2b0b2a)=>this['getSuggestionCallback'](_0x5660da,_0x16f2c0,'discard')(..._0x2b0b2a)});}['registerCustomCallback'](_0x1ebce9,_0x373e5f,_0x35b0ac,_0x18193e){const _0x41a49a=_0x1ebce9+':'+_0x373e5f+':'+_0x35b0ac;this['_customCallbacks']['set'](_0x41a49a,_0x18193e);}['getSuggestionCallback'](_0x458664,_0xde55ca,_0x1ab4a1){const _0x3e3f9e=_0x458664+':'+_0xde55ca+':'+_0x1ab4a1;return this['_customCallbacks']['get'](_0x3e3f9e)||this['_defaultCallbacks']['get'](_0x458664+':'+_0x1ab4a1);}['_registerDefaultCallbacks'](){const _0x61c8f6=()=>!0x1,_0x2a693e=_0xc04973=>{_0xc04973['sort']((_0xa6bae9,_0x26070d)=>_0xa6bae9['start']['isBefore'](_0x26070d['start'])?0x1:-0x1),this['_model']['change'](_0x5673c9=>{for(const _0x4afc7e of _0xc04973){let _0x350409;_0x350409=_0x4afc7e['end']['isAtEnd']&&_0x4afc7e['end']['parent']==_0x4afc7e['start']['nodeAfter']?_0x5673c9['createSelection'](_0x4afc7e['start']['nodeAfter'],'on'):_0x5673c9['createSelection'](_0x4afc7e),this['_model']['deleteContent'](_0x350409,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3c59f9=(_0x1e5218,_0xb1facf)=>{_0xb1facf&&this['_model']['change'](_0x2966ed=>{const {commandName:_0x5ea5ef,commandParams:_0xe3a357=[]}=_0xb1facf,_0x202f88=_0x1e5218['map'](_0x4b7f32=>(Gt(_0x4b7f32)&&(_0x4b7f32=this['_model']['createRange'](_0x4b7f32['end'])),_0x4b7f32))['filter'](_0x37c607=>'$graveyard'!==_0x37c607['root']['rootName']);if(_0x202f88['length']<0x1)return;const _0x20debd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1df974=>_0x507d1e['fromRange'](_0x1df974));_0x2966ed['setSelection'](_0x202f88);for(const _0xe7c588 of this['_editor']['commands']['commands']())_0xe7c588['refresh']();_0xe3a357['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5ea5ef,..._0xe3a357);const _0x496abe=_0x20debd['filter'](_0x295761=>'$graveyard'!=_0x295761['root']['rootName']);_0x496abe['length']>0x0&&_0x2966ed['setSelection'](_0x496abe);for(const _0x3b0bab of _0x20debd)_0x3b0bab['detach']();});},_0x44a55f=(_0x5bc1f8,_0x4af4e1)=>0x1==_0x5bc1f8['length']&&0x1==_0x4af4e1['length']&&_0x5bc1f8[0x0]['end']['isEqual'](_0x4af4e1[0x0]['start']),_0x175428=(_0x3e85c6,_0x155e13,_0x5354b7,_0x3cdf4c)=>zt(_0x3e85c6,_0x155e13,_0x5354b7,_0x3cdf4c)?[_0x3e85c6,_0x155e13]:zt(_0x155e13,_0x3e85c6,_0x3cdf4c,_0x5354b7)?[_0x155e13,_0x3e85c6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x61c8f6),this['_defaultCallbacks']['set']('insertion:discard',_0x2a693e),this['_defaultCallbacks']['set']('insertion:join',_0x44a55f),this['_defaultCallbacks']['set']('insertion:chain',_0x175428),this['_defaultCallbacks']['set']('deletion:accept',_0x2a693e),this['_defaultCallbacks']['set']('deletion:discard',_0x61c8f6),this['_defaultCallbacks']['set']('deletion:join',_0x44a55f),this['_defaultCallbacks']['set']('deletion:chain',_0x175428),this['_defaultCallbacks']['set']('formatInline:accept',_0x3c59f9),this['_defaultCallbacks']['set']('formatInline:discard',_0x61c8f6),this['_defaultCallbacks']['set']('formatInline:join',_0x44a55f),this['_defaultCallbacks']['set']('formatInline:chain',_0x61c8f6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3c59f9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x61c8f6),this['_defaultCallbacks']['set']('formatBlock:join',_0x44a55f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x61c8f6),this['_defaultCallbacks']['set']('attribute:accept',_0x61c8f6),this['_defaultCallbacks']['set']('attribute:discard',(_0x4ba415,_0x516f2b)=>{if(!_0x516f2b)return;const _0x2f6b02=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2ed329=>{if(_0x516f2b['key']==u)for(const _0x4a8b6e of _0x4ba415){const _0x2835ac=_0x4a8b6e['start']['nodeAfter'],_0x1761b2=_0x516f2b['oldValue'];_0x2ed329['rename'](_0x2835ac,_0x1761b2);}else{if(_0x2f6b02['_isBlockAttribute'](_0x516f2b['key'])){for(const _0x4c5405 of _0x4ba415)void 0x0!==_0x516f2b['oldValue']?_0x2ed329['setAttribute'](_0x516f2b['key'],_0x516f2b['oldValue'],_0x4c5405['start']['nodeAfter']):_0x2ed329['removeAttribute'](_0x516f2b['key'],_0x4c5405['start']['nodeAfter']);}else{for(const _0x1b5529 of _0x4ba415)_0x516f2b['oldValue']?_0x2ed329['setAttribute'](_0x516f2b['key'],_0x516f2b['oldValue'],_0x1b5529):_0x2ed329['removeAttribute'](_0x516f2b['key'],_0x1b5529);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x44a55f);}}function Pt(_0x2a70f4,_0x1ef2df,_0x98f3b2){for(const _0x7e17bc of _0x1ef2df['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x7e17bc['root']==_0x7e17bc)return!0x1;if(!_0x98f3b2['containsItem'](_0x7e17bc))return!0x1;if(_0x2a70f4['isObject'](_0x7e17bc)||_0x2a70f4['isLimit'](_0x7e17bc))return!0x0;}return!0x1;}function Gt(_0x6cd6f8){return _0x6cd6f8['end']['parent']==_0x6cd6f8['start']['nodeAfter']&&_0x6cd6f8['end']['isAtStart'];}function Lt(_0x35e651,_0x140ecf,_0x30e92c,_0x260a4e){const _0xf6d14c=_0x3c39ea=>!_0x3c39ea['item']['is']('$textProxy')&&!_0x260a4e['isObject'](_0x3c39ea['item']),_0x558b78=_0x35e651['start']['getLastMatchingPosition'](_0xf6d14c),_0x4c1159=_0x35e651['end']['getLastMatchingPosition'](_0xf6d14c,{'direction':'backward'});return(!_0x35e651['start']['isEqual'](_0x558b78)||!_0x35e651['end']['isEqual'](_0x4c1159))&&(_0x558b78['isBefore'](_0x4c1159)?_0x30e92c['updateMarker'](_0x140ecf,{'range':_0x30e92c['createRange'](_0x558b78,_0x4c1159)}):_0x30e92c['removeMarker'](_0x140ecf),!0x0);}function Jt(_0x3a5195){return _0x24a172(_0x3a5195);}function Kt(_0x52e3f9){const _0x451349=_0x52e3f9['start']['nodeAfter'];return _0x451349&&_0x451349['is']('element');}function Ht(_0x3a8229,_0x151612){return null==_0x3a8229['end']['nodeBefore']&&_0x3a8229['end']['parent']==_0x3a8229['start']['nodeAfter']?qt(_0x3a8229['start']['nodeAfter'],_0x151612):_0x3a8229;}function qt(_0x47ba3c,_0x574d3f){const _0x43924b=_0x574d3f['schema']['isObject'](_0x47ba3c)||_0x574d3f['schema']['isSelectable'](_0x47ba3c);return _0x574d3f['createRange'](_0x574d3f['createPositionAt'](_0x47ba3c,'before'),_0x43924b?_0x574d3f['createPositionAfter'](_0x47ba3c):_0x574d3f['createPositionAt'](_0x47ba3c,'end'));}function zt(_0x481db6,_0x458c80,_0x343e47,_0x269455){return!!Wt(_0x481db6,_0x458c80)&&_0x343e47['end']['isEqual'](_0x269455['start']);}function Wt(_0x54d4ae,_0x26016b){if(!_0x54d4ae['_isDataLoaded']||!_0x26016b['_isDataLoaded'])return!0x1;const _0xca2133=new Set(Object['keys'](_0x54d4ae['attributes'])),_0x1304a8=new Set(Object['keys'](_0x26016b['attributes']));if(_0xca2133['delete']('groupId'),_0x1304a8['delete']('groupId'),0x0==_0xca2133['size']&&0x0==_0x1304a8['size'])return!0x0;if(_0xca2133['size']!=_0x1304a8['size'])return!0x1;const _0x37d876={..._0x54d4ae['attributes']},_0x3d367e={..._0x26016b['attributes']};return delete _0x37d876['groupId'],delete _0x3d367e['groupId'],JSON['stringify'](_0x37d876)==JSON['stringify'](_0x3d367e);}function Qt(_0x3e9f91,_0x5f41af){const _0x195a6e=Xt(_0x3e9f91['attributes']),_0x5b7dfc=Xt(_0x5f41af);if(!_0x3e9f91['_isDataLoaded'])return!0x1;for(const _0x31d8c1 of Object['keys'](_0x5b7dfc))if(!_0xf5d1bc(_0x195a6e[_0x31d8c1],_0x5b7dfc[_0x31d8c1]))return!0x1;return!0x0;}function Xt(_0x4e4efd){const _0x1cbc6a=Object['assign']({},_0x4e4efd);return delete _0x1cbc6a['skipNestingCheck'],delete _0x1cbc6a['tablePasteChainId'],_0x1cbc6a;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1fb0c7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x10da5d,_0x1f6ade,_0x8f4024,_0x57ff75){super(),this['model']=_0x1f6ade,this['view']=_0x8f4024,this['commentThreadController']=_0x57ff75,this['_editor']=_0x10da5d,this['_acceptCommand']=_0x10da5d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x10da5d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5d01de,_0xa88b5e)=>_0x5d01de||_0xa88b5e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x245836=>_0x245836&&this['_editor']['model']['canEditAt'](_0x1f6ade['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4f561a=>_0x4f561a&&this['_editor']['model']['canEditAt'](_0x1f6ade['getRanges']())),this['_pendingAction']=null,_0x8f4024['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x8f4024,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x8f4024,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x8f4024,'change:isDirty',()=>{_0x8f4024['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 _0x3fd4dd=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3fd4dd);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x24fbb6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xdbb0ee,_0x3ab205,_0x34d8e4,_0x2b1516){super(_0xdbb0ee),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2a9dbc(_0xdbb0ee,c(_0xdbb0ee,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3ab205['authoredAt']),this['bind']('authoredAt')['to'](_0x3ab205),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',_0x3ab205,'authoredAt',this,'descriptionParts',(_0x42148d,_0x2045e9,_0x22b81c)=>{const _0x3306fa=_0x22b81c['map'](_0x54580e=>ls(_0x54580e['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x42148d-0x1,_0x3ab205['author']['name'],_0x2045e9?_0x2b1516['formatDateTime'](_0x2045e9):'',new DOMParser()['parseFromString'](_0x3306fa,'text/html')['body']['textContent']]);}),this['focusables']=new _0x54a049(),this['focusTracker']=new _0x12a3fd(),this['keystrokes']=new _0x535c70(),this['focusCycler']=new _0x1f4154({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x532a7d=>_0x532a7d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3ab205,this['_localUser']=_0x34d8e4,this['_config']=_0x2b1516,_0x2b1516['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x16c2e4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x53d579}=this['_config'];this['commentsListView']=new _0x53d579(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',_0x459230=>_0x459230+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x502cd6,_0x129ce7)=>_0x502cd6||!!_0x129ce7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x318191}=this['_config'],_0x354686=new _0x318191(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x558780=_0x354686['commentInputView'];return _0x354686['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x558780,'value',(_0x39728,_0x591e1e,_0x424e5c)=>!!_0x424e5c||_0x39728&&!_0x591e1e),_0x558780['on']('submit',(_0xe6b139,_0x20a17f)=>{this['fire']('addComment',_0x20a17f),_0x558780['editor']['setData']('');}),_0x558780['on']('cancel',()=>this['focus']()),_0x558780['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x354686;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x15bce0,_0x1b8997,_0x31acb5,_0x57d3ee){super(_0x15bce0,_0x1b8997,_0x31acb5,_0x57d3ee),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x41edef=>_0x41edef&&_0x41edef[0x0]?_0x41edef[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x55a548,_0x53ca05)=>{let _0x2d4a76='';for(const _0x448d6f of _0x55a548)_0x2d4a76+='<p>'+ls(_0x448d6f['content'],_0x448d6f['color'])+'</p>';return _0x53ca05?_0x2d4a76:ti(_0x2d4a76,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x57d3ee['SuggestionView'](_0x15bce0,_0x1b8997,{'formatDateTime':_0x57d3ee['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 _0x38163a=this['bindTemplate'],_0xc02083=[this['suggestionView']];return this['commentsListView']&&_0xc02083['push'](this['commentsListView']),this['commentThreadInputView']&&_0xc02083['push'](this['commentThreadInputView']),_0xc02083['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x38163a['if']('isActive','ck-suggestion-wrapper--active'),_0x38163a['to']('type',_0xefac9=>'ck-suggestion-'+_0xefac9),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':_0x38163a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xc02083};}['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 _0x24fbb6{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4479ea,_0x1c2300,_0x810d7d){super(_0x4479ea),this['_model']=_0x1c2300,this['_config']=_0x810d7d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1c2300),this['acceptButton']=this['_createButton'](c(_0x4479ea,'Accept\x20suggestion'),_0x342a60,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4479ea,'Discard\x20suggestion'),_0xf755f5,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1aee62(_0x4479ea,_0x1c2300['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x54a049([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x12a3fd(),this['keystrokes']=new _0x535c70(),this['focusCycler']=new _0x1f4154({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2bae7e=>_0x2bae7e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x49a3d1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x49a3d1['innerHTML']=this['description'],this['on']('change:description',(_0x40ef05,_0x2c3eeb,_0x360ca0)=>{_0x49a3d1['innerHTML']=_0x360ca0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x8c1ab7=this['bindTemplate'],_0x2065f8=[{'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':_0x8c1ab7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x8c1ab7['to']('authoredAt',_0x11fece=>this['_config']['formatDateTime'](_0x11fece))}]}]},{'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']&&_0x2065f8['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':_0x2065f8}]};}['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'](_0x288fdf,_0x26a6ae,_0x53c93c,_0x48eebb,_0x49a75e){const _0x52d0e4=new _0x20dc8c(this['locale']);return _0x52d0e4['set']({'label':_0x288fdf,'icon':_0x26a6ae,'tooltip':!0x0,'tooltipPosition':_0x49a75e}),_0x52d0e4['extendTemplate']({'attributes':{'class':_0x53c93c}}),_0x52d0e4['on']('execute',()=>{this['fire'](_0x48eebb,this['_model']['id']);}),_0x52d0e4;}['_setupKeyboardNavigation'](){const _0x2d64f6=this['element'];this['keystrokes']['listenTo'](_0x2d64f6);for(const _0x2d84ee of this['focusables'])this['focusTracker']['add'](_0x2d84ee['element']),this['keystrokes']['listenTo'](_0x2d84ee['element']);this['keystrokes']['set']('enter',(_0x32974d,_0x2228d6)=>{_0x2d64f6===_0x32974d['target']&&(this['focusCycler']['focusFirst'](),_0x2228d6());}),this['keystrokes']['set']('esc',(_0x259610,_0x3f96b5)=>{_0x2d64f6!==_0x259610['target']&&(this['focus'](),_0x3f96b5());});}}class d extends _0x299b22{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x450b2f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5112cf){super(_0x5112cf),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f3281=this['editor']['config'];_0x1f3281['define']('trackChanges.SuggestionThreadView',fe),_0x1f3281['define']('trackChanges.SuggestionView',we),_0x1f3281['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1f3281['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4bd024,_0x230aa0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xa26017,_0x517256]of this['_handleControllerBuffer']){const _0x42f1d3=this['_suggestionToController']['has'](_0xa26017);_0x42f1d3||_0x517256?_0x42f1d3&&_0x517256&&this['_destroyController'](_0xa26017):this['_initializeController'](_0xa26017);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4bd024,_0x230aa0);}['init'](){const _0x52b4e3=this['editor'],_0x341b2b=_0x52b4e3['plugins']['get']('TrackChangesEditing'),_0x21a15f=_0x52b4e3['plugins']['get']('Annotations'),_0x32c015=_0x52b4e3['plugins']['get']('EditorAnnotations'),_0x1d154b=_0x52b4e3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x32c015['addSourceCollector'](()=>{const _0x457c5a=[];for(const [_0x142622,_0x4f41af]of Array['from'](this['_suggestionToController'])){const _0x3a6269=_0x142622['getAllAdjacentSuggestions'](),_0x6c94bf=[];for(const _0x4647a1 of _0x3a6269){if(!_0x4647a1['isInContent'])continue;if(_0x4647a1['isMultiRange']){_0x6c94bf['push'](..._0x4647a1['getRanges']());continue;}const _0x3c3326=_0x4647a1['getFirstRange']();if(_0x6c94bf['length']>0x0){const _0x191b1c=_0x6c94bf[0x0]['getJoined'](_0x3c3326);if(_0x191b1c){_0x6c94bf[0x0]=_0x191b1c;continue;}}_0x6c94bf['push'](_0x3c3326);}_0x457c5a['push']([_0x4f41af['view'],_0x6c94bf]);}return _0x457c5a;}),this['listenTo'](_0x341b2b,'suggestionLoaded',(_0x2aaffe,_0x4ad0b5)=>{this['listenTo'](_0x4ad0b5,'change:previous',(_0x221e84,_0x8a3758,_0x2adbdc,_0x3923eb)=>{_0x4ad0b5['isInContent']&&(null==_0x2adbdc?(this['_updateController'](_0x3923eb['head']),this['_handleSuggestionControllerDelayed'](_0x4ad0b5,!0x1)):(this['_updateController'](_0x2adbdc['head']),null==_0x3923eb&&this['_handleSuggestionControllerDelayed'](_0x4ad0b5,!0x0)));}),null!==_0x4ad0b5['previous']?this['_updateController'](_0x4ad0b5['head']):this['_handleSuggestionControllerDelayed'](_0x4ad0b5,!0x1);}),this['listenTo'](_0x341b2b,'suggestionUnloaded',(_0x387960,_0x35dc38,_0x23fcd3)=>{this['stopListening'](_0x35dc38,'change:previous'),this['_handleControllerBuffer']['delete'](_0x35dc38),this['_suggestionToController']['has'](_0x35dc38)&&this['_destroyController'](_0x35dc38),_0x23fcd3&&this['_updateController'](_0x23fcd3['head']);}),this['listenTo'](_0x341b2b,'suggestionChanged',(_0x42d144,_0x19ef93)=>{this['_updateController'](_0x19ef93);}),this['listenTo'](_0x21a15f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1d154b,'addComment',(_0x35e56b,{threadId:_0x4890af,isFromAdapter:_0x1838d8})=>{if(_0x1838d8||!_0x341b2b['hasSuggestion'](_0x4890af))return;const _0x45e94b=_0x341b2b['getSuggestion'](_0x4890af);this['_suggestionToController']['get'](_0x45e94b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x38d2cf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31b564;for(const _0x451e51 in _0x38d2cf){const _0x6d66fd=_0x451e51,_0x3820a6=_0x38d2cf[_0x6d66fd];if('trackChangesLicenseKeyValid'==_0x3820a6||'trackChangesLicenseKeyInvalid'==_0x3820a6||'trackChangesLicenseKeyExpired'==_0x3820a6||'trackChangesLicenseKeyDomainLimit'==_0x3820a6||'trackChangesLicenseKeyNotAllowed'==_0x3820a6||'trackChangesLicenseKeyEvaluationLimit'==_0x3820a6||'trackChangesLicenseKeyTrialLimit'==_0x3820a6||'trackChangesLicenseKeyUsageLimit'==_0x3820a6){delete _0x38d2cf[_0x6d66fd],_0x31b564=_0x3820a6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x31b564&&_0x38d2cf['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x31b564&&_0x38d2cf['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x31b564&&_0x38d2cf['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x31b564&&_0x38d2cf['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x31b564&&_0x38d2cf['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x31b564&&_0x38d2cf['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x31b564&&_0x38d2cf['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x32a8fe=this['editor']['plugins']['get']('Annotations'),_0x59c18b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x477c4b=Array['from'](_0x32a8fe['activeAnnotations'],_0x527a4c=>_0x527a4c['innerView'])['filter'](_0xe0681b=>this['_viewToController']['has'](_0xe0681b)),_0x5c6082=[];for(const _0x4b9f36 of _0x477c4b){const _0x289a18=this['_viewToController']['get'](_0x4b9f36)['model']['getAllAdjacentSuggestions']();_0x5c6082['push'](..._0x289a18['reduce']((_0x19a8b5,_0x57f19e)=>[..._0x19a8b5,..._0x57f19e['getMarkerNames']()],[]));}_0x59c18b['activeMarkers']=_0x5c6082;}['_addUIComponentsToFactory'](){const _0x2b09d5=this['editor'],_0xb9ada9=_0x2b09d5['locale'],_0x9691cb=c(_0xb9ada9,'Track\x20changes'),_0x38ff40=new _0x116ecf([{'type':'switchbutton','model':new _0x5a8e8e({'withText':!0x0,'isToggleable':!0x0,'label':_0x9691cb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5a8e8e({'withText':!0x0,'label':c(_0xb9ada9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a8e8e({'withText':!0x0,'label':c(_0xb9ada9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a8e8e({'withText':!0x0,'label':c(_0xb9ada9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a8e8e({'withText':!0x0,'label':c(_0xb9ada9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2b09d5['plugins']['has']('TrackChangesPreview')&&_0x38ff40['addMany']([{'type':'separator'},{'type':'button','model':new _0x5a8e8e({'withText':!0x0,'label':c(_0xb9ada9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x493125 of _0x38ff40)if(ke(_0x493125)){const _0x136e05=_0x2b09d5['commands']['get'](_0x493125['model']['commandName']);_0x493125['model']['bind']('isOn','isEnabled')['to'](_0x136e05,'value','isEnabled');}_0x2b09d5['ui']['componentFactory']['add']('trackChanges',_0x320e93=>this['_createToolbarButton'](_0x320e93,_0x38ff40,_0x9691cb)),_0x2b09d5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x288eec=>this['_createMenuBarMenu'](_0x288eec,_0x38ff40,_0x9691cb));}['_createToolbarButton'](_0x193ec0,_0x291a8f,_0x1645a5){const _0x383800=_0xf8cefb(_0x193ec0,_0x3d1970),_0x58dd16=this['editor']['commands']['get']('trackChanges');_0x383800['buttonView']['set']({'tooltip':_0x1645a5,'label':_0x1645a5,'icon':_0x577971}),_0x383800['buttonView']['bind']('isOn')['to'](_0x58dd16,'value'),_0x383800['buttonView']['on']('execute',()=>{_0x58dd16['execute'](),this['editor']['editing']['view']['focus']();}),_0x4bfceb(_0x383800,_0x291a8f,{'role':'menu'});const _0x1038a6=[];for(const _0xdc8dc4 of _0x291a8f)ke(_0xdc8dc4)&&_0x1038a6['push'](this['editor']['commands']['get'](_0xdc8dc4['model']['commandName']));const _0x29e080=_0x383800['buttonView'];return _0x29e080['actionView']['unbind']('isEnabled'),_0x29e080['arrowView']['unbind']('isEnabled'),_0x29e080['actionView']['bind']('isEnabled')['to'](_0x58dd16,'isEnabled'),_0x29e080['arrowView']['bind']('isEnabled')['toMany'](_0x1038a6,'isEnabled',(..._0x3134c0)=>_0x3134c0['some'](_0x50ac2c=>_0x50ac2c)),_0x383800['on']('execute',_0x57ad2b=>{this['editor']['execute'](_0x57ad2b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x383800;}['_createMenuBarMenu'](_0x108f72,_0x59bc87,_0x34b780){const _0x51ae13=new _0x8ec37(_0x108f72),_0x313a68=this['editor']['commands']['get']('trackChanges');_0x51ae13['buttonView']['set']({'label':_0x34b780,'icon':_0x577971});const _0x50dc64=new _0x4d21bb(_0x108f72);for(const _0x3d361b of _0x59bc87){if('separator'==_0x3d361b['type']){_0x50dc64['items']['add'](new _0x4babb0(_0x108f72));continue;}const _0x460cd2=new _0x496400(_0x108f72,_0x51ae13),_0x11464e=new _0x32b461(_0x108f72),_0x227035=_0x3d361b['model'];_0x11464e['bind'](...Object['keys'](_0x227035))['to'](_0x227035),_0x11464e['delegate']('execute')['to'](_0x51ae13),_0x11464e['on']('execute',()=>{this['editor']['execute'](_0x227035['commandName']),this['editor']['editing']['view']['focus']();}),_0x460cd2['children']['add'](_0x11464e),_0x50dc64['items']['add'](_0x460cd2);}return _0x51ae13['bind']('isEnabled')['to'](_0x313a68,'isEnabled'),_0x51ae13['panelView']['children']['add'](_0x50dc64),_0x51ae13;}['_initializeController'](_0x8cfc3f){const _0x4d2643=this['editor'],_0x79913c=_0x4d2643['config'],_0x10dabb=_0x4d2643['plugins']['get']('Annotations'),_0x11dc5f=_0x4d2643['plugins']['get']('CommentsRepository'),_0x8daee=_0x4d2643['plugins']['get']('EditorAnnotations'),_0x1e3b9=_0x4d2643['plugins']['get'](_0x450b2f)['me'],_0x218976=_0x79913c['get']('trackChanges')['SuggestionThreadView'],_0x3190c4=_0x79913c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1cb7e4,CommentThreadInputView:_0x4ab177}=_0x4d2643['plugins']['get']('CommentsUI');let _0x39da9e,_0x17c796,_0x173355;this['_annotationViews']['has'](_0x8cfc3f['id'])?(_0x17c796=this['_annotationViews']['get'](_0x8cfc3f['id']),_0x39da9e=_0x17c796['mainView']):(_0x39da9e=new _0x218976(_0x4d2643['locale'],_0x8cfc3f,_0x1e3b9,{'disableComments':this['_disableComments'],'editorConfig':{..._0x79913c['get']('comments.editorConfig'),'licenseKey':_0x79913c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x79913c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x79913c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x79913c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f22b1(_0x79913c['get']('locale')),'CommentView':_0x79913c['get']('comments')['CommentView'],'CommentsListView':_0x1cb7e4,'CommentThreadInputView':_0x4ab177,'SuggestionView':_0x3190c4}),_0x39da9e['suggestionView']['acceptButton']['on']('execute',()=>{_0x4d2643['editing']['view']['focus']();}),_0x39da9e['suggestionView']['discardButton']['on']('execute',()=>{_0x4d2643['editing']['view']['focus']();}),_0x17c796=_0x10dabb['createAnnotationView'](this['editor']['locale'],_0x39da9e),_0x17c796['bind']('isDirty')['to'](_0x39da9e,'isDirty'),_0x17c796['bind']('length')['to'](_0x39da9e),_0x17c796['bind']('type')['to'](_0x39da9e,'type',_0x46a3aa=>'suggestion-'+_0x46a3aa),_0x39da9e['on']('escape',()=>{_0x173355['fire']('escape');}),this['_annotationViews']['set'](_0x8cfc3f['id'],_0x17c796));const _0x573314=_0x11dc5f['createCommentThreadController'](_0x8cfc3f['commentThread'],_0x39da9e),_0x5f1fbb=new pe(_0x4d2643,_0x8cfc3f,_0x39da9e,_0x573314),_0xff5efe=_0x8cfc3f['getAllAdjacentSuggestions']()['filter'](_0x40c617=>_0x40c617['isInContent']);_0x39da9e['descriptionParts']=_0x4d2643['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xff5efe),this['_suggestionToController']['set'](_0x8cfc3f,_0x5f1fbb),this['_viewToController']['set'](_0x39da9e,_0x5f1fbb),_0x173355=_0x10dabb['createAnnotation']({'view':_0x17c796,'target':()=>{const _0x230a48=[],_0x19544f=_0x8cfc3f['getAllAdjacentSuggestions']()['filter'](_0x3d35e4=>_0x3d35e4['isInContent']);for(const _0x49b114 of _0x19544f)_0x230a48['push'](..._0x49b114['getMarkers']());return _0x1be0ce(_0x4d2643['editing'],_0x230a48);},'type':()=>'suggestion-'+_0x5f1fbb['view']['type']}),_0x11dc5f['_bindAnnotationToEditors'](_0x39da9e,_0x173355),_0x10dabb['add'](_0x173355),_0x8daee['registerAnnotation'](_0x173355);}['_destroyController'](_0x4cfd62){const _0x5c3be9=this['editor']['plugins']['get']('CommentsRepository'),_0x337389=this['editor']['plugins']['get']('Annotations'),_0xf50eaf=this['_suggestionToController']['get'](_0x4cfd62),_0x3c1b64=_0xf50eaf['view'],_0x44e8a2=_0x337389['getByInnerView'](_0x3c1b64);_0x5c3be9['_unbindEditors'](_0x3c1b64),_0x44e8a2&&_0x337389['remove'](_0x44e8a2),this['_suggestionToController']['delete'](_0x4cfd62),this['_viewToController']['delete'](_0x3c1b64),_0xf50eaf['destroy']();}['_updateController'](_0x2ac42d){if(!_0x2ac42d['isInContent']||!this['_suggestionToController']['has'](_0x2ac42d))return;const _0x3df06b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x568cd3=this['_suggestionToController']['get'](_0x2ac42d),_0x59e44a=_0x2ac42d['getAllAdjacentSuggestions']();_0x568cd3['view']['descriptionParts']=_0x3df06b['descriptionFactory']['getDescriptions'](_0x59e44a);}['destroy'](){for(const _0x14f78e of this['_suggestionToController']['keys']())this['_destroyController'](_0x14f78e);for(const _0x1b23f5 of this['_annotationViews']['values']())_0x1b23f5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x56883a){return'model'in _0x56883a;}class k extends _0x299b22{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x37ffba){this['editor']['plugins']['get'](p)['adapter']=_0x37ffba;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xb6fd45){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xb6fd45);}['getSuggestions']({skipNotAttached:_0x382749=!0x1,toJSON:_0x197597=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x382749,'toJSON':_0x197597});}['getSuggestion'](_0x240129){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x240129);}}const w=['Pagination'];class T extends _0x299b22{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x6e2d89=this['editor'];if(_0x6e2d89['config']['define']('trackChangesData.editorCreator',_0x29b917=>{const _0x344030=_0x6e2d89['model']['document']['getRootNames']()['reduce']((_0x1ccba6,_0x256302)=>(_0x1ccba6[_0x256302]='',_0x1ccba6),{});return _0x6e2d89['constructor']['create'](_0x344030,_0x29b917);}),'function'!=typeof _0x6e2d89['config']['get']('trackChangesData')['editorCreator'])throw new _0x20c027('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xbeb2ed){return N(this['editor'],!0x0,_0xbeb2ed);}['getDataWithDiscardedSuggestions'](_0x3d02f5){return N(this['editor'],!0x1,_0x3d02f5);}}class D extends _0x299b22{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe77563){function _0x4db38a(_0x4eb7ab){return _0x4eb7ab['map'](_0x35aad3=>String['fromCharCode'](_0x35aad3))['join']('');}super(_0xe77563),this['result']='end',_0xe77563[_0x4db38a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4db38a([0x76,0x69,0x65,0x77])][_0x4db38a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4db38a([0x61,0x75,0x74,0x6f]),_0xe77563[_0x4db38a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4db38a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4db38a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4db38a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4db38a([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 Fe(_0x344026){return void 0x0!==_0x344026['getRootsAttributes'];}async function N(_0x50a2b0,_0x3318c7,_0x3167dc){const _0x5ef554=_0x27378e(_0x50a2b0,w);_0x5ef554['plugins']['push'](p,D),_0x5ef554['rootsAttributes']=Fe(_0x50a2b0)?_0x50a2b0['getRootsAttributes']():void 0x0;const _0x344d6f=document['createDocumentFragment'](),_0x481d89=_0x50a2b0['config']['get']('trackChangesData')['editorCreator'],_0x12b073=await _0x481d89(_0x5ef554,()=>function(_0x4157db){const _0x41d06a=document['createElement']('div');return _0x4157db['appendChild'](_0x41d06a),_0x41d06a;}(_0x344d6f));!function(_0x43eed2,_0x126ab3){const _0x1e6fbd=_0x43eed2['model']['document']['getRootNames']()['reduce']((_0x5ec4b8,_0x224cb8)=>(_0x5ec4b8[_0x224cb8]=_0x43eed2['data']['get']({'rootName':_0x224cb8}),_0x5ec4b8),{}),_0x1b51a7=_0x43eed2['plugins']['get']('Users')['users']['map'](_0x3a752f=>({'id':_0x3a752f['id'],'name':_0x3a752f['name']})),_0x16613c=_0x43eed2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x6da6f=_0x43eed2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x372882=_0x126ab3['plugins']['get']('Users'),_0x16a195=_0x126ab3['plugins']['get']('TrackChangesEditing'),_0x48a159=_0x126ab3['plugins']['get']('CommentsRepository');for(const _0x5bd7f0 of _0x48a159['getCommentThreads']())_0x5bd7f0['remove']();for(const _0x423ab5 of _0x1b51a7)_0x372882['getUser'](_0x423ab5['id'])||_0x372882['addUser'](_0x423ab5);_0x372882['me']||_0x372882['useAnonymousUser']();for(const _0x26a9ee of _0x6da6f)_0x48a159['addCommentThread'](_0x26a9ee);for(const _0x155873 of _0x16613c)_0x16a195['addSuggestionData'](_0x155873);_0x126ab3['data']['set'](_0x1e6fbd);}(_0x50a2b0,_0x12b073),_0x12b073['execute'](_0x3318c7?'acceptAllSuggestions':'discardAllSuggestions');const _0x25a255=Fe(_0x12b073)?_0x12b073['getFullData'](_0x3167dc):_0x12b073['data']['get'](_0x3167dc);return await _0x12b073['destroy'](),_0x25a255;}class Me extends _0x24fbb6{['options'];constructor(_0x285908,_0x30158e){super(_0x285908),this['options']=_0x30158e,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'](_0x124d07,_0x562238){if(!this['element'])return;const _0x249f28=[];for(const [_0x5c482b,_0x62b5a5]of _0x124d07){const _0x1eff99=document['createElement']('div');_0x1eff99['setAttribute']('data-ck-root-name',_0x5c482b),_0x1eff99['className']=_0x62b5a5['classes']+'\x20ck-track-changes-preview__root-container',_0x1eff99['innerHTML']=_0x62b5a5['content'],_0x249f28['push'](_0x1eff99);}_0x562238(this['element'],_0x249f28),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x55512b{constructor(_0x3a0e4f){super(_0x3a0e4f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1e3240=this['editor'],_0x236250=_0x1e3240['locale'],_0x192c44=_0x1e3240['plugins']['get']('Dialog');let _0x375a62;const _0x568a80=function(_0x5400ff){const _0x4b3269={};if('editables'in _0x5400ff['ui']['view']){for(const [_0x39bdee,_0x359263]of Object['entries'](_0x5400ff['ui']['view']['editables']))_0x4b3269[_0x39bdee]=_0x359263['element'];}else _0x4b3269[_0x5400ff['model']['document']['getRootNames']()[0x0]]=_0x5400ff['ui']['view']['editable']['element'];return _0x4b3269;}(_0x1e3240),_0x5a7d47=function(_0x5a2092){let _0x3ba8cf=0x0;for(const _0x3276aa of Object['values'](_0x5a2092))_0x3ba8cf=Math['max'](_0x3ba8cf,_0x3276aa['getBoundingClientRect']()['width']);let _0x3c5c7a=0x0;for(const _0xfea228 of Object['values'](_0x5a2092))_0x3c5c7a+=_0xfea228['getBoundingClientRect']()['height'];const _0x318107=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x177f70=Math['min'](_0x3c5c7a,_0x318107);return{'width':_0x3ba8cf,'height':_0x177f70};}(_0x568a80);_0x192c44['show']({'id':'finalContentPreview','title':c(_0x236250,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x236250,{'dialogRects':_0x5a7d47}),'onHide':()=>{_0x375a62['detachFromDom']();},'onShow':()=>{_0x1e3240['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x565b21=>{const _0x1ec090=this['_standarizeRootsData'](_0x565b21,_0x1e3240,_0x568a80);_0x192c44['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1ec090,_0x1e3240['config']['get']('trackChanges.preview.renderFunction'));}),_0x375a62=new _0x342eb9(_0x236250,[_0x192c44['view']]),_0x375a62['attachToDom'](),_0x375a62['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1e3240['once']('destroy',()=>{_0x375a62['detachFromDom']();});const _0x1d86a6=_0x192c44['view']['headerView']['class'];_0x192c44['view']['headerView']['class']=_0x1d86a6?_0x1d86a6+'\x20ck-reset_all':'ck-reset_all',_0x192c44['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x192c44['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x9f07b9=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x52ab72=_0x9f07b9['previewMode'],_0x536d20={};if('$labels'===_0x52ab72){for(const _0x50f43d of _0x9f07b9['getMergeFieldsIds']())_0x536d20[_0x50f43d]=_0x9f07b9['getLabel'](_0x50f43d)||_0x50f43d;}else{const _0x1c599a='$defaultValues'===_0x52ab72?_0x9f07b9['getDefaultValues']():_0x9f07b9['getDataSetValues'](_0x52ab72,!0x0);for(const _0x3d70f9 of Object['entries'](_0x1c599a)){const [_0x18a8a5,_0x19360a]=_0x3d70f9;_0x536d20[_0x18a8a5]=null!==_0x19360a?_0x19360a:_0x9f07b9['getLabel'](_0x18a8a5)||_0x18a8a5;}}return{'mergeFieldsData':_0x536d20};}['_standarizeRootsData'](_0x212d60,_0x384b10,_0x31567e){let _0x3e4f75;if('string'==typeof _0x212d60){const _0x250e7b=_0x384b10['model']['document']['getRootNames']()[0x0];_0x3e4f75={[_0x250e7b]:_0x212d60};}else _0x3e4f75=_0x212d60;const _0x2eb4df=this['_fixMediaEmbeds'](_0x3e4f75,_0x384b10),_0x11a52f=function(_0x342073,_0x5b1e49){for(const [_0x35602b,_0xbc01a9]of _0x342073)_0xbc01a9['classes']=_0x5b1e49[_0x35602b]['classList']['value']['replace']('ck-focused','');return _0x342073;}(this['_sortRoots'](_0x384b10)['reduce']((_0x37af0d,_0x51fb24)=>(_0x37af0d['push']([_0x51fb24,{'content':_0x2eb4df[_0x51fb24],'classes':''}]),_0x37af0d),[]),_0x31567e);return _0x11a52f;}['_fixMediaEmbeds'](_0x5b8309,_0x197713){if(!_0x197713['plugins']['has']('MediaEmbedEditing'))return _0x5b8309;const _0x2e8ebf=_0x197713['plugins']['get']('MediaEmbedEditing');for(const [_0x433710,_0x1612df]of Object['entries'](_0x5b8309)){const _0x391ecb=document['createElement']('div');_0x391ecb['innerHTML']=_0x1612df,(_0x391ecb['querySelectorAll']('figure.media')['forEach'](_0x276536=>{const _0x59f524=_0x276536['querySelector']('oembed');if(_0x59f524){const _0x70259d=_0x59f524['getAttribute']('url');if(_0x70259d){const _0x535df5=_0x2e8ebf['registry']['getMediaViewElement'](new _0xab8b2c(_0x197713['editing']['view']['document']),_0x70259d,{'elementName':'','renderForEditingView':!0x0}),_0x51534b=document['createElement']('div');_0x51534b['classList']['add']('ck-media__wrapper'),_0x535df5['render'](_0x51534b,_0x197713['editing']['view']['domConverter']),_0x59f524['replaceWith'](_0x51534b);}}}),_0x5b8309[_0x433710]=_0x391ecb['innerHTML']);}return _0x5b8309;}['_sortRoots'](_0x3c4267){if(!function(_0x326325){return void 0x0!==_0x326325['getRootsAttributes'];}(_0x3c4267))return _0x3c4267['model']['document']['getRootNames']();const _0x43c3f3=[],_0x2784a0=new Map();for(const _0x3cb598 of _0x3c4267['model']['document']['getRootNames']()){const _0x1d7811=_0x3c4267['editing']['view']['getDomRoot'](_0x3cb598)['getClientRects']()['item'](0x0);_0x43c3f3['push'](_0x3cb598),_0x2784a0['set'](_0x3cb598,_0x1d7811);}return _0x43c3f3['sort']((_0x1ca61c,_0x5a6c79)=>{const _0x59f3c0=_0x2784a0['get'](_0x1ca61c),_0x70cb4a=_0x2784a0['get'](_0x5a6c79);return _0x59f3c0['y']-_0x70cb4a['y']||_0x59f3c0['x']-_0x70cb4a['x'];}),_0x43c3f3;}}class te extends _0x299b22{static get['requires'](){return[T,_0x25ec83];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x203e48){super(_0x203e48),_0x203e48['commands']['add']('previewFinalContent',new re(this['editor'])),_0x203e48['config']['define']('trackChanges.preview.renderFunction',(_0x4e4384,_0x2b0a36)=>{for(const _0x7393fc of _0x2b0a36)_0x4e4384['appendChild'](_0x7393fc);});}}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 _0x50c59c,Plugin as _0xb83fe9,PendingActions as _0x33cfe8}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3c865c,ObservableMixin as _0x2c2a41,uid as _0x429b71,priorities as _0xc373b8,insertToPriorityArray as _0x1c8d05,logWarning as _0x869b35,getEnvKeystrokeText as _0x2c2ad8,FocusTracker as _0x931833,KeystrokeHandler as _0x2da891,Collection as _0xf22989}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x443d20,IconCancel as _0x3e9a0b,IconTrackChanges as _0x5c6e1c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x45e750,View as _0x235f82,ViewCollection as _0x5b123c,FocusCycler as _0x8227d0,ViewModel as _0xae902f,createDropdown as _0x42927a,SplitButtonView as _0x3ff2e8,addListToDropdown as _0x78a0e5,MenuBarMenuView as _0x27f4ab,MenuBarMenuListView as _0x3b26fc,ListSeparatorView as _0x1b40d6,MenuBarMenuListItemView as _0x520bfb,MenuBarMenuListItemButtonView as _0x49537e,BodyCollection as _0x144193,Dialog as _0xc75f43}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x54b124,hashObject as _0x2eecaa,surroundingMarkersDetector as _0x120bfa,FOCUS_ANNOTATION_KEYSTROKE as _0x2f905b,AriaDescriptionView as _0x2241c1,setupThreadKeyboardNavigation as _0x36ab3b,trimHtml as ti,UserView as _0x1f93df,LateFocusButtonView as _0x5ef6fe,getDateTimeFormatter as _0x13658f,getAllMarkersDomElementsSorted as _0x394645,sanitizeEditorConfig as _0x1476a8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3d8b57,LiveRange as _0x315628,LivePosition as _0x3a34a4,DowncastWriter as _0x59b703}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x564d89,toWidget as _0x3dd96f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4de9cf,set as _0x379e77,isEqual as _0x52f535,unset as _0x3f5ed0,omit as Vt}from'es-toolkit/compat';import{Delete as _0x2c6eae,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3ecf59,ShiftEnter as _0x2e1aeb}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x50c59c{['_enabledCommands'];constructor(_0x2523b1,_0x384641){super(_0x2523b1),this['_enabledCommands']=_0x384641,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 _0x4c8562 of this['editor']['commands']['commands']())_0x4c8562['affectsData']&&!this['_enabledCommands']['has'](_0x4c8562)&&_0x4c8562['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x48cc12 of this['editor']['commands']['commands']())_0x48cc12['affectsData']&&!this['_enabledCommands']['has'](_0x48cc12)&&_0x48cc12['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x50c59c{['_suggestions'];constructor(_0x44f4d0,_0x216931){super(_0x44f4d0),this['_suggestions']=_0x216931,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x7ddd87){const _0x4c9820=this['_suggestions']['get'](_0x7ddd87);if(!_0x4c9820)throw new _0x3c865c('track-changes-accept-suggestion-not-found',this);const _0x300358=_0x4c9820['getRanges']();this['editor']['model']['canEditAt'](_0x300358)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4c9820);}}class R extends _0x50c59c{['_suggestions'];constructor(_0x21c0b1,_0x323a3a){super(_0x21c0b1),this['_suggestions']=_0x323a3a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b61b4){const _0x6a7b3d=this['_suggestions']['get'](_0x3b61b4);if(!_0x6a7b3d)throw new _0x3c865c('track-changes-discard-suggestion-not-found',this);const _0x2875a0=_0x6a7b3d['getRanges']();this['editor']['model']['canEditAt'](_0x2875a0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x6a7b3d);}}function ls(_0x5adc09,_0x202a3d){let _0x35403a='';return _0x35403a+=_0x5adc09['split']('*')['map']((_0x10f295,_0x3d66a5)=>_0x3d66a5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x10f295)+'</span>':nn(_0x10f295))['join'](''),_0x202a3d&&(_0x35403a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x202a3d['value']+'\x22\x20title=\x22'+_0x202a3d['title']+'\x22></span>'),_0x35403a;}function nn(_0x54584d){const _0x397fba=document['createElement']('span');return _0x397fba['innerText']=_0x54584d,_0x397fba['innerHTML'];}function ts(_0x2a8af2){return _0x2a8af2['sort']((_0x45ad66,_0x26a299)=>'deletion'==_0x45ad66['type']&&'deletion'!=_0x26a299['type']?-0x1:'deletion'!=_0x45ad66['type']&&'deletion'==_0x26a299['type']?0x1:0x0);}function Zt(_0x220f2d,_0x2a706d){let _0x2d2cc0,_0x211c5e=0x0;const _0x5b86db=[],_0x449bd=_0x2a706d['schema'];for(;_0x211c5e<_0x220f2d['length'];){const _0xbe8fb1=_0x220f2d[_0x211c5e],_0x3642cf=_0x220f2d[_0x211c5e+0x1];_0x2d2cc0||(_0x2d2cc0=_0x2a706d['createPositionBefore'](_0xbe8fb1)),on(_0x2a706d,_0xbe8fb1,_0x3642cf)||(_0x5b86db['push'](_0x2a706d['createRange'](_0x2d2cc0,_0x449bd['isObject'](_0xbe8fb1)?_0x2a706d['createPositionAfter'](_0xbe8fb1):_0x2a706d['createPositionAt'](_0xbe8fb1,'end'))),_0x2d2cc0=null),_0x211c5e++;}return _0x5b86db;}function on(_0x239687,_0x4590cd,_0x6ba68){if(!_0x6ba68)return!0x1;const _0x59a279=_0x239687['createPositionAfter'](_0x4590cd),_0x57346f=_0x239687['createPositionBefore'](_0x6ba68);return _0x59a279['isTouching'](_0x57346f);}function rs(_0x5487f3,_0x37d3cc,_0x4e14fe){for(;_0x4e14fe['length'];){const _0x2159f6=_0x4e14fe['splice'](0x0,0x64);_0x5487f3['change'](()=>{for(const _0x2b6553 of _0x2159f6)_0x2b6553['isInContent']&&_0x37d3cc['execute'](_0x2b6553['id']);});}}class x extends _0x50c59c{['_command'];['_suggestions'];constructor(_0x313b13,_0x169a77,_0x50b69e){super(_0x313b13),this['_command']=_0x169a77,this['_suggestions']=_0x50b69e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b4071=Array['from'](this['_suggestions']['values']())['some'](_0x4cbbd8=>_0x4cbbd8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3b4071;}['execute'](){const _0x8e1a94=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4e0438 of _0x8e1a94){const _0x6730fb=_0x4e0438['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6730fb))return;}rs(this['editor']['model'],this['_command'],_0x8e1a94);}}class E extends _0x50c59c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x412d82,_0x24f0a9,_0x2eb7c5){super(_0x412d82),this['_command']=_0x24f0a9,this['_suggestions']=_0x2eb7c5,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5b65eb=this['editor']['model']['document']['selection'],_0x5c1e0a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x8bee25,_0x4fc9ab){const _0x9fdf28=Array['from'](_0x8bee25['getRanges']()),_0x1b7a85=new Set();for(const _0x3e42e3 of _0x4fc9ab)if(_0x3e42e3['isInContent']){for(const _0x4de331 of _0x9fdf28)for(const _0x1dba67 of _0x3e42e3['getRanges']())(_0x4de331['isIntersecting'](_0x1dba67)||_0x8bee25['isCollapsed']&&!_0x3e42e3['isMultiRange']&&_0x3e42e3['next']&&_0x1dba67['end']['isTouching'](_0x4de331['start']))&&_0x1b7a85['add'](_0x3e42e3);}return _0x1b7a85;}(_0x5b65eb,_0x5c1e0a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xea325c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x212035 of _0xea325c){const _0x1b5ddc=_0x212035['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1b5ddc))return;}rs(this['editor']['model'],this['_command'],_0xea325c);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2c2a41(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x33f5b6,_0x2f47bb){super(),this['id']=_0x2f47bb['id'],this['type']=_0x2f47bb['type'],this['subType']=_0x2f47bb['subType']||null,this['author']=_0x2f47bb['author'],this['creator']=_0x2f47bb['creator']||_0x2f47bb['author'],this['isExternal']=Boolean(_0x2f47bb['attributes']&&_0x2f47bb['attributes']['@external']),this['data']=null,this['_model']=_0x33f5b6,this['_onAccept']=_0x2f47bb['onAccept'],this['_onDiscard']=_0x2f47bb['onDiscard'],this['_onAttributesChange']=_0x2f47bb['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2f47bb['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 _0x570836=this;for(;_0x570836['previous'];)_0x570836=_0x570836['previous'];return _0x570836;}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'](_0x1da1d9){this['_markerNames']['add'](_0x1da1d9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4a8511=>this['_model']['markers']['get'](_0x4a8511))['filter'](_0x149ba6=>_0x149ba6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x49361b=>{for(const _0x1a3117 of this['getMarkers']())_0x49361b['removeMarker'](_0x1a3117);}),this['_markerNames']['clear']();}['removeMarker'](_0x1858dd){this['_model']['change'](_0x9af011=>{_0x9af011['removeMarker'](_0x1858dd);}),this['_markerNames']['delete'](_0x1858dd);}['addRange'](_0x5958e1){const _0x579941='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x579941),this['_model']['change'](_0x55810f=>{_0x55810f['addMarker'](_0x579941,{'range':_0x5958e1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2db6f2){for(const _0x5839f9 of this['getRanges']())if(_0x5839f9['isIntersecting'](_0x2db6f2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x48890d=>_0x48890d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x523779,_0x52d445)=>[..._0x523779,..._0x52d445['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x311315=this['getRanges']();if(0x1!=_0x311315['length'])return null;const _0x12520d=_0x311315[0x0],_0x27b185=_0x12520d['start']['nodeAfter'],_0x206354=_0x12520d['end']['nodeBefore'];return _0x27b185 instanceof _0x3d8b57?_0x27b185!=_0x206354?null:_0x27b185: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 _0x50e62f=[];let _0x2b4bec=this['head'];for(;_0x2b4bec;)_0x50e62f['push'](_0x2b4bec),_0x2b4bec=_0x2b4bec['next'];return _0x50e62f;}['setAttribute'](_0x457d5a,_0x1e327c){const _0x5df0ab=_0x4de9cf(this['attributes']);_0x379e77(_0x5df0ab,_0x457d5a,_0x1e327c),_0x52f535(_0x5df0ab,this['attributes'])||(this['attributes']=_0x5df0ab,this['_onAttributesChange'](_0x5df0ab));}['removeAttribute'](_0x3fd5cd){const _0xfee753=_0x4de9cf(this['attributes']);_0x3f5ed0(_0xfee753,_0x3fd5cd),_0x52f535(_0xfee753,this['attributes'])||(this['attributes']=_0xfee753,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 _0x429b71()['substr'](0x1,0x5);}}function c(_0x5ecf8b,_0x5829f3,_0x23d094){const _0x3d2461=_0x5ecf8b['t'],t=_0x5ecf8b['t'];switch(_0x5829f3){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',_0x23d094);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x23d094);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x23d094);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x23d094);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x23d094);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',_0x23d094);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x23d094);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',_0x23d094);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x23d094);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x23d094);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x23d094);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x23d094);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x23d094);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x23d094);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x23d094);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x23d094);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x23d094);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x23d094);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x23d094);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x23d094);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x23d094);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x23d094);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x23d094);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x23d094);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'},_0x23d094);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x23d094);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x23d094);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x23d094);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x23d094);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x23d094);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'},_0x23d094);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x23d094);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x23d094);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x23d094);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x23d094);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'},_0x23d094);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x23d094);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'},_0x23d094);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'},_0x23d094);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x23d094);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'},_0x23d094);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x23d094);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'},_0x23d094);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x23d094);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x23d094);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'},_0x23d094);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x23d094);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 _0x3d2461({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x23d094);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3d2461({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x23d094);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x23d094);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'},_0x23d094);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'},_0x23d094);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'},_0x23d094);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5829f3;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x37fa97,_0x3f128f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x37fa97,this['_locale']=_0x3f128f;}['getDescriptions'](_0x594ec5){const _0xd18027=[],_0x292a75=new Set(),_0xd79eff=new Set();for(let _0x43af69=0x0;_0x43af69<_0x594ec5['length'];_0x43af69++){const _0x44acfa=_0x594ec5[_0x43af69];if(!_0x44acfa['isInContent'])continue;const _0x37dd2a=this['_handleCustomCallbackDescription'](_0x44acfa);if(_0x37dd2a){if(null!=_0x44acfa['subType']){if(_0x292a75['has'](_0x44acfa['subType']))continue;_0x292a75['add'](_0x44acfa['subType']);}_0xd18027['push'](_0x37dd2a);}else{if('attribute'!=_0x44acfa['type'])'insertion'!=_0x44acfa['type']&&'deletion'!=_0x44acfa['type']||this['_handleInsertRemoveSuggestionDescription'](_0xd18027,_0x44acfa,_0x594ec5[_0x43af69+0x1]);else{const _0x3163b0=_0x44acfa['data']['key'];if(_0xd79eff['has'](_0x3163b0))continue;_0xd79eff['add'](_0x44acfa['data']['key']),_0x3163b0==u?this['_handleRenameSuggestionDescription'](_0xd18027,_0x44acfa):this['_handleAttributeSuggestionDescription'](_0xd18027,_0x44acfa);}}}return this['_resolveDescriptionItems'](_0xd18027);}['registerDescriptionCallback'](_0x567897){this['_customCallbacks']['push'](_0x567897);}['registerElementLabel'](_0x2d6651,_0x59fadb,_0x443373=_0xc373b8['normal']){'function'==typeof _0x2d6651?_0x1c8d05(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2d6651,'label':_0x59fadb,'priority':_0x443373}):this['_itemLabels']['set'](_0x2d6651,_0x59fadb);}['registerAttributeLabel'](_0x2be6ab,_0x388d7c){this['_attributeLabels']['set'](_0x2be6ab,_0x388d7c);}['getItemLabel'](_0x3446ea,_0x35f1fe=0x1){let _0x126ab6;for(const _0x425234 of this['_itemLabelsCallbacks'])if(_0x425234['matchingCallback'](_0x3446ea)){_0x126ab6=_0x425234['label'];break;}return _0x126ab6||(_0x126ab6=this['_itemLabels']['get'](_0x3446ea['name'])),_0x126ab6?_0x126ab6(_0x35f1fe):0x1!==_0x35f1fe?_0x35f1fe+'\x20'+_0x3446ea['name']+'s':''+_0x3446ea['name'];}['_addDescriptionItems'](_0x185bdf,_0x1088ba){const _0x5af3c2=_0x1088ba['getFirstRange']()['getWalker'](),_0x1f125a='insertion'==_0x1088ba['type']?'add':'remove';for(const _0x89930d of _0x5af3c2){const _0x67fc2d=_0x89930d['item'],_0x2a3ab5=_0x185bdf[_0x185bdf['length']-0x1];if(_0x67fc2d['is']('$textProxy'))_0x2a3ab5&&_0x2a3ab5['type']['indexOf']('Container')>-0x1&&_0x185bdf['pop'](),_0x2a3ab5&&'text'==_0x2a3ab5['type']?_0x2a3ab5[_0x1f125a]+=_0x67fc2d['data']:_0x185bdf['push']({'type':'text','add':'add'==_0x1f125a?_0x67fc2d['data']:'','remove':'remove'==_0x1f125a?_0x67fc2d['data']:''});else{if(this['_schema']['isObject'](_0x67fc2d)){const _0x2a6bd7=_0x67fc2d;if(_0x2a3ab5&&_0x2a3ab5['type']['indexOf']('Container')>-0x1&&_0x185bdf['pop'](),'elementEnd'==_0x89930d['type'])continue;_0x2a3ab5&&_0x2a3ab5['type']==_0x1f125a+'Object'&&_0x2a3ab5['element']['name']==_0x2a6bd7['name']?_0x2a3ab5['quantity']++:_0x185bdf['push']({'type':_0x1f125a+'Object','element':_0x2a6bd7,'quantity':0x1}),_0x5af3c2['skip'](_0x8de3f8=>!('elementEnd'==_0x8de3f8['type']&&_0x8de3f8['item']==_0x67fc2d));}else{if(this['_schema']['checkChild'](_0x67fc2d,'$text')||_0x67fc2d['is']('element','softBreak')){const _0x4d9da1=_0x67fc2d;if('add'==_0x1f125a&&'elementStart'==_0x89930d['type']||'remove'==_0x1f125a&&'elementEnd'==_0x89930d['type'])continue;if(_0x2a3ab5&&-0x1==_0x2a3ab5['type']['indexOf']('Container')){'text'==_0x2a3ab5['type']&&(_0x2a3ab5[_0x1f125a]+='\x0a');continue;}let _0xb2bc0;if(_0xb2bc0='add'==_0x1f125a?_0x4d9da1['nextSibling']&&!this['_schema']['isObject'](_0x4d9da1['nextSibling'])?_0x4d9da1['nextSibling']:null:_0x4d9da1['previousSibling']&&!this['_schema']['isObject'](_0x4d9da1['previousSibling'])?_0x4d9da1['previousSibling']:null,_0x4d9da1['isEmpty']||_0xb2bc0&&_0xb2bc0['isEmpty']){const _0x367457=_0xb2bc0&&_0xb2bc0['isEmpty']?_0xb2bc0:_0x4d9da1;_0x2a3ab5&&_0x2a3ab5['type']==_0x1f125a+'EmptyContainer'&&_0x2a3ab5['element']['name']==_0x367457['name']?_0x2a3ab5['quantity']++:_0x185bdf['push']({'type':_0x1f125a+'EmptyContainer','element':_0x367457,'quantity':0x1});}else _0x185bdf['push']({'type':_0x1f125a+'Container','element':_0x4d9da1});}}}}}['_resolveDescriptionItems'](_0x42eab2){const _0x1a365f=this['_locale'],_0x51f90c=[],_0x21d5bd=[],_0x2fc83f=[];for(const _0x51f63f of _0x42eab2)switch(_0x51f63f['type']){case'text':if(_0x51f63f['add']=_0x51f63f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x51f63f['remove']=_0x51f63f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x51f63f['add']&&''!=_0x51f63f['remove']){_0x51f90c['push']({'type':'replace','content':c(_0x1a365f,'REPLACE_TEXT',['\x22'+_0x51f63f['remove']+'\x22','\x22'+_0x51f63f['add']+'\x22'])});continue;}if(null!=_0x51f63f['add']['match'](/^ +$/)){_0x51f90c['push']({'type':'insertion','content':c(_0x1a365f,'*Insert:*\x20%0',c(_0x1a365f,'ELEMENT_SPACE',_0x51f63f['add']['length']))});continue;}if(null!=_0x51f63f['remove']['match'](/^ +$/)){_0x51f90c['push']({'type':'deletion','content':c(_0x1a365f,'*Remove:*\x20%0',c(_0x1a365f,'ELEMENT_SPACE',_0x51f63f['remove']['length']))});continue;}if(''!=_0x51f63f['add']){_0x51f90c['push']({'type':'insertion','content':c(_0x1a365f,'*Insert:*\x20%0','\x22'+_0x51f63f['add']+'\x22')});continue;}_0x51f90c['push']({'type':'deletion','content':c(_0x1a365f,'*Remove:*\x20%0','\x22'+_0x51f63f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x51f90c['push']({'type':'insertion','content':c(_0x1a365f,'*Insert:*\x20%0',this['getItemLabel'](_0x51f63f['element'],_0x51f63f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x51f90c['push']({'type':'deletion','content':c(_0x1a365f,'*Remove:*\x20%0',this['getItemLabel'](_0x51f63f['element'],_0x51f63f['quantity']))});continue;case'addContainer':_0x51f90c['push']({'type':'insertion','content':c(_0x1a365f,'*Split:*\x20%0',this['getItemLabel'](_0x51f63f['element'],_0x51f63f['quantity']))});continue;case'removeContainer':_0x51f90c['push']({'type':'deletion','content':c(_0x1a365f,'*Merge:*\x20%0',this['getItemLabel'](_0x51f63f['element'],_0x51f63f['quantity']))});continue;case'addFormat':_0x21d5bd['push'](_0x51f63f['key']);continue;case'removeFormat':_0x2fc83f['push'](_0x51f63f['key']);continue;default:_0x51f90c['push'](_0x51f63f);}if(_0x21d5bd['length']){const _0x4e0a95=_0x21d5bd['map'](_0x15ca5b=>this['_attributeLabels']['has'](_0x15ca5b)?this['_attributeLabels']['get'](_0x15ca5b):_0x15ca5b)['join'](',\x20');_0x51f90c['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4e0a95)});}if(_0x2fc83f['length']){const _0x3e6927=_0x2fc83f['map'](_0x1e7d4f=>this['_attributeLabels']['has'](_0x1e7d4f)?this['_attributeLabels']['get'](_0x1e7d4f):_0x1e7d4f)['join'](',\x20');_0x51f90c['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3e6927)});}return _0x51f90c;}['_handleCustomCallbackDescription'](_0xb2fae0){for(const _0x30ca3d of this['_customCallbacks']){const _0xcaae3e=_0x30ca3d(_0xb2fae0);if(_0xcaae3e&&'type'in _0xcaae3e)return _0xcaae3e;}}['_handleAttributeSuggestionDescription'](_0x2dc679,_0x1d384c){const _0x5d4db0=_0x1d384c['data'],_0x259c3a=void 0x0===_0x5d4db0['newValue']?'removeFormat':'addFormat';_0x2dc679['push']({'type':_0x259c3a,'key':_0x5d4db0['key']});}['_handleRenameSuggestionDescription'](_0x1de5d3,_0xc3212b){_0x1de5d3['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xc3212b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x8deb7c,_0xc0695c,_0x267707){if(this['_addDescriptionItems'](_0x8deb7c,_0xc0695c),_0x267707&&_0x267707['getFirstRange']()&&!_0xc0695c['getFirstRange']()['end']['isEqual'](_0x267707['getFirstRange']()['start'])){const _0xbe00d7=_0x8deb7c[_0x8deb7c['length']-0x1],_0x40f4bb='insertion'==_0xc0695c['type']?'add':'remove';_0xbe00d7&&'text'==_0xbe00d7['type']&&(_0xbe00d7[_0x40f4bb]+='\x0a');}}}class U extends _0xb83fe9{['afterInit'](){const _0x76bac6=this['editor'],_0x1bc3ee=_0x76bac6['plugins']['get']('TrackChangesEditing');_0x76bac6['commands']['get']('showAIAssistant')&&_0x1bc3ee['enableCommand']('showAIAssistant');}}class V extends _0xb83fe9{['afterInit'](){const _0x479b62=this['editor'],_0x2b90aa=_0x479b62['locale'];if(!_0x479b62['plugins']['has']('AlignmentEditing'))return;const _0x1e6e2c=_0x479b62['plugins']['get']('TrackChangesEditing');_0x1e6e2c['enableDefaultAttributesIntegration']('alignment'),_0x1e6e2c['registerBlockAttribute']('alignment'),_0x1e6e2c['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x2b90aa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d6fb0=this['editor'],_0xffa180=_0x2d6fb0['locale'];_0x2d6fb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x499c40=>{if('formatBlock'!=_0x499c40['type'])return;const {data:_0x5b3d99}=_0x499c40;if(_0x5b3d99&&'alignment'==_0x5b3d99['commandName']){const _0x15deb7=_0x5b3d99['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xffa180,'*Format:*\x20%0',function(_0x17d647){switch(_0x17d647){case'left':return c(_0xffa180,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xffa180,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xffa180,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xffa180,'FORMAT_JUSTIFY_TEXT');}}(_0x15deb7))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0xb83fe9{['afterInit'](){const _0x4196e6=this['editor'],_0x421024=_0x4196e6['plugins']['get']('TrackChangesEditing'),_0x26b9b0=_0x4196e6['locale'];for(const _0xd45ca5 of Yt){if(!_0x4196e6['plugins']['has'](_0xd45ca5))continue;const _0x1f988a=_0xd45ca5['slice'](0x0,-0x7)['toLowerCase'](),_0x15f32e='FORMAT_'+_0x1f988a['toUpperCase']();_0x421024['enableDefaultAttributesIntegration'](_0x1f988a),_0x421024['registerInlineAttribute'](_0x1f988a),_0x421024['descriptionFactory']['registerAttributeLabel'](_0x1f988a,c(_0x26b9b0,_0x15f32e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c84ed=this['editor'],_0x836e75=_0x2c84ed['locale'],_0xe285f5=_0x2c84ed['plugins']['get']('TrackChangesEditing');function _0x3fd864(_0x385e1a,_0x36096c){_0xe285f5['descriptionFactory']['registerDescriptionCallback'](_0xf71b92=>{if('formatInline'!=_0xf71b92['type'])return;const {data:_0x3bae43}=_0xf71b92;return _0x3bae43&&_0x3bae43['commandName']===_0x385e1a?_0x3bae43['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x836e75,'*Format:*\x20%0',_0x36096c)}:{'type':'format','content':c(_0x836e75,'*Remove\x20format:*\x20%0',_0x36096c)}:void 0x0;});}_0x3fd864('bold',c(_0x836e75,'FORMAT_BOLD')),_0x3fd864('italic',c(_0x836e75,'FORMAT_ITALIC')),_0x3fd864('underline',c(_0x836e75,'FORMAT_UNDERLINE')),_0x3fd864('code',c(_0x836e75,'FORMAT_CODE')),_0x3fd864('strikethrough',c(_0x836e75,'FORMAT_STRIKETHROUGH')),_0x3fd864('subscript',c(_0x836e75,'FORMAT_SUBSCRIPT')),_0x3fd864('superscript',c(_0x836e75,'FORMAT_SUPERSCRIPT'));}}class G extends _0xb83fe9{['afterInit'](){const _0x23ec56=this['editor'],_0x14397f=_0x23ec56['locale'];if(!_0x23ec56['plugins']['has']('BlockQuoteEditing'))return;const _0x3a887f=_0x23ec56['plugins']['get']('TrackChangesEditing'),_0x23194d=this['editor']['commands']['get']('blockQuote');_0x3a887f['enableCommand']('blockQuote',(_0x429d6b,_0x4aa0cc={})=>{const _0x26ead4=this['editor']['model']['document']['selection'],_0x3f17d4=_0x4aa0cc&&void 0x0!==_0x4aa0cc['forceValue']?_0x4aa0cc['forceValue']:!_0x23194d['value'];let _0x35851c=[];if(_0x3f17d4){const _0x11da71=Array['from'](_0x26ead4['getSelectedBlocks']())['filter'](_0x52229b=>to(_0x52229b)||function(_0x564ffb,_0x8ee3a3){const _0xfa4cc2=_0x8ee3a3['checkChild'](_0x564ffb['parent'],'blockQuote'),_0x14a431=_0x8ee3a3['checkChild'](['$root','blockQuote'],_0x564ffb);return _0xfa4cc2&&_0x14a431;}(_0x52229b,this['editor']['model']['schema']));_0x35851c=Zt(_0x11da71,_0x23ec56['model']);}else{const _0x1ac105=Array['from'](_0x26ead4['getSelectedBlocks']())['filter'](_0x36e630=>to(_0x36e630));_0x35851c=Zt(_0x1ac105,_0x23ec56['model']);}_0x23ec56['model']['change'](()=>{for(const _0x1cf1c4 of _0x35851c)_0x3a887f['markBlockFormat'](_0x1cf1c4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f17d4}]});});}),_0x3a887f['descriptionFactory']['registerDescriptionCallback'](_0x3a0103=>{const {data:_0x3762b8}=_0x3a0103;if(_0x3762b8&&'blockQuote'==_0x3762b8['commandName']){const _0x440d51=c(_0x14397f,'ELEMENT_BLOCK_QUOTE');return _0x3762b8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x14397f,'*Set\x20format:*\x20%0',_0x440d51)}:{'type':'format','content':c(_0x14397f,'*Remove\x20format:*\x20%0',_0x440d51)};}});}}function to(_0x518934){return'blockQuote'==_0x518934['parent']['name'];}class L extends _0xb83fe9{['afterInit'](){const _0x23240f=this['editor'],_0x5ac7fc=_0x23240f['locale'],_0x1c0731=_0x23240f['plugins']['get']('TrackChangesEditing');_0x23240f['plugins']['has']('BookmarkEditing')&&(_0x1c0731['enableCommand']('insertBookmark'),_0x1c0731['enableDefaultAttributesIntegration']('updateBookmark'),_0x1c0731['registerBlockAttribute']('bookmarkId'),_0x1c0731['descriptionFactory']['registerDescriptionCallback'](_0x2ed57f=>{if('insertion'!=_0x2ed57f['type']&&'deletion'!=_0x2ed57f['type']&&'attribute'!=_0x2ed57f['type'])return;const _0x82faa2=_0x2ed57f['getContainedElement']();if(null==_0x82faa2)return;if(!_0x82faa2['is']('element','bookmark'))return;const _0x87b483=_0x82faa2['getAttribute']('bookmarkId');if('insertion'==_0x2ed57f['type'])return{'type':'insertion','content':c(_0x5ac7fc,'*Insert:*\x20%0','\x22'+_0x87b483+'\x22\x20'+c(_0x5ac7fc,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2ed57f['type'])return{'type':'deletion','content':c(_0x5ac7fc,'*Remove:*\x20%0','\x22'+_0x87b483+'\x22\x20'+c(_0x5ac7fc,'ELEMENT_BOOKMARK'))};const {data:_0x2fc099}=_0x2ed57f;if(!_0x2fc099||'bookmarkId'!=_0x2fc099['key'])return;return{'type':'format','content':c(_0x5ac7fc,'*Set\x20bookmark:*\x20%0','\x22'+_0x2fc099['newValue']+'\x22')};}));}}class J extends _0xb83fe9{['afterInit'](){const _0x4bd8e0=this['editor'];_0x4bd8e0['plugins']['has']('CaseChange')&&(_0x4bd8e0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4bd8e0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4bd8e0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xb83fe9{['afterInit'](){const _0x428d1f=this['editor'];_0x428d1f['commands']['get']('ckbox')&&_0x428d1f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0xb83fe9{['afterInit'](){const _0x150dba=this['editor'];if(!_0x150dba['plugins']['has']('CodeBlock'))return;const _0x553fce=_0x150dba['plugins']['get']('TrackChangesEditing'),_0x47db33=_0x150dba['locale'],_0x22a2b1=_0x150dba['config']['get']('codeBlock')['languages'],_0x126ea6=_0x150dba['commands']['get']('codeBlock');_0x553fce['enableCommand']('indentCodeBlock'),_0x553fce['enableCommand']('outdentCodeBlock'),_0x553fce['enableCommand']('codeBlock',(_0x4ca70b,_0xfc012a={})=>{const _0x21eabc=_0x150dba['model'],_0x26cc4d=_0x150dba['model']['document']['selection'],_0x339a23=_0xfc012a&&void 0x0!==_0xfc012a['forceValue']?_0xfc012a['forceValue']:!_0x126ea6['value'];let _0x4063fa;_0xfc012a['language']||(_0xfc012a['language']=_0x22a2b1[0x0]['language']),_0x4063fa=_0x339a23?Array['from'](_0x26cc4d['getSelectedBlocks']())['filter'](_0x32128b=>oo(_0x32128b)||function(_0x3336ed,_0xef9f1f){if(_0x3336ed['is']('rootElement')||_0xef9f1f['isLimit'](_0x3336ed))return!0x1;return _0xef9f1f['checkChild'](_0x3336ed['parent'],'codeBlock');}(_0x32128b,_0x21eabc['schema'])):Array['from'](_0x26cc4d['getSelectedBlocks']())['filter'](_0x78ea2d=>oo(_0x78ea2d));const _0x20b060=Zt(_0x4063fa,_0x21eabc);_0x21eabc['change'](()=>{for(const _0x812aaa of _0x20b060)_0x553fce['markBlockFormat'](_0x812aaa,{'commandName':'codeBlock','commandParams':[{..._0xfc012a,'forceValue':_0x339a23}],'formatGroupId':'blockName'});});}),(_0x553fce['descriptionFactory']['registerElementLabel']('codeBlock',_0x3ebeee=>c(_0x47db33,'ELEMENT_CODE_BLOCK',_0x3ebeee)),_0x553fce['descriptionFactory']['registerDescriptionCallback'](_0x5955bf=>{if('formatBlock'!=_0x5955bf['type'])return;const _0x24b445=_0x47db33['t'],{data:_0x1af59b}=_0x5955bf;if(!_0x1af59b||'codeBlock'!=_0x1af59b['commandName'])return;const _0x371fff=_0x1af59b['commandParams'][0x0]['language'],_0x33f45d=_0x24b445(_0x22a2b1['find'](_0x3fa436=>_0x3fa436['language']===_0x371fff)['label'])['toLowerCase']();return _0x1af59b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x47db33,'*Set\x20format:*\x20%0',c(_0x47db33,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x33f45d+')')}:{'type':'format','content':c(_0x47db33,'*Remove\x20format:*\x20%0',c(_0x47db33,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x685f94){return'codeBlock'==_0x685f94['name'];}class q extends _0xb83fe9{['afterInit'](){const _0x54573b=this['editor'];if(!_0x54573b['plugins']['has']('CommentsEditing'))return;_0x54573b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x16476e,_0x3edd0e,_0x5c9337){const _0x13b967=[];for(const _0x368e25 of _0x3edd0e['getItems']())_0x368e25['hasAttribute'](_0x16476e)&&_0x13b967['push'](_0x5c9337['createRangeOn'](_0x368e25));return _0x13b967;}function De(_0x6d8c1d,_0x7fffce,{showActiveMarker:_0x2faa77=!0x0}={}){const _0x25bc81=_0x6d8c1d['plugins']['get']('TrackChangesEditing');return(_0x132721,_0x238fb7,_0xb20de3)=>{if(!_0xb20de3['consumable']['test'](_0x238fb7['markerRange'],_0x132721['name']))return;const _0x48bc8c=_0x238fb7['markerRange']['getWalker'](),_0xce520=_0x238fb7['markerRange']['start'],_0x3d22f6=_0x6d8c1d['model']['schema'];let _0x2c3e49=null,_0x5d95fe=null,_0x4df73f=!0x1,_0x6724ac=!0x1;for(const _0x1520db of _0x48bc8c){const _0xf5288b=_0x1520db['item'];_0x4df73f=_0x4df73f||_0x3d22f6['isContent'](_0xf5288b);const _0x28ef54=_0xb20de3['mapper']['toViewElement'](_0xf5288b);if(_0x28ef54&&_0x28ef54['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1520db['type']&&(_0x3d22f6['isBlock'](_0xf5288b)&&!_0x3d22f6['isLimit'](_0xf5288b)&&(_0xf5288b['nextSibling']||_0xce520['isAtEnd']?_0x2c3e49&&_0x2c3e49['parent']==_0xf5288b||(_0x2c3e49=_0xf5288b,_0x346a14(_0x1520db['previousPosition']),_0x6724ac=!0x0):_0x5d95fe=_0x5d95fe||_0x1520db['previousPosition']));}function _0x346a14(_0x45e459){const {authorId:_0x48dda6}=_0x25bc81['_splitMarkerName'](_0x238fb7['markerName']),_0x9ec515=_0xb20de3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7fffce,'data-author-id':_0x48dda6}),_0x152fed=_0xb20de3['mapper']['toViewPosition'](_0x45e459);_0x2faa77&&_0x25bc81['activeMarkers']['includes'](_0x238fb7['markerName'])&&_0xb20de3['writer']['addClass']('ck-suggestion-marker--active',_0x9ec515),_0xb20de3['writer']['insert'](_0x152fed,_0x9ec515),_0xb20de3['mapper']['bindElementToMarker'](_0x9ec515,_0x238fb7['markerName']);}_0x4df73f||_0x6724ac||!_0x5d95fe||_0x346a14(_0x5d95fe);};}class z extends _0xb83fe9{static get['requires'](){return[_0x2c6eae];}['init'](){const _0x1c1030=this['editor'],_0x217a46=_0x1c1030['plugins']['get']('TrackChangesEditing');_0x217a46['enableCommand']('delete');const _0x35e45a=_0x1c1030['commands']['get']('deleteForward');_0x217a46['enableCommand']('deleteForward',(_0x15384c,_0x14e4d1={})=>{const _0x16fcca=_0x1c1030['model']['createSelection'](_0x1c1030['model']['document']['selection']);_0x16fcca['isCollapsed']&&_0x1c1030['model']['modifySelection'](_0x16fcca,{'direction':'forward','unit':_0x14e4d1['unit']});const _0x2359cb=_0x16fcca['getFirstRange'](),_0x41ebb4=_0x315628['fromRange'](_0x2359cb);let _0x55641b;_0x15384c(_0x14e4d1),_0x55641b='$graveyard'==_0x41ebb4['root']['rootName']?_0x1c1030['model']['createRange'](_0x2359cb['start']):_0x1c1030['model']['createRange'](_0x41ebb4['start'],_0x41ebb4['end']),_0x41ebb4['detach'](),_0x1c1030['model']['enqueueChange'](_0x35e45a['buffer']['batch'],_0x29641b=>{_0x35e45a['buffer']['lock'](),_0x29641b['setSelection'](_0x29641b['createRange'](_0x55641b['end'])),_0x35e45a['buffer']['unlock']();});}),_0x1c1030['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1c1030,'merge'),{'priority':'high'}),_0x1c1030['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x46183b,_0x4d295d,_0x38e28e)=>{_0x38e28e['options']['showSuggestionHighlights']&&De(_0x1c1030,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x46183b,_0x4d295d,_0x38e28e);},{'priority':'high'}),_0x1c1030['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x143929,_0x33419b,_0x255e97)=>{const _0x455827=_0x255e97['mapper']['markerNameToElements'](_0x33419b['markerName']);if(_0x455827){for(const _0x31ddc5 of _0x455827)_0x31ddc5['is']('uiElement')&&(_0x255e97['mapper']['unbindElementFromMarkerName'](_0x31ddc5,_0x33419b['markerName']),_0x255e97['writer']['remove'](_0x31ddc5));}},{'priority':'high'});}}class W extends _0xb83fe9{['afterInit'](){const _0x18acf0=this['editor'];if(!_0x18acf0['plugins']['has']('ListEditing'))return;const _0x363534=_0x18acf0['locale'],_0x128132=_0x18acf0['plugins']['get']('TrackChangesEditing'),_0x442e68=_0x18acf0['plugins']['has']('TodoListEditing'),_0xe6dc59=!!_0x18acf0['config']['get']('list.multiBlock');function _0x66c941(_0x572d0b){return{'type':'format','content':''+c(_0x363534,'*Set\x20format:*\x20%0',_0x572d0b)};}function _0x2459e4(_0x3a47ad){return{'type':'format','content':''+c(_0x363534,'*Remove\x20format:*\x20%0',_0x3a47ad)};}_0x128132['enableDefaultAttributesIntegration']('numberedList'),_0x128132['enableDefaultAttributesIntegration']('bulletedList'),_0x128132['enableDefaultAttributesIntegration']('customNumberedList'),_0x128132['enableDefaultAttributesIntegration']('customBulletedList'),_0x128132['enableDefaultAttributesIntegration']('indentList'),_0x128132['enableDefaultAttributesIntegration']('outdentList'),_0x128132['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x128132['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x128132['registerBlockAttribute']('listItemId'),_0x128132['registerBlockAttribute']('listType'),_0x128132['registerBlockAttribute']('listIndent'),_0xe6dc59&&(_0x128132['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x128132['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x442e68&&(_0x128132['enableDefaultAttributesIntegration']('todoList'),_0x128132['enableDefaultAttributesIntegration']('checkTodoList'),_0x128132['registerBlockAttribute']('todoListChecked'),_0x128132['descriptionFactory']['registerDescriptionCallback'](_0x214747=>{const {data:_0x448731}=_0x214747;if(_0x448731&&'todoListChecked'==_0x448731['key'])return{'type':'format','content':_0x448731['newValue']?c(_0x363534,'*Check\x20item*'):c(_0x363534,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x38611f=>{if(_0x38611f['batch']['isUndo'])return!0x1;let _0x1e1746=!0x1;const _0x4b06b4=_0x128132['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21f550=>'todoListChecked'===_0x128132['_getAttributeKey'](_0x21f550));for(const _0xaa31a0 of _0x4b06b4){'todo'!=_0xaa31a0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x128132['_findSuggestions'](_0xaa31a0['getFirstRange'](),'attribute')['find'](_0x1493ee=>'listType'===_0x128132['_getAttributeKey'](_0x1493ee['suggestion']))||(_0x38611f['removeMarker'](_0xaa31a0['getFirstMarker']()),_0x1e1746=!0x0));}return _0x1e1746;})),_0x128132['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x363534,'FORMAT_INDENT'));const _0x31b27e={'type':'format','content':''};_0x128132['descriptionFactory']['registerDescriptionCallback'](_0x3c600e=>{const {data:_0xc9727}=_0x3c600e;if(!_0xc9727||'listType'!=_0xc9727['key'])return;let _0x1a351b=_0x3c600e['head'];for(;_0x1a351b;){if(_0x1a351b['data']&&(('listStyle'==_0x1a351b['data']['key']||'listMarkerStyle'==_0x1a351b['data']['key'])&&(_0x1a351b['data']['newValue']&&'default'!=_0x1a351b['data']['newValue']||'default'!=_0x1a351b['data']['oldValue']&&!_0xc9727['newValue'])||!_0xe6dc59&&_0x1a351b['data']['key']==u))return _0x31b27e;_0x1a351b=_0x1a351b['next'];}if(null==_0xc9727['newValue'])switch(_0xc9727['oldValue']){case'bulleted':return _0x2459e4(c(_0x363534,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2459e4(c(_0x363534,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2459e4(c(_0x363534,'ELEMENT_TODO_LIST'));}switch(_0xc9727['newValue']){case'bulleted':return _0x66c941(c(_0x363534,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x66c941(c(_0x363534,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x66c941(c(_0x363534,'ELEMENT_TODO_LIST'));}}),_0x128132['descriptionFactory']['registerDescriptionCallback'](_0x23cb66=>{const {data:_0x52ad1d}=_0x23cb66;if(_0x52ad1d&&'listIndent'==_0x52ad1d['key'])return null==_0x52ad1d['newValue']||null==_0x52ad1d['oldValue']&&0x0==_0x52ad1d['newValue']?_0x31b27e:void 0x0;}),_0x128132['descriptionFactory']['registerDescriptionCallback'](_0x2f672f=>{if('attribute'!=_0x2f672f['type'])return;const {data:_0x5dec0a}=_0x2f672f;if(!_0x5dec0a||'listItemId'!=_0x5dec0a['key'])return;const _0x31520b=Te(_0x2f672f);return'newValue'==_0x31520b?{'type':'format','content':c(_0x363534,'*Merge:*\x20list\x20item')}:'oldValue'==_0x31520b?{'type':'format','content':c(_0x363534,'*Split:*\x20list\x20item')}:_0x31b27e;}),_0x18acf0['model']['document']['registerPostFixer'](_0x41fc8f=>this['listItemIdFixer'](_0x41fc8f)),_0x18acf0['model']['document']['registerPostFixer'](_0x4773a5=>this['noTrackChangesFixer'](_0x4773a5)),_0x18acf0['model']['document']['on']('change:data',(_0x17ee4c,_0x5dc816)=>{if(_0x5dc816['isUndo']||!_0x5dc816['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x240716){if(_0x240716['batch']['isUndo']||!_0x240716['batch']['isLocal'])return!0x1;let _0x1b8495=!0x1;const _0x4e7110=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x155480=>_0x155480['data']&&'listItemId'==_0x155480['data']['key'])['filter'](_0x31ccf4=>_0x31ccf4['data']['newValue']&&_0x31ccf4['data']['oldValue']);for(const _0x196eb5 of _0x4e7110)Te(_0x196eb5)||(_0x240716['removeMarker'](_0x196eb5['getFirstMarker']()),_0x1b8495=!0x0);return _0x1b8495;}['noTrackChangesFixer'](_0x12f20f){if(_0x12f20f['batch']['isUndo']||!_0x12f20f['batch']['isLocal'])return!0x1;const _0x38ff86=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x38ff86['trackChangesCommand']['value'])return!0x1;let _0x130c88=!0x1;const _0x46e652=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x10b819=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x25acc1=>'attribute'==_0x25acc1['type'])['filter'](_0x33b6e9=>_0x46e652['includes'](_0x33b6e9['attributeKey']));if(0x0==_0x10b819['length'])return _0x130c88;for(const _0x42a7cf of _0x10b819){const _0x172284=_0x38ff86['_findSuggestions'](_0x42a7cf['range'],'attribute')['filter'](_0x4f12ab=>!_0x4f12ab['meta']['isNextTo'])['map'](_0x4794e7=>_0x4794e7['suggestion'])['filter'](_0x19843b=>{const _0x202d06=_0x38ff86['_getAttributeKey'](_0x19843b);return _0x46e652['includes'](_0x202d06);});if(_0x172284['length']){for(const _0x2548ee of _0x172284)_0x12f20f['removeMarker'](_0x2548ee['getFirstMarker']());_0x130c88=!0x0;}}return _0x130c88;}['assureChains'](){const _0x4c073e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b49a1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x47122a;const _0x27b812=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b3aab=>{if(_0x3b3aab['data']['oldRange']||!_0x3b3aab['data']['newRange'])return null;if(!_0x3b3aab['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x530667}=_0x4c073e['_splitMarkerName'](_0x3b3aab['name']);if(!_0x4c073e['hasSuggestion'](_0x530667))return null;const _0x360b4f=_0x4c073e['getSuggestion'](_0x530667);return _0x4b49a1['includes'](_0x360b4f['data']['key']);})['map'](_0x2a69cf=>{const {id:_0x2b0a8f}=_0x4c073e['_splitMarkerName'](_0x2a69cf['name']),_0x13abb6=_0x4c073e['getSuggestion'](_0x2b0a8f);return _0x47122a=_0x13abb6['attributes']['groupId'],_0x13abb6['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x27b812['size'])return;const _0x803024=_0x4c073e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4eb32e=>'attribute'==_0x4eb32e['type']&&_0x4eb32e['data']&&_0x4b49a1['includes'](_0x4eb32e['data']['key'])&&_0x4eb32e['attributes']['groupId']!=_0x47122a)['map'](_0x2fdf9a=>({'listItem':_0x2fdf9a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2fdf9a['attributes']['groupId']})),_0x44774c=new Set();for(const {groupId:_0x3f2489,listItem:_0x529cb2}of _0x803024)_0x27b812['has'](_0x529cb2)&&_0x44774c['add'](_0x3f2489);for(const _0x6a054d of _0x4c073e['getSuggestions']())_0x44774c['has'](_0x6a054d['attributes']['groupId'])&&_0x6a054d['setAttribute']('groupId',_0x47122a);}['_supportLegacySuggestions'](){const _0x4a49e2=this['editor'],_0x502703=_0x4a49e2['locale'],_0x5a4f51=_0x4a49e2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5a4f51['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2c0109,_0x13c899){const _0x39854b=[];for(let _0x34814a of _0x2c0109)_0x34814a['start']['nodeAfter']===_0x34814a['end']['parent']&&(_0x34814a=_0x4a49e2['model']['createRange'](_0x4a49e2['model']['createPositionAt'](_0x34814a['start']['nodeAfter'],0x0))),_0x39854b['push'](_0x34814a);_0x4a49e2['model']['change'](_0x2886af=>{const _0x1fc614=_0x4a49e2['model']['document']['selection'],_0x5be14e=Array['from'](_0x1fc614['getRanges']())['map'](_0x37a96f=>_0x315628['fromRange'](_0x37a96f));_0x2886af['setSelection'](_0x39854b),_0x4a49e2['commands']['get'](_0x13c899['commandName'])['refresh'](),_0x13c899['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a49e2['execute'](_0x13c899['commandName'],..._0x13c899['commandParams']),_0x2886af['setSelection'](_0x5be14e);for(const _0x217b61 of _0x5be14e)_0x217b61['detach']();});}),_0x5a4f51['descriptionFactory']['registerElementLabel'](function(_0x329d75){const _0xf17662=!_0x4a49e2['model']['schema']['isObject'](_0x329d75),_0x3b0bee=_0x329d75['previousSibling'],_0x1b2aa8=_0x329d75['nextSibling'],_0x51c9df=_0x329d75['getAttribute']('listItemId'),_0x9076c2=!_0x3b0bee||_0x3b0bee['getAttribute']('listItemId')!==_0x51c9df,_0x3e32fd=!_0x1b2aa8||_0x1b2aa8['getAttribute']('listItemId')!==_0x51c9df;return _0xf17662&&Boolean(_0x51c9df)&&_0x9076c2&&_0x3e32fd;},_0x31f98a=>c(_0x502703,'ELEMENT_LIST_ITEM',_0x31f98a));}['_registerLegacyDescription'](){const _0x26355f=this['editor'],_0x24a865=_0x26355f['locale'];function _0x44e038(_0x3ff3a9){const _0x39fbd0=_0x26355f['commands']['get']('bulletedList')['value'],_0xc7e48a=_0x26355f['commands']['get']('numberedList')['value'];return'numberedList'===_0x3ff3a9?_0x39fbd0:_0xc7e48a;}_0x26355f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4b35e2){if('formatBlock'!=_0x4b35e2['type'])return;const {data:_0x1b0966}=_0x4b35e2;if(!_0x1b0966)return;let _0x42b0ed,_0x5b5ead,_0x474454,_0x32f1a7;switch(_0x1b0966['commandName']){case'bulletedList':_0x474454=_0x1b0966['commandParams'][0x0]['forceValue'],_0x32f1a7=_0x44e038(_0x1b0966['commandName']),_0x42b0ed=_0x474454?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32f1a7&&_0x26355f['config']['get']('list.multiBlock')||(_0x42b0ed='*Change\x20to:*\x20%0'),_0x5b5ead={'type':'format','content':c(_0x24a865,_0x42b0ed,c(_0x24a865,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x474454=_0x1b0966['commandParams'][0x0]['forceValue'],_0x32f1a7=_0x44e038(_0x1b0966['commandName']),_0x42b0ed=_0x474454?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32f1a7&&_0x26355f['config']['get']('list.multiBlock')||(_0x42b0ed='*Change\x20to:*\x20%0'),_0x5b5ead={'type':'format','content':c(_0x24a865,_0x42b0ed,c(_0x24a865,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x42b0ed='*Indent:*\x20%0',_0x5b5ead={'type':'format','content':c(_0x24a865,_0x42b0ed,c(_0x24a865,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x42b0ed=function(_0x36e13b){const _0x1dd697=_0x36e13b['getFirstRange']();let _0xf912e5=_0x1dd697['start']['nodeAfter'];for(;_0xf912e5&&_0x1dd697['containsItem'](_0xf912e5);){if(_0xf912e5['getAttribute']('listIndent')>0x0)return!0x1;_0xf912e5=_0xf912e5['nextSibling'];}return!0x0;}(_0x4b35e2)?c(_0x24a865,'*Format:*\x20remove\x20from\x20%0',c(_0x24a865,function(_0x203cb9){return'ELEMENT_'+_0x203cb9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4b35e2))):c(_0x24a865,'*Outdent:*\x20%0',c(_0x24a865,'ELEMENT_LIST_ITEM')),_0x5b5ead={'type':'format','content':_0x42b0ed};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1b0966['multipleBlocks']&&(_0x42b0ed='*Merge:*\x20%0',_0x5b5ead={'type':'deletion','content':c(_0x24a865,_0x42b0ed,c(_0x24a865,'ELEMENT_LIST_ITEM'))});}return _0x5b5ead;});}}function Te(_0x15db23){let _0x2ec1ec=_0x15db23['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2ec1ec;){const _0x283813=_0x2ec1ec['getAttribute']('listItemId');if(!_0x283813)return!0x1;if(_0x283813==_0x15db23['data']['newValue'])return'newValue';if(_0x283813==_0x15db23['data']['oldValue'])return'oldValue';_0x2ec1ec=_0x2ec1ec['previousSibling'];}return!0x1;}class Se extends _0xb83fe9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x65bc2=this['editor']['config']['get']('list.properties'),_0x8dfc34=this['editor']['plugins']['get']('TrackChangesEditing');_0x65bc2['styles']&&(_0x8dfc34['enableDefaultAttributesIntegration']('listStyle'),_0x8dfc34['registerBlockAttribute']('listStyle')),_0x65bc2['reversed']&&(_0x8dfc34['enableDefaultAttributesIntegration']('listReversed'),_0x8dfc34['registerBlockAttribute']('listReversed')),_0x65bc2['startIndex']&&(_0x8dfc34['enableDefaultAttributesIntegration']('listStart'),_0x8dfc34['registerBlockAttribute']('listStart'));const _0x5a4fe8={'type':'format','content':''};_0x8dfc34['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x9d429e=this['editor']['locale'];_0x8dfc34['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x9d429e,'FORMAT_LIST_REVERSED')),_0x8dfc34['descriptionFactory']['registerDescriptionCallback'](_0x347978=>{const {data:_0x443b92}=_0x347978;if(_0x443b92&&'listReversed'==_0x443b92['key'])return null==_0x443b92['newValue']||0x0==_0x443b92['newValue']&&null==_0x443b92['oldValue']?_0x5a4fe8:void 0x0;}),_0x8dfc34['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x9d429e,'FORMAT_LIST_START')),_0x8dfc34['descriptionFactory']['registerDescriptionCallback'](_0x2de4b=>{const {data:_0x6259ae}=_0x2de4b;if(_0x6259ae&&'listStart'==_0x6259ae['key'])return null==_0x6259ae['newValue']||0x1==_0x6259ae['newValue']&&null==_0x6259ae['oldValue']?_0x5a4fe8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x29c94d=>{if(_0x29c94d['batch']['isUndo'])return!0x1;let _0x4977a0=!0x1;const _0x37c23a=_0x8dfc34['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19e69f=>{const _0xa61c8d=_0x8dfc34['_getAttributeKey'](_0x19e69f);return'listStart'==_0xa61c8d||'listReversed'==_0xa61c8d;});for(const _0xe5eeb of _0x37c23a){const _0x5a4692=_0xe5eeb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5a4692||'customNumbered'==_0x5a4692)continue;_0x8dfc34['_findSuggestions'](_0xe5eeb['getFirstRange'](),'attribute')['find'](_0x466871=>'listType'==_0x8dfc34['_getAttributeKey'](_0x466871['suggestion']))||(_0x29c94d['removeMarker'](_0xe5eeb['getFirstMarker']()),_0x4977a0=!0x0);}return _0x4977a0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x30c1c8){const _0x201d98=this['editor']['locale'],{data:_0x3d89ff}=_0x30c1c8,_0x3d9577={'type':'format','content':''};if(!_0x3d89ff||'listStyle'!=_0x3d89ff['key'])return;if(!_0x3d89ff['oldValue'])return'default'==_0x3d89ff['newValue']?_0x3d9577:{'type':'format','content':''+c(_0x201d98,'*Set\x20format:*\x20%0',c(_0x201d98,this['_getTranslationKeyForListStyle'](_0x3d89ff['newValue'])))};if(!_0x3d89ff['newValue']){if('default'==_0x3d89ff['oldValue'])return _0x3d9577;let _0x516635=_0x30c1c8['head'];for(;_0x516635;){if(_0x516635['data']&&'listType'==_0x516635['data']['key']&&_0x516635['data']['newValue'])return _0x3d9577;_0x516635=_0x516635['next'];}return{'type':'format','content':''+c(_0x201d98,'*Remove\x20format:*\x20%0',c(_0x201d98,this['_getTranslationKeyForListStyle'](_0x3d89ff['oldValue'])))};}if('default'!=_0x3d89ff['newValue'])return{'type':'format','content':''+c(_0x201d98,'*Set\x20format:*\x20%0',c(_0x201d98,this['_getTranslationKeyForListStyle'](_0x3d89ff['newValue'])))};let _0x49f356=_0x30c1c8['head'];for(;_0x49f356;){if(_0x49f356['data']&&'listType'==_0x49f356['data']['key']&&_0x49f356['data']['newValue']&&_0x49f356['data']['oldValue'])return _0x3d9577;_0x49f356=_0x49f356['next'];}return{'type':'format','content':c(_0x201d98,'*Set\x20format:*\x20%0',c(_0x201d98,'ELEMENT_'+_0x30c1c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x193ae4=this['editor'],_0x10ffd0=_0x193ae4['locale'];_0x193ae4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa8a11=>{if('formatBlock'!=_0xa8a11['type'])return;const {data:_0x19326e}=_0xa8a11;if(!_0x19326e)return;let _0x43b38d,_0x3b45d9;switch(_0x19326e['commandName']){case'listStyle':_0x43b38d='*Change\x20to:*\x20%0',_0x3b45d9={'type':'format','content':c(_0x10ffd0,_0x43b38d,c(_0x10ffd0,this['_getTranslationKeyForListStyle'](_0x19326e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x43b38d=_0x19326e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3b45d9={'type':'format','content':c(_0x10ffd0,_0x43b38d)};break;case'listStart':_0x43b38d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3b45d9={'type':'format','content':c(_0x10ffd0,_0x43b38d,_0x19326e['commandParams'][0x0]['startIndex'])};}return _0x3b45d9;});}['_getTranslationKeyForListStyle'](_0x2c8304){return'ELEMENT_'+function(_0x1d8d43){if(_e['includes'](_0x1d8d43))return'bulleted';if(Re['includes'](_0x1d8d43))return'numbered';return null;}(_0x2c8304)['toUpperCase']()+'_LIST_'+_0x2c8304['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xb83fe9{['afterInit'](){const _0x33bc7e=this['editor'];_0x33bc7e['commands']['get']('emoji')&&_0x33bc7e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xb83fe9{static get['requires'](){return[_0x3ecf59];}['init'](){const _0x4b54e0=this['editor'],_0x4b60c9=_0x4b54e0['plugins']['get']('TrackChangesEditing'),_0x46856e=_0x4b54e0['commands']['get']('enter');_0x4b60c9['enableCommand']('enter',()=>{_0x4b54e0['model']['change'](_0x3570a8=>{const _0x4480ca=_0x4b54e0['model']['document']['selection'],_0x66be4b=_0x4480ca['getFirstPosition'](),_0x5eb676=_0x315628['fromRange'](_0x4480ca['getFirstRange']());if(_0x46856e['enterBlock'](_0x3570a8)){const _0x24fc88=_0x4b54e0['model']['createPositionAt'](_0x66be4b['parent']['nextSibling'],0x0),_0x3c0951=_0x3570a8['createRange'](_0x66be4b,_0x24fc88);_0x4b60c9['markInsertion'](_0x3c0951);}else _0x3570a8['setSelection'](_0x3570a8['createRange'](_0x5eb676['end']));_0x5eb676['detach'](),_0x46856e['fire']('afterExecute',{'writer':_0x3570a8});});}),_0x4b54e0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4b54e0,'split'),{'priority':'high'}),_0x4b54e0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x7c9777,_0x9fe70b,_0x49948a)=>{const _0x2a389c=_0x49948a['mapper']['markerNameToElements'](_0x9fe70b['markerName']);if(_0x2a389c){for(const _0x2b1275 of _0x2a389c)_0x2b1275['hasClass']('ck-suggestion-marker-split')&&(_0x49948a['mapper']['unbindElementFromMarkerName'](_0x2b1275,_0x9fe70b['markerName']),_0x49948a['writer']['remove'](_0x2b1275));}},{'priority':'high'}),_0x4b54e0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4d4b9b,_0x555f01,_0x212455)=>{_0x212455['options']['showSuggestionHighlights']&&De(_0x4b54e0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4d4b9b,_0x555f01,_0x212455);},{'priority':'high'});}}class Z extends _0xb83fe9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3c2d8a=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c2d8a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3c2d8a['enableCommand']('findNext'),_0x3c2d8a['enableCommand']('findPrevious'),_0x3c2d8a['enableCommand']('replace'),_0x3c2d8a['enableCommand']('replaceAll');}['handleFindCommand'](_0x24cee7,_0x1b7d16,_0x186999={}){const _0x4a0a04=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x24cee7(_0x1d4e01=>{let _0x18532e=('string'==typeof _0x1b7d16?_0x4a0a04['findByTextCallback'](_0x1b7d16,_0x186999):_0x1b7d16)(_0x1d4e01);Array['isArray'](_0x18532e)&&(_0x18532e={'results':_0x18532e,'searchText':'string'==typeof _0x1b7d16?_0x1b7d16:''});const _0x2c8504=_0x18532e['results']['filter'](_0x1e758c=>!0x1===this['_isInDeletionRange'](_0x1e758c,_0x1d4e01['item']));return{..._0x18532e,'results':_0x2c8504};},_0x186999);}['_isInDeletionRange'](_0x55ce17,_0x166b08){const _0x9f2cfe=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x166b08,_0x55ce17['start']),this['editor']['model']['createPositionAt'](_0x166b08,_0x55ce17['end']));for(const _0x41705c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9f2cfe['getIntersection'](_0x41705c['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0xb83fe9{['afterInit'](){const _0x564238=this['editor']['locale'],_0x53d9e7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2bcac5,commandName:_0x417b14}of eo)this['editor']['plugins']['has'](_0x2bcac5)&&(_0x53d9e7['enableDefaultAttributesIntegration'](_0x417b14),_0x53d9e7['registerInlineAttribute'](_0x417b14));_0x53d9e7['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x564238,'FORMAT_FONT_SIZE')),_0x53d9e7['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x564238,'FORMAT_FONT_FAMILY')),_0x53d9e7['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x564238,'FORMAT_FONT_COLOR')),_0x53d9e7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x564238,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3197a3=this['editor'],_0x2f9d31=_0x3197a3['locale'];_0x3197a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e5fdc=>{const _0x4532a5=_0x2f9d31['t'];if('formatInline'!=_0x1e5fdc['type'])return;const {data:_0x23316c}=_0x1e5fdc;if(null!=_0x23316c){if('fontSize'==_0x23316c['commandName']){const _0x556125=_0x23316c['commandParams'][0x0]['value'];if(_0x556125){const _0x3a8244=_0x4532a5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2274fe=>_0x2274fe['model']==_0x556125)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2f9d31,'*Set\x20font\x20size:*\x20%0',_0x3a8244)};}return{'type':'format','content':c(_0x2f9d31,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x23316c['commandName']){const _0xc763c4=_0x23316c['commandParams'][0x0]['value'];return _0xc763c4?{'type':'format','content':c(_0x2f9d31,'*Set\x20font\x20family:*\x20%0',_0xc763c4)}:{'type':'format','content':c(_0x2f9d31,'*Reset\x20font\x20family*')};}if('fontColor'==_0x23316c['commandName']){const _0x2e6f19=_0x23316c['commandParams'][0x0]['value'];if(_0x2e6f19){const _0x52f7f3=_0x45e750(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2f6835=>_0x2f6835['model']==_0x2e6f19);let _0x183502=_0x2e6f19,_0x2bc748='';return _0x52f7f3&&(_0x183502=_0x52f7f3['label'],_0x2bc748=_0x4532a5(_0x183502)['toLowerCase']()),{'type':'format','content':c(_0x2f9d31,'*Set\x20font\x20color:*\x20%0',_0x2bc748)['trim'](),'color':{'value':_0x2e6f19,'title':_0x2bc748||_0x183502}};}return{'type':'format','content':c(_0x2f9d31,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x23316c['commandName']){const _0x4cd77c=_0x23316c['commandParams'][0x0]['value'];if(_0x4cd77c){const _0x278b94=_0x45e750(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3d2565=>_0x3d2565['model']==_0x4cd77c);let _0x8d60d9=_0x4cd77c,_0x3b85f8='';return _0x278b94&&(_0x8d60d9=_0x278b94['label'],_0x3b85f8=_0x4532a5(_0x8d60d9)['toLowerCase']()),{'type':'format','content':c(_0x2f9d31,'*Set\x20font\x20background\x20color:*\x20%0',_0x3b85f8)['trim'](),'color':{'value':_0x4cd77c,'title':_0x3b85f8||_0x8d60d9}};}return{'type':'format','content':c(_0x2f9d31,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0xb83fe9{['afterInit'](){const _0x1d5a13=this['editor'],_0x511d11=_0x1d5a13['plugins']['get']('TrackChangesEditing'),_0x31f594=_0x1d5a13['commands']['get']('copyFormat'),_0x26e687=_0x1d5a13['commands']['get']('pasteFormat');_0x31f594&&_0x26e687&&(_0x511d11['enableDefaultAttributesIntegration']('pasteFormat'),_0x511d11['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x212660=this['editor'],_0x5a7d06=_0x212660['locale'];_0x212660['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20ec03=>{if('formatBlock'!=_0x20ec03['type']&&'formatInline'!=_0x20ec03['type'])return;const {data:_0xa0a28}=_0x20ec03;if(_0xa0a28&&'pasteFormat'===_0xa0a28['commandName']){const _0x1145c7=[],_0x5d9c26=_0xa0a28['commandParams'][0x0];for(const [_0x1bc843,_0x4e5a8f]of Object['entries'](_0x5d9c26))_0x1145c7['push'](ro(_0x212660,_0x1bc843,_0x4e5a8f));return _0x1145c7['length']?{'type':'format','content':c(_0x5a7d06,'*Set\x20format\x20to:*\x20%0',_0x1145c7['join'](',\x20'))}:{'type':'format','content':c(_0x5a7d06,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x57af2d,_0x5dc98a,_0x57734a){const _0xe2ef77=_0x57af2d['locale']['t'],_0x48087f=_0x5dc98a['split'](/(?=[A-Z])/)['join']('\x20'),_0x30c811=_0xe2ef77(_0x48087f['charAt'](0x0)['toUpperCase']()+_0x48087f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x57734a)return _0x30c811;if('fontColor'===_0x5dc98a||'fontBackgroundColor'===_0x5dc98a){const _0x1ddae8=_0x45e750(_0x57af2d['config']['get']('fontColor.colors'))['find'](_0x3d4e16=>_0x3d4e16['model']==_0x57734a);return _0x30c811+'\x20('+(_0x1ddae8?_0xe2ef77(_0x1ddae8['label'])['toLowerCase']():_0x57734a)+')';}if('fontSize'===_0x5dc98a&&isNaN(parseFloat(_0x57734a))){const _0x2d45f5=_0x57af2d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x57af2d['config']['get']('fontSize.options'))['find'](_0x2878f3=>_0x2878f3['model']==_0x57734a);return _0x30c811+'\x20('+(_0x2d45f5?_0xe2ef77(_0x2d45f5['title'])['toLowerCase']():_0x57734a)+')';}return _0x30c811+'\x20('+_0x57734a+')';}class nt extends _0xb83fe9{['_headingOptions'];['afterInit'](){const _0x53e6c7=this['editor'];if(!_0x53e6c7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x53e6c7['config']['get']('heading.options');const _0x555e57=_0x53e6c7['locale'],_0x1a12e5=_0x53e6c7['plugins']['get']('TrackChangesEditing');_0x1a12e5['enableDefaultAttributesIntegration']('heading');for(const _0x2cdb39 of this['_headingOptions'])'paragraph'!=_0x2cdb39['model']&&_0x1a12e5['descriptionFactory']['registerElementLabel'](_0x2cdb39['model'],_0x1d70f9=>{const _0x224f48=this['_getHeadingLevel'](_0x2cdb39['model']);return null!==_0x224f48?_0x214da4(_0x1d70f9,_0x224f48):_0x14da60(_0x1d70f9,_0x2cdb39['title']);});function _0x214da4(_0x2b5835,_0x2ef050){return c(_0x555e57,'ELEMENT_HEADING',[_0x2b5835,_0x2ef050]);}function _0x14da60(_0xea2514,_0x1dd619){return c(_0x555e57,'ELEMENT_HEADING_CUSTOM',[_0xea2514,_0x1dd619]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a46c5=this['editor'],_0x4f9651=_0x1a46c5['locale'];function _0x47ea1d(_0x3cebfb,_0x5c8160){return c(_0x4f9651,'ELEMENT_HEADING_CUSTOM',[_0x3cebfb,_0x5c8160]);}_0x1a46c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2caf44=>{if('formatBlock'!=_0x2caf44['type'])return;const {data:_0x33e85d}=_0x2caf44;if(_0x33e85d&&'heading'==_0x33e85d['commandName']){const _0x1351cf=_0x33e85d['commandParams'][0x0]['value'],_0x44f897=this['_getHeadingLevel'](_0x1351cf);if(null!==_0x44f897)return{'type':'format','content':c(_0x4f9651,'*Change\x20to:*\x20%0',(_0x2b90dd=0x1,_0x1aa02e=_0x44f897,c(_0x4f9651,'ELEMENT_HEADING',[_0x2b90dd,_0x1aa02e])))};const _0x50e431=this['_headingOptions']['find'](_0x1444da=>_0x1444da['model']===_0x1351cf)['title'];return{'type':'format','content':c(_0x4f9651,'*Change\x20to:*\x20%0',_0x47ea1d(0x1,_0x50e431))};}var _0x2b90dd,_0x1aa02e;});}['_getHeadingLevel'](_0x1b8751){const _0x42e30a=_0x1b8751['match'](/^heading(\d+)/);if(_0x42e30a)return _0x42e30a[0x1];const _0x32d96b=this['_headingOptions']?.['find'](_0x1f3799=>_0x1f3799['model']==_0x1b8751);if(_0x32d96b&&_0x32d96b['view']){const _0x2734ab=_0x32d96b['view'],_0xf12481=(_0x2734ab['name']??_0x2734ab)['match'](/^h(\d+)/);if(_0xf12481)return _0xf12481[0x1];}return null;}}class it extends _0xb83fe9{['afterInit'](){const _0x3008d5=this['editor'];if(!_0x3008d5['plugins']['has']('HighlightEditing'))return;const _0x2f690f=_0x3008d5['plugins']['get']('TrackChangesEditing'),_0x1e301c=_0x3008d5['locale'];_0x2f690f['enableDefaultAttributesIntegration']('highlight'),_0x2f690f['registerInlineAttribute']('highlight'),_0x2f690f['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1e301c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58f12a=this['editor'],_0x2589bd=_0x58f12a['locale'];_0x58f12a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x480b09=>{if('formatInline'!=_0x480b09['type'])return;const {data:_0x27704d}=_0x480b09;if(_0x27704d&&'highlight'==_0x27704d['commandName']){const _0x451477=_0x2589bd['t'],_0x112906=_0x27704d['commandParams'][0x0]['value'];if(_0x112906){const _0x86a78a=_0x58f12a['config']['get']('highlight.options')['find'](_0x1827ba=>_0x1827ba['model']==_0x112906),_0x2f9fd2=_0x451477(_0x86a78a['title'])['toLowerCase']();return{'type':'format','content':c(_0x2589bd,'*Set\x20highlight:*\x20%0',_0x2f9fd2),'color':{'value':_0x86a78a['color'],'title':_0x86a78a['title']}};}return{'type':'format','content':c(_0x2589bd,'*Remove\x20highlight*',c(_0x2589bd,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xb83fe9{['afterInit'](){const _0x47f7fc=this['editor'];if(!_0x47f7fc['plugins']['has']('HorizontalLineEditing'))return;_0x47f7fc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5a5c85=_0x47f7fc['plugins']['get']('TrackChangesEditing'),_0x214b8a=_0x47f7fc['locale'];_0x5a5c85['descriptionFactory']['registerElementLabel']('horizontalLine',_0x542298=>c(_0x214b8a,'ELEMENT_HORIZONTAL_LINE',_0x542298)),_0x47f7fc['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x57cf10,{writer:_0xa53b47,options:_0x431e85})=>{if(!_0x431e85['showSuggestionHighlights'])return null;const _0x5a9fcf=_0xa53b47['createContainerElement']('div'),_0x267e62=_0xa53b47['createEmptyElement']('hr');return _0xa53b47['addClass']('ck-horizontal-line',_0x5a9fcf),_0xa53b47['insert'](_0xa53b47['createPositionAt'](_0x5a9fcf,0x0),_0x267e62),_0x5a9fcf;},'converterPriority':'high'});}}class ot extends _0xb83fe9{['afterInit'](){const _0x55cc3=this['editor'];if(!_0x55cc3['plugins']['has']('HtmlEmbed'))return;const _0x4c9cbb=_0x55cc3['plugins']['get']('TrackChangesEditing'),_0x1161fb=_0x55cc3['locale'];_0x4c9cbb['descriptionFactory']['registerElementLabel']('rawHtml',_0x5892fa=>c(_0x1161fb,'ELEMENT_HTML_EMBED',_0x5892fa)),_0x4c9cbb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4c9cbb['registerBlockAttribute']('value'),_0x4c9cbb['descriptionFactory']['registerDescriptionCallback'](_0xbcd411=>{if('attribute'!=_0xbcd411['type'])return;const {data:_0x4e5bd8}=_0xbcd411;if(_0x4e5bd8&&'value'==_0x4e5bd8['key']&&_0xbcd411['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xd9c72b=c(_0x1161fb,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1161fb,'*Change\x20%0\x20content*',_0xd9c72b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2060ed=this['editor'],_0x141db3=_0x2060ed['locale'];_0x2060ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb751=>{if('formatBlock'!=_0x2eb751['type'])return;const {data:_0x3c469c}=_0x2eb751;if(_0x3c469c&&'htmlEmbed'==_0x3c469c['commandName']){const _0x7162c4=c(_0x141db3,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x141db3,'*Change\x20%0\x20content*',_0x7162c4)};}});}}class rt extends _0xb83fe9{['afterInit'](){const _0x57cc9=this['editor'];if(!_0x57cc9['plugins']['has']('ImageEditing'))return;const _0x62b8aa=_0x57cc9['plugins']['get']('TrackChangesEditing'),_0x3da295=_0x57cc9['plugins']['get']('ImageUtils'),_0x257ad2=_0x57cc9['locale'];_0x62b8aa['enableCommand']('insertImage'),_0x62b8aa['descriptionFactory']['registerElementLabel']('imageBlock',_0x4d4e9f=>c(_0x257ad2,'ELEMENT_IMAGE',_0x4d4e9f)),_0x62b8aa['descriptionFactory']['registerElementLabel']('imageInline',_0x10f24e=>c(_0x257ad2,'ELEMENT_INLINE_IMAGE',_0x10f24e)),_0x62b8aa['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x257ad2,'ELEMENT_CAPTION')),_0x57cc9['plugins']['has']('ImageUploadEditing')&&_0x62b8aa['enableCommand']('uploadImage'),_0x57cc9['plugins']['has']('ImageBlockEditing')&&_0x57cc9['plugins']['has']('ImageInlineEditing')&&(_0x62b8aa['enableCommand']('imageTypeInline',(_0x2bbb0f,_0x12dded)=>{const _0x3003f2=_0x3da295['getClosestSelectedImageElement'](_0x57cc9['model']['document']['selection']);_0x57cc9['model']['change'](()=>{_0x62b8aa['markBlockFormat'](_0x3003f2,{'commandName':'imageTypeInline','commandParams':[_0x12dded]},[],'convertBlockImageToInline');});}),_0x62b8aa['enableCommand']('imageTypeBlock',(_0x46fbe0,_0x9978b5)=>{_0x57cc9['model']['change'](_0x37979f=>{let _0x5c9359=_0x3da295['getClosestSelectedImageElement'](_0x57cc9['model']['document']['selection']),_0x3d7e0c=_0x37979f['createRangeOn'](_0x5c9359);const _0x389eb0=_0x3a34a4['fromPosition'](_0x3d7e0c['start'],'toPrevious'),_0x5f02fb=_0x3a34a4['fromPosition'](_0x3d7e0c['end'],'toNext');_0x62b8aa['forceDefaultExecution'](()=>_0x46fbe0(_0x9978b5)),_0x5c9359=_0x3da295['getClosestSelectedImageElement'](_0x57cc9['model']['document']['selection']),_0x3d7e0c=_0x37979f['createRangeOn'](_0x5c9359);const _0xbcf7a=_0x37979f['createRange'](_0x389eb0,_0x5f02fb);_0x389eb0['detach'](),_0x5f02fb['detach'](),_0x62b8aa['markBlockFormat'](_0x5c9359,{'commandName':'imageTypeInline','commandParams':[_0x9978b5]},[],'convertInlineImageToBlock'),_0xbcf7a['start']['isBefore'](_0x3d7e0c['start'])&&_0x62b8aa['markInsertion'](_0x37979f['createRange'](_0xbcf7a['start'],_0x3d7e0c['start']),'convertInlineImageToBlock'),_0x3d7e0c['end']['isBefore'](_0xbcf7a['end'])&&_0x62b8aa['markInsertion'](_0x37979f['createRange'](_0x3d7e0c['end'],_0xbcf7a['end']),'convertInlineImageToBlock');});}),_0x62b8aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x62b8aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x62b8aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x62b8aa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x62b8aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x62b8aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3e1009])=>{const _0x228d31=_0x62b8aa['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x10119e=_0x3e1009['start'],_0x29d440=_0x3e1009['end'];const _0x3615ce=_0x57cc9['model']['schema']['getNearestSelectionRange'](_0x10119e,'backward'),_0x4c0d8d=_0x57cc9['model']['schema']['getNearestSelectionRange'](_0x29d440,'forward');_0x3615ce['isCollapsed']&&(_0x10119e=_0x3615ce['start']),_0x4c0d8d['isCollapsed']&&(_0x29d440=_0x4c0d8d['end']),_0x228d31([_0x57cc9['model']['createRange'](_0x10119e,_0x29d440)]);}),_0x62b8aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x23bd1a),_0x62b8aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x23bd1a)),_0x57cc9['plugins']['has']('ImageCaptionEditing')&&(_0x62b8aa['enableCommand']('toggleImageCaption',(_0x5b0745,_0x950e44)=>{const _0x28940e=_0x57cc9['plugins']['get']('ImageCaptionUtils');let _0x34e376=_0x3da295['getClosestSelectedImageElement'](_0x57cc9['model']['document']['selection']),_0x5979ec=_0x28940e['getCaptionFromImageModelElement'](_0x34e376);_0x57cc9['model']['change'](()=>{if(_0x5979ec)return void _0x62b8aa['markDeletion'](_0x57cc9['model']['createRangeOn'](_0x5979ec));const _0x43335a=_0x3da295['isBlockImage'](_0x34e376);_0x5b0745(_0x950e44),_0x34e376=_0x3da295['getClosestSelectedImageElement'](_0x57cc9['model']['document']['selection']),_0x5979ec=_0x28940e['getCaptionFromImageModelElement'](_0x34e376),_0x62b8aa['markInsertion'](_0x57cc9['model']['createRangeOn'](_0x5979ec),_0x43335a?null:'imageCaption');});}),_0x62b8aa['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x23bd1a));const _0x368d5a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x127e05(_0x582c9e,_0x55bc6){const _0x43c921=_0x368d5a['findIndex'](({type:_0x12aa19,subType:_0x10ca73})=>_0x582c9e['type']==_0x12aa19&&_0x582c9e['subType']==_0x10ca73),_0x10558d=_0x368d5a['findIndex'](({type:_0x3f6ade,subType:_0x7b2725})=>_0x55bc6['type']==_0x3f6ade&&_0x55bc6['subType']==_0x7b2725);if(_0x43c921<0x0||_0x10558d<0x0)return!0x1;const _0x56b45f=_0x582c9e['getFirstRange'](),_0x2cfe14=_0x55bc6['getFirstRange']();if((0x0==_0x43c921||0x1==_0x43c921)&&0x2==_0x10558d&&_0x56b45f['isIntersecting'](_0x2cfe14))return!0x0;if(0x2==_0x43c921&&0x3==_0x10558d){const _0x5e4dde=_0x62b8aa['_findSuggestions'](_0x56b45f,'insertion')['filter'](({suggestion:_0x305592,meta:_0x3a6c72})=>_0x3a6c72['isOwn']&&'convertInlineImageToBlock'==_0x305592['subType']);if(_0x5e4dde['length']>0x1&&_0x2cfe14['end']['isEqual'](_0x56b45f['start']))return!0x0;if(0x1==_0x5e4dde['length']&&(_0x56b45f['start']['isEqual'](_0x2cfe14['end'])||_0x56b45f['end']['isEqual'](_0x2cfe14['start'])))return!0x0;}if(0x3==_0x43c921&&0x3==_0x10558d&&_0x56b45f['start']['isBefore'](_0x2cfe14['start'])){const _0x1b5f97=_0x56b45f['end']['nodeAfter'],_0x4f4a0e=_0x2cfe14['start']['nodeBefore'];return _0x3da295['isBlockImage'](_0x1b5f97)&&_0x1b5f97===_0x4f4a0e;}return!0x1;}function _0x23bd1a(_0x27846c,_0x45a1de){return _0x127e05(_0x27846c,_0x45a1de)?[_0x27846c,_0x45a1de]:_0x127e05(_0x45a1de,_0x27846c)?[_0x45a1de,_0x27846c]:null;}_0x57cc9['plugins']['has']('ImageResize')&&(_0x62b8aa['enableDefaultAttributesIntegration']('resizeImage'),_0x62b8aa['registerBlockAttribute']('resizedWidth'),_0x62b8aa['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x257ad2,'FORMAT_IMAGE_SIZE'))),_0x57cc9['plugins']['has']('ImageTextAlternativeEditing')&&(_0x62b8aa['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x62b8aa['registerBlockAttribute']('alt')),_0x57cc9['plugins']['has']('PictureEditing')&&(_0x62b8aa['registerBlockAttribute']('sources'),_0x62b8aa['descriptionFactory']['registerDescriptionCallback'](_0xe74544=>{if('attribute'!=_0xe74544['type'])return;const {data:_0x4691b9}=_0xe74544;return _0x4691b9&&'sources'==_0x4691b9['key']?{'type':'format','content':''}:void 0x0;})),_0x57cc9['plugins']['has']('ImageSizeAttributes')&&(_0x62b8aa['registerBlockAttribute']('width'),_0x62b8aa['registerBlockAttribute']('height'),_0x62b8aa['descriptionFactory']['registerDescriptionCallback'](_0x5e7a9d=>{if('attribute'!=_0x5e7a9d['type'])return;const {data:_0x1478fb}=_0x5e7a9d;return!_0x1478fb||'width'!=_0x1478fb['key']&&'height'!=_0x1478fb['key']?void 0x0:{'type':'format','content':''};})),_0x62b8aa['descriptionFactory']['registerDescriptionCallback'](_0x3c43ac=>{if(!!_0x368d5a['find'](({type:_0x3fafdc,subType:_0x15ad19})=>_0x3c43ac['type']==_0x3fafdc&&_0x3c43ac['subType']==_0x15ad19))return _0x3c43ac['previous']?{}:void 0x0;}),_0x62b8aa['descriptionFactory']['registerDescriptionCallback'](_0x13320d=>{if('insertion'==_0x13320d['type']||'deletion'==_0x13320d['type']){const _0x2c8fd4=_0x13320d['getContainedElement']();if(_0x2c8fd4&&_0x2c8fd4['is']('element','caption'))return{'type':'insertion'==_0x13320d['type']?'addObject':'removeObject','element':_0x2c8fd4,'quantity':0x1};}}),_0x62b8aa['descriptionFactory']['registerDescriptionCallback'](_0x3988d9=>'formatBlock'==_0x3988d9['type']&&'convertInlineImageToBlock'==_0x3988d9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3988d9['type']&&'convertBlockImageToInline'==_0x3988d9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x62b8aa['descriptionFactory']['registerDescriptionCallback'](_0x37366b=>{if('attribute'!=_0x37366b['type'])return;const {data:_0x2d25e6}=_0x37366b;if(!_0x2d25e6||'alt'!=_0x2d25e6['key'])return;const _0x43fbe2=_0x2d25e6['newValue'];return _0x43fbe2?{'type':'format','content':c(_0x257ad2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43fbe2+'\x22')}:{'type':'format','content':c(_0x257ad2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27db8d=this['editor'],_0x49a4df=_0x27db8d['locale'];_0x27db8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x138da8=>{if('formatBlock'!=_0x138da8['type']&&'formatInline'!=_0x138da8['type'])return;const {data:_0xc038c9}=_0x138da8;if(_0xc038c9){if('imageTextAlternative'==_0xc038c9['commandName']){const _0x39af4f=_0xc038c9['commandParams'][0x0]['newValue'];return _0x39af4f?{'type':'format','content':c(_0x49a4df,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39af4f+'\x22')}:{'type':'format','content':c(_0x49a4df,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xc038c9['commandName']){const _0x163012=_0xc038c9['commandParams'][0x0]['width'];return _0x163012?{'type':'format','content':c(_0x49a4df,'*Set\x20image\x20width:*\x20%0',_0x163012)}:{'type':'format','content':c(_0x49a4df,'*Reset\x20image\x20width*')};}}});}}class at extends _0xb83fe9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2bd6d9=this['editor']['locale'],_0x1e3f22=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e3f22['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1e3f22['registerBlockAttribute']('src'),_0x1e3f22['descriptionFactory']['registerDescriptionCallback'](_0x1f5be5=>{if('attribute'!=_0x1f5be5['type'])return;const {data:_0x2f357c}=_0x1f5be5;return _0x2f357c&&'src'==_0x2f357c['key']?_0x2f357c['newValue']&&_0x2f357c['oldValue']?{'type':'format','content':c(_0x2bd6d9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c27cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c27cf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c27cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c27cf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c27cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18d728=this['editor'],_0x2af1f6=_0x18d728['locale'];_0x18d728['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49930d=>{if('formatBlock'!=_0x49930d['type']&&'formatInline'!=_0x49930d['type'])return;const {data:_0x1f9541}=_0x49930d;if(!_0x1f9541||'replaceImageSource'!=_0x1f9541['commandName'])return;return{'type':'format','content':c(_0x2af1f6,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xb83fe9{['afterInit'](){const _0x825914=this['editor'];if(!_0x825914['plugins']['has']('ImageStyleEditing'))return;const _0x273b24=_0x825914['plugins']['get']('TrackChangesEditing'),_0x550fff=_0x825914['plugins']['get']('ImageUtils'),_0x37dd4b={};_0x273b24['enableCommand']('imageStyle',(_0x4732bd,_0x576f6b)=>{const _0x570b89=_0x825914['plugins']['get']('Users')['me'],_0x3c5597=_0x825914['commands']['get']('imageStyle');let _0x45491f=_0x550fff['getClosestSelectedImageElement'](_0x825914['model']['document']['selection']),_0x3e823a=_0x825914['model']['createRangeOn'](_0x45491f),_0x1001eb=_0x3c5597['value'];if(_0x1001eb==_0x576f6b['value'])return;const _0x3267b9={'commandName':'imageStyle','commandParams':[_0x576f6b],'formatGroupId':_0x429b71()};_0x825914['model']['change'](()=>{if(_0x273b24['getSuggestions']()['filter'](_0x3854e1=>_0x3854e1['isInContent']&&_0x570b89==_0x3854e1['author']&&('formatBlock'==_0x3854e1['type']||'formatInline'==_0x3854e1['type'])&&('imageStylePreApply'==_0x3854e1['subType']||'imageStylePostApply'==_0x3854e1['subType'])&&_0x3854e1['getFirstRange']()['isEqual'](_0x3e823a))['forEach'](_0x381975=>_0x273b24['discardSuggestion'](_0x381975['head'])),_0x45491f=_0x550fff['getClosestSelectedImageElement'](_0x825914['model']['document']['selection']),_0x3e823a=_0x825914['model']['createRangeOn'](_0x45491f),_0x3c5597['refresh'](),_0x825914['commands']['get']('imageTypeInline')['refresh'](),_0x825914['commands']['get']('imageTypeBlock')['refresh'](),_0x1001eb=_0x3c5597['value'],_0x1001eb!=_0x576f6b['value'])return _0x550fff['isInlineImage'](_0x45491f)&&_0x3c5597['shouldConvertImageType'](_0x576f6b['value'],_0x45491f)?(_0x4732bd({..._0x576f6b,'setImageSizes':!0x1}),_0x45491f=_0x550fff['getClosestSelectedImageElement'](_0x825914['model']['document']['selection']),void _0x273b24['markBlockFormat'](_0x45491f,{..._0x3267b9,'commandReversedParams':[{'value':_0x1001eb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x550fff['isBlockImage'](_0x45491f)?_0x273b24['markBlockFormat'](_0x45491f,_0x3267b9,[],'imageStylePostApply'):_0x273b24['markInlineFormat'](_0x3e823a,_0x3267b9,'imageStylePostApply'));});});for(const _0x4766f0 of _0x825914['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x37dd4b[_0x4766f0['name']]=_0x4766f0['title']['toLowerCase']();_0x273b24['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x273b24['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x273b24['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x273b24['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x17355c])=>{_0x550fff['setImageNaturalSizeAttributes'](_0x17355c['getContainedElement']());}),_0x273b24['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xe9b5ea,_0x14de7c)=>{_0x273b24['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xe9b5ea,{'commandName':_0x14de7c['commandName'],'commandParams':_0x14de7c['commandReversedParams']});}),_0x273b24['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5b0dbd,_0x3406fd){if(_0x42d83c(_0x5b0dbd,_0x3406fd))return[_0x5b0dbd,_0x3406fd];if(_0x42d83c(_0x3406fd,_0x5b0dbd))return[_0x3406fd,_0x5b0dbd];return null;});const _0x624dc5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x42d83c(_0x4a6341,_0x4f2d8f){const _0x27675d=_0x624dc5['findIndex'](({type:_0x390243,subType:_0x55ed17})=>_0x4a6341['type']==_0x390243&&_0x4a6341['subType']==_0x55ed17),_0x1a247d=_0x624dc5['findIndex'](({type:_0x3350da,subType:_0x2f828d})=>_0x4f2d8f['type']==_0x3350da&&_0x4f2d8f['subType']==_0x2f828d);if(_0x27675d<0x0||_0x1a247d<0x0)return!0x1;const _0x2d46e8=_0x4a6341['getFirstRange'](),_0x1a4c8c=_0x4f2d8f['getFirstRange']();if((0x0==_0x27675d||0x1==_0x27675d)&&0x2==_0x1a247d&&_0x2d46e8['isIntersecting'](_0x1a4c8c))return!0x0;if(0x2==_0x27675d&&0x3==_0x1a247d){const _0x1a5749=_0x273b24['_findSuggestions'](_0x2d46e8,'insertion')['filter'](({suggestion:_0x4c5d0d,meta:_0x521afa})=>_0x521afa['isOwn']&&'convertInlineImageToBlock'==_0x4c5d0d['subType']);if(_0x1a5749['length']>0x1&&_0x1a4c8c['end']['isEqual'](_0x2d46e8['start']))return!0x0;if(0x1==_0x1a5749['length']&&(_0x2d46e8['start']['isEqual'](_0x1a4c8c['end'])||_0x2d46e8['end']['isEqual'](_0x1a4c8c['start'])))return!0x0;}if(0x3==_0x27675d&&0x3==_0x1a247d&&_0x2d46e8['start']['isBefore'](_0x1a4c8c['start'])){const _0x5a28fb=_0x2d46e8['end']['nodeAfter'],_0x29d5bf=_0x1a4c8c['start']['nodeBefore'];return _0x550fff['isBlockImage'](_0x5a28fb)&&_0x5a28fb===_0x29d5bf;}return!0x1;}_0x825914['model']['document']['registerPostFixer'](()=>{let _0x22e322=!0x1;const _0x4931e8=Array['from'](_0x825914['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10f812,data:_0x30d1a4}of _0x4931e8){const {group:_0x6d464d,type:_0x62b4af,subType:_0x1886b3,id:_0x5ec6e1}=_0x273b24['_splitMarkerName'](_0x10f812);if('suggestion'==_0x6d464d&&_0x273b24['hasSuggestion'](_0x5ec6e1)){if('formatBlock'==_0x62b4af&&('imageStylePreApply'==_0x1886b3||'imageStylePostApply'==_0x1886b3)){const _0x416d91=_0x273b24['getSuggestion'](_0x5ec6e1);if(_0x30d1a4['newRange']){const _0x5b5002=_0x416d91['getFirstRange']()['getContainedElement']();if(_0x550fff['isBlockImage'](_0x5b5002))continue;_0x273b24['discardSuggestion'](_0x416d91),_0x22e322=!0x0;}}if('insertion'==_0x62b4af&&'imageCaption'==_0x1886b3&&!_0x30d1a4['newRange']){const _0x1aa26a=_0x273b24['getSuggestion'](_0x5ec6e1);_0x1aa26a['next']&&_0x1aa26a['next']['isInContent']&&(_0x273b24['discardSuggestion'](_0x1aa26a['next']),_0x22e322=!0x0);}}}return _0x22e322;}),this['_registerLegacyDescription'](_0x37dd4b);}['_registerLegacyDescription'](_0x26ef5c){const _0x124720=this['editor'],_0x183496=_0x124720['locale'];_0x124720['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c6f54=>{if('formatBlock'!=_0x3c6f54['type']&&'formatInline'!=_0x3c6f54['type'])return;const {data:_0x41c3ed}=_0x3c6f54;if(!_0x41c3ed||'imageStyle'!=_0x41c3ed['commandName'])return;const _0x2985af=_0x41c3ed['commandParams'][0x0]['value'];return _0x221a79('side'===_0x2985af?c(_0x183496,'FORMAT_SIDE_IMAGE'):_0x26ef5c[_0x2985af]||_0x2985af);function _0x221a79(_0x4c06a2){return{'type':'format','content':c(_0x183496,'*Format:*\x20%0',_0x4c06a2)};}});}}class ut extends _0xb83fe9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1fbd7d){super(_0x1fbd7d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2240e0=this['editor'],_0x2280f8=_0x2240e0['commands']['get']('importWord'),_0x55734a=_0x2240e0['commands']['get']('trackChanges');_0x2280f8&&(_0x2280f8['on']('execute',(_0x37eca3,[,_0x5949a4])=>{this['_trackChangesValueDuringImport']=_0x55734a['value'],_0x5949a4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2280f8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2280f8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x55734a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2240e0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xdec5ee,_0x37d864){const {suggestions:_0x6bc321}=_0x37d864,_0x218694=this['editor']['commands']['get']('trackChanges'),_0x275688=_0x218694['value'];this['_trackChangesValueDuringImport']!==_0x275688&&(_0x218694['execute'](),this['_trackChangesExecuted']=!0x0),_0x6bc321&&_0x6bc321['forEach'](({id:_0x1a1e9a,type:_0x454883,author:_0x5b378c,created_at:_0x329606})=>{const _0x53ff65={'id':_0x1a1e9a,'type':_0x454883,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b378c,'createdAt':_0x329606?new Date(_0x329606):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x53ff65);});}}class ft extends _0xb83fe9{['afterInit'](){const _0x52da91=this['editor'],_0x56e788=_0x52da91['plugins']['get']('TrackChangesEditing');if(_0x52da91['plugins']['has']('IndentEditing')&&(_0x56e788['enableCommand']('indent'),_0x56e788['enableCommand']('outdent')),_0x52da91['plugins']['has']('IndentBlock')){for(const _0x1a2fa2 of['indentBlock','outdentBlock'])_0x56e788['enableDefaultAttributesIntegration'](_0x1a2fa2);}const _0x315906=_0x52da91['locale'];_0x56e788['registerBlockAttribute']('blockIndent'),_0x56e788['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x315906,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x552d74=this['editor'],_0x10cf3d=_0x552d74['locale'],_0x539025=_0x552d74['plugins']['get']('TrackChangesEditing');_0x539025['descriptionFactory']['registerDescriptionCallback'](_0x248b02=>{if('formatBlock'!=_0x248b02['type'])return;const {data:_0x40f2d1}=_0x248b02;if(!_0x40f2d1)return;if('indentBlock'!=_0x40f2d1['commandName']&&'outdentBlock'!=_0x40f2d1['commandName'])return;const _0x437dda=_0x248b02['getItems']()[0x0],_0x17cb87=_0x539025['descriptionFactory']['getItemLabel'](_0x437dda);return'indentBlock'==_0x40f2d1['commandName']?{'type':'format','content':c(_0x10cf3d,'*Indent:*\x20%0',_0x17cb87)}:'outdentBlock'==_0x40f2d1['commandName']?{'type':'format','content':c(_0x10cf3d,'*Outdent:*\x20%0',_0x17cb87)}:void 0x0;});}}class ht extends _0xb83fe9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xb83fe9{['afterInit'](){const _0x1134b5=this['editor'];if(!_0x1134b5['plugins']['has']('LinkEditing'))return;const _0x1637b5=_0x1134b5['plugins']['get']('TrackChangesEditing'),_0x55434f=_0x1134b5['commands']['get']('link');_0x1637b5['enableDefaultAttributesIntegration']('link'),_0x1637b5['enableDefaultAttributesIntegration']('unlink'),_0x1637b5['registerInlineAttribute']('linkHref');for(const _0x2922b0 of _0x55434f['manualDecorators'])_0x1637b5['registerInlineAttribute'](_0x2922b0['id']),_0x1637b5['descriptionFactory']['registerAttributeLabel'](_0x2922b0['id'],'link\x20('+_0x2922b0['label']['toLowerCase']()+')');_0x1637b5['descriptionFactory']['registerDescriptionCallback'](_0x5227aa=>{if('attribute'!=_0x5227aa['type'])return;const {data:_0x5df3b8}=_0x5227aa;if(!_0x5df3b8||'linkHref'!=_0x5df3b8['key'])return;const _0x302795=_0x5df3b8['newValue'],_0x293966=_0x1134b5['locale'];return{'type':'format','content':null==_0x302795?c(_0x293966,'*Remove\x20link*'):c(_0x293966,'*Set\x20link:*\x20%0','\x22'+_0x302795+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd8aab=this['editor'],_0x1d2f61=_0xd8aab['locale'];_0xd8aab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5926fc=>{if('formatInline'!=_0x5926fc['type'])return;const {data:_0x3958}=_0x5926fc;if(_0x3958){if('link'==_0x3958['commandName']){const _0x4a1cf7=_0x3958['commandParams'][0x0];return{'type':'format','content':c(_0x1d2f61,'*Set\x20link:*\x20%0','\x22'+_0x4a1cf7+'\x22')};}return'unlink'==_0x3958['commandName']?{'type':'format','content':c(_0x1d2f61,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xb83fe9{['afterInit'](){const _0x4cb680=this['editor'],_0x2fbcfb=_0x4cb680['locale'];if(!_0x4cb680['plugins']['has']('LegacyListEditing'))return;const _0x439fd2=_0x4cb680['plugins']['get']('TrackChangesEditing'),_0x5dd9d8=_0x4cb680['plugins']['has']('LegacyTodoListEditing');function _0x5f44d7(_0x415435){return()=>{const _0x691e72=_0x4cb680['model']['document']['selection'],_0x506530=_0x4cb680['commands']['get'](_0x415435);if(_0x506530['value'])return void _0x4cb680['execute']('paragraph',{});const _0x5a04c5=_0x415435['slice'](0x0,-0x4),_0x1099a6=function(_0x5a7b57,_0x1cd4a3,_0x21183e){let _0x48eb8f=Array['from'](_0x5a7b57)['filter'](_0x402197=>function(_0x1822c3,_0x19a921){return _0x19a921['checkChild'](_0x1822c3['parent'],'listItem')&&!_0x19a921['isObject'](_0x1822c3);}(_0x402197,_0x21183e));_0x48eb8f=_0x48eb8f['filter'](_0x233707=>!_0x233707['is']('element','listItem')||_0x233707['getAttribute']('listType')!=_0x1cd4a3);const _0x20201d=new Set();for(const _0x41a54e of _0x48eb8f)_0x41a54e['is']('element','listItem')?_0x20201d['add'](Le(_0x41a54e)):_0x20201d['add'](_0x41a54e);return Array['from'](_0x20201d);}(_0x691e72['getSelectedBlocks'](),_0x5a04c5,_0x4cb680['model']['schema']);_0x4cb680['model']['change'](()=>{for(const _0x5bc9c6 of _0x1099a6)_0x439fd2['markBlockFormat'](_0x5bc9c6,{'commandName':_0x415435,'commandParams':[{'forceValue':!_0x506530['value']}],'formatGroupId':'blockName'},Ee(_0x5bc9c6));});};}function _0x2cd636(_0x125a30){return()=>{const _0x2d43ed=function(_0x91831e){let _0xa2277c=Array['from'](_0x91831e);const _0x3b27a0=_0xa2277c['findIndex'](_0x1fa57d=>'listItem'!=_0x1fa57d['name']);return _0x3b27a0>-0x1&&(_0xa2277c=_0xa2277c['slice'](0x0,_0x3b27a0)),_0xa2277c;}(_0x4cb680['model']['document']['selection']['getSelectedBlocks']()),_0x3fcf6b=_0x4cb680['model']['createRange'](_0x4cb680['model']['createPositionAt'](_0x2d43ed[0x0],'before'),_0x4cb680['model']['createPositionAt'](_0x2d43ed[_0x2d43ed['length']-0x1],'end'));_0x4cb680['model']['change'](()=>{_0x439fd2['markBlockFormat'](_0x3fcf6b,{'commandName':_0x125a30,'commandParams':[],'formatGroupId':'listIndent'},function(_0x457be9){const _0x559e9e=new Set();for(const _0x114936 of _0x457be9){let _0x101d94=_0x114936['nextSibling'];for(;_0x101d94&&_0x101d94['getAttribute']('listIndent')>_0x114936['getAttribute']('listIndent');)_0x559e9e['add'](_0x101d94),_0x101d94=_0x101d94['nextSibling'];}return Array['from'](_0x559e9e);}(_0x2d43ed));});};}_0x439fd2['enableCommand']('numberedList',_0x5f44d7('numberedList')),_0x439fd2['enableCommand']('bulletedList',_0x5f44d7('bulletedList')),_0x5dd9d8&&_0x439fd2['enableCommand']('todoList',_0x5f44d7('todoList')),_0x439fd2['enableCommand']('indentList',_0x2cd636('indentList')),_0x439fd2['enableCommand']('outdentList',_0x2cd636('outdentList')),_0x5dd9d8&&_0x439fd2['enableCommand']('checkTodoList',()=>{const _0x176e37=_0x4cb680['commands']['get']('checkTodoList'),_0x2df9bb=Array['from'](_0x176e37['_selectedElements']);_0x2df9bb['filter'](_0x12e6bc=>_0x12e6bc['getAttribute']('todoListChecked')!=_0x176e37['value']),_0x4cb680['model']['change'](()=>{for(const _0x4cc97a of _0x2df9bb)_0x439fd2['markBlockFormat'](_0x4cc97a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x176e37['value']}]});});}),_0x439fd2['descriptionFactory']['registerElementLabel']('listItem',_0x3f40dc=>c(_0x2fbcfb,'ELEMENT_LIST_ITEM',_0x3f40dc)),_0x439fd2['descriptionFactory']['registerDescriptionCallback'](_0x540576=>{if('formatBlock'!=_0x540576['type']&&'formatInline'!=_0x540576['type'])return;const {data:_0x56aaf2}=_0x540576;if(_0x56aaf2){if('numberedList'==_0x56aaf2['commandName']||'bulletedList'==_0x56aaf2['commandName']||'todoList'==_0x56aaf2['commandName'])switch(_0x56aaf2['commandName']['replace']('List','')){case'bulleted':return _0xd45246(c(_0x2fbcfb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd45246(c(_0x2fbcfb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd45246(c(_0x2fbcfb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x56aaf2['commandName'])return{'type':'format','content':c(_0x2fbcfb,'*Indent:*\x20%0',c(_0x2fbcfb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x56aaf2['commandName'])return{'type':'format','content':c(_0x2fbcfb,'*Outdent:*\x20%0',c(_0x2fbcfb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x56aaf2['commandName'])return _0x56aaf2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2fbcfb,'*Check\x20item*')}:{'type':'format','content':c(_0x2fbcfb,'*Uncheck\x20item*')};}function _0xd45246(_0x1008ab){return{'type':'format','content':c(_0x2fbcfb,'*Change\x20to:*\x20%0',_0x1008ab)};}});}}function Le(_0x4a982a){const _0x182474=_0x4a982a['getAttribute']('listIndent');if(0x0==_0x182474)return _0x4a982a;let _0x2cc38b=_0x4a982a;for(;_0x4a982a['previousSibling']&&_0x4a982a['previousSibling']['is']('element','listItem');){const _0x1f47ca=_0x4a982a['previousSibling']['getAttribute']('listIndent');if(_0x1f47ca==_0x182474)_0x2cc38b=_0x4a982a['previousSibling'];else{if(_0x1f47ca<_0x182474)break;}_0x4a982a=_0x4a982a['previousSibling'];}return _0x2cc38b;}function Ee(_0x80f88c){const _0x341bee=[];if(_0x80f88c['is']('element','listItem')&&_0x80f88c['getAttribute']('listIndent')>0x0){let _0x3456ce=_0x80f88c['nextSibling'];for(;_0x3456ce&&'listItem'==_0x3456ce['name']&&_0x3456ce['getAttribute']('listIndent')==_0x80f88c['getAttribute']('listIndent');)_0x341bee['push'](_0x3456ce),_0x3456ce=_0x3456ce['nextSibling'];}return _0x341bee;}class Q extends _0xb83fe9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2a99ae=this['editor']['config']['get']('list.properties'),_0x530c82=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a99ae['styles']&&_0x530c82['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2a99ae['reversed']&&_0x530c82['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2a99ae['startIndex']&&_0x530c82['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x530c82['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5b583d,_0xf5cdf0={}){const _0x3b8cdd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6c015=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3b8cdd['markMultiRangeBlockFormat'](_0x6c015,{'commandName':'listStyle','commandParams':[{'type':_0xf5cdf0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x75165f,_0x3bceaa={}){const _0x20bac9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dfa8a=this['_getSuggestionBlocks'](_0x213a2f=>_0x213a2f['is']('element','listItem')&&'numbered'===_0x213a2f['getAttribute']('listType'));if(_0x5dfa8a['length']<0x1)return;const _0x316d8c=_0x5dfa8a['map'](_0x963787=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x963787,'before'),this['editor']['model']['createPositionAt'](_0x963787,0x0)));this['editor']['model']['change'](()=>{_0x20bac9['markMultiRangeBlockFormat'](_0x316d8c,{'commandName':'listReversed','commandParams':[{'reversed':_0x3bceaa['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4202c9,_0x4472db={}){const _0x4755cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x479d14=this['_getSuggestionBlocks'](_0x44c30e=>_0x44c30e['is']('element','listItem')&&'numbered'===_0x44c30e['getAttribute']('listType'));if(_0x479d14['length']<0x1)return;const _0x164f3c=_0x479d14['map'](_0x5e99b9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e99b9,'before'),this['editor']['model']['createPositionAt'](_0x5e99b9,0x0)));this['editor']['model']['change'](()=>{_0x4755cc['markMultiRangeBlockFormat'](_0x164f3c,{'commandName':'listStart','commandParams':[{'startIndex':_0x4472db['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x53c9c6){if('formatBlock'!=_0x53c9c6['type']&&'formatInline'!=_0x53c9c6['type'])return;const _0x2409f9=this['editor']['locale'],{data:_0x295a46}=_0x53c9c6;if(!_0x295a46)return;let _0x3454c8,_0x3a2722;switch(_0x295a46['commandName']){case'listStyle':_0x3454c8='*Change\x20to:*\x20%0',_0x3a2722={'type':'format','content':c(_0x2409f9,_0x3454c8,c(_0x2409f9,this['_getTranslationKeyForListStyle'](_0x295a46['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3454c8=_0x295a46['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3a2722={'type':'format','content':c(_0x2409f9,_0x3454c8)};break;case'listStart':_0x3454c8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a2722={'type':'format','content':c(_0x2409f9,_0x3454c8,_0x295a46['commandParams'][0x0]['startIndex'])};}return _0x3a2722;}['_getSuggestionBlocksForListStyle'](){const _0x8c6f52=this['editor']['plugins']['get']('LegacyListUtils');let _0x6bd7f6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x6bd7f6[0x0]?.['is']('element','listItem')&&_0x6bd7f6['unshift'](..._0x8c6f52['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x6bd7f6[_0x6bd7f6['length']-0x1]?.['is']('element','listItem')&&_0x6bd7f6['push'](..._0x8c6f52['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x6bd7f6=[...new Set(_0x6bd7f6)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x6bd7f6=_0x6bd7f6['filter'](_0x266545=>_0x266545['is']('element','listItem'))),_0x6bd7f6;}['_getSuggestionBlocks'](_0xe9b77){const _0x156ef8=this['editor']['plugins']['get']('LegacyListUtils');let _0x324f9e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xe9b77)['map'](_0x4d4b74=>{const _0x397880=this['editor']['model']['createPositionAt'](_0x4d4b74,0x0);return[..._0x156ef8['getSiblingNodes'](_0x397880,'backward'),..._0x156ef8['getSiblingNodes'](_0x397880,'forward')];})['flat']();return _0x324f9e=[...new Set(_0x324f9e)],_0x324f9e;}['_getTranslationKeyForListStyle'](_0x4924e0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4924e0)||'default')['toUpperCase']()+'_LIST_'+_0x4924e0['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xb83fe9{['afterInit'](){const _0x27f6f7=this['editor'];if(!_0x27f6f7['plugins']['has']('MediaEmbedEditing'))return;const _0x1b3cd3=_0x27f6f7['plugins']['get']('TrackChangesEditing'),_0x2c1d6f=_0x27f6f7['locale'];_0x1b3cd3['enableCommand']('mediaEmbed'),_0x1b3cd3['descriptionFactory']['registerElementLabel']('media',_0x5a9258=>c(_0x2c1d6f,'ELEMENT_MEDIA',_0x5a9258)),_0x27f6f7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3979ec,{writer:_0x2aadac,options:_0x15ce89})=>{if(_0x15ce89['showSuggestionHighlights'])return _0x2aadac['createEmptyElement']('div');},'converterPriority':'high'}),_0x27f6f7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4a04e4,_0x5b5cbc,_0x4e3f8e)=>{_0x4e3f8e['options']['showSuggestionHighlights']&&_0x4a04e4['stop']();},{'priority':'high'});}}class pt extends _0xb83fe9{['afterInit'](){const _0x559f4b=this['editor'];_0x559f4b['plugins']['has']('MentionEditing')&&_0x559f4b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xb83fe9{['afterInit'](){const _0x533ceb=this['editor'];if(!_0x533ceb['plugins']['has']('MergeFieldsEditing'))return;const _0x43b06f=_0x533ceb['plugins']['get']('TrackChangesEditing'),_0x3580da=_0x533ceb['locale'];_0x43b06f['enableCommand']('insertMergeField'),_0x43b06f['enableCommand']('insertMergeFieldBlock'),_0x43b06f['enableCommand']('insertMergeFieldImage'),_0x43b06f['descriptionFactory']['registerElementLabel']('mergeField',_0x2ab8fa=>c(_0x3580da,'ELEMENT_MERGE_FIELD',_0x2ab8fa)),_0x43b06f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xf18655=>c(_0x3580da,'ELEMENT_MERGE_FIELD',_0xf18655)),_0x43b06f['descriptionFactory']['registerDescriptionCallback'](_0x57d78d=>{if('insertion'!=_0x57d78d['type']&&'deletion'!=_0x57d78d['type'])return;const _0x38bbc7=_0x57d78d['getContainedElement']();if(null==_0x38bbc7)return;const _0x59467=_0x533ceb['plugins']['get']('MergeFieldsEditing');let _0x1b2c1e;switch(_0x59467['getMergeFieldType'](_0x38bbc7)){case null:return;case'image':{const _0x122157=_0x59467['unwrapAffixes'](_0x38bbc7['getAttribute']('src'));_0x1b2c1e=_0x59467['getLabel'](_0x122157)||_0x122157;break;}default:{const _0x15f28f=_0x38bbc7['getAttribute']('id');_0x1b2c1e=_0x59467['getLabel'](_0x15f28f)||_0x15f28f;break;}}return'insertion'==_0x57d78d['type']?{'type':'insertion','content':c(_0x3580da,'*Insert:*\x20%0','\x22'+_0x1b2c1e+'\x22\x20'+c(_0x3580da,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3580da,'*Remove:*\x20%0','\x22'+_0x1b2c1e+'\x22\x20'+c(_0x3580da,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0xb83fe9{['afterInit'](){const _0x20e637=this['editor'],_0x583950=_0x20e637['plugins']['get']('TrackChangesEditing');_0x20e637['plugins']['has']('MultiLevelList')&&(_0x583950['enableDefaultAttributesIntegration']('multiLevelList'),_0x583950['registerBlockAttribute']('listMarkerStyle'),_0x583950['descriptionFactory']['registerDescriptionCallback'](_0xdad38a=>this['handleDescriptions'](_0xdad38a)));}['handleDescriptions'](_0xa74252){const _0x185b7e=this['editor']['locale'],{data:_0x5c0933}=_0xa74252,_0x235d3a={'type':'format','content':''};if(_0x5c0933&&'listMarkerStyle'==_0x5c0933['key']){if(!_0x5c0933['oldValue'])return{'type':'format','content':c(_0x185b7e,'*Set\x20format:*\x20%0',c(_0x185b7e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c0933['newValue']+')'};if(!_0x5c0933['newValue']){let _0x17d234=_0xa74252['head'];for(;_0x17d234;){if(_0x17d234['data']&&'listType'==_0x17d234['data']['key']&&_0x17d234['data']['newValue'])return _0x235d3a;_0x17d234=_0x17d234['next'];}return{'type':'format','content':c(_0x185b7e,'*Remove\x20format:*\x20%0',c(_0x185b7e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c0933['oldValue']+')'};}}}}class bt extends _0xb83fe9{['afterInit'](){const _0xe7a2cc=this['editor'];if(!_0xe7a2cc['plugins']['has']('PageBreakEditing'))return;_0xe7a2cc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4b50fa=_0xe7a2cc['plugins']['get']('TrackChangesEditing'),_0x6e319c=_0xe7a2cc['locale'];_0x4b50fa['descriptionFactory']['registerElementLabel']('pageBreak',_0x4a4fde=>c(_0x6e319c,'ELEMENT_PAGE_BREAK',_0x4a4fde));}}class yt extends _0xb83fe9{['afterInit'](){const _0x122b6a=this['editor'];if(!_0x122b6a['plugins']['has']('Paragraph'))return;const _0x5309b6=_0x122b6a['locale'],_0x23ef0c=_0x122b6a['plugins']['get']('TrackChangesEditing');_0x23ef0c['descriptionFactory']['registerElementLabel']('paragraph',_0x877e6d=>c(_0x5309b6,'ELEMENT_PARAGRAPH',_0x877e6d)),_0x23ef0c['enableDefaultAttributesIntegration']('paragraph'),_0x23ef0c['enableCommand']('insertParagraph'),_0x122b6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x122b6a),{'priority':'highest'}),_0x122b6a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x23d14d,_0x33efba,_0x5903b4)=>{_0x5903b4['options']['showSuggestionHighlights']&&nr(_0x122b6a,{'showActiveMarker':!0x1})(_0x23d14d,_0x33efba,_0x5903b4);},{'priority':'highest'});const _0x408e2a=_0x23ef0c['descriptionFactory'];_0x408e2a['registerDescriptionCallback'](_0x501f38=>{if('insertion'!==_0x501f38['type'])return;const {start:_0x404935,end:_0x532352}=_0x501f38['getFirstRange']();if(!_0x404935['isTouching'](_0x532352)||!_0x404935['nodeAfter'])return;const _0x59b3a8=_0x122b6a['model']['schema'],_0x1a2b9c=_0x404935['nodeAfter'];return _0x59b3a8['isBlock'](_0x1a2b9c)&&!_0x59b3a8['isLimit'](_0x1a2b9c)&&_0x59b3a8['checkChild'](_0x1a2b9c,'$text')?{'type':'insertion','content':c(_0x5309b6,'*Insert:*\x20%0',_0x408e2a['getItemLabel'](_0x1a2b9c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40ab1f=this['editor'],_0x222714=_0x40ab1f['locale'];_0x40ab1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aad0f=>{if('formatBlock'!=_0x4aad0f['type'])return;const {data:_0x449d0c}=_0x4aad0f;return _0x449d0c&&'paragraph'==_0x449d0c['commandName']?{'type':'format','content':c(_0x222714,'*Change\x20to:*\x20%0',c(_0x222714,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4a2e53,{showActiveMarker:_0x4cd258=!0x0}={}){return(_0x14f6f4,_0x4fdef9,_0x17923a)=>{const _0xaa34c6=_0x4a2e53['plugins']['get']('TrackChangesEditing'),_0x421a80=_0x4fdef9['markerRange']['start'],_0x433c1e=_0x4fdef9['markerRange']['end'],_0x44456d=_0x4a2e53['model']['schema'];if(!_0x421a80['isTouching'](_0x433c1e)||!_0x421a80['nodeAfter'])return;const _0x38aa6d=_0x421a80['nodeAfter'];if(_0x44456d['isBlock'](_0x38aa6d)&&!_0x44456d['isLimit'](_0x38aa6d)&&_0x44456d['checkChild'](_0x38aa6d,'$text')){if(!_0x17923a['consumable']['consume'](_0x4fdef9['markerRange'],_0x14f6f4['name']))return;const {authorId:_0x37d8f9}=_0xaa34c6['_splitMarkerName'](_0x4fdef9['markerName']),_0x5bd30a=_0x17923a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x37d8f9}),_0x35b405=_0x17923a['mapper']['toViewPosition'](_0x433c1e);_0x4cd258&&_0xaa34c6['activeMarkers']['includes'](_0x4fdef9['markerName'])&&_0x17923a['writer']['addClass']('ck-suggestion-marker--active',_0x5bd30a),_0x17923a['writer']['insert'](_0x35b405,_0x5bd30a),_0x17923a['mapper']['bindElementToMarker'](_0x5bd30a,_0x4fdef9['markerName']);}};}class jt extends _0xb83fe9{['afterInit'](){const _0x4cb985=this['editor'];_0x4cb985['commands']['get']('replaceSource')&&_0x4cb985['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xb83fe9{['afterInit'](){const _0x33a886=this['editor'];if(!_0x33a886['plugins']['has']('RemoveFormatEditing'))return;_0x33a886['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3604bb=this['editor'];_0x3604bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20a3f3=>{if('formatBlock'!=_0x20a3f3['type']&&'formatInline'!=_0x20a3f3['type'])return;const {data:_0x5acdf3}=_0x20a3f3;return _0x5acdf3&&'removeFormat'==_0x5acdf3['commandName']?{'type':'format','content':c(_0x3604bb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xb83fe9{['afterInit'](){const _0x439363=this['editor'];if(!_0x439363['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3ccdb3=_0x439363['plugins']['get']('TrackChangesEditing');_0x3ccdb3['enableCommand']('goToPreviousRestrictedEditingException'),_0x3ccdb3['enableCommand']('goToNextRestrictedEditingException');const _0x32b382=_0x439363['plugins']['get']('RestrictedEditingModeEditing');_0x32b382['enableCommand']('trackChanges'),_0x32b382['enableCommand']('acceptSuggestion'),_0x32b382['enableCommand']('discardSuggestion'),_0x32b382['enableCommand']('acceptAllSuggestions'),_0x32b382['enableCommand']('discardAllSuggestions'),_0x32b382['enableCommand']('acceptSelectedSuggestions'),_0x32b382['enableCommand']('discardSelectedSuggestions');}}class It extends _0xb83fe9{static get['requires'](){return[_0x2e1aeb];}['init'](){const _0x31cb80=this['editor'],_0x2d1011=_0x31cb80['plugins']['get']('TrackChangesEditing');_0x2d1011['enableCommand']('shiftEnter'),_0x31cb80['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x31cb80),{'priority':'high'}),_0x31cb80['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x31cb80),{'priority':'high'}),_0x31cb80['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1563ff,_0x1ab063,_0x14ea8a)=>{_0x14ea8a['options']['showSuggestionHighlights']&&je(_0x31cb80,{'showActiveMarker':!0x1})(_0x1563ff,_0x1ab063,_0x14ea8a);}),_0x2d1011['descriptionFactory']['registerElementLabel']('softBreak',_0x50f5ad=>c(_0x31cb80['locale'],'ELEMENT_LINE_BREAK',_0x50f5ad));}}function je(_0x330586,{showActiveMarker:_0x2b6336=!0x0}={}){return(_0x454b54,_0x4739b4,_0x211d13)=>{const _0x2b3281=_0x330586['plugins']['get']('TrackChangesEditing');if(!_0x211d13['consumable']['test'](_0x4739b4['markerRange'],_0x454b54['name']))return;const _0x43d2aa=_0x330586['model'];for(const _0x433ca8 of _0x4739b4['markerRange']['getItems']()){if(!_0x433ca8['is']('element','softBreak'))continue;const _0x151147='deletion'==_0x4739b4['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x16ed8f}=_0x2b3281['_splitMarkerName'](_0x4739b4['markerName']),_0x592e90=_0x211d13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x151147,'data-author-id':_0x16ed8f}),_0x2c1afd=_0x211d13['mapper']['toViewPosition'](_0x43d2aa['createPositionBefore'](_0x433ca8));_0x2b6336&&_0x2b3281['activeMarkers']['includes'](_0x4739b4['markerName'])&&_0x211d13['writer']['addClass']('ck-suggestion-marker--active',_0x592e90),_0x211d13['writer']['insert'](_0x2c1afd,_0x592e90),_0x211d13['mapper']['bindElementToMarker'](_0x592e90,_0x4739b4['markerName']);}};}class _t extends _0xb83fe9{['afterInit'](){const _0x643491=this['editor'],_0x5a21fe=_0x643491['model'],_0x354055=_0x643491['locale'];if(!_0x643491['plugins']['has']('StandardEditingModeEditing'))return;const _0xa1e7b7=_0x643491['plugins']['get']('TrackChangesEditing'),_0x592ea1='restrictedEditingException',_0x3e507f=_0x643491['commands']['get'](_0x592ea1);_0xa1e7b7['enableCommand'](_0x592ea1,(_0x5ebbe5,_0x3814cb={})=>{const _0x4d8d07=_0x5a21fe['document']['selection'];if(_0x4d8d07['isCollapsed'])return void _0x5ebbe5(_0x3814cb);const _0x58c705=void 0x0!==_0x3814cb['forceValue']?_0x3814cb['forceValue']:!_0x3e507f['value'];_0x5a21fe['change'](()=>{const _0x4e96d1=Array['from'](_0x4d8d07['getRanges']());for(const _0xe66d6 of _0x4e96d1){const _0x5171c8=_0x58c705?[_0xe66d6]:io(_0x592ea1,_0xe66d6,_0x5a21fe);for(const _0x3ca3a of _0x5171c8)_0xa1e7b7['markInlineFormat'](_0x3ca3a,{'commandName':_0x592ea1,'commandParams':[{'forceValue':_0x58c705}]});}});}),_0xa1e7b7['descriptionFactory']['registerDescriptionCallback'](_0x3947d5=>{if('formatBlock'!=_0x3947d5['type']&&'formatInline'!=_0x3947d5['type'])return;const {data:_0x56cd0d}=_0x3947d5;return _0x56cd0d&&_0x56cd0d['commandName']==_0x592ea1?_0x56cd0d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x354055,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x354055,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0xb83fe9{['afterInit'](){const _0x211e91=this['editor'];if(!_0x211e91['plugins']['has']('Style')||!_0x211e91['plugins']['has']('DataSchema'))return;const _0x16e68c=_0x211e91['plugins']['get']('TrackChangesEditing'),_0x3c58fc=_0x211e91['locale'],_0x469faa=_0x211e91['config']['get']('style')||{},_0x33a57a=_0x211e91['plugins']['get']('GeneralHtmlSupport'),_0x1d24a7=_0x211e91['plugins']['get']('StyleUtils')['normalizeConfig'](_0x211e91['plugins']['get']('DataSchema'),_0x469faa['definitions']);_0x16e68c['enableDefaultAttributesIntegration']('style');const _0x530c44=new Set();for(const _0x56af3f of _0x1d24a7['block']){const _0x1b075c=_0x33a57a['getGhsAttributeNameForElement'](_0x56af3f['element']);_0x530c44['add'](_0x1b075c);}const _0x537b72=new Set();for(const _0x928a26 of _0x1d24a7['inline']){const _0x28bea5=_0x33a57a['getGhsAttributeNameForElement'](_0x928a26['element']);_0x537b72['add'](_0x28bea5);for(const _0x4e8292 of _0x928a26['ghsAttributes'])_0x537b72['add'](_0x4e8292);}for(const _0xacd583 of _0x530c44)_0x16e68c['registerBlockAttribute'](_0xacd583),_0x16e68c['descriptionFactory']['registerAttributeLabel'](_0xacd583,c(_0x3c58fc,'FORMAT_STYLE'));for(const _0xec1625 of _0x537b72)_0x16e68c['registerInlineAttribute'](_0xec1625),_0x16e68c['descriptionFactory']['registerAttributeLabel'](_0xec1625,c(_0x3c58fc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234921=this['editor'],_0x4d0a0d=_0x234921['locale'];_0x234921['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d1477=>{if('formatBlock'!=_0x5d1477['type']&&'formatInline'!=_0x5d1477['type'])return;const {data:_0x2ebbfb}=_0x5d1477;return _0x2ebbfb&&'style'===_0x2ebbfb['commandName']?_0x2ebbfb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4d0a0d,'*Set\x20format:*\x20%0',_0x2ebbfb['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x4d0a0d,'*Remove\x20format:*\x20%0',_0x2ebbfb['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xb83fe9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4ce46d){super(_0x4ce46d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x32cceb=this['editor'],_0x100140=_0x32cceb['model']['document']['selection'];if(!_0x32cceb['plugins']['has']('TableEditing'))return;const _0x111617=_0x32cceb['locale'],_0x34887c=_0x32cceb['plugins']['get']('TrackChangesEditing'),_0x21eb0d=_0x32cceb['plugins']['get']('TableUtils');_0x34887c['descriptionFactory']['registerElementLabel']('table',_0x3b34e9=>c(_0x111617,'ELEMENT_TABLE',_0x3b34e9)),this['_setupColumnsRowsFixing'](),_0x34887c['enableCommand']('insertTable'),_0x34887c['enableCommand']('selectTableRow'),_0x34887c['enableCommand']('selectTableColumn');for(const _0x15386c of['insertTableRowAbove','insertTableRowBelow']){const _0xf9bcb6=_0x32cceb['commands']['get'](_0x15386c);_0x34887c['enableCommand'](_0x15386c,_0x1fecf5=>{_0x32cceb['model']['change'](_0x439cb2=>{_0x1fecf5();const _0x46e43c='above'===_0xf9bcb6['order'],_0x2a7468=_0x21eb0d['getSelectionAffectedTableCells'](_0x100140),_0x5a2fc5=_0x21eb0d['getRowIndexes'](_0x2a7468),_0x4a3831=_0x46e43c?_0x5a2fc5['first']-0x1:_0x5a2fc5['last']+0x1,_0x60492a=_0x2a7468[0x0]['findAncestor']('table'),_0x4220ee=_0x21eb0d['createTableWalker'](_0x60492a,{'startRow':_0x4a3831,'endRow':_0x4a3831}),_0x30731c=Array['from'](_0x4220ee)['map'](_0x10e494=>_0x439cb2['createRangeOn'](_0x10e494['cell']));_0x34887c['markMultiRangeInsertion'](_0x30731c,'tableRow');});});}for(const _0xe46e41 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1eb3b9=_0x32cceb['commands']['get'](_0xe46e41);_0x34887c['enableCommand'](_0xe46e41,_0x10ce55=>{_0x32cceb['model']['change'](_0x539de5=>{_0x10ce55();const _0x201e11='left'===_0x1eb3b9['order'],_0x543b06=_0x21eb0d['getSelectionAffectedTableCells'](_0x100140),_0xc590f2=_0x21eb0d['getColumnIndexes'](_0x543b06),_0x3e6377=_0x201e11?_0xc590f2['first']-0x1:_0xc590f2['last']+0x1,_0x239ca9=_0x543b06[0x0]['findAncestor']('table'),_0x2bb53b=_0x21eb0d['createTableWalker'](_0x239ca9,{'startRow':0x0,'column':_0x3e6377,'includeAllSlots':!0x1}),_0x4afffe=Array['from'](_0x2bb53b)['map'](_0xf6eca=>_0x539de5['createRangeOn'](_0xf6eca['cell']));_0x34887c['markMultiRangeInsertion'](_0x4afffe,'tableColumn');});});}for(const _0x35828e of['removeTableRow','removeTableColumn']){const _0x56a1c0=_0x35828e['substr'](0xb),_0x401b44=_0x56a1c0['toLowerCase'](),_0x5cc956=_0x401b44['substr'](0x0,0x3)+'span',_0x30d832='table'+_0x56a1c0,_0x4b980a='min'+_0x56a1c0,_0x2a21be='max'+_0x56a1c0;_0x34887c['enableCommand'](_0x35828e,()=>{_0x32cceb['model']['change'](_0x288fea=>{const _0x1d2918=_0x21eb0d['getSelectionAffectedTableCells'](_0x100140),_0x2106ed=_0x1d2918[0x0]['findAncestor']('table');let _0x3273ac;if('removeTableRow'==_0x35828e){const _0x4569ac=_0x21eb0d['getRowIndexes'](_0x1d2918);_0x3273ac={'startRow':_0x4569ac['first'],'endRow':_0x4569ac['last'],'includeAllSlots':!0x0};}else{const _0x23ddca=_0x21eb0d['getColumnIndexes'](_0x1d2918);_0x3273ac={'startColumn':_0x23ddca['first'],'endColumn':_0x23ddca['last'],'includeAllSlots':!0x0};}const _0x42347b=_0x21eb0d['createTableWalker'](_0x2106ed,_0x3273ac),_0x46b2dc=Array['from'](_0x42347b)['map'](({cell:_0x1876a3})=>_0x1876a3),_0x33c9dd=Ne(_0x46b2dc['filter'](_0x4b6480=>_0x4b6480['hasAttribute'](_0x5cc956))),_0x3d9272=Ne(_0x46b2dc['filter'](_0x13ee94=>!_0x13ee94['hasAttribute'](_0x5cc956)))['map'](_0x3b477b=>_0x288fea['createRangeOn'](_0x3b477b)),_0x3a3b9c=_0x34887c['markMultiRangeDeletion'](_0x3d9272,_0x30d832);if(_0x3a3b9c&&('tableRow'==_0x3a3b9c['subType']||'tableColumn'==_0x3a3b9c['subType'])){const _0x54737e=this['_getSuggestionCoords'](_0x3a3b9c);for(const _0x33c795 of _0x33c9dd){const _0x14c191=_0x288fea['createRangeOn'](_0x33c795),_0x305c32=_0x21eb0d['getCellLocation'](_0x33c795),_0x2036a3=_0x33c795['getAttribute'](_0x5cc956)-0x1,_0x55aacb=_0x54737e[_0x4b980a],_0x2497e9=_0x54737e[_0x2a21be];_0x55aacb<=_0x305c32[_0x401b44]&&_0x305c32[_0x401b44]+_0x2036a3<=_0x2497e9&&_0x3a3b9c['addRange'](_0x14c191);}}});});}function _0x1a407d(_0x5ced17){const _0x4d55f3=Array['from'](_0x100140['getRanges']())['map'](_0x2631d1=>_0x315628['fromRange'](_0x2631d1));_0x32cceb['model']['change'](_0x3c32b8=>{const _0x3179a8=_0x3c32b8['batch'];_0x5ced17=_0x5ced17['filter'](_0x183cc3=>'$graveyard'!=_0x183cc3['root']['rootName']),_0x3c32b8['setSelection'](_0x5ced17),_0x32cceb['commands']['get']('removeTableRow')['refresh'](),_0x32cceb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x32cceb['model']['enqueueChange'](()=>{_0x32cceb['model']['enqueueChange'](_0x3179a8,_0x5e76c9=>{const _0x359208=_0x4d55f3['filter'](_0x1ce8a2=>'$graveyard'!=_0x1ce8a2['root']['rootName']);_0x359208['length']>0x0&&_0x5e76c9['setSelection'](_0x359208);for(const _0x48a4d of _0x4d55f3)_0x48a4d['detach']();});});});}function _0x4478ec(_0x57ce9c){_0x32cceb['model']['change'](_0x17282a=>{const _0x19f35c=Array['from'](_0x100140['getRanges']())['map'](_0x2c6608=>_0x315628['fromRange'](_0x2c6608)),_0x3bceec=[];for(const _0xb71985 of _0x57ce9c)for(const _0x58264b of _0xb71985['getItems']({'shallow':!0x0}))_0x3bceec['push'](_0x58264b);for(const _0x503ee2 of _0x3bceec)'$graveyard'!=_0x503ee2['root']['rootName']&&(_0x17282a['setSelection'](_0x17282a['createPositionAt'](_0x503ee2,0x0)),_0x32cceb['commands']['get']('removeTableColumn')['refresh'](),_0x32cceb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x18cb27=_0x19f35c['filter'](_0x24e382=>'$graveyard'!=_0x24e382['root']['rootName']);_0x18cb27['length']>0x0&&_0x17282a['setSelection'](_0x18cb27);for(const _0x2a3be1 of _0x19f35c)_0x2a3be1['detach']();});}function _0x23e227(_0x160980,_0x204132){return _0x204132['every'](_0x2a2df3=>_0x160980['some'](_0x45f7b7=>_0x45f7b7['end']['isEqual'](_0x2a2df3['start'])||_0x2a2df3['end']['isEqual'](_0x45f7b7['start'])));}function _0x51c23a(_0xd41ba9,_0x53ae23){return!_0xd41ba9['some'](_0x384b72=>_0x53ae23['some'](_0x2e89af=>_0x384b72['isIntersecting'](_0x2e89af)))&&_0xd41ba9['some'](_0x2a88b7=>_0x53ae23['some'](_0x4f821f=>_0x2a88b7['end']['isTouching'](_0x4f821f['start'])));}_0x32cceb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36fe6c,_0x55869a,_0x31b2d5)=>{if(!_0x31b2d5['options']['showSuggestionHighlights'])return;const _0x27a228=_0x55869a['item'];if(!_0x27a228)return;const _0xfbc700=_0x31b2d5['mapper']['toViewElement'](_0x27a228);function _0x23a163(_0x2fc724){return Array['isArray'](_0x2fc724)?_0x2fc724:[_0x2fc724];}_0xfbc700&&'tableCell'===_0x27a228['name']&&_0x564d89(_0xfbc700,_0x31b2d5['writer'],(_0x4f2dc9,_0x555fe6,_0x5969bc)=>_0x5969bc['addClass'](_0x23a163(_0x555fe6['classes']),_0x4f2dc9),(_0x5243ec,_0x41334a,_0x4fc972)=>_0x4fc972['removeClass'](_0x23a163(_0x41334a['classes']),_0x5243ec));},{'priority':'highest'}),_0x34887c['descriptionFactory']['registerDescriptionCallback'](_0x123717=>{if('insertion'!=_0x123717['type']&&'deletion'!=_0x123717['type'])return;const _0x480112=_0x123717['getContainedElement']();if(null!=_0x480112&&_0x480112['is']('element','table')){if('insertion'==_0x123717['type']){const _0x51225f=_0x123717['getItems']()['filter'](_0x3fc7f3=>_0x3fc7f3['is']('$textProxy'))['map'](_0x4b78d3=>_0x4b78d3['data']);if(_0x51225f['length'])return{'type':'insertion','content':c(_0x111617,'*Insert:*\x20%0',c(_0x111617,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51225f['join']('\x20')+'\x22'))};}if('deletion'==_0x123717['type']){const _0x2404cd=_0x123717['getItems']()['filter'](_0x8bbae7=>_0x8bbae7['is']('$textProxy'))['map'](_0x9ac36b=>_0x9ac36b['data']);if(_0x2404cd['length'])return{'type':'deletion','content':c(_0x111617,'*Remove:*\x20%0',c(_0x111617,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2404cd['join']('\x20')+'\x22'))};}}}),_0x34887c['descriptionFactory']['registerDescriptionCallback'](_0x4e9420=>{if('tableRow'==_0x4e9420['subType']){const _0x5c777f=_0x4e9420['getItems']()['filter'](_0x5a296b=>_0x5a296b['is']('$textProxy'))['map'](_0x3559be=>_0x3559be['data']),_0x1290ec=this['_getSuggestionCoords'](_0x4e9420),_0x1c1fab=_0x1290ec['maxRow']-_0x1290ec['minRow']+0x1;if('insertion'==_0x4e9420['type'])return _0x5c777f['length']?{'type':'insertion','content':c(_0x111617,'*Insert:*\x20%0',c(_0x111617,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c1fab,'\x22'+_0x5c777f['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x111617,'*Insert:*\x20%0',c(_0x111617,'ELEMENT_TABLE_ROW',_0x1c1fab))};if('deletion'==_0x4e9420['type'])return _0x5c777f['length']?{'type':'deletion','content':c(_0x111617,'*Remove:*\x20%0',c(_0x111617,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c1fab,'\x22'+_0x5c777f['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x111617,'*Remove:*\x20%0',c(_0x111617,'ELEMENT_TABLE_ROW',_0x1c1fab))};}if('tableColumn'==_0x4e9420['subType']){const _0x57da74=_0x4e9420['getItems']()['filter'](_0x223273=>_0x223273['is']('$textProxy'))['map'](_0x3384f6=>_0x3384f6['data']),_0x10412a=this['_getSuggestionCoords'](_0x4e9420),_0x1cd536=_0x10412a['maxColumn']-_0x10412a['minColumn']+0x1;if('insertion'==_0x4e9420['type'])return _0x57da74['length']?{'type':'insertion','content':c(_0x111617,'*Insert:*\x20%0',c(_0x111617,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1cd536,'\x22'+_0x57da74['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x111617,'*Insert:*\x20%0',c(_0x111617,'ELEMENT_TABLE_COLUMN',_0x1cd536))};if('deletion'==_0x4e9420['type'])return _0x57da74['length']?{'type':'deletion','content':c(_0x111617,'*Remove:*\x20%0',c(_0x111617,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1cd536,'\x22'+_0x57da74['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x111617,'*Remove:*\x20%0',c(_0x111617,'ELEMENT_TABLE_COLUMN',_0x1cd536))};}}),_0x34887c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1a407d),_0x34887c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1a407d),_0x34887c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4478ec),_0x34887c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4478ec),_0x34887c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x23e227),_0x34887c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x23e227),_0x34887c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x51c23a),_0x34887c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x51c23a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5dae43=this['editor'],_0x3f6d29=_0x5dae43['model']['document']['selection'];return(_0x3b11cc,_0x2ef38f)=>{_0x5dae43['model']['change'](_0x2ad244=>{const {commandName:_0x4f2429,commandParams:_0x2a23f1}=_0x2ef38f;let _0x2c3320=_0x3b11cc[0x0]['end']['nodeBefore'];_0x2a23f1&&_0x2a23f1[0x0]&&!0x1===_0x2a23f1[0x0]['forceValue']&&(_0x2c3320=_0x3b11cc[0x0]['start']['nodeAfter']);const _0x335f96=_0x2ad244['createRangeIn'](_0x2c3320);if('$graveyard'==_0x335f96['root']['rootName'])return;const _0x1e46c3=Array['from'](_0x3f6d29['getRanges']())['map'](_0x328056=>_0x315628['fromRange'](_0x328056));_0x2ad244['setSelection'](_0x335f96),_0x5dae43['commands']['get'](_0x4f2429)['refresh'](),_0x2a23f1['push']({'forceDefaultExecution':!0x0}),_0x5dae43['execute'](_0x4f2429,..._0x2a23f1);const _0xd42ed6=_0x1e46c3['filter'](_0x46f9f2=>'$graveyard'!=_0x46f9f2['root']['rootName']);_0xd42ed6['length']>0x0&&_0x2ad244['setSelection'](_0xd42ed6);for(const _0x58dc03 of _0x1e46c3)_0x58dc03['detach']();});};}['_getCoordsForCells'](_0x4453f9){const _0xfd9bcb=this['editor']['plugins']['get']('TableUtils');let _0x582993=Number['MAX_SAFE_INTEGER'],_0x5d7e78=Number['MIN_SAFE_INTEGER'],_0x42459f=Number['MAX_SAFE_INTEGER'],_0x1a4264=Number['MIN_SAFE_INTEGER'];for(const _0x58a976 of _0x4453f9){if('$graveyard'==_0x58a976['root']['rootName'])continue;const {row:_0x46de59,column:_0x1d82a6}=_0xfd9bcb['getCellLocation'](_0x58a976),_0x56eeb8=_0x58a976['hasAttribute']('rowspan')?_0x58a976['getAttribute']('rowspan')-0x1:0x0,_0x53b9df=_0x58a976['hasAttribute']('colspan')?_0x58a976['getAttribute']('colspan')-0x1:0x0;_0x582993=_0x46de59<_0x582993?_0x46de59:_0x582993,_0x5d7e78=_0x46de59+_0x56eeb8>_0x5d7e78?_0x46de59+_0x56eeb8:_0x5d7e78,_0x42459f=_0x1d82a6<_0x42459f?_0x1d82a6:_0x42459f,_0x1a4264=_0x1d82a6+_0x53b9df>_0x1a4264?_0x1d82a6+_0x53b9df:_0x1a4264;}return{'minRow':_0x582993,'maxRow':_0x5d7e78,'minColumn':_0x42459f,'maxColumn':_0x1a4264};}['_setupColumnsRowsFixing'](){const _0x455607=this['editor'],_0x1f7cde=_0x455607['plugins']['get']('TrackChangesEditing'),_0x4f75c2=_0x455607['plugins']['get']('TableUtils');_0x455607['model']['document']['on']('change:data',()=>{const _0x36edee=Array['from'](_0x455607['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bebe2,data:_0x7cc126}of _0x36edee){const {group:_0x1d78c5,id:_0x191a21,subType:_0x2d14bb}=_0x1f7cde['_splitMarkerName'](_0x4bebe2);if('suggestion'!=_0x1d78c5)continue;if(null!=_0x7cc126['oldRange'])continue;const _0x480df7=_0x1f7cde['getSuggestion'](_0x191a21);this['_tablePostFixingSubtypes']['includes'](_0x2d14bb)&&this['_tableSuggestions']['add'](_0x480df7);}},{'priority':'low'});const _0x538dcb=(_0x22ee3e,_0x36d146)=>{let _0x12c802=!0x1;const _0x2d4d6d=_0x36d146['createRangeOn'](_0x22ee3e),_0x1f66d8=_0x22ee3e['findAncestor']('table'),_0x4af307=_0x4f75c2['getCellLocation'](_0x22ee3e);for(const _0x4cf8cd of this['_tableSuggestions']){const _0x354d0c=_0x4cf8cd['subType'],_0x16fcc4=_0x354d0c['startsWith']('tablePaste'),_0x1e36eb=_0x354d0c['substr'](_0x16fcc4?0xa:0x5),_0x54bbcd=_0x1e36eb['toLowerCase'](),_0x38a72c=_0x54bbcd['substr'](0x0,0x3)+'span',_0x2dd8d0='min'+_0x1e36eb,_0x37949b='max'+_0x1e36eb;if(!_0x4cf8cd['isInContent'])continue;if(_0x1f66d8!=_0x4cf8cd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4cf8cd['isIntersectingWithRange'](_0x2d4d6d))continue;const _0x2184e3=_0x22ee3e['hasAttribute'](_0x38a72c)?_0x22ee3e['getAttribute'](_0x38a72c)-0x1:0x0,_0x327e7a=this['_getSuggestionCoords'](_0x4cf8cd),_0x171104=_0x327e7a[_0x2dd8d0],_0x867d8c=_0x327e7a[_0x37949b];_0x171104<=_0x4af307[_0x54bbcd]&&_0x4af307[_0x54bbcd]+_0x2184e3<=_0x867d8c&&(_0x4cf8cd['addRange'](_0x2d4d6d),_0x12c802=!0x0);}return _0x12c802;};_0x455607['model']['document']['registerPostFixer'](_0x433b30=>{let _0x19ed38=!0x1;for(const _0x252291 of _0x455607['model']['document']['differ']['getChanges']())if('insert'==_0x252291['type']){if('tableRow'==_0x252291['name']){for(const _0x1699f0 of _0x252291['position']['nodeAfter']['getChildren']())_0x19ed38=_0x19ed38||_0x538dcb(_0x1699f0,_0x433b30);}else'tableCell'==_0x252291['name']&&(_0x19ed38=_0x19ed38||_0x538dcb(_0x252291['position']['nodeAfter'],_0x433b30));}return _0x19ed38;});}['_getSuggestionCoords'](_0x400ddf){return this['_getCoordsForCells'](_0x400ddf['getRanges']()['map'](_0x4f802a=>_0x4f802a['start']['nodeAfter']));}}function Ne(_0x39b57f){return Array['from'](new Set(_0x39b57f)['values']());}class Nt extends _0xb83fe9{static get['requires'](){return[Ct];}['afterInit'](){const _0x2b1afc=this['editor'],_0x5825cc=_0x2b1afc['model']['document']['selection'],_0x2892d1=_0x2b1afc['locale'];if(!_0x2b1afc['plugins']['has']('TableEditing'))return;const _0x512954=_0x2b1afc['plugins']['get']('TrackChangesEditing'),_0x37f4cc=_0x2b1afc['plugins']['get']('TableUtils'),_0x128b11=_0x2b1afc['plugins']['get'](Ct);_0x128b11['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x512954['enableCommand']('mergeTableCells',()=>{const _0xe034d2=_0x37f4cc['getSelectionAffectedTableCells'](_0x2b1afc['model']['document']['selection']);_0x2b1afc['model']['change'](()=>{_0x512954['markMultiRangeBlockFormat'](_0xe034d2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2b1afc['commands']['get']('mergeTableCells')['on']('execute',(_0x32f5f2,_0x565946)=>{_0x2b1afc['commands']['get']('trackChanges')['value']&&(_0x565946['length']>0x0&&_0x565946[_0x565946['length']-0x1]&&_0x565946[_0x565946['length']-0x1]['forceDefaultExecution']||_0x512954['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x32f5f2['stop']());},{'priority':'highest'});for(const _0x4351b6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2a5751=_0x2b1afc['commands']['get'](_0x4351b6);_0x512954['enableCommand'](_0x4351b6,()=>{const _0x11ca4c=_0x2b1afc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1de403=>_0x1de403['is']('element','tableCell')),_0x1d1ba7=_0x2a5751['value'];_0x2b1afc['model']['change'](()=>{_0x512954['markMultiRangeBlockFormat']([_0x11ca4c,_0x1d1ba7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x8e306a of['splitTableCellVertically','splitTableCellHorizontally']){const _0xbb7193=_0x2b1afc['commands']['get'](_0x8e306a);_0x512954['enableCommand'](_0x8e306a,()=>{const _0x3e9d90=_0x37f4cc['getSelectionAffectedTableCells'](_0x2b1afc['model']['document']['selection'])[0x0],_0x33c95a=_0x3e9d90['findAncestor']('table'),{column:_0xe40c0a,row:_0x465b14}=_0x37f4cc['getCellLocation'](_0x3e9d90);let _0x2cf0cc=[];if('horizontally'==_0xbb7193['direction']){const _0x59260f=_0x37f4cc['createTableWalker'](_0x33c95a,{'startRow':_0x465b14,'endRow':_0x465b14,'includeAllSlots':!0x0});_0x2cf0cc=Array['from'](_0x59260f)['map'](_0x265e79=>_0x265e79['cell']);}else{const _0x36e10b=_0x37f4cc['createTableWalker'](_0x33c95a,{'column':_0xe40c0a,'includeAllSlots':!0x0});_0x2cf0cc=Array['from'](_0x36e10b)['map'](_0x19482d=>_0x19482d['cell']);}_0x2b1afc['model']['change'](_0x10f40a=>{_0x512954['markBlockFormat'](_0x10f40a['createRangeOn'](_0x3e9d90),{'commandName':_0x8e306a,'commandParams':[]},_0x2cf0cc,_0x8e306a);});});}_0x512954['descriptionFactory']['registerDescriptionCallback'](_0x47e4d1=>{if('formatBlock'!=_0x47e4d1['type']&&'formatInline'!=_0x47e4d1['type'])return;const {data:_0x6f41c}=_0x47e4d1;return _0x6f41c&&'mergeTableCells'==_0x6f41c['commandName']?{'type':'format','content':c(_0x2892d1,'*Merge\x20cells*')}:void 0x0;}),_0x512954['descriptionFactory']['registerDescriptionCallback'](_0x3ac42c=>{if('formatBlock'!=_0x3ac42c['type']&&'formatInline'!=_0x3ac42c['type'])return;const {data:_0x5d12cb}=_0x3ac42c;return _0x5d12cb?'splitTableCellVertically'==_0x5d12cb['commandName']?{'type':'format','content':c(_0x2892d1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5d12cb['commandName']?{'type':'format','content':c(_0x2892d1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4d439f=_0x128b11['_acceptFormatSuggestionCallbackFactory']();for(const _0x57d727 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x512954['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57d727,'accept',_0x4d439f);for(const _0x365d00 of['splitTableCellVertically','splitTableCellHorizontally'])_0x512954['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x365d00,'accept',_0x4d439f);_0x512954['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x377e0a=>{_0x2b1afc['model']['change'](_0x26baf7=>{const _0x543e33=Array['from'](_0x5825cc['getRanges']())['map'](_0xd52e48=>_0x315628['fromRange'](_0xd52e48));_0x26baf7['setSelection'](_0x377e0a),_0x2b1afc['commands']['get']('mergeTableCells')['refresh'](),_0x2b1afc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1d2e85=_0x543e33['filter'](_0x2cdbe6=>'$graveyard'!=_0x2cdbe6['root']['rootName']);_0x1d2e85['length']>0x0&&_0x26baf7['setSelection'](_0x1d2e85);for(const _0x2c14a6 of _0x543e33)_0x2c14a6['detach']();});});for(const _0x1d7a85 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c140c=_0x2b1afc['commands']['get'](_0x1d7a85);_0x3c140c['on']('set:isEnabled',(_0x271e01,_0x4e86f5,_0x2b1646)=>{if(_0x2b1646){const _0x4f25da=_0x2b1afc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1e683f=>_0x1e683f['is']('element','tableCell'));this['_areMergableCells'](_0x3c140c['value'],_0x4f25da)||(_0x271e01['return']=!0x1,_0x271e01['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3fd3bd=this['editor']['commands']['get']('mergeTableCells'),_0x34eff2=this['editor']['plugins']['get']('TableUtils');if(!_0x3fd3bd['isEnabled'])return!0x1;const _0x35d2c5=_0x34eff2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3824e4 of _0x35d2c5)for(const _0x28974b of _0x35d2c5)if(_0x3824e4!=_0x28974b&&!this['_areMergableCells'](_0x3824e4,_0x28974b))return!0x1;return!0x0;}['_areMergableCells'](_0x5c2ed5,_0x1282c3){const _0x16fc5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c9511=this['editor']['model']['createRangeOn'](_0x5c2ed5),_0x389887=this['editor']['model']['createRangeOn'](_0x1282c3),_0x1aa73e=new Set(),_0x567348=new Set();for(const _0x4b25eb of _0x16fc5b['getSuggestions']())if(('insertion'==_0x4b25eb['type']||'deletion'==_0x4b25eb['type']||'mergeTableCells'==_0x4b25eb['subType'])&&_0x4b25eb['isInContent']){for(const _0x2651d1 of _0x4b25eb['getRanges']())_0x2651d1['containsRange'](_0x4c9511,!0x0)&&_0x1aa73e['add'](_0x4b25eb['type']+':'+_0x4b25eb['author']['id']),_0x2651d1['containsRange'](_0x389887,!0x0)&&_0x567348['add'](_0x4b25eb['type']+':'+_0x4b25eb['author']['id']);}if(_0x1aa73e['size']!=_0x567348['size'])return!0x1;for(const _0x10d0a5 of _0x1aa73e)if(!_0x567348['has'](_0x10d0a5))return!0x1;return!0x0;}}class Dt extends _0xb83fe9{static get['requires'](){return[Ct];}['afterInit'](){const _0x3029ea=this['editor'];if(!_0x3029ea['plugins']['has']('TableEditing'))return;const _0x3da6b8=_0x3029ea['locale'],_0x38d207=_0x3029ea['plugins']['get']('TrackChangesEditing');_0x38d207['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x38d207['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x38d207['registerBlockAttribute']('headingRows'),_0x38d207['registerBlockAttribute']('headingColumns'),_0x38d207['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x3da6b8,'FORMAT_HEADER_ROW')),_0x38d207['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x3da6b8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30766c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e6023=this['editor']['plugins']['get']('TableUtils'),_0x3f5307=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x4118ce({showActiveMarker:_0x48d093=!0x0,setDataAttribute:_0x5316ed=!0x0}={}){return(_0x573ae4,_0x2f62a4,_0x9178b9)=>{const {type:_0x2c0341,id:_0x88a816}=_0x30766c['_splitMarkerName'](_0x2f62a4['markerName']),_0x24ea6c=_0x30766c['getSuggestion'](_0x88a816),_0x1db2d3=_0x24ea6c['data'];if('formatBlock'!=_0x24ea6c['type']||!_0x1db2d3||'setTableColumnHeader'!=_0x1db2d3['commandName'])return;if(_0x2f62a4['item'])return void _0x573ae4['stop']();if(!_0x9178b9['consumable']['consume'](_0x2f62a4['markerRange'],_0x573ae4['name']))return;const _0x4aa212=_0x2f62a4['markerRange']['start']['nodeAfter'],_0x13ed8a=_0x2f62a4['markerRange']['end']['nodeBefore'],_0x1f3640=_0x4aa212['parent']['parent'],{column:_0x43a624}=_0x3e6023['getCellLocation'](_0x4aa212),{column:_0x474ee8}=_0x3e6023['getCellLocation'](_0x13ed8a);for(let _0x37a950=_0x43a624;_0x37a950<=_0x474ee8;_0x37a950++){const _0x440bb2=_0x3e6023['createTableWalker'](_0x1f3640,{'column':_0x37a950,'includeAllSlots':!0x1});for(const _0x1c6b68 of _0x440bb2){const _0x2f76d8=_0x1c6b68['cell'],_0x14b253=_0x9178b9['mapper']['toViewElement'](_0x2f76d8);_0x9178b9['writer']['addClass']('ck-suggestion-marker-'+_0x2c0341,_0x14b253),_0x5316ed&&_0x9178b9['writer']['setAttribute']('data-suggestion',_0x88a816,_0x14b253),_0x9178b9['mapper']['bindElementToMarker'](_0x14b253,_0x2f62a4['markerName']),_0x48d093&&(_0x30766c['activeMarkers']['includes'](_0x2f62a4['markerName'])?_0x9178b9['writer']['addClass']('ck-suggestion-marker--active',_0x14b253):_0x9178b9['writer']['removeClass']('ck-suggestion-marker--active',_0x14b253));}}};}_0x30766c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3f5307),_0x30766c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3f5307),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4118ce(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b733e,_0x5214a2,_0x573792)=>{_0x573792['options']['showSuggestionHighlights']&&_0x4118ce({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1b733e,_0x5214a2,_0x573792);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4f899b,_0x44145e,_0x46cb97)=>{const {type:_0x51d465,id:_0xc1eb13}=_0x30766c['_splitMarkerName'](_0x44145e['markerName']),_0x114a45=_0x30766c['getSuggestion'](_0xc1eb13),_0x27fd36=_0x114a45['data'];if('formatBlock'!=_0x114a45['type']||!_0x27fd36||'setTableColumnHeader'!=_0x27fd36['commandName'])return;const _0x264a3a=_0x46cb97['mapper']['markerNameToElements'](_0x44145e['markerName']);if(_0x264a3a){for(const _0x208707 of _0x264a3a)_0x46cb97['writer']['removeClass']('ck-suggestion-marker-'+_0x51d465,_0x208707),_0x46cb97['writer']['removeClass']('ck-suggestion-marker--active',_0x208707),_0x46cb97['writer']['removeAttribute']('data-suggestion',_0x208707),_0x46cb97['mapper']['unbindElementFromMarkerName'](_0x208707,_0x44145e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51e736=this['editor'],_0x4ad296=_0x51e736['locale'];function _0x480813(_0x4785ec){return{'type':'format','content':c(_0x4ad296,'*Format:*\x20%0',_0x4785ec)};}_0x51e736['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ddcf7=>{if('formatBlock'!=_0x5ddcf7['type'])return;const {data:_0x376b04}=_0x5ddcf7;if(_0x376b04){if('setTableRowHeader'==_0x376b04['commandName']){const _0x2cc189=_0x376b04['commandParams'][0x0]['forceValue'];return _0x480813(c(_0x4ad296,_0x2cc189?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x376b04['commandName']){const _0x10111f=_0x376b04['commandParams'][0x0]['forceValue'];return _0x480813(c(_0x4ad296,_0x10111f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3a8cd0=>[_0x3a8cd0,null]));class Mt extends _0xb83fe9{static get['requires'](){return[Ct];}['afterInit'](){const _0x28ae1b=this['editor'];if(!_0x28ae1b['plugins']['has']('TableClipboard'))return;const _0x3415ef=_0x28ae1b['plugins']['get']('TrackChangesEditing'),_0x2fc041=_0x28ae1b['plugins']['get']('TableUtils'),_0x4109c9=_0x28ae1b['plugins']['get'](Ct),_0x3473f3=_0x28ae1b['plugins']['get']('TableClipboard');_0x4109c9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x28ae1b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x28ae1b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5e3c1e=null;_0x28ae1b['model']['on']('insertContent',(_0x1d6e77,_0x4f4cec)=>{const [_0x1af43a,_0x3eb392]=_0x4f4cec,_0x51521c=_0x4f4cec[_0x4f4cec['length']-0x1];_0x51521c&&_0x51521c['forceDefaultExecution']||_0x3415ef['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x39c63f,_0x387696,_0x1fc5c0,_0x317db1,_0x5508b1){if(_0x387696&&!_0x387696['is']('documentSelection'))return!0x1;const _0xacdb90=_0x5508b1['getTableIfOnlyTableInContent'](_0x39c63f,_0x1fc5c0);if(!_0xacdb90||!Ue(_0xacdb90,void 0x0,_0x317db1))return!0x1;const _0x5cbd2d=_0x317db1['getSelectionAffectedTableCells'](_0x1fc5c0['document']['selection']);if(!_0x5cbd2d['length'])return!0x1;const _0x53255c=_0x5cbd2d[0x0]['findAncestor']('table'),_0x12473b=_0x317db1['getRowIndexes'](_0x5cbd2d),_0x283383=_0x317db1['getColumnIndexes'](_0x5cbd2d),_0x532736={'startRow':_0x12473b['first'],'endRow':_0x12473b['last'],'startColumn':_0x283383['first'],'endColumn':_0x283383['last']};return 0x1==_0x5cbd2d['length']&&(_0x532736['endRow']+=_0x317db1['getRows'](_0xacdb90)-0x1,_0x532736['endColumn']+=_0x317db1['getColumns'](_0xacdb90)-0x1),Ue(_0x53255c,_0x532736,_0x317db1);}(_0x1af43a,_0x3eb392,_0x28ae1b['model'],_0x2fc041,_0x3473f3)&&(_0x1d6e77['stop'](),_0x5e3c1e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x28ae1b['model']['change'](()=>{_0x28ae1b['model']['insertContent'](_0x4f4cec[0x0],_0x4f4cec[0x1],_0x4f4cec[0x2],{'forceDefaultExecution':!0x0});const _0x42441b=_0x429b71(),{rowInsertionRanges:_0x186529,columnInsertionRanges:_0x267773,insertionRanges:_0x3065b0,deletionRanges:_0x1ad213,cells:_0x476ea6}=_0x5e3c1e;_0x186529['length']&&_0x3415ef['markMultiRangeInsertion'](_0x186529,'tablePasteRow',{'tablePasteChainId':_0x42441b}),_0x267773['length']&&_0x3415ef['markMultiRangeInsertion'](_0x267773,'tablePasteColumn',{'tablePasteChainId':_0x42441b}),_0x3065b0['length']&&(_0x3415ef['markMultiRangeInsertion'](_0x3065b0,'tablePaste',{'tablePasteChainId':_0x42441b,'skipNestingCheck':!0x0}),_0x3065b0['forEach'](_0x1ae16c=>_0x1ae16c['detach']?.())),_0x1ad213['length']&&(_0x3415ef['markMultiRangeDeletion'](_0x1ad213,'tablePaste',{'tablePasteChainId':_0x42441b,'skipNestingCheck':!0x0}),_0x1ad213['forEach'](_0x127820=>_0x127820['detach']?.()));const _0x223a0b=_0x3415ef['markMultiRangeBlockFormat'](_0x476ea6['map'](({element:_0x4b1f08})=>_0x4b1f08),{'formatGroupId':_0x429b71()},[],'tablePasteCell',{'tablePasteChainId':_0x42441b});if(_0x223a0b){const _0x2b9d47=_0x223a0b['getMarkers'](),_0x3f7309=[];for(const {element:_0x161018,attributes:_0x1435eb}of _0x476ea6){if(!_0x1435eb)continue;const _0x5bc894=_0x28ae1b['model']['createRangeOn'](_0x161018),_0x54e36c=_0x2b9d47['find'](_0x198cc9=>_0x198cc9['getRange']()['isEqual'](_0x5bc894));_0x54e36c&&_0x3f7309['push']([_0x54e36c['name'],_0x1435eb]);}_0x3f7309['length']&&_0x223a0b['setAttribute']('markerAttributes',Object['fromEntries'](_0x3f7309));}_0x5e3c1e=null;}));},{'priority':_0xc373b8['high']+0xa}),_0x28ae1b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1fd3cf,_0x10a999)=>{const [_0x74252e,_0x1dd8e7,,_0x4199cd]=_0x10a999;if(!_0x5e3c1e)return;_0x1fd3cf['stop']();const _0x2a0a42=_0x74252e['cell'],_0x1a7541=_0x1dd8e7,_0x2bc6ca=Oe(_0x2a0a42),_0x626ac7=Oe(_0x1a7541);_0x1fd3cf['return']=_0x2a0a42;let _0x39d138=null,_0x29063f=null;if(_0x626ac7||_0x2bc6ca){if(_0x2bc6ca&&!_0x626ac7){_0x4199cd['remove'](_0x2a0a42['getChild'](0x0));for(const _0x1c176c of Array['from'](_0x1a7541['getChildren']()))_0x4199cd['insert'](_0x1c176c,_0x2a0a42,'end');const _0x5810b2=_0x5e3c1e['rowInsertionIndexes']['includes'](_0x74252e['row']),_0x8762e4=_0x5e3c1e['columnInsertionIndexes']['includes'](_0x74252e['column']);_0x5810b2||_0x8762e4||(_0x39d138=_0x315628['fromRange'](_0x4199cd['createRangeIn'](_0x2a0a42)));}else _0x626ac7&&!_0x2bc6ca&&(_0x29063f=_0x4199cd['createRangeIn'](_0x2a0a42));}else{const _0x306469=_0x4199cd['createElement']('tableCellSuggestion'),_0x48feb4=_0x4199cd['createElement']('tableCellSuggestion');_0x4199cd['wrap'](_0x4199cd['createRangeIn'](_0x2a0a42),_0x48feb4),_0x4199cd['insert'](_0x306469,_0x2a0a42,0x0);for(const _0x26fadd of Array['from'](_0x1a7541['getChildren']()))_0x4199cd['insert'](_0x26fadd,_0x306469,'end');_0x39d138=_0x315628['fromRange'](_0x4199cd['createRangeOn'](_0x306469)),_0x29063f=_0x315628['fromRange'](_0x4199cd['createRangeOn'](_0x48feb4));}const _0x3086d8=Array['from'](_0x1a7541['getAttributes']())['filter'](([_0x1e724f])=>Be['includes'](_0x1e724f));_0x5e3c1e['cells']['push']({'element':_0x2a0a42,'attributes':_0x3086d8['length']?Object['fromEntries'](_0x3086d8):null}),_0x39d138&&_0x5e3c1e['insertionRanges']['push'](_0x39d138),_0x29063f&&_0x5e3c1e['deletionRanges']['push'](_0x29063f);},{'priority':'high'}),_0x2fc041['on']('insertColumns',(_0x9ed4b9,_0x5890dc)=>{const [_0x1c0c29,_0x3b180e={}]=_0x5890dc;if(!_0x5e3c1e)return;const _0xcc28ce=_0x3b180e['at']||0x0,_0x2dd7c7=_0x3b180e['columns']||0x1;_0x5e3c1e['columnInsertionIndexes']=new Array(_0x2dd7c7)['fill'](_0xcc28ce)['map']((_0x19ec0e,_0x1ff926)=>_0x19ec0e+_0x1ff926);for(const {cell:_0x5d064b}of _0x2fc041['createTableWalker'](_0x1c0c29,{'startColumn':_0xcc28ce,'endColumn':_0xcc28ce+_0x2dd7c7-0x1}))_0x5e3c1e['columnInsertionRanges']['push'](_0x28ae1b['model']['createRangeOn'](_0x5d064b));},{'priority':'low'}),_0x2fc041['on']('insertRows',(_0x5c4617,_0x1d1c82)=>{const [_0x492380,_0x2dec0d={}]=_0x1d1c82;if(!_0x5e3c1e)return;const _0x183853=_0x2dec0d['at']||0x0,_0x3c9d77=_0x2dec0d['rows']||0x1;_0x5e3c1e['rowInsertionIndexes']=new Array(_0x3c9d77)['fill'](_0x183853)['map']((_0x416c06,_0x22168a)=>_0x416c06+_0x22168a);for(const {cell:_0x4243d3}of _0x2fc041['createTableWalker'](_0x492380,{'startRow':_0x183853,'endRow':_0x183853+_0x3c9d77-0x1}))_0x5e3c1e['rowInsertionRanges']['push'](_0x28ae1b['model']['createRangeOn'](_0x4243d3));},{'priority':'low'}),_0x3415ef['descriptionFactory']['registerDescriptionCallback'](_0x1bdb1a=>{if(_0x1bdb1a['subType']&&_0x1bdb1a['subType']['startsWith']('tablePaste'))return _0x1bdb1a['previous']?{}:{'type':'insertion','content':c(_0x28ae1b['locale'],'*Replace\x20table\x20cells*')};});const _0x2dbeb1=()=>!0x1;for(const _0x10ae85 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3415ef['_suggestionFactory']['registerCustomCallback']('insertion',_0x10ae85,'join',_0x2dbeb1),_0x3415ef['_suggestionFactory']['registerCustomCallback']('deletion',_0x10ae85,'join',_0x2dbeb1),_0x3415ef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10ae85,'join',_0x2dbeb1);_0x3415ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2dbeb1),_0x3415ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x323d85,_0x2246f0,_0x1736c6)=>{const _0x5e6580=_0x323d85['map'](_0x576413=>_0x576413['getContainedElement']())['filter'](_0x3039f6=>_0x3039f6),_0xafbae2=new Map(_0x5e6580['map'](_0x1fc4db=>[_0x1fc4db,null]));if(_0x5e3c1e){for(const {element:_0x867960,attributes:_0xda7915}of _0x5e3c1e['cells'])_0xda7915&&_0xafbae2['set'](_0x867960,_0xda7915);}else{if(_0x1736c6&&_0x1736c6['markerAttributes'])for(const [_0xbef5b7,_0x35ff66]of Object['entries'](_0x1736c6['markerAttributes'])){const _0x4051ea=_0x28ae1b['model']['markers']['get'](_0xbef5b7),_0x4f9b6a=_0x4051ea?_0x4051ea['getRange']()['getContainedElement']():null;_0x4f9b6a&&_0xafbae2['set'](_0x4f9b6a,_0x35ff66);}}_0x28ae1b['model']['change'](_0x2eb8eb=>{for(const [_0x80703,_0x1e018a]of _0xafbae2)_0x2eb8eb['setAttributes']({...xe,..._0x1e018a},_0x80703);});});const _0x44ce06=(_0x245fb8,_0x36ae08)=>{_0x3415ef['_suggestionFactory']['registerCustomCallback'](_0x245fb8,'tablePaste',_0x36ae08,(_0x85001d,_0x4d9f76,_0x4f86e1)=>{_0x28ae1b['model']['change'](_0x52fc8f=>{const _0x16d9c8=[];for(const _0x5c506c of _0x85001d){const _0xeb1d2f=_0x5c506c['start']['nodeAfter'];_0xeb1d2f['is']('element','tableCellSuggestion')&&_0x16d9c8['push'](_0xeb1d2f);}_0x3415ef['_suggestionFactory']['getSuggestionCallback'](_0x245fb8,null,_0x36ae08)(_0x85001d,_0x4d9f76,_0x4f86e1);for(const _0x214cf9 of _0x16d9c8)'$graveyard'!=_0x214cf9['root']['rootName']&&_0x52fc8f['unwrap'](_0x214cf9);});});};_0x44ce06('insertion','accept'),_0x44ce06('insertion','discard'),_0x44ce06('deletion','accept'),_0x44ce06('deletion','discard'),_0x3415ef['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5f5450=>{const _0x1eb70=_0x5f5450['map'](_0x4b376=>_0x4b376['getContainedElement']()),_0x1665ef=_0x1eb70[0x0]['findAncestor']('table'),{minRow:_0x263282,maxRow:_0x19e1c3}=_0x4109c9['_getCoordsForCells'](_0x1eb70);_0x2fc041['removeRows'](_0x1665ef,{'at':_0x263282,'rows':_0x19e1c3-_0x263282+0x1});}),_0x3415ef['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x45ebc5=>{const _0x1d51c9=_0x45ebc5['map'](_0x5f2f2c=>_0x5f2f2c['getContainedElement']()),_0xdedd72=_0x1d51c9[0x0]['findAncestor']('table'),{minColumn:_0x16ad5a,maxColumn:_0x314a4c}=_0x4109c9['_getCoordsForCells'](_0x1d51c9);_0x2fc041['removeColumns'](_0xdedd72,{'at':_0x16ad5a,'columns':_0x314a4c-_0x16ad5a+0x1});});const _0x3e5665=(_0x3ca7ec,_0x41f122)=>{if(!_0x41f122['subType']||!_0x41f122['subType']['startsWith']('tablePaste'))return;const _0x351abc=_0x41f122['attributes']['tablePasteChainId'],_0x2dd8de=_0x3415ef['getSuggestions']()['filter'](_0x1f5050=>_0x1f5050['isInContent']&&_0x1f5050['attributes']&&_0x1f5050['attributes']['tablePasteChainId']==_0x351abc);_0x2dd8de['length']&&_0x41f122['getAllAdjacentSuggestions']()['length']!=_0x2dd8de['length']&&_0x2dd8de['reduce']((_0x135011,_0x452d2f)=>(_0x135011['next']=_0x452d2f,_0x452d2f['previous']=_0x135011,_0x452d2f));};function _0x43aa44(_0x3a30d8,_0x270ec0=!0x0){const {id:_0xada233,authorId:_0x4d656c}=_0x3415ef['_splitMarkerName'](_0x3a30d8['markerName']),_0x78597e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x36af4f=_0x3415ef['activeMarkers']['includes'](_0x3a30d8['markerName']);return _0x36af4f&&_0x78597e['push']('ck-suggestion-marker--active'),{'classes':_0x78597e,'attributes':{'data-suggestion':_0xada233,'data-author-id':_0x4d656c},'priority':_0x36af4f&&_0x270ec0?0xbc2:0xbb8};}_0x3415ef['on']('suggestionLoaded',_0x3e5665,{'priority':'high'}),_0x3415ef['on']('suggestionUnloaded',_0x3e5665,{'priority':'high'}),_0x28ae1b['model']['document']['registerPostFixer'](()=>{let _0x96a03a=!0x1;const _0x31ed88=Array['from'](_0x28ae1b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f53be,data:_0x2035b8}of _0x31ed88){const {group:_0x9d51ec,type:_0x4a7e49,id:_0x49e706}=_0x3415ef['_splitMarkerName'](_0x2f53be);if('suggestion'!=_0x9d51ec||'deletion'!=_0x4a7e49||_0x2035b8['oldRange'])continue;if(!_0x3415ef['hasSuggestion'](_0x49e706))continue;const _0x3269a3=_0x3415ef['getSuggestion'](_0x49e706)['getRanges'](),_0x48e527=_0x28ae1b['plugins']['get']('Users')['me'];for(const _0x259fbf of _0x3415ef['getSuggestions']()){if(!_0x259fbf['isInContent']||_0x259fbf['author']!=_0x48e527)continue;if('formatBlock'!=_0x259fbf['type']||'tablePasteCell'!=_0x259fbf['subType'])continue;if(_0x259fbf['getRanges']()['every'](_0x55a286=>_0x3269a3['some'](_0x2ebc38=>_0x2ebc38['containsRange'](_0x55a286,!0x0)))){for(const _0x421cfe of _0x259fbf['getAllAdjacentSuggestions']())_0x421cfe['isInContent']&&(_0x421cfe['discard'](),_0x96a03a=!0x0);}}}return _0x96a03a;}),_0x28ae1b['model']['document']['registerPostFixer'](_0x479f81=>{const _0x382957=_0x28ae1b['commands']['get']('redo');if(!_0x382957||!_0x382957['_createdBatches']['has'](_0x479f81['batch']))return!0x1;let _0x119180=!0x1;const _0x4dde8d=_0x28ae1b['plugins']['get']('Users')['me'],_0x1f3c24=_0x28ae1b['model']['document']['differ']['getChanges'](),_0x108038=Array['from'](_0x28ae1b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5809fd,data:_0x6de927})=>{const {group:_0x1db787,subType:_0x2488fd,authorId:_0x552481}=_0x3415ef['_splitMarkerName'](_0x5809fd);return'suggestion'==_0x1db787&&'tablePaste'==_0x2488fd&&_0x552481==_0x4dde8d['id']&&!_0x6de927['oldRange'];});for(const _0x25fc96 of _0x1f3c24){if('insert'!=_0x25fc96['type']||'tableCellSuggestion'!=_0x25fc96['name']||0x1!=_0x25fc96['length'])continue;const _0x53fc77=_0x479f81['createRange'](_0x25fc96['position'],_0x25fc96['position']['getShiftedBy'](0x1));if(!_0x108038['find'](({data:_0x2265b3})=>_0x2265b3['newRange']['isEqual'](_0x53fc77))){for(const {name:_0x4efde0,data:_0xd5b96b}of _0x108038)if(_0x53fc77['containsRange'](_0xd5b96b['newRange'])){_0x479f81['updateMarker'](_0x4efde0,{'range':_0x53fc77}),_0x119180=!0x0;break;}}}return _0x119180;}),_0x28ae1b['model']['document']['registerPostFixer'](_0xa810c2=>{let _0x41c6ab=!0x1;const _0x33ff1a=_0x28ae1b['plugins']['get']('Users')['me'],_0x181b23=_0x3415ef['getSuggestions']()['filter'](_0x5d2ff5=>_0x5d2ff5['isInContent']&&_0x5d2ff5['author']==_0x33ff1a),_0x3b419b=new Set(),_0x522691=new Set();for(const _0xd4d594 of _0x181b23)if('tablePaste'==_0xd4d594['subType'])for(const _0x373890 of _0xd4d594['getMarkers']()){const _0x4935af=_0x373890['getRange']()['getContainedElement']();if(_0x4935af){if(_0x4935af['is']('element','tableCellSuggestion')&&Oe(_0x4935af)){_0xd4d594['removeMarker'](_0x373890['name']),_0x3b419b['add'](_0x4935af),_0x41c6ab=!0x0;const _0xd255e3=_0x4935af['nextSibling'],_0x5a6f4a=_0x4935af['previousSibling'],_0x407423=_0xd255e3&&_0xd255e3['is']('element','tableCellSuggestion'),_0x6cdcfb=_0x5a6f4a&&_0x5a6f4a['is']('element','tableCellSuggestion');_0x407423&&!_0x3b419b['has'](_0xd255e3)&&_0x522691['add'](_0xd255e3),_0x6cdcfb&&!_0x3b419b['has'](_0x5a6f4a)&&_0x522691['add'](_0x5a6f4a);}else _0x4935af['is']('element','paragraph')&&_0x4935af['isEmpty']&&(_0xd4d594['removeMarker'](_0x373890['name']),_0x41c6ab=!0x0);}}else{if('tablePasteCell'==_0xd4d594['subType']){if(!_0xd4d594['attributes']||!_0xd4d594['attributes']['tablePasteChainId'])continue;const _0x501096=_0xd4d594['attributes']['markerAttributes'];if(_0x501096&&Object['keys'](_0x501096)['length'])continue;const _0x4d50b3=_0xd4d594['attributes']['tablePasteChainId'];let _0x519cf5=!0x0,_0x3120a6=!0x0;for(const _0x383326 of _0x181b23)if(_0x383326['subType']&&_0x383326['subType']['startsWith']('tablePaste')){if(!_0x383326['attributes']['tablePasteChainId']){_0x3120a6=!0x1;break;}if(_0x383326['id']!=_0xd4d594['id']&&_0x383326['attributes']['tablePasteChainId']==_0x4d50b3){_0x519cf5=!0x1;break;}}_0x3120a6&&_0x519cf5&&(_0xd4d594['removeMarkers'](),_0x41c6ab=!0x0);}}for(const _0x217de8 of _0x3b419b)_0xa810c2['remove'](_0x217de8);for(const _0x2adcf0 of _0x522691)_0xa810c2['unwrap'](_0x2adcf0);return _0x41c6ab;}),_0x28ae1b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x43baf2=>_0x43aa44(_0x43baf2),'converterPriority':'high'}),_0x28ae1b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4ac0ac,_0x49f17c)=>_0x49f17c['options']['showSuggestionHighlights']?_0x43aa44(_0x4ac0ac,!0x1):null,'converterPriority':'high'});const _0x22ae5a=_0x28ae1b['editing']['view'];this['listenTo'](_0x22ae5a['document'],'clipboardOutput',(_0x1d7fdc,_0x526c9a)=>{const _0x89c3f0=[];for(const _0x76e0fb of _0x22ae5a['createRangeIn'](_0x526c9a['content'])['getItems']())_0x76e0fb['is']('element','suggestion-td')&&_0x89c3f0['push'](_0x76e0fb);_0x22ae5a['change'](_0x597dd5=>{for(const _0x56494f of _0x89c3f0)_0x597dd5['move'](_0x597dd5['createRangeIn'](_0x56494f),_0x597dd5['createPositionBefore'](_0x56494f)),_0x597dd5['remove'](_0x56494f);});});}}function Oe(_0x1a590e){if(_0x1a590e['isEmpty'])return!0x0;const _0x4479ab=_0x1a590e['getChild'](0x0);return _0x4479ab['is']('element','paragraph')&&_0x4479ab['isEmpty'];}function Ue(_0x5f1fb3,_0x58c169={},_0x94a71e){for(const {isAnchor:_0x35909c,cellHeight:_0x3988f0,cellWidth:_0x44dd2f}of _0x94a71e['createTableWalker'](_0x5f1fb3,{'includeAllSlots':!0x0,..._0x58c169}))if(!_0x35909c||0x1!=_0x3988f0||0x1!=_0x44dd2f)return!0x1;return!0x0;}class $t extends _0xb83fe9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x8dc125=this['editor']['plugins']['get']('TrackChangesEditing');_0x8dc125['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x8dc125['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x8dc125['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8dc125['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x8dc125['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x8dc125['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1725ad,_0x2e4757){const _0x19f039=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36a32f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x268b89=_0x2e4757['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7e3b8a=_0x36a32f['getColumnGroupElement'](_0x268b89);let _0x1d9015=_0x7e3b8a?_0x36a32f['getTableColumnsWidths'](_0x7e3b8a):null,_0x54686d=_0x268b89['getAttribute']('tableWidth')||null;const _0x51d50f=_0x2e4757['tableWidth']||_0x54686d,_0x51ee92=_0x2e4757['columnWidths']||_0x1d9015,_0x2092b6=this['editor']['plugins']['get']('Users')['me'];for(const _0x319f86 of _0x19f039['getSuggestions']()){const _0x100849=_0x319f86['getContainedElement']();if('resizeTable'===_0x319f86['subType']&&_0x100849===_0x268b89){_0x319f86['author']!==_0x2092b6&&_0x319f86['discard']();const _0x3411ae=_0x319f86['data']['commandParams'];_0x54686d=_0x3411ae[0x0]['tableWidth'],_0x1d9015=_0x3411ae[0x0]['columnWidths'];break;}}_0x1725ad({'table':_0x268b89,'tableWidth':_0x51d50f,'columnWidths':_0x51ee92}),_0x19f039['markBlockFormat'](_0x268b89,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x54686d,'columnWidths':_0x1d9015}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x34db07){if('formatBlock'!=_0x34db07['type']&&'formatInline'!=_0x34db07['type'])return;const {data:_0x47c117}=_0x34db07;if(_0x47c117&&'resizeTable'===_0x47c117['formatGroupId']){const _0x270ca5='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x270ca5)};}}}class Bt extends _0xb83fe9{['afterInit'](){const _0x217cb2=this['editor'];_0x217cb2['plugins']['has']('Template')&&_0x217cb2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0xb83fe9{['afterInit'](){const _0x41eb51=this['editor'];if(!_0x41eb51['commands']['get']('insertTableOfContents'))return;_0x41eb51['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x24835b=_0x41eb51['plugins']['get']('TrackChangesEditing'),_0x26f6e7=_0x41eb51['locale'];_0x24835b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x218050=>c(_0x26f6e7,'ELEMENT_TABLE_OF_CONTENTS',_0x218050));}}class Rt extends _0xb83fe9{['afterInit'](){const _0x1b6409=this['editor'];if(!_0x1b6409['plugins']['has']('Title'))return;const _0x344b44=_0x1b6409['plugins']['get']('TrackChangesEditing');_0x344b44['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1b6409['locale'],'ELEMENT_TITLE')),_0x1b6409['model']['document']['registerPostFixer'](_0xb82fae=>{let _0xfcecd9=!0x1;const _0x50e45c=Array['from'](_0x1b6409['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f57f9,data:_0x56dd1e}of _0x50e45c){const {group:_0x1369c4}=_0x344b44['_splitMarkerName'](_0x1f57f9);if('suggestion'!==_0x1369c4||!_0x56dd1e['newRange'])continue;const _0x54f570=_0x56dd1e['newRange'],_0x5ea939=_0x54f570['end']['nodeBefore'];if(!_0x5ea939||!_0x5ea939['is']('element','title-content'))continue;if(!_0x54f570['start']['isTouching'](_0x54f570['end']))continue;const _0x231777=_0x1b6409['model']['schema']['getNearestSelectionRange'](_0x54f570['end'],'forward');if(_0x231777&&_0x231777['isCollapsed']){const _0xaca7fa=_0xb82fae['createRange'](_0x54f570['start'],_0x231777['start']);_0xaca7fa['isEqual'](_0x54f570)||(_0xb82fae['updateMarker'](_0x1f57f9,{'range':_0xaca7fa}),_0xfcecd9=!0x0);}_0xfcecd9||(_0xb82fae['removeMarker'](_0x1f57f9),_0xfcecd9=!0x0);}return _0xfcecd9;});}}class xt extends _0xb83fe9{['afterInit'](){const _0x266fe7=this['editor'],_0x563cf0=_0x266fe7['plugins']['get']('TrackChangesEditing');_0x266fe7['plugins']['has']('Uploadcare')&&(_0x563cf0['enableCommand']('uploadcare'),_0x266fe7['plugins']['has']('UploadcareImageEdit')&&(_0x563cf0['enableCommand']('uploadcareImageEdit'),_0x563cf0['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x563cf0['registerBlockAttribute']('uploadcareImageId'),_0x563cf0['descriptionFactory']['registerDescriptionCallback'](_0x5b0724=>{if('attribute'!=_0x5b0724['type'])return;const {data:_0x2d5eb8}=_0x5b0724;return _0x2d5eb8&&'uploadcareImageId'==_0x2d5eb8['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0xb83fe9{['afterInit'](){const _0x2a831b=this['editor'],_0x1dc747=_0x2a831b['plugins']['get']('TrackChangesEditing');_0x2a831b['plugins']['has']('UndoEditing')&&(_0x1dc747['enableCommand']('undo'),_0x1dc747['enableCommand']('redo'));}}class Et extends _0xb83fe9{static get['requires'](){return[Ct];}['afterInit'](){const _0x30ee58=this['editor'];if(!_0x30ee58['plugins']['has']('TableCaptionEditing'))return;_0x30ee58['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0xb83fe9{['tableProperties'];['tableCellProperties'];constructor(_0xa85fd7){super(_0xa85fd7),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 _0x2fe6ec=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5c6df0 of this['tableProperties'])_0x2fe6ec['enableCommand'](_0x5c6df0,(_0x433ff8,_0x3db8b5)=>{const _0x28538f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5c6df0,[_0x28538f],this['tableProperties'],'tableProperties',_0x433ff8,_0x3db8b5);});_0x2fe6ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2fe6ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2fe6ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x328884,_0x5a5989)=>this['handleDiscardAction'](this['tableProperties'],_0x328884,_0x5a5989)),_0x2fe6ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x15fca2 of this['tableCellProperties'])_0x2fe6ec['enableCommand'](_0x15fca2,(_0x550605,_0x31d326)=>{const _0x116bb4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x15fca2,_0x116bb4,this['tableCellProperties'],'tableCellProperties',_0x550605,_0x31d326);});_0x2fe6ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2fe6ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2fe6ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x75c9b6,_0x32f5a4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x75c9b6,_0x32f5a4)),_0x2fe6ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2fe6ec['descriptionFactory']['registerDescriptionCallback'](_0x56f34f=>this['handleSuggestionDescription'](_0x56f34f));}['_handlePropertyChange'](_0x497178,_0xc52277,_0xd08c33,_0x5f2ed2,_0x5b6dae,_0x3e3cc0){const _0x1bd638=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3e3cc0['batch'],()=>{for(const _0x4290ec of _0xc52277){if(this['_getSuggestion'](_0x4290ec,_0x5f2ed2))_0x5b6dae(_0x3e3cc0);else{const _0x4dc4d1={};for(const _0x3b02fa of _0xd08c33){const _0x286639=_0x4290ec['getAttribute'](_0x3b02fa);void 0x0!==_0x286639&&(_0x4dc4d1[_0x3b02fa]=_0x286639);}_0x5b6dae(_0x3e3cc0),_0x1bd638['markBlockFormat'](_0x4290ec,{'commandParams':[_0x4dc4d1]},[],_0x5f2ed2);}}});}['handleDiscardAction'](_0x3bba31,_0x2432dd,_0x1936e8){const _0x17339=_0x2432dd[0x0]['start']['nodeAfter'],_0x1c96be=_0x1936e8['commandParams'][0x0];this['editor']['model']['change'](_0x456fbe=>{for(const _0x61ccbe of _0x3bba31)void 0x0!==_0x1c96be[_0x61ccbe]?_0x456fbe['setAttribute'](_0x61ccbe,_0x1c96be[_0x61ccbe],_0x17339):_0x456fbe['removeAttribute'](_0x61ccbe,_0x17339);});}['handleSuggestionDescription'](_0x117cbe){if(_0x117cbe['data'])switch(_0x117cbe['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'](_0x27d274,_0x492289){const _0xc1ef16=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x462624 of _0xc1ef16['getSuggestions']({'skipNotAttached':!0x0})){const _0x5a4f97=_0x462624['getContainedElement']();if(_0x462624['subType']===_0x492289&&_0x5a4f97===_0x27d274)return _0x462624;}return null;}}const u='$elementName';class p extends _0xb83fe9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x54b124,_0x33cfe8,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,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x294039){super(_0x294039),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x39e2be,_0x56fefa,_0xfa8154,_0x3dd089)=>{this['_model']['change'](()=>{for(const _0x428233 of[..._0x3dd089,..._0xfa8154])this['_model']['markers']['has'](_0x428233)&&_0x294039['editing']['reconvertMarker'](_0x428233);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x294039['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(),_0x294039['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x294039['config']['get']('trackChanges.trackFormatChanges'),_0x294039['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x294039['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x294039,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5ddfcd=this['editor'],_0x5a57fe=(_0x245c76,_0x3c4fbe)=>{if('attribute'!=_0x245c76)return'ck-suggestion-marker-'+_0x245c76;const _0x1e2bde=_0x3c4fbe['split']('|')[0x0];return this['_isBlockAttribute'](_0x1e2bde)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5ddfcd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4a71d8=>{const {id:_0x238012,authorId:_0x54048e,type:_0x5977d7,subType:_0x4ca11a}=this['_splitMarkerName'](_0x4a71d8['markerName']),_0x3cbbd2=['ck-suggestion-marker',_0x5a57fe(_0x5977d7,_0x4ca11a)];let _0x42d7e7=0xbb8;return this['activeMarkers']['includes'](_0x4a71d8['markerName'])&&(_0x3cbbd2['push']('ck-suggestion-marker--active'),_0x42d7e7=0xbc2),'deletion'==_0x5977d7&&(_0x42d7e7+=0x5),{'classes':_0x3cbbd2,'attributes':{'data-suggestion':_0x238012,'data-author-id':_0x54048e},'priority':_0x42d7e7};}}),_0x5ddfcd['conversion']['for']('dataDowncast')['add'](_0x13dcee=>{_0x13dcee['on']('addMarker:suggestion',(_0x4ce925,_0x161d05,_0x5d6090)=>{if(!_0x5d6090['options']['showSuggestionHighlights'])return;const _0x48374f=_0x161d05['item'];if(!_0x48374f)return;const _0x23f433=_0x5d6090['mapper']['toViewElement'](_0x48374f);_0x5ddfcd['model']['schema']['isObject'](_0x48374f)&&_0x23f433&&!_0x23f433['getCustomProperty']('widget')&&_0x23f433['is']('containerElement')&&_0x3dd96f(_0x23f433,_0x5d6090['writer']);},{'priority':'high'});}),_0x5ddfcd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4fafad,_0x430ad0)=>{if(!_0x430ad0['options']['showSuggestionHighlights'])return null;const {type:_0x99793f,subType:_0xcffd3d}=this['_splitMarkerName'](_0x4fafad['markerName']);return{'classes':['ck-suggestion-marker',_0x5a57fe(_0x99793f,_0xcffd3d)],'priority':0xbb8};}});const _0x5ccbdd=({showActiveMarkers:_0x389ce2=!0x0,isAttributeSuggestion:_0x53c977=!0x1}={})=>(_0x4a4159,_0x519a2a,_0x29b148)=>{if(!_0x519a2a['item'])return;const {id:_0x21a37e,authorId:_0x20cc0f}=this['_splitMarkerName'](_0x519a2a['markerName']);if(_0x53c977){const _0x3b7e69=this['_suggestions']['get'](_0x21a37e),_0x4b1f5d=this['_getAttributeKey'](_0x3b7e69);if(!this['_isBlockAttribute'](_0x4b1f5d))return;}if(_0x519a2a['item']['is']('selection'))return void _0x29b148['consumable']['consume'](_0x519a2a['item'],_0x4a4159['name']);const _0x2c7fc4=_0x29b148['mapper']['toViewElement'](_0x519a2a['item']);if(_0x519a2a['item']['is']('element')&&_0x5ddfcd['model']['schema']['isBlock'](_0x519a2a['item'])&&!_0x2c7fc4['getCustomProperty']('addHighlight')){_0x29b148['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2c7fc4),_0x29b148['writer']['setAttribute']('data-suggestion',_0x21a37e,_0x2c7fc4),_0x29b148['writer']['setAttribute']('data-author-id',_0x20cc0f,_0x2c7fc4),_0x29b148['mapper']['bindElementToMarker'](_0x2c7fc4,_0x519a2a['markerName']),_0x389ce2&&(this['activeMarkers']['includes'](_0x519a2a['markerName'])?_0x29b148['writer']['addClass']('ck-suggestion-marker--active',_0x2c7fc4):_0x29b148['writer']['removeClass']('ck-suggestion-marker--active',_0x2c7fc4));for(const _0x1a13b2 of _0x5ddfcd['model']['createRangeIn'](_0x519a2a['item'])['getItems']())_0x29b148['consumable']['consume'](_0x1a13b2,_0x4a4159['name']);_0x29b148['consumable']['consume'](_0x519a2a['item'],_0x4a4159['name']);}};_0x5ddfcd['conversion']['for']('dataDowncast')['add'](_0x2359b4=>{_0x2359b4['on']('addMarker:suggestion:formatBlock',(_0x39b02a,_0x577d70,_0x19cd26)=>{_0x19cd26['options']['showSuggestionHighlights']&&_0x5ccbdd({'showActiveMarkers':!0x1})(_0x39b02a,_0x577d70,_0x19cd26);},{'priority':'highest'});}),_0x5ddfcd['conversion']['for']('dataDowncast')['add'](_0x458e32=>{_0x458e32['on']('addMarker:suggestion:attribute',(_0x1194fc,_0x233955,_0x143333)=>{_0x143333['options']['showSuggestionHighlights']&&_0x5ccbdd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1194fc,_0x233955,_0x143333);},{'priority':'highest'});}),_0x5ddfcd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4fed5a,_0x23baf6)=>_0x23baf6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4fed5a['substr'](0xb)}}),_0x5ddfcd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x55e2e9,{writer:_0x22e1cf})=>{let _0x1803d6='suggestion:'+_0x55e2e9['getAttribute']('suggestion-type')+':'+_0x55e2e9['getAttribute']('id');return _0x55e2e9['getAttribute']('marker-count')&&(_0x1803d6+=':'+_0x55e2e9['getAttribute']('marker-count')),_0x22e1cf['createElement']('$marker',{'data-name':_0x1803d6});}}),_0x5ddfcd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5ddfcd['conversion']['for']('editingDowncast')['add'](_0x2531a4=>{_0x2531a4['on']('addMarker:suggestion:formatBlock',_0x5ccbdd(),{'priority':'high'});}),_0x5ddfcd['conversion']['for']('editingDowncast')['add'](_0x2c2217=>{_0x2c2217['on']('addMarker:suggestion:attribute',_0x5ccbdd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5ddfcd['conversion']['for']('editingDowncast')['add'](_0x53ee20=>{_0x53ee20['on']('removeMarker:suggestion:formatBlock',(_0x207f26,_0x58093f,_0x373782)=>{const _0x12e1c9=_0x373782['mapper']['markerNameToElements'](_0x58093f['markerName']);if(_0x12e1c9){for(const _0x17507e of _0x12e1c9)_0x17507e['getCustomProperty']('addHighlight')||(_0x373782['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x17507e),_0x373782['writer']['removeAttribute']('data-suggestion',_0x17507e),_0x373782['writer']['removeAttribute']('data-author-id',_0x17507e),_0x373782['mapper']['unbindElementFromMarkerName'](_0x17507e,_0x58093f['markerName']));}},{'priority':'high'});}),_0x5ddfcd['conversion']['for']('editingDowncast')['add'](_0x10a16e=>{_0x10a16e['on']('removeMarker:suggestion:attribute',(_0x4ded28,_0x90d3f4,_0x4e8230)=>{const _0x48fb8a=_0x4e8230['mapper']['markerNameToElements'](_0x90d3f4['markerName']);if(!_0x48fb8a)return;const {id:_0x29b691}=this['_splitMarkerName'](_0x90d3f4['markerName']),_0x4304fb=this['_suggestions']['get'](_0x29b691),_0x27fe33=this['_getAttributeKey'](_0x4304fb);if(this['_isBlockAttribute'](_0x27fe33)){for(const _0x18c50c of _0x48fb8a)_0x18c50c['getCustomProperty']('addHighlight')||(_0x4e8230['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x18c50c),_0x4e8230['writer']['removeAttribute']('data-suggestion',_0x18c50c),_0x4e8230['writer']['removeAttribute']('data-author-id',_0x18c50c),_0x4e8230['mapper']['unbindElementFromMarkerName'](_0x18c50c,_0x90d3f4['markerName']));}},{'priority':'high'});}),_0x5ddfcd['model']['document']['registerPostFixer'](_0x3e8a03=>{let _0x28b4b6=!0x1;const _0x3008e4=Array['from'](_0x5ddfcd['model']['document']['differ']['getChangedMarkers']()),_0x268e07=new Set();for(const {name:_0x1f466a,data:_0x39865c}of _0x3008e4){const {group:_0x5e6364,type:_0xc4d0fc,subType:_0x140d54,id:_0x3add14}=this['_splitMarkerName'](_0x1f466a);if('suggestion'!==_0x5e6364)continue;const _0x548b05=this['_suggestions']['get'](_0x3add14);if(null!=_0x39865c['newRange']){'formatInline'==_0xc4d0fc&&(_0x28b4b6=_0x28b4b6||Lt(_0x39865c['newRange'],_0x1f466a,_0x3e8a03,_0x5ddfcd['model']['schema']));const _0x2082cd='attribute'==_0xc4d0fc&&this['_isBlockAttribute'](_0x140d54['split']('|')[0x0]);if(_0x39865c['newRange']['isCollapsed']||'$graveyard'==_0x39865c['newRange']['root']['rootName']||'formatBlock'==_0xc4d0fc&&!Kt(_0x39865c['newRange'])||_0x2082cd&&!Kt(_0x39865c['newRange'])||'deletion'==_0xc4d0fc&&!(!Gt(_0x1158af=_0x39865c['newRange'])&&!function(_0x3d90f8){return _0x3d90f8['start']['parent']==_0x3d90f8['end']['nodeBefore']&&_0x3d90f8['start']['isAtEnd'];}(_0x1158af)))_0x3e8a03['removeMarker'](_0x1f466a),_0x28b4b6=!0x0;else{if(!_0x548b05||!_0x548b05['isInContent'])continue;if(_0x39865c['newRange']&&_0x39865c['oldRange']&&_0x39865c['newRange']['isEqual'](_0x39865c['oldRange']))continue;_0x268e07['add'](_0x548b05);}}}var _0x1158af;return _0x268e07['size']>0x0&&(_0x28b4b6=!!this['_joinWithAdjacentSuggestions'](_0x268e07)||_0x28b4b6),_0x28b4b6;}),_0x5ddfcd['model']['document']['registerPostFixer'](_0x522aab=>{let _0x2419ee=!0x1;for(const _0x136d41 of _0x5ddfcd['model']['document']['differ']['getChanges']())if('insert'==_0x136d41['type'])for(const _0xf8384a of this['_suggestions']['values']()){if(_0xf8384a['isMultiRange']||!_0xf8384a['isInContent'])continue;const _0x1bcd6c='formatBlock'==_0xf8384a['type'],_0x4b559d=this['_getAttributeKey'](_0xf8384a),_0x498ad=_0x4b559d&&this['_isBlockAttribute'](_0x4b559d);if(!_0x1bcd6c&&!_0x498ad)continue;const _0x47f060=_0xf8384a['getFirstRange']();if(_0x47f060['start']['parent']!=_0x47f060['end']['parent']&&!_0x47f060['end']['isAtEnd']){const _0x3ebff4=_0x5ddfcd['model']['createPositionAt'](_0x47f060['start']['nodeAfter'],'end'),_0x4688a2=_0x5ddfcd['model']['createRange'](_0x47f060['start'],_0x3ebff4);_0x522aab['updateMarker'](_0xf8384a['getFirstMarker'](),{'range':_0x4688a2}),_0x2419ee=!0x0;}}return _0x2419ee;}),_0x5ddfcd['model']['document']['registerPostFixer'](_0x23ae41=>this['_processAttributeChanges'](_0x23ae41)),_0x5ddfcd['model']['document']['registerPostFixer'](_0x4545e2=>!_0x4545e2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4545e2)),_0x5ddfcd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5ddfcd['model']['document']['on']('change:data',(_0xf9784b,_0x50d081)=>{if(!_0x50d081['isLocal']||_0x50d081['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x54ceb0=_0x5ddfcd['model']['document']['differ']['getChanges']();if(0x0==_0x54ceb0['length'])return;const _0x206ce0=[],_0x2d880f=_0x54ceb0['filter'](_0x1b9767=>'attribute'==_0x1b9767['type']),_0x565ef7=_0x54ceb0['filter'](_0x831fa9=>'insert'==_0x831fa9['type']&&'$text'!=_0x831fa9['name']);for(const _0x183fe4 of _0x2d880f)this['_isRegisteredAttribute'](_0x183fe4['attributeKey'])&&_0x206ce0['push']({'key':_0x183fe4['attributeKey'],'newValue':_0x183fe4['attributeNewValue'],'oldValue':_0x183fe4['attributeOldValue'],'range':Ht(_0x183fe4['range'],_0x5ddfcd['model'])});for(const _0x1bdbed of _0x565ef7){if('rename'!=_0x1bdbed['action']&&'refresh'!=_0x1bdbed['action'])continue;const _0x21021a=qt(_0x1bdbed['position']['nodeAfter'],_0x5ddfcd['model']),_0x569e1f=_0x1bdbed['before'];'rename'==_0x1bdbed['action']&&_0x206ce0['push']({'key':u,'newValue':_0x1bdbed['name'],'oldValue':_0x569e1f['name'],'range':_0x21021a});for(const [_0x2652bb,_0x22080e]of _0x569e1f['attributes']){if(!this['_isRegisteredAttribute'](_0x2652bb))continue;const _0x2f8c8a=_0x1bdbed['attributes']['get'](_0x2652bb);_0x22080e!==_0x2f8c8a&&_0x206ce0['push']({'key':_0x2652bb,'newValue':_0x2f8c8a,'oldValue':_0x22080e,'range':_0x21021a});}for(const [_0x47d3ff,_0x2ae6e3]of _0x1bdbed['attributes'])this['_isRegisteredAttribute'](_0x47d3ff)&&(_0x569e1f['attributes']['has'](_0x47d3ff)||_0x206ce0['push']({'key':_0x47d3ff,'newValue':_0x2ae6e3,'oldValue':null,'range':_0x21021a}));}0x0!=_0x206ce0['length']&&_0x5ddfcd['model']['enqueueChange'](_0x50d081,_0x18139f=>{const _0x479c39=_0x429b71();for(const {range:_0x11e37a,key:_0x4c7fed,oldValue:_0x578ae9,newValue:_0x558e9d}of _0x206ce0)this['markAttributeChange'](_0x11e37a,_0x4c7fed,_0x578ae9,_0x558e9d,{'groupId':_0x479c39});this['_reduceExistingSuggestions'](_0x18139f,_0x206ce0);});},{'priority':'lowest'}),_0x5ddfcd['model']['markers']['on']('update:suggestion',(_0x4e7148,_0xcfab9a,_0x3bb94d)=>{if(null==_0x3bb94d){const {id:_0x373804}=this['_splitMarkerName'](_0xcfab9a['name']),_0x27ed7e=this['_suggestions']['get'](_0x373804);_0x27ed7e&&_0x27ed7e['addMarkerName'](_0xcfab9a['name']);}}),_0x5ddfcd['model']['document']['on']('change:data',()=>{const _0x1aab27=Array['from'](_0x5ddfcd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x10cece=>'suggestion'===this['_splitMarkerName'](_0x10cece['name'])['group']);if(0x0===_0x1aab27['length'])return;_0x1aab27['sort']((_0x34b8ff,_0x3f710b)=>{const _0x1094b8=_0x34b8ff['data']['oldRange'],_0x5a7466=_0x3f710b['data']['oldRange'];return null===_0x1094b8&&null===_0x5a7466?0x0:null===_0x1094b8&&null!==_0x5a7466?-0x1:null!==_0x1094b8&&null===_0x5a7466?0x1:_0x1094b8['start']['isBefore'](_0x5a7466['start'])?-0x1:0x1;});const _0x45edf6=new Set(),_0x312798=new Set();for(const {name:_0xccedd6,data:_0x1fd318}of _0x1aab27){const {id:_0x3a9d23}=this['_splitMarkerName'](_0xccedd6);if(null===_0x1fd318['oldRange']){const _0x2899c4=this['_handleNewSuggestionMarker'](_0xccedd6);_0x312798['add'](_0x2899c4);}else{const _0x35443e=this['_suggestions']['get'](_0x3a9d23);null!==_0x1fd318['newRange']||_0x35443e['isInContent']?(_0x45edf6['add'](_0x35443e['head']),_0x312798['add'](_0x35443e)):this['_removeSuggestion'](_0x35443e);}}_0x312798['size']>0x0&&this['_refreshSuggestionsChain'](_0x312798);for(const _0x6f7e01 of _0x45edf6)this['fire']('suggestionChanged',_0x6f7e01);}),_0x5ddfcd['model']['on']('applyOperation',(_0xf8ee1f,_0x5b5e91)=>{const _0x67ca6e=_0x5b5e91[0x0];if(!this['_suggestions']['size'])return;if(!_0x67ca6e['isDocumentOperation'])return;if(_0x67ca6e['batch']['isUndo']||!_0x67ca6e['batch']['isLocal'])return;let _0x102f62,_0x37885d;switch(_0x67ca6e['type']){case'insert':_0x102f62=_0x5ddfcd['model']['createPositionAt'](_0x67ca6e['position']),_0x37885d=_0x102f62['getShiftedBy'](_0x67ca6e['howMany']);break;case'split':_0x102f62=_0x5ddfcd['model']['createPositionAt'](_0x67ca6e['splitPosition']),_0x37885d=_0x5ddfcd['model']['createPositionAt'](_0x67ca6e['moveTargetPosition']);break;case'move':_0x102f62=_0x5ddfcd['model']['createPositionAt'](_0x67ca6e['targetPosition']),_0x37885d=_0x102f62['getShiftedBy'](_0x67ca6e['howMany']);break;default:return;}const _0x2d0ebc=_0x5ddfcd['model']['createRange'](_0x102f62,_0x37885d);_0x5ddfcd['model']['change'](()=>{for(const {suggestion:_0x489618,meta:_0x4b0229}of this['_findSuggestions'](_0x2d0ebc)){if(_0x489618['isMultiRange'])continue;if('formatInline'==_0x489618['type'])continue;const _0x579fe5=this['_getAttributeKey'](_0x489618);if(_0x579fe5&&this['_isBlockAttribute'](_0x579fe5)&&'split'!=_0x67ca6e['type'])continue;const _0x40651e=_0x489618['data']&&_0x489618['data']['multipleBlocks'];('formatBlock'!=_0x489618['type']||'split'==_0x67ca6e['type']&&!_0x40651e)&&(_0x4b0229['containsRangeInObject']||'insertion'==_0x489618['type']&&_0x4b0229['isOwn']||_0x489618['getFirstRange']()['containsRange'](_0x2d0ebc)&&this['_breakSuggestionMarker'](_0x489618,_0x102f62,_0x37885d));}});},{'priority':'lowest'}),_0x5ddfcd['model']['on']('deleteContent',(_0x422409,_0x4fb3c2)=>{const _0x923213=_0x4fb3c2[0x0],_0x302d59=_0x4fb3c2[0x1];if(_0x302d59&&_0x302d59['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x923213['isCollapsed'])return;const _0x3b787d=_0x5ddfcd['model']['schema'],{start:_0x59cf5c,end:_0x342634}=_0x923213['getFirstRange'](),_0x37e60f=_0x59cf5c['nodeAfter']&&_0x3b787d['isLimit'](_0x59cf5c['nodeAfter'])?null:_0x3b787d['getNearestSelectionRange'](_0x59cf5c,'forward'),_0x19ec5e=_0x342634['nodeBefore']&&_0x3b787d['isLimit'](_0x342634['nodeBefore'])?null:_0x3b787d['getNearestSelectionRange'](_0x342634,'backward'),_0x538dae=_0x5ddfcd['model']['createRange'](_0x37e60f?_0x37e60f['start']:_0x59cf5c,_0x19ec5e?_0x19ec5e['end']:_0x342634);_0x5ddfcd['model']['change'](_0x4160d7=>{this['markDeletion'](_0x538dae);const _0x591218=_0x5ddfcd['model']['schema']['getNearestSelectionRange'](_0x538dae['start']);_0x923213['is']('documentSelection')?_0x4160d7['setSelection'](_0x591218):_0x923213['setTo'](_0x591218);}),_0x422409['stop']();},{'priority':_0xc373b8['normal']+0xa}),_0x5ddfcd['model']['on']('insertContent',(_0x4dccf7,_0x5cc8b7)=>{const _0x7aab4e=_0x5cc8b7[_0x5cc8b7['length']-0x1];_0x7aab4e&&_0x7aab4e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5ddfcd['model']['change'](()=>{let _0x4a977e=_0x5ddfcd['model']['insertContent'](_0x5cc8b7[0x0],_0x5cc8b7[0x1],_0x5cc8b7[0x2],{'forceDefaultExecution':!0x0});if(!_0x4a977e)return;_0x4dccf7['return']=_0x4a977e['clone']();const _0x1fd4d4=_0x4a977e['end']['nodeBefore'],_0xd9673b=_0x5ddfcd['model']['schema'];_0x1fd4d4&&_0xd9673b['isBlock'](_0x1fd4d4)&&!_0xd9673b['isObject'](_0x1fd4d4)&&(_0x4a977e=_0x5ddfcd['model']['createRange'](_0x4a977e['start'],_0x5ddfcd['model']['createPositionAt'](_0x1fd4d4,'end'))),this['markInsertion'](_0x4a977e);}),_0x4dccf7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x14322c=new O(_0x5ddfcd,this['_suggestions']);_0x5ddfcd['commands']['add']('acceptSuggestion',_0x14322c),this['enableCommand']('acceptSuggestion');const _0x5dea17=new R(_0x5ddfcd,this['_suggestions']);_0x5ddfcd['commands']['add']('discardSuggestion',_0x5dea17),this['enableCommand']('discardSuggestion'),_0x5ddfcd['commands']['add']('acceptAllSuggestions',new x(_0x5ddfcd,_0x14322c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5ddfcd['commands']['add']('discardAllSuggestions',new x(_0x5ddfcd,_0x5dea17,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5ddfcd['commands']['add']('acceptSelectedSuggestions',new E(_0x5ddfcd,_0x14322c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5ddfcd['commands']['add']('discardSelectedSuggestions',new E(_0x5ddfcd,_0x5dea17,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x88bcc7=_0x5ddfcd['plugins']['get']('CommentsRepository');this['listenTo'](_0x88bcc7,'addComment',(_0x1479b8,{threadId:_0x5b556c})=>{const _0x3878f2=this['_suggestions']['get'](_0x5b556c);_0x3878f2&&_0x3878f2['commentThread']&&0x1===_0x3878f2['commentThread']['length']&&this['_updateSuggestionData'](_0x5b556c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x88bcc7,'removeComment',(_0x17247a,{threadId:_0x2e8622})=>{const _0x129746=this['_suggestions']['get'](_0x2e8622);_0x129746&&_0x129746['commentThread']&&!_0x129746['commentThread']['length']&&this['_updateSuggestionData'](_0x2e8622,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x15caf7){const _0x506299=_0x485fff([0x66,0x43,0x32,0x49,0x64,0x34,0x4c,0x33,0x42,0x4e,0x74,0x6a,0x65,0x48,0x30,0x45,0x46,0x6d,0x79,0x62,0x57,0x50,0x53,0x73,0x41,0x39,0x54,0x67,0x78,0x63,0x56,0x51,0x4a,0x4f,0x7a,0x31,0x37,0x4d,0x38,0x70,0x58,0x76,0x5a,0x72,0x4b,0x6f,0x71,0x52,0x6c,0x36,0x75,0x44,0x59,0x6e,0x61,0x35,0x69,0x68,0x6b,0x55,0x47,0x77]),_0x53ea0a=0x1ab6f826,_0x140718=0x1ab19ad6^_0x53ea0a,_0x40c5bf=window[_0x485fff([0x44,0x61,0x74,0x65])][_0x485fff([0x6e,0x6f,0x77])](),_0x52bcca=_0x15caf7[_0x485fff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x29c7fc=new window[(_0x485fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43da47=>{_0x52bcca[_0x485fff([0x6f,0x6e,0x63,0x65])](_0x485fff([0x72,0x65,0x61,0x64,0x79]),_0x43da47);}),_0x5c91bf={[_0x485fff([0x6b,0x74,0x79])]:_0x485fff([0x45,0x43]),[_0x485fff([0x75,0x73,0x65])]:_0x485fff([0x73,0x69,0x67]),[_0x485fff([0x63,0x72,0x76])]:_0x485fff([0x50,0x2d,0x32,0x35,0x36]),[_0x485fff([0x78])]:_0x485fff([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]),[_0x485fff([0x79])]:_0x485fff([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]),[_0x485fff([0x61,0x6c,0x67])]:_0x485fff([0x45,0x53,0x32,0x35,0x36])},_0x36f607=_0x52bcca[_0x485fff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x485fff([0x67,0x65,0x74])](_0x485fff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51f14b(){let _0x2a5cba,_0x50d6a1=null,_0x4fb420=null;try{if(_0x36f607==_0x485fff([0x47,0x50,0x4c]))return _0x485fff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a5cba=_0x31e158(),!_0x2a5cba)return _0x485fff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a5cba[_0x485fff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4fb420=_0x195675(_0x2a5cba[_0x485fff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a5cba[_0x485fff([0x6a,0x74,0x69])])),await _0x45120c()?_0x1a7b83()?_0x5d40a4()?_0x485fff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f8c42()?(_0x2a5cba[_0x485fff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x485fff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50d6a1=_0x383142(_0x485fff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a5cba[_0x485fff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x485fff([0x74,0x72,0x69,0x61,0x6c])&&(_0x50d6a1=_0x383142(_0x485fff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c9710()):_0x485fff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x485fff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x485fff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x56f3ba){return _0x485fff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d40a4(){const _0x57fe5f=[_0x485fff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x485fff([0x74,0x72,0x69,0x61,0x6c])][_0x485fff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a5cba[_0x485fff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x40c5bf/0x3e8:0xe10*_0x140718;return _0x2a5cba[_0x485fff([0x65,0x78,0x70])]<_0x57fe5f;}function _0x1a7b83(){const _0x3e4500=_0x2a5cba[_0x485fff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3e4500)return!0x1;if(_0x3e4500[_0x485fff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x485fff([0x2a])))return!0x0;if(_0x3e4500[_0x485fff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x485fff([0x54,0x43])))return!0x0;if(_0x3e4500[_0x485fff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x485fff([0x52,0x54,0x43]))){if(_0x244f0b())return!0x0;if(_0x3ed440()||_0x56d0ae())return!0x0;}return!0x1;}function _0x1f8c42(){const _0x1379ce=_0x2a5cba[_0x485fff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1379ce||0x0==_0x1379ce[_0x485fff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b53f7}=new URL(window[_0x485fff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1379ce[_0x485fff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b53f7))return!0x0;const _0x4815db=_0x2b53f7[_0x485fff([0x73,0x70,0x6c,0x69,0x74])](_0x485fff([0x2e]));return _0x1379ce[_0x485fff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c52d3=>_0x3c52d3[_0x485fff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x485fff([0x2a])))[_0x485fff([0x6d,0x61,0x70])](_0xfc2c4a=>_0xfc2c4a[_0x485fff([0x73,0x70,0x6c,0x69,0x74])](_0x485fff([0x2e])))[_0x485fff([0x73,0x6f,0x6d,0x65])](_0x161b2e=>_0x4815db[_0x485fff([0x65,0x76,0x65,0x72,0x79])]((_0xeb7f36,_0x190c6e)=>_0x161b2e[_0x190c6e]===_0xeb7f36||_0x161b2e[_0x190c6e]===_0x485fff([0x2a])));}function _0x2c9710(){return _0x50d6a1&&_0x4fb420?new window[(_0x485fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10807d,_0x4d3226)=>{_0x50d6a1[_0x485fff([0x74,0x68,0x65,0x6e])](_0x10807d,_0x4d3226),_0x4fb420[_0x485fff([0x74,0x68,0x65,0x6e])](_0xec4cf3=>{_0xec4cf3!=_0x485fff([0x56,0x61,0x6c,0x69,0x64])&&_0x10807d(_0xec4cf3);},_0x4d3226);}):_0x50d6a1||_0x4fb420||_0x485fff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x195675(_0x9b597f,_0x2c77db){return new window[(_0x485fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290070=>{if(_0x287a93())return _0x290070(_0x485fff([0x56,0x61,0x6c,0x69,0x64]));_0x1e4624(),_0x52bcca[_0x485fff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x485fff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52f70c=!0x1;const _0x5b2ea1=_0x429b71();function _0x278f05(_0x3e1546){return!!_0x3e1546&&(typeof _0x3e1546===_0x485fff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e1546===_0x485fff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e1546[_0x485fff([0x74,0x68,0x65,0x6e])]===_0x485fff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e1546[_0x485fff([0x63,0x61,0x74,0x63,0x68])]===_0x485fff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1819af(_0x3236de){_0x5554e7(_0x3236de)[_0x485fff([0x74,0x68,0x65,0x6e])](_0x1fdbf6=>{if(!_0x1fdbf6||_0x1fdbf6[_0x485fff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x485fff([0x6f,0x6b]))return _0x485fff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x219298(_0x28e293(_0x5b2ea1+_0x2c77db))!=_0x1fdbf6[_0x485fff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x485fff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x485fff([0x56,0x61,0x6c,0x69,0x64]);})[_0x485fff([0x74,0x68,0x65,0x6e])](_0x2ffdc3=>(_0x25c3c5(),_0x2ffdc3),()=>{const _0x354591=_0x43cbd7();return null==_0x354591?(_0x25c3c5(),_0x485fff([0x56,0x61,0x6c,0x69,0x64])):_0x485fff(_0x40c5bf-_0x354591>(0x3eba7c26^_0x53ea0a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x485fff([0x74,0x68,0x65,0x6e])](_0x290070)[_0x485fff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x290070(_0x485fff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e28ba=0x1a8016a6^_0x53ea0a;function _0x25c3c5(){const _0x489496=_0x485fff([0x6c,0x6c,0x63,0x74,0x2d])+_0x219298(_0x28e293(_0x9b597f)),_0x1df733=_0x374d43(_0x219298(window[_0x485fff([0x4d,0x61,0x74,0x68])][_0x485fff([0x63,0x65,0x69,0x6c])](_0x40c5bf/_0x5e28ba)));window[_0x485fff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x485fff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x489496,_0x1df733);}function _0x43cbd7(){const _0x2682a1=_0x485fff([0x6c,0x6c,0x63,0x74,0x2d])+_0x219298(_0x28e293(_0x9b597f)),_0x5f212b=window[_0x485fff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x485fff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2682a1);return _0x5f212b?window[_0x485fff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x374d43(_0x5f212b),0x10)*_0x5e28ba:null;}function _0x5554e7(_0x543848){return new window[(_0x485fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x409f5d,_0x53dc83)=>{_0x543848[_0x485fff([0x74,0x68,0x65,0x6e])](_0x409f5d,_0x53dc83),window[_0x485fff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53dc83,0x1ab72ce6^_0x53ea0a);});}}_0x52bcca[_0x485fff([0x6f,0x6e])](_0x485fff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xeeef04,_0x3193ef)=>{if(_0x3193ef[0x0]!=_0x9b597f)return _0x290070(_0x485fff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3193ef[0x1]={..._0x3193ef[0x1],[_0x485fff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b2ea1};},{[_0x485fff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x485fff([0x68,0x69,0x67,0x68])}),_0x52bcca[_0x485fff([0x6f,0x6e])](_0x485fff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51ed69=>{_0x278f05(_0x51ed69[_0x485fff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52f70c=!0x0,_0x1819af(_0x51ed69[_0x485fff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x485fff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x485fff([0x6c,0x6f,0x77])}),_0x29c7fc[_0x485fff([0x74,0x68,0x65,0x6e])](()=>{_0x52f70c||_0x290070(_0x485fff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x287a93(){return _0x52bcca[_0x485fff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x485fff([0x76,0x69,0x65,0x77])][_0x485fff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x485fff([0x61,0x75,0x74,0x6f]);}function _0x1e4624(){_0x52bcca[_0x485fff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x485fff([0x76,0x69,0x65,0x77])][_0x485fff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x485fff([0x61,0x75,0x74,0x6f]);}}function _0x383142(_0x466060){const _0x5ccefd=[new window[(_0x485fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b6da4=>setTimeout(_0x5b6da4,0x1abfc6ea^_0x53ea0a)),_0x29c7fc[_0x485fff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x485fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aa23d=>{let _0x5035bf=0x0;_0x52bcca[_0x485fff([0x6d,0x6f,0x64,0x65,0x6c])][_0x485fff([0x6f,0x6e])](_0x485fff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a9f9b,_0x429a22)=>{_0x429a22[0x0][_0x485fff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5035bf++,_0x5035bf==(0x1ab6f9de^_0x53ea0a)&&(_0x1aa23d(),_0x4a9f9b[_0x485fff([0x6f,0x66,0x66])]());});}))];return window[_0x485fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x485fff([0x72,0x61,0x63,0x65])](_0x5ccefd)[_0x485fff([0x74,0x68,0x65,0x6e])](()=>_0x466060);}async function _0x1a7515(){await _0x29c7fc,_0x52bcca[_0x485fff([0x6d,0x6f,0x64,0x65,0x6c])][_0x485fff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1355ca,_0x52bcca[_0x485fff([0x6d,0x6f,0x64,0x65,0x6c])][_0x485fff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1355ca,_0x52bcca[_0x485fff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x485fff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x244f0b(){return _0x295077(_0x485fff([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x506eda(_0x485fff([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x485fff([0x73,0x74,0x61,0x74,0x65])]==_0x485fff([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3ed440(){return _0x295077(_0x485fff([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 _0x56d0ae(){return _0x295077(_0x485fff([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2a867d(_0x3ca79d){const _0x44fbaa=_0x21d219();_0x52bcca[_0x44fbaa]=_0x485fff([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ca79d,_0x3ca79d!=_0x485fff([0x56,0x61,0x6c,0x69,0x64])&&_0x1a7515();}function _0x21d219(){const _0x32753b=window[_0x485fff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x485fff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x485fff([0x6e,0x6f,0x77])]())[_0x485fff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x485fff([0x2e]),'');let _0x145c63=_0x485fff([0x66]);for(let _0x8370a9=0x0;_0x8370a9<_0x32753b[_0x485fff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8370a9+=0x2){let _0x127cfc=window[_0x485fff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32753b[_0x485fff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8370a9,_0x8370a9+0x2));_0x127cfc>=_0x506299[_0x485fff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x127cfc-=_0x506299[_0x485fff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x145c63+=_0x506299[_0x127cfc];}return _0x145c63;}function _0x31e158(){const _0x13a0c0=_0x36f607[_0x485fff([0x73,0x70,0x6c,0x69,0x74])](_0x485fff([0x2e]));if(0x3!=_0x13a0c0[_0x485fff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc61399(_0x13a0c0[0x1]);function _0xc61399(_0x36c18a){const _0x5d8c2b=_0x268055(_0x36c18a);return _0x5d8c2b&&_0x2cf89c()?_0x5d8c2b:null;function _0x2cf89c(){const _0x13193a=_0x5d8c2b[_0x485fff([0x6a,0x74,0x69])],_0x45546a=window[_0x485fff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13193a[_0x485fff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13193a[_0x485fff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x503948={..._0x5d8c2b,[_0x485fff([0x6a,0x74,0x69])]:_0x13193a[_0x485fff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13193a[_0x485fff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x503948[_0x485fff([0x76,0x63])],_0x28e293(_0x503948)==_0x45546a;}}}async function _0x45120c(){let _0x68c0e7=!0x0;try{const _0x3e158f=_0x36f607[_0x485fff([0x73,0x70,0x6c,0x69,0x74])](_0x485fff([0x2e])),[_0x5ef3d5,_0xf69db5,_0x31a06b]=_0x3e158f;return _0x53b433(_0x5ef3d5),await _0x4d2591(_0x5ef3d5,_0xf69db5,_0x31a06b),_0x68c0e7;}catch(_0x130955){return!0x1;}function _0x53b433(_0x507b46){const _0x580a82=_0x268055(_0x507b46);_0x580a82&&_0x580a82[_0x485fff([0x61,0x6c,0x67])]==_0x485fff([0x45,0x53,0x32,0x35,0x36])||(_0x68c0e7=!0x1);}async function _0x4d2591(_0x380f09,_0x2bbf59,_0x533d7d){const _0x17540a=window[_0x485fff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x485fff([0x66,0x72,0x6f,0x6d])](_0x2ae03d(_0x533d7d),_0x80210e=>_0x80210e[_0x485fff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4535e1=new window[(_0x485fff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x485fff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x380f09+_0x485fff([0x2e])+_0x2bbf59),_0x3a9919=window[_0x485fff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x485fff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a9919)return;const _0x6e7950=await _0x3a9919[_0x485fff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x485fff([0x6a,0x77,0x6b]),_0x5c91bf,{[_0x485fff([0x6e,0x61,0x6d,0x65])]:_0x485fff([0x45,0x43,0x44,0x53,0x41]),[_0x485fff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x485fff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x485fff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a9919[_0x485fff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x485fff([0x6e,0x61,0x6d,0x65])]:_0x485fff([0x45,0x43,0x44,0x53,0x41]),[_0x485fff([0x68,0x61,0x73,0x68])]:{[_0x485fff([0x6e,0x61,0x6d,0x65])]:_0x485fff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6e7950,_0x17540a,_0x4535e1)||(_0x68c0e7=!0x1);}}function _0x268055(_0x6201b4){return _0x6201b4[_0x485fff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x485fff([0x65,0x79]))?JSON[_0x485fff([0x70,0x61,0x72,0x73,0x65])](_0x2ae03d(_0x6201b4)):null;}function _0x2ae03d(_0x3887ed){return window[_0x485fff([0x61,0x74,0x6f,0x62])](_0x3887ed[_0x485fff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x485fff([0x2b]))[_0x485fff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x485fff([0x2f])));}function _0x28e293(_0x30f591){let _0x13f74e=0x1505;function _0x3a4846(_0x353d83){for(let _0x1ed48c=0x0;_0x1ed48c<_0x353d83[_0x485fff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ed48c++){const _0x3f3ec3=_0x353d83[_0x485fff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ed48c);_0x13f74e=(_0x13f74e<<0x5)+_0x13f74e+_0x3f3ec3,_0x13f74e&=_0x13f74e;}}function _0x1ee055(_0x24eadd){Array[_0x485fff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24eadd)?_0x24eadd[_0x485fff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ee055):_0x24eadd&&typeof _0x24eadd==_0x485fff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x485fff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24eadd)[_0x485fff([0x73,0x6f,0x72,0x74])]()[_0x485fff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x38fa85,_0x382b76])=>{_0x3a4846(_0x38fa85),_0x1ee055(_0x382b76);}):_0x3a4846(window[_0x485fff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24eadd));}return _0x1ee055(_0x30f591),_0x13f74e>>>0x0;}function _0x219298(_0x19c00b){return _0x19c00b[_0x485fff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x485fff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x485fff([0x30]));}function _0x374d43(_0x17a5bc){return _0x17a5bc[_0x485fff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x485fff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x485fff([0x6a,0x6f,0x69,0x6e])]('');}function _0x295077(_0xe34c18){return _0x52bcca[_0x485fff([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x485fff([0x68,0x61,0x73])](_0xe34c18);}function _0x506eda(_0x1760ea){return _0x52bcca[_0x485fff([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x485fff([0x67,0x65,0x74])](_0x1760ea);}function _0x1355ca(){}function _0x485fff(_0x58d053){return _0x58d053['map'](_0x72f5f=>String['fromCharCode'](_0x72f5f))['join']('');}_0x2a867d(await _0x51f14b());}(this);}set['adapter'](_0x101129){if(this['_adapter'])throw new _0x3c865c('track-changes-adapter-already-set',this);this['_adapter']=_0x101129;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x25c28c=!0x1,toJSON:_0x45f9b3=!0x1}={}){const _0x4246fe=[];for(const _0x905f3b of this['_suggestions']['values']())_0x25c28c&&!_0x905f3b['isInContent']||_0x4246fe['push'](_0x905f3b);return _0x45f9b3?_0x4246fe['map'](_0x552305=>_0x552305['toJSON']()):_0x4246fe;}['getSuggestion'](_0x485bb8){const _0x1234a2=this['_suggestions']['get'](_0x485bb8);if(!_0x1234a2)throw new _0x3c865c('track-changes-suggestion-not-found',this);return _0x1234a2;}['hasSuggestion'](_0xd00063){return this['_suggestions']['has'](_0xd00063);}['addSuggestionData'](_0x35163e){const {authorId:_0x2ed898,id:_0xc9f3b0,attributes:_0x13c2f9}=_0x35163e,[_0x41c476,_0x38b925]=_0x35163e['type']['split'](':'),_0x1eab82=this['_suggestions']['get'](_0xc9f3b0)||this['_createSuggestion'](_0x41c476,_0x38b925,_0xc9f3b0,_0x2ed898,_0x13c2f9);if(this['_addThreadToSuggestion'](_0x1eab82),this['_checkSuggestionCorrectness'](_0x1eab82,_0x41c476,_0x38b925||null,_0x2ed898),_0x1eab82['createdAt']=_0x35163e['createdAt'],_0x1eab82['_isDataLoaded']=!0x0,_0x13c2f9&&_0x13c2f9['@external']){const _0xe176e9=_0x13c2f9['@external'],_0xd7817a=this['_getExternalAuthor'](_0xe176e9['authorName']);_0x1eab82['authoredAt']=_0xe176e9['createdAt'],_0x1eab82['author']=_0xd7817a,_0x1eab82['isExternal']=!0x0;}else _0x1eab82['authoredAt']=_0x35163e['createdAt'];switch(_0x35163e['data']&&(_0x1eab82['data']=_0x35163e['data']),_0x35163e['attributes']&&(_0x1eab82['attributes']=_0x35163e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1eab82['_saved']=!0x0),this['_suggestionState']['get'](_0x1eab82)){case'notReady':this['_suggestionState']['set'](_0x1eab82,'dataReady');break;case'markerReady':_0x1eab82['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1eab82])),this['_refreshSuggestionsChain'](new Set([_0x1eab82])),this['_suggestionState']['set'](_0x1eab82,'ready'),this['fire']('suggestionLoaded',_0x1eab82)):this['_suggestionState']['set'](_0x1eab82,'removed');}return _0x1eab82;}['acceptSuggestion'](_0x5ea6f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1294d8 of _0x5ea6f8['getAllAdjacentSuggestions']())_0x1294d8['accept']();});});}['discardSuggestion'](_0x1f745c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x7218f6 of _0x1f745c['getAllAdjacentSuggestions']())_0x7218f6['discard']();});});}['enableCommand'](_0x1ed24d,_0x246cee){const _0x2fec16=this['editor']['commands']['get'](_0x1ed24d);if(!_0x2fec16)throw new _0x3c865c('track-changes-command-not-found',this,{'commandName':_0x1ed24d});if(this['_enabledCommands']['has'](_0x2fec16))throw new _0x3c865c('track-changes-enable-command-twice',this,{'commandName':_0x1ed24d});this['_enabledCommands']['add'](_0x2fec16),_0x246cee&&_0x2fec16['on']('execute',(_0x2c2dfe,_0x3c24d9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3c24d9['length']>0x0&&_0x3c24d9[_0x3c24d9['length']-0x1]&&_0x3c24d9[_0x3c24d9['length']-0x1]['forceDefaultExecution']?_0x3c24d9['pop']():(_0x2c2dfe['return']=_0x246cee((..._0x4102e1)=>_0x2fec16['execute'](..._0x4102e1,{'forceDefaultExecution':!0x0}),..._0x3c24d9),_0x2c2dfe['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x475fb1){let _0x51fbf2,_0x12973e;const _0x37bac9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x51fbf2=_0x475fb1();}catch(_0x14f87d){_0x12973e=_0x14f87d;}return _0x37bac9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x12973e&&_0x3c865c['rethrowUnexpectedError'](_0x12973e,this),_0x51fbf2;}['markInsertion'](_0x1f4e0f,_0x1a6f09=null,_0x223c37={}){if(_0x1f4e0f['isCollapsed'])return null;const _0x880c18=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3aef8e,meta:_0x4a31d4}of this['_findSuggestions'](_0x1f4e0f,'insertion'))if(_0x4a31d4['isOwn']){if(!_0x4a31d4['isNextTo']){if(_0x4a31d4['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3aef8e,_0x223c37))continue;return _0x3aef8e;}if(Qt(_0x3aef8e,_0x223c37))return _0x3aef8e;this['_breakSuggestionMarker'](_0x3aef8e,_0x1f4e0f['start'],_0x1f4e0f['end']);break;}if(_0x1a6f09==_0x3aef8e['subType']&&Qt(_0x3aef8e,_0x223c37)){const _0x5b8080=_0x3aef8e['getFirstRange']();return _0x5b8080['start']['isEqual'](_0x1f4e0f['end'])?this['_setSuggestionRange'](_0x3aef8e,this['_model']['createRange'](_0x1f4e0f['start'],_0x5b8080['end'])):this['_setSuggestionRange'](_0x3aef8e,this['_model']['createRange'](_0x5b8080['start'],_0x1f4e0f['end'])),_0x3aef8e;}}const _0x24a5b8=_0x429b71(),_0x39982e=_0x880c18['id'],_0x275580=_0x1a6f09?'insertion:'+_0x1a6f09:'insertion',_0x2eb236=this['_setSuggestionData']({'id':_0x24a5b8,'type':_0x275580,'createdAt':new Date(),'authorId':_0x39982e,'attributes':_0x223c37});return this['_addSuggestionMarker'](_0x275580,_0x24a5b8,_0x39982e,_0x1f4e0f),_0x2eb236;}['markMultiRangeInsertion'](_0x460426,_0x4c31ec='multi',_0xa18174={}){const _0x563ae3=this['editor']['plugins']['get']('Users')['me'],_0x50d402=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4c31ec,'join');for(const _0x5c5d26 of this['getSuggestions']())if(_0x5c5d26['author']['id']==_0x563ae3['id']&&'insertion'==_0x5c5d26['type']&&_0x5c5d26['subType']==_0x4c31ec&&Qt(_0x5c5d26,_0xa18174)&&(_0x50d402(_0x5c5d26['getRanges'](),_0x460426)||_0x50d402(_0x460426,_0x5c5d26['getRanges']()))){for(const _0x135263 of _0x460426)_0x5c5d26['addRange'](_0x135263);return _0x5c5d26;}for(const {suggestion:_0x4f8b15,meta:_0x6006b7}of this['_findSuggestions'](_0x460426,'insertion')){if(!_0x6006b7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x6006b7['containsRangeInObject'])continue;if(!Qt(_0x4f8b15,_0xa18174))continue;let _0x1d5b3f=!0x0;for(const _0x49bce4 of _0x4f8b15['getRanges']())for(const _0x53eed3 of _0x460426)if(!_0x49bce4['containsRange'](_0x53eed3)){_0x1d5b3f=!0x1;break;}if(_0x1d5b3f)return _0x4f8b15;}const _0x27a4d3=_0x429b71(),_0x293ca3=_0x563ae3['id'],_0x2966d2='insertion:'+_0x4c31ec,_0x42748e=this['_setSuggestionData']({'id':_0x27a4d3,'type':_0x2966d2,'createdAt':new Date(),'authorId':_0x293ca3,'attributes':_0xa18174});for(const _0x1dccfc of _0x460426)this['_addSuggestionMarker'](_0x2966d2,_0x27a4d3,_0x293ca3,_0x1dccfc,o['getMultiRangeId']());return _0x42748e;}['markInlineFormat'](_0xb63f05,_0x5f231a,_0x1b0620=null,_0x1cf7b7={}){if(_0x1b0620=_0x1b0620||Jt(_0x5f231a),_0xb63f05['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5e34ea=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1b0620,'accept');return this['forceDefaultExecution'](()=>_0x5e34ea([_0xb63f05],_0x5f231a,_0x1cf7b7)),null;}const _0x8d6813=this['editor']['plugins']['get']('Users')['me'],_0x11452=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1ea7cd,meta:_0x17671b}of this['_findSuggestions'](_0xb63f05,'insertion'))_0x17671b['isOwn']&&!_0x17671b['isInsideObject']&&_0x11452['push'](..._0x1ea7cd['getRanges']());}const _0x1eb553=function(_0x3120cd,_0x4758a5){const _0x55dd83=[];for(const _0x39f4be of _0x4758a5){const _0x2c44e1=_0x3120cd['getIntersection'](_0x39f4be);_0x2c44e1&&_0x55dd83['push'](_0x2c44e1);}return _0x55dd83;}(_0xb63f05,_0x11452),_0x27d475=function(_0x3ee28f,_0x32c352){const _0xcda89a=[_0x3ee28f];for(const _0xb5207 of _0x32c352){let _0x21ae61=0x0;for(;_0x21ae61<_0xcda89a['length'];){const _0x3e8dcc=_0xcda89a[_0x21ae61]['getDifference'](_0xb5207);_0xcda89a['splice'](_0x21ae61,0x1,..._0x3e8dcc),_0x21ae61+=_0x3e8dcc['length'];}}return _0xcda89a;}(_0xb63f05,_0x11452);_0x1eb553['length']&&this['_model']['change'](()=>{for(const _0x218854 of _0x1eb553){const _0x43d73c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1b0620,'accept');this['forceDefaultExecution'](()=>_0x43d73c([_0x218854],_0x5f231a,_0x1cf7b7));}});for(const _0x2747bd of _0x27d475){let _0x5ec770=null,_0x357fbf=_0x2747bd['start'],_0x4cfb0e=_0x2747bd['end'];for(const {suggestion:_0x303fd8,meta:_0x2a4971}of this['_findSuggestions'](_0x2747bd,'formatInline')){if(!_0x2a4971['isOwn'])continue;if(_0x303fd8['subType']!=_0x1b0620)continue;if(!Qt(_0x303fd8,_0x1cf7b7))continue;const _0x585a2a=_0x303fd8['getFirstRange']();if(_0x585a2a['containsRange'](_0x2747bd,!0x0))return null;_0x357fbf=_0x357fbf['isBefore'](_0x585a2a['start'])?_0x357fbf:_0x585a2a['start'],_0x4cfb0e=_0x4cfb0e['isAfter'](_0x585a2a['end'])?_0x4cfb0e:_0x585a2a['end'],_0x5ec770?_0x585a2a['start']['isBefore'](_0x5ec770['getFirstRange']()['start'])?(_0x5ec770['removeMarkers'](),_0x5ec770=_0x303fd8):_0x303fd8['removeMarkers']():_0x5ec770=_0x303fd8;}const _0x5b07a6=this['_model']['createRange'](_0x357fbf,_0x4cfb0e);if(_0x5ec770)this['_setSuggestionRange'](_0x5ec770,_0x5b07a6);else{const _0x4dbc02=_0x429b71(),_0x1962df=_0x8d6813['id'];this['_setSuggestionData']({'id':_0x4dbc02,'type':'formatInline:'+_0x1b0620,'data':_0x5f231a,'createdAt':new Date(),'authorId':_0x1962df,'attributes':_0x1cf7b7}),this['_addSuggestionMarker']('formatInline:'+_0x1b0620,_0x4dbc02,_0x1962df,_0x5b07a6);}}return null;}['markBlockFormat'](_0x294b81,_0x39b3a4,_0xab9601=[],_0x3f6395=null,_0x5312d1={}){_0x39b3a4['formatGroupId']||(_0x39b3a4['formatGroupId']=_0x39b3a4['commandName']),_0x39b3a4['multipleBlocks']=_0x294b81['is']('range'),_0x3f6395=_0x3f6395||Jt(_0x39b3a4);const _0x23919d=_0xab9601['map'](_0x45f0ff=>qt(_0x45f0ff,this['_model'])),_0x2a3d77=_0x294b81['is']('range')?_0x294b81:qt(_0x294b81,this['_model']);if('never'===this['_trackFormatChanges']){const _0x14e242=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f6395,'accept');return this['forceDefaultExecution'](()=>_0x14e242([_0x2a3d77],_0x39b3a4,_0x5312d1)),null;}_0x23919d['push'](_0x2a3d77);let _0x5537fb=!0x0;for(const _0x48027e of _0x23919d)if(!this['_rangeIsInLocalUserInsertion'](_0x48027e)){_0x5537fb=!0x1;break;}if(_0x5537fb&&'always'!==this['_trackFormatChanges']){const _0x274a59=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f6395,'accept');return this['forceDefaultExecution'](()=>_0x274a59([_0x2a3d77],_0x39b3a4,_0x5312d1)),null;}let _0x23c4ad=null,_0xca92e7=_0x2a3d77['start'],_0x52aaae=_0x2a3d77['end'];for(const {suggestion:_0x334de7,meta:_0x14ee08}of this['_findSuggestions'](_0x2a3d77,'formatBlock')){if(!_0x14ee08['isOwn'])continue;if(_0x14ee08['isNextTo']||_0x14ee08['containsRangeInObject']||_0x14ee08['isInsideObject'])continue;if(_0x334de7['data']['formatGroupId']!=_0x39b3a4['formatGroupId'])continue;if(!Qt(_0x334de7,_0x5312d1))continue;const _0x11e4ef=_0x334de7['getFirstRange']();if(_0x334de7['subType']==_0x3f6395){if(_0x11e4ef['containsRange'](_0x2a3d77,!0x0))return null;_0xca92e7=_0xca92e7['isBefore'](_0x11e4ef['start'])?_0xca92e7:_0x11e4ef['start'],_0x52aaae=_0x52aaae['isAfter'](_0x11e4ef['end'])?_0x52aaae:_0x11e4ef['end'],_0x23c4ad?_0x11e4ef['start']['isBefore'](_0x23c4ad['getFirstRange']()['start'])?(_0x23c4ad['removeMarkers'](),_0x23c4ad=_0x334de7):_0x334de7['removeMarkers']():_0x23c4ad=_0x334de7;}else{const _0x306d9a=_0x2a3d77['getIntersection'](_0x11e4ef);this['_cutOutSuggestionMarker'](_0x334de7,_0x306d9a);}}const _0x5ba717=this['editor']['plugins']['get']('Users')['me'],_0x106e2f=_0x429b71(),_0x424842=_0x5ba717['id'];if(_0x23c4ad)return this['_setSuggestionRange'](_0x23c4ad,this['_model']['createRange'](_0xca92e7,_0x52aaae)),_0x23c4ad;{const _0x1520c1=this['_setSuggestionData']({'id':_0x106e2f,'type':'formatBlock:'+_0x3f6395,'data':_0x39b3a4,'createdAt':new Date(),'authorId':_0x424842,'attributes':_0x5312d1});return this['_addSuggestionMarker']('formatBlock:'+_0x3f6395,_0x106e2f,_0x424842,this['_model']['createRange'](_0xca92e7,_0x52aaae)),_0x1520c1;}}['markMultiRangeBlockFormat'](_0x39db58,_0x3f4a83,_0x292d17=[],_0x390caf=null,_0x3de66c={}){_0x3f4a83['formatGroupId']||(_0x3f4a83['formatGroupId']=_0x3f4a83['commandName']);const _0x54cf87=_0x39db58[0x0];_0x3f4a83['multipleBlocks']=_0x54cf87['is']('range'),_0x390caf=_0x390caf||Jt(_0x3f4a83);const _0x45afdf=_0x292d17['map'](_0x583d7f=>qt(_0x583d7f,this['_model'])),_0x3635f3=_0x54cf87['is']('range')?_0x39db58:_0x39db58['map'](_0x132232=>qt(_0x132232,this['_model']));if('never'===this['_trackFormatChanges']){const _0x508b42=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x390caf,'accept');return this['forceDefaultExecution'](()=>_0x508b42(_0x3635f3,_0x3f4a83,_0x3de66c)),null;}_0x45afdf['push'](..._0x3635f3);let _0xb76456=!0x0;for(const _0x46ed54 of _0x45afdf)if(!this['_rangeIsInLocalUserInsertion'](_0x46ed54)){_0xb76456=!0x1;break;}if(_0xb76456&&'always'!==this['_trackFormatChanges']){const _0x132937=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x390caf,'accept');return this['forceDefaultExecution'](()=>_0x132937(_0x3635f3,_0x3f4a83,_0x3de66c)),null;}const _0x522650=this['editor']['plugins']['get']('Users')['me'];for(const _0x135b05 of this['getSuggestions']()){if(_0x135b05['author']['id']!=_0x522650['id'])continue;if('formatBlock'!=_0x135b05['type']||_0x135b05['data']['formatGroupId']!=_0x3f4a83['formatGroupId'])continue;if(!Qt(_0x135b05,_0x3de66c))continue;const _0x5e9f48=_0x135b05['subType']==_0x390caf;for(let _0x572bc3=0x0;_0x572bc3<_0x3635f3['length'];_0x572bc3++){const _0x5e48ef=_0x3635f3[_0x572bc3];for(const _0x2ac628 of _0x135b05['getMarkers']()){const _0x5dd3a1=_0x2ac628['getRange']();if(_0x5e48ef['isEqual'](_0x5dd3a1)){_0x5e9f48?(_0x3635f3['splice'](_0x572bc3,0x1),_0x572bc3--):_0x135b05['removeMarker'](_0x2ac628['name']);break;}}}}if(0x0==_0x3635f3['length'])return null;const _0x8709c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x390caf,'join');for(const _0x213dbd of this['getSuggestions']())if(_0x213dbd['author']['id']==_0x522650['id']&&'formatBlock'==_0x213dbd['type']&&_0x213dbd['data']['formatGroupId']==_0x3f4a83['formatGroupId']&&_0x213dbd['subType']==_0x390caf&&Qt(_0x213dbd,_0x3de66c)&&(_0x8709c4(_0x213dbd['getRanges'](),_0x3635f3)||_0x8709c4(_0x3635f3,_0x213dbd['getRanges']()))){for(const _0x48b0f5 of _0x3635f3)_0x213dbd['addRange'](_0x48b0f5);return _0x213dbd;}const _0x59b471=_0x429b71(),_0x2a7a84=_0x522650['id'],_0x5d007b='formatBlock:'+_0x390caf,_0x5d62fd=this['_setSuggestionData']({'id':_0x59b471,'type':_0x5d007b,'data':_0x3f4a83,'createdAt':new Date(),'authorId':_0x2a7a84,'attributes':_0x3de66c});for(const _0x17c6a8 of _0x3635f3)this['_addSuggestionMarker'](_0x5d007b,_0x59b471,_0x2a7a84,_0x17c6a8,o['getMultiRangeId']());return _0x5d62fd;}['markDeletion'](_0x4d7f70,_0x269136=null,_0x396265={}){if(_0x4d7f70['isCollapsed'])return null;const _0x305a6f=this['editor']['plugins']['get']('Users')['me'],_0x46c0f9=new _0x315628(_0x4d7f70['start'],_0x4d7f70['end']);for(const {suggestion:_0x535ad6,meta:_0x4674f3}of this['_findSuggestions'](_0x46c0f9,'insertion'))if(_0x4674f3['isOwn']&&!_0x4674f3['isNextTo']){if(_0x535ad6['isMultiRange']){const _0x37606c=_0x535ad6['getRanges']()['filter'](_0x39e41f=>'$graveyard'!=_0x39e41f['root']['rootName']);_0x37606c['every'](_0x5eede0=>_0x46c0f9['containsRange'](_0x5eede0,!0x0))&&_0x535ad6['discard']();if(_0x37606c['some'](_0x408873=>_0x408873['containsRange'](_0x46c0f9,!0x0))){const _0x408949=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x269136,'accept');return this['forceDefaultExecution'](()=>_0x408949([_0x46c0f9],null,_0x396265)),null;}}else{const _0x1fe2bb=_0x46c0f9['getIntersection'](_0x535ad6['getFirstRange']());null!==_0x1fe2bb&&_0x535ad6['_onDiscard']([_0x1fe2bb],null,_0x396265);}}if(_0x46c0f9['detach'](),_0x46c0f9['isCollapsed']||'$graveyard'==_0x46c0f9['root']['rootName'])return null;let _0x4b6bca=null,_0x102e38=_0x46c0f9['start'],_0x26799f=_0x46c0f9['end'];const _0x45f2d9=this['_findSuggestions'](_0x46c0f9,'deletion');for(const {suggestion:_0x537f59,meta:_0x27f648}of _0x45f2d9){const _0x2428ec=this['_model']['createRange'](_0x102e38,_0x26799f);if(_0x27f648['isOwn']&&(this['_mergeNestedSuggestions']||!_0x27f648['containsRangeInObject']&&!_0x27f648['isInsideObject'])){if(_0x537f59['isMultiRange']){if(!Qt(_0x537f59,_0x396265))continue;let _0x2eaa2f=!0x0;for(const _0x3339ef of _0x537f59['getRanges']()){if(_0x3339ef['containsRange'](_0x2428ec,!0x0))return _0x537f59;_0x2428ec['containsRange'](_0x3339ef)||(_0x2eaa2f=!0x1);}_0x2eaa2f&&_0x537f59['discard']();}else{const _0x4668aa=_0x537f59['getFirstRange']();if(_0x4668aa['containsRange'](_0x2428ec,!0x0))return _0x537f59;if(!Qt(_0x537f59,_0x396265)){_0x2428ec['containsRange'](_0x4668aa)?_0x537f59['removeMarkers']():_0x4668aa['containsPosition'](_0x102e38)?_0x102e38=_0x4668aa['end']:_0x4668aa['containsPosition'](_0x26799f)&&(_0x26799f=_0x4668aa['start']);continue;}_0x102e38=_0x102e38['isBefore'](_0x4668aa['start'])?_0x102e38:_0x4668aa['start'],_0x26799f=_0x26799f['isAfter'](_0x4668aa['end'])?_0x26799f:_0x4668aa['end'],_0x396265=Object['assign']({},_0x537f59['attributes']),_0x4b6bca?_0x4668aa['start']['isBefore'](_0x4b6bca['getFirstRange']()['start'])?(_0x4b6bca['removeMarkers'](),_0x4b6bca=_0x537f59):_0x537f59['removeMarkers']():_0x4b6bca=_0x537f59;}}}if(_0x4b6bca)return this['_setSuggestionRange'](_0x4b6bca,this['_model']['createRange'](_0x102e38,_0x26799f)),_0x4b6bca;{const _0x18d75a=_0x429b71(),_0x4624de=this['_model']['createRange'](_0x102e38,_0x26799f),_0x730b88=_0x305a6f['id'],_0x586211=_0x269136?'deletion:'+_0x269136:'deletion',_0x447b73=this['_setSuggestionData']({'id':_0x18d75a,'type':_0x586211,'createdAt':new Date(),'authorId':_0x730b88,'attributes':_0x396265});return this['_addSuggestionMarker'](_0x586211,_0x18d75a,_0x730b88,_0x4624de),_0x447b73;}}['markMultiRangeDeletion'](_0x539574,_0x58010='multi',_0x39f63d={}){const _0x1114ff=this['editor']['plugins']['get']('Users')['me'],_0x3eae55=_0x539574['map'](_0x5b72e6=>new _0x315628(_0x5b72e6['start'],_0x5b72e6['end'])),_0x11cde5=new Set();for(const {suggestion:_0x1c3cd6,meta:_0x253208}of this['_findSuggestions'](_0x3eae55,'insertion'))_0x253208['isOwn']&&!_0x253208['isNextTo']&&_0x11cde5['add'](_0x1c3cd6);for(const _0x267995 of _0x11cde5)if(_0x267995['isMultiRange']){const _0x2e7a52=_0x267995['getRanges']();(!_0x267995['attributes']||!_0x267995['attributes']['skipNestingCheck'])&&(_0x2e7a52['every'](_0x236752=>_0x3eae55['some'](_0x408517=>_0x408517['containsRange'](_0x236752,!0x0)))&&_0x267995['discard']());if(_0x3eae55['every'](_0x1b1a48=>_0x2e7a52['some'](_0x461702=>_0x461702['containsRange'](_0x1b1a48,!0x0)))){const _0x3458bb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58010,'accept');return this['forceDefaultExecution'](()=>_0x3458bb(_0x539574,null,_0x39f63d)),null;}}else{const _0x2b8c7d=_0x267995['getFirstRange']();_0x3eae55['some'](_0x4a8af5=>_0x4a8af5['containsRange'](_0x2b8c7d,!0x0))&&_0x267995['discard']();if(_0x3eae55['every'](_0x2c360a=>_0x2b8c7d['containsRange'](_0x2c360a,!0x0))){const _0x522be1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58010,'accept');return this['forceDefaultExecution'](()=>_0x522be1(_0x3eae55,null,_0x39f63d)),null;}}const _0x331351=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58010,'join');let _0xd232a=null;for(const _0x3cbc95 of this['getSuggestions']())if(_0x3cbc95['author']['id']==_0x1114ff['id']&&_0x3cbc95['isInContent']&&'deletion'==_0x3cbc95['type']&&_0x3cbc95['subType']==_0x58010&&Qt(_0x3cbc95,_0x39f63d)&&(_0x331351(_0x3cbc95['getRanges'](),_0x3eae55)||_0x331351(_0x3eae55,_0x3cbc95['getRanges']()))){if(_0xd232a){if(_0x3cbc95['commentThread']&&_0x3cbc95['commentThread']['length'])continue;for(const _0x4625d5 of _0x3cbc95['getRanges']())_0xd232a['isIntersectingWithRange'](_0x4625d5)||_0xd232a['addRange'](_0x4625d5);_0x3cbc95['removeMarkers']();}else{_0xd232a=_0x3cbc95;for(const _0x2fb7ff of _0x3eae55)_0x3cbc95['isIntersectingWithRange'](_0x2fb7ff)||_0x3cbc95['addRange'](_0x2fb7ff);}}if(_0xd232a)return _0xd232a;_0x11cde5['clear']();for(const {suggestion:_0x828c2c,meta:_0x1771f2}of this['_findSuggestions'](_0x3eae55,'deletion'))_0x1771f2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1771f2['containsRangeInObject']&&!_0x1771f2['isInsideObject'])&&Qt(_0x828c2c,_0x39f63d)&&_0x11cde5['add'](_0x828c2c);for(const _0x36526b of _0x11cde5){const _0x40b797=_0x36526b['getRanges']();if(!_0x39f63d||!_0x39f63d['skipNestingCheck']){if(_0x3eae55['every'](_0xb718a=>_0x40b797['some'](_0x46bbd0=>_0x46bbd0['containsRange'](_0xb718a,!0x0))))return _0x36526b;}(!_0x36526b['attributes']||!_0x36526b['attributes']['skipNestingCheck'])&&(_0x40b797['every'](_0x3ddd6d=>_0x3eae55['some'](_0xdd5c77=>_0xdd5c77['containsRange'](_0x3ddd6d,!0x0)))&&_0x36526b['discard']());}const _0xbbbe23=_0x429b71(),_0x16b4e2=_0x1114ff['id'],_0x43b94c='deletion:'+_0x58010,_0x517e2=this['_setSuggestionData']({'id':_0xbbbe23,'type':_0x43b94c,'createdAt':new Date(),'authorId':_0x16b4e2,'attributes':_0x39f63d});for(const _0x4526c2 of _0x3eae55)_0x4526c2['detach'](),_0x4526c2['isCollapsed']||'$graveyard'==_0x4526c2['root']['rootName']||this['_addSuggestionMarker'](_0x43b94c,_0xbbbe23,_0x16b4e2,_0x4526c2,o['getMultiRangeId']());return _0x517e2;}['markAttributeChange'](_0x2dbd5d,_0x1e21bd,_0x407151,_0x2a4f54,_0x50a3f5){if(_0x2dbd5d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2d50de=this['editor']['plugins']['get']('Users')['me']['id'],_0x4e5a20=Array['from'](this['_suggestions']['values']())['filter'](_0x38de28=>'attribute'==_0x38de28['type']&&_0x38de28['data']['key']==_0x1e21bd&&_0x38de28['isIntersectingWithRange'](_0x2dbd5d));if('default'===this['_trackFormatChanges']){const _0x15817b=this['_findSuggestions'](_0x2dbd5d,'insertion')['filter'](({meta:_0xde93cd})=>_0xde93cd['isOwn']&&!_0xde93cd['isInsideObject']&&!_0xde93cd['isNextTo'])['map'](({suggestion:_0x5088ea})=>_0x5088ea);_0x4e5a20['unshift'](..._0x15817b);}const _0x36f039=new Map([[_0x2dbd5d,_0x407151]]);for(const _0x77024c of _0x4e5a20){const _0x3ff202='attribute'==_0x77024c['type']?_0x77024c['data']['oldValue']:void 0x0,_0x44820e=_0x77024c['getFirstRange'](),_0x39ca78=Array['from'](_0x36f039['keys']())['find'](_0x43120c=>_0x43120c['isIntersecting'](_0x44820e));if(!_0x39ca78)continue;const _0x2d3ef6=_0x39ca78['getDifference'](_0x44820e);this['_isBlockAttribute'](_0x1e21bd)&&'insertion'==_0x77024c['type']&&0x0!=_0x2d3ef6['length']||(_0x36f039['delete'](_0x39ca78),_0x2d3ef6['forEach'](_0x2a1869=>{_0x36f039['set'](_0x2a1869,_0x407151);}),'insertion'!=_0x77024c['type']&&_0x3ff202!=_0x2a4f54&&_0x36f039['set'](_0x39ca78['getIntersection'](_0x44820e),_0x3ff202));}const _0x57d190=[];for(const [_0x3fdcb8,_0x136e41]of _0x36f039){const _0x7a14f4=_0x429b71(),_0xcbd443={'key':_0x1e21bd,'oldValue':_0x136e41,'newValue':_0x2a4f54};_0x1e21bd['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':_0x1e21bd});const _0x58f50f=('attribute:'+(_0x1e21bd+'|'+Jt({'newValue':_0x2a4f54})))['substring'](0x0,0x3c),_0x4af3f2=this['_setSuggestionData']({'id':_0x7a14f4,'type':_0x58f50f,'data':_0xcbd443,'createdAt':new Date(),'authorId':_0x2d50de,'attributes':_0x50a3f5});_0x57d190['push'](_0x4af3f2),this['_addSuggestionMarker'](_0x58f50f,_0x7a14f4,_0x2d50de,_0x3fdcb8);}return _0x57d190;}['enableDefaultAttributesIntegration'](_0x214a50){this['enableCommand'](_0x214a50,(_0x5a7b41,..._0x5cee9b)=>{this['_recordAttributeChanges'](()=>{_0x5a7b41(..._0x5cee9b);});});}['registerBlockAttribute'](_0x345136){this['_blockAttributeKeys']['add'](_0x345136);}['registerInlineAttribute'](_0x2b3525){this['_inlineAttributeKeys']['add'](_0x2b3525);}['_getAttributeKey'](_0x140fc5){return'attribute'==_0x140fc5['type']?_0x140fc5['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3e3dfe,_0x482d5c){const _0xd753f7=_0x3e3dfe['getFirstMarker']();this['_model']['change'](_0x4b7df8=>{_0x4b7df8['updateMarker'](_0xd753f7,{'range':_0x482d5c});});}['_addThreadToSuggestion'](_0x505a13){const _0x199e87=_0x505a13['id'],_0x1e5da2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x199e87)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1e5da2,'threadId':_0x199e87,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2800c4=this['_commentsRepository']['getCommentThread'](_0x199e87);_0x2800c4['unbind']('isRemovable'),_0x2800c4['isRemovable']=!0x1,_0x505a13['commentThread']=_0x2800c4;}['_checkSuggestionCorrectness'](_0x25c8c4,_0x2f5780,_0x6c6b35,_0x501fef){if(_0x25c8c4['type']!=_0x2f5780||_0x25c8c4['subType']!=_0x6c6b35||_0x25c8c4['creator']['id']!=_0x501fef)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3c865c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3dc9a6,_0x6cf42c){const _0x4ece3b=_0x3dc9a6['getFirstRange']();if(_0x6cf42c['isEqual'](_0x4ece3b))_0x3dc9a6['removeMarkers']();else{if(_0x4ece3b['containsRange'](_0x6cf42c)){const _0x50f879=this['_model']['createPositionAt'](_0x6cf42c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3dc9a6,this['_model']['createRange'](_0x4ece3b['start'],_0x50f879));const _0x53336b=_0x429b71(),_0x32c903=_0x3dc9a6['creator']['id'],_0x15e09a=_0x3dc9a6['type']+':'+_0x3dc9a6['subType'];this['_setSuggestionData']({'id':_0x53336b,'type':_0x15e09a,'createdAt':new Date(),'authorId':_0x32c903,'data':_0x3dc9a6['data'],'attributes':_0x3dc9a6['attributes']});const _0x18f5cd=this['_model']['createPositionAt'](_0x6cf42c['end']['parent'],'after'),_0x19cc48=this['_model']['createRange'](_0x18f5cd,_0x4ece3b['end']);this['_addSuggestionMarker'](_0x15e09a,_0x53336b,_0x32c903,_0x19cc48);}else{if(_0x4ece3b['containsPosition'](_0x6cf42c['start'])){const _0x6944c1=this['_model']['createPositionAt'](_0x6cf42c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3dc9a6,this['_model']['createRange'](_0x4ece3b['start'],_0x6944c1));}else{const _0x2d9c62=this['_model']['createPositionAt'](_0x6cf42c['end']['parent'],'after');this['_setSuggestionRange'](_0x3dc9a6,this['_model']['createRange'](_0x2d9c62,_0x4ece3b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x463bd6){for(const {suggestion:_0x2f7444,meta:_0xb6b789}of this['_findSuggestions'](_0x463bd6,'insertion')){if(!_0xb6b789['isOwn'])continue;const _0x49e505=_0x2f7444['getRanges']();for(const _0x25a35e of _0x49e505)if(!_0x463bd6['getDifference'](_0x25a35e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4662b0){const _0x2da868=this['editor']['plugins']['get']('Users')['getUser'](_0x4662b0);if(!_0x2da868)throw new _0x3c865c('track-changes-user-not-found',this);return _0x2da868;}['_getExternalAuthor'](_0x16e589){const _0x434ac0=this['editor']['plugins']['get']('Users'),_0x4e80d0=_0x2eecaa('external:'+_0x16e589),_0x1d68f9=_0x434ac0['getUser'](_0x4e80d0);return _0x1d68f9||_0x434ac0['addUser']({'id':_0x4e80d0,'name':_0x16e589});}['_createSuggestion'](_0x2c62be,_0xa5e109,_0x384ffe,_0x1388fe,_0x462e99){const _0xed1f5e=this['_getAuthorFromId'](_0x1388fe),_0x351c90=this['_suggestionFactory']['buildSuggestion'](_0x2c62be,_0xa5e109,_0x384ffe,_0xed1f5e,_0x462e99,_0x1b98ef=>{this['_updateSuggestionData'](_0x384ffe,{'attributes':_0x1b98ef});const _0x306341=this['getSuggestion'](_0x384ffe);this['_joinWithAdjacentSuggestions'](new Set([_0x306341])),this['_refreshSuggestionsChain'](new Set([_0x306341]));});return this['listenTo'](_0x351c90,'accept',()=>{this['_updateSuggestionData'](_0x384ffe,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x351c90,'discard',()=>{this['_updateSuggestionData'](_0x384ffe,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x384ffe,_0x351c90),this['_suggestionState']['set'](_0x351c90,'notReady'),_0x351c90;}['_splitMarkerName'](_0x30193c){const _0x13ce15=_0x30193c['split'](':');return{'group':_0x13ce15[0x0],'type':_0x13ce15[0x1],'subType':_0x13ce15['length']>=0x5?_0x13ce15[0x2]:null,'id':_0x13ce15['length']<0x5?_0x13ce15[0x2]:_0x13ce15[0x3],'authorId':_0x13ce15['length']<0x5?_0x13ce15[0x3]:_0x13ce15[0x4],'markerCount':0x6==_0x13ce15['length']?_0x13ce15[0x5]:null};}['_breakSuggestionMarker'](_0x234d9c,_0x5e8edd,_0x364911){const _0x5b6d57=_0x234d9c['getFirstRange'](),_0x8eabaf=_0x5b6d57['start'],_0x2bfe49=_0x5b6d57['end'];this['_setSuggestionRange'](_0x234d9c,this['_model']['createRange'](_0x8eabaf,_0x5e8edd));const _0x40a4ba=_0x429b71(),_0x2627d7=_0x234d9c['creator']['id'],_0x11af21=_0x234d9c['type']+(_0x234d9c['subType']?':'+_0x234d9c['subType']:'');this['_setSuggestionData']({'id':_0x40a4ba,'type':_0x11af21,'createdAt':new Date(),'authorId':_0x2627d7,'originalSuggestionId':_0x234d9c['id'],'attributes':_0x234d9c['attributes'],'data':_0x234d9c['data']});const _0x234065=this['_getAttributeKey'](_0x234d9c);('formatBlock'==_0x234d9c['type']||_0x234065&&this['_isBlockAttribute'](_0x234065))&&(_0x364911=this['_model']['createPositionBefore'](_0x364911['parent'])),this['_addSuggestionMarker'](_0x11af21,_0x40a4ba,_0x2627d7,this['_model']['createRange'](_0x364911,_0x2bfe49));}['_findSuggestions'](_0x455acb,_0x59405e=null){const _0x86ced4=[],_0x58b879=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x455acb)||(_0x455acb=[_0x455acb]);for(const _0x3a0942 of this['getSuggestions']()){if(!_0x3a0942['isInContent'])continue;if(_0x59405e&&_0x3a0942['type']!=_0x59405e)continue;let _0x32c9c4=!0x1;for(const _0x42a611 of _0x3a0942['getRanges']()){for(const _0x1ee4a2 of _0x455acb){const _0x3723d6=_0x1ee4a2['start']['isEqual'](_0x42a611['end'])||_0x1ee4a2['end']['isEqual'](_0x42a611['start']);if(_0x3723d6||_0x1ee4a2['getIntersection'](_0x42a611)){const _0x4bae39=_0x1ee4a2['containsRange'](_0x42a611)&&Pt(this['_model']['schema'],_0x42a611['start'],_0x1ee4a2),_0x14caea=_0x42a611['containsRange'](_0x1ee4a2)&&Pt(this['_model']['schema'],_0x1ee4a2['start'],_0x42a611);_0x86ced4['push']({'suggestion':_0x3a0942,'meta':{'isOwn':_0x58b879==_0x3a0942['author'],'isNextTo':_0x3723d6,'isInsideObject':_0x4bae39,'containsRangeInObject':_0x14caea}}),_0x32c9c4=!0x0;break;}}if(_0x32c9c4)break;}}return _0x86ced4;}['_addSuggestionMarker'](_0x5d5cee,_0x32c94f,_0x57d467,_0x373e26,_0x1f63f9){this['_model']['change'](_0x1081f0=>{let _0x57749b='suggestion:'+_0x5d5cee+':'+_0x32c94f+':'+_0x57d467;_0x1f63f9&&(_0x57749b=_0x57749b+':'+_0x1f63f9),_0x1081f0['addMarker'](_0x57749b,{'range':_0x373e26,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4458b7){const _0x341cb5=_0x4458b7['previous'],_0x2991c6=_0x4458b7['next'];_0x4458b7['previous']=null,_0x4458b7['next']=null,null!=_0x341cb5&&_0x341cb5['next']==_0x4458b7&&(_0x341cb5['next']=_0x2991c6),null!=_0x2991c6&&_0x2991c6['previous']==_0x4458b7&&(_0x2991c6['previous']=_0x341cb5),'ready'==this['_suggestionState']['get'](_0x4458b7)&&(this['_suggestionState']['set'](_0x4458b7,'removed'),this['fire']('suggestionUnloaded',_0x4458b7,_0x341cb5,_0x2991c6));}['_setSuggestionData'](_0x2c132d){const _0x58bbbb=_0x2c132d['id'],_0x255fe9=this['addSuggestionData'](_0x2c132d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x90f4ab=this['editor']['plugins']['get']('PendingActions'),_0x102c6a=_0x255fe9['hasComments'],_0x38370f=_0x255fe9['subType']?_0x255fe9['type']+':'+_0x255fe9['subType']:_0x255fe9['type'],_0x49ba92=this['editor']['locale'],_0x463ba1=_0x90f4ab['add'](c(_0x49ba92,'PENDING_ACTION_SUGGESTION')),_0x3cbaf0={'id':_0x58bbbb,'type':_0x38370f,'hasComments':_0x102c6a,'data':_0x2c132d['data']||null,'originalSuggestionId':_0x2c132d['originalSuggestionId']||null,'attributes':_0x255fe9['attributes']};this['_adapter']['addSuggestion'](_0x3cbaf0)['then'](_0x1d9eec=>{_0x255fe9['_saved']=!0x0,_0x90f4ab['remove'](_0x463ba1),_0x1d9eec&&_0x1d9eec['createdAt']&&(this['_suggestions']['get'](_0x58bbbb)['createdAt']=_0x1d9eec['createdAt']);})['catch'](_0x3b2a66=>{throw _0x869b35('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x255fe9['discard']();}),_0x255fe9['stopListening'](),this['_suggestions']['delete'](_0x255fe9['id']),this['_suggestionState']['delete'](_0x255fe9),_0x3b2a66;});}return _0x255fe9;}['_isBlockAttribute'](_0x31eaa5){return this['_blockAttributeKeys']['has'](_0x31eaa5);}['_updateSuggestionData'](_0x56c631,_0x1607f0){const _0x3ad93c=this['editor']['plugins']['get']('PendingActions'),_0x46de49=this['getSuggestion'](_0x56c631);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x46de49['_saved']){const _0x137781=_0x3ad93c['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x56c631,_0x1607f0)['then'](()=>{_0x3ad93c['remove'](_0x137781);});}else _0x46de49['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x56c631,_0x1607f0);});}}['_getSuggestionData'](_0x49f541){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3c865c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x49f541);}['_handleNewSuggestionMarker'](_0x3b8d78){const {id:_0x496733,type:_0x2c582a,subType:_0x22e447,authorId:_0x52d799}=this['_splitMarkerName'](_0x3b8d78),_0x1fb43d=this['_suggestions']['get'](_0x496733)||this['_createSuggestion'](_0x2c582a,_0x22e447,_0x496733,_0x52d799,{});switch(this['_checkSuggestionCorrectness'](_0x1fb43d,_0x2c582a,_0x22e447,_0x52d799),this['_suggestionState']['get'](_0x1fb43d)){case'notReady':this['_getSuggestionData'](_0x496733)['then'](_0x14517f=>{let _0x564029=Promise['resolve']();_0x14517f['hasComments']&&(_0x564029=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x496733})),_0x564029['then'](()=>{this['addSuggestionData'](_0x14517f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1fb43d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x496733,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1fb43d,'ready'),this['fire']('suggestionLoaded',_0x1fb43d);break;case'ready':this['fire']('suggestionChanged',_0x1fb43d);}return _0x1fb43d['addMarkerName'](_0x3b8d78),_0x1fb43d;}['_refreshSuggestionsChain'](_0x1eba82){const _0x416f54=Array['from'](_0x1eba82),_0x20d522=_0x416f54['filter'](_0x2eeb00=>'attribute'==_0x2eeb00['type']);this['_refreshAttributeSuggestionsChain'](_0x20d522);const _0x4b0216=_0x416f54['filter'](_0x552f4e=>!_0x552f4e['isMultiRange']&&'attribute'!=_0x552f4e['type']),_0x258d76=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x311687=>!_0x311687['isMultiRange']&&'attribute'!=_0x311687['type']),_0x253ecb=_0x258d76['filter'](_0x13677f=>!_0x1eba82['has'](_0x13677f)),_0x46302a=new Map(_0x258d76['map'](_0x2bee12=>[_0x2bee12,this['_suggestionFactory']['getSuggestionCallback'](_0x2bee12['type'],_0x2bee12['subType'],'chain')])),_0x2ab37c=new Map(_0x258d76['map'](_0x6df606=>[_0x6df606,_0x6df606['getFirstRange']()])),_0x374171=new Set(),_0x2b554b=new Set();for(let _0x2b8881=0x0;_0x2b8881<_0x4b0216['length'];_0x2b8881++)_0x4e06ef(_0x4b0216[_0x2b8881],_0x4b0216,_0x2b8881+0x1);for(let _0x41faba=0x0;_0x41faba<_0x4b0216['length'];_0x41faba++)_0x4e06ef(_0x4b0216[_0x41faba],_0x253ecb,0x0);const _0x27af9f=new Set();for(let _0xb945b1=0x0;_0xb945b1<_0x4b0216['length'];_0xb945b1++){const _0x2002bd=_0x4b0216[_0xb945b1];!_0x2b554b['has'](_0x2002bd)&&_0x2002bd['previous']&&(_0x27af9f['add'](_0x2002bd['previous']),_0x2002bd['previous']['next']===_0x2002bd&&(_0x2002bd['previous']['next']=null),_0x2002bd['previous']=null),!_0x374171['has'](_0x2002bd)&&_0x2002bd['next']&&(_0x27af9f['add'](_0x2002bd['next']),_0x2002bd['next']['previous']===_0x2002bd&&(_0x2002bd['next']['previous']=null),_0x2002bd['next']=null);}function _0x4e06ef(_0x368e2b,_0x356599,_0x6c4e6a){for(let _0x583cf5=_0x6c4e6a;_0x583cf5<_0x356599['length'];_0x583cf5++){const _0x46a247=_0x442e1e(_0x368e2b,_0x356599[_0x583cf5]);_0x46a247&&(_0x46a247[0x0]['next']=_0x46a247[0x1],_0x46a247[0x1]['previous']=_0x46a247[0x0],_0x374171['add'](_0x46a247[0x0]),_0x2b554b['add'](_0x46a247[0x1]));}}function _0x442e1e(_0x3a2310,_0x51e9a7){if(_0x3a2310['author']['id']!==_0x51e9a7['author']['id'])return null;const _0x2fc6f9=_0x46302a['get'](_0x3a2310)(_0x3a2310,_0x51e9a7,_0x2ab37c['get'](_0x3a2310),_0x2ab37c['get'](_0x51e9a7));if(!_0x2fc6f9)return null;return _0x46302a['get'](_0x51e9a7)(_0x3a2310,_0x51e9a7,_0x2ab37c['get'](_0x3a2310),_0x2ab37c['get'](_0x51e9a7))?_0x2fc6f9[0x1]['commentThread']&&_0x2fc6f9[0x1]['commentThread']['length']?null:_0x2fc6f9:null;}_0x27af9f['size']&&this['_refreshSuggestionsChain'](_0x27af9f);}['_refreshAttributeSuggestionsChain'](_0x4d2e2f){if(0x0==_0x4d2e2f['length'])return;const _0x148b34=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x103042=>'attribute'==_0x103042['type']&&_0x103042['_isDataLoaded']),_0x66835b=[],_0x1f2e15=new Map();for(const _0x1590ab of _0x148b34){const _0x2566c7=_0x2eecaa(_0x1590ab['attributes']);_0x1f2e15['has'](_0x2566c7)||(_0x1f2e15['set'](_0x2566c7,_0x66835b['length']),_0x66835b['push']([]));const _0x19aa37=_0x1f2e15['get'](_0x2566c7);_0x66835b[_0x19aa37]['push'](_0x1590ab);}!(function(){_0x66835b['sort']((_0x199285,_0x44eaf1)=>{const _0x212bc5=_0x199285[0x0]['createdAt'],_0x56fc32=_0x44eaf1[0x0]['createdAt'];return _0x212bc5==_0x56fc32?_0x199285[0x0]['attributes']['groupId']<_0x44eaf1[0x0]['attributes']['groupId']?-0x1:0x1:_0x212bc5<_0x56fc32?-0x1:0x1;});for(const _0x5c846c of _0x66835b)_0x5c846c['sort']((_0x563883,_0x2985a0)=>_0x563883['id']<_0x2985a0['id']?-0x1:0x1);}());for(let _0x35a613=0x0;_0x35a613<_0x66835b['length'];_0x35a613++){if(0x0==_0x66835b[_0x35a613]['length'])continue;const _0x212cce=[];for(let _0x2ce682=_0x35a613+0x1;_0x2ce682<_0x66835b['length'];_0x2ce682++)0x0!=_0x66835b[_0x2ce682]['length']&&_0x8d9a72(_0x66835b[_0x35a613],_0x66835b[_0x2ce682])&&_0x212cce['push'](_0x2ce682);for(const _0x415c58 of _0x212cce)_0x66835b[_0x35a613]=_0x66835b[_0x35a613]['concat'](_0x66835b[_0x415c58]),_0x66835b[_0x415c58]=[];}for(const _0x5d4ac2 of _0x66835b)for(let _0x521664=0x0;_0x521664<_0x5d4ac2['length'];_0x521664++){const _0x18eacb=_0x5d4ac2[_0x521664+0x1]||null;_0x5d4ac2[_0x521664]['next']!==_0x18eacb&&(_0x5d4ac2[_0x521664]['next']=_0x18eacb);}for(const _0x38b9f1 of _0x66835b)for(let _0x4f2253=0x0;_0x4f2253<_0x38b9f1['length'];_0x4f2253++){const _0x1d329a=_0x38b9f1[_0x4f2253-0x1]||null;_0x38b9f1[_0x4f2253]['previous']!==_0x1d329a&&(_0x38b9f1[_0x4f2253]['previous']=_0x1d329a);}function _0x8d9a72(_0x13ef0c,_0x8beae2){if(_0x13ef0c[0x0]['attributes']['groupId']!==_0x8beae2[0x0]['attributes']['groupId']&&_0x13ef0c[0x0]['author']!==_0x8beae2[0x0]['author'])return!0x1;if(!function(_0x46647a,_0x5a6163){if(!_0x46647a['hasComments']&&!_0x5a6163['hasComments'])return!0x0;if(_0x46647a['hasComments']&&_0x5a6163['hasComments'])return!0x1;if(_0x46647a['hasComments']&&_0x5a6163['createdAt']<_0x46647a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5a6163['hasComments']&&_0x46647a['createdAt']<_0x5a6163['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x13ef0c[0x0],_0x8beae2[0x0]))return!0x1;const _0x3cc055=Vt(_0x13ef0c[0x0]['attributes'],'groupId'),_0x2d1a5d=Vt(_0x8beae2[0x0]['attributes'],'groupId');if(!_0x52f535(_0x3cc055,_0x2d1a5d))return!0x1;return!!_0x13ef0c['every'](_0x493f76=>_0x8beae2['some'](_0x3bb28a=>_0x493f76['getFirstRange']()['isEqual'](_0x3bb28a['getFirstRange']())))&&_0x8beae2['every'](_0x4a3c3b=>_0x13ef0c['some'](_0x34f4a3=>_0x4a3c3b['getFirstRange']()['isEqual'](_0x34f4a3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3927ff){const _0x9ef089=Array['from'](_0x3927ff),_0x25ea27=this['getSuggestions']({'skipNotAttached':!0x0}),_0x312717=_0x25ea27['filter'](_0x3c1014=>!_0x3927ff['has'](_0x3c1014)),_0x4d2ce6=new Map(_0x9ef089['map'](_0x5ba8f9=>[_0x5ba8f9,this['_suggestionFactory']['getSuggestionCallback'](_0x5ba8f9['type'],_0x5ba8f9['subType'],'join')])),_0x371ac0=new Map(_0x25ea27['map'](_0x34cab3=>[_0x34cab3,_0x34cab3['getRanges']()]));for(let _0x2263ca=0x0;_0x2263ca<_0x9ef089['length'];_0x2263ca++){if(_0x3a938f(this,_0x9ef089[_0x2263ca],_0x9ef089,_0x2263ca+0x1))return!0x0;}for(let _0x28bc97=0x0;_0x28bc97<_0x9ef089['length'];_0x28bc97++){if(_0x3a938f(this,_0x9ef089[_0x28bc97],_0x312717,0x0))return!0x0;}return!0x1;function _0x3a938f(_0x30a831,_0x215849,_0x55fe9b,_0x162552){for(let _0x1c507e=_0x162552;_0x1c507e<_0x55fe9b['length'];_0x1c507e++){const _0x45c215=_0x55fe9b[_0x1c507e];if(_0x45c215['type']!==_0x215849['type']||_0x45c215['author']['id']!==_0x215849['author']['id']||_0x45c215['subType']!==_0x215849['subType'])continue;if(!Wt(_0x215849,_0x45c215))continue;if('attribute'==_0x215849['type']&&_0x215849['data']['oldValue']!=_0x45c215['data']['oldValue'])continue;if('attribute'==_0x215849['type']&&_0x30a831['_isBlockAttribute'](_0x215849['data']['key']))continue;if('formatBlock'==_0x215849['type']){const _0x117882=_0x30a831['editor']['model'],_0x5b94ec=_0x215849['getContainedElement']();if(_0x5b94ec&&(_0x117882['schema']['isObject'](_0x5b94ec)||_0x117882['schema']['isLimit'](_0x5b94ec)))continue;}const _0x2e2363=_0x4d2ce6['get'](_0x215849),_0x28e66c=_0x371ac0['get'](_0x215849),_0x232ca8=_0x371ac0['get'](_0x45c215),_0x398865=_0x215849['commentThread']&&_0x215849['commentThread']['length'],_0x5db28b=_0x45c215['commentThread']&&_0x45c215['commentThread']['length'];if(!_0x398865&&_0x2e2363(_0x232ca8,_0x28e66c))return _0x30a831['_joinSuggestions'](_0x45c215,_0x215849),_0x371ac0['delete'](_0x215849),!0x0;if(!_0x5db28b&&_0x2e2363(_0x28e66c,_0x232ca8))return _0x30a831['_joinSuggestions'](_0x215849,_0x45c215),_0x371ac0['delete'](_0x45c215),!0x0;}return!0x1;}}['_joinSuggestions'](_0x288d13,_0x56dcef){if(_0x288d13['isMultiRange']){for(const _0x31b6f9 of _0x56dcef['getRanges']())_0x288d13['addRange'](_0x31b6f9);}else{const _0x3d1d38=_0x56dcef['getFirstRange']()['end'];this['_setSuggestionRange'](_0x288d13,this['_model']['createRange'](_0x288d13['getFirstRange']()['start'],_0x3d1d38));}_0x56dcef['removeMarkers']();}['_getMarkerAnnouncementText'](_0x73e34e,_0x474ad0,_0x3676e8){const _0x3a570b=_0x73e34e['startsWith']('format')||_0x73e34e['startsWith']('attribute')?'FORMATTING':_0x73e34e['toUpperCase']();return c(this['editor']['locale'],_0x474ad0+'_'+_0x3a570b+'_SUGGESTION_ANNOUNCEMENT',_0x3676e8);}['_initAriaMarkerChangeAnnouncements'](){const _0xb78a98=this['editor'];if(!_0xb78a98['ui'])return;const {ariaLiveAnnouncer:_0x50fd42}=_0xb78a98['ui'];_0x120bfa(this['_model'],({left:_0x349c58,entered:_0x5672b4})=>{for(const _0x32f4db of _0x349c58){const {group:_0x42625e,type:_0x37072d}=this['_splitMarkerName'](_0x32f4db['name']);if('suggestion'===_0x42625e){_0x50fd42['announce'](this['_getMarkerAnnouncementText'](_0x37072d,'LEAVE'));break;}}for(const _0x3fc185 of _0x5672b4){const {group:_0x54b3a9,type:_0x839d67}=this['_splitMarkerName'](_0x3fc185['name']);if('suggestion'===_0x54b3a9){_0x50fd42['announce'](this['_getMarkerAnnouncementText'](_0x839d67,'ENTER',_0x2c2ad8(_0x2f905b)));break;}}});}['_processAttributeChanges'](_0x1bb385){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd216b0=this['editor'],_0x52f22f=_0xd216b0['model']['document']['differ']['getChanges']();if(0x0==_0x52f22f['length'])return!0x1;const _0x53d1f5=[],_0x36accc=_0x52f22f['filter'](_0x1ee290=>'attribute'==_0x1ee290['type']),_0x2382c3=_0x52f22f['filter'](_0x3e8729=>'insert'==_0x3e8729['type']&&'$text'!=_0x3e8729['name']),_0x80b5cc=_0x52f22f['filter'](_0x2591c8=>'remove'==_0x2591c8['type']&&'$text'!=_0x2591c8['name']);for(const _0x1420b5 of _0x36accc)_0x53d1f5['push']({'key':_0x1420b5['attributeKey'],'newValue':_0x1420b5['attributeNewValue'],'oldValue':_0x1420b5['attributeOldValue'],'range':Ht(_0x1420b5['range'],_0xd216b0['model'])});for(const _0x19fec8 of _0x2382c3){const _0x309406=_0x80b5cc['find'](_0x20b6b0=>_0x20b6b0['position']['isEqual'](_0x19fec8['position']));_0x309406&&_0x53d1f5['push']({'key':u,'newValue':_0x19fec8['name'],'oldValue':_0x309406['name'],'range':_0xd216b0['model']['createRangeOn'](_0x19fec8['position']['nodeAfter'])});}return 0x0!=_0x53d1f5['length']&&this['_reduceExistingSuggestions'](_0x1bb385,_0x53d1f5);}['_processAttributeSuggestions'](_0x131077){let _0x20f9ec=!0x1;const _0xea0602=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xed54de=>_0xed54de['data']['newRange']&&_0xed54de['name']['startsWith']('suggestion:attribute:'));for(const _0x14f3f1 of _0xea0602){const {subType:_0x37f8fa,id:_0x5c7ef3}=this['_splitMarkerName'](_0x14f3f1['name']),_0x292254=_0x37f8fa['split']('|')[0x0];for(const _0x2e8699 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2e8699['id']!=_0x5c7ef3&&'attribute'==_0x2e8699['type']&&_0x2e8699['data']&&_0x2e8699['data']['key']==_0x292254&&_0x2e8699['getFirstRange']()['isIntersecting'](_0x14f3f1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2e8699,_0x14f3f1['data']['newRange'],_0x131077),_0x20f9ec=!0x0);}return _0x20f9ec;}['_recordAttributeChanges'](_0x35546c){this['_recordAttributeSuggestions']=!0x0,_0x35546c();}['_isRegisteredAttribute'](_0x4c6479){const _0x253300=this['_isBlockAttribute'](_0x4c6479),_0xbc1f89=this['_inlineAttributeKeys']['has'](_0x4c6479);return _0x253300||_0xbc1f89;}['_reduceExistingSuggestions'](_0x2ae6b0,_0x276185){if(0x0==_0x276185['length'])return!0x1;let _0x5cb162=!0x1;for(const _0x14d7a8 of _0x276185){const _0x40e5a5=this['_findSuggestions'](_0x14d7a8['range'],'attribute')['filter'](_0x5a1d9b=>!_0x5a1d9b['meta']['isNextTo'])['map'](_0x3dfaff=>_0x3dfaff['suggestion']),_0x5e42ce=_0x2eecaa({'newValue':_0x14d7a8['newValue']});_0x40e5a5['filter'](_0x23b21f=>{const [_0x580018,_0x9efec0]=_0x23b21f['subType']['split']('|');return _0x580018==_0x14d7a8['key']&&_0x9efec0!=_0x5e42ce;})['forEach'](_0x4da897=>{this['_reduceSuggestionAttributeRange'](_0x4da897,_0x14d7a8['range'],_0x2ae6b0),_0x5cb162=!0x0;});}return _0x5cb162;}['_reduceSuggestionAttributeRange'](_0x3b0ee7,_0x5f1ea6,_0x49f1b5){const _0x58cc6e=_0x3b0ee7['getFirstRange']()['getDifference'](_0x5f1ea6);0x0!==_0x58cc6e['length']?0x1!==_0x58cc6e['length']?this['_breakSuggestionMarker'](_0x3b0ee7,_0x5f1ea6['start'],_0x5f1ea6['end']):this['_setSuggestionRange'](_0x3b0ee7,_0x58cc6e[0x0]):_0x49f1b5['removeMarker'](_0x3b0ee7['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x15c841){this['_editor']=_0x15c841,this['_model']=_0x15c841['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x47cea0,_0x3114d1,_0x43f3be,_0x1e71e6,_0x268249,_0x33cf1c){return new o(this['_model'],{'type':_0x47cea0,'subType':_0x3114d1,'id':_0x43f3be,'author':_0x1e71e6,'creator':_0x1e71e6,'attributes':_0x268249,'onAttributesChange':_0x33cf1c,'onAccept':(..._0x5804c1)=>this['getSuggestionCallback'](_0x47cea0,_0x3114d1,'accept')(..._0x5804c1),'onDiscard':(..._0x20aeb4)=>this['getSuggestionCallback'](_0x47cea0,_0x3114d1,'discard')(..._0x20aeb4)});}['registerCustomCallback'](_0x230e22,_0x101157,_0xae0f86,_0x2f6c10){const _0x218451=_0x230e22+':'+_0x101157+':'+_0xae0f86;this['_customCallbacks']['set'](_0x218451,_0x2f6c10);}['getSuggestionCallback'](_0x3005dc,_0x532e79,_0xb05d26){const _0x19dda6=_0x3005dc+':'+_0x532e79+':'+_0xb05d26;return this['_customCallbacks']['get'](_0x19dda6)||this['_defaultCallbacks']['get'](_0x3005dc+':'+_0xb05d26);}['_registerDefaultCallbacks'](){const _0x209aa1=()=>!0x1,_0x57511f=_0xa8ab88=>{_0xa8ab88['sort']((_0x4c675b,_0x42ced1)=>_0x4c675b['start']['isBefore'](_0x42ced1['start'])?0x1:-0x1),this['_model']['change'](_0x1adeb3=>{for(const _0x441118 of _0xa8ab88){let _0x942e15;_0x942e15=_0x441118['end']['isAtEnd']&&_0x441118['end']['parent']==_0x441118['start']['nodeAfter']?_0x1adeb3['createSelection'](_0x441118['start']['nodeAfter'],'on'):_0x1adeb3['createSelection'](_0x441118),this['_model']['deleteContent'](_0x942e15,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1ce398=(_0x3c3a81,_0x8960fe)=>{_0x8960fe&&this['_model']['change'](_0x30c8ce=>{const {commandName:_0x4fc3f8,commandParams:_0x444b72=[]}=_0x8960fe,_0x25a21e=_0x3c3a81['map'](_0x323845=>(Gt(_0x323845)&&(_0x323845=this['_model']['createRange'](_0x323845['end'])),_0x323845))['filter'](_0x5a71e9=>'$graveyard'!==_0x5a71e9['root']['rootName']);if(_0x25a21e['length']<0x1)return;const _0x4f8836=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x21312d=>_0x315628['fromRange'](_0x21312d));_0x30c8ce['setSelection'](_0x25a21e);for(const _0x44d9dd of this['_editor']['commands']['commands']())_0x44d9dd['refresh']();_0x444b72['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4fc3f8,..._0x444b72);const _0x59f668=_0x4f8836['filter'](_0x520c09=>'$graveyard'!=_0x520c09['root']['rootName']);_0x59f668['length']>0x0&&_0x30c8ce['setSelection'](_0x59f668);for(const _0x33e123 of _0x4f8836)_0x33e123['detach']();});},_0x3cb839=(_0x9f6924,_0x12c197)=>0x1==_0x9f6924['length']&&0x1==_0x12c197['length']&&_0x9f6924[0x0]['end']['isEqual'](_0x12c197[0x0]['start']),_0x347e24=(_0x3733b9,_0xf7cd11,_0x258354,_0x3aa9d5)=>zt(_0x3733b9,_0xf7cd11,_0x258354,_0x3aa9d5)?[_0x3733b9,_0xf7cd11]:zt(_0xf7cd11,_0x3733b9,_0x3aa9d5,_0x258354)?[_0xf7cd11,_0x3733b9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x209aa1),this['_defaultCallbacks']['set']('insertion:discard',_0x57511f),this['_defaultCallbacks']['set']('insertion:join',_0x3cb839),this['_defaultCallbacks']['set']('insertion:chain',_0x347e24),this['_defaultCallbacks']['set']('deletion:accept',_0x57511f),this['_defaultCallbacks']['set']('deletion:discard',_0x209aa1),this['_defaultCallbacks']['set']('deletion:join',_0x3cb839),this['_defaultCallbacks']['set']('deletion:chain',_0x347e24),this['_defaultCallbacks']['set']('formatInline:accept',_0x1ce398),this['_defaultCallbacks']['set']('formatInline:discard',_0x209aa1),this['_defaultCallbacks']['set']('formatInline:join',_0x3cb839),this['_defaultCallbacks']['set']('formatInline:chain',_0x209aa1),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1ce398),this['_defaultCallbacks']['set']('formatBlock:discard',_0x209aa1),this['_defaultCallbacks']['set']('formatBlock:join',_0x3cb839),this['_defaultCallbacks']['set']('formatBlock:chain',_0x209aa1),this['_defaultCallbacks']['set']('attribute:accept',_0x209aa1),this['_defaultCallbacks']['set']('attribute:discard',(_0x3e47a1,_0x595a64)=>{if(!_0x595a64)return;const _0x21e082=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x266283=>{if(_0x595a64['key']==u)for(const _0x214d6a of _0x3e47a1){const _0x5afa5e=_0x214d6a['start']['nodeAfter'],_0xeacc1d=_0x595a64['oldValue'];_0x266283['rename'](_0x5afa5e,_0xeacc1d);}else{if(_0x21e082['_isBlockAttribute'](_0x595a64['key'])){for(const _0x3c178b of _0x3e47a1)void 0x0!==_0x595a64['oldValue']?_0x266283['setAttribute'](_0x595a64['key'],_0x595a64['oldValue'],_0x3c178b['start']['nodeAfter']):_0x266283['removeAttribute'](_0x595a64['key'],_0x3c178b['start']['nodeAfter']);}else{for(const _0x5bfb09 of _0x3e47a1)_0x595a64['oldValue']?_0x266283['setAttribute'](_0x595a64['key'],_0x595a64['oldValue'],_0x5bfb09):_0x266283['removeAttribute'](_0x595a64['key'],_0x5bfb09);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3cb839);}}function Pt(_0x5c94e5,_0x14dd97,_0xb94406){for(const _0x1eda4e of _0x14dd97['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1eda4e['root']==_0x1eda4e)return!0x1;if(!_0xb94406['containsItem'](_0x1eda4e))return!0x1;if(_0x5c94e5['isObject'](_0x1eda4e)||_0x5c94e5['isLimit'](_0x1eda4e))return!0x0;}return!0x1;}function Gt(_0x54f9b3){return _0x54f9b3['end']['parent']==_0x54f9b3['start']['nodeAfter']&&_0x54f9b3['end']['isAtStart'];}function Lt(_0x205c1e,_0x153a64,_0x452b92,_0x4c027f){const _0x3b7f2b=_0x54454b=>!_0x54454b['item']['is']('$textProxy')&&!_0x4c027f['isObject'](_0x54454b['item']),_0x345b8b=_0x205c1e['start']['getLastMatchingPosition'](_0x3b7f2b),_0x9f9511=_0x205c1e['end']['getLastMatchingPosition'](_0x3b7f2b,{'direction':'backward'});return(!_0x205c1e['start']['isEqual'](_0x345b8b)||!_0x205c1e['end']['isEqual'](_0x9f9511))&&(_0x345b8b['isBefore'](_0x9f9511)?_0x452b92['updateMarker'](_0x153a64,{'range':_0x452b92['createRange'](_0x345b8b,_0x9f9511)}):_0x452b92['removeMarker'](_0x153a64),!0x0);}function Jt(_0x4df715){return _0x2eecaa(_0x4df715);}function Kt(_0x3b1955){const _0x2ee160=_0x3b1955['start']['nodeAfter'];return _0x2ee160&&_0x2ee160['is']('element');}function Ht(_0x119ab1,_0x1a4125){return null==_0x119ab1['end']['nodeBefore']&&_0x119ab1['end']['parent']==_0x119ab1['start']['nodeAfter']?qt(_0x119ab1['start']['nodeAfter'],_0x1a4125):_0x119ab1;}function qt(_0x4ac3f5,_0x102125){const _0x2c9f87=_0x102125['schema']['isObject'](_0x4ac3f5)||_0x102125['schema']['isSelectable'](_0x4ac3f5);return _0x102125['createRange'](_0x102125['createPositionAt'](_0x4ac3f5,'before'),_0x2c9f87?_0x102125['createPositionAfter'](_0x4ac3f5):_0x102125['createPositionAt'](_0x4ac3f5,'end'));}function zt(_0x4641f4,_0x446ed4,_0x309f49,_0x24a42a){return!!Wt(_0x4641f4,_0x446ed4)&&_0x309f49['end']['isEqual'](_0x24a42a['start']);}function Wt(_0x216dfb,_0x2528ce){if(!_0x216dfb['_isDataLoaded']||!_0x2528ce['_isDataLoaded'])return!0x1;const _0xae2243=new Set(Object['keys'](_0x216dfb['attributes'])),_0x5a3290=new Set(Object['keys'](_0x2528ce['attributes']));if(_0xae2243['delete']('groupId'),_0x5a3290['delete']('groupId'),0x0==_0xae2243['size']&&0x0==_0x5a3290['size'])return!0x0;if(_0xae2243['size']!=_0x5a3290['size'])return!0x1;const _0x58c39f={..._0x216dfb['attributes']},_0x462610={..._0x2528ce['attributes']};return delete _0x58c39f['groupId'],delete _0x462610['groupId'],JSON['stringify'](_0x58c39f)==JSON['stringify'](_0x462610);}function Qt(_0x3701e0,_0x41e6bf){const _0x3a387f=Xt(_0x3701e0['attributes']),_0x45be9a=Xt(_0x41e6bf);if(!_0x3701e0['_isDataLoaded'])return!0x1;for(const _0x3fa629 of Object['keys'](_0x45be9a))if(!_0x52f535(_0x3a387f[_0x3fa629],_0x45be9a[_0x3fa629]))return!0x1;return!0x0;}function Xt(_0x529e7a){const _0x271895=Object['assign']({},_0x529e7a);return delete _0x271895['skipNestingCheck'],delete _0x271895['tablePasteChainId'],_0x271895;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2c2a41(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3eef56,_0x5f194b,_0x1e53a0,_0x1f33e8){super(),this['model']=_0x5f194b,this['view']=_0x1e53a0,this['commentThreadController']=_0x1f33e8,this['_editor']=_0x3eef56,this['_acceptCommand']=_0x3eef56['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3eef56['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x391c5f,_0x21d341)=>_0x391c5f||_0x21d341),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x49d0f6=>_0x49d0f6&&this['_editor']['model']['canEditAt'](_0x5f194b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x11d25b=>_0x11d25b&&this['_editor']['model']['canEditAt'](_0x5f194b['getRanges']())),this['_pendingAction']=null,_0x1e53a0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1e53a0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1e53a0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1e53a0,'change:isDirty',()=>{_0x1e53a0['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 _0x5eafeb=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5eafeb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x235f82{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2aa352,_0x3f6688,_0x469b05,_0x143a49){super(_0x2aa352),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2241c1(_0x2aa352,c(_0x2aa352,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3f6688['authoredAt']),this['bind']('authoredAt')['to'](_0x3f6688),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',_0x3f6688,'authoredAt',this,'descriptionParts',(_0x93295a,_0x5af41d,_0x351726)=>{const _0x23d2d3=_0x351726['map'](_0x25e7db=>ls(_0x25e7db['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x93295a-0x1,_0x3f6688['author']['name'],_0x5af41d?_0x143a49['formatDateTime'](_0x5af41d):'',new DOMParser()['parseFromString'](_0x23d2d3,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5b123c(),this['focusTracker']=new _0x931833(),this['keystrokes']=new _0x2da891(),this['focusCycler']=new _0x8227d0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2bb8b4=>_0x2bb8b4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3f6688,this['_localUser']=_0x469b05,this['_config']=_0x143a49,_0x143a49['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x36ab3b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x47405c}=this['_config'];this['commentsListView']=new _0x47405c(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',_0x1debba=>_0x1debba+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xd255c7,_0xfc60b1)=>_0xd255c7||!!_0xfc60b1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x26078d}=this['_config'],_0x180c20=new _0x26078d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4fa121=_0x180c20['commentInputView'];return _0x180c20['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4fa121,'value',(_0x5525f2,_0x3d6ee2,_0x4eb0e1)=>!!_0x4eb0e1||_0x5525f2&&!_0x3d6ee2),_0x4fa121['on']('submit',(_0x81eee3,_0x596e44)=>{this['fire']('addComment',_0x596e44),_0x4fa121['editor']['setData']('');}),_0x4fa121['on']('cancel',()=>this['focus']()),_0x4fa121['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x180c20;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0xc07a30,_0x209a0b,_0x4f1f28,_0x5614dd){super(_0xc07a30,_0x209a0b,_0x4f1f28,_0x5614dd),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x155035=>_0x155035&&_0x155035[0x0]?_0x155035[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2e90b8,_0x52d846)=>{let _0x27c82b='';for(const _0x5cf0d6 of _0x2e90b8)_0x27c82b+='<p>'+ls(_0x5cf0d6['content'],_0x5cf0d6['color'])+'</p>';return _0x52d846?_0x27c82b:ti(_0x27c82b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5614dd['SuggestionView'](_0xc07a30,_0x209a0b,{'formatDateTime':_0x5614dd['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 _0x5079ed=this['bindTemplate'],_0x2d3e94=[this['suggestionView']];return this['commentsListView']&&_0x2d3e94['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2d3e94['push'](this['commentThreadInputView']),_0x2d3e94['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5079ed['if']('isActive','ck-suggestion-wrapper--active'),_0x5079ed['to']('type',_0x59b20e=>'ck-suggestion-'+_0x59b20e),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':_0x5079ed['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2d3e94};}['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 _0x235f82{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xe553f4,_0x299ecd,_0x176c5d){super(_0xe553f4),this['_model']=_0x299ecd,this['_config']=_0x176c5d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x299ecd),this['acceptButton']=this['_createButton'](c(_0xe553f4,'Accept\x20suggestion'),_0x443d20,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0xe553f4,'Discard\x20suggestion'),_0x3e9a0b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1f93df(_0xe553f4,_0x299ecd['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5b123c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x931833(),this['keystrokes']=new _0x2da891(),this['focusCycler']=new _0x8227d0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa80d88=>_0xa80d88['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2e56e8=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2e56e8['innerHTML']=this['description'],this['on']('change:description',(_0x271086,_0x5d729a,_0x1d7e11)=>{_0x2e56e8['innerHTML']=_0x1d7e11;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2ab382=this['bindTemplate'],_0x370582=[{'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':_0x2ab382['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2ab382['to']('authoredAt',_0x425474=>this['_config']['formatDateTime'](_0x425474))}]}]},{'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']&&_0x370582['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':_0x370582}]};}['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'](_0x312631,_0xbf2059,_0x2923e1,_0x3a48cd,_0x12000d){const _0x3eecd9=new _0x5ef6fe(this['locale']);return _0x3eecd9['set']({'label':_0x312631,'icon':_0xbf2059,'tooltip':!0x0,'tooltipPosition':_0x12000d}),_0x3eecd9['extendTemplate']({'attributes':{'class':_0x2923e1}}),_0x3eecd9['on']('execute',()=>{this['fire'](_0x3a48cd,this['_model']['id']);}),_0x3eecd9;}['_setupKeyboardNavigation'](){const _0x386fd8=this['element'];this['keystrokes']['listenTo'](_0x386fd8);for(const _0x373c83 of this['focusables'])this['focusTracker']['add'](_0x373c83['element']),this['keystrokes']['listenTo'](_0x373c83['element']);this['keystrokes']['set']('enter',(_0x85f061,_0x181877)=>{_0x386fd8===_0x85f061['target']&&(this['focusCycler']['focusFirst'](),_0x181877());}),this['keystrokes']['set']('esc',(_0x2558a2,_0x15c3d8)=>{_0x386fd8!==_0x2558a2['target']&&(this['focus'](),_0x15c3d8());});}}class d extends _0xb83fe9{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x54b124,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13ad1d){super(_0x13ad1d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3ce366=this['editor']['config'];_0x3ce366['define']('trackChanges.SuggestionThreadView',fe),_0x3ce366['define']('trackChanges.SuggestionView',we),_0x3ce366['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3ce366['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1b77b6,_0xf88d0e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x540bd2,_0x248aed]of this['_handleControllerBuffer']){const _0x3baef7=this['_suggestionToController']['has'](_0x540bd2);_0x3baef7||_0x248aed?_0x3baef7&&_0x248aed&&this['_destroyController'](_0x540bd2):this['_initializeController'](_0x540bd2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1b77b6,_0xf88d0e);}['init'](){const _0x577248=this['editor'],_0x1bd778=_0x577248['plugins']['get']('TrackChangesEditing'),_0x113919=_0x577248['plugins']['get']('Annotations'),_0x5eef87=_0x577248['plugins']['get']('EditorAnnotations'),_0x21955b=_0x577248['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5eef87['addSourceCollector'](()=>{const _0x1eb405=[];for(const [_0xae778f,_0x2981d8]of Array['from'](this['_suggestionToController'])){const _0x161904=_0xae778f['getAllAdjacentSuggestions'](),_0x52aef2=[];for(const _0x7758aa of _0x161904){if(!_0x7758aa['isInContent'])continue;if(_0x7758aa['isMultiRange']){_0x52aef2['push'](..._0x7758aa['getRanges']());continue;}const _0x2b30f5=_0x7758aa['getFirstRange']();if(_0x52aef2['length']>0x0){const _0x230c65=_0x52aef2[0x0]['getJoined'](_0x2b30f5);if(_0x230c65){_0x52aef2[0x0]=_0x230c65;continue;}}_0x52aef2['push'](_0x2b30f5);}_0x1eb405['push']([_0x2981d8['view'],_0x52aef2]);}return _0x1eb405;}),this['listenTo'](_0x1bd778,'suggestionLoaded',(_0x3ef071,_0x124a77)=>{this['listenTo'](_0x124a77,'change:previous',(_0x376f2f,_0xa80f21,_0x8adc1f,_0x5193f8)=>{_0x124a77['isInContent']&&(null==_0x8adc1f?(this['_updateController'](_0x5193f8['head']),this['_handleSuggestionControllerDelayed'](_0x124a77,!0x1)):(this['_updateController'](_0x8adc1f['head']),null==_0x5193f8&&this['_handleSuggestionControllerDelayed'](_0x124a77,!0x0)));}),null!==_0x124a77['previous']?this['_updateController'](_0x124a77['head']):this['_handleSuggestionControllerDelayed'](_0x124a77,!0x1);}),this['listenTo'](_0x1bd778,'suggestionUnloaded',(_0x38b60a,_0x430c85,_0x50e26e)=>{this['stopListening'](_0x430c85,'change:previous'),this['_handleControllerBuffer']['delete'](_0x430c85),this['_suggestionToController']['has'](_0x430c85)&&this['_destroyController'](_0x430c85),_0x50e26e&&this['_updateController'](_0x50e26e['head']);}),this['listenTo'](_0x1bd778,'suggestionChanged',(_0x3630c6,_0x5c0389)=>{this['_updateController'](_0x5c0389);}),this['listenTo'](_0x113919,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x21955b,'addComment',(_0x1dd769,{threadId:_0x56a4c4,isFromAdapter:_0x4db847})=>{if(_0x4db847||!_0x1bd778['hasSuggestion'](_0x56a4c4))return;const _0x417446=_0x1bd778['getSuggestion'](_0x56a4c4);this['_suggestionToController']['get'](_0x417446)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x31b1e6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10e0d8;for(const _0x551b85 in _0x31b1e6){const _0x265cff=_0x551b85,_0x39a5e3=_0x31b1e6[_0x265cff];if('trackChangesLicenseKeyValid'==_0x39a5e3||'trackChangesLicenseKeyInvalid'==_0x39a5e3||'trackChangesLicenseKeyExpired'==_0x39a5e3||'trackChangesLicenseKeyDomainLimit'==_0x39a5e3||'trackChangesLicenseKeyNotAllowed'==_0x39a5e3||'trackChangesLicenseKeyEvaluationLimit'==_0x39a5e3||'trackChangesLicenseKeyTrialLimit'==_0x39a5e3||'trackChangesLicenseKeyUsageLimit'==_0x39a5e3){delete _0x31b1e6[_0x265cff],_0x10e0d8=_0x39a5e3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x10e0d8&&_0x31b1e6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x10e0d8&&_0x31b1e6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x10e0d8&&_0x31b1e6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x10e0d8&&_0x31b1e6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x10e0d8&&_0x31b1e6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x10e0d8&&_0x31b1e6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x10e0d8&&_0x31b1e6['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3e9a5b=this['editor']['plugins']['get']('Annotations'),_0x18cac6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a777a=Array['from'](_0x3e9a5b['activeAnnotations'],_0x171fb8=>_0x171fb8['innerView'])['filter'](_0x34e3ab=>this['_viewToController']['has'](_0x34e3ab)),_0xbb8295=[];for(const _0x2e2ae6 of _0x1a777a){const _0x18f813=this['_viewToController']['get'](_0x2e2ae6)['model']['getAllAdjacentSuggestions']();_0xbb8295['push'](..._0x18f813['reduce']((_0x32b03b,_0xa364e3)=>[..._0x32b03b,..._0xa364e3['getMarkerNames']()],[]));}_0x18cac6['activeMarkers']=_0xbb8295;}['_addUIComponentsToFactory'](){const _0xde44a2=this['editor'],_0x47e674=_0xde44a2['locale'],_0x12008f=c(_0x47e674,'Track\x20changes'),_0x101ae2=new _0xf22989([{'type':'switchbutton','model':new _0xae902f({'withText':!0x0,'isToggleable':!0x0,'label':_0x12008f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xae902f({'withText':!0x0,'label':c(_0x47e674,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xae902f({'withText':!0x0,'label':c(_0x47e674,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xae902f({'withText':!0x0,'label':c(_0x47e674,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xae902f({'withText':!0x0,'label':c(_0x47e674,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xde44a2['plugins']['has']('TrackChangesPreview')&&_0x101ae2['addMany']([{'type':'separator'},{'type':'button','model':new _0xae902f({'withText':!0x0,'label':c(_0x47e674,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2b8b53 of _0x101ae2)if(ke(_0x2b8b53)){const _0x42e09e=_0xde44a2['commands']['get'](_0x2b8b53['model']['commandName']);_0x2b8b53['model']['bind']('isOn','isEnabled')['to'](_0x42e09e,'value','isEnabled');}_0xde44a2['ui']['componentFactory']['add']('trackChanges',_0x5d3dd9=>this['_createToolbarButton'](_0x5d3dd9,_0x101ae2,_0x12008f)),_0xde44a2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x17c0e0=>this['_createMenuBarMenu'](_0x17c0e0,_0x101ae2,_0x12008f));}['_createToolbarButton'](_0x69a520,_0x187f33,_0x3b3443){const _0xb82a5a=_0x42927a(_0x69a520,_0x3ff2e8),_0x575ae0=this['editor']['commands']['get']('trackChanges');_0xb82a5a['buttonView']['set']({'tooltip':_0x3b3443,'label':_0x3b3443,'icon':_0x5c6e1c}),_0xb82a5a['buttonView']['bind']('isOn')['to'](_0x575ae0,'value'),_0xb82a5a['buttonView']['on']('execute',()=>{_0x575ae0['execute'](),this['editor']['editing']['view']['focus']();}),_0x78a0e5(_0xb82a5a,_0x187f33,{'role':'menu'});const _0x369f24=[];for(const _0x54dd8d of _0x187f33)ke(_0x54dd8d)&&_0x369f24['push'](this['editor']['commands']['get'](_0x54dd8d['model']['commandName']));const _0x14d373=_0xb82a5a['buttonView'];return _0x14d373['actionView']['unbind']('isEnabled'),_0x14d373['arrowView']['unbind']('isEnabled'),_0x14d373['actionView']['bind']('isEnabled')['to'](_0x575ae0,'isEnabled'),_0x14d373['arrowView']['bind']('isEnabled')['toMany'](_0x369f24,'isEnabled',(..._0x59195c)=>_0x59195c['some'](_0xfa93f9=>_0xfa93f9)),_0xb82a5a['on']('execute',_0x5669e6=>{this['editor']['execute'](_0x5669e6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xb82a5a;}['_createMenuBarMenu'](_0x1038ea,_0x492b01,_0x95525){const _0x53ecae=new _0x27f4ab(_0x1038ea),_0x340dc4=this['editor']['commands']['get']('trackChanges');_0x53ecae['buttonView']['set']({'label':_0x95525,'icon':_0x5c6e1c});const _0x56ed3b=new _0x3b26fc(_0x1038ea);for(const _0x166fea of _0x492b01){if('separator'==_0x166fea['type']){_0x56ed3b['items']['add'](new _0x1b40d6(_0x1038ea));continue;}const _0x1675af=new _0x520bfb(_0x1038ea,_0x53ecae),_0x6f0e83=new _0x49537e(_0x1038ea),_0x1fe5d7=_0x166fea['model'];_0x6f0e83['bind'](...Object['keys'](_0x1fe5d7))['to'](_0x1fe5d7),_0x6f0e83['delegate']('execute')['to'](_0x53ecae),_0x6f0e83['on']('execute',()=>{this['editor']['execute'](_0x1fe5d7['commandName']),this['editor']['editing']['view']['focus']();}),_0x1675af['children']['add'](_0x6f0e83),_0x56ed3b['items']['add'](_0x1675af);}return _0x53ecae['bind']('isEnabled')['to'](_0x340dc4,'isEnabled'),_0x53ecae['panelView']['children']['add'](_0x56ed3b),_0x53ecae;}['_initializeController'](_0x293a03){const _0x42c56c=this['editor'],_0x181a61=_0x42c56c['config'],_0x2f3b5a=_0x42c56c['plugins']['get']('Annotations'),_0x5616a6=_0x42c56c['plugins']['get']('CommentsRepository'),_0x1c5640=_0x42c56c['plugins']['get']('EditorAnnotations'),_0x557296=_0x42c56c['plugins']['get'](_0x54b124)['me'],_0x51955b=_0x181a61['get']('trackChanges')['SuggestionThreadView'],_0x332167=_0x181a61['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4c3fd4,CommentThreadInputView:_0x322c4b}=_0x42c56c['plugins']['get']('CommentsUI');let _0x5ff0e4,_0x184762,_0x272f40;this['_annotationViews']['has'](_0x293a03['id'])?(_0x184762=this['_annotationViews']['get'](_0x293a03['id']),_0x5ff0e4=_0x184762['mainView']):(_0x5ff0e4=new _0x51955b(_0x42c56c['locale'],_0x293a03,_0x557296,{'disableComments':this['_disableComments'],'editorConfig':{..._0x181a61['get']('comments.editorConfig'),'licenseKey':_0x181a61['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x181a61['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x181a61['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x181a61['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x13658f(_0x181a61['get']('locale')),'CommentView':_0x181a61['get']('comments')['CommentView'],'CommentsListView':_0x4c3fd4,'CommentThreadInputView':_0x322c4b,'SuggestionView':_0x332167}),_0x5ff0e4['suggestionView']['acceptButton']['on']('execute',()=>{_0x42c56c['editing']['view']['focus']();}),_0x5ff0e4['suggestionView']['discardButton']['on']('execute',()=>{_0x42c56c['editing']['view']['focus']();}),_0x184762=_0x2f3b5a['createAnnotationView'](this['editor']['locale'],_0x5ff0e4),_0x184762['bind']('isDirty')['to'](_0x5ff0e4,'isDirty'),_0x184762['bind']('length')['to'](_0x5ff0e4),_0x184762['bind']('type')['to'](_0x5ff0e4,'type',_0x16d9a5=>'suggestion-'+_0x16d9a5),_0x5ff0e4['on']('escape',()=>{_0x272f40['fire']('escape');}),this['_annotationViews']['set'](_0x293a03['id'],_0x184762));const _0x2872f6=_0x5616a6['createCommentThreadController'](_0x293a03['commentThread'],_0x5ff0e4),_0x144c47=new pe(_0x42c56c,_0x293a03,_0x5ff0e4,_0x2872f6),_0x2b405b=_0x293a03['getAllAdjacentSuggestions']()['filter'](_0x436d5e=>_0x436d5e['isInContent']);_0x5ff0e4['descriptionParts']=_0x42c56c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2b405b),this['_suggestionToController']['set'](_0x293a03,_0x144c47),this['_viewToController']['set'](_0x5ff0e4,_0x144c47),_0x272f40=_0x2f3b5a['createAnnotation']({'view':_0x184762,'target':()=>{const _0x207e31=[],_0x7c9896=_0x293a03['getAllAdjacentSuggestions']()['filter'](_0x4de15a=>_0x4de15a['isInContent']);for(const _0x211da5 of _0x7c9896)_0x207e31['push'](..._0x211da5['getMarkers']());return _0x394645(_0x42c56c['editing'],_0x207e31);},'type':()=>'suggestion-'+_0x144c47['view']['type']}),_0x5616a6['_bindAnnotationToEditors'](_0x5ff0e4,_0x272f40),_0x2f3b5a['add'](_0x272f40),_0x1c5640['registerAnnotation'](_0x272f40);}['_destroyController'](_0x343c9d){const _0x3a2431=this['editor']['plugins']['get']('CommentsRepository'),_0x4f1240=this['editor']['plugins']['get']('Annotations'),_0x2ba9eb=this['_suggestionToController']['get'](_0x343c9d),_0x245e01=_0x2ba9eb['view'],_0x550eb5=_0x4f1240['getByInnerView'](_0x245e01);_0x3a2431['_unbindEditors'](_0x245e01),_0x550eb5&&_0x4f1240['remove'](_0x550eb5),this['_suggestionToController']['delete'](_0x343c9d),this['_viewToController']['delete'](_0x245e01),_0x2ba9eb['destroy']();}['_updateController'](_0x15d705){if(!_0x15d705['isInContent']||!this['_suggestionToController']['has'](_0x15d705))return;const _0x1b33de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8cd6ee=this['_suggestionToController']['get'](_0x15d705),_0x96524e=_0x15d705['getAllAdjacentSuggestions']();_0x8cd6ee['view']['descriptionParts']=_0x1b33de['descriptionFactory']['getDescriptions'](_0x96524e);}['destroy'](){for(const _0x1d3705 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1d3705);for(const _0x81044a of this['_annotationViews']['values']())_0x81044a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4f2a3d){return'model'in _0x4f2a3d;}class k extends _0xb83fe9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1f024b){this['editor']['plugins']['get'](p)['adapter']=_0x1f024b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3b1c36){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3b1c36);}['getSuggestions']({skipNotAttached:_0x1f8c30=!0x1,toJSON:_0x4f6dd7=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1f8c30,'toJSON':_0x4f6dd7});}['getSuggestion'](_0x1361d1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1361d1);}}const w=['Pagination'];class T extends _0xb83fe9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x43a005=this['editor'];if(_0x43a005['config']['define']('trackChangesData.editorCreator',_0x118de1=>{const _0x44bae2=_0x43a005['model']['document']['getRootNames']()['reduce']((_0x51b335,_0x125590)=>(_0x51b335[_0x125590]='',_0x51b335),{});return _0x43a005['constructor']['create'](_0x44bae2,_0x118de1);}),'function'!=typeof _0x43a005['config']['get']('trackChangesData')['editorCreator'])throw new _0x3c865c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x519ba9){return N(this['editor'],!0x0,_0x519ba9);}['getDataWithDiscardedSuggestions'](_0x291d73){return N(this['editor'],!0x1,_0x291d73);}}class D extends _0xb83fe9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4110d9){function _0x206b70(_0x120d93){return _0x120d93['map'](_0x4fd1d9=>String['fromCharCode'](_0x4fd1d9))['join']('');}super(_0x4110d9),this['result']='end',_0x4110d9[_0x206b70([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x206b70([0x76,0x69,0x65,0x77])][_0x206b70([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x206b70([0x61,0x75,0x74,0x6f]),_0x4110d9[_0x206b70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x206b70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x206b70([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x206b70([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x206b70([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 Fe(_0x237840){return void 0x0!==_0x237840['getRootsAttributes'];}async function N(_0x516ec3,_0x4492e3,_0x1a25ef){const _0xc55128=_0x1476a8(_0x516ec3,w);_0xc55128['plugins']['push'](p,D),_0xc55128['rootsAttributes']=Fe(_0x516ec3)?_0x516ec3['getRootsAttributes']():void 0x0;const _0x2d946e=document['createDocumentFragment'](),_0x4616c3=_0x516ec3['config']['get']('trackChangesData')['editorCreator'],_0x28c7bd=await _0x4616c3(_0xc55128,()=>function(_0x109474){const _0x4314b3=document['createElement']('div');return _0x109474['appendChild'](_0x4314b3),_0x4314b3;}(_0x2d946e));!function(_0x340201,_0x5dfc3f){const _0x23df9f=_0x340201['model']['document']['getRootNames']()['reduce']((_0x5e0e3f,_0x142410)=>(_0x5e0e3f[_0x142410]=_0x340201['data']['get']({'rootName':_0x142410}),_0x5e0e3f),{}),_0xbcec44=_0x340201['plugins']['get']('Users')['users']['map'](_0x4a159e=>({'id':_0x4a159e['id'],'name':_0x4a159e['name']})),_0x4e0971=_0x340201['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x167364=_0x340201['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x31ab28=_0x5dfc3f['plugins']['get']('Users'),_0x6f4673=_0x5dfc3f['plugins']['get']('TrackChangesEditing'),_0x48b998=_0x5dfc3f['plugins']['get']('CommentsRepository');for(const _0xbe8b14 of _0x48b998['getCommentThreads']())_0xbe8b14['remove']();for(const _0x4df50d of _0xbcec44)_0x31ab28['getUser'](_0x4df50d['id'])||_0x31ab28['addUser'](_0x4df50d);_0x31ab28['me']||_0x31ab28['useAnonymousUser']();for(const _0x414392 of _0x167364)_0x48b998['addCommentThread'](_0x414392);for(const _0x30a01d of _0x4e0971)_0x6f4673['addSuggestionData'](_0x30a01d);_0x5dfc3f['data']['set'](_0x23df9f);}(_0x516ec3,_0x28c7bd),_0x28c7bd['execute'](_0x4492e3?'acceptAllSuggestions':'discardAllSuggestions');const _0x2aec00=Fe(_0x28c7bd)?_0x28c7bd['getFullData'](_0x1a25ef):_0x28c7bd['data']['get'](_0x1a25ef);return await _0x28c7bd['destroy'](),_0x2aec00;}class Me extends _0x235f82{['options'];constructor(_0x17e860,_0x40f7bb){super(_0x17e860),this['options']=_0x40f7bb,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'](_0x3b6882,_0x298ee3){if(!this['element'])return;const _0x378618=[];for(const [_0x15f704,_0x1f4ba9]of _0x3b6882){const _0x7009b0=document['createElement']('div');_0x7009b0['setAttribute']('data-ck-root-name',_0x15f704),_0x7009b0['className']=_0x1f4ba9['classes']+'\x20ck-track-changes-preview__root-container',_0x7009b0['innerHTML']=_0x1f4ba9['content'],_0x378618['push'](_0x7009b0);}_0x298ee3(this['element'],_0x378618),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x50c59c{constructor(_0x3db271){super(_0x3db271),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x344f45=this['editor'],_0x5804e0=_0x344f45['locale'],_0x4b118d=_0x344f45['plugins']['get']('Dialog');let _0x5de4b9;const _0x18cd7d=function(_0x2fe0ee){const _0x11d6eb={};if('editables'in _0x2fe0ee['ui']['view']){for(const [_0x5d93f3,_0x31e6f3]of Object['entries'](_0x2fe0ee['ui']['view']['editables']))_0x11d6eb[_0x5d93f3]=_0x31e6f3['element'];}else _0x11d6eb[_0x2fe0ee['model']['document']['getRootNames']()[0x0]]=_0x2fe0ee['ui']['view']['editable']['element'];return _0x11d6eb;}(_0x344f45),_0x52300a=function(_0x9af06b){let _0x5bb057=0x0;for(const _0x4b02f6 of Object['values'](_0x9af06b))_0x5bb057=Math['max'](_0x5bb057,_0x4b02f6['getBoundingClientRect']()['width']);let _0x342784=0x0;for(const _0x2fdb1f of Object['values'](_0x9af06b))_0x342784+=_0x2fdb1f['getBoundingClientRect']()['height'];const _0x1ac1dd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x317f92=Math['min'](_0x342784,_0x1ac1dd);return{'width':_0x5bb057,'height':_0x317f92};}(_0x18cd7d);_0x4b118d['show']({'id':'finalContentPreview','title':c(_0x5804e0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5804e0,{'dialogRects':_0x52300a}),'onHide':()=>{_0x5de4b9['detachFromDom']();},'onShow':()=>{_0x344f45['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x336d1f=>{const _0x516a50=this['_standarizeRootsData'](_0x336d1f,_0x344f45,_0x18cd7d);_0x4b118d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x516a50,_0x344f45['config']['get']('trackChanges.preview.renderFunction'));}),_0x5de4b9=new _0x144193(_0x5804e0,[_0x4b118d['view']]),_0x5de4b9['attachToDom'](),_0x5de4b9['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x344f45['once']('destroy',()=>{_0x5de4b9['detachFromDom']();});const _0x12ab43=_0x4b118d['view']['headerView']['class'];_0x4b118d['view']['headerView']['class']=_0x12ab43?_0x12ab43+'\x20ck-reset_all':'ck-reset_all',_0x4b118d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4b118d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x19a668=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xc49240=_0x19a668['previewMode'],_0x192996={};if('$labels'===_0xc49240){for(const _0x588a7c of _0x19a668['getMergeFieldsIds']())_0x192996[_0x588a7c]=_0x19a668['getLabel'](_0x588a7c)||_0x588a7c;}else{const _0x40eeec='$defaultValues'===_0xc49240?_0x19a668['getDefaultValues']():_0x19a668['getDataSetValues'](_0xc49240,!0x0);for(const _0x100754 of Object['entries'](_0x40eeec)){const [_0x2fad3b,_0x3931fa]=_0x100754;_0x192996[_0x2fad3b]=null!==_0x3931fa?_0x3931fa:_0x19a668['getLabel'](_0x2fad3b)||_0x2fad3b;}}return{'mergeFieldsData':_0x192996};}['_standarizeRootsData'](_0x48548b,_0x2476fb,_0x3a64b1){let _0x40d447;if('string'==typeof _0x48548b){const _0xa51c37=_0x2476fb['model']['document']['getRootNames']()[0x0];_0x40d447={[_0xa51c37]:_0x48548b};}else _0x40d447=_0x48548b;const _0x2b1204=this['_fixMediaEmbeds'](_0x40d447,_0x2476fb),_0x2dfd2d=function(_0x13765e,_0x3d1357){for(const [_0x53277a,_0x3d7db5]of _0x13765e)_0x3d7db5['classes']=_0x3d1357[_0x53277a]['classList']['value']['replace']('ck-focused','');return _0x13765e;}(this['_sortRoots'](_0x2476fb)['reduce']((_0x1097d3,_0x4ed2e9)=>(_0x1097d3['push']([_0x4ed2e9,{'content':_0x2b1204[_0x4ed2e9],'classes':''}]),_0x1097d3),[]),_0x3a64b1);return _0x2dfd2d;}['_fixMediaEmbeds'](_0xa8e6d2,_0x85e3f4){if(!_0x85e3f4['plugins']['has']('MediaEmbedEditing'))return _0xa8e6d2;const _0x2a7160=_0x85e3f4['plugins']['get']('MediaEmbedEditing');for(const [_0x2a4e7e,_0x5a1730]of Object['entries'](_0xa8e6d2)){const _0x3dc048=document['createElement']('div');_0x3dc048['innerHTML']=_0x5a1730,(_0x3dc048['querySelectorAll']('figure.media')['forEach'](_0x505648=>{const _0x43c657=_0x505648['querySelector']('oembed');if(_0x43c657){const _0x4d3611=_0x43c657['getAttribute']('url');if(_0x4d3611){const _0x2eec47=_0x2a7160['registry']['getMediaViewElement'](new _0x59b703(_0x85e3f4['editing']['view']['document']),_0x4d3611,{'elementName':'','renderForEditingView':!0x0}),_0x2d3e8d=document['createElement']('div');_0x2d3e8d['classList']['add']('ck-media__wrapper'),_0x2eec47['render'](_0x2d3e8d,_0x85e3f4['editing']['view']['domConverter']),_0x43c657['replaceWith'](_0x2d3e8d);}}}),_0xa8e6d2[_0x2a4e7e]=_0x3dc048['innerHTML']);}return _0xa8e6d2;}['_sortRoots'](_0x6dc542){if(!function(_0x17f9cd){return void 0x0!==_0x17f9cd['getRootsAttributes'];}(_0x6dc542))return _0x6dc542['model']['document']['getRootNames']();const _0x4f626f=[],_0x8b8aa5=new Map();for(const _0x3045ac of _0x6dc542['model']['document']['getRootNames']()){const _0x1563c7=_0x6dc542['editing']['view']['getDomRoot'](_0x3045ac)['getClientRects']()['item'](0x0);_0x4f626f['push'](_0x3045ac),_0x8b8aa5['set'](_0x3045ac,_0x1563c7);}return _0x4f626f['sort']((_0x1fca8d,_0x3556c0)=>{const _0x2e8387=_0x8b8aa5['get'](_0x1fca8d),_0x1c1283=_0x8b8aa5['get'](_0x3556c0);return _0x2e8387['y']-_0x1c1283['y']||_0x2e8387['x']-_0x1c1283['x'];}),_0x4f626f;}}class te extends _0xb83fe9{static get['requires'](){return[T,_0xc75f43];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59427e){super(_0x59427e),_0x59427e['commands']['add']('previewFinalContent',new re(this['editor'])),_0x59427e['config']['define']('trackChanges.preview.renderFunction',(_0x113a94,_0x2943f7)=>{for(const _0x217524 of _0x2943f7)_0x113a94['appendChild'](_0x217524);});}}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};
|