@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250311.0 → 0.0.0-nightly-20250312.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
|
-
_0x887ed8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x435c47,_0x2a2199){super(),this['id']=_0x2a2199['id'],this['type']=_0x2a2199['type'],this['subType']=_0x2a2199['subType']||null,this['author']=_0x2a2199['author'],this['creator']=_0x2a2199['creator']||_0x2a2199['author'],this['isExternal']=Boolean(_0x2a2199['attributes']&&_0x2a2199['attributes']['@external']),this['data']=null,this['_model']=_0x435c47,this['_onAccept']=_0x2a2199['onAccept'],this['_onDiscard']=_0x2a2199['onDiscard'],this['_onAttributesChange']=_0x2a2199['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2a2199['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 _0x2ddc9c=this;for(;_0x2ddc9c['previous'];)_0x2ddc9c=_0x2ddc9c['previous'];return _0x2ddc9c;}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'](_0x4284a0){this['_markerNames']['add'](_0x4284a0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x25a9b4=>this['_model']['markers']['get'](_0x25a9b4))['filter'](_0x5cb2da=>_0x5cb2da);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5c10ee=>{for(const _0x5e7635 of this['getMarkers']())_0x5c10ee['removeMarker'](_0x5e7635);}),this['_markerNames']['clear']();}['removeMarker'](_0x3898f8){this['_model']['change'](_0x52dcd8=>{_0x52dcd8['removeMarker'](_0x3898f8);}),this['_markerNames']['delete'](_0x3898f8);}['addRange'](_0xcead9f){const _0x267602='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x267602),this['_model']['change'](_0x1587e2=>{_0x1587e2['addMarker'](_0x267602,{'range':_0xcead9f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3d4244){for(const _0x418bde of this['getRanges']())if(_0x418bde['isIntersecting'](_0x3d4244))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1d5e68=>_0x1d5e68['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5e78e4,_0x36fe96)=>[..._0x5e78e4,..._0x36fe96['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2deb04=this['getRanges']();if(0x1!=_0x2deb04['length'])return null;const _0x1bc9cc=_0x2deb04[0x0],_0x17ec43=_0x1bc9cc['start']['nodeAfter'],_0x3efb73=_0x1bc9cc['end']['nodeBefore'];return _0x17ec43 instanceof _0x5f2228?_0x17ec43!=_0x3efb73?null:_0x17ec43: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 _0x1399b7=[];let _0x38db57=this['head'];for(;_0x38db57;)_0x1399b7['push'](_0x38db57),_0x38db57=_0x38db57['next'];return _0x1399b7;}['setAttribute'](_0x1f093c,_0xe9e618){const _0x5564e2=_0x211b86(this['attributes']);_0x53d84a(_0x5564e2,_0x1f093c,_0xe9e618),_0x1ec0ec(_0x5564e2,this['attributes'])||(this['attributes']=_0x5564e2,this['_onAttributesChange'](_0x5564e2));}['removeAttribute'](_0x3e7db6){const _0x1f2702=_0x211b86(this['attributes']);_0xbdddf8(_0x1f2702,_0x3e7db6),_0x1ec0ec(_0x1f2702,this['attributes'])||(this['attributes']=_0x1f2702,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 _0x3e2b49()['substr'](0x1,0x5);}}function c(_0x223837,_0xd8faa3,_0x533b85){const _0x4c6ecc=_0x223837['t'],t=_0x223837['t'];switch(_0xd8faa3){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',_0x533b85);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x533b85);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x533b85);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x533b85);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x533b85);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',_0x533b85);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x533b85);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',_0x533b85);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x533b85);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x533b85);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x533b85);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x533b85);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x533b85);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x533b85);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x533b85);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x533b85);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x533b85);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x533b85);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x533b85);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x533b85);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x533b85);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x533b85);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x533b85);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x533b85);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'},_0x533b85);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x533b85);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x533b85);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x533b85);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x533b85);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x533b85);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'},_0x533b85);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x533b85);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x533b85);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x533b85);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x533b85);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'},_0x533b85);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x533b85);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'},_0x533b85);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'},_0x533b85);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x533b85);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'},_0x533b85);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x533b85);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'},_0x533b85);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x533b85);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x533b85);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'},_0x533b85);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x533b85);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 _0x4c6ecc({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x533b85);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4c6ecc({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x533b85);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x533b85);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'},_0x533b85);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'},_0x533b85);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'},_0x533b85);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xd8faa3;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x499c88,_0x5846c9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x499c88,this['_locale']=_0x5846c9;}['getDescriptions'](_0x525a1c){const _0x4a62d3=[],_0x43d23a=new Set(),_0xa725c1=new Set();for(let _0x1eb04e=0x0;_0x1eb04e<_0x525a1c['length'];_0x1eb04e++){const _0x51f84f=_0x525a1c[_0x1eb04e];if(!_0x51f84f['isInContent'])continue;const _0x20e92a=this['_handleCustomCallbackDescription'](_0x51f84f);if(_0x20e92a){if(null!=_0x51f84f['subType']){if(_0x43d23a['has'](_0x51f84f['subType']))continue;_0x43d23a['add'](_0x51f84f['subType']);}_0x4a62d3['push'](_0x20e92a);}else{if('attribute'!=_0x51f84f['type'])'insertion'!=_0x51f84f['type']&&'deletion'!=_0x51f84f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4a62d3,_0x51f84f,_0x525a1c[_0x1eb04e+0x1]);else{const _0x556463=_0x51f84f['data']['key'];if(_0xa725c1['has'](_0x556463))continue;_0xa725c1['add'](_0x51f84f['data']['key']),_0x556463==u?this['_handleRenameSuggestionDescription'](_0x4a62d3,_0x51f84f):this['_handleAttributeSuggestionDescription'](_0x4a62d3,_0x51f84f);}}}return this['_resolveDescriptionItems'](_0x4a62d3);}['registerDescriptionCallback'](_0x5d0fe0){this['_customCallbacks']['push'](_0x5d0fe0);}['registerElementLabel'](_0x1802fd,_0x284422,_0x2dfec0=_0xc1589b['normal']){'function'==typeof _0x1802fd?_0x3c6b48(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1802fd,'label':_0x284422,'priority':_0x2dfec0}):this['_itemLabels']['set'](_0x1802fd,_0x284422);}['registerAttributeLabel'](_0x533f43,_0x9d79eb){this['_attributeLabels']['set'](_0x533f43,_0x9d79eb);}['getItemLabel'](_0x830bd7,_0x596aa2=0x1){let _0x4203f9;for(const _0x38566c of this['_itemLabelsCallbacks'])if(_0x38566c['matchingCallback'](_0x830bd7)){_0x4203f9=_0x38566c['label'];break;}return _0x4203f9||(_0x4203f9=this['_itemLabels']['get'](_0x830bd7['name'])),_0x4203f9?_0x4203f9(_0x596aa2):0x1!==_0x596aa2?_0x596aa2+'\x20'+_0x830bd7['name']+'s':''+_0x830bd7['name'];}['_addDescriptionItems'](_0x12ec2e,_0x43000e){const _0x1326f7=_0x43000e['getFirstRange']()['getWalker'](),_0xbdc638='insertion'==_0x43000e['type']?'add':'remove';for(const _0x2d478e of _0x1326f7){const _0x1b3954=_0x2d478e['item'],_0x90fcd0=_0x12ec2e[_0x12ec2e['length']-0x1];if(_0x1b3954['is']('$textProxy'))_0x90fcd0&&_0x90fcd0['type']['indexOf']('Container')>-0x1&&_0x12ec2e['pop'](),_0x90fcd0&&'text'==_0x90fcd0['type']?_0x90fcd0[_0xbdc638]+=_0x1b3954['data']:_0x12ec2e['push']({'type':'text','add':'add'==_0xbdc638?_0x1b3954['data']:'','remove':'remove'==_0xbdc638?_0x1b3954['data']:''});else{if(this['_schema']['isObject'](_0x1b3954)){const _0x4be845=_0x1b3954;if(_0x90fcd0&&_0x90fcd0['type']['indexOf']('Container')>-0x1&&_0x12ec2e['pop'](),'elementEnd'==_0x2d478e['type'])continue;_0x90fcd0&&_0x90fcd0['type']==_0xbdc638+'Object'&&_0x90fcd0['element']['name']==_0x4be845['name']?_0x90fcd0['quantity']++:_0x12ec2e['push']({'type':_0xbdc638+'Object','element':_0x4be845,'quantity':0x1}),_0x1326f7['skip'](_0x4a96c7=>!('elementEnd'==_0x4a96c7['type']&&_0x4a96c7['item']==_0x1b3954));}else{if(this['_schema']['checkChild'](_0x1b3954,'$text')||_0x1b3954['is']('element','softBreak')){const _0x119692=_0x1b3954;if('add'==_0xbdc638&&'elementStart'==_0x2d478e['type']||'remove'==_0xbdc638&&'elementEnd'==_0x2d478e['type'])continue;if(_0x90fcd0&&-0x1==_0x90fcd0['type']['indexOf']('Container')){'text'==_0x90fcd0['type']&&(_0x90fcd0[_0xbdc638]+='\x0a');continue;}let _0x468a46;if(_0x468a46='add'==_0xbdc638?_0x119692['nextSibling']&&!this['_schema']['isObject'](_0x119692['nextSibling'])?_0x119692['nextSibling']:null:_0x119692['previousSibling']&&!this['_schema']['isObject'](_0x119692['previousSibling'])?_0x119692['previousSibling']:null,_0x119692['isEmpty']||_0x468a46&&_0x468a46['isEmpty']){const _0x443a47=_0x468a46&&_0x468a46['isEmpty']?_0x468a46:_0x119692;_0x90fcd0&&_0x90fcd0['type']==_0xbdc638+'EmptyContainer'&&_0x90fcd0['element']['name']==_0x443a47['name']?_0x90fcd0['quantity']++:_0x12ec2e['push']({'type':_0xbdc638+'EmptyContainer','element':_0x443a47,'quantity':0x1});}else _0x12ec2e['push']({'type':_0xbdc638+'Container','element':_0x119692});}}}}}['_resolveDescriptionItems'](_0x2bad84){const _0x2322e9=this['_locale'],_0x249b3f=[],_0x433f78=[],_0x5ad0f5=[];for(const _0x16a37c of _0x2bad84)switch(_0x16a37c['type']){case'text':if(_0x16a37c['add']=_0x16a37c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x16a37c['remove']=_0x16a37c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x16a37c['add']&&''!=_0x16a37c['remove']){_0x249b3f['push']({'type':'replace','content':c(_0x2322e9,'REPLACE_TEXT',['\x22'+_0x16a37c['remove']+'\x22','\x22'+_0x16a37c['add']+'\x22'])});continue;}if(null!=_0x16a37c['add']['match'](/^ +$/)){_0x249b3f['push']({'type':'insertion','content':c(_0x2322e9,'*Insert:*\x20%0',c(_0x2322e9,'ELEMENT_SPACE',_0x16a37c['add']['length']))});continue;}if(null!=_0x16a37c['remove']['match'](/^ +$/)){_0x249b3f['push']({'type':'deletion','content':c(_0x2322e9,'*Remove:*\x20%0',c(_0x2322e9,'ELEMENT_SPACE',_0x16a37c['remove']['length']))});continue;}if(''!=_0x16a37c['add']){_0x249b3f['push']({'type':'insertion','content':c(_0x2322e9,'*Insert:*\x20%0','\x22'+_0x16a37c['add']+'\x22')});continue;}_0x249b3f['push']({'type':'deletion','content':c(_0x2322e9,'*Remove:*\x20%0','\x22'+_0x16a37c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x249b3f['push']({'type':'insertion','content':c(_0x2322e9,'*Insert:*\x20%0',this['getItemLabel'](_0x16a37c['element'],_0x16a37c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x249b3f['push']({'type':'deletion','content':c(_0x2322e9,'*Remove:*\x20%0',this['getItemLabel'](_0x16a37c['element'],_0x16a37c['quantity']))});continue;case'addContainer':_0x249b3f['push']({'type':'insertion','content':c(_0x2322e9,'*Split:*\x20%0',this['getItemLabel'](_0x16a37c['element'],_0x16a37c['quantity']))});continue;case'removeContainer':_0x249b3f['push']({'type':'deletion','content':c(_0x2322e9,'*Merge:*\x20%0',this['getItemLabel'](_0x16a37c['element'],_0x16a37c['quantity']))});continue;case'addFormat':_0x433f78['push'](_0x16a37c['key']);continue;case'removeFormat':_0x5ad0f5['push'](_0x16a37c['key']);continue;default:_0x249b3f['push'](_0x16a37c);}if(_0x433f78['length']){const _0x43f6e0=_0x433f78['map'](_0x381c6e=>this['_attributeLabels']['has'](_0x381c6e)?this['_attributeLabels']['get'](_0x381c6e):_0x381c6e)['join'](',\x20');_0x249b3f['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x43f6e0)});}if(_0x5ad0f5['length']){const _0xd27f0d=_0x5ad0f5['map'](_0x333a33=>this['_attributeLabels']['has'](_0x333a33)?this['_attributeLabels']['get'](_0x333a33):_0x333a33)['join'](',\x20');_0x249b3f['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xd27f0d)});}return _0x249b3f;}['_handleCustomCallbackDescription'](_0x1b2ae4){for(const _0x4ef5d4 of this['_customCallbacks']){const _0xb69d34=_0x4ef5d4(_0x1b2ae4);if(_0xb69d34&&'type'in _0xb69d34)return _0xb69d34;}}['_handleAttributeSuggestionDescription'](_0x2e7b8b,_0x282138){const _0x38766b=_0x282138['data'],_0x22c82b=void 0x0===_0x38766b['newValue']?'removeFormat':'addFormat';_0x2e7b8b['push']({'type':_0x22c82b,'key':_0x38766b['key']});}['_handleRenameSuggestionDescription'](_0x3c996f,_0x1f57d9){_0x3c996f['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1f57d9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5c5d45,_0x5c635d,_0x4146d8){if(this['_addDescriptionItems'](_0x5c5d45,_0x5c635d),_0x4146d8&&_0x4146d8['getFirstRange']()&&!_0x5c635d['getFirstRange']()['end']['isEqual'](_0x4146d8['getFirstRange']()['start'])){const _0x3b6c99=_0x5c5d45[_0x5c5d45['length']-0x1],_0x389363='insertion'==_0x5c635d['type']?'add':'remove';_0x3b6c99&&'text'==_0x3b6c99['type']&&(_0x3b6c99[_0x389363]+='\x0a');}}}class U extends _0x24f8b9{['afterInit'](){const _0x4a948d=this['editor'],_0x145288=_0x4a948d['plugins']['get']('TrackChangesEditing');_0x4a948d['commands']['get']('showAIAssistant')&&_0x145288['enableCommand']('showAIAssistant');}}class V extends _0x24f8b9{['afterInit'](){const _0x12f909=this['editor'],_0x16c52b=_0x12f909['locale'];if(!_0x12f909['plugins']['has']('AlignmentEditing'))return;const _0x7a1bac=_0x12f909['plugins']['get']('TrackChangesEditing');_0x7a1bac['enableDefaultAttributesIntegration']('alignment'),_0x7a1bac['registerBlockAttribute']('alignment'),_0x7a1bac['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x16c52b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x318a1e=this['editor'],_0x715e38=_0x318a1e['locale'];_0x318a1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12b65e=>{if('formatBlock'!=_0x12b65e['type'])return;const {data:_0x3d1daf}=_0x12b65e;if(_0x3d1daf&&'alignment'==_0x3d1daf['commandName']){const _0x1ced19=_0x3d1daf['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x715e38,'*Format:*\x20%0',function(_0x1b9af8){switch(_0x1b9af8){case'left':return c(_0x715e38,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x715e38,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x715e38,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x715e38,'FORMAT_JUSTIFY_TEXT');}}(_0x1ced19))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x24f8b9{['afterInit'](){const _0xa2547a=this['editor'],_0x14fff5=_0xa2547a['plugins']['get']('TrackChangesEditing'),_0x2673a8=_0xa2547a['locale'];for(const _0x5a3334 of Yt){if(!_0xa2547a['plugins']['has'](_0x5a3334))continue;const _0x1fedb2=_0x5a3334['slice'](0x0,-0x7)['toLowerCase'](),_0x524a89='FORMAT_'+_0x1fedb2['toUpperCase']();_0x14fff5['enableDefaultAttributesIntegration'](_0x1fedb2),_0x14fff5['registerInlineAttribute'](_0x1fedb2),_0x14fff5['descriptionFactory']['registerAttributeLabel'](_0x1fedb2,c(_0x2673a8,_0x524a89));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a3b07=this['editor'],_0x3affe1=_0x5a3b07['locale'],_0x1e9171=_0x5a3b07['plugins']['get']('TrackChangesEditing');function _0x1007ab(_0x258db5,_0x1e8876){_0x1e9171['descriptionFactory']['registerDescriptionCallback'](_0x4ffb40=>{if('formatInline'!=_0x4ffb40['type'])return;const {data:_0x4ee455}=_0x4ffb40;return _0x4ee455&&_0x4ee455['commandName']===_0x258db5?_0x4ee455['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3affe1,'*Format:*\x20%0',_0x1e8876)}:{'type':'format','content':c(_0x3affe1,'*Remove\x20format:*\x20%0',_0x1e8876)}:void 0x0;});}_0x1007ab('bold',c(_0x3affe1,'FORMAT_BOLD')),_0x1007ab('italic',c(_0x3affe1,'FORMAT_ITALIC')),_0x1007ab('underline',c(_0x3affe1,'FORMAT_UNDERLINE')),_0x1007ab('code',c(_0x3affe1,'FORMAT_CODE')),_0x1007ab('strikethrough',c(_0x3affe1,'FORMAT_STRIKETHROUGH')),_0x1007ab('subscript',c(_0x3affe1,'FORMAT_SUBSCRIPT')),_0x1007ab('superscript',c(_0x3affe1,'FORMAT_SUPERSCRIPT'));}}class G extends _0x24f8b9{['afterInit'](){const _0x292620=this['editor'],_0x5a38b8=_0x292620['locale'];if(!_0x292620['plugins']['has']('BlockQuoteEditing'))return;const _0x5c5d43=_0x292620['plugins']['get']('TrackChangesEditing'),_0x5f17b0=this['editor']['commands']['get']('blockQuote');_0x5c5d43['enableCommand']('blockQuote',(_0x397c33,_0x5442a5={})=>{const _0x34687e=this['editor']['model']['document']['selection'],_0x18def0=_0x5442a5&&void 0x0!==_0x5442a5['forceValue']?_0x5442a5['forceValue']:!_0x5f17b0['value'];let _0x1b24fd=[];if(_0x18def0){const _0x1cbf05=Array['from'](_0x34687e['getSelectedBlocks']())['filter'](_0x406eeb=>to(_0x406eeb)||function(_0x247ef7,_0x4bbc3e){const _0x3185f6=_0x4bbc3e['checkChild'](_0x247ef7['parent'],'blockQuote'),_0x4d6df1=_0x4bbc3e['checkChild'](['$root','blockQuote'],_0x247ef7);return _0x3185f6&&_0x4d6df1;}(_0x406eeb,this['editor']['model']['schema']));_0x1b24fd=Zt(_0x1cbf05,_0x292620['model']);}else{const _0x1b4a0=Array['from'](_0x34687e['getSelectedBlocks']())['filter'](_0x28dc78=>to(_0x28dc78));_0x1b24fd=Zt(_0x1b4a0,_0x292620['model']);}_0x292620['model']['change'](()=>{for(const _0x2b0542 of _0x1b24fd)_0x5c5d43['markBlockFormat'](_0x2b0542,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x18def0}]});});}),_0x5c5d43['descriptionFactory']['registerDescriptionCallback'](_0x34cbb1=>{const {data:_0x4fdad1}=_0x34cbb1;if(_0x4fdad1&&'blockQuote'==_0x4fdad1['commandName']){const _0x26613b=c(_0x5a38b8,'ELEMENT_BLOCK_QUOTE');return _0x4fdad1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5a38b8,'*Set\x20format:*\x20%0',_0x26613b)}:{'type':'format','content':c(_0x5a38b8,'*Remove\x20format:*\x20%0',_0x26613b)};}});}}function to(_0x80ee4c){return'blockQuote'==_0x80ee4c['parent']['name'];}class L extends _0x24f8b9{['afterInit'](){const _0x2f7a8f=this['editor'],_0x2c73a3=_0x2f7a8f['locale'],_0x249a81=_0x2f7a8f['plugins']['get']('TrackChangesEditing');_0x2f7a8f['plugins']['has']('BookmarkEditing')&&(_0x249a81['enableCommand']('insertBookmark'),_0x249a81['enableDefaultAttributesIntegration']('updateBookmark'),_0x249a81['registerBlockAttribute']('bookmarkId'),_0x249a81['descriptionFactory']['registerDescriptionCallback'](_0x5295c6=>{if('insertion'!=_0x5295c6['type']&&'deletion'!=_0x5295c6['type']&&'attribute'!=_0x5295c6['type'])return;const _0x32a79d=_0x5295c6['getContainedElement']();if(null==_0x32a79d)return;if(!_0x32a79d['is']('element','bookmark'))return;const _0x24e266=_0x32a79d['getAttribute']('bookmarkId');if('insertion'==_0x5295c6['type'])return{'type':'insertion','content':c(_0x2c73a3,'*Insert:*\x20%0','\x22'+_0x24e266+'\x22\x20'+c(_0x2c73a3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5295c6['type'])return{'type':'deletion','content':c(_0x2c73a3,'*Remove:*\x20%0','\x22'+_0x24e266+'\x22\x20'+c(_0x2c73a3,'ELEMENT_BOOKMARK'))};const {data:_0x147b55}=_0x5295c6;if(!_0x147b55||'bookmarkId'!=_0x147b55['key'])return;return{'type':'format','content':c(_0x2c73a3,'*Set\x20bookmark:*\x20%0','\x22'+_0x147b55['newValue']+'\x22')};}));}}class J extends _0x24f8b9{['afterInit'](){const _0x34bb5c=this['editor'];_0x34bb5c['plugins']['has']('CaseChange')&&(_0x34bb5c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x34bb5c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x34bb5c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x24f8b9{['afterInit'](){const _0x4863d7=this['editor'];_0x4863d7['commands']['get']('ckbox')&&_0x4863d7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x24f8b9{['afterInit'](){const _0x5c5327=this['editor'];if(!_0x5c5327['plugins']['has']('CodeBlock'))return;const _0x3d837a=_0x5c5327['plugins']['get']('TrackChangesEditing'),_0xc4f111=_0x5c5327['locale'],_0x40b16c=_0x5c5327['config']['get']('codeBlock')['languages'],_0x3487c6=_0x5c5327['commands']['get']('codeBlock');_0x3d837a['enableCommand']('indentCodeBlock'),_0x3d837a['enableCommand']('outdentCodeBlock'),_0x3d837a['enableCommand']('codeBlock',(_0x3fdb7f,_0x371f00={})=>{const _0x321e01=_0x5c5327['model'],_0x50e29d=_0x5c5327['model']['document']['selection'],_0xce06ab=_0x371f00&&void 0x0!==_0x371f00['forceValue']?_0x371f00['forceValue']:!_0x3487c6['value'];let _0x4c818f;_0x371f00['language']||(_0x371f00['language']=_0x40b16c[0x0]['language']),_0x4c818f=_0xce06ab?Array['from'](_0x50e29d['getSelectedBlocks']())['filter'](_0x3a0280=>oo(_0x3a0280)||function(_0x1ac9b1,_0xcf1b9){if(_0x1ac9b1['is']('rootElement')||_0xcf1b9['isLimit'](_0x1ac9b1))return!0x1;return _0xcf1b9['checkChild'](_0x1ac9b1['parent'],'codeBlock');}(_0x3a0280,_0x321e01['schema'])):Array['from'](_0x50e29d['getSelectedBlocks']())['filter'](_0xe1e6c0=>oo(_0xe1e6c0));const _0x279390=Zt(_0x4c818f,_0x321e01);_0x321e01['change'](()=>{for(const _0x470069 of _0x279390)_0x3d837a['markBlockFormat'](_0x470069,{'commandName':'codeBlock','commandParams':[{..._0x371f00,'forceValue':_0xce06ab}],'formatGroupId':'blockName'});});}),(_0x3d837a['descriptionFactory']['registerElementLabel']('codeBlock',_0x410c84=>c(_0xc4f111,'ELEMENT_CODE_BLOCK',_0x410c84)),_0x3d837a['descriptionFactory']['registerDescriptionCallback'](_0x1b62c3=>{if('formatBlock'!=_0x1b62c3['type'])return;const _0x41e45f=_0xc4f111['t'],{data:_0x472084}=_0x1b62c3;if(!_0x472084||'codeBlock'!=_0x472084['commandName'])return;const _0x33195c=_0x472084['commandParams'][0x0]['language'],_0x92bfea=_0x41e45f(_0x40b16c['find'](_0x5d7872=>_0x5d7872['language']===_0x33195c)['label'])['toLowerCase']();return _0x472084['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xc4f111,'*Set\x20format:*\x20%0',c(_0xc4f111,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x92bfea+')')}:{'type':'format','content':c(_0xc4f111,'*Remove\x20format:*\x20%0',c(_0xc4f111,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x2a286b){return'codeBlock'==_0x2a286b['name'];}class q extends _0x24f8b9{['afterInit'](){const _0x418951=this['editor'];if(!_0x418951['plugins']['has']('CommentsEditing'))return;_0x418951['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1f6cda,_0x5d72ee,_0x3a7bde){const _0x36f69c=[];for(const _0xcf885d of _0x5d72ee['getItems']())_0xcf885d['hasAttribute'](_0x1f6cda)&&_0x36f69c['push'](_0x3a7bde['createRangeOn'](_0xcf885d));return _0x36f69c;}function De(_0x1a5eaf,_0x6ebc2b,{showActiveMarker:_0x6cb83d=!0x0}={}){const _0x272f57=_0x1a5eaf['plugins']['get']('TrackChangesEditing');return(_0x3816ad,_0x3ba445,_0x2df04b)=>{if(!_0x2df04b['consumable']['test'](_0x3ba445['markerRange'],_0x3816ad['name']))return;const _0x56f319=_0x3ba445['markerRange']['getWalker'](),_0x636a3=_0x3ba445['markerRange']['start'],_0x46e238=_0x1a5eaf['model']['schema'];let _0x510731=null,_0x2a63b0=null,_0x526e94=!0x1,_0x35f1e3=!0x1;for(const _0x5267ad of _0x56f319){const _0x27847c=_0x5267ad['item'];_0x526e94=_0x526e94||_0x46e238['isContent'](_0x27847c);const _0x2b4f8a=_0x2df04b['mapper']['toViewElement'](_0x27847c);if(_0x2b4f8a&&_0x2b4f8a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5267ad['type']&&(_0x46e238['isBlock'](_0x27847c)&&!_0x46e238['isLimit'](_0x27847c)&&(_0x27847c['nextSibling']||_0x636a3['isAtEnd']?_0x510731&&_0x510731['parent']==_0x27847c||(_0x510731=_0x27847c,_0x4ea71c(_0x5267ad['previousPosition']),_0x35f1e3=!0x0):_0x2a63b0=_0x2a63b0||_0x5267ad['previousPosition']));}function _0x4ea71c(_0x43cab9){const {authorId:_0x196e22}=_0x272f57['_splitMarkerName'](_0x3ba445['markerName']),_0x4fd337=_0x2df04b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6ebc2b,'data-author-id':_0x196e22}),_0x26939a=_0x2df04b['mapper']['toViewPosition'](_0x43cab9);_0x6cb83d&&_0x272f57['activeMarkers']['includes'](_0x3ba445['markerName'])&&_0x2df04b['writer']['addClass']('ck-suggestion-marker--active',_0x4fd337),_0x2df04b['writer']['insert'](_0x26939a,_0x4fd337),_0x2df04b['mapper']['bindElementToMarker'](_0x4fd337,_0x3ba445['markerName']);}_0x526e94||_0x35f1e3||!_0x2a63b0||_0x4ea71c(_0x2a63b0);};}class z extends _0x24f8b9{static get['requires'](){return[_0x1ffaca];}['init'](){const _0x2da040=this['editor'],_0x383670=_0x2da040['plugins']['get']('TrackChangesEditing');_0x383670['enableCommand']('delete');const _0x7ca2a5=_0x2da040['commands']['get']('deleteForward');_0x383670['enableCommand']('deleteForward',(_0x206c2a,_0x31ab64={})=>{const _0x5ac6f8=_0x2da040['model']['createSelection'](_0x2da040['model']['document']['selection']);_0x5ac6f8['isCollapsed']&&_0x2da040['model']['modifySelection'](_0x5ac6f8,{'direction':'forward','unit':_0x31ab64['unit']});const _0x1df874=_0x5ac6f8['getFirstRange'](),_0x4721f9=_0x3959aa['fromRange'](_0x1df874);let _0x2fe25a;_0x206c2a(_0x31ab64),_0x2fe25a='$graveyard'==_0x4721f9['root']['rootName']?_0x2da040['model']['createRange'](_0x1df874['start']):_0x2da040['model']['createRange'](_0x4721f9['start'],_0x4721f9['end']),_0x4721f9['detach'](),_0x2da040['model']['enqueueChange'](_0x7ca2a5['buffer']['batch'],_0x32d3b6=>{_0x7ca2a5['buffer']['lock'](),_0x32d3b6['setSelection'](_0x32d3b6['createRange'](_0x2fe25a['end'])),_0x7ca2a5['buffer']['unlock']();});}),_0x2da040['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x2da040,'merge'),{'priority':'high'}),_0x2da040['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x229355,_0x2479e9,_0x2ffd22)=>{_0x2ffd22['options']['showSuggestionHighlights']&&De(_0x2da040,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x229355,_0x2479e9,_0x2ffd22);},{'priority':'high'}),_0x2da040['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x52d98c,_0x29a041,_0x1e07d6)=>{const _0x1e4035=_0x1e07d6['mapper']['markerNameToElements'](_0x29a041['markerName']);if(_0x1e4035){for(const _0xe2cd14 of _0x1e4035)_0xe2cd14['is']('uiElement')&&(_0x1e07d6['mapper']['unbindElementFromMarkerName'](_0xe2cd14,_0x29a041['markerName']),_0x1e07d6['writer']['remove'](_0xe2cd14));}},{'priority':'high'});}}class W extends _0x24f8b9{['afterInit'](){const _0x15659e=this['editor'];if(!_0x15659e['plugins']['has']('ListEditing'))return;const _0x57646d=_0x15659e['locale'],_0x4d51b8=_0x15659e['plugins']['get']('TrackChangesEditing'),_0x2e7d4c=_0x15659e['plugins']['has']('TodoListEditing'),_0x47c677=!!_0x15659e['config']['get']('list.multiBlock');function _0x3005cf(_0x10810e){return{'type':'format','content':''+c(_0x57646d,'*Set\x20format:*\x20%0',_0x10810e)};}function _0x2d61ab(_0x20287b){return{'type':'format','content':''+c(_0x57646d,'*Remove\x20format:*\x20%0',_0x20287b)};}_0x4d51b8['enableDefaultAttributesIntegration']('numberedList'),_0x4d51b8['enableDefaultAttributesIntegration']('bulletedList'),_0x4d51b8['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d51b8['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d51b8['enableDefaultAttributesIntegration']('indentList'),_0x4d51b8['enableDefaultAttributesIntegration']('outdentList'),_0x4d51b8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d51b8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4d51b8['registerBlockAttribute']('listItemId'),_0x4d51b8['registerBlockAttribute']('listType'),_0x4d51b8['registerBlockAttribute']('listIndent'),_0x47c677&&(_0x4d51b8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d51b8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2e7d4c&&(_0x4d51b8['enableDefaultAttributesIntegration']('todoList'),_0x4d51b8['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d51b8['registerBlockAttribute']('todoListChecked'),_0x4d51b8['descriptionFactory']['registerDescriptionCallback'](_0x15b323=>{const {data:_0x4d0eac}=_0x15b323;if(_0x4d0eac&&'todoListChecked'==_0x4d0eac['key'])return{'type':'format','content':_0x4d0eac['newValue']?c(_0x57646d,'*Check\x20item*'):c(_0x57646d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1498c5=>{if(_0x1498c5['batch']['isUndo'])return!0x1;let _0x4f5d33=!0x1;const _0x4a45a3=_0x4d51b8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x522e48=>'todoListChecked'===_0x4d51b8['_getAttributeKey'](_0x522e48));for(const _0x5542d0 of _0x4a45a3){'todo'!=_0x5542d0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d51b8['_findSuggestions'](_0x5542d0['getFirstRange'](),'attribute')['find'](_0x30e872=>'listType'===_0x4d51b8['_getAttributeKey'](_0x30e872['suggestion']))||(_0x1498c5['removeMarker'](_0x5542d0['getFirstMarker']()),_0x4f5d33=!0x0));}return _0x4f5d33;})),_0x4d51b8['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x57646d,'FORMAT_INDENT'));const _0x309a02={'type':'format','content':''};_0x4d51b8['descriptionFactory']['registerDescriptionCallback'](_0x411e99=>{const {data:_0x345f1c}=_0x411e99;if(!_0x345f1c||'listType'!=_0x345f1c['key'])return;let _0x2d7e20=_0x411e99['head'];for(;_0x2d7e20;){if(_0x2d7e20['data']&&(('listStyle'==_0x2d7e20['data']['key']||'listMarkerStyle'==_0x2d7e20['data']['key'])&&(_0x2d7e20['data']['newValue']&&'default'!=_0x2d7e20['data']['newValue']||'default'!=_0x2d7e20['data']['oldValue']&&!_0x345f1c['newValue'])||!_0x47c677&&_0x2d7e20['data']['key']==u))return _0x309a02;_0x2d7e20=_0x2d7e20['next'];}if(null==_0x345f1c['newValue'])switch(_0x345f1c['oldValue']){case'bulleted':return _0x2d61ab(c(_0x57646d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d61ab(c(_0x57646d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d61ab(c(_0x57646d,'ELEMENT_TODO_LIST'));}switch(_0x345f1c['newValue']){case'bulleted':return _0x3005cf(c(_0x57646d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3005cf(c(_0x57646d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3005cf(c(_0x57646d,'ELEMENT_TODO_LIST'));}}),_0x4d51b8['descriptionFactory']['registerDescriptionCallback'](_0x5690fb=>{const {data:_0x17a78b}=_0x5690fb;if(_0x17a78b&&'listIndent'==_0x17a78b['key'])return null==_0x17a78b['newValue']||null==_0x17a78b['oldValue']&&0x0==_0x17a78b['newValue']?_0x309a02:void 0x0;}),_0x4d51b8['descriptionFactory']['registerDescriptionCallback'](_0xddae0=>{if('attribute'!=_0xddae0['type'])return;const {data:_0x3679d5}=_0xddae0;if(!_0x3679d5||'listItemId'!=_0x3679d5['key'])return;const _0x403d4f=Te(_0xddae0);return'newValue'==_0x403d4f?{'type':'format','content':c(_0x57646d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x403d4f?{'type':'format','content':c(_0x57646d,'*Split:*\x20list\x20item')}:_0x309a02;}),_0x15659e['model']['document']['registerPostFixer'](_0x50fb10=>this['listItemIdFixer'](_0x50fb10)),_0x15659e['model']['document']['registerPostFixer'](_0x1d36f9=>this['noTrackChangesFixer'](_0x1d36f9)),_0x15659e['model']['document']['on']('change:data',(_0x28a94b,_0x51a9ab)=>{if(_0x51a9ab['isUndo']||!_0x51a9ab['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3f909b){if(_0x3f909b['batch']['isUndo']||!_0x3f909b['batch']['isLocal'])return!0x1;let _0x236c0f=!0x1;const _0x6151c9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e562d=>_0x5e562d['data']&&'listItemId'==_0x5e562d['data']['key'])['filter'](_0x536cb9=>_0x536cb9['data']['newValue']&&_0x536cb9['data']['oldValue']);for(const _0x25d498 of _0x6151c9)Te(_0x25d498)||(_0x3f909b['removeMarker'](_0x25d498['getFirstMarker']()),_0x236c0f=!0x0);return _0x236c0f;}['noTrackChangesFixer'](_0x5a489a){if(_0x5a489a['batch']['isUndo']||!_0x5a489a['batch']['isLocal'])return!0x1;const _0x17c467=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x17c467['trackChangesCommand']['value'])return!0x1;let _0x27f011=!0x1;const _0x236ba3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2a4cd9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4352a6=>'attribute'==_0x4352a6['type'])['filter'](_0x41eacd=>_0x236ba3['includes'](_0x41eacd['attributeKey']));if(0x0==_0x2a4cd9['length'])return _0x27f011;for(const _0x341f7e of _0x2a4cd9){const _0x59f36b=_0x17c467['_findSuggestions'](_0x341f7e['range'],'attribute')['filter'](_0x5c6092=>!_0x5c6092['meta']['isNextTo'])['map'](_0x4c0b98=>_0x4c0b98['suggestion'])['filter'](_0x5c8188=>{const _0x3dec36=_0x17c467['_getAttributeKey'](_0x5c8188);return _0x236ba3['includes'](_0x3dec36);});if(_0x59f36b['length']){for(const _0x1b1f9e of _0x59f36b)_0x5a489a['removeMarker'](_0x1b1f9e['getFirstMarker']());_0x27f011=!0x0;}}return _0x27f011;}['assureChains'](){const _0x13486a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5194b3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x29aef3;const _0x3292b2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x35be42=>{if(_0x35be42['data']['oldRange']||!_0x35be42['data']['newRange'])return null;if(!_0x35be42['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x144656}=_0x13486a['_splitMarkerName'](_0x35be42['name']);if(!_0x13486a['hasSuggestion'](_0x144656))return null;const _0x4b8f75=_0x13486a['getSuggestion'](_0x144656);return _0x5194b3['includes'](_0x4b8f75['data']['key']);})['map'](_0x2a8236=>{const {id:_0x5d3970}=_0x13486a['_splitMarkerName'](_0x2a8236['name']),_0x15e723=_0x13486a['getSuggestion'](_0x5d3970);return _0x29aef3=_0x15e723['attributes']['groupId'],_0x15e723['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3292b2['size'])return;const _0x586152=_0x13486a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x596c45=>'attribute'==_0x596c45['type']&&_0x596c45['data']&&_0x5194b3['includes'](_0x596c45['data']['key'])&&_0x596c45['attributes']['groupId']!=_0x29aef3)['map'](_0x426f05=>({'listItem':_0x426f05['getFirstRange']()['start']['nodeAfter'],'groupId':_0x426f05['attributes']['groupId']})),_0x127f5a=new Set();for(const {groupId:_0x41f03c,listItem:_0x360356}of _0x586152)_0x3292b2['has'](_0x360356)&&_0x127f5a['add'](_0x41f03c);for(const _0x30482d of _0x13486a['getSuggestions']())_0x127f5a['has'](_0x30482d['attributes']['groupId'])&&_0x30482d['setAttribute']('groupId',_0x29aef3);}['_supportLegacySuggestions'](){const _0x58b2fc=this['editor'],_0x4f2b40=_0x58b2fc['locale'],_0x5d483d=_0x58b2fc['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5d483d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x224014,_0x5cab93){const _0x1eaedb=[];for(let _0x44714f of _0x224014)_0x44714f['start']['nodeAfter']===_0x44714f['end']['parent']&&(_0x44714f=_0x58b2fc['model']['createRange'](_0x58b2fc['model']['createPositionAt'](_0x44714f['start']['nodeAfter'],0x0))),_0x1eaedb['push'](_0x44714f);_0x58b2fc['model']['change'](_0x15fdc0=>{const _0xc27e8f=_0x58b2fc['model']['document']['selection'],_0x56e4fc=Array['from'](_0xc27e8f['getRanges']())['map'](_0x314731=>_0x3959aa['fromRange'](_0x314731));_0x15fdc0['setSelection'](_0x1eaedb),_0x58b2fc['commands']['get'](_0x5cab93['commandName'])['refresh'](),_0x5cab93['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x58b2fc['execute'](_0x5cab93['commandName'],..._0x5cab93['commandParams']),_0x15fdc0['setSelection'](_0x56e4fc);for(const _0x5ca1b9 of _0x56e4fc)_0x5ca1b9['detach']();});}),_0x5d483d['descriptionFactory']['registerElementLabel'](function(_0x2d2b21){const _0x11a457=!_0x58b2fc['model']['schema']['isObject'](_0x2d2b21),_0x260098=_0x2d2b21['previousSibling'],_0x48e999=_0x2d2b21['nextSibling'],_0x63d673=_0x2d2b21['getAttribute']('listItemId'),_0x441ede=!_0x260098||_0x260098['getAttribute']('listItemId')!==_0x63d673,_0x35f34d=!_0x48e999||_0x48e999['getAttribute']('listItemId')!==_0x63d673;return _0x11a457&&Boolean(_0x63d673)&&_0x441ede&&_0x35f34d;},_0x2b3a0c=>c(_0x4f2b40,'ELEMENT_LIST_ITEM',_0x2b3a0c));}['_registerLegacyDescription'](){const _0xa76af3=this['editor'],_0x55642d=_0xa76af3['locale'];function _0x2bf0f6(_0x36c3a0){const _0x5bd8c7=_0xa76af3['commands']['get']('bulletedList')['value'],_0x427f01=_0xa76af3['commands']['get']('numberedList')['value'];return'numberedList'===_0x36c3a0?_0x5bd8c7:_0x427f01;}_0xa76af3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x9d5909){if('formatBlock'!=_0x9d5909['type'])return;const {data:_0x708b71}=_0x9d5909;if(!_0x708b71)return;let _0x3d8e74,_0x31a3e4,_0x3a5a49,_0x1cebaa;switch(_0x708b71['commandName']){case'bulletedList':_0x3a5a49=_0x708b71['commandParams'][0x0]['forceValue'],_0x1cebaa=_0x2bf0f6(_0x708b71['commandName']),_0x3d8e74=_0x3a5a49?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cebaa&&_0xa76af3['config']['get']('list.multiBlock')||(_0x3d8e74='*Change\x20to:*\x20%0'),_0x31a3e4={'type':'format','content':c(_0x55642d,_0x3d8e74,c(_0x55642d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3a5a49=_0x708b71['commandParams'][0x0]['forceValue'],_0x1cebaa=_0x2bf0f6(_0x708b71['commandName']),_0x3d8e74=_0x3a5a49?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cebaa&&_0xa76af3['config']['get']('list.multiBlock')||(_0x3d8e74='*Change\x20to:*\x20%0'),_0x31a3e4={'type':'format','content':c(_0x55642d,_0x3d8e74,c(_0x55642d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3d8e74='*Indent:*\x20%0',_0x31a3e4={'type':'format','content':c(_0x55642d,_0x3d8e74,c(_0x55642d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3d8e74=function(_0x48caec){const _0x5ee1a5=_0x48caec['getFirstRange']();let _0x17e024=_0x5ee1a5['start']['nodeAfter'];for(;_0x17e024&&_0x5ee1a5['containsItem'](_0x17e024);){if(_0x17e024['getAttribute']('listIndent')>0x0)return!0x1;_0x17e024=_0x17e024['nextSibling'];}return!0x0;}(_0x9d5909)?c(_0x55642d,'*Format:*\x20remove\x20from\x20%0',c(_0x55642d,function(_0xd57b1e){return'ELEMENT_'+_0xd57b1e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x9d5909))):c(_0x55642d,'*Outdent:*\x20%0',c(_0x55642d,'ELEMENT_LIST_ITEM')),_0x31a3e4={'type':'format','content':_0x3d8e74};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x708b71['multipleBlocks']&&(_0x3d8e74='*Merge:*\x20%0',_0x31a3e4={'type':'deletion','content':c(_0x55642d,_0x3d8e74,c(_0x55642d,'ELEMENT_LIST_ITEM'))});}return _0x31a3e4;});}}function Te(_0x17c5b2){let _0x2c6237=_0x17c5b2['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2c6237;){const _0x2248e7=_0x2c6237['getAttribute']('listItemId');if(!_0x2248e7)return!0x1;if(_0x2248e7==_0x17c5b2['data']['newValue'])return'newValue';if(_0x2248e7==_0x17c5b2['data']['oldValue'])return'oldValue';_0x2c6237=_0x2c6237['previousSibling'];}return!0x1;}class Se extends _0x24f8b9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3efa94=this['editor']['config']['get']('list.properties'),_0x4bf4e1=this['editor']['plugins']['get']('TrackChangesEditing');_0x3efa94['styles']&&(_0x4bf4e1['enableDefaultAttributesIntegration']('listStyle'),_0x4bf4e1['registerBlockAttribute']('listStyle')),_0x3efa94['reversed']&&(_0x4bf4e1['enableDefaultAttributesIntegration']('listReversed'),_0x4bf4e1['registerBlockAttribute']('listReversed')),_0x3efa94['startIndex']&&(_0x4bf4e1['enableDefaultAttributesIntegration']('listStart'),_0x4bf4e1['registerBlockAttribute']('listStart'));const _0x3bd648={'type':'format','content':''};_0x4bf4e1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x46d017=this['editor']['locale'];_0x4bf4e1['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x46d017,'FORMAT_LIST_REVERSED')),_0x4bf4e1['descriptionFactory']['registerDescriptionCallback'](_0x222825=>{const {data:_0x408576}=_0x222825;if(_0x408576&&'listReversed'==_0x408576['key'])return null==_0x408576['newValue']||0x0==_0x408576['newValue']&&null==_0x408576['oldValue']?_0x3bd648:void 0x0;}),_0x4bf4e1['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x46d017,'FORMAT_LIST_START')),_0x4bf4e1['descriptionFactory']['registerDescriptionCallback'](_0x50b6c2=>{const {data:_0x19aaa6}=_0x50b6c2;if(_0x19aaa6&&'listStart'==_0x19aaa6['key'])return null==_0x19aaa6['newValue']||0x1==_0x19aaa6['newValue']&&null==_0x19aaa6['oldValue']?_0x3bd648:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x25d617=>{if(_0x25d617['batch']['isUndo'])return!0x1;let _0x4e9ab4=!0x1;const _0xedbec5=_0x4bf4e1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x229caf=>{const _0x17f2e7=_0x4bf4e1['_getAttributeKey'](_0x229caf);return'listStart'==_0x17f2e7||'listReversed'==_0x17f2e7;});for(const _0x4deed5 of _0xedbec5){const _0x136acd=_0x4deed5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x136acd||'customNumbered'==_0x136acd)continue;_0x4bf4e1['_findSuggestions'](_0x4deed5['getFirstRange'](),'attribute')['find'](_0x5a1d94=>'listType'==_0x4bf4e1['_getAttributeKey'](_0x5a1d94['suggestion']))||(_0x25d617['removeMarker'](_0x4deed5['getFirstMarker']()),_0x4e9ab4=!0x0);}return _0x4e9ab4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3455dd){const _0x3b285a=this['editor']['locale'],{data:_0xdd30f5}=_0x3455dd,_0xa1846b={'type':'format','content':''};if(!_0xdd30f5||'listStyle'!=_0xdd30f5['key'])return;if(!_0xdd30f5['oldValue'])return'default'==_0xdd30f5['newValue']?_0xa1846b:{'type':'format','content':''+c(_0x3b285a,'*Set\x20format:*\x20%0',c(_0x3b285a,this['_getTranslationKeyForListStyle'](_0xdd30f5['newValue'])))};if(!_0xdd30f5['newValue']){if('default'==_0xdd30f5['oldValue'])return _0xa1846b;let _0x43d173=_0x3455dd['head'];for(;_0x43d173;){if(_0x43d173['data']&&'listType'==_0x43d173['data']['key']&&_0x43d173['data']['newValue'])return _0xa1846b;_0x43d173=_0x43d173['next'];}return{'type':'format','content':''+c(_0x3b285a,'*Remove\x20format:*\x20%0',c(_0x3b285a,this['_getTranslationKeyForListStyle'](_0xdd30f5['oldValue'])))};}if('default'!=_0xdd30f5['newValue'])return{'type':'format','content':''+c(_0x3b285a,'*Set\x20format:*\x20%0',c(_0x3b285a,this['_getTranslationKeyForListStyle'](_0xdd30f5['newValue'])))};let _0x3f3863=_0x3455dd['head'];for(;_0x3f3863;){if(_0x3f3863['data']&&'listType'==_0x3f3863['data']['key']&&_0x3f3863['data']['newValue']&&_0x3f3863['data']['oldValue'])return _0xa1846b;_0x3f3863=_0x3f3863['next'];}return{'type':'format','content':c(_0x3b285a,'*Set\x20format:*\x20%0',c(_0x3b285a,'ELEMENT_'+_0x3455dd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x369f4e=this['editor'],_0x10b426=_0x369f4e['locale'];_0x369f4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9b9066=>{if('formatBlock'!=_0x9b9066['type'])return;const {data:_0xf611d5}=_0x9b9066;if(!_0xf611d5)return;let _0x2fd41a,_0x40a5a6;switch(_0xf611d5['commandName']){case'listStyle':_0x2fd41a='*Change\x20to:*\x20%0',_0x40a5a6={'type':'format','content':c(_0x10b426,_0x2fd41a,c(_0x10b426,this['_getTranslationKeyForListStyle'](_0xf611d5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2fd41a=_0xf611d5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40a5a6={'type':'format','content':c(_0x10b426,_0x2fd41a)};break;case'listStart':_0x2fd41a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40a5a6={'type':'format','content':c(_0x10b426,_0x2fd41a,_0xf611d5['commandParams'][0x0]['startIndex'])};}return _0x40a5a6;});}['_getTranslationKeyForListStyle'](_0x2531b4){return'ELEMENT_'+function(_0x2675e6){if(_e['includes'](_0x2675e6))return'bulleted';if(Re['includes'](_0x2675e6))return'numbered';return null;}(_0x2531b4)['toUpperCase']()+'_LIST_'+_0x2531b4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x24f8b9{['afterInit'](){const _0x4bb779=this['editor'];_0x4bb779['commands']['get']('emoji')&&_0x4bb779['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x24f8b9{static get['requires'](){return[_0x205271];}['init'](){const _0x2071b1=this['editor'],_0x289a11=_0x2071b1['plugins']['get']('TrackChangesEditing'),_0x41c1de=_0x2071b1['commands']['get']('enter');_0x289a11['enableCommand']('enter',()=>{_0x2071b1['model']['change'](_0x15ce6d=>{const _0x3985a7=_0x2071b1['model']['document']['selection'],_0x129a24=_0x3985a7['getFirstPosition'](),_0x2aef79=_0x3959aa['fromRange'](_0x3985a7['getFirstRange']());if(_0x41c1de['enterBlock'](_0x15ce6d)){const _0x58b620=_0x2071b1['model']['createPositionAt'](_0x129a24['parent']['nextSibling'],0x0),_0x454ebc=_0x15ce6d['createRange'](_0x129a24,_0x58b620);_0x289a11['markInsertion'](_0x454ebc);}else _0x15ce6d['setSelection'](_0x15ce6d['createRange'](_0x2aef79['end']));_0x2aef79['detach'](),_0x41c1de['fire']('afterExecute',{'writer':_0x15ce6d});});}),_0x2071b1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2071b1,'split'),{'priority':'high'}),_0x2071b1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2e34fe,_0x28f56f,_0x8c28af)=>{const _0x15223f=_0x8c28af['mapper']['markerNameToElements'](_0x28f56f['markerName']);if(_0x15223f){for(const _0x51ad49 of _0x15223f)_0x51ad49['hasClass']('ck-suggestion-marker-split')&&(_0x8c28af['mapper']['unbindElementFromMarkerName'](_0x51ad49,_0x28f56f['markerName']),_0x8c28af['writer']['remove'](_0x51ad49));}},{'priority':'high'}),_0x2071b1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41ec7c,_0x3ebc99,_0x5545b3)=>{_0x5545b3['options']['showSuggestionHighlights']&&De(_0x2071b1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x41ec7c,_0x3ebc99,_0x5545b3);},{'priority':'high'});}}class Z extends _0x24f8b9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x566812=this['editor']['plugins']['get']('TrackChangesEditing');_0x566812['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x566812['enableCommand']('findNext'),_0x566812['enableCommand']('findPrevious'),_0x566812['enableCommand']('replace'),_0x566812['enableCommand']('replaceAll');}['handleFindCommand'](_0x45b2b0,_0xe5c2b7,_0x51d80f={}){const _0x261045=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x45b2b0(_0x24985f=>{let _0x3dfea5=('string'==typeof _0xe5c2b7?_0x261045['findByTextCallback'](_0xe5c2b7,_0x51d80f):_0xe5c2b7)(_0x24985f);Array['isArray'](_0x3dfea5)&&(_0x3dfea5={'results':_0x3dfea5,'searchText':'string'==typeof _0xe5c2b7?_0xe5c2b7:''});const _0x3c5568=_0x3dfea5['results']['filter'](_0x4ab38d=>!0x1===this['_isInDeletionRange'](_0x4ab38d,_0x24985f['item']));return{..._0x3dfea5,'results':_0x3c5568};},_0x51d80f);}['_isInDeletionRange'](_0xe015a0,_0x211db2){const _0x4665ad=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x211db2,_0xe015a0['start']),this['editor']['model']['createPositionAt'](_0x211db2,_0xe015a0['end']));for(const _0x2ba15e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4665ad['getIntersection'](_0x2ba15e['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 _0x24f8b9{['afterInit'](){const _0x1d73a4=this['editor']['locale'],_0x2949aa=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1f0094,commandName:_0x3729ec}of eo)this['editor']['plugins']['has'](_0x1f0094)&&(_0x2949aa['enableDefaultAttributesIntegration'](_0x3729ec),_0x2949aa['registerInlineAttribute'](_0x3729ec));_0x2949aa['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x1d73a4,'FORMAT_FONT_SIZE')),_0x2949aa['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x1d73a4,'FORMAT_FONT_FAMILY')),_0x2949aa['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x1d73a4,'FORMAT_FONT_COLOR')),_0x2949aa['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x1d73a4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3125cc=this['editor'],_0x5752f3=_0x3125cc['locale'];_0x3125cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c09cf=>{const _0x596509=_0x5752f3['t'];if('formatInline'!=_0x1c09cf['type'])return;const {data:_0x4b3e71}=_0x1c09cf;if(null!=_0x4b3e71){if('fontSize'==_0x4b3e71['commandName']){const _0x849392=_0x4b3e71['commandParams'][0x0]['value'];if(_0x849392){const _0xba5657=_0x596509(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x6de268=>_0x6de268['model']==_0x849392)['title'])['toLowerCase']();return{'type':'format','content':c(_0x5752f3,'*Set\x20font\x20size:*\x20%0',_0xba5657)};}return{'type':'format','content':c(_0x5752f3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4b3e71['commandName']){const _0xa7c325=_0x4b3e71['commandParams'][0x0]['value'];return _0xa7c325?{'type':'format','content':c(_0x5752f3,'*Set\x20font\x20family:*\x20%0',_0xa7c325)}:{'type':'format','content':c(_0x5752f3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4b3e71['commandName']){const _0x1424a1=_0x4b3e71['commandParams'][0x0]['value'];if(_0x1424a1){const _0x2325b6=_0x5df9c0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x42d5e8=>_0x42d5e8['model']==_0x1424a1);let _0x5f5823=_0x1424a1,_0x43e62c='';return _0x2325b6&&(_0x5f5823=_0x2325b6['label'],_0x43e62c=_0x596509(_0x5f5823)['toLowerCase']()),{'type':'format','content':c(_0x5752f3,'*Set\x20font\x20color:*\x20%0',_0x43e62c)['trim'](),'color':{'value':_0x1424a1,'title':_0x43e62c||_0x5f5823}};}return{'type':'format','content':c(_0x5752f3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4b3e71['commandName']){const _0x333658=_0x4b3e71['commandParams'][0x0]['value'];if(_0x333658){const _0x5bd434=_0x5df9c0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x52624c=>_0x52624c['model']==_0x333658);let _0x52f44f=_0x333658,_0x33e5b5='';return _0x5bd434&&(_0x52f44f=_0x5bd434['label'],_0x33e5b5=_0x596509(_0x52f44f)['toLowerCase']()),{'type':'format','content':c(_0x5752f3,'*Set\x20font\x20background\x20color:*\x20%0',_0x33e5b5)['trim'](),'color':{'value':_0x333658,'title':_0x33e5b5||_0x52f44f}};}return{'type':'format','content':c(_0x5752f3,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x24f8b9{['afterInit'](){const _0x157bd5=this['editor'],_0x416ada=_0x157bd5['plugins']['get']('TrackChangesEditing'),_0x1a86ef=_0x157bd5['commands']['get']('copyFormat'),_0x267141=_0x157bd5['commands']['get']('pasteFormat');_0x1a86ef&&_0x267141&&(_0x416ada['enableDefaultAttributesIntegration']('pasteFormat'),_0x416ada['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x23961b=this['editor'],_0x1c8b32=_0x23961b['locale'];_0x23961b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d8f7f=>{if('formatBlock'!=_0x5d8f7f['type']&&'formatInline'!=_0x5d8f7f['type'])return;const {data:_0x520d60}=_0x5d8f7f;if(_0x520d60&&'pasteFormat'===_0x520d60['commandName']){const _0x31d5db=[],_0x27ebf2=_0x520d60['commandParams'][0x0];for(const [_0x5724f7,_0x321966]of Object['entries'](_0x27ebf2))_0x31d5db['push'](ro(_0x23961b,_0x5724f7,_0x321966));return _0x31d5db['length']?{'type':'format','content':c(_0x1c8b32,'*Set\x20format\x20to:*\x20%0',_0x31d5db['join'](',\x20'))}:{'type':'format','content':c(_0x1c8b32,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x36f256,_0xad1c03,_0x4eac40){const _0x1cd4fe=_0x36f256['locale']['t'],_0x38da5e=_0xad1c03['split'](/(?=[A-Z])/)['join']('\x20'),_0x2b0887=_0x1cd4fe(_0x38da5e['charAt'](0x0)['toUpperCase']()+_0x38da5e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4eac40)return _0x2b0887;if('fontColor'===_0xad1c03||'fontBackgroundColor'===_0xad1c03){const _0x29a736=_0x5df9c0(_0x36f256['config']['get']('fontColor.colors'))['find'](_0xabe20=>_0xabe20['model']==_0x4eac40);return _0x2b0887+'\x20('+(_0x29a736?_0x1cd4fe(_0x29a736['label'])['toLowerCase']():_0x4eac40)+')';}if('fontSize'===_0xad1c03&&isNaN(parseFloat(_0x4eac40))){const _0x3e452c=_0x36f256['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x36f256['config']['get']('fontSize.options'))['find'](_0x216f8c=>_0x216f8c['model']==_0x4eac40);return _0x2b0887+'\x20('+(_0x3e452c?_0x1cd4fe(_0x3e452c['title'])['toLowerCase']():_0x4eac40)+')';}return _0x2b0887+'\x20('+_0x4eac40+')';}class nt extends _0x24f8b9{['_headingOptions'];['afterInit'](){const _0x3f5ab8=this['editor'];if(!_0x3f5ab8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3f5ab8['config']['get']('heading.options');const _0x4351c1=_0x3f5ab8['locale'],_0x4b5a21=_0x3f5ab8['plugins']['get']('TrackChangesEditing');_0x4b5a21['enableDefaultAttributesIntegration']('heading');for(const _0x5b0267 of this['_headingOptions'])'paragraph'!=_0x5b0267['model']&&_0x4b5a21['descriptionFactory']['registerElementLabel'](_0x5b0267['model'],_0x108bbd=>{const _0x10c692=this['_getHeadingLevel'](_0x5b0267['model']);return null!==_0x10c692?_0x274216(_0x108bbd,_0x10c692):_0x4bb874(_0x108bbd,_0x5b0267['title']);});function _0x274216(_0x17fc68,_0x219636){return c(_0x4351c1,'ELEMENT_HEADING',[_0x17fc68,_0x219636]);}function _0x4bb874(_0x484bea,_0x1bd0ef){return c(_0x4351c1,'ELEMENT_HEADING_CUSTOM',[_0x484bea,_0x1bd0ef]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cbe70=this['editor'],_0x191009=_0x1cbe70['locale'];function _0x2cce27(_0x1cafcb,_0x35045f){return c(_0x191009,'ELEMENT_HEADING_CUSTOM',[_0x1cafcb,_0x35045f]);}_0x1cbe70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ce83a=>{if('formatBlock'!=_0x4ce83a['type'])return;const {data:_0x898046}=_0x4ce83a;if(_0x898046&&'heading'==_0x898046['commandName']){const _0xa97fd3=_0x898046['commandParams'][0x0]['value'],_0x4521c3=this['_getHeadingLevel'](_0xa97fd3);if(null!==_0x4521c3)return{'type':'format','content':c(_0x191009,'*Change\x20to:*\x20%0',(_0x1371a9=0x1,_0x331132=_0x4521c3,c(_0x191009,'ELEMENT_HEADING',[_0x1371a9,_0x331132])))};const _0x47f859=this['_headingOptions']['find'](_0x51c1c2=>_0x51c1c2['model']===_0xa97fd3)['title'];return{'type':'format','content':c(_0x191009,'*Change\x20to:*\x20%0',_0x2cce27(0x1,_0x47f859))};}var _0x1371a9,_0x331132;});}['_getHeadingLevel'](_0x528a64){const _0x992ad8=_0x528a64['match'](/^heading(\d+)/);if(_0x992ad8)return _0x992ad8[0x1];const _0x4486d7=this['_headingOptions']?.['find'](_0x3e53a0=>_0x3e53a0['model']==_0x528a64);if(_0x4486d7&&_0x4486d7['view']){const _0xe55628=_0x4486d7['view'],_0x58f983=(_0xe55628['name']??_0xe55628)['match'](/^h(\d+)/);if(_0x58f983)return _0x58f983[0x1];}return null;}}class it extends _0x24f8b9{['afterInit'](){const _0x282fee=this['editor'];if(!_0x282fee['plugins']['has']('HighlightEditing'))return;const _0x25ff83=_0x282fee['plugins']['get']('TrackChangesEditing'),_0x23e729=_0x282fee['locale'];_0x25ff83['enableDefaultAttributesIntegration']('highlight'),_0x25ff83['registerInlineAttribute']('highlight'),_0x25ff83['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x23e729,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f9220=this['editor'],_0x519768=_0x4f9220['locale'];_0x4f9220['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x595ff9=>{if('formatInline'!=_0x595ff9['type'])return;const {data:_0x44085b}=_0x595ff9;if(_0x44085b&&'highlight'==_0x44085b['commandName']){const _0x1f626b=_0x519768['t'],_0x315391=_0x44085b['commandParams'][0x0]['value'];if(_0x315391){const _0x41ded4=_0x4f9220['config']['get']('highlight.options')['find'](_0x48be71=>_0x48be71['model']==_0x315391),_0x37dfb6=_0x1f626b(_0x41ded4['title'])['toLowerCase']();return{'type':'format','content':c(_0x519768,'*Set\x20highlight:*\x20%0',_0x37dfb6),'color':{'value':_0x41ded4['color'],'title':_0x41ded4['title']}};}return{'type':'format','content':c(_0x519768,'*Remove\x20highlight*',c(_0x519768,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x24f8b9{['afterInit'](){const _0x565c64=this['editor'];if(!_0x565c64['plugins']['has']('HorizontalLineEditing'))return;_0x565c64['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x69c134=_0x565c64['plugins']['get']('TrackChangesEditing'),_0x191a13=_0x565c64['locale'];_0x69c134['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5b2cfd=>c(_0x191a13,'ELEMENT_HORIZONTAL_LINE',_0x5b2cfd)),_0x565c64['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1d8fdf,{writer:_0x3b2529,options:_0x1ff0b7})=>{if(!_0x1ff0b7['showSuggestionHighlights'])return null;const _0x125c0b=_0x3b2529['createContainerElement']('div'),_0x270e69=_0x3b2529['createEmptyElement']('hr');return _0x3b2529['addClass']('ck-horizontal-line',_0x125c0b),_0x3b2529['insert'](_0x3b2529['createPositionAt'](_0x125c0b,0x0),_0x270e69),_0x125c0b;},'converterPriority':'high'});}}class ot extends _0x24f8b9{['afterInit'](){const _0x1f20bf=this['editor'];if(!_0x1f20bf['plugins']['has']('HtmlEmbed'))return;const _0x33005f=_0x1f20bf['plugins']['get']('TrackChangesEditing'),_0x40bf21=_0x1f20bf['locale'];_0x33005f['descriptionFactory']['registerElementLabel']('rawHtml',_0x2d587e=>c(_0x40bf21,'ELEMENT_HTML_EMBED',_0x2d587e)),_0x33005f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x33005f['registerBlockAttribute']('value'),_0x33005f['descriptionFactory']['registerDescriptionCallback'](_0x301bad=>{if('attribute'!=_0x301bad['type'])return;const {data:_0x3626c6}=_0x301bad;if(_0x3626c6&&'value'==_0x3626c6['key']&&_0x301bad['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3a060d=c(_0x40bf21,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x40bf21,'*Change\x20%0\x20content*',_0x3a060d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11576f=this['editor'],_0x21539b=_0x11576f['locale'];_0x11576f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b8a4d=>{if('formatBlock'!=_0x3b8a4d['type'])return;const {data:_0x12c65d}=_0x3b8a4d;if(_0x12c65d&&'htmlEmbed'==_0x12c65d['commandName']){const _0x5e7209=c(_0x21539b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x21539b,'*Change\x20%0\x20content*',_0x5e7209)};}});}}class rt extends _0x24f8b9{['afterInit'](){const _0x32a7c1=this['editor'];if(!_0x32a7c1['plugins']['has']('ImageEditing'))return;const _0x289c8f=_0x32a7c1['plugins']['get']('TrackChangesEditing'),_0x3dd72c=_0x32a7c1['plugins']['get']('ImageUtils'),_0x5e9f81=_0x32a7c1['locale'];_0x289c8f['enableCommand']('insertImage'),_0x289c8f['descriptionFactory']['registerElementLabel']('imageBlock',_0x114509=>c(_0x5e9f81,'ELEMENT_IMAGE',_0x114509)),_0x289c8f['descriptionFactory']['registerElementLabel']('imageInline',_0x4cbe03=>c(_0x5e9f81,'ELEMENT_INLINE_IMAGE',_0x4cbe03)),_0x289c8f['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x5e9f81,'ELEMENT_CAPTION')),_0x32a7c1['plugins']['has']('ImageUploadEditing')&&_0x289c8f['enableCommand']('uploadImage'),_0x32a7c1['plugins']['has']('ImageBlockEditing')&&_0x32a7c1['plugins']['has']('ImageInlineEditing')&&(_0x289c8f['enableCommand']('imageTypeInline',(_0xcf033,_0x5812d2)=>{const _0x243fd1=_0x3dd72c['getClosestSelectedImageElement'](_0x32a7c1['model']['document']['selection']);_0x32a7c1['model']['change'](()=>{_0x289c8f['markBlockFormat'](_0x243fd1,{'commandName':'imageTypeInline','commandParams':[_0x5812d2]},[],'convertBlockImageToInline');});}),_0x289c8f['enableCommand']('imageTypeBlock',(_0x1089f3,_0x2be897)=>{_0x32a7c1['model']['change'](_0x1b705c=>{let _0x17c57a=_0x3dd72c['getClosestSelectedImageElement'](_0x32a7c1['model']['document']['selection']),_0x4b1b09=_0x1b705c['createRangeOn'](_0x17c57a);const _0x4ecf41=_0x51fd80['fromPosition'](_0x4b1b09['start'],'toPrevious'),_0x1b730a=_0x51fd80['fromPosition'](_0x4b1b09['end'],'toNext');_0x289c8f['forceDefaultExecution'](()=>_0x1089f3(_0x2be897)),_0x17c57a=_0x3dd72c['getClosestSelectedImageElement'](_0x32a7c1['model']['document']['selection']),_0x4b1b09=_0x1b705c['createRangeOn'](_0x17c57a);const _0x4ec32a=_0x1b705c['createRange'](_0x4ecf41,_0x1b730a);_0x4ecf41['detach'](),_0x1b730a['detach'](),_0x289c8f['markBlockFormat'](_0x17c57a,{'commandName':'imageTypeInline','commandParams':[_0x2be897]},[],'convertInlineImageToBlock'),_0x4ec32a['start']['isBefore'](_0x4b1b09['start'])&&_0x289c8f['markInsertion'](_0x1b705c['createRange'](_0x4ec32a['start'],_0x4b1b09['start']),'convertInlineImageToBlock'),_0x4b1b09['end']['isBefore'](_0x4ec32a['end'])&&_0x289c8f['markInsertion'](_0x1b705c['createRange'](_0x4b1b09['end'],_0x4ec32a['end']),'convertInlineImageToBlock');});}),_0x289c8f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x289c8f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x289c8f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x289c8f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x289c8f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x289c8f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x143680])=>{const _0x267dc3=_0x289c8f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x13dfe6=_0x143680['start'],_0x590487=_0x143680['end'];const _0x373866=_0x32a7c1['model']['schema']['getNearestSelectionRange'](_0x13dfe6,'backward'),_0x56a0a4=_0x32a7c1['model']['schema']['getNearestSelectionRange'](_0x590487,'forward');_0x373866['isCollapsed']&&(_0x13dfe6=_0x373866['start']),_0x56a0a4['isCollapsed']&&(_0x590487=_0x56a0a4['end']),_0x267dc3([_0x32a7c1['model']['createRange'](_0x13dfe6,_0x590487)]);}),_0x289c8f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x579b37),_0x289c8f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x579b37)),_0x32a7c1['plugins']['has']('ImageCaptionEditing')&&(_0x289c8f['enableCommand']('toggleImageCaption',(_0x4376c3,_0x18c847)=>{const _0x193cc5=_0x32a7c1['plugins']['get']('ImageCaptionUtils');let _0x54363d=_0x3dd72c['getClosestSelectedImageElement'](_0x32a7c1['model']['document']['selection']),_0x98c3c6=_0x193cc5['getCaptionFromImageModelElement'](_0x54363d);_0x32a7c1['model']['change'](()=>{if(_0x98c3c6)return void _0x289c8f['markDeletion'](_0x32a7c1['model']['createRangeOn'](_0x98c3c6));const _0x35527f=_0x3dd72c['isBlockImage'](_0x54363d);_0x4376c3(_0x18c847),_0x54363d=_0x3dd72c['getClosestSelectedImageElement'](_0x32a7c1['model']['document']['selection']),_0x98c3c6=_0x193cc5['getCaptionFromImageModelElement'](_0x54363d),_0x289c8f['markInsertion'](_0x32a7c1['model']['createRangeOn'](_0x98c3c6),_0x35527f?null:'imageCaption');});}),_0x289c8f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x579b37));const _0x914cfc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7e9268(_0x2bd4d8,_0x31d845){const _0x14ca56=_0x914cfc['findIndex'](({type:_0x4cea72,subType:_0x442b33})=>_0x2bd4d8['type']==_0x4cea72&&_0x2bd4d8['subType']==_0x442b33),_0xf3d40=_0x914cfc['findIndex'](({type:_0x2a7422,subType:_0x36e1b5})=>_0x31d845['type']==_0x2a7422&&_0x31d845['subType']==_0x36e1b5);if(_0x14ca56<0x0||_0xf3d40<0x0)return!0x1;const _0x2b86ad=_0x2bd4d8['getFirstRange'](),_0x353205=_0x31d845['getFirstRange']();if((0x0==_0x14ca56||0x1==_0x14ca56)&&0x2==_0xf3d40&&_0x2b86ad['isIntersecting'](_0x353205))return!0x0;if(0x2==_0x14ca56&&0x3==_0xf3d40){const _0x1d6ecd=_0x289c8f['_findSuggestions'](_0x2b86ad,'insertion')['filter'](({suggestion:_0xbe1a4f,meta:_0x3eff42})=>_0x3eff42['isOwn']&&'convertInlineImageToBlock'==_0xbe1a4f['subType']);if(_0x1d6ecd['length']>0x1&&_0x353205['end']['isEqual'](_0x2b86ad['start']))return!0x0;if(0x1==_0x1d6ecd['length']&&(_0x2b86ad['start']['isEqual'](_0x353205['end'])||_0x2b86ad['end']['isEqual'](_0x353205['start'])))return!0x0;}if(0x3==_0x14ca56&&0x3==_0xf3d40&&_0x2b86ad['start']['isBefore'](_0x353205['start'])){const _0x162872=_0x2b86ad['end']['nodeAfter'],_0x2f9107=_0x353205['start']['nodeBefore'];return _0x3dd72c['isBlockImage'](_0x162872)&&_0x162872===_0x2f9107;}return!0x1;}function _0x579b37(_0x131fee,_0x3c6f33){return _0x7e9268(_0x131fee,_0x3c6f33)?[_0x131fee,_0x3c6f33]:_0x7e9268(_0x3c6f33,_0x131fee)?[_0x3c6f33,_0x131fee]:null;}_0x32a7c1['plugins']['has']('ImageResize')&&(_0x289c8f['enableDefaultAttributesIntegration']('resizeImage'),_0x289c8f['registerBlockAttribute']('resizedWidth'),_0x289c8f['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x5e9f81,'FORMAT_IMAGE_SIZE'))),_0x32a7c1['plugins']['has']('ImageTextAlternativeEditing')&&(_0x289c8f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x289c8f['registerBlockAttribute']('alt')),_0x32a7c1['plugins']['has']('PictureEditing')&&(_0x289c8f['registerBlockAttribute']('sources'),_0x289c8f['descriptionFactory']['registerDescriptionCallback'](_0x115dae=>{if('attribute'!=_0x115dae['type'])return;const {data:_0x1a061d}=_0x115dae;return _0x1a061d&&'sources'==_0x1a061d['key']?{'type':'format','content':''}:void 0x0;})),_0x32a7c1['plugins']['has']('ImageSizeAttributes')&&(_0x289c8f['registerBlockAttribute']('width'),_0x289c8f['registerBlockAttribute']('height'),_0x289c8f['descriptionFactory']['registerDescriptionCallback'](_0x198cc2=>{if('attribute'!=_0x198cc2['type'])return;const {data:_0x4f19d3}=_0x198cc2;return!_0x4f19d3||'width'!=_0x4f19d3['key']&&'height'!=_0x4f19d3['key']?void 0x0:{'type':'format','content':''};})),_0x289c8f['descriptionFactory']['registerDescriptionCallback'](_0x4385c2=>{if(!!_0x914cfc['find'](({type:_0x1eb096,subType:_0x1e1bac})=>_0x4385c2['type']==_0x1eb096&&_0x4385c2['subType']==_0x1e1bac))return _0x4385c2['previous']?{}:void 0x0;}),_0x289c8f['descriptionFactory']['registerDescriptionCallback'](_0x5d9cb4=>{if('insertion'==_0x5d9cb4['type']||'deletion'==_0x5d9cb4['type']){const _0x27d3dc=_0x5d9cb4['getContainedElement']();if(_0x27d3dc&&_0x27d3dc['is']('element','caption'))return{'type':'insertion'==_0x5d9cb4['type']?'addObject':'removeObject','element':_0x27d3dc,'quantity':0x1};}}),_0x289c8f['descriptionFactory']['registerDescriptionCallback'](_0x27ab38=>'formatBlock'==_0x27ab38['type']&&'convertInlineImageToBlock'==_0x27ab38['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x27ab38['type']&&'convertBlockImageToInline'==_0x27ab38['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x289c8f['descriptionFactory']['registerDescriptionCallback'](_0x371331=>{if('attribute'!=_0x371331['type'])return;const {data:_0x25cafd}=_0x371331;if(!_0x25cafd||'alt'!=_0x25cafd['key'])return;const _0x40b822=_0x25cafd['newValue'];return _0x40b822?{'type':'format','content':c(_0x5e9f81,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x40b822+'\x22')}:{'type':'format','content':c(_0x5e9f81,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x183c7e=this['editor'],_0x10ebaf=_0x183c7e['locale'];_0x183c7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bcad4=>{if('formatBlock'!=_0x3bcad4['type']&&'formatInline'!=_0x3bcad4['type'])return;const {data:_0x29e324}=_0x3bcad4;if(_0x29e324){if('imageTextAlternative'==_0x29e324['commandName']){const _0x27d56b=_0x29e324['commandParams'][0x0]['newValue'];return _0x27d56b?{'type':'format','content':c(_0x10ebaf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x27d56b+'\x22')}:{'type':'format','content':c(_0x10ebaf,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x29e324['commandName']){const _0x17978e=_0x29e324['commandParams'][0x0]['width'];return _0x17978e?{'type':'format','content':c(_0x10ebaf,'*Set\x20image\x20width:*\x20%0',_0x17978e)}:{'type':'format','content':c(_0x10ebaf,'*Reset\x20image\x20width*')};}}});}}class at extends _0x24f8b9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x9da53=this['editor']['locale'],_0x457d96=this['editor']['plugins']['get']('TrackChangesEditing');_0x457d96['enableDefaultAttributesIntegration']('replaceImageSource'),_0x457d96['registerBlockAttribute']('src'),_0x457d96['descriptionFactory']['registerDescriptionCallback'](_0xed08f3=>{if('attribute'!=_0xed08f3['type'])return;const {data:_0x51bb77}=_0xed08f3;return _0x51bb77&&'src'==_0x51bb77['key']?_0x51bb77['newValue']&&_0x51bb77['oldValue']?{'type':'format','content':c(_0x9da53,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc492c7=this['editor']['plugins']['get']('TrackChangesEditing');_0xc492c7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xc492c7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc492c7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xc492c7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27835c=this['editor'],_0x22a5d5=_0x27835c['locale'];_0x27835c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23b2fc=>{if('formatBlock'!=_0x23b2fc['type']&&'formatInline'!=_0x23b2fc['type'])return;const {data:_0x3b6829}=_0x23b2fc;if(!_0x3b6829||'replaceImageSource'!=_0x3b6829['commandName'])return;return{'type':'format','content':c(_0x22a5d5,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x24f8b9{['afterInit'](){const _0x2f963f=this['editor'];if(!_0x2f963f['plugins']['has']('ImageStyleEditing'))return;const _0x51bcf2=_0x2f963f['plugins']['get']('TrackChangesEditing'),_0x4c62d7=_0x2f963f['plugins']['get']('ImageUtils'),_0x22c465={};_0x51bcf2['enableCommand']('imageStyle',(_0x5b41e5,_0x4ab36e)=>{const _0x1ac695=_0x2f963f['plugins']['get']('Users')['me'],_0x1d0263=_0x2f963f['commands']['get']('imageStyle');let _0x353f4a=_0x4c62d7['getClosestSelectedImageElement'](_0x2f963f['model']['document']['selection']),_0x59709e=_0x2f963f['model']['createRangeOn'](_0x353f4a),_0x47b292=_0x1d0263['value'];if(_0x47b292==_0x4ab36e['value'])return;const _0x3c6697={'commandName':'imageStyle','commandParams':[_0x4ab36e],'formatGroupId':_0x3e2b49()};_0x2f963f['model']['change'](()=>{if(_0x51bcf2['getSuggestions']()['filter'](_0x1809c3=>_0x1809c3['isInContent']&&_0x1ac695==_0x1809c3['author']&&('formatBlock'==_0x1809c3['type']||'formatInline'==_0x1809c3['type'])&&('imageStylePreApply'==_0x1809c3['subType']||'imageStylePostApply'==_0x1809c3['subType'])&&_0x1809c3['getFirstRange']()['isEqual'](_0x59709e))['forEach'](_0x4e48b8=>_0x51bcf2['discardSuggestion'](_0x4e48b8['head'])),_0x353f4a=_0x4c62d7['getClosestSelectedImageElement'](_0x2f963f['model']['document']['selection']),_0x59709e=_0x2f963f['model']['createRangeOn'](_0x353f4a),_0x1d0263['refresh'](),_0x2f963f['commands']['get']('imageTypeInline')['refresh'](),_0x2f963f['commands']['get']('imageTypeBlock')['refresh'](),_0x47b292=_0x1d0263['value'],_0x47b292!=_0x4ab36e['value'])return _0x4c62d7['isInlineImage'](_0x353f4a)&&_0x1d0263['shouldConvertImageType'](_0x4ab36e['value'],_0x353f4a)?(_0x5b41e5({..._0x4ab36e,'setImageSizes':!0x1}),_0x353f4a=_0x4c62d7['getClosestSelectedImageElement'](_0x2f963f['model']['document']['selection']),void _0x51bcf2['markBlockFormat'](_0x353f4a,{..._0x3c6697,'commandReversedParams':[{'value':_0x47b292||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4c62d7['isBlockImage'](_0x353f4a)?_0x51bcf2['markBlockFormat'](_0x353f4a,_0x3c6697,[],'imageStylePostApply'):_0x51bcf2['markInlineFormat'](_0x59709e,_0x3c6697,'imageStylePostApply'));});});for(const _0x4d5f11 of _0x2f963f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x22c465[_0x4d5f11['name']]=_0x4d5f11['title']['toLowerCase']();_0x51bcf2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x51bcf2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x51bcf2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x51bcf2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4a48e8])=>{_0x4c62d7['setImageNaturalSizeAttributes'](_0x4a48e8['getContainedElement']());}),_0x51bcf2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xcd9324,_0xb4e329)=>{_0x51bcf2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xcd9324,{'commandName':_0xb4e329['commandName'],'commandParams':_0xb4e329['commandReversedParams']});}),_0x51bcf2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5deb11,_0x1a508f){if(_0x26597d(_0x5deb11,_0x1a508f))return[_0x5deb11,_0x1a508f];if(_0x26597d(_0x1a508f,_0x5deb11))return[_0x1a508f,_0x5deb11];return null;});const _0x3b5add=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x26597d(_0xf57fd2,_0x3479c8){const _0x214e73=_0x3b5add['findIndex'](({type:_0x247b8b,subType:_0x4efe39})=>_0xf57fd2['type']==_0x247b8b&&_0xf57fd2['subType']==_0x4efe39),_0x767077=_0x3b5add['findIndex'](({type:_0x4386a4,subType:_0x560810})=>_0x3479c8['type']==_0x4386a4&&_0x3479c8['subType']==_0x560810);if(_0x214e73<0x0||_0x767077<0x0)return!0x1;const _0x1a9b0c=_0xf57fd2['getFirstRange'](),_0x5e1af2=_0x3479c8['getFirstRange']();if((0x0==_0x214e73||0x1==_0x214e73)&&0x2==_0x767077&&_0x1a9b0c['isIntersecting'](_0x5e1af2))return!0x0;if(0x2==_0x214e73&&0x3==_0x767077){const _0x140154=_0x51bcf2['_findSuggestions'](_0x1a9b0c,'insertion')['filter'](({suggestion:_0x4be39f,meta:_0x52678d})=>_0x52678d['isOwn']&&'convertInlineImageToBlock'==_0x4be39f['subType']);if(_0x140154['length']>0x1&&_0x5e1af2['end']['isEqual'](_0x1a9b0c['start']))return!0x0;if(0x1==_0x140154['length']&&(_0x1a9b0c['start']['isEqual'](_0x5e1af2['end'])||_0x1a9b0c['end']['isEqual'](_0x5e1af2['start'])))return!0x0;}if(0x3==_0x214e73&&0x3==_0x767077&&_0x1a9b0c['start']['isBefore'](_0x5e1af2['start'])){const _0x27dcf2=_0x1a9b0c['end']['nodeAfter'],_0x257d88=_0x5e1af2['start']['nodeBefore'];return _0x4c62d7['isBlockImage'](_0x27dcf2)&&_0x27dcf2===_0x257d88;}return!0x1;}_0x2f963f['model']['document']['registerPostFixer'](()=>{let _0x3d8c24=!0x1;const _0x53b61d=Array['from'](_0x2f963f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x77d7b,data:_0x134ddf}of _0x53b61d){const {group:_0x35cc07,type:_0x4164f1,subType:_0xbcf965,id:_0x2b0c1f}=_0x51bcf2['_splitMarkerName'](_0x77d7b);if('suggestion'==_0x35cc07&&_0x51bcf2['hasSuggestion'](_0x2b0c1f)){if('formatBlock'==_0x4164f1&&('imageStylePreApply'==_0xbcf965||'imageStylePostApply'==_0xbcf965)){const _0x4d428b=_0x51bcf2['getSuggestion'](_0x2b0c1f);if(_0x134ddf['newRange']){const _0x37f582=_0x4d428b['getFirstRange']()['getContainedElement']();if(_0x4c62d7['isBlockImage'](_0x37f582))continue;_0x51bcf2['discardSuggestion'](_0x4d428b),_0x3d8c24=!0x0;}}if('insertion'==_0x4164f1&&'imageCaption'==_0xbcf965&&!_0x134ddf['newRange']){const _0x4ef79d=_0x51bcf2['getSuggestion'](_0x2b0c1f);_0x4ef79d['next']&&_0x4ef79d['next']['isInContent']&&(_0x51bcf2['discardSuggestion'](_0x4ef79d['next']),_0x3d8c24=!0x0);}}}return _0x3d8c24;}),this['_registerLegacyDescription'](_0x22c465);}['_registerLegacyDescription'](_0x22b802){const _0x114d70=this['editor'],_0x5387d4=_0x114d70['locale'];_0x114d70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x129903=>{if('formatBlock'!=_0x129903['type']&&'formatInline'!=_0x129903['type'])return;const {data:_0x182b66}=_0x129903;if(!_0x182b66||'imageStyle'!=_0x182b66['commandName'])return;const _0x2745aa=_0x182b66['commandParams'][0x0]['value'];return _0x4a51a8('side'===_0x2745aa?c(_0x5387d4,'FORMAT_SIDE_IMAGE'):_0x22b802[_0x2745aa]||_0x2745aa);function _0x4a51a8(_0x21d079){return{'type':'format','content':c(_0x5387d4,'*Format:*\x20%0',_0x21d079)};}});}}class ut extends _0x24f8b9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x16957e){super(_0x16957e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x203c94=this['editor'],_0x27571e=_0x203c94['commands']['get']('importWord'),_0x49a5dc=_0x203c94['commands']['get']('trackChanges');_0x27571e&&(_0x27571e['on']('execute',(_0x5a7c75,[,_0x5a421d])=>{this['_trackChangesValueDuringImport']=_0x49a5dc['value'],_0x5a421d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x27571e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x27571e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x49a5dc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x203c94['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5f499c,_0x45dad2){const {suggestions:_0x4c99bc}=_0x45dad2,_0x322176=this['editor']['commands']['get']('trackChanges'),_0x199638=_0x322176['value'];this['_trackChangesValueDuringImport']!==_0x199638&&(_0x322176['execute'](),this['_trackChangesExecuted']=!0x0),_0x4c99bc&&_0x4c99bc['forEach'](({id:_0x24e2b5,type:_0x1e81b9,author:_0x199a3b,created_at:_0x208f73})=>{const _0x160d34={'id':_0x24e2b5,'type':_0x1e81b9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x199a3b,'createdAt':_0x208f73?new Date(_0x208f73):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x160d34);});}}class ft extends _0x24f8b9{['afterInit'](){const _0x2e02e9=this['editor'],_0x2f5a5d=_0x2e02e9['plugins']['get']('TrackChangesEditing');if(_0x2e02e9['plugins']['has']('IndentEditing')&&(_0x2f5a5d['enableCommand']('indent'),_0x2f5a5d['enableCommand']('outdent')),_0x2e02e9['plugins']['has']('IndentBlock')){for(const _0x4fb23f of['indentBlock','outdentBlock'])_0x2f5a5d['enableDefaultAttributesIntegration'](_0x4fb23f);}const _0x4c54d4=_0x2e02e9['locale'];_0x2f5a5d['registerBlockAttribute']('blockIndent'),_0x2f5a5d['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x4c54d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a0608=this['editor'],_0xbde05a=_0x3a0608['locale'],_0x172191=_0x3a0608['plugins']['get']('TrackChangesEditing');_0x172191['descriptionFactory']['registerDescriptionCallback'](_0x13305a=>{if('formatBlock'!=_0x13305a['type'])return;const {data:_0x2c734a}=_0x13305a;if(!_0x2c734a)return;if('indentBlock'!=_0x2c734a['commandName']&&'outdentBlock'!=_0x2c734a['commandName'])return;const _0x237008=_0x13305a['getItems']()[0x0],_0x1bfaef=_0x172191['descriptionFactory']['getItemLabel'](_0x237008);return'indentBlock'==_0x2c734a['commandName']?{'type':'format','content':c(_0xbde05a,'*Indent:*\x20%0',_0x1bfaef)}:'outdentBlock'==_0x2c734a['commandName']?{'type':'format','content':c(_0xbde05a,'*Outdent:*\x20%0',_0x1bfaef)}:void 0x0;});}}class ht extends _0x24f8b9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x24f8b9{['afterInit'](){const _0x1786f2=this['editor'];if(!_0x1786f2['plugins']['has']('LinkEditing'))return;const _0x462354=_0x1786f2['plugins']['get']('TrackChangesEditing'),_0x2d3a32=_0x1786f2['commands']['get']('link');_0x462354['enableDefaultAttributesIntegration']('link'),_0x462354['enableDefaultAttributesIntegration']('unlink'),_0x462354['registerInlineAttribute']('linkHref');for(const _0x53fc56 of _0x2d3a32['manualDecorators'])_0x462354['registerInlineAttribute'](_0x53fc56['id']),_0x462354['descriptionFactory']['registerAttributeLabel'](_0x53fc56['id'],'link\x20('+_0x53fc56['label']['toLowerCase']()+')');_0x462354['descriptionFactory']['registerDescriptionCallback'](_0x14c180=>{if('attribute'!=_0x14c180['type'])return;const {data:_0x96c4fe}=_0x14c180;if(!_0x96c4fe||'linkHref'!=_0x96c4fe['key'])return;const _0x3b651a=_0x96c4fe['newValue'],_0x3b29bf=_0x1786f2['locale'];return{'type':'format','content':null==_0x3b651a?c(_0x3b29bf,'*Remove\x20link*'):c(_0x3b29bf,'*Set\x20link:*\x20%0','\x22'+_0x3b651a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3728bb=this['editor'],_0x46ccb1=_0x3728bb['locale'];_0x3728bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f2ec5=>{if('formatInline'!=_0x2f2ec5['type'])return;const {data:_0x190d09}=_0x2f2ec5;if(_0x190d09){if('link'==_0x190d09['commandName']){const _0x41076e=_0x190d09['commandParams'][0x0];return{'type':'format','content':c(_0x46ccb1,'*Set\x20link:*\x20%0','\x22'+_0x41076e+'\x22')};}return'unlink'==_0x190d09['commandName']?{'type':'format','content':c(_0x46ccb1,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x24f8b9{['afterInit'](){const _0x1b6e30=this['editor'],_0x39cb5f=_0x1b6e30['locale'];if(!_0x1b6e30['plugins']['has']('LegacyListEditing'))return;const _0x4bbaa1=_0x1b6e30['plugins']['get']('TrackChangesEditing'),_0x2232e6=_0x1b6e30['plugins']['has']('LegacyTodoListEditing');function _0x186796(_0x11bcf6){return()=>{const _0xc2943=_0x1b6e30['model']['document']['selection'],_0x52aa28=_0x1b6e30['commands']['get'](_0x11bcf6);if(_0x52aa28['value'])return void _0x1b6e30['execute']('paragraph',{});const _0x2d3cc3=_0x11bcf6['slice'](0x0,-0x4),_0x262980=function(_0x11de2f,_0x330f03,_0x56fcc7){let _0x529514=Array['from'](_0x11de2f)['filter'](_0x40f3c3=>function(_0x1b5e0c,_0x2048f2){return _0x2048f2['checkChild'](_0x1b5e0c['parent'],'listItem')&&!_0x2048f2['isObject'](_0x1b5e0c);}(_0x40f3c3,_0x56fcc7));_0x529514=_0x529514['filter'](_0xed22a=>!_0xed22a['is']('element','listItem')||_0xed22a['getAttribute']('listType')!=_0x330f03);const _0x153e11=new Set();for(const _0x3dd90 of _0x529514)_0x3dd90['is']('element','listItem')?_0x153e11['add'](Le(_0x3dd90)):_0x153e11['add'](_0x3dd90);return Array['from'](_0x153e11);}(_0xc2943['getSelectedBlocks'](),_0x2d3cc3,_0x1b6e30['model']['schema']);_0x1b6e30['model']['change'](()=>{for(const _0x5f1b16 of _0x262980)_0x4bbaa1['markBlockFormat'](_0x5f1b16,{'commandName':_0x11bcf6,'commandParams':[{'forceValue':!_0x52aa28['value']}],'formatGroupId':'blockName'},Ee(_0x5f1b16));});};}function _0xae3934(_0x4f51d0){return()=>{const _0x4d36aa=function(_0x5bd8e7){let _0x42f3b6=Array['from'](_0x5bd8e7);const _0x16ac62=_0x42f3b6['findIndex'](_0x1e8d30=>'listItem'!=_0x1e8d30['name']);return _0x16ac62>-0x1&&(_0x42f3b6=_0x42f3b6['slice'](0x0,_0x16ac62)),_0x42f3b6;}(_0x1b6e30['model']['document']['selection']['getSelectedBlocks']()),_0x1cc449=_0x1b6e30['model']['createRange'](_0x1b6e30['model']['createPositionAt'](_0x4d36aa[0x0],'before'),_0x1b6e30['model']['createPositionAt'](_0x4d36aa[_0x4d36aa['length']-0x1],'end'));_0x1b6e30['model']['change'](()=>{_0x4bbaa1['markBlockFormat'](_0x1cc449,{'commandName':_0x4f51d0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x202865){const _0x33ef54=new Set();for(const _0xf0215e of _0x202865){let _0x1ef1b3=_0xf0215e['nextSibling'];for(;_0x1ef1b3&&_0x1ef1b3['getAttribute']('listIndent')>_0xf0215e['getAttribute']('listIndent');)_0x33ef54['add'](_0x1ef1b3),_0x1ef1b3=_0x1ef1b3['nextSibling'];}return Array['from'](_0x33ef54);}(_0x4d36aa));});};}_0x4bbaa1['enableCommand']('numberedList',_0x186796('numberedList')),_0x4bbaa1['enableCommand']('bulletedList',_0x186796('bulletedList')),_0x2232e6&&_0x4bbaa1['enableCommand']('todoList',_0x186796('todoList')),_0x4bbaa1['enableCommand']('indentList',_0xae3934('indentList')),_0x4bbaa1['enableCommand']('outdentList',_0xae3934('outdentList')),_0x2232e6&&_0x4bbaa1['enableCommand']('checkTodoList',()=>{const _0x26a2a8=_0x1b6e30['commands']['get']('checkTodoList'),_0x492d95=Array['from'](_0x26a2a8['_selectedElements']);_0x492d95['filter'](_0x257269=>_0x257269['getAttribute']('todoListChecked')!=_0x26a2a8['value']),_0x1b6e30['model']['change'](()=>{for(const _0x2a93a5 of _0x492d95)_0x4bbaa1['markBlockFormat'](_0x2a93a5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x26a2a8['value']}]});});}),_0x4bbaa1['descriptionFactory']['registerElementLabel']('listItem',_0xd28117=>c(_0x39cb5f,'ELEMENT_LIST_ITEM',_0xd28117)),_0x4bbaa1['descriptionFactory']['registerDescriptionCallback'](_0x43a41a=>{if('formatBlock'!=_0x43a41a['type']&&'formatInline'!=_0x43a41a['type'])return;const {data:_0x3ab21f}=_0x43a41a;if(_0x3ab21f){if('numberedList'==_0x3ab21f['commandName']||'bulletedList'==_0x3ab21f['commandName']||'todoList'==_0x3ab21f['commandName'])switch(_0x3ab21f['commandName']['replace']('List','')){case'bulleted':return _0x21fc51(c(_0x39cb5f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x21fc51(c(_0x39cb5f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x21fc51(c(_0x39cb5f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3ab21f['commandName'])return{'type':'format','content':c(_0x39cb5f,'*Indent:*\x20%0',c(_0x39cb5f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3ab21f['commandName'])return{'type':'format','content':c(_0x39cb5f,'*Outdent:*\x20%0',c(_0x39cb5f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3ab21f['commandName'])return _0x3ab21f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x39cb5f,'*Check\x20item*')}:{'type':'format','content':c(_0x39cb5f,'*Uncheck\x20item*')};}function _0x21fc51(_0x5aea4e){return{'type':'format','content':c(_0x39cb5f,'*Change\x20to:*\x20%0',_0x5aea4e)};}});}}function Le(_0x108496){const _0x23c7f2=_0x108496['getAttribute']('listIndent');if(0x0==_0x23c7f2)return _0x108496;let _0x29e5cb=_0x108496;for(;_0x108496['previousSibling']&&_0x108496['previousSibling']['is']('element','listItem');){const _0x2639eb=_0x108496['previousSibling']['getAttribute']('listIndent');if(_0x2639eb==_0x23c7f2)_0x29e5cb=_0x108496['previousSibling'];else{if(_0x2639eb<_0x23c7f2)break;}_0x108496=_0x108496['previousSibling'];}return _0x29e5cb;}function Ee(_0x4e9443){const _0x2be6eb=[];if(_0x4e9443['is']('element','listItem')&&_0x4e9443['getAttribute']('listIndent')>0x0){let _0x1e2872=_0x4e9443['nextSibling'];for(;_0x1e2872&&'listItem'==_0x1e2872['name']&&_0x1e2872['getAttribute']('listIndent')==_0x4e9443['getAttribute']('listIndent');)_0x2be6eb['push'](_0x1e2872),_0x1e2872=_0x1e2872['nextSibling'];}return _0x2be6eb;}class Q extends _0x24f8b9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5344a9=this['editor']['config']['get']('list.properties'),_0x554864=this['editor']['plugins']['get']('TrackChangesEditing');_0x5344a9['styles']&&_0x554864['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5344a9['reversed']&&_0x554864['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5344a9['startIndex']&&_0x554864['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x554864['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5089c4,_0x43bad={}){const _0x2f9705=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a948c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2f9705['markMultiRangeBlockFormat'](_0x5a948c,{'commandName':'listStyle','commandParams':[{'type':_0x43bad['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x38e36b,_0x525b7b={}){const _0x25a967=this['editor']['plugins']['get']('TrackChangesEditing'),_0x432f9e=this['_getSuggestionBlocks'](_0x46bab5=>_0x46bab5['is']('element','listItem')&&'numbered'===_0x46bab5['getAttribute']('listType'));if(_0x432f9e['length']<0x1)return;const _0x5a2605=_0x432f9e['map'](_0x32ef8a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32ef8a,'before'),this['editor']['model']['createPositionAt'](_0x32ef8a,0x0)));this['editor']['model']['change'](()=>{_0x25a967['markMultiRangeBlockFormat'](_0x5a2605,{'commandName':'listReversed','commandParams':[{'reversed':_0x525b7b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x247ff4,_0x458821={}){const _0x5c5935=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36c87e=this['_getSuggestionBlocks'](_0x2f6419=>_0x2f6419['is']('element','listItem')&&'numbered'===_0x2f6419['getAttribute']('listType'));if(_0x36c87e['length']<0x1)return;const _0x17cbf7=_0x36c87e['map'](_0x1c5e05=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c5e05,'before'),this['editor']['model']['createPositionAt'](_0x1c5e05,0x0)));this['editor']['model']['change'](()=>{_0x5c5935['markMultiRangeBlockFormat'](_0x17cbf7,{'commandName':'listStart','commandParams':[{'startIndex':_0x458821['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2f9d20){if('formatBlock'!=_0x2f9d20['type']&&'formatInline'!=_0x2f9d20['type'])return;const _0x12c1e4=this['editor']['locale'],{data:_0x5a2d6a}=_0x2f9d20;if(!_0x5a2d6a)return;let _0x21bcb5,_0x3be652;switch(_0x5a2d6a['commandName']){case'listStyle':_0x21bcb5='*Change\x20to:*\x20%0',_0x3be652={'type':'format','content':c(_0x12c1e4,_0x21bcb5,c(_0x12c1e4,this['_getTranslationKeyForListStyle'](_0x5a2d6a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21bcb5=_0x5a2d6a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3be652={'type':'format','content':c(_0x12c1e4,_0x21bcb5)};break;case'listStart':_0x21bcb5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3be652={'type':'format','content':c(_0x12c1e4,_0x21bcb5,_0x5a2d6a['commandParams'][0x0]['startIndex'])};}return _0x3be652;}['_getSuggestionBlocksForListStyle'](){const _0x2680a2=this['editor']['plugins']['get']('LegacyListUtils');let _0x466b0b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x466b0b[0x0]?.['is']('element','listItem')&&_0x466b0b['unshift'](..._0x2680a2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x466b0b[_0x466b0b['length']-0x1]?.['is']('element','listItem')&&_0x466b0b['push'](..._0x2680a2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x466b0b=[...new Set(_0x466b0b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x466b0b=_0x466b0b['filter'](_0x437d89=>_0x437d89['is']('element','listItem'))),_0x466b0b;}['_getSuggestionBlocks'](_0x3ecd8c){const _0x110b21=this['editor']['plugins']['get']('LegacyListUtils');let _0xc5cef5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3ecd8c)['map'](_0x36df6e=>{const _0x3ce40f=this['editor']['model']['createPositionAt'](_0x36df6e,0x0);return[..._0x110b21['getSiblingNodes'](_0x3ce40f,'backward'),..._0x110b21['getSiblingNodes'](_0x3ce40f,'forward')];})['flat']();return _0xc5cef5=[...new Set(_0xc5cef5)],_0xc5cef5;}['_getTranslationKeyForListStyle'](_0x249196){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x249196)||'default')['toUpperCase']()+'_LIST_'+_0x249196['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x24f8b9{['afterInit'](){const _0x2653b5=this['editor'];if(!_0x2653b5['plugins']['has']('MediaEmbedEditing'))return;const _0x3ceace=_0x2653b5['plugins']['get']('TrackChangesEditing'),_0x432420=_0x2653b5['locale'];_0x3ceace['enableCommand']('mediaEmbed'),_0x3ceace['descriptionFactory']['registerElementLabel']('media',_0x4b084a=>c(_0x432420,'ELEMENT_MEDIA',_0x4b084a)),_0x2653b5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x31b9f5,{writer:_0xc20a86,options:_0x2798f4})=>{if(_0x2798f4['showSuggestionHighlights'])return _0xc20a86['createEmptyElement']('div');},'converterPriority':'high'}),_0x2653b5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x12ddd9,_0x1ae7da,_0x2f2dad)=>{_0x2f2dad['options']['showSuggestionHighlights']&&_0x12ddd9['stop']();},{'priority':'high'});}}class pt extends _0x24f8b9{['afterInit'](){const _0x5428aa=this['editor'];_0x5428aa['plugins']['has']('MentionEditing')&&_0x5428aa['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x24f8b9{['afterInit'](){const _0x5d6b3f=this['editor'];if(!_0x5d6b3f['plugins']['has']('MergeFieldsEditing'))return;const _0x53a7c4=_0x5d6b3f['plugins']['get']('TrackChangesEditing'),_0x189761=_0x5d6b3f['locale'];_0x53a7c4['enableCommand']('insertMergeField'),_0x53a7c4['enableCommand']('insertMergeFieldBlock'),_0x53a7c4['enableCommand']('insertMergeFieldImage'),_0x53a7c4['descriptionFactory']['registerElementLabel']('mergeField',_0x179eeb=>c(_0x189761,'ELEMENT_MERGE_FIELD',_0x179eeb)),_0x53a7c4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bf8ae=>c(_0x189761,'ELEMENT_MERGE_FIELD',_0x2bf8ae)),_0x53a7c4['descriptionFactory']['registerDescriptionCallback'](_0x2c001e=>{if('insertion'!=_0x2c001e['type']&&'deletion'!=_0x2c001e['type'])return;const _0x1beb0f=_0x2c001e['getContainedElement']();if(null==_0x1beb0f)return;const _0x120355=_0x5d6b3f['plugins']['get']('MergeFieldsEditing');let _0xeab298;switch(_0x120355['getMergeFieldType'](_0x1beb0f)){case null:return;case'image':{const _0x3c867c=_0x120355['unwrapAffixes'](_0x1beb0f['getAttribute']('src'));_0xeab298=_0x120355['getLabel'](_0x3c867c)||_0x3c867c;break;}default:{const _0xb9dd91=_0x1beb0f['getAttribute']('id');_0xeab298=_0x120355['getLabel'](_0xb9dd91)||_0xb9dd91;break;}}return'insertion'==_0x2c001e['type']?{'type':'insertion','content':c(_0x189761,'*Insert:*\x20%0','\x22'+_0xeab298+'\x22\x20'+c(_0x189761,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x189761,'*Remove:*\x20%0','\x22'+_0xeab298+'\x22\x20'+c(_0x189761,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x24f8b9{['afterInit'](){const _0x561b20=this['editor'],_0x4a395f=_0x561b20['plugins']['get']('TrackChangesEditing');_0x561b20['plugins']['has']('MultiLevelList')&&(_0x4a395f['enableDefaultAttributesIntegration']('multiLevelList'),_0x4a395f['registerBlockAttribute']('listMarkerStyle'),_0x4a395f['descriptionFactory']['registerDescriptionCallback'](_0x2a3f49=>this['handleDescriptions'](_0x2a3f49)));}['handleDescriptions'](_0x4986de){const _0x7d31e0=this['editor']['locale'],{data:_0x43b41c}=_0x4986de,_0x3086f9={'type':'format','content':''};if(_0x43b41c&&'listMarkerStyle'==_0x43b41c['key']){if(!_0x43b41c['oldValue'])return{'type':'format','content':c(_0x7d31e0,'*Set\x20format:*\x20%0',c(_0x7d31e0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x43b41c['newValue']+')'};if(!_0x43b41c['newValue']){let _0x1c86be=_0x4986de['head'];for(;_0x1c86be;){if(_0x1c86be['data']&&'listType'==_0x1c86be['data']['key']&&_0x1c86be['data']['newValue'])return _0x3086f9;_0x1c86be=_0x1c86be['next'];}return{'type':'format','content':c(_0x7d31e0,'*Remove\x20format:*\x20%0',c(_0x7d31e0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x43b41c['oldValue']+')'};}}}}class bt extends _0x24f8b9{['afterInit'](){const _0x5d0f7a=this['editor'];if(!_0x5d0f7a['plugins']['has']('PageBreakEditing'))return;_0x5d0f7a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3ac6ef=_0x5d0f7a['plugins']['get']('TrackChangesEditing'),_0xfeb1c0=_0x5d0f7a['locale'];_0x3ac6ef['descriptionFactory']['registerElementLabel']('pageBreak',_0x1553c8=>c(_0xfeb1c0,'ELEMENT_PAGE_BREAK',_0x1553c8));}}class yt extends _0x24f8b9{['afterInit'](){const _0x4008ed=this['editor'];if(!_0x4008ed['plugins']['has']('Paragraph'))return;const _0x10d492=_0x4008ed['locale'],_0x1cc2d8=_0x4008ed['plugins']['get']('TrackChangesEditing');_0x1cc2d8['descriptionFactory']['registerElementLabel']('paragraph',_0x59a512=>c(_0x10d492,'ELEMENT_PARAGRAPH',_0x59a512)),_0x1cc2d8['enableDefaultAttributesIntegration']('paragraph'),_0x1cc2d8['enableCommand']('insertParagraph'),_0x4008ed['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4008ed),{'priority':'highest'}),_0x4008ed['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x364b7d,_0x58e829,_0x308125)=>{_0x308125['options']['showSuggestionHighlights']&&nr(_0x4008ed,{'showActiveMarker':!0x1})(_0x364b7d,_0x58e829,_0x308125);},{'priority':'highest'});const _0x987f92=_0x1cc2d8['descriptionFactory'];_0x987f92['registerDescriptionCallback'](_0x35d65d=>{if('insertion'!==_0x35d65d['type'])return;const {start:_0xe82118,end:_0x3a98cb}=_0x35d65d['getFirstRange']();if(!_0xe82118['isTouching'](_0x3a98cb)||!_0xe82118['nodeAfter'])return;const _0x4323e7=_0x4008ed['model']['schema'],_0x731093=_0xe82118['nodeAfter'];return _0x4323e7['isBlock'](_0x731093)&&!_0x4323e7['isLimit'](_0x731093)&&_0x4323e7['checkChild'](_0x731093,'$text')?{'type':'insertion','content':c(_0x10d492,'*Insert:*\x20%0',_0x987f92['getItemLabel'](_0x731093,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fd945=this['editor'],_0x5b3b27=_0x1fd945['locale'];_0x1fd945['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f3128=>{if('formatBlock'!=_0x3f3128['type'])return;const {data:_0x126a68}=_0x3f3128;return _0x126a68&&'paragraph'==_0x126a68['commandName']?{'type':'format','content':c(_0x5b3b27,'*Change\x20to:*\x20%0',c(_0x5b3b27,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2701a6,{showActiveMarker:_0x288549=!0x0}={}){return(_0x338410,_0x23f5a5,_0x186982)=>{const _0x2ffd95=_0x2701a6['plugins']['get']('TrackChangesEditing'),_0x58cad9=_0x23f5a5['markerRange']['start'],_0x5024fe=_0x23f5a5['markerRange']['end'],_0xe075fd=_0x2701a6['model']['schema'];if(!_0x58cad9['isTouching'](_0x5024fe)||!_0x58cad9['nodeAfter'])return;const _0x16e6aa=_0x58cad9['nodeAfter'];if(_0xe075fd['isBlock'](_0x16e6aa)&&!_0xe075fd['isLimit'](_0x16e6aa)&&_0xe075fd['checkChild'](_0x16e6aa,'$text')){if(!_0x186982['consumable']['consume'](_0x23f5a5['markerRange'],_0x338410['name']))return;const {authorId:_0x16e843}=_0x2ffd95['_splitMarkerName'](_0x23f5a5['markerName']),_0x1031bd=_0x186982['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x16e843}),_0xec4fbd=_0x186982['mapper']['toViewPosition'](_0x5024fe);_0x288549&&_0x2ffd95['activeMarkers']['includes'](_0x23f5a5['markerName'])&&_0x186982['writer']['addClass']('ck-suggestion-marker--active',_0x1031bd),_0x186982['writer']['insert'](_0xec4fbd,_0x1031bd),_0x186982['mapper']['bindElementToMarker'](_0x1031bd,_0x23f5a5['markerName']);}};}class jt extends _0x24f8b9{['afterInit'](){const _0x6b23c6=this['editor'];_0x6b23c6['commands']['get']('replaceSource')&&_0x6b23c6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x24f8b9{['afterInit'](){const _0x28ad4a=this['editor'];if(!_0x28ad4a['plugins']['has']('RemoveFormatEditing'))return;_0x28ad4a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x271c63=this['editor'];_0x271c63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d7c0c=>{if('formatBlock'!=_0x2d7c0c['type']&&'formatInline'!=_0x2d7c0c['type'])return;const {data:_0x420449}=_0x2d7c0c;return _0x420449&&'removeFormat'==_0x420449['commandName']?{'type':'format','content':c(_0x271c63['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x24f8b9{['afterInit'](){const _0x2ca757=this['editor'];if(!_0x2ca757['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x32c0d9=_0x2ca757['plugins']['get']('TrackChangesEditing');_0x32c0d9['enableCommand']('goToPreviousRestrictedEditingException'),_0x32c0d9['enableCommand']('goToNextRestrictedEditingException');const _0x557870=_0x2ca757['plugins']['get']('RestrictedEditingModeEditing');_0x557870['enableCommand']('trackChanges'),_0x557870['enableCommand']('acceptSuggestion'),_0x557870['enableCommand']('discardSuggestion'),_0x557870['enableCommand']('acceptAllSuggestions'),_0x557870['enableCommand']('discardAllSuggestions'),_0x557870['enableCommand']('acceptSelectedSuggestions'),_0x557870['enableCommand']('discardSelectedSuggestions');}}class It extends _0x24f8b9{static get['requires'](){return[_0x3846f6];}['init'](){const _0xc83513=this['editor'],_0x35e282=_0xc83513['plugins']['get']('TrackChangesEditing');_0x35e282['enableCommand']('shiftEnter'),_0xc83513['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xc83513),{'priority':'high'}),_0xc83513['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xc83513),{'priority':'high'}),_0xc83513['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x26e5c2,_0x530fd7,_0x2ca00a)=>{_0x2ca00a['options']['showSuggestionHighlights']&&je(_0xc83513,{'showActiveMarker':!0x1})(_0x26e5c2,_0x530fd7,_0x2ca00a);}),_0x35e282['descriptionFactory']['registerElementLabel']('softBreak',_0xec2a1a=>c(_0xc83513['locale'],'ELEMENT_LINE_BREAK',_0xec2a1a));}}function je(_0x176842,{showActiveMarker:_0x4a12a3=!0x0}={}){return(_0x2c9caf,_0x2aefdd,_0x16f487)=>{const _0x5ccd7a=_0x176842['plugins']['get']('TrackChangesEditing');if(!_0x16f487['consumable']['test'](_0x2aefdd['markerRange'],_0x2c9caf['name']))return;const _0x1abb47=_0x176842['model'];for(const _0x4211f7 of _0x2aefdd['markerRange']['getItems']()){if(!_0x4211f7['is']('element','softBreak'))continue;const _0x5c8cc8='deletion'==_0x2aefdd['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1c3958}=_0x5ccd7a['_splitMarkerName'](_0x2aefdd['markerName']),_0x423306=_0x16f487['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c8cc8,'data-author-id':_0x1c3958}),_0x839ce6=_0x16f487['mapper']['toViewPosition'](_0x1abb47['createPositionBefore'](_0x4211f7));_0x4a12a3&&_0x5ccd7a['activeMarkers']['includes'](_0x2aefdd['markerName'])&&_0x16f487['writer']['addClass']('ck-suggestion-marker--active',_0x423306),_0x16f487['writer']['insert'](_0x839ce6,_0x423306),_0x16f487['mapper']['bindElementToMarker'](_0x423306,_0x2aefdd['markerName']);}};}class _t extends _0x24f8b9{['afterInit'](){const _0x3f572c=this['editor'],_0x5bf46d=_0x3f572c['model'],_0x5bb67b=_0x3f572c['locale'];if(!_0x3f572c['plugins']['has']('StandardEditingModeEditing'))return;const _0x2aade6=_0x3f572c['plugins']['get']('TrackChangesEditing'),_0x7a8789='restrictedEditingException',_0x1bca30=_0x3f572c['commands']['get'](_0x7a8789);_0x2aade6['enableCommand'](_0x7a8789,(_0x3961b2,_0x5e9fb6={})=>{const _0x416411=_0x5bf46d['document']['selection'];if(_0x416411['isCollapsed'])return void _0x3961b2(_0x5e9fb6);const _0x3e51d6=void 0x0!==_0x5e9fb6['forceValue']?_0x5e9fb6['forceValue']:!_0x1bca30['value'];_0x5bf46d['change'](()=>{const _0x1151f1=Array['from'](_0x416411['getRanges']());for(const _0x39bb26 of _0x1151f1){const _0x2fa787=_0x3e51d6?[_0x39bb26]:io(_0x7a8789,_0x39bb26,_0x5bf46d);for(const _0x3c9978 of _0x2fa787)_0x2aade6['markInlineFormat'](_0x3c9978,{'commandName':_0x7a8789,'commandParams':[{'forceValue':_0x3e51d6}]});}});}),_0x2aade6['descriptionFactory']['registerDescriptionCallback'](_0xef0ae7=>{if('formatBlock'!=_0xef0ae7['type']&&'formatInline'!=_0xef0ae7['type'])return;const {data:_0x171b7c}=_0xef0ae7;return _0x171b7c&&_0x171b7c['commandName']==_0x7a8789?_0x171b7c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5bb67b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x5bb67b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x24f8b9{['afterInit'](){const _0x5cf8b9=this['editor'];if(!_0x5cf8b9['plugins']['has']('Style')||!_0x5cf8b9['plugins']['has']('DataSchema'))return;const _0x380f6e=_0x5cf8b9['plugins']['get']('TrackChangesEditing'),_0x20d405=_0x5cf8b9['locale'],_0x3b7be7=_0x5cf8b9['config']['get']('style')||{},_0x51697e=_0x5cf8b9['plugins']['get']('GeneralHtmlSupport'),_0x9daa17=_0x5cf8b9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5cf8b9['plugins']['get']('DataSchema'),_0x3b7be7['definitions']);_0x380f6e['enableDefaultAttributesIntegration']('style');const _0x2a2b44=new Set();for(const _0x4f3be5 of _0x9daa17['block']){const _0x279e26=_0x51697e['getGhsAttributeNameForElement'](_0x4f3be5['element']);_0x2a2b44['add'](_0x279e26);}const _0x56006b=new Set();for(const _0x1a7a04 of _0x9daa17['inline']){const _0x463d0a=_0x51697e['getGhsAttributeNameForElement'](_0x1a7a04['element']);_0x56006b['add'](_0x463d0a);for(const _0x50456f of _0x1a7a04['ghsAttributes'])_0x56006b['add'](_0x50456f);}for(const _0x4e100d of _0x2a2b44)_0x380f6e['registerBlockAttribute'](_0x4e100d),_0x380f6e['descriptionFactory']['registerAttributeLabel'](_0x4e100d,c(_0x20d405,'FORMAT_STYLE'));for(const _0x437bb8 of _0x56006b)_0x380f6e['registerInlineAttribute'](_0x437bb8),_0x380f6e['descriptionFactory']['registerAttributeLabel'](_0x437bb8,c(_0x20d405,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24e9b6=this['editor'],_0x510818=_0x24e9b6['locale'];_0x24e9b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5090e0=>{if('formatBlock'!=_0x5090e0['type']&&'formatInline'!=_0x5090e0['type'])return;const {data:_0x143e7f}=_0x5090e0;return _0x143e7f&&'style'===_0x143e7f['commandName']?_0x143e7f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x510818,'*Set\x20format:*\x20%0',_0x143e7f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x510818,'*Remove\x20format:*\x20%0',_0x143e7f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x24f8b9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2328a6){super(_0x2328a6),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1772da=this['editor'],_0xe11df6=_0x1772da['model']['document']['selection'];if(!_0x1772da['plugins']['has']('TableEditing'))return;const _0x2b2b3a=_0x1772da['locale'],_0x3f2e80=_0x1772da['plugins']['get']('TrackChangesEditing'),_0x3a1203=_0x1772da['plugins']['get']('TableUtils');_0x3f2e80['descriptionFactory']['registerElementLabel']('table',_0x33d206=>c(_0x2b2b3a,'ELEMENT_TABLE',_0x33d206)),this['_setupColumnsRowsFixing'](),_0x3f2e80['enableCommand']('insertTable'),_0x3f2e80['enableCommand']('selectTableRow'),_0x3f2e80['enableCommand']('selectTableColumn');for(const _0x4cd4c of['insertTableRowAbove','insertTableRowBelow']){const _0x1537f1=_0x1772da['commands']['get'](_0x4cd4c);_0x3f2e80['enableCommand'](_0x4cd4c,_0xde46ac=>{_0x1772da['model']['change'](_0x532012=>{_0xde46ac();const _0x4aa677='above'===_0x1537f1['order'],_0x4d4d54=_0x3a1203['getSelectionAffectedTableCells'](_0xe11df6),_0x52f8af=_0x3a1203['getRowIndexes'](_0x4d4d54),_0x51f085=_0x4aa677?_0x52f8af['first']-0x1:_0x52f8af['last']+0x1,_0x3f00f1=_0x4d4d54[0x0]['findAncestor']('table'),_0x5bbb9f=_0x3a1203['createTableWalker'](_0x3f00f1,{'startRow':_0x51f085,'endRow':_0x51f085}),_0x2d55db=Array['from'](_0x5bbb9f)['map'](_0x5e0d1f=>_0x532012['createRangeOn'](_0x5e0d1f['cell']));_0x3f2e80['markMultiRangeInsertion'](_0x2d55db,'tableRow');});});}for(const _0x29579d of['insertTableColumnLeft','insertTableColumnRight']){const _0x379702=_0x1772da['commands']['get'](_0x29579d);_0x3f2e80['enableCommand'](_0x29579d,_0x1bd70f=>{_0x1772da['model']['change'](_0x31ee83=>{_0x1bd70f();const _0x378f40='left'===_0x379702['order'],_0x36a830=_0x3a1203['getSelectionAffectedTableCells'](_0xe11df6),_0x273566=_0x3a1203['getColumnIndexes'](_0x36a830),_0x4155de=_0x378f40?_0x273566['first']-0x1:_0x273566['last']+0x1,_0xce84a5=_0x36a830[0x0]['findAncestor']('table'),_0x5b615a=_0x3a1203['createTableWalker'](_0xce84a5,{'startRow':0x0,'column':_0x4155de,'includeAllSlots':!0x1}),_0x4d79c3=Array['from'](_0x5b615a)['map'](_0x4d31e8=>_0x31ee83['createRangeOn'](_0x4d31e8['cell']));_0x3f2e80['markMultiRangeInsertion'](_0x4d79c3,'tableColumn');});});}for(const _0x57d1ca of['removeTableRow','removeTableColumn']){const _0x134475=_0x57d1ca['substr'](0xb),_0x353d14=_0x134475['toLowerCase'](),_0x19849e=_0x353d14['substr'](0x0,0x3)+'span',_0x4ce792='table'+_0x134475,_0x53dc3e='min'+_0x134475,_0x559971='max'+_0x134475;_0x3f2e80['enableCommand'](_0x57d1ca,()=>{_0x1772da['model']['change'](_0x1d062a=>{const _0x201a1b=_0x3a1203['getSelectionAffectedTableCells'](_0xe11df6),_0x18d86b=_0x201a1b[0x0]['findAncestor']('table');let _0x3b3877;if('removeTableRow'==_0x57d1ca){const _0x3277df=_0x3a1203['getRowIndexes'](_0x201a1b);_0x3b3877={'startRow':_0x3277df['first'],'endRow':_0x3277df['last'],'includeAllSlots':!0x0};}else{const _0x2de793=_0x3a1203['getColumnIndexes'](_0x201a1b);_0x3b3877={'startColumn':_0x2de793['first'],'endColumn':_0x2de793['last'],'includeAllSlots':!0x0};}const _0x14d7da=_0x3a1203['createTableWalker'](_0x18d86b,_0x3b3877),_0x2d4e0f=Array['from'](_0x14d7da)['map'](({cell:_0x39abe8})=>_0x39abe8),_0x3cd708=Ne(_0x2d4e0f['filter'](_0x5960c2=>_0x5960c2['hasAttribute'](_0x19849e))),_0x29d903=Ne(_0x2d4e0f['filter'](_0xb68b2=>!_0xb68b2['hasAttribute'](_0x19849e)))['map'](_0x416969=>_0x1d062a['createRangeOn'](_0x416969)),_0x14ad7a=_0x3f2e80['markMultiRangeDeletion'](_0x29d903,_0x4ce792);if(_0x14ad7a&&('tableRow'==_0x14ad7a['subType']||'tableColumn'==_0x14ad7a['subType'])){const _0x5f2e23=this['_getSuggestionCoords'](_0x14ad7a);for(const _0x501ef4 of _0x3cd708){const _0x12ef3f=_0x1d062a['createRangeOn'](_0x501ef4),_0x43b18f=_0x3a1203['getCellLocation'](_0x501ef4),_0x3ee190=_0x501ef4['getAttribute'](_0x19849e)-0x1,_0x50c749=_0x5f2e23[_0x53dc3e],_0x5907e0=_0x5f2e23[_0x559971];_0x50c749<=_0x43b18f[_0x353d14]&&_0x43b18f[_0x353d14]+_0x3ee190<=_0x5907e0&&_0x14ad7a['addRange'](_0x12ef3f);}}});});}function _0x550d99(_0x56fde9){const _0x1325ae=Array['from'](_0xe11df6['getRanges']())['map'](_0x414546=>_0x3959aa['fromRange'](_0x414546));_0x1772da['model']['change'](_0x14b72c=>{const _0x160cee=_0x14b72c['batch'];_0x56fde9=_0x56fde9['filter'](_0x4f1a7d=>'$graveyard'!=_0x4f1a7d['root']['rootName']),_0x14b72c['setSelection'](_0x56fde9),_0x1772da['commands']['get']('removeTableRow')['refresh'](),_0x1772da['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1772da['model']['enqueueChange'](()=>{_0x1772da['model']['enqueueChange'](_0x160cee,_0x530e88=>{const _0x4e6d30=_0x1325ae['filter'](_0x2ce73a=>'$graveyard'!=_0x2ce73a['root']['rootName']);_0x4e6d30['length']>0x0&&_0x530e88['setSelection'](_0x4e6d30);for(const _0x1bc8cc of _0x1325ae)_0x1bc8cc['detach']();});});});}function _0x3bf28b(_0x5e0331){_0x1772da['model']['change'](_0x39429d=>{const _0x55e61f=Array['from'](_0xe11df6['getRanges']())['map'](_0x2eb857=>_0x3959aa['fromRange'](_0x2eb857)),_0x962ebe=[];for(const _0x56765f of _0x5e0331)for(const _0x215e51 of _0x56765f['getItems']({'shallow':!0x0}))_0x962ebe['push'](_0x215e51);for(const _0x4bfe57 of _0x962ebe)'$graveyard'!=_0x4bfe57['root']['rootName']&&(_0x39429d['setSelection'](_0x39429d['createPositionAt'](_0x4bfe57,0x0)),_0x1772da['commands']['get']('removeTableColumn')['refresh'](),_0x1772da['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3647de=_0x55e61f['filter'](_0x4aa1f2=>'$graveyard'!=_0x4aa1f2['root']['rootName']);_0x3647de['length']>0x0&&_0x39429d['setSelection'](_0x3647de);for(const _0x11a1e9 of _0x55e61f)_0x11a1e9['detach']();});}function _0x50b1ca(_0x411d3a,_0x31cfb3){return _0x31cfb3['every'](_0x32627f=>_0x411d3a['some'](_0x287817=>_0x287817['end']['isEqual'](_0x32627f['start'])||_0x32627f['end']['isEqual'](_0x287817['start'])));}function _0x4e1f81(_0x4f78c4,_0x5b3aeb){return!_0x4f78c4['some'](_0x48f689=>_0x5b3aeb['some'](_0x452abf=>_0x48f689['isIntersecting'](_0x452abf)))&&_0x4f78c4['some'](_0x46ac7f=>_0x5b3aeb['some'](_0x51a527=>_0x46ac7f['end']['isTouching'](_0x51a527['start'])));}_0x1772da['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1fc44c,_0x32df15,_0x482ec9)=>{if(!_0x482ec9['options']['showSuggestionHighlights'])return;const _0x7b8a04=_0x32df15['item'];if(!_0x7b8a04)return;const _0xdb1530=_0x482ec9['mapper']['toViewElement'](_0x7b8a04);function _0x4eec45(_0xddaa74){return Array['isArray'](_0xddaa74)?_0xddaa74:[_0xddaa74];}_0xdb1530&&'tableCell'===_0x7b8a04['name']&&_0xb719a5(_0xdb1530,_0x482ec9['writer'],(_0x3ebb2d,_0x265186,_0x291ccf)=>_0x291ccf['addClass'](_0x4eec45(_0x265186['classes']),_0x3ebb2d),(_0x4425ed,_0x12ad3e,_0xf7e77c)=>_0xf7e77c['removeClass'](_0x4eec45(_0x12ad3e['classes']),_0x4425ed));},{'priority':'highest'}),_0x3f2e80['descriptionFactory']['registerDescriptionCallback'](_0x3b5a99=>{if('insertion'!=_0x3b5a99['type']&&'deletion'!=_0x3b5a99['type'])return;const _0x143e07=_0x3b5a99['getContainedElement']();if(null!=_0x143e07&&_0x143e07['is']('element','table')){if('insertion'==_0x3b5a99['type']){const _0x193226=_0x3b5a99['getItems']()['filter'](_0x291364=>_0x291364['is']('$textProxy'))['map'](_0x3e0919=>_0x3e0919['data']);if(_0x193226['length'])return{'type':'insertion','content':c(_0x2b2b3a,'*Insert:*\x20%0',c(_0x2b2b3a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x193226['join']('\x20')+'\x22'))};}if('deletion'==_0x3b5a99['type']){const _0x4d7f92=_0x3b5a99['getItems']()['filter'](_0x4ed309=>_0x4ed309['is']('$textProxy'))['map'](_0xc9deab=>_0xc9deab['data']);if(_0x4d7f92['length'])return{'type':'deletion','content':c(_0x2b2b3a,'*Remove:*\x20%0',c(_0x2b2b3a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d7f92['join']('\x20')+'\x22'))};}}}),_0x3f2e80['descriptionFactory']['registerDescriptionCallback'](_0x441d72=>{if('tableRow'==_0x441d72['subType']){const _0x4aa933=_0x441d72['getItems']()['filter'](_0x1cf1ac=>_0x1cf1ac['is']('$textProxy'))['map'](_0xe32e21=>_0xe32e21['data']),_0x5371e1=this['_getSuggestionCoords'](_0x441d72),_0x8f5d8f=_0x5371e1['maxRow']-_0x5371e1['minRow']+0x1;if('insertion'==_0x441d72['type'])return _0x4aa933['length']?{'type':'insertion','content':c(_0x2b2b3a,'*Insert:*\x20%0',c(_0x2b2b3a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x8f5d8f,'\x22'+_0x4aa933['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2b2b3a,'*Insert:*\x20%0',c(_0x2b2b3a,'ELEMENT_TABLE_ROW',_0x8f5d8f))};if('deletion'==_0x441d72['type'])return _0x4aa933['length']?{'type':'deletion','content':c(_0x2b2b3a,'*Remove:*\x20%0',c(_0x2b2b3a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x8f5d8f,'\x22'+_0x4aa933['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2b2b3a,'*Remove:*\x20%0',c(_0x2b2b3a,'ELEMENT_TABLE_ROW',_0x8f5d8f))};}if('tableColumn'==_0x441d72['subType']){const _0x58427d=_0x441d72['getItems']()['filter'](_0x347865=>_0x347865['is']('$textProxy'))['map'](_0x450f21=>_0x450f21['data']),_0x161a18=this['_getSuggestionCoords'](_0x441d72),_0x1fc16a=_0x161a18['maxColumn']-_0x161a18['minColumn']+0x1;if('insertion'==_0x441d72['type'])return _0x58427d['length']?{'type':'insertion','content':c(_0x2b2b3a,'*Insert:*\x20%0',c(_0x2b2b3a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1fc16a,'\x22'+_0x58427d['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2b2b3a,'*Insert:*\x20%0',c(_0x2b2b3a,'ELEMENT_TABLE_COLUMN',_0x1fc16a))};if('deletion'==_0x441d72['type'])return _0x58427d['length']?{'type':'deletion','content':c(_0x2b2b3a,'*Remove:*\x20%0',c(_0x2b2b3a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1fc16a,'\x22'+_0x58427d['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2b2b3a,'*Remove:*\x20%0',c(_0x2b2b3a,'ELEMENT_TABLE_COLUMN',_0x1fc16a))};}}),_0x3f2e80['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x550d99),_0x3f2e80['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x550d99),_0x3f2e80['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3bf28b),_0x3f2e80['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3bf28b),_0x3f2e80['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x50b1ca),_0x3f2e80['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x50b1ca),_0x3f2e80['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4e1f81),_0x3f2e80['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4e1f81);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3056c7=this['editor'],_0x30a568=_0x3056c7['model']['document']['selection'];return(_0x2b27e2,_0x4b5c66)=>{_0x3056c7['model']['change'](_0x5757a9=>{const {commandName:_0x312106,commandParams:_0x29fe86}=_0x4b5c66;let _0x3345c7=_0x2b27e2[0x0]['end']['nodeBefore'];_0x29fe86&&_0x29fe86[0x0]&&!0x1===_0x29fe86[0x0]['forceValue']&&(_0x3345c7=_0x2b27e2[0x0]['start']['nodeAfter']);const _0x333630=_0x5757a9['createRangeIn'](_0x3345c7);if('$graveyard'==_0x333630['root']['rootName'])return;const _0x54644c=Array['from'](_0x30a568['getRanges']())['map'](_0x5bb88c=>_0x3959aa['fromRange'](_0x5bb88c));_0x5757a9['setSelection'](_0x333630),_0x3056c7['commands']['get'](_0x312106)['refresh'](),_0x29fe86['push']({'forceDefaultExecution':!0x0}),_0x3056c7['execute'](_0x312106,..._0x29fe86);const _0x5e2380=_0x54644c['filter'](_0x113e8e=>'$graveyard'!=_0x113e8e['root']['rootName']);_0x5e2380['length']>0x0&&_0x5757a9['setSelection'](_0x5e2380);for(const _0x55e584 of _0x54644c)_0x55e584['detach']();});};}['_getCoordsForCells'](_0x9deece){const _0x5a04eb=this['editor']['plugins']['get']('TableUtils');let _0x482ffd=Number['MAX_SAFE_INTEGER'],_0x3a5b17=Number['MIN_SAFE_INTEGER'],_0x46b3a0=Number['MAX_SAFE_INTEGER'],_0x58e5c9=Number['MIN_SAFE_INTEGER'];for(const _0x5a14cc of _0x9deece){if('$graveyard'==_0x5a14cc['root']['rootName'])continue;const {row:_0x39549e,column:_0x59f20d}=_0x5a04eb['getCellLocation'](_0x5a14cc),_0x2954ba=_0x5a14cc['hasAttribute']('rowspan')?_0x5a14cc['getAttribute']('rowspan')-0x1:0x0,_0xd8ea5d=_0x5a14cc['hasAttribute']('colspan')?_0x5a14cc['getAttribute']('colspan')-0x1:0x0;_0x482ffd=_0x39549e<_0x482ffd?_0x39549e:_0x482ffd,_0x3a5b17=_0x39549e+_0x2954ba>_0x3a5b17?_0x39549e+_0x2954ba:_0x3a5b17,_0x46b3a0=_0x59f20d<_0x46b3a0?_0x59f20d:_0x46b3a0,_0x58e5c9=_0x59f20d+_0xd8ea5d>_0x58e5c9?_0x59f20d+_0xd8ea5d:_0x58e5c9;}return{'minRow':_0x482ffd,'maxRow':_0x3a5b17,'minColumn':_0x46b3a0,'maxColumn':_0x58e5c9};}['_setupColumnsRowsFixing'](){const _0x569357=this['editor'],_0x10a64e=_0x569357['plugins']['get']('TrackChangesEditing'),_0x3f2f00=_0x569357['plugins']['get']('TableUtils');_0x569357['model']['document']['on']('change:data',()=>{const _0x5b0cfc=Array['from'](_0x569357['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e2194,data:_0x1d374f}of _0x5b0cfc){const {group:_0x1ba907,id:_0x109b78,subType:_0x43f3da}=_0x10a64e['_splitMarkerName'](_0x1e2194);if('suggestion'!=_0x1ba907)continue;if(null!=_0x1d374f['oldRange'])continue;const _0x1700cc=_0x10a64e['getSuggestion'](_0x109b78);this['_tablePostFixingSubtypes']['includes'](_0x43f3da)&&this['_tableSuggestions']['add'](_0x1700cc);}},{'priority':'low'});const _0x1dd31b=(_0x41bab1,_0x3a092d)=>{let _0x112042=!0x1;const _0x4aa2e9=_0x3a092d['createRangeOn'](_0x41bab1),_0xd92200=_0x41bab1['findAncestor']('table'),_0x5c97e2=_0x3f2f00['getCellLocation'](_0x41bab1);for(const _0x4d14c8 of this['_tableSuggestions']){const _0x519946=_0x4d14c8['subType'],_0x20f5fa=_0x519946['startsWith']('tablePaste'),_0x1a8c9e=_0x519946['substr'](_0x20f5fa?0xa:0x5),_0x33c309=_0x1a8c9e['toLowerCase'](),_0x294dac=_0x33c309['substr'](0x0,0x3)+'span',_0x4aacd0='min'+_0x1a8c9e,_0x16bece='max'+_0x1a8c9e;if(!_0x4d14c8['isInContent'])continue;if(_0xd92200!=_0x4d14c8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4d14c8['isIntersectingWithRange'](_0x4aa2e9))continue;const _0x2d0ed8=_0x41bab1['hasAttribute'](_0x294dac)?_0x41bab1['getAttribute'](_0x294dac)-0x1:0x0,_0x1af899=this['_getSuggestionCoords'](_0x4d14c8),_0x138c02=_0x1af899[_0x4aacd0],_0x248ee4=_0x1af899[_0x16bece];_0x138c02<=_0x5c97e2[_0x33c309]&&_0x5c97e2[_0x33c309]+_0x2d0ed8<=_0x248ee4&&(_0x4d14c8['addRange'](_0x4aa2e9),_0x112042=!0x0);}return _0x112042;};_0x569357['model']['document']['registerPostFixer'](_0xa044bd=>{let _0x2877a7=!0x1;for(const _0x4bd179 of _0x569357['model']['document']['differ']['getChanges']())if('insert'==_0x4bd179['type']){if('tableRow'==_0x4bd179['name']){for(const _0x23f444 of _0x4bd179['position']['nodeAfter']['getChildren']())_0x2877a7=_0x2877a7||_0x1dd31b(_0x23f444,_0xa044bd);}else'tableCell'==_0x4bd179['name']&&(_0x2877a7=_0x2877a7||_0x1dd31b(_0x4bd179['position']['nodeAfter'],_0xa044bd));}return _0x2877a7;});}['_getSuggestionCoords'](_0x23783b){return this['_getCoordsForCells'](_0x23783b['getRanges']()['map'](_0x177cae=>_0x177cae['start']['nodeAfter']));}}function Ne(_0xa95c81){return Array['from'](new Set(_0xa95c81)['values']());}class Nt extends _0x24f8b9{static get['requires'](){return[Ct];}['afterInit'](){const _0x453a0e=this['editor'],_0x2c7cb8=_0x453a0e['model']['document']['selection'],_0x1080df=_0x453a0e['locale'];if(!_0x453a0e['plugins']['has']('TableEditing'))return;const _0x2f9583=_0x453a0e['plugins']['get']('TrackChangesEditing'),_0x17ffe7=_0x453a0e['plugins']['get']('TableUtils'),_0x477165=_0x453a0e['plugins']['get'](Ct);_0x477165['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2f9583['enableCommand']('mergeTableCells',()=>{const _0x4bba18=_0x17ffe7['getSelectionAffectedTableCells'](_0x453a0e['model']['document']['selection']);_0x453a0e['model']['change'](()=>{_0x2f9583['markMultiRangeBlockFormat'](_0x4bba18,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x453a0e['commands']['get']('mergeTableCells')['on']('execute',(_0x234888,_0x378e90)=>{_0x453a0e['commands']['get']('trackChanges')['value']&&(_0x378e90['length']>0x0&&_0x378e90[_0x378e90['length']-0x1]&&_0x378e90[_0x378e90['length']-0x1]['forceDefaultExecution']||_0x2f9583['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x234888['stop']());},{'priority':'highest'});for(const _0x3f50a0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x271bf3=_0x453a0e['commands']['get'](_0x3f50a0);_0x2f9583['enableCommand'](_0x3f50a0,()=>{const _0x316e9d=_0x453a0e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f9638=>_0x3f9638['is']('element','tableCell')),_0x239e85=_0x271bf3['value'];_0x453a0e['model']['change'](()=>{_0x2f9583['markMultiRangeBlockFormat']([_0x316e9d,_0x239e85],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x38c3d7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x59c6b4=_0x453a0e['commands']['get'](_0x38c3d7);_0x2f9583['enableCommand'](_0x38c3d7,()=>{const _0x257916=_0x17ffe7['getSelectionAffectedTableCells'](_0x453a0e['model']['document']['selection'])[0x0],_0x5741be=_0x257916['findAncestor']('table'),{column:_0x7388b4,row:_0x19e11b}=_0x17ffe7['getCellLocation'](_0x257916);let _0xcef61=[];if('horizontally'==_0x59c6b4['direction']){const _0x4f9b02=_0x17ffe7['createTableWalker'](_0x5741be,{'startRow':_0x19e11b,'endRow':_0x19e11b,'includeAllSlots':!0x0});_0xcef61=Array['from'](_0x4f9b02)['map'](_0x1a135c=>_0x1a135c['cell']);}else{const _0x44686c=_0x17ffe7['createTableWalker'](_0x5741be,{'column':_0x7388b4,'includeAllSlots':!0x0});_0xcef61=Array['from'](_0x44686c)['map'](_0x20df2c=>_0x20df2c['cell']);}_0x453a0e['model']['change'](_0x5be5bb=>{_0x2f9583['markBlockFormat'](_0x5be5bb['createRangeOn'](_0x257916),{'commandName':_0x38c3d7,'commandParams':[]},_0xcef61,_0x38c3d7);});});}_0x2f9583['descriptionFactory']['registerDescriptionCallback'](_0xdaaa5f=>{if('formatBlock'!=_0xdaaa5f['type']&&'formatInline'!=_0xdaaa5f['type'])return;const {data:_0x17f904}=_0xdaaa5f;return _0x17f904&&'mergeTableCells'==_0x17f904['commandName']?{'type':'format','content':c(_0x1080df,'*Merge\x20cells*')}:void 0x0;}),_0x2f9583['descriptionFactory']['registerDescriptionCallback'](_0x878f39=>{if('formatBlock'!=_0x878f39['type']&&'formatInline'!=_0x878f39['type'])return;const {data:_0x3bf1ee}=_0x878f39;return _0x3bf1ee?'splitTableCellVertically'==_0x3bf1ee['commandName']?{'type':'format','content':c(_0x1080df,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3bf1ee['commandName']?{'type':'format','content':c(_0x1080df,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x155964=_0x477165['_acceptFormatSuggestionCallbackFactory']();for(const _0x3652bb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2f9583['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3652bb,'accept',_0x155964);for(const _0x1d5d62 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2f9583['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d5d62,'accept',_0x155964);_0x2f9583['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4ff51e=>{_0x453a0e['model']['change'](_0xb13e4=>{const _0x4b1b14=Array['from'](_0x2c7cb8['getRanges']())['map'](_0x34a4a4=>_0x3959aa['fromRange'](_0x34a4a4));_0xb13e4['setSelection'](_0x4ff51e),_0x453a0e['commands']['get']('mergeTableCells')['refresh'](),_0x453a0e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3fcbed=_0x4b1b14['filter'](_0xdf5463=>'$graveyard'!=_0xdf5463['root']['rootName']);_0x3fcbed['length']>0x0&&_0xb13e4['setSelection'](_0x3fcbed);for(const _0x5180a9 of _0x4b1b14)_0x5180a9['detach']();});});for(const _0x12d73b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x47d4a6=_0x453a0e['commands']['get'](_0x12d73b);_0x47d4a6['on']('set:isEnabled',(_0x3da374,_0xd8fead,_0x2f085a)=>{if(_0x2f085a){const _0x91c0fe=_0x453a0e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x431f43=>_0x431f43['is']('element','tableCell'));this['_areMergableCells'](_0x47d4a6['value'],_0x91c0fe)||(_0x3da374['return']=!0x1,_0x3da374['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4757ad=this['editor']['commands']['get']('mergeTableCells'),_0x536b7b=this['editor']['plugins']['get']('TableUtils');if(!_0x4757ad['isEnabled'])return!0x1;const _0x1be55c=_0x536b7b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x404e17 of _0x1be55c)for(const _0x4efbf9 of _0x1be55c)if(_0x404e17!=_0x4efbf9&&!this['_areMergableCells'](_0x404e17,_0x4efbf9))return!0x1;return!0x0;}['_areMergableCells'](_0x4bf994,_0x15515e){const _0x39e56e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25e614=this['editor']['model']['createRangeOn'](_0x4bf994),_0x4da70f=this['editor']['model']['createRangeOn'](_0x15515e),_0x2fe0b0=new Set(),_0x47be95=new Set();for(const _0x21f5fa of _0x39e56e['getSuggestions']())if(('insertion'==_0x21f5fa['type']||'deletion'==_0x21f5fa['type']||'mergeTableCells'==_0x21f5fa['subType'])&&_0x21f5fa['isInContent']){for(const _0x806d55 of _0x21f5fa['getRanges']())_0x806d55['containsRange'](_0x25e614,!0x0)&&_0x2fe0b0['add'](_0x21f5fa['type']+':'+_0x21f5fa['author']['id']),_0x806d55['containsRange'](_0x4da70f,!0x0)&&_0x47be95['add'](_0x21f5fa['type']+':'+_0x21f5fa['author']['id']);}if(_0x2fe0b0['size']!=_0x47be95['size'])return!0x1;for(const _0x7b207a of _0x2fe0b0)if(!_0x47be95['has'](_0x7b207a))return!0x1;return!0x0;}}class Dt extends _0x24f8b9{static get['requires'](){return[Ct];}['afterInit'](){const _0x48d130=this['editor'];if(!_0x48d130['plugins']['has']('TableEditing'))return;const _0x1c0d77=_0x48d130['locale'],_0xf08ea2=_0x48d130['plugins']['get']('TrackChangesEditing');_0xf08ea2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xf08ea2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xf08ea2['registerBlockAttribute']('headingRows'),_0xf08ea2['registerBlockAttribute']('headingColumns'),_0xf08ea2['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x1c0d77,'FORMAT_HEADER_ROW')),_0xf08ea2['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x1c0d77,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f5e11=this['editor']['plugins']['get']('TrackChangesEditing'),_0x328728=this['editor']['plugins']['get']('TableUtils'),_0x541752=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1b7f42({showActiveMarker:_0x40c35a=!0x0,setDataAttribute:_0x42e4cb=!0x0}={}){return(_0x4121f5,_0x525296,_0x27b1c0)=>{const {type:_0x27d057,id:_0x3e56af}=_0x3f5e11['_splitMarkerName'](_0x525296['markerName']),_0x319448=_0x3f5e11['getSuggestion'](_0x3e56af),_0x3794c3=_0x319448['data'];if('formatBlock'!=_0x319448['type']||!_0x3794c3||'setTableColumnHeader'!=_0x3794c3['commandName'])return;if(_0x525296['item'])return void _0x4121f5['stop']();if(!_0x27b1c0['consumable']['consume'](_0x525296['markerRange'],_0x4121f5['name']))return;const _0x237c32=_0x525296['markerRange']['start']['nodeAfter'],_0x1ec115=_0x525296['markerRange']['end']['nodeBefore'],_0x4aa228=_0x237c32['parent']['parent'],{column:_0x40ad8d}=_0x328728['getCellLocation'](_0x237c32),{column:_0x1e9d48}=_0x328728['getCellLocation'](_0x1ec115);for(let _0x676a8a=_0x40ad8d;_0x676a8a<=_0x1e9d48;_0x676a8a++){const _0x4d61b7=_0x328728['createTableWalker'](_0x4aa228,{'column':_0x676a8a,'includeAllSlots':!0x1});for(const _0x447058 of _0x4d61b7){const _0x1bf500=_0x447058['cell'],_0x5256a3=_0x27b1c0['mapper']['toViewElement'](_0x1bf500);_0x27b1c0['writer']['addClass']('ck-suggestion-marker-'+_0x27d057,_0x5256a3),_0x42e4cb&&_0x27b1c0['writer']['setAttribute']('data-suggestion',_0x3e56af,_0x5256a3),_0x27b1c0['mapper']['bindElementToMarker'](_0x5256a3,_0x525296['markerName']),_0x40c35a&&(_0x3f5e11['activeMarkers']['includes'](_0x525296['markerName'])?_0x27b1c0['writer']['addClass']('ck-suggestion-marker--active',_0x5256a3):_0x27b1c0['writer']['removeClass']('ck-suggestion-marker--active',_0x5256a3));}}};}_0x3f5e11['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x541752),_0x3f5e11['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x541752),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1b7f42(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d9de2,_0x408f10,_0x4e2575)=>{_0x4e2575['options']['showSuggestionHighlights']&&_0x1b7f42({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1d9de2,_0x408f10,_0x4e2575);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x7da3cc,_0x15ba28,_0x2c1197)=>{const {type:_0x121a3c,id:_0x3b73e0}=_0x3f5e11['_splitMarkerName'](_0x15ba28['markerName']),_0x487ef8=_0x3f5e11['getSuggestion'](_0x3b73e0),_0x3bd56c=_0x487ef8['data'];if('formatBlock'!=_0x487ef8['type']||!_0x3bd56c||'setTableColumnHeader'!=_0x3bd56c['commandName'])return;const _0x54718b=_0x2c1197['mapper']['markerNameToElements'](_0x15ba28['markerName']);if(_0x54718b){for(const _0x27ce5a of _0x54718b)_0x2c1197['writer']['removeClass']('ck-suggestion-marker-'+_0x121a3c,_0x27ce5a),_0x2c1197['writer']['removeClass']('ck-suggestion-marker--active',_0x27ce5a),_0x2c1197['writer']['removeAttribute']('data-suggestion',_0x27ce5a),_0x2c1197['mapper']['unbindElementFromMarkerName'](_0x27ce5a,_0x15ba28['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cf8a3=this['editor'],_0x255f03=_0x4cf8a3['locale'];function _0x1c38bc(_0x4f5812){return{'type':'format','content':c(_0x255f03,'*Format:*\x20%0',_0x4f5812)};}_0x4cf8a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7d3f8d=>{if('formatBlock'!=_0x7d3f8d['type'])return;const {data:_0x3c6f7e}=_0x7d3f8d;if(_0x3c6f7e){if('setTableRowHeader'==_0x3c6f7e['commandName']){const _0x4686d4=_0x3c6f7e['commandParams'][0x0]['forceValue'];return _0x1c38bc(c(_0x255f03,_0x4686d4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3c6f7e['commandName']){const _0x59846b=_0x3c6f7e['commandParams'][0x0]['forceValue'];return _0x1c38bc(c(_0x255f03,_0x59846b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x21dd24=>[_0x21dd24,null]));class Mt extends _0x24f8b9{static get['requires'](){return[Ct];}['afterInit'](){const _0x3befc1=this['editor'];if(!_0x3befc1['plugins']['has']('TableClipboard'))return;const _0x388014=_0x3befc1['plugins']['get']('TrackChangesEditing'),_0x153016=_0x3befc1['plugins']['get']('TableUtils'),_0x52541e=_0x3befc1['plugins']['get'](Ct),_0x28c7cc=_0x3befc1['plugins']['get']('TableClipboard');_0x52541e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3befc1['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3befc1['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x40b4d4=null;_0x3befc1['model']['on']('insertContent',(_0x56c3bb,_0x39d070)=>{const [_0x1ae907,_0x1e6861]=_0x39d070,_0x3389a2=_0x39d070[_0x39d070['length']-0x1];_0x3389a2&&_0x3389a2['forceDefaultExecution']||_0x388014['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xc413e5,_0xb65440,_0x40ab71,_0x4c9f02,_0x564181){if(_0xb65440&&!_0xb65440['is']('documentSelection'))return!0x1;const _0xa894f1=_0x564181['getTableIfOnlyTableInContent'](_0xc413e5,_0x40ab71);if(!_0xa894f1||!Ue(_0xa894f1,void 0x0,_0x4c9f02))return!0x1;const _0x1a0ef8=_0x4c9f02['getSelectionAffectedTableCells'](_0x40ab71['document']['selection']);if(!_0x1a0ef8['length'])return!0x1;const _0x2dbf3f=_0x1a0ef8[0x0]['findAncestor']('table'),_0x144b1e=_0x4c9f02['getRowIndexes'](_0x1a0ef8),_0x5b8519=_0x4c9f02['getColumnIndexes'](_0x1a0ef8),_0x21b5d2={'startRow':_0x144b1e['first'],'endRow':_0x144b1e['last'],'startColumn':_0x5b8519['first'],'endColumn':_0x5b8519['last']};return 0x1==_0x1a0ef8['length']&&(_0x21b5d2['endRow']+=_0x4c9f02['getRows'](_0xa894f1)-0x1,_0x21b5d2['endColumn']+=_0x4c9f02['getColumns'](_0xa894f1)-0x1),Ue(_0x2dbf3f,_0x21b5d2,_0x4c9f02);}(_0x1ae907,_0x1e6861,_0x3befc1['model'],_0x153016,_0x28c7cc)&&(_0x56c3bb['stop'](),_0x40b4d4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3befc1['model']['change'](()=>{_0x3befc1['model']['insertContent'](_0x39d070[0x0],_0x39d070[0x1],_0x39d070[0x2],{'forceDefaultExecution':!0x0});const _0x3080ec=_0x3e2b49(),{rowInsertionRanges:_0x225bdb,columnInsertionRanges:_0x5e4bae,insertionRanges:_0x2ae650,deletionRanges:_0x211a6f,cells:_0x46b34a}=_0x40b4d4;_0x225bdb['length']&&_0x388014['markMultiRangeInsertion'](_0x225bdb,'tablePasteRow',{'tablePasteChainId':_0x3080ec}),_0x5e4bae['length']&&_0x388014['markMultiRangeInsertion'](_0x5e4bae,'tablePasteColumn',{'tablePasteChainId':_0x3080ec}),_0x2ae650['length']&&(_0x388014['markMultiRangeInsertion'](_0x2ae650,'tablePaste',{'tablePasteChainId':_0x3080ec,'skipNestingCheck':!0x0}),_0x2ae650['forEach'](_0x5fd540=>_0x5fd540['detach']?.())),_0x211a6f['length']&&(_0x388014['markMultiRangeDeletion'](_0x211a6f,'tablePaste',{'tablePasteChainId':_0x3080ec,'skipNestingCheck':!0x0}),_0x211a6f['forEach'](_0x1aa93b=>_0x1aa93b['detach']?.()));const _0x1f5c61=_0x388014['markMultiRangeBlockFormat'](_0x46b34a['map'](({element:_0x568ebb})=>_0x568ebb),{'formatGroupId':_0x3e2b49()},[],'tablePasteCell',{'tablePasteChainId':_0x3080ec});if(_0x1f5c61){const _0x49aa4b=_0x1f5c61['getMarkers'](),_0x273676=[];for(const {element:_0x43bb97,attributes:_0x2e67f0}of _0x46b34a){if(!_0x2e67f0)continue;const _0x2d1f5b=_0x3befc1['model']['createRangeOn'](_0x43bb97),_0x332c41=_0x49aa4b['find'](_0x37fae6=>_0x37fae6['getRange']()['isEqual'](_0x2d1f5b));_0x332c41&&_0x273676['push']([_0x332c41['name'],_0x2e67f0]);}_0x273676['length']&&_0x1f5c61['setAttribute']('markerAttributes',Object['fromEntries'](_0x273676));}_0x40b4d4=null;}));},{'priority':_0xc1589b['high']+0xa}),_0x3befc1['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22ca9f,_0x10480c)=>{const [_0x55515c,_0x31224d,,_0x3a2f50]=_0x10480c;if(!_0x40b4d4)return;_0x22ca9f['stop']();const _0x3f0232=_0x55515c['cell'],_0x36c66d=_0x31224d,_0x2e45eb=Oe(_0x3f0232),_0x3f6a11=Oe(_0x36c66d);_0x22ca9f['return']=_0x3f0232;let _0x2e727e=null,_0x16a82b=null;if(_0x3f6a11||_0x2e45eb){if(_0x2e45eb&&!_0x3f6a11){_0x3a2f50['remove'](_0x3f0232['getChild'](0x0));for(const _0x1733d8 of Array['from'](_0x36c66d['getChildren']()))_0x3a2f50['insert'](_0x1733d8,_0x3f0232,'end');const _0xa33b24=_0x40b4d4['rowInsertionIndexes']['includes'](_0x55515c['row']),_0x184e00=_0x40b4d4['columnInsertionIndexes']['includes'](_0x55515c['column']);_0xa33b24||_0x184e00||(_0x2e727e=_0x3959aa['fromRange'](_0x3a2f50['createRangeIn'](_0x3f0232)));}else _0x3f6a11&&!_0x2e45eb&&(_0x16a82b=_0x3a2f50['createRangeIn'](_0x3f0232));}else{const _0x1dbc3c=_0x3a2f50['createElement']('tableCellSuggestion'),_0x545020=_0x3a2f50['createElement']('tableCellSuggestion');_0x3a2f50['wrap'](_0x3a2f50['createRangeIn'](_0x3f0232),_0x545020),_0x3a2f50['insert'](_0x1dbc3c,_0x3f0232,0x0);for(const _0x3dcb16 of Array['from'](_0x36c66d['getChildren']()))_0x3a2f50['insert'](_0x3dcb16,_0x1dbc3c,'end');_0x2e727e=_0x3959aa['fromRange'](_0x3a2f50['createRangeOn'](_0x1dbc3c)),_0x16a82b=_0x3959aa['fromRange'](_0x3a2f50['createRangeOn'](_0x545020));}const _0x148032=Array['from'](_0x36c66d['getAttributes']())['filter'](([_0x45191d])=>Be['includes'](_0x45191d));_0x40b4d4['cells']['push']({'element':_0x3f0232,'attributes':_0x148032['length']?Object['fromEntries'](_0x148032):null}),_0x2e727e&&_0x40b4d4['insertionRanges']['push'](_0x2e727e),_0x16a82b&&_0x40b4d4['deletionRanges']['push'](_0x16a82b);},{'priority':'high'}),_0x153016['on']('insertColumns',(_0x35f4ba,_0x408e34)=>{const [_0x3d0df5,_0x383e11={}]=_0x408e34;if(!_0x40b4d4)return;const _0x2d22cf=_0x383e11['at']||0x0,_0x31e798=_0x383e11['columns']||0x1;_0x40b4d4['columnInsertionIndexes']=new Array(_0x31e798)['fill'](_0x2d22cf)['map']((_0x49d7cc,_0x494997)=>_0x49d7cc+_0x494997);for(const {cell:_0x7801bc}of _0x153016['createTableWalker'](_0x3d0df5,{'startColumn':_0x2d22cf,'endColumn':_0x2d22cf+_0x31e798-0x1}))_0x40b4d4['columnInsertionRanges']['push'](_0x3befc1['model']['createRangeOn'](_0x7801bc));},{'priority':'low'}),_0x153016['on']('insertRows',(_0x31b48e,_0x23b597)=>{const [_0x4b837f,_0x3e5eb4={}]=_0x23b597;if(!_0x40b4d4)return;const _0x1db362=_0x3e5eb4['at']||0x0,_0x48be93=_0x3e5eb4['rows']||0x1;_0x40b4d4['rowInsertionIndexes']=new Array(_0x48be93)['fill'](_0x1db362)['map']((_0x181da1,_0xa32e89)=>_0x181da1+_0xa32e89);for(const {cell:_0x3074bc}of _0x153016['createTableWalker'](_0x4b837f,{'startRow':_0x1db362,'endRow':_0x1db362+_0x48be93-0x1}))_0x40b4d4['rowInsertionRanges']['push'](_0x3befc1['model']['createRangeOn'](_0x3074bc));},{'priority':'low'}),_0x388014['descriptionFactory']['registerDescriptionCallback'](_0xe58b85=>{if(_0xe58b85['subType']&&_0xe58b85['subType']['startsWith']('tablePaste'))return _0xe58b85['previous']?{}:{'type':'insertion','content':c(_0x3befc1['locale'],'*Replace\x20table\x20cells*')};});const _0xdd51c7=()=>!0x1;for(const _0x34eacc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x388014['_suggestionFactory']['registerCustomCallback']('insertion',_0x34eacc,'join',_0xdd51c7),_0x388014['_suggestionFactory']['registerCustomCallback']('deletion',_0x34eacc,'join',_0xdd51c7),_0x388014['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34eacc,'join',_0xdd51c7);_0x388014['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xdd51c7),_0x388014['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xe1d6c5,_0x220316,_0xc544d9)=>{const _0x4051b6=_0xe1d6c5['map'](_0x1ae3f8=>_0x1ae3f8['getContainedElement']())['filter'](_0x3c7d84=>_0x3c7d84),_0x4711fb=new Map(_0x4051b6['map'](_0x160d66=>[_0x160d66,null]));if(_0x40b4d4){for(const {element:_0x23b86a,attributes:_0x487d5a}of _0x40b4d4['cells'])_0x487d5a&&_0x4711fb['set'](_0x23b86a,_0x487d5a);}else{if(_0xc544d9&&_0xc544d9['markerAttributes'])for(const [_0x2692ca,_0x4d1f6c]of Object['entries'](_0xc544d9['markerAttributes'])){const _0x33903a=_0x3befc1['model']['markers']['get'](_0x2692ca),_0x14558c=_0x33903a?_0x33903a['getRange']()['getContainedElement']():null;_0x14558c&&_0x4711fb['set'](_0x14558c,_0x4d1f6c);}}_0x3befc1['model']['change'](_0x3cef93=>{for(const [_0x1a37c1,_0x2fcbda]of _0x4711fb)_0x3cef93['setAttributes']({...xe,..._0x2fcbda},_0x1a37c1);});});const _0x13f6c8=(_0x5acc1b,_0x2128c1)=>{_0x388014['_suggestionFactory']['registerCustomCallback'](_0x5acc1b,'tablePaste',_0x2128c1,(_0x5954a6,_0x13993c,_0x32de4d)=>{_0x3befc1['model']['change'](_0x8bd4cd=>{const _0x2e2efd=[];for(const _0x1c9868 of _0x5954a6){const _0x5deb55=_0x1c9868['start']['nodeAfter'];_0x5deb55['is']('element','tableCellSuggestion')&&_0x2e2efd['push'](_0x5deb55);}_0x388014['_suggestionFactory']['getSuggestionCallback'](_0x5acc1b,null,_0x2128c1)(_0x5954a6,_0x13993c,_0x32de4d);for(const _0x6fcbdd of _0x2e2efd)'$graveyard'!=_0x6fcbdd['root']['rootName']&&_0x8bd4cd['unwrap'](_0x6fcbdd);});});};_0x13f6c8('insertion','accept'),_0x13f6c8('insertion','discard'),_0x13f6c8('deletion','accept'),_0x13f6c8('deletion','discard'),_0x388014['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x127cd3=>{const _0x551267=_0x127cd3['map'](_0x31cdbc=>_0x31cdbc['getContainedElement']()),_0x406aa3=_0x551267[0x0]['findAncestor']('table'),{minRow:_0x1a18a1,maxRow:_0x1f15cf}=_0x52541e['_getCoordsForCells'](_0x551267);_0x153016['removeRows'](_0x406aa3,{'at':_0x1a18a1,'rows':_0x1f15cf-_0x1a18a1+0x1});}),_0x388014['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xb4a0a7=>{const _0x4f70c1=_0xb4a0a7['map'](_0x32a536=>_0x32a536['getContainedElement']()),_0x388b60=_0x4f70c1[0x0]['findAncestor']('table'),{minColumn:_0x39339a,maxColumn:_0x27d400}=_0x52541e['_getCoordsForCells'](_0x4f70c1);_0x153016['removeColumns'](_0x388b60,{'at':_0x39339a,'columns':_0x27d400-_0x39339a+0x1});});const _0x3c24ea=(_0x37b694,_0x454184)=>{if(!_0x454184['subType']||!_0x454184['subType']['startsWith']('tablePaste'))return;const _0x5c4681=_0x454184['attributes']['tablePasteChainId'],_0x28b29e=_0x388014['getSuggestions']()['filter'](_0x1258d0=>_0x1258d0['isInContent']&&_0x1258d0['attributes']&&_0x1258d0['attributes']['tablePasteChainId']==_0x5c4681);_0x28b29e['length']&&_0x454184['getAllAdjacentSuggestions']()['length']!=_0x28b29e['length']&&_0x28b29e['reduce']((_0x452acd,_0x2836de)=>(_0x452acd['next']=_0x2836de,_0x2836de['previous']=_0x452acd,_0x2836de));};function _0x15a7d4(_0x1eaae2,_0x245524=!0x0){const {id:_0x5a8601,authorId:_0x558ebe}=_0x388014['_splitMarkerName'](_0x1eaae2['markerName']),_0x68dc2a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x11b8d0=_0x388014['activeMarkers']['includes'](_0x1eaae2['markerName']);return _0x11b8d0&&_0x68dc2a['push']('ck-suggestion-marker--active'),{'classes':_0x68dc2a,'attributes':{'data-suggestion':_0x5a8601,'data-author-id':_0x558ebe},'priority':_0x11b8d0&&_0x245524?0xbc2:0xbb8};}_0x388014['on']('suggestionLoaded',_0x3c24ea,{'priority':'high'}),_0x388014['on']('suggestionUnloaded',_0x3c24ea,{'priority':'high'}),_0x3befc1['model']['document']['registerPostFixer'](()=>{let _0x31b1dc=!0x1;const _0x490858=Array['from'](_0x3befc1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x284563,data:_0xb4f064}of _0x490858){const {group:_0x53a6d0,type:_0x2d9e93,id:_0x408a1a}=_0x388014['_splitMarkerName'](_0x284563);if('suggestion'!=_0x53a6d0||'deletion'!=_0x2d9e93||_0xb4f064['oldRange'])continue;if(!_0x388014['hasSuggestion'](_0x408a1a))continue;const _0xb9206e=_0x388014['getSuggestion'](_0x408a1a)['getRanges'](),_0x217a65=_0x3befc1['plugins']['get']('Users')['me'];for(const _0x3cc377 of _0x388014['getSuggestions']()){if(!_0x3cc377['isInContent']||_0x3cc377['author']!=_0x217a65)continue;if('formatBlock'!=_0x3cc377['type']||'tablePasteCell'!=_0x3cc377['subType'])continue;if(_0x3cc377['getRanges']()['every'](_0x58f94b=>_0xb9206e['some'](_0x198ba6=>_0x198ba6['containsRange'](_0x58f94b,!0x0)))){for(const _0x487c15 of _0x3cc377['getAllAdjacentSuggestions']())_0x487c15['isInContent']&&(_0x487c15['discard'](),_0x31b1dc=!0x0);}}}return _0x31b1dc;}),_0x3befc1['model']['document']['registerPostFixer'](_0x179aba=>{const _0xea401b=_0x3befc1['commands']['get']('redo');if(!_0xea401b||!_0xea401b['_createdBatches']['has'](_0x179aba['batch']))return!0x1;let _0x59b654=!0x1;const _0x12d636=_0x3befc1['plugins']['get']('Users')['me'],_0x1f9981=_0x3befc1['model']['document']['differ']['getChanges'](),_0x567cb6=Array['from'](_0x3befc1['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x45a3ed,data:_0x5dd1e9})=>{const {group:_0x42a2e7,subType:_0x5ea4fb,authorId:_0x9ecff7}=_0x388014['_splitMarkerName'](_0x45a3ed);return'suggestion'==_0x42a2e7&&'tablePaste'==_0x5ea4fb&&_0x9ecff7==_0x12d636['id']&&!_0x5dd1e9['oldRange'];});for(const _0x262250 of _0x1f9981){if('insert'!=_0x262250['type']||'tableCellSuggestion'!=_0x262250['name']||0x1!=_0x262250['length'])continue;const _0x55d4ff=_0x179aba['createRange'](_0x262250['position'],_0x262250['position']['getShiftedBy'](0x1));if(!_0x567cb6['find'](({data:_0x11571d})=>_0x11571d['newRange']['isEqual'](_0x55d4ff))){for(const {name:_0x772edc,data:_0x552d76}of _0x567cb6)if(_0x55d4ff['containsRange'](_0x552d76['newRange'])){_0x179aba['updateMarker'](_0x772edc,{'range':_0x55d4ff}),_0x59b654=!0x0;break;}}}return _0x59b654;}),_0x3befc1['model']['document']['registerPostFixer'](_0x3b80e4=>{let _0x547679=!0x1;const _0x14cafd=_0x3befc1['plugins']['get']('Users')['me'],_0xc3e9ed=_0x388014['getSuggestions']()['filter'](_0x419079=>_0x419079['isInContent']&&_0x419079['author']==_0x14cafd),_0x281a16=new Set(),_0x1ed938=new Set();for(const _0x4b4f97 of _0xc3e9ed)if('tablePaste'==_0x4b4f97['subType'])for(const _0x477b2f of _0x4b4f97['getMarkers']()){const _0x594b49=_0x477b2f['getRange']()['getContainedElement']();if(_0x594b49){if(_0x594b49['is']('element','tableCellSuggestion')&&Oe(_0x594b49)){_0x4b4f97['removeMarker'](_0x477b2f['name']),_0x281a16['add'](_0x594b49),_0x547679=!0x0;const _0x4b15c8=_0x594b49['nextSibling'],_0x3a7a21=_0x594b49['previousSibling'],_0x20dd72=_0x4b15c8&&_0x4b15c8['is']('element','tableCellSuggestion'),_0x3d1323=_0x3a7a21&&_0x3a7a21['is']('element','tableCellSuggestion');_0x20dd72&&!_0x281a16['has'](_0x4b15c8)&&_0x1ed938['add'](_0x4b15c8),_0x3d1323&&!_0x281a16['has'](_0x3a7a21)&&_0x1ed938['add'](_0x3a7a21);}else _0x594b49['is']('element','paragraph')&&_0x594b49['isEmpty']&&(_0x4b4f97['removeMarker'](_0x477b2f['name']),_0x547679=!0x0);}}else{if('tablePasteCell'==_0x4b4f97['subType']){if(!_0x4b4f97['attributes']||!_0x4b4f97['attributes']['tablePasteChainId'])continue;const _0x2aba1f=_0x4b4f97['attributes']['markerAttributes'];if(_0x2aba1f&&Object['keys'](_0x2aba1f)['length'])continue;const _0x49189d=_0x4b4f97['attributes']['tablePasteChainId'];let _0x3b5b0c=!0x0,_0x50cc07=!0x0;for(const _0x502b29 of _0xc3e9ed)if(_0x502b29['subType']&&_0x502b29['subType']['startsWith']('tablePaste')){if(!_0x502b29['attributes']['tablePasteChainId']){_0x50cc07=!0x1;break;}if(_0x502b29['id']!=_0x4b4f97['id']&&_0x502b29['attributes']['tablePasteChainId']==_0x49189d){_0x3b5b0c=!0x1;break;}}_0x50cc07&&_0x3b5b0c&&(_0x4b4f97['removeMarkers'](),_0x547679=!0x0);}}for(const _0x35098d of _0x281a16)_0x3b80e4['remove'](_0x35098d);for(const _0x117354 of _0x1ed938)_0x3b80e4['unwrap'](_0x117354);return _0x547679;}),_0x3befc1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x53b10e=>_0x15a7d4(_0x53b10e),'converterPriority':'high'}),_0x3befc1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3f0479,_0x375df1)=>_0x375df1['options']['showSuggestionHighlights']?_0x15a7d4(_0x3f0479,!0x1):null,'converterPriority':'high'});const _0x57fe4d=_0x3befc1['editing']['view'];this['listenTo'](_0x57fe4d['document'],'clipboardOutput',(_0x582e7c,_0x12c7e7)=>{const _0x4ac0e8=[];for(const _0x25941c of _0x57fe4d['createRangeIn'](_0x12c7e7['content'])['getItems']())_0x25941c['is']('element','suggestion-td')&&_0x4ac0e8['push'](_0x25941c);_0x57fe4d['change'](_0x5bb812=>{for(const _0x16f49c of _0x4ac0e8)_0x5bb812['move'](_0x5bb812['createRangeIn'](_0x16f49c),_0x5bb812['createPositionBefore'](_0x16f49c)),_0x5bb812['remove'](_0x16f49c);});});}}function Oe(_0x58079a){if(_0x58079a['isEmpty'])return!0x0;const _0xf20a01=_0x58079a['getChild'](0x0);return _0xf20a01['is']('element','paragraph')&&_0xf20a01['isEmpty'];}function Ue(_0x619219,_0x49524b={},_0x1935d3){for(const {isAnchor:_0x5ecb17,cellHeight:_0x41ebe0,cellWidth:_0x5aef16}of _0x1935d3['createTableWalker'](_0x619219,{'includeAllSlots':!0x0,..._0x49524b}))if(!_0x5ecb17||0x1!=_0x41ebe0||0x1!=_0x5aef16)return!0x1;return!0x0;}class $t extends _0x24f8b9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x33d2a8=this['editor']['plugins']['get']('TrackChangesEditing');_0x33d2a8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x33d2a8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x33d2a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33d2a8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x33d2a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x33d2a8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x15ebfb,_0x2965ed){const _0x42b04c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42a69a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x199e97=_0x2965ed['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x330301=_0x42a69a['getColumnGroupElement'](_0x199e97);let _0x369494=_0x330301?_0x42a69a['getTableColumnsWidths'](_0x330301):null,_0x32fc31=_0x199e97['getAttribute']('tableWidth')||null;const _0xdbf51d=_0x2965ed['tableWidth']||_0x32fc31,_0x3b1e7d=_0x2965ed['columnWidths']||_0x369494,_0x452851=this['editor']['plugins']['get']('Users')['me'];for(const _0x585aa5 of _0x42b04c['getSuggestions']()){const _0x1af003=_0x585aa5['getContainedElement']();if('resizeTable'===_0x585aa5['subType']&&_0x1af003===_0x199e97){_0x585aa5['author']!==_0x452851&&_0x585aa5['discard']();const _0x27f54c=_0x585aa5['data']['commandParams'];_0x32fc31=_0x27f54c[0x0]['tableWidth'],_0x369494=_0x27f54c[0x0]['columnWidths'];break;}}_0x15ebfb({'table':_0x199e97,'tableWidth':_0xdbf51d,'columnWidths':_0x3b1e7d}),_0x42b04c['markBlockFormat'](_0x199e97,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x32fc31,'columnWidths':_0x369494}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f9912){if('formatBlock'!=_0x4f9912['type']&&'formatInline'!=_0x4f9912['type'])return;const {data:_0x3dd0aa}=_0x4f9912;if(_0x3dd0aa&&'resizeTable'===_0x3dd0aa['formatGroupId']){const _0x8133b3='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x8133b3)};}}}class Bt extends _0x24f8b9{['afterInit'](){const _0x5dbaa6=this['editor'];_0x5dbaa6['plugins']['has']('Template')&&_0x5dbaa6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x24f8b9{['afterInit'](){const _0x562650=this['editor'];if(!_0x562650['commands']['get']('insertTableOfContents'))return;_0x562650['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x59b763=_0x562650['plugins']['get']('TrackChangesEditing'),_0x3269e8=_0x562650['locale'];_0x59b763['descriptionFactory']['registerElementLabel']('tableOfContents',_0x18f02f=>c(_0x3269e8,'ELEMENT_TABLE_OF_CONTENTS',_0x18f02f));}}class Rt extends _0x24f8b9{['afterInit'](){const _0x54ea2b=this['editor'];if(!_0x54ea2b['plugins']['has']('Title'))return;const _0x1e2f63=_0x54ea2b['plugins']['get']('TrackChangesEditing');_0x1e2f63['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x54ea2b['locale'],'ELEMENT_TITLE')),_0x54ea2b['model']['document']['registerPostFixer'](_0x1c284a=>{let _0x186c67=!0x1;const _0x302523=Array['from'](_0x54ea2b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40e474,data:_0x50be6e}of _0x302523){const {group:_0x1ac1c8}=_0x1e2f63['_splitMarkerName'](_0x40e474);if('suggestion'!==_0x1ac1c8||!_0x50be6e['newRange'])continue;const _0x2668e4=_0x50be6e['newRange'],_0x12feea=_0x2668e4['end']['nodeBefore'];if(!_0x12feea||!_0x12feea['is']('element','title-content'))continue;if(!_0x2668e4['start']['isTouching'](_0x2668e4['end']))continue;const _0x3d538e=_0x54ea2b['model']['schema']['getNearestSelectionRange'](_0x2668e4['end'],'forward');if(_0x3d538e&&_0x3d538e['isCollapsed']){const _0x2c8708=_0x1c284a['createRange'](_0x2668e4['start'],_0x3d538e['start']);_0x2c8708['isEqual'](_0x2668e4)||(_0x1c284a['updateMarker'](_0x40e474,{'range':_0x2c8708}),_0x186c67=!0x0);}_0x186c67||(_0x1c284a['removeMarker'](_0x40e474),_0x186c67=!0x0);}return _0x186c67;});}}class xt extends _0x24f8b9{['afterInit'](){const _0x1c27af=this['editor'],_0x4e4946=_0x1c27af['plugins']['get']('TrackChangesEditing');_0x1c27af['plugins']['has']('Uploadcare')&&(_0x4e4946['enableCommand']('uploadcare'),_0x1c27af['plugins']['has']('UploadcareImageEdit')&&(_0x4e4946['enableCommand']('uploadcareImageEdit'),_0x4e4946['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4e4946['registerBlockAttribute']('uploadcareImageId'),_0x4e4946['descriptionFactory']['registerDescriptionCallback'](_0x3a7cf4=>{if('attribute'!=_0x3a7cf4['type'])return;const {data:_0x25933f}=_0x3a7cf4;return _0x25933f&&'uploadcareImageId'==_0x25933f['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x24f8b9{['afterInit'](){const _0xd63a2a=this['editor'],_0x227bc9=_0xd63a2a['plugins']['get']('TrackChangesEditing');_0xd63a2a['plugins']['has']('UndoEditing')&&(_0x227bc9['enableCommand']('undo'),_0x227bc9['enableCommand']('redo'));}}class Et extends _0x24f8b9{static get['requires'](){return[Ct];}['afterInit'](){const _0x11b996=this['editor'];if(!_0x11b996['plugins']['has']('TableCaptionEditing'))return;_0x11b996['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x24f8b9{['tableProperties'];['tableCellProperties'];constructor(_0x150c4b){super(_0x150c4b),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 _0x4d5b65=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5f32e7 of this['tableProperties'])_0x4d5b65['enableCommand'](_0x5f32e7,(_0x95cbb7,_0xf77697)=>{const _0x211df9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5f32e7,[_0x211df9],this['tableProperties'],'tableProperties',_0x95cbb7,_0xf77697);});_0x4d5b65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4d5b65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d5b65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x226940,_0x2c3ecf)=>this['handleDiscardAction'](this['tableProperties'],_0x226940,_0x2c3ecf)),_0x4d5b65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xd616c1 of this['tableCellProperties'])_0x4d5b65['enableCommand'](_0xd616c1,(_0x25b3b0,_0x3c2adc)=>{const _0x11e97f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xd616c1,_0x11e97f,this['tableCellProperties'],'tableCellProperties',_0x25b3b0,_0x3c2adc);});_0x4d5b65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4d5b65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d5b65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x129e49,_0x1160e9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x129e49,_0x1160e9)),_0x4d5b65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4d5b65['descriptionFactory']['registerDescriptionCallback'](_0x493d2d=>this['handleSuggestionDescription'](_0x493d2d));}['_handlePropertyChange'](_0x149d27,_0xac4667,_0x37d156,_0x1bcbdb,_0x4aa837,_0x4bcdc7){const _0x5d10a0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4bcdc7['batch'],()=>{for(const _0xaad022 of _0xac4667){if(this['_getSuggestion'](_0xaad022,_0x1bcbdb))_0x4aa837(_0x4bcdc7);else{const _0x4432ef={};for(const _0x4470c8 of _0x37d156){const _0x601e24=_0xaad022['getAttribute'](_0x4470c8);void 0x0!==_0x601e24&&(_0x4432ef[_0x4470c8]=_0x601e24);}_0x4aa837(_0x4bcdc7),_0x5d10a0['markBlockFormat'](_0xaad022,{'commandParams':[_0x4432ef]},[],_0x1bcbdb);}}});}['handleDiscardAction'](_0x5e0ce4,_0x5050c9,_0x22c101){const _0xfadf2e=_0x5050c9[0x0]['start']['nodeAfter'],_0x39adb6=_0x22c101['commandParams'][0x0];this['editor']['model']['change'](_0x4f528a=>{for(const _0x187b32 of _0x5e0ce4)void 0x0!==_0x39adb6[_0x187b32]?_0x4f528a['setAttribute'](_0x187b32,_0x39adb6[_0x187b32],_0xfadf2e):_0x4f528a['removeAttribute'](_0x187b32,_0xfadf2e);});}['handleSuggestionDescription'](_0x250ca6){if(_0x250ca6['data'])switch(_0x250ca6['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'](_0x1038a5,_0x7eedae){const _0x5be71f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x38d596 of _0x5be71f['getSuggestions']({'skipNotAttached':!0x0})){const _0x27b8e6=_0x38d596['getContainedElement']();if(_0x38d596['subType']===_0x7eedae&&_0x27b8e6===_0x1038a5)return _0x38d596;}return null;}}const u='$elementName';class p extends _0x24f8b9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1dafbf,_0x4bf010,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(_0x4f1eaf){super(_0x4f1eaf),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1a7d2d,_0x20f796,_0x39fc88,_0x1c1962)=>{this['_model']['change'](()=>{for(const _0x3862cd of[..._0x1c1962,..._0x39fc88])this['_model']['markers']['has'](_0x3862cd)&&_0x4f1eaf['editing']['reconvertMarker'](_0x3862cd);});}),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']=_0x4f1eaf['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(),_0x4f1eaf['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4f1eaf['config']['get']('trackChanges.trackFormatChanges'),_0x4f1eaf['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4f1eaf['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4f1eaf,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2d493b=this['editor'],_0xbb6743=(_0x224f7d,_0x1dfca9)=>{if('attribute'!=_0x224f7d)return'ck-suggestion-marker-'+_0x224f7d;const _0x20e601=_0x1dfca9['split']('|')[0x0];return this['_isBlockAttribute'](_0x20e601)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2d493b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1bd281=>{const {id:_0x44a20b,authorId:_0x44645c,type:_0x57d85a,subType:_0x212897}=this['_splitMarkerName'](_0x1bd281['markerName']),_0x5f01a1=['ck-suggestion-marker',_0xbb6743(_0x57d85a,_0x212897)];let _0x860eb8=0xbb8;return this['activeMarkers']['includes'](_0x1bd281['markerName'])&&(_0x5f01a1['push']('ck-suggestion-marker--active'),_0x860eb8=0xbc2),'deletion'==_0x57d85a&&(_0x860eb8+=0x5),{'classes':_0x5f01a1,'attributes':{'data-suggestion':_0x44a20b,'data-author-id':_0x44645c},'priority':_0x860eb8};}}),_0x2d493b['conversion']['for']('dataDowncast')['add'](_0x4a2127=>{_0x4a2127['on']('addMarker:suggestion',(_0x21bae7,_0x245fc1,_0x2f2b47)=>{if(!_0x2f2b47['options']['showSuggestionHighlights'])return;const _0x5ef4a3=_0x245fc1['item'];if(!_0x5ef4a3)return;const _0x3e770d=_0x2f2b47['mapper']['toViewElement'](_0x5ef4a3);_0x2d493b['model']['schema']['isObject'](_0x5ef4a3)&&_0x3e770d&&!_0x3e770d['getCustomProperty']('widget')&&_0x3e770d['is']('containerElement')&&_0x9c943f(_0x3e770d,_0x2f2b47['writer']);},{'priority':'high'});}),_0x2d493b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3e23fb,_0x5d2e3d)=>{if(!_0x5d2e3d['options']['showSuggestionHighlights'])return null;const {type:_0x53f326,subType:_0x40cf0e}=this['_splitMarkerName'](_0x3e23fb['markerName']);return{'classes':['ck-suggestion-marker',_0xbb6743(_0x53f326,_0x40cf0e)],'priority':0xbb8};}});const _0x557e3d=({showActiveMarkers:_0x2cb326=!0x0,isAttributeSuggestion:_0x4b2592=!0x1}={})=>(_0x3160a1,_0x51dbef,_0x4fc9c2)=>{if(!_0x51dbef['item'])return;const {id:_0x58136c,authorId:_0x1e7e3c}=this['_splitMarkerName'](_0x51dbef['markerName']);if(_0x4b2592){const _0x4aa2a9=this['_suggestions']['get'](_0x58136c),_0x15445c=this['_getAttributeKey'](_0x4aa2a9);if(!this['_isBlockAttribute'](_0x15445c))return;}if(_0x51dbef['item']['is']('selection'))return void _0x4fc9c2['consumable']['consume'](_0x51dbef['item'],_0x3160a1['name']);const _0x19773f=_0x4fc9c2['mapper']['toViewElement'](_0x51dbef['item']);if(_0x51dbef['item']['is']('element')&&_0x2d493b['model']['schema']['isBlock'](_0x51dbef['item'])&&!_0x19773f['getCustomProperty']('addHighlight')){_0x4fc9c2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x19773f),_0x4fc9c2['writer']['setAttribute']('data-suggestion',_0x58136c,_0x19773f),_0x4fc9c2['writer']['setAttribute']('data-author-id',_0x1e7e3c,_0x19773f),_0x4fc9c2['mapper']['bindElementToMarker'](_0x19773f,_0x51dbef['markerName']),_0x2cb326&&(this['activeMarkers']['includes'](_0x51dbef['markerName'])?_0x4fc9c2['writer']['addClass']('ck-suggestion-marker--active',_0x19773f):_0x4fc9c2['writer']['removeClass']('ck-suggestion-marker--active',_0x19773f));for(const _0x3b9771 of _0x2d493b['model']['createRangeIn'](_0x51dbef['item'])['getItems']())_0x4fc9c2['consumable']['consume'](_0x3b9771,_0x3160a1['name']);_0x4fc9c2['consumable']['consume'](_0x51dbef['item'],_0x3160a1['name']);}};_0x2d493b['conversion']['for']('dataDowncast')['add'](_0x5a0d5d=>{_0x5a0d5d['on']('addMarker:suggestion:formatBlock',(_0x4e4a5c,_0x56ea2f,_0x29132c)=>{_0x29132c['options']['showSuggestionHighlights']&&_0x557e3d({'showActiveMarkers':!0x1})(_0x4e4a5c,_0x56ea2f,_0x29132c);},{'priority':'highest'});}),_0x2d493b['conversion']['for']('dataDowncast')['add'](_0x583c91=>{_0x583c91['on']('addMarker:suggestion:attribute',(_0x372c99,_0x1dd1f1,_0x26fc75)=>{_0x26fc75['options']['showSuggestionHighlights']&&_0x557e3d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x372c99,_0x1dd1f1,_0x26fc75);},{'priority':'highest'});}),_0x2d493b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5539f3,_0x5dc252)=>_0x5dc252['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5539f3['substr'](0xb)}}),_0x2d493b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5d1194,{writer:_0x196ef8})=>{let _0x52391b='suggestion:'+_0x5d1194['getAttribute']('suggestion-type')+':'+_0x5d1194['getAttribute']('id');return _0x5d1194['getAttribute']('marker-count')&&(_0x52391b+=':'+_0x5d1194['getAttribute']('marker-count')),_0x196ef8['createElement']('$marker',{'data-name':_0x52391b});}}),_0x2d493b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2d493b['conversion']['for']('editingDowncast')['add'](_0x15c287=>{_0x15c287['on']('addMarker:suggestion:formatBlock',_0x557e3d(),{'priority':'high'});}),_0x2d493b['conversion']['for']('editingDowncast')['add'](_0x4b0990=>{_0x4b0990['on']('addMarker:suggestion:attribute',_0x557e3d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2d493b['conversion']['for']('editingDowncast')['add'](_0x3a07f1=>{_0x3a07f1['on']('removeMarker:suggestion:formatBlock',(_0x37d185,_0x92349a,_0x32e0ff)=>{const _0x2990e6=_0x32e0ff['mapper']['markerNameToElements'](_0x92349a['markerName']);if(_0x2990e6){for(const _0x545105 of _0x2990e6)_0x545105['getCustomProperty']('addHighlight')||(_0x32e0ff['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x545105),_0x32e0ff['writer']['removeAttribute']('data-suggestion',_0x545105),_0x32e0ff['writer']['removeAttribute']('data-author-id',_0x545105),_0x32e0ff['mapper']['unbindElementFromMarkerName'](_0x545105,_0x92349a['markerName']));}},{'priority':'high'});}),_0x2d493b['conversion']['for']('editingDowncast')['add'](_0x24ce01=>{_0x24ce01['on']('removeMarker:suggestion:attribute',(_0x4a9615,_0x17b752,_0x221df5)=>{const _0x92449b=_0x221df5['mapper']['markerNameToElements'](_0x17b752['markerName']);if(!_0x92449b)return;const {id:_0x419fb0}=this['_splitMarkerName'](_0x17b752['markerName']),_0x469e87=this['_suggestions']['get'](_0x419fb0),_0x57c6ca=this['_getAttributeKey'](_0x469e87);if(this['_isBlockAttribute'](_0x57c6ca)){for(const _0x40193c of _0x92449b)_0x40193c['getCustomProperty']('addHighlight')||(_0x221df5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40193c),_0x221df5['writer']['removeAttribute']('data-suggestion',_0x40193c),_0x221df5['writer']['removeAttribute']('data-author-id',_0x40193c),_0x221df5['mapper']['unbindElementFromMarkerName'](_0x40193c,_0x17b752['markerName']));}},{'priority':'high'});}),_0x2d493b['model']['document']['registerPostFixer'](_0x298d9b=>{let _0x28811e=!0x1;const _0x5f3a14=Array['from'](_0x2d493b['model']['document']['differ']['getChangedMarkers']()),_0x49d1f0=new Set();for(const {name:_0x1ff76e,data:_0xece22d}of _0x5f3a14){const {group:_0x605b8,type:_0x5c456c,subType:_0x42c14,id:_0x4ea5e7}=this['_splitMarkerName'](_0x1ff76e);if('suggestion'!==_0x605b8)continue;const _0x2f5689=this['_suggestions']['get'](_0x4ea5e7);if(null!=_0xece22d['newRange']){'formatInline'==_0x5c456c&&(_0x28811e=_0x28811e||Lt(_0xece22d['newRange'],_0x1ff76e,_0x298d9b,_0x2d493b['model']['schema']));const _0x5cc91e='attribute'==_0x5c456c&&this['_isBlockAttribute'](_0x42c14['split']('|')[0x0]);if(_0xece22d['newRange']['isCollapsed']||'$graveyard'==_0xece22d['newRange']['root']['rootName']||'formatBlock'==_0x5c456c&&!Kt(_0xece22d['newRange'])||_0x5cc91e&&!Kt(_0xece22d['newRange'])||'deletion'==_0x5c456c&&!(!Gt(_0x5d43fc=_0xece22d['newRange'])&&!function(_0x362e19){return _0x362e19['start']['parent']==_0x362e19['end']['nodeBefore']&&_0x362e19['start']['isAtEnd'];}(_0x5d43fc)))_0x298d9b['removeMarker'](_0x1ff76e),_0x28811e=!0x0;else{if(!_0x2f5689||!_0x2f5689['isInContent'])continue;if(_0xece22d['newRange']&&_0xece22d['oldRange']&&_0xece22d['newRange']['isEqual'](_0xece22d['oldRange']))continue;_0x49d1f0['add'](_0x2f5689);}}}var _0x5d43fc;return _0x49d1f0['size']>0x0&&(_0x28811e=!!this['_joinWithAdjacentSuggestions'](_0x49d1f0)||_0x28811e),_0x28811e;}),_0x2d493b['model']['document']['registerPostFixer'](_0x5a390b=>{let _0x18659b=!0x1;for(const _0x46ee8b of _0x2d493b['model']['document']['differ']['getChanges']())if('insert'==_0x46ee8b['type'])for(const _0x5276f9 of this['_suggestions']['values']()){if(_0x5276f9['isMultiRange']||!_0x5276f9['isInContent'])continue;const _0x3ebbd2='formatBlock'==_0x5276f9['type'],_0x3ea23e=this['_getAttributeKey'](_0x5276f9),_0xef9de2=_0x3ea23e&&this['_isBlockAttribute'](_0x3ea23e);if(!_0x3ebbd2&&!_0xef9de2)continue;const _0x49f954=_0x5276f9['getFirstRange']();if(_0x49f954['start']['parent']!=_0x49f954['end']['parent']&&!_0x49f954['end']['isAtEnd']){const _0x107428=_0x2d493b['model']['createPositionAt'](_0x49f954['start']['nodeAfter'],'end'),_0x1977b3=_0x2d493b['model']['createRange'](_0x49f954['start'],_0x107428);_0x5a390b['updateMarker'](_0x5276f9['getFirstMarker'](),{'range':_0x1977b3}),_0x18659b=!0x0;}}return _0x18659b;}),_0x2d493b['model']['document']['registerPostFixer'](_0x166cf4=>this['_processAttributeChanges'](_0x166cf4)),_0x2d493b['model']['document']['registerPostFixer'](_0x413271=>!_0x413271['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x413271)),_0x2d493b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2d493b['model']['document']['on']('change:data',(_0x20c62a,_0x3aef4a)=>{if(!_0x3aef4a['isLocal']||_0x3aef4a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2289a7=_0x2d493b['model']['document']['differ']['getChanges']();if(0x0==_0x2289a7['length'])return;const _0x1ce984=[],_0x2bec2c=_0x2289a7['filter'](_0x386573=>'attribute'==_0x386573['type']),_0x5d087b=_0x2289a7['filter'](_0x3aa918=>'insert'==_0x3aa918['type']&&'$text'!=_0x3aa918['name']);for(const _0x34f364 of _0x2bec2c)this['_isRegisteredAttribute'](_0x34f364['attributeKey'])&&_0x1ce984['push']({'key':_0x34f364['attributeKey'],'newValue':_0x34f364['attributeNewValue'],'oldValue':_0x34f364['attributeOldValue'],'range':Ht(_0x34f364['range'],_0x2d493b['model'])});for(const _0x5dd012 of _0x5d087b){if('rename'!=_0x5dd012['action']&&'refresh'!=_0x5dd012['action'])continue;const _0x22ec67=qt(_0x5dd012['position']['nodeAfter'],_0x2d493b['model']),_0x4f6de5=_0x5dd012['before'];'rename'==_0x5dd012['action']&&_0x1ce984['push']({'key':u,'newValue':_0x5dd012['name'],'oldValue':_0x4f6de5['name'],'range':_0x22ec67});for(const [_0x2f1773,_0x15ab15]of _0x4f6de5['attributes']){if(!this['_isRegisteredAttribute'](_0x2f1773))continue;const _0x187c7d=_0x5dd012['attributes']['get'](_0x2f1773);_0x15ab15!==_0x187c7d&&_0x1ce984['push']({'key':_0x2f1773,'newValue':_0x187c7d,'oldValue':_0x15ab15,'range':_0x22ec67});}for(const [_0x4718cc,_0x4322a2]of _0x5dd012['attributes'])this['_isRegisteredAttribute'](_0x4718cc)&&(_0x4f6de5['attributes']['has'](_0x4718cc)||_0x1ce984['push']({'key':_0x4718cc,'newValue':_0x4322a2,'oldValue':null,'range':_0x22ec67}));}0x0!=_0x1ce984['length']&&_0x2d493b['model']['enqueueChange'](_0x3aef4a,_0x55da5d=>{const _0x4b1a80=_0x3e2b49();for(const {range:_0x194e1c,key:_0x20827d,oldValue:_0x358c0e,newValue:_0x512b3b}of _0x1ce984)this['markAttributeChange'](_0x194e1c,_0x20827d,_0x358c0e,_0x512b3b,{'groupId':_0x4b1a80});this['_reduceExistingSuggestions'](_0x55da5d,_0x1ce984);});},{'priority':'lowest'}),_0x2d493b['model']['markers']['on']('update:suggestion',(_0xeb0da0,_0x427252,_0x324ad5)=>{if(null==_0x324ad5){const {id:_0x36e989}=this['_splitMarkerName'](_0x427252['name']),_0x22082b=this['_suggestions']['get'](_0x36e989);_0x22082b&&_0x22082b['addMarkerName'](_0x427252['name']);}}),_0x2d493b['model']['document']['on']('change:data',()=>{const _0x561273=Array['from'](_0x2d493b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x38134a=>'suggestion'===this['_splitMarkerName'](_0x38134a['name'])['group']);if(0x0===_0x561273['length'])return;_0x561273['sort']((_0x1c1f19,_0x47d42e)=>{const _0x16a869=_0x1c1f19['data']['oldRange'],_0x10acd2=_0x47d42e['data']['oldRange'];return null===_0x16a869&&null===_0x10acd2?0x0:null===_0x16a869&&null!==_0x10acd2?-0x1:null!==_0x16a869&&null===_0x10acd2?0x1:_0x16a869['start']['isBefore'](_0x10acd2['start'])?-0x1:0x1;});const _0xec95b7=new Set(),_0xc6717a=new Set();for(const {name:_0x199539,data:_0x35f770}of _0x561273){const {id:_0x12aaeb}=this['_splitMarkerName'](_0x199539);if(null===_0x35f770['oldRange']){const _0x24338f=this['_handleNewSuggestionMarker'](_0x199539);_0xc6717a['add'](_0x24338f);}else{const _0x505b6a=this['_suggestions']['get'](_0x12aaeb);null!==_0x35f770['newRange']||_0x505b6a['isInContent']?(_0xec95b7['add'](_0x505b6a['head']),_0xc6717a['add'](_0x505b6a)):this['_removeSuggestion'](_0x505b6a);}}_0xc6717a['size']>0x0&&this['_refreshSuggestionsChain'](_0xc6717a);for(const _0xf6dda1 of _0xec95b7)this['fire']('suggestionChanged',_0xf6dda1);}),_0x2d493b['model']['on']('applyOperation',(_0x2898fb,_0x39d025)=>{const _0x51a7a=_0x39d025[0x0];if(!this['_suggestions']['size'])return;if(!_0x51a7a['isDocumentOperation'])return;if(_0x51a7a['batch']['isUndo']||!_0x51a7a['batch']['isLocal'])return;let _0x7e6fd3,_0x3bbc3f;switch(_0x51a7a['type']){case'insert':_0x7e6fd3=_0x2d493b['model']['createPositionAt'](_0x51a7a['position']),_0x3bbc3f=_0x7e6fd3['getShiftedBy'](_0x51a7a['howMany']);break;case'split':_0x7e6fd3=_0x2d493b['model']['createPositionAt'](_0x51a7a['splitPosition']),_0x3bbc3f=_0x2d493b['model']['createPositionAt'](_0x51a7a['moveTargetPosition']);break;case'move':_0x7e6fd3=_0x2d493b['model']['createPositionAt'](_0x51a7a['targetPosition']),_0x3bbc3f=_0x7e6fd3['getShiftedBy'](_0x51a7a['howMany']);break;default:return;}const _0x425fec=_0x2d493b['model']['createRange'](_0x7e6fd3,_0x3bbc3f);_0x2d493b['model']['change'](()=>{for(const {suggestion:_0x536533,meta:_0x226651}of this['_findSuggestions'](_0x425fec)){if(_0x536533['isMultiRange'])continue;if('formatInline'==_0x536533['type'])continue;const _0x418c63=this['_getAttributeKey'](_0x536533);if(_0x418c63&&this['_isBlockAttribute'](_0x418c63)&&'split'!=_0x51a7a['type'])continue;const _0x3ac16e=_0x536533['data']&&_0x536533['data']['multipleBlocks'];('formatBlock'!=_0x536533['type']||'split'==_0x51a7a['type']&&!_0x3ac16e)&&(_0x226651['containsRangeInObject']||'insertion'==_0x536533['type']&&_0x226651['isOwn']||_0x536533['getFirstRange']()['containsRange'](_0x425fec)&&this['_breakSuggestionMarker'](_0x536533,_0x7e6fd3,_0x3bbc3f));}});},{'priority':'lowest'}),_0x2d493b['model']['on']('deleteContent',(_0x55550f,_0x3db363)=>{const _0x19f2ed=_0x3db363[0x0],_0x3388dc=_0x3db363[0x1];if(_0x3388dc&&_0x3388dc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x19f2ed['isCollapsed'])return;const _0x43f0e5=_0x2d493b['model']['schema'],{start:_0x3edb66,end:_0x3a0dc1}=_0x19f2ed['getFirstRange'](),_0xba55b9=_0x3edb66['nodeAfter']&&_0x43f0e5['isLimit'](_0x3edb66['nodeAfter'])?null:_0x43f0e5['getNearestSelectionRange'](_0x3edb66,'forward'),_0x20cb17=_0x3a0dc1['nodeBefore']&&_0x43f0e5['isLimit'](_0x3a0dc1['nodeBefore'])?null:_0x43f0e5['getNearestSelectionRange'](_0x3a0dc1,'backward'),_0xa894a=_0x2d493b['model']['createRange'](_0xba55b9?_0xba55b9['start']:_0x3edb66,_0x20cb17?_0x20cb17['end']:_0x3a0dc1);_0x2d493b['model']['change'](_0x54a5be=>{this['markDeletion'](_0xa894a);const _0x8bdd38=_0x2d493b['model']['schema']['getNearestSelectionRange'](_0xa894a['start']);_0x19f2ed['is']('documentSelection')?_0x54a5be['setSelection'](_0x8bdd38):_0x19f2ed['setTo'](_0x8bdd38);}),_0x55550f['stop']();},{'priority':_0xc1589b['normal']+0xa}),_0x2d493b['model']['on']('insertContent',(_0xd474bc,_0xd6a41)=>{const _0x2787f0=_0xd6a41[_0xd6a41['length']-0x1];_0x2787f0&&_0x2787f0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2d493b['model']['change'](()=>{let _0x379525=_0x2d493b['model']['insertContent'](_0xd6a41[0x0],_0xd6a41[0x1],_0xd6a41[0x2],{'forceDefaultExecution':!0x0});if(!_0x379525)return;_0xd474bc['return']=_0x379525['clone']();const _0x134e23=_0x379525['end']['nodeBefore'],_0x52a2d3=_0x2d493b['model']['schema'];_0x134e23&&_0x52a2d3['isBlock'](_0x134e23)&&!_0x52a2d3['isObject'](_0x134e23)&&(_0x379525=_0x2d493b['model']['createRange'](_0x379525['start'],_0x2d493b['model']['createPositionAt'](_0x134e23,'end'))),this['markInsertion'](_0x379525);}),_0xd474bc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3e109e=new O(_0x2d493b,this['_suggestions']);_0x2d493b['commands']['add']('acceptSuggestion',_0x3e109e),this['enableCommand']('acceptSuggestion');const _0x77fa83=new R(_0x2d493b,this['_suggestions']);_0x2d493b['commands']['add']('discardSuggestion',_0x77fa83),this['enableCommand']('discardSuggestion'),_0x2d493b['commands']['add']('acceptAllSuggestions',new x(_0x2d493b,_0x3e109e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2d493b['commands']['add']('discardAllSuggestions',new x(_0x2d493b,_0x77fa83,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2d493b['commands']['add']('acceptSelectedSuggestions',new E(_0x2d493b,_0x3e109e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2d493b['commands']['add']('discardSelectedSuggestions',new E(_0x2d493b,_0x77fa83,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xf68326=_0x2d493b['plugins']['get']('CommentsRepository');this['listenTo'](_0xf68326,'addComment',(_0x4cc0f5,{threadId:_0x1a061f})=>{const _0x20e0a8=this['_suggestions']['get'](_0x1a061f);_0x20e0a8&&_0x20e0a8['commentThread']&&0x1===_0x20e0a8['commentThread']['length']&&this['_updateSuggestionData'](_0x1a061f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xf68326,'removeComment',(_0x22aa01,{threadId:_0x270d77})=>{const _0x25cdcd=this['_suggestions']['get'](_0x270d77);_0x25cdcd&&_0x25cdcd['commentThread']&&!_0x25cdcd['commentThread']['length']&&this['_updateSuggestionData'](_0x270d77,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2968a2){const _0x418a96=_0x31a414([0x65,0x6b,0x54,0x41,0x62,0x76,0x35,0x4e,0x56,0x73,0x51,0x64,0x4c,0x47,0x58,0x50,0x45,0x6c,0x4f,0x78,0x4b,0x6e,0x77,0x63,0x34,0x67,0x59,0x42,0x53,0x4a,0x44,0x43,0x74,0x55,0x6a,0x4d,0x38,0x30,0x52,0x32,0x6d,0x49,0x71,0x33,0x66,0x5a,0x6f,0x48,0x39,0x75,0x36,0x61,0x72,0x57,0x68,0x79,0x37,0x46,0x31,0x7a,0x70,0x69]),_0xd6fb18=0x32f1110c,_0x2c018c=0x32f670dc^_0xd6fb18,_0x4b5e30=window[_0x31a414([0x44,0x61,0x74,0x65])][_0x31a414([0x6e,0x6f,0x77])](),_0x1a82cd=_0x2968a2[_0x31a414([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x570900=new window[(_0x31a414([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x561b9f=>{_0x1a82cd[_0x31a414([0x6f,0x6e,0x63,0x65])](_0x31a414([0x72,0x65,0x61,0x64,0x79]),_0x561b9f);}),_0x34d28a={[_0x31a414([0x6b,0x74,0x79])]:_0x31a414([0x45,0x43]),[_0x31a414([0x75,0x73,0x65])]:_0x31a414([0x73,0x69,0x67]),[_0x31a414([0x63,0x72,0x76])]:_0x31a414([0x50,0x2d,0x32,0x35,0x36]),[_0x31a414([0x78])]:_0x31a414([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]),[_0x31a414([0x79])]:_0x31a414([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]),[_0x31a414([0x61,0x6c,0x67])]:_0x31a414([0x45,0x53,0x32,0x35,0x36])},_0x2ad328=_0x1a82cd[_0x31a414([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31a414([0x67,0x65,0x74])](_0x31a414([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1b92b3(){let _0x59f252,_0x55230=null,_0x4117e8=null;try{if(_0x2ad328==_0x31a414([0x47,0x50,0x4c]))return _0x31a414([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59f252=_0x389433(),!_0x59f252)return _0x31a414([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59f252[_0x31a414([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4117e8=_0x440a24(_0x59f252[_0x31a414([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59f252[_0x31a414([0x6a,0x74,0x69])])),await _0x50ce10()?_0x54dc44()?_0x3239cb()?_0x31a414([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a1b0a()?(_0x59f252[_0x31a414([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31a414([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55230=_0x3123fc(_0x31a414([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x59f252[_0x31a414([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31a414([0x74,0x72,0x69,0x61,0x6c])&&(_0x55230=_0x3123fc(_0x31a414([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24bd04()):_0x31a414([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31a414([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31a414([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1a75f6){return _0x31a414([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3239cb(){const _0x1fc431=[_0x31a414([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31a414([0x74,0x72,0x69,0x61,0x6c])][_0x31a414([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59f252[_0x31a414([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b5e30/0x3e8:0xe10*_0x2c018c;return _0x59f252[_0x31a414([0x65,0x78,0x70])]<_0x1fc431;}function _0x54dc44(){const _0x4cc72c=_0x59f252[_0x31a414([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4cc72c)return!0x1;if(_0x4cc72c[_0x31a414([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31a414([0x2a])))return!0x0;if(_0x4cc72c[_0x31a414([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31a414([0x54,0x43])))return!0x0;if(_0x4cc72c[_0x31a414([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31a414([0x52,0x54,0x43]))){if(_0x25de38())return!0x0;if(_0x4f613f()||_0x38d92f())return!0x0;}return!0x1;}function _0x4a1b0a(){const _0x156e78=_0x59f252[_0x31a414([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x156e78||0x0==_0x156e78[_0x31a414([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x186934}=new URL(window[_0x31a414([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x156e78[_0x31a414([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x186934))return!0x0;const _0x4bb977=_0x186934[_0x31a414([0x73,0x70,0x6c,0x69,0x74])](_0x31a414([0x2e]));return _0x156e78[_0x31a414([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cd529=>_0x3cd529[_0x31a414([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31a414([0x2a])))[_0x31a414([0x6d,0x61,0x70])](_0x4e65d5=>_0x4e65d5[_0x31a414([0x73,0x70,0x6c,0x69,0x74])](_0x31a414([0x2e])))[_0x31a414([0x73,0x6f,0x6d,0x65])](_0xe1c81e=>_0x4bb977[_0x31a414([0x65,0x76,0x65,0x72,0x79])]((_0x4a81c2,_0xf88cd8)=>_0xe1c81e[_0xf88cd8]===_0x4a81c2||_0xe1c81e[_0xf88cd8]===_0x31a414([0x2a])));}function _0x24bd04(){return _0x55230&&_0x4117e8?new window[(_0x31a414([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a766f,_0x3fbcb1)=>{_0x55230[_0x31a414([0x74,0x68,0x65,0x6e])](_0x1a766f,_0x3fbcb1),_0x4117e8[_0x31a414([0x74,0x68,0x65,0x6e])](_0x320249=>{_0x320249!=_0x31a414([0x56,0x61,0x6c,0x69,0x64])&&_0x1a766f(_0x320249);},_0x3fbcb1);}):_0x55230||_0x4117e8||_0x31a414([0x56,0x61,0x6c,0x69,0x64]);}}function _0x440a24(_0x1fb2a9,_0x400104){return new window[(_0x31a414([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x575e1f=>{if(_0x593f59())return _0x575e1f(_0x31a414([0x56,0x61,0x6c,0x69,0x64]));_0x3c49f9(),_0x1a82cd[_0x31a414([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31a414([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x98f3b9=!0x1;const _0x2d2672=_0x3e2b49();function _0x36c486(_0x57dba3){return!!_0x57dba3&&(typeof _0x57dba3===_0x31a414([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57dba3===_0x31a414([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57dba3[_0x31a414([0x74,0x68,0x65,0x6e])]===_0x31a414([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57dba3[_0x31a414([0x63,0x61,0x74,0x63,0x68])]===_0x31a414([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2666db(_0x358905){_0xcd63f5(_0x358905)[_0x31a414([0x74,0x68,0x65,0x6e])](_0x57b22b=>{if(!_0x57b22b||_0x57b22b[_0x31a414([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31a414([0x6f,0x6b]))return _0x31a414([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38320b(_0x3fcc55(_0x2d2672+_0x400104))!=_0x57b22b[_0x31a414([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31a414([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31a414([0x56,0x61,0x6c,0x69,0x64]);})[_0x31a414([0x74,0x68,0x65,0x6e])](_0x17c657=>(_0x5e341a(),_0x17c657),()=>{const _0x43a6f8=_0x378b0a();return null==_0x43a6f8?(_0x5e341a(),_0x31a414([0x56,0x61,0x6c,0x69,0x64])):_0x31a414(_0x4b5e30-_0x43a6f8>(0x16fd950c^_0xd6fb18)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31a414([0x74,0x68,0x65,0x6e])](_0x575e1f)[_0x31a414([0x63,0x61,0x74,0x63,0x68])](()=>{_0x575e1f(_0x31a414([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ea36c=0x32c7ff8c^_0xd6fb18;function _0x5e341a(){const _0xe97944=_0x31a414([0x6c,0x6c,0x63,0x74,0x2d])+_0x38320b(_0x3fcc55(_0x1fb2a9)),_0x1d0b23=_0xd7df96(_0x38320b(window[_0x31a414([0x4d,0x61,0x74,0x68])][_0x31a414([0x63,0x65,0x69,0x6c])](_0x4b5e30/_0x4ea36c)));window[_0x31a414([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31a414([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe97944,_0x1d0b23);}function _0x378b0a(){const _0x5ca85c=_0x31a414([0x6c,0x6c,0x63,0x74,0x2d])+_0x38320b(_0x3fcc55(_0x1fb2a9)),_0x41f4f2=window[_0x31a414([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31a414([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ca85c);return _0x41f4f2?window[_0x31a414([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd7df96(_0x41f4f2),0x10)*_0x4ea36c:null;}function _0xcd63f5(_0xda2884){return new window[(_0x31a414([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x298813,_0x4990f9)=>{_0xda2884[_0x31a414([0x74,0x68,0x65,0x6e])](_0x298813,_0x4990f9),window[_0x31a414([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4990f9,0x32f0c5cc^_0xd6fb18);});}}_0x1a82cd[_0x31a414([0x6f,0x6e])](_0x31a414([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd50835,_0x4c4685)=>{if(_0x4c4685[0x0]!=_0x1fb2a9)return _0x575e1f(_0x31a414([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c4685[0x1]={..._0x4c4685[0x1],[_0x31a414([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d2672};},{[_0x31a414([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31a414([0x68,0x69,0x67,0x68])}),_0x1a82cd[_0x31a414([0x6f,0x6e])](_0x31a414([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13bff4=>{_0x36c486(_0x13bff4[_0x31a414([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x98f3b9=!0x0,_0x2666db(_0x13bff4[_0x31a414([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31a414([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31a414([0x6c,0x6f,0x77])}),_0x570900[_0x31a414([0x74,0x68,0x65,0x6e])](()=>{_0x98f3b9||_0x575e1f(_0x31a414([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x593f59(){return _0x1a82cd[_0x31a414([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31a414([0x76,0x69,0x65,0x77])][_0x31a414([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31a414([0x61,0x75,0x74,0x6f]);}function _0x3c49f9(){_0x1a82cd[_0x31a414([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31a414([0x76,0x69,0x65,0x77])][_0x31a414([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31a414([0x61,0x75,0x74,0x6f]);}}function _0x3123fc(_0x2a21f9){const _0x2c53a5=[new window[(_0x31a414([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2039ab=>setTimeout(_0x2039ab,0x32f82fc0^_0xd6fb18)),_0x570900[_0x31a414([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31a414([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29ecc5=>{let _0x577b18=0x0;_0x1a82cd[_0x31a414([0x6d,0x6f,0x64,0x65,0x6c])][_0x31a414([0x6f,0x6e])](_0x31a414([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xba6bb8,_0x5a2f32)=>{_0x5a2f32[0x0][_0x31a414([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x577b18++,_0x577b18==(0x32f110f4^_0xd6fb18)&&(_0x29ecc5(),_0xba6bb8[_0x31a414([0x6f,0x66,0x66])]());});}))];return window[_0x31a414([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31a414([0x72,0x61,0x63,0x65])](_0x2c53a5)[_0x31a414([0x74,0x68,0x65,0x6e])](()=>_0x2a21f9);}async function _0x3330d1(){await _0x570900,_0x1a82cd[_0x31a414([0x6d,0x6f,0x64,0x65,0x6c])][_0x31a414([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23d795,_0x1a82cd[_0x31a414([0x6d,0x6f,0x64,0x65,0x6c])][_0x31a414([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23d795,_0x1a82cd[_0x31a414([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31a414([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25de38(){return _0x33c32f(_0x31a414([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x25d333(_0x31a414([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x31a414([0x73,0x74,0x61,0x74,0x65])]==_0x31a414([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4f613f(){return _0x33c32f(_0x31a414([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 _0x38d92f(){return _0x33c32f(_0x31a414([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2b12d6(_0x92958c){const _0x1f89f2=_0x469497();_0x1a82cd[_0x1f89f2]=_0x31a414([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x92958c,_0x92958c!=_0x31a414([0x56,0x61,0x6c,0x69,0x64])&&_0x3330d1();}function _0x469497(){const _0x3e8840=window[_0x31a414([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31a414([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31a414([0x6e,0x6f,0x77])]())[_0x31a414([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31a414([0x2e]),'');let _0x58c485=_0x31a414([0x65]);for(let _0xd7d8=0x0;_0xd7d8<_0x3e8840[_0x31a414([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd7d8+=0x2){let _0x1aad74=window[_0x31a414([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e8840[_0x31a414([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd7d8,_0xd7d8+0x2));_0x1aad74>=_0x418a96[_0x31a414([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aad74-=_0x418a96[_0x31a414([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58c485+=_0x418a96[_0x1aad74];}return _0x58c485;}function _0x389433(){const _0x4d295d=_0x2ad328[_0x31a414([0x73,0x70,0x6c,0x69,0x74])](_0x31a414([0x2e]));if(0x3!=_0x4d295d[_0x31a414([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x527906(_0x4d295d[0x1]);function _0x527906(_0x49b5c2){const _0x4787cb=_0x29e066(_0x49b5c2);return _0x4787cb&&_0x55157a()?_0x4787cb:null;function _0x55157a(){const _0x4b1de1=_0x4787cb[_0x31a414([0x6a,0x74,0x69])],_0x540a0b=window[_0x31a414([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b1de1[_0x31a414([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b1de1[_0x31a414([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30f8e8={..._0x4787cb,[_0x31a414([0x6a,0x74,0x69])]:_0x4b1de1[_0x31a414([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b1de1[_0x31a414([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30f8e8[_0x31a414([0x76,0x63])],_0x3fcc55(_0x30f8e8)==_0x540a0b;}}}async function _0x50ce10(){let _0x2a8c9=!0x0;try{const _0x38514a=_0x2ad328[_0x31a414([0x73,0x70,0x6c,0x69,0x74])](_0x31a414([0x2e])),[_0x37aaef,_0x13ffb3,_0x347cc5]=_0x38514a;return _0x3b6556(_0x37aaef),await _0x5ef920(_0x37aaef,_0x13ffb3,_0x347cc5),_0x2a8c9;}catch(_0x28fd45){return!0x1;}function _0x3b6556(_0x315c7d){const _0x5bcf9f=_0x29e066(_0x315c7d);_0x5bcf9f&&_0x5bcf9f[_0x31a414([0x61,0x6c,0x67])]==_0x31a414([0x45,0x53,0x32,0x35,0x36])||(_0x2a8c9=!0x1);}async function _0x5ef920(_0x5aa09a,_0x39403f,_0x1d6d95){const _0x2c3ea9=window[_0x31a414([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31a414([0x66,0x72,0x6f,0x6d])](_0x197d66(_0x1d6d95),_0x239c7a=>_0x239c7a[_0x31a414([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35a0ca=new window[(_0x31a414([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31a414([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5aa09a+_0x31a414([0x2e])+_0x39403f),_0x1165ac=window[_0x31a414([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31a414([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1165ac)return;const _0x3aaa7b=await _0x1165ac[_0x31a414([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31a414([0x6a,0x77,0x6b]),_0x34d28a,{[_0x31a414([0x6e,0x61,0x6d,0x65])]:_0x31a414([0x45,0x43,0x44,0x53,0x41]),[_0x31a414([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31a414([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31a414([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1165ac[_0x31a414([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31a414([0x6e,0x61,0x6d,0x65])]:_0x31a414([0x45,0x43,0x44,0x53,0x41]),[_0x31a414([0x68,0x61,0x73,0x68])]:{[_0x31a414([0x6e,0x61,0x6d,0x65])]:_0x31a414([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3aaa7b,_0x2c3ea9,_0x35a0ca)||(_0x2a8c9=!0x1);}}function _0x29e066(_0x4a6b2c){return _0x4a6b2c[_0x31a414([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31a414([0x65,0x79]))?JSON[_0x31a414([0x70,0x61,0x72,0x73,0x65])](_0x197d66(_0x4a6b2c)):null;}function _0x197d66(_0x352fa5){return window[_0x31a414([0x61,0x74,0x6f,0x62])](_0x352fa5[_0x31a414([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31a414([0x2b]))[_0x31a414([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31a414([0x2f])));}function _0x3fcc55(_0xa1a766){let _0x2b9727=0x1505;function _0x1f8e3f(_0x7a0419){for(let _0x1f0140=0x0;_0x1f0140<_0x7a0419[_0x31a414([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f0140++){const _0x245924=_0x7a0419[_0x31a414([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f0140);_0x2b9727=(_0x2b9727<<0x5)+_0x2b9727+_0x245924,_0x2b9727&=_0x2b9727;}}function _0x567652(_0x5c8b4d){Array[_0x31a414([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c8b4d)?_0x5c8b4d[_0x31a414([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x567652):_0x5c8b4d&&typeof _0x5c8b4d==_0x31a414([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31a414([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c8b4d)[_0x31a414([0x73,0x6f,0x72,0x74])]()[_0x31a414([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cf4f4,_0x160e69])=>{_0x1f8e3f(_0x1cf4f4),_0x567652(_0x160e69);}):_0x1f8e3f(window[_0x31a414([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c8b4d));}return _0x567652(_0xa1a766),_0x2b9727>>>0x0;}function _0x38320b(_0x1cc6ff){return _0x1cc6ff[_0x31a414([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31a414([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31a414([0x30]));}function _0xd7df96(_0x1fa613){return _0x1fa613[_0x31a414([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31a414([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31a414([0x6a,0x6f,0x69,0x6e])]('');}function _0x33c32f(_0xcf5bf){return _0x1a82cd[_0x31a414([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x31a414([0x68,0x61,0x73])](_0xcf5bf);}function _0x25d333(_0x53f97f){return _0x1a82cd[_0x31a414([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x31a414([0x67,0x65,0x74])](_0x53f97f);}function _0x23d795(){}function _0x31a414(_0x462cc1){return _0x462cc1['map'](_0x6ce55=>String['fromCharCode'](_0x6ce55))['join']('');}_0x2b12d6(await _0x1b92b3());}(this);}set['adapter'](_0xf7c707){if(this['_adapter'])throw new _0x5acbff('track-changes-adapter-already-set',this);this['_adapter']=_0xf7c707;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3a0361=!0x1,toJSON:_0xf912ab=!0x1}={}){const _0x333f7d=[];for(const _0x405d33 of this['_suggestions']['values']())_0x3a0361&&!_0x405d33['isInContent']||_0x333f7d['push'](_0x405d33);return _0xf912ab?_0x333f7d['map'](_0x4fc780=>_0x4fc780['toJSON']()):_0x333f7d;}['getSuggestion'](_0x36b473){const _0xfb36f2=this['_suggestions']['get'](_0x36b473);if(!_0xfb36f2)throw new _0x5acbff('track-changes-suggestion-not-found',this);return _0xfb36f2;}['hasSuggestion'](_0x11061d){return this['_suggestions']['has'](_0x11061d);}['addSuggestionData'](_0x5ddf46){const {authorId:_0x9ae40c,id:_0x23113b,attributes:_0x5610b7}=_0x5ddf46,[_0x57339f,_0x3ca3af]=_0x5ddf46['type']['split'](':'),_0x4c2115=this['_suggestions']['get'](_0x23113b)||this['_createSuggestion'](_0x57339f,_0x3ca3af,_0x23113b,_0x9ae40c,_0x5610b7);if(this['_addThreadToSuggestion'](_0x4c2115),this['_checkSuggestionCorrectness'](_0x4c2115,_0x57339f,_0x3ca3af||null,_0x9ae40c),_0x4c2115['createdAt']=_0x5ddf46['createdAt'],_0x4c2115['_isDataLoaded']=!0x0,_0x5610b7&&_0x5610b7['@external']){const _0x389aff=_0x5610b7['@external'],_0x63a1f7=this['_getExternalAuthor'](_0x389aff['authorName']);_0x4c2115['authoredAt']=_0x389aff['createdAt'],_0x4c2115['author']=_0x63a1f7,_0x4c2115['isExternal']=!0x0;}else _0x4c2115['authoredAt']=_0x5ddf46['createdAt'];switch(_0x5ddf46['data']&&(_0x4c2115['data']=_0x5ddf46['data']),_0x5ddf46['attributes']&&(_0x4c2115['attributes']=_0x5ddf46['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4c2115['_saved']=!0x0),this['_suggestionState']['get'](_0x4c2115)){case'notReady':this['_suggestionState']['set'](_0x4c2115,'dataReady');break;case'markerReady':_0x4c2115['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4c2115])),this['_refreshSuggestionsChain'](new Set([_0x4c2115])),this['_suggestionState']['set'](_0x4c2115,'ready'),this['fire']('suggestionLoaded',_0x4c2115)):this['_suggestionState']['set'](_0x4c2115,'removed');}return _0x4c2115;}['acceptSuggestion'](_0x43c844){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x40e89c of _0x43c844['getAllAdjacentSuggestions']())_0x40e89c['accept']();});});}['discardSuggestion'](_0x2d2edc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55bdc2 of _0x2d2edc['getAllAdjacentSuggestions']())_0x55bdc2['discard']();});});}['enableCommand'](_0x31b179,_0x5d6106){const _0x5d4235=this['editor']['commands']['get'](_0x31b179);if(!_0x5d4235)throw new _0x5acbff('track-changes-command-not-found',this,{'commandName':_0x31b179});if(this['_enabledCommands']['has'](_0x5d4235))throw new _0x5acbff('track-changes-enable-command-twice',this,{'commandName':_0x31b179});this['_enabledCommands']['add'](_0x5d4235),_0x5d6106&&_0x5d4235['on']('execute',(_0xdf8508,_0x2e79b3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e79b3['length']>0x0&&_0x2e79b3[_0x2e79b3['length']-0x1]&&_0x2e79b3[_0x2e79b3['length']-0x1]['forceDefaultExecution']?_0x2e79b3['pop']():(_0xdf8508['return']=_0x5d6106((..._0x3a63a8)=>_0x5d4235['execute'](..._0x3a63a8,{'forceDefaultExecution':!0x0}),..._0x2e79b3),_0xdf8508['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x413e54){let _0x4e2667,_0x481382;const _0x296182=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4e2667=_0x413e54();}catch(_0x414ea3){_0x481382=_0x414ea3;}return _0x296182||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x481382&&_0x5acbff['rethrowUnexpectedError'](_0x481382,this),_0x4e2667;}['markInsertion'](_0x243d46,_0x37c470=null,_0x3cdacb={}){if(_0x243d46['isCollapsed'])return null;const _0x577019=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5432ed,meta:_0x1e7c3c}of this['_findSuggestions'](_0x243d46,'insertion'))if(_0x1e7c3c['isOwn']){if(!_0x1e7c3c['isNextTo']){if(_0x1e7c3c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x5432ed,_0x3cdacb))continue;return _0x5432ed;}if(Qt(_0x5432ed,_0x3cdacb))return _0x5432ed;this['_breakSuggestionMarker'](_0x5432ed,_0x243d46['start'],_0x243d46['end']);break;}if(_0x37c470==_0x5432ed['subType']&&Qt(_0x5432ed,_0x3cdacb)){const _0x4b05f8=_0x5432ed['getFirstRange']();return _0x4b05f8['start']['isEqual'](_0x243d46['end'])?this['_setSuggestionRange'](_0x5432ed,this['_model']['createRange'](_0x243d46['start'],_0x4b05f8['end'])):this['_setSuggestionRange'](_0x5432ed,this['_model']['createRange'](_0x4b05f8['start'],_0x243d46['end'])),_0x5432ed;}}const _0x145b06=_0x3e2b49(),_0x39406a=_0x577019['id'],_0x45d69f=_0x37c470?'insertion:'+_0x37c470:'insertion',_0x46cd6b=this['_setSuggestionData']({'id':_0x145b06,'type':_0x45d69f,'createdAt':new Date(),'authorId':_0x39406a,'attributes':_0x3cdacb});return this['_addSuggestionMarker'](_0x45d69f,_0x145b06,_0x39406a,_0x243d46),_0x46cd6b;}['markMultiRangeInsertion'](_0x4d42c5,_0x591140='multi',_0x35b233={}){const _0xc7df4c=this['editor']['plugins']['get']('Users')['me'],_0x450d75=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x591140,'join');for(const _0x26f5e4 of this['getSuggestions']())if(_0x26f5e4['author']['id']==_0xc7df4c['id']&&'insertion'==_0x26f5e4['type']&&_0x26f5e4['subType']==_0x591140&&Qt(_0x26f5e4,_0x35b233)&&(_0x450d75(_0x26f5e4['getRanges'](),_0x4d42c5)||_0x450d75(_0x4d42c5,_0x26f5e4['getRanges']()))){for(const _0xc644ae of _0x4d42c5)_0x26f5e4['addRange'](_0xc644ae);return _0x26f5e4;}for(const {suggestion:_0xee1105,meta:_0x10905f}of this['_findSuggestions'](_0x4d42c5,'insertion')){if(!_0x10905f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x10905f['containsRangeInObject'])continue;if(!Qt(_0xee1105,_0x35b233))continue;let _0x256807=!0x0;for(const _0x59772e of _0xee1105['getRanges']())for(const _0x502937 of _0x4d42c5)if(!_0x59772e['containsRange'](_0x502937)){_0x256807=!0x1;break;}if(_0x256807)return _0xee1105;}const _0x13a918=_0x3e2b49(),_0x59e5c1=_0xc7df4c['id'],_0x4ef155='insertion:'+_0x591140,_0x10a78b=this['_setSuggestionData']({'id':_0x13a918,'type':_0x4ef155,'createdAt':new Date(),'authorId':_0x59e5c1,'attributes':_0x35b233});for(const _0x62e072 of _0x4d42c5)this['_addSuggestionMarker'](_0x4ef155,_0x13a918,_0x59e5c1,_0x62e072,o['getMultiRangeId']());return _0x10a78b;}['markInlineFormat'](_0x597432,_0x54d0ee,_0x101085=null,_0x47b313={}){if(_0x101085=_0x101085||Jt(_0x54d0ee),_0x597432['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xc3c9cf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x101085,'accept');return this['forceDefaultExecution'](()=>_0xc3c9cf([_0x597432],_0x54d0ee,_0x47b313)),null;}const _0x1bfd3b=this['editor']['plugins']['get']('Users')['me'],_0xc50070=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3640fc,meta:_0x277762}of this['_findSuggestions'](_0x597432,'insertion'))_0x277762['isOwn']&&!_0x277762['isInsideObject']&&_0xc50070['push'](..._0x3640fc['getRanges']());}const _0x1f058a=function(_0x5f2430,_0x3b6ef2){const _0x553e54=[];for(const _0x16a935 of _0x3b6ef2){const _0x447491=_0x5f2430['getIntersection'](_0x16a935);_0x447491&&_0x553e54['push'](_0x447491);}return _0x553e54;}(_0x597432,_0xc50070),_0x2fe853=function(_0xaa8fa0,_0x923ff7){const _0x208fa5=[_0xaa8fa0];for(const _0xceae4d of _0x923ff7){let _0x42c4a8=0x0;for(;_0x42c4a8<_0x208fa5['length'];){const _0x2522a6=_0x208fa5[_0x42c4a8]['getDifference'](_0xceae4d);_0x208fa5['splice'](_0x42c4a8,0x1,..._0x2522a6),_0x42c4a8+=_0x2522a6['length'];}}return _0x208fa5;}(_0x597432,_0xc50070);_0x1f058a['length']&&this['_model']['change'](()=>{for(const _0x223ab8 of _0x1f058a){const _0x2ed89b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x101085,'accept');this['forceDefaultExecution'](()=>_0x2ed89b([_0x223ab8],_0x54d0ee,_0x47b313));}});for(const _0x368735 of _0x2fe853){let _0x49a989=null,_0x247709=_0x368735['start'],_0x36a81e=_0x368735['end'];for(const {suggestion:_0x413323,meta:_0x52d831}of this['_findSuggestions'](_0x368735,'formatInline')){if(!_0x52d831['isOwn'])continue;if(_0x413323['subType']!=_0x101085)continue;if(!Qt(_0x413323,_0x47b313))continue;const _0x446747=_0x413323['getFirstRange']();if(_0x446747['containsRange'](_0x368735,!0x0))return null;_0x247709=_0x247709['isBefore'](_0x446747['start'])?_0x247709:_0x446747['start'],_0x36a81e=_0x36a81e['isAfter'](_0x446747['end'])?_0x36a81e:_0x446747['end'],_0x49a989?_0x446747['start']['isBefore'](_0x49a989['getFirstRange']()['start'])?(_0x49a989['removeMarkers'](),_0x49a989=_0x413323):_0x413323['removeMarkers']():_0x49a989=_0x413323;}const _0x4e4e6f=this['_model']['createRange'](_0x247709,_0x36a81e);if(_0x49a989)this['_setSuggestionRange'](_0x49a989,_0x4e4e6f);else{const _0x1f7f82=_0x3e2b49(),_0x393d80=_0x1bfd3b['id'];this['_setSuggestionData']({'id':_0x1f7f82,'type':'formatInline:'+_0x101085,'data':_0x54d0ee,'createdAt':new Date(),'authorId':_0x393d80,'attributes':_0x47b313}),this['_addSuggestionMarker']('formatInline:'+_0x101085,_0x1f7f82,_0x393d80,_0x4e4e6f);}}return null;}['markBlockFormat'](_0x437b63,_0x5f1db3,_0x4eb20c=[],_0x3fbd87=null,_0x485710={}){_0x5f1db3['formatGroupId']||(_0x5f1db3['formatGroupId']=_0x5f1db3['commandName']),_0x5f1db3['multipleBlocks']=_0x437b63['is']('range'),_0x3fbd87=_0x3fbd87||Jt(_0x5f1db3);const _0x475d70=_0x4eb20c['map'](_0x1d3106=>qt(_0x1d3106,this['_model'])),_0x96c259=_0x437b63['is']('range')?_0x437b63:qt(_0x437b63,this['_model']);if('never'===this['_trackFormatChanges']){const _0x379f57=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fbd87,'accept');return this['forceDefaultExecution'](()=>_0x379f57([_0x96c259],_0x5f1db3,_0x485710)),null;}_0x475d70['push'](_0x96c259);let _0x114fa0=!0x0;for(const _0x549eda of _0x475d70)if(!this['_rangeIsInLocalUserInsertion'](_0x549eda)){_0x114fa0=!0x1;break;}if(_0x114fa0&&'always'!==this['_trackFormatChanges']){const _0x57d14c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fbd87,'accept');return this['forceDefaultExecution'](()=>_0x57d14c([_0x96c259],_0x5f1db3,_0x485710)),null;}let _0x3a52d1=null,_0x42926d=_0x96c259['start'],_0x916d9e=_0x96c259['end'];for(const {suggestion:_0x2a57e8,meta:_0x1f461f}of this['_findSuggestions'](_0x96c259,'formatBlock')){if(!_0x1f461f['isOwn'])continue;if(_0x1f461f['isNextTo']||_0x1f461f['containsRangeInObject']||_0x1f461f['isInsideObject'])continue;if(_0x2a57e8['data']['formatGroupId']!=_0x5f1db3['formatGroupId'])continue;if(!Qt(_0x2a57e8,_0x485710))continue;const _0x4f71c1=_0x2a57e8['getFirstRange']();if(_0x2a57e8['subType']==_0x3fbd87){if(_0x4f71c1['containsRange'](_0x96c259,!0x0))return null;_0x42926d=_0x42926d['isBefore'](_0x4f71c1['start'])?_0x42926d:_0x4f71c1['start'],_0x916d9e=_0x916d9e['isAfter'](_0x4f71c1['end'])?_0x916d9e:_0x4f71c1['end'],_0x3a52d1?_0x4f71c1['start']['isBefore'](_0x3a52d1['getFirstRange']()['start'])?(_0x3a52d1['removeMarkers'](),_0x3a52d1=_0x2a57e8):_0x2a57e8['removeMarkers']():_0x3a52d1=_0x2a57e8;}else{const _0x45d214=_0x96c259['getIntersection'](_0x4f71c1);this['_cutOutSuggestionMarker'](_0x2a57e8,_0x45d214);}}const _0x417151=this['editor']['plugins']['get']('Users')['me'],_0x2c2166=_0x3e2b49(),_0x92b650=_0x417151['id'];if(_0x3a52d1)return this['_setSuggestionRange'](_0x3a52d1,this['_model']['createRange'](_0x42926d,_0x916d9e)),_0x3a52d1;{const _0x4b4cb8=this['_setSuggestionData']({'id':_0x2c2166,'type':'formatBlock:'+_0x3fbd87,'data':_0x5f1db3,'createdAt':new Date(),'authorId':_0x92b650,'attributes':_0x485710});return this['_addSuggestionMarker']('formatBlock:'+_0x3fbd87,_0x2c2166,_0x92b650,this['_model']['createRange'](_0x42926d,_0x916d9e)),_0x4b4cb8;}}['markMultiRangeBlockFormat'](_0x4b90d9,_0x491c00,_0x46be5d=[],_0x41340c=null,_0x41f915={}){_0x491c00['formatGroupId']||(_0x491c00['formatGroupId']=_0x491c00['commandName']);const _0x4e1bdb=_0x4b90d9[0x0];_0x491c00['multipleBlocks']=_0x4e1bdb['is']('range'),_0x41340c=_0x41340c||Jt(_0x491c00);const _0x4a840b=_0x46be5d['map'](_0x39755b=>qt(_0x39755b,this['_model'])),_0x791954=_0x4e1bdb['is']('range')?_0x4b90d9:_0x4b90d9['map'](_0x1399f9=>qt(_0x1399f9,this['_model']));if('never'===this['_trackFormatChanges']){const _0xb834d3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41340c,'accept');return this['forceDefaultExecution'](()=>_0xb834d3(_0x791954,_0x491c00,_0x41f915)),null;}_0x4a840b['push'](..._0x791954);let _0x130061=!0x0;for(const _0x1ecc2c of _0x4a840b)if(!this['_rangeIsInLocalUserInsertion'](_0x1ecc2c)){_0x130061=!0x1;break;}if(_0x130061&&'always'!==this['_trackFormatChanges']){const _0x1901cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41340c,'accept');return this['forceDefaultExecution'](()=>_0x1901cd(_0x791954,_0x491c00,_0x41f915)),null;}const _0x45f5c6=this['editor']['plugins']['get']('Users')['me'];for(const _0x644c4d of this['getSuggestions']()){if(_0x644c4d['author']['id']!=_0x45f5c6['id'])continue;if('formatBlock'!=_0x644c4d['type']||_0x644c4d['data']['formatGroupId']!=_0x491c00['formatGroupId'])continue;if(!Qt(_0x644c4d,_0x41f915))continue;const _0x11822f=_0x644c4d['subType']==_0x41340c;for(let _0x2316ac=0x0;_0x2316ac<_0x791954['length'];_0x2316ac++){const _0x50299f=_0x791954[_0x2316ac];for(const _0x2e85e1 of _0x644c4d['getMarkers']()){const _0x53d1c2=_0x2e85e1['getRange']();if(_0x50299f['isEqual'](_0x53d1c2)){_0x11822f?(_0x791954['splice'](_0x2316ac,0x1),_0x2316ac--):_0x644c4d['removeMarker'](_0x2e85e1['name']);break;}}}}if(0x0==_0x791954['length'])return null;const _0x4b6a3a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41340c,'join');for(const _0x4b2ff8 of this['getSuggestions']())if(_0x4b2ff8['author']['id']==_0x45f5c6['id']&&'formatBlock'==_0x4b2ff8['type']&&_0x4b2ff8['data']['formatGroupId']==_0x491c00['formatGroupId']&&_0x4b2ff8['subType']==_0x41340c&&Qt(_0x4b2ff8,_0x41f915)&&(_0x4b6a3a(_0x4b2ff8['getRanges'](),_0x791954)||_0x4b6a3a(_0x791954,_0x4b2ff8['getRanges']()))){for(const _0x4ced2b of _0x791954)_0x4b2ff8['addRange'](_0x4ced2b);return _0x4b2ff8;}const _0x1fdaa0=_0x3e2b49(),_0x552d45=_0x45f5c6['id'],_0x137b7c='formatBlock:'+_0x41340c,_0x417ead=this['_setSuggestionData']({'id':_0x1fdaa0,'type':_0x137b7c,'data':_0x491c00,'createdAt':new Date(),'authorId':_0x552d45,'attributes':_0x41f915});for(const _0x5e6c8a of _0x791954)this['_addSuggestionMarker'](_0x137b7c,_0x1fdaa0,_0x552d45,_0x5e6c8a,o['getMultiRangeId']());return _0x417ead;}['markDeletion'](_0x2f62a8,_0x1081f4=null,_0x19194c={}){if(_0x2f62a8['isCollapsed'])return null;const _0x429366=this['editor']['plugins']['get']('Users')['me'],_0x28ac8e=new _0x3959aa(_0x2f62a8['start'],_0x2f62a8['end']);for(const {suggestion:_0x48283f,meta:_0x57de8c}of this['_findSuggestions'](_0x28ac8e,'insertion'))if(_0x57de8c['isOwn']&&!_0x57de8c['isNextTo']){if(_0x48283f['isMultiRange']){const _0x59c7e6=_0x48283f['getRanges']()['filter'](_0x4e70bb=>'$graveyard'!=_0x4e70bb['root']['rootName']);_0x59c7e6['every'](_0x15230d=>_0x28ac8e['containsRange'](_0x15230d,!0x0))&&_0x48283f['discard']();if(_0x59c7e6['some'](_0x48be48=>_0x48be48['containsRange'](_0x28ac8e,!0x0))){const _0x4287c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1081f4,'accept');return this['forceDefaultExecution'](()=>_0x4287c3([_0x28ac8e],null,_0x19194c)),null;}}else{const _0x959f6c=_0x28ac8e['getIntersection'](_0x48283f['getFirstRange']());null!==_0x959f6c&&_0x48283f['_onDiscard']([_0x959f6c],null,_0x19194c);}}if(_0x28ac8e['detach'](),_0x28ac8e['isCollapsed']||'$graveyard'==_0x28ac8e['root']['rootName'])return null;let _0x2de00c=null,_0x5d35b5=_0x28ac8e['start'],_0x47b96a=_0x28ac8e['end'];const _0x4a6d77=this['_findSuggestions'](_0x28ac8e,'deletion');for(const {suggestion:_0x30e36,meta:_0x5a9c24}of _0x4a6d77){const _0x365826=this['_model']['createRange'](_0x5d35b5,_0x47b96a);if(_0x5a9c24['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5a9c24['containsRangeInObject']&&!_0x5a9c24['isInsideObject'])){if(_0x30e36['isMultiRange']){if(!Qt(_0x30e36,_0x19194c))continue;let _0x1da319=!0x0;for(const _0x1c83c1 of _0x30e36['getRanges']()){if(_0x1c83c1['containsRange'](_0x365826,!0x0))return _0x30e36;_0x365826['containsRange'](_0x1c83c1)||(_0x1da319=!0x1);}_0x1da319&&_0x30e36['discard']();}else{const _0x30d7aa=_0x30e36['getFirstRange']();if(_0x30d7aa['containsRange'](_0x365826,!0x0))return _0x30e36;if(!Qt(_0x30e36,_0x19194c)){_0x365826['containsRange'](_0x30d7aa)?_0x30e36['removeMarkers']():_0x30d7aa['containsPosition'](_0x5d35b5)?_0x5d35b5=_0x30d7aa['end']:_0x30d7aa['containsPosition'](_0x47b96a)&&(_0x47b96a=_0x30d7aa['start']);continue;}_0x5d35b5=_0x5d35b5['isBefore'](_0x30d7aa['start'])?_0x5d35b5:_0x30d7aa['start'],_0x47b96a=_0x47b96a['isAfter'](_0x30d7aa['end'])?_0x47b96a:_0x30d7aa['end'],_0x19194c=Object['assign']({},_0x30e36['attributes']),_0x2de00c?_0x30d7aa['start']['isBefore'](_0x2de00c['getFirstRange']()['start'])?(_0x2de00c['removeMarkers'](),_0x2de00c=_0x30e36):_0x30e36['removeMarkers']():_0x2de00c=_0x30e36;}}}if(_0x2de00c)return this['_setSuggestionRange'](_0x2de00c,this['_model']['createRange'](_0x5d35b5,_0x47b96a)),_0x2de00c;{const _0x492a92=_0x3e2b49(),_0x4b1933=this['_model']['createRange'](_0x5d35b5,_0x47b96a),_0x14f106=_0x429366['id'],_0x150202=_0x1081f4?'deletion:'+_0x1081f4:'deletion',_0x2e7fb0=this['_setSuggestionData']({'id':_0x492a92,'type':_0x150202,'createdAt':new Date(),'authorId':_0x14f106,'attributes':_0x19194c});return this['_addSuggestionMarker'](_0x150202,_0x492a92,_0x14f106,_0x4b1933),_0x2e7fb0;}}['markMultiRangeDeletion'](_0x1f8e6a,_0x1e7b0f='multi',_0x1ca755={}){const _0x157a46=this['editor']['plugins']['get']('Users')['me'],_0x440d0a=_0x1f8e6a['map'](_0x387500=>new _0x3959aa(_0x387500['start'],_0x387500['end'])),_0x2a1e70=new Set();for(const {suggestion:_0x2426d5,meta:_0xd8958f}of this['_findSuggestions'](_0x440d0a,'insertion'))_0xd8958f['isOwn']&&!_0xd8958f['isNextTo']&&_0x2a1e70['add'](_0x2426d5);for(const _0x212062 of _0x2a1e70)if(_0x212062['isMultiRange']){const _0x324a33=_0x212062['getRanges']();(!_0x212062['attributes']||!_0x212062['attributes']['skipNestingCheck'])&&(_0x324a33['every'](_0x531a5d=>_0x440d0a['some'](_0x1ad937=>_0x1ad937['containsRange'](_0x531a5d,!0x0)))&&_0x212062['discard']());if(_0x440d0a['every'](_0xb493ed=>_0x324a33['some'](_0x1a0fcf=>_0x1a0fcf['containsRange'](_0xb493ed,!0x0)))){const _0x508132=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7b0f,'accept');return this['forceDefaultExecution'](()=>_0x508132(_0x1f8e6a,null,_0x1ca755)),null;}}else{const _0x40df9b=_0x212062['getFirstRange']();_0x440d0a['some'](_0x272a02=>_0x272a02['containsRange'](_0x40df9b,!0x0))&&_0x212062['discard']();if(_0x440d0a['every'](_0x40d4e3=>_0x40df9b['containsRange'](_0x40d4e3,!0x0))){const _0x7b90c1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7b0f,'accept');return this['forceDefaultExecution'](()=>_0x7b90c1(_0x440d0a,null,_0x1ca755)),null;}}const _0x2240c1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7b0f,'join');let _0x417623=null;for(const _0x13c157 of this['getSuggestions']())if(_0x13c157['author']['id']==_0x157a46['id']&&_0x13c157['isInContent']&&'deletion'==_0x13c157['type']&&_0x13c157['subType']==_0x1e7b0f&&Qt(_0x13c157,_0x1ca755)&&(_0x2240c1(_0x13c157['getRanges'](),_0x440d0a)||_0x2240c1(_0x440d0a,_0x13c157['getRanges']()))){if(_0x417623){if(_0x13c157['commentThread']&&_0x13c157['commentThread']['length'])continue;for(const _0x56add8 of _0x13c157['getRanges']())_0x417623['isIntersectingWithRange'](_0x56add8)||_0x417623['addRange'](_0x56add8);_0x13c157['removeMarkers']();}else{_0x417623=_0x13c157;for(const _0x26a712 of _0x440d0a)_0x13c157['isIntersectingWithRange'](_0x26a712)||_0x13c157['addRange'](_0x26a712);}}if(_0x417623)return _0x417623;_0x2a1e70['clear']();for(const {suggestion:_0x548f0d,meta:_0x49938b}of this['_findSuggestions'](_0x440d0a,'deletion'))_0x49938b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49938b['containsRangeInObject']&&!_0x49938b['isInsideObject'])&&Qt(_0x548f0d,_0x1ca755)&&_0x2a1e70['add'](_0x548f0d);for(const _0x501aeb of _0x2a1e70){const _0x5c891d=_0x501aeb['getRanges']();if(!_0x1ca755||!_0x1ca755['skipNestingCheck']){if(_0x440d0a['every'](_0x534109=>_0x5c891d['some'](_0xf457e1=>_0xf457e1['containsRange'](_0x534109,!0x0))))return _0x501aeb;}(!_0x501aeb['attributes']||!_0x501aeb['attributes']['skipNestingCheck'])&&(_0x5c891d['every'](_0x213310=>_0x440d0a['some'](_0x4aa1cf=>_0x4aa1cf['containsRange'](_0x213310,!0x0)))&&_0x501aeb['discard']());}const _0xac83e4=_0x3e2b49(),_0x3fe4ae=_0x157a46['id'],_0x3fe837='deletion:'+_0x1e7b0f,_0x127225=this['_setSuggestionData']({'id':_0xac83e4,'type':_0x3fe837,'createdAt':new Date(),'authorId':_0x3fe4ae,'attributes':_0x1ca755});for(const _0x1583b6 of _0x440d0a)_0x1583b6['detach'](),_0x1583b6['isCollapsed']||'$graveyard'==_0x1583b6['root']['rootName']||this['_addSuggestionMarker'](_0x3fe837,_0xac83e4,_0x3fe4ae,_0x1583b6,o['getMultiRangeId']());return _0x127225;}['markAttributeChange'](_0x2a2cc2,_0x481cf9,_0x523336,_0x4b2646,_0x284ec0){if(_0x2a2cc2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x42b8cc=this['editor']['plugins']['get']('Users')['me']['id'],_0x16f50b=Array['from'](this['_suggestions']['values']())['filter'](_0x519673=>'attribute'==_0x519673['type']&&_0x519673['data']['key']==_0x481cf9&&_0x519673['isIntersectingWithRange'](_0x2a2cc2));if('default'===this['_trackFormatChanges']){const _0x1cf7ec=this['_findSuggestions'](_0x2a2cc2,'insertion')['filter'](({meta:_0x58cb1b})=>_0x58cb1b['isOwn']&&!_0x58cb1b['isInsideObject']&&!_0x58cb1b['isNextTo'])['map'](({suggestion:_0x271f65})=>_0x271f65);_0x16f50b['unshift'](..._0x1cf7ec);}const _0xd65df6=new Map([[_0x2a2cc2,_0x523336]]);for(const _0x45525d of _0x16f50b){const _0x5789d6='attribute'==_0x45525d['type']?_0x45525d['data']['oldValue']:void 0x0,_0x24a40b=_0x45525d['getFirstRange'](),_0x3db289=Array['from'](_0xd65df6['keys']())['find'](_0x1a22af=>_0x1a22af['isIntersecting'](_0x24a40b));if(!_0x3db289)continue;const _0xef2f74=_0x3db289['getDifference'](_0x24a40b);this['_isBlockAttribute'](_0x481cf9)&&'insertion'==_0x45525d['type']&&0x0!=_0xef2f74['length']||(_0xd65df6['delete'](_0x3db289),_0xef2f74['forEach'](_0x269246=>{_0xd65df6['set'](_0x269246,_0x523336);}),'insertion'!=_0x45525d['type']&&_0x5789d6!=_0x4b2646&&_0xd65df6['set'](_0x3db289['getIntersection'](_0x24a40b),_0x5789d6));}const _0x3bb1d0=[];for(const [_0x47169e,_0x42ff1a]of _0xd65df6){const _0x4be7a7=_0x3e2b49(),_0x2bf762={'key':_0x481cf9,'oldValue':_0x42ff1a,'newValue':_0x4b2646};_0x481cf9['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':_0x481cf9});const _0x1a3011=('attribute:'+(_0x481cf9+'|'+Jt({'newValue':_0x4b2646})))['substring'](0x0,0x3c),_0x162ddd=this['_setSuggestionData']({'id':_0x4be7a7,'type':_0x1a3011,'data':_0x2bf762,'createdAt':new Date(),'authorId':_0x42b8cc,'attributes':_0x284ec0});_0x3bb1d0['push'](_0x162ddd),this['_addSuggestionMarker'](_0x1a3011,_0x4be7a7,_0x42b8cc,_0x47169e);}return _0x3bb1d0;}['enableDefaultAttributesIntegration'](_0x19a2c0){this['enableCommand'](_0x19a2c0,(_0x66910f,..._0x598d59)=>{this['_recordAttributeChanges'](()=>{_0x66910f(..._0x598d59);});});}['registerBlockAttribute'](_0x3b449a){this['_blockAttributeKeys']['add'](_0x3b449a);}['registerInlineAttribute'](_0x45f995){this['_inlineAttributeKeys']['add'](_0x45f995);}['_getAttributeKey'](_0x1cd4d4){return'attribute'==_0x1cd4d4['type']?_0x1cd4d4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x350f4e,_0x35fc89){const _0x278691=_0x350f4e['getFirstMarker']();this['_model']['change'](_0x13ebe2=>{_0x13ebe2['updateMarker'](_0x278691,{'range':_0x35fc89});});}['_addThreadToSuggestion'](_0x26dad3){const _0x2cd711=_0x26dad3['id'],_0x43baad=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2cd711)||this['_commentsRepository']['addCommentThread']({'channelId':_0x43baad,'threadId':_0x2cd711,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x626c9d=this['_commentsRepository']['getCommentThread'](_0x2cd711);_0x626c9d['unbind']('isRemovable'),_0x626c9d['isRemovable']=!0x1,_0x26dad3['commentThread']=_0x626c9d;}['_checkSuggestionCorrectness'](_0x44445d,_0xb50b98,_0x347d22,_0x3b590f){if(_0x44445d['type']!=_0xb50b98||_0x44445d['subType']!=_0x347d22||_0x44445d['creator']['id']!=_0x3b590f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5acbff('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2b40c5,_0xa70892){const _0x3e12df=_0x2b40c5['getFirstRange']();if(_0xa70892['isEqual'](_0x3e12df))_0x2b40c5['removeMarkers']();else{if(_0x3e12df['containsRange'](_0xa70892)){const _0x56ace8=this['_model']['createPositionAt'](_0xa70892['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b40c5,this['_model']['createRange'](_0x3e12df['start'],_0x56ace8));const _0x3cafb1=_0x3e2b49(),_0x202d25=_0x2b40c5['creator']['id'],_0x2c0929=_0x2b40c5['type']+':'+_0x2b40c5['subType'];this['_setSuggestionData']({'id':_0x3cafb1,'type':_0x2c0929,'createdAt':new Date(),'authorId':_0x202d25,'data':_0x2b40c5['data'],'attributes':_0x2b40c5['attributes']});const _0x2efad3=this['_model']['createPositionAt'](_0xa70892['end']['parent'],'after'),_0xf10552=this['_model']['createRange'](_0x2efad3,_0x3e12df['end']);this['_addSuggestionMarker'](_0x2c0929,_0x3cafb1,_0x202d25,_0xf10552);}else{if(_0x3e12df['containsPosition'](_0xa70892['start'])){const _0x256d23=this['_model']['createPositionAt'](_0xa70892['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b40c5,this['_model']['createRange'](_0x3e12df['start'],_0x256d23));}else{const _0x2b26bb=this['_model']['createPositionAt'](_0xa70892['end']['parent'],'after');this['_setSuggestionRange'](_0x2b40c5,this['_model']['createRange'](_0x2b26bb,_0x3e12df['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1bc0ee){for(const {suggestion:_0x3551c3,meta:_0x3c920c}of this['_findSuggestions'](_0x1bc0ee,'insertion')){if(!_0x3c920c['isOwn'])continue;const _0x2778cc=_0x3551c3['getRanges']();for(const _0x1b84f0 of _0x2778cc)if(!_0x1bc0ee['getDifference'](_0x1b84f0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2622f5){const _0x564040=this['editor']['plugins']['get']('Users')['getUser'](_0x2622f5);if(!_0x564040)throw new _0x5acbff('track-changes-user-not-found',this);return _0x564040;}['_getExternalAuthor'](_0x2865be){const _0x18a183=this['editor']['plugins']['get']('Users'),_0x440058=_0x1af9c2('external:'+_0x2865be),_0x3c7b07=_0x18a183['getUser'](_0x440058);return _0x3c7b07||_0x18a183['addUser']({'id':_0x440058,'name':_0x2865be});}['_createSuggestion'](_0x587902,_0x5b2167,_0x52260f,_0x21e42c,_0x13506b){const _0x55989b=this['_getAuthorFromId'](_0x21e42c),_0x2ca643=this['_suggestionFactory']['buildSuggestion'](_0x587902,_0x5b2167,_0x52260f,_0x55989b,_0x13506b,_0x4ff2a3=>{this['_updateSuggestionData'](_0x52260f,{'attributes':_0x4ff2a3});const _0x2e8f2d=this['getSuggestion'](_0x52260f);this['_joinWithAdjacentSuggestions'](new Set([_0x2e8f2d])),this['_refreshSuggestionsChain'](new Set([_0x2e8f2d]));});return this['listenTo'](_0x2ca643,'accept',()=>{this['_updateSuggestionData'](_0x52260f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2ca643,'discard',()=>{this['_updateSuggestionData'](_0x52260f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x52260f,_0x2ca643),this['_suggestionState']['set'](_0x2ca643,'notReady'),_0x2ca643;}['_splitMarkerName'](_0x50c35a){const _0x26969d=_0x50c35a['split'](':');return{'group':_0x26969d[0x0],'type':_0x26969d[0x1],'subType':_0x26969d['length']>=0x5?_0x26969d[0x2]:null,'id':_0x26969d['length']<0x5?_0x26969d[0x2]:_0x26969d[0x3],'authorId':_0x26969d['length']<0x5?_0x26969d[0x3]:_0x26969d[0x4],'markerCount':0x6==_0x26969d['length']?_0x26969d[0x5]:null};}['_breakSuggestionMarker'](_0x10e089,_0xb327cf,_0x21b24a){const _0x338fe1=_0x10e089['getFirstRange'](),_0x5bd995=_0x338fe1['start'],_0x137f11=_0x338fe1['end'];this['_setSuggestionRange'](_0x10e089,this['_model']['createRange'](_0x5bd995,_0xb327cf));const _0x1d6170=_0x3e2b49(),_0x51815c=_0x10e089['creator']['id'],_0x8394f2=_0x10e089['type']+(_0x10e089['subType']?':'+_0x10e089['subType']:'');this['_setSuggestionData']({'id':_0x1d6170,'type':_0x8394f2,'createdAt':new Date(),'authorId':_0x51815c,'originalSuggestionId':_0x10e089['id'],'attributes':_0x10e089['attributes'],'data':_0x10e089['data']});const _0x30b1c1=this['_getAttributeKey'](_0x10e089);('formatBlock'==_0x10e089['type']||_0x30b1c1&&this['_isBlockAttribute'](_0x30b1c1))&&(_0x21b24a=this['_model']['createPositionBefore'](_0x21b24a['parent'])),this['_addSuggestionMarker'](_0x8394f2,_0x1d6170,_0x51815c,this['_model']['createRange'](_0x21b24a,_0x137f11));}['_findSuggestions'](_0x28d329,_0xc8fedd=null){const _0x42fa72=[],_0x4ae547=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x28d329)||(_0x28d329=[_0x28d329]);for(const _0x1cd359 of this['getSuggestions']()){if(!_0x1cd359['isInContent'])continue;if(_0xc8fedd&&_0x1cd359['type']!=_0xc8fedd)continue;let _0x29dbe8=!0x1;for(const _0x55a8a1 of _0x1cd359['getRanges']()){for(const _0x4ef22d of _0x28d329){const _0x27e15a=_0x4ef22d['start']['isEqual'](_0x55a8a1['end'])||_0x4ef22d['end']['isEqual'](_0x55a8a1['start']);if(_0x27e15a||_0x4ef22d['getIntersection'](_0x55a8a1)){const _0x47ca2d=_0x4ef22d['containsRange'](_0x55a8a1)&&Pt(this['_model']['schema'],_0x55a8a1['start'],_0x4ef22d),_0x426812=_0x55a8a1['containsRange'](_0x4ef22d)&&Pt(this['_model']['schema'],_0x4ef22d['start'],_0x55a8a1);_0x42fa72['push']({'suggestion':_0x1cd359,'meta':{'isOwn':_0x4ae547==_0x1cd359['author'],'isNextTo':_0x27e15a,'isInsideObject':_0x47ca2d,'containsRangeInObject':_0x426812}}),_0x29dbe8=!0x0;break;}}if(_0x29dbe8)break;}}return _0x42fa72;}['_addSuggestionMarker'](_0x54eb87,_0x10d01f,_0x5ebc5d,_0x261000,_0x1fa232){this['_model']['change'](_0x76fd48=>{let _0x330ab6='suggestion:'+_0x54eb87+':'+_0x10d01f+':'+_0x5ebc5d;_0x1fa232&&(_0x330ab6=_0x330ab6+':'+_0x1fa232),_0x76fd48['addMarker'](_0x330ab6,{'range':_0x261000,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xc42d59){const _0xbb776b=_0xc42d59['previous'],_0xb28732=_0xc42d59['next'];_0xc42d59['previous']=null,_0xc42d59['next']=null,null!=_0xbb776b&&_0xbb776b['next']==_0xc42d59&&(_0xbb776b['next']=_0xb28732),null!=_0xb28732&&_0xb28732['previous']==_0xc42d59&&(_0xb28732['previous']=_0xbb776b),'ready'==this['_suggestionState']['get'](_0xc42d59)&&(this['_suggestionState']['set'](_0xc42d59,'removed'),this['fire']('suggestionUnloaded',_0xc42d59,_0xbb776b,_0xb28732));}['_setSuggestionData'](_0x2af3ea){const _0x4ef3d5=_0x2af3ea['id'],_0x706358=this['addSuggestionData'](_0x2af3ea);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xc73fb=this['editor']['plugins']['get']('PendingActions'),_0x38d36c=_0x706358['hasComments'],_0x236f9c=_0x706358['subType']?_0x706358['type']+':'+_0x706358['subType']:_0x706358['type'],_0xd2aea7=this['editor']['locale'],_0x9c730f=_0xc73fb['add'](c(_0xd2aea7,'PENDING_ACTION_SUGGESTION')),_0x3187d0={'id':_0x4ef3d5,'type':_0x236f9c,'hasComments':_0x38d36c,'data':_0x2af3ea['data']||null,'originalSuggestionId':_0x2af3ea['originalSuggestionId']||null,'attributes':_0x706358['attributes']};this['_adapter']['addSuggestion'](_0x3187d0)['then'](_0x5522ba=>{_0x706358['_saved']=!0x0,_0xc73fb['remove'](_0x9c730f),_0x5522ba&&_0x5522ba['createdAt']&&(this['_suggestions']['get'](_0x4ef3d5)['createdAt']=_0x5522ba['createdAt']);})['catch'](_0x8695ad=>{throw _0x2248ad('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x706358['discard']();}),_0x706358['stopListening'](),this['_suggestions']['delete'](_0x706358['id']),this['_suggestionState']['delete'](_0x706358),_0x8695ad;});}return _0x706358;}['_isBlockAttribute'](_0x372db1){return this['_blockAttributeKeys']['has'](_0x372db1);}['_updateSuggestionData'](_0x229939,_0x190ea8){const _0x4c848d=this['editor']['plugins']['get']('PendingActions'),_0x19e9c7=this['getSuggestion'](_0x229939);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x19e9c7['_saved']){const _0xc9e861=_0x4c848d['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x229939,_0x190ea8)['then'](()=>{_0x4c848d['remove'](_0xc9e861);});}else _0x19e9c7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x229939,_0x190ea8);});}}['_getSuggestionData'](_0x1adf28){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5acbff('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1adf28);}['_handleNewSuggestionMarker'](_0xd27a3b){const {id:_0x2dde49,type:_0x2de24b,subType:_0x4e5716,authorId:_0x4e3c56}=this['_splitMarkerName'](_0xd27a3b),_0x1090cd=this['_suggestions']['get'](_0x2dde49)||this['_createSuggestion'](_0x2de24b,_0x4e5716,_0x2dde49,_0x4e3c56,{});switch(this['_checkSuggestionCorrectness'](_0x1090cd,_0x2de24b,_0x4e5716,_0x4e3c56),this['_suggestionState']['get'](_0x1090cd)){case'notReady':this['_getSuggestionData'](_0x2dde49)['then'](_0x258ed4=>{let _0x230885=Promise['resolve']();_0x258ed4['hasComments']&&(_0x230885=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2dde49})),_0x230885['then'](()=>{this['addSuggestionData'](_0x258ed4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1090cd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2dde49,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1090cd,'ready'),this['fire']('suggestionLoaded',_0x1090cd);break;case'ready':this['fire']('suggestionChanged',_0x1090cd);}return _0x1090cd['addMarkerName'](_0xd27a3b),_0x1090cd;}['_refreshSuggestionsChain'](_0x5886b0){const _0x56178e=Array['from'](_0x5886b0),_0x386f59=_0x56178e['filter'](_0x30be87=>'attribute'==_0x30be87['type']);this['_refreshAttributeSuggestionsChain'](_0x386f59);const _0x5116a2=_0x56178e['filter'](_0x5ad60f=>!_0x5ad60f['isMultiRange']&&'attribute'!=_0x5ad60f['type']),_0x2a8f4f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dd273=>!_0x4dd273['isMultiRange']&&'attribute'!=_0x4dd273['type']),_0x589c8a=_0x2a8f4f['filter'](_0xf403d4=>!_0x5886b0['has'](_0xf403d4)),_0x19946a=new Map(_0x2a8f4f['map'](_0x49a5a6=>[_0x49a5a6,this['_suggestionFactory']['getSuggestionCallback'](_0x49a5a6['type'],_0x49a5a6['subType'],'chain')])),_0xac2bcd=new Map(_0x2a8f4f['map'](_0x1b1585=>[_0x1b1585,_0x1b1585['getFirstRange']()])),_0x2f6433=new Set(),_0x1aee2a=new Set();for(let _0x45d64b=0x0;_0x45d64b<_0x5116a2['length'];_0x45d64b++)_0x1cf62d(_0x5116a2[_0x45d64b],_0x5116a2,_0x45d64b+0x1);for(let _0x15ec5f=0x0;_0x15ec5f<_0x5116a2['length'];_0x15ec5f++)_0x1cf62d(_0x5116a2[_0x15ec5f],_0x589c8a,0x0);const _0x1535c3=new Set();for(let _0x59b352=0x0;_0x59b352<_0x5116a2['length'];_0x59b352++){const _0x46623d=_0x5116a2[_0x59b352];!_0x1aee2a['has'](_0x46623d)&&_0x46623d['previous']&&(_0x1535c3['add'](_0x46623d['previous']),_0x46623d['previous']['next']===_0x46623d&&(_0x46623d['previous']['next']=null),_0x46623d['previous']=null),!_0x2f6433['has'](_0x46623d)&&_0x46623d['next']&&(_0x1535c3['add'](_0x46623d['next']),_0x46623d['next']['previous']===_0x46623d&&(_0x46623d['next']['previous']=null),_0x46623d['next']=null);}function _0x1cf62d(_0x2c61af,_0xde84e8,_0x9834b2){for(let _0x190c29=_0x9834b2;_0x190c29<_0xde84e8['length'];_0x190c29++){const _0x44858a=_0xc2499c(_0x2c61af,_0xde84e8[_0x190c29]);_0x44858a&&(_0x44858a[0x0]['next']=_0x44858a[0x1],_0x44858a[0x1]['previous']=_0x44858a[0x0],_0x2f6433['add'](_0x44858a[0x0]),_0x1aee2a['add'](_0x44858a[0x1]));}}function _0xc2499c(_0x49ecb4,_0x54531f){if(_0x49ecb4['author']['id']!==_0x54531f['author']['id'])return null;const _0x5b6155=_0x19946a['get'](_0x49ecb4)(_0x49ecb4,_0x54531f,_0xac2bcd['get'](_0x49ecb4),_0xac2bcd['get'](_0x54531f));if(!_0x5b6155)return null;return _0x19946a['get'](_0x54531f)(_0x49ecb4,_0x54531f,_0xac2bcd['get'](_0x49ecb4),_0xac2bcd['get'](_0x54531f))?_0x5b6155[0x1]['commentThread']&&_0x5b6155[0x1]['commentThread']['length']?null:_0x5b6155:null;}_0x1535c3['size']&&this['_refreshSuggestionsChain'](_0x1535c3);}['_refreshAttributeSuggestionsChain'](_0x482b18){if(0x0==_0x482b18['length'])return;const _0x5d1187=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46c2d1=>'attribute'==_0x46c2d1['type']&&_0x46c2d1['_isDataLoaded']),_0xeea4f9=[],_0x537e0a=new Map();for(const _0x1f6a22 of _0x5d1187){const _0x3b3873=_0x1af9c2(_0x1f6a22['attributes']);_0x537e0a['has'](_0x3b3873)||(_0x537e0a['set'](_0x3b3873,_0xeea4f9['length']),_0xeea4f9['push']([]));const _0x47248b=_0x537e0a['get'](_0x3b3873);_0xeea4f9[_0x47248b]['push'](_0x1f6a22);}!(function(){_0xeea4f9['sort']((_0x302243,_0x2245cf)=>{const _0x5daf17=_0x302243[0x0]['createdAt'],_0x1d8104=_0x2245cf[0x0]['createdAt'];return _0x5daf17==_0x1d8104?_0x302243[0x0]['attributes']['groupId']<_0x2245cf[0x0]['attributes']['groupId']?-0x1:0x1:_0x5daf17<_0x1d8104?-0x1:0x1;});for(const _0xdc0e3b of _0xeea4f9)_0xdc0e3b['sort']((_0x4d3fd7,_0x5108e4)=>_0x4d3fd7['id']<_0x5108e4['id']?-0x1:0x1);}());for(let _0x531163=0x0;_0x531163<_0xeea4f9['length'];_0x531163++){if(0x0==_0xeea4f9[_0x531163]['length'])continue;const _0x499f84=[];for(let _0x3ffcee=_0x531163+0x1;_0x3ffcee<_0xeea4f9['length'];_0x3ffcee++)0x0!=_0xeea4f9[_0x3ffcee]['length']&&_0x25b82c(_0xeea4f9[_0x531163],_0xeea4f9[_0x3ffcee])&&_0x499f84['push'](_0x3ffcee);for(const _0x453695 of _0x499f84)_0xeea4f9[_0x531163]=_0xeea4f9[_0x531163]['concat'](_0xeea4f9[_0x453695]),_0xeea4f9[_0x453695]=[];}for(const _0x4c2707 of _0xeea4f9)for(let _0x5ac038=0x0;_0x5ac038<_0x4c2707['length'];_0x5ac038++){const _0x1ec7b1=_0x4c2707[_0x5ac038+0x1]||null;_0x4c2707[_0x5ac038]['next']!==_0x1ec7b1&&(_0x4c2707[_0x5ac038]['next']=_0x1ec7b1);}for(const _0x2b96ec of _0xeea4f9)for(let _0xb8bf04=0x0;_0xb8bf04<_0x2b96ec['length'];_0xb8bf04++){const _0x113985=_0x2b96ec[_0xb8bf04-0x1]||null;_0x2b96ec[_0xb8bf04]['previous']!==_0x113985&&(_0x2b96ec[_0xb8bf04]['previous']=_0x113985);}function _0x25b82c(_0x43497b,_0x44b3e8){if(_0x43497b[0x0]['attributes']['groupId']!==_0x44b3e8[0x0]['attributes']['groupId']&&_0x43497b[0x0]['author']!==_0x44b3e8[0x0]['author'])return!0x1;if(!function(_0x1929e9,_0x577fce){if(!_0x1929e9['hasComments']&&!_0x577fce['hasComments'])return!0x0;if(_0x1929e9['hasComments']&&_0x577fce['hasComments'])return!0x1;if(_0x1929e9['hasComments']&&_0x577fce['createdAt']<_0x1929e9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x577fce['hasComments']&&_0x1929e9['createdAt']<_0x577fce['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x43497b[0x0],_0x44b3e8[0x0]))return!0x1;const _0x29ff53=Vt(_0x43497b[0x0]['attributes'],'groupId'),_0x319b12=Vt(_0x44b3e8[0x0]['attributes'],'groupId');if(!_0x1ec0ec(_0x29ff53,_0x319b12))return!0x1;return!!_0x43497b['every'](_0x2f122c=>_0x44b3e8['some'](_0x3425c2=>_0x2f122c['getFirstRange']()['isEqual'](_0x3425c2['getFirstRange']())))&&_0x44b3e8['every'](_0x4725e7=>_0x43497b['some'](_0x20f967=>_0x4725e7['getFirstRange']()['isEqual'](_0x20f967['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x42cecd){const _0x4cd1d6=Array['from'](_0x42cecd),_0x140c46=this['getSuggestions']({'skipNotAttached':!0x0}),_0x55dc4b=_0x140c46['filter'](_0x3f4233=>!_0x42cecd['has'](_0x3f4233)),_0x4aff01=new Map(_0x4cd1d6['map'](_0x22fa85=>[_0x22fa85,this['_suggestionFactory']['getSuggestionCallback'](_0x22fa85['type'],_0x22fa85['subType'],'join')])),_0x52079d=new Map(_0x140c46['map'](_0x16305b=>[_0x16305b,_0x16305b['getRanges']()]));for(let _0x1dd8eb=0x0;_0x1dd8eb<_0x4cd1d6['length'];_0x1dd8eb++){if(_0x55cd34(this,_0x4cd1d6[_0x1dd8eb],_0x4cd1d6,_0x1dd8eb+0x1))return!0x0;}for(let _0x2d0e0a=0x0;_0x2d0e0a<_0x4cd1d6['length'];_0x2d0e0a++){if(_0x55cd34(this,_0x4cd1d6[_0x2d0e0a],_0x55dc4b,0x0))return!0x0;}return!0x1;function _0x55cd34(_0xcfadbe,_0x3b0905,_0x2f7bd5,_0x37a7c2){for(let _0x4fe92a=_0x37a7c2;_0x4fe92a<_0x2f7bd5['length'];_0x4fe92a++){const _0x2884cc=_0x2f7bd5[_0x4fe92a];if(_0x2884cc['type']!==_0x3b0905['type']||_0x2884cc['author']['id']!==_0x3b0905['author']['id']||_0x2884cc['subType']!==_0x3b0905['subType'])continue;if(!Wt(_0x3b0905,_0x2884cc))continue;if('attribute'==_0x3b0905['type']&&_0x3b0905['data']['oldValue']!=_0x2884cc['data']['oldValue'])continue;if('attribute'==_0x3b0905['type']&&_0xcfadbe['_isBlockAttribute'](_0x3b0905['data']['key']))continue;if('formatBlock'==_0x3b0905['type']){const _0x3baee3=_0xcfadbe['editor']['model'],_0x210c12=_0x3b0905['getContainedElement']();if(_0x210c12&&(_0x3baee3['schema']['isObject'](_0x210c12)||_0x3baee3['schema']['isLimit'](_0x210c12)))continue;}const _0x571047=_0x4aff01['get'](_0x3b0905),_0x1c45d0=_0x52079d['get'](_0x3b0905),_0x562cec=_0x52079d['get'](_0x2884cc),_0x5e21ee=_0x3b0905['commentThread']&&_0x3b0905['commentThread']['length'],_0x28edab=_0x2884cc['commentThread']&&_0x2884cc['commentThread']['length'];if(!_0x5e21ee&&_0x571047(_0x562cec,_0x1c45d0))return _0xcfadbe['_joinSuggestions'](_0x2884cc,_0x3b0905),_0x52079d['delete'](_0x3b0905),!0x0;if(!_0x28edab&&_0x571047(_0x1c45d0,_0x562cec))return _0xcfadbe['_joinSuggestions'](_0x3b0905,_0x2884cc),_0x52079d['delete'](_0x2884cc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2b2c7c,_0x3c7334){if(_0x2b2c7c['isMultiRange']){for(const _0x5db02c of _0x3c7334['getRanges']())_0x2b2c7c['addRange'](_0x5db02c);}else{const _0x1daddd=_0x3c7334['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2b2c7c,this['_model']['createRange'](_0x2b2c7c['getFirstRange']()['start'],_0x1daddd));}_0x3c7334['removeMarkers']();}['_getMarkerAnnouncementText'](_0x20f507,_0x3af38d,_0x2f932b){const _0x20ab48=_0x20f507['startsWith']('format')||_0x20f507['startsWith']('attribute')?'FORMATTING':_0x20f507['toUpperCase']();return c(this['editor']['locale'],_0x3af38d+'_'+_0x20ab48+'_SUGGESTION_ANNOUNCEMENT',_0x2f932b);}['_initAriaMarkerChangeAnnouncements'](){const _0x5ace66=this['editor'];if(!_0x5ace66['ui'])return;const {ariaLiveAnnouncer:_0x57b27b}=_0x5ace66['ui'];_0x1883c0(this['_model'],({left:_0x343985,entered:_0x5ce34f})=>{for(const _0x5e9071 of _0x343985){const {group:_0x280900,type:_0x52626f}=this['_splitMarkerName'](_0x5e9071['name']);if('suggestion'===_0x280900){_0x57b27b['announce'](this['_getMarkerAnnouncementText'](_0x52626f,'LEAVE'));break;}}for(const _0x1fc711 of _0x5ce34f){const {group:_0xf8172e,type:_0x1a8466}=this['_splitMarkerName'](_0x1fc711['name']);if('suggestion'===_0xf8172e){_0x57b27b['announce'](this['_getMarkerAnnouncementText'](_0x1a8466,'ENTER',_0x48ee5f(_0x51d163)));break;}}});}['_processAttributeChanges'](_0x184e4f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2b48fc=this['editor'],_0x8bd67a=_0x2b48fc['model']['document']['differ']['getChanges']();if(0x0==_0x8bd67a['length'])return!0x1;const _0x3c0a58=[],_0x4eeb54=_0x8bd67a['filter'](_0x4bac29=>'attribute'==_0x4bac29['type']),_0x288bd6=_0x8bd67a['filter'](_0x599028=>'insert'==_0x599028['type']&&'$text'!=_0x599028['name']),_0x57e767=_0x8bd67a['filter'](_0x41f9cb=>'remove'==_0x41f9cb['type']&&'$text'!=_0x41f9cb['name']);for(const _0x4f2462 of _0x4eeb54)_0x3c0a58['push']({'key':_0x4f2462['attributeKey'],'newValue':_0x4f2462['attributeNewValue'],'oldValue':_0x4f2462['attributeOldValue'],'range':Ht(_0x4f2462['range'],_0x2b48fc['model'])});for(const _0x3ccb58 of _0x288bd6){const _0x2d9e66=_0x57e767['find'](_0x2820f9=>_0x2820f9['position']['isEqual'](_0x3ccb58['position']));_0x2d9e66&&_0x3c0a58['push']({'key':u,'newValue':_0x3ccb58['name'],'oldValue':_0x2d9e66['name'],'range':_0x2b48fc['model']['createRangeOn'](_0x3ccb58['position']['nodeAfter'])});}return 0x0!=_0x3c0a58['length']&&this['_reduceExistingSuggestions'](_0x184e4f,_0x3c0a58);}['_processAttributeSuggestions'](_0xa62ffb){let _0x36a711=!0x1;const _0xb7f3dd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4b013e=>_0x4b013e['data']['newRange']&&_0x4b013e['name']['startsWith']('suggestion:attribute:'));for(const _0x3e9e64 of _0xb7f3dd){const {subType:_0x40e2cf,id:_0x294961}=this['_splitMarkerName'](_0x3e9e64['name']),_0x2b1033=_0x40e2cf['split']('|')[0x0];for(const _0x27d4bd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x27d4bd['id']!=_0x294961&&'attribute'==_0x27d4bd['type']&&_0x27d4bd['data']&&_0x27d4bd['data']['key']==_0x2b1033&&_0x27d4bd['getFirstRange']()['isIntersecting'](_0x3e9e64['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x27d4bd,_0x3e9e64['data']['newRange'],_0xa62ffb),_0x36a711=!0x0);}return _0x36a711;}['_recordAttributeChanges'](_0x112fe9){this['_recordAttributeSuggestions']=!0x0,_0x112fe9();}['_isRegisteredAttribute'](_0x49d5a9){const _0x1cd554=this['_isBlockAttribute'](_0x49d5a9),_0x35145a=this['_inlineAttributeKeys']['has'](_0x49d5a9);return _0x1cd554||_0x35145a;}['_reduceExistingSuggestions'](_0x4502d1,_0x1d3066){if(0x0==_0x1d3066['length'])return!0x1;let _0xc59e88=!0x1;for(const _0x44154c of _0x1d3066){const _0x214735=this['_findSuggestions'](_0x44154c['range'],'attribute')['filter'](_0x3e6c62=>!_0x3e6c62['meta']['isNextTo'])['map'](_0x2afff3=>_0x2afff3['suggestion']),_0x750458=_0x1af9c2({'newValue':_0x44154c['newValue']});_0x214735['filter'](_0x4973a2=>{const [_0x4d3886,_0x7a84bf]=_0x4973a2['subType']['split']('|');return _0x4d3886==_0x44154c['key']&&_0x7a84bf!=_0x750458;})['forEach'](_0x4a0948=>{this['_reduceSuggestionAttributeRange'](_0x4a0948,_0x44154c['range'],_0x4502d1),_0xc59e88=!0x0;});}return _0xc59e88;}['_reduceSuggestionAttributeRange'](_0x589692,_0x250185,_0x5e58e7){const _0x23e99a=_0x589692['getFirstRange']()['getDifference'](_0x250185);0x0!==_0x23e99a['length']?0x1!==_0x23e99a['length']?this['_breakSuggestionMarker'](_0x589692,_0x250185['start'],_0x250185['end']):this['_setSuggestionRange'](_0x589692,_0x23e99a[0x0]):_0x5e58e7['removeMarker'](_0x589692['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x33b427){this['_editor']=_0x33b427,this['_model']=_0x33b427['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xc7a8ea,_0xf9d134,_0xe17246,_0x4c65a4,_0x26fd96,_0x37199a){return new o(this['_model'],{'type':_0xc7a8ea,'subType':_0xf9d134,'id':_0xe17246,'author':_0x4c65a4,'creator':_0x4c65a4,'attributes':_0x26fd96,'onAttributesChange':_0x37199a,'onAccept':(..._0x16beaf)=>this['getSuggestionCallback'](_0xc7a8ea,_0xf9d134,'accept')(..._0x16beaf),'onDiscard':(..._0xe0a255)=>this['getSuggestionCallback'](_0xc7a8ea,_0xf9d134,'discard')(..._0xe0a255)});}['registerCustomCallback'](_0x102ac9,_0x10059d,_0x476368,_0x3643b5){const _0x3b24d8=_0x102ac9+':'+_0x10059d+':'+_0x476368;this['_customCallbacks']['set'](_0x3b24d8,_0x3643b5);}['getSuggestionCallback'](_0x144d6d,_0x2303bb,_0x4538c2){const _0x3cd976=_0x144d6d+':'+_0x2303bb+':'+_0x4538c2;return this['_customCallbacks']['get'](_0x3cd976)||this['_defaultCallbacks']['get'](_0x144d6d+':'+_0x4538c2);}['_registerDefaultCallbacks'](){const _0x5160ae=()=>!0x1,_0x5e2518=_0x4e005b=>{_0x4e005b['sort']((_0x1ebfc0,_0x2f46d3)=>_0x1ebfc0['start']['isBefore'](_0x2f46d3['start'])?0x1:-0x1),this['_model']['change'](_0x5db179=>{for(const _0xa92ea7 of _0x4e005b){let _0x5bf63e;_0x5bf63e=_0xa92ea7['end']['isAtEnd']&&_0xa92ea7['end']['parent']==_0xa92ea7['start']['nodeAfter']?_0x5db179['createSelection'](_0xa92ea7['start']['nodeAfter'],'on'):_0x5db179['createSelection'](_0xa92ea7),this['_model']['deleteContent'](_0x5bf63e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xb01a61=(_0x3103cf,_0x1800e4)=>{_0x1800e4&&this['_model']['change'](_0x1cc1b8=>{const {commandName:_0x3214a4,commandParams:_0x5ba99f=[]}=_0x1800e4,_0x4e1437=_0x3103cf['map'](_0x5143c6=>(Gt(_0x5143c6)&&(_0x5143c6=this['_model']['createRange'](_0x5143c6['end'])),_0x5143c6))['filter'](_0x263203=>'$graveyard'!==_0x263203['root']['rootName']);if(_0x4e1437['length']<0x1)return;const _0x1be27e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1d4a5d=>_0x3959aa['fromRange'](_0x1d4a5d));_0x1cc1b8['setSelection'](_0x4e1437);for(const _0x1f128a of this['_editor']['commands']['commands']())_0x1f128a['refresh']();_0x5ba99f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3214a4,..._0x5ba99f);const _0x409f19=_0x1be27e['filter'](_0x55c72b=>'$graveyard'!=_0x55c72b['root']['rootName']);_0x409f19['length']>0x0&&_0x1cc1b8['setSelection'](_0x409f19);for(const _0x110f88 of _0x1be27e)_0x110f88['detach']();});},_0x4e7d11=(_0x47000a,_0x26b6ab)=>0x1==_0x47000a['length']&&0x1==_0x26b6ab['length']&&_0x47000a[0x0]['end']['isEqual'](_0x26b6ab[0x0]['start']),_0x12bf49=(_0x14f0f9,_0xeaf9d2,_0x2fb5be,_0x36ad92)=>zt(_0x14f0f9,_0xeaf9d2,_0x2fb5be,_0x36ad92)?[_0x14f0f9,_0xeaf9d2]:zt(_0xeaf9d2,_0x14f0f9,_0x36ad92,_0x2fb5be)?[_0xeaf9d2,_0x14f0f9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5160ae),this['_defaultCallbacks']['set']('insertion:discard',_0x5e2518),this['_defaultCallbacks']['set']('insertion:join',_0x4e7d11),this['_defaultCallbacks']['set']('insertion:chain',_0x12bf49),this['_defaultCallbacks']['set']('deletion:accept',_0x5e2518),this['_defaultCallbacks']['set']('deletion:discard',_0x5160ae),this['_defaultCallbacks']['set']('deletion:join',_0x4e7d11),this['_defaultCallbacks']['set']('deletion:chain',_0x12bf49),this['_defaultCallbacks']['set']('formatInline:accept',_0xb01a61),this['_defaultCallbacks']['set']('formatInline:discard',_0x5160ae),this['_defaultCallbacks']['set']('formatInline:join',_0x4e7d11),this['_defaultCallbacks']['set']('formatInline:chain',_0x5160ae),this['_defaultCallbacks']['set']('formatBlock:accept',_0xb01a61),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5160ae),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e7d11),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5160ae),this['_defaultCallbacks']['set']('attribute:accept',_0x5160ae),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d6f2e,_0xd90af7)=>{if(!_0xd90af7)return;const _0x12ce4b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3b9ffb=>{if(_0xd90af7['key']==u)for(const _0x431335 of _0x5d6f2e){const _0x44065c=_0x431335['start']['nodeAfter'],_0x3b905c=_0xd90af7['oldValue'];_0x3b9ffb['rename'](_0x44065c,_0x3b905c);}else{if(_0x12ce4b['_isBlockAttribute'](_0xd90af7['key'])){for(const _0x455340 of _0x5d6f2e)void 0x0!==_0xd90af7['oldValue']?_0x3b9ffb['setAttribute'](_0xd90af7['key'],_0xd90af7['oldValue'],_0x455340['start']['nodeAfter']):_0x3b9ffb['removeAttribute'](_0xd90af7['key'],_0x455340['start']['nodeAfter']);}else{for(const _0x13a8a1 of _0x5d6f2e)_0xd90af7['oldValue']?_0x3b9ffb['setAttribute'](_0xd90af7['key'],_0xd90af7['oldValue'],_0x13a8a1):_0x3b9ffb['removeAttribute'](_0xd90af7['key'],_0x13a8a1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e7d11);}}function Pt(_0x19b5bc,_0x5e31c9,_0x70e619){for(const _0x124b89 of _0x5e31c9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x124b89['root']==_0x124b89)return!0x1;if(!_0x70e619['containsItem'](_0x124b89))return!0x1;if(_0x19b5bc['isObject'](_0x124b89)||_0x19b5bc['isLimit'](_0x124b89))return!0x0;}return!0x1;}function Gt(_0x49c8c3){return _0x49c8c3['end']['parent']==_0x49c8c3['start']['nodeAfter']&&_0x49c8c3['end']['isAtStart'];}function Lt(_0x3d64e3,_0x12d237,_0x470ec6,_0x3d423f){const _0x45512f=_0xefc58b=>!_0xefc58b['item']['is']('$textProxy')&&!_0x3d423f['isObject'](_0xefc58b['item']),_0x2ce639=_0x3d64e3['start']['getLastMatchingPosition'](_0x45512f),_0x3ea64d=_0x3d64e3['end']['getLastMatchingPosition'](_0x45512f,{'direction':'backward'});return(!_0x3d64e3['start']['isEqual'](_0x2ce639)||!_0x3d64e3['end']['isEqual'](_0x3ea64d))&&(_0x2ce639['isBefore'](_0x3ea64d)?_0x470ec6['updateMarker'](_0x12d237,{'range':_0x470ec6['createRange'](_0x2ce639,_0x3ea64d)}):_0x470ec6['removeMarker'](_0x12d237),!0x0);}function Jt(_0x20e6b){return _0x1af9c2(_0x20e6b);}function Kt(_0x4cdca3){const _0x26ef0f=_0x4cdca3['start']['nodeAfter'];return _0x26ef0f&&_0x26ef0f['is']('element');}function Ht(_0x116391,_0x3c85b2){return null==_0x116391['end']['nodeBefore']&&_0x116391['end']['parent']==_0x116391['start']['nodeAfter']?qt(_0x116391['start']['nodeAfter'],_0x3c85b2):_0x116391;}function qt(_0xf58370,_0x5269b2){const _0x2d5d73=_0x5269b2['schema']['isObject'](_0xf58370)||_0x5269b2['schema']['isSelectable'](_0xf58370);return _0x5269b2['createRange'](_0x5269b2['createPositionAt'](_0xf58370,'before'),_0x2d5d73?_0x5269b2['createPositionAfter'](_0xf58370):_0x5269b2['createPositionAt'](_0xf58370,'end'));}function zt(_0x499d07,_0x49d9f1,_0x48f043,_0x551e02){return!!Wt(_0x499d07,_0x49d9f1)&&_0x48f043['end']['isEqual'](_0x551e02['start']);}function Wt(_0x1a9349,_0x2e097f){if(!_0x1a9349['_isDataLoaded']||!_0x2e097f['_isDataLoaded'])return!0x1;const _0x26a470=new Set(Object['keys'](_0x1a9349['attributes'])),_0x2404cb=new Set(Object['keys'](_0x2e097f['attributes']));if(_0x26a470['delete']('groupId'),_0x2404cb['delete']('groupId'),0x0==_0x26a470['size']&&0x0==_0x2404cb['size'])return!0x0;if(_0x26a470['size']!=_0x2404cb['size'])return!0x1;const _0x1ae2e6={..._0x1a9349['attributes']},_0x1d8857={..._0x2e097f['attributes']};return delete _0x1ae2e6['groupId'],delete _0x1d8857['groupId'],JSON['stringify'](_0x1ae2e6)==JSON['stringify'](_0x1d8857);}function Qt(_0x406faf,_0x442758){const _0x449a94=Xt(_0x406faf['attributes']),_0x43df63=Xt(_0x442758);if(!_0x406faf['_isDataLoaded'])return!0x1;for(const _0x5cbc96 of Object['keys'](_0x43df63))if(!_0x1ec0ec(_0x449a94[_0x5cbc96],_0x43df63[_0x5cbc96]))return!0x1;return!0x0;}function Xt(_0x1caa9a){const _0x565f26=Object['assign']({},_0x1caa9a);return delete _0x565f26['skipNestingCheck'],delete _0x565f26['tablePasteChainId'],_0x565f26;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x887ed8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x147efd,_0x44c829,_0x52023e,_0x23191f){super(),this['model']=_0x44c829,this['view']=_0x52023e,this['commentThreadController']=_0x23191f,this['_editor']=_0x147efd,this['_acceptCommand']=_0x147efd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x147efd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5c4247,_0x1ba188)=>_0x5c4247||_0x1ba188),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x18a3e7=>_0x18a3e7&&this['_editor']['model']['canEditAt'](_0x44c829['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42dd65=>_0x42dd65&&this['_editor']['model']['canEditAt'](_0x44c829['getRanges']())),this['_pendingAction']=null,_0x52023e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x52023e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x52023e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x52023e,'change:isDirty',()=>{_0x52023e['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 _0x1f5658=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1f5658);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1ae08e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1ee804,_0x308d3c,_0x50775e,_0x1bb70a){super(_0x1ee804),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x23676e(_0x1ee804,c(_0x1ee804,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x308d3c['authoredAt']),this['bind']('authoredAt')['to'](_0x308d3c),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',_0x308d3c,'authoredAt',this,'descriptionParts',(_0x145107,_0x54e0ad,_0x3c2d2e)=>{const _0x523f8b=_0x3c2d2e['map'](_0x3e5781=>ls(_0x3e5781['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x145107-0x1,_0x308d3c['author']['name'],_0x54e0ad?_0x1bb70a['formatDateTime'](_0x54e0ad):'',new DOMParser()['parseFromString'](_0x523f8b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5cf5fb(),this['focusTracker']=new _0xd2fdf4(),this['keystrokes']=new _0x54c82a(),this['focusCycler']=new _0xdf72f1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3ba520=>_0x3ba520['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x308d3c,this['_localUser']=_0x50775e,this['_config']=_0x1bb70a,_0x1bb70a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x501af8(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2f19f1}=this['_config'];this['commentsListView']=new _0x2f19f1(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',_0x519d87=>_0x519d87+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5c7b63,_0x1da778)=>_0x5c7b63||!!_0x1da778);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2d8dc7}=this['_config'],_0x33230d=new _0x2d8dc7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1f195e=_0x33230d['commentInputView'];return _0x33230d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1f195e,'value',(_0x55919f,_0x1ad2b7,_0x25e551)=>!!_0x25e551||_0x55919f&&!_0x1ad2b7),_0x1f195e['on']('submit',(_0x466691,_0x37dac8)=>{this['fire']('addComment',_0x37dac8),_0x1f195e['editor']['setData']('');}),_0x1f195e['on']('cancel',()=>this['focus']()),_0x1f195e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x33230d;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x23f783,_0x53d659,_0x3cb9af,_0x25a2d8){super(_0x23f783,_0x53d659,_0x3cb9af,_0x25a2d8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x198c0f=>_0x198c0f&&_0x198c0f[0x0]?_0x198c0f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2d5b38,_0x15ddf5)=>{let _0x1f4372='';for(const _0x328b6f of _0x2d5b38)_0x1f4372+='<p>'+ls(_0x328b6f['content'],_0x328b6f['color'])+'</p>';return _0x15ddf5?_0x1f4372:ti(_0x1f4372,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x25a2d8['SuggestionView'](_0x23f783,_0x53d659,{'formatDateTime':_0x25a2d8['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 _0x3bd54b=this['bindTemplate'],_0xa32d62=[this['suggestionView']];return this['commentsListView']&&_0xa32d62['push'](this['commentsListView']),this['commentThreadInputView']&&_0xa32d62['push'](this['commentThreadInputView']),_0xa32d62['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3bd54b['if']('isActive','ck-suggestion-wrapper--active'),_0x3bd54b['to']('type',_0x10c6de=>'ck-suggestion-'+_0x10c6de),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':_0x3bd54b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xa32d62};}['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 _0x1ae08e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1c7b30,_0x49dc90,_0x2aeeb8){super(_0x1c7b30),this['_model']=_0x49dc90,this['_config']=_0x2aeeb8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x49dc90),this['acceptButton']=this['_createButton'](c(_0x1c7b30,'Accept\x20suggestion'),_0x5f5da6,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1c7b30,'Discard\x20suggestion'),_0x45436f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x119510(_0x1c7b30,_0x49dc90['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5cf5fb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xd2fdf4(),this['keystrokes']=new _0x54c82a(),this['focusCycler']=new _0xdf72f1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x42f1c4=>_0x42f1c4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x662c9c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x662c9c['innerHTML']=this['description'],this['on']('change:description',(_0x48fa82,_0x547ff6,_0x45fa41)=>{_0x662c9c['innerHTML']=_0x45fa41;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4d2c28=this['bindTemplate'],_0x273447=[{'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':_0x4d2c28['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4d2c28['to']('authoredAt',_0x42c0f8=>this['_config']['formatDateTime'](_0x42c0f8))}]}]},{'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']&&_0x273447['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':_0x273447}]};}['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'](_0x4ba26d,_0x1da277,_0x2dd764,_0x5618ef,_0x60550d){const _0x3dc184=new _0x4097d9(this['locale']);return _0x3dc184['set']({'label':_0x4ba26d,'icon':_0x1da277,'tooltip':!0x0,'tooltipPosition':_0x60550d}),_0x3dc184['extendTemplate']({'attributes':{'class':_0x2dd764}}),_0x3dc184['on']('execute',()=>{this['fire'](_0x5618ef,this['_model']['id']);}),_0x3dc184;}['_setupKeyboardNavigation'](){const _0x37abed=this['element'];this['keystrokes']['listenTo'](_0x37abed);for(const _0x17a609 of this['focusables'])this['focusTracker']['add'](_0x17a609['element']),this['keystrokes']['listenTo'](_0x17a609['element']);this['keystrokes']['set']('enter',(_0x199782,_0x1547a2)=>{_0x37abed===_0x199782['target']&&(this['focusCycler']['focusFirst'](),_0x1547a2());}),this['keystrokes']['set']('esc',(_0x433a48,_0x1adfe4)=>{_0x37abed!==_0x433a48['target']&&(this['focus'](),_0x1adfe4());});}}class d extends _0x24f8b9{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1dafbf,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c04ff){super(_0x3c04ff),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x26e611=this['editor']['config'];_0x26e611['define']('trackChanges.SuggestionThreadView',fe),_0x26e611['define']('trackChanges.SuggestionView',we),_0x26e611['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x26e611['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x18e066,_0x43dda6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5d67aa,_0xe8cc25]of this['_handleControllerBuffer']){const _0x4fd609=this['_suggestionToController']['has'](_0x5d67aa);_0x4fd609||_0xe8cc25?_0x4fd609&&_0xe8cc25&&this['_destroyController'](_0x5d67aa):this['_initializeController'](_0x5d67aa);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x18e066,_0x43dda6);}['init'](){const _0x1e5bf7=this['editor'],_0x2ce33=_0x1e5bf7['plugins']['get']('TrackChangesEditing'),_0x5e4f1c=_0x1e5bf7['plugins']['get']('Annotations'),_0x5e3d85=_0x1e5bf7['plugins']['get']('EditorAnnotations'),_0x42d451=_0x1e5bf7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5e3d85['addSourceCollector'](()=>{const _0x21b7e2=[];for(const [_0x4731aa,_0x4e5dda]of Array['from'](this['_suggestionToController'])){const _0x235524=_0x4731aa['getAllAdjacentSuggestions'](),_0x781135=[];for(const _0x5f4fb1 of _0x235524){if(!_0x5f4fb1['isInContent'])continue;if(_0x5f4fb1['isMultiRange']){_0x781135['push'](..._0x5f4fb1['getRanges']());continue;}const _0x2a7c5a=_0x5f4fb1['getFirstRange']();if(_0x781135['length']>0x0){const _0x2567bb=_0x781135[0x0]['getJoined'](_0x2a7c5a);if(_0x2567bb){_0x781135[0x0]=_0x2567bb;continue;}}_0x781135['push'](_0x2a7c5a);}_0x21b7e2['push']([_0x4e5dda['view'],_0x781135]);}return _0x21b7e2;}),this['listenTo'](_0x2ce33,'suggestionLoaded',(_0x2c30d8,_0x5aa633)=>{this['listenTo'](_0x5aa633,'change:previous',(_0x31c28f,_0x31bcf5,_0x521404,_0x1310b7)=>{_0x5aa633['isInContent']&&(null==_0x521404?(this['_updateController'](_0x1310b7['head']),this['_handleSuggestionControllerDelayed'](_0x5aa633,!0x1)):(this['_updateController'](_0x521404['head']),null==_0x1310b7&&this['_handleSuggestionControllerDelayed'](_0x5aa633,!0x0)));}),null!==_0x5aa633['previous']?this['_updateController'](_0x5aa633['head']):this['_handleSuggestionControllerDelayed'](_0x5aa633,!0x1);}),this['listenTo'](_0x2ce33,'suggestionUnloaded',(_0xeb3997,_0x10829f,_0x4e7d31)=>{this['stopListening'](_0x10829f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x10829f),this['_suggestionToController']['has'](_0x10829f)&&this['_destroyController'](_0x10829f),_0x4e7d31&&this['_updateController'](_0x4e7d31['head']);}),this['listenTo'](_0x2ce33,'suggestionChanged',(_0x1c7dd3,_0x22103c)=>{this['_updateController'](_0x22103c);}),this['listenTo'](_0x5e4f1c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x42d451,'addComment',(_0x41181e,{threadId:_0x40718b,isFromAdapter:_0x3b21b3})=>{if(_0x3b21b3||!_0x2ce33['hasSuggestion'](_0x40718b))return;const _0x5302cc=_0x2ce33['getSuggestion'](_0x40718b);this['_suggestionToController']['get'](_0x5302cc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x8a88bb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57c654;for(const _0x44633a in _0x8a88bb){const _0x310e9d=_0x44633a,_0x432f43=_0x8a88bb[_0x310e9d];if('trackChangesLicenseKeyValid'==_0x432f43||'trackChangesLicenseKeyInvalid'==_0x432f43||'trackChangesLicenseKeyExpired'==_0x432f43||'trackChangesLicenseKeyDomainLimit'==_0x432f43||'trackChangesLicenseKeyNotAllowed'==_0x432f43||'trackChangesLicenseKeyEvaluationLimit'==_0x432f43||'trackChangesLicenseKeyTrialLimit'==_0x432f43||'trackChangesLicenseKeyUsageLimit'==_0x432f43){delete _0x8a88bb[_0x310e9d],_0x57c654=_0x432f43,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x57c654&&_0x8a88bb['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x57c654&&_0x8a88bb['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x57c654&&_0x8a88bb['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x57c654&&_0x8a88bb['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x57c654&&_0x8a88bb['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x57c654&&_0x8a88bb['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x57c654&&_0x8a88bb['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1a4c6c=this['editor']['plugins']['get']('Annotations'),_0x64faaf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4351ce=Array['from'](_0x1a4c6c['activeAnnotations'],_0x5472c8=>_0x5472c8['innerView'])['filter'](_0x2f8a0b=>this['_viewToController']['has'](_0x2f8a0b)),_0x192498=[];for(const _0x34aa93 of _0x4351ce){const _0xef56bd=this['_viewToController']['get'](_0x34aa93)['model']['getAllAdjacentSuggestions']();_0x192498['push'](..._0xef56bd['reduce']((_0x41206e,_0x458401)=>[..._0x41206e,..._0x458401['getMarkerNames']()],[]));}_0x64faaf['activeMarkers']=_0x192498;}['_addUIComponentsToFactory'](){const _0x44000b=this['editor'],_0x3ad0ca=_0x44000b['locale'],_0x3f8e01=c(_0x3ad0ca,'Track\x20changes'),_0x12af50=new _0x208c55([{'type':'switchbutton','model':new _0x44d753({'withText':!0x0,'isToggleable':!0x0,'label':_0x3f8e01,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x44d753({'withText':!0x0,'label':c(_0x3ad0ca,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44d753({'withText':!0x0,'label':c(_0x3ad0ca,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44d753({'withText':!0x0,'label':c(_0x3ad0ca,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44d753({'withText':!0x0,'label':c(_0x3ad0ca,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x44000b['plugins']['has']('TrackChangesPreview')&&_0x12af50['addMany']([{'type':'separator'},{'type':'button','model':new _0x44d753({'withText':!0x0,'label':c(_0x3ad0ca,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x289715 of _0x12af50)if(ke(_0x289715)){const _0x3522a4=_0x44000b['commands']['get'](_0x289715['model']['commandName']);_0x289715['model']['bind']('isOn','isEnabled')['to'](_0x3522a4,'value','isEnabled');}_0x44000b['ui']['componentFactory']['add']('trackChanges',_0x2b81fa=>this['_createToolbarButton'](_0x2b81fa,_0x12af50,_0x3f8e01)),_0x44000b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4ecee4=>this['_createMenuBarMenu'](_0x4ecee4,_0x12af50,_0x3f8e01));}['_createToolbarButton'](_0x142807,_0x47fa07,_0x3e817f){const _0x339906=_0x1b7152(_0x142807,_0x25d4ff),_0x58dcf2=this['editor']['commands']['get']('trackChanges');_0x339906['buttonView']['set']({'tooltip':_0x3e817f,'label':_0x3e817f,'icon':_0x18fa98}),_0x339906['buttonView']['bind']('isOn')['to'](_0x58dcf2,'value'),_0x339906['buttonView']['on']('execute',()=>{_0x58dcf2['execute'](),this['editor']['editing']['view']['focus']();}),_0x120eb8(_0x339906,_0x47fa07,{'role':'menu'});const _0x327bad=[];for(const _0x3f7476 of _0x47fa07)ke(_0x3f7476)&&_0x327bad['push'](this['editor']['commands']['get'](_0x3f7476['model']['commandName']));const _0x36435b=_0x339906['buttonView'];return _0x36435b['actionView']['unbind']('isEnabled'),_0x36435b['arrowView']['unbind']('isEnabled'),_0x36435b['actionView']['bind']('isEnabled')['to'](_0x58dcf2,'isEnabled'),_0x36435b['arrowView']['bind']('isEnabled')['toMany'](_0x327bad,'isEnabled',(..._0x428f2f)=>_0x428f2f['some'](_0x514414=>_0x514414)),_0x339906['on']('execute',_0x31d3a9=>{this['editor']['execute'](_0x31d3a9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x339906;}['_createMenuBarMenu'](_0x48e48d,_0x329307,_0x481e2c){const _0x403602=new _0xb3095e(_0x48e48d),_0x453960=this['editor']['commands']['get']('trackChanges');_0x403602['buttonView']['set']({'label':_0x481e2c,'icon':_0x18fa98});const _0x559c36=new _0x4a8505(_0x48e48d);for(const _0x349036 of _0x329307){if('separator'==_0x349036['type']){_0x559c36['items']['add'](new _0x57dd8c(_0x48e48d));continue;}const _0x3bc9f5=new _0x5aff3a(_0x48e48d,_0x403602),_0x5c40b0=new _0x35535a(_0x48e48d),_0x5688d7=_0x349036['model'];_0x5c40b0['bind'](...Object['keys'](_0x5688d7))['to'](_0x5688d7),_0x5c40b0['delegate']('execute')['to'](_0x403602),_0x5c40b0['on']('execute',()=>{this['editor']['execute'](_0x5688d7['commandName']),this['editor']['editing']['view']['focus']();}),_0x3bc9f5['children']['add'](_0x5c40b0),_0x559c36['items']['add'](_0x3bc9f5);}return _0x403602['bind']('isEnabled')['to'](_0x453960,'isEnabled'),_0x403602['panelView']['children']['add'](_0x559c36),_0x403602;}['_initializeController'](_0x3516f5){const _0x17699b=this['editor'],_0xbdb2d1=_0x17699b['config'],_0x3f8652=_0x17699b['plugins']['get']('Annotations'),_0x477b21=_0x17699b['plugins']['get']('CommentsRepository'),_0x5cdcd0=_0x17699b['plugins']['get']('EditorAnnotations'),_0x4ac9fe=_0x17699b['plugins']['get'](_0x1dafbf)['me'],_0x4eebb9=_0xbdb2d1['get']('trackChanges')['SuggestionThreadView'],_0x341b4d=_0xbdb2d1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x21d6a3,CommentThreadInputView:_0x18a036}=_0x17699b['plugins']['get']('CommentsUI');let _0x47b560,_0x44069f,_0x1a4147;this['_annotationViews']['has'](_0x3516f5['id'])?(_0x44069f=this['_annotationViews']['get'](_0x3516f5['id']),_0x47b560=_0x44069f['mainView']):(_0x47b560=new _0x4eebb9(_0x17699b['locale'],_0x3516f5,_0x4ac9fe,{'disableComments':this['_disableComments'],'editorConfig':{..._0xbdb2d1['get']('comments.editorConfig'),'licenseKey':_0xbdb2d1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xbdb2d1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xbdb2d1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xbdb2d1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x269fe2(_0xbdb2d1['get']('locale')),'CommentView':_0xbdb2d1['get']('comments')['CommentView'],'CommentsListView':_0x21d6a3,'CommentThreadInputView':_0x18a036,'SuggestionView':_0x341b4d}),_0x47b560['suggestionView']['acceptButton']['on']('execute',()=>{_0x17699b['editing']['view']['focus']();}),_0x47b560['suggestionView']['discardButton']['on']('execute',()=>{_0x17699b['editing']['view']['focus']();}),_0x44069f=_0x3f8652['createAnnotationView'](this['editor']['locale'],_0x47b560),_0x44069f['bind']('isDirty')['to'](_0x47b560,'isDirty'),_0x44069f['bind']('length')['to'](_0x47b560),_0x44069f['bind']('type')['to'](_0x47b560,'type',_0x505ded=>'suggestion-'+_0x505ded),_0x47b560['on']('escape',()=>{_0x1a4147['fire']('escape');}),this['_annotationViews']['set'](_0x3516f5['id'],_0x44069f));const _0x5e9cc2=_0x477b21['createCommentThreadController'](_0x3516f5['commentThread'],_0x47b560),_0x21254f=new pe(_0x17699b,_0x3516f5,_0x47b560,_0x5e9cc2),_0x47383a=_0x3516f5['getAllAdjacentSuggestions']()['filter'](_0x49b1b7=>_0x49b1b7['isInContent']);_0x47b560['descriptionParts']=_0x17699b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x47383a),this['_suggestionToController']['set'](_0x3516f5,_0x21254f),this['_viewToController']['set'](_0x47b560,_0x21254f),_0x1a4147=_0x3f8652['createAnnotation']({'view':_0x44069f,'target':()=>{const _0x270bf6=[],_0x6142c6=_0x3516f5['getAllAdjacentSuggestions']()['filter'](_0x4a7856=>_0x4a7856['isInContent']);for(const _0x4071db of _0x6142c6)_0x270bf6['push'](..._0x4071db['getMarkers']());return _0x486367(_0x17699b['editing'],_0x270bf6);},'type':()=>'suggestion-'+_0x21254f['view']['type']}),_0x477b21['_bindAnnotationToEditors'](_0x47b560,_0x1a4147),_0x3f8652['add'](_0x1a4147),_0x5cdcd0['registerAnnotation'](_0x1a4147);}['_destroyController'](_0x13ed8f){const _0x94930a=this['editor']['plugins']['get']('CommentsRepository'),_0x29d801=this['editor']['plugins']['get']('Annotations'),_0x149ddc=this['_suggestionToController']['get'](_0x13ed8f),_0x4cae61=_0x149ddc['view'],_0x262791=_0x29d801['getByInnerView'](_0x4cae61);_0x94930a['_unbindEditors'](_0x4cae61),_0x262791&&_0x29d801['remove'](_0x262791),this['_suggestionToController']['delete'](_0x13ed8f),this['_viewToController']['delete'](_0x4cae61),_0x149ddc['destroy']();}['_updateController'](_0x2dfb63){if(!_0x2dfb63['isInContent']||!this['_suggestionToController']['has'](_0x2dfb63))return;const _0x8da2e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x484f77=this['_suggestionToController']['get'](_0x2dfb63),_0x559f9e=_0x2dfb63['getAllAdjacentSuggestions']();_0x484f77['view']['descriptionParts']=_0x8da2e9['descriptionFactory']['getDescriptions'](_0x559f9e);}['destroy'](){for(const _0x43539d of this['_suggestionToController']['keys']())this['_destroyController'](_0x43539d);for(const _0x33e6a3 of this['_annotationViews']['values']())_0x33e6a3['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5316c9){return'model'in _0x5316c9;}class k extends _0x24f8b9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x19f69a){this['editor']['plugins']['get'](p)['adapter']=_0x19f69a;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5d4463){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5d4463);}['getSuggestions']({skipNotAttached:_0x570fc3=!0x1,toJSON:_0x284b60=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x570fc3,'toJSON':_0x284b60});}['getSuggestion'](_0x54bf05){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x54bf05);}}const w=['Pagination'];class T extends _0x24f8b9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4449ca=this['editor'];if(_0x4449ca['config']['define']('trackChangesData.editorCreator',_0x5e0ed4=>{const _0x333b37=_0x4449ca['model']['document']['getRootNames']()['reduce']((_0x5844c3,_0x106bb7)=>(_0x5844c3[_0x106bb7]='',_0x5844c3),{});return _0x4449ca['constructor']['create'](_0x333b37,_0x5e0ed4);}),'function'!=typeof _0x4449ca['config']['get']('trackChangesData')['editorCreator'])throw new _0x5acbff('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4eab00){return N(this['editor'],!0x0,_0x4eab00);}['getDataWithDiscardedSuggestions'](_0x3371b4){return N(this['editor'],!0x1,_0x3371b4);}}class D extends _0x24f8b9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4427ba){function _0xac15b7(_0x4ce118){return _0x4ce118['map'](_0x4f0c9b=>String['fromCharCode'](_0x4f0c9b))['join']('');}super(_0x4427ba),this['result']='end',_0x4427ba[_0xac15b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xac15b7([0x76,0x69,0x65,0x77])][_0xac15b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xac15b7([0x61,0x75,0x74,0x6f]),_0x4427ba[_0xac15b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xac15b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xac15b7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xac15b7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xac15b7([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(_0xad41ad){return void 0x0!==_0xad41ad['getRootsAttributes'];}async function N(_0x1d310d,_0x39e301,_0x14cd9b){const _0x5bd2c6=_0x3f97c4(_0x1d310d,w);_0x5bd2c6['plugins']['push'](p,D),_0x5bd2c6['rootsAttributes']=Fe(_0x1d310d)?_0x1d310d['getRootsAttributes']():void 0x0;const _0x9415c6=document['createDocumentFragment'](),_0x40f180=_0x1d310d['config']['get']('trackChangesData')['editorCreator'],_0x27f48b=await _0x40f180(_0x5bd2c6,()=>function(_0x42193e){const _0x498d8a=document['createElement']('div');return _0x42193e['appendChild'](_0x498d8a),_0x498d8a;}(_0x9415c6));!function(_0xd088b9,_0x392cc9){const _0xb25479=_0xd088b9['model']['document']['getRootNames']()['reduce']((_0x3cf7d0,_0x5a9bca)=>(_0x3cf7d0[_0x5a9bca]=_0xd088b9['data']['get']({'rootName':_0x5a9bca}),_0x3cf7d0),{}),_0x3c31c1=_0xd088b9['plugins']['get']('Users')['users']['map'](_0x45e5aa=>({'id':_0x45e5aa['id'],'name':_0x45e5aa['name']})),_0x3a82c6=_0xd088b9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3cadbb=_0xd088b9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bcb50=_0x392cc9['plugins']['get']('Users'),_0x48d817=_0x392cc9['plugins']['get']('TrackChangesEditing'),_0x3935cc=_0x392cc9['plugins']['get']('CommentsRepository');for(const _0x2ae02a of _0x3935cc['getCommentThreads']())_0x2ae02a['remove']();for(const _0x8f5f59 of _0x3c31c1)_0x3bcb50['getUser'](_0x8f5f59['id'])||_0x3bcb50['addUser'](_0x8f5f59);_0x3bcb50['me']||_0x3bcb50['useAnonymousUser']();for(const _0x57cf13 of _0x3cadbb)_0x3935cc['addCommentThread'](_0x57cf13);for(const _0x42e132 of _0x3a82c6)_0x48d817['addSuggestionData'](_0x42e132);_0x392cc9['data']['set'](_0xb25479);}(_0x1d310d,_0x27f48b),_0x27f48b['execute'](_0x39e301?'acceptAllSuggestions':'discardAllSuggestions');const _0x415ea4=Fe(_0x27f48b)?_0x27f48b['getFullData'](_0x14cd9b):_0x27f48b['data']['get'](_0x14cd9b);return await _0x27f48b['destroy'](),_0x415ea4;}class Me extends _0x1ae08e{['options'];constructor(_0x555835,_0x3a3f12){super(_0x555835),this['options']=_0x3a3f12,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'](_0x3d5fa7,_0x34d461){if(!this['element'])return;const _0x3bec1c=[];for(const [_0x1b57b9,_0x5b9342]of _0x3d5fa7){const _0x4a84ca=document['createElement']('div');_0x4a84ca['setAttribute']('data-ck-root-name',_0x1b57b9),_0x4a84ca['className']=_0x5b9342['classes']+'\x20ck-track-changes-preview__root-container',_0x4a84ca['innerHTML']=_0x5b9342['content'],_0x3bec1c['push'](_0x4a84ca);}_0x34d461(this['element'],_0x3bec1c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3a0b82{constructor(_0x5dea44){super(_0x5dea44),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x43c08b=this['editor'],_0x3baada=_0x43c08b['locale'],_0x32e529=_0x43c08b['plugins']['get']('Dialog');let _0x1a34c7;const _0x821340=function(_0x45aea4){const _0x5aa2b3={};if('editables'in _0x45aea4['ui']['view']){for(const [_0x36abca,_0x1bff45]of Object['entries'](_0x45aea4['ui']['view']['editables']))_0x5aa2b3[_0x36abca]=_0x1bff45['element'];}else _0x5aa2b3[_0x45aea4['model']['document']['getRootNames']()[0x0]]=_0x45aea4['ui']['view']['editable']['element'];return _0x5aa2b3;}(_0x43c08b),_0x5997f7=function(_0x1907b2){let _0x45ac87=0x0;for(const _0x6c5a31 of Object['values'](_0x1907b2))_0x45ac87=Math['max'](_0x45ac87,_0x6c5a31['getBoundingClientRect']()['width']);let _0x97c636=0x0;for(const _0x12fd2d of Object['values'](_0x1907b2))_0x97c636+=_0x12fd2d['getBoundingClientRect']()['height'];const _0x4e9cac=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x211655=Math['min'](_0x97c636,_0x4e9cac);return{'width':_0x45ac87,'height':_0x211655};}(_0x821340);_0x32e529['show']({'id':'finalContentPreview','title':c(_0x3baada,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3baada,{'dialogRects':_0x5997f7}),'onHide':()=>{_0x1a34c7['detachFromDom']();},'onShow':()=>{_0x43c08b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x11a5b0=>{const _0x299b41=this['_standarizeRootsData'](_0x11a5b0,_0x43c08b,_0x821340);_0x32e529['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x299b41,_0x43c08b['config']['get']('trackChanges.preview.renderFunction'));}),_0x1a34c7=new _0x3f4c31(_0x3baada,[_0x32e529['view']]),_0x1a34c7['attachToDom'](),_0x1a34c7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x43c08b['once']('destroy',()=>{_0x1a34c7['detachFromDom']();});const _0x5b50e1=_0x32e529['view']['headerView']['class'];_0x32e529['view']['headerView']['class']=_0x5b50e1?_0x5b50e1+'\x20ck-reset_all':'ck-reset_all',_0x32e529['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x32e529['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xddff9f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2d90b2=_0xddff9f['previewMode'],_0x2ce55a={};if('$labels'===_0x2d90b2){for(const _0x475eed of _0xddff9f['getMergeFieldsIds']())_0x2ce55a[_0x475eed]=_0xddff9f['getLabel'](_0x475eed)||_0x475eed;}else{const _0x227340='$defaultValues'===_0x2d90b2?_0xddff9f['getDefaultValues']():_0xddff9f['getDataSetValues'](_0x2d90b2,!0x0);for(const _0x45305a of Object['entries'](_0x227340)){const [_0x3fa79f,_0x57b51e]=_0x45305a;_0x2ce55a[_0x3fa79f]=null!==_0x57b51e?_0x57b51e:_0xddff9f['getLabel'](_0x3fa79f)||_0x3fa79f;}}return{'mergeFieldsData':_0x2ce55a};}['_standarizeRootsData'](_0x3b7c04,_0x35f307,_0x4ac0f0){let _0x3b4dce;if('string'==typeof _0x3b7c04){const _0xfc741f=_0x35f307['model']['document']['getRootNames']()[0x0];_0x3b4dce={[_0xfc741f]:_0x3b7c04};}else _0x3b4dce=_0x3b7c04;const _0x73cdaa=this['_fixMediaEmbeds'](_0x3b4dce,_0x35f307),_0xf34fb4=function(_0x54943f,_0x4ff055){for(const [_0x37b8b5,_0x2d191f]of _0x54943f)_0x2d191f['classes']=_0x4ff055[_0x37b8b5]['classList']['value']['replace']('ck-focused','');return _0x54943f;}(this['_sortRoots'](_0x35f307)['reduce']((_0x260068,_0x479fbe)=>(_0x260068['push']([_0x479fbe,{'content':_0x73cdaa[_0x479fbe],'classes':''}]),_0x260068),[]),_0x4ac0f0);return _0xf34fb4;}['_fixMediaEmbeds'](_0x238c67,_0x4f62dd){if(!_0x4f62dd['plugins']['has']('MediaEmbedEditing'))return _0x238c67;const _0x35c762=_0x4f62dd['plugins']['get']('MediaEmbedEditing');for(const [_0x2153c5,_0x271be5]of Object['entries'](_0x238c67)){const _0x10ee00=document['createElement']('div');_0x10ee00['innerHTML']=_0x271be5,(_0x10ee00['querySelectorAll']('figure.media')['forEach'](_0x2fdcf1=>{const _0x42cbb6=_0x2fdcf1['querySelector']('oembed');if(_0x42cbb6){const _0x342d40=_0x42cbb6['getAttribute']('url');if(_0x342d40){const _0x41a5d0=_0x35c762['registry']['getMediaViewElement'](new _0x52ac12(_0x4f62dd['editing']['view']['document']),_0x342d40,{'elementName':'','renderForEditingView':!0x0}),_0x1eea28=document['createElement']('div');_0x1eea28['classList']['add']('ck-media__wrapper'),_0x41a5d0['render'](_0x1eea28,_0x4f62dd['editing']['view']['domConverter']),_0x42cbb6['replaceWith'](_0x1eea28);}}}),_0x238c67[_0x2153c5]=_0x10ee00['innerHTML']);}return _0x238c67;}['_sortRoots'](_0x188f74){if(!function(_0x2c3344){return void 0x0!==_0x2c3344['getRootsAttributes'];}(_0x188f74))return _0x188f74['model']['document']['getRootNames']();const _0x34a03d=[],_0x198ae0=new Map();for(const _0x40a20e of _0x188f74['model']['document']['getRootNames']()){const _0x2476fc=_0x188f74['editing']['view']['getDomRoot'](_0x40a20e)['getClientRects']()['item'](0x0);_0x34a03d['push'](_0x40a20e),_0x198ae0['set'](_0x40a20e,_0x2476fc);}return _0x34a03d['sort']((_0x2cc12f,_0x2162d3)=>{const _0x7ac0c4=_0x198ae0['get'](_0x2cc12f),_0x3b3831=_0x198ae0['get'](_0x2162d3);return _0x7ac0c4['y']-_0x3b3831['y']||_0x7ac0c4['x']-_0x3b3831['x'];}),_0x34a03d;}}class te extends _0x24f8b9{static get['requires'](){return[T,_0x4b4000];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4540b6){super(_0x4540b6),_0x4540b6['commands']['add']('previewFinalContent',new re(this['editor'])),_0x4540b6['config']['define']('trackChanges.preview.renderFunction',(_0x126527,_0x26b063)=>{for(const _0x4c5d2e of _0x26b063)_0x126527['appendChild'](_0x4c5d2e);});}}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 _0x37ce87,Plugin as _0x3e269d,PendingActions as _0x588ec7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x18e16a,ObservableMixin as _0x4528d6,uid as _0x3c1a26,priorities as _0x8e3b5a,insertToPriorityArray as _0x23ec18,logWarning as _0x103b40,getEnvKeystrokeText as _0x2fe146,FocusTracker as _0xc57afb,KeystrokeHandler as _0x449ed2,Collection as _0x164fcb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x25268e,IconCancel as _0x1fa8ec,IconTrackChanges as _0x356207}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2785aa,View as _0x1463b7,ViewCollection as _0x1bf68c,FocusCycler as _0x10fd90,ViewModel as _0x76b1a0,createDropdown as _0xa404a6,SplitButtonView as _0x34f17b,addListToDropdown as _0x214f3c,MenuBarMenuView as _0x51ca67,MenuBarMenuListView as _0x256da7,ListSeparatorView as _0x1143ba,MenuBarMenuListItemView as _0x3d4f7e,MenuBarMenuListItemButtonView as _0x4ea7a1,BodyCollection as _0x1292bb,Dialog as _0x474954}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5ec89e,hashObject as _0x43877d,surroundingMarkersDetector as _0x8efb6,FOCUS_ANNOTATION_KEYSTROKE as _0x5af2e3,AriaDescriptionView as _0x2d0a95,setupThreadKeyboardNavigation as _0x33c3cb,trimHtml as ti,UserView as _0x18055f,LateFocusButtonView as _0x198514,getDateTimeFormatter as _0xd75f1d,getAllMarkersDomElementsSorted as _0x12da23,sanitizeEditorConfig as _0x1be598}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x44e7e0,LiveRange as _0x512def,LivePosition as _0xce2feb,DowncastWriter as _0xdb7e34}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1ebf5e,toWidget as _0x5f1acc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3ad774,set as _0x1dea47,isEqual as _0x1ca487,unset as _0xd4f663,omit as Vt}from'es-toolkit/compat';import{Delete as _0x1f112f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4dfcb0,ShiftEnter as _0x7f1542}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x37ce87{['_enabledCommands'];constructor(_0x18159e,_0x3c04df){super(_0x18159e),this['_enabledCommands']=_0x3c04df,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 _0x11e59f of this['editor']['commands']['commands']())_0x11e59f['affectsData']&&!this['_enabledCommands']['has'](_0x11e59f)&&_0x11e59f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2ac5c4 of this['editor']['commands']['commands']())_0x2ac5c4['affectsData']&&!this['_enabledCommands']['has'](_0x2ac5c4)&&_0x2ac5c4['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x37ce87{['_suggestions'];constructor(_0x4e7ebe,_0x558ce6){super(_0x4e7ebe),this['_suggestions']=_0x558ce6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17d013){const _0x1d8799=this['_suggestions']['get'](_0x17d013);if(!_0x1d8799)throw new _0x18e16a('track-changes-accept-suggestion-not-found',this);const _0x27e28b=_0x1d8799['getRanges']();this['editor']['model']['canEditAt'](_0x27e28b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1d8799);}}class R extends _0x37ce87{['_suggestions'];constructor(_0x4d417a,_0x4f30ce){super(_0x4d417a),this['_suggestions']=_0x4f30ce,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x6a2223){const _0x439258=this['_suggestions']['get'](_0x6a2223);if(!_0x439258)throw new _0x18e16a('track-changes-discard-suggestion-not-found',this);const _0x2f6308=_0x439258['getRanges']();this['editor']['model']['canEditAt'](_0x2f6308)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x439258);}}function ls(_0xc54acc,_0x2eac38){let _0xb2d3fc='';return _0xb2d3fc+=_0xc54acc['split']('*')['map']((_0x1df28d,_0x4fcb1e)=>_0x4fcb1e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1df28d)+'</span>':nn(_0x1df28d))['join'](''),_0x2eac38&&(_0xb2d3fc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2eac38['value']+'\x22\x20title=\x22'+_0x2eac38['title']+'\x22></span>'),_0xb2d3fc;}function nn(_0x59c688){const _0x14f8c8=document['createElement']('span');return _0x14f8c8['innerText']=_0x59c688,_0x14f8c8['innerHTML'];}function ts(_0xfabe76){return _0xfabe76['sort']((_0x1b0a08,_0x23604f)=>'deletion'==_0x1b0a08['type']&&'deletion'!=_0x23604f['type']?-0x1:'deletion'!=_0x1b0a08['type']&&'deletion'==_0x23604f['type']?0x1:0x0);}function Zt(_0x10ad68,_0x14ee7a){let _0x2c3961,_0x482fde=0x0;const _0xb87ae4=[],_0x1e9ff1=_0x14ee7a['schema'];for(;_0x482fde<_0x10ad68['length'];){const _0x2b684b=_0x10ad68[_0x482fde],_0x40e6d4=_0x10ad68[_0x482fde+0x1];_0x2c3961||(_0x2c3961=_0x14ee7a['createPositionBefore'](_0x2b684b)),on(_0x14ee7a,_0x2b684b,_0x40e6d4)||(_0xb87ae4['push'](_0x14ee7a['createRange'](_0x2c3961,_0x1e9ff1['isObject'](_0x2b684b)?_0x14ee7a['createPositionAfter'](_0x2b684b):_0x14ee7a['createPositionAt'](_0x2b684b,'end'))),_0x2c3961=null),_0x482fde++;}return _0xb87ae4;}function on(_0x4d2b53,_0x5717b7,_0x1439a8){if(!_0x1439a8)return!0x1;const _0x1cd9fb=_0x4d2b53['createPositionAfter'](_0x5717b7),_0x4a0b91=_0x4d2b53['createPositionBefore'](_0x1439a8);return _0x1cd9fb['isTouching'](_0x4a0b91);}function rs(_0x13a9dc,_0x2631c4,_0x261e32){for(;_0x261e32['length'];){const _0x1647ec=_0x261e32['splice'](0x0,0x64);_0x13a9dc['change'](()=>{for(const _0x1cad4a of _0x1647ec)_0x1cad4a['isInContent']&&_0x2631c4['execute'](_0x1cad4a['id']);});}}class x extends _0x37ce87{['_command'];['_suggestions'];constructor(_0x24bc96,_0x1ac5b9,_0x586197){super(_0x24bc96),this['_command']=_0x1ac5b9,this['_suggestions']=_0x586197,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x321422=Array['from'](this['_suggestions']['values']())['some'](_0xc43fa1=>_0xc43fa1['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x321422;}['execute'](){const _0x1a7820=ts(Array['from'](this['_suggestions']['values']()));for(const _0x42eb00 of _0x1a7820){const _0x24b28e=_0x42eb00['getRanges']();if(!this['editor']['model']['canEditAt'](_0x24b28e))return;}rs(this['editor']['model'],this['_command'],_0x1a7820);}}class E extends _0x37ce87{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5de0b6,_0x251d79,_0x4981fd){super(_0x5de0b6),this['_command']=_0x251d79,this['_suggestions']=_0x4981fd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3ec71a=this['editor']['model']['document']['selection'],_0x5a740a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x198c2f,_0x5c412a){const _0x1eb936=Array['from'](_0x198c2f['getRanges']()),_0x42f8e3=new Set();for(const _0x4a8cdc of _0x5c412a)if(_0x4a8cdc['isInContent']){for(const _0xb4a69e of _0x1eb936)for(const _0x407767 of _0x4a8cdc['getRanges']())(_0xb4a69e['isIntersecting'](_0x407767)||_0x198c2f['isCollapsed']&&!_0x4a8cdc['isMultiRange']&&_0x4a8cdc['next']&&_0x407767['end']['isTouching'](_0xb4a69e['start']))&&_0x42f8e3['add'](_0x4a8cdc);}return _0x42f8e3;}(_0x3ec71a,_0x5a740a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3fea73=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1822e5 of _0x3fea73){const _0x517dbc=_0x1822e5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x517dbc))return;}rs(this['editor']['model'],this['_command'],_0x3fea73);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4528d6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x13c49f,_0x2863f4){super(),this['id']=_0x2863f4['id'],this['type']=_0x2863f4['type'],this['subType']=_0x2863f4['subType']||null,this['author']=_0x2863f4['author'],this['creator']=_0x2863f4['creator']||_0x2863f4['author'],this['isExternal']=Boolean(_0x2863f4['attributes']&&_0x2863f4['attributes']['@external']),this['data']=null,this['_model']=_0x13c49f,this['_onAccept']=_0x2863f4['onAccept'],this['_onDiscard']=_0x2863f4['onDiscard'],this['_onAttributesChange']=_0x2863f4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2863f4['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 _0x514583=this;for(;_0x514583['previous'];)_0x514583=_0x514583['previous'];return _0x514583;}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'](_0x426f69){this['_markerNames']['add'](_0x426f69);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2aee1a=>this['_model']['markers']['get'](_0x2aee1a))['filter'](_0x5a06e9=>_0x5a06e9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x13401e=>{for(const _0x4a8f87 of this['getMarkers']())_0x13401e['removeMarker'](_0x4a8f87);}),this['_markerNames']['clear']();}['removeMarker'](_0x47c273){this['_model']['change'](_0x2b3e2f=>{_0x2b3e2f['removeMarker'](_0x47c273);}),this['_markerNames']['delete'](_0x47c273);}['addRange'](_0x3170cd){const _0x29c201='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x29c201),this['_model']['change'](_0x4a9c56=>{_0x4a9c56['addMarker'](_0x29c201,{'range':_0x3170cd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x424987){for(const _0x1fb068 of this['getRanges']())if(_0x1fb068['isIntersecting'](_0x424987))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x67e85c=>_0x67e85c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x50f6da,_0x1d9f96)=>[..._0x50f6da,..._0x1d9f96['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2485a3=this['getRanges']();if(0x1!=_0x2485a3['length'])return null;const _0x24c6fe=_0x2485a3[0x0],_0x3edaca=_0x24c6fe['start']['nodeAfter'],_0x4a8b00=_0x24c6fe['end']['nodeBefore'];return _0x3edaca instanceof _0x44e7e0?_0x3edaca!=_0x4a8b00?null:_0x3edaca: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 _0x2f0f71=[];let _0x202299=this['head'];for(;_0x202299;)_0x2f0f71['push'](_0x202299),_0x202299=_0x202299['next'];return _0x2f0f71;}['setAttribute'](_0x78f56,_0x54efce){const _0x4042bd=_0x3ad774(this['attributes']);_0x1dea47(_0x4042bd,_0x78f56,_0x54efce),_0x1ca487(_0x4042bd,this['attributes'])||(this['attributes']=_0x4042bd,this['_onAttributesChange'](_0x4042bd));}['removeAttribute'](_0x2ad28e){const _0x1ce12c=_0x3ad774(this['attributes']);_0xd4f663(_0x1ce12c,_0x2ad28e),_0x1ca487(_0x1ce12c,this['attributes'])||(this['attributes']=_0x1ce12c,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 _0x3c1a26()['substr'](0x1,0x5);}}function c(_0x418c75,_0x23f283,_0x2cb2f0){const _0x16b4ef=_0x418c75['t'],t=_0x418c75['t'];switch(_0x23f283){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',_0x2cb2f0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2cb2f0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2cb2f0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2cb2f0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2cb2f0);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',_0x2cb2f0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2cb2f0);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',_0x2cb2f0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2cb2f0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2cb2f0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2cb2f0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2cb2f0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2cb2f0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2cb2f0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2cb2f0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2cb2f0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2cb2f0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2cb2f0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2cb2f0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2cb2f0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2cb2f0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2cb2f0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2cb2f0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2cb2f0);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'},_0x2cb2f0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2cb2f0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2cb2f0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2cb2f0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2cb2f0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2cb2f0);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'},_0x2cb2f0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2cb2f0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2cb2f0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2cb2f0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2cb2f0);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'},_0x2cb2f0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2cb2f0);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'},_0x2cb2f0);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'},_0x2cb2f0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2cb2f0);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'},_0x2cb2f0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2cb2f0);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'},_0x2cb2f0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2cb2f0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2cb2f0);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'},_0x2cb2f0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2cb2f0);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 _0x16b4ef({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2cb2f0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x16b4ef({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2cb2f0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2cb2f0);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'},_0x2cb2f0);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'},_0x2cb2f0);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'},_0x2cb2f0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x23f283;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x550ab8,_0x1ccd39){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x550ab8,this['_locale']=_0x1ccd39;}['getDescriptions'](_0x4c3b01){const _0x48af98=[],_0x259dc9=new Set(),_0x1c9dc5=new Set();for(let _0x4aa14b=0x0;_0x4aa14b<_0x4c3b01['length'];_0x4aa14b++){const _0x239819=_0x4c3b01[_0x4aa14b];if(!_0x239819['isInContent'])continue;const _0x402b34=this['_handleCustomCallbackDescription'](_0x239819);if(_0x402b34){if(null!=_0x239819['subType']){if(_0x259dc9['has'](_0x239819['subType']))continue;_0x259dc9['add'](_0x239819['subType']);}_0x48af98['push'](_0x402b34);}else{if('attribute'!=_0x239819['type'])'insertion'!=_0x239819['type']&&'deletion'!=_0x239819['type']||this['_handleInsertRemoveSuggestionDescription'](_0x48af98,_0x239819,_0x4c3b01[_0x4aa14b+0x1]);else{const _0x5b4a18=_0x239819['data']['key'];if(_0x1c9dc5['has'](_0x5b4a18))continue;_0x1c9dc5['add'](_0x239819['data']['key']),_0x5b4a18==u?this['_handleRenameSuggestionDescription'](_0x48af98,_0x239819):this['_handleAttributeSuggestionDescription'](_0x48af98,_0x239819);}}}return this['_resolveDescriptionItems'](_0x48af98);}['registerDescriptionCallback'](_0x513f75){this['_customCallbacks']['push'](_0x513f75);}['registerElementLabel'](_0x20f41d,_0x3d338b,_0x4b8a17=_0x8e3b5a['normal']){'function'==typeof _0x20f41d?_0x23ec18(this['_itemLabelsCallbacks'],{'matchingCallback':_0x20f41d,'label':_0x3d338b,'priority':_0x4b8a17}):this['_itemLabels']['set'](_0x20f41d,_0x3d338b);}['registerAttributeLabel'](_0x55f48c,_0x3c3c95){this['_attributeLabels']['set'](_0x55f48c,_0x3c3c95);}['getItemLabel'](_0x2e0ff1,_0x7b2dbe=0x1){let _0x5488f5;for(const _0x437372 of this['_itemLabelsCallbacks'])if(_0x437372['matchingCallback'](_0x2e0ff1)){_0x5488f5=_0x437372['label'];break;}return _0x5488f5||(_0x5488f5=this['_itemLabels']['get'](_0x2e0ff1['name'])),_0x5488f5?_0x5488f5(_0x7b2dbe):0x1!==_0x7b2dbe?_0x7b2dbe+'\x20'+_0x2e0ff1['name']+'s':''+_0x2e0ff1['name'];}['_addDescriptionItems'](_0x16c95f,_0x29d286){const _0x69baaf=_0x29d286['getFirstRange']()['getWalker'](),_0x24ad1f='insertion'==_0x29d286['type']?'add':'remove';for(const _0x3c6d1b of _0x69baaf){const _0x11fd24=_0x3c6d1b['item'],_0x370609=_0x16c95f[_0x16c95f['length']-0x1];if(_0x11fd24['is']('$textProxy'))_0x370609&&_0x370609['type']['indexOf']('Container')>-0x1&&_0x16c95f['pop'](),_0x370609&&'text'==_0x370609['type']?_0x370609[_0x24ad1f]+=_0x11fd24['data']:_0x16c95f['push']({'type':'text','add':'add'==_0x24ad1f?_0x11fd24['data']:'','remove':'remove'==_0x24ad1f?_0x11fd24['data']:''});else{if(this['_schema']['isObject'](_0x11fd24)){const _0x130460=_0x11fd24;if(_0x370609&&_0x370609['type']['indexOf']('Container')>-0x1&&_0x16c95f['pop'](),'elementEnd'==_0x3c6d1b['type'])continue;_0x370609&&_0x370609['type']==_0x24ad1f+'Object'&&_0x370609['element']['name']==_0x130460['name']?_0x370609['quantity']++:_0x16c95f['push']({'type':_0x24ad1f+'Object','element':_0x130460,'quantity':0x1}),_0x69baaf['skip'](_0x1924ba=>!('elementEnd'==_0x1924ba['type']&&_0x1924ba['item']==_0x11fd24));}else{if(this['_schema']['checkChild'](_0x11fd24,'$text')||_0x11fd24['is']('element','softBreak')){const _0x1bc520=_0x11fd24;if('add'==_0x24ad1f&&'elementStart'==_0x3c6d1b['type']||'remove'==_0x24ad1f&&'elementEnd'==_0x3c6d1b['type'])continue;if(_0x370609&&-0x1==_0x370609['type']['indexOf']('Container')){'text'==_0x370609['type']&&(_0x370609[_0x24ad1f]+='\x0a');continue;}let _0x9f9705;if(_0x9f9705='add'==_0x24ad1f?_0x1bc520['nextSibling']&&!this['_schema']['isObject'](_0x1bc520['nextSibling'])?_0x1bc520['nextSibling']:null:_0x1bc520['previousSibling']&&!this['_schema']['isObject'](_0x1bc520['previousSibling'])?_0x1bc520['previousSibling']:null,_0x1bc520['isEmpty']||_0x9f9705&&_0x9f9705['isEmpty']){const _0x2aa88b=_0x9f9705&&_0x9f9705['isEmpty']?_0x9f9705:_0x1bc520;_0x370609&&_0x370609['type']==_0x24ad1f+'EmptyContainer'&&_0x370609['element']['name']==_0x2aa88b['name']?_0x370609['quantity']++:_0x16c95f['push']({'type':_0x24ad1f+'EmptyContainer','element':_0x2aa88b,'quantity':0x1});}else _0x16c95f['push']({'type':_0x24ad1f+'Container','element':_0x1bc520});}}}}}['_resolveDescriptionItems'](_0x1aa568){const _0x339919=this['_locale'],_0x81f45f=[],_0x5dabec=[],_0x365f9c=[];for(const _0x1d1375 of _0x1aa568)switch(_0x1d1375['type']){case'text':if(_0x1d1375['add']=_0x1d1375['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1d1375['remove']=_0x1d1375['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1d1375['add']&&''!=_0x1d1375['remove']){_0x81f45f['push']({'type':'replace','content':c(_0x339919,'REPLACE_TEXT',['\x22'+_0x1d1375['remove']+'\x22','\x22'+_0x1d1375['add']+'\x22'])});continue;}if(null!=_0x1d1375['add']['match'](/^ +$/)){_0x81f45f['push']({'type':'insertion','content':c(_0x339919,'*Insert:*\x20%0',c(_0x339919,'ELEMENT_SPACE',_0x1d1375['add']['length']))});continue;}if(null!=_0x1d1375['remove']['match'](/^ +$/)){_0x81f45f['push']({'type':'deletion','content':c(_0x339919,'*Remove:*\x20%0',c(_0x339919,'ELEMENT_SPACE',_0x1d1375['remove']['length']))});continue;}if(''!=_0x1d1375['add']){_0x81f45f['push']({'type':'insertion','content':c(_0x339919,'*Insert:*\x20%0','\x22'+_0x1d1375['add']+'\x22')});continue;}_0x81f45f['push']({'type':'deletion','content':c(_0x339919,'*Remove:*\x20%0','\x22'+_0x1d1375['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x81f45f['push']({'type':'insertion','content':c(_0x339919,'*Insert:*\x20%0',this['getItemLabel'](_0x1d1375['element'],_0x1d1375['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x81f45f['push']({'type':'deletion','content':c(_0x339919,'*Remove:*\x20%0',this['getItemLabel'](_0x1d1375['element'],_0x1d1375['quantity']))});continue;case'addContainer':_0x81f45f['push']({'type':'insertion','content':c(_0x339919,'*Split:*\x20%0',this['getItemLabel'](_0x1d1375['element'],_0x1d1375['quantity']))});continue;case'removeContainer':_0x81f45f['push']({'type':'deletion','content':c(_0x339919,'*Merge:*\x20%0',this['getItemLabel'](_0x1d1375['element'],_0x1d1375['quantity']))});continue;case'addFormat':_0x5dabec['push'](_0x1d1375['key']);continue;case'removeFormat':_0x365f9c['push'](_0x1d1375['key']);continue;default:_0x81f45f['push'](_0x1d1375);}if(_0x5dabec['length']){const _0x4ec08d=_0x5dabec['map'](_0x29bbda=>this['_attributeLabels']['has'](_0x29bbda)?this['_attributeLabels']['get'](_0x29bbda):_0x29bbda)['join'](',\x20');_0x81f45f['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4ec08d)});}if(_0x365f9c['length']){const _0x498f0e=_0x365f9c['map'](_0x181a5b=>this['_attributeLabels']['has'](_0x181a5b)?this['_attributeLabels']['get'](_0x181a5b):_0x181a5b)['join'](',\x20');_0x81f45f['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x498f0e)});}return _0x81f45f;}['_handleCustomCallbackDescription'](_0x546a94){for(const _0x5772be of this['_customCallbacks']){const _0x2cf360=_0x5772be(_0x546a94);if(_0x2cf360&&'type'in _0x2cf360)return _0x2cf360;}}['_handleAttributeSuggestionDescription'](_0x315f63,_0x7dfd90){const _0x29752f=_0x7dfd90['data'],_0x400f57=void 0x0===_0x29752f['newValue']?'removeFormat':'addFormat';_0x315f63['push']({'type':_0x400f57,'key':_0x29752f['key']});}['_handleRenameSuggestionDescription'](_0x523169,_0x20cb23){_0x523169['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20cb23['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1107f7,_0xcd321f,_0x34eadf){if(this['_addDescriptionItems'](_0x1107f7,_0xcd321f),_0x34eadf&&_0x34eadf['getFirstRange']()&&!_0xcd321f['getFirstRange']()['end']['isEqual'](_0x34eadf['getFirstRange']()['start'])){const _0x431201=_0x1107f7[_0x1107f7['length']-0x1],_0x19a82c='insertion'==_0xcd321f['type']?'add':'remove';_0x431201&&'text'==_0x431201['type']&&(_0x431201[_0x19a82c]+='\x0a');}}}class U extends _0x3e269d{['afterInit'](){const _0x217cad=this['editor'],_0x5f4857=_0x217cad['plugins']['get']('TrackChangesEditing');_0x217cad['commands']['get']('showAIAssistant')&&_0x5f4857['enableCommand']('showAIAssistant');}}class V extends _0x3e269d{['afterInit'](){const _0x2e49c2=this['editor'],_0x35eeac=_0x2e49c2['locale'];if(!_0x2e49c2['plugins']['has']('AlignmentEditing'))return;const _0x30c7a1=_0x2e49c2['plugins']['get']('TrackChangesEditing');_0x30c7a1['enableDefaultAttributesIntegration']('alignment'),_0x30c7a1['registerBlockAttribute']('alignment'),_0x30c7a1['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x35eeac,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37e693=this['editor'],_0x1f565f=_0x37e693['locale'];_0x37e693['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34f522=>{if('formatBlock'!=_0x34f522['type'])return;const {data:_0x2c1864}=_0x34f522;if(_0x2c1864&&'alignment'==_0x2c1864['commandName']){const _0x387658=_0x2c1864['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1f565f,'*Format:*\x20%0',function(_0x18cf58){switch(_0x18cf58){case'left':return c(_0x1f565f,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1f565f,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1f565f,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1f565f,'FORMAT_JUSTIFY_TEXT');}}(_0x387658))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3e269d{['afterInit'](){const _0x798a26=this['editor'],_0x1149f9=_0x798a26['plugins']['get']('TrackChangesEditing'),_0x282943=_0x798a26['locale'];for(const _0x55c2dd of Yt){if(!_0x798a26['plugins']['has'](_0x55c2dd))continue;const _0x1366ed=_0x55c2dd['slice'](0x0,-0x7)['toLowerCase'](),_0x5640f5='FORMAT_'+_0x1366ed['toUpperCase']();_0x1149f9['enableDefaultAttributesIntegration'](_0x1366ed),_0x1149f9['registerInlineAttribute'](_0x1366ed),_0x1149f9['descriptionFactory']['registerAttributeLabel'](_0x1366ed,c(_0x282943,_0x5640f5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b68d7=this['editor'],_0x45691e=_0x4b68d7['locale'],_0x5360fa=_0x4b68d7['plugins']['get']('TrackChangesEditing');function _0x551d1f(_0x21e172,_0x3adec0){_0x5360fa['descriptionFactory']['registerDescriptionCallback'](_0x5ba781=>{if('formatInline'!=_0x5ba781['type'])return;const {data:_0xa4939b}=_0x5ba781;return _0xa4939b&&_0xa4939b['commandName']===_0x21e172?_0xa4939b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x45691e,'*Format:*\x20%0',_0x3adec0)}:{'type':'format','content':c(_0x45691e,'*Remove\x20format:*\x20%0',_0x3adec0)}:void 0x0;});}_0x551d1f('bold',c(_0x45691e,'FORMAT_BOLD')),_0x551d1f('italic',c(_0x45691e,'FORMAT_ITALIC')),_0x551d1f('underline',c(_0x45691e,'FORMAT_UNDERLINE')),_0x551d1f('code',c(_0x45691e,'FORMAT_CODE')),_0x551d1f('strikethrough',c(_0x45691e,'FORMAT_STRIKETHROUGH')),_0x551d1f('subscript',c(_0x45691e,'FORMAT_SUBSCRIPT')),_0x551d1f('superscript',c(_0x45691e,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3e269d{['afterInit'](){const _0x1d7091=this['editor'],_0x1f5f8d=_0x1d7091['locale'];if(!_0x1d7091['plugins']['has']('BlockQuoteEditing'))return;const _0x18f7a2=_0x1d7091['plugins']['get']('TrackChangesEditing'),_0x50b0f0=this['editor']['commands']['get']('blockQuote');_0x18f7a2['enableCommand']('blockQuote',(_0x28614a,_0x5be3dc={})=>{const _0x2582ed=this['editor']['model']['document']['selection'],_0x1d38cf=_0x5be3dc&&void 0x0!==_0x5be3dc['forceValue']?_0x5be3dc['forceValue']:!_0x50b0f0['value'];let _0x62cc8d=[];if(_0x1d38cf){const _0x3a30f1=Array['from'](_0x2582ed['getSelectedBlocks']())['filter'](_0xa21c78=>to(_0xa21c78)||function(_0x115806,_0x232faa){const _0x3be591=_0x232faa['checkChild'](_0x115806['parent'],'blockQuote'),_0x5a8e64=_0x232faa['checkChild'](['$root','blockQuote'],_0x115806);return _0x3be591&&_0x5a8e64;}(_0xa21c78,this['editor']['model']['schema']));_0x62cc8d=Zt(_0x3a30f1,_0x1d7091['model']);}else{const _0x13b141=Array['from'](_0x2582ed['getSelectedBlocks']())['filter'](_0x5f44e9=>to(_0x5f44e9));_0x62cc8d=Zt(_0x13b141,_0x1d7091['model']);}_0x1d7091['model']['change'](()=>{for(const _0x3afdaa of _0x62cc8d)_0x18f7a2['markBlockFormat'](_0x3afdaa,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d38cf}]});});}),_0x18f7a2['descriptionFactory']['registerDescriptionCallback'](_0x1204d6=>{const {data:_0x4cc1cc}=_0x1204d6;if(_0x4cc1cc&&'blockQuote'==_0x4cc1cc['commandName']){const _0x463231=c(_0x1f5f8d,'ELEMENT_BLOCK_QUOTE');return _0x4cc1cc['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1f5f8d,'*Set\x20format:*\x20%0',_0x463231)}:{'type':'format','content':c(_0x1f5f8d,'*Remove\x20format:*\x20%0',_0x463231)};}});}}function to(_0x2bce98){return'blockQuote'==_0x2bce98['parent']['name'];}class L extends _0x3e269d{['afterInit'](){const _0x9a93a5=this['editor'],_0x1eab1e=_0x9a93a5['locale'],_0x69ada0=_0x9a93a5['plugins']['get']('TrackChangesEditing');_0x9a93a5['plugins']['has']('BookmarkEditing')&&(_0x69ada0['enableCommand']('insertBookmark'),_0x69ada0['enableDefaultAttributesIntegration']('updateBookmark'),_0x69ada0['registerBlockAttribute']('bookmarkId'),_0x69ada0['descriptionFactory']['registerDescriptionCallback'](_0x1444ec=>{if('insertion'!=_0x1444ec['type']&&'deletion'!=_0x1444ec['type']&&'attribute'!=_0x1444ec['type'])return;const _0x2f2a4c=_0x1444ec['getContainedElement']();if(null==_0x2f2a4c)return;if(!_0x2f2a4c['is']('element','bookmark'))return;const _0x5fd8db=_0x2f2a4c['getAttribute']('bookmarkId');if('insertion'==_0x1444ec['type'])return{'type':'insertion','content':c(_0x1eab1e,'*Insert:*\x20%0','\x22'+_0x5fd8db+'\x22\x20'+c(_0x1eab1e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1444ec['type'])return{'type':'deletion','content':c(_0x1eab1e,'*Remove:*\x20%0','\x22'+_0x5fd8db+'\x22\x20'+c(_0x1eab1e,'ELEMENT_BOOKMARK'))};const {data:_0x57b9f4}=_0x1444ec;if(!_0x57b9f4||'bookmarkId'!=_0x57b9f4['key'])return;return{'type':'format','content':c(_0x1eab1e,'*Set\x20bookmark:*\x20%0','\x22'+_0x57b9f4['newValue']+'\x22')};}));}}class J extends _0x3e269d{['afterInit'](){const _0x53a55e=this['editor'];_0x53a55e['plugins']['has']('CaseChange')&&(_0x53a55e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x53a55e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x53a55e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3e269d{['afterInit'](){const _0x551523=this['editor'];_0x551523['commands']['get']('ckbox')&&_0x551523['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3e269d{['afterInit'](){const _0xa30c72=this['editor'];if(!_0xa30c72['plugins']['has']('CodeBlock'))return;const _0x3b916d=_0xa30c72['plugins']['get']('TrackChangesEditing'),_0x176121=_0xa30c72['locale'],_0x47bbe5=_0xa30c72['config']['get']('codeBlock')['languages'],_0x1dd831=_0xa30c72['commands']['get']('codeBlock');_0x3b916d['enableCommand']('indentCodeBlock'),_0x3b916d['enableCommand']('outdentCodeBlock'),_0x3b916d['enableCommand']('codeBlock',(_0x263b37,_0x5f289b={})=>{const _0x4f13c9=_0xa30c72['model'],_0x33e642=_0xa30c72['model']['document']['selection'],_0x313215=_0x5f289b&&void 0x0!==_0x5f289b['forceValue']?_0x5f289b['forceValue']:!_0x1dd831['value'];let _0x1348e6;_0x5f289b['language']||(_0x5f289b['language']=_0x47bbe5[0x0]['language']),_0x1348e6=_0x313215?Array['from'](_0x33e642['getSelectedBlocks']())['filter'](_0x1b2143=>oo(_0x1b2143)||function(_0x37e261,_0x426257){if(_0x37e261['is']('rootElement')||_0x426257['isLimit'](_0x37e261))return!0x1;return _0x426257['checkChild'](_0x37e261['parent'],'codeBlock');}(_0x1b2143,_0x4f13c9['schema'])):Array['from'](_0x33e642['getSelectedBlocks']())['filter'](_0x15a44d=>oo(_0x15a44d));const _0x2e05f3=Zt(_0x1348e6,_0x4f13c9);_0x4f13c9['change'](()=>{for(const _0x6cf6fc of _0x2e05f3)_0x3b916d['markBlockFormat'](_0x6cf6fc,{'commandName':'codeBlock','commandParams':[{..._0x5f289b,'forceValue':_0x313215}],'formatGroupId':'blockName'});});}),(_0x3b916d['descriptionFactory']['registerElementLabel']('codeBlock',_0x143d22=>c(_0x176121,'ELEMENT_CODE_BLOCK',_0x143d22)),_0x3b916d['descriptionFactory']['registerDescriptionCallback'](_0x321bd4=>{if('formatBlock'!=_0x321bd4['type'])return;const _0x104ea5=_0x176121['t'],{data:_0x4cd32a}=_0x321bd4;if(!_0x4cd32a||'codeBlock'!=_0x4cd32a['commandName'])return;const _0x236a08=_0x4cd32a['commandParams'][0x0]['language'],_0x1818ab=_0x104ea5(_0x47bbe5['find'](_0x2e0b38=>_0x2e0b38['language']===_0x236a08)['label'])['toLowerCase']();return _0x4cd32a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x176121,'*Set\x20format:*\x20%0',c(_0x176121,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1818ab+')')}:{'type':'format','content':c(_0x176121,'*Remove\x20format:*\x20%0',c(_0x176121,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x291d98){return'codeBlock'==_0x291d98['name'];}class q extends _0x3e269d{['afterInit'](){const _0x15231f=this['editor'];if(!_0x15231f['plugins']['has']('CommentsEditing'))return;_0x15231f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2335f3,_0x5f0202,_0x4fe15f){const _0x40f5a0=[];for(const _0x4a2cc6 of _0x5f0202['getItems']())_0x4a2cc6['hasAttribute'](_0x2335f3)&&_0x40f5a0['push'](_0x4fe15f['createRangeOn'](_0x4a2cc6));return _0x40f5a0;}function De(_0x6b7570,_0x126f9a,{showActiveMarker:_0x4b2614=!0x0}={}){const _0x598bb5=_0x6b7570['plugins']['get']('TrackChangesEditing');return(_0x3682a1,_0x3b3254,_0x1efe1d)=>{if(!_0x1efe1d['consumable']['test'](_0x3b3254['markerRange'],_0x3682a1['name']))return;const _0x26644f=_0x3b3254['markerRange']['getWalker'](),_0x3afca7=_0x3b3254['markerRange']['start'],_0x113c5e=_0x6b7570['model']['schema'];let _0x3bbe5d=null,_0x31d465=null,_0x568d3a=!0x1,_0x4c16a7=!0x1;for(const _0x106722 of _0x26644f){const _0x543789=_0x106722['item'];_0x568d3a=_0x568d3a||_0x113c5e['isContent'](_0x543789);const _0x300332=_0x1efe1d['mapper']['toViewElement'](_0x543789);if(_0x300332&&_0x300332['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x106722['type']&&(_0x113c5e['isBlock'](_0x543789)&&!_0x113c5e['isLimit'](_0x543789)&&(_0x543789['nextSibling']||_0x3afca7['isAtEnd']?_0x3bbe5d&&_0x3bbe5d['parent']==_0x543789||(_0x3bbe5d=_0x543789,_0x331459(_0x106722['previousPosition']),_0x4c16a7=!0x0):_0x31d465=_0x31d465||_0x106722['previousPosition']));}function _0x331459(_0x4b4a0b){const {authorId:_0xc6c1c0}=_0x598bb5['_splitMarkerName'](_0x3b3254['markerName']),_0x393540=_0x1efe1d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x126f9a,'data-author-id':_0xc6c1c0}),_0x40504e=_0x1efe1d['mapper']['toViewPosition'](_0x4b4a0b);_0x4b2614&&_0x598bb5['activeMarkers']['includes'](_0x3b3254['markerName'])&&_0x1efe1d['writer']['addClass']('ck-suggestion-marker--active',_0x393540),_0x1efe1d['writer']['insert'](_0x40504e,_0x393540),_0x1efe1d['mapper']['bindElementToMarker'](_0x393540,_0x3b3254['markerName']);}_0x568d3a||_0x4c16a7||!_0x31d465||_0x331459(_0x31d465);};}class z extends _0x3e269d{static get['requires'](){return[_0x1f112f];}['init'](){const _0x1e4cb6=this['editor'],_0x2339f6=_0x1e4cb6['plugins']['get']('TrackChangesEditing');_0x2339f6['enableCommand']('delete');const _0x31205a=_0x1e4cb6['commands']['get']('deleteForward');_0x2339f6['enableCommand']('deleteForward',(_0x57cf92,_0x2e86cc={})=>{const _0x3c6bca=_0x1e4cb6['model']['createSelection'](_0x1e4cb6['model']['document']['selection']);_0x3c6bca['isCollapsed']&&_0x1e4cb6['model']['modifySelection'](_0x3c6bca,{'direction':'forward','unit':_0x2e86cc['unit']});const _0x5b0e6f=_0x3c6bca['getFirstRange'](),_0x549b12=_0x512def['fromRange'](_0x5b0e6f);let _0x3b408e;_0x57cf92(_0x2e86cc),_0x3b408e='$graveyard'==_0x549b12['root']['rootName']?_0x1e4cb6['model']['createRange'](_0x5b0e6f['start']):_0x1e4cb6['model']['createRange'](_0x549b12['start'],_0x549b12['end']),_0x549b12['detach'](),_0x1e4cb6['model']['enqueueChange'](_0x31205a['buffer']['batch'],_0x2775ce=>{_0x31205a['buffer']['lock'](),_0x2775ce['setSelection'](_0x2775ce['createRange'](_0x3b408e['end'])),_0x31205a['buffer']['unlock']();});}),_0x1e4cb6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1e4cb6,'merge'),{'priority':'high'}),_0x1e4cb6['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4a1c11,_0x403088,_0x420f94)=>{_0x420f94['options']['showSuggestionHighlights']&&De(_0x1e4cb6,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4a1c11,_0x403088,_0x420f94);},{'priority':'high'}),_0x1e4cb6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x8e664f,_0x55736d,_0xc3b23f)=>{const _0x2d39ca=_0xc3b23f['mapper']['markerNameToElements'](_0x55736d['markerName']);if(_0x2d39ca){for(const _0x3ebf8f of _0x2d39ca)_0x3ebf8f['is']('uiElement')&&(_0xc3b23f['mapper']['unbindElementFromMarkerName'](_0x3ebf8f,_0x55736d['markerName']),_0xc3b23f['writer']['remove'](_0x3ebf8f));}},{'priority':'high'});}}class W extends _0x3e269d{['afterInit'](){const _0x50aa1d=this['editor'];if(!_0x50aa1d['plugins']['has']('ListEditing'))return;const _0x5659f6=_0x50aa1d['locale'],_0x4ce96d=_0x50aa1d['plugins']['get']('TrackChangesEditing'),_0x3405b6=_0x50aa1d['plugins']['has']('TodoListEditing'),_0x5b9da3=!!_0x50aa1d['config']['get']('list.multiBlock');function _0x502167(_0x1ae45b){return{'type':'format','content':''+c(_0x5659f6,'*Set\x20format:*\x20%0',_0x1ae45b)};}function _0x12ff75(_0x2f1a73){return{'type':'format','content':''+c(_0x5659f6,'*Remove\x20format:*\x20%0',_0x2f1a73)};}_0x4ce96d['enableDefaultAttributesIntegration']('numberedList'),_0x4ce96d['enableDefaultAttributesIntegration']('bulletedList'),_0x4ce96d['enableDefaultAttributesIntegration']('customNumberedList'),_0x4ce96d['enableDefaultAttributesIntegration']('customBulletedList'),_0x4ce96d['enableDefaultAttributesIntegration']('indentList'),_0x4ce96d['enableDefaultAttributesIntegration']('outdentList'),_0x4ce96d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4ce96d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4ce96d['registerBlockAttribute']('listItemId'),_0x4ce96d['registerBlockAttribute']('listType'),_0x4ce96d['registerBlockAttribute']('listIndent'),_0x5b9da3&&(_0x4ce96d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4ce96d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3405b6&&(_0x4ce96d['enableDefaultAttributesIntegration']('todoList'),_0x4ce96d['enableDefaultAttributesIntegration']('checkTodoList'),_0x4ce96d['registerBlockAttribute']('todoListChecked'),_0x4ce96d['descriptionFactory']['registerDescriptionCallback'](_0x3a959b=>{const {data:_0x33aa53}=_0x3a959b;if(_0x33aa53&&'todoListChecked'==_0x33aa53['key'])return{'type':'format','content':_0x33aa53['newValue']?c(_0x5659f6,'*Check\x20item*'):c(_0x5659f6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x25b6d0=>{if(_0x25b6d0['batch']['isUndo'])return!0x1;let _0x3fdc57=!0x1;const _0xf78dc0=_0x4ce96d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x140060=>'todoListChecked'===_0x4ce96d['_getAttributeKey'](_0x140060));for(const _0x3c5f88 of _0xf78dc0){'todo'!=_0x3c5f88['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4ce96d['_findSuggestions'](_0x3c5f88['getFirstRange'](),'attribute')['find'](_0x32df4d=>'listType'===_0x4ce96d['_getAttributeKey'](_0x32df4d['suggestion']))||(_0x25b6d0['removeMarker'](_0x3c5f88['getFirstMarker']()),_0x3fdc57=!0x0));}return _0x3fdc57;})),_0x4ce96d['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5659f6,'FORMAT_INDENT'));const _0x489234={'type':'format','content':''};_0x4ce96d['descriptionFactory']['registerDescriptionCallback'](_0x3f5389=>{const {data:_0x384b41}=_0x3f5389;if(!_0x384b41||'listType'!=_0x384b41['key'])return;let _0xc5f534=_0x3f5389['head'];for(;_0xc5f534;){if(_0xc5f534['data']&&(('listStyle'==_0xc5f534['data']['key']||'listMarkerStyle'==_0xc5f534['data']['key'])&&(_0xc5f534['data']['newValue']&&'default'!=_0xc5f534['data']['newValue']||'default'!=_0xc5f534['data']['oldValue']&&!_0x384b41['newValue'])||!_0x5b9da3&&_0xc5f534['data']['key']==u))return _0x489234;_0xc5f534=_0xc5f534['next'];}if(null==_0x384b41['newValue'])switch(_0x384b41['oldValue']){case'bulleted':return _0x12ff75(c(_0x5659f6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12ff75(c(_0x5659f6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12ff75(c(_0x5659f6,'ELEMENT_TODO_LIST'));}switch(_0x384b41['newValue']){case'bulleted':return _0x502167(c(_0x5659f6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x502167(c(_0x5659f6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x502167(c(_0x5659f6,'ELEMENT_TODO_LIST'));}}),_0x4ce96d['descriptionFactory']['registerDescriptionCallback'](_0x5a7442=>{const {data:_0x90b556}=_0x5a7442;if(_0x90b556&&'listIndent'==_0x90b556['key'])return null==_0x90b556['newValue']||null==_0x90b556['oldValue']&&0x0==_0x90b556['newValue']?_0x489234:void 0x0;}),_0x4ce96d['descriptionFactory']['registerDescriptionCallback'](_0x344eee=>{if('attribute'!=_0x344eee['type'])return;const {data:_0x33ef72}=_0x344eee;if(!_0x33ef72||'listItemId'!=_0x33ef72['key'])return;const _0x1d751f=Te(_0x344eee);return'newValue'==_0x1d751f?{'type':'format','content':c(_0x5659f6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1d751f?{'type':'format','content':c(_0x5659f6,'*Split:*\x20list\x20item')}:_0x489234;}),_0x50aa1d['model']['document']['registerPostFixer'](_0x4d6081=>this['listItemIdFixer'](_0x4d6081)),_0x50aa1d['model']['document']['registerPostFixer'](_0x1dee3c=>this['noTrackChangesFixer'](_0x1dee3c)),_0x50aa1d['model']['document']['on']('change:data',(_0x5e0667,_0x5786c8)=>{if(_0x5786c8['isUndo']||!_0x5786c8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x33627d){if(_0x33627d['batch']['isUndo']||!_0x33627d['batch']['isLocal'])return!0x1;let _0x37c316=!0x1;const _0x41185a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ff945=>_0x1ff945['data']&&'listItemId'==_0x1ff945['data']['key'])['filter'](_0x4f2a97=>_0x4f2a97['data']['newValue']&&_0x4f2a97['data']['oldValue']);for(const _0x5a8274 of _0x41185a)Te(_0x5a8274)||(_0x33627d['removeMarker'](_0x5a8274['getFirstMarker']()),_0x37c316=!0x0);return _0x37c316;}['noTrackChangesFixer'](_0x239b36){if(_0x239b36['batch']['isUndo']||!_0x239b36['batch']['isLocal'])return!0x1;const _0x2d4829=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2d4829['trackChangesCommand']['value'])return!0x1;let _0x283b34=!0x1;const _0x37877d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x23f13a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x54a64d=>'attribute'==_0x54a64d['type'])['filter'](_0x2443fe=>_0x37877d['includes'](_0x2443fe['attributeKey']));if(0x0==_0x23f13a['length'])return _0x283b34;for(const _0x122d5a of _0x23f13a){const _0x16242c=_0x2d4829['_findSuggestions'](_0x122d5a['range'],'attribute')['filter'](_0x84c045=>!_0x84c045['meta']['isNextTo'])['map'](_0x5e25c7=>_0x5e25c7['suggestion'])['filter'](_0x1b1e60=>{const _0x3d3d71=_0x2d4829['_getAttributeKey'](_0x1b1e60);return _0x37877d['includes'](_0x3d3d71);});if(_0x16242c['length']){for(const _0x33011a of _0x16242c)_0x239b36['removeMarker'](_0x33011a['getFirstMarker']());_0x283b34=!0x0;}}return _0x283b34;}['assureChains'](){const _0x3c0225=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c7a31=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5c5ec3;const _0x2a268c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5518b4=>{if(_0x5518b4['data']['oldRange']||!_0x5518b4['data']['newRange'])return null;if(!_0x5518b4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x156514}=_0x3c0225['_splitMarkerName'](_0x5518b4['name']);if(!_0x3c0225['hasSuggestion'](_0x156514))return null;const _0x2cd140=_0x3c0225['getSuggestion'](_0x156514);return _0x4c7a31['includes'](_0x2cd140['data']['key']);})['map'](_0xfb0450=>{const {id:_0x45e89d}=_0x3c0225['_splitMarkerName'](_0xfb0450['name']),_0x13a9c0=_0x3c0225['getSuggestion'](_0x45e89d);return _0x5c5ec3=_0x13a9c0['attributes']['groupId'],_0x13a9c0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2a268c['size'])return;const _0x1a970d=_0x3c0225['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5096fc=>'attribute'==_0x5096fc['type']&&_0x5096fc['data']&&_0x4c7a31['includes'](_0x5096fc['data']['key'])&&_0x5096fc['attributes']['groupId']!=_0x5c5ec3)['map'](_0x34705a=>({'listItem':_0x34705a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x34705a['attributes']['groupId']})),_0x35c2c7=new Set();for(const {groupId:_0x12d6be,listItem:_0x20cc1b}of _0x1a970d)_0x2a268c['has'](_0x20cc1b)&&_0x35c2c7['add'](_0x12d6be);for(const _0x57b90f of _0x3c0225['getSuggestions']())_0x35c2c7['has'](_0x57b90f['attributes']['groupId'])&&_0x57b90f['setAttribute']('groupId',_0x5c5ec3);}['_supportLegacySuggestions'](){const _0x5653fd=this['editor'],_0x4eb8d0=_0x5653fd['locale'],_0x8048d9=_0x5653fd['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x8048d9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x263125,_0x5b0977){const _0x1400b7=[];for(let _0x3539d4 of _0x263125)_0x3539d4['start']['nodeAfter']===_0x3539d4['end']['parent']&&(_0x3539d4=_0x5653fd['model']['createRange'](_0x5653fd['model']['createPositionAt'](_0x3539d4['start']['nodeAfter'],0x0))),_0x1400b7['push'](_0x3539d4);_0x5653fd['model']['change'](_0x416be3=>{const _0x504e83=_0x5653fd['model']['document']['selection'],_0x27d872=Array['from'](_0x504e83['getRanges']())['map'](_0x357b4d=>_0x512def['fromRange'](_0x357b4d));_0x416be3['setSelection'](_0x1400b7),_0x5653fd['commands']['get'](_0x5b0977['commandName'])['refresh'](),_0x5b0977['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5653fd['execute'](_0x5b0977['commandName'],..._0x5b0977['commandParams']),_0x416be3['setSelection'](_0x27d872);for(const _0x490260 of _0x27d872)_0x490260['detach']();});}),_0x8048d9['descriptionFactory']['registerElementLabel'](function(_0x2d092d){const _0x3ecdaa=!_0x5653fd['model']['schema']['isObject'](_0x2d092d),_0x2df447=_0x2d092d['previousSibling'],_0x564309=_0x2d092d['nextSibling'],_0xaf8950=_0x2d092d['getAttribute']('listItemId'),_0x3c24bd=!_0x2df447||_0x2df447['getAttribute']('listItemId')!==_0xaf8950,_0x141e8c=!_0x564309||_0x564309['getAttribute']('listItemId')!==_0xaf8950;return _0x3ecdaa&&Boolean(_0xaf8950)&&_0x3c24bd&&_0x141e8c;},_0xf027e9=>c(_0x4eb8d0,'ELEMENT_LIST_ITEM',_0xf027e9));}['_registerLegacyDescription'](){const _0x226b0b=this['editor'],_0x169e00=_0x226b0b['locale'];function _0x33f854(_0x8aed8){const _0x5932e4=_0x226b0b['commands']['get']('bulletedList')['value'],_0xbcb25e=_0x226b0b['commands']['get']('numberedList')['value'];return'numberedList'===_0x8aed8?_0x5932e4:_0xbcb25e;}_0x226b0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2b4b29){if('formatBlock'!=_0x2b4b29['type'])return;const {data:_0x5b9e5b}=_0x2b4b29;if(!_0x5b9e5b)return;let _0x13791d,_0x4e4a96,_0x189ee2,_0x2f6cc2;switch(_0x5b9e5b['commandName']){case'bulletedList':_0x189ee2=_0x5b9e5b['commandParams'][0x0]['forceValue'],_0x2f6cc2=_0x33f854(_0x5b9e5b['commandName']),_0x13791d=_0x189ee2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f6cc2&&_0x226b0b['config']['get']('list.multiBlock')||(_0x13791d='*Change\x20to:*\x20%0'),_0x4e4a96={'type':'format','content':c(_0x169e00,_0x13791d,c(_0x169e00,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x189ee2=_0x5b9e5b['commandParams'][0x0]['forceValue'],_0x2f6cc2=_0x33f854(_0x5b9e5b['commandName']),_0x13791d=_0x189ee2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f6cc2&&_0x226b0b['config']['get']('list.multiBlock')||(_0x13791d='*Change\x20to:*\x20%0'),_0x4e4a96={'type':'format','content':c(_0x169e00,_0x13791d,c(_0x169e00,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x13791d='*Indent:*\x20%0',_0x4e4a96={'type':'format','content':c(_0x169e00,_0x13791d,c(_0x169e00,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x13791d=function(_0x54dc10){const _0x2008ef=_0x54dc10['getFirstRange']();let _0x48359a=_0x2008ef['start']['nodeAfter'];for(;_0x48359a&&_0x2008ef['containsItem'](_0x48359a);){if(_0x48359a['getAttribute']('listIndent')>0x0)return!0x1;_0x48359a=_0x48359a['nextSibling'];}return!0x0;}(_0x2b4b29)?c(_0x169e00,'*Format:*\x20remove\x20from\x20%0',c(_0x169e00,function(_0x84a935){return'ELEMENT_'+_0x84a935['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2b4b29))):c(_0x169e00,'*Outdent:*\x20%0',c(_0x169e00,'ELEMENT_LIST_ITEM')),_0x4e4a96={'type':'format','content':_0x13791d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5b9e5b['multipleBlocks']&&(_0x13791d='*Merge:*\x20%0',_0x4e4a96={'type':'deletion','content':c(_0x169e00,_0x13791d,c(_0x169e00,'ELEMENT_LIST_ITEM'))});}return _0x4e4a96;});}}function Te(_0x2c615){let _0x148501=_0x2c615['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x148501;){const _0x2b6e87=_0x148501['getAttribute']('listItemId');if(!_0x2b6e87)return!0x1;if(_0x2b6e87==_0x2c615['data']['newValue'])return'newValue';if(_0x2b6e87==_0x2c615['data']['oldValue'])return'oldValue';_0x148501=_0x148501['previousSibling'];}return!0x1;}class Se extends _0x3e269d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x406619=this['editor']['config']['get']('list.properties'),_0xf1c325=this['editor']['plugins']['get']('TrackChangesEditing');_0x406619['styles']&&(_0xf1c325['enableDefaultAttributesIntegration']('listStyle'),_0xf1c325['registerBlockAttribute']('listStyle')),_0x406619['reversed']&&(_0xf1c325['enableDefaultAttributesIntegration']('listReversed'),_0xf1c325['registerBlockAttribute']('listReversed')),_0x406619['startIndex']&&(_0xf1c325['enableDefaultAttributesIntegration']('listStart'),_0xf1c325['registerBlockAttribute']('listStart'));const _0x5aa00b={'type':'format','content':''};_0xf1c325['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x57da57=this['editor']['locale'];_0xf1c325['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x57da57,'FORMAT_LIST_REVERSED')),_0xf1c325['descriptionFactory']['registerDescriptionCallback'](_0x5ed035=>{const {data:_0x1cbd5d}=_0x5ed035;if(_0x1cbd5d&&'listReversed'==_0x1cbd5d['key'])return null==_0x1cbd5d['newValue']||0x0==_0x1cbd5d['newValue']&&null==_0x1cbd5d['oldValue']?_0x5aa00b:void 0x0;}),_0xf1c325['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x57da57,'FORMAT_LIST_START')),_0xf1c325['descriptionFactory']['registerDescriptionCallback'](_0x4dc74d=>{const {data:_0x1df117}=_0x4dc74d;if(_0x1df117&&'listStart'==_0x1df117['key'])return null==_0x1df117['newValue']||0x1==_0x1df117['newValue']&&null==_0x1df117['oldValue']?_0x5aa00b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4048f2=>{if(_0x4048f2['batch']['isUndo'])return!0x1;let _0x1a6786=!0x1;const _0x1de6ab=_0xf1c325['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16099b=>{const _0x5824d0=_0xf1c325['_getAttributeKey'](_0x16099b);return'listStart'==_0x5824d0||'listReversed'==_0x5824d0;});for(const _0x2161c2 of _0x1de6ab){const _0x48031c=_0x2161c2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x48031c||'customNumbered'==_0x48031c)continue;_0xf1c325['_findSuggestions'](_0x2161c2['getFirstRange'](),'attribute')['find'](_0x2da3b9=>'listType'==_0xf1c325['_getAttributeKey'](_0x2da3b9['suggestion']))||(_0x4048f2['removeMarker'](_0x2161c2['getFirstMarker']()),_0x1a6786=!0x0);}return _0x1a6786;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4bb818){const _0x3108fe=this['editor']['locale'],{data:_0x3be984}=_0x4bb818,_0x4fde64={'type':'format','content':''};if(!_0x3be984||'listStyle'!=_0x3be984['key'])return;if(!_0x3be984['oldValue'])return'default'==_0x3be984['newValue']?_0x4fde64:{'type':'format','content':''+c(_0x3108fe,'*Set\x20format:*\x20%0',c(_0x3108fe,this['_getTranslationKeyForListStyle'](_0x3be984['newValue'])))};if(!_0x3be984['newValue']){if('default'==_0x3be984['oldValue'])return _0x4fde64;let _0x24a48a=_0x4bb818['head'];for(;_0x24a48a;){if(_0x24a48a['data']&&'listType'==_0x24a48a['data']['key']&&_0x24a48a['data']['newValue'])return _0x4fde64;_0x24a48a=_0x24a48a['next'];}return{'type':'format','content':''+c(_0x3108fe,'*Remove\x20format:*\x20%0',c(_0x3108fe,this['_getTranslationKeyForListStyle'](_0x3be984['oldValue'])))};}if('default'!=_0x3be984['newValue'])return{'type':'format','content':''+c(_0x3108fe,'*Set\x20format:*\x20%0',c(_0x3108fe,this['_getTranslationKeyForListStyle'](_0x3be984['newValue'])))};let _0x49c0f3=_0x4bb818['head'];for(;_0x49c0f3;){if(_0x49c0f3['data']&&'listType'==_0x49c0f3['data']['key']&&_0x49c0f3['data']['newValue']&&_0x49c0f3['data']['oldValue'])return _0x4fde64;_0x49c0f3=_0x49c0f3['next'];}return{'type':'format','content':c(_0x3108fe,'*Set\x20format:*\x20%0',c(_0x3108fe,'ELEMENT_'+_0x4bb818['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xc5bef1=this['editor'],_0x3a44e0=_0xc5bef1['locale'];_0xc5bef1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3018e4=>{if('formatBlock'!=_0x3018e4['type'])return;const {data:_0x2a0d9c}=_0x3018e4;if(!_0x2a0d9c)return;let _0x21e93e,_0x3533fe;switch(_0x2a0d9c['commandName']){case'listStyle':_0x21e93e='*Change\x20to:*\x20%0',_0x3533fe={'type':'format','content':c(_0x3a44e0,_0x21e93e,c(_0x3a44e0,this['_getTranslationKeyForListStyle'](_0x2a0d9c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21e93e=_0x2a0d9c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3533fe={'type':'format','content':c(_0x3a44e0,_0x21e93e)};break;case'listStart':_0x21e93e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3533fe={'type':'format','content':c(_0x3a44e0,_0x21e93e,_0x2a0d9c['commandParams'][0x0]['startIndex'])};}return _0x3533fe;});}['_getTranslationKeyForListStyle'](_0x371bc3){return'ELEMENT_'+function(_0x20f6bb){if(_e['includes'](_0x20f6bb))return'bulleted';if(Re['includes'](_0x20f6bb))return'numbered';return null;}(_0x371bc3)['toUpperCase']()+'_LIST_'+_0x371bc3['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3e269d{['afterInit'](){const _0x3b7c5b=this['editor'];_0x3b7c5b['commands']['get']('emoji')&&_0x3b7c5b['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3e269d{static get['requires'](){return[_0x4dfcb0];}['init'](){const _0x2e4ef7=this['editor'],_0x2322ff=_0x2e4ef7['plugins']['get']('TrackChangesEditing'),_0x30a879=_0x2e4ef7['commands']['get']('enter');_0x2322ff['enableCommand']('enter',()=>{_0x2e4ef7['model']['change'](_0x11898b=>{const _0x5a8362=_0x2e4ef7['model']['document']['selection'],_0x5651dc=_0x5a8362['getFirstPosition'](),_0x62936f=_0x512def['fromRange'](_0x5a8362['getFirstRange']());if(_0x30a879['enterBlock'](_0x11898b)){const _0x229112=_0x2e4ef7['model']['createPositionAt'](_0x5651dc['parent']['nextSibling'],0x0),_0x4a04c1=_0x11898b['createRange'](_0x5651dc,_0x229112);_0x2322ff['markInsertion'](_0x4a04c1);}else _0x11898b['setSelection'](_0x11898b['createRange'](_0x62936f['end']));_0x62936f['detach'](),_0x30a879['fire']('afterExecute',{'writer':_0x11898b});});}),_0x2e4ef7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2e4ef7,'split'),{'priority':'high'}),_0x2e4ef7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x376be2,_0xe383b5,_0x74707a)=>{const _0xc33025=_0x74707a['mapper']['markerNameToElements'](_0xe383b5['markerName']);if(_0xc33025){for(const _0x510b0f of _0xc33025)_0x510b0f['hasClass']('ck-suggestion-marker-split')&&(_0x74707a['mapper']['unbindElementFromMarkerName'](_0x510b0f,_0xe383b5['markerName']),_0x74707a['writer']['remove'](_0x510b0f));}},{'priority':'high'}),_0x2e4ef7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x55a6b2,_0x2b933e,_0x53a48f)=>{_0x53a48f['options']['showSuggestionHighlights']&&De(_0x2e4ef7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x55a6b2,_0x2b933e,_0x53a48f);},{'priority':'high'});}}class Z extends _0x3e269d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x541c4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x541c4d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x541c4d['enableCommand']('findNext'),_0x541c4d['enableCommand']('findPrevious'),_0x541c4d['enableCommand']('replace'),_0x541c4d['enableCommand']('replaceAll');}['handleFindCommand'](_0x280b32,_0x2a879e,_0x24ec71={}){const _0x350579=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x280b32(_0xbb8bf7=>{let _0x946907=('string'==typeof _0x2a879e?_0x350579['findByTextCallback'](_0x2a879e,_0x24ec71):_0x2a879e)(_0xbb8bf7);Array['isArray'](_0x946907)&&(_0x946907={'results':_0x946907,'searchText':'string'==typeof _0x2a879e?_0x2a879e:''});const _0x38f9ee=_0x946907['results']['filter'](_0x30ebef=>!0x1===this['_isInDeletionRange'](_0x30ebef,_0xbb8bf7['item']));return{..._0x946907,'results':_0x38f9ee};},_0x24ec71);}['_isInDeletionRange'](_0x638e98,_0x2ccf9b){const _0x404e79=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ccf9b,_0x638e98['start']),this['editor']['model']['createPositionAt'](_0x2ccf9b,_0x638e98['end']));for(const _0x36bd98 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x404e79['getIntersection'](_0x36bd98['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 _0x3e269d{['afterInit'](){const _0x482448=this['editor']['locale'],_0x4281db=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4c6a1d,commandName:_0x18d543}of eo)this['editor']['plugins']['has'](_0x4c6a1d)&&(_0x4281db['enableDefaultAttributesIntegration'](_0x18d543),_0x4281db['registerInlineAttribute'](_0x18d543));_0x4281db['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x482448,'FORMAT_FONT_SIZE')),_0x4281db['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x482448,'FORMAT_FONT_FAMILY')),_0x4281db['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x482448,'FORMAT_FONT_COLOR')),_0x4281db['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x482448,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3091ac=this['editor'],_0x385846=_0x3091ac['locale'];_0x3091ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15cf2a=>{const _0x348267=_0x385846['t'];if('formatInline'!=_0x15cf2a['type'])return;const {data:_0x10e875}=_0x15cf2a;if(null!=_0x10e875){if('fontSize'==_0x10e875['commandName']){const _0x4cbd33=_0x10e875['commandParams'][0x0]['value'];if(_0x4cbd33){const _0x1dcf5a=_0x348267(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x54ba9d=>_0x54ba9d['model']==_0x4cbd33)['title'])['toLowerCase']();return{'type':'format','content':c(_0x385846,'*Set\x20font\x20size:*\x20%0',_0x1dcf5a)};}return{'type':'format','content':c(_0x385846,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x10e875['commandName']){const _0x16b9d8=_0x10e875['commandParams'][0x0]['value'];return _0x16b9d8?{'type':'format','content':c(_0x385846,'*Set\x20font\x20family:*\x20%0',_0x16b9d8)}:{'type':'format','content':c(_0x385846,'*Reset\x20font\x20family*')};}if('fontColor'==_0x10e875['commandName']){const _0x19b15d=_0x10e875['commandParams'][0x0]['value'];if(_0x19b15d){const _0x4a3bee=_0x2785aa(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e4b3d=>_0x3e4b3d['model']==_0x19b15d);let _0x1bd82=_0x19b15d,_0x2e8fdb='';return _0x4a3bee&&(_0x1bd82=_0x4a3bee['label'],_0x2e8fdb=_0x348267(_0x1bd82)['toLowerCase']()),{'type':'format','content':c(_0x385846,'*Set\x20font\x20color:*\x20%0',_0x2e8fdb)['trim'](),'color':{'value':_0x19b15d,'title':_0x2e8fdb||_0x1bd82}};}return{'type':'format','content':c(_0x385846,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x10e875['commandName']){const _0x4152f1=_0x10e875['commandParams'][0x0]['value'];if(_0x4152f1){const _0x25e5d6=_0x2785aa(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4e71b7=>_0x4e71b7['model']==_0x4152f1);let _0x39f07c=_0x4152f1,_0x3b5738='';return _0x25e5d6&&(_0x39f07c=_0x25e5d6['label'],_0x3b5738=_0x348267(_0x39f07c)['toLowerCase']()),{'type':'format','content':c(_0x385846,'*Set\x20font\x20background\x20color:*\x20%0',_0x3b5738)['trim'](),'color':{'value':_0x4152f1,'title':_0x3b5738||_0x39f07c}};}return{'type':'format','content':c(_0x385846,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x3e269d{['afterInit'](){const _0x22034e=this['editor'],_0x4be4f0=_0x22034e['plugins']['get']('TrackChangesEditing'),_0x484e86=_0x22034e['commands']['get']('copyFormat'),_0x166ef8=_0x22034e['commands']['get']('pasteFormat');_0x484e86&&_0x166ef8&&(_0x4be4f0['enableDefaultAttributesIntegration']('pasteFormat'),_0x4be4f0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x428640=this['editor'],_0x1367f4=_0x428640['locale'];_0x428640['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35fcab=>{if('formatBlock'!=_0x35fcab['type']&&'formatInline'!=_0x35fcab['type'])return;const {data:_0x3b502e}=_0x35fcab;if(_0x3b502e&&'pasteFormat'===_0x3b502e['commandName']){const _0x4de132=[],_0x235a82=_0x3b502e['commandParams'][0x0];for(const [_0x11fd92,_0x3667b6]of Object['entries'](_0x235a82))_0x4de132['push'](ro(_0x428640,_0x11fd92,_0x3667b6));return _0x4de132['length']?{'type':'format','content':c(_0x1367f4,'*Set\x20format\x20to:*\x20%0',_0x4de132['join'](',\x20'))}:{'type':'format','content':c(_0x1367f4,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x17e093,_0x196bf6,_0x315886){const _0x1b80d3=_0x17e093['locale']['t'],_0x49b563=_0x196bf6['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b501f=_0x1b80d3(_0x49b563['charAt'](0x0)['toUpperCase']()+_0x49b563['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x315886)return _0x3b501f;if('fontColor'===_0x196bf6||'fontBackgroundColor'===_0x196bf6){const _0x543262=_0x2785aa(_0x17e093['config']['get']('fontColor.colors'))['find'](_0x6374e2=>_0x6374e2['model']==_0x315886);return _0x3b501f+'\x20('+(_0x543262?_0x1b80d3(_0x543262['label'])['toLowerCase']():_0x315886)+')';}if('fontSize'===_0x196bf6&&isNaN(parseFloat(_0x315886))){const _0x34c577=_0x17e093['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x17e093['config']['get']('fontSize.options'))['find'](_0x59dd47=>_0x59dd47['model']==_0x315886);return _0x3b501f+'\x20('+(_0x34c577?_0x1b80d3(_0x34c577['title'])['toLowerCase']():_0x315886)+')';}return _0x3b501f+'\x20('+_0x315886+')';}class nt extends _0x3e269d{['_headingOptions'];['afterInit'](){const _0x456890=this['editor'];if(!_0x456890['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x456890['config']['get']('heading.options');const _0x176a0d=_0x456890['locale'],_0x14f1a3=_0x456890['plugins']['get']('TrackChangesEditing');_0x14f1a3['enableDefaultAttributesIntegration']('heading');for(const _0x5859b7 of this['_headingOptions'])'paragraph'!=_0x5859b7['model']&&_0x14f1a3['descriptionFactory']['registerElementLabel'](_0x5859b7['model'],_0x4b34a6=>{const _0x3476e0=this['_getHeadingLevel'](_0x5859b7['model']);return null!==_0x3476e0?_0x16d9c6(_0x4b34a6,_0x3476e0):_0x3753b8(_0x4b34a6,_0x5859b7['title']);});function _0x16d9c6(_0x5ad5d9,_0x4aecb9){return c(_0x176a0d,'ELEMENT_HEADING',[_0x5ad5d9,_0x4aecb9]);}function _0x3753b8(_0x16076a,_0x23af11){return c(_0x176a0d,'ELEMENT_HEADING_CUSTOM',[_0x16076a,_0x23af11]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a4fa9=this['editor'],_0x269740=_0x2a4fa9['locale'];function _0xb81934(_0x2af6ef,_0x3ce0c1){return c(_0x269740,'ELEMENT_HEADING_CUSTOM',[_0x2af6ef,_0x3ce0c1]);}_0x2a4fa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42f231=>{if('formatBlock'!=_0x42f231['type'])return;const {data:_0x42b80b}=_0x42f231;if(_0x42b80b&&'heading'==_0x42b80b['commandName']){const _0x4a5f76=_0x42b80b['commandParams'][0x0]['value'],_0x47d898=this['_getHeadingLevel'](_0x4a5f76);if(null!==_0x47d898)return{'type':'format','content':c(_0x269740,'*Change\x20to:*\x20%0',(_0xd8b151=0x1,_0x294e05=_0x47d898,c(_0x269740,'ELEMENT_HEADING',[_0xd8b151,_0x294e05])))};const _0x3ce788=this['_headingOptions']['find'](_0xf15317=>_0xf15317['model']===_0x4a5f76)['title'];return{'type':'format','content':c(_0x269740,'*Change\x20to:*\x20%0',_0xb81934(0x1,_0x3ce788))};}var _0xd8b151,_0x294e05;});}['_getHeadingLevel'](_0x5ae5f1){const _0xf59044=_0x5ae5f1['match'](/^heading(\d+)/);if(_0xf59044)return _0xf59044[0x1];const _0x3c3eeb=this['_headingOptions']?.['find'](_0x5314a6=>_0x5314a6['model']==_0x5ae5f1);if(_0x3c3eeb&&_0x3c3eeb['view']){const _0x486b85=_0x3c3eeb['view'],_0x4ccdab=(_0x486b85['name']??_0x486b85)['match'](/^h(\d+)/);if(_0x4ccdab)return _0x4ccdab[0x1];}return null;}}class it extends _0x3e269d{['afterInit'](){const _0x1cb066=this['editor'];if(!_0x1cb066['plugins']['has']('HighlightEditing'))return;const _0x19f1fc=_0x1cb066['plugins']['get']('TrackChangesEditing'),_0x2891c8=_0x1cb066['locale'];_0x19f1fc['enableDefaultAttributesIntegration']('highlight'),_0x19f1fc['registerInlineAttribute']('highlight'),_0x19f1fc['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2891c8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35e1f2=this['editor'],_0x4bab7e=_0x35e1f2['locale'];_0x35e1f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f61f0=>{if('formatInline'!=_0x3f61f0['type'])return;const {data:_0x52f467}=_0x3f61f0;if(_0x52f467&&'highlight'==_0x52f467['commandName']){const _0x59a1ff=_0x4bab7e['t'],_0x13f1e1=_0x52f467['commandParams'][0x0]['value'];if(_0x13f1e1){const _0x19b369=_0x35e1f2['config']['get']('highlight.options')['find'](_0x23d437=>_0x23d437['model']==_0x13f1e1),_0x489899=_0x59a1ff(_0x19b369['title'])['toLowerCase']();return{'type':'format','content':c(_0x4bab7e,'*Set\x20highlight:*\x20%0',_0x489899),'color':{'value':_0x19b369['color'],'title':_0x19b369['title']}};}return{'type':'format','content':c(_0x4bab7e,'*Remove\x20highlight*',c(_0x4bab7e,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3e269d{['afterInit'](){const _0x5ce8a3=this['editor'];if(!_0x5ce8a3['plugins']['has']('HorizontalLineEditing'))return;_0x5ce8a3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x96af6f=_0x5ce8a3['plugins']['get']('TrackChangesEditing'),_0x3bfd44=_0x5ce8a3['locale'];_0x96af6f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5f2ef1=>c(_0x3bfd44,'ELEMENT_HORIZONTAL_LINE',_0x5f2ef1)),_0x5ce8a3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x334ddf,{writer:_0x42d0e4,options:_0xe0f406})=>{if(!_0xe0f406['showSuggestionHighlights'])return null;const _0xed0ffe=_0x42d0e4['createContainerElement']('div'),_0x2bc993=_0x42d0e4['createEmptyElement']('hr');return _0x42d0e4['addClass']('ck-horizontal-line',_0xed0ffe),_0x42d0e4['insert'](_0x42d0e4['createPositionAt'](_0xed0ffe,0x0),_0x2bc993),_0xed0ffe;},'converterPriority':'high'});}}class ot extends _0x3e269d{['afterInit'](){const _0x2db91e=this['editor'];if(!_0x2db91e['plugins']['has']('HtmlEmbed'))return;const _0x30c859=_0x2db91e['plugins']['get']('TrackChangesEditing'),_0x21328c=_0x2db91e['locale'];_0x30c859['descriptionFactory']['registerElementLabel']('rawHtml',_0x3a4913=>c(_0x21328c,'ELEMENT_HTML_EMBED',_0x3a4913)),_0x30c859['enableDefaultAttributesIntegration']('htmlEmbed'),_0x30c859['registerBlockAttribute']('value'),_0x30c859['descriptionFactory']['registerDescriptionCallback'](_0x1169fa=>{if('attribute'!=_0x1169fa['type'])return;const {data:_0x442953}=_0x1169fa;if(_0x442953&&'value'==_0x442953['key']&&_0x1169fa['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x286c29=c(_0x21328c,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x21328c,'*Change\x20%0\x20content*',_0x286c29)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ce68c=this['editor'],_0x334a52=_0x4ce68c['locale'];_0x4ce68c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38ac08=>{if('formatBlock'!=_0x38ac08['type'])return;const {data:_0x5c587f}=_0x38ac08;if(_0x5c587f&&'htmlEmbed'==_0x5c587f['commandName']){const _0x59ca63=c(_0x334a52,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x334a52,'*Change\x20%0\x20content*',_0x59ca63)};}});}}class rt extends _0x3e269d{['afterInit'](){const _0x3071e7=this['editor'];if(!_0x3071e7['plugins']['has']('ImageEditing'))return;const _0x101bf4=_0x3071e7['plugins']['get']('TrackChangesEditing'),_0x3a4c9d=_0x3071e7['plugins']['get']('ImageUtils'),_0x536d46=_0x3071e7['locale'];_0x101bf4['enableCommand']('insertImage'),_0x101bf4['descriptionFactory']['registerElementLabel']('imageBlock',_0x3ef2e7=>c(_0x536d46,'ELEMENT_IMAGE',_0x3ef2e7)),_0x101bf4['descriptionFactory']['registerElementLabel']('imageInline',_0x29039f=>c(_0x536d46,'ELEMENT_INLINE_IMAGE',_0x29039f)),_0x101bf4['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x536d46,'ELEMENT_CAPTION')),_0x3071e7['plugins']['has']('ImageUploadEditing')&&_0x101bf4['enableCommand']('uploadImage'),_0x3071e7['plugins']['has']('ImageBlockEditing')&&_0x3071e7['plugins']['has']('ImageInlineEditing')&&(_0x101bf4['enableCommand']('imageTypeInline',(_0x2f761e,_0xee4deb)=>{const _0x5b59ec=_0x3a4c9d['getClosestSelectedImageElement'](_0x3071e7['model']['document']['selection']);_0x3071e7['model']['change'](()=>{_0x101bf4['markBlockFormat'](_0x5b59ec,{'commandName':'imageTypeInline','commandParams':[_0xee4deb]},[],'convertBlockImageToInline');});}),_0x101bf4['enableCommand']('imageTypeBlock',(_0x2830d9,_0x3b7133)=>{_0x3071e7['model']['change'](_0x28eefd=>{let _0x3d637=_0x3a4c9d['getClosestSelectedImageElement'](_0x3071e7['model']['document']['selection']),_0x5acb91=_0x28eefd['createRangeOn'](_0x3d637);const _0x3f3e2c=_0xce2feb['fromPosition'](_0x5acb91['start'],'toPrevious'),_0x7bfc9a=_0xce2feb['fromPosition'](_0x5acb91['end'],'toNext');_0x101bf4['forceDefaultExecution'](()=>_0x2830d9(_0x3b7133)),_0x3d637=_0x3a4c9d['getClosestSelectedImageElement'](_0x3071e7['model']['document']['selection']),_0x5acb91=_0x28eefd['createRangeOn'](_0x3d637);const _0x36d69c=_0x28eefd['createRange'](_0x3f3e2c,_0x7bfc9a);_0x3f3e2c['detach'](),_0x7bfc9a['detach'](),_0x101bf4['markBlockFormat'](_0x3d637,{'commandName':'imageTypeInline','commandParams':[_0x3b7133]},[],'convertInlineImageToBlock'),_0x36d69c['start']['isBefore'](_0x5acb91['start'])&&_0x101bf4['markInsertion'](_0x28eefd['createRange'](_0x36d69c['start'],_0x5acb91['start']),'convertInlineImageToBlock'),_0x5acb91['end']['isBefore'](_0x36d69c['end'])&&_0x101bf4['markInsertion'](_0x28eefd['createRange'](_0x5acb91['end'],_0x36d69c['end']),'convertInlineImageToBlock');});}),_0x101bf4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x101bf4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x101bf4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x101bf4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x101bf4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x101bf4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4da1aa])=>{const _0x39e13d=_0x101bf4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x351921=_0x4da1aa['start'],_0x469582=_0x4da1aa['end'];const _0x34e2ab=_0x3071e7['model']['schema']['getNearestSelectionRange'](_0x351921,'backward'),_0x36c6e3=_0x3071e7['model']['schema']['getNearestSelectionRange'](_0x469582,'forward');_0x34e2ab['isCollapsed']&&(_0x351921=_0x34e2ab['start']),_0x36c6e3['isCollapsed']&&(_0x469582=_0x36c6e3['end']),_0x39e13d([_0x3071e7['model']['createRange'](_0x351921,_0x469582)]);}),_0x101bf4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4d8bc5),_0x101bf4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4d8bc5)),_0x3071e7['plugins']['has']('ImageCaptionEditing')&&(_0x101bf4['enableCommand']('toggleImageCaption',(_0x4b5ab6,_0x1c015b)=>{const _0x19bb88=_0x3071e7['plugins']['get']('ImageCaptionUtils');let _0x95407f=_0x3a4c9d['getClosestSelectedImageElement'](_0x3071e7['model']['document']['selection']),_0x329856=_0x19bb88['getCaptionFromImageModelElement'](_0x95407f);_0x3071e7['model']['change'](()=>{if(_0x329856)return void _0x101bf4['markDeletion'](_0x3071e7['model']['createRangeOn'](_0x329856));const _0x3f7c9d=_0x3a4c9d['isBlockImage'](_0x95407f);_0x4b5ab6(_0x1c015b),_0x95407f=_0x3a4c9d['getClosestSelectedImageElement'](_0x3071e7['model']['document']['selection']),_0x329856=_0x19bb88['getCaptionFromImageModelElement'](_0x95407f),_0x101bf4['markInsertion'](_0x3071e7['model']['createRangeOn'](_0x329856),_0x3f7c9d?null:'imageCaption');});}),_0x101bf4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4d8bc5));const _0x1e099c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ab907(_0x5889df,_0x220853){const _0x561dc8=_0x1e099c['findIndex'](({type:_0x5412c3,subType:_0x2f4801})=>_0x5889df['type']==_0x5412c3&&_0x5889df['subType']==_0x2f4801),_0x28a718=_0x1e099c['findIndex'](({type:_0x334bb0,subType:_0x725ae5})=>_0x220853['type']==_0x334bb0&&_0x220853['subType']==_0x725ae5);if(_0x561dc8<0x0||_0x28a718<0x0)return!0x1;const _0x2ab573=_0x5889df['getFirstRange'](),_0x1d0cb2=_0x220853['getFirstRange']();if((0x0==_0x561dc8||0x1==_0x561dc8)&&0x2==_0x28a718&&_0x2ab573['isIntersecting'](_0x1d0cb2))return!0x0;if(0x2==_0x561dc8&&0x3==_0x28a718){const _0x576b11=_0x101bf4['_findSuggestions'](_0x2ab573,'insertion')['filter'](({suggestion:_0x266bb8,meta:_0x56c747})=>_0x56c747['isOwn']&&'convertInlineImageToBlock'==_0x266bb8['subType']);if(_0x576b11['length']>0x1&&_0x1d0cb2['end']['isEqual'](_0x2ab573['start']))return!0x0;if(0x1==_0x576b11['length']&&(_0x2ab573['start']['isEqual'](_0x1d0cb2['end'])||_0x2ab573['end']['isEqual'](_0x1d0cb2['start'])))return!0x0;}if(0x3==_0x561dc8&&0x3==_0x28a718&&_0x2ab573['start']['isBefore'](_0x1d0cb2['start'])){const _0x23fc9b=_0x2ab573['end']['nodeAfter'],_0x3e66f1=_0x1d0cb2['start']['nodeBefore'];return _0x3a4c9d['isBlockImage'](_0x23fc9b)&&_0x23fc9b===_0x3e66f1;}return!0x1;}function _0x4d8bc5(_0x26ad74,_0x391f64){return _0x3ab907(_0x26ad74,_0x391f64)?[_0x26ad74,_0x391f64]:_0x3ab907(_0x391f64,_0x26ad74)?[_0x391f64,_0x26ad74]:null;}_0x3071e7['plugins']['has']('ImageResize')&&(_0x101bf4['enableDefaultAttributesIntegration']('resizeImage'),_0x101bf4['registerBlockAttribute']('resizedWidth'),_0x101bf4['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x536d46,'FORMAT_IMAGE_SIZE'))),_0x3071e7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x101bf4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x101bf4['registerBlockAttribute']('alt')),_0x3071e7['plugins']['has']('PictureEditing')&&(_0x101bf4['registerBlockAttribute']('sources'),_0x101bf4['descriptionFactory']['registerDescriptionCallback'](_0x130dfd=>{if('attribute'!=_0x130dfd['type'])return;const {data:_0x568289}=_0x130dfd;return _0x568289&&'sources'==_0x568289['key']?{'type':'format','content':''}:void 0x0;})),_0x3071e7['plugins']['has']('ImageSizeAttributes')&&(_0x101bf4['registerBlockAttribute']('width'),_0x101bf4['registerBlockAttribute']('height'),_0x101bf4['descriptionFactory']['registerDescriptionCallback'](_0x441954=>{if('attribute'!=_0x441954['type'])return;const {data:_0xc191fb}=_0x441954;return!_0xc191fb||'width'!=_0xc191fb['key']&&'height'!=_0xc191fb['key']?void 0x0:{'type':'format','content':''};})),_0x101bf4['descriptionFactory']['registerDescriptionCallback'](_0x3b55bd=>{if(!!_0x1e099c['find'](({type:_0x2700d9,subType:_0x502403})=>_0x3b55bd['type']==_0x2700d9&&_0x3b55bd['subType']==_0x502403))return _0x3b55bd['previous']?{}:void 0x0;}),_0x101bf4['descriptionFactory']['registerDescriptionCallback'](_0xbf070d=>{if('insertion'==_0xbf070d['type']||'deletion'==_0xbf070d['type']){const _0x2a93b6=_0xbf070d['getContainedElement']();if(_0x2a93b6&&_0x2a93b6['is']('element','caption'))return{'type':'insertion'==_0xbf070d['type']?'addObject':'removeObject','element':_0x2a93b6,'quantity':0x1};}}),_0x101bf4['descriptionFactory']['registerDescriptionCallback'](_0x281053=>'formatBlock'==_0x281053['type']&&'convertInlineImageToBlock'==_0x281053['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x281053['type']&&'convertBlockImageToInline'==_0x281053['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x101bf4['descriptionFactory']['registerDescriptionCallback'](_0x5ace73=>{if('attribute'!=_0x5ace73['type'])return;const {data:_0x5eb333}=_0x5ace73;if(!_0x5eb333||'alt'!=_0x5eb333['key'])return;const _0x5446c1=_0x5eb333['newValue'];return _0x5446c1?{'type':'format','content':c(_0x536d46,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5446c1+'\x22')}:{'type':'format','content':c(_0x536d46,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xad0fd1=this['editor'],_0x34de1c=_0xad0fd1['locale'];_0xad0fd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b4963=>{if('formatBlock'!=_0x1b4963['type']&&'formatInline'!=_0x1b4963['type'])return;const {data:_0x1c0f73}=_0x1b4963;if(_0x1c0f73){if('imageTextAlternative'==_0x1c0f73['commandName']){const _0x226293=_0x1c0f73['commandParams'][0x0]['newValue'];return _0x226293?{'type':'format','content':c(_0x34de1c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x226293+'\x22')}:{'type':'format','content':c(_0x34de1c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1c0f73['commandName']){const _0x1a7dec=_0x1c0f73['commandParams'][0x0]['width'];return _0x1a7dec?{'type':'format','content':c(_0x34de1c,'*Set\x20image\x20width:*\x20%0',_0x1a7dec)}:{'type':'format','content':c(_0x34de1c,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3e269d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x21b493=this['editor']['locale'],_0x56d363=this['editor']['plugins']['get']('TrackChangesEditing');_0x56d363['enableDefaultAttributesIntegration']('replaceImageSource'),_0x56d363['registerBlockAttribute']('src'),_0x56d363['descriptionFactory']['registerDescriptionCallback'](_0xf9007=>{if('attribute'!=_0xf9007['type'])return;const {data:_0x4c5c9a}=_0xf9007;return _0x4c5c9a&&'src'==_0x4c5c9a['key']?_0x4c5c9a['newValue']&&_0x4c5c9a['oldValue']?{'type':'format','content':c(_0x21b493,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x17259d=this['editor']['plugins']['get']('TrackChangesEditing');_0x17259d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x17259d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17259d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x17259d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x559c51=this['editor'],_0x5d242e=_0x559c51['locale'];_0x559c51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x305f62=>{if('formatBlock'!=_0x305f62['type']&&'formatInline'!=_0x305f62['type'])return;const {data:_0x53470b}=_0x305f62;if(!_0x53470b||'replaceImageSource'!=_0x53470b['commandName'])return;return{'type':'format','content':c(_0x5d242e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3e269d{['afterInit'](){const _0x1080ff=this['editor'];if(!_0x1080ff['plugins']['has']('ImageStyleEditing'))return;const _0x5c932c=_0x1080ff['plugins']['get']('TrackChangesEditing'),_0x1ca57b=_0x1080ff['plugins']['get']('ImageUtils'),_0x420f5c={};_0x5c932c['enableCommand']('imageStyle',(_0x422e9b,_0x552f92)=>{const _0x2f982b=_0x1080ff['plugins']['get']('Users')['me'],_0x462363=_0x1080ff['commands']['get']('imageStyle');let _0x51ec1c=_0x1ca57b['getClosestSelectedImageElement'](_0x1080ff['model']['document']['selection']),_0x2cfdce=_0x1080ff['model']['createRangeOn'](_0x51ec1c),_0x45793c=_0x462363['value'];if(_0x45793c==_0x552f92['value'])return;const _0x52991b={'commandName':'imageStyle','commandParams':[_0x552f92],'formatGroupId':_0x3c1a26()};_0x1080ff['model']['change'](()=>{if(_0x5c932c['getSuggestions']()['filter'](_0x4a1e39=>_0x4a1e39['isInContent']&&_0x2f982b==_0x4a1e39['author']&&('formatBlock'==_0x4a1e39['type']||'formatInline'==_0x4a1e39['type'])&&('imageStylePreApply'==_0x4a1e39['subType']||'imageStylePostApply'==_0x4a1e39['subType'])&&_0x4a1e39['getFirstRange']()['isEqual'](_0x2cfdce))['forEach'](_0x9985a1=>_0x5c932c['discardSuggestion'](_0x9985a1['head'])),_0x51ec1c=_0x1ca57b['getClosestSelectedImageElement'](_0x1080ff['model']['document']['selection']),_0x2cfdce=_0x1080ff['model']['createRangeOn'](_0x51ec1c),_0x462363['refresh'](),_0x1080ff['commands']['get']('imageTypeInline')['refresh'](),_0x1080ff['commands']['get']('imageTypeBlock')['refresh'](),_0x45793c=_0x462363['value'],_0x45793c!=_0x552f92['value'])return _0x1ca57b['isInlineImage'](_0x51ec1c)&&_0x462363['shouldConvertImageType'](_0x552f92['value'],_0x51ec1c)?(_0x422e9b({..._0x552f92,'setImageSizes':!0x1}),_0x51ec1c=_0x1ca57b['getClosestSelectedImageElement'](_0x1080ff['model']['document']['selection']),void _0x5c932c['markBlockFormat'](_0x51ec1c,{..._0x52991b,'commandReversedParams':[{'value':_0x45793c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1ca57b['isBlockImage'](_0x51ec1c)?_0x5c932c['markBlockFormat'](_0x51ec1c,_0x52991b,[],'imageStylePostApply'):_0x5c932c['markInlineFormat'](_0x2cfdce,_0x52991b,'imageStylePostApply'));});});for(const _0x3a37e1 of _0x1080ff['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x420f5c[_0x3a37e1['name']]=_0x3a37e1['title']['toLowerCase']();_0x5c932c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5c932c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5c932c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5c932c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1118aa])=>{_0x1ca57b['setImageNaturalSizeAttributes'](_0x1118aa['getContainedElement']());}),_0x5c932c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x269579,_0xd1d740)=>{_0x5c932c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x269579,{'commandName':_0xd1d740['commandName'],'commandParams':_0xd1d740['commandReversedParams']});}),_0x5c932c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x6874af,_0x59215d){if(_0x6a4468(_0x6874af,_0x59215d))return[_0x6874af,_0x59215d];if(_0x6a4468(_0x59215d,_0x6874af))return[_0x59215d,_0x6874af];return null;});const _0x416459=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x6a4468(_0x49846c,_0xb7d093){const _0x1506a3=_0x416459['findIndex'](({type:_0x46d72f,subType:_0x7d87da})=>_0x49846c['type']==_0x46d72f&&_0x49846c['subType']==_0x7d87da),_0x59355a=_0x416459['findIndex'](({type:_0x2e5697,subType:_0x1cf920})=>_0xb7d093['type']==_0x2e5697&&_0xb7d093['subType']==_0x1cf920);if(_0x1506a3<0x0||_0x59355a<0x0)return!0x1;const _0x5cb2d4=_0x49846c['getFirstRange'](),_0x44890c=_0xb7d093['getFirstRange']();if((0x0==_0x1506a3||0x1==_0x1506a3)&&0x2==_0x59355a&&_0x5cb2d4['isIntersecting'](_0x44890c))return!0x0;if(0x2==_0x1506a3&&0x3==_0x59355a){const _0x436b12=_0x5c932c['_findSuggestions'](_0x5cb2d4,'insertion')['filter'](({suggestion:_0x5c53d4,meta:_0x4dfdd4})=>_0x4dfdd4['isOwn']&&'convertInlineImageToBlock'==_0x5c53d4['subType']);if(_0x436b12['length']>0x1&&_0x44890c['end']['isEqual'](_0x5cb2d4['start']))return!0x0;if(0x1==_0x436b12['length']&&(_0x5cb2d4['start']['isEqual'](_0x44890c['end'])||_0x5cb2d4['end']['isEqual'](_0x44890c['start'])))return!0x0;}if(0x3==_0x1506a3&&0x3==_0x59355a&&_0x5cb2d4['start']['isBefore'](_0x44890c['start'])){const _0x26ceee=_0x5cb2d4['end']['nodeAfter'],_0x10b28e=_0x44890c['start']['nodeBefore'];return _0x1ca57b['isBlockImage'](_0x26ceee)&&_0x26ceee===_0x10b28e;}return!0x1;}_0x1080ff['model']['document']['registerPostFixer'](()=>{let _0x5beb34=!0x1;const _0x188bbc=Array['from'](_0x1080ff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19341e,data:_0x558b95}of _0x188bbc){const {group:_0x28312f,type:_0x17807b,subType:_0x1b4a95,id:_0x283dc8}=_0x5c932c['_splitMarkerName'](_0x19341e);if('suggestion'==_0x28312f&&_0x5c932c['hasSuggestion'](_0x283dc8)){if('formatBlock'==_0x17807b&&('imageStylePreApply'==_0x1b4a95||'imageStylePostApply'==_0x1b4a95)){const _0x390bff=_0x5c932c['getSuggestion'](_0x283dc8);if(_0x558b95['newRange']){const _0x366378=_0x390bff['getFirstRange']()['getContainedElement']();if(_0x1ca57b['isBlockImage'](_0x366378))continue;_0x5c932c['discardSuggestion'](_0x390bff),_0x5beb34=!0x0;}}if('insertion'==_0x17807b&&'imageCaption'==_0x1b4a95&&!_0x558b95['newRange']){const _0x4d8d37=_0x5c932c['getSuggestion'](_0x283dc8);_0x4d8d37['next']&&_0x4d8d37['next']['isInContent']&&(_0x5c932c['discardSuggestion'](_0x4d8d37['next']),_0x5beb34=!0x0);}}}return _0x5beb34;}),this['_registerLegacyDescription'](_0x420f5c);}['_registerLegacyDescription'](_0x4bdf54){const _0x278b55=this['editor'],_0x2576ee=_0x278b55['locale'];_0x278b55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5eb026=>{if('formatBlock'!=_0x5eb026['type']&&'formatInline'!=_0x5eb026['type'])return;const {data:_0x5cd54b}=_0x5eb026;if(!_0x5cd54b||'imageStyle'!=_0x5cd54b['commandName'])return;const _0x309fd0=_0x5cd54b['commandParams'][0x0]['value'];return _0x2f229e('side'===_0x309fd0?c(_0x2576ee,'FORMAT_SIDE_IMAGE'):_0x4bdf54[_0x309fd0]||_0x309fd0);function _0x2f229e(_0x113d0e){return{'type':'format','content':c(_0x2576ee,'*Format:*\x20%0',_0x113d0e)};}});}}class ut extends _0x3e269d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x223aba){super(_0x223aba),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x559fb1=this['editor'],_0x1d4de6=_0x559fb1['commands']['get']('importWord'),_0xa91b97=_0x559fb1['commands']['get']('trackChanges');_0x1d4de6&&(_0x1d4de6['on']('execute',(_0x45fdc3,[,_0x41566c])=>{this['_trackChangesValueDuringImport']=_0xa91b97['value'],_0x41566c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1d4de6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1d4de6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xa91b97['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x559fb1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3de379,_0x4f8293){const {suggestions:_0x3fed7d}=_0x4f8293,_0x39b7be=this['editor']['commands']['get']('trackChanges'),_0x3bd5aa=_0x39b7be['value'];this['_trackChangesValueDuringImport']!==_0x3bd5aa&&(_0x39b7be['execute'](),this['_trackChangesExecuted']=!0x0),_0x3fed7d&&_0x3fed7d['forEach'](({id:_0x57da59,type:_0xa93e54,author:_0x359687,created_at:_0x4b35da})=>{const _0x3c3c3f={'id':_0x57da59,'type':_0xa93e54,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x359687,'createdAt':_0x4b35da?new Date(_0x4b35da):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3c3c3f);});}}class ft extends _0x3e269d{['afterInit'](){const _0x3721af=this['editor'],_0x476076=_0x3721af['plugins']['get']('TrackChangesEditing');if(_0x3721af['plugins']['has']('IndentEditing')&&(_0x476076['enableCommand']('indent'),_0x476076['enableCommand']('outdent')),_0x3721af['plugins']['has']('IndentBlock')){for(const _0x5acb23 of['indentBlock','outdentBlock'])_0x476076['enableDefaultAttributesIntegration'](_0x5acb23);}const _0x3daee1=_0x3721af['locale'];_0x476076['registerBlockAttribute']('blockIndent'),_0x476076['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x3daee1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20f94c=this['editor'],_0xa8b25=_0x20f94c['locale'],_0x4dfdd7=_0x20f94c['plugins']['get']('TrackChangesEditing');_0x4dfdd7['descriptionFactory']['registerDescriptionCallback'](_0x3cf134=>{if('formatBlock'!=_0x3cf134['type'])return;const {data:_0x2ee73e}=_0x3cf134;if(!_0x2ee73e)return;if('indentBlock'!=_0x2ee73e['commandName']&&'outdentBlock'!=_0x2ee73e['commandName'])return;const _0x16ef05=_0x3cf134['getItems']()[0x0],_0x568fef=_0x4dfdd7['descriptionFactory']['getItemLabel'](_0x16ef05);return'indentBlock'==_0x2ee73e['commandName']?{'type':'format','content':c(_0xa8b25,'*Indent:*\x20%0',_0x568fef)}:'outdentBlock'==_0x2ee73e['commandName']?{'type':'format','content':c(_0xa8b25,'*Outdent:*\x20%0',_0x568fef)}:void 0x0;});}}class ht extends _0x3e269d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3e269d{['afterInit'](){const _0x51d9f3=this['editor'];if(!_0x51d9f3['plugins']['has']('LinkEditing'))return;const _0x364559=_0x51d9f3['plugins']['get']('TrackChangesEditing'),_0x20e355=_0x51d9f3['commands']['get']('link');_0x364559['enableDefaultAttributesIntegration']('link'),_0x364559['enableDefaultAttributesIntegration']('unlink'),_0x364559['registerInlineAttribute']('linkHref');for(const _0x2c6167 of _0x20e355['manualDecorators'])_0x364559['registerInlineAttribute'](_0x2c6167['id']),_0x364559['descriptionFactory']['registerAttributeLabel'](_0x2c6167['id'],'link\x20('+_0x2c6167['label']['toLowerCase']()+')');_0x364559['descriptionFactory']['registerDescriptionCallback'](_0x5e52ad=>{if('attribute'!=_0x5e52ad['type'])return;const {data:_0x19822e}=_0x5e52ad;if(!_0x19822e||'linkHref'!=_0x19822e['key'])return;const _0xde8849=_0x19822e['newValue'],_0x203643=_0x51d9f3['locale'];return{'type':'format','content':null==_0xde8849?c(_0x203643,'*Remove\x20link*'):c(_0x203643,'*Set\x20link:*\x20%0','\x22'+_0xde8849+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a917e=this['editor'],_0x215f45=_0x5a917e['locale'];_0x5a917e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12f2d5=>{if('formatInline'!=_0x12f2d5['type'])return;const {data:_0x3427a7}=_0x12f2d5;if(_0x3427a7){if('link'==_0x3427a7['commandName']){const _0x3fe432=_0x3427a7['commandParams'][0x0];return{'type':'format','content':c(_0x215f45,'*Set\x20link:*\x20%0','\x22'+_0x3fe432+'\x22')};}return'unlink'==_0x3427a7['commandName']?{'type':'format','content':c(_0x215f45,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3e269d{['afterInit'](){const _0x1922be=this['editor'],_0x50f13d=_0x1922be['locale'];if(!_0x1922be['plugins']['has']('LegacyListEditing'))return;const _0x1bc87d=_0x1922be['plugins']['get']('TrackChangesEditing'),_0xc995e7=_0x1922be['plugins']['has']('LegacyTodoListEditing');function _0x1e62fd(_0x387b6b){return()=>{const _0x37ab1b=_0x1922be['model']['document']['selection'],_0x44421d=_0x1922be['commands']['get'](_0x387b6b);if(_0x44421d['value'])return void _0x1922be['execute']('paragraph',{});const _0x2dd177=_0x387b6b['slice'](0x0,-0x4),_0x427e66=function(_0x116619,_0x3de9bc,_0x5be0d7){let _0x808f5d=Array['from'](_0x116619)['filter'](_0x3a8a06=>function(_0x454ddb,_0x3fbd56){return _0x3fbd56['checkChild'](_0x454ddb['parent'],'listItem')&&!_0x3fbd56['isObject'](_0x454ddb);}(_0x3a8a06,_0x5be0d7));_0x808f5d=_0x808f5d['filter'](_0x1195f4=>!_0x1195f4['is']('element','listItem')||_0x1195f4['getAttribute']('listType')!=_0x3de9bc);const _0x3166ba=new Set();for(const _0xba4f06 of _0x808f5d)_0xba4f06['is']('element','listItem')?_0x3166ba['add'](Le(_0xba4f06)):_0x3166ba['add'](_0xba4f06);return Array['from'](_0x3166ba);}(_0x37ab1b['getSelectedBlocks'](),_0x2dd177,_0x1922be['model']['schema']);_0x1922be['model']['change'](()=>{for(const _0x355bce of _0x427e66)_0x1bc87d['markBlockFormat'](_0x355bce,{'commandName':_0x387b6b,'commandParams':[{'forceValue':!_0x44421d['value']}],'formatGroupId':'blockName'},Ee(_0x355bce));});};}function _0x1e21b3(_0x41a5d6){return()=>{const _0x39b67e=function(_0x204ae8){let _0x12c131=Array['from'](_0x204ae8);const _0x560607=_0x12c131['findIndex'](_0x2b9130=>'listItem'!=_0x2b9130['name']);return _0x560607>-0x1&&(_0x12c131=_0x12c131['slice'](0x0,_0x560607)),_0x12c131;}(_0x1922be['model']['document']['selection']['getSelectedBlocks']()),_0x26a560=_0x1922be['model']['createRange'](_0x1922be['model']['createPositionAt'](_0x39b67e[0x0],'before'),_0x1922be['model']['createPositionAt'](_0x39b67e[_0x39b67e['length']-0x1],'end'));_0x1922be['model']['change'](()=>{_0x1bc87d['markBlockFormat'](_0x26a560,{'commandName':_0x41a5d6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x34987c){const _0xa8b436=new Set();for(const _0x361210 of _0x34987c){let _0x330767=_0x361210['nextSibling'];for(;_0x330767&&_0x330767['getAttribute']('listIndent')>_0x361210['getAttribute']('listIndent');)_0xa8b436['add'](_0x330767),_0x330767=_0x330767['nextSibling'];}return Array['from'](_0xa8b436);}(_0x39b67e));});};}_0x1bc87d['enableCommand']('numberedList',_0x1e62fd('numberedList')),_0x1bc87d['enableCommand']('bulletedList',_0x1e62fd('bulletedList')),_0xc995e7&&_0x1bc87d['enableCommand']('todoList',_0x1e62fd('todoList')),_0x1bc87d['enableCommand']('indentList',_0x1e21b3('indentList')),_0x1bc87d['enableCommand']('outdentList',_0x1e21b3('outdentList')),_0xc995e7&&_0x1bc87d['enableCommand']('checkTodoList',()=>{const _0x3b0b78=_0x1922be['commands']['get']('checkTodoList'),_0x428f65=Array['from'](_0x3b0b78['_selectedElements']);_0x428f65['filter'](_0x498bb6=>_0x498bb6['getAttribute']('todoListChecked')!=_0x3b0b78['value']),_0x1922be['model']['change'](()=>{for(const _0x4d1163 of _0x428f65)_0x1bc87d['markBlockFormat'](_0x4d1163,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3b0b78['value']}]});});}),_0x1bc87d['descriptionFactory']['registerElementLabel']('listItem',_0x34d37c=>c(_0x50f13d,'ELEMENT_LIST_ITEM',_0x34d37c)),_0x1bc87d['descriptionFactory']['registerDescriptionCallback'](_0x4c9ac1=>{if('formatBlock'!=_0x4c9ac1['type']&&'formatInline'!=_0x4c9ac1['type'])return;const {data:_0x4c1a04}=_0x4c9ac1;if(_0x4c1a04){if('numberedList'==_0x4c1a04['commandName']||'bulletedList'==_0x4c1a04['commandName']||'todoList'==_0x4c1a04['commandName'])switch(_0x4c1a04['commandName']['replace']('List','')){case'bulleted':return _0x29e862(c(_0x50f13d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x29e862(c(_0x50f13d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x29e862(c(_0x50f13d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4c1a04['commandName'])return{'type':'format','content':c(_0x50f13d,'*Indent:*\x20%0',c(_0x50f13d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4c1a04['commandName'])return{'type':'format','content':c(_0x50f13d,'*Outdent:*\x20%0',c(_0x50f13d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4c1a04['commandName'])return _0x4c1a04['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x50f13d,'*Check\x20item*')}:{'type':'format','content':c(_0x50f13d,'*Uncheck\x20item*')};}function _0x29e862(_0x372b00){return{'type':'format','content':c(_0x50f13d,'*Change\x20to:*\x20%0',_0x372b00)};}});}}function Le(_0x2c5842){const _0x3edd6e=_0x2c5842['getAttribute']('listIndent');if(0x0==_0x3edd6e)return _0x2c5842;let _0x3b4e4b=_0x2c5842;for(;_0x2c5842['previousSibling']&&_0x2c5842['previousSibling']['is']('element','listItem');){const _0x5bb9fe=_0x2c5842['previousSibling']['getAttribute']('listIndent');if(_0x5bb9fe==_0x3edd6e)_0x3b4e4b=_0x2c5842['previousSibling'];else{if(_0x5bb9fe<_0x3edd6e)break;}_0x2c5842=_0x2c5842['previousSibling'];}return _0x3b4e4b;}function Ee(_0x2f838b){const _0x42cad0=[];if(_0x2f838b['is']('element','listItem')&&_0x2f838b['getAttribute']('listIndent')>0x0){let _0x43212=_0x2f838b['nextSibling'];for(;_0x43212&&'listItem'==_0x43212['name']&&_0x43212['getAttribute']('listIndent')==_0x2f838b['getAttribute']('listIndent');)_0x42cad0['push'](_0x43212),_0x43212=_0x43212['nextSibling'];}return _0x42cad0;}class Q extends _0x3e269d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x12d2d5=this['editor']['config']['get']('list.properties'),_0x448598=this['editor']['plugins']['get']('TrackChangesEditing');_0x12d2d5['styles']&&_0x448598['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x12d2d5['reversed']&&_0x448598['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x12d2d5['startIndex']&&_0x448598['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x448598['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1fd9ea,_0x55ba90={}){const _0x9cf0b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59cb2c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x9cf0b7['markMultiRangeBlockFormat'](_0x59cb2c,{'commandName':'listStyle','commandParams':[{'type':_0x55ba90['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x45ae7b,_0x383bc5={}){const _0x36923f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d2e1c=this['_getSuggestionBlocks'](_0x41d840=>_0x41d840['is']('element','listItem')&&'numbered'===_0x41d840['getAttribute']('listType'));if(_0x3d2e1c['length']<0x1)return;const _0x4856e5=_0x3d2e1c['map'](_0x1058eb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1058eb,'before'),this['editor']['model']['createPositionAt'](_0x1058eb,0x0)));this['editor']['model']['change'](()=>{_0x36923f['markMultiRangeBlockFormat'](_0x4856e5,{'commandName':'listReversed','commandParams':[{'reversed':_0x383bc5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x439dc8,_0xcd8415={}){const _0x49dde7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34b86c=this['_getSuggestionBlocks'](_0x5c0d12=>_0x5c0d12['is']('element','listItem')&&'numbered'===_0x5c0d12['getAttribute']('listType'));if(_0x34b86c['length']<0x1)return;const _0x5f1f84=_0x34b86c['map'](_0x10d461=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10d461,'before'),this['editor']['model']['createPositionAt'](_0x10d461,0x0)));this['editor']['model']['change'](()=>{_0x49dde7['markMultiRangeBlockFormat'](_0x5f1f84,{'commandName':'listStart','commandParams':[{'startIndex':_0xcd8415['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x16699b){if('formatBlock'!=_0x16699b['type']&&'formatInline'!=_0x16699b['type'])return;const _0x1bef81=this['editor']['locale'],{data:_0x14ae15}=_0x16699b;if(!_0x14ae15)return;let _0x22c116,_0x298cdd;switch(_0x14ae15['commandName']){case'listStyle':_0x22c116='*Change\x20to:*\x20%0',_0x298cdd={'type':'format','content':c(_0x1bef81,_0x22c116,c(_0x1bef81,this['_getTranslationKeyForListStyle'](_0x14ae15['commandParams'][0x0]['type'])))};break;case'listReversed':_0x22c116=_0x14ae15['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x298cdd={'type':'format','content':c(_0x1bef81,_0x22c116)};break;case'listStart':_0x22c116='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x298cdd={'type':'format','content':c(_0x1bef81,_0x22c116,_0x14ae15['commandParams'][0x0]['startIndex'])};}return _0x298cdd;}['_getSuggestionBlocksForListStyle'](){const _0x2e1ddf=this['editor']['plugins']['get']('LegacyListUtils');let _0x43a167=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x43a167[0x0]?.['is']('element','listItem')&&_0x43a167['unshift'](..._0x2e1ddf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x43a167[_0x43a167['length']-0x1]?.['is']('element','listItem')&&_0x43a167['push'](..._0x2e1ddf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x43a167=[...new Set(_0x43a167)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x43a167=_0x43a167['filter'](_0x29ed53=>_0x29ed53['is']('element','listItem'))),_0x43a167;}['_getSuggestionBlocks'](_0x228c1b){const _0x5d3605=this['editor']['plugins']['get']('LegacyListUtils');let _0x9c6792=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x228c1b)['map'](_0x3da490=>{const _0x570c97=this['editor']['model']['createPositionAt'](_0x3da490,0x0);return[..._0x5d3605['getSiblingNodes'](_0x570c97,'backward'),..._0x5d3605['getSiblingNodes'](_0x570c97,'forward')];})['flat']();return _0x9c6792=[...new Set(_0x9c6792)],_0x9c6792;}['_getTranslationKeyForListStyle'](_0x48efcb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x48efcb)||'default')['toUpperCase']()+'_LIST_'+_0x48efcb['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3e269d{['afterInit'](){const _0x369729=this['editor'];if(!_0x369729['plugins']['has']('MediaEmbedEditing'))return;const _0x4a0ce8=_0x369729['plugins']['get']('TrackChangesEditing'),_0x528a1a=_0x369729['locale'];_0x4a0ce8['enableCommand']('mediaEmbed'),_0x4a0ce8['descriptionFactory']['registerElementLabel']('media',_0x4cadba=>c(_0x528a1a,'ELEMENT_MEDIA',_0x4cadba)),_0x369729['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x10284d,{writer:_0x1d6432,options:_0x12342e})=>{if(_0x12342e['showSuggestionHighlights'])return _0x1d6432['createEmptyElement']('div');},'converterPriority':'high'}),_0x369729['data']['downcastDispatcher']['on']('attribute:url:media',(_0xb5ed58,_0x411f6f,_0x5a9de3)=>{_0x5a9de3['options']['showSuggestionHighlights']&&_0xb5ed58['stop']();},{'priority':'high'});}}class pt extends _0x3e269d{['afterInit'](){const _0x907867=this['editor'];_0x907867['plugins']['has']('MentionEditing')&&_0x907867['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x3e269d{['afterInit'](){const _0x5e4298=this['editor'];if(!_0x5e4298['plugins']['has']('MergeFieldsEditing'))return;const _0x3ff51b=_0x5e4298['plugins']['get']('TrackChangesEditing'),_0x45b689=_0x5e4298['locale'];_0x3ff51b['enableCommand']('insertMergeField'),_0x3ff51b['enableCommand']('insertMergeFieldBlock'),_0x3ff51b['enableCommand']('insertMergeFieldImage'),_0x3ff51b['descriptionFactory']['registerElementLabel']('mergeField',_0x5eb2a0=>c(_0x45b689,'ELEMENT_MERGE_FIELD',_0x5eb2a0)),_0x3ff51b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5a52fb=>c(_0x45b689,'ELEMENT_MERGE_FIELD',_0x5a52fb)),_0x3ff51b['descriptionFactory']['registerDescriptionCallback'](_0x3a830b=>{if('insertion'!=_0x3a830b['type']&&'deletion'!=_0x3a830b['type'])return;const _0x31899c=_0x3a830b['getContainedElement']();if(null==_0x31899c)return;const _0xa951f=_0x5e4298['plugins']['get']('MergeFieldsEditing');let _0x4009bf;switch(_0xa951f['getMergeFieldType'](_0x31899c)){case null:return;case'image':{const _0x136a07=_0xa951f['unwrapAffixes'](_0x31899c['getAttribute']('src'));_0x4009bf=_0xa951f['getLabel'](_0x136a07)||_0x136a07;break;}default:{const _0x4377ef=_0x31899c['getAttribute']('id');_0x4009bf=_0xa951f['getLabel'](_0x4377ef)||_0x4377ef;break;}}return'insertion'==_0x3a830b['type']?{'type':'insertion','content':c(_0x45b689,'*Insert:*\x20%0','\x22'+_0x4009bf+'\x22\x20'+c(_0x45b689,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x45b689,'*Remove:*\x20%0','\x22'+_0x4009bf+'\x22\x20'+c(_0x45b689,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x3e269d{['afterInit'](){const _0x5b37ab=this['editor'],_0x554978=_0x5b37ab['plugins']['get']('TrackChangesEditing');_0x5b37ab['plugins']['has']('MultiLevelList')&&(_0x554978['enableDefaultAttributesIntegration']('multiLevelList'),_0x554978['registerBlockAttribute']('listMarkerStyle'),_0x554978['descriptionFactory']['registerDescriptionCallback'](_0x2f80d2=>this['handleDescriptions'](_0x2f80d2)));}['handleDescriptions'](_0x4c5bd7){const _0x30279f=this['editor']['locale'],{data:_0x92bfc}=_0x4c5bd7,_0x3a983e={'type':'format','content':''};if(_0x92bfc&&'listMarkerStyle'==_0x92bfc['key']){if(!_0x92bfc['oldValue'])return{'type':'format','content':c(_0x30279f,'*Set\x20format:*\x20%0',c(_0x30279f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x92bfc['newValue']+')'};if(!_0x92bfc['newValue']){let _0x486712=_0x4c5bd7['head'];for(;_0x486712;){if(_0x486712['data']&&'listType'==_0x486712['data']['key']&&_0x486712['data']['newValue'])return _0x3a983e;_0x486712=_0x486712['next'];}return{'type':'format','content':c(_0x30279f,'*Remove\x20format:*\x20%0',c(_0x30279f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x92bfc['oldValue']+')'};}}}}class bt extends _0x3e269d{['afterInit'](){const _0x3ca959=this['editor'];if(!_0x3ca959['plugins']['has']('PageBreakEditing'))return;_0x3ca959['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x120364=_0x3ca959['plugins']['get']('TrackChangesEditing'),_0x2dafb4=_0x3ca959['locale'];_0x120364['descriptionFactory']['registerElementLabel']('pageBreak',_0x909809=>c(_0x2dafb4,'ELEMENT_PAGE_BREAK',_0x909809));}}class yt extends _0x3e269d{['afterInit'](){const _0x3d18b1=this['editor'];if(!_0x3d18b1['plugins']['has']('Paragraph'))return;const _0x321482=_0x3d18b1['locale'],_0x56c9a7=_0x3d18b1['plugins']['get']('TrackChangesEditing');_0x56c9a7['descriptionFactory']['registerElementLabel']('paragraph',_0x283ea5=>c(_0x321482,'ELEMENT_PARAGRAPH',_0x283ea5)),_0x56c9a7['enableDefaultAttributesIntegration']('paragraph'),_0x56c9a7['enableCommand']('insertParagraph'),_0x3d18b1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3d18b1),{'priority':'highest'}),_0x3d18b1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2c09cc,_0x172b91,_0x2223b2)=>{_0x2223b2['options']['showSuggestionHighlights']&&nr(_0x3d18b1,{'showActiveMarker':!0x1})(_0x2c09cc,_0x172b91,_0x2223b2);},{'priority':'highest'});const _0x193031=_0x56c9a7['descriptionFactory'];_0x193031['registerDescriptionCallback'](_0x2858c9=>{if('insertion'!==_0x2858c9['type'])return;const {start:_0x359bca,end:_0xfe5acd}=_0x2858c9['getFirstRange']();if(!_0x359bca['isTouching'](_0xfe5acd)||!_0x359bca['nodeAfter'])return;const _0x124dd8=_0x3d18b1['model']['schema'],_0x1bd89d=_0x359bca['nodeAfter'];return _0x124dd8['isBlock'](_0x1bd89d)&&!_0x124dd8['isLimit'](_0x1bd89d)&&_0x124dd8['checkChild'](_0x1bd89d,'$text')?{'type':'insertion','content':c(_0x321482,'*Insert:*\x20%0',_0x193031['getItemLabel'](_0x1bd89d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28bcfc=this['editor'],_0x5613c1=_0x28bcfc['locale'];_0x28bcfc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f65ff=>{if('formatBlock'!=_0x2f65ff['type'])return;const {data:_0x3829ff}=_0x2f65ff;return _0x3829ff&&'paragraph'==_0x3829ff['commandName']?{'type':'format','content':c(_0x5613c1,'*Change\x20to:*\x20%0',c(_0x5613c1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x258f6c,{showActiveMarker:_0x32985b=!0x0}={}){return(_0x324207,_0x1286e0,_0x4b1ab3)=>{const _0x4aa746=_0x258f6c['plugins']['get']('TrackChangesEditing'),_0x3b3dbc=_0x1286e0['markerRange']['start'],_0x26b8e8=_0x1286e0['markerRange']['end'],_0xccb565=_0x258f6c['model']['schema'];if(!_0x3b3dbc['isTouching'](_0x26b8e8)||!_0x3b3dbc['nodeAfter'])return;const _0x594b71=_0x3b3dbc['nodeAfter'];if(_0xccb565['isBlock'](_0x594b71)&&!_0xccb565['isLimit'](_0x594b71)&&_0xccb565['checkChild'](_0x594b71,'$text')){if(!_0x4b1ab3['consumable']['consume'](_0x1286e0['markerRange'],_0x324207['name']))return;const {authorId:_0x605b04}=_0x4aa746['_splitMarkerName'](_0x1286e0['markerName']),_0x4bb330=_0x4b1ab3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x605b04}),_0x349597=_0x4b1ab3['mapper']['toViewPosition'](_0x26b8e8);_0x32985b&&_0x4aa746['activeMarkers']['includes'](_0x1286e0['markerName'])&&_0x4b1ab3['writer']['addClass']('ck-suggestion-marker--active',_0x4bb330),_0x4b1ab3['writer']['insert'](_0x349597,_0x4bb330),_0x4b1ab3['mapper']['bindElementToMarker'](_0x4bb330,_0x1286e0['markerName']);}};}class jt extends _0x3e269d{['afterInit'](){const _0x1a08c2=this['editor'];_0x1a08c2['commands']['get']('replaceSource')&&_0x1a08c2['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3e269d{['afterInit'](){const _0xee8305=this['editor'];if(!_0xee8305['plugins']['has']('RemoveFormatEditing'))return;_0xee8305['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d8f6=this['editor'];_0x52d8f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x305797=>{if('formatBlock'!=_0x305797['type']&&'formatInline'!=_0x305797['type'])return;const {data:_0x418680}=_0x305797;return _0x418680&&'removeFormat'==_0x418680['commandName']?{'type':'format','content':c(_0x52d8f6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3e269d{['afterInit'](){const _0x53205e=this['editor'];if(!_0x53205e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1c3fb2=_0x53205e['plugins']['get']('TrackChangesEditing');_0x1c3fb2['enableCommand']('goToPreviousRestrictedEditingException'),_0x1c3fb2['enableCommand']('goToNextRestrictedEditingException');const _0x505d02=_0x53205e['plugins']['get']('RestrictedEditingModeEditing');_0x505d02['enableCommand']('trackChanges'),_0x505d02['enableCommand']('acceptSuggestion'),_0x505d02['enableCommand']('discardSuggestion'),_0x505d02['enableCommand']('acceptAllSuggestions'),_0x505d02['enableCommand']('discardAllSuggestions'),_0x505d02['enableCommand']('acceptSelectedSuggestions'),_0x505d02['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3e269d{static get['requires'](){return[_0x7f1542];}['init'](){const _0x4b4727=this['editor'],_0x5ba5c2=_0x4b4727['plugins']['get']('TrackChangesEditing');_0x5ba5c2['enableCommand']('shiftEnter'),_0x4b4727['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4b4727),{'priority':'high'}),_0x4b4727['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4b4727),{'priority':'high'}),_0x4b4727['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3e8d19,_0x1c0e98,_0x569051)=>{_0x569051['options']['showSuggestionHighlights']&&je(_0x4b4727,{'showActiveMarker':!0x1})(_0x3e8d19,_0x1c0e98,_0x569051);}),_0x5ba5c2['descriptionFactory']['registerElementLabel']('softBreak',_0x15dc51=>c(_0x4b4727['locale'],'ELEMENT_LINE_BREAK',_0x15dc51));}}function je(_0x567ef4,{showActiveMarker:_0x33aacc=!0x0}={}){return(_0x7acdec,_0x135e1b,_0x37ff07)=>{const _0x28c5e1=_0x567ef4['plugins']['get']('TrackChangesEditing');if(!_0x37ff07['consumable']['test'](_0x135e1b['markerRange'],_0x7acdec['name']))return;const _0x41ed33=_0x567ef4['model'];for(const _0x2b0228 of _0x135e1b['markerRange']['getItems']()){if(!_0x2b0228['is']('element','softBreak'))continue;const _0x1aee44='deletion'==_0x135e1b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x8d269f}=_0x28c5e1['_splitMarkerName'](_0x135e1b['markerName']),_0x8f1217=_0x37ff07['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1aee44,'data-author-id':_0x8d269f}),_0x32afa6=_0x37ff07['mapper']['toViewPosition'](_0x41ed33['createPositionBefore'](_0x2b0228));_0x33aacc&&_0x28c5e1['activeMarkers']['includes'](_0x135e1b['markerName'])&&_0x37ff07['writer']['addClass']('ck-suggestion-marker--active',_0x8f1217),_0x37ff07['writer']['insert'](_0x32afa6,_0x8f1217),_0x37ff07['mapper']['bindElementToMarker'](_0x8f1217,_0x135e1b['markerName']);}};}class _t extends _0x3e269d{['afterInit'](){const _0x14874d=this['editor'],_0x87ee75=_0x14874d['model'],_0x1bef27=_0x14874d['locale'];if(!_0x14874d['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c6ddb=_0x14874d['plugins']['get']('TrackChangesEditing'),_0x17c760='restrictedEditingException',_0x1c07d6=_0x14874d['commands']['get'](_0x17c760);_0x5c6ddb['enableCommand'](_0x17c760,(_0x3d6177,_0xee66db={})=>{const _0x21cc16=_0x87ee75['document']['selection'];if(_0x21cc16['isCollapsed'])return void _0x3d6177(_0xee66db);const _0x488d36=void 0x0!==_0xee66db['forceValue']?_0xee66db['forceValue']:!_0x1c07d6['value'];_0x87ee75['change'](()=>{const _0x3e2750=Array['from'](_0x21cc16['getRanges']());for(const _0x442872 of _0x3e2750){const _0x23312b=_0x488d36?[_0x442872]:io(_0x17c760,_0x442872,_0x87ee75);for(const _0x1fbbeb of _0x23312b)_0x5c6ddb['markInlineFormat'](_0x1fbbeb,{'commandName':_0x17c760,'commandParams':[{'forceValue':_0x488d36}]});}});}),_0x5c6ddb['descriptionFactory']['registerDescriptionCallback'](_0x317af8=>{if('formatBlock'!=_0x317af8['type']&&'formatInline'!=_0x317af8['type'])return;const {data:_0x26fcaf}=_0x317af8;return _0x26fcaf&&_0x26fcaf['commandName']==_0x17c760?_0x26fcaf['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1bef27,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1bef27,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3e269d{['afterInit'](){const _0x2800c5=this['editor'];if(!_0x2800c5['plugins']['has']('Style')||!_0x2800c5['plugins']['has']('DataSchema'))return;const _0x44277b=_0x2800c5['plugins']['get']('TrackChangesEditing'),_0x137191=_0x2800c5['locale'],_0x40acfe=_0x2800c5['config']['get']('style')||{},_0x5ce7cf=_0x2800c5['plugins']['get']('GeneralHtmlSupport'),_0x4fd267=_0x2800c5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2800c5['plugins']['get']('DataSchema'),_0x40acfe['definitions']);_0x44277b['enableDefaultAttributesIntegration']('style');const _0x338513=new Set();for(const _0x19f165 of _0x4fd267['block']){const _0x248bdf=_0x5ce7cf['getGhsAttributeNameForElement'](_0x19f165['element']);_0x338513['add'](_0x248bdf);}const _0x180a28=new Set();for(const _0x2ea5a8 of _0x4fd267['inline']){const _0x2361c0=_0x5ce7cf['getGhsAttributeNameForElement'](_0x2ea5a8['element']);_0x180a28['add'](_0x2361c0);for(const _0x4018db of _0x2ea5a8['ghsAttributes'])_0x180a28['add'](_0x4018db);}for(const _0x2f5d5f of _0x338513)_0x44277b['registerBlockAttribute'](_0x2f5d5f),_0x44277b['descriptionFactory']['registerAttributeLabel'](_0x2f5d5f,c(_0x137191,'FORMAT_STYLE'));for(const _0x19dd1d of _0x180a28)_0x44277b['registerInlineAttribute'](_0x19dd1d),_0x44277b['descriptionFactory']['registerAttributeLabel'](_0x19dd1d,c(_0x137191,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ba999=this['editor'],_0x5da358=_0x2ba999['locale'];_0x2ba999['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa64eb2=>{if('formatBlock'!=_0xa64eb2['type']&&'formatInline'!=_0xa64eb2['type'])return;const {data:_0x1d4f66}=_0xa64eb2;return _0x1d4f66&&'style'===_0x1d4f66['commandName']?_0x1d4f66['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5da358,'*Set\x20format:*\x20%0',_0x1d4f66['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5da358,'*Remove\x20format:*\x20%0',_0x1d4f66['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3e269d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x48f00d){super(_0x48f00d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x45451b=this['editor'],_0x4cebeb=_0x45451b['model']['document']['selection'];if(!_0x45451b['plugins']['has']('TableEditing'))return;const _0x3e36d6=_0x45451b['locale'],_0x40645e=_0x45451b['plugins']['get']('TrackChangesEditing'),_0x404fed=_0x45451b['plugins']['get']('TableUtils');_0x40645e['descriptionFactory']['registerElementLabel']('table',_0x3287ad=>c(_0x3e36d6,'ELEMENT_TABLE',_0x3287ad)),this['_setupColumnsRowsFixing'](),_0x40645e['enableCommand']('insertTable'),_0x40645e['enableCommand']('selectTableRow'),_0x40645e['enableCommand']('selectTableColumn');for(const _0x38df3b of['insertTableRowAbove','insertTableRowBelow']){const _0x4a447e=_0x45451b['commands']['get'](_0x38df3b);_0x40645e['enableCommand'](_0x38df3b,_0x3d4ffb=>{_0x45451b['model']['change'](_0x6ced00=>{_0x3d4ffb();const _0x2b35e8='above'===_0x4a447e['order'],_0x2981f4=_0x404fed['getSelectionAffectedTableCells'](_0x4cebeb),_0x2a675a=_0x404fed['getRowIndexes'](_0x2981f4),_0x2e6c4e=_0x2b35e8?_0x2a675a['first']-0x1:_0x2a675a['last']+0x1,_0x1196ec=_0x2981f4[0x0]['findAncestor']('table'),_0x558022=_0x404fed['createTableWalker'](_0x1196ec,{'startRow':_0x2e6c4e,'endRow':_0x2e6c4e}),_0x3f1aa7=Array['from'](_0x558022)['map'](_0x33c1a9=>_0x6ced00['createRangeOn'](_0x33c1a9['cell']));_0x40645e['markMultiRangeInsertion'](_0x3f1aa7,'tableRow');});});}for(const _0x26e4e7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x493e2b=_0x45451b['commands']['get'](_0x26e4e7);_0x40645e['enableCommand'](_0x26e4e7,_0xcd7e0d=>{_0x45451b['model']['change'](_0x15bef5=>{_0xcd7e0d();const _0x30328e='left'===_0x493e2b['order'],_0x26da85=_0x404fed['getSelectionAffectedTableCells'](_0x4cebeb),_0x2d26b8=_0x404fed['getColumnIndexes'](_0x26da85),_0x47e156=_0x30328e?_0x2d26b8['first']-0x1:_0x2d26b8['last']+0x1,_0xd30aef=_0x26da85[0x0]['findAncestor']('table'),_0x1f189d=_0x404fed['createTableWalker'](_0xd30aef,{'startRow':0x0,'column':_0x47e156,'includeAllSlots':!0x1}),_0x85de0b=Array['from'](_0x1f189d)['map'](_0x33e29d=>_0x15bef5['createRangeOn'](_0x33e29d['cell']));_0x40645e['markMultiRangeInsertion'](_0x85de0b,'tableColumn');});});}for(const _0x447ecb of['removeTableRow','removeTableColumn']){const _0x316032=_0x447ecb['substr'](0xb),_0x220d59=_0x316032['toLowerCase'](),_0x5bf143=_0x220d59['substr'](0x0,0x3)+'span',_0x3d68ef='table'+_0x316032,_0x4a9c3b='min'+_0x316032,_0x3c026a='max'+_0x316032;_0x40645e['enableCommand'](_0x447ecb,()=>{_0x45451b['model']['change'](_0x2a9518=>{const _0x300a79=_0x404fed['getSelectionAffectedTableCells'](_0x4cebeb),_0x15c05a=_0x300a79[0x0]['findAncestor']('table');let _0x2354af;if('removeTableRow'==_0x447ecb){const _0x460621=_0x404fed['getRowIndexes'](_0x300a79);_0x2354af={'startRow':_0x460621['first'],'endRow':_0x460621['last'],'includeAllSlots':!0x0};}else{const _0x270951=_0x404fed['getColumnIndexes'](_0x300a79);_0x2354af={'startColumn':_0x270951['first'],'endColumn':_0x270951['last'],'includeAllSlots':!0x0};}const _0x369c53=_0x404fed['createTableWalker'](_0x15c05a,_0x2354af),_0x3ce489=Array['from'](_0x369c53)['map'](({cell:_0x573069})=>_0x573069),_0x29d5fd=Ne(_0x3ce489['filter'](_0x49d082=>_0x49d082['hasAttribute'](_0x5bf143))),_0x337907=Ne(_0x3ce489['filter'](_0x398569=>!_0x398569['hasAttribute'](_0x5bf143)))['map'](_0x1c4735=>_0x2a9518['createRangeOn'](_0x1c4735)),_0x4164d1=_0x40645e['markMultiRangeDeletion'](_0x337907,_0x3d68ef);if(_0x4164d1&&('tableRow'==_0x4164d1['subType']||'tableColumn'==_0x4164d1['subType'])){const _0x345658=this['_getSuggestionCoords'](_0x4164d1);for(const _0x5c682f of _0x29d5fd){const _0x545990=_0x2a9518['createRangeOn'](_0x5c682f),_0x2d5b2e=_0x404fed['getCellLocation'](_0x5c682f),_0x449de1=_0x5c682f['getAttribute'](_0x5bf143)-0x1,_0x5b10ef=_0x345658[_0x4a9c3b],_0x319005=_0x345658[_0x3c026a];_0x5b10ef<=_0x2d5b2e[_0x220d59]&&_0x2d5b2e[_0x220d59]+_0x449de1<=_0x319005&&_0x4164d1['addRange'](_0x545990);}}});});}function _0x3b0c57(_0x47fd35){const _0x3612ee=Array['from'](_0x4cebeb['getRanges']())['map'](_0x5ce84b=>_0x512def['fromRange'](_0x5ce84b));_0x45451b['model']['change'](_0x134996=>{const _0x35e0cf=_0x134996['batch'];_0x47fd35=_0x47fd35['filter'](_0x44b23d=>'$graveyard'!=_0x44b23d['root']['rootName']),_0x134996['setSelection'](_0x47fd35),_0x45451b['commands']['get']('removeTableRow')['refresh'](),_0x45451b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x45451b['model']['enqueueChange'](()=>{_0x45451b['model']['enqueueChange'](_0x35e0cf,_0x39b58c=>{const _0x5b2192=_0x3612ee['filter'](_0x119086=>'$graveyard'!=_0x119086['root']['rootName']);_0x5b2192['length']>0x0&&_0x39b58c['setSelection'](_0x5b2192);for(const _0x284044 of _0x3612ee)_0x284044['detach']();});});});}function _0x1a9602(_0x52d6d6){_0x45451b['model']['change'](_0x1a9b0f=>{const _0x42295c=Array['from'](_0x4cebeb['getRanges']())['map'](_0x779fb=>_0x512def['fromRange'](_0x779fb)),_0x402e28=[];for(const _0x512b80 of _0x52d6d6)for(const _0x2e0016 of _0x512b80['getItems']({'shallow':!0x0}))_0x402e28['push'](_0x2e0016);for(const _0x2ab9a7 of _0x402e28)'$graveyard'!=_0x2ab9a7['root']['rootName']&&(_0x1a9b0f['setSelection'](_0x1a9b0f['createPositionAt'](_0x2ab9a7,0x0)),_0x45451b['commands']['get']('removeTableColumn')['refresh'](),_0x45451b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x434919=_0x42295c['filter'](_0x42b9cf=>'$graveyard'!=_0x42b9cf['root']['rootName']);_0x434919['length']>0x0&&_0x1a9b0f['setSelection'](_0x434919);for(const _0x258328 of _0x42295c)_0x258328['detach']();});}function _0x49be0b(_0x30514f,_0x4f0f9d){return _0x4f0f9d['every'](_0x2930e1=>_0x30514f['some'](_0x568d35=>_0x568d35['end']['isEqual'](_0x2930e1['start'])||_0x2930e1['end']['isEqual'](_0x568d35['start'])));}function _0x463e3b(_0x1e208a,_0x1e92b2){return!_0x1e208a['some'](_0x26dbf6=>_0x1e92b2['some'](_0x303aa7=>_0x26dbf6['isIntersecting'](_0x303aa7)))&&_0x1e208a['some'](_0x533d64=>_0x1e92b2['some'](_0x174e63=>_0x533d64['end']['isTouching'](_0x174e63['start'])));}_0x45451b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ac232,_0x3a6f3c,_0xddbf5)=>{if(!_0xddbf5['options']['showSuggestionHighlights'])return;const _0x2fc717=_0x3a6f3c['item'];if(!_0x2fc717)return;const _0x24f49c=_0xddbf5['mapper']['toViewElement'](_0x2fc717);function _0x46cfea(_0x27d7c7){return Array['isArray'](_0x27d7c7)?_0x27d7c7:[_0x27d7c7];}_0x24f49c&&'tableCell'===_0x2fc717['name']&&_0x1ebf5e(_0x24f49c,_0xddbf5['writer'],(_0x53602c,_0x223af6,_0x14205c)=>_0x14205c['addClass'](_0x46cfea(_0x223af6['classes']),_0x53602c),(_0x3a7646,_0x424445,_0x7eb84)=>_0x7eb84['removeClass'](_0x46cfea(_0x424445['classes']),_0x3a7646));},{'priority':'highest'}),_0x40645e['descriptionFactory']['registerDescriptionCallback'](_0x4f26dd=>{if('insertion'!=_0x4f26dd['type']&&'deletion'!=_0x4f26dd['type'])return;const _0x544bb2=_0x4f26dd['getContainedElement']();if(null!=_0x544bb2&&_0x544bb2['is']('element','table')){if('insertion'==_0x4f26dd['type']){const _0x33779a=_0x4f26dd['getItems']()['filter'](_0x495a2f=>_0x495a2f['is']('$textProxy'))['map'](_0x3b6d46=>_0x3b6d46['data']);if(_0x33779a['length'])return{'type':'insertion','content':c(_0x3e36d6,'*Insert:*\x20%0',c(_0x3e36d6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x33779a['join']('\x20')+'\x22'))};}if('deletion'==_0x4f26dd['type']){const _0x575ba0=_0x4f26dd['getItems']()['filter'](_0x128e64=>_0x128e64['is']('$textProxy'))['map'](_0x5171eb=>_0x5171eb['data']);if(_0x575ba0['length'])return{'type':'deletion','content':c(_0x3e36d6,'*Remove:*\x20%0',c(_0x3e36d6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x575ba0['join']('\x20')+'\x22'))};}}}),_0x40645e['descriptionFactory']['registerDescriptionCallback'](_0x5b6767=>{if('tableRow'==_0x5b6767['subType']){const _0x5af371=_0x5b6767['getItems']()['filter'](_0x186a18=>_0x186a18['is']('$textProxy'))['map'](_0xc12995=>_0xc12995['data']),_0x158761=this['_getSuggestionCoords'](_0x5b6767),_0x40cf27=_0x158761['maxRow']-_0x158761['minRow']+0x1;if('insertion'==_0x5b6767['type'])return _0x5af371['length']?{'type':'insertion','content':c(_0x3e36d6,'*Insert:*\x20%0',c(_0x3e36d6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x40cf27,'\x22'+_0x5af371['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3e36d6,'*Insert:*\x20%0',c(_0x3e36d6,'ELEMENT_TABLE_ROW',_0x40cf27))};if('deletion'==_0x5b6767['type'])return _0x5af371['length']?{'type':'deletion','content':c(_0x3e36d6,'*Remove:*\x20%0',c(_0x3e36d6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x40cf27,'\x22'+_0x5af371['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3e36d6,'*Remove:*\x20%0',c(_0x3e36d6,'ELEMENT_TABLE_ROW',_0x40cf27))};}if('tableColumn'==_0x5b6767['subType']){const _0x162ffc=_0x5b6767['getItems']()['filter'](_0x30eaf1=>_0x30eaf1['is']('$textProxy'))['map'](_0x224221=>_0x224221['data']),_0x8b9d7b=this['_getSuggestionCoords'](_0x5b6767),_0x34ee3a=_0x8b9d7b['maxColumn']-_0x8b9d7b['minColumn']+0x1;if('insertion'==_0x5b6767['type'])return _0x162ffc['length']?{'type':'insertion','content':c(_0x3e36d6,'*Insert:*\x20%0',c(_0x3e36d6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ee3a,'\x22'+_0x162ffc['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3e36d6,'*Insert:*\x20%0',c(_0x3e36d6,'ELEMENT_TABLE_COLUMN',_0x34ee3a))};if('deletion'==_0x5b6767['type'])return _0x162ffc['length']?{'type':'deletion','content':c(_0x3e36d6,'*Remove:*\x20%0',c(_0x3e36d6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ee3a,'\x22'+_0x162ffc['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3e36d6,'*Remove:*\x20%0',c(_0x3e36d6,'ELEMENT_TABLE_COLUMN',_0x34ee3a))};}}),_0x40645e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3b0c57),_0x40645e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3b0c57),_0x40645e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1a9602),_0x40645e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1a9602),_0x40645e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x49be0b),_0x40645e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x49be0b),_0x40645e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x463e3b),_0x40645e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x463e3b);}['_acceptFormatSuggestionCallbackFactory'](){const _0xc5ce10=this['editor'],_0x476ec4=_0xc5ce10['model']['document']['selection'];return(_0x1c9963,_0x3759d5)=>{_0xc5ce10['model']['change'](_0x2902a3=>{const {commandName:_0x212bd9,commandParams:_0x5d3454}=_0x3759d5;let _0x5c7f2e=_0x1c9963[0x0]['end']['nodeBefore'];_0x5d3454&&_0x5d3454[0x0]&&!0x1===_0x5d3454[0x0]['forceValue']&&(_0x5c7f2e=_0x1c9963[0x0]['start']['nodeAfter']);const _0x47841f=_0x2902a3['createRangeIn'](_0x5c7f2e);if('$graveyard'==_0x47841f['root']['rootName'])return;const _0x56dbcc=Array['from'](_0x476ec4['getRanges']())['map'](_0x371eff=>_0x512def['fromRange'](_0x371eff));_0x2902a3['setSelection'](_0x47841f),_0xc5ce10['commands']['get'](_0x212bd9)['refresh'](),_0x5d3454['push']({'forceDefaultExecution':!0x0}),_0xc5ce10['execute'](_0x212bd9,..._0x5d3454);const _0x3cee97=_0x56dbcc['filter'](_0x5ea441=>'$graveyard'!=_0x5ea441['root']['rootName']);_0x3cee97['length']>0x0&&_0x2902a3['setSelection'](_0x3cee97);for(const _0x4cc9a1 of _0x56dbcc)_0x4cc9a1['detach']();});};}['_getCoordsForCells'](_0x294fdd){const _0x19d733=this['editor']['plugins']['get']('TableUtils');let _0x3c48b1=Number['MAX_SAFE_INTEGER'],_0x236e45=Number['MIN_SAFE_INTEGER'],_0xd5493e=Number['MAX_SAFE_INTEGER'],_0x1c6709=Number['MIN_SAFE_INTEGER'];for(const _0x44927a of _0x294fdd){if('$graveyard'==_0x44927a['root']['rootName'])continue;const {row:_0x25481c,column:_0x415c19}=_0x19d733['getCellLocation'](_0x44927a),_0x1d84d5=_0x44927a['hasAttribute']('rowspan')?_0x44927a['getAttribute']('rowspan')-0x1:0x0,_0x2196f3=_0x44927a['hasAttribute']('colspan')?_0x44927a['getAttribute']('colspan')-0x1:0x0;_0x3c48b1=_0x25481c<_0x3c48b1?_0x25481c:_0x3c48b1,_0x236e45=_0x25481c+_0x1d84d5>_0x236e45?_0x25481c+_0x1d84d5:_0x236e45,_0xd5493e=_0x415c19<_0xd5493e?_0x415c19:_0xd5493e,_0x1c6709=_0x415c19+_0x2196f3>_0x1c6709?_0x415c19+_0x2196f3:_0x1c6709;}return{'minRow':_0x3c48b1,'maxRow':_0x236e45,'minColumn':_0xd5493e,'maxColumn':_0x1c6709};}['_setupColumnsRowsFixing'](){const _0x274dee=this['editor'],_0xf64abb=_0x274dee['plugins']['get']('TrackChangesEditing'),_0x1dfddf=_0x274dee['plugins']['get']('TableUtils');_0x274dee['model']['document']['on']('change:data',()=>{const _0x8f4de1=Array['from'](_0x274dee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x495ee7,data:_0x23be6e}of _0x8f4de1){const {group:_0x5611ff,id:_0x1e26ff,subType:_0x4bb3ca}=_0xf64abb['_splitMarkerName'](_0x495ee7);if('suggestion'!=_0x5611ff)continue;if(null!=_0x23be6e['oldRange'])continue;const _0x29681b=_0xf64abb['getSuggestion'](_0x1e26ff);this['_tablePostFixingSubtypes']['includes'](_0x4bb3ca)&&this['_tableSuggestions']['add'](_0x29681b);}},{'priority':'low'});const _0xc1e727=(_0x3e0f3b,_0x382683)=>{let _0x177dd4=!0x1;const _0x1bc4ec=_0x382683['createRangeOn'](_0x3e0f3b),_0x438004=_0x3e0f3b['findAncestor']('table'),_0xa6112=_0x1dfddf['getCellLocation'](_0x3e0f3b);for(const _0xa9df3f of this['_tableSuggestions']){const _0x167964=_0xa9df3f['subType'],_0x1e87f0=_0x167964['startsWith']('tablePaste'),_0x342698=_0x167964['substr'](_0x1e87f0?0xa:0x5),_0x5ed104=_0x342698['toLowerCase'](),_0x3abc51=_0x5ed104['substr'](0x0,0x3)+'span',_0x49c1ef='min'+_0x342698,_0x43de6c='max'+_0x342698;if(!_0xa9df3f['isInContent'])continue;if(_0x438004!=_0xa9df3f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xa9df3f['isIntersectingWithRange'](_0x1bc4ec))continue;const _0x621927=_0x3e0f3b['hasAttribute'](_0x3abc51)?_0x3e0f3b['getAttribute'](_0x3abc51)-0x1:0x0,_0x2b5420=this['_getSuggestionCoords'](_0xa9df3f),_0x18b3a1=_0x2b5420[_0x49c1ef],_0x4fe91b=_0x2b5420[_0x43de6c];_0x18b3a1<=_0xa6112[_0x5ed104]&&_0xa6112[_0x5ed104]+_0x621927<=_0x4fe91b&&(_0xa9df3f['addRange'](_0x1bc4ec),_0x177dd4=!0x0);}return _0x177dd4;};_0x274dee['model']['document']['registerPostFixer'](_0xe227e=>{let _0x2ed5f3=!0x1;for(const _0x5de7aa of _0x274dee['model']['document']['differ']['getChanges']())if('insert'==_0x5de7aa['type']){if('tableRow'==_0x5de7aa['name']){for(const _0x5ec33d of _0x5de7aa['position']['nodeAfter']['getChildren']())_0x2ed5f3=_0x2ed5f3||_0xc1e727(_0x5ec33d,_0xe227e);}else'tableCell'==_0x5de7aa['name']&&(_0x2ed5f3=_0x2ed5f3||_0xc1e727(_0x5de7aa['position']['nodeAfter'],_0xe227e));}return _0x2ed5f3;});}['_getSuggestionCoords'](_0x20edaf){return this['_getCoordsForCells'](_0x20edaf['getRanges']()['map'](_0x16ca06=>_0x16ca06['start']['nodeAfter']));}}function Ne(_0x1a2eb0){return Array['from'](new Set(_0x1a2eb0)['values']());}class Nt extends _0x3e269d{static get['requires'](){return[Ct];}['afterInit'](){const _0x438878=this['editor'],_0x379b4b=_0x438878['model']['document']['selection'],_0x478886=_0x438878['locale'];if(!_0x438878['plugins']['has']('TableEditing'))return;const _0x21c14b=_0x438878['plugins']['get']('TrackChangesEditing'),_0x46a9d5=_0x438878['plugins']['get']('TableUtils'),_0x34fd9b=_0x438878['plugins']['get'](Ct);_0x34fd9b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x21c14b['enableCommand']('mergeTableCells',()=>{const _0x26c017=_0x46a9d5['getSelectionAffectedTableCells'](_0x438878['model']['document']['selection']);_0x438878['model']['change'](()=>{_0x21c14b['markMultiRangeBlockFormat'](_0x26c017,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x438878['commands']['get']('mergeTableCells')['on']('execute',(_0x190d24,_0x4efd68)=>{_0x438878['commands']['get']('trackChanges')['value']&&(_0x4efd68['length']>0x0&&_0x4efd68[_0x4efd68['length']-0x1]&&_0x4efd68[_0x4efd68['length']-0x1]['forceDefaultExecution']||_0x21c14b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x190d24['stop']());},{'priority':'highest'});for(const _0x5c7b3a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x143380=_0x438878['commands']['get'](_0x5c7b3a);_0x21c14b['enableCommand'](_0x5c7b3a,()=>{const _0x1cfe4a=_0x438878['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x11d7cf=>_0x11d7cf['is']('element','tableCell')),_0x18c2ae=_0x143380['value'];_0x438878['model']['change'](()=>{_0x21c14b['markMultiRangeBlockFormat']([_0x1cfe4a,_0x18c2ae],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x8f7fff of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1fcaac=_0x438878['commands']['get'](_0x8f7fff);_0x21c14b['enableCommand'](_0x8f7fff,()=>{const _0x509715=_0x46a9d5['getSelectionAffectedTableCells'](_0x438878['model']['document']['selection'])[0x0],_0x571191=_0x509715['findAncestor']('table'),{column:_0xc42e90,row:_0x3285a3}=_0x46a9d5['getCellLocation'](_0x509715);let _0x4b73c3=[];if('horizontally'==_0x1fcaac['direction']){const _0x324f03=_0x46a9d5['createTableWalker'](_0x571191,{'startRow':_0x3285a3,'endRow':_0x3285a3,'includeAllSlots':!0x0});_0x4b73c3=Array['from'](_0x324f03)['map'](_0x3b23a6=>_0x3b23a6['cell']);}else{const _0x2e8573=_0x46a9d5['createTableWalker'](_0x571191,{'column':_0xc42e90,'includeAllSlots':!0x0});_0x4b73c3=Array['from'](_0x2e8573)['map'](_0x36559e=>_0x36559e['cell']);}_0x438878['model']['change'](_0x5cc741=>{_0x21c14b['markBlockFormat'](_0x5cc741['createRangeOn'](_0x509715),{'commandName':_0x8f7fff,'commandParams':[]},_0x4b73c3,_0x8f7fff);});});}_0x21c14b['descriptionFactory']['registerDescriptionCallback'](_0x4ccf14=>{if('formatBlock'!=_0x4ccf14['type']&&'formatInline'!=_0x4ccf14['type'])return;const {data:_0x562db5}=_0x4ccf14;return _0x562db5&&'mergeTableCells'==_0x562db5['commandName']?{'type':'format','content':c(_0x478886,'*Merge\x20cells*')}:void 0x0;}),_0x21c14b['descriptionFactory']['registerDescriptionCallback'](_0x3c9677=>{if('formatBlock'!=_0x3c9677['type']&&'formatInline'!=_0x3c9677['type'])return;const {data:_0x207599}=_0x3c9677;return _0x207599?'splitTableCellVertically'==_0x207599['commandName']?{'type':'format','content':c(_0x478886,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x207599['commandName']?{'type':'format','content':c(_0x478886,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2bebeb=_0x34fd9b['_acceptFormatSuggestionCallbackFactory']();for(const _0x342908 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x21c14b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x342908,'accept',_0x2bebeb);for(const _0x549054 of['splitTableCellVertically','splitTableCellHorizontally'])_0x21c14b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x549054,'accept',_0x2bebeb);_0x21c14b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1a4a3a=>{_0x438878['model']['change'](_0x4bfeda=>{const _0x415975=Array['from'](_0x379b4b['getRanges']())['map'](_0x24bfb0=>_0x512def['fromRange'](_0x24bfb0));_0x4bfeda['setSelection'](_0x1a4a3a),_0x438878['commands']['get']('mergeTableCells')['refresh'](),_0x438878['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x399153=_0x415975['filter'](_0x45a301=>'$graveyard'!=_0x45a301['root']['rootName']);_0x399153['length']>0x0&&_0x4bfeda['setSelection'](_0x399153);for(const _0x464908 of _0x415975)_0x464908['detach']();});});for(const _0x31fbcc of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4ea8ba=_0x438878['commands']['get'](_0x31fbcc);_0x4ea8ba['on']('set:isEnabled',(_0x512772,_0x42a5ad,_0x42c8ce)=>{if(_0x42c8ce){const _0x4d0869=_0x438878['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x176953=>_0x176953['is']('element','tableCell'));this['_areMergableCells'](_0x4ea8ba['value'],_0x4d0869)||(_0x512772['return']=!0x1,_0x512772['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2a93e6=this['editor']['commands']['get']('mergeTableCells'),_0x916b89=this['editor']['plugins']['get']('TableUtils');if(!_0x2a93e6['isEnabled'])return!0x1;const _0xfb5c5e=_0x916b89['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x40d062 of _0xfb5c5e)for(const _0x5d1bda of _0xfb5c5e)if(_0x40d062!=_0x5d1bda&&!this['_areMergableCells'](_0x40d062,_0x5d1bda))return!0x1;return!0x0;}['_areMergableCells'](_0x4dc31f,_0x38d58a){const _0x3e1730=this['editor']['plugins']['get']('TrackChangesEditing'),_0x388c87=this['editor']['model']['createRangeOn'](_0x4dc31f),_0x38ac14=this['editor']['model']['createRangeOn'](_0x38d58a),_0x14e904=new Set(),_0x43ed99=new Set();for(const _0x8018e9 of _0x3e1730['getSuggestions']())if(('insertion'==_0x8018e9['type']||'deletion'==_0x8018e9['type']||'mergeTableCells'==_0x8018e9['subType'])&&_0x8018e9['isInContent']){for(const _0x5e323e of _0x8018e9['getRanges']())_0x5e323e['containsRange'](_0x388c87,!0x0)&&_0x14e904['add'](_0x8018e9['type']+':'+_0x8018e9['author']['id']),_0x5e323e['containsRange'](_0x38ac14,!0x0)&&_0x43ed99['add'](_0x8018e9['type']+':'+_0x8018e9['author']['id']);}if(_0x14e904['size']!=_0x43ed99['size'])return!0x1;for(const _0x3fb8e3 of _0x14e904)if(!_0x43ed99['has'](_0x3fb8e3))return!0x1;return!0x0;}}class Dt extends _0x3e269d{static get['requires'](){return[Ct];}['afterInit'](){const _0x3a0d85=this['editor'];if(!_0x3a0d85['plugins']['has']('TableEditing'))return;const _0x1efdbd=_0x3a0d85['locale'],_0x68acf3=_0x3a0d85['plugins']['get']('TrackChangesEditing');_0x68acf3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x68acf3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x68acf3['registerBlockAttribute']('headingRows'),_0x68acf3['registerBlockAttribute']('headingColumns'),_0x68acf3['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x1efdbd,'FORMAT_HEADER_ROW')),_0x68acf3['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x1efdbd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19364d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2aac5d=this['editor']['plugins']['get']('TableUtils'),_0x29c576=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1fb484({showActiveMarker:_0x37473a=!0x0,setDataAttribute:_0x475696=!0x0}={}){return(_0xabc31f,_0x45ea3f,_0x3d8840)=>{const {type:_0x58d9a8,id:_0x2d899e}=_0x19364d['_splitMarkerName'](_0x45ea3f['markerName']),_0x242fe5=_0x19364d['getSuggestion'](_0x2d899e),_0x33d0ee=_0x242fe5['data'];if('formatBlock'!=_0x242fe5['type']||!_0x33d0ee||'setTableColumnHeader'!=_0x33d0ee['commandName'])return;if(_0x45ea3f['item'])return void _0xabc31f['stop']();if(!_0x3d8840['consumable']['consume'](_0x45ea3f['markerRange'],_0xabc31f['name']))return;const _0x5ee8b7=_0x45ea3f['markerRange']['start']['nodeAfter'],_0x5200fa=_0x45ea3f['markerRange']['end']['nodeBefore'],_0x13e3d2=_0x5ee8b7['parent']['parent'],{column:_0x2b8f5d}=_0x2aac5d['getCellLocation'](_0x5ee8b7),{column:_0xa8e9a4}=_0x2aac5d['getCellLocation'](_0x5200fa);for(let _0x4ab070=_0x2b8f5d;_0x4ab070<=_0xa8e9a4;_0x4ab070++){const _0x7029b2=_0x2aac5d['createTableWalker'](_0x13e3d2,{'column':_0x4ab070,'includeAllSlots':!0x1});for(const _0x1e9b37 of _0x7029b2){const _0x42005c=_0x1e9b37['cell'],_0xecc831=_0x3d8840['mapper']['toViewElement'](_0x42005c);_0x3d8840['writer']['addClass']('ck-suggestion-marker-'+_0x58d9a8,_0xecc831),_0x475696&&_0x3d8840['writer']['setAttribute']('data-suggestion',_0x2d899e,_0xecc831),_0x3d8840['mapper']['bindElementToMarker'](_0xecc831,_0x45ea3f['markerName']),_0x37473a&&(_0x19364d['activeMarkers']['includes'](_0x45ea3f['markerName'])?_0x3d8840['writer']['addClass']('ck-suggestion-marker--active',_0xecc831):_0x3d8840['writer']['removeClass']('ck-suggestion-marker--active',_0xecc831));}}};}_0x19364d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x29c576),_0x19364d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x29c576),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1fb484(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3aa5bd,_0x399ac4,_0x23fb1c)=>{_0x23fb1c['options']['showSuggestionHighlights']&&_0x1fb484({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3aa5bd,_0x399ac4,_0x23fb1c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x207446,_0x1a7dcf,_0xbdffeb)=>{const {type:_0x3bf9eb,id:_0xc0859a}=_0x19364d['_splitMarkerName'](_0x1a7dcf['markerName']),_0x49e526=_0x19364d['getSuggestion'](_0xc0859a),_0x33a0d8=_0x49e526['data'];if('formatBlock'!=_0x49e526['type']||!_0x33a0d8||'setTableColumnHeader'!=_0x33a0d8['commandName'])return;const _0x4ae61c=_0xbdffeb['mapper']['markerNameToElements'](_0x1a7dcf['markerName']);if(_0x4ae61c){for(const _0x239ec1 of _0x4ae61c)_0xbdffeb['writer']['removeClass']('ck-suggestion-marker-'+_0x3bf9eb,_0x239ec1),_0xbdffeb['writer']['removeClass']('ck-suggestion-marker--active',_0x239ec1),_0xbdffeb['writer']['removeAttribute']('data-suggestion',_0x239ec1),_0xbdffeb['mapper']['unbindElementFromMarkerName'](_0x239ec1,_0x1a7dcf['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f526d=this['editor'],_0x2c7268=_0x2f526d['locale'];function _0x4eb341(_0x1947ad){return{'type':'format','content':c(_0x2c7268,'*Format:*\x20%0',_0x1947ad)};}_0x2f526d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x100ccb=>{if('formatBlock'!=_0x100ccb['type'])return;const {data:_0x1b59fa}=_0x100ccb;if(_0x1b59fa){if('setTableRowHeader'==_0x1b59fa['commandName']){const _0x1efeaa=_0x1b59fa['commandParams'][0x0]['forceValue'];return _0x4eb341(c(_0x2c7268,_0x1efeaa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1b59fa['commandName']){const _0x55eb4e=_0x1b59fa['commandParams'][0x0]['forceValue'];return _0x4eb341(c(_0x2c7268,_0x55eb4e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2bbd96=>[_0x2bbd96,null]));class Mt extends _0x3e269d{static get['requires'](){return[Ct];}['afterInit'](){const _0x129b0e=this['editor'];if(!_0x129b0e['plugins']['has']('TableClipboard'))return;const _0x13038d=_0x129b0e['plugins']['get']('TrackChangesEditing'),_0x15da5d=_0x129b0e['plugins']['get']('TableUtils'),_0x315fe2=_0x129b0e['plugins']['get'](Ct),_0x1d7058=_0x129b0e['plugins']['get']('TableClipboard');_0x315fe2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x129b0e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x129b0e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x523de0=null;_0x129b0e['model']['on']('insertContent',(_0x6ef808,_0x2fd80e)=>{const [_0xe18bf4,_0x9d0716]=_0x2fd80e,_0x1ccf99=_0x2fd80e[_0x2fd80e['length']-0x1];_0x1ccf99&&_0x1ccf99['forceDefaultExecution']||_0x13038d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x171637,_0x45a93b,_0x4da76a,_0x40c9cb,_0x369039){if(_0x45a93b&&!_0x45a93b['is']('documentSelection'))return!0x1;const _0x549b91=_0x369039['getTableIfOnlyTableInContent'](_0x171637,_0x4da76a);if(!_0x549b91||!Ue(_0x549b91,void 0x0,_0x40c9cb))return!0x1;const _0x2531ed=_0x40c9cb['getSelectionAffectedTableCells'](_0x4da76a['document']['selection']);if(!_0x2531ed['length'])return!0x1;const _0x11e6c3=_0x2531ed[0x0]['findAncestor']('table'),_0x27f74d=_0x40c9cb['getRowIndexes'](_0x2531ed),_0x177f08=_0x40c9cb['getColumnIndexes'](_0x2531ed),_0x26bd53={'startRow':_0x27f74d['first'],'endRow':_0x27f74d['last'],'startColumn':_0x177f08['first'],'endColumn':_0x177f08['last']};return 0x1==_0x2531ed['length']&&(_0x26bd53['endRow']+=_0x40c9cb['getRows'](_0x549b91)-0x1,_0x26bd53['endColumn']+=_0x40c9cb['getColumns'](_0x549b91)-0x1),Ue(_0x11e6c3,_0x26bd53,_0x40c9cb);}(_0xe18bf4,_0x9d0716,_0x129b0e['model'],_0x15da5d,_0x1d7058)&&(_0x6ef808['stop'](),_0x523de0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x129b0e['model']['change'](()=>{_0x129b0e['model']['insertContent'](_0x2fd80e[0x0],_0x2fd80e[0x1],_0x2fd80e[0x2],{'forceDefaultExecution':!0x0});const _0x322d55=_0x3c1a26(),{rowInsertionRanges:_0x315df4,columnInsertionRanges:_0x4a6a2c,insertionRanges:_0x2c539b,deletionRanges:_0x38f626,cells:_0x2a01d2}=_0x523de0;_0x315df4['length']&&_0x13038d['markMultiRangeInsertion'](_0x315df4,'tablePasteRow',{'tablePasteChainId':_0x322d55}),_0x4a6a2c['length']&&_0x13038d['markMultiRangeInsertion'](_0x4a6a2c,'tablePasteColumn',{'tablePasteChainId':_0x322d55}),_0x2c539b['length']&&(_0x13038d['markMultiRangeInsertion'](_0x2c539b,'tablePaste',{'tablePasteChainId':_0x322d55,'skipNestingCheck':!0x0}),_0x2c539b['forEach'](_0x3b0646=>_0x3b0646['detach']?.())),_0x38f626['length']&&(_0x13038d['markMultiRangeDeletion'](_0x38f626,'tablePaste',{'tablePasteChainId':_0x322d55,'skipNestingCheck':!0x0}),_0x38f626['forEach'](_0x493cf1=>_0x493cf1['detach']?.()));const _0x8fef09=_0x13038d['markMultiRangeBlockFormat'](_0x2a01d2['map'](({element:_0x587f57})=>_0x587f57),{'formatGroupId':_0x3c1a26()},[],'tablePasteCell',{'tablePasteChainId':_0x322d55});if(_0x8fef09){const _0x29e144=_0x8fef09['getMarkers'](),_0x3d4430=[];for(const {element:_0x3c44cd,attributes:_0x493cd8}of _0x2a01d2){if(!_0x493cd8)continue;const _0x4aaf8a=_0x129b0e['model']['createRangeOn'](_0x3c44cd),_0x184aad=_0x29e144['find'](_0x1a7b48=>_0x1a7b48['getRange']()['isEqual'](_0x4aaf8a));_0x184aad&&_0x3d4430['push']([_0x184aad['name'],_0x493cd8]);}_0x3d4430['length']&&_0x8fef09['setAttribute']('markerAttributes',Object['fromEntries'](_0x3d4430));}_0x523de0=null;}));},{'priority':_0x8e3b5a['high']+0xa}),_0x129b0e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x688ad1,_0x842568)=>{const [_0x2b8f1e,_0x249881,,_0x487358]=_0x842568;if(!_0x523de0)return;_0x688ad1['stop']();const _0xc53040=_0x2b8f1e['cell'],_0x5e6841=_0x249881,_0x70a728=Oe(_0xc53040),_0x9a744=Oe(_0x5e6841);_0x688ad1['return']=_0xc53040;let _0x3c51d8=null,_0x499a0e=null;if(_0x9a744||_0x70a728){if(_0x70a728&&!_0x9a744){_0x487358['remove'](_0xc53040['getChild'](0x0));for(const _0x3bbd21 of Array['from'](_0x5e6841['getChildren']()))_0x487358['insert'](_0x3bbd21,_0xc53040,'end');const _0x5b4d21=_0x523de0['rowInsertionIndexes']['includes'](_0x2b8f1e['row']),_0x51c826=_0x523de0['columnInsertionIndexes']['includes'](_0x2b8f1e['column']);_0x5b4d21||_0x51c826||(_0x3c51d8=_0x512def['fromRange'](_0x487358['createRangeIn'](_0xc53040)));}else _0x9a744&&!_0x70a728&&(_0x499a0e=_0x487358['createRangeIn'](_0xc53040));}else{const _0x43ecf4=_0x487358['createElement']('tableCellSuggestion'),_0x58221b=_0x487358['createElement']('tableCellSuggestion');_0x487358['wrap'](_0x487358['createRangeIn'](_0xc53040),_0x58221b),_0x487358['insert'](_0x43ecf4,_0xc53040,0x0);for(const _0x1e5ad3 of Array['from'](_0x5e6841['getChildren']()))_0x487358['insert'](_0x1e5ad3,_0x43ecf4,'end');_0x3c51d8=_0x512def['fromRange'](_0x487358['createRangeOn'](_0x43ecf4)),_0x499a0e=_0x512def['fromRange'](_0x487358['createRangeOn'](_0x58221b));}const _0x4698aa=Array['from'](_0x5e6841['getAttributes']())['filter'](([_0x3df115])=>Be['includes'](_0x3df115));_0x523de0['cells']['push']({'element':_0xc53040,'attributes':_0x4698aa['length']?Object['fromEntries'](_0x4698aa):null}),_0x3c51d8&&_0x523de0['insertionRanges']['push'](_0x3c51d8),_0x499a0e&&_0x523de0['deletionRanges']['push'](_0x499a0e);},{'priority':'high'}),_0x15da5d['on']('insertColumns',(_0x5561fa,_0x5f3852)=>{const [_0x45d259,_0x29ce8a={}]=_0x5f3852;if(!_0x523de0)return;const _0x72ab69=_0x29ce8a['at']||0x0,_0x4611ec=_0x29ce8a['columns']||0x1;_0x523de0['columnInsertionIndexes']=new Array(_0x4611ec)['fill'](_0x72ab69)['map']((_0x449e30,_0x3847bc)=>_0x449e30+_0x3847bc);for(const {cell:_0x3924b2}of _0x15da5d['createTableWalker'](_0x45d259,{'startColumn':_0x72ab69,'endColumn':_0x72ab69+_0x4611ec-0x1}))_0x523de0['columnInsertionRanges']['push'](_0x129b0e['model']['createRangeOn'](_0x3924b2));},{'priority':'low'}),_0x15da5d['on']('insertRows',(_0x338847,_0x2b45ce)=>{const [_0x24ae92,_0x39d50d={}]=_0x2b45ce;if(!_0x523de0)return;const _0x2dd2fd=_0x39d50d['at']||0x0,_0x81e635=_0x39d50d['rows']||0x1;_0x523de0['rowInsertionIndexes']=new Array(_0x81e635)['fill'](_0x2dd2fd)['map']((_0x5306bd,_0x3a724f)=>_0x5306bd+_0x3a724f);for(const {cell:_0x57066c}of _0x15da5d['createTableWalker'](_0x24ae92,{'startRow':_0x2dd2fd,'endRow':_0x2dd2fd+_0x81e635-0x1}))_0x523de0['rowInsertionRanges']['push'](_0x129b0e['model']['createRangeOn'](_0x57066c));},{'priority':'low'}),_0x13038d['descriptionFactory']['registerDescriptionCallback'](_0x196953=>{if(_0x196953['subType']&&_0x196953['subType']['startsWith']('tablePaste'))return _0x196953['previous']?{}:{'type':'insertion','content':c(_0x129b0e['locale'],'*Replace\x20table\x20cells*')};});const _0x3fff47=()=>!0x1;for(const _0x2f2413 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x13038d['_suggestionFactory']['registerCustomCallback']('insertion',_0x2f2413,'join',_0x3fff47),_0x13038d['_suggestionFactory']['registerCustomCallback']('deletion',_0x2f2413,'join',_0x3fff47),_0x13038d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f2413,'join',_0x3fff47);_0x13038d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3fff47),_0x13038d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x282da2,_0x1274a5,_0x383355)=>{const _0x20ee78=_0x282da2['map'](_0x48c4fc=>_0x48c4fc['getContainedElement']())['filter'](_0x5ef97c=>_0x5ef97c),_0x5231f7=new Map(_0x20ee78['map'](_0x3672b9=>[_0x3672b9,null]));if(_0x523de0){for(const {element:_0xfe8092,attributes:_0x31b18a}of _0x523de0['cells'])_0x31b18a&&_0x5231f7['set'](_0xfe8092,_0x31b18a);}else{if(_0x383355&&_0x383355['markerAttributes'])for(const [_0x17b535,_0xcf1a06]of Object['entries'](_0x383355['markerAttributes'])){const _0x6943e7=_0x129b0e['model']['markers']['get'](_0x17b535),_0x1691aa=_0x6943e7?_0x6943e7['getRange']()['getContainedElement']():null;_0x1691aa&&_0x5231f7['set'](_0x1691aa,_0xcf1a06);}}_0x129b0e['model']['change'](_0x3e50b7=>{for(const [_0x3afdf5,_0x23ab5f]of _0x5231f7)_0x3e50b7['setAttributes']({...xe,..._0x23ab5f},_0x3afdf5);});});const _0xe7d8ed=(_0x1808b1,_0x636fa0)=>{_0x13038d['_suggestionFactory']['registerCustomCallback'](_0x1808b1,'tablePaste',_0x636fa0,(_0x3175fe,_0x33f456,_0x2a1280)=>{_0x129b0e['model']['change'](_0x40511c=>{const _0xc70ecf=[];for(const _0x28f921 of _0x3175fe){const _0x2f32bc=_0x28f921['start']['nodeAfter'];_0x2f32bc['is']('element','tableCellSuggestion')&&_0xc70ecf['push'](_0x2f32bc);}_0x13038d['_suggestionFactory']['getSuggestionCallback'](_0x1808b1,null,_0x636fa0)(_0x3175fe,_0x33f456,_0x2a1280);for(const _0x4489e1 of _0xc70ecf)'$graveyard'!=_0x4489e1['root']['rootName']&&_0x40511c['unwrap'](_0x4489e1);});});};_0xe7d8ed('insertion','accept'),_0xe7d8ed('insertion','discard'),_0xe7d8ed('deletion','accept'),_0xe7d8ed('deletion','discard'),_0x13038d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x57fa1a=>{const _0x588b01=_0x57fa1a['map'](_0x33e57e=>_0x33e57e['getContainedElement']()),_0x4ca86d=_0x588b01[0x0]['findAncestor']('table'),{minRow:_0x3d3980,maxRow:_0x481bce}=_0x315fe2['_getCoordsForCells'](_0x588b01);_0x15da5d['removeRows'](_0x4ca86d,{'at':_0x3d3980,'rows':_0x481bce-_0x3d3980+0x1});}),_0x13038d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x261829=>{const _0x48c092=_0x261829['map'](_0x56c01d=>_0x56c01d['getContainedElement']()),_0x1a01ea=_0x48c092[0x0]['findAncestor']('table'),{minColumn:_0x15850a,maxColumn:_0x5e1c97}=_0x315fe2['_getCoordsForCells'](_0x48c092);_0x15da5d['removeColumns'](_0x1a01ea,{'at':_0x15850a,'columns':_0x5e1c97-_0x15850a+0x1});});const _0x1c2b5b=(_0x3e4039,_0x1ac545)=>{if(!_0x1ac545['subType']||!_0x1ac545['subType']['startsWith']('tablePaste'))return;const _0x3cdce6=_0x1ac545['attributes']['tablePasteChainId'],_0x3b9fa8=_0x13038d['getSuggestions']()['filter'](_0x3e6327=>_0x3e6327['isInContent']&&_0x3e6327['attributes']&&_0x3e6327['attributes']['tablePasteChainId']==_0x3cdce6);_0x3b9fa8['length']&&_0x1ac545['getAllAdjacentSuggestions']()['length']!=_0x3b9fa8['length']&&_0x3b9fa8['reduce']((_0x24440c,_0x1b93f9)=>(_0x24440c['next']=_0x1b93f9,_0x1b93f9['previous']=_0x24440c,_0x1b93f9));};function _0x3aebbf(_0x4616d9,_0xb3edd2=!0x0){const {id:_0x308596,authorId:_0x3eab49}=_0x13038d['_splitMarkerName'](_0x4616d9['markerName']),_0x366864=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x16d387=_0x13038d['activeMarkers']['includes'](_0x4616d9['markerName']);return _0x16d387&&_0x366864['push']('ck-suggestion-marker--active'),{'classes':_0x366864,'attributes':{'data-suggestion':_0x308596,'data-author-id':_0x3eab49},'priority':_0x16d387&&_0xb3edd2?0xbc2:0xbb8};}_0x13038d['on']('suggestionLoaded',_0x1c2b5b,{'priority':'high'}),_0x13038d['on']('suggestionUnloaded',_0x1c2b5b,{'priority':'high'}),_0x129b0e['model']['document']['registerPostFixer'](()=>{let _0x6674c6=!0x1;const _0x16f036=Array['from'](_0x129b0e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x332742,data:_0x1f7f23}of _0x16f036){const {group:_0x414d8e,type:_0x405566,id:_0x4aa3af}=_0x13038d['_splitMarkerName'](_0x332742);if('suggestion'!=_0x414d8e||'deletion'!=_0x405566||_0x1f7f23['oldRange'])continue;if(!_0x13038d['hasSuggestion'](_0x4aa3af))continue;const _0xc295a0=_0x13038d['getSuggestion'](_0x4aa3af)['getRanges'](),_0x273819=_0x129b0e['plugins']['get']('Users')['me'];for(const _0x4425c5 of _0x13038d['getSuggestions']()){if(!_0x4425c5['isInContent']||_0x4425c5['author']!=_0x273819)continue;if('formatBlock'!=_0x4425c5['type']||'tablePasteCell'!=_0x4425c5['subType'])continue;if(_0x4425c5['getRanges']()['every'](_0x528eb3=>_0xc295a0['some'](_0x353f6f=>_0x353f6f['containsRange'](_0x528eb3,!0x0)))){for(const _0x1a38e6 of _0x4425c5['getAllAdjacentSuggestions']())_0x1a38e6['isInContent']&&(_0x1a38e6['discard'](),_0x6674c6=!0x0);}}}return _0x6674c6;}),_0x129b0e['model']['document']['registerPostFixer'](_0x234113=>{const _0x1a51d1=_0x129b0e['commands']['get']('redo');if(!_0x1a51d1||!_0x1a51d1['_createdBatches']['has'](_0x234113['batch']))return!0x1;let _0x1dbaff=!0x1;const _0x2c36d2=_0x129b0e['plugins']['get']('Users')['me'],_0x5b4210=_0x129b0e['model']['document']['differ']['getChanges'](),_0x1cc4aa=Array['from'](_0x129b0e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x475196,data:_0x5ed13f})=>{const {group:_0x265d98,subType:_0x1c7663,authorId:_0x4efb7a}=_0x13038d['_splitMarkerName'](_0x475196);return'suggestion'==_0x265d98&&'tablePaste'==_0x1c7663&&_0x4efb7a==_0x2c36d2['id']&&!_0x5ed13f['oldRange'];});for(const _0x38c00d of _0x5b4210){if('insert'!=_0x38c00d['type']||'tableCellSuggestion'!=_0x38c00d['name']||0x1!=_0x38c00d['length'])continue;const _0x3dd9d3=_0x234113['createRange'](_0x38c00d['position'],_0x38c00d['position']['getShiftedBy'](0x1));if(!_0x1cc4aa['find'](({data:_0x5b63e0})=>_0x5b63e0['newRange']['isEqual'](_0x3dd9d3))){for(const {name:_0x174b02,data:_0x18d3a7}of _0x1cc4aa)if(_0x3dd9d3['containsRange'](_0x18d3a7['newRange'])){_0x234113['updateMarker'](_0x174b02,{'range':_0x3dd9d3}),_0x1dbaff=!0x0;break;}}}return _0x1dbaff;}),_0x129b0e['model']['document']['registerPostFixer'](_0x33b60a=>{let _0x1ffcda=!0x1;const _0x118d00=_0x129b0e['plugins']['get']('Users')['me'],_0x4e6b0f=_0x13038d['getSuggestions']()['filter'](_0x104804=>_0x104804['isInContent']&&_0x104804['author']==_0x118d00),_0x4ca82b=new Set(),_0x299c69=new Set();for(const _0x112c22 of _0x4e6b0f)if('tablePaste'==_0x112c22['subType'])for(const _0x2ba086 of _0x112c22['getMarkers']()){const _0x539b9f=_0x2ba086['getRange']()['getContainedElement']();if(_0x539b9f){if(_0x539b9f['is']('element','tableCellSuggestion')&&Oe(_0x539b9f)){_0x112c22['removeMarker'](_0x2ba086['name']),_0x4ca82b['add'](_0x539b9f),_0x1ffcda=!0x0;const _0xcaff9e=_0x539b9f['nextSibling'],_0x3b446e=_0x539b9f['previousSibling'],_0x1be606=_0xcaff9e&&_0xcaff9e['is']('element','tableCellSuggestion'),_0x52f37d=_0x3b446e&&_0x3b446e['is']('element','tableCellSuggestion');_0x1be606&&!_0x4ca82b['has'](_0xcaff9e)&&_0x299c69['add'](_0xcaff9e),_0x52f37d&&!_0x4ca82b['has'](_0x3b446e)&&_0x299c69['add'](_0x3b446e);}else _0x539b9f['is']('element','paragraph')&&_0x539b9f['isEmpty']&&(_0x112c22['removeMarker'](_0x2ba086['name']),_0x1ffcda=!0x0);}}else{if('tablePasteCell'==_0x112c22['subType']){if(!_0x112c22['attributes']||!_0x112c22['attributes']['tablePasteChainId'])continue;const _0x4b5f70=_0x112c22['attributes']['markerAttributes'];if(_0x4b5f70&&Object['keys'](_0x4b5f70)['length'])continue;const _0x4bb53b=_0x112c22['attributes']['tablePasteChainId'];let _0x21be96=!0x0,_0x5c1e04=!0x0;for(const _0x25bf6d of _0x4e6b0f)if(_0x25bf6d['subType']&&_0x25bf6d['subType']['startsWith']('tablePaste')){if(!_0x25bf6d['attributes']['tablePasteChainId']){_0x5c1e04=!0x1;break;}if(_0x25bf6d['id']!=_0x112c22['id']&&_0x25bf6d['attributes']['tablePasteChainId']==_0x4bb53b){_0x21be96=!0x1;break;}}_0x5c1e04&&_0x21be96&&(_0x112c22['removeMarkers'](),_0x1ffcda=!0x0);}}for(const _0x190d27 of _0x4ca82b)_0x33b60a['remove'](_0x190d27);for(const _0x2308eb of _0x299c69)_0x33b60a['unwrap'](_0x2308eb);return _0x1ffcda;}),_0x129b0e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2acb13=>_0x3aebbf(_0x2acb13),'converterPriority':'high'}),_0x129b0e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x27aa7e,_0x2089f7)=>_0x2089f7['options']['showSuggestionHighlights']?_0x3aebbf(_0x27aa7e,!0x1):null,'converterPriority':'high'});const _0x161357=_0x129b0e['editing']['view'];this['listenTo'](_0x161357['document'],'clipboardOutput',(_0x4767f5,_0x3ca8bb)=>{const _0xaada4=[];for(const _0x2bc1da of _0x161357['createRangeIn'](_0x3ca8bb['content'])['getItems']())_0x2bc1da['is']('element','suggestion-td')&&_0xaada4['push'](_0x2bc1da);_0x161357['change'](_0x27d9cb=>{for(const _0x367f69 of _0xaada4)_0x27d9cb['move'](_0x27d9cb['createRangeIn'](_0x367f69),_0x27d9cb['createPositionBefore'](_0x367f69)),_0x27d9cb['remove'](_0x367f69);});});}}function Oe(_0x47602f){if(_0x47602f['isEmpty'])return!0x0;const _0x366d98=_0x47602f['getChild'](0x0);return _0x366d98['is']('element','paragraph')&&_0x366d98['isEmpty'];}function Ue(_0x49ac3b,_0x3b3094={},_0x286263){for(const {isAnchor:_0x52670d,cellHeight:_0x18205b,cellWidth:_0x4f04a1}of _0x286263['createTableWalker'](_0x49ac3b,{'includeAllSlots':!0x0,..._0x3b3094}))if(!_0x52670d||0x1!=_0x18205b||0x1!=_0x4f04a1)return!0x1;return!0x0;}class $t extends _0x3e269d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x11fd02=this['editor']['plugins']['get']('TrackChangesEditing');_0x11fd02['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x11fd02['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x11fd02['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11fd02['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x11fd02['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x11fd02['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2b0dab,_0xa60b8c){const _0x13ccf3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a1664=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x28dbad=_0xa60b8c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x595c9d=_0x1a1664['getColumnGroupElement'](_0x28dbad);let _0x58e8a9=_0x595c9d?_0x1a1664['getTableColumnsWidths'](_0x595c9d):null,_0x4c35fc=_0x28dbad['getAttribute']('tableWidth')||null;const _0x4ab78a=_0xa60b8c['tableWidth']||_0x4c35fc,_0x35938c=_0xa60b8c['columnWidths']||_0x58e8a9,_0x468d4d=this['editor']['plugins']['get']('Users')['me'];for(const _0x321d6d of _0x13ccf3['getSuggestions']()){const _0x13b598=_0x321d6d['getContainedElement']();if('resizeTable'===_0x321d6d['subType']&&_0x13b598===_0x28dbad){_0x321d6d['author']!==_0x468d4d&&_0x321d6d['discard']();const _0x415771=_0x321d6d['data']['commandParams'];_0x4c35fc=_0x415771[0x0]['tableWidth'],_0x58e8a9=_0x415771[0x0]['columnWidths'];break;}}_0x2b0dab({'table':_0x28dbad,'tableWidth':_0x4ab78a,'columnWidths':_0x35938c}),_0x13ccf3['markBlockFormat'](_0x28dbad,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4c35fc,'columnWidths':_0x58e8a9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x426944){if('formatBlock'!=_0x426944['type']&&'formatInline'!=_0x426944['type'])return;const {data:_0x275ac8}=_0x426944;if(_0x275ac8&&'resizeTable'===_0x275ac8['formatGroupId']){const _0x522e55='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x522e55)};}}}class Bt extends _0x3e269d{['afterInit'](){const _0x386fde=this['editor'];_0x386fde['plugins']['has']('Template')&&_0x386fde['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3e269d{['afterInit'](){const _0x1900a6=this['editor'];if(!_0x1900a6['commands']['get']('insertTableOfContents'))return;_0x1900a6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xdb489d=_0x1900a6['plugins']['get']('TrackChangesEditing'),_0x3034dc=_0x1900a6['locale'];_0xdb489d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x418d16=>c(_0x3034dc,'ELEMENT_TABLE_OF_CONTENTS',_0x418d16));}}class Rt extends _0x3e269d{['afterInit'](){const _0x1d752d=this['editor'];if(!_0x1d752d['plugins']['has']('Title'))return;const _0x4c69cf=_0x1d752d['plugins']['get']('TrackChangesEditing');_0x4c69cf['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1d752d['locale'],'ELEMENT_TITLE')),_0x1d752d['model']['document']['registerPostFixer'](_0x213268=>{let _0x1f758a=!0x1;const _0x5e2d95=Array['from'](_0x1d752d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb348f5,data:_0x19be4a}of _0x5e2d95){const {group:_0x3b4a85}=_0x4c69cf['_splitMarkerName'](_0xb348f5);if('suggestion'!==_0x3b4a85||!_0x19be4a['newRange'])continue;const _0x50fe2c=_0x19be4a['newRange'],_0x5c6367=_0x50fe2c['end']['nodeBefore'];if(!_0x5c6367||!_0x5c6367['is']('element','title-content'))continue;if(!_0x50fe2c['start']['isTouching'](_0x50fe2c['end']))continue;const _0x5ec658=_0x1d752d['model']['schema']['getNearestSelectionRange'](_0x50fe2c['end'],'forward');if(_0x5ec658&&_0x5ec658['isCollapsed']){const _0x394e36=_0x213268['createRange'](_0x50fe2c['start'],_0x5ec658['start']);_0x394e36['isEqual'](_0x50fe2c)||(_0x213268['updateMarker'](_0xb348f5,{'range':_0x394e36}),_0x1f758a=!0x0);}_0x1f758a||(_0x213268['removeMarker'](_0xb348f5),_0x1f758a=!0x0);}return _0x1f758a;});}}class xt extends _0x3e269d{['afterInit'](){const _0x1cc04d=this['editor'],_0x13d721=_0x1cc04d['plugins']['get']('TrackChangesEditing');_0x1cc04d['plugins']['has']('Uploadcare')&&(_0x13d721['enableCommand']('uploadcare'),_0x1cc04d['plugins']['has']('UploadcareImageEdit')&&(_0x13d721['enableCommand']('uploadcareImageEdit'),_0x13d721['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x13d721['registerBlockAttribute']('uploadcareImageId'),_0x13d721['descriptionFactory']['registerDescriptionCallback'](_0x1fb863=>{if('attribute'!=_0x1fb863['type'])return;const {data:_0x3f7334}=_0x1fb863;return _0x3f7334&&'uploadcareImageId'==_0x3f7334['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x3e269d{['afterInit'](){const _0x274be9=this['editor'],_0x493edb=_0x274be9['plugins']['get']('TrackChangesEditing');_0x274be9['plugins']['has']('UndoEditing')&&(_0x493edb['enableCommand']('undo'),_0x493edb['enableCommand']('redo'));}}class Et extends _0x3e269d{static get['requires'](){return[Ct];}['afterInit'](){const _0x13d571=this['editor'];if(!_0x13d571['plugins']['has']('TableCaptionEditing'))return;_0x13d571['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x3e269d{['tableProperties'];['tableCellProperties'];constructor(_0x4b25f2){super(_0x4b25f2),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 _0x554970=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x443e46 of this['tableProperties'])_0x554970['enableCommand'](_0x443e46,(_0x4b63ed,_0x27e7b3)=>{const _0x323181=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x443e46,[_0x323181],this['tableProperties'],'tableProperties',_0x4b63ed,_0x27e7b3);});_0x554970['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x554970['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x554970['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ca3ae,_0x1d10a2)=>this['handleDiscardAction'](this['tableProperties'],_0x2ca3ae,_0x1d10a2)),_0x554970['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5660e6 of this['tableCellProperties'])_0x554970['enableCommand'](_0x5660e6,(_0x2d3e31,_0x1c125b)=>{const _0x527381=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5660e6,_0x527381,this['tableCellProperties'],'tableCellProperties',_0x2d3e31,_0x1c125b);});_0x554970['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x554970['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x554970['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xd552c7,_0x1cdfe4)=>this['handleDiscardAction'](this['tableCellProperties'],_0xd552c7,_0x1cdfe4)),_0x554970['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x554970['descriptionFactory']['registerDescriptionCallback'](_0x108413=>this['handleSuggestionDescription'](_0x108413));}['_handlePropertyChange'](_0x4995ea,_0x578b02,_0x393168,_0x37b6a5,_0x5b0b72,_0x38d087){const _0x2b6da9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x38d087['batch'],()=>{for(const _0x276f6b of _0x578b02){if(this['_getSuggestion'](_0x276f6b,_0x37b6a5))_0x5b0b72(_0x38d087);else{const _0x18c61a={};for(const _0x187a75 of _0x393168){const _0x278898=_0x276f6b['getAttribute'](_0x187a75);void 0x0!==_0x278898&&(_0x18c61a[_0x187a75]=_0x278898);}_0x5b0b72(_0x38d087),_0x2b6da9['markBlockFormat'](_0x276f6b,{'commandParams':[_0x18c61a]},[],_0x37b6a5);}}});}['handleDiscardAction'](_0x4e00a1,_0x1cb507,_0x476b69){const _0x2401ed=_0x1cb507[0x0]['start']['nodeAfter'],_0x1e5664=_0x476b69['commandParams'][0x0];this['editor']['model']['change'](_0x28ae03=>{for(const _0x22a3e2 of _0x4e00a1)void 0x0!==_0x1e5664[_0x22a3e2]?_0x28ae03['setAttribute'](_0x22a3e2,_0x1e5664[_0x22a3e2],_0x2401ed):_0x28ae03['removeAttribute'](_0x22a3e2,_0x2401ed);});}['handleSuggestionDescription'](_0x42ffff){if(_0x42ffff['data'])switch(_0x42ffff['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'](_0x773a6a,_0x531cf6){const _0x56aa98=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x45b682 of _0x56aa98['getSuggestions']({'skipNotAttached':!0x0})){const _0x3edc6a=_0x45b682['getContainedElement']();if(_0x45b682['subType']===_0x531cf6&&_0x3edc6a===_0x773a6a)return _0x45b682;}return null;}}const u='$elementName';class p extends _0x3e269d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5ec89e,_0x588ec7,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(_0x2b06ff){super(_0x2b06ff),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2b993,_0x5dd793,_0x3a0de6,_0x3c8489)=>{this['_model']['change'](()=>{for(const _0x4d7453 of[..._0x3c8489,..._0x3a0de6])this['_model']['markers']['has'](_0x4d7453)&&_0x2b06ff['editing']['reconvertMarker'](_0x4d7453);});}),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']=_0x2b06ff['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(),_0x2b06ff['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2b06ff['config']['get']('trackChanges.trackFormatChanges'),_0x2b06ff['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2b06ff['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2b06ff,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3b0ab3=this['editor'],_0x48c363=(_0x2d3e63,_0x377967)=>{if('attribute'!=_0x2d3e63)return'ck-suggestion-marker-'+_0x2d3e63;const _0x596df7=_0x377967['split']('|')[0x0];return this['_isBlockAttribute'](_0x596df7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3b0ab3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x54a28d=>{const {id:_0x418e54,authorId:_0x369190,type:_0x29485d,subType:_0x426151}=this['_splitMarkerName'](_0x54a28d['markerName']),_0x42b2df=['ck-suggestion-marker',_0x48c363(_0x29485d,_0x426151)];let _0x227879=0xbb8;return this['activeMarkers']['includes'](_0x54a28d['markerName'])&&(_0x42b2df['push']('ck-suggestion-marker--active'),_0x227879=0xbc2),'deletion'==_0x29485d&&(_0x227879+=0x5),{'classes':_0x42b2df,'attributes':{'data-suggestion':_0x418e54,'data-author-id':_0x369190},'priority':_0x227879};}}),_0x3b0ab3['conversion']['for']('dataDowncast')['add'](_0x1448fc=>{_0x1448fc['on']('addMarker:suggestion',(_0x3d4f79,_0x2d451e,_0x2acf48)=>{if(!_0x2acf48['options']['showSuggestionHighlights'])return;const _0x5433f1=_0x2d451e['item'];if(!_0x5433f1)return;const _0x3ee9a6=_0x2acf48['mapper']['toViewElement'](_0x5433f1);_0x3b0ab3['model']['schema']['isObject'](_0x5433f1)&&_0x3ee9a6&&!_0x3ee9a6['getCustomProperty']('widget')&&_0x3ee9a6['is']('containerElement')&&_0x5f1acc(_0x3ee9a6,_0x2acf48['writer']);},{'priority':'high'});}),_0x3b0ab3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1da57a,_0x434a1d)=>{if(!_0x434a1d['options']['showSuggestionHighlights'])return null;const {type:_0x4bc3b1,subType:_0x59fffc}=this['_splitMarkerName'](_0x1da57a['markerName']);return{'classes':['ck-suggestion-marker',_0x48c363(_0x4bc3b1,_0x59fffc)],'priority':0xbb8};}});const _0x5e31c7=({showActiveMarkers:_0x3dfb1c=!0x0,isAttributeSuggestion:_0xcaad2b=!0x1}={})=>(_0x5bf8dc,_0x58fb09,_0x402e7e)=>{if(!_0x58fb09['item'])return;const {id:_0x5c8483,authorId:_0xfc5719}=this['_splitMarkerName'](_0x58fb09['markerName']);if(_0xcaad2b){const _0x20dace=this['_suggestions']['get'](_0x5c8483),_0x47142d=this['_getAttributeKey'](_0x20dace);if(!this['_isBlockAttribute'](_0x47142d))return;}if(_0x58fb09['item']['is']('selection'))return void _0x402e7e['consumable']['consume'](_0x58fb09['item'],_0x5bf8dc['name']);const _0xb6d7e3=_0x402e7e['mapper']['toViewElement'](_0x58fb09['item']);if(_0x58fb09['item']['is']('element')&&_0x3b0ab3['model']['schema']['isBlock'](_0x58fb09['item'])&&!_0xb6d7e3['getCustomProperty']('addHighlight')){_0x402e7e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xb6d7e3),_0x402e7e['writer']['setAttribute']('data-suggestion',_0x5c8483,_0xb6d7e3),_0x402e7e['writer']['setAttribute']('data-author-id',_0xfc5719,_0xb6d7e3),_0x402e7e['mapper']['bindElementToMarker'](_0xb6d7e3,_0x58fb09['markerName']),_0x3dfb1c&&(this['activeMarkers']['includes'](_0x58fb09['markerName'])?_0x402e7e['writer']['addClass']('ck-suggestion-marker--active',_0xb6d7e3):_0x402e7e['writer']['removeClass']('ck-suggestion-marker--active',_0xb6d7e3));for(const _0xe7b238 of _0x3b0ab3['model']['createRangeIn'](_0x58fb09['item'])['getItems']())_0x402e7e['consumable']['consume'](_0xe7b238,_0x5bf8dc['name']);_0x402e7e['consumable']['consume'](_0x58fb09['item'],_0x5bf8dc['name']);}};_0x3b0ab3['conversion']['for']('dataDowncast')['add'](_0xe428f8=>{_0xe428f8['on']('addMarker:suggestion:formatBlock',(_0x33b9eb,_0x4a2c39,_0x5b4422)=>{_0x5b4422['options']['showSuggestionHighlights']&&_0x5e31c7({'showActiveMarkers':!0x1})(_0x33b9eb,_0x4a2c39,_0x5b4422);},{'priority':'highest'});}),_0x3b0ab3['conversion']['for']('dataDowncast')['add'](_0x257740=>{_0x257740['on']('addMarker:suggestion:attribute',(_0x4fe65b,_0x41460c,_0x2f68ef)=>{_0x2f68ef['options']['showSuggestionHighlights']&&_0x5e31c7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4fe65b,_0x41460c,_0x2f68ef);},{'priority':'highest'});}),_0x3b0ab3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3a1530,_0x4597e2)=>_0x4597e2['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3a1530['substr'](0xb)}}),_0x3b0ab3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39b48c,{writer:_0x5699c8})=>{let _0x44156c='suggestion:'+_0x39b48c['getAttribute']('suggestion-type')+':'+_0x39b48c['getAttribute']('id');return _0x39b48c['getAttribute']('marker-count')&&(_0x44156c+=':'+_0x39b48c['getAttribute']('marker-count')),_0x5699c8['createElement']('$marker',{'data-name':_0x44156c});}}),_0x3b0ab3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3b0ab3['conversion']['for']('editingDowncast')['add'](_0x20a790=>{_0x20a790['on']('addMarker:suggestion:formatBlock',_0x5e31c7(),{'priority':'high'});}),_0x3b0ab3['conversion']['for']('editingDowncast')['add'](_0x20947e=>{_0x20947e['on']('addMarker:suggestion:attribute',_0x5e31c7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3b0ab3['conversion']['for']('editingDowncast')['add'](_0x321973=>{_0x321973['on']('removeMarker:suggestion:formatBlock',(_0x3f93cd,_0x41e440,_0x3baf61)=>{const _0x3d5ed6=_0x3baf61['mapper']['markerNameToElements'](_0x41e440['markerName']);if(_0x3d5ed6){for(const _0x21a010 of _0x3d5ed6)_0x21a010['getCustomProperty']('addHighlight')||(_0x3baf61['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x21a010),_0x3baf61['writer']['removeAttribute']('data-suggestion',_0x21a010),_0x3baf61['writer']['removeAttribute']('data-author-id',_0x21a010),_0x3baf61['mapper']['unbindElementFromMarkerName'](_0x21a010,_0x41e440['markerName']));}},{'priority':'high'});}),_0x3b0ab3['conversion']['for']('editingDowncast')['add'](_0x186b32=>{_0x186b32['on']('removeMarker:suggestion:attribute',(_0x363470,_0x1fd262,_0x33ddf7)=>{const _0x249585=_0x33ddf7['mapper']['markerNameToElements'](_0x1fd262['markerName']);if(!_0x249585)return;const {id:_0x37d960}=this['_splitMarkerName'](_0x1fd262['markerName']),_0x7339b9=this['_suggestions']['get'](_0x37d960),_0x2fe237=this['_getAttributeKey'](_0x7339b9);if(this['_isBlockAttribute'](_0x2fe237)){for(const _0x206533 of _0x249585)_0x206533['getCustomProperty']('addHighlight')||(_0x33ddf7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x206533),_0x33ddf7['writer']['removeAttribute']('data-suggestion',_0x206533),_0x33ddf7['writer']['removeAttribute']('data-author-id',_0x206533),_0x33ddf7['mapper']['unbindElementFromMarkerName'](_0x206533,_0x1fd262['markerName']));}},{'priority':'high'});}),_0x3b0ab3['model']['document']['registerPostFixer'](_0x55d52c=>{let _0x4eedf6=!0x1;const _0x40f5bf=Array['from'](_0x3b0ab3['model']['document']['differ']['getChangedMarkers']()),_0x29358a=new Set();for(const {name:_0x40543d,data:_0x3c1c05}of _0x40f5bf){const {group:_0x2c7688,type:_0x402d50,subType:_0x3e7e02,id:_0x477702}=this['_splitMarkerName'](_0x40543d);if('suggestion'!==_0x2c7688)continue;const _0x42bebc=this['_suggestions']['get'](_0x477702);if(null!=_0x3c1c05['newRange']){'formatInline'==_0x402d50&&(_0x4eedf6=_0x4eedf6||Lt(_0x3c1c05['newRange'],_0x40543d,_0x55d52c,_0x3b0ab3['model']['schema']));const _0x3f04a0='attribute'==_0x402d50&&this['_isBlockAttribute'](_0x3e7e02['split']('|')[0x0]);if(_0x3c1c05['newRange']['isCollapsed']||'$graveyard'==_0x3c1c05['newRange']['root']['rootName']||'formatBlock'==_0x402d50&&!Kt(_0x3c1c05['newRange'])||_0x3f04a0&&!Kt(_0x3c1c05['newRange'])||'deletion'==_0x402d50&&!(!Gt(_0xa4f9d6=_0x3c1c05['newRange'])&&!function(_0x1bec71){return _0x1bec71['start']['parent']==_0x1bec71['end']['nodeBefore']&&_0x1bec71['start']['isAtEnd'];}(_0xa4f9d6)))_0x55d52c['removeMarker'](_0x40543d),_0x4eedf6=!0x0;else{if(!_0x42bebc||!_0x42bebc['isInContent'])continue;if(_0x3c1c05['newRange']&&_0x3c1c05['oldRange']&&_0x3c1c05['newRange']['isEqual'](_0x3c1c05['oldRange']))continue;_0x29358a['add'](_0x42bebc);}}}var _0xa4f9d6;return _0x29358a['size']>0x0&&(_0x4eedf6=!!this['_joinWithAdjacentSuggestions'](_0x29358a)||_0x4eedf6),_0x4eedf6;}),_0x3b0ab3['model']['document']['registerPostFixer'](_0x281c4a=>{let _0x5341fc=!0x1;for(const _0x16da55 of _0x3b0ab3['model']['document']['differ']['getChanges']())if('insert'==_0x16da55['type'])for(const _0x20ea1f of this['_suggestions']['values']()){if(_0x20ea1f['isMultiRange']||!_0x20ea1f['isInContent'])continue;const _0x41264d='formatBlock'==_0x20ea1f['type'],_0x56adb8=this['_getAttributeKey'](_0x20ea1f),_0x4e24ab=_0x56adb8&&this['_isBlockAttribute'](_0x56adb8);if(!_0x41264d&&!_0x4e24ab)continue;const _0x15fb32=_0x20ea1f['getFirstRange']();if(_0x15fb32['start']['parent']!=_0x15fb32['end']['parent']&&!_0x15fb32['end']['isAtEnd']){const _0xcc3613=_0x3b0ab3['model']['createPositionAt'](_0x15fb32['start']['nodeAfter'],'end'),_0xa3c764=_0x3b0ab3['model']['createRange'](_0x15fb32['start'],_0xcc3613);_0x281c4a['updateMarker'](_0x20ea1f['getFirstMarker'](),{'range':_0xa3c764}),_0x5341fc=!0x0;}}return _0x5341fc;}),_0x3b0ab3['model']['document']['registerPostFixer'](_0xefc114=>this['_processAttributeChanges'](_0xefc114)),_0x3b0ab3['model']['document']['registerPostFixer'](_0x3b57ca=>!_0x3b57ca['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3b57ca)),_0x3b0ab3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3b0ab3['model']['document']['on']('change:data',(_0x7e2982,_0x59c9dd)=>{if(!_0x59c9dd['isLocal']||_0x59c9dd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x58de0a=_0x3b0ab3['model']['document']['differ']['getChanges']();if(0x0==_0x58de0a['length'])return;const _0x18330f=[],_0x30238a=_0x58de0a['filter'](_0x38aad7=>'attribute'==_0x38aad7['type']),_0x54af14=_0x58de0a['filter'](_0x1e9f37=>'insert'==_0x1e9f37['type']&&'$text'!=_0x1e9f37['name']);for(const _0x42fa11 of _0x30238a)this['_isRegisteredAttribute'](_0x42fa11['attributeKey'])&&_0x18330f['push']({'key':_0x42fa11['attributeKey'],'newValue':_0x42fa11['attributeNewValue'],'oldValue':_0x42fa11['attributeOldValue'],'range':Ht(_0x42fa11['range'],_0x3b0ab3['model'])});for(const _0x37dd00 of _0x54af14){if('rename'!=_0x37dd00['action']&&'refresh'!=_0x37dd00['action'])continue;const _0x301df5=qt(_0x37dd00['position']['nodeAfter'],_0x3b0ab3['model']),_0x3a91cd=_0x37dd00['before'];'rename'==_0x37dd00['action']&&_0x18330f['push']({'key':u,'newValue':_0x37dd00['name'],'oldValue':_0x3a91cd['name'],'range':_0x301df5});for(const [_0x26f1b4,_0x526999]of _0x3a91cd['attributes']){if(!this['_isRegisteredAttribute'](_0x26f1b4))continue;const _0xe72487=_0x37dd00['attributes']['get'](_0x26f1b4);_0x526999!==_0xe72487&&_0x18330f['push']({'key':_0x26f1b4,'newValue':_0xe72487,'oldValue':_0x526999,'range':_0x301df5});}for(const [_0x2d9df6,_0x157735]of _0x37dd00['attributes'])this['_isRegisteredAttribute'](_0x2d9df6)&&(_0x3a91cd['attributes']['has'](_0x2d9df6)||_0x18330f['push']({'key':_0x2d9df6,'newValue':_0x157735,'oldValue':null,'range':_0x301df5}));}0x0!=_0x18330f['length']&&_0x3b0ab3['model']['enqueueChange'](_0x59c9dd,_0x3abc57=>{const _0x24bab5=_0x3c1a26();for(const {range:_0x56f335,key:_0x9f98ef,oldValue:_0x32dec4,newValue:_0x5352d0}of _0x18330f)this['markAttributeChange'](_0x56f335,_0x9f98ef,_0x32dec4,_0x5352d0,{'groupId':_0x24bab5});this['_reduceExistingSuggestions'](_0x3abc57,_0x18330f);});},{'priority':'lowest'}),_0x3b0ab3['model']['markers']['on']('update:suggestion',(_0x377a65,_0x92c6b7,_0x8af3a7)=>{if(null==_0x8af3a7){const {id:_0x1384e9}=this['_splitMarkerName'](_0x92c6b7['name']),_0x1e1ed9=this['_suggestions']['get'](_0x1384e9);_0x1e1ed9&&_0x1e1ed9['addMarkerName'](_0x92c6b7['name']);}}),_0x3b0ab3['model']['document']['on']('change:data',()=>{const _0x4e52f8=Array['from'](_0x3b0ab3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x583a93=>'suggestion'===this['_splitMarkerName'](_0x583a93['name'])['group']);if(0x0===_0x4e52f8['length'])return;_0x4e52f8['sort']((_0x1d2fdb,_0x40e498)=>{const _0xf1d21=_0x1d2fdb['data']['oldRange'],_0x4bc480=_0x40e498['data']['oldRange'];return null===_0xf1d21&&null===_0x4bc480?0x0:null===_0xf1d21&&null!==_0x4bc480?-0x1:null!==_0xf1d21&&null===_0x4bc480?0x1:_0xf1d21['start']['isBefore'](_0x4bc480['start'])?-0x1:0x1;});const _0x1a9bf9=new Set(),_0x4727d7=new Set();for(const {name:_0x38365c,data:_0x571dc2}of _0x4e52f8){const {id:_0x40474d}=this['_splitMarkerName'](_0x38365c);if(null===_0x571dc2['oldRange']){const _0x333b65=this['_handleNewSuggestionMarker'](_0x38365c);_0x4727d7['add'](_0x333b65);}else{const _0x4e6f55=this['_suggestions']['get'](_0x40474d);null!==_0x571dc2['newRange']||_0x4e6f55['isInContent']?(_0x1a9bf9['add'](_0x4e6f55['head']),_0x4727d7['add'](_0x4e6f55)):this['_removeSuggestion'](_0x4e6f55);}}_0x4727d7['size']>0x0&&this['_refreshSuggestionsChain'](_0x4727d7);for(const _0x13059b of _0x1a9bf9)this['fire']('suggestionChanged',_0x13059b);}),_0x3b0ab3['model']['on']('applyOperation',(_0x17684c,_0x3048bc)=>{const _0x15386d=_0x3048bc[0x0];if(!this['_suggestions']['size'])return;if(!_0x15386d['isDocumentOperation'])return;if(_0x15386d['batch']['isUndo']||!_0x15386d['batch']['isLocal'])return;let _0x19fe5e,_0xd00ec6;switch(_0x15386d['type']){case'insert':_0x19fe5e=_0x3b0ab3['model']['createPositionAt'](_0x15386d['position']),_0xd00ec6=_0x19fe5e['getShiftedBy'](_0x15386d['howMany']);break;case'split':_0x19fe5e=_0x3b0ab3['model']['createPositionAt'](_0x15386d['splitPosition']),_0xd00ec6=_0x3b0ab3['model']['createPositionAt'](_0x15386d['moveTargetPosition']);break;case'move':_0x19fe5e=_0x3b0ab3['model']['createPositionAt'](_0x15386d['targetPosition']),_0xd00ec6=_0x19fe5e['getShiftedBy'](_0x15386d['howMany']);break;default:return;}const _0x4f3516=_0x3b0ab3['model']['createRange'](_0x19fe5e,_0xd00ec6);_0x3b0ab3['model']['change'](()=>{for(const {suggestion:_0x209e51,meta:_0x4830d9}of this['_findSuggestions'](_0x4f3516)){if(_0x209e51['isMultiRange'])continue;if('formatInline'==_0x209e51['type'])continue;const _0x189c4f=this['_getAttributeKey'](_0x209e51);if(_0x189c4f&&this['_isBlockAttribute'](_0x189c4f)&&'split'!=_0x15386d['type'])continue;const _0x580b0e=_0x209e51['data']&&_0x209e51['data']['multipleBlocks'];('formatBlock'!=_0x209e51['type']||'split'==_0x15386d['type']&&!_0x580b0e)&&(_0x4830d9['containsRangeInObject']||'insertion'==_0x209e51['type']&&_0x4830d9['isOwn']||_0x209e51['getFirstRange']()['containsRange'](_0x4f3516)&&this['_breakSuggestionMarker'](_0x209e51,_0x19fe5e,_0xd00ec6));}});},{'priority':'lowest'}),_0x3b0ab3['model']['on']('deleteContent',(_0x54f666,_0x5ec46d)=>{const _0x429f85=_0x5ec46d[0x0],_0x3046a9=_0x5ec46d[0x1];if(_0x3046a9&&_0x3046a9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x429f85['isCollapsed'])return;const _0x18909e=_0x3b0ab3['model']['schema'],{start:_0x5db697,end:_0x5db09d}=_0x429f85['getFirstRange'](),_0x343b3f=_0x5db697['nodeAfter']&&_0x18909e['isLimit'](_0x5db697['nodeAfter'])?null:_0x18909e['getNearestSelectionRange'](_0x5db697,'forward'),_0x63855e=_0x5db09d['nodeBefore']&&_0x18909e['isLimit'](_0x5db09d['nodeBefore'])?null:_0x18909e['getNearestSelectionRange'](_0x5db09d,'backward'),_0x378457=_0x3b0ab3['model']['createRange'](_0x343b3f?_0x343b3f['start']:_0x5db697,_0x63855e?_0x63855e['end']:_0x5db09d);_0x3b0ab3['model']['change'](_0x1fe092=>{this['markDeletion'](_0x378457);const _0x193483=_0x3b0ab3['model']['schema']['getNearestSelectionRange'](_0x378457['start']);_0x429f85['is']('documentSelection')?_0x1fe092['setSelection'](_0x193483):_0x429f85['setTo'](_0x193483);}),_0x54f666['stop']();},{'priority':_0x8e3b5a['normal']+0xa}),_0x3b0ab3['model']['on']('insertContent',(_0x4ac098,_0x81a270)=>{const _0x430360=_0x81a270[_0x81a270['length']-0x1];_0x430360&&_0x430360['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3b0ab3['model']['change'](()=>{let _0x4bf43a=_0x3b0ab3['model']['insertContent'](_0x81a270[0x0],_0x81a270[0x1],_0x81a270[0x2],{'forceDefaultExecution':!0x0});if(!_0x4bf43a)return;_0x4ac098['return']=_0x4bf43a['clone']();const _0x1ae602=_0x4bf43a['end']['nodeBefore'],_0x2eeebf=_0x3b0ab3['model']['schema'];_0x1ae602&&_0x2eeebf['isBlock'](_0x1ae602)&&!_0x2eeebf['isObject'](_0x1ae602)&&(_0x4bf43a=_0x3b0ab3['model']['createRange'](_0x4bf43a['start'],_0x3b0ab3['model']['createPositionAt'](_0x1ae602,'end'))),this['markInsertion'](_0x4bf43a);}),_0x4ac098['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3d1dbd=new O(_0x3b0ab3,this['_suggestions']);_0x3b0ab3['commands']['add']('acceptSuggestion',_0x3d1dbd),this['enableCommand']('acceptSuggestion');const _0x259a3a=new R(_0x3b0ab3,this['_suggestions']);_0x3b0ab3['commands']['add']('discardSuggestion',_0x259a3a),this['enableCommand']('discardSuggestion'),_0x3b0ab3['commands']['add']('acceptAllSuggestions',new x(_0x3b0ab3,_0x3d1dbd,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3b0ab3['commands']['add']('discardAllSuggestions',new x(_0x3b0ab3,_0x259a3a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3b0ab3['commands']['add']('acceptSelectedSuggestions',new E(_0x3b0ab3,_0x3d1dbd,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3b0ab3['commands']['add']('discardSelectedSuggestions',new E(_0x3b0ab3,_0x259a3a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1af551=_0x3b0ab3['plugins']['get']('CommentsRepository');this['listenTo'](_0x1af551,'addComment',(_0x17efe2,{threadId:_0x42856f})=>{const _0x212928=this['_suggestions']['get'](_0x42856f);_0x212928&&_0x212928['commentThread']&&0x1===_0x212928['commentThread']['length']&&this['_updateSuggestionData'](_0x42856f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1af551,'removeComment',(_0x494e93,{threadId:_0x5e732c})=>{const _0x37a960=this['_suggestions']['get'](_0x5e732c);_0x37a960&&_0x37a960['commentThread']&&!_0x37a960['commentThread']['length']&&this['_updateSuggestionData'](_0x5e732c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x20b94d){const _0x275da7=_0x5d41c3([0x49,0x33,0x58,0x4e,0x6b,0x7a,0x6d,0x71,0x4c,0x37,0x34,0x42,0x45,0x4d,0x51,0x50,0x56,0x62,0x61,0x30,0x57,0x55,0x69,0x6a,0x52,0x5a,0x6e,0x70,0x65,0x78,0x53,0x59,0x54,0x44,0x31,0x68,0x47,0x38,0x36,0x41,0x63,0x48,0x43,0x73,0x4a,0x67,0x4b,0x75,0x79,0x6f,0x72,0x46,0x77,0x39,0x76,0x4f,0x35,0x6c,0x64,0x66,0x32,0x74]),_0x3fbd2e=0x336a2534,_0x20f7d8=0x336d44dc^_0x3fbd2e,_0x34f2d1=window[_0x5d41c3([0x44,0x61,0x74,0x65])][_0x5d41c3([0x6e,0x6f,0x77])](),_0x116571=_0x20b94d[_0x5d41c3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x564def=new window[(_0x5d41c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x320374=>{_0x116571[_0x5d41c3([0x6f,0x6e,0x63,0x65])](_0x5d41c3([0x72,0x65,0x61,0x64,0x79]),_0x320374);}),_0xaf1e35={[_0x5d41c3([0x6b,0x74,0x79])]:_0x5d41c3([0x45,0x43]),[_0x5d41c3([0x75,0x73,0x65])]:_0x5d41c3([0x73,0x69,0x67]),[_0x5d41c3([0x63,0x72,0x76])]:_0x5d41c3([0x50,0x2d,0x32,0x35,0x36]),[_0x5d41c3([0x78])]:_0x5d41c3([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]),[_0x5d41c3([0x79])]:_0x5d41c3([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]),[_0x5d41c3([0x61,0x6c,0x67])]:_0x5d41c3([0x45,0x53,0x32,0x35,0x36])},_0x23852f=_0x116571[_0x5d41c3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d41c3([0x67,0x65,0x74])](_0x5d41c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5007a7(){let _0x268284,_0x5ecb1d=null,_0x4c7c4c=null;try{if(_0x23852f==_0x5d41c3([0x47,0x50,0x4c]))return _0x5d41c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x268284=_0x25820e(),!_0x268284)return _0x5d41c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x268284[_0x5d41c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c7c4c=_0x51fe66(_0x268284[_0x5d41c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x268284[_0x5d41c3([0x6a,0x74,0x69])])),await _0x17bc29()?_0x419496()?_0x40333a()?_0x5d41c3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29ecd9()?(_0x268284[_0x5d41c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d41c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ecb1d=_0x34a8d3(_0x5d41c3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x268284[_0x5d41c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d41c3([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ecb1d=_0x34a8d3(_0x5d41c3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe927ad()):_0x5d41c3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d41c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d41c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b0c77){return _0x5d41c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40333a(){const _0x7f501c=[_0x5d41c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d41c3([0x74,0x72,0x69,0x61,0x6c])][_0x5d41c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268284[_0x5d41c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34f2d1/0x3e8:0xe10*_0x20f7d8;return _0x268284[_0x5d41c3([0x65,0x78,0x70])]<_0x7f501c;}function _0x419496(){const _0x52c1d8=_0x268284[_0x5d41c3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x52c1d8)return!0x1;if(_0x52c1d8[_0x5d41c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d41c3([0x2a])))return!0x0;if(_0x52c1d8[_0x5d41c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d41c3([0x54,0x43])))return!0x0;if(_0x52c1d8[_0x5d41c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d41c3([0x52,0x54,0x43]))){if(_0xbe8d3())return!0x0;if(_0x567cec()||_0x418901())return!0x0;}return!0x1;}function _0x29ecd9(){const _0x567786=_0x268284[_0x5d41c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x567786||0x0==_0x567786[_0x5d41c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2fbfb6}=new URL(window[_0x5d41c3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x567786[_0x5d41c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fbfb6))return!0x0;const _0x24a3f1=_0x2fbfb6[_0x5d41c3([0x73,0x70,0x6c,0x69,0x74])](_0x5d41c3([0x2e]));return _0x567786[_0x5d41c3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x486917=>_0x486917[_0x5d41c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d41c3([0x2a])))[_0x5d41c3([0x6d,0x61,0x70])](_0x1e5bd7=>_0x1e5bd7[_0x5d41c3([0x73,0x70,0x6c,0x69,0x74])](_0x5d41c3([0x2e])))[_0x5d41c3([0x73,0x6f,0x6d,0x65])](_0x2f66bf=>_0x24a3f1[_0x5d41c3([0x65,0x76,0x65,0x72,0x79])]((_0x5e5f1b,_0x2d4961)=>_0x2f66bf[_0x2d4961]===_0x5e5f1b||_0x2f66bf[_0x2d4961]===_0x5d41c3([0x2a])));}function _0xe927ad(){return _0x5ecb1d&&_0x4c7c4c?new window[(_0x5d41c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4820cd,_0x4724f5)=>{_0x5ecb1d[_0x5d41c3([0x74,0x68,0x65,0x6e])](_0x4820cd,_0x4724f5),_0x4c7c4c[_0x5d41c3([0x74,0x68,0x65,0x6e])](_0x2b659b=>{_0x2b659b!=_0x5d41c3([0x56,0x61,0x6c,0x69,0x64])&&_0x4820cd(_0x2b659b);},_0x4724f5);}):_0x5ecb1d||_0x4c7c4c||_0x5d41c3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51fe66(_0x5c515f,_0x39f3d9){return new window[(_0x5d41c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f24b1=>{if(_0x1a1c01())return _0x5f24b1(_0x5d41c3([0x56,0x61,0x6c,0x69,0x64]));_0x1775fe(),_0x116571[_0x5d41c3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d41c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x297134=!0x1;const _0x427073=_0x3c1a26();function _0x113fac(_0x36f4ce){return!!_0x36f4ce&&(typeof _0x36f4ce===_0x5d41c3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x36f4ce===_0x5d41c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x36f4ce[_0x5d41c3([0x74,0x68,0x65,0x6e])]===_0x5d41c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x36f4ce[_0x5d41c3([0x63,0x61,0x74,0x63,0x68])]===_0x5d41c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46206a(_0x3ad80f){_0xbd9aae(_0x3ad80f)[_0x5d41c3([0x74,0x68,0x65,0x6e])](_0x31009b=>{if(!_0x31009b||_0x31009b[_0x5d41c3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d41c3([0x6f,0x6b]))return _0x5d41c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x76efc3(_0x272ea7(_0x427073+_0x39f3d9))!=_0x31009b[_0x5d41c3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d41c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d41c3([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d41c3([0x74,0x68,0x65,0x6e])](_0xb19ace=>(_0x5a62f5(),_0xb19ace),()=>{const _0xd568ec=_0x3abb43();return null==_0xd568ec?(_0x5a62f5(),_0x5d41c3([0x56,0x61,0x6c,0x69,0x64])):_0x5d41c3(_0x34f2d1-_0xd568ec>(0x1766a134^_0x3fbd2e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d41c3([0x74,0x68,0x65,0x6e])](_0x5f24b1)[_0x5d41c3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f24b1(_0x5d41c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb50579=0x335ccbb4^_0x3fbd2e;function _0x5a62f5(){const _0x5bb713=_0x5d41c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x76efc3(_0x272ea7(_0x5c515f)),_0x362edd=_0x4605d5(_0x76efc3(window[_0x5d41c3([0x4d,0x61,0x74,0x68])][_0x5d41c3([0x63,0x65,0x69,0x6c])](_0x34f2d1/_0xb50579)));window[_0x5d41c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d41c3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bb713,_0x362edd);}function _0x3abb43(){const _0x4af516=_0x5d41c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x76efc3(_0x272ea7(_0x5c515f)),_0x43014b=window[_0x5d41c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d41c3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4af516);return _0x43014b?window[_0x5d41c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4605d5(_0x43014b),0x10)*_0xb50579:null;}function _0xbd9aae(_0xd07d7d){return new window[(_0x5d41c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a3d87,_0xecf657)=>{_0xd07d7d[_0x5d41c3([0x74,0x68,0x65,0x6e])](_0x1a3d87,_0xecf657),window[_0x5d41c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xecf657,0x336bf1f4^_0x3fbd2e);});}}_0x116571[_0x5d41c3([0x6f,0x6e])](_0x5d41c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4aae9a,_0x22618d)=>{if(_0x22618d[0x0]!=_0x5c515f)return _0x5f24b1(_0x5d41c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22618d[0x1]={..._0x22618d[0x1],[_0x5d41c3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x427073};},{[_0x5d41c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d41c3([0x68,0x69,0x67,0x68])}),_0x116571[_0x5d41c3([0x6f,0x6e])](_0x5d41c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1832be=>{_0x113fac(_0x1832be[_0x5d41c3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x297134=!0x0,_0x46206a(_0x1832be[_0x5d41c3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d41c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d41c3([0x6c,0x6f,0x77])}),_0x564def[_0x5d41c3([0x74,0x68,0x65,0x6e])](()=>{_0x297134||_0x5f24b1(_0x5d41c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a1c01(){return _0x116571[_0x5d41c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d41c3([0x76,0x69,0x65,0x77])][_0x5d41c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d41c3([0x61,0x75,0x74,0x6f]);}function _0x1775fe(){_0x116571[_0x5d41c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d41c3([0x76,0x69,0x65,0x77])][_0x5d41c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d41c3([0x61,0x75,0x74,0x6f]);}}function _0x34a8d3(_0x31063d){const _0x3c20e9=[new window[(_0x5d41c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x477d76=>setTimeout(_0x477d76,0x33631bf8^_0x3fbd2e)),_0x564def[_0x5d41c3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d41c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f9448=>{let _0x4ea692=0x0;_0x116571[_0x5d41c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d41c3([0x6f,0x6e])](_0x5d41c3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a4277,_0x6d5f8d)=>{_0x6d5f8d[0x0][_0x5d41c3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ea692++,_0x4ea692==(0x336a24cc^_0x3fbd2e)&&(_0x2f9448(),_0x5a4277[_0x5d41c3([0x6f,0x66,0x66])]());});}))];return window[_0x5d41c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d41c3([0x72,0x61,0x63,0x65])](_0x3c20e9)[_0x5d41c3([0x74,0x68,0x65,0x6e])](()=>_0x31063d);}async function _0x436cdf(){await _0x564def,_0x116571[_0x5d41c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d41c3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b3f5a,_0x116571[_0x5d41c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d41c3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b3f5a,_0x116571[_0x5d41c3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d41c3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbe8d3(){return _0x42928c(_0x5d41c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x126d3b(_0x5d41c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5d41c3([0x73,0x74,0x61,0x74,0x65])]==_0x5d41c3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x567cec(){return _0x42928c(_0x5d41c3([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 _0x418901(){return _0x42928c(_0x5d41c3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x21b912(_0x12397f){const _0x2b6718=_0x4b9f45();_0x116571[_0x2b6718]=_0x5d41c3([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x12397f,_0x12397f!=_0x5d41c3([0x56,0x61,0x6c,0x69,0x64])&&_0x436cdf();}function _0x4b9f45(){const _0x19b9dd=window[_0x5d41c3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d41c3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d41c3([0x6e,0x6f,0x77])]())[_0x5d41c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d41c3([0x2e]),'');let _0x186edd=_0x5d41c3([0x49]);for(let _0x45091b=0x0;_0x45091b<_0x19b9dd[_0x5d41c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45091b+=0x2){let _0x3e157d=window[_0x5d41c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19b9dd[_0x5d41c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45091b,_0x45091b+0x2));_0x3e157d>=_0x275da7[_0x5d41c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e157d-=_0x275da7[_0x5d41c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x186edd+=_0x275da7[_0x3e157d];}return _0x186edd;}function _0x25820e(){const _0x374648=_0x23852f[_0x5d41c3([0x73,0x70,0x6c,0x69,0x74])](_0x5d41c3([0x2e]));if(0x3!=_0x374648[_0x5d41c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xcef034(_0x374648[0x1]);function _0xcef034(_0x4e8a91){const _0x123471=_0x3e507b(_0x4e8a91);return _0x123471&&_0x572934()?_0x123471:null;function _0x572934(){const _0x655e58=_0x123471[_0x5d41c3([0x6a,0x74,0x69])],_0x2f9cd4=window[_0x5d41c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x655e58[_0x5d41c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x655e58[_0x5d41c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x55d7cc={..._0x123471,[_0x5d41c3([0x6a,0x74,0x69])]:_0x655e58[_0x5d41c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x655e58[_0x5d41c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x55d7cc[_0x5d41c3([0x76,0x63])],_0x272ea7(_0x55d7cc)==_0x2f9cd4;}}}async function _0x17bc29(){let _0x51b83a=!0x0;try{const _0x105f06=_0x23852f[_0x5d41c3([0x73,0x70,0x6c,0x69,0x74])](_0x5d41c3([0x2e])),[_0x3dfc3c,_0x377f3b,_0x1f9f58]=_0x105f06;return _0x1a8a4b(_0x3dfc3c),await _0xafb52b(_0x3dfc3c,_0x377f3b,_0x1f9f58),_0x51b83a;}catch(_0x1c0d58){return!0x1;}function _0x1a8a4b(_0x10e8a9){const _0x2d3306=_0x3e507b(_0x10e8a9);_0x2d3306&&_0x2d3306[_0x5d41c3([0x61,0x6c,0x67])]==_0x5d41c3([0x45,0x53,0x32,0x35,0x36])||(_0x51b83a=!0x1);}async function _0xafb52b(_0x5ac29d,_0x4c3fca,_0x9107c9){const _0x220ae4=window[_0x5d41c3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d41c3([0x66,0x72,0x6f,0x6d])](_0x35d251(_0x9107c9),_0x4da86b=>_0x4da86b[_0x5d41c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24351a=new window[(_0x5d41c3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d41c3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ac29d+_0x5d41c3([0x2e])+_0x4c3fca),_0x552306=window[_0x5d41c3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d41c3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x552306)return;const _0x481ce5=await _0x552306[_0x5d41c3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d41c3([0x6a,0x77,0x6b]),_0xaf1e35,{[_0x5d41c3([0x6e,0x61,0x6d,0x65])]:_0x5d41c3([0x45,0x43,0x44,0x53,0x41]),[_0x5d41c3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d41c3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d41c3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x552306[_0x5d41c3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d41c3([0x6e,0x61,0x6d,0x65])]:_0x5d41c3([0x45,0x43,0x44,0x53,0x41]),[_0x5d41c3([0x68,0x61,0x73,0x68])]:{[_0x5d41c3([0x6e,0x61,0x6d,0x65])]:_0x5d41c3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x481ce5,_0x220ae4,_0x24351a)||(_0x51b83a=!0x1);}}function _0x3e507b(_0x458407){return _0x458407[_0x5d41c3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d41c3([0x65,0x79]))?JSON[_0x5d41c3([0x70,0x61,0x72,0x73,0x65])](_0x35d251(_0x458407)):null;}function _0x35d251(_0x3f2e11){return window[_0x5d41c3([0x61,0x74,0x6f,0x62])](_0x3f2e11[_0x5d41c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d41c3([0x2b]))[_0x5d41c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d41c3([0x2f])));}function _0x272ea7(_0x54b959){let _0xa3690d=0x1505;function _0x274003(_0x1aa809){for(let _0x51fcc7=0x0;_0x51fcc7<_0x1aa809[_0x5d41c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51fcc7++){const _0x1b0c59=_0x1aa809[_0x5d41c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x51fcc7);_0xa3690d=(_0xa3690d<<0x5)+_0xa3690d+_0x1b0c59,_0xa3690d&=_0xa3690d;}}function _0x47d4ed(_0x4087f1){Array[_0x5d41c3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4087f1)?_0x4087f1[_0x5d41c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47d4ed):_0x4087f1&&typeof _0x4087f1==_0x5d41c3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d41c3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4087f1)[_0x5d41c3([0x73,0x6f,0x72,0x74])]()[_0x5d41c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x33bc9c,_0x3c43e4])=>{_0x274003(_0x33bc9c),_0x47d4ed(_0x3c43e4);}):_0x274003(window[_0x5d41c3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4087f1));}return _0x47d4ed(_0x54b959),_0xa3690d>>>0x0;}function _0x76efc3(_0x460b8a){return _0x460b8a[_0x5d41c3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d41c3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d41c3([0x30]));}function _0x4605d5(_0x5aa254){return _0x5aa254[_0x5d41c3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d41c3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d41c3([0x6a,0x6f,0x69,0x6e])]('');}function _0x42928c(_0x292408){return _0x116571[_0x5d41c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5d41c3([0x68,0x61,0x73])](_0x292408);}function _0x126d3b(_0xf5775e){return _0x116571[_0x5d41c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5d41c3([0x67,0x65,0x74])](_0xf5775e);}function _0x1b3f5a(){}function _0x5d41c3(_0x22ca69){return _0x22ca69['map'](_0xfa15b0=>String['fromCharCode'](_0xfa15b0))['join']('');}_0x21b912(await _0x5007a7());}(this);}set['adapter'](_0x4af0be){if(this['_adapter'])throw new _0x18e16a('track-changes-adapter-already-set',this);this['_adapter']=_0x4af0be;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x30ce98=!0x1,toJSON:_0x3a4545=!0x1}={}){const _0x4aac28=[];for(const _0x35b3ec of this['_suggestions']['values']())_0x30ce98&&!_0x35b3ec['isInContent']||_0x4aac28['push'](_0x35b3ec);return _0x3a4545?_0x4aac28['map'](_0x5015b6=>_0x5015b6['toJSON']()):_0x4aac28;}['getSuggestion'](_0x109484){const _0x4347c9=this['_suggestions']['get'](_0x109484);if(!_0x4347c9)throw new _0x18e16a('track-changes-suggestion-not-found',this);return _0x4347c9;}['hasSuggestion'](_0x36a8d2){return this['_suggestions']['has'](_0x36a8d2);}['addSuggestionData'](_0x507328){const {authorId:_0x5471b7,id:_0x309ee0,attributes:_0x5a1de7}=_0x507328,[_0x13ebd5,_0x49b6fe]=_0x507328['type']['split'](':'),_0x523e44=this['_suggestions']['get'](_0x309ee0)||this['_createSuggestion'](_0x13ebd5,_0x49b6fe,_0x309ee0,_0x5471b7,_0x5a1de7);if(this['_addThreadToSuggestion'](_0x523e44),this['_checkSuggestionCorrectness'](_0x523e44,_0x13ebd5,_0x49b6fe||null,_0x5471b7),_0x523e44['createdAt']=_0x507328['createdAt'],_0x523e44['_isDataLoaded']=!0x0,_0x5a1de7&&_0x5a1de7['@external']){const _0x5727ad=_0x5a1de7['@external'],_0x319969=this['_getExternalAuthor'](_0x5727ad['authorName']);_0x523e44['authoredAt']=_0x5727ad['createdAt'],_0x523e44['author']=_0x319969,_0x523e44['isExternal']=!0x0;}else _0x523e44['authoredAt']=_0x507328['createdAt'];switch(_0x507328['data']&&(_0x523e44['data']=_0x507328['data']),_0x507328['attributes']&&(_0x523e44['attributes']=_0x507328['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x523e44['_saved']=!0x0),this['_suggestionState']['get'](_0x523e44)){case'notReady':this['_suggestionState']['set'](_0x523e44,'dataReady');break;case'markerReady':_0x523e44['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x523e44])),this['_refreshSuggestionsChain'](new Set([_0x523e44])),this['_suggestionState']['set'](_0x523e44,'ready'),this['fire']('suggestionLoaded',_0x523e44)):this['_suggestionState']['set'](_0x523e44,'removed');}return _0x523e44;}['acceptSuggestion'](_0x434603){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xd2a72e of _0x434603['getAllAdjacentSuggestions']())_0xd2a72e['accept']();});});}['discardSuggestion'](_0x5714a7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1800e1 of _0x5714a7['getAllAdjacentSuggestions']())_0x1800e1['discard']();});});}['enableCommand'](_0x22fa2d,_0x31f9d4){const _0xe72a0f=this['editor']['commands']['get'](_0x22fa2d);if(!_0xe72a0f)throw new _0x18e16a('track-changes-command-not-found',this,{'commandName':_0x22fa2d});if(this['_enabledCommands']['has'](_0xe72a0f))throw new _0x18e16a('track-changes-enable-command-twice',this,{'commandName':_0x22fa2d});this['_enabledCommands']['add'](_0xe72a0f),_0x31f9d4&&_0xe72a0f['on']('execute',(_0x587816,_0x3eba88)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3eba88['length']>0x0&&_0x3eba88[_0x3eba88['length']-0x1]&&_0x3eba88[_0x3eba88['length']-0x1]['forceDefaultExecution']?_0x3eba88['pop']():(_0x587816['return']=_0x31f9d4((..._0x4aa6c9)=>_0xe72a0f['execute'](..._0x4aa6c9,{'forceDefaultExecution':!0x0}),..._0x3eba88),_0x587816['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xa85282){let _0xb18897,_0x6c6719;const _0x158ebd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xb18897=_0xa85282();}catch(_0x3eba1e){_0x6c6719=_0x3eba1e;}return _0x158ebd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x6c6719&&_0x18e16a['rethrowUnexpectedError'](_0x6c6719,this),_0xb18897;}['markInsertion'](_0x5c0b7c,_0x55504a=null,_0x5d7b62={}){if(_0x5c0b7c['isCollapsed'])return null;const _0x5800a8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xc21b8e,meta:_0x42d0e2}of this['_findSuggestions'](_0x5c0b7c,'insertion'))if(_0x42d0e2['isOwn']){if(!_0x42d0e2['isNextTo']){if(_0x42d0e2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0xc21b8e,_0x5d7b62))continue;return _0xc21b8e;}if(Qt(_0xc21b8e,_0x5d7b62))return _0xc21b8e;this['_breakSuggestionMarker'](_0xc21b8e,_0x5c0b7c['start'],_0x5c0b7c['end']);break;}if(_0x55504a==_0xc21b8e['subType']&&Qt(_0xc21b8e,_0x5d7b62)){const _0x4cf9fb=_0xc21b8e['getFirstRange']();return _0x4cf9fb['start']['isEqual'](_0x5c0b7c['end'])?this['_setSuggestionRange'](_0xc21b8e,this['_model']['createRange'](_0x5c0b7c['start'],_0x4cf9fb['end'])):this['_setSuggestionRange'](_0xc21b8e,this['_model']['createRange'](_0x4cf9fb['start'],_0x5c0b7c['end'])),_0xc21b8e;}}const _0x1da504=_0x3c1a26(),_0x286a9c=_0x5800a8['id'],_0x207b87=_0x55504a?'insertion:'+_0x55504a:'insertion',_0x60801d=this['_setSuggestionData']({'id':_0x1da504,'type':_0x207b87,'createdAt':new Date(),'authorId':_0x286a9c,'attributes':_0x5d7b62});return this['_addSuggestionMarker'](_0x207b87,_0x1da504,_0x286a9c,_0x5c0b7c),_0x60801d;}['markMultiRangeInsertion'](_0x1425cc,_0x20eaaa='multi',_0x2456ea={}){const _0x1475a4=this['editor']['plugins']['get']('Users')['me'],_0x3ac42e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x20eaaa,'join');for(const _0x120aee of this['getSuggestions']())if(_0x120aee['author']['id']==_0x1475a4['id']&&'insertion'==_0x120aee['type']&&_0x120aee['subType']==_0x20eaaa&&Qt(_0x120aee,_0x2456ea)&&(_0x3ac42e(_0x120aee['getRanges'](),_0x1425cc)||_0x3ac42e(_0x1425cc,_0x120aee['getRanges']()))){for(const _0x391125 of _0x1425cc)_0x120aee['addRange'](_0x391125);return _0x120aee;}for(const {suggestion:_0x1d4059,meta:_0x5a6754}of this['_findSuggestions'](_0x1425cc,'insertion')){if(!_0x5a6754['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a6754['containsRangeInObject'])continue;if(!Qt(_0x1d4059,_0x2456ea))continue;let _0x36fe9b=!0x0;for(const _0xe752cf of _0x1d4059['getRanges']())for(const _0x38a696 of _0x1425cc)if(!_0xe752cf['containsRange'](_0x38a696)){_0x36fe9b=!0x1;break;}if(_0x36fe9b)return _0x1d4059;}const _0x526559=_0x3c1a26(),_0x57fe2e=_0x1475a4['id'],_0x163f17='insertion:'+_0x20eaaa,_0x5ff2c9=this['_setSuggestionData']({'id':_0x526559,'type':_0x163f17,'createdAt':new Date(),'authorId':_0x57fe2e,'attributes':_0x2456ea});for(const _0x5479ac of _0x1425cc)this['_addSuggestionMarker'](_0x163f17,_0x526559,_0x57fe2e,_0x5479ac,o['getMultiRangeId']());return _0x5ff2c9;}['markInlineFormat'](_0x3c9071,_0x372961,_0x22fbb6=null,_0x2a91e3={}){if(_0x22fbb6=_0x22fbb6||Jt(_0x372961),_0x3c9071['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x58bc8e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x22fbb6,'accept');return this['forceDefaultExecution'](()=>_0x58bc8e([_0x3c9071],_0x372961,_0x2a91e3)),null;}const _0x299f4f=this['editor']['plugins']['get']('Users')['me'],_0x429014=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5bdd9b,meta:_0xfe405c}of this['_findSuggestions'](_0x3c9071,'insertion'))_0xfe405c['isOwn']&&!_0xfe405c['isInsideObject']&&_0x429014['push'](..._0x5bdd9b['getRanges']());}const _0x466c3d=function(_0x1efe58,_0x3d9aa7){const _0x2bc94b=[];for(const _0x29f05e of _0x3d9aa7){const _0x325b2a=_0x1efe58['getIntersection'](_0x29f05e);_0x325b2a&&_0x2bc94b['push'](_0x325b2a);}return _0x2bc94b;}(_0x3c9071,_0x429014),_0xd5f8f7=function(_0x2dd41a,_0x293e76){const _0x28a023=[_0x2dd41a];for(const _0x5cd418 of _0x293e76){let _0x227ec9=0x0;for(;_0x227ec9<_0x28a023['length'];){const _0x36a2d6=_0x28a023[_0x227ec9]['getDifference'](_0x5cd418);_0x28a023['splice'](_0x227ec9,0x1,..._0x36a2d6),_0x227ec9+=_0x36a2d6['length'];}}return _0x28a023;}(_0x3c9071,_0x429014);_0x466c3d['length']&&this['_model']['change'](()=>{for(const _0x320063 of _0x466c3d){const _0x598853=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x22fbb6,'accept');this['forceDefaultExecution'](()=>_0x598853([_0x320063],_0x372961,_0x2a91e3));}});for(const _0x17c6d0 of _0xd5f8f7){let _0x387b20=null,_0x231fc2=_0x17c6d0['start'],_0xb46ad0=_0x17c6d0['end'];for(const {suggestion:_0x4df261,meta:_0x3c2e3f}of this['_findSuggestions'](_0x17c6d0,'formatInline')){if(!_0x3c2e3f['isOwn'])continue;if(_0x4df261['subType']!=_0x22fbb6)continue;if(!Qt(_0x4df261,_0x2a91e3))continue;const _0x32b209=_0x4df261['getFirstRange']();if(_0x32b209['containsRange'](_0x17c6d0,!0x0))return null;_0x231fc2=_0x231fc2['isBefore'](_0x32b209['start'])?_0x231fc2:_0x32b209['start'],_0xb46ad0=_0xb46ad0['isAfter'](_0x32b209['end'])?_0xb46ad0:_0x32b209['end'],_0x387b20?_0x32b209['start']['isBefore'](_0x387b20['getFirstRange']()['start'])?(_0x387b20['removeMarkers'](),_0x387b20=_0x4df261):_0x4df261['removeMarkers']():_0x387b20=_0x4df261;}const _0x38ec28=this['_model']['createRange'](_0x231fc2,_0xb46ad0);if(_0x387b20)this['_setSuggestionRange'](_0x387b20,_0x38ec28);else{const _0x338a82=_0x3c1a26(),_0x17fbd5=_0x299f4f['id'];this['_setSuggestionData']({'id':_0x338a82,'type':'formatInline:'+_0x22fbb6,'data':_0x372961,'createdAt':new Date(),'authorId':_0x17fbd5,'attributes':_0x2a91e3}),this['_addSuggestionMarker']('formatInline:'+_0x22fbb6,_0x338a82,_0x17fbd5,_0x38ec28);}}return null;}['markBlockFormat'](_0x2a8880,_0x36ad6c,_0x1837d3=[],_0x470985=null,_0x356643={}){_0x36ad6c['formatGroupId']||(_0x36ad6c['formatGroupId']=_0x36ad6c['commandName']),_0x36ad6c['multipleBlocks']=_0x2a8880['is']('range'),_0x470985=_0x470985||Jt(_0x36ad6c);const _0x427012=_0x1837d3['map'](_0x5e4f8d=>qt(_0x5e4f8d,this['_model'])),_0x5b3697=_0x2a8880['is']('range')?_0x2a8880:qt(_0x2a8880,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3ed646=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x470985,'accept');return this['forceDefaultExecution'](()=>_0x3ed646([_0x5b3697],_0x36ad6c,_0x356643)),null;}_0x427012['push'](_0x5b3697);let _0x8ae519=!0x0;for(const _0x2af1e0 of _0x427012)if(!this['_rangeIsInLocalUserInsertion'](_0x2af1e0)){_0x8ae519=!0x1;break;}if(_0x8ae519&&'always'!==this['_trackFormatChanges']){const _0x1372b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x470985,'accept');return this['forceDefaultExecution'](()=>_0x1372b1([_0x5b3697],_0x36ad6c,_0x356643)),null;}let _0x183037=null,_0x2bbc6a=_0x5b3697['start'],_0x4fc892=_0x5b3697['end'];for(const {suggestion:_0x37abff,meta:_0x110bef}of this['_findSuggestions'](_0x5b3697,'formatBlock')){if(!_0x110bef['isOwn'])continue;if(_0x110bef['isNextTo']||_0x110bef['containsRangeInObject']||_0x110bef['isInsideObject'])continue;if(_0x37abff['data']['formatGroupId']!=_0x36ad6c['formatGroupId'])continue;if(!Qt(_0x37abff,_0x356643))continue;const _0x31d2b5=_0x37abff['getFirstRange']();if(_0x37abff['subType']==_0x470985){if(_0x31d2b5['containsRange'](_0x5b3697,!0x0))return null;_0x2bbc6a=_0x2bbc6a['isBefore'](_0x31d2b5['start'])?_0x2bbc6a:_0x31d2b5['start'],_0x4fc892=_0x4fc892['isAfter'](_0x31d2b5['end'])?_0x4fc892:_0x31d2b5['end'],_0x183037?_0x31d2b5['start']['isBefore'](_0x183037['getFirstRange']()['start'])?(_0x183037['removeMarkers'](),_0x183037=_0x37abff):_0x37abff['removeMarkers']():_0x183037=_0x37abff;}else{const _0x2c0510=_0x5b3697['getIntersection'](_0x31d2b5);this['_cutOutSuggestionMarker'](_0x37abff,_0x2c0510);}}const _0x25f28a=this['editor']['plugins']['get']('Users')['me'],_0x5dab56=_0x3c1a26(),_0x4ab3fa=_0x25f28a['id'];if(_0x183037)return this['_setSuggestionRange'](_0x183037,this['_model']['createRange'](_0x2bbc6a,_0x4fc892)),_0x183037;{const _0x3ae856=this['_setSuggestionData']({'id':_0x5dab56,'type':'formatBlock:'+_0x470985,'data':_0x36ad6c,'createdAt':new Date(),'authorId':_0x4ab3fa,'attributes':_0x356643});return this['_addSuggestionMarker']('formatBlock:'+_0x470985,_0x5dab56,_0x4ab3fa,this['_model']['createRange'](_0x2bbc6a,_0x4fc892)),_0x3ae856;}}['markMultiRangeBlockFormat'](_0x270781,_0x39ec09,_0xeb2053=[],_0x30e2c5=null,_0x377db8={}){_0x39ec09['formatGroupId']||(_0x39ec09['formatGroupId']=_0x39ec09['commandName']);const _0x5bd750=_0x270781[0x0];_0x39ec09['multipleBlocks']=_0x5bd750['is']('range'),_0x30e2c5=_0x30e2c5||Jt(_0x39ec09);const _0x31eeac=_0xeb2053['map'](_0x19399=>qt(_0x19399,this['_model'])),_0x5155c6=_0x5bd750['is']('range')?_0x270781:_0x270781['map'](_0x717fee=>qt(_0x717fee,this['_model']));if('never'===this['_trackFormatChanges']){const _0x286278=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30e2c5,'accept');return this['forceDefaultExecution'](()=>_0x286278(_0x5155c6,_0x39ec09,_0x377db8)),null;}_0x31eeac['push'](..._0x5155c6);let _0xfcfc6c=!0x0;for(const _0x185109 of _0x31eeac)if(!this['_rangeIsInLocalUserInsertion'](_0x185109)){_0xfcfc6c=!0x1;break;}if(_0xfcfc6c&&'always'!==this['_trackFormatChanges']){const _0x3de6bc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30e2c5,'accept');return this['forceDefaultExecution'](()=>_0x3de6bc(_0x5155c6,_0x39ec09,_0x377db8)),null;}const _0x1d1f61=this['editor']['plugins']['get']('Users')['me'];for(const _0x581a78 of this['getSuggestions']()){if(_0x581a78['author']['id']!=_0x1d1f61['id'])continue;if('formatBlock'!=_0x581a78['type']||_0x581a78['data']['formatGroupId']!=_0x39ec09['formatGroupId'])continue;if(!Qt(_0x581a78,_0x377db8))continue;const _0x4aa441=_0x581a78['subType']==_0x30e2c5;for(let _0x2fe3b3=0x0;_0x2fe3b3<_0x5155c6['length'];_0x2fe3b3++){const _0x106a1a=_0x5155c6[_0x2fe3b3];for(const _0x2ce7a0 of _0x581a78['getMarkers']()){const _0x523ff9=_0x2ce7a0['getRange']();if(_0x106a1a['isEqual'](_0x523ff9)){_0x4aa441?(_0x5155c6['splice'](_0x2fe3b3,0x1),_0x2fe3b3--):_0x581a78['removeMarker'](_0x2ce7a0['name']);break;}}}}if(0x0==_0x5155c6['length'])return null;const _0xcb669e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30e2c5,'join');for(const _0x471310 of this['getSuggestions']())if(_0x471310['author']['id']==_0x1d1f61['id']&&'formatBlock'==_0x471310['type']&&_0x471310['data']['formatGroupId']==_0x39ec09['formatGroupId']&&_0x471310['subType']==_0x30e2c5&&Qt(_0x471310,_0x377db8)&&(_0xcb669e(_0x471310['getRanges'](),_0x5155c6)||_0xcb669e(_0x5155c6,_0x471310['getRanges']()))){for(const _0x56aede of _0x5155c6)_0x471310['addRange'](_0x56aede);return _0x471310;}const _0x529d81=_0x3c1a26(),_0x390159=_0x1d1f61['id'],_0x29d5d0='formatBlock:'+_0x30e2c5,_0x4ddc3b=this['_setSuggestionData']({'id':_0x529d81,'type':_0x29d5d0,'data':_0x39ec09,'createdAt':new Date(),'authorId':_0x390159,'attributes':_0x377db8});for(const _0xfe60ed of _0x5155c6)this['_addSuggestionMarker'](_0x29d5d0,_0x529d81,_0x390159,_0xfe60ed,o['getMultiRangeId']());return _0x4ddc3b;}['markDeletion'](_0x4189bb,_0x4d929c=null,_0x4fb0e5={}){if(_0x4189bb['isCollapsed'])return null;const _0x45caec=this['editor']['plugins']['get']('Users')['me'],_0x15c8ae=new _0x512def(_0x4189bb['start'],_0x4189bb['end']);for(const {suggestion:_0x35ad1e,meta:_0x4f716b}of this['_findSuggestions'](_0x15c8ae,'insertion'))if(_0x4f716b['isOwn']&&!_0x4f716b['isNextTo']){if(_0x35ad1e['isMultiRange']){const _0x56fea5=_0x35ad1e['getRanges']()['filter'](_0x50e6e3=>'$graveyard'!=_0x50e6e3['root']['rootName']);_0x56fea5['every'](_0x43d839=>_0x15c8ae['containsRange'](_0x43d839,!0x0))&&_0x35ad1e['discard']();if(_0x56fea5['some'](_0x2ee8d7=>_0x2ee8d7['containsRange'](_0x15c8ae,!0x0))){const _0x3a0287=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d929c,'accept');return this['forceDefaultExecution'](()=>_0x3a0287([_0x15c8ae],null,_0x4fb0e5)),null;}}else{const _0x12b37a=_0x15c8ae['getIntersection'](_0x35ad1e['getFirstRange']());null!==_0x12b37a&&_0x35ad1e['_onDiscard']([_0x12b37a],null,_0x4fb0e5);}}if(_0x15c8ae['detach'](),_0x15c8ae['isCollapsed']||'$graveyard'==_0x15c8ae['root']['rootName'])return null;let _0x1c67ef=null,_0x34b2c9=_0x15c8ae['start'],_0xcc92bc=_0x15c8ae['end'];const _0x1d62ba=this['_findSuggestions'](_0x15c8ae,'deletion');for(const {suggestion:_0x5ac30a,meta:_0x3ef5ee}of _0x1d62ba){const _0x5436b6=this['_model']['createRange'](_0x34b2c9,_0xcc92bc);if(_0x3ef5ee['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ef5ee['containsRangeInObject']&&!_0x3ef5ee['isInsideObject'])){if(_0x5ac30a['isMultiRange']){if(!Qt(_0x5ac30a,_0x4fb0e5))continue;let _0x4e8bc2=!0x0;for(const _0x1faf4c of _0x5ac30a['getRanges']()){if(_0x1faf4c['containsRange'](_0x5436b6,!0x0))return _0x5ac30a;_0x5436b6['containsRange'](_0x1faf4c)||(_0x4e8bc2=!0x1);}_0x4e8bc2&&_0x5ac30a['discard']();}else{const _0x507608=_0x5ac30a['getFirstRange']();if(_0x507608['containsRange'](_0x5436b6,!0x0))return _0x5ac30a;if(!Qt(_0x5ac30a,_0x4fb0e5)){_0x5436b6['containsRange'](_0x507608)?_0x5ac30a['removeMarkers']():_0x507608['containsPosition'](_0x34b2c9)?_0x34b2c9=_0x507608['end']:_0x507608['containsPosition'](_0xcc92bc)&&(_0xcc92bc=_0x507608['start']);continue;}_0x34b2c9=_0x34b2c9['isBefore'](_0x507608['start'])?_0x34b2c9:_0x507608['start'],_0xcc92bc=_0xcc92bc['isAfter'](_0x507608['end'])?_0xcc92bc:_0x507608['end'],_0x4fb0e5=Object['assign']({},_0x5ac30a['attributes']),_0x1c67ef?_0x507608['start']['isBefore'](_0x1c67ef['getFirstRange']()['start'])?(_0x1c67ef['removeMarkers'](),_0x1c67ef=_0x5ac30a):_0x5ac30a['removeMarkers']():_0x1c67ef=_0x5ac30a;}}}if(_0x1c67ef)return this['_setSuggestionRange'](_0x1c67ef,this['_model']['createRange'](_0x34b2c9,_0xcc92bc)),_0x1c67ef;{const _0x41804c=_0x3c1a26(),_0x62a88a=this['_model']['createRange'](_0x34b2c9,_0xcc92bc),_0x32c6f4=_0x45caec['id'],_0x6a72b9=_0x4d929c?'deletion:'+_0x4d929c:'deletion',_0x2e256c=this['_setSuggestionData']({'id':_0x41804c,'type':_0x6a72b9,'createdAt':new Date(),'authorId':_0x32c6f4,'attributes':_0x4fb0e5});return this['_addSuggestionMarker'](_0x6a72b9,_0x41804c,_0x32c6f4,_0x62a88a),_0x2e256c;}}['markMultiRangeDeletion'](_0x18d53b,_0xe31ffd='multi',_0x4e9d6e={}){const _0x401ab9=this['editor']['plugins']['get']('Users')['me'],_0x110280=_0x18d53b['map'](_0x16d7a8=>new _0x512def(_0x16d7a8['start'],_0x16d7a8['end'])),_0x221732=new Set();for(const {suggestion:_0x1cca77,meta:_0x33d31f}of this['_findSuggestions'](_0x110280,'insertion'))_0x33d31f['isOwn']&&!_0x33d31f['isNextTo']&&_0x221732['add'](_0x1cca77);for(const _0x7cfac0 of _0x221732)if(_0x7cfac0['isMultiRange']){const _0x2aed5f=_0x7cfac0['getRanges']();(!_0x7cfac0['attributes']||!_0x7cfac0['attributes']['skipNestingCheck'])&&(_0x2aed5f['every'](_0x26a559=>_0x110280['some'](_0x1115c7=>_0x1115c7['containsRange'](_0x26a559,!0x0)))&&_0x7cfac0['discard']());if(_0x110280['every'](_0x2ea4de=>_0x2aed5f['some'](_0x217dcf=>_0x217dcf['containsRange'](_0x2ea4de,!0x0)))){const _0x5b86e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe31ffd,'accept');return this['forceDefaultExecution'](()=>_0x5b86e1(_0x18d53b,null,_0x4e9d6e)),null;}}else{const _0x135d8e=_0x7cfac0['getFirstRange']();_0x110280['some'](_0x404e5f=>_0x404e5f['containsRange'](_0x135d8e,!0x0))&&_0x7cfac0['discard']();if(_0x110280['every'](_0x25d82d=>_0x135d8e['containsRange'](_0x25d82d,!0x0))){const _0x4a4377=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe31ffd,'accept');return this['forceDefaultExecution'](()=>_0x4a4377(_0x110280,null,_0x4e9d6e)),null;}}const _0xbcb29d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe31ffd,'join');let _0x5acc5d=null;for(const _0x14ef77 of this['getSuggestions']())if(_0x14ef77['author']['id']==_0x401ab9['id']&&_0x14ef77['isInContent']&&'deletion'==_0x14ef77['type']&&_0x14ef77['subType']==_0xe31ffd&&Qt(_0x14ef77,_0x4e9d6e)&&(_0xbcb29d(_0x14ef77['getRanges'](),_0x110280)||_0xbcb29d(_0x110280,_0x14ef77['getRanges']()))){if(_0x5acc5d){if(_0x14ef77['commentThread']&&_0x14ef77['commentThread']['length'])continue;for(const _0x1e9e26 of _0x14ef77['getRanges']())_0x5acc5d['isIntersectingWithRange'](_0x1e9e26)||_0x5acc5d['addRange'](_0x1e9e26);_0x14ef77['removeMarkers']();}else{_0x5acc5d=_0x14ef77;for(const _0x3f59c0 of _0x110280)_0x14ef77['isIntersectingWithRange'](_0x3f59c0)||_0x14ef77['addRange'](_0x3f59c0);}}if(_0x5acc5d)return _0x5acc5d;_0x221732['clear']();for(const {suggestion:_0x48f868,meta:_0x58b294}of this['_findSuggestions'](_0x110280,'deletion'))_0x58b294['isOwn']&&(this['_mergeNestedSuggestions']||!_0x58b294['containsRangeInObject']&&!_0x58b294['isInsideObject'])&&Qt(_0x48f868,_0x4e9d6e)&&_0x221732['add'](_0x48f868);for(const _0x20620f of _0x221732){const _0x4b8a2f=_0x20620f['getRanges']();if(!_0x4e9d6e||!_0x4e9d6e['skipNestingCheck']){if(_0x110280['every'](_0x9deeb4=>_0x4b8a2f['some'](_0x1a92f3=>_0x1a92f3['containsRange'](_0x9deeb4,!0x0))))return _0x20620f;}(!_0x20620f['attributes']||!_0x20620f['attributes']['skipNestingCheck'])&&(_0x4b8a2f['every'](_0x16faf0=>_0x110280['some'](_0x736e08=>_0x736e08['containsRange'](_0x16faf0,!0x0)))&&_0x20620f['discard']());}const _0x1d97f7=_0x3c1a26(),_0xf1a442=_0x401ab9['id'],_0x189e85='deletion:'+_0xe31ffd,_0x4c21fb=this['_setSuggestionData']({'id':_0x1d97f7,'type':_0x189e85,'createdAt':new Date(),'authorId':_0xf1a442,'attributes':_0x4e9d6e});for(const _0x582389 of _0x110280)_0x582389['detach'](),_0x582389['isCollapsed']||'$graveyard'==_0x582389['root']['rootName']||this['_addSuggestionMarker'](_0x189e85,_0x1d97f7,_0xf1a442,_0x582389,o['getMultiRangeId']());return _0x4c21fb;}['markAttributeChange'](_0x5c87f3,_0x2f3ed1,_0x26033b,_0x18c3e5,_0x3f85e0){if(_0x5c87f3['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x58d10a=this['editor']['plugins']['get']('Users')['me']['id'],_0x308820=Array['from'](this['_suggestions']['values']())['filter'](_0x7b6ecc=>'attribute'==_0x7b6ecc['type']&&_0x7b6ecc['data']['key']==_0x2f3ed1&&_0x7b6ecc['isIntersectingWithRange'](_0x5c87f3));if('default'===this['_trackFormatChanges']){const _0x15be1b=this['_findSuggestions'](_0x5c87f3,'insertion')['filter'](({meta:_0x185ea7})=>_0x185ea7['isOwn']&&!_0x185ea7['isInsideObject']&&!_0x185ea7['isNextTo'])['map'](({suggestion:_0x3c8bba})=>_0x3c8bba);_0x308820['unshift'](..._0x15be1b);}const _0x4b60d8=new Map([[_0x5c87f3,_0x26033b]]);for(const _0x35e65a of _0x308820){const _0x33a73f='attribute'==_0x35e65a['type']?_0x35e65a['data']['oldValue']:void 0x0,_0x346d2c=_0x35e65a['getFirstRange'](),_0x4ac789=Array['from'](_0x4b60d8['keys']())['find'](_0x331d33=>_0x331d33['isIntersecting'](_0x346d2c));if(!_0x4ac789)continue;const _0xe56889=_0x4ac789['getDifference'](_0x346d2c);this['_isBlockAttribute'](_0x2f3ed1)&&'insertion'==_0x35e65a['type']&&0x0!=_0xe56889['length']||(_0x4b60d8['delete'](_0x4ac789),_0xe56889['forEach'](_0x3dac40=>{_0x4b60d8['set'](_0x3dac40,_0x26033b);}),'insertion'!=_0x35e65a['type']&&_0x33a73f!=_0x18c3e5&&_0x4b60d8['set'](_0x4ac789['getIntersection'](_0x346d2c),_0x33a73f));}const _0x50ddea=[];for(const [_0x8feb53,_0x175910]of _0x4b60d8){const _0x7343bf=_0x3c1a26(),_0x4ae3af={'key':_0x2f3ed1,'oldValue':_0x175910,'newValue':_0x18c3e5};_0x2f3ed1['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':_0x2f3ed1});const _0xd9d65f=('attribute:'+(_0x2f3ed1+'|'+Jt({'newValue':_0x18c3e5})))['substring'](0x0,0x3c),_0x3448ea=this['_setSuggestionData']({'id':_0x7343bf,'type':_0xd9d65f,'data':_0x4ae3af,'createdAt':new Date(),'authorId':_0x58d10a,'attributes':_0x3f85e0});_0x50ddea['push'](_0x3448ea),this['_addSuggestionMarker'](_0xd9d65f,_0x7343bf,_0x58d10a,_0x8feb53);}return _0x50ddea;}['enableDefaultAttributesIntegration'](_0x1969ec){this['enableCommand'](_0x1969ec,(_0x4a3d11,..._0x5ae60f)=>{this['_recordAttributeChanges'](()=>{_0x4a3d11(..._0x5ae60f);});});}['registerBlockAttribute'](_0x4cb608){this['_blockAttributeKeys']['add'](_0x4cb608);}['registerInlineAttribute'](_0x469ba1){this['_inlineAttributeKeys']['add'](_0x469ba1);}['_getAttributeKey'](_0x1b6039){return'attribute'==_0x1b6039['type']?_0x1b6039['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3fa417,_0x1a03a5){const _0x12dcd9=_0x3fa417['getFirstMarker']();this['_model']['change'](_0x2d4dca=>{_0x2d4dca['updateMarker'](_0x12dcd9,{'range':_0x1a03a5});});}['_addThreadToSuggestion'](_0x1da190){const _0x4ff03f=_0x1da190['id'],_0x5741df=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4ff03f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5741df,'threadId':_0x4ff03f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x389274=this['_commentsRepository']['getCommentThread'](_0x4ff03f);_0x389274['unbind']('isRemovable'),_0x389274['isRemovable']=!0x1,_0x1da190['commentThread']=_0x389274;}['_checkSuggestionCorrectness'](_0x44bdb5,_0x274265,_0x4fa669,_0x291ac2){if(_0x44bdb5['type']!=_0x274265||_0x44bdb5['subType']!=_0x4fa669||_0x44bdb5['creator']['id']!=_0x291ac2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x18e16a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1c8bfa,_0x1b32c6){const _0x98696f=_0x1c8bfa['getFirstRange']();if(_0x1b32c6['isEqual'](_0x98696f))_0x1c8bfa['removeMarkers']();else{if(_0x98696f['containsRange'](_0x1b32c6)){const _0x4e0e51=this['_model']['createPositionAt'](_0x1b32c6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c8bfa,this['_model']['createRange'](_0x98696f['start'],_0x4e0e51));const _0xd6f347=_0x3c1a26(),_0x43f342=_0x1c8bfa['creator']['id'],_0x2a5331=_0x1c8bfa['type']+':'+_0x1c8bfa['subType'];this['_setSuggestionData']({'id':_0xd6f347,'type':_0x2a5331,'createdAt':new Date(),'authorId':_0x43f342,'data':_0x1c8bfa['data'],'attributes':_0x1c8bfa['attributes']});const _0x5af5cd=this['_model']['createPositionAt'](_0x1b32c6['end']['parent'],'after'),_0x48333a=this['_model']['createRange'](_0x5af5cd,_0x98696f['end']);this['_addSuggestionMarker'](_0x2a5331,_0xd6f347,_0x43f342,_0x48333a);}else{if(_0x98696f['containsPosition'](_0x1b32c6['start'])){const _0x3c3126=this['_model']['createPositionAt'](_0x1b32c6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c8bfa,this['_model']['createRange'](_0x98696f['start'],_0x3c3126));}else{const _0x24d734=this['_model']['createPositionAt'](_0x1b32c6['end']['parent'],'after');this['_setSuggestionRange'](_0x1c8bfa,this['_model']['createRange'](_0x24d734,_0x98696f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x214fcf){for(const {suggestion:_0x24573d,meta:_0x175cad}of this['_findSuggestions'](_0x214fcf,'insertion')){if(!_0x175cad['isOwn'])continue;const _0x33adde=_0x24573d['getRanges']();for(const _0x431d09 of _0x33adde)if(!_0x214fcf['getDifference'](_0x431d09)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e9c93){const _0x24a3b7=this['editor']['plugins']['get']('Users')['getUser'](_0x5e9c93);if(!_0x24a3b7)throw new _0x18e16a('track-changes-user-not-found',this);return _0x24a3b7;}['_getExternalAuthor'](_0x5d3be8){const _0x27dcad=this['editor']['plugins']['get']('Users'),_0x392ebc=_0x43877d('external:'+_0x5d3be8),_0x496903=_0x27dcad['getUser'](_0x392ebc);return _0x496903||_0x27dcad['addUser']({'id':_0x392ebc,'name':_0x5d3be8});}['_createSuggestion'](_0x21af0c,_0x6040be,_0x400ec8,_0xe15563,_0x3c8ac5){const _0xfb609f=this['_getAuthorFromId'](_0xe15563),_0x2da685=this['_suggestionFactory']['buildSuggestion'](_0x21af0c,_0x6040be,_0x400ec8,_0xfb609f,_0x3c8ac5,_0x2dffdc=>{this['_updateSuggestionData'](_0x400ec8,{'attributes':_0x2dffdc});const _0x332b9a=this['getSuggestion'](_0x400ec8);this['_joinWithAdjacentSuggestions'](new Set([_0x332b9a])),this['_refreshSuggestionsChain'](new Set([_0x332b9a]));});return this['listenTo'](_0x2da685,'accept',()=>{this['_updateSuggestionData'](_0x400ec8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2da685,'discard',()=>{this['_updateSuggestionData'](_0x400ec8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x400ec8,_0x2da685),this['_suggestionState']['set'](_0x2da685,'notReady'),_0x2da685;}['_splitMarkerName'](_0x4dd88e){const _0x91d65d=_0x4dd88e['split'](':');return{'group':_0x91d65d[0x0],'type':_0x91d65d[0x1],'subType':_0x91d65d['length']>=0x5?_0x91d65d[0x2]:null,'id':_0x91d65d['length']<0x5?_0x91d65d[0x2]:_0x91d65d[0x3],'authorId':_0x91d65d['length']<0x5?_0x91d65d[0x3]:_0x91d65d[0x4],'markerCount':0x6==_0x91d65d['length']?_0x91d65d[0x5]:null};}['_breakSuggestionMarker'](_0x2c4598,_0x5301db,_0x3ae403){const _0x5b8392=_0x2c4598['getFirstRange'](),_0x5083d7=_0x5b8392['start'],_0xb3ad16=_0x5b8392['end'];this['_setSuggestionRange'](_0x2c4598,this['_model']['createRange'](_0x5083d7,_0x5301db));const _0x52d196=_0x3c1a26(),_0x1d897a=_0x2c4598['creator']['id'],_0x9f9e3e=_0x2c4598['type']+(_0x2c4598['subType']?':'+_0x2c4598['subType']:'');this['_setSuggestionData']({'id':_0x52d196,'type':_0x9f9e3e,'createdAt':new Date(),'authorId':_0x1d897a,'originalSuggestionId':_0x2c4598['id'],'attributes':_0x2c4598['attributes'],'data':_0x2c4598['data']});const _0x259719=this['_getAttributeKey'](_0x2c4598);('formatBlock'==_0x2c4598['type']||_0x259719&&this['_isBlockAttribute'](_0x259719))&&(_0x3ae403=this['_model']['createPositionBefore'](_0x3ae403['parent'])),this['_addSuggestionMarker'](_0x9f9e3e,_0x52d196,_0x1d897a,this['_model']['createRange'](_0x3ae403,_0xb3ad16));}['_findSuggestions'](_0x5ef171,_0x35bf2c=null){const _0x42cbf2=[],_0x24e243=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5ef171)||(_0x5ef171=[_0x5ef171]);for(const _0x16304a of this['getSuggestions']()){if(!_0x16304a['isInContent'])continue;if(_0x35bf2c&&_0x16304a['type']!=_0x35bf2c)continue;let _0x15811d=!0x1;for(const _0x9c64b2 of _0x16304a['getRanges']()){for(const _0x1bd809 of _0x5ef171){const _0x3bbdbb=_0x1bd809['start']['isEqual'](_0x9c64b2['end'])||_0x1bd809['end']['isEqual'](_0x9c64b2['start']);if(_0x3bbdbb||_0x1bd809['getIntersection'](_0x9c64b2)){const _0x3b637a=_0x1bd809['containsRange'](_0x9c64b2)&&Pt(this['_model']['schema'],_0x9c64b2['start'],_0x1bd809),_0x58a150=_0x9c64b2['containsRange'](_0x1bd809)&&Pt(this['_model']['schema'],_0x1bd809['start'],_0x9c64b2);_0x42cbf2['push']({'suggestion':_0x16304a,'meta':{'isOwn':_0x24e243==_0x16304a['author'],'isNextTo':_0x3bbdbb,'isInsideObject':_0x3b637a,'containsRangeInObject':_0x58a150}}),_0x15811d=!0x0;break;}}if(_0x15811d)break;}}return _0x42cbf2;}['_addSuggestionMarker'](_0xe928cf,_0x4d09ba,_0x54f769,_0x417e3f,_0x4d3418){this['_model']['change'](_0x56a3d3=>{let _0x3ae362='suggestion:'+_0xe928cf+':'+_0x4d09ba+':'+_0x54f769;_0x4d3418&&(_0x3ae362=_0x3ae362+':'+_0x4d3418),_0x56a3d3['addMarker'](_0x3ae362,{'range':_0x417e3f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xe1b661){const _0x37c9be=_0xe1b661['previous'],_0x4410f1=_0xe1b661['next'];_0xe1b661['previous']=null,_0xe1b661['next']=null,null!=_0x37c9be&&_0x37c9be['next']==_0xe1b661&&(_0x37c9be['next']=_0x4410f1),null!=_0x4410f1&&_0x4410f1['previous']==_0xe1b661&&(_0x4410f1['previous']=_0x37c9be),'ready'==this['_suggestionState']['get'](_0xe1b661)&&(this['_suggestionState']['set'](_0xe1b661,'removed'),this['fire']('suggestionUnloaded',_0xe1b661,_0x37c9be,_0x4410f1));}['_setSuggestionData'](_0x25a313){const _0x55d389=_0x25a313['id'],_0x14533c=this['addSuggestionData'](_0x25a313);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x331a05=this['editor']['plugins']['get']('PendingActions'),_0x812cc1=_0x14533c['hasComments'],_0xe9196b=_0x14533c['subType']?_0x14533c['type']+':'+_0x14533c['subType']:_0x14533c['type'],_0x57cd60=this['editor']['locale'],_0x51d0c7=_0x331a05['add'](c(_0x57cd60,'PENDING_ACTION_SUGGESTION')),_0x51119e={'id':_0x55d389,'type':_0xe9196b,'hasComments':_0x812cc1,'data':_0x25a313['data']||null,'originalSuggestionId':_0x25a313['originalSuggestionId']||null,'attributes':_0x14533c['attributes']};this['_adapter']['addSuggestion'](_0x51119e)['then'](_0x5bcaa6=>{_0x14533c['_saved']=!0x0,_0x331a05['remove'](_0x51d0c7),_0x5bcaa6&&_0x5bcaa6['createdAt']&&(this['_suggestions']['get'](_0x55d389)['createdAt']=_0x5bcaa6['createdAt']);})['catch'](_0x4c0941=>{throw _0x103b40('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x14533c['discard']();}),_0x14533c['stopListening'](),this['_suggestions']['delete'](_0x14533c['id']),this['_suggestionState']['delete'](_0x14533c),_0x4c0941;});}return _0x14533c;}['_isBlockAttribute'](_0x38c768){return this['_blockAttributeKeys']['has'](_0x38c768);}['_updateSuggestionData'](_0x3f91c4,_0x1ed0cd){const _0xb54269=this['editor']['plugins']['get']('PendingActions'),_0x387910=this['getSuggestion'](_0x3f91c4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x387910['_saved']){const _0x508e3c=_0xb54269['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3f91c4,_0x1ed0cd)['then'](()=>{_0xb54269['remove'](_0x508e3c);});}else _0x387910['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3f91c4,_0x1ed0cd);});}}['_getSuggestionData'](_0x1a095f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x18e16a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1a095f);}['_handleNewSuggestionMarker'](_0x40b82e){const {id:_0x3ce713,type:_0x2daec5,subType:_0x2a1b2f,authorId:_0x2bdb1a}=this['_splitMarkerName'](_0x40b82e),_0x4b39ab=this['_suggestions']['get'](_0x3ce713)||this['_createSuggestion'](_0x2daec5,_0x2a1b2f,_0x3ce713,_0x2bdb1a,{});switch(this['_checkSuggestionCorrectness'](_0x4b39ab,_0x2daec5,_0x2a1b2f,_0x2bdb1a),this['_suggestionState']['get'](_0x4b39ab)){case'notReady':this['_getSuggestionData'](_0x3ce713)['then'](_0x502eee=>{let _0x3a37d3=Promise['resolve']();_0x502eee['hasComments']&&(_0x3a37d3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3ce713})),_0x3a37d3['then'](()=>{this['addSuggestionData'](_0x502eee)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4b39ab,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3ce713,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4b39ab,'ready'),this['fire']('suggestionLoaded',_0x4b39ab);break;case'ready':this['fire']('suggestionChanged',_0x4b39ab);}return _0x4b39ab['addMarkerName'](_0x40b82e),_0x4b39ab;}['_refreshSuggestionsChain'](_0x4b96f1){const _0x1be31f=Array['from'](_0x4b96f1),_0x2c6ec3=_0x1be31f['filter'](_0x671b=>'attribute'==_0x671b['type']);this['_refreshAttributeSuggestionsChain'](_0x2c6ec3);const _0x4a7e52=_0x1be31f['filter'](_0x1a5aed=>!_0x1a5aed['isMultiRange']&&'attribute'!=_0x1a5aed['type']),_0x12dde6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3cb8c4=>!_0x3cb8c4['isMultiRange']&&'attribute'!=_0x3cb8c4['type']),_0x58e7e5=_0x12dde6['filter'](_0x5ade01=>!_0x4b96f1['has'](_0x5ade01)),_0xcc5adc=new Map(_0x12dde6['map'](_0x502db3=>[_0x502db3,this['_suggestionFactory']['getSuggestionCallback'](_0x502db3['type'],_0x502db3['subType'],'chain')])),_0x417a11=new Map(_0x12dde6['map'](_0x7abf6a=>[_0x7abf6a,_0x7abf6a['getFirstRange']()])),_0x563688=new Set(),_0x2f96be=new Set();for(let _0xcb5f12=0x0;_0xcb5f12<_0x4a7e52['length'];_0xcb5f12++)_0x53fd12(_0x4a7e52[_0xcb5f12],_0x4a7e52,_0xcb5f12+0x1);for(let _0x4ee535=0x0;_0x4ee535<_0x4a7e52['length'];_0x4ee535++)_0x53fd12(_0x4a7e52[_0x4ee535],_0x58e7e5,0x0);const _0x2b59a7=new Set();for(let _0x5010ee=0x0;_0x5010ee<_0x4a7e52['length'];_0x5010ee++){const _0x5b1335=_0x4a7e52[_0x5010ee];!_0x2f96be['has'](_0x5b1335)&&_0x5b1335['previous']&&(_0x2b59a7['add'](_0x5b1335['previous']),_0x5b1335['previous']['next']===_0x5b1335&&(_0x5b1335['previous']['next']=null),_0x5b1335['previous']=null),!_0x563688['has'](_0x5b1335)&&_0x5b1335['next']&&(_0x2b59a7['add'](_0x5b1335['next']),_0x5b1335['next']['previous']===_0x5b1335&&(_0x5b1335['next']['previous']=null),_0x5b1335['next']=null);}function _0x53fd12(_0x510ecf,_0x5926f8,_0x2d16d8){for(let _0x13e24e=_0x2d16d8;_0x13e24e<_0x5926f8['length'];_0x13e24e++){const _0x3bbc09=_0x1a3621(_0x510ecf,_0x5926f8[_0x13e24e]);_0x3bbc09&&(_0x3bbc09[0x0]['next']=_0x3bbc09[0x1],_0x3bbc09[0x1]['previous']=_0x3bbc09[0x0],_0x563688['add'](_0x3bbc09[0x0]),_0x2f96be['add'](_0x3bbc09[0x1]));}}function _0x1a3621(_0x5c5987,_0x31005a){if(_0x5c5987['author']['id']!==_0x31005a['author']['id'])return null;const _0x140961=_0xcc5adc['get'](_0x5c5987)(_0x5c5987,_0x31005a,_0x417a11['get'](_0x5c5987),_0x417a11['get'](_0x31005a));if(!_0x140961)return null;return _0xcc5adc['get'](_0x31005a)(_0x5c5987,_0x31005a,_0x417a11['get'](_0x5c5987),_0x417a11['get'](_0x31005a))?_0x140961[0x1]['commentThread']&&_0x140961[0x1]['commentThread']['length']?null:_0x140961:null;}_0x2b59a7['size']&&this['_refreshSuggestionsChain'](_0x2b59a7);}['_refreshAttributeSuggestionsChain'](_0x36c208){if(0x0==_0x36c208['length'])return;const _0x3c2316=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x290455=>'attribute'==_0x290455['type']&&_0x290455['_isDataLoaded']),_0x4503ed=[],_0x51c5c1=new Map();for(const _0x1333fe of _0x3c2316){const _0x31a37a=_0x43877d(_0x1333fe['attributes']);_0x51c5c1['has'](_0x31a37a)||(_0x51c5c1['set'](_0x31a37a,_0x4503ed['length']),_0x4503ed['push']([]));const _0x3f55b4=_0x51c5c1['get'](_0x31a37a);_0x4503ed[_0x3f55b4]['push'](_0x1333fe);}!(function(){_0x4503ed['sort']((_0x180f0d,_0x583dfe)=>{const _0x44e6e4=_0x180f0d[0x0]['createdAt'],_0x5a5318=_0x583dfe[0x0]['createdAt'];return _0x44e6e4==_0x5a5318?_0x180f0d[0x0]['attributes']['groupId']<_0x583dfe[0x0]['attributes']['groupId']?-0x1:0x1:_0x44e6e4<_0x5a5318?-0x1:0x1;});for(const _0x46b3bb of _0x4503ed)_0x46b3bb['sort']((_0xb82517,_0x9eabae)=>_0xb82517['id']<_0x9eabae['id']?-0x1:0x1);}());for(let _0x3c1040=0x0;_0x3c1040<_0x4503ed['length'];_0x3c1040++){if(0x0==_0x4503ed[_0x3c1040]['length'])continue;const _0x2376e1=[];for(let _0x16a85a=_0x3c1040+0x1;_0x16a85a<_0x4503ed['length'];_0x16a85a++)0x0!=_0x4503ed[_0x16a85a]['length']&&_0x377e0c(_0x4503ed[_0x3c1040],_0x4503ed[_0x16a85a])&&_0x2376e1['push'](_0x16a85a);for(const _0x404cdd of _0x2376e1)_0x4503ed[_0x3c1040]=_0x4503ed[_0x3c1040]['concat'](_0x4503ed[_0x404cdd]),_0x4503ed[_0x404cdd]=[];}for(const _0x175e7a of _0x4503ed)for(let _0x23f8e2=0x0;_0x23f8e2<_0x175e7a['length'];_0x23f8e2++){const _0x30073c=_0x175e7a[_0x23f8e2+0x1]||null;_0x175e7a[_0x23f8e2]['next']!==_0x30073c&&(_0x175e7a[_0x23f8e2]['next']=_0x30073c);}for(const _0x2f19cb of _0x4503ed)for(let _0x49cddf=0x0;_0x49cddf<_0x2f19cb['length'];_0x49cddf++){const _0x266904=_0x2f19cb[_0x49cddf-0x1]||null;_0x2f19cb[_0x49cddf]['previous']!==_0x266904&&(_0x2f19cb[_0x49cddf]['previous']=_0x266904);}function _0x377e0c(_0x149a94,_0x1b265b){if(_0x149a94[0x0]['attributes']['groupId']!==_0x1b265b[0x0]['attributes']['groupId']&&_0x149a94[0x0]['author']!==_0x1b265b[0x0]['author'])return!0x1;if(!function(_0x5e2471,_0x55fbba){if(!_0x5e2471['hasComments']&&!_0x55fbba['hasComments'])return!0x0;if(_0x5e2471['hasComments']&&_0x55fbba['hasComments'])return!0x1;if(_0x5e2471['hasComments']&&_0x55fbba['createdAt']<_0x5e2471['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x55fbba['hasComments']&&_0x5e2471['createdAt']<_0x55fbba['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x149a94[0x0],_0x1b265b[0x0]))return!0x1;const _0x3bbd48=Vt(_0x149a94[0x0]['attributes'],'groupId'),_0x1b5fe5=Vt(_0x1b265b[0x0]['attributes'],'groupId');if(!_0x1ca487(_0x3bbd48,_0x1b5fe5))return!0x1;return!!_0x149a94['every'](_0x1c85b9=>_0x1b265b['some'](_0x15dc99=>_0x1c85b9['getFirstRange']()['isEqual'](_0x15dc99['getFirstRange']())))&&_0x1b265b['every'](_0x4a2af8=>_0x149a94['some'](_0x1b322b=>_0x4a2af8['getFirstRange']()['isEqual'](_0x1b322b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5c6462){const _0x112dfc=Array['from'](_0x5c6462),_0x436b74=this['getSuggestions']({'skipNotAttached':!0x0}),_0x141109=_0x436b74['filter'](_0x1ee706=>!_0x5c6462['has'](_0x1ee706)),_0x4208b9=new Map(_0x112dfc['map'](_0x4e5c29=>[_0x4e5c29,this['_suggestionFactory']['getSuggestionCallback'](_0x4e5c29['type'],_0x4e5c29['subType'],'join')])),_0x5cd1f2=new Map(_0x436b74['map'](_0x5c8c89=>[_0x5c8c89,_0x5c8c89['getRanges']()]));for(let _0x165a16=0x0;_0x165a16<_0x112dfc['length'];_0x165a16++){if(_0x54fe8f(this,_0x112dfc[_0x165a16],_0x112dfc,_0x165a16+0x1))return!0x0;}for(let _0x3a4724=0x0;_0x3a4724<_0x112dfc['length'];_0x3a4724++){if(_0x54fe8f(this,_0x112dfc[_0x3a4724],_0x141109,0x0))return!0x0;}return!0x1;function _0x54fe8f(_0x50f36f,_0x4b8a58,_0x385558,_0x30af86){for(let _0x36a985=_0x30af86;_0x36a985<_0x385558['length'];_0x36a985++){const _0x3ee31c=_0x385558[_0x36a985];if(_0x3ee31c['type']!==_0x4b8a58['type']||_0x3ee31c['author']['id']!==_0x4b8a58['author']['id']||_0x3ee31c['subType']!==_0x4b8a58['subType'])continue;if(!Wt(_0x4b8a58,_0x3ee31c))continue;if('attribute'==_0x4b8a58['type']&&_0x4b8a58['data']['oldValue']!=_0x3ee31c['data']['oldValue'])continue;if('attribute'==_0x4b8a58['type']&&_0x50f36f['_isBlockAttribute'](_0x4b8a58['data']['key']))continue;if('formatBlock'==_0x4b8a58['type']){const _0x45ad19=_0x50f36f['editor']['model'],_0x2bac41=_0x4b8a58['getContainedElement']();if(_0x2bac41&&(_0x45ad19['schema']['isObject'](_0x2bac41)||_0x45ad19['schema']['isLimit'](_0x2bac41)))continue;}const _0x5f243e=_0x4208b9['get'](_0x4b8a58),_0x553337=_0x5cd1f2['get'](_0x4b8a58),_0x5e13e3=_0x5cd1f2['get'](_0x3ee31c),_0x2518c3=_0x4b8a58['commentThread']&&_0x4b8a58['commentThread']['length'],_0x15a07e=_0x3ee31c['commentThread']&&_0x3ee31c['commentThread']['length'];if(!_0x2518c3&&_0x5f243e(_0x5e13e3,_0x553337))return _0x50f36f['_joinSuggestions'](_0x3ee31c,_0x4b8a58),_0x5cd1f2['delete'](_0x4b8a58),!0x0;if(!_0x15a07e&&_0x5f243e(_0x553337,_0x5e13e3))return _0x50f36f['_joinSuggestions'](_0x4b8a58,_0x3ee31c),_0x5cd1f2['delete'](_0x3ee31c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x32d6db,_0x3de717){if(_0x32d6db['isMultiRange']){for(const _0x21f63a of _0x3de717['getRanges']())_0x32d6db['addRange'](_0x21f63a);}else{const _0x4dc365=_0x3de717['getFirstRange']()['end'];this['_setSuggestionRange'](_0x32d6db,this['_model']['createRange'](_0x32d6db['getFirstRange']()['start'],_0x4dc365));}_0x3de717['removeMarkers']();}['_getMarkerAnnouncementText'](_0x28ffd7,_0x4848c1,_0x546313){const _0x3f5982=_0x28ffd7['startsWith']('format')||_0x28ffd7['startsWith']('attribute')?'FORMATTING':_0x28ffd7['toUpperCase']();return c(this['editor']['locale'],_0x4848c1+'_'+_0x3f5982+'_SUGGESTION_ANNOUNCEMENT',_0x546313);}['_initAriaMarkerChangeAnnouncements'](){const _0x3b476b=this['editor'];if(!_0x3b476b['ui'])return;const {ariaLiveAnnouncer:_0x4fb59f}=_0x3b476b['ui'];_0x8efb6(this['_model'],({left:_0x5d39e3,entered:_0x26d9b2})=>{for(const _0x26e77a of _0x5d39e3){const {group:_0x530e27,type:_0x403aec}=this['_splitMarkerName'](_0x26e77a['name']);if('suggestion'===_0x530e27){_0x4fb59f['announce'](this['_getMarkerAnnouncementText'](_0x403aec,'LEAVE'));break;}}for(const _0x1272ed of _0x26d9b2){const {group:_0x35baeb,type:_0x2c960b}=this['_splitMarkerName'](_0x1272ed['name']);if('suggestion'===_0x35baeb){_0x4fb59f['announce'](this['_getMarkerAnnouncementText'](_0x2c960b,'ENTER',_0x2fe146(_0x5af2e3)));break;}}});}['_processAttributeChanges'](_0x1f964f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x48da42=this['editor'],_0x26e97e=_0x48da42['model']['document']['differ']['getChanges']();if(0x0==_0x26e97e['length'])return!0x1;const _0x1769b0=[],_0xdb5688=_0x26e97e['filter'](_0x26dd67=>'attribute'==_0x26dd67['type']),_0x4b994d=_0x26e97e['filter'](_0x175c76=>'insert'==_0x175c76['type']&&'$text'!=_0x175c76['name']),_0x3bc5a6=_0x26e97e['filter'](_0x461470=>'remove'==_0x461470['type']&&'$text'!=_0x461470['name']);for(const _0x58cfcb of _0xdb5688)_0x1769b0['push']({'key':_0x58cfcb['attributeKey'],'newValue':_0x58cfcb['attributeNewValue'],'oldValue':_0x58cfcb['attributeOldValue'],'range':Ht(_0x58cfcb['range'],_0x48da42['model'])});for(const _0x4a13eb of _0x4b994d){const _0x2fc18c=_0x3bc5a6['find'](_0x3ecdbd=>_0x3ecdbd['position']['isEqual'](_0x4a13eb['position']));_0x2fc18c&&_0x1769b0['push']({'key':u,'newValue':_0x4a13eb['name'],'oldValue':_0x2fc18c['name'],'range':_0x48da42['model']['createRangeOn'](_0x4a13eb['position']['nodeAfter'])});}return 0x0!=_0x1769b0['length']&&this['_reduceExistingSuggestions'](_0x1f964f,_0x1769b0);}['_processAttributeSuggestions'](_0x1dfaef){let _0xd0d505=!0x1;const _0x32bf78=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x245726=>_0x245726['data']['newRange']&&_0x245726['name']['startsWith']('suggestion:attribute:'));for(const _0x4e1c1f of _0x32bf78){const {subType:_0x37efed,id:_0x59db5d}=this['_splitMarkerName'](_0x4e1c1f['name']),_0x398a2e=_0x37efed['split']('|')[0x0];for(const _0xd7be9e of this['getSuggestions']({'skipNotAttached':!0x0}))_0xd7be9e['id']!=_0x59db5d&&'attribute'==_0xd7be9e['type']&&_0xd7be9e['data']&&_0xd7be9e['data']['key']==_0x398a2e&&_0xd7be9e['getFirstRange']()['isIntersecting'](_0x4e1c1f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xd7be9e,_0x4e1c1f['data']['newRange'],_0x1dfaef),_0xd0d505=!0x0);}return _0xd0d505;}['_recordAttributeChanges'](_0x23daa0){this['_recordAttributeSuggestions']=!0x0,_0x23daa0();}['_isRegisteredAttribute'](_0x460be1){const _0x22cc36=this['_isBlockAttribute'](_0x460be1),_0x398f07=this['_inlineAttributeKeys']['has'](_0x460be1);return _0x22cc36||_0x398f07;}['_reduceExistingSuggestions'](_0x25ae95,_0x5b4f30){if(0x0==_0x5b4f30['length'])return!0x1;let _0xb0c79e=!0x1;for(const _0x46631e of _0x5b4f30){const _0x346450=this['_findSuggestions'](_0x46631e['range'],'attribute')['filter'](_0x28d13b=>!_0x28d13b['meta']['isNextTo'])['map'](_0x49eb4d=>_0x49eb4d['suggestion']),_0x18e8bf=_0x43877d({'newValue':_0x46631e['newValue']});_0x346450['filter'](_0xda2d3c=>{const [_0x1417e4,_0x96e441]=_0xda2d3c['subType']['split']('|');return _0x1417e4==_0x46631e['key']&&_0x96e441!=_0x18e8bf;})['forEach'](_0x21fe90=>{this['_reduceSuggestionAttributeRange'](_0x21fe90,_0x46631e['range'],_0x25ae95),_0xb0c79e=!0x0;});}return _0xb0c79e;}['_reduceSuggestionAttributeRange'](_0x290689,_0x5ca241,_0x1b91e5){const _0x1e0096=_0x290689['getFirstRange']()['getDifference'](_0x5ca241);0x0!==_0x1e0096['length']?0x1!==_0x1e0096['length']?this['_breakSuggestionMarker'](_0x290689,_0x5ca241['start'],_0x5ca241['end']):this['_setSuggestionRange'](_0x290689,_0x1e0096[0x0]):_0x1b91e5['removeMarker'](_0x290689['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d7ac6){this['_editor']=_0x4d7ac6,this['_model']=_0x4d7ac6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x16733b,_0x44b1dc,_0x4ade55,_0x3ba688,_0x2c5c27,_0xc84c78){return new o(this['_model'],{'type':_0x16733b,'subType':_0x44b1dc,'id':_0x4ade55,'author':_0x3ba688,'creator':_0x3ba688,'attributes':_0x2c5c27,'onAttributesChange':_0xc84c78,'onAccept':(..._0x5f4bbd)=>this['getSuggestionCallback'](_0x16733b,_0x44b1dc,'accept')(..._0x5f4bbd),'onDiscard':(..._0x163350)=>this['getSuggestionCallback'](_0x16733b,_0x44b1dc,'discard')(..._0x163350)});}['registerCustomCallback'](_0x3f8aad,_0x546bb7,_0x490741,_0x4ad3c9){const _0x3aa1fc=_0x3f8aad+':'+_0x546bb7+':'+_0x490741;this['_customCallbacks']['set'](_0x3aa1fc,_0x4ad3c9);}['getSuggestionCallback'](_0x2ed5d6,_0x135c8f,_0x49ca30){const _0x449c66=_0x2ed5d6+':'+_0x135c8f+':'+_0x49ca30;return this['_customCallbacks']['get'](_0x449c66)||this['_defaultCallbacks']['get'](_0x2ed5d6+':'+_0x49ca30);}['_registerDefaultCallbacks'](){const _0x54bda7=()=>!0x1,_0x1c8ad6=_0x1840f6=>{_0x1840f6['sort']((_0x358f90,_0x31a90b)=>_0x358f90['start']['isBefore'](_0x31a90b['start'])?0x1:-0x1),this['_model']['change'](_0x4f4dd9=>{for(const _0x4dd281 of _0x1840f6){let _0x1278dc;_0x1278dc=_0x4dd281['end']['isAtEnd']&&_0x4dd281['end']['parent']==_0x4dd281['start']['nodeAfter']?_0x4f4dd9['createSelection'](_0x4dd281['start']['nodeAfter'],'on'):_0x4f4dd9['createSelection'](_0x4dd281),this['_model']['deleteContent'](_0x1278dc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x49f9ec=(_0x1227ff,_0x1b17e2)=>{_0x1b17e2&&this['_model']['change'](_0x30a112=>{const {commandName:_0x719cd,commandParams:_0x25003f=[]}=_0x1b17e2,_0x5931fd=_0x1227ff['map'](_0x385cfa=>(Gt(_0x385cfa)&&(_0x385cfa=this['_model']['createRange'](_0x385cfa['end'])),_0x385cfa))['filter'](_0x36b4a8=>'$graveyard'!==_0x36b4a8['root']['rootName']);if(_0x5931fd['length']<0x1)return;const _0x9082d4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1679ce=>_0x512def['fromRange'](_0x1679ce));_0x30a112['setSelection'](_0x5931fd);for(const _0x73615f of this['_editor']['commands']['commands']())_0x73615f['refresh']();_0x25003f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x719cd,..._0x25003f);const _0x12b218=_0x9082d4['filter'](_0x2b143b=>'$graveyard'!=_0x2b143b['root']['rootName']);_0x12b218['length']>0x0&&_0x30a112['setSelection'](_0x12b218);for(const _0xe16718 of _0x9082d4)_0xe16718['detach']();});},_0x12798e=(_0x809945,_0x594a2d)=>0x1==_0x809945['length']&&0x1==_0x594a2d['length']&&_0x809945[0x0]['end']['isEqual'](_0x594a2d[0x0]['start']),_0x42bb22=(_0x4100a0,_0x46de6f,_0x1afdb7,_0x31b05c)=>zt(_0x4100a0,_0x46de6f,_0x1afdb7,_0x31b05c)?[_0x4100a0,_0x46de6f]:zt(_0x46de6f,_0x4100a0,_0x31b05c,_0x1afdb7)?[_0x46de6f,_0x4100a0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x54bda7),this['_defaultCallbacks']['set']('insertion:discard',_0x1c8ad6),this['_defaultCallbacks']['set']('insertion:join',_0x12798e),this['_defaultCallbacks']['set']('insertion:chain',_0x42bb22),this['_defaultCallbacks']['set']('deletion:accept',_0x1c8ad6),this['_defaultCallbacks']['set']('deletion:discard',_0x54bda7),this['_defaultCallbacks']['set']('deletion:join',_0x12798e),this['_defaultCallbacks']['set']('deletion:chain',_0x42bb22),this['_defaultCallbacks']['set']('formatInline:accept',_0x49f9ec),this['_defaultCallbacks']['set']('formatInline:discard',_0x54bda7),this['_defaultCallbacks']['set']('formatInline:join',_0x12798e),this['_defaultCallbacks']['set']('formatInline:chain',_0x54bda7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x49f9ec),this['_defaultCallbacks']['set']('formatBlock:discard',_0x54bda7),this['_defaultCallbacks']['set']('formatBlock:join',_0x12798e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x54bda7),this['_defaultCallbacks']['set']('attribute:accept',_0x54bda7),this['_defaultCallbacks']['set']('attribute:discard',(_0x5e1eae,_0x1e2d17)=>{if(!_0x1e2d17)return;const _0x2d55bb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3e10ea=>{if(_0x1e2d17['key']==u)for(const _0x128b08 of _0x5e1eae){const _0x4ee051=_0x128b08['start']['nodeAfter'],_0x111b1e=_0x1e2d17['oldValue'];_0x3e10ea['rename'](_0x4ee051,_0x111b1e);}else{if(_0x2d55bb['_isBlockAttribute'](_0x1e2d17['key'])){for(const _0x11bd31 of _0x5e1eae)void 0x0!==_0x1e2d17['oldValue']?_0x3e10ea['setAttribute'](_0x1e2d17['key'],_0x1e2d17['oldValue'],_0x11bd31['start']['nodeAfter']):_0x3e10ea['removeAttribute'](_0x1e2d17['key'],_0x11bd31['start']['nodeAfter']);}else{for(const _0x41f010 of _0x5e1eae)_0x1e2d17['oldValue']?_0x3e10ea['setAttribute'](_0x1e2d17['key'],_0x1e2d17['oldValue'],_0x41f010):_0x3e10ea['removeAttribute'](_0x1e2d17['key'],_0x41f010);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x12798e);}}function Pt(_0x486b73,_0x3cd4f8,_0x30a4c8){for(const _0x188ba1 of _0x3cd4f8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x188ba1['root']==_0x188ba1)return!0x1;if(!_0x30a4c8['containsItem'](_0x188ba1))return!0x1;if(_0x486b73['isObject'](_0x188ba1)||_0x486b73['isLimit'](_0x188ba1))return!0x0;}return!0x1;}function Gt(_0x260f72){return _0x260f72['end']['parent']==_0x260f72['start']['nodeAfter']&&_0x260f72['end']['isAtStart'];}function Lt(_0x2622ce,_0x58e73a,_0x1c7d77,_0xd6dbf1){const _0x137494=_0x2b3d6c=>!_0x2b3d6c['item']['is']('$textProxy')&&!_0xd6dbf1['isObject'](_0x2b3d6c['item']),_0x2839f2=_0x2622ce['start']['getLastMatchingPosition'](_0x137494),_0x41d02d=_0x2622ce['end']['getLastMatchingPosition'](_0x137494,{'direction':'backward'});return(!_0x2622ce['start']['isEqual'](_0x2839f2)||!_0x2622ce['end']['isEqual'](_0x41d02d))&&(_0x2839f2['isBefore'](_0x41d02d)?_0x1c7d77['updateMarker'](_0x58e73a,{'range':_0x1c7d77['createRange'](_0x2839f2,_0x41d02d)}):_0x1c7d77['removeMarker'](_0x58e73a),!0x0);}function Jt(_0x538267){return _0x43877d(_0x538267);}function Kt(_0x463668){const _0x1ddd02=_0x463668['start']['nodeAfter'];return _0x1ddd02&&_0x1ddd02['is']('element');}function Ht(_0x3118cd,_0x15987c){return null==_0x3118cd['end']['nodeBefore']&&_0x3118cd['end']['parent']==_0x3118cd['start']['nodeAfter']?qt(_0x3118cd['start']['nodeAfter'],_0x15987c):_0x3118cd;}function qt(_0x311cd9,_0x5c6b30){const _0x7c78c7=_0x5c6b30['schema']['isObject'](_0x311cd9)||_0x5c6b30['schema']['isSelectable'](_0x311cd9);return _0x5c6b30['createRange'](_0x5c6b30['createPositionAt'](_0x311cd9,'before'),_0x7c78c7?_0x5c6b30['createPositionAfter'](_0x311cd9):_0x5c6b30['createPositionAt'](_0x311cd9,'end'));}function zt(_0x24d091,_0x46056b,_0x473c47,_0xfe6ed5){return!!Wt(_0x24d091,_0x46056b)&&_0x473c47['end']['isEqual'](_0xfe6ed5['start']);}function Wt(_0x17c485,_0x5ae3c7){if(!_0x17c485['_isDataLoaded']||!_0x5ae3c7['_isDataLoaded'])return!0x1;const _0x4621ea=new Set(Object['keys'](_0x17c485['attributes'])),_0x1b2fcf=new Set(Object['keys'](_0x5ae3c7['attributes']));if(_0x4621ea['delete']('groupId'),_0x1b2fcf['delete']('groupId'),0x0==_0x4621ea['size']&&0x0==_0x1b2fcf['size'])return!0x0;if(_0x4621ea['size']!=_0x1b2fcf['size'])return!0x1;const _0x1a7738={..._0x17c485['attributes']},_0x318e17={..._0x5ae3c7['attributes']};return delete _0x1a7738['groupId'],delete _0x318e17['groupId'],JSON['stringify'](_0x1a7738)==JSON['stringify'](_0x318e17);}function Qt(_0x462a8f,_0x4e22f0){const _0x26e22c=Xt(_0x462a8f['attributes']),_0x1f1953=Xt(_0x4e22f0);if(!_0x462a8f['_isDataLoaded'])return!0x1;for(const _0x78c974 of Object['keys'](_0x1f1953))if(!_0x1ca487(_0x26e22c[_0x78c974],_0x1f1953[_0x78c974]))return!0x1;return!0x0;}function Xt(_0x2be148){const _0x4f57c0=Object['assign']({},_0x2be148);return delete _0x4f57c0['skipNestingCheck'],delete _0x4f57c0['tablePasteChainId'],_0x4f57c0;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4528d6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4ef8f7,_0x58e172,_0x13c01b,_0xea776d){super(),this['model']=_0x58e172,this['view']=_0x13c01b,this['commentThreadController']=_0xea776d,this['_editor']=_0x4ef8f7,this['_acceptCommand']=_0x4ef8f7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4ef8f7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x305ba9,_0xf9a1b7)=>_0x305ba9||_0xf9a1b7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x324a10=>_0x324a10&&this['_editor']['model']['canEditAt'](_0x58e172['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x174024=>_0x174024&&this['_editor']['model']['canEditAt'](_0x58e172['getRanges']())),this['_pendingAction']=null,_0x13c01b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x13c01b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x13c01b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x13c01b,'change:isDirty',()=>{_0x13c01b['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 _0x5afbe4=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5afbe4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1463b7{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3cbb30,_0x37058f,_0x2bec36,_0x35da46){super(_0x3cbb30),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2d0a95(_0x3cbb30,c(_0x3cbb30,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x37058f['authoredAt']),this['bind']('authoredAt')['to'](_0x37058f),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',_0x37058f,'authoredAt',this,'descriptionParts',(_0x2d8610,_0x17d992,_0x3051a)=>{const _0x37521e=_0x3051a['map'](_0x326565=>ls(_0x326565['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2d8610-0x1,_0x37058f['author']['name'],_0x17d992?_0x35da46['formatDateTime'](_0x17d992):'',new DOMParser()['parseFromString'](_0x37521e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1bf68c(),this['focusTracker']=new _0xc57afb(),this['keystrokes']=new _0x449ed2(),this['focusCycler']=new _0x10fd90({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2e70a1=>_0x2e70a1['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x37058f,this['_localUser']=_0x2bec36,this['_config']=_0x35da46,_0x35da46['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x33c3cb(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x10cdd4}=this['_config'];this['commentsListView']=new _0x10cdd4(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',_0x598b77=>_0x598b77+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3f066c,_0x308179)=>_0x3f066c||!!_0x308179);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x42f908}=this['_config'],_0x1530b2=new _0x42f908(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x325ab2=_0x1530b2['commentInputView'];return _0x1530b2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x325ab2,'value',(_0x3fd536,_0x36e7f5,_0x9331e9)=>!!_0x9331e9||_0x3fd536&&!_0x36e7f5),_0x325ab2['on']('submit',(_0x5e7983,_0x586bc7)=>{this['fire']('addComment',_0x586bc7),_0x325ab2['editor']['setData']('');}),_0x325ab2['on']('cancel',()=>this['focus']()),_0x325ab2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1530b2;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1df249,_0x10d002,_0x542dd8,_0xa6d0cb){super(_0x1df249,_0x10d002,_0x542dd8,_0xa6d0cb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5627f3=>_0x5627f3&&_0x5627f3[0x0]?_0x5627f3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xedf92a,_0x1c2dcf)=>{let _0x374bbc='';for(const _0x36e2c5 of _0xedf92a)_0x374bbc+='<p>'+ls(_0x36e2c5['content'],_0x36e2c5['color'])+'</p>';return _0x1c2dcf?_0x374bbc:ti(_0x374bbc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xa6d0cb['SuggestionView'](_0x1df249,_0x10d002,{'formatDateTime':_0xa6d0cb['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 _0x49100a=this['bindTemplate'],_0x28bb8a=[this['suggestionView']];return this['commentsListView']&&_0x28bb8a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x28bb8a['push'](this['commentThreadInputView']),_0x28bb8a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x49100a['if']('isActive','ck-suggestion-wrapper--active'),_0x49100a['to']('type',_0x5be0ef=>'ck-suggestion-'+_0x5be0ef),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':_0x49100a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x28bb8a};}['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 _0x1463b7{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1fee51,_0x24f27c,_0x41357c){super(_0x1fee51),this['_model']=_0x24f27c,this['_config']=_0x41357c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x24f27c),this['acceptButton']=this['_createButton'](c(_0x1fee51,'Accept\x20suggestion'),_0x25268e,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1fee51,'Discard\x20suggestion'),_0x1fa8ec,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x18055f(_0x1fee51,_0x24f27c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1bf68c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc57afb(),this['keystrokes']=new _0x449ed2(),this['focusCycler']=new _0x10fd90({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x47dddb=>_0x47dddb['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x50f00e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x50f00e['innerHTML']=this['description'],this['on']('change:description',(_0x2d7b96,_0x369221,_0x20f0b5)=>{_0x50f00e['innerHTML']=_0x20f0b5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x56dbc0=this['bindTemplate'],_0x1b99f4=[{'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':_0x56dbc0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x56dbc0['to']('authoredAt',_0x53ab8e=>this['_config']['formatDateTime'](_0x53ab8e))}]}]},{'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']&&_0x1b99f4['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':_0x1b99f4}]};}['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'](_0x162d53,_0x50f75c,_0x14106e,_0x1e6de6,_0x145416){const _0x1c7acc=new _0x198514(this['locale']);return _0x1c7acc['set']({'label':_0x162d53,'icon':_0x50f75c,'tooltip':!0x0,'tooltipPosition':_0x145416}),_0x1c7acc['extendTemplate']({'attributes':{'class':_0x14106e}}),_0x1c7acc['on']('execute',()=>{this['fire'](_0x1e6de6,this['_model']['id']);}),_0x1c7acc;}['_setupKeyboardNavigation'](){const _0x1d0f6e=this['element'];this['keystrokes']['listenTo'](_0x1d0f6e);for(const _0x257089 of this['focusables'])this['focusTracker']['add'](_0x257089['element']),this['keystrokes']['listenTo'](_0x257089['element']);this['keystrokes']['set']('enter',(_0x27849c,_0xc1ce1f)=>{_0x1d0f6e===_0x27849c['target']&&(this['focusCycler']['focusFirst'](),_0xc1ce1f());}),this['keystrokes']['set']('esc',(_0x40ae10,_0x183fa8)=>{_0x1d0f6e!==_0x40ae10['target']&&(this['focus'](),_0x183fa8());});}}class d extends _0x3e269d{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5ec89e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d3b22){super(_0x5d3b22),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x437554=this['editor']['config'];_0x437554['define']('trackChanges.SuggestionThreadView',fe),_0x437554['define']('trackChanges.SuggestionView',we),_0x437554['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x437554['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4e9a1d,_0x2448ce){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x36f943,_0x23a873]of this['_handleControllerBuffer']){const _0x2cd4dd=this['_suggestionToController']['has'](_0x36f943);_0x2cd4dd||_0x23a873?_0x2cd4dd&&_0x23a873&&this['_destroyController'](_0x36f943):this['_initializeController'](_0x36f943);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4e9a1d,_0x2448ce);}['init'](){const _0x264ea0=this['editor'],_0x44e051=_0x264ea0['plugins']['get']('TrackChangesEditing'),_0x5553d8=_0x264ea0['plugins']['get']('Annotations'),_0x302fa5=_0x264ea0['plugins']['get']('EditorAnnotations'),_0xd39220=_0x264ea0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x302fa5['addSourceCollector'](()=>{const _0x25c48e=[];for(const [_0x1d58c4,_0x3dbfaa]of Array['from'](this['_suggestionToController'])){const _0x36bbed=_0x1d58c4['getAllAdjacentSuggestions'](),_0x51d844=[];for(const _0x1ff67c of _0x36bbed){if(!_0x1ff67c['isInContent'])continue;if(_0x1ff67c['isMultiRange']){_0x51d844['push'](..._0x1ff67c['getRanges']());continue;}const _0x3fa9f3=_0x1ff67c['getFirstRange']();if(_0x51d844['length']>0x0){const _0x187add=_0x51d844[0x0]['getJoined'](_0x3fa9f3);if(_0x187add){_0x51d844[0x0]=_0x187add;continue;}}_0x51d844['push'](_0x3fa9f3);}_0x25c48e['push']([_0x3dbfaa['view'],_0x51d844]);}return _0x25c48e;}),this['listenTo'](_0x44e051,'suggestionLoaded',(_0x4d10a4,_0x49978e)=>{this['listenTo'](_0x49978e,'change:previous',(_0x57dc74,_0x3dda4d,_0x550869,_0x28a2e1)=>{_0x49978e['isInContent']&&(null==_0x550869?(this['_updateController'](_0x28a2e1['head']),this['_handleSuggestionControllerDelayed'](_0x49978e,!0x1)):(this['_updateController'](_0x550869['head']),null==_0x28a2e1&&this['_handleSuggestionControllerDelayed'](_0x49978e,!0x0)));}),null!==_0x49978e['previous']?this['_updateController'](_0x49978e['head']):this['_handleSuggestionControllerDelayed'](_0x49978e,!0x1);}),this['listenTo'](_0x44e051,'suggestionUnloaded',(_0x3cc6fd,_0x3749e0,_0x3bd5cd)=>{this['stopListening'](_0x3749e0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3749e0),this['_suggestionToController']['has'](_0x3749e0)&&this['_destroyController'](_0x3749e0),_0x3bd5cd&&this['_updateController'](_0x3bd5cd['head']);}),this['listenTo'](_0x44e051,'suggestionChanged',(_0x1ec986,_0x45eb65)=>{this['_updateController'](_0x45eb65);}),this['listenTo'](_0x5553d8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xd39220,'addComment',(_0x233cfa,{threadId:_0x288f2f,isFromAdapter:_0x310728})=>{if(_0x310728||!_0x44e051['hasSuggestion'](_0x288f2f))return;const _0x2b127c=_0x44e051['getSuggestion'](_0x288f2f);this['_suggestionToController']['get'](_0x2b127c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ccd6b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x79ffd4;for(const _0x84aa7f in _0x4ccd6b){const _0x2b2bc8=_0x84aa7f,_0x353943=_0x4ccd6b[_0x2b2bc8];if('trackChangesLicenseKeyValid'==_0x353943||'trackChangesLicenseKeyInvalid'==_0x353943||'trackChangesLicenseKeyExpired'==_0x353943||'trackChangesLicenseKeyDomainLimit'==_0x353943||'trackChangesLicenseKeyNotAllowed'==_0x353943||'trackChangesLicenseKeyEvaluationLimit'==_0x353943||'trackChangesLicenseKeyTrialLimit'==_0x353943||'trackChangesLicenseKeyUsageLimit'==_0x353943){delete _0x4ccd6b[_0x2b2bc8],_0x79ffd4=_0x353943,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x79ffd4&&_0x4ccd6b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x79ffd4&&_0x4ccd6b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x79ffd4&&_0x4ccd6b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x79ffd4&&_0x4ccd6b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x79ffd4&&_0x4ccd6b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x79ffd4&&_0x4ccd6b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x79ffd4&&_0x4ccd6b['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5775f6=this['editor']['plugins']['get']('Annotations'),_0x513bac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a85fb=Array['from'](_0x5775f6['activeAnnotations'],_0x1d51bd=>_0x1d51bd['innerView'])['filter'](_0x3613a0=>this['_viewToController']['has'](_0x3613a0)),_0x27aaa1=[];for(const _0x5531bd of _0x4a85fb){const _0x27120f=this['_viewToController']['get'](_0x5531bd)['model']['getAllAdjacentSuggestions']();_0x27aaa1['push'](..._0x27120f['reduce']((_0x2de094,_0x80e99)=>[..._0x2de094,..._0x80e99['getMarkerNames']()],[]));}_0x513bac['activeMarkers']=_0x27aaa1;}['_addUIComponentsToFactory'](){const _0x1c486f=this['editor'],_0x492533=_0x1c486f['locale'],_0x23cd2e=c(_0x492533,'Track\x20changes'),_0x5bb271=new _0x164fcb([{'type':'switchbutton','model':new _0x76b1a0({'withText':!0x0,'isToggleable':!0x0,'label':_0x23cd2e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x76b1a0({'withText':!0x0,'label':c(_0x492533,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x76b1a0({'withText':!0x0,'label':c(_0x492533,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x76b1a0({'withText':!0x0,'label':c(_0x492533,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x76b1a0({'withText':!0x0,'label':c(_0x492533,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1c486f['plugins']['has']('TrackChangesPreview')&&_0x5bb271['addMany']([{'type':'separator'},{'type':'button','model':new _0x76b1a0({'withText':!0x0,'label':c(_0x492533,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xe7d5b1 of _0x5bb271)if(ke(_0xe7d5b1)){const _0x4ca359=_0x1c486f['commands']['get'](_0xe7d5b1['model']['commandName']);_0xe7d5b1['model']['bind']('isOn','isEnabled')['to'](_0x4ca359,'value','isEnabled');}_0x1c486f['ui']['componentFactory']['add']('trackChanges',_0x48047d=>this['_createToolbarButton'](_0x48047d,_0x5bb271,_0x23cd2e)),_0x1c486f['ui']['componentFactory']['add']('menuBar:trackChanges',_0xab4c9b=>this['_createMenuBarMenu'](_0xab4c9b,_0x5bb271,_0x23cd2e));}['_createToolbarButton'](_0x50254e,_0x5c1875,_0x2b415b){const _0xfc8a17=_0xa404a6(_0x50254e,_0x34f17b),_0x3e1570=this['editor']['commands']['get']('trackChanges');_0xfc8a17['buttonView']['set']({'tooltip':_0x2b415b,'label':_0x2b415b,'icon':_0x356207}),_0xfc8a17['buttonView']['bind']('isOn')['to'](_0x3e1570,'value'),_0xfc8a17['buttonView']['on']('execute',()=>{_0x3e1570['execute'](),this['editor']['editing']['view']['focus']();}),_0x214f3c(_0xfc8a17,_0x5c1875,{'role':'menu'});const _0x321702=[];for(const _0x116be6 of _0x5c1875)ke(_0x116be6)&&_0x321702['push'](this['editor']['commands']['get'](_0x116be6['model']['commandName']));const _0x99ec35=_0xfc8a17['buttonView'];return _0x99ec35['actionView']['unbind']('isEnabled'),_0x99ec35['arrowView']['unbind']('isEnabled'),_0x99ec35['actionView']['bind']('isEnabled')['to'](_0x3e1570,'isEnabled'),_0x99ec35['arrowView']['bind']('isEnabled')['toMany'](_0x321702,'isEnabled',(..._0x46c84e)=>_0x46c84e['some'](_0x443791=>_0x443791)),_0xfc8a17['on']('execute',_0x189b08=>{this['editor']['execute'](_0x189b08['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xfc8a17;}['_createMenuBarMenu'](_0x18d2bf,_0x3532ab,_0x1f538a){const _0x1317e1=new _0x51ca67(_0x18d2bf),_0x4319dd=this['editor']['commands']['get']('trackChanges');_0x1317e1['buttonView']['set']({'label':_0x1f538a,'icon':_0x356207});const _0xe88bab=new _0x256da7(_0x18d2bf);for(const _0x5ae952 of _0x3532ab){if('separator'==_0x5ae952['type']){_0xe88bab['items']['add'](new _0x1143ba(_0x18d2bf));continue;}const _0x8a8628=new _0x3d4f7e(_0x18d2bf,_0x1317e1),_0x201e09=new _0x4ea7a1(_0x18d2bf),_0x4d0e5f=_0x5ae952['model'];_0x201e09['bind'](...Object['keys'](_0x4d0e5f))['to'](_0x4d0e5f),_0x201e09['delegate']('execute')['to'](_0x1317e1),_0x201e09['on']('execute',()=>{this['editor']['execute'](_0x4d0e5f['commandName']),this['editor']['editing']['view']['focus']();}),_0x8a8628['children']['add'](_0x201e09),_0xe88bab['items']['add'](_0x8a8628);}return _0x1317e1['bind']('isEnabled')['to'](_0x4319dd,'isEnabled'),_0x1317e1['panelView']['children']['add'](_0xe88bab),_0x1317e1;}['_initializeController'](_0x20a38f){const _0x36315a=this['editor'],_0x768e7b=_0x36315a['config'],_0x323d05=_0x36315a['plugins']['get']('Annotations'),_0x518f19=_0x36315a['plugins']['get']('CommentsRepository'),_0x551d22=_0x36315a['plugins']['get']('EditorAnnotations'),_0x5b1774=_0x36315a['plugins']['get'](_0x5ec89e)['me'],_0xfebec7=_0x768e7b['get']('trackChanges')['SuggestionThreadView'],_0x5a10e8=_0x768e7b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2f4896,CommentThreadInputView:_0x50c324}=_0x36315a['plugins']['get']('CommentsUI');let _0x3a4fd6,_0x53becf,_0x17902c;this['_annotationViews']['has'](_0x20a38f['id'])?(_0x53becf=this['_annotationViews']['get'](_0x20a38f['id']),_0x3a4fd6=_0x53becf['mainView']):(_0x3a4fd6=new _0xfebec7(_0x36315a['locale'],_0x20a38f,_0x5b1774,{'disableComments':this['_disableComments'],'editorConfig':{..._0x768e7b['get']('comments.editorConfig'),'licenseKey':_0x768e7b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x768e7b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x768e7b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x768e7b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xd75f1d(_0x768e7b['get']('locale')),'CommentView':_0x768e7b['get']('comments')['CommentView'],'CommentsListView':_0x2f4896,'CommentThreadInputView':_0x50c324,'SuggestionView':_0x5a10e8}),_0x3a4fd6['suggestionView']['acceptButton']['on']('execute',()=>{_0x36315a['editing']['view']['focus']();}),_0x3a4fd6['suggestionView']['discardButton']['on']('execute',()=>{_0x36315a['editing']['view']['focus']();}),_0x53becf=_0x323d05['createAnnotationView'](this['editor']['locale'],_0x3a4fd6),_0x53becf['bind']('isDirty')['to'](_0x3a4fd6,'isDirty'),_0x53becf['bind']('length')['to'](_0x3a4fd6),_0x53becf['bind']('type')['to'](_0x3a4fd6,'type',_0x2d1ece=>'suggestion-'+_0x2d1ece),_0x3a4fd6['on']('escape',()=>{_0x17902c['fire']('escape');}),this['_annotationViews']['set'](_0x20a38f['id'],_0x53becf));const _0x2d57b1=_0x518f19['createCommentThreadController'](_0x20a38f['commentThread'],_0x3a4fd6),_0x5c019d=new pe(_0x36315a,_0x20a38f,_0x3a4fd6,_0x2d57b1),_0x52a40e=_0x20a38f['getAllAdjacentSuggestions']()['filter'](_0x11b800=>_0x11b800['isInContent']);_0x3a4fd6['descriptionParts']=_0x36315a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x52a40e),this['_suggestionToController']['set'](_0x20a38f,_0x5c019d),this['_viewToController']['set'](_0x3a4fd6,_0x5c019d),_0x17902c=_0x323d05['createAnnotation']({'view':_0x53becf,'target':()=>{const _0x325261=[],_0x1df35f=_0x20a38f['getAllAdjacentSuggestions']()['filter'](_0x561c26=>_0x561c26['isInContent']);for(const _0x433134 of _0x1df35f)_0x325261['push'](..._0x433134['getMarkers']());return _0x12da23(_0x36315a['editing'],_0x325261);},'type':()=>'suggestion-'+_0x5c019d['view']['type']}),_0x518f19['_bindAnnotationToEditors'](_0x3a4fd6,_0x17902c),_0x323d05['add'](_0x17902c),_0x551d22['registerAnnotation'](_0x17902c);}['_destroyController'](_0x490c71){const _0x47e831=this['editor']['plugins']['get']('CommentsRepository'),_0x3b193f=this['editor']['plugins']['get']('Annotations'),_0x4728fd=this['_suggestionToController']['get'](_0x490c71),_0x1e5587=_0x4728fd['view'],_0x7e3b7b=_0x3b193f['getByInnerView'](_0x1e5587);_0x47e831['_unbindEditors'](_0x1e5587),_0x7e3b7b&&_0x3b193f['remove'](_0x7e3b7b),this['_suggestionToController']['delete'](_0x490c71),this['_viewToController']['delete'](_0x1e5587),_0x4728fd['destroy']();}['_updateController'](_0x4275d5){if(!_0x4275d5['isInContent']||!this['_suggestionToController']['has'](_0x4275d5))return;const _0x5d4875=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dd7e0=this['_suggestionToController']['get'](_0x4275d5),_0x3df3ab=_0x4275d5['getAllAdjacentSuggestions']();_0x5dd7e0['view']['descriptionParts']=_0x5d4875['descriptionFactory']['getDescriptions'](_0x3df3ab);}['destroy'](){for(const _0x227c08 of this['_suggestionToController']['keys']())this['_destroyController'](_0x227c08);for(const _0x254f79 of this['_annotationViews']['values']())_0x254f79['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x222955){return'model'in _0x222955;}class k extends _0x3e269d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xfdc781){this['editor']['plugins']['get'](p)['adapter']=_0xfdc781;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2e534f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2e534f);}['getSuggestions']({skipNotAttached:_0x3aa56c=!0x1,toJSON:_0x2bc34e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3aa56c,'toJSON':_0x2bc34e});}['getSuggestion'](_0x455ff2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x455ff2);}}const w=['Pagination'];class T extends _0x3e269d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c0b33=this['editor'];if(_0x3c0b33['config']['define']('trackChangesData.editorCreator',_0x1fc669=>{const _0x2f7fdd=_0x3c0b33['model']['document']['getRootNames']()['reduce']((_0x3a1983,_0x19748c)=>(_0x3a1983[_0x19748c]='',_0x3a1983),{});return _0x3c0b33['constructor']['create'](_0x2f7fdd,_0x1fc669);}),'function'!=typeof _0x3c0b33['config']['get']('trackChangesData')['editorCreator'])throw new _0x18e16a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x412a54){return N(this['editor'],!0x0,_0x412a54);}['getDataWithDiscardedSuggestions'](_0x434b55){return N(this['editor'],!0x1,_0x434b55);}}class D extends _0x3e269d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34ffa1){function _0x26ce0e(_0x540c21){return _0x540c21['map'](_0x504dfd=>String['fromCharCode'](_0x504dfd))['join']('');}super(_0x34ffa1),this['result']='end',_0x34ffa1[_0x26ce0e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26ce0e([0x76,0x69,0x65,0x77])][_0x26ce0e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26ce0e([0x61,0x75,0x74,0x6f]),_0x34ffa1[_0x26ce0e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x26ce0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26ce0e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x26ce0e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x26ce0e([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(_0x29fa84){return void 0x0!==_0x29fa84['getRootsAttributes'];}async function N(_0x1fb64c,_0x4d1a2e,_0xf63e39){const _0x360de8=_0x1be598(_0x1fb64c,w);_0x360de8['plugins']['push'](p,D),_0x360de8['rootsAttributes']=Fe(_0x1fb64c)?_0x1fb64c['getRootsAttributes']():void 0x0;const _0x33a860=document['createDocumentFragment'](),_0x58ab94=_0x1fb64c['config']['get']('trackChangesData')['editorCreator'],_0x3f7d2a=await _0x58ab94(_0x360de8,()=>function(_0x4ce8c5){const _0x5deffc=document['createElement']('div');return _0x4ce8c5['appendChild'](_0x5deffc),_0x5deffc;}(_0x33a860));!function(_0x2d573d,_0x551aa7){const _0x237859=_0x2d573d['model']['document']['getRootNames']()['reduce']((_0x1147e1,_0x53fe2a)=>(_0x1147e1[_0x53fe2a]=_0x2d573d['data']['get']({'rootName':_0x53fe2a}),_0x1147e1),{}),_0x4adac6=_0x2d573d['plugins']['get']('Users')['users']['map'](_0x5d026a=>({'id':_0x5d026a['id'],'name':_0x5d026a['name']})),_0x4a6d86=_0x2d573d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10f34f=_0x2d573d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43f4c7=_0x551aa7['plugins']['get']('Users'),_0x2e13a8=_0x551aa7['plugins']['get']('TrackChangesEditing'),_0x1eca51=_0x551aa7['plugins']['get']('CommentsRepository');for(const _0xa52055 of _0x1eca51['getCommentThreads']())_0xa52055['remove']();for(const _0x3df0f7 of _0x4adac6)_0x43f4c7['getUser'](_0x3df0f7['id'])||_0x43f4c7['addUser'](_0x3df0f7);_0x43f4c7['me']||_0x43f4c7['useAnonymousUser']();for(const _0x552fcc of _0x10f34f)_0x1eca51['addCommentThread'](_0x552fcc);for(const _0x2c3890 of _0x4a6d86)_0x2e13a8['addSuggestionData'](_0x2c3890);_0x551aa7['data']['set'](_0x237859);}(_0x1fb64c,_0x3f7d2a),_0x3f7d2a['execute'](_0x4d1a2e?'acceptAllSuggestions':'discardAllSuggestions');const _0x4d08c9=Fe(_0x3f7d2a)?_0x3f7d2a['getFullData'](_0xf63e39):_0x3f7d2a['data']['get'](_0xf63e39);return await _0x3f7d2a['destroy'](),_0x4d08c9;}class Me extends _0x1463b7{['options'];constructor(_0x49bf57,_0x3e98f0){super(_0x49bf57),this['options']=_0x3e98f0,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'](_0x316934,_0x15d13f){if(!this['element'])return;const _0x350fd7=[];for(const [_0x5e50fb,_0x2426b9]of _0x316934){const _0x2c0dd0=document['createElement']('div');_0x2c0dd0['setAttribute']('data-ck-root-name',_0x5e50fb),_0x2c0dd0['className']=_0x2426b9['classes']+'\x20ck-track-changes-preview__root-container',_0x2c0dd0['innerHTML']=_0x2426b9['content'],_0x350fd7['push'](_0x2c0dd0);}_0x15d13f(this['element'],_0x350fd7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x37ce87{constructor(_0x847307){super(_0x847307),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x33cf9a=this['editor'],_0x5bb3e4=_0x33cf9a['locale'],_0x4a476e=_0x33cf9a['plugins']['get']('Dialog');let _0x2579aa;const _0x45dd05=function(_0x57d335){const _0x5074f3={};if('editables'in _0x57d335['ui']['view']){for(const [_0x4876d4,_0x34d352]of Object['entries'](_0x57d335['ui']['view']['editables']))_0x5074f3[_0x4876d4]=_0x34d352['element'];}else _0x5074f3[_0x57d335['model']['document']['getRootNames']()[0x0]]=_0x57d335['ui']['view']['editable']['element'];return _0x5074f3;}(_0x33cf9a),_0x54f229=function(_0xb2f7dc){let _0x2a321c=0x0;for(const _0x49b81f of Object['values'](_0xb2f7dc))_0x2a321c=Math['max'](_0x2a321c,_0x49b81f['getBoundingClientRect']()['width']);let _0x2a2a9d=0x0;for(const _0x2cbaf8 of Object['values'](_0xb2f7dc))_0x2a2a9d+=_0x2cbaf8['getBoundingClientRect']()['height'];const _0x38e462=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x347f21=Math['min'](_0x2a2a9d,_0x38e462);return{'width':_0x2a321c,'height':_0x347f21};}(_0x45dd05);_0x4a476e['show']({'id':'finalContentPreview','title':c(_0x5bb3e4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5bb3e4,{'dialogRects':_0x54f229}),'onHide':()=>{_0x2579aa['detachFromDom']();},'onShow':()=>{_0x33cf9a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x12edc8=>{const _0x58dac5=this['_standarizeRootsData'](_0x12edc8,_0x33cf9a,_0x45dd05);_0x4a476e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x58dac5,_0x33cf9a['config']['get']('trackChanges.preview.renderFunction'));}),_0x2579aa=new _0x1292bb(_0x5bb3e4,[_0x4a476e['view']]),_0x2579aa['attachToDom'](),_0x2579aa['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x33cf9a['once']('destroy',()=>{_0x2579aa['detachFromDom']();});const _0x6a92f6=_0x4a476e['view']['headerView']['class'];_0x4a476e['view']['headerView']['class']=_0x6a92f6?_0x6a92f6+'\x20ck-reset_all':'ck-reset_all',_0x4a476e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4a476e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1206cc=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2d2609=_0x1206cc['previewMode'],_0x16bd6d={};if('$labels'===_0x2d2609){for(const _0x361507 of _0x1206cc['getMergeFieldsIds']())_0x16bd6d[_0x361507]=_0x1206cc['getLabel'](_0x361507)||_0x361507;}else{const _0x3c3a06='$defaultValues'===_0x2d2609?_0x1206cc['getDefaultValues']():_0x1206cc['getDataSetValues'](_0x2d2609,!0x0);for(const _0x1f0065 of Object['entries'](_0x3c3a06)){const [_0x236f22,_0xe6ed5d]=_0x1f0065;_0x16bd6d[_0x236f22]=null!==_0xe6ed5d?_0xe6ed5d:_0x1206cc['getLabel'](_0x236f22)||_0x236f22;}}return{'mergeFieldsData':_0x16bd6d};}['_standarizeRootsData'](_0x13ccd1,_0x2f7d7e,_0x2d3b61){let _0x47e8b3;if('string'==typeof _0x13ccd1){const _0xa62629=_0x2f7d7e['model']['document']['getRootNames']()[0x0];_0x47e8b3={[_0xa62629]:_0x13ccd1};}else _0x47e8b3=_0x13ccd1;const _0x20e378=this['_fixMediaEmbeds'](_0x47e8b3,_0x2f7d7e),_0x263617=function(_0x501e64,_0x347620){for(const [_0x1b6909,_0x54839c]of _0x501e64)_0x54839c['classes']=_0x347620[_0x1b6909]['classList']['value']['replace']('ck-focused','');return _0x501e64;}(this['_sortRoots'](_0x2f7d7e)['reduce']((_0x18c90e,_0x144088)=>(_0x18c90e['push']([_0x144088,{'content':_0x20e378[_0x144088],'classes':''}]),_0x18c90e),[]),_0x2d3b61);return _0x263617;}['_fixMediaEmbeds'](_0x22141d,_0x40a596){if(!_0x40a596['plugins']['has']('MediaEmbedEditing'))return _0x22141d;const _0x14394f=_0x40a596['plugins']['get']('MediaEmbedEditing');for(const [_0x1e1dfc,_0x22a8d6]of Object['entries'](_0x22141d)){const _0x3f5ed6=document['createElement']('div');_0x3f5ed6['innerHTML']=_0x22a8d6,(_0x3f5ed6['querySelectorAll']('figure.media')['forEach'](_0x44d3b5=>{const _0x2f9151=_0x44d3b5['querySelector']('oembed');if(_0x2f9151){const _0x129a90=_0x2f9151['getAttribute']('url');if(_0x129a90){const _0x4eb1d5=_0x14394f['registry']['getMediaViewElement'](new _0xdb7e34(_0x40a596['editing']['view']['document']),_0x129a90,{'elementName':'','renderForEditingView':!0x0}),_0x35b9a7=document['createElement']('div');_0x35b9a7['classList']['add']('ck-media__wrapper'),_0x4eb1d5['render'](_0x35b9a7,_0x40a596['editing']['view']['domConverter']),_0x2f9151['replaceWith'](_0x35b9a7);}}}),_0x22141d[_0x1e1dfc]=_0x3f5ed6['innerHTML']);}return _0x22141d;}['_sortRoots'](_0x1e172a){if(!function(_0x4d72d9){return void 0x0!==_0x4d72d9['getRootsAttributes'];}(_0x1e172a))return _0x1e172a['model']['document']['getRootNames']();const _0x5f4933=[],_0x3e84f5=new Map();for(const _0x5bfff8 of _0x1e172a['model']['document']['getRootNames']()){const _0x2b8cb6=_0x1e172a['editing']['view']['getDomRoot'](_0x5bfff8)['getClientRects']()['item'](0x0);_0x5f4933['push'](_0x5bfff8),_0x3e84f5['set'](_0x5bfff8,_0x2b8cb6);}return _0x5f4933['sort']((_0x42a92a,_0x1feef5)=>{const _0x253540=_0x3e84f5['get'](_0x42a92a),_0x15381f=_0x3e84f5['get'](_0x1feef5);return _0x253540['y']-_0x15381f['y']||_0x253540['x']-_0x15381f['x'];}),_0x5f4933;}}class te extends _0x3e269d{static get['requires'](){return[T,_0x474954];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x169cd9){super(_0x169cd9),_0x169cd9['commands']['add']('previewFinalContent',new re(this['editor'])),_0x169cd9['config']['define']('trackChanges.preview.renderFunction',(_0x4ece1a,_0xaf3efb)=>{for(const _0x5cfb10 of _0xaf3efb)_0x4ece1a['appendChild'](_0x5cfb10);});}}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};
|