@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240708.0 → 0.0.0-nightly-20240709.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/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.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/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/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 ts,Plugin as
|
|
24
|
-
_0x1bee3c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x45f57c,_0x25c558){super(),this['id']=_0x25c558['id'],this['type']=_0x25c558['type'],this['subType']=_0x25c558['subType']||null,this['author']=_0x25c558['author'],this['creator']=_0x25c558['creator']||_0x25c558['author'],this['isExternal']=Boolean(_0x25c558['attributes']&&_0x25c558['attributes']['@external']),this['data']=null,this['_model']=_0x45f57c,this['_onAccept']=_0x25c558['onAccept'],this['_onDiscard']=_0x25c558['onDiscard'],this['_onAttributesChange']=_0x25c558['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x25c558['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 _0x2fcbf7=this;for(;_0x2fcbf7['previous'];)_0x2fcbf7=_0x2fcbf7['previous'];return _0x2fcbf7;}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'](_0x208627){this['_markerNames']['add'](_0x208627);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x66e2c1=>this['_model']['markers']['get'](_0x66e2c1))['filter'](_0x29e730=>_0x29e730);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4ad199=>{for(const _0x5b90be of this['getMarkers']())_0x4ad199['removeMarker'](_0x5b90be);}),this['_markerNames']['clear']();}['removeMarker'](_0x345053){this['_model']['change'](_0x50dfdd=>{_0x50dfdd['removeMarker'](_0x345053);}),this['_markerNames']['delete'](_0x345053);}['addRange'](_0x4f8f51){const _0x509e4f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x509e4f),this['_model']['change'](_0x5467fb=>{_0x5467fb['addMarker'](_0x509e4f,{'range':_0x4f8f51,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5f0933){for(const _0x9a3921 of this['getRanges']())if(_0x9a3921['isIntersecting'](_0x5f0933))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x77821d=>_0x77821d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x15efb9,_0x552ce6)=>[..._0x15efb9,..._0x552ce6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xc320c5=this['getRanges']();if(0x1!=_0xc320c5['length'])return null;const _0x317caf=_0xc320c5[0x0],_0x3d5233=_0x317caf['start']['nodeAfter'],_0x2f85a6=_0x317caf['end']['nodeBefore'];return _0x3d5233 instanceof _0x52ab7b?_0x3d5233!=_0x2f85a6?null:_0x3d5233: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 _0x29fef5=[];let _0x48730b=this['head'];for(;_0x48730b;)_0x29fef5['push'](_0x48730b),_0x48730b=_0x48730b['next'];return _0x29fef5;}['setAttribute'](_0x47e8d3,_0x2f6667){const _0x5dcd11=_0x33a2e5(this['attributes']);_0x2d7a2a(_0x5dcd11,_0x47e8d3,_0x2f6667),_0xd4c736(_0x5dcd11,this['attributes'])||(this['attributes']=_0x5dcd11,this['_onAttributesChange'](_0x5dcd11));}['removeAttribute'](_0x5ede1a){const _0x3e8bcc=_0x33a2e5(this['attributes']);_0x196361(_0x3e8bcc,_0x5ede1a),_0xd4c736(_0x3e8bcc,this['attributes'])||(this['attributes']=_0x3e8bcc,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 _0x58019d()['substr'](0x1,0x5);}}function o(_0x52d362,_0xf0cf02,_0x525735){const t=_0x52d362['t'];switch(_0xf0cf02){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x525735);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x525735);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x525735);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x525735);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x525735);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',_0x525735);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x525735);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x525735);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x525735);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x525735);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x525735);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x525735);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x525735);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x525735);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x525735);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x525735);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x525735);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x525735);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x525735);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x525735);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x525735);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x525735);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x525735);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'},_0x525735);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x525735);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x525735);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x525735);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x525735);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x525735);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'},_0x525735);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x525735);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x525735);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x525735);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x525735);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'},_0x525735);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x525735);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'},_0x525735);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'},_0x525735);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x525735);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'},_0x525735);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x525735);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'},_0x525735);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x525735);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x525735);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x525735);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x525735);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xf0cf02;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2ee4a4,_0x3d4f14){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2ee4a4,this['_locale']=_0x3d4f14;}['getDescriptions'](_0x18ffa7){const _0x717083=[],_0x57e640=new Set(),_0x4bbb42=new Set();for(let _0x3c4645=0x0;_0x3c4645<_0x18ffa7['length'];_0x3c4645++){const _0x2372db=_0x18ffa7[_0x3c4645];if(!_0x2372db['isInContent'])continue;const _0x57b1f6=this['_handleCustomCallbackDescription'](_0x2372db);if(_0x57b1f6){if(null!=_0x2372db['subType']){if(_0x57e640['has'](_0x2372db['subType']))continue;_0x57e640['add'](_0x2372db['subType']);}_0x717083['push'](_0x57b1f6);}else{if('attribute'!=_0x2372db['type'])'insertion'!=_0x2372db['type']&&'deletion'!=_0x2372db['type']||this['_handleInsertRemoveSuggestionDescription'](_0x717083,_0x2372db,_0x18ffa7[_0x3c4645+0x1]);else{const _0x2e6790=_0x2372db['data']['key'];if(_0x4bbb42['has'](_0x2e6790))continue;_0x4bbb42['add'](_0x2372db['data']['key']),_0x2e6790==m?this['_handleRenameSuggestionDescription'](_0x717083,_0x2372db):this['_handleAttributeSuggestionDescription'](_0x717083,_0x2372db);}}}return this['_resolveDescriptionItems'](_0x717083);}['registerDescriptionCallback'](_0x4a4488){this['_customCallbacks']['push'](_0x4a4488);}['registerElementLabel'](_0x33f8f4,_0x3cb07a,_0x3dbf7a=_0x3f0408['normal']){'function'==typeof _0x33f8f4?_0x255c0b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x33f8f4,'label':_0x3cb07a,'priority':_0x3dbf7a}):this['_itemLabels']['set'](_0x33f8f4,_0x3cb07a);}['registerAttributeLabel'](_0x763d44,_0x4cccdc){this['_attributeLabels']['set'](_0x763d44,_0x4cccdc);}['getItemLabel'](_0x359260,_0x189be7=0x1){let _0x39103b;for(const _0x3ccccb of this['_itemLabelsCallbacks'])if(_0x3ccccb['matchingCallback'](_0x359260)){_0x39103b=_0x3ccccb['label'];break;}return _0x39103b||(_0x39103b=this['_itemLabels']['get'](_0x359260['name'])),_0x39103b?_0x39103b(_0x189be7):0x1!==_0x189be7?_0x189be7+'\x20'+_0x359260['name']+'s':''+_0x359260['name'];}['_addDescriptionItems'](_0x30355f,_0x319433){const _0x313170=_0x319433['getFirstRange']()['getWalker'](),_0x3642ee='insertion'==_0x319433['type']?'add':'remove';for(const _0x8acc2e of _0x313170){const _0x4cfdd0=_0x8acc2e['item'],_0x4404d1=_0x30355f[_0x30355f['length']-0x1];if(_0x4cfdd0['is']('$textProxy'))_0x4404d1&&_0x4404d1['type']['indexOf']('Container')>-0x1&&_0x30355f['pop'](),_0x4404d1&&'text'==_0x4404d1['type']?_0x4404d1[_0x3642ee]+=_0x4cfdd0['data']:_0x30355f['push']({'type':'text','add':'add'==_0x3642ee?_0x4cfdd0['data']:'','remove':'remove'==_0x3642ee?_0x4cfdd0['data']:''});else{if(this['_schema']['isObject'](_0x4cfdd0)){const _0x4bb9e4=_0x4cfdd0;if(_0x4404d1&&_0x4404d1['type']['indexOf']('Container')>-0x1&&_0x30355f['pop'](),'elementEnd'==_0x8acc2e['type'])continue;_0x4404d1&&_0x4404d1['type']==_0x3642ee+'Object'&&_0x4404d1['element']['name']==_0x4bb9e4['name']?_0x4404d1['quantity']++:_0x30355f['push']({'type':_0x3642ee+'Object','element':_0x4bb9e4,'quantity':0x1}),_0x313170['skip'](_0x29e8a6=>!('elementEnd'==_0x29e8a6['type']&&_0x29e8a6['item']==_0x4cfdd0));}else{if(this['_schema']['checkChild'](_0x4cfdd0,'$text')||_0x4cfdd0['is']('element','softBreak')){const _0x1275cf=_0x4cfdd0;if('add'==_0x3642ee&&'elementStart'==_0x8acc2e['type']||'remove'==_0x3642ee&&'elementEnd'==_0x8acc2e['type'])continue;if(_0x4404d1&&-0x1==_0x4404d1['type']['indexOf']('Container')){'text'==_0x4404d1['type']&&(_0x4404d1[_0x3642ee]+='\x0a');continue;}let _0x2426e7;if(_0x2426e7='add'==_0x3642ee?_0x1275cf['nextSibling']&&!this['_schema']['isObject'](_0x1275cf['nextSibling'])?_0x1275cf['nextSibling']:null:_0x1275cf['previousSibling']&&!this['_schema']['isObject'](_0x1275cf['previousSibling'])?_0x1275cf['previousSibling']:null,_0x1275cf['isEmpty']||_0x2426e7&&_0x2426e7['isEmpty']){const _0x337a71=_0x2426e7&&_0x2426e7['isEmpty']?_0x2426e7:_0x1275cf;_0x4404d1&&_0x4404d1['type']==_0x3642ee+'EmptyContainer'&&_0x4404d1['element']['name']==_0x337a71['name']?_0x4404d1['quantity']++:_0x30355f['push']({'type':_0x3642ee+'EmptyContainer','element':_0x337a71,'quantity':0x1});}else _0x30355f['push']({'type':_0x3642ee+'Container','element':_0x1275cf});}}}}}['_resolveDescriptionItems'](_0x598c0d){const _0x1a492a=this['_locale'],_0x3b0b46=[],_0x31ea41=[],_0x1d6f41=[];for(const _0x4189f8 of _0x598c0d)switch(_0x4189f8['type']){case'text':if(_0x4189f8['add']=_0x4189f8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4189f8['remove']=_0x4189f8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4189f8['add']&&''!=_0x4189f8['remove']){_0x3b0b46['push']({'type':'replace','content':o(_0x1a492a,'REPLACE_TEXT',['\x22'+_0x4189f8['remove']+'\x22','\x22'+_0x4189f8['add']+'\x22'])});continue;}if(null!=_0x4189f8['add']['match'](/^ +$/)){_0x3b0b46['push']({'type':'insertion','content':o(_0x1a492a,'*Insert:*\x20%0',o(_0x1a492a,'ELEMENT_SPACE',_0x4189f8['add']['length']))});continue;}if(null!=_0x4189f8['remove']['match'](/^ +$/)){_0x3b0b46['push']({'type':'deletion','content':o(_0x1a492a,'*Remove:*\x20%0',o(_0x1a492a,'ELEMENT_SPACE',_0x4189f8['remove']['length']))});continue;}if(''!=_0x4189f8['add']){_0x3b0b46['push']({'type':'insertion','content':o(_0x1a492a,'*Insert:*\x20%0','\x22'+_0x4189f8['add']+'\x22')});continue;}_0x3b0b46['push']({'type':'deletion','content':o(_0x1a492a,'*Remove:*\x20%0','\x22'+_0x4189f8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3b0b46['push']({'type':'insertion','content':o(_0x1a492a,'*Insert:*\x20%0',this['getItemLabel'](_0x4189f8['element'],_0x4189f8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3b0b46['push']({'type':'deletion','content':o(_0x1a492a,'*Remove:*\x20%0',this['getItemLabel'](_0x4189f8['element'],_0x4189f8['quantity']))});continue;case'addContainer':_0x3b0b46['push']({'type':'insertion','content':o(_0x1a492a,'*Split:*\x20%0',this['getItemLabel'](_0x4189f8['element'],_0x4189f8['quantity']))});continue;case'removeContainer':_0x3b0b46['push']({'type':'deletion','content':o(_0x1a492a,'*Merge:*\x20%0',this['getItemLabel'](_0x4189f8['element'],_0x4189f8['quantity']))});continue;case'addFormat':_0x31ea41['push'](_0x4189f8['key']);continue;case'removeFormat':_0x1d6f41['push'](_0x4189f8['key']);continue;default:_0x3b0b46['push'](_0x4189f8);}if(_0x31ea41['length']){const _0x13647d=_0x31ea41['map'](_0x33a63c=>this['_attributeLabels']['has'](_0x33a63c)?this['_attributeLabels']['get'](_0x33a63c):_0x33a63c)['join'](',\x20');_0x3b0b46['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x13647d)});}if(_0x1d6f41['length']){const _0x453664=_0x1d6f41['map'](_0xa1dff5=>this['_attributeLabels']['has'](_0xa1dff5)?this['_attributeLabels']['get'](_0xa1dff5):_0xa1dff5)['join'](',\x20');_0x3b0b46['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x453664)});}return _0x3b0b46;}['_handleCustomCallbackDescription'](_0x1833bf){for(const _0x4bee4e of this['_customCallbacks']){const _0x371800=_0x4bee4e(_0x1833bf);if(_0x371800&&'type'in _0x371800)return _0x371800;}}['_handleAttributeSuggestionDescription'](_0x19d98c,_0x4d2849){const _0x1f27ee=_0x4d2849['data'],_0x5a092c=void 0x0===_0x1f27ee['newValue']?'removeFormat':'addFormat';_0x19d98c['push']({'type':_0x5a092c,'key':_0x1f27ee['key']});}['_handleRenameSuggestionDescription'](_0x41e065,_0x162270){_0x41e065['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x162270['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x39356b,_0x5c39be,_0x58f33c){if(this['_addDescriptionItems'](_0x39356b,_0x5c39be),_0x58f33c&&_0x58f33c['getFirstRange']()&&!_0x5c39be['getFirstRange']()['end']['isEqual'](_0x58f33c['getFirstRange']()['start'])){const _0x1b26cd=_0x39356b[_0x39356b['length']-0x1],_0x1d242b='insertion'==_0x5c39be['type']?'add':'remove';_0x1b26cd&&'text'==_0x1b26cd['type']&&(_0x1b26cd[_0x1d242b]+='\x0a');}}}class E extends _0x11216f{['afterInit'](){const _0x3e07a9=this['editor'],_0x3dcb46=_0x3e07a9['plugins']['get']('TrackChangesEditing');_0x3e07a9['commands']['get']('showAIAssistant')&&_0x3dcb46['enableCommand']('showAIAssistant');}}class V extends _0x11216f{['afterInit'](){const _0x1762ee=this['editor'],_0x395e6b=_0x1762ee['locale'];if(!_0x1762ee['plugins']['has']('AlignmentEditing'))return;const _0xa68026=_0x1762ee['plugins']['get']('TrackChangesEditing');_0xa68026['enableDefaultAttributesIntegration']('alignment'),_0xa68026['registerBlockAttribute']('alignment'),_0xa68026['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x395e6b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x100e33=this['editor'],_0x38e9df=_0x100e33['locale'];_0x100e33['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49767e=>{if('formatBlock'!=_0x49767e['type'])return;const {data:_0x3c8f03}=_0x49767e;if(_0x3c8f03&&'alignment'==_0x3c8f03['commandName']){const _0x2fed83=_0x3c8f03['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x38e9df,'*Format:*\x20%0',function(_0x315c42){switch(_0x315c42){case'left':return o(_0x38e9df,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x38e9df,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x38e9df,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x38e9df,'FORMAT_JUSTIFY_TEXT');}}(_0x2fed83))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x11216f{['afterInit'](){const _0x516687=this['editor'],_0x2417ec=_0x516687['plugins']['get']('TrackChangesEditing'),_0x2bbd25=_0x516687['locale'];for(const _0x3bdd07 of ti){if(!_0x516687['plugins']['has'](_0x3bdd07))continue;const _0x4dc2f2=_0x3bdd07['slice'](0x0,-0x7)['toLowerCase'](),_0x46038c='FORMAT_'+_0x4dc2f2['toUpperCase']();_0x2417ec['enableDefaultAttributesIntegration'](_0x4dc2f2),_0x2417ec['registerInlineAttribute'](_0x4dc2f2),_0x2417ec['descriptionFactory']['registerAttributeLabel'](_0x4dc2f2,o(_0x2bbd25,_0x46038c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x213c1d=this['editor'],_0x2dac5f=_0x213c1d['locale'],_0x50a662=_0x213c1d['plugins']['get']('TrackChangesEditing');function _0x2f29ba(_0x4831a1,_0x320172){_0x50a662['descriptionFactory']['registerDescriptionCallback'](_0x2825b5=>{if('formatInline'!=_0x2825b5['type'])return;const {data:_0xda7ce}=_0x2825b5;return _0xda7ce&&_0xda7ce['commandName']===_0x4831a1?_0xda7ce['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2dac5f,'*Format:*\x20%0',_0x320172)}:{'type':'format','content':o(_0x2dac5f,'*Remove\x20format:*\x20%0',_0x320172)}:void 0x0;});}_0x2f29ba('bold',o(_0x2dac5f,'FORMAT_BOLD')),_0x2f29ba('italic',o(_0x2dac5f,'FORMAT_ITALIC')),_0x2f29ba('underline',o(_0x2dac5f,'FORMAT_UNDERLINE')),_0x2f29ba('code',o(_0x2dac5f,'FORMAT_CODE')),_0x2f29ba('strikethrough',o(_0x2dac5f,'FORMAT_STRIKETHROUGH')),_0x2f29ba('subscript',o(_0x2dac5f,'FORMAT_SUBSCRIPT')),_0x2f29ba('superscript',o(_0x2dac5f,'FORMAT_SUPERSCRIPT'));}}class O extends _0x11216f{['afterInit'](){const _0x4de078=this['editor'],_0x25ce4f=_0x4de078['locale'];if(!_0x4de078['plugins']['has']('BlockQuoteEditing'))return;const _0x35528c=_0x4de078['plugins']['get']('TrackChangesEditing'),_0xa66817=this['editor']['commands']['get']('blockQuote');_0x35528c['enableCommand']('blockQuote',(_0x35465c,_0x5dbecd={})=>{const _0x2cbbfa=this['editor']['model']['document']['selection'],_0x18f81f=_0x5dbecd&&void 0x0!==_0x5dbecd['forceValue']?_0x5dbecd['forceValue']:!_0xa66817['value'];let _0x3f4f1d=[];if(_0x18f81f){const _0x27dff1=Array['from'](_0x2cbbfa['getSelectedBlocks']())['filter'](_0x257204=>oo(_0x257204)||function(_0x1081c1,_0x2dca9d){const _0x525ae2=_0x2dca9d['checkChild'](_0x1081c1['parent'],'blockQuote'),_0x1c2976=_0x2dca9d['checkChild'](['$root','blockQuote'],_0x1081c1);return _0x525ae2&&_0x1c2976;}(_0x257204,this['editor']['model']['schema']));_0x3f4f1d=to(_0x27dff1,_0x4de078['model']);}else{const _0x5ce43f=Array['from'](_0x2cbbfa['getSelectedBlocks']())['filter'](_0x29e2eb=>oo(_0x29e2eb));_0x3f4f1d=to(_0x5ce43f,_0x4de078['model']);}_0x4de078['model']['change'](()=>{for(const _0x483ec2 of _0x3f4f1d)_0x35528c['markBlockFormat'](_0x483ec2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x18f81f}]});});}),_0x35528c['descriptionFactory']['registerDescriptionCallback'](_0x4ddb42=>{const {data:_0x437440}=_0x4ddb42;if(_0x437440&&'blockQuote'==_0x437440['commandName']){const _0x5826ba=o(_0x25ce4f,'ELEMENT_BLOCK_QUOTE');return _0x437440['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25ce4f,'*Set\x20format:*\x20%0',_0x5826ba)}:{'type':'format','content':o(_0x25ce4f,'*Remove\x20format:*\x20%0',_0x5826ba)};}});}}function oo(_0x5f557c){return'blockQuote'==_0x5f557c['parent']['name'];}class G extends _0x11216f{['afterInit'](){const _0x367a32=this['editor'];_0x367a32['plugins']['has']('CaseChange')&&(_0x367a32['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x367a32['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x367a32['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x11216f{['afterInit'](){const _0x1de51a=this['editor'];_0x1de51a['commands']['get']('ckbox')&&_0x1de51a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x11216f{['afterInit'](){const _0x46db99=this['editor'];if(!_0x46db99['plugins']['has']('CodeBlock'))return;const _0x4bef74=_0x46db99['plugins']['get']('TrackChangesEditing'),_0x2ffa28=_0x46db99['locale'],_0x3dd8d6=_0x46db99['config']['get']('codeBlock')['languages'],_0x58f04e=_0x46db99['commands']['get']('codeBlock');_0x4bef74['enableCommand']('indentCodeBlock'),_0x4bef74['enableCommand']('outdentCodeBlock'),_0x4bef74['enableCommand']('codeBlock',(_0x19bebe,_0x2c9e86={})=>{const _0x1d4987=_0x46db99['model'],_0x53713=_0x46db99['model']['document']['selection'],_0x1b6612=_0x2c9e86&&void 0x0!==_0x2c9e86['forceValue']?_0x2c9e86['forceValue']:!_0x58f04e['value'];let _0x191a91;_0x2c9e86['language']||(_0x2c9e86['language']=_0x3dd8d6[0x0]['language']),_0x191a91=_0x1b6612?Array['from'](_0x53713['getSelectedBlocks']())['filter'](_0xdcc7fc=>eo(_0xdcc7fc)||function(_0x398454,_0xd95a98){if(_0x398454['is']('rootElement')||_0xd95a98['isLimit'](_0x398454))return!0x1;return _0xd95a98['checkChild'](_0x398454['parent'],'codeBlock');}(_0xdcc7fc,_0x1d4987['schema'])):Array['from'](_0x53713['getSelectedBlocks']())['filter'](_0x336677=>eo(_0x336677));const _0x544184=to(_0x191a91,_0x1d4987);_0x1d4987['change'](()=>{for(const _0x245713 of _0x544184)_0x4bef74['markBlockFormat'](_0x245713,{'commandName':'codeBlock','commandParams':[{..._0x2c9e86,'forceValue':_0x1b6612}],'formatGroupId':'blockName'});});}),(_0x4bef74['descriptionFactory']['registerElementLabel']('codeBlock',_0x1e9af2=>o(_0x2ffa28,'ELEMENT_CODE_BLOCK',_0x1e9af2)),_0x4bef74['descriptionFactory']['registerDescriptionCallback'](_0x30881c=>{if('formatBlock'!=_0x30881c['type'])return;const _0x38d43f=_0x2ffa28['t'],{data:_0x20ecb2}=_0x30881c;if(!_0x20ecb2||'codeBlock'!=_0x20ecb2['commandName'])return;const _0x22fc0e=_0x20ecb2['commandParams'][0x0]['language'],_0x6a74fe=_0x38d43f(_0x3dd8d6['find'](_0x1d2041=>_0x1d2041['language']===_0x22fc0e)['label'])['toLowerCase']();return _0x20ecb2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ffa28,'*Set\x20format:*\x20%0',o(_0x2ffa28,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x6a74fe+')')}:{'type':'format','content':o(_0x2ffa28,'*Remove\x20format:*\x20%0',o(_0x2ffa28,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4880cc){return'codeBlock'==_0x4880cc['name'];}class H extends _0x11216f{['afterInit'](){const _0x42afef=this['editor'];if(!_0x42afef['plugins']['has']('CommentsEditing'))return;_0x42afef['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2684db,_0x25104b,_0x24d162){const _0x5478f2=[];for(const _0x5e8feb of _0x25104b['getItems']())_0x5e8feb['hasAttribute'](_0x2684db)&&_0x5478f2['push'](_0x24d162['createRangeOn'](_0x5e8feb));return _0x5478f2;}function _e(_0x516636,_0x9c173d,{showActiveMarker:_0x1f6736=!0x0}={}){const _0x26533a=_0x516636['plugins']['get']('TrackChangesEditing');return(_0x405433,_0xd822bd,_0x52c2ea)=>{if(!_0x52c2ea['consumable']['test'](_0xd822bd['markerRange'],_0x405433['name']))return;const _0x4d61ff=_0xd822bd['markerRange']['getWalker'](),_0x549c25=_0xd822bd['markerRange']['start'],_0x7d021e=_0x516636['model']['schema'];let _0x4dae0a=null,_0xaba30f=null,_0x2136a3=!0x1,_0x31d3a6=!0x1;for(const _0x22bf03 of _0x4d61ff){const _0x5ecf0f=_0x22bf03['item'];_0x2136a3=_0x2136a3||_0x7d021e['isContent'](_0x5ecf0f);const _0x74bd7b=_0x52c2ea['mapper']['toViewElement'](_0x5ecf0f);if(_0x74bd7b&&_0x74bd7b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x22bf03['type']&&(_0x7d021e['isBlock'](_0x5ecf0f)&&!_0x7d021e['isLimit'](_0x5ecf0f)&&(_0x5ecf0f['nextSibling']||_0x549c25['isAtEnd']?_0x4dae0a&&_0x4dae0a['parent']==_0x5ecf0f||(_0x4dae0a=_0x5ecf0f,_0x43888(_0x22bf03['previousPosition']),_0x31d3a6=!0x0):_0xaba30f=_0xaba30f||_0x22bf03['previousPosition']));}function _0x43888(_0x36f9c2){const _0x9105a9=_0x52c2ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x9c173d}),_0x56773b=_0x52c2ea['mapper']['toViewPosition'](_0x36f9c2);_0x1f6736&&_0x26533a['activeMarkers']['includes'](_0xd822bd['markerName'])&&_0x52c2ea['writer']['addClass']('ck-suggestion-marker--active',_0x9105a9),_0x52c2ea['writer']['insert'](_0x56773b,_0x9105a9),_0x52c2ea['mapper']['bindElementToMarker'](_0x9105a9,_0xd822bd['markerName']);}_0x2136a3||_0x31d3a6||!_0xaba30f||_0x43888(_0xaba30f);};}class q extends _0x11216f{static get['requires'](){return[_0x579c5a];}['init'](){const _0x5ac9e1=this['editor'],_0x23b107=_0x5ac9e1['plugins']['get']('TrackChangesEditing');_0x23b107['enableCommand']('delete');const _0x3fa460=_0x5ac9e1['commands']['get']('deleteForward');_0x23b107['enableCommand']('deleteForward',(_0x381e07,_0x3c7528={})=>{const _0x552d1d=_0x5ac9e1['model']['createSelection'](_0x5ac9e1['model']['document']['selection']);_0x552d1d['isCollapsed']&&_0x5ac9e1['model']['modifySelection'](_0x552d1d,{'direction':'forward','unit':_0x3c7528['unit']});const _0x46367c=_0x552d1d['getFirstRange'](),_0x520582=_0x17267b['fromRange'](_0x46367c);let _0x530adc;_0x381e07(_0x3c7528),_0x530adc='$graveyard'==_0x520582['root']['rootName']?_0x5ac9e1['model']['createRange'](_0x46367c['start']):_0x5ac9e1['model']['createRange'](_0x520582['start'],_0x520582['end']),_0x520582['detach'](),_0x5ac9e1['model']['enqueueChange'](_0x3fa460['buffer']['batch'],_0x2f1e7c=>{_0x3fa460['buffer']['lock'](),_0x2f1e7c['setSelection'](_0x2f1e7c['createRange'](_0x530adc['end'])),_0x3fa460['buffer']['unlock']();});}),_0x5ac9e1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5ac9e1,'merge'),{'priority':'high'}),_0x5ac9e1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x475acb,_0x39e54b,_0x5d98ba)=>{_0x5d98ba['options']['showSuggestionHighlights']&&_e(_0x5ac9e1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x475acb,_0x39e54b,_0x5d98ba);},{'priority':'high'}),_0x5ac9e1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5dcf80,_0x46ca29,_0x52b15a)=>{const _0x9fe00f=_0x52b15a['mapper']['markerNameToElements'](_0x46ca29['markerName']);if(_0x9fe00f){for(const _0x473946 of _0x9fe00f)_0x473946['is']('uiElement')&&(_0x52b15a['mapper']['unbindElementFromMarkerName'](_0x473946,_0x46ca29['markerName']),_0x52b15a['writer']['remove'](_0x473946));}},{'priority':'high'});}}class z extends _0x11216f{['afterInit'](){const _0x10b057=this['editor'];if(!_0x10b057['plugins']['has']('ListEditing'))return;const _0x4eaae0=_0x10b057['locale'],_0x5ba9c5=_0x10b057['plugins']['get']('TrackChangesEditing'),_0x12d26f=_0x10b057['plugins']['has']('TodoListEditing'),_0x304c79=!!_0x10b057['config']['get']('list.multiBlock');function _0x1003c9(_0x468d0d){return{'type':'format','content':''+o(_0x4eaae0,'*Set\x20format:*\x20%0',_0x468d0d)};}function _0x3bc7e0(_0x332a14){return{'type':'format','content':''+o(_0x4eaae0,'*Remove\x20format:*\x20%0',_0x332a14)};}_0x5ba9c5['enableDefaultAttributesIntegration']('numberedList'),_0x5ba9c5['enableDefaultAttributesIntegration']('bulletedList'),_0x5ba9c5['enableDefaultAttributesIntegration']('customNumberedList'),_0x5ba9c5['enableDefaultAttributesIntegration']('customBulletedList'),_0x5ba9c5['enableDefaultAttributesIntegration']('indentList'),_0x5ba9c5['enableDefaultAttributesIntegration']('outdentList'),_0x5ba9c5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5ba9c5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5ba9c5['registerBlockAttribute']('listItemId'),_0x5ba9c5['registerBlockAttribute']('listType'),_0x5ba9c5['registerBlockAttribute']('listIndent'),_0x304c79&&(_0x5ba9c5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5ba9c5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x12d26f&&(_0x5ba9c5['enableDefaultAttributesIntegration']('todoList'),_0x5ba9c5['enableDefaultAttributesIntegration']('checkTodoList'),_0x5ba9c5['registerBlockAttribute']('todoListChecked'),_0x5ba9c5['descriptionFactory']['registerDescriptionCallback'](_0x4af2af=>{const {data:_0x2544d7}=_0x4af2af;if(_0x2544d7&&'todoListChecked'==_0x2544d7['key'])return{'type':'format','content':_0x2544d7['newValue']?o(_0x4eaae0,'*Check\x20item*'):o(_0x4eaae0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5e97e4=>{if(_0x5e97e4['batch']['isUndo'])return!0x1;let _0xa8cd71=!0x1;const _0x270a52=_0x5ba9c5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46f436=>'todoListChecked'===_0x5ba9c5['_getAttributeKey'](_0x46f436));for(const _0x4fb8cf of _0x270a52){'todo'!=_0x4fb8cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5ba9c5['_findSuggestions'](_0x4fb8cf['getFirstRange'](),'attribute')['find'](_0x555faa=>'listType'===_0x5ba9c5['_getAttributeKey'](_0x555faa['suggestion']))||(_0x5e97e4['removeMarker'](_0x4fb8cf['getFirstMarker']()),_0xa8cd71=!0x0));}return _0xa8cd71;})),_0x5ba9c5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4eaae0,'FORMAT_INDENT'));const _0x4668ed={'type':'format','content':''};_0x5ba9c5['descriptionFactory']['registerDescriptionCallback'](_0x5b2c59=>{const {data:_0x4ffe4c}=_0x5b2c59;if(!_0x4ffe4c||'listType'!=_0x4ffe4c['key'])return;let _0x3cd099=_0x5b2c59['head'];for(;_0x3cd099;){if(_0x3cd099['data']&&(('listStyle'==_0x3cd099['data']['key']||'listMarkerStyle'==_0x3cd099['data']['key'])&&(_0x3cd099['data']['newValue']&&'default'!=_0x3cd099['data']['newValue']||'default'!=_0x3cd099['data']['oldValue']&&!_0x4ffe4c['newValue'])||!_0x304c79&&_0x3cd099['data']['key']==m))return _0x4668ed;_0x3cd099=_0x3cd099['next'];}if(null==_0x4ffe4c['newValue'])switch(_0x4ffe4c['oldValue']){case'bulleted':return _0x3bc7e0(o(_0x4eaae0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3bc7e0(o(_0x4eaae0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3bc7e0(o(_0x4eaae0,'ELEMENT_TODO_LIST'));}switch(_0x4ffe4c['newValue']){case'bulleted':return _0x1003c9(o(_0x4eaae0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1003c9(o(_0x4eaae0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1003c9(o(_0x4eaae0,'ELEMENT_TODO_LIST'));}}),_0x5ba9c5['descriptionFactory']['registerDescriptionCallback'](_0x4af54e=>{const {data:_0x41d751}=_0x4af54e;if(_0x41d751&&'listIndent'==_0x41d751['key'])return null==_0x41d751['newValue']||null==_0x41d751['oldValue']&&0x0==_0x41d751['newValue']?_0x4668ed:void 0x0;}),_0x5ba9c5['descriptionFactory']['registerDescriptionCallback'](_0x198f65=>{if('attribute'!=_0x198f65['type'])return;const {data:_0x269eaf}=_0x198f65;if(!_0x269eaf||'listItemId'!=_0x269eaf['key'])return;const _0x4da588=le(_0x198f65);return'newValue'==_0x4da588?{'type':'format','content':o(_0x4eaae0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4da588?{'type':'format','content':o(_0x4eaae0,'*Split:*\x20list\x20item')}:_0x4668ed;}),_0x10b057['model']['document']['registerPostFixer'](_0x5d2a01=>this['listItemIdFixer'](_0x5d2a01)),_0x10b057['model']['document']['registerPostFixer'](_0x577b9b=>this['noTrackChangesFixer'](_0x577b9b)),_0x10b057['model']['document']['registerPostFixer'](_0x5d4112=>this['assureChains'](_0x5d4112)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5158f3){if(_0x5158f3['batch']['isUndo']||!_0x5158f3['batch']['isLocal'])return!0x1;let _0x510a6a=!0x1;const _0x29ecb9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x217ade=>_0x217ade['data']&&'listItemId'==_0x217ade['data']['key'])['filter'](_0x3b82f8=>_0x3b82f8['data']['newValue']&&_0x3b82f8['data']['oldValue']);for(const _0x4d0436 of _0x29ecb9)le(_0x4d0436)||(_0x5158f3['removeMarker'](_0x4d0436['getFirstMarker']()),_0x510a6a=!0x0);return _0x510a6a;}['noTrackChangesFixer'](_0x53a661){if(_0x53a661['batch']['isUndo']||!_0x53a661['batch']['isLocal'])return!0x1;const _0x5a13a3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5a13a3['trackChangesCommand']['value'])return!0x1;let _0x4c04d2=!0x1;const _0x399f98=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x10e730=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5efe54=>'attribute'==_0x5efe54['type'])['filter'](_0x4bd835=>_0x399f98['includes'](_0x4bd835['attributeKey']));if(0x0==_0x10e730['length'])return _0x4c04d2;for(const _0x3057db of _0x10e730){const _0x3abe4b=_0x5a13a3['_findSuggestions'](_0x3057db['range'],'attribute')['filter'](_0x88f22c=>!_0x88f22c['meta']['isNextTo'])['map'](_0x2ad799=>_0x2ad799['suggestion'])['filter'](_0x5ac86e=>{const _0x563141=_0x5a13a3['_getAttributeKey'](_0x5ac86e);return _0x399f98['includes'](_0x563141);});if(_0x3abe4b['length']){for(const _0x41c171 of _0x3abe4b)_0x53a661['removeMarker'](_0x41c171['getFirstMarker']());_0x4c04d2=!0x0;}}return _0x4c04d2;}['assureChains'](_0x1579a1){if(_0x1579a1['batch']['isUndo']||!_0x1579a1['batch']['isLocal'])return!0x1;const _0x433ba1=this['editor']['plugins']['get']('TrackChangesEditing');let _0x5e834c=!0x1;const _0x597800=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xd2326f of _0x433ba1['getSuggestions']({'skipNotAttached':!0x0})){const _0x321ff0=_0x433ba1['_findSuggestions'](_0xd2326f['getFirstRange'](),'attribute')['map'](_0x5c7fe5=>_0x5c7fe5['suggestion'])['filter'](_0x37a798=>_0x37a798['data']&&_0x597800['includes'](_0x37a798['data']['key']));if(!_0x321ff0['length'])continue;const _0x1ca306=_0x321ff0[0x0]['head']['attributes']['groupId'];if(!_0x321ff0['every'](_0x338890=>_0x338890['attributes']['groupId']===_0x1ca306)){for(const _0x4fac90 of _0x321ff0)_0x498f60(_0x4fac90,_0x1ca306)&&(_0x5e834c=!0x0);}}return _0x5e834c;function _0x400cf6(_0x2f15b7,_0x236097){for(const _0x16e21e of _0x433ba1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x573dd2=>'attribute'==_0x573dd2['type']&&_0x573dd2['attributes']['groupId']==_0x2f15b7))_0x16e21e['setAttribute']('groupId',_0x236097);}function _0x498f60(_0x14fb32,_0x6046d2){let _0x3a38f3=_0x14fb32['head'],_0x37fb60=!0x1;for(;_0x3a38f3;)_0x3a38f3['attributes']['groupId']!=_0x6046d2&&(_0x400cf6(_0x3a38f3['attributes']['groupId'],_0x6046d2),_0x3a38f3['setAttribute']('groupId',_0x6046d2),_0x37fb60=!0x0),_0x3a38f3=_0x3a38f3['next'];return _0x37fb60;}}['_supportLegacySuggestions'](){const _0x1b663c=this['editor'],_0x4d22a6=_0x1b663c['locale'],_0x2627e5=_0x1b663c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2627e5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x574ad5,_0x36d2e5){const _0x35a629=[];for(let _0x37549d of _0x574ad5)_0x37549d['start']['nodeAfter']===_0x37549d['end']['parent']&&(_0x37549d=_0x1b663c['model']['createRange'](_0x1b663c['model']['createPositionAt'](_0x37549d['start']['nodeAfter'],0x0))),_0x35a629['push'](_0x37549d);_0x1b663c['model']['change'](_0xd73882=>{const _0xac1956=_0x1b663c['model']['document']['selection'],_0x28e5ee=Array['from'](_0xac1956['getRanges']())['map'](_0x4ba894=>_0x17267b['fromRange'](_0x4ba894));_0xd73882['setSelection'](_0x35a629),_0x1b663c['commands']['get'](_0x36d2e5['commandName'])['refresh'](),_0x36d2e5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1b663c['execute'](_0x36d2e5['commandName'],..._0x36d2e5['commandParams']),_0xd73882['setSelection'](_0x28e5ee);for(const _0x5e075e of _0x28e5ee)_0x5e075e['detach']();});}),_0x2627e5['descriptionFactory']['registerElementLabel'](function(_0x32b4cc){const _0x198e6e=!_0x1b663c['model']['schema']['isObject'](_0x32b4cc),_0x3cd303=_0x32b4cc['previousSibling'],_0x58e098=_0x32b4cc['nextSibling'],_0x33235a=_0x32b4cc['getAttribute']('listItemId'),_0x5f00ae=!_0x3cd303||_0x3cd303['getAttribute']('listItemId')!==_0x33235a,_0x1214d4=!_0x58e098||_0x58e098['getAttribute']('listItemId')!==_0x33235a;return _0x198e6e&&Boolean(_0x33235a)&&_0x5f00ae&&_0x1214d4;},_0x4ab97b=>o(_0x4d22a6,'ELEMENT_LIST_ITEM',_0x4ab97b));}['_registerLegacyDescription'](){const _0x5b5b05=this['editor'],_0x396b56=_0x5b5b05['locale'];function _0x1cdbec(_0x20da27){const _0x4df425=_0x5b5b05['commands']['get']('bulletedList')['value'],_0x164804=_0x5b5b05['commands']['get']('numberedList')['value'];return'numberedList'===_0x20da27?_0x4df425:_0x164804;}_0x5b5b05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4f8698){if('formatBlock'!=_0x4f8698['type'])return;const {data:_0x36abd3}=_0x4f8698;if(!_0x36abd3)return;let _0x1d848e,_0x22a743,_0x11cf89,_0x45ada7;switch(_0x36abd3['commandName']){case'bulletedList':_0x11cf89=_0x36abd3['commandParams'][0x0]['forceValue'],_0x45ada7=_0x1cdbec(_0x36abd3['commandName']),_0x1d848e=_0x11cf89?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x45ada7&&_0x5b5b05['config']['get']('list.multiBlock')||(_0x1d848e='*Change\x20to:*\x20%0'),_0x22a743={'type':'format','content':o(_0x396b56,_0x1d848e,o(_0x396b56,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x11cf89=_0x36abd3['commandParams'][0x0]['forceValue'],_0x45ada7=_0x1cdbec(_0x36abd3['commandName']),_0x1d848e=_0x11cf89?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x45ada7&&_0x5b5b05['config']['get']('list.multiBlock')||(_0x1d848e='*Change\x20to:*\x20%0'),_0x22a743={'type':'format','content':o(_0x396b56,_0x1d848e,o(_0x396b56,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1d848e='*Indent:*\x20%0',_0x22a743={'type':'format','content':o(_0x396b56,_0x1d848e,o(_0x396b56,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1d848e=function(_0x3d28e5){const _0x4ab6e7=_0x3d28e5['getFirstRange']();let _0x38919c=_0x4ab6e7['start']['nodeAfter'];for(;_0x38919c&&_0x4ab6e7['containsItem'](_0x38919c);){if(_0x38919c['getAttribute']('listIndent')>0x0)return!0x1;_0x38919c=_0x38919c['nextSibling'];}return!0x0;}(_0x4f8698)?o(_0x396b56,'*Format:*\x20remove\x20from\x20%0',o(_0x396b56,function(_0x350c6f){return'ELEMENT_'+_0x350c6f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4f8698))):o(_0x396b56,'*Outdent:*\x20%0',o(_0x396b56,'ELEMENT_LIST_ITEM')),_0x22a743={'type':'format','content':_0x1d848e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x36abd3['multipleBlocks']&&(_0x1d848e='*Merge:*\x20%0',_0x22a743={'type':'deletion','content':o(_0x396b56,_0x1d848e,o(_0x396b56,'ELEMENT_LIST_ITEM'))});}return _0x22a743;});}}function le(_0x5397d8){let _0x2c58e8=_0x5397d8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2c58e8;){const _0x430feb=_0x2c58e8['getAttribute']('listItemId');if(!_0x430feb)return!0x1;if(_0x430feb==_0x5397d8['data']['newValue'])return'newValue';if(_0x430feb==_0x5397d8['data']['oldValue'])return'oldValue';_0x2c58e8=_0x2c58e8['previousSibling'];}return!0x1;}class ue extends _0x11216f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x452038=this['editor']['config']['get']('list.properties'),_0x24f447=this['editor']['plugins']['get']('TrackChangesEditing');_0x452038['styles']&&(_0x24f447['enableDefaultAttributesIntegration']('listStyle'),_0x24f447['registerBlockAttribute']('listStyle')),_0x452038['reversed']&&(_0x24f447['enableDefaultAttributesIntegration']('listReversed'),_0x24f447['registerBlockAttribute']('listReversed')),_0x452038['startIndex']&&(_0x24f447['enableDefaultAttributesIntegration']('listStart'),_0x24f447['registerBlockAttribute']('listStart'));const _0x2962e1={'type':'format','content':''};_0x24f447['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xfc4218=this['editor']['locale'];_0x24f447['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xfc4218,'FORMAT_LIST_REVERSED')),_0x24f447['descriptionFactory']['registerDescriptionCallback'](_0x1c4a6e=>{const {data:_0x37673a}=_0x1c4a6e;if(_0x37673a&&'listReversed'==_0x37673a['key'])return null==_0x37673a['newValue']||0x0==_0x37673a['newValue']&&null==_0x37673a['oldValue']?_0x2962e1:void 0x0;}),_0x24f447['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xfc4218,'FORMAT_LIST_START')),_0x24f447['descriptionFactory']['registerDescriptionCallback'](_0x127d31=>{const {data:_0x44a47f}=_0x127d31;if(_0x44a47f&&'listStart'==_0x44a47f['key'])return null==_0x44a47f['newValue']||0x1==_0x44a47f['newValue']&&null==_0x44a47f['oldValue']?_0x2962e1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x164b54=>{if(_0x164b54['batch']['isUndo'])return!0x1;let _0x30ed6a=!0x1;const _0x565eeb=_0x24f447['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41be8f=>{const _0x28138c=_0x24f447['_getAttributeKey'](_0x41be8f);return'listStart'==_0x28138c||'listReversed'==_0x28138c;});for(const _0x116805 of _0x565eeb){const _0x492091=_0x116805['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x492091||'customNumbered'==_0x492091)continue;_0x24f447['_findSuggestions'](_0x116805['getFirstRange'](),'attribute')['find'](_0x20576d=>'listType'==_0x24f447['_getAttributeKey'](_0x20576d['suggestion']))||(_0x164b54['removeMarker'](_0x116805['getFirstMarker']()),_0x30ed6a=!0x0);}return _0x30ed6a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3a5d68){const _0xe57f96=this['editor']['locale'],{data:_0xa0134e}=_0x3a5d68,_0x392dd6={'type':'format','content':''};if(!_0xa0134e||'listStyle'!=_0xa0134e['key'])return;if(!_0xa0134e['oldValue'])return'default'==_0xa0134e['newValue']?_0x392dd6:{'type':'format','content':''+o(_0xe57f96,'*Set\x20format:*\x20%0',o(_0xe57f96,this['_getTranslationKeyForListStyle'](_0xa0134e['newValue'])))};if(!_0xa0134e['newValue']){if('default'==_0xa0134e['oldValue'])return _0x392dd6;let _0x2ad75d=_0x3a5d68['head'];for(;_0x2ad75d;){if(_0x2ad75d['data']&&'listType'==_0x2ad75d['data']['key']&&_0x2ad75d['data']['newValue'])return _0x392dd6;_0x2ad75d=_0x2ad75d['next'];}return{'type':'format','content':''+o(_0xe57f96,'*Remove\x20format:*\x20%0',o(_0xe57f96,this['_getTranslationKeyForListStyle'](_0xa0134e['oldValue'])))};}if('default'!=_0xa0134e['newValue'])return{'type':'format','content':''+o(_0xe57f96,'*Set\x20format:*\x20%0',o(_0xe57f96,this['_getTranslationKeyForListStyle'](_0xa0134e['newValue'])))};let _0x241c7b=_0x3a5d68['head'];for(;_0x241c7b;){if(_0x241c7b['data']&&'listType'==_0x241c7b['data']['key']&&_0x241c7b['data']['newValue']&&_0x241c7b['data']['oldValue'])return _0x392dd6;_0x241c7b=_0x241c7b['next'];}return{'type':'format','content':o(_0xe57f96,'*Set\x20format:*\x20%0',o(_0xe57f96,'ELEMENT_'+_0x3a5d68['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x327b81=this['editor'],_0x43ba64=_0x327b81['locale'];_0x327b81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f92=>{if('formatBlock'!=_0x2f92['type'])return;const {data:_0x71ee68}=_0x2f92;if(!_0x71ee68)return;let _0x284f3e,_0x5f192a;switch(_0x71ee68['commandName']){case'listStyle':_0x284f3e='*Change\x20to:*\x20%0',_0x5f192a={'type':'format','content':o(_0x43ba64,_0x284f3e,o(_0x43ba64,this['_getTranslationKeyForListStyle'](_0x71ee68['commandParams'][0x0]['type'])))};break;case'listReversed':_0x284f3e=_0x71ee68['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5f192a={'type':'format','content':o(_0x43ba64,_0x284f3e)};break;case'listStart':_0x284f3e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5f192a={'type':'format','content':o(_0x43ba64,_0x284f3e,_0x71ee68['commandParams'][0x0]['startIndex'])};}return _0x5f192a;});}['_getTranslationKeyForListStyle'](_0x1c7ce8){return'ELEMENT_'+function(_0x23e817){if(pe['includes'](_0x23e817))return'bulleted';if(ye['includes'](_0x23e817))return'numbered';return null;}(_0x1c7ce8)['toUpperCase']()+'_LIST_'+_0x1c7ce8['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x11216f{static get['requires'](){return[_0x282209];}['init'](){const _0x4ab667=this['editor'],_0x27eb6b=_0x4ab667['plugins']['get']('TrackChangesEditing'),_0xfc29e0=_0x4ab667['commands']['get']('enter');_0x27eb6b['enableCommand']('enter',()=>{_0x4ab667['model']['change'](_0x532eee=>{const _0x5142e4=_0x4ab667['model']['document']['selection'],_0x2d795b=_0x5142e4['getFirstPosition'](),_0x409c1a=_0x17267b['fromRange'](_0x5142e4['getFirstRange']());if(_0xfc29e0['enterBlock'](_0x532eee)){const _0x5e1092=_0x4ab667['model']['createPositionAt'](_0x2d795b['parent']['nextSibling'],0x0),_0x495d47=_0x532eee['createRange'](_0x2d795b,_0x5e1092);_0x27eb6b['markInsertion'](_0x495d47);}else _0x532eee['setSelection'](_0x532eee['createRange'](_0x409c1a['end']));_0x409c1a['detach'](),_0xfc29e0['fire']('afterExecute',{'writer':_0x532eee});});}),_0x4ab667['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4ab667,'split'),{'priority':'high'}),_0x4ab667['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x336542,_0x4ee2ac,_0x28aa8d)=>{const _0x3af241=_0x28aa8d['mapper']['markerNameToElements'](_0x4ee2ac['markerName']);if(_0x3af241){for(const _0x2d7f85 of _0x3af241)_0x2d7f85['hasClass']('ck-suggestion-marker-split')&&(_0x28aa8d['mapper']['unbindElementFromMarkerName'](_0x2d7f85,_0x4ee2ac['markerName']),_0x28aa8d['writer']['remove'](_0x2d7f85));}},{'priority':'high'}),_0x4ab667['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x505118,_0x1a21a9,_0x1720e7)=>{_0x1720e7['options']['showSuggestionHighlights']&&_e(_0x4ab667,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x505118,_0x1a21a9,_0x1720e7);},{'priority':'high'});}}class J extends _0x11216f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x8a47e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x8a47e4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x8a47e4['enableCommand']('findNext'),_0x8a47e4['enableCommand']('findPrevious'),_0x8a47e4['enableCommand']('replace'),_0x8a47e4['enableCommand']('replaceAll');}['handleFindCommand'](_0x3cbffb,_0x554e3a,_0x5aeeaa={}){const _0x2bc386=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3cbffb(_0x1beab8=>{let _0x2c9fa6=('string'==typeof _0x554e3a?_0x2bc386['findByTextCallback'](_0x554e3a,_0x5aeeaa):_0x554e3a)(_0x1beab8);Array['isArray'](_0x2c9fa6)&&(_0x2c9fa6={'results':_0x2c9fa6,'searchText':'string'==typeof _0x554e3a?_0x554e3a:''});const _0x1e2237=_0x2c9fa6['results']['filter'](_0x2cfb66=>!0x1===this['_isInDeletionRange'](_0x2cfb66,_0x1beab8['item']));return{..._0x2c9fa6,'results':_0x1e2237};},_0x5aeeaa);}['_isInDeletionRange'](_0x29133a,_0x2f43ed){const _0x48e941=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f43ed,_0x29133a['start']),this['editor']['model']['createPositionAt'](_0x2f43ed,_0x29133a['end']));for(const _0x5d3a55 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x48e941['getIntersection'](_0x5d3a55['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x11216f{['afterInit'](){const _0x5110d1=this['editor']['locale'],_0x3405b4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x572e70,commandName:_0x3b5489}of ro)this['editor']['plugins']['has'](_0x572e70)&&(_0x3405b4['enableDefaultAttributesIntegration'](_0x3b5489),_0x3405b4['registerInlineAttribute'](_0x3b5489));_0x3405b4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5110d1,'FORMAT_FONT_SIZE')),_0x3405b4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5110d1,'FORMAT_FONT_FAMILY')),_0x3405b4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5110d1,'FORMAT_FONT_COLOR')),_0x3405b4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5110d1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f47b6=this['editor'],_0x32dd8a=_0x5f47b6['locale'];_0x5f47b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1afa9f=>{const _0x19eeac=_0x32dd8a['t'];if('formatInline'!=_0x1afa9f['type'])return;const {data:_0x305ea1}=_0x1afa9f;if(null!=_0x305ea1){if('fontSize'==_0x305ea1['commandName']){const _0x1e4a91=_0x305ea1['commandParams'][0x0]['value'];if(_0x1e4a91){const _0x178a8f=_0x19eeac(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1179cb=>_0x1179cb['model']==_0x1e4a91)['title'])['toLowerCase']();return{'type':'format','content':o(_0x32dd8a,'*Set\x20font\x20size:*\x20%0',_0x178a8f)};}return{'type':'format','content':o(_0x32dd8a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x305ea1['commandName']){const _0x5d964e=_0x305ea1['commandParams'][0x0]['value'];return _0x5d964e?{'type':'format','content':o(_0x32dd8a,'*Set\x20font\x20family:*\x20%0',_0x5d964e)}:{'type':'format','content':o(_0x32dd8a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x305ea1['commandName']){const _0x58564a=_0x305ea1['commandParams'][0x0]['value'];if(_0x58564a){const _0x11734e=_0x18a7f4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4b1b65=>_0x4b1b65['model']==_0x58564a);let _0x49837c=_0x58564a,_0x4caf68='';return _0x11734e&&(_0x49837c=_0x11734e['label'],_0x4caf68=_0x19eeac(_0x49837c)['toLowerCase']()),{'type':'format','content':o(_0x32dd8a,'*Set\x20font\x20color:*\x20%0',_0x4caf68)['trim'](),'color':{'value':_0x58564a,'title':_0x4caf68||_0x49837c}};}return{'type':'format','content':o(_0x32dd8a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x305ea1['commandName']){const _0x130659=_0x305ea1['commandParams'][0x0]['value'];if(_0x130659){const _0x2bad6c=_0x18a7f4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1be735=>_0x1be735['model']==_0x130659);let _0x5f1096=_0x130659,_0x269139='';return _0x2bad6c&&(_0x5f1096=_0x2bad6c['label'],_0x269139=_0x19eeac(_0x5f1096)['toLowerCase']()),{'type':'format','content':o(_0x32dd8a,'*Set\x20font\x20background\x20color:*\x20%0',_0x269139)['trim'](),'color':{'value':_0x130659,'title':_0x269139||_0x5f1096}};}return{'type':'format','content':o(_0x32dd8a,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x11216f{['afterInit'](){const _0x2d8f4c=this['editor'],_0x53ce11=_0x2d8f4c['plugins']['get']('TrackChangesEditing'),_0x299d00=_0x2d8f4c['commands']['get']('copyFormat'),_0x50c844=_0x2d8f4c['commands']['get']('pasteFormat');_0x299d00&&_0x50c844&&(_0x53ce11['enableDefaultAttributesIntegration']('pasteFormat'),_0x53ce11['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1bdc43=this['editor'],_0x3c1b71=_0x1bdc43['locale'];_0x1bdc43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x461ada=>{if('formatBlock'!=_0x461ada['type']&&'formatInline'!=_0x461ada['type'])return;const {data:_0x1f3270}=_0x461ada;if(_0x1f3270&&'pasteFormat'===_0x1f3270['commandName']){const _0x7d43a5=[],_0x4975b9=_0x1f3270['commandParams'][0x0];for(const [_0x2e8246,_0x564a3f]of Object['entries'](_0x4975b9))_0x7d43a5['push'](so(_0x1bdc43,_0x2e8246,_0x564a3f));return _0x7d43a5['length']?{'type':'format','content':o(_0x3c1b71,'*Set\x20format\x20to:*\x20%0',_0x7d43a5['join'](',\x20'))}:{'type':'format','content':o(_0x3c1b71,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1abb05,_0x2ec4d3,_0x4ecbbb){const _0x4411a1=_0x1abb05['locale']['t'],_0x29cd32=_0x2ec4d3['split'](/(?=[A-Z])/)['join']('\x20'),_0x59861e=_0x4411a1(_0x29cd32['charAt'](0x0)['toUpperCase']()+_0x29cd32['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4ecbbb)return _0x59861e;if('fontColor'===_0x2ec4d3||'fontBackgroundColor'===_0x2ec4d3){const _0x55c204=_0x18a7f4(_0x1abb05['config']['get']('fontColor.colors'))['find'](_0xec4896=>_0xec4896['model']==_0x4ecbbb);return _0x59861e+'\x20('+(_0x55c204?_0x4411a1(_0x55c204['label'])['toLowerCase']():_0x4ecbbb)+')';}if('fontSize'===_0x2ec4d3&&isNaN(parseFloat(_0x4ecbbb))){const _0x4bf330=_0x1abb05['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1abb05['config']['get']('fontSize.options'))['find'](_0x3d3c55=>_0x3d3c55['model']==_0x4ecbbb);return _0x59861e+'\x20('+(_0x4bf330?_0x4411a1(_0x4bf330['title'])['toLowerCase']():_0x4ecbbb)+')';}return _0x59861e+'\x20('+_0x4ecbbb+')';}class Y extends _0x11216f{['_headingOptions'];['afterInit'](){const _0x1de6c7=this['editor'];if(!_0x1de6c7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1de6c7['config']['get']('heading.options');const _0x29b8ba=_0x1de6c7['locale'],_0x53f882=_0x1de6c7['plugins']['get']('TrackChangesEditing');_0x53f882['enableDefaultAttributesIntegration']('heading');for(const _0x4d5883 of this['_headingOptions'])'paragraph'!=_0x4d5883['model']&&_0x53f882['descriptionFactory']['registerElementLabel'](_0x4d5883['model'],_0x2c1df0=>{const _0x21d413=this['_getHeadingLevel'](_0x4d5883['model']);return null!==_0x21d413?_0x1b22a6(_0x2c1df0,_0x21d413):_0x187a99(_0x2c1df0,_0x4d5883['title']);});function _0x1b22a6(_0x44aba7,_0x6b3dcb){return o(_0x29b8ba,'ELEMENT_HEADING',[_0x44aba7,_0x6b3dcb]);}function _0x187a99(_0x4999b6,_0x1b19a5){return o(_0x29b8ba,'ELEMENT_HEADING_CUSTOM',[_0x4999b6,_0x1b19a5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34e62e=this['editor'],_0x5661a4=_0x34e62e['locale'];function _0x5e1bde(_0x2e95c0,_0x161517){return o(_0x5661a4,'ELEMENT_HEADING_CUSTOM',[_0x2e95c0,_0x161517]);}_0x34e62e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45e3bb=>{if('formatBlock'!=_0x45e3bb['type'])return;const {data:_0x42608d}=_0x45e3bb;if(_0x42608d&&'heading'==_0x42608d['commandName']){const _0x222e25=_0x42608d['commandParams'][0x0]['value'],_0x5a708a=this['_getHeadingLevel'](_0x222e25);if(null!==_0x5a708a)return{'type':'format','content':o(_0x5661a4,'*Change\x20to:*\x20%0',(_0x5d3030=0x1,_0x3b7d43=_0x5a708a,o(_0x5661a4,'ELEMENT_HEADING',[_0x5d3030,_0x3b7d43])))};const _0x187d37=this['_headingOptions']['find'](_0x401df1=>_0x401df1['model']===_0x222e25)['title'];return{'type':'format','content':o(_0x5661a4,'*Change\x20to:*\x20%0',_0x5e1bde(0x1,_0x187d37))};}var _0x5d3030,_0x3b7d43;});}['_getHeadingLevel'](_0x224ae7){const _0x3af080=_0x224ae7['match'](/^heading(\d+)/);if(_0x3af080)return _0x3af080[0x1];const _0x5924f8=this['_headingOptions']?.['find'](_0x5eb919=>_0x5eb919['model']==_0x224ae7);if(_0x5924f8&&_0x5924f8['view']){const _0x3e1699=_0x5924f8['view'],_0x28c438=(_0x3e1699['name']??_0x3e1699)['match'](/^h(\d+)/);if(_0x28c438)return _0x28c438[0x1];}return null;}}class Z extends _0x11216f{['afterInit'](){const _0x2834d7=this['editor'];if(!_0x2834d7['plugins']['has']('HighlightEditing'))return;const _0x80d3b1=_0x2834d7['plugins']['get']('TrackChangesEditing'),_0x2f310d=_0x2834d7['locale'];_0x80d3b1['enableDefaultAttributesIntegration']('highlight'),_0x80d3b1['registerInlineAttribute']('highlight'),_0x80d3b1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2f310d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ab65e=this['editor'],_0x5b9eff=_0x3ab65e['locale'];_0x3ab65e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e27c8=>{if('formatInline'!=_0x1e27c8['type'])return;const {data:_0x27d7bf}=_0x1e27c8;if(_0x27d7bf&&'highlight'==_0x27d7bf['commandName']){const _0x36756b=_0x5b9eff['t'],_0x459c52=_0x27d7bf['commandParams'][0x0]['value'];if(_0x459c52){const _0x513930=_0x3ab65e['config']['get']('highlight.options')['find'](_0x2cc5f5=>_0x2cc5f5['model']==_0x459c52),_0x5b74b7=_0x36756b(_0x513930['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b9eff,'*Set\x20highlight:*\x20%0',_0x5b74b7),'color':{'value':_0x513930['color'],'title':_0x513930['title']}};}return{'type':'format','content':o(_0x5b9eff,'*Remove\x20highlight*',o(_0x5b9eff,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x11216f{['afterInit'](){const _0x50cba4=this['editor'];if(!_0x50cba4['plugins']['has']('HorizontalLineEditing'))return;_0x50cba4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x52bf65=_0x50cba4['plugins']['get']('TrackChangesEditing'),_0x4f300b=_0x50cba4['locale'];_0x52bf65['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2a8aae=>o(_0x4f300b,'ELEMENT_HORIZONTAL_LINE',_0x2a8aae)),_0x50cba4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x20e5a4,{writer:_0x445c13,options:_0x385abe})=>{if(!_0x385abe['showSuggestionHighlights'])return null;const _0x5a9ad7=_0x445c13['createContainerElement']('div'),_0x242350=_0x445c13['createEmptyElement']('hr');return _0x445c13['addClass']('ck-horizontal-line',_0x5a9ad7),_0x445c13['insert'](_0x445c13['createPositionAt'](_0x5a9ad7,0x0),_0x242350),_0x5a9ad7;},'converterPriority':'high'});}}class et extends _0x11216f{['afterInit'](){const _0x39ca87=this['editor'];if(!_0x39ca87['plugins']['has']('HtmlEmbed'))return;const _0x505535=_0x39ca87['plugins']['get']('TrackChangesEditing'),_0x50262c=_0x39ca87['locale'];_0x505535['descriptionFactory']['registerElementLabel']('rawHtml',_0x328450=>o(_0x50262c,'ELEMENT_HTML_EMBED',_0x328450)),_0x505535['enableDefaultAttributesIntegration']('htmlEmbed'),_0x505535['registerBlockAttribute']('value'),_0x505535['descriptionFactory']['registerDescriptionCallback'](_0x1c411b=>{if('attribute'!=_0x1c411b['type'])return;const {data:_0x76b5a6}=_0x1c411b;if(_0x76b5a6&&'value'==_0x76b5a6['key']&&_0x1c411b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5afc91=o(_0x50262c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x50262c,'*Change\x20%0\x20content*',_0x5afc91)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d2cb6=this['editor'],_0x5ae7e8=_0x3d2cb6['locale'];_0x3d2cb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc583=>{if('formatBlock'!=_0x4bc583['type'])return;const {data:_0x42f30a}=_0x4bc583;if(_0x42f30a&&'htmlEmbed'==_0x42f30a['commandName']){const _0x3ecb48=o(_0x5ae7e8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5ae7e8,'*Change\x20%0\x20content*',_0x3ecb48)};}});}}class it extends _0x11216f{['afterInit'](){const _0x5e1414=this['editor'];if(!_0x5e1414['plugins']['has']('ImageEditing'))return;const _0x50dac8=_0x5e1414['plugins']['get']('TrackChangesEditing'),_0x3873df=_0x5e1414['plugins']['get']('ImageUtils'),_0x3f0955=_0x5e1414['locale'];_0x50dac8['enableCommand']('insertImage'),_0x50dac8['descriptionFactory']['registerElementLabel']('imageBlock',_0x3e1d32=>o(_0x3f0955,'ELEMENT_IMAGE',_0x3e1d32)),_0x50dac8['descriptionFactory']['registerElementLabel']('imageInline',_0x4cbfe8=>o(_0x3f0955,'ELEMENT_INLINE_IMAGE',_0x4cbfe8)),_0x50dac8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3f0955,'ELEMENT_CAPTION')),_0x5e1414['plugins']['has']('ImageUploadEditing')&&_0x50dac8['enableCommand']('uploadImage'),_0x5e1414['plugins']['has']('ImageBlockEditing')&&_0x5e1414['plugins']['has']('ImageInlineEditing')&&(_0x50dac8['enableCommand']('imageTypeInline',(_0x17da4f,_0x3fb280)=>{const _0x43b860=_0x3873df['getClosestSelectedImageElement'](_0x5e1414['model']['document']['selection']);_0x5e1414['model']['change'](()=>{_0x50dac8['markBlockFormat'](_0x43b860,{'commandName':'imageTypeInline','commandParams':[_0x3fb280]},[],'convertBlockImageToInline');});}),_0x50dac8['enableCommand']('imageTypeBlock',(_0x2b1706,_0x1a81a5)=>{_0x5e1414['model']['change'](_0x155fe0=>{let _0x23714a=_0x3873df['getClosestSelectedImageElement'](_0x5e1414['model']['document']['selection']),_0x5594dd=_0x155fe0['createRangeOn'](_0x23714a);const _0x593daa=_0x50dfc4['fromPosition'](_0x5594dd['start'],'toPrevious'),_0x2ad23b=_0x50dfc4['fromPosition'](_0x5594dd['end'],'toNext');_0x50dac8['forceDefaultExecution'](()=>_0x2b1706(_0x1a81a5)),_0x23714a=_0x3873df['getClosestSelectedImageElement'](_0x5e1414['model']['document']['selection']),_0x5594dd=_0x155fe0['createRangeOn'](_0x23714a);const _0x2999ff=_0x155fe0['createRange'](_0x593daa,_0x2ad23b);_0x593daa['detach'](),_0x2ad23b['detach'](),_0x50dac8['markBlockFormat'](_0x23714a,{'commandName':'imageTypeInline','commandParams':[_0x1a81a5]},[],'convertInlineImageToBlock'),_0x2999ff['start']['isBefore'](_0x5594dd['start'])&&_0x50dac8['markInsertion'](_0x155fe0['createRange'](_0x2999ff['start'],_0x5594dd['start']),'convertInlineImageToBlock'),_0x5594dd['end']['isBefore'](_0x2999ff['end'])&&_0x50dac8['markInsertion'](_0x155fe0['createRange'](_0x5594dd['end'],_0x2999ff['end']),'convertInlineImageToBlock');});}),_0x50dac8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x50dac8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x50dac8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x50dac8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x50dac8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x50dac8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x7d19f1])=>{const _0x17c6ff=_0x50dac8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x983329=_0x7d19f1['start'],_0xc5d192=_0x7d19f1['end'];const _0x513301=_0x5e1414['model']['schema']['getNearestSelectionRange'](_0x983329,'backward'),_0x540a4c=_0x5e1414['model']['schema']['getNearestSelectionRange'](_0xc5d192,'forward');_0x513301['isCollapsed']&&(_0x983329=_0x513301['start']),_0x540a4c['isCollapsed']&&(_0xc5d192=_0x540a4c['end']),_0x17c6ff([_0x5e1414['model']['createRange'](_0x983329,_0xc5d192)]);}),_0x50dac8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xc165df),_0x50dac8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xc165df)),_0x5e1414['plugins']['has']('ImageCaptionEditing')&&(_0x50dac8['enableCommand']('toggleImageCaption',(_0xa810cf,_0x20189a)=>{const _0xc15ebe=_0x5e1414['plugins']['get']('ImageCaptionUtils');let _0x2aded9=_0x3873df['getClosestSelectedImageElement'](_0x5e1414['model']['document']['selection']),_0x1481e0=_0xc15ebe['getCaptionFromImageModelElement'](_0x2aded9);_0x5e1414['model']['change'](()=>{if(_0x1481e0)return void _0x50dac8['markDeletion'](_0x5e1414['model']['createRangeOn'](_0x1481e0));const _0x37f7f2=_0x3873df['isBlockImage'](_0x2aded9);_0xa810cf(_0x20189a),_0x2aded9=_0x3873df['getClosestSelectedImageElement'](_0x5e1414['model']['document']['selection']),_0x1481e0=_0xc15ebe['getCaptionFromImageModelElement'](_0x2aded9),_0x50dac8['markInsertion'](_0x5e1414['model']['createRangeOn'](_0x1481e0),_0x37f7f2?null:'imageCaption');});}),_0x50dac8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xc165df));const _0xb1fdd0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1dc90f(_0x5c3c1b,_0x25e255){const _0x2f5d55=_0xb1fdd0['findIndex'](({type:_0x13f6af,subType:_0x27cdc7})=>_0x5c3c1b['type']==_0x13f6af&&_0x5c3c1b['subType']==_0x27cdc7),_0x46af3b=_0xb1fdd0['findIndex'](({type:_0x57f885,subType:_0x347995})=>_0x25e255['type']==_0x57f885&&_0x25e255['subType']==_0x347995);if(_0x2f5d55<0x0||_0x46af3b<0x0)return!0x1;const _0x4e2922=_0x5c3c1b['getFirstRange'](),_0x1f2f96=_0x25e255['getFirstRange']();if((0x0==_0x2f5d55||0x1==_0x2f5d55)&&0x2==_0x46af3b&&_0x4e2922['isIntersecting'](_0x1f2f96))return!0x0;if(0x2==_0x2f5d55&&0x3==_0x46af3b){const _0x28142e=_0x50dac8['_findSuggestions'](_0x4e2922,'insertion')['filter'](({suggestion:_0x4f9ee4,meta:_0x2665ed})=>_0x2665ed['isOwn']&&'convertInlineImageToBlock'==_0x4f9ee4['subType']);if(_0x28142e['length']>0x1&&_0x1f2f96['end']['isEqual'](_0x4e2922['start']))return!0x0;if(0x1==_0x28142e['length']&&(_0x4e2922['start']['isEqual'](_0x1f2f96['end'])||_0x4e2922['end']['isEqual'](_0x1f2f96['start'])))return!0x0;}if(0x3==_0x2f5d55&&0x3==_0x46af3b&&_0x4e2922['start']['isBefore'](_0x1f2f96['start'])){const _0x33685f=_0x4e2922['end']['nodeAfter'],_0x31b52d=_0x1f2f96['start']['nodeBefore'];return _0x3873df['isBlockImage'](_0x33685f)&&_0x33685f===_0x31b52d;}return!0x1;}function _0xc165df(_0xa930e9,_0x513c24){return _0x1dc90f(_0xa930e9,_0x513c24)?[_0xa930e9,_0x513c24]:_0x1dc90f(_0x513c24,_0xa930e9)?[_0x513c24,_0xa930e9]:null;}_0x5e1414['plugins']['has']('ImageResize')&&(_0x50dac8['enableDefaultAttributesIntegration']('resizeImage'),_0x50dac8['registerBlockAttribute']('resizedWidth'),_0x50dac8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3f0955,'FORMAT_IMAGE_SIZE'))),_0x5e1414['plugins']['has']('ImageTextAlternativeEditing')&&(_0x50dac8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x50dac8['registerBlockAttribute']('alt')),_0x50dac8['descriptionFactory']['registerDescriptionCallback'](_0x1c9839=>{if(!!_0xb1fdd0['find'](({type:_0x20b894,subType:_0x5b9838})=>_0x1c9839['type']==_0x20b894&&_0x1c9839['subType']==_0x5b9838))return _0x1c9839['previous']?{}:void 0x0;}),_0x50dac8['descriptionFactory']['registerDescriptionCallback'](_0x46e396=>{if('insertion'==_0x46e396['type']||'deletion'==_0x46e396['type']){const _0x52980a=_0x46e396['getContainedElement']();if(_0x52980a&&_0x52980a['is']('element','caption'))return{'type':'insertion'==_0x46e396['type']?'addObject':'removeObject','element':_0x52980a,'quantity':0x1};}}),_0x50dac8['descriptionFactory']['registerDescriptionCallback'](_0x480a4a=>'formatBlock'==_0x480a4a['type']&&'convertInlineImageToBlock'==_0x480a4a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x480a4a['type']&&'convertBlockImageToInline'==_0x480a4a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x50dac8['descriptionFactory']['registerDescriptionCallback'](_0x2b541b=>{if('attribute'!=_0x2b541b['type'])return;const {data:_0x1442cf}=_0x2b541b;if(!_0x1442cf||'alt'!=_0x1442cf['key'])return;const _0x280565=_0x1442cf['newValue'];return _0x280565?{'type':'format','content':o(_0x3f0955,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x280565+'\x22')}:{'type':'format','content':o(_0x3f0955,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be524=this['editor'],_0x1b7f4c=_0x1be524['locale'];_0x1be524['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57d7ad=>{if('formatBlock'!=_0x57d7ad['type']&&'formatInline'!=_0x57d7ad['type'])return;const {data:_0x21d120}=_0x57d7ad;if(_0x21d120){if('imageTextAlternative'==_0x21d120['commandName']){const _0x5be391=_0x21d120['commandParams'][0x0]['newValue'];return _0x5be391?{'type':'format','content':o(_0x1b7f4c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5be391+'\x22')}:{'type':'format','content':o(_0x1b7f4c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x21d120['commandName']){const _0x49df63=_0x21d120['commandParams'][0x0]['width'];return _0x49df63?{'type':'format','content':o(_0x1b7f4c,'*Set\x20image\x20width:*\x20%0',_0x49df63)}:{'type':'format','content':o(_0x1b7f4c,'*Reset\x20image\x20width*')};}}});}}class st extends _0x11216f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x52d704=this['editor']['locale'],_0x5d370e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d370e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5d370e['registerBlockAttribute']('src'),_0x5d370e['descriptionFactory']['registerDescriptionCallback'](_0x47d211=>{if('attribute'!=_0x47d211['type'])return;const {data:_0x4fe201}=_0x47d211;return _0x4fe201&&'src'==_0x4fe201['key']?_0x4fe201['newValue']&&_0x4fe201['oldValue']?{'type':'format','content':o(_0x52d704,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x36e60f=this['editor']['plugins']['get']('TrackChangesEditing');_0x36e60f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x36e60f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36e60f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x36e60f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d6582=this['editor'],_0xd8517e=_0x2d6582['locale'];_0x2d6582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x204448=>{if('formatBlock'!=_0x204448['type']&&'formatInline'!=_0x204448['type'])return;const {data:_0x273d3b}=_0x204448;if(!_0x273d3b||'replaceImageSource'!=_0x273d3b['commandName'])return;return{'type':'format','content':o(_0xd8517e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x11216f{['afterInit'](){const _0x1019b2=this['editor'];if(!_0x1019b2['plugins']['has']('ImageStyleEditing'))return;const _0x5adabf=_0x1019b2['plugins']['get']('TrackChangesEditing'),_0x440e04=_0x1019b2['plugins']['get']('ImageUtils'),_0x5daf28={};_0x5adabf['enableCommand']('imageStyle',(_0x2fe4cf,_0x525781)=>{const _0x21e1f6=_0x1019b2['plugins']['get']('Users')['me'],_0x1e88da=_0x1019b2['commands']['get']('imageStyle');let _0x5924f4=_0x440e04['getClosestSelectedImageElement'](_0x1019b2['model']['document']['selection']),_0x201190=_0x1019b2['model']['createRangeOn'](_0x5924f4),_0x5889df=_0x1e88da['value'];if(_0x5889df==_0x525781['value'])return;const _0x55c413={'commandName':'imageStyle','commandParams':[_0x525781],'formatGroupId':_0x58019d()};_0x1019b2['model']['change'](()=>{if(_0x5adabf['getSuggestions']()['filter'](_0xc4389b=>_0xc4389b['isInContent']&&_0x21e1f6==_0xc4389b['author']&&('formatBlock'==_0xc4389b['type']||'formatInline'==_0xc4389b['type'])&&('imageStylePreApply'==_0xc4389b['subType']||'imageStylePostApply'==_0xc4389b['subType'])&&_0xc4389b['getFirstRange']()['isEqual'](_0x201190))['forEach'](_0x4b0cbc=>_0x5adabf['discardSuggestion'](_0x4b0cbc['head'])),_0x5924f4=_0x440e04['getClosestSelectedImageElement'](_0x1019b2['model']['document']['selection']),_0x201190=_0x1019b2['model']['createRangeOn'](_0x5924f4),_0x1e88da['refresh'](),_0x1019b2['commands']['get']('imageTypeInline')['refresh'](),_0x1019b2['commands']['get']('imageTypeBlock')['refresh'](),_0x5889df=_0x1e88da['value'],_0x5889df!=_0x525781['value'])return _0x440e04['isInlineImage'](_0x5924f4)&&_0x1e88da['shouldConvertImageType'](_0x525781['value'],_0x5924f4)?(_0x2fe4cf({..._0x525781,'setImageSizes':!0x1}),_0x5924f4=_0x440e04['getClosestSelectedImageElement'](_0x1019b2['model']['document']['selection']),void _0x5adabf['markBlockFormat'](_0x5924f4,{..._0x55c413,'commandReversedParams':[{'value':_0x5889df||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x440e04['isBlockImage'](_0x5924f4)?_0x5adabf['markBlockFormat'](_0x5924f4,_0x55c413,[],'imageStylePostApply'):_0x5adabf['markInlineFormat'](_0x201190,_0x55c413,'imageStylePostApply'));});});for(const _0x2fb4c7 of _0x1019b2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5daf28[_0x2fb4c7['name']]=_0x2fb4c7['title']['toLowerCase']();_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4e4140])=>{_0x440e04['setImageNaturalSizeAttributes'](_0x4e4140['getContainedElement']());}),_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x9a1822,_0xaf3f94)=>{_0x5adabf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x9a1822,{'commandName':_0xaf3f94['commandName'],'commandParams':_0xaf3f94['commandReversedParams']});}),_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x38692c,_0x343156){if(_0x5ed246(_0x38692c,_0x343156))return[_0x38692c,_0x343156];if(_0x5ed246(_0x343156,_0x38692c))return[_0x343156,_0x38692c];return null;});const _0x1a089b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ed246(_0x1c8bdf,_0x27f7a8){const _0x3c630a=_0x1a089b['findIndex'](({type:_0x3a5cdc,subType:_0x3993ce})=>_0x1c8bdf['type']==_0x3a5cdc&&_0x1c8bdf['subType']==_0x3993ce),_0x1155e4=_0x1a089b['findIndex'](({type:_0x24bdb9,subType:_0x545375})=>_0x27f7a8['type']==_0x24bdb9&&_0x27f7a8['subType']==_0x545375);if(_0x3c630a<0x0||_0x1155e4<0x0)return!0x1;const _0xa1a66f=_0x1c8bdf['getFirstRange'](),_0x2099ff=_0x27f7a8['getFirstRange']();if((0x0==_0x3c630a||0x1==_0x3c630a)&&0x2==_0x1155e4&&_0xa1a66f['isIntersecting'](_0x2099ff))return!0x0;if(0x2==_0x3c630a&&0x3==_0x1155e4){const _0x52b38c=_0x5adabf['_findSuggestions'](_0xa1a66f,'insertion')['filter'](({suggestion:_0x28a952,meta:_0x1b336b})=>_0x1b336b['isOwn']&&'convertInlineImageToBlock'==_0x28a952['subType']);if(_0x52b38c['length']>0x1&&_0x2099ff['end']['isEqual'](_0xa1a66f['start']))return!0x0;if(0x1==_0x52b38c['length']&&(_0xa1a66f['start']['isEqual'](_0x2099ff['end'])||_0xa1a66f['end']['isEqual'](_0x2099ff['start'])))return!0x0;}if(0x3==_0x3c630a&&0x3==_0x1155e4&&_0xa1a66f['start']['isBefore'](_0x2099ff['start'])){const _0x3dd885=_0xa1a66f['end']['nodeAfter'],_0x2bdebd=_0x2099ff['start']['nodeBefore'];return _0x440e04['isBlockImage'](_0x3dd885)&&_0x3dd885===_0x2bdebd;}return!0x1;}_0x1019b2['model']['document']['registerPostFixer'](()=>{let _0x1ca74f=!0x1;const _0x55b0b9=Array['from'](_0x1019b2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dc498,data:_0x55578b}of _0x55b0b9){const {group:_0x391816,type:_0x15fe3c,subType:_0x264218,id:_0x16dc42}=_0x5adabf['_splitMarkerName'](_0x1dc498);if('suggestion'==_0x391816&&_0x5adabf['hasSuggestion'](_0x16dc42)){if('formatBlock'==_0x15fe3c&&('imageStylePreApply'==_0x264218||'imageStylePostApply'==_0x264218)){const _0x48fb3f=_0x5adabf['getSuggestion'](_0x16dc42);if(_0x55578b['newRange']){const _0x3eb82e=_0x48fb3f['getFirstRange']()['getContainedElement']();if(_0x440e04['isBlockImage'](_0x3eb82e))continue;_0x5adabf['discardSuggestion'](_0x48fb3f),_0x1ca74f=!0x0;}}if('insertion'==_0x15fe3c&&'imageCaption'==_0x264218&&!_0x55578b['newRange']){const _0x123d90=_0x5adabf['getSuggestion'](_0x16dc42);_0x123d90['next']&&_0x123d90['next']['isInContent']&&(_0x5adabf['discardSuggestion'](_0x123d90['next']),_0x1ca74f=!0x0);}}}return _0x1ca74f;}),this['_registerLegacyDescription'](_0x5daf28);}['_registerLegacyDescription'](_0x5b2790){const _0x17eb80=this['editor'],_0x490a99=_0x17eb80['locale'];_0x17eb80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f5eae=>{if('formatBlock'!=_0x2f5eae['type']&&'formatInline'!=_0x2f5eae['type'])return;const {data:_0x3f3429}=_0x2f5eae;if(!_0x3f3429||'imageStyle'!=_0x3f3429['commandName'])return;const _0x1910a2=_0x3f3429['commandParams'][0x0]['value'];return _0x18917b('side'===_0x1910a2?o(_0x490a99,'FORMAT_SIDE_IMAGE'):_0x5b2790[_0x1910a2]||_0x1910a2);function _0x18917b(_0xd371b6){return{'type':'format','content':o(_0x490a99,'*Format:*\x20%0',_0xd371b6)};}});}}class ot extends _0x11216f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x25f0bc){super(_0x25f0bc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x25bc0d=this['editor'],_0x19d497=_0x25bc0d['commands']['get']('importWord'),_0x45b880=_0x25bc0d['commands']['get']('trackChanges');_0x19d497&&(_0x19d497['on']('execute',(_0x4fc4f2,[,_0x454f94])=>{this['_trackChangesValueDuringImport']=_0x45b880['value'],_0x454f94['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x19d497,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x19d497,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x45b880['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x25bc0d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2777f3,_0x2df5d3){const {suggestions:_0x191901}=_0x2df5d3,_0x3d4da4=this['editor']['commands']['get']('trackChanges'),_0x1f98b5=_0x3d4da4['value'];this['_trackChangesValueDuringImport']!==_0x1f98b5&&(_0x3d4da4['execute'](),this['_trackChangesExecuted']=!0x0),_0x191901&&_0x191901['forEach'](({id:_0x28a20f,type:_0xe5381d,author:_0x443210,created_at:_0x2ec061})=>{const _0xf52c3={'id':_0x28a20f,'type':_0xe5381d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x443210,'createdAt':_0x2ec061?new Date(_0x2ec061):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xf52c3);});}}class rt extends _0x11216f{['afterInit'](){const _0x31cd4e=this['editor'],_0x46c172=_0x31cd4e['plugins']['get']('TrackChangesEditing');if(_0x31cd4e['plugins']['has']('IndentEditing')&&(_0x46c172['enableCommand']('indent'),_0x46c172['enableCommand']('outdent')),_0x31cd4e['plugins']['has']('IndentBlock')){for(const _0x51843c of['indentBlock','outdentBlock'])_0x46c172['enableDefaultAttributesIntegration'](_0x51843c);}const _0x27a9bd=_0x31cd4e['locale'];_0x46c172['registerBlockAttribute']('blockIndent'),_0x46c172['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x27a9bd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49f20f=this['editor'],_0x5a96ef=_0x49f20f['locale'],_0x35ddcb=_0x49f20f['plugins']['get']('TrackChangesEditing');_0x35ddcb['descriptionFactory']['registerDescriptionCallback'](_0x163dd1=>{if('formatBlock'!=_0x163dd1['type'])return;const {data:_0x273405}=_0x163dd1;if(!_0x273405)return;if('indentBlock'!=_0x273405['commandName']&&'outdentBlock'!=_0x273405['commandName'])return;const _0x54afd4=_0x163dd1['getItems']()[0x0],_0x1242ee=_0x35ddcb['descriptionFactory']['getItemLabel'](_0x54afd4);return'indentBlock'==_0x273405['commandName']?{'type':'format','content':o(_0x5a96ef,'*Indent:*\x20%0',_0x1242ee)}:'outdentBlock'==_0x273405['commandName']?{'type':'format','content':o(_0x5a96ef,'*Outdent:*\x20%0',_0x1242ee)}:void 0x0;});}}class at extends _0x11216f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x11216f{['afterInit'](){const _0x2dc7b9=this['editor'];if(!_0x2dc7b9['plugins']['has']('LinkEditing'))return;const _0x19d16e=_0x2dc7b9['plugins']['get']('TrackChangesEditing'),_0x4ae934=_0x2dc7b9['commands']['get']('link');_0x19d16e['enableDefaultAttributesIntegration']('link'),_0x19d16e['enableDefaultAttributesIntegration']('unlink'),_0x19d16e['registerInlineAttribute']('linkHref');for(const _0x3d39d6 of _0x4ae934['manualDecorators'])_0x19d16e['registerInlineAttribute'](_0x3d39d6['id']),_0x19d16e['descriptionFactory']['registerAttributeLabel'](_0x3d39d6['id'],'link\x20('+_0x3d39d6['label']['toLowerCase']()+')');_0x19d16e['descriptionFactory']['registerDescriptionCallback'](_0x20a364=>{if('attribute'!=_0x20a364['type'])return;const {data:_0x23532d}=_0x20a364;if(!_0x23532d||'linkHref'!=_0x23532d['key'])return;const _0x418cca=_0x23532d['newValue'],_0x3e6c96=_0x2dc7b9['locale'];return{'type':'format','content':null==_0x418cca?o(_0x3e6c96,'*Remove\x20link*'):o(_0x3e6c96,'*Set\x20link:*\x20%0','\x22'+_0x418cca+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4eeb93=this['editor'],_0x45a20a=_0x4eeb93['locale'];_0x4eeb93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x72626e=>{if('formatInline'!=_0x72626e['type'])return;const {data:_0x18321b}=_0x72626e;if(_0x18321b){if('link'==_0x18321b['commandName']){const _0x196fd7=_0x18321b['commandParams'][0x0];return{'type':'format','content':o(_0x45a20a,'*Set\x20link:*\x20%0','\x22'+_0x196fd7+'\x22')};}return'unlink'==_0x18321b['commandName']?{'type':'format','content':o(_0x45a20a,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x11216f{['afterInit'](){const _0x5c3d3d=this['editor'],_0x5118ad=_0x5c3d3d['locale'];if(!_0x5c3d3d['plugins']['has']('LegacyListEditing'))return;const _0x1fbee6=_0x5c3d3d['plugins']['get']('TrackChangesEditing'),_0x1a3b3a=_0x5c3d3d['plugins']['has']('LegacyTodoListEditing');function _0x3199a4(_0x897698){return()=>{const _0x4f429e=_0x5c3d3d['model']['document']['selection'],_0x479373=_0x5c3d3d['commands']['get'](_0x897698);if(_0x479373['value'])return void _0x5c3d3d['execute']('paragraph',{});const _0x5498ab=_0x897698['slice'](0x0,-0x4),_0x1639fd=function(_0x2e5976,_0x3f2ddf,_0x227747){let _0x4601b0=Array['from'](_0x2e5976)['filter'](_0x4572be=>function(_0x21cb1e,_0x2e1d8c){return _0x2e1d8c['checkChild'](_0x21cb1e['parent'],'listItem')&&!_0x2e1d8c['isObject'](_0x21cb1e);}(_0x4572be,_0x227747));_0x4601b0=_0x4601b0['filter'](_0x38a6c7=>!_0x38a6c7['is']('element','listItem')||_0x38a6c7['getAttribute']('listType')!=_0x3f2ddf);const _0x27a471=new Set();for(const _0x173603 of _0x4601b0)_0x173603['is']('element','listItem')?_0x27a471['add'](me(_0x173603)):_0x27a471['add'](_0x173603);return Array['from'](_0x27a471);}(_0x4f429e['getSelectedBlocks'](),_0x5498ab,_0x5c3d3d['model']['schema']);_0x5c3d3d['model']['change'](()=>{for(const _0x41c92c of _0x1639fd)_0x1fbee6['markBlockFormat'](_0x41c92c,{'commandName':_0x897698,'commandParams':[{'forceValue':!_0x479373['value']}],'formatGroupId':'blockName'},fe(_0x41c92c));});};}function _0x99d9fe(_0x49db13){return()=>{const _0xac95b7=function(_0x94d9f0){let _0x2dd3f6=Array['from'](_0x94d9f0);const _0x5e2447=_0x2dd3f6['findIndex'](_0x106d43=>'listItem'!=_0x106d43['name']);return _0x5e2447>-0x1&&(_0x2dd3f6=_0x2dd3f6['slice'](0x0,_0x5e2447)),_0x2dd3f6;}(_0x5c3d3d['model']['document']['selection']['getSelectedBlocks']()),_0x2ffe91=_0x5c3d3d['model']['createRange'](_0x5c3d3d['model']['createPositionAt'](_0xac95b7[0x0],'before'),_0x5c3d3d['model']['createPositionAt'](_0xac95b7[_0xac95b7['length']-0x1],'end'));_0x5c3d3d['model']['change'](()=>{_0x1fbee6['markBlockFormat'](_0x2ffe91,{'commandName':_0x49db13,'commandParams':[],'formatGroupId':'listIndent'},function(_0x540145){const _0x2bdfe2=new Set();for(const _0x7a4bb0 of _0x540145){let _0x811519=_0x7a4bb0['nextSibling'];for(;_0x811519&&_0x811519['getAttribute']('listIndent')>_0x7a4bb0['getAttribute']('listIndent');)_0x2bdfe2['add'](_0x811519),_0x811519=_0x811519['nextSibling'];}return Array['from'](_0x2bdfe2);}(_0xac95b7));});};}_0x1fbee6['enableCommand']('numberedList',_0x3199a4('numberedList')),_0x1fbee6['enableCommand']('bulletedList',_0x3199a4('bulletedList')),_0x1a3b3a&&_0x1fbee6['enableCommand']('todoList',_0x3199a4('todoList')),_0x1fbee6['enableCommand']('indentList',_0x99d9fe('indentList')),_0x1fbee6['enableCommand']('outdentList',_0x99d9fe('outdentList')),_0x1a3b3a&&_0x1fbee6['enableCommand']('checkTodoList',()=>{const _0x57223c=_0x5c3d3d['commands']['get']('checkTodoList'),_0x262f03=Array['from'](_0x57223c['_selectedElements']);_0x262f03['filter'](_0x3ae08e=>_0x3ae08e['getAttribute']('todoListChecked')!=_0x57223c['value']),_0x5c3d3d['model']['change'](()=>{for(const _0x49a73d of _0x262f03)_0x1fbee6['markBlockFormat'](_0x49a73d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57223c['value']}]});});}),_0x1fbee6['descriptionFactory']['registerElementLabel']('listItem',_0x44a3e7=>o(_0x5118ad,'ELEMENT_LIST_ITEM',_0x44a3e7)),_0x1fbee6['descriptionFactory']['registerDescriptionCallback'](_0x5b56d1=>{if('formatBlock'!=_0x5b56d1['type']&&'formatInline'!=_0x5b56d1['type'])return;const {data:_0x2b33c9}=_0x5b56d1;if(_0x2b33c9){if('numberedList'==_0x2b33c9['commandName']||'bulletedList'==_0x2b33c9['commandName']||'todoList'==_0x2b33c9['commandName'])switch(_0x2b33c9['commandName']['replace']('List','')){case'bulleted':return _0x3a2390(o(_0x5118ad,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a2390(o(_0x5118ad,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a2390(o(_0x5118ad,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2b33c9['commandName'])return{'type':'format','content':o(_0x5118ad,'*Indent:*\x20%0',o(_0x5118ad,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2b33c9['commandName'])return{'type':'format','content':o(_0x5118ad,'*Outdent:*\x20%0',o(_0x5118ad,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2b33c9['commandName'])return _0x2b33c9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5118ad,'*Check\x20item*')}:{'type':'format','content':o(_0x5118ad,'*Uncheck\x20item*')};}function _0x3a2390(_0x51c764){return{'type':'format','content':o(_0x5118ad,'*Change\x20to:*\x20%0',_0x51c764)};}});}}function me(_0x2e3a92){const _0x3294c0=_0x2e3a92['getAttribute']('listIndent');if(0x0==_0x3294c0)return _0x2e3a92;let _0x5d8728=_0x2e3a92;for(;_0x2e3a92['previousSibling']&&_0x2e3a92['previousSibling']['is']('element','listItem');){const _0x58a8ba=_0x2e3a92['previousSibling']['getAttribute']('listIndent');if(_0x58a8ba==_0x3294c0)_0x5d8728=_0x2e3a92['previousSibling'];else{if(_0x58a8ba<_0x3294c0)break;}_0x2e3a92=_0x2e3a92['previousSibling'];}return _0x5d8728;}function fe(_0xd7783c){const _0x3eb8e7=[];if(_0xd7783c['is']('element','listItem')&&_0xd7783c['getAttribute']('listIndent')>0x0){let _0x113872=_0xd7783c['nextSibling'];for(;_0x113872&&'listItem'==_0x113872['name']&&_0x113872['getAttribute']('listIndent')==_0xd7783c['getAttribute']('listIndent');)_0x3eb8e7['push'](_0x113872),_0x113872=_0x113872['nextSibling'];}return _0x3eb8e7;}class K extends _0x11216f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x33eb09=this['editor']['config']['get']('list.properties'),_0x1be297=this['editor']['plugins']['get']('TrackChangesEditing');_0x33eb09['styles']&&_0x1be297['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x33eb09['reversed']&&_0x1be297['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x33eb09['startIndex']&&_0x1be297['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1be297['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2464aa,_0x58aef8={}){const _0x20d786=this['editor']['plugins']['get']('TrackChangesEditing'),_0x70ea10=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x20d786['markMultiRangeBlockFormat'](_0x70ea10,{'commandName':'listStyle','commandParams':[{'type':_0x58aef8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4337b8,_0x441268={}){const _0x2a257d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d8858=this['_getSuggestionBlocks'](_0xe40f1b=>_0xe40f1b['is']('element','listItem')&&'numbered'===_0xe40f1b['getAttribute']('listType'));if(_0x4d8858['length']<0x1)return;const _0x54825c=_0x4d8858['map'](_0x5086d0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5086d0,'before'),this['editor']['model']['createPositionAt'](_0x5086d0,0x0)));this['editor']['model']['change'](()=>{_0x2a257d['markMultiRangeBlockFormat'](_0x54825c,{'commandName':'listReversed','commandParams':[{'reversed':_0x441268['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x98f202,_0x25f955={}){const _0x2ea43e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ce26f=this['_getSuggestionBlocks'](_0x389951=>_0x389951['is']('element','listItem')&&'numbered'===_0x389951['getAttribute']('listType'));if(_0x3ce26f['length']<0x1)return;const _0x169c1e=_0x3ce26f['map'](_0x33c218=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33c218,'before'),this['editor']['model']['createPositionAt'](_0x33c218,0x0)));this['editor']['model']['change'](()=>{_0x2ea43e['markMultiRangeBlockFormat'](_0x169c1e,{'commandName':'listStart','commandParams':[{'startIndex':_0x25f955['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x145acc){if('formatBlock'!=_0x145acc['type']&&'formatInline'!=_0x145acc['type'])return;const _0x3588d8=this['editor']['locale'],{data:_0x3a25c3}=_0x145acc;if(!_0x3a25c3)return;let _0x15840f,_0x3464cb;switch(_0x3a25c3['commandName']){case'listStyle':_0x15840f='*Change\x20to:*\x20%0',_0x3464cb={'type':'format','content':o(_0x3588d8,_0x15840f,o(_0x3588d8,this['_getTranslationKeyForListStyle'](_0x3a25c3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x15840f=_0x3a25c3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3464cb={'type':'format','content':o(_0x3588d8,_0x15840f)};break;case'listStart':_0x15840f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3464cb={'type':'format','content':o(_0x3588d8,_0x15840f,_0x3a25c3['commandParams'][0x0]['startIndex'])};}return _0x3464cb;}['_getSuggestionBlocksForListStyle'](){const _0x5c434e=this['editor']['plugins']['get']('LegacyListUtils');let _0x2e8630=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2e8630[0x0]?.['is']('element','listItem')&&_0x2e8630['unshift'](..._0x5c434e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2e8630[_0x2e8630['length']-0x1]?.['is']('element','listItem')&&_0x2e8630['push'](..._0x5c434e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2e8630=[...new Set(_0x2e8630)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2e8630=_0x2e8630['filter'](_0x5d7a43=>_0x5d7a43['is']('element','listItem'))),_0x2e8630;}['_getSuggestionBlocks'](_0x3890f2){const _0x34c14a=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ad1ed=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3890f2)['map'](_0x82291b=>{const _0x2cd6ca=this['editor']['model']['createPositionAt'](_0x82291b,0x0);return[..._0x34c14a['getSiblingNodes'](_0x2cd6ca,'backward'),..._0x34c14a['getSiblingNodes'](_0x2cd6ca,'forward')];})['flat']();return _0x4ad1ed=[...new Set(_0x4ad1ed)],_0x4ad1ed;}['_getTranslationKeyForListStyle'](_0x8043b0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x8043b0)||'default')['toUpperCase']()+'_LIST_'+_0x8043b0['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x11216f{['afterInit'](){const _0x20b277=this['editor'];if(!_0x20b277['plugins']['has']('MediaEmbedEditing'))return;const _0x5dec4f=_0x20b277['plugins']['get']('TrackChangesEditing'),_0x9c62aa=_0x20b277['locale'];_0x5dec4f['enableCommand']('mediaEmbed'),_0x5dec4f['descriptionFactory']['registerElementLabel']('media',_0x16b0c3=>o(_0x9c62aa,'ELEMENT_MEDIA',_0x16b0c3)),_0x20b277['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x551582,{writer:_0x3caa2f,options:_0x4b055b})=>{if(_0x4b055b['showSuggestionHighlights'])return _0x3caa2f['createEmptyElement']('div');},'converterPriority':'high'}),_0x20b277['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3a49f7,_0xbdf388,_0x369b5e)=>{_0x369b5e['options']['showSuggestionHighlights']&&_0x3a49f7['stop']();},{'priority':'high'});}}class gt extends _0x11216f{['afterInit'](){const _0x138497=this['editor'];_0x138497['plugins']['has']('MentionEditing')&&_0x138497['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x11216f{['afterInit'](){const _0x57600f=this['editor'],_0x3526a4=_0x57600f['plugins']['get']('TrackChangesEditing');_0x57600f['plugins']['has']('MultiLevelList')&&(_0x3526a4['enableDefaultAttributesIntegration']('multiLevelList'),_0x3526a4['registerBlockAttribute']('listMarkerStyle'),_0x3526a4['descriptionFactory']['registerDescriptionCallback'](_0x3320a6=>this['handleDescriptions'](_0x3320a6)));}['handleDescriptions'](_0x102939){const _0x32398c=this['editor']['locale'],{data:_0x211cb4}=_0x102939,_0x31ec4a={'type':'format','content':''};if(_0x211cb4&&'listMarkerStyle'==_0x211cb4['key']){if(!_0x211cb4['oldValue'])return{'type':'format','content':o(_0x32398c,'*Set\x20format:*\x20%0',o(_0x32398c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x211cb4['newValue']+')'};if(!_0x211cb4['newValue']){let _0x245441=_0x102939['head'];for(;_0x245441;){if(_0x245441['data']&&'listType'==_0x245441['data']['key']&&_0x245441['data']['newValue'])return _0x31ec4a;_0x245441=_0x245441['next'];}return{'type':'format','content':o(_0x32398c,'*Remove\x20format:*\x20%0',o(_0x32398c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x211cb4['oldValue']+')'};}}}}class mt extends _0x11216f{['afterInit'](){const _0x43a6bc=this['editor'];if(!_0x43a6bc['plugins']['has']('PageBreakEditing'))return;_0x43a6bc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x9e7351=_0x43a6bc['plugins']['get']('TrackChangesEditing'),_0x2c8849=_0x43a6bc['locale'];_0x9e7351['descriptionFactory']['registerElementLabel']('pageBreak',_0x1e54ac=>o(_0x2c8849,'ELEMENT_PAGE_BREAK',_0x1e54ac));}}class dt extends _0x11216f{['afterInit'](){const _0x5e048b=this['editor'];if(!_0x5e048b['plugins']['has']('Paragraph'))return;const _0x39e187=_0x5e048b['locale'],_0x5f0ab4=_0x5e048b['plugins']['get']('TrackChangesEditing');_0x5f0ab4['descriptionFactory']['registerElementLabel']('paragraph',_0x4a28ad=>o(_0x39e187,'ELEMENT_PARAGRAPH',_0x4a28ad)),_0x5f0ab4['enableDefaultAttributesIntegration']('paragraph'),_0x5f0ab4['enableCommand']('insertParagraph'),_0x5e048b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5e048b),{'priority':'highest'}),_0x5e048b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f988b,_0x270e39,_0x17986b)=>{_0x17986b['options']['showSuggestionHighlights']&&nr(_0x5e048b,{'showActiveMarker':!0x1})(_0x4f988b,_0x270e39,_0x17986b);},{'priority':'highest'});const _0x19c513=_0x5f0ab4['descriptionFactory'];_0x19c513['registerDescriptionCallback'](_0xc0e862=>{if('insertion'!==_0xc0e862['type'])return;const {start:_0x50acb7,end:_0x40199a}=_0xc0e862['getFirstRange']();if(!_0x50acb7['isTouching'](_0x40199a)||!_0x50acb7['nodeAfter'])return;const _0x56cfbd=_0x5e048b['model']['schema'],_0x5f1f21=_0x50acb7['nodeAfter'];return _0x56cfbd['isBlock'](_0x5f1f21)&&!_0x56cfbd['isLimit'](_0x5f1f21)&&_0x56cfbd['checkChild'](_0x5f1f21,'$text')?{'type':'insertion','content':o(_0x39e187,'*Insert:*\x20%0',_0x19c513['getItemLabel'](_0x5f1f21,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3312a6=this['editor'],_0x205efb=_0x3312a6['locale'];_0x3312a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c38e5=>{if('formatBlock'!=_0x3c38e5['type'])return;const {data:_0x113e21}=_0x3c38e5;return _0x113e21&&'paragraph'==_0x113e21['commandName']?{'type':'format','content':o(_0x205efb,'*Change\x20to:*\x20%0',o(_0x205efb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x254da4,{showActiveMarker:_0x23002f=!0x0}={}){return(_0x5983e4,_0x5f4d34,_0x1e2d43)=>{const _0x1d5244=_0x254da4['plugins']['get']('TrackChangesEditing'),_0x4f88b1=_0x5f4d34['markerRange']['start'],_0x4007dc=_0x5f4d34['markerRange']['end'],_0x1a5712=_0x254da4['model']['schema'];if(!_0x4f88b1['isTouching'](_0x4007dc)||!_0x4f88b1['nodeAfter'])return;const _0x1f3c35=_0x4f88b1['nodeAfter'];if(_0x1a5712['isBlock'](_0x1f3c35)&&!_0x1a5712['isLimit'](_0x1f3c35)&&_0x1a5712['checkChild'](_0x1f3c35,'$text')){if(!_0x1e2d43['consumable']['consume'](_0x5f4d34['markerRange'],_0x5983e4['name']))return;const _0x22284b=_0x1e2d43['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x522069=_0x1e2d43['mapper']['toViewPosition'](_0x4007dc);_0x23002f&&_0x1d5244['activeMarkers']['includes'](_0x5f4d34['markerName'])&&_0x1e2d43['writer']['addClass']('ck-suggestion-marker--active',_0x22284b),_0x1e2d43['writer']['insert'](_0x522069,_0x22284b),_0x1e2d43['mapper']['bindElementToMarker'](_0x22284b,_0x5f4d34['markerName']);}};}class pt extends _0x11216f{['afterInit'](){const _0x34590a=this['editor'];if(!_0x34590a['plugins']['has']('RemoveFormatEditing'))return;_0x34590a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x364eaf=this['editor'];_0x364eaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x464a33=>{if('formatBlock'!=_0x464a33['type']&&'formatInline'!=_0x464a33['type'])return;const {data:_0x1b1022}=_0x464a33;return _0x1b1022&&'removeFormat'==_0x1b1022['commandName']?{'type':'format','content':o(_0x364eaf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x11216f{['afterInit'](){const _0x213149=this['editor'];if(!_0x213149['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x27eba9=_0x213149['plugins']['get']('TrackChangesEditing');_0x27eba9['enableCommand']('goToPreviousRestrictedEditingException'),_0x27eba9['enableCommand']('goToNextRestrictedEditingException');const _0x2ddf68=_0x213149['plugins']['get']('RestrictedEditingModeEditing');_0x2ddf68['enableCommand']('trackChanges'),_0x2ddf68['enableCommand']('acceptSuggestion'),_0x2ddf68['enableCommand']('discardSuggestion'),_0x2ddf68['enableCommand']('acceptAllSuggestions'),_0x2ddf68['enableCommand']('discardAllSuggestions'),_0x2ddf68['enableCommand']('acceptSelectedSuggestions'),_0x2ddf68['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x11216f{static get['requires'](){return[_0x47d294];}['init'](){const _0x1f42de=this['editor'],_0x446b0a=_0x1f42de['plugins']['get']('TrackChangesEditing');_0x446b0a['enableCommand']('shiftEnter'),_0x1f42de['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1f42de),{'priority':'high'}),_0x1f42de['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1f42de),{'priority':'high'}),_0x1f42de['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10cdef,_0x45e7c4,_0x423ace)=>{_0x423ace['options']['showSuggestionHighlights']&&de(_0x1f42de,{'showActiveMarker':!0x1})(_0x10cdef,_0x45e7c4,_0x423ace);}),_0x446b0a['descriptionFactory']['registerElementLabel']('softBreak',_0x4794f1=>o(_0x1f42de['locale'],'ELEMENT_LINE_BREAK',_0x4794f1));}}function de(_0x71ec3c,{showActiveMarker:_0xccb989=!0x0}={}){return(_0x482742,_0x61a30d,_0x20e6f9)=>{const _0x56d72f=_0x71ec3c['plugins']['get']('TrackChangesEditing');if(!_0x20e6f9['consumable']['test'](_0x61a30d['markerRange'],_0x482742['name']))return;const _0xd2f1fa=_0x71ec3c['model'];for(const _0x1b5d39 of _0x61a30d['markerRange']['getItems']()){if(!_0x1b5d39['is']('element','softBreak'))continue;const _0x108f78='deletion'==_0x61a30d['markerName']['split'](':')[0x1]?'merge':'split',_0x1903c8=_0x20e6f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x108f78}),_0x37d42c=_0x20e6f9['mapper']['toViewPosition'](_0xd2f1fa['createPositionBefore'](_0x1b5d39));_0xccb989&&_0x56d72f['activeMarkers']['includes'](_0x61a30d['markerName'])&&_0x20e6f9['writer']['addClass']('ck-suggestion-marker--active',_0x1903c8),_0x20e6f9['writer']['insert'](_0x37d42c,_0x1903c8),_0x20e6f9['mapper']['bindElementToMarker'](_0x1903c8,_0x61a30d['markerName']);}};}class wt extends _0x11216f{['afterInit'](){const _0x5d1cd8=this['editor'],_0x449f1e=_0x5d1cd8['model'],_0x4fb511=_0x5d1cd8['locale'];if(!_0x5d1cd8['plugins']['has']('StandardEditingModeEditing'))return;const _0x2bc57a=_0x5d1cd8['plugins']['get']('TrackChangesEditing'),_0x3837e1='restrictedEditingException',_0x300559=_0x5d1cd8['commands']['get'](_0x3837e1);_0x2bc57a['enableCommand'](_0x3837e1,(_0x507e1,_0x42cb84={})=>{const _0x4fb5a4=_0x449f1e['document']['selection'];if(_0x4fb5a4['isCollapsed'])return void _0x507e1(_0x42cb84);const _0x22f2b6=void 0x0!==_0x42cb84['forceValue']?_0x42cb84['forceValue']:!_0x300559['value'];_0x449f1e['change'](()=>{const _0x536662=Array['from'](_0x4fb5a4['getRanges']());for(const _0x216599 of _0x536662){const _0x19a8d1=_0x22f2b6?[_0x216599]:io(_0x3837e1,_0x216599,_0x449f1e);for(const _0x32bcca of _0x19a8d1)_0x2bc57a['markInlineFormat'](_0x32bcca,{'commandName':_0x3837e1,'commandParams':[{'forceValue':_0x22f2b6}]});}});}),_0x2bc57a['descriptionFactory']['registerDescriptionCallback'](_0x1807e2=>{if('formatBlock'!=_0x1807e2['type']&&'formatInline'!=_0x1807e2['type'])return;const {data:_0x4c0d61}=_0x1807e2;return _0x4c0d61&&_0x4c0d61['commandName']==_0x3837e1?_0x4c0d61['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fb511,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fb511,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x11216f{['afterInit'](){const _0x2aed12=this['editor'];if(!_0x2aed12['plugins']['has']('Style')||!_0x2aed12['plugins']['has']('DataSchema'))return;const _0x9db301=_0x2aed12['plugins']['get']('TrackChangesEditing'),_0x5af094=_0x2aed12['locale'],_0x3fe6c9=_0x2aed12['config']['get']('style')||{},_0x438628=_0x2aed12['plugins']['get']('GeneralHtmlSupport'),_0x29e4bc=_0x2aed12['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2aed12['plugins']['get']('DataSchema'),_0x3fe6c9['definitions']);_0x9db301['enableDefaultAttributesIntegration']('style');const _0x445a73=new Set();for(const _0x1d47e7 of _0x29e4bc['block']){const _0x34c2b3=_0x438628['getGhsAttributeNameForElement'](_0x1d47e7['element']);_0x445a73['add'](_0x34c2b3);}const _0x2af782=new Set();for(const _0x45cae5 of _0x29e4bc['inline']){const _0xa89047=_0x438628['getGhsAttributeNameForElement'](_0x45cae5['element']);_0x2af782['add'](_0xa89047);for(const _0x1b1f98 of _0x45cae5['ghsAttributes'])_0x2af782['add'](_0x1b1f98);}for(const _0x329c53 of _0x445a73)_0x9db301['registerBlockAttribute'](_0x329c53),_0x9db301['descriptionFactory']['registerAttributeLabel'](_0x329c53,o(_0x5af094,'FORMAT_STYLE'));for(const _0x5733e1 of _0x2af782)_0x9db301['registerInlineAttribute'](_0x5733e1),_0x9db301['descriptionFactory']['registerAttributeLabel'](_0x5733e1,o(_0x5af094,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44bcbe=this['editor'],_0x4e19e7=_0x44bcbe['locale'];_0x44bcbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cd535=>{if('formatBlock'!=_0x3cd535['type']&&'formatInline'!=_0x3cd535['type'])return;const {data:_0x29d5df}=_0x3cd535;return _0x29d5df&&'style'===_0x29d5df['commandName']?_0x29d5df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e19e7,'*Set\x20format:*\x20%0',_0x29d5df['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4e19e7,'*Remove\x20format:*\x20%0',_0x29d5df['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x11216f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x27b706){super(_0x27b706),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3d5acb=this['editor'],_0x19db24=_0x3d5acb['model']['document']['selection'];if(!_0x3d5acb['plugins']['has']('TableEditing'))return;const _0x985d13=_0x3d5acb['locale'],_0x5119ae=_0x3d5acb['plugins']['get']('TrackChangesEditing'),_0x22fde0=_0x3d5acb['plugins']['get']('TableUtils');_0x5119ae['descriptionFactory']['registerElementLabel']('table',_0x523cd4=>o(_0x985d13,'ELEMENT_TABLE',_0x523cd4)),this['_setupColumnsRowsFixing'](),_0x5119ae['enableCommand']('insertTable'),_0x5119ae['enableCommand']('selectTableRow'),_0x5119ae['enableCommand']('selectTableColumn');for(const _0x42c0d0 of['insertTableRowAbove','insertTableRowBelow']){const _0x61d2bf=_0x3d5acb['commands']['get'](_0x42c0d0);_0x5119ae['enableCommand'](_0x42c0d0,_0x136247=>{_0x3d5acb['model']['change'](_0x57abc2=>{_0x136247();const _0x126ccd='above'===_0x61d2bf['order'],_0x559ad2=_0x22fde0['getSelectionAffectedTableCells'](_0x19db24),_0x2d788a=_0x22fde0['getRowIndexes'](_0x559ad2),_0x50305e=_0x126ccd?_0x2d788a['first']-0x1:_0x2d788a['last']+0x1,_0x17d3ce=_0x559ad2[0x0]['findAncestor']('table'),_0x21db16=_0x22fde0['createTableWalker'](_0x17d3ce,{'startRow':_0x50305e,'endRow':_0x50305e}),_0x4e8de5=Array['from'](_0x21db16)['map'](_0x172a30=>_0x57abc2['createRangeOn'](_0x172a30['cell']));_0x5119ae['markMultiRangeInsertion'](_0x4e8de5,'tableRow');});});}for(const _0x3573e9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5ae536=_0x3d5acb['commands']['get'](_0x3573e9);_0x5119ae['enableCommand'](_0x3573e9,_0x5109f6=>{_0x3d5acb['model']['change'](_0x20c2b3=>{_0x5109f6();const _0x23d0c8='left'===_0x5ae536['order'],_0x406baa=_0x22fde0['getSelectionAffectedTableCells'](_0x19db24),_0x43511a=_0x22fde0['getColumnIndexes'](_0x406baa),_0x191c96=_0x23d0c8?_0x43511a['first']-0x1:_0x43511a['last']+0x1,_0x419486=_0x406baa[0x0]['findAncestor']('table'),_0x49fbdd=_0x22fde0['createTableWalker'](_0x419486,{'startRow':0x0,'column':_0x191c96,'includeAllSlots':!0x1}),_0x51b7e2=Array['from'](_0x49fbdd)['map'](_0x55e268=>_0x20c2b3['createRangeOn'](_0x55e268['cell']));_0x5119ae['markMultiRangeInsertion'](_0x51b7e2,'tableColumn');});});}for(const _0x4cbb63 of['removeTableRow','removeTableColumn']){const _0x558179=_0x4cbb63['substr'](0xb),_0x317442=_0x558179['toLowerCase'](),_0x2114e6=_0x317442['substr'](0x0,0x3)+'span',_0x2d6fb4='table'+_0x558179,_0x103fa7='min'+_0x558179,_0x175680='max'+_0x558179;_0x5119ae['enableCommand'](_0x4cbb63,()=>{_0x3d5acb['model']['change'](_0x43566d=>{const _0x39cba7=_0x22fde0['getSelectionAffectedTableCells'](_0x19db24),_0x1d3a82=_0x39cba7[0x0]['findAncestor']('table');let _0x259e71;if('removeTableRow'==_0x4cbb63){const _0x2d936e=_0x22fde0['getRowIndexes'](_0x39cba7);_0x259e71={'startRow':_0x2d936e['first'],'endRow':_0x2d936e['last'],'includeAllSlots':!0x0};}else{const _0x3523df=_0x22fde0['getColumnIndexes'](_0x39cba7);_0x259e71={'startColumn':_0x3523df['first'],'endColumn':_0x3523df['last'],'includeAllSlots':!0x0};}const _0x591caf=_0x22fde0['createTableWalker'](_0x1d3a82,_0x259e71),_0x328ef0=Array['from'](_0x591caf)['map'](({cell:_0x3a38c7})=>_0x3a38c7),_0x2d5f3e=Ee(_0x328ef0['filter'](_0x5f4736=>_0x5f4736['hasAttribute'](_0x2114e6))),_0x5b57ba=Ee(_0x328ef0['filter'](_0x304bd1=>!_0x304bd1['hasAttribute'](_0x2114e6)))['map'](_0x2cc6f8=>_0x43566d['createRangeOn'](_0x2cc6f8)),_0xda40da=_0x5119ae['markMultiRangeDeletion'](_0x5b57ba,_0x2d6fb4);if(_0xda40da&&('tableRow'==_0xda40da['subType']||'tableColumn'==_0xda40da['subType'])){const _0x4203b4=this['_getSuggestionCoords'](_0xda40da);for(const _0x43e61d of _0x2d5f3e){const _0x3d0556=_0x43566d['createRangeOn'](_0x43e61d),_0x3b5b89=_0x22fde0['getCellLocation'](_0x43e61d),_0x23b9ba=_0x43e61d['getAttribute'](_0x2114e6)-0x1,_0x3abf99=_0x4203b4[_0x103fa7],_0xe0ed4f=_0x4203b4[_0x175680];_0x3abf99<=_0x3b5b89[_0x317442]&&_0x3b5b89[_0x317442]+_0x23b9ba<=_0xe0ed4f&&_0xda40da['addRange'](_0x3d0556);}}});});}function _0x1f88d3(_0xba0e89){const _0x27e0c6=Array['from'](_0x19db24['getRanges']())['map'](_0x215566=>_0x17267b['fromRange'](_0x215566));_0x3d5acb['model']['change'](_0x28b8aa=>{const _0x5efd98=_0x28b8aa['batch'];_0xba0e89=_0xba0e89['filter'](_0x2270c3=>'$graveyard'!=_0x2270c3['root']['rootName']),_0x28b8aa['setSelection'](_0xba0e89),_0x3d5acb['commands']['get']('removeTableRow')['refresh'](),_0x3d5acb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3d5acb['model']['enqueueChange'](()=>{_0x3d5acb['model']['enqueueChange'](_0x5efd98,_0x48962d=>{const _0x17495d=_0x27e0c6['filter'](_0x3fbffd=>'$graveyard'!=_0x3fbffd['root']['rootName']);_0x17495d['length']>0x0&&_0x48962d['setSelection'](_0x17495d);for(const _0x5cc1fd of _0x27e0c6)_0x5cc1fd['detach']();});});});}function _0x13972f(_0x3f50a0){_0x3d5acb['model']['change'](_0x48bbd8=>{const _0x41da2a=Array['from'](_0x19db24['getRanges']())['map'](_0x45dfa1=>_0x17267b['fromRange'](_0x45dfa1)),_0x47b7bb=[];for(const _0xecc7d2 of _0x3f50a0)for(const _0x30a1fb of _0xecc7d2['getItems']({'shallow':!0x0}))_0x47b7bb['push'](_0x30a1fb);for(const _0x2d7f25 of _0x47b7bb)'$graveyard'!=_0x2d7f25['root']['rootName']&&(_0x48bbd8['setSelection'](_0x48bbd8['createPositionAt'](_0x2d7f25,0x0)),_0x3d5acb['commands']['get']('removeTableColumn')['refresh'](),_0x3d5acb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x19ba97=_0x41da2a['filter'](_0x347ee8=>'$graveyard'!=_0x347ee8['root']['rootName']);_0x19ba97['length']>0x0&&_0x48bbd8['setSelection'](_0x19ba97);for(const _0x347ac3 of _0x41da2a)_0x347ac3['detach']();});}function _0x1d5ccc(_0x78760c,_0x302ab9){return _0x302ab9['every'](_0x1208f0=>_0x78760c['some'](_0x46fbd8=>_0x46fbd8['end']['isEqual'](_0x1208f0['start'])||_0x1208f0['end']['isEqual'](_0x46fbd8['start'])));}function _0xd3c16b(_0x412404,_0x124ed0){return!_0x412404['some'](_0x2ee65d=>_0x124ed0['some'](_0x4b75f4=>_0x2ee65d['isIntersecting'](_0x4b75f4)))&&_0x412404['some'](_0x41b7bf=>_0x124ed0['some'](_0x445ae4=>_0x41b7bf['end']['isTouching'](_0x445ae4['start'])));}_0x3d5acb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5171db,_0x1777cf,_0x443001)=>{if(!_0x443001['options']['showSuggestionHighlights'])return;const _0x5aba1c=_0x1777cf['item'];if(!_0x5aba1c)return;const _0x10ebb2=_0x443001['mapper']['toViewElement'](_0x5aba1c);function _0x9c3ce0(_0x3bb3c8){return Array['isArray'](_0x3bb3c8)?_0x3bb3c8:[_0x3bb3c8];}_0x10ebb2&&'tableCell'===_0x5aba1c['name']&&_0x147a9e(_0x10ebb2,_0x443001['writer'],(_0x24d6e6,_0x2119b6,_0x168c47)=>_0x168c47['addClass'](_0x9c3ce0(_0x2119b6['classes']),_0x24d6e6),(_0xba18ad,_0x35d0f2,_0x5f34af)=>_0x5f34af['removeClass'](_0x9c3ce0(_0x35d0f2['classes']),_0xba18ad));},{'priority':'highest'}),_0x5119ae['descriptionFactory']['registerDescriptionCallback'](_0x3922d7=>{if('insertion'!=_0x3922d7['type']&&'deletion'!=_0x3922d7['type'])return;const _0x50ad61=_0x3922d7['getContainedElement']();if(null!=_0x50ad61&&_0x50ad61['is']('element','table')){if('insertion'==_0x3922d7['type']){const _0x2ffe26=_0x3922d7['getItems']()['filter'](_0x53910d=>_0x53910d['is']('$textProxy'))['map'](_0x20b0cf=>_0x20b0cf['data']);if(_0x2ffe26['length'])return{'type':'insertion','content':o(_0x985d13,'*Insert:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2ffe26['join']('\x20')+'\x22'))};}if('deletion'==_0x3922d7['type']){const _0x4a93aa=_0x3922d7['getItems']()['filter'](_0x2cef62=>_0x2cef62['is']('$textProxy'))['map'](_0x2f6f1c=>_0x2f6f1c['data']);if(_0x4a93aa['length'])return{'type':'deletion','content':o(_0x985d13,'*Remove:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a93aa['join']('\x20')+'\x22'))};}}}),_0x5119ae['descriptionFactory']['registerDescriptionCallback'](_0x1f7aa6=>{if('tableRow'==_0x1f7aa6['subType']){const _0x41f505=_0x1f7aa6['getItems']()['filter'](_0x57f142=>_0x57f142['is']('$textProxy'))['map'](_0x199a53=>_0x199a53['data']),_0x3e0093=this['_getSuggestionCoords'](_0x1f7aa6),_0x2bd4a7=_0x3e0093['maxRow']-_0x3e0093['minRow']+0x1;if('insertion'==_0x1f7aa6['type'])return _0x41f505['length']?{'type':'insertion','content':o(_0x985d13,'*Insert:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bd4a7,'\x22'+_0x41f505['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x985d13,'*Insert:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_ROW',_0x2bd4a7))};if('deletion'==_0x1f7aa6['type'])return _0x41f505['length']?{'type':'deletion','content':o(_0x985d13,'*Remove:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bd4a7,'\x22'+_0x41f505['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x985d13,'*Remove:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_ROW',_0x2bd4a7))};}if('tableColumn'==_0x1f7aa6['subType']){const _0x354198=_0x1f7aa6['getItems']()['filter'](_0x5d17fe=>_0x5d17fe['is']('$textProxy'))['map'](_0x450d69=>_0x450d69['data']),_0x15a649=this['_getSuggestionCoords'](_0x1f7aa6),_0x48320e=_0x15a649['maxColumn']-_0x15a649['minColumn']+0x1;if('insertion'==_0x1f7aa6['type'])return _0x354198['length']?{'type':'insertion','content':o(_0x985d13,'*Insert:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48320e,'\x22'+_0x354198['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x985d13,'*Insert:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_COLUMN',_0x48320e))};if('deletion'==_0x1f7aa6['type'])return _0x354198['length']?{'type':'deletion','content':o(_0x985d13,'*Remove:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48320e,'\x22'+_0x354198['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x985d13,'*Remove:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_COLUMN',_0x48320e))};}}),_0x5119ae['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1f88d3),_0x5119ae['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1f88d3),_0x5119ae['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13972f),_0x5119ae['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13972f),_0x5119ae['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1d5ccc),_0x5119ae['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1d5ccc),_0x5119ae['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xd3c16b),_0x5119ae['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xd3c16b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f6997=this['editor'],_0x187db0=_0x4f6997['model']['document']['selection'];return(_0x10e061,_0x1f66e4)=>{_0x4f6997['model']['change'](_0x589c82=>{const {commandName:_0x328ff3,commandParams:_0x4abe6b}=_0x1f66e4;let _0xd8c1b6=_0x10e061[0x0]['end']['nodeBefore'];_0x4abe6b&&_0x4abe6b[0x0]&&!0x1===_0x4abe6b[0x0]['forceValue']&&(_0xd8c1b6=_0x10e061[0x0]['start']['nodeAfter']);const _0x1fafc6=_0x589c82['createRangeIn'](_0xd8c1b6);if('$graveyard'==_0x1fafc6['root']['rootName'])return;const _0x4f7726=Array['from'](_0x187db0['getRanges']())['map'](_0x29864d=>_0x17267b['fromRange'](_0x29864d));_0x589c82['setSelection'](_0x1fafc6),_0x4f6997['commands']['get'](_0x328ff3)['refresh'](),_0x4abe6b['push']({'forceDefaultExecution':!0x0}),_0x4f6997['execute'](_0x328ff3,..._0x4abe6b);const _0x43c1d9=_0x4f7726['filter'](_0x404d66=>'$graveyard'!=_0x404d66['root']['rootName']);_0x43c1d9['length']>0x0&&_0x589c82['setSelection'](_0x43c1d9);for(const _0x1c560a of _0x4f7726)_0x1c560a['detach']();});};}['_getCoordsForCells'](_0x5d0bd2){const _0x486fa7=this['editor']['plugins']['get']('TableUtils');let _0x5365cc=Number['MAX_SAFE_INTEGER'],_0xa5b89b=Number['MIN_SAFE_INTEGER'],_0x478c27=Number['MAX_SAFE_INTEGER'],_0x292dce=Number['MIN_SAFE_INTEGER'];for(const _0x4eb232 of _0x5d0bd2){if('$graveyard'==_0x4eb232['root']['rootName'])continue;const {row:_0x45f0ff,column:_0x3e45d1}=_0x486fa7['getCellLocation'](_0x4eb232),_0x5992f2=_0x4eb232['hasAttribute']('rowspan')?_0x4eb232['getAttribute']('rowspan')-0x1:0x0,_0x2ef42f=_0x4eb232['hasAttribute']('colspan')?_0x4eb232['getAttribute']('colspan')-0x1:0x0;_0x5365cc=_0x45f0ff<_0x5365cc?_0x45f0ff:_0x5365cc,_0xa5b89b=_0x45f0ff+_0x5992f2>_0xa5b89b?_0x45f0ff+_0x5992f2:_0xa5b89b,_0x478c27=_0x3e45d1<_0x478c27?_0x3e45d1:_0x478c27,_0x292dce=_0x3e45d1+_0x2ef42f>_0x292dce?_0x3e45d1+_0x2ef42f:_0x292dce;}return{'minRow':_0x5365cc,'maxRow':_0xa5b89b,'minColumn':_0x478c27,'maxColumn':_0x292dce};}['_setupColumnsRowsFixing'](){const _0x40abb2=this['editor'],_0x58f13c=_0x40abb2['plugins']['get']('TrackChangesEditing'),_0x292f43=_0x40abb2['plugins']['get']('TableUtils');_0x40abb2['model']['document']['on']('change:data',()=>{const _0xa35f2e=Array['from'](_0x40abb2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cab33,data:_0x264d6c}of _0xa35f2e){const {group:_0x1e0ef6,id:_0x3367be,subType:_0x4b10a6}=_0x58f13c['_splitMarkerName'](_0x1cab33);if('suggestion'!=_0x1e0ef6)continue;if(null!=_0x264d6c['oldRange'])continue;const _0x25612d=_0x58f13c['getSuggestion'](_0x3367be);this['_tablePostFixingSubtypes']['includes'](_0x4b10a6)&&this['_tableSuggestions']['add'](_0x25612d);}},{'priority':'low'});const _0x2e7ecc=(_0x332577,_0x257d48)=>{let _0x2fc549=!0x1;const _0x52cc5e=_0x257d48['createRangeOn'](_0x332577),_0x30dedb=_0x332577['findAncestor']('table'),_0x3fe17e=_0x292f43['getCellLocation'](_0x332577);for(const _0x4ebea2 of this['_tableSuggestions']){const _0x37771f=_0x4ebea2['subType'],_0x19360d=_0x37771f['startsWith']('tablePaste'),_0x56a4c6=_0x37771f['substr'](_0x19360d?0xa:0x5),_0x333848=_0x56a4c6['toLowerCase'](),_0x365da3=_0x333848['substr'](0x0,0x3)+'span',_0x3b3408='min'+_0x56a4c6,_0x5f2b9b='max'+_0x56a4c6;if(!_0x4ebea2['isInContent'])continue;if(_0x30dedb!=_0x4ebea2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4ebea2['isIntersectingWithRange'](_0x52cc5e))continue;const _0x29e66a=_0x332577['hasAttribute'](_0x365da3)?_0x332577['getAttribute'](_0x365da3)-0x1:0x0,_0x1ae026=this['_getSuggestionCoords'](_0x4ebea2),_0x28e745=_0x1ae026[_0x3b3408],_0xd0078f=_0x1ae026[_0x5f2b9b];_0x28e745<=_0x3fe17e[_0x333848]&&_0x3fe17e[_0x333848]+_0x29e66a<=_0xd0078f&&(_0x4ebea2['addRange'](_0x52cc5e),_0x2fc549=!0x0);}return _0x2fc549;};_0x40abb2['model']['document']['registerPostFixer'](_0x177184=>{let _0x49b128=!0x1;for(const _0xef5a7a of _0x40abb2['model']['document']['differ']['getChanges']())if('insert'==_0xef5a7a['type']){if('tableRow'==_0xef5a7a['name']){for(const _0x4005f9 of _0xef5a7a['position']['nodeAfter']['getChildren']())_0x49b128=_0x49b128||_0x2e7ecc(_0x4005f9,_0x177184);}else'tableCell'==_0xef5a7a['name']&&(_0x49b128=_0x49b128||_0x2e7ecc(_0xef5a7a['position']['nodeAfter'],_0x177184));}return _0x49b128;});}['_getSuggestionCoords'](_0x4dfee3){return this['_getCoordsForCells'](_0x4dfee3['getRanges']()['map'](_0x4f27e3=>_0x4f27e3['start']['nodeAfter']));}}function Ee(_0x137c90){return Array['from'](new Set(_0x137c90)['values']());}class St extends _0x11216f{static get['requires'](){return[jt];}['afterInit'](){const _0x192596=this['editor'],_0x471653=_0x192596['model']['document']['selection'],_0x25d500=_0x192596['locale'];if(!_0x192596['plugins']['has']('TableEditing'))return;const _0x330b47=_0x192596['plugins']['get']('TrackChangesEditing'),_0xb41b3e=_0x192596['plugins']['get']('TableUtils'),_0xda590e=_0x192596['plugins']['get'](jt);_0xda590e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x330b47['enableCommand']('mergeTableCells',()=>{const _0xc3d39a=_0xb41b3e['getSelectionAffectedTableCells'](_0x192596['model']['document']['selection']);_0x192596['model']['change'](()=>{_0x330b47['markMultiRangeBlockFormat'](_0xc3d39a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x192596['commands']['get']('mergeTableCells')['on']('execute',(_0x25f05d,_0x35eb86)=>{_0x192596['commands']['get']('trackChanges')['value']&&(_0x35eb86['length']>0x0&&_0x35eb86[_0x35eb86['length']-0x1]&&_0x35eb86[_0x35eb86['length']-0x1]['forceDefaultExecution']||_0x330b47['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x25f05d['stop']());},{'priority':'highest'});for(const _0x5ae5fc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x205282=_0x192596['commands']['get'](_0x5ae5fc);_0x330b47['enableCommand'](_0x5ae5fc,()=>{const _0x3523b8=_0x192596['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc69a45=>_0xc69a45['is']('element','tableCell')),_0x24b398=_0x205282['value'];_0x192596['model']['change'](()=>{_0x330b47['markMultiRangeBlockFormat']([_0x3523b8,_0x24b398],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d4842 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x21ffd1=_0x192596['commands']['get'](_0x4d4842);_0x330b47['enableCommand'](_0x4d4842,()=>{const _0x2c1523=_0xb41b3e['getSelectionAffectedTableCells'](_0x192596['model']['document']['selection'])[0x0],_0x2b9b8f=_0x2c1523['findAncestor']('table'),{column:_0x1c683b,row:_0xf32acf}=_0xb41b3e['getCellLocation'](_0x2c1523);let _0x297b43=[];if('horizontally'==_0x21ffd1['direction']){const _0x190e2f=_0xb41b3e['createTableWalker'](_0x2b9b8f,{'startRow':_0xf32acf,'endRow':_0xf32acf,'includeAllSlots':!0x0});_0x297b43=Array['from'](_0x190e2f)['map'](_0x7463a6=>_0x7463a6['cell']);}else{const _0x52419c=_0xb41b3e['createTableWalker'](_0x2b9b8f,{'column':_0x1c683b,'includeAllSlots':!0x0});_0x297b43=Array['from'](_0x52419c)['map'](_0x4c23ff=>_0x4c23ff['cell']);}_0x192596['model']['change'](_0x20a923=>{_0x330b47['markBlockFormat'](_0x20a923['createRangeOn'](_0x2c1523),{'commandName':_0x4d4842,'commandParams':[]},_0x297b43,_0x4d4842);});});}_0x330b47['descriptionFactory']['registerDescriptionCallback'](_0x29b11b=>{if('formatBlock'!=_0x29b11b['type']&&'formatInline'!=_0x29b11b['type'])return;const {data:_0x2e44fe}=_0x29b11b;return _0x2e44fe&&'mergeTableCells'==_0x2e44fe['commandName']?{'type':'format','content':o(_0x25d500,'*Merge\x20cells*')}:void 0x0;}),_0x330b47['descriptionFactory']['registerDescriptionCallback'](_0x12a42e=>{if('formatBlock'!=_0x12a42e['type']&&'formatInline'!=_0x12a42e['type'])return;const {data:_0x4d8382}=_0x12a42e;return _0x4d8382?'splitTableCellVertically'==_0x4d8382['commandName']?{'type':'format','content':o(_0x25d500,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4d8382['commandName']?{'type':'format','content':o(_0x25d500,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x30f3f2=_0xda590e['_acceptFormatSuggestionCallbackFactory']();for(const _0x5dc8ad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x330b47['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5dc8ad,'accept',_0x30f3f2);for(const _0x1236a8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x330b47['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1236a8,'accept',_0x30f3f2);_0x330b47['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4c21cc=>{_0x192596['model']['change'](_0x169f56=>{const _0x2b5406=Array['from'](_0x471653['getRanges']())['map'](_0x34c999=>_0x17267b['fromRange'](_0x34c999));_0x169f56['setSelection'](_0x4c21cc),_0x192596['commands']['get']('mergeTableCells')['refresh'](),_0x192596['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x527e37=_0x2b5406['filter'](_0x51873=>'$graveyard'!=_0x51873['root']['rootName']);_0x527e37['length']>0x0&&_0x169f56['setSelection'](_0x527e37);for(const _0x268622 of _0x2b5406)_0x268622['detach']();});});for(const _0x235493 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2e372=_0x192596['commands']['get'](_0x235493);_0x2e372['on']('set:isEnabled',(_0x15eb59,_0x12554b,_0x2db750)=>{if(_0x2db750){const _0x1fee1b=_0x192596['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2f9a48=>_0x2f9a48['is']('element','tableCell'));this['_areMergableCells'](_0x2e372['value'],_0x1fee1b)||(_0x15eb59['return']=!0x1,_0x15eb59['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf4ba24=this['editor']['commands']['get']('mergeTableCells'),_0x235fed=this['editor']['plugins']['get']('TableUtils');if(!_0xf4ba24['isEnabled'])return!0x1;const _0x32f5f9=_0x235fed['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5e63c3 of _0x32f5f9)for(const _0x293e43 of _0x32f5f9)if(_0x5e63c3!=_0x293e43&&!this['_areMergableCells'](_0x5e63c3,_0x293e43))return!0x1;return!0x0;}['_areMergableCells'](_0x35f180,_0x37f29f){const _0x2996e6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b9a9e=this['editor']['model']['createRangeOn'](_0x35f180),_0x308016=this['editor']['model']['createRangeOn'](_0x37f29f),_0x44f3e6=new Set(),_0x4d646e=new Set();for(const _0x1fbf5a of _0x2996e6['getSuggestions']())if(('insertion'==_0x1fbf5a['type']||'deletion'==_0x1fbf5a['type']||'mergeTableCells'==_0x1fbf5a['subType'])&&_0x1fbf5a['isInContent']){for(const _0x10c97d of _0x1fbf5a['getRanges']())_0x10c97d['containsRange'](_0x5b9a9e,!0x0)&&_0x44f3e6['add'](_0x1fbf5a['type']+':'+_0x1fbf5a['author']['id']),_0x10c97d['containsRange'](_0x308016,!0x0)&&_0x4d646e['add'](_0x1fbf5a['type']+':'+_0x1fbf5a['author']['id']);}if(_0x44f3e6['size']!=_0x4d646e['size'])return!0x1;for(const _0x357f8c of _0x44f3e6)if(!_0x4d646e['has'](_0x357f8c))return!0x1;return!0x0;}}class At extends _0x11216f{static get['requires'](){return[jt];}['afterInit'](){const _0x4909c6=this['editor'];if(!_0x4909c6['plugins']['has']('TableEditing'))return;const _0x20f4fa=_0x4909c6['locale'],_0xef55b7=_0x4909c6['plugins']['get']('TrackChangesEditing');_0xef55b7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xef55b7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xef55b7['registerBlockAttribute']('headingRows'),_0xef55b7['registerBlockAttribute']('headingColumns'),_0xef55b7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x20f4fa,'FORMAT_HEADER_ROW')),_0xef55b7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x20f4fa,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5a7b61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x128e5e=this['editor']['plugins']['get']('TableUtils'),_0x3252ca=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x30f194({showActiveMarker:_0x473198=!0x0,setDataAttribute:_0x38d4db=!0x0}={}){return(_0x5057cc,_0x9502ff,_0x566c9c)=>{const {type:_0x40a74a,id:_0x2935e1}=_0x5a7b61['_splitMarkerName'](_0x9502ff['markerName']),_0x197835=_0x5a7b61['getSuggestion'](_0x2935e1),_0x58aacd=_0x197835['data'];if('formatBlock'!=_0x197835['type']||!_0x58aacd||'setTableColumnHeader'!=_0x58aacd['commandName'])return;if(_0x9502ff['item'])return void _0x5057cc['stop']();if(!_0x566c9c['consumable']['consume'](_0x9502ff['markerRange'],_0x5057cc['name']))return;const _0x2d1920=_0x9502ff['markerRange']['start']['nodeAfter'],_0x21ea2c=_0x9502ff['markerRange']['end']['nodeBefore'],_0x4a6611=_0x2d1920['parent']['parent'],{column:_0x2916b3}=_0x128e5e['getCellLocation'](_0x2d1920),{column:_0x145b84}=_0x128e5e['getCellLocation'](_0x21ea2c);for(let _0x5a0e07=_0x2916b3;_0x5a0e07<=_0x145b84;_0x5a0e07++){const _0x57cfb7=_0x128e5e['createTableWalker'](_0x4a6611,{'column':_0x5a0e07,'includeAllSlots':!0x1});for(const _0x1c91db of _0x57cfb7){const _0x19b265=_0x1c91db['cell'],_0x54ee5d=_0x566c9c['mapper']['toViewElement'](_0x19b265);_0x566c9c['writer']['addClass']('ck-suggestion-marker-'+_0x40a74a,_0x54ee5d),_0x38d4db&&_0x566c9c['writer']['setAttribute']('data-suggestion',_0x2935e1,_0x54ee5d),_0x566c9c['mapper']['bindElementToMarker'](_0x54ee5d,_0x9502ff['markerName']),_0x473198&&(_0x5a7b61['activeMarkers']['includes'](_0x9502ff['markerName'])?_0x566c9c['writer']['addClass']('ck-suggestion-marker--active',_0x54ee5d):_0x566c9c['writer']['removeClass']('ck-suggestion-marker--active',_0x54ee5d));}}};}_0x5a7b61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3252ca),_0x5a7b61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3252ca),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x30f194(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x32aa85,_0x23189f,_0x43adfa)=>{_0x43adfa['options']['showSuggestionHighlights']&&_0x30f194({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x32aa85,_0x23189f,_0x43adfa);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x12e46b,_0x1ec7c1,_0x4d04c8)=>{const {type:_0x20bc36,id:_0x13a206}=_0x5a7b61['_splitMarkerName'](_0x1ec7c1['markerName']),_0x485499=_0x5a7b61['getSuggestion'](_0x13a206),_0x5eade6=_0x485499['data'];if('formatBlock'!=_0x485499['type']||!_0x5eade6||'setTableColumnHeader'!=_0x5eade6['commandName'])return;const _0x568c39=_0x4d04c8['mapper']['markerNameToElements'](_0x1ec7c1['markerName']);if(_0x568c39){for(const _0x3360f4 of _0x568c39)_0x4d04c8['writer']['removeClass']('ck-suggestion-marker-'+_0x20bc36,_0x3360f4),_0x4d04c8['writer']['removeClass']('ck-suggestion-marker--active',_0x3360f4),_0x4d04c8['writer']['removeAttribute']('data-suggestion',_0x3360f4),_0x4d04c8['mapper']['unbindElementFromMarkerName'](_0x3360f4,_0x1ec7c1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56d181=this['editor'],_0x5ccc5d=_0x56d181['locale'];function _0x524993(_0x443d43){return{'type':'format','content':o(_0x5ccc5d,'*Format:*\x20%0',_0x443d43)};}_0x56d181['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1822ba=>{if('formatBlock'!=_0x1822ba['type'])return;const {data:_0x4018ea}=_0x1822ba;if(_0x4018ea){if('setTableRowHeader'==_0x4018ea['commandName']){const _0x4b1f20=_0x4018ea['commandParams'][0x0]['forceValue'];return _0x524993(o(_0x5ccc5d,_0x4b1f20?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4018ea['commandName']){const _0xf25ae2=_0x4018ea['commandParams'][0x0]['forceValue'];return _0x524993(o(_0x5ccc5d,_0xf25ae2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3134d9=>[_0x3134d9,null]));class It extends _0x11216f{static get['requires'](){return[jt];}['afterInit'](){const _0x2f398b=this['editor'];if(!_0x2f398b['plugins']['has']('TableClipboard'))return;const _0xcbd763=_0x2f398b['plugins']['get']('TrackChangesEditing'),_0x4aef73=_0x2f398b['plugins']['get']('TableUtils'),_0x5f5c76=_0x2f398b['plugins']['get'](jt),_0x11ec7e=_0x2f398b['plugins']['get']('TableClipboard');_0x5f5c76['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2f398b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2f398b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x422790=null;_0x2f398b['model']['on']('insertContent',(_0x123220,_0x358811)=>{const [_0x1bd9fa,_0x3f787c]=_0x358811,_0x1a0664=_0x358811[_0x358811['length']-0x1];_0x1a0664&&_0x1a0664['forceDefaultExecution']||_0xcbd763['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1b113f,_0x3d8e18,_0x159ef4,_0x130a68,_0x3f6417){if(_0x3d8e18&&!_0x3d8e18['is']('documentSelection'))return!0x1;const _0x4b8034=_0x3f6417['getTableIfOnlyTableInContent'](_0x1b113f,_0x159ef4);if(!_0x4b8034||!he(_0x4b8034,void 0x0,_0x130a68))return!0x1;const _0x2c13cf=_0x130a68['getSelectionAffectedTableCells'](_0x159ef4['document']['selection']);if(!_0x2c13cf['length'])return!0x1;const _0x3fc9e4=_0x2c13cf[0x0]['findAncestor']('table'),_0x28ff21=_0x130a68['getRowIndexes'](_0x2c13cf),_0x534e0f=_0x130a68['getColumnIndexes'](_0x2c13cf),_0x371f66={'startRow':_0x28ff21['first'],'endRow':_0x28ff21['last'],'startColumn':_0x534e0f['first'],'endColumn':_0x534e0f['last']};return 0x1==_0x2c13cf['length']&&(_0x371f66['endRow']+=_0x130a68['getRows'](_0x4b8034)-0x1,_0x371f66['endColumn']+=_0x130a68['getColumns'](_0x4b8034)-0x1),he(_0x3fc9e4,_0x371f66,_0x130a68);}(_0x1bd9fa,_0x3f787c,_0x2f398b['model'],_0x4aef73,_0x11ec7e)&&(_0x123220['stop'](),_0x422790={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2f398b['model']['change'](()=>{_0x2f398b['model']['insertContent'](_0x358811[0x0],_0x358811[0x1],_0x358811[0x2],{'forceDefaultExecution':!0x0});const _0x5882fd=_0x58019d(),{rowInsertionRanges:_0x5819ff,columnInsertionRanges:_0x3e4979,insertionRanges:_0x37eba8,deletionRanges:_0x2c53a1,cells:_0x377b04}=_0x422790;_0x5819ff['length']&&_0xcbd763['markMultiRangeInsertion'](_0x5819ff,'tablePasteRow',{'tablePasteChainId':_0x5882fd}),_0x3e4979['length']&&_0xcbd763['markMultiRangeInsertion'](_0x3e4979,'tablePasteColumn',{'tablePasteChainId':_0x5882fd}),_0x37eba8['length']&&(_0xcbd763['markMultiRangeInsertion'](_0x37eba8,'tablePaste',{'tablePasteChainId':_0x5882fd,'skipNestingCheck':!0x0}),_0x37eba8['forEach'](_0x28926b=>_0x28926b['detach']?.())),_0x2c53a1['length']&&(_0xcbd763['markMultiRangeDeletion'](_0x2c53a1,'tablePaste',{'tablePasteChainId':_0x5882fd,'skipNestingCheck':!0x0}),_0x2c53a1['forEach'](_0x4d5a2d=>_0x4d5a2d['detach']?.()));const _0x5eb3f3=_0xcbd763['markMultiRangeBlockFormat'](_0x377b04['map'](({element:_0x4132a6})=>_0x4132a6),{'formatGroupId':_0x58019d()},[],'tablePasteCell',{'tablePasteChainId':_0x5882fd});if(_0x5eb3f3){const _0x400cc8=_0x5eb3f3['getMarkers'](),_0x314ddf=[];for(const {element:_0x1bdb9f,attributes:_0xd80039}of _0x377b04){if(!_0xd80039)continue;const _0x1aba48=_0x2f398b['model']['createRangeOn'](_0x1bdb9f),_0x364158=_0x400cc8['find'](_0x246f10=>_0x246f10['getRange']()['isEqual'](_0x1aba48));_0x364158&&_0x314ddf['push']([_0x364158['name'],_0xd80039]);}_0x314ddf['length']&&_0x5eb3f3['setAttribute']('markerAttributes',Object['fromEntries'](_0x314ddf));}_0x422790=null;}));},{'priority':_0x3f0408['high']+0xa}),_0x2f398b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x24711e,_0x34841e)=>{const [_0xe5a15e,_0x193f6d,,_0x256448]=_0x34841e;if(!_0x422790)return;_0x24711e['stop']();const _0x36fbb9=_0xe5a15e['cell'],_0x5b991c=_0x193f6d,_0x5412ba=Pe(_0x36fbb9),_0x576fea=Pe(_0x5b991c);_0x24711e['return']=_0x36fbb9;let _0x2f5088=null,_0x1c3f7f=null;if(_0x576fea||_0x5412ba){if(_0x5412ba&&!_0x576fea){_0x256448['remove'](_0x36fbb9['getChild'](0x0));for(const _0x365a0b of Array['from'](_0x5b991c['getChildren']()))_0x256448['insert'](_0x365a0b,_0x36fbb9,'end');const _0x5637fe=_0x422790['rowInsertionIndexes']['includes'](_0xe5a15e['row']),_0x50a1cb=_0x422790['columnInsertionIndexes']['includes'](_0xe5a15e['column']);_0x5637fe||_0x50a1cb||(_0x2f5088=_0x17267b['fromRange'](_0x256448['createRangeIn'](_0x36fbb9)));}else _0x576fea&&!_0x5412ba&&(_0x1c3f7f=_0x256448['createRangeIn'](_0x36fbb9));}else{const _0x44b5bb=_0x256448['createElement']('tableCellSuggestion'),_0x192353=_0x256448['createElement']('tableCellSuggestion');_0x256448['wrap'](_0x256448['createRangeIn'](_0x36fbb9),_0x192353),_0x256448['insert'](_0x44b5bb,_0x36fbb9,0x0);for(const _0x3ed6d9 of Array['from'](_0x5b991c['getChildren']()))_0x256448['insert'](_0x3ed6d9,_0x44b5bb,'end');_0x2f5088=_0x17267b['fromRange'](_0x256448['createRangeOn'](_0x44b5bb)),_0x1c3f7f=_0x17267b['fromRange'](_0x256448['createRangeOn'](_0x192353));}const _0x10c2b2=Array['from'](_0x5b991c['getAttributes']())['filter'](([_0x5c9397])=>ge['includes'](_0x5c9397));_0x422790['cells']['push']({'element':_0x36fbb9,'attributes':_0x10c2b2['length']?Object['fromEntries'](_0x10c2b2):null}),_0x2f5088&&_0x422790['insertionRanges']['push'](_0x2f5088),_0x1c3f7f&&_0x422790['deletionRanges']['push'](_0x1c3f7f);},{'priority':'high'}),_0x4aef73['on']('insertColumns',(_0xc11af1,_0x5b19bd)=>{const [_0x3ea1ad,_0x3f8884={}]=_0x5b19bd;if(!_0x422790)return;const _0x106b7c=_0x3f8884['at']||0x0,_0x460999=_0x3f8884['columns']||0x1;_0x422790['columnInsertionIndexes']=new Array(_0x460999)['fill'](_0x106b7c)['map']((_0xcf9659,_0x3fb0fb)=>_0xcf9659+_0x3fb0fb);for(const {cell:_0x1cdea3}of _0x4aef73['createTableWalker'](_0x3ea1ad,{'startColumn':_0x106b7c,'endColumn':_0x106b7c+_0x460999-0x1}))_0x422790['columnInsertionRanges']['push'](_0x2f398b['model']['createRangeOn'](_0x1cdea3));},{'priority':'low'}),_0x4aef73['on']('insertRows',(_0x1f2dab,_0x2f8a01)=>{const [_0x2ce7c9,_0x3dd0dc={}]=_0x2f8a01;if(!_0x422790)return;const _0x1d31b1=_0x3dd0dc['at']||0x0,_0x50553d=_0x3dd0dc['rows']||0x1;_0x422790['rowInsertionIndexes']=new Array(_0x50553d)['fill'](_0x1d31b1)['map']((_0x149996,_0xf5bba2)=>_0x149996+_0xf5bba2);for(const {cell:_0x47b933}of _0x4aef73['createTableWalker'](_0x2ce7c9,{'startRow':_0x1d31b1,'endRow':_0x1d31b1+_0x50553d-0x1}))_0x422790['rowInsertionRanges']['push'](_0x2f398b['model']['createRangeOn'](_0x47b933));},{'priority':'low'}),_0xcbd763['descriptionFactory']['registerDescriptionCallback'](_0x21c491=>{if(_0x21c491['subType']&&_0x21c491['subType']['startsWith']('tablePaste'))return _0x21c491['previous']?{}:{'type':'insertion','content':o(_0x2f398b['locale'],'*Replace\x20table\x20cells*')};});const _0x4b158f=()=>!0x1;for(const _0x4a326e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xcbd763['_suggestionFactory']['registerCustomCallback']('insertion',_0x4a326e,'join',_0x4b158f),_0xcbd763['_suggestionFactory']['registerCustomCallback']('deletion',_0x4a326e,'join',_0x4b158f),_0xcbd763['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a326e,'join',_0x4b158f);_0xcbd763['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4b158f),_0xcbd763['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5e39a4,_0x1ac152,_0x10519d)=>{const _0x23ddb8=_0x5e39a4['map'](_0x562bb6=>_0x562bb6['getContainedElement']())['filter'](_0x154fae=>_0x154fae),_0x48a067=new Map(_0x23ddb8['map'](_0x1d7ca6=>[_0x1d7ca6,null]));if(_0x422790){for(const {element:_0x18a116,attributes:_0x2f3390}of _0x422790['cells'])_0x2f3390&&_0x48a067['set'](_0x18a116,_0x2f3390);}else{if(_0x10519d&&_0x10519d['markerAttributes'])for(const [_0x24b32b,_0x622c01]of Object['entries'](_0x10519d['markerAttributes'])){const _0xad4001=_0x2f398b['model']['markers']['get'](_0x24b32b),_0x322c86=_0xad4001?_0xad4001['getRange']()['getContainedElement']():null;_0x322c86&&_0x48a067['set'](_0x322c86,_0x622c01);}}_0x2f398b['model']['change'](_0x276c03=>{for(const [_0x452f6a,_0x40b36c]of _0x48a067)_0x276c03['setAttributes']({...Ce,..._0x40b36c},_0x452f6a);});});const _0x17de9e=(_0x1cb6fb,_0x55d500)=>{_0xcbd763['_suggestionFactory']['registerCustomCallback'](_0x1cb6fb,'tablePaste',_0x55d500,(_0x172859,_0x764b77,_0x32c33a)=>{_0x2f398b['model']['change'](_0x255308=>{const _0xdb1aed=[];for(const _0xa3c4ea of _0x172859){const _0x1fa8a4=_0xa3c4ea['start']['nodeAfter'];_0x1fa8a4['is']('element','tableCellSuggestion')&&_0xdb1aed['push'](_0x1fa8a4);}_0xcbd763['_suggestionFactory']['getSuggestionCallback'](_0x1cb6fb,null,_0x55d500)(_0x172859,_0x764b77,_0x32c33a);for(const _0x190487 of _0xdb1aed)'$graveyard'!=_0x190487['root']['rootName']&&_0x255308['unwrap'](_0x190487);});});};_0x17de9e('insertion','accept'),_0x17de9e('insertion','discard'),_0x17de9e('deletion','accept'),_0x17de9e('deletion','discard'),_0xcbd763['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x342a89=>{const _0x4a136b=_0x342a89['map'](_0x2d76d3=>_0x2d76d3['getContainedElement']()),_0x3a4eab=_0x4a136b[0x0]['findAncestor']('table'),{minRow:_0x52a0c3,maxRow:_0x5c699a}=_0x5f5c76['_getCoordsForCells'](_0x4a136b);_0x4aef73['removeRows'](_0x3a4eab,{'at':_0x52a0c3,'rows':_0x5c699a-_0x52a0c3+0x1});}),_0xcbd763['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x7083b=>{const _0x2770eb=_0x7083b['map'](_0x480e1a=>_0x480e1a['getContainedElement']()),_0x5e85d0=_0x2770eb[0x0]['findAncestor']('table'),{minColumn:_0x536684,maxColumn:_0x1476ba}=_0x5f5c76['_getCoordsForCells'](_0x2770eb);_0x4aef73['removeColumns'](_0x5e85d0,{'at':_0x536684,'columns':_0x1476ba-_0x536684+0x1});});const _0x12833b=(_0x2f8ab1,_0x556470)=>{if(!_0x556470['subType']||!_0x556470['subType']['startsWith']('tablePaste'))return;const _0x32e8f5=_0x556470['attributes']['tablePasteChainId'],_0x4e5d6a=_0xcbd763['getSuggestions']()['filter'](_0x5d2440=>_0x5d2440['isInContent']&&_0x5d2440['attributes']&&_0x5d2440['attributes']['tablePasteChainId']==_0x32e8f5);_0x4e5d6a['length']&&_0x556470['getAllAdjacentSuggestions']()['length']!=_0x4e5d6a['length']&&_0x4e5d6a['reduce']((_0x335345,_0x5e9757)=>(_0x335345['next']=_0x5e9757,_0x5e9757['previous']=_0x335345,_0x5e9757));};function _0x3a54d7(_0x401931,_0x5147ad=!0x0){const {id:_0x2e765a}=_0xcbd763['_splitMarkerName'](_0x401931['markerName']),_0x397e2d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3acec3=_0xcbd763['activeMarkers']['includes'](_0x401931['markerName']);return _0x3acec3&&_0x397e2d['push']('ck-suggestion-marker--active'),{'classes':_0x397e2d,'attributes':{'data-suggestion':_0x2e765a},'priority':_0x3acec3&&_0x5147ad?0xbc2:0xbb8};}_0xcbd763['on']('suggestionLoaded',_0x12833b,{'priority':'high'}),_0xcbd763['on']('suggestionUnloaded',_0x12833b,{'priority':'high'}),_0x2f398b['model']['document']['registerPostFixer'](()=>{let _0x5ed668=!0x1;const _0x2dd780=Array['from'](_0x2f398b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x509ba2,data:_0x2542d6}of _0x2dd780){const {group:_0x3c313e,type:_0x719bf4,id:_0x411f7b}=_0xcbd763['_splitMarkerName'](_0x509ba2);if('suggestion'!=_0x3c313e||'deletion'!=_0x719bf4||_0x2542d6['oldRange'])continue;if(!_0xcbd763['hasSuggestion'](_0x411f7b))continue;const _0x2327ae=_0xcbd763['getSuggestion'](_0x411f7b)['getRanges'](),_0x4f0b91=_0x2f398b['plugins']['get']('Users')['me'];for(const _0xf643cd of _0xcbd763['getSuggestions']()){if(!_0xf643cd['isInContent']||_0xf643cd['author']!=_0x4f0b91)continue;if('formatBlock'!=_0xf643cd['type']||'tablePasteCell'!=_0xf643cd['subType'])continue;if(_0xf643cd['getRanges']()['every'](_0x14b612=>_0x2327ae['some'](_0xf17c41=>_0xf17c41['containsRange'](_0x14b612,!0x0)))){for(const _0x5d0e4e of _0xf643cd['getAllAdjacentSuggestions']())_0x5d0e4e['isInContent']&&(_0x5d0e4e['discard'](),_0x5ed668=!0x0);}}}return _0x5ed668;}),_0x2f398b['model']['document']['registerPostFixer'](_0x1057e9=>{const _0x118ffb=_0x2f398b['commands']['get']('redo');if(!_0x118ffb||!_0x118ffb['_createdBatches']['has'](_0x1057e9['batch']))return!0x1;let _0x676528=!0x1;const _0x4aaa46=_0x2f398b['plugins']['get']('Users')['me'],_0x5dbe30=_0x2f398b['model']['document']['differ']['getChanges'](),_0x1930ff=Array['from'](_0x2f398b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x563bbf,data:_0x377872})=>{const {group:_0x2ce4d0,subType:_0x4347b3,authorId:_0x3c18bb}=_0xcbd763['_splitMarkerName'](_0x563bbf);return'suggestion'==_0x2ce4d0&&'tablePaste'==_0x4347b3&&_0x3c18bb==_0x4aaa46['id']&&!_0x377872['oldRange'];});for(const _0x558908 of _0x5dbe30){if('insert'!=_0x558908['type']||'tableCellSuggestion'!=_0x558908['name']||0x1!=_0x558908['length'])continue;const _0xbfc2cf=_0x1057e9['createRange'](_0x558908['position'],_0x558908['position']['getShiftedBy'](0x1));if(!_0x1930ff['find'](({data:_0x5f0140})=>_0x5f0140['newRange']['isEqual'](_0xbfc2cf))){for(const {name:_0x11abd2,data:_0x58614e}of _0x1930ff)if(_0xbfc2cf['containsRange'](_0x58614e['newRange'])){_0x1057e9['updateMarker'](_0x11abd2,{'range':_0xbfc2cf}),_0x676528=!0x0;break;}}}return _0x676528;}),_0x2f398b['model']['document']['registerPostFixer'](_0xb514f5=>{let _0x399313=!0x1;const _0x45510f=_0x2f398b['plugins']['get']('Users')['me'],_0x167113=_0xcbd763['getSuggestions']()['filter'](_0x730f4a=>_0x730f4a['isInContent']&&_0x730f4a['author']==_0x45510f),_0x533858=new Set(),_0x306333=new Set();for(const _0x324c3d of _0x167113)if('tablePaste'==_0x324c3d['subType'])for(const _0xd8956f of _0x324c3d['getMarkers']()){const _0x102ff0=_0xd8956f['getRange']()['getContainedElement']();if(_0x102ff0){if(_0x102ff0['is']('element','tableCellSuggestion')&&Pe(_0x102ff0)){_0x324c3d['removeMarker'](_0xd8956f['name']),_0x533858['add'](_0x102ff0),_0x399313=!0x0;const _0x451049=_0x102ff0['nextSibling'],_0x1c6ba0=_0x102ff0['previousSibling'],_0x2eb644=_0x451049&&_0x451049['is']('element','tableCellSuggestion'),_0x670443=_0x1c6ba0&&_0x1c6ba0['is']('element','tableCellSuggestion');_0x2eb644&&!_0x533858['has'](_0x451049)&&_0x306333['add'](_0x451049),_0x670443&&!_0x533858['has'](_0x1c6ba0)&&_0x306333['add'](_0x1c6ba0);}else _0x102ff0['is']('element','paragraph')&&_0x102ff0['isEmpty']&&(_0x324c3d['removeMarker'](_0xd8956f['name']),_0x399313=!0x0);}}else{if('tablePasteCell'==_0x324c3d['subType']){if(!_0x324c3d['attributes']||!_0x324c3d['attributes']['tablePasteChainId'])continue;const _0x172398=_0x324c3d['attributes']['markerAttributes'];if(_0x172398&&Object['keys'](_0x172398)['length'])continue;const _0x132c70=_0x324c3d['attributes']['tablePasteChainId'];let _0x5f0f78=!0x0,_0x47ddbc=!0x0;for(const _0x450e28 of _0x167113)if(_0x450e28['subType']&&_0x450e28['subType']['startsWith']('tablePaste')){if(!_0x450e28['attributes']['tablePasteChainId']){_0x47ddbc=!0x1;break;}if(_0x450e28['id']!=_0x324c3d['id']&&_0x450e28['attributes']['tablePasteChainId']==_0x132c70){_0x5f0f78=!0x1;break;}}_0x47ddbc&&_0x5f0f78&&(_0x324c3d['removeMarkers'](),_0x399313=!0x0);}}for(const _0x4efcfe of _0x533858)_0xb514f5['remove'](_0x4efcfe);for(const _0x2c914e of _0x306333)_0xb514f5['unwrap'](_0x2c914e);return _0x399313;}),_0x2f398b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5cc8f3,_0x5b492d)=>_0x3a54d7(_0x5cc8f3),'converterPriority':'high'}),_0x2f398b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d8b0d,_0x313f7c)=>_0x313f7c['options']['showSuggestionHighlights']?_0x3a54d7(_0x2d8b0d,!0x1):null,'converterPriority':'high'});const _0x3089aa=_0x2f398b['editing']['view'];this['listenTo'](_0x3089aa['document'],'clipboardOutput',(_0x4a7015,_0x437b4b)=>{const _0x5d5310=[];for(const _0x4dca39 of _0x3089aa['createRangeIn'](_0x437b4b['content'])['getItems']())_0x4dca39['is']('element','suggestion-td')&&_0x5d5310['push'](_0x4dca39);_0x3089aa['change'](_0xe3850e=>{for(const _0x5a7e65 of _0x5d5310)_0xe3850e['move'](_0xe3850e['createRangeIn'](_0x5a7e65),_0xe3850e['createPositionBefore'](_0x5a7e65)),_0xe3850e['remove'](_0x5a7e65);});});}}function Pe(_0x452193){if(_0x452193['isEmpty'])return!0x0;const _0xded248=_0x452193['getChild'](0x0);return _0xded248['is']('element','paragraph')&&_0xded248['isEmpty'];}function he(_0x207bb6,_0x2ebed3={},_0x24c7e9){for(const {isAnchor:_0x43dd91,cellHeight:_0x3c7102,cellWidth:_0x5efece}of _0x24c7e9['createTableWalker'](_0x207bb6,{'includeAllSlots':!0x0,..._0x2ebed3}))if(!_0x43dd91||0x1!=_0x3c7102||0x1!=_0x5efece)return!0x1;return!0x0;}class vt extends _0x11216f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37251a=this['editor']['plugins']['get']('TrackChangesEditing');_0x37251a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37251a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37251a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37251a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37251a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37251a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x44a219,_0x774f00){const _0x4c97af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f34c9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4bbae6=_0x774f00['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x183cce=_0x4f34c9['getColumnGroupElement'](_0x4bbae6);let _0x3a3d65=_0x183cce?_0x4f34c9['getTableColumnsWidths'](_0x183cce):null,_0x4fe743=_0x4bbae6['getAttribute']('tableWidth')||null;const _0x1c462d=_0x774f00['tableWidth']||_0x4fe743,_0x4d1df2=_0x774f00['columnWidths']||_0x3a3d65,_0x5b8823=this['editor']['plugins']['get']('Users')['me'];for(const _0x5ef2c9 of _0x4c97af['getSuggestions']()){const _0x2efd55=_0x5ef2c9['getContainedElement']();if('resizeTable'===_0x5ef2c9['subType']&&_0x2efd55===_0x4bbae6){_0x5ef2c9['author']!==_0x5b8823&&_0x5ef2c9['discard']();const _0x25d458=_0x5ef2c9['data']['commandParams'];_0x4fe743=_0x25d458[0x0]['tableWidth'],_0x3a3d65=_0x25d458[0x0]['columnWidths'];break;}}_0x44a219({'table':_0x4bbae6,'tableWidth':_0x1c462d,'columnWidths':_0x4d1df2}),_0x4c97af['markBlockFormat'](_0x4bbae6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4fe743,'columnWidths':_0x3a3d65}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x488dbe){if('formatBlock'!=_0x488dbe['type']&&'formatInline'!=_0x488dbe['type'])return;const {data:_0x1e5a95}=_0x488dbe;if(_0x1e5a95&&'resizeTable'===_0x1e5a95['formatGroupId']){const _0x9cedbb='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x9cedbb)};}}}class Ct extends _0x11216f{['afterInit'](){const _0x3e0b0e=this['editor'];_0x3e0b0e['plugins']['has']('Template')&&_0x3e0b0e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x11216f{['afterInit'](){const _0x33676b=this['editor'];if(!_0x33676b['commands']['get']('insertTableOfContents'))return;_0x33676b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x24dc2a=_0x33676b['plugins']['get']('TrackChangesEditing'),_0x4656fd=_0x33676b['locale'];_0x24dc2a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x322a8e=>o(_0x4656fd,'ELEMENT_TABLE_OF_CONTENTS',_0x322a8e));}}class Dt extends _0x11216f{['afterInit'](){const _0x21069f=this['editor'];if(!_0x21069f['plugins']['has']('Title'))return;const _0x69e3cb=_0x21069f['plugins']['get']('TrackChangesEditing');_0x69e3cb['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x21069f['locale'],'ELEMENT_TITLE')),_0x21069f['model']['document']['registerPostFixer'](_0x2adf2f=>{let _0x5bd5c2=!0x1;const _0x118e07=Array['from'](_0x21069f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3dda41,data:_0x4392c8}of _0x118e07){const {group:_0x136039}=_0x69e3cb['_splitMarkerName'](_0x3dda41);if('suggestion'!==_0x136039||!_0x4392c8['newRange'])continue;const _0x447006=_0x4392c8['newRange'],_0x4c0cb7=_0x447006['end']['nodeBefore'];if(!_0x4c0cb7||!_0x4c0cb7['is']('element','title-content'))continue;if(!_0x447006['start']['isTouching'](_0x447006['end']))continue;const _0x39bfb8=_0x21069f['model']['schema']['getNearestSelectionRange'](_0x447006['end'],'forward');if(_0x39bfb8&&_0x39bfb8['isCollapsed']){const _0x335693=_0x2adf2f['createRange'](_0x447006['start'],_0x39bfb8['start']);_0x335693['isEqual'](_0x447006)||(_0x2adf2f['updateMarker'](_0x3dda41,{'range':_0x335693}),_0x5bd5c2=!0x0);}_0x5bd5c2||(_0x2adf2f['removeMarker'](_0x3dda41),_0x5bd5c2=!0x0);}return _0x5bd5c2;});}}class Nt extends _0x11216f{['afterInit'](){const _0x251ce2=this['editor'],_0x2e8024=_0x251ce2['plugins']['get']('TrackChangesEditing');_0x251ce2['plugins']['has']('UndoEditing')&&(_0x2e8024['enableCommand']('undo'),_0x2e8024['enableCommand']('redo'));}}class Mt extends _0x11216f{static get['requires'](){return[jt];}['afterInit'](){const _0x16dd6b=this['editor'];if(!_0x16dd6b['plugins']['has']('TableCaptionEditing'))return;_0x16dd6b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x11216f{['tableProperties'];['tableCellProperties'];constructor(_0x199b1e){super(_0x199b1e),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x196e4e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x448fd of this['tableProperties'])_0x196e4e['enableCommand'](_0x448fd,(_0x170c74,_0x192ebc)=>{const _0x2398ef=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x448fd,[_0x2398ef],this['tableProperties'],'tableProperties',_0x170c74,_0x192ebc);});_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x196e4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x24e414,_0x4c1b0b)=>this['handleDiscardAction'](this['tableProperties'],_0x24e414,_0x4c1b0b)),_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x515f04 of this['tableCellProperties'])_0x196e4e['enableCommand'](_0x515f04,(_0x14614d,_0xbb51ea)=>{const _0x382494=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x515f04,_0x382494,this['tableCellProperties'],'tableCellProperties',_0x14614d,_0xbb51ea);});_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x196e4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x191608,_0x3b7e0b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x191608,_0x3b7e0b)),_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x196e4e['descriptionFactory']['registerDescriptionCallback'](_0x275ceb=>this['handleSuggestionDescription'](_0x275ceb));}['_handlePropertyChange'](_0x2b6d64,_0x693001,_0x5164ac,_0x2cd6c5,_0x38a5f6,_0x399861){const _0x4e0869=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x399861['batch'],()=>{for(const _0x5a93b1 of _0x693001){if(this['_getSuggestion'](_0x5a93b1,_0x2cd6c5))_0x38a5f6(_0x399861);else{const _0x75f527={};for(const _0x5b37bc of _0x5164ac){const _0x116203=_0x5a93b1['getAttribute'](_0x5b37bc);void 0x0!==_0x116203&&(_0x75f527[_0x5b37bc]=_0x116203);}_0x38a5f6(_0x399861),_0x4e0869['markBlockFormat'](_0x5a93b1,{'commandParams':[_0x75f527]},[],_0x2cd6c5);}}});}['handleDiscardAction'](_0x599a6f,_0x1a78b4,_0x59a43e){const _0x5cf76a=_0x1a78b4[0x0]['start']['nodeAfter'],_0x5e3593=_0x59a43e['commandParams'][0x0];this['editor']['model']['change'](_0x1b6ea3=>{for(const _0x176f81 of _0x599a6f)void 0x0!==_0x5e3593[_0x176f81]?_0x1b6ea3['setAttribute'](_0x176f81,_0x5e3593[_0x176f81],_0x5cf76a):_0x1b6ea3['removeAttribute'](_0x176f81,_0x5cf76a);});}['handleSuggestionDescription'](_0x3c8bf6){if(_0x3c8bf6['data'])switch(_0x3c8bf6['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x465e02,_0x4802f2){const _0x201ced=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5562d2 of _0x201ced['getSuggestions']({'skipNotAttached':!0x0})){const _0x4ba45d=_0x5562d2['getContainedElement']();if(_0x5562d2['subType']===_0x4802f2&&_0x4ba45d===_0x465e02)return _0x5562d2;}return null;}}const m='$elementName';class p extends _0x11216f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5c6d6e,_0x5a617c,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x18032a){function _0x4bbf76(_0x3b368d){return _0x3b368d['map'](_0x57f8a6=>String['fromCharCode'](_0x57f8a6))['join']('');}super(_0x18032a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4c1216,_0x52214f,_0x23b3ff,_0xc3d7db)=>{this['_model']['change'](()=>{for(const _0x1361cc of[..._0xc3d7db,..._0x23b3ff])this['_model']['markers']['has'](_0x1361cc)&&_0x18032a['editing']['reconvertMarker'](_0x1361cc);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x18032a['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x18032a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x18032a['config']['get']('trackChanges.trackFormatChanges'),_0x18032a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x18032a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x18032a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4bbf76([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4bbf76([0x34,0x30,0x34,0x38,0x31,0x34,0x31,0x36]);}['init'](){const _0xdcb584=this['editor'],_0x3eb65a=(_0x26adc9,_0x3d1f49)=>{if('attribute'!=_0x26adc9)return'ck-suggestion-marker-'+_0x26adc9;const _0x5593f7=_0x3d1f49['split']('|')[0x0];return this['_isBlockAttribute'](_0x5593f7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xdcb584['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2ba187=>{const {id:_0x1fd5f4,type:_0x3c6c3e,subType:_0x536a60}=this['_splitMarkerName'](_0x2ba187['markerName']),_0x2ec2d3=['ck-suggestion-marker',_0x3eb65a(_0x3c6c3e,_0x536a60)];let _0x5931c7=0xbb8;return this['activeMarkers']['includes'](_0x2ba187['markerName'])&&(_0x2ec2d3['push']('ck-suggestion-marker--active'),_0x5931c7=0xbc2),'deletion'==_0x3c6c3e&&(_0x5931c7+=0x5),{'classes':_0x2ec2d3,'attributes':{'data-suggestion':_0x1fd5f4},'priority':_0x5931c7};}}),_0xdcb584['conversion']['for']('dataDowncast')['add'](_0x4ac39a=>{_0x4ac39a['on']('addMarker:suggestion',(_0x3718b7,_0x598156,_0x289737)=>{if(!_0x289737['options']['showSuggestionHighlights'])return;const _0x3ff752=_0x598156['item'];if(!_0x3ff752)return;const _0x51b65d=_0x289737['mapper']['toViewElement'](_0x3ff752);_0xdcb584['model']['schema']['isObject'](_0x3ff752)&&_0x51b65d&&!_0x51b65d['getCustomProperty']('widget')&&_0x51b65d['is']('containerElement')&&_0x4714a8(_0x51b65d,_0x289737['writer']);},{'priority':'high'});}),_0xdcb584['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x11cad0,_0x4970b6)=>{if(!_0x4970b6['options']['showSuggestionHighlights'])return null;const {type:_0x2dff67,subType:_0x21219c}=this['_splitMarkerName'](_0x11cad0['markerName']);return{'classes':['ck-suggestion-marker',_0x3eb65a(_0x2dff67,_0x21219c)],'priority':0xbb8};}});const _0x1dffbf=({showActiveMarkers:_0x1d0236=!0x0,isAttributeSuggestion:_0x4a352f=!0x1}={})=>(_0x1f7bce,_0x321c07,_0x589c7d)=>{if(!_0x321c07['item'])return;const {id:_0x3dcef1}=this['_splitMarkerName'](_0x321c07['markerName']);if(_0x4a352f){const _0x2b552e=this['_suggestions']['get'](_0x3dcef1),_0x111aaa=this['_getAttributeKey'](_0x2b552e);if(!this['_isBlockAttribute'](_0x111aaa))return;}if(_0x321c07['item']['is']('selection'))return void _0x589c7d['consumable']['consume'](_0x321c07['item'],_0x1f7bce['name']);const _0x286734=_0x589c7d['mapper']['toViewElement'](_0x321c07['item']);if(_0x321c07['item']['is']('element')&&_0xdcb584['model']['schema']['isBlock'](_0x321c07['item'])&&!_0x286734['getCustomProperty']('addHighlight')){_0x589c7d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x286734),_0x589c7d['writer']['setAttribute']('data-suggestion',_0x3dcef1,_0x286734),_0x589c7d['mapper']['bindElementToMarker'](_0x286734,_0x321c07['markerName']),_0x1d0236&&(this['activeMarkers']['includes'](_0x321c07['markerName'])?_0x589c7d['writer']['addClass']('ck-suggestion-marker--active',_0x286734):_0x589c7d['writer']['removeClass']('ck-suggestion-marker--active',_0x286734));for(const _0x38fda8 of _0xdcb584['model']['createRangeIn'](_0x321c07['item'])['getItems']())_0x589c7d['consumable']['consume'](_0x38fda8,_0x1f7bce['name']);_0x589c7d['consumable']['consume'](_0x321c07['item'],_0x1f7bce['name']);}};_0xdcb584['conversion']['for']('dataDowncast')['add'](_0x73bc12=>{_0x73bc12['on']('addMarker:suggestion:formatBlock',(_0x35da03,_0x44cf93,_0x5250bc)=>{_0x5250bc['options']['showSuggestionHighlights']&&_0x1dffbf({'showActiveMarkers':!0x1})(_0x35da03,_0x44cf93,_0x5250bc);},{'priority':'highest'});}),_0xdcb584['conversion']['for']('dataDowncast')['add'](_0x32d5ae=>{_0x32d5ae['on']('addMarker:suggestion:attribute',(_0x4a51e4,_0x3bfceb,_0x5a8eb8)=>{_0x5a8eb8['options']['showSuggestionHighlights']&&_0x1dffbf({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4a51e4,_0x3bfceb,_0x5a8eb8);},{'priority':'highest'});}),_0xdcb584['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5216eb,_0x41d2b1)=>_0x41d2b1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5216eb['substr'](0xb)}}),_0xdcb584['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x570f41,{writer:_0x534294})=>{let _0xf74a92='suggestion:'+_0x570f41['getAttribute']('suggestion-type')+':'+_0x570f41['getAttribute']('id');return _0x570f41['getAttribute']('marker-count')&&(_0xf74a92+=':'+_0x570f41['getAttribute']('marker-count')),_0x534294['createElement']('$marker',{'data-name':_0xf74a92});}}),_0xdcb584['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xdcb584['conversion']['for']('editingDowncast')['add'](_0x1d5602=>{_0x1d5602['on']('addMarker:suggestion:formatBlock',_0x1dffbf(),{'priority':'high'});}),_0xdcb584['conversion']['for']('editingDowncast')['add'](_0x5f5135=>{_0x5f5135['on']('addMarker:suggestion:attribute',_0x1dffbf({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xdcb584['conversion']['for']('editingDowncast')['add'](_0x5ce04a=>{_0x5ce04a['on']('removeMarker:suggestion:formatBlock',(_0x1d1374,_0x1d09ee,_0x2d9f81)=>{const _0x581b13=_0x2d9f81['mapper']['markerNameToElements'](_0x1d09ee['markerName']);if(_0x581b13){for(const _0x349e7e of _0x581b13)_0x349e7e['getCustomProperty']('addHighlight')||(_0x2d9f81['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x349e7e),_0x2d9f81['writer']['removeAttribute']('data-suggestion',_0x349e7e),_0x2d9f81['mapper']['unbindElementFromMarkerName'](_0x349e7e,_0x1d09ee['markerName']));}},{'priority':'high'});}),_0xdcb584['conversion']['for']('editingDowncast')['add'](_0x22eb76=>{_0x22eb76['on']('removeMarker:suggestion:attribute',(_0x29de43,_0x3f27e8,_0x3e0f82)=>{const _0x172e5d=_0x3e0f82['mapper']['markerNameToElements'](_0x3f27e8['markerName']);if(!_0x172e5d)return;const {id:_0x27ffe9}=this['_splitMarkerName'](_0x3f27e8['markerName']),_0x51ed37=this['_suggestions']['get'](_0x27ffe9),_0x5df486=this['_getAttributeKey'](_0x51ed37);if(this['_isBlockAttribute'](_0x5df486)){for(const _0x2b7a1b of _0x172e5d)_0x2b7a1b['getCustomProperty']('addHighlight')||(_0x3e0f82['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b7a1b),_0x3e0f82['writer']['removeAttribute']('data-suggestion',_0x2b7a1b),_0x3e0f82['mapper']['unbindElementFromMarkerName'](_0x2b7a1b,_0x3f27e8['markerName']));}},{'priority':'high'});}),_0xdcb584['model']['document']['registerPostFixer'](_0x965906=>{let _0x225d43=!0x1;const _0x46f146=Array['from'](_0xdcb584['model']['document']['differ']['getChangedMarkers']()),_0x1a1ff2=new Set();for(const {name:_0x5e72cd,data:_0x35d3c8}of _0x46f146){const {group:_0x124120,type:_0x46d801,subType:_0x351be4,id:_0x13ded8}=this['_splitMarkerName'](_0x5e72cd);if('suggestion'!==_0x124120)continue;const _0x1e8ddd=this['_suggestions']['get'](_0x13ded8);if(null!=_0x35d3c8['newRange']){'formatInline'==_0x46d801&&(_0x225d43=_0x225d43||Et(_0x35d3c8['newRange'],_0x5e72cd,_0x965906,_0xdcb584['model']['schema']));const _0x24532c='attribute'==_0x46d801&&this['_isBlockAttribute'](_0x351be4['split']('|')[0x0]);if(_0x35d3c8['newRange']['isCollapsed']||'$graveyard'==_0x35d3c8['newRange']['root']['rootName']||'formatBlock'==_0x46d801&&!Ut(_0x35d3c8['newRange'])||_0x24532c&&!Ut(_0x35d3c8['newRange'])||'deletion'==_0x46d801&&!(!Tt(_0x4755fb=_0x35d3c8['newRange'])&&!function(_0x46b3b7){return _0x46b3b7['start']['parent']==_0x46b3b7['end']['nodeBefore']&&_0x46b3b7['start']['isAtEnd'];}(_0x4755fb)))_0x965906['removeMarker'](_0x5e72cd),_0x225d43=!0x0;else{if(!_0x1e8ddd||!_0x1e8ddd['isInContent'])continue;_0x1a1ff2['add'](_0x1e8ddd);}}}var _0x4755fb;return _0x1a1ff2['size']>0x0&&(_0x225d43=!!this['_joinWithAdjacentSuggestions'](_0x1a1ff2)||_0x225d43),_0x225d43;}),_0xdcb584['model']['document']['registerPostFixer'](_0x257aa0=>{let _0x5b3270=!0x1;for(const _0x5c1978 of _0xdcb584['model']['document']['differ']['getChanges']())if('insert'==_0x5c1978['type'])for(const _0x1c7144 of this['_suggestions']['values']()){if(_0x1c7144['isMultiRange']||!_0x1c7144['isInContent'])continue;const _0x50d711='formatBlock'==_0x1c7144['type'],_0xa77e76=this['_getAttributeKey'](_0x1c7144),_0x5a6003=_0xa77e76&&this['_isBlockAttribute'](_0xa77e76);if(!_0x50d711&&!_0x5a6003)continue;const _0x17f0b2=_0x1c7144['getFirstRange']();if(_0x17f0b2['start']['parent']!=_0x17f0b2['end']['parent']&&!_0x17f0b2['end']['isAtEnd']){const _0x1c6a41=_0xdcb584['model']['createPositionAt'](_0x17f0b2['start']['nodeAfter'],'end'),_0x382116=_0xdcb584['model']['createRange'](_0x17f0b2['start'],_0x1c6a41);_0x257aa0['updateMarker'](_0x1c7144['getFirstMarker'](),{'range':_0x382116}),_0x5b3270=!0x0;}}return _0x5b3270;}),_0xdcb584['model']['document']['registerPostFixer'](_0x132e06=>this['_processAttributeChanges'](_0x132e06)),_0xdcb584['model']['document']['registerPostFixer'](_0x56be76=>!_0x56be76['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x56be76)),_0xdcb584['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xdcb584['model']['document']['on']('change:data',(_0x7253ba,_0x3b7b0d)=>{if(!_0x3b7b0d['isLocal']||_0x3b7b0d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x35388c=_0xdcb584['model']['document']['differ']['getChanges']();if(0x0==_0x35388c['length'])return;const _0x5da3cc=[],_0x56945c=_0x35388c['filter'](_0x3def9d=>'attribute'==_0x3def9d['type']),_0x198021=_0x35388c['filter'](_0xbdb744=>'insert'==_0xbdb744['type']&&'$text'!=_0xbdb744['name']);for(const _0xd45d02 of _0x56945c)this['_isRegisteredAttribute'](_0xd45d02['attributeKey'])&&_0x5da3cc['push']({'key':_0xd45d02['attributeKey'],'newValue':_0xd45d02['attributeNewValue'],'oldValue':_0xd45d02['attributeOldValue'],'range':Ot(_0xd45d02['range'],_0xdcb584['model'])});for(const _0x287ac9 of _0x198021){if('rename'!=_0x287ac9['action']&&'refresh'!=_0x287ac9['action'])continue;const _0x1ceef6=Gt(_0x287ac9['position']['nodeAfter'],_0xdcb584['model']),_0x8b68e3=_0x287ac9['before'];'rename'==_0x287ac9['action']&&_0x5da3cc['push']({'key':m,'newValue':_0x287ac9['name'],'oldValue':_0x8b68e3['name'],'range':_0x1ceef6});for(const [_0x47a683,_0x549195]of _0x8b68e3['attributes']){if(!this['_isRegisteredAttribute'](_0x47a683))continue;const _0x2d622c=_0x287ac9['attributes']['get'](_0x47a683);_0x549195!==_0x2d622c&&_0x5da3cc['push']({'key':_0x47a683,'newValue':_0x2d622c,'oldValue':_0x549195,'range':_0x1ceef6});}for(const [_0x3d8b21,_0x4328b3]of _0x287ac9['attributes'])this['_isRegisteredAttribute'](_0x3d8b21)&&(_0x8b68e3['attributes']['has'](_0x3d8b21)||_0x5da3cc['push']({'key':_0x3d8b21,'newValue':_0x4328b3,'oldValue':null,'range':_0x1ceef6}));}0x0!=_0x5da3cc['length']&&_0xdcb584['model']['enqueueChange'](_0x3b7b0d,_0x538883=>{const _0x45ddc9=_0x58019d();for(const {range:_0x24a2ff,key:_0x5069e6,oldValue:_0x272895,newValue:_0x579300}of _0x5da3cc)this['markAttributeChange'](_0x24a2ff,_0x5069e6,_0x272895,_0x579300,{'groupId':_0x45ddc9});this['_reduceExistingSuggestions'](_0x538883,_0x5da3cc);});},{'priority':'lowest'}),_0xdcb584['model']['markers']['on']('update:suggestion',(_0x43be28,_0x370667,_0x286176)=>{if(null==_0x286176){const {id:_0x3fc0bf}=this['_splitMarkerName'](_0x370667['name']),_0x3f7538=this['_suggestions']['get'](_0x3fc0bf);_0x3f7538&&_0x3f7538['addMarkerName'](_0x370667['name']);}}),_0xdcb584['model']['document']['on']('change:data',()=>{const _0x15c856=Array['from'](_0xdcb584['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2fb99=>'suggestion'===this['_splitMarkerName'](_0x2fb99['name'])['group']);if(0x0===_0x15c856['length'])return;_0x15c856['sort']((_0x166611,_0x250348)=>{const _0x4c9133=_0x166611['data']['oldRange'],_0x264ea1=_0x250348['data']['oldRange'];return null===_0x4c9133&&null===_0x264ea1?0x0:null===_0x4c9133&&null!==_0x264ea1?-0x1:null!==_0x4c9133&&null===_0x264ea1?0x1:_0x4c9133['start']['isBefore'](_0x264ea1['start'])?-0x1:0x1;});const _0x4cf0ca=new Set(),_0x56e817=new Set();for(const {name:_0x5364ee,data:_0x30eb58}of _0x15c856){const {id:_0x316526}=this['_splitMarkerName'](_0x5364ee);if(null===_0x30eb58['oldRange']){const _0x1446aa=this['_handleNewSuggestionMarker'](_0x5364ee);_0x56e817['add'](_0x1446aa);}else{const _0x568523=this['_suggestions']['get'](_0x316526);null!==_0x30eb58['newRange']||_0x568523['isInContent']?(_0x4cf0ca['add'](_0x568523['head']),_0x56e817['add'](_0x568523)):this['_removeSuggestion'](_0x568523);}}_0x56e817['size']>0x0&&this['_refreshSuggestionsChain'](_0x56e817);for(const _0x42ac84 of _0x4cf0ca)this['fire']('suggestionChanged',_0x42ac84);}),_0xdcb584['model']['on']('applyOperation',(_0x3aa42a,_0x111ec5)=>{const _0x259868=_0x111ec5[0x0];if(!this['_suggestions']['size'])return;if(!_0x259868['isDocumentOperation'])return;if(_0x259868['batch']['isUndo']||!_0x259868['batch']['isLocal'])return;let _0x2a0697,_0x4f814c;switch(_0x259868['type']){case'insert':_0x2a0697=_0xdcb584['model']['createPositionAt'](_0x259868['position']),_0x4f814c=_0x2a0697['getShiftedBy'](_0x259868['howMany']);break;case'split':_0x2a0697=_0xdcb584['model']['createPositionAt'](_0x259868['splitPosition']),_0x4f814c=_0xdcb584['model']['createPositionAt'](_0x259868['moveTargetPosition']);break;case'move':_0x2a0697=_0xdcb584['model']['createPositionAt'](_0x259868['targetPosition']),_0x4f814c=_0x2a0697['getShiftedBy'](_0x259868['howMany']);break;default:return;}const _0x38884d=_0xdcb584['model']['createRange'](_0x2a0697,_0x4f814c);_0xdcb584['model']['change'](()=>{for(const {suggestion:_0x4eb9c2,meta:_0x177225}of this['_findSuggestions'](_0x38884d)){if(_0x4eb9c2['isMultiRange'])continue;if('formatInline'==_0x4eb9c2['type'])continue;const _0x123e17=this['_getAttributeKey'](_0x4eb9c2);if(_0x123e17&&this['_isBlockAttribute'](_0x123e17)&&'split'!=_0x259868['type'])continue;const _0xfd4b8d=_0x4eb9c2['data']&&_0x4eb9c2['data']['multipleBlocks'];('formatBlock'!=_0x4eb9c2['type']||'split'==_0x259868['type']&&!_0xfd4b8d)&&(_0x177225['containsRangeInObject']||'insertion'==_0x4eb9c2['type']&&_0x177225['isOwn']||_0x4eb9c2['getFirstRange']()['containsRange'](_0x38884d)&&this['_breakSuggestionMarker'](_0x4eb9c2,_0x2a0697,_0x4f814c));}});},{'priority':'lowest'}),_0xdcb584['model']['on']('deleteContent',(_0x3fe859,_0x2cb498)=>{const _0xd6b414=_0x2cb498[0x0],_0x196d11=_0x2cb498[0x1];if(_0x196d11&&_0x196d11['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd6b414['isCollapsed'])return;const _0x2695e5=_0xdcb584['model']['schema'],{start:_0x3e3817,end:_0x18529e}=_0xd6b414['getFirstRange'](),_0xa1e8e1=_0x3e3817['nodeAfter']&&_0x2695e5['isLimit'](_0x3e3817['nodeAfter'])?null:_0x2695e5['getNearestSelectionRange'](_0x3e3817,'forward'),_0x4e09d2=_0x18529e['nodeBefore']&&_0x2695e5['isLimit'](_0x18529e['nodeBefore'])?null:_0x2695e5['getNearestSelectionRange'](_0x18529e,'backward'),_0x3eb303=_0xdcb584['model']['createRange'](_0xa1e8e1?_0xa1e8e1['start']:_0x3e3817,_0x4e09d2?_0x4e09d2['end']:_0x18529e);_0xdcb584['model']['change'](_0x53f842=>{this['markDeletion'](_0x3eb303);const _0x5d543b=_0xdcb584['model']['schema']['getNearestSelectionRange'](_0x3eb303['start']);_0xd6b414['is']('documentSelection')?_0x53f842['setSelection'](_0x5d543b):_0xd6b414['setTo'](_0x5d543b);}),_0x3fe859['stop']();},{'priority':_0x3f0408['normal']+0xa}),_0xdcb584['model']['on']('insertContent',(_0x1a417c,_0x2a96e3)=>{const _0x40985a=_0x2a96e3[_0x2a96e3['length']-0x1];_0x40985a&&_0x40985a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xdcb584['model']['change'](()=>{let _0x572353=_0xdcb584['model']['insertContent'](_0x2a96e3[0x0],_0x2a96e3[0x1],_0x2a96e3[0x2],{'forceDefaultExecution':!0x0});if(!_0x572353)return;_0x1a417c['return']=_0x572353['clone']();const _0x578e9e=_0x572353['end']['nodeBefore'],_0xc6d22d=_0xdcb584['model']['schema'];_0x578e9e&&_0xc6d22d['isBlock'](_0x578e9e)&&!_0xc6d22d['isObject'](_0x578e9e)&&(_0x572353=_0xdcb584['model']['createRange'](_0x572353['start'],_0xdcb584['model']['createPositionAt'](_0x578e9e,'end'))),this['markInsertion'](_0x572353);}),_0x1a417c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x172bf1=new $(_0xdcb584,this['_suggestions']);_0xdcb584['commands']['add']('acceptSuggestion',_0x172bf1),this['enableCommand']('acceptSuggestion');const _0x17203c=new B(_0xdcb584,this['_suggestions']);_0xdcb584['commands']['add']('discardSuggestion',_0x17203c),this['enableCommand']('discardSuggestion'),_0xdcb584['commands']['add']('acceptAllSuggestions',new x(_0xdcb584,_0x172bf1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xdcb584['commands']['add']('discardAllSuggestions',new x(_0xdcb584,_0x17203c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xdcb584['commands']['add']('acceptSelectedSuggestions',new R(_0xdcb584,_0x172bf1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xdcb584['commands']['add']('discardSelectedSuggestions',new R(_0xdcb584,_0x17203c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x23fa6b=_0xdcb584['plugins']['get']('CommentsRepository');this['listenTo'](_0x23fa6b,'addComment',(_0xfe5a7a,{threadId:_0x1dfe92})=>{const _0xf755a5=this['_suggestions']['get'](_0x1dfe92);_0xf755a5&&_0xf755a5['commentThread']&&0x1===_0xf755a5['commentThread']['length']&&this['_updateSuggestionData'](_0x1dfe92,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x23fa6b,'removeComment',(_0x4fd32a,{threadId:_0x2844ec})=>{const _0xb3c678=this['_suggestions']['get'](_0x2844ec);_0xb3c678&&_0xb3c678['commentThread']&&!_0xb3c678['commentThread']['length']&&this['_updateSuggestionData'](_0x2844ec,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x530254){if(this['_adapter'])throw new _0x56ae75('track-changes-adapter-already-set',this);this['_adapter']=_0x530254;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13df2f=!0x1,toJSON:_0x2742aa=!0x1}={}){const _0x475e98=[];for(const _0x1be8c0 of this['_suggestions']['values']())_0x13df2f&&!_0x1be8c0['isInContent']||_0x475e98['push'](_0x1be8c0);return _0x2742aa?_0x475e98['map'](_0x38cf5b=>_0x38cf5b['toJSON']()):_0x475e98;}['getSuggestion'](_0x31f055){const _0x50815b=this['_suggestions']['get'](_0x31f055);if(!_0x50815b)throw new _0x56ae75('track-changes-suggestion-not-found',this);return _0x50815b;}['hasSuggestion'](_0x54fa38){return this['_suggestions']['has'](_0x54fa38);}['addSuggestionData'](_0x191360){const {authorId:_0x35d8c6,id:_0x85a4c7,attributes:_0x3cb684}=_0x191360,[_0x98f655,_0x1fc11d]=_0x191360['type']['split'](':'),_0x1057f8=this['_suggestions']['get'](_0x85a4c7)||this['_createSuggestion'](_0x98f655,_0x1fc11d,_0x85a4c7,_0x35d8c6,_0x3cb684);if(this['_addThreadToSuggestion'](_0x1057f8),this['_checkSuggestionCorrectness'](_0x1057f8,_0x98f655,_0x1fc11d||null,_0x35d8c6),_0x1057f8['createdAt']=_0x191360['createdAt'],_0x1057f8['_isDataLoaded']=!0x0,_0x3cb684&&_0x3cb684['@external']){const _0x3d13a0=_0x3cb684['@external'],_0x3d7210=this['_getExternalAuthor'](_0x3d13a0['authorName']);_0x1057f8['authoredAt']=_0x3d13a0['createdAt'],_0x1057f8['author']=_0x3d7210,_0x1057f8['isExternal']=!0x0;}else _0x1057f8['authoredAt']=_0x191360['createdAt'];switch(_0x191360['data']&&(_0x1057f8['data']=_0x191360['data']),_0x191360['attributes']&&(_0x1057f8['attributes']=_0x191360['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1057f8['_saved']=!0x0),this['_suggestionState']['get'](_0x1057f8)){case'notReady':this['_suggestionState']['set'](_0x1057f8,'dataReady');break;case'markerReady':_0x1057f8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1057f8])),this['_refreshSuggestionsChain'](new Set([_0x1057f8])),this['_suggestionState']['set'](_0x1057f8,'ready'),this['fire']('suggestionLoaded',_0x1057f8)):this['_suggestionState']['set'](_0x1057f8,'removed');}return _0x1057f8;}['acceptSuggestion'](_0x13dd39){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41009a of _0x13dd39['getAllAdjacentSuggestions']())_0x41009a['accept']();});});}['discardSuggestion'](_0x4c2353){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xcb02aa of _0x4c2353['getAllAdjacentSuggestions']())_0xcb02aa['discard']();});});}['enableCommand'](_0x3e2e5b,_0x3c7956){const _0x29b474=this['editor']['commands']['get'](_0x3e2e5b);if(!_0x29b474)throw new _0x56ae75('track-changes-command-not-found',this,{'commandName':_0x3e2e5b});if(this['_enabledCommands']['has'](_0x29b474))throw new _0x56ae75('track-changes-enable-command-twice',this,{'commandName':_0x3e2e5b});this['_enabledCommands']['add'](_0x29b474),_0x3c7956&&_0x29b474['on']('execute',(_0x4d46e5,_0x4c19d8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4c19d8['length']>0x0&&_0x4c19d8[_0x4c19d8['length']-0x1]&&_0x4c19d8[_0x4c19d8['length']-0x1]['forceDefaultExecution']?_0x4c19d8['pop']():(_0x4d46e5['return']=_0x3c7956((..._0x50630a)=>_0x29b474['execute'](..._0x50630a,{'forceDefaultExecution':!0x0}),..._0x4c19d8),_0x4d46e5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3e0729){let _0x1162d3,_0x33fc07;const _0x4c41c1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1162d3=_0x3e0729();}catch(_0x1fd9bc){_0x33fc07=_0x1fd9bc;}return _0x4c41c1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x33fc07&&_0x56ae75['rethrowUnexpectedError'](_0x33fc07,this),_0x1162d3;}['markInsertion'](_0x2e6d5a,_0x2c6264=null,_0x503453={}){if(_0x2e6d5a['isCollapsed'])return null;const _0x5d9f6a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x11eca3,meta:_0xe6e7e7}of this['_findSuggestions'](_0x2e6d5a,'insertion'))if(_0xe6e7e7['isOwn']){if(!_0xe6e7e7['isNextTo']){if(_0xe6e7e7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x11eca3,_0x503453))continue;return _0x11eca3;}if(Lt(_0x11eca3,_0x503453))return _0x11eca3;this['_breakSuggestionMarker'](_0x11eca3,_0x2e6d5a['start'],_0x2e6d5a['end']);break;}if(_0x2c6264==_0x11eca3['subType']&&Lt(_0x11eca3,_0x503453)){const _0x30bf0b=_0x11eca3['getFirstRange']();return _0x30bf0b['start']['isEqual'](_0x2e6d5a['end'])?this['_setSuggestionRange'](_0x11eca3,this['_model']['createRange'](_0x2e6d5a['start'],_0x30bf0b['end'])):this['_setSuggestionRange'](_0x11eca3,this['_model']['createRange'](_0x30bf0b['start'],_0x2e6d5a['end'])),_0x11eca3;}}const _0x2066d8=_0x58019d(),_0x28b46e=_0x5d9f6a['id'],_0xc77980=_0x2c6264?'insertion:'+_0x2c6264:'insertion',_0x7b206e=this['_setSuggestionData']({'id':_0x2066d8,'type':_0xc77980,'createdAt':new Date(),'authorId':_0x28b46e,'attributes':_0x503453});return this['_addSuggestionMarker'](_0xc77980,_0x2066d8,_0x28b46e,_0x2e6d5a),_0x7b206e;}['markMultiRangeInsertion'](_0x25d188,_0x5a55ce='multi',_0x181cc4={}){const _0x2f1d81=this['editor']['plugins']['get']('Users')['me'],_0x406bca=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5a55ce,'join');for(const _0x3eb3c9 of this['getSuggestions']())if(_0x3eb3c9['author']['id']==_0x2f1d81['id']&&'insertion'==_0x3eb3c9['type']&&_0x3eb3c9['subType']==_0x5a55ce&&Lt(_0x3eb3c9,_0x181cc4)&&(_0x406bca(_0x3eb3c9['getRanges'](),_0x25d188)||_0x406bca(_0x25d188,_0x3eb3c9['getRanges']()))){for(const _0x5b8f18 of _0x25d188)_0x3eb3c9['addRange'](_0x5b8f18);return _0x3eb3c9;}for(const {suggestion:_0x234c50,meta:_0x57bce3}of this['_findSuggestions'](_0x25d188,'insertion')){if(!_0x57bce3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x57bce3['containsRangeInObject'])continue;if(!Lt(_0x234c50,_0x181cc4))continue;let _0x3fd2c5=!0x0;for(const _0x40b9e4 of _0x234c50['getRanges']())for(const _0x63a41b of _0x25d188)if(!_0x40b9e4['containsRange'](_0x63a41b)){_0x3fd2c5=!0x1;break;}if(_0x3fd2c5)return _0x234c50;}const _0x21a8c3=_0x58019d(),_0x56c1bd=_0x2f1d81['id'],_0xd21fbd='insertion:'+_0x5a55ce,_0x3acfa6=this['_setSuggestionData']({'id':_0x21a8c3,'type':_0xd21fbd,'createdAt':new Date(),'authorId':_0x56c1bd,'attributes':_0x181cc4});for(const _0x18758c of _0x25d188)this['_addSuggestionMarker'](_0xd21fbd,_0x21a8c3,_0x56c1bd,_0x18758c,u['getMultiRangeId']());return _0x3acfa6;}['markInlineFormat'](_0x3d047a,_0x800397,_0x27447d=null,_0x135f69={}){if(_0x27447d=_0x27447d||Vt(_0x800397),_0x3d047a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4624b7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27447d,'accept');return this['forceDefaultExecution'](()=>_0x4624b7([_0x3d047a],_0x800397,_0x135f69)),null;}const _0x4bf653=this['editor']['plugins']['get']('Users')['me'],_0x3fd499=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x943775,meta:_0x5815e8}of this['_findSuggestions'](_0x3d047a,'insertion'))_0x5815e8['isOwn']&&!_0x5815e8['isInsideObject']&&_0x3fd499['push'](..._0x943775['getRanges']());}const _0x1b39f2=function(_0x2f0415,_0x62053e){const _0x1c952b=[];for(const _0x1e03dd of _0x62053e){const _0x3bb57e=_0x2f0415['getIntersection'](_0x1e03dd);_0x3bb57e&&_0x1c952b['push'](_0x3bb57e);}return _0x1c952b;}(_0x3d047a,_0x3fd499),_0x371110=function(_0x8e7e37,_0x205fa6){const _0x264a33=[_0x8e7e37];for(const _0x48fea0 of _0x205fa6){let _0x505f43=0x0;for(;_0x505f43<_0x264a33['length'];){const _0x5a0e43=_0x264a33[_0x505f43]['getDifference'](_0x48fea0);_0x264a33['splice'](_0x505f43,0x1,..._0x5a0e43),_0x505f43+=_0x5a0e43['length'];}}return _0x264a33;}(_0x3d047a,_0x3fd499);_0x1b39f2['length']&&this['_model']['change'](()=>{for(const _0x1c2e38 of _0x1b39f2){const _0x16aeed=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27447d,'accept');this['forceDefaultExecution'](()=>_0x16aeed([_0x1c2e38],_0x800397,_0x135f69));}});for(const _0x5beb2c of _0x371110){let _0xe1497d=null,_0x167b04=_0x5beb2c['start'],_0x260c79=_0x5beb2c['end'];for(const {suggestion:_0xa5ace7,meta:_0x5b4ebc}of this['_findSuggestions'](_0x5beb2c,'formatInline')){if(!_0x5b4ebc['isOwn'])continue;if(_0xa5ace7['subType']!=_0x27447d)continue;if(!Lt(_0xa5ace7,_0x135f69))continue;const _0x82fd21=_0xa5ace7['getFirstRange']();if(_0x82fd21['containsRange'](_0x5beb2c,!0x0))return null;_0x167b04=_0x167b04['isBefore'](_0x82fd21['start'])?_0x167b04:_0x82fd21['start'],_0x260c79=_0x260c79['isAfter'](_0x82fd21['end'])?_0x260c79:_0x82fd21['end'],_0xe1497d?_0x82fd21['start']['isBefore'](_0xe1497d['getFirstRange']()['start'])?(_0xe1497d['removeMarkers'](),_0xe1497d=_0xa5ace7):_0xa5ace7['removeMarkers']():_0xe1497d=_0xa5ace7;}const _0x44cf15=this['_model']['createRange'](_0x167b04,_0x260c79);if(_0xe1497d)this['_setSuggestionRange'](_0xe1497d,_0x44cf15);else{const _0x331782=_0x58019d(),_0x5e7662=_0x4bf653['id'];this['_setSuggestionData']({'id':_0x331782,'type':'formatInline:'+_0x27447d,'data':_0x800397,'createdAt':new Date(),'authorId':_0x5e7662,'attributes':_0x135f69}),this['_addSuggestionMarker']('formatInline:'+_0x27447d,_0x331782,_0x5e7662,_0x44cf15);}}return null;}['markBlockFormat'](_0x3cfd87,_0x5e7af9,_0x453406=[],_0x989e04=null,_0x3fcbff={}){_0x5e7af9['formatGroupId']||(_0x5e7af9['formatGroupId']=_0x5e7af9['commandName']),_0x5e7af9['multipleBlocks']=_0x3cfd87['is']('range'),_0x989e04=_0x989e04||Vt(_0x5e7af9);const _0x56558a=_0x453406['map'](_0x307687=>Gt(_0x307687,this['_model'])),_0x3cc8c5=_0x3cfd87['is']('range')?_0x3cfd87:Gt(_0x3cfd87,this['_model']);if('never'===this['_trackFormatChanges']){const _0x121c7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x989e04,'accept');return this['forceDefaultExecution'](()=>_0x121c7f([_0x3cc8c5],_0x5e7af9,_0x3fcbff)),null;}_0x56558a['push'](_0x3cc8c5);let _0x24ce01=!0x0;for(const _0x22e76c of _0x56558a)if(!this['_rangeIsInLocalUserInsertion'](_0x22e76c)){_0x24ce01=!0x1;break;}if(_0x24ce01&&'always'!==this['_trackFormatChanges']){const _0x4429db=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x989e04,'accept');return this['forceDefaultExecution'](()=>_0x4429db([_0x3cc8c5],_0x5e7af9,_0x3fcbff)),null;}let _0x3eb2d5=null,_0x4ae740=_0x3cc8c5['start'],_0x3c9f62=_0x3cc8c5['end'];for(const {suggestion:_0x1346f0,meta:_0x300ac0}of this['_findSuggestions'](_0x3cc8c5,'formatBlock')){if(!_0x300ac0['isOwn'])continue;if(_0x300ac0['isNextTo']||_0x300ac0['containsRangeInObject']||_0x300ac0['isInsideObject'])continue;if(_0x1346f0['data']['formatGroupId']!=_0x5e7af9['formatGroupId'])continue;if(!Lt(_0x1346f0,_0x3fcbff))continue;const _0x61742a=_0x1346f0['getFirstRange']();if(_0x1346f0['subType']==_0x989e04){if(_0x61742a['containsRange'](_0x3cc8c5,!0x0))return null;_0x4ae740=_0x4ae740['isBefore'](_0x61742a['start'])?_0x4ae740:_0x61742a['start'],_0x3c9f62=_0x3c9f62['isAfter'](_0x61742a['end'])?_0x3c9f62:_0x61742a['end'],_0x3eb2d5?_0x61742a['start']['isBefore'](_0x3eb2d5['getFirstRange']()['start'])?(_0x3eb2d5['removeMarkers'](),_0x3eb2d5=_0x1346f0):_0x1346f0['removeMarkers']():_0x3eb2d5=_0x1346f0;}else{const _0x2b2ed=_0x3cc8c5['getIntersection'](_0x61742a);this['_cutOutSuggestionMarker'](_0x1346f0,_0x2b2ed);}}const _0x371e02=this['editor']['plugins']['get']('Users')['me'],_0x50846=_0x58019d(),_0x80092f=_0x371e02['id'];if(_0x3eb2d5)return this['_setSuggestionRange'](_0x3eb2d5,this['_model']['createRange'](_0x4ae740,_0x3c9f62)),_0x3eb2d5;{const _0x5d31c4=this['_setSuggestionData']({'id':_0x50846,'type':'formatBlock:'+_0x989e04,'data':_0x5e7af9,'createdAt':new Date(),'authorId':_0x80092f,'attributes':_0x3fcbff});return this['_addSuggestionMarker']('formatBlock:'+_0x989e04,_0x50846,_0x80092f,this['_model']['createRange'](_0x4ae740,_0x3c9f62)),_0x5d31c4;}}['markMultiRangeBlockFormat'](_0x2342a1,_0x5be0df,_0xcd5a2a=[],_0x2ee4d6=null,_0x330b3b={}){_0x5be0df['formatGroupId']||(_0x5be0df['formatGroupId']=_0x5be0df['commandName']);const _0x4a8f66=_0x2342a1[0x0];_0x5be0df['multipleBlocks']=_0x4a8f66['is']('range'),_0x2ee4d6=_0x2ee4d6||Vt(_0x5be0df);const _0xe954c1=_0xcd5a2a['map'](_0x34cdc0=>Gt(_0x34cdc0,this['_model'])),_0x2c27b7=_0x4a8f66['is']('range')?_0x2342a1:_0x2342a1['map'](_0x26e679=>Gt(_0x26e679,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2ab38d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ee4d6,'accept');return this['forceDefaultExecution'](()=>_0x2ab38d(_0x2c27b7,_0x5be0df,_0x330b3b)),null;}_0xe954c1['push'](..._0x2c27b7);let _0x6c5a7a=!0x0;for(const _0x2b5093 of _0xe954c1)if(!this['_rangeIsInLocalUserInsertion'](_0x2b5093)){_0x6c5a7a=!0x1;break;}if(_0x6c5a7a&&'always'!==this['_trackFormatChanges']){const _0x3f13eb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ee4d6,'accept');return this['forceDefaultExecution'](()=>_0x3f13eb(_0x2c27b7,_0x5be0df,_0x330b3b)),null;}const _0x42f2a8=this['editor']['plugins']['get']('Users')['me'];for(const _0x24d47c of this['getSuggestions']()){if(_0x24d47c['author']['id']!=_0x42f2a8['id'])continue;if('formatBlock'!=_0x24d47c['type']||_0x24d47c['data']['formatGroupId']!=_0x5be0df['formatGroupId'])continue;if(!Lt(_0x24d47c,_0x330b3b))continue;const _0x314e8b=_0x24d47c['subType']==_0x2ee4d6;for(let _0x49ea36=0x0;_0x49ea36<_0x2c27b7['length'];_0x49ea36++){const _0xecb907=_0x2c27b7[_0x49ea36];for(const _0x1a7939 of _0x24d47c['getMarkers']()){const _0x4cbbf3=_0x1a7939['getRange']();if(_0xecb907['isEqual'](_0x4cbbf3)){_0x314e8b?(_0x2c27b7['splice'](_0x49ea36,0x1),_0x49ea36--):_0x24d47c['removeMarker'](_0x1a7939['name']);break;}}}}if(0x0==_0x2c27b7['length'])return null;const _0x2e6807=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ee4d6,'join');for(const _0x334d2c of this['getSuggestions']())if(_0x334d2c['author']['id']==_0x42f2a8['id']&&'formatBlock'==_0x334d2c['type']&&_0x334d2c['data']['formatGroupId']==_0x5be0df['formatGroupId']&&_0x334d2c['subType']==_0x2ee4d6&&Lt(_0x334d2c,_0x330b3b)&&(_0x2e6807(_0x334d2c['getRanges'](),_0x2c27b7)||_0x2e6807(_0x2c27b7,_0x334d2c['getRanges']()))){for(const _0x1df311 of _0x2c27b7)_0x334d2c['addRange'](_0x1df311);return _0x334d2c;}const _0x3f5e47=_0x58019d(),_0x583f7e=_0x42f2a8['id'],_0x37e9ba='formatBlock:'+_0x2ee4d6,_0xde7ef4=this['_setSuggestionData']({'id':_0x3f5e47,'type':_0x37e9ba,'data':_0x5be0df,'createdAt':new Date(),'authorId':_0x583f7e,'attributes':_0x330b3b});for(const _0xc9aa65 of _0x2c27b7)this['_addSuggestionMarker'](_0x37e9ba,_0x3f5e47,_0x583f7e,_0xc9aa65,u['getMultiRangeId']());return _0xde7ef4;}['markDeletion'](_0x1f9088,_0x149cb9=null,_0xbfc450={}){if(_0x1f9088['isCollapsed'])return null;const _0x48da5e=this['editor']['plugins']['get']('Users')['me'],_0x422a80=new _0x17267b(_0x1f9088['start'],_0x1f9088['end']);for(const {suggestion:_0x4c0ffe,meta:_0xa7cd41}of this['_findSuggestions'](_0x422a80,'insertion'))if(_0xa7cd41['isOwn']&&!_0xa7cd41['isNextTo']){if(_0x4c0ffe['isMultiRange']){const _0x11b10d=_0x4c0ffe['getRanges']()['filter'](_0x162668=>'$graveyard'!=_0x162668['root']['rootName']);_0x11b10d['every'](_0x189076=>_0x422a80['containsRange'](_0x189076,!0x0))&&_0x4c0ffe['discard']();if(_0x11b10d['some'](_0x139403=>_0x139403['containsRange'](_0x422a80,!0x0))){const _0x3d6eb4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x149cb9,'accept');return this['forceDefaultExecution'](()=>_0x3d6eb4([_0x422a80],null,_0xbfc450)),null;}}else{const _0x182d9d=_0x422a80['getIntersection'](_0x4c0ffe['getFirstRange']());null!==_0x182d9d&&_0x4c0ffe['_onDiscard']([_0x182d9d],null,_0xbfc450);}}if(_0x422a80['detach'](),_0x422a80['isCollapsed']||'$graveyard'==_0x422a80['root']['rootName'])return null;let _0x463682=null,_0x3f6968=_0x422a80['start'],_0x3879a5=_0x422a80['end'];const _0x408389=this['_findSuggestions'](_0x422a80,'deletion');for(const {suggestion:_0x43d497,meta:_0x5e1583}of _0x408389){const _0x2c2bee=this['_model']['createRange'](_0x3f6968,_0x3879a5);if(_0x5e1583['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5e1583['containsRangeInObject']&&!_0x5e1583['isInsideObject'])){if(_0x43d497['isMultiRange']){if(!Lt(_0x43d497,_0xbfc450))continue;let _0x3bf3f5=!0x0;for(const _0x8c383e of _0x43d497['getRanges']()){if(_0x8c383e['containsRange'](_0x2c2bee,!0x0))return _0x43d497;_0x2c2bee['containsRange'](_0x8c383e)||(_0x3bf3f5=!0x1);}_0x3bf3f5&&_0x43d497['discard']();}else{const _0x432d7c=_0x43d497['getFirstRange']();if(_0x432d7c['containsRange'](_0x2c2bee,!0x0))return _0x43d497;if(!Lt(_0x43d497,_0xbfc450)){_0x2c2bee['containsRange'](_0x432d7c)?_0x43d497['removeMarkers']():_0x432d7c['containsPosition'](_0x3f6968)?_0x3f6968=_0x432d7c['end']:_0x432d7c['containsPosition'](_0x3879a5)&&(_0x3879a5=_0x432d7c['start']);continue;}_0x3f6968=_0x3f6968['isBefore'](_0x432d7c['start'])?_0x3f6968:_0x432d7c['start'],_0x3879a5=_0x3879a5['isAfter'](_0x432d7c['end'])?_0x3879a5:_0x432d7c['end'],_0xbfc450=Object['assign']({},_0x43d497['attributes']),_0x463682?_0x432d7c['start']['isBefore'](_0x463682['getFirstRange']()['start'])?(_0x463682['removeMarkers'](),_0x463682=_0x43d497):_0x43d497['removeMarkers']():_0x463682=_0x43d497;}}}if(_0x463682)return this['_setSuggestionRange'](_0x463682,this['_model']['createRange'](_0x3f6968,_0x3879a5)),_0x463682;{const _0x5d2b21=_0x58019d(),_0xdc0546=this['_model']['createRange'](_0x3f6968,_0x3879a5),_0x5a53b9=_0x48da5e['id'],_0x2ef133=_0x149cb9?'deletion:'+_0x149cb9:'deletion',_0x4fd654=this['_setSuggestionData']({'id':_0x5d2b21,'type':_0x2ef133,'createdAt':new Date(),'authorId':_0x5a53b9,'attributes':_0xbfc450});return this['_addSuggestionMarker'](_0x2ef133,_0x5d2b21,_0x5a53b9,_0xdc0546),_0x4fd654;}}['markMultiRangeDeletion'](_0x369eb7,_0x1452bf='multi',_0xb6f396={}){const _0x2be7e7=this['editor']['plugins']['get']('Users')['me'],_0xd24933=_0x369eb7['map'](_0x4ff2b1=>new _0x17267b(_0x4ff2b1['start'],_0x4ff2b1['end'])),_0xbe0e6b=new Set();for(const {suggestion:_0x42a0fa,meta:_0x1a875d}of this['_findSuggestions'](_0xd24933,'insertion'))_0x1a875d['isOwn']&&!_0x1a875d['isNextTo']&&_0xbe0e6b['add'](_0x42a0fa);for(const _0x58ddb3 of _0xbe0e6b)if(_0x58ddb3['isMultiRange']){const _0x32bc3c=_0x58ddb3['getRanges']();(!_0x58ddb3['attributes']||!_0x58ddb3['attributes']['skipNestingCheck'])&&(_0x32bc3c['every'](_0x18164e=>_0xd24933['some'](_0x42946c=>_0x42946c['containsRange'](_0x18164e,!0x0)))&&_0x58ddb3['discard']());if(_0xd24933['every'](_0x491c3a=>_0x32bc3c['some'](_0x5881a2=>_0x5881a2['containsRange'](_0x491c3a,!0x0)))){const _0x416121=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1452bf,'accept');return this['forceDefaultExecution'](()=>_0x416121(_0x369eb7,null,_0xb6f396)),null;}}else{const _0x5e5023=_0x58ddb3['getFirstRange']();_0xd24933['some'](_0x291b1e=>_0x291b1e['containsRange'](_0x5e5023,!0x0))&&_0x58ddb3['discard']();if(_0xd24933['every'](_0x48db7d=>_0x5e5023['containsRange'](_0x48db7d,!0x0))){const _0x14a71e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1452bf,'accept');return this['forceDefaultExecution'](()=>_0x14a71e(_0xd24933,null,_0xb6f396)),null;}}const _0x4eacd2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1452bf,'join');let _0x37cdb7=null;for(const _0x33cd64 of this['getSuggestions']())if(_0x33cd64['author']['id']==_0x2be7e7['id']&&_0x33cd64['isInContent']&&'deletion'==_0x33cd64['type']&&_0x33cd64['subType']==_0x1452bf&&Lt(_0x33cd64,_0xb6f396)&&(_0x4eacd2(_0x33cd64['getRanges'](),_0xd24933)||_0x4eacd2(_0xd24933,_0x33cd64['getRanges']()))){if(_0x37cdb7){if(_0x33cd64['commentThread']&&_0x33cd64['commentThread']['length'])continue;for(const _0x2660f1 of _0x33cd64['getRanges']())_0x37cdb7['isIntersectingWithRange'](_0x2660f1)||_0x37cdb7['addRange'](_0x2660f1);_0x33cd64['removeMarkers']();}else{_0x37cdb7=_0x33cd64;for(const _0x3d9fb3 of _0xd24933)_0x33cd64['isIntersectingWithRange'](_0x3d9fb3)||_0x33cd64['addRange'](_0x3d9fb3);}}if(_0x37cdb7)return _0x37cdb7;_0xbe0e6b['clear']();for(const {suggestion:_0x15af7d,meta:_0x55e1d1}of this['_findSuggestions'](_0xd24933,'deletion'))_0x55e1d1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x55e1d1['containsRangeInObject']&&!_0x55e1d1['isInsideObject'])&&Lt(_0x15af7d,_0xb6f396)&&_0xbe0e6b['add'](_0x15af7d);for(const _0x5a08bb of _0xbe0e6b){const _0x28b44f=_0x5a08bb['getRanges']();if(!_0xb6f396||!_0xb6f396['skipNestingCheck']){if(_0xd24933['every'](_0x1cb7de=>_0x28b44f['some'](_0x55e3bd=>_0x55e3bd['containsRange'](_0x1cb7de,!0x0))))return _0x5a08bb;}(!_0x5a08bb['attributes']||!_0x5a08bb['attributes']['skipNestingCheck'])&&(_0x28b44f['every'](_0x2e1385=>_0xd24933['some'](_0x2f916a=>_0x2f916a['containsRange'](_0x2e1385,!0x0)))&&_0x5a08bb['discard']());}const _0x133b21=_0x58019d(),_0xe232e2=_0x2be7e7['id'],_0x4ddebb='deletion:'+_0x1452bf,_0x3fc2f8=this['_setSuggestionData']({'id':_0x133b21,'type':_0x4ddebb,'createdAt':new Date(),'authorId':_0xe232e2,'attributes':_0xb6f396});for(const _0x42406e of _0xd24933)_0x42406e['detach'](),_0x42406e['isCollapsed']||'$graveyard'==_0x42406e['root']['rootName']||this['_addSuggestionMarker'](_0x4ddebb,_0x133b21,_0xe232e2,_0x42406e,u['getMultiRangeId']());return _0x3fc2f8;}['markAttributeChange'](_0x3c11d1,_0x55c567,_0x210e63,_0x330ab4,_0x5ac850){if(_0x3c11d1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x509627=this['editor']['plugins']['get']('Users')['me']['id'],_0x544c94=Array['from'](this['_suggestions']['values']())['filter'](_0x22fef2=>'attribute'==_0x22fef2['type']&&_0x22fef2['data']['key']==_0x55c567&&_0x22fef2['isIntersectingWithRange'](_0x3c11d1));if('default'===this['_trackFormatChanges']){const _0x372369=this['_findSuggestions'](_0x3c11d1,'insertion')['filter'](({meta:_0x48a1a7})=>_0x48a1a7['isOwn']&&!_0x48a1a7['isInsideObject']&&!_0x48a1a7['isNextTo'])['map'](({suggestion:_0x5c9437})=>_0x5c9437);_0x544c94['unshift'](..._0x372369);}const _0x19282b=new Map([[_0x3c11d1,_0x210e63]]);for(const _0x212dd0 of _0x544c94){const _0x2b93fa='attribute'==_0x212dd0['type']?_0x212dd0['data']['oldValue']:void 0x0,_0xd692b1=_0x212dd0['getFirstRange'](),_0x2be6ce=Array['from'](_0x19282b['keys']())['find'](_0x1e3a49=>_0x1e3a49['isIntersecting'](_0xd692b1));if(!_0x2be6ce)continue;const _0x119b5b=_0x2be6ce['getDifference'](_0xd692b1);this['_isBlockAttribute'](_0x55c567)&&'insertion'==_0x212dd0['type']&&0x0!=_0x119b5b['length']||(_0x19282b['delete'](_0x2be6ce),_0x119b5b['forEach'](_0x420fe7=>{_0x19282b['set'](_0x420fe7,_0x210e63);}),'insertion'!=_0x212dd0['type']&&_0x2b93fa!=_0x330ab4&&_0x19282b['set'](_0x2be6ce['getIntersection'](_0xd692b1),_0x2b93fa));}const _0x481bb1=[];for(const [_0x4b6a2d,_0x5355ca]of _0x19282b){const _0x3f16b1=_0x58019d(),_0x2d6061={'key':_0x55c567,'oldValue':_0x5355ca,'newValue':_0x330ab4};_0x55c567['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':_0x55c567});const _0x4f0953=('attribute:'+(_0x55c567+'|'+Vt({'newValue':_0x330ab4})))['substring'](0x0,0x3c),_0x42e034=this['_setSuggestionData']({'id':_0x3f16b1,'type':_0x4f0953,'data':_0x2d6061,'createdAt':new Date(),'authorId':_0x509627,'attributes':_0x5ac850});_0x481bb1['push'](_0x42e034),this['_addSuggestionMarker'](_0x4f0953,_0x3f16b1,_0x509627,_0x4b6a2d);}return _0x481bb1;}['enableDefaultAttributesIntegration'](_0x27cbf6){this['enableCommand'](_0x27cbf6,(_0x2b0bf1,..._0x31412b)=>{this['_recordAttributeChanges'](()=>{_0x2b0bf1(..._0x31412b);});});}['registerBlockAttribute'](_0x530b0f){this['_blockAttributeKeys']['add'](_0x530b0f);}['registerInlineAttribute'](_0x17fb96){this['_inlineAttributeKeys']['add'](_0x17fb96);}['_getAttributeKey'](_0x3670cb){return'attribute'==_0x3670cb['type']?_0x3670cb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1754d3,_0x47344c){const _0x4320aa=_0x1754d3['getFirstMarker']();this['_model']['change'](_0x2f9a8e=>{_0x2f9a8e['updateMarker'](_0x4320aa,{'range':_0x47344c});});}['_addThreadToSuggestion'](_0x2fd153){const _0x5e042d=_0x2fd153['id'],_0x59b2e0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e042d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x59b2e0,'threadId':_0x5e042d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x444dc0=this['_commentsRepository']['getCommentThread'](_0x5e042d);_0x444dc0['unbind']('isRemovable'),_0x444dc0['isRemovable']=!0x1,_0x2fd153['commentThread']=_0x444dc0;}['_checkSuggestionCorrectness'](_0x447e1e,_0x2964ec,_0x35d755,_0x60d16c){if(_0x447e1e['type']!=_0x2964ec||_0x447e1e['subType']!=_0x35d755||_0x447e1e['creator']['id']!=_0x60d16c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x56ae75('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2f6590,_0x311f36){const _0x39e62f=_0x2f6590['getFirstRange']();if(_0x311f36['isEqual'](_0x39e62f))_0x2f6590['removeMarkers']();else{if(_0x39e62f['containsRange'](_0x311f36)){const _0x263f1b=this['_model']['createPositionAt'](_0x311f36['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f6590,this['_model']['createRange'](_0x39e62f['start'],_0x263f1b));const _0x52866d=_0x58019d(),_0x1d8229=_0x2f6590['creator']['id'],_0x18603e=_0x2f6590['type']+':'+_0x2f6590['subType'];this['_setSuggestionData']({'id':_0x52866d,'type':_0x18603e,'createdAt':new Date(),'authorId':_0x1d8229,'data':_0x2f6590['data'],'attributes':_0x2f6590['attributes']});const _0x171314=this['_model']['createPositionAt'](_0x311f36['end']['parent'],'after'),_0x34c660=this['_model']['createRange'](_0x171314,_0x39e62f['end']);this['_addSuggestionMarker'](_0x18603e,_0x52866d,_0x1d8229,_0x34c660);}else{if(_0x39e62f['containsPosition'](_0x311f36['start'])){const _0x1fb6ea=this['_model']['createPositionAt'](_0x311f36['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f6590,this['_model']['createRange'](_0x39e62f['start'],_0x1fb6ea));}else{const _0x52dac4=this['_model']['createPositionAt'](_0x311f36['end']['parent'],'after');this['_setSuggestionRange'](_0x2f6590,this['_model']['createRange'](_0x52dac4,_0x39e62f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3eee42){for(const {suggestion:_0x2eede8,meta:_0x266078}of this['_findSuggestions'](_0x3eee42,'insertion')){if(!_0x266078['isOwn'])continue;const _0x1430a6=_0x2eede8['getRanges']();for(const _0xeb6161 of _0x1430a6)if(!_0x3eee42['getDifference'](_0xeb6161)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x549cf9){const _0x10ae0f=this['editor']['plugins']['get']('Users')['getUser'](_0x549cf9);if(!_0x10ae0f)throw new _0x56ae75('track-changes-user-not-found',this);return _0x10ae0f;}['_getExternalAuthor'](_0x53a368){const _0x12a8bb=this['editor']['plugins']['get']('Users'),_0x40b65f=_0x40c511('external:'+_0x53a368),_0x2d0289=_0x12a8bb['getUser'](_0x40b65f);return _0x2d0289||_0x12a8bb['addUser']({'id':_0x40b65f,'name':_0x53a368});}['_createSuggestion'](_0x3d3f52,_0x3066e8,_0x5e0f17,_0x3807bc,_0x74bfac){const _0x2ee93e=this['_getAuthorFromId'](_0x3807bc),_0x166617=this['_suggestionFactory']['buildSuggestion'](_0x3d3f52,_0x3066e8,_0x5e0f17,_0x2ee93e,_0x74bfac,_0x16f856=>{this['_updateSuggestionData'](_0x5e0f17,{'attributes':_0x16f856});const _0x3a88ef=this['getSuggestion'](_0x5e0f17);this['_joinWithAdjacentSuggestions'](new Set([_0x3a88ef])),this['_refreshSuggestionsChain'](new Set([_0x3a88ef]));});return this['listenTo'](_0x166617,'accept',()=>{this['_updateSuggestionData'](_0x5e0f17,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x166617,'discard',()=>{this['_updateSuggestionData'](_0x5e0f17,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5e0f17,_0x166617),this['_suggestionState']['set'](_0x166617,'notReady'),_0x166617;}['_splitMarkerName'](_0x4d9561){const _0x5e61f3=_0x4d9561['split'](':');return{'group':_0x5e61f3[0x0],'type':_0x5e61f3[0x1],'subType':_0x5e61f3['length']>=0x5?_0x5e61f3[0x2]:null,'id':_0x5e61f3['length']<0x5?_0x5e61f3[0x2]:_0x5e61f3[0x3],'authorId':_0x5e61f3['length']<0x5?_0x5e61f3[0x3]:_0x5e61f3[0x4],'markerCount':0x6==_0x5e61f3['length']?_0x5e61f3[0x5]:null};}['_breakSuggestionMarker'](_0x4f6789,_0x4a45de,_0xffaabf){const _0x24f1ef=_0x4f6789['getFirstRange'](),_0x40add6=_0x24f1ef['start'],_0x290878=_0x24f1ef['end'];this['_setSuggestionRange'](_0x4f6789,this['_model']['createRange'](_0x40add6,_0x4a45de));const _0x4a99d3=_0x58019d(),_0xc24ce7=_0x4f6789['creator']['id'],_0x2c06f5=_0x4f6789['type']+(_0x4f6789['subType']?':'+_0x4f6789['subType']:'');this['_setSuggestionData']({'id':_0x4a99d3,'type':_0x2c06f5,'createdAt':new Date(),'authorId':_0xc24ce7,'originalSuggestionId':_0x4f6789['id'],'attributes':_0x4f6789['attributes'],'data':_0x4f6789['data']});const _0x566abc=this['_getAttributeKey'](_0x4f6789);('formatBlock'==_0x4f6789['type']||_0x566abc&&this['_isBlockAttribute'](_0x566abc))&&(_0xffaabf=this['_model']['createPositionBefore'](_0xffaabf['parent'])),this['_addSuggestionMarker'](_0x2c06f5,_0x4a99d3,_0xc24ce7,this['_model']['createRange'](_0xffaabf,_0x290878));}['_findSuggestions'](_0x4c2e2b,_0x389c08=null){const _0x49e05f=[],_0x36a093=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4c2e2b)||(_0x4c2e2b=[_0x4c2e2b]);for(const _0x223950 of this['getSuggestions']()){if(!_0x223950['isInContent'])continue;if(_0x389c08&&_0x223950['type']!=_0x389c08)continue;let _0x1be4ea=!0x1;for(const _0x4f0b8e of _0x223950['getRanges']()){for(const _0x24fc36 of _0x4c2e2b){const _0x3a9dc3=_0x24fc36['start']['isEqual'](_0x4f0b8e['end'])||_0x24fc36['end']['isEqual'](_0x4f0b8e['start']);if(_0x3a9dc3||_0x24fc36['getIntersection'](_0x4f0b8e)){const _0x33f0c4=_0x24fc36['containsRange'](_0x4f0b8e)&&Rt(this['_model']['schema'],_0x4f0b8e['start'],_0x24fc36),_0x1d8bdf=_0x4f0b8e['containsRange'](_0x24fc36)&&Rt(this['_model']['schema'],_0x24fc36['start'],_0x4f0b8e);_0x49e05f['push']({'suggestion':_0x223950,'meta':{'isOwn':_0x36a093==_0x223950['author'],'isNextTo':_0x3a9dc3,'isInsideObject':_0x33f0c4,'containsRangeInObject':_0x1d8bdf}}),_0x1be4ea=!0x0;break;}}if(_0x1be4ea)break;}}return _0x49e05f;}['_addSuggestionMarker'](_0x528c77,_0x32dd98,_0x25144f,_0x3f4831,_0x1ef07b){this['_model']['change'](_0xdf6083=>{let _0x4fbc05='suggestion:'+_0x528c77+':'+_0x32dd98+':'+_0x25144f;_0x1ef07b&&(_0x4fbc05=_0x4fbc05+':'+_0x1ef07b),_0xdf6083['addMarker'](_0x4fbc05,{'range':_0x3f4831,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x49fae6){const _0x200d60=_0x49fae6['previous'],_0x18d555=_0x49fae6['next'];_0x49fae6['previous']=null,_0x49fae6['next']=null,null!=_0x200d60&&_0x200d60['next']==_0x49fae6&&(_0x200d60['next']=_0x18d555),null!=_0x18d555&&_0x18d555['previous']==_0x49fae6&&(_0x18d555['previous']=_0x200d60),'ready'==this['_suggestionState']['get'](_0x49fae6)&&(this['_suggestionState']['set'](_0x49fae6,'removed'),this['fire']('suggestionUnloaded',_0x49fae6,_0x200d60,_0x18d555));}['_setSuggestionData'](_0x3ed58c){const _0x586185=_0x3ed58c['id'],_0x282cc2=this['addSuggestionData'](_0x3ed58c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2609c7=this['editor']['plugins']['get']('PendingActions'),_0x295736=_0x282cc2['hasComments'],_0x18d13d=_0x282cc2['subType']?_0x282cc2['type']+':'+_0x282cc2['subType']:_0x282cc2['type'],_0x5a65ca=this['editor']['locale'],_0x5e0528=_0x2609c7['add'](o(_0x5a65ca,'PENDING_ACTION_SUGGESTION')),_0x15b054={'id':_0x586185,'type':_0x18d13d,'hasComments':_0x295736,'data':_0x3ed58c['data']||null,'originalSuggestionId':_0x3ed58c['originalSuggestionId']||null,'attributes':_0x282cc2['attributes']};this['_adapter']['addSuggestion'](_0x15b054)['then'](_0x2d2690=>{_0x282cc2['_saved']=!0x0,_0x2609c7['remove'](_0x5e0528),_0x2d2690&&_0x2d2690['createdAt']&&(this['_suggestions']['get'](_0x586185)['createdAt']=_0x2d2690['createdAt']);})['catch'](_0x4620bc=>{throw _0x7edfd5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x282cc2['discard']();}),_0x282cc2['stopListening'](),this['_suggestions']['delete'](_0x282cc2['id']),this['_suggestionState']['delete'](_0x282cc2),_0x4620bc;});}return _0x282cc2;}['_isBlockAttribute'](_0x520d69){return this['_blockAttributeKeys']['has'](_0x520d69);}['_updateSuggestionData'](_0x6a5a51,_0x1fe23a){const _0x4065be=this['editor']['plugins']['get']('PendingActions'),_0x5eb469=this['getSuggestion'](_0x6a5a51);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5eb469['_saved']){const _0x2adad2=_0x4065be['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x6a5a51,_0x1fe23a)['then'](()=>{_0x4065be['remove'](_0x2adad2);});}else _0x5eb469['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x6a5a51,_0x1fe23a);});}}['_getSuggestionData'](_0x3ceb4f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x56ae75('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3ceb4f);}['_handleNewSuggestionMarker'](_0x3a255f){const {id:_0x563565,type:_0x2eb77b,subType:_0x35af39,authorId:_0x4ea30b}=this['_splitMarkerName'](_0x3a255f),_0x5141a1=this['_suggestions']['get'](_0x563565)||this['_createSuggestion'](_0x2eb77b,_0x35af39,_0x563565,_0x4ea30b,{});switch(this['_checkSuggestionCorrectness'](_0x5141a1,_0x2eb77b,_0x35af39,_0x4ea30b),this['_suggestionState']['get'](_0x5141a1)){case'notReady':this['_getSuggestionData'](_0x563565)['then'](_0x471697=>{let _0x301095=Promise['resolve']();_0x471697['hasComments']&&(_0x301095=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x563565})),_0x301095['then'](()=>{this['addSuggestionData'](_0x471697)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5141a1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x563565,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5141a1,'ready'),this['fire']('suggestionLoaded',_0x5141a1);break;case'ready':this['fire']('suggestionChanged',_0x5141a1);}return _0x5141a1['addMarkerName'](_0x3a255f),_0x5141a1;}['_refreshSuggestionsChain'](_0x5eb7ae){const _0x218e2f=Array['from'](_0x5eb7ae),_0x46818e=_0x218e2f['filter'](_0x2af4df=>'attribute'==_0x2af4df['type']);this['_refreshAttributeSuggestionsChain'](_0x46818e);const _0x1efd69=_0x218e2f['filter'](_0x44073b=>!_0x44073b['isMultiRange']&&'attribute'!=_0x44073b['type']),_0x5e3444=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32a705=>!_0x32a705['isMultiRange']&&'attribute'!=_0x32a705['type']),_0x3f1080=_0x5e3444['filter'](_0x39a85f=>!_0x5eb7ae['has'](_0x39a85f)),_0x41cfd1=new Map(_0x5e3444['map'](_0x48f8c0=>[_0x48f8c0,this['_suggestionFactory']['getSuggestionCallback'](_0x48f8c0['type'],_0x48f8c0['subType'],'chain')])),_0x5195e6=new Map(_0x5e3444['map'](_0x5a083f=>[_0x5a083f,_0x5a083f['getFirstRange']()])),_0x595b87=new Set(),_0x3eb373=new Set();for(let _0xff9c08=0x0;_0xff9c08<_0x1efd69['length'];_0xff9c08++)_0xe9d36e(_0x1efd69[_0xff9c08],_0x1efd69,_0xff9c08+0x1);for(let _0x2b3900=0x0;_0x2b3900<_0x1efd69['length'];_0x2b3900++)_0xe9d36e(_0x1efd69[_0x2b3900],_0x3f1080,0x0);const _0x568265=new Set();for(let _0x74c760=0x0;_0x74c760<_0x1efd69['length'];_0x74c760++){const _0x34bcb6=_0x1efd69[_0x74c760];!_0x3eb373['has'](_0x34bcb6)&&_0x34bcb6['previous']&&(_0x568265['add'](_0x34bcb6['previous']),_0x34bcb6['previous']['next']===_0x34bcb6&&(_0x34bcb6['previous']['next']=null),_0x34bcb6['previous']=null),!_0x595b87['has'](_0x34bcb6)&&_0x34bcb6['next']&&(_0x568265['add'](_0x34bcb6['next']),_0x34bcb6['next']['previous']===_0x34bcb6&&(_0x34bcb6['next']['previous']=null),_0x34bcb6['next']=null);}function _0xe9d36e(_0x149a34,_0x18a542,_0x46801d){for(let _0x4622ae=_0x46801d;_0x4622ae<_0x18a542['length'];_0x4622ae++){const _0x1cd15a=_0x1610a7(_0x149a34,_0x18a542[_0x4622ae]);_0x1cd15a&&(_0x1cd15a[0x0]['next']=_0x1cd15a[0x1],_0x1cd15a[0x1]['previous']=_0x1cd15a[0x0],_0x595b87['add'](_0x1cd15a[0x0]),_0x3eb373['add'](_0x1cd15a[0x1]));}}function _0x1610a7(_0x1da08a,_0x47ac17){if(_0x1da08a['author']['id']!==_0x47ac17['author']['id'])return null;const _0x3e44ab=_0x41cfd1['get'](_0x1da08a)(_0x1da08a,_0x47ac17,_0x5195e6['get'](_0x1da08a),_0x5195e6['get'](_0x47ac17));if(!_0x3e44ab)return null;return _0x41cfd1['get'](_0x47ac17)(_0x1da08a,_0x47ac17,_0x5195e6['get'](_0x1da08a),_0x5195e6['get'](_0x47ac17))?_0x3e44ab[0x1]['commentThread']&&_0x3e44ab[0x1]['commentThread']['length']?null:_0x3e44ab:null;}_0x568265['size']&&this['_refreshSuggestionsChain'](_0x568265);}['_refreshAttributeSuggestionsChain'](_0x5998){if(0x0==_0x5998['length'])return;const _0x38ddd2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41fe9c=>'attribute'==_0x41fe9c['type']&&_0x41fe9c['_isDataLoaded']),_0x2ea5ab=[],_0x44e8d0=new Map();for(const _0x139dd1 of _0x38ddd2){const _0x49b402=_0x40c511(_0x139dd1['attributes']);_0x44e8d0['has'](_0x49b402)||(_0x44e8d0['set'](_0x49b402,_0x2ea5ab['length']),_0x2ea5ab['push']([]));const _0x875c5c=_0x44e8d0['get'](_0x49b402);_0x2ea5ab[_0x875c5c]['push'](_0x139dd1);}!(function(){_0x2ea5ab['sort']((_0x107867,_0x54269c)=>{const _0x2ec643=_0x107867[0x0]['createdAt'],_0xedcafe=_0x54269c[0x0]['createdAt'];return _0x2ec643==_0xedcafe?_0x107867[0x0]['attributes']['groupId']<_0x54269c[0x0]['attributes']['groupId']?-0x1:0x1:_0x2ec643<_0xedcafe?-0x1:0x1;});for(const _0x29b519 of _0x2ea5ab)_0x29b519['sort']((_0x833bcc,_0x33f7f0)=>_0x833bcc['id']<_0x33f7f0['id']?-0x1:0x1);}());for(let _0x50d7fb=0x0;_0x50d7fb<_0x2ea5ab['length'];_0x50d7fb++){if(0x0==_0x2ea5ab[_0x50d7fb]['length'])continue;const _0x27ea48=[];for(let _0x2f3009=_0x50d7fb+0x1;_0x2f3009<_0x2ea5ab['length'];_0x2f3009++)0x0!=_0x2ea5ab[_0x2f3009]['length']&&_0x42fe4f(_0x2ea5ab[_0x50d7fb],_0x2ea5ab[_0x2f3009])&&_0x27ea48['push'](_0x2f3009);for(const _0x44b99c of _0x27ea48)_0x2ea5ab[_0x50d7fb]=_0x2ea5ab[_0x50d7fb]['concat'](_0x2ea5ab[_0x44b99c]),_0x2ea5ab[_0x44b99c]=[];}for(const _0x5f0aa7 of _0x2ea5ab)for(let _0x5f2086=0x0;_0x5f2086<_0x5f0aa7['length'];_0x5f2086++)_0x5f0aa7[_0x5f2086]['next']=_0x5f0aa7[_0x5f2086+0x1]||null;for(const _0x4c8404 of _0x2ea5ab)for(let _0x5f0701=0x0;_0x5f0701<_0x4c8404['length'];_0x5f0701++)_0x4c8404[_0x5f0701]['previous']=_0x4c8404[_0x5f0701-0x1]||null;function _0x42fe4f(_0x23cdc8,_0x314beb){if(_0x23cdc8[0x0]['attributes']['groupId']!==_0x314beb[0x0]['attributes']['groupId']&&_0x23cdc8[0x0]['author']!==_0x314beb[0x0]['author'])return!0x1;if(!function(_0x3f1323,_0x27d394){if(!_0x3f1323['hasComments']&&!_0x27d394['hasComments'])return!0x0;if(_0x3f1323['hasComments']&&_0x27d394['hasComments'])return!0x1;if(_0x3f1323['hasComments']&&_0x27d394['createdAt']<_0x3f1323['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x27d394['hasComments']&&_0x3f1323['createdAt']<_0x27d394['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x23cdc8[0x0],_0x314beb[0x0]))return!0x1;const _0x103186=Bt(_0x23cdc8[0x0]['attributes'],'groupId'),_0x25e0fe=Bt(_0x314beb[0x0]['attributes'],'groupId');if(!_0xd4c736(_0x103186,_0x25e0fe))return!0x1;return!!_0x23cdc8['every'](_0x2719e6=>_0x314beb['some'](_0x4e9ad4=>_0x2719e6['getFirstRange']()['isEqual'](_0x4e9ad4['getFirstRange']())))&&_0x314beb['every'](_0x18bd4f=>_0x23cdc8['some'](_0x622b38=>_0x18bd4f['getFirstRange']()['isEqual'](_0x622b38['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4f52da){const _0x38a8c6=Array['from'](_0x4f52da),_0xcdb7e3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4c4966=_0xcdb7e3['filter'](_0x1c8d4a=>!_0x4f52da['has'](_0x1c8d4a)),_0x696857=new Map(_0x38a8c6['map'](_0x14645a=>[_0x14645a,this['_suggestionFactory']['getSuggestionCallback'](_0x14645a['type'],_0x14645a['subType'],'join')])),_0x3cd8c7=new Map(_0xcdb7e3['map'](_0x153d25=>[_0x153d25,_0x153d25['getRanges']()]));for(let _0x3503f9=0x0;_0x3503f9<_0x38a8c6['length'];_0x3503f9++){if(_0x1babf8(this,_0x38a8c6[_0x3503f9],_0x38a8c6,_0x3503f9+0x1))return!0x0;}for(let _0x432134=0x0;_0x432134<_0x38a8c6['length'];_0x432134++){if(_0x1babf8(this,_0x38a8c6[_0x432134],_0x4c4966,0x0))return!0x0;}return!0x1;function _0x1babf8(_0x1092b9,_0x7fd995,_0x2d781d,_0x42ac97){for(let _0x35ad7d=_0x42ac97;_0x35ad7d<_0x2d781d['length'];_0x35ad7d++){const _0x500f8e=_0x2d781d[_0x35ad7d];if(_0x500f8e['type']!==_0x7fd995['type']||_0x500f8e['author']['id']!==_0x7fd995['author']['id']||_0x500f8e['subType']!==_0x7fd995['subType'])continue;if(!Pt(_0x7fd995,_0x500f8e,['groupId']))continue;if('attribute'==_0x7fd995['type']&&_0x7fd995['data']['oldValue']!=_0x500f8e['data']['oldValue'])continue;if('attribute'==_0x7fd995['type']&&_0x1092b9['_isBlockAttribute'](_0x7fd995['data']['key']))continue;if('formatBlock'==_0x7fd995['type']){const _0x435186=_0x1092b9['editor']['model'],_0xf53e5f=_0x7fd995['getContainedElement']();if(_0xf53e5f&&(_0x435186['schema']['isObject'](_0xf53e5f)||_0x435186['schema']['isLimit'](_0xf53e5f)))continue;}const _0x4a95fa=_0x696857['get'](_0x7fd995),_0x472c82=_0x3cd8c7['get'](_0x7fd995),_0x33249e=_0x3cd8c7['get'](_0x500f8e),_0x5ad599=_0x7fd995['commentThread']&&_0x7fd995['commentThread']['length'],_0x57a122=_0x500f8e['commentThread']&&_0x500f8e['commentThread']['length'];if(!_0x5ad599&&_0x4a95fa(_0x33249e,_0x472c82))return _0x1092b9['_joinSuggestions'](_0x500f8e,_0x7fd995),_0x3cd8c7['delete'](_0x7fd995),!0x0;if(!_0x57a122&&_0x4a95fa(_0x472c82,_0x33249e))return _0x1092b9['_joinSuggestions'](_0x7fd995,_0x500f8e),_0x3cd8c7['delete'](_0x500f8e),!0x0;}return!0x1;}}['_joinSuggestions'](_0xf1678,_0x3826a5){if(_0xf1678['isMultiRange']){for(const _0x5bea16 of _0x3826a5['getRanges']())_0xf1678['addRange'](_0x5bea16);}else{const _0xfd7843=_0x3826a5['getFirstRange']()['end'];this['_setSuggestionRange'](_0xf1678,this['_model']['createRange'](_0xf1678['getFirstRange']()['start'],_0xfd7843));}_0x3826a5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x48236c,_0x7c4529){const _0x2cff63=_0x48236c['startsWith']('format')||_0x48236c['startsWith']('attribute')?'FORMATTING':_0x48236c['toUpperCase']();return o(this['editor']['locale'],_0x7c4529+'_'+_0x2cff63+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x517a7d=this['editor'];if(!_0x517a7d['ui'])return;const {ariaLiveAnnouncer:_0x1d6184}=_0x517a7d['ui'];_0x584805(this['_model'],({left:_0x14ff98,entered:_0x3ea364})=>{for(const _0x2aee22 of _0x14ff98){const {group:_0x469f5c,type:_0xbc81e0}=this['_splitMarkerName'](_0x2aee22['name']);if('suggestion'===_0x469f5c){_0x1d6184['announce'](this['_getMarkerAnnouncementText'](_0xbc81e0,'LEAVE'));break;}}for(const _0x11d328 of _0x3ea364){const {group:_0x6e9f84,type:_0x24ef4e}=this['_splitMarkerName'](_0x11d328['name']);if('suggestion'===_0x6e9f84){_0x1d6184['announce'](this['_getMarkerAnnouncementText'](_0x24ef4e,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2fda04){if(this['_recordAttributeSuggestions'])return!0x1;const _0x33636f=this['editor'],_0x12d97d=_0x33636f['model']['document']['differ']['getChanges']();if(0x0==_0x12d97d['length'])return!0x1;const _0x1fa56f=[],_0x252fd2=_0x12d97d['filter'](_0x3b3b15=>'attribute'==_0x3b3b15['type']),_0xd67131=_0x12d97d['filter'](_0x5e90ae=>'insert'==_0x5e90ae['type']&&'$text'!=_0x5e90ae['name']),_0x165fa5=_0x12d97d['filter'](_0x2deb37=>'remove'==_0x2deb37['type']&&'$text'!=_0x2deb37['name']);for(const _0x502483 of _0x252fd2)_0x1fa56f['push']({'key':_0x502483['attributeKey'],'newValue':_0x502483['attributeNewValue'],'oldValue':_0x502483['attributeOldValue'],'range':Ot(_0x502483['range'],_0x33636f['model'])});for(const _0x161040 of _0xd67131){const _0x30fe3f=_0x165fa5['find'](_0x26dcc3=>_0x26dcc3['position']['isEqual'](_0x161040['position']));_0x30fe3f&&_0x1fa56f['push']({'key':m,'newValue':_0x161040['name'],'oldValue':_0x30fe3f['name'],'range':_0x33636f['model']['createRangeOn'](_0x161040['position']['nodeAfter'])});}return 0x0!=_0x1fa56f['length']&&this['_reduceExistingSuggestions'](_0x2fda04,_0x1fa56f);}['_processAttributeSuggestions'](_0x119cdd){let _0x28d182=!0x1;const _0xf7bf45=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5f153c=>_0x5f153c['data']['newRange']&&_0x5f153c['name']['startsWith']('suggestion:attribute:'));for(const _0x50d41e of _0xf7bf45){const {subType:_0x338bf1,id:_0x175bcf}=this['_splitMarkerName'](_0x50d41e['name']),_0x40a742=_0x338bf1['split']('|')[0x0];for(const _0x4ab96a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4ab96a['id']!=_0x175bcf&&'attribute'==_0x4ab96a['type']&&_0x4ab96a['data']&&_0x4ab96a['data']['key']==_0x40a742&&_0x4ab96a['getFirstRange']()['isIntersecting'](_0x50d41e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4ab96a,_0x50d41e['data']['newRange'],_0x119cdd),_0x28d182=!0x0);}return _0x28d182;}['_recordAttributeChanges'](_0x4b24a1){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4b24a1();}['_isRegisteredAttribute'](_0x5a64ad){const _0x5be6b1=this['_isBlockAttribute'](_0x5a64ad),_0x4945b9=this['_inlineAttributeKeys']['has'](_0x5a64ad);return _0x5be6b1||_0x4945b9;}['_reduceExistingSuggestions'](_0x2d2369,_0x23c727){if(0x0==_0x23c727['length'])return!0x1;let _0x14fb5a=!0x1;for(const _0x327a13 of _0x23c727){const _0x3837a8=this['_findSuggestions'](_0x327a13['range'],'attribute')['filter'](_0x4ddc86=>!_0x4ddc86['meta']['isNextTo'])['map'](_0x44f24d=>_0x44f24d['suggestion']),_0xd07291=_0x40c511({'newValue':_0x327a13['newValue']});_0x3837a8['filter'](_0x5e2a3f=>{const [_0x2b35d7,_0x230ac6]=_0x5e2a3f['subType']['split']('|');return _0x2b35d7==_0x327a13['key']&&_0x230ac6!=_0xd07291;})['forEach'](_0x48bdf6=>{this['_reduceSuggestionAttributeRange'](_0x48bdf6,_0x327a13['range'],_0x2d2369),_0x14fb5a=!0x0;});}return _0x14fb5a;}['_reduceSuggestionAttributeRange'](_0x3dd2c6,_0x50ab41,_0x4b24a7){const _0x59d0fd=_0x3dd2c6['getFirstRange']()['getDifference'](_0x50ab41);0x0!==_0x59d0fd['length']?0x1!==_0x59d0fd['length']?this['_breakSuggestionMarker'](_0x3dd2c6,_0x50ab41['start'],_0x50ab41['end']):this['_setSuggestionRange'](_0x3dd2c6,_0x59d0fd[0x0]):_0x4b24a7['removeMarker'](_0x3dd2c6['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x54d30f){this['_editor']=_0x54d30f,this['_model']=_0x54d30f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x56cbf7,_0x345db5,_0x466a87,_0x3d47c1,_0x54bd8c,_0x3ea32b){return new u(this['_model'],{'type':_0x56cbf7,'subType':_0x345db5,'id':_0x466a87,'author':_0x3d47c1,'creator':_0x3d47c1,'attributes':_0x54bd8c,'onAttributesChange':_0x3ea32b,'onAccept':(..._0x4277cc)=>this['getSuggestionCallback'](_0x56cbf7,_0x345db5,'accept')(..._0x4277cc),'onDiscard':(..._0x36c921)=>this['getSuggestionCallback'](_0x56cbf7,_0x345db5,'discard')(..._0x36c921)});}['registerCustomCallback'](_0x332988,_0x31dbb7,_0x4d5c3d,_0x5c15fd){const _0x56ca31=_0x332988+':'+_0x31dbb7+':'+_0x4d5c3d;this['_customCallbacks']['set'](_0x56ca31,_0x5c15fd);}['getSuggestionCallback'](_0x5a32e3,_0x1cdd63,_0x177462){const _0x1d51f9=_0x5a32e3+':'+_0x1cdd63+':'+_0x177462;return this['_customCallbacks']['get'](_0x1d51f9)||this['_defaultCallbacks']['get'](_0x5a32e3+':'+_0x177462);}['_registerDefaultCallbacks'](){const _0x2df507=()=>!0x1,_0x4c5d37=_0x303936=>{_0x303936['sort']((_0x4656ac,_0x496a5b)=>_0x4656ac['start']['isBefore'](_0x496a5b['start'])?0x1:-0x1),this['_model']['change'](_0xefb265=>{for(const _0x575747 of _0x303936){let _0x3736a8;_0x3736a8=_0x575747['end']['isAtEnd']&&_0x575747['end']['parent']==_0x575747['start']['nodeAfter']?_0xefb265['createSelection'](_0x575747['start']['nodeAfter'],'on'):_0xefb265['createSelection'](_0x575747),this['_model']['deleteContent'](_0x3736a8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2ba336=(_0x426ba4,_0x5cd4cc)=>{_0x5cd4cc&&this['_model']['change'](_0x454bb4=>{const {commandName:_0x11ffc3,commandParams:_0x509e75=[]}=_0x5cd4cc,_0x3906c3=_0x426ba4['map'](_0x581470=>(Tt(_0x581470)&&(_0x581470=this['_model']['createRange'](_0x581470['end'])),_0x581470))['filter'](_0x279c4c=>'$graveyard'!==_0x279c4c['root']['rootName']);if(_0x3906c3['length']<0x1)return;const _0x591da8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x50677a=>_0x17267b['fromRange'](_0x50677a));_0x454bb4['setSelection'](_0x3906c3);for(const _0x4a1149 of this['_editor']['commands']['commands']())_0x4a1149['refresh']();_0x509e75['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x11ffc3,..._0x509e75);const _0x1b80f1=_0x591da8['filter'](_0x1b1745=>'$graveyard'!=_0x1b1745['root']['rootName']);_0x1b80f1['length']>0x0&&_0x454bb4['setSelection'](_0x1b80f1);for(const _0x5207c8 of _0x591da8)_0x5207c8['detach']();});},_0x35a68b=(_0x1a93df,_0x188cb8)=>0x1==_0x1a93df['length']&&0x1==_0x188cb8['length']&&_0x1a93df[0x0]['end']['isEqual'](_0x188cb8[0x0]['start']),_0x5b07b7=(_0x15e142,_0x29001e,_0x54a22f,_0x370d56)=>Ft(_0x15e142,_0x29001e,_0x54a22f,_0x370d56,this['_model'])?[_0x15e142,_0x29001e]:Ft(_0x29001e,_0x15e142,_0x370d56,_0x54a22f,this['_model'])?[_0x29001e,_0x15e142]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2df507),this['_defaultCallbacks']['set']('insertion:discard',_0x4c5d37),this['_defaultCallbacks']['set']('insertion:join',_0x35a68b),this['_defaultCallbacks']['set']('insertion:chain',_0x5b07b7),this['_defaultCallbacks']['set']('deletion:accept',_0x4c5d37),this['_defaultCallbacks']['set']('deletion:discard',_0x2df507),this['_defaultCallbacks']['set']('deletion:join',_0x35a68b),this['_defaultCallbacks']['set']('deletion:chain',_0x5b07b7),this['_defaultCallbacks']['set']('formatInline:accept',_0x2ba336),this['_defaultCallbacks']['set']('formatInline:discard',_0x2df507),this['_defaultCallbacks']['set']('formatInline:join',_0x35a68b),this['_defaultCallbacks']['set']('formatInline:chain',_0x2df507),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2ba336),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2df507),this['_defaultCallbacks']['set']('formatBlock:join',_0x35a68b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2df507),this['_defaultCallbacks']['set']('attribute:accept',_0x2df507),this['_defaultCallbacks']['set']('attribute:discard',(_0x509481,_0x166005)=>{if(!_0x166005)return;const _0x515a67=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2035ec=>{if(_0x166005['key']==m)for(const _0x5dbcc2 of _0x509481){const _0xf4fe35=_0x5dbcc2['start']['nodeAfter'],_0x1f57ff=_0x166005['oldValue'];_0x2035ec['rename'](_0xf4fe35,_0x1f57ff);}else{if(_0x515a67['_isBlockAttribute'](_0x166005['key'])){for(const _0x2dcf21 of _0x509481)void 0x0!==_0x166005['oldValue']?_0x2035ec['setAttribute'](_0x166005['key'],_0x166005['oldValue'],_0x2dcf21['start']['nodeAfter']):_0x2035ec['removeAttribute'](_0x166005['key'],_0x2dcf21['start']['nodeAfter']);}else{for(const _0x1ebcef of _0x509481)_0x166005['oldValue']?_0x2035ec['setAttribute'](_0x166005['key'],_0x166005['oldValue'],_0x1ebcef):_0x2035ec['removeAttribute'](_0x166005['key'],_0x1ebcef);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x35a68b);}}function Rt(_0x301b7f,_0x702304,_0x4d6ca1){for(const _0x392743 of _0x702304['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x392743['root']==_0x392743)return!0x1;if(!_0x4d6ca1['containsItem'](_0x392743))return!0x1;if(_0x301b7f['isObject'](_0x392743)||_0x301b7f['isLimit'](_0x392743))return!0x0;}return!0x1;}function Tt(_0x1af2c7){return _0x1af2c7['end']['parent']==_0x1af2c7['start']['nodeAfter']&&_0x1af2c7['end']['isAtStart'];}function Et(_0x584e64,_0x29a9d5,_0x4a60f1,_0x411144){const _0xf92ebe=_0x2f0e56=>!_0x2f0e56['item']['is']('$textProxy')&&!_0x411144['isObject'](_0x2f0e56['item']),_0x2a41ec=_0x584e64['start']['getLastMatchingPosition'](_0xf92ebe),_0x2db8f5=_0x584e64['end']['getLastMatchingPosition'](_0xf92ebe,{'direction':'backward'});return(!_0x584e64['start']['isEqual'](_0x2a41ec)||!_0x584e64['end']['isEqual'](_0x2db8f5))&&(_0x2a41ec['isBefore'](_0x2db8f5)?_0x4a60f1['updateMarker'](_0x29a9d5,{'range':_0x4a60f1['createRange'](_0x2a41ec,_0x2db8f5)}):_0x4a60f1['removeMarker'](_0x29a9d5),!0x0);}function Vt(_0x42a721){return _0x40c511(_0x42a721);}function Ut(_0x57d7e7){const _0x3a20cb=_0x57d7e7['start']['nodeAfter'];return _0x3a20cb&&_0x3a20cb['is']('element');}function Ot(_0x50b60e,_0x3f9e75){return null==_0x50b60e['end']['nodeBefore']&&_0x50b60e['end']['parent']==_0x50b60e['start']['nodeAfter']?Gt(_0x50b60e['start']['nodeAfter'],_0x3f9e75):_0x50b60e;}function Gt(_0x11cbfb,_0x3045bf){const _0x29bbbe=_0x3045bf['schema']['isObject'](_0x11cbfb)||_0x3045bf['schema']['isSelectable'](_0x11cbfb);return _0x3045bf['createRange'](_0x3045bf['createPositionAt'](_0x11cbfb,'before'),_0x29bbbe?_0x3045bf['createPositionAfter'](_0x11cbfb):_0x3045bf['createPositionAt'](_0x11cbfb,'end'));}function Ft(_0x46388c,_0x30759e,_0x3a4e07,_0x54fcdd,_0x25839e){if(!Pt(_0x46388c,_0x30759e))return!0x1;if(_0x3a4e07['end']['isEqual'](_0x54fcdd['start']))return!0x0;if(_0x46388c['type']!=_0x30759e['type'])return!0x1;if(!_0x3a4e07['end']['isTouching'](_0x54fcdd['start']))return!0x1;const _0x5c3449=_0x25839e['createRange'](_0x3a4e07['end'],_0x54fcdd['start'])['getWalker']();for(const _0x227106 of _0x5c3449)if(['elementStart','elementEnd']['includes'](_0x227106['type'])&&_0x25839e['schema']['isLimit'](_0x227106['item']))return!0x1;return!0x0;}function Pt(_0xe9f1b7,_0x58d766,_0x3de80a=[]){return!(!_0xe9f1b7['_isDataLoaded']||!_0x58d766['_isDataLoaded'])&&_0xd4c736(Bt(_0xe9f1b7['attributes'],_0x3de80a),Bt(_0x58d766['attributes'],_0x3de80a));}function Lt(_0x762796,_0x2c8425){const _0x334783=Ht(_0x762796['attributes']),_0x3af83a=Ht(_0x2c8425);if(!_0x762796['_isDataLoaded'])return!0x1;for(const _0x2d83c2 of Object['keys'](_0x3af83a))if(!_0xd4c736(_0x334783[_0x2d83c2],_0x3af83a[_0x2d83c2]))return!0x1;return!0x0;}function Ht(_0x4fb335){const _0x368ce0=Object['assign']({},_0x4fb335);return delete _0x368ce0['skipNestingCheck'],delete _0x368ce0['tablePasteChainId'],_0x368ce0;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1bee3c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x13876c,_0x16b632,_0x77b395,_0x57fcbe){super(),this['model']=_0x16b632,this['view']=_0x77b395,this['commentThreadController']=_0x57fcbe,this['_editor']=_0x13876c,this['_acceptCommand']=_0x13876c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x13876c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2a1ee4,_0x2b945a)=>_0x2a1ee4||_0x2b945a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x285352=>_0x285352&&this['_editor']['model']['canEditAt'](_0x16b632['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x27b428=>_0x27b428&&this['_editor']['model']['canEditAt'](_0x16b632['getRanges']())),this['_pendingAction']=null,_0x77b395['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x77b395,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x77b395,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x77b395,'change:isDirty',()=>{_0x77b395['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 _0x2a95a9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2a95a9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x502ad6{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x2a2b58,_0x2d8acf,_0x4a3ef4,_0x4bc15c){super(_0x2a2b58),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x2d8acf['authoredAt']),this['bind']('authoredAt')['to'](_0x2d8acf),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x2d8acf,this['_localUser']=_0x4a3ef4,this['_config']=_0x4bc15c,_0x4bc15c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5aad13}=this['_config'];this['commentsListView']=new _0x5aad13(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',_0x449006=>_0x449006+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x25c885,_0x20736a)=>_0x25c885||!!_0x20736a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x201dea}=this['_config'],_0x4634b3=new _0x201dea(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2cc63c=_0x4634b3['commentInputView'];return _0x4634b3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2cc63c,'value',(_0x1794c8,_0x532cc3,_0xda8c03)=>!!_0xda8c03||_0x1794c8&&!_0x532cc3),_0x2cc63c['on']('submit',(_0xfd31bf,_0x7362b4)=>{this['fire']('addComment',_0x7362b4),_0x2cc63c['editor']['setData']('');}),_0x2cc63c['on']('cancel',()=>this['focus']()),_0x2cc63c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4634b3;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x132e53,_0x34930a,_0x1a180b,_0x57e6d0){super(_0x132e53,_0x34930a,_0x1a180b,_0x57e6d0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x583884=>_0x583884&&_0x583884[0x0]?_0x583884[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x222cf3,_0x42bd93)=>{let _0x2233c2='';for(const _0x3e9276 of _0x222cf3)_0x2233c2+='<p>'+ds(_0x3e9276['content'],_0x3e9276['color'])+'</p>';return _0x42bd93?_0x2233c2:_0x579d17(_0x2233c2,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x132e53,'Accept\x20suggestion'),_0x32fe92['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x132e53,'Discard\x20suggestion'),_0x32fe92['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x339a1e(_0x132e53,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1c2dcd=this['bindTemplate'],_0x9477f9=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x1c2dcd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1c2dcd['to']('authoredAt',_0x48619a=>this['_config']['formatDateTime'](_0x48619a))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x9477f9['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2254f9={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1c2dcd['if']('isActive','ck-suggestion-wrapper--active'),_0x1c2dcd['to']('type',_0x58eb53=>'ck-suggestion-'+_0x58eb53),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x9477f9}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2254f9['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x2254f9;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x3694ee,_0x5ed123,_0x14449c)=>{this['_descriptionElement']['innerHTML']=_0x14449c;});}['_createButton'](_0x1d34e9,_0x45a88c,_0x23894c,_0x6ec679,_0xf7432a){const _0x16f21f=new _0x31bbbd(this['locale']);return _0x16f21f['set']({'label':_0x1d34e9,'icon':_0x45a88c,'tooltip':!0x0,'tooltipPosition':_0xf7432a}),_0x16f21f['extendTemplate']({'attributes':{'class':_0x23894c}}),_0x16f21f['on']('execute',()=>{this['fire'](_0x6ec679,this['_model']['id']);}),_0x16f21f;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x433c37,_0x5ddc1f){let _0x5b8dc6='';return _0x5b8dc6+=_0x433c37['split']('*')['map']((_0xf69ece,_0x202729)=>_0x202729%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xf69ece)+'</span>':us(_0xf69ece))['join'](''),_0x5ddc1f&&(_0x5b8dc6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5ddc1f['value']+'\x22\x20title=\x22'+_0x5ddc1f['title']+'\x22></span>'),_0x5b8dc6;}function us(_0x295e1d){const _0x2ffce5=document['createElement']('span');return _0x2ffce5['innerText']=_0x295e1d,_0x2ffce5['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x11216f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5c6d6e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5f59f3){super(_0x5f59f3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5c0b3d=this['editor']['config'];_0x5c0b3d['define']('trackChanges.SuggestionThreadView',ne),_0x5c0b3d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5c0b3d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x197053,_0xb2f871){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x7099d9,_0x2d8cd4]of this['_handleControllerBuffer']){const _0xc670ef=this['_suggestionToController']['has'](_0x7099d9);_0xc670ef||_0x2d8cd4?_0xc670ef&&_0x2d8cd4&&this['_destroyController'](_0x7099d9):this['_initializeController'](_0x7099d9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x197053,_0xb2f871);}['init'](){const _0x59af2d=this['editor'],_0x1dfc9a=_0x59af2d['plugins']['get']('TrackChangesEditing'),_0x440da9=_0x59af2d['plugins']['get']('Annotations'),_0x54bf01=_0x59af2d['plugins']['get']('EditorAnnotations'),_0x138588=_0x59af2d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x54bf01['addSourceCollector'](()=>{const _0xb801ad=[];for(const [_0x28a0f6,_0x5a3e85]of Array['from'](this['_suggestionToController'])){const _0x333570=_0x28a0f6['getAllAdjacentSuggestions'](),_0x2bda61=[];for(const _0x5cb750 of _0x333570){if(!_0x5cb750['isInContent'])continue;if(_0x5cb750['isMultiRange']){_0x2bda61['push'](..._0x5cb750['getRanges']());continue;}const _0x42fa63=_0x5cb750['getFirstRange']();if(_0x2bda61['length']>0x0){const _0x597ccf=_0x2bda61[0x0]['getJoined'](_0x42fa63);if(_0x597ccf){_0x2bda61[0x0]=_0x597ccf;continue;}}_0x2bda61['push'](_0x42fa63);}_0xb801ad['push']([_0x5a3e85['view'],_0x2bda61]);}return _0xb801ad;}),this['listenTo'](_0x1dfc9a,'suggestionLoaded',(_0xbddd3,_0x266505)=>{this['listenTo'](_0x266505,'change:previous',(_0x27d5b5,_0x3e2c3a,_0x25762b,_0x49f138)=>{_0x266505['isInContent']&&(null==_0x25762b?(this['_updateController'](_0x49f138['head']),this['_handleSuggestionControllerDelayed'](_0x266505,!0x1)):(this['_updateController'](_0x25762b['head']),null==_0x49f138&&this['_handleSuggestionControllerDelayed'](_0x266505,!0x0)));}),null!==_0x266505['previous']?this['_updateController'](_0x266505['head']):this['_handleSuggestionControllerDelayed'](_0x266505,!0x1);}),this['listenTo'](_0x1dfc9a,'suggestionUnloaded',(_0x2fa68d,_0x298bed,_0x21c695)=>{this['stopListening'](_0x298bed,'change:previous'),this['_handleControllerBuffer']['delete'](_0x298bed),this['_suggestionToController']['has'](_0x298bed)&&this['_destroyController'](_0x298bed),_0x21c695&&this['_updateController'](_0x21c695['head']);}),this['listenTo'](_0x1dfc9a,'suggestionChanged',(_0x121bce,_0x1d17cf)=>{this['_updateController'](_0x1d17cf);}),this['listenTo'](_0x440da9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x138588,'addComment',(_0x407f28,{threadId:_0x59d2b0,isFromAdapter:_0x1af215})=>{if(_0x1af215||!_0x1dfc9a['hasSuggestion'](_0x59d2b0))return;const _0x5b048c=_0x1dfc9a['getSuggestion'](_0x59d2b0);this['_suggestionToController']['get'](_0x5b048c)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x274fc2=this['editor']['plugins']['get']('Annotations'),_0x1033ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x176377=Array['from'](_0x274fc2['activeAnnotations'],_0x8b0fa4=>_0x8b0fa4['innerView'])['filter'](_0x277ac2=>this['_viewToController']['has'](_0x277ac2)),_0x2c548b=[];for(const _0x199bf7 of _0x176377){const _0x4c977b=this['_viewToController']['get'](_0x199bf7)['model']['getAllAdjacentSuggestions']();_0x2c548b['push'](..._0x4c977b['reduce']((_0x5a6557,_0x20f1b1)=>[..._0x5a6557,..._0x20f1b1['getMarkerNames']()],[]));}_0x1033ea['activeMarkers']=_0x2c548b;}['_addUIComponentsToFactory'](){const _0x48aaf7=this['editor'],_0x5b8174=_0x48aaf7['locale'],_0x2500d1=o(_0x5b8174,'Track\x20changes'),_0x297a52=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x2500d1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b8174,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b8174,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b8174,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b8174,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2a44f2 of _0x297a52)if(ae(_0x2a44f2)){const _0x3de5ed=_0x48aaf7['commands']['get'](_0x2a44f2['model']['commandName']);_0x2a44f2['model']['bind']('isOn','isEnabled')['to'](_0x3de5ed,'value','isEnabled');}_0x48aaf7['ui']['componentFactory']['add']('trackChanges',_0x2f0166=>this['_createToolbarButton'](_0x2f0166,_0x297a52,_0x2500d1)),_0x48aaf7['ui']['componentFactory']['add']('menuBar:trackChanges',_0xa4ba35=>this['_createMenuBarMenu'](_0xa4ba35,_0x297a52,_0x2500d1));}['_createToolbarButton'](_0x46675e,_0x152207,_0x323ce2){const _0x47840b=zt(_0x46675e,Zt),_0x480ce0=this['editor']['commands']['get']('trackChanges');_0x47840b['buttonView']['set']({'tooltip':_0x323ce2,'label':_0x323ce2,'icon':ie}),_0x47840b['buttonView']['bind']('isOn')['to'](_0x480ce0,'value'),_0x47840b['buttonView']['on']('execute',()=>{_0x480ce0['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x47840b,_0x152207,{'role':'menu'});const _0x5d5317=[];for(const _0x21f361 of _0x152207)ae(_0x21f361)&&_0x5d5317['push'](this['editor']['commands']['get'](_0x21f361['model']['commandName']));const _0xb033db=_0x47840b['buttonView'];return _0xb033db['actionView']['unbind']('isEnabled'),_0xb033db['arrowView']['unbind']('isEnabled'),_0xb033db['actionView']['bind']('isEnabled')['to'](_0x480ce0,'isEnabled'),_0xb033db['arrowView']['bind']('isEnabled')['toMany'](_0x5d5317,'isEnabled',(..._0x2f008b)=>_0x2f008b['some'](_0x38cea8=>_0x38cea8)),_0x47840b['on']('execute',_0x8b2888=>{this['editor']['execute'](_0x8b2888['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x47840b;}['_createMenuBarMenu'](_0x40d6e9,_0x2686a6,_0x158218){const _0x598a48=new Kt(_0x40d6e9),_0x4463a6=this['editor']['commands']['get']('trackChanges');_0x598a48['buttonView']['set']({'label':_0x158218,'icon':ie});const _0x47ecc6=new Qt(_0x40d6e9);for(const _0x2ee89c of _0x2686a6){if('separator'==_0x2ee89c['type']){_0x47ecc6['items']['add'](new Jt(_0x40d6e9));continue;}const _0x2526fd=new Xt(_0x40d6e9,_0x598a48),_0x2ac800=new Yt(_0x40d6e9),_0x4b0ca8=_0x2ee89c['model'];_0x2ac800['bind'](...Object['keys'](_0x4b0ca8))['to'](_0x4b0ca8),_0x2ac800['delegate']('execute')['to'](_0x598a48),_0x2ac800['on']('execute',()=>{this['editor']['execute'](_0x4b0ca8['commandName']),this['editor']['editing']['view']['focus']();}),_0x2526fd['children']['add'](_0x2ac800),_0x47ecc6['items']['add'](_0x2526fd);}return _0x598a48['bind']('isEnabled')['to'](_0x4463a6,'isEnabled'),_0x598a48['panelView']['children']['add'](_0x47ecc6),_0x598a48;}['_initializeController'](_0x550e99){const _0x48e3a7=this['editor'],_0x476734=_0x48e3a7['config'],_0xcb3b45=_0x48e3a7['plugins']['get']('Annotations'),_0x2a9a77=_0x48e3a7['plugins']['get']('CommentsRepository'),_0x4ce7e9=_0x48e3a7['plugins']['get']('EditorAnnotations'),_0xafc21b=_0x48e3a7['plugins']['get'](_0x5c6d6e)['me'],_0x5b425a=_0x476734['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xfab480,CommentThreadInputView:_0x4c8206}=_0x48e3a7['plugins']['get']('CommentsUI');let _0x56294b,_0x5086a8;this['_annotationViews']['has'](_0x550e99['id'])?(_0x5086a8=this['_annotationViews']['get'](_0x550e99['id']),_0x56294b=_0x5086a8['mainView']):(_0x56294b=new _0x5b425a(_0x48e3a7['locale'],_0x550e99,_0xafc21b,{'disableComments':this['_disableComments'],'editorConfig':_0x476734['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x476734['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x476734['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x476734['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x300dce(_0x476734['get']('locale')),'CommentView':_0x476734['get']('comments')['CommentView'],'CommentsListView':_0xfab480,'CommentThreadInputView':_0x4c8206}),_0x56294b['acceptButton']['on']('execute',()=>{_0x48e3a7['editing']['view']['focus']();}),_0x56294b['discardButton']['on']('execute',()=>{_0x48e3a7['editing']['view']['focus']();}),_0x5086a8=_0xcb3b45['createAnnotationView'](this['editor']['locale'],_0x56294b),_0x5086a8['bind']('isDirty')['to'](_0x56294b,'isDirty'),_0x5086a8['bind']('length')['to'](_0x56294b),_0x5086a8['bind']('type')['to'](_0x56294b,'type',_0x2753a8=>'suggestion-'+_0x2753a8),this['_annotationViews']['set'](_0x550e99['id'],_0x5086a8));const _0x486cde=_0x2a9a77['createCommentThreadController'](_0x550e99['commentThread'],_0x56294b),_0x43d37f=new oe(_0x48e3a7,_0x550e99,_0x56294b,_0x486cde),_0x1ca8d8=_0x550e99['getAllAdjacentSuggestions']()['filter'](_0x42fae5=>_0x42fae5['isInContent']);_0x56294b['descriptionParts']=_0x48e3a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1ca8d8),this['_suggestionToController']['set'](_0x550e99,_0x43d37f),this['_viewToController']['set'](_0x56294b,_0x43d37f);const _0x7b5124=_0xcb3b45['createAnnotation']({'view':_0x5086a8,'target':()=>{const _0x2d80bf=[],_0x5cf249=_0x550e99['getAllAdjacentSuggestions']()['filter'](_0x1dbcd4=>_0x1dbcd4['isInContent']);for(const _0x187933 of _0x5cf249)_0x2d80bf['push'](..._0x187933['getMarkers']());return _0x185d75(_0x48e3a7['editing'],_0x2d80bf);},'type':()=>'suggestion-'+_0x43d37f['view']['type']});_0x2a9a77['_bindAnnotationToEditors'](_0x56294b,_0x7b5124),_0xcb3b45['add'](_0x7b5124),_0x4ce7e9['registerAnnotation'](_0x7b5124);}['_destroyController'](_0x1524ab){const _0x552630=this['editor']['plugins']['get']('CommentsRepository'),_0xf62a15=this['editor']['plugins']['get']('Annotations'),_0xf2674f=this['_suggestionToController']['get'](_0x1524ab),_0xa8c8ec=_0xf2674f['view'],_0x11664a=_0xf62a15['getByInnerView'](_0xa8c8ec);_0x552630['_unbindEditors'](_0xa8c8ec),_0x11664a&&_0xf62a15['remove'](_0x11664a),this['_suggestionToController']['delete'](_0x1524ab),this['_viewToController']['delete'](_0xa8c8ec),_0xf2674f['destroy']();}['_updateController'](_0x22bdaf){if(!_0x22bdaf['isInContent']||!this['_suggestionToController']['has'](_0x22bdaf))return;const _0x42a846=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19ffec=this['_suggestionToController']['get'](_0x22bdaf),_0x19e208=_0x22bdaf['getAllAdjacentSuggestions']();_0x19ffec['view']['descriptionParts']=_0x42a846['descriptionFactory']['getDescriptions'](_0x19e208);}['destroy'](){for(const _0xb4d91d of this['_suggestionToController']['keys']())this['_destroyController'](_0xb4d91d);for(const _0x4a0d3a of this['_annotationViews']['values']())_0x4a0d3a['mainView']['destroy']();super['destroy']();}}function ae(_0x1064ef){return'model'in _0x1064ef;}class k extends _0x11216f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5e5ceb){this['editor']['plugins']['get'](p)['adapter']=_0x5e5ceb;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x351ecc){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x351ecc);}['getSuggestions']({skipNotAttached:_0x2e29d3=!0x1,toJSON:_0x117917=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2e29d3,'toJSON':_0x117917});}['getSuggestion'](_0x528f44){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x528f44);}}const T=['Pagination'];class P extends _0x11216f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2ebe43=this['editor'];if(_0x2ebe43['config']['define']('trackChangesData.editorCreator',_0x6f5e1b=>{const _0x462130=_0x2ebe43['model']['document']['getRootNames']()['reduce']((_0x4f9b14,_0x124ff2)=>(_0x4f9b14[_0x124ff2]='',_0x4f9b14),{});return _0x2ebe43['constructor']['create'](_0x462130,_0x6f5e1b);}),'function'!=typeof _0x2ebe43['config']['get']('trackChangesData')['editorCreator'])throw new _0x56ae75('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3ed529){return N(this['editor'],!0x0,_0x3ed529);}['getDataWithDiscardedSuggestions'](_0x137e38){return N(this['editor'],!0x1,_0x137e38);}}class D extends _0x11216f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x24875e){super(_0x24875e),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x3759c5){return void 0x0!==_0x3759c5['getRootsAttributes'];}async function N(_0x210eb4,_0x2fe10f,_0x3aa707){const _0x3ff80b=_0x43161b(_0x210eb4,T);_0x3ff80b['plugins']['push'](p,D),_0x3ff80b['rootsAttributes']=v(_0x210eb4)?_0x210eb4['getRootsAttributes']():void 0x0;const _0x5d605d=document['createDocumentFragment'](),_0x5845c6=_0x210eb4['config']['get']('trackChangesData')['editorCreator'],_0x2d5cfc=await _0x5845c6(_0x3ff80b,()=>function(_0x11c186){const _0x42b06b=document['createElement']('div');return _0x11c186['appendChild'](_0x42b06b),_0x42b06b;}(_0x5d605d));!function(_0x168a3d,_0xd54735){const _0xcd72d8=_0x168a3d['model']['document']['getRootNames']()['reduce']((_0x1cc7f7,_0x153bb8)=>(_0x1cc7f7[_0x153bb8]=_0x168a3d['data']['get']({'rootName':_0x153bb8}),_0x1cc7f7),{}),_0x3dbb96=_0x168a3d['plugins']['get']('Users')['users']['map'](_0x172af0=>({'id':_0x172af0['id'],'name':_0x172af0['name']})),_0x2d9915=_0x168a3d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x970b79=_0x168a3d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a0b86=_0xd54735['plugins']['get']('Users'),_0x47c9c7=_0xd54735['plugins']['get']('TrackChangesEditing'),_0xea8db2=_0xd54735['plugins']['get']('CommentsRepository');for(const _0xf96457 of _0x3dbb96)_0x1a0b86['getUser'](_0xf96457['id'])||_0x1a0b86['addUser'](_0xf96457);_0x1a0b86['me']||_0x1a0b86['useAnonymousUser']();for(const _0x240be6 of _0x970b79)_0xea8db2['addCommentThread'](_0x240be6);for(const _0x10b43e of _0x2d9915)_0x47c9c7['addSuggestionData'](_0x10b43e);_0xd54735['data']['set'](_0xcd72d8);}(_0x210eb4,_0x2d5cfc),_0x2d5cfc['execute'](_0x2fe10f?'acceptAllSuggestions':'discardAllSuggestions');const _0x3d79f9=v(_0x2d5cfc)?_0x2d5cfc['getFullData'](_0x3aa707):_0x2d5cfc['data']['get'](_0x3aa707);return await _0x2d5cfc['destroy'](),_0x3d79f9;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x4a3ee7,PendingActions as _0x2d73d2,icons as _0x40b8}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xf841e3,ObservableMixin as _0x177203,uid as _0x24ebe0,insertToPriorityArray as _0x301064,priorities as _0x50a0d6,logWarning as _0xe16ddb,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x28f5bb,View as _0x4bd0da,ButtonView as _0x1abaf2,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x595072,hashObject as _0x29f25f,surroundingMarkersDetector as _0x52066e,trimHtml as _0x3a9b01,UserView as _0x56a046,getDateTimeFormatter as _0x182c45,getAllMarkersDomElementsSorted as _0xfaf0da,sanitizeEditorConfig as _0x33b7ed}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xb7716f,LiveRange as _0x1861aa,LivePosition as _0x5aa587}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x127f2f,toWidget as _0x51be66}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4e2203,set as _0xb0d661,isEqual as _0x364d08,unset as _0x45de60,omit as Bt}from'lodash-es';import{Delete as _0x3327cd,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3fe4a9,ShiftEnter as _0x5a462c}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x42f707,_0x138a15){super(_0x42f707),this['_enabledCommands']=_0x138a15,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 _0x3d02ab of this['editor']['commands']['commands']())_0x3d02ab['affectsData']&&!this['_enabledCommands']['has'](_0x3d02ab)&&_0x3d02ab['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2c8e3d of this['editor']['commands']['commands']())_0x2c8e3d['affectsData']&&!this['_enabledCommands']['has'](_0x2c8e3d)&&_0x2c8e3d['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x1663c5,_0x5d07f2){super(_0x1663c5),this['_suggestions']=_0x5d07f2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x8b1aa6){const _0x3c19ff=this['_suggestions']['get'](_0x8b1aa6);if(!_0x3c19ff)throw new _0xf841e3('track-changes-accept-suggestion-not-found',this);const _0xcda3a=_0x3c19ff['getRanges']();this['editor']['model']['canEditAt'](_0xcda3a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3c19ff);}}class B extends ts{['_suggestions'];constructor(_0x3bc73f,_0x7a96e5){super(_0x3bc73f),this['_suggestions']=_0x7a96e5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1b159a){const _0x324833=this['_suggestions']['get'](_0x1b159a);if(!_0x324833)throw new _0xf841e3('track-changes-discard-suggestion-not-found',this);const _0x2fe389=_0x324833['getRanges']();this['editor']['model']['canEditAt'](_0x2fe389)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x324833);}}function ss(_0x4d0b17){return _0x4d0b17['sort']((_0x5385dd,_0x8e5594)=>'deletion'==_0x5385dd['type']&&'deletion'!=_0x8e5594['type']?-0x1:'deletion'!=_0x5385dd['type']&&'deletion'==_0x8e5594['type']?0x1:0x0);}function to(_0x35fe35,_0x5032a0){let _0x117248,_0x3f3a09=0x0;const _0x277464=[],_0x273029=_0x5032a0['schema'];for(;_0x3f3a09<_0x35fe35['length'];){const _0x3dbff7=_0x35fe35[_0x3f3a09],_0x1fdc05=_0x35fe35[_0x3f3a09+0x1];_0x117248||(_0x117248=_0x5032a0['createPositionBefore'](_0x3dbff7)),co(_0x5032a0,_0x3dbff7,_0x1fdc05)||(_0x277464['push'](_0x5032a0['createRange'](_0x117248,_0x273029['isObject'](_0x3dbff7)?_0x5032a0['createPositionAfter'](_0x3dbff7):_0x5032a0['createPositionAt'](_0x3dbff7,'end'))),_0x117248=null),_0x3f3a09++;}return _0x277464;}function co(_0x5485b6,_0x578b88,_0x1ef881){if(!_0x1ef881)return!0x1;const _0x2c949b=_0x5485b6['createPositionAfter'](_0x578b88),_0x43b802=_0x5485b6['createPositionBefore'](_0x1ef881);return _0x2c949b['isTouching'](_0x43b802);}function rs(_0x2230aa,_0x134988,_0xc83826){for(;_0xc83826['length'];){const _0x5c93b4=_0xc83826['splice'](0x0,0x64);_0x2230aa['change'](()=>{for(const _0xa6dd1b of _0x5c93b4)_0xa6dd1b['isInContent']&&_0x134988['execute'](_0xa6dd1b['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x122b36,_0x36cb73,_0x59dda0){super(_0x122b36),this['_command']=_0x36cb73,this['_suggestions']=_0x59dda0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x39c8d4=Array['from'](this['_suggestions']['values']())['some'](_0x41182c=>_0x41182c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x39c8d4;}['execute'](){const _0x50877e=ss(Array['from'](this['_suggestions']['values']()));for(const _0xe4d66c of _0x50877e){const _0x379264=_0xe4d66c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x379264))return;}rs(this['editor']['model'],this['_command'],_0x50877e);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4f5313,_0x4e4550,_0x5994d9){super(_0x4f5313),this['_command']=_0x4e4550,this['_suggestions']=_0x5994d9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5216d7=this['editor']['model']['document']['selection'],_0x4da3ba=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x187a7c,_0x1d676d){const _0x5327e6=Array['from'](_0x187a7c['getRanges']()),_0x1535f4=new Set();for(const _0x480e21 of _0x1d676d)if(_0x480e21['isInContent']){for(const _0x306519 of _0x5327e6)for(const _0x15ed32 of _0x480e21['getRanges']())(_0x306519['isIntersecting'](_0x15ed32)||_0x187a7c['isCollapsed']&&!_0x480e21['isMultiRange']&&_0x480e21['next']&&_0x15ed32['end']['isTouching'](_0x306519['start']))&&_0x1535f4['add'](_0x480e21);}return _0x1535f4;}(_0x5216d7,_0x4da3ba),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3278c5=ss(Array['from'](this['_selectedSuggestions']));for(const _0x102f9f of _0x3278c5){const _0x23fe6b=_0x102f9f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x23fe6b))return;}rs(this['editor']['model'],this['_command'],_0x3278c5);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x177203(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x268007,_0x6e9582){super(),this['id']=_0x6e9582['id'],this['type']=_0x6e9582['type'],this['subType']=_0x6e9582['subType']||null,this['author']=_0x6e9582['author'],this['creator']=_0x6e9582['creator']||_0x6e9582['author'],this['isExternal']=Boolean(_0x6e9582['attributes']&&_0x6e9582['attributes']['@external']),this['data']=null,this['_model']=_0x268007,this['_onAccept']=_0x6e9582['onAccept'],this['_onDiscard']=_0x6e9582['onDiscard'],this['_onAttributesChange']=_0x6e9582['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6e9582['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 _0x262fca=this;for(;_0x262fca['previous'];)_0x262fca=_0x262fca['previous'];return _0x262fca;}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'](_0x3ffb2e){this['_markerNames']['add'](_0x3ffb2e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x884c6b=>this['_model']['markers']['get'](_0x884c6b))['filter'](_0x353306=>_0x353306);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x57ae6c=>{for(const _0x1eddbe of this['getMarkers']())_0x57ae6c['removeMarker'](_0x1eddbe);}),this['_markerNames']['clear']();}['removeMarker'](_0x5c08a6){this['_model']['change'](_0x367ffe=>{_0x367ffe['removeMarker'](_0x5c08a6);}),this['_markerNames']['delete'](_0x5c08a6);}['addRange'](_0x3eb621){const _0x45fa49='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x45fa49),this['_model']['change'](_0x16aabd=>{_0x16aabd['addMarker'](_0x45fa49,{'range':_0x3eb621,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x41a574){for(const _0x27095c of this['getRanges']())if(_0x27095c['isIntersecting'](_0x41a574))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2b444e=>_0x2b444e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x218f1c,_0x3e7c7f)=>[..._0x218f1c,..._0x3e7c7f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x481b95=this['getRanges']();if(0x1!=_0x481b95['length'])return null;const _0x4a492f=_0x481b95[0x0],_0x871066=_0x4a492f['start']['nodeAfter'],_0x34d467=_0x4a492f['end']['nodeBefore'];return _0x871066 instanceof _0xb7716f?_0x871066!=_0x34d467?null:_0x871066: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 _0x5743ea=[];let _0x591703=this['head'];for(;_0x591703;)_0x5743ea['push'](_0x591703),_0x591703=_0x591703['next'];return _0x5743ea;}['setAttribute'](_0x5f398f,_0x3cbb17){const _0x3a0165=_0x4e2203(this['attributes']);_0xb0d661(_0x3a0165,_0x5f398f,_0x3cbb17),_0x364d08(_0x3a0165,this['attributes'])||(this['attributes']=_0x3a0165,this['_onAttributesChange'](_0x3a0165));}['removeAttribute'](_0x558c2c){const _0x22b2c8=_0x4e2203(this['attributes']);_0x45de60(_0x22b2c8,_0x558c2c),_0x364d08(_0x22b2c8,this['attributes'])||(this['attributes']=_0x22b2c8,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 _0x24ebe0()['substr'](0x1,0x5);}}function o(_0x1b60fa,_0x3cc4c8,_0x7406c4){const t=_0x1b60fa['t'];switch(_0x3cc4c8){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x7406c4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x7406c4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x7406c4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x7406c4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x7406c4);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',_0x7406c4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x7406c4);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x7406c4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x7406c4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x7406c4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x7406c4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x7406c4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x7406c4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x7406c4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x7406c4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x7406c4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x7406c4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x7406c4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x7406c4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x7406c4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x7406c4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x7406c4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x7406c4);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'},_0x7406c4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x7406c4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x7406c4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x7406c4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x7406c4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x7406c4);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'},_0x7406c4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x7406c4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x7406c4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x7406c4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x7406c4);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'},_0x7406c4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x7406c4);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'},_0x7406c4);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'},_0x7406c4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x7406c4);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'},_0x7406c4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x7406c4);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'},_0x7406c4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x7406c4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x7406c4);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x7406c4);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x7406c4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x3cc4c8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x75af0c,_0x3d3a48){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x75af0c,this['_locale']=_0x3d3a48;}['getDescriptions'](_0x403ef9){const _0x2953bd=[],_0x5dd12c=new Set(),_0xeae7bc=new Set();for(let _0x58bbef=0x0;_0x58bbef<_0x403ef9['length'];_0x58bbef++){const _0x42d212=_0x403ef9[_0x58bbef];if(!_0x42d212['isInContent'])continue;const _0x44df3b=this['_handleCustomCallbackDescription'](_0x42d212);if(_0x44df3b){if(null!=_0x42d212['subType']){if(_0x5dd12c['has'](_0x42d212['subType']))continue;_0x5dd12c['add'](_0x42d212['subType']);}_0x2953bd['push'](_0x44df3b);}else{if('attribute'!=_0x42d212['type'])'insertion'!=_0x42d212['type']&&'deletion'!=_0x42d212['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2953bd,_0x42d212,_0x403ef9[_0x58bbef+0x1]);else{const _0x58264b=_0x42d212['data']['key'];if(_0xeae7bc['has'](_0x58264b))continue;_0xeae7bc['add'](_0x42d212['data']['key']),_0x58264b==m?this['_handleRenameSuggestionDescription'](_0x2953bd,_0x42d212):this['_handleAttributeSuggestionDescription'](_0x2953bd,_0x42d212);}}}return this['_resolveDescriptionItems'](_0x2953bd);}['registerDescriptionCallback'](_0x5a84db){this['_customCallbacks']['push'](_0x5a84db);}['registerElementLabel'](_0x1ad3d3,_0xed1c56,_0x484dd1=_0x50a0d6['normal']){'function'==typeof _0x1ad3d3?_0x301064(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1ad3d3,'label':_0xed1c56,'priority':_0x484dd1}):this['_itemLabels']['set'](_0x1ad3d3,_0xed1c56);}['registerAttributeLabel'](_0x4f98a1,_0x36197d){this['_attributeLabels']['set'](_0x4f98a1,_0x36197d);}['getItemLabel'](_0x216319,_0x2402af=0x1){let _0x34be2b;for(const _0x305383 of this['_itemLabelsCallbacks'])if(_0x305383['matchingCallback'](_0x216319)){_0x34be2b=_0x305383['label'];break;}return _0x34be2b||(_0x34be2b=this['_itemLabels']['get'](_0x216319['name'])),_0x34be2b?_0x34be2b(_0x2402af):0x1!==_0x2402af?_0x2402af+'\x20'+_0x216319['name']+'s':''+_0x216319['name'];}['_addDescriptionItems'](_0x293d42,_0x5f3c05){const _0x45e7b2=_0x5f3c05['getFirstRange']()['getWalker'](),_0x5eb10a='insertion'==_0x5f3c05['type']?'add':'remove';for(const _0x355318 of _0x45e7b2){const _0x37b150=_0x355318['item'],_0xb62ed7=_0x293d42[_0x293d42['length']-0x1];if(_0x37b150['is']('$textProxy'))_0xb62ed7&&_0xb62ed7['type']['indexOf']('Container')>-0x1&&_0x293d42['pop'](),_0xb62ed7&&'text'==_0xb62ed7['type']?_0xb62ed7[_0x5eb10a]+=_0x37b150['data']:_0x293d42['push']({'type':'text','add':'add'==_0x5eb10a?_0x37b150['data']:'','remove':'remove'==_0x5eb10a?_0x37b150['data']:''});else{if(this['_schema']['isObject'](_0x37b150)){const _0x18edeb=_0x37b150;if(_0xb62ed7&&_0xb62ed7['type']['indexOf']('Container')>-0x1&&_0x293d42['pop'](),'elementEnd'==_0x355318['type'])continue;_0xb62ed7&&_0xb62ed7['type']==_0x5eb10a+'Object'&&_0xb62ed7['element']['name']==_0x18edeb['name']?_0xb62ed7['quantity']++:_0x293d42['push']({'type':_0x5eb10a+'Object','element':_0x18edeb,'quantity':0x1}),_0x45e7b2['skip'](_0xfe9d36=>!('elementEnd'==_0xfe9d36['type']&&_0xfe9d36['item']==_0x37b150));}else{if(this['_schema']['checkChild'](_0x37b150,'$text')||_0x37b150['is']('element','softBreak')){const _0xf13ec5=_0x37b150;if('add'==_0x5eb10a&&'elementStart'==_0x355318['type']||'remove'==_0x5eb10a&&'elementEnd'==_0x355318['type'])continue;if(_0xb62ed7&&-0x1==_0xb62ed7['type']['indexOf']('Container')){'text'==_0xb62ed7['type']&&(_0xb62ed7[_0x5eb10a]+='\x0a');continue;}let _0x4f2c9f;if(_0x4f2c9f='add'==_0x5eb10a?_0xf13ec5['nextSibling']&&!this['_schema']['isObject'](_0xf13ec5['nextSibling'])?_0xf13ec5['nextSibling']:null:_0xf13ec5['previousSibling']&&!this['_schema']['isObject'](_0xf13ec5['previousSibling'])?_0xf13ec5['previousSibling']:null,_0xf13ec5['isEmpty']||_0x4f2c9f&&_0x4f2c9f['isEmpty']){const _0x1d91ed=_0x4f2c9f&&_0x4f2c9f['isEmpty']?_0x4f2c9f:_0xf13ec5;_0xb62ed7&&_0xb62ed7['type']==_0x5eb10a+'EmptyContainer'&&_0xb62ed7['element']['name']==_0x1d91ed['name']?_0xb62ed7['quantity']++:_0x293d42['push']({'type':_0x5eb10a+'EmptyContainer','element':_0x1d91ed,'quantity':0x1});}else _0x293d42['push']({'type':_0x5eb10a+'Container','element':_0xf13ec5});}}}}}['_resolveDescriptionItems'](_0x49bbd6){const _0x2fcffe=this['_locale'],_0x45555c=[],_0x15b974=[],_0x46d989=[];for(const _0x44432f of _0x49bbd6)switch(_0x44432f['type']){case'text':if(_0x44432f['add']=_0x44432f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x44432f['remove']=_0x44432f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x44432f['add']&&''!=_0x44432f['remove']){_0x45555c['push']({'type':'replace','content':o(_0x2fcffe,'REPLACE_TEXT',['\x22'+_0x44432f['remove']+'\x22','\x22'+_0x44432f['add']+'\x22'])});continue;}if(null!=_0x44432f['add']['match'](/^ +$/)){_0x45555c['push']({'type':'insertion','content':o(_0x2fcffe,'*Insert:*\x20%0',o(_0x2fcffe,'ELEMENT_SPACE',_0x44432f['add']['length']))});continue;}if(null!=_0x44432f['remove']['match'](/^ +$/)){_0x45555c['push']({'type':'deletion','content':o(_0x2fcffe,'*Remove:*\x20%0',o(_0x2fcffe,'ELEMENT_SPACE',_0x44432f['remove']['length']))});continue;}if(''!=_0x44432f['add']){_0x45555c['push']({'type':'insertion','content':o(_0x2fcffe,'*Insert:*\x20%0','\x22'+_0x44432f['add']+'\x22')});continue;}_0x45555c['push']({'type':'deletion','content':o(_0x2fcffe,'*Remove:*\x20%0','\x22'+_0x44432f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x45555c['push']({'type':'insertion','content':o(_0x2fcffe,'*Insert:*\x20%0',this['getItemLabel'](_0x44432f['element'],_0x44432f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x45555c['push']({'type':'deletion','content':o(_0x2fcffe,'*Remove:*\x20%0',this['getItemLabel'](_0x44432f['element'],_0x44432f['quantity']))});continue;case'addContainer':_0x45555c['push']({'type':'insertion','content':o(_0x2fcffe,'*Split:*\x20%0',this['getItemLabel'](_0x44432f['element'],_0x44432f['quantity']))});continue;case'removeContainer':_0x45555c['push']({'type':'deletion','content':o(_0x2fcffe,'*Merge:*\x20%0',this['getItemLabel'](_0x44432f['element'],_0x44432f['quantity']))});continue;case'addFormat':_0x15b974['push'](_0x44432f['key']);continue;case'removeFormat':_0x46d989['push'](_0x44432f['key']);continue;default:_0x45555c['push'](_0x44432f);}if(_0x15b974['length']){const _0x324de7=_0x15b974['map'](_0x19b059=>this['_attributeLabels']['has'](_0x19b059)?this['_attributeLabels']['get'](_0x19b059):_0x19b059)['join'](',\x20');_0x45555c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x324de7)});}if(_0x46d989['length']){const _0x3ca9e6=_0x46d989['map'](_0x1e4649=>this['_attributeLabels']['has'](_0x1e4649)?this['_attributeLabels']['get'](_0x1e4649):_0x1e4649)['join'](',\x20');_0x45555c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3ca9e6)});}return _0x45555c;}['_handleCustomCallbackDescription'](_0x7e7886){for(const _0x4ad1e6 of this['_customCallbacks']){const _0x3bb6ea=_0x4ad1e6(_0x7e7886);if(_0x3bb6ea&&'type'in _0x3bb6ea)return _0x3bb6ea;}}['_handleAttributeSuggestionDescription'](_0x2a9821,_0x326295){const _0x4598e2=_0x326295['data'],_0x5ce2ad=void 0x0===_0x4598e2['newValue']?'removeFormat':'addFormat';_0x2a9821['push']({'type':_0x5ce2ad,'key':_0x4598e2['key']});}['_handleRenameSuggestionDescription'](_0x5b7932,_0x4ac714){_0x5b7932['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4ac714['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1b9135,_0x3ec8f9,_0x516e12){if(this['_addDescriptionItems'](_0x1b9135,_0x3ec8f9),_0x516e12&&_0x516e12['getFirstRange']()&&!_0x3ec8f9['getFirstRange']()['end']['isEqual'](_0x516e12['getFirstRange']()['start'])){const _0x541cfe=_0x1b9135[_0x1b9135['length']-0x1],_0x36ac0c='insertion'==_0x3ec8f9['type']?'add':'remove';_0x541cfe&&'text'==_0x541cfe['type']&&(_0x541cfe[_0x36ac0c]+='\x0a');}}}class E extends _0x4a3ee7{['afterInit'](){const _0x253758=this['editor'],_0x4c5bd0=_0x253758['plugins']['get']('TrackChangesEditing');_0x253758['commands']['get']('showAIAssistant')&&_0x4c5bd0['enableCommand']('showAIAssistant');}}class V extends _0x4a3ee7{['afterInit'](){const _0x31150b=this['editor'],_0x21cbd2=_0x31150b['locale'];if(!_0x31150b['plugins']['has']('AlignmentEditing'))return;const _0x1a7975=_0x31150b['plugins']['get']('TrackChangesEditing');_0x1a7975['enableDefaultAttributesIntegration']('alignment'),_0x1a7975['registerBlockAttribute']('alignment'),_0x1a7975['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x21cbd2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fe4f0=this['editor'],_0x5e3744=_0x1fe4f0['locale'];_0x1fe4f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x398b72=>{if('formatBlock'!=_0x398b72['type'])return;const {data:_0x3eb492}=_0x398b72;if(_0x3eb492&&'alignment'==_0x3eb492['commandName']){const _0x43d269=_0x3eb492['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5e3744,'*Format:*\x20%0',function(_0x2901cc){switch(_0x2901cc){case'left':return o(_0x5e3744,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5e3744,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5e3744,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5e3744,'FORMAT_JUSTIFY_TEXT');}}(_0x43d269))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4a3ee7{['afterInit'](){const _0x2c995e=this['editor'],_0x5ebfa0=_0x2c995e['plugins']['get']('TrackChangesEditing'),_0x3face5=_0x2c995e['locale'];for(const _0x41c768 of ti){if(!_0x2c995e['plugins']['has'](_0x41c768))continue;const _0x37b954=_0x41c768['slice'](0x0,-0x7)['toLowerCase'](),_0x379486='FORMAT_'+_0x37b954['toUpperCase']();_0x5ebfa0['enableDefaultAttributesIntegration'](_0x37b954),_0x5ebfa0['registerInlineAttribute'](_0x37b954),_0x5ebfa0['descriptionFactory']['registerAttributeLabel'](_0x37b954,o(_0x3face5,_0x379486));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x329ace=this['editor'],_0x5c1355=_0x329ace['locale'],_0x53f5c8=_0x329ace['plugins']['get']('TrackChangesEditing');function _0x30fc8d(_0x5bb702,_0x2aac69){_0x53f5c8['descriptionFactory']['registerDescriptionCallback'](_0x548abf=>{if('formatInline'!=_0x548abf['type'])return;const {data:_0x1365d5}=_0x548abf;return _0x1365d5&&_0x1365d5['commandName']===_0x5bb702?_0x1365d5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c1355,'*Format:*\x20%0',_0x2aac69)}:{'type':'format','content':o(_0x5c1355,'*Remove\x20format:*\x20%0',_0x2aac69)}:void 0x0;});}_0x30fc8d('bold',o(_0x5c1355,'FORMAT_BOLD')),_0x30fc8d('italic',o(_0x5c1355,'FORMAT_ITALIC')),_0x30fc8d('underline',o(_0x5c1355,'FORMAT_UNDERLINE')),_0x30fc8d('code',o(_0x5c1355,'FORMAT_CODE')),_0x30fc8d('strikethrough',o(_0x5c1355,'FORMAT_STRIKETHROUGH')),_0x30fc8d('subscript',o(_0x5c1355,'FORMAT_SUBSCRIPT')),_0x30fc8d('superscript',o(_0x5c1355,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4a3ee7{['afterInit'](){const _0x8043d3=this['editor'],_0x2d7dc2=_0x8043d3['locale'];if(!_0x8043d3['plugins']['has']('BlockQuoteEditing'))return;const _0x8e24c0=_0x8043d3['plugins']['get']('TrackChangesEditing'),_0x529bf3=this['editor']['commands']['get']('blockQuote');_0x8e24c0['enableCommand']('blockQuote',(_0x103a7c,_0x13c81e={})=>{const _0x5f2481=this['editor']['model']['document']['selection'],_0x298f1f=_0x13c81e&&void 0x0!==_0x13c81e['forceValue']?_0x13c81e['forceValue']:!_0x529bf3['value'];let _0x2e5380=[];if(_0x298f1f){const _0x5b8eaf=Array['from'](_0x5f2481['getSelectedBlocks']())['filter'](_0x1bfb78=>oo(_0x1bfb78)||function(_0x2951b3,_0x39317d){const _0x5612f2=_0x39317d['checkChild'](_0x2951b3['parent'],'blockQuote'),_0x528abb=_0x39317d['checkChild'](['$root','blockQuote'],_0x2951b3);return _0x5612f2&&_0x528abb;}(_0x1bfb78,this['editor']['model']['schema']));_0x2e5380=to(_0x5b8eaf,_0x8043d3['model']);}else{const _0x52e892=Array['from'](_0x5f2481['getSelectedBlocks']())['filter'](_0x105d7e=>oo(_0x105d7e));_0x2e5380=to(_0x52e892,_0x8043d3['model']);}_0x8043d3['model']['change'](()=>{for(const _0xa7fd29 of _0x2e5380)_0x8e24c0['markBlockFormat'](_0xa7fd29,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x298f1f}]});});}),_0x8e24c0['descriptionFactory']['registerDescriptionCallback'](_0x12e2c3=>{const {data:_0x1ec21a}=_0x12e2c3;if(_0x1ec21a&&'blockQuote'==_0x1ec21a['commandName']){const _0x3d495a=o(_0x2d7dc2,'ELEMENT_BLOCK_QUOTE');return _0x1ec21a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d7dc2,'*Set\x20format:*\x20%0',_0x3d495a)}:{'type':'format','content':o(_0x2d7dc2,'*Remove\x20format:*\x20%0',_0x3d495a)};}});}}function oo(_0xe3874f){return'blockQuote'==_0xe3874f['parent']['name'];}class G extends _0x4a3ee7{['afterInit'](){const _0x19fae8=this['editor'];_0x19fae8['plugins']['has']('CaseChange')&&(_0x19fae8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19fae8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19fae8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4a3ee7{['afterInit'](){const _0x528586=this['editor'];_0x528586['commands']['get']('ckbox')&&_0x528586['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4a3ee7{['afterInit'](){const _0x17b5e1=this['editor'];if(!_0x17b5e1['plugins']['has']('CodeBlock'))return;const _0xdc4af7=_0x17b5e1['plugins']['get']('TrackChangesEditing'),_0x4cfba9=_0x17b5e1['locale'],_0x27f871=_0x17b5e1['config']['get']('codeBlock')['languages'],_0x3c2593=_0x17b5e1['commands']['get']('codeBlock');_0xdc4af7['enableCommand']('indentCodeBlock'),_0xdc4af7['enableCommand']('outdentCodeBlock'),_0xdc4af7['enableCommand']('codeBlock',(_0x15eb15,_0x33af64={})=>{const _0x5c3129=_0x17b5e1['model'],_0x125489=_0x17b5e1['model']['document']['selection'],_0x504505=_0x33af64&&void 0x0!==_0x33af64['forceValue']?_0x33af64['forceValue']:!_0x3c2593['value'];let _0x6eed65;_0x33af64['language']||(_0x33af64['language']=_0x27f871[0x0]['language']),_0x6eed65=_0x504505?Array['from'](_0x125489['getSelectedBlocks']())['filter'](_0x433639=>eo(_0x433639)||function(_0x6523a6,_0x35fdd1){if(_0x6523a6['is']('rootElement')||_0x35fdd1['isLimit'](_0x6523a6))return!0x1;return _0x35fdd1['checkChild'](_0x6523a6['parent'],'codeBlock');}(_0x433639,_0x5c3129['schema'])):Array['from'](_0x125489['getSelectedBlocks']())['filter'](_0xefc221=>eo(_0xefc221));const _0x143e73=to(_0x6eed65,_0x5c3129);_0x5c3129['change'](()=>{for(const _0xd9cf59 of _0x143e73)_0xdc4af7['markBlockFormat'](_0xd9cf59,{'commandName':'codeBlock','commandParams':[{..._0x33af64,'forceValue':_0x504505}],'formatGroupId':'blockName'});});}),(_0xdc4af7['descriptionFactory']['registerElementLabel']('codeBlock',_0xecfd62=>o(_0x4cfba9,'ELEMENT_CODE_BLOCK',_0xecfd62)),_0xdc4af7['descriptionFactory']['registerDescriptionCallback'](_0x697e09=>{if('formatBlock'!=_0x697e09['type'])return;const _0x59b504=_0x4cfba9['t'],{data:_0x251dd5}=_0x697e09;if(!_0x251dd5||'codeBlock'!=_0x251dd5['commandName'])return;const _0x39a7ca=_0x251dd5['commandParams'][0x0]['language'],_0x5ef46f=_0x59b504(_0x27f871['find'](_0x2c9a3f=>_0x2c9a3f['language']===_0x39a7ca)['label'])['toLowerCase']();return _0x251dd5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cfba9,'*Set\x20format:*\x20%0',o(_0x4cfba9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ef46f+')')}:{'type':'format','content':o(_0x4cfba9,'*Remove\x20format:*\x20%0',o(_0x4cfba9,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x43d168){return'codeBlock'==_0x43d168['name'];}class H extends _0x4a3ee7{['afterInit'](){const _0x59c592=this['editor'];if(!_0x59c592['plugins']['has']('CommentsEditing'))return;_0x59c592['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2f4b1b,_0x494abf,_0x2fe4c7){const _0x34fc65=[];for(const _0x3244fe of _0x494abf['getItems']())_0x3244fe['hasAttribute'](_0x2f4b1b)&&_0x34fc65['push'](_0x2fe4c7['createRangeOn'](_0x3244fe));return _0x34fc65;}function _e(_0x3d969c,_0x1e7d9e,{showActiveMarker:_0x41dc97=!0x0}={}){const _0x483b72=_0x3d969c['plugins']['get']('TrackChangesEditing');return(_0x450cb9,_0x3d375f,_0x30d263)=>{if(!_0x30d263['consumable']['test'](_0x3d375f['markerRange'],_0x450cb9['name']))return;const _0x467916=_0x3d375f['markerRange']['getWalker'](),_0x59511f=_0x3d375f['markerRange']['start'],_0x1f59fa=_0x3d969c['model']['schema'];let _0x2e3b3a=null,_0x27dc56=null,_0x4a93c0=!0x1,_0x32b081=!0x1;for(const _0x3dbba8 of _0x467916){const _0x516aa2=_0x3dbba8['item'];_0x4a93c0=_0x4a93c0||_0x1f59fa['isContent'](_0x516aa2);const _0x1234e1=_0x30d263['mapper']['toViewElement'](_0x516aa2);if(_0x1234e1&&_0x1234e1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3dbba8['type']&&(_0x1f59fa['isBlock'](_0x516aa2)&&!_0x1f59fa['isLimit'](_0x516aa2)&&(_0x516aa2['nextSibling']||_0x59511f['isAtEnd']?_0x2e3b3a&&_0x2e3b3a['parent']==_0x516aa2||(_0x2e3b3a=_0x516aa2,_0x1fdcf8(_0x3dbba8['previousPosition']),_0x32b081=!0x0):_0x27dc56=_0x27dc56||_0x3dbba8['previousPosition']));}function _0x1fdcf8(_0x9b60bf){const _0x377d06=_0x30d263['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1e7d9e}),_0x3cfb11=_0x30d263['mapper']['toViewPosition'](_0x9b60bf);_0x41dc97&&_0x483b72['activeMarkers']['includes'](_0x3d375f['markerName'])&&_0x30d263['writer']['addClass']('ck-suggestion-marker--active',_0x377d06),_0x30d263['writer']['insert'](_0x3cfb11,_0x377d06),_0x30d263['mapper']['bindElementToMarker'](_0x377d06,_0x3d375f['markerName']);}_0x4a93c0||_0x32b081||!_0x27dc56||_0x1fdcf8(_0x27dc56);};}class q extends _0x4a3ee7{static get['requires'](){return[_0x3327cd];}['init'](){const _0x4a4370=this['editor'],_0x14fee9=_0x4a4370['plugins']['get']('TrackChangesEditing');_0x14fee9['enableCommand']('delete');const _0x20be5d=_0x4a4370['commands']['get']('deleteForward');_0x14fee9['enableCommand']('deleteForward',(_0x31f515,_0x562f8d={})=>{const _0x1908aa=_0x4a4370['model']['createSelection'](_0x4a4370['model']['document']['selection']);_0x1908aa['isCollapsed']&&_0x4a4370['model']['modifySelection'](_0x1908aa,{'direction':'forward','unit':_0x562f8d['unit']});const _0x4d6262=_0x1908aa['getFirstRange'](),_0x356de6=_0x1861aa['fromRange'](_0x4d6262);let _0x177d04;_0x31f515(_0x562f8d),_0x177d04='$graveyard'==_0x356de6['root']['rootName']?_0x4a4370['model']['createRange'](_0x4d6262['start']):_0x4a4370['model']['createRange'](_0x356de6['start'],_0x356de6['end']),_0x356de6['detach'](),_0x4a4370['model']['enqueueChange'](_0x20be5d['buffer']['batch'],_0x4f1fad=>{_0x20be5d['buffer']['lock'](),_0x4f1fad['setSelection'](_0x4f1fad['createRange'](_0x177d04['end'])),_0x20be5d['buffer']['unlock']();});}),_0x4a4370['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4a4370,'merge'),{'priority':'high'}),_0x4a4370['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1a6821,_0x37230f,_0x5299bf)=>{_0x5299bf['options']['showSuggestionHighlights']&&_e(_0x4a4370,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1a6821,_0x37230f,_0x5299bf);},{'priority':'high'}),_0x4a4370['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x974d64,_0x329847,_0x245d0d)=>{const _0x4bbada=_0x245d0d['mapper']['markerNameToElements'](_0x329847['markerName']);if(_0x4bbada){for(const _0x623b90 of _0x4bbada)_0x623b90['is']('uiElement')&&(_0x245d0d['mapper']['unbindElementFromMarkerName'](_0x623b90,_0x329847['markerName']),_0x245d0d['writer']['remove'](_0x623b90));}},{'priority':'high'});}}class z extends _0x4a3ee7{['afterInit'](){const _0x133b94=this['editor'];if(!_0x133b94['plugins']['has']('ListEditing'))return;const _0x253ea5=_0x133b94['locale'],_0x2daed1=_0x133b94['plugins']['get']('TrackChangesEditing'),_0x26f0ab=_0x133b94['plugins']['has']('TodoListEditing'),_0x2faf9e=!!_0x133b94['config']['get']('list.multiBlock');function _0x5b31a0(_0x5d3f13){return{'type':'format','content':''+o(_0x253ea5,'*Set\x20format:*\x20%0',_0x5d3f13)};}function _0x3a43a6(_0x5782ca){return{'type':'format','content':''+o(_0x253ea5,'*Remove\x20format:*\x20%0',_0x5782ca)};}_0x2daed1['enableDefaultAttributesIntegration']('numberedList'),_0x2daed1['enableDefaultAttributesIntegration']('bulletedList'),_0x2daed1['enableDefaultAttributesIntegration']('customNumberedList'),_0x2daed1['enableDefaultAttributesIntegration']('customBulletedList'),_0x2daed1['enableDefaultAttributesIntegration']('indentList'),_0x2daed1['enableDefaultAttributesIntegration']('outdentList'),_0x2daed1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2daed1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2daed1['registerBlockAttribute']('listItemId'),_0x2daed1['registerBlockAttribute']('listType'),_0x2daed1['registerBlockAttribute']('listIndent'),_0x2faf9e&&(_0x2daed1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2daed1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x26f0ab&&(_0x2daed1['enableDefaultAttributesIntegration']('todoList'),_0x2daed1['enableDefaultAttributesIntegration']('checkTodoList'),_0x2daed1['registerBlockAttribute']('todoListChecked'),_0x2daed1['descriptionFactory']['registerDescriptionCallback'](_0x353973=>{const {data:_0x336dbf}=_0x353973;if(_0x336dbf&&'todoListChecked'==_0x336dbf['key'])return{'type':'format','content':_0x336dbf['newValue']?o(_0x253ea5,'*Check\x20item*'):o(_0x253ea5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1b1e5a=>{if(_0x1b1e5a['batch']['isUndo'])return!0x1;let _0x55abd5=!0x1;const _0x22ca15=_0x2daed1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15e6b4=>'todoListChecked'===_0x2daed1['_getAttributeKey'](_0x15e6b4));for(const _0x42c052 of _0x22ca15){'todo'!=_0x42c052['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2daed1['_findSuggestions'](_0x42c052['getFirstRange'](),'attribute')['find'](_0x46555f=>'listType'===_0x2daed1['_getAttributeKey'](_0x46555f['suggestion']))||(_0x1b1e5a['removeMarker'](_0x42c052['getFirstMarker']()),_0x55abd5=!0x0));}return _0x55abd5;})),_0x2daed1['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x253ea5,'FORMAT_INDENT'));const _0x14a884={'type':'format','content':''};_0x2daed1['descriptionFactory']['registerDescriptionCallback'](_0x7f197f=>{const {data:_0x401070}=_0x7f197f;if(!_0x401070||'listType'!=_0x401070['key'])return;let _0x793363=_0x7f197f['head'];for(;_0x793363;){if(_0x793363['data']&&(('listStyle'==_0x793363['data']['key']||'listMarkerStyle'==_0x793363['data']['key'])&&(_0x793363['data']['newValue']&&'default'!=_0x793363['data']['newValue']||'default'!=_0x793363['data']['oldValue']&&!_0x401070['newValue'])||!_0x2faf9e&&_0x793363['data']['key']==m))return _0x14a884;_0x793363=_0x793363['next'];}if(null==_0x401070['newValue'])switch(_0x401070['oldValue']){case'bulleted':return _0x3a43a6(o(_0x253ea5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a43a6(o(_0x253ea5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a43a6(o(_0x253ea5,'ELEMENT_TODO_LIST'));}switch(_0x401070['newValue']){case'bulleted':return _0x5b31a0(o(_0x253ea5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b31a0(o(_0x253ea5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b31a0(o(_0x253ea5,'ELEMENT_TODO_LIST'));}}),_0x2daed1['descriptionFactory']['registerDescriptionCallback'](_0x252795=>{const {data:_0x27ca2e}=_0x252795;if(_0x27ca2e&&'listIndent'==_0x27ca2e['key'])return null==_0x27ca2e['newValue']||null==_0x27ca2e['oldValue']&&0x0==_0x27ca2e['newValue']?_0x14a884:void 0x0;}),_0x2daed1['descriptionFactory']['registerDescriptionCallback'](_0x54d78b=>{if('attribute'!=_0x54d78b['type'])return;const {data:_0x333011}=_0x54d78b;if(!_0x333011||'listItemId'!=_0x333011['key'])return;const _0x4e39d0=le(_0x54d78b);return'newValue'==_0x4e39d0?{'type':'format','content':o(_0x253ea5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4e39d0?{'type':'format','content':o(_0x253ea5,'*Split:*\x20list\x20item')}:_0x14a884;}),_0x133b94['model']['document']['registerPostFixer'](_0x221f28=>this['listItemIdFixer'](_0x221f28)),_0x133b94['model']['document']['registerPostFixer'](_0x2bd4e4=>this['noTrackChangesFixer'](_0x2bd4e4)),_0x133b94['model']['document']['registerPostFixer'](_0x4dd25a=>this['assureChains'](_0x4dd25a)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x35524e){if(_0x35524e['batch']['isUndo']||!_0x35524e['batch']['isLocal'])return!0x1;let _0x163250=!0x1;const _0x216007=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3cbb5f=>_0x3cbb5f['data']&&'listItemId'==_0x3cbb5f['data']['key'])['filter'](_0x1e77d6=>_0x1e77d6['data']['newValue']&&_0x1e77d6['data']['oldValue']);for(const _0x5c0f60 of _0x216007)le(_0x5c0f60)||(_0x35524e['removeMarker'](_0x5c0f60['getFirstMarker']()),_0x163250=!0x0);return _0x163250;}['noTrackChangesFixer'](_0x37467d){if(_0x37467d['batch']['isUndo']||!_0x37467d['batch']['isLocal'])return!0x1;const _0xddb197=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xddb197['trackChangesCommand']['value'])return!0x1;let _0x8beb59=!0x1;const _0x382473=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x409baf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1cc701=>'attribute'==_0x1cc701['type'])['filter'](_0x2cbb89=>_0x382473['includes'](_0x2cbb89['attributeKey']));if(0x0==_0x409baf['length'])return _0x8beb59;for(const _0x53f64e of _0x409baf){const _0x530815=_0xddb197['_findSuggestions'](_0x53f64e['range'],'attribute')['filter'](_0x597391=>!_0x597391['meta']['isNextTo'])['map'](_0x89a914=>_0x89a914['suggestion'])['filter'](_0x478b35=>{const _0x4153c8=_0xddb197['_getAttributeKey'](_0x478b35);return _0x382473['includes'](_0x4153c8);});if(_0x530815['length']){for(const _0x11f145 of _0x530815)_0x37467d['removeMarker'](_0x11f145['getFirstMarker']());_0x8beb59=!0x0;}}return _0x8beb59;}['assureChains'](_0x311087){if(_0x311087['batch']['isUndo']||!_0x311087['batch']['isLocal'])return!0x1;const _0x5bdc30=this['editor']['plugins']['get']('TrackChangesEditing');let _0x487534=!0x1;const _0xff53bd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x10880e of _0x5bdc30['getSuggestions']({'skipNotAttached':!0x0})){const _0x209505=_0x5bdc30['_findSuggestions'](_0x10880e['getFirstRange'](),'attribute')['map'](_0x55e4df=>_0x55e4df['suggestion'])['filter'](_0xc540d3=>_0xc540d3['data']&&_0xff53bd['includes'](_0xc540d3['data']['key']));if(!_0x209505['length'])continue;const _0x2ccad8=_0x209505[0x0]['head']['attributes']['groupId'];if(!_0x209505['every'](_0x5617db=>_0x5617db['attributes']['groupId']===_0x2ccad8)){for(const _0x891d83 of _0x209505)_0x560289(_0x891d83,_0x2ccad8)&&(_0x487534=!0x0);}}return _0x487534;function _0x139a96(_0x5e9cad,_0x808b0d){for(const _0x1c169d of _0x5bdc30['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f0d30=>'attribute'==_0x1f0d30['type']&&_0x1f0d30['attributes']['groupId']==_0x5e9cad))_0x1c169d['setAttribute']('groupId',_0x808b0d);}function _0x560289(_0x5000a5,_0x27a2ea){let _0x378bd4=_0x5000a5['head'],_0x54e8b0=!0x1;for(;_0x378bd4;)_0x378bd4['attributes']['groupId']!=_0x27a2ea&&(_0x139a96(_0x378bd4['attributes']['groupId'],_0x27a2ea),_0x378bd4['setAttribute']('groupId',_0x27a2ea),_0x54e8b0=!0x0),_0x378bd4=_0x378bd4['next'];return _0x54e8b0;}}['_supportLegacySuggestions'](){const _0x3dec47=this['editor'],_0x163e8f=_0x3dec47['locale'],_0x4faf33=_0x3dec47['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4faf33['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5261f8,_0x52f8f6){const _0x416ae6=[];for(let _0x22e09f of _0x5261f8)_0x22e09f['start']['nodeAfter']===_0x22e09f['end']['parent']&&(_0x22e09f=_0x3dec47['model']['createRange'](_0x3dec47['model']['createPositionAt'](_0x22e09f['start']['nodeAfter'],0x0))),_0x416ae6['push'](_0x22e09f);_0x3dec47['model']['change'](_0x48db5c=>{const _0x387677=_0x3dec47['model']['document']['selection'],_0x1d87b6=Array['from'](_0x387677['getRanges']())['map'](_0x238dd0=>_0x1861aa['fromRange'](_0x238dd0));_0x48db5c['setSelection'](_0x416ae6),_0x3dec47['commands']['get'](_0x52f8f6['commandName'])['refresh'](),_0x52f8f6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3dec47['execute'](_0x52f8f6['commandName'],..._0x52f8f6['commandParams']),_0x48db5c['setSelection'](_0x1d87b6);for(const _0x18d0d5 of _0x1d87b6)_0x18d0d5['detach']();});}),_0x4faf33['descriptionFactory']['registerElementLabel'](function(_0x38c24b){const _0x5cf684=!_0x3dec47['model']['schema']['isObject'](_0x38c24b),_0x457bc6=_0x38c24b['previousSibling'],_0x42ad8b=_0x38c24b['nextSibling'],_0x5059f7=_0x38c24b['getAttribute']('listItemId'),_0x561898=!_0x457bc6||_0x457bc6['getAttribute']('listItemId')!==_0x5059f7,_0x4d2811=!_0x42ad8b||_0x42ad8b['getAttribute']('listItemId')!==_0x5059f7;return _0x5cf684&&Boolean(_0x5059f7)&&_0x561898&&_0x4d2811;},_0x5b7395=>o(_0x163e8f,'ELEMENT_LIST_ITEM',_0x5b7395));}['_registerLegacyDescription'](){const _0x10ef2b=this['editor'],_0x51d93f=_0x10ef2b['locale'];function _0x47e88d(_0x209880){const _0x3f77f2=_0x10ef2b['commands']['get']('bulletedList')['value'],_0x30ee95=_0x10ef2b['commands']['get']('numberedList')['value'];return'numberedList'===_0x209880?_0x3f77f2:_0x30ee95;}_0x10ef2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x13cbcd){if('formatBlock'!=_0x13cbcd['type'])return;const {data:_0x3b7658}=_0x13cbcd;if(!_0x3b7658)return;let _0x4720aa,_0x6ce3b7,_0x187f12,_0x409a5a;switch(_0x3b7658['commandName']){case'bulletedList':_0x187f12=_0x3b7658['commandParams'][0x0]['forceValue'],_0x409a5a=_0x47e88d(_0x3b7658['commandName']),_0x4720aa=_0x187f12?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x409a5a&&_0x10ef2b['config']['get']('list.multiBlock')||(_0x4720aa='*Change\x20to:*\x20%0'),_0x6ce3b7={'type':'format','content':o(_0x51d93f,_0x4720aa,o(_0x51d93f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x187f12=_0x3b7658['commandParams'][0x0]['forceValue'],_0x409a5a=_0x47e88d(_0x3b7658['commandName']),_0x4720aa=_0x187f12?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x409a5a&&_0x10ef2b['config']['get']('list.multiBlock')||(_0x4720aa='*Change\x20to:*\x20%0'),_0x6ce3b7={'type':'format','content':o(_0x51d93f,_0x4720aa,o(_0x51d93f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4720aa='*Indent:*\x20%0',_0x6ce3b7={'type':'format','content':o(_0x51d93f,_0x4720aa,o(_0x51d93f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4720aa=function(_0x5f1c03){const _0xf93d83=_0x5f1c03['getFirstRange']();let _0x45b185=_0xf93d83['start']['nodeAfter'];for(;_0x45b185&&_0xf93d83['containsItem'](_0x45b185);){if(_0x45b185['getAttribute']('listIndent')>0x0)return!0x1;_0x45b185=_0x45b185['nextSibling'];}return!0x0;}(_0x13cbcd)?o(_0x51d93f,'*Format:*\x20remove\x20from\x20%0',o(_0x51d93f,function(_0xcb6f9e){return'ELEMENT_'+_0xcb6f9e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x13cbcd))):o(_0x51d93f,'*Outdent:*\x20%0',o(_0x51d93f,'ELEMENT_LIST_ITEM')),_0x6ce3b7={'type':'format','content':_0x4720aa};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3b7658['multipleBlocks']&&(_0x4720aa='*Merge:*\x20%0',_0x6ce3b7={'type':'deletion','content':o(_0x51d93f,_0x4720aa,o(_0x51d93f,'ELEMENT_LIST_ITEM'))});}return _0x6ce3b7;});}}function le(_0x1b4c30){let _0x4e56ef=_0x1b4c30['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4e56ef;){const _0x49a1d3=_0x4e56ef['getAttribute']('listItemId');if(!_0x49a1d3)return!0x1;if(_0x49a1d3==_0x1b4c30['data']['newValue'])return'newValue';if(_0x49a1d3==_0x1b4c30['data']['oldValue'])return'oldValue';_0x4e56ef=_0x4e56ef['previousSibling'];}return!0x1;}class ue extends _0x4a3ee7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x299c82=this['editor']['config']['get']('list.properties'),_0x1ca8ab=this['editor']['plugins']['get']('TrackChangesEditing');_0x299c82['styles']&&(_0x1ca8ab['enableDefaultAttributesIntegration']('listStyle'),_0x1ca8ab['registerBlockAttribute']('listStyle')),_0x299c82['reversed']&&(_0x1ca8ab['enableDefaultAttributesIntegration']('listReversed'),_0x1ca8ab['registerBlockAttribute']('listReversed')),_0x299c82['startIndex']&&(_0x1ca8ab['enableDefaultAttributesIntegration']('listStart'),_0x1ca8ab['registerBlockAttribute']('listStart'));const _0x39ae34={'type':'format','content':''};_0x1ca8ab['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x33041d=this['editor']['locale'];_0x1ca8ab['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x33041d,'FORMAT_LIST_REVERSED')),_0x1ca8ab['descriptionFactory']['registerDescriptionCallback'](_0x4ce085=>{const {data:_0x518f7d}=_0x4ce085;if(_0x518f7d&&'listReversed'==_0x518f7d['key'])return null==_0x518f7d['newValue']||0x0==_0x518f7d['newValue']&&null==_0x518f7d['oldValue']?_0x39ae34:void 0x0;}),_0x1ca8ab['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x33041d,'FORMAT_LIST_START')),_0x1ca8ab['descriptionFactory']['registerDescriptionCallback'](_0x1160b5=>{const {data:_0x365cdb}=_0x1160b5;if(_0x365cdb&&'listStart'==_0x365cdb['key'])return null==_0x365cdb['newValue']||0x1==_0x365cdb['newValue']&&null==_0x365cdb['oldValue']?_0x39ae34:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xdbba22=>{if(_0xdbba22['batch']['isUndo'])return!0x1;let _0x1074fe=!0x1;const _0x980cf5=_0x1ca8ab['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ddc01=>{const _0x15196b=_0x1ca8ab['_getAttributeKey'](_0x5ddc01);return'listStart'==_0x15196b||'listReversed'==_0x15196b;});for(const _0x468f95 of _0x980cf5){const _0xec27f9=_0x468f95['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xec27f9||'customNumbered'==_0xec27f9)continue;_0x1ca8ab['_findSuggestions'](_0x468f95['getFirstRange'](),'attribute')['find'](_0x72e7da=>'listType'==_0x1ca8ab['_getAttributeKey'](_0x72e7da['suggestion']))||(_0xdbba22['removeMarker'](_0x468f95['getFirstMarker']()),_0x1074fe=!0x0);}return _0x1074fe;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3f33df){const _0x337baf=this['editor']['locale'],{data:_0x282708}=_0x3f33df,_0x53dfa2={'type':'format','content':''};if(!_0x282708||'listStyle'!=_0x282708['key'])return;if(!_0x282708['oldValue'])return'default'==_0x282708['newValue']?_0x53dfa2:{'type':'format','content':''+o(_0x337baf,'*Set\x20format:*\x20%0',o(_0x337baf,this['_getTranslationKeyForListStyle'](_0x282708['newValue'])))};if(!_0x282708['newValue']){if('default'==_0x282708['oldValue'])return _0x53dfa2;let _0x509500=_0x3f33df['head'];for(;_0x509500;){if(_0x509500['data']&&'listType'==_0x509500['data']['key']&&_0x509500['data']['newValue'])return _0x53dfa2;_0x509500=_0x509500['next'];}return{'type':'format','content':''+o(_0x337baf,'*Remove\x20format:*\x20%0',o(_0x337baf,this['_getTranslationKeyForListStyle'](_0x282708['oldValue'])))};}if('default'!=_0x282708['newValue'])return{'type':'format','content':''+o(_0x337baf,'*Set\x20format:*\x20%0',o(_0x337baf,this['_getTranslationKeyForListStyle'](_0x282708['newValue'])))};let _0x563757=_0x3f33df['head'];for(;_0x563757;){if(_0x563757['data']&&'listType'==_0x563757['data']['key']&&_0x563757['data']['newValue']&&_0x563757['data']['oldValue'])return _0x53dfa2;_0x563757=_0x563757['next'];}return{'type':'format','content':o(_0x337baf,'*Set\x20format:*\x20%0',o(_0x337baf,'ELEMENT_'+_0x3f33df['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x36b15d=this['editor'],_0x90c6a9=_0x36b15d['locale'];_0x36b15d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x322e91=>{if('formatBlock'!=_0x322e91['type'])return;const {data:_0x329ef7}=_0x322e91;if(!_0x329ef7)return;let _0x1db798,_0x479f7f;switch(_0x329ef7['commandName']){case'listStyle':_0x1db798='*Change\x20to:*\x20%0',_0x479f7f={'type':'format','content':o(_0x90c6a9,_0x1db798,o(_0x90c6a9,this['_getTranslationKeyForListStyle'](_0x329ef7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1db798=_0x329ef7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x479f7f={'type':'format','content':o(_0x90c6a9,_0x1db798)};break;case'listStart':_0x1db798='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x479f7f={'type':'format','content':o(_0x90c6a9,_0x1db798,_0x329ef7['commandParams'][0x0]['startIndex'])};}return _0x479f7f;});}['_getTranslationKeyForListStyle'](_0x178977){return'ELEMENT_'+function(_0x2c2e02){if(pe['includes'](_0x2c2e02))return'bulleted';if(ye['includes'](_0x2c2e02))return'numbered';return null;}(_0x178977)['toUpperCase']()+'_LIST_'+_0x178977['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4a3ee7{static get['requires'](){return[_0x3fe4a9];}['init'](){const _0x439814=this['editor'],_0x562183=_0x439814['plugins']['get']('TrackChangesEditing'),_0x180a20=_0x439814['commands']['get']('enter');_0x562183['enableCommand']('enter',()=>{_0x439814['model']['change'](_0x5d1791=>{const _0x59962a=_0x439814['model']['document']['selection'],_0x377b0d=_0x59962a['getFirstPosition'](),_0xf88d53=_0x1861aa['fromRange'](_0x59962a['getFirstRange']());if(_0x180a20['enterBlock'](_0x5d1791)){const _0x49e965=_0x439814['model']['createPositionAt'](_0x377b0d['parent']['nextSibling'],0x0),_0x44eeeb=_0x5d1791['createRange'](_0x377b0d,_0x49e965);_0x562183['markInsertion'](_0x44eeeb);}else _0x5d1791['setSelection'](_0x5d1791['createRange'](_0xf88d53['end']));_0xf88d53['detach'](),_0x180a20['fire']('afterExecute',{'writer':_0x5d1791});});}),_0x439814['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x439814,'split'),{'priority':'high'}),_0x439814['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4cadb8,_0x379b14,_0x4b90ef)=>{const _0x289bf2=_0x4b90ef['mapper']['markerNameToElements'](_0x379b14['markerName']);if(_0x289bf2){for(const _0x23e217 of _0x289bf2)_0x23e217['hasClass']('ck-suggestion-marker-split')&&(_0x4b90ef['mapper']['unbindElementFromMarkerName'](_0x23e217,_0x379b14['markerName']),_0x4b90ef['writer']['remove'](_0x23e217));}},{'priority':'high'}),_0x439814['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x9e7c2a,_0x4f3147,_0x5d8874)=>{_0x5d8874['options']['showSuggestionHighlights']&&_e(_0x439814,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x9e7c2a,_0x4f3147,_0x5d8874);},{'priority':'high'});}}class J extends _0x4a3ee7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2d3ecc=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d3ecc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2d3ecc['enableCommand']('findNext'),_0x2d3ecc['enableCommand']('findPrevious'),_0x2d3ecc['enableCommand']('replace'),_0x2d3ecc['enableCommand']('replaceAll');}['handleFindCommand'](_0x2abeec,_0x2a7da8,_0x5f2722={}){const _0x4c751e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2abeec(_0x496cfb=>{let _0xd293a1=('string'==typeof _0x2a7da8?_0x4c751e['findByTextCallback'](_0x2a7da8,_0x5f2722):_0x2a7da8)(_0x496cfb);Array['isArray'](_0xd293a1)&&(_0xd293a1={'results':_0xd293a1,'searchText':'string'==typeof _0x2a7da8?_0x2a7da8:''});const _0x28b0c5=_0xd293a1['results']['filter'](_0x4747c2=>!0x1===this['_isInDeletionRange'](_0x4747c2,_0x496cfb['item']));return{..._0xd293a1,'results':_0x28b0c5};},_0x5f2722);}['_isInDeletionRange'](_0x2485ec,_0x1e27ba){const _0x38c7e9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e27ba,_0x2485ec['start']),this['editor']['model']['createPositionAt'](_0x1e27ba,_0x2485ec['end']));for(const _0x1bb14b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38c7e9['getIntersection'](_0x1bb14b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x4a3ee7{['afterInit'](){const _0x3c00db=this['editor']['locale'],_0x3ff1f3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x42449b,commandName:_0x19d104}of ro)this['editor']['plugins']['has'](_0x42449b)&&(_0x3ff1f3['enableDefaultAttributesIntegration'](_0x19d104),_0x3ff1f3['registerInlineAttribute'](_0x19d104));_0x3ff1f3['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3c00db,'FORMAT_FONT_SIZE')),_0x3ff1f3['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3c00db,'FORMAT_FONT_FAMILY')),_0x3ff1f3['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3c00db,'FORMAT_FONT_COLOR')),_0x3ff1f3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3c00db,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x185667=this['editor'],_0x1133b1=_0x185667['locale'];_0x185667['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8ed4c7=>{const _0x5de73e=_0x1133b1['t'];if('formatInline'!=_0x8ed4c7['type'])return;const {data:_0x546a55}=_0x8ed4c7;if(null!=_0x546a55){if('fontSize'==_0x546a55['commandName']){const _0x5ea3cb=_0x546a55['commandParams'][0x0]['value'];if(_0x5ea3cb){const _0x391e66=_0x5de73e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2bc17d=>_0x2bc17d['model']==_0x5ea3cb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1133b1,'*Set\x20font\x20size:*\x20%0',_0x391e66)};}return{'type':'format','content':o(_0x1133b1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x546a55['commandName']){const _0x1d8de2=_0x546a55['commandParams'][0x0]['value'];return _0x1d8de2?{'type':'format','content':o(_0x1133b1,'*Set\x20font\x20family:*\x20%0',_0x1d8de2)}:{'type':'format','content':o(_0x1133b1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x546a55['commandName']){const _0x32ef8d=_0x546a55['commandParams'][0x0]['value'];if(_0x32ef8d){const _0x5c23a0=_0x28f5bb(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2e52be=>_0x2e52be['model']==_0x32ef8d);let _0x45e012=_0x32ef8d,_0x437303='';return _0x5c23a0&&(_0x45e012=_0x5c23a0['label'],_0x437303=_0x5de73e(_0x45e012)['toLowerCase']()),{'type':'format','content':o(_0x1133b1,'*Set\x20font\x20color:*\x20%0',_0x437303)['trim'](),'color':{'value':_0x32ef8d,'title':_0x437303||_0x45e012}};}return{'type':'format','content':o(_0x1133b1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x546a55['commandName']){const _0xd261fa=_0x546a55['commandParams'][0x0]['value'];if(_0xd261fa){const _0x408bce=_0x28f5bb(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x57724b=>_0x57724b['model']==_0xd261fa);let _0x4bb076=_0xd261fa,_0x4c07cf='';return _0x408bce&&(_0x4bb076=_0x408bce['label'],_0x4c07cf=_0x5de73e(_0x4bb076)['toLowerCase']()),{'type':'format','content':o(_0x1133b1,'*Set\x20font\x20background\x20color:*\x20%0',_0x4c07cf)['trim'](),'color':{'value':_0xd261fa,'title':_0x4c07cf||_0x4bb076}};}return{'type':'format','content':o(_0x1133b1,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4a3ee7{['afterInit'](){const _0x139920=this['editor'],_0x4ac2a2=_0x139920['plugins']['get']('TrackChangesEditing'),_0x1a8f88=_0x139920['commands']['get']('copyFormat'),_0x189bc0=_0x139920['commands']['get']('pasteFormat');_0x1a8f88&&_0x189bc0&&(_0x4ac2a2['enableDefaultAttributesIntegration']('pasteFormat'),_0x4ac2a2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x36f4c7=this['editor'],_0x47db76=_0x36f4c7['locale'];_0x36f4c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3afe17=>{if('formatBlock'!=_0x3afe17['type']&&'formatInline'!=_0x3afe17['type'])return;const {data:_0xa71b75}=_0x3afe17;if(_0xa71b75&&'pasteFormat'===_0xa71b75['commandName']){const _0xd22507=[],_0x4b387b=_0xa71b75['commandParams'][0x0];for(const [_0xfc7041,_0x499c43]of Object['entries'](_0x4b387b))_0xd22507['push'](so(_0x36f4c7,_0xfc7041,_0x499c43));return _0xd22507['length']?{'type':'format','content':o(_0x47db76,'*Set\x20format\x20to:*\x20%0',_0xd22507['join'](',\x20'))}:{'type':'format','content':o(_0x47db76,'*Remove\x20all\x20formatting*')};}});}}function so(_0x354728,_0x22e4c0,_0x1291b8){const _0x3a0bce=_0x354728['locale']['t'],_0x381dff=_0x22e4c0['split'](/(?=[A-Z])/)['join']('\x20'),_0xcbbcb3=_0x3a0bce(_0x381dff['charAt'](0x0)['toUpperCase']()+_0x381dff['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1291b8)return _0xcbbcb3;if('fontColor'===_0x22e4c0||'fontBackgroundColor'===_0x22e4c0){const _0x42b2cb=_0x28f5bb(_0x354728['config']['get']('fontColor.colors'))['find'](_0x3a36d0=>_0x3a36d0['model']==_0x1291b8);return _0xcbbcb3+'\x20('+(_0x42b2cb?_0x3a0bce(_0x42b2cb['label'])['toLowerCase']():_0x1291b8)+')';}if('fontSize'===_0x22e4c0&&isNaN(parseFloat(_0x1291b8))){const _0x3fb1bb=_0x354728['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x354728['config']['get']('fontSize.options'))['find'](_0xc57216=>_0xc57216['model']==_0x1291b8);return _0xcbbcb3+'\x20('+(_0x3fb1bb?_0x3a0bce(_0x3fb1bb['title'])['toLowerCase']():_0x1291b8)+')';}return _0xcbbcb3+'\x20('+_0x1291b8+')';}class Y extends _0x4a3ee7{['_headingOptions'];['afterInit'](){const _0x18ee23=this['editor'];if(!_0x18ee23['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x18ee23['config']['get']('heading.options');const _0x4ae3d6=_0x18ee23['locale'],_0x141e78=_0x18ee23['plugins']['get']('TrackChangesEditing');_0x141e78['enableDefaultAttributesIntegration']('heading');for(const _0x121620 of this['_headingOptions'])'paragraph'!=_0x121620['model']&&_0x141e78['descriptionFactory']['registerElementLabel'](_0x121620['model'],_0x59d1e6=>{const _0x114ac2=this['_getHeadingLevel'](_0x121620['model']);return null!==_0x114ac2?_0x1b5b4c(_0x59d1e6,_0x114ac2):_0x1de176(_0x59d1e6,_0x121620['title']);});function _0x1b5b4c(_0x2bdbfe,_0x5af9fe){return o(_0x4ae3d6,'ELEMENT_HEADING',[_0x2bdbfe,_0x5af9fe]);}function _0x1de176(_0x3f0dc2,_0x360ec4){return o(_0x4ae3d6,'ELEMENT_HEADING_CUSTOM',[_0x3f0dc2,_0x360ec4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10fd46=this['editor'],_0x46f527=_0x10fd46['locale'];function _0x5cb94f(_0x5b127e,_0x5dc44f){return o(_0x46f527,'ELEMENT_HEADING_CUSTOM',[_0x5b127e,_0x5dc44f]);}_0x10fd46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b8738=>{if('formatBlock'!=_0x3b8738['type'])return;const {data:_0x29307e}=_0x3b8738;if(_0x29307e&&'heading'==_0x29307e['commandName']){const _0x5b1be1=_0x29307e['commandParams'][0x0]['value'],_0x333950=this['_getHeadingLevel'](_0x5b1be1);if(null!==_0x333950)return{'type':'format','content':o(_0x46f527,'*Change\x20to:*\x20%0',(_0x14a3e2=0x1,_0x38ac1d=_0x333950,o(_0x46f527,'ELEMENT_HEADING',[_0x14a3e2,_0x38ac1d])))};const _0xcc8e3e=this['_headingOptions']['find'](_0x490251=>_0x490251['model']===_0x5b1be1)['title'];return{'type':'format','content':o(_0x46f527,'*Change\x20to:*\x20%0',_0x5cb94f(0x1,_0xcc8e3e))};}var _0x14a3e2,_0x38ac1d;});}['_getHeadingLevel'](_0x150b4c){const _0x199900=_0x150b4c['match'](/^heading(\d+)/);if(_0x199900)return _0x199900[0x1];const _0x243800=this['_headingOptions']?.['find'](_0x23c16d=>_0x23c16d['model']==_0x150b4c);if(_0x243800&&_0x243800['view']){const _0xe07e87=_0x243800['view'],_0x1fc83e=(_0xe07e87['name']??_0xe07e87)['match'](/^h(\d+)/);if(_0x1fc83e)return _0x1fc83e[0x1];}return null;}}class Z extends _0x4a3ee7{['afterInit'](){const _0x255d35=this['editor'];if(!_0x255d35['plugins']['has']('HighlightEditing'))return;const _0x157269=_0x255d35['plugins']['get']('TrackChangesEditing'),_0x29ec9a=_0x255d35['locale'];_0x157269['enableDefaultAttributesIntegration']('highlight'),_0x157269['registerInlineAttribute']('highlight'),_0x157269['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x29ec9a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x501ab2=this['editor'],_0x1c4f7c=_0x501ab2['locale'];_0x501ab2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8978de=>{if('formatInline'!=_0x8978de['type'])return;const {data:_0x1149f9}=_0x8978de;if(_0x1149f9&&'highlight'==_0x1149f9['commandName']){const _0x57b880=_0x1c4f7c['t'],_0x41ff24=_0x1149f9['commandParams'][0x0]['value'];if(_0x41ff24){const _0x284d61=_0x501ab2['config']['get']('highlight.options')['find'](_0x2a5d31=>_0x2a5d31['model']==_0x41ff24),_0x273d7f=_0x57b880(_0x284d61['title'])['toLowerCase']();return{'type':'format','content':o(_0x1c4f7c,'*Set\x20highlight:*\x20%0',_0x273d7f),'color':{'value':_0x284d61['color'],'title':_0x284d61['title']}};}return{'type':'format','content':o(_0x1c4f7c,'*Remove\x20highlight*',o(_0x1c4f7c,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4a3ee7{['afterInit'](){const _0x1d8045=this['editor'];if(!_0x1d8045['plugins']['has']('HorizontalLineEditing'))return;_0x1d8045['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5ec9d5=_0x1d8045['plugins']['get']('TrackChangesEditing'),_0xbbc2ed=_0x1d8045['locale'];_0x5ec9d5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x111f6e=>o(_0xbbc2ed,'ELEMENT_HORIZONTAL_LINE',_0x111f6e)),_0x1d8045['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x125690,{writer:_0x3b5017,options:_0x4d3fdf})=>{if(!_0x4d3fdf['showSuggestionHighlights'])return null;const _0x4aac6f=_0x3b5017['createContainerElement']('div'),_0x4315e4=_0x3b5017['createEmptyElement']('hr');return _0x3b5017['addClass']('ck-horizontal-line',_0x4aac6f),_0x3b5017['insert'](_0x3b5017['createPositionAt'](_0x4aac6f,0x0),_0x4315e4),_0x4aac6f;},'converterPriority':'high'});}}class et extends _0x4a3ee7{['afterInit'](){const _0x249581=this['editor'];if(!_0x249581['plugins']['has']('HtmlEmbed'))return;const _0x106c47=_0x249581['plugins']['get']('TrackChangesEditing'),_0x2070e1=_0x249581['locale'];_0x106c47['descriptionFactory']['registerElementLabel']('rawHtml',_0x476097=>o(_0x2070e1,'ELEMENT_HTML_EMBED',_0x476097)),_0x106c47['enableDefaultAttributesIntegration']('htmlEmbed'),_0x106c47['registerBlockAttribute']('value'),_0x106c47['descriptionFactory']['registerDescriptionCallback'](_0x3bed1c=>{if('attribute'!=_0x3bed1c['type'])return;const {data:_0x4d14ba}=_0x3bed1c;if(_0x4d14ba&&'value'==_0x4d14ba['key']&&_0x3bed1c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x14ef85=o(_0x2070e1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2070e1,'*Change\x20%0\x20content*',_0x14ef85)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4533e3=this['editor'],_0x3d8ef2=_0x4533e3['locale'];_0x4533e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x474916=>{if('formatBlock'!=_0x474916['type'])return;const {data:_0x2ccac7}=_0x474916;if(_0x2ccac7&&'htmlEmbed'==_0x2ccac7['commandName']){const _0x59de3f=o(_0x3d8ef2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3d8ef2,'*Change\x20%0\x20content*',_0x59de3f)};}});}}class it extends _0x4a3ee7{['afterInit'](){const _0x464907=this['editor'];if(!_0x464907['plugins']['has']('ImageEditing'))return;const _0x44eaac=_0x464907['plugins']['get']('TrackChangesEditing'),_0x2ae5f9=_0x464907['plugins']['get']('ImageUtils'),_0x1e05ba=_0x464907['locale'];_0x44eaac['enableCommand']('insertImage'),_0x44eaac['descriptionFactory']['registerElementLabel']('imageBlock',_0x12b49e=>o(_0x1e05ba,'ELEMENT_IMAGE',_0x12b49e)),_0x44eaac['descriptionFactory']['registerElementLabel']('imageInline',_0x781ede=>o(_0x1e05ba,'ELEMENT_INLINE_IMAGE',_0x781ede)),_0x44eaac['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1e05ba,'ELEMENT_CAPTION')),_0x464907['plugins']['has']('ImageUploadEditing')&&_0x44eaac['enableCommand']('uploadImage'),_0x464907['plugins']['has']('ImageBlockEditing')&&_0x464907['plugins']['has']('ImageInlineEditing')&&(_0x44eaac['enableCommand']('imageTypeInline',(_0x5da459,_0x5c064b)=>{const _0x5f3bc9=_0x2ae5f9['getClosestSelectedImageElement'](_0x464907['model']['document']['selection']);_0x464907['model']['change'](()=>{_0x44eaac['markBlockFormat'](_0x5f3bc9,{'commandName':'imageTypeInline','commandParams':[_0x5c064b]},[],'convertBlockImageToInline');});}),_0x44eaac['enableCommand']('imageTypeBlock',(_0x24360a,_0x199c37)=>{_0x464907['model']['change'](_0x1c239d=>{let _0x3c1cc6=_0x2ae5f9['getClosestSelectedImageElement'](_0x464907['model']['document']['selection']),_0x522037=_0x1c239d['createRangeOn'](_0x3c1cc6);const _0x5eca95=_0x5aa587['fromPosition'](_0x522037['start'],'toPrevious'),_0x576677=_0x5aa587['fromPosition'](_0x522037['end'],'toNext');_0x44eaac['forceDefaultExecution'](()=>_0x24360a(_0x199c37)),_0x3c1cc6=_0x2ae5f9['getClosestSelectedImageElement'](_0x464907['model']['document']['selection']),_0x522037=_0x1c239d['createRangeOn'](_0x3c1cc6);const _0x54f938=_0x1c239d['createRange'](_0x5eca95,_0x576677);_0x5eca95['detach'](),_0x576677['detach'](),_0x44eaac['markBlockFormat'](_0x3c1cc6,{'commandName':'imageTypeInline','commandParams':[_0x199c37]},[],'convertInlineImageToBlock'),_0x54f938['start']['isBefore'](_0x522037['start'])&&_0x44eaac['markInsertion'](_0x1c239d['createRange'](_0x54f938['start'],_0x522037['start']),'convertInlineImageToBlock'),_0x522037['end']['isBefore'](_0x54f938['end'])&&_0x44eaac['markInsertion'](_0x1c239d['createRange'](_0x522037['end'],_0x54f938['end']),'convertInlineImageToBlock');});}),_0x44eaac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x44eaac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x44eaac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x44eaac['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x44eaac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x44eaac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x476168])=>{const _0x4dda28=_0x44eaac['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3d083f=_0x476168['start'],_0x3bdef4=_0x476168['end'];const _0x3c2fd9=_0x464907['model']['schema']['getNearestSelectionRange'](_0x3d083f,'backward'),_0xb96c77=_0x464907['model']['schema']['getNearestSelectionRange'](_0x3bdef4,'forward');_0x3c2fd9['isCollapsed']&&(_0x3d083f=_0x3c2fd9['start']),_0xb96c77['isCollapsed']&&(_0x3bdef4=_0xb96c77['end']),_0x4dda28([_0x464907['model']['createRange'](_0x3d083f,_0x3bdef4)]);}),_0x44eaac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa9a92c),_0x44eaac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa9a92c)),_0x464907['plugins']['has']('ImageCaptionEditing')&&(_0x44eaac['enableCommand']('toggleImageCaption',(_0x2cfa8a,_0x55a4d0)=>{const _0x4f6f57=_0x464907['plugins']['get']('ImageCaptionUtils');let _0x5012f7=_0x2ae5f9['getClosestSelectedImageElement'](_0x464907['model']['document']['selection']),_0x586416=_0x4f6f57['getCaptionFromImageModelElement'](_0x5012f7);_0x464907['model']['change'](()=>{if(_0x586416)return void _0x44eaac['markDeletion'](_0x464907['model']['createRangeOn'](_0x586416));const _0x2b285f=_0x2ae5f9['isBlockImage'](_0x5012f7);_0x2cfa8a(_0x55a4d0),_0x5012f7=_0x2ae5f9['getClosestSelectedImageElement'](_0x464907['model']['document']['selection']),_0x586416=_0x4f6f57['getCaptionFromImageModelElement'](_0x5012f7),_0x44eaac['markInsertion'](_0x464907['model']['createRangeOn'](_0x586416),_0x2b285f?null:'imageCaption');});}),_0x44eaac['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa9a92c));const _0xd23801=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x14f600(_0x2a8a5b,_0x994999){const _0x24aadf=_0xd23801['findIndex'](({type:_0x159a44,subType:_0x3ab1fb})=>_0x2a8a5b['type']==_0x159a44&&_0x2a8a5b['subType']==_0x3ab1fb),_0x4b29f0=_0xd23801['findIndex'](({type:_0x1fe505,subType:_0x6e919e})=>_0x994999['type']==_0x1fe505&&_0x994999['subType']==_0x6e919e);if(_0x24aadf<0x0||_0x4b29f0<0x0)return!0x1;const _0xb0d3e8=_0x2a8a5b['getFirstRange'](),_0x249163=_0x994999['getFirstRange']();if((0x0==_0x24aadf||0x1==_0x24aadf)&&0x2==_0x4b29f0&&_0xb0d3e8['isIntersecting'](_0x249163))return!0x0;if(0x2==_0x24aadf&&0x3==_0x4b29f0){const _0x9b6537=_0x44eaac['_findSuggestions'](_0xb0d3e8,'insertion')['filter'](({suggestion:_0x3f3163,meta:_0x4f094b})=>_0x4f094b['isOwn']&&'convertInlineImageToBlock'==_0x3f3163['subType']);if(_0x9b6537['length']>0x1&&_0x249163['end']['isEqual'](_0xb0d3e8['start']))return!0x0;if(0x1==_0x9b6537['length']&&(_0xb0d3e8['start']['isEqual'](_0x249163['end'])||_0xb0d3e8['end']['isEqual'](_0x249163['start'])))return!0x0;}if(0x3==_0x24aadf&&0x3==_0x4b29f0&&_0xb0d3e8['start']['isBefore'](_0x249163['start'])){const _0x56eac8=_0xb0d3e8['end']['nodeAfter'],_0x5a8e2e=_0x249163['start']['nodeBefore'];return _0x2ae5f9['isBlockImage'](_0x56eac8)&&_0x56eac8===_0x5a8e2e;}return!0x1;}function _0xa9a92c(_0x10fc69,_0x264208){return _0x14f600(_0x10fc69,_0x264208)?[_0x10fc69,_0x264208]:_0x14f600(_0x264208,_0x10fc69)?[_0x264208,_0x10fc69]:null;}_0x464907['plugins']['has']('ImageResize')&&(_0x44eaac['enableDefaultAttributesIntegration']('resizeImage'),_0x44eaac['registerBlockAttribute']('resizedWidth'),_0x44eaac['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1e05ba,'FORMAT_IMAGE_SIZE'))),_0x464907['plugins']['has']('ImageTextAlternativeEditing')&&(_0x44eaac['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x44eaac['registerBlockAttribute']('alt')),_0x44eaac['descriptionFactory']['registerDescriptionCallback'](_0x404162=>{if(!!_0xd23801['find'](({type:_0x5eabe2,subType:_0x267029})=>_0x404162['type']==_0x5eabe2&&_0x404162['subType']==_0x267029))return _0x404162['previous']?{}:void 0x0;}),_0x44eaac['descriptionFactory']['registerDescriptionCallback'](_0x4636df=>{if('insertion'==_0x4636df['type']||'deletion'==_0x4636df['type']){const _0x2d7edf=_0x4636df['getContainedElement']();if(_0x2d7edf&&_0x2d7edf['is']('element','caption'))return{'type':'insertion'==_0x4636df['type']?'addObject':'removeObject','element':_0x2d7edf,'quantity':0x1};}}),_0x44eaac['descriptionFactory']['registerDescriptionCallback'](_0x21522b=>'formatBlock'==_0x21522b['type']&&'convertInlineImageToBlock'==_0x21522b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x21522b['type']&&'convertBlockImageToInline'==_0x21522b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x44eaac['descriptionFactory']['registerDescriptionCallback'](_0x5788a2=>{if('attribute'!=_0x5788a2['type'])return;const {data:_0x4cfcd6}=_0x5788a2;if(!_0x4cfcd6||'alt'!=_0x4cfcd6['key'])return;const _0x5df59f=_0x4cfcd6['newValue'];return _0x5df59f?{'type':'format','content':o(_0x1e05ba,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5df59f+'\x22')}:{'type':'format','content':o(_0x1e05ba,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13ead8=this['editor'],_0x1df2d9=_0x13ead8['locale'];_0x13ead8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b840=>{if('formatBlock'!=_0x42b840['type']&&'formatInline'!=_0x42b840['type'])return;const {data:_0x3def33}=_0x42b840;if(_0x3def33){if('imageTextAlternative'==_0x3def33['commandName']){const _0x38cb4a=_0x3def33['commandParams'][0x0]['newValue'];return _0x38cb4a?{'type':'format','content':o(_0x1df2d9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x38cb4a+'\x22')}:{'type':'format','content':o(_0x1df2d9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3def33['commandName']){const _0x47d883=_0x3def33['commandParams'][0x0]['width'];return _0x47d883?{'type':'format','content':o(_0x1df2d9,'*Set\x20image\x20width:*\x20%0',_0x47d883)}:{'type':'format','content':o(_0x1df2d9,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4a3ee7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x439278=this['editor']['locale'],_0x2bf79c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bf79c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2bf79c['registerBlockAttribute']('src'),_0x2bf79c['descriptionFactory']['registerDescriptionCallback'](_0x18dfea=>{if('attribute'!=_0x18dfea['type'])return;const {data:_0x19d10b}=_0x18dfea;return _0x19d10b&&'src'==_0x19d10b['key']?_0x19d10b['newValue']&&_0x19d10b['oldValue']?{'type':'format','content':o(_0x439278,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x358b59=this['editor']['plugins']['get']('TrackChangesEditing');_0x358b59['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x358b59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x358b59['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x358b59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x252928=this['editor'],_0x193884=_0x252928['locale'];_0x252928['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e4860=>{if('formatBlock'!=_0x3e4860['type']&&'formatInline'!=_0x3e4860['type'])return;const {data:_0x1beb7a}=_0x3e4860;if(!_0x1beb7a||'replaceImageSource'!=_0x1beb7a['commandName'])return;return{'type':'format','content':o(_0x193884,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4a3ee7{['afterInit'](){const _0x12d5c0=this['editor'];if(!_0x12d5c0['plugins']['has']('ImageStyleEditing'))return;const _0x330f96=_0x12d5c0['plugins']['get']('TrackChangesEditing'),_0x41be17=_0x12d5c0['plugins']['get']('ImageUtils'),_0xabb405={};_0x330f96['enableCommand']('imageStyle',(_0x183ee6,_0x5746d7)=>{const _0x378d0f=_0x12d5c0['plugins']['get']('Users')['me'],_0x3249ac=_0x12d5c0['commands']['get']('imageStyle');let _0x1effbc=_0x41be17['getClosestSelectedImageElement'](_0x12d5c0['model']['document']['selection']),_0x124252=_0x12d5c0['model']['createRangeOn'](_0x1effbc),_0x3d5bc7=_0x3249ac['value'];if(_0x3d5bc7==_0x5746d7['value'])return;const _0x318b03={'commandName':'imageStyle','commandParams':[_0x5746d7],'formatGroupId':_0x24ebe0()};_0x12d5c0['model']['change'](()=>{if(_0x330f96['getSuggestions']()['filter'](_0x35c26d=>_0x35c26d['isInContent']&&_0x378d0f==_0x35c26d['author']&&('formatBlock'==_0x35c26d['type']||'formatInline'==_0x35c26d['type'])&&('imageStylePreApply'==_0x35c26d['subType']||'imageStylePostApply'==_0x35c26d['subType'])&&_0x35c26d['getFirstRange']()['isEqual'](_0x124252))['forEach'](_0x2047ad=>_0x330f96['discardSuggestion'](_0x2047ad['head'])),_0x1effbc=_0x41be17['getClosestSelectedImageElement'](_0x12d5c0['model']['document']['selection']),_0x124252=_0x12d5c0['model']['createRangeOn'](_0x1effbc),_0x3249ac['refresh'](),_0x12d5c0['commands']['get']('imageTypeInline')['refresh'](),_0x12d5c0['commands']['get']('imageTypeBlock')['refresh'](),_0x3d5bc7=_0x3249ac['value'],_0x3d5bc7!=_0x5746d7['value'])return _0x41be17['isInlineImage'](_0x1effbc)&&_0x3249ac['shouldConvertImageType'](_0x5746d7['value'],_0x1effbc)?(_0x183ee6({..._0x5746d7,'setImageSizes':!0x1}),_0x1effbc=_0x41be17['getClosestSelectedImageElement'](_0x12d5c0['model']['document']['selection']),void _0x330f96['markBlockFormat'](_0x1effbc,{..._0x318b03,'commandReversedParams':[{'value':_0x3d5bc7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x41be17['isBlockImage'](_0x1effbc)?_0x330f96['markBlockFormat'](_0x1effbc,_0x318b03,[],'imageStylePostApply'):_0x330f96['markInlineFormat'](_0x124252,_0x318b03,'imageStylePostApply'));});});for(const _0x1f5899 of _0x12d5c0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xabb405[_0x1f5899['name']]=_0x1f5899['title']['toLowerCase']();_0x330f96['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x330f96['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x330f96['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x330f96['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x562b8d])=>{_0x41be17['setImageNaturalSizeAttributes'](_0x562b8d['getContainedElement']());}),_0x330f96['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x191b82,_0xceba67)=>{_0x330f96['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x191b82,{'commandName':_0xceba67['commandName'],'commandParams':_0xceba67['commandReversedParams']});}),_0x330f96['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x444127,_0x5f3dd9){if(_0x179c5d(_0x444127,_0x5f3dd9))return[_0x444127,_0x5f3dd9];if(_0x179c5d(_0x5f3dd9,_0x444127))return[_0x5f3dd9,_0x444127];return null;});const _0x17aa93=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x179c5d(_0x67f8e4,_0x271424){const _0x5eaa3e=_0x17aa93['findIndex'](({type:_0x4e6a65,subType:_0x1b6add})=>_0x67f8e4['type']==_0x4e6a65&&_0x67f8e4['subType']==_0x1b6add),_0x304d56=_0x17aa93['findIndex'](({type:_0x18f14b,subType:_0x3800da})=>_0x271424['type']==_0x18f14b&&_0x271424['subType']==_0x3800da);if(_0x5eaa3e<0x0||_0x304d56<0x0)return!0x1;const _0x212718=_0x67f8e4['getFirstRange'](),_0x4c7350=_0x271424['getFirstRange']();if((0x0==_0x5eaa3e||0x1==_0x5eaa3e)&&0x2==_0x304d56&&_0x212718['isIntersecting'](_0x4c7350))return!0x0;if(0x2==_0x5eaa3e&&0x3==_0x304d56){const _0x376712=_0x330f96['_findSuggestions'](_0x212718,'insertion')['filter'](({suggestion:_0x2362f1,meta:_0x3208fb})=>_0x3208fb['isOwn']&&'convertInlineImageToBlock'==_0x2362f1['subType']);if(_0x376712['length']>0x1&&_0x4c7350['end']['isEqual'](_0x212718['start']))return!0x0;if(0x1==_0x376712['length']&&(_0x212718['start']['isEqual'](_0x4c7350['end'])||_0x212718['end']['isEqual'](_0x4c7350['start'])))return!0x0;}if(0x3==_0x5eaa3e&&0x3==_0x304d56&&_0x212718['start']['isBefore'](_0x4c7350['start'])){const _0x593abc=_0x212718['end']['nodeAfter'],_0x5435fc=_0x4c7350['start']['nodeBefore'];return _0x41be17['isBlockImage'](_0x593abc)&&_0x593abc===_0x5435fc;}return!0x1;}_0x12d5c0['model']['document']['registerPostFixer'](()=>{let _0xa4b3f6=!0x1;const _0x5d6d84=Array['from'](_0x12d5c0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d8398,data:_0x1e496c}of _0x5d6d84){const {group:_0x591f9b,type:_0x13db33,subType:_0xe069eb,id:_0x1674c7}=_0x330f96['_splitMarkerName'](_0x3d8398);if('suggestion'==_0x591f9b&&_0x330f96['hasSuggestion'](_0x1674c7)){if('formatBlock'==_0x13db33&&('imageStylePreApply'==_0xe069eb||'imageStylePostApply'==_0xe069eb)){const _0x420ef2=_0x330f96['getSuggestion'](_0x1674c7);if(_0x1e496c['newRange']){const _0x5b66dc=_0x420ef2['getFirstRange']()['getContainedElement']();if(_0x41be17['isBlockImage'](_0x5b66dc))continue;_0x330f96['discardSuggestion'](_0x420ef2),_0xa4b3f6=!0x0;}}if('insertion'==_0x13db33&&'imageCaption'==_0xe069eb&&!_0x1e496c['newRange']){const _0x329915=_0x330f96['getSuggestion'](_0x1674c7);_0x329915['next']&&_0x329915['next']['isInContent']&&(_0x330f96['discardSuggestion'](_0x329915['next']),_0xa4b3f6=!0x0);}}}return _0xa4b3f6;}),this['_registerLegacyDescription'](_0xabb405);}['_registerLegacyDescription'](_0xb183a4){const _0x4047d3=this['editor'],_0x428eb9=_0x4047d3['locale'];_0x4047d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbc873d=>{if('formatBlock'!=_0xbc873d['type']&&'formatInline'!=_0xbc873d['type'])return;const {data:_0xb8641c}=_0xbc873d;if(!_0xb8641c||'imageStyle'!=_0xb8641c['commandName'])return;const _0x1bb4c3=_0xb8641c['commandParams'][0x0]['value'];return _0x41c1ed('side'===_0x1bb4c3?o(_0x428eb9,'FORMAT_SIDE_IMAGE'):_0xb183a4[_0x1bb4c3]||_0x1bb4c3);function _0x41c1ed(_0x3ae801){return{'type':'format','content':o(_0x428eb9,'*Format:*\x20%0',_0x3ae801)};}});}}class ot extends _0x4a3ee7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x15891d){super(_0x15891d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x367e09=this['editor'],_0x539217=_0x367e09['commands']['get']('importWord'),_0x46f7d4=_0x367e09['commands']['get']('trackChanges');_0x539217&&(_0x539217['on']('execute',(_0x43e086,[,_0x11bd1a])=>{this['_trackChangesValueDuringImport']=_0x46f7d4['value'],_0x11bd1a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x539217,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x539217,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x46f7d4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x367e09['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4cc606,_0x4aabd1){const {suggestions:_0x78458}=_0x4aabd1,_0x29298f=this['editor']['commands']['get']('trackChanges'),_0x12ed15=_0x29298f['value'];this['_trackChangesValueDuringImport']!==_0x12ed15&&(_0x29298f['execute'](),this['_trackChangesExecuted']=!0x0),_0x78458&&_0x78458['forEach'](({id:_0x2df683,type:_0xbff6c8,author:_0x3a5761,created_at:_0x31c96c})=>{const _0x13fc15={'id':_0x2df683,'type':_0xbff6c8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3a5761,'createdAt':_0x31c96c?new Date(_0x31c96c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x13fc15);});}}class rt extends _0x4a3ee7{['afterInit'](){const _0x2ecd19=this['editor'],_0x45bf4a=_0x2ecd19['plugins']['get']('TrackChangesEditing');if(_0x2ecd19['plugins']['has']('IndentEditing')&&(_0x45bf4a['enableCommand']('indent'),_0x45bf4a['enableCommand']('outdent')),_0x2ecd19['plugins']['has']('IndentBlock')){for(const _0x36cd5f of['indentBlock','outdentBlock'])_0x45bf4a['enableDefaultAttributesIntegration'](_0x36cd5f);}const _0x3b24fa=_0x2ecd19['locale'];_0x45bf4a['registerBlockAttribute']('blockIndent'),_0x45bf4a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3b24fa,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bc4fe=this['editor'],_0x67ffb0=_0x1bc4fe['locale'],_0x123b73=_0x1bc4fe['plugins']['get']('TrackChangesEditing');_0x123b73['descriptionFactory']['registerDescriptionCallback'](_0x31bf0b=>{if('formatBlock'!=_0x31bf0b['type'])return;const {data:_0x7f7d29}=_0x31bf0b;if(!_0x7f7d29)return;if('indentBlock'!=_0x7f7d29['commandName']&&'outdentBlock'!=_0x7f7d29['commandName'])return;const _0xe08827=_0x31bf0b['getItems']()[0x0],_0x1b5830=_0x123b73['descriptionFactory']['getItemLabel'](_0xe08827);return'indentBlock'==_0x7f7d29['commandName']?{'type':'format','content':o(_0x67ffb0,'*Indent:*\x20%0',_0x1b5830)}:'outdentBlock'==_0x7f7d29['commandName']?{'type':'format','content':o(_0x67ffb0,'*Outdent:*\x20%0',_0x1b5830)}:void 0x0;});}}class at extends _0x4a3ee7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4a3ee7{['afterInit'](){const _0x1ea938=this['editor'];if(!_0x1ea938['plugins']['has']('LinkEditing'))return;const _0x2b21a9=_0x1ea938['plugins']['get']('TrackChangesEditing'),_0x141354=_0x1ea938['commands']['get']('link');_0x2b21a9['enableDefaultAttributesIntegration']('link'),_0x2b21a9['enableDefaultAttributesIntegration']('unlink'),_0x2b21a9['registerInlineAttribute']('linkHref');for(const _0x58137f of _0x141354['manualDecorators'])_0x2b21a9['registerInlineAttribute'](_0x58137f['id']),_0x2b21a9['descriptionFactory']['registerAttributeLabel'](_0x58137f['id'],'link\x20('+_0x58137f['label']['toLowerCase']()+')');_0x2b21a9['descriptionFactory']['registerDescriptionCallback'](_0x115262=>{if('attribute'!=_0x115262['type'])return;const {data:_0x46602d}=_0x115262;if(!_0x46602d||'linkHref'!=_0x46602d['key'])return;const _0x5465df=_0x46602d['newValue'],_0x253ce9=_0x1ea938['locale'];return{'type':'format','content':null==_0x5465df?o(_0x253ce9,'*Remove\x20link*'):o(_0x253ce9,'*Set\x20link:*\x20%0','\x22'+_0x5465df+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd4b6=this['editor'],_0x33718d=_0x4cd4b6['locale'];_0x4cd4b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4de0af=>{if('formatInline'!=_0x4de0af['type'])return;const {data:_0xc9a969}=_0x4de0af;if(_0xc9a969){if('link'==_0xc9a969['commandName']){const _0x54fc7a=_0xc9a969['commandParams'][0x0];return{'type':'format','content':o(_0x33718d,'*Set\x20link:*\x20%0','\x22'+_0x54fc7a+'\x22')};}return'unlink'==_0xc9a969['commandName']?{'type':'format','content':o(_0x33718d,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4a3ee7{['afterInit'](){const _0x5e6913=this['editor'],_0xfe288a=_0x5e6913['locale'];if(!_0x5e6913['plugins']['has']('LegacyListEditing'))return;const _0xbdf866=_0x5e6913['plugins']['get']('TrackChangesEditing'),_0x5d2011=_0x5e6913['plugins']['has']('LegacyTodoListEditing');function _0x277da3(_0x483586){return()=>{const _0x2b5023=_0x5e6913['model']['document']['selection'],_0x383686=_0x5e6913['commands']['get'](_0x483586);if(_0x383686['value'])return void _0x5e6913['execute']('paragraph',{});const _0x40e0c8=_0x483586['slice'](0x0,-0x4),_0x3369f0=function(_0x2f3dab,_0x4e3e67,_0x5ad0fc){let _0x5d6f24=Array['from'](_0x2f3dab)['filter'](_0x6b211e=>function(_0x1a383d,_0x244249){return _0x244249['checkChild'](_0x1a383d['parent'],'listItem')&&!_0x244249['isObject'](_0x1a383d);}(_0x6b211e,_0x5ad0fc));_0x5d6f24=_0x5d6f24['filter'](_0x595d63=>!_0x595d63['is']('element','listItem')||_0x595d63['getAttribute']('listType')!=_0x4e3e67);const _0x480f0f=new Set();for(const _0x218007 of _0x5d6f24)_0x218007['is']('element','listItem')?_0x480f0f['add'](me(_0x218007)):_0x480f0f['add'](_0x218007);return Array['from'](_0x480f0f);}(_0x2b5023['getSelectedBlocks'](),_0x40e0c8,_0x5e6913['model']['schema']);_0x5e6913['model']['change'](()=>{for(const _0x4cbb69 of _0x3369f0)_0xbdf866['markBlockFormat'](_0x4cbb69,{'commandName':_0x483586,'commandParams':[{'forceValue':!_0x383686['value']}],'formatGroupId':'blockName'},fe(_0x4cbb69));});};}function _0x583cb9(_0x29535d){return()=>{const _0x382348=function(_0x2fa60e){let _0xb8929c=Array['from'](_0x2fa60e);const _0x14f6c0=_0xb8929c['findIndex'](_0x203a6a=>'listItem'!=_0x203a6a['name']);return _0x14f6c0>-0x1&&(_0xb8929c=_0xb8929c['slice'](0x0,_0x14f6c0)),_0xb8929c;}(_0x5e6913['model']['document']['selection']['getSelectedBlocks']()),_0x3a4e90=_0x5e6913['model']['createRange'](_0x5e6913['model']['createPositionAt'](_0x382348[0x0],'before'),_0x5e6913['model']['createPositionAt'](_0x382348[_0x382348['length']-0x1],'end'));_0x5e6913['model']['change'](()=>{_0xbdf866['markBlockFormat'](_0x3a4e90,{'commandName':_0x29535d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x45c0dc){const _0x3057bc=new Set();for(const _0x250e5b of _0x45c0dc){let _0x1e3efb=_0x250e5b['nextSibling'];for(;_0x1e3efb&&_0x1e3efb['getAttribute']('listIndent')>_0x250e5b['getAttribute']('listIndent');)_0x3057bc['add'](_0x1e3efb),_0x1e3efb=_0x1e3efb['nextSibling'];}return Array['from'](_0x3057bc);}(_0x382348));});};}_0xbdf866['enableCommand']('numberedList',_0x277da3('numberedList')),_0xbdf866['enableCommand']('bulletedList',_0x277da3('bulletedList')),_0x5d2011&&_0xbdf866['enableCommand']('todoList',_0x277da3('todoList')),_0xbdf866['enableCommand']('indentList',_0x583cb9('indentList')),_0xbdf866['enableCommand']('outdentList',_0x583cb9('outdentList')),_0x5d2011&&_0xbdf866['enableCommand']('checkTodoList',()=>{const _0x195598=_0x5e6913['commands']['get']('checkTodoList'),_0x149cf4=Array['from'](_0x195598['_selectedElements']);_0x149cf4['filter'](_0x26c573=>_0x26c573['getAttribute']('todoListChecked')!=_0x195598['value']),_0x5e6913['model']['change'](()=>{for(const _0x27328e of _0x149cf4)_0xbdf866['markBlockFormat'](_0x27328e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x195598['value']}]});});}),_0xbdf866['descriptionFactory']['registerElementLabel']('listItem',_0x5996d8=>o(_0xfe288a,'ELEMENT_LIST_ITEM',_0x5996d8)),_0xbdf866['descriptionFactory']['registerDescriptionCallback'](_0x6a8126=>{if('formatBlock'!=_0x6a8126['type']&&'formatInline'!=_0x6a8126['type'])return;const {data:_0x18bfd5}=_0x6a8126;if(_0x18bfd5){if('numberedList'==_0x18bfd5['commandName']||'bulletedList'==_0x18bfd5['commandName']||'todoList'==_0x18bfd5['commandName'])switch(_0x18bfd5['commandName']['replace']('List','')){case'bulleted':return _0x1e380a(o(_0xfe288a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e380a(o(_0xfe288a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e380a(o(_0xfe288a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x18bfd5['commandName'])return{'type':'format','content':o(_0xfe288a,'*Indent:*\x20%0',o(_0xfe288a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x18bfd5['commandName'])return{'type':'format','content':o(_0xfe288a,'*Outdent:*\x20%0',o(_0xfe288a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x18bfd5['commandName'])return _0x18bfd5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfe288a,'*Check\x20item*')}:{'type':'format','content':o(_0xfe288a,'*Uncheck\x20item*')};}function _0x1e380a(_0x2b724f){return{'type':'format','content':o(_0xfe288a,'*Change\x20to:*\x20%0',_0x2b724f)};}});}}function me(_0x5bc40c){const _0x43af4a=_0x5bc40c['getAttribute']('listIndent');if(0x0==_0x43af4a)return _0x5bc40c;let _0x2326e4=_0x5bc40c;for(;_0x5bc40c['previousSibling']&&_0x5bc40c['previousSibling']['is']('element','listItem');){const _0x1ab4eb=_0x5bc40c['previousSibling']['getAttribute']('listIndent');if(_0x1ab4eb==_0x43af4a)_0x2326e4=_0x5bc40c['previousSibling'];else{if(_0x1ab4eb<_0x43af4a)break;}_0x5bc40c=_0x5bc40c['previousSibling'];}return _0x2326e4;}function fe(_0x2d5b42){const _0x5f264d=[];if(_0x2d5b42['is']('element','listItem')&&_0x2d5b42['getAttribute']('listIndent')>0x0){let _0x4f9484=_0x2d5b42['nextSibling'];for(;_0x4f9484&&'listItem'==_0x4f9484['name']&&_0x4f9484['getAttribute']('listIndent')==_0x2d5b42['getAttribute']('listIndent');)_0x5f264d['push'](_0x4f9484),_0x4f9484=_0x4f9484['nextSibling'];}return _0x5f264d;}class K extends _0x4a3ee7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2a11c1=this['editor']['config']['get']('list.properties'),_0x4a3a86=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a11c1['styles']&&_0x4a3a86['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2a11c1['reversed']&&_0x4a3a86['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2a11c1['startIndex']&&_0x4a3a86['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4a3a86['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x23692c,_0x3a27a1={}){const _0x57d779=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36ee16=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x57d779['markMultiRangeBlockFormat'](_0x36ee16,{'commandName':'listStyle','commandParams':[{'type':_0x3a27a1['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2e0c54,_0x5527e5={}){const _0x36e2f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31d1c5=this['_getSuggestionBlocks'](_0xd8fa7b=>_0xd8fa7b['is']('element','listItem')&&'numbered'===_0xd8fa7b['getAttribute']('listType'));if(_0x31d1c5['length']<0x1)return;const _0x30eaed=_0x31d1c5['map'](_0x1a1e09=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a1e09,'before'),this['editor']['model']['createPositionAt'](_0x1a1e09,0x0)));this['editor']['model']['change'](()=>{_0x36e2f4['markMultiRangeBlockFormat'](_0x30eaed,{'commandName':'listReversed','commandParams':[{'reversed':_0x5527e5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4b7e78,_0x30fd5b={}){const _0x146bce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1649f5=this['_getSuggestionBlocks'](_0x2c7a57=>_0x2c7a57['is']('element','listItem')&&'numbered'===_0x2c7a57['getAttribute']('listType'));if(_0x1649f5['length']<0x1)return;const _0x303bad=_0x1649f5['map'](_0x41fa31=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x41fa31,'before'),this['editor']['model']['createPositionAt'](_0x41fa31,0x0)));this['editor']['model']['change'](()=>{_0x146bce['markMultiRangeBlockFormat'](_0x303bad,{'commandName':'listStart','commandParams':[{'startIndex':_0x30fd5b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2bab0b){if('formatBlock'!=_0x2bab0b['type']&&'formatInline'!=_0x2bab0b['type'])return;const _0x125ddf=this['editor']['locale'],{data:_0x2fa709}=_0x2bab0b;if(!_0x2fa709)return;let _0x342be4,_0x501f28;switch(_0x2fa709['commandName']){case'listStyle':_0x342be4='*Change\x20to:*\x20%0',_0x501f28={'type':'format','content':o(_0x125ddf,_0x342be4,o(_0x125ddf,this['_getTranslationKeyForListStyle'](_0x2fa709['commandParams'][0x0]['type'])))};break;case'listReversed':_0x342be4=_0x2fa709['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x501f28={'type':'format','content':o(_0x125ddf,_0x342be4)};break;case'listStart':_0x342be4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x501f28={'type':'format','content':o(_0x125ddf,_0x342be4,_0x2fa709['commandParams'][0x0]['startIndex'])};}return _0x501f28;}['_getSuggestionBlocksForListStyle'](){const _0x38e18f=this['editor']['plugins']['get']('LegacyListUtils');let _0x53c476=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x53c476[0x0]?.['is']('element','listItem')&&_0x53c476['unshift'](..._0x38e18f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x53c476[_0x53c476['length']-0x1]?.['is']('element','listItem')&&_0x53c476['push'](..._0x38e18f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x53c476=[...new Set(_0x53c476)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x53c476=_0x53c476['filter'](_0x282585=>_0x282585['is']('element','listItem'))),_0x53c476;}['_getSuggestionBlocks'](_0x779802){const _0x1e78b0=this['editor']['plugins']['get']('LegacyListUtils');let _0x48b492=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x779802)['map'](_0x13f4db=>{const _0x5e2281=this['editor']['model']['createPositionAt'](_0x13f4db,0x0);return[..._0x1e78b0['getSiblingNodes'](_0x5e2281,'backward'),..._0x1e78b0['getSiblingNodes'](_0x5e2281,'forward')];})['flat']();return _0x48b492=[...new Set(_0x48b492)],_0x48b492;}['_getTranslationKeyForListStyle'](_0x37ff9d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x37ff9d)||'default')['toUpperCase']()+'_LIST_'+_0x37ff9d['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4a3ee7{['afterInit'](){const _0x33e6e0=this['editor'];if(!_0x33e6e0['plugins']['has']('MediaEmbedEditing'))return;const _0x1d3715=_0x33e6e0['plugins']['get']('TrackChangesEditing'),_0x1cbf98=_0x33e6e0['locale'];_0x1d3715['enableCommand']('mediaEmbed'),_0x1d3715['descriptionFactory']['registerElementLabel']('media',_0x3373a8=>o(_0x1cbf98,'ELEMENT_MEDIA',_0x3373a8)),_0x33e6e0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x51a4c2,{writer:_0x5d1d44,options:_0x21d180})=>{if(_0x21d180['showSuggestionHighlights'])return _0x5d1d44['createEmptyElement']('div');},'converterPriority':'high'}),_0x33e6e0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3beb97,_0x39ee50,_0x3f2300)=>{_0x3f2300['options']['showSuggestionHighlights']&&_0x3beb97['stop']();},{'priority':'high'});}}class gt extends _0x4a3ee7{['afterInit'](){const _0x5690ac=this['editor'];_0x5690ac['plugins']['has']('MentionEditing')&&_0x5690ac['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4a3ee7{['afterInit'](){const _0x232843=this['editor'],_0x2498a6=_0x232843['plugins']['get']('TrackChangesEditing');_0x232843['plugins']['has']('MultiLevelList')&&(_0x2498a6['enableDefaultAttributesIntegration']('multiLevelList'),_0x2498a6['registerBlockAttribute']('listMarkerStyle'),_0x2498a6['descriptionFactory']['registerDescriptionCallback'](_0x5b65d6=>this['handleDescriptions'](_0x5b65d6)));}['handleDescriptions'](_0x399b7e){const _0x27ede6=this['editor']['locale'],{data:_0x48be89}=_0x399b7e,_0x25e798={'type':'format','content':''};if(_0x48be89&&'listMarkerStyle'==_0x48be89['key']){if(!_0x48be89['oldValue'])return{'type':'format','content':o(_0x27ede6,'*Set\x20format:*\x20%0',o(_0x27ede6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x48be89['newValue']+')'};if(!_0x48be89['newValue']){let _0x360c6c=_0x399b7e['head'];for(;_0x360c6c;){if(_0x360c6c['data']&&'listType'==_0x360c6c['data']['key']&&_0x360c6c['data']['newValue'])return _0x25e798;_0x360c6c=_0x360c6c['next'];}return{'type':'format','content':o(_0x27ede6,'*Remove\x20format:*\x20%0',o(_0x27ede6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x48be89['oldValue']+')'};}}}}class mt extends _0x4a3ee7{['afterInit'](){const _0x502550=this['editor'];if(!_0x502550['plugins']['has']('PageBreakEditing'))return;_0x502550['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3afc42=_0x502550['plugins']['get']('TrackChangesEditing'),_0x274580=_0x502550['locale'];_0x3afc42['descriptionFactory']['registerElementLabel']('pageBreak',_0x597a56=>o(_0x274580,'ELEMENT_PAGE_BREAK',_0x597a56));}}class dt extends _0x4a3ee7{['afterInit'](){const _0x2bbf14=this['editor'];if(!_0x2bbf14['plugins']['has']('Paragraph'))return;const _0x23ff52=_0x2bbf14['locale'],_0x36fd3e=_0x2bbf14['plugins']['get']('TrackChangesEditing');_0x36fd3e['descriptionFactory']['registerElementLabel']('paragraph',_0xf30890=>o(_0x23ff52,'ELEMENT_PARAGRAPH',_0xf30890)),_0x36fd3e['enableDefaultAttributesIntegration']('paragraph'),_0x36fd3e['enableCommand']('insertParagraph'),_0x2bbf14['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2bbf14),{'priority':'highest'}),_0x2bbf14['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e06b5,_0x44609b,_0x1aece9)=>{_0x1aece9['options']['showSuggestionHighlights']&&nr(_0x2bbf14,{'showActiveMarker':!0x1})(_0x4e06b5,_0x44609b,_0x1aece9);},{'priority':'highest'});const _0x18bd13=_0x36fd3e['descriptionFactory'];_0x18bd13['registerDescriptionCallback'](_0x2ca9d2=>{if('insertion'!==_0x2ca9d2['type'])return;const {start:_0x4d1ff5,end:_0x45a8cb}=_0x2ca9d2['getFirstRange']();if(!_0x4d1ff5['isTouching'](_0x45a8cb)||!_0x4d1ff5['nodeAfter'])return;const _0x4fd1d6=_0x2bbf14['model']['schema'],_0x4f78e8=_0x4d1ff5['nodeAfter'];return _0x4fd1d6['isBlock'](_0x4f78e8)&&!_0x4fd1d6['isLimit'](_0x4f78e8)&&_0x4fd1d6['checkChild'](_0x4f78e8,'$text')?{'type':'insertion','content':o(_0x23ff52,'*Insert:*\x20%0',_0x18bd13['getItemLabel'](_0x4f78e8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1237cd=this['editor'],_0x20012e=_0x1237cd['locale'];_0x1237cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb6736a=>{if('formatBlock'!=_0xb6736a['type'])return;const {data:_0x19a327}=_0xb6736a;return _0x19a327&&'paragraph'==_0x19a327['commandName']?{'type':'format','content':o(_0x20012e,'*Change\x20to:*\x20%0',o(_0x20012e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x19a931,{showActiveMarker:_0x241675=!0x0}={}){return(_0x10a350,_0x5d52fb,_0x2401a7)=>{const _0x2ee34a=_0x19a931['plugins']['get']('TrackChangesEditing'),_0x2ea27c=_0x5d52fb['markerRange']['start'],_0x5503b7=_0x5d52fb['markerRange']['end'],_0x58e46b=_0x19a931['model']['schema'];if(!_0x2ea27c['isTouching'](_0x5503b7)||!_0x2ea27c['nodeAfter'])return;const _0x156770=_0x2ea27c['nodeAfter'];if(_0x58e46b['isBlock'](_0x156770)&&!_0x58e46b['isLimit'](_0x156770)&&_0x58e46b['checkChild'](_0x156770,'$text')){if(!_0x2401a7['consumable']['consume'](_0x5d52fb['markerRange'],_0x10a350['name']))return;const _0x38476b=_0x2401a7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2a2a83=_0x2401a7['mapper']['toViewPosition'](_0x5503b7);_0x241675&&_0x2ee34a['activeMarkers']['includes'](_0x5d52fb['markerName'])&&_0x2401a7['writer']['addClass']('ck-suggestion-marker--active',_0x38476b),_0x2401a7['writer']['insert'](_0x2a2a83,_0x38476b),_0x2401a7['mapper']['bindElementToMarker'](_0x38476b,_0x5d52fb['markerName']);}};}class pt extends _0x4a3ee7{['afterInit'](){const _0x146037=this['editor'];if(!_0x146037['plugins']['has']('RemoveFormatEditing'))return;_0x146037['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b6ac2=this['editor'];_0x4b6ac2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b85f4=>{if('formatBlock'!=_0x4b85f4['type']&&'formatInline'!=_0x4b85f4['type'])return;const {data:_0x256252}=_0x4b85f4;return _0x256252&&'removeFormat'==_0x256252['commandName']?{'type':'format','content':o(_0x4b6ac2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4a3ee7{['afterInit'](){const _0x28b461=this['editor'];if(!_0x28b461['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x793d59=_0x28b461['plugins']['get']('TrackChangesEditing');_0x793d59['enableCommand']('goToPreviousRestrictedEditingException'),_0x793d59['enableCommand']('goToNextRestrictedEditingException');const _0x4385d8=_0x28b461['plugins']['get']('RestrictedEditingModeEditing');_0x4385d8['enableCommand']('trackChanges'),_0x4385d8['enableCommand']('acceptSuggestion'),_0x4385d8['enableCommand']('discardSuggestion'),_0x4385d8['enableCommand']('acceptAllSuggestions'),_0x4385d8['enableCommand']('discardAllSuggestions'),_0x4385d8['enableCommand']('acceptSelectedSuggestions'),_0x4385d8['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4a3ee7{static get['requires'](){return[_0x5a462c];}['init'](){const _0x4cbfc6=this['editor'],_0x5f6968=_0x4cbfc6['plugins']['get']('TrackChangesEditing');_0x5f6968['enableCommand']('shiftEnter'),_0x4cbfc6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x4cbfc6),{'priority':'high'}),_0x4cbfc6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x4cbfc6),{'priority':'high'}),_0x4cbfc6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22aaf0,_0x38b80a,_0x133372)=>{_0x133372['options']['showSuggestionHighlights']&&de(_0x4cbfc6,{'showActiveMarker':!0x1})(_0x22aaf0,_0x38b80a,_0x133372);}),_0x5f6968['descriptionFactory']['registerElementLabel']('softBreak',_0x2266a3=>o(_0x4cbfc6['locale'],'ELEMENT_LINE_BREAK',_0x2266a3));}}function de(_0x3cec5e,{showActiveMarker:_0x1dc20f=!0x0}={}){return(_0x17b2db,_0x40eba2,_0x3e2884)=>{const _0x344a83=_0x3cec5e['plugins']['get']('TrackChangesEditing');if(!_0x3e2884['consumable']['test'](_0x40eba2['markerRange'],_0x17b2db['name']))return;const _0x45b9f7=_0x3cec5e['model'];for(const _0x2ef1a0 of _0x40eba2['markerRange']['getItems']()){if(!_0x2ef1a0['is']('element','softBreak'))continue;const _0x5adeea='deletion'==_0x40eba2['markerName']['split'](':')[0x1]?'merge':'split',_0x48522d=_0x3e2884['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5adeea}),_0x3ae2da=_0x3e2884['mapper']['toViewPosition'](_0x45b9f7['createPositionBefore'](_0x2ef1a0));_0x1dc20f&&_0x344a83['activeMarkers']['includes'](_0x40eba2['markerName'])&&_0x3e2884['writer']['addClass']('ck-suggestion-marker--active',_0x48522d),_0x3e2884['writer']['insert'](_0x3ae2da,_0x48522d),_0x3e2884['mapper']['bindElementToMarker'](_0x48522d,_0x40eba2['markerName']);}};}class wt extends _0x4a3ee7{['afterInit'](){const _0x20f25d=this['editor'],_0x4c5d9e=_0x20f25d['model'],_0x321e1d=_0x20f25d['locale'];if(!_0x20f25d['plugins']['has']('StandardEditingModeEditing'))return;const _0x71b965=_0x20f25d['plugins']['get']('TrackChangesEditing'),_0x414f87='restrictedEditingException',_0x3ed9d9=_0x20f25d['commands']['get'](_0x414f87);_0x71b965['enableCommand'](_0x414f87,(_0x37d0b2,_0xf7f51f={})=>{const _0x303817=_0x4c5d9e['document']['selection'];if(_0x303817['isCollapsed'])return void _0x37d0b2(_0xf7f51f);const _0x2b20da=void 0x0!==_0xf7f51f['forceValue']?_0xf7f51f['forceValue']:!_0x3ed9d9['value'];_0x4c5d9e['change'](()=>{const _0x10c371=Array['from'](_0x303817['getRanges']());for(const _0x96bead of _0x10c371){const _0x17f128=_0x2b20da?[_0x96bead]:io(_0x414f87,_0x96bead,_0x4c5d9e);for(const _0x24cb78 of _0x17f128)_0x71b965['markInlineFormat'](_0x24cb78,{'commandName':_0x414f87,'commandParams':[{'forceValue':_0x2b20da}]});}});}),_0x71b965['descriptionFactory']['registerDescriptionCallback'](_0x38ee28=>{if('formatBlock'!=_0x38ee28['type']&&'formatInline'!=_0x38ee28['type'])return;const {data:_0x2a3df7}=_0x38ee28;return _0x2a3df7&&_0x2a3df7['commandName']==_0x414f87?_0x2a3df7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x321e1d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x321e1d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4a3ee7{['afterInit'](){const _0x1ec3c7=this['editor'];if(!_0x1ec3c7['plugins']['has']('Style')||!_0x1ec3c7['plugins']['has']('DataSchema'))return;const _0x5857c7=_0x1ec3c7['plugins']['get']('TrackChangesEditing'),_0x132f25=_0x1ec3c7['locale'],_0x3ad418=_0x1ec3c7['config']['get']('style')||{},_0x376636=_0x1ec3c7['plugins']['get']('GeneralHtmlSupport'),_0xc9fab2=_0x1ec3c7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1ec3c7['plugins']['get']('DataSchema'),_0x3ad418['definitions']);_0x5857c7['enableDefaultAttributesIntegration']('style');const _0x495dd3=new Set();for(const _0x590e10 of _0xc9fab2['block']){const _0xa04f40=_0x376636['getGhsAttributeNameForElement'](_0x590e10['element']);_0x495dd3['add'](_0xa04f40);}const _0xed45c1=new Set();for(const _0x7420fc of _0xc9fab2['inline']){const _0xde7f0e=_0x376636['getGhsAttributeNameForElement'](_0x7420fc['element']);_0xed45c1['add'](_0xde7f0e);for(const _0xf25163 of _0x7420fc['ghsAttributes'])_0xed45c1['add'](_0xf25163);}for(const _0x29c8b9 of _0x495dd3)_0x5857c7['registerBlockAttribute'](_0x29c8b9),_0x5857c7['descriptionFactory']['registerAttributeLabel'](_0x29c8b9,o(_0x132f25,'FORMAT_STYLE'));for(const _0xb1b501 of _0xed45c1)_0x5857c7['registerInlineAttribute'](_0xb1b501),_0x5857c7['descriptionFactory']['registerAttributeLabel'](_0xb1b501,o(_0x132f25,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11d844=this['editor'],_0x9e1af3=_0x11d844['locale'];_0x11d844['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26741a=>{if('formatBlock'!=_0x26741a['type']&&'formatInline'!=_0x26741a['type'])return;const {data:_0x35bcc4}=_0x26741a;return _0x35bcc4&&'style'===_0x35bcc4['commandName']?_0x35bcc4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9e1af3,'*Set\x20format:*\x20%0',_0x35bcc4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x9e1af3,'*Remove\x20format:*\x20%0',_0x35bcc4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4a3ee7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x14b9fb){super(_0x14b9fb),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x52bb7b=this['editor'],_0x2db396=_0x52bb7b['model']['document']['selection'];if(!_0x52bb7b['plugins']['has']('TableEditing'))return;const _0x2d1063=_0x52bb7b['locale'],_0x1a14ad=_0x52bb7b['plugins']['get']('TrackChangesEditing'),_0x592869=_0x52bb7b['plugins']['get']('TableUtils');_0x1a14ad['descriptionFactory']['registerElementLabel']('table',_0x46e1c2=>o(_0x2d1063,'ELEMENT_TABLE',_0x46e1c2)),this['_setupColumnsRowsFixing'](),_0x1a14ad['enableCommand']('insertTable'),_0x1a14ad['enableCommand']('selectTableRow'),_0x1a14ad['enableCommand']('selectTableColumn');for(const _0x5b823a of['insertTableRowAbove','insertTableRowBelow']){const _0x28bc0e=_0x52bb7b['commands']['get'](_0x5b823a);_0x1a14ad['enableCommand'](_0x5b823a,_0x1ad512=>{_0x52bb7b['model']['change'](_0xd0e3f=>{_0x1ad512();const _0x37bb62='above'===_0x28bc0e['order'],_0x53182a=_0x592869['getSelectionAffectedTableCells'](_0x2db396),_0x276436=_0x592869['getRowIndexes'](_0x53182a),_0xaf5a5f=_0x37bb62?_0x276436['first']-0x1:_0x276436['last']+0x1,_0x4b7dcf=_0x53182a[0x0]['findAncestor']('table'),_0x375470=_0x592869['createTableWalker'](_0x4b7dcf,{'startRow':_0xaf5a5f,'endRow':_0xaf5a5f}),_0x1ba3ce=Array['from'](_0x375470)['map'](_0x431b1a=>_0xd0e3f['createRangeOn'](_0x431b1a['cell']));_0x1a14ad['markMultiRangeInsertion'](_0x1ba3ce,'tableRow');});});}for(const _0x201230 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4bacc1=_0x52bb7b['commands']['get'](_0x201230);_0x1a14ad['enableCommand'](_0x201230,_0x441980=>{_0x52bb7b['model']['change'](_0x525f73=>{_0x441980();const _0x3d2ee9='left'===_0x4bacc1['order'],_0x35ddbf=_0x592869['getSelectionAffectedTableCells'](_0x2db396),_0x1c72fb=_0x592869['getColumnIndexes'](_0x35ddbf),_0x36deb3=_0x3d2ee9?_0x1c72fb['first']-0x1:_0x1c72fb['last']+0x1,_0x36220d=_0x35ddbf[0x0]['findAncestor']('table'),_0x3ae15b=_0x592869['createTableWalker'](_0x36220d,{'startRow':0x0,'column':_0x36deb3,'includeAllSlots':!0x1}),_0x319bab=Array['from'](_0x3ae15b)['map'](_0x502994=>_0x525f73['createRangeOn'](_0x502994['cell']));_0x1a14ad['markMultiRangeInsertion'](_0x319bab,'tableColumn');});});}for(const _0x3ca9a1 of['removeTableRow','removeTableColumn']){const _0x3c5234=_0x3ca9a1['substr'](0xb),_0x1232ef=_0x3c5234['toLowerCase'](),_0x2915ea=_0x1232ef['substr'](0x0,0x3)+'span',_0x2eac60='table'+_0x3c5234,_0x2b3e4b='min'+_0x3c5234,_0x1ef49f='max'+_0x3c5234;_0x1a14ad['enableCommand'](_0x3ca9a1,()=>{_0x52bb7b['model']['change'](_0x926e6c=>{const _0x2c59d6=_0x592869['getSelectionAffectedTableCells'](_0x2db396),_0x1a0e4b=_0x2c59d6[0x0]['findAncestor']('table');let _0x4497bd;if('removeTableRow'==_0x3ca9a1){const _0x1b0ea1=_0x592869['getRowIndexes'](_0x2c59d6);_0x4497bd={'startRow':_0x1b0ea1['first'],'endRow':_0x1b0ea1['last'],'includeAllSlots':!0x0};}else{const _0x19d844=_0x592869['getColumnIndexes'](_0x2c59d6);_0x4497bd={'startColumn':_0x19d844['first'],'endColumn':_0x19d844['last'],'includeAllSlots':!0x0};}const _0x4ec7a4=_0x592869['createTableWalker'](_0x1a0e4b,_0x4497bd),_0x18de99=Array['from'](_0x4ec7a4)['map'](({cell:_0x377a8b})=>_0x377a8b),_0x289461=Ee(_0x18de99['filter'](_0x14c98c=>_0x14c98c['hasAttribute'](_0x2915ea))),_0x39642b=Ee(_0x18de99['filter'](_0x43ebea=>!_0x43ebea['hasAttribute'](_0x2915ea)))['map'](_0x1290f6=>_0x926e6c['createRangeOn'](_0x1290f6)),_0x538cf2=_0x1a14ad['markMultiRangeDeletion'](_0x39642b,_0x2eac60);if(_0x538cf2&&('tableRow'==_0x538cf2['subType']||'tableColumn'==_0x538cf2['subType'])){const _0x755ba8=this['_getSuggestionCoords'](_0x538cf2);for(const _0x418b36 of _0x289461){const _0x41ae21=_0x926e6c['createRangeOn'](_0x418b36),_0x4cf833=_0x592869['getCellLocation'](_0x418b36),_0x27ce0d=_0x418b36['getAttribute'](_0x2915ea)-0x1,_0x27807c=_0x755ba8[_0x2b3e4b],_0x491e0e=_0x755ba8[_0x1ef49f];_0x27807c<=_0x4cf833[_0x1232ef]&&_0x4cf833[_0x1232ef]+_0x27ce0d<=_0x491e0e&&_0x538cf2['addRange'](_0x41ae21);}}});});}function _0x48bba8(_0x558139){const _0x3aac75=Array['from'](_0x2db396['getRanges']())['map'](_0x43b708=>_0x1861aa['fromRange'](_0x43b708));_0x52bb7b['model']['change'](_0x1c5fe1=>{const _0x3dc3af=_0x1c5fe1['batch'];_0x558139=_0x558139['filter'](_0x470891=>'$graveyard'!=_0x470891['root']['rootName']),_0x1c5fe1['setSelection'](_0x558139),_0x52bb7b['commands']['get']('removeTableRow')['refresh'](),_0x52bb7b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x52bb7b['model']['enqueueChange'](()=>{_0x52bb7b['model']['enqueueChange'](_0x3dc3af,_0x329098=>{const _0x4003ec=_0x3aac75['filter'](_0x2a7b41=>'$graveyard'!=_0x2a7b41['root']['rootName']);_0x4003ec['length']>0x0&&_0x329098['setSelection'](_0x4003ec);for(const _0x4feb66 of _0x3aac75)_0x4feb66['detach']();});});});}function _0x1c0f1e(_0x3ba526){_0x52bb7b['model']['change'](_0x132e31=>{const _0x561812=Array['from'](_0x2db396['getRanges']())['map'](_0x299cf0=>_0x1861aa['fromRange'](_0x299cf0)),_0x4d03c1=[];for(const _0x3393a9 of _0x3ba526)for(const _0x2779aa of _0x3393a9['getItems']({'shallow':!0x0}))_0x4d03c1['push'](_0x2779aa);for(const _0x465c48 of _0x4d03c1)'$graveyard'!=_0x465c48['root']['rootName']&&(_0x132e31['setSelection'](_0x132e31['createPositionAt'](_0x465c48,0x0)),_0x52bb7b['commands']['get']('removeTableColumn')['refresh'](),_0x52bb7b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x19bea2=_0x561812['filter'](_0x28148a=>'$graveyard'!=_0x28148a['root']['rootName']);_0x19bea2['length']>0x0&&_0x132e31['setSelection'](_0x19bea2);for(const _0x26e9ee of _0x561812)_0x26e9ee['detach']();});}function _0x5926ee(_0x2e9069,_0x494698){return _0x494698['every'](_0x5b58d4=>_0x2e9069['some'](_0x401d7a=>_0x401d7a['end']['isEqual'](_0x5b58d4['start'])||_0x5b58d4['end']['isEqual'](_0x401d7a['start'])));}function _0x14809a(_0x1a805d,_0x446968){return!_0x1a805d['some'](_0x318977=>_0x446968['some'](_0x145d9d=>_0x318977['isIntersecting'](_0x145d9d)))&&_0x1a805d['some'](_0x33c7ce=>_0x446968['some'](_0x4f1824=>_0x33c7ce['end']['isTouching'](_0x4f1824['start'])));}_0x52bb7b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x41100e,_0x3b51f9,_0x2941ff)=>{if(!_0x2941ff['options']['showSuggestionHighlights'])return;const _0x3eb764=_0x3b51f9['item'];if(!_0x3eb764)return;const _0x127352=_0x2941ff['mapper']['toViewElement'](_0x3eb764);function _0x230da3(_0x4f37dd){return Array['isArray'](_0x4f37dd)?_0x4f37dd:[_0x4f37dd];}_0x127352&&'tableCell'===_0x3eb764['name']&&_0x127f2f(_0x127352,_0x2941ff['writer'],(_0x4bbd2d,_0x256e75,_0x4e38dc)=>_0x4e38dc['addClass'](_0x230da3(_0x256e75['classes']),_0x4bbd2d),(_0x43b325,_0x225beb,_0x24f3c4)=>_0x24f3c4['removeClass'](_0x230da3(_0x225beb['classes']),_0x43b325));},{'priority':'highest'}),_0x1a14ad['descriptionFactory']['registerDescriptionCallback'](_0x393b52=>{if('insertion'!=_0x393b52['type']&&'deletion'!=_0x393b52['type'])return;const _0x4a7e11=_0x393b52['getContainedElement']();if(null!=_0x4a7e11&&_0x4a7e11['is']('element','table')){if('insertion'==_0x393b52['type']){const _0x26fc08=_0x393b52['getItems']()['filter'](_0x4d5ab9=>_0x4d5ab9['is']('$textProxy'))['map'](_0x28e8f2=>_0x28e8f2['data']);if(_0x26fc08['length'])return{'type':'insertion','content':o(_0x2d1063,'*Insert:*\x20%0',o(_0x2d1063,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x26fc08['join']('\x20')+'\x22'))};}if('deletion'==_0x393b52['type']){const _0x220f7b=_0x393b52['getItems']()['filter'](_0x24f66c=>_0x24f66c['is']('$textProxy'))['map'](_0x1de6dc=>_0x1de6dc['data']);if(_0x220f7b['length'])return{'type':'deletion','content':o(_0x2d1063,'*Remove:*\x20%0',o(_0x2d1063,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x220f7b['join']('\x20')+'\x22'))};}}}),_0x1a14ad['descriptionFactory']['registerDescriptionCallback'](_0x3f7938=>{if('tableRow'==_0x3f7938['subType']){const _0x6f31ca=_0x3f7938['getItems']()['filter'](_0x7becc2=>_0x7becc2['is']('$textProxy'))['map'](_0x29df49=>_0x29df49['data']),_0x19bcc7=this['_getSuggestionCoords'](_0x3f7938),_0xe1fa5b=_0x19bcc7['maxRow']-_0x19bcc7['minRow']+0x1;if('insertion'==_0x3f7938['type'])return _0x6f31ca['length']?{'type':'insertion','content':o(_0x2d1063,'*Insert:*\x20%0',o(_0x2d1063,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xe1fa5b,'\x22'+_0x6f31ca['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d1063,'*Insert:*\x20%0',o(_0x2d1063,'ELEMENT_TABLE_ROW',_0xe1fa5b))};if('deletion'==_0x3f7938['type'])return _0x6f31ca['length']?{'type':'deletion','content':o(_0x2d1063,'*Remove:*\x20%0',o(_0x2d1063,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xe1fa5b,'\x22'+_0x6f31ca['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d1063,'*Remove:*\x20%0',o(_0x2d1063,'ELEMENT_TABLE_ROW',_0xe1fa5b))};}if('tableColumn'==_0x3f7938['subType']){const _0x4a89b1=_0x3f7938['getItems']()['filter'](_0x165820=>_0x165820['is']('$textProxy'))['map'](_0x1af61a=>_0x1af61a['data']),_0xa1f4fa=this['_getSuggestionCoords'](_0x3f7938),_0x29b97a=_0xa1f4fa['maxColumn']-_0xa1f4fa['minColumn']+0x1;if('insertion'==_0x3f7938['type'])return _0x4a89b1['length']?{'type':'insertion','content':o(_0x2d1063,'*Insert:*\x20%0',o(_0x2d1063,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x29b97a,'\x22'+_0x4a89b1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d1063,'*Insert:*\x20%0',o(_0x2d1063,'ELEMENT_TABLE_COLUMN',_0x29b97a))};if('deletion'==_0x3f7938['type'])return _0x4a89b1['length']?{'type':'deletion','content':o(_0x2d1063,'*Remove:*\x20%0',o(_0x2d1063,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x29b97a,'\x22'+_0x4a89b1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d1063,'*Remove:*\x20%0',o(_0x2d1063,'ELEMENT_TABLE_COLUMN',_0x29b97a))};}}),_0x1a14ad['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x48bba8),_0x1a14ad['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x48bba8),_0x1a14ad['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1c0f1e),_0x1a14ad['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1c0f1e),_0x1a14ad['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5926ee),_0x1a14ad['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5926ee),_0x1a14ad['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x14809a),_0x1a14ad['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x14809a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x13d1e1=this['editor'],_0x49353a=_0x13d1e1['model']['document']['selection'];return(_0x3c89d1,_0x53572c)=>{_0x13d1e1['model']['change'](_0x37f6d=>{const {commandName:_0x4d7ace,commandParams:_0x5cc572}=_0x53572c;let _0x54a77e=_0x3c89d1[0x0]['end']['nodeBefore'];_0x5cc572&&_0x5cc572[0x0]&&!0x1===_0x5cc572[0x0]['forceValue']&&(_0x54a77e=_0x3c89d1[0x0]['start']['nodeAfter']);const _0x4881aa=_0x37f6d['createRangeIn'](_0x54a77e);if('$graveyard'==_0x4881aa['root']['rootName'])return;const _0x10f844=Array['from'](_0x49353a['getRanges']())['map'](_0x17e28a=>_0x1861aa['fromRange'](_0x17e28a));_0x37f6d['setSelection'](_0x4881aa),_0x13d1e1['commands']['get'](_0x4d7ace)['refresh'](),_0x5cc572['push']({'forceDefaultExecution':!0x0}),_0x13d1e1['execute'](_0x4d7ace,..._0x5cc572);const _0x308662=_0x10f844['filter'](_0x363879=>'$graveyard'!=_0x363879['root']['rootName']);_0x308662['length']>0x0&&_0x37f6d['setSelection'](_0x308662);for(const _0x53186a of _0x10f844)_0x53186a['detach']();});};}['_getCoordsForCells'](_0x4d4d1b){const _0x612916=this['editor']['plugins']['get']('TableUtils');let _0x1d26e5=Number['MAX_SAFE_INTEGER'],_0x4f808e=Number['MIN_SAFE_INTEGER'],_0x4b2528=Number['MAX_SAFE_INTEGER'],_0x5d4369=Number['MIN_SAFE_INTEGER'];for(const _0x38cd2a of _0x4d4d1b){if('$graveyard'==_0x38cd2a['root']['rootName'])continue;const {row:_0x13906a,column:_0x5dfa03}=_0x612916['getCellLocation'](_0x38cd2a),_0x39360d=_0x38cd2a['hasAttribute']('rowspan')?_0x38cd2a['getAttribute']('rowspan')-0x1:0x0,_0x737724=_0x38cd2a['hasAttribute']('colspan')?_0x38cd2a['getAttribute']('colspan')-0x1:0x0;_0x1d26e5=_0x13906a<_0x1d26e5?_0x13906a:_0x1d26e5,_0x4f808e=_0x13906a+_0x39360d>_0x4f808e?_0x13906a+_0x39360d:_0x4f808e,_0x4b2528=_0x5dfa03<_0x4b2528?_0x5dfa03:_0x4b2528,_0x5d4369=_0x5dfa03+_0x737724>_0x5d4369?_0x5dfa03+_0x737724:_0x5d4369;}return{'minRow':_0x1d26e5,'maxRow':_0x4f808e,'minColumn':_0x4b2528,'maxColumn':_0x5d4369};}['_setupColumnsRowsFixing'](){const _0x50b267=this['editor'],_0x50d127=_0x50b267['plugins']['get']('TrackChangesEditing'),_0x329c19=_0x50b267['plugins']['get']('TableUtils');_0x50b267['model']['document']['on']('change:data',()=>{const _0xd4fe55=Array['from'](_0x50b267['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x594fa5,data:_0x186a07}of _0xd4fe55){const {group:_0x8af20b,id:_0x596047,subType:_0x44cad8}=_0x50d127['_splitMarkerName'](_0x594fa5);if('suggestion'!=_0x8af20b)continue;if(null!=_0x186a07['oldRange'])continue;const _0x5d6cce=_0x50d127['getSuggestion'](_0x596047);this['_tablePostFixingSubtypes']['includes'](_0x44cad8)&&this['_tableSuggestions']['add'](_0x5d6cce);}},{'priority':'low'});const _0x6ea22e=(_0x511f72,_0x2b7bfd)=>{let _0x4088e7=!0x1;const _0x467481=_0x2b7bfd['createRangeOn'](_0x511f72),_0x1752cf=_0x511f72['findAncestor']('table'),_0x28ae09=_0x329c19['getCellLocation'](_0x511f72);for(const _0x24d880 of this['_tableSuggestions']){const _0x380114=_0x24d880['subType'],_0x3817e5=_0x380114['startsWith']('tablePaste'),_0x145647=_0x380114['substr'](_0x3817e5?0xa:0x5),_0x5dd2ad=_0x145647['toLowerCase'](),_0x310426=_0x5dd2ad['substr'](0x0,0x3)+'span',_0x30de9c='min'+_0x145647,_0x1d3828='max'+_0x145647;if(!_0x24d880['isInContent'])continue;if(_0x1752cf!=_0x24d880['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x24d880['isIntersectingWithRange'](_0x467481))continue;const _0x959cd2=_0x511f72['hasAttribute'](_0x310426)?_0x511f72['getAttribute'](_0x310426)-0x1:0x0,_0x3ae9b9=this['_getSuggestionCoords'](_0x24d880),_0x4ca421=_0x3ae9b9[_0x30de9c],_0x4662e1=_0x3ae9b9[_0x1d3828];_0x4ca421<=_0x28ae09[_0x5dd2ad]&&_0x28ae09[_0x5dd2ad]+_0x959cd2<=_0x4662e1&&(_0x24d880['addRange'](_0x467481),_0x4088e7=!0x0);}return _0x4088e7;};_0x50b267['model']['document']['registerPostFixer'](_0xf0e2da=>{let _0x54778f=!0x1;for(const _0x1b0f6e of _0x50b267['model']['document']['differ']['getChanges']())if('insert'==_0x1b0f6e['type']){if('tableRow'==_0x1b0f6e['name']){for(const _0x2de5f9 of _0x1b0f6e['position']['nodeAfter']['getChildren']())_0x54778f=_0x54778f||_0x6ea22e(_0x2de5f9,_0xf0e2da);}else'tableCell'==_0x1b0f6e['name']&&(_0x54778f=_0x54778f||_0x6ea22e(_0x1b0f6e['position']['nodeAfter'],_0xf0e2da));}return _0x54778f;});}['_getSuggestionCoords'](_0x12296e){return this['_getCoordsForCells'](_0x12296e['getRanges']()['map'](_0x15ab19=>_0x15ab19['start']['nodeAfter']));}}function Ee(_0x2fb224){return Array['from'](new Set(_0x2fb224)['values']());}class St extends _0x4a3ee7{static get['requires'](){return[jt];}['afterInit'](){const _0x393f59=this['editor'],_0x394e62=_0x393f59['model']['document']['selection'],_0x5d2ea1=_0x393f59['locale'];if(!_0x393f59['plugins']['has']('TableEditing'))return;const _0x229a95=_0x393f59['plugins']['get']('TrackChangesEditing'),_0x1787d4=_0x393f59['plugins']['get']('TableUtils'),_0x17f817=_0x393f59['plugins']['get'](jt);_0x17f817['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x229a95['enableCommand']('mergeTableCells',()=>{const _0x10328f=_0x1787d4['getSelectionAffectedTableCells'](_0x393f59['model']['document']['selection']);_0x393f59['model']['change'](()=>{_0x229a95['markMultiRangeBlockFormat'](_0x10328f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x393f59['commands']['get']('mergeTableCells')['on']('execute',(_0x53a305,_0x96ffd1)=>{_0x393f59['commands']['get']('trackChanges')['value']&&(_0x96ffd1['length']>0x0&&_0x96ffd1[_0x96ffd1['length']-0x1]&&_0x96ffd1[_0x96ffd1['length']-0x1]['forceDefaultExecution']||_0x229a95['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x53a305['stop']());},{'priority':'highest'});for(const _0x4a4990 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5cb246=_0x393f59['commands']['get'](_0x4a4990);_0x229a95['enableCommand'](_0x4a4990,()=>{const _0x42d146=_0x393f59['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x574f9f=>_0x574f9f['is']('element','tableCell')),_0x414394=_0x5cb246['value'];_0x393f59['model']['change'](()=>{_0x229a95['markMultiRangeBlockFormat']([_0x42d146,_0x414394],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4a8f30 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x38c8c9=_0x393f59['commands']['get'](_0x4a8f30);_0x229a95['enableCommand'](_0x4a8f30,()=>{const _0x2d85b7=_0x1787d4['getSelectionAffectedTableCells'](_0x393f59['model']['document']['selection'])[0x0],_0x4f1692=_0x2d85b7['findAncestor']('table'),{column:_0x415dc3,row:_0x8418ea}=_0x1787d4['getCellLocation'](_0x2d85b7);let _0x53c892=[];if('horizontally'==_0x38c8c9['direction']){const _0x7061bc=_0x1787d4['createTableWalker'](_0x4f1692,{'startRow':_0x8418ea,'endRow':_0x8418ea,'includeAllSlots':!0x0});_0x53c892=Array['from'](_0x7061bc)['map'](_0x3e1d88=>_0x3e1d88['cell']);}else{const _0x4ca64d=_0x1787d4['createTableWalker'](_0x4f1692,{'column':_0x415dc3,'includeAllSlots':!0x0});_0x53c892=Array['from'](_0x4ca64d)['map'](_0x4a3c33=>_0x4a3c33['cell']);}_0x393f59['model']['change'](_0x2f605a=>{_0x229a95['markBlockFormat'](_0x2f605a['createRangeOn'](_0x2d85b7),{'commandName':_0x4a8f30,'commandParams':[]},_0x53c892,_0x4a8f30);});});}_0x229a95['descriptionFactory']['registerDescriptionCallback'](_0x564151=>{if('formatBlock'!=_0x564151['type']&&'formatInline'!=_0x564151['type'])return;const {data:_0x144e5d}=_0x564151;return _0x144e5d&&'mergeTableCells'==_0x144e5d['commandName']?{'type':'format','content':o(_0x5d2ea1,'*Merge\x20cells*')}:void 0x0;}),_0x229a95['descriptionFactory']['registerDescriptionCallback'](_0x2c47de=>{if('formatBlock'!=_0x2c47de['type']&&'formatInline'!=_0x2c47de['type'])return;const {data:_0x26fe4d}=_0x2c47de;return _0x26fe4d?'splitTableCellVertically'==_0x26fe4d['commandName']?{'type':'format','content':o(_0x5d2ea1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x26fe4d['commandName']?{'type':'format','content':o(_0x5d2ea1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x427a16=_0x17f817['_acceptFormatSuggestionCallbackFactory']();for(const _0x57e1bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x229a95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57e1bd,'accept',_0x427a16);for(const _0x492fd4 of['splitTableCellVertically','splitTableCellHorizontally'])_0x229a95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x492fd4,'accept',_0x427a16);_0x229a95['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x31513e=>{_0x393f59['model']['change'](_0x36fe8e=>{const _0x57b74f=Array['from'](_0x394e62['getRanges']())['map'](_0x3a91ab=>_0x1861aa['fromRange'](_0x3a91ab));_0x36fe8e['setSelection'](_0x31513e),_0x393f59['commands']['get']('mergeTableCells')['refresh'](),_0x393f59['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x16d09c=_0x57b74f['filter'](_0x220089=>'$graveyard'!=_0x220089['root']['rootName']);_0x16d09c['length']>0x0&&_0x36fe8e['setSelection'](_0x16d09c);for(const _0x3d2391 of _0x57b74f)_0x3d2391['detach']();});});for(const _0x35905c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5e29e9=_0x393f59['commands']['get'](_0x35905c);_0x5e29e9['on']('set:isEnabled',(_0x832333,_0x1e64ad,_0x1e2914)=>{if(_0x1e2914){const _0x3885e2=_0x393f59['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e0848=>_0x3e0848['is']('element','tableCell'));this['_areMergableCells'](_0x5e29e9['value'],_0x3885e2)||(_0x832333['return']=!0x1,_0x832333['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x36f764=this['editor']['commands']['get']('mergeTableCells'),_0x445b7b=this['editor']['plugins']['get']('TableUtils');if(!_0x36f764['isEnabled'])return!0x1;const _0x431646=_0x445b7b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x15661d of _0x431646)for(const _0x131579 of _0x431646)if(_0x15661d!=_0x131579&&!this['_areMergableCells'](_0x15661d,_0x131579))return!0x1;return!0x0;}['_areMergableCells'](_0x354f93,_0x4fc86f){const _0x47cefa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x348961=this['editor']['model']['createRangeOn'](_0x354f93),_0x4bead0=this['editor']['model']['createRangeOn'](_0x4fc86f),_0x23f361=new Set(),_0x3e774f=new Set();for(const _0x28fd37 of _0x47cefa['getSuggestions']())if(('insertion'==_0x28fd37['type']||'deletion'==_0x28fd37['type']||'mergeTableCells'==_0x28fd37['subType'])&&_0x28fd37['isInContent']){for(const _0x5f01ce of _0x28fd37['getRanges']())_0x5f01ce['containsRange'](_0x348961,!0x0)&&_0x23f361['add'](_0x28fd37['type']+':'+_0x28fd37['author']['id']),_0x5f01ce['containsRange'](_0x4bead0,!0x0)&&_0x3e774f['add'](_0x28fd37['type']+':'+_0x28fd37['author']['id']);}if(_0x23f361['size']!=_0x3e774f['size'])return!0x1;for(const _0x363bc3 of _0x23f361)if(!_0x3e774f['has'](_0x363bc3))return!0x1;return!0x0;}}class At extends _0x4a3ee7{static get['requires'](){return[jt];}['afterInit'](){const _0xc280=this['editor'];if(!_0xc280['plugins']['has']('TableEditing'))return;const _0x411250=_0xc280['locale'],_0x129c75=_0xc280['plugins']['get']('TrackChangesEditing');_0x129c75['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x129c75['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x129c75['registerBlockAttribute']('headingRows'),_0x129c75['registerBlockAttribute']('headingColumns'),_0x129c75['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x411250,'FORMAT_HEADER_ROW')),_0x129c75['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x411250,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x294d75=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb315c0=this['editor']['plugins']['get']('TableUtils'),_0x598c27=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1697d3({showActiveMarker:_0x26589f=!0x0,setDataAttribute:_0x54ba8b=!0x0}={}){return(_0x5af8e1,_0x3a942e,_0x15c919)=>{const {type:_0x34e2e5,id:_0x2c3147}=_0x294d75['_splitMarkerName'](_0x3a942e['markerName']),_0x114d72=_0x294d75['getSuggestion'](_0x2c3147),_0x4edad9=_0x114d72['data'];if('formatBlock'!=_0x114d72['type']||!_0x4edad9||'setTableColumnHeader'!=_0x4edad9['commandName'])return;if(_0x3a942e['item'])return void _0x5af8e1['stop']();if(!_0x15c919['consumable']['consume'](_0x3a942e['markerRange'],_0x5af8e1['name']))return;const _0x244fb0=_0x3a942e['markerRange']['start']['nodeAfter'],_0x22ddf2=_0x3a942e['markerRange']['end']['nodeBefore'],_0x834921=_0x244fb0['parent']['parent'],{column:_0x3f47ff}=_0xb315c0['getCellLocation'](_0x244fb0),{column:_0x366b94}=_0xb315c0['getCellLocation'](_0x22ddf2);for(let _0x2751c8=_0x3f47ff;_0x2751c8<=_0x366b94;_0x2751c8++){const _0x408627=_0xb315c0['createTableWalker'](_0x834921,{'column':_0x2751c8,'includeAllSlots':!0x1});for(const _0x1bea8b of _0x408627){const _0x3992da=_0x1bea8b['cell'],_0x2f78a5=_0x15c919['mapper']['toViewElement'](_0x3992da);_0x15c919['writer']['addClass']('ck-suggestion-marker-'+_0x34e2e5,_0x2f78a5),_0x54ba8b&&_0x15c919['writer']['setAttribute']('data-suggestion',_0x2c3147,_0x2f78a5),_0x15c919['mapper']['bindElementToMarker'](_0x2f78a5,_0x3a942e['markerName']),_0x26589f&&(_0x294d75['activeMarkers']['includes'](_0x3a942e['markerName'])?_0x15c919['writer']['addClass']('ck-suggestion-marker--active',_0x2f78a5):_0x15c919['writer']['removeClass']('ck-suggestion-marker--active',_0x2f78a5));}}};}_0x294d75['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x598c27),_0x294d75['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x598c27),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1697d3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x430bc0,_0x54764,_0x29c33e)=>{_0x29c33e['options']['showSuggestionHighlights']&&_0x1697d3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x430bc0,_0x54764,_0x29c33e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3a8a2c,_0x4f4e5c,_0x15d09b)=>{const {type:_0x14182a,id:_0x455b9a}=_0x294d75['_splitMarkerName'](_0x4f4e5c['markerName']),_0x1bf993=_0x294d75['getSuggestion'](_0x455b9a),_0x47bb4d=_0x1bf993['data'];if('formatBlock'!=_0x1bf993['type']||!_0x47bb4d||'setTableColumnHeader'!=_0x47bb4d['commandName'])return;const _0x347f6f=_0x15d09b['mapper']['markerNameToElements'](_0x4f4e5c['markerName']);if(_0x347f6f){for(const _0x1e1aeb of _0x347f6f)_0x15d09b['writer']['removeClass']('ck-suggestion-marker-'+_0x14182a,_0x1e1aeb),_0x15d09b['writer']['removeClass']('ck-suggestion-marker--active',_0x1e1aeb),_0x15d09b['writer']['removeAttribute']('data-suggestion',_0x1e1aeb),_0x15d09b['mapper']['unbindElementFromMarkerName'](_0x1e1aeb,_0x4f4e5c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x274d4a=this['editor'],_0x1ef509=_0x274d4a['locale'];function _0x286aaf(_0x553771){return{'type':'format','content':o(_0x1ef509,'*Format:*\x20%0',_0x553771)};}_0x274d4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x454e82=>{if('formatBlock'!=_0x454e82['type'])return;const {data:_0x349cb4}=_0x454e82;if(_0x349cb4){if('setTableRowHeader'==_0x349cb4['commandName']){const _0x14fc31=_0x349cb4['commandParams'][0x0]['forceValue'];return _0x286aaf(o(_0x1ef509,_0x14fc31?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x349cb4['commandName']){const _0x44d0cb=_0x349cb4['commandParams'][0x0]['forceValue'];return _0x286aaf(o(_0x1ef509,_0x44d0cb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2a668d=>[_0x2a668d,null]));class It extends _0x4a3ee7{static get['requires'](){return[jt];}['afterInit'](){const _0x24a7f5=this['editor'];if(!_0x24a7f5['plugins']['has']('TableClipboard'))return;const _0x567c4e=_0x24a7f5['plugins']['get']('TrackChangesEditing'),_0x341734=_0x24a7f5['plugins']['get']('TableUtils'),_0x4d1aba=_0x24a7f5['plugins']['get'](jt),_0x2c3785=_0x24a7f5['plugins']['get']('TableClipboard');_0x4d1aba['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x24a7f5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x24a7f5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3c3582=null;_0x24a7f5['model']['on']('insertContent',(_0x5f3d39,_0xf0f16d)=>{const [_0x2516e5,_0x5dffb8]=_0xf0f16d,_0x33d93a=_0xf0f16d[_0xf0f16d['length']-0x1];_0x33d93a&&_0x33d93a['forceDefaultExecution']||_0x567c4e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14193b,_0x4b4683,_0xb36cf9,_0x346b3d,_0x77a670){if(_0x4b4683&&!_0x4b4683['is']('documentSelection'))return!0x1;const _0x515b3e=_0x77a670['getTableIfOnlyTableInContent'](_0x14193b,_0xb36cf9);if(!_0x515b3e||!he(_0x515b3e,void 0x0,_0x346b3d))return!0x1;const _0x21339c=_0x346b3d['getSelectionAffectedTableCells'](_0xb36cf9['document']['selection']);if(!_0x21339c['length'])return!0x1;const _0x2f61b5=_0x21339c[0x0]['findAncestor']('table'),_0x791b=_0x346b3d['getRowIndexes'](_0x21339c),_0x4fa8ba=_0x346b3d['getColumnIndexes'](_0x21339c),_0x27d237={'startRow':_0x791b['first'],'endRow':_0x791b['last'],'startColumn':_0x4fa8ba['first'],'endColumn':_0x4fa8ba['last']};return 0x1==_0x21339c['length']&&(_0x27d237['endRow']+=_0x346b3d['getRows'](_0x515b3e)-0x1,_0x27d237['endColumn']+=_0x346b3d['getColumns'](_0x515b3e)-0x1),he(_0x2f61b5,_0x27d237,_0x346b3d);}(_0x2516e5,_0x5dffb8,_0x24a7f5['model'],_0x341734,_0x2c3785)&&(_0x5f3d39['stop'](),_0x3c3582={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x24a7f5['model']['change'](()=>{_0x24a7f5['model']['insertContent'](_0xf0f16d[0x0],_0xf0f16d[0x1],_0xf0f16d[0x2],{'forceDefaultExecution':!0x0});const _0xd4524e=_0x24ebe0(),{rowInsertionRanges:_0x1c7740,columnInsertionRanges:_0x31eea7,insertionRanges:_0x5c9b3b,deletionRanges:_0x1489f0,cells:_0x3cccc2}=_0x3c3582;_0x1c7740['length']&&_0x567c4e['markMultiRangeInsertion'](_0x1c7740,'tablePasteRow',{'tablePasteChainId':_0xd4524e}),_0x31eea7['length']&&_0x567c4e['markMultiRangeInsertion'](_0x31eea7,'tablePasteColumn',{'tablePasteChainId':_0xd4524e}),_0x5c9b3b['length']&&(_0x567c4e['markMultiRangeInsertion'](_0x5c9b3b,'tablePaste',{'tablePasteChainId':_0xd4524e,'skipNestingCheck':!0x0}),_0x5c9b3b['forEach'](_0x35a4b1=>_0x35a4b1['detach']?.())),_0x1489f0['length']&&(_0x567c4e['markMultiRangeDeletion'](_0x1489f0,'tablePaste',{'tablePasteChainId':_0xd4524e,'skipNestingCheck':!0x0}),_0x1489f0['forEach'](_0x2352c7=>_0x2352c7['detach']?.()));const _0xc61316=_0x567c4e['markMultiRangeBlockFormat'](_0x3cccc2['map'](({element:_0x46f8a2})=>_0x46f8a2),{'formatGroupId':_0x24ebe0()},[],'tablePasteCell',{'tablePasteChainId':_0xd4524e});if(_0xc61316){const _0x36ce43=_0xc61316['getMarkers'](),_0xccdf3=[];for(const {element:_0x239e10,attributes:_0x441a01}of _0x3cccc2){if(!_0x441a01)continue;const _0x5aa75e=_0x24a7f5['model']['createRangeOn'](_0x239e10),_0x21c5a1=_0x36ce43['find'](_0x329ba7=>_0x329ba7['getRange']()['isEqual'](_0x5aa75e));_0x21c5a1&&_0xccdf3['push']([_0x21c5a1['name'],_0x441a01]);}_0xccdf3['length']&&_0xc61316['setAttribute']('markerAttributes',Object['fromEntries'](_0xccdf3));}_0x3c3582=null;}));},{'priority':_0x50a0d6['high']+0xa}),_0x24a7f5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5da89d,_0x28555c)=>{const [_0x4225a0,_0x20a99b,,_0x47a598]=_0x28555c;if(!_0x3c3582)return;_0x5da89d['stop']();const _0x5d72ad=_0x4225a0['cell'],_0x2abc9e=_0x20a99b,_0xbbc60c=Pe(_0x5d72ad),_0x71751b=Pe(_0x2abc9e);_0x5da89d['return']=_0x5d72ad;let _0x17b59a=null,_0x3c1f3a=null;if(_0x71751b||_0xbbc60c){if(_0xbbc60c&&!_0x71751b){_0x47a598['remove'](_0x5d72ad['getChild'](0x0));for(const _0xa3e62a of Array['from'](_0x2abc9e['getChildren']()))_0x47a598['insert'](_0xa3e62a,_0x5d72ad,'end');const _0x3bda57=_0x3c3582['rowInsertionIndexes']['includes'](_0x4225a0['row']),_0x3f98a8=_0x3c3582['columnInsertionIndexes']['includes'](_0x4225a0['column']);_0x3bda57||_0x3f98a8||(_0x17b59a=_0x1861aa['fromRange'](_0x47a598['createRangeIn'](_0x5d72ad)));}else _0x71751b&&!_0xbbc60c&&(_0x3c1f3a=_0x47a598['createRangeIn'](_0x5d72ad));}else{const _0x472c78=_0x47a598['createElement']('tableCellSuggestion'),_0x5be71b=_0x47a598['createElement']('tableCellSuggestion');_0x47a598['wrap'](_0x47a598['createRangeIn'](_0x5d72ad),_0x5be71b),_0x47a598['insert'](_0x472c78,_0x5d72ad,0x0);for(const _0x36e258 of Array['from'](_0x2abc9e['getChildren']()))_0x47a598['insert'](_0x36e258,_0x472c78,'end');_0x17b59a=_0x1861aa['fromRange'](_0x47a598['createRangeOn'](_0x472c78)),_0x3c1f3a=_0x1861aa['fromRange'](_0x47a598['createRangeOn'](_0x5be71b));}const _0x255b89=Array['from'](_0x2abc9e['getAttributes']())['filter'](([_0x56e94f])=>ge['includes'](_0x56e94f));_0x3c3582['cells']['push']({'element':_0x5d72ad,'attributes':_0x255b89['length']?Object['fromEntries'](_0x255b89):null}),_0x17b59a&&_0x3c3582['insertionRanges']['push'](_0x17b59a),_0x3c1f3a&&_0x3c3582['deletionRanges']['push'](_0x3c1f3a);},{'priority':'high'}),_0x341734['on']('insertColumns',(_0x25b1a2,_0x25a5d0)=>{const [_0x3e3e30,_0x397d30={}]=_0x25a5d0;if(!_0x3c3582)return;const _0x50d05f=_0x397d30['at']||0x0,_0x188089=_0x397d30['columns']||0x1;_0x3c3582['columnInsertionIndexes']=new Array(_0x188089)['fill'](_0x50d05f)['map']((_0x3f7b03,_0x4b4270)=>_0x3f7b03+_0x4b4270);for(const {cell:_0x136ec6}of _0x341734['createTableWalker'](_0x3e3e30,{'startColumn':_0x50d05f,'endColumn':_0x50d05f+_0x188089-0x1}))_0x3c3582['columnInsertionRanges']['push'](_0x24a7f5['model']['createRangeOn'](_0x136ec6));},{'priority':'low'}),_0x341734['on']('insertRows',(_0x49f119,_0x1e40bc)=>{const [_0x4cc94e,_0x2724c5={}]=_0x1e40bc;if(!_0x3c3582)return;const _0x1780c0=_0x2724c5['at']||0x0,_0xcde583=_0x2724c5['rows']||0x1;_0x3c3582['rowInsertionIndexes']=new Array(_0xcde583)['fill'](_0x1780c0)['map']((_0x167ee6,_0x3babaf)=>_0x167ee6+_0x3babaf);for(const {cell:_0x3fcf53}of _0x341734['createTableWalker'](_0x4cc94e,{'startRow':_0x1780c0,'endRow':_0x1780c0+_0xcde583-0x1}))_0x3c3582['rowInsertionRanges']['push'](_0x24a7f5['model']['createRangeOn'](_0x3fcf53));},{'priority':'low'}),_0x567c4e['descriptionFactory']['registerDescriptionCallback'](_0x34d1cd=>{if(_0x34d1cd['subType']&&_0x34d1cd['subType']['startsWith']('tablePaste'))return _0x34d1cd['previous']?{}:{'type':'insertion','content':o(_0x24a7f5['locale'],'*Replace\x20table\x20cells*')};});const _0x311819=()=>!0x1;for(const _0x3c1d89 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x567c4e['_suggestionFactory']['registerCustomCallback']('insertion',_0x3c1d89,'join',_0x311819),_0x567c4e['_suggestionFactory']['registerCustomCallback']('deletion',_0x3c1d89,'join',_0x311819),_0x567c4e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c1d89,'join',_0x311819);_0x567c4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x311819),_0x567c4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x23947b,_0x4289da,_0x4ae820)=>{const _0x2b8811=_0x23947b['map'](_0x316386=>_0x316386['getContainedElement']())['filter'](_0x25dc14=>_0x25dc14),_0x5e9a8e=new Map(_0x2b8811['map'](_0x37bf4c=>[_0x37bf4c,null]));if(_0x3c3582){for(const {element:_0x49c639,attributes:_0x4bec90}of _0x3c3582['cells'])_0x4bec90&&_0x5e9a8e['set'](_0x49c639,_0x4bec90);}else{if(_0x4ae820&&_0x4ae820['markerAttributes'])for(const [_0x41b9f2,_0x3623ac]of Object['entries'](_0x4ae820['markerAttributes'])){const _0x27b017=_0x24a7f5['model']['markers']['get'](_0x41b9f2),_0x131c1d=_0x27b017?_0x27b017['getRange']()['getContainedElement']():null;_0x131c1d&&_0x5e9a8e['set'](_0x131c1d,_0x3623ac);}}_0x24a7f5['model']['change'](_0x2b43b8=>{for(const [_0x3ee484,_0x4b7dea]of _0x5e9a8e)_0x2b43b8['setAttributes']({...Ce,..._0x4b7dea},_0x3ee484);});});const _0x194db9=(_0x47d4b0,_0x4d7c14)=>{_0x567c4e['_suggestionFactory']['registerCustomCallback'](_0x47d4b0,'tablePaste',_0x4d7c14,(_0x3302c8,_0x1825e7,_0xbfdc2c)=>{_0x24a7f5['model']['change'](_0x2a2e8e=>{const _0x1f8d6a=[];for(const _0x27940c of _0x3302c8){const _0x36c8b0=_0x27940c['start']['nodeAfter'];_0x36c8b0['is']('element','tableCellSuggestion')&&_0x1f8d6a['push'](_0x36c8b0);}_0x567c4e['_suggestionFactory']['getSuggestionCallback'](_0x47d4b0,null,_0x4d7c14)(_0x3302c8,_0x1825e7,_0xbfdc2c);for(const _0x408f0b of _0x1f8d6a)'$graveyard'!=_0x408f0b['root']['rootName']&&_0x2a2e8e['unwrap'](_0x408f0b);});});};_0x194db9('insertion','accept'),_0x194db9('insertion','discard'),_0x194db9('deletion','accept'),_0x194db9('deletion','discard'),_0x567c4e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3d563c=>{const _0xf4dcce=_0x3d563c['map'](_0x4d6073=>_0x4d6073['getContainedElement']()),_0x2611d9=_0xf4dcce[0x0]['findAncestor']('table'),{minRow:_0x333a3a,maxRow:_0x558ff7}=_0x4d1aba['_getCoordsForCells'](_0xf4dcce);_0x341734['removeRows'](_0x2611d9,{'at':_0x333a3a,'rows':_0x558ff7-_0x333a3a+0x1});}),_0x567c4e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x176553=>{const _0x4538ff=_0x176553['map'](_0xb3df0f=>_0xb3df0f['getContainedElement']()),_0x58e29f=_0x4538ff[0x0]['findAncestor']('table'),{minColumn:_0x76d2f1,maxColumn:_0x17f16d}=_0x4d1aba['_getCoordsForCells'](_0x4538ff);_0x341734['removeColumns'](_0x58e29f,{'at':_0x76d2f1,'columns':_0x17f16d-_0x76d2f1+0x1});});const _0x4a34f2=(_0x4edfd3,_0x424ea2)=>{if(!_0x424ea2['subType']||!_0x424ea2['subType']['startsWith']('tablePaste'))return;const _0x5d9e89=_0x424ea2['attributes']['tablePasteChainId'],_0x50742b=_0x567c4e['getSuggestions']()['filter'](_0x3f5f84=>_0x3f5f84['isInContent']&&_0x3f5f84['attributes']&&_0x3f5f84['attributes']['tablePasteChainId']==_0x5d9e89);_0x50742b['length']&&_0x424ea2['getAllAdjacentSuggestions']()['length']!=_0x50742b['length']&&_0x50742b['reduce']((_0x27a115,_0x2daf3f)=>(_0x27a115['next']=_0x2daf3f,_0x2daf3f['previous']=_0x27a115,_0x2daf3f));};function _0x51bc19(_0xfebf99,_0x2b4ff8=!0x0){const {id:_0x20b040}=_0x567c4e['_splitMarkerName'](_0xfebf99['markerName']),_0x20b30d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2cdbb4=_0x567c4e['activeMarkers']['includes'](_0xfebf99['markerName']);return _0x2cdbb4&&_0x20b30d['push']('ck-suggestion-marker--active'),{'classes':_0x20b30d,'attributes':{'data-suggestion':_0x20b040},'priority':_0x2cdbb4&&_0x2b4ff8?0xbc2:0xbb8};}_0x567c4e['on']('suggestionLoaded',_0x4a34f2,{'priority':'high'}),_0x567c4e['on']('suggestionUnloaded',_0x4a34f2,{'priority':'high'}),_0x24a7f5['model']['document']['registerPostFixer'](()=>{let _0x3ddedc=!0x1;const _0x12db35=Array['from'](_0x24a7f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x401b04,data:_0x57bf14}of _0x12db35){const {group:_0x2f2e11,type:_0x12e201,id:_0xbe1c80}=_0x567c4e['_splitMarkerName'](_0x401b04);if('suggestion'!=_0x2f2e11||'deletion'!=_0x12e201||_0x57bf14['oldRange'])continue;if(!_0x567c4e['hasSuggestion'](_0xbe1c80))continue;const _0x2ad8b4=_0x567c4e['getSuggestion'](_0xbe1c80)['getRanges'](),_0x1d3fce=_0x24a7f5['plugins']['get']('Users')['me'];for(const _0x3ab601 of _0x567c4e['getSuggestions']()){if(!_0x3ab601['isInContent']||_0x3ab601['author']!=_0x1d3fce)continue;if('formatBlock'!=_0x3ab601['type']||'tablePasteCell'!=_0x3ab601['subType'])continue;if(_0x3ab601['getRanges']()['every'](_0x1e0293=>_0x2ad8b4['some'](_0x464702=>_0x464702['containsRange'](_0x1e0293,!0x0)))){for(const _0x1cd5e0 of _0x3ab601['getAllAdjacentSuggestions']())_0x1cd5e0['isInContent']&&(_0x1cd5e0['discard'](),_0x3ddedc=!0x0);}}}return _0x3ddedc;}),_0x24a7f5['model']['document']['registerPostFixer'](_0x2770be=>{const _0x2f0320=_0x24a7f5['commands']['get']('redo');if(!_0x2f0320||!_0x2f0320['_createdBatches']['has'](_0x2770be['batch']))return!0x1;let _0xb9501d=!0x1;const _0x426b42=_0x24a7f5['plugins']['get']('Users')['me'],_0x5ced70=_0x24a7f5['model']['document']['differ']['getChanges'](),_0x43c7eb=Array['from'](_0x24a7f5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3de770,data:_0x20e185})=>{const {group:_0x31b317,subType:_0x2f7369,authorId:_0x2d8ec3}=_0x567c4e['_splitMarkerName'](_0x3de770);return'suggestion'==_0x31b317&&'tablePaste'==_0x2f7369&&_0x2d8ec3==_0x426b42['id']&&!_0x20e185['oldRange'];});for(const _0x4456a6 of _0x5ced70){if('insert'!=_0x4456a6['type']||'tableCellSuggestion'!=_0x4456a6['name']||0x1!=_0x4456a6['length'])continue;const _0x34131f=_0x2770be['createRange'](_0x4456a6['position'],_0x4456a6['position']['getShiftedBy'](0x1));if(!_0x43c7eb['find'](({data:_0x437fb9})=>_0x437fb9['newRange']['isEqual'](_0x34131f))){for(const {name:_0x1ee6d8,data:_0x45eb62}of _0x43c7eb)if(_0x34131f['containsRange'](_0x45eb62['newRange'])){_0x2770be['updateMarker'](_0x1ee6d8,{'range':_0x34131f}),_0xb9501d=!0x0;break;}}}return _0xb9501d;}),_0x24a7f5['model']['document']['registerPostFixer'](_0x2528a5=>{let _0x30c12c=!0x1;const _0x525b8f=_0x24a7f5['plugins']['get']('Users')['me'],_0x980a94=_0x567c4e['getSuggestions']()['filter'](_0x4bec5d=>_0x4bec5d['isInContent']&&_0x4bec5d['author']==_0x525b8f),_0xb59e67=new Set(),_0x322570=new Set();for(const _0x455154 of _0x980a94)if('tablePaste'==_0x455154['subType'])for(const _0x1e4a51 of _0x455154['getMarkers']()){const _0x58e6f1=_0x1e4a51['getRange']()['getContainedElement']();if(_0x58e6f1){if(_0x58e6f1['is']('element','tableCellSuggestion')&&Pe(_0x58e6f1)){_0x455154['removeMarker'](_0x1e4a51['name']),_0xb59e67['add'](_0x58e6f1),_0x30c12c=!0x0;const _0xb070ce=_0x58e6f1['nextSibling'],_0x17bc9d=_0x58e6f1['previousSibling'],_0x23424d=_0xb070ce&&_0xb070ce['is']('element','tableCellSuggestion'),_0x30c86e=_0x17bc9d&&_0x17bc9d['is']('element','tableCellSuggestion');_0x23424d&&!_0xb59e67['has'](_0xb070ce)&&_0x322570['add'](_0xb070ce),_0x30c86e&&!_0xb59e67['has'](_0x17bc9d)&&_0x322570['add'](_0x17bc9d);}else _0x58e6f1['is']('element','paragraph')&&_0x58e6f1['isEmpty']&&(_0x455154['removeMarker'](_0x1e4a51['name']),_0x30c12c=!0x0);}}else{if('tablePasteCell'==_0x455154['subType']){if(!_0x455154['attributes']||!_0x455154['attributes']['tablePasteChainId'])continue;const _0x5a8414=_0x455154['attributes']['markerAttributes'];if(_0x5a8414&&Object['keys'](_0x5a8414)['length'])continue;const _0x3cd19e=_0x455154['attributes']['tablePasteChainId'];let _0x2b8349=!0x0,_0x51b699=!0x0;for(const _0x2be24a of _0x980a94)if(_0x2be24a['subType']&&_0x2be24a['subType']['startsWith']('tablePaste')){if(!_0x2be24a['attributes']['tablePasteChainId']){_0x51b699=!0x1;break;}if(_0x2be24a['id']!=_0x455154['id']&&_0x2be24a['attributes']['tablePasteChainId']==_0x3cd19e){_0x2b8349=!0x1;break;}}_0x51b699&&_0x2b8349&&(_0x455154['removeMarkers'](),_0x30c12c=!0x0);}}for(const _0x1e3f33 of _0xb59e67)_0x2528a5['remove'](_0x1e3f33);for(const _0x6079a6 of _0x322570)_0x2528a5['unwrap'](_0x6079a6);return _0x30c12c;}),_0x24a7f5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x7156d5,_0x2d1c18)=>_0x51bc19(_0x7156d5),'converterPriority':'high'}),_0x24a7f5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5c4d47,_0x1bb7dd)=>_0x1bb7dd['options']['showSuggestionHighlights']?_0x51bc19(_0x5c4d47,!0x1):null,'converterPriority':'high'});const _0x30fedf=_0x24a7f5['editing']['view'];this['listenTo'](_0x30fedf['document'],'clipboardOutput',(_0x521f2b,_0x2155c5)=>{const _0x6dffef=[];for(const _0x198b4b of _0x30fedf['createRangeIn'](_0x2155c5['content'])['getItems']())_0x198b4b['is']('element','suggestion-td')&&_0x6dffef['push'](_0x198b4b);_0x30fedf['change'](_0x568a51=>{for(const _0x36cb3 of _0x6dffef)_0x568a51['move'](_0x568a51['createRangeIn'](_0x36cb3),_0x568a51['createPositionBefore'](_0x36cb3)),_0x568a51['remove'](_0x36cb3);});});}}function Pe(_0x1c51b4){if(_0x1c51b4['isEmpty'])return!0x0;const _0x203791=_0x1c51b4['getChild'](0x0);return _0x203791['is']('element','paragraph')&&_0x203791['isEmpty'];}function he(_0x3818ec,_0x46727e={},_0x4b94f0){for(const {isAnchor:_0xe819df,cellHeight:_0x3047d2,cellWidth:_0x5b4d16}of _0x4b94f0['createTableWalker'](_0x3818ec,{'includeAllSlots':!0x0,..._0x46727e}))if(!_0xe819df||0x1!=_0x3047d2||0x1!=_0x5b4d16)return!0x1;return!0x0;}class vt extends _0x4a3ee7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x25d7b3=this['editor']['plugins']['get']('TrackChangesEditing');_0x25d7b3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x25d7b3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x25d7b3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25d7b3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x25d7b3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x25d7b3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x24036f,_0x9fec95){const _0x3d6003=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c23aa=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x158b19=_0x9fec95['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x359cbb=_0x2c23aa['getColumnGroupElement'](_0x158b19);let _0x5c7236=_0x359cbb?_0x2c23aa['getTableColumnsWidths'](_0x359cbb):null,_0x145871=_0x158b19['getAttribute']('tableWidth')||null;const _0x194977=_0x9fec95['tableWidth']||_0x145871,_0x589a23=_0x9fec95['columnWidths']||_0x5c7236,_0x3d6346=this['editor']['plugins']['get']('Users')['me'];for(const _0x3358c6 of _0x3d6003['getSuggestions']()){const _0x39a3b8=_0x3358c6['getContainedElement']();if('resizeTable'===_0x3358c6['subType']&&_0x39a3b8===_0x158b19){_0x3358c6['author']!==_0x3d6346&&_0x3358c6['discard']();const _0x20e165=_0x3358c6['data']['commandParams'];_0x145871=_0x20e165[0x0]['tableWidth'],_0x5c7236=_0x20e165[0x0]['columnWidths'];break;}}_0x24036f({'table':_0x158b19,'tableWidth':_0x194977,'columnWidths':_0x589a23}),_0x3d6003['markBlockFormat'](_0x158b19,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x145871,'columnWidths':_0x5c7236}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x25b2d9){if('formatBlock'!=_0x25b2d9['type']&&'formatInline'!=_0x25b2d9['type'])return;const {data:_0x5f3edd}=_0x25b2d9;if(_0x5f3edd&&'resizeTable'===_0x5f3edd['formatGroupId']){const _0x157440='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x157440)};}}}class Ct extends _0x4a3ee7{['afterInit'](){const _0x165f3b=this['editor'];_0x165f3b['plugins']['has']('Template')&&_0x165f3b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4a3ee7{['afterInit'](){const _0x336c88=this['editor'];if(!_0x336c88['commands']['get']('insertTableOfContents'))return;_0x336c88['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x199bbe=_0x336c88['plugins']['get']('TrackChangesEditing'),_0x2c9949=_0x336c88['locale'];_0x199bbe['descriptionFactory']['registerElementLabel']('tableOfContents',_0x24739a=>o(_0x2c9949,'ELEMENT_TABLE_OF_CONTENTS',_0x24739a));}}class Dt extends _0x4a3ee7{['afterInit'](){const _0x5ab610=this['editor'];if(!_0x5ab610['plugins']['has']('Title'))return;const _0x39c1f3=_0x5ab610['plugins']['get']('TrackChangesEditing');_0x39c1f3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5ab610['locale'],'ELEMENT_TITLE')),_0x5ab610['model']['document']['registerPostFixer'](_0x8fc8fb=>{let _0x1d0f7a=!0x1;const _0x3eb87d=Array['from'](_0x5ab610['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4afc3b,data:_0x409727}of _0x3eb87d){const {group:_0x24627b}=_0x39c1f3['_splitMarkerName'](_0x4afc3b);if('suggestion'!==_0x24627b||!_0x409727['newRange'])continue;const _0xce2ea5=_0x409727['newRange'],_0x7592d9=_0xce2ea5['end']['nodeBefore'];if(!_0x7592d9||!_0x7592d9['is']('element','title-content'))continue;if(!_0xce2ea5['start']['isTouching'](_0xce2ea5['end']))continue;const _0x2959f2=_0x5ab610['model']['schema']['getNearestSelectionRange'](_0xce2ea5['end'],'forward');if(_0x2959f2&&_0x2959f2['isCollapsed']){const _0x52684a=_0x8fc8fb['createRange'](_0xce2ea5['start'],_0x2959f2['start']);_0x52684a['isEqual'](_0xce2ea5)||(_0x8fc8fb['updateMarker'](_0x4afc3b,{'range':_0x52684a}),_0x1d0f7a=!0x0);}_0x1d0f7a||(_0x8fc8fb['removeMarker'](_0x4afc3b),_0x1d0f7a=!0x0);}return _0x1d0f7a;});}}class Nt extends _0x4a3ee7{['afterInit'](){const _0x3a9f6e=this['editor'],_0x41e0eb=_0x3a9f6e['plugins']['get']('TrackChangesEditing');_0x3a9f6e['plugins']['has']('UndoEditing')&&(_0x41e0eb['enableCommand']('undo'),_0x41e0eb['enableCommand']('redo'));}}class Mt extends _0x4a3ee7{static get['requires'](){return[jt];}['afterInit'](){const _0x4d357c=this['editor'];if(!_0x4d357c['plugins']['has']('TableCaptionEditing'))return;_0x4d357c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4a3ee7{['tableProperties'];['tableCellProperties'];constructor(_0xfe30f3){super(_0xfe30f3),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x797416=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x58f69e of this['tableProperties'])_0x797416['enableCommand'](_0x58f69e,(_0x2131c4,_0x23ce84)=>{const _0x1404b9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x58f69e,[_0x1404b9],this['tableProperties'],'tableProperties',_0x2131c4,_0x23ce84);});_0x797416['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x797416['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x797416['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5302b0,_0x1c1537)=>this['handleDiscardAction'](this['tableProperties'],_0x5302b0,_0x1c1537)),_0x797416['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x568829 of this['tableCellProperties'])_0x797416['enableCommand'](_0x568829,(_0x3c0dd4,_0x37b26f)=>{const _0x5b4e36=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x568829,_0x5b4e36,this['tableCellProperties'],'tableCellProperties',_0x3c0dd4,_0x37b26f);});_0x797416['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x797416['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x797416['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x464612,_0x56aa62)=>this['handleDiscardAction'](this['tableCellProperties'],_0x464612,_0x56aa62)),_0x797416['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x797416['descriptionFactory']['registerDescriptionCallback'](_0x1b9390=>this['handleSuggestionDescription'](_0x1b9390));}['_handlePropertyChange'](_0x2d3c68,_0x22bd9a,_0x60c24f,_0x1f27ed,_0x189205,_0x30a45b){const _0x341721=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30a45b['batch'],()=>{for(const _0x232de6 of _0x22bd9a){if(this['_getSuggestion'](_0x232de6,_0x1f27ed))_0x189205(_0x30a45b);else{const _0x4e976f={};for(const _0xe63861 of _0x60c24f){const _0x27622c=_0x232de6['getAttribute'](_0xe63861);void 0x0!==_0x27622c&&(_0x4e976f[_0xe63861]=_0x27622c);}_0x189205(_0x30a45b),_0x341721['markBlockFormat'](_0x232de6,{'commandParams':[_0x4e976f]},[],_0x1f27ed);}}});}['handleDiscardAction'](_0xe1ab68,_0x52a84a,_0x316708){const _0x6d3787=_0x52a84a[0x0]['start']['nodeAfter'],_0x20e333=_0x316708['commandParams'][0x0];this['editor']['model']['change'](_0x134fdb=>{for(const _0x3464a8 of _0xe1ab68)void 0x0!==_0x20e333[_0x3464a8]?_0x134fdb['setAttribute'](_0x3464a8,_0x20e333[_0x3464a8],_0x6d3787):_0x134fdb['removeAttribute'](_0x3464a8,_0x6d3787);});}['handleSuggestionDescription'](_0x254299){if(_0x254299['data'])switch(_0x254299['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2badec,_0x2f9e26){const _0x5bf2ca=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x43b33a of _0x5bf2ca['getSuggestions']({'skipNotAttached':!0x0})){const _0xaacbc=_0x43b33a['getContainedElement']();if(_0x43b33a['subType']===_0x2f9e26&&_0xaacbc===_0x2badec)return _0x43b33a;}return null;}}const m='$elementName';class p extends _0x4a3ee7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x595072,_0x2d73d2,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x17a26b){function _0x5a33d3(_0x577354){return _0x577354['map'](_0x3d287f=>String['fromCharCode'](_0x3d287f))['join']('');}super(_0x17a26b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x33f76e,_0x2eb89c,_0x25d4c4,_0x5ccd50)=>{this['_model']['change'](()=>{for(const _0x592739 of[..._0x5ccd50,..._0x25d4c4])this['_model']['markers']['has'](_0x592739)&&_0x17a26b['editing']['reconvertMarker'](_0x592739);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x17a26b['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x17a26b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x17a26b['config']['get']('trackChanges.trackFormatChanges'),_0x17a26b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x17a26b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x17a26b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5a33d3([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5a33d3([0x34,0x30,0x34,0x38,0x31,0x34,0x31,0x38]);}['init'](){const _0x534ed2=this['editor'],_0xcd68c3=(_0x3dd107,_0x10e33d)=>{if('attribute'!=_0x3dd107)return'ck-suggestion-marker-'+_0x3dd107;const _0x4d4c93=_0x10e33d['split']('|')[0x0];return this['_isBlockAttribute'](_0x4d4c93)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x534ed2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x485a35=>{const {id:_0x8044cd,type:_0x131b2a,subType:_0x57e9b6}=this['_splitMarkerName'](_0x485a35['markerName']),_0x6340f5=['ck-suggestion-marker',_0xcd68c3(_0x131b2a,_0x57e9b6)];let _0xc8ca2e=0xbb8;return this['activeMarkers']['includes'](_0x485a35['markerName'])&&(_0x6340f5['push']('ck-suggestion-marker--active'),_0xc8ca2e=0xbc2),'deletion'==_0x131b2a&&(_0xc8ca2e+=0x5),{'classes':_0x6340f5,'attributes':{'data-suggestion':_0x8044cd},'priority':_0xc8ca2e};}}),_0x534ed2['conversion']['for']('dataDowncast')['add'](_0x1a2dce=>{_0x1a2dce['on']('addMarker:suggestion',(_0x51c560,_0xd3f62c,_0x5a2e9a)=>{if(!_0x5a2e9a['options']['showSuggestionHighlights'])return;const _0x5325c6=_0xd3f62c['item'];if(!_0x5325c6)return;const _0x30141d=_0x5a2e9a['mapper']['toViewElement'](_0x5325c6);_0x534ed2['model']['schema']['isObject'](_0x5325c6)&&_0x30141d&&!_0x30141d['getCustomProperty']('widget')&&_0x30141d['is']('containerElement')&&_0x51be66(_0x30141d,_0x5a2e9a['writer']);},{'priority':'high'});}),_0x534ed2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2ab655,_0x1bc438)=>{if(!_0x1bc438['options']['showSuggestionHighlights'])return null;const {type:_0x2ea6d5,subType:_0x282b26}=this['_splitMarkerName'](_0x2ab655['markerName']);return{'classes':['ck-suggestion-marker',_0xcd68c3(_0x2ea6d5,_0x282b26)],'priority':0xbb8};}});const _0x29dce5=({showActiveMarkers:_0x5cd4a0=!0x0,isAttributeSuggestion:_0x1a4848=!0x1}={})=>(_0x492685,_0x383d1d,_0x56352b)=>{if(!_0x383d1d['item'])return;const {id:_0x53cebf}=this['_splitMarkerName'](_0x383d1d['markerName']);if(_0x1a4848){const _0xeaa956=this['_suggestions']['get'](_0x53cebf),_0x164c41=this['_getAttributeKey'](_0xeaa956);if(!this['_isBlockAttribute'](_0x164c41))return;}if(_0x383d1d['item']['is']('selection'))return void _0x56352b['consumable']['consume'](_0x383d1d['item'],_0x492685['name']);const _0x43f8ee=_0x56352b['mapper']['toViewElement'](_0x383d1d['item']);if(_0x383d1d['item']['is']('element')&&_0x534ed2['model']['schema']['isBlock'](_0x383d1d['item'])&&!_0x43f8ee['getCustomProperty']('addHighlight')){_0x56352b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x43f8ee),_0x56352b['writer']['setAttribute']('data-suggestion',_0x53cebf,_0x43f8ee),_0x56352b['mapper']['bindElementToMarker'](_0x43f8ee,_0x383d1d['markerName']),_0x5cd4a0&&(this['activeMarkers']['includes'](_0x383d1d['markerName'])?_0x56352b['writer']['addClass']('ck-suggestion-marker--active',_0x43f8ee):_0x56352b['writer']['removeClass']('ck-suggestion-marker--active',_0x43f8ee));for(const _0x5d73f4 of _0x534ed2['model']['createRangeIn'](_0x383d1d['item'])['getItems']())_0x56352b['consumable']['consume'](_0x5d73f4,_0x492685['name']);_0x56352b['consumable']['consume'](_0x383d1d['item'],_0x492685['name']);}};_0x534ed2['conversion']['for']('dataDowncast')['add'](_0xedcdde=>{_0xedcdde['on']('addMarker:suggestion:formatBlock',(_0x5384d7,_0x297267,_0x5ccc96)=>{_0x5ccc96['options']['showSuggestionHighlights']&&_0x29dce5({'showActiveMarkers':!0x1})(_0x5384d7,_0x297267,_0x5ccc96);},{'priority':'highest'});}),_0x534ed2['conversion']['for']('dataDowncast')['add'](_0x20dfe1=>{_0x20dfe1['on']('addMarker:suggestion:attribute',(_0x382470,_0x4ce052,_0x15cf68)=>{_0x15cf68['options']['showSuggestionHighlights']&&_0x29dce5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x382470,_0x4ce052,_0x15cf68);},{'priority':'highest'});}),_0x534ed2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x544451,_0x4db89d)=>_0x4db89d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x544451['substr'](0xb)}}),_0x534ed2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xc3d5d5,{writer:_0x17cd3c})=>{let _0x189c01='suggestion:'+_0xc3d5d5['getAttribute']('suggestion-type')+':'+_0xc3d5d5['getAttribute']('id');return _0xc3d5d5['getAttribute']('marker-count')&&(_0x189c01+=':'+_0xc3d5d5['getAttribute']('marker-count')),_0x17cd3c['createElement']('$marker',{'data-name':_0x189c01});}}),_0x534ed2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x534ed2['conversion']['for']('editingDowncast')['add'](_0x6a204f=>{_0x6a204f['on']('addMarker:suggestion:formatBlock',_0x29dce5(),{'priority':'high'});}),_0x534ed2['conversion']['for']('editingDowncast')['add'](_0x43fb83=>{_0x43fb83['on']('addMarker:suggestion:attribute',_0x29dce5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x534ed2['conversion']['for']('editingDowncast')['add'](_0x4f7fdb=>{_0x4f7fdb['on']('removeMarker:suggestion:formatBlock',(_0x207dac,_0x4d361f,_0x3cb171)=>{const _0x2e99ab=_0x3cb171['mapper']['markerNameToElements'](_0x4d361f['markerName']);if(_0x2e99ab){for(const _0x3195ca of _0x2e99ab)_0x3195ca['getCustomProperty']('addHighlight')||(_0x3cb171['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3195ca),_0x3cb171['writer']['removeAttribute']('data-suggestion',_0x3195ca),_0x3cb171['mapper']['unbindElementFromMarkerName'](_0x3195ca,_0x4d361f['markerName']));}},{'priority':'high'});}),_0x534ed2['conversion']['for']('editingDowncast')['add'](_0x1a7221=>{_0x1a7221['on']('removeMarker:suggestion:attribute',(_0x5eb652,_0x4f51e9,_0x4e40f5)=>{const _0x19e65d=_0x4e40f5['mapper']['markerNameToElements'](_0x4f51e9['markerName']);if(!_0x19e65d)return;const {id:_0x312794}=this['_splitMarkerName'](_0x4f51e9['markerName']),_0x5b1b54=this['_suggestions']['get'](_0x312794),_0x3e4d81=this['_getAttributeKey'](_0x5b1b54);if(this['_isBlockAttribute'](_0x3e4d81)){for(const _0x4a5b4f of _0x19e65d)_0x4a5b4f['getCustomProperty']('addHighlight')||(_0x4e40f5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4a5b4f),_0x4e40f5['writer']['removeAttribute']('data-suggestion',_0x4a5b4f),_0x4e40f5['mapper']['unbindElementFromMarkerName'](_0x4a5b4f,_0x4f51e9['markerName']));}},{'priority':'high'});}),_0x534ed2['model']['document']['registerPostFixer'](_0x7d94bd=>{let _0x1939da=!0x1;const _0x575228=Array['from'](_0x534ed2['model']['document']['differ']['getChangedMarkers']()),_0x386478=new Set();for(const {name:_0x434fbd,data:_0x5ac3a2}of _0x575228){const {group:_0x219fa7,type:_0x5cd6c0,subType:_0x5cfd54,id:_0x3e2a9d}=this['_splitMarkerName'](_0x434fbd);if('suggestion'!==_0x219fa7)continue;const _0x377733=this['_suggestions']['get'](_0x3e2a9d);if(null!=_0x5ac3a2['newRange']){'formatInline'==_0x5cd6c0&&(_0x1939da=_0x1939da||Et(_0x5ac3a2['newRange'],_0x434fbd,_0x7d94bd,_0x534ed2['model']['schema']));const _0xd45b23='attribute'==_0x5cd6c0&&this['_isBlockAttribute'](_0x5cfd54['split']('|')[0x0]);if(_0x5ac3a2['newRange']['isCollapsed']||'$graveyard'==_0x5ac3a2['newRange']['root']['rootName']||'formatBlock'==_0x5cd6c0&&!Ut(_0x5ac3a2['newRange'])||_0xd45b23&&!Ut(_0x5ac3a2['newRange'])||'deletion'==_0x5cd6c0&&!(!Tt(_0x2c6810=_0x5ac3a2['newRange'])&&!function(_0x3d8269){return _0x3d8269['start']['parent']==_0x3d8269['end']['nodeBefore']&&_0x3d8269['start']['isAtEnd'];}(_0x2c6810)))_0x7d94bd['removeMarker'](_0x434fbd),_0x1939da=!0x0;else{if(!_0x377733||!_0x377733['isInContent'])continue;_0x386478['add'](_0x377733);}}}var _0x2c6810;return _0x386478['size']>0x0&&(_0x1939da=!!this['_joinWithAdjacentSuggestions'](_0x386478)||_0x1939da),_0x1939da;}),_0x534ed2['model']['document']['registerPostFixer'](_0x1af466=>{let _0x478184=!0x1;for(const _0x4760c4 of _0x534ed2['model']['document']['differ']['getChanges']())if('insert'==_0x4760c4['type'])for(const _0x458c9b of this['_suggestions']['values']()){if(_0x458c9b['isMultiRange']||!_0x458c9b['isInContent'])continue;const _0x3aba31='formatBlock'==_0x458c9b['type'],_0x51793f=this['_getAttributeKey'](_0x458c9b),_0x2c0e5c=_0x51793f&&this['_isBlockAttribute'](_0x51793f);if(!_0x3aba31&&!_0x2c0e5c)continue;const _0x265fd4=_0x458c9b['getFirstRange']();if(_0x265fd4['start']['parent']!=_0x265fd4['end']['parent']&&!_0x265fd4['end']['isAtEnd']){const _0x595bdf=_0x534ed2['model']['createPositionAt'](_0x265fd4['start']['nodeAfter'],'end'),_0x5c51c4=_0x534ed2['model']['createRange'](_0x265fd4['start'],_0x595bdf);_0x1af466['updateMarker'](_0x458c9b['getFirstMarker'](),{'range':_0x5c51c4}),_0x478184=!0x0;}}return _0x478184;}),_0x534ed2['model']['document']['registerPostFixer'](_0x4b075a=>this['_processAttributeChanges'](_0x4b075a)),_0x534ed2['model']['document']['registerPostFixer'](_0x37bede=>!_0x37bede['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x37bede)),_0x534ed2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x534ed2['model']['document']['on']('change:data',(_0x5d8776,_0x67c8ca)=>{if(!_0x67c8ca['isLocal']||_0x67c8ca['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2ac4e2=_0x534ed2['model']['document']['differ']['getChanges']();if(0x0==_0x2ac4e2['length'])return;const _0x598f8c=[],_0x3e5c97=_0x2ac4e2['filter'](_0xc2491b=>'attribute'==_0xc2491b['type']),_0x35e896=_0x2ac4e2['filter'](_0x26c158=>'insert'==_0x26c158['type']&&'$text'!=_0x26c158['name']);for(const _0x5b08e4 of _0x3e5c97)this['_isRegisteredAttribute'](_0x5b08e4['attributeKey'])&&_0x598f8c['push']({'key':_0x5b08e4['attributeKey'],'newValue':_0x5b08e4['attributeNewValue'],'oldValue':_0x5b08e4['attributeOldValue'],'range':Ot(_0x5b08e4['range'],_0x534ed2['model'])});for(const _0x296979 of _0x35e896){if('rename'!=_0x296979['action']&&'refresh'!=_0x296979['action'])continue;const _0x1ea2b3=Gt(_0x296979['position']['nodeAfter'],_0x534ed2['model']),_0x42a0b6=_0x296979['before'];'rename'==_0x296979['action']&&_0x598f8c['push']({'key':m,'newValue':_0x296979['name'],'oldValue':_0x42a0b6['name'],'range':_0x1ea2b3});for(const [_0xb0f814,_0x111ea7]of _0x42a0b6['attributes']){if(!this['_isRegisteredAttribute'](_0xb0f814))continue;const _0x47fe49=_0x296979['attributes']['get'](_0xb0f814);_0x111ea7!==_0x47fe49&&_0x598f8c['push']({'key':_0xb0f814,'newValue':_0x47fe49,'oldValue':_0x111ea7,'range':_0x1ea2b3});}for(const [_0x545143,_0x1cbb44]of _0x296979['attributes'])this['_isRegisteredAttribute'](_0x545143)&&(_0x42a0b6['attributes']['has'](_0x545143)||_0x598f8c['push']({'key':_0x545143,'newValue':_0x1cbb44,'oldValue':null,'range':_0x1ea2b3}));}0x0!=_0x598f8c['length']&&_0x534ed2['model']['enqueueChange'](_0x67c8ca,_0xe85652=>{const _0x2650e3=_0x24ebe0();for(const {range:_0x291830,key:_0x5af967,oldValue:_0x4c023a,newValue:_0x3dc6d8}of _0x598f8c)this['markAttributeChange'](_0x291830,_0x5af967,_0x4c023a,_0x3dc6d8,{'groupId':_0x2650e3});this['_reduceExistingSuggestions'](_0xe85652,_0x598f8c);});},{'priority':'lowest'}),_0x534ed2['model']['markers']['on']('update:suggestion',(_0x4f17d0,_0x4606b8,_0xdb6d08)=>{if(null==_0xdb6d08){const {id:_0xf1936e}=this['_splitMarkerName'](_0x4606b8['name']),_0xd40229=this['_suggestions']['get'](_0xf1936e);_0xd40229&&_0xd40229['addMarkerName'](_0x4606b8['name']);}}),_0x534ed2['model']['document']['on']('change:data',()=>{const _0x284b1f=Array['from'](_0x534ed2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x43f799=>'suggestion'===this['_splitMarkerName'](_0x43f799['name'])['group']);if(0x0===_0x284b1f['length'])return;_0x284b1f['sort']((_0x535329,_0x2f30cd)=>{const _0x1168f9=_0x535329['data']['oldRange'],_0x29d498=_0x2f30cd['data']['oldRange'];return null===_0x1168f9&&null===_0x29d498?0x0:null===_0x1168f9&&null!==_0x29d498?-0x1:null!==_0x1168f9&&null===_0x29d498?0x1:_0x1168f9['start']['isBefore'](_0x29d498['start'])?-0x1:0x1;});const _0x3a2e6a=new Set(),_0x4b30e4=new Set();for(const {name:_0x3a50fd,data:_0x374a96}of _0x284b1f){const {id:_0x49e699}=this['_splitMarkerName'](_0x3a50fd);if(null===_0x374a96['oldRange']){const _0x2124f0=this['_handleNewSuggestionMarker'](_0x3a50fd);_0x4b30e4['add'](_0x2124f0);}else{const _0x5a2ba3=this['_suggestions']['get'](_0x49e699);null!==_0x374a96['newRange']||_0x5a2ba3['isInContent']?(_0x3a2e6a['add'](_0x5a2ba3['head']),_0x4b30e4['add'](_0x5a2ba3)):this['_removeSuggestion'](_0x5a2ba3);}}_0x4b30e4['size']>0x0&&this['_refreshSuggestionsChain'](_0x4b30e4);for(const _0x6f92a8 of _0x3a2e6a)this['fire']('suggestionChanged',_0x6f92a8);}),_0x534ed2['model']['on']('applyOperation',(_0x199a24,_0x5a054d)=>{const _0x40f1d6=_0x5a054d[0x0];if(!this['_suggestions']['size'])return;if(!_0x40f1d6['isDocumentOperation'])return;if(_0x40f1d6['batch']['isUndo']||!_0x40f1d6['batch']['isLocal'])return;let _0x3c3ab1,_0x3303ee;switch(_0x40f1d6['type']){case'insert':_0x3c3ab1=_0x534ed2['model']['createPositionAt'](_0x40f1d6['position']),_0x3303ee=_0x3c3ab1['getShiftedBy'](_0x40f1d6['howMany']);break;case'split':_0x3c3ab1=_0x534ed2['model']['createPositionAt'](_0x40f1d6['splitPosition']),_0x3303ee=_0x534ed2['model']['createPositionAt'](_0x40f1d6['moveTargetPosition']);break;case'move':_0x3c3ab1=_0x534ed2['model']['createPositionAt'](_0x40f1d6['targetPosition']),_0x3303ee=_0x3c3ab1['getShiftedBy'](_0x40f1d6['howMany']);break;default:return;}const _0x2c5d0c=_0x534ed2['model']['createRange'](_0x3c3ab1,_0x3303ee);_0x534ed2['model']['change'](()=>{for(const {suggestion:_0x5a8327,meta:_0x59e0aa}of this['_findSuggestions'](_0x2c5d0c)){if(_0x5a8327['isMultiRange'])continue;if('formatInline'==_0x5a8327['type'])continue;const _0x4ed137=this['_getAttributeKey'](_0x5a8327);if(_0x4ed137&&this['_isBlockAttribute'](_0x4ed137)&&'split'!=_0x40f1d6['type'])continue;const _0x15ada2=_0x5a8327['data']&&_0x5a8327['data']['multipleBlocks'];('formatBlock'!=_0x5a8327['type']||'split'==_0x40f1d6['type']&&!_0x15ada2)&&(_0x59e0aa['containsRangeInObject']||'insertion'==_0x5a8327['type']&&_0x59e0aa['isOwn']||_0x5a8327['getFirstRange']()['containsRange'](_0x2c5d0c)&&this['_breakSuggestionMarker'](_0x5a8327,_0x3c3ab1,_0x3303ee));}});},{'priority':'lowest'}),_0x534ed2['model']['on']('deleteContent',(_0x20e186,_0x113a85)=>{const _0x27317c=_0x113a85[0x0],_0x23fe30=_0x113a85[0x1];if(_0x23fe30&&_0x23fe30['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x27317c['isCollapsed'])return;const _0x13af5e=_0x534ed2['model']['schema'],{start:_0x2a3fc4,end:_0x1082ad}=_0x27317c['getFirstRange'](),_0x55b904=_0x2a3fc4['nodeAfter']&&_0x13af5e['isLimit'](_0x2a3fc4['nodeAfter'])?null:_0x13af5e['getNearestSelectionRange'](_0x2a3fc4,'forward'),_0x5b79c2=_0x1082ad['nodeBefore']&&_0x13af5e['isLimit'](_0x1082ad['nodeBefore'])?null:_0x13af5e['getNearestSelectionRange'](_0x1082ad,'backward'),_0x48f482=_0x534ed2['model']['createRange'](_0x55b904?_0x55b904['start']:_0x2a3fc4,_0x5b79c2?_0x5b79c2['end']:_0x1082ad);_0x534ed2['model']['change'](_0x5a58b5=>{this['markDeletion'](_0x48f482);const _0x393d47=_0x534ed2['model']['schema']['getNearestSelectionRange'](_0x48f482['start']);_0x27317c['is']('documentSelection')?_0x5a58b5['setSelection'](_0x393d47):_0x27317c['setTo'](_0x393d47);}),_0x20e186['stop']();},{'priority':_0x50a0d6['normal']+0xa}),_0x534ed2['model']['on']('insertContent',(_0x2708f4,_0x9731ad)=>{const _0x497231=_0x9731ad[_0x9731ad['length']-0x1];_0x497231&&_0x497231['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x534ed2['model']['change'](()=>{let _0x1304a0=_0x534ed2['model']['insertContent'](_0x9731ad[0x0],_0x9731ad[0x1],_0x9731ad[0x2],{'forceDefaultExecution':!0x0});if(!_0x1304a0)return;_0x2708f4['return']=_0x1304a0['clone']();const _0xaf8de4=_0x1304a0['end']['nodeBefore'],_0x444d6d=_0x534ed2['model']['schema'];_0xaf8de4&&_0x444d6d['isBlock'](_0xaf8de4)&&!_0x444d6d['isObject'](_0xaf8de4)&&(_0x1304a0=_0x534ed2['model']['createRange'](_0x1304a0['start'],_0x534ed2['model']['createPositionAt'](_0xaf8de4,'end'))),this['markInsertion'](_0x1304a0);}),_0x2708f4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x40669d=new $(_0x534ed2,this['_suggestions']);_0x534ed2['commands']['add']('acceptSuggestion',_0x40669d),this['enableCommand']('acceptSuggestion');const _0x1b8d16=new B(_0x534ed2,this['_suggestions']);_0x534ed2['commands']['add']('discardSuggestion',_0x1b8d16),this['enableCommand']('discardSuggestion'),_0x534ed2['commands']['add']('acceptAllSuggestions',new x(_0x534ed2,_0x40669d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x534ed2['commands']['add']('discardAllSuggestions',new x(_0x534ed2,_0x1b8d16,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x534ed2['commands']['add']('acceptSelectedSuggestions',new R(_0x534ed2,_0x40669d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x534ed2['commands']['add']('discardSelectedSuggestions',new R(_0x534ed2,_0x1b8d16,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5ce8ac=_0x534ed2['plugins']['get']('CommentsRepository');this['listenTo'](_0x5ce8ac,'addComment',(_0x576a21,{threadId:_0x24c693})=>{const _0x288b55=this['_suggestions']['get'](_0x24c693);_0x288b55&&_0x288b55['commentThread']&&0x1===_0x288b55['commentThread']['length']&&this['_updateSuggestionData'](_0x24c693,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5ce8ac,'removeComment',(_0x2c5a39,{threadId:_0x5da922})=>{const _0x165647=this['_suggestions']['get'](_0x5da922);_0x165647&&_0x165647['commentThread']&&!_0x165647['commentThread']['length']&&this['_updateSuggestionData'](_0x5da922,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3aa82d){if(this['_adapter'])throw new _0xf841e3('track-changes-adapter-already-set',this);this['_adapter']=_0x3aa82d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3a94aa=!0x1,toJSON:_0x2c0772=!0x1}={}){const _0x1f120e=[];for(const _0x4e3bfe of this['_suggestions']['values']())_0x3a94aa&&!_0x4e3bfe['isInContent']||_0x1f120e['push'](_0x4e3bfe);return _0x2c0772?_0x1f120e['map'](_0x2a466b=>_0x2a466b['toJSON']()):_0x1f120e;}['getSuggestion'](_0x3d12bb){const _0x324b91=this['_suggestions']['get'](_0x3d12bb);if(!_0x324b91)throw new _0xf841e3('track-changes-suggestion-not-found',this);return _0x324b91;}['hasSuggestion'](_0x1682f6){return this['_suggestions']['has'](_0x1682f6);}['addSuggestionData'](_0x3a0a9b){const {authorId:_0x30c301,id:_0x5aa0f0,attributes:_0x509d3d}=_0x3a0a9b,[_0x10e7cd,_0x448995]=_0x3a0a9b['type']['split'](':'),_0x195e37=this['_suggestions']['get'](_0x5aa0f0)||this['_createSuggestion'](_0x10e7cd,_0x448995,_0x5aa0f0,_0x30c301,_0x509d3d);if(this['_addThreadToSuggestion'](_0x195e37),this['_checkSuggestionCorrectness'](_0x195e37,_0x10e7cd,_0x448995||null,_0x30c301),_0x195e37['createdAt']=_0x3a0a9b['createdAt'],_0x195e37['_isDataLoaded']=!0x0,_0x509d3d&&_0x509d3d['@external']){const _0x2e3a7f=_0x509d3d['@external'],_0x25c6d0=this['_getExternalAuthor'](_0x2e3a7f['authorName']);_0x195e37['authoredAt']=_0x2e3a7f['createdAt'],_0x195e37['author']=_0x25c6d0,_0x195e37['isExternal']=!0x0;}else _0x195e37['authoredAt']=_0x3a0a9b['createdAt'];switch(_0x3a0a9b['data']&&(_0x195e37['data']=_0x3a0a9b['data']),_0x3a0a9b['attributes']&&(_0x195e37['attributes']=_0x3a0a9b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x195e37['_saved']=!0x0),this['_suggestionState']['get'](_0x195e37)){case'notReady':this['_suggestionState']['set'](_0x195e37,'dataReady');break;case'markerReady':_0x195e37['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x195e37])),this['_refreshSuggestionsChain'](new Set([_0x195e37])),this['_suggestionState']['set'](_0x195e37,'ready'),this['fire']('suggestionLoaded',_0x195e37)):this['_suggestionState']['set'](_0x195e37,'removed');}return _0x195e37;}['acceptSuggestion'](_0x4f9eb0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x53b2be of _0x4f9eb0['getAllAdjacentSuggestions']())_0x53b2be['accept']();});});}['discardSuggestion'](_0x50b53c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4bd886 of _0x50b53c['getAllAdjacentSuggestions']())_0x4bd886['discard']();});});}['enableCommand'](_0x598071,_0x2a69ae){const _0x288bac=this['editor']['commands']['get'](_0x598071);if(!_0x288bac)throw new _0xf841e3('track-changes-command-not-found',this,{'commandName':_0x598071});if(this['_enabledCommands']['has'](_0x288bac))throw new _0xf841e3('track-changes-enable-command-twice',this,{'commandName':_0x598071});this['_enabledCommands']['add'](_0x288bac),_0x2a69ae&&_0x288bac['on']('execute',(_0x317fb1,_0x2230a9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2230a9['length']>0x0&&_0x2230a9[_0x2230a9['length']-0x1]&&_0x2230a9[_0x2230a9['length']-0x1]['forceDefaultExecution']?_0x2230a9['pop']():(_0x317fb1['return']=_0x2a69ae((..._0x42c073)=>_0x288bac['execute'](..._0x42c073,{'forceDefaultExecution':!0x0}),..._0x2230a9),_0x317fb1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2baf30){let _0x41aa00,_0x4fed14;const _0x3068aa=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x41aa00=_0x2baf30();}catch(_0x52109a){_0x4fed14=_0x52109a;}return _0x3068aa||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4fed14&&_0xf841e3['rethrowUnexpectedError'](_0x4fed14,this),_0x41aa00;}['markInsertion'](_0x297772,_0x2b65ae=null,_0x35f6cf={}){if(_0x297772['isCollapsed'])return null;const _0x4cacd8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3d9406,meta:_0x48eb19}of this['_findSuggestions'](_0x297772,'insertion'))if(_0x48eb19['isOwn']){if(!_0x48eb19['isNextTo']){if(_0x48eb19['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3d9406,_0x35f6cf))continue;return _0x3d9406;}if(Lt(_0x3d9406,_0x35f6cf))return _0x3d9406;this['_breakSuggestionMarker'](_0x3d9406,_0x297772['start'],_0x297772['end']);break;}if(_0x2b65ae==_0x3d9406['subType']&&Lt(_0x3d9406,_0x35f6cf)){const _0x3af50c=_0x3d9406['getFirstRange']();return _0x3af50c['start']['isEqual'](_0x297772['end'])?this['_setSuggestionRange'](_0x3d9406,this['_model']['createRange'](_0x297772['start'],_0x3af50c['end'])):this['_setSuggestionRange'](_0x3d9406,this['_model']['createRange'](_0x3af50c['start'],_0x297772['end'])),_0x3d9406;}}const _0x2dfdfe=_0x24ebe0(),_0x4a73a0=_0x4cacd8['id'],_0x1b4f66=_0x2b65ae?'insertion:'+_0x2b65ae:'insertion',_0x55c951=this['_setSuggestionData']({'id':_0x2dfdfe,'type':_0x1b4f66,'createdAt':new Date(),'authorId':_0x4a73a0,'attributes':_0x35f6cf});return this['_addSuggestionMarker'](_0x1b4f66,_0x2dfdfe,_0x4a73a0,_0x297772),_0x55c951;}['markMultiRangeInsertion'](_0x57d1f6,_0x33e2f7='multi',_0x34d598={}){const _0x55d788=this['editor']['plugins']['get']('Users')['me'],_0x22c6c9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x33e2f7,'join');for(const _0x295468 of this['getSuggestions']())if(_0x295468['author']['id']==_0x55d788['id']&&'insertion'==_0x295468['type']&&_0x295468['subType']==_0x33e2f7&&Lt(_0x295468,_0x34d598)&&(_0x22c6c9(_0x295468['getRanges'](),_0x57d1f6)||_0x22c6c9(_0x57d1f6,_0x295468['getRanges']()))){for(const _0x53eac2 of _0x57d1f6)_0x295468['addRange'](_0x53eac2);return _0x295468;}for(const {suggestion:_0xf08d9,meta:_0x2a1b6e}of this['_findSuggestions'](_0x57d1f6,'insertion')){if(!_0x2a1b6e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2a1b6e['containsRangeInObject'])continue;if(!Lt(_0xf08d9,_0x34d598))continue;let _0x4d332d=!0x0;for(const _0x4835b7 of _0xf08d9['getRanges']())for(const _0x506598 of _0x57d1f6)if(!_0x4835b7['containsRange'](_0x506598)){_0x4d332d=!0x1;break;}if(_0x4d332d)return _0xf08d9;}const _0x51e036=_0x24ebe0(),_0x487747=_0x55d788['id'],_0x1525ac='insertion:'+_0x33e2f7,_0x279a13=this['_setSuggestionData']({'id':_0x51e036,'type':_0x1525ac,'createdAt':new Date(),'authorId':_0x487747,'attributes':_0x34d598});for(const _0x3e7084 of _0x57d1f6)this['_addSuggestionMarker'](_0x1525ac,_0x51e036,_0x487747,_0x3e7084,u['getMultiRangeId']());return _0x279a13;}['markInlineFormat'](_0x2af864,_0x5503d3,_0x34f457=null,_0x5595ff={}){if(_0x34f457=_0x34f457||Vt(_0x5503d3),_0x2af864['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x23d0c1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x34f457,'accept');return this['forceDefaultExecution'](()=>_0x23d0c1([_0x2af864],_0x5503d3,_0x5595ff)),null;}const _0x599b3a=this['editor']['plugins']['get']('Users')['me'],_0x5030b7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3b736c,meta:_0x1e88ea}of this['_findSuggestions'](_0x2af864,'insertion'))_0x1e88ea['isOwn']&&!_0x1e88ea['isInsideObject']&&_0x5030b7['push'](..._0x3b736c['getRanges']());}const _0x1e2807=function(_0x5238a5,_0x55e999){const _0x3bb507=[];for(const _0x798633 of _0x55e999){const _0x491967=_0x5238a5['getIntersection'](_0x798633);_0x491967&&_0x3bb507['push'](_0x491967);}return _0x3bb507;}(_0x2af864,_0x5030b7),_0x3cb61f=function(_0x18dad8,_0x14bb3b){const _0x2dc2c4=[_0x18dad8];for(const _0x5a0fbf of _0x14bb3b){let _0x16aec8=0x0;for(;_0x16aec8<_0x2dc2c4['length'];){const _0x51d197=_0x2dc2c4[_0x16aec8]['getDifference'](_0x5a0fbf);_0x2dc2c4['splice'](_0x16aec8,0x1,..._0x51d197),_0x16aec8+=_0x51d197['length'];}}return _0x2dc2c4;}(_0x2af864,_0x5030b7);_0x1e2807['length']&&this['_model']['change'](()=>{for(const _0x8b86f5 of _0x1e2807){const _0x5b80d6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x34f457,'accept');this['forceDefaultExecution'](()=>_0x5b80d6([_0x8b86f5],_0x5503d3,_0x5595ff));}});for(const _0x4bee7f of _0x3cb61f){let _0x33a797=null,_0x54c907=_0x4bee7f['start'],_0x4228db=_0x4bee7f['end'];for(const {suggestion:_0x49bed2,meta:_0x129222}of this['_findSuggestions'](_0x4bee7f,'formatInline')){if(!_0x129222['isOwn'])continue;if(_0x49bed2['subType']!=_0x34f457)continue;if(!Lt(_0x49bed2,_0x5595ff))continue;const _0x25a798=_0x49bed2['getFirstRange']();if(_0x25a798['containsRange'](_0x4bee7f,!0x0))return null;_0x54c907=_0x54c907['isBefore'](_0x25a798['start'])?_0x54c907:_0x25a798['start'],_0x4228db=_0x4228db['isAfter'](_0x25a798['end'])?_0x4228db:_0x25a798['end'],_0x33a797?_0x25a798['start']['isBefore'](_0x33a797['getFirstRange']()['start'])?(_0x33a797['removeMarkers'](),_0x33a797=_0x49bed2):_0x49bed2['removeMarkers']():_0x33a797=_0x49bed2;}const _0x22bc4d=this['_model']['createRange'](_0x54c907,_0x4228db);if(_0x33a797)this['_setSuggestionRange'](_0x33a797,_0x22bc4d);else{const _0x31a42b=_0x24ebe0(),_0x2470a9=_0x599b3a['id'];this['_setSuggestionData']({'id':_0x31a42b,'type':'formatInline:'+_0x34f457,'data':_0x5503d3,'createdAt':new Date(),'authorId':_0x2470a9,'attributes':_0x5595ff}),this['_addSuggestionMarker']('formatInline:'+_0x34f457,_0x31a42b,_0x2470a9,_0x22bc4d);}}return null;}['markBlockFormat'](_0x1ee573,_0x5c5044,_0x3ffbb2=[],_0x3ed3d6=null,_0x559953={}){_0x5c5044['formatGroupId']||(_0x5c5044['formatGroupId']=_0x5c5044['commandName']),_0x5c5044['multipleBlocks']=_0x1ee573['is']('range'),_0x3ed3d6=_0x3ed3d6||Vt(_0x5c5044);const _0x58d168=_0x3ffbb2['map'](_0x24dd08=>Gt(_0x24dd08,this['_model'])),_0x210777=_0x1ee573['is']('range')?_0x1ee573:Gt(_0x1ee573,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2c6ad4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ed3d6,'accept');return this['forceDefaultExecution'](()=>_0x2c6ad4([_0x210777],_0x5c5044,_0x559953)),null;}_0x58d168['push'](_0x210777);let _0xc24a5=!0x0;for(const _0x2806ee of _0x58d168)if(!this['_rangeIsInLocalUserInsertion'](_0x2806ee)){_0xc24a5=!0x1;break;}if(_0xc24a5&&'always'!==this['_trackFormatChanges']){const _0x5cac52=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ed3d6,'accept');return this['forceDefaultExecution'](()=>_0x5cac52([_0x210777],_0x5c5044,_0x559953)),null;}let _0x4b1ca6=null,_0x1ffc32=_0x210777['start'],_0x258d65=_0x210777['end'];for(const {suggestion:_0x4eacef,meta:_0x40380f}of this['_findSuggestions'](_0x210777,'formatBlock')){if(!_0x40380f['isOwn'])continue;if(_0x40380f['isNextTo']||_0x40380f['containsRangeInObject']||_0x40380f['isInsideObject'])continue;if(_0x4eacef['data']['formatGroupId']!=_0x5c5044['formatGroupId'])continue;if(!Lt(_0x4eacef,_0x559953))continue;const _0x43000a=_0x4eacef['getFirstRange']();if(_0x4eacef['subType']==_0x3ed3d6){if(_0x43000a['containsRange'](_0x210777,!0x0))return null;_0x1ffc32=_0x1ffc32['isBefore'](_0x43000a['start'])?_0x1ffc32:_0x43000a['start'],_0x258d65=_0x258d65['isAfter'](_0x43000a['end'])?_0x258d65:_0x43000a['end'],_0x4b1ca6?_0x43000a['start']['isBefore'](_0x4b1ca6['getFirstRange']()['start'])?(_0x4b1ca6['removeMarkers'](),_0x4b1ca6=_0x4eacef):_0x4eacef['removeMarkers']():_0x4b1ca6=_0x4eacef;}else{const _0x1575ef=_0x210777['getIntersection'](_0x43000a);this['_cutOutSuggestionMarker'](_0x4eacef,_0x1575ef);}}const _0x52b9d5=this['editor']['plugins']['get']('Users')['me'],_0x152a58=_0x24ebe0(),_0x387225=_0x52b9d5['id'];if(_0x4b1ca6)return this['_setSuggestionRange'](_0x4b1ca6,this['_model']['createRange'](_0x1ffc32,_0x258d65)),_0x4b1ca6;{const _0x392fad=this['_setSuggestionData']({'id':_0x152a58,'type':'formatBlock:'+_0x3ed3d6,'data':_0x5c5044,'createdAt':new Date(),'authorId':_0x387225,'attributes':_0x559953});return this['_addSuggestionMarker']('formatBlock:'+_0x3ed3d6,_0x152a58,_0x387225,this['_model']['createRange'](_0x1ffc32,_0x258d65)),_0x392fad;}}['markMultiRangeBlockFormat'](_0x428e7b,_0x35f88e,_0x17820d=[],_0x24a402=null,_0x4546f8={}){_0x35f88e['formatGroupId']||(_0x35f88e['formatGroupId']=_0x35f88e['commandName']);const _0x2dba0d=_0x428e7b[0x0];_0x35f88e['multipleBlocks']=_0x2dba0d['is']('range'),_0x24a402=_0x24a402||Vt(_0x35f88e);const _0x9a8903=_0x17820d['map'](_0x2255e1=>Gt(_0x2255e1,this['_model'])),_0x5153a7=_0x2dba0d['is']('range')?_0x428e7b:_0x428e7b['map'](_0x3019a5=>Gt(_0x3019a5,this['_model']));if('never'===this['_trackFormatChanges']){const _0xca96c8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24a402,'accept');return this['forceDefaultExecution'](()=>_0xca96c8(_0x5153a7,_0x35f88e,_0x4546f8)),null;}_0x9a8903['push'](..._0x5153a7);let _0xd9a32f=!0x0;for(const _0x42ea0c of _0x9a8903)if(!this['_rangeIsInLocalUserInsertion'](_0x42ea0c)){_0xd9a32f=!0x1;break;}if(_0xd9a32f&&'always'!==this['_trackFormatChanges']){const _0x10f96b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24a402,'accept');return this['forceDefaultExecution'](()=>_0x10f96b(_0x5153a7,_0x35f88e,_0x4546f8)),null;}const _0x43e3d2=this['editor']['plugins']['get']('Users')['me'];for(const _0x52796e of this['getSuggestions']()){if(_0x52796e['author']['id']!=_0x43e3d2['id'])continue;if('formatBlock'!=_0x52796e['type']||_0x52796e['data']['formatGroupId']!=_0x35f88e['formatGroupId'])continue;if(!Lt(_0x52796e,_0x4546f8))continue;const _0x440eb4=_0x52796e['subType']==_0x24a402;for(let _0x118494=0x0;_0x118494<_0x5153a7['length'];_0x118494++){const _0x66d546=_0x5153a7[_0x118494];for(const _0x22c2de of _0x52796e['getMarkers']()){const _0x250ef3=_0x22c2de['getRange']();if(_0x66d546['isEqual'](_0x250ef3)){_0x440eb4?(_0x5153a7['splice'](_0x118494,0x1),_0x118494--):_0x52796e['removeMarker'](_0x22c2de['name']);break;}}}}if(0x0==_0x5153a7['length'])return null;const _0x55a9ad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24a402,'join');for(const _0x4e086a of this['getSuggestions']())if(_0x4e086a['author']['id']==_0x43e3d2['id']&&'formatBlock'==_0x4e086a['type']&&_0x4e086a['data']['formatGroupId']==_0x35f88e['formatGroupId']&&_0x4e086a['subType']==_0x24a402&&Lt(_0x4e086a,_0x4546f8)&&(_0x55a9ad(_0x4e086a['getRanges'](),_0x5153a7)||_0x55a9ad(_0x5153a7,_0x4e086a['getRanges']()))){for(const _0x485a68 of _0x5153a7)_0x4e086a['addRange'](_0x485a68);return _0x4e086a;}const _0x45ccd2=_0x24ebe0(),_0x203354=_0x43e3d2['id'],_0x3fe5a5='formatBlock:'+_0x24a402,_0x1248af=this['_setSuggestionData']({'id':_0x45ccd2,'type':_0x3fe5a5,'data':_0x35f88e,'createdAt':new Date(),'authorId':_0x203354,'attributes':_0x4546f8});for(const _0x2b6e89 of _0x5153a7)this['_addSuggestionMarker'](_0x3fe5a5,_0x45ccd2,_0x203354,_0x2b6e89,u['getMultiRangeId']());return _0x1248af;}['markDeletion'](_0x22030f,_0x26c453=null,_0x3583d2={}){if(_0x22030f['isCollapsed'])return null;const _0x2d309c=this['editor']['plugins']['get']('Users')['me'],_0x2962a3=new _0x1861aa(_0x22030f['start'],_0x22030f['end']);for(const {suggestion:_0x286187,meta:_0x1cf02e}of this['_findSuggestions'](_0x2962a3,'insertion'))if(_0x1cf02e['isOwn']&&!_0x1cf02e['isNextTo']){if(_0x286187['isMultiRange']){const _0x546e17=_0x286187['getRanges']()['filter'](_0x59cb49=>'$graveyard'!=_0x59cb49['root']['rootName']);_0x546e17['every'](_0x5967dd=>_0x2962a3['containsRange'](_0x5967dd,!0x0))&&_0x286187['discard']();if(_0x546e17['some'](_0x16dcad=>_0x16dcad['containsRange'](_0x2962a3,!0x0))){const _0x57b718=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26c453,'accept');return this['forceDefaultExecution'](()=>_0x57b718([_0x2962a3],null,_0x3583d2)),null;}}else{const _0x1fa078=_0x2962a3['getIntersection'](_0x286187['getFirstRange']());null!==_0x1fa078&&_0x286187['_onDiscard']([_0x1fa078],null,_0x3583d2);}}if(_0x2962a3['detach'](),_0x2962a3['isCollapsed']||'$graveyard'==_0x2962a3['root']['rootName'])return null;let _0x3b07c0=null,_0x50c09d=_0x2962a3['start'],_0x23cd74=_0x2962a3['end'];const _0xffda0d=this['_findSuggestions'](_0x2962a3,'deletion');for(const {suggestion:_0x29e23c,meta:_0x58dd35}of _0xffda0d){const _0x1ab078=this['_model']['createRange'](_0x50c09d,_0x23cd74);if(_0x58dd35['isOwn']&&(this['_mergeNestedSuggestions']||!_0x58dd35['containsRangeInObject']&&!_0x58dd35['isInsideObject'])){if(_0x29e23c['isMultiRange']){if(!Lt(_0x29e23c,_0x3583d2))continue;let _0x3ff29c=!0x0;for(const _0x46b02c of _0x29e23c['getRanges']()){if(_0x46b02c['containsRange'](_0x1ab078,!0x0))return _0x29e23c;_0x1ab078['containsRange'](_0x46b02c)||(_0x3ff29c=!0x1);}_0x3ff29c&&_0x29e23c['discard']();}else{const _0x355550=_0x29e23c['getFirstRange']();if(_0x355550['containsRange'](_0x1ab078,!0x0))return _0x29e23c;if(!Lt(_0x29e23c,_0x3583d2)){_0x1ab078['containsRange'](_0x355550)?_0x29e23c['removeMarkers']():_0x355550['containsPosition'](_0x50c09d)?_0x50c09d=_0x355550['end']:_0x355550['containsPosition'](_0x23cd74)&&(_0x23cd74=_0x355550['start']);continue;}_0x50c09d=_0x50c09d['isBefore'](_0x355550['start'])?_0x50c09d:_0x355550['start'],_0x23cd74=_0x23cd74['isAfter'](_0x355550['end'])?_0x23cd74:_0x355550['end'],_0x3583d2=Object['assign']({},_0x29e23c['attributes']),_0x3b07c0?_0x355550['start']['isBefore'](_0x3b07c0['getFirstRange']()['start'])?(_0x3b07c0['removeMarkers'](),_0x3b07c0=_0x29e23c):_0x29e23c['removeMarkers']():_0x3b07c0=_0x29e23c;}}}if(_0x3b07c0)return this['_setSuggestionRange'](_0x3b07c0,this['_model']['createRange'](_0x50c09d,_0x23cd74)),_0x3b07c0;{const _0x27b7bb=_0x24ebe0(),_0xdd1c9f=this['_model']['createRange'](_0x50c09d,_0x23cd74),_0x4637dc=_0x2d309c['id'],_0x47ab12=_0x26c453?'deletion:'+_0x26c453:'deletion',_0x5258b1=this['_setSuggestionData']({'id':_0x27b7bb,'type':_0x47ab12,'createdAt':new Date(),'authorId':_0x4637dc,'attributes':_0x3583d2});return this['_addSuggestionMarker'](_0x47ab12,_0x27b7bb,_0x4637dc,_0xdd1c9f),_0x5258b1;}}['markMultiRangeDeletion'](_0x1a80a1,_0x5e9127='multi',_0x552a95={}){const _0x1fe626=this['editor']['plugins']['get']('Users')['me'],_0x5b3799=_0x1a80a1['map'](_0x8d2a66=>new _0x1861aa(_0x8d2a66['start'],_0x8d2a66['end'])),_0x311340=new Set();for(const {suggestion:_0x24dd44,meta:_0x399462}of this['_findSuggestions'](_0x5b3799,'insertion'))_0x399462['isOwn']&&!_0x399462['isNextTo']&&_0x311340['add'](_0x24dd44);for(const _0x3f1600 of _0x311340)if(_0x3f1600['isMultiRange']){const _0x24cb43=_0x3f1600['getRanges']();(!_0x3f1600['attributes']||!_0x3f1600['attributes']['skipNestingCheck'])&&(_0x24cb43['every'](_0x5cdf8e=>_0x5b3799['some'](_0x5a2ed5=>_0x5a2ed5['containsRange'](_0x5cdf8e,!0x0)))&&_0x3f1600['discard']());if(_0x5b3799['every'](_0x280dca=>_0x24cb43['some'](_0x55bfb6=>_0x55bfb6['containsRange'](_0x280dca,!0x0)))){const _0x5556a1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e9127,'accept');return this['forceDefaultExecution'](()=>_0x5556a1(_0x1a80a1,null,_0x552a95)),null;}}else{const _0x251d8b=_0x3f1600['getFirstRange']();_0x5b3799['some'](_0x5bb194=>_0x5bb194['containsRange'](_0x251d8b,!0x0))&&_0x3f1600['discard']();if(_0x5b3799['every'](_0x1c3eb2=>_0x251d8b['containsRange'](_0x1c3eb2,!0x0))){const _0x5dae78=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e9127,'accept');return this['forceDefaultExecution'](()=>_0x5dae78(_0x5b3799,null,_0x552a95)),null;}}const _0x3084b2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e9127,'join');let _0x32f50a=null;for(const _0x569f39 of this['getSuggestions']())if(_0x569f39['author']['id']==_0x1fe626['id']&&_0x569f39['isInContent']&&'deletion'==_0x569f39['type']&&_0x569f39['subType']==_0x5e9127&&Lt(_0x569f39,_0x552a95)&&(_0x3084b2(_0x569f39['getRanges'](),_0x5b3799)||_0x3084b2(_0x5b3799,_0x569f39['getRanges']()))){if(_0x32f50a){if(_0x569f39['commentThread']&&_0x569f39['commentThread']['length'])continue;for(const _0x742737 of _0x569f39['getRanges']())_0x32f50a['isIntersectingWithRange'](_0x742737)||_0x32f50a['addRange'](_0x742737);_0x569f39['removeMarkers']();}else{_0x32f50a=_0x569f39;for(const _0x4e8a55 of _0x5b3799)_0x569f39['isIntersectingWithRange'](_0x4e8a55)||_0x569f39['addRange'](_0x4e8a55);}}if(_0x32f50a)return _0x32f50a;_0x311340['clear']();for(const {suggestion:_0x5ee4d3,meta:_0x258766}of this['_findSuggestions'](_0x5b3799,'deletion'))_0x258766['isOwn']&&(this['_mergeNestedSuggestions']||!_0x258766['containsRangeInObject']&&!_0x258766['isInsideObject'])&&Lt(_0x5ee4d3,_0x552a95)&&_0x311340['add'](_0x5ee4d3);for(const _0x2bd88b of _0x311340){const _0x83c936=_0x2bd88b['getRanges']();if(!_0x552a95||!_0x552a95['skipNestingCheck']){if(_0x5b3799['every'](_0x3f8ff5=>_0x83c936['some'](_0x3d4d62=>_0x3d4d62['containsRange'](_0x3f8ff5,!0x0))))return _0x2bd88b;}(!_0x2bd88b['attributes']||!_0x2bd88b['attributes']['skipNestingCheck'])&&(_0x83c936['every'](_0x589e75=>_0x5b3799['some'](_0x5baed4=>_0x5baed4['containsRange'](_0x589e75,!0x0)))&&_0x2bd88b['discard']());}const _0x4d30aa=_0x24ebe0(),_0x96ce11=_0x1fe626['id'],_0x5d4e9d='deletion:'+_0x5e9127,_0x260147=this['_setSuggestionData']({'id':_0x4d30aa,'type':_0x5d4e9d,'createdAt':new Date(),'authorId':_0x96ce11,'attributes':_0x552a95});for(const _0x100e4b of _0x5b3799)_0x100e4b['detach'](),_0x100e4b['isCollapsed']||'$graveyard'==_0x100e4b['root']['rootName']||this['_addSuggestionMarker'](_0x5d4e9d,_0x4d30aa,_0x96ce11,_0x100e4b,u['getMultiRangeId']());return _0x260147;}['markAttributeChange'](_0x36812e,_0x349b48,_0x4ed31f,_0x1a82dc,_0x2ab340){if(_0x36812e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x9c96d3=this['editor']['plugins']['get']('Users')['me']['id'],_0x5720c6=Array['from'](this['_suggestions']['values']())['filter'](_0x29d878=>'attribute'==_0x29d878['type']&&_0x29d878['data']['key']==_0x349b48&&_0x29d878['isIntersectingWithRange'](_0x36812e));if('default'===this['_trackFormatChanges']){const _0x1a0183=this['_findSuggestions'](_0x36812e,'insertion')['filter'](({meta:_0x57378c})=>_0x57378c['isOwn']&&!_0x57378c['isInsideObject']&&!_0x57378c['isNextTo'])['map'](({suggestion:_0x1bb9ae})=>_0x1bb9ae);_0x5720c6['unshift'](..._0x1a0183);}const _0x58b660=new Map([[_0x36812e,_0x4ed31f]]);for(const _0x184754 of _0x5720c6){const _0x2b1d85='attribute'==_0x184754['type']?_0x184754['data']['oldValue']:void 0x0,_0x5c51f1=_0x184754['getFirstRange'](),_0x3b0e81=Array['from'](_0x58b660['keys']())['find'](_0x503d39=>_0x503d39['isIntersecting'](_0x5c51f1));if(!_0x3b0e81)continue;const _0x533b66=_0x3b0e81['getDifference'](_0x5c51f1);this['_isBlockAttribute'](_0x349b48)&&'insertion'==_0x184754['type']&&0x0!=_0x533b66['length']||(_0x58b660['delete'](_0x3b0e81),_0x533b66['forEach'](_0x3d6095=>{_0x58b660['set'](_0x3d6095,_0x4ed31f);}),'insertion'!=_0x184754['type']&&_0x2b1d85!=_0x1a82dc&&_0x58b660['set'](_0x3b0e81['getIntersection'](_0x5c51f1),_0x2b1d85));}const _0x4b04ca=[];for(const [_0x47703f,_0x1b3ad7]of _0x58b660){const _0x2fd9bb=_0x24ebe0(),_0x3ca23b={'key':_0x349b48,'oldValue':_0x1b3ad7,'newValue':_0x1a82dc};_0x349b48['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':_0x349b48});const _0x4e71ff=('attribute:'+(_0x349b48+'|'+Vt({'newValue':_0x1a82dc})))['substring'](0x0,0x3c),_0x10c8ef=this['_setSuggestionData']({'id':_0x2fd9bb,'type':_0x4e71ff,'data':_0x3ca23b,'createdAt':new Date(),'authorId':_0x9c96d3,'attributes':_0x2ab340});_0x4b04ca['push'](_0x10c8ef),this['_addSuggestionMarker'](_0x4e71ff,_0x2fd9bb,_0x9c96d3,_0x47703f);}return _0x4b04ca;}['enableDefaultAttributesIntegration'](_0x7215e4){this['enableCommand'](_0x7215e4,(_0x70cca8,..._0x27982d)=>{this['_recordAttributeChanges'](()=>{_0x70cca8(..._0x27982d);});});}['registerBlockAttribute'](_0x3b5463){this['_blockAttributeKeys']['add'](_0x3b5463);}['registerInlineAttribute'](_0x591b69){this['_inlineAttributeKeys']['add'](_0x591b69);}['_getAttributeKey'](_0x493b91){return'attribute'==_0x493b91['type']?_0x493b91['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x34722d,_0x3438f9){const _0xfbefda=_0x34722d['getFirstMarker']();this['_model']['change'](_0x5e6141=>{_0x5e6141['updateMarker'](_0xfbefda,{'range':_0x3438f9});});}['_addThreadToSuggestion'](_0x18f084){const _0x3280d9=_0x18f084['id'],_0x45d158=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3280d9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x45d158,'threadId':_0x3280d9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x58ba0d=this['_commentsRepository']['getCommentThread'](_0x3280d9);_0x58ba0d['unbind']('isRemovable'),_0x58ba0d['isRemovable']=!0x1,_0x18f084['commentThread']=_0x58ba0d;}['_checkSuggestionCorrectness'](_0x2f438b,_0xe06d74,_0x3ef014,_0xbcfef7){if(_0x2f438b['type']!=_0xe06d74||_0x2f438b['subType']!=_0x3ef014||_0x2f438b['creator']['id']!=_0xbcfef7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xf841e3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x43e4ad,_0x495573){const _0x304f82=_0x43e4ad['getFirstRange']();if(_0x495573['isEqual'](_0x304f82))_0x43e4ad['removeMarkers']();else{if(_0x304f82['containsRange'](_0x495573)){const _0x1a743d=this['_model']['createPositionAt'](_0x495573['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43e4ad,this['_model']['createRange'](_0x304f82['start'],_0x1a743d));const _0x5c25f5=_0x24ebe0(),_0x5713c4=_0x43e4ad['creator']['id'],_0x39455c=_0x43e4ad['type']+':'+_0x43e4ad['subType'];this['_setSuggestionData']({'id':_0x5c25f5,'type':_0x39455c,'createdAt':new Date(),'authorId':_0x5713c4,'data':_0x43e4ad['data'],'attributes':_0x43e4ad['attributes']});const _0x5b6601=this['_model']['createPositionAt'](_0x495573['end']['parent'],'after'),_0x49ba18=this['_model']['createRange'](_0x5b6601,_0x304f82['end']);this['_addSuggestionMarker'](_0x39455c,_0x5c25f5,_0x5713c4,_0x49ba18);}else{if(_0x304f82['containsPosition'](_0x495573['start'])){const _0x1894f6=this['_model']['createPositionAt'](_0x495573['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43e4ad,this['_model']['createRange'](_0x304f82['start'],_0x1894f6));}else{const _0x112a23=this['_model']['createPositionAt'](_0x495573['end']['parent'],'after');this['_setSuggestionRange'](_0x43e4ad,this['_model']['createRange'](_0x112a23,_0x304f82['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x415075){for(const {suggestion:_0x287371,meta:_0x1dd42c}of this['_findSuggestions'](_0x415075,'insertion')){if(!_0x1dd42c['isOwn'])continue;const _0x29f778=_0x287371['getRanges']();for(const _0x5b4f68 of _0x29f778)if(!_0x415075['getDifference'](_0x5b4f68)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5aeee9){const _0x2e115e=this['editor']['plugins']['get']('Users')['getUser'](_0x5aeee9);if(!_0x2e115e)throw new _0xf841e3('track-changes-user-not-found',this);return _0x2e115e;}['_getExternalAuthor'](_0x492905){const _0x46f456=this['editor']['plugins']['get']('Users'),_0x13a6b1=_0x29f25f('external:'+_0x492905),_0x474e05=_0x46f456['getUser'](_0x13a6b1);return _0x474e05||_0x46f456['addUser']({'id':_0x13a6b1,'name':_0x492905});}['_createSuggestion'](_0x133489,_0x230daa,_0x500d82,_0x4ac08c,_0x2d5cb9){const _0xefc225=this['_getAuthorFromId'](_0x4ac08c),_0x42ab13=this['_suggestionFactory']['buildSuggestion'](_0x133489,_0x230daa,_0x500d82,_0xefc225,_0x2d5cb9,_0x10fb79=>{this['_updateSuggestionData'](_0x500d82,{'attributes':_0x10fb79});const _0x1d4935=this['getSuggestion'](_0x500d82);this['_joinWithAdjacentSuggestions'](new Set([_0x1d4935])),this['_refreshSuggestionsChain'](new Set([_0x1d4935]));});return this['listenTo'](_0x42ab13,'accept',()=>{this['_updateSuggestionData'](_0x500d82,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x42ab13,'discard',()=>{this['_updateSuggestionData'](_0x500d82,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x500d82,_0x42ab13),this['_suggestionState']['set'](_0x42ab13,'notReady'),_0x42ab13;}['_splitMarkerName'](_0x12d30c){const _0x1f8917=_0x12d30c['split'](':');return{'group':_0x1f8917[0x0],'type':_0x1f8917[0x1],'subType':_0x1f8917['length']>=0x5?_0x1f8917[0x2]:null,'id':_0x1f8917['length']<0x5?_0x1f8917[0x2]:_0x1f8917[0x3],'authorId':_0x1f8917['length']<0x5?_0x1f8917[0x3]:_0x1f8917[0x4],'markerCount':0x6==_0x1f8917['length']?_0x1f8917[0x5]:null};}['_breakSuggestionMarker'](_0x163010,_0x416a21,_0x350704){const _0x5732ff=_0x163010['getFirstRange'](),_0x3ff7f2=_0x5732ff['start'],_0x54b55b=_0x5732ff['end'];this['_setSuggestionRange'](_0x163010,this['_model']['createRange'](_0x3ff7f2,_0x416a21));const _0x40a318=_0x24ebe0(),_0x21ad37=_0x163010['creator']['id'],_0x286e8d=_0x163010['type']+(_0x163010['subType']?':'+_0x163010['subType']:'');this['_setSuggestionData']({'id':_0x40a318,'type':_0x286e8d,'createdAt':new Date(),'authorId':_0x21ad37,'originalSuggestionId':_0x163010['id'],'attributes':_0x163010['attributes'],'data':_0x163010['data']});const _0x19465b=this['_getAttributeKey'](_0x163010);('formatBlock'==_0x163010['type']||_0x19465b&&this['_isBlockAttribute'](_0x19465b))&&(_0x350704=this['_model']['createPositionBefore'](_0x350704['parent'])),this['_addSuggestionMarker'](_0x286e8d,_0x40a318,_0x21ad37,this['_model']['createRange'](_0x350704,_0x54b55b));}['_findSuggestions'](_0x1786c1,_0x51ba09=null){const _0x3f5eb0=[],_0x530ecb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1786c1)||(_0x1786c1=[_0x1786c1]);for(const _0x37373a of this['getSuggestions']()){if(!_0x37373a['isInContent'])continue;if(_0x51ba09&&_0x37373a['type']!=_0x51ba09)continue;let _0x15bbf2=!0x1;for(const _0x22b028 of _0x37373a['getRanges']()){for(const _0x299c8d of _0x1786c1){const _0x1fc83b=_0x299c8d['start']['isEqual'](_0x22b028['end'])||_0x299c8d['end']['isEqual'](_0x22b028['start']);if(_0x1fc83b||_0x299c8d['getIntersection'](_0x22b028)){const _0x3b6618=_0x299c8d['containsRange'](_0x22b028)&&Rt(this['_model']['schema'],_0x22b028['start'],_0x299c8d),_0x41769d=_0x22b028['containsRange'](_0x299c8d)&&Rt(this['_model']['schema'],_0x299c8d['start'],_0x22b028);_0x3f5eb0['push']({'suggestion':_0x37373a,'meta':{'isOwn':_0x530ecb==_0x37373a['author'],'isNextTo':_0x1fc83b,'isInsideObject':_0x3b6618,'containsRangeInObject':_0x41769d}}),_0x15bbf2=!0x0;break;}}if(_0x15bbf2)break;}}return _0x3f5eb0;}['_addSuggestionMarker'](_0x496527,_0x3d067b,_0x227a25,_0x9d12e7,_0x2f8174){this['_model']['change'](_0x19afdf=>{let _0x5a1a94='suggestion:'+_0x496527+':'+_0x3d067b+':'+_0x227a25;_0x2f8174&&(_0x5a1a94=_0x5a1a94+':'+_0x2f8174),_0x19afdf['addMarker'](_0x5a1a94,{'range':_0x9d12e7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5861d9){const _0x529baf=_0x5861d9['previous'],_0x14967b=_0x5861d9['next'];_0x5861d9['previous']=null,_0x5861d9['next']=null,null!=_0x529baf&&_0x529baf['next']==_0x5861d9&&(_0x529baf['next']=_0x14967b),null!=_0x14967b&&_0x14967b['previous']==_0x5861d9&&(_0x14967b['previous']=_0x529baf),'ready'==this['_suggestionState']['get'](_0x5861d9)&&(this['_suggestionState']['set'](_0x5861d9,'removed'),this['fire']('suggestionUnloaded',_0x5861d9,_0x529baf,_0x14967b));}['_setSuggestionData'](_0x124686){const _0x50cddf=_0x124686['id'],_0x5cacff=this['addSuggestionData'](_0x124686);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x16fd39=this['editor']['plugins']['get']('PendingActions'),_0x4cf19a=_0x5cacff['hasComments'],_0x98cc8e=_0x5cacff['subType']?_0x5cacff['type']+':'+_0x5cacff['subType']:_0x5cacff['type'],_0x27063b=this['editor']['locale'],_0x260190=_0x16fd39['add'](o(_0x27063b,'PENDING_ACTION_SUGGESTION')),_0x1dec3e={'id':_0x50cddf,'type':_0x98cc8e,'hasComments':_0x4cf19a,'data':_0x124686['data']||null,'originalSuggestionId':_0x124686['originalSuggestionId']||null,'attributes':_0x5cacff['attributes']};this['_adapter']['addSuggestion'](_0x1dec3e)['then'](_0xd1946c=>{_0x5cacff['_saved']=!0x0,_0x16fd39['remove'](_0x260190),_0xd1946c&&_0xd1946c['createdAt']&&(this['_suggestions']['get'](_0x50cddf)['createdAt']=_0xd1946c['createdAt']);})['catch'](_0x5e669c=>{throw _0xe16ddb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5cacff['discard']();}),_0x5cacff['stopListening'](),this['_suggestions']['delete'](_0x5cacff['id']),this['_suggestionState']['delete'](_0x5cacff),_0x5e669c;});}return _0x5cacff;}['_isBlockAttribute'](_0x195cd7){return this['_blockAttributeKeys']['has'](_0x195cd7);}['_updateSuggestionData'](_0x35c29e,_0x430c4d){const _0x4112d9=this['editor']['plugins']['get']('PendingActions'),_0x2d4436=this['getSuggestion'](_0x35c29e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2d4436['_saved']){const _0x2a00df=_0x4112d9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x35c29e,_0x430c4d)['then'](()=>{_0x4112d9['remove'](_0x2a00df);});}else _0x2d4436['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x35c29e,_0x430c4d);});}}['_getSuggestionData'](_0x5ec7e9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xf841e3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5ec7e9);}['_handleNewSuggestionMarker'](_0x3d141b){const {id:_0x34edc1,type:_0x3745af,subType:_0x293611,authorId:_0x467d3e}=this['_splitMarkerName'](_0x3d141b),_0x1e3bf5=this['_suggestions']['get'](_0x34edc1)||this['_createSuggestion'](_0x3745af,_0x293611,_0x34edc1,_0x467d3e,{});switch(this['_checkSuggestionCorrectness'](_0x1e3bf5,_0x3745af,_0x293611,_0x467d3e),this['_suggestionState']['get'](_0x1e3bf5)){case'notReady':this['_getSuggestionData'](_0x34edc1)['then'](_0x12df54=>{let _0x5f2538=Promise['resolve']();_0x12df54['hasComments']&&(_0x5f2538=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x34edc1})),_0x5f2538['then'](()=>{this['addSuggestionData'](_0x12df54)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1e3bf5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x34edc1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1e3bf5,'ready'),this['fire']('suggestionLoaded',_0x1e3bf5);break;case'ready':this['fire']('suggestionChanged',_0x1e3bf5);}return _0x1e3bf5['addMarkerName'](_0x3d141b),_0x1e3bf5;}['_refreshSuggestionsChain'](_0x45c4f1){const _0x43e8b4=Array['from'](_0x45c4f1),_0x5b4a3d=_0x43e8b4['filter'](_0x60920=>'attribute'==_0x60920['type']);this['_refreshAttributeSuggestionsChain'](_0x5b4a3d);const _0x1b70a5=_0x43e8b4['filter'](_0x18e173=>!_0x18e173['isMultiRange']&&'attribute'!=_0x18e173['type']),_0x353f19=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b6365=>!_0x5b6365['isMultiRange']&&'attribute'!=_0x5b6365['type']),_0x4af4f0=_0x353f19['filter'](_0xd0a5e=>!_0x45c4f1['has'](_0xd0a5e)),_0x1b0dcf=new Map(_0x353f19['map'](_0x26ddcf=>[_0x26ddcf,this['_suggestionFactory']['getSuggestionCallback'](_0x26ddcf['type'],_0x26ddcf['subType'],'chain')])),_0x209965=new Map(_0x353f19['map'](_0x325883=>[_0x325883,_0x325883['getFirstRange']()])),_0x485398=new Set(),_0x552c1a=new Set();for(let _0x4c05bb=0x0;_0x4c05bb<_0x1b70a5['length'];_0x4c05bb++)_0x73275d(_0x1b70a5[_0x4c05bb],_0x1b70a5,_0x4c05bb+0x1);for(let _0x105c4f=0x0;_0x105c4f<_0x1b70a5['length'];_0x105c4f++)_0x73275d(_0x1b70a5[_0x105c4f],_0x4af4f0,0x0);const _0x49af20=new Set();for(let _0x4f8659=0x0;_0x4f8659<_0x1b70a5['length'];_0x4f8659++){const _0x3e3c46=_0x1b70a5[_0x4f8659];!_0x552c1a['has'](_0x3e3c46)&&_0x3e3c46['previous']&&(_0x49af20['add'](_0x3e3c46['previous']),_0x3e3c46['previous']['next']===_0x3e3c46&&(_0x3e3c46['previous']['next']=null),_0x3e3c46['previous']=null),!_0x485398['has'](_0x3e3c46)&&_0x3e3c46['next']&&(_0x49af20['add'](_0x3e3c46['next']),_0x3e3c46['next']['previous']===_0x3e3c46&&(_0x3e3c46['next']['previous']=null),_0x3e3c46['next']=null);}function _0x73275d(_0x520966,_0x103070,_0x2b07ce){for(let _0x351a07=_0x2b07ce;_0x351a07<_0x103070['length'];_0x351a07++){const _0x33d442=_0x3da8da(_0x520966,_0x103070[_0x351a07]);_0x33d442&&(_0x33d442[0x0]['next']=_0x33d442[0x1],_0x33d442[0x1]['previous']=_0x33d442[0x0],_0x485398['add'](_0x33d442[0x0]),_0x552c1a['add'](_0x33d442[0x1]));}}function _0x3da8da(_0x1e026e,_0x4fe81c){if(_0x1e026e['author']['id']!==_0x4fe81c['author']['id'])return null;const _0x5b5fc4=_0x1b0dcf['get'](_0x1e026e)(_0x1e026e,_0x4fe81c,_0x209965['get'](_0x1e026e),_0x209965['get'](_0x4fe81c));if(!_0x5b5fc4)return null;return _0x1b0dcf['get'](_0x4fe81c)(_0x1e026e,_0x4fe81c,_0x209965['get'](_0x1e026e),_0x209965['get'](_0x4fe81c))?_0x5b5fc4[0x1]['commentThread']&&_0x5b5fc4[0x1]['commentThread']['length']?null:_0x5b5fc4:null;}_0x49af20['size']&&this['_refreshSuggestionsChain'](_0x49af20);}['_refreshAttributeSuggestionsChain'](_0x4e9ec8){if(0x0==_0x4e9ec8['length'])return;const _0x2741a7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12f180=>'attribute'==_0x12f180['type']&&_0x12f180['_isDataLoaded']),_0x418a2f=[],_0x588a90=new Map();for(const _0x2a7fe9 of _0x2741a7){const _0xb63b7d=_0x29f25f(_0x2a7fe9['attributes']);_0x588a90['has'](_0xb63b7d)||(_0x588a90['set'](_0xb63b7d,_0x418a2f['length']),_0x418a2f['push']([]));const _0x675beb=_0x588a90['get'](_0xb63b7d);_0x418a2f[_0x675beb]['push'](_0x2a7fe9);}!(function(){_0x418a2f['sort']((_0x3abe65,_0x5d7106)=>{const _0x21a528=_0x3abe65[0x0]['createdAt'],_0x17bedd=_0x5d7106[0x0]['createdAt'];return _0x21a528==_0x17bedd?_0x3abe65[0x0]['attributes']['groupId']<_0x5d7106[0x0]['attributes']['groupId']?-0x1:0x1:_0x21a528<_0x17bedd?-0x1:0x1;});for(const _0xaff99 of _0x418a2f)_0xaff99['sort']((_0x285be5,_0xf73ddb)=>_0x285be5['id']<_0xf73ddb['id']?-0x1:0x1);}());for(let _0x2a010=0x0;_0x2a010<_0x418a2f['length'];_0x2a010++){if(0x0==_0x418a2f[_0x2a010]['length'])continue;const _0x33692e=[];for(let _0x5b8270=_0x2a010+0x1;_0x5b8270<_0x418a2f['length'];_0x5b8270++)0x0!=_0x418a2f[_0x5b8270]['length']&&_0x2162ba(_0x418a2f[_0x2a010],_0x418a2f[_0x5b8270])&&_0x33692e['push'](_0x5b8270);for(const _0x3fdb65 of _0x33692e)_0x418a2f[_0x2a010]=_0x418a2f[_0x2a010]['concat'](_0x418a2f[_0x3fdb65]),_0x418a2f[_0x3fdb65]=[];}for(const _0x2e8ba8 of _0x418a2f)for(let _0x82a4d=0x0;_0x82a4d<_0x2e8ba8['length'];_0x82a4d++)_0x2e8ba8[_0x82a4d]['next']=_0x2e8ba8[_0x82a4d+0x1]||null;for(const _0x357094 of _0x418a2f)for(let _0x2d07ba=0x0;_0x2d07ba<_0x357094['length'];_0x2d07ba++)_0x357094[_0x2d07ba]['previous']=_0x357094[_0x2d07ba-0x1]||null;function _0x2162ba(_0x32803a,_0x567692){if(_0x32803a[0x0]['attributes']['groupId']!==_0x567692[0x0]['attributes']['groupId']&&_0x32803a[0x0]['author']!==_0x567692[0x0]['author'])return!0x1;if(!function(_0x1becd3,_0x5d33d1){if(!_0x1becd3['hasComments']&&!_0x5d33d1['hasComments'])return!0x0;if(_0x1becd3['hasComments']&&_0x5d33d1['hasComments'])return!0x1;if(_0x1becd3['hasComments']&&_0x5d33d1['createdAt']<_0x1becd3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5d33d1['hasComments']&&_0x1becd3['createdAt']<_0x5d33d1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x32803a[0x0],_0x567692[0x0]))return!0x1;const _0xaabba4=Bt(_0x32803a[0x0]['attributes'],'groupId'),_0x1a86ec=Bt(_0x567692[0x0]['attributes'],'groupId');if(!_0x364d08(_0xaabba4,_0x1a86ec))return!0x1;return!!_0x32803a['every'](_0x10fe21=>_0x567692['some'](_0x12a9de=>_0x10fe21['getFirstRange']()['isEqual'](_0x12a9de['getFirstRange']())))&&_0x567692['every'](_0x1d8b87=>_0x32803a['some'](_0x31cf07=>_0x1d8b87['getFirstRange']()['isEqual'](_0x31cf07['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x36e4cd){const _0xaa88d4=Array['from'](_0x36e4cd),_0x48310a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x714f23=_0x48310a['filter'](_0x24fdb8=>!_0x36e4cd['has'](_0x24fdb8)),_0x29f777=new Map(_0xaa88d4['map'](_0x321b02=>[_0x321b02,this['_suggestionFactory']['getSuggestionCallback'](_0x321b02['type'],_0x321b02['subType'],'join')])),_0x131107=new Map(_0x48310a['map'](_0x3733b5=>[_0x3733b5,_0x3733b5['getRanges']()]));for(let _0x577f32=0x0;_0x577f32<_0xaa88d4['length'];_0x577f32++){if(_0x250809(this,_0xaa88d4[_0x577f32],_0xaa88d4,_0x577f32+0x1))return!0x0;}for(let _0xcebcd9=0x0;_0xcebcd9<_0xaa88d4['length'];_0xcebcd9++){if(_0x250809(this,_0xaa88d4[_0xcebcd9],_0x714f23,0x0))return!0x0;}return!0x1;function _0x250809(_0x1b6795,_0x7f64d9,_0xc46ac7,_0x3b8961){for(let _0x400549=_0x3b8961;_0x400549<_0xc46ac7['length'];_0x400549++){const _0x45ec6f=_0xc46ac7[_0x400549];if(_0x45ec6f['type']!==_0x7f64d9['type']||_0x45ec6f['author']['id']!==_0x7f64d9['author']['id']||_0x45ec6f['subType']!==_0x7f64d9['subType'])continue;if(!Pt(_0x7f64d9,_0x45ec6f,['groupId']))continue;if('attribute'==_0x7f64d9['type']&&_0x7f64d9['data']['oldValue']!=_0x45ec6f['data']['oldValue'])continue;if('attribute'==_0x7f64d9['type']&&_0x1b6795['_isBlockAttribute'](_0x7f64d9['data']['key']))continue;if('formatBlock'==_0x7f64d9['type']){const _0x1e06c2=_0x1b6795['editor']['model'],_0x2cafa7=_0x7f64d9['getContainedElement']();if(_0x2cafa7&&(_0x1e06c2['schema']['isObject'](_0x2cafa7)||_0x1e06c2['schema']['isLimit'](_0x2cafa7)))continue;}const _0x31d6c6=_0x29f777['get'](_0x7f64d9),_0x19e64a=_0x131107['get'](_0x7f64d9),_0x255996=_0x131107['get'](_0x45ec6f),_0x34e74b=_0x7f64d9['commentThread']&&_0x7f64d9['commentThread']['length'],_0x1752bc=_0x45ec6f['commentThread']&&_0x45ec6f['commentThread']['length'];if(!_0x34e74b&&_0x31d6c6(_0x255996,_0x19e64a))return _0x1b6795['_joinSuggestions'](_0x45ec6f,_0x7f64d9),_0x131107['delete'](_0x7f64d9),!0x0;if(!_0x1752bc&&_0x31d6c6(_0x19e64a,_0x255996))return _0x1b6795['_joinSuggestions'](_0x7f64d9,_0x45ec6f),_0x131107['delete'](_0x45ec6f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x325b9a,_0x1ae124){if(_0x325b9a['isMultiRange']){for(const _0x552e2f of _0x1ae124['getRanges']())_0x325b9a['addRange'](_0x552e2f);}else{const _0x2a02a3=_0x1ae124['getFirstRange']()['end'];this['_setSuggestionRange'](_0x325b9a,this['_model']['createRange'](_0x325b9a['getFirstRange']()['start'],_0x2a02a3));}_0x1ae124['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c5c77,_0x372f4c){const _0x10ef54=_0x3c5c77['startsWith']('format')||_0x3c5c77['startsWith']('attribute')?'FORMATTING':_0x3c5c77['toUpperCase']();return o(this['editor']['locale'],_0x372f4c+'_'+_0x10ef54+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x574a16=this['editor'];if(!_0x574a16['ui'])return;const {ariaLiveAnnouncer:_0x3293b8}=_0x574a16['ui'];_0x52066e(this['_model'],({left:_0x104ad4,entered:_0x215004})=>{for(const _0x45a896 of _0x104ad4){const {group:_0x1cea67,type:_0x5af7af}=this['_splitMarkerName'](_0x45a896['name']);if('suggestion'===_0x1cea67){_0x3293b8['announce'](this['_getMarkerAnnouncementText'](_0x5af7af,'LEAVE'));break;}}for(const _0x47b18a of _0x215004){const {group:_0x445e8e,type:_0x1accf4}=this['_splitMarkerName'](_0x47b18a['name']);if('suggestion'===_0x445e8e){_0x3293b8['announce'](this['_getMarkerAnnouncementText'](_0x1accf4,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5529ff){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4f49dd=this['editor'],_0x1c6df1=_0x4f49dd['model']['document']['differ']['getChanges']();if(0x0==_0x1c6df1['length'])return!0x1;const _0x5ef291=[],_0x11e125=_0x1c6df1['filter'](_0x2bccf4=>'attribute'==_0x2bccf4['type']),_0x1a03c9=_0x1c6df1['filter'](_0x56b074=>'insert'==_0x56b074['type']&&'$text'!=_0x56b074['name']),_0x170d53=_0x1c6df1['filter'](_0x33bcb1=>'remove'==_0x33bcb1['type']&&'$text'!=_0x33bcb1['name']);for(const _0x57f9b6 of _0x11e125)_0x5ef291['push']({'key':_0x57f9b6['attributeKey'],'newValue':_0x57f9b6['attributeNewValue'],'oldValue':_0x57f9b6['attributeOldValue'],'range':Ot(_0x57f9b6['range'],_0x4f49dd['model'])});for(const _0x3c5bc7 of _0x1a03c9){const _0x1801b4=_0x170d53['find'](_0x50ed56=>_0x50ed56['position']['isEqual'](_0x3c5bc7['position']));_0x1801b4&&_0x5ef291['push']({'key':m,'newValue':_0x3c5bc7['name'],'oldValue':_0x1801b4['name'],'range':_0x4f49dd['model']['createRangeOn'](_0x3c5bc7['position']['nodeAfter'])});}return 0x0!=_0x5ef291['length']&&this['_reduceExistingSuggestions'](_0x5529ff,_0x5ef291);}['_processAttributeSuggestions'](_0x5e0aa3){let _0x468fc6=!0x1;const _0x5b77b5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x329184=>_0x329184['data']['newRange']&&_0x329184['name']['startsWith']('suggestion:attribute:'));for(const _0x5d960f of _0x5b77b5){const {subType:_0x120902,id:_0x400752}=this['_splitMarkerName'](_0x5d960f['name']),_0x3fe05c=_0x120902['split']('|')[0x0];for(const _0x77249 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x77249['id']!=_0x400752&&'attribute'==_0x77249['type']&&_0x77249['data']&&_0x77249['data']['key']==_0x3fe05c&&_0x77249['getFirstRange']()['isIntersecting'](_0x5d960f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x77249,_0x5d960f['data']['newRange'],_0x5e0aa3),_0x468fc6=!0x0);}return _0x468fc6;}['_recordAttributeChanges'](_0x2605d8){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2605d8();}['_isRegisteredAttribute'](_0x50b960){const _0x2fe82d=this['_isBlockAttribute'](_0x50b960),_0x129878=this['_inlineAttributeKeys']['has'](_0x50b960);return _0x2fe82d||_0x129878;}['_reduceExistingSuggestions'](_0x2025a4,_0x303a11){if(0x0==_0x303a11['length'])return!0x1;let _0x48a17f=!0x1;for(const _0x5a20f4 of _0x303a11){const _0x1282f6=this['_findSuggestions'](_0x5a20f4['range'],'attribute')['filter'](_0xa27bd6=>!_0xa27bd6['meta']['isNextTo'])['map'](_0x45b630=>_0x45b630['suggestion']),_0x19660b=_0x29f25f({'newValue':_0x5a20f4['newValue']});_0x1282f6['filter'](_0x2f8213=>{const [_0x21d19d,_0x2a9639]=_0x2f8213['subType']['split']('|');return _0x21d19d==_0x5a20f4['key']&&_0x2a9639!=_0x19660b;})['forEach'](_0x1058d3=>{this['_reduceSuggestionAttributeRange'](_0x1058d3,_0x5a20f4['range'],_0x2025a4),_0x48a17f=!0x0;});}return _0x48a17f;}['_reduceSuggestionAttributeRange'](_0x34c7e4,_0x13cba2,_0x3211d2){const _0x36eb62=_0x34c7e4['getFirstRange']()['getDifference'](_0x13cba2);0x0!==_0x36eb62['length']?0x1!==_0x36eb62['length']?this['_breakSuggestionMarker'](_0x34c7e4,_0x13cba2['start'],_0x13cba2['end']):this['_setSuggestionRange'](_0x34c7e4,_0x36eb62[0x0]):_0x3211d2['removeMarker'](_0x34c7e4['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5ebe8c){this['_editor']=_0x5ebe8c,this['_model']=_0x5ebe8c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x164251,_0x4df7fc,_0x19cf5a,_0x2c719d,_0x5d193a,_0x57cdc4){return new u(this['_model'],{'type':_0x164251,'subType':_0x4df7fc,'id':_0x19cf5a,'author':_0x2c719d,'creator':_0x2c719d,'attributes':_0x5d193a,'onAttributesChange':_0x57cdc4,'onAccept':(..._0x21a0d1)=>this['getSuggestionCallback'](_0x164251,_0x4df7fc,'accept')(..._0x21a0d1),'onDiscard':(..._0x3b1a3d)=>this['getSuggestionCallback'](_0x164251,_0x4df7fc,'discard')(..._0x3b1a3d)});}['registerCustomCallback'](_0x36df73,_0x3cc35f,_0x553b32,_0x4bb90d){const _0x4d8b11=_0x36df73+':'+_0x3cc35f+':'+_0x553b32;this['_customCallbacks']['set'](_0x4d8b11,_0x4bb90d);}['getSuggestionCallback'](_0x482a66,_0x14cf9f,_0x35fd31){const _0x15d06d=_0x482a66+':'+_0x14cf9f+':'+_0x35fd31;return this['_customCallbacks']['get'](_0x15d06d)||this['_defaultCallbacks']['get'](_0x482a66+':'+_0x35fd31);}['_registerDefaultCallbacks'](){const _0x8234cd=()=>!0x1,_0x6f683c=_0x3f8ead=>{_0x3f8ead['sort']((_0x182bb0,_0x50471d)=>_0x182bb0['start']['isBefore'](_0x50471d['start'])?0x1:-0x1),this['_model']['change'](_0x398c5e=>{for(const _0x57de7f of _0x3f8ead){let _0x106967;_0x106967=_0x57de7f['end']['isAtEnd']&&_0x57de7f['end']['parent']==_0x57de7f['start']['nodeAfter']?_0x398c5e['createSelection'](_0x57de7f['start']['nodeAfter'],'on'):_0x398c5e['createSelection'](_0x57de7f),this['_model']['deleteContent'](_0x106967,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x354b6a=(_0x1a9d71,_0x173848)=>{_0x173848&&this['_model']['change'](_0xd5f80d=>{const {commandName:_0x594314,commandParams:_0x376265=[]}=_0x173848,_0x1bfc9e=_0x1a9d71['map'](_0x15270f=>(Tt(_0x15270f)&&(_0x15270f=this['_model']['createRange'](_0x15270f['end'])),_0x15270f))['filter'](_0x32da57=>'$graveyard'!==_0x32da57['root']['rootName']);if(_0x1bfc9e['length']<0x1)return;const _0x549b27=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x52c5c0=>_0x1861aa['fromRange'](_0x52c5c0));_0xd5f80d['setSelection'](_0x1bfc9e);for(const _0x3533c9 of this['_editor']['commands']['commands']())_0x3533c9['refresh']();_0x376265['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x594314,..._0x376265);const _0x961584=_0x549b27['filter'](_0xa53880=>'$graveyard'!=_0xa53880['root']['rootName']);_0x961584['length']>0x0&&_0xd5f80d['setSelection'](_0x961584);for(const _0xe2d87 of _0x549b27)_0xe2d87['detach']();});},_0x38f6f0=(_0x30d723,_0xbc3cc9)=>0x1==_0x30d723['length']&&0x1==_0xbc3cc9['length']&&_0x30d723[0x0]['end']['isEqual'](_0xbc3cc9[0x0]['start']),_0x42ce0b=(_0x270d12,_0x38cd5c,_0x5f2cfc,_0x44e2a1)=>Ft(_0x270d12,_0x38cd5c,_0x5f2cfc,_0x44e2a1,this['_model'])?[_0x270d12,_0x38cd5c]:Ft(_0x38cd5c,_0x270d12,_0x44e2a1,_0x5f2cfc,this['_model'])?[_0x38cd5c,_0x270d12]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x8234cd),this['_defaultCallbacks']['set']('insertion:discard',_0x6f683c),this['_defaultCallbacks']['set']('insertion:join',_0x38f6f0),this['_defaultCallbacks']['set']('insertion:chain',_0x42ce0b),this['_defaultCallbacks']['set']('deletion:accept',_0x6f683c),this['_defaultCallbacks']['set']('deletion:discard',_0x8234cd),this['_defaultCallbacks']['set']('deletion:join',_0x38f6f0),this['_defaultCallbacks']['set']('deletion:chain',_0x42ce0b),this['_defaultCallbacks']['set']('formatInline:accept',_0x354b6a),this['_defaultCallbacks']['set']('formatInline:discard',_0x8234cd),this['_defaultCallbacks']['set']('formatInline:join',_0x38f6f0),this['_defaultCallbacks']['set']('formatInline:chain',_0x8234cd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x354b6a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x8234cd),this['_defaultCallbacks']['set']('formatBlock:join',_0x38f6f0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x8234cd),this['_defaultCallbacks']['set']('attribute:accept',_0x8234cd),this['_defaultCallbacks']['set']('attribute:discard',(_0x17d19e,_0x45a3f8)=>{if(!_0x45a3f8)return;const _0x35e812=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xfcfea0=>{if(_0x45a3f8['key']==m)for(const _0x1ca5a8 of _0x17d19e){const _0x47c666=_0x1ca5a8['start']['nodeAfter'],_0x4966b8=_0x45a3f8['oldValue'];_0xfcfea0['rename'](_0x47c666,_0x4966b8);}else{if(_0x35e812['_isBlockAttribute'](_0x45a3f8['key'])){for(const _0x417366 of _0x17d19e)void 0x0!==_0x45a3f8['oldValue']?_0xfcfea0['setAttribute'](_0x45a3f8['key'],_0x45a3f8['oldValue'],_0x417366['start']['nodeAfter']):_0xfcfea0['removeAttribute'](_0x45a3f8['key'],_0x417366['start']['nodeAfter']);}else{for(const _0x4ad5e6 of _0x17d19e)_0x45a3f8['oldValue']?_0xfcfea0['setAttribute'](_0x45a3f8['key'],_0x45a3f8['oldValue'],_0x4ad5e6):_0xfcfea0['removeAttribute'](_0x45a3f8['key'],_0x4ad5e6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x38f6f0);}}function Rt(_0x4efac3,_0xfcd3c3,_0x33420b){for(const _0x6dea8d of _0xfcd3c3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x6dea8d['root']==_0x6dea8d)return!0x1;if(!_0x33420b['containsItem'](_0x6dea8d))return!0x1;if(_0x4efac3['isObject'](_0x6dea8d)||_0x4efac3['isLimit'](_0x6dea8d))return!0x0;}return!0x1;}function Tt(_0x21e6f1){return _0x21e6f1['end']['parent']==_0x21e6f1['start']['nodeAfter']&&_0x21e6f1['end']['isAtStart'];}function Et(_0x571a74,_0x4f9fa3,_0x47ccb8,_0x34b2dd){const _0x4f9cc4=_0x34513f=>!_0x34513f['item']['is']('$textProxy')&&!_0x34b2dd['isObject'](_0x34513f['item']),_0xfe0147=_0x571a74['start']['getLastMatchingPosition'](_0x4f9cc4),_0x4776fa=_0x571a74['end']['getLastMatchingPosition'](_0x4f9cc4,{'direction':'backward'});return(!_0x571a74['start']['isEqual'](_0xfe0147)||!_0x571a74['end']['isEqual'](_0x4776fa))&&(_0xfe0147['isBefore'](_0x4776fa)?_0x47ccb8['updateMarker'](_0x4f9fa3,{'range':_0x47ccb8['createRange'](_0xfe0147,_0x4776fa)}):_0x47ccb8['removeMarker'](_0x4f9fa3),!0x0);}function Vt(_0x1eeecf){return _0x29f25f(_0x1eeecf);}function Ut(_0x2bd724){const _0x20606c=_0x2bd724['start']['nodeAfter'];return _0x20606c&&_0x20606c['is']('element');}function Ot(_0x5fce69,_0x5db9f5){return null==_0x5fce69['end']['nodeBefore']&&_0x5fce69['end']['parent']==_0x5fce69['start']['nodeAfter']?Gt(_0x5fce69['start']['nodeAfter'],_0x5db9f5):_0x5fce69;}function Gt(_0x320e88,_0x257512){const _0x22ca30=_0x257512['schema']['isObject'](_0x320e88)||_0x257512['schema']['isSelectable'](_0x320e88);return _0x257512['createRange'](_0x257512['createPositionAt'](_0x320e88,'before'),_0x22ca30?_0x257512['createPositionAfter'](_0x320e88):_0x257512['createPositionAt'](_0x320e88,'end'));}function Ft(_0x1c0be0,_0x39a86f,_0x3c2cf3,_0x4a945e,_0x14133d){if(!Pt(_0x1c0be0,_0x39a86f))return!0x1;if(_0x3c2cf3['end']['isEqual'](_0x4a945e['start']))return!0x0;if(_0x1c0be0['type']!=_0x39a86f['type'])return!0x1;if(!_0x3c2cf3['end']['isTouching'](_0x4a945e['start']))return!0x1;const _0x54c5cc=_0x14133d['createRange'](_0x3c2cf3['end'],_0x4a945e['start'])['getWalker']();for(const _0x41b8f5 of _0x54c5cc)if(['elementStart','elementEnd']['includes'](_0x41b8f5['type'])&&_0x14133d['schema']['isLimit'](_0x41b8f5['item']))return!0x1;return!0x0;}function Pt(_0x54d12d,_0x4897f2,_0x5eaf60=[]){return!(!_0x54d12d['_isDataLoaded']||!_0x4897f2['_isDataLoaded'])&&_0x364d08(Bt(_0x54d12d['attributes'],_0x5eaf60),Bt(_0x4897f2['attributes'],_0x5eaf60));}function Lt(_0x29d148,_0x28b4b6){const _0x4bc7bc=Ht(_0x29d148['attributes']),_0x3a1163=Ht(_0x28b4b6);if(!_0x29d148['_isDataLoaded'])return!0x1;for(const _0x3b705e of Object['keys'](_0x3a1163))if(!_0x364d08(_0x4bc7bc[_0x3b705e],_0x3a1163[_0x3b705e]))return!0x1;return!0x0;}function Ht(_0x422ccf){const _0x5831e3=Object['assign']({},_0x422ccf);return delete _0x5831e3['skipNestingCheck'],delete _0x5831e3['tablePasteChainId'],_0x5831e3;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x177203(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x566822,_0x1afb2c,_0x1a43e2,_0xde006d){super(),this['model']=_0x1afb2c,this['view']=_0x1a43e2,this['commentThreadController']=_0xde006d,this['_editor']=_0x566822,this['_acceptCommand']=_0x566822['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x566822['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1f7603,_0x49a842)=>_0x1f7603||_0x49a842),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x294078=>_0x294078&&this['_editor']['model']['canEditAt'](_0x1afb2c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x253f70=>_0x253f70&&this['_editor']['model']['canEditAt'](_0x1afb2c['getRanges']())),this['_pendingAction']=null,_0x1a43e2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1a43e2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1a43e2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1a43e2,'change:isDirty',()=>{_0x1a43e2['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 _0x150111=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x150111);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x4bd0da{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x24085c,_0x3408a3,_0x32b64a,_0x54d930){super(_0x24085c),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3408a3['authoredAt']),this['bind']('authoredAt')['to'](_0x3408a3),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3408a3,this['_localUser']=_0x32b64a,this['_config']=_0x54d930,_0x54d930['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2b1bcd}=this['_config'];this['commentsListView']=new _0x2b1bcd(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',_0x2c7690=>_0x2c7690+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x411a44,_0x336db0)=>_0x411a44||!!_0x336db0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1935a4}=this['_config'],_0x1cb196=new _0x1935a4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x42be6b=_0x1cb196['commentInputView'];return _0x1cb196['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x42be6b,'value',(_0x486910,_0x4c6976,_0x53941b)=>!!_0x53941b||_0x486910&&!_0x4c6976),_0x42be6b['on']('submit',(_0x2ebfc9,_0x2d65ab)=>{this['fire']('addComment',_0x2d65ab),_0x42be6b['editor']['setData']('');}),_0x42be6b['on']('cancel',()=>this['focus']()),_0x42be6b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1cb196;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x545c66,_0x496574,_0x50e11c,_0x5cfadb){super(_0x545c66,_0x496574,_0x50e11c,_0x5cfadb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x88082b=>_0x88082b&&_0x88082b[0x0]?_0x88082b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x45cd14,_0x51e3e0)=>{let _0x542d72='';for(const _0x44df02 of _0x45cd14)_0x542d72+='<p>'+ds(_0x44df02['content'],_0x44df02['color'])+'</p>';return _0x51e3e0?_0x542d72:_0x3a9b01(_0x542d72,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x545c66,'Accept\x20suggestion'),_0x40b8['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x545c66,'Discard\x20suggestion'),_0x40b8['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x56a046(_0x545c66,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x21ea65=this['bindTemplate'],_0x172bd0=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x21ea65['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x21ea65['to']('authoredAt',_0x3cdcee=>this['_config']['formatDateTime'](_0x3cdcee))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x172bd0['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2f1934={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x21ea65['if']('isActive','ck-suggestion-wrapper--active'),_0x21ea65['to']('type',_0x32c7d6=>'ck-suggestion-'+_0x32c7d6),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x172bd0}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2f1934['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x2f1934;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xa0b006,_0x32dd46,_0x2cb9cb)=>{this['_descriptionElement']['innerHTML']=_0x2cb9cb;});}['_createButton'](_0x4a856f,_0x27bd82,_0x307b62,_0x81afff,_0x3fdefa){const _0x495e3f=new _0x1abaf2(this['locale']);return _0x495e3f['set']({'label':_0x4a856f,'icon':_0x27bd82,'tooltip':!0x0,'tooltipPosition':_0x3fdefa}),_0x495e3f['extendTemplate']({'attributes':{'class':_0x307b62}}),_0x495e3f['on']('execute',()=>{this['fire'](_0x81afff,this['_model']['id']);}),_0x495e3f;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x20abec,_0x1f58f8){let _0x46748b='';return _0x46748b+=_0x20abec['split']('*')['map']((_0x18e535,_0x3ee499)=>_0x3ee499%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x18e535)+'</span>':us(_0x18e535))['join'](''),_0x1f58f8&&(_0x46748b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1f58f8['value']+'\x22\x20title=\x22'+_0x1f58f8['title']+'\x22></span>'),_0x46748b;}function us(_0x268b48){const _0xca8cf4=document['createElement']('span');return _0xca8cf4['innerText']=_0x268b48,_0xca8cf4['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x4a3ee7{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x595072,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x95f6b6){super(_0x95f6b6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1c088e=this['editor']['config'];_0x1c088e['define']('trackChanges.SuggestionThreadView',ne),_0x1c088e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1c088e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5382b0,_0x4efc17){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2d12b8,_0x488b3b]of this['_handleControllerBuffer']){const _0x2cdd23=this['_suggestionToController']['has'](_0x2d12b8);_0x2cdd23||_0x488b3b?_0x2cdd23&&_0x488b3b&&this['_destroyController'](_0x2d12b8):this['_initializeController'](_0x2d12b8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5382b0,_0x4efc17);}['init'](){const _0x1fdbac=this['editor'],_0x3173e9=_0x1fdbac['plugins']['get']('TrackChangesEditing'),_0x4cce1c=_0x1fdbac['plugins']['get']('Annotations'),_0x3d4584=_0x1fdbac['plugins']['get']('EditorAnnotations'),_0x1f8b7e=_0x1fdbac['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3d4584['addSourceCollector'](()=>{const _0x200062=[];for(const [_0x441929,_0x2cd2ae]of Array['from'](this['_suggestionToController'])){const _0x311370=_0x441929['getAllAdjacentSuggestions'](),_0x579bc6=[];for(const _0x1df9f8 of _0x311370){if(!_0x1df9f8['isInContent'])continue;if(_0x1df9f8['isMultiRange']){_0x579bc6['push'](..._0x1df9f8['getRanges']());continue;}const _0xc40d0d=_0x1df9f8['getFirstRange']();if(_0x579bc6['length']>0x0){const _0x108007=_0x579bc6[0x0]['getJoined'](_0xc40d0d);if(_0x108007){_0x579bc6[0x0]=_0x108007;continue;}}_0x579bc6['push'](_0xc40d0d);}_0x200062['push']([_0x2cd2ae['view'],_0x579bc6]);}return _0x200062;}),this['listenTo'](_0x3173e9,'suggestionLoaded',(_0x5ee255,_0x5cdc69)=>{this['listenTo'](_0x5cdc69,'change:previous',(_0x124472,_0xa980f1,_0x4b4840,_0x3e02b6)=>{_0x5cdc69['isInContent']&&(null==_0x4b4840?(this['_updateController'](_0x3e02b6['head']),this['_handleSuggestionControllerDelayed'](_0x5cdc69,!0x1)):(this['_updateController'](_0x4b4840['head']),null==_0x3e02b6&&this['_handleSuggestionControllerDelayed'](_0x5cdc69,!0x0)));}),null!==_0x5cdc69['previous']?this['_updateController'](_0x5cdc69['head']):this['_handleSuggestionControllerDelayed'](_0x5cdc69,!0x1);}),this['listenTo'](_0x3173e9,'suggestionUnloaded',(_0x578895,_0x423e8e,_0x8c8687)=>{this['stopListening'](_0x423e8e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x423e8e),this['_suggestionToController']['has'](_0x423e8e)&&this['_destroyController'](_0x423e8e),_0x8c8687&&this['_updateController'](_0x8c8687['head']);}),this['listenTo'](_0x3173e9,'suggestionChanged',(_0x62d688,_0x4772ac)=>{this['_updateController'](_0x4772ac);}),this['listenTo'](_0x4cce1c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1f8b7e,'addComment',(_0x5026a2,{threadId:_0x1952f9,isFromAdapter:_0x3705c4})=>{if(_0x3705c4||!_0x3173e9['hasSuggestion'](_0x1952f9))return;const _0x142ac3=_0x3173e9['getSuggestion'](_0x1952f9);this['_suggestionToController']['get'](_0x142ac3)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x42d9e6=this['editor']['plugins']['get']('Annotations'),_0x1c8b2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdfe49c=Array['from'](_0x42d9e6['activeAnnotations'],_0x198f07=>_0x198f07['innerView'])['filter'](_0x247208=>this['_viewToController']['has'](_0x247208)),_0x4070c7=[];for(const _0x11c5b8 of _0xdfe49c){const _0x1b930d=this['_viewToController']['get'](_0x11c5b8)['model']['getAllAdjacentSuggestions']();_0x4070c7['push'](..._0x1b930d['reduce']((_0x57d81f,_0x856098)=>[..._0x57d81f,..._0x856098['getMarkerNames']()],[]));}_0x1c8b2b['activeMarkers']=_0x4070c7;}['_addUIComponentsToFactory'](){const _0x4fbb82=this['editor'],_0x14599a=_0x4fbb82['locale'],_0x4dc51b=o(_0x14599a,'Track\x20changes'),_0x2de7a0=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x4dc51b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14599a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14599a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14599a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14599a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x482319 of _0x2de7a0)if(ae(_0x482319)){const _0x146198=_0x4fbb82['commands']['get'](_0x482319['model']['commandName']);_0x482319['model']['bind']('isOn','isEnabled')['to'](_0x146198,'value','isEnabled');}_0x4fbb82['ui']['componentFactory']['add']('trackChanges',_0x3f4571=>this['_createToolbarButton'](_0x3f4571,_0x2de7a0,_0x4dc51b)),_0x4fbb82['ui']['componentFactory']['add']('menuBar:trackChanges',_0x261f26=>this['_createMenuBarMenu'](_0x261f26,_0x2de7a0,_0x4dc51b));}['_createToolbarButton'](_0x22d55f,_0x547c0f,_0x8c9e4f){const _0x3d8804=zt(_0x22d55f,Zt),_0x4665fe=this['editor']['commands']['get']('trackChanges');_0x3d8804['buttonView']['set']({'tooltip':_0x8c9e4f,'label':_0x8c9e4f,'icon':ie}),_0x3d8804['buttonView']['bind']('isOn')['to'](_0x4665fe,'value'),_0x3d8804['buttonView']['on']('execute',()=>{_0x4665fe['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x3d8804,_0x547c0f,{'role':'menu'});const _0x5a9d02=[];for(const _0x423f82 of _0x547c0f)ae(_0x423f82)&&_0x5a9d02['push'](this['editor']['commands']['get'](_0x423f82['model']['commandName']));const _0x19afd0=_0x3d8804['buttonView'];return _0x19afd0['actionView']['unbind']('isEnabled'),_0x19afd0['arrowView']['unbind']('isEnabled'),_0x19afd0['actionView']['bind']('isEnabled')['to'](_0x4665fe,'isEnabled'),_0x19afd0['arrowView']['bind']('isEnabled')['toMany'](_0x5a9d02,'isEnabled',(..._0x333a43)=>_0x333a43['some'](_0x3f9bdb=>_0x3f9bdb)),_0x3d8804['on']('execute',_0xf67f88=>{this['editor']['execute'](_0xf67f88['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d8804;}['_createMenuBarMenu'](_0x594ef0,_0x52709f,_0x2ebfef){const _0x3b7a07=new Kt(_0x594ef0),_0x44c442=this['editor']['commands']['get']('trackChanges');_0x3b7a07['buttonView']['set']({'label':_0x2ebfef,'icon':ie});const _0x53e643=new Qt(_0x594ef0);for(const _0x22c895 of _0x52709f){if('separator'==_0x22c895['type']){_0x53e643['items']['add'](new Jt(_0x594ef0));continue;}const _0x59e21f=new Xt(_0x594ef0,_0x3b7a07),_0x74173=new Yt(_0x594ef0),_0x44f4ae=_0x22c895['model'];_0x74173['bind'](...Object['keys'](_0x44f4ae))['to'](_0x44f4ae),_0x74173['delegate']('execute')['to'](_0x3b7a07),_0x74173['on']('execute',()=>{this['editor']['execute'](_0x44f4ae['commandName']),this['editor']['editing']['view']['focus']();}),_0x59e21f['children']['add'](_0x74173),_0x53e643['items']['add'](_0x59e21f);}return _0x3b7a07['bind']('isEnabled')['to'](_0x44c442,'isEnabled'),_0x3b7a07['panelView']['children']['add'](_0x53e643),_0x3b7a07;}['_initializeController'](_0x511d08){const _0x57c83d=this['editor'],_0xa6dd48=_0x57c83d['config'],_0x1253b9=_0x57c83d['plugins']['get']('Annotations'),_0x2967c0=_0x57c83d['plugins']['get']('CommentsRepository'),_0x32dfe0=_0x57c83d['plugins']['get']('EditorAnnotations'),_0x2c85c2=_0x57c83d['plugins']['get'](_0x595072)['me'],_0x157887=_0xa6dd48['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x5092bc,CommentThreadInputView:_0x1edae7}=_0x57c83d['plugins']['get']('CommentsUI');let _0x13b6e6,_0x1286bd;this['_annotationViews']['has'](_0x511d08['id'])?(_0x1286bd=this['_annotationViews']['get'](_0x511d08['id']),_0x13b6e6=_0x1286bd['mainView']):(_0x13b6e6=new _0x157887(_0x57c83d['locale'],_0x511d08,_0x2c85c2,{'disableComments':this['_disableComments'],'editorConfig':_0xa6dd48['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xa6dd48['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xa6dd48['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xa6dd48['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x182c45(_0xa6dd48['get']('locale')),'CommentView':_0xa6dd48['get']('comments')['CommentView'],'CommentsListView':_0x5092bc,'CommentThreadInputView':_0x1edae7}),_0x13b6e6['acceptButton']['on']('execute',()=>{_0x57c83d['editing']['view']['focus']();}),_0x13b6e6['discardButton']['on']('execute',()=>{_0x57c83d['editing']['view']['focus']();}),_0x1286bd=_0x1253b9['createAnnotationView'](this['editor']['locale'],_0x13b6e6),_0x1286bd['bind']('isDirty')['to'](_0x13b6e6,'isDirty'),_0x1286bd['bind']('length')['to'](_0x13b6e6),_0x1286bd['bind']('type')['to'](_0x13b6e6,'type',_0x304ebf=>'suggestion-'+_0x304ebf),this['_annotationViews']['set'](_0x511d08['id'],_0x1286bd));const _0x5f14a3=_0x2967c0['createCommentThreadController'](_0x511d08['commentThread'],_0x13b6e6),_0x3e6b30=new oe(_0x57c83d,_0x511d08,_0x13b6e6,_0x5f14a3),_0x517e52=_0x511d08['getAllAdjacentSuggestions']()['filter'](_0x5a0856=>_0x5a0856['isInContent']);_0x13b6e6['descriptionParts']=_0x57c83d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x517e52),this['_suggestionToController']['set'](_0x511d08,_0x3e6b30),this['_viewToController']['set'](_0x13b6e6,_0x3e6b30);const _0x5a0ce0=_0x1253b9['createAnnotation']({'view':_0x1286bd,'target':()=>{const _0x6aa133=[],_0x38de4a=_0x511d08['getAllAdjacentSuggestions']()['filter'](_0x4e8061=>_0x4e8061['isInContent']);for(const _0x5281fc of _0x38de4a)_0x6aa133['push'](..._0x5281fc['getMarkers']());return _0xfaf0da(_0x57c83d['editing'],_0x6aa133);},'type':()=>'suggestion-'+_0x3e6b30['view']['type']});_0x2967c0['_bindAnnotationToEditors'](_0x13b6e6,_0x5a0ce0),_0x1253b9['add'](_0x5a0ce0),_0x32dfe0['registerAnnotation'](_0x5a0ce0);}['_destroyController'](_0x7ff427){const _0x4e1e37=this['editor']['plugins']['get']('CommentsRepository'),_0x29fc40=this['editor']['plugins']['get']('Annotations'),_0x15ee98=this['_suggestionToController']['get'](_0x7ff427),_0x125f56=_0x15ee98['view'],_0x1e163e=_0x29fc40['getByInnerView'](_0x125f56);_0x4e1e37['_unbindEditors'](_0x125f56),_0x1e163e&&_0x29fc40['remove'](_0x1e163e),this['_suggestionToController']['delete'](_0x7ff427),this['_viewToController']['delete'](_0x125f56),_0x15ee98['destroy']();}['_updateController'](_0x1280c8){if(!_0x1280c8['isInContent']||!this['_suggestionToController']['has'](_0x1280c8))return;const _0x1847a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x303902=this['_suggestionToController']['get'](_0x1280c8),_0x22e992=_0x1280c8['getAllAdjacentSuggestions']();_0x303902['view']['descriptionParts']=_0x1847a9['descriptionFactory']['getDescriptions'](_0x22e992);}['destroy'](){for(const _0x2f30d2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2f30d2);for(const _0x1326be of this['_annotationViews']['values']())_0x1326be['mainView']['destroy']();super['destroy']();}}function ae(_0x477810){return'model'in _0x477810;}class k extends _0x4a3ee7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x25b8ef){this['editor']['plugins']['get'](p)['adapter']=_0x25b8ef;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x100314){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x100314);}['getSuggestions']({skipNotAttached:_0x137ed4=!0x1,toJSON:_0xb9cf05=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x137ed4,'toJSON':_0xb9cf05});}['getSuggestion'](_0x4feed3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4feed3);}}const T=['Pagination'];class P extends _0x4a3ee7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2638c=this['editor'];if(_0x2638c['config']['define']('trackChangesData.editorCreator',_0x121db7=>{const _0x65bccf=_0x2638c['model']['document']['getRootNames']()['reduce']((_0x3877dd,_0x1fbedf)=>(_0x3877dd[_0x1fbedf]='',_0x3877dd),{});return _0x2638c['constructor']['create'](_0x65bccf,_0x121db7);}),'function'!=typeof _0x2638c['config']['get']('trackChangesData')['editorCreator'])throw new _0xf841e3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x186725){return N(this['editor'],!0x0,_0x186725);}['getDataWithDiscardedSuggestions'](_0x478548){return N(this['editor'],!0x1,_0x478548);}}class D extends _0x4a3ee7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x398df8){super(_0x398df8),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x18fe87){return void 0x0!==_0x18fe87['getRootsAttributes'];}async function N(_0x40b061,_0x2556ac,_0x2fefa0){const _0x1e777c=_0x33b7ed(_0x40b061,T);_0x1e777c['plugins']['push'](p,D),_0x1e777c['rootsAttributes']=v(_0x40b061)?_0x40b061['getRootsAttributes']():void 0x0;const _0x36922d=document['createDocumentFragment'](),_0x200b8e=_0x40b061['config']['get']('trackChangesData')['editorCreator'],_0x18b59f=await _0x200b8e(_0x1e777c,()=>function(_0x3b928e){const _0xf0c0f3=document['createElement']('div');return _0x3b928e['appendChild'](_0xf0c0f3),_0xf0c0f3;}(_0x36922d));!function(_0x5a719a,_0x2587dc){const _0x836f2d=_0x5a719a['model']['document']['getRootNames']()['reduce']((_0xdf80c0,_0x5ec9ab)=>(_0xdf80c0[_0x5ec9ab]=_0x5a719a['data']['get']({'rootName':_0x5ec9ab}),_0xdf80c0),{}),_0x1564d5=_0x5a719a['plugins']['get']('Users')['users']['map'](_0x2902d8=>({'id':_0x2902d8['id'],'name':_0x2902d8['name']})),_0x1c7233=_0x5a719a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b99bf=_0x5a719a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34286d=_0x2587dc['plugins']['get']('Users'),_0x564bb2=_0x2587dc['plugins']['get']('TrackChangesEditing'),_0x40c32c=_0x2587dc['plugins']['get']('CommentsRepository');for(const _0x405d6f of _0x1564d5)_0x34286d['getUser'](_0x405d6f['id'])||_0x34286d['addUser'](_0x405d6f);_0x34286d['me']||_0x34286d['useAnonymousUser']();for(const _0x3a9276 of _0x5b99bf)_0x40c32c['addCommentThread'](_0x3a9276);for(const _0x2fac81 of _0x1c7233)_0x564bb2['addSuggestionData'](_0x2fac81);_0x2587dc['data']['set'](_0x836f2d);}(_0x40b061,_0x18b59f),_0x18b59f['execute'](_0x2556ac?'acceptAllSuggestions':'discardAllSuggestions');const _0x101b60=v(_0x18b59f)?_0x18b59f['getFullData'](_0x2fefa0):_0x18b59f['data']['get'](_0x2fefa0);return await _0x18b59f['destroy'](),_0x101b60;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|