@ckeditor/ckeditor5-track-changes 48.5.0-alpha.7 → 48.5.1
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/LICENSE.md +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +26 -26
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x4feb49();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x1a4fc9,_0x19b2b8){super(),this['id']=_0x19b2b8['id'],this['type']=_0x19b2b8['type'],this['subType']=_0x19b2b8['subType']||null,this['author']=_0x19b2b8['author'],this['creator']=_0x19b2b8['creator']||_0x19b2b8['author'],this['data']=null,this['_originalSuggestionId']=_0x19b2b8['originalSuggestionId']||null,this['_model']=_0x1a4fc9,this['_onAccept']=_0x19b2b8['onAccept'],this['_onDiscard']=_0x19b2b8['onDiscard'],this['_onAttributesChange']=_0x19b2b8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x19b2b8['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0xb7a968=this;for(;_0xb7a968['previous'];)_0xb7a968=_0xb7a968['previous'];return _0xb7a968;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x5cbe76){this['_markerNames']['add'](_0x5cbe76);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0xacae86=>this['_model']['markers']['get'](_0xacae86))['filter'](_0x2e1c58=>_0x2e1c58);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x54912b=>{for(const _0x5ee96b of this['getMarkers']())_0x54912b['removeMarker'](_0x5ee96b);}),this['_markerNames']['clear']();}['removeMarker'](_0x512015){this['_model']['change'](_0x1c1513=>{_0x1c1513['removeMarker'](_0x512015);}),this['_markerNames']['delete'](_0x512015);}['addRange'](_0x4d7e3f){const _0x3b2f21='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x3b2f21),this['_model']['change'](_0x1fa1da=>{_0x1fa1da['addMarker'](_0x3b2f21,{'range':_0x4d7e3f,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x5ba735){for(const _0x2afde0 of this['getRanges']())if(_0x2afde0['isIntersecting'](_0x5ba735))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x5eeb91=>_0x5eeb91['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x9a9b86,_0x245056)=>[..._0x9a9b86,..._0x245056['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x3f76f5=this['getRanges']();if(0x1!=_0x3f76f5['length'])return null;const _0x3d5d5c=_0x3f76f5[0x0],_0x5c04c2=_0x3d5d5c['start']['nodeAfter'],_0x23b609=_0x3d5d5c['end']['nodeBefore'];return _0x5c04c2 instanceof it?_0x5c04c2!=_0x23b609?null:_0x5c04c2: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 _0x46035d=[];let _0x46439d=this['head'];for(;_0x46439d;)_0x46035d['push'](_0x46439d),_0x46439d=_0x46439d['next'];return _0x46035d;}setAttribute(_0x350878,_0x36b7b8){const _0xb68974=at(this['attributes']);ut(_0xb68974,_0x350878,_0x36b7b8),ct(_0xb68974,this['attributes'])||(this['attributes']=_0xb68974,this['_onAttributesChange'](_0xb68974));}removeAttribute(_0x4289f0){const _0x526c10=at(this['attributes']);dt(_0x526c10,_0x4289f0),ct(_0x526c10,this['attributes'])||(this['attributes']=_0x526c10,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 _0x465e2c()['substr'](0x1,0x5);}};function Mt(_0xc65681,_0x494fa6,_0x5809c3){const _0x2adcc3=_0xc65681['t'],t=_0xc65681['t'];switch(_0x494fa6){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x5809c3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5809c3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5809c3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5809c3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5809c3);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',_0x5809c3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5809c3);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5809c3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5809c3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5809c3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5809c3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5809c3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5809c3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5809c3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5809c3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5809c3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5809c3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5809c3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5809c3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5809c3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5809c3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5809c3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5809c3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5809c3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5809c3);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'},_0x5809c3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5809c3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5809c3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5809c3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5809c3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5809c3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5809c3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5809c3);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x5809c3);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x5809c3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5809c3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5809c3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5809c3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5809c3);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x5809c3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5809c3);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'},_0x5809c3);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x5809c3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5809c3);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'},_0x5809c3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5809c3);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'},_0x5809c3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5809c3);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5809c3);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5809c3);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5809c3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5809c3);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x5809c3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5809c3);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x2adcc3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5809c3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2adcc3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5809c3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5809c3);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x5809c3);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x5809c3);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x5809c3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x494fa6;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x25c13d,_0x368159){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x25c13d,this['_locale']=_0x368159;}getDescriptions(_0x32e864){const _0x57fdd4=[],_0x5e3243=new Set(),_0x3dc872=new Set();for(let _0x393688=0x0;_0x393688<_0x32e864['length'];_0x393688++){const _0x3e554d=_0x32e864[_0x393688];if(!_0x3e554d['isInContent'])continue;const _0x4ff4cb=this['_handleCustomCallbackDescription'](_0x3e554d);if(_0x4ff4cb){if(null!=_0x3e554d['subType']){if(_0x5e3243['has'](_0x3e554d['subType']))continue;_0x5e3243['add'](_0x3e554d['subType']);}_0x57fdd4['push'](_0x4ff4cb);}else{if('attribute'==_0x3e554d['type']){const _0x229220=_0x3e554d['data']['key'];if(_0x3dc872['has'](_0x229220))continue;_0x3dc872['add'](_0x3e554d['data']['key']),'$elementName'==_0x229220?this['_handleRenameSuggestionDescription'](_0x57fdd4,_0x3e554d):this['_handleAttributeSuggestionDescription'](_0x57fdd4,_0x3e554d);continue;}'insertion'!=_0x3e554d['type']&&'deletion'!=_0x3e554d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x57fdd4,_0x3e554d,_0x32e864[_0x393688+0x1]);}}return this['_resolveDescriptionItems'](_0x57fdd4);}registerDescriptionCallback(_0xd424fd){this['_customCallbacks']['push'](_0xd424fd);}registerElementLabel(_0x4305c9,_0x4c0559,_0x2797d7=_0x34be95['normal']){'function'==typeof _0x4305c9?_0xf2501c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4305c9,'label':_0x4c0559,'priority':_0x2797d7}):this['_itemLabels']['set'](_0x4305c9,_0x4c0559);}registerAttributeLabel(_0x24cc61,_0x2dd90a){this['_attributeLabels']['set'](_0x24cc61,_0x2dd90a);}getItemLabel(_0x1d87c6,_0x22da10=0x1){let _0x332dfc;for(const _0x1d0945 of this['_itemLabelsCallbacks'])if(_0x1d0945['matchingCallback'](_0x1d87c6)){_0x332dfc=_0x1d0945['label'];break;}return _0x332dfc||(_0x332dfc=this['_itemLabels']['get'](_0x1d87c6['name'])),_0x332dfc?_0x332dfc(_0x22da10):0x1!==_0x22da10?_0x22da10+'\x20'+_0x1d87c6['name']+'s':''+_0x1d87c6['name'];}_addDescriptionItems(_0x5ae1e3,_0x2046a3){const _0x450d01=_0x2046a3['getFirstRange']()['getWalker'](),_0xff3c14='insertion'==_0x2046a3['type']?'add':'remove';for(const _0x2002c4 of _0x450d01){const _0x57b5b0=_0x2002c4['item'],_0x520069=_0x5ae1e3[_0x5ae1e3['length']-0x1];if(_0x57b5b0['is']('$textProxy'))_0x520069&&_0x520069['type']['indexOf']('Container')>-0x1&&_0x5ae1e3['pop'](),_0x520069&&'text'==_0x520069['type']?_0x520069[_0xff3c14]+=_0x57b5b0['data']:_0x5ae1e3['push']({'type':'text','add':'add'==_0xff3c14?_0x57b5b0['data']:'','remove':'remove'==_0xff3c14?_0x57b5b0['data']:''});else{if(this['_schema']['isObject'](_0x57b5b0)){const _0x48dfaa=_0x57b5b0;if(_0x520069&&_0x520069['type']['indexOf']('Container')>-0x1&&_0x5ae1e3['pop'](),'elementEnd'==_0x2002c4['type'])continue;_0x520069&&_0x520069['type']==_0xff3c14+'Object'&&_0x520069['element']['name']==_0x48dfaa['name']?_0x520069['quantity']++:_0x5ae1e3['push']({'type':_0xff3c14+'Object','element':_0x48dfaa,'quantity':0x1}),_0x450d01['skip'](_0x36920b=>!('elementEnd'==_0x36920b['type']&&_0x36920b['item']==_0x57b5b0));}else{if(this['_schema']['checkChild'](_0x57b5b0,'$text')||_0x57b5b0['is']('element','softBreak')){const _0x18e0f4=_0x57b5b0;if('add'==_0xff3c14&&'elementStart'==_0x2002c4['type']||'remove'==_0xff3c14&&'elementEnd'==_0x2002c4['type'])continue;if(_0x520069&&-0x1==_0x520069['type']['indexOf']('Container')){'text'==_0x520069['type']&&(_0x520069[_0xff3c14]+='\x0a');continue;}let _0x349722;if(_0x349722='add'==_0xff3c14?_0x18e0f4['nextSibling']&&!this['_schema']['isObject'](_0x18e0f4['nextSibling'])?_0x18e0f4['nextSibling']:null:_0x18e0f4['previousSibling']&&!this['_schema']['isObject'](_0x18e0f4['previousSibling'])?_0x18e0f4['previousSibling']:null,_0x18e0f4['isEmpty']||_0x349722&&_0x349722['isEmpty']){const _0x166271=_0x349722&&_0x349722['isEmpty']?_0x349722:_0x18e0f4;_0x520069&&_0x520069['type']==_0xff3c14+'EmptyContainer'&&_0x520069['element']['name']==_0x166271['name']?_0x520069['quantity']++:_0x5ae1e3['push']({'type':_0xff3c14+'EmptyContainer','element':_0x166271,'quantity':0x1});}else _0x5ae1e3['push']({'type':_0xff3c14+'Container','element':_0x18e0f4});}}}}}_resolveDescriptionItems(_0xc47855){const _0x292abb=this['_locale'],_0x4ddcda=[],_0x39acb0=[],_0x1f0813=[];for(const _0x1dc1a5 of _0xc47855)switch(_0x1dc1a5['type']){case'text':if(_0x1dc1a5['add']=_0x1dc1a5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1dc1a5['remove']=_0x1dc1a5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1dc1a5['add']&&''!=_0x1dc1a5['remove']){_0x4ddcda['push']({'type':'replace','content':Mt(_0x292abb,'REPLACE_TEXT',['\x22'+_0x1dc1a5['remove']+'\x22','\x22'+_0x1dc1a5['add']+'\x22'])});continue;}if(null!=_0x1dc1a5['add']['match'](/^ +$/)){_0x4ddcda['push']({'type':'insertion','content':Mt(_0x292abb,'*Insert:*\x20%0',Mt(_0x292abb,'ELEMENT_SPACE',_0x1dc1a5['add']['length']))});continue;}if(null!=_0x1dc1a5['remove']['match'](/^ +$/)){_0x4ddcda['push']({'type':'deletion','content':Mt(_0x292abb,'*Remove:*\x20%0',Mt(_0x292abb,'ELEMENT_SPACE',_0x1dc1a5['remove']['length']))});continue;}if(''!=_0x1dc1a5['add']){_0x4ddcda['push']({'type':'insertion','content':Mt(_0x292abb,'*Insert:*\x20%0','\x22'+_0x1dc1a5['add']+'\x22')});continue;}_0x4ddcda['push']({'type':'deletion','content':Mt(_0x292abb,'*Remove:*\x20%0','\x22'+_0x1dc1a5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ddcda['push']({'type':'insertion','content':Mt(_0x292abb,'*Insert:*\x20%0',this['getItemLabel'](_0x1dc1a5['element'],_0x1dc1a5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ddcda['push']({'type':'deletion','content':Mt(_0x292abb,'*Remove:*\x20%0',this['getItemLabel'](_0x1dc1a5['element'],_0x1dc1a5['quantity']))});continue;case'addContainer':_0x4ddcda['push']({'type':'insertion','content':Mt(_0x292abb,'*Split:*\x20%0',this['getItemLabel'](_0x1dc1a5['element'],_0x1dc1a5['quantity']))});continue;case'removeContainer':_0x4ddcda['push']({'type':'deletion','content':Mt(_0x292abb,'*Merge:*\x20%0',this['getItemLabel'](_0x1dc1a5['element'],_0x1dc1a5['quantity']))});continue;case'addFormat':_0x39acb0['push'](_0x1dc1a5['key']);continue;case'removeFormat':_0x1f0813['push'](_0x1dc1a5['key']);continue;default:_0x4ddcda['push'](_0x1dc1a5);}if(_0x39acb0['length']){const _0x25d0ed=_0x39acb0['map'](_0x34caa5=>this['_attributeLabels']['has'](_0x34caa5)?this['_attributeLabels']['get'](_0x34caa5):_0x34caa5)['join'](',\x20');_0x4ddcda['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x25d0ed)});}if(_0x1f0813['length']){const _0x10f6c2=_0x1f0813['map'](_0x1224e5=>this['_attributeLabels']['has'](_0x1224e5)?this['_attributeLabels']['get'](_0x1224e5):_0x1224e5)['join'](',\x20');_0x4ddcda['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x10f6c2)});}return _0x4ddcda;}_handleCustomCallbackDescription(_0x31e2c5){for(const _0x36d16e of this['_customCallbacks']){const _0x40b255=_0x36d16e(_0x31e2c5);if(_0x40b255&&'type'in _0x40b255)return _0x40b255;}}_handleAttributeSuggestionDescription(_0x4c5922,_0x4c4ea2){const _0x24743d=_0x4c4ea2['data'],_0x3f07b3=void 0x0===_0x24743d['newValue']?'removeFormat':'addFormat';_0x4c5922['push']({'type':_0x3f07b3,'key':_0x24743d['key']});}_handleRenameSuggestionDescription(_0x4fa366,_0x6d926e){_0x4fa366['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x6d926e['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x16157b,_0x136eec,_0x3e6ca6){if(this['_addDescriptionItems'](_0x16157b,_0x136eec),_0x3e6ca6&&_0x3e6ca6['getFirstRange']()&&!_0x136eec['getFirstRange']()['end']['isEqual'](_0x3e6ca6['getFirstRange']()['start'])){const _0x90f3ab=_0x16157b[_0x16157b['length']-0x1],_0x2703bf='insertion'==_0x136eec['type']?'add':'remove';_0x90f3ab&&'text'==_0x90f3ab['type']&&(_0x90f3ab[_0x2703bf]+='\x0a');}}},wt=class extends _0x5667d7{afterInit(){const _0x15025c=this['editor'],_0x48d55e=_0x15025c['plugins']['get']('TrackChangesEditing');_0x15025c['commands']['get']('showAIAssistant')&&_0x48d55e['enableCommand']('showAIAssistant');}},Ft=class extends _0x5667d7{afterInit(){const _0x1ac772=this['editor'],_0x487766=_0x1ac772['plugins']['get']('TrackChangesEditing');_0x1ac772['commands']['get']('toggleAi')&&_0x487766['enableCommand']('toggleAi');}},Bt=class extends _0x5667d7{afterInit(){const _0x37ff89=this['editor'],_0x3919b3=_0x37ff89['plugins']['get']('TrackChangesEditing');_0x37ff89['commands']['get']('aiQuickAction')&&_0x3919b3['enableCommand']('aiQuickAction');}},vt=class extends _0x5667d7{afterInit(){const _0x2eac41=this['editor'],_0x5fbf59=_0x2eac41['locale'];if(!_0x2eac41['plugins']['has']('AlignmentEditing'))return;const _0x4ca8ba=_0x2eac41['plugins']['get']('TrackChangesEditing');_0x4ca8ba['enableDefaultAttributesIntegration']('alignment'),_0x4ca8ba['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x5fbf59,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2dcf92=this['editor'],_0x484e21=_0x2dcf92['locale'];_0x2dcf92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d7326=>{if('formatBlock'!=_0x2d7326['type'])return;const {data:_0x320928}=_0x2d7326;if(_0x320928&&'alignment'==_0x320928['commandName']){const _0xf9c6f9=_0x320928['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x484e21,'*Format:*\x20%0',function(_0x171752){switch(_0x171752){case'left':return Mt(_0x484e21,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x484e21,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x484e21,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x484e21,'FORMAT_JUSTIFY_TEXT');}}(_0xf9c6f9))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x5667d7{afterInit(){const _0x421ad2=this['editor'],_0x29b291=_0x421ad2['plugins']['get']('TrackChangesEditing'),_0x30f61d=_0x421ad2['locale'];for(const _0x12f499 of Dt){if(!_0x421ad2['plugins']['has'](_0x12f499))continue;const _0x2f5b8d=_0x12f499['slice'](0x0,-0x7)['toLowerCase'](),_0x7685b4='FORMAT_'+_0x2f5b8d['toUpperCase']();_0x29b291['enableDefaultAttributesIntegration'](_0x2f5b8d),_0x29b291['descriptionFactory']['registerAttributeLabel'](_0x2f5b8d,Mt(_0x30f61d,_0x7685b4));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x55b761=this['editor'],_0x28341a=_0x55b761['locale'],_0x46dfae=_0x55b761['plugins']['get']('TrackChangesEditing');function _0x15d029(_0x442bd4,_0x382f75){_0x46dfae['descriptionFactory']['registerDescriptionCallback'](_0x4874df=>{if('formatInline'!=_0x4874df['type'])return;const {data:_0x12d24e}=_0x4874df;return _0x12d24e&&_0x12d24e['commandName']===_0x442bd4?_0x12d24e['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x28341a,'*Format:*\x20%0',_0x382f75)}:{'type':'format','content':Mt(_0x28341a,'*Remove\x20format:*\x20%0',_0x382f75)}:void 0x0;});}_0x15d029('bold',Mt(_0x28341a,'FORMAT_BOLD')),_0x15d029('italic',Mt(_0x28341a,'FORMAT_ITALIC')),_0x15d029('underline',Mt(_0x28341a,'FORMAT_UNDERLINE')),_0x15d029('code',Mt(_0x28341a,'FORMAT_CODE')),_0x15d029('strikethrough',Mt(_0x28341a,'FORMAT_STRIKETHROUGH')),_0x15d029('subscript',Mt(_0x28341a,'FORMAT_SUBSCRIPT')),_0x15d029('superscript',Mt(_0x28341a,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x5667d7{afterInit(){const _0x375dfc=this['editor'],_0x277464=_0x375dfc['locale'];if(!_0x375dfc['plugins']['has']('BlockQuoteEditing'))return;const _0x9c09ee=_0x375dfc['plugins']['get']('TrackChangesEditing'),_0x3bd1b2=this['editor']['commands']['get']('blockQuote');_0x9c09ee['enableCommand']('blockQuote',(_0x45a2c9,_0x36c27d={})=>{const _0x5db996=this['editor']['model']['document']['selection'],_0x56ac4f=_0x36c27d&&void 0x0!==_0x36c27d['forceValue']?_0x36c27d['forceValue']:!_0x3bd1b2['value'];let _0xb2303a=[];if(_0x56ac4f){const _0x491ad6=Array['from'](_0x5db996['getSelectedBlocks']())['filter'](_0x1d8735=>xt(_0x1d8735)||function(_0x518b45,_0x1205e4){const _0x17a1ea=_0x1205e4['createContext'](_0x518b45['parent']);return!!_0x1205e4['checkChild'](_0x17a1ea,'blockQuote')&&!!_0x1205e4['checkChild'](_0x17a1ea['push']('blockQuote'),_0x518b45);}(_0x1d8735,this['editor']['model']['schema']));_0xb2303a=bt(_0x491ad6,_0x375dfc['model']);}else{const _0x16b819=Array['from'](_0x5db996['getSelectedBlocks']())['filter'](_0x38f58a=>xt(_0x38f58a));_0xb2303a=bt(_0x16b819,_0x375dfc['model']);}_0x375dfc['model']['change'](()=>{for(const _0x4c01be of _0xb2303a)_0x9c09ee['markBlockFormat'](_0x4c01be,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x56ac4f}]});});}),_0x9c09ee['descriptionFactory']['registerDescriptionCallback'](_0x251558=>{const {data:_0x38cbd1}=_0x251558;if(_0x38cbd1&&'blockQuote'==_0x38cbd1['commandName']){const _0x49b06b=Mt(_0x277464,'ELEMENT_BLOCK_QUOTE');return _0x38cbd1['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x277464,'*Set\x20format:*\x20%0',_0x49b06b)}:{'type':'format','content':Mt(_0x277464,'*Remove\x20format:*\x20%0',_0x49b06b)};}});}};function xt(_0x47c33a){return'blockQuote'==_0x47c33a['parent']['name'];}var Gt=class extends _0x5667d7{afterInit(){const _0x63ae46=this['editor'],_0x5e5ff9=_0x63ae46['locale'],_0x25bd76=_0x63ae46['plugins']['get']('TrackChangesEditing');_0x63ae46['plugins']['has']('BookmarkEditing')&&(_0x25bd76['enableCommand']('insertBookmark'),_0x25bd76['enableDefaultAttributesIntegration']('updateBookmark'),_0x25bd76['descriptionFactory']['registerDescriptionCallback'](_0x2f299e=>{if('insertion'!=_0x2f299e['type']&&'deletion'!=_0x2f299e['type']&&'attribute'!=_0x2f299e['type'])return;const _0x2b9559=_0x2f299e['getContainedElement']();if(null==_0x2b9559)return;if(!_0x2b9559['is']('element','bookmark'))return;const _0x54aee0=_0x2b9559['getAttribute']('bookmarkId');if('insertion'==_0x2f299e['type'])return{'type':'insertion','content':Mt(_0x5e5ff9,'*Insert:*\x20%0','\x22'+_0x54aee0+'\x22\x20'+Mt(_0x5e5ff9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2f299e['type'])return{'type':'deletion','content':Mt(_0x5e5ff9,'*Remove:*\x20%0','\x22'+_0x54aee0+'\x22\x20'+Mt(_0x5e5ff9,'ELEMENT_BOOKMARK'))};const {data:_0x2285ef}=_0x2f299e;return _0x2285ef&&'bookmarkId'==_0x2285ef['key']?{'type':'format','content':Mt(_0x5e5ff9,'*Set\x20bookmark:*\x20%0','\x22'+_0x2285ef['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x5667d7{afterInit(){const _0x390ed3=this['editor'];_0x390ed3['plugins']['has']('CaseChange')&&(_0x390ed3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x390ed3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x390ed3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x5667d7{afterInit(){const _0x5dfc1c=this['editor'];_0x5dfc1c['commands']['get']('ckbox')&&_0x5dfc1c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x5667d7{static get requires(){return[ht,gt];}constructor(_0x3f8f90){super(_0x3f8f90),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x2f199e=this['editor'],_0x3cc237=_0x2f199e['plugins']['get']('ClipboardMarkersUtils'),_0x481e29=_0x2f199e['plugins']['get'](gt);_0x3cc237['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x481e29['on']('outputTransformation',(_0x22445f,_0x5a9d0e)=>{const _0x45b632=this['_getSuggestionEntries'](_0x5a9d0e);for(const [_0x44c704,_0x19b582]of _0x5a9d0e['content']['markers']){const _0x46cbcc=rt['_fromRangeInDocumentFragment'](_0x19b582,_0x2f199e['model']);function _0x41c452(){_0x46cbcc['detach'](),_0x5a9d0e['content']['markers']['delete'](_0x44c704);}_0x46cbcc['on']('change:drop',_0x41c452),(_0x44c704['startsWith']('suggestion:')||_0x44c704['startsWith']('comment:'))&&_0x46cbcc['on']('change:range',()=>{_0x46cbcc['isCollapsed']&&_0x41c452();}),_0x5a9d0e['content']['markers']['set'](_0x44c704,_0x46cbcc);}const _0x4db6bd=_0x45b632['filter'](_0x19358d=>'deletion'===_0x19358d['meta']['type'])['map'](_0x126333=>_0x126333['modelRange']);if(this['_shouldSkipDeletions'](_0x4db6bd,_0x5a9d0e['content']))return[..._0x45b632]['forEach'](_0x2cc926=>{_0x5a9d0e['content']['markers']['get'](_0x2cc926['markerName'])['detach'](),_0x5a9d0e['content']['markers']['delete'](_0x2cc926['markerName']);}),void this['_restoreRegularRanges'](_0x5a9d0e['content']['markers']);[..._0x45b632]['forEach'](_0x2b0117=>{const _0x276e1e=_0x2f199e['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x2b0117['meta']['type'],_0x2b0117['meta']['subType'],'accept'),{markerName:_0x31d892,meta:_0xf0f21}=_0x2b0117;if(_0x5a9d0e['content']['markers']['has'](_0x31d892)){switch(_0xf0f21['type']){case'deletion':if('tableRow'===_0xf0f21['subType']||'tableColumn'===_0xf0f21['subType']){if(!_0x2f199e['plugins']['has']('TableUtils'))break;const _0x61924=_0x2f199e['plugins']['get']('TableUtils'),_0x363ce7=_0x61924['getSelectionAffectedTableCells'](_0x2f199e['model']['createSelection'](_0x5a9d0e['content']['markers']['get'](_0x31d892))),_0x1134ae=_0x363ce7[0x0]['findAncestor']('table');if('tableRow'===_0xf0f21['subType']){const {first:_0x4c12b9,last:_0x576485}=_0x61924['getRowIndexes'](_0x363ce7);_0x61924['removeRows'](_0x1134ae,{'at':_0x4c12b9,'rows':_0x576485-_0x4c12b9+0x1});}else{const {first:_0x1f229d,last:_0x7c013e}=_0x61924['getColumnIndexes'](_0x363ce7);_0x61924['removeColumns'](_0x1134ae,{'at':_0x1f229d,'columns':_0x7c013e-_0x1f229d+0x1});}break;}_0x276e1e([_0x5a9d0e['content']['markers']['get'](_0x31d892)]);}_0x5a9d0e['content']['markers']['has'](_0x31d892)&&(_0x5a9d0e['content']['markers']['get'](_0x31d892)['detach'](),_0x5a9d0e['content']['markers']['delete'](_0x31d892));}}),this['_restoreRegularRanges'](_0x5a9d0e['content']['markers']);});}_getSuggestionEntries(_0x403c7a){const _0x8e22c3=_0x3075cb=>'dragstart'===_0x403c7a['method']?_0x3075cb['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x3075cb;return Array['from'](_0x403c7a['content']['markers'])['map'](([_0x3e21fb,_0x22833a])=>({'markerName':_0x3e21fb,'modelRange':_0x22833a,'meta':tt(_0x8e22c3(_0x3e21fb))}))['filter'](({meta:_0x1aaa6b})=>'suggestion'===_0x1aaa6b['group']);}_shouldSkipDeletions(_0x579d34,_0x79ad0a){if(!_0x579d34['length'])return!0x1;let _0x11ee3d=[this['editor']['model']['createRangeIn'](_0x79ad0a)];for(const _0xe2f56c of _0x579d34)_0x11ee3d=_0x11ee3d['flatMap'](_0x5f130e=>_0x5f130e['getDifference'](_0xe2f56c));return!_0x11ee3d['some'](_0x2fb905=>this['editor']['model']['hasContent'](_0x2fb905,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x421903){[..._0x421903['keys']()]['forEach'](_0x4c04ad=>{const _0x572180=_0x421903['get'](_0x4c04ad);_0x572180['detach'](),_0x421903['set'](_0x4c04ad,_0x572180['toRange']());});}},Vt=class extends _0x5667d7{afterInit(){const _0x414b63=this['editor'];if(!_0x414b63['plugins']['has']('CodeBlock'))return;const _0x4c1ea3=_0x414b63['plugins']['get']('TrackChangesEditing'),_0x2f59fd=_0x414b63['locale'],_0x4ab7a7=_0x414b63['config']['get']('codeBlock')['languages'],_0x427566=_0x414b63['commands']['get']('codeBlock');_0x4c1ea3['enableCommand']('indentCodeBlock'),_0x4c1ea3['enableCommand']('outdentCodeBlock'),_0x4c1ea3['enableCommand']('codeBlock',(_0x2d37cf,_0x48b17b={})=>{const _0xabfd7d=_0x414b63['model'],_0x295454=_0x414b63['model']['document']['selection'],_0x4cf41b=_0x48b17b&&void 0x0!==_0x48b17b['forceValue']?_0x48b17b['forceValue']:!_0x427566['value'];let _0x2ec578;_0x48b17b['language']||(_0x48b17b['language']=_0x4ab7a7[0x0]['language']),_0x2ec578=_0x4cf41b?Array['from'](_0x295454['getSelectedBlocks']())['filter'](_0x39db6b=>{return jt(_0x39db6b)||(_0x436d4d=_0x39db6b,_0xd3c4ca=_0xabfd7d['schema'],!_0x436d4d['is']('rootElement')&&!_0xd3c4ca['isLimit'](_0x436d4d)&&_0xd3c4ca['checkChild'](_0x436d4d['parent'],'codeBlock'));var _0x436d4d,_0xd3c4ca;}):Array['from'](_0x295454['getSelectedBlocks']())['filter'](_0x3c4c34=>jt(_0x3c4c34));const _0x26b43a=bt(_0x2ec578,_0xabfd7d);_0xabfd7d['change'](()=>{for(const _0x4aedf3 of _0x26b43a)_0x4c1ea3['markBlockFormat'](_0x4aedf3,{'commandName':'codeBlock','commandParams':[{..._0x48b17b,'forceValue':_0x4cf41b}],'formatGroupId':'blockName'});});}),(_0x4c1ea3['descriptionFactory']['registerElementLabel']('codeBlock',_0x1e890e=>Mt(_0x2f59fd,'ELEMENT_CODE_BLOCK',_0x1e890e)),_0x4c1ea3['descriptionFactory']['registerDescriptionCallback'](_0x342f41=>{if('formatBlock'!=_0x342f41['type'])return;const _0x259b0d=_0x2f59fd['t'],{data:_0x51a622}=_0x342f41;if(!_0x51a622||'codeBlock'!=_0x51a622['commandName'])return;const _0x169226=_0x51a622['commandParams'][0x0]['language'],_0x54cd69=_0x259b0d(_0x4ab7a7['find'](_0x49b0f4=>_0x49b0f4['language']===_0x169226)['label'])['toLowerCase']();return _0x51a622['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x2f59fd,'*Set\x20format:*\x20%0',Mt(_0x2f59fd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x54cd69+')')}:{'type':'format','content':Mt(_0x2f59fd,'*Remove\x20format:*\x20%0',Mt(_0x2f59fd,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x258df2){return'codeBlock'==_0x258df2['name'];}var zt=class extends _0x5667d7{afterInit(){const _0x468bbe=this['editor'];_0x468bbe['plugins']['has']('CommentsEditing')&&_0x468bbe['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x5667d7{static get requires(){return[ft];}init(){const _0x3b948c=this['editor'],_0x17df57=_0x3b948c['plugins']['get']('TrackChangesEditing');_0x17df57['enableCommand']('delete');const _0x2d9356=_0x3b948c['commands']['get']('deleteForward');_0x17df57['enableCommand']('deleteForward',(_0xb452a7,_0xebdc6b={})=>{const _0xfe09a3=_0x3b948c['model']['createSelection'](_0x3b948c['model']['document']['selection']);_0xfe09a3['isCollapsed']&&_0x3b948c['model']['modifySelection'](_0xfe09a3,{'direction':'forward','unit':_0xebdc6b['unit']});const _0x3cfecd=_0xfe09a3['getFirstRange'](),_0x2fa6f6=rt['fromRange'](_0x3cfecd);let _0x5e0cf7;_0xb452a7(_0xebdc6b),_0x5e0cf7='$graveyard'==_0x2fa6f6['root']['rootName']?_0x3b948c['model']['createRange'](_0x3cfecd['start']):_0x3b948c['model']['createRange'](_0x2fa6f6['start'],_0x2fa6f6['end']),_0x2fa6f6['detach'](),_0x3b948c['model']['enqueueChange'](_0x2d9356['buffer']['batch'],_0x3f3cd5=>{_0x2d9356['buffer']['lock'](),_0x3f3cd5['setSelection'](_0x3f3cd5['createRange'](_0x5e0cf7['end'])),_0x2d9356['buffer']['unlock']();});});}},Xt=class extends _0x5667d7{afterInit(){const _0x5df04a=this['editor'];if(!_0x5df04a['plugins']['has']('ListEditing'))return;const _0x8a7f5b=_0x5df04a['locale'],_0x595794=_0x5df04a['plugins']['get']('TrackChangesEditing'),_0x5d928f=_0x5df04a['plugins']['has']('TodoListEditing'),_0x4c7517=!!_0x5df04a['config']['get']('list.multiBlock');function _0x11f2f1(_0x518f27){return{'type':'format','content':''+Mt(_0x8a7f5b,'*Set\x20format:*\x20%0',_0x518f27)};}function _0x32e7a6(_0x3c3616){return{'type':'format','content':''+Mt(_0x8a7f5b,'*Remove\x20format:*\x20%0',_0x3c3616)};}_0x595794['enableDefaultAttributesIntegration']('numberedList'),_0x595794['enableDefaultAttributesIntegration']('bulletedList'),_0x595794['enableDefaultAttributesIntegration']('customNumberedList'),_0x595794['enableDefaultAttributesIntegration']('customBulletedList'),_0x595794['enableDefaultAttributesIntegration']('indentList'),_0x595794['enableDefaultAttributesIntegration']('outdentList'),_0x595794['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x595794['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4c7517&&(_0x595794['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x595794['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5d928f&&(_0x595794['enableDefaultAttributesIntegration']('todoList'),_0x595794['enableDefaultAttributesIntegration']('checkTodoList'),_0x595794['descriptionFactory']['registerDescriptionCallback'](_0x1a63dd=>{const {data:_0x3cee7a}=_0x1a63dd;if(_0x3cee7a&&'todoListChecked'==_0x3cee7a['key'])return{'type':'format','content':_0x3cee7a['newValue']?Mt(_0x8a7f5b,'*Check\x20item*'):Mt(_0x8a7f5b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x32afd2=>{if(_0x32afd2['batch']['isUndo'])return!0x1;let _0x750827=!0x1;const _0x2dd6bf=_0x595794['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d43a8=>'todoListChecked'===_0x595794['_getAttributeKey'](_0x5d43a8));for(const _0x2a1338 of _0x2dd6bf)'todo'!=_0x2a1338['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x595794['_findSuggestions'](_0x2a1338['getFirstRange'](),'attribute')['find'](_0x4863e2=>'listType'===_0x595794['_getAttributeKey'](_0x4863e2['suggestion']))||(_0x32afd2['removeMarker'](_0x2a1338['getFirstMarker']()),_0x750827=!0x0));return _0x750827;})),_0x595794['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x8a7f5b,'FORMAT_INDENT'));const _0x1896c0={'type':'format','content':''};_0x595794['descriptionFactory']['registerDescriptionCallback'](_0x4663e2=>{const {data:_0x18b210}=_0x4663e2;if(!_0x18b210||'listType'!=_0x18b210['key'])return;let _0x459c75=_0x4663e2['head'];for(;_0x459c75;){if(_0x459c75['data']&&(('listStyle'==_0x459c75['data']['key']||'listMarkerStyle'==_0x459c75['data']['key'])&&(_0x459c75['data']['newValue']&&'default'!=_0x459c75['data']['newValue']||'default'!=_0x459c75['data']['oldValue']&&!_0x18b210['newValue'])||!_0x4c7517&&'$elementName'==_0x459c75['data']['key']))return _0x1896c0;_0x459c75=_0x459c75['next'];}if(null==_0x18b210['newValue'])switch(_0x18b210['oldValue']){case'bulleted':return _0x32e7a6(Mt(_0x8a7f5b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32e7a6(Mt(_0x8a7f5b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32e7a6(Mt(_0x8a7f5b,'ELEMENT_TODO_LIST'));}switch(_0x18b210['newValue']){case'bulleted':return _0x11f2f1(Mt(_0x8a7f5b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x11f2f1(Mt(_0x8a7f5b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x11f2f1(Mt(_0x8a7f5b,'ELEMENT_TODO_LIST'));}}),_0x595794['descriptionFactory']['registerDescriptionCallback'](_0x54dbfb=>{const {data:_0x350bf5}=_0x54dbfb;if(_0x350bf5&&'listIndent'==_0x350bf5['key'])return null==_0x350bf5['newValue']||null==_0x350bf5['oldValue']&&0x0==_0x350bf5['newValue']?_0x1896c0:void 0x0;}),_0x595794['descriptionFactory']['registerDescriptionCallback'](_0xd77890=>{if('attribute'!=_0xd77890['type'])return;const {data:_0xe337b5}=_0xd77890;if(!_0xe337b5||'listItemId'!=_0xe337b5['key'])return;const _0x144fe5=qt(_0xd77890);return'newValue'==_0x144fe5?{'type':'format','content':Mt(_0x8a7f5b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x144fe5?{'type':'format','content':Mt(_0x8a7f5b,'*Split:*\x20list\x20item')}:_0x1896c0;}),_0x5df04a['model']['document']['registerPostFixer'](_0x1f3b17=>this['listItemIdFixer'](_0x1f3b17)),_0x5df04a['model']['document']['registerPostFixer'](_0x3a0f69=>this['noTrackChangesFixer'](_0x3a0f69)),_0x5df04a['model']['document']['on']('change:data',(_0x233c0d,_0x4aa7ce)=>{if(_0x4aa7ce['isUndo']||!_0x4aa7ce['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0xa7239b){if(_0xa7239b['batch']['isUndo']||!_0xa7239b['batch']['isLocal'])return!0x1;let _0x512105=!0x1;const _0x1370bc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35a6f4=>_0x35a6f4['data']&&'listItemId'==_0x35a6f4['data']['key'])['filter'](_0x411558=>_0x411558['data']['newValue']&&_0x411558['data']['oldValue']);for(const _0x577b9c of _0x1370bc)qt(_0x577b9c)||(_0xa7239b['removeMarker'](_0x577b9c['getFirstMarker']()),_0x512105=!0x0);return _0x512105;}['noTrackChangesFixer'](_0x13bed7){if(_0x13bed7['batch']['isUndo']||!_0x13bed7['batch']['isLocal'])return!0x1;const _0x115fba=this['editor']['model']['document']['differ'],_0x2109f4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2109f4['trackChangesCommand']['value'])return!0x1;let _0x11d008=!0x1;const _0x293a54=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x58a321=_0x115fba['getChanges']()['filter'](_0x495e55=>'attribute'==_0x495e55['type'])['filter'](_0x39589d=>_0x293a54['has'](_0x39589d['attributeKey']));if(0x0==_0x58a321['length'])return _0x11d008;const _0x494c6a=new Set(_0x115fba['getMarkersToAdd']()['filter'](_0x200bfb=>{if(!_0x200bfb['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x385e1=tt(_0x200bfb['name'])['subType']['split']('|')[0x0];return _0x293a54['has'](_0x385e1);})['map'](_0x34b4b5=>tt(_0x34b4b5['name'])['id']));for(const _0x3d3895 of _0x58a321){const _0x98696a=_0x2109f4['_findSuggestions'](_0x3d3895['range'],'attribute')['filter'](_0x92009a=>{if(_0x92009a['meta']['isNextTo'])return!0x1;if(_0x494c6a['has'](_0x92009a['suggestion']['id']))return!0x1;const _0x3208c3=_0x2109f4['_getAttributeKey'](_0x92009a['suggestion']);return _0x293a54['has'](_0x3208c3);})['map'](_0x3e08f4=>_0x3e08f4['suggestion']);if(_0x98696a['length']){for(const _0x208e00 of _0x98696a)_0x13bed7['removeMarker'](_0x208e00['getFirstMarker']());_0x11d008=!0x0;}}return _0x11d008;}['assureChains'](){const _0x2f6359=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9460a1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x19e364;const _0x190b42=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x565e2e=>{if(_0x565e2e['data']['oldRange']||!_0x565e2e['data']['newRange'])return null;if(!_0x565e2e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5c494d}=tt(_0x565e2e['name']);if(!_0x2f6359['hasSuggestion'](_0x5c494d))return null;const _0x6eb174=_0x2f6359['getSuggestion'](_0x5c494d);return _0x9460a1['includes'](_0x6eb174['data']['key']);})['map'](_0x3c56a2=>{const {id:_0x56b7d6}=tt(_0x3c56a2['name']),_0x4c338a=_0x2f6359['getSuggestion'](_0x56b7d6);return _0x19e364=_0x4c338a['attributes']['groupId'],_0x4c338a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x190b42['size'])return;const _0x4cb7d1=_0x2f6359['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa4b673=>'attribute'==_0xa4b673['type']&&_0xa4b673['data']&&_0x9460a1['includes'](_0xa4b673['data']['key'])&&_0xa4b673['attributes']['groupId']!=_0x19e364)['map'](_0x422c93=>({'listItem':_0x422c93['getFirstRange']()['start']['nodeAfter'],'groupId':_0x422c93['attributes']['groupId']})),_0x5b82fa=new Set();for(const {groupId:_0xdea218,listItem:_0x3d97c4}of _0x4cb7d1)_0x190b42['has'](_0x3d97c4)&&_0x5b82fa['add'](_0xdea218);for(const _0x3938bd of _0x2f6359['getSuggestions']())_0x5b82fa['has'](_0x3938bd['attributes']['groupId'])&&_0x3938bd['setAttribute']('groupId',_0x19e364);}_supportLegacySuggestions(){const _0x3dfddd=this['editor'],_0x2ac3c5=_0x3dfddd['locale'],_0x4eea11=_0x3dfddd['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4eea11['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3b6c01,_0x5433bb){const _0x20e37d=[];for(let _0x49f097 of _0x3b6c01)_0x49f097['start']['nodeAfter']===_0x49f097['end']['parent']&&(_0x49f097=_0x3dfddd['model']['createRange'](_0x3dfddd['model']['createPositionAt'](_0x49f097['start']['nodeAfter'],0x0))),_0x20e37d['push'](_0x49f097);_0x3dfddd['model']['change'](_0x4f8df8=>{const _0x4c3441=_0x3dfddd['model']['document']['selection'],_0x348165=Array['from'](_0x4c3441['getRanges']())['map'](_0x5ee6f5=>rt['fromRange'](_0x5ee6f5));_0x4f8df8['setSelection'](_0x20e37d),_0x3dfddd['commands']['get'](_0x5433bb['commandName'])['refresh'](),_0x5433bb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3dfddd['execute'](_0x5433bb['commandName'],..._0x5433bb['commandParams']),_0x4f8df8['setSelection'](_0x348165);for(const _0x4aae1c of _0x348165)_0x4aae1c['detach']();});}),_0x4eea11['descriptionFactory']['registerElementLabel'](function(_0x508425){const _0xf507b4=!_0x3dfddd['model']['schema']['isObject'](_0x508425),_0x4d93fb=_0x508425['previousSibling'],_0x1855fa=_0x508425['nextSibling'],_0x46318c=_0x508425['getAttribute']('listItemId'),_0x47236e=!_0x4d93fb||_0x4d93fb['getAttribute']('listItemId')!==_0x46318c,_0x514bb9=!_0x1855fa||_0x1855fa['getAttribute']('listItemId')!==_0x46318c;return _0xf507b4&&Boolean(_0x46318c)&&_0x47236e&&_0x514bb9;},_0x491154=>Mt(_0x2ac3c5,'ELEMENT_LIST_ITEM',_0x491154));}_registerLegacyDescription(){const _0x37354d=this['editor'],_0x5c29c3=_0x37354d['locale'];function _0x198d3c(_0xe5611){const _0x319673=_0x37354d['commands']['get']('bulletedList')['value'],_0x54a713=_0x37354d['commands']['get']('numberedList')['value'];return'numberedList'===_0xe5611?_0x319673:_0x54a713;}_0x37354d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x46fe14){if('formatBlock'!=_0x46fe14['type'])return;const {data:_0x915927}=_0x46fe14;if(!_0x915927)return;let _0x5ec040,_0x4b00f2,_0x40d8ac,_0x586464;switch(_0x915927['commandName']){case'bulletedList':_0x40d8ac=_0x915927['commandParams'][0x0]['forceValue'],_0x586464=_0x198d3c(_0x915927['commandName']),_0x5ec040=_0x40d8ac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x586464&&_0x37354d['config']['get']('list.multiBlock')||(_0x5ec040='*Change\x20to:*\x20%0'),_0x4b00f2={'type':'format','content':Mt(_0x5c29c3,_0x5ec040,Mt(_0x5c29c3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x40d8ac=_0x915927['commandParams'][0x0]['forceValue'],_0x586464=_0x198d3c(_0x915927['commandName']),_0x5ec040=_0x40d8ac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x586464&&_0x37354d['config']['get']('list.multiBlock')||(_0x5ec040='*Change\x20to:*\x20%0'),_0x4b00f2={'type':'format','content':Mt(_0x5c29c3,_0x5ec040,Mt(_0x5c29c3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5ec040='*Indent:*\x20%0',_0x4b00f2={'type':'format','content':Mt(_0x5c29c3,_0x5ec040,Mt(_0x5c29c3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5ec040=function(_0x5589d6){const _0x316f50=_0x5589d6['getFirstRange']();let _0x425a02=_0x316f50['start']['nodeAfter'];for(;_0x425a02&&_0x316f50['containsItem'](_0x425a02);){if(_0x425a02['getAttribute']('listIndent')>0x0)return!0x1;_0x425a02=_0x425a02['nextSibling'];}return!0x0;}(_0x46fe14)?Mt(_0x5c29c3,'*Format:*\x20remove\x20from\x20%0',Mt(_0x5c29c3,function(_0x162ab0){return'ELEMENT_'+_0x162ab0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x46fe14))):Mt(_0x5c29c3,'*Outdent:*\x20%0',Mt(_0x5c29c3,'ELEMENT_LIST_ITEM')),_0x4b00f2={'type':'format','content':_0x5ec040};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x915927['multipleBlocks']&&(_0x5ec040='*Merge:*\x20%0',_0x4b00f2={'type':'deletion','content':Mt(_0x5c29c3,_0x5ec040,Mt(_0x5c29c3,'ELEMENT_LIST_ITEM'))});}return _0x4b00f2;});}};function qt(_0x59d958){let _0x205450=_0x59d958['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x205450;){const _0x53057a=_0x205450['getAttribute']('listItemId');if(!_0x53057a)return!0x1;if(_0x53057a==_0x59d958['data']['newValue'])return'newValue';if(_0x53057a==_0x59d958['data']['oldValue'])return'oldValue';_0x205450=_0x205450['previousSibling'];}return!0x1;}var Yt=class extends _0x5667d7{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x7037d1=this['editor']['config']['get']('list.properties'),_0x45e93e=this['editor']['plugins']['get']('TrackChangesEditing');_0x7037d1['styles']&&_0x45e93e['enableDefaultAttributesIntegration']('listStyle'),_0x7037d1['reversed']&&_0x45e93e['enableDefaultAttributesIntegration']('listReversed'),_0x7037d1['startIndex']&&_0x45e93e['enableDefaultAttributesIntegration']('listStart');const _0x1813ef={'type':'format','content':''};_0x45e93e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x175fdc=this['editor']['locale'];_0x45e93e['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x175fdc,'FORMAT_LIST_REVERSED')),_0x45e93e['descriptionFactory']['registerDescriptionCallback'](_0x5dce30=>{const {data:_0x5b87a7}=_0x5dce30;if(_0x5b87a7&&'listReversed'==_0x5b87a7['key'])return null==_0x5b87a7['newValue']||0x0==_0x5b87a7['newValue']&&null==_0x5b87a7['oldValue']?_0x1813ef:void 0x0;}),_0x45e93e['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x175fdc,'FORMAT_LIST_START')),_0x45e93e['descriptionFactory']['registerDescriptionCallback'](_0x31eee8=>{const {data:_0x332b4c}=_0x31eee8;if(_0x332b4c&&'listStart'==_0x332b4c['key'])return null==_0x332b4c['newValue']||0x1==_0x332b4c['newValue']&&null==_0x332b4c['oldValue']?_0x1813ef:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4af265=>{if(_0x4af265['batch']['isUndo'])return!0x1;let _0x4f9609=!0x1;const _0x41d9c9=_0x45e93e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x297b2e=>{const _0x3653dd=_0x45e93e['_getAttributeKey'](_0x297b2e);return'listStart'==_0x3653dd||'listReversed'==_0x3653dd;});for(const _0x15bfe1 of _0x41d9c9){const _0x485843=_0x15bfe1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x485843&&'customNumbered'!=_0x485843&&(_0x45e93e['_findSuggestions'](_0x15bfe1['getFirstRange'](),'attribute')['find'](_0x165d18=>'listType'==_0x45e93e['_getAttributeKey'](_0x165d18['suggestion']))||(_0x4af265['removeMarker'](_0x15bfe1['getFirstMarker']()),_0x4f9609=!0x0));}return _0x4f9609;}),this['_registerLegacyDescription']();}handleDescriptions(_0x489e1d){const _0x1c4af6=this['editor']['locale'],{data:_0x32d402}=_0x489e1d,_0x46a036={'type':'format','content':''};if(!_0x32d402||'listStyle'!=_0x32d402['key'])return;if(!_0x32d402['oldValue'])return'default'==_0x32d402['newValue']?_0x46a036:{'type':'format','content':''+Mt(_0x1c4af6,'*Set\x20format:*\x20%0',Mt(_0x1c4af6,this['_getTranslationKeyForListStyle'](_0x32d402['newValue'])))};if(!_0x32d402['newValue']){if('default'==_0x32d402['oldValue'])return _0x46a036;let _0x5f12e2=_0x489e1d['head'];for(;_0x5f12e2;){if(_0x5f12e2['data']&&'listType'==_0x5f12e2['data']['key']&&_0x5f12e2['data']['newValue'])return _0x46a036;_0x5f12e2=_0x5f12e2['next'];}return{'type':'format','content':''+Mt(_0x1c4af6,'*Remove\x20format:*\x20%0',Mt(_0x1c4af6,this['_getTranslationKeyForListStyle'](_0x32d402['oldValue'])))};}if('default'!=_0x32d402['newValue'])return{'type':'format','content':''+Mt(_0x1c4af6,'*Set\x20format:*\x20%0',Mt(_0x1c4af6,this['_getTranslationKeyForListStyle'](_0x32d402['newValue'])))};let _0x59dd2a=_0x489e1d['head'];for(;_0x59dd2a;){if(_0x59dd2a['data']&&'listType'==_0x59dd2a['data']['key']&&_0x59dd2a['data']['newValue']&&_0x59dd2a['data']['oldValue'])return _0x46a036;_0x59dd2a=_0x59dd2a['next'];}return{'type':'format','content':Mt(_0x1c4af6,'*Set\x20format:*\x20%0',Mt(_0x1c4af6,'ELEMENT_'+_0x489e1d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x201303=this['editor'],_0x220b8a=_0x201303['locale'];_0x201303['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19e5f5=>{if('formatBlock'!=_0x19e5f5['type'])return;const {data:_0x1e2ad7}=_0x19e5f5;if(!_0x1e2ad7)return;let _0x418b36,_0x1c05a1;switch(_0x1e2ad7['commandName']){case'listStyle':_0x418b36='*Change\x20to:*\x20%0',_0x1c05a1={'type':'format','content':Mt(_0x220b8a,_0x418b36,Mt(_0x220b8a,this['_getTranslationKeyForListStyle'](_0x1e2ad7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x418b36=_0x1e2ad7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c05a1={'type':'format','content':Mt(_0x220b8a,_0x418b36)};break;case'listStart':_0x418b36='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c05a1={'type':'format','content':Mt(_0x220b8a,_0x418b36,_0x1e2ad7['commandParams'][0x0]['startIndex'])};}return _0x1c05a1;});}_getTranslationKeyForListStyle(_0x115927){return'ELEMENT_'+(_0x304d86=_0x115927,Qt['includes'](_0x304d86)?'bulleted':Zt['includes'](_0x304d86)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x115927['toUpperCase']()['replace'](/-/g,'_');var _0x304d86;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x5667d7{afterInit(){const _0x55add3=this['editor'];_0x55add3['commands']['get']('emoji')&&_0x55add3['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x5667d7{static get requires(){return[Et];}init(){const _0xef8cda=this['editor'],_0x24a26e=_0xef8cda['plugins']['get']('TrackChangesEditing'),_0x5c775d=_0xef8cda['commands']['get']('enter');_0x24a26e['enableCommand']('enter',()=>{_0xef8cda['model']['change'](_0x597feb=>{const _0x3509bf=_0xef8cda['model']['document']['selection'],_0x423788=_0x3509bf['getFirstPosition'](),_0x40d041=rt['fromRange'](_0x3509bf['getFirstRange']());if(_0x5c775d['enterBlock'](_0x597feb)){const _0x12a3be=_0xef8cda['model']['createPositionAt'](_0x423788['parent']['nextSibling'],0x0),_0x50efab=_0x597feb['createRange'](_0x423788,_0x12a3be);_0x24a26e['markInsertion'](_0x50efab);}else _0x597feb['setSelection'](_0x597feb['createRange'](_0x40d041['end']));_0x40d041['detach'](),_0x5c775d['fire']('afterExecute',{'writer':_0x597feb});});});}},ee=class extends _0x5667d7{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x541953=this['editor']['plugins']['get']('TrackChangesEditing');_0x541953['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x541953['enableCommand']('findNext'),_0x541953['enableCommand']('findPrevious'),_0x541953['enableCommand']('replace'),_0x541953['enableCommand']('replaceAll');}['handleFindCommand'](_0x260cf9,_0x5a7596,_0x27f9f9={}){const _0x492e76=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x260cf9(_0x3f2cc1=>{let _0x103adf=('string'==typeof _0x5a7596?_0x492e76['findByTextCallback'](_0x5a7596,_0x27f9f9):_0x5a7596)(_0x3f2cc1);Array['isArray'](_0x103adf)&&(_0x103adf={'results':_0x103adf,'searchText':'string'==typeof _0x5a7596?_0x5a7596:''});const _0x56d334=_0x103adf['results']['filter'](_0x3a9e9a=>!0x1===this['_isInDeletionRange'](_0x3a9e9a,_0x3f2cc1['item']));return{..._0x103adf,'results':_0x56d334};},_0x27f9f9);}_isInDeletionRange(_0x16e6a6,_0x3252d6){const _0x1155a0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3252d6,_0x16e6a6['start']),this['editor']['model']['createPositionAt'](_0x3252d6,_0x16e6a6['end']));for(const _0x127155 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1155a0['getIntersection'](_0x127155['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x5667d7{afterInit(){const _0x1b977e=this['editor']['locale'],_0x3aa4ef=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x28094f,commandName:_0x2920e7}of ne)this['editor']['plugins']['has'](_0x28094f)&&_0x3aa4ef['enableDefaultAttributesIntegration'](_0x2920e7);_0x3aa4ef['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x1b977e,'FORMAT_FONT_SIZE')),_0x3aa4ef['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x1b977e,'FORMAT_FONT_FAMILY')),_0x3aa4ef['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x1b977e,'FORMAT_FONT_COLOR')),_0x3aa4ef['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x1b977e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3172ab=this['editor'],_0xd07f20=_0x3172ab['locale'];_0x3172ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5699cc=>{const _0x20eeb1=_0xd07f20['t'];if('formatInline'!=_0x5699cc['type'])return;const {data:_0x74a48a}=_0x5699cc;if(null!=_0x74a48a){if('fontSize'==_0x74a48a['commandName']){const _0x33fa39=_0x74a48a['commandParams'][0x0]['value'];if(_0x33fa39){const _0x319da2=_0x20eeb1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5f57e0=>_0x5f57e0['model']==_0x33fa39)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0xd07f20,'*Set\x20font\x20size:*\x20%0',_0x319da2)};}return{'type':'format','content':Mt(_0xd07f20,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x74a48a['commandName']){const _0x35f0a2=_0x74a48a['commandParams'][0x0]['value'];return _0x35f0a2?{'type':'format','content':Mt(_0xd07f20,'*Set\x20font\x20family:*\x20%0',_0x35f0a2)}:{'type':'format','content':Mt(_0xd07f20,'*Reset\x20font\x20family*')};}if('fontColor'==_0x74a48a['commandName']){const _0x2e5010=_0x74a48a['commandParams'][0x0]['value'];if(_0x2e5010){const _0x15cb54=_0x3e4f66(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5f2f07=>_0x5f2f07['model']==_0x2e5010);let _0x4fda83=_0x2e5010,_0x48726e='';return _0x15cb54&&(_0x4fda83=_0x15cb54['label'],_0x48726e=_0x20eeb1(_0x4fda83)['toLowerCase']()),{'type':'format','content':Mt(_0xd07f20,'*Set\x20font\x20color:*\x20%0',_0x48726e)['trim'](),'color':{'value':_0x2e5010,'title':_0x48726e||_0x4fda83}};}return{'type':'format','content':Mt(_0xd07f20,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x74a48a['commandName']){const _0x4c36fd=_0x74a48a['commandParams'][0x0]['value'];if(_0x4c36fd){const _0x2febba=_0x3e4f66(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x405ca8=>_0x405ca8['model']==_0x4c36fd);let _0xb0c6ba=_0x4c36fd,_0x54e675='';return _0x2febba&&(_0xb0c6ba=_0x2febba['label'],_0x54e675=_0x20eeb1(_0xb0c6ba)['toLowerCase']()),{'type':'format','content':Mt(_0xd07f20,'*Set\x20font\x20background\x20color:*\x20%0',_0x54e675)['trim'](),'color':{'value':_0x4c36fd,'title':_0x54e675||_0xb0c6ba}};}return{'type':'format','content':Mt(_0xd07f20,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x5667d7{afterInit(){const {plugins:_0x307263}=this['editor'];_0x307263['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x307263['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x2291f8,plugins:_0x1cf439,commands:_0xb1122c}=this['editor'],_0x50c70c=_0x1cf439['get']('TrackChangesEditing');_0xb1122c['get']('footnotesStyle')&&_0x50c70c['enableDefaultAttributesIntegration']('footnotesStyle'),_0xb1122c['get']('footnotesStart')&&_0x50c70c['enableDefaultAttributesIntegration']('footnotesStart'),_0x50c70c['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x2291f8,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x50c70c['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x2291f8,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x37b85e=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4fd211,commands:_0x199634}=this['editor'];_0x199634['get']('insertFootnote')&&_0x37b85e['enableCommand']('insertFootnote'),_0x37b85e['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1a008e=>Mt(_0x4fd211,'ELEMENT_FOOTNOTE_REF',_0x1a008e)),_0x37b85e['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1a5344=>Mt(_0x4fd211,'ELEMENT_FOOTNOTE_DEFINITION',_0x1a5344)),_0x37b85e['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3a83e5=>Mt(_0x4fd211,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3a83e5));}},re=class extends _0x5667d7{afterInit(){const _0x1737f5=this['editor'],_0x3074b1=_0x1737f5['plugins']['get']('TrackChangesEditing'),_0x26ea27=_0x1737f5['commands']['get']('copyFormat'),_0x5c3021=_0x1737f5['commands']['get']('pasteFormat');_0x26ea27&&_0x5c3021&&(_0x3074b1['enableDefaultAttributesIntegration']('pasteFormat'),_0x3074b1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x38451a=this['editor'],_0x2b9923=_0x38451a['locale'];_0x38451a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf975f5=>{if('formatBlock'!=_0xf975f5['type']&&'formatInline'!=_0xf975f5['type'])return;const {data:_0x418d88}=_0xf975f5;if(_0x418d88&&'pasteFormat'===_0x418d88['commandName']){const _0x29a78c=[],_0x412127=_0x418d88['commandParams'][0x0];for(const [_0x1be637,_0xe2678b]of Object['entries'](_0x412127))_0x29a78c['push'](oe(_0x38451a,_0x1be637,_0xe2678b));return _0x29a78c['length']?{'type':'format','content':Mt(_0x2b9923,'*Set\x20format\x20to:*\x20%0',_0x29a78c['join'](',\x20'))}:{'type':'format','content':Mt(_0x2b9923,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x561aa7,_0x53b303,_0x30d574){const _0x5e00a5=_0x561aa7['locale']['t'],_0x142f7f=_0x53b303['split'](/(?=[A-Z])/)['join']('\x20'),_0x137b4a=_0x5e00a5(_0x142f7f['charAt'](0x0)['toUpperCase']()+_0x142f7f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x30d574)return _0x137b4a;if('fontColor'===_0x53b303||'fontBackgroundColor'===_0x53b303){const _0x4c93c3=_0x3e4f66(_0x561aa7['config']['get']('fontColor.colors'))['find'](_0x2fd710=>_0x2fd710['model']==_0x30d574);return _0x137b4a+'\x20('+(_0x4c93c3?_0x5e00a5(_0x4c93c3['label'])['toLowerCase']():_0x30d574)+')';}if('fontSize'===_0x53b303&&isNaN(parseFloat(_0x30d574))){const _0x1200a5=_0x561aa7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x561aa7['config']['get']('fontSize.options'))['find'](_0x145b16=>_0x145b16['model']==_0x30d574);return _0x137b4a+'\x20('+(_0x1200a5?_0x5e00a5(_0x1200a5['title'])['toLowerCase']():_0x30d574)+')';}return _0x137b4a+'\x20('+_0x30d574+')';}var ae=class extends _0x5667d7{afterInit(){const _0x1e9896=this['editor'];if(!_0x1e9896['plugins']['has']('GeneralHtmlSupport')||!_0x1e9896['plugins']['has']('DataSchema'))return;const _0x46f6b3=_0x1e9896['plugins']['get']('TrackChangesEditing'),_0x5dbcad=_0x1e9896['plugins']['get']('GeneralHtmlSupport'),_0x1fa3f5=_0x1e9896['plugins']['get']('DataSchema'),_0xc4efbf=_0x1e9896['locale'],_0x3225d8=new Set(['htmlContent']);for(const _0x5b60d3 of _0x1fa3f5['getDefinitionsForView'](/.*/,!0x1)){const _0x3acc9c=_0x5b60d3['view'],_0x521277=_0x5dbcad['getGhsAttributeNameForElement'](_0x3acc9c);_0x3225d8['add'](_0x521277),!_0x5b60d3['isInline']||_0x5b60d3['isObject']||'appliesToBlock'in _0x5b60d3&&_0x5b60d3['appliesToBlock']||_0x46f6b3['descriptionFactory']['registerAttributeLabel'](_0x521277,_0x3acc9c),_0x5b60d3['model']['startsWith']('html')&&_0x46f6b3['descriptionFactory']['registerElementLabel'](_0x5b60d3['model'],_0x1a100a=>Mt(_0xc4efbf,'ELEMENT_HTML_TAG',[_0x1a100a,_0x3acc9c]));}_0x46f6b3['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0xc4efbf,'FORMAT_RAW_HTML_CONTENT')),_0x46f6b3['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0xc4efbf,'FORMAT_HTML_LIST_ITEM')),_0x46f6b3['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0xc4efbf,'FORMAT_HTML_BULLETED_LIST')),_0x46f6b3['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0xc4efbf,'FORMAT_HTML_NUMBERED_LIST')),_0x46f6b3['descriptionFactory']['registerDescriptionCallback'](_0x1b1a08=>{if('attribute'!==_0x1b1a08['type'])return;const _0x2d457c=_0x1b1a08['data'];if(!_0x2d457c||!_0x3225d8['has'](_0x2d457c['key']))return;if('htmlContent'===_0x2d457c['key'])return{'type':'format','content':Mt(_0xc4efbf,'*Change\x20%0\x20content*',Mt(_0xc4efbf,'ELEMENT_RAW_HTML'))};const {setItems:_0x18eb2a,removeItems:_0x276d2c}=function(_0x26205a,_0x1e6beb,_0x45daf7){const _0x240ce6=[],_0x3e24b2=[],_0x53c66b=_0x26205a['styles']??{},_0x2df470=_0x1e6beb['styles']??{};for(const _0x1bd8d6 of new Set([...Object['keys'](_0x53c66b),...Object['keys'](_0x2df470)]))_0x53c66b[_0x1bd8d6]!==_0x2df470[_0x1bd8d6]&&(void 0x0===_0x2df470[_0x1bd8d6]?_0x3e24b2['push'](_0x1bd8d6):_0x240ce6['push'](_0x1bd8d6+'\x20('+_0x2df470[_0x1bd8d6]+')'));const _0x78ef02=Mt(_0x45daf7,'FORMAT_HTML_CLASS'),_0x40ab4e=new Set(_0x26205a['classes']??[]),_0x4c23bd=new Set(_0x1e6beb['classes']??[]),_0x408aaf=[..._0x4c23bd]['some'](_0x2156b1=>!_0x40ab4e['has'](_0x2156b1)),_0x13c9c9=[..._0x40ab4e]['some'](_0x3d357f=>!_0x4c23bd['has'](_0x3d357f));_0x408aaf&&_0x240ce6['push'](_0x78ef02),_0x13c9c9&&_0x3e24b2['push'](_0x78ef02);const _0x540a7c=Mt(_0x45daf7,'FORMAT_HTML_ATTRIBUTE'),_0x26f1d8=_0x26205a['attributes']??{},_0x4b1148=_0x1e6beb['attributes']??{};let _0x27caed=!0x1,_0x3b2e95=!0x1;for(const _0x18f9ac of new Set([...Object['keys'](_0x26f1d8),...Object['keys'](_0x4b1148)]))_0x26f1d8[_0x18f9ac]!==_0x4b1148[_0x18f9ac]&&(void 0x0===_0x4b1148[_0x18f9ac]?_0x3b2e95=!0x0:_0x27caed=!0x0);return _0x27caed&&_0x240ce6['push'](_0x540a7c),_0x3b2e95&&_0x3e24b2['push'](_0x540a7c),{'setItems':_0x240ce6,'removeItems':_0x3e24b2};}(_0x2d457c['oldValue']??{},_0x2d457c['newValue']??{},_0xc4efbf);if(!_0x18eb2a['length']&&!_0x276d2c['length'])return;const _0x24fe97=[];return _0x18eb2a['length']&&_0x24fe97['push'](Mt(_0xc4efbf,'*Set\x20format:*\x20%0',_0x18eb2a['join'](',\x20'))),_0x276d2c['length']&&_0x24fe97['push'](Mt(_0xc4efbf,'*Remove\x20format:*\x20%0',_0x276d2c['join'](',\x20'))),{'type':'format','content':_0x24fe97['join']('\x0a')};});}},ce=class extends _0x5667d7{_headingOptions;afterInit(){const _0x3ee53e=this['editor'];if(!_0x3ee53e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3ee53e['config']['get']('heading.options');const _0xaf4b0c=_0x3ee53e['locale'],_0x1a235b=_0x3ee53e['plugins']['get']('TrackChangesEditing');_0x1a235b['enableDefaultAttributesIntegration']('heading');for(const _0x4fdbc5 of this['_headingOptions'])'paragraph'!=_0x4fdbc5['model']&&_0x1a235b['descriptionFactory']['registerElementLabel'](_0x4fdbc5['model'],_0x52451c=>{const _0x1435b0=this['_getHeadingLevel'](_0x4fdbc5['model']);return null!==_0x1435b0?_0x54d21b(_0x52451c,_0x1435b0):_0x2d63dd(_0x52451c,_0x4fdbc5['title']);});function _0x54d21b(_0x37de4,_0x337dec){return Mt(_0xaf4b0c,'ELEMENT_HEADING',[_0x37de4,_0x337dec]);}function _0x2d63dd(_0xaf676c,_0x12ae62){return Mt(_0xaf4b0c,'ELEMENT_HEADING_CUSTOM',[_0xaf676c,_0x12ae62]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x44401c=this['editor'],_0xfdf797=_0x44401c['locale'];function _0x4a56d8(_0xdf5ca9,_0x2852c7){return Mt(_0xfdf797,'ELEMENT_HEADING_CUSTOM',[_0xdf5ca9,_0x2852c7]);}_0x44401c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d7fcf=>{if('formatBlock'!=_0x1d7fcf['type'])return;const {data:_0x1d32ce}=_0x1d7fcf;if(_0x1d32ce&&'heading'==_0x1d32ce['commandName']){const _0x1b47ba=_0x1d32ce['commandParams'][0x0]['value'],_0x5f23d6=this['_getHeadingLevel'](_0x1b47ba);if(null!==_0x5f23d6)return{'type':'format','content':Mt(_0xfdf797,'*Change\x20to:*\x20%0',(_0x57d689=0x1,_0x3139db=_0x5f23d6,Mt(_0xfdf797,'ELEMENT_HEADING',[_0x57d689,_0x3139db])))};const _0x1afee5=this['_headingOptions']['find'](_0x26ca4a=>_0x26ca4a['model']===_0x1b47ba)['title'];return{'type':'format','content':Mt(_0xfdf797,'*Change\x20to:*\x20%0',_0x4a56d8(0x1,_0x1afee5))};}var _0x57d689,_0x3139db;});}_getHeadingLevel(_0x23ca16){const _0x29eff0=_0x23ca16['match'](/^heading(\d+)/);if(_0x29eff0)return _0x29eff0[0x1];const _0x4338c5=this['_headingOptions']?.['find'](_0x169b99=>_0x169b99['model']==_0x23ca16);if(_0x4338c5&&_0x4338c5['view']){const _0x49067c=_0x4338c5['view'],_0x371ce9=(_0x49067c['name']??_0x49067c)['match'](/^h(\d+)/);if(_0x371ce9)return _0x371ce9[0x1];}return null;}},le=class extends _0x5667d7{afterInit(){const _0x54d0b5=this['editor'];if(!_0x54d0b5['plugins']['has']('HighlightEditing'))return;const _0x1c1cf4=_0x54d0b5['plugins']['get']('TrackChangesEditing'),_0x4c971b=_0x54d0b5['locale'];_0x1c1cf4['enableDefaultAttributesIntegration']('highlight'),_0x1c1cf4['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x4c971b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2e6fb0=this['editor'],_0x50ad02=_0x2e6fb0['locale'];_0x2e6fb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12d395=>{if('formatInline'!=_0x12d395['type'])return;const {data:_0x3ac244}=_0x12d395;if(_0x3ac244&&'highlight'==_0x3ac244['commandName']){const _0x1e5523=_0x50ad02['t'],_0x3c2014=_0x3ac244['commandParams'][0x0]['value'];if(_0x3c2014){const _0x37d56e=_0x2e6fb0['config']['get']('highlight.options')['find'](_0x41f8b1=>_0x41f8b1['model']==_0x3c2014),_0x3bd077=_0x1e5523(_0x37d56e['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x50ad02,'*Set\x20highlight:*\x20%0',_0x3bd077),'color':{'value':_0x37d56e['color'],'title':_0x37d56e['title']}};}return{'type':'format','content':Mt(_0x50ad02,'*Remove\x20highlight*',Mt(_0x50ad02,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x5667d7{afterInit(){const _0x591832=this['editor'];if(!_0x591832['plugins']['has']('HorizontalLineEditing'))return;_0x591832['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3ee8e3=_0x591832['plugins']['get']('TrackChangesEditing'),_0x5d1785=_0x591832['locale'];_0x3ee8e3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x13f993=>Mt(_0x5d1785,'ELEMENT_HORIZONTAL_LINE',_0x13f993));}},de=class extends _0x5667d7{afterInit(){const _0x18f943=this['editor'];if(!_0x18f943['plugins']['has']('HtmlEmbed'))return;const _0x36c7a5=_0x18f943['plugins']['get']('TrackChangesEditing'),_0xea242a=_0x18f943['locale'];_0x36c7a5['descriptionFactory']['registerElementLabel']('rawHtml',_0x151ee8=>Mt(_0xea242a,'ELEMENT_HTML_EMBED',_0x151ee8)),_0x36c7a5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36c7a5['descriptionFactory']['registerDescriptionCallback'](_0x5e3669=>{if('attribute'!=_0x5e3669['type'])return;const {data:_0x129a1e}=_0x5e3669;if(_0x129a1e&&'value'==_0x129a1e['key']&&_0x5e3669['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4225f9=Mt(_0xea242a,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0xea242a,'*Change\x20%0\x20content*',_0x4225f9)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xbe601f=this['editor'],_0x30d558=_0xbe601f['locale'];_0xbe601f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26393d=>{if('formatBlock'!=_0x26393d['type'])return;const {data:_0x13cab6}=_0x26393d;if(_0x13cab6&&'htmlEmbed'==_0x13cab6['commandName']){const _0x54e679=Mt(_0x30d558,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x30d558,'*Change\x20%0\x20content*',_0x54e679)};}});}},he=class extends _0x5667d7{afterInit(){const _0x5d09a7=this['editor'];if(!_0x5d09a7['plugins']['has']('ImageEditing'))return;const _0x5e86a0=_0x5d09a7['plugins']['get']('TrackChangesEditing'),_0x5802f8=_0x5d09a7['plugins']['get']('ImageUtils'),_0x498c99=_0x5d09a7['locale'];_0x5e86a0['enableCommand']('insertImage'),_0x5e86a0['descriptionFactory']['registerElementLabel']('imageBlock',_0x371159=>Mt(_0x498c99,'ELEMENT_IMAGE',_0x371159)),_0x5e86a0['descriptionFactory']['registerElementLabel']('imageInline',_0x1cea50=>Mt(_0x498c99,'ELEMENT_INLINE_IMAGE',_0x1cea50)),_0x5e86a0['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x498c99,'ELEMENT_CAPTION')),_0x5d09a7['plugins']['has']('ImageUploadEditing')&&_0x5e86a0['enableCommand']('uploadImage'),_0x5d09a7['plugins']['has']('ImageBlockEditing')&&_0x5d09a7['plugins']['has']('ImageInlineEditing')&&(_0x5e86a0['enableCommand']('imageTypeInline',(_0x15619c,_0x5f324b)=>{const _0x5bb220=_0x5802f8['getClosestSelectedImageElement'](_0x5d09a7['model']['document']['selection']);_0x5d09a7['model']['change'](()=>{_0x5e86a0['markBlockFormat'](_0x5bb220,{'commandName':'imageTypeInline','commandParams':[_0x5f324b]},[],'convertBlockImageToInline');});}),_0x5e86a0['enableCommand']('imageTypeBlock',(_0x35ab09,_0x345559)=>{_0x5d09a7['model']['change'](_0x28f08b=>{let _0x10fd73=_0x5802f8['getClosestSelectedImageElement'](_0x5d09a7['model']['document']['selection']),_0x534172=_0x28f08b['createRangeOn'](_0x10fd73);const _0x18488e=st['fromPosition'](_0x534172['start'],'toPrevious'),_0x28d7f2=st['fromPosition'](_0x534172['end'],'toNext');_0x5e86a0['forceDefaultExecution'](()=>_0x35ab09(_0x345559)),_0x10fd73=_0x5802f8['getClosestSelectedImageElement'](_0x5d09a7['model']['document']['selection']),_0x534172=_0x28f08b['createRangeOn'](_0x10fd73);const _0x4d291b=_0x28f08b['createRange'](_0x18488e,_0x28d7f2);_0x18488e['detach'](),_0x28d7f2['detach'](),_0x5e86a0['markBlockFormat'](_0x10fd73,{'commandName':'imageTypeInline','commandParams':[_0x345559]},[],'convertInlineImageToBlock'),_0x4d291b['start']['isBefore'](_0x534172['start'])&&_0x5e86a0['markInsertion'](_0x28f08b['createRange'](_0x4d291b['start'],_0x534172['start']),'convertInlineImageToBlock'),_0x534172['end']['isBefore'](_0x4d291b['end'])&&_0x5e86a0['markInsertion'](_0x28f08b['createRange'](_0x534172['end'],_0x4d291b['end']),'convertInlineImageToBlock');});}),_0x5e86a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e86a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e86a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e86a0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e86a0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e86a0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x26acd4])=>{const _0x3fbacb=_0x5e86a0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2d1286=_0x26acd4['start'],_0x477bde=_0x26acd4['end'];const _0x12a8e6=_0x5d09a7['model']['schema']['getNearestSelectionRange'](_0x2d1286,'backward'),_0x2d21a8=_0x5d09a7['model']['schema']['getNearestSelectionRange'](_0x477bde,'forward');_0x12a8e6['isCollapsed']&&(_0x2d1286=_0x12a8e6['start']),_0x2d21a8['isCollapsed']&&(_0x477bde=_0x2d21a8['end']),_0x3fbacb([_0x5d09a7['model']['createRange'](_0x2d1286,_0x477bde)]);}),_0x5e86a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xe4f4d4),_0x5e86a0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xe4f4d4)),_0x5d09a7['plugins']['has']('ImageCaptionEditing')&&(_0x5e86a0['enableCommand']('toggleImageCaption',(_0x5ae979,_0x20a170)=>{const _0x3f3510=_0x5d09a7['plugins']['get']('ImageCaptionUtils');let _0x1baa1d=_0x5802f8['getClosestSelectedImageElement'](_0x5d09a7['model']['document']['selection']),_0x59135c=_0x3f3510['getCaptionFromImageModelElement'](_0x1baa1d);_0x5d09a7['model']['change'](()=>{if(_0x59135c)return void _0x5e86a0['markDeletion'](_0x5d09a7['model']['createRangeOn'](_0x59135c));const _0x2a7187=_0x5802f8['isBlockImage'](_0x1baa1d);_0x5ae979(_0x20a170),_0x1baa1d=_0x5802f8['getClosestSelectedImageElement'](_0x5d09a7['model']['document']['selection']),_0x59135c=_0x3f3510['getCaptionFromImageModelElement'](_0x1baa1d),_0x5e86a0['markInsertion'](_0x5d09a7['model']['createRangeOn'](_0x59135c),_0x2a7187?null:'imageCaption');});}),_0x5e86a0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xe4f4d4));const _0x5a0b5b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xdd08da(_0x61e068,_0x4a0d70){const _0x5510d5=_0x5a0b5b['findIndex'](({type:_0x197c81,subType:_0x37f699})=>_0x61e068['type']==_0x197c81&&_0x61e068['subType']==_0x37f699),_0x35e9af=_0x5a0b5b['findIndex'](({type:_0x5426fc,subType:_0x1d4d82})=>_0x4a0d70['type']==_0x5426fc&&_0x4a0d70['subType']==_0x1d4d82);if(_0x5510d5<0x0||_0x35e9af<0x0)return!0x1;const _0x4d6d7f=_0x61e068['getFirstRange'](),_0x3d6dad=_0x4a0d70['getFirstRange']();if((0x0==_0x5510d5||0x1==_0x5510d5)&&0x2==_0x35e9af&&_0x4d6d7f['isIntersecting'](_0x3d6dad))return!0x0;if(0x2==_0x5510d5&&0x3==_0x35e9af){const _0x40fe2d=_0x5e86a0['_findSuggestions'](_0x4d6d7f,'insertion')['filter'](({suggestion:_0x525231,meta:_0x537a50})=>_0x537a50['isOwn']&&'convertInlineImageToBlock'==_0x525231['subType']);if(_0x40fe2d['length']>0x1&&_0x3d6dad['end']['isEqual'](_0x4d6d7f['start']))return!0x0;if(0x1==_0x40fe2d['length']&&(_0x4d6d7f['start']['isEqual'](_0x3d6dad['end'])||_0x4d6d7f['end']['isEqual'](_0x3d6dad['start'])))return!0x0;}if(0x3==_0x5510d5&&0x3==_0x35e9af&&_0x4d6d7f['start']['isBefore'](_0x3d6dad['start'])){const _0x320e36=_0x4d6d7f['end']['nodeAfter'],_0x3047ac=_0x3d6dad['start']['nodeBefore'];return _0x5802f8['isBlockImage'](_0x320e36)&&_0x320e36===_0x3047ac;}return!0x1;}function _0xe4f4d4(_0x2b5a38,_0x574b6f){return _0xdd08da(_0x2b5a38,_0x574b6f)?[_0x2b5a38,_0x574b6f]:_0xdd08da(_0x574b6f,_0x2b5a38)?[_0x574b6f,_0x2b5a38]:null;}_0x5d09a7['plugins']['has']('ImageResize')&&(_0x5e86a0['enableDefaultAttributesIntegration']('resizeImage'),_0x5e86a0['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x498c99,'FORMAT_IMAGE_SIZE'))),_0x5d09a7['plugins']['has']('ImageTextAlternativeEditing')&&_0x5e86a0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5d09a7['plugins']['has']('PictureEditing')&&_0x5e86a0['descriptionFactory']['registerDescriptionCallback'](_0x305967=>{if('attribute'!=_0x305967['type'])return;const {data:_0x4295bf}=_0x305967;return _0x4295bf&&'sources'==_0x4295bf['key']?{'type':'format','content':''}:void 0x0;}),_0x5d09a7['plugins']['has']('ImageSizeAttributes')&&_0x5e86a0['descriptionFactory']['registerDescriptionCallback'](_0x364ee8=>{if('attribute'!=_0x364ee8['type'])return;const {data:_0x3f1a30}=_0x364ee8;return!_0x3f1a30||'width'!=_0x3f1a30['key']&&'height'!=_0x3f1a30['key']?void 0x0:{'type':'format','content':''};}),_0x5e86a0['descriptionFactory']['registerDescriptionCallback'](_0x446f03=>{if(_0x5a0b5b['find'](({type:_0x1397d3,subType:_0x6b3cc1})=>_0x446f03['type']==_0x1397d3&&_0x446f03['subType']==_0x6b3cc1))return _0x446f03['previous']?{}:void 0x0;}),_0x5e86a0['descriptionFactory']['registerDescriptionCallback'](_0x381264=>{if('insertion'==_0x381264['type']||'deletion'==_0x381264['type']){const _0x22772b=_0x381264['getContainedElement']();if(_0x22772b&&_0x22772b['is']('element','caption'))return{'type':'insertion'==_0x381264['type']?'addObject':'removeObject','element':_0x22772b,'quantity':0x1};}}),_0x5e86a0['descriptionFactory']['registerDescriptionCallback'](_0x138576=>'formatBlock'==_0x138576['type']&&'convertInlineImageToBlock'==_0x138576['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x138576['type']&&'convertBlockImageToInline'==_0x138576['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e86a0['descriptionFactory']['registerDescriptionCallback'](_0x46df5f=>{if('attribute'!=_0x46df5f['type'])return;const {data:_0x43787b}=_0x46df5f;if(!_0x43787b||'alt'!=_0x43787b['key'])return;const _0x349cc5=_0x43787b['newValue'];return _0x349cc5?{'type':'format','content':Mt(_0x498c99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x349cc5+'\x22')}:{'type':'format','content':Mt(_0x498c99,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4cb761=this['editor'],_0x4b8f3d=_0x4cb761['locale'];_0x4cb761['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a682e=>{if('formatBlock'!=_0x3a682e['type']&&'formatInline'!=_0x3a682e['type'])return;const {data:_0x20f341}=_0x3a682e;if(_0x20f341){if('imageTextAlternative'==_0x20f341['commandName']){const _0x40e24b=_0x20f341['commandParams'][0x0]['newValue'];return _0x40e24b?{'type':'format','content':Mt(_0x4b8f3d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x40e24b+'\x22')}:{'type':'format','content':Mt(_0x4b8f3d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20f341['commandName']){const _0x2949e3=_0x20f341['commandParams'][0x0]['width'];return _0x2949e3?{'type':'format','content':Mt(_0x4b8f3d,'*Set\x20image\x20width:*\x20%0',_0x2949e3)}:{'type':'format','content':Mt(_0x4b8f3d,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x5667d7{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5e70b3=this['editor']['locale'],_0x513a33=this['editor']['plugins']['get']('TrackChangesEditing');_0x513a33['enableDefaultAttributesIntegration']('replaceImageSource'),_0x513a33['descriptionFactory']['registerDescriptionCallback'](_0x5e0a22=>{if('attribute'!=_0x5e0a22['type'])return;const {data:_0x14235d}=_0x5e0a22;return _0x14235d&&'src'==_0x14235d['key']?_0x14235d['newValue']&&_0x14235d['oldValue']?{'type':'format','content':Mt(_0x5e70b3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1af2ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x1af2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1af2ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1af2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1af2ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x10932c=this['editor'],_0xd3fb6d=_0x10932c['locale'];_0x10932c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4cce4=>{if('formatBlock'!=_0xd4cce4['type']&&'formatInline'!=_0xd4cce4['type'])return;const {data:_0x17326c}=_0xd4cce4;return _0x17326c&&'replaceImageSource'==_0x17326c['commandName']?{'type':'format','content':Mt(_0xd3fb6d,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x5667d7{afterInit(){const _0x7da144=this['editor'];if(!_0x7da144['plugins']['has']('ImageStyleEditing'))return;const _0x5507f7=_0x7da144['plugins']['get']('TrackChangesEditing'),_0x357f71=_0x7da144['plugins']['get']('ImageUtils'),_0x4d4632={};_0x5507f7['enableCommand']('imageStyle',(_0x291c87,_0x1c2e9d)=>{const _0x1037ff=_0x7da144['plugins']['get']('Users')['me'],_0x486d67=_0x7da144['commands']['get']('imageStyle');let _0x506b6b=_0x357f71['getClosestSelectedImageElement'](_0x7da144['model']['document']['selection']),_0x1d7cd7=_0x7da144['model']['createRangeOn'](_0x506b6b),_0x2b4033=_0x486d67['value'];if(_0x2b4033==_0x1c2e9d['value'])return;if(_0x1c2e9d['value']&&_0x357f71['isInlineImage'](_0x506b6b)&&!_0x486d67['isStyleEnabled'](_0x1c2e9d['value']))return;const _0x43d68d={'commandName':'imageStyle','commandParams':[_0x1c2e9d],'formatGroupId':_0x465e2c()};_0x7da144['model']['change'](()=>{if(_0x5507f7['getSuggestions']()['filter'](_0x4d4ab6=>_0x4d4ab6['isInContent']&&_0x1037ff==_0x4d4ab6['author']&&('formatBlock'==_0x4d4ab6['type']||'formatInline'==_0x4d4ab6['type'])&&('imageStylePreApply'==_0x4d4ab6['subType']||'imageStylePostApply'==_0x4d4ab6['subType'])&&_0x4d4ab6['getFirstRange']()['isEqual'](_0x1d7cd7))['forEach'](_0x280ed0=>_0x5507f7['discardSuggestion'](_0x280ed0['head'])),_0x506b6b=_0x357f71['getClosestSelectedImageElement'](_0x7da144['model']['document']['selection']),_0x1d7cd7=_0x7da144['model']['createRangeOn'](_0x506b6b),_0x486d67['refresh'](),_0x7da144['commands']['get']('imageTypeInline')['refresh'](),_0x7da144['commands']['get']('imageTypeBlock')['refresh'](),_0x2b4033=_0x486d67['value'],_0x2b4033!=_0x1c2e9d['value'])return _0x357f71['isInlineImage'](_0x506b6b)&&_0x486d67['shouldConvertImageType'](_0x1c2e9d['value'],_0x506b6b)?(_0x291c87({..._0x1c2e9d,'setImageSizes':!0x1}),_0x506b6b=_0x357f71['getClosestSelectedImageElement'](_0x7da144['model']['document']['selection']),void _0x5507f7['markBlockFormat'](_0x506b6b,{..._0x43d68d,'commandReversedParams':[{'value':_0x2b4033||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x357f71['isBlockImage'](_0x506b6b)?_0x5507f7['markBlockFormat'](_0x506b6b,_0x43d68d,[],'imageStylePostApply'):_0x5507f7['markInlineFormat'](_0x1d7cd7,_0x43d68d,'imageStylePostApply'));});});for(const _0x5605d8 of _0x7da144['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4d4632[_0x5605d8['name']]=_0x5605d8['title']['toLowerCase']();_0x5507f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5507f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5507f7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5507f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x9338ee])=>{_0x357f71['setImageNaturalSizeAttributes'](_0x9338ee['getContainedElement']());}),_0x5507f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xb640c1,_0x460f25)=>{_0x5507f7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xb640c1,{'commandName':_0x460f25['commandName'],'commandParams':_0x460f25['commandReversedParams']});}),_0x5507f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1bc78a,_0x11b1df){return _0x4c0532(_0x1bc78a,_0x11b1df)?[_0x1bc78a,_0x11b1df]:_0x4c0532(_0x11b1df,_0x1bc78a)?[_0x11b1df,_0x1bc78a]:null;});const _0x266460=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c0532(_0x597e82,_0x28ea58){const _0xf06cf2=_0x266460['findIndex'](({type:_0x57ae88,subType:_0x37ebd3})=>_0x597e82['type']==_0x57ae88&&_0x597e82['subType']==_0x37ebd3),_0x147308=_0x266460['findIndex'](({type:_0x25c034,subType:_0x6462be})=>_0x28ea58['type']==_0x25c034&&_0x28ea58['subType']==_0x6462be);if(_0xf06cf2<0x0||_0x147308<0x0)return!0x1;const _0x2116a4=_0x597e82['getFirstRange'](),_0x1467f8=_0x28ea58['getFirstRange']();if((0x0==_0xf06cf2||0x1==_0xf06cf2)&&0x2==_0x147308&&_0x2116a4['isIntersecting'](_0x1467f8))return!0x0;if(0x2==_0xf06cf2&&0x3==_0x147308){const _0x24c91f=_0x5507f7['_findSuggestions'](_0x2116a4,'insertion')['filter'](({suggestion:_0x197d9e,meta:_0x31b028})=>_0x31b028['isOwn']&&'convertInlineImageToBlock'==_0x197d9e['subType']);if(_0x24c91f['length']>0x1&&_0x1467f8['end']['isEqual'](_0x2116a4['start']))return!0x0;if(0x1==_0x24c91f['length']&&(_0x2116a4['start']['isEqual'](_0x1467f8['end'])||_0x2116a4['end']['isEqual'](_0x1467f8['start'])))return!0x0;}if(0x3==_0xf06cf2&&0x3==_0x147308&&_0x2116a4['start']['isBefore'](_0x1467f8['start'])){const _0x5d056a=_0x2116a4['end']['nodeAfter'],_0x2f405a=_0x1467f8['start']['nodeBefore'];return _0x357f71['isBlockImage'](_0x5d056a)&&_0x5d056a===_0x2f405a;}return!0x1;}_0x7da144['model']['document']['registerPostFixer'](()=>{let _0x573b94=!0x1;const _0x3bcc11=Array['from'](_0x7da144['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12f4ac,data:_0x48c5ee}of _0x3bcc11){const {group:_0x147dd0,type:_0x2d0215,subType:_0x1e1224,id:_0x574c12}=tt(_0x12f4ac);if('suggestion'==_0x147dd0&&_0x5507f7['hasSuggestion'](_0x574c12)){if('formatBlock'==_0x2d0215&&('imageStylePreApply'==_0x1e1224||'imageStylePostApply'==_0x1e1224)){const _0x31b40b=_0x5507f7['getSuggestion'](_0x574c12);if(_0x48c5ee['newRange']){const _0x311624=_0x31b40b['getFirstRange']()['getContainedElement']();if(_0x357f71['isBlockImage'](_0x311624))continue;_0x5507f7['discardSuggestion'](_0x31b40b),_0x573b94=!0x0;}}if('insertion'==_0x2d0215&&'imageCaption'==_0x1e1224&&!_0x48c5ee['newRange']){const _0xf91296=_0x5507f7['getSuggestion'](_0x574c12);_0xf91296['next']&&_0xf91296['next']['isInContent']&&(_0x5507f7['discardSuggestion'](_0xf91296['next']),_0x573b94=!0x0);}}}return _0x573b94;}),this['_registerLegacyDescription'](_0x4d4632);}_registerLegacyDescription(_0x4518f0){const _0x4e2176=this['editor'],_0x479753=_0x4e2176['locale'];_0x4e2176['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x410c51=>{if('formatBlock'!=_0x410c51['type']&&'formatInline'!=_0x410c51['type'])return;const {data:_0x295ac5}=_0x410c51;if(!_0x295ac5||'imageStyle'!=_0x295ac5['commandName'])return;const _0x3a953e=_0x295ac5['commandParams'][0x0]['value'];return _0x3e5bfa('side'===_0x3a953e?Mt(_0x479753,'FORMAT_SIDE_IMAGE'):_0x4518f0[_0x3a953e]||_0x3a953e);function _0x3e5bfa(_0x4f6b82){return{'type':'format','content':Mt(_0x479753,'*Format:*\x20%0',_0x4f6b82)};}});}},me=class extends _0x5667d7{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x209acf){super(_0x209acf),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x49aee8=this['editor'],_0x2b0f44=_0x49aee8['commands']['get']('importWord'),_0x5e7f2e=_0x49aee8['commands']['get']('trackChanges');_0x2b0f44&&(_0x2b0f44['on']('execute',(_0x19d202,[,_0x122e98])=>{this['_trackChangesValueDuringImport']=_0x5e7f2e['value'],_0x122e98['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2b0f44,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2b0f44,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5e7f2e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x49aee8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x3e8453,_0x228fc8){const {suggestions:_0x1bee36}=_0x228fc8,_0x464ed4=this['editor']['commands']['get']('trackChanges'),_0x499fe3=_0x464ed4['value'];this['_trackChangesValueDuringImport']!==_0x499fe3&&(_0x464ed4['execute'](),this['_trackChangesExecuted']=!0x0),_0x1bee36&&_0x1bee36['forEach'](({id:_0x25e137,type:_0x33ef12,author:_0x54983b,created_at:_0x2db5b7})=>{const _0x5987ae={'id':_0x25e137,'type':_0x33ef12,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x54983b,'createdAt':_0x2db5b7?new Date(_0x2db5b7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5987ae);});}},Ee=class extends _0x5667d7{afterInit(){const _0xe468ee=this['editor'],_0x49a2a3=_0xe468ee['plugins']['get']('TrackChangesEditing');if(_0xe468ee['plugins']['has']('IndentEditing')&&(_0x49a2a3['enableCommand']('indent'),_0x49a2a3['enableCommand']('outdent')),_0xe468ee['plugins']['has']('IndentBlock')){for(const _0x45cd7d of['indentBlock','outdentBlock'])_0x49a2a3['enableDefaultAttributesIntegration'](_0x45cd7d);if(_0xe468ee['plugins']['has']('ListEditing')){for(const _0x5a640e of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x49a2a3['enableDefaultAttributesIntegration'](_0x5a640e);}}const _0x43c4d2=_0xe468ee['locale'];_0x49a2a3['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x43c4d2,'FORMAT_INDENT')),_0x49a2a3['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x43c4d2,'FORMAT_INDENT')),_0x49a2a3['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x43c4d2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x39632f=this['editor'],_0x463276=_0x39632f['locale'],_0x1bc78c=_0x39632f['plugins']['get']('TrackChangesEditing');_0x1bc78c['descriptionFactory']['registerDescriptionCallback'](_0x1def41=>{if('formatBlock'!=_0x1def41['type'])return;const {data:_0x19201d}=_0x1def41;if(!_0x19201d)return;if('indentBlock'!=_0x19201d['commandName']&&'outdentBlock'!=_0x19201d['commandName'])return;const _0x5130c9=_0x1def41['getItems']()[0x0],_0x596fc5=_0x1bc78c['descriptionFactory']['getItemLabel'](_0x5130c9);return'indentBlock'==_0x19201d['commandName']?{'type':'format','content':Mt(_0x463276,'*Indent:*\x20%0',_0x596fc5)}:'outdentBlock'==_0x19201d['commandName']?{'type':'format','content':Mt(_0x463276,'*Outdent:*\x20%0',_0x596fc5)}:void 0x0;});}},Te=class extends _0x5667d7{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x5667d7{afterInit(){const _0x30de0d=this['editor'];if(!_0x30de0d['plugins']['has']('LinkEditing'))return;const _0x5648de=_0x30de0d['plugins']['get']('TrackChangesEditing'),_0x1af8fc=_0x30de0d['commands']['get']('link');_0x5648de['enableDefaultAttributesIntegration']('link'),_0x5648de['enableDefaultAttributesIntegration']('unlink');for(const _0x772de3 of _0x1af8fc['manualDecorators'])_0x5648de['descriptionFactory']['registerAttributeLabel'](_0x772de3['id'],'link\x20('+_0x772de3['label']['toLowerCase']()+')');_0x5648de['descriptionFactory']['registerDescriptionCallback'](_0x2137e1=>{if('attribute'!=_0x2137e1['type'])return;const {data:_0x490d21}=_0x2137e1;if(!_0x490d21||'linkHref'!=_0x490d21['key'])return;const _0x18c486=_0x490d21['newValue'],_0x5cd69e=_0x30de0d['locale'];return{'type':'format','content':null==_0x18c486?Mt(_0x5cd69e,'*Remove\x20link*'):Mt(_0x5cd69e,'*Set\x20link:*\x20%0','\x22'+_0x18c486+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5885bf=this['editor'],_0x39bc55=_0x5885bf['locale'];_0x5885bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354d5a=>{if('formatInline'!=_0x354d5a['type'])return;const {data:_0x1bfa7b}=_0x354d5a;if(_0x1bfa7b){if('link'==_0x1bfa7b['commandName']){const _0x2d5867=_0x1bfa7b['commandParams'][0x0];return{'type':'format','content':Mt(_0x39bc55,'*Set\x20link:*\x20%0','\x22'+_0x2d5867+'\x22')};}return'unlink'==_0x1bfa7b['commandName']?{'type':'format','content':Mt(_0x39bc55,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x5667d7{afterInit(){const _0x16d4fd=this['editor'],_0x72864f=_0x16d4fd['locale'];if(!_0x16d4fd['plugins']['has']('LegacyListEditing'))return;const _0x1c2b62=_0x16d4fd['plugins']['get']('TrackChangesEditing'),_0x2acb1e=_0x16d4fd['plugins']['has']('LegacyTodoListEditing');function _0xc4212f(_0x1d4311){return()=>{const _0x2fba97=_0x16d4fd['model']['document']['selection'],_0x1e2e7d=_0x16d4fd['commands']['get'](_0x1d4311);if(_0x1e2e7d['value'])return void _0x16d4fd['execute']('paragraph',{});const _0x2a4242=_0x1d4311['slice'](0x0,-0x4),_0x563af9=function(_0x1d012d,_0x307210,_0x5b77c6){let _0x188aef=Array['from'](_0x1d012d)['filter'](_0x524722=>function(_0x43f6bd,_0x9f4b88){return _0x9f4b88['checkChild'](_0x43f6bd['parent'],'listItem')&&!_0x9f4b88['isObject'](_0x43f6bd);}(_0x524722,_0x5b77c6));_0x188aef=_0x188aef['filter'](_0x3f4cbb=>!_0x3f4cbb['is']('element','listItem')||_0x3f4cbb['getAttribute']('listType')!=_0x307210);const _0x1278de=new Set();for(const _0x1f77a4 of _0x188aef)_0x1f77a4['is']('element','listItem')?_0x1278de['add'](Le(_0x1f77a4)):_0x1278de['add'](_0x1f77a4);return Array['from'](_0x1278de);}(_0x2fba97['getSelectedBlocks'](),_0x2a4242,_0x16d4fd['model']['schema']);_0x16d4fd['model']['change'](()=>{for(const _0x5235f4 of _0x563af9)_0x1c2b62['markBlockFormat'](_0x5235f4,{'commandName':_0x1d4311,'commandParams':[{'forceValue':!_0x1e2e7d['value']}],'formatGroupId':'blockName'},Ie(_0x5235f4));});};}function _0x4b9025(_0x52ee72){return()=>{const _0x46e16b=function(_0x53d44a){let _0x5692c7=Array['from'](_0x53d44a);const _0x2fa33e=_0x5692c7['findIndex'](_0x37bc56=>'listItem'!=_0x37bc56['name']);return _0x2fa33e>-0x1&&(_0x5692c7=_0x5692c7['slice'](0x0,_0x2fa33e)),_0x5692c7;}(_0x16d4fd['model']['document']['selection']['getSelectedBlocks']()),_0x449429=_0x16d4fd['model']['createRange'](_0x16d4fd['model']['createPositionAt'](_0x46e16b[0x0],'before'),_0x16d4fd['model']['createPositionAt'](_0x46e16b[_0x46e16b['length']-0x1],'end'));_0x16d4fd['model']['change'](()=>{_0x1c2b62['markBlockFormat'](_0x449429,{'commandName':_0x52ee72,'commandParams':[],'formatGroupId':'listIndent'},function(_0xd7404b){const _0x2e9bd3=new Set();for(const _0x4eb18a of _0xd7404b){let _0xe122e6=_0x4eb18a['nextSibling'];for(;_0xe122e6&&_0xe122e6['getAttribute']('listIndent')>_0x4eb18a['getAttribute']('listIndent');)_0x2e9bd3['add'](_0xe122e6),_0xe122e6=_0xe122e6['nextSibling'];}return Array['from'](_0x2e9bd3);}(_0x46e16b));});};}_0x1c2b62['enableCommand']('numberedList',_0xc4212f('numberedList')),_0x1c2b62['enableCommand']('bulletedList',_0xc4212f('bulletedList')),_0x2acb1e&&_0x1c2b62['enableCommand']('todoList',_0xc4212f('todoList')),_0x1c2b62['enableCommand']('indentList',_0x4b9025('indentList')),_0x1c2b62['enableCommand']('outdentList',_0x4b9025('outdentList')),_0x2acb1e&&_0x1c2b62['enableCommand']('checkTodoList',()=>{const _0x528785=_0x16d4fd['commands']['get']('checkTodoList'),_0x416d15=Array['from'](_0x528785['_selectedElements']);_0x416d15['filter'](_0x5dfa62=>_0x5dfa62['getAttribute']('todoListChecked')!=_0x528785['value']),_0x16d4fd['model']['change'](()=>{for(const _0x667226 of _0x416d15)_0x1c2b62['markBlockFormat'](_0x667226,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x528785['value']}]});});}),_0x1c2b62['descriptionFactory']['registerElementLabel']('listItem',_0x2e14c8=>Mt(_0x72864f,'ELEMENT_LIST_ITEM',_0x2e14c8)),_0x1c2b62['descriptionFactory']['registerDescriptionCallback'](_0x186abf=>{if('formatBlock'!=_0x186abf['type']&&'formatInline'!=_0x186abf['type'])return;const {data:_0x34fc10}=_0x186abf;if(_0x34fc10){if('numberedList'==_0x34fc10['commandName']||'bulletedList'==_0x34fc10['commandName']||'todoList'==_0x34fc10['commandName'])switch(_0x34fc10['commandName']['replace']('List','')){case'bulleted':return _0x3da4d6(Mt(_0x72864f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3da4d6(Mt(_0x72864f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3da4d6(Mt(_0x72864f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x34fc10['commandName'])return{'type':'format','content':Mt(_0x72864f,'*Indent:*\x20%0',Mt(_0x72864f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x34fc10['commandName'])return{'type':'format','content':Mt(_0x72864f,'*Outdent:*\x20%0',Mt(_0x72864f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x34fc10['commandName'])return _0x34fc10['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x72864f,'*Check\x20item*')}:{'type':'format','content':Mt(_0x72864f,'*Uncheck\x20item*')};}function _0x3da4d6(_0xec0bd6){return{'type':'format','content':Mt(_0x72864f,'*Change\x20to:*\x20%0',_0xec0bd6)};}});}};function Le(_0x4b9f6d){const _0x3509e5=_0x4b9f6d['getAttribute']('listIndent');if(0x0==_0x3509e5)return _0x4b9f6d;let _0x238c27=_0x4b9f6d;for(;_0x4b9f6d['previousSibling']&&_0x4b9f6d['previousSibling']['is']('element','listItem');){const _0x2869f1=_0x4b9f6d['previousSibling']['getAttribute']('listIndent');if(_0x2869f1==_0x3509e5)_0x238c27=_0x4b9f6d['previousSibling'];else{if(_0x2869f1<_0x3509e5)break;}_0x4b9f6d=_0x4b9f6d['previousSibling'];}return _0x238c27;}function Ie(_0x720bdb){const _0x3a30f0=[];if(_0x720bdb['is']('element','listItem')&&_0x720bdb['getAttribute']('listIndent')>0x0){let _0x52ebcc=_0x720bdb['nextSibling'];for(;_0x52ebcc&&'listItem'==_0x52ebcc['name']&&_0x52ebcc['getAttribute']('listIndent')==_0x720bdb['getAttribute']('listIndent');)_0x3a30f0['push'](_0x52ebcc),_0x52ebcc=_0x52ebcc['nextSibling'];}return _0x3a30f0;}var Ae=class extends _0x5667d7{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1f4fcc=this['editor']['config']['get']('list.properties'),_0x22e5fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f4fcc['styles']&&_0x22e5fe['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1f4fcc['reversed']&&_0x22e5fe['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1f4fcc['startIndex']&&_0x22e5fe['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x22e5fe['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x37b528,_0x17e9cb={}){const _0x2d9eda=this['editor']['plugins']['get']('TrackChangesEditing'),_0x424ef2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2d9eda['markMultiRangeBlockFormat'](_0x424ef2,{'commandName':'listStyle','commandParams':[{'type':_0x17e9cb['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x32786c,_0x1f3691={}){const _0x1d8c51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fa5b4=this['_getSuggestionBlocks'](_0x5af810=>_0x5af810['is']('element','listItem')&&'numbered'===_0x5af810['getAttribute']('listType'));if(_0x4fa5b4['length']<0x1)return;const _0x393383=_0x4fa5b4['map'](_0x11a94b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11a94b,'before'),this['editor']['model']['createPositionAt'](_0x11a94b,0x0)));this['editor']['model']['change'](()=>{_0x1d8c51['markMultiRangeBlockFormat'](_0x393383,{'commandName':'listReversed','commandParams':[{'reversed':_0x1f3691['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x3652ed,_0x3a6b44={}){const _0x1d445d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29c35d=this['_getSuggestionBlocks'](_0x59f3e9=>_0x59f3e9['is']('element','listItem')&&'numbered'===_0x59f3e9['getAttribute']('listType'));if(_0x29c35d['length']<0x1)return;const _0x2c81f6=_0x29c35d['map'](_0xfe3524=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfe3524,'before'),this['editor']['model']['createPositionAt'](_0xfe3524,0x0)));this['editor']['model']['change'](()=>{_0x1d445d['markMultiRangeBlockFormat'](_0x2c81f6,{'commandName':'listStart','commandParams':[{'startIndex':_0x3a6b44['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x4ec643){if('formatBlock'!=_0x4ec643['type']&&'formatInline'!=_0x4ec643['type'])return;const _0x996fe9=this['editor']['locale'],{data:_0x500067}=_0x4ec643;if(!_0x500067)return;let _0x527183,_0xe84813;switch(_0x500067['commandName']){case'listStyle':_0x527183='*Change\x20to:*\x20%0',_0xe84813={'type':'format','content':Mt(_0x996fe9,_0x527183,Mt(_0x996fe9,this['_getTranslationKeyForListStyle'](_0x500067['commandParams'][0x0]['type'])))};break;case'listReversed':_0x527183=_0x500067['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe84813={'type':'format','content':Mt(_0x996fe9,_0x527183)};break;case'listStart':_0x527183='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe84813={'type':'format','content':Mt(_0x996fe9,_0x527183,_0x500067['commandParams'][0x0]['startIndex'])};}return _0xe84813;}_getSuggestionBlocksForListStyle(){const _0x478534=this['editor']['plugins']['get']('LegacyListUtils');let _0x45b198=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x45b198[0x0]?.['is']('element','listItem')&&_0x45b198['unshift'](..._0x478534['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x45b198[_0x45b198['length']-0x1]?.['is']('element','listItem')&&_0x45b198['push'](..._0x478534['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x45b198=[...new Set(_0x45b198)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x45b198=_0x45b198['filter'](_0x579008=>_0x579008['is']('element','listItem'))),_0x45b198;}_getSuggestionBlocks(_0x2862fc){const _0x5134c5=this['editor']['plugins']['get']('LegacyListUtils');let _0x405461=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2862fc)['map'](_0x2b61eb=>{const _0x304b4f=this['editor']['model']['createPositionAt'](_0x2b61eb,0x0);return[..._0x5134c5['getSiblingNodes'](_0x304b4f,'backward'),..._0x5134c5['getSiblingNodes'](_0x304b4f,'forward')];})['flat']();return _0x405461=[...new Set(_0x405461)],_0x405461;}_getTranslationKeyForListStyle(_0x4cb2cb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4cb2cb)||'default')['toUpperCase']()+'_LIST_'+_0x4cb2cb['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x5667d7{afterInit(){const _0x1c2b6e=this['editor'];if(!_0x1c2b6e['plugins']['has']('MediaEmbedEditing'))return;const _0x3f1b09=_0x1c2b6e['plugins']['get']('TrackChangesEditing'),_0x1a9caf=_0x1c2b6e['locale'];_0x3f1b09['enableCommand']('mediaEmbed'),_0x3f1b09['descriptionFactory']['registerElementLabel']('media',_0x2e063d=>Mt(_0x1a9caf,'ELEMENT_MEDIA',_0x2e063d)),_0x1c2b6e['plugins']['has']('MediaEmbedResizeEditing')&&(_0x3f1b09['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x3f1b09['descriptionFactory']['registerDescriptionCallback'](_0xdc67bb=>{if('attribute'!=_0xdc67bb['type'])return;const {data:_0x2c6434}=_0xdc67bb;if(!_0x2c6434||'resizedWidth'!=_0x2c6434['key'])return;const _0x595fd0=_0xdc67bb['getContainedElement']();if(!_0x595fd0||!_0x595fd0['is']('element','media'))return;const _0x5b7203=Mt(_0x1a9caf,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x1a9caf,'*Set\x20format:*\x20%0',_0x5b7203)};}));}},ke=class extends _0x5667d7{afterInit(){const _0x300502=this['editor'];if(!_0x300502['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x5af49a=_0x300502['plugins']['get']('TrackChangesEditing'),_0xf9d4d9=_0x300502['locale'],_0x5c8807=_0x300502['plugins']['get']('MediaEmbedStyleEditing'),_0x5658b6={};for(const _0x416aad of _0x5c8807['normalizedStyles'])_0x5658b6[_0x416aad['name']]=_0x416aad['title']['toLowerCase']();const _0x59b2eb=_0x5c8807['normalizedStyles']['find'](_0x2f06e1=>_0x2f06e1['isDefault'])?.['name'];_0x5af49a['enableCommand']('mediaStyle',(_0x761393,_0x4f7b77)=>{const _0x40a5d8=_0x300502['plugins']['get']('Users')['me'],_0x5e10dd=_0x300502['commands']['get']('mediaStyle'),_0x13706d=function(_0x1d4b9f){const _0x365ef3=_0x1d4b9f['model']['document']['selection']['getSelectedElement']();return _0x365ef3&&_0x365ef3['is']('element','media')?_0x365ef3:null;}(_0x300502);if(!_0x13706d)return;const _0x377b9f=_0x300502['model']['createRangeOn'](_0x13706d);let _0x27ba72=_0x5e10dd['value'];if(_0x27ba72==_0x4f7b77['value'])return;const _0x5334cc={'commandName':'mediaStyle','commandParams':[_0x4f7b77],'formatGroupId':_0x465e2c()};_0x300502['model']['change'](()=>{_0x5af49a['getSuggestions']()['filter'](_0x4cd256=>_0x4cd256['isInContent']&&_0x40a5d8==_0x4cd256['author']&&'formatBlock'==_0x4cd256['type']&&'mediaStylePostApply'==_0x4cd256['subType']&&_0x4cd256['getFirstRange']()['isEqual'](_0x377b9f))['forEach'](_0x1289ef=>_0x5af49a['discardSuggestion'](_0x1289ef['head'])),_0x5e10dd['refresh'](),_0x27ba72=_0x5e10dd['value'],_0x27ba72!=_0x4f7b77['value']&&_0x5af49a['markBlockFormat'](_0x13706d,{..._0x5334cc,'commandReversedParams':[{'value':'string'==typeof _0x27ba72?_0x27ba72:null}]},[],'mediaStylePostApply');});}),_0x5af49a['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x5af49a['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0xd4e8a5,_0x18dd39)=>{_0x5af49a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xd4e8a5,{'commandName':_0x18dd39['commandName'],'commandParams':_0x18dd39['commandReversedParams']});}),_0x5af49a['descriptionFactory']['registerDescriptionCallback'](_0x2f5f60=>{if('formatBlock'!=_0x2f5f60['type'])return;const {data:_0x2863ea}=_0x2f5f60;if(!_0x2863ea||'mediaStyle'!=_0x2863ea['commandName'])return;const _0x250826=_0x2863ea['commandParams'][0x0]['value']||_0x59b2eb;if(!_0x250826)return;const _0x3cdbff=_0x5658b6[_0x250826]||_0x250826;return{'type':'format','content':Mt(_0xf9d4d9,'*Format:*\x20%0',_0x3cdbff)};});}},Ce=class extends _0x5667d7{afterInit(){const _0x2c5b9e=this['editor'];_0x2c5b9e['plugins']['has']('MentionEditing')&&_0x2c5b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x5667d7{afterInit(){const _0x4a5359=this['editor'];if(!_0x4a5359['plugins']['has']('MergeFieldsEditing'))return;const _0x493208=_0x4a5359['plugins']['get']('TrackChangesEditing'),_0x3f228f=_0x4a5359['locale'];_0x493208['enableCommand']('insertMergeField'),_0x493208['enableCommand']('insertMergeFieldBlock'),_0x493208['enableCommand']('insertMergeFieldImage'),_0x493208['descriptionFactory']['registerElementLabel']('mergeField',_0x48d12e=>Mt(_0x3f228f,'ELEMENT_MERGE_FIELD',_0x48d12e)),_0x493208['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1cf028=>Mt(_0x3f228f,'ELEMENT_MERGE_FIELD',_0x1cf028)),_0x493208['descriptionFactory']['registerDescriptionCallback'](_0x27b91c=>{if('insertion'!=_0x27b91c['type']&&'deletion'!=_0x27b91c['type'])return;const _0x501ea5=_0x27b91c['getContainedElement']();if(null==_0x501ea5)return;const _0x1c8807=_0x4a5359['plugins']['get']('MergeFieldsEditing');let _0x4a90db;switch(_0x1c8807['getMergeFieldType'](_0x501ea5)){case null:return;case'image':{const _0x4b8d5f=_0x1c8807['unwrapAffixes'](_0x501ea5['getAttribute']('src'));_0x4a90db=_0x1c8807['getLabel'](_0x4b8d5f)||_0x4b8d5f;break;}default:{const _0x456084=_0x501ea5['getAttribute']('id');_0x4a90db=_0x1c8807['getLabel'](_0x456084)||_0x456084;break;}}return'insertion'==_0x27b91c['type']?{'type':'insertion','content':Mt(_0x3f228f,'*Insert:*\x20%0','\x22'+_0x4a90db+'\x22\x20'+Mt(_0x3f228f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x3f228f,'*Remove:*\x20%0','\x22'+_0x4a90db+'\x22\x20'+Mt(_0x3f228f,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x5667d7{afterInit(){const _0x1aafa9=this['editor'],_0xe54335=_0x1aafa9['plugins']['get']('TrackChangesEditing');_0x1aafa9['plugins']['has']('MultiLevelList')&&(_0xe54335['enableDefaultAttributesIntegration']('multiLevelList'),_0xe54335['descriptionFactory']['registerDescriptionCallback'](_0x34963c=>this['handleDescriptions'](_0x34963c)));}handleDescriptions(_0x4ceba6){const _0x28ddc7=this['editor']['locale'],{data:_0x566267}=_0x4ceba6,_0xb46279={'type':'format','content':''};if(_0x566267&&'listMarkerStyle'==_0x566267['key']){if(!_0x566267['oldValue'])return{'type':'format','content':Mt(_0x28ddc7,'*Set\x20format:*\x20%0',Mt(_0x28ddc7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x566267['newValue']+')'};if(!_0x566267['newValue']){let _0x32d866=_0x4ceba6['head'];for(;_0x32d866;){if(_0x32d866['data']&&'listType'==_0x32d866['data']['key']&&_0x32d866['data']['newValue'])return _0xb46279;_0x32d866=_0x32d866['next'];}return{'type':'format','content':Mt(_0x28ddc7,'*Remove\x20format:*\x20%0',Mt(_0x28ddc7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x566267['oldValue']+')'};}}}},Ne=class extends _0x5667d7{afterInit(){const _0x64cce2=this['editor'];if(!_0x64cce2['plugins']['has']('PageBreakEditing'))return;_0x64cce2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5383c3=_0x64cce2['plugins']['get']('TrackChangesEditing'),_0x33fd63=_0x64cce2['locale'];_0x5383c3['descriptionFactory']['registerElementLabel']('pageBreak',_0xd70be=>Mt(_0x33fd63,'ELEMENT_PAGE_BREAK',_0xd70be));}},Se=class extends _0x5667d7{afterInit(){const _0x16ddbc=this['editor'];if(!_0x16ddbc['plugins']['has']('Paragraph'))return;const _0x2d572f=_0x16ddbc['locale'],_0x521b6b=_0x16ddbc['plugins']['get']('TrackChangesEditing');_0x521b6b['descriptionFactory']['registerElementLabel']('paragraph',_0x54fcf7=>Mt(_0x2d572f,'ELEMENT_PARAGRAPH',_0x54fcf7)),_0x521b6b['enableDefaultAttributesIntegration']('paragraph'),_0x521b6b['enableCommand']('insertParagraph');const _0xbd186f=_0x521b6b['descriptionFactory'];_0xbd186f['registerDescriptionCallback'](_0x14a2a3=>{if('insertion'!==_0x14a2a3['type'])return;const {start:_0x249e8d,end:_0x21b92c}=_0x14a2a3['getFirstRange']();if(!_0x249e8d['isTouching'](_0x21b92c)||!_0x249e8d['nodeAfter'])return;const _0x53a282=_0x16ddbc['model']['schema'],_0x1ccb34=_0x249e8d['nodeAfter'];return _0x53a282['isBlock'](_0x1ccb34)&&!_0x53a282['isLimit'](_0x1ccb34)&&_0x53a282['checkChild'](_0x1ccb34,'$text')?{'type':'insertion','content':Mt(_0x2d572f,'*Insert:*\x20%0',_0xbd186f['getItemLabel'](_0x1ccb34,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xb3aafa=this['editor'],_0x1da41a=_0xb3aafa['locale'];_0xb3aafa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1965cd=>{if('formatBlock'!=_0x1965cd['type'])return;const {data:_0x2d3a05}=_0x1965cd;return _0x2d3a05&&'paragraph'==_0x2d3a05['commandName']?{'type':'format','content':Mt(_0x1da41a,'*Change\x20to:*\x20%0',Mt(_0x1da41a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x5667d7{afterInit(){const _0x409b23=this['editor'];_0x409b23['commands']['get']('replaceSource')&&_0x409b23['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x5667d7{afterInit(){const _0xed5592=this['editor'];_0xed5592['plugins']['has']('RemoveFormatEditing')&&(_0xed5592['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x34de18=this['editor'];_0x34de18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58d2d5=>{if('formatBlock'!=_0x58d2d5['type']&&'formatInline'!=_0x58d2d5['type'])return;const {data:_0x93030b}=_0x58d2d5;return _0x93030b&&'removeFormat'==_0x93030b['commandName']?{'type':'format','content':Mt(_0x34de18['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x5667d7{afterInit(){const _0x1eed03=this['editor'];if(!_0x1eed03['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2bace0=_0x1eed03['plugins']['get']('TrackChangesEditing');_0x2bace0['enableCommand']('goToPreviousRestrictedEditingException'),_0x2bace0['enableCommand']('goToNextRestrictedEditingException');const _0x158342=_0x1eed03['plugins']['get']('RestrictedEditingModeEditing');_0x158342['enableCommand']('trackChanges'),_0x158342['enableCommand']('acceptSuggestion'),_0x158342['enableCommand']('discardSuggestion'),_0x158342['enableCommand']('acceptAllSuggestions'),_0x158342['enableCommand']('discardAllSuggestions'),_0x158342['enableCommand']('acceptSelectedSuggestions'),_0x158342['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x5667d7{afterInit(){const _0x1567a5=this['editor'];if(!_0x1567a5['plugins']['has']('ShiftEnter'))return;const _0x116f27=_0x1567a5['plugins']['get']('TrackChangesEditing');_0x116f27['enableCommand']('shiftEnter'),_0x116f27['descriptionFactory']['registerElementLabel']('softBreak',_0xd2642b=>Mt(_0x1567a5['locale'],'ELEMENT_LINE_BREAK',_0xd2642b));}};function Be(_0x16dcf7,_0xcfd996,_0x544074){const _0x41fdf8=[];for(const _0x21e1f4 of _0xcfd996['getItems']())_0x21e1f4['hasAttribute'](_0x16dcf7)&&_0x41fdf8['push'](_0x544074['createRangeOn'](_0x21e1f4));return _0x41fdf8;}var ve=class extends _0x5667d7{afterInit(){const _0x3f8a40=this['editor'],_0xf5d3b8=_0x3f8a40['plugins']['get']('TrackChangesEditing');_0x3f8a40['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xf5d3b8['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x3524bf=this['editor'],_0x1b5366=_0x3524bf['model'],_0x4e30cf=_0x3524bf['locale'],_0xc79978=_0x3524bf['plugins']['get']('TrackChangesEditing'),_0x593286='restrictedEditingException',_0x578a12=_0x3524bf['commands']['get'](_0x593286);_0xc79978['enableCommand'](_0x593286,(_0xf225e8,_0x12cef2={})=>{const _0x426d02=_0x1b5366['document']['selection'];if(_0x426d02['isCollapsed'])return void _0xf225e8(_0x12cef2);const _0x3128e3=void 0x0!==_0x12cef2['forceValue']?_0x12cef2['forceValue']:!_0x578a12['value'];_0x1b5366['change'](()=>{const _0x2aa355=Array['from'](_0x426d02['getRanges']());for(const _0x5bd4cc of _0x2aa355){const _0x88531a=_0x3128e3?[_0x5bd4cc]:Be(_0x593286,_0x5bd4cc,_0x1b5366);for(const _0x3a11ca of _0x88531a)_0xc79978['markInlineFormat'](_0x3a11ca,{'commandName':_0x593286,'commandParams':[{'forceValue':_0x3128e3}]});}});}),_0xc79978['descriptionFactory']['registerDescriptionCallback'](_0x12bff6=>{if('formatBlock'!=_0x12bff6['type']&&'formatInline'!=_0x12bff6['type'])return;const {data:_0x4c44df}=_0x12bff6;return _0x4c44df&&_0x4c44df['commandName']==_0x593286?_0x4c44df['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4e30cf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x4e30cf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x4a683d=this['editor'],_0xdf4d25=_0x4a683d['locale'],_0x2ac0c9=_0x4a683d['plugins']['get']('TrackChangesEditing'),_0x3644ae='restrictedEditingExceptionBlock',_0x254b03=this['editor']['commands']['get'](_0x3644ae);_0x2ac0c9['enableCommand'](_0x3644ae,(_0x37645f,_0x52e3ef={})=>{const _0x17def8=this['editor']['model']['document']['selection'],_0x4345ee=_0x52e3ef&&void 0x0!==_0x52e3ef['forceValue']?_0x52e3ef['forceValue']:!_0x254b03['value'];let _0x3a2683=[];if(_0x4345ee){const _0x4e3aad=Array['from'](_0x17def8['getSelectedBlocks']())['filter'](_0x2da96d=>function(_0x366dd6){return!!_0x366dd6['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2da96d)||function(_0x2b9947,_0xaaf527){const _0x289bfa=_0xaaf527['createContext'](_0x2b9947['parent']);return!!_0xaaf527['checkChild'](_0x289bfa,'restrictedEditingException')&&!!_0xaaf527['checkChild'](_0x289bfa['push']('restrictedEditingException'),_0x2b9947);}(_0x2da96d,this['editor']['model']['schema']));_0x3a2683=bt(_0x4e3aad,_0x4a683d['model']);}else{const _0x3a3f00=Array['from'](_0x17def8['getSelectedBlocks']())['map'](_0x3fa102=>function(_0x37a91f){let _0x1fdc70=_0x37a91f;for(;_0x1fdc70['parent'];){if('restrictedEditingException'==_0x1fdc70['parent']['name'])return _0x1fdc70;_0x1fdc70=_0x1fdc70['parent'];}return null;}(_0x3fa102))['filter'](_0x4c9577=>!!_0x4c9577);_0x3a2683=bt(_0x3a3f00,_0x4a683d['model']);}_0x4a683d['model']['change'](()=>{for(const _0x17cb59 of _0x3a2683)_0x2ac0c9['markBlockFormat'](_0x17cb59,{'commandName':_0x3644ae,'commandParams':[{'forceValue':_0x4345ee}]});});}),_0x2ac0c9['descriptionFactory']['registerDescriptionCallback'](_0x544c97=>{const {data:_0x9ec5b9}=_0x544c97;if(_0x9ec5b9&&_0x9ec5b9['commandName']==_0x3644ae)return _0x9ec5b9['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0xdf4d25,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0xdf4d25,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x5667d7{afterInit(){const _0x1e19b1=this['editor'];_0x1e19b1['plugins']['has']('Style')&&_0x1e19b1['plugins']['has']('DataSchema')&&(_0x1e19b1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3370ff=this['editor'],_0x45567e=_0x3370ff['locale'];_0x3370ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27819f=>{if('formatBlock'!=_0x27819f['type']&&'formatInline'!=_0x27819f['type'])return;const {data:_0x2265d4}=_0x27819f;return _0x2265d4&&'style'===_0x2265d4['commandName']?_0x2265d4['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x45567e,'*Set\x20format:*\x20%0',_0x2265d4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x45567e,'*Remove\x20format:*\x20%0',_0x2265d4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x5667d7{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x4bdb7c){super(_0x4bdb7c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x445066=this['editor'],_0x431f2f=_0x445066['model']['document']['selection'];if(!_0x445066['plugins']['has']('TableEditing'))return;const _0x5d09e2=_0x445066['locale'],_0x2e508a=_0x445066['plugins']['get']('TrackChangesEditing'),_0x7b90f2=_0x445066['plugins']['get']('TableUtils');_0x2e508a['descriptionFactory']['registerElementLabel']('table',_0x1f4862=>Mt(_0x5d09e2,'ELEMENT_TABLE',_0x1f4862)),this['_setupColumnsRowsFixing'](),_0x2e508a['enableCommand']('insertTable'),_0x2e508a['enableCommand']('selectTableRow'),_0x2e508a['enableCommand']('selectTableColumn');for(const _0x48174c of['insertTableRowAbove','insertTableRowBelow']){const _0x58676f=_0x445066['commands']['get'](_0x48174c);_0x2e508a['enableCommand'](_0x48174c,_0x1fd888=>{_0x445066['model']['change'](_0xeb9776=>{_0x1fd888();const _0x5d31d5='above'===_0x58676f['order'],_0x34070b=_0x7b90f2['getSelectionAffectedTableCells'](_0x431f2f),_0x354a37=_0x7b90f2['getRowIndexes'](_0x34070b),_0x3c51ac=_0x5d31d5?_0x354a37['first']-0x1:_0x354a37['last']+0x1,_0x5a5e00=_0x34070b[0x0]['findAncestor']('table'),_0x5f0705=_0x7b90f2['createTableWalker'](_0x5a5e00,{'startRow':_0x3c51ac,'endRow':_0x3c51ac}),_0x2e499e=Array['from'](_0x5f0705)['map'](_0x2d7ca7=>_0xeb9776['createRangeOn'](_0x2d7ca7['cell']));_0x2e508a['markMultiRangeInsertion'](_0x2e499e,'tableRow');});});}for(const _0x5530ab of['insertTableColumnLeft','insertTableColumnRight']){const _0x44fd7d=_0x445066['commands']['get'](_0x5530ab);_0x2e508a['enableCommand'](_0x5530ab,_0x24a3c1=>{_0x445066['model']['change'](_0x774e39=>{_0x24a3c1();const _0xd032d3='left'===_0x44fd7d['order'],_0x3b0da3=_0x7b90f2['getSelectionAffectedTableCells'](_0x431f2f),_0x5aa991=_0x7b90f2['getColumnIndexes'](_0x3b0da3),_0x3563ea=_0xd032d3?_0x5aa991['first']-0x1:_0x5aa991['last']+0x1,_0x13d5e3=_0x3b0da3[0x0]['findAncestor']('table'),_0x4e22a2=_0x7b90f2['createTableWalker'](_0x13d5e3,{'startRow':0x0,'column':_0x3563ea,'includeAllSlots':!0x1}),_0x366900=Array['from'](_0x4e22a2)['map'](_0x2944d3=>_0x774e39['createRangeOn'](_0x2944d3['cell']));_0x2e508a['markMultiRangeInsertion'](_0x366900,'tableColumn');});});}for(const _0x3e80cc of['removeTableRow','removeTableColumn']){const _0xe487f8=_0x3e80cc['substr'](0xb),_0x589601=_0xe487f8['toLowerCase'](),_0x2f5e6d=_0x589601['substr'](0x0,0x3)+'span',_0x3c8933='table'+_0xe487f8,_0x1ea9cf='min'+_0xe487f8,_0x553c0a='max'+_0xe487f8;_0x2e508a['enableCommand'](_0x3e80cc,()=>{_0x445066['model']['change'](_0x5288a5=>{const _0x332f2a=_0x7b90f2['getSelectionAffectedTableCells'](_0x431f2f),_0x266f02=_0x332f2a[0x0]['findAncestor']('table');let _0x1a9015;if('removeTableRow'==_0x3e80cc){const _0x451e8e=_0x7b90f2['getRowIndexes'](_0x332f2a);_0x1a9015={'startRow':_0x451e8e['first'],'endRow':_0x451e8e['last'],'includeAllSlots':!0x0};}else{const _0x35d4fb=_0x7b90f2['getColumnIndexes'](_0x332f2a);_0x1a9015={'startColumn':_0x35d4fb['first'],'endColumn':_0x35d4fb['last'],'includeAllSlots':!0x0};}const _0x3e05c8=_0x7b90f2['createTableWalker'](_0x266f02,_0x1a9015),_0x1d3d61=Array['from'](_0x3e05c8)['map'](({cell:_0x5d7061})=>_0x5d7061),_0x29ca23=Pe(_0x1d3d61['filter'](_0x4c8d3c=>_0x4c8d3c['hasAttribute'](_0x2f5e6d))),_0x4296d3=Pe(_0x1d3d61['filter'](_0x4f77de=>!_0x4f77de['hasAttribute'](_0x2f5e6d)))['map'](_0x461b65=>_0x5288a5['createRangeOn'](_0x461b65)),_0x211a06=_0x2e508a['markMultiRangeDeletion'](_0x4296d3,_0x3c8933);if(_0x211a06&&('tableRow'==_0x211a06['subType']||'tableColumn'==_0x211a06['subType'])){const _0x3d51ea=this['_getSuggestionCoords'](_0x211a06);for(const _0x31b5fd of _0x29ca23){const _0x30e595=_0x5288a5['createRangeOn'](_0x31b5fd),_0x5ec581=_0x7b90f2['getCellLocation'](_0x31b5fd),_0x2d830f=_0x31b5fd['getAttribute'](_0x2f5e6d)-0x1,_0x8163ed=_0x3d51ea[_0x1ea9cf],_0x8b5557=_0x3d51ea[_0x553c0a];_0x8163ed<=_0x5ec581[_0x589601]&&_0x5ec581[_0x589601]+_0x2d830f<=_0x8b5557&&_0x211a06['addRange'](_0x30e595);}}});});}function _0x64c28(_0x36331b){const _0xa9ddf4=Array['from'](_0x431f2f['getRanges']())['map'](_0x30dccb=>rt['fromRange'](_0x30dccb));_0x445066['model']['change'](_0x45da66=>{const _0x37aa49=_0x45da66['batch'];_0x36331b=_0x36331b['filter'](_0x17adc4=>'$graveyard'!=_0x17adc4['root']['rootName']),_0x45da66['setSelection'](_0x36331b),_0x445066['commands']['get']('removeTableRow')['refresh'](),_0x445066['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x445066['model']['enqueueChange'](()=>{_0x445066['model']['enqueueChange'](_0x37aa49,_0x4a2815=>{const _0x38b7ec=_0xa9ddf4['filter'](_0x134542=>'$graveyard'!=_0x134542['root']['rootName']);_0x38b7ec['length']>0x0&&_0x4a2815['setSelection'](_0x38b7ec);for(const _0x2fde0d of _0xa9ddf4)_0x2fde0d['detach']();});});});}function _0x3e0a2f(_0x423390){_0x445066['model']['change'](_0x52e567=>{const _0xd36191=Array['from'](_0x431f2f['getRanges']())['map'](_0x4a0754=>rt['fromRange'](_0x4a0754)),_0xd41d40=[];for(const _0x3fac5a of _0x423390)for(const _0x1e81e2 of _0x3fac5a['getItems']({'shallow':!0x0}))_0xd41d40['push'](_0x1e81e2);for(const _0x5ed6c5 of _0xd41d40)'$graveyard'!=_0x5ed6c5['root']['rootName']&&(_0x52e567['setSelection'](_0x52e567['createPositionAt'](_0x5ed6c5,0x0)),_0x445066['commands']['get']('removeTableColumn')['refresh'](),_0x445066['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1a694e=_0xd36191['filter'](_0x271486=>'$graveyard'!=_0x271486['root']['rootName']);_0x1a694e['length']>0x0&&_0x52e567['setSelection'](_0x1a694e);for(const _0x440c4a of _0xd36191)_0x440c4a['detach']();});}function _0x5f1fe5(_0x5e27d4,_0x2c5586){return _0x2c5586['every'](_0x1ae03b=>_0x5e27d4['some'](_0x718c9f=>_0x718c9f['end']['isEqual'](_0x1ae03b['start'])||_0x1ae03b['end']['isEqual'](_0x718c9f['start'])));}function _0x51a5d4(_0x5173de,_0x1d87ef){return!_0x5173de['some'](_0x3ff38b=>_0x1d87ef['some'](_0x1bab81=>_0x3ff38b['isIntersecting'](_0x1bab81)))&&_0x5173de['some'](_0x440139=>_0x1d87ef['some'](_0x4d4d49=>_0x440139['end']['isTouching'](_0x4d4d49['start'])));}_0x2e508a['descriptionFactory']['registerDescriptionCallback'](_0xaa4d25=>{if('insertion'!=_0xaa4d25['type']&&'deletion'!=_0xaa4d25['type'])return;const _0x57296d=_0xaa4d25['getContainedElement']();if(null!=_0x57296d&&_0x57296d['is']('element','table')){if('insertion'==_0xaa4d25['type']){const _0x4acdfb=_0xaa4d25['getItems']()['filter'](_0xfa4c99=>_0xfa4c99['is']('$textProxy'))['map'](_0x213ab1=>_0x213ab1['data']);if(_0x4acdfb['length'])return{'type':'insertion','content':Mt(_0x5d09e2,'*Insert:*\x20%0',Mt(_0x5d09e2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4acdfb['join']('\x20')+'\x22'))};}if('deletion'==_0xaa4d25['type']){const _0x2637ef=_0xaa4d25['getItems']()['filter'](_0x5da95e=>_0x5da95e['is']('$textProxy'))['map'](_0x24425c=>_0x24425c['data']);if(_0x2637ef['length'])return{'type':'deletion','content':Mt(_0x5d09e2,'*Remove:*\x20%0',Mt(_0x5d09e2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2637ef['join']('\x20')+'\x22'))};}}}),_0x2e508a['descriptionFactory']['registerDescriptionCallback'](_0x87c0e3=>{if('tableRow'==_0x87c0e3['subType']){const _0x4c645c=_0x87c0e3['getItems']()['filter'](_0x98ba17=>_0x98ba17['is']('$textProxy'))['map'](_0x12d974=>_0x12d974['data']),_0x1b8e53=this['_getSuggestionCoords'](_0x87c0e3),_0x1c6af=_0x1b8e53['maxRow']-_0x1b8e53['minRow']+0x1;if('insertion'==_0x87c0e3['type'])return _0x4c645c['length']?{'type':'insertion','content':Mt(_0x5d09e2,'*Insert:*\x20%0',Mt(_0x5d09e2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c6af,'\x22'+_0x4c645c['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x5d09e2,'*Insert:*\x20%0',Mt(_0x5d09e2,'ELEMENT_TABLE_ROW',_0x1c6af))};if('deletion'==_0x87c0e3['type'])return _0x4c645c['length']?{'type':'deletion','content':Mt(_0x5d09e2,'*Remove:*\x20%0',Mt(_0x5d09e2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c6af,'\x22'+_0x4c645c['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x5d09e2,'*Remove:*\x20%0',Mt(_0x5d09e2,'ELEMENT_TABLE_ROW',_0x1c6af))};}if('tableColumn'==_0x87c0e3['subType']){const _0x58aa42=_0x87c0e3['getItems']()['filter'](_0x24055d=>_0x24055d['is']('$textProxy'))['map'](_0x1de8e4=>_0x1de8e4['data']),_0x6226e9=this['_getSuggestionCoords'](_0x87c0e3),_0x323187=_0x6226e9['maxColumn']-_0x6226e9['minColumn']+0x1;if('insertion'==_0x87c0e3['type'])return _0x58aa42['length']?{'type':'insertion','content':Mt(_0x5d09e2,'*Insert:*\x20%0',Mt(_0x5d09e2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x323187,'\x22'+_0x58aa42['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x5d09e2,'*Insert:*\x20%0',Mt(_0x5d09e2,'ELEMENT_TABLE_COLUMN',_0x323187))};if('deletion'==_0x87c0e3['type'])return _0x58aa42['length']?{'type':'deletion','content':Mt(_0x5d09e2,'*Remove:*\x20%0',Mt(_0x5d09e2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x323187,'\x22'+_0x58aa42['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x5d09e2,'*Remove:*\x20%0',Mt(_0x5d09e2,'ELEMENT_TABLE_COLUMN',_0x323187))};}}),_0x2e508a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x64c28),_0x2e508a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x64c28),_0x2e508a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3e0a2f),_0x2e508a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3e0a2f),_0x2e508a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5f1fe5),_0x2e508a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5f1fe5),_0x2e508a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x51a5d4),_0x2e508a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x51a5d4);}_acceptFormatSuggestionCallbackFactory(){const _0x4cae21=this['editor'],_0x341c15=_0x4cae21['model']['document']['selection'];return(_0x369cf5,_0x158d22)=>{_0x4cae21['model']['change'](_0x132110=>{const {commandName:_0x53352b,commandParams:_0x4e283d}=_0x158d22;let _0x5e3a9d=_0x369cf5[0x0]['end']['nodeBefore'];_0x4e283d&&_0x4e283d[0x0]&&!0x1===_0x4e283d[0x0]['forceValue']&&(_0x5e3a9d=_0x369cf5[0x0]['start']['nodeAfter']);const _0x23b2f0=_0x132110['createRangeIn'](_0x5e3a9d);if('$graveyard'==_0x23b2f0['root']['rootName'])return;const _0x258332=Array['from'](_0x341c15['getRanges']())['map'](_0x2ec5b7=>rt['fromRange'](_0x2ec5b7));_0x132110['setSelection'](_0x23b2f0),_0x4cae21['commands']['get'](_0x53352b)['refresh'](),_0x4e283d['push']({'forceDefaultExecution':!0x0}),_0x4cae21['execute'](_0x53352b,..._0x4e283d);const _0x5bc016=_0x258332['filter'](_0x3ca055=>'$graveyard'!=_0x3ca055['root']['rootName']);_0x5bc016['length']>0x0&&_0x132110['setSelection'](_0x5bc016);for(const _0x149129 of _0x258332)_0x149129['detach']();});};}_getCoordsForCells(_0x344038){const _0x47d59d=this['editor']['plugins']['get']('TableUtils');let _0x3d27b1=Number['MAX_SAFE_INTEGER'],_0x73451a=Number['MIN_SAFE_INTEGER'],_0x2981ae=Number['MAX_SAFE_INTEGER'],_0x2b9dd8=Number['MIN_SAFE_INTEGER'];for(const _0x29d7fa of _0x344038){if('$graveyard'==_0x29d7fa['root']['rootName'])continue;const {row:_0xcbb568,column:_0x6952c4}=_0x47d59d['getCellLocation'](_0x29d7fa),_0x5b6b5e=_0x29d7fa['hasAttribute']('rowspan')?_0x29d7fa['getAttribute']('rowspan')-0x1:0x0,_0x377925=_0x29d7fa['hasAttribute']('colspan')?_0x29d7fa['getAttribute']('colspan')-0x1:0x0;_0x3d27b1=_0xcbb568<_0x3d27b1?_0xcbb568:_0x3d27b1,_0x73451a=_0xcbb568+_0x5b6b5e>_0x73451a?_0xcbb568+_0x5b6b5e:_0x73451a,_0x2981ae=_0x6952c4<_0x2981ae?_0x6952c4:_0x2981ae,_0x2b9dd8=_0x6952c4+_0x377925>_0x2b9dd8?_0x6952c4+_0x377925:_0x2b9dd8;}return{'minRow':_0x3d27b1,'maxRow':_0x73451a,'minColumn':_0x2981ae,'maxColumn':_0x2b9dd8};}_setupColumnsRowsFixing(){const _0x3b0cc7=this['editor'],_0x33ac8b=_0x3b0cc7['plugins']['get']('TrackChangesEditing'),_0x2d6e9a=_0x3b0cc7['plugins']['get']('TableUtils');_0x3b0cc7['model']['document']['on']('change:data',()=>{const _0x364acf=Array['from'](_0x3b0cc7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bd3ee,data:_0x25b59a}of _0x364acf){const {group:_0x1c6ab9,id:_0x378c3f,subType:_0x4a82c0}=tt(_0x1bd3ee);if('suggestion'!=_0x1c6ab9)continue;if(null!=_0x25b59a['oldRange'])continue;const _0x28b99b=_0x33ac8b['getSuggestion'](_0x378c3f);this['_tablePostFixingSubtypes']['includes'](_0x4a82c0)&&this['_tableSuggestions']['add'](_0x28b99b);}},{'priority':'low'});const _0x5a7410=(_0x1367b5,_0x285e7)=>{let _0x10dce1=!0x1;const _0x4d9ee2=_0x285e7['createRangeOn'](_0x1367b5),_0x26d6d2=_0x1367b5['findAncestor']('table'),_0x57f1ed=_0x2d6e9a['getCellLocation'](_0x1367b5);for(const _0x2672c5 of this['_tableSuggestions']){const _0x41add4=_0x2672c5['subType'],_0x26d200=_0x41add4['startsWith']('tablePaste'),_0x4a6d5f=_0x41add4['substr'](_0x26d200?0xa:0x5),_0x50ea8c=_0x4a6d5f['toLowerCase'](),_0x2270c4=_0x50ea8c['substr'](0x0,0x3)+'span',_0x17ef0c='min'+_0x4a6d5f,_0x93dad7='max'+_0x4a6d5f;if(!_0x2672c5['isInContent'])continue;if(_0x26d6d2!=_0x2672c5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2672c5['isIntersectingWithRange'](_0x4d9ee2))continue;const _0x21bbf4=_0x1367b5['hasAttribute'](_0x2270c4)?_0x1367b5['getAttribute'](_0x2270c4)-0x1:0x0,_0x1814a9=this['_getSuggestionCoords'](_0x2672c5),_0x40b2e9=_0x1814a9[_0x17ef0c],_0x347e01=_0x1814a9[_0x93dad7];_0x40b2e9<=_0x57f1ed[_0x50ea8c]&&_0x57f1ed[_0x50ea8c]+_0x21bbf4<=_0x347e01&&(_0x2672c5['addRange'](_0x4d9ee2),_0x10dce1=!0x0);}return _0x10dce1;};_0x3b0cc7['model']['document']['registerPostFixer'](_0x356ebd=>{let _0x1e2127=!0x1;for(const _0x316720 of _0x3b0cc7['model']['document']['differ']['getChanges']())if('insert'==_0x316720['type']){if('tableRow'==_0x316720['name']){for(const _0x4231fb of _0x316720['position']['nodeAfter']['getChildren']())_0x1e2127=_0x1e2127||_0x5a7410(_0x4231fb,_0x356ebd);}else'tableCell'==_0x316720['name']&&(_0x1e2127=_0x1e2127||_0x5a7410(_0x316720['position']['nodeAfter'],_0x356ebd));}return _0x1e2127;});}_getSuggestionCoords(_0x5bf5e8){return this['_getCoordsForCells'](_0x5bf5e8['getRanges']()['map'](_0x12e27e=>_0x12e27e['start']['nodeAfter']));}};function Pe(_0x1c7272){return Array['from'](new Set(_0x1c7272)['values']());}var xe=class extends _0x5667d7{static get requires(){return[Ue];}afterInit(){const _0x30bdf2=this['editor'],_0x1764fe=_0x30bdf2['model']['document']['selection'],_0x6213a6=_0x30bdf2['locale'];if(!_0x30bdf2['plugins']['has']('TableEditing'))return;const _0xb69564=_0x30bdf2['plugins']['get']('TrackChangesEditing'),_0x438887=_0x30bdf2['plugins']['get']('TableUtils'),_0x47292f=_0x30bdf2['plugins']['get'](Ue);_0x47292f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xb69564['enableCommand']('mergeTableCells',()=>{const _0x1959bd=_0x438887['getSelectionAffectedTableCells'](_0x30bdf2['model']['document']['selection']);_0x30bdf2['model']['change'](()=>{_0xb69564['markMultiRangeBlockFormat'](_0x1959bd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x30bdf2['commands']['get']('mergeTableCells')['on']('execute',(_0x2d4555,_0x41e94e)=>{_0x30bdf2['commands']['get']('trackChanges')['value']&&(_0x41e94e['length']>0x0&&_0x41e94e[_0x41e94e['length']-0x1]&&_0x41e94e[_0x41e94e['length']-0x1]['forceDefaultExecution']||_0xb69564['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2d4555['stop']());},{'priority':'highest'});for(const _0x29ce8a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1eb253=_0x30bdf2['commands']['get'](_0x29ce8a);_0xb69564['enableCommand'](_0x29ce8a,()=>{const _0x150df9=_0x30bdf2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x287acb=>_0x287acb['is']('element','tableCell')),_0x305c0b=_0x1eb253['value'];_0x30bdf2['model']['change'](()=>{_0xb69564['markMultiRangeBlockFormat']([_0x150df9,_0x305c0b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x34ef33 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x52abd1=_0x30bdf2['commands']['get'](_0x34ef33);_0xb69564['enableCommand'](_0x34ef33,()=>{const _0x5467ad=_0x438887['getSelectionAffectedTableCells'](_0x30bdf2['model']['document']['selection']),_0x32f289=_0x5467ad[0x0]['findAncestor']('table'),_0x32b52e=new Set();for(const _0x12689d of _0x5467ad){const {column:_0x3cb9df,row:_0x4982b0}=_0x438887['getCellLocation'](_0x12689d),_0x31a428='horizontally'==_0x52abd1['direction']?_0x438887['createTableWalker'](_0x32f289,{'startRow':_0x4982b0,'endRow':_0x4982b0,'includeAllSlots':!0x0}):_0x438887['createTableWalker'](_0x32f289,{'column':_0x3cb9df,'includeAllSlots':!0x0});for(const {cell:_0x3b1aac}of _0x31a428)_0x32b52e['add'](_0x3b1aac);}_0x30bdf2['model']['change'](()=>{_0xb69564['markMultiRangeBlockFormat'](_0x5467ad,{'commandName':_0x34ef33,'commandParams':[]},Array['from'](_0x32b52e),_0x34ef33);});});}_0xb69564['descriptionFactory']['registerDescriptionCallback'](_0x13f159=>{if('formatBlock'!=_0x13f159['type']&&'formatInline'!=_0x13f159['type'])return;const {data:_0x15b74f}=_0x13f159;return _0x15b74f&&'mergeTableCells'==_0x15b74f['commandName']?{'type':'format','content':Mt(_0x6213a6,'*Merge\x20cells*')}:void 0x0;}),_0xb69564['descriptionFactory']['registerDescriptionCallback'](_0x5093f2=>{if('formatBlock'!=_0x5093f2['type']&&'formatInline'!=_0x5093f2['type'])return;const {data:_0x407a78}=_0x5093f2;return _0x407a78?'splitTableCellVertically'==_0x407a78['commandName']?{'type':'format','content':Mt(_0x6213a6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x407a78['commandName']?{'type':'format','content':Mt(_0x6213a6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4a7355=_0x47292f['_acceptFormatSuggestionCallbackFactory']();for(const _0x47e0b7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xb69564['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47e0b7,'accept',_0x4a7355);for(const _0x7e64a of['splitTableCellVertically','splitTableCellHorizontally'])_0xb69564['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7e64a,'accept',_0x76dde8=>{_0x30bdf2['model']['change'](_0x25c188=>{const _0x5d6cc1=Array['from'](_0x76dde8)['filter'](_0x5ea4e1=>'$graveyard'!=_0x5ea4e1['root']['rootName']&&!!_0x5ea4e1['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x5d6cc1['length'])return;const _0x1e5e71=Array['from'](_0x1764fe['getRanges']())['map'](_0x32f10b=>rt['fromRange'](_0x32f10b));_0x25c188['setSelection'](_0x5d6cc1),_0x30bdf2['commands']['get'](_0x7e64a)['refresh'](),_0x30bdf2['execute'](_0x7e64a,{'forceDefaultExecution':!0x0});const _0x410cbc=_0x1e5e71['filter'](_0x3f1286=>'$graveyard'!=_0x3f1286['root']['rootName']);_0x410cbc['length']>0x0&&_0x25c188['setSelection'](_0x410cbc);for(const _0x5277eb of _0x1e5e71)_0x5277eb['detach']();});});_0xb69564['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xdfc933=>{_0x30bdf2['model']['change'](_0x2d78e5=>{const _0x3e3a5a=Array['from'](_0x1764fe['getRanges']())['map'](_0x2a10e9=>rt['fromRange'](_0x2a10e9));_0x2d78e5['setSelection'](_0xdfc933),_0x30bdf2['commands']['get']('mergeTableCells')['refresh'](),_0x30bdf2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xf51639=_0x3e3a5a['filter'](_0x207929=>'$graveyard'!=_0x207929['root']['rootName']);_0xf51639['length']>0x0&&_0x2d78e5['setSelection'](_0xf51639);for(const _0x79aab3 of _0x3e3a5a)_0x79aab3['detach']();});});for(const _0x4870e8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x20f0c4=_0x30bdf2['commands']['get'](_0x4870e8);_0x20f0c4['on']('set:isEnabled',(_0x2342f7,_0x4f191f,_0x4eb48a)=>{if(_0x4eb48a){const _0x3b463d=_0x30bdf2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc008eb=>_0xc008eb['is']('element','tableCell'));this['_areMergableCells'](_0x20f0c4['value'],_0x3b463d)||(_0x2342f7['return']=!0x1,_0x2342f7['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x1fdf33=this['editor']['commands']['get']('mergeTableCells'),_0x147d5a=this['editor']['plugins']['get']('TableUtils');if(!_0x1fdf33['isEnabled'])return!0x1;const _0x21982e=_0x147d5a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5d3772 of _0x21982e)for(const _0x426602 of _0x21982e)if(_0x5d3772!=_0x426602&&!this['_areMergableCells'](_0x5d3772,_0x426602))return!0x1;return!0x0;}['_areMergableCells'](_0x5a9302,_0x1636e1){const _0x33b30b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdccf31=this['editor']['model']['createRangeOn'](_0x5a9302),_0x580baa=this['editor']['model']['createRangeOn'](_0x1636e1),_0x17364d=new Set(),_0x36d3da=new Set();for(const _0x1f3040 of _0x33b30b['getSuggestions']())if(('insertion'==_0x1f3040['type']||'deletion'==_0x1f3040['type']||'mergeTableCells'==_0x1f3040['subType'])&&_0x1f3040['isInContent']){for(const _0x6e3dfe of _0x1f3040['getRanges']())_0x6e3dfe['containsRange'](_0xdccf31,!0x0)&&_0x17364d['add'](_0x1f3040['type']+':'+_0x1f3040['author']['id']),_0x6e3dfe['containsRange'](_0x580baa,!0x0)&&_0x36d3da['add'](_0x1f3040['type']+':'+_0x1f3040['author']['id']);}if(_0x17364d['size']!=_0x36d3da['size'])return!0x1;for(const _0x21659b of _0x17364d)if(!_0x36d3da['has'](_0x21659b))return!0x1;return!0x0;}},Ge=class extends _0x5667d7{static get requires(){return[Ue];}afterInit(){const _0x37c816=this['editor'];if(!_0x37c816['plugins']['has']('TableEditing'))return;const _0x3f9834=_0x37c816['locale'],_0x12bc1d=_0x37c816['plugins']['get']('TrackChangesEditing');_0x12bc1d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x12bc1d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x12bc1d['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x3f9834,'FORMAT_HEADER_ROW')),_0x12bc1d['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x3f9834,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x37bbe6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25b5b6=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x37bbe6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x25b5b6),_0x37bbe6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x25b5b6),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x6b3622=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fce62=this['editor']['plugins']['get']('TableUtils');function _0x2ad54b({showActiveMarker:_0x167617=!0x0,setDataAttribute:_0x3d677c=!0x0}={}){return(_0x3ac2b4,_0x21bc3b,_0x4a479c)=>{const {type:_0x2d7438,id:_0x3d8b3c}=tt(_0x21bc3b['markerName']);if(!_0x6b3622['hasSuggestion'](_0x3d8b3c))return;const _0x2503bb=_0x6b3622['getSuggestion'](_0x3d8b3c),_0x4b2c35=_0x2503bb['data'];if('formatBlock'!=_0x2503bb['type']||!_0x4b2c35||'setTableColumnHeader'!=_0x4b2c35['commandName'])return;if(_0x21bc3b['item'])return void _0x3ac2b4['stop']();if(!_0x4a479c['consumable']['consume'](_0x21bc3b['markerRange'],_0x3ac2b4['name']))return;const _0xb2223d=_0x21bc3b['markerRange']['start']['nodeAfter'],_0x20157a=_0x21bc3b['markerRange']['end']['nodeBefore'],_0x5f08cb=_0xb2223d['parent']['parent'],{column:_0x46f446}=_0x3fce62['getCellLocation'](_0xb2223d),{column:_0x7722ec}=_0x3fce62['getCellLocation'](_0x20157a);for(let _0x2df21e=_0x46f446;_0x2df21e<=_0x7722ec;_0x2df21e++){const _0x5d73c8=_0x3fce62['createTableWalker'](_0x5f08cb,{'column':_0x2df21e,'includeAllSlots':!0x1});for(const _0x1a8481 of _0x5d73c8){const _0x3f26d8=_0x1a8481['cell'],_0x54d163=_0x4a479c['mapper']['toViewElement'](_0x3f26d8);_0x4a479c['writer']['addClass']('ck-suggestion-marker-'+_0x2d7438,_0x54d163),_0x3d677c&&_0x4a479c['writer']['setAttribute']('data-suggestion',_0x3d8b3c,_0x54d163),_0x4a479c['mapper']['bindElementToMarker'](_0x54d163,_0x21bc3b['markerName']),_0x167617&&(_0x6b3622['activeMarkers']['includes'](_0x21bc3b['markerName'])?_0x4a479c['writer']['addClass']('ck-suggestion-marker--active',_0x54d163):_0x4a479c['writer']['removeClass']('ck-suggestion-marker--active',_0x54d163));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ad54b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x417d05,_0x491cf0,_0x355d82)=>{_0x355d82['options']['showSuggestionHighlights']&&_0x2ad54b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x417d05,_0x491cf0,_0x355d82);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1d32be,_0x140f30,_0x432473)=>{const {type:_0x1b0d4f,id:_0x40ef1c}=tt(_0x140f30['markerName']);if(!_0x6b3622['hasSuggestion'](_0x40ef1c))return;const _0x2f6227=_0x6b3622['getSuggestion'](_0x40ef1c),_0x3a4b76=_0x2f6227['data'];if('formatBlock'!=_0x2f6227['type']||!_0x3a4b76||'setTableColumnHeader'!=_0x3a4b76['commandName'])return;const _0x3e6f35=_0x432473['mapper']['markerNameToElements'](_0x140f30['markerName']);if(_0x3e6f35){for(const _0x5d039e of _0x3e6f35)_0x432473['writer']['removeClass']('ck-suggestion-marker-'+_0x1b0d4f,_0x5d039e),_0x432473['writer']['removeClass']('ck-suggestion-marker--active',_0x5d039e),_0x432473['writer']['removeAttribute']('data-suggestion',_0x5d039e),_0x432473['mapper']['unbindElementFromMarkerName'](_0x5d039e,_0x140f30['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x125ad5=this['editor'],_0x22936d=_0x125ad5['locale'];function _0x19fe22(_0x41c170){return{'type':'format','content':Mt(_0x22936d,'*Format:*\x20%0',_0x41c170)};}_0x125ad5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x448240=>{if('formatBlock'!=_0x448240['type'])return;const {data:_0x1c1de8}=_0x448240;return _0x1c1de8?'setTableRowHeader'==_0x1c1de8['commandName']?_0x1c1de8['commandParams'][0x0]['forceValue']?_0x19fe22(Mt(_0x22936d,'FORMAT_HEADER_ROW')):_0x19fe22(Mt(_0x22936d,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x1c1de8['commandName']?_0x1c1de8['commandParams'][0x0]['forceValue']?_0x19fe22(Mt(_0x22936d,'FORMAT_HEADER_COLUMN')):_0x19fe22(Mt(_0x22936d,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x5667d7{static get requires(){return[Ue];}afterInit(){const _0x133339=this['editor'];if(!_0x133339['plugins']['has']('TableEditing')||!_0x133339['config']['get']('table.enableFooters'))return;const _0x1dd60e=_0x133339['locale'],_0x21220b=_0x133339['plugins']['get']('TrackChangesEditing');_0x21220b['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x21220b['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x1dd60e,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x5667d7{afterInit(){const _0x1795ee=this['editor'],_0x459a5d=_0x1795ee['locale'],_0xa8883b=_0x1795ee['plugins']['get']('TrackChangesEditing');function _0x3c425b(_0x41f18c){return{'type':'format','content':''+Mt(_0x459a5d,'*Set\x20table\x20type:*\x20%0',_0x41f18c)};}_0x1795ee['plugins']['has']('TableLayout')&&(_0xa8883b['enableCommand']('insertTableLayout'),_0xa8883b['enableDefaultAttributesIntegration']('tableType'),_0xa8883b['descriptionFactory']['registerElementLabel'](_0x2bf61d=>_0x2bf61d['is']('element','table')&&'layout'===_0x2bf61d['getAttribute']('tableType'),_0x31f9df=>Mt(_0x459a5d,'ELEMENT_LAYOUT_TABLE',_0x31f9df)),_0xa8883b['descriptionFactory']['registerDescriptionCallback'](_0x3a483a=>{const {data:_0x1392ed}=_0x3a483a;if(_0x1392ed&&'tableType'==_0x1392ed['key'])switch(_0x1392ed['newValue']){case'layout':return _0x3c425b(Mt(_0x459a5d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3c425b(Mt(_0x459a5d,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](We['map'](_0x43b80d=>[_0x43b80d,null]));var je=class extends _0x5667d7{static get requires(){return[Ue];}afterInit(){const _0x445e49=this['editor'];if(!_0x445e49['plugins']['has']('TableClipboard'))return;const _0x35bf93=_0x445e49['plugins']['get']('TrackChangesEditing'),_0x4b2861=_0x445e49['plugins']['get']('TableUtils'),_0x3e0f61=_0x445e49['plugins']['get'](Ue),_0xf5baa5=_0x445e49['plugins']['get']('TableClipboard'),_0x2de6f7=_0x445e49['plugins']['get']('TableSelection'),_0x549c17=_0x445e49['plugins']['get'](gt);_0x3e0f61['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x445e49['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x445e49['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x23709a=null,_0x528b76=!0x1;_0x549c17['on']('contentInsertion',(_0x5abc36,_0x49f674)=>{_0x528b76='paste'===_0x49f674['method'];}),_0x445e49['model']['on']('insertContent',(_0x2762bf,_0x1df3f8)=>{if(!_0x528b76&&null===_0x2de6f7['getSelectedTableCells']())return;const [_0x100de1,_0x767809]=_0x1df3f8,_0x478ce0=_0x1df3f8[_0x1df3f8['length']-0x1];_0x478ce0&&_0x478ce0['forceDefaultExecution']||_0x35bf93['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1a8b7f,_0x1183ee,_0x2a4684,_0x99a952,_0x9205f8){if(_0x1183ee&&!_0x1183ee['is']('documentSelection'))return!0x1;const _0x59ea16=_0x9205f8['getTableIfOnlyTableInContent'](_0x1a8b7f,_0x2a4684);if(!_0x59ea16||!Ke(_0x59ea16,void 0x0,_0x99a952))return!0x1;const _0xf6838a=_0x99a952['getSelectionAffectedTableCells'](_0x2a4684['document']['selection']);if(!_0xf6838a['length'])return!0x1;const _0x54b4b0=_0xf6838a[0x0]['findAncestor']('table'),_0xb81f18=_0x99a952['getRowIndexes'](_0xf6838a),_0x1bf3ef=_0x99a952['getColumnIndexes'](_0xf6838a),_0x13a838={'startRow':_0xb81f18['first'],'endRow':_0xb81f18['last'],'startColumn':_0x1bf3ef['first'],'endColumn':_0x1bf3ef['last']};return 0x1==_0xf6838a['length']&&(_0x13a838['endRow']+=_0x99a952['getRows'](_0x59ea16)-0x1,_0x13a838['endColumn']+=_0x99a952['getColumns'](_0x59ea16)-0x1),Ke(_0x54b4b0,_0x13a838,_0x99a952);}(_0x100de1,_0x767809,_0x445e49['model'],_0x4b2861,_0xf5baa5)&&(_0x2762bf['stop'](),_0x23709a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x445e49['model']['change'](()=>{_0x445e49['model']['insertContent'](_0x1df3f8[0x0],_0x1df3f8[0x1],_0x1df3f8[0x2],{'forceDefaultExecution':!0x0});const _0x5f121a=_0x465e2c(),{rowInsertionRanges:_0x4bd04d,columnInsertionRanges:_0x516883,insertionRanges:_0x200501,deletionRanges:_0x29866b,cells:_0x16c5cd}=_0x23709a;_0x4bd04d['length']&&_0x35bf93['markMultiRangeInsertion'](_0x4bd04d,'tablePasteRow',{'tablePasteChainId':_0x5f121a}),_0x516883['length']&&_0x35bf93['markMultiRangeInsertion'](_0x516883,'tablePasteColumn',{'tablePasteChainId':_0x5f121a}),_0x200501['length']&&(_0x35bf93['markMultiRangeInsertion'](_0x200501,'tablePaste',{'tablePasteChainId':_0x5f121a,'skipNestingCheck':!0x0}),_0x200501['forEach'](_0x5d8da5=>_0x5d8da5['detach']?.())),_0x29866b['length']&&(_0x35bf93['markMultiRangeDeletion'](_0x29866b,'tablePaste',{'tablePasteChainId':_0x5f121a,'skipNestingCheck':!0x0}),_0x29866b['forEach'](_0x5b1d8d=>_0x5b1d8d['detach']?.()));const _0x312739=_0x35bf93['markMultiRangeBlockFormat'](_0x16c5cd['map'](({element:_0x528b6c})=>_0x528b6c),{'formatGroupId':_0x465e2c()},[],'tablePasteCell',{'tablePasteChainId':_0x5f121a});if(_0x312739){const _0x1ee6a3=_0x312739['getMarkers'](),_0x4817bb=[];for(const {element:_0x5361a1,attributes:_0x2791e4}of _0x16c5cd){if(!_0x2791e4)continue;const _0x371aa3=_0x445e49['model']['createRangeOn'](_0x5361a1),_0x2a89f6=_0x1ee6a3['find'](_0x158968=>_0x158968['getRange']()['isEqual'](_0x371aa3));_0x2a89f6&&_0x4817bb['push']([_0x2a89f6['name'],_0x2791e4]);}_0x4817bb['length']&&_0x312739['setAttribute']('markerAttributes',Object['fromEntries'](_0x4817bb));}_0x23709a=null;}));},{'priority':_0x34be95['high']+0xa}),_0x549c17['on']('contentInsertion',()=>{_0x528b76=!0x1;},{'priority':'lowest'}),_0x445e49['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x56e38a,_0x28dec1)=>{const [_0x18a358,_0x2624f9,,_0x4cf178]=_0x28dec1;if(!_0x23709a)return;_0x56e38a['stop']();const _0x4bcf23=_0x18a358['cell'],_0x3ef7d1=_0x2624f9,_0x4494af=ze(_0x4bcf23),_0x25fe01=ze(_0x3ef7d1);_0x56e38a['return']=_0x4bcf23;let _0x31ff91=null,_0x56c1bc=null;if(_0x25fe01||_0x4494af){if(_0x4494af&&!_0x25fe01){_0x4cf178['remove'](_0x4bcf23['getChild'](0x0));for(const _0x26daac of Array['from'](_0x3ef7d1['getChildren']()))_0x4cf178['insert'](_0x26daac,_0x4bcf23,'end');const _0x424874=_0x23709a['rowInsertionIndexes']['includes'](_0x18a358['row']),_0x14b363=_0x23709a['columnInsertionIndexes']['includes'](_0x18a358['column']);_0x424874||_0x14b363||(_0x31ff91=rt['fromRange'](_0x4cf178['createRangeIn'](_0x4bcf23)));}else _0x25fe01&&!_0x4494af&&(_0x56c1bc=_0x4cf178['createRangeIn'](_0x4bcf23));}else{const _0x3b5788=_0x4cf178['createElement']('tableCellSuggestion'),_0x4dc10d=_0x4cf178['createElement']('tableCellSuggestion');_0x4cf178['wrap'](_0x4cf178['createRangeIn'](_0x4bcf23),_0x4dc10d),_0x4cf178['insert'](_0x3b5788,_0x4bcf23,0x0);for(const _0x5d2345 of Array['from'](_0x3ef7d1['getChildren']()))_0x4cf178['insert'](_0x5d2345,_0x3b5788,'end');_0x31ff91=rt['fromRange'](_0x4cf178['createRangeOn'](_0x3b5788)),_0x56c1bc=rt['fromRange'](_0x4cf178['createRangeOn'](_0x4dc10d));}const _0x45cb84=Array['from'](_0x3ef7d1['getAttributes']())['filter'](([_0xe90d0e])=>We['includes'](_0xe90d0e));_0x23709a['cells']['push']({'element':_0x4bcf23,'attributes':_0x45cb84['length']?Object['fromEntries'](_0x45cb84):null}),_0x31ff91&&_0x23709a['insertionRanges']['push'](_0x31ff91),_0x56c1bc&&_0x23709a['deletionRanges']['push'](_0x56c1bc);},{'priority':'high'}),_0x4b2861['on']('insertColumns',(_0x85e9a1,_0x3818ac)=>{const [_0x57061b,_0x3fb4f7={}]=_0x3818ac;if(!_0x23709a)return;const _0x2602ae=_0x3fb4f7['at']||0x0,_0x1f305a=_0x3fb4f7['columns']||0x1;_0x23709a['columnInsertionIndexes']=new Array(_0x1f305a)['fill'](_0x2602ae)['map']((_0x51e217,_0x15c816)=>_0x51e217+_0x15c816);for(const {cell:_0x4da376}of _0x4b2861['createTableWalker'](_0x57061b,{'startColumn':_0x2602ae,'endColumn':_0x2602ae+_0x1f305a-0x1}))_0x23709a['columnInsertionRanges']['push'](_0x445e49['model']['createRangeOn'](_0x4da376));},{'priority':'low'}),_0x4b2861['on']('insertRows',(_0x5327ef,_0x4ab485)=>{const [_0x4c46f9,_0x4c3489={}]=_0x4ab485;if(!_0x23709a)return;const _0x462885=_0x4c3489['at']||0x0,_0x8d6436=_0x4c3489['rows']||0x1;_0x23709a['rowInsertionIndexes']=new Array(_0x8d6436)['fill'](_0x462885)['map']((_0x2ae714,_0x541dac)=>_0x2ae714+_0x541dac);for(const {cell:_0x2a96e9}of _0x4b2861['createTableWalker'](_0x4c46f9,{'startRow':_0x462885,'endRow':_0x462885+_0x8d6436-0x1}))_0x23709a['rowInsertionRanges']['push'](_0x445e49['model']['createRangeOn'](_0x2a96e9));},{'priority':'low'}),_0x35bf93['descriptionFactory']['registerDescriptionCallback'](_0x55f83b=>{if(_0x55f83b['subType']&&_0x55f83b['subType']['startsWith']('tablePaste'))return _0x55f83b['previous']?{}:{'type':'insertion','content':Mt(_0x445e49['locale'],'*Replace\x20table\x20cells*')};});const _0x5d1259=()=>!0x1;for(const _0x1dd337 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x35bf93['_suggestionFactory']['registerCustomCallback']('insertion',_0x1dd337,'join',_0x5d1259),_0x35bf93['_suggestionFactory']['registerCustomCallback']('deletion',_0x1dd337,'join',_0x5d1259),_0x35bf93['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1dd337,'join',_0x5d1259);_0x35bf93['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5d1259),_0x35bf93['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4fb5ac,_0x1762d5,_0x5b4f81)=>{const _0x530bbe=_0x4fb5ac['map'](_0x39a64c=>_0x39a64c['getContainedElement']())['filter'](_0x8e346b=>_0x8e346b),_0x19fc82=new Map(_0x530bbe['map'](_0x1d7f34=>[_0x1d7f34,null]));if(_0x23709a){for(const {element:_0x240c7f,attributes:_0x202209}of _0x23709a['cells'])_0x202209&&_0x19fc82['set'](_0x240c7f,_0x202209);}else{if(_0x5b4f81&&_0x5b4f81['markerAttributes'])for(const [_0xfdeca8,_0x35dfc4]of Object['entries'](_0x5b4f81['markerAttributes'])){const _0xa19852=_0x445e49['model']['markers']['get'](_0xfdeca8),_0x427534=_0xa19852?_0xa19852['getRange']()['getContainedElement']():null;_0x427534&&_0x19fc82['set'](_0x427534,_0x35dfc4);}}_0x445e49['model']['change'](_0x159dbd=>{for(const [_0x13d0b7,_0xfb7976]of _0x19fc82)_0x159dbd['setAttributes']({...Ve,..._0xfb7976},_0x13d0b7);});});const _0x125096=(_0x153f4f,_0x346288)=>{_0x35bf93['_suggestionFactory']['registerCustomCallback'](_0x153f4f,'tablePaste',_0x346288,(_0x394936,_0x2c6a93,_0x366825)=>{_0x445e49['model']['change'](_0x52206c=>{const _0x1824b3=[];for(const _0x5e4629 of _0x394936){const _0x108400=_0x5e4629['start']['nodeAfter'];_0x108400['is']('element','tableCellSuggestion')&&_0x1824b3['push'](_0x108400);}_0x35bf93['_suggestionFactory']['getSuggestionCallback'](_0x153f4f,null,_0x346288)(_0x394936,_0x2c6a93,_0x366825);for(const _0x592540 of _0x1824b3)'$graveyard'!=_0x592540['root']['rootName']&&_0x52206c['unwrap'](_0x592540);});});};_0x125096('insertion','accept'),_0x125096('insertion','discard'),_0x125096('deletion','accept'),_0x125096('deletion','discard'),_0x35bf93['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x28ad40=>{const _0x3b53f3=_0x28ad40['map'](_0x444bca=>_0x444bca['getContainedElement']()),_0x1b79ab=_0x3b53f3[0x0]['findAncestor']('table'),{minRow:_0x104101,maxRow:_0x50a07e}=_0x3e0f61['_getCoordsForCells'](_0x3b53f3);_0x4b2861['removeRows'](_0x1b79ab,{'at':_0x104101,'rows':_0x50a07e-_0x104101+0x1});}),_0x35bf93['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3c1c87=>{const _0x44014d=_0x3c1c87['map'](_0x190b46=>_0x190b46['getContainedElement']()),_0x3fbfe9=_0x44014d[0x0]['findAncestor']('table'),{minColumn:_0x49ea9f,maxColumn:_0x1f00d4}=_0x3e0f61['_getCoordsForCells'](_0x44014d);_0x4b2861['removeColumns'](_0x3fbfe9,{'at':_0x49ea9f,'columns':_0x1f00d4-_0x49ea9f+0x1});});const _0x41464b=(_0x2ec5ed,_0x3fe2f2)=>{if(!_0x3fe2f2['subType']||!_0x3fe2f2['subType']['startsWith']('tablePaste'))return;const _0x405f03=_0x3fe2f2['attributes']['tablePasteChainId'],_0x3c05ec=_0x35bf93['getSuggestions']()['filter'](_0xe90b96=>_0xe90b96['isInContent']&&_0xe90b96['attributes']&&_0xe90b96['attributes']['tablePasteChainId']==_0x405f03);_0x3c05ec['length']&&_0x3fe2f2['getAllAdjacentSuggestions']()['length']!=_0x3c05ec['length']&&_0x3c05ec['reduce']((_0x2a8346,_0xfa8af8)=>(_0x2a8346['next']=_0xfa8af8,_0xfa8af8['previous']=_0x2a8346,_0xfa8af8));};function _0x3a9fb5(_0x276394,_0x4c7a5e=!0x0){const {id:_0x324301,authorId:_0x1ddf1f}=tt(_0x276394['markerName']),_0x5f5380=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3ffa0b=_0x35bf93['activeMarkers']['includes'](_0x276394['markerName']);return _0x3ffa0b&&_0x5f5380['push']('ck-suggestion-marker--active'),{'classes':_0x5f5380,'attributes':{'data-suggestion':_0x324301,'data-author-id':_0x1ddf1f},'priority':_0x3ffa0b&&_0x4c7a5e?0xbc2:0xbb8};}_0x35bf93['on']('suggestionLoaded',_0x41464b,{'priority':'high'}),_0x35bf93['on']('suggestionUnloaded',_0x41464b,{'priority':'high'}),_0x445e49['model']['document']['registerPostFixer'](()=>{let _0x416413=!0x1;const _0x1e406a=Array['from'](_0x445e49['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x46c26a,data:_0x1f3c0e}of _0x1e406a){const {group:_0x80ac3b,type:_0xf1bcd9,id:_0x40b6de}=tt(_0x46c26a);if('suggestion'!=_0x80ac3b||'deletion'!=_0xf1bcd9||_0x1f3c0e['oldRange'])continue;if(!_0x35bf93['hasSuggestion'](_0x40b6de))continue;const _0x390879=_0x35bf93['getSuggestion'](_0x40b6de)['getRanges'](),_0x15675f=_0x445e49['plugins']['get']('Users')['me'];for(const _0x30eabf of _0x35bf93['getSuggestions']())if(_0x30eabf['isInContent']&&_0x30eabf['author']==_0x15675f&&'formatBlock'==_0x30eabf['type']&&'tablePasteCell'==_0x30eabf['subType']&&_0x30eabf['getRanges']()['every'](_0xf05247=>_0x390879['some'](_0x57ff90=>_0x57ff90['containsRange'](_0xf05247,!0x0)))){for(const _0x442e04 of _0x30eabf['getAllAdjacentSuggestions']())_0x442e04['isInContent']&&(_0x442e04['discard'](),_0x416413=!0x0);}}return _0x416413;}),_0x445e49['model']['document']['registerPostFixer'](_0x4846bc=>{const _0x31bb96=_0x445e49['commands']['get']('redo');if(!_0x31bb96||!_0x31bb96['_createdBatches']['has'](_0x4846bc['batch']))return!0x1;let _0x5baabe=!0x1;const _0x3027d6=_0x445e49['plugins']['get']('Users')['me'],_0x4b8487=_0x445e49['model']['document']['differ']['getChanges'](),_0x2d6408=Array['from'](_0x445e49['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xe4f22e,data:_0x17b83b})=>{const {group:_0x4a1926,subType:_0x507f42,authorId:_0x5d7767}=tt(_0xe4f22e);return'suggestion'==_0x4a1926&&'tablePaste'==_0x507f42&&_0x5d7767==_0x3027d6['id']&&!_0x17b83b['oldRange'];});for(const _0xd41c7a of _0x4b8487){if('insert'!=_0xd41c7a['type']||'tableCellSuggestion'!=_0xd41c7a['name']||0x1!=_0xd41c7a['length'])continue;const _0x1fc3a0=_0x4846bc['createRange'](_0xd41c7a['position'],_0xd41c7a['position']['getShiftedBy'](0x1));if(!_0x2d6408['find'](({data:_0x358ed0})=>_0x358ed0['newRange']['isEqual'](_0x1fc3a0))){for(const {name:_0x263d61,data:_0x5df0ac}of _0x2d6408)if(_0x1fc3a0['containsRange'](_0x5df0ac['newRange'])){_0x4846bc['updateMarker'](_0x263d61,{'range':_0x1fc3a0}),_0x5baabe=!0x0;break;}}}return _0x5baabe;}),_0x445e49['model']['document']['registerPostFixer'](_0x278c21=>{let _0x3e50ed=!0x1;const _0x5aabe3=_0x445e49['plugins']['get']('Users')['me'],_0x231444=_0x35bf93['getSuggestions']()['filter'](_0x440f69=>_0x440f69['isInContent']&&_0x440f69['author']==_0x5aabe3),_0x9de018=new Set(),_0x3602fb=new Set();for(const _0x4dde7d of _0x231444)if('tablePaste'==_0x4dde7d['subType'])for(const _0x868001 of _0x4dde7d['getMarkers']()){const _0x49b67c=_0x868001['getRange']()['getContainedElement']();if(_0x49b67c){if(_0x49b67c['is']('element','tableCellSuggestion')&&ze(_0x49b67c)){_0x4dde7d['removeMarker'](_0x868001['name']),_0x9de018['add'](_0x49b67c),_0x3e50ed=!0x0;const _0x1c2b2a=_0x49b67c['nextSibling'],_0x3be695=_0x49b67c['previousSibling'],_0x2a4489=_0x1c2b2a&&_0x1c2b2a['is']('element','tableCellSuggestion'),_0x284370=_0x3be695&&_0x3be695['is']('element','tableCellSuggestion');_0x2a4489&&!_0x9de018['has'](_0x1c2b2a)&&_0x3602fb['add'](_0x1c2b2a),_0x284370&&!_0x9de018['has'](_0x3be695)&&_0x3602fb['add'](_0x3be695);}else _0x49b67c['is']('element','paragraph')&&_0x49b67c['isEmpty']&&(_0x4dde7d['removeMarker'](_0x868001['name']),_0x3e50ed=!0x0);}}else{if('tablePasteCell'==_0x4dde7d['subType']){if(!_0x4dde7d['attributes']||!_0x4dde7d['attributes']['tablePasteChainId'])continue;const _0xff1eb4=_0x4dde7d['attributes']['markerAttributes'];if(_0xff1eb4&&Object['keys'](_0xff1eb4)['length'])continue;const _0x336705=_0x4dde7d['attributes']['tablePasteChainId'];let _0xfb97d9=!0x0,_0x1330ca=!0x0;for(const _0x220356 of _0x231444)if(_0x220356['subType']&&_0x220356['subType']['startsWith']('tablePaste')){if(!_0x220356['attributes']['tablePasteChainId']){_0x1330ca=!0x1;break;}if(_0x220356['id']!=_0x4dde7d['id']&&_0x220356['attributes']['tablePasteChainId']==_0x336705){_0xfb97d9=!0x1;break;}}_0x1330ca&&_0xfb97d9&&(_0x4dde7d['removeMarkers'](),_0x3e50ed=!0x0);}}for(const _0x2c540d of _0x9de018)_0x278c21['remove'](_0x2c540d);for(const _0x2ae335 of _0x3602fb)_0x278c21['unwrap'](_0x2ae335);return _0x3e50ed;}),_0x445e49['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x414834=>_0x3a9fb5(_0x414834),'converterPriority':'high'}),_0x445e49['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1b3590,_0x397730)=>_0x397730['options']['showSuggestionHighlights']?_0x3a9fb5(_0x1b3590,!0x1):null,'converterPriority':'high'});const _0x42e834=_0x445e49['editing']['view'];this['listenTo'](_0x42e834['document'],'clipboardOutput',(_0x496dd9,_0x302523)=>{const _0x29034c=[];for(const _0x221c54 of _0x42e834['createRangeIn'](_0x302523['content'])['getItems']())_0x221c54['is']('element','suggestion-td')&&_0x29034c['push'](_0x221c54);_0x42e834['change'](_0x387a98=>{for(const _0x3fceb1 of _0x29034c)_0x387a98['move'](_0x387a98['createRangeIn'](_0x3fceb1),_0x387a98['createPositionBefore'](_0x3fceb1)),_0x387a98['remove'](_0x3fceb1);});});}};function ze(_0x22fb79){if(_0x22fb79['isEmpty'])return!0x0;const _0x271181=_0x22fb79['getChild'](0x0);return _0x271181['is']('element','paragraph')&&_0x271181['isEmpty'];}function Ke(_0x33ac81,_0x3e0da7={},_0x471f6e){for(const {isAnchor:_0x30cf10,cellHeight:_0x1215b7,cellWidth:_0x119540}of _0x471f6e['createTableWalker'](_0x33ac81,{'includeAllSlots':!0x0,..._0x3e0da7}))if(!_0x30cf10||0x1!=_0x1215b7||0x1!=_0x119540)return!0x1;return!0x0;}var Xe=class extends _0x5667d7{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x351691=this['editor']['plugins']['get']('TrackChangesEditing');_0x351691['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x351691['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x351691['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x351691['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x28ea74=_0x351691['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x351691['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x2fa702,_0x2f7a3c)=>{_0x28ea74(_0x2fa702,_0x2f7a3c),this['_restoreCellWidths'](_0x2fa702[0x0]['start']['nodeAfter'],_0x2f7a3c['commandParams'][0x0]['cellWidths']);}),_0x351691['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x9dab19,_0x4bbf03){const _0x27a95f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfe9a40=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1beed0=_0x4bbf03['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4869d7=_0xfe9a40['getColumnGroupElement'](_0x1beed0);let _0xa45d47=_0x4869d7?_0xfe9a40['getTableColumnsWidths'](_0x4869d7):null,_0x5c3678=_0x1beed0['getAttribute']('tableWidth')||null;const _0x289f72=_0x4bbf03['tableWidth']||_0x5c3678,_0x3d4ba6=_0x4bbf03['columnWidths']||_0xa45d47;let _0x2b69ba=this['_getCellWidths'](_0x1beed0);const _0x346c04=this['_foldResizeTableSuggestion'](_0x1beed0);_0x346c04&&(_0x5c3678=_0x346c04['tableWidth'],_0xa45d47=_0x346c04['columnWidths'],_0x2b69ba=_0x346c04['cellWidths']||_0x2b69ba),_0x9dab19({'table':_0x1beed0,'tableWidth':_0x289f72,'columnWidths':_0x3d4ba6}),_0x27a95f['markBlockFormat'](_0x1beed0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5c3678,'columnWidths':_0xa45d47,'cellWidths':_0x2b69ba}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x4bf766,_0x523844={}){if(void 0x0===_0x523844['value']||''===_0x523844['value'])return void _0x4bf766(_0x523844);const _0x4b963c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19bbe1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x142219=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x523844['batch']||(_0x523844['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x523844['batch'],()=>{const _0x4c612c=_0x19bbe1['getColumnGroupElement'](_0x142219);let _0x29d870=_0x4c612c?_0x19bbe1['getTableColumnsWidths'](_0x4c612c):null,_0x74dbdd=_0x142219['getAttribute']('tableWidth')||null,_0x1d342c=this['_getCellWidths'](_0x142219);const _0x20482d=this['_foldResizeTableSuggestion'](_0x142219,!0x0);_0x20482d&&(_0x74dbdd=_0x20482d['tableWidth'],_0x29d870=_0x20482d['columnWidths'],_0x1d342c=_0x20482d['cellWidths']||_0x1d342c),_0x4bf766(_0x523844),_0x4b963c['markBlockFormat'](_0x142219,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x74dbdd,'columnWidths':_0x29d870,'cellWidths':_0x1d342c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x4dfaf7,_0x2663e7=!0x1){const _0x22088c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5044eb=this['editor']['plugins']['get']('Users')['me'];for(const _0x2bc510 of _0x22088c['getSuggestions']({'skipNotAttached':!0x0})){const _0x2f4389=_0x2bc510['getContainedElement']();if('resizeTable'===_0x2bc510['subType']&&_0x2f4389===_0x4dfaf7){_0x2bc510['author']!==_0x5044eb&&(_0x2663e7?_0x2bc510['removeMarkers']():_0x2bc510['discard']());const _0x441d11=_0x2bc510['data']['commandParams'];return{'tableWidth':_0x441d11[0x0]['tableWidth'],'columnWidths':_0x441d11[0x0]['columnWidths'],'cellWidths':_0x441d11[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x1149a0){const _0x2aac25=[];for(const _0x11261d of _0x1149a0['getChildren']())if(_0x11261d['is']('element','tableRow')){for(const _0x237038 of _0x11261d['getChildren']())_0x2aac25['push'](_0x237038['getAttribute']('tableCellWidth')||null);}return _0x2aac25;}_restoreCellWidths(_0x4b1374,_0x4c232b){_0x4c232b&&this['editor']['model']['change'](_0x104612=>{let _0x534416=0x0;for(const _0x4056e2 of _0x4b1374['getChildren']())if(_0x4056e2['is']('element','tableRow'))for(const _0xe2e8b1 of _0x4056e2['getChildren']()){const _0x2221d0=_0x4c232b[_0x534416++];_0x2221d0&&_0x104612['setAttribute']('tableCellWidth',_0x2221d0,_0xe2e8b1);}});}handleSuggestionDescription(_0xc53f3d){if('formatBlock'!=_0xc53f3d['type']&&'formatInline'!=_0xc53f3d['type'])return;const {data:_0x1388d3}=_0xc53f3d;return _0x1388d3&&'resizeTable'===_0x1388d3['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x5667d7{afterInit(){const _0x5b1ae3=this['editor'];_0x5b1ae3['plugins']['has']('Template')&&_0x5b1ae3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x5667d7{afterInit(){const _0x200426=this['editor'];if(!_0x200426['commands']['get']('insertTableOfContents'))return;_0x200426['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xd7a505=_0x200426['plugins']['get']('TrackChangesEditing'),_0x40c160=_0x200426['locale'];_0xd7a505['descriptionFactory']['registerElementLabel']('tableOfContents',_0x20f4ff=>Mt(_0x40c160,'ELEMENT_TABLE_OF_CONTENTS',_0x20f4ff));}},Qe=class extends _0x5667d7{afterInit(){const _0x582942=this['editor'];_0x582942['plugins']['has']('Title')&&(_0x582942['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x582942['locale'],'ELEMENT_TITLE')),_0x582942['model']['document']['registerPostFixer'](_0x12a232=>{let _0x3174cb=!0x1;const _0x528487=Array['from'](_0x582942['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2eb0fc,data:_0x2ee062}of _0x528487){const {group:_0x41e8eb}=tt(_0x2eb0fc);if('suggestion'!==_0x41e8eb||!_0x2ee062['newRange'])continue;const _0x5db4fb=_0x2ee062['newRange'],_0x2657cf=_0x5db4fb['end']['nodeBefore'];if(!_0x2657cf||!_0x2657cf['is']('element','title-content'))continue;if(!_0x5db4fb['start']['isTouching'](_0x5db4fb['end']))continue;const _0x4469f8=_0x582942['model']['schema']['getNearestSelectionRange'](_0x5db4fb['end'],'forward');if(_0x4469f8&&_0x4469f8['isCollapsed']){const _0x1f4ac5=_0x12a232['createRange'](_0x5db4fb['start'],_0x4469f8['start']);_0x1f4ac5['isEqual'](_0x5db4fb)||(_0x12a232['updateMarker'](_0x2eb0fc,{'range':_0x1f4ac5}),_0x3174cb=!0x0);}_0x3174cb||(_0x12a232['removeMarker'](_0x2eb0fc),_0x3174cb=!0x0);}return _0x3174cb;}));}},Ze=class extends _0x5667d7{afterInit(){const _0x45cd8d=this['editor'],_0x4eb50b=_0x45cd8d['plugins']['get']('TrackChangesEditing');_0x45cd8d['plugins']['has']('Uploadcare')&&(_0x4eb50b['enableCommand']('uploadcare'),_0x45cd8d['plugins']['has']('UploadcareImageEdit')&&(_0x4eb50b['enableCommand']('uploadcareImageEdit'),_0x4eb50b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4eb50b['descriptionFactory']['registerDescriptionCallback'](_0x4f8ebf=>{if('attribute'!=_0x4f8ebf['type'])return;const {data:_0x217e41}=_0x4f8ebf;return _0x217e41&&'uploadcareImageId'==_0x217e41['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x5667d7{afterInit(){const _0x3ca907=this['editor'],_0x1ffb59=_0x3ca907['plugins']['get']('TrackChangesEditing');_0x3ca907['plugins']['has']('UndoEditing')&&(_0x1ffb59['enableCommand']('undo'),_0x1ffb59['enableCommand']('redo'));}},tn=class extends _0x5667d7{static get requires(){return[Ue];}afterInit(){const _0x17ac27=this['editor'];_0x17ac27['plugins']['has']('TableCaptionEditing')&&_0x17ac27['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x5667d7{tableProperties;tableCellProperties;constructor(_0x4c75ce){super(_0x4c75ce),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x572859=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x243c11 of this['tableProperties'])_0x572859['enableCommand'](_0x243c11,(_0x242688,_0x191d3d)=>{const _0x36b4fc=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x243c11,[_0x36b4fc],this['tableProperties'],'tableProperties',_0x242688,_0x191d3d);});_0x572859['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x572859['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x572859['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x25d2ed,_0x4ebd71)=>this['handleDiscardAction'](this['tableProperties'],_0x25d2ed,_0x4ebd71)),_0x572859['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1e08b7 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1e08b7)&&_0x572859['enableCommand'](_0x1e08b7,(_0xfb397e,_0x2a149b)=>{const _0x327c15=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1e08b7,_0x327c15,this['tableCellProperties'],'tableCellProperties',_0xfb397e,_0x2a149b);});_0x572859['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x572859['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x572859['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1c08b3,_0x34fe97)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1c08b3,_0x34fe97)),_0x572859['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x572859['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x572859['descriptionFactory']['registerDescriptionCallback'](_0xc3dc99=>this['handleSuggestionDescription'](_0xc3dc99)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x182ac8,_0x236b3d,_0x3e8654,_0xb51cb6,_0x23cf30,_0xa152ca){const _0x50bb34=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xa152ca['batch'],()=>{for(const _0x445340 of _0x236b3d)if(this['_getSuggestion'](_0x445340,_0xb51cb6))_0x23cf30(_0xa152ca);else{const _0x345e9e={};for(const _0x3bb252 of _0x3e8654){const _0x1d30e9=_0x445340['getAttribute'](_0x3bb252);void 0x0!==_0x1d30e9&&(_0x345e9e[_0x3bb252]=_0x1d30e9);}const _0x4fb7ff=this['_getResizedColumnWidths'](_0x445340);_0x4fb7ff&&(_0x345e9e['columnWidths']=_0x4fb7ff),_0x23cf30(_0xa152ca),_0x50bb34['markBlockFormat'](_0x445340,{'commandParams':[_0x345e9e]},[],_0xb51cb6);}});}handleDiscardAction(_0xf50304,_0x49880a,_0x495bba){const _0x5870d9=_0x49880a[0x0]['start']['nodeAfter'],_0x15c61e=_0x495bba['commandParams'][0x0];this['editor']['model']['change'](_0x47585a=>{for(const _0x3d9896 of _0xf50304)void 0x0!==_0x15c61e[_0x3d9896]?_0x47585a['setAttribute'](_0x3d9896,_0x15c61e[_0x3d9896],_0x5870d9):_0x47585a['removeAttribute'](_0x3d9896,_0x5870d9);if(_0x15c61e['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x20f3a2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x48be01=_0x20f3a2['getColumnGroupElement'](_0x5870d9);if(_0x48be01){const _0x5171cf=_0x20f3a2['getTableColumnsWidths'](_0x48be01),_0x462427=_0x5870d9['getAttribute']('tableWidth');if(('string'==typeof _0x462427&&_0x462427['trim']()['endsWith']('px'))!==_0x5171cf['some'](_0x154cfd=>'string'==typeof _0x154cfd&&_0x154cfd['endsWith']('px'))){const _0x127b3f=_0x20f3a2['getTableColumnElements'](_0x48be01);_0x15c61e['columnWidths']['forEach']((_0x216a0e,_0x406919)=>{_0x127b3f[_0x406919]&&_0x47585a['setAttribute']('columnWidth',_0x216a0e,_0x127b3f[_0x406919]);});}}}});}_getResizedColumnWidths(_0x2d30a7){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x2d30a7['is']('element','table'))return;const _0x354b90=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xec2060=_0x354b90['getColumnGroupElement'](_0x2d30a7);return _0xec2060?_0x354b90['getTableColumnsWidths'](_0xec2060):void 0x0;}handleSuggestionDescription(_0x5774e5){if(_0x5774e5['data'])switch(_0x5774e5['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x4f7f62,_0x28afb5){const _0x559124=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x23dad0 of _0x559124['getSuggestions']({'skipNotAttached':!0x0})){const _0x1f769d=_0x23dad0['getContainedElement']();if(_0x23dad0['subType']===_0x28afb5&&_0x1f769d===_0x4f7f62)return _0x23dad0;}return null;}_registerTablePropertiesAttributes(){const _0xa739bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x693071=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3e8818 of _0x693071){const _0x56b4c0=_0x3e8818['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xa739bd['descriptionFactory']['registerAttributeLabel'](_0x3e8818,Mt(this['editor']['locale'],'FORMAT_'+_0x56b4c0));}}},nn=class extends _0x5667d7{afterInit(){const _0x1a9161=this['editor'];if(!_0x1a9161['plugins']['has']('LineHeight'))return;const _0x31bb1b=_0x1a9161['plugins']['get']('TrackChangesEditing'),_0x2f48f5=_0x1a9161['locale'];_0x31bb1b['enableDefaultAttributesIntegration']('lineHeight'),_0x31bb1b['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x2f48f5,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0x554439){return'marker'==_0x554439['type']&&_0x554439['name']['startsWith']('$markedRemove');}function on(_0x5eb32d){return _0x5eb32d?[_0x5eb32d]:[];}var an=class extends _0x5667d7{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x9e2d60,_0xb4ba2e,_0x3352bc,_0xb602cc,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a0cdc){super(_0x3a0cdc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x559b85,_0x2d971b,_0x3924ad,_0x5692c4)=>{this['_model']['change'](()=>{for(const _0xd70c04 of[..._0x5692c4,..._0x3924ad])this['_model']['markers']['has'](_0xd70c04)&&_0x3a0cdc['editing']['reconvertMarker'](_0xd70c04);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new cn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3a0cdc['plugins']['get'](_0x9e2d60),this['_suggestionsConversion']=_0x3a0cdc['plugins']['get'](_0xb4ba2e),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3a0cdc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3a0cdc['config']['get']('trackChanges.trackFormatChanges'),_0x3a0cdc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3a0cdc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x3a0cdc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x49217f=this['editor'];_0x49217f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5298cc,{writer:_0x4484ec})=>{let _0x1f3f25='suggestion:'+_0x5298cc['getAttribute']('suggestion-type')+':'+_0x5298cc['getAttribute']('id');return _0x5298cc['getAttribute']('marker-count')&&(_0x1f3f25+=':'+_0x5298cc['getAttribute']('marker-count')),_0x4484ec['createElement']('$marker',{'data-name':_0x1f3f25});}}),_0x49217f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x49217f['model']['document']['registerPostFixer'](_0x158c85=>{let _0x4710b1=!0x1;const _0x3a4de8=Array['from'](_0x49217f['model']['document']['differ']['getChangedMarkers']()),_0x2a58ef=new Set();for(const {name:_0x13874b,data:_0xdc7985}of _0x3a4de8){const {group:_0x580bb3,type:_0x36f231,subType:_0x5319c1,id:_0x11c0f5}=tt(_0x13874b);if('suggestion'!==_0x580bb3)continue;const _0x12ee30=_0x5319c1?'suggestion:'+_0x36f231+':'+_0x5319c1+':'+_0x11c0f5:'suggestion:'+_0x36f231+':'+_0x11c0f5,_0x54d23e=_0x49217f['model']['markers']['getMarkersGroup'](_0x12ee30),_0x1419fc=_0x49217f['model']['markers']['get'](_0x13874b),_0x182209=this['_suggestions']['get'](_0x11c0f5);if(null!=_0xdc7985['newRange']){'formatInline'==_0x36f231&&(_0x4710b1=_0x4710b1||dn(_0xdc7985['newRange'],_0x13874b,_0x158c85,_0x49217f['model']['schema']));const _0x51c4f9='attribute'==_0x36f231&&this['_suggestionsConversion']['isBlockAttribute'](An(_0x5319c1)),_0x425560='attribute'==_0x36f231&&this['_suggestionsConversion']['isInlineAttribute'](An(_0x5319c1));if(_0xdc7985['newRange']['isCollapsed']||'$graveyard'==_0xdc7985['newRange']['root']['rootName']||'formatBlock'==_0x36f231&&!gn(_0xdc7985['newRange'])||_0x51c4f9&&!gn(_0xdc7985['newRange'])||_0x425560&&fn(_0xdc7985['newRange'])||'deletion'==_0x36f231&&fn(_0xdc7985['newRange'])||_0x1419fc&&mn(_0x1419fc,_0x54d23e))_0x158c85['removeMarker'](_0x13874b),_0x4710b1=!0x0;else{if(!_0x182209||!_0x182209['isInContent'])continue;if(_0xdc7985['newRange']&&_0xdc7985['oldRange']&&_0xdc7985['newRange']['isEqual'](_0xdc7985['oldRange']))continue;_0x2a58ef['add'](_0x182209);}}}return _0x2a58ef['size']>0x0&&(_0x4710b1=!!this['_joinWithAdjacentSuggestions'](_0x2a58ef)||_0x4710b1),_0x4710b1;}),_0x49217f['model']['document']['registerPostFixer'](_0x331e79=>{let _0x1bbcf9=!0x1;for(const _0x19515c of _0x49217f['model']['document']['differ']['getChanges']())if('insert'==_0x19515c['type'])for(const _0x4f86b6 of this['_suggestions']['values']()){if(_0x4f86b6['isMultiRange']||!_0x4f86b6['isInContent'])continue;const _0x556e31='formatBlock'==_0x4f86b6['type'],_0x307e93=this['_getAttributeKey'](_0x4f86b6),_0x25ee1d=_0x307e93&&this['_suggestionsConversion']['isBlockAttribute'](_0x307e93);if(!_0x556e31&&!_0x25ee1d)continue;const _0x1c12be=_0x4f86b6['getFirstRange']();if(_0x1c12be['start']['parent']!=_0x1c12be['end']['parent']&&!_0x1c12be['end']['isAtEnd']){const _0x530f26=_0x49217f['model']['createPositionAt'](_0x1c12be['start']['nodeAfter'],'end'),_0x4152c4=_0x49217f['model']['createRange'](_0x1c12be['start'],_0x530f26);_0x331e79['updateMarker'](_0x4f86b6['getFirstMarker'](),{'range':_0x4152c4}),_0x1bbcf9=!0x0;}}return _0x1bbcf9;}),_0x49217f['model']['document']['registerPostFixer'](_0x295f98=>this['_processAttributeChanges'](_0x295f98)),_0x49217f['model']['document']['registerPostFixer'](_0x3dc114=>!_0x3dc114['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3dc114)),_0x49217f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x49217f['model']['document']['on']('change:data',(_0x9f2f64,_0x4684bd)=>{if(!_0x4684bd['isLocal']||_0x4684bd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xf9f5db=_0x49217f['model']['document']['differ']['getChanges']();if(0x0==_0xf9f5db['length'])return;const _0x4ecfe4=[],_0x3c19c4=_0xf9f5db['filter'](_0x468261=>'attribute'==_0x468261['type']),_0x16aaf7=_0xf9f5db['filter'](_0x5ebbb7=>'insert'==_0x5ebbb7['type']&&'$text'!=_0x5ebbb7['name']);for(const _0x31ca75 of _0x3c19c4)this['_suggestionsConversion']['isRegisteredAttribute'](_0x31ca75['attributeKey'])&&_0x4ecfe4['push']({'key':_0x31ca75['attributeKey'],'newValue':_0x31ca75['attributeNewValue'],'oldValue':_0x31ca75['attributeOldValue'],'range':En(_0x31ca75['range'],_0x49217f['model'])});for(const _0x3f8ae6 of _0x16aaf7){if('rename'!=_0x3f8ae6['action']&&'refresh'!=_0x3f8ae6['action'])continue;const _0x3a9eff=Tn(_0x3f8ae6['position']['nodeAfter'],_0x49217f['model']),_0xe2c085=_0x3f8ae6['before'];'rename'==_0x3f8ae6['action']&&_0x4ecfe4['push']({'key':sn,'newValue':_0x3f8ae6['name'],'oldValue':_0xe2c085['name'],'range':_0x3a9eff});for(const [_0x3391be,_0x3091eb]of _0xe2c085['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3391be))continue;const _0x4f23da=_0x3f8ae6['attributes']['get'](_0x3391be);_0x3091eb!==_0x4f23da&&_0x4ecfe4['push']({'key':_0x3391be,'newValue':_0x4f23da,'oldValue':_0x3091eb,'range':_0x3a9eff});}for(const [_0x388b4f,_0x3673c4]of _0x3f8ae6['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x388b4f)&&(_0xe2c085['attributes']['has'](_0x388b4f)||_0x4ecfe4['push']({'key':_0x388b4f,'newValue':_0x3673c4,'oldValue':null,'range':_0x3a9eff}));}0x0!=_0x4ecfe4['length']&&_0x49217f['model']['enqueueChange'](_0x4684bd,_0x5877cd=>{const _0x921920=_0x465e2c();for(const {range:_0x103a57,key:_0x10a6d9,oldValue:_0x1d0c6c,newValue:_0x1326d7}of _0x4ecfe4)this['markAttributeChange'](_0x103a57,_0x10a6d9,_0x1d0c6c,_0x1326d7,{'groupId':_0x921920});this['_reduceExistingSuggestions'](_0x5877cd,_0x4ecfe4);});},{'priority':'lowest'}),_0x49217f['model']['markers']['on']('update:suggestion',(_0x2f7f17,_0x4a5255,_0x5c8b64)=>{if(null==_0x5c8b64){const {id:_0x3215a5}=tt(_0x4a5255['name']),_0x19b7cb=this['_suggestions']['get'](_0x3215a5);_0x19b7cb&&_0x19b7cb['addMarkerName'](_0x4a5255['name']);}}),_0x49217f['model']['document']['on']('change:data',()=>{const _0x5aecf3=Array['from'](_0x49217f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46730c=>'suggestion'===tt(_0x46730c['name'])['group']);if(0x0===_0x5aecf3['length'])return;_0x5aecf3['sort']((_0x5da7c4,_0x538614)=>{const _0x276941=_0x5da7c4['data']['oldRange'],_0x2d34fa=_0x538614['data']['oldRange'];return null===_0x276941&&null===_0x2d34fa?0x0:null===_0x276941&&null!==_0x2d34fa?-0x1:null!==_0x276941&&null===_0x2d34fa?0x1:_0x276941['start']['isBefore'](_0x2d34fa['start'])?-0x1:0x1;});const _0x54009a=new Set(),_0x4ceb37=new Set();for(const {name:_0x5607ea,data:_0x1cabd8}of _0x5aecf3){const {id:_0x7bba0}=tt(_0x5607ea);if(null===_0x1cabd8['oldRange']){const _0x4d3c2f=this['_handleNewSuggestionMarker'](_0x5607ea);_0x4ceb37['add'](_0x4d3c2f);}else{const _0x91b246=this['_suggestions']['get'](_0x7bba0);null!==_0x1cabd8['newRange']||_0x91b246['isInContent']?(_0x54009a['add'](_0x91b246['head']),_0x4ceb37['add'](_0x91b246)):this['_removeSuggestion'](_0x91b246);}}_0x4ceb37['size']>0x0&&this['_refreshSuggestionsChain'](_0x4ceb37);for(const _0x188a3c of _0x54009a)this['fire']('suggestionChanged',_0x188a3c);}),_0x49217f['model']['on']('applyOperation',(_0x2a2aa1,_0x36c743)=>{const _0x23504f=_0x36c743[0x0];if(!this['_suggestions']['size'])return;if(!_0x23504f['isDocumentOperation'])return;if(_0x23504f['batch']['isUndo']||!_0x23504f['batch']['isLocal'])return;let _0x232cbc,_0x216350;switch(_0x23504f['type']){case'insert':_0x232cbc=_0x49217f['model']['createPositionAt'](_0x23504f['position']),_0x216350=_0x232cbc['getShiftedBy'](_0x23504f['howMany']);break;case'split':_0x232cbc=_0x49217f['model']['createPositionAt'](_0x23504f['splitPosition']),_0x216350=_0x49217f['model']['createPositionAt'](_0x23504f['moveTargetPosition']);break;case'move':_0x232cbc=_0x49217f['model']['createPositionAt'](_0x23504f['targetPosition']),_0x216350=_0x232cbc['getShiftedBy'](_0x23504f['howMany']);break;default:return;}const _0x5898f7=_0x49217f['model']['createRange'](_0x232cbc,_0x216350);_0x49217f['model']['change'](()=>{for(const {suggestion:_0x522c5e,meta:_0xfa5012}of this['_findSuggestions'](_0x5898f7)){if(_0x522c5e['isMultiRange'])continue;if('formatInline'==_0x522c5e['type'])continue;const _0x565262=this['_getAttributeKey'](_0x522c5e);if(_0x565262&&this['_suggestionsConversion']['isBlockAttribute'](_0x565262)&&'split'!=_0x23504f['type'])continue;const _0x336b53=_0x522c5e['data']&&_0x522c5e['data']['multipleBlocks'];('formatBlock'!=_0x522c5e['type']||'split'==_0x23504f['type']&&!_0x336b53)&&(_0xfa5012['containsRangeInObject']||'insertion'==_0x522c5e['type']&&_0xfa5012['isOwn']||_0x522c5e['getFirstRange']()['containsRange'](_0x5898f7)&&this['_breakSuggestionMarker'](_0x522c5e,_0x232cbc,_0x216350));}});},{'priority':'lowest'}),_0x49217f['model']['on']('deleteContent',(_0x58d57d,_0x140735)=>{const _0x899bd3=_0x140735[0x0],_0x56df2a=_0x140735[0x1];if(_0x56df2a&&_0x56df2a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x899bd3['isCollapsed'])return;const _0x28901f=_0x49217f['model']['schema'],{start:_0x4b94f3,end:_0x4d9401}=_0x899bd3['getFirstRange'](),_0x487090=_0x4b94f3['nodeAfter']&&_0x28901f['isLimit'](_0x4b94f3['nodeAfter'])?null:_0x28901f['getNearestSelectionRange'](_0x4b94f3,'forward'),_0x1fa9a8=_0x4d9401['nodeBefore']&&_0x28901f['isLimit'](_0x4d9401['nodeBefore'])?null:_0x28901f['getNearestSelectionRange'](_0x4d9401,'backward'),_0x2dbe90=_0x49217f['model']['createRange'](_0x487090?_0x487090['start']:_0x4b94f3,_0x1fa9a8?_0x1fa9a8['end']:_0x4d9401);_0x49217f['model']['change'](_0x22b933=>{this['markDeletion'](_0x2dbe90);const _0x4a5181=_0x49217f['model']['schema']['getNearestSelectionRange'](_0x2dbe90['start']);_0x899bd3['is']('documentSelection')?_0x22b933['setSelection'](_0x4a5181):_0x899bd3['setTo'](_0x4a5181);}),_0x58d57d['stop']();},{'priority':_0x34be95['normal']+0xa}),_0x49217f['model']['on']('insertContent',(_0x9caee2,_0x421724)=>{const _0x53d267=_0x421724[_0x421724['length']-0x1];_0x53d267&&_0x53d267['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x49217f['model']['change'](()=>{let _0x87079=_0x49217f['model']['insertContent'](_0x421724[0x0],_0x421724[0x1],_0x421724[0x2],{'forceDefaultExecution':!0x0});if(!_0x87079)return;_0x9caee2['return']=_0x87079['clone']();const _0x33c4e7=_0x87079['end']['nodeBefore'],_0x5728d4=_0x49217f['model']['schema'];_0x33c4e7&&_0x5728d4['isBlock'](_0x33c4e7)&&!_0x5728d4['isObject'](_0x33c4e7)&&(_0x87079=_0x49217f['model']['createRange'](_0x87079['start'],_0x49217f['model']['createPositionAt'](_0x33c4e7,'end'))),this['markInsertion'](_0x87079);}),_0x9caee2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1c98f6=new _t(_0x49217f,this['_suggestions']);_0x49217f['commands']['add']('acceptSuggestion',_0x1c98f6),this['enableCommand']('acceptSuggestion');const _0x5a3c30=new pt(_0x49217f,this['_suggestions']);_0x49217f['commands']['add']('discardSuggestion',_0x5a3c30),this['enableCommand']('discardSuggestion'),_0x49217f['commands']['add']('acceptAllSuggestions',new Rt(_0x49217f,_0x1c98f6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x49217f['commands']['add']('discardAllSuggestions',new Rt(_0x49217f,_0x5a3c30,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x49217f['commands']['add']('acceptSelectedSuggestions',new yt(_0x49217f,_0x1c98f6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x49217f['commands']['add']('discardSelectedSuggestions',new yt(_0x49217f,_0x5a3c30,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5201e5=_0x49217f['plugins']['get'](_0x9e2d60);this['listenTo'](_0x5201e5,'addComment',(_0x312735,{threadId:_0x934542})=>{const _0x2ac7d7=this['_suggestions']['get'](_0x934542);_0x2ac7d7&&_0x2ac7d7['commentThread']&&0x1===_0x2ac7d7['commentThread']['length']&&this['_updateSuggestionData'](_0x934542,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5201e5,'removeComment',(_0x33fa1e,{threadId:_0x79874e})=>{const _0x5924c3=this['_suggestions']['get'](_0x79874e);_0x5924c3&&_0x5924c3['commentThread']&&!_0x5924c3['commentThread']['length']&&this['_updateSuggestionData'](_0x79874e,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x183b80){const _0x30c4e7='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x1218d9=0x79470,_0x4df193={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x417105(_0x4cab05){const _0x434801=new window['Promise'](_0x22982c=>{_0x4cab05['once']('ready',_0x22982c);}),_0x8bf015=window['Date']['now'](),_0x3f1063=_0x4cab05['config']['get']('licenseKey');async function _0x277a67(){let _0x4e50a8,_0x3d8f3d=null,_0x21aabe=null;try{return'GPL'==_0x3f1063?'NotAllowed':(_0x4e50a8=_0x3df8ce(),_0x4e50a8?(_0x4e50a8['usageEndpoint']&&(_0x21aabe=_0x385244(_0x4e50a8['usageEndpoint'],_0x4e50a8['jti'])),await _0x17c419()?_0x2338fe()?_0x1172b5()?'Expired':_0x5e9238()?('evaluation'==_0x4e50a8['licenseType']&&(_0x3d8f3d=_0x26e1c('EvaluationLimit')),await _0x3711b5()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1172b5(){const _0x98a244=['evaluation','trial']['includes'](_0x4e50a8['licenseType'])?_0x8bf015/0x3e8:0xe10*_0x1218d9;return _0x4e50a8['exp']<_0x98a244;}function _0x2338fe(){const _0x244bb8=_0x4e50a8['features'];if(!_0x244bb8)return!0x1;if(_0x244bb8['includes']('*'))return!0x0;if(_0x244bb8['includes']('TC'))return!0x0;if(_0x244bb8['includes']('RTC')){if(_0x1e2f64())return!0x0;if(_0x38a28c()||_0xd16cb0())return!0x0;}return!0x1;}function _0x5e9238(){const _0x22ce67=_0x4e50a8['licensedHosts'];if(!_0x22ce67||0x0==_0x22ce67['length'])return!0x0;const {hostname:_0x288b7f}=new URL(window['location']['href']);if(_0x22ce67['includes'](_0x288b7f))return!0x0;const _0x37bf1c=_0x288b7f['split']('.');return _0x22ce67['filter'](_0xe93904=>_0xe93904['includes']('*'))['map'](_0x5636b3=>_0x5636b3['split']('.'))['filter'](_0x4e7f3e=>_0x4e7f3e['length']<=_0x37bf1c['length'])['map'](_0x4960d8=>Array(_0x37bf1c['length']-_0x4960d8['length'])['fill']('*'===_0x4960d8[0x0]?'*':'')['concat'](_0x4960d8))['some'](_0x3ec472=>_0x37bf1c['every']((_0x258a9f,_0x158d5e)=>_0x3ec472[_0x158d5e]===_0x258a9f||'*'===_0x3ec472[_0x158d5e]));}function _0x3711b5(){return _0x3d8f3d&&_0x21aabe?new window['Promise']((_0x5c90d7,_0x28a09c)=>{_0x3d8f3d['then'](_0x5c90d7,_0x28a09c),_0x21aabe['then'](_0x5ee0e4=>{'Valid'!=_0x5ee0e4&&_0x5c90d7(_0x5ee0e4);},_0x28a09c);}):_0x3d8f3d||_0x21aabe||'Valid';}}function _0x385244(_0x335004,_0x2fa392){return new window['Promise'](_0x4acde8=>{if(_0x35f456())return _0x4acde8('Valid');_0x2373b6(),_0x4cab05['decorate']('_sendUsageRequest');let _0x2f3f29=!0x1;const _0x4b90a6=_0x465e2c();function _0x37dd77(_0x34dd3c){return!!_0x34dd3c&&('object'==typeof _0x34dd3c||'function'==typeof _0x34dd3c)&&'function'==typeof _0x34dd3c['then']&&'function'==typeof _0x34dd3c['catch'];}function _0x1b3a18(_0x48799f){_0x3db887(_0x48799f)['then'](_0x14225a=>_0x14225a&&'ok'==_0x14225a['status']?_0x24ee41(_0x3c5aba(_0x4b90a6+_0x2fa392))!=_0x14225a['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1939ae=>(_0x589b35(),_0x1939ae),()=>{const _0x59c7ed=_0x182430();return null==_0x59c7ed?(_0x589b35(),'Valid'):_0x8bf015-_0x59c7ed>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4acde8)['catch'](()=>{_0x4acde8('UsageLimit');});const _0x848d2d=0x36ee80;function _0x589b35(){const _0x15e569='llct-'+_0x24ee41(_0x3c5aba(_0x335004)),_0x7953c8=_0x5e8263(_0x24ee41(window['Math']['ceil'](_0x8bf015/_0x848d2d)));window['localStorage']['setItem'](_0x15e569,_0x7953c8);}function _0x182430(){const _0x239673='llct-'+_0x24ee41(_0x3c5aba(_0x335004)),_0x3f8795=window['localStorage']['getItem'](_0x239673);return _0x3f8795?window['parseInt'](_0x5e8263(_0x3f8795),0x10)*_0x848d2d:null;}function _0x3db887(_0x1b757e){return new window['Promise']((_0x1bb8a0,_0x113221)=>{_0x1b757e['then'](_0x1bb8a0,_0x113221),window['setTimeout'](_0x113221,0x1d4c0);});}}_0x4cab05['on']('_sendUsageRequest',(_0x2439d3,_0xc76aaf)=>{if(_0xc76aaf[0x0]!=_0x335004)return _0x4acde8('UsageLimit');_0xc76aaf[0x1]={..._0xc76aaf[0x1],'requestId':_0x4b90a6};},{'priority':'high'}),_0x4cab05['on']('_sendUsageRequest',_0x54c144=>{_0x37dd77(_0x54c144['return'])&&(_0x2f3f29=!0x0,_0x1b3a18(_0x54c144['return']));},{'priority':'low'}),_0x434801['then'](()=>{_0x2f3f29||_0x4acde8('UsageLimit');});});function _0x35f456(){return'auto'==_0x4cab05['editing']['view']['_overlayModeHint'];}function _0x2373b6(){_0x4cab05['editing']['view']['_overlayModeHint']='auto';}}function _0x26e1c(_0x455e34){const _0x4c470f=[new window['Promise'](_0x4222f1=>setTimeout(_0x4222f1,0x93ecc)),_0x434801['then'](()=>new window['Promise'](_0x3e3526=>{let _0x3f74b6=0x0;_0x4cab05['model']['on']('applyOperation',(_0x2a0163,_0x37c6d7)=>{_0x37c6d7[0x0]['isDocumentOperation']&&_0x3f74b6++,0x5e8==_0x3f74b6&&(_0x3e3526(),_0x2a0163['off']());});}))];return window['Promise']['race'](_0x4c470f)['then'](()=>_0x455e34);}async function _0x140c98(){await _0x434801,_0x4cab05['model']['change']=_0x219ae0,_0x4cab05['model']['enqueueChange']=_0x219ae0,_0x4cab05['enableReadOnlyMode']('model');}function _0x1e2f64(){return _0x19290a('WebSocketGateway')&&'connected'==_0x1641be('WebSocketGateway')['state'];}function _0x38a28c(){return _0x19290a('RevisionViewerIntegration');}function _0xd16cb0(){return _0x19290a('TrackChangesDataGetter');}function _0x1bef73(_0x3f5e51){const _0x454a08=_0x127fdd();_0x4cab05[_0x454a08]='trackChangesLicenseKey'+_0x3f5e51,'Valid'!=_0x3f5e51&&_0x140c98();}function _0x127fdd(){const _0x2355a1=window['String'](window['performance']['now']())['replace']('.','');let _0x3a9377='U';for(let _0x535581=0x0;_0x535581<_0x2355a1['length'];_0x535581+=0x2){let _0x167f2b=window['parseInt'](_0x2355a1['substring'](_0x535581,_0x535581+0x2));_0x167f2b>=0x3e&&(_0x167f2b-=0x3e),_0x3a9377+=_0x30c4e7[_0x167f2b];}return _0x3a9377;}function _0x3df8ce(){const _0x3e2094=_0x3f1063['split']('.');if(0x3!=_0x3e2094['length'])return null;return _0x33c6bf(_0x3e2094[0x1]);function _0x33c6bf(_0x3feb38){const _0x320b2d=_0x469c4d(_0x3feb38);return _0x320b2d&&_0x1f3da4()?_0x320b2d:null;function _0x1f3da4(){const _0x46fd6d=_0x320b2d['jti'],_0x35a5ab=window['parseInt'](_0x46fd6d['substring'](_0x46fd6d['length']-0x8),0x10),_0x2893fa={..._0x320b2d,'jti':_0x46fd6d['substring'](0x0,_0x46fd6d['length']-0x8)};return delete _0x2893fa['vc'],_0x3c5aba(_0x2893fa)==_0x35a5ab;}}}async function _0x17c419(){let _0x2df19a=!0x0;try{const [_0x3cfabd,_0x24d4c8,_0x299504]=_0x3f1063['split']('.');return _0x433787(_0x3cfabd),await _0x49a3e6(_0x3cfabd,_0x24d4c8,_0x299504),_0x2df19a;}catch{return!0x1;}function _0x433787(_0x1c01c1){const _0x4e02e9=_0x469c4d(_0x1c01c1);_0x4e02e9&&'ES256'==_0x4e02e9['alg']||(_0x2df19a=!0x1);}async function _0x49a3e6(_0x2e5248,_0x4eff04,_0x74e22a){const _0x4f6e5b=window['Uint8Array']['from'](_0x11ab31(_0x74e22a),_0xd8cab1=>_0xd8cab1['charCodeAt'](0x0)),_0x461129=new window['TextEncoder']()['encode'](_0x2e5248+'.'+_0x4eff04),_0x3a1ee4=window['crypto']['subtle'];if(!_0x3a1ee4)return;const _0x2d803d=await _0x3a1ee4['importKey']('jwk',_0x4df193,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3a1ee4['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2d803d,_0x4f6e5b,_0x461129)||(_0x2df19a=!0x1);}}function _0x469c4d(_0x27af3c){return _0x27af3c['startsWith']('ey')?JSON['parse'](_0x11ab31(_0x27af3c)):null;}function _0x11ab31(_0x28c37a){return window['atob'](_0x28c37a['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3c5aba(_0x362997){let _0x4ec4c8=0x1505;function _0xcecf36(_0xd049f0){for(let _0x258534=0x0;_0x258534<_0xd049f0['length'];_0x258534++){const _0x3b0e9b=_0xd049f0['charCodeAt'](_0x258534);_0x4ec4c8=(_0x4ec4c8<<0x5)+_0x4ec4c8+_0x3b0e9b,_0x4ec4c8&=_0x4ec4c8;}}function _0x1d51cb(_0x170644){Array['isArray'](_0x170644)?_0x170644['forEach'](_0x1d51cb):_0x170644&&'object'==typeof _0x170644?Object['entries'](_0x170644)['sort']()['forEach'](([_0x1b6a88,_0x480289])=>{_0xcecf36(_0x1b6a88),_0x1d51cb(_0x480289);}):_0xcecf36(window['String'](_0x170644));}return _0x1d51cb(_0x362997),_0x4ec4c8>>>0x0;}function _0x24ee41(_0x48727c){return _0x48727c['toString'](0x10)['padStart'](0x8,'0');}function _0x5e8263(_0x4164e2){return _0x4164e2['split']('')['reverse']()['join']('');}function _0x19290a(_0x35d7a9){return _0x4cab05['plugins']['has'](_0x35d7a9);}function _0x1641be(_0xf27d68){return _0x4cab05['plugins']['get'](_0xf27d68);}function _0x219ae0(){}_0x1bef73(await _0x277a67());}_0x417105(_0x183b80['editor']);}(this);}set adapter(_0x160b52){if(this['_adapter'])throw new _0x29102a('track-changes-adapter-already-set',this);this['_adapter']=_0x160b52;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x22809e=!0x1,toJSON:_0x4eea52=!0x1}={}){const _0x3afe5f=[];for(const _0x29ae4f of this['_suggestions']['values']())_0x22809e&&!_0x29ae4f['isInContent']||_0x3afe5f['push'](_0x29ae4f);return _0x4eea52?_0x3afe5f['map'](_0x4aff93=>_0x4aff93['toJSON']()):_0x3afe5f;}getSuggestion(_0x23dd18){const _0x41d1a4=this['_suggestions']['get'](_0x23dd18);if(!_0x41d1a4)throw new _0x29102a('track-changes-suggestion-not-found',this);return _0x41d1a4;}hasSuggestion(_0x18d5c8){return this['_suggestions']['has'](_0x18d5c8);}addSuggestionData(_0x11ca61){const {authorId:_0x5ee166,id:_0x3c5921,originalSuggestionId:_0x3be26d,attributes:_0x39837f}=_0x11ca61,[_0x55837c,_0xad224f]=_0x11ca61['type']['split'](':'),_0xc8095e=this['_suggestions']['get'](_0x3c5921)||this['_createSuggestion'](_0x55837c,_0xad224f,_0x3c5921,_0x5ee166,_0x39837f,_0x3be26d);if(this['_addThreadToSuggestion'](_0xc8095e),this['_checkSuggestionCorrectness'](_0xc8095e,_0x55837c,_0xad224f||null,_0x5ee166),_0xc8095e['createdAt']=_0x11ca61['createdAt'],_0xc8095e['_isDataLoaded']=!0x0,_0x39837f&&_0x39837f['@external']){const _0x5a375b=_0x39837f['@external'],_0x569877=this['_getExternalAuthor'](_0x5a375b['authorName']);_0xc8095e['authoredAt']=_0x5a375b['createdAt'],_0xc8095e['author']=_0x569877;}else _0xc8095e['authoredAt']=_0x11ca61['createdAt'];switch(_0x11ca61['data']&&(_0xc8095e['data']=_0x11ca61['data']),_0x11ca61['attributes']&&(_0xc8095e['attributes']=_0x11ca61['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xc8095e['_saved']=!0x0),this['_suggestionState']['get'](_0xc8095e)){case'notReady':this['_suggestionState']['set'](_0xc8095e,'dataReady');break;case'markerReady':_0xc8095e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xc8095e])),this['_refreshSuggestionsChain'](new Set([_0xc8095e])),this['_suggestionState']['set'](_0xc8095e,'ready'),this['fire']('suggestionLoaded',_0xc8095e)):this['_suggestionState']['set'](_0xc8095e,'removed');}return _0xc8095e;}acceptSuggestion(_0x178258){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e5e68 of _0x178258['getAllAdjacentSuggestions']())_0x4e5e68['accept']();});});}discardSuggestion(_0x19c0c9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c0cd9 of _0x19c0c9['getAllAdjacentSuggestions']())_0x3c0cd9['discard']();});});}['enableCommand'](_0x55f09d,_0xfce951){const _0x6c0acf=this['editor']['commands']['get'](_0x55f09d);if(!_0x6c0acf)throw new _0x29102a('track-changes-command-not-found',this,{'commandName':_0x55f09d});if(this['_enabledCommands']['has'](_0x6c0acf))throw new _0x29102a('track-changes-enable-command-twice',this,{'commandName':_0x55f09d});this['_enabledCommands']['add'](_0x6c0acf),_0xfce951&&_0x6c0acf['on']('execute',(_0x3d528a,_0x4ece0a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4ece0a['length']>0x0&&_0x4ece0a[_0x4ece0a['length']-0x1]&&_0x4ece0a[_0x4ece0a['length']-0x1]['forceDefaultExecution']?_0x4ece0a['pop']():(_0x3d528a['return']=_0xfce951((..._0x35d73d)=>_0x6c0acf['execute'](..._0x35d73d,{'forceDefaultExecution':!0x0}),..._0x4ece0a),_0x3d528a['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x5176e0){let _0x21a819,_0x3afd46;const _0x9ba23=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x21a819=_0x5176e0();}catch(_0x46a35c){_0x3afd46=_0x46a35c;}return _0x9ba23||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3afd46&&_0x29102a['rethrowUnexpectedError'](_0x3afd46,this),_0x21a819;}markInsertion(_0x4dc589,_0x1cdb19=null,_0x2ce4f5={}){if(_0x4dc589['isCollapsed'])return null;const _0x103248=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2ce4f5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x137887,meta:_0x5dba35}of this['_findSuggestions'](_0x4dc589,'insertion'))if(_0x5dba35['isOwn']){if(!_0x5dba35['isNextTo']){if(_0x5dba35['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ln(_0x137887,_0x2ce4f5))continue;return _0x137887;}if(Ln(_0x137887,_0x2ce4f5))return _0x137887;this['_breakSuggestionMarker'](_0x137887,_0x4dc589['start'],_0x4dc589['end']);break;}if(_0x1cdb19==_0x137887['subType']&&Ln(_0x137887,_0x2ce4f5)){const _0x4cb4db=_0x137887['getFirstRange']();return _0x4cb4db['start']['isEqual'](_0x4dc589['end'])?this['_setSuggestionRange'](_0x137887,this['_model']['createRange'](_0x4dc589['start'],_0x4cb4db['end'])):this['_setSuggestionRange'](_0x137887,this['_model']['createRange'](_0x4cb4db['start'],_0x4dc589['end'])),_0x137887;}}const _0x352cd0=_0x465e2c(),_0x1bcb70=_0x103248['id'],_0x18cdcd=_0x1cdb19?'insertion:'+_0x1cdb19:'insertion',_0xacbb03=this['_setSuggestionData']({'id':_0x352cd0,'type':_0x18cdcd,'createdAt':new Date(),'authorId':_0x1bcb70,'attributes':_0x2ce4f5});return this['_addSuggestionMarker'](_0x18cdcd,_0x352cd0,_0x1bcb70,_0x4dc589),_0xacbb03;}markMultiRangeInsertion(_0x482879,_0xf37229='multi',_0x491045={}){const _0x1c3084=this['editor']['plugins']['get']('Users')['me'],_0x6c2673=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xf37229,'join');this['_trackingSessionId']&&(_0x491045['trackingSessionId']=this['_trackingSessionId']);for(const _0x497209 of this['getSuggestions']())if(_0x497209['author']['id']==_0x1c3084['id']&&'insertion'==_0x497209['type']&&_0x497209['subType']==_0xf37229&&Ln(_0x497209,_0x491045)&&(_0x6c2673(_0x497209['getRanges'](),_0x482879)||_0x6c2673(_0x482879,_0x497209['getRanges']()))){for(const _0x2495a2 of _0x482879)_0x497209['addRange'](_0x2495a2);return _0x497209;}for(const {suggestion:_0x1e27d8,meta:_0x5e0f79}of this['_findSuggestions'](_0x482879,'insertion')){if(!_0x5e0f79['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5e0f79['containsRangeInObject'])continue;if(!Ln(_0x1e27d8,_0x491045))continue;let _0x44657c=!0x0;for(const _0x4e98ee of _0x1e27d8['getRanges']())for(const _0x58e09b of _0x482879)if(!_0x4e98ee['containsRange'](_0x58e09b)){_0x44657c=!0x1;break;}if(_0x44657c)return _0x1e27d8;}const _0x55ece8=_0x465e2c(),_0x273fc2=_0x1c3084['id'],_0x379197='insertion:'+_0xf37229,_0xf0698a=this['_setSuggestionData']({'id':_0x55ece8,'type':_0x379197,'createdAt':new Date(),'authorId':_0x273fc2,'attributes':_0x491045});for(const _0xe4fcd6 of _0x482879)this['_addSuggestionMarker'](_0x379197,_0x55ece8,_0x273fc2,_0xe4fcd6,St['getMultiRangeId']());return _0xf0698a;}markInlineFormat(_0x402d3a,_0x4d5549,_0x4b6c04=null,_0x1aeb18={}){if(_0x4b6c04=_0x4b6c04||hn(_0x4d5549),_0x402d3a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1aeb18['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3ecdfd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b6c04,'accept');return this['forceDefaultExecution'](()=>_0x3ecdfd([_0x402d3a],_0x4d5549,_0x1aeb18)),null;}const _0x443fb5=this['editor']['plugins']['get']('Users')['me'],_0x5be4e3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3b5a7f,meta:_0xf6a97b}of this['_findSuggestions'](_0x402d3a,'insertion'))_0xf6a97b['isOwn']&&!_0xf6a97b['isInsideObject']&&_0x5be4e3['push'](..._0x3b5a7f['getRanges']());}const _0x29403a=function(_0xbf0d32,_0x3bd415){const _0x3c5681=[];for(const _0x5e97fb of _0x3bd415){const _0x3b53ec=_0xbf0d32['getIntersection'](_0x5e97fb);_0x3b53ec&&_0x3c5681['push'](_0x3b53ec);}return _0x3c5681;}(_0x402d3a,_0x5be4e3),_0x584117=function(_0x37d25e,_0x5f402c){const _0x2afca8=[_0x37d25e];for(const _0x2e305 of _0x5f402c){let _0x21987e=0x0;for(;_0x21987e<_0x2afca8['length'];){const _0x2d893f=_0x2afca8[_0x21987e]['getDifference'](_0x2e305);_0x2afca8['splice'](_0x21987e,0x1,..._0x2d893f),_0x21987e+=_0x2d893f['length'];}}return _0x2afca8;}(_0x402d3a,_0x5be4e3);_0x29403a['length']&&this['_model']['change'](()=>{for(const _0x471bde of _0x29403a){const _0x2a77a5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b6c04,'accept');this['forceDefaultExecution'](()=>_0x2a77a5([_0x471bde],_0x4d5549,_0x1aeb18));}});for(const _0x45829f of _0x584117){let _0x2b6f8=null,_0x439fcf=_0x45829f['start'],_0x21b6f5=_0x45829f['end'];for(const {suggestion:_0x5d9d4a,meta:_0xcc649b}of this['_findSuggestions'](_0x45829f,'formatInline')){if(!_0xcc649b['isOwn'])continue;if(_0x5d9d4a['subType']!=_0x4b6c04)continue;if(!Ln(_0x5d9d4a,_0x1aeb18))continue;const _0x5b5e6b=_0x5d9d4a['getFirstRange']();if(_0x5b5e6b['containsRange'](_0x45829f,!0x0))return null;_0x439fcf=_0x439fcf['isBefore'](_0x5b5e6b['start'])?_0x439fcf:_0x5b5e6b['start'],_0x21b6f5=_0x21b6f5['isAfter'](_0x5b5e6b['end'])?_0x21b6f5:_0x5b5e6b['end'],_0x2b6f8?_0x5b5e6b['start']['isBefore'](_0x2b6f8['getFirstRange']()['start'])?(_0x2b6f8['removeMarkers'](),_0x2b6f8=_0x5d9d4a):_0x5d9d4a['removeMarkers']():_0x2b6f8=_0x5d9d4a;}const _0x44222c=this['_model']['createRange'](_0x439fcf,_0x21b6f5);if(_0x2b6f8)this['_setSuggestionRange'](_0x2b6f8,_0x44222c);else{const _0x5987c3=_0x465e2c(),_0x173ec5=_0x443fb5['id'];this['_setSuggestionData']({'id':_0x5987c3,'type':'formatInline:'+_0x4b6c04,'data':_0x4d5549,'createdAt':new Date(),'authorId':_0x173ec5,'attributes':_0x1aeb18}),this['_addSuggestionMarker']('formatInline:'+_0x4b6c04,_0x5987c3,_0x173ec5,_0x44222c);}}return null;}markBlockFormat(_0x9c350e,_0x2b4a7c,_0x36ae14=[],_0x53cf80=null,_0x5c3b76={}){_0x2b4a7c['formatGroupId']||(_0x2b4a7c['formatGroupId']=_0x2b4a7c['commandName']),_0x2b4a7c['multipleBlocks']=_0x9c350e['is']('range'),_0x53cf80=_0x53cf80||hn(_0x2b4a7c);const _0x5f2a96=_0x36ae14['map'](_0x257f2a=>Tn(_0x257f2a,this['_model'])),_0x4a537e=_0x9c350e['is']('range')?_0x9c350e:Tn(_0x9c350e,this['_model']);if(this['_trackingSessionId']&&(_0x5c3b76['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x133449=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53cf80,'accept');return this['forceDefaultExecution'](()=>_0x133449([_0x4a537e],_0x2b4a7c,_0x5c3b76)),null;}_0x5f2a96['push'](_0x4a537e);let _0x433be4=!0x0;for(const _0x6a4d3c of _0x5f2a96)if(!this['_rangeIsInLocalUserInsertion'](_0x6a4d3c)){_0x433be4=!0x1;break;}if(_0x433be4&&'always'!==this['_trackFormatChanges']){const _0xca218b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53cf80,'accept');return this['forceDefaultExecution'](()=>_0xca218b([_0x4a537e],_0x2b4a7c,_0x5c3b76)),null;}let _0x1b5737=null,_0x2f981a=_0x4a537e['start'],_0x4e2820=_0x4a537e['end'];for(const {suggestion:_0x29189c,meta:_0x3fe19a}of this['_findSuggestions'](_0x4a537e,'formatBlock')){if(!_0x3fe19a['isOwn'])continue;if(_0x3fe19a['isNextTo']||_0x3fe19a['containsRangeInObject']||_0x3fe19a['isInsideObject'])continue;if(_0x29189c['data']['formatGroupId']!=_0x2b4a7c['formatGroupId'])continue;if(!Ln(_0x29189c,_0x5c3b76))continue;const _0x4e66bf=_0x29189c['getFirstRange']();if(_0x29189c['subType']==_0x53cf80){if(_0x4e66bf['containsRange'](_0x4a537e,!0x0))return null;_0x2f981a=_0x2f981a['isBefore'](_0x4e66bf['start'])?_0x2f981a:_0x4e66bf['start'],_0x4e2820=_0x4e2820['isAfter'](_0x4e66bf['end'])?_0x4e2820:_0x4e66bf['end'],_0x1b5737?_0x4e66bf['start']['isBefore'](_0x1b5737['getFirstRange']()['start'])?(_0x1b5737['removeMarkers'](),_0x1b5737=_0x29189c):_0x29189c['removeMarkers']():_0x1b5737=_0x29189c;}else{const _0x3a0ebb=_0x4a537e['getIntersection'](_0x4e66bf);this['_cutOutSuggestionMarker'](_0x29189c,_0x3a0ebb);}}const _0x2919dd=this['editor']['plugins']['get']('Users')['me'],_0x2e28e0=_0x465e2c(),_0x9b8fdb=_0x2919dd['id'];if(_0x1b5737)return this['_setSuggestionRange'](_0x1b5737,this['_model']['createRange'](_0x2f981a,_0x4e2820)),_0x1b5737;{const _0x5b9336=this['_setSuggestionData']({'id':_0x2e28e0,'type':'formatBlock:'+_0x53cf80,'data':_0x2b4a7c,'createdAt':new Date(),'authorId':_0x9b8fdb,'attributes':_0x5c3b76});return this['_addSuggestionMarker']('formatBlock:'+_0x53cf80,_0x2e28e0,_0x9b8fdb,this['_model']['createRange'](_0x2f981a,_0x4e2820)),_0x5b9336;}}markMultiRangeBlockFormat(_0x15d1f8,_0x1a49c0,_0x1b9d8a=[],_0x276800=null,_0x2db702={}){_0x1a49c0['formatGroupId']||(_0x1a49c0['formatGroupId']=_0x1a49c0['commandName']);const _0x1acdd5=_0x15d1f8[0x0];_0x1a49c0['multipleBlocks']=_0x1acdd5['is']('range'),_0x276800=_0x276800||hn(_0x1a49c0);const _0x58c859=_0x1b9d8a['map'](_0x5eb8e1=>Tn(_0x5eb8e1,this['_model'])),_0x408820=_0x1acdd5['is']('range')?_0x15d1f8:_0x15d1f8['map'](_0x57a892=>Tn(_0x57a892,this['_model']));if(this['_trackingSessionId']&&(_0x2db702['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3b8497=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x276800,'accept');return this['forceDefaultExecution'](()=>_0x3b8497(_0x408820,_0x1a49c0,_0x2db702)),null;}_0x58c859['push'](..._0x408820);let _0x17de8b=!0x0;for(const _0x1c8d48 of _0x58c859)if(!this['_rangeIsInLocalUserInsertion'](_0x1c8d48)){_0x17de8b=!0x1;break;}if(_0x17de8b&&'always'!==this['_trackFormatChanges']){const _0x1b9ae2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x276800,'accept');return this['forceDefaultExecution'](()=>_0x1b9ae2(_0x408820,_0x1a49c0,_0x2db702)),null;}const _0x1fb747=this['editor']['plugins']['get']('Users')['me'];for(const _0x113c0f of this['getSuggestions']()){const _0xe63766=_0x113c0f['data'];if(_0x113c0f['author']['id']!=_0x1fb747['id'])continue;if('formatBlock'!=_0x113c0f['type']||_0xe63766['formatGroupId']!=_0x1a49c0['formatGroupId'])continue;if(!Ln(_0x113c0f,_0x2db702))continue;const _0x57e891=_0x113c0f['subType']==_0x276800;for(let _0xbdba73=0x0;_0xbdba73<_0x408820['length'];_0xbdba73++){const _0x479de5=_0x408820[_0xbdba73];for(const _0x290722 of _0x113c0f['getMarkers']()){const _0x78b14a=_0x290722['getRange']();if(_0x479de5['isEqual'](_0x78b14a)){_0x57e891?(_0x408820['splice'](_0xbdba73,0x1),_0xbdba73--):_0x113c0f['removeMarker'](_0x290722['name']);break;}}}}if(0x0==_0x408820['length'])return null;const _0x5236f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x276800,'join');for(const _0x9baf80 of this['getSuggestions']()){const _0x55778f=_0x9baf80['data'];if(_0x9baf80['author']['id']==_0x1fb747['id']&&('formatBlock'==_0x9baf80['type']&&_0x55778f['formatGroupId']==_0x1a49c0['formatGroupId']&&_0x9baf80['subType']==_0x276800&&Ln(_0x9baf80,_0x2db702)&&(_0x5236f7(_0x9baf80['getRanges'](),_0x408820)||_0x5236f7(_0x408820,_0x9baf80['getRanges']())))){for(const _0x15a365 of _0x408820)_0x9baf80['addRange'](_0x15a365);return _0x9baf80;}}const _0x3e450f=_0x465e2c(),_0x36d289=_0x1fb747['id'],_0x474aed='formatBlock:'+_0x276800,_0x5c9a19=this['_setSuggestionData']({'id':_0x3e450f,'type':_0x474aed,'data':_0x1a49c0,'createdAt':new Date(),'authorId':_0x36d289,'attributes':_0x2db702});for(const _0x5792f8 of _0x408820)this['_addSuggestionMarker'](_0x474aed,_0x3e450f,_0x36d289,_0x5792f8,St['getMultiRangeId']());return _0x5c9a19;}markDeletion(_0x3a4cb1,_0x2d76ab=null,_0x305545={}){if(_0x3a4cb1['isCollapsed'])return null;const _0xf55ce0=this['editor']['plugins']['get']('Users')['me'],_0xc1eaca=new rt(_0x3a4cb1['start'],_0x3a4cb1['end']);this['_trackingSessionId']&&(_0x305545['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xb850d8,meta:_0x5788a7}of this['_findSuggestions'](_0xc1eaca,'insertion'))if(_0x5788a7['isOwn']&&!_0x5788a7['isNextTo']){if(_0xb850d8['isMultiRange']){const _0x4a8ee9=_0xb850d8['getRanges']()['filter'](_0x2e88f0=>'$graveyard'!=_0x2e88f0['root']['rootName']);if(_0x4a8ee9['every'](_0x4a7906=>_0xc1eaca['containsRange'](_0x4a7906,!0x0))&&_0xb850d8['discard'](),_0x4a8ee9['some'](_0x2ee3fd=>_0x2ee3fd['containsRange'](_0xc1eaca,!0x0))){const _0x14c8f3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d76ab,'accept');return this['forceDefaultExecution'](()=>_0x14c8f3([_0xc1eaca],null,_0x305545)),null;}}else{const _0x5258db=_0xc1eaca['getIntersection'](_0xb850d8['getFirstRange']());null!==_0x5258db&&_0xb850d8['_onDiscard']([_0x5258db],null,_0x305545);}}if(_0xc1eaca['detach'](),_0xc1eaca['isCollapsed']||'$graveyard'==_0xc1eaca['root']['rootName'])return null;let _0x4fdb0c=null,_0xf7d704=_0xc1eaca['start'],_0x145c33=_0xc1eaca['end'];const _0x978579=this['_findSuggestions'](_0xc1eaca,'deletion');for(const {suggestion:_0x25b8bd,meta:_0x4734fd}of _0x978579){const _0x5856c4=this['_model']['createRange'](_0xf7d704,_0x145c33);if(_0x4734fd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4734fd['containsRangeInObject']&&!_0x4734fd['isInsideObject'])){if(_0x25b8bd['isMultiRange']){if(!Ln(_0x25b8bd,_0x305545))continue;let _0xb4d1c2=!0x0;for(const _0x3d3c3a of _0x25b8bd['getRanges']()){if(_0x3d3c3a['containsRange'](_0x5856c4,!0x0))return _0x25b8bd;_0x5856c4['containsRange'](_0x3d3c3a)||(_0xb4d1c2=!0x1);}_0xb4d1c2&&_0x25b8bd['discard']();}else{const _0x46eb71=_0x25b8bd['getFirstRange']();if(_0x46eb71['containsRange'](_0x5856c4,!0x0))return _0x25b8bd;if(!Ln(_0x25b8bd,_0x305545)){_0x5856c4['containsRange'](_0x46eb71)?_0x25b8bd['removeMarkers']():_0x46eb71['containsPosition'](_0xf7d704)?_0xf7d704=_0x46eb71['end']:_0x46eb71['containsPosition'](_0x145c33)&&(_0x145c33=_0x46eb71['start']);continue;}_0xf7d704=_0xf7d704['isBefore'](_0x46eb71['start'])?_0xf7d704:_0x46eb71['start'],_0x145c33=_0x145c33['isAfter'](_0x46eb71['end'])?_0x145c33:_0x46eb71['end'],_0x305545=Object['assign']({},_0x25b8bd['attributes']),_0x4fdb0c?_0x46eb71['start']['isBefore'](_0x4fdb0c['getFirstRange']()['start'])?(_0x4fdb0c['removeMarkers'](),_0x4fdb0c=_0x25b8bd):_0x25b8bd['removeMarkers']():_0x4fdb0c=_0x25b8bd;}}}if(_0x4fdb0c)return this['_setSuggestionRange'](_0x4fdb0c,this['_model']['createRange'](_0xf7d704,_0x145c33)),_0x4fdb0c;{const _0x2a5a87=_0x465e2c(),_0x4c95fa=this['_model']['createRange'](_0xf7d704,_0x145c33),_0x39f6eb=_0xf55ce0['id'],_0xf2a51b=_0x2d76ab?'deletion:'+_0x2d76ab:'deletion',_0x2e1b19=this['_setSuggestionData']({'id':_0x2a5a87,'type':_0xf2a51b,'createdAt':new Date(),'authorId':_0x39f6eb,'attributes':_0x305545});return this['_addSuggestionMarker'](_0xf2a51b,_0x2a5a87,_0x39f6eb,_0x4c95fa),_0x2e1b19;}}markMultiRangeDeletion(_0x2dd127,_0xe35be7='multi',_0x123063={}){const _0x5a5f07=this['editor']['plugins']['get']('Users')['me'],_0x2c0f10=_0x2dd127['map'](_0x44a68e=>new rt(_0x44a68e['start'],_0x44a68e['end'])),_0x5b509e=new Set();this['_trackingSessionId']&&(_0x123063['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5a96d8,meta:_0x3b83b7}of this['_findSuggestions'](_0x2c0f10,'insertion'))_0x3b83b7['isOwn']&&!_0x3b83b7['isNextTo']&&_0x5b509e['add'](_0x5a96d8);for(const _0x2e4b54 of _0x5b509e)if(_0x2e4b54['isMultiRange']){const _0x2bfb02=_0x2e4b54['getRanges']();if(_0x2e4b54['attributes']&&_0x2e4b54['attributes']['skipNestingCheck']||_0x2bfb02['every'](_0x3c66d2=>_0x2c0f10['some'](_0x173ee2=>_0x173ee2['containsRange'](_0x3c66d2,!0x0)))&&_0x2e4b54['discard'](),_0x2c0f10['every'](_0x2a75cb=>_0x2bfb02['some'](_0x4cbc16=>_0x4cbc16['containsRange'](_0x2a75cb,!0x0)))){const _0x1a3b69=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe35be7,'accept');return this['forceDefaultExecution'](()=>_0x1a3b69(_0x2dd127,null,_0x123063)),null;}}else{const _0x204815=_0x2e4b54['getFirstRange']();if(_0x2c0f10['some'](_0x4a950a=>_0x4a950a['containsRange'](_0x204815,!0x0))&&_0x2e4b54['discard'](),_0x2c0f10['every'](_0x3dabb8=>_0x204815['containsRange'](_0x3dabb8,!0x0))){const _0x54dc1c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe35be7,'accept');return this['forceDefaultExecution'](()=>_0x54dc1c(_0x2c0f10,null,_0x123063)),null;}}const _0xf24882=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe35be7,'join');let _0x69d254=null;for(const _0x371087 of this['getSuggestions']())if(_0x371087['author']['id']==_0x5a5f07['id']&&_0x371087['isInContent']&&'deletion'==_0x371087['type']&&_0x371087['subType']==_0xe35be7&&Ln(_0x371087,_0x123063)&&(_0xf24882(_0x371087['getRanges'](),_0x2c0f10)||_0xf24882(_0x2c0f10,_0x371087['getRanges']()))){if(_0x69d254){if(_0x371087['commentThread']&&_0x371087['commentThread']['length'])continue;for(const _0x19d1d3 of _0x371087['getRanges']())_0x69d254['isIntersectingWithRange'](_0x19d1d3)||_0x69d254['addRange'](_0x19d1d3);_0x371087['removeMarkers']();}else{_0x69d254=_0x371087;for(const _0x26bd16 of _0x2c0f10)_0x371087['isIntersectingWithRange'](_0x26bd16)||_0x371087['addRange'](_0x26bd16);}}if(_0x69d254)return _0x69d254;_0x5b509e['clear']();for(const {suggestion:_0x323042,meta:_0x26f935}of this['_findSuggestions'](_0x2c0f10,'deletion'))_0x26f935['isOwn']&&(this['_mergeNestedSuggestions']||!_0x26f935['containsRangeInObject']&&!_0x26f935['isInsideObject'])&&Ln(_0x323042,_0x123063)&&_0x5b509e['add'](_0x323042);for(const _0x4087dd of _0x5b509e){const _0x422de0=_0x4087dd['getRanges']();if((!_0x123063||!_0x123063['skipNestingCheck'])&&_0x2c0f10['every'](_0x33d0a8=>_0x422de0['some'](_0x34ab6e=>_0x34ab6e['containsRange'](_0x33d0a8,!0x0))))return _0x4087dd;_0x4087dd['attributes']&&_0x4087dd['attributes']['skipNestingCheck']||_0x422de0['every'](_0x15152d=>_0x2c0f10['some'](_0x2f6d73=>_0x2f6d73['containsRange'](_0x15152d,!0x0)))&&_0x4087dd['discard']();}const _0x5a07aa=_0x465e2c(),_0x1324c9=_0x5a5f07['id'],_0x311bf2='deletion:'+_0xe35be7,_0x34693b=this['_setSuggestionData']({'id':_0x5a07aa,'type':_0x311bf2,'createdAt':new Date(),'authorId':_0x1324c9,'attributes':_0x123063});for(const _0xcd999a of _0x2c0f10)_0xcd999a['detach'](),_0xcd999a['isCollapsed']||'$graveyard'==_0xcd999a['root']['rootName']||this['_addSuggestionMarker'](_0x311bf2,_0x5a07aa,_0x1324c9,_0xcd999a,St['getMultiRangeId']());return _0x34693b;}markAttributeChange(_0x12cc26,_0xdc4515,_0x31ac36,_0x5b1142,_0x2189ed){if(_0x12cc26['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1a0600=this['editor']['plugins']['get']('Users')['me']['id'],_0x520741=Array['from'](this['_suggestions']['values']())['filter'](_0x239cfb=>'attribute'==_0x239cfb['type']&&_0x239cfb['data']['key']==_0xdc4515&&_0x239cfb['isIntersectingWithRange'](_0x12cc26));if(this['_trackingSessionId']&&(_0x2189ed['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4974b6=this['_findSuggestions'](_0x12cc26,'insertion')['filter'](({meta:_0x402b99})=>_0x402b99['isOwn']&&!_0x402b99['isInsideObject']&&!_0x402b99['isNextTo'])['map'](({suggestion:_0x630d40})=>_0x630d40);_0x520741['unshift'](..._0x4974b6);}const _0x5a0e1a=new Map([[_0x12cc26,_0x31ac36]]);for(const _0x2de5f3 of _0x520741){const _0x2853cb='attribute'==_0x2de5f3['type']?_0x2de5f3['data']['oldValue']:void 0x0,_0x43245d=_0x2de5f3['getFirstRange'](),_0x5b61dc=Array['from'](_0x5a0e1a['keys']())['find'](_0x92aa6a=>_0x92aa6a['isIntersecting'](_0x43245d));if(!_0x5b61dc)continue;const _0x57d543=_0x5b61dc['getDifference'](_0x43245d);this['_suggestionsConversion']['isBlockAttribute'](_0xdc4515)&&'insertion'==_0x2de5f3['type']&&0x0!=_0x57d543['length']||(_0x5a0e1a['delete'](_0x5b61dc),_0x57d543['forEach'](_0x5450c3=>{_0x5a0e1a['set'](_0x5450c3,_0x31ac36);}),'insertion'!=_0x2de5f3['type']&&_0x2853cb!=_0x5b1142&&_0x5a0e1a['set'](_0x5b61dc['getIntersection'](_0x43245d),_0x2853cb));}const _0x1784c7=[];for(const [_0x209cf0,_0x3ff6ef]of _0x5a0e1a){const _0x5ea96a=_0x465e2c(),_0x4d063a={'key':_0xdc4515,'oldValue':_0x3ff6ef,'newValue':_0x5b1142};_0xdc4515['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':_0xdc4515});const _0x2e5330=('attribute:'+_0xdc4515+'|'+hn({'newValue':_0x5b1142}))['substring'](0x0,0x3c),_0x5a7baa=this['_setSuggestionData']({'id':_0x5ea96a,'type':_0x2e5330,'data':_0x4d063a,'createdAt':new Date(),'authorId':_0x1a0600,'attributes':_0x2189ed});_0x1784c7['push'](_0x5a7baa),this['_addSuggestionMarker'](_0x2e5330,_0x5ea96a,_0x1a0600,_0x209cf0);}return _0x1784c7;}enableDefaultAttributesIntegration(_0x39ac39){this['enableCommand'](_0x39ac39,(_0x2a6c64,..._0x83921c)=>{this['recordAttributeChanges'](()=>{_0x2a6c64(..._0x83921c);});});}startTrackingSession(_0x585597){return this['_trackingSessionId']=void 0x0!==_0x585597?_0x585597:_0x465e2c(),this['_trackingSessionId'];}_getAttributeKey(_0x27a0ad){return'attribute'==_0x27a0ad['type']?An(_0x27a0ad['subType']):null;}_applyOperationsAsSuggestions(_0x1e1308){if(0x0==_0x1e1308['length'])return;const _0x5cc3a9=this['editor'],_0x3bcd38=[],_0x394cb5=_0x3456f7=>{const _0x569203=_0x3456f7['_aiSource'];return _0x569203?{'@ai':{'type':_0x569203}}:{};},_0x440811=(_0x40f153,_0x5db813,_0x53e724,_0x55a1d9)=>{const _0x41192d=new Set(_0x55a1d9['flatMap'](_0x2c0620=>_0x2c0620['getMarkerNames']()));let _0x1d1057=!0x1;for(let _0x4ffb70=_0x5db813;_0x4ffb70<_0x40f153['operations']['length'];_0x4ffb70++){const _0x350499=_0x40f153['operations'][_0x4ffb70];if('marker'==_0x350499['type']){if(!_0x41192d['has'](_0x350499['name']))continue;_0x1d1057=!0x0;}_0x350499['_aiSource']=_0x53e724;}return _0x1d1057;};_0x5cc3a9['model']['change'](_0x127ecd=>{for(let _0x1ab7b8=0x0;_0x1ab7b8<_0x1e1308['length'];_0x1ab7b8++){const _0x5b3f42=_0x1e1308[_0x1ab7b8],_0x4eaff4=_0x5b3f42['_aiSource'];if(_0x5b3f42['baseVersion']=_0x5cc3a9['model']['document']['version'],_0x5b3f42['isDocumentOperation']=!0x0,_0x5da1ab(_0x5b3f42))continue;if(rn(_0x5b3f42)){const _0x1c2c0a=_0x4deaa3(_0x5b3f42['newRange'],_0x5cc3a9['model']);_0x3bcd38['unshift']({'range':rt['fromRange'](_0x1c2c0a),'operation':_0x5b3f42});continue;}const _0x588754=_0x127ecd['batch']['operations']['length']+0x1;let _0x1b16e4=[];switch(_0x5b3f42['type']){case'rename':{const _0x5e04de=_0x5b3f42['oldName'],_0x44e79d=_0x5b3f42['newName'];if(_0x5e04de==_0x44e79d)break;_0x127ecd['batch']['addOperation'](_0x5b3f42),_0x5cc3a9['model']['applyOperation'](_0x5b3f42);const _0x1bcb31='$elementName',_0x24e7cc=_0x5b3f42['position'],_0x40bde9=_0x5cc3a9['model']['createRange'](_0x24e7cc,_0x5cc3a9['model']['createPositionAt'](_0x24e7cc['nodeAfter'],'end'));_0x1b16e4=this['markAttributeChange'](_0x40bde9,_0x1bcb31,_0x5e04de,_0x44e79d,{..._0x394cb5(_0x5b3f42),'groupId':_0x465e2c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2440ab=_0x5b3f42['oldValue'],_0x291b16=_0x5b3f42['newValue'];if(_0x2440ab==_0x291b16)break;_0x127ecd['batch']['addOperation'](_0x5b3f42),_0x5cc3a9['model']['applyOperation'](_0x5b3f42);const _0x39fa33=_0x5b3f42['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x39fa33))break;const _0x2d68cb=_0x4deaa3(_0x5b3f42['range'],_0x5cc3a9['model']);_0x1b16e4=this['markAttributeChange'](_0x2d68cb,_0x39fa33,_0x2440ab,_0x291b16,{..._0x394cb5(_0x5b3f42),'groupId':_0x465e2c()});break;}case'insert':{if(_0x127ecd['batch']['addOperation'](_0x5b3f42),_0x5cc3a9['model']['applyOperation'](_0x5b3f42),_0x1e1308[_0x1ab7b8+0x1]&&'move'==_0x1e1308[_0x1ab7b8+0x1]['type'])break;const _0x30d2be=_0x5b3f42['position'],_0x59a317=_0x5b3f42['howMany'],_0x397660=_0x4deaa3(_0x5cc3a9['model']['createRange'](_0x30d2be,_0x30d2be['getShiftedBy'](_0x59a317)),_0x5cc3a9['model']);_0x1b16e4=on(this['markInsertion'](_0x397660,null,{..._0x394cb5(_0x5b3f42)}));break;}case'split':{_0x127ecd['batch']['addOperation'](_0x5b3f42),_0x5cc3a9['model']['applyOperation'](_0x5b3f42);const _0x1a13a2=_0x5b3f42['splitPosition'],_0x2f9c2f=_0x5b3f42['moveTargetPosition'],_0x204047=_0x5cc3a9['model']['createRange'](_0x1a13a2,_0x2f9c2f);_0x1b16e4=on(this['markInsertion'](_0x204047,null,{..._0x394cb5(_0x5b3f42)}));break;}case'move':case'remove':_0x127ecd['batch']['addOperation'](_0x5b3f42),_0x5cc3a9['model']['applyOperation'](_0x5b3f42);}_0x4eaff4&&_0x440811(_0x127ecd['batch'],_0x588754,_0x4eaff4,_0x1b16e4)&&delete _0x5b3f42['_aiSource'];}for(const {range:_0x3c154d,operation:_0x4886a8}of _0x3bcd38){const _0x14a5ef=_0x4886a8['_aiSource'],_0x5ac9ea=_0x394cb5(_0x4886a8),_0x3588f5=_0x127ecd['batch']['operations']['length'];_0x3c154d['detach']();const _0x337ea3=this['markDeletion'](_0x3c154d,null,{..._0x5ac9ea});_0x14a5ef&&_0x440811(_0x127ecd['batch'],_0x3588f5,_0x14a5ef,on(_0x337ea3));}});}_setSuggestionRange(_0x1339a9,_0x22d086){const _0x1eedea=_0x1339a9['getFirstMarker']();this['_model']['change'](_0x59649c=>{_0x59649c['updateMarker'](_0x1eedea,{'range':_0x22d086});});}_addThreadToSuggestion(_0x52fce5){const _0x57b642=_0x52fce5['id'],_0x17fe2c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x57b642)||this['_commentsRepository']['addCommentThread']({'channelId':_0x17fe2c,'threadId':_0x57b642,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4b9e6e=this['_commentsRepository']['getCommentThread'](_0x57b642);_0x4b9e6e['unbind']('isRemovable'),_0x4b9e6e['isRemovable']=!0x1,_0x52fce5['commentThread']=_0x4b9e6e;}_checkSuggestionCorrectness(_0x305846,_0x3173a7,_0x3c8c71,_0x20a0e6){if(_0x305846['type']!=_0x3173a7||_0x305846['subType']!=_0x3c8c71||_0x305846['creator']['id']!=_0x20a0e6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x29102a('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x60941f,_0x3dfbec){const _0xb8a3bc=_0x60941f['getFirstRange']();if(_0x3dfbec['isEqual'](_0xb8a3bc))_0x60941f['removeMarkers']();else{if(_0xb8a3bc['containsRange'](_0x3dfbec)){const _0x201838=this['_model']['createPositionAt'](_0x3dfbec['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x60941f,this['_model']['createRange'](_0xb8a3bc['start'],_0x201838));const _0x2d882c=_0x465e2c(),_0x87ba8b=_0x60941f['creator']['id'],_0x4448c4=_0x60941f['type']+':'+_0x60941f['subType'];this['_setSuggestionData']({'id':_0x2d882c,'type':_0x4448c4,'createdAt':new Date(),'authorId':_0x87ba8b,'data':_0x60941f['data'],'attributes':_0x60941f['attributes']});const _0x4a8bc6=this['_model']['createPositionAt'](_0x3dfbec['end']['parent'],'after'),_0x8416b6=this['_model']['createRange'](_0x4a8bc6,_0xb8a3bc['end']);this['_addSuggestionMarker'](_0x4448c4,_0x2d882c,_0x87ba8b,_0x8416b6);}else{if(_0xb8a3bc['containsPosition'](_0x3dfbec['start'])){const _0xf33a9b=this['_model']['createPositionAt'](_0x3dfbec['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x60941f,this['_model']['createRange'](_0xb8a3bc['start'],_0xf33a9b));}else{const _0x272c02=this['_model']['createPositionAt'](_0x3dfbec['end']['parent'],'after');this['_setSuggestionRange'](_0x60941f,this['_model']['createRange'](_0x272c02,_0xb8a3bc['end']));}}}}_rangeIsInLocalUserInsertion(_0x480aba){for(const {suggestion:_0x261173,meta:_0x215640}of this['_findSuggestions'](_0x480aba,'insertion')){if(!_0x215640['isOwn'])continue;const _0x3e6f69=_0x261173['getRanges']();for(const _0x525d9c of _0x3e6f69)if(!_0x480aba['getDifference'](_0x525d9c)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x2b8165){return this['editor']['plugins']['get']('Users')['getUser'](_0x2b8165);}_getExternalAuthor(_0x437c08){const _0x3e8122=this['editor']['plugins']['get']('Users'),_0x419bbb=_0x240ff5('external:'+_0x437c08),_0xa03fd6=_0x3e8122['getUser'](_0x419bbb);return _0xa03fd6||_0x3e8122['addUser']({'id':_0x419bbb,'name':_0x437c08});}_createSuggestion(_0x3beae3,_0x4aa5bd,_0x4a123a,_0x572e70,_0x39a3f1,_0x5e977b){const _0x547f15=this['_getAuthorFromId'](_0x572e70);if(!_0x547f15)throw new _0x29102a('track-changes-user-not-found',this,{'authorId':_0x572e70,'suggestionId':_0x4a123a});const _0x2b2184=this['_suggestionFactory']['buildSuggestion'](_0x3beae3,_0x4aa5bd,_0x4a123a,_0x547f15,_0x39a3f1,_0x46e26d=>{this['_updateSuggestionData'](_0x4a123a,{'attributes':_0x46e26d});const _0x207b02=this['getSuggestion'](_0x4a123a);this['_joinWithAdjacentSuggestions'](new Set([_0x207b02])),this['_refreshSuggestionsChain'](new Set([_0x207b02]));},_0x5e977b);return this['listenTo'](_0x2b2184,'accept',()=>{this['_updateSuggestionData'](_0x4a123a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2b2184,'discard',()=>{this['_updateSuggestionData'](_0x4a123a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4a123a,_0x2b2184),this['_suggestionState']['set'](_0x2b2184,'notReady'),_0x2b2184;}_breakSuggestionMarker(_0x262382,_0x3668f9,_0x2da9b1){const _0x1f1cc2=_0x262382['getFirstRange'](),_0x1a8c11=_0x1f1cc2['start'],_0x57f618=_0x1f1cc2['end'];this['_setSuggestionRange'](_0x262382,this['_model']['createRange'](_0x1a8c11,_0x3668f9));const _0x5168aa=_0x465e2c(),_0x850ce9=_0x262382['creator']['id'],_0x5e899f=_0x262382['type']+(_0x262382['subType']?':'+_0x262382['subType']:'');this['_setSuggestionData']({'id':_0x5168aa,'type':_0x5e899f,'createdAt':new Date(),'authorId':_0x850ce9,'originalSuggestionId':_0x262382['_originalSuggestionId']||_0x262382['id'],'attributes':_0x262382['attributes'],'data':_0x262382['data']});const _0x37ef45=this['_getAttributeKey'](_0x262382);('formatBlock'==_0x262382['type']||_0x37ef45&&this['_suggestionsConversion']['isBlockAttribute'](_0x37ef45))&&(_0x2da9b1=this['_model']['createPositionBefore'](_0x2da9b1['parent'])),this['_addSuggestionMarker'](_0x5e899f,_0x5168aa,_0x850ce9,this['_model']['createRange'](_0x2da9b1,_0x57f618));}_findSuggestions(_0x23b516,_0x3d9fe3=null){const _0x39958d=[],_0x25e56f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x23b516)||(_0x23b516=[_0x23b516]);for(const _0x5ba491 of this['getSuggestions']()){if(!_0x5ba491['isInContent'])continue;if(_0x3d9fe3&&_0x5ba491['type']!=_0x3d9fe3)continue;let _0x33cf90=!0x1;for(const _0x695ede of _0x5ba491['getRanges']()){for(const _0x52e98b of _0x23b516){const _0x35bff6=_0x52e98b['start']['isEqual'](_0x695ede['end'])||_0x52e98b['end']['isEqual'](_0x695ede['start']);if(_0x35bff6||_0x52e98b['getIntersection'](_0x695ede)){const _0x443e39=_0x52e98b['containsRange'](_0x695ede)&&ln(this['_model']['schema'],_0x695ede['start'],_0x52e98b),_0x5e3a0d=_0x695ede['containsRange'](_0x52e98b)&&ln(this['_model']['schema'],_0x52e98b['start'],_0x695ede);_0x39958d['push']({'suggestion':_0x5ba491,'meta':{'isOwn':_0x25e56f==_0x5ba491['author'],'isNextTo':_0x35bff6,'isInsideObject':_0x443e39,'containsRangeInObject':_0x5e3a0d}}),_0x33cf90=!0x0;break;}}if(_0x33cf90)break;}}return _0x39958d;}_addSuggestionMarker(_0xe7b094,_0x137842,_0x2e76df,_0x156b50,_0x3b818e){this['_model']['change'](_0x5a2ce2=>{let _0x5edf9a='suggestion:'+_0xe7b094+':'+_0x137842+':'+_0x2e76df;_0x3b818e&&(_0x5edf9a=_0x5edf9a+':'+_0x3b818e),_0x5a2ce2['addMarker'](_0x5edf9a,{'range':_0x156b50,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x27308a){const _0x465a21=_0x27308a['previous'],_0x56c83c=_0x27308a['next'];_0x27308a['previous']=null,_0x27308a['next']=null,null!=_0x465a21&&_0x465a21['next']==_0x27308a&&(_0x465a21['next']=_0x56c83c),null!=_0x56c83c&&_0x56c83c['previous']==_0x27308a&&(_0x56c83c['previous']=_0x465a21),'ready'==this['_suggestionState']['get'](_0x27308a)&&(this['_suggestionState']['set'](_0x27308a,'removed'),this['fire']('suggestionUnloaded',_0x27308a,_0x465a21,_0x56c83c));}_setSuggestionData(_0x4686ab){const _0x1eb6fb=_0x4686ab['id'],_0x20760e=this['addSuggestionData'](_0x4686ab);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x54dffc=this['editor']['plugins']['get']('PendingActions'),_0x3d5d4d=_0x20760e['hasComments'],_0x1ebdf1=_0x20760e['subType']?_0x20760e['type']+':'+_0x20760e['subType']:_0x20760e['type'],_0x19ea59=this['editor']['locale'],_0x165c18=_0x54dffc['add'](Mt(_0x19ea59,'PENDING_ACTION_SUGGESTION')),_0x52db70={'id':_0x1eb6fb,'type':_0x1ebdf1,'hasComments':_0x3d5d4d,'data':_0x4686ab['data']||null,'originalSuggestionId':_0x4686ab['originalSuggestionId']||null,'attributes':_0x20760e['attributes']};this['_adapter']['addSuggestion'](_0x52db70)['then'](_0x344fe8=>{_0x20760e['_saved']=!0x0,_0x54dffc['remove'](_0x165c18),_0x344fe8&&_0x344fe8['createdAt']&&(this['_suggestions']['get'](_0x1eb6fb)['createdAt']=_0x344fe8['createdAt']);})['catch'](_0x2ca7f4=>{throw _0xffc550('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x20760e['discard']();}),_0x20760e['stopListening'](),this['_suggestions']['delete'](_0x20760e['id']),this['_suggestionState']['delete'](_0x20760e),_0x2ca7f4;});}return _0x20760e;}_updateSuggestionData(_0x376651,_0x37c838){const _0x25fb05=this['editor']['plugins']['get']('PendingActions'),_0x38f96d=this['getSuggestion'](_0x376651);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x38f96d['_saved']){const _0x1fb915=_0x25fb05['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x376651,_0x37c838)['then'](()=>{_0x25fb05['remove'](_0x1fb915);});}else _0x38f96d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x376651,_0x37c838);});}}_getSuggestionData(_0x2d5335){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x29102a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d5335);}_handleNewSuggestionMarker(_0x36c842){const {id:_0x262305,type:_0x23ca8f,subType:_0xaa8f10,authorId:_0x484e03}=tt(_0x36c842),_0x494e46=this['_suggestions']['get'](_0x262305)||this['_createSuggestion'](_0x23ca8f,_0xaa8f10,_0x262305,_0x484e03,{});switch(this['_checkSuggestionCorrectness'](_0x494e46,_0x23ca8f,_0xaa8f10,_0x484e03),this['_suggestionState']['get'](_0x494e46)){case'notReady':this['_getSuggestionData'](_0x262305)['then'](_0x578f21=>{let _0x48a372=Promise['resolve']();_0x578f21['hasComments']&&(_0x48a372=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x262305})),_0x48a372['then'](()=>{this['addSuggestionData'](_0x578f21)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x494e46,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x262305,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x494e46,'ready'),this['fire']('suggestionLoaded',_0x494e46);break;case'ready':this['fire']('suggestionChanged',_0x494e46);}return _0x494e46['addMarkerName'](_0x36c842),_0x494e46;}_refreshSuggestionsChain(_0x12ab74){const _0x4fb8ad=Array['from'](_0x12ab74),_0x63e9c6=_0x4fb8ad['filter'](_0x3dd761=>'attribute'==_0x3dd761['type']);this['_refreshAttributeSuggestionsChain'](_0x63e9c6);const _0x3314dc=_0x4fb8ad['filter'](_0x44065c=>!_0x44065c['isMultiRange']&&'attribute'!=_0x44065c['type']),_0x56f6e3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x587f5d=>!_0x587f5d['isMultiRange']&&'attribute'!=_0x587f5d['type']),_0xd73265=_0x56f6e3['filter'](_0x3c3439=>!_0x12ab74['has'](_0x3c3439)),_0x344749=new Map(_0x56f6e3['map'](_0x5d5ccd=>[_0x5d5ccd,this['_suggestionFactory']['getSuggestionCallback'](_0x5d5ccd['type'],_0x5d5ccd['subType'],'chain')])),_0x5db861=new Map(_0x56f6e3['map'](_0x1ad811=>[_0x1ad811,_0x1ad811['getFirstRange']()])),_0x3507e8=new Set(),_0x1f716e=new Set();for(let _0x4c4452=0x0;_0x4c4452<_0x3314dc['length'];_0x4c4452++)_0x17cb4f(_0x3314dc[_0x4c4452],_0x3314dc,_0x4c4452+0x1);for(let _0x40479d=0x0;_0x40479d<_0x3314dc['length'];_0x40479d++)_0x17cb4f(_0x3314dc[_0x40479d],_0xd73265,0x0);const _0x33fd7b=new Set();for(let _0x19a94b=0x0;_0x19a94b<_0x3314dc['length'];_0x19a94b++){const _0x5f4a79=_0x3314dc[_0x19a94b];!_0x1f716e['has'](_0x5f4a79)&&_0x5f4a79['previous']&&(_0x33fd7b['add'](_0x5f4a79['previous']),_0x5f4a79['previous']['next']===_0x5f4a79&&(_0x5f4a79['previous']['next']=null),_0x5f4a79['previous']=null),!_0x3507e8['has'](_0x5f4a79)&&_0x5f4a79['next']&&(_0x33fd7b['add'](_0x5f4a79['next']),_0x5f4a79['next']['previous']===_0x5f4a79&&(_0x5f4a79['next']['previous']=null),_0x5f4a79['next']=null);}function _0x17cb4f(_0x3e75d9,_0x411795,_0x3dcdd4){for(let _0x3e3247=_0x3dcdd4;_0x3e3247<_0x411795['length'];_0x3e3247++){const _0x4ac118=_0x126ea7(_0x3e75d9,_0x411795[_0x3e3247]);_0x4ac118&&(_0x4ac118[0x0]['next']=_0x4ac118[0x1],_0x4ac118[0x1]['previous']=_0x4ac118[0x0],_0x3507e8['add'](_0x4ac118[0x0]),_0x1f716e['add'](_0x4ac118[0x1]));}}function _0x126ea7(_0x32a7f9,_0x51fe2f){if(_0x32a7f9['author']['id']!==_0x51fe2f['author']['id'])return null;const _0x5a18ab=_0x344749['get'](_0x32a7f9)(_0x32a7f9,_0x51fe2f,_0x5db861['get'](_0x32a7f9),_0x5db861['get'](_0x51fe2f));return _0x5a18ab&&_0x344749['get'](_0x51fe2f)(_0x32a7f9,_0x51fe2f,_0x5db861['get'](_0x32a7f9),_0x5db861['get'](_0x51fe2f))?_0x5a18ab[0x1]['commentThread']&&_0x5a18ab[0x1]['commentThread']['length']?null:_0x5a18ab:null;}_0x33fd7b['size']&&this['_refreshSuggestionsChain'](_0x33fd7b);}_refreshAttributeSuggestionsChain(_0x4019b8){if(0x0==_0x4019b8['length'])return;const _0x4bfa30=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cd61d=>'attribute'==_0x2cd61d['type']&&_0x2cd61d['_isDataLoaded']),_0x4a8e49=[],_0x9b8e4e=new Map();for(const _0x24183b of _0x4bfa30){const _0x2eb44d=_0x240ff5(_0x24183b['attributes']);_0x9b8e4e['has'](_0x2eb44d)||(_0x9b8e4e['set'](_0x2eb44d,_0x4a8e49['length']),_0x4a8e49['push']([])),_0x4a8e49[_0x9b8e4e['get'](_0x2eb44d)]['push'](_0x24183b);}!(function(){_0x4a8e49['sort']((_0x23ec4c,_0x587518)=>{const _0x2a5148=_0x23ec4c[0x0]['createdAt'],_0x32ae82=_0x587518[0x0]['createdAt'];return _0x2a5148==_0x32ae82?_0x23ec4c[0x0]['attributes']['groupId']<_0x587518[0x0]['attributes']['groupId']?-0x1:0x1:_0x2a5148<_0x32ae82?-0x1:0x1;});for(const _0x17de12 of _0x4a8e49)_0x17de12['sort']((_0x4f2ca2,_0x2dd053)=>_0x4f2ca2['id']<_0x2dd053['id']?-0x1:0x1);}());for(let _0x1aa4c6=0x0;_0x1aa4c6<_0x4a8e49['length'];_0x1aa4c6++){if(0x0==_0x4a8e49[_0x1aa4c6]['length'])continue;const _0x9b2128=[];for(let _0x45bc24=_0x1aa4c6+0x1;_0x45bc24<_0x4a8e49['length'];_0x45bc24++)0x0!=_0x4a8e49[_0x45bc24]['length']&&_0x1eaa47(_0x4a8e49[_0x1aa4c6],_0x4a8e49[_0x45bc24])&&_0x9b2128['push'](_0x45bc24);for(const _0xa40be6 of _0x9b2128)_0x4a8e49[_0x1aa4c6]=_0x4a8e49[_0x1aa4c6]['concat'](_0x4a8e49[_0xa40be6]),_0x4a8e49[_0xa40be6]=[];}for(const _0x2f7acb of _0x4a8e49)for(let _0x426654=0x0;_0x426654<_0x2f7acb['length'];_0x426654++){const _0x5314e2=_0x2f7acb[_0x426654+0x1]||null;_0x2f7acb[_0x426654]['next']!==_0x5314e2&&(_0x2f7acb[_0x426654]['next']=_0x5314e2);}for(const _0x5c4120 of _0x4a8e49)for(let _0x166d65=0x0;_0x166d65<_0x5c4120['length'];_0x166d65++){const _0x5f1441=_0x5c4120[_0x166d65-0x1]||null;_0x5c4120[_0x166d65]['previous']!==_0x5f1441&&(_0x5c4120[_0x166d65]['previous']=_0x5f1441);}function _0x1eaa47(_0x59abd6,_0x4fc22d){if(_0x59abd6[0x0]['attributes']['groupId']!==_0x4fc22d[0x0]['attributes']['groupId']&&_0x59abd6[0x0]['author']!==_0x4fc22d[0x0]['author'])return!0x1;if(!function(_0x1a47e6,_0x2e1d46){return!_0x1a47e6['hasComments']&&!_0x2e1d46['hasComments']||(!_0x1a47e6['hasComments']||!_0x2e1d46['hasComments'])&&(!!(_0x1a47e6['hasComments']&&_0x2e1d46['createdAt']<_0x1a47e6['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x2e1d46['hasComments']&&_0x1a47e6['createdAt']<_0x2e1d46['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x59abd6[0x0],_0x4fc22d[0x0]))return!0x1;const _0x3ee1ea=lt(_0x59abd6[0x0]['attributes'],['groupId','trackingSessionId']),_0x1dc9c5=lt(_0x4fc22d[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x3ee1ea,_0x1dc9c5)&&(_0x59abd6[0x0]['attributes']['groupId']==_0x4fc22d[0x0]['attributes']['groupId']||_0x59abd6[0x0]['attributes']['trackingSessionId']===_0x4fc22d[0x0]['attributes']['trackingSessionId']&&(!!_0x59abd6['every'](_0x153585=>_0x4fc22d['some'](_0x166124=>_0x153585['getFirstRange']()['isEqual'](_0x166124['getFirstRange']())))&&_0x4fc22d['every'](_0x1c395e=>_0x59abd6['some'](_0x50fdcc=>_0x1c395e['getFirstRange']()['isEqual'](_0x50fdcc['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x311540){const _0x532dc0=Array['from'](_0x311540),_0x607711=this['getSuggestions']({'skipNotAttached':!0x0}),_0x454031=_0x607711['filter'](_0x3ffbd7=>!_0x311540['has'](_0x3ffbd7)),_0x2a47cf=new Map(_0x532dc0['map'](_0x262ba5=>[_0x262ba5,this['_suggestionFactory']['getSuggestionCallback'](_0x262ba5['type'],_0x262ba5['subType'],'join')])),_0x166d12=new Map(_0x607711['map'](_0x1bdd70=>[_0x1bdd70,_0x1bdd70['getRanges']()]));for(let _0x5ef813=0x0;_0x5ef813<_0x532dc0['length'];_0x5ef813++)if(_0x45c0f6(this,_0x532dc0[_0x5ef813],_0x532dc0,_0x5ef813+0x1))return!0x0;for(let _0x2d4ab8=0x0;_0x2d4ab8<_0x532dc0['length'];_0x2d4ab8++)if(_0x45c0f6(this,_0x532dc0[_0x2d4ab8],_0x454031,0x0))return!0x0;return!0x1;function _0x45c0f6(_0x408b74,_0x238d46,_0x5002e3,_0x2b9669){for(let _0x2ddb7a=_0x2b9669;_0x2ddb7a<_0x5002e3['length'];_0x2ddb7a++){const _0x364338=_0x5002e3[_0x2ddb7a];if(_0x364338['type']!==_0x238d46['type']||_0x364338['author']['id']!==_0x238d46['author']['id']||_0x364338['subType']!==_0x238d46['subType'])continue;if(!pn(_0x238d46,_0x364338))continue;if('attribute'==_0x238d46['type']&&_0x238d46['data']['oldValue']!=_0x364338['data']['oldValue'])continue;if('attribute'==_0x238d46['type']&&_0x408b74['_suggestionsConversion']['isBlockAttribute'](_0x238d46['data']['key']))continue;if('formatBlock'==_0x238d46['type']){const _0x19e37f=_0x408b74['editor']['model'],_0x318dd7=_0x238d46['getContainedElement']();if(_0x318dd7&&(_0x19e37f['schema']['isObject'](_0x318dd7)||_0x19e37f['schema']['isLimit'](_0x318dd7)))continue;}const _0x1d7ec3=_0x2a47cf['get'](_0x238d46),_0x2e3f1e=_0x166d12['get'](_0x238d46),_0x250fbb=_0x166d12['get'](_0x364338),_0x4f1f21=_0x238d46['commentThread']&&_0x238d46['commentThread']['length'],_0x5effa4=_0x364338['commentThread']&&_0x364338['commentThread']['length'];if(!_0x4f1f21&&_0x1d7ec3(_0x250fbb,_0x2e3f1e))return _0x408b74['_joinSuggestions'](_0x364338,_0x238d46),_0x166d12['delete'](_0x238d46),!0x0;if(!_0x5effa4&&_0x1d7ec3(_0x2e3f1e,_0x250fbb))return _0x408b74['_joinSuggestions'](_0x238d46,_0x364338),_0x166d12['delete'](_0x364338),!0x0;}return!0x1;}}_joinSuggestions(_0x278780,_0x3b6ee5){if(_0x278780['isMultiRange']){for(const _0x28f71c of _0x3b6ee5['getRanges']())_0x278780['addRange'](_0x28f71c);}else{const _0x451f90=_0x3b6ee5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x278780,this['_model']['createRange'](_0x278780['getFirstRange']()['start'],_0x451f90));}_0x3b6ee5['removeMarkers']();}_getMarkerAnnouncementText(_0x2969af,_0x1a3cb9,_0x3699e7){const _0x1db49c=_0x2969af['startsWith']('format')||_0x2969af['startsWith']('attribute')?'FORMATTING':_0x2969af['toUpperCase']();return Mt(this['editor']['locale'],_0x1a3cb9+'_'+_0x1db49c+'_SUGGESTION_ANNOUNCEMENT',_0x3699e7);}_initAriaMarkerChangeAnnouncements(){const _0x4c024f=this['editor'];if(!_0x4c024f['ui'])return;const {ariaLiveAnnouncer:_0x161e78}=_0x4c024f['ui'];et(this['_model'],({left:_0xd81a8c,entered:_0x306064})=>{for(const _0x502b39 of _0xd81a8c){const {group:_0x589d0c,type:_0x22de82}=tt(_0x502b39['name']);if('suggestion'===_0x589d0c){_0x161e78['announce'](this['_getMarkerAnnouncementText'](_0x22de82,'LEAVE'));break;}}for(const _0x1c435b of _0x306064){const {group:_0x5e1a1e,type:_0x28e90d}=tt(_0x1c435b['name']);if('suggestion'===_0x5e1a1e){_0x161e78['announce'](this['_getMarkerAnnouncementText'](_0x28e90d,'ENTER',_0x4434bf(_0x19ccce)));break;}}});}_processAttributeChanges(_0x317eb6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x53a422=this['editor'],_0x4f8f1f=_0x53a422['model']['document']['differ']['getChanges']();if(0x0==_0x4f8f1f['length'])return!0x1;const _0x1ede1f=[],_0x3f27bd=_0x4f8f1f['filter'](_0x145281=>'attribute'==_0x145281['type']),_0x198d92=_0x4f8f1f['filter'](_0x18c9a3=>'insert'==_0x18c9a3['type']&&'$text'!=_0x18c9a3['name']),_0x48f99b=_0x4f8f1f['filter'](_0x3a301b=>'remove'==_0x3a301b['type']&&'$text'!=_0x3a301b['name']);for(const _0x4d03e6 of _0x3f27bd)_0x1ede1f['push']({'key':_0x4d03e6['attributeKey'],'newValue':_0x4d03e6['attributeNewValue'],'oldValue':_0x4d03e6['attributeOldValue'],'range':En(_0x4d03e6['range'],_0x53a422['model'])});for(const _0x580011 of _0x198d92){const _0xd825f0=_0x48f99b['find'](_0x3d50f1=>_0x3d50f1['position']['isEqual'](_0x580011['position']));_0xd825f0&&_0x1ede1f['push']({'key':sn,'newValue':_0x580011['name'],'oldValue':_0xd825f0['name'],'range':_0x53a422['model']['createRangeOn'](_0x580011['position']['nodeAfter'])});}return 0x0!=_0x1ede1f['length']&&this['_reduceExistingSuggestions'](_0x317eb6,_0x1ede1f);}_processAttributeSuggestions(_0x5a897f){let _0x57c948=!0x1;const _0x96ad9c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x15faba=>_0x15faba['data']['newRange']&&_0x15faba['name']['startsWith']('suggestion:attribute:'));for(const _0x3f0f9a of _0x96ad9c){const {subType:_0x36adca,id:_0x439e91}=tt(_0x3f0f9a['name']),_0x3d7754=_0x36adca['split']('|')[0x0];for(const _0x2606a1 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2606a1['id']!=_0x439e91&&'attribute'==_0x2606a1['type']&&_0x2606a1['data']&&_0x2606a1['data']['key']==_0x3d7754&&_0x2606a1['getFirstRange']()['isIntersecting'](_0x3f0f9a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2606a1,_0x3f0f9a['data']['newRange'],_0x5a897f),_0x57c948=!0x0);}return _0x57c948;}recordAttributeChanges(_0x33d006){this['_recordAttributeSuggestions']=!0x0,_0x33d006();}_reduceExistingSuggestions(_0x53b341,_0xf072f0){if(0x0==_0xf072f0['length'])return!0x1;let _0x3b6c08=!0x1;for(const _0x21901a of _0xf072f0){const _0x22212e=this['_findSuggestions'](_0x21901a['range'],'attribute')['filter'](_0x4a51bd=>!_0x4a51bd['meta']['isNextTo'])['map'](_0x282bf6=>_0x282bf6['suggestion']),_0x4fac21=_0x240ff5({'newValue':_0x21901a['newValue']});_0x22212e['filter'](_0x19028c=>{const [_0x1e24af,_0x21ae11]=_0x19028c['subType']['split']('|');return _0x1e24af==_0x21901a['key']&&_0x21ae11!=_0x4fac21;})['forEach'](_0x2735df=>{this['_reduceSuggestionAttributeRange'](_0x2735df,_0x21901a['range'],_0x53b341),_0x3b6c08=!0x0;});}return _0x3b6c08;}_reduceSuggestionAttributeRange(_0x4ac7ba,_0x44a8d7,_0x597179){const _0x9c264b=_0x4ac7ba['getFirstRange']()['getDifference'](_0x44a8d7);0x0!==_0x9c264b['length']?0x1!==_0x9c264b['length']?this['_breakSuggestionMarker'](_0x4ac7ba,_0x44a8d7['start'],_0x44a8d7['end']):this['_setSuggestionRange'](_0x4ac7ba,_0x9c264b[0x0]):_0x597179['removeMarker'](_0x4ac7ba['getFirstMarker']());}},cn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x1891a5){this['_editor']=_0x1891a5,this['_model']=_0x1891a5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x425ebe,_0x583a3b,_0x1833d3,_0x46d56c,_0x27a7ec,_0x4be00a,_0x2f182d){return new St(this['_model'],{'type':_0x425ebe,'subType':_0x583a3b,'id':_0x1833d3,'originalSuggestionId':_0x2f182d,'author':_0x46d56c,'creator':_0x46d56c,'attributes':_0x27a7ec,'onAttributesChange':_0x4be00a,'onAccept':(..._0x4d2741)=>this['getSuggestionCallback'](_0x425ebe,_0x583a3b,'accept')(..._0x4d2741),'onDiscard':(..._0xd309b2)=>this['getSuggestionCallback'](_0x425ebe,_0x583a3b,'discard')(..._0xd309b2)});}registerCustomCallback(_0x4466f2,_0x4db50a,_0x9669b0,_0x4bdaeb){const _0x1e6640=_0x4466f2+':'+_0x4db50a+':'+_0x9669b0;this['_customCallbacks']['set'](_0x1e6640,_0x4bdaeb);}getSuggestionCallback(_0x1a47ae,_0x4fb05a,_0x4ee35b){const _0xe7ba36=_0x1a47ae+':'+_0x4fb05a+':'+_0x4ee35b;return this['_customCallbacks']['get'](_0xe7ba36)||this['_defaultCallbacks']['get'](_0x1a47ae+':'+_0x4ee35b);}_registerDefaultCallbacks(){const _0x39d0dc=()=>!0x1,_0x285fe5=_0x4dca32=>{_0x4dca32['sort']((_0x47f6a8,_0x32fb4a)=>_0x47f6a8['start']['isBefore'](_0x32fb4a['start'])?0x1:-0x1),this['_model']['change'](_0x149dd0=>{for(const _0x19f144 of _0x4dca32){let _0x52e82c;_0x52e82c=_0x19f144['end']['isAtEnd']&&_0x19f144['end']['parent']==_0x19f144['start']['nodeAfter']?_0x149dd0['createSelection'](_0x19f144['start']['nodeAfter'],'on'):_0x149dd0['createSelection'](_0x19f144),this['_model']['deleteContent'](_0x52e82c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x532fee=(_0x5ad494,_0x40fcf4)=>{_0x40fcf4&&this['_model']['change'](_0x57d30c=>{const {commandName:_0xff5c37,commandParams:_0x2a1750=[]}=_0x40fcf4,_0x1f3dc4=_0x5ad494['map'](_0x3adfa3=>(un(_0x3adfa3)&&(_0x3adfa3=this['_model']['createRange'](_0x3adfa3['end'])),_0x3adfa3))['filter'](_0x1e3499=>'$graveyard'!==_0x1e3499['root']['rootName']);if(_0x1f3dc4['length']<0x1)return;const _0xed820c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xe834ab=>rt['fromRange'](_0xe834ab));_0x57d30c['setSelection'](_0x1f3dc4);for(const _0x4ef0f8 of this['_editor']['commands']['commands']())_0x4ef0f8['refresh']();_0x2a1750['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xff5c37,..._0x2a1750);const _0x10a14b=_0xed820c['filter'](_0x6874e7=>'$graveyard'!=_0x6874e7['root']['rootName']);_0x10a14b['length']>0x0&&_0x57d30c['setSelection'](_0x10a14b);for(const _0x4d91e1 of _0xed820c)_0x4d91e1['detach']();});},_0x47a18f=(_0x37cb97,_0x363763)=>0x1==_0x37cb97['length']&&0x1==_0x363763['length']&&_0x37cb97[0x0]['end']['isEqual'](_0x363763[0x0]['start']),_0x5553c1=(_0x47fec4,_0x30f258,_0x535b65,_0x45ffbb)=>_n(_0x47fec4,_0x30f258,_0x535b65,_0x45ffbb)?[_0x47fec4,_0x30f258]:_n(_0x30f258,_0x47fec4,_0x45ffbb,_0x535b65)?[_0x30f258,_0x47fec4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x39d0dc),this['_defaultCallbacks']['set']('insertion:discard',_0x285fe5),this['_defaultCallbacks']['set']('insertion:join',_0x47a18f),this['_defaultCallbacks']['set']('insertion:chain',_0x5553c1),this['_defaultCallbacks']['set']('deletion:accept',_0x285fe5),this['_defaultCallbacks']['set']('deletion:discard',_0x39d0dc),this['_defaultCallbacks']['set']('deletion:join',_0x47a18f),this['_defaultCallbacks']['set']('deletion:chain',_0x5553c1),this['_defaultCallbacks']['set']('formatInline:accept',_0x532fee),this['_defaultCallbacks']['set']('formatInline:discard',_0x39d0dc),this['_defaultCallbacks']['set']('formatInline:join',_0x47a18f),this['_defaultCallbacks']['set']('formatInline:chain',_0x39d0dc),this['_defaultCallbacks']['set']('formatBlock:accept',_0x532fee),this['_defaultCallbacks']['set']('formatBlock:discard',_0x39d0dc),this['_defaultCallbacks']['set']('formatBlock:join',_0x47a18f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x39d0dc),this['_defaultCallbacks']['set']('attribute:accept',_0x39d0dc),this['_defaultCallbacks']['set']('attribute:discard',(_0x4cd29c,_0x29d8f7)=>{if(!_0x29d8f7)return;const _0x3b8bc8=this['_editor']['plugins']['get'](_0xb4ba2e);this['_model']['change'](_0x1ce474=>{if('$elementName'==_0x29d8f7['key'])for(const _0x1924e4 of _0x4cd29c){const _0x894b7e=_0x1924e4['start']['nodeAfter'],_0x1e92f8=_0x29d8f7['oldValue'];_0x1ce474['rename'](_0x894b7e,_0x1e92f8);}else{if(_0x3b8bc8['isBlockAttribute'](_0x29d8f7['key'])){for(const _0x503f77 of _0x4cd29c)void 0x0!==_0x29d8f7['oldValue']?_0x1ce474['setAttribute'](_0x29d8f7['key'],_0x29d8f7['oldValue'],_0x503f77['start']['nodeAfter']):_0x1ce474['removeAttribute'](_0x29d8f7['key'],_0x503f77['start']['nodeAfter']);}else{for(const _0xe07d12 of _0x4cd29c)_0x29d8f7['oldValue']?_0x1ce474['setAttribute'](_0x29d8f7['key'],_0x29d8f7['oldValue'],_0xe07d12):_0x1ce474['removeAttribute'](_0x29d8f7['key'],_0xe07d12);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x47a18f);}};function ln(_0x5ba110,_0x876f9e,_0x2db955){for(const _0x535a18 of _0x876f9e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x535a18['root']==_0x535a18)return!0x1;if(!_0x2db955['containsItem'](_0x535a18))return!0x1;if(_0x5ba110['isObject'](_0x535a18)||_0x5ba110['isLimit'](_0x535a18))return!0x0;}return!0x1;}function un(_0x1425a6){return _0x1425a6['end']['parent']==_0x1425a6['start']['nodeAfter']&&_0x1425a6['end']['isAtStart'];}function dn(_0x5cc26c,_0x21ad28,_0x5713a5,_0x38e210){const _0x26b452=_0x15540d=>!_0x15540d['item']['is']('$textProxy')&&!_0x38e210['isObject'](_0x15540d['item']),_0x5b473b=_0x5cc26c['start']['getLastMatchingPosition'](_0x26b452),_0x2e1787=_0x5cc26c['end']['getLastMatchingPosition'](_0x26b452,{'direction':'backward'});return(!_0x5cc26c['start']['isEqual'](_0x5b473b)||!_0x5cc26c['end']['isEqual'](_0x2e1787))&&(_0x5b473b['isBefore'](_0x2e1787)?_0x5713a5['updateMarker'](_0x21ad28,{'range':_0x5713a5['createRange'](_0x5b473b,_0x2e1787)}):_0x5713a5['removeMarker'](_0x21ad28),!0x0);}function hn(_0x48c685){return _0x240ff5(_0x48c685);}function gn(_0x2ecd03){const _0xcb5c18=_0x2ecd03['start']['nodeAfter'];return _0xcb5c18&&_0xcb5c18['is']('element');}function fn(_0xdeed61){return un(_0xdeed61)||function(_0x220d0a){return _0x220d0a['start']['parent']==_0x220d0a['end']['nodeBefore']&&_0x220d0a['start']['isAtEnd'];}(_0xdeed61);}function mn(_0x31b164,_0x375943){try{const _0x49b68f=_0x31b164['getRange']();for(const _0x37f269 of _0x375943)if(_0x31b164!==_0x37f269&&_0x49b68f&&_0x49b68f['isIntersecting'](_0x37f269['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function En(_0x442980,_0x4054c7){return null==_0x442980['end']['nodeBefore']&&_0x442980['end']['parent']==_0x442980['start']['nodeAfter']?Tn(_0x442980['start']['nodeAfter'],_0x4054c7):_0x442980;}function Tn(_0x477799,_0x28bb61){const _0x39673b=_0x28bb61['schema']['isObject'](_0x477799)||_0x28bb61['schema']['isSelectable'](_0x477799);return _0x28bb61['createRange'](_0x28bb61['createPositionAt'](_0x477799,'before'),_0x39673b?_0x28bb61['createPositionAfter'](_0x477799):_0x28bb61['createPositionAt'](_0x477799,'end'));}function _n(_0x4dfa09,_0x154296,_0x1af1b4,_0x159fb5){return!!pn(_0x4dfa09,_0x154296)&&_0x1af1b4['end']['isEqual'](_0x159fb5['start']);}function pn(_0x579ad0,_0x174e42){if(!_0x579ad0['_isDataLoaded']||!_0x174e42['_isDataLoaded'])return!0x1;const _0x57bfae=new Set(Object['keys'](_0x579ad0['attributes'])),_0x2fae64=new Set(Object['keys'](_0x174e42['attributes']));if(_0x57bfae['delete']('groupId'),_0x2fae64['delete']('groupId'),0x0==_0x57bfae['size']&&0x0==_0x2fae64['size'])return!0x0;if(_0x57bfae['size']!=_0x2fae64['size'])return!0x1;const _0x226139={..._0x579ad0['attributes']},_0x20130d={..._0x174e42['attributes']};return delete _0x226139['groupId'],delete _0x20130d['groupId'],JSON['stringify'](_0x226139)==JSON['stringify'](_0x20130d);}function Ln(_0xc7facb,_0x27b860){const _0x49422f=In(_0xc7facb['attributes']),_0x2dc21a=In(_0x27b860);if(!_0xc7facb['_isDataLoaded'])return!0x1;if(!ct(_0x49422f['@ai'],_0x2dc21a['@ai']))return!0x1;for(const _0x1962af of Object['keys'](_0x2dc21a))if(!ct(_0x49422f[_0x1962af],_0x2dc21a[_0x1962af]))return!0x1;return!0x0;}function In(_0x2b616e){const _0x2c1360=Object['assign']({},_0x2b616e);return delete _0x2c1360['skipNestingCheck'],delete _0x2c1360['tablePasteChainId'],_0x2c1360;}function An(_0x58a774){return _0x58a774['split']('|')[0x0];}const bn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4feb49();var kn=class extends bn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x67b3c0,_0x28fe7e,_0xbb6b18,_0x37501e){super(),this['model']=_0x28fe7e,this['view']=_0xbb6b18,this['commentThreadController']=_0x37501e,this['_editor']=_0x67b3c0,this['_acceptCommand']=_0x67b3c0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x67b3c0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3fe7bd,_0x5671ec)=>_0x3fe7bd||_0x5671ec),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x22e098=>_0x22e098&&this['_editor']['model']['canEditAt'](_0x28fe7e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xc4a558=>_0xc4a558&&this['_editor']['model']['canEditAt'](_0x28fe7e['getRanges']())),this['_pendingAction']=null,_0xbb6b18['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xbb6b18,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xbb6b18,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xbb6b18,'change:isDirty',()=>{_0xbb6b18['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 _0x43c672=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x43c672);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x5ea2b7{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4c91e4,_0x59fc4d,_0x219916,_0x57ca63){super(_0x4c91e4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x23a918(_0x4c91e4,Mt(_0x4c91e4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x59fc4d['authoredAt']),this['bind']('authoredAt')['to'](_0x59fc4d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x59fc4d,'authoredAt',this,'descriptionParts',(_0x35867a,_0x4524bb,_0x3907bc)=>{const _0x3db1cc=_0x3907bc['map'](_0x3eaa00=>Lt(_0x3eaa00['content']))['join']('.\x20')+'.',_0x7b71ad=_0x59fc4d['aiSource']&&'author'===_0x57ca63['showAISource']?_0x57ca63['aiAuthor']['name']:_0x59fc4d['author']['name'],_0x73bf66=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x35867a-0x1,_0x7b71ad,_0x4524bb?_0x57ca63['formatDateTime'](_0x4524bb):'',new DOMParser()['parseFromString'](_0x3db1cc,'text/html')['body']['textContent']]);return _0x59fc4d['aiSource']&&'pill'===_0x57ca63['showAISource']?_0x73bf66+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x73bf66;}),this['focusables']=new _0x11ae63(),this['focusTracker']=new _0x4f76a4(),this['keystrokes']=new _0x1e3e15(),this['focusCycler']=new _0xa68785({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1b79eb=>_0x1b79eb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x59fc4d,this['_localUser']=_0x219916,this['_config']=_0x57ca63,_0x57ca63['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x54787b(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x4d65dd}=this['_config'];this['commentsListView']=new _0x4d65dd(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',_0xd1e8d0=>_0xd1e8d0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3a69e0,_0x1e1e32)=>_0x3a69e0||!!_0x1e1e32);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x2566aa}=this['_config'],_0x1b14c3=new _0x2566aa(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3dae1c=_0x1b14c3['commentInputView'];return _0x1b14c3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3dae1c,'value',(_0x2336e2,_0x237118,_0x1487c0)=>!!_0x1487c0||_0x2336e2&&!_0x237118),_0x3dae1c['on']('submit',(_0x1acdbe,_0x5f5c66)=>{this['fire']('addComment',_0x5f5c66),_0x3dae1c['editor']['setData']('');}),_0x3dae1c['on']('cancel',()=>this['focus']()),_0x3dae1c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1b14c3;}},Rn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x3d05f4,_0x160504,_0x47a4e6,_0x374286){super(_0x3d05f4,_0x160504,_0x47a4e6,_0x374286),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x35cf3e=>_0x35cf3e&&_0x35cf3e[0x0]?_0x35cf3e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x20ec1b,_0x432184)=>{let _0x311ee1='';for(const _0x17818 of _0x20ec1b)_0x311ee1+='<p>'+Lt(_0x17818['content'],_0x17818['color'])+'</p>';return _0x432184?_0x311ee1:nt(_0x311ee1,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x374286['SuggestionView'](_0x3d05f4,_0x160504,{'formatDateTime':_0x374286['formatDateTime'],'showAISource':_0x374286['showAISource'],'aiAuthor':_0x374286['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x316699=this['bindTemplate'],_0x501245=[this['suggestionView']];return this['commentsListView']&&_0x501245['push'](this['commentsListView']),this['commentThreadInputView']&&_0x501245['push'](this['commentThreadInputView']),_0x501245['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x316699['if']('isActive','ck-suggestion-wrapper--active'),_0x316699['to']('type',_0x4d190c=>'ck-suggestion-'+_0x4d190c),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x316699['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x501245};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},yn=class extends _0x5ea2b7{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x444ed2,_0x5609c,_0x41f0ff){super(_0x444ed2),this['_model']=_0x5609c,this['_config']=_0x41f0ff,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5609c),this['acceptButton']=this['_createButton'](Mt(_0x444ed2,'Accept\x20suggestion'),_0x4ce860,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x444ed2,'Discard\x20suggestion'),_0x521e4a,'ck-suggestion--discard','discardSuggestion','sw');const _0x50c92f=!!_0x5609c['aiSource']&&'author'===_0x41f0ff['showAISource'],_0x1b97bc=_0x50c92f?this['_createAIUser'](_0x41f0ff['aiAuthor']):_0x5609c['author'],_0x201e68=_0x50c92f&&!_0x41f0ff['aiAuthor']['avatar']?_0x4c21fd:void 0x0;this['userView']=new _0x2c2fdf(_0x444ed2,_0x1b97bc,this['getUserViewNotificationText'](),_0x201e68),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x11ae63([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4f76a4(),this['keystrokes']=new _0x1e3e15(),this['focusCycler']=new _0xa68785({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x214773=>_0x214773['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x16c2db=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x16c2db['innerHTML']=this['description'],this['on']('change:description',(_0x25c550,_0x2d71f4,_0x3a519b)=>{_0x16c2db['innerHTML']=_0x3a519b;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x4d70cf=this['bindTemplate'],_0x435dd4=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x4d70cf['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4d70cf['to']('authoredAt',_0x58fcad=>this['_config']['formatDateTime'](_0x58fcad))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x435dd4['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x3cd066=new _0x689115(this['locale']);_0x3cd066['set']({'icon':_0x5644d8,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x435dd4['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x3cd066]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x435dd4}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x49509b){return new _0x528f97({'id':'ck-ai-author','name':_0x49509b['name'],'avatar':_0x49509b['avatar'],'color':new _0x7d7735(0x0)});}_createButton(_0x55e861,_0x3e0ed3,_0x4d676a,_0x119d48,_0x3e9470){const _0x3a6ebb=new _0x10a863(this['locale']);return _0x3a6ebb['set']({'label':_0x55e861,'icon':_0x3e0ed3,'tooltip':!0x0,'tooltipPosition':_0x3e9470}),_0x3a6ebb['extendTemplate']({'attributes':{'class':_0x4d676a}}),_0x3a6ebb['on']('execute',()=>{this['fire'](_0x119d48,this['_model']['id']);}),_0x3a6ebb;}_setupKeyboardNavigation(){const _0x1639f3=this['element'];this['keystrokes']['listenTo'](_0x1639f3);for(const _0x24e867 of this['focusables'])this['focusTracker']['add'](_0x24e867['element']),this['keystrokes']['listenTo'](_0x24e867['element']);this['keystrokes']['set']('enter',(_0x58b31f,_0x2ff812)=>{_0x1639f3===_0x58b31f['target']&&(this['focusCycler']['focusFirst'](),_0x2ff812());}),this['keystrokes']['set']('esc',(_0x58246a,_0x5be773)=>{_0x1639f3!==_0x58246a['target']&&(this['focus'](),_0x5be773());});}},Nn=class extends _0x5667d7{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[an,_0x3352bc,_0x9e2d60,_0x57d1f6,_0x351485];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x192dfe){super(_0x192dfe),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4f414e=this['editor']['config'];_0x4f414e['define']('trackChanges.SuggestionThreadView',Rn),_0x4f414e['define']('trackChanges.SuggestionView',yn),_0x4f414e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4f414e['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x35f059,_0x2b111b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3bef82,_0xa11e8e]of this['_handleControllerBuffer']){const _0x361a72=this['_suggestionToController']['has'](_0x3bef82);_0x361a72||_0xa11e8e?_0x361a72&&_0xa11e8e&&this['_destroyController'](_0x3bef82):this['_initializeController'](_0x3bef82);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x351485)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x35f059,_0x2b111b);}init(){const _0x8cf349=this['editor'],_0x36b060=_0x8cf349['plugins']['get'](an),_0x200436=_0x8cf349['plugins']['get'](_0x57d1f6),_0x4762e5=_0x8cf349['plugins']['get'](_0x351485),_0x5dd2f1=_0x8cf349['plugins']['get'](_0x9e2d60);this['_addUIComponentsToFactory'](),_0x4762e5['addSourceCollector'](()=>{const _0x5ea7a9=[];for(const [_0x22a3d0,_0x486cbf]of Array['from'](this['_suggestionToController'])){const _0x1572cc=_0x22a3d0['getAllAdjacentSuggestions'](),_0xb5b8bd=[];for(const _0x4bae9d of _0x1572cc){if(!_0x4bae9d['isInContent'])continue;if(_0x4bae9d['isMultiRange']){_0xb5b8bd['push'](..._0x4bae9d['getRanges']());continue;}const _0x2999c8=_0x4bae9d['getFirstRange']();if(_0xb5b8bd['length']>0x0){const _0x52136e=_0xb5b8bd[0x0]['getJoined'](_0x2999c8);if(_0x52136e){_0xb5b8bd[0x0]=_0x52136e;continue;}}_0xb5b8bd['push'](_0x2999c8);}_0x5ea7a9['push']([_0x486cbf['view'],_0xb5b8bd]);}return _0x5ea7a9;}),this['listenTo'](_0x36b060,'suggestionLoaded',(_0x473306,_0x21296b)=>{this['listenTo'](_0x21296b,'change:previous',(_0x445da2,_0x2ba6c4,_0x3f5fe2,_0x18a539)=>{_0x21296b['isInContent']&&(null==_0x3f5fe2?(this['_updateController'](_0x18a539['head']),this['_handleSuggestionControllerDelayed'](_0x21296b,!0x1)):(this['_updateController'](_0x3f5fe2['head']),null==_0x18a539&&this['_handleSuggestionControllerDelayed'](_0x21296b,!0x0)));}),null!==_0x21296b['previous']?this['_updateController'](_0x21296b['head']):this['_handleSuggestionControllerDelayed'](_0x21296b,!0x1);}),this['listenTo'](_0x36b060,'suggestionUnloaded',(_0x185d62,_0x2dac71,_0xf59155)=>{this['stopListening'](_0x2dac71,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2dac71),this['_suggestionToController']['has'](_0x2dac71)&&this['_destroyController'](_0x2dac71),_0xf59155&&this['_updateController'](_0xf59155['head']);}),this['listenTo'](_0x36b060,'suggestionChanged',(_0x271774,_0x53adcb)=>{this['_updateController'](_0x53adcb);}),this['listenTo'](_0x200436,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5dd2f1,'addComment',(_0x39cfbb,{threadId:_0x1f2e6e,isFromAdapter:_0x4020f9})=>{if(_0x4020f9||!_0x36b060['hasSuggestion'](_0x1f2e6e))return;const _0x5abcba=_0x36b060['getSuggestion'](_0x1f2e6e);this['_suggestionToController']['get'](_0x5abcba)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x3e4e7f=[this['editor']];for(const _0x2b3041 of _0x3e4e7f){let _0x4c29fa;for(const _0xd16bed in _0x2b3041){const _0xfc8d36=_0xd16bed,_0x4def44=_0x2b3041[_0xfc8d36];if('trackChangesLicenseKeyValid'==_0x4def44||'trackChangesLicenseKeyInvalid'==_0x4def44||'trackChangesLicenseKeyExpired'==_0x4def44||'trackChangesLicenseKeyDomainLimit'==_0x4def44||'trackChangesLicenseKeyNotAllowed'==_0x4def44||'trackChangesLicenseKeyEvaluationLimit'==_0x4def44||'trackChangesLicenseKeyUsageLimit'==_0x4def44){delete _0x2b3041[_0xfc8d36],_0x4c29fa=_0x4def44,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4c29fa&&_0x2b3041['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4c29fa&&_0x2b3041['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4c29fa&&_0x2b3041['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4c29fa&&_0x2b3041['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4c29fa&&_0x2b3041['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4c29fa&&_0x2b3041['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x5836ef){const _0x28bbfc=this['_suggestionToController']['get'](_0x5836ef);return _0x28bbfc&&this['editor']['plugins']['get'](_0x57d1f6)['getByInnerView'](_0x28bbfc['view'])||null;}getSuggestionForAnnotation(_0x515d48){const _0x7aa62b=this['_viewToController']['get'](_0x515d48['innerView']);return _0x7aa62b?_0x7aa62b['model']:null;}_refreshActiveMarkers(){const _0x23307c=this['editor']['plugins']['get'](_0x57d1f6),_0x8bacba=this['editor']['plugins']['get'](an),_0x3021ab=Array['from'](_0x23307c['activeAnnotations'],_0x5abf53=>_0x5abf53['innerView'])['filter'](_0x5a118d=>this['_viewToController']['has'](_0x5a118d)),_0x598002=[];for(const _0x58ce0e of _0x3021ab){const _0x20e091=this['_viewToController']['get'](_0x58ce0e)['model']['getAllAdjacentSuggestions']();_0x598002['push'](..._0x20e091['reduce']((_0x471459,_0x31d580)=>[..._0x471459,..._0x31d580['getMarkerNames']()],[]));}_0x8bacba['activeMarkers']=_0x598002;}_addUIComponentsToFactory(){const _0x28d7cd=this['editor'],_0x2246ad=_0x28d7cd['locale'],_0x383e8d=Mt(_0x2246ad,'Track\x20changes'),_0x2aeb30=new _0x336cd6([{'type':'switchbutton','model':new _0x572545({'withText':!0x0,'isToggleable':!0x0,'label':_0x383e8d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x572545({'withText':!0x0,'label':Mt(_0x2246ad,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x572545({'withText':!0x0,'label':Mt(_0x2246ad,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x572545({'withText':!0x0,'label':Mt(_0x2246ad,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x572545({'withText':!0x0,'label':Mt(_0x2246ad,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x28d7cd['plugins']['has']('TrackChangesPreview')&&_0x2aeb30['addMany']([{'type':'separator'},{'type':'button','model':new _0x572545({'withText':!0x0,'label':Mt(_0x2246ad,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4a15a4 of _0x2aeb30)if(Sn(_0x4a15a4)){const _0x13cee2=_0x28d7cd['commands']['get'](_0x4a15a4['model']['commandName']);_0x4a15a4['model']['bind']('isOn','isEnabled')['to'](_0x13cee2,'value','isEnabled');}_0x28d7cd['ui']['componentFactory']['add']('trackChanges',_0x5d722c=>this['_createToolbarButton'](_0x5d722c,_0x2aeb30,_0x383e8d)),_0x28d7cd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x24618b=>this['_createMenuBarMenu'](_0x24618b,_0x2aeb30,_0x383e8d));}_createToolbarButton(_0x1baf24,_0x396db0,_0x1bf0b9){const _0x598ada=_0x5247f8(_0x1baf24,_0x16e4bf),_0x442d38=this['editor']['commands']['get']('trackChanges');_0x598ada['buttonView']['set']({'tooltip':_0x1bf0b9,'label':_0x1bf0b9,'icon':_0x5ed90b}),_0x598ada['buttonView']['bind']('isOn')['to'](_0x442d38,'value'),_0x598ada['buttonView']['on']('execute',()=>{_0x442d38['execute'](),this['editor']['editing']['view']['focus']();}),_0x58af07(_0x598ada,_0x396db0,{'role':'menu'});const _0x580145=[];for(const _0x326d29 of _0x396db0)Sn(_0x326d29)&&_0x580145['push'](this['editor']['commands']['get'](_0x326d29['model']['commandName']));const _0x3c169c=_0x598ada['buttonView'];return _0x3c169c['actionView']['unbind']('isEnabled'),_0x3c169c['arrowView']['unbind']('isEnabled'),_0x3c169c['actionView']['bind']('isEnabled')['to'](_0x442d38,'isEnabled'),_0x3c169c['arrowView']['bind']('isEnabled')['toMany'](_0x580145,'isEnabled',(..._0x55745d)=>_0x55745d['some'](_0x23d20f=>_0x23d20f)),_0x598ada['on']('execute',_0x2311d5=>{this['editor']['execute'](_0x2311d5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x598ada;}_createMenuBarMenu(_0x44ae3e,_0x2105b6,_0x4756ab){const _0x56e9b2=new _0x5eefc4(_0x44ae3e),_0x10dbe0=this['editor']['commands']['get']('trackChanges');_0x56e9b2['buttonView']['set']({'label':_0x4756ab,'icon':_0x5ed90b});const _0x1ef864=new _0x98055(_0x44ae3e);for(const _0x12ba0e of _0x2105b6){if('separator'==_0x12ba0e['type']){_0x1ef864['items']['add'](new _0x1e5097(_0x44ae3e));continue;}const _0x4ec446=new _0x5063e1(_0x44ae3e,_0x56e9b2),_0x418284=new _0x539a2f(_0x44ae3e),_0x127ba0=_0x12ba0e['model'];_0x418284['bind'](...Object['keys'](_0x127ba0))['to'](_0x127ba0),_0x418284['delegate']('execute')['to'](_0x56e9b2),_0x418284['on']('execute',()=>{this['editor']['execute'](_0x127ba0['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ec446['children']['add'](_0x418284),_0x1ef864['items']['add'](_0x4ec446);}return _0x56e9b2['bind']('isEnabled')['to'](_0x10dbe0,'isEnabled'),_0x56e9b2['panelView']['children']['add'](_0x1ef864),_0x56e9b2;}_initializeController(_0x359d49){const _0x3e6894=this['editor'],_0x189cc5=_0x3e6894['config'],_0xff4fd3=_0x3e6894['plugins']['get'](_0x57d1f6),_0x4a3c56=_0x3e6894['plugins']['get'](_0x9e2d60),_0x5efca9=_0x3e6894['plugins']['get'](_0x351485),_0x816dc3=_0x3e6894['plugins']['get'](_0x3352bc)['me'],_0x2d8f56=_0x189cc5['get']('trackChanges')['SuggestionThreadView'],_0x5602ab=_0x189cc5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1f70f9,CommentThreadInputView:_0x1b9f43}=_0x3e6894['plugins']['get']('CommentsUI');let _0x45d0c1,_0x2d58b1,_0x2f9a19;this['_annotationViews']['has'](_0x359d49['id'])?(_0x2d58b1=this['_annotationViews']['get'](_0x359d49['id']),_0x45d0c1=_0x2d58b1['mainView']):(_0x45d0c1=new _0x2d8f56(_0x3e6894['locale'],_0x359d49,_0x816dc3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x189cc5['get']('comments.editorConfig'),'licenseKey':_0x189cc5['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x189cc5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x189cc5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x189cc5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x498d9e(_0x189cc5['get']('locale'),_0x3e6894['locale']),'CommentView':_0x189cc5['get']('comments')['CommentView'],'CommentsListView':_0x1f70f9,'CommentThreadInputView':_0x1b9f43,'SuggestionView':_0x5602ab,'showAISource':_0x189cc5['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x189cc5['get']('trackChanges.aiAuthor'),'name':_0x189cc5['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x3e6894['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x45d0c1['suggestionView']['acceptButton']['on']('execute',()=>{_0x3e6894['editing']['view']['focus']();}),_0x45d0c1['suggestionView']['discardButton']['on']('execute',()=>{_0x3e6894['editing']['view']['focus']();}),_0x2d58b1=_0xff4fd3['createAnnotationView'](this['editor']['locale'],_0x45d0c1),_0x2d58b1['bind']('isDirty')['to'](_0x45d0c1,'isDirty'),_0x2d58b1['bind']('length')['to'](_0x45d0c1),_0x2d58b1['bind']('type')['to'](_0x45d0c1,'type',_0xef2e04=>'suggestion-'+_0xef2e04),_0x45d0c1['on']('escape',()=>{_0x2f9a19['fire']('escape');}),this['_annotationViews']['set'](_0x359d49['id'],_0x2d58b1));const _0x4d2794=_0x4a3c56['createCommentThreadController'](_0x359d49['commentThread'],_0x45d0c1),_0x47cff6=new kn(_0x3e6894,_0x359d49,_0x45d0c1,_0x4d2794),_0x1b7757=_0x359d49['getAllAdjacentSuggestions']()['filter'](_0x1a9de3=>_0x1a9de3['isInContent']);_0x45d0c1['descriptionParts']=_0x3e6894['plugins']['get'](an)['descriptionFactory']['getDescriptions'](_0x1b7757),this['_suggestionToController']['set'](_0x359d49,_0x47cff6),this['_viewToController']['set'](_0x45d0c1,_0x47cff6);const _0x4f09e1=()=>{const _0x1a2be9=[],_0x3ff9eb=_0x359d49['getAllAdjacentSuggestions']()['filter'](_0xebce07=>_0xebce07['isInContent']);for(const _0x38afa2 of _0x3ff9eb)_0x1a2be9['push'](..._0x38afa2['getMarkers']());return _0x46cecf(_0x3e6894['editing'],_0x1a2be9);};_0x2f9a19=_0xff4fd3['createAnnotation']({'view':_0x2d58b1,'target':_0x4f09e1,'type':()=>'suggestion-'+_0x47cff6['view']['type'],'isVisible':!!_0x4f09e1()}),_0x4a3c56['_bindAnnotationToEditors'](_0x45d0c1,_0x2f9a19),_0xff4fd3['add'](_0x2f9a19),_0x5efca9['registerAnnotation'](_0x2f9a19);}_destroyController(_0x4df3d1){const _0x16a8eb=this['editor']['plugins']['get'](_0x9e2d60),_0x132416=this['editor']['plugins']['get'](_0x57d1f6),_0x33ed5a=this['_suggestionToController']['get'](_0x4df3d1),_0x4d1a51=_0x33ed5a['view'],_0x28682a=_0x132416['getByInnerView'](_0x4d1a51);_0x16a8eb['_unbindEditors'](_0x4d1a51),_0x28682a&&_0x132416['remove'](_0x28682a),this['_suggestionToController']['delete'](_0x4df3d1),this['_viewToController']['delete'](_0x4d1a51),_0x33ed5a['destroy']();}_updateController(_0x57e9d7){if(!_0x57e9d7['isInContent']||!this['_suggestionToController']['has'](_0x57e9d7))return;const _0x48d4e8=this['editor']['plugins']['get'](an),_0x2982ae=this['_suggestionToController']['get'](_0x57e9d7),_0x10e06c=_0x57e9d7['getAllAdjacentSuggestions']();_0x2982ae['view']['descriptionParts']=_0x48d4e8['descriptionFactory']['getDescriptions'](_0x10e06c);}destroy(){for(const _0x4a95b4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4a95b4);for(const _0x414e11 of this['_annotationViews']['values']())_0x414e11['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Sn(_0x3caaa8){return'model'in _0x3caaa8;}var Mn=class extends _0x5667d7{static get requires(){return[an,Nn,_0x177556];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3707df){this['editor']['plugins']['get'](an)['adapter']=_0x3707df;}get adapter(){return this['editor']['plugins']['get'](an)['adapter'];}addSuggestion(_0x2c930f){return this['editor']['plugins']['get'](an)['addSuggestionData'](_0x2c930f);}getSuggestions({skipNotAttached:_0x3ab5c7=!0x1,toJSON:_0x5f47ad=!0x1}={}){return this['editor']['plugins']['get'](an)['getSuggestions']({'skipNotAttached':_0x3ab5c7,'toJSON':_0x5f47ad});}getSuggestion(_0xb5e03e){return this['editor']['plugins']['get'](an)['getSuggestion'](_0xb5e03e);}};const On=['Pagination'];var wn=class extends _0x5667d7{static get requires(){return[an];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x7d5d74=this['editor'];if(_0x7d5d74['config']['define']('trackChangesData.editorCreator',_0x59e148=>{const _0x22770f=_0x7d5d74['model']['document']['getRootNames']()['reduce']((_0x3df8a5,_0x3c5f82)=>(_0x3df8a5[_0x3c5f82]='',_0x3df8a5),{});return _0x7d5d74['constructor']['create'](_0x22770f,_0x59e148);}),'function'!=typeof _0x7d5d74['config']['get']('trackChangesData')['editorCreator'])throw new _0x29102a('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0xf92c00){return vn(this['editor'],!0x0,_0xf92c00);}getDataWithDiscardedSuggestions(_0x39a70e){return vn(this['editor'],!0x1,_0x39a70e);}},Fn=class extends _0x5667d7{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f29ee){super(_0x1f29ee),this['result']='end',_0x1f29ee['editing']['view']['_overlayModeHint']='auto',_0x1f29ee['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Bn(_0x8d5ef0){return void 0x0!==_0x8d5ef0['getRootsAttributes'];}async function vn(_0x369e71,_0x437b88,_0x44a33b){const _0x380ebb=_0x550faa(_0x369e71,On);if(_0x380ebb['plugins']['push'](an,Fn),Bn(_0x369e71)){_0x380ebb['roots']=Object['create'](null);for(const _0x57062d of _0x369e71['model']['document']['getRootNames']())_0x380ebb['roots'][_0x57062d]={'modelAttributes':_0x369e71['getRootAttributes'](_0x57062d)};}const _0x19e9fa=document['createDocumentFragment'](),_0x4caf4e=_0x369e71['config']['get']('trackChangesData')['editorCreator'],_0x384021=await _0x4caf4e(_0x380ebb,()=>function(_0x27a601){const _0x892d80=document['createElement']('div');return _0x27a601['appendChild'](_0x892d80),_0x892d80;}(_0x19e9fa));!function(_0x4ae17f,_0x2458c5){const _0x169503=_0x4ae17f['model']['document']['getRootNames']()['reduce']((_0x1c1e5a,_0x199025)=>(_0x1c1e5a[_0x199025]=_0x4ae17f['data']['get']({'rootName':_0x199025}),_0x1c1e5a),{}),_0x2e5cf3=_0x4ae17f['plugins']['get']('Users')['users']['map'](_0x161069=>({'id':_0x161069['id'],'name':_0x161069['name']})),_0xf3bc2a=_0x4ae17f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e1cbb=_0x4ae17f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x571da4=_0x2458c5['plugins']['get']('Users'),_0x6c18d6=_0x2458c5['plugins']['get']('TrackChangesEditing'),_0x264ec8=_0x2458c5['plugins']['get']('CommentsRepository');for(const _0x2786f5 of _0x264ec8['getCommentThreads']())_0x2786f5['remove']();for(const _0x236cd7 of _0x2e5cf3)_0x571da4['getUser'](_0x236cd7['id'])||_0x571da4['addUser'](_0x236cd7);_0x571da4['me']||_0x571da4['useAnonymousUser']();for(const _0x4d7a29 of _0x2e1cbb)_0x264ec8['addCommentThread'](_0x4d7a29);for(const _0x1c92ca of _0xf3bc2a)_0x6c18d6['addSuggestionData'](_0x1c92ca);_0x2458c5['data']['set'](_0x169503);}(_0x369e71,_0x384021),_0x384021['execute'](_0x437b88?'acceptAllSuggestions':'discardAllSuggestions');const _0xd7a14=Bn(_0x384021)?_0x384021['getFullData'](_0x44a33b):_0x384021['data']['get'](_0x44a33b);return await _0x384021['destroy'](),_0xd7a14;}var Dn=class extends _0x5ea2b7{options;constructor(_0x40051b,_0x366cf0){super(_0x40051b),this['options']=_0x366cf0,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x5601a1,_0x3da4be){if(!this['element'])return;const _0x29c29e=[];for(const [_0x4fc562,_0x406ff9]of _0x5601a1){const _0x4a459c=document['createElement']('div');_0x4a459c['setAttribute']('data-ck-root-name',_0x4fc562),_0x4a459c['className']=_0x406ff9['classes']+'\x20ck-track-changes-preview__root-container',_0x4a459c['innerHTML']=_0x406ff9['content'],_0x29c29e['push'](_0x4a459c);}_0x3da4be(this['element'],_0x29c29e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Un=class extends _0x30cbf9{constructor(_0x4cb681){super(_0x4cb681),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x3b5003=this['editor'],_0x3a8daa=_0x3b5003['locale'],_0x46ebce=_0x3b5003['plugins']['get']('Dialog');let _0x1ea56a;const _0x2465c4=function(_0x4703cf){const _0x273155={};if('editables'in _0x4703cf['ui']['view']){for(const [_0x475583,_0x4cc284]of Object['entries'](_0x4703cf['ui']['view']['editables']))_0x273155[_0x475583]=_0x4cc284['element'];}else _0x273155[_0x4703cf['model']['document']['getRootNames']()[0x0]]=_0x4703cf['ui']['view']['editable']['element'];return _0x273155;}(_0x3b5003),_0x472d19=function(_0x442ec9){let _0x3d2b7c=0x0;for(const _0x2875a0 of Object['values'](_0x442ec9))_0x3d2b7c=Math['max'](_0x3d2b7c,_0x2875a0['getBoundingClientRect']()['width']);let _0x270c42=0x0;for(const _0x23294d of Object['values'](_0x442ec9))_0x270c42+=_0x23294d['getBoundingClientRect']()['height'];const _0x8ae6d7=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x3d2b7c,'height':Math['min'](_0x270c42,_0x8ae6d7)};}(_0x2465c4);_0x46ebce['show']({'id':'finalContentPreview','title':Mt(_0x3a8daa,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Dn(_0x3a8daa,{'dialogRects':_0x472d19}),'onHide':()=>{_0x1ea56a['detachFromDom']();},'onShow':()=>{_0x3b5003['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x123930=>{const _0x28f333=this['_standarizeRootsData'](_0x123930,_0x3b5003,_0x2465c4);_0x46ebce['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x28f333,_0x3b5003['config']['get']('trackChanges.preview.renderFunction'));}),_0x1ea56a=new _0x290cb4(_0x3a8daa,[_0x46ebce['view']]),_0x1ea56a['attachToDom'](),_0x1ea56a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3b5003['once']('destroy',()=>{_0x1ea56a['detachFromDom']();});const _0x53157a=_0x46ebce['view']['headerView']['class'];_0x46ebce['view']['headerView']['class']=_0x53157a?_0x53157a+'\x20ck-reset_all':'ck-reset_all',_0x46ebce['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x46ebce['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x13516e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5e5737=_0x13516e['previewMode'],_0xa1563b={};if('$labels'===_0x5e5737){for(const _0x148c70 of _0x13516e['getMergeFieldsIds']())_0xa1563b[_0x148c70]=_0x13516e['getLabel'](_0x148c70)||_0x148c70;}else{const _0x14d328='$defaultValues'===_0x5e5737?_0x13516e['getDefaultValues']():_0x13516e['getDataSetValues'](_0x5e5737,!0x0);for(const _0x9f12a5 of Object['entries'](_0x14d328)){const [_0x491877,_0x5daeb7]=_0x9f12a5;_0xa1563b[_0x491877]=null!==_0x5daeb7?_0x5daeb7:_0x13516e['getLabel'](_0x491877)||_0x491877;}}return{'mergeFieldsData':_0xa1563b};}_standarizeRootsData(_0x1b55fd,_0x2d461b,_0x1bf7b8){let _0x2498f8;_0x2498f8='string'==typeof _0x1b55fd?{[_0x2d461b['model']['document']['getRootNames']()[0x0]]:_0x1b55fd}:_0x1b55fd;const _0x5031bb=this['_fixMediaEmbeds'](_0x2498f8,_0x2d461b);return function(_0x1f5c17,_0x3f3670){for(const [_0x30353a,_0x5bd34f]of _0x1f5c17)_0x5bd34f['classes']=_0x3f3670[_0x30353a]['classList']['value']['replace']('ck-focused','');return _0x1f5c17;}(this['_sortRoots'](_0x2d461b)['reduce']((_0x52fa49,_0x50fb07)=>(_0x52fa49['push']([_0x50fb07,{'content':_0x5031bb[_0x50fb07],'classes':''}]),_0x52fa49),[]),_0x1bf7b8);}['_fixMediaEmbeds'](_0x46688b,_0xd77b6){if(!_0xd77b6['plugins']['has']('MediaEmbedEditing'))return _0x46688b;const _0x55db21=_0xd77b6['plugins']['get']('MediaEmbedEditing');for(const [_0x3229bb,_0x4f11f2]of Object['entries'](_0x46688b)){const _0x57e543=document['createElement']('div');_0x57e543['innerHTML']=_0x4f11f2,_0x57e543['querySelectorAll']('figure.media')['forEach'](_0x9b8e17=>{const _0x8f22af=_0x9b8e17['querySelector']('oembed');if(_0x8f22af){const _0x1ca728=_0x8f22af['getAttribute']('url');if(_0x1ca728){const _0x2284c2=_0x55db21['registry']['getMediaViewElement'](new ot(_0xd77b6['editing']['view']['document']),_0x1ca728,{'elementName':'','renderForEditingView':!0x0}),_0xa6f3ed=document['createElement']('div');_0xa6f3ed['classList']['add']('ck-media__wrapper'),_0x2284c2['render'](_0xa6f3ed,_0xd77b6['editing']['view']['domConverter']),_0x8f22af['replaceWith'](_0xa6f3ed);}}}),_0x46688b[_0x3229bb]=_0x57e543['innerHTML'];}return _0x46688b;}_sortRoots(_0x2b7e15){if(!function(_0x1af646){return void 0x0!==_0x1af646['getRootsAttributes'];}(_0x2b7e15))return _0x2b7e15['model']['document']['getRootNames']();const _0xb59c2a=[],_0x5b3176=new Map();for(const _0x12bc73 of _0x2b7e15['model']['document']['getRootNames']()){const _0x573fa4=_0x2b7e15['editing']['view']['getDomRoot'](_0x12bc73)['getClientRects']()['item'](0x0);_0xb59c2a['push'](_0x12bc73),_0x5b3176['set'](_0x12bc73,_0x573fa4);}return _0xb59c2a['sort']((_0x17a3ed,_0x1b2361)=>{const _0x25502f=_0x5b3176['get'](_0x17a3ed),_0x28ac83=_0x5b3176['get'](_0x1b2361);return _0x25502f['y']-_0x28ac83['y']||_0x25502f['x']-_0x28ac83['x'];}),_0xb59c2a;}},Pn=class extends _0x5667d7{static get requires(){return[wn,_0x232cb0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a4f73){super(_0x2a4f73),_0x2a4f73['commands']['add']('previewFinalContent',new Un(this['editor'])),_0x2a4f73['config']['define']('trackChanges.preview.renderFunction',(_0x36ac94,_0x5173)=>{for(const _0x1176fe of _0x5173)_0x36ac94['appendChild'](_0x1176fe);});}};export{_t as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Un as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Rn as SuggestionThreadView,yn as SuggestionView,Mn as TrackChanges,Tt as TrackChangesCommand,wn as TrackChangesData,Fn as TrackChangesDataGetter,an as TrackChangesEditing,Pn as TrackChangesPreview,Nn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x1111ef,PendingActions as _0x3b38a1,Plugin as _0x42a28f}from'@ckeditor/ckeditor5-core';import{Annotations as _0x320e85,Comments as _0x21a992,CommentsRepository as _0x51a4b7,EditorAnnotations as _0x42e5e7}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x5f6c00,Collection as _0xcf0f12,FocusTracker as _0xc35427,KeystrokeHandler as _0x4aa419,ObservableMixin as _0x3d7812,getEnvKeystrokeText as _0x166bf7,insertToPriorityArray as _0x55b07f,logWarning as _0x26182a,priorities as _0x5ee963,uid as _0x5b5c0d}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x136f6e,IconCancel as _0x488d59,IconCheck as _0xcaba04,IconSparkle as _0x55a3ec,IconTrackChanges as _0x37c353}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x25c7c9,Dialog as _0x4820ab,FocusCycler as _0x3ae1a7,ListSeparatorView as _0x3d3b0b,MenuBarMenuListItemButtonView as _0x1b87e4,MenuBarMenuListItemView as _0x1d4268,MenuBarMenuListView as _0x3867d5,MenuBarMenuView as _0x490808,SplitButtonView as _0x1fbe25,UIModel as _0xc62c18,View as _0x38a93a,ViewCollection as _0x404e76,addListToDropdown as _0x4c17c9,createDropdown as _0x4a118d,normalizeColorOptions as _0x2e67d6}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x11216e,CollaborationUserColor as _0x20d727,FOCUS_ANNOTATION_KEYSTROKE as _0x2e1548,LateFocusButtonView as _0x273023,PillView as _0xda9ac1,SuggestionsConversion as _0x407cac,User as _0x359f87,UserView as _0x57848d,Users as _0x3f25ff,fixElementSuggestionRange as _0x533f9b,getAllMarkersDomElementsSorted as _0x2dde48,getDateTimeFormatter as _0x4ba4af,hashObject as _0x5a9283,isInvalidAttributeOperation as _0x425365,sanitizeEditorConfig as _0x1d3fee,setupThreadKeyboardNavigation as _0x26f898,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ht,ClipboardPipeline as gt}from'@ckeditor/ckeditor5-clipboard';import{Delete as ft,Input as mt}from'@ckeditor/ckeditor5-typing';import{Enter as Et}from'@ckeditor/ckeditor5-enter';var Tt=class extends _0x1111ef{['_enabledCommands'];constructor(_0x3cf3cc,_0x12af38){super(_0x3cf3cc),this['_enabledCommands']=_0x12af38,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 _0x79208c of this['editor']['commands']['commands']())_0x79208c['affectsData']&&!this['_enabledCommands']['has'](_0x79208c)&&_0x79208c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x34c5ae of this['editor']['commands']['commands']())_0x34c5ae['affectsData']&&!this['_enabledCommands']['has'](_0x34c5ae)&&_0x34c5ae['clearForceDisabled']('TrackChangesCommand');}},_t=class extends _0x1111ef{_suggestions;constructor(_0x20b4d3,_0x361f91){super(_0x20b4d3),this['_suggestions']=_0x361f91,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x551113){const _0x1377f6=this['_suggestions']['get'](_0x551113);if(!_0x1377f6)throw new _0x5f6c00('track-changes-accept-suggestion-not-found',this);const _0x3b74f4=_0x1377f6['getRanges']();this['editor']['model']['canEditAt'](_0x3b74f4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1377f6);}},pt=class extends _0x1111ef{_suggestions;constructor(_0x21d948,_0x2ddee9){super(_0x21d948),this['_suggestions']=_0x2ddee9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x43a8f1){const _0x17019e=this['_suggestions']['get'](_0x43a8f1);if(!_0x17019e)throw new _0x5f6c00('track-changes-discard-suggestion-not-found',this);const _0xb8a229=_0x17019e['getRanges']();this['editor']['model']['canEditAt'](_0xb8a229)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x17019e);}};function Lt(_0x2e13ba,_0x25498e){let _0xdf862a='';return _0xdf862a+=_0x2e13ba['split']('*')['map']((_0xc104ee,_0x21f6a2)=>_0x21f6a2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+It(_0xc104ee)+'</span>':It(_0xc104ee))['join'](''),_0x25498e&&(_0xdf862a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x25498e['value']+'\x22\x20title=\x22'+_0x25498e['title']+'\x22></span>'),_0xdf862a;}function It(_0x4abdb7){const _0x505876=document['createElement']('span');return _0x505876['innerText']=_0x4abdb7,_0x505876['innerHTML'];}function At(_0x239a15){return _0x239a15['sort']((_0x5a4274,_0x2db447)=>'attribute'===_0x5a4274['type']&&'attribute'!==_0x2db447['type']?-0x1:'attribute'!==_0x5a4274['type']&&'attribute'===_0x2db447['type']?0x1:'deletion'==_0x5a4274['type']&&'deletion'!=_0x2db447['type']?-0x1:'deletion'!=_0x5a4274['type']&&'deletion'==_0x2db447['type']?0x1:0x0);}function bt(_0x5bcd7c,_0x56daae){let _0x455f98,_0xf3900d=0x0;const _0x173e90=[],_0x171aed=_0x56daae['schema'];for(;_0xf3900d<_0x5bcd7c['length'];){const _0x1e9084=_0x5bcd7c[_0xf3900d],_0xe8de0f=_0x5bcd7c[_0xf3900d+0x1];_0x455f98||(_0x455f98=_0x56daae['createPositionBefore'](_0x1e9084)),kt(_0x56daae,_0x1e9084,_0xe8de0f)||(_0x173e90['push'](_0x56daae['createRange'](_0x455f98,_0x171aed['isObject'](_0x1e9084)?_0x56daae['createPositionAfter'](_0x1e9084):_0x56daae['createPositionAt'](_0x1e9084,'end'))),_0x455f98=null),_0xf3900d++;}return _0x173e90;}function kt(_0x495a20,_0x13198e,_0x657701){if(!_0x657701)return!0x1;const _0x323c42=_0x495a20['createPositionAfter'](_0x13198e),_0x518539=_0x495a20['createPositionBefore'](_0x657701);return _0x323c42['isTouching'](_0x518539);}function Ct(_0x22e8a5,_0x31ecd0,_0x2e308e){for(;_0x2e308e['length'];){const _0x2a5d88=_0x2e308e['splice'](0x0,0x64);_0x22e8a5['change'](()=>{for(const _0x2ea00a of _0x2a5d88)_0x2ea00a['isInContent']&&_0x31ecd0['execute'](_0x2ea00a['id']);});}}var Rt=class extends _0x1111ef{['_command'];_suggestions;constructor(_0x4f3969,_0x7165aa,_0x24cd20){super(_0x4f3969),this['_command']=_0x7165aa,this['_suggestions']=_0x24cd20,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a68ca=Array['from'](this['_suggestions']['values']())['some'](_0x598a99=>_0x598a99['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3a68ca;}execute(){const _0x5589bb=At(Array['from'](this['_suggestions']['values']()));for(const _0x527fc1 of _0x5589bb){const _0x1f95bd=_0x527fc1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1f95bd))return;}Ct(this['editor']['model'],this['_command'],_0x5589bb);}},yt=class extends _0x1111ef{['_command'];_suggestions;_selectedSuggestions;constructor(_0x46702c,_0x174163,_0xb2b685){super(_0x46702c),this['_command']=_0x174163,this['_suggestions']=_0xb2b685,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5261c7=this['editor']['model']['document']['selection'],_0x539c5b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x22d760,_0x490d36){const _0x43b322=Array['from'](_0x22d760['getRanges']()),_0x11fa2c=new Set();for(const _0x36a552 of _0x490d36)if(_0x36a552['isInContent']){for(const _0x31fa21 of _0x43b322)for(const _0x15cfaa of _0x36a552['getRanges']())(_0x31fa21['isIntersecting'](_0x15cfaa)||_0x22d760['isCollapsed']&&!_0x36a552['isMultiRange']&&_0x36a552['next']&&_0x15cfaa['end']['isTouching'](_0x31fa21['start']))&&_0x11fa2c['add'](_0x36a552);}return _0x11fa2c;}(_0x5261c7,_0x539c5b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x143a95=At(Array['from'](this['_selectedSuggestions']));for(const _0x6f64b1 of _0x143a95){const _0x40f0b8=_0x6f64b1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x40f0b8))return;}Ct(this['editor']['model'],this['_command'],_0x143a95);}};const Nt=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3d7812();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x139ece,_0xc2e548){super(),this['id']=_0xc2e548['id'],this['type']=_0xc2e548['type'],this['subType']=_0xc2e548['subType']||null,this['author']=_0xc2e548['author'],this['creator']=_0xc2e548['creator']||_0xc2e548['author'],this['data']=null,this['_originalSuggestionId']=_0xc2e548['originalSuggestionId']||null,this['_model']=_0x139ece,this['_onAccept']=_0xc2e548['onAccept'],this['_onDiscard']=_0xc2e548['onDiscard'],this['_onAttributesChange']=_0xc2e548['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xc2e548['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x3efdf4=this;for(;_0x3efdf4['previous'];)_0x3efdf4=_0x3efdf4['previous'];return _0x3efdf4;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x4eafed){this['_markerNames']['add'](_0x4eafed);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x664276=>this['_model']['markers']['get'](_0x664276))['filter'](_0x225524=>_0x225524);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4cff31=>{for(const _0x5d75d7 of this['getMarkers']())_0x4cff31['removeMarker'](_0x5d75d7);}),this['_markerNames']['clear']();}['removeMarker'](_0x2df458){this['_model']['change'](_0x518854=>{_0x518854['removeMarker'](_0x2df458);}),this['_markerNames']['delete'](_0x2df458);}['addRange'](_0x62cf4b){const _0x4abe38='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x4abe38),this['_model']['change'](_0x207fcf=>{_0x207fcf['addMarker'](_0x4abe38,{'range':_0x62cf4b,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0xf449f2){for(const _0x17e6a1 of this['getRanges']())if(_0x17e6a1['isIntersecting'](_0xf449f2))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x20f87d=>_0x20f87d['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x53f241,_0x5a4a73)=>[..._0x53f241,..._0x5a4a73['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x3b1f3f=this['getRanges']();if(0x1!=_0x3b1f3f['length'])return null;const _0x11128b=_0x3b1f3f[0x0],_0x28e951=_0x11128b['start']['nodeAfter'],_0x29c2a9=_0x11128b['end']['nodeBefore'];return _0x28e951 instanceof it?_0x28e951!=_0x29c2a9?null:_0x28e951: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 _0x59163f=[];let _0x313f02=this['head'];for(;_0x313f02;)_0x59163f['push'](_0x313f02),_0x313f02=_0x313f02['next'];return _0x59163f;}setAttribute(_0x58bed6,_0x5479e7){const _0x28d1e0=at(this['attributes']);ut(_0x28d1e0,_0x58bed6,_0x5479e7),ct(_0x28d1e0,this['attributes'])||(this['attributes']=_0x28d1e0,this['_onAttributesChange'](_0x28d1e0));}removeAttribute(_0x259446){const _0x5b1710=at(this['attributes']);dt(_0x5b1710,_0x259446),ct(_0x5b1710,this['attributes'])||(this['attributes']=_0x5b1710,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 _0x5b5c0d()['substr'](0x1,0x5);}};function Mt(_0x4874eb,_0x567a4b,_0x16af99){const _0x436827=_0x4874eb['t'],t=_0x4874eb['t'];switch(_0x567a4b){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x16af99);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x16af99);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x16af99);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x16af99);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x16af99);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',_0x16af99);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x16af99);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16af99);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x16af99);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x16af99);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x16af99);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x16af99);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x16af99);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x16af99);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x16af99);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x16af99);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x16af99);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x16af99);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x16af99);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x16af99);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x16af99);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x16af99);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x16af99);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x16af99);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x16af99);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'},_0x16af99);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x16af99);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x16af99);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x16af99);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x16af99);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x16af99);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x16af99);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x16af99);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x16af99);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x16af99);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x16af99);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x16af99);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x16af99);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x16af99);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x16af99);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x16af99);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'},_0x16af99);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x16af99);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x16af99);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'},_0x16af99);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x16af99);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'},_0x16af99);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x16af99);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x16af99);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x16af99);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x16af99);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x16af99);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x16af99);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x16af99);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x436827({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x16af99);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x436827({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x16af99);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x16af99);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x16af99);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x16af99);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x16af99);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x567a4b;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x55110a,_0x4503fa){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x55110a,this['_locale']=_0x4503fa;}getDescriptions(_0x1db83d){const _0x15f779=[],_0x497dfc=new Set(),_0x584135=new Set();for(let _0xc4c575=0x0;_0xc4c575<_0x1db83d['length'];_0xc4c575++){const _0xe3f640=_0x1db83d[_0xc4c575];if(!_0xe3f640['isInContent'])continue;const _0x43e8fe=this['_handleCustomCallbackDescription'](_0xe3f640);if(_0x43e8fe){if(null!=_0xe3f640['subType']){if(_0x497dfc['has'](_0xe3f640['subType']))continue;_0x497dfc['add'](_0xe3f640['subType']);}_0x15f779['push'](_0x43e8fe);}else{if('attribute'==_0xe3f640['type']){const _0x147b0d=_0xe3f640['data']['key'];if(_0x584135['has'](_0x147b0d))continue;_0x584135['add'](_0xe3f640['data']['key']),'$elementName'==_0x147b0d?this['_handleRenameSuggestionDescription'](_0x15f779,_0xe3f640):this['_handleAttributeSuggestionDescription'](_0x15f779,_0xe3f640);continue;}'insertion'!=_0xe3f640['type']&&'deletion'!=_0xe3f640['type']||this['_handleInsertRemoveSuggestionDescription'](_0x15f779,_0xe3f640,_0x1db83d[_0xc4c575+0x1]);}}return this['_resolveDescriptionItems'](_0x15f779);}registerDescriptionCallback(_0x3efdd2){this['_customCallbacks']['push'](_0x3efdd2);}registerElementLabel(_0x54995a,_0xe60640,_0x1d3e97=_0x5ee963['normal']){'function'==typeof _0x54995a?_0x55b07f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54995a,'label':_0xe60640,'priority':_0x1d3e97}):this['_itemLabels']['set'](_0x54995a,_0xe60640);}registerAttributeLabel(_0x3f7074,_0x461b4d){this['_attributeLabels']['set'](_0x3f7074,_0x461b4d);}getItemLabel(_0x5dc70c,_0x116314=0x1){let _0x3bd302;for(const _0x56baf8 of this['_itemLabelsCallbacks'])if(_0x56baf8['matchingCallback'](_0x5dc70c)){_0x3bd302=_0x56baf8['label'];break;}return _0x3bd302||(_0x3bd302=this['_itemLabels']['get'](_0x5dc70c['name'])),_0x3bd302?_0x3bd302(_0x116314):0x1!==_0x116314?_0x116314+'\x20'+_0x5dc70c['name']+'s':''+_0x5dc70c['name'];}_addDescriptionItems(_0x34a3b0,_0x35ee0c){const _0x5e6b2f=_0x35ee0c['getFirstRange']()['getWalker'](),_0x28828d='insertion'==_0x35ee0c['type']?'add':'remove';for(const _0x12b306 of _0x5e6b2f){const _0x11d5c2=_0x12b306['item'],_0x4a7037=_0x34a3b0[_0x34a3b0['length']-0x1];if(_0x11d5c2['is']('$textProxy'))_0x4a7037&&_0x4a7037['type']['indexOf']('Container')>-0x1&&_0x34a3b0['pop'](),_0x4a7037&&'text'==_0x4a7037['type']?_0x4a7037[_0x28828d]+=_0x11d5c2['data']:_0x34a3b0['push']({'type':'text','add':'add'==_0x28828d?_0x11d5c2['data']:'','remove':'remove'==_0x28828d?_0x11d5c2['data']:''});else{if(this['_schema']['isObject'](_0x11d5c2)){const _0x3ca89f=_0x11d5c2;if(_0x4a7037&&_0x4a7037['type']['indexOf']('Container')>-0x1&&_0x34a3b0['pop'](),'elementEnd'==_0x12b306['type'])continue;_0x4a7037&&_0x4a7037['type']==_0x28828d+'Object'&&_0x4a7037['element']['name']==_0x3ca89f['name']?_0x4a7037['quantity']++:_0x34a3b0['push']({'type':_0x28828d+'Object','element':_0x3ca89f,'quantity':0x1}),_0x5e6b2f['skip'](_0x5e347e=>!('elementEnd'==_0x5e347e['type']&&_0x5e347e['item']==_0x11d5c2));}else{if(this['_schema']['checkChild'](_0x11d5c2,'$text')||_0x11d5c2['is']('element','softBreak')){const _0x4f4238=_0x11d5c2;if('add'==_0x28828d&&'elementStart'==_0x12b306['type']||'remove'==_0x28828d&&'elementEnd'==_0x12b306['type'])continue;if(_0x4a7037&&-0x1==_0x4a7037['type']['indexOf']('Container')){'text'==_0x4a7037['type']&&(_0x4a7037[_0x28828d]+='\x0a');continue;}let _0x4ca5bc;if(_0x4ca5bc='add'==_0x28828d?_0x4f4238['nextSibling']&&!this['_schema']['isObject'](_0x4f4238['nextSibling'])?_0x4f4238['nextSibling']:null:_0x4f4238['previousSibling']&&!this['_schema']['isObject'](_0x4f4238['previousSibling'])?_0x4f4238['previousSibling']:null,_0x4f4238['isEmpty']||_0x4ca5bc&&_0x4ca5bc['isEmpty']){const _0x38fdf6=_0x4ca5bc&&_0x4ca5bc['isEmpty']?_0x4ca5bc:_0x4f4238;_0x4a7037&&_0x4a7037['type']==_0x28828d+'EmptyContainer'&&_0x4a7037['element']['name']==_0x38fdf6['name']?_0x4a7037['quantity']++:_0x34a3b0['push']({'type':_0x28828d+'EmptyContainer','element':_0x38fdf6,'quantity':0x1});}else _0x34a3b0['push']({'type':_0x28828d+'Container','element':_0x4f4238});}}}}}_resolveDescriptionItems(_0x3f4209){const _0x4bd72f=this['_locale'],_0x2c4b0f=[],_0x5a1dcc=[],_0x5eee8a=[];for(const _0x1dd3a0 of _0x3f4209)switch(_0x1dd3a0['type']){case'text':if(_0x1dd3a0['add']=_0x1dd3a0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1dd3a0['remove']=_0x1dd3a0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1dd3a0['add']&&''!=_0x1dd3a0['remove']){_0x2c4b0f['push']({'type':'replace','content':Mt(_0x4bd72f,'REPLACE_TEXT',['\x22'+_0x1dd3a0['remove']+'\x22','\x22'+_0x1dd3a0['add']+'\x22'])});continue;}if(null!=_0x1dd3a0['add']['match'](/^ +$/)){_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Insert:*\x20%0',Mt(_0x4bd72f,'ELEMENT_SPACE',_0x1dd3a0['add']['length']))});continue;}if(null!=_0x1dd3a0['remove']['match'](/^ +$/)){_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Remove:*\x20%0',Mt(_0x4bd72f,'ELEMENT_SPACE',_0x1dd3a0['remove']['length']))});continue;}if(''!=_0x1dd3a0['add']){_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Insert:*\x20%0','\x22'+_0x1dd3a0['add']+'\x22')});continue;}_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Remove:*\x20%0','\x22'+_0x1dd3a0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Insert:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Remove:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'addContainer':_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Split:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'removeContainer':_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Merge:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'addFormat':_0x5a1dcc['push'](_0x1dd3a0['key']);continue;case'removeFormat':_0x5eee8a['push'](_0x1dd3a0['key']);continue;default:_0x2c4b0f['push'](_0x1dd3a0);}if(_0x5a1dcc['length']){const _0x4f03b1=_0x5a1dcc['map'](_0x122bd6=>this['_attributeLabels']['has'](_0x122bd6)?this['_attributeLabels']['get'](_0x122bd6):_0x122bd6)['join'](',\x20');_0x2c4b0f['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x4f03b1)});}if(_0x5eee8a['length']){const _0xfe2083=_0x5eee8a['map'](_0x54d153=>this['_attributeLabels']['has'](_0x54d153)?this['_attributeLabels']['get'](_0x54d153):_0x54d153)['join'](',\x20');_0x2c4b0f['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0xfe2083)});}return _0x2c4b0f;}_handleCustomCallbackDescription(_0x55a7e4){for(const _0x25d960 of this['_customCallbacks']){const _0xd6b975=_0x25d960(_0x55a7e4);if(_0xd6b975&&'type'in _0xd6b975)return _0xd6b975;}}_handleAttributeSuggestionDescription(_0x59bf9b,_0x9466f5){const _0x1e7423=_0x9466f5['data'],_0x393c7e=void 0x0===_0x1e7423['newValue']?'removeFormat':'addFormat';_0x59bf9b['push']({'type':_0x393c7e,'key':_0x1e7423['key']});}_handleRenameSuggestionDescription(_0x43a388,_0x5a68c0){_0x43a388['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a68c0['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x132348,_0x29c8e1,_0x306372){if(this['_addDescriptionItems'](_0x132348,_0x29c8e1),_0x306372&&_0x306372['getFirstRange']()&&!_0x29c8e1['getFirstRange']()['end']['isEqual'](_0x306372['getFirstRange']()['start'])){const _0x1bb053=_0x132348[_0x132348['length']-0x1],_0x23d3f9='insertion'==_0x29c8e1['type']?'add':'remove';_0x1bb053&&'text'==_0x1bb053['type']&&(_0x1bb053[_0x23d3f9]+='\x0a');}}},wt=class extends _0x42a28f{afterInit(){const _0x8d3375=this['editor'],_0x1c59d0=_0x8d3375['plugins']['get']('TrackChangesEditing');_0x8d3375['commands']['get']('showAIAssistant')&&_0x1c59d0['enableCommand']('showAIAssistant');}},Ft=class extends _0x42a28f{afterInit(){const _0x2478c0=this['editor'],_0x4e13de=_0x2478c0['plugins']['get']('TrackChangesEditing');_0x2478c0['commands']['get']('toggleAi')&&_0x4e13de['enableCommand']('toggleAi');}},Bt=class extends _0x42a28f{afterInit(){const _0x84390f=this['editor'],_0x44c8c3=_0x84390f['plugins']['get']('TrackChangesEditing');_0x84390f['commands']['get']('aiQuickAction')&&_0x44c8c3['enableCommand']('aiQuickAction');}},vt=class extends _0x42a28f{afterInit(){const _0x4d4521=this['editor'],_0x45e136=_0x4d4521['locale'];if(!_0x4d4521['plugins']['has']('AlignmentEditing'))return;const _0xfa7152=_0x4d4521['plugins']['get']('TrackChangesEditing');_0xfa7152['enableDefaultAttributesIntegration']('alignment'),_0xfa7152['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x45e136,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x372fb3=this['editor'],_0x423249=_0x372fb3['locale'];_0x372fb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29e3a6=>{if('formatBlock'!=_0x29e3a6['type'])return;const {data:_0x71817c}=_0x29e3a6;if(_0x71817c&&'alignment'==_0x71817c['commandName']){const _0x46142c=_0x71817c['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x423249,'*Format:*\x20%0',function(_0x1a4f0e){switch(_0x1a4f0e){case'left':return Mt(_0x423249,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x423249,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x423249,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x423249,'FORMAT_JUSTIFY_TEXT');}}(_0x46142c))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x42a28f{afterInit(){const _0x18f2ce=this['editor'],_0x3fbbbf=_0x18f2ce['plugins']['get']('TrackChangesEditing'),_0x429df1=_0x18f2ce['locale'];for(const _0x46abfa of Dt){if(!_0x18f2ce['plugins']['has'](_0x46abfa))continue;const _0x3d304b=_0x46abfa['slice'](0x0,-0x7)['toLowerCase'](),_0x57ec03='FORMAT_'+_0x3d304b['toUpperCase']();_0x3fbbbf['enableDefaultAttributesIntegration'](_0x3d304b),_0x3fbbbf['descriptionFactory']['registerAttributeLabel'](_0x3d304b,Mt(_0x429df1,_0x57ec03));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x382f7f=this['editor'],_0x1e3c26=_0x382f7f['locale'],_0x3182bb=_0x382f7f['plugins']['get']('TrackChangesEditing');function _0x32eaa6(_0x2964e6,_0x5d42e7){_0x3182bb['descriptionFactory']['registerDescriptionCallback'](_0x1ba767=>{if('formatInline'!=_0x1ba767['type'])return;const {data:_0x58fdd9}=_0x1ba767;return _0x58fdd9&&_0x58fdd9['commandName']===_0x2964e6?_0x58fdd9['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x1e3c26,'*Format:*\x20%0',_0x5d42e7)}:{'type':'format','content':Mt(_0x1e3c26,'*Remove\x20format:*\x20%0',_0x5d42e7)}:void 0x0;});}_0x32eaa6('bold',Mt(_0x1e3c26,'FORMAT_BOLD')),_0x32eaa6('italic',Mt(_0x1e3c26,'FORMAT_ITALIC')),_0x32eaa6('underline',Mt(_0x1e3c26,'FORMAT_UNDERLINE')),_0x32eaa6('code',Mt(_0x1e3c26,'FORMAT_CODE')),_0x32eaa6('strikethrough',Mt(_0x1e3c26,'FORMAT_STRIKETHROUGH')),_0x32eaa6('subscript',Mt(_0x1e3c26,'FORMAT_SUBSCRIPT')),_0x32eaa6('superscript',Mt(_0x1e3c26,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x42a28f{afterInit(){const _0x32bd3a=this['editor'],_0x4df617=_0x32bd3a['locale'];if(!_0x32bd3a['plugins']['has']('BlockQuoteEditing'))return;const _0x4420b1=_0x32bd3a['plugins']['get']('TrackChangesEditing'),_0x4ac9bb=this['editor']['commands']['get']('blockQuote');_0x4420b1['enableCommand']('blockQuote',(_0x32cb17,_0x534dd3={})=>{const _0x24bc8d=this['editor']['model']['document']['selection'],_0x25e6cf=_0x534dd3&&void 0x0!==_0x534dd3['forceValue']?_0x534dd3['forceValue']:!_0x4ac9bb['value'];let _0x567b53=[];if(_0x25e6cf){const _0x1501a8=Array['from'](_0x24bc8d['getSelectedBlocks']())['filter'](_0xe4d525=>xt(_0xe4d525)||function(_0x2e0365,_0x1e502d){const _0x57f0d9=_0x1e502d['createContext'](_0x2e0365['parent']);return!!_0x1e502d['checkChild'](_0x57f0d9,'blockQuote')&&!!_0x1e502d['checkChild'](_0x57f0d9['push']('blockQuote'),_0x2e0365);}(_0xe4d525,this['editor']['model']['schema']));_0x567b53=bt(_0x1501a8,_0x32bd3a['model']);}else{const _0x22880f=Array['from'](_0x24bc8d['getSelectedBlocks']())['filter'](_0x5738d1=>xt(_0x5738d1));_0x567b53=bt(_0x22880f,_0x32bd3a['model']);}_0x32bd3a['model']['change'](()=>{for(const _0x5a3500 of _0x567b53)_0x4420b1['markBlockFormat'](_0x5a3500,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x25e6cf}]});});}),_0x4420b1['descriptionFactory']['registerDescriptionCallback'](_0x7406a7=>{const {data:_0x4132e4}=_0x7406a7;if(_0x4132e4&&'blockQuote'==_0x4132e4['commandName']){const _0x138d4f=Mt(_0x4df617,'ELEMENT_BLOCK_QUOTE');return _0x4132e4['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4df617,'*Set\x20format:*\x20%0',_0x138d4f)}:{'type':'format','content':Mt(_0x4df617,'*Remove\x20format:*\x20%0',_0x138d4f)};}});}};function xt(_0x183b70){return'blockQuote'==_0x183b70['parent']['name'];}var Gt=class extends _0x42a28f{afterInit(){const _0x5a78f6=this['editor'],_0x554ba3=_0x5a78f6['locale'],_0x3a92a2=_0x5a78f6['plugins']['get']('TrackChangesEditing');_0x5a78f6['plugins']['has']('BookmarkEditing')&&(_0x3a92a2['enableCommand']('insertBookmark'),_0x3a92a2['enableDefaultAttributesIntegration']('updateBookmark'),_0x3a92a2['descriptionFactory']['registerDescriptionCallback'](_0x2b5baa=>{if('insertion'!=_0x2b5baa['type']&&'deletion'!=_0x2b5baa['type']&&'attribute'!=_0x2b5baa['type'])return;const _0x4d2140=_0x2b5baa['getContainedElement']();if(null==_0x4d2140)return;if(!_0x4d2140['is']('element','bookmark'))return;const _0x105288=_0x4d2140['getAttribute']('bookmarkId');if('insertion'==_0x2b5baa['type'])return{'type':'insertion','content':Mt(_0x554ba3,'*Insert:*\x20%0','\x22'+_0x105288+'\x22\x20'+Mt(_0x554ba3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2b5baa['type'])return{'type':'deletion','content':Mt(_0x554ba3,'*Remove:*\x20%0','\x22'+_0x105288+'\x22\x20'+Mt(_0x554ba3,'ELEMENT_BOOKMARK'))};const {data:_0x2f43f5}=_0x2b5baa;return _0x2f43f5&&'bookmarkId'==_0x2f43f5['key']?{'type':'format','content':Mt(_0x554ba3,'*Set\x20bookmark:*\x20%0','\x22'+_0x2f43f5['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x42a28f{afterInit(){const _0x412cc6=this['editor'];_0x412cc6['plugins']['has']('CaseChange')&&(_0x412cc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x412cc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x412cc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x42a28f{afterInit(){const _0x2820c9=this['editor'];_0x2820c9['commands']['get']('ckbox')&&_0x2820c9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x42a28f{static get requires(){return[ht,gt];}constructor(_0x35ba61){super(_0x35ba61),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x1b90c8=this['editor'],_0x447600=_0x1b90c8['plugins']['get']('ClipboardMarkersUtils'),_0x355ff1=_0x1b90c8['plugins']['get'](gt);_0x447600['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x355ff1['on']('outputTransformation',(_0x5f0abc,_0x443642)=>{const _0xa43715=this['_getSuggestionEntries'](_0x443642);for(const [_0x23bbae,_0x266ced]of _0x443642['content']['markers']){const _0x2c511f=rt['_fromRangeInDocumentFragment'](_0x266ced,_0x1b90c8['model']);function _0x3480aa(){_0x2c511f['detach'](),_0x443642['content']['markers']['delete'](_0x23bbae);}_0x2c511f['on']('change:drop',_0x3480aa),(_0x23bbae['startsWith']('suggestion:')||_0x23bbae['startsWith']('comment:'))&&_0x2c511f['on']('change:range',()=>{_0x2c511f['isCollapsed']&&_0x3480aa();}),_0x443642['content']['markers']['set'](_0x23bbae,_0x2c511f);}const _0x59f0a4=_0xa43715['filter'](_0x3d875d=>'deletion'===_0x3d875d['meta']['type'])['map'](_0x5a28c5=>_0x5a28c5['modelRange']);if(this['_shouldSkipDeletions'](_0x59f0a4,_0x443642['content']))return[..._0xa43715]['forEach'](_0x391424=>{_0x443642['content']['markers']['get'](_0x391424['markerName'])['detach'](),_0x443642['content']['markers']['delete'](_0x391424['markerName']);}),void this['_restoreRegularRanges'](_0x443642['content']['markers']);[..._0xa43715]['forEach'](_0x1ea5a8=>{const _0x54c0a2=_0x1b90c8['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x1ea5a8['meta']['type'],_0x1ea5a8['meta']['subType'],'accept'),{markerName:_0x1a5f2d,meta:_0x49c344}=_0x1ea5a8;if(_0x443642['content']['markers']['has'](_0x1a5f2d)){switch(_0x49c344['type']){case'deletion':if('tableRow'===_0x49c344['subType']||'tableColumn'===_0x49c344['subType']){if(!_0x1b90c8['plugins']['has']('TableUtils'))break;const _0x463037=_0x1b90c8['plugins']['get']('TableUtils'),_0x3df4ba=_0x463037['getSelectionAffectedTableCells'](_0x1b90c8['model']['createSelection'](_0x443642['content']['markers']['get'](_0x1a5f2d))),_0x927435=_0x3df4ba[0x0]['findAncestor']('table');if('tableRow'===_0x49c344['subType']){const {first:_0x24cd6f,last:_0x291beb}=_0x463037['getRowIndexes'](_0x3df4ba);_0x463037['removeRows'](_0x927435,{'at':_0x24cd6f,'rows':_0x291beb-_0x24cd6f+0x1});}else{const {first:_0x176825,last:_0x300788}=_0x463037['getColumnIndexes'](_0x3df4ba);_0x463037['removeColumns'](_0x927435,{'at':_0x176825,'columns':_0x300788-_0x176825+0x1});}break;}_0x54c0a2([_0x443642['content']['markers']['get'](_0x1a5f2d)]);}_0x443642['content']['markers']['has'](_0x1a5f2d)&&(_0x443642['content']['markers']['get'](_0x1a5f2d)['detach'](),_0x443642['content']['markers']['delete'](_0x1a5f2d));}}),this['_restoreRegularRanges'](_0x443642['content']['markers']);});}_getSuggestionEntries(_0xabfbf6){const _0x2e9045=_0x17a357=>'dragstart'===_0xabfbf6['method']?_0x17a357['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x17a357;return Array['from'](_0xabfbf6['content']['markers'])['map'](([_0x3bf205,_0x4ad5cc])=>({'markerName':_0x3bf205,'modelRange':_0x4ad5cc,'meta':tt(_0x2e9045(_0x3bf205))}))['filter'](({meta:_0x3c7e58})=>'suggestion'===_0x3c7e58['group']);}_shouldSkipDeletions(_0x4177af,_0x2e9b1a){if(!_0x4177af['length'])return!0x1;let _0x37db06=[this['editor']['model']['createRangeIn'](_0x2e9b1a)];for(const _0x312ecf of _0x4177af)_0x37db06=_0x37db06['flatMap'](_0x4c5781=>_0x4c5781['getDifference'](_0x312ecf));return!_0x37db06['some'](_0x7675e6=>this['editor']['model']['hasContent'](_0x7675e6,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x6203e4){[..._0x6203e4['keys']()]['forEach'](_0x3521a2=>{const _0x1e5a29=_0x6203e4['get'](_0x3521a2);_0x1e5a29['detach'](),_0x6203e4['set'](_0x3521a2,_0x1e5a29['toRange']());});}},Vt=class extends _0x42a28f{afterInit(){const _0x4b3bda=this['editor'];if(!_0x4b3bda['plugins']['has']('CodeBlock'))return;const _0x29f63a=_0x4b3bda['plugins']['get']('TrackChangesEditing'),_0x403f30=_0x4b3bda['locale'],_0x578e50=_0x4b3bda['config']['get']('codeBlock')['languages'],_0x4142fa=_0x4b3bda['commands']['get']('codeBlock');_0x29f63a['enableCommand']('indentCodeBlock'),_0x29f63a['enableCommand']('outdentCodeBlock'),_0x29f63a['enableCommand']('codeBlock',(_0x373110,_0x2d5e04={})=>{const _0x4ff637=_0x4b3bda['model'],_0x56fc46=_0x4b3bda['model']['document']['selection'],_0x1e8c05=_0x2d5e04&&void 0x0!==_0x2d5e04['forceValue']?_0x2d5e04['forceValue']:!_0x4142fa['value'];let _0x5d357f;_0x2d5e04['language']||(_0x2d5e04['language']=_0x578e50[0x0]['language']),_0x5d357f=_0x1e8c05?Array['from'](_0x56fc46['getSelectedBlocks']())['filter'](_0x2b6418=>{return jt(_0x2b6418)||(_0x47d813=_0x2b6418,_0xc218f=_0x4ff637['schema'],!_0x47d813['is']('rootElement')&&!_0xc218f['isLimit'](_0x47d813)&&_0xc218f['checkChild'](_0x47d813['parent'],'codeBlock'));var _0x47d813,_0xc218f;}):Array['from'](_0x56fc46['getSelectedBlocks']())['filter'](_0x177a25=>jt(_0x177a25));const _0x4a220a=bt(_0x5d357f,_0x4ff637);_0x4ff637['change'](()=>{for(const _0x9a65c7 of _0x4a220a)_0x29f63a['markBlockFormat'](_0x9a65c7,{'commandName':'codeBlock','commandParams':[{..._0x2d5e04,'forceValue':_0x1e8c05}],'formatGroupId':'blockName'});});}),(_0x29f63a['descriptionFactory']['registerElementLabel']('codeBlock',_0x7a629b=>Mt(_0x403f30,'ELEMENT_CODE_BLOCK',_0x7a629b)),_0x29f63a['descriptionFactory']['registerDescriptionCallback'](_0x199dd3=>{if('formatBlock'!=_0x199dd3['type'])return;const _0xc34f09=_0x403f30['t'],{data:_0x1de673}=_0x199dd3;if(!_0x1de673||'codeBlock'!=_0x1de673['commandName'])return;const _0x3cc435=_0x1de673['commandParams'][0x0]['language'],_0x2d2e88=_0xc34f09(_0x578e50['find'](_0x35420d=>_0x35420d['language']===_0x3cc435)['label'])['toLowerCase']();return _0x1de673['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x403f30,'*Set\x20format:*\x20%0',Mt(_0x403f30,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2d2e88+')')}:{'type':'format','content':Mt(_0x403f30,'*Remove\x20format:*\x20%0',Mt(_0x403f30,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x12bd54){return'codeBlock'==_0x12bd54['name'];}var zt=class extends _0x42a28f{afterInit(){const _0x443dd0=this['editor'];_0x443dd0['plugins']['has']('CommentsEditing')&&_0x443dd0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x42a28f{static get requires(){return[ft];}init(){const _0x463121=this['editor'],_0x27fd35=_0x463121['plugins']['get']('TrackChangesEditing');_0x27fd35['enableCommand']('delete');const _0x54efc2=_0x463121['commands']['get']('deleteForward');_0x27fd35['enableCommand']('deleteForward',(_0xf5492c,_0x528687={})=>{const _0x3e8878=_0x463121['model']['createSelection'](_0x463121['model']['document']['selection']);_0x3e8878['isCollapsed']&&_0x463121['model']['modifySelection'](_0x3e8878,{'direction':'forward','unit':_0x528687['unit']});const _0x2e44a3=_0x3e8878['getFirstRange'](),_0x122858=rt['fromRange'](_0x2e44a3);let _0x840e76;_0xf5492c(_0x528687),_0x840e76='$graveyard'==_0x122858['root']['rootName']?_0x463121['model']['createRange'](_0x2e44a3['start']):_0x463121['model']['createRange'](_0x122858['start'],_0x122858['end']),_0x122858['detach'](),_0x463121['model']['enqueueChange'](_0x54efc2['buffer']['batch'],_0x4da335=>{_0x54efc2['buffer']['lock'](),_0x4da335['setSelection'](_0x4da335['createRange'](_0x840e76['end'])),_0x54efc2['buffer']['unlock']();});});}},Xt=class extends _0x42a28f{afterInit(){const _0x28ea0f=this['editor'];if(!_0x28ea0f['plugins']['has']('ListEditing'))return;const _0x2f8479=_0x28ea0f['locale'],_0x34055a=_0x28ea0f['plugins']['get']('TrackChangesEditing'),_0x355346=_0x28ea0f['plugins']['has']('TodoListEditing'),_0x57b79e=!!_0x28ea0f['config']['get']('list.multiBlock');function _0x34ada2(_0x2cf586){return{'type':'format','content':''+Mt(_0x2f8479,'*Set\x20format:*\x20%0',_0x2cf586)};}function _0xc6e292(_0xb5d7cd){return{'type':'format','content':''+Mt(_0x2f8479,'*Remove\x20format:*\x20%0',_0xb5d7cd)};}_0x34055a['enableDefaultAttributesIntegration']('numberedList'),_0x34055a['enableDefaultAttributesIntegration']('bulletedList'),_0x34055a['enableDefaultAttributesIntegration']('customNumberedList'),_0x34055a['enableDefaultAttributesIntegration']('customBulletedList'),_0x34055a['enableDefaultAttributesIntegration']('indentList'),_0x34055a['enableDefaultAttributesIntegration']('outdentList'),_0x34055a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x34055a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x57b79e&&(_0x34055a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x34055a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x355346&&(_0x34055a['enableDefaultAttributesIntegration']('todoList'),_0x34055a['enableDefaultAttributesIntegration']('checkTodoList'),_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x1c803f=>{const {data:_0x387984}=_0x1c803f;if(_0x387984&&'todoListChecked'==_0x387984['key'])return{'type':'format','content':_0x387984['newValue']?Mt(_0x2f8479,'*Check\x20item*'):Mt(_0x2f8479,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x47a3c7=>{if(_0x47a3c7['batch']['isUndo'])return!0x1;let _0x54713b=!0x1;const _0x181300=_0x34055a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe0f222=>'todoListChecked'===_0x34055a['_getAttributeKey'](_0xe0f222));for(const _0x72dcf5 of _0x181300)'todo'!=_0x72dcf5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x34055a['_findSuggestions'](_0x72dcf5['getFirstRange'](),'attribute')['find'](_0x6fb66c=>'listType'===_0x34055a['_getAttributeKey'](_0x6fb66c['suggestion']))||(_0x47a3c7['removeMarker'](_0x72dcf5['getFirstMarker']()),_0x54713b=!0x0));return _0x54713b;})),_0x34055a['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x2f8479,'FORMAT_INDENT'));const _0x5b9c9e={'type':'format','content':''};_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x167d82=>{const {data:_0x8eb531}=_0x167d82;if(!_0x8eb531||'listType'!=_0x8eb531['key'])return;let _0x57d99d=_0x167d82['head'];for(;_0x57d99d;){if(_0x57d99d['data']&&(('listStyle'==_0x57d99d['data']['key']||'listMarkerStyle'==_0x57d99d['data']['key'])&&(_0x57d99d['data']['newValue']&&'default'!=_0x57d99d['data']['newValue']||'default'!=_0x57d99d['data']['oldValue']&&!_0x8eb531['newValue'])||!_0x57b79e&&'$elementName'==_0x57d99d['data']['key']))return _0x5b9c9e;_0x57d99d=_0x57d99d['next'];}if(null==_0x8eb531['newValue'])switch(_0x8eb531['oldValue']){case'bulleted':return _0xc6e292(Mt(_0x2f8479,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc6e292(Mt(_0x2f8479,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc6e292(Mt(_0x2f8479,'ELEMENT_TODO_LIST'));}switch(_0x8eb531['newValue']){case'bulleted':return _0x34ada2(Mt(_0x2f8479,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34ada2(Mt(_0x2f8479,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34ada2(Mt(_0x2f8479,'ELEMENT_TODO_LIST'));}}),_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x48f7e6=>{const {data:_0x49538c}=_0x48f7e6;if(_0x49538c&&'listIndent'==_0x49538c['key'])return null==_0x49538c['newValue']||null==_0x49538c['oldValue']&&0x0==_0x49538c['newValue']?_0x5b9c9e:void 0x0;}),_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x34af9b=>{if('attribute'!=_0x34af9b['type'])return;const {data:_0x472117}=_0x34af9b;if(!_0x472117||'listItemId'!=_0x472117['key'])return;const _0x497bc2=qt(_0x34af9b);return'newValue'==_0x497bc2?{'type':'format','content':Mt(_0x2f8479,'*Merge:*\x20list\x20item')}:'oldValue'==_0x497bc2?{'type':'format','content':Mt(_0x2f8479,'*Split:*\x20list\x20item')}:_0x5b9c9e;}),_0x28ea0f['model']['document']['registerPostFixer'](_0x2e5509=>this['listItemIdFixer'](_0x2e5509)),_0x28ea0f['model']['document']['registerPostFixer'](_0x15894e=>this['noTrackChangesFixer'](_0x15894e)),_0x28ea0f['model']['document']['on']('change:data',(_0x43fe99,_0x44db38)=>{if(_0x44db38['isUndo']||!_0x44db38['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x7deb7a){if(_0x7deb7a['batch']['isUndo']||!_0x7deb7a['batch']['isLocal'])return!0x1;let _0x13b183=!0x1;const _0xef08d8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x493c22=>_0x493c22['data']&&'listItemId'==_0x493c22['data']['key'])['filter'](_0x4cfef0=>_0x4cfef0['data']['newValue']&&_0x4cfef0['data']['oldValue']);for(const _0x4e34a2 of _0xef08d8)qt(_0x4e34a2)||(_0x7deb7a['removeMarker'](_0x4e34a2['getFirstMarker']()),_0x13b183=!0x0);return _0x13b183;}['noTrackChangesFixer'](_0x28b673){if(_0x28b673['batch']['isUndo']||!_0x28b673['batch']['isLocal'])return!0x1;const _0x20bd15=this['editor']['model']['document']['differ'],_0xe6a36c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xe6a36c['trackChangesCommand']['value'])return!0x1;let _0x287d99=!0x1;const _0x487c51=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x14ff15=_0x20bd15['getChanges']()['filter'](_0x5c7c1b=>'attribute'==_0x5c7c1b['type'])['filter'](_0x24ec3f=>_0x487c51['has'](_0x24ec3f['attributeKey']));if(0x0==_0x14ff15['length'])return _0x287d99;const _0x29c666=new Set(_0x20bd15['getMarkersToAdd']()['filter'](_0x326234=>{if(!_0x326234['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x306901=tt(_0x326234['name'])['subType']['split']('|')[0x0];return _0x487c51['has'](_0x306901);})['map'](_0x18066e=>tt(_0x18066e['name'])['id']));for(const _0x3f2723 of _0x14ff15){const _0x2823a5=_0xe6a36c['_findSuggestions'](_0x3f2723['range'],'attribute')['filter'](_0x4b59e1=>{if(_0x4b59e1['meta']['isNextTo'])return!0x1;if(_0x29c666['has'](_0x4b59e1['suggestion']['id']))return!0x1;const _0x2aed5f=_0xe6a36c['_getAttributeKey'](_0x4b59e1['suggestion']);return _0x487c51['has'](_0x2aed5f);})['map'](_0x4d7dc3=>_0x4d7dc3['suggestion']);if(_0x2823a5['length']){for(const _0x27c016 of _0x2823a5)_0x28b673['removeMarker'](_0x27c016['getFirstMarker']());_0x287d99=!0x0;}}return _0x287d99;}['assureChains'](){const _0x56de04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11d16d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4a2804;const _0x3ebea6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x365c4b=>{if(_0x365c4b['data']['oldRange']||!_0x365c4b['data']['newRange'])return null;if(!_0x365c4b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1d68c4}=tt(_0x365c4b['name']);if(!_0x56de04['hasSuggestion'](_0x1d68c4))return null;const _0x347073=_0x56de04['getSuggestion'](_0x1d68c4);return _0x11d16d['includes'](_0x347073['data']['key']);})['map'](_0x38634b=>{const {id:_0x4e63a9}=tt(_0x38634b['name']),_0x4b0a2d=_0x56de04['getSuggestion'](_0x4e63a9);return _0x4a2804=_0x4b0a2d['attributes']['groupId'],_0x4b0a2d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3ebea6['size'])return;const _0x23794e=_0x56de04['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dbc03=>'attribute'==_0x5dbc03['type']&&_0x5dbc03['data']&&_0x11d16d['includes'](_0x5dbc03['data']['key'])&&_0x5dbc03['attributes']['groupId']!=_0x4a2804)['map'](_0x38dd9c=>({'listItem':_0x38dd9c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x38dd9c['attributes']['groupId']})),_0x3a7691=new Set();for(const {groupId:_0x58d839,listItem:_0x56f69d}of _0x23794e)_0x3ebea6['has'](_0x56f69d)&&_0x3a7691['add'](_0x58d839);for(const _0x53d342 of _0x56de04['getSuggestions']())_0x3a7691['has'](_0x53d342['attributes']['groupId'])&&_0x53d342['setAttribute']('groupId',_0x4a2804);}_supportLegacySuggestions(){const _0xa6cea8=this['editor'],_0x171196=_0xa6cea8['locale'],_0x1e2108=_0xa6cea8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1e2108['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5a58d1,_0x3cfb35){const _0x5f3f39=[];for(let _0x3154b0 of _0x5a58d1)_0x3154b0['start']['nodeAfter']===_0x3154b0['end']['parent']&&(_0x3154b0=_0xa6cea8['model']['createRange'](_0xa6cea8['model']['createPositionAt'](_0x3154b0['start']['nodeAfter'],0x0))),_0x5f3f39['push'](_0x3154b0);_0xa6cea8['model']['change'](_0x2b55dc=>{const _0x55f7cf=_0xa6cea8['model']['document']['selection'],_0x59be67=Array['from'](_0x55f7cf['getRanges']())['map'](_0x5df1d2=>rt['fromRange'](_0x5df1d2));_0x2b55dc['setSelection'](_0x5f3f39),_0xa6cea8['commands']['get'](_0x3cfb35['commandName'])['refresh'](),_0x3cfb35['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa6cea8['execute'](_0x3cfb35['commandName'],..._0x3cfb35['commandParams']),_0x2b55dc['setSelection'](_0x59be67);for(const _0x1d7f89 of _0x59be67)_0x1d7f89['detach']();});}),_0x1e2108['descriptionFactory']['registerElementLabel'](function(_0x370f4){const _0x1ebc9a=!_0xa6cea8['model']['schema']['isObject'](_0x370f4),_0x3942f7=_0x370f4['previousSibling'],_0x3c37d2=_0x370f4['nextSibling'],_0xda2e4f=_0x370f4['getAttribute']('listItemId'),_0x88e441=!_0x3942f7||_0x3942f7['getAttribute']('listItemId')!==_0xda2e4f,_0x25d602=!_0x3c37d2||_0x3c37d2['getAttribute']('listItemId')!==_0xda2e4f;return _0x1ebc9a&&Boolean(_0xda2e4f)&&_0x88e441&&_0x25d602;},_0x2139b5=>Mt(_0x171196,'ELEMENT_LIST_ITEM',_0x2139b5));}_registerLegacyDescription(){const _0x3cbd16=this['editor'],_0x3ec97f=_0x3cbd16['locale'];function _0x720cca(_0x28ee96){const _0x4b7156=_0x3cbd16['commands']['get']('bulletedList')['value'],_0x46d5b6=_0x3cbd16['commands']['get']('numberedList')['value'];return'numberedList'===_0x28ee96?_0x4b7156:_0x46d5b6;}_0x3cbd16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x108d4f){if('formatBlock'!=_0x108d4f['type'])return;const {data:_0x5600c8}=_0x108d4f;if(!_0x5600c8)return;let _0x284d24,_0x5b4020,_0x2897a9,_0x272819;switch(_0x5600c8['commandName']){case'bulletedList':_0x2897a9=_0x5600c8['commandParams'][0x0]['forceValue'],_0x272819=_0x720cca(_0x5600c8['commandName']),_0x284d24=_0x2897a9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x272819&&_0x3cbd16['config']['get']('list.multiBlock')||(_0x284d24='*Change\x20to:*\x20%0'),_0x5b4020={'type':'format','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2897a9=_0x5600c8['commandParams'][0x0]['forceValue'],_0x272819=_0x720cca(_0x5600c8['commandName']),_0x284d24=_0x2897a9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x272819&&_0x3cbd16['config']['get']('list.multiBlock')||(_0x284d24='*Change\x20to:*\x20%0'),_0x5b4020={'type':'format','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x284d24='*Indent:*\x20%0',_0x5b4020={'type':'format','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x284d24=function(_0x5beb07){const _0x4254b7=_0x5beb07['getFirstRange']();let _0x359f3b=_0x4254b7['start']['nodeAfter'];for(;_0x359f3b&&_0x4254b7['containsItem'](_0x359f3b);){if(_0x359f3b['getAttribute']('listIndent')>0x0)return!0x1;_0x359f3b=_0x359f3b['nextSibling'];}return!0x0;}(_0x108d4f)?Mt(_0x3ec97f,'*Format:*\x20remove\x20from\x20%0',Mt(_0x3ec97f,function(_0x51d41d){return'ELEMENT_'+_0x51d41d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x108d4f))):Mt(_0x3ec97f,'*Outdent:*\x20%0',Mt(_0x3ec97f,'ELEMENT_LIST_ITEM')),_0x5b4020={'type':'format','content':_0x284d24};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5600c8['multipleBlocks']&&(_0x284d24='*Merge:*\x20%0',_0x5b4020={'type':'deletion','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_LIST_ITEM'))});}return _0x5b4020;});}};function qt(_0x2a5829){let _0x34f4f9=_0x2a5829['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34f4f9;){const _0x22120b=_0x34f4f9['getAttribute']('listItemId');if(!_0x22120b)return!0x1;if(_0x22120b==_0x2a5829['data']['newValue'])return'newValue';if(_0x22120b==_0x2a5829['data']['oldValue'])return'oldValue';_0x34f4f9=_0x34f4f9['previousSibling'];}return!0x1;}var Yt=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2ef3ce=this['editor']['config']['get']('list.properties'),_0x12a909=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ef3ce['styles']&&_0x12a909['enableDefaultAttributesIntegration']('listStyle'),_0x2ef3ce['reversed']&&_0x12a909['enableDefaultAttributesIntegration']('listReversed'),_0x2ef3ce['startIndex']&&_0x12a909['enableDefaultAttributesIntegration']('listStart');const _0x57662c={'type':'format','content':''};_0x12a909['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1627bc=this['editor']['locale'];_0x12a909['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x1627bc,'FORMAT_LIST_REVERSED')),_0x12a909['descriptionFactory']['registerDescriptionCallback'](_0xdf7b46=>{const {data:_0x3bfab4}=_0xdf7b46;if(_0x3bfab4&&'listReversed'==_0x3bfab4['key'])return null==_0x3bfab4['newValue']||0x0==_0x3bfab4['newValue']&&null==_0x3bfab4['oldValue']?_0x57662c:void 0x0;}),_0x12a909['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x1627bc,'FORMAT_LIST_START')),_0x12a909['descriptionFactory']['registerDescriptionCallback'](_0x18abcc=>{const {data:_0x2880ac}=_0x18abcc;if(_0x2880ac&&'listStart'==_0x2880ac['key'])return null==_0x2880ac['newValue']||0x1==_0x2880ac['newValue']&&null==_0x2880ac['oldValue']?_0x57662c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3fdab4=>{if(_0x3fdab4['batch']['isUndo'])return!0x1;let _0x3e2e57=!0x1;const _0xb0974=_0x12a909['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f19f6=>{const _0x2756e6=_0x12a909['_getAttributeKey'](_0x2f19f6);return'listStart'==_0x2756e6||'listReversed'==_0x2756e6;});for(const _0x32653f of _0xb0974){const _0x42d27d=_0x32653f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x42d27d&&'customNumbered'!=_0x42d27d&&(_0x12a909['_findSuggestions'](_0x32653f['getFirstRange'](),'attribute')['find'](_0x1d38c1=>'listType'==_0x12a909['_getAttributeKey'](_0x1d38c1['suggestion']))||(_0x3fdab4['removeMarker'](_0x32653f['getFirstMarker']()),_0x3e2e57=!0x0));}return _0x3e2e57;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3da531){const _0x228152=this['editor']['locale'],{data:_0x23db2f}=_0x3da531,_0x77076a={'type':'format','content':''};if(!_0x23db2f||'listStyle'!=_0x23db2f['key'])return;if(!_0x23db2f['oldValue'])return'default'==_0x23db2f['newValue']?_0x77076a:{'type':'format','content':''+Mt(_0x228152,'*Set\x20format:*\x20%0',Mt(_0x228152,this['_getTranslationKeyForListStyle'](_0x23db2f['newValue'])))};if(!_0x23db2f['newValue']){if('default'==_0x23db2f['oldValue'])return _0x77076a;let _0x2becf2=_0x3da531['head'];for(;_0x2becf2;){if(_0x2becf2['data']&&'listType'==_0x2becf2['data']['key']&&_0x2becf2['data']['newValue'])return _0x77076a;_0x2becf2=_0x2becf2['next'];}return{'type':'format','content':''+Mt(_0x228152,'*Remove\x20format:*\x20%0',Mt(_0x228152,this['_getTranslationKeyForListStyle'](_0x23db2f['oldValue'])))};}if('default'!=_0x23db2f['newValue'])return{'type':'format','content':''+Mt(_0x228152,'*Set\x20format:*\x20%0',Mt(_0x228152,this['_getTranslationKeyForListStyle'](_0x23db2f['newValue'])))};let _0x5d030e=_0x3da531['head'];for(;_0x5d030e;){if(_0x5d030e['data']&&'listType'==_0x5d030e['data']['key']&&_0x5d030e['data']['newValue']&&_0x5d030e['data']['oldValue'])return _0x77076a;_0x5d030e=_0x5d030e['next'];}return{'type':'format','content':Mt(_0x228152,'*Set\x20format:*\x20%0',Mt(_0x228152,'ELEMENT_'+_0x3da531['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x2787a7=this['editor'],_0x183202=_0x2787a7['locale'];_0x2787a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3de101=>{if('formatBlock'!=_0x3de101['type'])return;const {data:_0x5f5191}=_0x3de101;if(!_0x5f5191)return;let _0x5aa980,_0x46fb91;switch(_0x5f5191['commandName']){case'listStyle':_0x5aa980='*Change\x20to:*\x20%0',_0x46fb91={'type':'format','content':Mt(_0x183202,_0x5aa980,Mt(_0x183202,this['_getTranslationKeyForListStyle'](_0x5f5191['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5aa980=_0x5f5191['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46fb91={'type':'format','content':Mt(_0x183202,_0x5aa980)};break;case'listStart':_0x5aa980='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46fb91={'type':'format','content':Mt(_0x183202,_0x5aa980,_0x5f5191['commandParams'][0x0]['startIndex'])};}return _0x46fb91;});}_getTranslationKeyForListStyle(_0x42d6a4){return'ELEMENT_'+(_0x3b7882=_0x42d6a4,Qt['includes'](_0x3b7882)?'bulleted':Zt['includes'](_0x3b7882)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x42d6a4['toUpperCase']()['replace'](/-/g,'_');var _0x3b7882;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x42a28f{afterInit(){const _0x2abf15=this['editor'];_0x2abf15['commands']['get']('emoji')&&_0x2abf15['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x42a28f{static get requires(){return[Et];}init(){const _0x298814=this['editor'],_0x2f0d48=_0x298814['plugins']['get']('TrackChangesEditing'),_0x2a728e=_0x298814['commands']['get']('enter');_0x2f0d48['enableCommand']('enter',()=>{_0x298814['model']['change'](_0xcdd102=>{const _0x5d3a61=_0x298814['model']['document']['selection'],_0x107643=_0x5d3a61['getFirstPosition'](),_0x194e1d=rt['fromRange'](_0x5d3a61['getFirstRange']());if(_0x2a728e['enterBlock'](_0xcdd102)){const _0x594993=_0x298814['model']['createPositionAt'](_0x107643['parent']['nextSibling'],0x0),_0xbd0fed=_0xcdd102['createRange'](_0x107643,_0x594993);_0x2f0d48['markInsertion'](_0xbd0fed);}else _0xcdd102['setSelection'](_0xcdd102['createRange'](_0x194e1d['end']));_0x194e1d['detach'](),_0x2a728e['fire']('afterExecute',{'writer':_0xcdd102});});});}},ee=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3e826c=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e826c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3e826c['enableCommand']('findNext'),_0x3e826c['enableCommand']('findPrevious'),_0x3e826c['enableCommand']('replace'),_0x3e826c['enableCommand']('replaceAll');}['handleFindCommand'](_0x277d68,_0x18ab70,_0x1279a1={}){const _0x5e355d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x277d68(_0x591346=>{let _0x3b8ea7=('string'==typeof _0x18ab70?_0x5e355d['findByTextCallback'](_0x18ab70,_0x1279a1):_0x18ab70)(_0x591346);Array['isArray'](_0x3b8ea7)&&(_0x3b8ea7={'results':_0x3b8ea7,'searchText':'string'==typeof _0x18ab70?_0x18ab70:''});const _0x3b8086=_0x3b8ea7['results']['filter'](_0x5772bc=>!0x1===this['_isInDeletionRange'](_0x5772bc,_0x591346['item']));return{..._0x3b8ea7,'results':_0x3b8086};},_0x1279a1);}_isInDeletionRange(_0xf4f8df,_0x52d72f){const _0x423f55=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52d72f,_0xf4f8df['start']),this['editor']['model']['createPositionAt'](_0x52d72f,_0xf4f8df['end']));for(const _0x5369b5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x423f55['getIntersection'](_0x5369b5['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x42a28f{afterInit(){const _0x45027e=this['editor']['locale'],_0x36cb32=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5a6e7a,commandName:_0x1db2f9}of ne)this['editor']['plugins']['has'](_0x5a6e7a)&&_0x36cb32['enableDefaultAttributesIntegration'](_0x1db2f9);_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x45027e,'FORMAT_FONT_SIZE')),_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x45027e,'FORMAT_FONT_FAMILY')),_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x45027e,'FORMAT_FONT_COLOR')),_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x45027e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x320d6b=this['editor'],_0x55256e=_0x320d6b['locale'];_0x320d6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x210086=>{const _0xb2e909=_0x55256e['t'];if('formatInline'!=_0x210086['type'])return;const {data:_0x4b5211}=_0x210086;if(null!=_0x4b5211){if('fontSize'==_0x4b5211['commandName']){const _0x56dae3=_0x4b5211['commandParams'][0x0]['value'];if(_0x56dae3){const _0x4429db=_0xb2e909(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x185feb=>_0x185feb['model']==_0x56dae3)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20size:*\x20%0',_0x4429db)};}return{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4b5211['commandName']){const _0x10a748=_0x4b5211['commandParams'][0x0]['value'];return _0x10a748?{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20family:*\x20%0',_0x10a748)}:{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4b5211['commandName']){const _0x479f1f=_0x4b5211['commandParams'][0x0]['value'];if(_0x479f1f){const _0x1bca87=_0x2e67d6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x48d0b2=>_0x48d0b2['model']==_0x479f1f);let _0x81a2fb=_0x479f1f,_0x53a57b='';return _0x1bca87&&(_0x81a2fb=_0x1bca87['label'],_0x53a57b=_0xb2e909(_0x81a2fb)['toLowerCase']()),{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20color:*\x20%0',_0x53a57b)['trim'](),'color':{'value':_0x479f1f,'title':_0x53a57b||_0x81a2fb}};}return{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4b5211['commandName']){const _0x5d2fcd=_0x4b5211['commandParams'][0x0]['value'];if(_0x5d2fcd){const _0x1ed10f=_0x2e67d6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5f5e00=>_0x5f5e00['model']==_0x5d2fcd);let _0x54b1ab=_0x5d2fcd,_0x485c2c='';return _0x1ed10f&&(_0x54b1ab=_0x1ed10f['label'],_0x485c2c=_0xb2e909(_0x54b1ab)['toLowerCase']()),{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20background\x20color:*\x20%0',_0x485c2c)['trim'](),'color':{'value':_0x5d2fcd,'title':_0x485c2c||_0x54b1ab}};}return{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x42a28f{afterInit(){const {plugins:_0x289b05}=this['editor'];_0x289b05['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x289b05['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x53cd41,plugins:_0xc68044,commands:_0x1d1a69}=this['editor'],_0x4ffda0=_0xc68044['get']('TrackChangesEditing');_0x1d1a69['get']('footnotesStyle')&&_0x4ffda0['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1d1a69['get']('footnotesStart')&&_0x4ffda0['enableDefaultAttributesIntegration']('footnotesStart'),_0x4ffda0['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x53cd41,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4ffda0['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x53cd41,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x2842f3=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x149ef7,commands:_0x334b1a}=this['editor'];_0x334b1a['get']('insertFootnote')&&_0x2842f3['enableCommand']('insertFootnote'),_0x2842f3['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4dc8bd=>Mt(_0x149ef7,'ELEMENT_FOOTNOTE_REF',_0x4dc8bd)),_0x2842f3['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x441f83=>Mt(_0x149ef7,'ELEMENT_FOOTNOTE_DEFINITION',_0x441f83)),_0x2842f3['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2efbd3=>Mt(_0x149ef7,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2efbd3));}},re=class extends _0x42a28f{afterInit(){const _0x38e9a0=this['editor'],_0x53948=_0x38e9a0['plugins']['get']('TrackChangesEditing'),_0xdea673=_0x38e9a0['commands']['get']('copyFormat'),_0x5f0241=_0x38e9a0['commands']['get']('pasteFormat');_0xdea673&&_0x5f0241&&(_0x53948['enableDefaultAttributesIntegration']('pasteFormat'),_0x53948['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x21bf5e=this['editor'],_0x20279d=_0x21bf5e['locale'];_0x21bf5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f287=>{if('formatBlock'!=_0x59f287['type']&&'formatInline'!=_0x59f287['type'])return;const {data:_0x4c86ac}=_0x59f287;if(_0x4c86ac&&'pasteFormat'===_0x4c86ac['commandName']){const _0x4315c1=[],_0xc73e00=_0x4c86ac['commandParams'][0x0];for(const [_0x1e55ef,_0x4fc7c8]of Object['entries'](_0xc73e00))_0x4315c1['push'](oe(_0x21bf5e,_0x1e55ef,_0x4fc7c8));return _0x4315c1['length']?{'type':'format','content':Mt(_0x20279d,'*Set\x20format\x20to:*\x20%0',_0x4315c1['join'](',\x20'))}:{'type':'format','content':Mt(_0x20279d,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x327e1a,_0x4dbba8,_0x443c38){const _0x552624=_0x327e1a['locale']['t'],_0x565839=_0x4dbba8['split'](/(?=[A-Z])/)['join']('\x20'),_0x1faba4=_0x552624(_0x565839['charAt'](0x0)['toUpperCase']()+_0x565839['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x443c38)return _0x1faba4;if('fontColor'===_0x4dbba8||'fontBackgroundColor'===_0x4dbba8){const _0x4b9c4d=_0x2e67d6(_0x327e1a['config']['get']('fontColor.colors'))['find'](_0x1984f1=>_0x1984f1['model']==_0x443c38);return _0x1faba4+'\x20('+(_0x4b9c4d?_0x552624(_0x4b9c4d['label'])['toLowerCase']():_0x443c38)+')';}if('fontSize'===_0x4dbba8&&isNaN(parseFloat(_0x443c38))){const _0x2d7dce=_0x327e1a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x327e1a['config']['get']('fontSize.options'))['find'](_0x49bd46=>_0x49bd46['model']==_0x443c38);return _0x1faba4+'\x20('+(_0x2d7dce?_0x552624(_0x2d7dce['title'])['toLowerCase']():_0x443c38)+')';}return _0x1faba4+'\x20('+_0x443c38+')';}var ae=class extends _0x42a28f{afterInit(){const _0x381a84=this['editor'];if(!_0x381a84['plugins']['has']('GeneralHtmlSupport')||!_0x381a84['plugins']['has']('DataSchema'))return;const _0xf8da02=_0x381a84['plugins']['get']('TrackChangesEditing'),_0x2c7611=_0x381a84['plugins']['get']('GeneralHtmlSupport'),_0x18e79d=_0x381a84['plugins']['get']('DataSchema'),_0x461b7b=_0x381a84['locale'],_0x16047f=new Set(['htmlContent']);for(const _0x2f78a2 of _0x18e79d['getDefinitionsForView'](/.*/,!0x1)){const _0x21a78d=_0x2f78a2['view'],_0x7d8af9=_0x2c7611['getGhsAttributeNameForElement'](_0x21a78d);_0x16047f['add'](_0x7d8af9),!_0x2f78a2['isInline']||_0x2f78a2['isObject']||'appliesToBlock'in _0x2f78a2&&_0x2f78a2['appliesToBlock']||_0xf8da02['descriptionFactory']['registerAttributeLabel'](_0x7d8af9,_0x21a78d),_0x2f78a2['model']['startsWith']('html')&&_0xf8da02['descriptionFactory']['registerElementLabel'](_0x2f78a2['model'],_0x332c65=>Mt(_0x461b7b,'ELEMENT_HTML_TAG',[_0x332c65,_0x21a78d]));}_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x461b7b,'FORMAT_RAW_HTML_CONTENT')),_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x461b7b,'FORMAT_HTML_LIST_ITEM')),_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x461b7b,'FORMAT_HTML_BULLETED_LIST')),_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x461b7b,'FORMAT_HTML_NUMBERED_LIST')),_0xf8da02['descriptionFactory']['registerDescriptionCallback'](_0x2cc57a=>{if('attribute'!==_0x2cc57a['type'])return;const _0x4769f8=_0x2cc57a['data'];if(!_0x4769f8||!_0x16047f['has'](_0x4769f8['key']))return;if('htmlContent'===_0x4769f8['key'])return{'type':'format','content':Mt(_0x461b7b,'*Change\x20%0\x20content*',Mt(_0x461b7b,'ELEMENT_RAW_HTML'))};const {setItems:_0x4a82ad,removeItems:_0x592abd}=function(_0x4cfb8d,_0x55a4a6,_0x15085c){const _0x4b7ab5=[],_0x79cb8=[],_0x260323=_0x4cfb8d['styles']??{},_0x5b69cd=_0x55a4a6['styles']??{};for(const _0xb223f2 of new Set([...Object['keys'](_0x260323),...Object['keys'](_0x5b69cd)]))_0x260323[_0xb223f2]!==_0x5b69cd[_0xb223f2]&&(void 0x0===_0x5b69cd[_0xb223f2]?_0x79cb8['push'](_0xb223f2):_0x4b7ab5['push'](_0xb223f2+'\x20('+_0x5b69cd[_0xb223f2]+')'));const _0x37b942=Mt(_0x15085c,'FORMAT_HTML_CLASS'),_0xf1caf1=new Set(_0x4cfb8d['classes']??[]),_0x1bd692=new Set(_0x55a4a6['classes']??[]),_0x503a39=[..._0x1bd692]['some'](_0x44f8a9=>!_0xf1caf1['has'](_0x44f8a9)),_0xbd07ba=[..._0xf1caf1]['some'](_0x1a9b60=>!_0x1bd692['has'](_0x1a9b60));_0x503a39&&_0x4b7ab5['push'](_0x37b942),_0xbd07ba&&_0x79cb8['push'](_0x37b942);const _0x51525d=Mt(_0x15085c,'FORMAT_HTML_ATTRIBUTE'),_0x480b42=_0x4cfb8d['attributes']??{},_0x8bcfe8=_0x55a4a6['attributes']??{};let _0x63061b=!0x1,_0x2ed863=!0x1;for(const _0x140891 of new Set([...Object['keys'](_0x480b42),...Object['keys'](_0x8bcfe8)]))_0x480b42[_0x140891]!==_0x8bcfe8[_0x140891]&&(void 0x0===_0x8bcfe8[_0x140891]?_0x2ed863=!0x0:_0x63061b=!0x0);return _0x63061b&&_0x4b7ab5['push'](_0x51525d),_0x2ed863&&_0x79cb8['push'](_0x51525d),{'setItems':_0x4b7ab5,'removeItems':_0x79cb8};}(_0x4769f8['oldValue']??{},_0x4769f8['newValue']??{},_0x461b7b);if(!_0x4a82ad['length']&&!_0x592abd['length'])return;const _0x149f18=[];return _0x4a82ad['length']&&_0x149f18['push'](Mt(_0x461b7b,'*Set\x20format:*\x20%0',_0x4a82ad['join'](',\x20'))),_0x592abd['length']&&_0x149f18['push'](Mt(_0x461b7b,'*Remove\x20format:*\x20%0',_0x592abd['join'](',\x20'))),{'type':'format','content':_0x149f18['join']('\x0a')};});}},ce=class extends _0x42a28f{_headingOptions;afterInit(){const _0x445873=this['editor'];if(!_0x445873['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x445873['config']['get']('heading.options');const _0x5add1d=_0x445873['locale'],_0x4a2676=_0x445873['plugins']['get']('TrackChangesEditing');_0x4a2676['enableDefaultAttributesIntegration']('heading');for(const _0x509f11 of this['_headingOptions'])'paragraph'!=_0x509f11['model']&&_0x4a2676['descriptionFactory']['registerElementLabel'](_0x509f11['model'],_0x24d7d8=>{const _0x2411fc=this['_getHeadingLevel'](_0x509f11['model']);return null!==_0x2411fc?_0x83a635(_0x24d7d8,_0x2411fc):_0xa067f7(_0x24d7d8,_0x509f11['title']);});function _0x83a635(_0x446e13,_0x396535){return Mt(_0x5add1d,'ELEMENT_HEADING',[_0x446e13,_0x396535]);}function _0xa067f7(_0x410a61,_0x845500){return Mt(_0x5add1d,'ELEMENT_HEADING_CUSTOM',[_0x410a61,_0x845500]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x27a779=this['editor'],_0x3b76b2=_0x27a779['locale'];function _0x27b121(_0x58d6d3,_0x5db92b){return Mt(_0x3b76b2,'ELEMENT_HEADING_CUSTOM',[_0x58d6d3,_0x5db92b]);}_0x27a779['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x496d3a=>{if('formatBlock'!=_0x496d3a['type'])return;const {data:_0x452265}=_0x496d3a;if(_0x452265&&'heading'==_0x452265['commandName']){const _0x21c5b0=_0x452265['commandParams'][0x0]['value'],_0x53de80=this['_getHeadingLevel'](_0x21c5b0);if(null!==_0x53de80)return{'type':'format','content':Mt(_0x3b76b2,'*Change\x20to:*\x20%0',(_0x43f2c2=0x1,_0x2f0124=_0x53de80,Mt(_0x3b76b2,'ELEMENT_HEADING',[_0x43f2c2,_0x2f0124])))};const _0x1f16c0=this['_headingOptions']['find'](_0x9fdbc4=>_0x9fdbc4['model']===_0x21c5b0)['title'];return{'type':'format','content':Mt(_0x3b76b2,'*Change\x20to:*\x20%0',_0x27b121(0x1,_0x1f16c0))};}var _0x43f2c2,_0x2f0124;});}_getHeadingLevel(_0x588bb2){const _0x291ac8=_0x588bb2['match'](/^heading(\d+)/);if(_0x291ac8)return _0x291ac8[0x1];const _0x4378a8=this['_headingOptions']?.['find'](_0x3008bd=>_0x3008bd['model']==_0x588bb2);if(_0x4378a8&&_0x4378a8['view']){const _0x4b21e6=_0x4378a8['view'],_0x2479e9=(_0x4b21e6['name']??_0x4b21e6)['match'](/^h(\d+)/);if(_0x2479e9)return _0x2479e9[0x1];}return null;}},le=class extends _0x42a28f{afterInit(){const _0x1f5ae2=this['editor'];if(!_0x1f5ae2['plugins']['has']('HighlightEditing'))return;const _0x4a3fd4=_0x1f5ae2['plugins']['get']('TrackChangesEditing'),_0x3f312b=_0x1f5ae2['locale'];_0x4a3fd4['enableDefaultAttributesIntegration']('highlight'),_0x4a3fd4['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x3f312b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2e1f2a=this['editor'],_0x20caef=_0x2e1f2a['locale'];_0x2e1f2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ccb63=>{if('formatInline'!=_0x2ccb63['type'])return;const {data:_0x50cf5d}=_0x2ccb63;if(_0x50cf5d&&'highlight'==_0x50cf5d['commandName']){const _0x3d190a=_0x20caef['t'],_0x45235b=_0x50cf5d['commandParams'][0x0]['value'];if(_0x45235b){const _0x304eec=_0x2e1f2a['config']['get']('highlight.options')['find'](_0x2fde01=>_0x2fde01['model']==_0x45235b),_0x16edc4=_0x3d190a(_0x304eec['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x20caef,'*Set\x20highlight:*\x20%0',_0x16edc4),'color':{'value':_0x304eec['color'],'title':_0x304eec['title']}};}return{'type':'format','content':Mt(_0x20caef,'*Remove\x20highlight*',Mt(_0x20caef,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x42a28f{afterInit(){const _0x2a53b1=this['editor'];if(!_0x2a53b1['plugins']['has']('HorizontalLineEditing'))return;_0x2a53b1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5166a2=_0x2a53b1['plugins']['get']('TrackChangesEditing'),_0x2e9f65=_0x2a53b1['locale'];_0x5166a2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5374e7=>Mt(_0x2e9f65,'ELEMENT_HORIZONTAL_LINE',_0x5374e7));}},de=class extends _0x42a28f{afterInit(){const _0x255e34=this['editor'];if(!_0x255e34['plugins']['has']('HtmlEmbed'))return;const _0x5d63a4=_0x255e34['plugins']['get']('TrackChangesEditing'),_0x1e761d=_0x255e34['locale'];_0x5d63a4['descriptionFactory']['registerElementLabel']('rawHtml',_0x424fc5=>Mt(_0x1e761d,'ELEMENT_HTML_EMBED',_0x424fc5)),_0x5d63a4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d63a4['descriptionFactory']['registerDescriptionCallback'](_0x3e8038=>{if('attribute'!=_0x3e8038['type'])return;const {data:_0x134091}=_0x3e8038;if(_0x134091&&'value'==_0x134091['key']&&_0x3e8038['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56b076=Mt(_0x1e761d,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x1e761d,'*Change\x20%0\x20content*',_0x56b076)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3021c3=this['editor'],_0x4d037d=_0x3021c3['locale'];_0x3021c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b945c=>{if('formatBlock'!=_0x3b945c['type'])return;const {data:_0x10f420}=_0x3b945c;if(_0x10f420&&'htmlEmbed'==_0x10f420['commandName']){const _0x3e5d2e=Mt(_0x4d037d,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x4d037d,'*Change\x20%0\x20content*',_0x3e5d2e)};}});}},he=class extends _0x42a28f{afterInit(){const _0x42c5a0=this['editor'];if(!_0x42c5a0['plugins']['has']('ImageEditing'))return;const _0x4ad6ce=_0x42c5a0['plugins']['get']('TrackChangesEditing'),_0xf29aa3=_0x42c5a0['plugins']['get']('ImageUtils'),_0x5df051=_0x42c5a0['locale'];_0x4ad6ce['enableCommand']('insertImage'),_0x4ad6ce['descriptionFactory']['registerElementLabel']('imageBlock',_0x105e43=>Mt(_0x5df051,'ELEMENT_IMAGE',_0x105e43)),_0x4ad6ce['descriptionFactory']['registerElementLabel']('imageInline',_0x4954d2=>Mt(_0x5df051,'ELEMENT_INLINE_IMAGE',_0x4954d2)),_0x4ad6ce['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x5df051,'ELEMENT_CAPTION')),_0x42c5a0['plugins']['has']('ImageUploadEditing')&&_0x4ad6ce['enableCommand']('uploadImage'),_0x42c5a0['plugins']['has']('ImageBlockEditing')&&_0x42c5a0['plugins']['has']('ImageInlineEditing')&&(_0x4ad6ce['enableCommand']('imageTypeInline',(_0x5db709,_0x1dafce)=>{const _0x24aef1=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']);_0x42c5a0['model']['change'](()=>{_0x4ad6ce['markBlockFormat'](_0x24aef1,{'commandName':'imageTypeInline','commandParams':[_0x1dafce]},[],'convertBlockImageToInline');});}),_0x4ad6ce['enableCommand']('imageTypeBlock',(_0x8114e7,_0x4689f7)=>{_0x42c5a0['model']['change'](_0x5146ea=>{let _0x5b8b2f=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x493ac8=_0x5146ea['createRangeOn'](_0x5b8b2f);const _0x585ee5=st['fromPosition'](_0x493ac8['start'],'toPrevious'),_0xaabfa=st['fromPosition'](_0x493ac8['end'],'toNext');_0x4ad6ce['forceDefaultExecution'](()=>_0x8114e7(_0x4689f7)),_0x5b8b2f=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x493ac8=_0x5146ea['createRangeOn'](_0x5b8b2f);const _0x562890=_0x5146ea['createRange'](_0x585ee5,_0xaabfa);_0x585ee5['detach'](),_0xaabfa['detach'](),_0x4ad6ce['markBlockFormat'](_0x5b8b2f,{'commandName':'imageTypeInline','commandParams':[_0x4689f7]},[],'convertInlineImageToBlock'),_0x562890['start']['isBefore'](_0x493ac8['start'])&&_0x4ad6ce['markInsertion'](_0x5146ea['createRange'](_0x562890['start'],_0x493ac8['start']),'convertInlineImageToBlock'),_0x493ac8['end']['isBefore'](_0x562890['end'])&&_0x4ad6ce['markInsertion'](_0x5146ea['createRange'](_0x493ac8['end'],_0x562890['end']),'convertInlineImageToBlock');});}),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4ad6ce['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2a25e8])=>{const _0x3f7287=_0x4ad6ce['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x593ab0=_0x2a25e8['start'],_0x20fc4a=_0x2a25e8['end'];const _0x2f26f3=_0x42c5a0['model']['schema']['getNearestSelectionRange'](_0x593ab0,'backward'),_0x532fb5=_0x42c5a0['model']['schema']['getNearestSelectionRange'](_0x20fc4a,'forward');_0x2f26f3['isCollapsed']&&(_0x593ab0=_0x2f26f3['start']),_0x532fb5['isCollapsed']&&(_0x20fc4a=_0x532fb5['end']),_0x3f7287([_0x42c5a0['model']['createRange'](_0x593ab0,_0x20fc4a)]);}),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x149ca0),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x149ca0)),_0x42c5a0['plugins']['has']('ImageCaptionEditing')&&(_0x4ad6ce['enableCommand']('toggleImageCaption',(_0x41908b,_0x5cc27c)=>{const _0x8b68a5=_0x42c5a0['plugins']['get']('ImageCaptionUtils');let _0x2c7575=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x160f09=_0x8b68a5['getCaptionFromImageModelElement'](_0x2c7575);_0x42c5a0['model']['change'](()=>{if(_0x160f09)return void _0x4ad6ce['markDeletion'](_0x42c5a0['model']['createRangeOn'](_0x160f09));const _0x7ca9c3=_0xf29aa3['isBlockImage'](_0x2c7575);_0x41908b(_0x5cc27c),_0x2c7575=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x160f09=_0x8b68a5['getCaptionFromImageModelElement'](_0x2c7575),_0x4ad6ce['markInsertion'](_0x42c5a0['model']['createRangeOn'](_0x160f09),_0x7ca9c3?null:'imageCaption');});}),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x149ca0));const _0x2ab2fa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x416f98(_0x293edc,_0x4f4296){const _0x177709=_0x2ab2fa['findIndex'](({type:_0x142d4f,subType:_0x46ed58})=>_0x293edc['type']==_0x142d4f&&_0x293edc['subType']==_0x46ed58),_0x4d9610=_0x2ab2fa['findIndex'](({type:_0x52a19a,subType:_0x589b20})=>_0x4f4296['type']==_0x52a19a&&_0x4f4296['subType']==_0x589b20);if(_0x177709<0x0||_0x4d9610<0x0)return!0x1;const _0x387cad=_0x293edc['getFirstRange'](),_0x388fb2=_0x4f4296['getFirstRange']();if((0x0==_0x177709||0x1==_0x177709)&&0x2==_0x4d9610&&_0x387cad['isIntersecting'](_0x388fb2))return!0x0;if(0x2==_0x177709&&0x3==_0x4d9610){const _0xcda4e4=_0x4ad6ce['_findSuggestions'](_0x387cad,'insertion')['filter'](({suggestion:_0x2cd7c7,meta:_0x1f5655})=>_0x1f5655['isOwn']&&'convertInlineImageToBlock'==_0x2cd7c7['subType']);if(_0xcda4e4['length']>0x1&&_0x388fb2['end']['isEqual'](_0x387cad['start']))return!0x0;if(0x1==_0xcda4e4['length']&&(_0x387cad['start']['isEqual'](_0x388fb2['end'])||_0x387cad['end']['isEqual'](_0x388fb2['start'])))return!0x0;}if(0x3==_0x177709&&0x3==_0x4d9610&&_0x387cad['start']['isBefore'](_0x388fb2['start'])){const _0x3642d5=_0x387cad['end']['nodeAfter'],_0xc3b2e8=_0x388fb2['start']['nodeBefore'];return _0xf29aa3['isBlockImage'](_0x3642d5)&&_0x3642d5===_0xc3b2e8;}return!0x1;}function _0x149ca0(_0x3ace97,_0x217d9e){return _0x416f98(_0x3ace97,_0x217d9e)?[_0x3ace97,_0x217d9e]:_0x416f98(_0x217d9e,_0x3ace97)?[_0x217d9e,_0x3ace97]:null;}_0x42c5a0['plugins']['has']('ImageResize')&&(_0x4ad6ce['enableDefaultAttributesIntegration']('resizeImage'),_0x4ad6ce['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x5df051,'FORMAT_IMAGE_SIZE'))),_0x42c5a0['plugins']['has']('ImageTextAlternativeEditing')&&_0x4ad6ce['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x42c5a0['plugins']['has']('PictureEditing')&&_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x3c6a3f=>{if('attribute'!=_0x3c6a3f['type'])return;const {data:_0x484dc1}=_0x3c6a3f;return _0x484dc1&&'sources'==_0x484dc1['key']?{'type':'format','content':''}:void 0x0;}),_0x42c5a0['plugins']['has']('ImageSizeAttributes')&&_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x56333e=>{if('attribute'!=_0x56333e['type'])return;const {data:_0x3060d4}=_0x56333e;return!_0x3060d4||'width'!=_0x3060d4['key']&&'height'!=_0x3060d4['key']?void 0x0:{'type':'format','content':''};}),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x338220=>{if(_0x2ab2fa['find'](({type:_0x2305a4,subType:_0x2f8ef6})=>_0x338220['type']==_0x2305a4&&_0x338220['subType']==_0x2f8ef6))return _0x338220['previous']?{}:void 0x0;}),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x4adf6c=>{if('insertion'==_0x4adf6c['type']||'deletion'==_0x4adf6c['type']){const _0x3c35c6=_0x4adf6c['getContainedElement']();if(_0x3c35c6&&_0x3c35c6['is']('element','caption'))return{'type':'insertion'==_0x4adf6c['type']?'addObject':'removeObject','element':_0x3c35c6,'quantity':0x1};}}),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x120748=>'formatBlock'==_0x120748['type']&&'convertInlineImageToBlock'==_0x120748['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x120748['type']&&'convertBlockImageToInline'==_0x120748['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x45d666=>{if('attribute'!=_0x45d666['type'])return;const {data:_0x5b3018}=_0x45d666;if(!_0x5b3018||'alt'!=_0x5b3018['key'])return;const _0x3c47a6=_0x5b3018['newValue'];return _0x3c47a6?{'type':'format','content':Mt(_0x5df051,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3c47a6+'\x22')}:{'type':'format','content':Mt(_0x5df051,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x11ea04=this['editor'],_0x2300ed=_0x11ea04['locale'];_0x11ea04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17dfe1=>{if('formatBlock'!=_0x17dfe1['type']&&'formatInline'!=_0x17dfe1['type'])return;const {data:_0x41b015}=_0x17dfe1;if(_0x41b015){if('imageTextAlternative'==_0x41b015['commandName']){const _0x4a716b=_0x41b015['commandParams'][0x0]['newValue'];return _0x4a716b?{'type':'format','content':Mt(_0x2300ed,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a716b+'\x22')}:{'type':'format','content':Mt(_0x2300ed,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41b015['commandName']){const _0x87e5e5=_0x41b015['commandParams'][0x0]['width'];return _0x87e5e5?{'type':'format','content':Mt(_0x2300ed,'*Set\x20image\x20width:*\x20%0',_0x87e5e5)}:{'type':'format','content':Mt(_0x2300ed,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x202a6c=this['editor']['locale'],_0x550426=this['editor']['plugins']['get']('TrackChangesEditing');_0x550426['enableDefaultAttributesIntegration']('replaceImageSource'),_0x550426['descriptionFactory']['registerDescriptionCallback'](_0x523079=>{if('attribute'!=_0x523079['type'])return;const {data:_0x3418df}=_0x523079;return _0x3418df&&'src'==_0x3418df['key']?_0x3418df['newValue']&&_0x3418df['oldValue']?{'type':'format','content':Mt(_0x202a6c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3ec819=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ec819['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3ec819['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ec819['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3ec819['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4d3897=this['editor'],_0x58145c=_0x4d3897['locale'];_0x4d3897['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17da70=>{if('formatBlock'!=_0x17da70['type']&&'formatInline'!=_0x17da70['type'])return;const {data:_0x1a9312}=_0x17da70;return _0x1a9312&&'replaceImageSource'==_0x1a9312['commandName']?{'type':'format','content':Mt(_0x58145c,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x42a28f{afterInit(){const _0x6aab46=this['editor'];if(!_0x6aab46['plugins']['has']('ImageStyleEditing'))return;const _0x4dc94e=_0x6aab46['plugins']['get']('TrackChangesEditing'),_0x962319=_0x6aab46['plugins']['get']('ImageUtils'),_0x1c24a7={};_0x4dc94e['enableCommand']('imageStyle',(_0x4dd477,_0x158d81)=>{const _0x1dc809=_0x6aab46['plugins']['get']('Users')['me'],_0x34a8bc=_0x6aab46['commands']['get']('imageStyle');let _0x192fb6=_0x962319['getClosestSelectedImageElement'](_0x6aab46['model']['document']['selection']),_0x1ece1a=_0x6aab46['model']['createRangeOn'](_0x192fb6),_0x52df9b=_0x34a8bc['value'];if(_0x52df9b==_0x158d81['value'])return;if(_0x158d81['value']&&_0x962319['isInlineImage'](_0x192fb6)&&!_0x34a8bc['isStyleEnabled'](_0x158d81['value']))return;const _0x5e96f8={'commandName':'imageStyle','commandParams':[_0x158d81],'formatGroupId':_0x5b5c0d()};_0x6aab46['model']['change'](()=>{if(_0x4dc94e['getSuggestions']()['filter'](_0x4fba5c=>_0x4fba5c['isInContent']&&_0x1dc809==_0x4fba5c['author']&&('formatBlock'==_0x4fba5c['type']||'formatInline'==_0x4fba5c['type'])&&('imageStylePreApply'==_0x4fba5c['subType']||'imageStylePostApply'==_0x4fba5c['subType'])&&_0x4fba5c['getFirstRange']()['isEqual'](_0x1ece1a))['forEach'](_0x1628ca=>_0x4dc94e['discardSuggestion'](_0x1628ca['head'])),_0x192fb6=_0x962319['getClosestSelectedImageElement'](_0x6aab46['model']['document']['selection']),_0x1ece1a=_0x6aab46['model']['createRangeOn'](_0x192fb6),_0x34a8bc['refresh'](),_0x6aab46['commands']['get']('imageTypeInline')['refresh'](),_0x6aab46['commands']['get']('imageTypeBlock')['refresh'](),_0x52df9b=_0x34a8bc['value'],_0x52df9b!=_0x158d81['value'])return _0x962319['isInlineImage'](_0x192fb6)&&_0x34a8bc['shouldConvertImageType'](_0x158d81['value'],_0x192fb6)?(_0x4dd477({..._0x158d81,'setImageSizes':!0x1}),_0x192fb6=_0x962319['getClosestSelectedImageElement'](_0x6aab46['model']['document']['selection']),void _0x4dc94e['markBlockFormat'](_0x192fb6,{..._0x5e96f8,'commandReversedParams':[{'value':_0x52df9b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x962319['isBlockImage'](_0x192fb6)?_0x4dc94e['markBlockFormat'](_0x192fb6,_0x5e96f8,[],'imageStylePostApply'):_0x4dc94e['markInlineFormat'](_0x1ece1a,_0x5e96f8,'imageStylePostApply'));});});for(const _0xc4f6c1 of _0x6aab46['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1c24a7[_0xc4f6c1['name']]=_0xc4f6c1['title']['toLowerCase']();_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2087f8])=>{_0x962319['setImageNaturalSizeAttributes'](_0x2087f8['getContainedElement']());}),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x178f8a,_0x3e5c0b)=>{_0x4dc94e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x178f8a,{'commandName':_0x3e5c0b['commandName'],'commandParams':_0x3e5c0b['commandReversedParams']});}),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x52caff,_0x193287){return _0x4fa0de(_0x52caff,_0x193287)?[_0x52caff,_0x193287]:_0x4fa0de(_0x193287,_0x52caff)?[_0x193287,_0x52caff]:null;});const _0x4c93e0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4fa0de(_0x197a7d,_0x520683){const _0x213e10=_0x4c93e0['findIndex'](({type:_0x2bd2aa,subType:_0x54aa4f})=>_0x197a7d['type']==_0x2bd2aa&&_0x197a7d['subType']==_0x54aa4f),_0x274224=_0x4c93e0['findIndex'](({type:_0x4b0163,subType:_0x405f36})=>_0x520683['type']==_0x4b0163&&_0x520683['subType']==_0x405f36);if(_0x213e10<0x0||_0x274224<0x0)return!0x1;const _0x30e49e=_0x197a7d['getFirstRange'](),_0x49a3b0=_0x520683['getFirstRange']();if((0x0==_0x213e10||0x1==_0x213e10)&&0x2==_0x274224&&_0x30e49e['isIntersecting'](_0x49a3b0))return!0x0;if(0x2==_0x213e10&&0x3==_0x274224){const _0x501c40=_0x4dc94e['_findSuggestions'](_0x30e49e,'insertion')['filter'](({suggestion:_0x4f31a2,meta:_0xd1d99e})=>_0xd1d99e['isOwn']&&'convertInlineImageToBlock'==_0x4f31a2['subType']);if(_0x501c40['length']>0x1&&_0x49a3b0['end']['isEqual'](_0x30e49e['start']))return!0x0;if(0x1==_0x501c40['length']&&(_0x30e49e['start']['isEqual'](_0x49a3b0['end'])||_0x30e49e['end']['isEqual'](_0x49a3b0['start'])))return!0x0;}if(0x3==_0x213e10&&0x3==_0x274224&&_0x30e49e['start']['isBefore'](_0x49a3b0['start'])){const _0x234f5c=_0x30e49e['end']['nodeAfter'],_0x1dd2e1=_0x49a3b0['start']['nodeBefore'];return _0x962319['isBlockImage'](_0x234f5c)&&_0x234f5c===_0x1dd2e1;}return!0x1;}_0x6aab46['model']['document']['registerPostFixer'](()=>{let _0x40434d=!0x1;const _0x169bde=Array['from'](_0x6aab46['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5539db,data:_0x32300f}of _0x169bde){const {group:_0x38cc14,type:_0x52eca1,subType:_0x53724b,id:_0x431877}=tt(_0x5539db);if('suggestion'==_0x38cc14&&_0x4dc94e['hasSuggestion'](_0x431877)){if('formatBlock'==_0x52eca1&&('imageStylePreApply'==_0x53724b||'imageStylePostApply'==_0x53724b)){const _0x387783=_0x4dc94e['getSuggestion'](_0x431877);if(_0x32300f['newRange']){const _0x888a18=_0x387783['getFirstRange']()['getContainedElement']();if(_0x962319['isBlockImage'](_0x888a18))continue;_0x4dc94e['discardSuggestion'](_0x387783),_0x40434d=!0x0;}}if('insertion'==_0x52eca1&&'imageCaption'==_0x53724b&&!_0x32300f['newRange']){const _0x111f5c=_0x4dc94e['getSuggestion'](_0x431877);_0x111f5c['next']&&_0x111f5c['next']['isInContent']&&(_0x4dc94e['discardSuggestion'](_0x111f5c['next']),_0x40434d=!0x0);}}}return _0x40434d;}),this['_registerLegacyDescription'](_0x1c24a7);}_registerLegacyDescription(_0x49d1e6){const _0x1beef7=this['editor'],_0x5a1e20=_0x1beef7['locale'];_0x1beef7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x271ab8=>{if('formatBlock'!=_0x271ab8['type']&&'formatInline'!=_0x271ab8['type'])return;const {data:_0x5c1400}=_0x271ab8;if(!_0x5c1400||'imageStyle'!=_0x5c1400['commandName'])return;const _0x1c440f=_0x5c1400['commandParams'][0x0]['value'];return _0x24f786('side'===_0x1c440f?Mt(_0x5a1e20,'FORMAT_SIDE_IMAGE'):_0x49d1e6[_0x1c440f]||_0x1c440f);function _0x24f786(_0x2573c1){return{'type':'format','content':Mt(_0x5a1e20,'*Format:*\x20%0',_0x2573c1)};}});}},me=class extends _0x42a28f{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x3dcf76){super(_0x3dcf76),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x4c8988=this['editor'],_0x198ad1=_0x4c8988['commands']['get']('importWord'),_0x44cb32=_0x4c8988['commands']['get']('trackChanges');_0x198ad1&&(_0x198ad1['on']('execute',(_0x519807,[,_0x34b34c])=>{this['_trackChangesValueDuringImport']=_0x44cb32['value'],_0x34b34c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x198ad1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x198ad1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x44cb32['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4c8988['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0xd48205,_0x197366){const {suggestions:_0x5f45b5}=_0x197366,_0x5cc3cf=this['editor']['commands']['get']('trackChanges'),_0xc34bd=_0x5cc3cf['value'];this['_trackChangesValueDuringImport']!==_0xc34bd&&(_0x5cc3cf['execute'](),this['_trackChangesExecuted']=!0x0),_0x5f45b5&&_0x5f45b5['forEach'](({id:_0x45915a,type:_0x44e245,author:_0x2509df,created_at:_0x4006e8})=>{const _0x26ff62={'id':_0x45915a,'type':_0x44e245,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2509df,'createdAt':_0x4006e8?new Date(_0x4006e8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x26ff62);});}},Ee=class extends _0x42a28f{afterInit(){const _0x44ed11=this['editor'],_0x304366=_0x44ed11['plugins']['get']('TrackChangesEditing');if(_0x44ed11['plugins']['has']('IndentEditing')&&(_0x304366['enableCommand']('indent'),_0x304366['enableCommand']('outdent')),_0x44ed11['plugins']['has']('IndentBlock')){for(const _0x3415dd of['indentBlock','outdentBlock'])_0x304366['enableDefaultAttributesIntegration'](_0x3415dd);if(_0x44ed11['plugins']['has']('ListEditing')){for(const _0x4fe5c0 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x304366['enableDefaultAttributesIntegration'](_0x4fe5c0);}}const _0x264877=_0x44ed11['locale'];_0x304366['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x264877,'FORMAT_INDENT')),_0x304366['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x264877,'FORMAT_INDENT')),_0x304366['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x264877,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x29b3ef=this['editor'],_0x23d95b=_0x29b3ef['locale'],_0x4fd642=_0x29b3ef['plugins']['get']('TrackChangesEditing');_0x4fd642['descriptionFactory']['registerDescriptionCallback'](_0x1dc857=>{if('formatBlock'!=_0x1dc857['type'])return;const {data:_0x2ae70b}=_0x1dc857;if(!_0x2ae70b)return;if('indentBlock'!=_0x2ae70b['commandName']&&'outdentBlock'!=_0x2ae70b['commandName'])return;const _0x295acc=_0x1dc857['getItems']()[0x0],_0x2b9a9f=_0x4fd642['descriptionFactory']['getItemLabel'](_0x295acc);return'indentBlock'==_0x2ae70b['commandName']?{'type':'format','content':Mt(_0x23d95b,'*Indent:*\x20%0',_0x2b9a9f)}:'outdentBlock'==_0x2ae70b['commandName']?{'type':'format','content':Mt(_0x23d95b,'*Outdent:*\x20%0',_0x2b9a9f)}:void 0x0;});}},Te=class extends _0x42a28f{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x42a28f{afterInit(){const _0x19fbdc=this['editor'];if(!_0x19fbdc['plugins']['has']('LinkEditing'))return;const _0x2bfb1a=_0x19fbdc['plugins']['get']('TrackChangesEditing'),_0x8ddf4c=_0x19fbdc['commands']['get']('link');_0x2bfb1a['enableDefaultAttributesIntegration']('link'),_0x2bfb1a['enableDefaultAttributesIntegration']('unlink');for(const _0x2641b5 of _0x8ddf4c['manualDecorators'])_0x2bfb1a['descriptionFactory']['registerAttributeLabel'](_0x2641b5['id'],'link\x20('+_0x2641b5['label']['toLowerCase']()+')');_0x2bfb1a['descriptionFactory']['registerDescriptionCallback'](_0x2184ab=>{if('attribute'!=_0x2184ab['type'])return;const {data:_0x3b8645}=_0x2184ab;if(!_0x3b8645||'linkHref'!=_0x3b8645['key'])return;const _0x59f198=_0x3b8645['newValue'],_0x3d0400=_0x19fbdc['locale'];return{'type':'format','content':null==_0x59f198?Mt(_0x3d0400,'*Remove\x20link*'):Mt(_0x3d0400,'*Set\x20link:*\x20%0','\x22'+_0x59f198+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x548e3e=this['editor'],_0x501067=_0x548e3e['locale'];_0x548e3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c633c=>{if('formatInline'!=_0x4c633c['type'])return;const {data:_0xd5d7e8}=_0x4c633c;if(_0xd5d7e8){if('link'==_0xd5d7e8['commandName']){const _0x35997f=_0xd5d7e8['commandParams'][0x0];return{'type':'format','content':Mt(_0x501067,'*Set\x20link:*\x20%0','\x22'+_0x35997f+'\x22')};}return'unlink'==_0xd5d7e8['commandName']?{'type':'format','content':Mt(_0x501067,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x42a28f{afterInit(){const _0x43453a=this['editor'],_0x1161ec=_0x43453a['locale'];if(!_0x43453a['plugins']['has']('LegacyListEditing'))return;const _0x94bc2d=_0x43453a['plugins']['get']('TrackChangesEditing'),_0x29f7d3=_0x43453a['plugins']['has']('LegacyTodoListEditing');function _0x431d90(_0x47dd9d){return()=>{const _0x38a953=_0x43453a['model']['document']['selection'],_0x2251ff=_0x43453a['commands']['get'](_0x47dd9d);if(_0x2251ff['value'])return void _0x43453a['execute']('paragraph',{});const _0x51430b=_0x47dd9d['slice'](0x0,-0x4),_0x13e0ed=function(_0x466fe9,_0x3be9e8,_0x5c362f){let _0x4d9200=Array['from'](_0x466fe9)['filter'](_0x356214=>function(_0x1726f0,_0x527f74){return _0x527f74['checkChild'](_0x1726f0['parent'],'listItem')&&!_0x527f74['isObject'](_0x1726f0);}(_0x356214,_0x5c362f));_0x4d9200=_0x4d9200['filter'](_0x571348=>!_0x571348['is']('element','listItem')||_0x571348['getAttribute']('listType')!=_0x3be9e8);const _0x4e294b=new Set();for(const _0x15c765 of _0x4d9200)_0x15c765['is']('element','listItem')?_0x4e294b['add'](Le(_0x15c765)):_0x4e294b['add'](_0x15c765);return Array['from'](_0x4e294b);}(_0x38a953['getSelectedBlocks'](),_0x51430b,_0x43453a['model']['schema']);_0x43453a['model']['change'](()=>{for(const _0xeac4f4 of _0x13e0ed)_0x94bc2d['markBlockFormat'](_0xeac4f4,{'commandName':_0x47dd9d,'commandParams':[{'forceValue':!_0x2251ff['value']}],'formatGroupId':'blockName'},Ie(_0xeac4f4));});};}function _0x58c471(_0x345434){return()=>{const _0x375226=function(_0x177c30){let _0x5c69ca=Array['from'](_0x177c30);const _0x23c392=_0x5c69ca['findIndex'](_0x2e3868=>'listItem'!=_0x2e3868['name']);return _0x23c392>-0x1&&(_0x5c69ca=_0x5c69ca['slice'](0x0,_0x23c392)),_0x5c69ca;}(_0x43453a['model']['document']['selection']['getSelectedBlocks']()),_0x1782e8=_0x43453a['model']['createRange'](_0x43453a['model']['createPositionAt'](_0x375226[0x0],'before'),_0x43453a['model']['createPositionAt'](_0x375226[_0x375226['length']-0x1],'end'));_0x43453a['model']['change'](()=>{_0x94bc2d['markBlockFormat'](_0x1782e8,{'commandName':_0x345434,'commandParams':[],'formatGroupId':'listIndent'},function(_0x257671){const _0x2729df=new Set();for(const _0x35c56e of _0x257671){let _0x1e7f44=_0x35c56e['nextSibling'];for(;_0x1e7f44&&_0x1e7f44['getAttribute']('listIndent')>_0x35c56e['getAttribute']('listIndent');)_0x2729df['add'](_0x1e7f44),_0x1e7f44=_0x1e7f44['nextSibling'];}return Array['from'](_0x2729df);}(_0x375226));});};}_0x94bc2d['enableCommand']('numberedList',_0x431d90('numberedList')),_0x94bc2d['enableCommand']('bulletedList',_0x431d90('bulletedList')),_0x29f7d3&&_0x94bc2d['enableCommand']('todoList',_0x431d90('todoList')),_0x94bc2d['enableCommand']('indentList',_0x58c471('indentList')),_0x94bc2d['enableCommand']('outdentList',_0x58c471('outdentList')),_0x29f7d3&&_0x94bc2d['enableCommand']('checkTodoList',()=>{const _0x3ec8cb=_0x43453a['commands']['get']('checkTodoList'),_0x3d099d=Array['from'](_0x3ec8cb['_selectedElements']);_0x3d099d['filter'](_0x5c91d6=>_0x5c91d6['getAttribute']('todoListChecked')!=_0x3ec8cb['value']),_0x43453a['model']['change'](()=>{for(const _0xe6dd4e of _0x3d099d)_0x94bc2d['markBlockFormat'](_0xe6dd4e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3ec8cb['value']}]});});}),_0x94bc2d['descriptionFactory']['registerElementLabel']('listItem',_0x1dc199=>Mt(_0x1161ec,'ELEMENT_LIST_ITEM',_0x1dc199)),_0x94bc2d['descriptionFactory']['registerDescriptionCallback'](_0x19415e=>{if('formatBlock'!=_0x19415e['type']&&'formatInline'!=_0x19415e['type'])return;const {data:_0x225826}=_0x19415e;if(_0x225826){if('numberedList'==_0x225826['commandName']||'bulletedList'==_0x225826['commandName']||'todoList'==_0x225826['commandName'])switch(_0x225826['commandName']['replace']('List','')){case'bulleted':return _0x3be608(Mt(_0x1161ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3be608(Mt(_0x1161ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3be608(Mt(_0x1161ec,'ELEMENT_TODO_LIST'));}if('indentList'==_0x225826['commandName'])return{'type':'format','content':Mt(_0x1161ec,'*Indent:*\x20%0',Mt(_0x1161ec,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x225826['commandName'])return{'type':'format','content':Mt(_0x1161ec,'*Outdent:*\x20%0',Mt(_0x1161ec,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x225826['commandName'])return _0x225826['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x1161ec,'*Check\x20item*')}:{'type':'format','content':Mt(_0x1161ec,'*Uncheck\x20item*')};}function _0x3be608(_0x408b98){return{'type':'format','content':Mt(_0x1161ec,'*Change\x20to:*\x20%0',_0x408b98)};}});}};function Le(_0x2cccf5){const _0x498e34=_0x2cccf5['getAttribute']('listIndent');if(0x0==_0x498e34)return _0x2cccf5;let _0x44a7b3=_0x2cccf5;for(;_0x2cccf5['previousSibling']&&_0x2cccf5['previousSibling']['is']('element','listItem');){const _0x4d2489=_0x2cccf5['previousSibling']['getAttribute']('listIndent');if(_0x4d2489==_0x498e34)_0x44a7b3=_0x2cccf5['previousSibling'];else{if(_0x4d2489<_0x498e34)break;}_0x2cccf5=_0x2cccf5['previousSibling'];}return _0x44a7b3;}function Ie(_0x254bac){const _0x22ba02=[];if(_0x254bac['is']('element','listItem')&&_0x254bac['getAttribute']('listIndent')>0x0){let _0x31a91b=_0x254bac['nextSibling'];for(;_0x31a91b&&'listItem'==_0x31a91b['name']&&_0x31a91b['getAttribute']('listIndent')==_0x254bac['getAttribute']('listIndent');)_0x22ba02['push'](_0x31a91b),_0x31a91b=_0x31a91b['nextSibling'];}return _0x22ba02;}var Ae=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1e1769=this['editor']['config']['get']('list.properties'),_0x1b131a=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e1769['styles']&&_0x1b131a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1e1769['reversed']&&_0x1b131a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1e1769['startIndex']&&_0x1b131a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1b131a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x43162f,_0x59158e={}){const _0x2c4646=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d8a88=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2c4646['markMultiRangeBlockFormat'](_0x5d8a88,{'commandName':'listStyle','commandParams':[{'type':_0x59158e['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x3f779f,_0x34cd3={}){const _0x5d350a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ea537=this['_getSuggestionBlocks'](_0x51bf1b=>_0x51bf1b['is']('element','listItem')&&'numbered'===_0x51bf1b['getAttribute']('listType'));if(_0x3ea537['length']<0x1)return;const _0x390806=_0x3ea537['map'](_0x5778dd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5778dd,'before'),this['editor']['model']['createPositionAt'](_0x5778dd,0x0)));this['editor']['model']['change'](()=>{_0x5d350a['markMultiRangeBlockFormat'](_0x390806,{'commandName':'listReversed','commandParams':[{'reversed':_0x34cd3['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x6fc801,_0x16c781={}){const _0x43b05e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x196a5a=this['_getSuggestionBlocks'](_0x3446be=>_0x3446be['is']('element','listItem')&&'numbered'===_0x3446be['getAttribute']('listType'));if(_0x196a5a['length']<0x1)return;const _0x479889=_0x196a5a['map'](_0x5d7d03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d7d03,'before'),this['editor']['model']['createPositionAt'](_0x5d7d03,0x0)));this['editor']['model']['change'](()=>{_0x43b05e['markMultiRangeBlockFormat'](_0x479889,{'commandName':'listStart','commandParams':[{'startIndex':_0x16c781['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x2e4031){if('formatBlock'!=_0x2e4031['type']&&'formatInline'!=_0x2e4031['type'])return;const _0x53b977=this['editor']['locale'],{data:_0x31fe01}=_0x2e4031;if(!_0x31fe01)return;let _0x3aea6f,_0x4e2182;switch(_0x31fe01['commandName']){case'listStyle':_0x3aea6f='*Change\x20to:*\x20%0',_0x4e2182={'type':'format','content':Mt(_0x53b977,_0x3aea6f,Mt(_0x53b977,this['_getTranslationKeyForListStyle'](_0x31fe01['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3aea6f=_0x31fe01['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e2182={'type':'format','content':Mt(_0x53b977,_0x3aea6f)};break;case'listStart':_0x3aea6f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e2182={'type':'format','content':Mt(_0x53b977,_0x3aea6f,_0x31fe01['commandParams'][0x0]['startIndex'])};}return _0x4e2182;}_getSuggestionBlocksForListStyle(){const _0x481916=this['editor']['plugins']['get']('LegacyListUtils');let _0x890f65=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x890f65[0x0]?.['is']('element','listItem')&&_0x890f65['unshift'](..._0x481916['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x890f65[_0x890f65['length']-0x1]?.['is']('element','listItem')&&_0x890f65['push'](..._0x481916['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x890f65=[...new Set(_0x890f65)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x890f65=_0x890f65['filter'](_0x373679=>_0x373679['is']('element','listItem'))),_0x890f65;}_getSuggestionBlocks(_0x276a11){const _0x390882=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c03c4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x276a11)['map'](_0x205c74=>{const _0x4e7f5b=this['editor']['model']['createPositionAt'](_0x205c74,0x0);return[..._0x390882['getSiblingNodes'](_0x4e7f5b,'backward'),..._0x390882['getSiblingNodes'](_0x4e7f5b,'forward')];})['flat']();return _0x2c03c4=[...new Set(_0x2c03c4)],_0x2c03c4;}_getTranslationKeyForListStyle(_0x226b36){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x226b36)||'default')['toUpperCase']()+'_LIST_'+_0x226b36['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x42a28f{afterInit(){const _0x56c2a8=this['editor'];if(!_0x56c2a8['plugins']['has']('MediaEmbedEditing'))return;const _0x29104a=_0x56c2a8['plugins']['get']('TrackChangesEditing'),_0x5f459b=_0x56c2a8['locale'];_0x29104a['enableCommand']('mediaEmbed'),_0x29104a['descriptionFactory']['registerElementLabel']('media',_0x5ec1c1=>Mt(_0x5f459b,'ELEMENT_MEDIA',_0x5ec1c1)),_0x56c2a8['plugins']['has']('MediaEmbedResizeEditing')&&(_0x29104a['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x29104a['descriptionFactory']['registerDescriptionCallback'](_0x3d9930=>{if('attribute'!=_0x3d9930['type'])return;const {data:_0x15d9ba}=_0x3d9930;if(!_0x15d9ba||'resizedWidth'!=_0x15d9ba['key'])return;const _0x1c59ee=_0x3d9930['getContainedElement']();if(!_0x1c59ee||!_0x1c59ee['is']('element','media'))return;const _0x325f41=Mt(_0x5f459b,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x5f459b,'*Set\x20format:*\x20%0',_0x325f41)};}));}},ke=class extends _0x42a28f{afterInit(){const _0x47bc73=this['editor'];if(!_0x47bc73['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x2cbfc1=_0x47bc73['plugins']['get']('TrackChangesEditing'),_0x44e4ca=_0x47bc73['locale'],_0x59961a=_0x47bc73['plugins']['get']('MediaEmbedStyleEditing'),_0x359d76={};for(const _0x3f1432 of _0x59961a['normalizedStyles'])_0x359d76[_0x3f1432['name']]=_0x3f1432['title']['toLowerCase']();const _0x1f54d5=_0x59961a['normalizedStyles']['find'](_0x487ae2=>_0x487ae2['isDefault'])?.['name'];_0x2cbfc1['enableCommand']('mediaStyle',(_0x45a9b8,_0x33e96d)=>{const _0x3f0291=_0x47bc73['plugins']['get']('Users')['me'],_0xb95333=_0x47bc73['commands']['get']('mediaStyle'),_0x5c1e07=function(_0x3bc203){const _0x6a92fd=_0x3bc203['model']['document']['selection']['getSelectedElement']();return _0x6a92fd&&_0x6a92fd['is']('element','media')?_0x6a92fd:null;}(_0x47bc73);if(!_0x5c1e07)return;const _0x27891a=_0x47bc73['model']['createRangeOn'](_0x5c1e07);let _0xd50d40=_0xb95333['value'];if(_0xd50d40==_0x33e96d['value'])return;const _0x48d59c={'commandName':'mediaStyle','commandParams':[_0x33e96d],'formatGroupId':_0x5b5c0d()};_0x47bc73['model']['change'](()=>{_0x2cbfc1['getSuggestions']()['filter'](_0xded657=>_0xded657['isInContent']&&_0x3f0291==_0xded657['author']&&'formatBlock'==_0xded657['type']&&'mediaStylePostApply'==_0xded657['subType']&&_0xded657['getFirstRange']()['isEqual'](_0x27891a))['forEach'](_0x488f4d=>_0x2cbfc1['discardSuggestion'](_0x488f4d['head'])),_0xb95333['refresh'](),_0xd50d40=_0xb95333['value'],_0xd50d40!=_0x33e96d['value']&&_0x2cbfc1['markBlockFormat'](_0x5c1e07,{..._0x48d59c,'commandReversedParams':[{'value':'string'==typeof _0xd50d40?_0xd50d40:null}]},[],'mediaStylePostApply');});}),_0x2cbfc1['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x2cbfc1['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x3eb3c9,_0x37b9dc)=>{_0x2cbfc1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3eb3c9,{'commandName':_0x37b9dc['commandName'],'commandParams':_0x37b9dc['commandReversedParams']});}),_0x2cbfc1['descriptionFactory']['registerDescriptionCallback'](_0x23ddb5=>{if('formatBlock'!=_0x23ddb5['type'])return;const {data:_0x5787d7}=_0x23ddb5;if(!_0x5787d7||'mediaStyle'!=_0x5787d7['commandName'])return;const _0xe3ddda=_0x5787d7['commandParams'][0x0]['value']||_0x1f54d5;if(!_0xe3ddda)return;const _0xf70163=_0x359d76[_0xe3ddda]||_0xe3ddda;return{'type':'format','content':Mt(_0x44e4ca,'*Format:*\x20%0',_0xf70163)};});}},Ce=class extends _0x42a28f{afterInit(){const _0x49ca71=this['editor'];_0x49ca71['plugins']['has']('MentionEditing')&&_0x49ca71['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x42a28f{afterInit(){const _0x13879b=this['editor'];if(!_0x13879b['plugins']['has']('MergeFieldsEditing'))return;const _0x1a5999=_0x13879b['plugins']['get']('TrackChangesEditing'),_0x43f203=_0x13879b['locale'];_0x1a5999['enableCommand']('insertMergeField'),_0x1a5999['enableCommand']('insertMergeFieldBlock'),_0x1a5999['enableCommand']('insertMergeFieldImage'),_0x1a5999['descriptionFactory']['registerElementLabel']('mergeField',_0x443260=>Mt(_0x43f203,'ELEMENT_MERGE_FIELD',_0x443260)),_0x1a5999['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x43e77a=>Mt(_0x43f203,'ELEMENT_MERGE_FIELD',_0x43e77a)),_0x1a5999['descriptionFactory']['registerDescriptionCallback'](_0x59999a=>{if('insertion'!=_0x59999a['type']&&'deletion'!=_0x59999a['type'])return;const _0x1a390d=_0x59999a['getContainedElement']();if(null==_0x1a390d)return;const _0x31946b=_0x13879b['plugins']['get']('MergeFieldsEditing');let _0x47f2d2;switch(_0x31946b['getMergeFieldType'](_0x1a390d)){case null:return;case'image':{const _0x588115=_0x31946b['unwrapAffixes'](_0x1a390d['getAttribute']('src'));_0x47f2d2=_0x31946b['getLabel'](_0x588115)||_0x588115;break;}default:{const _0xfb738=_0x1a390d['getAttribute']('id');_0x47f2d2=_0x31946b['getLabel'](_0xfb738)||_0xfb738;break;}}return'insertion'==_0x59999a['type']?{'type':'insertion','content':Mt(_0x43f203,'*Insert:*\x20%0','\x22'+_0x47f2d2+'\x22\x20'+Mt(_0x43f203,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x43f203,'*Remove:*\x20%0','\x22'+_0x47f2d2+'\x22\x20'+Mt(_0x43f203,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x42a28f{afterInit(){const _0x2e60b3=this['editor'],_0x13e40c=_0x2e60b3['plugins']['get']('TrackChangesEditing');_0x2e60b3['plugins']['has']('MultiLevelList')&&(_0x13e40c['enableDefaultAttributesIntegration']('multiLevelList'),_0x13e40c['descriptionFactory']['registerDescriptionCallback'](_0x5bc3d2=>this['handleDescriptions'](_0x5bc3d2)));}handleDescriptions(_0x2f9b58){const _0x538551=this['editor']['locale'],{data:_0x5e6b42}=_0x2f9b58,_0x193dc8={'type':'format','content':''};if(_0x5e6b42&&'listMarkerStyle'==_0x5e6b42['key']){if(!_0x5e6b42['oldValue'])return{'type':'format','content':Mt(_0x538551,'*Set\x20format:*\x20%0',Mt(_0x538551,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e6b42['newValue']+')'};if(!_0x5e6b42['newValue']){let _0x16073d=_0x2f9b58['head'];for(;_0x16073d;){if(_0x16073d['data']&&'listType'==_0x16073d['data']['key']&&_0x16073d['data']['newValue'])return _0x193dc8;_0x16073d=_0x16073d['next'];}return{'type':'format','content':Mt(_0x538551,'*Remove\x20format:*\x20%0',Mt(_0x538551,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e6b42['oldValue']+')'};}}}},Ne=class extends _0x42a28f{afterInit(){const _0x5b8f1c=this['editor'];if(!_0x5b8f1c['plugins']['has']('PageBreakEditing'))return;_0x5b8f1c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x161b4c=_0x5b8f1c['plugins']['get']('TrackChangesEditing'),_0x3dbe6d=_0x5b8f1c['locale'];_0x161b4c['descriptionFactory']['registerElementLabel']('pageBreak',_0x40b632=>Mt(_0x3dbe6d,'ELEMENT_PAGE_BREAK',_0x40b632));}},Se=class extends _0x42a28f{afterInit(){const _0x365284=this['editor'];if(!_0x365284['plugins']['has']('Paragraph'))return;const _0x13e3cc=_0x365284['locale'],_0x2ca794=_0x365284['plugins']['get']('TrackChangesEditing');_0x2ca794['descriptionFactory']['registerElementLabel']('paragraph',_0x5a586b=>Mt(_0x13e3cc,'ELEMENT_PARAGRAPH',_0x5a586b)),_0x2ca794['enableDefaultAttributesIntegration']('paragraph'),_0x2ca794['enableCommand']('insertParagraph');const _0x48440f=_0x2ca794['descriptionFactory'];_0x48440f['registerDescriptionCallback'](_0xf0e542=>{if('insertion'!==_0xf0e542['type'])return;const {start:_0x4c3187,end:_0xda35a6}=_0xf0e542['getFirstRange']();if(!_0x4c3187['isTouching'](_0xda35a6)||!_0x4c3187['nodeAfter'])return;const _0x5a169b=_0x365284['model']['schema'],_0x36dfe6=_0x4c3187['nodeAfter'];return _0x5a169b['isBlock'](_0x36dfe6)&&!_0x5a169b['isLimit'](_0x36dfe6)&&_0x5a169b['checkChild'](_0x36dfe6,'$text')?{'type':'insertion','content':Mt(_0x13e3cc,'*Insert:*\x20%0',_0x48440f['getItemLabel'](_0x36dfe6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2dc38b=this['editor'],_0x31bc2a=_0x2dc38b['locale'];_0x2dc38b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f5ff=>{if('formatBlock'!=_0x59f5ff['type'])return;const {data:_0x404f77}=_0x59f5ff;return _0x404f77&&'paragraph'==_0x404f77['commandName']?{'type':'format','content':Mt(_0x31bc2a,'*Change\x20to:*\x20%0',Mt(_0x31bc2a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x42a28f{afterInit(){const _0x322428=this['editor'];_0x322428['commands']['get']('replaceSource')&&_0x322428['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x42a28f{afterInit(){const _0x5280dc=this['editor'];_0x5280dc['plugins']['has']('RemoveFormatEditing')&&(_0x5280dc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x57b76f=this['editor'];_0x57b76f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x89019b=>{if('formatBlock'!=_0x89019b['type']&&'formatInline'!=_0x89019b['type'])return;const {data:_0x54a82d}=_0x89019b;return _0x54a82d&&'removeFormat'==_0x54a82d['commandName']?{'type':'format','content':Mt(_0x57b76f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x42a28f{afterInit(){const _0x3130d5=this['editor'];if(!_0x3130d5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x64cf97=_0x3130d5['plugins']['get']('TrackChangesEditing');_0x64cf97['enableCommand']('goToPreviousRestrictedEditingException'),_0x64cf97['enableCommand']('goToNextRestrictedEditingException');const _0x42f4b9=_0x3130d5['plugins']['get']('RestrictedEditingModeEditing');_0x42f4b9['enableCommand']('trackChanges'),_0x42f4b9['enableCommand']('acceptSuggestion'),_0x42f4b9['enableCommand']('discardSuggestion'),_0x42f4b9['enableCommand']('acceptAllSuggestions'),_0x42f4b9['enableCommand']('discardAllSuggestions'),_0x42f4b9['enableCommand']('acceptSelectedSuggestions'),_0x42f4b9['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x42a28f{afterInit(){const _0x113a36=this['editor'];if(!_0x113a36['plugins']['has']('ShiftEnter'))return;const _0x1931e4=_0x113a36['plugins']['get']('TrackChangesEditing');_0x1931e4['enableCommand']('shiftEnter'),_0x1931e4['descriptionFactory']['registerElementLabel']('softBreak',_0x29e3ff=>Mt(_0x113a36['locale'],'ELEMENT_LINE_BREAK',_0x29e3ff));}};function Be(_0x5d4a47,_0x4d897f,_0x366e38){const _0x446c19=[];for(const _0x9a97a6 of _0x4d897f['getItems']())_0x9a97a6['hasAttribute'](_0x5d4a47)&&_0x446c19['push'](_0x366e38['createRangeOn'](_0x9a97a6));return _0x446c19;}var ve=class extends _0x42a28f{afterInit(){const _0xca7bc8=this['editor'],_0x2cd971=_0xca7bc8['plugins']['get']('TrackChangesEditing');_0xca7bc8['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2cd971['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x167598=this['editor'],_0x30d0ac=_0x167598['model'],_0x492c3e=_0x167598['locale'],_0x578018=_0x167598['plugins']['get']('TrackChangesEditing'),_0x2d8463='restrictedEditingException',_0x481a60=_0x167598['commands']['get'](_0x2d8463);_0x578018['enableCommand'](_0x2d8463,(_0x512513,_0x1299a9={})=>{const _0x706875=_0x30d0ac['document']['selection'];if(_0x706875['isCollapsed'])return void _0x512513(_0x1299a9);const _0x4be460=void 0x0!==_0x1299a9['forceValue']?_0x1299a9['forceValue']:!_0x481a60['value'];_0x30d0ac['change'](()=>{const _0x2ec3b8=Array['from'](_0x706875['getRanges']());for(const _0x143912 of _0x2ec3b8){const _0x3f7f2b=_0x4be460?[_0x143912]:Be(_0x2d8463,_0x143912,_0x30d0ac);for(const _0x7bab34 of _0x3f7f2b)_0x578018['markInlineFormat'](_0x7bab34,{'commandName':_0x2d8463,'commandParams':[{'forceValue':_0x4be460}]});}});}),_0x578018['descriptionFactory']['registerDescriptionCallback'](_0x5bfe23=>{if('formatBlock'!=_0x5bfe23['type']&&'formatInline'!=_0x5bfe23['type'])return;const {data:_0x210ae0}=_0x5bfe23;return _0x210ae0&&_0x210ae0['commandName']==_0x2d8463?_0x210ae0['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x492c3e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x492c3e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x55ec1e=this['editor'],_0x15b046=_0x55ec1e['locale'],_0x5ecdad=_0x55ec1e['plugins']['get']('TrackChangesEditing'),_0x58dbe0='restrictedEditingExceptionBlock',_0x491caa=this['editor']['commands']['get'](_0x58dbe0);_0x5ecdad['enableCommand'](_0x58dbe0,(_0xb242f0,_0xa0c88a={})=>{const _0x32f8fe=this['editor']['model']['document']['selection'],_0x4d53ea=_0xa0c88a&&void 0x0!==_0xa0c88a['forceValue']?_0xa0c88a['forceValue']:!_0x491caa['value'];let _0x2cb6e2=[];if(_0x4d53ea){const _0x75c150=Array['from'](_0x32f8fe['getSelectedBlocks']())['filter'](_0x6d0a39=>function(_0x587966){return!!_0x587966['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x6d0a39)||function(_0x108748,_0x3874da){const _0x1b8088=_0x3874da['createContext'](_0x108748['parent']);return!!_0x3874da['checkChild'](_0x1b8088,'restrictedEditingException')&&!!_0x3874da['checkChild'](_0x1b8088['push']('restrictedEditingException'),_0x108748);}(_0x6d0a39,this['editor']['model']['schema']));_0x2cb6e2=bt(_0x75c150,_0x55ec1e['model']);}else{const _0x5396b9=Array['from'](_0x32f8fe['getSelectedBlocks']())['map'](_0xd5c64d=>function(_0x516b35){let _0x3922e9=_0x516b35;for(;_0x3922e9['parent'];){if('restrictedEditingException'==_0x3922e9['parent']['name'])return _0x3922e9;_0x3922e9=_0x3922e9['parent'];}return null;}(_0xd5c64d))['filter'](_0x378797=>!!_0x378797);_0x2cb6e2=bt(_0x5396b9,_0x55ec1e['model']);}_0x55ec1e['model']['change'](()=>{for(const _0x3a2b2a of _0x2cb6e2)_0x5ecdad['markBlockFormat'](_0x3a2b2a,{'commandName':_0x58dbe0,'commandParams':[{'forceValue':_0x4d53ea}]});});}),_0x5ecdad['descriptionFactory']['registerDescriptionCallback'](_0x1efe39=>{const {data:_0x57b4d0}=_0x1efe39;if(_0x57b4d0&&_0x57b4d0['commandName']==_0x58dbe0)return _0x57b4d0['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x15b046,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x15b046,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x42a28f{afterInit(){const _0x1ecd9e=this['editor'];_0x1ecd9e['plugins']['has']('Style')&&_0x1ecd9e['plugins']['has']('DataSchema')&&(_0x1ecd9e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x481ad6=this['editor'],_0x4d1156=_0x481ad6['locale'];_0x481ad6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10823d=>{if('formatBlock'!=_0x10823d['type']&&'formatInline'!=_0x10823d['type'])return;const {data:_0x9b76c}=_0x10823d;return _0x9b76c&&'style'===_0x9b76c['commandName']?_0x9b76c['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4d1156,'*Set\x20format:*\x20%0',_0x9b76c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x4d1156,'*Remove\x20format:*\x20%0',_0x9b76c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x42a28f{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x54f19c){super(_0x54f19c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x26aeb8=this['editor'],_0x2ceb87=_0x26aeb8['model']['document']['selection'];if(!_0x26aeb8['plugins']['has']('TableEditing'))return;const _0x3b1396=_0x26aeb8['locale'],_0x57a083=_0x26aeb8['plugins']['get']('TrackChangesEditing'),_0x24ff23=_0x26aeb8['plugins']['get']('TableUtils');_0x57a083['descriptionFactory']['registerElementLabel']('table',_0x40776c=>Mt(_0x3b1396,'ELEMENT_TABLE',_0x40776c)),this['_setupColumnsRowsFixing'](),_0x57a083['enableCommand']('insertTable'),_0x57a083['enableCommand']('selectTableRow'),_0x57a083['enableCommand']('selectTableColumn');for(const _0x53b1ee of['insertTableRowAbove','insertTableRowBelow']){const _0x44a9b5=_0x26aeb8['commands']['get'](_0x53b1ee);_0x57a083['enableCommand'](_0x53b1ee,_0xb4adef=>{_0x26aeb8['model']['change'](_0x207f92=>{_0xb4adef();const _0x50dca9='above'===_0x44a9b5['order'],_0x1ecf95=_0x24ff23['getSelectionAffectedTableCells'](_0x2ceb87),_0x47e984=_0x24ff23['getRowIndexes'](_0x1ecf95),_0x5414c7=_0x50dca9?_0x47e984['first']-0x1:_0x47e984['last']+0x1,_0x241dac=_0x1ecf95[0x0]['findAncestor']('table'),_0x125c34=_0x24ff23['createTableWalker'](_0x241dac,{'startRow':_0x5414c7,'endRow':_0x5414c7}),_0x364a20=Array['from'](_0x125c34)['map'](_0x25331e=>_0x207f92['createRangeOn'](_0x25331e['cell']));_0x57a083['markMultiRangeInsertion'](_0x364a20,'tableRow');});});}for(const _0x28defb of['insertTableColumnLeft','insertTableColumnRight']){const _0xa3490f=_0x26aeb8['commands']['get'](_0x28defb);_0x57a083['enableCommand'](_0x28defb,_0x2a2a2b=>{_0x26aeb8['model']['change'](_0x1712e2=>{_0x2a2a2b();const _0x3a2c0b='left'===_0xa3490f['order'],_0x20e768=_0x24ff23['getSelectionAffectedTableCells'](_0x2ceb87),_0x1fef19=_0x24ff23['getColumnIndexes'](_0x20e768),_0x4bea75=_0x3a2c0b?_0x1fef19['first']-0x1:_0x1fef19['last']+0x1,_0x537f80=_0x20e768[0x0]['findAncestor']('table'),_0x35a46a=_0x24ff23['createTableWalker'](_0x537f80,{'startRow':0x0,'column':_0x4bea75,'includeAllSlots':!0x1}),_0x13fdfb=Array['from'](_0x35a46a)['map'](_0x37b8ae=>_0x1712e2['createRangeOn'](_0x37b8ae['cell']));_0x57a083['markMultiRangeInsertion'](_0x13fdfb,'tableColumn');});});}for(const _0x5db1bd of['removeTableRow','removeTableColumn']){const _0x18fc48=_0x5db1bd['substr'](0xb),_0x2c0e26=_0x18fc48['toLowerCase'](),_0x444d37=_0x2c0e26['substr'](0x0,0x3)+'span',_0x177bfc='table'+_0x18fc48,_0x1f75dd='min'+_0x18fc48,_0x52df12='max'+_0x18fc48;_0x57a083['enableCommand'](_0x5db1bd,()=>{_0x26aeb8['model']['change'](_0x45d4ea=>{const _0x595e82=_0x24ff23['getSelectionAffectedTableCells'](_0x2ceb87),_0x3ddef2=_0x595e82[0x0]['findAncestor']('table');let _0x534fea;if('removeTableRow'==_0x5db1bd){const _0x49676b=_0x24ff23['getRowIndexes'](_0x595e82);_0x534fea={'startRow':_0x49676b['first'],'endRow':_0x49676b['last'],'includeAllSlots':!0x0};}else{const _0x513979=_0x24ff23['getColumnIndexes'](_0x595e82);_0x534fea={'startColumn':_0x513979['first'],'endColumn':_0x513979['last'],'includeAllSlots':!0x0};}const _0x13e2b1=_0x24ff23['createTableWalker'](_0x3ddef2,_0x534fea),_0x13c9bc=Array['from'](_0x13e2b1)['map'](({cell:_0x5e886c})=>_0x5e886c),_0x35cdec=Pe(_0x13c9bc['filter'](_0x5ac00a=>_0x5ac00a['hasAttribute'](_0x444d37))),_0xe0685f=Pe(_0x13c9bc['filter'](_0x1bfc79=>!_0x1bfc79['hasAttribute'](_0x444d37)))['map'](_0x3325dd=>_0x45d4ea['createRangeOn'](_0x3325dd)),_0x3c8c79=_0x57a083['markMultiRangeDeletion'](_0xe0685f,_0x177bfc);if(_0x3c8c79&&('tableRow'==_0x3c8c79['subType']||'tableColumn'==_0x3c8c79['subType'])){const _0x1caaac=this['_getSuggestionCoords'](_0x3c8c79);for(const _0x56219a of _0x35cdec){const _0x38a11e=_0x45d4ea['createRangeOn'](_0x56219a),_0xcef07d=_0x24ff23['getCellLocation'](_0x56219a),_0x3f47de=_0x56219a['getAttribute'](_0x444d37)-0x1,_0x3005b7=_0x1caaac[_0x1f75dd],_0xa105cd=_0x1caaac[_0x52df12];_0x3005b7<=_0xcef07d[_0x2c0e26]&&_0xcef07d[_0x2c0e26]+_0x3f47de<=_0xa105cd&&_0x3c8c79['addRange'](_0x38a11e);}}});});}function _0x2ab80b(_0x188d65){const _0xbf2957=Array['from'](_0x2ceb87['getRanges']())['map'](_0x391c48=>rt['fromRange'](_0x391c48));_0x26aeb8['model']['change'](_0x2a911f=>{const _0x490ce2=_0x2a911f['batch'];_0x188d65=_0x188d65['filter'](_0x4ac466=>'$graveyard'!=_0x4ac466['root']['rootName']),_0x2a911f['setSelection'](_0x188d65),_0x26aeb8['commands']['get']('removeTableRow')['refresh'](),_0x26aeb8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x26aeb8['model']['enqueueChange'](()=>{_0x26aeb8['model']['enqueueChange'](_0x490ce2,_0x34d85b=>{const _0x538b4e=_0xbf2957['filter'](_0x100db3=>'$graveyard'!=_0x100db3['root']['rootName']);_0x538b4e['length']>0x0&&_0x34d85b['setSelection'](_0x538b4e);for(const _0x665e59 of _0xbf2957)_0x665e59['detach']();});});});}function _0x2663e1(_0x1ab20f){_0x26aeb8['model']['change'](_0x53ced0=>{const _0x105225=Array['from'](_0x2ceb87['getRanges']())['map'](_0x23a6e4=>rt['fromRange'](_0x23a6e4)),_0x26f60f=[];for(const _0xafe7f7 of _0x1ab20f)for(const _0x9420dc of _0xafe7f7['getItems']({'shallow':!0x0}))_0x26f60f['push'](_0x9420dc);for(const _0x6365cc of _0x26f60f)'$graveyard'!=_0x6365cc['root']['rootName']&&(_0x53ced0['setSelection'](_0x53ced0['createPositionAt'](_0x6365cc,0x0)),_0x26aeb8['commands']['get']('removeTableColumn')['refresh'](),_0x26aeb8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2984c8=_0x105225['filter'](_0x5aed68=>'$graveyard'!=_0x5aed68['root']['rootName']);_0x2984c8['length']>0x0&&_0x53ced0['setSelection'](_0x2984c8);for(const _0x3eb403 of _0x105225)_0x3eb403['detach']();});}function _0x5400b7(_0xa1917f,_0x2abb85){return _0x2abb85['every'](_0x564c7a=>_0xa1917f['some'](_0x5d90c3=>_0x5d90c3['end']['isEqual'](_0x564c7a['start'])||_0x564c7a['end']['isEqual'](_0x5d90c3['start'])));}function _0x20bb53(_0x2a7ceb,_0x508dbd){return!_0x2a7ceb['some'](_0x301318=>_0x508dbd['some'](_0x3720d1=>_0x301318['isIntersecting'](_0x3720d1)))&&_0x2a7ceb['some'](_0x31104f=>_0x508dbd['some'](_0x8f6933=>_0x31104f['end']['isTouching'](_0x8f6933['start'])));}_0x57a083['descriptionFactory']['registerDescriptionCallback'](_0x3b86cd=>{if('insertion'!=_0x3b86cd['type']&&'deletion'!=_0x3b86cd['type'])return;const _0x37ab9e=_0x3b86cd['getContainedElement']();if(null!=_0x37ab9e&&_0x37ab9e['is']('element','table')){if('insertion'==_0x3b86cd['type']){const _0x2dcd75=_0x3b86cd['getItems']()['filter'](_0x3001b4=>_0x3001b4['is']('$textProxy'))['map'](_0x341f17=>_0x341f17['data']);if(_0x2dcd75['length'])return{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2dcd75['join']('\x20')+'\x22'))};}if('deletion'==_0x3b86cd['type']){const _0x253e1e=_0x3b86cd['getItems']()['filter'](_0x55afcb=>_0x55afcb['is']('$textProxy'))['map'](_0x116974=>_0x116974['data']);if(_0x253e1e['length'])return{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x253e1e['join']('\x20')+'\x22'))};}}}),_0x57a083['descriptionFactory']['registerDescriptionCallback'](_0x9cf847=>{if('tableRow'==_0x9cf847['subType']){const _0x103535=_0x9cf847['getItems']()['filter'](_0x4b3479=>_0x4b3479['is']('$textProxy'))['map'](_0x11a2c5=>_0x11a2c5['data']),_0x185837=this['_getSuggestionCoords'](_0x9cf847),_0x42124d=_0x185837['maxRow']-_0x185837['minRow']+0x1;if('insertion'==_0x9cf847['type'])return _0x103535['length']?{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x42124d,'\x22'+_0x103535['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW',_0x42124d))};if('deletion'==_0x9cf847['type'])return _0x103535['length']?{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x42124d,'\x22'+_0x103535['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW',_0x42124d))};}if('tableColumn'==_0x9cf847['subType']){const _0x1b8ebb=_0x9cf847['getItems']()['filter'](_0x2182a5=>_0x2182a5['is']('$textProxy'))['map'](_0x5dd8f0=>_0x5dd8f0['data']),_0x3a2962=this['_getSuggestionCoords'](_0x9cf847),_0x25176c=_0x3a2962['maxColumn']-_0x3a2962['minColumn']+0x1;if('insertion'==_0x9cf847['type'])return _0x1b8ebb['length']?{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25176c,'\x22'+_0x1b8ebb['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN',_0x25176c))};if('deletion'==_0x9cf847['type'])return _0x1b8ebb['length']?{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25176c,'\x22'+_0x1b8ebb['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN',_0x25176c))};}}),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ab80b),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ab80b),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2663e1),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2663e1),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5400b7),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5400b7),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x20bb53),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x20bb53);}_acceptFormatSuggestionCallbackFactory(){const _0x253edb=this['editor'],_0x14d42d=_0x253edb['model']['document']['selection'];return(_0x18c07d,_0x46c3fb)=>{_0x253edb['model']['change'](_0x4c477e=>{const {commandName:_0x251593,commandParams:_0x52b120}=_0x46c3fb;let _0x19bf4e=_0x18c07d[0x0]['end']['nodeBefore'];_0x52b120&&_0x52b120[0x0]&&!0x1===_0x52b120[0x0]['forceValue']&&(_0x19bf4e=_0x18c07d[0x0]['start']['nodeAfter']);const _0x23357b=_0x4c477e['createRangeIn'](_0x19bf4e);if('$graveyard'==_0x23357b['root']['rootName'])return;const _0xa35467=Array['from'](_0x14d42d['getRanges']())['map'](_0x321e85=>rt['fromRange'](_0x321e85));_0x4c477e['setSelection'](_0x23357b),_0x253edb['commands']['get'](_0x251593)['refresh'](),_0x52b120['push']({'forceDefaultExecution':!0x0}),_0x253edb['execute'](_0x251593,..._0x52b120);const _0x47d1eb=_0xa35467['filter'](_0x295e20=>'$graveyard'!=_0x295e20['root']['rootName']);_0x47d1eb['length']>0x0&&_0x4c477e['setSelection'](_0x47d1eb);for(const _0x35eaa3 of _0xa35467)_0x35eaa3['detach']();});};}_getCoordsForCells(_0x58634c){const _0x1806de=this['editor']['plugins']['get']('TableUtils');let _0x19d96e=Number['MAX_SAFE_INTEGER'],_0x1036fd=Number['MIN_SAFE_INTEGER'],_0x473d2c=Number['MAX_SAFE_INTEGER'],_0x14c0e4=Number['MIN_SAFE_INTEGER'];for(const _0x540b1e of _0x58634c){if('$graveyard'==_0x540b1e['root']['rootName'])continue;const {row:_0x1fa247,column:_0x53bf14}=_0x1806de['getCellLocation'](_0x540b1e),_0x2b43aa=_0x540b1e['hasAttribute']('rowspan')?_0x540b1e['getAttribute']('rowspan')-0x1:0x0,_0x1021b2=_0x540b1e['hasAttribute']('colspan')?_0x540b1e['getAttribute']('colspan')-0x1:0x0;_0x19d96e=_0x1fa247<_0x19d96e?_0x1fa247:_0x19d96e,_0x1036fd=_0x1fa247+_0x2b43aa>_0x1036fd?_0x1fa247+_0x2b43aa:_0x1036fd,_0x473d2c=_0x53bf14<_0x473d2c?_0x53bf14:_0x473d2c,_0x14c0e4=_0x53bf14+_0x1021b2>_0x14c0e4?_0x53bf14+_0x1021b2:_0x14c0e4;}return{'minRow':_0x19d96e,'maxRow':_0x1036fd,'minColumn':_0x473d2c,'maxColumn':_0x14c0e4};}_setupColumnsRowsFixing(){const _0x4be568=this['editor'],_0x4508d2=_0x4be568['plugins']['get']('TrackChangesEditing'),_0x53f8c1=_0x4be568['plugins']['get']('TableUtils');_0x4be568['model']['document']['on']('change:data',()=>{const _0x3c7b32=Array['from'](_0x4be568['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ef1b6,data:_0x4f8f21}of _0x3c7b32){const {group:_0x13f003,id:_0x4d5b7a,subType:_0x3cac28}=tt(_0x1ef1b6);if('suggestion'!=_0x13f003)continue;if(null!=_0x4f8f21['oldRange'])continue;const _0x107125=_0x4508d2['getSuggestion'](_0x4d5b7a);this['_tablePostFixingSubtypes']['includes'](_0x3cac28)&&this['_tableSuggestions']['add'](_0x107125);}},{'priority':'low'});const _0x54c680=(_0x4bad47,_0x13e4e9)=>{let _0x4d1f95=!0x1;const _0x3b9d97=_0x13e4e9['createRangeOn'](_0x4bad47),_0x46280f=_0x4bad47['findAncestor']('table'),_0x30c3e3=_0x53f8c1['getCellLocation'](_0x4bad47);for(const _0x1382d9 of this['_tableSuggestions']){const _0x54cb14=_0x1382d9['subType'],_0x1272b6=_0x54cb14['startsWith']('tablePaste'),_0x15663e=_0x54cb14['substr'](_0x1272b6?0xa:0x5),_0x1f566e=_0x15663e['toLowerCase'](),_0x236247=_0x1f566e['substr'](0x0,0x3)+'span',_0x2b0119='min'+_0x15663e,_0x1746b3='max'+_0x15663e;if(!_0x1382d9['isInContent'])continue;if(_0x46280f!=_0x1382d9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1382d9['isIntersectingWithRange'](_0x3b9d97))continue;const _0x12ce9f=_0x4bad47['hasAttribute'](_0x236247)?_0x4bad47['getAttribute'](_0x236247)-0x1:0x0,_0x457590=this['_getSuggestionCoords'](_0x1382d9),_0xef04db=_0x457590[_0x2b0119],_0x284979=_0x457590[_0x1746b3];_0xef04db<=_0x30c3e3[_0x1f566e]&&_0x30c3e3[_0x1f566e]+_0x12ce9f<=_0x284979&&(_0x1382d9['addRange'](_0x3b9d97),_0x4d1f95=!0x0);}return _0x4d1f95;};_0x4be568['model']['document']['registerPostFixer'](_0x32d1e3=>{let _0x2d0104=!0x1;for(const _0x43a057 of _0x4be568['model']['document']['differ']['getChanges']())if('insert'==_0x43a057['type']){if('tableRow'==_0x43a057['name']){for(const _0xa6ae2f of _0x43a057['position']['nodeAfter']['getChildren']())_0x2d0104=_0x2d0104||_0x54c680(_0xa6ae2f,_0x32d1e3);}else'tableCell'==_0x43a057['name']&&(_0x2d0104=_0x2d0104||_0x54c680(_0x43a057['position']['nodeAfter'],_0x32d1e3));}return _0x2d0104;});}_getSuggestionCoords(_0x56a324){return this['_getCoordsForCells'](_0x56a324['getRanges']()['map'](_0x1f7fe7=>_0x1f7fe7['start']['nodeAfter']));}};function Pe(_0x22254c){return Array['from'](new Set(_0x22254c)['values']());}var xe=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x112ad3=this['editor'],_0x196020=_0x112ad3['model']['document']['selection'],_0x11d7d7=_0x112ad3['locale'];if(!_0x112ad3['plugins']['has']('TableEditing'))return;const _0x2d0ce8=_0x112ad3['plugins']['get']('TrackChangesEditing'),_0x9ba9f8=_0x112ad3['plugins']['get']('TableUtils'),_0x59c354=_0x112ad3['plugins']['get'](Ue);_0x59c354['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2d0ce8['enableCommand']('mergeTableCells',()=>{const _0x3338dd=_0x9ba9f8['getSelectionAffectedTableCells'](_0x112ad3['model']['document']['selection']);_0x112ad3['model']['change'](()=>{_0x2d0ce8['markMultiRangeBlockFormat'](_0x3338dd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x112ad3['commands']['get']('mergeTableCells')['on']('execute',(_0x168ce3,_0xf85c6a)=>{_0x112ad3['commands']['get']('trackChanges')['value']&&(_0xf85c6a['length']>0x0&&_0xf85c6a[_0xf85c6a['length']-0x1]&&_0xf85c6a[_0xf85c6a['length']-0x1]['forceDefaultExecution']||_0x2d0ce8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x168ce3['stop']());},{'priority':'highest'});for(const _0x1ee19d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2a16c0=_0x112ad3['commands']['get'](_0x1ee19d);_0x2d0ce8['enableCommand'](_0x1ee19d,()=>{const _0x4fb20a=_0x112ad3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d9d5b=>_0x5d9d5b['is']('element','tableCell')),_0xc8bddc=_0x2a16c0['value'];_0x112ad3['model']['change'](()=>{_0x2d0ce8['markMultiRangeBlockFormat']([_0x4fb20a,_0xc8bddc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3fd32d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c6aa2=_0x112ad3['commands']['get'](_0x3fd32d);_0x2d0ce8['enableCommand'](_0x3fd32d,()=>{const _0x39d520=_0x9ba9f8['getSelectionAffectedTableCells'](_0x112ad3['model']['document']['selection']),_0x164e1c=_0x39d520[0x0]['findAncestor']('table'),_0x41bb85=new Set();for(const _0x54a508 of _0x39d520){const {column:_0x23db69,row:_0x287ddf}=_0x9ba9f8['getCellLocation'](_0x54a508),_0x2b8394='horizontally'==_0x1c6aa2['direction']?_0x9ba9f8['createTableWalker'](_0x164e1c,{'startRow':_0x287ddf,'endRow':_0x287ddf,'includeAllSlots':!0x0}):_0x9ba9f8['createTableWalker'](_0x164e1c,{'column':_0x23db69,'includeAllSlots':!0x0});for(const {cell:_0x540746}of _0x2b8394)_0x41bb85['add'](_0x540746);}_0x112ad3['model']['change'](()=>{_0x2d0ce8['markMultiRangeBlockFormat'](_0x39d520,{'commandName':_0x3fd32d,'commandParams':[]},Array['from'](_0x41bb85),_0x3fd32d);});});}_0x2d0ce8['descriptionFactory']['registerDescriptionCallback'](_0x3cf59e=>{if('formatBlock'!=_0x3cf59e['type']&&'formatInline'!=_0x3cf59e['type'])return;const {data:_0x2f4ebb}=_0x3cf59e;return _0x2f4ebb&&'mergeTableCells'==_0x2f4ebb['commandName']?{'type':'format','content':Mt(_0x11d7d7,'*Merge\x20cells*')}:void 0x0;}),_0x2d0ce8['descriptionFactory']['registerDescriptionCallback'](_0x5caaf1=>{if('formatBlock'!=_0x5caaf1['type']&&'formatInline'!=_0x5caaf1['type'])return;const {data:_0x17287d}=_0x5caaf1;return _0x17287d?'splitTableCellVertically'==_0x17287d['commandName']?{'type':'format','content':Mt(_0x11d7d7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x17287d['commandName']?{'type':'format','content':Mt(_0x11d7d7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a075e=_0x59c354['_acceptFormatSuggestionCallbackFactory']();for(const _0x1bd20f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2d0ce8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1bd20f,'accept',_0x5a075e);for(const _0x22da73 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2d0ce8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22da73,'accept',_0x3721ad=>{_0x112ad3['model']['change'](_0x3c29f5=>{const _0x47e4f0=Array['from'](_0x3721ad)['filter'](_0x3f4714=>'$graveyard'!=_0x3f4714['root']['rootName']&&!!_0x3f4714['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x47e4f0['length'])return;const _0x11bfd7=Array['from'](_0x196020['getRanges']())['map'](_0x2d2f11=>rt['fromRange'](_0x2d2f11));_0x3c29f5['setSelection'](_0x47e4f0),_0x112ad3['commands']['get'](_0x22da73)['refresh'](),_0x112ad3['execute'](_0x22da73,{'forceDefaultExecution':!0x0});const _0x455425=_0x11bfd7['filter'](_0xf2c07e=>'$graveyard'!=_0xf2c07e['root']['rootName']);_0x455425['length']>0x0&&_0x3c29f5['setSelection'](_0x455425);for(const _0x411337 of _0x11bfd7)_0x411337['detach']();});});_0x2d0ce8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x17776d=>{_0x112ad3['model']['change'](_0x5dad36=>{const _0x3e207a=Array['from'](_0x196020['getRanges']())['map'](_0x23b77b=>rt['fromRange'](_0x23b77b));_0x5dad36['setSelection'](_0x17776d),_0x112ad3['commands']['get']('mergeTableCells')['refresh'](),_0x112ad3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x45221e=_0x3e207a['filter'](_0x5bf93a=>'$graveyard'!=_0x5bf93a['root']['rootName']);_0x45221e['length']>0x0&&_0x5dad36['setSelection'](_0x45221e);for(const _0x8490fc of _0x3e207a)_0x8490fc['detach']();});});for(const _0x333e8f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4b9344=_0x112ad3['commands']['get'](_0x333e8f);_0x4b9344['on']('set:isEnabled',(_0x3b8beb,_0x228b29,_0x3272bc)=>{if(_0x3272bc){const _0x403f0d=_0x112ad3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3df891=>_0x3df891['is']('element','tableCell'));this['_areMergableCells'](_0x4b9344['value'],_0x403f0d)||(_0x3b8beb['return']=!0x1,_0x3b8beb['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x12ce4d=this['editor']['commands']['get']('mergeTableCells'),_0x38f4b8=this['editor']['plugins']['get']('TableUtils');if(!_0x12ce4d['isEnabled'])return!0x1;const _0x57e6f0=_0x38f4b8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x413a27 of _0x57e6f0)for(const _0x349318 of _0x57e6f0)if(_0x413a27!=_0x349318&&!this['_areMergableCells'](_0x413a27,_0x349318))return!0x1;return!0x0;}['_areMergableCells'](_0x1301bc,_0x749a4d){const _0x19293d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e2ff7=this['editor']['model']['createRangeOn'](_0x1301bc),_0x56ffea=this['editor']['model']['createRangeOn'](_0x749a4d),_0x7c85d=new Set(),_0x4cf1a1=new Set();for(const _0x36a7d8 of _0x19293d['getSuggestions']())if(('insertion'==_0x36a7d8['type']||'deletion'==_0x36a7d8['type']||'mergeTableCells'==_0x36a7d8['subType'])&&_0x36a7d8['isInContent']){for(const _0x143a53 of _0x36a7d8['getRanges']())_0x143a53['containsRange'](_0x3e2ff7,!0x0)&&_0x7c85d['add'](_0x36a7d8['type']+':'+_0x36a7d8['author']['id']),_0x143a53['containsRange'](_0x56ffea,!0x0)&&_0x4cf1a1['add'](_0x36a7d8['type']+':'+_0x36a7d8['author']['id']);}if(_0x7c85d['size']!=_0x4cf1a1['size'])return!0x1;for(const _0x194610 of _0x7c85d)if(!_0x4cf1a1['has'](_0x194610))return!0x1;return!0x0;}},Ge=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x2a8bba=this['editor'];if(!_0x2a8bba['plugins']['has']('TableEditing'))return;const _0x11f365=_0x2a8bba['locale'],_0x1dadc7=_0x2a8bba['plugins']['get']('TrackChangesEditing');_0x1dadc7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1dadc7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1dadc7['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x11f365,'FORMAT_HEADER_ROW')),_0x1dadc7['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x11f365,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x9b6358=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19f155=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x9b6358['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x19f155),_0x9b6358['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x19f155),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x5f1fcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18b634=this['editor']['plugins']['get']('TableUtils');function _0x4c859a({showActiveMarker:_0x1ada0b=!0x0,setDataAttribute:_0x32855c=!0x0}={}){return(_0x4a1837,_0x4edfa0,_0x25999b)=>{const {type:_0x4fb83d,id:_0x447c9c}=tt(_0x4edfa0['markerName']);if(!_0x5f1fcd['hasSuggestion'](_0x447c9c))return;const _0x7fb164=_0x5f1fcd['getSuggestion'](_0x447c9c),_0x165f4c=_0x7fb164['data'];if('formatBlock'!=_0x7fb164['type']||!_0x165f4c||'setTableColumnHeader'!=_0x165f4c['commandName'])return;if(_0x4edfa0['item'])return void _0x4a1837['stop']();if(!_0x25999b['consumable']['consume'](_0x4edfa0['markerRange'],_0x4a1837['name']))return;const _0x36b660=_0x4edfa0['markerRange']['start']['nodeAfter'],_0x671091=_0x4edfa0['markerRange']['end']['nodeBefore'],_0x5b46f9=_0x36b660['parent']['parent'],{column:_0x3cf983}=_0x18b634['getCellLocation'](_0x36b660),{column:_0x47057b}=_0x18b634['getCellLocation'](_0x671091);for(let _0x52fc0b=_0x3cf983;_0x52fc0b<=_0x47057b;_0x52fc0b++){const _0x1c6182=_0x18b634['createTableWalker'](_0x5b46f9,{'column':_0x52fc0b,'includeAllSlots':!0x1});for(const _0x137362 of _0x1c6182){const _0x307a9f=_0x137362['cell'],_0x223808=_0x25999b['mapper']['toViewElement'](_0x307a9f);_0x25999b['writer']['addClass']('ck-suggestion-marker-'+_0x4fb83d,_0x223808),_0x32855c&&_0x25999b['writer']['setAttribute']('data-suggestion',_0x447c9c,_0x223808),_0x25999b['mapper']['bindElementToMarker'](_0x223808,_0x4edfa0['markerName']),_0x1ada0b&&(_0x5f1fcd['activeMarkers']['includes'](_0x4edfa0['markerName'])?_0x25999b['writer']['addClass']('ck-suggestion-marker--active',_0x223808):_0x25999b['writer']['removeClass']('ck-suggestion-marker--active',_0x223808));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4c859a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f5395,_0x138ec7,_0x393ea9)=>{_0x393ea9['options']['showSuggestionHighlights']&&_0x4c859a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f5395,_0x138ec7,_0x393ea9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x118a70,_0x416729,_0x3e7584)=>{const {type:_0x5069ec,id:_0x11a520}=tt(_0x416729['markerName']);if(!_0x5f1fcd['hasSuggestion'](_0x11a520))return;const _0x2def94=_0x5f1fcd['getSuggestion'](_0x11a520),_0x28946a=_0x2def94['data'];if('formatBlock'!=_0x2def94['type']||!_0x28946a||'setTableColumnHeader'!=_0x28946a['commandName'])return;const _0x28dad7=_0x3e7584['mapper']['markerNameToElements'](_0x416729['markerName']);if(_0x28dad7){for(const _0x334681 of _0x28dad7)_0x3e7584['writer']['removeClass']('ck-suggestion-marker-'+_0x5069ec,_0x334681),_0x3e7584['writer']['removeClass']('ck-suggestion-marker--active',_0x334681),_0x3e7584['writer']['removeAttribute']('data-suggestion',_0x334681),_0x3e7584['mapper']['unbindElementFromMarkerName'](_0x334681,_0x416729['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x2c4fbb=this['editor'],_0x5a419a=_0x2c4fbb['locale'];function _0x103c34(_0x3a7541){return{'type':'format','content':Mt(_0x5a419a,'*Format:*\x20%0',_0x3a7541)};}_0x2c4fbb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x424232=>{if('formatBlock'!=_0x424232['type'])return;const {data:_0x9379d3}=_0x424232;return _0x9379d3?'setTableRowHeader'==_0x9379d3['commandName']?_0x9379d3['commandParams'][0x0]['forceValue']?_0x103c34(Mt(_0x5a419a,'FORMAT_HEADER_ROW')):_0x103c34(Mt(_0x5a419a,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x9379d3['commandName']?_0x9379d3['commandParams'][0x0]['forceValue']?_0x103c34(Mt(_0x5a419a,'FORMAT_HEADER_COLUMN')):_0x103c34(Mt(_0x5a419a,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x4ac2e5=this['editor'];if(!_0x4ac2e5['plugins']['has']('TableEditing')||!_0x4ac2e5['config']['get']('table.enableFooters'))return;const _0x5a8499=_0x4ac2e5['locale'],_0x2cf83e=_0x4ac2e5['plugins']['get']('TrackChangesEditing');_0x2cf83e['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x2cf83e['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x5a8499,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x42a28f{afterInit(){const _0x31ee7c=this['editor'],_0x114fd7=_0x31ee7c['locale'],_0xcdd7f9=_0x31ee7c['plugins']['get']('TrackChangesEditing');function _0x238400(_0x38073c){return{'type':'format','content':''+Mt(_0x114fd7,'*Set\x20table\x20type:*\x20%0',_0x38073c)};}_0x31ee7c['plugins']['has']('TableLayout')&&(_0xcdd7f9['enableCommand']('insertTableLayout'),_0xcdd7f9['enableDefaultAttributesIntegration']('tableType'),_0xcdd7f9['descriptionFactory']['registerElementLabel'](_0x23db6b=>_0x23db6b['is']('element','table')&&'layout'===_0x23db6b['getAttribute']('tableType'),_0x1990c3=>Mt(_0x114fd7,'ELEMENT_LAYOUT_TABLE',_0x1990c3)),_0xcdd7f9['descriptionFactory']['registerDescriptionCallback'](_0x24a76c=>{const {data:_0xe65dbb}=_0x24a76c;if(_0xe65dbb&&'tableType'==_0xe65dbb['key'])switch(_0xe65dbb['newValue']){case'layout':return _0x238400(Mt(_0x114fd7,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x238400(Mt(_0x114fd7,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](We['map'](_0x5a1b6b=>[_0x5a1b6b,null]));var je=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x162bda=this['editor'];if(!_0x162bda['plugins']['has']('TableClipboard'))return;const _0x1c9d9a=_0x162bda['plugins']['get']('TrackChangesEditing'),_0x41a765=_0x162bda['plugins']['get']('TableUtils'),_0x41706f=_0x162bda['plugins']['get'](Ue),_0x4be834=_0x162bda['plugins']['get']('TableClipboard'),_0x399d4a=_0x162bda['plugins']['get']('TableSelection'),_0xe381fc=_0x162bda['plugins']['get'](gt);_0x41706f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x162bda['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x162bda['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x36f858=null,_0x3f3914=!0x1;_0xe381fc['on']('contentInsertion',(_0x319e02,_0x5bde56)=>{_0x3f3914='paste'===_0x5bde56['method'];}),_0x162bda['model']['on']('insertContent',(_0x597e9b,_0x41d692)=>{if(!_0x3f3914&&null===_0x399d4a['getSelectedTableCells']())return;const [_0x31fd4a,_0x38c8e1]=_0x41d692,_0x497500=_0x41d692[_0x41d692['length']-0x1];_0x497500&&_0x497500['forceDefaultExecution']||_0x1c9d9a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5dd4f5,_0x2158d9,_0x390d01,_0x15be6c,_0x372294){if(_0x2158d9&&!_0x2158d9['is']('documentSelection'))return!0x1;const _0x201710=_0x372294['getTableIfOnlyTableInContent'](_0x5dd4f5,_0x390d01);if(!_0x201710||!Ke(_0x201710,void 0x0,_0x15be6c))return!0x1;const _0x39a72f=_0x15be6c['getSelectionAffectedTableCells'](_0x390d01['document']['selection']);if(!_0x39a72f['length'])return!0x1;const _0x44e767=_0x39a72f[0x0]['findAncestor']('table'),_0x28e327=_0x15be6c['getRowIndexes'](_0x39a72f),_0x5c391a=_0x15be6c['getColumnIndexes'](_0x39a72f),_0x1ba30f={'startRow':_0x28e327['first'],'endRow':_0x28e327['last'],'startColumn':_0x5c391a['first'],'endColumn':_0x5c391a['last']};return 0x1==_0x39a72f['length']&&(_0x1ba30f['endRow']+=_0x15be6c['getRows'](_0x201710)-0x1,_0x1ba30f['endColumn']+=_0x15be6c['getColumns'](_0x201710)-0x1),Ke(_0x44e767,_0x1ba30f,_0x15be6c);}(_0x31fd4a,_0x38c8e1,_0x162bda['model'],_0x41a765,_0x4be834)&&(_0x597e9b['stop'](),_0x36f858={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x162bda['model']['change'](()=>{_0x162bda['model']['insertContent'](_0x41d692[0x0],_0x41d692[0x1],_0x41d692[0x2],{'forceDefaultExecution':!0x0});const _0x584bcc=_0x5b5c0d(),{rowInsertionRanges:_0x444e8c,columnInsertionRanges:_0x1b0c6a,insertionRanges:_0x49c5e8,deletionRanges:_0x97957a,cells:_0x591e5b}=_0x36f858;_0x444e8c['length']&&_0x1c9d9a['markMultiRangeInsertion'](_0x444e8c,'tablePasteRow',{'tablePasteChainId':_0x584bcc}),_0x1b0c6a['length']&&_0x1c9d9a['markMultiRangeInsertion'](_0x1b0c6a,'tablePasteColumn',{'tablePasteChainId':_0x584bcc}),_0x49c5e8['length']&&(_0x1c9d9a['markMultiRangeInsertion'](_0x49c5e8,'tablePaste',{'tablePasteChainId':_0x584bcc,'skipNestingCheck':!0x0}),_0x49c5e8['forEach'](_0x59aa98=>_0x59aa98['detach']?.())),_0x97957a['length']&&(_0x1c9d9a['markMultiRangeDeletion'](_0x97957a,'tablePaste',{'tablePasteChainId':_0x584bcc,'skipNestingCheck':!0x0}),_0x97957a['forEach'](_0x16f05a=>_0x16f05a['detach']?.()));const _0x8fb3fb=_0x1c9d9a['markMultiRangeBlockFormat'](_0x591e5b['map'](({element:_0x57f085})=>_0x57f085),{'formatGroupId':_0x5b5c0d()},[],'tablePasteCell',{'tablePasteChainId':_0x584bcc});if(_0x8fb3fb){const _0x4064c2=_0x8fb3fb['getMarkers'](),_0x4ff442=[];for(const {element:_0x541cd9,attributes:_0x2e45f6}of _0x591e5b){if(!_0x2e45f6)continue;const _0x49beb1=_0x162bda['model']['createRangeOn'](_0x541cd9),_0x2712f4=_0x4064c2['find'](_0x47468a=>_0x47468a['getRange']()['isEqual'](_0x49beb1));_0x2712f4&&_0x4ff442['push']([_0x2712f4['name'],_0x2e45f6]);}_0x4ff442['length']&&_0x8fb3fb['setAttribute']('markerAttributes',Object['fromEntries'](_0x4ff442));}_0x36f858=null;}));},{'priority':_0x5ee963['high']+0xa}),_0xe381fc['on']('contentInsertion',()=>{_0x3f3914=!0x1;},{'priority':'lowest'}),_0x162bda['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x56179f,_0x58be68)=>{const [_0x2b341e,_0xcafff4,,_0x50097b]=_0x58be68;if(!_0x36f858)return;_0x56179f['stop']();const _0x7d38ba=_0x2b341e['cell'],_0x532d11=_0xcafff4,_0x4323c4=ze(_0x7d38ba),_0x4e3553=ze(_0x532d11);_0x56179f['return']=_0x7d38ba;let _0x483701=null,_0x56a067=null;if(_0x4e3553||_0x4323c4){if(_0x4323c4&&!_0x4e3553){_0x50097b['remove'](_0x7d38ba['getChild'](0x0));for(const _0x433363 of Array['from'](_0x532d11['getChildren']()))_0x50097b['insert'](_0x433363,_0x7d38ba,'end');const _0x473ed0=_0x36f858['rowInsertionIndexes']['includes'](_0x2b341e['row']),_0x2aa5ae=_0x36f858['columnInsertionIndexes']['includes'](_0x2b341e['column']);_0x473ed0||_0x2aa5ae||(_0x483701=rt['fromRange'](_0x50097b['createRangeIn'](_0x7d38ba)));}else _0x4e3553&&!_0x4323c4&&(_0x56a067=_0x50097b['createRangeIn'](_0x7d38ba));}else{const _0x2242a0=_0x50097b['createElement']('tableCellSuggestion'),_0x3f6dac=_0x50097b['createElement']('tableCellSuggestion');_0x50097b['wrap'](_0x50097b['createRangeIn'](_0x7d38ba),_0x3f6dac),_0x50097b['insert'](_0x2242a0,_0x7d38ba,0x0);for(const _0x531932 of Array['from'](_0x532d11['getChildren']()))_0x50097b['insert'](_0x531932,_0x2242a0,'end');_0x483701=rt['fromRange'](_0x50097b['createRangeOn'](_0x2242a0)),_0x56a067=rt['fromRange'](_0x50097b['createRangeOn'](_0x3f6dac));}const _0x23c6e7=Array['from'](_0x532d11['getAttributes']())['filter'](([_0x3bbd8a])=>We['includes'](_0x3bbd8a));_0x36f858['cells']['push']({'element':_0x7d38ba,'attributes':_0x23c6e7['length']?Object['fromEntries'](_0x23c6e7):null}),_0x483701&&_0x36f858['insertionRanges']['push'](_0x483701),_0x56a067&&_0x36f858['deletionRanges']['push'](_0x56a067);},{'priority':'high'}),_0x41a765['on']('insertColumns',(_0xfee852,_0x3ce8c2)=>{const [_0x4a687c,_0x364148={}]=_0x3ce8c2;if(!_0x36f858)return;const _0x41aec4=_0x364148['at']||0x0,_0x4aa655=_0x364148['columns']||0x1;_0x36f858['columnInsertionIndexes']=new Array(_0x4aa655)['fill'](_0x41aec4)['map']((_0x378369,_0x3ab951)=>_0x378369+_0x3ab951);for(const {cell:_0xa437c8}of _0x41a765['createTableWalker'](_0x4a687c,{'startColumn':_0x41aec4,'endColumn':_0x41aec4+_0x4aa655-0x1}))_0x36f858['columnInsertionRanges']['push'](_0x162bda['model']['createRangeOn'](_0xa437c8));},{'priority':'low'}),_0x41a765['on']('insertRows',(_0x20ead7,_0x1749c5)=>{const [_0x3ace66,_0x117604={}]=_0x1749c5;if(!_0x36f858)return;const _0x5a0730=_0x117604['at']||0x0,_0x8b2672=_0x117604['rows']||0x1;_0x36f858['rowInsertionIndexes']=new Array(_0x8b2672)['fill'](_0x5a0730)['map']((_0x1eda9d,_0x18a215)=>_0x1eda9d+_0x18a215);for(const {cell:_0x5d93d9}of _0x41a765['createTableWalker'](_0x3ace66,{'startRow':_0x5a0730,'endRow':_0x5a0730+_0x8b2672-0x1}))_0x36f858['rowInsertionRanges']['push'](_0x162bda['model']['createRangeOn'](_0x5d93d9));},{'priority':'low'}),_0x1c9d9a['descriptionFactory']['registerDescriptionCallback'](_0x475563=>{if(_0x475563['subType']&&_0x475563['subType']['startsWith']('tablePaste'))return _0x475563['previous']?{}:{'type':'insertion','content':Mt(_0x162bda['locale'],'*Replace\x20table\x20cells*')};});const _0x1a09da=()=>!0x1;for(const _0x1e6601 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('insertion',_0x1e6601,'join',_0x1a09da),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('deletion',_0x1e6601,'join',_0x1a09da),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e6601,'join',_0x1a09da);_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1a09da),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x409232,_0x5e5180,_0x2668f0)=>{const _0x3f2684=_0x409232['map'](_0x7081f=>_0x7081f['getContainedElement']())['filter'](_0x40f945=>_0x40f945),_0x10be29=new Map(_0x3f2684['map'](_0x4d4b30=>[_0x4d4b30,null]));if(_0x36f858){for(const {element:_0x4527e8,attributes:_0x3adcdc}of _0x36f858['cells'])_0x3adcdc&&_0x10be29['set'](_0x4527e8,_0x3adcdc);}else{if(_0x2668f0&&_0x2668f0['markerAttributes'])for(const [_0x2c07a5,_0x378d0f]of Object['entries'](_0x2668f0['markerAttributes'])){const _0x512c33=_0x162bda['model']['markers']['get'](_0x2c07a5),_0x157c59=_0x512c33?_0x512c33['getRange']()['getContainedElement']():null;_0x157c59&&_0x10be29['set'](_0x157c59,_0x378d0f);}}_0x162bda['model']['change'](_0xe4e30e=>{for(const [_0xf21320,_0x74c9fa]of _0x10be29)_0xe4e30e['setAttributes']({...Ve,..._0x74c9fa},_0xf21320);});});const _0x45ea15=(_0x4fc4ca,_0x433320)=>{_0x1c9d9a['_suggestionFactory']['registerCustomCallback'](_0x4fc4ca,'tablePaste',_0x433320,(_0x3ccb66,_0x24ea2b,_0x34768d)=>{_0x162bda['model']['change'](_0xcb08d=>{const _0x436c65=[];for(const _0x58ba22 of _0x3ccb66){const _0x2c8b54=_0x58ba22['start']['nodeAfter'];_0x2c8b54['is']('element','tableCellSuggestion')&&_0x436c65['push'](_0x2c8b54);}_0x1c9d9a['_suggestionFactory']['getSuggestionCallback'](_0x4fc4ca,null,_0x433320)(_0x3ccb66,_0x24ea2b,_0x34768d);for(const _0x175405 of _0x436c65)'$graveyard'!=_0x175405['root']['rootName']&&_0xcb08d['unwrap'](_0x175405);});});};_0x45ea15('insertion','accept'),_0x45ea15('insertion','discard'),_0x45ea15('deletion','accept'),_0x45ea15('deletion','discard'),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x213514=>{const _0x42b9b6=_0x213514['map'](_0x1c0994=>_0x1c0994['getContainedElement']()),_0x2fbfcd=_0x42b9b6[0x0]['findAncestor']('table'),{minRow:_0x412ca8,maxRow:_0x317626}=_0x41706f['_getCoordsForCells'](_0x42b9b6);_0x41a765['removeRows'](_0x2fbfcd,{'at':_0x412ca8,'rows':_0x317626-_0x412ca8+0x1});}),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x31ff98=>{const _0x1b1936=_0x31ff98['map'](_0x623616=>_0x623616['getContainedElement']()),_0x5821d8=_0x1b1936[0x0]['findAncestor']('table'),{minColumn:_0x541e38,maxColumn:_0x2e10a0}=_0x41706f['_getCoordsForCells'](_0x1b1936);_0x41a765['removeColumns'](_0x5821d8,{'at':_0x541e38,'columns':_0x2e10a0-_0x541e38+0x1});});const _0x450a17=(_0x50f9eb,_0x5e5340)=>{if(!_0x5e5340['subType']||!_0x5e5340['subType']['startsWith']('tablePaste'))return;const _0x1a0a4f=_0x5e5340['attributes']['tablePasteChainId'],_0x38ef99=_0x1c9d9a['getSuggestions']()['filter'](_0x2c859e=>_0x2c859e['isInContent']&&_0x2c859e['attributes']&&_0x2c859e['attributes']['tablePasteChainId']==_0x1a0a4f);_0x38ef99['length']&&_0x5e5340['getAllAdjacentSuggestions']()['length']!=_0x38ef99['length']&&_0x38ef99['reduce']((_0x139fb2,_0x50f9ec)=>(_0x139fb2['next']=_0x50f9ec,_0x50f9ec['previous']=_0x139fb2,_0x50f9ec));};function _0x2b6891(_0x144923,_0x4ab169=!0x0){const {id:_0x4be9b6,authorId:_0xae2833}=tt(_0x144923['markerName']),_0x1fb504=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x120d0c=_0x1c9d9a['activeMarkers']['includes'](_0x144923['markerName']);return _0x120d0c&&_0x1fb504['push']('ck-suggestion-marker--active'),{'classes':_0x1fb504,'attributes':{'data-suggestion':_0x4be9b6,'data-author-id':_0xae2833},'priority':_0x120d0c&&_0x4ab169?0xbc2:0xbb8};}_0x1c9d9a['on']('suggestionLoaded',_0x450a17,{'priority':'high'}),_0x1c9d9a['on']('suggestionUnloaded',_0x450a17,{'priority':'high'}),_0x162bda['model']['document']['registerPostFixer'](()=>{let _0x2b7f2d=!0x1;const _0x2d4b55=Array['from'](_0x162bda['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d8ae5,data:_0x5d3706}of _0x2d4b55){const {group:_0x4c5004,type:_0x45f11b,id:_0x54ef93}=tt(_0x2d8ae5);if('suggestion'!=_0x4c5004||'deletion'!=_0x45f11b||_0x5d3706['oldRange'])continue;if(!_0x1c9d9a['hasSuggestion'](_0x54ef93))continue;const _0x4ad391=_0x1c9d9a['getSuggestion'](_0x54ef93)['getRanges'](),_0x16d714=_0x162bda['plugins']['get']('Users')['me'];for(const _0x29b7b3 of _0x1c9d9a['getSuggestions']())if(_0x29b7b3['isInContent']&&_0x29b7b3['author']==_0x16d714&&'formatBlock'==_0x29b7b3['type']&&'tablePasteCell'==_0x29b7b3['subType']&&_0x29b7b3['getRanges']()['every'](_0x272455=>_0x4ad391['some'](_0x31d0c5=>_0x31d0c5['containsRange'](_0x272455,!0x0)))){for(const _0x536e3f of _0x29b7b3['getAllAdjacentSuggestions']())_0x536e3f['isInContent']&&(_0x536e3f['discard'](),_0x2b7f2d=!0x0);}}return _0x2b7f2d;}),_0x162bda['model']['document']['registerPostFixer'](_0x39e010=>{const _0x22da0d=_0x162bda['commands']['get']('redo');if(!_0x22da0d||!_0x22da0d['_createdBatches']['has'](_0x39e010['batch']))return!0x1;let _0x6112c1=!0x1;const _0x58e474=_0x162bda['plugins']['get']('Users')['me'],_0x366c7d=_0x162bda['model']['document']['differ']['getChanges'](),_0x3661ec=Array['from'](_0x162bda['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2823b1,data:_0x42cd54})=>{const {group:_0x350f19,subType:_0x36936d,authorId:_0x4c61e5}=tt(_0x2823b1);return'suggestion'==_0x350f19&&'tablePaste'==_0x36936d&&_0x4c61e5==_0x58e474['id']&&!_0x42cd54['oldRange'];});for(const _0x251383 of _0x366c7d){if('insert'!=_0x251383['type']||'tableCellSuggestion'!=_0x251383['name']||0x1!=_0x251383['length'])continue;const _0xf12dda=_0x39e010['createRange'](_0x251383['position'],_0x251383['position']['getShiftedBy'](0x1));if(!_0x3661ec['find'](({data:_0x490e85})=>_0x490e85['newRange']['isEqual'](_0xf12dda))){for(const {name:_0x30c303,data:_0x515681}of _0x3661ec)if(_0xf12dda['containsRange'](_0x515681['newRange'])){_0x39e010['updateMarker'](_0x30c303,{'range':_0xf12dda}),_0x6112c1=!0x0;break;}}}return _0x6112c1;}),_0x162bda['model']['document']['registerPostFixer'](_0x4438f0=>{let _0x5b7fe9=!0x1;const _0x5acfc8=_0x162bda['plugins']['get']('Users')['me'],_0x27b934=_0x1c9d9a['getSuggestions']()['filter'](_0x5e182c=>_0x5e182c['isInContent']&&_0x5e182c['author']==_0x5acfc8),_0x35141c=new Set(),_0x5d04f8=new Set();for(const _0x3048a7 of _0x27b934)if('tablePaste'==_0x3048a7['subType'])for(const _0x42f65b of _0x3048a7['getMarkers']()){const _0x5a19c6=_0x42f65b['getRange']()['getContainedElement']();if(_0x5a19c6){if(_0x5a19c6['is']('element','tableCellSuggestion')&&ze(_0x5a19c6)){_0x3048a7['removeMarker'](_0x42f65b['name']),_0x35141c['add'](_0x5a19c6),_0x5b7fe9=!0x0;const _0x3e0158=_0x5a19c6['nextSibling'],_0x1f677c=_0x5a19c6['previousSibling'],_0x531d27=_0x3e0158&&_0x3e0158['is']('element','tableCellSuggestion'),_0x56955f=_0x1f677c&&_0x1f677c['is']('element','tableCellSuggestion');_0x531d27&&!_0x35141c['has'](_0x3e0158)&&_0x5d04f8['add'](_0x3e0158),_0x56955f&&!_0x35141c['has'](_0x1f677c)&&_0x5d04f8['add'](_0x1f677c);}else _0x5a19c6['is']('element','paragraph')&&_0x5a19c6['isEmpty']&&(_0x3048a7['removeMarker'](_0x42f65b['name']),_0x5b7fe9=!0x0);}}else{if('tablePasteCell'==_0x3048a7['subType']){if(!_0x3048a7['attributes']||!_0x3048a7['attributes']['tablePasteChainId'])continue;const _0x41e147=_0x3048a7['attributes']['markerAttributes'];if(_0x41e147&&Object['keys'](_0x41e147)['length'])continue;const _0x66b45c=_0x3048a7['attributes']['tablePasteChainId'];let _0xbe5442=!0x0,_0x471ce5=!0x0;for(const _0xd6852e of _0x27b934)if(_0xd6852e['subType']&&_0xd6852e['subType']['startsWith']('tablePaste')){if(!_0xd6852e['attributes']['tablePasteChainId']){_0x471ce5=!0x1;break;}if(_0xd6852e['id']!=_0x3048a7['id']&&_0xd6852e['attributes']['tablePasteChainId']==_0x66b45c){_0xbe5442=!0x1;break;}}_0x471ce5&&_0xbe5442&&(_0x3048a7['removeMarkers'](),_0x5b7fe9=!0x0);}}for(const _0xb2ee89 of _0x35141c)_0x4438f0['remove'](_0xb2ee89);for(const _0x9b99fa of _0x5d04f8)_0x4438f0['unwrap'](_0x9b99fa);return _0x5b7fe9;}),_0x162bda['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x527db6=>_0x2b6891(_0x527db6),'converterPriority':'high'}),_0x162bda['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c264b,_0x52566d)=>_0x52566d['options']['showSuggestionHighlights']?_0x2b6891(_0x2c264b,!0x1):null,'converterPriority':'high'});const _0x10e45c=_0x162bda['editing']['view'];this['listenTo'](_0x10e45c['document'],'clipboardOutput',(_0x291eaf,_0x53d919)=>{const _0x356383=[];for(const _0x5c0b4e of _0x10e45c['createRangeIn'](_0x53d919['content'])['getItems']())_0x5c0b4e['is']('element','suggestion-td')&&_0x356383['push'](_0x5c0b4e);_0x10e45c['change'](_0x4dd76d=>{for(const _0xf1882f of _0x356383)_0x4dd76d['move'](_0x4dd76d['createRangeIn'](_0xf1882f),_0x4dd76d['createPositionBefore'](_0xf1882f)),_0x4dd76d['remove'](_0xf1882f);});});}};function ze(_0x4e7814){if(_0x4e7814['isEmpty'])return!0x0;const _0x2f97d6=_0x4e7814['getChild'](0x0);return _0x2f97d6['is']('element','paragraph')&&_0x2f97d6['isEmpty'];}function Ke(_0xe5b90d,_0x4fd8b6={},_0x302c57){for(const {isAnchor:_0x418c7a,cellHeight:_0x4a23be,cellWidth:_0x575a53}of _0x302c57['createTableWalker'](_0xe5b90d,{'includeAllSlots':!0x0,..._0x4fd8b6}))if(!_0x418c7a||0x1!=_0x4a23be||0x1!=_0x575a53)return!0x1;return!0x0;}var Xe=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x161a4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x161a4d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x161a4d['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x161a4d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x161a4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x17cbf7=_0x161a4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x161a4d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x11726f,_0x581cc6)=>{_0x17cbf7(_0x11726f,_0x581cc6),this['_restoreCellWidths'](_0x11726f[0x0]['start']['nodeAfter'],_0x581cc6['commandParams'][0x0]['cellWidths']);}),_0x161a4d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xdf197d,_0x3dcf70){const _0x17aabc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f054f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49cfb4=_0x3dcf70['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ef691=_0x2f054f['getColumnGroupElement'](_0x49cfb4);let _0x1a6801=_0x1ef691?_0x2f054f['getTableColumnsWidths'](_0x1ef691):null,_0x206e82=_0x49cfb4['getAttribute']('tableWidth')||null;const _0x18906a=_0x3dcf70['tableWidth']||_0x206e82,_0x3441f9=_0x3dcf70['columnWidths']||_0x1a6801;let _0x2a55d8=this['_getCellWidths'](_0x49cfb4);const _0x4bed06=this['_foldResizeTableSuggestion'](_0x49cfb4);_0x4bed06&&(_0x206e82=_0x4bed06['tableWidth'],_0x1a6801=_0x4bed06['columnWidths'],_0x2a55d8=_0x4bed06['cellWidths']||_0x2a55d8),_0xdf197d({'table':_0x49cfb4,'tableWidth':_0x18906a,'columnWidths':_0x3441f9}),_0x17aabc['markBlockFormat'](_0x49cfb4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x206e82,'columnWidths':_0x1a6801,'cellWidths':_0x2a55d8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x58e0f3,_0x52fa68={}){if(void 0x0===_0x52fa68['value']||''===_0x52fa68['value'])return void _0x58e0f3(_0x52fa68);const _0x266431=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37e5fb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x31ef2b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x52fa68['batch']||(_0x52fa68['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x52fa68['batch'],()=>{const _0xb9f56a=_0x37e5fb['getColumnGroupElement'](_0x31ef2b);let _0x35c68f=_0xb9f56a?_0x37e5fb['getTableColumnsWidths'](_0xb9f56a):null,_0x432bd9=_0x31ef2b['getAttribute']('tableWidth')||null,_0x6b9f9a=this['_getCellWidths'](_0x31ef2b);const _0xf7b81=this['_foldResizeTableSuggestion'](_0x31ef2b,!0x0);_0xf7b81&&(_0x432bd9=_0xf7b81['tableWidth'],_0x35c68f=_0xf7b81['columnWidths'],_0x6b9f9a=_0xf7b81['cellWidths']||_0x6b9f9a),_0x58e0f3(_0x52fa68),_0x266431['markBlockFormat'](_0x31ef2b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x432bd9,'columnWidths':_0x35c68f,'cellWidths':_0x6b9f9a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x4d8924,_0x15bf1c=!0x1){const _0x44bfee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x318e24=this['editor']['plugins']['get']('Users')['me'];for(const _0x49a26f of _0x44bfee['getSuggestions']({'skipNotAttached':!0x0})){const _0x4db67d=_0x49a26f['getContainedElement']();if('resizeTable'===_0x49a26f['subType']&&_0x4db67d===_0x4d8924){_0x49a26f['author']!==_0x318e24&&(_0x15bf1c?_0x49a26f['removeMarkers']():_0x49a26f['discard']());const _0x482b7d=_0x49a26f['data']['commandParams'];return{'tableWidth':_0x482b7d[0x0]['tableWidth'],'columnWidths':_0x482b7d[0x0]['columnWidths'],'cellWidths':_0x482b7d[0x0]['cellWidths']};}}return null;}_getCellWidths(_0xfb29d1){const _0x485960=[];for(const _0x2aa2bb of _0xfb29d1['getChildren']())if(_0x2aa2bb['is']('element','tableRow')){for(const _0x31826d of _0x2aa2bb['getChildren']())_0x485960['push'](_0x31826d['getAttribute']('tableCellWidth')||null);}return _0x485960;}_restoreCellWidths(_0x51e367,_0x282c72){_0x282c72&&this['editor']['model']['change'](_0x5e8b00=>{let _0x8ebaf5=0x0;for(const _0x53f044 of _0x51e367['getChildren']())if(_0x53f044['is']('element','tableRow'))for(const _0x51a296 of _0x53f044['getChildren']()){const _0x2e9af9=_0x282c72[_0x8ebaf5++];_0x2e9af9&&_0x5e8b00['setAttribute']('tableCellWidth',_0x2e9af9,_0x51a296);}});}handleSuggestionDescription(_0xc31b6d){if('formatBlock'!=_0xc31b6d['type']&&'formatInline'!=_0xc31b6d['type'])return;const {data:_0x427356}=_0xc31b6d;return _0x427356&&'resizeTable'===_0x427356['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x42a28f{afterInit(){const _0x4fb0bd=this['editor'];_0x4fb0bd['plugins']['has']('Template')&&_0x4fb0bd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x42a28f{afterInit(){const _0x569e10=this['editor'];if(!_0x569e10['commands']['get']('insertTableOfContents'))return;_0x569e10['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x158752=_0x569e10['plugins']['get']('TrackChangesEditing'),_0x452a1c=_0x569e10['locale'];_0x158752['descriptionFactory']['registerElementLabel']('tableOfContents',_0x30289c=>Mt(_0x452a1c,'ELEMENT_TABLE_OF_CONTENTS',_0x30289c));}},Qe=class extends _0x42a28f{afterInit(){const _0x76d536=this['editor'];_0x76d536['plugins']['has']('Title')&&(_0x76d536['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x76d536['locale'],'ELEMENT_TITLE')),_0x76d536['model']['document']['registerPostFixer'](_0x5a12cc=>{let _0x544376=!0x1;const _0x4e89e4=Array['from'](_0x76d536['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8fb97d,data:_0x3a10a7}of _0x4e89e4){const {group:_0x5933e3}=tt(_0x8fb97d);if('suggestion'!==_0x5933e3||!_0x3a10a7['newRange'])continue;const _0x5f389d=_0x3a10a7['newRange'],_0x13f755=_0x5f389d['end']['nodeBefore'];if(!_0x13f755||!_0x13f755['is']('element','title-content'))continue;if(!_0x5f389d['start']['isTouching'](_0x5f389d['end']))continue;const _0x202710=_0x76d536['model']['schema']['getNearestSelectionRange'](_0x5f389d['end'],'forward');if(_0x202710&&_0x202710['isCollapsed']){const _0x383099=_0x5a12cc['createRange'](_0x5f389d['start'],_0x202710['start']);_0x383099['isEqual'](_0x5f389d)||(_0x5a12cc['updateMarker'](_0x8fb97d,{'range':_0x383099}),_0x544376=!0x0);}_0x544376||(_0x5a12cc['removeMarker'](_0x8fb97d),_0x544376=!0x0);}return _0x544376;}));}},Ze=class extends _0x42a28f{afterInit(){const _0x50563e=this['editor'],_0x51fea2=_0x50563e['plugins']['get']('TrackChangesEditing');_0x50563e['plugins']['has']('Uploadcare')&&(_0x51fea2['enableCommand']('uploadcare'),_0x50563e['plugins']['has']('UploadcareImageEdit')&&(_0x51fea2['enableCommand']('uploadcareImageEdit'),_0x51fea2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x51fea2['descriptionFactory']['registerDescriptionCallback'](_0x3d1d93=>{if('attribute'!=_0x3d1d93['type'])return;const {data:_0x200768}=_0x3d1d93;return _0x200768&&'uploadcareImageId'==_0x200768['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x42a28f{afterInit(){const _0x2e35cd=this['editor'],_0x5945f1=_0x2e35cd['plugins']['get']('TrackChangesEditing');_0x2e35cd['plugins']['has']('UndoEditing')&&(_0x5945f1['enableCommand']('undo'),_0x5945f1['enableCommand']('redo'));}},tn=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x1d114d=this['editor'];_0x1d114d['plugins']['has']('TableCaptionEditing')&&_0x1d114d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x42a28f{tableProperties;tableCellProperties;constructor(_0x2af823){super(_0x2af823),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x4bea23=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x15fbf0 of this['tableProperties'])_0x4bea23['enableCommand'](_0x15fbf0,(_0x53bfed,_0xde687b)=>{const _0x34c2ec=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x15fbf0,[_0x34c2ec],this['tableProperties'],'tableProperties',_0x53bfed,_0xde687b);});_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4bea23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2bbf68,_0x3c6597)=>this['handleDiscardAction'](this['tableProperties'],_0x2bbf68,_0x3c6597)),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4ba3ff of this['tableCellProperties'])this['editor']['commands']['get'](_0x4ba3ff)&&_0x4bea23['enableCommand'](_0x4ba3ff,(_0x2e30be,_0x20c380)=>{const _0x54e480=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4ba3ff,_0x54e480,this['tableCellProperties'],'tableCellProperties',_0x2e30be,_0x20c380);});_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4bea23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x44ca67,_0x15d2d1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x44ca67,_0x15d2d1)),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4bea23['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x4bea23['descriptionFactory']['registerDescriptionCallback'](_0x56228b=>this['handleSuggestionDescription'](_0x56228b)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x1794b5,_0x2404d4,_0x1febf5,_0x3b2997,_0x1cce52,_0x4b86c1){const _0x3e2c8a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4b86c1['batch'],()=>{for(const _0x35ce49 of _0x2404d4)if(this['_getSuggestion'](_0x35ce49,_0x3b2997))_0x1cce52(_0x4b86c1);else{const _0x519b54={};for(const _0x2f804d of _0x1febf5){const _0x1b982a=_0x35ce49['getAttribute'](_0x2f804d);void 0x0!==_0x1b982a&&(_0x519b54[_0x2f804d]=_0x1b982a);}const _0xd4c4=this['_getResizedColumnWidths'](_0x35ce49);_0xd4c4&&(_0x519b54['columnWidths']=_0xd4c4),_0x1cce52(_0x4b86c1),_0x3e2c8a['markBlockFormat'](_0x35ce49,{'commandParams':[_0x519b54]},[],_0x3b2997);}});}handleDiscardAction(_0x119d0e,_0x20bd86,_0x43d4f3){const _0x437858=_0x20bd86[0x0]['start']['nodeAfter'],_0x2c09da=_0x43d4f3['commandParams'][0x0];this['editor']['model']['change'](_0x332806=>{for(const _0x5e10b4 of _0x119d0e)void 0x0!==_0x2c09da[_0x5e10b4]?_0x332806['setAttribute'](_0x5e10b4,_0x2c09da[_0x5e10b4],_0x437858):_0x332806['removeAttribute'](_0x5e10b4,_0x437858);if(_0x2c09da['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x574112=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16a16a=_0x574112['getColumnGroupElement'](_0x437858);if(_0x16a16a){const _0x2daaae=_0x574112['getTableColumnsWidths'](_0x16a16a),_0x39b404=_0x437858['getAttribute']('tableWidth');if(('string'==typeof _0x39b404&&_0x39b404['trim']()['endsWith']('px'))!==_0x2daaae['some'](_0x3c0aab=>'string'==typeof _0x3c0aab&&_0x3c0aab['endsWith']('px'))){const _0x3a8da1=_0x574112['getTableColumnElements'](_0x16a16a);_0x2c09da['columnWidths']['forEach']((_0x520af8,_0x36f313)=>{_0x3a8da1[_0x36f313]&&_0x332806['setAttribute']('columnWidth',_0x520af8,_0x3a8da1[_0x36f313]);});}}}});}_getResizedColumnWidths(_0x272483){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x272483['is']('element','table'))return;const _0x5889b5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e674c=_0x5889b5['getColumnGroupElement'](_0x272483);return _0x1e674c?_0x5889b5['getTableColumnsWidths'](_0x1e674c):void 0x0;}handleSuggestionDescription(_0x4aaaf2){if(_0x4aaaf2['data'])switch(_0x4aaaf2['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x328092,_0x583514){const _0x3e5775=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1c1fe8 of _0x3e5775['getSuggestions']({'skipNotAttached':!0x0})){const _0x48d9c2=_0x1c1fe8['getContainedElement']();if(_0x1c1fe8['subType']===_0x583514&&_0x48d9c2===_0x328092)return _0x1c1fe8;}return null;}_registerTablePropertiesAttributes(){const _0x4b1fb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5213bb=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xfce2a of _0x5213bb){const _0x2776e8=_0xfce2a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4b1fb8['descriptionFactory']['registerAttributeLabel'](_0xfce2a,Mt(this['editor']['locale'],'FORMAT_'+_0x2776e8));}}},nn=class extends _0x42a28f{afterInit(){const _0x3d8d30=this['editor'];if(!_0x3d8d30['plugins']['has']('LineHeight'))return;const _0x350e7b=_0x3d8d30['plugins']['get']('TrackChangesEditing'),_0x59f399=_0x3d8d30['locale'];_0x350e7b['enableDefaultAttributesIntegration']('lineHeight'),_0x350e7b['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x59f399,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0xc3eca2){return'marker'==_0xc3eca2['type']&&_0xc3eca2['name']['startsWith']('$markedRemove');}function on(_0x2e0c27){return _0x2e0c27?[_0x2e0c27]:[];}var an=class extends _0x42a28f{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x51a4b7,_0x407cac,_0x3f25ff,_0x3b38a1,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xedcda9){super(_0xedcda9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x472090,_0x395a94,_0x48d390,_0x19d867)=>{this['_model']['change'](()=>{for(const _0x33b136 of[..._0x19d867,..._0x48d390])this['_model']['markers']['has'](_0x33b136)&&_0xedcda9['editing']['reconvertMarker'](_0x33b136);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new cn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xedcda9['plugins']['get'](_0x51a4b7),this['_suggestionsConversion']=_0xedcda9['plugins']['get'](_0x407cac),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xedcda9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xedcda9['config']['get']('trackChanges.trackFormatChanges'),_0xedcda9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xedcda9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0xedcda9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x1248ec=this['editor'];_0x1248ec['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ab3e0,{writer:_0x5985a0})=>{let _0x46daef='suggestion:'+_0x2ab3e0['getAttribute']('suggestion-type')+':'+_0x2ab3e0['getAttribute']('id');return _0x2ab3e0['getAttribute']('marker-count')&&(_0x46daef+=':'+_0x2ab3e0['getAttribute']('marker-count')),_0x5985a0['createElement']('$marker',{'data-name':_0x46daef});}}),_0x1248ec['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1248ec['model']['document']['registerPostFixer'](_0xe7f440=>{let _0x457af8=!0x1;const _0x2c0bbf=Array['from'](_0x1248ec['model']['document']['differ']['getChangedMarkers']()),_0x5cffa3=new Set();for(const {name:_0x2cd4cb,data:_0x3eca77}of _0x2c0bbf){const {group:_0x15e24b,type:_0x294dba,subType:_0x1e6965,id:_0x43b68c}=tt(_0x2cd4cb);if('suggestion'!==_0x15e24b)continue;const _0x5e533f=_0x1e6965?'suggestion:'+_0x294dba+':'+_0x1e6965+':'+_0x43b68c:'suggestion:'+_0x294dba+':'+_0x43b68c,_0x178a30=_0x1248ec['model']['markers']['getMarkersGroup'](_0x5e533f),_0x4ce5cf=_0x1248ec['model']['markers']['get'](_0x2cd4cb),_0x2de63a=this['_suggestions']['get'](_0x43b68c);if(null!=_0x3eca77['newRange']){'formatInline'==_0x294dba&&(_0x457af8=_0x457af8||dn(_0x3eca77['newRange'],_0x2cd4cb,_0xe7f440,_0x1248ec['model']['schema']));const _0x1b2c50='attribute'==_0x294dba&&this['_suggestionsConversion']['isBlockAttribute'](An(_0x1e6965)),_0x427a09='attribute'==_0x294dba&&this['_suggestionsConversion']['isInlineAttribute'](An(_0x1e6965));if(_0x3eca77['newRange']['isCollapsed']||'$graveyard'==_0x3eca77['newRange']['root']['rootName']||'formatBlock'==_0x294dba&&!gn(_0x3eca77['newRange'])||_0x1b2c50&&!gn(_0x3eca77['newRange'])||_0x427a09&&fn(_0x3eca77['newRange'])||'deletion'==_0x294dba&&fn(_0x3eca77['newRange'])||_0x4ce5cf&&mn(_0x4ce5cf,_0x178a30))_0xe7f440['removeMarker'](_0x2cd4cb),_0x457af8=!0x0;else{if(!_0x2de63a||!_0x2de63a['isInContent'])continue;if(_0x3eca77['newRange']&&_0x3eca77['oldRange']&&_0x3eca77['newRange']['isEqual'](_0x3eca77['oldRange']))continue;_0x5cffa3['add'](_0x2de63a);}}}return _0x5cffa3['size']>0x0&&(_0x457af8=!!this['_joinWithAdjacentSuggestions'](_0x5cffa3)||_0x457af8),_0x457af8;}),_0x1248ec['model']['document']['registerPostFixer'](_0x26e5fb=>{let _0x163a98=!0x1;for(const _0x27d653 of _0x1248ec['model']['document']['differ']['getChanges']())if('insert'==_0x27d653['type'])for(const _0x281167 of this['_suggestions']['values']()){if(_0x281167['isMultiRange']||!_0x281167['isInContent'])continue;const _0x479e14='formatBlock'==_0x281167['type'],_0x4b3406=this['_getAttributeKey'](_0x281167),_0x56243e=_0x4b3406&&this['_suggestionsConversion']['isBlockAttribute'](_0x4b3406);if(!_0x479e14&&!_0x56243e)continue;const _0xeda45=_0x281167['getFirstRange']();if(_0xeda45['start']['parent']!=_0xeda45['end']['parent']&&!_0xeda45['end']['isAtEnd']){const _0x8c57e4=_0x1248ec['model']['createPositionAt'](_0xeda45['start']['nodeAfter'],'end'),_0x5c4004=_0x1248ec['model']['createRange'](_0xeda45['start'],_0x8c57e4);_0x26e5fb['updateMarker'](_0x281167['getFirstMarker'](),{'range':_0x5c4004}),_0x163a98=!0x0;}}return _0x163a98;}),_0x1248ec['model']['document']['registerPostFixer'](_0x4821c1=>this['_processAttributeChanges'](_0x4821c1)),_0x1248ec['model']['document']['registerPostFixer'](_0x343467=>!_0x343467['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x343467)),_0x1248ec['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1248ec['model']['document']['on']('change:data',(_0x3c1abe,_0x34f4dc)=>{if(!_0x34f4dc['isLocal']||_0x34f4dc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34ff4c=_0x1248ec['model']['document']['differ']['getChanges']();if(0x0==_0x34ff4c['length'])return;const _0x24ff44=[],_0x55f9ce=_0x34ff4c['filter'](_0x5e3968=>'attribute'==_0x5e3968['type']),_0x1af41e=_0x34ff4c['filter'](_0x51abce=>'insert'==_0x51abce['type']&&'$text'!=_0x51abce['name']);for(const _0x954c87 of _0x55f9ce)this['_suggestionsConversion']['isRegisteredAttribute'](_0x954c87['attributeKey'])&&_0x24ff44['push']({'key':_0x954c87['attributeKey'],'newValue':_0x954c87['attributeNewValue'],'oldValue':_0x954c87['attributeOldValue'],'range':En(_0x954c87['range'],_0x1248ec['model'])});for(const _0x1c2b8f of _0x1af41e){if('rename'!=_0x1c2b8f['action']&&'refresh'!=_0x1c2b8f['action'])continue;const _0x34e932=Tn(_0x1c2b8f['position']['nodeAfter'],_0x1248ec['model']),_0x3737d7=_0x1c2b8f['before'];'rename'==_0x1c2b8f['action']&&_0x24ff44['push']({'key':sn,'newValue':_0x1c2b8f['name'],'oldValue':_0x3737d7['name'],'range':_0x34e932});for(const [_0x2a37a5,_0xbde540]of _0x3737d7['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2a37a5))continue;const _0x2115fd=_0x1c2b8f['attributes']['get'](_0x2a37a5);_0xbde540!==_0x2115fd&&_0x24ff44['push']({'key':_0x2a37a5,'newValue':_0x2115fd,'oldValue':_0xbde540,'range':_0x34e932});}for(const [_0xf39781,_0x236914]of _0x1c2b8f['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0xf39781)&&(_0x3737d7['attributes']['has'](_0xf39781)||_0x24ff44['push']({'key':_0xf39781,'newValue':_0x236914,'oldValue':null,'range':_0x34e932}));}0x0!=_0x24ff44['length']&&_0x1248ec['model']['enqueueChange'](_0x34f4dc,_0x18f775=>{const _0x5a3cc6=_0x5b5c0d();for(const {range:_0x485788,key:_0x41389d,oldValue:_0x2c4218,newValue:_0x26fc2d}of _0x24ff44)this['markAttributeChange'](_0x485788,_0x41389d,_0x2c4218,_0x26fc2d,{'groupId':_0x5a3cc6});this['_reduceExistingSuggestions'](_0x18f775,_0x24ff44);});},{'priority':'lowest'}),_0x1248ec['model']['markers']['on']('update:suggestion',(_0x38ff08,_0x3d86f5,_0x8d2142)=>{if(null==_0x8d2142){const {id:_0x27c671}=tt(_0x3d86f5['name']),_0x3a1699=this['_suggestions']['get'](_0x27c671);_0x3a1699&&_0x3a1699['addMarkerName'](_0x3d86f5['name']);}}),_0x1248ec['model']['document']['on']('change:data',()=>{const _0x273cc5=Array['from'](_0x1248ec['model']['document']['differ']['getChangedMarkers']())['filter'](_0x7ee5ab=>'suggestion'===tt(_0x7ee5ab['name'])['group']);if(0x0===_0x273cc5['length'])return;_0x273cc5['sort']((_0x5b7451,_0x4d70b2)=>{const _0x1cb073=_0x5b7451['data']['oldRange'],_0x3b8ef5=_0x4d70b2['data']['oldRange'];return null===_0x1cb073&&null===_0x3b8ef5?0x0:null===_0x1cb073&&null!==_0x3b8ef5?-0x1:null!==_0x1cb073&&null===_0x3b8ef5?0x1:_0x1cb073['start']['isBefore'](_0x3b8ef5['start'])?-0x1:0x1;});const _0x1b316b=new Set(),_0x39b782=new Set();for(const {name:_0x23ad26,data:_0x38fcf6}of _0x273cc5){const {id:_0x1d82c7}=tt(_0x23ad26);if(null===_0x38fcf6['oldRange']){const _0x3ae2c2=this['_handleNewSuggestionMarker'](_0x23ad26);_0x39b782['add'](_0x3ae2c2);}else{const _0x33cdd9=this['_suggestions']['get'](_0x1d82c7);null!==_0x38fcf6['newRange']||_0x33cdd9['isInContent']?(_0x1b316b['add'](_0x33cdd9['head']),_0x39b782['add'](_0x33cdd9)):this['_removeSuggestion'](_0x33cdd9);}}_0x39b782['size']>0x0&&this['_refreshSuggestionsChain'](_0x39b782);for(const _0x5e54a9 of _0x1b316b)this['fire']('suggestionChanged',_0x5e54a9);}),_0x1248ec['model']['on']('applyOperation',(_0x368ee8,_0x355df2)=>{const _0xf64fca=_0x355df2[0x0];if(!this['_suggestions']['size'])return;if(!_0xf64fca['isDocumentOperation'])return;if(_0xf64fca['batch']['isUndo']||!_0xf64fca['batch']['isLocal'])return;let _0x5c9e00,_0x27743c;switch(_0xf64fca['type']){case'insert':_0x5c9e00=_0x1248ec['model']['createPositionAt'](_0xf64fca['position']),_0x27743c=_0x5c9e00['getShiftedBy'](_0xf64fca['howMany']);break;case'split':_0x5c9e00=_0x1248ec['model']['createPositionAt'](_0xf64fca['splitPosition']),_0x27743c=_0x1248ec['model']['createPositionAt'](_0xf64fca['moveTargetPosition']);break;case'move':_0x5c9e00=_0x1248ec['model']['createPositionAt'](_0xf64fca['targetPosition']),_0x27743c=_0x5c9e00['getShiftedBy'](_0xf64fca['howMany']);break;default:return;}const _0x21b7b4=_0x1248ec['model']['createRange'](_0x5c9e00,_0x27743c);_0x1248ec['model']['change'](()=>{for(const {suggestion:_0x5c1d93,meta:_0xd18fcd}of this['_findSuggestions'](_0x21b7b4)){if(_0x5c1d93['isMultiRange'])continue;if('formatInline'==_0x5c1d93['type'])continue;const _0x4684a8=this['_getAttributeKey'](_0x5c1d93);if(_0x4684a8&&this['_suggestionsConversion']['isBlockAttribute'](_0x4684a8)&&'split'!=_0xf64fca['type'])continue;const _0x3e0443=_0x5c1d93['data']&&_0x5c1d93['data']['multipleBlocks'];('formatBlock'!=_0x5c1d93['type']||'split'==_0xf64fca['type']&&!_0x3e0443)&&(_0xd18fcd['containsRangeInObject']||'insertion'==_0x5c1d93['type']&&_0xd18fcd['isOwn']||_0x5c1d93['getFirstRange']()['containsRange'](_0x21b7b4)&&this['_breakSuggestionMarker'](_0x5c1d93,_0x5c9e00,_0x27743c));}});},{'priority':'lowest'}),_0x1248ec['model']['on']('deleteContent',(_0x3adc4d,_0xf89b0e)=>{const _0x5e87d9=_0xf89b0e[0x0],_0x1c5c2c=_0xf89b0e[0x1];if(_0x1c5c2c&&_0x1c5c2c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5e87d9['isCollapsed'])return;const _0x377790=_0x1248ec['model']['schema'],{start:_0x40deb2,end:_0x46ce68}=_0x5e87d9['getFirstRange'](),_0x30d674=_0x40deb2['nodeAfter']&&_0x377790['isLimit'](_0x40deb2['nodeAfter'])?null:_0x377790['getNearestSelectionRange'](_0x40deb2,'forward'),_0x42f8cf=_0x46ce68['nodeBefore']&&_0x377790['isLimit'](_0x46ce68['nodeBefore'])?null:_0x377790['getNearestSelectionRange'](_0x46ce68,'backward'),_0x47701c=_0x1248ec['model']['createRange'](_0x30d674?_0x30d674['start']:_0x40deb2,_0x42f8cf?_0x42f8cf['end']:_0x46ce68);_0x1248ec['model']['change'](_0x3b1114=>{this['markDeletion'](_0x47701c);const _0x2d39fc=_0x1248ec['model']['schema']['getNearestSelectionRange'](_0x47701c['start']);_0x5e87d9['is']('documentSelection')?_0x3b1114['setSelection'](_0x2d39fc):_0x5e87d9['setTo'](_0x2d39fc);}),_0x3adc4d['stop']();},{'priority':_0x5ee963['normal']+0xa}),_0x1248ec['model']['on']('insertContent',(_0x5d3172,_0x626018)=>{const _0x51a18a=_0x626018[_0x626018['length']-0x1];_0x51a18a&&_0x51a18a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1248ec['model']['change'](()=>{let _0x4dad20=_0x1248ec['model']['insertContent'](_0x626018[0x0],_0x626018[0x1],_0x626018[0x2],{'forceDefaultExecution':!0x0});if(!_0x4dad20)return;_0x5d3172['return']=_0x4dad20['clone']();const _0x3f8c3f=_0x4dad20['end']['nodeBefore'],_0x5e3c96=_0x1248ec['model']['schema'];_0x3f8c3f&&_0x5e3c96['isBlock'](_0x3f8c3f)&&!_0x5e3c96['isObject'](_0x3f8c3f)&&(_0x4dad20=_0x1248ec['model']['createRange'](_0x4dad20['start'],_0x1248ec['model']['createPositionAt'](_0x3f8c3f,'end'))),this['markInsertion'](_0x4dad20);}),_0x5d3172['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xb31725=new _t(_0x1248ec,this['_suggestions']);_0x1248ec['commands']['add']('acceptSuggestion',_0xb31725),this['enableCommand']('acceptSuggestion');const _0x2d49d5=new pt(_0x1248ec,this['_suggestions']);_0x1248ec['commands']['add']('discardSuggestion',_0x2d49d5),this['enableCommand']('discardSuggestion'),_0x1248ec['commands']['add']('acceptAllSuggestions',new Rt(_0x1248ec,_0xb31725,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1248ec['commands']['add']('discardAllSuggestions',new Rt(_0x1248ec,_0x2d49d5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1248ec['commands']['add']('acceptSelectedSuggestions',new yt(_0x1248ec,_0xb31725,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1248ec['commands']['add']('discardSelectedSuggestions',new yt(_0x1248ec,_0x2d49d5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x168872=_0x1248ec['plugins']['get'](_0x51a4b7);this['listenTo'](_0x168872,'addComment',(_0x446e50,{threadId:_0x5278a4})=>{const _0x429b09=this['_suggestions']['get'](_0x5278a4);_0x429b09&&_0x429b09['commentThread']&&0x1===_0x429b09['commentThread']['length']&&this['_updateSuggestionData'](_0x5278a4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x168872,'removeComment',(_0x44a144,{threadId:_0x1e7bb5})=>{const _0x52acc8=this['_suggestions']['get'](_0x1e7bb5);_0x52acc8&&_0x52acc8['commentThread']&&!_0x52acc8['commentThread']['length']&&this['_updateSuggestionData'](_0x1e7bb5,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x48265a){const _0x50cfc6='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x37eada=0x795c0,_0x33b1cb={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x254ef6(_0x28e09c){const _0x358ecf=new window['Promise'](_0x585a0f=>{_0x28e09c['once']('ready',_0x585a0f);}),_0x56cc38=window['Date']['now'](),_0x30261a=_0x28e09c['config']['get']('licenseKey');async function _0x19d77e(){let _0xd29bad,_0x1971f6=null,_0x88c58=null;try{return'GPL'==_0x30261a?'NotAllowed':(_0xd29bad=_0x488042(),_0xd29bad?(_0xd29bad['usageEndpoint']&&(_0x88c58=_0xe6719(_0xd29bad['usageEndpoint'],_0xd29bad['jti'])),await _0x161737()?_0x2715b9()?_0x20e683()?'Expired':_0x10dc7b()?('evaluation'==_0xd29bad['licenseType']&&(_0x1971f6=_0x526155('EvaluationLimit')),await _0x36dc5f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x20e683(){const _0x18e616=['evaluation','trial']['includes'](_0xd29bad['licenseType'])?_0x56cc38/0x3e8:0xe10*_0x37eada;return _0xd29bad['exp']<_0x18e616;}function _0x2715b9(){const _0x5d51bc=_0xd29bad['features'];if(!_0x5d51bc)return!0x1;if(_0x5d51bc['includes']('*'))return!0x0;if(_0x5d51bc['includes']('TC'))return!0x0;if(_0x5d51bc['includes']('RTC')){if(_0x24510a())return!0x0;if(_0x1c3bf6()||_0x40f34c())return!0x0;}return!0x1;}function _0x10dc7b(){const _0x35c68d=_0xd29bad['licensedHosts'];if(!_0x35c68d||0x0==_0x35c68d['length'])return!0x0;const {hostname:_0x8e5cf}=new URL(window['location']['href']);if(_0x35c68d['includes'](_0x8e5cf))return!0x0;const _0x29d654=_0x8e5cf['split']('.');return _0x35c68d['filter'](_0x411b92=>_0x411b92['includes']('*'))['map'](_0x1e41aa=>_0x1e41aa['split']('.'))['filter'](_0x6ae6f5=>_0x6ae6f5['length']<=_0x29d654['length'])['map'](_0x333d98=>Array(_0x29d654['length']-_0x333d98['length'])['fill']('*'===_0x333d98[0x0]?'*':'')['concat'](_0x333d98))['some'](_0x50a6b3=>_0x29d654['every']((_0x25cfab,_0x17f78a)=>_0x50a6b3[_0x17f78a]===_0x25cfab||'*'===_0x50a6b3[_0x17f78a]));}function _0x36dc5f(){return _0x1971f6&&_0x88c58?new window['Promise']((_0x35cea8,_0x5421c8)=>{_0x1971f6['then'](_0x35cea8,_0x5421c8),_0x88c58['then'](_0x4c6ee6=>{'Valid'!=_0x4c6ee6&&_0x35cea8(_0x4c6ee6);},_0x5421c8);}):_0x1971f6||_0x88c58||'Valid';}}function _0xe6719(_0x4903c0,_0x1d10a5){return new window['Promise'](_0x31cd84=>{if(_0x2b0cb6())return _0x31cd84('Valid');_0x2d7083(),_0x28e09c['decorate']('_sendUsageRequest');let _0x340565=!0x1;const _0x1fd137=_0x5b5c0d();function _0x16e22c(_0x1f8606){return!!_0x1f8606&&('object'==typeof _0x1f8606||'function'==typeof _0x1f8606)&&'function'==typeof _0x1f8606['then']&&'function'==typeof _0x1f8606['catch'];}function _0x22dd34(_0x548017){_0x461a35(_0x548017)['then'](_0x4283c9=>_0x4283c9&&'ok'==_0x4283c9['status']?_0x3b7894(_0x509c84(_0x1fd137+_0x1d10a5))!=_0x4283c9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3d465e=>(_0x47072f(),_0x3d465e),()=>{const _0x290d38=_0x3140ed();return null==_0x290d38?(_0x47072f(),'Valid'):_0x56cc38-_0x290d38>0x240c8400?'UsageLimit':'Valid';})['then'](_0x31cd84)['catch'](()=>{_0x31cd84('UsageLimit');});const _0x38d8f5=0x36ee80;function _0x47072f(){const _0x1d1261='llct-'+_0x3b7894(_0x509c84(_0x4903c0)),_0x2e96d3=_0x1fbeee(_0x3b7894(window['Math']['ceil'](_0x56cc38/_0x38d8f5)));window['localStorage']['setItem'](_0x1d1261,_0x2e96d3);}function _0x3140ed(){const _0x5cb7b8='llct-'+_0x3b7894(_0x509c84(_0x4903c0)),_0x78fd7=window['localStorage']['getItem'](_0x5cb7b8);return _0x78fd7?window['parseInt'](_0x1fbeee(_0x78fd7),0x10)*_0x38d8f5:null;}function _0x461a35(_0x1017d8){return new window['Promise']((_0x1fef55,_0x2c6c69)=>{_0x1017d8['then'](_0x1fef55,_0x2c6c69),window['setTimeout'](_0x2c6c69,0x1d4c0);});}}_0x28e09c['on']('_sendUsageRequest',(_0x22d9fb,_0x180e1c)=>{if(_0x180e1c[0x0]!=_0x4903c0)return _0x31cd84('UsageLimit');_0x180e1c[0x1]={..._0x180e1c[0x1],'requestId':_0x1fd137};},{'priority':'high'}),_0x28e09c['on']('_sendUsageRequest',_0x47d828=>{_0x16e22c(_0x47d828['return'])&&(_0x340565=!0x0,_0x22dd34(_0x47d828['return']));},{'priority':'low'}),_0x358ecf['then'](()=>{_0x340565||_0x31cd84('UsageLimit');});});function _0x2b0cb6(){return'auto'==_0x28e09c['editing']['view']['_overlayModeHint'];}function _0x2d7083(){_0x28e09c['editing']['view']['_overlayModeHint']='auto';}}function _0x526155(_0x34c166){const _0x2f2e77=[new window['Promise'](_0x2b8313=>setTimeout(_0x2b8313,0x93ecc)),_0x358ecf['then'](()=>new window['Promise'](_0x18eb3f=>{let _0xa8b0f2=0x0;_0x28e09c['model']['on']('applyOperation',(_0x514224,_0x214453)=>{_0x214453[0x0]['isDocumentOperation']&&_0xa8b0f2++,0x5e8==_0xa8b0f2&&(_0x18eb3f(),_0x514224['off']());});}))];return window['Promise']['race'](_0x2f2e77)['then'](()=>_0x34c166);}async function _0x440107(){await _0x358ecf,_0x28e09c['model']['change']=_0x3a091a,_0x28e09c['model']['enqueueChange']=_0x3a091a,_0x28e09c['enableReadOnlyMode']('model');}function _0x24510a(){return _0x406dfa('WebSocketGateway')&&'connected'==_0x48906a('WebSocketGateway')['state'];}function _0x1c3bf6(){return _0x406dfa('RevisionViewerIntegration');}function _0x40f34c(){return _0x406dfa('TrackChangesDataGetter');}function _0x503341(_0x13c6d3){const _0x2de05b=_0x1fd814();_0x28e09c[_0x2de05b]='trackChangesLicenseKey'+_0x13c6d3,'Valid'!=_0x13c6d3&&_0x440107();}function _0x1fd814(){const _0x254cfe=window['String'](window['performance']['now']())['replace']('.','');let _0x559414='U';for(let _0x4f8b87=0x0;_0x4f8b87<_0x254cfe['length'];_0x4f8b87+=0x2){let _0x383841=window['parseInt'](_0x254cfe['substring'](_0x4f8b87,_0x4f8b87+0x2));_0x383841>=0x3e&&(_0x383841-=0x3e),_0x559414+=_0x50cfc6[_0x383841];}return _0x559414;}function _0x488042(){const _0x50af5f=_0x30261a['split']('.');if(0x3!=_0x50af5f['length'])return null;return _0x4e20c5(_0x50af5f[0x1]);function _0x4e20c5(_0x5c9b18){const _0x648557=_0x503d88(_0x5c9b18);return _0x648557&&_0x1a4da1()?_0x648557:null;function _0x1a4da1(){const _0x129bd8=_0x648557['jti'],_0x4cf9df=window['parseInt'](_0x129bd8['substring'](_0x129bd8['length']-0x8),0x10),_0x13f54a={..._0x648557,'jti':_0x129bd8['substring'](0x0,_0x129bd8['length']-0x8)};return delete _0x13f54a['vc'],_0x509c84(_0x13f54a)==_0x4cf9df;}}}async function _0x161737(){let _0x1569a1=!0x0;try{const [_0xf6ecb6,_0xdd4ddf,_0x4d3009]=_0x30261a['split']('.');return _0x1c9889(_0xf6ecb6),await _0xa6387a(_0xf6ecb6,_0xdd4ddf,_0x4d3009),_0x1569a1;}catch{return!0x1;}function _0x1c9889(_0x3d45f7){const _0xd361f3=_0x503d88(_0x3d45f7);_0xd361f3&&'ES256'==_0xd361f3['alg']||(_0x1569a1=!0x1);}async function _0xa6387a(_0x22d3dc,_0x56e1e6,_0x373c5a){const _0x1dcfac=window['Uint8Array']['from'](_0x26dfb4(_0x373c5a),_0x4f6326=>_0x4f6326['charCodeAt'](0x0)),_0x311bd2=new window['TextEncoder']()['encode'](_0x22d3dc+'.'+_0x56e1e6),_0x44dea4=window['crypto']['subtle'];if(!_0x44dea4)return;const _0x276d8e=await _0x44dea4['importKey']('jwk',_0x33b1cb,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x44dea4['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x276d8e,_0x1dcfac,_0x311bd2)||(_0x1569a1=!0x1);}}function _0x503d88(_0x1a81c1){return _0x1a81c1['startsWith']('ey')?JSON['parse'](_0x26dfb4(_0x1a81c1)):null;}function _0x26dfb4(_0x323817){return window['atob'](_0x323817['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x509c84(_0x3b2dc5){let _0x1543ea=0x1505;function _0x169152(_0x2a1f58){for(let _0x5f5112=0x0;_0x5f5112<_0x2a1f58['length'];_0x5f5112++){const _0x497840=_0x2a1f58['charCodeAt'](_0x5f5112);_0x1543ea=(_0x1543ea<<0x5)+_0x1543ea+_0x497840,_0x1543ea&=_0x1543ea;}}function _0x2c11c7(_0x97ddba){Array['isArray'](_0x97ddba)?_0x97ddba['forEach'](_0x2c11c7):_0x97ddba&&'object'==typeof _0x97ddba?Object['entries'](_0x97ddba)['sort']()['forEach'](([_0x2c53a6,_0x3426f2])=>{_0x169152(_0x2c53a6),_0x2c11c7(_0x3426f2);}):_0x169152(window['String'](_0x97ddba));}return _0x2c11c7(_0x3b2dc5),_0x1543ea>>>0x0;}function _0x3b7894(_0x191608){return _0x191608['toString'](0x10)['padStart'](0x8,'0');}function _0x1fbeee(_0x18c01b){return _0x18c01b['split']('')['reverse']()['join']('');}function _0x406dfa(_0x3a5cde){return _0x28e09c['plugins']['has'](_0x3a5cde);}function _0x48906a(_0x4139b4){return _0x28e09c['plugins']['get'](_0x4139b4);}function _0x3a091a(){}_0x503341(await _0x19d77e());}_0x254ef6(_0x48265a['editor']);}(this);}set adapter(_0x336fad){if(this['_adapter'])throw new _0x5f6c00('track-changes-adapter-already-set',this);this['_adapter']=_0x336fad;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x48240f=!0x1,toJSON:_0x39456b=!0x1}={}){const _0x4eee84=[];for(const _0x476804 of this['_suggestions']['values']())_0x48240f&&!_0x476804['isInContent']||_0x4eee84['push'](_0x476804);return _0x39456b?_0x4eee84['map'](_0x3df44e=>_0x3df44e['toJSON']()):_0x4eee84;}getSuggestion(_0x342fb3){const _0x307dba=this['_suggestions']['get'](_0x342fb3);if(!_0x307dba)throw new _0x5f6c00('track-changes-suggestion-not-found',this);return _0x307dba;}hasSuggestion(_0xdc9e1f){return this['_suggestions']['has'](_0xdc9e1f);}addSuggestionData(_0x4507c6){const {authorId:_0x332d5b,id:_0x14d7db,originalSuggestionId:_0x2e2868,attributes:_0x3e209e}=_0x4507c6,[_0x565852,_0x5af431]=_0x4507c6['type']['split'](':'),_0x16af14=this['_suggestions']['get'](_0x14d7db)||this['_createSuggestion'](_0x565852,_0x5af431,_0x14d7db,_0x332d5b,_0x3e209e,_0x2e2868);if(this['_addThreadToSuggestion'](_0x16af14),this['_checkSuggestionCorrectness'](_0x16af14,_0x565852,_0x5af431||null,_0x332d5b),_0x16af14['createdAt']=_0x4507c6['createdAt'],_0x16af14['_isDataLoaded']=!0x0,_0x3e209e&&_0x3e209e['@external']){const _0x46aae1=_0x3e209e['@external'],_0xb3936f=this['_getExternalAuthor'](_0x46aae1['authorName']);_0x16af14['authoredAt']=_0x46aae1['createdAt'],_0x16af14['author']=_0xb3936f;}else _0x16af14['authoredAt']=_0x4507c6['createdAt'];switch(_0x4507c6['data']&&(_0x16af14['data']=_0x4507c6['data']),_0x4507c6['attributes']&&(_0x16af14['attributes']=_0x4507c6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x16af14['_saved']=!0x0),this['_suggestionState']['get'](_0x16af14)){case'notReady':this['_suggestionState']['set'](_0x16af14,'dataReady');break;case'markerReady':_0x16af14['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x16af14])),this['_refreshSuggestionsChain'](new Set([_0x16af14])),this['_suggestionState']['set'](_0x16af14,'ready'),this['fire']('suggestionLoaded',_0x16af14)):this['_suggestionState']['set'](_0x16af14,'removed');}return _0x16af14;}acceptSuggestion(_0x3eb0ca){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb9f9b9 of _0x3eb0ca['getAllAdjacentSuggestions']())_0xb9f9b9['accept']();});});}discardSuggestion(_0x2505fd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12e3b0 of _0x2505fd['getAllAdjacentSuggestions']())_0x12e3b0['discard']();});});}['enableCommand'](_0x1d47a9,_0x37f97b){const _0x49ff34=this['editor']['commands']['get'](_0x1d47a9);if(!_0x49ff34)throw new _0x5f6c00('track-changes-command-not-found',this,{'commandName':_0x1d47a9});if(this['_enabledCommands']['has'](_0x49ff34))throw new _0x5f6c00('track-changes-enable-command-twice',this,{'commandName':_0x1d47a9});this['_enabledCommands']['add'](_0x49ff34),_0x37f97b&&_0x49ff34['on']('execute',(_0x747c62,_0x26b52b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x26b52b['length']>0x0&&_0x26b52b[_0x26b52b['length']-0x1]&&_0x26b52b[_0x26b52b['length']-0x1]['forceDefaultExecution']?_0x26b52b['pop']():(_0x747c62['return']=_0x37f97b((..._0x297884)=>_0x49ff34['execute'](..._0x297884,{'forceDefaultExecution':!0x0}),..._0x26b52b),_0x747c62['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x116d88){let _0x2b10e8,_0x4f4eae;const _0x4a7f84=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2b10e8=_0x116d88();}catch(_0x4ca477){_0x4f4eae=_0x4ca477;}return _0x4a7f84||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4f4eae&&_0x5f6c00['rethrowUnexpectedError'](_0x4f4eae,this),_0x2b10e8;}markInsertion(_0x3101aa,_0x1a244a=null,_0x3e8b45={}){if(_0x3101aa['isCollapsed'])return null;const _0x52a396=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3e8b45['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1964b1,meta:_0x27c01f}of this['_findSuggestions'](_0x3101aa,'insertion'))if(_0x27c01f['isOwn']){if(!_0x27c01f['isNextTo']){if(_0x27c01f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ln(_0x1964b1,_0x3e8b45))continue;return _0x1964b1;}if(Ln(_0x1964b1,_0x3e8b45))return _0x1964b1;this['_breakSuggestionMarker'](_0x1964b1,_0x3101aa['start'],_0x3101aa['end']);break;}if(_0x1a244a==_0x1964b1['subType']&&Ln(_0x1964b1,_0x3e8b45)){const _0x2c9e00=_0x1964b1['getFirstRange']();return _0x2c9e00['start']['isEqual'](_0x3101aa['end'])?this['_setSuggestionRange'](_0x1964b1,this['_model']['createRange'](_0x3101aa['start'],_0x2c9e00['end'])):this['_setSuggestionRange'](_0x1964b1,this['_model']['createRange'](_0x2c9e00['start'],_0x3101aa['end'])),_0x1964b1;}}const _0x145af3=_0x5b5c0d(),_0x15594c=_0x52a396['id'],_0x44049b=_0x1a244a?'insertion:'+_0x1a244a:'insertion',_0x6e8457=this['_setSuggestionData']({'id':_0x145af3,'type':_0x44049b,'createdAt':new Date(),'authorId':_0x15594c,'attributes':_0x3e8b45});return this['_addSuggestionMarker'](_0x44049b,_0x145af3,_0x15594c,_0x3101aa),_0x6e8457;}markMultiRangeInsertion(_0x1a4357,_0x451cb1='multi',_0xc0e188={}){const _0x4efd62=this['editor']['plugins']['get']('Users')['me'],_0x289750=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x451cb1,'join');this['_trackingSessionId']&&(_0xc0e188['trackingSessionId']=this['_trackingSessionId']);for(const _0x2acb15 of this['getSuggestions']())if(_0x2acb15['author']['id']==_0x4efd62['id']&&'insertion'==_0x2acb15['type']&&_0x2acb15['subType']==_0x451cb1&&Ln(_0x2acb15,_0xc0e188)&&(_0x289750(_0x2acb15['getRanges'](),_0x1a4357)||_0x289750(_0x1a4357,_0x2acb15['getRanges']()))){for(const _0x57a5f9 of _0x1a4357)_0x2acb15['addRange'](_0x57a5f9);return _0x2acb15;}for(const {suggestion:_0x1e199c,meta:_0x1b5ff9}of this['_findSuggestions'](_0x1a4357,'insertion')){if(!_0x1b5ff9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1b5ff9['containsRangeInObject'])continue;if(!Ln(_0x1e199c,_0xc0e188))continue;let _0x4dcecf=!0x0;for(const _0x24d032 of _0x1e199c['getRanges']())for(const _0x51f78b of _0x1a4357)if(!_0x24d032['containsRange'](_0x51f78b)){_0x4dcecf=!0x1;break;}if(_0x4dcecf)return _0x1e199c;}const _0x3b6a71=_0x5b5c0d(),_0x3f6fab=_0x4efd62['id'],_0x499e17='insertion:'+_0x451cb1,_0x9aaf87=this['_setSuggestionData']({'id':_0x3b6a71,'type':_0x499e17,'createdAt':new Date(),'authorId':_0x3f6fab,'attributes':_0xc0e188});for(const _0x4ab05b of _0x1a4357)this['_addSuggestionMarker'](_0x499e17,_0x3b6a71,_0x3f6fab,_0x4ab05b,St['getMultiRangeId']());return _0x9aaf87;}markInlineFormat(_0x4cdc09,_0xcfc6f9,_0x44c127=null,_0x6d8134={}){if(_0x44c127=_0x44c127||hn(_0xcfc6f9),_0x4cdc09['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x6d8134['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x28afcf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44c127,'accept');return this['forceDefaultExecution'](()=>_0x28afcf([_0x4cdc09],_0xcfc6f9,_0x6d8134)),null;}const _0x13b3ae=this['editor']['plugins']['get']('Users')['me'],_0xd8587=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x500151,meta:_0x592de1}of this['_findSuggestions'](_0x4cdc09,'insertion'))_0x592de1['isOwn']&&!_0x592de1['isInsideObject']&&_0xd8587['push'](..._0x500151['getRanges']());}const _0x157d97=function(_0x26aa9a,_0x13af11){const _0x178c80=[];for(const _0x2340b9 of _0x13af11){const _0x4cb73e=_0x26aa9a['getIntersection'](_0x2340b9);_0x4cb73e&&_0x178c80['push'](_0x4cb73e);}return _0x178c80;}(_0x4cdc09,_0xd8587),_0xed374f=function(_0x2afece,_0x49ccc9){const _0x2ba02f=[_0x2afece];for(const _0x224be9 of _0x49ccc9){let _0x1f75c6=0x0;for(;_0x1f75c6<_0x2ba02f['length'];){const _0xa0c4b9=_0x2ba02f[_0x1f75c6]['getDifference'](_0x224be9);_0x2ba02f['splice'](_0x1f75c6,0x1,..._0xa0c4b9),_0x1f75c6+=_0xa0c4b9['length'];}}return _0x2ba02f;}(_0x4cdc09,_0xd8587);_0x157d97['length']&&this['_model']['change'](()=>{for(const _0x50581f of _0x157d97){const _0x59acc4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44c127,'accept');this['forceDefaultExecution'](()=>_0x59acc4([_0x50581f],_0xcfc6f9,_0x6d8134));}});for(const _0x145a10 of _0xed374f){let _0x471144=null,_0x438c31=_0x145a10['start'],_0x248bc3=_0x145a10['end'];for(const {suggestion:_0x5647dc,meta:_0x3136e9}of this['_findSuggestions'](_0x145a10,'formatInline')){if(!_0x3136e9['isOwn'])continue;if(_0x5647dc['subType']!=_0x44c127)continue;if(!Ln(_0x5647dc,_0x6d8134))continue;const _0x5bf3ee=_0x5647dc['getFirstRange']();if(_0x5bf3ee['containsRange'](_0x145a10,!0x0))return null;_0x438c31=_0x438c31['isBefore'](_0x5bf3ee['start'])?_0x438c31:_0x5bf3ee['start'],_0x248bc3=_0x248bc3['isAfter'](_0x5bf3ee['end'])?_0x248bc3:_0x5bf3ee['end'],_0x471144?_0x5bf3ee['start']['isBefore'](_0x471144['getFirstRange']()['start'])?(_0x471144['removeMarkers'](),_0x471144=_0x5647dc):_0x5647dc['removeMarkers']():_0x471144=_0x5647dc;}const _0x24afec=this['_model']['createRange'](_0x438c31,_0x248bc3);if(_0x471144)this['_setSuggestionRange'](_0x471144,_0x24afec);else{const _0x45f411=_0x5b5c0d(),_0x1c30da=_0x13b3ae['id'];this['_setSuggestionData']({'id':_0x45f411,'type':'formatInline:'+_0x44c127,'data':_0xcfc6f9,'createdAt':new Date(),'authorId':_0x1c30da,'attributes':_0x6d8134}),this['_addSuggestionMarker']('formatInline:'+_0x44c127,_0x45f411,_0x1c30da,_0x24afec);}}return null;}markBlockFormat(_0x239d97,_0x1196ec,_0x5e81d3=[],_0x3ae29c=null,_0x3cdf07={}){_0x1196ec['formatGroupId']||(_0x1196ec['formatGroupId']=_0x1196ec['commandName']),_0x1196ec['multipleBlocks']=_0x239d97['is']('range'),_0x3ae29c=_0x3ae29c||hn(_0x1196ec);const _0x4a8ea9=_0x5e81d3['map'](_0x59d557=>Tn(_0x59d557,this['_model'])),_0x3354e8=_0x239d97['is']('range')?_0x239d97:Tn(_0x239d97,this['_model']);if(this['_trackingSessionId']&&(_0x3cdf07['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x406c58=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ae29c,'accept');return this['forceDefaultExecution'](()=>_0x406c58([_0x3354e8],_0x1196ec,_0x3cdf07)),null;}_0x4a8ea9['push'](_0x3354e8);let _0x4007bd=!0x0;for(const _0x1d50ec of _0x4a8ea9)if(!this['_rangeIsInLocalUserInsertion'](_0x1d50ec)){_0x4007bd=!0x1;break;}if(_0x4007bd&&'always'!==this['_trackFormatChanges']){const _0x3d772b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ae29c,'accept');return this['forceDefaultExecution'](()=>_0x3d772b([_0x3354e8],_0x1196ec,_0x3cdf07)),null;}let _0x27bebe=null,_0x14db35=_0x3354e8['start'],_0x11b3da=_0x3354e8['end'];for(const {suggestion:_0x447fe3,meta:_0x59bf24}of this['_findSuggestions'](_0x3354e8,'formatBlock')){if(!_0x59bf24['isOwn'])continue;if(_0x59bf24['isNextTo']||_0x59bf24['containsRangeInObject']||_0x59bf24['isInsideObject'])continue;if(_0x447fe3['data']['formatGroupId']!=_0x1196ec['formatGroupId'])continue;if(!Ln(_0x447fe3,_0x3cdf07))continue;const _0x575b79=_0x447fe3['getFirstRange']();if(_0x447fe3['subType']==_0x3ae29c){if(_0x575b79['containsRange'](_0x3354e8,!0x0))return null;_0x14db35=_0x14db35['isBefore'](_0x575b79['start'])?_0x14db35:_0x575b79['start'],_0x11b3da=_0x11b3da['isAfter'](_0x575b79['end'])?_0x11b3da:_0x575b79['end'],_0x27bebe?_0x575b79['start']['isBefore'](_0x27bebe['getFirstRange']()['start'])?(_0x27bebe['removeMarkers'](),_0x27bebe=_0x447fe3):_0x447fe3['removeMarkers']():_0x27bebe=_0x447fe3;}else{const _0x260d54=_0x3354e8['getIntersection'](_0x575b79);this['_cutOutSuggestionMarker'](_0x447fe3,_0x260d54);}}const _0x4042c6=this['editor']['plugins']['get']('Users')['me'],_0x168a54=_0x5b5c0d(),_0x332db8=_0x4042c6['id'];if(_0x27bebe)return this['_setSuggestionRange'](_0x27bebe,this['_model']['createRange'](_0x14db35,_0x11b3da)),_0x27bebe;{const _0x2623cf=this['_setSuggestionData']({'id':_0x168a54,'type':'formatBlock:'+_0x3ae29c,'data':_0x1196ec,'createdAt':new Date(),'authorId':_0x332db8,'attributes':_0x3cdf07});return this['_addSuggestionMarker']('formatBlock:'+_0x3ae29c,_0x168a54,_0x332db8,this['_model']['createRange'](_0x14db35,_0x11b3da)),_0x2623cf;}}markMultiRangeBlockFormat(_0x2ea537,_0xc97950,_0x32a522=[],_0xacb8af=null,_0x4b71c1={}){_0xc97950['formatGroupId']||(_0xc97950['formatGroupId']=_0xc97950['commandName']);const _0x5beeb8=_0x2ea537[0x0];_0xc97950['multipleBlocks']=_0x5beeb8['is']('range'),_0xacb8af=_0xacb8af||hn(_0xc97950);const _0x25074b=_0x32a522['map'](_0x34b01a=>Tn(_0x34b01a,this['_model'])),_0x32e802=_0x5beeb8['is']('range')?_0x2ea537:_0x2ea537['map'](_0x50643a=>Tn(_0x50643a,this['_model']));if(this['_trackingSessionId']&&(_0x4b71c1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3959b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xacb8af,'accept');return this['forceDefaultExecution'](()=>_0x3959b5(_0x32e802,_0xc97950,_0x4b71c1)),null;}_0x25074b['push'](..._0x32e802);let _0x3c1770=!0x0;for(const _0x4f7a34 of _0x25074b)if(!this['_rangeIsInLocalUserInsertion'](_0x4f7a34)){_0x3c1770=!0x1;break;}if(_0x3c1770&&'always'!==this['_trackFormatChanges']){const _0x3def19=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xacb8af,'accept');return this['forceDefaultExecution'](()=>_0x3def19(_0x32e802,_0xc97950,_0x4b71c1)),null;}const _0x4491a1=this['editor']['plugins']['get']('Users')['me'];for(const _0x23b519 of this['getSuggestions']()){const _0x4afba8=_0x23b519['data'];if(_0x23b519['author']['id']!=_0x4491a1['id'])continue;if('formatBlock'!=_0x23b519['type']||_0x4afba8['formatGroupId']!=_0xc97950['formatGroupId'])continue;if(!Ln(_0x23b519,_0x4b71c1))continue;const _0x437a6d=_0x23b519['subType']==_0xacb8af;for(let _0x1f9396=0x0;_0x1f9396<_0x32e802['length'];_0x1f9396++){const _0x13b65b=_0x32e802[_0x1f9396];for(const _0x5633e8 of _0x23b519['getMarkers']()){const _0x3cef89=_0x5633e8['getRange']();if(_0x13b65b['isEqual'](_0x3cef89)){_0x437a6d?(_0x32e802['splice'](_0x1f9396,0x1),_0x1f9396--):_0x23b519['removeMarker'](_0x5633e8['name']);break;}}}}if(0x0==_0x32e802['length'])return null;const _0x26cb28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xacb8af,'join');for(const _0x3d432f of this['getSuggestions']()){const _0x1524b9=_0x3d432f['data'];if(_0x3d432f['author']['id']==_0x4491a1['id']&&('formatBlock'==_0x3d432f['type']&&_0x1524b9['formatGroupId']==_0xc97950['formatGroupId']&&_0x3d432f['subType']==_0xacb8af&&Ln(_0x3d432f,_0x4b71c1)&&(_0x26cb28(_0x3d432f['getRanges'](),_0x32e802)||_0x26cb28(_0x32e802,_0x3d432f['getRanges']())))){for(const _0x517df6 of _0x32e802)_0x3d432f['addRange'](_0x517df6);return _0x3d432f;}}const _0x564b6b=_0x5b5c0d(),_0x4a606e=_0x4491a1['id'],_0x11965d='formatBlock:'+_0xacb8af,_0x3ccbe5=this['_setSuggestionData']({'id':_0x564b6b,'type':_0x11965d,'data':_0xc97950,'createdAt':new Date(),'authorId':_0x4a606e,'attributes':_0x4b71c1});for(const _0x21ac46 of _0x32e802)this['_addSuggestionMarker'](_0x11965d,_0x564b6b,_0x4a606e,_0x21ac46,St['getMultiRangeId']());return _0x3ccbe5;}markDeletion(_0x248ee1,_0x22ca68=null,_0xe4b058={}){if(_0x248ee1['isCollapsed'])return null;const _0x285cfa=this['editor']['plugins']['get']('Users')['me'],_0x35cd42=new rt(_0x248ee1['start'],_0x248ee1['end']);this['_trackingSessionId']&&(_0xe4b058['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17c07b,meta:_0x1a2e58}of this['_findSuggestions'](_0x35cd42,'insertion'))if(_0x1a2e58['isOwn']&&!_0x1a2e58['isNextTo']){if(_0x17c07b['isMultiRange']){const _0x56016e=_0x17c07b['getRanges']()['filter'](_0x1dec6e=>'$graveyard'!=_0x1dec6e['root']['rootName']);if(_0x56016e['every'](_0x9a7277=>_0x35cd42['containsRange'](_0x9a7277,!0x0))&&_0x17c07b['discard'](),_0x56016e['some'](_0x4318d8=>_0x4318d8['containsRange'](_0x35cd42,!0x0))){const _0x46e056=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22ca68,'accept');return this['forceDefaultExecution'](()=>_0x46e056([_0x35cd42],null,_0xe4b058)),null;}}else{const _0x38633b=_0x35cd42['getIntersection'](_0x17c07b['getFirstRange']());null!==_0x38633b&&_0x17c07b['_onDiscard']([_0x38633b],null,_0xe4b058);}}if(_0x35cd42['detach'](),_0x35cd42['isCollapsed']||'$graveyard'==_0x35cd42['root']['rootName'])return null;let _0x189026=null,_0x43ad9b=_0x35cd42['start'],_0x5d936a=_0x35cd42['end'];const _0x162f61=this['_findSuggestions'](_0x35cd42,'deletion');for(const {suggestion:_0x3657f3,meta:_0x30f38a}of _0x162f61){const _0x5cd54c=this['_model']['createRange'](_0x43ad9b,_0x5d936a);if(_0x30f38a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30f38a['containsRangeInObject']&&!_0x30f38a['isInsideObject'])){if(_0x3657f3['isMultiRange']){if(!Ln(_0x3657f3,_0xe4b058))continue;let _0x3f1a1d=!0x0;for(const _0x1a1ba0 of _0x3657f3['getRanges']()){if(_0x1a1ba0['containsRange'](_0x5cd54c,!0x0))return _0x3657f3;_0x5cd54c['containsRange'](_0x1a1ba0)||(_0x3f1a1d=!0x1);}_0x3f1a1d&&_0x3657f3['discard']();}else{const _0x122816=_0x3657f3['getFirstRange']();if(_0x122816['containsRange'](_0x5cd54c,!0x0))return _0x3657f3;if(!Ln(_0x3657f3,_0xe4b058)){_0x5cd54c['containsRange'](_0x122816)?_0x3657f3['removeMarkers']():_0x122816['containsPosition'](_0x43ad9b)?_0x43ad9b=_0x122816['end']:_0x122816['containsPosition'](_0x5d936a)&&(_0x5d936a=_0x122816['start']);continue;}_0x43ad9b=_0x43ad9b['isBefore'](_0x122816['start'])?_0x43ad9b:_0x122816['start'],_0x5d936a=_0x5d936a['isAfter'](_0x122816['end'])?_0x5d936a:_0x122816['end'],_0xe4b058=Object['assign']({},_0x3657f3['attributes']),_0x189026?_0x122816['start']['isBefore'](_0x189026['getFirstRange']()['start'])?(_0x189026['removeMarkers'](),_0x189026=_0x3657f3):_0x3657f3['removeMarkers']():_0x189026=_0x3657f3;}}}if(_0x189026)return this['_setSuggestionRange'](_0x189026,this['_model']['createRange'](_0x43ad9b,_0x5d936a)),_0x189026;{const _0x14e7ea=_0x5b5c0d(),_0x16dc87=this['_model']['createRange'](_0x43ad9b,_0x5d936a),_0xc5bcb5=_0x285cfa['id'],_0x503cd4=_0x22ca68?'deletion:'+_0x22ca68:'deletion',_0x5b8957=this['_setSuggestionData']({'id':_0x14e7ea,'type':_0x503cd4,'createdAt':new Date(),'authorId':_0xc5bcb5,'attributes':_0xe4b058});return this['_addSuggestionMarker'](_0x503cd4,_0x14e7ea,_0xc5bcb5,_0x16dc87),_0x5b8957;}}markMultiRangeDeletion(_0x26be15,_0x3575b0='multi',_0x336eb1={}){const _0x5e94cb=this['editor']['plugins']['get']('Users')['me'],_0x5cc0e1=_0x26be15['map'](_0xc9d35=>new rt(_0xc9d35['start'],_0xc9d35['end'])),_0x2c7f99=new Set();this['_trackingSessionId']&&(_0x336eb1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x57a527,meta:_0x2655c7}of this['_findSuggestions'](_0x5cc0e1,'insertion'))_0x2655c7['isOwn']&&!_0x2655c7['isNextTo']&&_0x2c7f99['add'](_0x57a527);for(const _0x16b580 of _0x2c7f99)if(_0x16b580['isMultiRange']){const _0x2465e7=_0x16b580['getRanges']();if(_0x16b580['attributes']&&_0x16b580['attributes']['skipNestingCheck']||_0x2465e7['every'](_0xc49af4=>_0x5cc0e1['some'](_0x1f6111=>_0x1f6111['containsRange'](_0xc49af4,!0x0)))&&_0x16b580['discard'](),_0x5cc0e1['every'](_0x371f3f=>_0x2465e7['some'](_0x524bda=>_0x524bda['containsRange'](_0x371f3f,!0x0)))){const _0x4d0b39=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3575b0,'accept');return this['forceDefaultExecution'](()=>_0x4d0b39(_0x26be15,null,_0x336eb1)),null;}}else{const _0x15abd9=_0x16b580['getFirstRange']();if(_0x5cc0e1['some'](_0x4eca32=>_0x4eca32['containsRange'](_0x15abd9,!0x0))&&_0x16b580['discard'](),_0x5cc0e1['every'](_0x4d2bd6=>_0x15abd9['containsRange'](_0x4d2bd6,!0x0))){const _0x29858c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3575b0,'accept');return this['forceDefaultExecution'](()=>_0x29858c(_0x5cc0e1,null,_0x336eb1)),null;}}const _0x3faf8a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3575b0,'join');let _0xa18812=null;for(const _0x11cd21 of this['getSuggestions']())if(_0x11cd21['author']['id']==_0x5e94cb['id']&&_0x11cd21['isInContent']&&'deletion'==_0x11cd21['type']&&_0x11cd21['subType']==_0x3575b0&&Ln(_0x11cd21,_0x336eb1)&&(_0x3faf8a(_0x11cd21['getRanges'](),_0x5cc0e1)||_0x3faf8a(_0x5cc0e1,_0x11cd21['getRanges']()))){if(_0xa18812){if(_0x11cd21['commentThread']&&_0x11cd21['commentThread']['length'])continue;for(const _0x37ac27 of _0x11cd21['getRanges']())_0xa18812['isIntersectingWithRange'](_0x37ac27)||_0xa18812['addRange'](_0x37ac27);_0x11cd21['removeMarkers']();}else{_0xa18812=_0x11cd21;for(const _0x3c654c of _0x5cc0e1)_0x11cd21['isIntersectingWithRange'](_0x3c654c)||_0x11cd21['addRange'](_0x3c654c);}}if(_0xa18812)return _0xa18812;_0x2c7f99['clear']();for(const {suggestion:_0x30a128,meta:_0x15afb3}of this['_findSuggestions'](_0x5cc0e1,'deletion'))_0x15afb3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15afb3['containsRangeInObject']&&!_0x15afb3['isInsideObject'])&&Ln(_0x30a128,_0x336eb1)&&_0x2c7f99['add'](_0x30a128);for(const _0x39be91 of _0x2c7f99){const _0x9e6037=_0x39be91['getRanges']();if((!_0x336eb1||!_0x336eb1['skipNestingCheck'])&&_0x5cc0e1['every'](_0x3a3176=>_0x9e6037['some'](_0x519981=>_0x519981['containsRange'](_0x3a3176,!0x0))))return _0x39be91;_0x39be91['attributes']&&_0x39be91['attributes']['skipNestingCheck']||_0x9e6037['every'](_0x1485c7=>_0x5cc0e1['some'](_0x568c26=>_0x568c26['containsRange'](_0x1485c7,!0x0)))&&_0x39be91['discard']();}const _0x322112=_0x5b5c0d(),_0x56dd58=_0x5e94cb['id'],_0x4814be='deletion:'+_0x3575b0,_0x25921a=this['_setSuggestionData']({'id':_0x322112,'type':_0x4814be,'createdAt':new Date(),'authorId':_0x56dd58,'attributes':_0x336eb1});for(const _0x33b703 of _0x5cc0e1)_0x33b703['detach'](),_0x33b703['isCollapsed']||'$graveyard'==_0x33b703['root']['rootName']||this['_addSuggestionMarker'](_0x4814be,_0x322112,_0x56dd58,_0x33b703,St['getMultiRangeId']());return _0x25921a;}markAttributeChange(_0x3758a6,_0x295187,_0x331eda,_0x1b8ed2,_0x4e7167){if(_0x3758a6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2b2683=this['editor']['plugins']['get']('Users')['me']['id'],_0x25b274=Array['from'](this['_suggestions']['values']())['filter'](_0x483c26=>'attribute'==_0x483c26['type']&&_0x483c26['data']['key']==_0x295187&&_0x483c26['isIntersectingWithRange'](_0x3758a6));if(this['_trackingSessionId']&&(_0x4e7167['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x246db1=this['_findSuggestions'](_0x3758a6,'insertion')['filter'](({meta:_0x661eef})=>_0x661eef['isOwn']&&!_0x661eef['isInsideObject']&&!_0x661eef['isNextTo'])['map'](({suggestion:_0x4e956b})=>_0x4e956b);_0x25b274['unshift'](..._0x246db1);}const _0x18bc80=new Map([[_0x3758a6,_0x331eda]]);for(const _0x5493ef of _0x25b274){const _0x5ed0b2='attribute'==_0x5493ef['type']?_0x5493ef['data']['oldValue']:void 0x0,_0x36ffd1=_0x5493ef['getFirstRange'](),_0x2e5494=Array['from'](_0x18bc80['keys']())['find'](_0x2982bd=>_0x2982bd['isIntersecting'](_0x36ffd1));if(!_0x2e5494)continue;const _0x21b8bf=_0x2e5494['getDifference'](_0x36ffd1);this['_suggestionsConversion']['isBlockAttribute'](_0x295187)&&'insertion'==_0x5493ef['type']&&0x0!=_0x21b8bf['length']||(_0x18bc80['delete'](_0x2e5494),_0x21b8bf['forEach'](_0x245f9b=>{_0x18bc80['set'](_0x245f9b,_0x331eda);}),'insertion'!=_0x5493ef['type']&&_0x5ed0b2!=_0x1b8ed2&&_0x18bc80['set'](_0x2e5494['getIntersection'](_0x36ffd1),_0x5ed0b2));}const _0x435755=[];for(const [_0xdb2619,_0x497d65]of _0x18bc80){const _0x37095a=_0x5b5c0d(),_0x1c91b5={'key':_0x295187,'oldValue':_0x497d65,'newValue':_0x1b8ed2};_0x295187['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':_0x295187});const _0x2d698c=('attribute:'+_0x295187+'|'+hn({'newValue':_0x1b8ed2}))['substring'](0x0,0x3c),_0x57e79e=this['_setSuggestionData']({'id':_0x37095a,'type':_0x2d698c,'data':_0x1c91b5,'createdAt':new Date(),'authorId':_0x2b2683,'attributes':_0x4e7167});_0x435755['push'](_0x57e79e),this['_addSuggestionMarker'](_0x2d698c,_0x37095a,_0x2b2683,_0xdb2619);}return _0x435755;}enableDefaultAttributesIntegration(_0x2e4857){this['enableCommand'](_0x2e4857,(_0xf3ef61,..._0x319a9f)=>{this['recordAttributeChanges'](()=>{_0xf3ef61(..._0x319a9f);});});}startTrackingSession(_0x15ddc3){return this['_trackingSessionId']=void 0x0!==_0x15ddc3?_0x15ddc3:_0x5b5c0d(),this['_trackingSessionId'];}_getAttributeKey(_0x4bf92f){return'attribute'==_0x4bf92f['type']?An(_0x4bf92f['subType']):null;}_applyOperationsAsSuggestions(_0x480bc1){if(0x0==_0x480bc1['length'])return;const _0x192d20=this['editor'],_0x3acaef=[],_0x53b25e=_0xf9141e=>{const _0x497790=_0xf9141e['_aiSource'];return _0x497790?{'@ai':{'type':_0x497790}}:{};},_0x57b0a1=(_0x1938ef,_0x2b7c70,_0x4521a3,_0x1ac4ff)=>{const _0x105bcd=new Set(_0x1ac4ff['flatMap'](_0x42b8c7=>_0x42b8c7['getMarkerNames']()));let _0x2f03ce=!0x1;for(let _0x4ffd32=_0x2b7c70;_0x4ffd32<_0x1938ef['operations']['length'];_0x4ffd32++){const _0x415579=_0x1938ef['operations'][_0x4ffd32];if('marker'==_0x415579['type']){if(!_0x105bcd['has'](_0x415579['name']))continue;_0x2f03ce=!0x0;}_0x415579['_aiSource']=_0x4521a3;}return _0x2f03ce;};_0x192d20['model']['change'](_0x215ec4=>{for(let _0x20417e=0x0;_0x20417e<_0x480bc1['length'];_0x20417e++){const _0x5d98da=_0x480bc1[_0x20417e],_0x308c56=_0x5d98da['_aiSource'];if(_0x5d98da['baseVersion']=_0x192d20['model']['document']['version'],_0x5d98da['isDocumentOperation']=!0x0,_0x425365(_0x5d98da))continue;if(rn(_0x5d98da)){const _0x27beb7=_0x533f9b(_0x5d98da['newRange'],_0x192d20['model']);_0x3acaef['unshift']({'range':rt['fromRange'](_0x27beb7),'operation':_0x5d98da});continue;}const _0x26dd28=_0x215ec4['batch']['operations']['length']+0x1;let _0x1aac87=[];switch(_0x5d98da['type']){case'rename':{const _0x5ed093=_0x5d98da['oldName'],_0x445748=_0x5d98da['newName'];if(_0x5ed093==_0x445748)break;_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);const _0x2c0f00='$elementName',_0x1ca33a=_0x5d98da['position'],_0x5bb430=_0x192d20['model']['createRange'](_0x1ca33a,_0x192d20['model']['createPositionAt'](_0x1ca33a['nodeAfter'],'end'));_0x1aac87=this['markAttributeChange'](_0x5bb430,_0x2c0f00,_0x5ed093,_0x445748,{..._0x53b25e(_0x5d98da),'groupId':_0x5b5c0d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x49f312=_0x5d98da['oldValue'],_0xbdc533=_0x5d98da['newValue'];if(_0x49f312==_0xbdc533)break;_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);const _0x7104ef=_0x5d98da['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x7104ef))break;const _0x53132d=_0x533f9b(_0x5d98da['range'],_0x192d20['model']);_0x1aac87=this['markAttributeChange'](_0x53132d,_0x7104ef,_0x49f312,_0xbdc533,{..._0x53b25e(_0x5d98da),'groupId':_0x5b5c0d()});break;}case'insert':{if(_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da),_0x480bc1[_0x20417e+0x1]&&'move'==_0x480bc1[_0x20417e+0x1]['type'])break;const _0x10dfd7=_0x5d98da['position'],_0x55a868=_0x5d98da['howMany'],_0x4d0168=_0x533f9b(_0x192d20['model']['createRange'](_0x10dfd7,_0x10dfd7['getShiftedBy'](_0x55a868)),_0x192d20['model']);_0x1aac87=on(this['markInsertion'](_0x4d0168,null,{..._0x53b25e(_0x5d98da)}));break;}case'split':{_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);const _0x8ba900=_0x5d98da['splitPosition'],_0x1fefea=_0x5d98da['moveTargetPosition'],_0x35cc72=_0x192d20['model']['createRange'](_0x8ba900,_0x1fefea);_0x1aac87=on(this['markInsertion'](_0x35cc72,null,{..._0x53b25e(_0x5d98da)}));break;}case'move':case'remove':_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);}_0x308c56&&_0x57b0a1(_0x215ec4['batch'],_0x26dd28,_0x308c56,_0x1aac87)&&delete _0x5d98da['_aiSource'];}for(const {range:_0x5b2e09,operation:_0x2e241e}of _0x3acaef){const _0x3dcf93=_0x2e241e['_aiSource'],_0x234ca6=_0x53b25e(_0x2e241e),_0x62e3b9=_0x215ec4['batch']['operations']['length'];_0x5b2e09['detach']();const _0x48a099=this['markDeletion'](_0x5b2e09,null,{..._0x234ca6});_0x3dcf93&&_0x57b0a1(_0x215ec4['batch'],_0x62e3b9,_0x3dcf93,on(_0x48a099));}});}_setSuggestionRange(_0x29422e,_0x128522){const _0xf1c79d=_0x29422e['getFirstMarker']();this['_model']['change'](_0x526ffd=>{_0x526ffd['updateMarker'](_0xf1c79d,{'range':_0x128522});});}_addThreadToSuggestion(_0x3d4112){const _0x4cfb37=_0x3d4112['id'],_0x5726b3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4cfb37)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5726b3,'threadId':_0x4cfb37,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x382b91=this['_commentsRepository']['getCommentThread'](_0x4cfb37);_0x382b91['unbind']('isRemovable'),_0x382b91['isRemovable']=!0x1,_0x3d4112['commentThread']=_0x382b91;}_checkSuggestionCorrectness(_0x48ffd4,_0x529de6,_0x5a40e1,_0x508780){if(_0x48ffd4['type']!=_0x529de6||_0x48ffd4['subType']!=_0x5a40e1||_0x48ffd4['creator']['id']!=_0x508780)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5f6c00('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x2f3778,_0x42fc7f){const _0x319975=_0x2f3778['getFirstRange']();if(_0x42fc7f['isEqual'](_0x319975))_0x2f3778['removeMarkers']();else{if(_0x319975['containsRange'](_0x42fc7f)){const _0x3e4255=this['_model']['createPositionAt'](_0x42fc7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f3778,this['_model']['createRange'](_0x319975['start'],_0x3e4255));const _0xd9609c=_0x5b5c0d(),_0x1377f8=_0x2f3778['creator']['id'],_0xae2471=_0x2f3778['type']+':'+_0x2f3778['subType'];this['_setSuggestionData']({'id':_0xd9609c,'type':_0xae2471,'createdAt':new Date(),'authorId':_0x1377f8,'data':_0x2f3778['data'],'attributes':_0x2f3778['attributes']});const _0x15e5fc=this['_model']['createPositionAt'](_0x42fc7f['end']['parent'],'after'),_0x2f1e20=this['_model']['createRange'](_0x15e5fc,_0x319975['end']);this['_addSuggestionMarker'](_0xae2471,_0xd9609c,_0x1377f8,_0x2f1e20);}else{if(_0x319975['containsPosition'](_0x42fc7f['start'])){const _0x5ba7b0=this['_model']['createPositionAt'](_0x42fc7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f3778,this['_model']['createRange'](_0x319975['start'],_0x5ba7b0));}else{const _0x517aee=this['_model']['createPositionAt'](_0x42fc7f['end']['parent'],'after');this['_setSuggestionRange'](_0x2f3778,this['_model']['createRange'](_0x517aee,_0x319975['end']));}}}}_rangeIsInLocalUserInsertion(_0x1da643){for(const {suggestion:_0x3d288a,meta:_0x444af1}of this['_findSuggestions'](_0x1da643,'insertion')){if(!_0x444af1['isOwn'])continue;const _0x1dcd89=_0x3d288a['getRanges']();for(const _0x544f09 of _0x1dcd89)if(!_0x1da643['getDifference'](_0x544f09)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x1a76d3){return this['editor']['plugins']['get']('Users')['getUser'](_0x1a76d3);}_getExternalAuthor(_0x45d18c){const _0x178d02=this['editor']['plugins']['get']('Users'),_0x243565=_0x5a9283('external:'+_0x45d18c),_0x5886cb=_0x178d02['getUser'](_0x243565);return _0x5886cb||_0x178d02['addUser']({'id':_0x243565,'name':_0x45d18c});}_createSuggestion(_0x599a11,_0xc9554c,_0x2f1db3,_0x26ccd3,_0x5a9d67,_0x1d1dcb){const _0x19ea0b=this['_getAuthorFromId'](_0x26ccd3);if(!_0x19ea0b)throw new _0x5f6c00('track-changes-user-not-found',this,{'authorId':_0x26ccd3,'suggestionId':_0x2f1db3});const _0x296e05=this['_suggestionFactory']['buildSuggestion'](_0x599a11,_0xc9554c,_0x2f1db3,_0x19ea0b,_0x5a9d67,_0x27823e=>{this['_updateSuggestionData'](_0x2f1db3,{'attributes':_0x27823e});const _0x30b144=this['getSuggestion'](_0x2f1db3);this['_joinWithAdjacentSuggestions'](new Set([_0x30b144])),this['_refreshSuggestionsChain'](new Set([_0x30b144]));},_0x1d1dcb);return this['listenTo'](_0x296e05,'accept',()=>{this['_updateSuggestionData'](_0x2f1db3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x296e05,'discard',()=>{this['_updateSuggestionData'](_0x2f1db3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f1db3,_0x296e05),this['_suggestionState']['set'](_0x296e05,'notReady'),_0x296e05;}_breakSuggestionMarker(_0x490671,_0x111074,_0x33630a){const _0x5b52cd=_0x490671['getFirstRange'](),_0x591473=_0x5b52cd['start'],_0x5f3381=_0x5b52cd['end'];this['_setSuggestionRange'](_0x490671,this['_model']['createRange'](_0x591473,_0x111074));const _0x4b7fab=_0x5b5c0d(),_0x123114=_0x490671['creator']['id'],_0x4c5776=_0x490671['type']+(_0x490671['subType']?':'+_0x490671['subType']:'');this['_setSuggestionData']({'id':_0x4b7fab,'type':_0x4c5776,'createdAt':new Date(),'authorId':_0x123114,'originalSuggestionId':_0x490671['_originalSuggestionId']||_0x490671['id'],'attributes':_0x490671['attributes'],'data':_0x490671['data']});const _0xed690e=this['_getAttributeKey'](_0x490671);('formatBlock'==_0x490671['type']||_0xed690e&&this['_suggestionsConversion']['isBlockAttribute'](_0xed690e))&&(_0x33630a=this['_model']['createPositionBefore'](_0x33630a['parent'])),this['_addSuggestionMarker'](_0x4c5776,_0x4b7fab,_0x123114,this['_model']['createRange'](_0x33630a,_0x5f3381));}_findSuggestions(_0x3f126e,_0x7b219c=null){const _0x2a1636=[],_0x3cfac6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3f126e)||(_0x3f126e=[_0x3f126e]);for(const _0x23489d of this['getSuggestions']()){if(!_0x23489d['isInContent'])continue;if(_0x7b219c&&_0x23489d['type']!=_0x7b219c)continue;let _0x52113f=!0x1;for(const _0x242098 of _0x23489d['getRanges']()){for(const _0x1167cb of _0x3f126e){const _0x31649e=_0x1167cb['start']['isEqual'](_0x242098['end'])||_0x1167cb['end']['isEqual'](_0x242098['start']);if(_0x31649e||_0x1167cb['getIntersection'](_0x242098)){const _0x3e2f83=_0x1167cb['containsRange'](_0x242098)&&ln(this['_model']['schema'],_0x242098['start'],_0x1167cb),_0x427cb4=_0x242098['containsRange'](_0x1167cb)&&ln(this['_model']['schema'],_0x1167cb['start'],_0x242098);_0x2a1636['push']({'suggestion':_0x23489d,'meta':{'isOwn':_0x3cfac6==_0x23489d['author'],'isNextTo':_0x31649e,'isInsideObject':_0x3e2f83,'containsRangeInObject':_0x427cb4}}),_0x52113f=!0x0;break;}}if(_0x52113f)break;}}return _0x2a1636;}_addSuggestionMarker(_0x4dc207,_0x248acd,_0x44ff30,_0x287f1d,_0x10f2b0){this['_model']['change'](_0x36fe98=>{let _0x4001e7='suggestion:'+_0x4dc207+':'+_0x248acd+':'+_0x44ff30;_0x10f2b0&&(_0x4001e7=_0x4001e7+':'+_0x10f2b0),_0x36fe98['addMarker'](_0x4001e7,{'range':_0x287f1d,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x17c581){const _0x1bed77=_0x17c581['previous'],_0x1613c5=_0x17c581['next'];_0x17c581['previous']=null,_0x17c581['next']=null,null!=_0x1bed77&&_0x1bed77['next']==_0x17c581&&(_0x1bed77['next']=_0x1613c5),null!=_0x1613c5&&_0x1613c5['previous']==_0x17c581&&(_0x1613c5['previous']=_0x1bed77),'ready'==this['_suggestionState']['get'](_0x17c581)&&(this['_suggestionState']['set'](_0x17c581,'removed'),this['fire']('suggestionUnloaded',_0x17c581,_0x1bed77,_0x1613c5));}_setSuggestionData(_0x1c45e0){const _0x322cbc=_0x1c45e0['id'],_0x8d8f8e=this['addSuggestionData'](_0x1c45e0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x12787=this['editor']['plugins']['get']('PendingActions'),_0x271106=_0x8d8f8e['hasComments'],_0x518b67=_0x8d8f8e['subType']?_0x8d8f8e['type']+':'+_0x8d8f8e['subType']:_0x8d8f8e['type'],_0x3685e0=this['editor']['locale'],_0x2d0034=_0x12787['add'](Mt(_0x3685e0,'PENDING_ACTION_SUGGESTION')),_0x5a78fb={'id':_0x322cbc,'type':_0x518b67,'hasComments':_0x271106,'data':_0x1c45e0['data']||null,'originalSuggestionId':_0x1c45e0['originalSuggestionId']||null,'attributes':_0x8d8f8e['attributes']};this['_adapter']['addSuggestion'](_0x5a78fb)['then'](_0xe55dd0=>{_0x8d8f8e['_saved']=!0x0,_0x12787['remove'](_0x2d0034),_0xe55dd0&&_0xe55dd0['createdAt']&&(this['_suggestions']['get'](_0x322cbc)['createdAt']=_0xe55dd0['createdAt']);})['catch'](_0x45fee9=>{throw _0x26182a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x8d8f8e['discard']();}),_0x8d8f8e['stopListening'](),this['_suggestions']['delete'](_0x8d8f8e['id']),this['_suggestionState']['delete'](_0x8d8f8e),_0x45fee9;});}return _0x8d8f8e;}_updateSuggestionData(_0x445b04,_0x5abae3){const _0x21cecf=this['editor']['plugins']['get']('PendingActions'),_0x2c7a87=this['getSuggestion'](_0x445b04);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2c7a87['_saved']){const _0x937760=_0x21cecf['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x445b04,_0x5abae3)['then'](()=>{_0x21cecf['remove'](_0x937760);});}else _0x2c7a87['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x445b04,_0x5abae3);});}}_getSuggestionData(_0x1b41af){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5f6c00('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1b41af);}_handleNewSuggestionMarker(_0x1354a2){const {id:_0x4278ae,type:_0x275cc2,subType:_0x954511,authorId:_0xd42ab0}=tt(_0x1354a2),_0x83df84=this['_suggestions']['get'](_0x4278ae)||this['_createSuggestion'](_0x275cc2,_0x954511,_0x4278ae,_0xd42ab0,{});switch(this['_checkSuggestionCorrectness'](_0x83df84,_0x275cc2,_0x954511,_0xd42ab0),this['_suggestionState']['get'](_0x83df84)){case'notReady':this['_getSuggestionData'](_0x4278ae)['then'](_0x3a30a3=>{let _0x44842d=Promise['resolve']();_0x3a30a3['hasComments']&&(_0x44842d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4278ae})),_0x44842d['then'](()=>{this['addSuggestionData'](_0x3a30a3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x83df84,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4278ae,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x83df84,'ready'),this['fire']('suggestionLoaded',_0x83df84);break;case'ready':this['fire']('suggestionChanged',_0x83df84);}return _0x83df84['addMarkerName'](_0x1354a2),_0x83df84;}_refreshSuggestionsChain(_0x2e9fe6){const _0x422e47=Array['from'](_0x2e9fe6),_0x326ad0=_0x422e47['filter'](_0x5df58b=>'attribute'==_0x5df58b['type']);this['_refreshAttributeSuggestionsChain'](_0x326ad0);const _0x4e77d4=_0x422e47['filter'](_0x466719=>!_0x466719['isMultiRange']&&'attribute'!=_0x466719['type']),_0x42a01a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27cd9d=>!_0x27cd9d['isMultiRange']&&'attribute'!=_0x27cd9d['type']),_0x3b513a=_0x42a01a['filter'](_0x6960ed=>!_0x2e9fe6['has'](_0x6960ed)),_0x4970ac=new Map(_0x42a01a['map'](_0x15b850=>[_0x15b850,this['_suggestionFactory']['getSuggestionCallback'](_0x15b850['type'],_0x15b850['subType'],'chain')])),_0x30a0aa=new Map(_0x42a01a['map'](_0x41dd3f=>[_0x41dd3f,_0x41dd3f['getFirstRange']()])),_0x597a78=new Set(),_0x2d12e6=new Set();for(let _0x37f66b=0x0;_0x37f66b<_0x4e77d4['length'];_0x37f66b++)_0x10a1d2(_0x4e77d4[_0x37f66b],_0x4e77d4,_0x37f66b+0x1);for(let _0x452093=0x0;_0x452093<_0x4e77d4['length'];_0x452093++)_0x10a1d2(_0x4e77d4[_0x452093],_0x3b513a,0x0);const _0x13fe24=new Set();for(let _0x2601e7=0x0;_0x2601e7<_0x4e77d4['length'];_0x2601e7++){const _0xfe5b03=_0x4e77d4[_0x2601e7];!_0x2d12e6['has'](_0xfe5b03)&&_0xfe5b03['previous']&&(_0x13fe24['add'](_0xfe5b03['previous']),_0xfe5b03['previous']['next']===_0xfe5b03&&(_0xfe5b03['previous']['next']=null),_0xfe5b03['previous']=null),!_0x597a78['has'](_0xfe5b03)&&_0xfe5b03['next']&&(_0x13fe24['add'](_0xfe5b03['next']),_0xfe5b03['next']['previous']===_0xfe5b03&&(_0xfe5b03['next']['previous']=null),_0xfe5b03['next']=null);}function _0x10a1d2(_0x594240,_0x1752b2,_0x450578){for(let _0x1b72af=_0x450578;_0x1b72af<_0x1752b2['length'];_0x1b72af++){const _0x4b2924=_0x13fff3(_0x594240,_0x1752b2[_0x1b72af]);_0x4b2924&&(_0x4b2924[0x0]['next']=_0x4b2924[0x1],_0x4b2924[0x1]['previous']=_0x4b2924[0x0],_0x597a78['add'](_0x4b2924[0x0]),_0x2d12e6['add'](_0x4b2924[0x1]));}}function _0x13fff3(_0x98a848,_0x9e242b){if(_0x98a848['author']['id']!==_0x9e242b['author']['id'])return null;const _0x195566=_0x4970ac['get'](_0x98a848)(_0x98a848,_0x9e242b,_0x30a0aa['get'](_0x98a848),_0x30a0aa['get'](_0x9e242b));return _0x195566&&_0x4970ac['get'](_0x9e242b)(_0x98a848,_0x9e242b,_0x30a0aa['get'](_0x98a848),_0x30a0aa['get'](_0x9e242b))?_0x195566[0x1]['commentThread']&&_0x195566[0x1]['commentThread']['length']?null:_0x195566:null;}_0x13fe24['size']&&this['_refreshSuggestionsChain'](_0x13fe24);}_refreshAttributeSuggestionsChain(_0x1799a4){if(0x0==_0x1799a4['length'])return;const _0x31472d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d0055=>'attribute'==_0x3d0055['type']&&_0x3d0055['_isDataLoaded']),_0x255859=[],_0x12d487=new Map();for(const _0x334328 of _0x31472d){const _0x50b55c=_0x5a9283(_0x334328['attributes']);_0x12d487['has'](_0x50b55c)||(_0x12d487['set'](_0x50b55c,_0x255859['length']),_0x255859['push']([])),_0x255859[_0x12d487['get'](_0x50b55c)]['push'](_0x334328);}!(function(){_0x255859['sort']((_0x377b88,_0x586e96)=>{const _0x5df210=_0x377b88[0x0]['createdAt'],_0x4bda5e=_0x586e96[0x0]['createdAt'];return _0x5df210==_0x4bda5e?_0x377b88[0x0]['attributes']['groupId']<_0x586e96[0x0]['attributes']['groupId']?-0x1:0x1:_0x5df210<_0x4bda5e?-0x1:0x1;});for(const _0x15fe66 of _0x255859)_0x15fe66['sort']((_0x3aef25,_0x2f6c10)=>_0x3aef25['id']<_0x2f6c10['id']?-0x1:0x1);}());for(let _0x2fba72=0x0;_0x2fba72<_0x255859['length'];_0x2fba72++){if(0x0==_0x255859[_0x2fba72]['length'])continue;const _0x3823e2=[];for(let _0x465a99=_0x2fba72+0x1;_0x465a99<_0x255859['length'];_0x465a99++)0x0!=_0x255859[_0x465a99]['length']&&_0x5b22a0(_0x255859[_0x2fba72],_0x255859[_0x465a99])&&_0x3823e2['push'](_0x465a99);for(const _0x2d421c of _0x3823e2)_0x255859[_0x2fba72]=_0x255859[_0x2fba72]['concat'](_0x255859[_0x2d421c]),_0x255859[_0x2d421c]=[];}for(const _0x518801 of _0x255859)for(let _0xdfb6=0x0;_0xdfb6<_0x518801['length'];_0xdfb6++){const _0x1088f8=_0x518801[_0xdfb6+0x1]||null;_0x518801[_0xdfb6]['next']!==_0x1088f8&&(_0x518801[_0xdfb6]['next']=_0x1088f8);}for(const _0x4e9110 of _0x255859)for(let _0x426f9d=0x0;_0x426f9d<_0x4e9110['length'];_0x426f9d++){const _0x39ff5e=_0x4e9110[_0x426f9d-0x1]||null;_0x4e9110[_0x426f9d]['previous']!==_0x39ff5e&&(_0x4e9110[_0x426f9d]['previous']=_0x39ff5e);}function _0x5b22a0(_0x51da24,_0x1cecb9){if(_0x51da24[0x0]['attributes']['groupId']!==_0x1cecb9[0x0]['attributes']['groupId']&&_0x51da24[0x0]['author']!==_0x1cecb9[0x0]['author'])return!0x1;if(!function(_0x2ca702,_0x46eacd){return!_0x2ca702['hasComments']&&!_0x46eacd['hasComments']||(!_0x2ca702['hasComments']||!_0x46eacd['hasComments'])&&(!!(_0x2ca702['hasComments']&&_0x46eacd['createdAt']<_0x2ca702['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x46eacd['hasComments']&&_0x2ca702['createdAt']<_0x46eacd['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x51da24[0x0],_0x1cecb9[0x0]))return!0x1;const _0x274f04=lt(_0x51da24[0x0]['attributes'],['groupId','trackingSessionId']),_0x5affcc=lt(_0x1cecb9[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x274f04,_0x5affcc)&&(_0x51da24[0x0]['attributes']['groupId']==_0x1cecb9[0x0]['attributes']['groupId']||_0x51da24[0x0]['attributes']['trackingSessionId']===_0x1cecb9[0x0]['attributes']['trackingSessionId']&&(!!_0x51da24['every'](_0x207f32=>_0x1cecb9['some'](_0x420a24=>_0x207f32['getFirstRange']()['isEqual'](_0x420a24['getFirstRange']())))&&_0x1cecb9['every'](_0xb8dfa2=>_0x51da24['some'](_0x53a86f=>_0xb8dfa2['getFirstRange']()['isEqual'](_0x53a86f['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x206c05){const _0x58dff7=Array['from'](_0x206c05),_0x1e3c14=this['getSuggestions']({'skipNotAttached':!0x0}),_0xd0b5da=_0x1e3c14['filter'](_0x3e3179=>!_0x206c05['has'](_0x3e3179)),_0x57053a=new Map(_0x58dff7['map'](_0x1ddab0=>[_0x1ddab0,this['_suggestionFactory']['getSuggestionCallback'](_0x1ddab0['type'],_0x1ddab0['subType'],'join')])),_0x4f5cf3=new Map(_0x1e3c14['map'](_0xa4ba6b=>[_0xa4ba6b,_0xa4ba6b['getRanges']()]));for(let _0x18b446=0x0;_0x18b446<_0x58dff7['length'];_0x18b446++)if(_0x21fb11(this,_0x58dff7[_0x18b446],_0x58dff7,_0x18b446+0x1))return!0x0;for(let _0x4aba92=0x0;_0x4aba92<_0x58dff7['length'];_0x4aba92++)if(_0x21fb11(this,_0x58dff7[_0x4aba92],_0xd0b5da,0x0))return!0x0;return!0x1;function _0x21fb11(_0x2aada8,_0x6a8349,_0x343ed0,_0x2d0dc5){for(let _0x17e633=_0x2d0dc5;_0x17e633<_0x343ed0['length'];_0x17e633++){const _0x54ca78=_0x343ed0[_0x17e633];if(_0x54ca78['type']!==_0x6a8349['type']||_0x54ca78['author']['id']!==_0x6a8349['author']['id']||_0x54ca78['subType']!==_0x6a8349['subType'])continue;if(!pn(_0x6a8349,_0x54ca78))continue;if('attribute'==_0x6a8349['type']&&_0x6a8349['data']['oldValue']!=_0x54ca78['data']['oldValue'])continue;if('attribute'==_0x6a8349['type']&&_0x2aada8['_suggestionsConversion']['isBlockAttribute'](_0x6a8349['data']['key']))continue;if('formatBlock'==_0x6a8349['type']){const _0x72e1ca=_0x2aada8['editor']['model'],_0x4a22e4=_0x6a8349['getContainedElement']();if(_0x4a22e4&&(_0x72e1ca['schema']['isObject'](_0x4a22e4)||_0x72e1ca['schema']['isLimit'](_0x4a22e4)))continue;}const _0x4a7d98=_0x57053a['get'](_0x6a8349),_0x265082=_0x4f5cf3['get'](_0x6a8349),_0x30fe92=_0x4f5cf3['get'](_0x54ca78),_0x46020a=_0x6a8349['commentThread']&&_0x6a8349['commentThread']['length'],_0x367bed=_0x54ca78['commentThread']&&_0x54ca78['commentThread']['length'];if(!_0x46020a&&_0x4a7d98(_0x30fe92,_0x265082))return _0x2aada8['_joinSuggestions'](_0x54ca78,_0x6a8349),_0x4f5cf3['delete'](_0x6a8349),!0x0;if(!_0x367bed&&_0x4a7d98(_0x265082,_0x30fe92))return _0x2aada8['_joinSuggestions'](_0x6a8349,_0x54ca78),_0x4f5cf3['delete'](_0x54ca78),!0x0;}return!0x1;}}_joinSuggestions(_0x2b0afb,_0x562f2f){if(_0x2b0afb['isMultiRange']){for(const _0x5a8c6c of _0x562f2f['getRanges']())_0x2b0afb['addRange'](_0x5a8c6c);}else{const _0x3719f7=_0x562f2f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2b0afb,this['_model']['createRange'](_0x2b0afb['getFirstRange']()['start'],_0x3719f7));}_0x562f2f['removeMarkers']();}_getMarkerAnnouncementText(_0x13cd92,_0x3ece73,_0x67e56c){const _0x7d7b3e=_0x13cd92['startsWith']('format')||_0x13cd92['startsWith']('attribute')?'FORMATTING':_0x13cd92['toUpperCase']();return Mt(this['editor']['locale'],_0x3ece73+'_'+_0x7d7b3e+'_SUGGESTION_ANNOUNCEMENT',_0x67e56c);}_initAriaMarkerChangeAnnouncements(){const _0xc1aeed=this['editor'];if(!_0xc1aeed['ui'])return;const {ariaLiveAnnouncer:_0x531f80}=_0xc1aeed['ui'];et(this['_model'],({left:_0x81af24,entered:_0x4ff5b8})=>{for(const _0x406b8 of _0x81af24){const {group:_0x49cabb,type:_0x38f729}=tt(_0x406b8['name']);if('suggestion'===_0x49cabb){_0x531f80['announce'](this['_getMarkerAnnouncementText'](_0x38f729,'LEAVE'));break;}}for(const _0x3f2874 of _0x4ff5b8){const {group:_0x30e2a3,type:_0xe95db9}=tt(_0x3f2874['name']);if('suggestion'===_0x30e2a3){_0x531f80['announce'](this['_getMarkerAnnouncementText'](_0xe95db9,'ENTER',_0x166bf7(_0x2e1548)));break;}}});}_processAttributeChanges(_0x1de71c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ae694=this['editor'],_0x314fc1=_0x3ae694['model']['document']['differ']['getChanges']();if(0x0==_0x314fc1['length'])return!0x1;const _0x11808a=[],_0x443baf=_0x314fc1['filter'](_0x1d20b4=>'attribute'==_0x1d20b4['type']),_0x36e7fb=_0x314fc1['filter'](_0x57c440=>'insert'==_0x57c440['type']&&'$text'!=_0x57c440['name']),_0x31eda8=_0x314fc1['filter'](_0x27f02c=>'remove'==_0x27f02c['type']&&'$text'!=_0x27f02c['name']);for(const _0x4e4398 of _0x443baf)_0x11808a['push']({'key':_0x4e4398['attributeKey'],'newValue':_0x4e4398['attributeNewValue'],'oldValue':_0x4e4398['attributeOldValue'],'range':En(_0x4e4398['range'],_0x3ae694['model'])});for(const _0x47caf3 of _0x36e7fb){const _0x1d485a=_0x31eda8['find'](_0x5b3279=>_0x5b3279['position']['isEqual'](_0x47caf3['position']));_0x1d485a&&_0x11808a['push']({'key':sn,'newValue':_0x47caf3['name'],'oldValue':_0x1d485a['name'],'range':_0x3ae694['model']['createRangeOn'](_0x47caf3['position']['nodeAfter'])});}return 0x0!=_0x11808a['length']&&this['_reduceExistingSuggestions'](_0x1de71c,_0x11808a);}_processAttributeSuggestions(_0x2b107c){let _0x37755b=!0x1;const _0xd8ddec=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3c7dd1=>_0x3c7dd1['data']['newRange']&&_0x3c7dd1['name']['startsWith']('suggestion:attribute:'));for(const _0x2964e2 of _0xd8ddec){const {subType:_0x3dc3ec,id:_0x19b275}=tt(_0x2964e2['name']),_0x5668a7=_0x3dc3ec['split']('|')[0x0];for(const _0x2792d8 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2792d8['id']!=_0x19b275&&'attribute'==_0x2792d8['type']&&_0x2792d8['data']&&_0x2792d8['data']['key']==_0x5668a7&&_0x2792d8['getFirstRange']()['isIntersecting'](_0x2964e2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2792d8,_0x2964e2['data']['newRange'],_0x2b107c),_0x37755b=!0x0);}return _0x37755b;}recordAttributeChanges(_0x12f6b4){this['_recordAttributeSuggestions']=!0x0,_0x12f6b4();}_reduceExistingSuggestions(_0x38a26f,_0x323169){if(0x0==_0x323169['length'])return!0x1;let _0x519af2=!0x1;for(const _0x35b6f8 of _0x323169){const _0x340174=this['_findSuggestions'](_0x35b6f8['range'],'attribute')['filter'](_0x3d9b91=>!_0x3d9b91['meta']['isNextTo'])['map'](_0x5ada9a=>_0x5ada9a['suggestion']),_0x1e33c9=_0x5a9283({'newValue':_0x35b6f8['newValue']});_0x340174['filter'](_0x715da=>{const [_0xa1651,_0x9b64ab]=_0x715da['subType']['split']('|');return _0xa1651==_0x35b6f8['key']&&_0x9b64ab!=_0x1e33c9;})['forEach'](_0x70d191=>{this['_reduceSuggestionAttributeRange'](_0x70d191,_0x35b6f8['range'],_0x38a26f),_0x519af2=!0x0;});}return _0x519af2;}_reduceSuggestionAttributeRange(_0xfd7fa1,_0x473870,_0x205d6b){const _0x40127a=_0xfd7fa1['getFirstRange']()['getDifference'](_0x473870);0x0!==_0x40127a['length']?0x1!==_0x40127a['length']?this['_breakSuggestionMarker'](_0xfd7fa1,_0x473870['start'],_0x473870['end']):this['_setSuggestionRange'](_0xfd7fa1,_0x40127a[0x0]):_0x205d6b['removeMarker'](_0xfd7fa1['getFirstMarker']());}},cn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4ddd25){this['_editor']=_0x4ddd25,this['_model']=_0x4ddd25['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x3ef373,_0x55ebf1,_0x57f407,_0x191bde,_0x53e814,_0x346e62,_0x49360e){return new St(this['_model'],{'type':_0x3ef373,'subType':_0x55ebf1,'id':_0x57f407,'originalSuggestionId':_0x49360e,'author':_0x191bde,'creator':_0x191bde,'attributes':_0x53e814,'onAttributesChange':_0x346e62,'onAccept':(..._0x469525)=>this['getSuggestionCallback'](_0x3ef373,_0x55ebf1,'accept')(..._0x469525),'onDiscard':(..._0x5e9034)=>this['getSuggestionCallback'](_0x3ef373,_0x55ebf1,'discard')(..._0x5e9034)});}registerCustomCallback(_0x53443e,_0x291258,_0x7c7d9,_0x5b351b){const _0x293f24=_0x53443e+':'+_0x291258+':'+_0x7c7d9;this['_customCallbacks']['set'](_0x293f24,_0x5b351b);}getSuggestionCallback(_0x26fb38,_0x596a6d,_0x1ab5b3){const _0x1259e0=_0x26fb38+':'+_0x596a6d+':'+_0x1ab5b3;return this['_customCallbacks']['get'](_0x1259e0)||this['_defaultCallbacks']['get'](_0x26fb38+':'+_0x1ab5b3);}_registerDefaultCallbacks(){const _0x4b479c=()=>!0x1,_0x103317=_0x3897e5=>{_0x3897e5['sort']((_0x21315d,_0xe9ce0f)=>_0x21315d['start']['isBefore'](_0xe9ce0f['start'])?0x1:-0x1),this['_model']['change'](_0x8c7a29=>{for(const _0x47f231 of _0x3897e5){let _0x5698fe;_0x5698fe=_0x47f231['end']['isAtEnd']&&_0x47f231['end']['parent']==_0x47f231['start']['nodeAfter']?_0x8c7a29['createSelection'](_0x47f231['start']['nodeAfter'],'on'):_0x8c7a29['createSelection'](_0x47f231),this['_model']['deleteContent'](_0x5698fe,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2d099b=(_0x5b5806,_0x22300b)=>{_0x22300b&&this['_model']['change'](_0x583517=>{const {commandName:_0x5e624a,commandParams:_0x370671=[]}=_0x22300b,_0x20ee46=_0x5b5806['map'](_0x46211e=>(un(_0x46211e)&&(_0x46211e=this['_model']['createRange'](_0x46211e['end'])),_0x46211e))['filter'](_0x367419=>'$graveyard'!==_0x367419['root']['rootName']);if(_0x20ee46['length']<0x1)return;const _0x182ba9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x25ab25=>rt['fromRange'](_0x25ab25));_0x583517['setSelection'](_0x20ee46);for(const _0x26723f of this['_editor']['commands']['commands']())_0x26723f['refresh']();_0x370671['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5e624a,..._0x370671);const _0x20a4a9=_0x182ba9['filter'](_0xf9b459=>'$graveyard'!=_0xf9b459['root']['rootName']);_0x20a4a9['length']>0x0&&_0x583517['setSelection'](_0x20a4a9);for(const _0x238ab4 of _0x182ba9)_0x238ab4['detach']();});},_0x46e6c5=(_0xba6d0a,_0x371130)=>0x1==_0xba6d0a['length']&&0x1==_0x371130['length']&&_0xba6d0a[0x0]['end']['isEqual'](_0x371130[0x0]['start']),_0x501ee1=(_0x491e61,_0xee92e8,_0x15eb09,_0x17c0ce)=>_n(_0x491e61,_0xee92e8,_0x15eb09,_0x17c0ce)?[_0x491e61,_0xee92e8]:_n(_0xee92e8,_0x491e61,_0x17c0ce,_0x15eb09)?[_0xee92e8,_0x491e61]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b479c),this['_defaultCallbacks']['set']('insertion:discard',_0x103317),this['_defaultCallbacks']['set']('insertion:join',_0x46e6c5),this['_defaultCallbacks']['set']('insertion:chain',_0x501ee1),this['_defaultCallbacks']['set']('deletion:accept',_0x103317),this['_defaultCallbacks']['set']('deletion:discard',_0x4b479c),this['_defaultCallbacks']['set']('deletion:join',_0x46e6c5),this['_defaultCallbacks']['set']('deletion:chain',_0x501ee1),this['_defaultCallbacks']['set']('formatInline:accept',_0x2d099b),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b479c),this['_defaultCallbacks']['set']('formatInline:join',_0x46e6c5),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b479c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2d099b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b479c),this['_defaultCallbacks']['set']('formatBlock:join',_0x46e6c5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b479c),this['_defaultCallbacks']['set']('attribute:accept',_0x4b479c),this['_defaultCallbacks']['set']('attribute:discard',(_0x36a5b3,_0x5609b0)=>{if(!_0x5609b0)return;const _0x224fae=this['_editor']['plugins']['get'](_0x407cac);this['_model']['change'](_0x3a2e00=>{if('$elementName'==_0x5609b0['key'])for(const _0x3fcf43 of _0x36a5b3){const _0x4f868a=_0x3fcf43['start']['nodeAfter'],_0x420958=_0x5609b0['oldValue'];_0x3a2e00['rename'](_0x4f868a,_0x420958);}else{if(_0x224fae['isBlockAttribute'](_0x5609b0['key'])){for(const _0x184605 of _0x36a5b3)void 0x0!==_0x5609b0['oldValue']?_0x3a2e00['setAttribute'](_0x5609b0['key'],_0x5609b0['oldValue'],_0x184605['start']['nodeAfter']):_0x3a2e00['removeAttribute'](_0x5609b0['key'],_0x184605['start']['nodeAfter']);}else{for(const _0x3e29e8 of _0x36a5b3)_0x5609b0['oldValue']?_0x3a2e00['setAttribute'](_0x5609b0['key'],_0x5609b0['oldValue'],_0x3e29e8):_0x3a2e00['removeAttribute'](_0x5609b0['key'],_0x3e29e8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x46e6c5);}};function ln(_0xb394a8,_0x505c21,_0x235cef){for(const _0x14923f of _0x505c21['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14923f['root']==_0x14923f)return!0x1;if(!_0x235cef['containsItem'](_0x14923f))return!0x1;if(_0xb394a8['isObject'](_0x14923f)||_0xb394a8['isLimit'](_0x14923f))return!0x0;}return!0x1;}function un(_0x5f1626){return _0x5f1626['end']['parent']==_0x5f1626['start']['nodeAfter']&&_0x5f1626['end']['isAtStart'];}function dn(_0x317ffe,_0x3896d7,_0x2c925d,_0x29e6b7){const _0x55a560=_0x58e115=>!_0x58e115['item']['is']('$textProxy')&&!_0x29e6b7['isObject'](_0x58e115['item']),_0x24476d=_0x317ffe['start']['getLastMatchingPosition'](_0x55a560),_0x120ba5=_0x317ffe['end']['getLastMatchingPosition'](_0x55a560,{'direction':'backward'});return(!_0x317ffe['start']['isEqual'](_0x24476d)||!_0x317ffe['end']['isEqual'](_0x120ba5))&&(_0x24476d['isBefore'](_0x120ba5)?_0x2c925d['updateMarker'](_0x3896d7,{'range':_0x2c925d['createRange'](_0x24476d,_0x120ba5)}):_0x2c925d['removeMarker'](_0x3896d7),!0x0);}function hn(_0x41d16e){return _0x5a9283(_0x41d16e);}function gn(_0x5bbaa3){const _0x341b68=_0x5bbaa3['start']['nodeAfter'];return _0x341b68&&_0x341b68['is']('element');}function fn(_0x8abc71){return un(_0x8abc71)||function(_0x5578c1){return _0x5578c1['start']['parent']==_0x5578c1['end']['nodeBefore']&&_0x5578c1['start']['isAtEnd'];}(_0x8abc71);}function mn(_0x42b474,_0x137078){try{const _0xa81a87=_0x42b474['getRange']();for(const _0x3c030a of _0x137078)if(_0x42b474!==_0x3c030a&&_0xa81a87&&_0xa81a87['isIntersecting'](_0x3c030a['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function En(_0x4d082b,_0x3e942d){return null==_0x4d082b['end']['nodeBefore']&&_0x4d082b['end']['parent']==_0x4d082b['start']['nodeAfter']?Tn(_0x4d082b['start']['nodeAfter'],_0x3e942d):_0x4d082b;}function Tn(_0x28c3e8,_0x646922){const _0x48036a=_0x646922['schema']['isObject'](_0x28c3e8)||_0x646922['schema']['isSelectable'](_0x28c3e8);return _0x646922['createRange'](_0x646922['createPositionAt'](_0x28c3e8,'before'),_0x48036a?_0x646922['createPositionAfter'](_0x28c3e8):_0x646922['createPositionAt'](_0x28c3e8,'end'));}function _n(_0xeb7817,_0x3f89b9,_0x10391c,_0x21178d){return!!pn(_0xeb7817,_0x3f89b9)&&_0x10391c['end']['isEqual'](_0x21178d['start']);}function pn(_0x1fdbe1,_0x558f73){if(!_0x1fdbe1['_isDataLoaded']||!_0x558f73['_isDataLoaded'])return!0x1;const _0x1a8e0d=new Set(Object['keys'](_0x1fdbe1['attributes'])),_0x4f5731=new Set(Object['keys'](_0x558f73['attributes']));if(_0x1a8e0d['delete']('groupId'),_0x4f5731['delete']('groupId'),0x0==_0x1a8e0d['size']&&0x0==_0x4f5731['size'])return!0x0;if(_0x1a8e0d['size']!=_0x4f5731['size'])return!0x1;const _0x2bb53c={..._0x1fdbe1['attributes']},_0x4c0a22={..._0x558f73['attributes']};return delete _0x2bb53c['groupId'],delete _0x4c0a22['groupId'],JSON['stringify'](_0x2bb53c)==JSON['stringify'](_0x4c0a22);}function Ln(_0x3c72fd,_0x531cb2){const _0x328382=In(_0x3c72fd['attributes']),_0x444b85=In(_0x531cb2);if(!_0x3c72fd['_isDataLoaded'])return!0x1;if(!ct(_0x328382['@ai'],_0x444b85['@ai']))return!0x1;for(const _0x274568 of Object['keys'](_0x444b85))if(!ct(_0x328382[_0x274568],_0x444b85[_0x274568]))return!0x1;return!0x0;}function In(_0x18a40a){const _0x3f6422=Object['assign']({},_0x18a40a);return delete _0x3f6422['skipNestingCheck'],delete _0x3f6422['tablePasteChainId'],_0x3f6422;}function An(_0x27296c){return _0x27296c['split']('|')[0x0];}const bn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3d7812();var kn=class extends bn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x2714ce,_0x286c6c,_0x1541bd,_0x350fda){super(),this['model']=_0x286c6c,this['view']=_0x1541bd,this['commentThreadController']=_0x350fda,this['_editor']=_0x2714ce,this['_acceptCommand']=_0x2714ce['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2714ce['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x53d759,_0x10f9d3)=>_0x53d759||_0x10f9d3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12a3cd=>_0x12a3cd&&this['_editor']['model']['canEditAt'](_0x286c6c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4bfd42=>_0x4bfd42&&this['_editor']['model']['canEditAt'](_0x286c6c['getRanges']())),this['_pendingAction']=null,_0x1541bd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1541bd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1541bd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1541bd,'change:isDirty',()=>{_0x1541bd['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 _0x4d2a5b=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d2a5b);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x38a93a{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x17e977,_0x3d2831,_0x5be7cd,_0x40c393){super(_0x17e977),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x11216e(_0x17e977,Mt(_0x17e977,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3d2831['authoredAt']),this['bind']('authoredAt')['to'](_0x3d2831),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x3d2831,'authoredAt',this,'descriptionParts',(_0x4003a1,_0x2f63dd,_0x295807)=>{const _0x3c9ce8=_0x295807['map'](_0x17dca3=>Lt(_0x17dca3['content']))['join']('.\x20')+'.',_0xb8f27=_0x3d2831['aiSource']&&'author'===_0x40c393['showAISource']?_0x40c393['aiAuthor']['name']:_0x3d2831['author']['name'],_0x3d8f81=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4003a1-0x1,_0xb8f27,_0x2f63dd?_0x40c393['formatDateTime'](_0x2f63dd):'',new DOMParser()['parseFromString'](_0x3c9ce8,'text/html')['body']['textContent']]);return _0x3d2831['aiSource']&&'pill'===_0x40c393['showAISource']?_0x3d8f81+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x3d8f81;}),this['focusables']=new _0x404e76(),this['focusTracker']=new _0xc35427(),this['keystrokes']=new _0x4aa419(),this['focusCycler']=new _0x3ae1a7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x562384=>_0x562384['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3d2831,this['_localUser']=_0x5be7cd,this['_config']=_0x40c393,_0x40c393['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x26f898(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x5e0dc9}=this['_config'];this['commentsListView']=new _0x5e0dc9(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',_0x1e9011=>_0x1e9011+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2baa32,_0x2e0a36)=>_0x2baa32||!!_0x2e0a36);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x1602dd}=this['_config'],_0x17dac5=new _0x1602dd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x10d00d=_0x17dac5['commentInputView'];return _0x17dac5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x10d00d,'value',(_0x20a6dc,_0x3e0553,_0x585b26)=>!!_0x585b26||_0x20a6dc&&!_0x3e0553),_0x10d00d['on']('submit',(_0x3fd5e3,_0x543104)=>{this['fire']('addComment',_0x543104),_0x10d00d['editor']['setData']('');}),_0x10d00d['on']('cancel',()=>this['focus']()),_0x10d00d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x17dac5;}},Rn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x27f804,_0x57760c,_0xa1d6bb,_0x5dfd6b){super(_0x27f804,_0x57760c,_0xa1d6bb,_0x5dfd6b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38b78d=>_0x38b78d&&_0x38b78d[0x0]?_0x38b78d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x383440,_0x2dc565)=>{let _0x4d5015='';for(const _0x451f55 of _0x383440)_0x4d5015+='<p>'+Lt(_0x451f55['content'],_0x451f55['color'])+'</p>';return _0x2dc565?_0x4d5015:nt(_0x4d5015,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5dfd6b['SuggestionView'](_0x27f804,_0x57760c,{'formatDateTime':_0x5dfd6b['formatDateTime'],'showAISource':_0x5dfd6b['showAISource'],'aiAuthor':_0x5dfd6b['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x3ef8b9=this['bindTemplate'],_0x571d42=[this['suggestionView']];return this['commentsListView']&&_0x571d42['push'](this['commentsListView']),this['commentThreadInputView']&&_0x571d42['push'](this['commentThreadInputView']),_0x571d42['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3ef8b9['if']('isActive','ck-suggestion-wrapper--active'),_0x3ef8b9['to']('type',_0x1957ff=>'ck-suggestion-'+_0x1957ff),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3ef8b9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x571d42};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},yn=class extends _0x38a93a{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x40df6a,_0x18ccbc,_0x1c94db){super(_0x40df6a),this['_model']=_0x18ccbc,this['_config']=_0x1c94db,this['set']('description',''),this['bind']('authoredAt')['to'](_0x18ccbc),this['acceptButton']=this['_createButton'](Mt(_0x40df6a,'Accept\x20suggestion'),_0xcaba04,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x40df6a,'Discard\x20suggestion'),_0x488d59,'ck-suggestion--discard','discardSuggestion','sw');const _0x4aa017=!!_0x18ccbc['aiSource']&&'author'===_0x1c94db['showAISource'],_0x1016b5=_0x4aa017?this['_createAIUser'](_0x1c94db['aiAuthor']):_0x18ccbc['author'],_0x347be0=_0x4aa017&&!_0x1c94db['aiAuthor']['avatar']?_0x136f6e:void 0x0;this['userView']=new _0x57848d(_0x40df6a,_0x1016b5,this['getUserViewNotificationText'](),_0x347be0),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x404e76([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc35427(),this['keystrokes']=new _0x4aa419(),this['focusCycler']=new _0x3ae1a7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2580fe=>_0x2580fe['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5d04f5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5d04f5['innerHTML']=this['description'],this['on']('change:description',(_0x435b40,_0x520ea6,_0x1334c4)=>{_0x5d04f5['innerHTML']=_0x1334c4;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x1702c7=this['bindTemplate'],_0x5178e2=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1702c7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1702c7['to']('authoredAt',_0x39296a=>this['_config']['formatDateTime'](_0x39296a))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x5178e2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x5484e5=new _0xda9ac1(this['locale']);_0x5484e5['set']({'icon':_0x55a3ec,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x5178e2['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x5484e5]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x5178e2}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x27068e){return new _0x359f87({'id':'ck-ai-author','name':_0x27068e['name'],'avatar':_0x27068e['avatar'],'color':new _0x20d727(0x0)});}_createButton(_0x5c1ca9,_0x4b0b62,_0x5b0a71,_0x5d6e1f,_0x5112c3){const _0x599d42=new _0x273023(this['locale']);return _0x599d42['set']({'label':_0x5c1ca9,'icon':_0x4b0b62,'tooltip':!0x0,'tooltipPosition':_0x5112c3}),_0x599d42['extendTemplate']({'attributes':{'class':_0x5b0a71}}),_0x599d42['on']('execute',()=>{this['fire'](_0x5d6e1f,this['_model']['id']);}),_0x599d42;}_setupKeyboardNavigation(){const _0x185870=this['element'];this['keystrokes']['listenTo'](_0x185870);for(const _0x243e87 of this['focusables'])this['focusTracker']['add'](_0x243e87['element']),this['keystrokes']['listenTo'](_0x243e87['element']);this['keystrokes']['set']('enter',(_0xbe1c2c,_0x50cb41)=>{_0x185870===_0xbe1c2c['target']&&(this['focusCycler']['focusFirst'](),_0x50cb41());}),this['keystrokes']['set']('esc',(_0x2abdd7,_0x21a21a)=>{_0x185870!==_0x2abdd7['target']&&(this['focus'](),_0x21a21a());});}},Nn=class extends _0x42a28f{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[an,_0x3f25ff,_0x51a4b7,_0x320e85,_0x42e5e7];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x107d59){super(_0x107d59),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a1ae4=this['editor']['config'];_0x4a1ae4['define']('trackChanges.SuggestionThreadView',Rn),_0x4a1ae4['define']('trackChanges.SuggestionView',yn),_0x4a1ae4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a1ae4['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x45ea17,_0x295634){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x485998,_0x316e1d]of this['_handleControllerBuffer']){const _0x470342=this['_suggestionToController']['has'](_0x485998);_0x470342||_0x316e1d?_0x470342&&_0x316e1d&&this['_destroyController'](_0x485998):this['_initializeController'](_0x485998);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x42e5e7)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x45ea17,_0x295634);}init(){const _0x52f88e=this['editor'],_0xc80f07=_0x52f88e['plugins']['get'](an),_0x5dd825=_0x52f88e['plugins']['get'](_0x320e85),_0x277ffc=_0x52f88e['plugins']['get'](_0x42e5e7),_0x2f7d31=_0x52f88e['plugins']['get'](_0x51a4b7);this['_addUIComponentsToFactory'](),_0x277ffc['addSourceCollector'](()=>{const _0x3410d8=[];for(const [_0x112a3c,_0x5c5382]of Array['from'](this['_suggestionToController'])){const _0x45dc46=_0x112a3c['getAllAdjacentSuggestions'](),_0x1ca012=[];for(const _0x4904b3 of _0x45dc46){if(!_0x4904b3['isInContent'])continue;if(_0x4904b3['isMultiRange']){_0x1ca012['push'](..._0x4904b3['getRanges']());continue;}const _0x1b9d79=_0x4904b3['getFirstRange']();if(_0x1ca012['length']>0x0){const _0x33147c=_0x1ca012[0x0]['getJoined'](_0x1b9d79);if(_0x33147c){_0x1ca012[0x0]=_0x33147c;continue;}}_0x1ca012['push'](_0x1b9d79);}_0x3410d8['push']([_0x5c5382['view'],_0x1ca012]);}return _0x3410d8;}),this['listenTo'](_0xc80f07,'suggestionLoaded',(_0x32beff,_0xeaabf9)=>{this['listenTo'](_0xeaabf9,'change:previous',(_0x11e1bd,_0x3a6814,_0x5c1da4,_0x5687cd)=>{_0xeaabf9['isInContent']&&(null==_0x5c1da4?(this['_updateController'](_0x5687cd['head']),this['_handleSuggestionControllerDelayed'](_0xeaabf9,!0x1)):(this['_updateController'](_0x5c1da4['head']),null==_0x5687cd&&this['_handleSuggestionControllerDelayed'](_0xeaabf9,!0x0)));}),null!==_0xeaabf9['previous']?this['_updateController'](_0xeaabf9['head']):this['_handleSuggestionControllerDelayed'](_0xeaabf9,!0x1);}),this['listenTo'](_0xc80f07,'suggestionUnloaded',(_0x3af9b2,_0x9fbf4f,_0x33a7af)=>{this['stopListening'](_0x9fbf4f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x9fbf4f),this['_suggestionToController']['has'](_0x9fbf4f)&&this['_destroyController'](_0x9fbf4f),_0x33a7af&&this['_updateController'](_0x33a7af['head']);}),this['listenTo'](_0xc80f07,'suggestionChanged',(_0x4caf0a,_0x1e3aed)=>{this['_updateController'](_0x1e3aed);}),this['listenTo'](_0x5dd825,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2f7d31,'addComment',(_0x27ce36,{threadId:_0x4682c2,isFromAdapter:_0x3da2e5})=>{if(_0x3da2e5||!_0xc80f07['hasSuggestion'](_0x4682c2))return;const _0x58f9c8=_0xc80f07['getSuggestion'](_0x4682c2);this['_suggestionToController']['get'](_0x58f9c8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x23ee93=[this['editor']];for(const _0x5cf61c of _0x23ee93){let _0x139ff1;for(const _0x137519 in _0x5cf61c){const _0x42de0e=_0x137519,_0x31a049=_0x5cf61c[_0x42de0e];if('trackChangesLicenseKeyValid'==_0x31a049||'trackChangesLicenseKeyInvalid'==_0x31a049||'trackChangesLicenseKeyExpired'==_0x31a049||'trackChangesLicenseKeyDomainLimit'==_0x31a049||'trackChangesLicenseKeyNotAllowed'==_0x31a049||'trackChangesLicenseKeyEvaluationLimit'==_0x31a049||'trackChangesLicenseKeyUsageLimit'==_0x31a049){delete _0x5cf61c[_0x42de0e],_0x139ff1=_0x31a049,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x139ff1&&_0x5cf61c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x139ff1&&_0x5cf61c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x139ff1&&_0x5cf61c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x139ff1&&_0x5cf61c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x139ff1&&_0x5cf61c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x139ff1&&_0x5cf61c['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x113218){const _0x1a0d40=this['_suggestionToController']['get'](_0x113218);return _0x1a0d40&&this['editor']['plugins']['get'](_0x320e85)['getByInnerView'](_0x1a0d40['view'])||null;}getSuggestionForAnnotation(_0x34a1dd){const _0x1d66e5=this['_viewToController']['get'](_0x34a1dd['innerView']);return _0x1d66e5?_0x1d66e5['model']:null;}_refreshActiveMarkers(){const _0xb1ce26=this['editor']['plugins']['get'](_0x320e85),_0x28f5eb=this['editor']['plugins']['get'](an),_0x161911=Array['from'](_0xb1ce26['activeAnnotations'],_0x5d1fd5=>_0x5d1fd5['innerView'])['filter'](_0x43baaa=>this['_viewToController']['has'](_0x43baaa)),_0x599b74=[];for(const _0x911251 of _0x161911){const _0x58ab64=this['_viewToController']['get'](_0x911251)['model']['getAllAdjacentSuggestions']();_0x599b74['push'](..._0x58ab64['reduce']((_0x10429e,_0x4bc76d)=>[..._0x10429e,..._0x4bc76d['getMarkerNames']()],[]));}_0x28f5eb['activeMarkers']=_0x599b74;}_addUIComponentsToFactory(){const _0x3589e8=this['editor'],_0x5eabde=_0x3589e8['locale'],_0x84639=Mt(_0x5eabde,'Track\x20changes'),_0xd6dd98=new _0xcf0f12([{'type':'switchbutton','model':new _0xc62c18({'withText':!0x0,'isToggleable':!0x0,'label':_0x84639,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3589e8['plugins']['has']('TrackChangesPreview')&&_0xd6dd98['addMany']([{'type':'separator'},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4cff25 of _0xd6dd98)if(Sn(_0x4cff25)){const _0x494244=_0x3589e8['commands']['get'](_0x4cff25['model']['commandName']);_0x4cff25['model']['bind']('isOn','isEnabled')['to'](_0x494244,'value','isEnabled');}_0x3589e8['ui']['componentFactory']['add']('trackChanges',_0x254299=>this['_createToolbarButton'](_0x254299,_0xd6dd98,_0x84639)),_0x3589e8['ui']['componentFactory']['add']('menuBar:trackChanges',_0x398bbd=>this['_createMenuBarMenu'](_0x398bbd,_0xd6dd98,_0x84639));}_createToolbarButton(_0xcbb529,_0x1bbe06,_0x3e584d){const _0x22b4c6=_0x4a118d(_0xcbb529,_0x1fbe25),_0x5008a3=this['editor']['commands']['get']('trackChanges');_0x22b4c6['buttonView']['set']({'tooltip':_0x3e584d,'label':_0x3e584d,'icon':_0x37c353}),_0x22b4c6['buttonView']['bind']('isOn')['to'](_0x5008a3,'value'),_0x22b4c6['buttonView']['on']('execute',()=>{_0x5008a3['execute'](),this['editor']['editing']['view']['focus']();}),_0x4c17c9(_0x22b4c6,_0x1bbe06,{'role':'menu'});const _0x10ec94=[];for(const _0x161298 of _0x1bbe06)Sn(_0x161298)&&_0x10ec94['push'](this['editor']['commands']['get'](_0x161298['model']['commandName']));const _0xde085d=_0x22b4c6['buttonView'];return _0xde085d['actionView']['unbind']('isEnabled'),_0xde085d['arrowView']['unbind']('isEnabled'),_0xde085d['actionView']['bind']('isEnabled')['to'](_0x5008a3,'isEnabled'),_0xde085d['arrowView']['bind']('isEnabled')['toMany'](_0x10ec94,'isEnabled',(..._0xda43de)=>_0xda43de['some'](_0x2ba6f7=>_0x2ba6f7)),_0x22b4c6['on']('execute',_0x2155e6=>{this['editor']['execute'](_0x2155e6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x22b4c6;}_createMenuBarMenu(_0x5bf6ca,_0xb377ff,_0x468bbb){const _0x24dbdd=new _0x490808(_0x5bf6ca),_0x3556b6=this['editor']['commands']['get']('trackChanges');_0x24dbdd['buttonView']['set']({'label':_0x468bbb,'icon':_0x37c353});const _0x137f7a=new _0x3867d5(_0x5bf6ca);for(const _0x2c481e of _0xb377ff){if('separator'==_0x2c481e['type']){_0x137f7a['items']['add'](new _0x3d3b0b(_0x5bf6ca));continue;}const _0x153877=new _0x1d4268(_0x5bf6ca,_0x24dbdd),_0x30d9fa=new _0x1b87e4(_0x5bf6ca),_0x5bcde8=_0x2c481e['model'];_0x30d9fa['bind'](...Object['keys'](_0x5bcde8))['to'](_0x5bcde8),_0x30d9fa['delegate']('execute')['to'](_0x24dbdd),_0x30d9fa['on']('execute',()=>{this['editor']['execute'](_0x5bcde8['commandName']),this['editor']['editing']['view']['focus']();}),_0x153877['children']['add'](_0x30d9fa),_0x137f7a['items']['add'](_0x153877);}return _0x24dbdd['bind']('isEnabled')['to'](_0x3556b6,'isEnabled'),_0x24dbdd['panelView']['children']['add'](_0x137f7a),_0x24dbdd;}_initializeController(_0x419145){const _0x26867b=this['editor'],_0x4264a3=_0x26867b['config'],_0x318eda=_0x26867b['plugins']['get'](_0x320e85),_0x3f14a6=_0x26867b['plugins']['get'](_0x51a4b7),_0x4100b1=_0x26867b['plugins']['get'](_0x42e5e7),_0x46a070=_0x26867b['plugins']['get'](_0x3f25ff)['me'],_0x178b50=_0x4264a3['get']('trackChanges')['SuggestionThreadView'],_0x256e4a=_0x4264a3['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4b6ec2,CommentThreadInputView:_0x20dfd9}=_0x26867b['plugins']['get']('CommentsUI');let _0x18cfd8,_0x44812f,_0x5c7995;this['_annotationViews']['has'](_0x419145['id'])?(_0x44812f=this['_annotationViews']['get'](_0x419145['id']),_0x18cfd8=_0x44812f['mainView']):(_0x18cfd8=new _0x178b50(_0x26867b['locale'],_0x419145,_0x46a070,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4264a3['get']('comments.editorConfig'),'licenseKey':_0x4264a3['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4264a3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4264a3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4264a3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4ba4af(_0x4264a3['get']('locale'),_0x26867b['locale']),'CommentView':_0x4264a3['get']('comments')['CommentView'],'CommentsListView':_0x4b6ec2,'CommentThreadInputView':_0x20dfd9,'SuggestionView':_0x256e4a,'showAISource':_0x4264a3['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x4264a3['get']('trackChanges.aiAuthor'),'name':_0x4264a3['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x26867b['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x18cfd8['suggestionView']['acceptButton']['on']('execute',()=>{_0x26867b['editing']['view']['focus']();}),_0x18cfd8['suggestionView']['discardButton']['on']('execute',()=>{_0x26867b['editing']['view']['focus']();}),_0x44812f=_0x318eda['createAnnotationView'](this['editor']['locale'],_0x18cfd8),_0x44812f['bind']('isDirty')['to'](_0x18cfd8,'isDirty'),_0x44812f['bind']('length')['to'](_0x18cfd8),_0x44812f['bind']('type')['to'](_0x18cfd8,'type',_0x12699e=>'suggestion-'+_0x12699e),_0x18cfd8['on']('escape',()=>{_0x5c7995['fire']('escape');}),this['_annotationViews']['set'](_0x419145['id'],_0x44812f));const _0x471f5a=_0x3f14a6['createCommentThreadController'](_0x419145['commentThread'],_0x18cfd8),_0x5b13cc=new kn(_0x26867b,_0x419145,_0x18cfd8,_0x471f5a),_0x19ed99=_0x419145['getAllAdjacentSuggestions']()['filter'](_0x553dc5=>_0x553dc5['isInContent']);_0x18cfd8['descriptionParts']=_0x26867b['plugins']['get'](an)['descriptionFactory']['getDescriptions'](_0x19ed99),this['_suggestionToController']['set'](_0x419145,_0x5b13cc),this['_viewToController']['set'](_0x18cfd8,_0x5b13cc);const _0x2cf790=()=>{const _0x1249f3=[],_0x28782b=_0x419145['getAllAdjacentSuggestions']()['filter'](_0x4bfa0d=>_0x4bfa0d['isInContent']);for(const _0x15ee8f of _0x28782b)_0x1249f3['push'](..._0x15ee8f['getMarkers']());return _0x2dde48(_0x26867b['editing'],_0x1249f3);};_0x5c7995=_0x318eda['createAnnotation']({'view':_0x44812f,'target':_0x2cf790,'type':()=>'suggestion-'+_0x5b13cc['view']['type'],'isVisible':!!_0x2cf790()}),_0x3f14a6['_bindAnnotationToEditors'](_0x18cfd8,_0x5c7995),_0x318eda['add'](_0x5c7995),_0x4100b1['registerAnnotation'](_0x5c7995);}_destroyController(_0x3a4319){const _0x2f32da=this['editor']['plugins']['get'](_0x51a4b7),_0x53bb25=this['editor']['plugins']['get'](_0x320e85),_0xc03ed0=this['_suggestionToController']['get'](_0x3a4319),_0x962433=_0xc03ed0['view'],_0x39b33c=_0x53bb25['getByInnerView'](_0x962433);_0x2f32da['_unbindEditors'](_0x962433),_0x39b33c&&_0x53bb25['remove'](_0x39b33c),this['_suggestionToController']['delete'](_0x3a4319),this['_viewToController']['delete'](_0x962433),_0xc03ed0['destroy']();}_updateController(_0x69740e){if(!_0x69740e['isInContent']||!this['_suggestionToController']['has'](_0x69740e))return;const _0x24ae69=this['editor']['plugins']['get'](an),_0x566e62=this['_suggestionToController']['get'](_0x69740e),_0x3903e7=_0x69740e['getAllAdjacentSuggestions']();_0x566e62['view']['descriptionParts']=_0x24ae69['descriptionFactory']['getDescriptions'](_0x3903e7);}destroy(){for(const _0xa9cf08 of this['_suggestionToController']['keys']())this['_destroyController'](_0xa9cf08);for(const _0x244b83 of this['_annotationViews']['values']())_0x244b83['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Sn(_0x112c72){return'model'in _0x112c72;}var Mn=class extends _0x42a28f{static get requires(){return[an,Nn,_0x21a992];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3ff75a){this['editor']['plugins']['get'](an)['adapter']=_0x3ff75a;}get adapter(){return this['editor']['plugins']['get'](an)['adapter'];}addSuggestion(_0x521f5c){return this['editor']['plugins']['get'](an)['addSuggestionData'](_0x521f5c);}getSuggestions({skipNotAttached:_0x28c672=!0x1,toJSON:_0x2ed71a=!0x1}={}){return this['editor']['plugins']['get'](an)['getSuggestions']({'skipNotAttached':_0x28c672,'toJSON':_0x2ed71a});}getSuggestion(_0xc100c0){return this['editor']['plugins']['get'](an)['getSuggestion'](_0xc100c0);}};const On=['Pagination'];var wn=class extends _0x42a28f{static get requires(){return[an];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x489bb0=this['editor'];if(_0x489bb0['config']['define']('trackChangesData.editorCreator',_0x4f86e4=>{const _0x239ce3=_0x489bb0['model']['document']['getRootNames']()['reduce']((_0x5457b2,_0x5f1eb3)=>(_0x5457b2[_0x5f1eb3]='',_0x5457b2),{});return _0x489bb0['constructor']['create'](_0x239ce3,_0x4f86e4);}),'function'!=typeof _0x489bb0['config']['get']('trackChangesData')['editorCreator'])throw new _0x5f6c00('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x8c05a4){return vn(this['editor'],!0x0,_0x8c05a4);}getDataWithDiscardedSuggestions(_0x4f7556){return vn(this['editor'],!0x1,_0x4f7556);}},Fn=class extends _0x42a28f{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31cafb){super(_0x31cafb),this['result']='end',_0x31cafb['editing']['view']['_overlayModeHint']='auto',_0x31cafb['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Bn(_0x1e7a46){return void 0x0!==_0x1e7a46['getRootsAttributes'];}async function vn(_0x3d0e8e,_0x212928,_0x10a144){const _0x1145cc=_0x1d3fee(_0x3d0e8e,On);if(_0x1145cc['plugins']['push'](an,Fn),Bn(_0x3d0e8e)){_0x1145cc['roots']=Object['create'](null);for(const _0x1b4403 of _0x3d0e8e['model']['document']['getRootNames']())_0x1145cc['roots'][_0x1b4403]={'modelAttributes':_0x3d0e8e['getRootAttributes'](_0x1b4403)};}const _0x218362=document['createDocumentFragment'](),_0x2eb5bf=_0x3d0e8e['config']['get']('trackChangesData')['editorCreator'],_0x26d00e=await _0x2eb5bf(_0x1145cc,()=>function(_0x280931){const _0x335091=document['createElement']('div');return _0x280931['appendChild'](_0x335091),_0x335091;}(_0x218362));!function(_0x3d9aa5,_0x190b78){const _0x4887f1=_0x3d9aa5['model']['document']['getRootNames']()['reduce']((_0x50fbed,_0x11979e)=>(_0x50fbed[_0x11979e]=_0x3d9aa5['data']['get']({'rootName':_0x11979e}),_0x50fbed),{}),_0x45f1eb=_0x3d9aa5['plugins']['get']('Users')['users']['map'](_0x59edff=>({'id':_0x59edff['id'],'name':_0x59edff['name']})),_0x3795ee=_0x3d9aa5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5eaaa7=_0x3d9aa5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5629b6=_0x190b78['plugins']['get']('Users'),_0x2b9a76=_0x190b78['plugins']['get']('TrackChangesEditing'),_0x43b757=_0x190b78['plugins']['get']('CommentsRepository');for(const _0x341fd2 of _0x43b757['getCommentThreads']())_0x341fd2['remove']();for(const _0x26adba of _0x45f1eb)_0x5629b6['getUser'](_0x26adba['id'])||_0x5629b6['addUser'](_0x26adba);_0x5629b6['me']||_0x5629b6['useAnonymousUser']();for(const _0x320cd6 of _0x5eaaa7)_0x43b757['addCommentThread'](_0x320cd6);for(const _0x3d4289 of _0x3795ee)_0x2b9a76['addSuggestionData'](_0x3d4289);_0x190b78['data']['set'](_0x4887f1);}(_0x3d0e8e,_0x26d00e),_0x26d00e['execute'](_0x212928?'acceptAllSuggestions':'discardAllSuggestions');const _0x5a72a4=Bn(_0x26d00e)?_0x26d00e['getFullData'](_0x10a144):_0x26d00e['data']['get'](_0x10a144);return await _0x26d00e['destroy'](),_0x5a72a4;}var Dn=class extends _0x38a93a{options;constructor(_0x10b96b,_0x5c0d15){super(_0x10b96b),this['options']=_0x5c0d15,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0xbd50ee,_0x382f8b){if(!this['element'])return;const _0x40c48d=[];for(const [_0x1c4f6c,_0x19075b]of _0xbd50ee){const _0x2322c9=document['createElement']('div');_0x2322c9['setAttribute']('data-ck-root-name',_0x1c4f6c),_0x2322c9['className']=_0x19075b['classes']+'\x20ck-track-changes-preview__root-container',_0x2322c9['innerHTML']=_0x19075b['content'],_0x40c48d['push'](_0x2322c9);}_0x382f8b(this['element'],_0x40c48d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Un=class extends _0x1111ef{constructor(_0x4b8a3a){super(_0x4b8a3a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x2db7cc=this['editor'],_0x38b916=_0x2db7cc['locale'],_0x46a720=_0x2db7cc['plugins']['get']('Dialog');let _0x44db9a;const _0x216f33=function(_0x197db0){const _0xb9686a={};if('editables'in _0x197db0['ui']['view']){for(const [_0x1db79b,_0x322b60]of Object['entries'](_0x197db0['ui']['view']['editables']))_0xb9686a[_0x1db79b]=_0x322b60['element'];}else _0xb9686a[_0x197db0['model']['document']['getRootNames']()[0x0]]=_0x197db0['ui']['view']['editable']['element'];return _0xb9686a;}(_0x2db7cc),_0x2eec73=function(_0x2a5f88){let _0x244be2=0x0;for(const _0x1fe29f of Object['values'](_0x2a5f88))_0x244be2=Math['max'](_0x244be2,_0x1fe29f['getBoundingClientRect']()['width']);let _0x4250ab=0x0;for(const _0x5cfe94 of Object['values'](_0x2a5f88))_0x4250ab+=_0x5cfe94['getBoundingClientRect']()['height'];const _0x1d3b3d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x244be2,'height':Math['min'](_0x4250ab,_0x1d3b3d)};}(_0x216f33);_0x46a720['show']({'id':'finalContentPreview','title':Mt(_0x38b916,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Dn(_0x38b916,{'dialogRects':_0x2eec73}),'onHide':()=>{_0x44db9a['detachFromDom']();},'onShow':()=>{_0x2db7cc['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3405f2=>{const _0x517192=this['_standarizeRootsData'](_0x3405f2,_0x2db7cc,_0x216f33);_0x46a720['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x517192,_0x2db7cc['config']['get']('trackChanges.preview.renderFunction'));}),_0x44db9a=new _0x25c7c9(_0x38b916,[_0x46a720['view']]),_0x44db9a['attachToDom'](),_0x44db9a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2db7cc['once']('destroy',()=>{_0x44db9a['detachFromDom']();});const _0x2c6d70=_0x46a720['view']['headerView']['class'];_0x46a720['view']['headerView']['class']=_0x2c6d70?_0x2c6d70+'\x20ck-reset_all':'ck-reset_all',_0x46a720['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x46a720['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5dc233=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x354557=_0x5dc233['previewMode'],_0x5d8bb6={};if('$labels'===_0x354557){for(const _0x2cbd9c of _0x5dc233['getMergeFieldsIds']())_0x5d8bb6[_0x2cbd9c]=_0x5dc233['getLabel'](_0x2cbd9c)||_0x2cbd9c;}else{const _0x4d5036='$defaultValues'===_0x354557?_0x5dc233['getDefaultValues']():_0x5dc233['getDataSetValues'](_0x354557,!0x0);for(const _0x1d89ef of Object['entries'](_0x4d5036)){const [_0x198bef,_0x2aa671]=_0x1d89ef;_0x5d8bb6[_0x198bef]=null!==_0x2aa671?_0x2aa671:_0x5dc233['getLabel'](_0x198bef)||_0x198bef;}}return{'mergeFieldsData':_0x5d8bb6};}_standarizeRootsData(_0x1a084e,_0x59af66,_0x5aabee){let _0x15c5c4;_0x15c5c4='string'==typeof _0x1a084e?{[_0x59af66['model']['document']['getRootNames']()[0x0]]:_0x1a084e}:_0x1a084e;const _0x49a547=this['_fixMediaEmbeds'](_0x15c5c4,_0x59af66);return function(_0x164f9c,_0xa38999){for(const [_0x4f3b0f,_0x56dcd9]of _0x164f9c)_0x56dcd9['classes']=_0xa38999[_0x4f3b0f]['classList']['value']['replace']('ck-focused','');return _0x164f9c;}(this['_sortRoots'](_0x59af66)['reduce']((_0x4c29c5,_0x30d990)=>(_0x4c29c5['push']([_0x30d990,{'content':_0x49a547[_0x30d990],'classes':''}]),_0x4c29c5),[]),_0x5aabee);}['_fixMediaEmbeds'](_0x1b6cc7,_0x42b5cd){if(!_0x42b5cd['plugins']['has']('MediaEmbedEditing'))return _0x1b6cc7;const _0x15aae8=_0x42b5cd['plugins']['get']('MediaEmbedEditing');for(const [_0x2aca24,_0x3b4507]of Object['entries'](_0x1b6cc7)){const _0x390572=document['createElement']('div');_0x390572['innerHTML']=_0x3b4507,_0x390572['querySelectorAll']('figure.media')['forEach'](_0x52d2aa=>{const _0x115c5d=_0x52d2aa['querySelector']('oembed');if(_0x115c5d){const _0x4e4685=_0x115c5d['getAttribute']('url');if(_0x4e4685){const _0x28a9db=_0x15aae8['registry']['getMediaViewElement'](new ot(_0x42b5cd['editing']['view']['document']),_0x4e4685,{'elementName':'','renderForEditingView':!0x0}),_0x29f090=document['createElement']('div');_0x29f090['classList']['add']('ck-media__wrapper'),_0x28a9db['render'](_0x29f090,_0x42b5cd['editing']['view']['domConverter']),_0x115c5d['replaceWith'](_0x29f090);}}}),_0x1b6cc7[_0x2aca24]=_0x390572['innerHTML'];}return _0x1b6cc7;}_sortRoots(_0x45b415){if(!function(_0x2776bd){return void 0x0!==_0x2776bd['getRootsAttributes'];}(_0x45b415))return _0x45b415['model']['document']['getRootNames']();const _0x126c1e=[],_0x1541b2=new Map();for(const _0x290cc9 of _0x45b415['model']['document']['getRootNames']()){const _0x383aaf=_0x45b415['editing']['view']['getDomRoot'](_0x290cc9)['getClientRects']()['item'](0x0);_0x126c1e['push'](_0x290cc9),_0x1541b2['set'](_0x290cc9,_0x383aaf);}return _0x126c1e['sort']((_0x36aa4e,_0x57bbe1)=>{const _0xefa408=_0x1541b2['get'](_0x36aa4e),_0x36b45d=_0x1541b2['get'](_0x57bbe1);return _0xefa408['y']-_0x36b45d['y']||_0xefa408['x']-_0x36b45d['x'];}),_0x126c1e;}},Pn=class extends _0x42a28f{static get requires(){return[wn,_0x4820ab];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a07a4){super(_0x5a07a4),_0x5a07a4['commands']['add']('previewFinalContent',new Un(this['editor'])),_0x5a07a4['config']['define']('trackChanges.preview.renderFunction',(_0x260f96,_0x12e053)=>{for(const _0x480420 of _0x12e053)_0x260f96['appendChild'](_0x480420);});}};export{_t as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Un as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Rn as SuggestionThreadView,yn as SuggestionView,Mn as TrackChanges,Tt as TrackChangesCommand,wn as TrackChangesData,Fn as TrackChangesDataGetter,an as TrackChangesEditing,Pn as TrackChangesPreview,Nn as TrackChangesUI};
|