@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240620.1 → 0.0.0-nightly-20240622.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
|
-
_0x3d5e12(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3de5c6,_0x31f41a){super(),this['id']=_0x31f41a['id'],this['type']=_0x31f41a['type'],this['subType']=_0x31f41a['subType']||null,this['author']=_0x31f41a['author'],this['creator']=_0x31f41a['creator']||_0x31f41a['author'],this['isExternal']=Boolean(_0x31f41a['attributes']&&_0x31f41a['attributes']['@external']),this['data']=null,this['_model']=_0x3de5c6,this['_onAccept']=_0x31f41a['onAccept'],this['_onDiscard']=_0x31f41a['onDiscard'],this['_onAttributesChange']=_0x31f41a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x31f41a['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 _0x347bf9=this;for(;_0x347bf9['previous'];)_0x347bf9=_0x347bf9['previous'];return _0x347bf9;}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'](_0x4a21a2){this['_markerNames']['add'](_0x4a21a2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5a1e6f=>this['_model']['markers']['get'](_0x5a1e6f))['filter'](_0x13a163=>_0x13a163);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4d70ec=>{for(const _0x52796b of this['getMarkers']())_0x4d70ec['removeMarker'](_0x52796b);}),this['_markerNames']['clear']();}['removeMarker'](_0xf51d6b){this['_model']['change'](_0x227724=>{_0x227724['removeMarker'](_0xf51d6b);}),this['_markerNames']['delete'](_0xf51d6b);}['addRange'](_0x54bb3c){const _0x56864f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x56864f),this['_model']['change'](_0x428df2=>{_0x428df2['addMarker'](_0x56864f,{'range':_0x54bb3c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4724aa){for(const _0x30e376 of this['getRanges']())if(_0x30e376['isIntersecting'](_0x4724aa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3393a4=>_0x3393a4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x51ee4a,_0x383bb9)=>[..._0x51ee4a,..._0x383bb9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2db3f2=this['getRanges']();if(0x1!=_0x2db3f2['length'])return null;const _0x1c4fa6=_0x2db3f2[0x0],_0x59317e=_0x1c4fa6['start']['nodeAfter'],_0x3f6ac3=_0x1c4fa6['end']['nodeBefore'];return _0x59317e instanceof _0x49e2a6?_0x59317e!=_0x3f6ac3?null:_0x59317e: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 _0x53903c=[];let _0x1c4b56=this['head'];for(;_0x1c4b56;)_0x53903c['push'](_0x1c4b56),_0x1c4b56=_0x1c4b56['next'];return _0x53903c;}['setAttribute'](_0x25bab9,_0x356ffa){const _0x56b60d=_0x397fb7(this['attributes']);_0x5ad36f(_0x56b60d,_0x25bab9,_0x356ffa),_0x283872(_0x56b60d,this['attributes'])||(this['attributes']=_0x56b60d,this['_onAttributesChange'](_0x56b60d));}['removeAttribute'](_0xfd4e36){const _0x21230b=_0x397fb7(this['attributes']);_0x1af6de(_0x21230b,_0xfd4e36),_0x283872(_0x21230b,this['attributes'])||(this['attributes']=_0x21230b,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 _0x50a7b0()['substr'](0x1,0x5);}}function o(_0x26f171,_0x4528ee,_0x90f648){const t=_0x26f171['t'];switch(_0x4528ee){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',_0x90f648);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x90f648);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x90f648);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x90f648);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x90f648);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',_0x90f648);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x90f648);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',_0x90f648);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x90f648);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x90f648);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x90f648);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x90f648);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x90f648);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x90f648);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x90f648);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x90f648);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x90f648);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x90f648);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x90f648);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x90f648);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x90f648);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x90f648);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x90f648);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'},_0x90f648);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x90f648);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x90f648);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x90f648);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x90f648);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x90f648);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'},_0x90f648);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x90f648);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x90f648);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x90f648);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x90f648);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'},_0x90f648);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x90f648);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'},_0x90f648);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'},_0x90f648);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x90f648);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'},_0x90f648);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x90f648);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'},_0x90f648);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x90f648);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x90f648);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'},_0x90f648);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'},_0x90f648);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 _0x4528ee;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x590eaf,_0x2d081a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x590eaf,this['_locale']=_0x2d081a;}['getDescriptions'](_0x1482a4){const _0x35e0ea=[],_0x3d7025=new Set(),_0x1b9184=new Set();for(let _0x418b5b=0x0;_0x418b5b<_0x1482a4['length'];_0x418b5b++){const _0x55d335=_0x1482a4[_0x418b5b];if(!_0x55d335['isInContent'])continue;const _0x3ca2d4=this['_handleCustomCallbackDescription'](_0x55d335);if(_0x3ca2d4){if(null!=_0x55d335['subType']){if(_0x3d7025['has'](_0x55d335['subType']))continue;_0x3d7025['add'](_0x55d335['subType']);}_0x35e0ea['push'](_0x3ca2d4);}else{if('attribute'!=_0x55d335['type'])'insertion'!=_0x55d335['type']&&'deletion'!=_0x55d335['type']||this['_handleInsertRemoveSuggestionDescription'](_0x35e0ea,_0x55d335,_0x1482a4[_0x418b5b+0x1]);else{const _0x492036=_0x55d335['data']['key'];if(_0x1b9184['has'](_0x492036))continue;_0x1b9184['add'](_0x55d335['data']['key']),_0x492036==m?this['_handleRenameSuggestionDescription'](_0x35e0ea,_0x55d335):this['_handleAttributeSuggestionDescription'](_0x35e0ea,_0x55d335);}}}return this['_resolveDescriptionItems'](_0x35e0ea);}['registerDescriptionCallback'](_0x14b848){this['_customCallbacks']['push'](_0x14b848);}['registerElementLabel'](_0x4f6122,_0x37b85a,_0x43f664=_0x362a86['normal']){'function'==typeof _0x4f6122?_0x146923(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4f6122,'label':_0x37b85a,'priority':_0x43f664}):this['_itemLabels']['set'](_0x4f6122,_0x37b85a);}['registerAttributeLabel'](_0x23c6d4,_0xb8747c){this['_attributeLabels']['set'](_0x23c6d4,_0xb8747c);}['getItemLabel'](_0x14f795,_0x3990b8=0x1){let _0xfd5ec0;for(const _0x1b8c95 of this['_itemLabelsCallbacks'])if(_0x1b8c95['matchingCallback'](_0x14f795)){_0xfd5ec0=_0x1b8c95['label'];break;}return _0xfd5ec0||(_0xfd5ec0=this['_itemLabels']['get'](_0x14f795['name'])),_0xfd5ec0?_0xfd5ec0(_0x3990b8):0x1!==_0x3990b8?_0x3990b8+'\x20'+_0x14f795['name']+'s':''+_0x14f795['name'];}['_addDescriptionItems'](_0x2c7fbc,_0x1cc1a0){const _0x319d7b=_0x1cc1a0['getFirstRange']()['getWalker'](),_0x19bb32='insertion'==_0x1cc1a0['type']?'add':'remove';for(const _0x55232f of _0x319d7b){const _0x47ce13=_0x55232f['item'],_0x6f47cc=_0x2c7fbc[_0x2c7fbc['length']-0x1];if(_0x47ce13['is']('$textProxy'))_0x6f47cc&&_0x6f47cc['type']['indexOf']('Container')>-0x1&&_0x2c7fbc['pop'](),_0x6f47cc&&'text'==_0x6f47cc['type']?_0x6f47cc[_0x19bb32]+=_0x47ce13['data']:_0x2c7fbc['push']({'type':'text','add':'add'==_0x19bb32?_0x47ce13['data']:'','remove':'remove'==_0x19bb32?_0x47ce13['data']:''});else{if(this['_schema']['isObject'](_0x47ce13)){const _0x218e73=_0x47ce13;if(_0x6f47cc&&_0x6f47cc['type']['indexOf']('Container')>-0x1&&_0x2c7fbc['pop'](),'elementEnd'==_0x55232f['type'])continue;_0x6f47cc&&_0x6f47cc['type']==_0x19bb32+'Object'&&_0x6f47cc['element']['name']==_0x218e73['name']?_0x6f47cc['quantity']++:_0x2c7fbc['push']({'type':_0x19bb32+'Object','element':_0x218e73,'quantity':0x1}),_0x319d7b['skip'](_0x490a8a=>!('elementEnd'==_0x490a8a['type']&&_0x490a8a['item']==_0x47ce13));}else{if(this['_schema']['checkChild'](_0x47ce13,'$text')||_0x47ce13['is']('element','softBreak')){const _0x4536d0=_0x47ce13;if('add'==_0x19bb32&&'elementStart'==_0x55232f['type']||'remove'==_0x19bb32&&'elementEnd'==_0x55232f['type'])continue;if(_0x6f47cc&&-0x1==_0x6f47cc['type']['indexOf']('Container')){'text'==_0x6f47cc['type']&&(_0x6f47cc[_0x19bb32]+='\x0a');continue;}let _0x381ac4;if(_0x381ac4='add'==_0x19bb32?_0x4536d0['nextSibling']&&!this['_schema']['isObject'](_0x4536d0['nextSibling'])?_0x4536d0['nextSibling']:null:_0x4536d0['previousSibling']&&!this['_schema']['isObject'](_0x4536d0['previousSibling'])?_0x4536d0['previousSibling']:null,_0x4536d0['isEmpty']||_0x381ac4&&_0x381ac4['isEmpty']){const _0x59b063=_0x381ac4&&_0x381ac4['isEmpty']?_0x381ac4:_0x4536d0;_0x6f47cc&&_0x6f47cc['type']==_0x19bb32+'EmptyContainer'&&_0x6f47cc['element']['name']==_0x59b063['name']?_0x6f47cc['quantity']++:_0x2c7fbc['push']({'type':_0x19bb32+'EmptyContainer','element':_0x59b063,'quantity':0x1});}else _0x2c7fbc['push']({'type':_0x19bb32+'Container','element':_0x4536d0});}}}}}['_resolveDescriptionItems'](_0x5a379e){const _0x4cd2a5=this['_locale'],_0x21a72f=[],_0x557c40=[],_0x4d7330=[];for(const _0x2f029f of _0x5a379e)switch(_0x2f029f['type']){case'text':if(_0x2f029f['add']=_0x2f029f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2f029f['remove']=_0x2f029f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2f029f['add']&&''!=_0x2f029f['remove']){_0x21a72f['push']({'type':'replace','content':o(_0x4cd2a5,'REPLACE_TEXT',['\x22'+_0x2f029f['remove']+'\x22','\x22'+_0x2f029f['add']+'\x22'])});continue;}if(null!=_0x2f029f['add']['match'](/^ +$/)){_0x21a72f['push']({'type':'insertion','content':o(_0x4cd2a5,'*Insert:*\x20%0',o(_0x4cd2a5,'ELEMENT_SPACE',_0x2f029f['add']['length']))});continue;}if(null!=_0x2f029f['remove']['match'](/^ +$/)){_0x21a72f['push']({'type':'deletion','content':o(_0x4cd2a5,'*Remove:*\x20%0',o(_0x4cd2a5,'ELEMENT_SPACE',_0x2f029f['remove']['length']))});continue;}if(''!=_0x2f029f['add']){_0x21a72f['push']({'type':'insertion','content':o(_0x4cd2a5,'*Insert:*\x20%0','\x22'+_0x2f029f['add']+'\x22')});continue;}_0x21a72f['push']({'type':'deletion','content':o(_0x4cd2a5,'*Remove:*\x20%0','\x22'+_0x2f029f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x21a72f['push']({'type':'insertion','content':o(_0x4cd2a5,'*Insert:*\x20%0',this['getItemLabel'](_0x2f029f['element'],_0x2f029f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x21a72f['push']({'type':'deletion','content':o(_0x4cd2a5,'*Remove:*\x20%0',this['getItemLabel'](_0x2f029f['element'],_0x2f029f['quantity']))});continue;case'addContainer':_0x21a72f['push']({'type':'insertion','content':o(_0x4cd2a5,'*Split:*\x20%0',this['getItemLabel'](_0x2f029f['element'],_0x2f029f['quantity']))});continue;case'removeContainer':_0x21a72f['push']({'type':'deletion','content':o(_0x4cd2a5,'*Merge:*\x20%0',this['getItemLabel'](_0x2f029f['element'],_0x2f029f['quantity']))});continue;case'addFormat':_0x557c40['push'](_0x2f029f['key']);continue;case'removeFormat':_0x4d7330['push'](_0x2f029f['key']);continue;default:_0x21a72f['push'](_0x2f029f);}if(_0x557c40['length']){const _0x3bbb58=_0x557c40['map'](_0x1d6248=>this['_attributeLabels']['has'](_0x1d6248)?this['_attributeLabels']['get'](_0x1d6248):_0x1d6248)['join'](',\x20');_0x21a72f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3bbb58)});}if(_0x4d7330['length']){const _0xbbf1b8=_0x4d7330['map'](_0x5230b8=>this['_attributeLabels']['has'](_0x5230b8)?this['_attributeLabels']['get'](_0x5230b8):_0x5230b8)['join'](',\x20');_0x21a72f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xbbf1b8)});}return _0x21a72f;}['_handleCustomCallbackDescription'](_0x35c3d3){for(const _0x4adc65 of this['_customCallbacks']){const _0x240b05=_0x4adc65(_0x35c3d3);if(_0x240b05&&'type'in _0x240b05)return _0x240b05;}}['_handleAttributeSuggestionDescription'](_0x559698,_0x1a1e97){const _0x1918d5=_0x1a1e97['data'],_0x515bf2=void 0x0===_0x1918d5['newValue']?'removeFormat':'addFormat';_0x559698['push']({'type':_0x515bf2,'key':_0x1918d5['key']});}['_handleRenameSuggestionDescription'](_0x464830,_0x9f1b40){_0x464830['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x9f1b40['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1ddb29,_0x2c113a,_0x558f3f){if(this['_addDescriptionItems'](_0x1ddb29,_0x2c113a),_0x558f3f&&_0x558f3f['getFirstRange']()&&!_0x2c113a['getFirstRange']()['end']['isEqual'](_0x558f3f['getFirstRange']()['start'])){const _0xf4d366=_0x1ddb29[_0x1ddb29['length']-0x1],_0xd79077='insertion'==_0x2c113a['type']?'add':'remove';_0xf4d366&&'text'==_0xf4d366['type']&&(_0xf4d366[_0xd79077]+='\x0a');}}}class E extends _0x513c76{['afterInit'](){const _0x2ddf00=this['editor'],_0x3069ba=_0x2ddf00['plugins']['get']('TrackChangesEditing');_0x2ddf00['commands']['get']('showAIAssistant')&&_0x3069ba['enableCommand']('showAIAssistant');}}class V extends _0x513c76{['afterInit'](){const _0xa60f53=this['editor'],_0x1b95ee=_0xa60f53['locale'];if(!_0xa60f53['plugins']['has']('AlignmentEditing'))return;const _0xdb7865=_0xa60f53['plugins']['get']('TrackChangesEditing');_0xdb7865['enableDefaultAttributesIntegration']('alignment'),_0xdb7865['registerBlockAttribute']('alignment'),_0xdb7865['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1b95ee,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9bef30=this['editor'],_0x3bf7c4=_0x9bef30['locale'];_0x9bef30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c30b9=>{if('formatBlock'!=_0x4c30b9['type'])return;const {data:_0x3edfd6}=_0x4c30b9;if(_0x3edfd6&&'alignment'==_0x3edfd6['commandName']){const _0x1794a2=_0x3edfd6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3bf7c4,'*Format:*\x20%0',function(_0xb6e175){switch(_0xb6e175){case'left':return o(_0x3bf7c4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3bf7c4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3bf7c4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3bf7c4,'FORMAT_JUSTIFY_TEXT');}}(_0x1794a2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x513c76{['afterInit'](){const _0x14694a=this['editor'],_0x98d2f9=_0x14694a['plugins']['get']('TrackChangesEditing'),_0x33eb70=_0x14694a['locale'];for(const _0x179cc4 of ti){if(!_0x14694a['plugins']['has'](_0x179cc4))continue;const _0x479e43=_0x179cc4['slice'](0x0,-0x7)['toLowerCase'](),_0xee5f66='FORMAT_'+_0x479e43['toUpperCase']();_0x98d2f9['enableDefaultAttributesIntegration'](_0x479e43),_0x98d2f9['registerInlineAttribute'](_0x479e43),_0x98d2f9['descriptionFactory']['registerAttributeLabel'](_0x479e43,o(_0x33eb70,_0xee5f66));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1edc1f=this['editor'],_0x25954b=_0x1edc1f['locale'],_0x31798f=_0x1edc1f['plugins']['get']('TrackChangesEditing');function _0x4518c0(_0x565dcb,_0x3a1af2){_0x31798f['descriptionFactory']['registerDescriptionCallback'](_0x1d2ba9=>{if('formatInline'!=_0x1d2ba9['type'])return;const {data:_0x473a22}=_0x1d2ba9;return _0x473a22&&_0x473a22['commandName']===_0x565dcb?_0x473a22['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25954b,'*Format:*\x20%0',_0x3a1af2)}:{'type':'format','content':o(_0x25954b,'*Remove\x20format:*\x20%0',_0x3a1af2)}:void 0x0;});}_0x4518c0('bold',o(_0x25954b,'FORMAT_BOLD')),_0x4518c0('italic',o(_0x25954b,'FORMAT_ITALIC')),_0x4518c0('underline',o(_0x25954b,'FORMAT_UNDERLINE')),_0x4518c0('code',o(_0x25954b,'FORMAT_CODE')),_0x4518c0('strikethrough',o(_0x25954b,'FORMAT_STRIKETHROUGH')),_0x4518c0('subscript',o(_0x25954b,'FORMAT_SUBSCRIPT')),_0x4518c0('superscript',o(_0x25954b,'FORMAT_SUPERSCRIPT'));}}class O extends _0x513c76{['afterInit'](){const _0xb5f4c1=this['editor'],_0x350fe3=_0xb5f4c1['locale'];if(!_0xb5f4c1['plugins']['has']('BlockQuoteEditing'))return;const _0x30cde8=_0xb5f4c1['plugins']['get']('TrackChangesEditing'),_0x3f91fc=this['editor']['commands']['get']('blockQuote');_0x30cde8['enableCommand']('blockQuote',(_0x53f7f2,_0x39ebfa={})=>{const _0x2adfb1=this['editor']['model']['document']['selection'],_0x149960=_0x39ebfa&&void 0x0!==_0x39ebfa['forceValue']?_0x39ebfa['forceValue']:!_0x3f91fc['value'];let _0x34ee56=[];if(_0x149960){const _0xdc927a=Array['from'](_0x2adfb1['getSelectedBlocks']())['filter'](_0x1ec0f1=>oo(_0x1ec0f1)||function(_0x1d5f59,_0x20799f){const _0x6564=_0x20799f['checkChild'](_0x1d5f59['parent'],'blockQuote'),_0x3100a8=_0x20799f['checkChild'](['$root','blockQuote'],_0x1d5f59);return _0x6564&&_0x3100a8;}(_0x1ec0f1,this['editor']['model']['schema']));_0x34ee56=to(_0xdc927a,_0xb5f4c1['model']);}else{const _0x984ecb=Array['from'](_0x2adfb1['getSelectedBlocks']())['filter'](_0x36d424=>oo(_0x36d424));_0x34ee56=to(_0x984ecb,_0xb5f4c1['model']);}_0xb5f4c1['model']['change'](()=>{for(const _0x344e3b of _0x34ee56)_0x30cde8['markBlockFormat'](_0x344e3b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x149960}]});});}),_0x30cde8['descriptionFactory']['registerDescriptionCallback'](_0xd5b991=>{const {data:_0x5b3b34}=_0xd5b991;if(_0x5b3b34&&'blockQuote'==_0x5b3b34['commandName']){const _0x5eeabb=o(_0x350fe3,'ELEMENT_BLOCK_QUOTE');return _0x5b3b34['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x350fe3,'*Set\x20format:*\x20%0',_0x5eeabb)}:{'type':'format','content':o(_0x350fe3,'*Remove\x20format:*\x20%0',_0x5eeabb)};}});}}function oo(_0x3ec204){return'blockQuote'==_0x3ec204['parent']['name'];}class G extends _0x513c76{['afterInit'](){const _0xf7f085=this['editor'];_0xf7f085['plugins']['has']('CaseChange')&&(_0xf7f085['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xf7f085['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xf7f085['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x513c76{['afterInit'](){const _0x2436df=this['editor'];_0x2436df['commands']['get']('ckbox')&&_0x2436df['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x513c76{['afterInit'](){const _0x643a9c=this['editor'];if(!_0x643a9c['plugins']['has']('CodeBlock'))return;const _0x3a4493=_0x643a9c['plugins']['get']('TrackChangesEditing'),_0xc31dcd=_0x643a9c['locale'],_0x48207a=_0x643a9c['config']['get']('codeBlock')['languages'],_0x9806aa=_0x643a9c['commands']['get']('codeBlock');_0x3a4493['enableCommand']('indentCodeBlock'),_0x3a4493['enableCommand']('outdentCodeBlock'),_0x3a4493['enableCommand']('codeBlock',(_0x42d5a2,_0x106329={})=>{const _0x2ec33b=_0x643a9c['model'],_0x5eae94=_0x643a9c['model']['document']['selection'],_0x1b4210=_0x106329&&void 0x0!==_0x106329['forceValue']?_0x106329['forceValue']:!_0x9806aa['value'];let _0x5eef87;_0x106329['language']||(_0x106329['language']=_0x48207a[0x0]['language']),_0x5eef87=_0x1b4210?Array['from'](_0x5eae94['getSelectedBlocks']())['filter'](_0x45f9f5=>eo(_0x45f9f5)||function(_0x3b32c9,_0x4b9c73){if(_0x3b32c9['is']('rootElement')||_0x4b9c73['isLimit'](_0x3b32c9))return!0x1;return _0x4b9c73['checkChild'](_0x3b32c9['parent'],'codeBlock');}(_0x45f9f5,_0x2ec33b['schema'])):Array['from'](_0x5eae94['getSelectedBlocks']())['filter'](_0x5327a4=>eo(_0x5327a4));const _0x422b00=to(_0x5eef87,_0x2ec33b);_0x2ec33b['change'](()=>{for(const _0x58849c of _0x422b00)_0x3a4493['markBlockFormat'](_0x58849c,{'commandName':'codeBlock','commandParams':[{..._0x106329,'forceValue':_0x1b4210}],'formatGroupId':'blockName'});});}),(_0x3a4493['descriptionFactory']['registerElementLabel']('codeBlock',_0x50b58c=>o(_0xc31dcd,'ELEMENT_CODE_BLOCK',_0x50b58c)),_0x3a4493['descriptionFactory']['registerDescriptionCallback'](_0x26c330=>{if('formatBlock'!=_0x26c330['type'])return;const _0x5ca105=_0xc31dcd['t'],{data:_0xfb24c5}=_0x26c330;if(!_0xfb24c5||'codeBlock'!=_0xfb24c5['commandName'])return;const _0x559e39=_0xfb24c5['commandParams'][0x0]['language'],_0x10c524=_0x5ca105(_0x48207a['find'](_0x23e9e4=>_0x23e9e4['language']===_0x559e39)['label'])['toLowerCase']();return _0xfb24c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc31dcd,'*Set\x20format:*\x20%0',o(_0xc31dcd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x10c524+')')}:{'type':'format','content':o(_0xc31dcd,'*Remove\x20format:*\x20%0',o(_0xc31dcd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3eef7b){return'codeBlock'==_0x3eef7b['name'];}class H extends _0x513c76{['afterInit'](){const _0x30a9d1=this['editor'];if(!_0x30a9d1['plugins']['has']('CommentsEditing'))return;_0x30a9d1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3c8d77,_0x5e7ace,_0x43aab5){const _0x6cc4b5=[];for(const _0x1e4917 of _0x5e7ace['getItems']())_0x1e4917['hasAttribute'](_0x3c8d77)&&_0x6cc4b5['push'](_0x43aab5['createRangeOn'](_0x1e4917));return _0x6cc4b5;}function _e(_0x5cf8a5,_0x1b13d8,{showActiveMarker:_0x10b208=!0x0}={}){const _0x53c3ce=_0x5cf8a5['plugins']['get']('TrackChangesEditing');return(_0x49f4bc,_0x231e7a,_0x4d5595)=>{if(!_0x4d5595['consumable']['test'](_0x231e7a['markerRange'],_0x49f4bc['name']))return;const _0x1e80ab=_0x231e7a['markerRange']['getWalker'](),_0x70a949=_0x231e7a['markerRange']['start'],_0x47a5bf=_0x5cf8a5['model']['schema'];let _0x2b9a35=null,_0x548ab7=null,_0x580cbe=!0x1,_0x5780f0=!0x1;for(const _0x7b9af8 of _0x1e80ab){const _0x1199a9=_0x7b9af8['item'];_0x580cbe=_0x580cbe||_0x47a5bf['isContent'](_0x1199a9);const _0x155511=_0x4d5595['mapper']['toViewElement'](_0x1199a9);if(_0x155511&&_0x155511['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x7b9af8['type']&&(_0x47a5bf['isBlock'](_0x1199a9)&&!_0x47a5bf['isLimit'](_0x1199a9)&&(_0x1199a9['nextSibling']||_0x70a949['isAtEnd']?_0x2b9a35&&_0x2b9a35['parent']==_0x1199a9||(_0x2b9a35=_0x1199a9,_0x3a75b9(_0x7b9af8['previousPosition']),_0x5780f0=!0x0):_0x548ab7=_0x548ab7||_0x7b9af8['previousPosition']));}function _0x3a75b9(_0x37dfae){const _0x5ad478=_0x4d5595['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b13d8}),_0x3aea98=_0x4d5595['mapper']['toViewPosition'](_0x37dfae);_0x10b208&&_0x53c3ce['activeMarkers']['includes'](_0x231e7a['markerName'])&&_0x4d5595['writer']['addClass']('ck-suggestion-marker--active',_0x5ad478),_0x4d5595['writer']['insert'](_0x3aea98,_0x5ad478),_0x4d5595['mapper']['bindElementToMarker'](_0x5ad478,_0x231e7a['markerName']);}_0x580cbe||_0x5780f0||!_0x548ab7||_0x3a75b9(_0x548ab7);};}class q extends _0x513c76{static get['requires'](){return[_0x4b0990];}['init'](){const _0x3963cc=this['editor'],_0x3e86be=_0x3963cc['plugins']['get']('TrackChangesEditing');_0x3e86be['enableCommand']('delete');const _0x4728c=_0x3963cc['commands']['get']('deleteForward');_0x3e86be['enableCommand']('deleteForward',(_0x1b639c,_0x2ccb45={})=>{const _0x44fc5b=_0x3963cc['model']['createSelection'](_0x3963cc['model']['document']['selection']);_0x44fc5b['isCollapsed']&&_0x3963cc['model']['modifySelection'](_0x44fc5b,{'direction':'forward','unit':_0x2ccb45['unit']});const _0x5c46d6=_0x44fc5b['getFirstRange'](),_0x73f4b9=_0x1677da['fromRange'](_0x5c46d6);let _0x3e8628;_0x1b639c(_0x2ccb45),_0x3e8628='$graveyard'==_0x73f4b9['root']['rootName']?_0x3963cc['model']['createRange'](_0x5c46d6['start']):_0x3963cc['model']['createRange'](_0x73f4b9['start'],_0x73f4b9['end']),_0x73f4b9['detach'](),_0x3963cc['model']['enqueueChange'](_0x4728c['buffer']['batch'],_0x15bbee=>{_0x4728c['buffer']['lock'](),_0x15bbee['setSelection'](_0x15bbee['createRange'](_0x3e8628['end'])),_0x4728c['buffer']['unlock']();});}),_0x3963cc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3963cc,'merge'),{'priority':'high'}),_0x3963cc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1bbc05,_0x4a628e,_0xdd3728)=>{_0xdd3728['options']['showSuggestionHighlights']&&_e(_0x3963cc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1bbc05,_0x4a628e,_0xdd3728);},{'priority':'high'}),_0x3963cc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4610d6,_0x5933d5,_0x21cf54)=>{const _0x3f3245=_0x21cf54['mapper']['markerNameToElements'](_0x5933d5['markerName']);if(_0x3f3245){for(const _0x3f6f8e of _0x3f3245)_0x3f6f8e['is']('uiElement')&&(_0x21cf54['mapper']['unbindElementFromMarkerName'](_0x3f6f8e,_0x5933d5['markerName']),_0x21cf54['writer']['remove'](_0x3f6f8e));}},{'priority':'high'});}}class z extends _0x513c76{['afterInit'](){const _0x15e6e0=this['editor'];if(!_0x15e6e0['plugins']['has']('ListEditing'))return;const _0x5e8bdb=_0x15e6e0['locale'],_0x1c9954=_0x15e6e0['plugins']['get']('TrackChangesEditing'),_0x1f2d8f=_0x15e6e0['plugins']['has']('TodoListEditing'),_0x57463a=!!_0x15e6e0['config']['get']('list.multiBlock');function _0x55cdc2(_0x37a338){return{'type':'format','content':''+o(_0x5e8bdb,'*Set\x20format:*\x20%0',_0x37a338)};}function _0x48f68e(_0x3f4edb){return{'type':'format','content':''+o(_0x5e8bdb,'*Remove\x20format:*\x20%0',_0x3f4edb)};}_0x1c9954['enableDefaultAttributesIntegration']('numberedList'),_0x1c9954['enableDefaultAttributesIntegration']('bulletedList'),_0x1c9954['enableDefaultAttributesIntegration']('customNumberedList'),_0x1c9954['enableDefaultAttributesIntegration']('customBulletedList'),_0x1c9954['enableDefaultAttributesIntegration']('indentList'),_0x1c9954['enableDefaultAttributesIntegration']('outdentList'),_0x1c9954['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1c9954['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1c9954['registerBlockAttribute']('listItemId'),_0x1c9954['registerBlockAttribute']('listType'),_0x1c9954['registerBlockAttribute']('listIndent'),_0x57463a&&(_0x1c9954['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1c9954['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1f2d8f&&(_0x1c9954['enableDefaultAttributesIntegration']('todoList'),_0x1c9954['enableDefaultAttributesIntegration']('checkTodoList'),_0x1c9954['registerBlockAttribute']('todoListChecked'),_0x1c9954['descriptionFactory']['registerDescriptionCallback'](_0x451b99=>{const {data:_0x33fbf4}=_0x451b99;if(_0x33fbf4&&'todoListChecked'==_0x33fbf4['key'])return{'type':'format','content':_0x33fbf4['newValue']?o(_0x5e8bdb,'*Check\x20item*'):o(_0x5e8bdb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3660ee=>{if(_0x3660ee['batch']['isUndo'])return!0x1;let _0xbed69d=!0x1;const _0x2b0e0e=_0x1c9954['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x209a28=>'todoListChecked'===_0x1c9954['_getAttributeKey'](_0x209a28));for(const _0x4d9147 of _0x2b0e0e){'todo'!=_0x4d9147['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1c9954['_findSuggestions'](_0x4d9147['getFirstRange'](),'attribute')['find'](_0x52ce19=>'listType'===_0x1c9954['_getAttributeKey'](_0x52ce19['suggestion']))||(_0x3660ee['removeMarker'](_0x4d9147['getFirstMarker']()),_0xbed69d=!0x0));}return _0xbed69d;})),_0x1c9954['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5e8bdb,'FORMAT_INDENT'));const _0x27d6d8={'type':'format','content':''};_0x1c9954['descriptionFactory']['registerDescriptionCallback'](_0x40b0e9=>{const {data:_0x5a8a18}=_0x40b0e9;if(!_0x5a8a18||'listType'!=_0x5a8a18['key'])return;let _0xbd4742=_0x40b0e9['head'];for(;_0xbd4742;){if(_0xbd4742['data']&&(('listStyle'==_0xbd4742['data']['key']||'listMarkerStyle'==_0xbd4742['data']['key'])&&(_0xbd4742['data']['newValue']&&'default'!=_0xbd4742['data']['newValue']||'default'!=_0xbd4742['data']['oldValue']&&!_0x5a8a18['newValue'])||!_0x57463a&&_0xbd4742['data']['key']==m))return _0x27d6d8;_0xbd4742=_0xbd4742['next'];}if(null==_0x5a8a18['newValue'])switch(_0x5a8a18['oldValue']){case'bulleted':return _0x48f68e(o(_0x5e8bdb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48f68e(o(_0x5e8bdb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48f68e(o(_0x5e8bdb,'ELEMENT_TODO_LIST'));}switch(_0x5a8a18['newValue']){case'bulleted':return _0x55cdc2(o(_0x5e8bdb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55cdc2(o(_0x5e8bdb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55cdc2(o(_0x5e8bdb,'ELEMENT_TODO_LIST'));}}),_0x1c9954['descriptionFactory']['registerDescriptionCallback'](_0x125e7b=>{const {data:_0x390206}=_0x125e7b;if(_0x390206&&'listIndent'==_0x390206['key'])return null==_0x390206['newValue']||null==_0x390206['oldValue']&&0x0==_0x390206['newValue']?_0x27d6d8:void 0x0;}),_0x1c9954['descriptionFactory']['registerDescriptionCallback'](_0x5692d5=>{if('attribute'!=_0x5692d5['type'])return;const {data:_0x36dd27}=_0x5692d5;if(!_0x36dd27||'listItemId'!=_0x36dd27['key'])return;const _0x1fdc8e=le(_0x5692d5);return'newValue'==_0x1fdc8e?{'type':'format','content':o(_0x5e8bdb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1fdc8e?{'type':'format','content':o(_0x5e8bdb,'*Split:*\x20list\x20item')}:_0x27d6d8;}),_0x15e6e0['model']['document']['registerPostFixer'](_0x1fe366=>this['listItemIdFixer'](_0x1fe366)),_0x15e6e0['model']['document']['registerPostFixer'](_0x2b5d04=>this['noTrackChangesFixer'](_0x2b5d04)),_0x15e6e0['model']['document']['registerPostFixer'](_0x1c2e0d=>this['assureChains'](_0x1c2e0d)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4a9728){if(_0x4a9728['batch']['isUndo']||!_0x4a9728['batch']['isLocal'])return!0x1;let _0x40dfe9=!0x1;const _0x188708=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c22f5=>_0x2c22f5['data']&&'listItemId'==_0x2c22f5['data']['key'])['filter'](_0x9f82db=>_0x9f82db['data']['newValue']&&_0x9f82db['data']['oldValue']);for(const _0x2d8dde of _0x188708)le(_0x2d8dde)||(_0x4a9728['removeMarker'](_0x2d8dde['getFirstMarker']()),_0x40dfe9=!0x0);return _0x40dfe9;}['noTrackChangesFixer'](_0x2478cc){if(_0x2478cc['batch']['isUndo']||!_0x2478cc['batch']['isLocal'])return!0x1;const _0x4f1b33=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4f1b33['trackChangesCommand']['value'])return!0x1;let _0x4844b0=!0x1;const _0x299398=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x558b7b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x332732=>'attribute'==_0x332732['type'])['filter'](_0x1958f4=>_0x299398['includes'](_0x1958f4['attributeKey']));if(0x0==_0x558b7b['length'])return _0x4844b0;for(const _0x4657bb of _0x558b7b){const _0x2643ab=_0x4f1b33['_findSuggestions'](_0x4657bb['range'],'attribute')['filter'](_0x147b66=>!_0x147b66['meta']['isNextTo'])['map'](_0x36f960=>_0x36f960['suggestion'])['filter'](_0x26b619=>{const _0x384a85=_0x4f1b33['_getAttributeKey'](_0x26b619);return _0x299398['includes'](_0x384a85);});if(_0x2643ab['length']){for(const _0x9a91a8 of _0x2643ab)_0x2478cc['removeMarker'](_0x9a91a8['getFirstMarker']());_0x4844b0=!0x0;}}return _0x4844b0;}['assureChains'](_0x1096ff){if(_0x1096ff['batch']['isUndo']||!_0x1096ff['batch']['isLocal'])return!0x1;const _0x3232f1=this['editor']['plugins']['get']('TrackChangesEditing');let _0x187b80=!0x1;const _0x680fb6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xcc71f2 of _0x3232f1['getSuggestions']({'skipNotAttached':!0x0})){const _0x1e4512=_0x3232f1['_findSuggestions'](_0xcc71f2['getFirstRange'](),'attribute')['map'](_0xc0badd=>_0xc0badd['suggestion'])['filter'](_0x32f7bb=>_0x32f7bb['data']&&_0x680fb6['includes'](_0x32f7bb['data']['key']));if(!_0x1e4512['length'])continue;const _0x52d35e=_0x1e4512[0x0]['head']['attributes']['groupId'];if(!_0x1e4512['every'](_0x4d0e19=>_0x4d0e19['attributes']['groupId']===_0x52d35e)){for(const _0x3b0740 of _0x1e4512)_0x5c50bb(_0x3b0740,_0x52d35e)&&(_0x187b80=!0x0);}}return _0x187b80;function _0x4d19e2(_0x15119e,_0x43aa47){for(const _0x4eda1a of _0x3232f1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x581ee0=>'attribute'==_0x581ee0['type']&&_0x581ee0['attributes']['groupId']==_0x15119e))_0x4eda1a['setAttribute']('groupId',_0x43aa47);}function _0x5c50bb(_0x38e9e5,_0x5697da){let _0x4b132c=_0x38e9e5['head'],_0x55f136=!0x1;for(;_0x4b132c;)_0x4b132c['attributes']['groupId']!=_0x5697da&&(_0x4d19e2(_0x4b132c['attributes']['groupId'],_0x5697da),_0x4b132c['setAttribute']('groupId',_0x5697da),_0x55f136=!0x0),_0x4b132c=_0x4b132c['next'];return _0x55f136;}}['_supportLegacySuggestions'](){const _0xa11dd2=this['editor'],_0x116a0f=_0xa11dd2['locale'],_0x16d690=_0xa11dd2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x16d690['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x27977f,_0x3f135e){const _0x290ded=[];for(let _0x5e145a of _0x27977f)_0x5e145a['start']['nodeAfter']===_0x5e145a['end']['parent']&&(_0x5e145a=_0xa11dd2['model']['createRange'](_0xa11dd2['model']['createPositionAt'](_0x5e145a['start']['nodeAfter'],0x0))),_0x290ded['push'](_0x5e145a);_0xa11dd2['model']['change'](_0x19d1fa=>{const _0x59eb49=_0xa11dd2['model']['document']['selection'],_0x2cb27c=Array['from'](_0x59eb49['getRanges']())['map'](_0x5a5642=>_0x1677da['fromRange'](_0x5a5642));_0x19d1fa['setSelection'](_0x290ded),_0xa11dd2['commands']['get'](_0x3f135e['commandName'])['refresh'](),_0x3f135e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa11dd2['execute'](_0x3f135e['commandName'],..._0x3f135e['commandParams']),_0x19d1fa['setSelection'](_0x2cb27c);for(const _0x2191ef of _0x2cb27c)_0x2191ef['detach']();});}),_0x16d690['descriptionFactory']['registerElementLabel'](function(_0x1ab371){const _0x228b6b=!_0xa11dd2['model']['schema']['isObject'](_0x1ab371),_0x111dea=_0x1ab371['previousSibling'],_0x703289=_0x1ab371['nextSibling'],_0x9f30d9=_0x1ab371['getAttribute']('listItemId'),_0x91e710=!_0x111dea||_0x111dea['getAttribute']('listItemId')!==_0x9f30d9,_0x1e53c1=!_0x703289||_0x703289['getAttribute']('listItemId')!==_0x9f30d9;return _0x228b6b&&Boolean(_0x9f30d9)&&_0x91e710&&_0x1e53c1;},_0x35fdc8=>o(_0x116a0f,'ELEMENT_LIST_ITEM',_0x35fdc8));}['_registerLegacyDescription'](){const _0x14d638=this['editor'],_0x38f669=_0x14d638['locale'];function _0x27e387(_0x574579){const _0x19566c=_0x14d638['commands']['get']('bulletedList')['value'],_0x10715e=_0x14d638['commands']['get']('numberedList')['value'];return'numberedList'===_0x574579?_0x19566c:_0x10715e;}_0x14d638['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4e7970){if('formatBlock'!=_0x4e7970['type'])return;const {data:_0x8a2356}=_0x4e7970;if(!_0x8a2356)return;let _0x300905,_0x5e2d79,_0x1578ae,_0x367722;switch(_0x8a2356['commandName']){case'bulletedList':_0x1578ae=_0x8a2356['commandParams'][0x0]['forceValue'],_0x367722=_0x27e387(_0x8a2356['commandName']),_0x300905=_0x1578ae?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x367722&&_0x14d638['config']['get']('list.multiBlock')||(_0x300905='*Change\x20to:*\x20%0'),_0x5e2d79={'type':'format','content':o(_0x38f669,_0x300905,o(_0x38f669,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1578ae=_0x8a2356['commandParams'][0x0]['forceValue'],_0x367722=_0x27e387(_0x8a2356['commandName']),_0x300905=_0x1578ae?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x367722&&_0x14d638['config']['get']('list.multiBlock')||(_0x300905='*Change\x20to:*\x20%0'),_0x5e2d79={'type':'format','content':o(_0x38f669,_0x300905,o(_0x38f669,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x300905='*Indent:*\x20%0',_0x5e2d79={'type':'format','content':o(_0x38f669,_0x300905,o(_0x38f669,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x300905=function(_0x1b95d6){const _0x143ac8=_0x1b95d6['getFirstRange']();let _0x47febd=_0x143ac8['start']['nodeAfter'];for(;_0x47febd&&_0x143ac8['containsItem'](_0x47febd);){if(_0x47febd['getAttribute']('listIndent')>0x0)return!0x1;_0x47febd=_0x47febd['nextSibling'];}return!0x0;}(_0x4e7970)?o(_0x38f669,'*Format:*\x20remove\x20from\x20%0',o(_0x38f669,function(_0x78c49c){return'ELEMENT_'+_0x78c49c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4e7970))):o(_0x38f669,'*Outdent:*\x20%0',o(_0x38f669,'ELEMENT_LIST_ITEM')),_0x5e2d79={'type':'format','content':_0x300905};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x8a2356['multipleBlocks']&&(_0x300905='*Merge:*\x20%0',_0x5e2d79={'type':'deletion','content':o(_0x38f669,_0x300905,o(_0x38f669,'ELEMENT_LIST_ITEM'))});}return _0x5e2d79;});}}function le(_0x3ad1d5){let _0x5b648f=_0x3ad1d5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5b648f;){const _0x4d42f2=_0x5b648f['getAttribute']('listItemId');if(!_0x4d42f2)return!0x1;if(_0x4d42f2==_0x3ad1d5['data']['newValue'])return'newValue';if(_0x4d42f2==_0x3ad1d5['data']['oldValue'])return'oldValue';_0x5b648f=_0x5b648f['previousSibling'];}return!0x1;}class ue extends _0x513c76{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5686da=this['editor']['config']['get']('list.properties'),_0x5d1200=this['editor']['plugins']['get']('TrackChangesEditing');_0x5686da['styles']&&(_0x5d1200['enableDefaultAttributesIntegration']('listStyle'),_0x5d1200['registerBlockAttribute']('listStyle')),_0x5686da['reversed']&&(_0x5d1200['enableDefaultAttributesIntegration']('listReversed'),_0x5d1200['registerBlockAttribute']('listReversed')),_0x5686da['startIndex']&&(_0x5d1200['enableDefaultAttributesIntegration']('listStart'),_0x5d1200['registerBlockAttribute']('listStart'));const _0x418fcc={'type':'format','content':''};_0x5d1200['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x14a34b=this['editor']['locale'];_0x5d1200['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x14a34b,'FORMAT_LIST_REVERSED')),_0x5d1200['descriptionFactory']['registerDescriptionCallback'](_0x2aaa2d=>{const {data:_0x5973dd}=_0x2aaa2d;if(_0x5973dd&&'listReversed'==_0x5973dd['key'])return null==_0x5973dd['newValue']||0x0==_0x5973dd['newValue']&&null==_0x5973dd['oldValue']?_0x418fcc:void 0x0;}),_0x5d1200['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x14a34b,'FORMAT_LIST_START')),_0x5d1200['descriptionFactory']['registerDescriptionCallback'](_0x8f713b=>{const {data:_0x406a09}=_0x8f713b;if(_0x406a09&&'listStart'==_0x406a09['key'])return null==_0x406a09['newValue']||0x1==_0x406a09['newValue']&&null==_0x406a09['oldValue']?_0x418fcc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x51a8f3=>{if(_0x51a8f3['batch']['isUndo'])return!0x1;let _0x18d4e5=!0x1;const _0x5e2a24=_0x5d1200['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a7fc4=>{const _0x243d10=_0x5d1200['_getAttributeKey'](_0x3a7fc4);return'listStart'==_0x243d10||'listReversed'==_0x243d10;});for(const _0x3f09e5 of _0x5e2a24){const _0x213f64=_0x3f09e5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x213f64||'customNumbered'==_0x213f64)continue;_0x5d1200['_findSuggestions'](_0x3f09e5['getFirstRange'](),'attribute')['find'](_0x59ca75=>'listType'==_0x5d1200['_getAttributeKey'](_0x59ca75['suggestion']))||(_0x51a8f3['removeMarker'](_0x3f09e5['getFirstMarker']()),_0x18d4e5=!0x0);}return _0x18d4e5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x24fb81){const _0x1d835=this['editor']['locale'],{data:_0x248197}=_0x24fb81,_0x2666e4={'type':'format','content':''};if(!_0x248197||'listStyle'!=_0x248197['key'])return;if(!_0x248197['oldValue'])return'default'==_0x248197['newValue']?_0x2666e4:{'type':'format','content':''+o(_0x1d835,'*Set\x20format:*\x20%0',o(_0x1d835,this['_getTranslationKeyForListStyle'](_0x248197['newValue'])))};if(!_0x248197['newValue']){if('default'==_0x248197['oldValue'])return _0x2666e4;let _0x33b7ee=_0x24fb81['head'];for(;_0x33b7ee;){if(_0x33b7ee['data']&&'listType'==_0x33b7ee['data']['key']&&_0x33b7ee['data']['newValue'])return _0x2666e4;_0x33b7ee=_0x33b7ee['next'];}return{'type':'format','content':''+o(_0x1d835,'*Remove\x20format:*\x20%0',o(_0x1d835,this['_getTranslationKeyForListStyle'](_0x248197['oldValue'])))};}if('default'!=_0x248197['newValue'])return{'type':'format','content':''+o(_0x1d835,'*Set\x20format:*\x20%0',o(_0x1d835,this['_getTranslationKeyForListStyle'](_0x248197['newValue'])))};let _0x78536b=_0x24fb81['head'];for(;_0x78536b;){if(_0x78536b['data']&&'listType'==_0x78536b['data']['key']&&_0x78536b['data']['newValue']&&_0x78536b['data']['oldValue'])return _0x2666e4;_0x78536b=_0x78536b['next'];}return{'type':'format','content':o(_0x1d835,'*Set\x20format:*\x20%0',o(_0x1d835,'ELEMENT_'+_0x24fb81['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x41f0d1=this['editor'],_0x3aeeea=_0x41f0d1['locale'];_0x41f0d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18da4b=>{if('formatBlock'!=_0x18da4b['type'])return;const {data:_0x539cd2}=_0x18da4b;if(!_0x539cd2)return;let _0x4e90e2,_0xa57919;switch(_0x539cd2['commandName']){case'listStyle':_0x4e90e2='*Change\x20to:*\x20%0',_0xa57919={'type':'format','content':o(_0x3aeeea,_0x4e90e2,o(_0x3aeeea,this['_getTranslationKeyForListStyle'](_0x539cd2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e90e2=_0x539cd2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xa57919={'type':'format','content':o(_0x3aeeea,_0x4e90e2)};break;case'listStart':_0x4e90e2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xa57919={'type':'format','content':o(_0x3aeeea,_0x4e90e2,_0x539cd2['commandParams'][0x0]['startIndex'])};}return _0xa57919;});}['_getTranslationKeyForListStyle'](_0x31a684){return'ELEMENT_'+function(_0x23d03c){if(pe['includes'](_0x23d03c))return'bulleted';if(ye['includes'](_0x23d03c))return'numbered';return null;}(_0x31a684)['toUpperCase']()+'_LIST_'+_0x31a684['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x513c76{static get['requires'](){return[_0x5c128d];}['init'](){const _0x17673e=this['editor'],_0x157939=_0x17673e['plugins']['get']('TrackChangesEditing'),_0x4c8c51=_0x17673e['commands']['get']('enter');_0x157939['enableCommand']('enter',()=>{_0x17673e['model']['change'](_0x5eacd0=>{const _0x939cf1=_0x17673e['model']['document']['selection'],_0x5d4ae8=_0x939cf1['getFirstPosition'](),_0x52db78=_0x1677da['fromRange'](_0x939cf1['getFirstRange']());if(_0x4c8c51['enterBlock'](_0x5eacd0)){const _0x136077=_0x17673e['model']['createPositionAt'](_0x5d4ae8['parent']['nextSibling'],0x0),_0x152784=_0x5eacd0['createRange'](_0x5d4ae8,_0x136077);_0x157939['markInsertion'](_0x152784);}else _0x5eacd0['setSelection'](_0x5eacd0['createRange'](_0x52db78['end']));_0x52db78['detach'](),_0x4c8c51['fire']('afterExecute',{'writer':_0x5eacd0});});}),_0x17673e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x17673e,'split'),{'priority':'high'}),_0x17673e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x54c2d4,_0x4b2050,_0x1b4e9e)=>{const _0x45fc89=_0x1b4e9e['mapper']['markerNameToElements'](_0x4b2050['markerName']);if(_0x45fc89){for(const _0x4e9365 of _0x45fc89)_0x4e9365['hasClass']('ck-suggestion-marker-split')&&(_0x1b4e9e['mapper']['unbindElementFromMarkerName'](_0x4e9365,_0x4b2050['markerName']),_0x1b4e9e['writer']['remove'](_0x4e9365));}},{'priority':'high'}),_0x17673e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3bf482,_0x199bc2,_0x219039)=>{_0x219039['options']['showSuggestionHighlights']&&_e(_0x17673e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3bf482,_0x199bc2,_0x219039);},{'priority':'high'});}}class J extends _0x513c76{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x54b9f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x54b9f3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x54b9f3['enableCommand']('findNext'),_0x54b9f3['enableCommand']('findPrevious'),_0x54b9f3['enableCommand']('replace'),_0x54b9f3['enableCommand']('replaceAll');}['handleFindCommand'](_0x436df8,_0x2f6a96,_0x162326={}){const _0x185322=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x436df8(_0x95c810=>('string'==typeof _0x2f6a96?_0x185322['findByTextCallback'](_0x2f6a96,_0x162326):_0x2f6a96)(_0x95c810)['filter'](_0xed4d78=>!0x1===this['_isInDeletionRange'](_0xed4d78,_0x95c810['item'])),_0x162326);}['_isInDeletionRange'](_0x292ac6,_0x251eb9){const _0x8e476d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x251eb9,_0x292ac6['start']),this['editor']['model']['createPositionAt'](_0x251eb9,_0x292ac6['end']));for(const _0x52dc37 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x8e476d['getIntersection'](_0x52dc37['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 _0x513c76{['afterInit'](){const _0x6b0ca3=this['editor']['locale'],_0x2f5a44=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4d19f6,commandName:_0xd9a68e}of ro)this['editor']['plugins']['has'](_0x4d19f6)&&(_0x2f5a44['enableDefaultAttributesIntegration'](_0xd9a68e),_0x2f5a44['registerInlineAttribute'](_0xd9a68e));_0x6b0ca3['t'],_0x2f5a44['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x6b0ca3,'FORMAT_FONT_SIZE')),_0x2f5a44['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x6b0ca3,'FORMAT_FONT_FAMILY')),_0x2f5a44['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x6b0ca3,'FORMAT_FONT_COLOR')),_0x2f5a44['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x6b0ca3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2080af=this['editor'],_0x462264=_0x2080af['locale'];_0x2080af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e1b54=>{const _0x37b4f6=_0x462264['t'];if('formatInline'!=_0x1e1b54['type'])return;const {data:_0xe3495d}=_0x1e1b54;if(null!=_0xe3495d){if('fontSize'==_0xe3495d['commandName']){const _0x26fef5=_0xe3495d['commandParams'][0x0]['value'];if(_0x26fef5){const _0xffaefb=_0x37b4f6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3fc70c=>_0x3fc70c['model']==_0x26fef5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x462264,'*Set\x20font\x20size:*\x20%0',_0xffaefb)};}return{'type':'format','content':o(_0x462264,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xe3495d['commandName']){const _0x3ca65f=_0xe3495d['commandParams'][0x0]['value'];return _0x3ca65f?{'type':'format','content':o(_0x462264,'*Set\x20font\x20family:*\x20%0',_0x3ca65f)}:{'type':'format','content':o(_0x462264,'*Reset\x20font\x20family*')};}if('fontColor'==_0xe3495d['commandName']){const _0xee3c27=_0xe3495d['commandParams'][0x0]['value'];if(_0xee3c27){const _0x35bd74=_0x5da8bf(this['editor']['config']['get']('fontColor.colors'))['find'](_0x29d489=>_0x29d489['model']==_0xee3c27);let _0x105ba1=_0xee3c27,_0x2f3832='';return _0x35bd74&&(_0x105ba1=_0x35bd74['label'],_0x2f3832=_0x37b4f6(_0x105ba1)['toLowerCase']()),{'type':'format','content':o(_0x462264,'*Set\x20font\x20color:*\x20%0',_0x2f3832)['trim'](),'color':{'value':_0xee3c27,'title':_0x2f3832||_0x105ba1}};}return{'type':'format','content':o(_0x462264,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xe3495d['commandName']){const _0x1a49ff=_0xe3495d['commandParams'][0x0]['value'];if(_0x1a49ff){const _0xadb9bf=_0x5da8bf(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x32455f=>_0x32455f['model']==_0x1a49ff);let _0x3fa986=_0x1a49ff,_0x15d810='';return _0xadb9bf&&(_0x3fa986=_0xadb9bf['label'],_0x15d810=_0x37b4f6(_0x3fa986)['toLowerCase']()),{'type':'format','content':o(_0x462264,'*Set\x20font\x20background\x20color:*\x20%0',_0x15d810)['trim'](),'color':{'value':_0x1a49ff,'title':_0x15d810||_0x3fa986}};}return{'type':'format','content':o(_0x462264,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x513c76{['afterInit'](){const _0x2d1392=this['editor'],_0x28f39c=_0x2d1392['plugins']['get']('TrackChangesEditing'),_0x42d363=_0x2d1392['commands']['get']('copyFormat'),_0xd8e536=_0x2d1392['commands']['get']('pasteFormat');_0x42d363&&_0xd8e536&&(_0x28f39c['enableDefaultAttributesIntegration']('pasteFormat'),_0x28f39c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18ddbe=this['editor'],_0x53aaa2=_0x18ddbe['locale'];_0x18ddbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2858b4=>{if('formatBlock'!=_0x2858b4['type']&&'formatInline'!=_0x2858b4['type'])return;const {data:_0x558195}=_0x2858b4;if(_0x558195&&'pasteFormat'===_0x558195['commandName']){const _0x1e659d=[],_0x5d3200=_0x558195['commandParams'][0x0];for(const [_0x3015c1,_0xfc44e5]of Object['entries'](_0x5d3200))_0x1e659d['push'](so(_0x18ddbe,_0x3015c1,_0xfc44e5));return _0x1e659d['length']?{'type':'format','content':o(_0x53aaa2,'*Set\x20format\x20to:*\x20%0',_0x1e659d['join'](',\x20'))}:{'type':'format','content':o(_0x53aaa2,'*Remove\x20all\x20formatting*')};}});}}function so(_0x22a6b1,_0x270487,_0x215cef){const _0x2bf637=_0x22a6b1['locale']['t'],_0x2e6050=_0x270487['split'](/(?=[A-Z])/)['join']('\x20'),_0x549f11=_0x2bf637(_0x2e6050['charAt'](0x0)['toUpperCase']()+_0x2e6050['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x215cef)return _0x549f11;if('fontColor'===_0x270487||'fontBackgroundColor'===_0x270487){const _0x5cbb69=_0x5da8bf(_0x22a6b1['config']['get']('fontColor.colors'))['find'](_0xe1a12c=>_0xe1a12c['model']==_0x215cef);return _0x549f11+'\x20('+(_0x5cbb69?_0x2bf637(_0x5cbb69['label'])['toLowerCase']():_0x215cef)+')';}if('fontSize'===_0x270487&&isNaN(parseFloat(_0x215cef))){const _0x582d09=_0x22a6b1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x22a6b1['config']['get']('fontSize.options'))['find'](_0x308d19=>_0x308d19['model']==_0x215cef);return _0x549f11+'\x20('+(_0x582d09?_0x2bf637(_0x582d09['title'])['toLowerCase']():_0x215cef)+')';}return _0x549f11+'\x20('+_0x215cef+')';}class Y extends _0x513c76{['_headingOptions'];['afterInit'](){const _0x46775a=this['editor'];if(!_0x46775a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x46775a['config']['get']('heading.options');const _0xd03ce9=_0x46775a['locale'],_0x3e2d39=_0x46775a['plugins']['get']('TrackChangesEditing');_0x3e2d39['enableDefaultAttributesIntegration']('heading');for(const _0x1c5265 of this['_headingOptions'])'paragraph'!=_0x1c5265['model']&&_0x3e2d39['descriptionFactory']['registerElementLabel'](_0x1c5265['model'],_0x47299c=>{const _0x53e3c0=this['_getHeadingLevel'](_0x1c5265['model']);return null!==_0x53e3c0?_0x2155a0(_0x47299c,_0x53e3c0):_0x5b4712(_0x47299c,_0x1c5265['title']);});function _0x2155a0(_0x166e6c,_0x4b88c2){return o(_0xd03ce9,'ELEMENT_HEADING',[_0x166e6c,_0x4b88c2]);}function _0x5b4712(_0x16acb9,_0x4ee94f){return o(_0xd03ce9,'ELEMENT_HEADING_CUSTOM',[_0x16acb9,_0x4ee94f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24673c=this['editor'],_0x2d36b7=_0x24673c['locale'];function _0x2465d4(_0x1965a2,_0x584caa){return o(_0x2d36b7,'ELEMENT_HEADING_CUSTOM',[_0x1965a2,_0x584caa]);}_0x24673c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x442dae=>{if('formatBlock'!=_0x442dae['type'])return;const {data:_0x7cc774}=_0x442dae;if(_0x7cc774&&'heading'==_0x7cc774['commandName']){const _0x7585f8=_0x7cc774['commandParams'][0x0]['value'],_0x21bc00=this['_getHeadingLevel'](_0x7585f8);if(null!==_0x21bc00)return{'type':'format','content':o(_0x2d36b7,'*Change\x20to:*\x20%0',(_0xd9217c=0x1,_0x52b86f=_0x21bc00,o(_0x2d36b7,'ELEMENT_HEADING',[_0xd9217c,_0x52b86f])))};const _0x35cb04=this['_headingOptions']['find'](_0x32f8a3=>_0x32f8a3['model']===_0x7585f8)['title'];return{'type':'format','content':o(_0x2d36b7,'*Change\x20to:*\x20%0',_0x2465d4(0x1,_0x35cb04))};}var _0xd9217c,_0x52b86f;});}['_getHeadingLevel'](_0x1f7f71){const _0x106efd=_0x1f7f71['match'](/^heading(\d+)/);if(_0x106efd)return _0x106efd[0x1];const _0x10b3fe=this['_headingOptions']?.['find'](_0x52bc6d=>_0x52bc6d['model']==_0x1f7f71);if(_0x10b3fe&&_0x10b3fe['view']){const _0x3d5efd=_0x10b3fe['view'],_0x462b94=(_0x3d5efd['name']??_0x3d5efd)['match'](/^h(\d+)/);if(_0x462b94)return _0x462b94[0x1];}return null;}}class Z extends _0x513c76{['afterInit'](){const _0x2000e7=this['editor'];if(!_0x2000e7['plugins']['has']('HighlightEditing'))return;const _0x52f110=_0x2000e7['plugins']['get']('TrackChangesEditing'),_0x8e5b6d=_0x2000e7['locale'];_0x52f110['enableDefaultAttributesIntegration']('highlight'),_0x52f110['registerInlineAttribute']('highlight'),_0x52f110['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x8e5b6d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x537276=this['editor'],_0xc753aa=_0x537276['locale'];_0x537276['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d111c=>{if('formatInline'!=_0x3d111c['type'])return;const {data:_0x7702c6}=_0x3d111c;if(_0x7702c6&&'highlight'==_0x7702c6['commandName']){const _0x593761=_0xc753aa['t'],_0x41d7a2=_0x7702c6['commandParams'][0x0]['value'];if(_0x41d7a2){const _0x5529db=_0x537276['config']['get']('highlight.options')['find'](_0x1630d8=>_0x1630d8['model']==_0x41d7a2),_0x8d5665=_0x593761(_0x5529db['title'])['toLowerCase']();return{'type':'format','content':o(_0xc753aa,'*Set\x20highlight:*\x20%0',_0x8d5665),'color':{'value':_0x5529db['color'],'title':_0x5529db['title']}};}return{'type':'format','content':o(_0xc753aa,'*Remove\x20highlight*',o(_0xc753aa,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x513c76{['afterInit'](){const _0xc3b5ea=this['editor'];if(!_0xc3b5ea['plugins']['has']('HorizontalLineEditing'))return;_0xc3b5ea['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1bf5ad=_0xc3b5ea['plugins']['get']('TrackChangesEditing'),_0x3064bc=_0xc3b5ea['locale'];_0x1bf5ad['descriptionFactory']['registerElementLabel']('horizontalLine',_0x18a2c4=>o(_0x3064bc,'ELEMENT_HORIZONTAL_LINE',_0x18a2c4)),_0xc3b5ea['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5b7d38,{writer:_0x3f6339,options:_0x4fe5f2})=>{if(!_0x4fe5f2['showSuggestionHighlights'])return null;const _0x3df36b=_0x3f6339['createContainerElement']('div'),_0x170ee5=_0x3f6339['createEmptyElement']('hr');return _0x3f6339['addClass']('ck-horizontal-line',_0x3df36b),_0x3f6339['insert'](_0x3f6339['createPositionAt'](_0x3df36b,0x0),_0x170ee5),_0x3df36b;},'converterPriority':'high'});}}class et extends _0x513c76{['afterInit'](){const _0x5558c7=this['editor'];if(!_0x5558c7['plugins']['has']('HtmlEmbed'))return;const _0x1cb065=_0x5558c7['plugins']['get']('TrackChangesEditing'),_0x30d5c4=_0x5558c7['locale'];_0x1cb065['descriptionFactory']['registerElementLabel']('rawHtml',_0x535373=>o(_0x30d5c4,'ELEMENT_HTML_EMBED',_0x535373)),_0x1cb065['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1cb065['registerBlockAttribute']('value'),_0x1cb065['descriptionFactory']['registerDescriptionCallback'](_0x9aa363=>{if('attribute'!=_0x9aa363['type'])return;const {data:_0x45447f}=_0x9aa363;if(_0x45447f&&'value'==_0x45447f['key']&&_0x9aa363['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x402bdf=o(_0x30d5c4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x30d5c4,'*Change\x20%0\x20content*',_0x402bdf)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x65c5ac=this['editor'],_0x436362=_0x65c5ac['locale'];_0x65c5ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x567bbd=>{if('formatBlock'!=_0x567bbd['type'])return;const {data:_0x5203f3}=_0x567bbd;if(_0x5203f3&&'htmlEmbed'==_0x5203f3['commandName']){const _0x5e8336=o(_0x436362,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x436362,'*Change\x20%0\x20content*',_0x5e8336)};}});}}class it extends _0x513c76{['afterInit'](){const _0x59c32a=this['editor'];if(!_0x59c32a['plugins']['has']('ImageEditing'))return;const _0x3c26a=_0x59c32a['plugins']['get']('TrackChangesEditing'),_0x4c540d=_0x59c32a['plugins']['get']('ImageUtils'),_0x21f26d=_0x59c32a['locale'];_0x3c26a['enableCommand']('insertImage'),_0x3c26a['descriptionFactory']['registerElementLabel']('imageBlock',_0x40e8ef=>o(_0x21f26d,'ELEMENT_IMAGE',_0x40e8ef)),_0x3c26a['descriptionFactory']['registerElementLabel']('imageInline',_0x5753b3=>o(_0x21f26d,'ELEMENT_INLINE_IMAGE',_0x5753b3)),_0x3c26a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x21f26d,'ELEMENT_CAPTION')),_0x59c32a['plugins']['has']('ImageUploadEditing')&&_0x3c26a['enableCommand']('uploadImage'),_0x59c32a['plugins']['has']('ImageBlockEditing')&&_0x59c32a['plugins']['has']('ImageInlineEditing')&&(_0x3c26a['enableCommand']('imageTypeInline',(_0x8e656e,_0x4c0fcb)=>{const _0x55d063=_0x4c540d['getClosestSelectedImageElement'](_0x59c32a['model']['document']['selection']);_0x59c32a['model']['change'](()=>{_0x3c26a['markBlockFormat'](_0x55d063,{'commandName':'imageTypeInline','commandParams':[_0x4c0fcb]},[],'convertBlockImageToInline');});}),_0x3c26a['enableCommand']('imageTypeBlock',(_0x495156,_0x20bb99)=>{_0x59c32a['model']['change'](_0x452998=>{let _0x4edb5d=_0x4c540d['getClosestSelectedImageElement'](_0x59c32a['model']['document']['selection']),_0x4fa125=_0x452998['createRangeOn'](_0x4edb5d);const _0x16e615=_0x226cfc['fromPosition'](_0x4fa125['start'],'toPrevious'),_0x5db7c2=_0x226cfc['fromPosition'](_0x4fa125['end'],'toNext');_0x3c26a['forceDefaultExecution'](()=>_0x495156(_0x20bb99)),_0x4edb5d=_0x4c540d['getClosestSelectedImageElement'](_0x59c32a['model']['document']['selection']),_0x4fa125=_0x452998['createRangeOn'](_0x4edb5d);const _0xae38e6=_0x452998['createRange'](_0x16e615,_0x5db7c2);_0x16e615['detach'](),_0x5db7c2['detach'](),_0x3c26a['markBlockFormat'](_0x4edb5d,{'commandName':'imageTypeInline','commandParams':[_0x20bb99]},[],'convertInlineImageToBlock'),_0xae38e6['start']['isBefore'](_0x4fa125['start'])&&_0x3c26a['markInsertion'](_0x452998['createRange'](_0xae38e6['start'],_0x4fa125['start']),'convertInlineImageToBlock'),_0x4fa125['end']['isBefore'](_0xae38e6['end'])&&_0x3c26a['markInsertion'](_0x452998['createRange'](_0x4fa125['end'],_0xae38e6['end']),'convertInlineImageToBlock');});}),_0x3c26a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3c26a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3c26a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3c26a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3c26a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3c26a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x15ed3c])=>{const _0x1b6d63=_0x3c26a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19714a=_0x15ed3c['start'],_0x1b7bfe=_0x15ed3c['end'];const _0x8b30f=_0x59c32a['model']['schema']['getNearestSelectionRange'](_0x19714a,'backward'),_0x31899a=_0x59c32a['model']['schema']['getNearestSelectionRange'](_0x1b7bfe,'forward');_0x8b30f['isCollapsed']&&(_0x19714a=_0x8b30f['start']),_0x31899a['isCollapsed']&&(_0x1b7bfe=_0x31899a['end']),_0x1b6d63([_0x59c32a['model']['createRange'](_0x19714a,_0x1b7bfe)]);}),_0x3c26a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2b1b2a),_0x3c26a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2b1b2a)),_0x59c32a['plugins']['has']('ImageCaptionEditing')&&(_0x3c26a['enableCommand']('toggleImageCaption',(_0x5e76e5,_0x134042)=>{const _0x57daee=_0x59c32a['plugins']['get']('ImageCaptionUtils');let _0x5b06be=_0x4c540d['getClosestSelectedImageElement'](_0x59c32a['model']['document']['selection']),_0x34b762=_0x57daee['getCaptionFromImageModelElement'](_0x5b06be);_0x59c32a['model']['change'](()=>{if(_0x34b762)return void _0x3c26a['markDeletion'](_0x59c32a['model']['createRangeOn'](_0x34b762));const _0x820364=_0x4c540d['isBlockImage'](_0x5b06be);_0x5e76e5(_0x134042),_0x5b06be=_0x4c540d['getClosestSelectedImageElement'](_0x59c32a['model']['document']['selection']),_0x34b762=_0x57daee['getCaptionFromImageModelElement'](_0x5b06be),_0x3c26a['markInsertion'](_0x59c32a['model']['createRangeOn'](_0x34b762),_0x820364?null:'imageCaption');});}),_0x3c26a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2b1b2a));const _0x2a74cd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f973a(_0x4ba726,_0x5364de){const _0x55a4c0=_0x2a74cd['findIndex'](({type:_0x1a6214,subType:_0x283ffd})=>_0x4ba726['type']==_0x1a6214&&_0x4ba726['subType']==_0x283ffd),_0x709dd0=_0x2a74cd['findIndex'](({type:_0x642239,subType:_0x3745d6})=>_0x5364de['type']==_0x642239&&_0x5364de['subType']==_0x3745d6);if(_0x55a4c0<0x0||_0x709dd0<0x0)return!0x1;const _0x319724=_0x4ba726['getFirstRange'](),_0x1fe44c=_0x5364de['getFirstRange']();if((0x0==_0x55a4c0||0x1==_0x55a4c0)&&0x2==_0x709dd0&&_0x319724['isIntersecting'](_0x1fe44c))return!0x0;if(0x2==_0x55a4c0&&0x3==_0x709dd0){const _0xcbba27=_0x3c26a['_findSuggestions'](_0x319724,'insertion')['filter'](({suggestion:_0x4b7333,meta:_0xbfe6fd})=>_0xbfe6fd['isOwn']&&'convertInlineImageToBlock'==_0x4b7333['subType']);if(_0xcbba27['length']>0x1&&_0x1fe44c['end']['isEqual'](_0x319724['start']))return!0x0;if(0x1==_0xcbba27['length']&&(_0x319724['start']['isEqual'](_0x1fe44c['end'])||_0x319724['end']['isEqual'](_0x1fe44c['start'])))return!0x0;}if(0x3==_0x55a4c0&&0x3==_0x709dd0&&_0x319724['start']['isBefore'](_0x1fe44c['start'])){const _0x214d3e=_0x319724['end']['nodeAfter'],_0x4a30c8=_0x1fe44c['start']['nodeBefore'];return _0x4c540d['isBlockImage'](_0x214d3e)&&_0x214d3e===_0x4a30c8;}return!0x1;}function _0x2b1b2a(_0x34bd00,_0xee2904){return _0x4f973a(_0x34bd00,_0xee2904)?[_0x34bd00,_0xee2904]:_0x4f973a(_0xee2904,_0x34bd00)?[_0xee2904,_0x34bd00]:null;}_0x59c32a['plugins']['has']('ImageResize')&&(_0x3c26a['enableDefaultAttributesIntegration']('resizeImage'),_0x3c26a['registerBlockAttribute']('resizedWidth'),_0x3c26a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x21f26d,'FORMAT_IMAGE_SIZE'))),_0x59c32a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3c26a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3c26a['registerBlockAttribute']('alt')),_0x3c26a['descriptionFactory']['registerDescriptionCallback'](_0x26d851=>{if(!!_0x2a74cd['find'](({type:_0x164be7,subType:_0x1cf1ff})=>_0x26d851['type']==_0x164be7&&_0x26d851['subType']==_0x1cf1ff))return _0x26d851['previous']?{}:void 0x0;}),_0x3c26a['descriptionFactory']['registerDescriptionCallback'](_0x27df11=>{if('insertion'==_0x27df11['type']||'deletion'==_0x27df11['type']){const _0x3b8058=_0x27df11['getContainedElement']();if(_0x3b8058&&_0x3b8058['is']('element','caption'))return{'type':'insertion'==_0x27df11['type']?'addObject':'removeObject','element':_0x3b8058,'quantity':0x1};}}),_0x3c26a['descriptionFactory']['registerDescriptionCallback'](_0xa42977=>'formatBlock'==_0xa42977['type']&&'convertInlineImageToBlock'==_0xa42977['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xa42977['type']&&'convertBlockImageToInline'==_0xa42977['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3c26a['descriptionFactory']['registerDescriptionCallback'](_0x3c7ea8=>{if('attribute'!=_0x3c7ea8['type'])return;const {data:_0x18500a}=_0x3c7ea8;if(!_0x18500a||'alt'!=_0x18500a['key'])return;const _0x188925=_0x18500a['newValue'];return _0x188925?{'type':'format','content':o(_0x21f26d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x188925+'\x22')}:{'type':'format','content':o(_0x21f26d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52b4e9=this['editor'],_0x1bcab4=_0x52b4e9['locale'];_0x52b4e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x361388=>{if('formatBlock'!=_0x361388['type']&&'formatInline'!=_0x361388['type'])return;const {data:_0x1a5cb2}=_0x361388;if(_0x1a5cb2){if('imageTextAlternative'==_0x1a5cb2['commandName']){const _0x5a2ceb=_0x1a5cb2['commandParams'][0x0]['newValue'];return _0x5a2ceb?{'type':'format','content':o(_0x1bcab4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a2ceb+'\x22')}:{'type':'format','content':o(_0x1bcab4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1a5cb2['commandName']){const _0x28ade7=_0x1a5cb2['commandParams'][0x0]['width'];return _0x28ade7?{'type':'format','content':o(_0x1bcab4,'*Set\x20image\x20width:*\x20%0',_0x28ade7)}:{'type':'format','content':o(_0x1bcab4,'*Reset\x20image\x20width*')};}}});}}class st extends _0x513c76{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4cfd3f=this['editor']['locale'],_0x286fa7=this['editor']['plugins']['get']('TrackChangesEditing');_0x286fa7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x286fa7['registerBlockAttribute']('src'),_0x286fa7['descriptionFactory']['registerDescriptionCallback'](_0x5e4469=>{if('attribute'!=_0x5e4469['type'])return;const {data:_0x2ccf02}=_0x5e4469;return _0x2ccf02&&'src'==_0x2ccf02['key']?_0x2ccf02['newValue']&&_0x2ccf02['oldValue']?{'type':'format','content':o(_0x4cfd3f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5527a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x5527a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5527a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5527a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5527a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d0517=this['editor'],_0x1bb293=_0x5d0517['locale'];_0x5d0517['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35543b=>{if('formatBlock'!=_0x35543b['type']&&'formatInline'!=_0x35543b['type'])return;const {data:_0x3e1400}=_0x35543b;if(!_0x3e1400||'replaceImageSource'!=_0x3e1400['commandName'])return;return{'type':'format','content':o(_0x1bb293,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x513c76{['afterInit'](){const _0x1832a8=this['editor'];if(!_0x1832a8['plugins']['has']('ImageStyleEditing'))return;const _0x2a6286=_0x1832a8['plugins']['get']('TrackChangesEditing'),_0x10d879=_0x1832a8['plugins']['get']('ImageUtils'),_0x2eb591={};_0x2a6286['enableCommand']('imageStyle',(_0x139683,_0x139413)=>{const _0x1f01c5=_0x1832a8['plugins']['get']('Users')['me'],_0x1fd179=_0x1832a8['commands']['get']('imageStyle');let _0x98bf8=_0x10d879['getClosestSelectedImageElement'](_0x1832a8['model']['document']['selection']),_0x27f748=_0x1832a8['model']['createRangeOn'](_0x98bf8),_0x15212d=_0x1fd179['value'];if(_0x15212d==_0x139413['value'])return;const _0x3bda75={'commandName':'imageStyle','commandParams':[_0x139413],'formatGroupId':_0x50a7b0()};_0x1832a8['model']['change'](()=>{if(_0x2a6286['getSuggestions']()['filter'](_0x4637da=>_0x4637da['isInContent']&&_0x1f01c5==_0x4637da['author']&&('formatBlock'==_0x4637da['type']||'formatInline'==_0x4637da['type'])&&('imageStylePreApply'==_0x4637da['subType']||'imageStylePostApply'==_0x4637da['subType'])&&_0x4637da['getFirstRange']()['isEqual'](_0x27f748))['forEach'](_0x3477fe=>_0x2a6286['discardSuggestion'](_0x3477fe['head'])),_0x98bf8=_0x10d879['getClosestSelectedImageElement'](_0x1832a8['model']['document']['selection']),_0x27f748=_0x1832a8['model']['createRangeOn'](_0x98bf8),_0x1fd179['refresh'](),_0x1832a8['commands']['get']('imageTypeInline')['refresh'](),_0x1832a8['commands']['get']('imageTypeBlock')['refresh'](),_0x15212d=_0x1fd179['value'],_0x15212d!=_0x139413['value'])return _0x10d879['isInlineImage'](_0x98bf8)&&_0x1fd179['shouldConvertImageType'](_0x139413['value'],_0x98bf8)?(_0x139683({..._0x139413,'setImageSizes':!0x1}),_0x98bf8=_0x10d879['getClosestSelectedImageElement'](_0x1832a8['model']['document']['selection']),void _0x2a6286['markBlockFormat'](_0x98bf8,{..._0x3bda75,'commandReversedParams':[{'value':_0x15212d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x10d879['isBlockImage'](_0x98bf8)?_0x2a6286['markBlockFormat'](_0x98bf8,_0x3bda75,[],'imageStylePostApply'):_0x2a6286['markInlineFormat'](_0x27f748,_0x3bda75,'imageStylePostApply'));});});for(const _0x42935a of _0x1832a8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2eb591[_0x42935a['name']]=_0x42935a['title']['toLowerCase']();_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x488bfb])=>{_0x10d879['setImageNaturalSizeAttributes'](_0x488bfb['getContainedElement']());}),_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3de6d5,_0x5beda3)=>{_0x2a6286['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3de6d5,{'commandName':_0x5beda3['commandName'],'commandParams':_0x5beda3['commandReversedParams']});}),_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x9ee852,_0x1f2ac8){if(_0x2c2d77(_0x9ee852,_0x1f2ac8))return[_0x9ee852,_0x1f2ac8];if(_0x2c2d77(_0x1f2ac8,_0x9ee852))return[_0x1f2ac8,_0x9ee852];return null;});const _0x580ce5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2c2d77(_0x40e6ee,_0x2bdca6){const _0x375b5c=_0x580ce5['findIndex'](({type:_0x4ded5f,subType:_0x577f5d})=>_0x40e6ee['type']==_0x4ded5f&&_0x40e6ee['subType']==_0x577f5d),_0x52737c=_0x580ce5['findIndex'](({type:_0x2b0ffb,subType:_0x3ea641})=>_0x2bdca6['type']==_0x2b0ffb&&_0x2bdca6['subType']==_0x3ea641);if(_0x375b5c<0x0||_0x52737c<0x0)return!0x1;const _0x4b1c65=_0x40e6ee['getFirstRange'](),_0x46df51=_0x2bdca6['getFirstRange']();if((0x0==_0x375b5c||0x1==_0x375b5c)&&0x2==_0x52737c&&_0x4b1c65['isIntersecting'](_0x46df51))return!0x0;if(0x2==_0x375b5c&&0x3==_0x52737c){const _0x185faf=_0x2a6286['_findSuggestions'](_0x4b1c65,'insertion')['filter'](({suggestion:_0x52fd36,meta:_0x1f78b6})=>_0x1f78b6['isOwn']&&'convertInlineImageToBlock'==_0x52fd36['subType']);if(_0x185faf['length']>0x1&&_0x46df51['end']['isEqual'](_0x4b1c65['start']))return!0x0;if(0x1==_0x185faf['length']&&(_0x4b1c65['start']['isEqual'](_0x46df51['end'])||_0x4b1c65['end']['isEqual'](_0x46df51['start'])))return!0x0;}if(0x3==_0x375b5c&&0x3==_0x52737c&&_0x4b1c65['start']['isBefore'](_0x46df51['start'])){const _0x52c4e7=_0x4b1c65['end']['nodeAfter'],_0x14710a=_0x46df51['start']['nodeBefore'];return _0x10d879['isBlockImage'](_0x52c4e7)&&_0x52c4e7===_0x14710a;}return!0x1;}_0x1832a8['model']['document']['registerPostFixer'](()=>{let _0x16e860=!0x1;const _0x39778=Array['from'](_0x1832a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47f2d1,data:_0x2c77a1}of _0x39778){const {group:_0x1f85cf,type:_0x2c75d4,subType:_0x354305,id:_0x172bd6}=_0x2a6286['_splitMarkerName'](_0x47f2d1);if('suggestion'==_0x1f85cf&&_0x2a6286['hasSuggestion'](_0x172bd6)){if('formatBlock'==_0x2c75d4&&('imageStylePreApply'==_0x354305||'imageStylePostApply'==_0x354305)){const _0x2cf7cc=_0x2a6286['getSuggestion'](_0x172bd6);if(_0x2c77a1['newRange']){const _0x2cbf96=_0x2cf7cc['getFirstRange']()['getContainedElement']();if(_0x10d879['isBlockImage'](_0x2cbf96))continue;_0x2a6286['discardSuggestion'](_0x2cf7cc),_0x16e860=!0x0;}}if('insertion'==_0x2c75d4&&'imageCaption'==_0x354305&&!_0x2c77a1['newRange']){const _0xbf0bad=_0x2a6286['getSuggestion'](_0x172bd6);_0xbf0bad['next']&&_0xbf0bad['next']['isInContent']&&(_0x2a6286['discardSuggestion'](_0xbf0bad['next']),_0x16e860=!0x0);}}}return _0x16e860;}),this['_registerLegacyDescription'](_0x2eb591);}['_registerLegacyDescription'](_0x1cf8d0){const _0x2d0ab9=this['editor'],_0x1b4f8c=_0x2d0ab9['locale'];_0x2d0ab9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1866f5=>{if('formatBlock'!=_0x1866f5['type']&&'formatInline'!=_0x1866f5['type'])return;const {data:_0x1bce54}=_0x1866f5;if(!_0x1bce54||'imageStyle'!=_0x1bce54['commandName'])return;const _0x548b34=_0x1bce54['commandParams'][0x0]['value'];return _0x4142e2('side'===_0x548b34?o(_0x1b4f8c,'FORMAT_SIDE_IMAGE'):_0x1cf8d0[_0x548b34]||_0x548b34);function _0x4142e2(_0x486590){return{'type':'format','content':o(_0x1b4f8c,'*Format:*\x20%0',_0x486590)};}});}}class ot extends _0x513c76{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4324b0){super(_0x4324b0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x44de17=this['editor'],_0xf7e172=_0x44de17['commands']['get']('importWord'),_0x192a06=_0x44de17['commands']['get']('trackChanges');_0xf7e172&&(_0xf7e172['on']('execute',(_0x1bbc79,[,_0x29fb58])=>{this['_trackChangesValueDuringImport']=_0x192a06['value'],_0x29fb58['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf7e172,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf7e172,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x192a06['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x44de17['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x8a3e6e,_0x8a032f){const {suggestions:_0x13a1c0}=_0x8a032f,_0x584372=this['editor']['commands']['get']('trackChanges'),_0x49600b=_0x584372['value'];this['_trackChangesValueDuringImport']!==_0x49600b&&(_0x584372['execute'](),this['_trackChangesExecuted']=!0x0),_0x13a1c0&&_0x13a1c0['forEach'](({id:_0x6a76a9,type:_0x348da5,author:_0x2ae06e,created_at:_0x131439})=>{const _0x5c2b7d={'id':_0x6a76a9,'type':_0x348da5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2ae06e,'createdAt':_0x131439?new Date(_0x131439):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5c2b7d);});}}class rt extends _0x513c76{['afterInit'](){const _0x40547d=this['editor'],_0x71082e=_0x40547d['plugins']['get']('TrackChangesEditing');if(_0x40547d['plugins']['has']('IndentEditing')&&(_0x71082e['enableCommand']('indent'),_0x71082e['enableCommand']('outdent')),_0x40547d['plugins']['has']('IndentBlock')){for(const _0x5722c2 of['indentBlock','outdentBlock'])_0x71082e['enableDefaultAttributesIntegration'](_0x5722c2);}const _0x1e9db0=_0x40547d['locale'];_0x71082e['registerBlockAttribute']('blockIndent'),_0x71082e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1e9db0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x598155=this['editor'],_0x216997=_0x598155['locale'],_0x2982e1=_0x598155['plugins']['get']('TrackChangesEditing');_0x2982e1['descriptionFactory']['registerDescriptionCallback'](_0x20c309=>{if('formatBlock'!=_0x20c309['type'])return;const {data:_0x1570c8}=_0x20c309;if(!_0x1570c8)return;if('indentBlock'!=_0x1570c8['commandName']&&'outdentBlock'!=_0x1570c8['commandName'])return;const _0x332b3d=_0x20c309['getItems']()[0x0],_0x5ccba7=_0x2982e1['descriptionFactory']['getItemLabel'](_0x332b3d);return'indentBlock'==_0x1570c8['commandName']?{'type':'format','content':o(_0x216997,'*Indent:*\x20%0',_0x5ccba7)}:'outdentBlock'==_0x1570c8['commandName']?{'type':'format','content':o(_0x216997,'*Outdent:*\x20%0',_0x5ccba7)}:void 0x0;});}}class at extends _0x513c76{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x513c76{['afterInit'](){const _0x52d049=this['editor'];if(!_0x52d049['plugins']['has']('LinkEditing'))return;const _0x5b5d73=_0x52d049['plugins']['get']('TrackChangesEditing'),_0x55362b=_0x52d049['commands']['get']('link');_0x5b5d73['enableDefaultAttributesIntegration']('link'),_0x5b5d73['enableDefaultAttributesIntegration']('unlink'),_0x5b5d73['registerInlineAttribute']('linkHref');for(const _0x2d24f1 of _0x55362b['manualDecorators'])_0x5b5d73['registerInlineAttribute'](_0x2d24f1['id']),_0x5b5d73['descriptionFactory']['registerAttributeLabel'](_0x2d24f1['id'],'link\x20('+_0x2d24f1['label']['toLowerCase']()+')');_0x5b5d73['descriptionFactory']['registerDescriptionCallback'](_0x998682=>{if('attribute'!=_0x998682['type'])return;const {data:_0x20fb8b}=_0x998682;if(!_0x20fb8b||'linkHref'!=_0x20fb8b['key'])return;const _0x37fa4c=_0x20fb8b['newValue'],_0x431b6a=_0x52d049['locale'];return{'type':'format','content':null==_0x37fa4c?o(_0x431b6a,'*Remove\x20link*'):o(_0x431b6a,'*Set\x20link:*\x20%0','\x22'+_0x37fa4c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39f2ec=this['editor'],_0x3bfe80=_0x39f2ec['locale'];_0x39f2ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f678=>{if('formatInline'!=_0x59f678['type'])return;const {data:_0x5b740e}=_0x59f678;if(_0x5b740e){if('link'==_0x5b740e['commandName']){const _0x2c018b=_0x5b740e['commandParams'][0x0];return{'type':'format','content':o(_0x3bfe80,'*Set\x20link:*\x20%0','\x22'+_0x2c018b+'\x22')};}return'unlink'==_0x5b740e['commandName']?{'type':'format','content':o(_0x3bfe80,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x513c76{['afterInit'](){const _0x236fdf=this['editor'],_0x584261=_0x236fdf['locale'];if(!_0x236fdf['plugins']['has']('LegacyListEditing'))return;const _0x3875c3=_0x236fdf['plugins']['get']('TrackChangesEditing'),_0x71bddb=_0x236fdf['plugins']['has']('LegacyTodoListEditing');function _0x25432a(_0x33b3eb){return()=>{const _0x3e87c8=_0x236fdf['model']['document']['selection'],_0x38240d=_0x236fdf['commands']['get'](_0x33b3eb);if(_0x38240d['value'])return void _0x236fdf['execute']('paragraph',{});const _0xe9f2c5=_0x33b3eb['slice'](0x0,-0x4),_0x1b62b7=function(_0x3de0f9,_0x4e0dbd,_0x47a277){let _0x3cb1a4=Array['from'](_0x3de0f9)['filter'](_0x5d4fa6=>function(_0x4bf6e4,_0x126ff4){return _0x126ff4['checkChild'](_0x4bf6e4['parent'],'listItem')&&!_0x126ff4['isObject'](_0x4bf6e4);}(_0x5d4fa6,_0x47a277));_0x3cb1a4=_0x3cb1a4['filter'](_0x20b951=>!_0x20b951['is']('element','listItem')||_0x20b951['getAttribute']('listType')!=_0x4e0dbd);const _0x3d6830=new Set();for(const _0x331f3c of _0x3cb1a4)_0x331f3c['is']('element','listItem')?_0x3d6830['add'](me(_0x331f3c)):_0x3d6830['add'](_0x331f3c);return Array['from'](_0x3d6830);}(_0x3e87c8['getSelectedBlocks'](),_0xe9f2c5,_0x236fdf['model']['schema']);_0x236fdf['model']['change'](()=>{for(const _0x11582f of _0x1b62b7)_0x3875c3['markBlockFormat'](_0x11582f,{'commandName':_0x33b3eb,'commandParams':[{'forceValue':!_0x38240d['value']}],'formatGroupId':'blockName'},fe(_0x11582f));});};}function _0x1632e0(_0x3d47a9){return()=>{const _0x4ea136=function(_0x40f4ab){let _0x30f4f3=Array['from'](_0x40f4ab);const _0x73aca0=_0x30f4f3['findIndex'](_0x103d48=>'listItem'!=_0x103d48['name']);return _0x73aca0>-0x1&&(_0x30f4f3=_0x30f4f3['slice'](0x0,_0x73aca0)),_0x30f4f3;}(_0x236fdf['model']['document']['selection']['getSelectedBlocks']()),_0x12bb76=_0x236fdf['model']['createRange'](_0x236fdf['model']['createPositionAt'](_0x4ea136[0x0],'before'),_0x236fdf['model']['createPositionAt'](_0x4ea136[_0x4ea136['length']-0x1],'end'));_0x236fdf['model']['change'](()=>{_0x3875c3['markBlockFormat'](_0x12bb76,{'commandName':_0x3d47a9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x25a3d1){const _0x158b1e=new Set();for(const _0x24a4f0 of _0x25a3d1){let _0x1f31c3=_0x24a4f0['nextSibling'];for(;_0x1f31c3&&_0x1f31c3['getAttribute']('listIndent')>_0x24a4f0['getAttribute']('listIndent');)_0x158b1e['add'](_0x1f31c3),_0x1f31c3=_0x1f31c3['nextSibling'];}return Array['from'](_0x158b1e);}(_0x4ea136));});};}_0x3875c3['enableCommand']('numberedList',_0x25432a('numberedList')),_0x3875c3['enableCommand']('bulletedList',_0x25432a('bulletedList')),_0x71bddb&&_0x3875c3['enableCommand']('todoList',_0x25432a('todoList')),_0x3875c3['enableCommand']('indentList',_0x1632e0('indentList')),_0x3875c3['enableCommand']('outdentList',_0x1632e0('outdentList')),_0x71bddb&&_0x3875c3['enableCommand']('checkTodoList',()=>{const _0x51b144=_0x236fdf['commands']['get']('checkTodoList'),_0x63dac2=Array['from'](_0x51b144['_selectedElements']);_0x63dac2['filter'](_0x4d9cc1=>_0x4d9cc1['getAttribute']('todoListChecked')!=_0x51b144['value']),_0x236fdf['model']['change'](()=>{for(const _0xb94ed4 of _0x63dac2)_0x3875c3['markBlockFormat'](_0xb94ed4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x51b144['value']}]});});}),_0x3875c3['descriptionFactory']['registerElementLabel']('listItem',_0x3af9f0=>o(_0x584261,'ELEMENT_LIST_ITEM',_0x3af9f0)),_0x3875c3['descriptionFactory']['registerDescriptionCallback'](_0x1092c4=>{if('formatBlock'!=_0x1092c4['type']&&'formatInline'!=_0x1092c4['type'])return;const {data:_0xf8f9de}=_0x1092c4;if(_0xf8f9de){if('numberedList'==_0xf8f9de['commandName']||'bulletedList'==_0xf8f9de['commandName']||'todoList'==_0xf8f9de['commandName'])switch(_0xf8f9de['commandName']['replace']('List','')){case'bulleted':return _0x3b7e1b(o(_0x584261,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b7e1b(o(_0x584261,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b7e1b(o(_0x584261,'ELEMENT_TODO_LIST'));}if('indentList'==_0xf8f9de['commandName'])return{'type':'format','content':o(_0x584261,'*Indent:*\x20%0',o(_0x584261,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xf8f9de['commandName'])return{'type':'format','content':o(_0x584261,'*Outdent:*\x20%0',o(_0x584261,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xf8f9de['commandName'])return _0xf8f9de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x584261,'*Check\x20item*')}:{'type':'format','content':o(_0x584261,'*Uncheck\x20item*')};}function _0x3b7e1b(_0x4c319a){return{'type':'format','content':o(_0x584261,'*Change\x20to:*\x20%0',_0x4c319a)};}});}}function me(_0x6a4191){const _0x1fc564=_0x6a4191['getAttribute']('listIndent');if(0x0==_0x1fc564)return _0x6a4191;let _0x5d6350=_0x6a4191;for(;_0x6a4191['previousSibling']&&_0x6a4191['previousSibling']['is']('element','listItem');){const _0x43b179=_0x6a4191['previousSibling']['getAttribute']('listIndent');if(_0x43b179==_0x1fc564)_0x5d6350=_0x6a4191['previousSibling'];else{if(_0x43b179<_0x1fc564)break;}_0x6a4191=_0x6a4191['previousSibling'];}return _0x5d6350;}function fe(_0x4c79ef){const _0x4e7adf=[];if(_0x4c79ef['is']('element','listItem')&&_0x4c79ef['getAttribute']('listIndent')>0x0){let _0x33a013=_0x4c79ef['nextSibling'];for(;_0x33a013&&'listItem'==_0x33a013['name']&&_0x33a013['getAttribute']('listIndent')==_0x4c79ef['getAttribute']('listIndent');)_0x4e7adf['push'](_0x33a013),_0x33a013=_0x33a013['nextSibling'];}return _0x4e7adf;}class K extends _0x513c76{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x33a7ac=this['editor']['config']['get']('list.properties'),_0x184e75=this['editor']['plugins']['get']('TrackChangesEditing');_0x33a7ac['styles']&&_0x184e75['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x33a7ac['reversed']&&_0x184e75['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x33a7ac['startIndex']&&_0x184e75['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x184e75['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x316b1c,_0x581461={}){const _0x25dbe1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x106695=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x25dbe1['markMultiRangeBlockFormat'](_0x106695,{'commandName':'listStyle','commandParams':[{'type':_0x581461['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1d885a,_0x93c59b={}){const _0x127baa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x369b0d=this['_getSuggestionBlocks'](_0x240efe=>_0x240efe['is']('element','listItem')&&'numbered'===_0x240efe['getAttribute']('listType'));if(_0x369b0d['length']<0x1)return;const _0xe44323=_0x369b0d['map'](_0x2b8991=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b8991,'before'),this['editor']['model']['createPositionAt'](_0x2b8991,0x0)));this['editor']['model']['change'](()=>{_0x127baa['markMultiRangeBlockFormat'](_0xe44323,{'commandName':'listReversed','commandParams':[{'reversed':_0x93c59b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x527346,_0x45df6d={}){const _0x1b4992=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16fe61=this['_getSuggestionBlocks'](_0x53f28f=>_0x53f28f['is']('element','listItem')&&'numbered'===_0x53f28f['getAttribute']('listType'));if(_0x16fe61['length']<0x1)return;const _0x19f6c4=_0x16fe61['map'](_0x2fea41=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fea41,'before'),this['editor']['model']['createPositionAt'](_0x2fea41,0x0)));this['editor']['model']['change'](()=>{_0x1b4992['markMultiRangeBlockFormat'](_0x19f6c4,{'commandName':'listStart','commandParams':[{'startIndex':_0x45df6d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x47e2bc){if('formatBlock'!=_0x47e2bc['type']&&'formatInline'!=_0x47e2bc['type'])return;const _0x5c497e=this['editor']['locale'],{data:_0x3bb27d}=_0x47e2bc;if(!_0x3bb27d)return;let _0x248f74,_0x1f202a;switch(_0x3bb27d['commandName']){case'listStyle':_0x248f74='*Change\x20to:*\x20%0',_0x1f202a={'type':'format','content':o(_0x5c497e,_0x248f74,o(_0x5c497e,this['_getTranslationKeyForListStyle'](_0x3bb27d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x248f74=_0x3bb27d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f202a={'type':'format','content':o(_0x5c497e,_0x248f74)};break;case'listStart':_0x248f74='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f202a={'type':'format','content':o(_0x5c497e,_0x248f74,_0x3bb27d['commandParams'][0x0]['startIndex'])};}return _0x1f202a;}['_getSuggestionBlocksForListStyle'](){const _0x3639de=this['editor']['plugins']['get']('LegacyListUtils');let _0x1239a9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1239a9[0x0]?.['is']('element','listItem')&&_0x1239a9['unshift'](..._0x3639de['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1239a9[_0x1239a9['length']-0x1]?.['is']('element','listItem')&&_0x1239a9['push'](..._0x3639de['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1239a9=[...new Set(_0x1239a9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1239a9=_0x1239a9['filter'](_0x463db4=>_0x463db4['is']('element','listItem'))),_0x1239a9;}['_getSuggestionBlocks'](_0x227d13){const _0x50c174=this['editor']['plugins']['get']('LegacyListUtils');let _0x7b4f1c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x227d13)['map'](_0x36783a=>{const _0x1b6391=this['editor']['model']['createPositionAt'](_0x36783a,0x0);return[..._0x50c174['getSiblingNodes'](_0x1b6391,'backward'),..._0x50c174['getSiblingNodes'](_0x1b6391,'forward')];})['flat']();return _0x7b4f1c=[...new Set(_0x7b4f1c)],_0x7b4f1c;}['_getTranslationKeyForListStyle'](_0x1fdc41){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1fdc41)||'default')['toUpperCase']()+'_LIST_'+_0x1fdc41['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x513c76{['afterInit'](){const _0x30227b=this['editor'];if(!_0x30227b['plugins']['has']('MediaEmbedEditing'))return;const _0x14d46c=_0x30227b['plugins']['get']('TrackChangesEditing'),_0x52eff4=_0x30227b['locale'];_0x14d46c['enableCommand']('mediaEmbed'),_0x14d46c['descriptionFactory']['registerElementLabel']('media',_0x439752=>o(_0x52eff4,'ELEMENT_MEDIA',_0x439752)),_0x30227b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5f1835,{writer:_0x3202e7,options:_0xfcb485})=>{if(_0xfcb485['showSuggestionHighlights'])return _0x3202e7['createEmptyElement']('div');},'converterPriority':'high'}),_0x30227b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5dddf3,_0x3b68f2,_0xb23839)=>{_0xb23839['options']['showSuggestionHighlights']&&_0x5dddf3['stop']();},{'priority':'high'});}}class gt extends _0x513c76{['afterInit'](){const _0x5d707a=this['editor'];_0x5d707a['plugins']['has']('MentionEditing')&&_0x5d707a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x513c76{['afterInit'](){const _0x3e20dd=this['editor'],_0xaa07a9=_0x3e20dd['plugins']['get']('TrackChangesEditing');_0x3e20dd['plugins']['has']('MultiLevelList')&&(_0xaa07a9['enableDefaultAttributesIntegration']('multiLevelList'),_0xaa07a9['registerBlockAttribute']('listMarkerStyle'),_0xaa07a9['descriptionFactory']['registerDescriptionCallback'](_0x573d2e=>this['handleDescriptions'](_0x573d2e)));}['handleDescriptions'](_0x39afdd){const _0x118a83=this['editor']['locale'],{data:_0x425cc0}=_0x39afdd,_0x28d479={'type':'format','content':''};if(_0x425cc0&&'listMarkerStyle'==_0x425cc0['key']){if(!_0x425cc0['oldValue'])return{'type':'format','content':o(_0x118a83,'*Set\x20format:*\x20%0',o(_0x118a83,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x425cc0['newValue']+')'};if(!_0x425cc0['newValue']){let _0x39bb85=_0x39afdd['head'];for(;_0x39bb85;){if(_0x39bb85['data']&&'listType'==_0x39bb85['data']['key']&&_0x39bb85['data']['newValue'])return _0x28d479;_0x39bb85=_0x39bb85['next'];}return{'type':'format','content':o(_0x118a83,'*Remove\x20format:*\x20%0',o(_0x118a83,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x425cc0['oldValue']+')'};}}}}class mt extends _0x513c76{['afterInit'](){const _0x5a0b63=this['editor'];if(!_0x5a0b63['plugins']['has']('PageBreakEditing'))return;_0x5a0b63['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1be0dd=_0x5a0b63['plugins']['get']('TrackChangesEditing'),_0x41a552=_0x5a0b63['locale'];_0x1be0dd['descriptionFactory']['registerElementLabel']('pageBreak',_0x366324=>o(_0x41a552,'ELEMENT_PAGE_BREAK',_0x366324));}}class dt extends _0x513c76{['afterInit'](){const _0x47f162=this['editor'];if(!_0x47f162['plugins']['has']('Paragraph'))return;const _0x332193=_0x47f162['locale'],_0x2029ef=_0x47f162['plugins']['get']('TrackChangesEditing');_0x2029ef['descriptionFactory']['registerElementLabel']('paragraph',_0x35c03c=>o(_0x332193,'ELEMENT_PARAGRAPH',_0x35c03c)),_0x2029ef['enableDefaultAttributesIntegration']('paragraph'),_0x2029ef['enableCommand']('insertParagraph'),_0x47f162['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x47f162),{'priority':'highest'}),_0x47f162['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a2e1d,_0x3d6541,_0x109f77)=>{_0x109f77['options']['showSuggestionHighlights']&&nr(_0x47f162,{'showActiveMarker':!0x1})(_0x3a2e1d,_0x3d6541,_0x109f77);},{'priority':'highest'});const _0x19e050=_0x2029ef['descriptionFactory'];_0x19e050['registerDescriptionCallback'](_0x3f4f84=>{if('insertion'!==_0x3f4f84['type'])return;const {start:_0x5382d5,end:_0x17f8d8}=_0x3f4f84['getFirstRange']();if(!_0x5382d5['isTouching'](_0x17f8d8)||!_0x5382d5['nodeAfter'])return;const _0x319bae=_0x47f162['model']['schema'],_0x5755ec=_0x5382d5['nodeAfter'];return _0x319bae['isBlock'](_0x5755ec)&&!_0x319bae['isLimit'](_0x5755ec)&&_0x319bae['checkChild'](_0x5755ec,'$text')?{'type':'insertion','content':o(_0x332193,'*Insert:*\x20%0',_0x19e050['getItemLabel'](_0x5755ec,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x425873=this['editor'],_0x245ad2=_0x425873['locale'];_0x425873['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c8651=>{if('formatBlock'!=_0x5c8651['type'])return;const {data:_0x4a4a94}=_0x5c8651;return _0x4a4a94&&'paragraph'==_0x4a4a94['commandName']?{'type':'format','content':o(_0x245ad2,'*Change\x20to:*\x20%0',o(_0x245ad2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xb6165d,{showActiveMarker:_0xd71735=!0x0}={}){return(_0xcbeff4,_0x50f692,_0x40f1d7)=>{const _0x5e4896=_0xb6165d['plugins']['get']('TrackChangesEditing'),_0x5bddfd=_0x50f692['markerRange']['start'],_0xea7f93=_0x50f692['markerRange']['end'],_0x444b32=_0xb6165d['model']['schema'];if(!_0x5bddfd['isTouching'](_0xea7f93)||!_0x5bddfd['nodeAfter'])return;const _0x911f85=_0x5bddfd['nodeAfter'];if(_0x444b32['isBlock'](_0x911f85)&&!_0x444b32['isLimit'](_0x911f85)&&_0x444b32['checkChild'](_0x911f85,'$text')){if(!_0x40f1d7['consumable']['consume'](_0x50f692['markerRange'],_0xcbeff4['name']))return;const _0x261286=_0x40f1d7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x27d7d5=_0x40f1d7['mapper']['toViewPosition'](_0xea7f93);_0xd71735&&_0x5e4896['activeMarkers']['includes'](_0x50f692['markerName'])&&_0x40f1d7['writer']['addClass']('ck-suggestion-marker--active',_0x261286),_0x40f1d7['writer']['insert'](_0x27d7d5,_0x261286),_0x40f1d7['mapper']['bindElementToMarker'](_0x261286,_0x50f692['markerName']);}};}class pt extends _0x513c76{['afterInit'](){const _0x3b77c2=this['editor'];if(!_0x3b77c2['plugins']['has']('RemoveFormatEditing'))return;_0x3b77c2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bbc59=this['editor'];_0x4bbc59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x372ee8=>{if('formatBlock'!=_0x372ee8['type']&&'formatInline'!=_0x372ee8['type'])return;const {data:_0x5a8456}=_0x372ee8;return _0x5a8456&&'removeFormat'==_0x5a8456['commandName']?{'type':'format','content':o(_0x4bbc59['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x513c76{['afterInit'](){const _0x43fd95=this['editor'];if(!_0x43fd95['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x54b6b7=_0x43fd95['plugins']['get']('TrackChangesEditing');_0x54b6b7['enableCommand']('goToPreviousRestrictedEditingException'),_0x54b6b7['enableCommand']('goToNextRestrictedEditingException');const _0x5060a3=_0x43fd95['plugins']['get']('RestrictedEditingModeEditing');_0x5060a3['enableCommand']('trackChanges'),_0x5060a3['enableCommand']('acceptSuggestion'),_0x5060a3['enableCommand']('discardSuggestion'),_0x5060a3['enableCommand']('acceptAllSuggestions'),_0x5060a3['enableCommand']('discardAllSuggestions'),_0x5060a3['enableCommand']('acceptSelectedSuggestions'),_0x5060a3['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x513c76{static get['requires'](){return[_0x1fe66a];}['init'](){const _0xe5b1d6=this['editor'],_0x377170=_0xe5b1d6['plugins']['get']('TrackChangesEditing');_0x377170['enableCommand']('shiftEnter'),_0xe5b1d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0xe5b1d6),{'priority':'high'}),_0xe5b1d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0xe5b1d6),{'priority':'high'}),_0xe5b1d6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x328a65,_0x56bfd8,_0x5454e5)=>{_0x5454e5['options']['showSuggestionHighlights']&&de(_0xe5b1d6,{'showActiveMarker':!0x1})(_0x328a65,_0x56bfd8,_0x5454e5);}),_0x377170['descriptionFactory']['registerElementLabel']('softBreak',_0x1d0deb=>o(_0xe5b1d6['locale'],'ELEMENT_LINE_BREAK',_0x1d0deb));}}function de(_0x18caa9,{showActiveMarker:_0x34e91e=!0x0}={}){return(_0x483810,_0x2d9681,_0x528d4d)=>{const _0x44c137=_0x18caa9['plugins']['get']('TrackChangesEditing');if(!_0x528d4d['consumable']['test'](_0x2d9681['markerRange'],_0x483810['name']))return;const _0x544b87=_0x18caa9['model'];for(const _0x1a8273 of _0x2d9681['markerRange']['getItems']()){if(!_0x1a8273['is']('element','softBreak'))continue;const _0x262b2a='deletion'==_0x2d9681['markerName']['split'](':')[0x1]?'merge':'split',_0x470472=_0x528d4d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x262b2a}),_0x4d3145=_0x528d4d['mapper']['toViewPosition'](_0x544b87['createPositionBefore'](_0x1a8273));_0x34e91e&&_0x44c137['activeMarkers']['includes'](_0x2d9681['markerName'])&&_0x528d4d['writer']['addClass']('ck-suggestion-marker--active',_0x470472),_0x528d4d['writer']['insert'](_0x4d3145,_0x470472),_0x528d4d['mapper']['bindElementToMarker'](_0x470472,_0x2d9681['markerName']);}};}class wt extends _0x513c76{['afterInit'](){const _0x4ca209=this['editor'],_0xe965f1=_0x4ca209['model'],_0x4c1635=_0x4ca209['locale'];if(!_0x4ca209['plugins']['has']('StandardEditingModeEditing'))return;const _0x391233=_0x4ca209['plugins']['get']('TrackChangesEditing'),_0x5ce6de='restrictedEditingException',_0xb4db86=_0x4ca209['commands']['get'](_0x5ce6de);_0x391233['enableCommand'](_0x5ce6de,(_0x2683c7,_0x3f8903={})=>{const _0x3a32b4=_0xe965f1['document']['selection'];if(_0x3a32b4['isCollapsed'])return void _0x2683c7(_0x3f8903);const _0x4cee48=void 0x0!==_0x3f8903['forceValue']?_0x3f8903['forceValue']:!_0xb4db86['value'];_0xe965f1['change'](()=>{const _0x18addc=Array['from'](_0x3a32b4['getRanges']());for(const _0x5216b1 of _0x18addc){const _0x445b5b=_0x4cee48?[_0x5216b1]:io(_0x5ce6de,_0x5216b1,_0xe965f1);for(const _0x4d7159 of _0x445b5b)_0x391233['markInlineFormat'](_0x4d7159,{'commandName':_0x5ce6de,'commandParams':[{'forceValue':_0x4cee48}]});}});}),_0x391233['descriptionFactory']['registerDescriptionCallback'](_0x5939b8=>{if('formatBlock'!=_0x5939b8['type']&&'formatInline'!=_0x5939b8['type'])return;const {data:_0x7a899f}=_0x5939b8;return _0x7a899f&&_0x7a899f['commandName']==_0x5ce6de?_0x7a899f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c1635,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4c1635,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x513c76{['afterInit'](){const _0x24b69b=this['editor'];if(!_0x24b69b['plugins']['has']('Style')||!_0x24b69b['plugins']['has']('DataSchema'))return;const _0xd07a8e=_0x24b69b['plugins']['get']('TrackChangesEditing'),_0x108615=_0x24b69b['locale'],_0x39b8ce=_0x24b69b['config']['get']('style')||{},_0x4e809d=_0x24b69b['plugins']['get']('GeneralHtmlSupport'),_0x350364=_0x24b69b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x24b69b['plugins']['get']('DataSchema'),_0x39b8ce['definitions']);_0xd07a8e['enableDefaultAttributesIntegration']('style');const _0x1c4084=new Set();for(const _0x24efd2 of _0x350364['block']){const _0x46fb86=_0x4e809d['getGhsAttributeNameForElement'](_0x24efd2['element']);_0x1c4084['add'](_0x46fb86);}const _0x2ee02a=new Set();for(const _0x132192 of _0x350364['inline']){const _0x4fb210=_0x4e809d['getGhsAttributeNameForElement'](_0x132192['element']);_0x2ee02a['add'](_0x4fb210);for(const _0x762ad5 of _0x132192['ghsAttributes'])_0x2ee02a['add'](_0x762ad5);}for(const _0x1fa947 of _0x1c4084)_0xd07a8e['registerBlockAttribute'](_0x1fa947),_0xd07a8e['descriptionFactory']['registerAttributeLabel'](_0x1fa947,o(_0x108615,'FORMAT_STYLE'));for(const _0x42b981 of _0x2ee02a)_0xd07a8e['registerInlineAttribute'](_0x42b981),_0xd07a8e['descriptionFactory']['registerAttributeLabel'](_0x42b981,o(_0x108615,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28e0fb=this['editor'],_0x576d77=_0x28e0fb['locale'];_0x28e0fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x73c80=>{if('formatBlock'!=_0x73c80['type']&&'formatInline'!=_0x73c80['type'])return;const {data:_0x1f6c94}=_0x73c80;return _0x1f6c94&&'style'===_0x1f6c94['commandName']?_0x1f6c94['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x576d77,'*Set\x20format:*\x20%0',_0x1f6c94['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x576d77,'*Remove\x20format:*\x20%0',_0x1f6c94['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x513c76{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xd31629){super(_0xd31629),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4bde3f=this['editor'],_0x2e1a29=_0x4bde3f['model']['document']['selection'];if(!_0x4bde3f['plugins']['has']('TableEditing'))return;const _0x12363c=_0x4bde3f['locale'],_0x40384e=_0x4bde3f['plugins']['get']('TrackChangesEditing'),_0x684f85=_0x4bde3f['plugins']['get']('TableUtils');_0x40384e['descriptionFactory']['registerElementLabel']('table',_0xecac6c=>o(_0x12363c,'ELEMENT_TABLE',_0xecac6c)),this['_setupColumnsRowsFixing'](),_0x40384e['enableCommand']('insertTable'),_0x40384e['enableCommand']('selectTableRow'),_0x40384e['enableCommand']('selectTableColumn');for(const _0x109f9e of['insertTableRowAbove','insertTableRowBelow']){const _0x221990=_0x4bde3f['commands']['get'](_0x109f9e);_0x40384e['enableCommand'](_0x109f9e,_0x2d38e5=>{_0x4bde3f['model']['change'](_0x4c7a0b=>{_0x2d38e5();const _0x37b189='above'===_0x221990['order'],_0x468d08=_0x684f85['getSelectionAffectedTableCells'](_0x2e1a29),_0x1cf6aa=_0x684f85['getRowIndexes'](_0x468d08),_0x49acd5=_0x37b189?_0x1cf6aa['first']-0x1:_0x1cf6aa['last']+0x1,_0x3c1910=_0x468d08[0x0]['findAncestor']('table'),_0x267947=_0x684f85['createTableWalker'](_0x3c1910,{'startRow':_0x49acd5,'endRow':_0x49acd5}),_0x486747=Array['from'](_0x267947)['map'](_0x278051=>_0x4c7a0b['createRangeOn'](_0x278051['cell']));_0x40384e['markMultiRangeInsertion'](_0x486747,'tableRow');});});}for(const _0x20bbaa of['insertTableColumnLeft','insertTableColumnRight']){const _0x2b4da2=_0x4bde3f['commands']['get'](_0x20bbaa);_0x40384e['enableCommand'](_0x20bbaa,_0x35b9bb=>{_0x4bde3f['model']['change'](_0x4f982c=>{_0x35b9bb();const _0x10df88='left'===_0x2b4da2['order'],_0x1c33e7=_0x684f85['getSelectionAffectedTableCells'](_0x2e1a29),_0x4537ab=_0x684f85['getColumnIndexes'](_0x1c33e7),_0x522f03=_0x10df88?_0x4537ab['first']-0x1:_0x4537ab['last']+0x1,_0xd4541d=_0x1c33e7[0x0]['findAncestor']('table'),_0x5ab250=_0x684f85['createTableWalker'](_0xd4541d,{'startRow':0x0,'column':_0x522f03,'includeAllSlots':!0x1}),_0x48145e=Array['from'](_0x5ab250)['map'](_0x1e3265=>_0x4f982c['createRangeOn'](_0x1e3265['cell']));_0x40384e['markMultiRangeInsertion'](_0x48145e,'tableColumn');});});}for(const _0x51f952 of['removeTableRow','removeTableColumn']){const _0x21c54a=_0x51f952['substr'](0xb),_0x57b9dd=_0x21c54a['toLowerCase'](),_0x22ddcd=_0x57b9dd['substr'](0x0,0x3)+'span',_0x30e4cc='table'+_0x21c54a,_0x1e3bed='min'+_0x21c54a,_0x10e0c4='max'+_0x21c54a;_0x40384e['enableCommand'](_0x51f952,()=>{_0x4bde3f['model']['change'](_0x2fd89d=>{const _0x27a1cc=_0x684f85['getSelectionAffectedTableCells'](_0x2e1a29),_0x41d6e6=_0x27a1cc[0x0]['findAncestor']('table');let _0x24535a;if('removeTableRow'==_0x51f952){const _0x3e64ba=_0x684f85['getRowIndexes'](_0x27a1cc);_0x24535a={'startRow':_0x3e64ba['first'],'endRow':_0x3e64ba['last'],'includeAllSlots':!0x0};}else{const _0x191b2f=_0x684f85['getColumnIndexes'](_0x27a1cc);_0x24535a={'startColumn':_0x191b2f['first'],'endColumn':_0x191b2f['last'],'includeAllSlots':!0x0};}const _0x34d4a0=_0x684f85['createTableWalker'](_0x41d6e6,_0x24535a),_0x246921=Array['from'](_0x34d4a0)['map'](({cell:_0x5eedc6})=>_0x5eedc6),_0x4bd579=Ee(_0x246921['filter'](_0x172611=>_0x172611['hasAttribute'](_0x22ddcd))),_0x128ced=Ee(_0x246921['filter'](_0x3a1ba6=>!_0x3a1ba6['hasAttribute'](_0x22ddcd)))['map'](_0x41054d=>_0x2fd89d['createRangeOn'](_0x41054d)),_0x167001=_0x40384e['markMultiRangeDeletion'](_0x128ced,_0x30e4cc);if(_0x167001&&('tableRow'==_0x167001['subType']||'tableColumn'==_0x167001['subType'])){const _0x474d1c=this['_getSuggestionCoords'](_0x167001);for(const _0x54c487 of _0x4bd579){const _0x50b42e=_0x2fd89d['createRangeOn'](_0x54c487),_0xf8af5e=_0x684f85['getCellLocation'](_0x54c487),_0x28e2ec=_0x54c487['getAttribute'](_0x22ddcd)-0x1,_0x381c76=_0x474d1c[_0x1e3bed],_0x2e82c3=_0x474d1c[_0x10e0c4];_0x381c76<=_0xf8af5e[_0x57b9dd]&&_0xf8af5e[_0x57b9dd]+_0x28e2ec<=_0x2e82c3&&_0x167001['addRange'](_0x50b42e);}}});});}function _0x31eca4(_0x1afe1c){const _0x286b9a=Array['from'](_0x2e1a29['getRanges']())['map'](_0x5eacce=>_0x1677da['fromRange'](_0x5eacce));_0x4bde3f['model']['change'](_0x1abd94=>{const _0x1c2d24=_0x1abd94['batch'];_0x1afe1c=_0x1afe1c['filter'](_0x2436de=>'$graveyard'!=_0x2436de['root']['rootName']),_0x1abd94['setSelection'](_0x1afe1c),_0x4bde3f['commands']['get']('removeTableRow')['refresh'](),_0x4bde3f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4bde3f['model']['enqueueChange'](()=>{_0x4bde3f['model']['enqueueChange'](_0x1c2d24,_0x2af531=>{const _0x24fecd=_0x286b9a['filter'](_0x4545d0=>'$graveyard'!=_0x4545d0['root']['rootName']);_0x24fecd['length']>0x0&&_0x2af531['setSelection'](_0x24fecd);for(const _0x52f4ab of _0x286b9a)_0x52f4ab['detach']();});});});}function _0x332818(_0xed1c65){_0x4bde3f['model']['change'](_0x1e289a=>{const _0x4d46f1=Array['from'](_0x2e1a29['getRanges']())['map'](_0x57cd60=>_0x1677da['fromRange'](_0x57cd60)),_0x517a94=[];for(const _0x6a6e81 of _0xed1c65)for(const _0x4aced1 of _0x6a6e81['getItems']({'shallow':!0x0}))_0x517a94['push'](_0x4aced1);for(const _0x309b9b of _0x517a94)'$graveyard'!=_0x309b9b['root']['rootName']&&(_0x1e289a['setSelection'](_0x1e289a['createPositionAt'](_0x309b9b,0x0)),_0x4bde3f['commands']['get']('removeTableColumn')['refresh'](),_0x4bde3f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x38f450=_0x4d46f1['filter'](_0x1496df=>'$graveyard'!=_0x1496df['root']['rootName']);_0x38f450['length']>0x0&&_0x1e289a['setSelection'](_0x38f450);for(const _0x5d6a7c of _0x4d46f1)_0x5d6a7c['detach']();});}function _0x4dd0b3(_0xc2f763,_0x320538){return _0x320538['every'](_0x54f44f=>_0xc2f763['some'](_0xd55a9b=>_0xd55a9b['end']['isEqual'](_0x54f44f['start'])||_0x54f44f['end']['isEqual'](_0xd55a9b['start'])));}function _0x5a24d8(_0x34cb33,_0x3a6a04){return!_0x34cb33['some'](_0x58b63c=>_0x3a6a04['some'](_0x38f1af=>_0x58b63c['isIntersecting'](_0x38f1af)))&&_0x34cb33['some'](_0x2d9b88=>_0x3a6a04['some'](_0xb3556b=>_0x2d9b88['end']['isTouching'](_0xb3556b['start'])));}_0x4bde3f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb29f52,_0x980008,_0xf45bc3)=>{if(!_0xf45bc3['options']['showSuggestionHighlights'])return;const _0xb382=_0x980008['item'];if(!_0xb382)return;const _0x48575e=_0xf45bc3['mapper']['toViewElement'](_0xb382);function _0xeecc05(_0x75f5d0){return Array['isArray'](_0x75f5d0)?_0x75f5d0:[_0x75f5d0];}_0x48575e&&'tableCell'===_0xb382['name']&&_0x4ec783(_0x48575e,_0xf45bc3['writer'],(_0x4961ee,_0x5a83db,_0x1fa02f)=>_0x1fa02f['addClass'](_0xeecc05(_0x5a83db['classes']),_0x4961ee),(_0x2f81f5,_0x15f746,_0x19e295)=>_0x19e295['removeClass'](_0xeecc05(_0x15f746['classes']),_0x2f81f5));},{'priority':'highest'}),_0x40384e['descriptionFactory']['registerDescriptionCallback'](_0x2eb869=>{if('insertion'!=_0x2eb869['type']&&'deletion'!=_0x2eb869['type'])return;const _0x5a8d7d=_0x2eb869['getContainedElement']();if(null!=_0x5a8d7d&&_0x5a8d7d['is']('element','table')){if('insertion'==_0x2eb869['type']){const _0x3624f5=_0x2eb869['getItems']()['filter'](_0x29bc6c=>_0x29bc6c['is']('$textProxy'))['map'](_0x221258=>_0x221258['data']);if(_0x3624f5['length'])return{'type':'insertion','content':o(_0x12363c,'*Insert:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3624f5['join']('\x20')+'\x22'))};}if('deletion'==_0x2eb869['type']){const _0xaf62f1=_0x2eb869['getItems']()['filter'](_0x4ee4c5=>_0x4ee4c5['is']('$textProxy'))['map'](_0x20174e=>_0x20174e['data']);if(_0xaf62f1['length'])return{'type':'deletion','content':o(_0x12363c,'*Remove:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xaf62f1['join']('\x20')+'\x22'))};}}}),_0x40384e['descriptionFactory']['registerDescriptionCallback'](_0xb6b379=>{if('tableRow'==_0xb6b379['subType']){const _0x4e2fbb=_0xb6b379['getItems']()['filter'](_0x586777=>_0x586777['is']('$textProxy'))['map'](_0x20ae7e=>_0x20ae7e['data']),_0x12c931=this['_getSuggestionCoords'](_0xb6b379),_0x1e9fc1=_0x12c931['maxRow']-_0x12c931['minRow']+0x1;if('insertion'==_0xb6b379['type'])return _0x4e2fbb['length']?{'type':'insertion','content':o(_0x12363c,'*Insert:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1e9fc1,'\x22'+_0x4e2fbb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x12363c,'*Insert:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_ROW',_0x1e9fc1))};if('deletion'==_0xb6b379['type'])return _0x4e2fbb['length']?{'type':'deletion','content':o(_0x12363c,'*Remove:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1e9fc1,'\x22'+_0x4e2fbb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x12363c,'*Remove:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_ROW',_0x1e9fc1))};}if('tableColumn'==_0xb6b379['subType']){const _0xbdf7ad=_0xb6b379['getItems']()['filter'](_0x41977b=>_0x41977b['is']('$textProxy'))['map'](_0x96cff3=>_0x96cff3['data']),_0x2c35ff=this['_getSuggestionCoords'](_0xb6b379),_0x13f59f=_0x2c35ff['maxColumn']-_0x2c35ff['minColumn']+0x1;if('insertion'==_0xb6b379['type'])return _0xbdf7ad['length']?{'type':'insertion','content':o(_0x12363c,'*Insert:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13f59f,'\x22'+_0xbdf7ad['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x12363c,'*Insert:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_COLUMN',_0x13f59f))};if('deletion'==_0xb6b379['type'])return _0xbdf7ad['length']?{'type':'deletion','content':o(_0x12363c,'*Remove:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13f59f,'\x22'+_0xbdf7ad['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x12363c,'*Remove:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_COLUMN',_0x13f59f))};}}),_0x40384e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x31eca4),_0x40384e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x31eca4),_0x40384e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x332818),_0x40384e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x332818),_0x40384e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4dd0b3),_0x40384e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4dd0b3),_0x40384e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5a24d8),_0x40384e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5a24d8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x31efc9=this['editor'],_0x34ecbd=_0x31efc9['model']['document']['selection'];return(_0x308500,_0x489c7d)=>{_0x31efc9['model']['change'](_0x2b1fea=>{const {commandName:_0x48c4c2,commandParams:_0x78899f}=_0x489c7d;let _0x12e7b3=_0x308500[0x0]['end']['nodeBefore'];_0x78899f&&_0x78899f[0x0]&&!0x1===_0x78899f[0x0]['forceValue']&&(_0x12e7b3=_0x308500[0x0]['start']['nodeAfter']);const _0x127e62=_0x2b1fea['createRangeIn'](_0x12e7b3);if('$graveyard'==_0x127e62['root']['rootName'])return;const _0xe3a81c=Array['from'](_0x34ecbd['getRanges']())['map'](_0x44d61d=>_0x1677da['fromRange'](_0x44d61d));_0x2b1fea['setSelection'](_0x127e62),_0x31efc9['commands']['get'](_0x48c4c2)['refresh'](),_0x78899f['push']({'forceDefaultExecution':!0x0}),_0x31efc9['execute'](_0x48c4c2,..._0x78899f);const _0x2bfb82=_0xe3a81c['filter'](_0x171bd4=>'$graveyard'!=_0x171bd4['root']['rootName']);_0x2bfb82['length']>0x0&&_0x2b1fea['setSelection'](_0x2bfb82);for(const _0x41c58e of _0xe3a81c)_0x41c58e['detach']();});};}['_getCoordsForCells'](_0x3c11f3){const _0x1ce956=this['editor']['plugins']['get']('TableUtils');let _0x3a82b3=Number['MAX_SAFE_INTEGER'],_0x16251f=Number['MIN_SAFE_INTEGER'],_0x76d463=Number['MAX_SAFE_INTEGER'],_0x12bdec=Number['MIN_SAFE_INTEGER'];for(const _0x5ed635 of _0x3c11f3){if('$graveyard'==_0x5ed635['root']['rootName'])continue;const {row:_0x8c1fc0,column:_0x3e6d1a}=_0x1ce956['getCellLocation'](_0x5ed635),_0x33c910=_0x5ed635['hasAttribute']('rowspan')?_0x5ed635['getAttribute']('rowspan')-0x1:0x0,_0x51c16d=_0x5ed635['hasAttribute']('colspan')?_0x5ed635['getAttribute']('colspan')-0x1:0x0;_0x3a82b3=_0x8c1fc0<_0x3a82b3?_0x8c1fc0:_0x3a82b3,_0x16251f=_0x8c1fc0+_0x33c910>_0x16251f?_0x8c1fc0+_0x33c910:_0x16251f,_0x76d463=_0x3e6d1a<_0x76d463?_0x3e6d1a:_0x76d463,_0x12bdec=_0x3e6d1a+_0x51c16d>_0x12bdec?_0x3e6d1a+_0x51c16d:_0x12bdec;}return{'minRow':_0x3a82b3,'maxRow':_0x16251f,'minColumn':_0x76d463,'maxColumn':_0x12bdec};}['_setupColumnsRowsFixing'](){const _0x505c7b=this['editor'],_0x654aa1=_0x505c7b['plugins']['get']('TrackChangesEditing'),_0x980d74=_0x505c7b['plugins']['get']('TableUtils');_0x505c7b['model']['document']['on']('change:data',()=>{const _0x1f3b19=Array['from'](_0x505c7b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4612ca,data:_0x5406bf}of _0x1f3b19){const {group:_0x5455d8,id:_0x126364,subType:_0x17c450}=_0x654aa1['_splitMarkerName'](_0x4612ca);if('suggestion'!=_0x5455d8)continue;if(null!=_0x5406bf['oldRange'])continue;const _0x263b29=_0x654aa1['getSuggestion'](_0x126364);this['_tablePostFixingSubtypes']['includes'](_0x17c450)&&this['_tableSuggestions']['add'](_0x263b29);}},{'priority':'low'});const _0x1f3d09=(_0x4f66c2,_0x54ba2f)=>{let _0x111ca6=!0x1;const _0x7957ef=_0x54ba2f['createRangeOn'](_0x4f66c2),_0x17b2ce=_0x4f66c2['findAncestor']('table'),_0x15db2a=_0x980d74['getCellLocation'](_0x4f66c2);for(const _0xcef5fa of this['_tableSuggestions']){const _0x2ebc6b=_0xcef5fa['subType'],_0x5be766=_0x2ebc6b['startsWith']('tablePaste'),_0x451076=_0x2ebc6b['substr'](_0x5be766?0xa:0x5),_0xffbcad=_0x451076['toLowerCase'](),_0x5a846b=_0xffbcad['substr'](0x0,0x3)+'span',_0x2cbf2a='min'+_0x451076,_0x5251e7='max'+_0x451076;if(!_0xcef5fa['isInContent'])continue;if(_0x17b2ce!=_0xcef5fa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xcef5fa['isIntersectingWithRange'](_0x7957ef))continue;const _0x3008f5=_0x4f66c2['hasAttribute'](_0x5a846b)?_0x4f66c2['getAttribute'](_0x5a846b)-0x1:0x0,_0x17af6f=this['_getSuggestionCoords'](_0xcef5fa),_0x44ed0b=_0x17af6f[_0x2cbf2a],_0x5c2c96=_0x17af6f[_0x5251e7];_0x44ed0b<=_0x15db2a[_0xffbcad]&&_0x15db2a[_0xffbcad]+_0x3008f5<=_0x5c2c96&&(_0xcef5fa['addRange'](_0x7957ef),_0x111ca6=!0x0);}return _0x111ca6;};_0x505c7b['model']['document']['registerPostFixer'](_0x30efb9=>{let _0x5c5374=!0x1;for(const _0xcc2002 of _0x505c7b['model']['document']['differ']['getChanges']())if('insert'==_0xcc2002['type']){if('tableRow'==_0xcc2002['name']){for(const _0xd98c3c of _0xcc2002['position']['nodeAfter']['getChildren']())_0x5c5374=_0x5c5374||_0x1f3d09(_0xd98c3c,_0x30efb9);}else'tableCell'==_0xcc2002['name']&&(_0x5c5374=_0x5c5374||_0x1f3d09(_0xcc2002['position']['nodeAfter'],_0x30efb9));}return _0x5c5374;});}['_getSuggestionCoords'](_0x58282f){return this['_getCoordsForCells'](_0x58282f['getRanges']()['map'](_0x23f901=>_0x23f901['start']['nodeAfter']));}}function Ee(_0x49b6e9){return Array['from'](new Set(_0x49b6e9)['values']());}class St extends _0x513c76{static get['requires'](){return[jt];}['afterInit'](){const _0x746bb0=this['editor'],_0x5066d9=_0x746bb0['model']['document']['selection'],_0x1ca2b1=_0x746bb0['locale'];if(!_0x746bb0['plugins']['has']('TableEditing'))return;const _0x263286=_0x746bb0['plugins']['get']('TrackChangesEditing'),_0x411947=_0x746bb0['plugins']['get']('TableUtils'),_0x12fae3=_0x746bb0['plugins']['get'](jt);_0x12fae3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x263286['enableCommand']('mergeTableCells',()=>{const _0x3fd290=_0x411947['getSelectionAffectedTableCells'](_0x746bb0['model']['document']['selection']);_0x746bb0['model']['change'](()=>{_0x263286['markMultiRangeBlockFormat'](_0x3fd290,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x746bb0['commands']['get']('mergeTableCells')['on']('execute',(_0x354944,_0x515170)=>{_0x746bb0['commands']['get']('trackChanges')['value']&&(_0x515170['length']>0x0&&_0x515170[_0x515170['length']-0x1]&&_0x515170[_0x515170['length']-0x1]['forceDefaultExecution']||_0x263286['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x354944['stop']());},{'priority':'highest'});for(const _0x5d3c8e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x8b1622=_0x746bb0['commands']['get'](_0x5d3c8e);_0x263286['enableCommand'](_0x5d3c8e,()=>{const _0x45fcc8=_0x746bb0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35769f=>_0x35769f['is']('element','tableCell')),_0x52dac6=_0x8b1622['value'];_0x746bb0['model']['change'](()=>{_0x263286['markMultiRangeBlockFormat']([_0x45fcc8,_0x52dac6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x35fb36 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x25c4bf=_0x746bb0['commands']['get'](_0x35fb36);_0x263286['enableCommand'](_0x35fb36,()=>{const _0x286740=_0x411947['getSelectionAffectedTableCells'](_0x746bb0['model']['document']['selection'])[0x0],_0x2c0dd9=_0x286740['findAncestor']('table'),{column:_0x361c67,row:_0xcbd1dc}=_0x411947['getCellLocation'](_0x286740);let _0x200b2f=[];if('horizontally'==_0x25c4bf['direction']){const _0x59c6e5=_0x411947['createTableWalker'](_0x2c0dd9,{'startRow':_0xcbd1dc,'endRow':_0xcbd1dc,'includeAllSlots':!0x0});_0x200b2f=Array['from'](_0x59c6e5)['map'](_0x4d15e7=>_0x4d15e7['cell']);}else{const _0x450c06=_0x411947['createTableWalker'](_0x2c0dd9,{'column':_0x361c67,'includeAllSlots':!0x0});_0x200b2f=Array['from'](_0x450c06)['map'](_0x2b4d75=>_0x2b4d75['cell']);}_0x746bb0['model']['change'](_0x33dff7=>{_0x263286['markBlockFormat'](_0x33dff7['createRangeOn'](_0x286740),{'commandName':_0x35fb36,'commandParams':[]},_0x200b2f,_0x35fb36);});});}_0x263286['descriptionFactory']['registerDescriptionCallback'](_0x1d80c1=>{if('formatBlock'!=_0x1d80c1['type']&&'formatInline'!=_0x1d80c1['type'])return;const {data:_0x2f5414}=_0x1d80c1;return _0x2f5414&&'mergeTableCells'==_0x2f5414['commandName']?{'type':'format','content':o(_0x1ca2b1,'*Merge\x20cells*')}:void 0x0;}),_0x263286['descriptionFactory']['registerDescriptionCallback'](_0x10e17b=>{if('formatBlock'!=_0x10e17b['type']&&'formatInline'!=_0x10e17b['type'])return;const {data:_0x285492}=_0x10e17b;return _0x285492?'splitTableCellVertically'==_0x285492['commandName']?{'type':'format','content':o(_0x1ca2b1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x285492['commandName']?{'type':'format','content':o(_0x1ca2b1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xaacd0a=_0x12fae3['_acceptFormatSuggestionCallbackFactory']();for(const _0x496ef7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x263286['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x496ef7,'accept',_0xaacd0a);for(const _0x2c8993 of['splitTableCellVertically','splitTableCellHorizontally'])_0x263286['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c8993,'accept',_0xaacd0a);_0x263286['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x11799f=>{_0x746bb0['model']['change'](_0x4ba87a=>{const _0x27ead8=Array['from'](_0x5066d9['getRanges']())['map'](_0x580bd5=>_0x1677da['fromRange'](_0x580bd5));_0x4ba87a['setSelection'](_0x11799f),_0x746bb0['commands']['get']('mergeTableCells')['refresh'](),_0x746bb0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x493670=_0x27ead8['filter'](_0x3a81b1=>'$graveyard'!=_0x3a81b1['root']['rootName']);_0x493670['length']>0x0&&_0x4ba87a['setSelection'](_0x493670);for(const _0x345bbd of _0x27ead8)_0x345bbd['detach']();});});for(const _0xb6033a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x506b79=_0x746bb0['commands']['get'](_0xb6033a);_0x506b79['on']('set:isEnabled',(_0x323400,_0x28c2c9,_0x3fd410)=>{if(_0x3fd410){const _0x18fc19=_0x746bb0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x50971f=>_0x50971f['is']('element','tableCell'));this['_areMergableCells'](_0x506b79['value'],_0x18fc19)||(_0x323400['return']=!0x1,_0x323400['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x40bd48=this['editor']['commands']['get']('mergeTableCells'),_0xa292c5=this['editor']['plugins']['get']('TableUtils');if(!_0x40bd48['isEnabled'])return!0x1;const _0x46d54c=_0xa292c5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x52219d of _0x46d54c)for(const _0x4b43af of _0x46d54c)if(_0x52219d!=_0x4b43af&&!this['_areMergableCells'](_0x52219d,_0x4b43af))return!0x1;return!0x0;}['_areMergableCells'](_0x31c39e,_0x24c4b4){const _0x38e207=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd18a7a=this['editor']['model']['createRangeOn'](_0x31c39e),_0xd06595=this['editor']['model']['createRangeOn'](_0x24c4b4),_0x491c82=new Set(),_0x18a681=new Set();for(const _0x2a23ee of _0x38e207['getSuggestions']())if(('insertion'==_0x2a23ee['type']||'deletion'==_0x2a23ee['type']||'mergeTableCells'==_0x2a23ee['subType'])&&_0x2a23ee['isInContent']){for(const _0x1f7aaa of _0x2a23ee['getRanges']())_0x1f7aaa['containsRange'](_0xd18a7a,!0x0)&&_0x491c82['add'](_0x2a23ee['type']+':'+_0x2a23ee['author']['id']),_0x1f7aaa['containsRange'](_0xd06595,!0x0)&&_0x18a681['add'](_0x2a23ee['type']+':'+_0x2a23ee['author']['id']);}if(_0x491c82['size']!=_0x18a681['size'])return!0x1;for(const _0x56e7f8 of _0x491c82)if(!_0x18a681['has'](_0x56e7f8))return!0x1;return!0x0;}}class At extends _0x513c76{static get['requires'](){return[jt];}['afterInit'](){const _0x1733f1=this['editor'];if(!_0x1733f1['plugins']['has']('TableEditing'))return;const _0x4b3775=_0x1733f1['locale'],_0x2feea1=_0x1733f1['plugins']['get']('TrackChangesEditing');_0x2feea1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2feea1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2feea1['registerBlockAttribute']('headingRows'),_0x2feea1['registerBlockAttribute']('headingColumns'),_0x2feea1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4b3775,'FORMAT_HEADER_ROW')),_0x2feea1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4b3775,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d47d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cc07d=this['editor']['plugins']['get']('TableUtils'),_0x4ce4b3=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x213e3d({showActiveMarker:_0x2db89c=!0x0,setDataAttribute:_0x1cea92=!0x0}={}){return(_0x8921dc,_0x4f40f4,_0x1911f8)=>{const {type:_0x225d76,id:_0x48bef3}=_0x3d47d8['_splitMarkerName'](_0x4f40f4['markerName']),_0x2a7f0e=_0x3d47d8['getSuggestion'](_0x48bef3),_0x1ae8a4=_0x2a7f0e['data'];if('formatBlock'!=_0x2a7f0e['type']||!_0x1ae8a4||'setTableColumnHeader'!=_0x1ae8a4['commandName'])return;if(_0x4f40f4['item'])return void _0x8921dc['stop']();if(!_0x1911f8['consumable']['consume'](_0x4f40f4['markerRange'],_0x8921dc['name']))return;const _0x5bd818=_0x4f40f4['markerRange']['start']['nodeAfter'],_0x1b7c20=_0x4f40f4['markerRange']['end']['nodeBefore'],_0x33fa5e=_0x5bd818['parent']['parent'],{column:_0x1d6ced}=_0x5cc07d['getCellLocation'](_0x5bd818),{column:_0x135df9}=_0x5cc07d['getCellLocation'](_0x1b7c20);for(let _0x1ecb2b=_0x1d6ced;_0x1ecb2b<=_0x135df9;_0x1ecb2b++){const _0x2f9d48=_0x5cc07d['createTableWalker'](_0x33fa5e,{'column':_0x1ecb2b,'includeAllSlots':!0x1});for(const _0x4b8faf of _0x2f9d48){const _0x21fd37=_0x4b8faf['cell'],_0x2a8d67=_0x1911f8['mapper']['toViewElement'](_0x21fd37);_0x1911f8['writer']['addClass']('ck-suggestion-marker-'+_0x225d76,_0x2a8d67),_0x1cea92&&_0x1911f8['writer']['setAttribute']('data-suggestion',_0x48bef3,_0x2a8d67),_0x1911f8['mapper']['bindElementToMarker'](_0x2a8d67,_0x4f40f4['markerName']),_0x2db89c&&(_0x3d47d8['activeMarkers']['includes'](_0x4f40f4['markerName'])?_0x1911f8['writer']['addClass']('ck-suggestion-marker--active',_0x2a8d67):_0x1911f8['writer']['removeClass']('ck-suggestion-marker--active',_0x2a8d67));}}};}_0x3d47d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4ce4b3),_0x3d47d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4ce4b3),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x213e3d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d2021,_0x20c23e,_0x2ef918)=>{_0x2ef918['options']['showSuggestionHighlights']&&_0x213e3d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4d2021,_0x20c23e,_0x2ef918);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4575b0,_0xcf206c,_0x563f67)=>{const {type:_0x49d0b0,id:_0x9c569}=_0x3d47d8['_splitMarkerName'](_0xcf206c['markerName']),_0x1977d6=_0x3d47d8['getSuggestion'](_0x9c569),_0x5ef25d=_0x1977d6['data'];if('formatBlock'!=_0x1977d6['type']||!_0x5ef25d||'setTableColumnHeader'!=_0x5ef25d['commandName'])return;const _0x3c892a=_0x563f67['mapper']['markerNameToElements'](_0xcf206c['markerName']);if(_0x3c892a){for(const _0x1c6227 of _0x3c892a)_0x563f67['writer']['removeClass']('ck-suggestion-marker-'+_0x49d0b0,_0x1c6227),_0x563f67['writer']['removeClass']('ck-suggestion-marker--active',_0x1c6227),_0x563f67['writer']['removeAttribute']('data-suggestion',_0x1c6227),_0x563f67['mapper']['unbindElementFromMarkerName'](_0x1c6227,_0xcf206c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2de250=this['editor'],_0x5d46e4=_0x2de250['locale'];function _0x1880b1(_0x15dcc9){return{'type':'format','content':o(_0x5d46e4,'*Format:*\x20%0',_0x15dcc9)};}_0x2de250['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40f840=>{if('formatBlock'!=_0x40f840['type'])return;const {data:_0x50e587}=_0x40f840;if(_0x50e587){if('setTableRowHeader'==_0x50e587['commandName']){const _0x2a8393=_0x50e587['commandParams'][0x0]['forceValue'];return _0x1880b1(o(_0x5d46e4,_0x2a8393?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x50e587['commandName']){const _0x35a40a=_0x50e587['commandParams'][0x0]['forceValue'];return _0x1880b1(o(_0x5d46e4,_0x35a40a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x56d8fd=>[_0x56d8fd,null]));class It extends _0x513c76{static get['requires'](){return[jt];}['afterInit'](){const _0x140d1b=this['editor'];if(!_0x140d1b['plugins']['has']('TableClipboard'))return;const _0x3b5674=_0x140d1b['plugins']['get']('TrackChangesEditing'),_0x372acd=_0x140d1b['plugins']['get']('TableUtils'),_0x1d5de0=_0x140d1b['plugins']['get'](jt),_0x3a6fda=_0x140d1b['plugins']['get']('TableClipboard');_0x1d5de0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x140d1b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x140d1b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x47b99b=null;_0x140d1b['model']['on']('insertContent',(_0x5b506f,_0x16416c)=>{const [_0x82daa,_0xb4d8c]=_0x16416c,_0x2ae78a=_0x16416c[_0x16416c['length']-0x1];_0x2ae78a&&_0x2ae78a['forceDefaultExecution']||_0x3b5674['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x40f7c9,_0x5c40a0,_0x32fa84,_0x4a46cf,_0xb3dd29){if(_0x5c40a0&&!_0x5c40a0['is']('documentSelection'))return!0x1;const _0x1b96cc=_0xb3dd29['getTableIfOnlyTableInContent'](_0x40f7c9,_0x32fa84);if(!_0x1b96cc||!he(_0x1b96cc,void 0x0,_0x4a46cf))return!0x1;const _0x5d0fa4=_0x4a46cf['getSelectionAffectedTableCells'](_0x32fa84['document']['selection']);if(!_0x5d0fa4['length'])return!0x1;const _0x3ef63a=_0x5d0fa4[0x0]['findAncestor']('table'),_0x469b6e=_0x4a46cf['getRowIndexes'](_0x5d0fa4),_0x55e565=_0x4a46cf['getColumnIndexes'](_0x5d0fa4),_0x58e095={'startRow':_0x469b6e['first'],'endRow':_0x469b6e['last'],'startColumn':_0x55e565['first'],'endColumn':_0x55e565['last']};return 0x1==_0x5d0fa4['length']&&(_0x58e095['endRow']+=_0x4a46cf['getRows'](_0x1b96cc)-0x1,_0x58e095['endColumn']+=_0x4a46cf['getColumns'](_0x1b96cc)-0x1),he(_0x3ef63a,_0x58e095,_0x4a46cf);}(_0x82daa,_0xb4d8c,_0x140d1b['model'],_0x372acd,_0x3a6fda)&&(_0x5b506f['stop'](),_0x47b99b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x140d1b['model']['change'](()=>{_0x140d1b['model']['insertContent'](_0x16416c[0x0],_0x16416c[0x1],_0x16416c[0x2],{'forceDefaultExecution':!0x0});const _0x41ce4a=_0x50a7b0(),{rowInsertionRanges:_0x52d5a4,columnInsertionRanges:_0x209a06,insertionRanges:_0x3139e8,deletionRanges:_0x14c74d,cells:_0x55b362}=_0x47b99b;_0x52d5a4['length']&&_0x3b5674['markMultiRangeInsertion'](_0x52d5a4,'tablePasteRow',{'tablePasteChainId':_0x41ce4a}),_0x209a06['length']&&_0x3b5674['markMultiRangeInsertion'](_0x209a06,'tablePasteColumn',{'tablePasteChainId':_0x41ce4a}),_0x3139e8['length']&&(_0x3b5674['markMultiRangeInsertion'](_0x3139e8,'tablePaste',{'tablePasteChainId':_0x41ce4a,'skipNestingCheck':!0x0}),_0x3139e8['forEach'](_0x367e65=>_0x367e65['detach']?.())),_0x14c74d['length']&&(_0x3b5674['markMultiRangeDeletion'](_0x14c74d,'tablePaste',{'tablePasteChainId':_0x41ce4a,'skipNestingCheck':!0x0}),_0x14c74d['forEach'](_0x19ce50=>_0x19ce50['detach']?.()));const _0x13bfb1=_0x3b5674['markMultiRangeBlockFormat'](_0x55b362['map'](({element:_0x5aae11})=>_0x5aae11),{'formatGroupId':_0x50a7b0()},[],'tablePasteCell',{'tablePasteChainId':_0x41ce4a});if(_0x13bfb1){const _0x55b68a=_0x13bfb1['getMarkers'](),_0x2f11ff=[];for(const {element:_0x3c6040,attributes:_0x106b57}of _0x55b362){if(!_0x106b57)continue;const _0x298d07=_0x140d1b['model']['createRangeOn'](_0x3c6040),_0x23eb6a=_0x55b68a['find'](_0x4fff12=>_0x4fff12['getRange']()['isEqual'](_0x298d07));_0x23eb6a&&_0x2f11ff['push']([_0x23eb6a['name'],_0x106b57]);}_0x2f11ff['length']&&_0x13bfb1['setAttribute']('markerAttributes',Object['fromEntries'](_0x2f11ff));}_0x47b99b=null;}));},{'priority':_0x362a86['high']+0xa}),_0x140d1b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x442b52,_0x24ce63)=>{const [_0x516b49,_0x55c9b7,,_0x3dcaad]=_0x24ce63;if(!_0x47b99b)return;_0x442b52['stop']();const _0xcc735a=_0x516b49['cell'],_0x35b44b=_0x55c9b7,_0x19f9bd=Pe(_0xcc735a),_0x1552ed=Pe(_0x35b44b);_0x442b52['return']=_0xcc735a;let _0xc7b0fe=null,_0x5ef673=null;if(_0x1552ed||_0x19f9bd){if(_0x19f9bd&&!_0x1552ed){_0x3dcaad['remove'](_0xcc735a['getChild'](0x0));for(const _0x22ec95 of Array['from'](_0x35b44b['getChildren']()))_0x3dcaad['insert'](_0x22ec95,_0xcc735a,'end');const _0x528047=_0x47b99b['rowInsertionIndexes']['includes'](_0x516b49['row']),_0x121194=_0x47b99b['columnInsertionIndexes']['includes'](_0x516b49['column']);_0x528047||_0x121194||(_0xc7b0fe=_0x1677da['fromRange'](_0x3dcaad['createRangeIn'](_0xcc735a)));}else _0x1552ed&&!_0x19f9bd&&(_0x5ef673=_0x3dcaad['createRangeIn'](_0xcc735a));}else{const _0x12dd6b=_0x3dcaad['createElement']('tableCellSuggestion'),_0x292bf8=_0x3dcaad['createElement']('tableCellSuggestion');_0x3dcaad['wrap'](_0x3dcaad['createRangeIn'](_0xcc735a),_0x292bf8),_0x3dcaad['insert'](_0x12dd6b,_0xcc735a,0x0);for(const _0x1bc87f of Array['from'](_0x35b44b['getChildren']()))_0x3dcaad['insert'](_0x1bc87f,_0x12dd6b,'end');_0xc7b0fe=_0x1677da['fromRange'](_0x3dcaad['createRangeOn'](_0x12dd6b)),_0x5ef673=_0x1677da['fromRange'](_0x3dcaad['createRangeOn'](_0x292bf8));}const _0x5e040d=Array['from'](_0x35b44b['getAttributes']())['filter'](([_0x540331])=>ge['includes'](_0x540331));_0x47b99b['cells']['push']({'element':_0xcc735a,'attributes':_0x5e040d['length']?Object['fromEntries'](_0x5e040d):null}),_0xc7b0fe&&_0x47b99b['insertionRanges']['push'](_0xc7b0fe),_0x5ef673&&_0x47b99b['deletionRanges']['push'](_0x5ef673);},{'priority':'high'}),_0x372acd['on']('insertColumns',(_0x21581d,_0x2f4790)=>{const [_0x170210,_0x508403={}]=_0x2f4790;if(!_0x47b99b)return;const _0x4f0412=_0x508403['at']||0x0,_0xd291a6=_0x508403['columns']||0x1;_0x47b99b['columnInsertionIndexes']=new Array(_0xd291a6)['fill'](_0x4f0412)['map']((_0x1ecbea,_0xcf14a4)=>_0x1ecbea+_0xcf14a4);for(const {cell:_0x326d1b}of _0x372acd['createTableWalker'](_0x170210,{'startColumn':_0x4f0412,'endColumn':_0x4f0412+_0xd291a6-0x1}))_0x47b99b['columnInsertionRanges']['push'](_0x140d1b['model']['createRangeOn'](_0x326d1b));},{'priority':'low'}),_0x372acd['on']('insertRows',(_0x462925,_0xc276e8)=>{const [_0x5789c4,_0x322b44={}]=_0xc276e8;if(!_0x47b99b)return;const _0x14555e=_0x322b44['at']||0x0,_0x56e762=_0x322b44['rows']||0x1;_0x47b99b['rowInsertionIndexes']=new Array(_0x56e762)['fill'](_0x14555e)['map']((_0x31ffc8,_0x1c835a)=>_0x31ffc8+_0x1c835a);for(const {cell:_0x8bfde3}of _0x372acd['createTableWalker'](_0x5789c4,{'startRow':_0x14555e,'endRow':_0x14555e+_0x56e762-0x1}))_0x47b99b['rowInsertionRanges']['push'](_0x140d1b['model']['createRangeOn'](_0x8bfde3));},{'priority':'low'}),_0x3b5674['descriptionFactory']['registerDescriptionCallback'](_0x4abc0f=>{if(_0x4abc0f['subType']&&_0x4abc0f['subType']['startsWith']('tablePaste'))return _0x4abc0f['previous']?{}:{'type':'insertion','content':o(_0x140d1b['locale'],'*Replace\x20table\x20cells*')};});const _0x53f5bd=()=>!0x1;for(const _0x2c31d7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3b5674['_suggestionFactory']['registerCustomCallback']('insertion',_0x2c31d7,'join',_0x53f5bd),_0x3b5674['_suggestionFactory']['registerCustomCallback']('deletion',_0x2c31d7,'join',_0x53f5bd),_0x3b5674['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c31d7,'join',_0x53f5bd);_0x3b5674['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53f5bd),_0x3b5674['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3aab4f,_0x33d87f,_0x1c3acf)=>{const _0x4a6a0f=_0x3aab4f['map'](_0x1e49a6=>_0x1e49a6['getContainedElement']())['filter'](_0x5a3166=>_0x5a3166),_0x51a4b0=new Map(_0x4a6a0f['map'](_0x2ad3a7=>[_0x2ad3a7,null]));if(_0x47b99b){for(const {element:_0x2f8892,attributes:_0x560e33}of _0x47b99b['cells'])_0x560e33&&_0x51a4b0['set'](_0x2f8892,_0x560e33);}else{if(_0x1c3acf&&_0x1c3acf['markerAttributes'])for(const [_0x5d01c1,_0x142420]of Object['entries'](_0x1c3acf['markerAttributes'])){const _0x5c505d=_0x140d1b['model']['markers']['get'](_0x5d01c1),_0x5dc056=_0x5c505d?_0x5c505d['getRange']()['getContainedElement']():null;_0x5dc056&&_0x51a4b0['set'](_0x5dc056,_0x142420);}}_0x140d1b['model']['change'](_0x1c712a=>{for(const [_0x5f5208,_0x5b7677]of _0x51a4b0)_0x1c712a['setAttributes']({...Ce,..._0x5b7677},_0x5f5208);});});const _0x4bb5d1=(_0x4694e7,_0x273ebe)=>{_0x3b5674['_suggestionFactory']['registerCustomCallback'](_0x4694e7,'tablePaste',_0x273ebe,(_0x1e4ac9,_0x5482a2,_0x2d869d)=>{_0x140d1b['model']['change'](_0x251874=>{const _0x449bb7=[];for(const _0x59064d of _0x1e4ac9){const _0xaec935=_0x59064d['start']['nodeAfter'];_0xaec935['is']('element','tableCellSuggestion')&&_0x449bb7['push'](_0xaec935);}_0x3b5674['_suggestionFactory']['getSuggestionCallback'](_0x4694e7,null,_0x273ebe)(_0x1e4ac9,_0x5482a2,_0x2d869d);for(const _0x5ac161 of _0x449bb7)'$graveyard'!=_0x5ac161['root']['rootName']&&_0x251874['unwrap'](_0x5ac161);});});};_0x4bb5d1('insertion','accept'),_0x4bb5d1('insertion','discard'),_0x4bb5d1('deletion','accept'),_0x4bb5d1('deletion','discard'),_0x3b5674['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xeefd23=>{const _0xae944e=_0xeefd23['map'](_0x4be123=>_0x4be123['getContainedElement']()),_0x39b118=_0xae944e[0x0]['findAncestor']('table'),{minRow:_0x409e1b,maxRow:_0x1ce8e2}=_0x1d5de0['_getCoordsForCells'](_0xae944e);_0x372acd['removeRows'](_0x39b118,{'at':_0x409e1b,'rows':_0x1ce8e2-_0x409e1b+0x1});}),_0x3b5674['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x13b820=>{const _0x39bafd=_0x13b820['map'](_0x2b4216=>_0x2b4216['getContainedElement']()),_0x3a87d5=_0x39bafd[0x0]['findAncestor']('table'),{minColumn:_0x30237a,maxColumn:_0x4a421f}=_0x1d5de0['_getCoordsForCells'](_0x39bafd);_0x372acd['removeColumns'](_0x3a87d5,{'at':_0x30237a,'columns':_0x4a421f-_0x30237a+0x1});});const _0x2a9bf8=(_0x1146d1,_0xeda33)=>{if(!_0xeda33['subType']||!_0xeda33['subType']['startsWith']('tablePaste'))return;const _0x17671=_0xeda33['attributes']['tablePasteChainId'],_0x18daa7=_0x3b5674['getSuggestions']()['filter'](_0x5922f2=>_0x5922f2['isInContent']&&_0x5922f2['attributes']&&_0x5922f2['attributes']['tablePasteChainId']==_0x17671);_0x18daa7['length']&&_0xeda33['getAllAdjacentSuggestions']()['length']!=_0x18daa7['length']&&_0x18daa7['reduce']((_0x57e159,_0x2107e9)=>(_0x57e159['next']=_0x2107e9,_0x2107e9['previous']=_0x57e159,_0x2107e9));};function _0x5694ac(_0x1e2f13,_0xa424d9=!0x0){const {id:_0x167941}=_0x3b5674['_splitMarkerName'](_0x1e2f13['markerName']),_0x35b2df=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x17cefa=_0x3b5674['activeMarkers']['includes'](_0x1e2f13['markerName']);return _0x17cefa&&_0x35b2df['push']('ck-suggestion-marker--active'),{'classes':_0x35b2df,'attributes':{'data-suggestion':_0x167941},'priority':_0x17cefa&&_0xa424d9?0xbc2:0xbb8};}_0x3b5674['on']('suggestionLoaded',_0x2a9bf8,{'priority':'high'}),_0x3b5674['on']('suggestionUnloaded',_0x2a9bf8,{'priority':'high'}),_0x140d1b['model']['document']['registerPostFixer'](()=>{let _0x30d95f=!0x1;const _0x434fb4=Array['from'](_0x140d1b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8385db,data:_0x31ae67}of _0x434fb4){const {group:_0xd10b28,type:_0x425cb7,id:_0x3cc746}=_0x3b5674['_splitMarkerName'](_0x8385db);if('suggestion'!=_0xd10b28||'deletion'!=_0x425cb7||_0x31ae67['oldRange'])continue;if(!_0x3b5674['hasSuggestion'](_0x3cc746))continue;const _0x34a9e2=_0x3b5674['getSuggestion'](_0x3cc746)['getRanges'](),_0x2f8768=_0x140d1b['plugins']['get']('Users')['me'];for(const _0x55ef99 of _0x3b5674['getSuggestions']()){if(!_0x55ef99['isInContent']||_0x55ef99['author']!=_0x2f8768)continue;if('formatBlock'!=_0x55ef99['type']||'tablePasteCell'!=_0x55ef99['subType'])continue;if(_0x55ef99['getRanges']()['every'](_0x5bb3be=>_0x34a9e2['some'](_0x1c4a21=>_0x1c4a21['containsRange'](_0x5bb3be,!0x0)))){for(const _0x191f66 of _0x55ef99['getAllAdjacentSuggestions']())_0x191f66['isInContent']&&(_0x191f66['discard'](),_0x30d95f=!0x0);}}}return _0x30d95f;}),_0x140d1b['model']['document']['registerPostFixer'](_0x364c7d=>{const _0x378611=_0x140d1b['commands']['get']('redo');if(!_0x378611||!_0x378611['_createdBatches']['has'](_0x364c7d['batch']))return!0x1;let _0x1fcac5=!0x1;const _0x2a36f6=_0x140d1b['plugins']['get']('Users')['me'],_0x5ab675=_0x140d1b['model']['document']['differ']['getChanges'](),_0x1c0139=Array['from'](_0x140d1b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x229ad8,data:_0x2cc58f})=>{const {group:_0x21345a,subType:_0x5bfeb,authorId:_0xb4f34e}=_0x3b5674['_splitMarkerName'](_0x229ad8);return'suggestion'==_0x21345a&&'tablePaste'==_0x5bfeb&&_0xb4f34e==_0x2a36f6['id']&&!_0x2cc58f['oldRange'];});for(const _0x1cbf73 of _0x5ab675){if('insert'!=_0x1cbf73['type']||'tableCellSuggestion'!=_0x1cbf73['name']||0x1!=_0x1cbf73['length'])continue;const _0x4f6998=_0x364c7d['createRange'](_0x1cbf73['position'],_0x1cbf73['position']['getShiftedBy'](0x1));if(!_0x1c0139['find'](({data:_0x5767f4})=>_0x5767f4['newRange']['isEqual'](_0x4f6998))){for(const {name:_0x5a2145,data:_0x39de90}of _0x1c0139)if(_0x4f6998['containsRange'](_0x39de90['newRange'])){_0x364c7d['updateMarker'](_0x5a2145,{'range':_0x4f6998}),_0x1fcac5=!0x0;break;}}}return _0x1fcac5;}),_0x140d1b['model']['document']['registerPostFixer'](_0x3a34a1=>{let _0x19f655=!0x1;const _0x4f9665=_0x140d1b['plugins']['get']('Users')['me'],_0x4e1a5d=_0x3b5674['getSuggestions']()['filter'](_0x16f8b1=>_0x16f8b1['isInContent']&&_0x16f8b1['author']==_0x4f9665),_0x1f0c8f=new Set(),_0x3be856=new Set();for(const _0x46dc43 of _0x4e1a5d)if('tablePaste'==_0x46dc43['subType'])for(const _0x71f412 of _0x46dc43['getMarkers']()){const _0x492a62=_0x71f412['getRange']()['getContainedElement']();if(_0x492a62){if(_0x492a62['is']('element','tableCellSuggestion')&&Pe(_0x492a62)){_0x46dc43['removeMarker'](_0x71f412['name']),_0x1f0c8f['add'](_0x492a62),_0x19f655=!0x0;const _0x4304df=_0x492a62['nextSibling'],_0x3e7604=_0x492a62['previousSibling'],_0xc8a79e=_0x4304df&&_0x4304df['is']('element','tableCellSuggestion'),_0x23d76c=_0x3e7604&&_0x3e7604['is']('element','tableCellSuggestion');_0xc8a79e&&!_0x1f0c8f['has'](_0x4304df)&&_0x3be856['add'](_0x4304df),_0x23d76c&&!_0x1f0c8f['has'](_0x3e7604)&&_0x3be856['add'](_0x3e7604);}else _0x492a62['is']('element','paragraph')&&_0x492a62['isEmpty']&&(_0x46dc43['removeMarker'](_0x71f412['name']),_0x19f655=!0x0);}}else{if('tablePasteCell'==_0x46dc43['subType']){if(!_0x46dc43['attributes']||!_0x46dc43['attributes']['tablePasteChainId'])continue;const _0x538d1d=_0x46dc43['attributes']['markerAttributes'];if(_0x538d1d&&Object['keys'](_0x538d1d)['length'])continue;const _0x29feee=_0x46dc43['attributes']['tablePasteChainId'];let _0x2e0962=!0x0,_0x5a3c42=!0x0;for(const _0x83bd7e of _0x4e1a5d)if(_0x83bd7e['subType']&&_0x83bd7e['subType']['startsWith']('tablePaste')){if(!_0x83bd7e['attributes']['tablePasteChainId']){_0x5a3c42=!0x1;break;}if(_0x83bd7e['id']!=_0x46dc43['id']&&_0x83bd7e['attributes']['tablePasteChainId']==_0x29feee){_0x2e0962=!0x1;break;}}_0x5a3c42&&_0x2e0962&&(_0x46dc43['removeMarkers'](),_0x19f655=!0x0);}}for(const _0x5916bd of _0x1f0c8f)_0x3a34a1['remove'](_0x5916bd);for(const _0xdd997e of _0x3be856)_0x3a34a1['unwrap'](_0xdd997e);return _0x19f655;}),_0x140d1b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4ecff2,_0x573341)=>_0x5694ac(_0x4ecff2),'converterPriority':'high'}),_0x140d1b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x184cb1,_0x19e1b4)=>_0x19e1b4['options']['showSuggestionHighlights']?_0x5694ac(_0x184cb1,!0x1):null,'converterPriority':'high'});const _0x5a4458=_0x140d1b['editing']['view'];this['listenTo'](_0x5a4458['document'],'clipboardOutput',(_0x46acc3,_0x5641fa)=>{const _0x4cc71a=[];for(const _0xbda3fa of _0x5a4458['createRangeIn'](_0x5641fa['content'])['getItems']())_0xbda3fa['is']('element','suggestion-td')&&_0x4cc71a['push'](_0xbda3fa);_0x5a4458['change'](_0x1625a5=>{for(const _0x419035 of _0x4cc71a)_0x1625a5['move'](_0x1625a5['createRangeIn'](_0x419035),_0x1625a5['createPositionBefore'](_0x419035)),_0x1625a5['remove'](_0x419035);});});}}function Pe(_0x2214b3){if(_0x2214b3['isEmpty'])return!0x0;const _0x2fc612=_0x2214b3['getChild'](0x0);return _0x2fc612['is']('element','paragraph')&&_0x2fc612['isEmpty'];}function he(_0x5b20bc,_0x4ce35e={},_0x5d90df){for(const {isAnchor:_0x1a7022,cellHeight:_0x53514d,cellWidth:_0x347206}of _0x5d90df['createTableWalker'](_0x5b20bc,{'includeAllSlots':!0x0,..._0x4ce35e}))if(!_0x1a7022||0x1!=_0x53514d||0x1!=_0x347206)return!0x1;return!0x0;}class vt extends _0x513c76{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2df34e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2df34e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2df34e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2df34e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2df34e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2df34e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2df34e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x9625fe,_0x276bdb){const _0x39b973=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a0144=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1725d7=_0x276bdb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x187f63=_0x3a0144['getColumnGroupElement'](_0x1725d7);let _0x57475f=_0x187f63?_0x3a0144['getTableColumnsWidths'](_0x187f63):null,_0x4ac3d3=_0x1725d7['getAttribute']('tableWidth')||null;const _0x85db1e=_0x276bdb['tableWidth']||_0x4ac3d3,_0x12a872=_0x276bdb['columnWidths']||_0x57475f,_0x44348=this['editor']['plugins']['get']('Users')['me'];for(const _0x27a275 of _0x39b973['getSuggestions']()){const _0x28c8db=_0x27a275['getContainedElement']();if('resizeTable'===_0x27a275['subType']&&_0x28c8db===_0x1725d7){_0x27a275['author']!==_0x44348&&_0x27a275['discard']();const _0x4c495a=_0x27a275['data']['commandParams'];_0x4ac3d3=_0x4c495a[0x0]['tableWidth'],_0x57475f=_0x4c495a[0x0]['columnWidths'];break;}}_0x9625fe({'table':_0x1725d7,'tableWidth':_0x85db1e,'columnWidths':_0x12a872}),_0x39b973['markBlockFormat'](_0x1725d7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4ac3d3,'columnWidths':_0x57475f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x479705){if('formatBlock'!=_0x479705['type']&&'formatInline'!=_0x479705['type'])return;const {data:_0x1e1700}=_0x479705;if(_0x1e1700&&'resizeTable'===_0x1e1700['formatGroupId']){const _0x3d874c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3d874c)};}}}class Ct extends _0x513c76{['afterInit'](){const _0x320d21=this['editor'];_0x320d21['plugins']['has']('Template')&&_0x320d21['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x513c76{['afterInit'](){const _0x3312d8=this['editor'];if(!_0x3312d8['commands']['get']('insertTableOfContents'))return;_0x3312d8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x372d87=_0x3312d8['plugins']['get']('TrackChangesEditing'),_0xfd66e2=_0x3312d8['locale'];_0x372d87['descriptionFactory']['registerElementLabel']('tableOfContents',_0x319cc4=>o(_0xfd66e2,'ELEMENT_TABLE_OF_CONTENTS',_0x319cc4));}}class Dt extends _0x513c76{['afterInit'](){const _0x5bbbcd=this['editor'];if(!_0x5bbbcd['plugins']['has']('Title'))return;const _0x418944=_0x5bbbcd['plugins']['get']('TrackChangesEditing');_0x418944['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5bbbcd['locale'],'ELEMENT_TITLE')),_0x5bbbcd['model']['document']['registerPostFixer'](_0x15740a=>{let _0x2dda20=!0x1;const _0x1ea882=Array['from'](_0x5bbbcd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bebb1,data:_0x41e986}of _0x1ea882){const {group:_0x1c856b}=_0x418944['_splitMarkerName'](_0x4bebb1);if('suggestion'!==_0x1c856b||!_0x41e986['newRange'])continue;const _0x23ce6d=_0x41e986['newRange'],_0x14eb2d=_0x23ce6d['end']['nodeBefore'];if(!_0x14eb2d||!_0x14eb2d['is']('element','title-content'))continue;if(!_0x23ce6d['start']['isTouching'](_0x23ce6d['end']))continue;const _0x52d71a=_0x5bbbcd['model']['schema']['getNearestSelectionRange'](_0x23ce6d['end'],'forward');if(_0x52d71a&&_0x52d71a['isCollapsed']){const _0x5b4d34=_0x15740a['createRange'](_0x23ce6d['start'],_0x52d71a['start']);_0x5b4d34['isEqual'](_0x23ce6d)||(_0x15740a['updateMarker'](_0x4bebb1,{'range':_0x5b4d34}),_0x2dda20=!0x0);}_0x2dda20||(_0x15740a['removeMarker'](_0x4bebb1),_0x2dda20=!0x0);}return _0x2dda20;});}}class Nt extends _0x513c76{['afterInit'](){const _0x4b105e=this['editor'],_0xced9d3=_0x4b105e['plugins']['get']('TrackChangesEditing');_0x4b105e['plugins']['has']('UndoEditing')&&(_0xced9d3['enableCommand']('undo'),_0xced9d3['enableCommand']('redo'));}}class Mt extends _0x513c76{static get['requires'](){return[jt];}['afterInit'](){const _0x5a05cf=this['editor'];if(!_0x5a05cf['plugins']['has']('TableCaptionEditing'))return;_0x5a05cf['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x513c76{['tableProperties'];['tableCellProperties'];constructor(_0x3527e6){super(_0x3527e6),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 _0x52e96a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2394b3 of this['tableProperties'])_0x52e96a['enableCommand'](_0x2394b3,(_0xcbcca1,_0x4eb730)=>{const _0x36fe23=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2394b3,[_0x36fe23],this['tableProperties'],'tableProperties',_0xcbcca1,_0x4eb730);});_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x52e96a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x705a7f,_0x109ccd)=>this['handleDiscardAction'](this['tableProperties'],_0x705a7f,_0x109ccd)),_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x549379 of this['tableCellProperties'])_0x52e96a['enableCommand'](_0x549379,(_0x470b44,_0xe4e00f)=>{const _0x4a5cc0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x549379,_0x4a5cc0,this['tableCellProperties'],'tableCellProperties',_0x470b44,_0xe4e00f);});_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x52e96a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5c90ac,_0x5bef76)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5c90ac,_0x5bef76)),_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x52e96a['descriptionFactory']['registerDescriptionCallback'](_0x22a466=>this['handleSuggestionDescription'](_0x22a466));}['_handlePropertyChange'](_0x4c641e,_0x3679ab,_0x33f190,_0x30b1d3,_0x2fe464,_0x124efe){const _0x6dc8f0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x124efe['batch'],()=>{for(const _0x76e47c of _0x3679ab){if(this['_getSuggestion'](_0x76e47c,_0x30b1d3))_0x2fe464(_0x124efe);else{const _0x1354bd={};for(const _0xf17ae6 of _0x33f190){const _0x1ab248=_0x76e47c['getAttribute'](_0xf17ae6);void 0x0!==_0x1ab248&&(_0x1354bd[_0xf17ae6]=_0x1ab248);}_0x2fe464(_0x124efe),_0x6dc8f0['markBlockFormat'](_0x76e47c,{'commandParams':[_0x1354bd]},[],_0x30b1d3);}}});}['handleDiscardAction'](_0x11afc7,_0x23f990,_0x73740a){const _0x3c970d=_0x23f990[0x0]['start']['nodeAfter'],_0x13192a=_0x73740a['commandParams'][0x0];this['editor']['model']['change'](_0x4a9b6f=>{for(const _0x123b78 of _0x11afc7)void 0x0!==_0x13192a[_0x123b78]?_0x4a9b6f['setAttribute'](_0x123b78,_0x13192a[_0x123b78],_0x3c970d):_0x4a9b6f['removeAttribute'](_0x123b78,_0x3c970d);});}['handleSuggestionDescription'](_0x8744ca){if(_0x8744ca['data'])switch(_0x8744ca['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'](_0x1541fd,_0x5bd9c0){const _0x410312=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2366c7 of _0x410312['getSuggestions']({'skipNotAttached':!0x0})){const _0x1eb170=_0x2366c7['getContainedElement']();if(_0x2366c7['subType']===_0x5bd9c0&&_0x1eb170===_0x1541fd)return _0x2366c7;}return null;}}const m='$elementName';class p extends _0x513c76{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1586d5,_0x15ddea,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(_0x1a16df){function _0x1ed9c7(_0x22fc02){return _0x22fc02['map'](_0x28d07c=>String['fromCharCode'](_0x28d07c))['join']('');}super(_0x1a16df),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1d1b8f,_0xf8653d,_0x4a91e3,_0x3d4fa8)=>{this['_model']['change'](()=>{for(const _0x263871 of[..._0x3d4fa8,..._0x4a91e3])this['_model']['markers']['has'](_0x263871)&&_0x1a16df['editing']['reconvertMarker'](_0x263871);});}),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']=_0x1a16df['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(),_0x1a16df['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1a16df['config']['get']('trackChanges.trackFormatChanges'),_0x1a16df['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1a16df['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1a16df,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1ed9c7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1ed9c7([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x30]);}['init'](){const _0x4a0c55=this['editor'],_0xa9754b=(_0x11baca,_0x5013c4)=>{if('attribute'!=_0x11baca)return'ck-suggestion-marker-'+_0x11baca;const _0x3e88f4=_0x5013c4['split']('|')[0x0];return this['_isBlockAttribute'](_0x3e88f4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a0c55['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x579954=>{const {id:_0x5e0519,type:_0x30650a,subType:_0x2ace5e}=this['_splitMarkerName'](_0x579954['markerName']),_0x4b94db=['ck-suggestion-marker',_0xa9754b(_0x30650a,_0x2ace5e)];let _0x1c7446=0xbb8;return this['activeMarkers']['includes'](_0x579954['markerName'])&&(_0x4b94db['push']('ck-suggestion-marker--active'),_0x1c7446=0xbc2),'deletion'==_0x30650a&&(_0x1c7446+=0x5),{'classes':_0x4b94db,'attributes':{'data-suggestion':_0x5e0519},'priority':_0x1c7446};}}),_0x4a0c55['conversion']['for']('dataDowncast')['add'](_0x349dcb=>{_0x349dcb['on']('addMarker:suggestion',(_0x27b49f,_0x3c000c,_0x472b82)=>{if(!_0x472b82['options']['showSuggestionHighlights'])return;const _0x218fe3=_0x3c000c['item'];if(!_0x218fe3)return;const _0xf3208f=_0x472b82['mapper']['toViewElement'](_0x218fe3);_0x4a0c55['model']['schema']['isObject'](_0x218fe3)&&_0xf3208f&&!_0xf3208f['getCustomProperty']('widget')&&_0xf3208f['is']('containerElement')&&_0x57f963(_0xf3208f,_0x472b82['writer']);},{'priority':'high'});}),_0x4a0c55['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4d8b67,_0x199ea3)=>{if(!_0x199ea3['options']['showSuggestionHighlights'])return null;const {type:_0x37138e,subType:_0x135b5a}=this['_splitMarkerName'](_0x4d8b67['markerName']);return{'classes':['ck-suggestion-marker',_0xa9754b(_0x37138e,_0x135b5a)],'priority':0xbb8};}});const _0x2ad1f4=({showActiveMarkers:_0x2f3b8b=!0x0,isAttributeSuggestion:_0x3957ca=!0x1}={})=>(_0x2c80fd,_0x1912a7,_0x52dfe2)=>{if(!_0x1912a7['item'])return;const {id:_0x3129f5}=this['_splitMarkerName'](_0x1912a7['markerName']);if(_0x3957ca){const _0x53ff53=this['_suggestions']['get'](_0x3129f5),_0x1d17a3=this['_getAttributeKey'](_0x53ff53);if(!this['_isBlockAttribute'](_0x1d17a3))return;}if(_0x1912a7['item']['is']('selection'))return void _0x52dfe2['consumable']['consume'](_0x1912a7['item'],_0x2c80fd['name']);const _0x292052=_0x52dfe2['mapper']['toViewElement'](_0x1912a7['item']);if(_0x1912a7['item']['is']('element')&&_0x4a0c55['model']['schema']['isBlock'](_0x1912a7['item'])&&!_0x292052['getCustomProperty']('addHighlight')){_0x52dfe2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x292052),_0x52dfe2['writer']['setAttribute']('data-suggestion',_0x3129f5,_0x292052),_0x52dfe2['mapper']['bindElementToMarker'](_0x292052,_0x1912a7['markerName']),_0x2f3b8b&&(this['activeMarkers']['includes'](_0x1912a7['markerName'])?_0x52dfe2['writer']['addClass']('ck-suggestion-marker--active',_0x292052):_0x52dfe2['writer']['removeClass']('ck-suggestion-marker--active',_0x292052));for(const _0x44d8f1 of _0x4a0c55['model']['createRangeIn'](_0x1912a7['item'])['getItems']())_0x52dfe2['consumable']['consume'](_0x44d8f1,_0x2c80fd['name']);_0x52dfe2['consumable']['consume'](_0x1912a7['item'],_0x2c80fd['name']);}};_0x4a0c55['conversion']['for']('dataDowncast')['add'](_0xe5fb3b=>{_0xe5fb3b['on']('addMarker:suggestion:formatBlock',(_0x3c19b5,_0x5ac875,_0x2d6c34)=>{_0x2d6c34['options']['showSuggestionHighlights']&&_0x2ad1f4({'showActiveMarkers':!0x1})(_0x3c19b5,_0x5ac875,_0x2d6c34);},{'priority':'highest'});}),_0x4a0c55['conversion']['for']('dataDowncast')['add'](_0x2f5a9f=>{_0x2f5a9f['on']('addMarker:suggestion:attribute',(_0x52a67b,_0x478b35,_0x1e4d07)=>{_0x1e4d07['options']['showSuggestionHighlights']&&_0x2ad1f4({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x52a67b,_0x478b35,_0x1e4d07);},{'priority':'highest'});}),_0x4a0c55['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x51852b,_0x54cec7)=>_0x54cec7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x51852b['substr'](0xb)}}),_0x4a0c55['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1e8cc6,{writer:_0x495d25})=>{let _0x36fb8b='suggestion:'+_0x1e8cc6['getAttribute']('suggestion-type')+':'+_0x1e8cc6['getAttribute']('id');return _0x1e8cc6['getAttribute']('marker-count')&&(_0x36fb8b+=':'+_0x1e8cc6['getAttribute']('marker-count')),_0x495d25['createElement']('$marker',{'data-name':_0x36fb8b});}}),_0x4a0c55['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a0c55['conversion']['for']('editingDowncast')['add'](_0x127993=>{_0x127993['on']('addMarker:suggestion:formatBlock',_0x2ad1f4(),{'priority':'high'});}),_0x4a0c55['conversion']['for']('editingDowncast')['add'](_0xccf5da=>{_0xccf5da['on']('addMarker:suggestion:attribute',_0x2ad1f4({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a0c55['conversion']['for']('editingDowncast')['add'](_0x4fef3b=>{_0x4fef3b['on']('removeMarker:suggestion:formatBlock',(_0x521a26,_0x3b2c6e,_0x4a75d8)=>{const _0x1a7a5b=_0x4a75d8['mapper']['markerNameToElements'](_0x3b2c6e['markerName']);if(_0x1a7a5b){for(const _0x44859c of _0x1a7a5b)_0x44859c['getCustomProperty']('addHighlight')||(_0x4a75d8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44859c),_0x4a75d8['writer']['removeAttribute']('data-suggestion',_0x44859c),_0x4a75d8['mapper']['unbindElementFromMarkerName'](_0x44859c,_0x3b2c6e['markerName']));}},{'priority':'high'});}),_0x4a0c55['conversion']['for']('editingDowncast')['add'](_0x2f446b=>{_0x2f446b['on']('removeMarker:suggestion:attribute',(_0x1c4807,_0x572c8f,_0x511d3d)=>{const _0x21743b=_0x511d3d['mapper']['markerNameToElements'](_0x572c8f['markerName']);if(!_0x21743b)return;const {id:_0x5be135}=this['_splitMarkerName'](_0x572c8f['markerName']),_0x1d2341=this['_suggestions']['get'](_0x5be135),_0x3abb34=this['_getAttributeKey'](_0x1d2341);if(this['_isBlockAttribute'](_0x3abb34)){for(const _0x3fb957 of _0x21743b)_0x3fb957['getCustomProperty']('addHighlight')||(_0x511d3d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3fb957),_0x511d3d['writer']['removeAttribute']('data-suggestion',_0x3fb957),_0x511d3d['mapper']['unbindElementFromMarkerName'](_0x3fb957,_0x572c8f['markerName']));}},{'priority':'high'});}),_0x4a0c55['model']['document']['registerPostFixer'](_0x28de2d=>{let _0x325cb0=!0x1;const _0x515286=Array['from'](_0x4a0c55['model']['document']['differ']['getChangedMarkers']()),_0x1ba7be=new Set();for(const {name:_0x2ae303,data:_0xf6ad25}of _0x515286){const {group:_0x122caf,type:_0x466146,subType:_0x3fd44e,id:_0x494959}=this['_splitMarkerName'](_0x2ae303);if('suggestion'!==_0x122caf)continue;const _0x2d6282=this['_suggestions']['get'](_0x494959);if(null!=_0xf6ad25['newRange']){'formatInline'==_0x466146&&(_0x325cb0=_0x325cb0||Et(_0xf6ad25['newRange'],_0x2ae303,_0x28de2d,_0x4a0c55['model']['schema']));const _0x5c98bd='attribute'==_0x466146&&this['_isBlockAttribute'](_0x3fd44e['split']('|')[0x0]);if(_0xf6ad25['newRange']['isCollapsed']||'$graveyard'==_0xf6ad25['newRange']['root']['rootName']||'formatBlock'==_0x466146&&!Ut(_0xf6ad25['newRange'])||_0x5c98bd&&!Ut(_0xf6ad25['newRange'])||'deletion'==_0x466146&&!(!Tt(_0x39d5f2=_0xf6ad25['newRange'])&&!function(_0x3494a8){return _0x3494a8['start']['parent']==_0x3494a8['end']['nodeBefore']&&_0x3494a8['start']['isAtEnd'];}(_0x39d5f2)))_0x28de2d['removeMarker'](_0x2ae303),_0x325cb0=!0x0;else{if(!_0x2d6282||!_0x2d6282['isInContent'])continue;_0x1ba7be['add'](_0x2d6282);}}}var _0x39d5f2;return _0x1ba7be['size']>0x0&&(_0x325cb0=!!this['_joinWithAdjacentSuggestions'](_0x1ba7be)||_0x325cb0),_0x325cb0;}),_0x4a0c55['model']['document']['registerPostFixer'](_0x23a570=>{let _0x3b3884=!0x1;for(const _0x352c45 of _0x4a0c55['model']['document']['differ']['getChanges']())if('insert'==_0x352c45['type'])for(const _0x93fcad of this['_suggestions']['values']()){if(_0x93fcad['isMultiRange']||!_0x93fcad['isInContent'])continue;const _0xa87097='formatBlock'==_0x93fcad['type'],_0x1def8b=this['_getAttributeKey'](_0x93fcad),_0x337433=_0x1def8b&&this['_isBlockAttribute'](_0x1def8b);if(!_0xa87097&&!_0x337433)continue;const _0x3bbe68=_0x93fcad['getFirstRange']();if(_0x3bbe68['start']['parent']!=_0x3bbe68['end']['parent']&&!_0x3bbe68['end']['isAtEnd']){const _0x4efc05=_0x4a0c55['model']['createPositionAt'](_0x3bbe68['start']['nodeAfter'],'end'),_0x4e7589=_0x4a0c55['model']['createRange'](_0x3bbe68['start'],_0x4efc05);_0x23a570['updateMarker'](_0x93fcad['getFirstMarker'](),{'range':_0x4e7589}),_0x3b3884=!0x0;}}return _0x3b3884;}),_0x4a0c55['model']['document']['registerPostFixer'](_0x2a6fb9=>this['_processAttributeChanges'](_0x2a6fb9)),_0x4a0c55['model']['document']['registerPostFixer'](_0x3411fd=>!_0x3411fd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3411fd)),_0x4a0c55['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a0c55['model']['document']['on']('change:data',(_0xfc9b0d,_0x5e58f9)=>{if(!_0x5e58f9['isLocal']||_0x5e58f9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x184dd8=_0x4a0c55['model']['document']['differ']['getChanges']();if(0x0==_0x184dd8['length'])return;const _0x548002=[],_0x4b62cf=_0x184dd8['filter'](_0x53c831=>'attribute'==_0x53c831['type']),_0x3f51ed=_0x184dd8['filter'](_0xba0717=>'insert'==_0xba0717['type']&&'$text'!=_0xba0717['name']);for(const _0x4ebf01 of _0x4b62cf)this['_isRegisteredAttribute'](_0x4ebf01['attributeKey'])&&_0x548002['push']({'key':_0x4ebf01['attributeKey'],'newValue':_0x4ebf01['attributeNewValue'],'oldValue':_0x4ebf01['attributeOldValue'],'range':Ot(_0x4ebf01['range'],_0x4a0c55['model'])});for(const _0x47a1ef of _0x3f51ed){if('rename'!=_0x47a1ef['action']&&'refresh'!=_0x47a1ef['action'])continue;const _0xe1b1b9=Gt(_0x47a1ef['position']['nodeAfter'],_0x4a0c55['model']),_0x3e28e7=_0x47a1ef['before'];'rename'==_0x47a1ef['action']&&_0x548002['push']({'key':m,'newValue':_0x47a1ef['name'],'oldValue':_0x3e28e7['name'],'range':_0xe1b1b9});for(const [_0x5d445f,_0x1d64a4]of _0x3e28e7['attributes']){if(!this['_isRegisteredAttribute'](_0x5d445f))continue;const _0x351872=_0x47a1ef['attributes']['get'](_0x5d445f);_0x1d64a4!==_0x351872&&_0x548002['push']({'key':_0x5d445f,'newValue':_0x351872,'oldValue':_0x1d64a4,'range':_0xe1b1b9});}for(const [_0x5d6541,_0x39e6c9]of _0x47a1ef['attributes'])this['_isRegisteredAttribute'](_0x5d6541)&&(_0x3e28e7['attributes']['has'](_0x5d6541)||_0x548002['push']({'key':_0x5d6541,'newValue':_0x39e6c9,'oldValue':null,'range':_0xe1b1b9}));}0x0!=_0x548002['length']&&_0x4a0c55['model']['enqueueChange'](_0x5e58f9,_0x192631=>{const _0x374336=_0x50a7b0();for(const {range:_0x5850bd,key:_0x530bfb,oldValue:_0x48300f,newValue:_0x23a1fa}of _0x548002)this['markAttributeChange'](_0x5850bd,_0x530bfb,_0x48300f,_0x23a1fa,{'groupId':_0x374336});this['_reduceExistingSuggestions'](_0x192631,_0x548002);});},{'priority':'lowest'}),_0x4a0c55['model']['markers']['on']('update:suggestion',(_0x17c45e,_0x5bccee,_0x3892f9)=>{if(null==_0x3892f9){const {id:_0x550da7}=this['_splitMarkerName'](_0x5bccee['name']),_0x2413bc=this['_suggestions']['get'](_0x550da7);_0x2413bc&&_0x2413bc['addMarkerName'](_0x5bccee['name']);}}),_0x4a0c55['model']['document']['on']('change:data',()=>{const _0x3ce96f=Array['from'](_0x4a0c55['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1b0ac6=>'suggestion'===this['_splitMarkerName'](_0x1b0ac6['name'])['group']);if(0x0===_0x3ce96f['length'])return;_0x3ce96f['sort']((_0x2c59fe,_0x2f9de5)=>{const _0x72ce95=_0x2c59fe['data']['oldRange'],_0x32fadb=_0x2f9de5['data']['oldRange'];return null===_0x72ce95&&null===_0x32fadb?0x0:null===_0x72ce95&&null!==_0x32fadb?-0x1:null!==_0x72ce95&&null===_0x32fadb?0x1:_0x72ce95['start']['isBefore'](_0x32fadb['start'])?-0x1:0x1;});const _0x5085b6=new Set(),_0x1859fb=new Set();for(const {name:_0x39c9f2,data:_0x3fd9c1}of _0x3ce96f){const {id:_0x3aaa7f}=this['_splitMarkerName'](_0x39c9f2);if(null===_0x3fd9c1['oldRange']){const _0x1d90f6=this['_handleNewSuggestionMarker'](_0x39c9f2);_0x1859fb['add'](_0x1d90f6);}else{const _0x41fcaa=this['_suggestions']['get'](_0x3aaa7f);null!==_0x3fd9c1['newRange']||_0x41fcaa['isInContent']?(_0x5085b6['add'](_0x41fcaa['head']),_0x1859fb['add'](_0x41fcaa)):this['_removeSuggestion'](_0x41fcaa);}}_0x1859fb['size']>0x0&&this['_refreshSuggestionsChain'](_0x1859fb);for(const _0x29a725 of _0x5085b6)this['fire']('suggestionChanged',_0x29a725);}),_0x4a0c55['model']['on']('applyOperation',(_0x29c197,_0x5f465f)=>{const _0x2fb9b1=_0x5f465f[0x0];if(!this['_suggestions']['size'])return;if(!_0x2fb9b1['isDocumentOperation'])return;if(_0x2fb9b1['batch']['isUndo']||!_0x2fb9b1['batch']['isLocal'])return;let _0x99286f,_0x333677;switch(_0x2fb9b1['type']){case'insert':_0x99286f=_0x4a0c55['model']['createPositionAt'](_0x2fb9b1['position']),_0x333677=_0x99286f['getShiftedBy'](_0x2fb9b1['howMany']);break;case'split':_0x99286f=_0x4a0c55['model']['createPositionAt'](_0x2fb9b1['splitPosition']),_0x333677=_0x4a0c55['model']['createPositionAt'](_0x2fb9b1['moveTargetPosition']);break;case'move':_0x99286f=_0x4a0c55['model']['createPositionAt'](_0x2fb9b1['targetPosition']),_0x333677=_0x99286f['getShiftedBy'](_0x2fb9b1['howMany']);break;default:return;}const _0x18cfd6=_0x4a0c55['model']['createRange'](_0x99286f,_0x333677);_0x4a0c55['model']['change'](()=>{for(const {suggestion:_0x442772,meta:_0x36e087}of this['_findSuggestions'](_0x18cfd6)){if(_0x442772['isMultiRange'])continue;if('formatInline'==_0x442772['type'])continue;const _0x26066e=this['_getAttributeKey'](_0x442772);if(_0x26066e&&this['_isBlockAttribute'](_0x26066e)&&'split'!=_0x2fb9b1['type'])continue;const _0x3d610c=_0x442772['data']&&_0x442772['data']['multipleBlocks'];('formatBlock'!=_0x442772['type']||'split'==_0x2fb9b1['type']&&!_0x3d610c)&&(_0x36e087['containsRangeInObject']||'insertion'==_0x442772['type']&&_0x36e087['isOwn']||_0x442772['getFirstRange']()['containsRange'](_0x18cfd6)&&this['_breakSuggestionMarker'](_0x442772,_0x99286f,_0x333677));}});},{'priority':'lowest'}),_0x4a0c55['model']['on']('deleteContent',(_0x587fe5,_0x1bd6f2)=>{const _0x9843b7=_0x1bd6f2[0x0],_0x546b94=_0x1bd6f2[0x1];if(_0x546b94&&_0x546b94['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x9843b7['isCollapsed'])return;const _0xd895b7=_0x4a0c55['model']['schema'],{start:_0x1ee6c2,end:_0x161f0f}=_0x9843b7['getFirstRange'](),_0x5b1ec1=_0x1ee6c2['nodeAfter']&&_0xd895b7['isLimit'](_0x1ee6c2['nodeAfter'])?null:_0xd895b7['getNearestSelectionRange'](_0x1ee6c2,'forward'),_0x228b84=_0x161f0f['nodeBefore']&&_0xd895b7['isLimit'](_0x161f0f['nodeBefore'])?null:_0xd895b7['getNearestSelectionRange'](_0x161f0f,'backward'),_0x5bddba=_0x4a0c55['model']['createRange'](_0x5b1ec1?_0x5b1ec1['start']:_0x1ee6c2,_0x228b84?_0x228b84['end']:_0x161f0f);_0x4a0c55['model']['change'](_0x13ac4f=>{this['markDeletion'](_0x5bddba);const _0x594435=_0x4a0c55['model']['schema']['getNearestSelectionRange'](_0x5bddba['start']);_0x9843b7['is']('documentSelection')?_0x13ac4f['setSelection'](_0x594435):_0x9843b7['setTo'](_0x594435);}),_0x587fe5['stop']();},{'priority':_0x362a86['normal']+0xa}),_0x4a0c55['model']['on']('insertContent',(_0x22cfc5,_0x1c7c7b)=>{const _0x522735=_0x1c7c7b[_0x1c7c7b['length']-0x1];_0x522735&&_0x522735['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a0c55['model']['change'](()=>{let _0x31a45e=_0x4a0c55['model']['insertContent'](_0x1c7c7b[0x0],_0x1c7c7b[0x1],_0x1c7c7b[0x2],{'forceDefaultExecution':!0x0});if(!_0x31a45e)return;_0x22cfc5['return']=_0x31a45e['clone']();const _0x2193a4=_0x31a45e['end']['nodeBefore'],_0x5b6e8a=_0x4a0c55['model']['schema'];_0x2193a4&&_0x5b6e8a['isBlock'](_0x2193a4)&&!_0x5b6e8a['isObject'](_0x2193a4)&&(_0x31a45e=_0x4a0c55['model']['createRange'](_0x31a45e['start'],_0x4a0c55['model']['createPositionAt'](_0x2193a4,'end'))),this['markInsertion'](_0x31a45e);}),_0x22cfc5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4f6f17=new $(_0x4a0c55,this['_suggestions']);_0x4a0c55['commands']['add']('acceptSuggestion',_0x4f6f17),this['enableCommand']('acceptSuggestion');const _0xa37b45=new B(_0x4a0c55,this['_suggestions']);_0x4a0c55['commands']['add']('discardSuggestion',_0xa37b45),this['enableCommand']('discardSuggestion'),_0x4a0c55['commands']['add']('acceptAllSuggestions',new x(_0x4a0c55,_0x4f6f17,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a0c55['commands']['add']('discardAllSuggestions',new x(_0x4a0c55,_0xa37b45,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a0c55['commands']['add']('acceptSelectedSuggestions',new R(_0x4a0c55,_0x4f6f17,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a0c55['commands']['add']('discardSelectedSuggestions',new R(_0x4a0c55,_0xa37b45,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3e42e9=_0x4a0c55['plugins']['get']('CommentsRepository');this['listenTo'](_0x3e42e9,'addComment',(_0x4a57da,{threadId:_0x4fe9b4})=>{const _0x1765da=this['_suggestions']['get'](_0x4fe9b4);_0x1765da&&_0x1765da['commentThread']&&0x1===_0x1765da['commentThread']['length']&&this['_updateSuggestionData'](_0x4fe9b4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3e42e9,'removeComment',(_0x51d633,{threadId:_0x5c162a})=>{const _0x48404a=this['_suggestions']['get'](_0x5c162a);_0x48404a&&_0x48404a['commentThread']&&!_0x48404a['commentThread']['length']&&this['_updateSuggestionData'](_0x5c162a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x46545b){if(this['_adapter'])throw new _0x4a1ebc('track-changes-adapter-already-set',this);this['_adapter']=_0x46545b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x52091d=!0x1,toJSON:_0x20ace9=!0x1}={}){const _0x3c2625=[];for(const _0x583171 of this['_suggestions']['values']())_0x52091d&&!_0x583171['isInContent']||_0x3c2625['push'](_0x583171);return _0x20ace9?_0x3c2625['map'](_0x5d93b2=>_0x5d93b2['toJSON']()):_0x3c2625;}['getSuggestion'](_0x441be2){const _0x2bc6f2=this['_suggestions']['get'](_0x441be2);if(!_0x2bc6f2)throw new _0x4a1ebc('track-changes-suggestion-not-found',this);return _0x2bc6f2;}['hasSuggestion'](_0x5c3570){return this['_suggestions']['has'](_0x5c3570);}['addSuggestionData'](_0x3725e9){const {authorId:_0x537b90,id:_0x99089b,attributes:_0xf76745}=_0x3725e9,[_0x237982,_0x5db3ac]=_0x3725e9['type']['split'](':'),_0x5e7e48=this['_suggestions']['get'](_0x99089b)||this['_createSuggestion'](_0x237982,_0x5db3ac,_0x99089b,_0x537b90,_0xf76745);if(this['_addThreadToSuggestion'](_0x5e7e48),this['_checkSuggestionCorrectness'](_0x5e7e48,_0x237982,_0x5db3ac||null,_0x537b90),_0x5e7e48['createdAt']=_0x3725e9['createdAt'],_0x5e7e48['_isDataLoaded']=!0x0,_0xf76745&&_0xf76745['@external']){const _0x1e6cad=_0xf76745['@external'],_0xe8440d=this['_getExternalAuthor'](_0x1e6cad['authorName']);_0x5e7e48['authoredAt']=_0x1e6cad['createdAt'],_0x5e7e48['author']=_0xe8440d,_0x5e7e48['isExternal']=!0x0;}else _0x5e7e48['authoredAt']=_0x3725e9['createdAt'];switch(_0x3725e9['data']&&(_0x5e7e48['data']=_0x3725e9['data']),_0x3725e9['attributes']&&(_0x5e7e48['attributes']=_0x3725e9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5e7e48['_saved']=!0x0),this['_suggestionState']['get'](_0x5e7e48)){case'notReady':this['_suggestionState']['set'](_0x5e7e48,'dataReady');break;case'markerReady':_0x5e7e48['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5e7e48])),this['_refreshSuggestionsChain'](new Set([_0x5e7e48])),this['_suggestionState']['set'](_0x5e7e48,'ready'),this['fire']('suggestionLoaded',_0x5e7e48)):this['_suggestionState']['set'](_0x5e7e48,'removed');}return _0x5e7e48;}['acceptSuggestion'](_0x1c2e9a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x245682 of _0x1c2e9a['getAllAdjacentSuggestions']())_0x245682['accept']();});});}['discardSuggestion'](_0x22d3d2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c18f7 of _0x22d3d2['getAllAdjacentSuggestions']())_0x1c18f7['discard']();});});}['enableCommand'](_0x2d8096,_0x44845b){const _0x5f3f63=this['editor']['commands']['get'](_0x2d8096);if(!_0x5f3f63)throw new _0x4a1ebc('track-changes-command-not-found',this,{'commandName':_0x2d8096});if(this['_enabledCommands']['has'](_0x5f3f63))throw new _0x4a1ebc('track-changes-enable-command-twice',this,{'commandName':_0x2d8096});this['_enabledCommands']['add'](_0x5f3f63),_0x44845b&&_0x5f3f63['on']('execute',(_0x346651,_0x4f6664)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4f6664['length']>0x0&&_0x4f6664[_0x4f6664['length']-0x1]&&_0x4f6664[_0x4f6664['length']-0x1]['forceDefaultExecution']?_0x4f6664['pop']():(_0x346651['return']=_0x44845b((..._0x457c19)=>_0x5f3f63['execute'](..._0x457c19,{'forceDefaultExecution':!0x0}),..._0x4f6664),_0x346651['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x554b2f){let _0x1bb374,_0x47e5a5;const _0x17284d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1bb374=_0x554b2f();}catch(_0x17699f){_0x47e5a5=_0x17699f;}return _0x17284d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x47e5a5&&_0x4a1ebc['rethrowUnexpectedError'](_0x47e5a5,this),_0x1bb374;}['markInsertion'](_0x3619f7,_0x1464f7=null,_0x16ee5a={}){if(_0x3619f7['isCollapsed'])return null;const _0xd46d59=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x498ad7,meta:_0x46c42f}of this['_findSuggestions'](_0x3619f7,'insertion'))if(_0x46c42f['isOwn']){if(!_0x46c42f['isNextTo']){if(_0x46c42f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x498ad7,_0x16ee5a))continue;return _0x498ad7;}if(Lt(_0x498ad7,_0x16ee5a))return _0x498ad7;this['_breakSuggestionMarker'](_0x498ad7,_0x3619f7['start'],_0x3619f7['end']);break;}if(_0x1464f7==_0x498ad7['subType']&&Lt(_0x498ad7,_0x16ee5a)){const _0x3d0664=_0x498ad7['getFirstRange']();return _0x3d0664['start']['isEqual'](_0x3619f7['end'])?this['_setSuggestionRange'](_0x498ad7,this['_model']['createRange'](_0x3619f7['start'],_0x3d0664['end'])):this['_setSuggestionRange'](_0x498ad7,this['_model']['createRange'](_0x3d0664['start'],_0x3619f7['end'])),_0x498ad7;}}const _0xb3f79d=_0x50a7b0(),_0x2b4aa6=_0xd46d59['id'],_0x182ff2=_0x1464f7?'insertion:'+_0x1464f7:'insertion',_0x27ec42=this['_setSuggestionData']({'id':_0xb3f79d,'type':_0x182ff2,'createdAt':new Date(),'authorId':_0x2b4aa6,'attributes':_0x16ee5a});return this['_addSuggestionMarker'](_0x182ff2,_0xb3f79d,_0x2b4aa6,_0x3619f7),_0x27ec42;}['markMultiRangeInsertion'](_0x4d49e1,_0x329f5d='multi',_0x2f463e={}){const _0x2be05a=this['editor']['plugins']['get']('Users')['me'],_0x17444d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x329f5d,'join');for(const _0x3e924d of this['getSuggestions']())if(_0x3e924d['author']['id']==_0x2be05a['id']&&'insertion'==_0x3e924d['type']&&_0x3e924d['subType']==_0x329f5d&&Lt(_0x3e924d,_0x2f463e)&&(_0x17444d(_0x3e924d['getRanges'](),_0x4d49e1)||_0x17444d(_0x4d49e1,_0x3e924d['getRanges']()))){for(const _0x296ab6 of _0x4d49e1)_0x3e924d['addRange'](_0x296ab6);return _0x3e924d;}for(const {suggestion:_0x3dfca1,meta:_0x5485e6}of this['_findSuggestions'](_0x4d49e1,'insertion')){if(!_0x5485e6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5485e6['containsRangeInObject'])continue;if(!Lt(_0x3dfca1,_0x2f463e))continue;let _0x554f98=!0x0;for(const _0x110cd8 of _0x3dfca1['getRanges']())for(const _0x38bbaa of _0x4d49e1)if(!_0x110cd8['containsRange'](_0x38bbaa)){_0x554f98=!0x1;break;}if(_0x554f98)return _0x3dfca1;}const _0x3f2e26=_0x50a7b0(),_0x3d3a1c=_0x2be05a['id'],_0x151b36='insertion:'+_0x329f5d,_0x4a01f3=this['_setSuggestionData']({'id':_0x3f2e26,'type':_0x151b36,'createdAt':new Date(),'authorId':_0x3d3a1c,'attributes':_0x2f463e});for(const _0x3af2d3 of _0x4d49e1)this['_addSuggestionMarker'](_0x151b36,_0x3f2e26,_0x3d3a1c,_0x3af2d3,u['getMultiRangeId']());return _0x4a01f3;}['markInlineFormat'](_0x21e90b,_0x1472ad,_0x465208=null,_0xccf49c={}){if(_0x465208=_0x465208||Vt(_0x1472ad),_0x21e90b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xa11d9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x465208,'accept');return this['forceDefaultExecution'](()=>_0xa11d9([_0x21e90b],_0x1472ad,_0xccf49c)),null;}const _0x143974=this['editor']['plugins']['get']('Users')['me'],_0x2879cd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x24dd6d,meta:_0x2b374d}of this['_findSuggestions'](_0x21e90b,'insertion'))_0x2b374d['isOwn']&&!_0x2b374d['isInsideObject']&&_0x2879cd['push'](..._0x24dd6d['getRanges']());}const _0x4d2b7f=function(_0x37b099,_0x5a8b44){const _0x1d4c58=[];for(const _0x27ee13 of _0x5a8b44){const _0x303035=_0x37b099['getIntersection'](_0x27ee13);_0x303035&&_0x1d4c58['push'](_0x303035);}return _0x1d4c58;}(_0x21e90b,_0x2879cd),_0xa5df0a=function(_0x2e0e57,_0x597d02){const _0x27164=[_0x2e0e57];for(const _0x1d8193 of _0x597d02){let _0x45693c=0x0;for(;_0x45693c<_0x27164['length'];){const _0x29b561=_0x27164[_0x45693c]['getDifference'](_0x1d8193);_0x27164['splice'](_0x45693c,0x1,..._0x29b561),_0x45693c+=_0x29b561['length'];}}return _0x27164;}(_0x21e90b,_0x2879cd);_0x4d2b7f['length']&&this['_model']['change'](()=>{for(const _0x4ec9a8 of _0x4d2b7f){const _0x366a41=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x465208,'accept');this['forceDefaultExecution'](()=>_0x366a41([_0x4ec9a8],_0x1472ad,_0xccf49c));}});for(const _0x436c9d of _0xa5df0a){let _0x47b8c1=null,_0xa6b405=_0x436c9d['start'],_0x460bac=_0x436c9d['end'];for(const {suggestion:_0x3fb1db,meta:_0x1501ff}of this['_findSuggestions'](_0x436c9d,'formatInline')){if(!_0x1501ff['isOwn'])continue;if(_0x3fb1db['subType']!=_0x465208)continue;if(!Lt(_0x3fb1db,_0xccf49c))continue;const _0x242f4b=_0x3fb1db['getFirstRange']();if(_0x242f4b['containsRange'](_0x436c9d,!0x0))return null;_0xa6b405=_0xa6b405['isBefore'](_0x242f4b['start'])?_0xa6b405:_0x242f4b['start'],_0x460bac=_0x460bac['isAfter'](_0x242f4b['end'])?_0x460bac:_0x242f4b['end'],_0x47b8c1?_0x242f4b['start']['isBefore'](_0x47b8c1['getFirstRange']()['start'])?(_0x47b8c1['removeMarkers'](),_0x47b8c1=_0x3fb1db):_0x3fb1db['removeMarkers']():_0x47b8c1=_0x3fb1db;}const _0x10214b=this['_model']['createRange'](_0xa6b405,_0x460bac);if(_0x47b8c1)this['_setSuggestionRange'](_0x47b8c1,_0x10214b);else{const _0xdeda04=_0x50a7b0(),_0xaf9895=_0x143974['id'];this['_setSuggestionData']({'id':_0xdeda04,'type':'formatInline:'+_0x465208,'data':_0x1472ad,'createdAt':new Date(),'authorId':_0xaf9895,'attributes':_0xccf49c}),this['_addSuggestionMarker']('formatInline:'+_0x465208,_0xdeda04,_0xaf9895,_0x10214b);}}return null;}['markBlockFormat'](_0x3f61a7,_0x509c04,_0x47d6f7=[],_0x5e5291=null,_0x16d072={}){_0x509c04['formatGroupId']||(_0x509c04['formatGroupId']=_0x509c04['commandName']),_0x509c04['multipleBlocks']=_0x3f61a7['is']('range'),_0x5e5291=_0x5e5291||Vt(_0x509c04);const _0x4079a3=_0x47d6f7['map'](_0x434638=>Gt(_0x434638,this['_model'])),_0x12eda9=_0x3f61a7['is']('range')?_0x3f61a7:Gt(_0x3f61a7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x911449=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5291,'accept');return this['forceDefaultExecution'](()=>_0x911449([_0x12eda9],_0x509c04,_0x16d072)),null;}_0x4079a3['push'](_0x12eda9);let _0x1f71cf=!0x0;for(const _0x4ab040 of _0x4079a3)if(!this['_rangeIsInLocalUserInsertion'](_0x4ab040)){_0x1f71cf=!0x1;break;}if(_0x1f71cf&&'always'!==this['_trackFormatChanges']){const _0x476142=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5291,'accept');return this['forceDefaultExecution'](()=>_0x476142([_0x12eda9],_0x509c04,_0x16d072)),null;}let _0x1ae988=null,_0xb7d262=_0x12eda9['start'],_0x8fcfe6=_0x12eda9['end'];for(const {suggestion:_0x341d86,meta:_0x1604f2}of this['_findSuggestions'](_0x12eda9,'formatBlock')){if(!_0x1604f2['isOwn'])continue;if(_0x1604f2['isNextTo']||_0x1604f2['containsRangeInObject']||_0x1604f2['isInsideObject'])continue;if(_0x341d86['data']['formatGroupId']!=_0x509c04['formatGroupId'])continue;if(!Lt(_0x341d86,_0x16d072))continue;const _0x1f6316=_0x341d86['getFirstRange']();if(_0x341d86['subType']==_0x5e5291){if(_0x1f6316['containsRange'](_0x12eda9,!0x0))return null;_0xb7d262=_0xb7d262['isBefore'](_0x1f6316['start'])?_0xb7d262:_0x1f6316['start'],_0x8fcfe6=_0x8fcfe6['isAfter'](_0x1f6316['end'])?_0x8fcfe6:_0x1f6316['end'],_0x1ae988?_0x1f6316['start']['isBefore'](_0x1ae988['getFirstRange']()['start'])?(_0x1ae988['removeMarkers'](),_0x1ae988=_0x341d86):_0x341d86['removeMarkers']():_0x1ae988=_0x341d86;}else{const _0x599c10=_0x12eda9['getIntersection'](_0x1f6316);this['_cutOutSuggestionMarker'](_0x341d86,_0x599c10);}}const _0x346d50=this['editor']['plugins']['get']('Users')['me'],_0x3b8d34=_0x50a7b0(),_0xc60f45=_0x346d50['id'];if(_0x1ae988)return this['_setSuggestionRange'](_0x1ae988,this['_model']['createRange'](_0xb7d262,_0x8fcfe6)),_0x1ae988;{const _0x4f3d6a=this['_setSuggestionData']({'id':_0x3b8d34,'type':'formatBlock:'+_0x5e5291,'data':_0x509c04,'createdAt':new Date(),'authorId':_0xc60f45,'attributes':_0x16d072});return this['_addSuggestionMarker']('formatBlock:'+_0x5e5291,_0x3b8d34,_0xc60f45,this['_model']['createRange'](_0xb7d262,_0x8fcfe6)),_0x4f3d6a;}}['markMultiRangeBlockFormat'](_0x58234e,_0x4d2912,_0x2171c1=[],_0x42a757=null,_0x2ded9e={}){_0x4d2912['formatGroupId']||(_0x4d2912['formatGroupId']=_0x4d2912['commandName']);const _0xbe27f9=_0x58234e[0x0];_0x4d2912['multipleBlocks']=_0xbe27f9['is']('range'),_0x42a757=_0x42a757||Vt(_0x4d2912);const _0xe209cc=_0x2171c1['map'](_0x567d71=>Gt(_0x567d71,this['_model'])),_0x22b25e=_0xbe27f9['is']('range')?_0x58234e:_0x58234e['map'](_0x4d321a=>Gt(_0x4d321a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x372d22=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42a757,'accept');return this['forceDefaultExecution'](()=>_0x372d22(_0x22b25e,_0x4d2912,_0x2ded9e)),null;}_0xe209cc['push'](..._0x22b25e);let _0x2cb54c=!0x0;for(const _0x110dfa of _0xe209cc)if(!this['_rangeIsInLocalUserInsertion'](_0x110dfa)){_0x2cb54c=!0x1;break;}if(_0x2cb54c&&'always'!==this['_trackFormatChanges']){const _0x1abcec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42a757,'accept');return this['forceDefaultExecution'](()=>_0x1abcec(_0x22b25e,_0x4d2912,_0x2ded9e)),null;}const _0x4944bc=this['editor']['plugins']['get']('Users')['me'];for(const _0x2ba24b of this['getSuggestions']()){if(_0x2ba24b['author']['id']!=_0x4944bc['id'])continue;if('formatBlock'!=_0x2ba24b['type']||_0x2ba24b['data']['formatGroupId']!=_0x4d2912['formatGroupId'])continue;if(!Lt(_0x2ba24b,_0x2ded9e))continue;const _0x415286=_0x2ba24b['subType']==_0x42a757;for(let _0x50b0ed=0x0;_0x50b0ed<_0x22b25e['length'];_0x50b0ed++){const _0x1cbbd9=_0x22b25e[_0x50b0ed];for(const _0xc10874 of _0x2ba24b['getMarkers']()){const _0x2a7c72=_0xc10874['getRange']();if(_0x1cbbd9['isEqual'](_0x2a7c72)){_0x415286?(_0x22b25e['splice'](_0x50b0ed,0x1),_0x50b0ed--):_0x2ba24b['removeMarker'](_0xc10874['name']);break;}}}}if(0x0==_0x22b25e['length'])return null;const _0x4fc308=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42a757,'join');for(const _0x2b7324 of this['getSuggestions']())if(_0x2b7324['author']['id']==_0x4944bc['id']&&'formatBlock'==_0x2b7324['type']&&_0x2b7324['data']['formatGroupId']==_0x4d2912['formatGroupId']&&_0x2b7324['subType']==_0x42a757&&Lt(_0x2b7324,_0x2ded9e)&&(_0x4fc308(_0x2b7324['getRanges'](),_0x22b25e)||_0x4fc308(_0x22b25e,_0x2b7324['getRanges']()))){for(const _0x22cf2a of _0x22b25e)_0x2b7324['addRange'](_0x22cf2a);return _0x2b7324;}const _0x2fdaa4=_0x50a7b0(),_0x2b476b=_0x4944bc['id'],_0x587cfc='formatBlock:'+_0x42a757,_0xb900f3=this['_setSuggestionData']({'id':_0x2fdaa4,'type':_0x587cfc,'data':_0x4d2912,'createdAt':new Date(),'authorId':_0x2b476b,'attributes':_0x2ded9e});for(const _0x3ba79e of _0x22b25e)this['_addSuggestionMarker'](_0x587cfc,_0x2fdaa4,_0x2b476b,_0x3ba79e,u['getMultiRangeId']());return _0xb900f3;}['markDeletion'](_0x5597d7,_0x5356d5=null,_0x516843={}){if(_0x5597d7['isCollapsed'])return null;const _0x1bf050=this['editor']['plugins']['get']('Users')['me'],_0x4c9740=new _0x1677da(_0x5597d7['start'],_0x5597d7['end']);for(const {suggestion:_0x172fc6,meta:_0x3e4261}of this['_findSuggestions'](_0x4c9740,'insertion'))if(_0x3e4261['isOwn']&&!_0x3e4261['isNextTo']){if(_0x172fc6['isMultiRange']){const _0x1ddacc=_0x172fc6['getRanges']()['filter'](_0x3680c7=>'$graveyard'!=_0x3680c7['root']['rootName']);_0x1ddacc['every'](_0x4f376e=>_0x4c9740['containsRange'](_0x4f376e,!0x0))&&_0x172fc6['discard']();if(_0x1ddacc['some'](_0x249b0d=>_0x249b0d['containsRange'](_0x4c9740,!0x0))){const _0xf45aca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5356d5,'accept');return this['forceDefaultExecution'](()=>_0xf45aca([_0x4c9740],null,_0x516843)),null;}}else{const _0x158e19=_0x4c9740['getIntersection'](_0x172fc6['getFirstRange']());null!==_0x158e19&&_0x172fc6['_onDiscard']([_0x158e19],null,_0x516843);}}if(_0x4c9740['detach'](),_0x4c9740['isCollapsed']||'$graveyard'==_0x4c9740['root']['rootName'])return null;let _0x5e07bb=null,_0x2b7d4b=_0x4c9740['start'],_0x243e3b=_0x4c9740['end'];const _0x1a5bdc=this['_findSuggestions'](_0x4c9740,'deletion');for(const {suggestion:_0x2bebec,meta:_0x5c8a99}of _0x1a5bdc){const _0x19e008=this['_model']['createRange'](_0x2b7d4b,_0x243e3b);if(_0x5c8a99['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c8a99['containsRangeInObject']&&!_0x5c8a99['isInsideObject'])){if(_0x2bebec['isMultiRange']){if(!Lt(_0x2bebec,_0x516843))continue;let _0x169d91=!0x0;for(const _0x460c36 of _0x2bebec['getRanges']()){if(_0x460c36['containsRange'](_0x19e008,!0x0))return _0x2bebec;_0x19e008['containsRange'](_0x460c36)||(_0x169d91=!0x1);}_0x169d91&&_0x2bebec['discard']();}else{const _0x48b4fc=_0x2bebec['getFirstRange']();if(_0x48b4fc['containsRange'](_0x19e008,!0x0))return _0x2bebec;if(!Lt(_0x2bebec,_0x516843)){_0x19e008['containsRange'](_0x48b4fc)?_0x2bebec['removeMarkers']():_0x48b4fc['containsPosition'](_0x2b7d4b)?_0x2b7d4b=_0x48b4fc['end']:_0x48b4fc['containsPosition'](_0x243e3b)&&(_0x243e3b=_0x48b4fc['start']);continue;}_0x2b7d4b=_0x2b7d4b['isBefore'](_0x48b4fc['start'])?_0x2b7d4b:_0x48b4fc['start'],_0x243e3b=_0x243e3b['isAfter'](_0x48b4fc['end'])?_0x243e3b:_0x48b4fc['end'],_0x516843=Object['assign']({},_0x2bebec['attributes']),_0x5e07bb?_0x48b4fc['start']['isBefore'](_0x5e07bb['getFirstRange']()['start'])?(_0x5e07bb['removeMarkers'](),_0x5e07bb=_0x2bebec):_0x2bebec['removeMarkers']():_0x5e07bb=_0x2bebec;}}}if(_0x5e07bb)return this['_setSuggestionRange'](_0x5e07bb,this['_model']['createRange'](_0x2b7d4b,_0x243e3b)),_0x5e07bb;{const _0x2d131d=_0x50a7b0(),_0x36058c=this['_model']['createRange'](_0x2b7d4b,_0x243e3b),_0x2f8c27=_0x1bf050['id'],_0x56383e=_0x5356d5?'deletion:'+_0x5356d5:'deletion',_0x4e6059=this['_setSuggestionData']({'id':_0x2d131d,'type':_0x56383e,'createdAt':new Date(),'authorId':_0x2f8c27,'attributes':_0x516843});return this['_addSuggestionMarker'](_0x56383e,_0x2d131d,_0x2f8c27,_0x36058c),_0x4e6059;}}['markMultiRangeDeletion'](_0x49d15c,_0x53fb3b='multi',_0x1cbf91={}){const _0x27e524=this['editor']['plugins']['get']('Users')['me'],_0x409ab1=_0x49d15c['map'](_0x5ab9d8=>new _0x1677da(_0x5ab9d8['start'],_0x5ab9d8['end'])),_0x40964e=new Set();for(const {suggestion:_0x7caab8,meta:_0x413a92}of this['_findSuggestions'](_0x409ab1,'insertion'))_0x413a92['isOwn']&&!_0x413a92['isNextTo']&&_0x40964e['add'](_0x7caab8);for(const _0x8f7a46 of _0x40964e)if(_0x8f7a46['isMultiRange']){const _0x4ef517=_0x8f7a46['getRanges']();(!_0x8f7a46['attributes']||!_0x8f7a46['attributes']['skipNestingCheck'])&&(_0x4ef517['every'](_0x43daf3=>_0x409ab1['some'](_0xcb4281=>_0xcb4281['containsRange'](_0x43daf3,!0x0)))&&_0x8f7a46['discard']());if(_0x409ab1['every'](_0x17e8d8=>_0x4ef517['some'](_0x5ca2b6=>_0x5ca2b6['containsRange'](_0x17e8d8,!0x0)))){const _0x49f51d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fb3b,'accept');return this['forceDefaultExecution'](()=>_0x49f51d(_0x49d15c,null,_0x1cbf91)),null;}}else{const _0x722e44=_0x8f7a46['getFirstRange']();_0x409ab1['some'](_0x26ea8f=>_0x26ea8f['containsRange'](_0x722e44,!0x0))&&_0x8f7a46['discard']();if(_0x409ab1['every'](_0x424440=>_0x722e44['containsRange'](_0x424440,!0x0))){const _0x51dafc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fb3b,'accept');return this['forceDefaultExecution'](()=>_0x51dafc(_0x409ab1,null,_0x1cbf91)),null;}}const _0x15d536=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fb3b,'join');let _0x9163de=null;for(const _0xa85cd3 of this['getSuggestions']())if(_0xa85cd3['author']['id']==_0x27e524['id']&&_0xa85cd3['isInContent']&&'deletion'==_0xa85cd3['type']&&_0xa85cd3['subType']==_0x53fb3b&&Lt(_0xa85cd3,_0x1cbf91)&&(_0x15d536(_0xa85cd3['getRanges'](),_0x409ab1)||_0x15d536(_0x409ab1,_0xa85cd3['getRanges']()))){if(_0x9163de){if(_0xa85cd3['commentThread']&&_0xa85cd3['commentThread']['length'])continue;for(const _0x4e35b1 of _0xa85cd3['getRanges']())_0x9163de['isIntersectingWithRange'](_0x4e35b1)||_0x9163de['addRange'](_0x4e35b1);_0xa85cd3['removeMarkers']();}else{_0x9163de=_0xa85cd3;for(const _0x35b2e8 of _0x409ab1)_0xa85cd3['isIntersectingWithRange'](_0x35b2e8)||_0xa85cd3['addRange'](_0x35b2e8);}}if(_0x9163de)return _0x9163de;_0x40964e['clear']();for(const {suggestion:_0x27279a,meta:_0x23a1b9}of this['_findSuggestions'](_0x409ab1,'deletion'))_0x23a1b9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x23a1b9['containsRangeInObject']&&!_0x23a1b9['isInsideObject'])&&Lt(_0x27279a,_0x1cbf91)&&_0x40964e['add'](_0x27279a);for(const _0x1f3416 of _0x40964e){const _0x11fc85=_0x1f3416['getRanges']();if(!_0x1cbf91||!_0x1cbf91['skipNestingCheck']){if(_0x409ab1['every'](_0x322d43=>_0x11fc85['some'](_0x587f9b=>_0x587f9b['containsRange'](_0x322d43,!0x0))))return _0x1f3416;}(!_0x1f3416['attributes']||!_0x1f3416['attributes']['skipNestingCheck'])&&(_0x11fc85['every'](_0x1323bc=>_0x409ab1['some'](_0x38e843=>_0x38e843['containsRange'](_0x1323bc,!0x0)))&&_0x1f3416['discard']());}const _0x2a3ca5=_0x50a7b0(),_0x531b1e=_0x27e524['id'],_0x450527='deletion:'+_0x53fb3b,_0x51346d=this['_setSuggestionData']({'id':_0x2a3ca5,'type':_0x450527,'createdAt':new Date(),'authorId':_0x531b1e,'attributes':_0x1cbf91});for(const _0x5587ff of _0x409ab1)_0x5587ff['detach'](),_0x5587ff['isCollapsed']||'$graveyard'==_0x5587ff['root']['rootName']||this['_addSuggestionMarker'](_0x450527,_0x2a3ca5,_0x531b1e,_0x5587ff,u['getMultiRangeId']());return _0x51346d;}['markAttributeChange'](_0x33f0b7,_0x634172,_0x15157d,_0x555713,_0x1d4563){if(_0x33f0b7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x24fa26=this['editor']['plugins']['get']('Users')['me']['id'],_0x5d27b2=Array['from'](this['_suggestions']['values']())['filter'](_0x5aa2d5=>'attribute'==_0x5aa2d5['type']&&_0x5aa2d5['data']['key']==_0x634172&&_0x5aa2d5['isIntersectingWithRange'](_0x33f0b7));if('default'===this['_trackFormatChanges']){const _0x16cde8=this['_findSuggestions'](_0x33f0b7,'insertion')['filter'](({meta:_0x5e1ec1})=>_0x5e1ec1['isOwn']&&!_0x5e1ec1['isInsideObject']&&!_0x5e1ec1['isNextTo'])['map'](({suggestion:_0x430cd7})=>_0x430cd7);_0x5d27b2['unshift'](..._0x16cde8);}const _0x559fab=new Map([[_0x33f0b7,_0x15157d]]);for(const _0x1ac34a of _0x5d27b2){const _0xef9f27='attribute'==_0x1ac34a['type']?_0x1ac34a['data']['oldValue']:void 0x0,_0x14b4a4=_0x1ac34a['getFirstRange'](),_0x4abe6c=Array['from'](_0x559fab['keys']())['find'](_0x51aba8=>_0x51aba8['isIntersecting'](_0x14b4a4));if(!_0x4abe6c)continue;const _0xc81604=_0x4abe6c['getDifference'](_0x14b4a4);this['_isBlockAttribute'](_0x634172)&&'insertion'==_0x1ac34a['type']&&0x0!=_0xc81604['length']||(_0x559fab['delete'](_0x4abe6c),_0xc81604['forEach'](_0x312a00=>{_0x559fab['set'](_0x312a00,_0x15157d);}),'insertion'!=_0x1ac34a['type']&&_0xef9f27!=_0x555713&&_0x559fab['set'](_0x4abe6c['getIntersection'](_0x14b4a4),_0xef9f27));}const _0x4077cb=[];for(const [_0x1abfda,_0x390dd8]of _0x559fab){const _0x243210=_0x50a7b0(),_0x5b6b77={'key':_0x634172,'oldValue':_0x390dd8,'newValue':_0x555713};_0x634172['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':_0x634172});const _0x53be9f=('attribute:'+(_0x634172+'|'+Vt({'newValue':_0x555713})))['substring'](0x0,0x3c),_0x3ee5cc=this['_setSuggestionData']({'id':_0x243210,'type':_0x53be9f,'data':_0x5b6b77,'createdAt':new Date(),'authorId':_0x24fa26,'attributes':_0x1d4563});_0x4077cb['push'](_0x3ee5cc),this['_addSuggestionMarker'](_0x53be9f,_0x243210,_0x24fa26,_0x1abfda);}return _0x4077cb;}['enableDefaultAttributesIntegration'](_0x28d0d3){this['enableCommand'](_0x28d0d3,(_0x1bb4bf,..._0x5e36a2)=>{this['_recordAttributeChanges'](()=>{_0x1bb4bf(..._0x5e36a2);});});}['registerBlockAttribute'](_0x135a18){this['_blockAttributeKeys']['add'](_0x135a18);}['registerInlineAttribute'](_0xed392b){this['_inlineAttributeKeys']['add'](_0xed392b);}['_getAttributeKey'](_0x4bcace){return'attribute'==_0x4bcace['type']?_0x4bcace['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5b4308,_0xf94da1){const _0x2b22ad=_0x5b4308['getFirstMarker']();this['_model']['change'](_0x295017=>{_0x295017['updateMarker'](_0x2b22ad,{'range':_0xf94da1});});}['_addThreadToSuggestion'](_0x5e39b5){const _0x307c57=_0x5e39b5['id'],_0x495338=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x307c57)||this['_commentsRepository']['addCommentThread']({'channelId':_0x495338,'threadId':_0x307c57,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2a96b2=this['_commentsRepository']['getCommentThread'](_0x307c57);_0x2a96b2['unbind']('isRemovable'),_0x2a96b2['isRemovable']=!0x1,_0x5e39b5['commentThread']=_0x2a96b2;}['_checkSuggestionCorrectness'](_0x2f07ce,_0x391b94,_0x520227,_0x57afd4){if(_0x2f07ce['type']!=_0x391b94||_0x2f07ce['subType']!=_0x520227||_0x2f07ce['creator']['id']!=_0x57afd4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4a1ebc('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1f97f7,_0x16f70f){const _0x387d81=_0x1f97f7['getFirstRange']();if(_0x16f70f['isEqual'](_0x387d81))_0x1f97f7['removeMarkers']();else{if(_0x387d81['containsRange'](_0x16f70f)){const _0x3c59d2=this['_model']['createPositionAt'](_0x16f70f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f97f7,this['_model']['createRange'](_0x387d81['start'],_0x3c59d2));const _0x524101=_0x50a7b0(),_0x54f491=_0x1f97f7['creator']['id'],_0x36f42d=_0x1f97f7['type']+':'+_0x1f97f7['subType'];this['_setSuggestionData']({'id':_0x524101,'type':_0x36f42d,'createdAt':new Date(),'authorId':_0x54f491,'data':_0x1f97f7['data'],'attributes':_0x1f97f7['attributes']});const _0x5c7eb9=this['_model']['createPositionAt'](_0x16f70f['end']['parent'],'after'),_0x22c1ae=this['_model']['createRange'](_0x5c7eb9,_0x387d81['end']);this['_addSuggestionMarker'](_0x36f42d,_0x524101,_0x54f491,_0x22c1ae);}else{if(_0x387d81['containsPosition'](_0x16f70f['start'])){const _0x37309d=this['_model']['createPositionAt'](_0x16f70f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f97f7,this['_model']['createRange'](_0x387d81['start'],_0x37309d));}else{const _0x1119fe=this['_model']['createPositionAt'](_0x16f70f['end']['parent'],'after');this['_setSuggestionRange'](_0x1f97f7,this['_model']['createRange'](_0x1119fe,_0x387d81['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1ab81c){for(const {suggestion:_0x2e143e,meta:_0x2352e3}of this['_findSuggestions'](_0x1ab81c,'insertion')){if(!_0x2352e3['isOwn'])continue;const _0x451899=_0x2e143e['getRanges']();for(const _0x4907bf of _0x451899)if(!_0x1ab81c['getDifference'](_0x4907bf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1c5867){const _0x7ac4bd=this['editor']['plugins']['get']('Users')['getUser'](_0x1c5867);if(!_0x7ac4bd)throw new _0x4a1ebc('track-changes-user-not-found',this);return _0x7ac4bd;}['_getExternalAuthor'](_0x1907e4){const _0x25e131=this['editor']['plugins']['get']('Users'),_0x4af235=_0x340512('external:'+_0x1907e4),_0x24a8e0=_0x25e131['getUser'](_0x4af235);return _0x24a8e0||_0x25e131['addUser']({'id':_0x4af235,'name':_0x1907e4});}['_createSuggestion'](_0x5241bc,_0x2eb170,_0x47b403,_0x3d5519,_0x22fb09){const _0x5a29d7=this['_getAuthorFromId'](_0x3d5519),_0x290b91=this['_suggestionFactory']['buildSuggestion'](_0x5241bc,_0x2eb170,_0x47b403,_0x5a29d7,_0x22fb09,_0x10494f=>{this['_updateSuggestionData'](_0x47b403,{'attributes':_0x10494f});const _0x14a50b=this['getSuggestion'](_0x47b403);this['_joinWithAdjacentSuggestions'](new Set([_0x14a50b])),this['_refreshSuggestionsChain'](new Set([_0x14a50b]));});return this['listenTo'](_0x290b91,'accept',()=>{this['_updateSuggestionData'](_0x47b403,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x290b91,'discard',()=>{this['_updateSuggestionData'](_0x47b403,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x47b403,_0x290b91),this['_suggestionState']['set'](_0x290b91,'notReady'),_0x290b91;}['_splitMarkerName'](_0x35fb84){const _0x1b935d=_0x35fb84['split'](':');return{'group':_0x1b935d[0x0],'type':_0x1b935d[0x1],'subType':_0x1b935d['length']>=0x5?_0x1b935d[0x2]:null,'id':_0x1b935d['length']<0x5?_0x1b935d[0x2]:_0x1b935d[0x3],'authorId':_0x1b935d['length']<0x5?_0x1b935d[0x3]:_0x1b935d[0x4],'markerCount':0x6==_0x1b935d['length']?_0x1b935d[0x5]:null};}['_breakSuggestionMarker'](_0x392b65,_0x14a99e,_0x21f780){const _0xbfddb6=_0x392b65['getFirstRange'](),_0x4b3d10=_0xbfddb6['start'],_0x3430f1=_0xbfddb6['end'];this['_setSuggestionRange'](_0x392b65,this['_model']['createRange'](_0x4b3d10,_0x14a99e));const _0x41140=_0x50a7b0(),_0x13ca7f=_0x392b65['creator']['id'],_0x37141f=_0x392b65['type']+(_0x392b65['subType']?':'+_0x392b65['subType']:'');this['_setSuggestionData']({'id':_0x41140,'type':_0x37141f,'createdAt':new Date(),'authorId':_0x13ca7f,'originalSuggestionId':_0x392b65['id'],'attributes':_0x392b65['attributes'],'data':_0x392b65['data']});const _0x51e13e=this['_getAttributeKey'](_0x392b65);('formatBlock'==_0x392b65['type']||_0x51e13e&&this['_isBlockAttribute'](_0x51e13e))&&(_0x21f780=this['_model']['createPositionBefore'](_0x21f780['parent'])),this['_addSuggestionMarker'](_0x37141f,_0x41140,_0x13ca7f,this['_model']['createRange'](_0x21f780,_0x3430f1));}['_findSuggestions'](_0x14df50,_0x578178=null){const _0x1581b3=[],_0x514d36=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x14df50)||(_0x14df50=[_0x14df50]);for(const _0x22a785 of this['getSuggestions']()){if(!_0x22a785['isInContent'])continue;if(_0x578178&&_0x22a785['type']!=_0x578178)continue;let _0x55c744=!0x1;for(const _0x346de7 of _0x22a785['getRanges']()){for(const _0x4674c1 of _0x14df50){const _0x4df759=_0x4674c1['start']['isEqual'](_0x346de7['end'])||_0x4674c1['end']['isEqual'](_0x346de7['start']);if(_0x4df759||_0x4674c1['getIntersection'](_0x346de7)){const _0x204138=_0x4674c1['containsRange'](_0x346de7)&&Rt(this['_model']['schema'],_0x346de7['start'],_0x4674c1),_0x5f3c90=_0x346de7['containsRange'](_0x4674c1)&&Rt(this['_model']['schema'],_0x4674c1['start'],_0x346de7);_0x1581b3['push']({'suggestion':_0x22a785,'meta':{'isOwn':_0x514d36==_0x22a785['author'],'isNextTo':_0x4df759,'isInsideObject':_0x204138,'containsRangeInObject':_0x5f3c90}}),_0x55c744=!0x0;break;}}if(_0x55c744)break;}}return _0x1581b3;}['_addSuggestionMarker'](_0x1ecf3c,_0x3b3c42,_0x448711,_0x546e4a,_0x1fb458){this['_model']['change'](_0x46457d=>{let _0x2f9ad6='suggestion:'+_0x1ecf3c+':'+_0x3b3c42+':'+_0x448711;_0x1fb458&&(_0x2f9ad6=_0x2f9ad6+':'+_0x1fb458),_0x46457d['addMarker'](_0x2f9ad6,{'range':_0x546e4a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3d4aff){const _0x5caa2d=_0x3d4aff['previous'],_0x3f5511=_0x3d4aff['next'];_0x3d4aff['previous']=null,_0x3d4aff['next']=null,null!=_0x5caa2d&&_0x5caa2d['next']==_0x3d4aff&&(_0x5caa2d['next']=_0x3f5511),null!=_0x3f5511&&_0x3f5511['previous']==_0x3d4aff&&(_0x3f5511['previous']=_0x5caa2d),'ready'==this['_suggestionState']['get'](_0x3d4aff)&&(this['_suggestionState']['set'](_0x3d4aff,'removed'),this['fire']('suggestionUnloaded',_0x3d4aff,_0x5caa2d,_0x3f5511));}['_setSuggestionData'](_0x3e731c){const _0x176671=_0x3e731c['id'],_0x56d83c=this['addSuggestionData'](_0x3e731c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a0659=this['editor']['plugins']['get']('PendingActions'),_0x55c873=_0x56d83c['hasComments'],_0x456ce1=_0x56d83c['subType']?_0x56d83c['type']+':'+_0x56d83c['subType']:_0x56d83c['type'],_0x2194a=this['editor']['locale'],_0x160557=_0x2a0659['add'](o(_0x2194a,'PENDING_ACTION_SUGGESTION')),_0x2cb0a0={'id':_0x176671,'type':_0x456ce1,'hasComments':_0x55c873,'data':_0x3e731c['data']||null,'originalSuggestionId':_0x3e731c['originalSuggestionId']||null,'attributes':_0x56d83c['attributes']};this['_adapter']['addSuggestion'](_0x2cb0a0)['then'](_0x449b67=>{_0x56d83c['_saved']=!0x0,_0x2a0659['remove'](_0x160557),_0x449b67&&_0x449b67['createdAt']&&(this['_suggestions']['get'](_0x176671)['createdAt']=_0x449b67['createdAt']);})['catch'](_0x4b4d2e=>{throw _0x2f92c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x56d83c['discard']();}),_0x56d83c['stopListening'](),this['_suggestions']['delete'](_0x56d83c['id']),this['_suggestionState']['delete'](_0x56d83c),_0x4b4d2e;});}return _0x56d83c;}['_isBlockAttribute'](_0x7036ad){return this['_blockAttributeKeys']['has'](_0x7036ad);}['_updateSuggestionData'](_0x11c1df,_0x6fb663){const _0x16318c=this['editor']['plugins']['get']('PendingActions'),_0x231f54=this['getSuggestion'](_0x11c1df);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x231f54['_saved']){const _0x2b4665=_0x16318c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x11c1df,_0x6fb663)['then'](()=>{_0x16318c['remove'](_0x2b4665);});}else _0x231f54['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x11c1df,_0x6fb663);});}}['_getSuggestionData'](_0x1eec3d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4a1ebc('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1eec3d);}['_handleNewSuggestionMarker'](_0x3f65d0){const {id:_0x34d87f,type:_0x4f39a2,subType:_0x23f6e2,authorId:_0x17d6f0}=this['_splitMarkerName'](_0x3f65d0),_0x3c66ea=this['_suggestions']['get'](_0x34d87f)||this['_createSuggestion'](_0x4f39a2,_0x23f6e2,_0x34d87f,_0x17d6f0,{});switch(this['_checkSuggestionCorrectness'](_0x3c66ea,_0x4f39a2,_0x23f6e2,_0x17d6f0),this['_suggestionState']['get'](_0x3c66ea)){case'notReady':this['_getSuggestionData'](_0x34d87f)['then'](_0x2868e0=>{let _0xb54a16=Promise['resolve']();_0x2868e0['hasComments']&&(_0xb54a16=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x34d87f})),_0xb54a16['then'](()=>{this['addSuggestionData'](_0x2868e0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3c66ea,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x34d87f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3c66ea,'ready'),this['fire']('suggestionLoaded',_0x3c66ea);break;case'ready':this['fire']('suggestionChanged',_0x3c66ea);}return _0x3c66ea['addMarkerName'](_0x3f65d0),_0x3c66ea;}['_refreshSuggestionsChain'](_0x7cda07){const _0x5aff22=Array['from'](_0x7cda07),_0xd80427=_0x5aff22['filter'](_0x5c3c75=>'attribute'==_0x5c3c75['type']);this['_refreshAttributeSuggestionsChain'](_0xd80427);const _0x5ce98d=_0x5aff22['filter'](_0x19e5a8=>!_0x19e5a8['isMultiRange']&&'attribute'!=_0x19e5a8['type']),_0x4b453d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34fe7c=>!_0x34fe7c['isMultiRange']&&'attribute'!=_0x34fe7c['type']),_0x4b70dc=_0x4b453d['filter'](_0x3df692=>!_0x7cda07['has'](_0x3df692)),_0x2b461c=new Map(_0x4b453d['map'](_0x2e6cda=>[_0x2e6cda,this['_suggestionFactory']['getSuggestionCallback'](_0x2e6cda['type'],_0x2e6cda['subType'],'chain')])),_0x56c17a=new Map(_0x4b453d['map'](_0x328e27=>[_0x328e27,_0x328e27['getFirstRange']()])),_0xf42a24=new Set(),_0x1826b4=new Set();for(let _0x41202a=0x0;_0x41202a<_0x5ce98d['length'];_0x41202a++)_0x3a6866(_0x5ce98d[_0x41202a],_0x5ce98d,_0x41202a+0x1);for(let _0x25eddc=0x0;_0x25eddc<_0x5ce98d['length'];_0x25eddc++)_0x3a6866(_0x5ce98d[_0x25eddc],_0x4b70dc,0x0);const _0x5779bb=new Set();for(let _0x491c12=0x0;_0x491c12<_0x5ce98d['length'];_0x491c12++){const _0x106863=_0x5ce98d[_0x491c12];!_0x1826b4['has'](_0x106863)&&_0x106863['previous']&&(_0x5779bb['add'](_0x106863['previous']),_0x106863['previous']['next']===_0x106863&&(_0x106863['previous']['next']=null),_0x106863['previous']=null),!_0xf42a24['has'](_0x106863)&&_0x106863['next']&&(_0x5779bb['add'](_0x106863['next']),_0x106863['next']['previous']===_0x106863&&(_0x106863['next']['previous']=null),_0x106863['next']=null);}function _0x3a6866(_0x269e09,_0x42e8f5,_0x465d7a){for(let _0x4181f2=_0x465d7a;_0x4181f2<_0x42e8f5['length'];_0x4181f2++){const _0x580728=_0xbd3de1(_0x269e09,_0x42e8f5[_0x4181f2]);_0x580728&&(_0x580728[0x0]['next']=_0x580728[0x1],_0x580728[0x1]['previous']=_0x580728[0x0],_0xf42a24['add'](_0x580728[0x0]),_0x1826b4['add'](_0x580728[0x1]));}}function _0xbd3de1(_0x2684f4,_0x12c21d){if(_0x2684f4['author']['id']!==_0x12c21d['author']['id'])return null;const _0x1bb481=_0x2b461c['get'](_0x2684f4)(_0x2684f4,_0x12c21d,_0x56c17a['get'](_0x2684f4),_0x56c17a['get'](_0x12c21d));if(!_0x1bb481)return null;return _0x2b461c['get'](_0x12c21d)(_0x2684f4,_0x12c21d,_0x56c17a['get'](_0x2684f4),_0x56c17a['get'](_0x12c21d))?_0x1bb481[0x1]['commentThread']&&_0x1bb481[0x1]['commentThread']['length']?null:_0x1bb481:null;}_0x5779bb['size']&&this['_refreshSuggestionsChain'](_0x5779bb);}['_refreshAttributeSuggestionsChain'](_0x4d52cf){if(0x0==_0x4d52cf['length'])return;const _0x19e5be=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd66b53=>'attribute'==_0xd66b53['type']&&_0xd66b53['_isDataLoaded']),_0x993e77=[],_0x563fd9=new Map();for(const _0x206f5b of _0x19e5be){const _0x109b9c=_0x340512(_0x206f5b['attributes']);_0x563fd9['has'](_0x109b9c)||(_0x563fd9['set'](_0x109b9c,_0x993e77['length']),_0x993e77['push']([]));const _0x5506d7=_0x563fd9['get'](_0x109b9c);_0x993e77[_0x5506d7]['push'](_0x206f5b);}!(function(){_0x993e77['sort']((_0x494871,_0xa6dedb)=>{const _0x3ebe03=_0x494871[0x0]['createdAt'],_0xe9c1b9=_0xa6dedb[0x0]['createdAt'];return _0x3ebe03==_0xe9c1b9?_0x494871[0x0]['attributes']['groupId']<_0xa6dedb[0x0]['attributes']['groupId']?-0x1:0x1:_0x3ebe03<_0xe9c1b9?-0x1:0x1;});for(const _0x133b86 of _0x993e77)_0x133b86['sort']((_0x420216,_0x516757)=>_0x420216['id']<_0x516757['id']?-0x1:0x1);}());for(let _0x2b27bb=0x0;_0x2b27bb<_0x993e77['length'];_0x2b27bb++){if(0x0==_0x993e77[_0x2b27bb]['length'])continue;const _0x1eccbb=[];for(let _0x3f2079=_0x2b27bb+0x1;_0x3f2079<_0x993e77['length'];_0x3f2079++)0x0!=_0x993e77[_0x3f2079]['length']&&_0x2a6eae(_0x993e77[_0x2b27bb],_0x993e77[_0x3f2079])&&_0x1eccbb['push'](_0x3f2079);for(const _0x49700e of _0x1eccbb)_0x993e77[_0x2b27bb]=_0x993e77[_0x2b27bb]['concat'](_0x993e77[_0x49700e]),_0x993e77[_0x49700e]=[];}for(const _0x1c5362 of _0x993e77)for(let _0x3aaa0b=0x0;_0x3aaa0b<_0x1c5362['length'];_0x3aaa0b++)_0x1c5362[_0x3aaa0b]['next']=_0x1c5362[_0x3aaa0b+0x1]||null;for(const _0x81b948 of _0x993e77)for(let _0x4b5016=0x0;_0x4b5016<_0x81b948['length'];_0x4b5016++)_0x81b948[_0x4b5016]['previous']=_0x81b948[_0x4b5016-0x1]||null;function _0x2a6eae(_0x384894,_0x195352){if(_0x384894[0x0]['attributes']['groupId']!==_0x195352[0x0]['attributes']['groupId']&&_0x384894[0x0]['author']!==_0x195352[0x0]['author'])return!0x1;if(!function(_0x229eee,_0x45a38b){if(!_0x229eee['hasComments']&&!_0x45a38b['hasComments'])return!0x0;if(_0x229eee['hasComments']&&_0x45a38b['hasComments'])return!0x1;if(_0x229eee['hasComments']&&_0x45a38b['createdAt']<_0x229eee['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x45a38b['hasComments']&&_0x229eee['createdAt']<_0x45a38b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x384894[0x0],_0x195352[0x0]))return!0x1;const _0xfce41e=Bt(_0x384894[0x0]['attributes'],'groupId'),_0x4c3ccb=Bt(_0x195352[0x0]['attributes'],'groupId');if(!_0x283872(_0xfce41e,_0x4c3ccb))return!0x1;return!!_0x384894['every'](_0x2dda80=>_0x195352['some'](_0x1ae7a8=>_0x2dda80['getFirstRange']()['isEqual'](_0x1ae7a8['getFirstRange']())))&&_0x195352['every'](_0x424379=>_0x384894['some'](_0x3ac0be=>_0x424379['getFirstRange']()['isEqual'](_0x3ac0be['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1cfe3b){const _0x386d0c=Array['from'](_0x1cfe3b),_0x1a79c5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a046f=_0x1a79c5['filter'](_0x1e1a6c=>!_0x1cfe3b['has'](_0x1e1a6c)),_0x26b6ee=new Map(_0x386d0c['map'](_0xe867d=>[_0xe867d,this['_suggestionFactory']['getSuggestionCallback'](_0xe867d['type'],_0xe867d['subType'],'join')])),_0x579e54=new Map(_0x1a79c5['map'](_0x1fab45=>[_0x1fab45,_0x1fab45['getRanges']()]));for(let _0x3e4214=0x0;_0x3e4214<_0x386d0c['length'];_0x3e4214++){if(_0x457895(this,_0x386d0c[_0x3e4214],_0x386d0c,_0x3e4214+0x1))return!0x0;}for(let _0x5e80d2=0x0;_0x5e80d2<_0x386d0c['length'];_0x5e80d2++){if(_0x457895(this,_0x386d0c[_0x5e80d2],_0x4a046f,0x0))return!0x0;}return!0x1;function _0x457895(_0x446b85,_0x55045d,_0x36fbe0,_0x2f0c9c){for(let _0x322655=_0x2f0c9c;_0x322655<_0x36fbe0['length'];_0x322655++){const _0x497d5e=_0x36fbe0[_0x322655];if(_0x497d5e['type']!==_0x55045d['type']||_0x497d5e['author']['id']!==_0x55045d['author']['id']||_0x497d5e['subType']!==_0x55045d['subType'])continue;if(!Pt(_0x55045d,_0x497d5e,['groupId']))continue;if('attribute'==_0x55045d['type']&&_0x55045d['data']['oldValue']!=_0x497d5e['data']['oldValue'])continue;if('attribute'==_0x55045d['type']&&_0x446b85['_isBlockAttribute'](_0x55045d['data']['key']))continue;if('formatBlock'==_0x55045d['type']){const _0x3034ec=_0x446b85['editor']['model'],_0x57d312=_0x55045d['getContainedElement']();if(_0x57d312&&(_0x3034ec['schema']['isObject'](_0x57d312)||_0x3034ec['schema']['isLimit'](_0x57d312)))continue;}const _0xf33e9d=_0x26b6ee['get'](_0x55045d),_0x55ab30=_0x579e54['get'](_0x55045d),_0x24abf5=_0x579e54['get'](_0x497d5e),_0x372397=_0x55045d['commentThread']&&_0x55045d['commentThread']['length'],_0x7872c1=_0x497d5e['commentThread']&&_0x497d5e['commentThread']['length'];if(!_0x372397&&_0xf33e9d(_0x24abf5,_0x55ab30))return _0x446b85['_joinSuggestions'](_0x497d5e,_0x55045d),_0x579e54['delete'](_0x55045d),!0x0;if(!_0x7872c1&&_0xf33e9d(_0x55ab30,_0x24abf5))return _0x446b85['_joinSuggestions'](_0x55045d,_0x497d5e),_0x579e54['delete'](_0x497d5e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x135492,_0x3affc0){if(_0x135492['isMultiRange']){for(const _0x18ea21 of _0x3affc0['getRanges']())_0x135492['addRange'](_0x18ea21);}else{const _0x483af6=_0x3affc0['getFirstRange']()['end'];this['_setSuggestionRange'](_0x135492,this['_model']['createRange'](_0x135492['getFirstRange']()['start'],_0x483af6));}_0x3affc0['removeMarkers']();}['_getMarkerAnnouncementText'](_0x428d4c,_0xc8c55c){const _0x28a234=_0x428d4c['startsWith']('format')||_0x428d4c['startsWith']('attribute')?'FORMATTING':_0x428d4c['toUpperCase']();return o(this['editor']['locale'],_0xc8c55c+'_'+_0x28a234+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x592953=this['editor'];if(!_0x592953['ui'])return;const {ariaLiveAnnouncer:_0x3e6fe9}=_0x592953['ui'];_0x1adeb1(this['_model'],({left:_0x3f2120,entered:_0x2d41b0})=>{for(const _0xa9c7a6 of _0x3f2120){const {group:_0x21bdaa,type:_0xd83ca4}=this['_splitMarkerName'](_0xa9c7a6['name']);if('suggestion'===_0x21bdaa){_0x3e6fe9['announce'](this['_getMarkerAnnouncementText'](_0xd83ca4,'LEAVE'));break;}}for(const _0x24dda8 of _0x2d41b0){const {group:_0x15a4ff,type:_0x2392de}=this['_splitMarkerName'](_0x24dda8['name']);if('suggestion'===_0x15a4ff){_0x3e6fe9['announce'](this['_getMarkerAnnouncementText'](_0x2392de,'ENTER'));break;}}});}['_processAttributeChanges'](_0x351ec1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3e2d95=this['editor'],_0x760f3a=_0x3e2d95['model']['document']['differ']['getChanges']();if(0x0==_0x760f3a['length'])return!0x1;const _0x2ecb6f=[],_0x182f86=_0x760f3a['filter'](_0x4a4a3a=>'attribute'==_0x4a4a3a['type']),_0x3122bc=_0x760f3a['filter'](_0xadeef2=>'insert'==_0xadeef2['type']&&'$text'!=_0xadeef2['name']),_0x369df5=_0x760f3a['filter'](_0xf6fec2=>'remove'==_0xf6fec2['type']&&'$text'!=_0xf6fec2['name']);for(const _0x228e58 of _0x182f86)_0x2ecb6f['push']({'key':_0x228e58['attributeKey'],'newValue':_0x228e58['attributeNewValue'],'oldValue':_0x228e58['attributeOldValue'],'range':Ot(_0x228e58['range'],_0x3e2d95['model'])});for(const _0x26ae42 of _0x3122bc){const _0xb82096=_0x369df5['find'](_0xbcc3dc=>_0xbcc3dc['position']['isEqual'](_0x26ae42['position']));_0xb82096&&_0x2ecb6f['push']({'key':m,'newValue':_0x26ae42['name'],'oldValue':_0xb82096['name'],'range':_0x3e2d95['model']['createRangeOn'](_0x26ae42['position']['nodeAfter'])});}return 0x0!=_0x2ecb6f['length']&&this['_reduceExistingSuggestions'](_0x351ec1,_0x2ecb6f);}['_processAttributeSuggestions'](_0x1a2d06){let _0x2912c7=!0x1;const _0x4fa6ae=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1439d4=>_0x1439d4['data']['newRange']&&_0x1439d4['name']['startsWith']('suggestion:attribute:'));for(const _0x3aea5e of _0x4fa6ae){const {subType:_0x4930f7,id:_0x319060}=this['_splitMarkerName'](_0x3aea5e['name']),_0x57bb31=_0x4930f7['split']('|')[0x0];for(const _0x1dfd67 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1dfd67['id']!=_0x319060&&'attribute'==_0x1dfd67['type']&&_0x1dfd67['data']&&_0x1dfd67['data']['key']==_0x57bb31&&_0x1dfd67['getFirstRange']()['isIntersecting'](_0x3aea5e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1dfd67,_0x3aea5e['data']['newRange'],_0x1a2d06),_0x2912c7=!0x0);}return _0x2912c7;}['_recordAttributeChanges'](_0x8c3597){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x8c3597();}['_isRegisteredAttribute'](_0x460bfa){const _0xec987b=this['_isBlockAttribute'](_0x460bfa),_0x1b1484=this['_inlineAttributeKeys']['has'](_0x460bfa);return _0xec987b||_0x1b1484;}['_reduceExistingSuggestions'](_0xe2b2b6,_0xa76617){if(0x0==_0xa76617['length'])return!0x1;let _0x614957=!0x1;for(const _0x451795 of _0xa76617){const _0x2b45a2=this['_findSuggestions'](_0x451795['range'],'attribute')['filter'](_0x28fdcd=>!_0x28fdcd['meta']['isNextTo'])['map'](_0x31544a=>_0x31544a['suggestion']),_0x1c268c=_0x340512({'newValue':_0x451795['newValue']});_0x2b45a2['filter'](_0x200d0d=>{const [_0x30e6c8,_0x42cf91]=_0x200d0d['subType']['split']('|');return _0x30e6c8==_0x451795['key']&&_0x42cf91!=_0x1c268c;})['forEach'](_0x456b8c=>{this['_reduceSuggestionAttributeRange'](_0x456b8c,_0x451795['range'],_0xe2b2b6),_0x614957=!0x0;});}return _0x614957;}['_reduceSuggestionAttributeRange'](_0xa0c39e,_0x115fec,_0x42f376){const _0x22ff3f=_0xa0c39e['getFirstRange']()['getDifference'](_0x115fec);0x0!==_0x22ff3f['length']?0x1!==_0x22ff3f['length']?this['_breakSuggestionMarker'](_0xa0c39e,_0x115fec['start'],_0x115fec['end']):this['_setSuggestionRange'](_0xa0c39e,_0x22ff3f[0x0]):_0x42f376['removeMarker'](_0xa0c39e['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x15c44a){this['_editor']=_0x15c44a,this['_model']=_0x15c44a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57f168,_0x7ec6f5,_0x37b543,_0x37d587,_0xa74807,_0x6b4956){return new u(this['_model'],{'type':_0x57f168,'subType':_0x7ec6f5,'id':_0x37b543,'author':_0x37d587,'creator':_0x37d587,'attributes':_0xa74807,'onAttributesChange':_0x6b4956,'onAccept':(..._0x2bb031)=>this['getSuggestionCallback'](_0x57f168,_0x7ec6f5,'accept')(..._0x2bb031),'onDiscard':(..._0x2b99d7)=>this['getSuggestionCallback'](_0x57f168,_0x7ec6f5,'discard')(..._0x2b99d7)});}['registerCustomCallback'](_0x2c360f,_0x3e361b,_0x442d70,_0x69757b){const _0x1ddb6e=_0x2c360f+':'+_0x3e361b+':'+_0x442d70;this['_customCallbacks']['set'](_0x1ddb6e,_0x69757b);}['getSuggestionCallback'](_0x101fef,_0x9a35a9,_0x11eec2){const _0x27584f=_0x101fef+':'+_0x9a35a9+':'+_0x11eec2;return this['_customCallbacks']['get'](_0x27584f)||this['_defaultCallbacks']['get'](_0x101fef+':'+_0x11eec2);}['_registerDefaultCallbacks'](){const _0x3c7e41=()=>!0x1,_0x1ab854=_0x2a1d47=>{_0x2a1d47['sort']((_0x3c54a1,_0x407807)=>_0x3c54a1['start']['isBefore'](_0x407807['start'])?0x1:-0x1),this['_model']['change'](_0x110f4b=>{for(const _0x950beb of _0x2a1d47){let _0x205ef9;_0x205ef9=_0x950beb['end']['isAtEnd']&&_0x950beb['end']['parent']==_0x950beb['start']['nodeAfter']?_0x110f4b['createSelection'](_0x950beb['start']['nodeAfter'],'on'):_0x110f4b['createSelection'](_0x950beb),this['_model']['deleteContent'](_0x205ef9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xae7333=(_0x7df2a2,_0x5f1767)=>{_0x5f1767&&this['_model']['change'](_0x4d886b=>{const {commandName:_0xe88a52,commandParams:_0x5ec3a2=[]}=_0x5f1767,_0x193a4f=_0x7df2a2['map'](_0x51b24a=>(Tt(_0x51b24a)&&(_0x51b24a=this['_model']['createRange'](_0x51b24a['end'])),_0x51b24a))['filter'](_0x1f439f=>'$graveyard'!==_0x1f439f['root']['rootName']);if(_0x193a4f['length']<0x1)return;const _0x5e9c1e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3eb2e0=>_0x1677da['fromRange'](_0x3eb2e0));_0x4d886b['setSelection'](_0x193a4f);for(const _0x39afa4 of this['_editor']['commands']['commands']())_0x39afa4['refresh']();_0x5ec3a2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xe88a52,..._0x5ec3a2);const _0x5a0bce=_0x5e9c1e['filter'](_0x5be3ba=>'$graveyard'!=_0x5be3ba['root']['rootName']);_0x5a0bce['length']>0x0&&_0x4d886b['setSelection'](_0x5a0bce);for(const _0x3ace05 of _0x5e9c1e)_0x3ace05['detach']();});},_0x2378b0=(_0x1ec8d8,_0x529f03)=>0x1==_0x1ec8d8['length']&&0x1==_0x529f03['length']&&_0x1ec8d8[0x0]['end']['isEqual'](_0x529f03[0x0]['start']),_0x351083=(_0x1370b0,_0x43a53d,_0x961f5e,_0x5f013b)=>Ft(_0x1370b0,_0x43a53d,_0x961f5e,_0x5f013b,this['_model'])?[_0x1370b0,_0x43a53d]:Ft(_0x43a53d,_0x1370b0,_0x5f013b,_0x961f5e,this['_model'])?[_0x43a53d,_0x1370b0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3c7e41),this['_defaultCallbacks']['set']('insertion:discard',_0x1ab854),this['_defaultCallbacks']['set']('insertion:join',_0x2378b0),this['_defaultCallbacks']['set']('insertion:chain',_0x351083),this['_defaultCallbacks']['set']('deletion:accept',_0x1ab854),this['_defaultCallbacks']['set']('deletion:discard',_0x3c7e41),this['_defaultCallbacks']['set']('deletion:join',_0x2378b0),this['_defaultCallbacks']['set']('deletion:chain',_0x351083),this['_defaultCallbacks']['set']('formatInline:accept',_0xae7333),this['_defaultCallbacks']['set']('formatInline:discard',_0x3c7e41),this['_defaultCallbacks']['set']('formatInline:join',_0x2378b0),this['_defaultCallbacks']['set']('formatInline:chain',_0x3c7e41),this['_defaultCallbacks']['set']('formatBlock:accept',_0xae7333),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3c7e41),this['_defaultCallbacks']['set']('formatBlock:join',_0x2378b0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3c7e41),this['_defaultCallbacks']['set']('attribute:accept',_0x3c7e41),this['_defaultCallbacks']['set']('attribute:discard',(_0x3eaad0,_0x4952cc)=>{if(!_0x4952cc)return;const _0x2ecf12=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2707c4=>{if(_0x4952cc['key']==m)for(const _0x54a9ef of _0x3eaad0){const _0x5a6acf=_0x54a9ef['start']['nodeAfter'],_0x483387=_0x4952cc['oldValue'];_0x2707c4['rename'](_0x5a6acf,_0x483387);}else{if(_0x2ecf12['_isBlockAttribute'](_0x4952cc['key'])){for(const _0x297680 of _0x3eaad0)void 0x0!==_0x4952cc['oldValue']?_0x2707c4['setAttribute'](_0x4952cc['key'],_0x4952cc['oldValue'],_0x297680['start']['nodeAfter']):_0x2707c4['removeAttribute'](_0x4952cc['key'],_0x297680['start']['nodeAfter']);}else{for(const _0x3adee3 of _0x3eaad0)_0x4952cc['oldValue']?_0x2707c4['setAttribute'](_0x4952cc['key'],_0x4952cc['oldValue'],_0x3adee3):_0x2707c4['removeAttribute'](_0x4952cc['key'],_0x3adee3);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2378b0);}}function Rt(_0x4b2492,_0x586a74,_0x56d4d4){for(const _0x39648a of _0x586a74['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x39648a['root']==_0x39648a)return!0x1;if(!_0x56d4d4['containsItem'](_0x39648a))return!0x1;if(_0x4b2492['isObject'](_0x39648a)||_0x4b2492['isLimit'](_0x39648a))return!0x0;}return!0x1;}function Tt(_0x3e5998){return _0x3e5998['end']['parent']==_0x3e5998['start']['nodeAfter']&&_0x3e5998['end']['isAtStart'];}function Et(_0x225ebc,_0x55ced6,_0x324dbf,_0x22c117){const _0x3c451d=_0x3000c7=>!_0x3000c7['item']['is']('$textProxy')&&!_0x22c117['isObject'](_0x3000c7['item']),_0x2c8bf1=_0x225ebc['start']['getLastMatchingPosition'](_0x3c451d),_0x100bc2=_0x225ebc['end']['getLastMatchingPosition'](_0x3c451d,{'direction':'backward'});return(!_0x225ebc['start']['isEqual'](_0x2c8bf1)||!_0x225ebc['end']['isEqual'](_0x100bc2))&&(_0x2c8bf1['isBefore'](_0x100bc2)?_0x324dbf['updateMarker'](_0x55ced6,{'range':_0x324dbf['createRange'](_0x2c8bf1,_0x100bc2)}):_0x324dbf['removeMarker'](_0x55ced6),!0x0);}function Vt(_0x4e7194){return _0x340512(_0x4e7194);}function Ut(_0x9b8f95){const _0x28ac29=_0x9b8f95['start']['nodeAfter'];return _0x28ac29&&_0x28ac29['is']('element');}function Ot(_0x3dc0f0,_0x142c1b){return null==_0x3dc0f0['end']['nodeBefore']&&_0x3dc0f0['end']['parent']==_0x3dc0f0['start']['nodeAfter']?Gt(_0x3dc0f0['start']['nodeAfter'],_0x142c1b):_0x3dc0f0;}function Gt(_0xbd6106,_0x370bca){const _0x2e0a7b=_0x370bca['schema']['isObject'](_0xbd6106)||_0x370bca['schema']['isSelectable'](_0xbd6106);return _0x370bca['createRange'](_0x370bca['createPositionAt'](_0xbd6106,'before'),_0x2e0a7b?_0x370bca['createPositionAfter'](_0xbd6106):_0x370bca['createPositionAt'](_0xbd6106,'end'));}function Ft(_0x27aad3,_0x47706a,_0x55b5a2,_0x2bf31e,_0x18c71a){if(!Pt(_0x27aad3,_0x47706a))return!0x1;if(_0x55b5a2['end']['isEqual'](_0x2bf31e['start']))return!0x0;if(_0x27aad3['type']!=_0x47706a['type'])return!0x1;if(!_0x55b5a2['end']['isTouching'](_0x2bf31e['start']))return!0x1;const _0x456b4e=_0x18c71a['createRange'](_0x55b5a2['end'],_0x2bf31e['start'])['getWalker']();for(const _0x299a7e of _0x456b4e)if(['elementStart','elementEnd']['includes'](_0x299a7e['type'])&&_0x18c71a['schema']['isLimit'](_0x299a7e['item']))return!0x1;return!0x0;}function Pt(_0x58c15b,_0xcf7032,_0x2da8ab=[]){return!(!_0x58c15b['_isDataLoaded']||!_0xcf7032['_isDataLoaded'])&&_0x283872(Bt(_0x58c15b['attributes'],_0x2da8ab),Bt(_0xcf7032['attributes'],_0x2da8ab));}function Lt(_0x34e559,_0x1657ae){const _0x3377ad=Ht(_0x34e559['attributes']),_0x46d5c3=Ht(_0x1657ae);if(!_0x34e559['_isDataLoaded'])return!0x1;for(const _0x54a2e6 of Object['keys'](_0x46d5c3))if(!_0x283872(_0x3377ad[_0x54a2e6],_0x46d5c3[_0x54a2e6]))return!0x1;return!0x0;}function Ht(_0x13baf3){const _0x346680=Object['assign']({},_0x13baf3);return delete _0x346680['skipNestingCheck'],delete _0x346680['tablePasteChainId'],_0x346680;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3d5e12(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x6bd217,_0xf3832,_0x2b436f,_0x4fddab){super(),this['model']=_0xf3832,this['view']=_0x2b436f,this['commentThreadController']=_0x4fddab,this['_editor']=_0x6bd217,this['_acceptCommand']=_0x6bd217['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x6bd217['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1419cf,_0x1c93f0)=>_0x1419cf||_0x1c93f0),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x19fff5=>_0x19fff5&&this['_editor']['model']['canEditAt'](_0xf3832['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3569fd=>_0x3569fd&&this['_editor']['model']['canEditAt'](_0xf3832['getRanges']())),this['_pendingAction']=null,_0x2b436f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2b436f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2b436f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2b436f,'change:isDirty',()=>{_0x2b436f['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 _0x34cc0c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x34cc0c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5a1a17{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x5b4be1,_0x3efe7d,_0x8784aa,_0xeaa89f){super(_0x5b4be1),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3efe7d['authoredAt']),this['bind']('authoredAt')['to'](_0x3efe7d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3efe7d,this['_localUser']=_0x8784aa,this['_config']=_0xeaa89f,_0xeaa89f['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:_0x1a3485}=this['_config'];this['commentsListView']=new _0x1a3485(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',_0x29f86f=>_0x29f86f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xc858d0,_0x358c56)=>_0xc858d0||!!_0x358c56);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3c1d1e}=this['_config'],_0x2f215e=new _0x3c1d1e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x57a0d5=_0x2f215e['commentInputView'];return _0x2f215e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x57a0d5,'value',(_0x29ce72,_0x44082c,_0x3f7793)=>!!_0x3f7793||_0x29ce72&&!_0x44082c),_0x57a0d5['on']('submit',(_0x4a2af3,_0x3a5d04)=>{this['fire']('addComment',_0x3a5d04),_0x57a0d5['editor']['setData']('');}),_0x57a0d5['on']('cancel',()=>this['focus']()),_0x57a0d5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f215e;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x315f28,_0x22e841,_0x48fced,_0x4dbfb2){super(_0x315f28,_0x22e841,_0x48fced,_0x4dbfb2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x494f61=>_0x494f61&&_0x494f61[0x0]?_0x494f61[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x312480,_0xcdb6a3)=>{let _0x3d5908='';for(const _0x8c292a of _0x312480)_0x3d5908+='<p>'+ds(_0x8c292a['content'],_0x8c292a['color'])+'</p>';return _0xcdb6a3?_0x3d5908:_0x31cd7c(_0x3d5908,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x315f28,'Accept\x20suggestion'),_0x17053a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x315f28,'Discard\x20suggestion'),_0x17053a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x175ae9(_0x315f28,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x27f654=this['bindTemplate'],_0x90ef6=[{'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':_0x27f654['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x27f654['to']('authoredAt',_0x36f40d=>this['_config']['formatDateTime'](_0x36f40d))}]}]},{'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']&&_0x90ef6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x413733={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x27f654['if']('isActive','ck-suggestion-wrapper--active'),_0x27f654['to']('type',_0x56071c=>'ck-suggestion-'+_0x56071c),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':_0x90ef6}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x413733['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)),_0x413733;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1e4c09,_0x50182f,_0x5db1c4)=>{this['_descriptionElement']['innerHTML']=_0x5db1c4;});}['_createButton'](_0x437efa,_0x33539a,_0x5895f0,_0x269ab0,_0xa74b50){const _0x10b830=new _0x387374(this['locale']);return _0x10b830['set']({'label':_0x437efa,'icon':_0x33539a,'tooltip':!0x0,'tooltipPosition':_0xa74b50}),_0x10b830['extendTemplate']({'attributes':{'class':_0x5895f0}}),_0x10b830['on']('execute',()=>{this['fire'](_0x269ab0,this['_model']['id']);}),_0x10b830;}['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(_0x48cd67,_0xeaa2e8){let _0x2314e6='';return _0x2314e6+=_0x48cd67['split']('*')['map']((_0x442c5a,_0x300fbb)=>_0x300fbb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x442c5a)+'</span>':us(_0x442c5a))['join'](''),_0xeaa2e8&&(_0x2314e6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xeaa2e8['value']+'\x22\x20title=\x22'+_0xeaa2e8['title']+'\x22></span>'),_0x2314e6;}function us(_0x15f585){const _0x7916f7=document['createElement']('span');return _0x7916f7['innerText']=_0x15f585,_0x7916f7['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 _0x513c76{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1586d5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x52f21d){super(_0x52f21d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x555522=this['editor']['config'];_0x555522['define']('trackChanges.SuggestionThreadView',ne),_0x555522['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x555522['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x257912,_0x3fff4f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x568614,_0xe6c416]of this['_handleControllerBuffer']){const _0x4a1e4b=this['_suggestionToController']['has'](_0x568614);_0x4a1e4b||_0xe6c416?_0x4a1e4b&&_0xe6c416&&this['_destroyController'](_0x568614):this['_initializeController'](_0x568614);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x257912,_0x3fff4f);}['init'](){const _0x419019=this['editor'],_0x9bbb81=_0x419019['plugins']['get']('TrackChangesEditing'),_0x9a9c3=_0x419019['plugins']['get']('Annotations'),_0x4bb648=_0x419019['plugins']['get']('EditorAnnotations'),_0xf65757=_0x419019['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4bb648['addSourceCollector'](()=>{const _0xddf80a=[];for(const [_0x4bc75d,_0x47c781]of Array['from'](this['_suggestionToController'])){const _0x638da3=_0x4bc75d['getAllAdjacentSuggestions'](),_0xdfaec1=[];for(const _0x3850c5 of _0x638da3){if(!_0x3850c5['isInContent'])continue;if(_0x3850c5['isMultiRange']){_0xdfaec1['push'](..._0x3850c5['getRanges']());continue;}const _0x4b5d98=_0x3850c5['getFirstRange']();if(_0xdfaec1['length']>0x0){const _0x17a571=_0xdfaec1[0x0]['getJoined'](_0x4b5d98);if(_0x17a571){_0xdfaec1[0x0]=_0x17a571;continue;}}_0xdfaec1['push'](_0x4b5d98);}_0xddf80a['push']([_0x47c781['view'],_0xdfaec1]);}return _0xddf80a;}),this['listenTo'](_0x9bbb81,'suggestionLoaded',(_0x167c02,_0x332752)=>{this['listenTo'](_0x332752,'change:previous',(_0x2c0ad0,_0x38ac4d,_0x2f4c74,_0x5a072d)=>{_0x332752['isInContent']&&(null==_0x2f4c74?(this['_updateController'](_0x5a072d['head']),this['_handleSuggestionControllerDelayed'](_0x332752,!0x1)):(this['_updateController'](_0x2f4c74['head']),null==_0x5a072d&&this['_handleSuggestionControllerDelayed'](_0x332752,!0x0)));}),null!==_0x332752['previous']?this['_updateController'](_0x332752['head']):this['_handleSuggestionControllerDelayed'](_0x332752,!0x1);}),this['listenTo'](_0x9bbb81,'suggestionUnloaded',(_0x13149c,_0x581717,_0x35ad6b)=>{this['stopListening'](_0x581717,'change:previous'),this['_handleControllerBuffer']['delete'](_0x581717),this['_suggestionToController']['has'](_0x581717)&&this['_destroyController'](_0x581717),_0x35ad6b&&this['_updateController'](_0x35ad6b['head']);}),this['listenTo'](_0x9bbb81,'suggestionChanged',(_0x387ed3,_0x1c4d33)=>{this['_updateController'](_0x1c4d33);}),this['listenTo'](_0x9a9c3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xf65757,'addComment',(_0x18ecd8,{threadId:_0x438565,isFromAdapter:_0x3e22f1})=>{if(_0x3e22f1||!_0x9bbb81['hasSuggestion'](_0x438565))return;const _0x15c418=_0x9bbb81['getSuggestion'](_0x438565);this['_suggestionToController']['get'](_0x15c418)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x25dfbf=this['editor']['plugins']['get']('Annotations'),_0x44cf27=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ae9b3=Array['from'](_0x25dfbf['activeAnnotations'],_0x3979ce=>_0x3979ce['innerView'])['filter'](_0x1d9708=>this['_viewToController']['has'](_0x1d9708)),_0x4a99b5=[];for(const _0x511203 of _0x4ae9b3){const _0x31c968=this['_viewToController']['get'](_0x511203)['model']['getAllAdjacentSuggestions']();_0x4a99b5['push'](..._0x31c968['reduce']((_0x596233,_0x182ae0)=>[..._0x596233,..._0x182ae0['getMarkerNames']()],[]));}_0x44cf27['activeMarkers']=_0x4a99b5;}['_addUIComponentsToFactory'](){const _0x430c0c=this['editor'],_0x755c3=_0x430c0c['locale'],_0x44db18=o(_0x755c3,'Track\x20changes'),_0xefeda1=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x44db18,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x755c3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x755c3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x755c3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x755c3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3828e6 of _0xefeda1)if(ae(_0x3828e6)){const _0x144f49=_0x430c0c['commands']['get'](_0x3828e6['model']['commandName']);_0x3828e6['model']['bind']('isOn','isEnabled')['to'](_0x144f49,'value','isEnabled');}_0x430c0c['ui']['componentFactory']['add']('trackChanges',_0x2d5964=>this['_createToolbarButton'](_0x2d5964,_0xefeda1,_0x44db18)),_0x430c0c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2bd628=>this['_createMenuBarMenu'](_0x2bd628,_0xefeda1,_0x44db18));}['_createToolbarButton'](_0x281fe0,_0x539c73,_0x487225){const _0x31c5b0=zt(_0x281fe0,Zt),_0x9bcab=this['editor']['commands']['get']('trackChanges');_0x31c5b0['buttonView']['set']({'tooltip':_0x487225,'label':_0x487225,'icon':ie}),_0x31c5b0['buttonView']['bind']('isOn')['to'](_0x9bcab,'value'),_0x31c5b0['buttonView']['on']('execute',()=>{_0x9bcab['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x31c5b0,_0x539c73,{'role':'menu'});const _0x3214a7=[];for(const _0x474dca of _0x539c73)ae(_0x474dca)&&_0x3214a7['push'](this['editor']['commands']['get'](_0x474dca['model']['commandName']));const _0x20eb81=_0x31c5b0['buttonView'];return _0x20eb81['actionView']['unbind']('isEnabled'),_0x20eb81['arrowView']['unbind']('isEnabled'),_0x20eb81['actionView']['bind']('isEnabled')['to'](_0x9bcab,'isEnabled'),_0x20eb81['arrowView']['bind']('isEnabled')['toMany'](_0x3214a7,'isEnabled',(..._0x14d774)=>_0x14d774['some'](_0x40b1f0=>_0x40b1f0)),_0x31c5b0['on']('execute',_0x16d12d=>{this['editor']['execute'](_0x16d12d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x31c5b0;}['_createMenuBarMenu'](_0x401fde,_0x22dd3f,_0x23e085){const _0xebdf00=new Kt(_0x401fde),_0x2f527f=this['editor']['commands']['get']('trackChanges');_0xebdf00['buttonView']['set']({'label':_0x23e085,'icon':ie});const _0x272d50=new Qt(_0x401fde);for(const _0x14b066 of _0x22dd3f){if('separator'==_0x14b066['type']){_0x272d50['items']['add'](new Jt(_0x401fde));continue;}const _0x34be09=new Xt(_0x401fde,_0xebdf00),_0x296902=new Yt(_0x401fde),_0x5dfbdb=_0x14b066['model'];_0x296902['bind'](...Object['keys'](_0x5dfbdb))['to'](_0x5dfbdb),_0x296902['delegate']('execute')['to'](_0xebdf00),_0x296902['on']('execute',()=>{this['editor']['execute'](_0x5dfbdb['commandName']),this['editor']['editing']['view']['focus']();}),_0x34be09['children']['add'](_0x296902),_0x272d50['items']['add'](_0x34be09);}return _0xebdf00['bind']('isEnabled')['to'](_0x2f527f,'isEnabled'),_0xebdf00['panelView']['children']['add'](_0x272d50),_0xebdf00;}['_initializeController'](_0xf58322){const _0x104f42=this['editor'],_0x16edfb=_0x104f42['config'],_0x2475d8=_0x104f42['plugins']['get']('Annotations'),_0x166349=_0x104f42['plugins']['get']('CommentsRepository'),_0x5ab3b8=_0x104f42['plugins']['get']('EditorAnnotations'),_0x3105ef=_0x104f42['plugins']['get'](_0x1586d5)['me'],_0xfee50e=_0x16edfb['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x14c01d,CommentThreadInputView:_0x131332}=_0x104f42['plugins']['get']('CommentsUI');let _0x44a7aa,_0x4b840a;this['_annotationViews']['has'](_0xf58322['id'])?(_0x4b840a=this['_annotationViews']['get'](_0xf58322['id']),_0x44a7aa=_0x4b840a['mainView']):(_0x44a7aa=new _0xfee50e(_0x104f42['locale'],_0xf58322,_0x3105ef,{'disableComments':this['_disableComments'],'editorConfig':_0x16edfb['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x16edfb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x16edfb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x16edfb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x242ed1(_0x16edfb['get']('locale')),'CommentView':_0x16edfb['get']('comments')['CommentView'],'CommentsListView':_0x14c01d,'CommentThreadInputView':_0x131332}),_0x44a7aa['acceptButton']['on']('execute',()=>{_0x104f42['editing']['view']['focus']();}),_0x44a7aa['discardButton']['on']('execute',()=>{_0x104f42['editing']['view']['focus']();}),_0x4b840a=_0x2475d8['createAnnotationView'](this['editor']['locale'],_0x44a7aa),_0x4b840a['bind']('isDirty')['to'](_0x44a7aa,'isDirty'),_0x4b840a['bind']('length')['to'](_0x44a7aa),_0x4b840a['bind']('type')['to'](_0x44a7aa,'type',_0x5b1c26=>'suggestion-'+_0x5b1c26),this['_annotationViews']['set'](_0xf58322['id'],_0x4b840a));const _0x520c42=_0x166349['createCommentThreadController'](_0xf58322['commentThread'],_0x44a7aa),_0x2da600=new oe(_0x104f42,_0xf58322,_0x44a7aa,_0x520c42),_0x236b9b=_0xf58322['getAllAdjacentSuggestions']()['filter'](_0x2c63c7=>_0x2c63c7['isInContent']);_0x44a7aa['descriptionParts']=_0x104f42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x236b9b),this['_suggestionToController']['set'](_0xf58322,_0x2da600),this['_viewToController']['set'](_0x44a7aa,_0x2da600);const _0x3f18d9=_0x2475d8['createAnnotation']({'view':_0x4b840a,'target':()=>{const _0x33e1b6=[],_0x38fc96=_0xf58322['getAllAdjacentSuggestions']()['filter'](_0x5a9386=>_0x5a9386['isInContent']);for(const _0x59b50c of _0x38fc96)_0x33e1b6['push'](..._0x59b50c['getMarkers']());return _0x275d4d(_0x104f42['editing'],_0x33e1b6);},'type':()=>'suggestion-'+_0x2da600['view']['type']});_0x166349['_bindAnnotationToEditors'](_0x44a7aa,_0x3f18d9),_0x2475d8['add'](_0x3f18d9),_0x5ab3b8['registerAnnotation'](_0x3f18d9);}['_destroyController'](_0x44cdaa){const _0xdad606=this['editor']['plugins']['get']('CommentsRepository'),_0x3e99b1=this['editor']['plugins']['get']('Annotations'),_0x446320=this['_suggestionToController']['get'](_0x44cdaa),_0xbd3b95=_0x446320['view'],_0x26c6ba=_0x3e99b1['getByInnerView'](_0xbd3b95);_0xdad606['_unbindEditors'](_0xbd3b95),_0x26c6ba&&_0x3e99b1['remove'](_0x26c6ba),this['_suggestionToController']['delete'](_0x44cdaa),this['_viewToController']['delete'](_0xbd3b95),_0x446320['destroy']();}['_updateController'](_0xa7dbc1){if(!_0xa7dbc1['isInContent']||!this['_suggestionToController']['has'](_0xa7dbc1))return;const _0x2577f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cfb4a=this['_suggestionToController']['get'](_0xa7dbc1),_0x3ce5af=_0xa7dbc1['getAllAdjacentSuggestions']();_0x1cfb4a['view']['descriptionParts']=_0x2577f5['descriptionFactory']['getDescriptions'](_0x3ce5af);}['destroy'](){for(const _0x40d8a6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x40d8a6);for(const _0x1a9b63 of this['_annotationViews']['values']())_0x1a9b63['mainView']['destroy']();super['destroy']();}}function ae(_0x32ce6a){return'model'in _0x32ce6a;}class k extends _0x513c76{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x514127){this['editor']['plugins']['get'](p)['adapter']=_0x514127;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x621897){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x621897);}['getSuggestions']({skipNotAttached:_0x4b13ca=!0x1,toJSON:_0x2b455f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4b13ca,'toJSON':_0x2b455f});}['getSuggestion'](_0x4dd0a3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4dd0a3);}}const T=['Pagination'];class P extends _0x513c76{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x584b28=this['editor'];if(_0x584b28['config']['define']('trackChangesData.editorCreator',_0x256970=>{const _0x3969f4=_0x584b28['model']['document']['getRootNames']()['reduce']((_0x222854,_0x3618a4)=>(_0x222854[_0x3618a4]='',_0x222854),{});return _0x584b28['constructor']['create'](_0x3969f4,_0x256970);}),'function'!=typeof _0x584b28['config']['get']('trackChangesData')['editorCreator'])throw new _0x4a1ebc('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x57f59d){return N(this['editor'],!0x0,_0x57f59d);}['getDataWithDiscardedSuggestions'](_0x594ea2){return N(this['editor'],!0x1,_0x594ea2);}}class D extends _0x513c76{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x463229){super(_0x463229),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(_0x2cc404){return void 0x0!==_0x2cc404['getRootsAttributes'];}async function N(_0x403b8e,_0xe5b200,_0x84ae77){const _0x584316=_0x5b08b8(_0x403b8e,T);_0x584316['plugins']['push'](p,D),_0x584316['rootsAttributes']=v(_0x403b8e)?_0x403b8e['getRootsAttributes']():void 0x0;const _0x48d8f1=document['createDocumentFragment'](),_0x141027=_0x403b8e['config']['get']('trackChangesData')['editorCreator'],_0x1d6a29=await _0x141027(_0x584316,()=>function(_0x2009ac){const _0x3792f4=document['createElement']('div');return _0x2009ac['appendChild'](_0x3792f4),_0x3792f4;}(_0x48d8f1));!function(_0x2ffafa,_0x21748f){const _0x363c64=_0x2ffafa['model']['document']['getRootNames']()['reduce']((_0x5a507e,_0x219e5c)=>(_0x5a507e[_0x219e5c]=_0x2ffafa['data']['get']({'rootName':_0x219e5c}),_0x5a507e),{}),_0x528c1e=_0x2ffafa['plugins']['get']('Users')['users']['map'](_0x247599=>({'id':_0x247599['id'],'name':_0x247599['name']})),_0x274a76=_0x2ffafa['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a61fa=_0x2ffafa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39dea7=_0x21748f['plugins']['get']('Users'),_0x1896f8=_0x21748f['plugins']['get']('TrackChangesEditing'),_0x586bcc=_0x21748f['plugins']['get']('CommentsRepository');for(const _0x225739 of _0x528c1e)_0x39dea7['getUser'](_0x225739['id'])||_0x39dea7['addUser'](_0x225739);_0x39dea7['me']||_0x39dea7['useAnonymousUser']();for(const _0x2d4067 of _0x1a61fa)_0x586bcc['addCommentThread'](_0x2d4067);for(const _0x1180d3 of _0x274a76)_0x1896f8['addSuggestionData'](_0x1180d3);_0x21748f['data']['set'](_0x363c64);}(_0x403b8e,_0x1d6a29),_0x1d6a29['execute'](_0xe5b200?'acceptAllSuggestions':'discardAllSuggestions');const _0x27f71e=v(_0x1d6a29)?_0x1d6a29['getFullData'](_0x84ae77):_0x1d6a29['data']['get'](_0x84ae77);return await _0x1d6a29['destroy'](),_0x27f71e;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x25de16,PendingActions as _0x4a1942,icons as _0x4faa3f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x37dd0f,ObservableMixin as _0x2293f9,uid as _0x5357ff,insertToPriorityArray as _0x7589fa,priorities as _0x1135e1,logWarning as _0x18816c,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x448f83,View as _0x2ec61a,ButtonView as _0x408b20,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 _0x181da2,hashObject as _0x40276b,surroundingMarkersDetector as _0xd6b26e,trimHtml as _0x73be68,UserView as _0x1e5023,getDateTimeFormatter as _0x123b0f,getAllMarkersDomElementsSorted as _0x4fbdb5,sanitizeEditorConfig as _0x2c5c59}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x997a64,LiveRange as _0x9c5a28,LivePosition as _0x6ce200}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x40de7f,toWidget as _0x2731a9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x42939d,set as _0x411553,isEqual as _0x4fe17c,unset as _0x4dadd6,omit as Bt}from'lodash-es';import{Delete as _0x30159a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x49efa2,ShiftEnter as _0x511bd2}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x1766a7,_0x54e702){super(_0x1766a7),this['_enabledCommands']=_0x54e702,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 _0x35e088 of this['editor']['commands']['commands']())_0x35e088['affectsData']&&!this['_enabledCommands']['has'](_0x35e088)&&_0x35e088['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2ffb65 of this['editor']['commands']['commands']())_0x2ffb65['affectsData']&&!this['_enabledCommands']['has'](_0x2ffb65)&&_0x2ffb65['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x477e79,_0x52dfa2){super(_0x477e79),this['_suggestions']=_0x52dfa2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3586c1){const _0x9f7692=this['_suggestions']['get'](_0x3586c1);if(!_0x9f7692)throw new _0x37dd0f('track-changes-accept-suggestion-not-found',this);const _0x3a7f9c=_0x9f7692['getRanges']();this['editor']['model']['canEditAt'](_0x3a7f9c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x9f7692);}}class B extends ts{['_suggestions'];constructor(_0x544ad3,_0x5bfde1){super(_0x544ad3),this['_suggestions']=_0x5bfde1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5afecc){const _0x581f7a=this['_suggestions']['get'](_0x5afecc);if(!_0x581f7a)throw new _0x37dd0f('track-changes-discard-suggestion-not-found',this);const _0x9a3dc=_0x581f7a['getRanges']();this['editor']['model']['canEditAt'](_0x9a3dc)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x581f7a);}}function ss(_0x1eb4b3){return _0x1eb4b3['sort']((_0x22671,_0xbd66d)=>'deletion'==_0x22671['type']&&'deletion'!=_0xbd66d['type']?-0x1:'deletion'!=_0x22671['type']&&'deletion'==_0xbd66d['type']?0x1:0x0);}function to(_0x196db5,_0x338841){let _0x29c0fd,_0x47e650=0x0;const _0x1018b3=[],_0x47bffc=_0x338841['schema'];for(;_0x47e650<_0x196db5['length'];){const _0x5addca=_0x196db5[_0x47e650],_0xad64d=_0x196db5[_0x47e650+0x1];_0x29c0fd||(_0x29c0fd=_0x338841['createPositionBefore'](_0x5addca)),co(_0x338841,_0x5addca,_0xad64d)||(_0x1018b3['push'](_0x338841['createRange'](_0x29c0fd,_0x47bffc['isObject'](_0x5addca)?_0x338841['createPositionAfter'](_0x5addca):_0x338841['createPositionAt'](_0x5addca,'end'))),_0x29c0fd=null),_0x47e650++;}return _0x1018b3;}function co(_0x762f2b,_0x2f713e,_0x37f14d){if(!_0x37f14d)return!0x1;const _0x402ebb=_0x762f2b['createPositionAfter'](_0x2f713e),_0x4c96dd=_0x762f2b['createPositionBefore'](_0x37f14d);return _0x402ebb['isTouching'](_0x4c96dd);}function rs(_0x284f29,_0x2c2cc0,_0x2fa041){for(;_0x2fa041['length'];){const _0x36376d=_0x2fa041['splice'](0x0,0x64);_0x284f29['change'](()=>{for(const _0x1e0a25 of _0x36376d)_0x1e0a25['isInContent']&&_0x2c2cc0['execute'](_0x1e0a25['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3fcc54,_0x20861c,_0xba2be2){super(_0x3fcc54),this['_command']=_0x20861c,this['_suggestions']=_0xba2be2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x21e292=Array['from'](this['_suggestions']['values']())['some'](_0x1df684=>_0x1df684['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x21e292;}['execute'](){const _0x2d14db=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2542de of _0x2d14db){const _0x25e530=_0x2542de['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25e530))return;}rs(this['editor']['model'],this['_command'],_0x2d14db);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x11a74d,_0x518ac0,_0x2e2e31){super(_0x11a74d),this['_command']=_0x518ac0,this['_suggestions']=_0x2e2e31,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xbed64b=this['editor']['model']['document']['selection'],_0x136c49=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1a94bd,_0x441b17){const _0x48f9fa=Array['from'](_0x1a94bd['getRanges']()),_0x189c09=new Set();for(const _0x454b47 of _0x441b17)if(_0x454b47['isInContent']){for(const _0x2bf3fb of _0x48f9fa)for(const _0x21c374 of _0x454b47['getRanges']())(_0x2bf3fb['isIntersecting'](_0x21c374)||_0x1a94bd['isCollapsed']&&!_0x454b47['isMultiRange']&&_0x454b47['next']&&_0x21c374['end']['isTouching'](_0x2bf3fb['start']))&&_0x189c09['add'](_0x454b47);}return _0x189c09;}(_0xbed64b,_0x136c49),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4b6a4c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2d20c0 of _0x4b6a4c){const _0x25d8ff=_0x2d20c0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25d8ff))return;}rs(this['editor']['model'],this['_command'],_0x4b6a4c);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2293f9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xe37f,_0x479e43){super(),this['id']=_0x479e43['id'],this['type']=_0x479e43['type'],this['subType']=_0x479e43['subType']||null,this['author']=_0x479e43['author'],this['creator']=_0x479e43['creator']||_0x479e43['author'],this['isExternal']=Boolean(_0x479e43['attributes']&&_0x479e43['attributes']['@external']),this['data']=null,this['_model']=_0xe37f,this['_onAccept']=_0x479e43['onAccept'],this['_onDiscard']=_0x479e43['onDiscard'],this['_onAttributesChange']=_0x479e43['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x479e43['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 _0x342b18=this;for(;_0x342b18['previous'];)_0x342b18=_0x342b18['previous'];return _0x342b18;}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'](_0x2ff288){this['_markerNames']['add'](_0x2ff288);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x53664f=>this['_model']['markers']['get'](_0x53664f))['filter'](_0x243e2a=>_0x243e2a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x34e2bf=>{for(const _0x37ec8a of this['getMarkers']())_0x34e2bf['removeMarker'](_0x37ec8a);}),this['_markerNames']['clear']();}['removeMarker'](_0x3202d6){this['_model']['change'](_0x47fb9c=>{_0x47fb9c['removeMarker'](_0x3202d6);}),this['_markerNames']['delete'](_0x3202d6);}['addRange'](_0x4f7706){const _0x25c87c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x25c87c),this['_model']['change'](_0x267d6b=>{_0x267d6b['addMarker'](_0x25c87c,{'range':_0x4f7706,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2c155c){for(const _0x2652d5 of this['getRanges']())if(_0x2652d5['isIntersecting'](_0x2c155c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3c812a=>_0x3c812a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x14486f,_0x5898b5)=>[..._0x14486f,..._0x5898b5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2fcbd8=this['getRanges']();if(0x1!=_0x2fcbd8['length'])return null;const _0x212563=_0x2fcbd8[0x0],_0x3f1999=_0x212563['start']['nodeAfter'],_0x13813f=_0x212563['end']['nodeBefore'];return _0x3f1999 instanceof _0x997a64?_0x3f1999!=_0x13813f?null:_0x3f1999: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 _0x12cbb7=[];let _0x37556b=this['head'];for(;_0x37556b;)_0x12cbb7['push'](_0x37556b),_0x37556b=_0x37556b['next'];return _0x12cbb7;}['setAttribute'](_0x29feb2,_0xdbd365){const _0x25ad53=_0x42939d(this['attributes']);_0x411553(_0x25ad53,_0x29feb2,_0xdbd365),_0x4fe17c(_0x25ad53,this['attributes'])||(this['attributes']=_0x25ad53,this['_onAttributesChange'](_0x25ad53));}['removeAttribute'](_0x218c51){const _0x49b724=_0x42939d(this['attributes']);_0x4dadd6(_0x49b724,_0x218c51),_0x4fe17c(_0x49b724,this['attributes'])||(this['attributes']=_0x49b724,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 _0x5357ff()['substr'](0x1,0x5);}}function o(_0x24a458,_0x3b4307,_0x5dbeec){const t=_0x24a458['t'];switch(_0x3b4307){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',_0x5dbeec);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5dbeec);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5dbeec);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5dbeec);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5dbeec);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',_0x5dbeec);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5dbeec);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',_0x5dbeec);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5dbeec);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5dbeec);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5dbeec);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5dbeec);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5dbeec);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5dbeec);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5dbeec);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5dbeec);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5dbeec);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5dbeec);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5dbeec);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5dbeec);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5dbeec);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5dbeec);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5dbeec);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'},_0x5dbeec);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5dbeec);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5dbeec);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5dbeec);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5dbeec);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5dbeec);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'},_0x5dbeec);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5dbeec);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5dbeec);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5dbeec);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5dbeec);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'},_0x5dbeec);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5dbeec);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'},_0x5dbeec);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'},_0x5dbeec);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5dbeec);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'},_0x5dbeec);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5dbeec);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'},_0x5dbeec);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5dbeec);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5dbeec);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'},_0x5dbeec);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'},_0x5dbeec);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 _0x3b4307;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x17442c,_0xa2e146){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x17442c,this['_locale']=_0xa2e146;}['getDescriptions'](_0x445fcc){const _0x1d408c=[],_0x3540d1=new Set(),_0x50e3de=new Set();for(let _0x33fde3=0x0;_0x33fde3<_0x445fcc['length'];_0x33fde3++){const _0x4a4d28=_0x445fcc[_0x33fde3];if(!_0x4a4d28['isInContent'])continue;const _0x403810=this['_handleCustomCallbackDescription'](_0x4a4d28);if(_0x403810){if(null!=_0x4a4d28['subType']){if(_0x3540d1['has'](_0x4a4d28['subType']))continue;_0x3540d1['add'](_0x4a4d28['subType']);}_0x1d408c['push'](_0x403810);}else{if('attribute'!=_0x4a4d28['type'])'insertion'!=_0x4a4d28['type']&&'deletion'!=_0x4a4d28['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1d408c,_0x4a4d28,_0x445fcc[_0x33fde3+0x1]);else{const _0xb41707=_0x4a4d28['data']['key'];if(_0x50e3de['has'](_0xb41707))continue;_0x50e3de['add'](_0x4a4d28['data']['key']),_0xb41707==m?this['_handleRenameSuggestionDescription'](_0x1d408c,_0x4a4d28):this['_handleAttributeSuggestionDescription'](_0x1d408c,_0x4a4d28);}}}return this['_resolveDescriptionItems'](_0x1d408c);}['registerDescriptionCallback'](_0x29c943){this['_customCallbacks']['push'](_0x29c943);}['registerElementLabel'](_0x2310b8,_0x46c8c1,_0x48910d=_0x1135e1['normal']){'function'==typeof _0x2310b8?_0x7589fa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2310b8,'label':_0x46c8c1,'priority':_0x48910d}):this['_itemLabels']['set'](_0x2310b8,_0x46c8c1);}['registerAttributeLabel'](_0x26ff6e,_0x3143a7){this['_attributeLabels']['set'](_0x26ff6e,_0x3143a7);}['getItemLabel'](_0x4ba734,_0x2da3e6=0x1){let _0x54948f;for(const _0x2c1846 of this['_itemLabelsCallbacks'])if(_0x2c1846['matchingCallback'](_0x4ba734)){_0x54948f=_0x2c1846['label'];break;}return _0x54948f||(_0x54948f=this['_itemLabels']['get'](_0x4ba734['name'])),_0x54948f?_0x54948f(_0x2da3e6):0x1!==_0x2da3e6?_0x2da3e6+'\x20'+_0x4ba734['name']+'s':''+_0x4ba734['name'];}['_addDescriptionItems'](_0x2339e0,_0x1f92d5){const _0x4ffef6=_0x1f92d5['getFirstRange']()['getWalker'](),_0x59be8f='insertion'==_0x1f92d5['type']?'add':'remove';for(const _0x180adb of _0x4ffef6){const _0x3e507c=_0x180adb['item'],_0x1b822f=_0x2339e0[_0x2339e0['length']-0x1];if(_0x3e507c['is']('$textProxy'))_0x1b822f&&_0x1b822f['type']['indexOf']('Container')>-0x1&&_0x2339e0['pop'](),_0x1b822f&&'text'==_0x1b822f['type']?_0x1b822f[_0x59be8f]+=_0x3e507c['data']:_0x2339e0['push']({'type':'text','add':'add'==_0x59be8f?_0x3e507c['data']:'','remove':'remove'==_0x59be8f?_0x3e507c['data']:''});else{if(this['_schema']['isObject'](_0x3e507c)){const _0x3305a9=_0x3e507c;if(_0x1b822f&&_0x1b822f['type']['indexOf']('Container')>-0x1&&_0x2339e0['pop'](),'elementEnd'==_0x180adb['type'])continue;_0x1b822f&&_0x1b822f['type']==_0x59be8f+'Object'&&_0x1b822f['element']['name']==_0x3305a9['name']?_0x1b822f['quantity']++:_0x2339e0['push']({'type':_0x59be8f+'Object','element':_0x3305a9,'quantity':0x1}),_0x4ffef6['skip'](_0x593d7a=>!('elementEnd'==_0x593d7a['type']&&_0x593d7a['item']==_0x3e507c));}else{if(this['_schema']['checkChild'](_0x3e507c,'$text')||_0x3e507c['is']('element','softBreak')){const _0x18e4bf=_0x3e507c;if('add'==_0x59be8f&&'elementStart'==_0x180adb['type']||'remove'==_0x59be8f&&'elementEnd'==_0x180adb['type'])continue;if(_0x1b822f&&-0x1==_0x1b822f['type']['indexOf']('Container')){'text'==_0x1b822f['type']&&(_0x1b822f[_0x59be8f]+='\x0a');continue;}let _0x4596b0;if(_0x4596b0='add'==_0x59be8f?_0x18e4bf['nextSibling']&&!this['_schema']['isObject'](_0x18e4bf['nextSibling'])?_0x18e4bf['nextSibling']:null:_0x18e4bf['previousSibling']&&!this['_schema']['isObject'](_0x18e4bf['previousSibling'])?_0x18e4bf['previousSibling']:null,_0x18e4bf['isEmpty']||_0x4596b0&&_0x4596b0['isEmpty']){const _0x17afcf=_0x4596b0&&_0x4596b0['isEmpty']?_0x4596b0:_0x18e4bf;_0x1b822f&&_0x1b822f['type']==_0x59be8f+'EmptyContainer'&&_0x1b822f['element']['name']==_0x17afcf['name']?_0x1b822f['quantity']++:_0x2339e0['push']({'type':_0x59be8f+'EmptyContainer','element':_0x17afcf,'quantity':0x1});}else _0x2339e0['push']({'type':_0x59be8f+'Container','element':_0x18e4bf});}}}}}['_resolveDescriptionItems'](_0x5617e2){const _0x40274e=this['_locale'],_0xa58ac9=[],_0x44a209=[],_0x2c6c89=[];for(const _0x3f96e3 of _0x5617e2)switch(_0x3f96e3['type']){case'text':if(_0x3f96e3['add']=_0x3f96e3['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3f96e3['remove']=_0x3f96e3['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3f96e3['add']&&''!=_0x3f96e3['remove']){_0xa58ac9['push']({'type':'replace','content':o(_0x40274e,'REPLACE_TEXT',['\x22'+_0x3f96e3['remove']+'\x22','\x22'+_0x3f96e3['add']+'\x22'])});continue;}if(null!=_0x3f96e3['add']['match'](/^ +$/)){_0xa58ac9['push']({'type':'insertion','content':o(_0x40274e,'*Insert:*\x20%0',o(_0x40274e,'ELEMENT_SPACE',_0x3f96e3['add']['length']))});continue;}if(null!=_0x3f96e3['remove']['match'](/^ +$/)){_0xa58ac9['push']({'type':'deletion','content':o(_0x40274e,'*Remove:*\x20%0',o(_0x40274e,'ELEMENT_SPACE',_0x3f96e3['remove']['length']))});continue;}if(''!=_0x3f96e3['add']){_0xa58ac9['push']({'type':'insertion','content':o(_0x40274e,'*Insert:*\x20%0','\x22'+_0x3f96e3['add']+'\x22')});continue;}_0xa58ac9['push']({'type':'deletion','content':o(_0x40274e,'*Remove:*\x20%0','\x22'+_0x3f96e3['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xa58ac9['push']({'type':'insertion','content':o(_0x40274e,'*Insert:*\x20%0',this['getItemLabel'](_0x3f96e3['element'],_0x3f96e3['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xa58ac9['push']({'type':'deletion','content':o(_0x40274e,'*Remove:*\x20%0',this['getItemLabel'](_0x3f96e3['element'],_0x3f96e3['quantity']))});continue;case'addContainer':_0xa58ac9['push']({'type':'insertion','content':o(_0x40274e,'*Split:*\x20%0',this['getItemLabel'](_0x3f96e3['element'],_0x3f96e3['quantity']))});continue;case'removeContainer':_0xa58ac9['push']({'type':'deletion','content':o(_0x40274e,'*Merge:*\x20%0',this['getItemLabel'](_0x3f96e3['element'],_0x3f96e3['quantity']))});continue;case'addFormat':_0x44a209['push'](_0x3f96e3['key']);continue;case'removeFormat':_0x2c6c89['push'](_0x3f96e3['key']);continue;default:_0xa58ac9['push'](_0x3f96e3);}if(_0x44a209['length']){const _0x42cb1a=_0x44a209['map'](_0x252a8f=>this['_attributeLabels']['has'](_0x252a8f)?this['_attributeLabels']['get'](_0x252a8f):_0x252a8f)['join'](',\x20');_0xa58ac9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x42cb1a)});}if(_0x2c6c89['length']){const _0x21bb8b=_0x2c6c89['map'](_0xfe99c=>this['_attributeLabels']['has'](_0xfe99c)?this['_attributeLabels']['get'](_0xfe99c):_0xfe99c)['join'](',\x20');_0xa58ac9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x21bb8b)});}return _0xa58ac9;}['_handleCustomCallbackDescription'](_0x203e98){for(const _0x4aa311 of this['_customCallbacks']){const _0x4dd62a=_0x4aa311(_0x203e98);if(_0x4dd62a&&'type'in _0x4dd62a)return _0x4dd62a;}}['_handleAttributeSuggestionDescription'](_0x38c24f,_0x5e6032){const _0x55e3a9=_0x5e6032['data'],_0x514fef=void 0x0===_0x55e3a9['newValue']?'removeFormat':'addFormat';_0x38c24f['push']({'type':_0x514fef,'key':_0x55e3a9['key']});}['_handleRenameSuggestionDescription'](_0x29ed83,_0x512a72){_0x29ed83['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x512a72['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1334e9,_0x1556ac,_0x2af475){if(this['_addDescriptionItems'](_0x1334e9,_0x1556ac),_0x2af475&&_0x2af475['getFirstRange']()&&!_0x1556ac['getFirstRange']()['end']['isEqual'](_0x2af475['getFirstRange']()['start'])){const _0x5bbaee=_0x1334e9[_0x1334e9['length']-0x1],_0x41b4ea='insertion'==_0x1556ac['type']?'add':'remove';_0x5bbaee&&'text'==_0x5bbaee['type']&&(_0x5bbaee[_0x41b4ea]+='\x0a');}}}class E extends _0x25de16{['afterInit'](){const _0x4151c2=this['editor'],_0x34ecfc=_0x4151c2['plugins']['get']('TrackChangesEditing');_0x4151c2['commands']['get']('showAIAssistant')&&_0x34ecfc['enableCommand']('showAIAssistant');}}class V extends _0x25de16{['afterInit'](){const _0x1cfe4b=this['editor'],_0x23df49=_0x1cfe4b['locale'];if(!_0x1cfe4b['plugins']['has']('AlignmentEditing'))return;const _0x58463b=_0x1cfe4b['plugins']['get']('TrackChangesEditing');_0x58463b['enableDefaultAttributesIntegration']('alignment'),_0x58463b['registerBlockAttribute']('alignment'),_0x58463b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x23df49,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22bcc8=this['editor'],_0x482ede=_0x22bcc8['locale'];_0x22bcc8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x880a36=>{if('formatBlock'!=_0x880a36['type'])return;const {data:_0xb70f36}=_0x880a36;if(_0xb70f36&&'alignment'==_0xb70f36['commandName']){const _0x2db595=_0xb70f36['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x482ede,'*Format:*\x20%0',function(_0x48017f){switch(_0x48017f){case'left':return o(_0x482ede,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x482ede,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x482ede,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x482ede,'FORMAT_JUSTIFY_TEXT');}}(_0x2db595))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x25de16{['afterInit'](){const _0x1d2d1b=this['editor'],_0x1ab6ac=_0x1d2d1b['plugins']['get']('TrackChangesEditing'),_0x31a1cb=_0x1d2d1b['locale'];for(const _0x143fde of ti){if(!_0x1d2d1b['plugins']['has'](_0x143fde))continue;const _0x4818d8=_0x143fde['slice'](0x0,-0x7)['toLowerCase'](),_0x1ebee6='FORMAT_'+_0x4818d8['toUpperCase']();_0x1ab6ac['enableDefaultAttributesIntegration'](_0x4818d8),_0x1ab6ac['registerInlineAttribute'](_0x4818d8),_0x1ab6ac['descriptionFactory']['registerAttributeLabel'](_0x4818d8,o(_0x31a1cb,_0x1ebee6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x492e4a=this['editor'],_0x438ce0=_0x492e4a['locale'],_0x3e53d1=_0x492e4a['plugins']['get']('TrackChangesEditing');function _0x54b5e8(_0x2dea20,_0x23465f){_0x3e53d1['descriptionFactory']['registerDescriptionCallback'](_0x24fcab=>{if('formatInline'!=_0x24fcab['type'])return;const {data:_0x54c0d2}=_0x24fcab;return _0x54c0d2&&_0x54c0d2['commandName']===_0x2dea20?_0x54c0d2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x438ce0,'*Format:*\x20%0',_0x23465f)}:{'type':'format','content':o(_0x438ce0,'*Remove\x20format:*\x20%0',_0x23465f)}:void 0x0;});}_0x54b5e8('bold',o(_0x438ce0,'FORMAT_BOLD')),_0x54b5e8('italic',o(_0x438ce0,'FORMAT_ITALIC')),_0x54b5e8('underline',o(_0x438ce0,'FORMAT_UNDERLINE')),_0x54b5e8('code',o(_0x438ce0,'FORMAT_CODE')),_0x54b5e8('strikethrough',o(_0x438ce0,'FORMAT_STRIKETHROUGH')),_0x54b5e8('subscript',o(_0x438ce0,'FORMAT_SUBSCRIPT')),_0x54b5e8('superscript',o(_0x438ce0,'FORMAT_SUPERSCRIPT'));}}class O extends _0x25de16{['afterInit'](){const _0x4de998=this['editor'],_0x132075=_0x4de998['locale'];if(!_0x4de998['plugins']['has']('BlockQuoteEditing'))return;const _0x204647=_0x4de998['plugins']['get']('TrackChangesEditing'),_0x11deff=this['editor']['commands']['get']('blockQuote');_0x204647['enableCommand']('blockQuote',(_0x4b806e,_0xc947a8={})=>{const _0x32de88=this['editor']['model']['document']['selection'],_0x487778=_0xc947a8&&void 0x0!==_0xc947a8['forceValue']?_0xc947a8['forceValue']:!_0x11deff['value'];let _0x44ec05=[];if(_0x487778){const _0x41ec34=Array['from'](_0x32de88['getSelectedBlocks']())['filter'](_0xfb6e88=>oo(_0xfb6e88)||function(_0x58112a,_0x59fa22){const _0x37ef85=_0x59fa22['checkChild'](_0x58112a['parent'],'blockQuote'),_0x27a370=_0x59fa22['checkChild'](['$root','blockQuote'],_0x58112a);return _0x37ef85&&_0x27a370;}(_0xfb6e88,this['editor']['model']['schema']));_0x44ec05=to(_0x41ec34,_0x4de998['model']);}else{const _0x117bf0=Array['from'](_0x32de88['getSelectedBlocks']())['filter'](_0x38ca85=>oo(_0x38ca85));_0x44ec05=to(_0x117bf0,_0x4de998['model']);}_0x4de998['model']['change'](()=>{for(const _0x2e6a15 of _0x44ec05)_0x204647['markBlockFormat'](_0x2e6a15,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x487778}]});});}),_0x204647['descriptionFactory']['registerDescriptionCallback'](_0x354aef=>{const {data:_0x11c484}=_0x354aef;if(_0x11c484&&'blockQuote'==_0x11c484['commandName']){const _0x4d6176=o(_0x132075,'ELEMENT_BLOCK_QUOTE');return _0x11c484['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x132075,'*Set\x20format:*\x20%0',_0x4d6176)}:{'type':'format','content':o(_0x132075,'*Remove\x20format:*\x20%0',_0x4d6176)};}});}}function oo(_0x48c881){return'blockQuote'==_0x48c881['parent']['name'];}class G extends _0x25de16{['afterInit'](){const _0xe118aa=this['editor'];_0xe118aa['plugins']['has']('CaseChange')&&(_0xe118aa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xe118aa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xe118aa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x25de16{['afterInit'](){const _0x12d0d5=this['editor'];_0x12d0d5['commands']['get']('ckbox')&&_0x12d0d5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x25de16{['afterInit'](){const _0x2a3b1c=this['editor'];if(!_0x2a3b1c['plugins']['has']('CodeBlock'))return;const _0x52a2c4=_0x2a3b1c['plugins']['get']('TrackChangesEditing'),_0x5d4cf4=_0x2a3b1c['locale'],_0x4b27e0=_0x2a3b1c['config']['get']('codeBlock')['languages'],_0x38b43f=_0x2a3b1c['commands']['get']('codeBlock');_0x52a2c4['enableCommand']('indentCodeBlock'),_0x52a2c4['enableCommand']('outdentCodeBlock'),_0x52a2c4['enableCommand']('codeBlock',(_0x30caff,_0x50e652={})=>{const _0x53ae34=_0x2a3b1c['model'],_0x35eebb=_0x2a3b1c['model']['document']['selection'],_0x228b70=_0x50e652&&void 0x0!==_0x50e652['forceValue']?_0x50e652['forceValue']:!_0x38b43f['value'];let _0x58c4d2;_0x50e652['language']||(_0x50e652['language']=_0x4b27e0[0x0]['language']),_0x58c4d2=_0x228b70?Array['from'](_0x35eebb['getSelectedBlocks']())['filter'](_0x54d651=>eo(_0x54d651)||function(_0x43870d,_0x33763a){if(_0x43870d['is']('rootElement')||_0x33763a['isLimit'](_0x43870d))return!0x1;return _0x33763a['checkChild'](_0x43870d['parent'],'codeBlock');}(_0x54d651,_0x53ae34['schema'])):Array['from'](_0x35eebb['getSelectedBlocks']())['filter'](_0x2ca0bc=>eo(_0x2ca0bc));const _0x5ab085=to(_0x58c4d2,_0x53ae34);_0x53ae34['change'](()=>{for(const _0x2d4ba9 of _0x5ab085)_0x52a2c4['markBlockFormat'](_0x2d4ba9,{'commandName':'codeBlock','commandParams':[{..._0x50e652,'forceValue':_0x228b70}],'formatGroupId':'blockName'});});}),(_0x52a2c4['descriptionFactory']['registerElementLabel']('codeBlock',_0x4e7eaa=>o(_0x5d4cf4,'ELEMENT_CODE_BLOCK',_0x4e7eaa)),_0x52a2c4['descriptionFactory']['registerDescriptionCallback'](_0x11387a=>{if('formatBlock'!=_0x11387a['type'])return;const _0x5de141=_0x5d4cf4['t'],{data:_0x9908c7}=_0x11387a;if(!_0x9908c7||'codeBlock'!=_0x9908c7['commandName'])return;const _0x315717=_0x9908c7['commandParams'][0x0]['language'],_0x49f122=_0x5de141(_0x4b27e0['find'](_0x5ed9a5=>_0x5ed9a5['language']===_0x315717)['label'])['toLowerCase']();return _0x9908c7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d4cf4,'*Set\x20format:*\x20%0',o(_0x5d4cf4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x49f122+')')}:{'type':'format','content':o(_0x5d4cf4,'*Remove\x20format:*\x20%0',o(_0x5d4cf4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x54c365){return'codeBlock'==_0x54c365['name'];}class H extends _0x25de16{['afterInit'](){const _0x41b398=this['editor'];if(!_0x41b398['plugins']['has']('CommentsEditing'))return;_0x41b398['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4995ca,_0x430223,_0x220d74){const _0x386d64=[];for(const _0x33b7a7 of _0x430223['getItems']())_0x33b7a7['hasAttribute'](_0x4995ca)&&_0x386d64['push'](_0x220d74['createRangeOn'](_0x33b7a7));return _0x386d64;}function _e(_0x2a8660,_0x29db0a,{showActiveMarker:_0x511c69=!0x0}={}){const _0x56e949=_0x2a8660['plugins']['get']('TrackChangesEditing');return(_0x802693,_0x4e87b7,_0x431520)=>{if(!_0x431520['consumable']['test'](_0x4e87b7['markerRange'],_0x802693['name']))return;const _0x2819aa=_0x4e87b7['markerRange']['getWalker'](),_0x20a197=_0x4e87b7['markerRange']['start'],_0x402ce8=_0x2a8660['model']['schema'];let _0x37facb=null,_0x97d80c=null,_0x3b8e55=!0x1,_0x2d4141=!0x1;for(const _0x200781 of _0x2819aa){const _0xca8c6a=_0x200781['item'];_0x3b8e55=_0x3b8e55||_0x402ce8['isContent'](_0xca8c6a);const _0x120fb1=_0x431520['mapper']['toViewElement'](_0xca8c6a);if(_0x120fb1&&_0x120fb1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x200781['type']&&(_0x402ce8['isBlock'](_0xca8c6a)&&!_0x402ce8['isLimit'](_0xca8c6a)&&(_0xca8c6a['nextSibling']||_0x20a197['isAtEnd']?_0x37facb&&_0x37facb['parent']==_0xca8c6a||(_0x37facb=_0xca8c6a,_0x781620(_0x200781['previousPosition']),_0x2d4141=!0x0):_0x97d80c=_0x97d80c||_0x200781['previousPosition']));}function _0x781620(_0x2d51fb){const _0xee8a98=_0x431520['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x29db0a}),_0xa0f05b=_0x431520['mapper']['toViewPosition'](_0x2d51fb);_0x511c69&&_0x56e949['activeMarkers']['includes'](_0x4e87b7['markerName'])&&_0x431520['writer']['addClass']('ck-suggestion-marker--active',_0xee8a98),_0x431520['writer']['insert'](_0xa0f05b,_0xee8a98),_0x431520['mapper']['bindElementToMarker'](_0xee8a98,_0x4e87b7['markerName']);}_0x3b8e55||_0x2d4141||!_0x97d80c||_0x781620(_0x97d80c);};}class q extends _0x25de16{static get['requires'](){return[_0x30159a];}['init'](){const _0x5cd5aa=this['editor'],_0x27dcb7=_0x5cd5aa['plugins']['get']('TrackChangesEditing');_0x27dcb7['enableCommand']('delete');const _0x1676d5=_0x5cd5aa['commands']['get']('deleteForward');_0x27dcb7['enableCommand']('deleteForward',(_0x3f24ee,_0x10ae5c={})=>{const _0x55bd3a=_0x5cd5aa['model']['createSelection'](_0x5cd5aa['model']['document']['selection']);_0x55bd3a['isCollapsed']&&_0x5cd5aa['model']['modifySelection'](_0x55bd3a,{'direction':'forward','unit':_0x10ae5c['unit']});const _0x4de9fc=_0x55bd3a['getFirstRange'](),_0x483310=_0x9c5a28['fromRange'](_0x4de9fc);let _0x271a57;_0x3f24ee(_0x10ae5c),_0x271a57='$graveyard'==_0x483310['root']['rootName']?_0x5cd5aa['model']['createRange'](_0x4de9fc['start']):_0x5cd5aa['model']['createRange'](_0x483310['start'],_0x483310['end']),_0x483310['detach'](),_0x5cd5aa['model']['enqueueChange'](_0x1676d5['buffer']['batch'],_0x457153=>{_0x1676d5['buffer']['lock'](),_0x457153['setSelection'](_0x457153['createRange'](_0x271a57['end'])),_0x1676d5['buffer']['unlock']();});}),_0x5cd5aa['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5cd5aa,'merge'),{'priority':'high'}),_0x5cd5aa['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2d181b,_0x3c560c,_0x57319e)=>{_0x57319e['options']['showSuggestionHighlights']&&_e(_0x5cd5aa,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2d181b,_0x3c560c,_0x57319e);},{'priority':'high'}),_0x5cd5aa['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x414106,_0x54899d,_0x117f94)=>{const _0x1f9245=_0x117f94['mapper']['markerNameToElements'](_0x54899d['markerName']);if(_0x1f9245){for(const _0xefa2cc of _0x1f9245)_0xefa2cc['is']('uiElement')&&(_0x117f94['mapper']['unbindElementFromMarkerName'](_0xefa2cc,_0x54899d['markerName']),_0x117f94['writer']['remove'](_0xefa2cc));}},{'priority':'high'});}}class z extends _0x25de16{['afterInit'](){const _0x2fd5c4=this['editor'];if(!_0x2fd5c4['plugins']['has']('ListEditing'))return;const _0x31c8ef=_0x2fd5c4['locale'],_0x1d59e3=_0x2fd5c4['plugins']['get']('TrackChangesEditing'),_0x1292d7=_0x2fd5c4['plugins']['has']('TodoListEditing'),_0x1673ec=!!_0x2fd5c4['config']['get']('list.multiBlock');function _0x3f3f17(_0x19d742){return{'type':'format','content':''+o(_0x31c8ef,'*Set\x20format:*\x20%0',_0x19d742)};}function _0x150547(_0x581fa4){return{'type':'format','content':''+o(_0x31c8ef,'*Remove\x20format:*\x20%0',_0x581fa4)};}_0x1d59e3['enableDefaultAttributesIntegration']('numberedList'),_0x1d59e3['enableDefaultAttributesIntegration']('bulletedList'),_0x1d59e3['enableDefaultAttributesIntegration']('customNumberedList'),_0x1d59e3['enableDefaultAttributesIntegration']('customBulletedList'),_0x1d59e3['enableDefaultAttributesIntegration']('indentList'),_0x1d59e3['enableDefaultAttributesIntegration']('outdentList'),_0x1d59e3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1d59e3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1d59e3['registerBlockAttribute']('listItemId'),_0x1d59e3['registerBlockAttribute']('listType'),_0x1d59e3['registerBlockAttribute']('listIndent'),_0x1673ec&&(_0x1d59e3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1d59e3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1292d7&&(_0x1d59e3['enableDefaultAttributesIntegration']('todoList'),_0x1d59e3['enableDefaultAttributesIntegration']('checkTodoList'),_0x1d59e3['registerBlockAttribute']('todoListChecked'),_0x1d59e3['descriptionFactory']['registerDescriptionCallback'](_0x4437a9=>{const {data:_0x1c8fa7}=_0x4437a9;if(_0x1c8fa7&&'todoListChecked'==_0x1c8fa7['key'])return{'type':'format','content':_0x1c8fa7['newValue']?o(_0x31c8ef,'*Check\x20item*'):o(_0x31c8ef,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x85337d=>{if(_0x85337d['batch']['isUndo'])return!0x1;let _0x2b63f3=!0x1;const _0x5476d0=_0x1d59e3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x321fde=>'todoListChecked'===_0x1d59e3['_getAttributeKey'](_0x321fde));for(const _0x2b37ad of _0x5476d0){'todo'!=_0x2b37ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1d59e3['_findSuggestions'](_0x2b37ad['getFirstRange'](),'attribute')['find'](_0x249f4c=>'listType'===_0x1d59e3['_getAttributeKey'](_0x249f4c['suggestion']))||(_0x85337d['removeMarker'](_0x2b37ad['getFirstMarker']()),_0x2b63f3=!0x0));}return _0x2b63f3;})),_0x1d59e3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x31c8ef,'FORMAT_INDENT'));const _0x1cfd49={'type':'format','content':''};_0x1d59e3['descriptionFactory']['registerDescriptionCallback'](_0x5b85a3=>{const {data:_0x236b0c}=_0x5b85a3;if(!_0x236b0c||'listType'!=_0x236b0c['key'])return;let _0x3876a0=_0x5b85a3['head'];for(;_0x3876a0;){if(_0x3876a0['data']&&(('listStyle'==_0x3876a0['data']['key']||'listMarkerStyle'==_0x3876a0['data']['key'])&&(_0x3876a0['data']['newValue']&&'default'!=_0x3876a0['data']['newValue']||'default'!=_0x3876a0['data']['oldValue']&&!_0x236b0c['newValue'])||!_0x1673ec&&_0x3876a0['data']['key']==m))return _0x1cfd49;_0x3876a0=_0x3876a0['next'];}if(null==_0x236b0c['newValue'])switch(_0x236b0c['oldValue']){case'bulleted':return _0x150547(o(_0x31c8ef,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x150547(o(_0x31c8ef,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x150547(o(_0x31c8ef,'ELEMENT_TODO_LIST'));}switch(_0x236b0c['newValue']){case'bulleted':return _0x3f3f17(o(_0x31c8ef,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f3f17(o(_0x31c8ef,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f3f17(o(_0x31c8ef,'ELEMENT_TODO_LIST'));}}),_0x1d59e3['descriptionFactory']['registerDescriptionCallback'](_0x59dc44=>{const {data:_0x4afbd9}=_0x59dc44;if(_0x4afbd9&&'listIndent'==_0x4afbd9['key'])return null==_0x4afbd9['newValue']||null==_0x4afbd9['oldValue']&&0x0==_0x4afbd9['newValue']?_0x1cfd49:void 0x0;}),_0x1d59e3['descriptionFactory']['registerDescriptionCallback'](_0x2dcd9b=>{if('attribute'!=_0x2dcd9b['type'])return;const {data:_0x176d97}=_0x2dcd9b;if(!_0x176d97||'listItemId'!=_0x176d97['key'])return;const _0x3ed0cb=le(_0x2dcd9b);return'newValue'==_0x3ed0cb?{'type':'format','content':o(_0x31c8ef,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3ed0cb?{'type':'format','content':o(_0x31c8ef,'*Split:*\x20list\x20item')}:_0x1cfd49;}),_0x2fd5c4['model']['document']['registerPostFixer'](_0x3fa32d=>this['listItemIdFixer'](_0x3fa32d)),_0x2fd5c4['model']['document']['registerPostFixer'](_0xe5d4a4=>this['noTrackChangesFixer'](_0xe5d4a4)),_0x2fd5c4['model']['document']['registerPostFixer'](_0xa9cef7=>this['assureChains'](_0xa9cef7)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4cfda4){if(_0x4cfda4['batch']['isUndo']||!_0x4cfda4['batch']['isLocal'])return!0x1;let _0x2ca46f=!0x1;const _0x4b9641=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x897a83=>_0x897a83['data']&&'listItemId'==_0x897a83['data']['key'])['filter'](_0x3c5a1c=>_0x3c5a1c['data']['newValue']&&_0x3c5a1c['data']['oldValue']);for(const _0x5569f2 of _0x4b9641)le(_0x5569f2)||(_0x4cfda4['removeMarker'](_0x5569f2['getFirstMarker']()),_0x2ca46f=!0x0);return _0x2ca46f;}['noTrackChangesFixer'](_0x3733de){if(_0x3733de['batch']['isUndo']||!_0x3733de['batch']['isLocal'])return!0x1;const _0x412ad9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x412ad9['trackChangesCommand']['value'])return!0x1;let _0x1f6814=!0x1;const _0x510eb6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x15b985=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x23fe72=>'attribute'==_0x23fe72['type'])['filter'](_0x2b3245=>_0x510eb6['includes'](_0x2b3245['attributeKey']));if(0x0==_0x15b985['length'])return _0x1f6814;for(const _0x22d5d5 of _0x15b985){const _0x4cfd70=_0x412ad9['_findSuggestions'](_0x22d5d5['range'],'attribute')['filter'](_0x45837e=>!_0x45837e['meta']['isNextTo'])['map'](_0x5aba44=>_0x5aba44['suggestion'])['filter'](_0x3837fb=>{const _0x43723d=_0x412ad9['_getAttributeKey'](_0x3837fb);return _0x510eb6['includes'](_0x43723d);});if(_0x4cfd70['length']){for(const _0x4842b5 of _0x4cfd70)_0x3733de['removeMarker'](_0x4842b5['getFirstMarker']());_0x1f6814=!0x0;}}return _0x1f6814;}['assureChains'](_0x59b314){if(_0x59b314['batch']['isUndo']||!_0x59b314['batch']['isLocal'])return!0x1;const _0x5057b3=this['editor']['plugins']['get']('TrackChangesEditing');let _0x157668=!0x1;const _0x407113=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5f23b2 of _0x5057b3['getSuggestions']({'skipNotAttached':!0x0})){const _0x879da1=_0x5057b3['_findSuggestions'](_0x5f23b2['getFirstRange'](),'attribute')['map'](_0x22fd43=>_0x22fd43['suggestion'])['filter'](_0x4d3d3e=>_0x4d3d3e['data']&&_0x407113['includes'](_0x4d3d3e['data']['key']));if(!_0x879da1['length'])continue;const _0x25b284=_0x879da1[0x0]['head']['attributes']['groupId'];if(!_0x879da1['every'](_0x19b9b8=>_0x19b9b8['attributes']['groupId']===_0x25b284)){for(const _0x85846 of _0x879da1)_0x11df39(_0x85846,_0x25b284)&&(_0x157668=!0x0);}}return _0x157668;function _0x4e0fc6(_0x2d0887,_0x34805b){for(const _0xc7e4b1 of _0x5057b3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c99fd=>'attribute'==_0x1c99fd['type']&&_0x1c99fd['attributes']['groupId']==_0x2d0887))_0xc7e4b1['setAttribute']('groupId',_0x34805b);}function _0x11df39(_0x49b65c,_0x37ef99){let _0x1c3e81=_0x49b65c['head'],_0x4d3077=!0x1;for(;_0x1c3e81;)_0x1c3e81['attributes']['groupId']!=_0x37ef99&&(_0x4e0fc6(_0x1c3e81['attributes']['groupId'],_0x37ef99),_0x1c3e81['setAttribute']('groupId',_0x37ef99),_0x4d3077=!0x0),_0x1c3e81=_0x1c3e81['next'];return _0x4d3077;}}['_supportLegacySuggestions'](){const _0x2f6395=this['editor'],_0x257c6a=_0x2f6395['locale'],_0x3dd271=_0x2f6395['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3dd271['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a0558,_0xda664b){const _0x418b40=[];for(let _0x44d907 of _0x1a0558)_0x44d907['start']['nodeAfter']===_0x44d907['end']['parent']&&(_0x44d907=_0x2f6395['model']['createRange'](_0x2f6395['model']['createPositionAt'](_0x44d907['start']['nodeAfter'],0x0))),_0x418b40['push'](_0x44d907);_0x2f6395['model']['change'](_0x44b2fe=>{const _0x4a7bc7=_0x2f6395['model']['document']['selection'],_0x11c18c=Array['from'](_0x4a7bc7['getRanges']())['map'](_0x439330=>_0x9c5a28['fromRange'](_0x439330));_0x44b2fe['setSelection'](_0x418b40),_0x2f6395['commands']['get'](_0xda664b['commandName'])['refresh'](),_0xda664b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2f6395['execute'](_0xda664b['commandName'],..._0xda664b['commandParams']),_0x44b2fe['setSelection'](_0x11c18c);for(const _0x48f2de of _0x11c18c)_0x48f2de['detach']();});}),_0x3dd271['descriptionFactory']['registerElementLabel'](function(_0x11073f){const _0x30234c=!_0x2f6395['model']['schema']['isObject'](_0x11073f),_0x2bd06d=_0x11073f['previousSibling'],_0x2800d8=_0x11073f['nextSibling'],_0x136bf3=_0x11073f['getAttribute']('listItemId'),_0x319cf6=!_0x2bd06d||_0x2bd06d['getAttribute']('listItemId')!==_0x136bf3,_0x544f77=!_0x2800d8||_0x2800d8['getAttribute']('listItemId')!==_0x136bf3;return _0x30234c&&Boolean(_0x136bf3)&&_0x319cf6&&_0x544f77;},_0x4521fd=>o(_0x257c6a,'ELEMENT_LIST_ITEM',_0x4521fd));}['_registerLegacyDescription'](){const _0x19a6c1=this['editor'],_0x5a980e=_0x19a6c1['locale'];function _0x1be22a(_0x5ac3c4){const _0x9a49c=_0x19a6c1['commands']['get']('bulletedList')['value'],_0x370cb3=_0x19a6c1['commands']['get']('numberedList')['value'];return'numberedList'===_0x5ac3c4?_0x9a49c:_0x370cb3;}_0x19a6c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x46fcb6){if('formatBlock'!=_0x46fcb6['type'])return;const {data:_0x32c50c}=_0x46fcb6;if(!_0x32c50c)return;let _0x407035,_0x235fef,_0xa2d6e,_0x31da6b;switch(_0x32c50c['commandName']){case'bulletedList':_0xa2d6e=_0x32c50c['commandParams'][0x0]['forceValue'],_0x31da6b=_0x1be22a(_0x32c50c['commandName']),_0x407035=_0xa2d6e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31da6b&&_0x19a6c1['config']['get']('list.multiBlock')||(_0x407035='*Change\x20to:*\x20%0'),_0x235fef={'type':'format','content':o(_0x5a980e,_0x407035,o(_0x5a980e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xa2d6e=_0x32c50c['commandParams'][0x0]['forceValue'],_0x31da6b=_0x1be22a(_0x32c50c['commandName']),_0x407035=_0xa2d6e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31da6b&&_0x19a6c1['config']['get']('list.multiBlock')||(_0x407035='*Change\x20to:*\x20%0'),_0x235fef={'type':'format','content':o(_0x5a980e,_0x407035,o(_0x5a980e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x407035='*Indent:*\x20%0',_0x235fef={'type':'format','content':o(_0x5a980e,_0x407035,o(_0x5a980e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x407035=function(_0x215464){const _0x170760=_0x215464['getFirstRange']();let _0x332ceb=_0x170760['start']['nodeAfter'];for(;_0x332ceb&&_0x170760['containsItem'](_0x332ceb);){if(_0x332ceb['getAttribute']('listIndent')>0x0)return!0x1;_0x332ceb=_0x332ceb['nextSibling'];}return!0x0;}(_0x46fcb6)?o(_0x5a980e,'*Format:*\x20remove\x20from\x20%0',o(_0x5a980e,function(_0x16e8bb){return'ELEMENT_'+_0x16e8bb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x46fcb6))):o(_0x5a980e,'*Outdent:*\x20%0',o(_0x5a980e,'ELEMENT_LIST_ITEM')),_0x235fef={'type':'format','content':_0x407035};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x32c50c['multipleBlocks']&&(_0x407035='*Merge:*\x20%0',_0x235fef={'type':'deletion','content':o(_0x5a980e,_0x407035,o(_0x5a980e,'ELEMENT_LIST_ITEM'))});}return _0x235fef;});}}function le(_0x1ca1c7){let _0x28d1fd=_0x1ca1c7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x28d1fd;){const _0x3ac92a=_0x28d1fd['getAttribute']('listItemId');if(!_0x3ac92a)return!0x1;if(_0x3ac92a==_0x1ca1c7['data']['newValue'])return'newValue';if(_0x3ac92a==_0x1ca1c7['data']['oldValue'])return'oldValue';_0x28d1fd=_0x28d1fd['previousSibling'];}return!0x1;}class ue extends _0x25de16{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3c79bb=this['editor']['config']['get']('list.properties'),_0x47b738=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c79bb['styles']&&(_0x47b738['enableDefaultAttributesIntegration']('listStyle'),_0x47b738['registerBlockAttribute']('listStyle')),_0x3c79bb['reversed']&&(_0x47b738['enableDefaultAttributesIntegration']('listReversed'),_0x47b738['registerBlockAttribute']('listReversed')),_0x3c79bb['startIndex']&&(_0x47b738['enableDefaultAttributesIntegration']('listStart'),_0x47b738['registerBlockAttribute']('listStart'));const _0x5d790c={'type':'format','content':''};_0x47b738['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1894c8=this['editor']['locale'];_0x47b738['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1894c8,'FORMAT_LIST_REVERSED')),_0x47b738['descriptionFactory']['registerDescriptionCallback'](_0x33d701=>{const {data:_0x20507d}=_0x33d701;if(_0x20507d&&'listReversed'==_0x20507d['key'])return null==_0x20507d['newValue']||0x0==_0x20507d['newValue']&&null==_0x20507d['oldValue']?_0x5d790c:void 0x0;}),_0x47b738['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1894c8,'FORMAT_LIST_START')),_0x47b738['descriptionFactory']['registerDescriptionCallback'](_0x168d1e=>{const {data:_0x3a8fb5}=_0x168d1e;if(_0x3a8fb5&&'listStart'==_0x3a8fb5['key'])return null==_0x3a8fb5['newValue']||0x1==_0x3a8fb5['newValue']&&null==_0x3a8fb5['oldValue']?_0x5d790c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa810a8=>{if(_0xa810a8['batch']['isUndo'])return!0x1;let _0x3cc22d=!0x1;const _0x4ac8e8=_0x47b738['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb1b509=>{const _0x14b1ce=_0x47b738['_getAttributeKey'](_0xb1b509);return'listStart'==_0x14b1ce||'listReversed'==_0x14b1ce;});for(const _0x334f5b of _0x4ac8e8){const _0x5844a8=_0x334f5b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5844a8||'customNumbered'==_0x5844a8)continue;_0x47b738['_findSuggestions'](_0x334f5b['getFirstRange'](),'attribute')['find'](_0x592dea=>'listType'==_0x47b738['_getAttributeKey'](_0x592dea['suggestion']))||(_0xa810a8['removeMarker'](_0x334f5b['getFirstMarker']()),_0x3cc22d=!0x0);}return _0x3cc22d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4755ab){const _0x55ed07=this['editor']['locale'],{data:_0xa1dba5}=_0x4755ab,_0x33e288={'type':'format','content':''};if(!_0xa1dba5||'listStyle'!=_0xa1dba5['key'])return;if(!_0xa1dba5['oldValue'])return'default'==_0xa1dba5['newValue']?_0x33e288:{'type':'format','content':''+o(_0x55ed07,'*Set\x20format:*\x20%0',o(_0x55ed07,this['_getTranslationKeyForListStyle'](_0xa1dba5['newValue'])))};if(!_0xa1dba5['newValue']){if('default'==_0xa1dba5['oldValue'])return _0x33e288;let _0x55f668=_0x4755ab['head'];for(;_0x55f668;){if(_0x55f668['data']&&'listType'==_0x55f668['data']['key']&&_0x55f668['data']['newValue'])return _0x33e288;_0x55f668=_0x55f668['next'];}return{'type':'format','content':''+o(_0x55ed07,'*Remove\x20format:*\x20%0',o(_0x55ed07,this['_getTranslationKeyForListStyle'](_0xa1dba5['oldValue'])))};}if('default'!=_0xa1dba5['newValue'])return{'type':'format','content':''+o(_0x55ed07,'*Set\x20format:*\x20%0',o(_0x55ed07,this['_getTranslationKeyForListStyle'](_0xa1dba5['newValue'])))};let _0x3c6701=_0x4755ab['head'];for(;_0x3c6701;){if(_0x3c6701['data']&&'listType'==_0x3c6701['data']['key']&&_0x3c6701['data']['newValue']&&_0x3c6701['data']['oldValue'])return _0x33e288;_0x3c6701=_0x3c6701['next'];}return{'type':'format','content':o(_0x55ed07,'*Set\x20format:*\x20%0',o(_0x55ed07,'ELEMENT_'+_0x4755ab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4cf264=this['editor'],_0x40b8a3=_0x4cf264['locale'];_0x4cf264['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1752c5=>{if('formatBlock'!=_0x1752c5['type'])return;const {data:_0x193466}=_0x1752c5;if(!_0x193466)return;let _0x2dddfe,_0x1e1970;switch(_0x193466['commandName']){case'listStyle':_0x2dddfe='*Change\x20to:*\x20%0',_0x1e1970={'type':'format','content':o(_0x40b8a3,_0x2dddfe,o(_0x40b8a3,this['_getTranslationKeyForListStyle'](_0x193466['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2dddfe=_0x193466['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1e1970={'type':'format','content':o(_0x40b8a3,_0x2dddfe)};break;case'listStart':_0x2dddfe='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1e1970={'type':'format','content':o(_0x40b8a3,_0x2dddfe,_0x193466['commandParams'][0x0]['startIndex'])};}return _0x1e1970;});}['_getTranslationKeyForListStyle'](_0x30284e){return'ELEMENT_'+function(_0x1e083c){if(pe['includes'](_0x1e083c))return'bulleted';if(ye['includes'](_0x1e083c))return'numbered';return null;}(_0x30284e)['toUpperCase']()+'_LIST_'+_0x30284e['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x25de16{static get['requires'](){return[_0x49efa2];}['init'](){const _0x39c48d=this['editor'],_0x5281e9=_0x39c48d['plugins']['get']('TrackChangesEditing'),_0xd1e2cc=_0x39c48d['commands']['get']('enter');_0x5281e9['enableCommand']('enter',()=>{_0x39c48d['model']['change'](_0x5e59b5=>{const _0x532b5a=_0x39c48d['model']['document']['selection'],_0x590cd6=_0x532b5a['getFirstPosition'](),_0x249795=_0x9c5a28['fromRange'](_0x532b5a['getFirstRange']());if(_0xd1e2cc['enterBlock'](_0x5e59b5)){const _0x3116fe=_0x39c48d['model']['createPositionAt'](_0x590cd6['parent']['nextSibling'],0x0),_0x2c7e68=_0x5e59b5['createRange'](_0x590cd6,_0x3116fe);_0x5281e9['markInsertion'](_0x2c7e68);}else _0x5e59b5['setSelection'](_0x5e59b5['createRange'](_0x249795['end']));_0x249795['detach'](),_0xd1e2cc['fire']('afterExecute',{'writer':_0x5e59b5});});}),_0x39c48d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x39c48d,'split'),{'priority':'high'}),_0x39c48d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5039f6,_0x3cce3e,_0x5f6654)=>{const _0x395551=_0x5f6654['mapper']['markerNameToElements'](_0x3cce3e['markerName']);if(_0x395551){for(const _0x8aa36b of _0x395551)_0x8aa36b['hasClass']('ck-suggestion-marker-split')&&(_0x5f6654['mapper']['unbindElementFromMarkerName'](_0x8aa36b,_0x3cce3e['markerName']),_0x5f6654['writer']['remove'](_0x8aa36b));}},{'priority':'high'}),_0x39c48d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x469dab,_0x343aaf,_0x35c61b)=>{_0x35c61b['options']['showSuggestionHighlights']&&_e(_0x39c48d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x469dab,_0x343aaf,_0x35c61b);},{'priority':'high'});}}class J extends _0x25de16{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x41a1d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x41a1d7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x41a1d7['enableCommand']('findNext'),_0x41a1d7['enableCommand']('findPrevious'),_0x41a1d7['enableCommand']('replace'),_0x41a1d7['enableCommand']('replaceAll');}['handleFindCommand'](_0x80874e,_0x102ba0,_0x277e8f={}){const _0x11645c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x80874e(_0x504ae2=>('string'==typeof _0x102ba0?_0x11645c['findByTextCallback'](_0x102ba0,_0x277e8f):_0x102ba0)(_0x504ae2)['filter'](_0x3d8db3=>!0x1===this['_isInDeletionRange'](_0x3d8db3,_0x504ae2['item'])),_0x277e8f);}['_isInDeletionRange'](_0x5f32b5,_0x27d5e4){const _0x546931=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27d5e4,_0x5f32b5['start']),this['editor']['model']['createPositionAt'](_0x27d5e4,_0x5f32b5['end']));for(const _0x10b3d9 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x546931['getIntersection'](_0x10b3d9['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 _0x25de16{['afterInit'](){const _0x585422=this['editor']['locale'],_0x25b56d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x15281e,commandName:_0x539884}of ro)this['editor']['plugins']['has'](_0x15281e)&&(_0x25b56d['enableDefaultAttributesIntegration'](_0x539884),_0x25b56d['registerInlineAttribute'](_0x539884));_0x585422['t'],_0x25b56d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x585422,'FORMAT_FONT_SIZE')),_0x25b56d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x585422,'FORMAT_FONT_FAMILY')),_0x25b56d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x585422,'FORMAT_FONT_COLOR')),_0x25b56d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x585422,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1607ba=this['editor'],_0xa28ae3=_0x1607ba['locale'];_0x1607ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x438333=>{const _0x49532f=_0xa28ae3['t'];if('formatInline'!=_0x438333['type'])return;const {data:_0x1ac0d0}=_0x438333;if(null!=_0x1ac0d0){if('fontSize'==_0x1ac0d0['commandName']){const _0x24d356=_0x1ac0d0['commandParams'][0x0]['value'];if(_0x24d356){const _0x3451db=_0x49532f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3f51fc=>_0x3f51fc['model']==_0x24d356)['title'])['toLowerCase']();return{'type':'format','content':o(_0xa28ae3,'*Set\x20font\x20size:*\x20%0',_0x3451db)};}return{'type':'format','content':o(_0xa28ae3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1ac0d0['commandName']){const _0x1ac8e3=_0x1ac0d0['commandParams'][0x0]['value'];return _0x1ac8e3?{'type':'format','content':o(_0xa28ae3,'*Set\x20font\x20family:*\x20%0',_0x1ac8e3)}:{'type':'format','content':o(_0xa28ae3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1ac0d0['commandName']){const _0x45e93f=_0x1ac0d0['commandParams'][0x0]['value'];if(_0x45e93f){const _0x18505f=_0x448f83(this['editor']['config']['get']('fontColor.colors'))['find'](_0x167fb0=>_0x167fb0['model']==_0x45e93f);let _0xe7cd5e=_0x45e93f,_0x129cdc='';return _0x18505f&&(_0xe7cd5e=_0x18505f['label'],_0x129cdc=_0x49532f(_0xe7cd5e)['toLowerCase']()),{'type':'format','content':o(_0xa28ae3,'*Set\x20font\x20color:*\x20%0',_0x129cdc)['trim'](),'color':{'value':_0x45e93f,'title':_0x129cdc||_0xe7cd5e}};}return{'type':'format','content':o(_0xa28ae3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1ac0d0['commandName']){const _0x258bf0=_0x1ac0d0['commandParams'][0x0]['value'];if(_0x258bf0){const _0x3909d0=_0x448f83(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x546e46=>_0x546e46['model']==_0x258bf0);let _0x1ecfac=_0x258bf0,_0x2f15a4='';return _0x3909d0&&(_0x1ecfac=_0x3909d0['label'],_0x2f15a4=_0x49532f(_0x1ecfac)['toLowerCase']()),{'type':'format','content':o(_0xa28ae3,'*Set\x20font\x20background\x20color:*\x20%0',_0x2f15a4)['trim'](),'color':{'value':_0x258bf0,'title':_0x2f15a4||_0x1ecfac}};}return{'type':'format','content':o(_0xa28ae3,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x25de16{['afterInit'](){const _0x594b19=this['editor'],_0x22f6ac=_0x594b19['plugins']['get']('TrackChangesEditing'),_0x144c78=_0x594b19['commands']['get']('copyFormat'),_0x374201=_0x594b19['commands']['get']('pasteFormat');_0x144c78&&_0x374201&&(_0x22f6ac['enableDefaultAttributesIntegration']('pasteFormat'),_0x22f6ac['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x32f287=this['editor'],_0x141b64=_0x32f287['locale'];_0x32f287['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1f07=>{if('formatBlock'!=_0x4a1f07['type']&&'formatInline'!=_0x4a1f07['type'])return;const {data:_0x1cf2d9}=_0x4a1f07;if(_0x1cf2d9&&'pasteFormat'===_0x1cf2d9['commandName']){const _0x48945e=[],_0x4dfaea=_0x1cf2d9['commandParams'][0x0];for(const [_0x4e2a3f,_0x8416a0]of Object['entries'](_0x4dfaea))_0x48945e['push'](so(_0x32f287,_0x4e2a3f,_0x8416a0));return _0x48945e['length']?{'type':'format','content':o(_0x141b64,'*Set\x20format\x20to:*\x20%0',_0x48945e['join'](',\x20'))}:{'type':'format','content':o(_0x141b64,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1af53c,_0x25f56c,_0x12615f){const _0x698629=_0x1af53c['locale']['t'],_0x4797be=_0x25f56c['split'](/(?=[A-Z])/)['join']('\x20'),_0x9497e5=_0x698629(_0x4797be['charAt'](0x0)['toUpperCase']()+_0x4797be['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x12615f)return _0x9497e5;if('fontColor'===_0x25f56c||'fontBackgroundColor'===_0x25f56c){const _0x570370=_0x448f83(_0x1af53c['config']['get']('fontColor.colors'))['find'](_0x67f8c4=>_0x67f8c4['model']==_0x12615f);return _0x9497e5+'\x20('+(_0x570370?_0x698629(_0x570370['label'])['toLowerCase']():_0x12615f)+')';}if('fontSize'===_0x25f56c&&isNaN(parseFloat(_0x12615f))){const _0x398cc3=_0x1af53c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1af53c['config']['get']('fontSize.options'))['find'](_0x20ae12=>_0x20ae12['model']==_0x12615f);return _0x9497e5+'\x20('+(_0x398cc3?_0x698629(_0x398cc3['title'])['toLowerCase']():_0x12615f)+')';}return _0x9497e5+'\x20('+_0x12615f+')';}class Y extends _0x25de16{['_headingOptions'];['afterInit'](){const _0x5f0bd7=this['editor'];if(!_0x5f0bd7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f0bd7['config']['get']('heading.options');const _0x55f490=_0x5f0bd7['locale'],_0x2f438f=_0x5f0bd7['plugins']['get']('TrackChangesEditing');_0x2f438f['enableDefaultAttributesIntegration']('heading');for(const _0x560b72 of this['_headingOptions'])'paragraph'!=_0x560b72['model']&&_0x2f438f['descriptionFactory']['registerElementLabel'](_0x560b72['model'],_0x52df84=>{const _0x43bdb8=this['_getHeadingLevel'](_0x560b72['model']);return null!==_0x43bdb8?_0x214cc9(_0x52df84,_0x43bdb8):_0x15b549(_0x52df84,_0x560b72['title']);});function _0x214cc9(_0x154c1f,_0x3b2410){return o(_0x55f490,'ELEMENT_HEADING',[_0x154c1f,_0x3b2410]);}function _0x15b549(_0x1c576b,_0x2f900f){return o(_0x55f490,'ELEMENT_HEADING_CUSTOM',[_0x1c576b,_0x2f900f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x497026=this['editor'],_0x37db00=_0x497026['locale'];function _0x12c3f3(_0x842fc5,_0x48a2fe){return o(_0x37db00,'ELEMENT_HEADING_CUSTOM',[_0x842fc5,_0x48a2fe]);}_0x497026['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x488b8d=>{if('formatBlock'!=_0x488b8d['type'])return;const {data:_0x162b72}=_0x488b8d;if(_0x162b72&&'heading'==_0x162b72['commandName']){const _0x1ec64f=_0x162b72['commandParams'][0x0]['value'],_0x165e3f=this['_getHeadingLevel'](_0x1ec64f);if(null!==_0x165e3f)return{'type':'format','content':o(_0x37db00,'*Change\x20to:*\x20%0',(_0x5e30e6=0x1,_0xfe31af=_0x165e3f,o(_0x37db00,'ELEMENT_HEADING',[_0x5e30e6,_0xfe31af])))};const _0x399a48=this['_headingOptions']['find'](_0x13724a=>_0x13724a['model']===_0x1ec64f)['title'];return{'type':'format','content':o(_0x37db00,'*Change\x20to:*\x20%0',_0x12c3f3(0x1,_0x399a48))};}var _0x5e30e6,_0xfe31af;});}['_getHeadingLevel'](_0x3593ec){const _0x59a5e9=_0x3593ec['match'](/^heading(\d+)/);if(_0x59a5e9)return _0x59a5e9[0x1];const _0x513a72=this['_headingOptions']?.['find'](_0x5c64a7=>_0x5c64a7['model']==_0x3593ec);if(_0x513a72&&_0x513a72['view']){const _0x327ee6=_0x513a72['view'],_0x480879=(_0x327ee6['name']??_0x327ee6)['match'](/^h(\d+)/);if(_0x480879)return _0x480879[0x1];}return null;}}class Z extends _0x25de16{['afterInit'](){const _0x26e6b7=this['editor'];if(!_0x26e6b7['plugins']['has']('HighlightEditing'))return;const _0x3f3050=_0x26e6b7['plugins']['get']('TrackChangesEditing'),_0x1d5220=_0x26e6b7['locale'];_0x3f3050['enableDefaultAttributesIntegration']('highlight'),_0x3f3050['registerInlineAttribute']('highlight'),_0x3f3050['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1d5220,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ca8f5=this['editor'],_0x22b9ee=_0x1ca8f5['locale'];_0x1ca8f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cb532=>{if('formatInline'!=_0x5cb532['type'])return;const {data:_0x3152c3}=_0x5cb532;if(_0x3152c3&&'highlight'==_0x3152c3['commandName']){const _0x2bd89a=_0x22b9ee['t'],_0x330f7e=_0x3152c3['commandParams'][0x0]['value'];if(_0x330f7e){const _0x5aeff1=_0x1ca8f5['config']['get']('highlight.options')['find'](_0x58394e=>_0x58394e['model']==_0x330f7e),_0x1806c6=_0x2bd89a(_0x5aeff1['title'])['toLowerCase']();return{'type':'format','content':o(_0x22b9ee,'*Set\x20highlight:*\x20%0',_0x1806c6),'color':{'value':_0x5aeff1['color'],'title':_0x5aeff1['title']}};}return{'type':'format','content':o(_0x22b9ee,'*Remove\x20highlight*',o(_0x22b9ee,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x25de16{['afterInit'](){const _0x1bbdff=this['editor'];if(!_0x1bbdff['plugins']['has']('HorizontalLineEditing'))return;_0x1bbdff['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1123ff=_0x1bbdff['plugins']['get']('TrackChangesEditing'),_0x3da0a7=_0x1bbdff['locale'];_0x1123ff['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4359dc=>o(_0x3da0a7,'ELEMENT_HORIZONTAL_LINE',_0x4359dc)),_0x1bbdff['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x280e56,{writer:_0x17705c,options:_0x23ea4b})=>{if(!_0x23ea4b['showSuggestionHighlights'])return null;const _0x2f5cce=_0x17705c['createContainerElement']('div'),_0x908ae9=_0x17705c['createEmptyElement']('hr');return _0x17705c['addClass']('ck-horizontal-line',_0x2f5cce),_0x17705c['insert'](_0x17705c['createPositionAt'](_0x2f5cce,0x0),_0x908ae9),_0x2f5cce;},'converterPriority':'high'});}}class et extends _0x25de16{['afterInit'](){const _0x1f70c1=this['editor'];if(!_0x1f70c1['plugins']['has']('HtmlEmbed'))return;const _0x1e1215=_0x1f70c1['plugins']['get']('TrackChangesEditing'),_0x5a26fd=_0x1f70c1['locale'];_0x1e1215['descriptionFactory']['registerElementLabel']('rawHtml',_0x3acc0b=>o(_0x5a26fd,'ELEMENT_HTML_EMBED',_0x3acc0b)),_0x1e1215['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1e1215['registerBlockAttribute']('value'),_0x1e1215['descriptionFactory']['registerDescriptionCallback'](_0x4e6dc0=>{if('attribute'!=_0x4e6dc0['type'])return;const {data:_0x283956}=_0x4e6dc0;if(_0x283956&&'value'==_0x283956['key']&&_0x4e6dc0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x33f46f=o(_0x5a26fd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5a26fd,'*Change\x20%0\x20content*',_0x33f46f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d5530=this['editor'],_0x32c2d=_0x3d5530['locale'];_0x3d5530['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bfa45=>{if('formatBlock'!=_0x4bfa45['type'])return;const {data:_0x36abbc}=_0x4bfa45;if(_0x36abbc&&'htmlEmbed'==_0x36abbc['commandName']){const _0x5bc587=o(_0x32c2d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x32c2d,'*Change\x20%0\x20content*',_0x5bc587)};}});}}class it extends _0x25de16{['afterInit'](){const _0x16f859=this['editor'];if(!_0x16f859['plugins']['has']('ImageEditing'))return;const _0x493f78=_0x16f859['plugins']['get']('TrackChangesEditing'),_0x25f5c0=_0x16f859['plugins']['get']('ImageUtils'),_0x2234b2=_0x16f859['locale'];_0x493f78['enableCommand']('insertImage'),_0x493f78['descriptionFactory']['registerElementLabel']('imageBlock',_0x397eef=>o(_0x2234b2,'ELEMENT_IMAGE',_0x397eef)),_0x493f78['descriptionFactory']['registerElementLabel']('imageInline',_0x3a94cd=>o(_0x2234b2,'ELEMENT_INLINE_IMAGE',_0x3a94cd)),_0x493f78['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2234b2,'ELEMENT_CAPTION')),_0x16f859['plugins']['has']('ImageUploadEditing')&&_0x493f78['enableCommand']('uploadImage'),_0x16f859['plugins']['has']('ImageBlockEditing')&&_0x16f859['plugins']['has']('ImageInlineEditing')&&(_0x493f78['enableCommand']('imageTypeInline',(_0x393b47,_0x9a7fe1)=>{const _0x4cd86b=_0x25f5c0['getClosestSelectedImageElement'](_0x16f859['model']['document']['selection']);_0x16f859['model']['change'](()=>{_0x493f78['markBlockFormat'](_0x4cd86b,{'commandName':'imageTypeInline','commandParams':[_0x9a7fe1]},[],'convertBlockImageToInline');});}),_0x493f78['enableCommand']('imageTypeBlock',(_0xd790ed,_0x1c1c22)=>{_0x16f859['model']['change'](_0x1361e9=>{let _0x294467=_0x25f5c0['getClosestSelectedImageElement'](_0x16f859['model']['document']['selection']),_0x2c26a2=_0x1361e9['createRangeOn'](_0x294467);const _0x2c147c=_0x6ce200['fromPosition'](_0x2c26a2['start'],'toPrevious'),_0x452b9d=_0x6ce200['fromPosition'](_0x2c26a2['end'],'toNext');_0x493f78['forceDefaultExecution'](()=>_0xd790ed(_0x1c1c22)),_0x294467=_0x25f5c0['getClosestSelectedImageElement'](_0x16f859['model']['document']['selection']),_0x2c26a2=_0x1361e9['createRangeOn'](_0x294467);const _0x2319b2=_0x1361e9['createRange'](_0x2c147c,_0x452b9d);_0x2c147c['detach'](),_0x452b9d['detach'](),_0x493f78['markBlockFormat'](_0x294467,{'commandName':'imageTypeInline','commandParams':[_0x1c1c22]},[],'convertInlineImageToBlock'),_0x2319b2['start']['isBefore'](_0x2c26a2['start'])&&_0x493f78['markInsertion'](_0x1361e9['createRange'](_0x2319b2['start'],_0x2c26a2['start']),'convertInlineImageToBlock'),_0x2c26a2['end']['isBefore'](_0x2319b2['end'])&&_0x493f78['markInsertion'](_0x1361e9['createRange'](_0x2c26a2['end'],_0x2319b2['end']),'convertInlineImageToBlock');});}),_0x493f78['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x493f78['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x493f78['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x493f78['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x493f78['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x493f78['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4940c0])=>{const _0x3c844c=_0x493f78['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4216b3=_0x4940c0['start'],_0x2b7b92=_0x4940c0['end'];const _0x5260da=_0x16f859['model']['schema']['getNearestSelectionRange'](_0x4216b3,'backward'),_0x234df2=_0x16f859['model']['schema']['getNearestSelectionRange'](_0x2b7b92,'forward');_0x5260da['isCollapsed']&&(_0x4216b3=_0x5260da['start']),_0x234df2['isCollapsed']&&(_0x2b7b92=_0x234df2['end']),_0x3c844c([_0x16f859['model']['createRange'](_0x4216b3,_0x2b7b92)]);}),_0x493f78['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb6f5f2),_0x493f78['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb6f5f2)),_0x16f859['plugins']['has']('ImageCaptionEditing')&&(_0x493f78['enableCommand']('toggleImageCaption',(_0x1271ac,_0x14dfc1)=>{const _0x1c6feb=_0x16f859['plugins']['get']('ImageCaptionUtils');let _0x59c3bb=_0x25f5c0['getClosestSelectedImageElement'](_0x16f859['model']['document']['selection']),_0xff481=_0x1c6feb['getCaptionFromImageModelElement'](_0x59c3bb);_0x16f859['model']['change'](()=>{if(_0xff481)return void _0x493f78['markDeletion'](_0x16f859['model']['createRangeOn'](_0xff481));const _0x4b2a64=_0x25f5c0['isBlockImage'](_0x59c3bb);_0x1271ac(_0x14dfc1),_0x59c3bb=_0x25f5c0['getClosestSelectedImageElement'](_0x16f859['model']['document']['selection']),_0xff481=_0x1c6feb['getCaptionFromImageModelElement'](_0x59c3bb),_0x493f78['markInsertion'](_0x16f859['model']['createRangeOn'](_0xff481),_0x4b2a64?null:'imageCaption');});}),_0x493f78['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb6f5f2));const _0x3cb589=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x532146(_0x14dd9b,_0x3edfde){const _0x126d35=_0x3cb589['findIndex'](({type:_0x589ca6,subType:_0x235deb})=>_0x14dd9b['type']==_0x589ca6&&_0x14dd9b['subType']==_0x235deb),_0x5b15a0=_0x3cb589['findIndex'](({type:_0x355e05,subType:_0x9e049b})=>_0x3edfde['type']==_0x355e05&&_0x3edfde['subType']==_0x9e049b);if(_0x126d35<0x0||_0x5b15a0<0x0)return!0x1;const _0x1e9165=_0x14dd9b['getFirstRange'](),_0x54a0a5=_0x3edfde['getFirstRange']();if((0x0==_0x126d35||0x1==_0x126d35)&&0x2==_0x5b15a0&&_0x1e9165['isIntersecting'](_0x54a0a5))return!0x0;if(0x2==_0x126d35&&0x3==_0x5b15a0){const _0xde05e9=_0x493f78['_findSuggestions'](_0x1e9165,'insertion')['filter'](({suggestion:_0x2be6db,meta:_0x21a405})=>_0x21a405['isOwn']&&'convertInlineImageToBlock'==_0x2be6db['subType']);if(_0xde05e9['length']>0x1&&_0x54a0a5['end']['isEqual'](_0x1e9165['start']))return!0x0;if(0x1==_0xde05e9['length']&&(_0x1e9165['start']['isEqual'](_0x54a0a5['end'])||_0x1e9165['end']['isEqual'](_0x54a0a5['start'])))return!0x0;}if(0x3==_0x126d35&&0x3==_0x5b15a0&&_0x1e9165['start']['isBefore'](_0x54a0a5['start'])){const _0x20afb6=_0x1e9165['end']['nodeAfter'],_0x341b1f=_0x54a0a5['start']['nodeBefore'];return _0x25f5c0['isBlockImage'](_0x20afb6)&&_0x20afb6===_0x341b1f;}return!0x1;}function _0xb6f5f2(_0x50026f,_0x56aec7){return _0x532146(_0x50026f,_0x56aec7)?[_0x50026f,_0x56aec7]:_0x532146(_0x56aec7,_0x50026f)?[_0x56aec7,_0x50026f]:null;}_0x16f859['plugins']['has']('ImageResize')&&(_0x493f78['enableDefaultAttributesIntegration']('resizeImage'),_0x493f78['registerBlockAttribute']('resizedWidth'),_0x493f78['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2234b2,'FORMAT_IMAGE_SIZE'))),_0x16f859['plugins']['has']('ImageTextAlternativeEditing')&&(_0x493f78['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x493f78['registerBlockAttribute']('alt')),_0x493f78['descriptionFactory']['registerDescriptionCallback'](_0x124347=>{if(!!_0x3cb589['find'](({type:_0x3864cd,subType:_0x2e78a4})=>_0x124347['type']==_0x3864cd&&_0x124347['subType']==_0x2e78a4))return _0x124347['previous']?{}:void 0x0;}),_0x493f78['descriptionFactory']['registerDescriptionCallback'](_0x29164c=>{if('insertion'==_0x29164c['type']||'deletion'==_0x29164c['type']){const _0x1f40fd=_0x29164c['getContainedElement']();if(_0x1f40fd&&_0x1f40fd['is']('element','caption'))return{'type':'insertion'==_0x29164c['type']?'addObject':'removeObject','element':_0x1f40fd,'quantity':0x1};}}),_0x493f78['descriptionFactory']['registerDescriptionCallback'](_0x4d0769=>'formatBlock'==_0x4d0769['type']&&'convertInlineImageToBlock'==_0x4d0769['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4d0769['type']&&'convertBlockImageToInline'==_0x4d0769['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x493f78['descriptionFactory']['registerDescriptionCallback'](_0x4c8055=>{if('attribute'!=_0x4c8055['type'])return;const {data:_0x5167ea}=_0x4c8055;if(!_0x5167ea||'alt'!=_0x5167ea['key'])return;const _0x44f67c=_0x5167ea['newValue'];return _0x44f67c?{'type':'format','content':o(_0x2234b2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44f67c+'\x22')}:{'type':'format','content':o(_0x2234b2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1097e2=this['editor'],_0x57347a=_0x1097e2['locale'];_0x1097e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354d83=>{if('formatBlock'!=_0x354d83['type']&&'formatInline'!=_0x354d83['type'])return;const {data:_0x323023}=_0x354d83;if(_0x323023){if('imageTextAlternative'==_0x323023['commandName']){const _0x25d35b=_0x323023['commandParams'][0x0]['newValue'];return _0x25d35b?{'type':'format','content':o(_0x57347a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x25d35b+'\x22')}:{'type':'format','content':o(_0x57347a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x323023['commandName']){const _0x5c03a5=_0x323023['commandParams'][0x0]['width'];return _0x5c03a5?{'type':'format','content':o(_0x57347a,'*Set\x20image\x20width:*\x20%0',_0x5c03a5)}:{'type':'format','content':o(_0x57347a,'*Reset\x20image\x20width*')};}}});}}class st extends _0x25de16{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1591bc=this['editor']['locale'],_0x62c422=this['editor']['plugins']['get']('TrackChangesEditing');_0x62c422['enableDefaultAttributesIntegration']('replaceImageSource'),_0x62c422['registerBlockAttribute']('src'),_0x62c422['descriptionFactory']['registerDescriptionCallback'](_0x3f6c57=>{if('attribute'!=_0x3f6c57['type'])return;const {data:_0xc9ccd5}=_0x3f6c57;return _0xc9ccd5&&'src'==_0xc9ccd5['key']?_0xc9ccd5['newValue']&&_0xc9ccd5['oldValue']?{'type':'format','content':o(_0x1591bc,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45ffce=this['editor']['plugins']['get']('TrackChangesEditing');_0x45ffce['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x45ffce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45ffce['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x45ffce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbb91a0=this['editor'],_0x3cf463=_0xbb91a0['locale'];_0xbb91a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bc1d8=>{if('formatBlock'!=_0x5bc1d8['type']&&'formatInline'!=_0x5bc1d8['type'])return;const {data:_0x503e7f}=_0x5bc1d8;if(!_0x503e7f||'replaceImageSource'!=_0x503e7f['commandName'])return;return{'type':'format','content':o(_0x3cf463,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x25de16{['afterInit'](){const _0x22c19d=this['editor'];if(!_0x22c19d['plugins']['has']('ImageStyleEditing'))return;const _0x4dde94=_0x22c19d['plugins']['get']('TrackChangesEditing'),_0x27179b=_0x22c19d['plugins']['get']('ImageUtils'),_0x4d0098={};_0x4dde94['enableCommand']('imageStyle',(_0x31f9b3,_0x30ab77)=>{const _0x3b47a0=_0x22c19d['plugins']['get']('Users')['me'],_0x57abce=_0x22c19d['commands']['get']('imageStyle');let _0x446703=_0x27179b['getClosestSelectedImageElement'](_0x22c19d['model']['document']['selection']),_0x1125b6=_0x22c19d['model']['createRangeOn'](_0x446703),_0x2f8ced=_0x57abce['value'];if(_0x2f8ced==_0x30ab77['value'])return;const _0x190f9b={'commandName':'imageStyle','commandParams':[_0x30ab77],'formatGroupId':_0x5357ff()};_0x22c19d['model']['change'](()=>{if(_0x4dde94['getSuggestions']()['filter'](_0x15f5e3=>_0x15f5e3['isInContent']&&_0x3b47a0==_0x15f5e3['author']&&('formatBlock'==_0x15f5e3['type']||'formatInline'==_0x15f5e3['type'])&&('imageStylePreApply'==_0x15f5e3['subType']||'imageStylePostApply'==_0x15f5e3['subType'])&&_0x15f5e3['getFirstRange']()['isEqual'](_0x1125b6))['forEach'](_0x404371=>_0x4dde94['discardSuggestion'](_0x404371['head'])),_0x446703=_0x27179b['getClosestSelectedImageElement'](_0x22c19d['model']['document']['selection']),_0x1125b6=_0x22c19d['model']['createRangeOn'](_0x446703),_0x57abce['refresh'](),_0x22c19d['commands']['get']('imageTypeInline')['refresh'](),_0x22c19d['commands']['get']('imageTypeBlock')['refresh'](),_0x2f8ced=_0x57abce['value'],_0x2f8ced!=_0x30ab77['value'])return _0x27179b['isInlineImage'](_0x446703)&&_0x57abce['shouldConvertImageType'](_0x30ab77['value'],_0x446703)?(_0x31f9b3({..._0x30ab77,'setImageSizes':!0x1}),_0x446703=_0x27179b['getClosestSelectedImageElement'](_0x22c19d['model']['document']['selection']),void _0x4dde94['markBlockFormat'](_0x446703,{..._0x190f9b,'commandReversedParams':[{'value':_0x2f8ced||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x27179b['isBlockImage'](_0x446703)?_0x4dde94['markBlockFormat'](_0x446703,_0x190f9b,[],'imageStylePostApply'):_0x4dde94['markInlineFormat'](_0x1125b6,_0x190f9b,'imageStylePostApply'));});});for(const _0x44edb4 of _0x22c19d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4d0098[_0x44edb4['name']]=_0x44edb4['title']['toLowerCase']();_0x4dde94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4dde94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4dde94['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4dde94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3e49fd])=>{_0x27179b['setImageNaturalSizeAttributes'](_0x3e49fd['getContainedElement']());}),_0x4dde94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2781a9,_0x2d2a08)=>{_0x4dde94['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2781a9,{'commandName':_0x2d2a08['commandName'],'commandParams':_0x2d2a08['commandReversedParams']});}),_0x4dde94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5f3b9c,_0x11f8ef){if(_0x47dfd7(_0x5f3b9c,_0x11f8ef))return[_0x5f3b9c,_0x11f8ef];if(_0x47dfd7(_0x11f8ef,_0x5f3b9c))return[_0x11f8ef,_0x5f3b9c];return null;});const _0x2e525a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47dfd7(_0x3519b4,_0x8a16c2){const _0x2faba3=_0x2e525a['findIndex'](({type:_0x371008,subType:_0x1c676c})=>_0x3519b4['type']==_0x371008&&_0x3519b4['subType']==_0x1c676c),_0x500d2d=_0x2e525a['findIndex'](({type:_0x5e8b40,subType:_0x1ea834})=>_0x8a16c2['type']==_0x5e8b40&&_0x8a16c2['subType']==_0x1ea834);if(_0x2faba3<0x0||_0x500d2d<0x0)return!0x1;const _0x8a1ab9=_0x3519b4['getFirstRange'](),_0x2a43fb=_0x8a16c2['getFirstRange']();if((0x0==_0x2faba3||0x1==_0x2faba3)&&0x2==_0x500d2d&&_0x8a1ab9['isIntersecting'](_0x2a43fb))return!0x0;if(0x2==_0x2faba3&&0x3==_0x500d2d){const _0x296824=_0x4dde94['_findSuggestions'](_0x8a1ab9,'insertion')['filter'](({suggestion:_0x1a05b0,meta:_0x5818d9})=>_0x5818d9['isOwn']&&'convertInlineImageToBlock'==_0x1a05b0['subType']);if(_0x296824['length']>0x1&&_0x2a43fb['end']['isEqual'](_0x8a1ab9['start']))return!0x0;if(0x1==_0x296824['length']&&(_0x8a1ab9['start']['isEqual'](_0x2a43fb['end'])||_0x8a1ab9['end']['isEqual'](_0x2a43fb['start'])))return!0x0;}if(0x3==_0x2faba3&&0x3==_0x500d2d&&_0x8a1ab9['start']['isBefore'](_0x2a43fb['start'])){const _0x3add27=_0x8a1ab9['end']['nodeAfter'],_0x104692=_0x2a43fb['start']['nodeBefore'];return _0x27179b['isBlockImage'](_0x3add27)&&_0x3add27===_0x104692;}return!0x1;}_0x22c19d['model']['document']['registerPostFixer'](()=>{let _0x3dbc2e=!0x1;const _0x425531=Array['from'](_0x22c19d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b0d0e,data:_0x57ab47}of _0x425531){const {group:_0x521ef3,type:_0x2629ae,subType:_0x384bd1,id:_0x5cc29f}=_0x4dde94['_splitMarkerName'](_0x2b0d0e);if('suggestion'==_0x521ef3&&_0x4dde94['hasSuggestion'](_0x5cc29f)){if('formatBlock'==_0x2629ae&&('imageStylePreApply'==_0x384bd1||'imageStylePostApply'==_0x384bd1)){const _0x298e3a=_0x4dde94['getSuggestion'](_0x5cc29f);if(_0x57ab47['newRange']){const _0x359579=_0x298e3a['getFirstRange']()['getContainedElement']();if(_0x27179b['isBlockImage'](_0x359579))continue;_0x4dde94['discardSuggestion'](_0x298e3a),_0x3dbc2e=!0x0;}}if('insertion'==_0x2629ae&&'imageCaption'==_0x384bd1&&!_0x57ab47['newRange']){const _0x1364bd=_0x4dde94['getSuggestion'](_0x5cc29f);_0x1364bd['next']&&_0x1364bd['next']['isInContent']&&(_0x4dde94['discardSuggestion'](_0x1364bd['next']),_0x3dbc2e=!0x0);}}}return _0x3dbc2e;}),this['_registerLegacyDescription'](_0x4d0098);}['_registerLegacyDescription'](_0x165883){const _0x5e0826=this['editor'],_0xda9302=_0x5e0826['locale'];_0x5e0826['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20b087=>{if('formatBlock'!=_0x20b087['type']&&'formatInline'!=_0x20b087['type'])return;const {data:_0x57123c}=_0x20b087;if(!_0x57123c||'imageStyle'!=_0x57123c['commandName'])return;const _0x31c1f5=_0x57123c['commandParams'][0x0]['value'];return _0x301dc8('side'===_0x31c1f5?o(_0xda9302,'FORMAT_SIDE_IMAGE'):_0x165883[_0x31c1f5]||_0x31c1f5);function _0x301dc8(_0x25f8e3){return{'type':'format','content':o(_0xda9302,'*Format:*\x20%0',_0x25f8e3)};}});}}class ot extends _0x25de16{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x43ca6f){super(_0x43ca6f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x219672=this['editor'],_0x478a96=_0x219672['commands']['get']('importWord'),_0x4db5bc=_0x219672['commands']['get']('trackChanges');_0x478a96&&(_0x478a96['on']('execute',(_0x40a89f,[,_0x3887ad])=>{this['_trackChangesValueDuringImport']=_0x4db5bc['value'],_0x3887ad['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x478a96,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x478a96,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4db5bc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x219672['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x361373,_0xc1dbb9){const {suggestions:_0x579f3f}=_0xc1dbb9,_0x2b54eb=this['editor']['commands']['get']('trackChanges'),_0x344490=_0x2b54eb['value'];this['_trackChangesValueDuringImport']!==_0x344490&&(_0x2b54eb['execute'](),this['_trackChangesExecuted']=!0x0),_0x579f3f&&_0x579f3f['forEach'](({id:_0x43d456,type:_0x52ab00,author:_0x591c2b,created_at:_0x7c410d})=>{const _0x18a821={'id':_0x43d456,'type':_0x52ab00,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x591c2b,'createdAt':_0x7c410d?new Date(_0x7c410d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x18a821);});}}class rt extends _0x25de16{['afterInit'](){const _0x1ed9fd=this['editor'],_0x15079d=_0x1ed9fd['plugins']['get']('TrackChangesEditing');if(_0x1ed9fd['plugins']['has']('IndentEditing')&&(_0x15079d['enableCommand']('indent'),_0x15079d['enableCommand']('outdent')),_0x1ed9fd['plugins']['has']('IndentBlock')){for(const _0x48071a of['indentBlock','outdentBlock'])_0x15079d['enableDefaultAttributesIntegration'](_0x48071a);}const _0x48300c=_0x1ed9fd['locale'];_0x15079d['registerBlockAttribute']('blockIndent'),_0x15079d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x48300c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x175b41=this['editor'],_0x17efc9=_0x175b41['locale'],_0x575fe6=_0x175b41['plugins']['get']('TrackChangesEditing');_0x575fe6['descriptionFactory']['registerDescriptionCallback'](_0x230c68=>{if('formatBlock'!=_0x230c68['type'])return;const {data:_0x5aa13b}=_0x230c68;if(!_0x5aa13b)return;if('indentBlock'!=_0x5aa13b['commandName']&&'outdentBlock'!=_0x5aa13b['commandName'])return;const _0xb819d2=_0x230c68['getItems']()[0x0],_0x17aa17=_0x575fe6['descriptionFactory']['getItemLabel'](_0xb819d2);return'indentBlock'==_0x5aa13b['commandName']?{'type':'format','content':o(_0x17efc9,'*Indent:*\x20%0',_0x17aa17)}:'outdentBlock'==_0x5aa13b['commandName']?{'type':'format','content':o(_0x17efc9,'*Outdent:*\x20%0',_0x17aa17)}:void 0x0;});}}class at extends _0x25de16{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x25de16{['afterInit'](){const _0x2f21ee=this['editor'];if(!_0x2f21ee['plugins']['has']('LinkEditing'))return;const _0x305934=_0x2f21ee['plugins']['get']('TrackChangesEditing'),_0x23595b=_0x2f21ee['commands']['get']('link');_0x305934['enableDefaultAttributesIntegration']('link'),_0x305934['enableDefaultAttributesIntegration']('unlink'),_0x305934['registerInlineAttribute']('linkHref');for(const _0x473f1e of _0x23595b['manualDecorators'])_0x305934['registerInlineAttribute'](_0x473f1e['id']),_0x305934['descriptionFactory']['registerAttributeLabel'](_0x473f1e['id'],'link\x20('+_0x473f1e['label']['toLowerCase']()+')');_0x305934['descriptionFactory']['registerDescriptionCallback'](_0x5641eb=>{if('attribute'!=_0x5641eb['type'])return;const {data:_0x21e97b}=_0x5641eb;if(!_0x21e97b||'linkHref'!=_0x21e97b['key'])return;const _0x9a78fb=_0x21e97b['newValue'],_0x6a9def=_0x2f21ee['locale'];return{'type':'format','content':null==_0x9a78fb?o(_0x6a9def,'*Remove\x20link*'):o(_0x6a9def,'*Set\x20link:*\x20%0','\x22'+_0x9a78fb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38f2f8=this['editor'],_0x16c89b=_0x38f2f8['locale'];_0x38f2f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f2c39=>{if('formatInline'!=_0x1f2c39['type'])return;const {data:_0x124842}=_0x1f2c39;if(_0x124842){if('link'==_0x124842['commandName']){const _0x56a7d4=_0x124842['commandParams'][0x0];return{'type':'format','content':o(_0x16c89b,'*Set\x20link:*\x20%0','\x22'+_0x56a7d4+'\x22')};}return'unlink'==_0x124842['commandName']?{'type':'format','content':o(_0x16c89b,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x25de16{['afterInit'](){const _0x3f0d68=this['editor'],_0x3d1a6=_0x3f0d68['locale'];if(!_0x3f0d68['plugins']['has']('LegacyListEditing'))return;const _0x4097a3=_0x3f0d68['plugins']['get']('TrackChangesEditing'),_0x26fe8b=_0x3f0d68['plugins']['has']('LegacyTodoListEditing');function _0x38629d(_0x4ab03d){return()=>{const _0x294cf1=_0x3f0d68['model']['document']['selection'],_0x7d0255=_0x3f0d68['commands']['get'](_0x4ab03d);if(_0x7d0255['value'])return void _0x3f0d68['execute']('paragraph',{});const _0x1f1df0=_0x4ab03d['slice'](0x0,-0x4),_0x21d65e=function(_0x3b964b,_0x1fa1a0,_0x2acd26){let _0x321bb1=Array['from'](_0x3b964b)['filter'](_0x1c7ad8=>function(_0xc8f062,_0x5e46e6){return _0x5e46e6['checkChild'](_0xc8f062['parent'],'listItem')&&!_0x5e46e6['isObject'](_0xc8f062);}(_0x1c7ad8,_0x2acd26));_0x321bb1=_0x321bb1['filter'](_0x1a60e4=>!_0x1a60e4['is']('element','listItem')||_0x1a60e4['getAttribute']('listType')!=_0x1fa1a0);const _0x49e8a6=new Set();for(const _0x720a05 of _0x321bb1)_0x720a05['is']('element','listItem')?_0x49e8a6['add'](me(_0x720a05)):_0x49e8a6['add'](_0x720a05);return Array['from'](_0x49e8a6);}(_0x294cf1['getSelectedBlocks'](),_0x1f1df0,_0x3f0d68['model']['schema']);_0x3f0d68['model']['change'](()=>{for(const _0x575e20 of _0x21d65e)_0x4097a3['markBlockFormat'](_0x575e20,{'commandName':_0x4ab03d,'commandParams':[{'forceValue':!_0x7d0255['value']}],'formatGroupId':'blockName'},fe(_0x575e20));});};}function _0x2a9bae(_0x1edecf){return()=>{const _0xf43cd1=function(_0x1a80b8){let _0x3a44c6=Array['from'](_0x1a80b8);const _0x803f81=_0x3a44c6['findIndex'](_0x5151b8=>'listItem'!=_0x5151b8['name']);return _0x803f81>-0x1&&(_0x3a44c6=_0x3a44c6['slice'](0x0,_0x803f81)),_0x3a44c6;}(_0x3f0d68['model']['document']['selection']['getSelectedBlocks']()),_0x41b678=_0x3f0d68['model']['createRange'](_0x3f0d68['model']['createPositionAt'](_0xf43cd1[0x0],'before'),_0x3f0d68['model']['createPositionAt'](_0xf43cd1[_0xf43cd1['length']-0x1],'end'));_0x3f0d68['model']['change'](()=>{_0x4097a3['markBlockFormat'](_0x41b678,{'commandName':_0x1edecf,'commandParams':[],'formatGroupId':'listIndent'},function(_0x41684e){const _0x41fbc7=new Set();for(const _0x3295b5 of _0x41684e){let _0x5b0050=_0x3295b5['nextSibling'];for(;_0x5b0050&&_0x5b0050['getAttribute']('listIndent')>_0x3295b5['getAttribute']('listIndent');)_0x41fbc7['add'](_0x5b0050),_0x5b0050=_0x5b0050['nextSibling'];}return Array['from'](_0x41fbc7);}(_0xf43cd1));});};}_0x4097a3['enableCommand']('numberedList',_0x38629d('numberedList')),_0x4097a3['enableCommand']('bulletedList',_0x38629d('bulletedList')),_0x26fe8b&&_0x4097a3['enableCommand']('todoList',_0x38629d('todoList')),_0x4097a3['enableCommand']('indentList',_0x2a9bae('indentList')),_0x4097a3['enableCommand']('outdentList',_0x2a9bae('outdentList')),_0x26fe8b&&_0x4097a3['enableCommand']('checkTodoList',()=>{const _0x2702fa=_0x3f0d68['commands']['get']('checkTodoList'),_0x5745d5=Array['from'](_0x2702fa['_selectedElements']);_0x5745d5['filter'](_0x3653ff=>_0x3653ff['getAttribute']('todoListChecked')!=_0x2702fa['value']),_0x3f0d68['model']['change'](()=>{for(const _0x59bfe0 of _0x5745d5)_0x4097a3['markBlockFormat'](_0x59bfe0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2702fa['value']}]});});}),_0x4097a3['descriptionFactory']['registerElementLabel']('listItem',_0x3d0e53=>o(_0x3d1a6,'ELEMENT_LIST_ITEM',_0x3d0e53)),_0x4097a3['descriptionFactory']['registerDescriptionCallback'](_0x1c2c26=>{if('formatBlock'!=_0x1c2c26['type']&&'formatInline'!=_0x1c2c26['type'])return;const {data:_0x1e5615}=_0x1c2c26;if(_0x1e5615){if('numberedList'==_0x1e5615['commandName']||'bulletedList'==_0x1e5615['commandName']||'todoList'==_0x1e5615['commandName'])switch(_0x1e5615['commandName']['replace']('List','')){case'bulleted':return _0x3d093d(o(_0x3d1a6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3d093d(o(_0x3d1a6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3d093d(o(_0x3d1a6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1e5615['commandName'])return{'type':'format','content':o(_0x3d1a6,'*Indent:*\x20%0',o(_0x3d1a6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1e5615['commandName'])return{'type':'format','content':o(_0x3d1a6,'*Outdent:*\x20%0',o(_0x3d1a6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1e5615['commandName'])return _0x1e5615['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d1a6,'*Check\x20item*')}:{'type':'format','content':o(_0x3d1a6,'*Uncheck\x20item*')};}function _0x3d093d(_0x51a9c4){return{'type':'format','content':o(_0x3d1a6,'*Change\x20to:*\x20%0',_0x51a9c4)};}});}}function me(_0x5303d3){const _0x326440=_0x5303d3['getAttribute']('listIndent');if(0x0==_0x326440)return _0x5303d3;let _0x4b104f=_0x5303d3;for(;_0x5303d3['previousSibling']&&_0x5303d3['previousSibling']['is']('element','listItem');){const _0x14ada5=_0x5303d3['previousSibling']['getAttribute']('listIndent');if(_0x14ada5==_0x326440)_0x4b104f=_0x5303d3['previousSibling'];else{if(_0x14ada5<_0x326440)break;}_0x5303d3=_0x5303d3['previousSibling'];}return _0x4b104f;}function fe(_0xf7871a){const _0x20cffe=[];if(_0xf7871a['is']('element','listItem')&&_0xf7871a['getAttribute']('listIndent')>0x0){let _0x5b2468=_0xf7871a['nextSibling'];for(;_0x5b2468&&'listItem'==_0x5b2468['name']&&_0x5b2468['getAttribute']('listIndent')==_0xf7871a['getAttribute']('listIndent');)_0x20cffe['push'](_0x5b2468),_0x5b2468=_0x5b2468['nextSibling'];}return _0x20cffe;}class K extends _0x25de16{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x239fe4=this['editor']['config']['get']('list.properties'),_0x2b1382=this['editor']['plugins']['get']('TrackChangesEditing');_0x239fe4['styles']&&_0x2b1382['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x239fe4['reversed']&&_0x2b1382['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x239fe4['startIndex']&&_0x2b1382['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2b1382['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2eb4da,_0x30d869={}){const _0x1c8617=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b4cef=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1c8617['markMultiRangeBlockFormat'](_0x2b4cef,{'commandName':'listStyle','commandParams':[{'type':_0x30d869['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x320960,_0x646f74={}){const _0x282808=this['editor']['plugins']['get']('TrackChangesEditing'),_0x164d58=this['_getSuggestionBlocks'](_0x367516=>_0x367516['is']('element','listItem')&&'numbered'===_0x367516['getAttribute']('listType'));if(_0x164d58['length']<0x1)return;const _0x41d4ff=_0x164d58['map'](_0x3f442a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f442a,'before'),this['editor']['model']['createPositionAt'](_0x3f442a,0x0)));this['editor']['model']['change'](()=>{_0x282808['markMultiRangeBlockFormat'](_0x41d4ff,{'commandName':'listReversed','commandParams':[{'reversed':_0x646f74['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x62927,_0x1f65a3={}){const _0x58dffe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13bab0=this['_getSuggestionBlocks'](_0x49f87f=>_0x49f87f['is']('element','listItem')&&'numbered'===_0x49f87f['getAttribute']('listType'));if(_0x13bab0['length']<0x1)return;const _0x2962a9=_0x13bab0['map'](_0x23ecb5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23ecb5,'before'),this['editor']['model']['createPositionAt'](_0x23ecb5,0x0)));this['editor']['model']['change'](()=>{_0x58dffe['markMultiRangeBlockFormat'](_0x2962a9,{'commandName':'listStart','commandParams':[{'startIndex':_0x1f65a3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3b177c){if('formatBlock'!=_0x3b177c['type']&&'formatInline'!=_0x3b177c['type'])return;const _0x4f142c=this['editor']['locale'],{data:_0x26868b}=_0x3b177c;if(!_0x26868b)return;let _0x2595b2,_0x8ee43e;switch(_0x26868b['commandName']){case'listStyle':_0x2595b2='*Change\x20to:*\x20%0',_0x8ee43e={'type':'format','content':o(_0x4f142c,_0x2595b2,o(_0x4f142c,this['_getTranslationKeyForListStyle'](_0x26868b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2595b2=_0x26868b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x8ee43e={'type':'format','content':o(_0x4f142c,_0x2595b2)};break;case'listStart':_0x2595b2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x8ee43e={'type':'format','content':o(_0x4f142c,_0x2595b2,_0x26868b['commandParams'][0x0]['startIndex'])};}return _0x8ee43e;}['_getSuggestionBlocksForListStyle'](){const _0x15fab1=this['editor']['plugins']['get']('LegacyListUtils');let _0x31722e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x31722e[0x0]?.['is']('element','listItem')&&_0x31722e['unshift'](..._0x15fab1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x31722e[_0x31722e['length']-0x1]?.['is']('element','listItem')&&_0x31722e['push'](..._0x15fab1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x31722e=[...new Set(_0x31722e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x31722e=_0x31722e['filter'](_0xe85ea9=>_0xe85ea9['is']('element','listItem'))),_0x31722e;}['_getSuggestionBlocks'](_0x22e19c){const _0x5d2f2e=this['editor']['plugins']['get']('LegacyListUtils');let _0x2f2bbe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x22e19c)['map'](_0x342275=>{const _0x5b1852=this['editor']['model']['createPositionAt'](_0x342275,0x0);return[..._0x5d2f2e['getSiblingNodes'](_0x5b1852,'backward'),..._0x5d2f2e['getSiblingNodes'](_0x5b1852,'forward')];})['flat']();return _0x2f2bbe=[...new Set(_0x2f2bbe)],_0x2f2bbe;}['_getTranslationKeyForListStyle'](_0x51b480){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x51b480)||'default')['toUpperCase']()+'_LIST_'+_0x51b480['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x25de16{['afterInit'](){const _0x3d74b9=this['editor'];if(!_0x3d74b9['plugins']['has']('MediaEmbedEditing'))return;const _0x4c4b7b=_0x3d74b9['plugins']['get']('TrackChangesEditing'),_0x1cff9e=_0x3d74b9['locale'];_0x4c4b7b['enableCommand']('mediaEmbed'),_0x4c4b7b['descriptionFactory']['registerElementLabel']('media',_0x225559=>o(_0x1cff9e,'ELEMENT_MEDIA',_0x225559)),_0x3d74b9['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x462501,{writer:_0x11bf35,options:_0x105d91})=>{if(_0x105d91['showSuggestionHighlights'])return _0x11bf35['createEmptyElement']('div');},'converterPriority':'high'}),_0x3d74b9['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1f74ad,_0x4a6dd4,_0x4004fa)=>{_0x4004fa['options']['showSuggestionHighlights']&&_0x1f74ad['stop']();},{'priority':'high'});}}class gt extends _0x25de16{['afterInit'](){const _0x3a850b=this['editor'];_0x3a850b['plugins']['has']('MentionEditing')&&_0x3a850b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x25de16{['afterInit'](){const _0x1cc3b1=this['editor'],_0x41e052=_0x1cc3b1['plugins']['get']('TrackChangesEditing');_0x1cc3b1['plugins']['has']('MultiLevelList')&&(_0x41e052['enableDefaultAttributesIntegration']('multiLevelList'),_0x41e052['registerBlockAttribute']('listMarkerStyle'),_0x41e052['descriptionFactory']['registerDescriptionCallback'](_0x3659c0=>this['handleDescriptions'](_0x3659c0)));}['handleDescriptions'](_0x1efe57){const _0x493b2a=this['editor']['locale'],{data:_0x49a030}=_0x1efe57,_0x111dd2={'type':'format','content':''};if(_0x49a030&&'listMarkerStyle'==_0x49a030['key']){if(!_0x49a030['oldValue'])return{'type':'format','content':o(_0x493b2a,'*Set\x20format:*\x20%0',o(_0x493b2a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49a030['newValue']+')'};if(!_0x49a030['newValue']){let _0x3348e9=_0x1efe57['head'];for(;_0x3348e9;){if(_0x3348e9['data']&&'listType'==_0x3348e9['data']['key']&&_0x3348e9['data']['newValue'])return _0x111dd2;_0x3348e9=_0x3348e9['next'];}return{'type':'format','content':o(_0x493b2a,'*Remove\x20format:*\x20%0',o(_0x493b2a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49a030['oldValue']+')'};}}}}class mt extends _0x25de16{['afterInit'](){const _0x2776ac=this['editor'];if(!_0x2776ac['plugins']['has']('PageBreakEditing'))return;_0x2776ac['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x18dbfd=_0x2776ac['plugins']['get']('TrackChangesEditing'),_0x5c8f4d=_0x2776ac['locale'];_0x18dbfd['descriptionFactory']['registerElementLabel']('pageBreak',_0x28eca2=>o(_0x5c8f4d,'ELEMENT_PAGE_BREAK',_0x28eca2));}}class dt extends _0x25de16{['afterInit'](){const _0x31f751=this['editor'];if(!_0x31f751['plugins']['has']('Paragraph'))return;const _0x2952ff=_0x31f751['locale'],_0xc7b5c3=_0x31f751['plugins']['get']('TrackChangesEditing');_0xc7b5c3['descriptionFactory']['registerElementLabel']('paragraph',_0x1ffa03=>o(_0x2952ff,'ELEMENT_PARAGRAPH',_0x1ffa03)),_0xc7b5c3['enableDefaultAttributesIntegration']('paragraph'),_0xc7b5c3['enableCommand']('insertParagraph'),_0x31f751['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x31f751),{'priority':'highest'}),_0x31f751['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x180989,_0x30f4c4,_0x38fc94)=>{_0x38fc94['options']['showSuggestionHighlights']&&nr(_0x31f751,{'showActiveMarker':!0x1})(_0x180989,_0x30f4c4,_0x38fc94);},{'priority':'highest'});const _0x5ef515=_0xc7b5c3['descriptionFactory'];_0x5ef515['registerDescriptionCallback'](_0x25194f=>{if('insertion'!==_0x25194f['type'])return;const {start:_0x425322,end:_0x19873e}=_0x25194f['getFirstRange']();if(!_0x425322['isTouching'](_0x19873e)||!_0x425322['nodeAfter'])return;const _0x397618=_0x31f751['model']['schema'],_0x1e745f=_0x425322['nodeAfter'];return _0x397618['isBlock'](_0x1e745f)&&!_0x397618['isLimit'](_0x1e745f)&&_0x397618['checkChild'](_0x1e745f,'$text')?{'type':'insertion','content':o(_0x2952ff,'*Insert:*\x20%0',_0x5ef515['getItemLabel'](_0x1e745f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22ddba=this['editor'],_0x1de122=_0x22ddba['locale'];_0x22ddba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313cf2=>{if('formatBlock'!=_0x313cf2['type'])return;const {data:_0x24623a}=_0x313cf2;return _0x24623a&&'paragraph'==_0x24623a['commandName']?{'type':'format','content':o(_0x1de122,'*Change\x20to:*\x20%0',o(_0x1de122,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x51fc8b,{showActiveMarker:_0x480dc2=!0x0}={}){return(_0x249ab4,_0x5c8418,_0x116b05)=>{const _0x327a3b=_0x51fc8b['plugins']['get']('TrackChangesEditing'),_0x1049ab=_0x5c8418['markerRange']['start'],_0x14c7f6=_0x5c8418['markerRange']['end'],_0x41f8c5=_0x51fc8b['model']['schema'];if(!_0x1049ab['isTouching'](_0x14c7f6)||!_0x1049ab['nodeAfter'])return;const _0x1a069d=_0x1049ab['nodeAfter'];if(_0x41f8c5['isBlock'](_0x1a069d)&&!_0x41f8c5['isLimit'](_0x1a069d)&&_0x41f8c5['checkChild'](_0x1a069d,'$text')){if(!_0x116b05['consumable']['consume'](_0x5c8418['markerRange'],_0x249ab4['name']))return;const _0x4919ac=_0x116b05['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x278a9b=_0x116b05['mapper']['toViewPosition'](_0x14c7f6);_0x480dc2&&_0x327a3b['activeMarkers']['includes'](_0x5c8418['markerName'])&&_0x116b05['writer']['addClass']('ck-suggestion-marker--active',_0x4919ac),_0x116b05['writer']['insert'](_0x278a9b,_0x4919ac),_0x116b05['mapper']['bindElementToMarker'](_0x4919ac,_0x5c8418['markerName']);}};}class pt extends _0x25de16{['afterInit'](){const _0x5c2687=this['editor'];if(!_0x5c2687['plugins']['has']('RemoveFormatEditing'))return;_0x5c2687['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2736fb=this['editor'];_0x2736fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3240b1=>{if('formatBlock'!=_0x3240b1['type']&&'formatInline'!=_0x3240b1['type'])return;const {data:_0x26d43e}=_0x3240b1;return _0x26d43e&&'removeFormat'==_0x26d43e['commandName']?{'type':'format','content':o(_0x2736fb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x25de16{['afterInit'](){const _0x5ad315=this['editor'];if(!_0x5ad315['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4c7685=_0x5ad315['plugins']['get']('TrackChangesEditing');_0x4c7685['enableCommand']('goToPreviousRestrictedEditingException'),_0x4c7685['enableCommand']('goToNextRestrictedEditingException');const _0x33d98d=_0x5ad315['plugins']['get']('RestrictedEditingModeEditing');_0x33d98d['enableCommand']('trackChanges'),_0x33d98d['enableCommand']('acceptSuggestion'),_0x33d98d['enableCommand']('discardSuggestion'),_0x33d98d['enableCommand']('acceptAllSuggestions'),_0x33d98d['enableCommand']('discardAllSuggestions'),_0x33d98d['enableCommand']('acceptSelectedSuggestions'),_0x33d98d['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x25de16{static get['requires'](){return[_0x511bd2];}['init'](){const _0x3ae61f=this['editor'],_0x11930b=_0x3ae61f['plugins']['get']('TrackChangesEditing');_0x11930b['enableCommand']('shiftEnter'),_0x3ae61f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3ae61f),{'priority':'high'}),_0x3ae61f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3ae61f),{'priority':'high'}),_0x3ae61f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ee61a,_0x32a0c4,_0x5f56b6)=>{_0x5f56b6['options']['showSuggestionHighlights']&&de(_0x3ae61f,{'showActiveMarker':!0x1})(_0x2ee61a,_0x32a0c4,_0x5f56b6);}),_0x11930b['descriptionFactory']['registerElementLabel']('softBreak',_0x371180=>o(_0x3ae61f['locale'],'ELEMENT_LINE_BREAK',_0x371180));}}function de(_0x1ff144,{showActiveMarker:_0x2bb3ce=!0x0}={}){return(_0x2f0c57,_0x2c65ec,_0x5b20bb)=>{const _0x24a976=_0x1ff144['plugins']['get']('TrackChangesEditing');if(!_0x5b20bb['consumable']['test'](_0x2c65ec['markerRange'],_0x2f0c57['name']))return;const _0x24793b=_0x1ff144['model'];for(const _0xe824d1 of _0x2c65ec['markerRange']['getItems']()){if(!_0xe824d1['is']('element','softBreak'))continue;const _0x39afce='deletion'==_0x2c65ec['markerName']['split'](':')[0x1]?'merge':'split',_0x33e066=_0x5b20bb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39afce}),_0x10652d=_0x5b20bb['mapper']['toViewPosition'](_0x24793b['createPositionBefore'](_0xe824d1));_0x2bb3ce&&_0x24a976['activeMarkers']['includes'](_0x2c65ec['markerName'])&&_0x5b20bb['writer']['addClass']('ck-suggestion-marker--active',_0x33e066),_0x5b20bb['writer']['insert'](_0x10652d,_0x33e066),_0x5b20bb['mapper']['bindElementToMarker'](_0x33e066,_0x2c65ec['markerName']);}};}class wt extends _0x25de16{['afterInit'](){const _0x3d90e9=this['editor'],_0x2bb7aa=_0x3d90e9['model'],_0x295b4e=_0x3d90e9['locale'];if(!_0x3d90e9['plugins']['has']('StandardEditingModeEditing'))return;const _0x567ff8=_0x3d90e9['plugins']['get']('TrackChangesEditing'),_0x36fd15='restrictedEditingException',_0x2032a7=_0x3d90e9['commands']['get'](_0x36fd15);_0x567ff8['enableCommand'](_0x36fd15,(_0x3f4804,_0x51a399={})=>{const _0x1cd0ff=_0x2bb7aa['document']['selection'];if(_0x1cd0ff['isCollapsed'])return void _0x3f4804(_0x51a399);const _0x1b6116=void 0x0!==_0x51a399['forceValue']?_0x51a399['forceValue']:!_0x2032a7['value'];_0x2bb7aa['change'](()=>{const _0x32d663=Array['from'](_0x1cd0ff['getRanges']());for(const _0x1a2653 of _0x32d663){const _0x3b44e1=_0x1b6116?[_0x1a2653]:io(_0x36fd15,_0x1a2653,_0x2bb7aa);for(const _0x23a293 of _0x3b44e1)_0x567ff8['markInlineFormat'](_0x23a293,{'commandName':_0x36fd15,'commandParams':[{'forceValue':_0x1b6116}]});}});}),_0x567ff8['descriptionFactory']['registerDescriptionCallback'](_0x21e892=>{if('formatBlock'!=_0x21e892['type']&&'formatInline'!=_0x21e892['type'])return;const {data:_0x310c19}=_0x21e892;return _0x310c19&&_0x310c19['commandName']==_0x36fd15?_0x310c19['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x295b4e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x295b4e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x25de16{['afterInit'](){const _0x59112f=this['editor'];if(!_0x59112f['plugins']['has']('Style')||!_0x59112f['plugins']['has']('DataSchema'))return;const _0x1f2f27=_0x59112f['plugins']['get']('TrackChangesEditing'),_0x53bf04=_0x59112f['locale'],_0x174a66=_0x59112f['config']['get']('style')||{},_0x13a249=_0x59112f['plugins']['get']('GeneralHtmlSupport'),_0x941c0=_0x59112f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x59112f['plugins']['get']('DataSchema'),_0x174a66['definitions']);_0x1f2f27['enableDefaultAttributesIntegration']('style');const _0x4d7825=new Set();for(const _0x1f5401 of _0x941c0['block']){const _0x1cf300=_0x13a249['getGhsAttributeNameForElement'](_0x1f5401['element']);_0x4d7825['add'](_0x1cf300);}const _0x2d8fb0=new Set();for(const _0x588e95 of _0x941c0['inline']){const _0x2cfb53=_0x13a249['getGhsAttributeNameForElement'](_0x588e95['element']);_0x2d8fb0['add'](_0x2cfb53);for(const _0xcb1530 of _0x588e95['ghsAttributes'])_0x2d8fb0['add'](_0xcb1530);}for(const _0x1ec929 of _0x4d7825)_0x1f2f27['registerBlockAttribute'](_0x1ec929),_0x1f2f27['descriptionFactory']['registerAttributeLabel'](_0x1ec929,o(_0x53bf04,'FORMAT_STYLE'));for(const _0x13c2c2 of _0x2d8fb0)_0x1f2f27['registerInlineAttribute'](_0x13c2c2),_0x1f2f27['descriptionFactory']['registerAttributeLabel'](_0x13c2c2,o(_0x53bf04,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32e202=this['editor'],_0xaafe34=_0x32e202['locale'];_0x32e202['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b9091=>{if('formatBlock'!=_0x5b9091['type']&&'formatInline'!=_0x5b9091['type'])return;const {data:_0x1b5ee1}=_0x5b9091;return _0x1b5ee1&&'style'===_0x1b5ee1['commandName']?_0x1b5ee1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xaafe34,'*Set\x20format:*\x20%0',_0x1b5ee1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xaafe34,'*Remove\x20format:*\x20%0',_0x1b5ee1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x25de16{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x961cf6){super(_0x961cf6),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x20ddbb=this['editor'],_0x48f038=_0x20ddbb['model']['document']['selection'];if(!_0x20ddbb['plugins']['has']('TableEditing'))return;const _0x1edd3d=_0x20ddbb['locale'],_0x2352ab=_0x20ddbb['plugins']['get']('TrackChangesEditing'),_0x4a07cc=_0x20ddbb['plugins']['get']('TableUtils');_0x2352ab['descriptionFactory']['registerElementLabel']('table',_0x1f626f=>o(_0x1edd3d,'ELEMENT_TABLE',_0x1f626f)),this['_setupColumnsRowsFixing'](),_0x2352ab['enableCommand']('insertTable'),_0x2352ab['enableCommand']('selectTableRow'),_0x2352ab['enableCommand']('selectTableColumn');for(const _0x469d85 of['insertTableRowAbove','insertTableRowBelow']){const _0x1452a8=_0x20ddbb['commands']['get'](_0x469d85);_0x2352ab['enableCommand'](_0x469d85,_0x395928=>{_0x20ddbb['model']['change'](_0x30fca7=>{_0x395928();const _0x5bd44f='above'===_0x1452a8['order'],_0x5d12f4=_0x4a07cc['getSelectionAffectedTableCells'](_0x48f038),_0x1d1347=_0x4a07cc['getRowIndexes'](_0x5d12f4),_0x249f2d=_0x5bd44f?_0x1d1347['first']-0x1:_0x1d1347['last']+0x1,_0x16447c=_0x5d12f4[0x0]['findAncestor']('table'),_0xc07468=_0x4a07cc['createTableWalker'](_0x16447c,{'startRow':_0x249f2d,'endRow':_0x249f2d}),_0x3ed6b5=Array['from'](_0xc07468)['map'](_0x1b179e=>_0x30fca7['createRangeOn'](_0x1b179e['cell']));_0x2352ab['markMultiRangeInsertion'](_0x3ed6b5,'tableRow');});});}for(const _0x3a7588 of['insertTableColumnLeft','insertTableColumnRight']){const _0x27b7ae=_0x20ddbb['commands']['get'](_0x3a7588);_0x2352ab['enableCommand'](_0x3a7588,_0x1c6b1d=>{_0x20ddbb['model']['change'](_0x150cb7=>{_0x1c6b1d();const _0x26ffac='left'===_0x27b7ae['order'],_0x21e1b5=_0x4a07cc['getSelectionAffectedTableCells'](_0x48f038),_0x328030=_0x4a07cc['getColumnIndexes'](_0x21e1b5),_0x41f5aa=_0x26ffac?_0x328030['first']-0x1:_0x328030['last']+0x1,_0x5614f6=_0x21e1b5[0x0]['findAncestor']('table'),_0x10105f=_0x4a07cc['createTableWalker'](_0x5614f6,{'startRow':0x0,'column':_0x41f5aa,'includeAllSlots':!0x1}),_0x56f2e3=Array['from'](_0x10105f)['map'](_0x761370=>_0x150cb7['createRangeOn'](_0x761370['cell']));_0x2352ab['markMultiRangeInsertion'](_0x56f2e3,'tableColumn');});});}for(const _0x2335b8 of['removeTableRow','removeTableColumn']){const _0x4ddfed=_0x2335b8['substr'](0xb),_0x5e54d2=_0x4ddfed['toLowerCase'](),_0x1860c6=_0x5e54d2['substr'](0x0,0x3)+'span',_0xce186b='table'+_0x4ddfed,_0x2370f9='min'+_0x4ddfed,_0x5af726='max'+_0x4ddfed;_0x2352ab['enableCommand'](_0x2335b8,()=>{_0x20ddbb['model']['change'](_0x4c8209=>{const _0x359349=_0x4a07cc['getSelectionAffectedTableCells'](_0x48f038),_0x4409c6=_0x359349[0x0]['findAncestor']('table');let _0x131193;if('removeTableRow'==_0x2335b8){const _0x39a612=_0x4a07cc['getRowIndexes'](_0x359349);_0x131193={'startRow':_0x39a612['first'],'endRow':_0x39a612['last'],'includeAllSlots':!0x0};}else{const _0x31a213=_0x4a07cc['getColumnIndexes'](_0x359349);_0x131193={'startColumn':_0x31a213['first'],'endColumn':_0x31a213['last'],'includeAllSlots':!0x0};}const _0xc203bd=_0x4a07cc['createTableWalker'](_0x4409c6,_0x131193),_0x2e94c4=Array['from'](_0xc203bd)['map'](({cell:_0x5954a4})=>_0x5954a4),_0x540406=Ee(_0x2e94c4['filter'](_0x380c77=>_0x380c77['hasAttribute'](_0x1860c6))),_0x50fd98=Ee(_0x2e94c4['filter'](_0x1f83e2=>!_0x1f83e2['hasAttribute'](_0x1860c6)))['map'](_0x57f8fe=>_0x4c8209['createRangeOn'](_0x57f8fe)),_0x35d560=_0x2352ab['markMultiRangeDeletion'](_0x50fd98,_0xce186b);if(_0x35d560&&('tableRow'==_0x35d560['subType']||'tableColumn'==_0x35d560['subType'])){const _0x2cf006=this['_getSuggestionCoords'](_0x35d560);for(const _0x586b38 of _0x540406){const _0x13edb8=_0x4c8209['createRangeOn'](_0x586b38),_0x5dacd0=_0x4a07cc['getCellLocation'](_0x586b38),_0x165517=_0x586b38['getAttribute'](_0x1860c6)-0x1,_0x31857d=_0x2cf006[_0x2370f9],_0x189255=_0x2cf006[_0x5af726];_0x31857d<=_0x5dacd0[_0x5e54d2]&&_0x5dacd0[_0x5e54d2]+_0x165517<=_0x189255&&_0x35d560['addRange'](_0x13edb8);}}});});}function _0x345e09(_0x3ddca2){const _0x5879c8=Array['from'](_0x48f038['getRanges']())['map'](_0x3892ea=>_0x9c5a28['fromRange'](_0x3892ea));_0x20ddbb['model']['change'](_0x378b83=>{const _0x458db1=_0x378b83['batch'];_0x3ddca2=_0x3ddca2['filter'](_0x877049=>'$graveyard'!=_0x877049['root']['rootName']),_0x378b83['setSelection'](_0x3ddca2),_0x20ddbb['commands']['get']('removeTableRow')['refresh'](),_0x20ddbb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x20ddbb['model']['enqueueChange'](()=>{_0x20ddbb['model']['enqueueChange'](_0x458db1,_0x457bfb=>{const _0xf0a908=_0x5879c8['filter'](_0x812b84=>'$graveyard'!=_0x812b84['root']['rootName']);_0xf0a908['length']>0x0&&_0x457bfb['setSelection'](_0xf0a908);for(const _0xbd2175 of _0x5879c8)_0xbd2175['detach']();});});});}function _0x25e6b4(_0x16917e){_0x20ddbb['model']['change'](_0x4904f1=>{const _0x366976=Array['from'](_0x48f038['getRanges']())['map'](_0x298f04=>_0x9c5a28['fromRange'](_0x298f04)),_0x3dcec7=[];for(const _0x20291e of _0x16917e)for(const _0x4cb2e1 of _0x20291e['getItems']({'shallow':!0x0}))_0x3dcec7['push'](_0x4cb2e1);for(const _0x4a39d5 of _0x3dcec7)'$graveyard'!=_0x4a39d5['root']['rootName']&&(_0x4904f1['setSelection'](_0x4904f1['createPositionAt'](_0x4a39d5,0x0)),_0x20ddbb['commands']['get']('removeTableColumn')['refresh'](),_0x20ddbb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x39a5f4=_0x366976['filter'](_0xd156e4=>'$graveyard'!=_0xd156e4['root']['rootName']);_0x39a5f4['length']>0x0&&_0x4904f1['setSelection'](_0x39a5f4);for(const _0x338aa1 of _0x366976)_0x338aa1['detach']();});}function _0x22d364(_0xf77a7a,_0x2232b1){return _0x2232b1['every'](_0x395ac5=>_0xf77a7a['some'](_0x358a67=>_0x358a67['end']['isEqual'](_0x395ac5['start'])||_0x395ac5['end']['isEqual'](_0x358a67['start'])));}function _0x1f1d0e(_0x556349,_0x27e448){return!_0x556349['some'](_0x1fbfcb=>_0x27e448['some'](_0x125ce7=>_0x1fbfcb['isIntersecting'](_0x125ce7)))&&_0x556349['some'](_0x1aaf99=>_0x27e448['some'](_0x33361e=>_0x1aaf99['end']['isTouching'](_0x33361e['start'])));}_0x20ddbb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1828c5,_0x1d7db2,_0x463b90)=>{if(!_0x463b90['options']['showSuggestionHighlights'])return;const _0x4e96a2=_0x1d7db2['item'];if(!_0x4e96a2)return;const _0x3bc62=_0x463b90['mapper']['toViewElement'](_0x4e96a2);function _0x3ea33b(_0x45f63d){return Array['isArray'](_0x45f63d)?_0x45f63d:[_0x45f63d];}_0x3bc62&&'tableCell'===_0x4e96a2['name']&&_0x40de7f(_0x3bc62,_0x463b90['writer'],(_0x2423d9,_0x3646f9,_0x332762)=>_0x332762['addClass'](_0x3ea33b(_0x3646f9['classes']),_0x2423d9),(_0x595ee2,_0x39a886,_0x4055ed)=>_0x4055ed['removeClass'](_0x3ea33b(_0x39a886['classes']),_0x595ee2));},{'priority':'highest'}),_0x2352ab['descriptionFactory']['registerDescriptionCallback'](_0x2e1ac3=>{if('insertion'!=_0x2e1ac3['type']&&'deletion'!=_0x2e1ac3['type'])return;const _0xfda8d5=_0x2e1ac3['getContainedElement']();if(null!=_0xfda8d5&&_0xfda8d5['is']('element','table')){if('insertion'==_0x2e1ac3['type']){const _0x4c04a7=_0x2e1ac3['getItems']()['filter'](_0x45ae0b=>_0x45ae0b['is']('$textProxy'))['map'](_0x42d06f=>_0x42d06f['data']);if(_0x4c04a7['length'])return{'type':'insertion','content':o(_0x1edd3d,'*Insert:*\x20%0',o(_0x1edd3d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c04a7['join']('\x20')+'\x22'))};}if('deletion'==_0x2e1ac3['type']){const _0xb92306=_0x2e1ac3['getItems']()['filter'](_0x5320aa=>_0x5320aa['is']('$textProxy'))['map'](_0x416d42=>_0x416d42['data']);if(_0xb92306['length'])return{'type':'deletion','content':o(_0x1edd3d,'*Remove:*\x20%0',o(_0x1edd3d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xb92306['join']('\x20')+'\x22'))};}}}),_0x2352ab['descriptionFactory']['registerDescriptionCallback'](_0x75f8c9=>{if('tableRow'==_0x75f8c9['subType']){const _0x534c19=_0x75f8c9['getItems']()['filter'](_0x4a1232=>_0x4a1232['is']('$textProxy'))['map'](_0x478cb0=>_0x478cb0['data']),_0x2fc99f=this['_getSuggestionCoords'](_0x75f8c9),_0x47453d=_0x2fc99f['maxRow']-_0x2fc99f['minRow']+0x1;if('insertion'==_0x75f8c9['type'])return _0x534c19['length']?{'type':'insertion','content':o(_0x1edd3d,'*Insert:*\x20%0',o(_0x1edd3d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47453d,'\x22'+_0x534c19['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1edd3d,'*Insert:*\x20%0',o(_0x1edd3d,'ELEMENT_TABLE_ROW',_0x47453d))};if('deletion'==_0x75f8c9['type'])return _0x534c19['length']?{'type':'deletion','content':o(_0x1edd3d,'*Remove:*\x20%0',o(_0x1edd3d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47453d,'\x22'+_0x534c19['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1edd3d,'*Remove:*\x20%0',o(_0x1edd3d,'ELEMENT_TABLE_ROW',_0x47453d))};}if('tableColumn'==_0x75f8c9['subType']){const _0x585d86=_0x75f8c9['getItems']()['filter'](_0xd59407=>_0xd59407['is']('$textProxy'))['map'](_0x343756=>_0x343756['data']),_0x3266be=this['_getSuggestionCoords'](_0x75f8c9),_0xa9abbd=_0x3266be['maxColumn']-_0x3266be['minColumn']+0x1;if('insertion'==_0x75f8c9['type'])return _0x585d86['length']?{'type':'insertion','content':o(_0x1edd3d,'*Insert:*\x20%0',o(_0x1edd3d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xa9abbd,'\x22'+_0x585d86['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1edd3d,'*Insert:*\x20%0',o(_0x1edd3d,'ELEMENT_TABLE_COLUMN',_0xa9abbd))};if('deletion'==_0x75f8c9['type'])return _0x585d86['length']?{'type':'deletion','content':o(_0x1edd3d,'*Remove:*\x20%0',o(_0x1edd3d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xa9abbd,'\x22'+_0x585d86['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1edd3d,'*Remove:*\x20%0',o(_0x1edd3d,'ELEMENT_TABLE_COLUMN',_0xa9abbd))};}}),_0x2352ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x345e09),_0x2352ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x345e09),_0x2352ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25e6b4),_0x2352ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25e6b4),_0x2352ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x22d364),_0x2352ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x22d364),_0x2352ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1f1d0e),_0x2352ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1f1d0e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x405ccd=this['editor'],_0x11f411=_0x405ccd['model']['document']['selection'];return(_0x151684,_0x5f2ce3)=>{_0x405ccd['model']['change'](_0x3d7764=>{const {commandName:_0xd2a8ac,commandParams:_0x2dd296}=_0x5f2ce3;let _0x36f39b=_0x151684[0x0]['end']['nodeBefore'];_0x2dd296&&_0x2dd296[0x0]&&!0x1===_0x2dd296[0x0]['forceValue']&&(_0x36f39b=_0x151684[0x0]['start']['nodeAfter']);const _0xc07a9c=_0x3d7764['createRangeIn'](_0x36f39b);if('$graveyard'==_0xc07a9c['root']['rootName'])return;const _0xa7de3b=Array['from'](_0x11f411['getRanges']())['map'](_0x22d91d=>_0x9c5a28['fromRange'](_0x22d91d));_0x3d7764['setSelection'](_0xc07a9c),_0x405ccd['commands']['get'](_0xd2a8ac)['refresh'](),_0x2dd296['push']({'forceDefaultExecution':!0x0}),_0x405ccd['execute'](_0xd2a8ac,..._0x2dd296);const _0x375952=_0xa7de3b['filter'](_0x14f26d=>'$graveyard'!=_0x14f26d['root']['rootName']);_0x375952['length']>0x0&&_0x3d7764['setSelection'](_0x375952);for(const _0x408b08 of _0xa7de3b)_0x408b08['detach']();});};}['_getCoordsForCells'](_0x53d7d9){const _0x5e09ef=this['editor']['plugins']['get']('TableUtils');let _0x5ab692=Number['MAX_SAFE_INTEGER'],_0x3ef950=Number['MIN_SAFE_INTEGER'],_0x2f0234=Number['MAX_SAFE_INTEGER'],_0xbae92a=Number['MIN_SAFE_INTEGER'];for(const _0x315841 of _0x53d7d9){if('$graveyard'==_0x315841['root']['rootName'])continue;const {row:_0x5c05ee,column:_0x23326e}=_0x5e09ef['getCellLocation'](_0x315841),_0x29a439=_0x315841['hasAttribute']('rowspan')?_0x315841['getAttribute']('rowspan')-0x1:0x0,_0x2e112f=_0x315841['hasAttribute']('colspan')?_0x315841['getAttribute']('colspan')-0x1:0x0;_0x5ab692=_0x5c05ee<_0x5ab692?_0x5c05ee:_0x5ab692,_0x3ef950=_0x5c05ee+_0x29a439>_0x3ef950?_0x5c05ee+_0x29a439:_0x3ef950,_0x2f0234=_0x23326e<_0x2f0234?_0x23326e:_0x2f0234,_0xbae92a=_0x23326e+_0x2e112f>_0xbae92a?_0x23326e+_0x2e112f:_0xbae92a;}return{'minRow':_0x5ab692,'maxRow':_0x3ef950,'minColumn':_0x2f0234,'maxColumn':_0xbae92a};}['_setupColumnsRowsFixing'](){const _0x596920=this['editor'],_0x5e10cf=_0x596920['plugins']['get']('TrackChangesEditing'),_0xde594d=_0x596920['plugins']['get']('TableUtils');_0x596920['model']['document']['on']('change:data',()=>{const _0x2f9d1a=Array['from'](_0x596920['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ad91d,data:_0x59f70}of _0x2f9d1a){const {group:_0x390138,id:_0x1c4055,subType:_0x1103c0}=_0x5e10cf['_splitMarkerName'](_0x5ad91d);if('suggestion'!=_0x390138)continue;if(null!=_0x59f70['oldRange'])continue;const _0x212dc9=_0x5e10cf['getSuggestion'](_0x1c4055);this['_tablePostFixingSubtypes']['includes'](_0x1103c0)&&this['_tableSuggestions']['add'](_0x212dc9);}},{'priority':'low'});const _0x28f161=(_0x23d19b,_0x2dcdf7)=>{let _0x418c24=!0x1;const _0x41a130=_0x2dcdf7['createRangeOn'](_0x23d19b),_0x13efab=_0x23d19b['findAncestor']('table'),_0x598d95=_0xde594d['getCellLocation'](_0x23d19b);for(const _0x493ce5 of this['_tableSuggestions']){const _0x1ce6b7=_0x493ce5['subType'],_0xf54248=_0x1ce6b7['startsWith']('tablePaste'),_0xfd5637=_0x1ce6b7['substr'](_0xf54248?0xa:0x5),_0xd317fb=_0xfd5637['toLowerCase'](),_0x3c13e7=_0xd317fb['substr'](0x0,0x3)+'span',_0xcecd69='min'+_0xfd5637,_0x573259='max'+_0xfd5637;if(!_0x493ce5['isInContent'])continue;if(_0x13efab!=_0x493ce5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x493ce5['isIntersectingWithRange'](_0x41a130))continue;const _0x8873ac=_0x23d19b['hasAttribute'](_0x3c13e7)?_0x23d19b['getAttribute'](_0x3c13e7)-0x1:0x0,_0x47e6d0=this['_getSuggestionCoords'](_0x493ce5),_0x57810c=_0x47e6d0[_0xcecd69],_0x3cf165=_0x47e6d0[_0x573259];_0x57810c<=_0x598d95[_0xd317fb]&&_0x598d95[_0xd317fb]+_0x8873ac<=_0x3cf165&&(_0x493ce5['addRange'](_0x41a130),_0x418c24=!0x0);}return _0x418c24;};_0x596920['model']['document']['registerPostFixer'](_0x2c28d9=>{let _0x416717=!0x1;for(const _0xa60fe9 of _0x596920['model']['document']['differ']['getChanges']())if('insert'==_0xa60fe9['type']){if('tableRow'==_0xa60fe9['name']){for(const _0x1eba62 of _0xa60fe9['position']['nodeAfter']['getChildren']())_0x416717=_0x416717||_0x28f161(_0x1eba62,_0x2c28d9);}else'tableCell'==_0xa60fe9['name']&&(_0x416717=_0x416717||_0x28f161(_0xa60fe9['position']['nodeAfter'],_0x2c28d9));}return _0x416717;});}['_getSuggestionCoords'](_0x57bce3){return this['_getCoordsForCells'](_0x57bce3['getRanges']()['map'](_0x43789f=>_0x43789f['start']['nodeAfter']));}}function Ee(_0x2894b3){return Array['from'](new Set(_0x2894b3)['values']());}class St extends _0x25de16{static get['requires'](){return[jt];}['afterInit'](){const _0x1f4803=this['editor'],_0x2e7e82=_0x1f4803['model']['document']['selection'],_0xc23a49=_0x1f4803['locale'];if(!_0x1f4803['plugins']['has']('TableEditing'))return;const _0x2596ec=_0x1f4803['plugins']['get']('TrackChangesEditing'),_0xc6557d=_0x1f4803['plugins']['get']('TableUtils'),_0x1e1dd8=_0x1f4803['plugins']['get'](jt);_0x1e1dd8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2596ec['enableCommand']('mergeTableCells',()=>{const _0x24fd94=_0xc6557d['getSelectionAffectedTableCells'](_0x1f4803['model']['document']['selection']);_0x1f4803['model']['change'](()=>{_0x2596ec['markMultiRangeBlockFormat'](_0x24fd94,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1f4803['commands']['get']('mergeTableCells')['on']('execute',(_0x1ec071,_0xdbcff9)=>{_0x1f4803['commands']['get']('trackChanges')['value']&&(_0xdbcff9['length']>0x0&&_0xdbcff9[_0xdbcff9['length']-0x1]&&_0xdbcff9[_0xdbcff9['length']-0x1]['forceDefaultExecution']||_0x2596ec['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1ec071['stop']());},{'priority':'highest'});for(const _0x172f61 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x467405=_0x1f4803['commands']['get'](_0x172f61);_0x2596ec['enableCommand'](_0x172f61,()=>{const _0x57a53b=_0x1f4803['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4aef7f=>_0x4aef7f['is']('element','tableCell')),_0x1fe27e=_0x467405['value'];_0x1f4803['model']['change'](()=>{_0x2596ec['markMultiRangeBlockFormat']([_0x57a53b,_0x1fe27e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2e5712 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x84f0f6=_0x1f4803['commands']['get'](_0x2e5712);_0x2596ec['enableCommand'](_0x2e5712,()=>{const _0x515e7c=_0xc6557d['getSelectionAffectedTableCells'](_0x1f4803['model']['document']['selection'])[0x0],_0x4caa1b=_0x515e7c['findAncestor']('table'),{column:_0x174558,row:_0x1e75b4}=_0xc6557d['getCellLocation'](_0x515e7c);let _0x3ff554=[];if('horizontally'==_0x84f0f6['direction']){const _0x1d5f4f=_0xc6557d['createTableWalker'](_0x4caa1b,{'startRow':_0x1e75b4,'endRow':_0x1e75b4,'includeAllSlots':!0x0});_0x3ff554=Array['from'](_0x1d5f4f)['map'](_0x4223dd=>_0x4223dd['cell']);}else{const _0x4da4e1=_0xc6557d['createTableWalker'](_0x4caa1b,{'column':_0x174558,'includeAllSlots':!0x0});_0x3ff554=Array['from'](_0x4da4e1)['map'](_0x4d3e4d=>_0x4d3e4d['cell']);}_0x1f4803['model']['change'](_0x4f49ab=>{_0x2596ec['markBlockFormat'](_0x4f49ab['createRangeOn'](_0x515e7c),{'commandName':_0x2e5712,'commandParams':[]},_0x3ff554,_0x2e5712);});});}_0x2596ec['descriptionFactory']['registerDescriptionCallback'](_0x4e4a20=>{if('formatBlock'!=_0x4e4a20['type']&&'formatInline'!=_0x4e4a20['type'])return;const {data:_0x5ab460}=_0x4e4a20;return _0x5ab460&&'mergeTableCells'==_0x5ab460['commandName']?{'type':'format','content':o(_0xc23a49,'*Merge\x20cells*')}:void 0x0;}),_0x2596ec['descriptionFactory']['registerDescriptionCallback'](_0xc423d5=>{if('formatBlock'!=_0xc423d5['type']&&'formatInline'!=_0xc423d5['type'])return;const {data:_0x2dcdda}=_0xc423d5;return _0x2dcdda?'splitTableCellVertically'==_0x2dcdda['commandName']?{'type':'format','content':o(_0xc23a49,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2dcdda['commandName']?{'type':'format','content':o(_0xc23a49,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1c19fe=_0x1e1dd8['_acceptFormatSuggestionCallbackFactory']();for(const _0x461763 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2596ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x461763,'accept',_0x1c19fe);for(const _0x15579a of['splitTableCellVertically','splitTableCellHorizontally'])_0x2596ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15579a,'accept',_0x1c19fe);_0x2596ec['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2189d8=>{_0x1f4803['model']['change'](_0x3839d3=>{const _0x44f5b7=Array['from'](_0x2e7e82['getRanges']())['map'](_0x4187fa=>_0x9c5a28['fromRange'](_0x4187fa));_0x3839d3['setSelection'](_0x2189d8),_0x1f4803['commands']['get']('mergeTableCells')['refresh'](),_0x1f4803['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1f4b81=_0x44f5b7['filter'](_0xb2c453=>'$graveyard'!=_0xb2c453['root']['rootName']);_0x1f4b81['length']>0x0&&_0x3839d3['setSelection'](_0x1f4b81);for(const _0x53f9d4 of _0x44f5b7)_0x53f9d4['detach']();});});for(const _0x3ea083 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x278726=_0x1f4803['commands']['get'](_0x3ea083);_0x278726['on']('set:isEnabled',(_0x264624,_0x5a042b,_0x2c5e09)=>{if(_0x2c5e09){const _0x4b0e8e=_0x1f4803['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfa8f58=>_0xfa8f58['is']('element','tableCell'));this['_areMergableCells'](_0x278726['value'],_0x4b0e8e)||(_0x264624['return']=!0x1,_0x264624['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x18bb04=this['editor']['commands']['get']('mergeTableCells'),_0x47abd0=this['editor']['plugins']['get']('TableUtils');if(!_0x18bb04['isEnabled'])return!0x1;const _0x1bc308=_0x47abd0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2ca67d of _0x1bc308)for(const _0x300943 of _0x1bc308)if(_0x2ca67d!=_0x300943&&!this['_areMergableCells'](_0x2ca67d,_0x300943))return!0x1;return!0x0;}['_areMergableCells'](_0x94414c,_0x39eb1a){const _0x258542=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f4764=this['editor']['model']['createRangeOn'](_0x94414c),_0x2b0a66=this['editor']['model']['createRangeOn'](_0x39eb1a),_0x5b2ec0=new Set(),_0xb73abe=new Set();for(const _0x553f04 of _0x258542['getSuggestions']())if(('insertion'==_0x553f04['type']||'deletion'==_0x553f04['type']||'mergeTableCells'==_0x553f04['subType'])&&_0x553f04['isInContent']){for(const _0x470c31 of _0x553f04['getRanges']())_0x470c31['containsRange'](_0x4f4764,!0x0)&&_0x5b2ec0['add'](_0x553f04['type']+':'+_0x553f04['author']['id']),_0x470c31['containsRange'](_0x2b0a66,!0x0)&&_0xb73abe['add'](_0x553f04['type']+':'+_0x553f04['author']['id']);}if(_0x5b2ec0['size']!=_0xb73abe['size'])return!0x1;for(const _0x4088aa of _0x5b2ec0)if(!_0xb73abe['has'](_0x4088aa))return!0x1;return!0x0;}}class At extends _0x25de16{static get['requires'](){return[jt];}['afterInit'](){const _0x1d13df=this['editor'];if(!_0x1d13df['plugins']['has']('TableEditing'))return;const _0x381215=_0x1d13df['locale'],_0x40d356=_0x1d13df['plugins']['get']('TrackChangesEditing');_0x40d356['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x40d356['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x40d356['registerBlockAttribute']('headingRows'),_0x40d356['registerBlockAttribute']('headingColumns'),_0x40d356['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x381215,'FORMAT_HEADER_ROW')),_0x40d356['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x381215,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x52e921=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52d490=this['editor']['plugins']['get']('TableUtils'),_0x4ac793=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0xc0cde({showActiveMarker:_0x5d176e=!0x0,setDataAttribute:_0x51a80b=!0x0}={}){return(_0x397461,_0xe8c009,_0x17126d)=>{const {type:_0x380e60,id:_0x2117ee}=_0x52e921['_splitMarkerName'](_0xe8c009['markerName']),_0x9eb3a4=_0x52e921['getSuggestion'](_0x2117ee),_0x182b4e=_0x9eb3a4['data'];if('formatBlock'!=_0x9eb3a4['type']||!_0x182b4e||'setTableColumnHeader'!=_0x182b4e['commandName'])return;if(_0xe8c009['item'])return void _0x397461['stop']();if(!_0x17126d['consumable']['consume'](_0xe8c009['markerRange'],_0x397461['name']))return;const _0x3382bf=_0xe8c009['markerRange']['start']['nodeAfter'],_0x15384c=_0xe8c009['markerRange']['end']['nodeBefore'],_0x3edd5e=_0x3382bf['parent']['parent'],{column:_0x49ad72}=_0x52d490['getCellLocation'](_0x3382bf),{column:_0x49e652}=_0x52d490['getCellLocation'](_0x15384c);for(let _0x56207c=_0x49ad72;_0x56207c<=_0x49e652;_0x56207c++){const _0xd31ded=_0x52d490['createTableWalker'](_0x3edd5e,{'column':_0x56207c,'includeAllSlots':!0x1});for(const _0x23ea2a of _0xd31ded){const _0x28f6e1=_0x23ea2a['cell'],_0x3f4197=_0x17126d['mapper']['toViewElement'](_0x28f6e1);_0x17126d['writer']['addClass']('ck-suggestion-marker-'+_0x380e60,_0x3f4197),_0x51a80b&&_0x17126d['writer']['setAttribute']('data-suggestion',_0x2117ee,_0x3f4197),_0x17126d['mapper']['bindElementToMarker'](_0x3f4197,_0xe8c009['markerName']),_0x5d176e&&(_0x52e921['activeMarkers']['includes'](_0xe8c009['markerName'])?_0x17126d['writer']['addClass']('ck-suggestion-marker--active',_0x3f4197):_0x17126d['writer']['removeClass']('ck-suggestion-marker--active',_0x3f4197));}}};}_0x52e921['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4ac793),_0x52e921['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4ac793),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc0cde(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b9403,_0x46c022,_0x180ca5)=>{_0x180ca5['options']['showSuggestionHighlights']&&_0xc0cde({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4b9403,_0x46c022,_0x180ca5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x599d17,_0x2e6170,_0x21f421)=>{const {type:_0x374da5,id:_0x4e9fe2}=_0x52e921['_splitMarkerName'](_0x2e6170['markerName']),_0x515373=_0x52e921['getSuggestion'](_0x4e9fe2),_0x30c77e=_0x515373['data'];if('formatBlock'!=_0x515373['type']||!_0x30c77e||'setTableColumnHeader'!=_0x30c77e['commandName'])return;const _0x28493a=_0x21f421['mapper']['markerNameToElements'](_0x2e6170['markerName']);if(_0x28493a){for(const _0x4d0617 of _0x28493a)_0x21f421['writer']['removeClass']('ck-suggestion-marker-'+_0x374da5,_0x4d0617),_0x21f421['writer']['removeClass']('ck-suggestion-marker--active',_0x4d0617),_0x21f421['writer']['removeAttribute']('data-suggestion',_0x4d0617),_0x21f421['mapper']['unbindElementFromMarkerName'](_0x4d0617,_0x2e6170['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8c2809=this['editor'],_0x4818b7=_0x8c2809['locale'];function _0x5e013e(_0x1b45a0){return{'type':'format','content':o(_0x4818b7,'*Format:*\x20%0',_0x1b45a0)};}_0x8c2809['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a8541=>{if('formatBlock'!=_0x4a8541['type'])return;const {data:_0x4a7569}=_0x4a8541;if(_0x4a7569){if('setTableRowHeader'==_0x4a7569['commandName']){const _0xb19e49=_0x4a7569['commandParams'][0x0]['forceValue'];return _0x5e013e(o(_0x4818b7,_0xb19e49?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4a7569['commandName']){const _0x5cdc2e=_0x4a7569['commandParams'][0x0]['forceValue'];return _0x5e013e(o(_0x4818b7,_0x5cdc2e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x449b00=>[_0x449b00,null]));class It extends _0x25de16{static get['requires'](){return[jt];}['afterInit'](){const _0x3adebe=this['editor'];if(!_0x3adebe['plugins']['has']('TableClipboard'))return;const _0x462ff5=_0x3adebe['plugins']['get']('TrackChangesEditing'),_0xaa36a3=_0x3adebe['plugins']['get']('TableUtils'),_0xbed0d3=_0x3adebe['plugins']['get'](jt),_0x50476b=_0x3adebe['plugins']['get']('TableClipboard');_0xbed0d3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3adebe['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3adebe['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4d45ab=null;_0x3adebe['model']['on']('insertContent',(_0x3edd8c,_0x5b239a)=>{const [_0x1b3ad2,_0x1feb8c]=_0x5b239a,_0x5d814f=_0x5b239a[_0x5b239a['length']-0x1];_0x5d814f&&_0x5d814f['forceDefaultExecution']||_0x462ff5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5c1a1b,_0xfe3995,_0x3c444d,_0x5938fc,_0x24fd8c){if(_0xfe3995&&!_0xfe3995['is']('documentSelection'))return!0x1;const _0x378f77=_0x24fd8c['getTableIfOnlyTableInContent'](_0x5c1a1b,_0x3c444d);if(!_0x378f77||!he(_0x378f77,void 0x0,_0x5938fc))return!0x1;const _0x3dd91a=_0x5938fc['getSelectionAffectedTableCells'](_0x3c444d['document']['selection']);if(!_0x3dd91a['length'])return!0x1;const _0x17bc00=_0x3dd91a[0x0]['findAncestor']('table'),_0x278f59=_0x5938fc['getRowIndexes'](_0x3dd91a),_0xfed9ee=_0x5938fc['getColumnIndexes'](_0x3dd91a),_0x209504={'startRow':_0x278f59['first'],'endRow':_0x278f59['last'],'startColumn':_0xfed9ee['first'],'endColumn':_0xfed9ee['last']};return 0x1==_0x3dd91a['length']&&(_0x209504['endRow']+=_0x5938fc['getRows'](_0x378f77)-0x1,_0x209504['endColumn']+=_0x5938fc['getColumns'](_0x378f77)-0x1),he(_0x17bc00,_0x209504,_0x5938fc);}(_0x1b3ad2,_0x1feb8c,_0x3adebe['model'],_0xaa36a3,_0x50476b)&&(_0x3edd8c['stop'](),_0x4d45ab={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3adebe['model']['change'](()=>{_0x3adebe['model']['insertContent'](_0x5b239a[0x0],_0x5b239a[0x1],_0x5b239a[0x2],{'forceDefaultExecution':!0x0});const _0x1ca96c=_0x5357ff(),{rowInsertionRanges:_0x4287c3,columnInsertionRanges:_0x1de0ca,insertionRanges:_0xd8caf8,deletionRanges:_0x261051,cells:_0xb47557}=_0x4d45ab;_0x4287c3['length']&&_0x462ff5['markMultiRangeInsertion'](_0x4287c3,'tablePasteRow',{'tablePasteChainId':_0x1ca96c}),_0x1de0ca['length']&&_0x462ff5['markMultiRangeInsertion'](_0x1de0ca,'tablePasteColumn',{'tablePasteChainId':_0x1ca96c}),_0xd8caf8['length']&&(_0x462ff5['markMultiRangeInsertion'](_0xd8caf8,'tablePaste',{'tablePasteChainId':_0x1ca96c,'skipNestingCheck':!0x0}),_0xd8caf8['forEach'](_0x2271ec=>_0x2271ec['detach']?.())),_0x261051['length']&&(_0x462ff5['markMultiRangeDeletion'](_0x261051,'tablePaste',{'tablePasteChainId':_0x1ca96c,'skipNestingCheck':!0x0}),_0x261051['forEach'](_0x19a0be=>_0x19a0be['detach']?.()));const _0x59ee58=_0x462ff5['markMultiRangeBlockFormat'](_0xb47557['map'](({element:_0x418138})=>_0x418138),{'formatGroupId':_0x5357ff()},[],'tablePasteCell',{'tablePasteChainId':_0x1ca96c});if(_0x59ee58){const _0x39fb8d=_0x59ee58['getMarkers'](),_0x418b8d=[];for(const {element:_0x500d8c,attributes:_0x3aa9e5}of _0xb47557){if(!_0x3aa9e5)continue;const _0x4bbb03=_0x3adebe['model']['createRangeOn'](_0x500d8c),_0x3c2f72=_0x39fb8d['find'](_0x55e8bb=>_0x55e8bb['getRange']()['isEqual'](_0x4bbb03));_0x3c2f72&&_0x418b8d['push']([_0x3c2f72['name'],_0x3aa9e5]);}_0x418b8d['length']&&_0x59ee58['setAttribute']('markerAttributes',Object['fromEntries'](_0x418b8d));}_0x4d45ab=null;}));},{'priority':_0x1135e1['high']+0xa}),_0x3adebe['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x59c154,_0x5a8aa8)=>{const [_0x27b9b5,_0x207cb2,,_0x4d1ad3]=_0x5a8aa8;if(!_0x4d45ab)return;_0x59c154['stop']();const _0x5db0cf=_0x27b9b5['cell'],_0x1f4604=_0x207cb2,_0x5ebe84=Pe(_0x5db0cf),_0x5b0dc9=Pe(_0x1f4604);_0x59c154['return']=_0x5db0cf;let _0x53cbe1=null,_0x5a8f02=null;if(_0x5b0dc9||_0x5ebe84){if(_0x5ebe84&&!_0x5b0dc9){_0x4d1ad3['remove'](_0x5db0cf['getChild'](0x0));for(const _0x2df857 of Array['from'](_0x1f4604['getChildren']()))_0x4d1ad3['insert'](_0x2df857,_0x5db0cf,'end');const _0x53bd10=_0x4d45ab['rowInsertionIndexes']['includes'](_0x27b9b5['row']),_0x439c8c=_0x4d45ab['columnInsertionIndexes']['includes'](_0x27b9b5['column']);_0x53bd10||_0x439c8c||(_0x53cbe1=_0x9c5a28['fromRange'](_0x4d1ad3['createRangeIn'](_0x5db0cf)));}else _0x5b0dc9&&!_0x5ebe84&&(_0x5a8f02=_0x4d1ad3['createRangeIn'](_0x5db0cf));}else{const _0xd780c9=_0x4d1ad3['createElement']('tableCellSuggestion'),_0x5ddf1b=_0x4d1ad3['createElement']('tableCellSuggestion');_0x4d1ad3['wrap'](_0x4d1ad3['createRangeIn'](_0x5db0cf),_0x5ddf1b),_0x4d1ad3['insert'](_0xd780c9,_0x5db0cf,0x0);for(const _0xa213b7 of Array['from'](_0x1f4604['getChildren']()))_0x4d1ad3['insert'](_0xa213b7,_0xd780c9,'end');_0x53cbe1=_0x9c5a28['fromRange'](_0x4d1ad3['createRangeOn'](_0xd780c9)),_0x5a8f02=_0x9c5a28['fromRange'](_0x4d1ad3['createRangeOn'](_0x5ddf1b));}const _0x247156=Array['from'](_0x1f4604['getAttributes']())['filter'](([_0x380b7e])=>ge['includes'](_0x380b7e));_0x4d45ab['cells']['push']({'element':_0x5db0cf,'attributes':_0x247156['length']?Object['fromEntries'](_0x247156):null}),_0x53cbe1&&_0x4d45ab['insertionRanges']['push'](_0x53cbe1),_0x5a8f02&&_0x4d45ab['deletionRanges']['push'](_0x5a8f02);},{'priority':'high'}),_0xaa36a3['on']('insertColumns',(_0x339cb9,_0x1e3a82)=>{const [_0x1ff19a,_0x18ad17={}]=_0x1e3a82;if(!_0x4d45ab)return;const _0x5a8b31=_0x18ad17['at']||0x0,_0x1a29f7=_0x18ad17['columns']||0x1;_0x4d45ab['columnInsertionIndexes']=new Array(_0x1a29f7)['fill'](_0x5a8b31)['map']((_0x2de2f4,_0x5a5351)=>_0x2de2f4+_0x5a5351);for(const {cell:_0x19cd74}of _0xaa36a3['createTableWalker'](_0x1ff19a,{'startColumn':_0x5a8b31,'endColumn':_0x5a8b31+_0x1a29f7-0x1}))_0x4d45ab['columnInsertionRanges']['push'](_0x3adebe['model']['createRangeOn'](_0x19cd74));},{'priority':'low'}),_0xaa36a3['on']('insertRows',(_0x5be659,_0x47f73f)=>{const [_0x2c2854,_0x5c717b={}]=_0x47f73f;if(!_0x4d45ab)return;const _0x372aff=_0x5c717b['at']||0x0,_0xb137dc=_0x5c717b['rows']||0x1;_0x4d45ab['rowInsertionIndexes']=new Array(_0xb137dc)['fill'](_0x372aff)['map']((_0x3f0d26,_0x17ea13)=>_0x3f0d26+_0x17ea13);for(const {cell:_0x1858dc}of _0xaa36a3['createTableWalker'](_0x2c2854,{'startRow':_0x372aff,'endRow':_0x372aff+_0xb137dc-0x1}))_0x4d45ab['rowInsertionRanges']['push'](_0x3adebe['model']['createRangeOn'](_0x1858dc));},{'priority':'low'}),_0x462ff5['descriptionFactory']['registerDescriptionCallback'](_0x42f1be=>{if(_0x42f1be['subType']&&_0x42f1be['subType']['startsWith']('tablePaste'))return _0x42f1be['previous']?{}:{'type':'insertion','content':o(_0x3adebe['locale'],'*Replace\x20table\x20cells*')};});const _0x4d90ed=()=>!0x1;for(const _0x1064de of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x462ff5['_suggestionFactory']['registerCustomCallback']('insertion',_0x1064de,'join',_0x4d90ed),_0x462ff5['_suggestionFactory']['registerCustomCallback']('deletion',_0x1064de,'join',_0x4d90ed),_0x462ff5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1064de,'join',_0x4d90ed);_0x462ff5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4d90ed),_0x462ff5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4bd12f,_0x3f237f,_0x13d040)=>{const _0x4cb800=_0x4bd12f['map'](_0x4c0b14=>_0x4c0b14['getContainedElement']())['filter'](_0xa198f2=>_0xa198f2),_0x27d56a=new Map(_0x4cb800['map'](_0x49f135=>[_0x49f135,null]));if(_0x4d45ab){for(const {element:_0x4323c9,attributes:_0x5de4d7}of _0x4d45ab['cells'])_0x5de4d7&&_0x27d56a['set'](_0x4323c9,_0x5de4d7);}else{if(_0x13d040&&_0x13d040['markerAttributes'])for(const [_0x98fa58,_0x462a4a]of Object['entries'](_0x13d040['markerAttributes'])){const _0x1fa987=_0x3adebe['model']['markers']['get'](_0x98fa58),_0x2ae014=_0x1fa987?_0x1fa987['getRange']()['getContainedElement']():null;_0x2ae014&&_0x27d56a['set'](_0x2ae014,_0x462a4a);}}_0x3adebe['model']['change'](_0x56eeda=>{for(const [_0x143a10,_0x476737]of _0x27d56a)_0x56eeda['setAttributes']({...Ce,..._0x476737},_0x143a10);});});const _0x1985eb=(_0x5b26e8,_0x55965b)=>{_0x462ff5['_suggestionFactory']['registerCustomCallback'](_0x5b26e8,'tablePaste',_0x55965b,(_0x91b43a,_0x3a02e6,_0xf111b0)=>{_0x3adebe['model']['change'](_0x489c30=>{const _0x451bad=[];for(const _0x22fefd of _0x91b43a){const _0x366052=_0x22fefd['start']['nodeAfter'];_0x366052['is']('element','tableCellSuggestion')&&_0x451bad['push'](_0x366052);}_0x462ff5['_suggestionFactory']['getSuggestionCallback'](_0x5b26e8,null,_0x55965b)(_0x91b43a,_0x3a02e6,_0xf111b0);for(const _0x1fb7b3 of _0x451bad)'$graveyard'!=_0x1fb7b3['root']['rootName']&&_0x489c30['unwrap'](_0x1fb7b3);});});};_0x1985eb('insertion','accept'),_0x1985eb('insertion','discard'),_0x1985eb('deletion','accept'),_0x1985eb('deletion','discard'),_0x462ff5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2bd6b9=>{const _0x13bea6=_0x2bd6b9['map'](_0x3b9994=>_0x3b9994['getContainedElement']()),_0x54dbe2=_0x13bea6[0x0]['findAncestor']('table'),{minRow:_0x2c915f,maxRow:_0x559324}=_0xbed0d3['_getCoordsForCells'](_0x13bea6);_0xaa36a3['removeRows'](_0x54dbe2,{'at':_0x2c915f,'rows':_0x559324-_0x2c915f+0x1});}),_0x462ff5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x34dea7=>{const _0x2a17e1=_0x34dea7['map'](_0x7231e5=>_0x7231e5['getContainedElement']()),_0x5f5616=_0x2a17e1[0x0]['findAncestor']('table'),{minColumn:_0x3a7aa5,maxColumn:_0x24ab42}=_0xbed0d3['_getCoordsForCells'](_0x2a17e1);_0xaa36a3['removeColumns'](_0x5f5616,{'at':_0x3a7aa5,'columns':_0x24ab42-_0x3a7aa5+0x1});});const _0x325ffd=(_0x33c528,_0x398d4d)=>{if(!_0x398d4d['subType']||!_0x398d4d['subType']['startsWith']('tablePaste'))return;const _0x5de8ec=_0x398d4d['attributes']['tablePasteChainId'],_0x185801=_0x462ff5['getSuggestions']()['filter'](_0x25dcb2=>_0x25dcb2['isInContent']&&_0x25dcb2['attributes']&&_0x25dcb2['attributes']['tablePasteChainId']==_0x5de8ec);_0x185801['length']&&_0x398d4d['getAllAdjacentSuggestions']()['length']!=_0x185801['length']&&_0x185801['reduce']((_0x5f0b5e,_0x274e0b)=>(_0x5f0b5e['next']=_0x274e0b,_0x274e0b['previous']=_0x5f0b5e,_0x274e0b));};function _0x4a35a4(_0x3511d2,_0x149b5b=!0x0){const {id:_0x4b035c}=_0x462ff5['_splitMarkerName'](_0x3511d2['markerName']),_0x2b0614=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3d9ff6=_0x462ff5['activeMarkers']['includes'](_0x3511d2['markerName']);return _0x3d9ff6&&_0x2b0614['push']('ck-suggestion-marker--active'),{'classes':_0x2b0614,'attributes':{'data-suggestion':_0x4b035c},'priority':_0x3d9ff6&&_0x149b5b?0xbc2:0xbb8};}_0x462ff5['on']('suggestionLoaded',_0x325ffd,{'priority':'high'}),_0x462ff5['on']('suggestionUnloaded',_0x325ffd,{'priority':'high'}),_0x3adebe['model']['document']['registerPostFixer'](()=>{let _0x201dd5=!0x1;const _0x107814=Array['from'](_0x3adebe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d9971,data:_0x238efc}of _0x107814){const {group:_0xad9b79,type:_0x51ee47,id:_0x20f7d9}=_0x462ff5['_splitMarkerName'](_0x5d9971);if('suggestion'!=_0xad9b79||'deletion'!=_0x51ee47||_0x238efc['oldRange'])continue;if(!_0x462ff5['hasSuggestion'](_0x20f7d9))continue;const _0x233b7f=_0x462ff5['getSuggestion'](_0x20f7d9)['getRanges'](),_0x4c2eee=_0x3adebe['plugins']['get']('Users')['me'];for(const _0x145870 of _0x462ff5['getSuggestions']()){if(!_0x145870['isInContent']||_0x145870['author']!=_0x4c2eee)continue;if('formatBlock'!=_0x145870['type']||'tablePasteCell'!=_0x145870['subType'])continue;if(_0x145870['getRanges']()['every'](_0x1342dd=>_0x233b7f['some'](_0x474d53=>_0x474d53['containsRange'](_0x1342dd,!0x0)))){for(const _0x1485ab of _0x145870['getAllAdjacentSuggestions']())_0x1485ab['isInContent']&&(_0x1485ab['discard'](),_0x201dd5=!0x0);}}}return _0x201dd5;}),_0x3adebe['model']['document']['registerPostFixer'](_0x18c631=>{const _0x24949a=_0x3adebe['commands']['get']('redo');if(!_0x24949a||!_0x24949a['_createdBatches']['has'](_0x18c631['batch']))return!0x1;let _0x55f184=!0x1;const _0x55848e=_0x3adebe['plugins']['get']('Users')['me'],_0x5a8daf=_0x3adebe['model']['document']['differ']['getChanges'](),_0x3082c7=Array['from'](_0x3adebe['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x45661f,data:_0x2de5bc})=>{const {group:_0x290472,subType:_0x25bb3f,authorId:_0x23aeab}=_0x462ff5['_splitMarkerName'](_0x45661f);return'suggestion'==_0x290472&&'tablePaste'==_0x25bb3f&&_0x23aeab==_0x55848e['id']&&!_0x2de5bc['oldRange'];});for(const _0x18f732 of _0x5a8daf){if('insert'!=_0x18f732['type']||'tableCellSuggestion'!=_0x18f732['name']||0x1!=_0x18f732['length'])continue;const _0x2357c6=_0x18c631['createRange'](_0x18f732['position'],_0x18f732['position']['getShiftedBy'](0x1));if(!_0x3082c7['find'](({data:_0x51c32f})=>_0x51c32f['newRange']['isEqual'](_0x2357c6))){for(const {name:_0x31876a,data:_0x3eec1a}of _0x3082c7)if(_0x2357c6['containsRange'](_0x3eec1a['newRange'])){_0x18c631['updateMarker'](_0x31876a,{'range':_0x2357c6}),_0x55f184=!0x0;break;}}}return _0x55f184;}),_0x3adebe['model']['document']['registerPostFixer'](_0x4a26d7=>{let _0x29c3b7=!0x1;const _0xd358=_0x3adebe['plugins']['get']('Users')['me'],_0xa1e9fa=_0x462ff5['getSuggestions']()['filter'](_0x4cf6b1=>_0x4cf6b1['isInContent']&&_0x4cf6b1['author']==_0xd358),_0xcc50b5=new Set(),_0x520214=new Set();for(const _0x391eae of _0xa1e9fa)if('tablePaste'==_0x391eae['subType'])for(const _0x4ef1e0 of _0x391eae['getMarkers']()){const _0x413eec=_0x4ef1e0['getRange']()['getContainedElement']();if(_0x413eec){if(_0x413eec['is']('element','tableCellSuggestion')&&Pe(_0x413eec)){_0x391eae['removeMarker'](_0x4ef1e0['name']),_0xcc50b5['add'](_0x413eec),_0x29c3b7=!0x0;const _0x45120b=_0x413eec['nextSibling'],_0x3b0c9f=_0x413eec['previousSibling'],_0x4f37b0=_0x45120b&&_0x45120b['is']('element','tableCellSuggestion'),_0x5a1a33=_0x3b0c9f&&_0x3b0c9f['is']('element','tableCellSuggestion');_0x4f37b0&&!_0xcc50b5['has'](_0x45120b)&&_0x520214['add'](_0x45120b),_0x5a1a33&&!_0xcc50b5['has'](_0x3b0c9f)&&_0x520214['add'](_0x3b0c9f);}else _0x413eec['is']('element','paragraph')&&_0x413eec['isEmpty']&&(_0x391eae['removeMarker'](_0x4ef1e0['name']),_0x29c3b7=!0x0);}}else{if('tablePasteCell'==_0x391eae['subType']){if(!_0x391eae['attributes']||!_0x391eae['attributes']['tablePasteChainId'])continue;const _0x971b4c=_0x391eae['attributes']['markerAttributes'];if(_0x971b4c&&Object['keys'](_0x971b4c)['length'])continue;const _0x1abad7=_0x391eae['attributes']['tablePasteChainId'];let _0x14c816=!0x0,_0x552a1b=!0x0;for(const _0x44e500 of _0xa1e9fa)if(_0x44e500['subType']&&_0x44e500['subType']['startsWith']('tablePaste')){if(!_0x44e500['attributes']['tablePasteChainId']){_0x552a1b=!0x1;break;}if(_0x44e500['id']!=_0x391eae['id']&&_0x44e500['attributes']['tablePasteChainId']==_0x1abad7){_0x14c816=!0x1;break;}}_0x552a1b&&_0x14c816&&(_0x391eae['removeMarkers'](),_0x29c3b7=!0x0);}}for(const _0x2b363a of _0xcc50b5)_0x4a26d7['remove'](_0x2b363a);for(const _0x544a0f of _0x520214)_0x4a26d7['unwrap'](_0x544a0f);return _0x29c3b7;}),_0x3adebe['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xa0b662,_0x1dfbd1)=>_0x4a35a4(_0xa0b662),'converterPriority':'high'}),_0x3adebe['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x903053,_0x31673a)=>_0x31673a['options']['showSuggestionHighlights']?_0x4a35a4(_0x903053,!0x1):null,'converterPriority':'high'});const _0x466c00=_0x3adebe['editing']['view'];this['listenTo'](_0x466c00['document'],'clipboardOutput',(_0x5328b5,_0x353ccd)=>{const _0x52eeb3=[];for(const _0x4270ea of _0x466c00['createRangeIn'](_0x353ccd['content'])['getItems']())_0x4270ea['is']('element','suggestion-td')&&_0x52eeb3['push'](_0x4270ea);_0x466c00['change'](_0x42bd20=>{for(const _0x4efe5a of _0x52eeb3)_0x42bd20['move'](_0x42bd20['createRangeIn'](_0x4efe5a),_0x42bd20['createPositionBefore'](_0x4efe5a)),_0x42bd20['remove'](_0x4efe5a);});});}}function Pe(_0x4286f7){if(_0x4286f7['isEmpty'])return!0x0;const _0x11cdae=_0x4286f7['getChild'](0x0);return _0x11cdae['is']('element','paragraph')&&_0x11cdae['isEmpty'];}function he(_0x2229e2,_0x2629e0={},_0x52c748){for(const {isAnchor:_0x241936,cellHeight:_0x267a65,cellWidth:_0x27c730}of _0x52c748['createTableWalker'](_0x2229e2,{'includeAllSlots':!0x0,..._0x2629e0}))if(!_0x241936||0x1!=_0x267a65||0x1!=_0x27c730)return!0x1;return!0x0;}class vt extends _0x25de16{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4c8014=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c8014['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4c8014['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4c8014['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c8014['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4c8014['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4c8014['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3515e9,_0x15f2ba){const _0x1a42ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27471f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x237289=_0x15f2ba['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x34e237=_0x27471f['getColumnGroupElement'](_0x237289);let _0x1eb30b=_0x34e237?_0x27471f['getTableColumnsWidths'](_0x34e237):null,_0x5a055b=_0x237289['getAttribute']('tableWidth')||null;const _0x246508=_0x15f2ba['tableWidth']||_0x5a055b,_0x1c3fc8=_0x15f2ba['columnWidths']||_0x1eb30b,_0x576bdd=this['editor']['plugins']['get']('Users')['me'];for(const _0x5bdd39 of _0x1a42ca['getSuggestions']()){const _0x418671=_0x5bdd39['getContainedElement']();if('resizeTable'===_0x5bdd39['subType']&&_0x418671===_0x237289){_0x5bdd39['author']!==_0x576bdd&&_0x5bdd39['discard']();const _0x4d68d0=_0x5bdd39['data']['commandParams'];_0x5a055b=_0x4d68d0[0x0]['tableWidth'],_0x1eb30b=_0x4d68d0[0x0]['columnWidths'];break;}}_0x3515e9({'table':_0x237289,'tableWidth':_0x246508,'columnWidths':_0x1c3fc8}),_0x1a42ca['markBlockFormat'](_0x237289,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5a055b,'columnWidths':_0x1eb30b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5d6898){if('formatBlock'!=_0x5d6898['type']&&'formatInline'!=_0x5d6898['type'])return;const {data:_0x66078a}=_0x5d6898;if(_0x66078a&&'resizeTable'===_0x66078a['formatGroupId']){const _0x5f941f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5f941f)};}}}class Ct extends _0x25de16{['afterInit'](){const _0x3df7b7=this['editor'];_0x3df7b7['plugins']['has']('Template')&&_0x3df7b7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x25de16{['afterInit'](){const _0x15f425=this['editor'];if(!_0x15f425['commands']['get']('insertTableOfContents'))return;_0x15f425['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x43c5e3=_0x15f425['plugins']['get']('TrackChangesEditing'),_0x449bda=_0x15f425['locale'];_0x43c5e3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x765426=>o(_0x449bda,'ELEMENT_TABLE_OF_CONTENTS',_0x765426));}}class Dt extends _0x25de16{['afterInit'](){const _0x12c384=this['editor'];if(!_0x12c384['plugins']['has']('Title'))return;const _0x11a5d1=_0x12c384['plugins']['get']('TrackChangesEditing');_0x11a5d1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x12c384['locale'],'ELEMENT_TITLE')),_0x12c384['model']['document']['registerPostFixer'](_0x186205=>{let _0x7379a2=!0x1;const _0x14cb72=Array['from'](_0x12c384['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x89173d,data:_0x415516}of _0x14cb72){const {group:_0x3b2040}=_0x11a5d1['_splitMarkerName'](_0x89173d);if('suggestion'!==_0x3b2040||!_0x415516['newRange'])continue;const _0x447287=_0x415516['newRange'],_0x4c72af=_0x447287['end']['nodeBefore'];if(!_0x4c72af||!_0x4c72af['is']('element','title-content'))continue;if(!_0x447287['start']['isTouching'](_0x447287['end']))continue;const _0x34bbaf=_0x12c384['model']['schema']['getNearestSelectionRange'](_0x447287['end'],'forward');if(_0x34bbaf&&_0x34bbaf['isCollapsed']){const _0x110495=_0x186205['createRange'](_0x447287['start'],_0x34bbaf['start']);_0x110495['isEqual'](_0x447287)||(_0x186205['updateMarker'](_0x89173d,{'range':_0x110495}),_0x7379a2=!0x0);}_0x7379a2||(_0x186205['removeMarker'](_0x89173d),_0x7379a2=!0x0);}return _0x7379a2;});}}class Nt extends _0x25de16{['afterInit'](){const _0x564754=this['editor'],_0x22c830=_0x564754['plugins']['get']('TrackChangesEditing');_0x564754['plugins']['has']('UndoEditing')&&(_0x22c830['enableCommand']('undo'),_0x22c830['enableCommand']('redo'));}}class Mt extends _0x25de16{static get['requires'](){return[jt];}['afterInit'](){const _0x343dcb=this['editor'];if(!_0x343dcb['plugins']['has']('TableCaptionEditing'))return;_0x343dcb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x25de16{['tableProperties'];['tableCellProperties'];constructor(_0x3199ef){super(_0x3199ef),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 _0x240d97=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x39543e of this['tableProperties'])_0x240d97['enableCommand'](_0x39543e,(_0x3ed43d,_0xe0936b)=>{const _0x4b6d0b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x39543e,[_0x4b6d0b],this['tableProperties'],'tableProperties',_0x3ed43d,_0xe0936b);});_0x240d97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x240d97['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x240d97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x20bb93,_0x268bc3)=>this['handleDiscardAction'](this['tableProperties'],_0x20bb93,_0x268bc3)),_0x240d97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2416c2 of this['tableCellProperties'])_0x240d97['enableCommand'](_0x2416c2,(_0x339409,_0x43a418)=>{const _0x3bdf5d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2416c2,_0x3bdf5d,this['tableCellProperties'],'tableCellProperties',_0x339409,_0x43a418);});_0x240d97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x240d97['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x240d97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x41e78f,_0x67a76)=>this['handleDiscardAction'](this['tableCellProperties'],_0x41e78f,_0x67a76)),_0x240d97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x240d97['descriptionFactory']['registerDescriptionCallback'](_0x444d13=>this['handleSuggestionDescription'](_0x444d13));}['_handlePropertyChange'](_0x36a46b,_0x2ca0fd,_0x3a7552,_0xc74627,_0x1c707a,_0x14c154){const _0x2199b1=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x14c154['batch'],()=>{for(const _0x5d1ac3 of _0x2ca0fd){if(this['_getSuggestion'](_0x5d1ac3,_0xc74627))_0x1c707a(_0x14c154);else{const _0x2a2bb9={};for(const _0x27d2b3 of _0x3a7552){const _0x3ccee3=_0x5d1ac3['getAttribute'](_0x27d2b3);void 0x0!==_0x3ccee3&&(_0x2a2bb9[_0x27d2b3]=_0x3ccee3);}_0x1c707a(_0x14c154),_0x2199b1['markBlockFormat'](_0x5d1ac3,{'commandParams':[_0x2a2bb9]},[],_0xc74627);}}});}['handleDiscardAction'](_0x4ff25a,_0x3e46f4,_0x323da7){const _0x569289=_0x3e46f4[0x0]['start']['nodeAfter'],_0x1763fb=_0x323da7['commandParams'][0x0];this['editor']['model']['change'](_0x22c9c9=>{for(const _0x4b383f of _0x4ff25a)void 0x0!==_0x1763fb[_0x4b383f]?_0x22c9c9['setAttribute'](_0x4b383f,_0x1763fb[_0x4b383f],_0x569289):_0x22c9c9['removeAttribute'](_0x4b383f,_0x569289);});}['handleSuggestionDescription'](_0x49f356){if(_0x49f356['data'])switch(_0x49f356['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'](_0x2b5960,_0x2b0b0f){const _0x228542=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3067da of _0x228542['getSuggestions']({'skipNotAttached':!0x0})){const _0x31f3ed=_0x3067da['getContainedElement']();if(_0x3067da['subType']===_0x2b0b0f&&_0x31f3ed===_0x2b5960)return _0x3067da;}return null;}}const m='$elementName';class p extends _0x25de16{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x181da2,_0x4a1942,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(_0x44b605){function _0x45a15d(_0x356c0a){return _0x356c0a['map'](_0x3eacc7=>String['fromCharCode'](_0x3eacc7))['join']('');}super(_0x44b605),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x30a776,_0x3a62f6,_0x285400,_0x59f03c)=>{this['_model']['change'](()=>{for(const _0x713994 of[..._0x59f03c,..._0x285400])this['_model']['markers']['has'](_0x713994)&&_0x44b605['editing']['reconvertMarker'](_0x713994);});}),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']=_0x44b605['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(),_0x44b605['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x44b605['config']['get']('trackChanges.trackFormatChanges'),_0x44b605['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x44b605['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x44b605,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x45a15d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x45a15d([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x34]);}['init'](){const _0x303827=this['editor'],_0x5a9fe8=(_0x2d7286,_0x18d71e)=>{if('attribute'!=_0x2d7286)return'ck-suggestion-marker-'+_0x2d7286;const _0x14ee35=_0x18d71e['split']('|')[0x0];return this['_isBlockAttribute'](_0x14ee35)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x303827['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x57d723=>{const {id:_0x25988f,type:_0x4e4e9e,subType:_0x46e3ec}=this['_splitMarkerName'](_0x57d723['markerName']),_0x34e159=['ck-suggestion-marker',_0x5a9fe8(_0x4e4e9e,_0x46e3ec)];let _0x4a0624=0xbb8;return this['activeMarkers']['includes'](_0x57d723['markerName'])&&(_0x34e159['push']('ck-suggestion-marker--active'),_0x4a0624=0xbc2),'deletion'==_0x4e4e9e&&(_0x4a0624+=0x5),{'classes':_0x34e159,'attributes':{'data-suggestion':_0x25988f},'priority':_0x4a0624};}}),_0x303827['conversion']['for']('dataDowncast')['add'](_0x22f828=>{_0x22f828['on']('addMarker:suggestion',(_0x5bef13,_0x4f57a3,_0x471138)=>{if(!_0x471138['options']['showSuggestionHighlights'])return;const _0x35fb88=_0x4f57a3['item'];if(!_0x35fb88)return;const _0x2f5ebd=_0x471138['mapper']['toViewElement'](_0x35fb88);_0x303827['model']['schema']['isObject'](_0x35fb88)&&_0x2f5ebd&&!_0x2f5ebd['getCustomProperty']('widget')&&_0x2f5ebd['is']('containerElement')&&_0x2731a9(_0x2f5ebd,_0x471138['writer']);},{'priority':'high'});}),_0x303827['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2106f2,_0x551c2a)=>{if(!_0x551c2a['options']['showSuggestionHighlights'])return null;const {type:_0x4f2f60,subType:_0x4c9d4d}=this['_splitMarkerName'](_0x2106f2['markerName']);return{'classes':['ck-suggestion-marker',_0x5a9fe8(_0x4f2f60,_0x4c9d4d)],'priority':0xbb8};}});const _0x2c6d3a=({showActiveMarkers:_0x29d511=!0x0,isAttributeSuggestion:_0x58ef69=!0x1}={})=>(_0x26a341,_0x3d956d,_0x4d4907)=>{if(!_0x3d956d['item'])return;const {id:_0x469a20}=this['_splitMarkerName'](_0x3d956d['markerName']);if(_0x58ef69){const _0x3d4575=this['_suggestions']['get'](_0x469a20),_0x54fc78=this['_getAttributeKey'](_0x3d4575);if(!this['_isBlockAttribute'](_0x54fc78))return;}if(_0x3d956d['item']['is']('selection'))return void _0x4d4907['consumable']['consume'](_0x3d956d['item'],_0x26a341['name']);const _0x4326b7=_0x4d4907['mapper']['toViewElement'](_0x3d956d['item']);if(_0x3d956d['item']['is']('element')&&_0x303827['model']['schema']['isBlock'](_0x3d956d['item'])&&!_0x4326b7['getCustomProperty']('addHighlight')){_0x4d4907['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4326b7),_0x4d4907['writer']['setAttribute']('data-suggestion',_0x469a20,_0x4326b7),_0x4d4907['mapper']['bindElementToMarker'](_0x4326b7,_0x3d956d['markerName']),_0x29d511&&(this['activeMarkers']['includes'](_0x3d956d['markerName'])?_0x4d4907['writer']['addClass']('ck-suggestion-marker--active',_0x4326b7):_0x4d4907['writer']['removeClass']('ck-suggestion-marker--active',_0x4326b7));for(const _0x9f383e of _0x303827['model']['createRangeIn'](_0x3d956d['item'])['getItems']())_0x4d4907['consumable']['consume'](_0x9f383e,_0x26a341['name']);_0x4d4907['consumable']['consume'](_0x3d956d['item'],_0x26a341['name']);}};_0x303827['conversion']['for']('dataDowncast')['add'](_0x2abdd5=>{_0x2abdd5['on']('addMarker:suggestion:formatBlock',(_0x7f3e8,_0x5aeac2,_0x5a8783)=>{_0x5a8783['options']['showSuggestionHighlights']&&_0x2c6d3a({'showActiveMarkers':!0x1})(_0x7f3e8,_0x5aeac2,_0x5a8783);},{'priority':'highest'});}),_0x303827['conversion']['for']('dataDowncast')['add'](_0x323d03=>{_0x323d03['on']('addMarker:suggestion:attribute',(_0xb59f22,_0xb17179,_0x3fb289)=>{_0x3fb289['options']['showSuggestionHighlights']&&_0x2c6d3a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xb59f22,_0xb17179,_0x3fb289);},{'priority':'highest'});}),_0x303827['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3d5c25,_0x4fbc99)=>_0x4fbc99['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3d5c25['substr'](0xb)}}),_0x303827['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x377fa1,{writer:_0x2c6243})=>{let _0x3940ed='suggestion:'+_0x377fa1['getAttribute']('suggestion-type')+':'+_0x377fa1['getAttribute']('id');return _0x377fa1['getAttribute']('marker-count')&&(_0x3940ed+=':'+_0x377fa1['getAttribute']('marker-count')),_0x2c6243['createElement']('$marker',{'data-name':_0x3940ed});}}),_0x303827['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x303827['conversion']['for']('editingDowncast')['add'](_0x61d33e=>{_0x61d33e['on']('addMarker:suggestion:formatBlock',_0x2c6d3a(),{'priority':'high'});}),_0x303827['conversion']['for']('editingDowncast')['add'](_0x50c95f=>{_0x50c95f['on']('addMarker:suggestion:attribute',_0x2c6d3a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x303827['conversion']['for']('editingDowncast')['add'](_0x20eb11=>{_0x20eb11['on']('removeMarker:suggestion:formatBlock',(_0x30f9a3,_0x490fcb,_0xe3ea5)=>{const _0x520131=_0xe3ea5['mapper']['markerNameToElements'](_0x490fcb['markerName']);if(_0x520131){for(const _0xbea16e of _0x520131)_0xbea16e['getCustomProperty']('addHighlight')||(_0xe3ea5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xbea16e),_0xe3ea5['writer']['removeAttribute']('data-suggestion',_0xbea16e),_0xe3ea5['mapper']['unbindElementFromMarkerName'](_0xbea16e,_0x490fcb['markerName']));}},{'priority':'high'});}),_0x303827['conversion']['for']('editingDowncast')['add'](_0x3bb84d=>{_0x3bb84d['on']('removeMarker:suggestion:attribute',(_0x135d33,_0x3ff793,_0xf0606f)=>{const _0x146b83=_0xf0606f['mapper']['markerNameToElements'](_0x3ff793['markerName']);if(!_0x146b83)return;const {id:_0x28359b}=this['_splitMarkerName'](_0x3ff793['markerName']),_0x493162=this['_suggestions']['get'](_0x28359b),_0x44b66a=this['_getAttributeKey'](_0x493162);if(this['_isBlockAttribute'](_0x44b66a)){for(const _0x2d1b97 of _0x146b83)_0x2d1b97['getCustomProperty']('addHighlight')||(_0xf0606f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2d1b97),_0xf0606f['writer']['removeAttribute']('data-suggestion',_0x2d1b97),_0xf0606f['mapper']['unbindElementFromMarkerName'](_0x2d1b97,_0x3ff793['markerName']));}},{'priority':'high'});}),_0x303827['model']['document']['registerPostFixer'](_0x2f57a2=>{let _0x3e0b46=!0x1;const _0x4111ad=Array['from'](_0x303827['model']['document']['differ']['getChangedMarkers']()),_0x5b49a2=new Set();for(const {name:_0x4f4050,data:_0x1b02d1}of _0x4111ad){const {group:_0xb92e5c,type:_0x157d97,subType:_0x369686,id:_0xbe3384}=this['_splitMarkerName'](_0x4f4050);if('suggestion'!==_0xb92e5c)continue;const _0x1bbad5=this['_suggestions']['get'](_0xbe3384);if(null!=_0x1b02d1['newRange']){'formatInline'==_0x157d97&&(_0x3e0b46=_0x3e0b46||Et(_0x1b02d1['newRange'],_0x4f4050,_0x2f57a2,_0x303827['model']['schema']));const _0x2711e6='attribute'==_0x157d97&&this['_isBlockAttribute'](_0x369686['split']('|')[0x0]);if(_0x1b02d1['newRange']['isCollapsed']||'$graveyard'==_0x1b02d1['newRange']['root']['rootName']||'formatBlock'==_0x157d97&&!Ut(_0x1b02d1['newRange'])||_0x2711e6&&!Ut(_0x1b02d1['newRange'])||'deletion'==_0x157d97&&!(!Tt(_0x3d49f2=_0x1b02d1['newRange'])&&!function(_0x7d4be6){return _0x7d4be6['start']['parent']==_0x7d4be6['end']['nodeBefore']&&_0x7d4be6['start']['isAtEnd'];}(_0x3d49f2)))_0x2f57a2['removeMarker'](_0x4f4050),_0x3e0b46=!0x0;else{if(!_0x1bbad5||!_0x1bbad5['isInContent'])continue;_0x5b49a2['add'](_0x1bbad5);}}}var _0x3d49f2;return _0x5b49a2['size']>0x0&&(_0x3e0b46=!!this['_joinWithAdjacentSuggestions'](_0x5b49a2)||_0x3e0b46),_0x3e0b46;}),_0x303827['model']['document']['registerPostFixer'](_0x1cd8d8=>{let _0x50980f=!0x1;for(const _0x2f2107 of _0x303827['model']['document']['differ']['getChanges']())if('insert'==_0x2f2107['type'])for(const _0x42e2d1 of this['_suggestions']['values']()){if(_0x42e2d1['isMultiRange']||!_0x42e2d1['isInContent'])continue;const _0x10f6f0='formatBlock'==_0x42e2d1['type'],_0x2ab074=this['_getAttributeKey'](_0x42e2d1),_0x826b0c=_0x2ab074&&this['_isBlockAttribute'](_0x2ab074);if(!_0x10f6f0&&!_0x826b0c)continue;const _0x142a20=_0x42e2d1['getFirstRange']();if(_0x142a20['start']['parent']!=_0x142a20['end']['parent']&&!_0x142a20['end']['isAtEnd']){const _0x50ecd1=_0x303827['model']['createPositionAt'](_0x142a20['start']['nodeAfter'],'end'),_0x5416db=_0x303827['model']['createRange'](_0x142a20['start'],_0x50ecd1);_0x1cd8d8['updateMarker'](_0x42e2d1['getFirstMarker'](),{'range':_0x5416db}),_0x50980f=!0x0;}}return _0x50980f;}),_0x303827['model']['document']['registerPostFixer'](_0x2bade6=>this['_processAttributeChanges'](_0x2bade6)),_0x303827['model']['document']['registerPostFixer'](_0x56610a=>!_0x56610a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x56610a)),_0x303827['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x303827['model']['document']['on']('change:data',(_0x104a57,_0x48af0b)=>{if(!_0x48af0b['isLocal']||_0x48af0b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1e6b6d=_0x303827['model']['document']['differ']['getChanges']();if(0x0==_0x1e6b6d['length'])return;const _0x35fb16=[],_0x39d4b4=_0x1e6b6d['filter'](_0x9a9f74=>'attribute'==_0x9a9f74['type']),_0x3fc429=_0x1e6b6d['filter'](_0x2a513d=>'insert'==_0x2a513d['type']&&'$text'!=_0x2a513d['name']);for(const _0x4089fe of _0x39d4b4)this['_isRegisteredAttribute'](_0x4089fe['attributeKey'])&&_0x35fb16['push']({'key':_0x4089fe['attributeKey'],'newValue':_0x4089fe['attributeNewValue'],'oldValue':_0x4089fe['attributeOldValue'],'range':Ot(_0x4089fe['range'],_0x303827['model'])});for(const _0x3296d4 of _0x3fc429){if('rename'!=_0x3296d4['action']&&'refresh'!=_0x3296d4['action'])continue;const _0x56d3ce=Gt(_0x3296d4['position']['nodeAfter'],_0x303827['model']),_0x15d912=_0x3296d4['before'];'rename'==_0x3296d4['action']&&_0x35fb16['push']({'key':m,'newValue':_0x3296d4['name'],'oldValue':_0x15d912['name'],'range':_0x56d3ce});for(const [_0x397c59,_0x12623e]of _0x15d912['attributes']){if(!this['_isRegisteredAttribute'](_0x397c59))continue;const _0x2411fa=_0x3296d4['attributes']['get'](_0x397c59);_0x12623e!==_0x2411fa&&_0x35fb16['push']({'key':_0x397c59,'newValue':_0x2411fa,'oldValue':_0x12623e,'range':_0x56d3ce});}for(const [_0xf417f3,_0xfdfd14]of _0x3296d4['attributes'])this['_isRegisteredAttribute'](_0xf417f3)&&(_0x15d912['attributes']['has'](_0xf417f3)||_0x35fb16['push']({'key':_0xf417f3,'newValue':_0xfdfd14,'oldValue':null,'range':_0x56d3ce}));}0x0!=_0x35fb16['length']&&_0x303827['model']['enqueueChange'](_0x48af0b,_0x260a64=>{const _0x53985a=_0x5357ff();for(const {range:_0x4850e1,key:_0x4cc210,oldValue:_0x32a085,newValue:_0x1d8c01}of _0x35fb16)this['markAttributeChange'](_0x4850e1,_0x4cc210,_0x32a085,_0x1d8c01,{'groupId':_0x53985a});this['_reduceExistingSuggestions'](_0x260a64,_0x35fb16);});},{'priority':'lowest'}),_0x303827['model']['markers']['on']('update:suggestion',(_0xd4073c,_0x3f7131,_0x5739ad)=>{if(null==_0x5739ad){const {id:_0x4365d4}=this['_splitMarkerName'](_0x3f7131['name']),_0x1b67a0=this['_suggestions']['get'](_0x4365d4);_0x1b67a0&&_0x1b67a0['addMarkerName'](_0x3f7131['name']);}}),_0x303827['model']['document']['on']('change:data',()=>{const _0xc3eab9=Array['from'](_0x303827['model']['document']['differ']['getChangedMarkers']())['filter'](_0x463ee8=>'suggestion'===this['_splitMarkerName'](_0x463ee8['name'])['group']);if(0x0===_0xc3eab9['length'])return;_0xc3eab9['sort']((_0x6934b3,_0x1e52ea)=>{const _0x4218b3=_0x6934b3['data']['oldRange'],_0x3524bb=_0x1e52ea['data']['oldRange'];return null===_0x4218b3&&null===_0x3524bb?0x0:null===_0x4218b3&&null!==_0x3524bb?-0x1:null!==_0x4218b3&&null===_0x3524bb?0x1:_0x4218b3['start']['isBefore'](_0x3524bb['start'])?-0x1:0x1;});const _0x25daac=new Set(),_0x35d467=new Set();for(const {name:_0x5ebb2f,data:_0x27b7ad}of _0xc3eab9){const {id:_0x26c250}=this['_splitMarkerName'](_0x5ebb2f);if(null===_0x27b7ad['oldRange']){const _0x27e08c=this['_handleNewSuggestionMarker'](_0x5ebb2f);_0x35d467['add'](_0x27e08c);}else{const _0xdac958=this['_suggestions']['get'](_0x26c250);null!==_0x27b7ad['newRange']||_0xdac958['isInContent']?(_0x25daac['add'](_0xdac958['head']),_0x35d467['add'](_0xdac958)):this['_removeSuggestion'](_0xdac958);}}_0x35d467['size']>0x0&&this['_refreshSuggestionsChain'](_0x35d467);for(const _0x476312 of _0x25daac)this['fire']('suggestionChanged',_0x476312);}),_0x303827['model']['on']('applyOperation',(_0x20397e,_0x3a0047)=>{const _0x4679d8=_0x3a0047[0x0];if(!this['_suggestions']['size'])return;if(!_0x4679d8['isDocumentOperation'])return;if(_0x4679d8['batch']['isUndo']||!_0x4679d8['batch']['isLocal'])return;let _0x392b5b,_0x4fe6c8;switch(_0x4679d8['type']){case'insert':_0x392b5b=_0x303827['model']['createPositionAt'](_0x4679d8['position']),_0x4fe6c8=_0x392b5b['getShiftedBy'](_0x4679d8['howMany']);break;case'split':_0x392b5b=_0x303827['model']['createPositionAt'](_0x4679d8['splitPosition']),_0x4fe6c8=_0x303827['model']['createPositionAt'](_0x4679d8['moveTargetPosition']);break;case'move':_0x392b5b=_0x303827['model']['createPositionAt'](_0x4679d8['targetPosition']),_0x4fe6c8=_0x392b5b['getShiftedBy'](_0x4679d8['howMany']);break;default:return;}const _0x244a15=_0x303827['model']['createRange'](_0x392b5b,_0x4fe6c8);_0x303827['model']['change'](()=>{for(const {suggestion:_0x4a34fa,meta:_0x2af3fe}of this['_findSuggestions'](_0x244a15)){if(_0x4a34fa['isMultiRange'])continue;if('formatInline'==_0x4a34fa['type'])continue;const _0x301ff4=this['_getAttributeKey'](_0x4a34fa);if(_0x301ff4&&this['_isBlockAttribute'](_0x301ff4)&&'split'!=_0x4679d8['type'])continue;const _0x1c7e1d=_0x4a34fa['data']&&_0x4a34fa['data']['multipleBlocks'];('formatBlock'!=_0x4a34fa['type']||'split'==_0x4679d8['type']&&!_0x1c7e1d)&&(_0x2af3fe['containsRangeInObject']||'insertion'==_0x4a34fa['type']&&_0x2af3fe['isOwn']||_0x4a34fa['getFirstRange']()['containsRange'](_0x244a15)&&this['_breakSuggestionMarker'](_0x4a34fa,_0x392b5b,_0x4fe6c8));}});},{'priority':'lowest'}),_0x303827['model']['on']('deleteContent',(_0x46c887,_0x2f7d1e)=>{const _0x414e5f=_0x2f7d1e[0x0],_0xe2aa04=_0x2f7d1e[0x1];if(_0xe2aa04&&_0xe2aa04['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x414e5f['isCollapsed'])return;const _0x51d215=_0x303827['model']['schema'],{start:_0x3f4c15,end:_0x52b9e6}=_0x414e5f['getFirstRange'](),_0x15369d=_0x3f4c15['nodeAfter']&&_0x51d215['isLimit'](_0x3f4c15['nodeAfter'])?null:_0x51d215['getNearestSelectionRange'](_0x3f4c15,'forward'),_0x9a4db2=_0x52b9e6['nodeBefore']&&_0x51d215['isLimit'](_0x52b9e6['nodeBefore'])?null:_0x51d215['getNearestSelectionRange'](_0x52b9e6,'backward'),_0x487173=_0x303827['model']['createRange'](_0x15369d?_0x15369d['start']:_0x3f4c15,_0x9a4db2?_0x9a4db2['end']:_0x52b9e6);_0x303827['model']['change'](_0x2b3391=>{this['markDeletion'](_0x487173);const _0x2cd101=_0x303827['model']['schema']['getNearestSelectionRange'](_0x487173['start']);_0x414e5f['is']('documentSelection')?_0x2b3391['setSelection'](_0x2cd101):_0x414e5f['setTo'](_0x2cd101);}),_0x46c887['stop']();},{'priority':_0x1135e1['normal']+0xa}),_0x303827['model']['on']('insertContent',(_0x30fcf2,_0x430da4)=>{const _0x2c03ae=_0x430da4[_0x430da4['length']-0x1];_0x2c03ae&&_0x2c03ae['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x303827['model']['change'](()=>{let _0x543e16=_0x303827['model']['insertContent'](_0x430da4[0x0],_0x430da4[0x1],_0x430da4[0x2],{'forceDefaultExecution':!0x0});if(!_0x543e16)return;_0x30fcf2['return']=_0x543e16['clone']();const _0x5ca556=_0x543e16['end']['nodeBefore'],_0x6148fd=_0x303827['model']['schema'];_0x5ca556&&_0x6148fd['isBlock'](_0x5ca556)&&!_0x6148fd['isObject'](_0x5ca556)&&(_0x543e16=_0x303827['model']['createRange'](_0x543e16['start'],_0x303827['model']['createPositionAt'](_0x5ca556,'end'))),this['markInsertion'](_0x543e16);}),_0x30fcf2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x501722=new $(_0x303827,this['_suggestions']);_0x303827['commands']['add']('acceptSuggestion',_0x501722),this['enableCommand']('acceptSuggestion');const _0x1287b0=new B(_0x303827,this['_suggestions']);_0x303827['commands']['add']('discardSuggestion',_0x1287b0),this['enableCommand']('discardSuggestion'),_0x303827['commands']['add']('acceptAllSuggestions',new x(_0x303827,_0x501722,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x303827['commands']['add']('discardAllSuggestions',new x(_0x303827,_0x1287b0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x303827['commands']['add']('acceptSelectedSuggestions',new R(_0x303827,_0x501722,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x303827['commands']['add']('discardSelectedSuggestions',new R(_0x303827,_0x1287b0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x27e8d6=_0x303827['plugins']['get']('CommentsRepository');this['listenTo'](_0x27e8d6,'addComment',(_0xb0bff3,{threadId:_0x333bde})=>{const _0x39f880=this['_suggestions']['get'](_0x333bde);_0x39f880&&_0x39f880['commentThread']&&0x1===_0x39f880['commentThread']['length']&&this['_updateSuggestionData'](_0x333bde,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x27e8d6,'removeComment',(_0x59cca5,{threadId:_0x45e98c})=>{const _0x570f32=this['_suggestions']['get'](_0x45e98c);_0x570f32&&_0x570f32['commentThread']&&!_0x570f32['commentThread']['length']&&this['_updateSuggestionData'](_0x45e98c,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5c4de4){if(this['_adapter'])throw new _0x37dd0f('track-changes-adapter-already-set',this);this['_adapter']=_0x5c4de4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3e4eab=!0x1,toJSON:_0x5c15a=!0x1}={}){const _0xd37a0b=[];for(const _0xeb2b1e of this['_suggestions']['values']())_0x3e4eab&&!_0xeb2b1e['isInContent']||_0xd37a0b['push'](_0xeb2b1e);return _0x5c15a?_0xd37a0b['map'](_0x33c11f=>_0x33c11f['toJSON']()):_0xd37a0b;}['getSuggestion'](_0x5e72b1){const _0x9ab723=this['_suggestions']['get'](_0x5e72b1);if(!_0x9ab723)throw new _0x37dd0f('track-changes-suggestion-not-found',this);return _0x9ab723;}['hasSuggestion'](_0x4569e7){return this['_suggestions']['has'](_0x4569e7);}['addSuggestionData'](_0x1bd249){const {authorId:_0x30a3ae,id:_0x383cc7,attributes:_0x59088b}=_0x1bd249,[_0x3330e9,_0x1147a0]=_0x1bd249['type']['split'](':'),_0x483e67=this['_suggestions']['get'](_0x383cc7)||this['_createSuggestion'](_0x3330e9,_0x1147a0,_0x383cc7,_0x30a3ae,_0x59088b);if(this['_addThreadToSuggestion'](_0x483e67),this['_checkSuggestionCorrectness'](_0x483e67,_0x3330e9,_0x1147a0||null,_0x30a3ae),_0x483e67['createdAt']=_0x1bd249['createdAt'],_0x483e67['_isDataLoaded']=!0x0,_0x59088b&&_0x59088b['@external']){const _0x1f300c=_0x59088b['@external'],_0xa16506=this['_getExternalAuthor'](_0x1f300c['authorName']);_0x483e67['authoredAt']=_0x1f300c['createdAt'],_0x483e67['author']=_0xa16506,_0x483e67['isExternal']=!0x0;}else _0x483e67['authoredAt']=_0x1bd249['createdAt'];switch(_0x1bd249['data']&&(_0x483e67['data']=_0x1bd249['data']),_0x1bd249['attributes']&&(_0x483e67['attributes']=_0x1bd249['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x483e67['_saved']=!0x0),this['_suggestionState']['get'](_0x483e67)){case'notReady':this['_suggestionState']['set'](_0x483e67,'dataReady');break;case'markerReady':_0x483e67['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x483e67])),this['_refreshSuggestionsChain'](new Set([_0x483e67])),this['_suggestionState']['set'](_0x483e67,'ready'),this['fire']('suggestionLoaded',_0x483e67)):this['_suggestionState']['set'](_0x483e67,'removed');}return _0x483e67;}['acceptSuggestion'](_0x28f678){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x80ff4a of _0x28f678['getAllAdjacentSuggestions']())_0x80ff4a['accept']();});});}['discardSuggestion'](_0x3384eb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1dafed of _0x3384eb['getAllAdjacentSuggestions']())_0x1dafed['discard']();});});}['enableCommand'](_0x4650f5,_0x4d2421){const _0x17365d=this['editor']['commands']['get'](_0x4650f5);if(!_0x17365d)throw new _0x37dd0f('track-changes-command-not-found',this,{'commandName':_0x4650f5});if(this['_enabledCommands']['has'](_0x17365d))throw new _0x37dd0f('track-changes-enable-command-twice',this,{'commandName':_0x4650f5});this['_enabledCommands']['add'](_0x17365d),_0x4d2421&&_0x17365d['on']('execute',(_0x53eb13,_0x3d7193)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3d7193['length']>0x0&&_0x3d7193[_0x3d7193['length']-0x1]&&_0x3d7193[_0x3d7193['length']-0x1]['forceDefaultExecution']?_0x3d7193['pop']():(_0x53eb13['return']=_0x4d2421((..._0x2c3064)=>_0x17365d['execute'](..._0x2c3064,{'forceDefaultExecution':!0x0}),..._0x3d7193),_0x53eb13['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1ab017){let _0xccdf2e,_0x2da396;const _0x28dfe3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xccdf2e=_0x1ab017();}catch(_0x3b8b32){_0x2da396=_0x3b8b32;}return _0x28dfe3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2da396&&_0x37dd0f['rethrowUnexpectedError'](_0x2da396,this),_0xccdf2e;}['markInsertion'](_0x4ebc99,_0xef0180=null,_0x4763fb={}){if(_0x4ebc99['isCollapsed'])return null;const _0x3de22c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x554606,meta:_0x4cabf5}of this['_findSuggestions'](_0x4ebc99,'insertion'))if(_0x4cabf5['isOwn']){if(!_0x4cabf5['isNextTo']){if(_0x4cabf5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x554606,_0x4763fb))continue;return _0x554606;}if(Lt(_0x554606,_0x4763fb))return _0x554606;this['_breakSuggestionMarker'](_0x554606,_0x4ebc99['start'],_0x4ebc99['end']);break;}if(_0xef0180==_0x554606['subType']&&Lt(_0x554606,_0x4763fb)){const _0xd8b846=_0x554606['getFirstRange']();return _0xd8b846['start']['isEqual'](_0x4ebc99['end'])?this['_setSuggestionRange'](_0x554606,this['_model']['createRange'](_0x4ebc99['start'],_0xd8b846['end'])):this['_setSuggestionRange'](_0x554606,this['_model']['createRange'](_0xd8b846['start'],_0x4ebc99['end'])),_0x554606;}}const _0x439a42=_0x5357ff(),_0x190a75=_0x3de22c['id'],_0x26b0bb=_0xef0180?'insertion:'+_0xef0180:'insertion',_0x1e6195=this['_setSuggestionData']({'id':_0x439a42,'type':_0x26b0bb,'createdAt':new Date(),'authorId':_0x190a75,'attributes':_0x4763fb});return this['_addSuggestionMarker'](_0x26b0bb,_0x439a42,_0x190a75,_0x4ebc99),_0x1e6195;}['markMultiRangeInsertion'](_0x495c14,_0x5cc2a7='multi',_0x739e94={}){const _0x28dbee=this['editor']['plugins']['get']('Users')['me'],_0x4373d7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5cc2a7,'join');for(const _0x549c91 of this['getSuggestions']())if(_0x549c91['author']['id']==_0x28dbee['id']&&'insertion'==_0x549c91['type']&&_0x549c91['subType']==_0x5cc2a7&&Lt(_0x549c91,_0x739e94)&&(_0x4373d7(_0x549c91['getRanges'](),_0x495c14)||_0x4373d7(_0x495c14,_0x549c91['getRanges']()))){for(const _0x30ec0b of _0x495c14)_0x549c91['addRange'](_0x30ec0b);return _0x549c91;}for(const {suggestion:_0x5aa280,meta:_0xc94c00}of this['_findSuggestions'](_0x495c14,'insertion')){if(!_0xc94c00['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xc94c00['containsRangeInObject'])continue;if(!Lt(_0x5aa280,_0x739e94))continue;let _0x3c5522=!0x0;for(const _0x6f2455 of _0x5aa280['getRanges']())for(const _0x464733 of _0x495c14)if(!_0x6f2455['containsRange'](_0x464733)){_0x3c5522=!0x1;break;}if(_0x3c5522)return _0x5aa280;}const _0x3b7b6a=_0x5357ff(),_0x35d4a0=_0x28dbee['id'],_0x50cc4c='insertion:'+_0x5cc2a7,_0x5d5c27=this['_setSuggestionData']({'id':_0x3b7b6a,'type':_0x50cc4c,'createdAt':new Date(),'authorId':_0x35d4a0,'attributes':_0x739e94});for(const _0x34af4a of _0x495c14)this['_addSuggestionMarker'](_0x50cc4c,_0x3b7b6a,_0x35d4a0,_0x34af4a,u['getMultiRangeId']());return _0x5d5c27;}['markInlineFormat'](_0x5e24c3,_0x1698d5,_0x4bde79=null,_0x5b0714={}){if(_0x4bde79=_0x4bde79||Vt(_0x1698d5),_0x5e24c3['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3671dd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4bde79,'accept');return this['forceDefaultExecution'](()=>_0x3671dd([_0x5e24c3],_0x1698d5,_0x5b0714)),null;}const _0x51d1d0=this['editor']['plugins']['get']('Users')['me'],_0x1cdaf6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xce522b,meta:_0x376d95}of this['_findSuggestions'](_0x5e24c3,'insertion'))_0x376d95['isOwn']&&!_0x376d95['isInsideObject']&&_0x1cdaf6['push'](..._0xce522b['getRanges']());}const _0x500db7=function(_0xc8f54d,_0x11149d){const _0x38ee8c=[];for(const _0x23c715 of _0x11149d){const _0x338ada=_0xc8f54d['getIntersection'](_0x23c715);_0x338ada&&_0x38ee8c['push'](_0x338ada);}return _0x38ee8c;}(_0x5e24c3,_0x1cdaf6),_0x216ca3=function(_0x5adf4f,_0x3de489){const _0x315103=[_0x5adf4f];for(const _0x539fdd of _0x3de489){let _0xa595b8=0x0;for(;_0xa595b8<_0x315103['length'];){const _0x5ec559=_0x315103[_0xa595b8]['getDifference'](_0x539fdd);_0x315103['splice'](_0xa595b8,0x1,..._0x5ec559),_0xa595b8+=_0x5ec559['length'];}}return _0x315103;}(_0x5e24c3,_0x1cdaf6);_0x500db7['length']&&this['_model']['change'](()=>{for(const _0x2a4dc3 of _0x500db7){const _0x227dd9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4bde79,'accept');this['forceDefaultExecution'](()=>_0x227dd9([_0x2a4dc3],_0x1698d5,_0x5b0714));}});for(const _0x25d2d6 of _0x216ca3){let _0x313a45=null,_0x27faba=_0x25d2d6['start'],_0x359472=_0x25d2d6['end'];for(const {suggestion:_0x5a5380,meta:_0x9d2ae7}of this['_findSuggestions'](_0x25d2d6,'formatInline')){if(!_0x9d2ae7['isOwn'])continue;if(_0x5a5380['subType']!=_0x4bde79)continue;if(!Lt(_0x5a5380,_0x5b0714))continue;const _0x24e0ad=_0x5a5380['getFirstRange']();if(_0x24e0ad['containsRange'](_0x25d2d6,!0x0))return null;_0x27faba=_0x27faba['isBefore'](_0x24e0ad['start'])?_0x27faba:_0x24e0ad['start'],_0x359472=_0x359472['isAfter'](_0x24e0ad['end'])?_0x359472:_0x24e0ad['end'],_0x313a45?_0x24e0ad['start']['isBefore'](_0x313a45['getFirstRange']()['start'])?(_0x313a45['removeMarkers'](),_0x313a45=_0x5a5380):_0x5a5380['removeMarkers']():_0x313a45=_0x5a5380;}const _0x2e4788=this['_model']['createRange'](_0x27faba,_0x359472);if(_0x313a45)this['_setSuggestionRange'](_0x313a45,_0x2e4788);else{const _0x2c5cd8=_0x5357ff(),_0x474dc1=_0x51d1d0['id'];this['_setSuggestionData']({'id':_0x2c5cd8,'type':'formatInline:'+_0x4bde79,'data':_0x1698d5,'createdAt':new Date(),'authorId':_0x474dc1,'attributes':_0x5b0714}),this['_addSuggestionMarker']('formatInline:'+_0x4bde79,_0x2c5cd8,_0x474dc1,_0x2e4788);}}return null;}['markBlockFormat'](_0x1379fa,_0x233d8f,_0x17ddab=[],_0xc30715=null,_0x38b262={}){_0x233d8f['formatGroupId']||(_0x233d8f['formatGroupId']=_0x233d8f['commandName']),_0x233d8f['multipleBlocks']=_0x1379fa['is']('range'),_0xc30715=_0xc30715||Vt(_0x233d8f);const _0x20761e=_0x17ddab['map'](_0x204371=>Gt(_0x204371,this['_model'])),_0x3ac87a=_0x1379fa['is']('range')?_0x1379fa:Gt(_0x1379fa,this['_model']);if('never'===this['_trackFormatChanges']){const _0x45f5e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc30715,'accept');return this['forceDefaultExecution'](()=>_0x45f5e6([_0x3ac87a],_0x233d8f,_0x38b262)),null;}_0x20761e['push'](_0x3ac87a);let _0x39f5d2=!0x0;for(const _0x2f3ed2 of _0x20761e)if(!this['_rangeIsInLocalUserInsertion'](_0x2f3ed2)){_0x39f5d2=!0x1;break;}if(_0x39f5d2&&'always'!==this['_trackFormatChanges']){const _0x5d2165=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc30715,'accept');return this['forceDefaultExecution'](()=>_0x5d2165([_0x3ac87a],_0x233d8f,_0x38b262)),null;}let _0x16dc10=null,_0x4c1e60=_0x3ac87a['start'],_0x54ba14=_0x3ac87a['end'];for(const {suggestion:_0x13e49e,meta:_0x4dff8b}of this['_findSuggestions'](_0x3ac87a,'formatBlock')){if(!_0x4dff8b['isOwn'])continue;if(_0x4dff8b['isNextTo']||_0x4dff8b['containsRangeInObject']||_0x4dff8b['isInsideObject'])continue;if(_0x13e49e['data']['formatGroupId']!=_0x233d8f['formatGroupId'])continue;if(!Lt(_0x13e49e,_0x38b262))continue;const _0x324269=_0x13e49e['getFirstRange']();if(_0x13e49e['subType']==_0xc30715){if(_0x324269['containsRange'](_0x3ac87a,!0x0))return null;_0x4c1e60=_0x4c1e60['isBefore'](_0x324269['start'])?_0x4c1e60:_0x324269['start'],_0x54ba14=_0x54ba14['isAfter'](_0x324269['end'])?_0x54ba14:_0x324269['end'],_0x16dc10?_0x324269['start']['isBefore'](_0x16dc10['getFirstRange']()['start'])?(_0x16dc10['removeMarkers'](),_0x16dc10=_0x13e49e):_0x13e49e['removeMarkers']():_0x16dc10=_0x13e49e;}else{const _0x1392c5=_0x3ac87a['getIntersection'](_0x324269);this['_cutOutSuggestionMarker'](_0x13e49e,_0x1392c5);}}const _0x224963=this['editor']['plugins']['get']('Users')['me'],_0x5070af=_0x5357ff(),_0x492479=_0x224963['id'];if(_0x16dc10)return this['_setSuggestionRange'](_0x16dc10,this['_model']['createRange'](_0x4c1e60,_0x54ba14)),_0x16dc10;{const _0x1c5a3e=this['_setSuggestionData']({'id':_0x5070af,'type':'formatBlock:'+_0xc30715,'data':_0x233d8f,'createdAt':new Date(),'authorId':_0x492479,'attributes':_0x38b262});return this['_addSuggestionMarker']('formatBlock:'+_0xc30715,_0x5070af,_0x492479,this['_model']['createRange'](_0x4c1e60,_0x54ba14)),_0x1c5a3e;}}['markMultiRangeBlockFormat'](_0x171a94,_0x2d5707,_0x43f49f=[],_0x5e5587=null,_0x326f90={}){_0x2d5707['formatGroupId']||(_0x2d5707['formatGroupId']=_0x2d5707['commandName']);const _0x1dcbba=_0x171a94[0x0];_0x2d5707['multipleBlocks']=_0x1dcbba['is']('range'),_0x5e5587=_0x5e5587||Vt(_0x2d5707);const _0x15763c=_0x43f49f['map'](_0x26612c=>Gt(_0x26612c,this['_model'])),_0x211f94=_0x1dcbba['is']('range')?_0x171a94:_0x171a94['map'](_0x26ac70=>Gt(_0x26ac70,this['_model']));if('never'===this['_trackFormatChanges']){const _0x177498=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5587,'accept');return this['forceDefaultExecution'](()=>_0x177498(_0x211f94,_0x2d5707,_0x326f90)),null;}_0x15763c['push'](..._0x211f94);let _0x327304=!0x0;for(const _0x13608a of _0x15763c)if(!this['_rangeIsInLocalUserInsertion'](_0x13608a)){_0x327304=!0x1;break;}if(_0x327304&&'always'!==this['_trackFormatChanges']){const _0xfada48=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5587,'accept');return this['forceDefaultExecution'](()=>_0xfada48(_0x211f94,_0x2d5707,_0x326f90)),null;}const _0x24a271=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a5f2d of this['getSuggestions']()){if(_0x5a5f2d['author']['id']!=_0x24a271['id'])continue;if('formatBlock'!=_0x5a5f2d['type']||_0x5a5f2d['data']['formatGroupId']!=_0x2d5707['formatGroupId'])continue;if(!Lt(_0x5a5f2d,_0x326f90))continue;const _0x5be5e7=_0x5a5f2d['subType']==_0x5e5587;for(let _0x48b99c=0x0;_0x48b99c<_0x211f94['length'];_0x48b99c++){const _0x2628ad=_0x211f94[_0x48b99c];for(const _0x437968 of _0x5a5f2d['getMarkers']()){const _0x2d6c91=_0x437968['getRange']();if(_0x2628ad['isEqual'](_0x2d6c91)){_0x5be5e7?(_0x211f94['splice'](_0x48b99c,0x1),_0x48b99c--):_0x5a5f2d['removeMarker'](_0x437968['name']);break;}}}}if(0x0==_0x211f94['length'])return null;const _0x5e56ef=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5587,'join');for(const _0x5c5658 of this['getSuggestions']())if(_0x5c5658['author']['id']==_0x24a271['id']&&'formatBlock'==_0x5c5658['type']&&_0x5c5658['data']['formatGroupId']==_0x2d5707['formatGroupId']&&_0x5c5658['subType']==_0x5e5587&&Lt(_0x5c5658,_0x326f90)&&(_0x5e56ef(_0x5c5658['getRanges'](),_0x211f94)||_0x5e56ef(_0x211f94,_0x5c5658['getRanges']()))){for(const _0x28d395 of _0x211f94)_0x5c5658['addRange'](_0x28d395);return _0x5c5658;}const _0x3f7612=_0x5357ff(),_0xccc6a1=_0x24a271['id'],_0xe66406='formatBlock:'+_0x5e5587,_0x161d86=this['_setSuggestionData']({'id':_0x3f7612,'type':_0xe66406,'data':_0x2d5707,'createdAt':new Date(),'authorId':_0xccc6a1,'attributes':_0x326f90});for(const _0x49b0fc of _0x211f94)this['_addSuggestionMarker'](_0xe66406,_0x3f7612,_0xccc6a1,_0x49b0fc,u['getMultiRangeId']());return _0x161d86;}['markDeletion'](_0x370f41,_0xc126fb=null,_0x5e3a5c={}){if(_0x370f41['isCollapsed'])return null;const _0x3d0bc7=this['editor']['plugins']['get']('Users')['me'],_0x4e4370=new _0x9c5a28(_0x370f41['start'],_0x370f41['end']);for(const {suggestion:_0x48e7b8,meta:_0x2e882f}of this['_findSuggestions'](_0x4e4370,'insertion'))if(_0x2e882f['isOwn']&&!_0x2e882f['isNextTo']){if(_0x48e7b8['isMultiRange']){const _0x1b3603=_0x48e7b8['getRanges']()['filter'](_0x1cc625=>'$graveyard'!=_0x1cc625['root']['rootName']);_0x1b3603['every'](_0x515600=>_0x4e4370['containsRange'](_0x515600,!0x0))&&_0x48e7b8['discard']();if(_0x1b3603['some'](_0x216867=>_0x216867['containsRange'](_0x4e4370,!0x0))){const _0x50d48e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc126fb,'accept');return this['forceDefaultExecution'](()=>_0x50d48e([_0x4e4370],null,_0x5e3a5c)),null;}}else{const _0x237b8b=_0x4e4370['getIntersection'](_0x48e7b8['getFirstRange']());null!==_0x237b8b&&_0x48e7b8['_onDiscard']([_0x237b8b],null,_0x5e3a5c);}}if(_0x4e4370['detach'](),_0x4e4370['isCollapsed']||'$graveyard'==_0x4e4370['root']['rootName'])return null;let _0x1b9ed3=null,_0xcc4cb=_0x4e4370['start'],_0x5a02b6=_0x4e4370['end'];const _0xf2e7a7=this['_findSuggestions'](_0x4e4370,'deletion');for(const {suggestion:_0x16f987,meta:_0x594166}of _0xf2e7a7){const _0x44bcf3=this['_model']['createRange'](_0xcc4cb,_0x5a02b6);if(_0x594166['isOwn']&&(this['_mergeNestedSuggestions']||!_0x594166['containsRangeInObject']&&!_0x594166['isInsideObject'])){if(_0x16f987['isMultiRange']){if(!Lt(_0x16f987,_0x5e3a5c))continue;let _0x3ba66d=!0x0;for(const _0xc25479 of _0x16f987['getRanges']()){if(_0xc25479['containsRange'](_0x44bcf3,!0x0))return _0x16f987;_0x44bcf3['containsRange'](_0xc25479)||(_0x3ba66d=!0x1);}_0x3ba66d&&_0x16f987['discard']();}else{const _0x3ca0d8=_0x16f987['getFirstRange']();if(_0x3ca0d8['containsRange'](_0x44bcf3,!0x0))return _0x16f987;if(!Lt(_0x16f987,_0x5e3a5c)){_0x44bcf3['containsRange'](_0x3ca0d8)?_0x16f987['removeMarkers']():_0x3ca0d8['containsPosition'](_0xcc4cb)?_0xcc4cb=_0x3ca0d8['end']:_0x3ca0d8['containsPosition'](_0x5a02b6)&&(_0x5a02b6=_0x3ca0d8['start']);continue;}_0xcc4cb=_0xcc4cb['isBefore'](_0x3ca0d8['start'])?_0xcc4cb:_0x3ca0d8['start'],_0x5a02b6=_0x5a02b6['isAfter'](_0x3ca0d8['end'])?_0x5a02b6:_0x3ca0d8['end'],_0x5e3a5c=Object['assign']({},_0x16f987['attributes']),_0x1b9ed3?_0x3ca0d8['start']['isBefore'](_0x1b9ed3['getFirstRange']()['start'])?(_0x1b9ed3['removeMarkers'](),_0x1b9ed3=_0x16f987):_0x16f987['removeMarkers']():_0x1b9ed3=_0x16f987;}}}if(_0x1b9ed3)return this['_setSuggestionRange'](_0x1b9ed3,this['_model']['createRange'](_0xcc4cb,_0x5a02b6)),_0x1b9ed3;{const _0x175525=_0x5357ff(),_0x1756e1=this['_model']['createRange'](_0xcc4cb,_0x5a02b6),_0x37ec56=_0x3d0bc7['id'],_0x18f51d=_0xc126fb?'deletion:'+_0xc126fb:'deletion',_0x1fb2c4=this['_setSuggestionData']({'id':_0x175525,'type':_0x18f51d,'createdAt':new Date(),'authorId':_0x37ec56,'attributes':_0x5e3a5c});return this['_addSuggestionMarker'](_0x18f51d,_0x175525,_0x37ec56,_0x1756e1),_0x1fb2c4;}}['markMultiRangeDeletion'](_0x2c08b1,_0x2ae6d0='multi',_0x1ac700={}){const _0x133715=this['editor']['plugins']['get']('Users')['me'],_0xb7a34a=_0x2c08b1['map'](_0x14736b=>new _0x9c5a28(_0x14736b['start'],_0x14736b['end'])),_0x46148e=new Set();for(const {suggestion:_0x4e404e,meta:_0x2562ab}of this['_findSuggestions'](_0xb7a34a,'insertion'))_0x2562ab['isOwn']&&!_0x2562ab['isNextTo']&&_0x46148e['add'](_0x4e404e);for(const _0x415c10 of _0x46148e)if(_0x415c10['isMultiRange']){const _0xcbe41a=_0x415c10['getRanges']();(!_0x415c10['attributes']||!_0x415c10['attributes']['skipNestingCheck'])&&(_0xcbe41a['every'](_0x4be2be=>_0xb7a34a['some'](_0x1dfaa8=>_0x1dfaa8['containsRange'](_0x4be2be,!0x0)))&&_0x415c10['discard']());if(_0xb7a34a['every'](_0x19acee=>_0xcbe41a['some'](_0x4e89e7=>_0x4e89e7['containsRange'](_0x19acee,!0x0)))){const _0x4a22cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ae6d0,'accept');return this['forceDefaultExecution'](()=>_0x4a22cf(_0x2c08b1,null,_0x1ac700)),null;}}else{const _0x57edca=_0x415c10['getFirstRange']();_0xb7a34a['some'](_0x23d9ba=>_0x23d9ba['containsRange'](_0x57edca,!0x0))&&_0x415c10['discard']();if(_0xb7a34a['every'](_0x56923d=>_0x57edca['containsRange'](_0x56923d,!0x0))){const _0xe582f2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ae6d0,'accept');return this['forceDefaultExecution'](()=>_0xe582f2(_0xb7a34a,null,_0x1ac700)),null;}}const _0x2d8c53=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ae6d0,'join');let _0x4e697d=null;for(const _0x451206 of this['getSuggestions']())if(_0x451206['author']['id']==_0x133715['id']&&_0x451206['isInContent']&&'deletion'==_0x451206['type']&&_0x451206['subType']==_0x2ae6d0&&Lt(_0x451206,_0x1ac700)&&(_0x2d8c53(_0x451206['getRanges'](),_0xb7a34a)||_0x2d8c53(_0xb7a34a,_0x451206['getRanges']()))){if(_0x4e697d){if(_0x451206['commentThread']&&_0x451206['commentThread']['length'])continue;for(const _0x157283 of _0x451206['getRanges']())_0x4e697d['isIntersectingWithRange'](_0x157283)||_0x4e697d['addRange'](_0x157283);_0x451206['removeMarkers']();}else{_0x4e697d=_0x451206;for(const _0x2672c4 of _0xb7a34a)_0x451206['isIntersectingWithRange'](_0x2672c4)||_0x451206['addRange'](_0x2672c4);}}if(_0x4e697d)return _0x4e697d;_0x46148e['clear']();for(const {suggestion:_0x20d2db,meta:_0x48e981}of this['_findSuggestions'](_0xb7a34a,'deletion'))_0x48e981['isOwn']&&(this['_mergeNestedSuggestions']||!_0x48e981['containsRangeInObject']&&!_0x48e981['isInsideObject'])&&Lt(_0x20d2db,_0x1ac700)&&_0x46148e['add'](_0x20d2db);for(const _0x51c425 of _0x46148e){const _0x92e5b5=_0x51c425['getRanges']();if(!_0x1ac700||!_0x1ac700['skipNestingCheck']){if(_0xb7a34a['every'](_0x1fe32b=>_0x92e5b5['some'](_0x2d9641=>_0x2d9641['containsRange'](_0x1fe32b,!0x0))))return _0x51c425;}(!_0x51c425['attributes']||!_0x51c425['attributes']['skipNestingCheck'])&&(_0x92e5b5['every'](_0x46a47d=>_0xb7a34a['some'](_0x13de0d=>_0x13de0d['containsRange'](_0x46a47d,!0x0)))&&_0x51c425['discard']());}const _0x2a1a11=_0x5357ff(),_0x273c0c=_0x133715['id'],_0x22d9de='deletion:'+_0x2ae6d0,_0x3cc8db=this['_setSuggestionData']({'id':_0x2a1a11,'type':_0x22d9de,'createdAt':new Date(),'authorId':_0x273c0c,'attributes':_0x1ac700});for(const _0x57798d of _0xb7a34a)_0x57798d['detach'](),_0x57798d['isCollapsed']||'$graveyard'==_0x57798d['root']['rootName']||this['_addSuggestionMarker'](_0x22d9de,_0x2a1a11,_0x273c0c,_0x57798d,u['getMultiRangeId']());return _0x3cc8db;}['markAttributeChange'](_0x20a7dd,_0xd667a1,_0x37ff65,_0x1b1c0d,_0x28359e){if(_0x20a7dd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x14bcb1=this['editor']['plugins']['get']('Users')['me']['id'],_0x13f5f2=Array['from'](this['_suggestions']['values']())['filter'](_0x34077c=>'attribute'==_0x34077c['type']&&_0x34077c['data']['key']==_0xd667a1&&_0x34077c['isIntersectingWithRange'](_0x20a7dd));if('default'===this['_trackFormatChanges']){const _0xfe2c86=this['_findSuggestions'](_0x20a7dd,'insertion')['filter'](({meta:_0x5e4a29})=>_0x5e4a29['isOwn']&&!_0x5e4a29['isInsideObject']&&!_0x5e4a29['isNextTo'])['map'](({suggestion:_0x565315})=>_0x565315);_0x13f5f2['unshift'](..._0xfe2c86);}const _0x2dcdeb=new Map([[_0x20a7dd,_0x37ff65]]);for(const _0x266efc of _0x13f5f2){const _0x4a2c89='attribute'==_0x266efc['type']?_0x266efc['data']['oldValue']:void 0x0,_0x6bde5d=_0x266efc['getFirstRange'](),_0x5ef704=Array['from'](_0x2dcdeb['keys']())['find'](_0xb0185b=>_0xb0185b['isIntersecting'](_0x6bde5d));if(!_0x5ef704)continue;const _0x185462=_0x5ef704['getDifference'](_0x6bde5d);this['_isBlockAttribute'](_0xd667a1)&&'insertion'==_0x266efc['type']&&0x0!=_0x185462['length']||(_0x2dcdeb['delete'](_0x5ef704),_0x185462['forEach'](_0x482a8e=>{_0x2dcdeb['set'](_0x482a8e,_0x37ff65);}),'insertion'!=_0x266efc['type']&&_0x4a2c89!=_0x1b1c0d&&_0x2dcdeb['set'](_0x5ef704['getIntersection'](_0x6bde5d),_0x4a2c89));}const _0x1354bc=[];for(const [_0x8a4572,_0x2ac370]of _0x2dcdeb){const _0x3143b9=_0x5357ff(),_0x4e7a0d={'key':_0xd667a1,'oldValue':_0x2ac370,'newValue':_0x1b1c0d};_0xd667a1['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':_0xd667a1});const _0xd4849d=('attribute:'+(_0xd667a1+'|'+Vt({'newValue':_0x1b1c0d})))['substring'](0x0,0x3c),_0x13bf88=this['_setSuggestionData']({'id':_0x3143b9,'type':_0xd4849d,'data':_0x4e7a0d,'createdAt':new Date(),'authorId':_0x14bcb1,'attributes':_0x28359e});_0x1354bc['push'](_0x13bf88),this['_addSuggestionMarker'](_0xd4849d,_0x3143b9,_0x14bcb1,_0x8a4572);}return _0x1354bc;}['enableDefaultAttributesIntegration'](_0x173bee){this['enableCommand'](_0x173bee,(_0x139c41,..._0x2e778d)=>{this['_recordAttributeChanges'](()=>{_0x139c41(..._0x2e778d);});});}['registerBlockAttribute'](_0x32b210){this['_blockAttributeKeys']['add'](_0x32b210);}['registerInlineAttribute'](_0x5b1485){this['_inlineAttributeKeys']['add'](_0x5b1485);}['_getAttributeKey'](_0x4ac303){return'attribute'==_0x4ac303['type']?_0x4ac303['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4a6a02,_0x16cfa9){const _0x53cfdc=_0x4a6a02['getFirstMarker']();this['_model']['change'](_0x345900=>{_0x345900['updateMarker'](_0x53cfdc,{'range':_0x16cfa9});});}['_addThreadToSuggestion'](_0x234461){const _0x1fa920=_0x234461['id'],_0xfcef02=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1fa920)||this['_commentsRepository']['addCommentThread']({'channelId':_0xfcef02,'threadId':_0x1fa920,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x40c7e1=this['_commentsRepository']['getCommentThread'](_0x1fa920);_0x40c7e1['unbind']('isRemovable'),_0x40c7e1['isRemovable']=!0x1,_0x234461['commentThread']=_0x40c7e1;}['_checkSuggestionCorrectness'](_0x310e27,_0x3ad192,_0xfd4478,_0x263a75){if(_0x310e27['type']!=_0x3ad192||_0x310e27['subType']!=_0xfd4478||_0x310e27['creator']['id']!=_0x263a75)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x37dd0f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x351e03,_0x596de9){const _0x3d3cfe=_0x351e03['getFirstRange']();if(_0x596de9['isEqual'](_0x3d3cfe))_0x351e03['removeMarkers']();else{if(_0x3d3cfe['containsRange'](_0x596de9)){const _0x52c155=this['_model']['createPositionAt'](_0x596de9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x351e03,this['_model']['createRange'](_0x3d3cfe['start'],_0x52c155));const _0x492638=_0x5357ff(),_0x5a9375=_0x351e03['creator']['id'],_0x29a6a9=_0x351e03['type']+':'+_0x351e03['subType'];this['_setSuggestionData']({'id':_0x492638,'type':_0x29a6a9,'createdAt':new Date(),'authorId':_0x5a9375,'data':_0x351e03['data'],'attributes':_0x351e03['attributes']});const _0x205689=this['_model']['createPositionAt'](_0x596de9['end']['parent'],'after'),_0x4529ef=this['_model']['createRange'](_0x205689,_0x3d3cfe['end']);this['_addSuggestionMarker'](_0x29a6a9,_0x492638,_0x5a9375,_0x4529ef);}else{if(_0x3d3cfe['containsPosition'](_0x596de9['start'])){const _0xe2d99a=this['_model']['createPositionAt'](_0x596de9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x351e03,this['_model']['createRange'](_0x3d3cfe['start'],_0xe2d99a));}else{const _0x5cf903=this['_model']['createPositionAt'](_0x596de9['end']['parent'],'after');this['_setSuggestionRange'](_0x351e03,this['_model']['createRange'](_0x5cf903,_0x3d3cfe['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x358b94){for(const {suggestion:_0x3c45a4,meta:_0x21c12c}of this['_findSuggestions'](_0x358b94,'insertion')){if(!_0x21c12c['isOwn'])continue;const _0x1c9fad=_0x3c45a4['getRanges']();for(const _0x8b0601 of _0x1c9fad)if(!_0x358b94['getDifference'](_0x8b0601)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2bf000){const _0x20de2e=this['editor']['plugins']['get']('Users')['getUser'](_0x2bf000);if(!_0x20de2e)throw new _0x37dd0f('track-changes-user-not-found',this);return _0x20de2e;}['_getExternalAuthor'](_0x482d0b){const _0x11b0a3=this['editor']['plugins']['get']('Users'),_0x4eec30=_0x40276b('external:'+_0x482d0b),_0x11a3ba=_0x11b0a3['getUser'](_0x4eec30);return _0x11a3ba||_0x11b0a3['addUser']({'id':_0x4eec30,'name':_0x482d0b});}['_createSuggestion'](_0x831c67,_0x518bc2,_0xca103d,_0x13fcbe,_0x1035ed){const _0x50f1cc=this['_getAuthorFromId'](_0x13fcbe),_0x5dc783=this['_suggestionFactory']['buildSuggestion'](_0x831c67,_0x518bc2,_0xca103d,_0x50f1cc,_0x1035ed,_0x571e0c=>{this['_updateSuggestionData'](_0xca103d,{'attributes':_0x571e0c});const _0x5339f8=this['getSuggestion'](_0xca103d);this['_joinWithAdjacentSuggestions'](new Set([_0x5339f8])),this['_refreshSuggestionsChain'](new Set([_0x5339f8]));});return this['listenTo'](_0x5dc783,'accept',()=>{this['_updateSuggestionData'](_0xca103d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5dc783,'discard',()=>{this['_updateSuggestionData'](_0xca103d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xca103d,_0x5dc783),this['_suggestionState']['set'](_0x5dc783,'notReady'),_0x5dc783;}['_splitMarkerName'](_0x2c86a3){const _0x1fda84=_0x2c86a3['split'](':');return{'group':_0x1fda84[0x0],'type':_0x1fda84[0x1],'subType':_0x1fda84['length']>=0x5?_0x1fda84[0x2]:null,'id':_0x1fda84['length']<0x5?_0x1fda84[0x2]:_0x1fda84[0x3],'authorId':_0x1fda84['length']<0x5?_0x1fda84[0x3]:_0x1fda84[0x4],'markerCount':0x6==_0x1fda84['length']?_0x1fda84[0x5]:null};}['_breakSuggestionMarker'](_0x4151bf,_0x80250b,_0x4e60f6){const _0x42d4c1=_0x4151bf['getFirstRange'](),_0x2a1cb7=_0x42d4c1['start'],_0x4de3c8=_0x42d4c1['end'];this['_setSuggestionRange'](_0x4151bf,this['_model']['createRange'](_0x2a1cb7,_0x80250b));const _0x1daaa6=_0x5357ff(),_0x309591=_0x4151bf['creator']['id'],_0xbfe5ab=_0x4151bf['type']+(_0x4151bf['subType']?':'+_0x4151bf['subType']:'');this['_setSuggestionData']({'id':_0x1daaa6,'type':_0xbfe5ab,'createdAt':new Date(),'authorId':_0x309591,'originalSuggestionId':_0x4151bf['id'],'attributes':_0x4151bf['attributes'],'data':_0x4151bf['data']});const _0x4d269c=this['_getAttributeKey'](_0x4151bf);('formatBlock'==_0x4151bf['type']||_0x4d269c&&this['_isBlockAttribute'](_0x4d269c))&&(_0x4e60f6=this['_model']['createPositionBefore'](_0x4e60f6['parent'])),this['_addSuggestionMarker'](_0xbfe5ab,_0x1daaa6,_0x309591,this['_model']['createRange'](_0x4e60f6,_0x4de3c8));}['_findSuggestions'](_0x80136b,_0x2a2c8d=null){const _0x571288=[],_0x184e8c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x80136b)||(_0x80136b=[_0x80136b]);for(const _0x132f45 of this['getSuggestions']()){if(!_0x132f45['isInContent'])continue;if(_0x2a2c8d&&_0x132f45['type']!=_0x2a2c8d)continue;let _0x5ed98b=!0x1;for(const _0x2875ce of _0x132f45['getRanges']()){for(const _0x43290d of _0x80136b){const _0x565419=_0x43290d['start']['isEqual'](_0x2875ce['end'])||_0x43290d['end']['isEqual'](_0x2875ce['start']);if(_0x565419||_0x43290d['getIntersection'](_0x2875ce)){const _0x44400e=_0x43290d['containsRange'](_0x2875ce)&&Rt(this['_model']['schema'],_0x2875ce['start'],_0x43290d),_0x528fe6=_0x2875ce['containsRange'](_0x43290d)&&Rt(this['_model']['schema'],_0x43290d['start'],_0x2875ce);_0x571288['push']({'suggestion':_0x132f45,'meta':{'isOwn':_0x184e8c==_0x132f45['author'],'isNextTo':_0x565419,'isInsideObject':_0x44400e,'containsRangeInObject':_0x528fe6}}),_0x5ed98b=!0x0;break;}}if(_0x5ed98b)break;}}return _0x571288;}['_addSuggestionMarker'](_0x333f16,_0xa9b7ff,_0x38c795,_0x25b885,_0x184cfa){this['_model']['change'](_0x1dcfee=>{let _0x301568='suggestion:'+_0x333f16+':'+_0xa9b7ff+':'+_0x38c795;_0x184cfa&&(_0x301568=_0x301568+':'+_0x184cfa),_0x1dcfee['addMarker'](_0x301568,{'range':_0x25b885,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4d446f){const _0x33858b=_0x4d446f['previous'],_0x33bab7=_0x4d446f['next'];_0x4d446f['previous']=null,_0x4d446f['next']=null,null!=_0x33858b&&_0x33858b['next']==_0x4d446f&&(_0x33858b['next']=_0x33bab7),null!=_0x33bab7&&_0x33bab7['previous']==_0x4d446f&&(_0x33bab7['previous']=_0x33858b),'ready'==this['_suggestionState']['get'](_0x4d446f)&&(this['_suggestionState']['set'](_0x4d446f,'removed'),this['fire']('suggestionUnloaded',_0x4d446f,_0x33858b,_0x33bab7));}['_setSuggestionData'](_0x1d3761){const _0x12ffe8=_0x1d3761['id'],_0x5f0dc0=this['addSuggestionData'](_0x1d3761);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1ea0cc=this['editor']['plugins']['get']('PendingActions'),_0x429ce7=_0x5f0dc0['hasComments'],_0x3077ad=_0x5f0dc0['subType']?_0x5f0dc0['type']+':'+_0x5f0dc0['subType']:_0x5f0dc0['type'],_0x4672bd=this['editor']['locale'],_0x344ca=_0x1ea0cc['add'](o(_0x4672bd,'PENDING_ACTION_SUGGESTION')),_0x18f119={'id':_0x12ffe8,'type':_0x3077ad,'hasComments':_0x429ce7,'data':_0x1d3761['data']||null,'originalSuggestionId':_0x1d3761['originalSuggestionId']||null,'attributes':_0x5f0dc0['attributes']};this['_adapter']['addSuggestion'](_0x18f119)['then'](_0x1feb3d=>{_0x5f0dc0['_saved']=!0x0,_0x1ea0cc['remove'](_0x344ca),_0x1feb3d&&_0x1feb3d['createdAt']&&(this['_suggestions']['get'](_0x12ffe8)['createdAt']=_0x1feb3d['createdAt']);})['catch'](_0x5bb523=>{throw _0x18816c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5f0dc0['discard']();}),_0x5f0dc0['stopListening'](),this['_suggestions']['delete'](_0x5f0dc0['id']),this['_suggestionState']['delete'](_0x5f0dc0),_0x5bb523;});}return _0x5f0dc0;}['_isBlockAttribute'](_0x42ebaf){return this['_blockAttributeKeys']['has'](_0x42ebaf);}['_updateSuggestionData'](_0x5d0238,_0x3522c2){const _0x29eb98=this['editor']['plugins']['get']('PendingActions'),_0x3ac9ce=this['getSuggestion'](_0x5d0238);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3ac9ce['_saved']){const _0x62486e=_0x29eb98['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5d0238,_0x3522c2)['then'](()=>{_0x29eb98['remove'](_0x62486e);});}else _0x3ac9ce['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5d0238,_0x3522c2);});}}['_getSuggestionData'](_0x5de30f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x37dd0f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5de30f);}['_handleNewSuggestionMarker'](_0x1e167a){const {id:_0x55c6a5,type:_0x168ecb,subType:_0x117555,authorId:_0x1f9946}=this['_splitMarkerName'](_0x1e167a),_0x55e75d=this['_suggestions']['get'](_0x55c6a5)||this['_createSuggestion'](_0x168ecb,_0x117555,_0x55c6a5,_0x1f9946,{});switch(this['_checkSuggestionCorrectness'](_0x55e75d,_0x168ecb,_0x117555,_0x1f9946),this['_suggestionState']['get'](_0x55e75d)){case'notReady':this['_getSuggestionData'](_0x55c6a5)['then'](_0x4c78b9=>{let _0x355c6d=Promise['resolve']();_0x4c78b9['hasComments']&&(_0x355c6d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x55c6a5})),_0x355c6d['then'](()=>{this['addSuggestionData'](_0x4c78b9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x55e75d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x55c6a5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x55e75d,'ready'),this['fire']('suggestionLoaded',_0x55e75d);break;case'ready':this['fire']('suggestionChanged',_0x55e75d);}return _0x55e75d['addMarkerName'](_0x1e167a),_0x55e75d;}['_refreshSuggestionsChain'](_0x35fadf){const _0x36e165=Array['from'](_0x35fadf),_0x3046d0=_0x36e165['filter'](_0x581eb8=>'attribute'==_0x581eb8['type']);this['_refreshAttributeSuggestionsChain'](_0x3046d0);const _0x237484=_0x36e165['filter'](_0x3be026=>!_0x3be026['isMultiRange']&&'attribute'!=_0x3be026['type']),_0x2f4956=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f7c1f=>!_0x4f7c1f['isMultiRange']&&'attribute'!=_0x4f7c1f['type']),_0x5f129f=_0x2f4956['filter'](_0x103c60=>!_0x35fadf['has'](_0x103c60)),_0x321e96=new Map(_0x2f4956['map'](_0x1c17b3=>[_0x1c17b3,this['_suggestionFactory']['getSuggestionCallback'](_0x1c17b3['type'],_0x1c17b3['subType'],'chain')])),_0x7f1257=new Map(_0x2f4956['map'](_0x3a3fc4=>[_0x3a3fc4,_0x3a3fc4['getFirstRange']()])),_0x102501=new Set(),_0x518686=new Set();for(let _0x122228=0x0;_0x122228<_0x237484['length'];_0x122228++)_0x3d157e(_0x237484[_0x122228],_0x237484,_0x122228+0x1);for(let _0x467b85=0x0;_0x467b85<_0x237484['length'];_0x467b85++)_0x3d157e(_0x237484[_0x467b85],_0x5f129f,0x0);const _0x1739c2=new Set();for(let _0x8e6cf0=0x0;_0x8e6cf0<_0x237484['length'];_0x8e6cf0++){const _0x239d90=_0x237484[_0x8e6cf0];!_0x518686['has'](_0x239d90)&&_0x239d90['previous']&&(_0x1739c2['add'](_0x239d90['previous']),_0x239d90['previous']['next']===_0x239d90&&(_0x239d90['previous']['next']=null),_0x239d90['previous']=null),!_0x102501['has'](_0x239d90)&&_0x239d90['next']&&(_0x1739c2['add'](_0x239d90['next']),_0x239d90['next']['previous']===_0x239d90&&(_0x239d90['next']['previous']=null),_0x239d90['next']=null);}function _0x3d157e(_0x42d009,_0x4461ca,_0x1ce925){for(let _0xcb5013=_0x1ce925;_0xcb5013<_0x4461ca['length'];_0xcb5013++){const _0x51a62b=_0x44946c(_0x42d009,_0x4461ca[_0xcb5013]);_0x51a62b&&(_0x51a62b[0x0]['next']=_0x51a62b[0x1],_0x51a62b[0x1]['previous']=_0x51a62b[0x0],_0x102501['add'](_0x51a62b[0x0]),_0x518686['add'](_0x51a62b[0x1]));}}function _0x44946c(_0x2d75ee,_0xfc7e42){if(_0x2d75ee['author']['id']!==_0xfc7e42['author']['id'])return null;const _0x303b15=_0x321e96['get'](_0x2d75ee)(_0x2d75ee,_0xfc7e42,_0x7f1257['get'](_0x2d75ee),_0x7f1257['get'](_0xfc7e42));if(!_0x303b15)return null;return _0x321e96['get'](_0xfc7e42)(_0x2d75ee,_0xfc7e42,_0x7f1257['get'](_0x2d75ee),_0x7f1257['get'](_0xfc7e42))?_0x303b15[0x1]['commentThread']&&_0x303b15[0x1]['commentThread']['length']?null:_0x303b15:null;}_0x1739c2['size']&&this['_refreshSuggestionsChain'](_0x1739c2);}['_refreshAttributeSuggestionsChain'](_0x2e9e90){if(0x0==_0x2e9e90['length'])return;const _0xbfd885=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15638e=>'attribute'==_0x15638e['type']&&_0x15638e['_isDataLoaded']),_0x935fb1=[],_0x32ec88=new Map();for(const _0x214468 of _0xbfd885){const _0x191a10=_0x40276b(_0x214468['attributes']);_0x32ec88['has'](_0x191a10)||(_0x32ec88['set'](_0x191a10,_0x935fb1['length']),_0x935fb1['push']([]));const _0x31e1f6=_0x32ec88['get'](_0x191a10);_0x935fb1[_0x31e1f6]['push'](_0x214468);}!(function(){_0x935fb1['sort']((_0x5046b0,_0x2bf3a0)=>{const _0x3880b2=_0x5046b0[0x0]['createdAt'],_0x2efe64=_0x2bf3a0[0x0]['createdAt'];return _0x3880b2==_0x2efe64?_0x5046b0[0x0]['attributes']['groupId']<_0x2bf3a0[0x0]['attributes']['groupId']?-0x1:0x1:_0x3880b2<_0x2efe64?-0x1:0x1;});for(const _0x1975b8 of _0x935fb1)_0x1975b8['sort']((_0x3b1286,_0xff2039)=>_0x3b1286['id']<_0xff2039['id']?-0x1:0x1);}());for(let _0x152386=0x0;_0x152386<_0x935fb1['length'];_0x152386++){if(0x0==_0x935fb1[_0x152386]['length'])continue;const _0x51ff5a=[];for(let _0x1060bd=_0x152386+0x1;_0x1060bd<_0x935fb1['length'];_0x1060bd++)0x0!=_0x935fb1[_0x1060bd]['length']&&_0x5d3958(_0x935fb1[_0x152386],_0x935fb1[_0x1060bd])&&_0x51ff5a['push'](_0x1060bd);for(const _0x4941ec of _0x51ff5a)_0x935fb1[_0x152386]=_0x935fb1[_0x152386]['concat'](_0x935fb1[_0x4941ec]),_0x935fb1[_0x4941ec]=[];}for(const _0x10707e of _0x935fb1)for(let _0x166eef=0x0;_0x166eef<_0x10707e['length'];_0x166eef++)_0x10707e[_0x166eef]['next']=_0x10707e[_0x166eef+0x1]||null;for(const _0x7101ce of _0x935fb1)for(let _0x12aed1=0x0;_0x12aed1<_0x7101ce['length'];_0x12aed1++)_0x7101ce[_0x12aed1]['previous']=_0x7101ce[_0x12aed1-0x1]||null;function _0x5d3958(_0x7fe6cf,_0x29b31a){if(_0x7fe6cf[0x0]['attributes']['groupId']!==_0x29b31a[0x0]['attributes']['groupId']&&_0x7fe6cf[0x0]['author']!==_0x29b31a[0x0]['author'])return!0x1;if(!function(_0x44c4bb,_0x27ad80){if(!_0x44c4bb['hasComments']&&!_0x27ad80['hasComments'])return!0x0;if(_0x44c4bb['hasComments']&&_0x27ad80['hasComments'])return!0x1;if(_0x44c4bb['hasComments']&&_0x27ad80['createdAt']<_0x44c4bb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x27ad80['hasComments']&&_0x44c4bb['createdAt']<_0x27ad80['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x7fe6cf[0x0],_0x29b31a[0x0]))return!0x1;const _0x3806ce=Bt(_0x7fe6cf[0x0]['attributes'],'groupId'),_0x1861e2=Bt(_0x29b31a[0x0]['attributes'],'groupId');if(!_0x4fe17c(_0x3806ce,_0x1861e2))return!0x1;return!!_0x7fe6cf['every'](_0x27fd2f=>_0x29b31a['some'](_0x1c1c86=>_0x27fd2f['getFirstRange']()['isEqual'](_0x1c1c86['getFirstRange']())))&&_0x29b31a['every'](_0xf5fcb=>_0x7fe6cf['some'](_0xe22768=>_0xf5fcb['getFirstRange']()['isEqual'](_0xe22768['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4eff3d){const _0x3231d1=Array['from'](_0x4eff3d),_0x53502a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x592100=_0x53502a['filter'](_0x46342f=>!_0x4eff3d['has'](_0x46342f)),_0xb6d9ab=new Map(_0x3231d1['map'](_0x34ea9e=>[_0x34ea9e,this['_suggestionFactory']['getSuggestionCallback'](_0x34ea9e['type'],_0x34ea9e['subType'],'join')])),_0x1bd415=new Map(_0x53502a['map'](_0x3376e1=>[_0x3376e1,_0x3376e1['getRanges']()]));for(let _0x2ca874=0x0;_0x2ca874<_0x3231d1['length'];_0x2ca874++){if(_0x367eee(this,_0x3231d1[_0x2ca874],_0x3231d1,_0x2ca874+0x1))return!0x0;}for(let _0x589af4=0x0;_0x589af4<_0x3231d1['length'];_0x589af4++){if(_0x367eee(this,_0x3231d1[_0x589af4],_0x592100,0x0))return!0x0;}return!0x1;function _0x367eee(_0x4db7c7,_0x5a5415,_0x35a831,_0x595e3c){for(let _0x3b38d9=_0x595e3c;_0x3b38d9<_0x35a831['length'];_0x3b38d9++){const _0x4d4567=_0x35a831[_0x3b38d9];if(_0x4d4567['type']!==_0x5a5415['type']||_0x4d4567['author']['id']!==_0x5a5415['author']['id']||_0x4d4567['subType']!==_0x5a5415['subType'])continue;if(!Pt(_0x5a5415,_0x4d4567,['groupId']))continue;if('attribute'==_0x5a5415['type']&&_0x5a5415['data']['oldValue']!=_0x4d4567['data']['oldValue'])continue;if('attribute'==_0x5a5415['type']&&_0x4db7c7['_isBlockAttribute'](_0x5a5415['data']['key']))continue;if('formatBlock'==_0x5a5415['type']){const _0x50875d=_0x4db7c7['editor']['model'],_0x412003=_0x5a5415['getContainedElement']();if(_0x412003&&(_0x50875d['schema']['isObject'](_0x412003)||_0x50875d['schema']['isLimit'](_0x412003)))continue;}const _0x21e1fc=_0xb6d9ab['get'](_0x5a5415),_0x4534b2=_0x1bd415['get'](_0x5a5415),_0x46a85d=_0x1bd415['get'](_0x4d4567),_0x6f46d4=_0x5a5415['commentThread']&&_0x5a5415['commentThread']['length'],_0x5568ce=_0x4d4567['commentThread']&&_0x4d4567['commentThread']['length'];if(!_0x6f46d4&&_0x21e1fc(_0x46a85d,_0x4534b2))return _0x4db7c7['_joinSuggestions'](_0x4d4567,_0x5a5415),_0x1bd415['delete'](_0x5a5415),!0x0;if(!_0x5568ce&&_0x21e1fc(_0x4534b2,_0x46a85d))return _0x4db7c7['_joinSuggestions'](_0x5a5415,_0x4d4567),_0x1bd415['delete'](_0x4d4567),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3961b2,_0xb618d8){if(_0x3961b2['isMultiRange']){for(const _0x476e25 of _0xb618d8['getRanges']())_0x3961b2['addRange'](_0x476e25);}else{const _0x3ab2db=_0xb618d8['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3961b2,this['_model']['createRange'](_0x3961b2['getFirstRange']()['start'],_0x3ab2db));}_0xb618d8['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3b5e4d,_0x48de6f){const _0x2eec77=_0x3b5e4d['startsWith']('format')||_0x3b5e4d['startsWith']('attribute')?'FORMATTING':_0x3b5e4d['toUpperCase']();return o(this['editor']['locale'],_0x48de6f+'_'+_0x2eec77+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4a394a=this['editor'];if(!_0x4a394a['ui'])return;const {ariaLiveAnnouncer:_0x24196e}=_0x4a394a['ui'];_0xd6b26e(this['_model'],({left:_0x5e72e0,entered:_0x540e63})=>{for(const _0x5b72a3 of _0x5e72e0){const {group:_0x50ade2,type:_0x3018ca}=this['_splitMarkerName'](_0x5b72a3['name']);if('suggestion'===_0x50ade2){_0x24196e['announce'](this['_getMarkerAnnouncementText'](_0x3018ca,'LEAVE'));break;}}for(const _0x417c71 of _0x540e63){const {group:_0x20e743,type:_0x3a5b5e}=this['_splitMarkerName'](_0x417c71['name']);if('suggestion'===_0x20e743){_0x24196e['announce'](this['_getMarkerAnnouncementText'](_0x3a5b5e,'ENTER'));break;}}});}['_processAttributeChanges'](_0xd764a0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3297c1=this['editor'],_0x40ca56=_0x3297c1['model']['document']['differ']['getChanges']();if(0x0==_0x40ca56['length'])return!0x1;const _0x53b9b=[],_0xe90670=_0x40ca56['filter'](_0x39e8fb=>'attribute'==_0x39e8fb['type']),_0xb3944b=_0x40ca56['filter'](_0x320d66=>'insert'==_0x320d66['type']&&'$text'!=_0x320d66['name']),_0x22afae=_0x40ca56['filter'](_0x30b0b1=>'remove'==_0x30b0b1['type']&&'$text'!=_0x30b0b1['name']);for(const _0x3bb4a0 of _0xe90670)_0x53b9b['push']({'key':_0x3bb4a0['attributeKey'],'newValue':_0x3bb4a0['attributeNewValue'],'oldValue':_0x3bb4a0['attributeOldValue'],'range':Ot(_0x3bb4a0['range'],_0x3297c1['model'])});for(const _0x2ced20 of _0xb3944b){const _0x5efaf6=_0x22afae['find'](_0x9ca82f=>_0x9ca82f['position']['isEqual'](_0x2ced20['position']));_0x5efaf6&&_0x53b9b['push']({'key':m,'newValue':_0x2ced20['name'],'oldValue':_0x5efaf6['name'],'range':_0x3297c1['model']['createRangeOn'](_0x2ced20['position']['nodeAfter'])});}return 0x0!=_0x53b9b['length']&&this['_reduceExistingSuggestions'](_0xd764a0,_0x53b9b);}['_processAttributeSuggestions'](_0x3446bc){let _0x38a6db=!0x1;const _0x1aef42=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6bd9eb=>_0x6bd9eb['data']['newRange']&&_0x6bd9eb['name']['startsWith']('suggestion:attribute:'));for(const _0x4eb467 of _0x1aef42){const {subType:_0x5ec56e,id:_0x23ba11}=this['_splitMarkerName'](_0x4eb467['name']),_0x15d8ac=_0x5ec56e['split']('|')[0x0];for(const _0x4bf174 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4bf174['id']!=_0x23ba11&&'attribute'==_0x4bf174['type']&&_0x4bf174['data']&&_0x4bf174['data']['key']==_0x15d8ac&&_0x4bf174['getFirstRange']()['isIntersecting'](_0x4eb467['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4bf174,_0x4eb467['data']['newRange'],_0x3446bc),_0x38a6db=!0x0);}return _0x38a6db;}['_recordAttributeChanges'](_0x22eece){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x22eece();}['_isRegisteredAttribute'](_0x37a9e6){const _0x2d8936=this['_isBlockAttribute'](_0x37a9e6),_0x4fa484=this['_inlineAttributeKeys']['has'](_0x37a9e6);return _0x2d8936||_0x4fa484;}['_reduceExistingSuggestions'](_0x4e2d77,_0x461cc9){if(0x0==_0x461cc9['length'])return!0x1;let _0x426ed7=!0x1;for(const _0x37ab60 of _0x461cc9){const _0x41329e=this['_findSuggestions'](_0x37ab60['range'],'attribute')['filter'](_0x2cbe6e=>!_0x2cbe6e['meta']['isNextTo'])['map'](_0x2bc727=>_0x2bc727['suggestion']),_0x34399a=_0x40276b({'newValue':_0x37ab60['newValue']});_0x41329e['filter'](_0x49b8e4=>{const [_0x18ba58,_0x2943be]=_0x49b8e4['subType']['split']('|');return _0x18ba58==_0x37ab60['key']&&_0x2943be!=_0x34399a;})['forEach'](_0x1ea7a9=>{this['_reduceSuggestionAttributeRange'](_0x1ea7a9,_0x37ab60['range'],_0x4e2d77),_0x426ed7=!0x0;});}return _0x426ed7;}['_reduceSuggestionAttributeRange'](_0x277866,_0x4726c1,_0x16db39){const _0x446816=_0x277866['getFirstRange']()['getDifference'](_0x4726c1);0x0!==_0x446816['length']?0x1!==_0x446816['length']?this['_breakSuggestionMarker'](_0x277866,_0x4726c1['start'],_0x4726c1['end']):this['_setSuggestionRange'](_0x277866,_0x446816[0x0]):_0x16db39['removeMarker'](_0x277866['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x18ab55){this['_editor']=_0x18ab55,this['_model']=_0x18ab55['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x483b1a,_0x15b857,_0x28fdea,_0x508ad0,_0x4526db,_0x2e192c){return new u(this['_model'],{'type':_0x483b1a,'subType':_0x15b857,'id':_0x28fdea,'author':_0x508ad0,'creator':_0x508ad0,'attributes':_0x4526db,'onAttributesChange':_0x2e192c,'onAccept':(..._0x2b2a56)=>this['getSuggestionCallback'](_0x483b1a,_0x15b857,'accept')(..._0x2b2a56),'onDiscard':(..._0x4aa99f)=>this['getSuggestionCallback'](_0x483b1a,_0x15b857,'discard')(..._0x4aa99f)});}['registerCustomCallback'](_0x144317,_0x19bfe2,_0x6509cb,_0x38c9b1){const _0x33e7e4=_0x144317+':'+_0x19bfe2+':'+_0x6509cb;this['_customCallbacks']['set'](_0x33e7e4,_0x38c9b1);}['getSuggestionCallback'](_0x41712c,_0x2c04f8,_0x34cbb7){const _0x5b2e5f=_0x41712c+':'+_0x2c04f8+':'+_0x34cbb7;return this['_customCallbacks']['get'](_0x5b2e5f)||this['_defaultCallbacks']['get'](_0x41712c+':'+_0x34cbb7);}['_registerDefaultCallbacks'](){const _0x4cf128=()=>!0x1,_0x3e28a0=_0x35640f=>{_0x35640f['sort']((_0x3f712d,_0x2cd8fd)=>_0x3f712d['start']['isBefore'](_0x2cd8fd['start'])?0x1:-0x1),this['_model']['change'](_0x8587e3=>{for(const _0x264d80 of _0x35640f){let _0x27eee5;_0x27eee5=_0x264d80['end']['isAtEnd']&&_0x264d80['end']['parent']==_0x264d80['start']['nodeAfter']?_0x8587e3['createSelection'](_0x264d80['start']['nodeAfter'],'on'):_0x8587e3['createSelection'](_0x264d80),this['_model']['deleteContent'](_0x27eee5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2497d4=(_0x10cb8a,_0x500ae2)=>{_0x500ae2&&this['_model']['change'](_0x222a02=>{const {commandName:_0x107a52,commandParams:_0x1d3f6f=[]}=_0x500ae2,_0x1a887b=_0x10cb8a['map'](_0x279c8b=>(Tt(_0x279c8b)&&(_0x279c8b=this['_model']['createRange'](_0x279c8b['end'])),_0x279c8b))['filter'](_0x53294e=>'$graveyard'!==_0x53294e['root']['rootName']);if(_0x1a887b['length']<0x1)return;const _0x1779b9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2c18e1=>_0x9c5a28['fromRange'](_0x2c18e1));_0x222a02['setSelection'](_0x1a887b);for(const _0x557376 of this['_editor']['commands']['commands']())_0x557376['refresh']();_0x1d3f6f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x107a52,..._0x1d3f6f);const _0x1eda3b=_0x1779b9['filter'](_0x260f74=>'$graveyard'!=_0x260f74['root']['rootName']);_0x1eda3b['length']>0x0&&_0x222a02['setSelection'](_0x1eda3b);for(const _0x30bfcb of _0x1779b9)_0x30bfcb['detach']();});},_0x365b04=(_0x290a65,_0x2445a5)=>0x1==_0x290a65['length']&&0x1==_0x2445a5['length']&&_0x290a65[0x0]['end']['isEqual'](_0x2445a5[0x0]['start']),_0x13e110=(_0x3798d2,_0x413cac,_0xdb1b0c,_0x134942)=>Ft(_0x3798d2,_0x413cac,_0xdb1b0c,_0x134942,this['_model'])?[_0x3798d2,_0x413cac]:Ft(_0x413cac,_0x3798d2,_0x134942,_0xdb1b0c,this['_model'])?[_0x413cac,_0x3798d2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4cf128),this['_defaultCallbacks']['set']('insertion:discard',_0x3e28a0),this['_defaultCallbacks']['set']('insertion:join',_0x365b04),this['_defaultCallbacks']['set']('insertion:chain',_0x13e110),this['_defaultCallbacks']['set']('deletion:accept',_0x3e28a0),this['_defaultCallbacks']['set']('deletion:discard',_0x4cf128),this['_defaultCallbacks']['set']('deletion:join',_0x365b04),this['_defaultCallbacks']['set']('deletion:chain',_0x13e110),this['_defaultCallbacks']['set']('formatInline:accept',_0x2497d4),this['_defaultCallbacks']['set']('formatInline:discard',_0x4cf128),this['_defaultCallbacks']['set']('formatInline:join',_0x365b04),this['_defaultCallbacks']['set']('formatInline:chain',_0x4cf128),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2497d4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4cf128),this['_defaultCallbacks']['set']('formatBlock:join',_0x365b04),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4cf128),this['_defaultCallbacks']['set']('attribute:accept',_0x4cf128),this['_defaultCallbacks']['set']('attribute:discard',(_0x39e868,_0x131c14)=>{if(!_0x131c14)return;const _0x33becd=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x478415=>{if(_0x131c14['key']==m)for(const _0x165105 of _0x39e868){const _0x218aea=_0x165105['start']['nodeAfter'],_0x3559d0=_0x131c14['oldValue'];_0x478415['rename'](_0x218aea,_0x3559d0);}else{if(_0x33becd['_isBlockAttribute'](_0x131c14['key'])){for(const _0x19cfc2 of _0x39e868)void 0x0!==_0x131c14['oldValue']?_0x478415['setAttribute'](_0x131c14['key'],_0x131c14['oldValue'],_0x19cfc2['start']['nodeAfter']):_0x478415['removeAttribute'](_0x131c14['key'],_0x19cfc2['start']['nodeAfter']);}else{for(const _0x44c607 of _0x39e868)_0x131c14['oldValue']?_0x478415['setAttribute'](_0x131c14['key'],_0x131c14['oldValue'],_0x44c607):_0x478415['removeAttribute'](_0x131c14['key'],_0x44c607);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x365b04);}}function Rt(_0xa6e463,_0x4e8751,_0x4ac79){for(const _0x11f750 of _0x4e8751['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x11f750['root']==_0x11f750)return!0x1;if(!_0x4ac79['containsItem'](_0x11f750))return!0x1;if(_0xa6e463['isObject'](_0x11f750)||_0xa6e463['isLimit'](_0x11f750))return!0x0;}return!0x1;}function Tt(_0x48680d){return _0x48680d['end']['parent']==_0x48680d['start']['nodeAfter']&&_0x48680d['end']['isAtStart'];}function Et(_0x3254ae,_0x44eac3,_0x59f829,_0x38f9ff){const _0x79f4f3=_0x92c149=>!_0x92c149['item']['is']('$textProxy')&&!_0x38f9ff['isObject'](_0x92c149['item']),_0x55d6c7=_0x3254ae['start']['getLastMatchingPosition'](_0x79f4f3),_0x564d9d=_0x3254ae['end']['getLastMatchingPosition'](_0x79f4f3,{'direction':'backward'});return(!_0x3254ae['start']['isEqual'](_0x55d6c7)||!_0x3254ae['end']['isEqual'](_0x564d9d))&&(_0x55d6c7['isBefore'](_0x564d9d)?_0x59f829['updateMarker'](_0x44eac3,{'range':_0x59f829['createRange'](_0x55d6c7,_0x564d9d)}):_0x59f829['removeMarker'](_0x44eac3),!0x0);}function Vt(_0x55d819){return _0x40276b(_0x55d819);}function Ut(_0x1b2285){const _0x379173=_0x1b2285['start']['nodeAfter'];return _0x379173&&_0x379173['is']('element');}function Ot(_0x18d258,_0x70e387){return null==_0x18d258['end']['nodeBefore']&&_0x18d258['end']['parent']==_0x18d258['start']['nodeAfter']?Gt(_0x18d258['start']['nodeAfter'],_0x70e387):_0x18d258;}function Gt(_0xf6e48c,_0x23c435){const _0xffce89=_0x23c435['schema']['isObject'](_0xf6e48c)||_0x23c435['schema']['isSelectable'](_0xf6e48c);return _0x23c435['createRange'](_0x23c435['createPositionAt'](_0xf6e48c,'before'),_0xffce89?_0x23c435['createPositionAfter'](_0xf6e48c):_0x23c435['createPositionAt'](_0xf6e48c,'end'));}function Ft(_0x32c9fd,_0x4d4217,_0x4e9d6a,_0x363940,_0x398d73){if(!Pt(_0x32c9fd,_0x4d4217))return!0x1;if(_0x4e9d6a['end']['isEqual'](_0x363940['start']))return!0x0;if(_0x32c9fd['type']!=_0x4d4217['type'])return!0x1;if(!_0x4e9d6a['end']['isTouching'](_0x363940['start']))return!0x1;const _0x548bce=_0x398d73['createRange'](_0x4e9d6a['end'],_0x363940['start'])['getWalker']();for(const _0x4ea973 of _0x548bce)if(['elementStart','elementEnd']['includes'](_0x4ea973['type'])&&_0x398d73['schema']['isLimit'](_0x4ea973['item']))return!0x1;return!0x0;}function Pt(_0x501e88,_0x237c43,_0x4c7d40=[]){return!(!_0x501e88['_isDataLoaded']||!_0x237c43['_isDataLoaded'])&&_0x4fe17c(Bt(_0x501e88['attributes'],_0x4c7d40),Bt(_0x237c43['attributes'],_0x4c7d40));}function Lt(_0x53e814,_0x370320){const _0x56bb12=Ht(_0x53e814['attributes']),_0x47f27e=Ht(_0x370320);if(!_0x53e814['_isDataLoaded'])return!0x1;for(const _0x54f93a of Object['keys'](_0x47f27e))if(!_0x4fe17c(_0x56bb12[_0x54f93a],_0x47f27e[_0x54f93a]))return!0x1;return!0x0;}function Ht(_0x4c0eed){const _0x36489f=Object['assign']({},_0x4c0eed);return delete _0x36489f['skipNestingCheck'],delete _0x36489f['tablePasteChainId'],_0x36489f;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2293f9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x20e1a8,_0x5304ed,_0x40a1cb,_0x1f885a){super(),this['model']=_0x5304ed,this['view']=_0x40a1cb,this['commentThreadController']=_0x1f885a,this['_editor']=_0x20e1a8,this['_acceptCommand']=_0x20e1a8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x20e1a8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xf784bb,_0x18dbd6)=>_0xf784bb||_0x18dbd6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5c3c06=>_0x5c3c06&&this['_editor']['model']['canEditAt'](_0x5304ed['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x58eddb=>_0x58eddb&&this['_editor']['model']['canEditAt'](_0x5304ed['getRanges']())),this['_pendingAction']=null,_0x40a1cb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x40a1cb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x40a1cb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x40a1cb,'change:isDirty',()=>{_0x40a1cb['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 _0x235e9a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x235e9a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x2ec61a{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3c1235,_0x29c034,_0x21699f,_0x30739a){super(_0x3c1235),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x29c034['authoredAt']),this['bind']('authoredAt')['to'](_0x29c034),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x29c034,this['_localUser']=_0x21699f,this['_config']=_0x30739a,_0x30739a['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:_0x341432}=this['_config'];this['commentsListView']=new _0x341432(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',_0x5c467c=>_0x5c467c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2174b9,_0x2f9c5e)=>_0x2174b9||!!_0x2f9c5e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x235adb}=this['_config'],_0x44de54=new _0x235adb(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5aa5f8=_0x44de54['commentInputView'];return _0x44de54['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5aa5f8,'value',(_0x4a8788,_0x222af4,_0xf79053)=>!!_0xf79053||_0x4a8788&&!_0x222af4),_0x5aa5f8['on']('submit',(_0x2f0aa7,_0x19ceeb)=>{this['fire']('addComment',_0x19ceeb),_0x5aa5f8['editor']['setData']('');}),_0x5aa5f8['on']('cancel',()=>this['focus']()),_0x5aa5f8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x44de54;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x595d2b,_0x14a0b1,_0x426612,_0x14c8f6){super(_0x595d2b,_0x14a0b1,_0x426612,_0x14c8f6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x201aec=>_0x201aec&&_0x201aec[0x0]?_0x201aec[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x11b02f,_0x1c9b03)=>{let _0x255058='';for(const _0x4f2e16 of _0x11b02f)_0x255058+='<p>'+ds(_0x4f2e16['content'],_0x4f2e16['color'])+'</p>';return _0x1c9b03?_0x255058:_0x73be68(_0x255058,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x595d2b,'Accept\x20suggestion'),_0x4faa3f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x595d2b,'Discard\x20suggestion'),_0x4faa3f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1e5023(_0x595d2b,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xafc525=this['bindTemplate'],_0xb77ce2=[{'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':_0xafc525['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xafc525['to']('authoredAt',_0x4a5fae=>this['_config']['formatDateTime'](_0x4a5fae))}]}]},{'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']&&_0xb77ce2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x132627={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0xafc525['if']('isActive','ck-suggestion-wrapper--active'),_0xafc525['to']('type',_0x4dfeb5=>'ck-suggestion-'+_0x4dfeb5),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':_0xb77ce2}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x132627['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)),_0x132627;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xc5629,_0x49b922,_0xef4ad)=>{this['_descriptionElement']['innerHTML']=_0xef4ad;});}['_createButton'](_0x3b6190,_0x395e31,_0x2a08cb,_0x393b2c,_0x23cab7){const _0x1a8c34=new _0x408b20(this['locale']);return _0x1a8c34['set']({'label':_0x3b6190,'icon':_0x395e31,'tooltip':!0x0,'tooltipPosition':_0x23cab7}),_0x1a8c34['extendTemplate']({'attributes':{'class':_0x2a08cb}}),_0x1a8c34['on']('execute',()=>{this['fire'](_0x393b2c,this['_model']['id']);}),_0x1a8c34;}['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(_0x267bfc,_0x245047){let _0x353e6c='';return _0x353e6c+=_0x267bfc['split']('*')['map']((_0xd111a8,_0xe9d909)=>_0xe9d909%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xd111a8)+'</span>':us(_0xd111a8))['join'](''),_0x245047&&(_0x353e6c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x245047['value']+'\x22\x20title=\x22'+_0x245047['title']+'\x22></span>'),_0x353e6c;}function us(_0x2d80b0){const _0x268a60=document['createElement']('span');return _0x268a60['innerText']=_0x2d80b0,_0x268a60['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 _0x25de16{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x181da2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x10f9b4){super(_0x10f9b4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x445131=this['editor']['config'];_0x445131['define']('trackChanges.SuggestionThreadView',ne),_0x445131['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x445131['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x370919,_0x11a1a9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2ba9f4,_0x502c5c]of this['_handleControllerBuffer']){const _0x2c83df=this['_suggestionToController']['has'](_0x2ba9f4);_0x2c83df||_0x502c5c?_0x2c83df&&_0x502c5c&&this['_destroyController'](_0x2ba9f4):this['_initializeController'](_0x2ba9f4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x370919,_0x11a1a9);}['init'](){const _0x2ccb38=this['editor'],_0x154d8c=_0x2ccb38['plugins']['get']('TrackChangesEditing'),_0x152d60=_0x2ccb38['plugins']['get']('Annotations'),_0x4e546e=_0x2ccb38['plugins']['get']('EditorAnnotations'),_0x27c1a6=_0x2ccb38['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4e546e['addSourceCollector'](()=>{const _0x16e0df=[];for(const [_0x32c6e5,_0x6cff38]of Array['from'](this['_suggestionToController'])){const _0x969ea8=_0x32c6e5['getAllAdjacentSuggestions'](),_0x5a8753=[];for(const _0x5f2465 of _0x969ea8){if(!_0x5f2465['isInContent'])continue;if(_0x5f2465['isMultiRange']){_0x5a8753['push'](..._0x5f2465['getRanges']());continue;}const _0x5d1507=_0x5f2465['getFirstRange']();if(_0x5a8753['length']>0x0){const _0x2b1c15=_0x5a8753[0x0]['getJoined'](_0x5d1507);if(_0x2b1c15){_0x5a8753[0x0]=_0x2b1c15;continue;}}_0x5a8753['push'](_0x5d1507);}_0x16e0df['push']([_0x6cff38['view'],_0x5a8753]);}return _0x16e0df;}),this['listenTo'](_0x154d8c,'suggestionLoaded',(_0x206ddf,_0x3001f6)=>{this['listenTo'](_0x3001f6,'change:previous',(_0x27f15c,_0xae0b5c,_0x2914fa,_0x4e0a0b)=>{_0x3001f6['isInContent']&&(null==_0x2914fa?(this['_updateController'](_0x4e0a0b['head']),this['_handleSuggestionControllerDelayed'](_0x3001f6,!0x1)):(this['_updateController'](_0x2914fa['head']),null==_0x4e0a0b&&this['_handleSuggestionControllerDelayed'](_0x3001f6,!0x0)));}),null!==_0x3001f6['previous']?this['_updateController'](_0x3001f6['head']):this['_handleSuggestionControllerDelayed'](_0x3001f6,!0x1);}),this['listenTo'](_0x154d8c,'suggestionUnloaded',(_0x1d45f1,_0x139523,_0x19cd58)=>{this['stopListening'](_0x139523,'change:previous'),this['_handleControllerBuffer']['delete'](_0x139523),this['_suggestionToController']['has'](_0x139523)&&this['_destroyController'](_0x139523),_0x19cd58&&this['_updateController'](_0x19cd58['head']);}),this['listenTo'](_0x154d8c,'suggestionChanged',(_0x56265c,_0x5be161)=>{this['_updateController'](_0x5be161);}),this['listenTo'](_0x152d60,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x27c1a6,'addComment',(_0x484a0b,{threadId:_0x3adfad,isFromAdapter:_0x164ed4})=>{if(_0x164ed4||!_0x154d8c['hasSuggestion'](_0x3adfad))return;const _0x8cd4ec=_0x154d8c['getSuggestion'](_0x3adfad);this['_suggestionToController']['get'](_0x8cd4ec)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1bfde9=this['editor']['plugins']['get']('Annotations'),_0x3e628f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30352d=Array['from'](_0x1bfde9['activeAnnotations'],_0x3f40a5=>_0x3f40a5['innerView'])['filter'](_0x2d7a62=>this['_viewToController']['has'](_0x2d7a62)),_0x21fc17=[];for(const _0x7a828a of _0x30352d){const _0x112f52=this['_viewToController']['get'](_0x7a828a)['model']['getAllAdjacentSuggestions']();_0x21fc17['push'](..._0x112f52['reduce']((_0x425994,_0x15de82)=>[..._0x425994,..._0x15de82['getMarkerNames']()],[]));}_0x3e628f['activeMarkers']=_0x21fc17;}['_addUIComponentsToFactory'](){const _0x1e1513=this['editor'],_0x283937=_0x1e1513['locale'],_0x13630a=o(_0x283937,'Track\x20changes'),_0xca25b4=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x13630a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x283937,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x283937,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x283937,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x283937,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5c444e of _0xca25b4)if(ae(_0x5c444e)){const _0x51eefc=_0x1e1513['commands']['get'](_0x5c444e['model']['commandName']);_0x5c444e['model']['bind']('isOn','isEnabled')['to'](_0x51eefc,'value','isEnabled');}_0x1e1513['ui']['componentFactory']['add']('trackChanges',_0x4db4fd=>this['_createToolbarButton'](_0x4db4fd,_0xca25b4,_0x13630a)),_0x1e1513['ui']['componentFactory']['add']('menuBar:trackChanges',_0x538a7c=>this['_createMenuBarMenu'](_0x538a7c,_0xca25b4,_0x13630a));}['_createToolbarButton'](_0x99604a,_0x46a7c3,_0x500f55){const _0xe18c26=zt(_0x99604a,Zt),_0x3b2a93=this['editor']['commands']['get']('trackChanges');_0xe18c26['buttonView']['set']({'tooltip':_0x500f55,'label':_0x500f55,'icon':ie}),_0xe18c26['buttonView']['bind']('isOn')['to'](_0x3b2a93,'value'),_0xe18c26['buttonView']['on']('execute',()=>{_0x3b2a93['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0xe18c26,_0x46a7c3,{'role':'menu'});const _0x5c3a31=[];for(const _0x2fb7d7 of _0x46a7c3)ae(_0x2fb7d7)&&_0x5c3a31['push'](this['editor']['commands']['get'](_0x2fb7d7['model']['commandName']));const _0x2762ea=_0xe18c26['buttonView'];return _0x2762ea['actionView']['unbind']('isEnabled'),_0x2762ea['arrowView']['unbind']('isEnabled'),_0x2762ea['actionView']['bind']('isEnabled')['to'](_0x3b2a93,'isEnabled'),_0x2762ea['arrowView']['bind']('isEnabled')['toMany'](_0x5c3a31,'isEnabled',(..._0x2fcb57)=>_0x2fcb57['some'](_0x4ccd21=>_0x4ccd21)),_0xe18c26['on']('execute',_0x214287=>{this['editor']['execute'](_0x214287['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xe18c26;}['_createMenuBarMenu'](_0x3bc58d,_0x33c1d0,_0x41bae7){const _0x529d1a=new Kt(_0x3bc58d),_0x17a930=this['editor']['commands']['get']('trackChanges');_0x529d1a['buttonView']['set']({'label':_0x41bae7,'icon':ie});const _0x170966=new Qt(_0x3bc58d);for(const _0x1f2e39 of _0x33c1d0){if('separator'==_0x1f2e39['type']){_0x170966['items']['add'](new Jt(_0x3bc58d));continue;}const _0x37285e=new Xt(_0x3bc58d,_0x529d1a),_0x10e6d0=new Yt(_0x3bc58d),_0xf00b7f=_0x1f2e39['model'];_0x10e6d0['bind'](...Object['keys'](_0xf00b7f))['to'](_0xf00b7f),_0x10e6d0['delegate']('execute')['to'](_0x529d1a),_0x10e6d0['on']('execute',()=>{this['editor']['execute'](_0xf00b7f['commandName']),this['editor']['editing']['view']['focus']();}),_0x37285e['children']['add'](_0x10e6d0),_0x170966['items']['add'](_0x37285e);}return _0x529d1a['bind']('isEnabled')['to'](_0x17a930,'isEnabled'),_0x529d1a['panelView']['children']['add'](_0x170966),_0x529d1a;}['_initializeController'](_0x1d047d){const _0x2c4836=this['editor'],_0x2bc109=_0x2c4836['config'],_0x1eeb7c=_0x2c4836['plugins']['get']('Annotations'),_0xd39e88=_0x2c4836['plugins']['get']('CommentsRepository'),_0x45a7ed=_0x2c4836['plugins']['get']('EditorAnnotations'),_0x4589a1=_0x2c4836['plugins']['get'](_0x181da2)['me'],_0x1f32e6=_0x2bc109['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1884a6,CommentThreadInputView:_0x42d073}=_0x2c4836['plugins']['get']('CommentsUI');let _0x471298,_0x4ad958;this['_annotationViews']['has'](_0x1d047d['id'])?(_0x4ad958=this['_annotationViews']['get'](_0x1d047d['id']),_0x471298=_0x4ad958['mainView']):(_0x471298=new _0x1f32e6(_0x2c4836['locale'],_0x1d047d,_0x4589a1,{'disableComments':this['_disableComments'],'editorConfig':_0x2bc109['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2bc109['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2bc109['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2bc109['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x123b0f(_0x2bc109['get']('locale')),'CommentView':_0x2bc109['get']('comments')['CommentView'],'CommentsListView':_0x1884a6,'CommentThreadInputView':_0x42d073}),_0x471298['acceptButton']['on']('execute',()=>{_0x2c4836['editing']['view']['focus']();}),_0x471298['discardButton']['on']('execute',()=>{_0x2c4836['editing']['view']['focus']();}),_0x4ad958=_0x1eeb7c['createAnnotationView'](this['editor']['locale'],_0x471298),_0x4ad958['bind']('isDirty')['to'](_0x471298,'isDirty'),_0x4ad958['bind']('length')['to'](_0x471298),_0x4ad958['bind']('type')['to'](_0x471298,'type',_0x561a0c=>'suggestion-'+_0x561a0c),this['_annotationViews']['set'](_0x1d047d['id'],_0x4ad958));const _0x14432c=_0xd39e88['createCommentThreadController'](_0x1d047d['commentThread'],_0x471298),_0x59c847=new oe(_0x2c4836,_0x1d047d,_0x471298,_0x14432c),_0xa5980=_0x1d047d['getAllAdjacentSuggestions']()['filter'](_0xd8b472=>_0xd8b472['isInContent']);_0x471298['descriptionParts']=_0x2c4836['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xa5980),this['_suggestionToController']['set'](_0x1d047d,_0x59c847),this['_viewToController']['set'](_0x471298,_0x59c847);const _0x5161d0=_0x1eeb7c['createAnnotation']({'view':_0x4ad958,'target':()=>{const _0x212437=[],_0x4782c2=_0x1d047d['getAllAdjacentSuggestions']()['filter'](_0x2bb8d7=>_0x2bb8d7['isInContent']);for(const _0x356787 of _0x4782c2)_0x212437['push'](..._0x356787['getMarkers']());return _0x4fbdb5(_0x2c4836['editing'],_0x212437);},'type':()=>'suggestion-'+_0x59c847['view']['type']});_0xd39e88['_bindAnnotationToEditors'](_0x471298,_0x5161d0),_0x1eeb7c['add'](_0x5161d0),_0x45a7ed['registerAnnotation'](_0x5161d0);}['_destroyController'](_0x35fa4a){const _0x465666=this['editor']['plugins']['get']('CommentsRepository'),_0x23ef05=this['editor']['plugins']['get']('Annotations'),_0x1a559b=this['_suggestionToController']['get'](_0x35fa4a),_0x7f9e16=_0x1a559b['view'],_0x530b3b=_0x23ef05['getByInnerView'](_0x7f9e16);_0x465666['_unbindEditors'](_0x7f9e16),_0x530b3b&&_0x23ef05['remove'](_0x530b3b),this['_suggestionToController']['delete'](_0x35fa4a),this['_viewToController']['delete'](_0x7f9e16),_0x1a559b['destroy']();}['_updateController'](_0x15ec69){if(!_0x15ec69['isInContent']||!this['_suggestionToController']['has'](_0x15ec69))return;const _0x2ac6f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc2c7c=this['_suggestionToController']['get'](_0x15ec69),_0x1bcb57=_0x15ec69['getAllAdjacentSuggestions']();_0xc2c7c['view']['descriptionParts']=_0x2ac6f9['descriptionFactory']['getDescriptions'](_0x1bcb57);}['destroy'](){for(const _0x5f3637 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5f3637);for(const _0x3312ca of this['_annotationViews']['values']())_0x3312ca['mainView']['destroy']();super['destroy']();}}function ae(_0x2364f6){return'model'in _0x2364f6;}class k extends _0x25de16{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x238dec){this['editor']['plugins']['get'](p)['adapter']=_0x238dec;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x50ce88){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x50ce88);}['getSuggestions']({skipNotAttached:_0x147454=!0x1,toJSON:_0x28a2a7=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x147454,'toJSON':_0x28a2a7});}['getSuggestion'](_0x12931c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x12931c);}}const T=['Pagination'];class P extends _0x25de16{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x10322d=this['editor'];if(_0x10322d['config']['define']('trackChangesData.editorCreator',_0x9fa794=>{const _0x1209c2=_0x10322d['model']['document']['getRootNames']()['reduce']((_0x30d187,_0x1ffd9a)=>(_0x30d187[_0x1ffd9a]='',_0x30d187),{});return _0x10322d['constructor']['create'](_0x1209c2,_0x9fa794);}),'function'!=typeof _0x10322d['config']['get']('trackChangesData')['editorCreator'])throw new _0x37dd0f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4343b3){return N(this['editor'],!0x0,_0x4343b3);}['getDataWithDiscardedSuggestions'](_0x4ba647){return N(this['editor'],!0x1,_0x4ba647);}}class D extends _0x25de16{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x52a7d2){super(_0x52a7d2),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(_0x280849){return void 0x0!==_0x280849['getRootsAttributes'];}async function N(_0xea77ba,_0x37e0d4,_0x4216a0){const _0x5b40ec=_0x2c5c59(_0xea77ba,T);_0x5b40ec['plugins']['push'](p,D),_0x5b40ec['rootsAttributes']=v(_0xea77ba)?_0xea77ba['getRootsAttributes']():void 0x0;const _0x55a05a=document['createDocumentFragment'](),_0x43f025=_0xea77ba['config']['get']('trackChangesData')['editorCreator'],_0x56b5fd=await _0x43f025(_0x5b40ec,()=>function(_0x187925){const _0x2506b3=document['createElement']('div');return _0x187925['appendChild'](_0x2506b3),_0x2506b3;}(_0x55a05a));!function(_0x1f4f82,_0x50ad9b){const _0xcbbb6c=_0x1f4f82['model']['document']['getRootNames']()['reduce']((_0x4b27d7,_0x3bdedf)=>(_0x4b27d7[_0x3bdedf]=_0x1f4f82['data']['get']({'rootName':_0x3bdedf}),_0x4b27d7),{}),_0x4897a0=_0x1f4f82['plugins']['get']('Users')['users']['map'](_0x2a4b8b=>({'id':_0x2a4b8b['id'],'name':_0x2a4b8b['name']})),_0x12b0de=_0x1f4f82['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16083e=_0x1f4f82['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a852f=_0x50ad9b['plugins']['get']('Users'),_0x3a18ba=_0x50ad9b['plugins']['get']('TrackChangesEditing'),_0x31b735=_0x50ad9b['plugins']['get']('CommentsRepository');for(const _0x52f2be of _0x4897a0)_0x5a852f['getUser'](_0x52f2be['id'])||_0x5a852f['addUser'](_0x52f2be);_0x5a852f['me']||_0x5a852f['useAnonymousUser']();for(const _0x24d738 of _0x16083e)_0x31b735['addCommentThread'](_0x24d738);for(const _0x3a74c1 of _0x12b0de)_0x3a18ba['addSuggestionData'](_0x3a74c1);_0x50ad9b['data']['set'](_0xcbbb6c);}(_0xea77ba,_0x56b5fd),_0x56b5fd['execute'](_0x37e0d4?'acceptAllSuggestions':'discardAllSuggestions');const _0x256df5=v(_0x56b5fd)?_0x56b5fd['getFullData'](_0x4216a0):_0x56b5fd['data']['get'](_0x4216a0);return await _0x56b5fd['destroy'](),_0x256df5;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|